Skip to content

armgit / peach

Public Imported from GitHub
0

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

fix(navigation): 防止首次切换骨架截断平滑滚动

longmeidaod3cdf93532c1
diff --git a/frontend/e2e/anchor-navigation.test.ts b/frontend/e2e/anchor-navigation.test.ts
index fee85fca1..de71eab78 100644
--- a/frontend/e2e/anchor-navigation.test.ts
+++ b/frontend/e2e/anchor-navigation.test.ts
@@ -3,6 +3,7 @@ import { after, before, describe, it } from 'node:test';
import type { Browser } from 'playwright-core';
import { launch, VIEWPORTS } from './harness.ts';
import { openItemPage } from './item-fixture.ts';
+import { openFollowFeed } from './follow-fixture.ts';
describe('页面滚动定位', () => {
let browser: Browser;
@@ -10,6 +11,51 @@ describe('页面滚动定位', () => {
after(async () => { await browser?.close() });
for (const viewport of VIEWPORTS) {
for (const reduced of [false, true]) {
+ it(`${viewport.name}:首次进入关注页时短骨架不截断回顶,减少动态效果=${reduced}`, { timeout: 60_000 }, async () => {
+ const opened = await openFollowFeed(browser, '/', viewport, { ready: '#catalogFilter [data-filter-frame]' });
+ const { page } = opened;
+ let release!: () => void;
+ const waiting = new Promise<void>(resolve => { release = resolve });
+ try {
+ await page.emulateMedia({ reducedMotion: reduced ? 'reduce' : 'no-preference' });
+ await page.route(url => url.pathname === '/api/follow', async route => {
+ await waiting;
+ await route.fallback();
+ });
+ const previousHeight = await page.evaluate(() => {
+ // 长度只放在离开的列表内,导航清空列表时会一起移除。
+ const tail = document.createElement('div');
+ tail.style.height = '3000px';
+ document.getElementById('grid')!.append(tail);
+ window.scrollTo({ top: 500, behavior: 'instant' });
+ const frames: number[] = [];
+ const tracking = { frames, running: true };
+ Object.assign(window, { coldFollowScroll: tracking });
+ const record = () => {
+ frames.push(scrollY);
+ if (tracking.running) requestAnimationFrame(record);
+ };
+ requestAnimationFrame(record);
+ return document.documentElement.style.minHeight;
+ });
+ if (viewport.mobile) await page.locator('header button[aria-label="展开侧栏"]').click();
+ await page.locator('#drawer [data-nav="follow"]').click();
+ await page.waitForURL('**/follow');
+ await page.waitForFunction(() => scrollY === 0);
+ const frames = await page.evaluate(() => {
+ const tracking = (window as unknown as { coldFollowScroll: { frames: number[]; running: boolean } }).coldFollowScroll;
+ tracking.running = false;
+ return tracking.frames;
+ });
+ if (!reduced) assert.ok(frames.some(y => y > 2 && y < 490), '首次切换应经过中间位置,不能先被短骨架夹到顶部');
+ release();
+ await page.locator('[data-follow-list] > [data-follow-item]').first().waitFor();
+ await page.waitForFunction(height => document.documentElement.style.minHeight === height
+ && !document.documentElement.hasAttribute('data-page-navigation-pending'), previousHeight);
+ assert.equal(await page.evaluate(() => scrollY), 0);
+ assert.deepEqual(opened.problems, []);
+ } finally { release(); await opened.close() }
+ });
it(`${viewport.name}:内容就绪后定位,减少动态效果=${reduced}`, { timeout: 60_000 }, async () => {
const opened = await openItemPage(browser, '/', viewport, { ready: '#grid [data-media-card]' });
const { page } = opened;
diff --git a/frontend/src/history/page-navigation.ts b/frontend/src/history/page-navigation.ts
index a0bc29b7f..4a4361184 100644
--- a/frontend/src/history/page-navigation.ts
+++ b/frontend/src/history/page-navigation.ts
@@ -19,10 +19,18 @@ let requestedTop = -1;
let refreshing = false;
let installed = false;
let anchorStyle: string | undefined;
+let heightStyle: string | undefined;
+let contentReady = false;
+let scrolling = false;
function holdScrollAnchor(): void {
const root = document.documentElement;
anchorStyle ??= root.style.overflowAnchor;
+ heightStyle ??= root.style.minHeight;
+ // 收起旧页面时,短骨架不能先把当前位置夹到顶部。
+ root.style.minHeight = `${root.scrollHeight}px`;
+ contentReady = false;
+ scrolling = false;
root.style.overflowAnchor = 'none';
root.setAttribute('data-page-navigation-pending', '');
// 取消上一页尚未结束的平滑滚动,下一页只接受自己的定位。
@@ -30,14 +38,34 @@ function holdScrollAnchor(): void {
}
function releaseScrollAnchor(seq: number): void {
- document.documentElement.removeAttribute('data-page-navigation-pending');
+ if (!contentReady || scrolling || anchorStyle === undefined) return;
requestAnimationFrame(() => requestAnimationFrame(() => {
- if (peachHistory.navigation.seq !== seq || anchorStyle === undefined) return;
- document.documentElement.style.overflowAnchor = anchorStyle;
+ if (peachHistory.navigation.seq !== seq || !contentReady || scrolling || anchorStyle === undefined) return;
+ const root = document.documentElement;
+ root.style.minHeight = heightStyle!;
+ root.style.overflowAnchor = anchorStyle;
+ root.removeAttribute('data-page-navigation-pending');
+ heightStyle = undefined;
anchorStyle = undefined;
}));
}
+function scrollPage(options: ScrollToOptions): void {
+ scrolling = options.behavior === 'smooth'
+ && (Math.abs((options.top ?? window.scrollY) - window.scrollY) > 0.5
+ || Math.abs((options.left ?? window.scrollX) - window.scrollX) > 0.5);
+ window.scrollTo(options);
+}
+
+function trackElementScroll(target: Element | null): void {
+ if (!target?.getClientRects().length) { scrolling = false; return }
+ const padding = parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop) || 0;
+ const margin = parseFloat(getComputedStyle(target).scrollMarginTop) || 0;
+ const top = Math.max(0, Math.min(target.getBoundingClientRect().top + window.scrollY - padding - margin,
+ document.documentElement.scrollHeight - window.innerHeight));
+ scrolling = routeScrollBehavior() === 'smooth' && Math.abs(top - window.scrollY) > 0.5;
+}
+
const page = (path: string) => !isOverlayPath(path) && !isPreferencePath(path) && path !== '/immerse' && path !== '/wall';
const identity = (location: typeof active.location) => {
const query = new URLSearchParams(location.search);
@@ -79,11 +107,20 @@ function installPageNavigation(): void {
active = peachHistory.navigation;
from = active.location;
window.history.scrollRestoration = 'manual';
+ document.addEventListener('scrollend', event => {
+ if (event.target !== document) return;
+ scrolling = false;
+ releaseScrollAnchor(peachHistory.navigation.seq);
+ });
peachHistory.listen(next => {
from = active.location;
departure = { left: window.scrollX, top: window.scrollY };
if (page(next.location.pathname)) holdScrollAnchor();
- else releaseScrollAnchor(next.seq);
+ else {
+ contentReady = true;
+ scrolling = false;
+ releaseScrollAnchor(next.seq);
+ }
if (page(from.pathname)) {
const saved = visits.get(from.key) ?? { ...departure, state: new Map<string, unknown>() };
Object.assign(saved, departure);
@@ -134,7 +171,7 @@ export function requestPageTop(): void {
requestedTop = peachHistory.navigation.seq;
if (positioned !== requestedTop) return;
requestedTop = -1;
- window.scrollTo({ top: 0, behavior: routeScrollBehavior() });
+ scrollPage({ top: 0, behavior: routeScrollBehavior() });
}
/** 新页面骨架就位即可开始导航;历史位置等待内容高度恢复,锚点等待目标出现。 */
@@ -151,8 +188,8 @@ export async function pageNavigationReady(isCurrent: () => boolean, results?: El
await new Promise<void>(resolve => requestAnimationFrame(() => resolve()));
if (!current()) return;
}
- if (!pending) releaseScrollAnchor(seq);
- if (positioned === seq) return;
+ if (!pending) contentReady = true;
+ if (positioned === seq) { releaseScrollAnchor(seq); return }
if (pending && restoring) return;
if (pending && navigation.location.hash) {
let target: Element | null;
@@ -163,25 +200,31 @@ export async function pageNavigationReady(isCurrent: () => boolean, results?: El
if (requestedTop === seq) {
requestedTop = -1;
restoring = undefined;
- window.scrollTo({ top: 0, behavior: routeScrollBehavior() });
+ scrollPage({ top: 0, behavior: routeScrollBehavior() });
} else if (restoring) {
const behavior = routeScrollBehavior();
if (behavior === 'smooth') {
window.scrollTo({ ...departure, behavior: 'instant' });
}
- window.scrollTo({ left: restoring.left, top: restoring.top, behavior });
+ scrollPage({ left: restoring.left, top: restoring.top, behavior });
restoring = undefined;
} else if (navigation.location.hash) {
await scrollToAnchor(navigation.location.hash, current);
+ if (!current()) return;
+ let target: Element | null = null;
+ try { target = document.getElementById(decodeURIComponent(navigation.location.hash.slice(1))) } catch { /* 无效锚点不定位 */ }
+ trackElementScroll(target);
} else if (navigation.action === 'REPLACE' && identity(from) === identity(navigation.location)) {
window.scrollTo({ ...departure, behavior: 'instant' });
} else if (results?.getClientRects().length && identity(from) === identity(navigation.location)
&& from.search !== navigation.location.search) {
const inset = parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop) || 0;
if (results.getBoundingClientRect().top < inset) {
+ trackElementScroll(results);
results.scrollIntoView({ block: 'start', behavior: routeScrollBehavior() });
}
} else if (seq > 0) {
- window.scrollTo({ top: 0, behavior: routeScrollBehavior() });
+ scrollPage({ top: 0, behavior: routeScrollBehavior() });
}
+ releaseScrollAnchor(seq);
}
diff --git a/frontend/src/react/router/pages/index-entity.tsx b/frontend/src/react/router/pages/index-entity.tsx
index 702205689..9a9f1d511 100644
--- a/frontend/src/react/router/pages/index-entity.tsx
+++ b/frontend/src/react/router/pages/index-entity.tsx
@@ -245,7 +245,11 @@ function EntityOpen({ target }: { target: { segment: string; kind: string; name:
{ replace: true, state: peachHistory.navigation.location.state });
return;
}
- if (!entity?.id || entity.error) { shell.missing(target.kind); return }
+ if (!entity?.id || entity.error) {
+ shell.missing(target.kind);
+ void pageNavigationReady(live);
+ return;
+ }
const name = String(entity.canonical_name || target.name);
const path = entityPath(target.kind, name, Number(entity.id));
if (path !== location.pathname) {
diff --git a/web/dist/peach-app.js b/web/dist/peach-app.js
index 8313df5ae..acc6be0c3 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] = "95e3af73-14c8-43af-b687-5fc1403a5cb6", e._sentryDebugIdIdentifier = "sentry-dbid-95e3af73-14c8-43af-b687-5fc1403a5cb6");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "7bb3ebe1-c5fd-44d4-aae2-6c87e7365cc8", e._sentryDebugIdIdentifier = "sentry-dbid-7bb3ebe1-c5fd-44d4-aae2-6c87e7365cc8");
} 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) => {
@@ -5598,7 +5598,7 @@ var k = /* @__PURE__ */ o(((e) => {
}
break;
case 18:
- xu !== null && (Su ? (e = xu, Mp(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), Zh(e)) : Mp(xu, n.stateNode));
+ xu !== null && (Su ? (e = xu, Mp(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), Xh(e)) : Mp(xu, n.stateNode));
break;
case 4:
r = xu, i = Su, xu = n.stateNode.containerInfo, Su = !0, Cu(e, t, n), xu = r, Su = i;
@@ -5631,7 +5631,7 @@ var k = /* @__PURE__ */ o(((e) => {
if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null))) {
e = e.dehydrated;
try {
- Zh(e);
+ Xh(e);
} catch (e) {
bf(t, t.return, e);
}
@@ -5639,7 +5639,7 @@ var k = /* @__PURE__ */ o(((e) => {
}
function Eu(e, t) {
if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null && (e = e.dehydrated, e !== null)))) try {
- Zh(e);
+ Xh(e);
} catch (e) {
bf(t, t.return, e);
}
@@ -5778,7 +5778,7 @@ var k = /* @__PURE__ */ o(((e) => {
break;
case 3:
if (qt = !1, $m = null, o = Au, Au = km(t.containerInfo), ku(t, e, n), Au = o, Mu(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {
- Zh(t.containerInfo);
+ Xh(t.containerInfo);
} catch (t) {
bf(e, e.return, t);
}
@@ -7817,7 +7817,7 @@ var k = /* @__PURE__ */ o(((e) => {
if (e.removeChild(n), i && i.nodeType === 8) {
if (n = i.data, n === "/$" || n === "/&") {
if (r === 0) {
- e.removeChild(i), Zh(t);
+ e.removeChild(i), Xh(t);
return;
}
r--;
@@ -7833,7 +7833,7 @@ var k = /* @__PURE__ */ o(((e) => {
}
n = i;
} while (n);
- Zh(t);
+ Xh(t);
}
function Np(e, t) {
var n = e;
@@ -8898,9 +8898,9 @@ var k = /* @__PURE__ */ o(((e) => {
function Oh(e, t, n, r) {
if (Th) {
var i = kh(r);
- if (i === null) ep(e, t, r, Ah, n), Vh(e, r);
- else if (Uh(i, e, t, n, r)) r.stopPropagation();
- else if (Vh(e, r), t & 4 && -1 < Bh.indexOf(e)) {
+ if (i === null) ep(e, t, r, Ah, n), Bh(e, r);
+ else if (Hh(i, e, t, n, r)) r.stopPropagation();
+ else if (Bh(e, r), t & 4 && -1 < zh.indexOf(e)) {
for (; i !== null;) {
var a = Pt(i);
if (a !== null) switch (a.tag) {
@@ -9036,8 +9036,8 @@ var k = /* @__PURE__ */ o(((e) => {
default: return 32;
}
}
- var Nh = !1, Ph = null, Fh = null, Ih = null, Lh = /* @__PURE__ */ new Map(), Rh = /* @__PURE__ */ new Map(), zh = [], Bh = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");
- function Vh(e, t) {
+ var Nh = !1, Ph = null, Fh = null, Ih = null, G = /* @__PURE__ */ new Map(), Lh = /* @__PURE__ */ new Map(), Rh = [], zh = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");
+ function Bh(e, t) {
switch (e) {
case "focusin":
case "focusout":
@@ -9053,13 +9053,13 @@ var k = /* @__PURE__ */ o(((e) => {
break;
case "pointerover":
case "pointerout":
- Lh.delete(t.pointerId);
+ G.delete(t.pointerId);
break;
case "gotpointercapture":
- case "lostpointercapture": Rh.delete(t.pointerId);
+ case "lostpointercapture": Lh.delete(t.pointerId);
}
}
- function Hh(e, t, n, r, i, a) {
+ function Vh(e, t, n, r, i, a) {
return e === null || e.nativeEvent !== a ? (e = {
blockedOn: t,
domEventName: n,
@@ -9068,19 +9068,19 @@ var k = /* @__PURE__ */ o(((e) => {
targetContainers: [i]
}, t !== null && (t = Pt(t), t !== null && Ch(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, i !== null && t.indexOf(i) === -1 && t.push(i), e);
}
- function Uh(e, t, n, r, i) {
+ function Hh(e, t, n, r, i) {
switch (t) {
- case "focusin": return Ph = Hh(Ph, e, t, n, r, i), !0;
- case "dragenter": return Fh = Hh(Fh, e, t, n, r, i), !0;
- case "mouseover": return Ih = Hh(Ih, e, t, n, r, i), !0;
+ case "focusin": return Ph = Vh(Ph, e, t, n, r, i), !0;
+ case "dragenter": return Fh = Vh(Fh, e, t, n, r, i), !0;
+ case "mouseover": return Ih = Vh(Ih, e, t, n, r, i), !0;
case "pointerover":
var a = i.pointerId;
- return Lh.set(a, Hh(Lh.get(a) || null, e, t, n, r, i)), !0;
- case "gotpointercapture": return a = i.pointerId, Rh.set(a, Hh(Rh.get(a) || null, e, t, n, r, i)), !0;
+ return G.set(a, Vh(G.get(a) || null, e, t, n, r, i)), !0;
+ case "gotpointercapture": return a = i.pointerId, Lh.set(a, Vh(Lh.get(a) || null, e, t, n, r, i)), !0;
}
return !1;
}
- function Wh(e) {
+ function Uh(e) {
var t = Nt(e.target);
if (t !== null) {
var n = o(t);
@@ -9107,7 +9107,7 @@ var k = /* @__PURE__ */ o(((e) => {
}
e.blockedOn = null;
}
- function Gh(e) {
+ function Wh(e) {
if (e.blockedOn !== null) return !1;
for (var t = e.targetContainers; 0 < t.length;) {
var n = kh(e.nativeEvent);
@@ -9120,19 +9120,19 @@ var k = /* @__PURE__ */ o(((e) => {
}
return !0;
}
- function Kh(e, t, n) {
- Gh(e) && n.delete(t);
+ function Gh(e, t, n) {
+ Wh(e) && n.delete(t);
}
- function qh() {
- Nh = !1, Ph !== null && Gh(Ph) && (Ph = null), Fh !== null && Gh(Fh) && (Fh = null), Ih !== null && Gh(Ih) && (Ih = null), Lh.forEach(Kh), Rh.forEach(Kh);
+ function Kh() {
+ Nh = !1, Ph !== null && Wh(Ph) && (Ph = null), Fh !== null && Wh(Fh) && (Fh = null), Ih !== null && Wh(Ih) && (Ih = null), G.forEach(Gh), Lh.forEach(Gh);
}
- function Jh(e, n) {
- e.blockedOn === n && (e.blockedOn = null, Nh || (Nh = !0, t.unstable_scheduleCallback(t.unstable_NormalPriority, qh)));
+ function qh(e, n) {
+ e.blockedOn === n && (e.blockedOn = null, Nh || (Nh = !0, t.unstable_scheduleCallback(t.unstable_NormalPriority, Kh)));
}
- var Yh = null;
- function Xh(e) {
- Yh !== e && (Yh = e, t.unstable_scheduleCallback(t.unstable_NormalPriority, function() {
- Yh === e && (Yh = null);
+ var Jh = null;
+ function Yh(e) {
+ Jh !== e && (Jh = e, t.unstable_scheduleCallback(t.unstable_NormalPriority, function() {
+ Jh === e && (Jh = null);
for (var t = 0; t < e.length; t += 3) {
var n = e[t], r = e[t + 1], i = e[t + 2];
if (typeof r != "function") {
@@ -9149,30 +9149,30 @@ var k = /* @__PURE__ */ o(((e) => {
}
}));
}
- function Zh(e) {
+ function Xh(e) {
function t(t) {
- return Jh(t, e);
+ return qh(t, e);
}
- Ph !== null && Jh(Ph, e), Fh !== null && Jh(Fh, e), Ih !== null && Jh(Ih, e), Lh.forEach(t), Rh.forEach(t);
- for (var n = 0; n < zh.length; n++) {
- var r = zh[n];
+ Ph !== null && qh(Ph, e), Fh !== null && qh(Fh, e), Ih !== null && qh(Ih, e), G.forEach(t), Lh.forEach(t);
+ for (var n = 0; n < Rh.length; n++) {
+ var r = Rh[n];
r.blockedOn === e && (r.blockedOn = null);
}
- for (; 0 < zh.length && (n = zh[0], n.blockedOn === null);) Wh(n), n.blockedOn === null && zh.shift();
+ for (; 0 < Rh.length && (n = Rh[0], n.blockedOn === null);) Uh(n), n.blockedOn === null && Rh.shift();
if (n = (e.ownerDocument || e).$$reactFormReplay, n != null) for (r = 0; r < n.length; r += 3) {
var i = n[r], a = n[r + 1], o = i[wt] || null;
- if (typeof a == "function") o || Xh(n);
+ if (typeof a == "function") o || Yh(n);
else if (o) {
var s = null;
if (a && a.hasAttribute("formAction")) {
if (i = a, o = a[wt] || null) s = o.formAction;
else if (jh(i) !== null) continue;
} else s = o.action;
- typeof s == "function" ? n[r + 1] = s : (n.splice(r, 3), r -= 3), Xh(n);
+ typeof s == "function" ? n[r + 1] = s : (n.splice(r, 3), r -= 3), Yh(n);
}
}
}
- function Qh() {
+ function Zh() {
function e(e) {
e.canIntercept && e.info === "react-transition" && e.intercept({
handler: function() {
@@ -9204,15 +9204,15 @@ var k = /* @__PURE__ */ o(((e) => {
};
}
}
- function $h(e) {
+ function Qh(e) {
this._internalRoot = e;
}
- eg.prototype.render = $h.prototype.render = function(e) {
+ $h.prototype.render = Qh.prototype.render = function(e) {
var t = this._internalRoot;
if (t === null) throw Error(i(409));
var n = t.current;
bh(n, Ld(), e, t, null, null);
- }, eg.prototype.unmount = $h.prototype.unmount = function() {
+ }, $h.prototype.unmount = Qh.prototype.unmount = function() {
var e = this._internalRoot;
if (e !== null) {
this._internalRoot = null;
@@ -9220,10 +9220,10 @@ var k = /* @__PURE__ */ o(((e) => {
bh(e.current, 2, null, e, null, null), Gd(), t[Tt] = null;
}
};
- function eg(e) {
+ function $h(e) {
this._internalRoot = e;
}
- eg.prototype.unstable_scheduleHydration = function(e) {
+ $h.prototype.unstable_scheduleHydration = function(e) {
if (e) {
var t = bt();
e = {
@@ -9231,18 +9231,18 @@ var k = /* @__PURE__ */ o(((e) => {
target: e,
priority: t
};
- for (var n = 0; n < zh.length && t !== 0 && t < zh[n].priority; n++);
- zh.splice(n, 0, e), n === 0 && Wh(e);
+ for (var n = 0; n < Rh.length && t !== 0 && t < Rh[n].priority; n++);
+ Rh.splice(n, 0, e), n === 0 && Uh(e);
}
};
- var tg = n.version;
- if (tg !== "19.3.1") throw Error(i(527, tg, "19.3.1"));
+ var eg = n.version;
+ if (eg !== "19.3.1") throw Error(i(527, eg, "19.3.1"));
L.findDOMNode = function(e) {
var t = e._reactInternals;
if (t === void 0) throw typeof e.render == "function" ? Error(i(188)) : (e = Object.keys(e).join(","), Error(i(268, e)));
return e = u(t), e = e === null ? null : d(e), e = e === null ? null : e.stateNode, e;
};
- var ng = {
+ var tg = {
bundleType: 0,
version: "19.3.1",
rendererPackageName: "react-dom",
@@ -9250,15 +9250,15 @@ var k = /* @__PURE__ */ o(((e) => {
reconcilerVersion: "19.3.1"
};
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u") {
- var rg = __REACT_DEVTOOLS_GLOBAL_HOOK__;
- if (!rg.isDisabled && rg.supportsFiber) try {
- Xe = rg.inject(ng), Ze = rg;
+ var ng = __REACT_DEVTOOLS_GLOBAL_HOOK__;
+ if (!ng.isDisabled && ng.supportsFiber) try {
+ Xe = ng.inject(tg), Ze = ng;
} catch {}
}
e.createRoot = function(e, t) {
if (!a(e)) throw Error(i(299));
var n = !1, r = "", o = Cc, s = wc, c = Tc;
- return t != null && (!0 === t.unstable_strictMode && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onUncaughtError !== void 0 && (o = t.onUncaughtError), t.onCaughtError !== void 0 && (s = t.onCaughtError), t.onRecoverableError !== void 0 && (c = t.onRecoverableError)), t = vh(e, 1, !1, null, null, n, r, null, o, s, c, Qh), e[Tt] = t.current, Qf(e), new $h(t);
+ return t != null && (!0 === t.unstable_strictMode && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onUncaughtError !== void 0 && (o = t.onUncaughtError), t.onCaughtError !== void 0 && (s = t.onCaughtError), t.onRecoverableError !== void 0 && (c = t.onRecoverableError)), t = vh(e, 1, !1, null, null, n, r, null, o, s, c, Zh), e[Tt] = t.current, Qf(e), new Qh(t);
};
})), P = /* @__PURE__ */ o(((e, t) => {
function n() {
@@ -15499,7 +15499,7 @@ async function Tp(e, t, n) {
...i,
path: e,
props: t
- }), wp(!0), e.startsWith("/") && pm(`managed:${e}`, !0), !0;
+ }), wp(!0), e.startsWith("/") && vm(`managed:${e}`, !0), !0;
_p += 1;
let a = {
revision: _p,
@@ -15511,7 +15511,7 @@ async function Tp(e, t, n) {
let s = await pp;
if (gp.get(r) !== a) return !1;
try {
- e.startsWith("/") && mm(`managed:${e}`) || await s(e, t, a.controller.signal);
+ e.startsWith("/") && ym(`managed:${e}`) || await s(e, t, a.controller.signal);
} catch {
if (a.controller.signal.aborted) return !1;
}
@@ -15525,7 +15525,7 @@ async function Tp(e, t, n) {
container: r,
host: c,
resident: !!n.resident
- }), wp(!0), e.startsWith("/") && pm(`managed:${e}`, !0), !0;
+ }), wp(!0), e.startsWith("/") && vm(`managed:${e}`, !0), !0;
}
function Ep(e) {
let t = e.ownerDocument.createElement("div");
@@ -15652,29 +15652,42 @@ async function Wp(e, t) {
var Gp = /* @__PURE__ */ new Map(), Kp = /* @__PURE__ */ new Map(), qp = /* @__PURE__ */ new Map(), Jp, Yp, Xp = {
left: window.scrollX,
top: window.scrollY
-}, Zp, Qp = -1, $p = -1, em = !1, tm = !1, nm;
-function rm() {
+}, Zp, Qp = -1, $p = -1, em = !1, tm = !1, nm, rm, im = !1, am = !1;
+function om() {
let e = document.documentElement;
- nm ??= e.style.overflowAnchor, e.style.overflowAnchor = "none", e.setAttribute("data-page-navigation-pending", ""), window.scrollTo({
+ nm ??= e.style.overflowAnchor, rm ??= e.style.minHeight, e.style.minHeight = `${e.scrollHeight}px`, im = !1, am = !1, e.style.overflowAnchor = "none", e.setAttribute("data-page-navigation-pending", ""), window.scrollTo({
left: window.scrollX,
top: window.scrollY,
behavior: "instant"
});
}
-function im(e) {
- document.documentElement.removeAttribute("data-page-navigation-pending"), requestAnimationFrame(() => requestAnimationFrame(() => {
- zp.navigation.seq === e && nm !== void 0 && (document.documentElement.style.overflowAnchor = nm, nm = void 0);
+function sm(e) {
+ im && !am && nm !== void 0 && requestAnimationFrame(() => requestAnimationFrame(() => {
+ if (zp.navigation.seq !== e || !im || am || nm === void 0) return;
+ let t = document.documentElement;
+ t.style.minHeight = rm, t.style.overflowAnchor = nm, t.removeAttribute("data-page-navigation-pending"), rm = void 0, nm = void 0;
}));
}
-var am = (e) => !ep(e) && !Kf(e) && e !== "/immerse" && e !== "/wall", om = (e) => {
+function cm(e) {
+ am = e.behavior === "smooth" && (Math.abs((e.top ?? window.scrollY) - window.scrollY) > .5 || Math.abs((e.left ?? window.scrollX) - window.scrollX) > .5), window.scrollTo(e);
+}
+function lm(e) {
+ if (!e?.getClientRects().length) {
+ am = !1;
+ return;
+ }
+ let t = parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop) || 0, n = parseFloat(getComputedStyle(e).scrollMarginTop) || 0, r = Math.max(0, Math.min(e.getBoundingClientRect().top + window.scrollY - t - n, document.documentElement.scrollHeight - window.innerHeight));
+ am = Up() === "smooth" && Math.abs(r - window.scrollY) > .5;
+}
+var um = (e) => !ep(e) && !Kf(e) && e !== "/immerse" && e !== "/wall", dm = (e) => {
let t = new URLSearchParams(e.search);
return `${e.pathname}:${t.get("jav") === "1"}:${t.get("orient") === "竖屏"}`;
-}, sm = (e) => {
+}, fm = (e) => {
let t = new URLSearchParams(e.search);
return t.delete("edit"), t.sort(), e.pathname + (t.size ? `?${t}` : "") + e.hash;
};
-function cm(e) {
- if (!am(e.pathname)) return [];
+function pm(e) {
+ if (!um(e.pathname)) return [];
if (e.pathname === "/") {
let t = new URLSearchParams(e.search);
return [t.get("jav") === "1" ? "jav" : t.get("orient") === "竖屏" ? "shorts" : ""];
@@ -15682,27 +15695,29 @@ function cm(e) {
let t = dp(e.pathname);
return [...t?.nav ? [t.nav] : [], ...t?.section ? ["manage", t.section] : []];
}
-function lm() {
+function mm() {
let e = Jp.location;
- for (let t of cm(e)) qp.set(t, e.pathname + e.search + e.hash);
+ for (let t of pm(e)) qp.set(t, e.pathname + e.search + e.hash);
}
-function um(e) {
- return fm(), cm(Jp.location).includes(e) ? Jp.location.pathname + Jp.location.search + Jp.location.hash : qp.get(e);
+function hm(e) {
+ return _m(), pm(Jp.location).includes(e) ? Jp.location.pathname + Jp.location.search + Jp.location.hash : qp.get(e);
}
-function dm() {
- fm(), em = !0;
+function gm() {
+ _m(), em = !0;
}
-function fm() {
- tm || (tm = !0, Jp = zp.navigation, Yp = Jp.location, window.history.scrollRestoration = "manual", zp.listen((e) => {
+function _m() {
+ tm || (tm = !0, Jp = zp.navigation, Yp = Jp.location, window.history.scrollRestoration = "manual", document.addEventListener("scrollend", (e) => {
+ e.target === document && (am = !1, sm(zp.navigation.seq));
+ }), zp.listen((e) => {
if (Yp = Jp.location, Xp = {
left: window.scrollX,
top: window.scrollY
- }, am(e.location.pathname) ? rm() : im(e.seq), am(Yp.pathname)) {
+ }, um(e.location.pathname) ? om() : (im = !0, am = !1, sm(e.seq)), um(Yp.pathname)) {
let e = Gp.get(Yp.key) ?? {
...Xp,
state: /* @__PURE__ */ new Map()
};
- Object.assign(e, Xp), Gp.set(Yp.key, e), Kp.set(sm(Yp), e), lm();
+ Object.assign(e, Xp), Gp.set(Yp.key, e), Kp.set(fm(Yp), e), mm();
}
if (e.action === "REPLACE") {
let t = Gp.get(Yp.key);
@@ -15710,114 +15725,124 @@ function fm() {
...t,
state: new Map(t.state)
}), Zp &&= Gp.get(e.location.key);
- } else Zp = e.action === "POP" ? Gp.get(e.location.key) : Kp.get(sm(e.location));
+ } else Zp = e.action === "POP" ? Gp.get(e.location.key) : Kp.get(fm(e.location));
em && (Zp = void 0), em = !1, Zp && (Zp = {
...Zp,
state: new Map(Zp.state)
}, Gp.set(e.location.key, Zp)), Jp = e;
}));
}
-function pm(e, t) {
- if (fm(), !am(Jp.location.pathname)) return;
+function vm(e, t) {
+ if (_m(), !um(Jp.location.pathname)) return;
let n = Gp.get(Jp.location.key) ?? {
left: window.scrollX,
top: window.scrollY,
state: /* @__PURE__ */ new Map()
};
- n.state.set(e, t), Gp.set(Jp.location.key, n), lm();
+ n.state.set(e, t), Gp.set(Jp.location.key, n), mm();
}
-function mm(e) {
- return fm(), Zp?.state.get(e);
+function ym(e) {
+ return _m(), Zp?.state.get(e);
}
-var hm = () => (fm(), !!Zp);
-function gm() {
- fm(), $p = zp.navigation.seq, Qp === $p && ($p = -1, window.scrollTo({
+var bm = () => (_m(), !!Zp);
+function xm() {
+ _m(), $p = zp.navigation.seq, Qp === $p && ($p = -1, cm({
top: 0,
behavior: Up()
}));
}
-async function _m(e, t, { pending: n = !1 } = {}) {
- fm();
+async function Sm(e, t, { pending: n = !1 } = {}) {
+ _m();
let r = zp.navigation, i = r.seq, a = () => e() && zp.navigation.seq === i;
- if (am(r.location.pathname) && a() && (lm(), !(!n && Zp && (await document.fonts?.ready, await new Promise((e) => requestAnimationFrame(() => e())), !a())) && (n || im(i), Qp !== i && !(n && Zp)))) {
- if (n && r.location.hash) {
- let e;
- try {
- e = document.getElementById(decodeURIComponent(r.location.hash.slice(1)));
- } catch {
- return;
+ if (um(r.location.pathname) && a() && (mm(), !(!n && Zp && (await document.fonts?.ready, await new Promise((e) => requestAnimationFrame(() => e())), !a())))) {
+ if (n || (im = !0), Qp === i) sm(i);
+ else if (!(n && Zp)) {
+ if (n && r.location.hash) {
+ let e;
+ try {
+ e = document.getElementById(decodeURIComponent(r.location.hash.slice(1)));
+ } catch {
+ return;
+ }
+ if (!e?.getClientRects().length) return;
}
- if (!e?.getClientRects().length) return;
- }
- if (Qp = i, $p === i) $p = -1, Zp = void 0, window.scrollTo({
- top: 0,
- behavior: Up()
- });
- else if (Zp) {
- let e = Up();
- e === "smooth" && window.scrollTo({
+ if (Qp = i, $p === i) $p = -1, Zp = void 0, cm({
+ top: 0,
+ behavior: Up()
+ });
+ else if (Zp) {
+ let e = Up();
+ e === "smooth" && window.scrollTo({
+ ...Xp,
+ behavior: "instant"
+ }), cm({
+ left: Zp.left,
+ top: Zp.top,
+ behavior: e
+ }), Zp = void 0;
+ } else if (r.location.hash) {
+ if (await Wp(r.location.hash, a), !a()) return;
+ let e = null;
+ try {
+ e = document.getElementById(decodeURIComponent(r.location.hash.slice(1)));
+ } catch {}
+ lm(e);
+ } else if (r.action === "REPLACE" && dm(Yp) === dm(r.location)) window.scrollTo({
...Xp,
behavior: "instant"
- }), window.scrollTo({
- left: Zp.left,
- top: Zp.top,
- behavior: e
- }), Zp = void 0;
- } else if (r.location.hash) await Wp(r.location.hash, a);
- else if (r.action === "REPLACE" && om(Yp) === om(r.location)) window.scrollTo({
- ...Xp,
- behavior: "instant"
- });
- else if (t?.getClientRects().length && om(Yp) === om(r.location) && Yp.search !== r.location.search) {
- let e = parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop) || 0;
- t.getBoundingClientRect().top < e && t.scrollIntoView({
- block: "start",
+ });
+ else if (t?.getClientRects().length && dm(Yp) === dm(r.location) && Yp.search !== r.location.search) {
+ let e = parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop) || 0;
+ t.getBoundingClientRect().top < e && (lm(t), t.scrollIntoView({
+ block: "start",
+ behavior: Up()
+ }));
+ } else i > 0 && cm({
+ top: 0,
behavior: Up()
});
- } else i > 0 && window.scrollTo({
- top: 0,
- behavior: Up()
- });
+ sm(i);
+ }
}
}
// node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs
-var vm = /* @__PURE__ */ (0, F.createContext)({});
+var Cm = /* @__PURE__ */ (0, F.createContext)({});
// node_modules/framer-motion/dist/es/utils/use-constant.mjs
-function ym(e) {
+function wm(e) {
let t = (0, F.useRef)(null);
return t.current === null && (t.current = e()), t.current;
}
// node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs
-var bm = typeof window < "u" ? F.useLayoutEffect : F.useEffect, xm = /* @__PURE__ */ (0, F.createContext)(null);
+var Tm = typeof window < "u" ? F.useLayoutEffect : F.useEffect, Em = /* @__PURE__ */ (0, F.createContext)(null);
// node_modules/motion-utils/dist/es/array.mjs
-function Sm(e, t) {
+function Dm(e, t) {
e.indexOf(t) === -1 && e.push(t);
}
-function Cm(e, t) {
+function Om(e, t) {
let n = e.indexOf(t);
n > -1 && e.splice(n, 1);
}
// node_modules/motion-utils/dist/es/clamp.mjs
-var wm = (e, t, n) => n > t ? t : n < e ? e : n, Tm = {}, Em = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), Dm = (e) => typeof e == "object" && !!e, Om = (e) => /^0[^.\s]+$/u.test(e);
+var km = (e, t, n) => n > t ? t : n < e ? e : n, Am = {}, jm = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), Mm = (e) => typeof e == "object" && !!e, Nm = (e) => /^0[^.\s]+$/u.test(e);
// node_modules/motion-utils/dist/es/memo.mjs
/*#__NO_SIDE_EFFECTS__*/
-function km(e) {
+function Pm(e) {
let t;
return () => (t === void 0 && (t = e()), t);
}
// node_modules/motion-utils/dist/es/noop.mjs
-var Am = /* @__NO_SIDE_EFFECTS__ */ (e) => e, jm = (...e) => e.reduce((e, t) => (n) => t(e(n))), Mm = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
+var Fm = /* @__NO_SIDE_EFFECTS__ */ (e) => e, Im = (...e) => e.reduce((e, t) => (n) => t(e(n))), Lm = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
let r = t - e;
return r ? (n - e) / r : 1;
-}, Nm = class {
+}, Rm = class {
constructor() {
this.subscriptions = [];
}
add(e) {
- return Sm(this.subscriptions, e), () => this.remove(e);
+ return Dm(this.subscriptions, e), () => this.remove(e);
}
remove(e) {
- Cm(this.subscriptions, e);
+ Om(this.subscriptions, e);
}
notify(e, t, n) {
let r = this.subscriptions.length;
@@ -15835,146 +15860,146 @@ var Am = /* @__NO_SIDE_EFFECTS__ */ (e) => e, jm = (...e) => e.reduce((e, t) =>
clear() {
this.subscriptions.length = 0;
}
-}, Pm = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, Fm = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, Im = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? 1e3 / t * e : 0, Lm = (e, t, n) => {
+}, zm = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, Bm = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, Vm = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? 1e3 / t * e : 0, Hm = (e, t, n) => {
let r = t - e;
return ((n - e) % r + r) % r + e;
-}, Rm = (e, t, n) => e * (3 * (1 - e) * ((1 - e) * t + e * n) + e * e);
+}, Um = (e, t, n) => e * (3 * (1 - e) * ((1 - e) * t + e * n) + e * e);
/*#__NO_SIDE_EFFECTS__*/
-function zm(e, t, n, r) {
- return e === t && n === r ? Am : (i) => {
+function Wm(e, t, n, r) {
+ return e === t && n === r ? Fm : (i) => {
let a = 0, o = 1, s = i;
for (let t = 0;; t++) {
s >= a && s <= o || (s = (a + o) / 2);
- let r = Rm(s, e, n) - i;
+ let r = Um(s, e, n) - i;
if (r * r < 1e-28 || t === 40) break;
- r > 0 ? o = s : a = s, s -= r * 1e-7 / (Rm(s + 1e-7, e, n) - i - r);
+ r > 0 ? o = s : a = s, s -= r * 1e-7 / (Um(s + 1e-7, e, n) - i - r);
}
- return Rm(s, t, r);
+ return Um(s, t, r);
};
}
// node_modules/motion-utils/dist/es/easing/modifiers/mirror.mjs
-var Bm = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Vm = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => 1 - e(1 - t), Hm = /*@__PURE__*/ zm(.33, 1.53, .69, .99), Um = /*@__PURE__*/ Vm(Hm), Wm = /*@__PURE__*/ Bm(Um), Gm = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * Um(e) : .5 * (2 - 2 ** (-10 * (e - 1))), Km = (e) => 1 - Math.sin(Math.acos(e)), qm = /* @__PURE__ */ Vm(Km), Jm = /* @__PURE__ */ Bm(Km), Ym = /*@__PURE__*/ zm(.42, 0, 1, 1), Xm = /*@__PURE__*/ zm(0, 0, .58, 1), Zm = /*@__PURE__*/ zm(.42, 0, .58, 1), Qm = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] != "number";
+var Gm = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Km = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => 1 - e(1 - t), qm = /*@__PURE__*/ Wm(.33, 1.53, .69, .99), Jm = /*@__PURE__*/ Km(qm), Ym = /*@__PURE__*/ Gm(Jm), Xm = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * Jm(e) : .5 * (2 - 2 ** (-10 * (e - 1))), Zm = (e) => 1 - Math.sin(Math.acos(e)), Qm = /* @__PURE__ */ Km(Zm), $m = /* @__PURE__ */ Gm(Zm), eh = /*@__PURE__*/ Wm(.42, 0, 1, 1), th = /*@__PURE__*/ Wm(0, 0, .58, 1), nh = /*@__PURE__*/ Wm(.42, 0, .58, 1), rh = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] != "number";
// node_modules/motion-utils/dist/es/easing/utils/get-easing-for-segment.mjs
/*#__NO_SIDE_EFFECTS__*/
-function $m(e, t) {
- return /* @__PURE__ */ Qm(e) ? e[Lm(0, e.length, t)] : e;
+function ih(e, t) {
+ return /* @__PURE__ */ rh(e) ? e[Hm(0, e.length, t)] : e;
}
// node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.mjs
-var eh = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", th = {
- linear: Am,
- easeIn: Ym,
- easeInOut: Zm,
- easeOut: Xm,
- circIn: Km,
- circInOut: Jm,
- circOut: qm,
- backIn: Um,
- backInOut: Wm,
- backOut: Hm,
- anticipate: Gm
-}, nh = (e) => typeof e == "string", rh = (e) => {
- if (/* @__PURE__ */ eh(e)) {
+var ah = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", oh = {
+ linear: Fm,
+ easeIn: eh,
+ easeInOut: nh,
+ easeOut: th,
+ circIn: Zm,
+ circInOut: $m,
+ circOut: Qm,
+ backIn: Jm,
+ backInOut: Ym,
+ backOut: qm,
+ anticipate: Xm
+}, sh = (e) => typeof e == "string", ch = (e) => {
+ if (/* @__PURE__ */ ah(e)) {
let [t, n, r, i] = e;
- return /* @__PURE__ */ zm(t, n, r, i);
+ return /* @__PURE__ */ Wm(t, n, r, i);
}
- return nh(e) ? th[e] : e;
-}, ih = {
+ return sh(e) ? oh[e] : e;
+}, lh = {
delta: 0,
timestamp: 0,
isProcessing: !1
-}, ah;
-function oh() {
- ah = void 0;
+}, uh;
+function dh() {
+ uh = void 0;
}
-var sh = {
- now: () => (ah === void 0 && sh.set(ih.isProcessing || Tm.useManualTiming ? ih.timestamp : performance.now()), ah),
+var fh = {
+ now: () => (uh === void 0 && fh.set(lh.isProcessing || Am.useManualTiming ? lh.timestamp : performance.now()), uh),
set: (e) => {
- ah = e, queueMicrotask(oh);
+ uh = e, queueMicrotask(dh);
}
-}, ch = (e) => Math.round(e * 1e5) / 1e5, lh = (e) => (t) => typeof t == "string" && t.startsWith(e), uh = /*@__PURE__*/ lh("--"), dh = /*@__PURE__*/ lh("var(--"), fh = (e) => dh(e) ? ph.test(e.split("/*")[0].trim()) : !1, ph = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
-function mh(e) {
+}, ph = (e) => Math.round(e * 1e5) / 1e5, mh = (e) => (t) => typeof t == "string" && t.startsWith(e), hh = /*@__PURE__*/ mh("--"), gh = /*@__PURE__*/ mh("var(--"), _h = (e) => gh(e) ? vh.test(e.split("/*")[0].trim()) : !1, vh = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
+function yh(e) {
return typeof e == "string" && e.split("/*")[0].includes("var(--");
}
// node_modules/motion-dom/dist/es/value/types/numbers/index.mjs
-var hh = {
+var bh = {
test: (e) => typeof e == "number",
parse: parseFloat,
transform: (e) => e
-}, gh = {
- ...hh,
- transform: (e) => wm(0, 1, e)
-}, _h = {
- ...hh,
+}, xh = {
+ ...bh,
+ transform: (e) => km(0, 1, e)
+}, Sh = {
+ ...bh,
default: 1
-}, vh = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
+}, Ch = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
// node_modules/motion-dom/dist/es/value/types/utils/is-nullish.mjs
-function yh(e) {
+function wh(e) {
return e == null;
}
// node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.mjs
-var bh = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, xh = (e, t) => (n) => !!(typeof n == "string" && bh.test(n) && n.startsWith(e) || t && !yh(n) && Object.prototype.hasOwnProperty.call(n, t)), Sh = (e, t, n) => (r) => {
+var Th = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, Eh = (e, t) => (n) => !!(typeof n == "string" && Th.test(n) && n.startsWith(e) || t && !wh(n) && Object.prototype.hasOwnProperty.call(n, t)), Dh = (e, t, n) => (r) => {
if (typeof r != "string") return r;
- let [i, a, o, s] = r.match(vh);
+ let [i, a, o, s] = r.match(Ch);
return {
[e]: parseFloat(i),
[t]: parseFloat(a),
[n]: parseFloat(o),
alpha: s === void 0 ? 1 : parseFloat(s)
};
-}, Ch = (e) => wm(0, 255, e), wh = {
- ...hh,
- transform: (e) => Math.round(Ch(e))
-}, Th = {
- test: /*@__PURE__*/ xh("rgb", "red"),
- parse: /*@__PURE__*/ Sh("red", "green", "blue"),
- transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + wh.transform(e) + ", " + wh.transform(t) + ", " + wh.transform(n) + ", " + ch(gh.transform(r)) + ")"
-}, Eh = (e, t, n) => {
+}, Oh = (e) => km(0, 255, e), kh = {
+ ...bh,
+ transform: (e) => Math.round(Oh(e))
+}, Ah = {
+ test: /*@__PURE__*/ Eh("rgb", "red"),
+ parse: /*@__PURE__*/ Dh("red", "green", "blue"),
+ transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + kh.transform(e) + ", " + kh.transform(t) + ", " + kh.transform(n) + ", " + ph(xh.transform(r)) + ")"
+}, jh = (e, t, n) => {
let r = e.substring(1 + t * n, 1 + (t + 1) * n);
return n > 1 ? r : r + r;
};
-function Dh(e) {
- let t = e.length > 5 ? 2 : 1, n = Eh(e, 3, t);
+function Mh(e) {
+ let t = e.length > 5 ? 2 : 1, n = jh(e, 3, t);
return {
- red: parseInt(Eh(e, 0, t), 16),
- green: parseInt(Eh(e, 1, t), 16),
- blue: parseInt(Eh(e, 2, t), 16),
+ red: parseInt(jh(e, 0, t), 16),
+ green: parseInt(jh(e, 1, t), 16),
+ blue: parseInt(jh(e, 2, t), 16),
alpha: n ? parseInt(n, 16) / 255 : 1
};
}
-var Oh = {
- test: /*@__PURE__*/ xh("#"),
- parse: Dh,
- transform: Th.transform
-}, kh = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
+var Nh = {
+ test: /*@__PURE__*/ Eh("#"),
+ parse: Mh,
+ transform: Ah.transform
+}, Ph = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
parse: parseFloat,
transform: (t) => `${t}${e}`
-}), Ah = /*@__PURE__*/ kh("deg"), jh = /*@__PURE__*/ kh("%"), Mh = /*@__PURE__*/ kh("px"), Nh = /*@__PURE__*/ kh("vh"), Ph = /*@__PURE__*/ kh("vw"), Fh = {
- ...jh,
- parse: (e) => jh.parse(e) / 100,
- transform: (e) => jh.transform(e * 100)
-}, Ih = {
- test: /*@__PURE__*/ xh("hsl", "hue"),
- parse: /*@__PURE__*/ Sh("hue", "saturation", "lightness"),
- transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + jh.transform(ch(t)) + ", " + jh.transform(ch(n)) + ", " + ch(gh.transform(r)) + ")"
-}, Lh = {
- test: (e) => Th.test(e) || Oh.test(e) || Ih.test(e),
- parse: (e) => Th.test(e) ? Th.parse(e) : Ih.test(e) ? Ih.parse(e) : Oh.parse(e),
- transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? Th.transform(e) : Ih.transform(e),
+}), Fh = /*@__PURE__*/ Ph("deg"), Ih = /*@__PURE__*/ Ph("%"), G = /*@__PURE__*/ Ph("px"), Lh = /*@__PURE__*/ Ph("vh"), Rh = /*@__PURE__*/ Ph("vw"), zh = {
+ ...Ih,
+ parse: (e) => Ih.parse(e) / 100,
+ transform: (e) => Ih.transform(e * 100)
+}, Bh = {
+ test: /*@__PURE__*/ Eh("hsl", "hue"),
+ parse: /*@__PURE__*/ Dh("hue", "saturation", "lightness"),
+ transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + Ih.transform(ph(t)) + ", " + Ih.transform(ph(n)) + ", " + ph(xh.transform(r)) + ")"
+}, Vh = {
+ test: (e) => Ah.test(e) || Nh.test(e) || Bh.test(e),
+ parse: (e) => Ah.test(e) ? Ah.parse(e) : Bh.test(e) ? Bh.parse(e) : Nh.parse(e),
+ transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? Ah.transform(e) : Bh.transform(e),
getAnimatableNone: (e) => {
- let t = Lh.parse(e);
- return t.alpha = 0, Lh.transform(t);
+ let t = Vh.parse(e);
+ return t.alpha = 0, Vh.transform(t);
}
-}, Rh = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu, zh = /*@__PURE__*/ new RegExp(vh.source), Bh = /*@__PURE__*/ new RegExp(Rh.source, "i");
-function Vh(e) {
- return isNaN(e) && typeof e == "string" && (zh.test(e) || Bh.test(e));
+}, Hh = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu, Uh = /*@__PURE__*/ new RegExp(Ch.source), Wh = /*@__PURE__*/ new RegExp(Hh.source, "i");
+function Gh(e) {
+ return isNaN(e) && typeof e == "string" && (Uh.test(e) || Wh.test(e));
}
-var Hh = "number", Uh = "color", Wh = "var", Gh = "var(", Kh = "${}", qh = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)(?![a-z]*\()/giu;
-function Jh(e) {
+var Kh = "number", qh = "color", Jh = "var", Yh = "var(", Xh = "${}", Zh = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)(?![a-z]*\()/giu;
+function Qh(e) {
let t = e.toString();
- return zh.test(t) || Bh.test(t);
+ return Uh.test(t) || Wh.test(t);
}
-function Yh(e) {
+function $h(e) {
let t = e.toString(), n = [], r = {
color: [],
number: [],
@@ -15982,50 +16007,50 @@ function Yh(e) {
}, i = [], a = 0;
return {
values: n,
- split: t.replace(qh, (e) => (Lh.test(e) ? (r.color.push(a), i.push(Uh), n.push(Lh.parse(e))) : e.startsWith(Gh) ? (r.var.push(a), i.push(Wh), n.push(e)) : (r.number.push(a), i.push(Hh), n.push(parseFloat(e))), ++a, Kh)).split(Kh),
+ split: t.replace(Zh, (e) => (Vh.test(e) ? (r.color.push(a), i.push(qh), n.push(Vh.parse(e))) : e.startsWith(Yh) ? (r.var.push(a), i.push(Jh), n.push(e)) : (r.number.push(a), i.push(Kh), n.push(parseFloat(e))), ++a, Xh)).split(Xh),
indexes: r,
types: i
};
}
-function Xh(e) {
- return Yh(e).values;
+function eg(e) {
+ return $h(e).values;
}
-function Zh({ split: e, types: t }) {
+function tg({ split: e, types: t }) {
let n = e.length;
return (r) => {
let i = "";
for (let a = 0; a < n; a++) if (i += e[a], r[a] !== void 0) {
let e = t[a];
- i += e === Hh ? ch(r[a]) : e === Uh ? Lh.transform(r[a]) : r[a];
+ i += e === Kh ? ph(r[a]) : e === qh ? Vh.transform(r[a]) : r[a];
}
return i;
};
}
-function Qh(e) {
- return Zh(Yh(e));
-}
-var $h = (e) => typeof e == "number" ? 0 : Lh.test(e) ? Lh.getAnimatableNone(e) : e, eg = (e, t) => typeof e == "number" ? t?.trim().endsWith("/") ? e : 0 : $h(e);
-function tg(e) {
- let t = Yh(e);
- return Zh(t)(t.values.map((e, n) => eg(e, t.split[n])));
-}
-var ng = {
- test: Vh,
- parse: Xh,
- createTransformer: Qh,
- getAnimatableNone: tg
+function ng(e) {
+ return tg($h(e));
+}
+var eee = (e) => typeof e == "number" ? 0 : Vh.test(e) ? Vh.getAnimatableNone(e) : e, rg = (e, t) => typeof e == "number" ? t?.trim().endsWith("/") ? e : 0 : eee(e);
+function ig(e) {
+ let t = $h(e);
+ return tg(t)(t.values.map((e, n) => rg(e, t.split[n])));
+}
+var ag = {
+ test: Gh,
+ parse: eg,
+ createTransformer: ng,
+ getAnimatableNone: ig
};
// node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs
-function rg(e, t, n) {
+function og(e, t, n) {
return n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
}
-function eee({ hue: e, saturation: t, lightness: n, alpha: r }) {
+function sg({ hue: e, saturation: t, lightness: n, alpha: r }) {
e /= 360, t /= 100, n /= 100;
let i = 0, a = 0, o = 0;
if (!t) i = a = o = n;
else {
let r = n < .5 ? n * (1 + t) : n + t - n * t, s = 2 * n - r;
- i = rg(s, r, e + 1 / 3), a = rg(s, r, e), o = rg(s, r, e - 1 / 3);
+ i = og(s, r, e + 1 / 3), a = og(s, r, e), o = og(s, r, e - 1 / 3);
}
return {
red: Math.round(i * 255),
@@ -16035,42 +16060,42 @@ function eee({ hue: e, saturation: t, lightness: n, alpha: r }) {
};
}
// node_modules/motion-dom/dist/es/utils/mix/immediate.mjs
-function ig(e, t) {
+function cg(e, t) {
return (n) => n > 0 ? t : e;
}
// node_modules/motion-dom/dist/es/utils/mix/number.mjs
-var ag = (e, t, n) => e + (t - e) * n, og = (e, t, n) => {
+var lg = (e, t, n) => e + (t - e) * n, ug = (e, t, n) => {
let r = e * e, i = n * (t * t - r) + r;
return i < 0 ? 0 : Math.sqrt(i);
}, tee = [
- Oh,
- Th,
- Ih
+ Nh,
+ Ah,
+ Bh
], nee = (e) => tee.find((t) => t.test(e));
-function sg(e) {
+function dg(e) {
let t = nee(e);
if (!t) return !1;
let n = t.parse(e);
- return t === Ih && (n = eee(n)), n;
+ return t === Bh && (n = sg(n)), n;
}
-var cg = (e, t) => {
- let n = sg(e), r = sg(t);
- if (!n || !r) return ig(e, t);
+var fg = (e, t) => {
+ let n = dg(e), r = dg(t);
+ if (!n || !r) return cg(e, t);
let i = { ...n };
- return (e) => (i.red = og(n.red, r.red, e), i.green = og(n.green, r.green, e), i.blue = og(n.blue, r.blue, e), i.alpha = ag(n.alpha, r.alpha, e), Th.transform(i));
-}, lg = /* @__PURE__ */ new Set(["none", "hidden"]);
+ return (e) => (i.red = ug(n.red, r.red, e), i.green = ug(n.green, r.green, e), i.blue = ug(n.blue, r.blue, e), i.alpha = lg(n.alpha, r.alpha, e), Ah.transform(i));
+}, pg = /* @__PURE__ */ new Set(["none", "hidden"]);
function ree(e, t) {
- return lg.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
+ return pg.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
}
// node_modules/motion-dom/dist/es/utils/mix/complex.mjs
function iee(e, t) {
- return (n) => ag(e, t, n);
+ return (n) => lg(e, t, n);
}
-function ug(e) {
- return typeof e == "number" ? iee : typeof e == "string" ? fh(e) ? ig : Lh.test(e) ? cg : see : Array.isArray(e) ? dg : typeof e == "object" ? Lh.test(e) ? cg : aee : ig;
+function mg(e) {
+ return typeof e == "number" ? iee : typeof e == "string" ? _h(e) ? cg : Vh.test(e) ? fg : see : Array.isArray(e) ? hg : typeof e == "object" ? Vh.test(e) ? fg : aee : cg;
}
-function dg(e, t) {
- let n = [...e], r = n.length, i = e.map((e, n) => ug(e)(e, t[n]));
+function hg(e, t) {
+ let n = [...e], r = n.length, i = e.map((e, n) => mg(e)(e, t[n]));
return (e) => {
for (let t = 0; t < r; t++) n[t] = i[t](e);
return n;
@@ -16081,7 +16106,7 @@ function aee(e, t) {
...e,
...t
}, r = {};
- for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] = ug(e[i])(e[i], t[i]));
+ for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] = mg(e[i])(e[i], t[i]));
return (e) => {
for (let t in r) n[t] = r[t](e);
return n;
@@ -16100,27 +16125,27 @@ function oee(e, t) {
return n;
}
var see = (e, t) => {
- let n = Yh(e), r = Yh(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 ? lg.has(e) && !r.values.length || lg.has(t) && !n.values.length ? ree(e, t) : jm(dg(oee(n, r), r.values), Zh(r)) : ig(e, t);
-}, fg = /^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;
+ let n = $h(e), r = $h(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 ? pg.has(e) && !r.values.length || pg.has(t) && !n.values.length ? ree(e, t) : Im(hg(oee(n, r), r.values), tg(r)) : cg(e, t);
+}, gg = /^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;
function cee(e, t) {
- let n = fg.exec(e);
+ let n = gg.exec(e);
if (!n) return;
- let r = fg.exec(t);
+ let r = gg.exec(t);
if (!r || n[2] !== r[2]) return;
let i = n[2], a = parseFloat(n[1]), o = parseFloat(r[1]);
- return (e) => ch(ag(a, o, e)) + i;
+ return (e) => ph(lg(a, o, e)) + i;
}
-function pg(e, t, n) {
- if (typeof e == "number" && typeof t == "number" && typeof n == "number") return ag(e, t, n);
+function _g(e, t, n) {
+ if (typeof e == "number" && typeof t == "number" && typeof n == "number") return lg(e, t, n);
if (typeof e == "string" && typeof t == "string") {
let n = cee(e, t);
if (n) return n;
}
- return ug(e)(e, t);
+ return mg(e)(e, t);
}
// node_modules/motion-dom/dist/es/frameloop/order.mjs
-var mg = [
+var vg = [
"setup",
"read",
"resolveKeyframes",
@@ -16162,116 +16187,116 @@ function lee(e) {
}
// node_modules/motion-dom/dist/es/frameloop/batcher.mjs
var uee = 40;
-function hg(e, t, n = {
+function yg(e, t, n = {
delta: 0,
timestamp: 0,
isProcessing: !1
}) {
- let r = !1, i = !0, a = () => r = !0, o = mg.reduce((e, t) => (e[t] = lee(a), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
- let a = Tm.useManualTiming, o = a ? n.timestamp : performance.now();
+ let r = !1, i = !0, a = () => r = !0, o = vg.reduce((e, t) => (e[t] = lee(a), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
+ let a = Am.useManualTiming, o = a ? n.timestamp : performance.now();
r = !1, a || (n.delta = i ? 1e3 / 60 : Math.max(Math.min(o - n.timestamp, uee), 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: mg.reduce((e, t) => {
+ schedule: vg.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 < mg.length; t++) o[mg[t]].cancel(e);
+ for (let t = 0; t < vg.length; t++) o[vg[t]].cancel(e);
},
state: n,
steps: o
};
}
// node_modules/motion-dom/dist/es/frameloop/frame.mjs
-var { schedule: gg, cancel: _g, steps: vg } = /* @__PURE__ */ hg(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Am, !0, ih), yg = (e) => {
+var { schedule: bg, cancel: xg, steps: Sg } = /* @__PURE__ */ yg(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Fm, !0, lh), Cg = (e) => {
let t = ({ timestamp: t }) => e(t);
return {
- start: (e = !0) => gg.update(t, e),
- stop: () => _g(t),
- now: () => ih.isProcessing ? ih.timestamp : sh.now()
+ start: (e = !0) => bg.update(t, e),
+ stop: () => xg(t),
+ now: () => lh.isProcessing ? lh.timestamp : fh.now()
};
-}, bg = (e, t, n = 10) => {
+}, wg = (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)})`;
-}, xg = 2e4;
-function Sg(e, t = 50, n = xg, r) {
+}, Tg = 2e4;
+function Eg(e, t = 50, n = Tg, 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 Cg(e, t = 100, n) {
+function Dg(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(Sg(o), xg);
+ }), s = Math.min(Eg(o), Tg);
return {
type: "keyframes",
ease: (e) => o.next(s * e).value / t,
- duration: /* @__PURE__ */ Fm(s)
+ duration: /* @__PURE__ */ Bm(s)
};
}
// node_modules/motion-dom/dist/es/animation/generators/spring.mjs
-var wg = 100, Tg = 10, dee = 1, fee = 800, Eg = .3, pee = .3, mee = .01, hee = 2, gee = .005, _ee = .5, vee = .01, yee = 10, Dg = .05, Og = (e) => e < 0 ? 1 / Math.max(1 + e, Dg) : Math.max(1 - e, Dg);
-function kg(e, t) {
+var Og = 100, kg = 10, dee = 1, fee = 800, Ag = .3, pee = .3, mee = .01, hee = 2, gee = .005, _ee = .5, vee = .01, yee = 10, jg = .05, Mg = (e) => e < 0 ? 1 / Math.max(1 + e, jg) : Math.max(1 - e, jg);
+function Ng(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 Mg((e) => i * Math.exp(-r * e) - r * Math.exp(-i * e) - a, (e) => Math.exp(-i * e) - Math.exp(-r * e), t) / t;
+ return Fg((e) => i * Math.exp(-r * e) - r * Math.exp(-i * e) - a, (e) => Math.exp(-i * e) - Math.exp(-r * e), t) / t;
}
-function Ag(e, t) {
+function Pg(e, t) {
return e * Math.sqrt(1 - t * t);
}
-var jg = 12;
-function Mg(e, t, n) {
+var bee = 12;
+function Fg(e, t, n) {
let r = n;
- for (let n = 1; n < jg; n++) r -= e(r) / t(r);
+ for (let n = 1; n < bee; n++) r -= e(r) / t(r);
return r;
}
-var Ng = .001;
-function bee({ duration: e = fee, bounce: t = Eg }) {
- let n, r, i = Og(t);
- e = wm(vee, yee, /* @__PURE__ */ Fm(e)), i < 1 ? (n = (t) => {
- let n = t * i, r = n * e, a = Ag(t, i), o = Math.exp(-r);
- return Ng - n / a * o;
+var Ig = .001;
+function xee({ duration: e = fee, bounce: t = Ag }) {
+ let n, r, i = Mg(t);
+ e = km(vee, yee, /* @__PURE__ */ Bm(e)), i < 1 ? (n = (t) => {
+ let n = t * i, r = n * e, a = Pg(t, i), o = Math.exp(-r);
+ return Ig - n / a * o;
}, r = (t) => {
- let r = t * i * e, a = i * i * t * t * e, o = Math.exp(-r), s = Ag(t * t, i);
- return (-n(t) + Ng > 0 ? -1 : 1) * -a * o / s;
+ let r = t * i * e, a = i * i * t * t * e, o = Math.exp(-r), s = Pg(t * t, i);
+ return (-n(t) + Ig > 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 = Mg(n, r, a), s = o * kg(i, o * e), c = s * s;
+ let a = 5 / e, o = Fg(n, r, a), s = o * Ng(i, o * e), c = s * s;
return {
stiffness: c,
damping: i * 2 * Math.sqrt(c),
- duration: /* @__PURE__ */ Pm(e)
+ duration: /* @__PURE__ */ zm(e)
};
}
-var Pg = (e, t) => (t ? e >= 0 : e > 0) && e < Infinity;
-function Fg(e, t) {
- if (Pg(e, t)) return e;
+var Lg = (e, t) => (t ? e >= 0 : e > 0) && e < Infinity;
+function Rg(e, t) {
+ if (Lg(e, t)) return e;
}
-function xee(e) {
- let t = Fg(e.stiffness), n = Fg(e.damping, !0), r = Fg(e.mass), i = {
+function See(e) {
+ let t = Rg(e.stiffness), n = Rg(e.damping, !0), r = Rg(e.mass), i = {
...e,
- stiffness: t ?? wg,
- damping: n ?? Tg,
+ stiffness: t ?? Og,
+ damping: n ?? kg,
mass: r ?? dee,
isResolvedFromDuration: !1,
isTimeDefined: (t ?? n ?? r) === void 0 && (e.duration !== void 0 || e.bounce !== void 0)
};
if (i.isTimeDefined) {
if (e.visualDuration) {
- let t = Og(e.bounce || 0), n = 2 * Math.PI / (e.visualDuration * 1.2) * kg(t, 2 * Math.PI / 1.2);
+ let t = Mg(e.bounce || 0), n = 2 * Math.PI / (e.visualDuration * 1.2) * Ng(t, 2 * Math.PI / 1.2);
i.stiffness = n * n, i.damping = 2 * t * Math.sqrt(i.stiffness);
- } else Object.assign(i, bee(i)), i.isResolvedFromDuration = !0;
- Pg(i.stiffness) && Pg(i.damping, !0) || (i.stiffness = wg, i.damping = Tg);
+ } else Object.assign(i, xee(i)), i.isResolvedFromDuration = !0;
+ Lg(i.stiffness) && Lg(i.damping, !0) || (i.stiffness = Og, i.damping = kg);
}
return i;
}
-function Ig(e = pee, t = Eg) {
+function zg(e = pee, t = Ag) {
let n = typeof e == "object" ? e : {
visualDuration: e,
keyframes: [0, 1],
@@ -16279,7 +16304,7 @@ function Ig(e = pee, t = Eg) {
}, 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 } = xee({ ...n }), f = (e) => d ? 0 : -/* @__PURE__ */ Fm(e), p = s / (2 * Math.sqrt(o * c)), m = /* @__PURE__ */ Fm(Math.sqrt(o / c)), h = p * m, g = {
+ }, { stiffness: o, damping: s, mass: c, duration: l, isResolvedFromDuration: u, isTimeDefined: d } = See({ ...n }), f = (e) => d ? 0 : -/* @__PURE__ */ Bm(e), p = s / (2 * Math.sqrt(o * c)), m = /* @__PURE__ */ Bm(Math.sqrt(o / c)), h = p * m, g = {
target: i,
delta: i - r,
velocity: f(n.velocity || 0) || 0,
@@ -16292,7 +16317,7 @@ function Ig(e = pee, t = Eg) {
_();
let v, y, b;
if (p < 1) {
- let e = Ag(m, p), t = {
+ let e = Pg(m, p), t = {
A: 0,
sinC: 0,
cosC: 0,
@@ -16330,30 +16355,30 @@ function Ig(e = pee, t = Eg) {
retarget: (e, t) => {
g.target = e[e.length - 1], g.delta = g.target - e[0], g.velocity = f(t), n.restSpeed && n.restDelta || _(), S.calculatedDuration = x, a.done = !1, b();
},
- velocity: (e) => /* @__PURE__ */ Pm(y(e)),
+ velocity: (e) => /* @__PURE__ */ zm(y(e)),
next: (e) => {
let t = v(e);
if (u) a.done = e >= l;
else {
- let n = /* @__PURE__ */ Pm(y(e));
+ let n = /* @__PURE__ */ zm(y(e));
a.done = Math.abs(n) <= g.restSpeed && Math.abs(g.target - t) <= g.restDelta;
}
return a.value = a.done ? g.target : t, a;
},
toString: () => {
- let e = Math.min(Sg(S), xg), t = bg((t) => S.next(e * t).value, e, 30);
+ let e = Math.min(Eg(S), Tg), t = wg((t) => S.next(e * t).value, e, 30);
return e + "ms " + t;
},
toTransition: () => {}
};
return S;
}
-var Lg = /* @__PURE__ */ Object.assign(Ig, { applyToOptions: (e) => {
- let t = Cg(e, 100, Ig);
- return e.ease = t.ease, e.duration = /* @__PURE__ */ Pm(t.duration), e.type = "keyframes", e;
+var Bg = /* @__PURE__ */ Object.assign(zg, { applyToOptions: (e) => {
+ let t = Dg(e, 100, zg);
+ return e.ease = t.ease, e.duration = /* @__PURE__ */ zm(t.duration), e.type = "keyframes", e;
} });
// node_modules/motion-dom/dist/es/animation/generators/inertia.mjs
-function Rg({ 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 Vg({ 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
@@ -16363,7 +16388,7 @@ function Rg({ 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 = Lg({
+ p(f.value) && (b = e, x = Bg({
keyframes: [f.value, m(f.value)],
velocity: -v(e) / r * 1e3,
damping: i,
@@ -16381,64 +16406,64 @@ function Rg({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
};
}
// node_modules/motion-dom/dist/es/utils/interpolate.mjs
-function See(e, t, n) {
- let r = [], i = Tm.mix || pg, a = e.length - 1;
+function Cee(e, t, n) {
+ let r = [], i = Am.mix || _g, 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 = jm(Array.isArray(t) ? t[o] || Am : t, a)), r.push(a);
+ t && (a = Im(Array.isArray(t) ? t[o] || Fm : t, a)), r.push(a);
}
return r;
}
-function zg(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
+function Hg(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 = See(t, r, i), c = s.length, l = (n) => {
+ let s = Cee(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++);
- let i = /* @__PURE__ */ Mm(e[r], e[r + 1], n);
+ let i = /* @__PURE__ */ Lm(e[r], e[r + 1], n);
return s[r](i);
};
- return n ? (t) => l(wm(e[0], e[a - 1], t)) : l;
+ return n ? (t) => l(km(e[0], e[a - 1], t)) : l;
}
// node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs
-function Bg(e, t) {
+function Ug(e, t) {
let n = e[e.length - 1];
for (let r = 1; r <= t; r++) {
- let i = /* @__PURE__ */ Mm(0, t, r);
- e.push(ag(n, 1, i));
+ let i = /* @__PURE__ */ Lm(0, t, r);
+ e.push(lg(n, 1, i));
}
}
// node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs
-function Vg(e) {
+function Wg(e) {
let t = [0];
- return Bg(t, e.length - 1), t;
+ return Ug(t, e.length - 1), t;
}
// node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs
-function Cee(e, t) {
+function wee(e, t) {
return e.map((e) => e * t);
}
// node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs
-function wee(e, t) {
- return e.map(() => t || Zm).splice(0, e.length - 1);
+function Tee(e, t) {
+ return e.map(() => t || nh).splice(0, e.length - 1);
}
-function Hg({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut", mixer: i }) {
- let a = typeof t[0] == "number" ? void 0 : i, o = /* @__PURE__ */ Qm(r) ? r.map(rh) : rh(r) || Zm, s = {
+function Gg({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut", mixer: i }) {
+ let a = typeof t[0] == "number" ? void 0 : i, o = /* @__PURE__ */ rh(r) ? r.map(ch) : ch(r) || nh, 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 : (Tm.mix || pg)(n, r);
+ let [n, r] = t, i = n === r ? void 0 : (Am.mix || _g)(n, r);
return {
calculatedDuration: e,
- next: (t) => (s.value = i ? i(o(e > 0 ? wm(0, 1, t / e) : 1)) : r, s.done = t >= e, s)
+ next: (t) => (s.value = i ? i(o(e > 0 ? km(0, 1, t / e) : 1)) : r, s.done = t >= e, s)
};
}
- let c = zg(Cee(n && n.length === t.length ? n : Vg(t), e), t, {
- ease: Array.isArray(o) ? o : wee(t, o),
+ let c = Hg(wee(n && n.length === t.length ? n : Wg(t), e), t, {
+ ease: Array.isArray(o) ? o : Tee(t, o),
mixer: a
});
return {
@@ -16447,48 +16472,48 @@ function Hg({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut",
};
}
// node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs
-var Tee = 5;
-function Eee(e, t, n) {
- let r = Math.max(t - Tee, 0);
- return /* @__PURE__ */ Im(n - e(r), t - r);
+var Eee = 5;
+function Dee(e, t, n) {
+ let r = Math.max(t - Eee, 0);
+ return /* @__PURE__ */ Vm(n - e(r), t - r);
}
-function Ug(e, t, n = 0) {
- return t <= 0 ? n : e.velocity ? e.velocity(t) : Eee((t) => e.next(t).value, t, e.next(t).value);
+function Kg(e, t, n = 0) {
+ return t <= 0 ? n : e.velocity ? e.velocity(t) : Dee((t) => e.next(t).value, t, e.next(t).value);
}
// node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs
-var Dee = (e) => e !== null;
-function Wg(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
- let a = e.filter(Dee), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
+var Oee = (e) => e !== null;
+function qg(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
+ let a = e.filter(Oee), 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 Oee = {
- decay: Rg,
- inertia: Rg,
- tween: Hg,
- keyframes: Hg,
- spring: Lg
+var kee = {
+ decay: Vg,
+ inertia: Vg,
+ tween: Gg,
+ keyframes: Gg,
+ spring: Bg
};
-function Gg(e) {
- typeof e.type == "string" && (e.type = Oee[e.type]);
+function Jg(e) {
+ typeof e.type == "string" && (e.type = kee[e.type]);
}
// node_modules/motion-dom/dist/es/animation/utils/resolve-start-time.mjs
-var kee = 40, Kg = (e, t) => t - e > kee && !Tm.useManualTiming ? t : e;
+var Aee = 40, Yg = (e, t) => t - e > Aee && !Am.useManualTiming ? t : e;
// node_modules/motion-dom/dist/es/animation/utils/notify-inspector.mjs
-function qg(e, t) {
+function Xg(e, t) {
return {
kind: e,
animation: t,
- timestamp: sh.now(),
- frameTimestamp: ih.timestamp,
- frameIsProcessing: ih.isProcessing
+ timestamp: fh.now(),
+ frameTimestamp: lh.timestamp,
+ frameIsProcessing: lh.isProcessing
};
}
-function Jg(e, t, n) {
+function Zg(e, t, n) {
let r = globalThis.__MOTION_INSPECT__;
if (r) try {
r({
- ...qg("animation-start", e),
+ ...Xg("animation-start", e),
options: n ? {
...t,
...n
@@ -16496,17 +16521,17 @@ function Jg(e, t, n) {
});
} catch {}
}
-function Aee(e, t) {
+function jee(e, t) {
let n = globalThis.__MOTION_INSPECT__;
if (n) try {
n({
- ...qg("layout-animation-start", e),
+ ...Xg("layout-animation-start", e),
node: t
});
} catch {}
}
// node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs
-var Yg = class {
+var Qg = class {
constructor() {
this.isResolved = !1;
}
@@ -16524,21 +16549,21 @@ var Yg = class {
then(e, t) {
return this.finished.then(e, t);
}
-}, jee = (e) => e / 100, Xg = (e) => Math.round(e * 1e4) / 1e4, Zg = class extends Yg {
+}, Mee = (e) => e / 100, $g = (e) => Math.round(e * 1e4) / 1e4, e_ = class extends Qg {
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,
value: void 0
}, this.stop = () => {
let { motionValue: e } = this.options;
- e && e.updatedAt !== sh.now() && this.tick(sh.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
- }, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause(), Jg(this, this.options);
+ e && e.updatedAt !== fh.now() && this.tick(fh.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
+ }, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause(), Zg(this, this.options);
}
initAnimation() {
let { options: e } = this;
- Gg(e);
- let { type: t = Hg, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || Hg;
- this.mixKeyframes = void 0, s !== Hg && typeof o[0] != "number" && (this.mixKeyframes = jm(jee, e.mixer?.(o[0], o[1]) || pg(o[0], o[1])), o = [0, 100]);
+ Jg(e);
+ let { type: t = Gg, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || Gg;
+ this.mixKeyframes = void 0, s !== Gg && typeof o[0] != "number" && (this.mixKeyframes = Im(Mee, e.mixer?.(o[0], o[1]) || _g(o[0], o[1])), o = [0, 100]);
let c = s(o === e.keyframes ? e : {
...e,
keyframes: o
@@ -16547,7 +16572,7 @@ var Yg = class {
...e,
keyframes: [...o].reverse(),
velocity: -a
- })), c.calculatedDuration === null && (c.calculatedDuration = Sg(c));
+ })), c.calculatedDuration === null && (c.calculatedDuration = Eg(c));
let { calculatedDuration: l } = c;
this.calculatedDuration = l, this.resolvedDuration = l + r, this.totalDuration = this.resolvedDuration * (n + 1) - r, this.generator = c;
}
@@ -16558,61 +16583,61 @@ var Yg = 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 = Kg(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 = Yg(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 !== Rg && (f.value = Wg(o, this.options, l, this.speed)), c && c(f.value), m && this.finish(), f;
+ return m && s !== Vg && (f.value = qg(o, this.options, l, this.speed)), c && c(f.value), m && this.finish(), f;
}
at(e) {
- return this.holdTime ?? Xg((e - this.startTime) * this.playbackSpeed);
+ return this.holdTime ?? $g((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 !== Rg ? Wg(n.keyframes, n, t ? void 0 : n.finalKeyframe) : this.generate(Math.max(i, 0), i < 0).value;
+ return i >= r && n.type !== Vg ? qg(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;
if (c) {
let t = Math.min(e, r) / o, n = Math.floor(t), i = t % 1;
- !i && t >= 1 && (i = 1), i === 1 && n--, n = Math.min(n, c + 1), n % 2 && (l === "reverse" ? (i = 1 - i, u && (i -= u / o)) : l === "mirror" && (f = a)), d = wm(0, 1, i) * o;
+ !i && t >= 1 && (i = 1), i === 1 && n--, n = Math.min(n, c + 1), n % 2 && (l === "reverse" ? (i = 1 - i, u && (i -= u / o)) : l === "mirror" && (f = a)), d = km(0, 1, i) * o;
}
let p;
return t ? (this.delayState.value = s[0], p = this.delayState) : p = f.next(d), i && !t && (p.value = i(p.value)), p;
}
get duration() {
- return /* @__PURE__ */ Fm(this.calculatedDuration);
+ return /* @__PURE__ */ Bm(this.calculatedDuration);
}
get iterationDuration() {
- return this.duration + /* @__PURE__ */ Fm(this.options.delay ?? 0);
+ return this.duration + /* @__PURE__ */ Bm(this.options.delay ?? 0);
}
get time() {
- return /* @__PURE__ */ Fm(this.currentTime);
+ return /* @__PURE__ */ Bm(this.currentTime);
}
set time(e) {
- e = /* @__PURE__ */ Pm(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));
+ e = /* @__PURE__ */ zm(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 Ug(this.generator, this.currentTime, this.options.velocity);
+ return Kg(this.generator, this.currentTime, this.options.velocity);
}
get speed() {
return this.playbackSpeed;
}
set speed(e) {
let t = this.playbackSpeed !== e;
- t && this.driver && this.updateTime(sh.now()), this.playbackSpeed = e, t && this.driver && (this.time = /* @__PURE__ */ Fm(this.currentTime));
+ t && this.driver && this.updateTime(fh.now()), this.playbackSpeed = e, t && this.driver && (this.time = /* @__PURE__ */ Bm(this.currentTime));
}
play() {
if (this.isStopped) return;
- let { driver: e = yg, startTime: t } = this.options;
+ let { driver: e = Cg, 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();
}
pause() {
- this.state = "paused", this.updateTime(sh.now()), this.holdTime = this.currentTime;
+ this.state = "paused", this.updateTime(fh.now()), this.holdTime = this.currentTime;
}
complete() {
this.state !== "running" && this.play(), this.state = "finished", this.holdTime = null;
@@ -16632,147 +16657,147 @@ var Yg = class {
attachTimeline(e) {
return this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear", this.initAnimation()), this.driver?.stop(), e.observe(this);
}
-}, Mee = /* @__PURE__ */ new Set([
+}, Nee = /* @__PURE__ */ new Set([
"brightness",
"contrast",
"saturate",
"opacity"
]);
-function Nee(e) {
+function Pee(e) {
let [t, n] = e.slice(0, -1).split("(");
if (t === "drop-shadow") return e;
- let [r] = n.match(vh) || [];
+ let [r] = n.match(Ch) || [];
if (!r) return e;
- let i = n.replace(r, ""), a = +!!Mee.has(t);
+ let i = n.replace(r, ""), a = +!!Nee.has(t);
return r !== n && (a *= 100), t + "(" + a + i + ")";
}
-var Pee = /\b([a-z-]*)\(.*?\)/gu, Qg = {
- ...ng,
+var Fee = /\b([a-z-]*)\(.*?\)/gu, t_ = {
+ ...ag,
getAnimatableNone: (e) => {
- let t = e.match(Pee);
- return t ? t.map(Nee).join(" ") : e;
+ let t = e.match(Fee);
+ return t ? t.map(Pee).join(" ") : e;
}
-}, $g = {
- ...ng,
+}, n_ = {
+ ...ag,
getAnimatableNone: (e) => {
- let t = ng.parse(e);
- return ng.createTransformer(e)(t.map((e) => typeof e == "number" ? 0 : typeof e == "object" ? {
+ let t = ag.parse(e);
+ return ag.createTransformer(e)(t.map((e) => typeof e == "number" ? 0 : typeof e == "object" ? {
...e,
alpha: 1
} : e));
}
-}, e_ = {
- ...hh,
+}, r_ = {
+ ...bh,
transform: Math.round
-}, t_ = {
- rotate: Ah,
- pathRotation: Ah,
- rotateX: Ah,
- rotateY: Ah,
- rotateZ: Ah,
- scale: _h,
- scaleX: _h,
- scaleY: _h,
- scaleZ: _h,
- skew: Ah,
- skewX: Ah,
- skewY: Ah,
- distance: Mh,
- translateX: Mh,
- translateY: Mh,
- translateZ: Mh,
- x: Mh,
- y: Mh,
- z: Mh,
- perspective: Mh,
- transformPerspective: Mh,
- opacity: gh,
- originX: Fh,
- originY: Fh,
- originZ: Mh
-}, n_ = {
- borderWidth: Mh,
- borderTopWidth: Mh,
- borderRightWidth: Mh,
- borderBottomWidth: Mh,
- borderLeftWidth: Mh,
- borderRadius: Mh,
- borderTopLeftRadius: Mh,
- borderTopRightRadius: Mh,
- borderBottomRightRadius: Mh,
- borderBottomLeftRadius: Mh,
- width: Mh,
- maxWidth: Mh,
- height: Mh,
- maxHeight: Mh,
- top: Mh,
- right: Mh,
- bottom: Mh,
- left: Mh,
- inset: Mh,
- insetBlock: Mh,
- insetBlockStart: Mh,
- insetBlockEnd: Mh,
- insetInline: Mh,
- insetInlineStart: Mh,
- insetInlineEnd: Mh,
- padding: Mh,
- paddingTop: Mh,
- paddingRight: Mh,
- paddingBottom: Mh,
- paddingLeft: Mh,
- paddingBlock: Mh,
- paddingBlockStart: Mh,
- paddingBlockEnd: Mh,
- paddingInline: Mh,
- paddingInlineStart: Mh,
- paddingInlineEnd: Mh,
- margin: Mh,
- marginTop: Mh,
- marginRight: Mh,
- marginBottom: Mh,
- marginLeft: Mh,
- marginBlock: Mh,
- marginBlockStart: Mh,
- marginBlockEnd: Mh,
- marginInline: Mh,
- marginInlineStart: Mh,
- marginInlineEnd: Mh,
- fontSize: Mh,
- backgroundPositionX: Mh,
- backgroundPositionY: Mh,
- ...t_,
- zIndex: e_,
- fillOpacity: gh,
- strokeOpacity: gh,
- numOctaves: e_
-}, Fee = {
- ...n_,
- color: Lh,
- backgroundColor: Lh,
- outlineColor: Lh,
- fill: Lh,
- stroke: Lh,
- borderColor: Lh,
- borderTopColor: Lh,
- borderRightColor: Lh,
- borderBottomColor: Lh,
- borderLeftColor: Lh,
- filter: Qg,
- WebkitFilter: Qg,
- mask: $g,
- WebkitMask: $g
-}, r_ = (e) => Fee[e], Iee = /*@__PURE__*/ new Set([Qg, $g]);
-function i_(e, t) {
- let n = r_(e);
- return Iee.has(n) || (n = ng), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
+}, i_ = {
+ rotate: Fh,
+ pathRotation: Fh,
+ rotateX: Fh,
+ rotateY: Fh,
+ rotateZ: Fh,
+ scale: Sh,
+ scaleX: Sh,
+ scaleY: Sh,
+ scaleZ: Sh,
+ skew: Fh,
+ skewX: Fh,
+ skewY: Fh,
+ distance: G,
+ translateX: G,
+ translateY: G,
+ translateZ: G,
+ x: G,
+ y: G,
+ z: G,
+ perspective: G,
+ transformPerspective: G,
+ opacity: xh,
+ originX: zh,
+ originY: zh,
+ originZ: G
+}, a_ = {
+ borderWidth: G,
+ borderTopWidth: G,
+ borderRightWidth: G,
+ borderBottomWidth: G,
+ borderLeftWidth: G,
+ borderRadius: G,
+ borderTopLeftRadius: G,
+ borderTopRightRadius: G,
+ borderBottomRightRadius: G,
+ borderBottomLeftRadius: G,
+ width: G,
+ maxWidth: G,
+ height: G,
+ maxHeight: G,
+ top: G,
+ right: G,
+ bottom: G,
+ left: G,
+ inset: G,
+ insetBlock: G,
+ insetBlockStart: G,
+ insetBlockEnd: G,
+ insetInline: G,
+ insetInlineStart: G,
+ insetInlineEnd: G,
+ padding: G,
+ paddingTop: G,
+ paddingRight: G,
+ paddingBottom: G,
+ paddingLeft: G,
+ paddingBlock: G,
+ paddingBlockStart: G,
+ paddingBlockEnd: G,
+ paddingInline: G,
+ paddingInlineStart: G,
+ paddingInlineEnd: G,
+ margin: G,
+ marginTop: G,
+ marginRight: G,
+ marginBottom: G,
+ marginLeft: G,
+ marginBlock: G,
+ marginBlockStart: G,
+ marginBlockEnd: G,
+ marginInline: G,
+ marginInlineStart: G,
+ marginInlineEnd: G,
+ fontSize: G,
+ backgroundPositionX: G,
+ backgroundPositionY: G,
+ ...i_,
+ zIndex: r_,
+ fillOpacity: xh,
+ strokeOpacity: xh,
+ numOctaves: r_
+}, Iee = {
+ ...a_,
+ color: Vh,
+ backgroundColor: Vh,
+ outlineColor: Vh,
+ fill: Vh,
+ stroke: Vh,
+ borderColor: Vh,
+ borderTopColor: Vh,
+ borderRightColor: Vh,
+ borderBottomColor: Vh,
+ borderLeftColor: Vh,
+ filter: t_,
+ WebkitFilter: t_,
+ mask: n_,
+ WebkitMask: n_
+}, o_ = (e) => Iee[e], Lee = /*@__PURE__*/ new Set([t_, n_]);
+function s_(e, t) {
+ let n = o_(e);
+ return Lee.has(n) || (n = ag), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
}
// node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs
-function a_(e) {
+function c_(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 o_ = (e) => e * 180 / Math.PI, s_ = (e) => c_(o_(Math.atan2(e[1], e[0]))), Lee = {
+var l_ = (e) => e * 180 / Math.PI, u_ = (e) => d_(l_(Math.atan2(e[1], e[0]))), Ree = {
x: 4,
y: 5,
translateX: 4,
@@ -16781,44 +16806,44 @@ var o_ = (e) => e * 180 / Math.PI, s_ = (e) => c_(o_(Math.atan2(e[1], e[0]))), L
scaleY: 3,
scaleZ: () => 1,
scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
- rotate: s_,
- rotateZ: s_,
- skewX: (e) => o_(Math.atan(e[1])),
- skewY: (e) => o_(Math.atan(e[2])),
+ rotate: u_,
+ rotateZ: u_,
+ skewX: (e) => l_(Math.atan(e[1])),
+ skewY: (e) => l_(Math.atan(e[2])),
skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
-}, c_ = (e) => (e %= 360, e < 0 && (e += 360), e), l_ = s_, u_ = (e) => Math.hypot(e[0], e[1]), d_ = (e) => Math.hypot(e[4], e[5]), Ree = {
+}, d_ = (e) => (e %= 360, e < 0 && (e += 360), e), f_ = u_, p_ = (e) => Math.hypot(e[0], e[1]), m_ = (e) => Math.hypot(e[4], e[5]), zee = {
x: 12,
y: 13,
z: 14,
translateX: 12,
translateY: 13,
translateZ: 14,
- scaleX: u_,
- scaleY: d_,
+ scaleX: p_,
+ scaleY: m_,
scaleZ: (e) => Math.hypot(e[8], e[9], e[10]),
- scale: (e) => (u_(e) + d_(e)) / 2,
- rotateX: (e) => c_(o_(Math.atan2(e[6], e[5]))),
- rotateY: (e) => c_(o_(Math.atan2(-e[2], e[0]))),
- rotateZ: l_,
- rotate: l_,
- skewX: (e) => o_(Math.atan(e[4])),
- skewY: (e) => o_(Math.atan(e[1])),
+ scale: (e) => (p_(e) + m_(e)) / 2,
+ rotateX: (e) => d_(l_(Math.atan2(e[6], e[5]))),
+ rotateY: (e) => d_(l_(Math.atan2(-e[2], e[0]))),
+ rotateZ: f_,
+ rotate: f_,
+ skewX: (e) => l_(Math.atan(e[4])),
+ skewY: (e) => l_(Math.atan(e[1])),
skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
};
-function f_(e) {
+function h_(e) {
return +!!e.includes("scale");
}
-function p_(e, t) {
- if (!e || e === "none") return f_(t);
+function g_(e, t) {
+ if (!e || e === "none") return h_(t);
let n = e.match(/^matrix(3d)?\(([-\d.e\s,]+)\)$/u);
- if (!n) return f_(t);
- let r = (n[1] ? Ree : Lee)[t], i = n[2].split(",").map((e) => parseFloat(e));
+ if (!n) return h_(t);
+ let r = (n[1] ? zee : Ree)[t], i = n[2].split(",").map((e) => parseFloat(e));
return typeof r == "function" ? r(i) : i[r];
}
-var m_ = (e, t) => {
+var __ = (e, t) => {
let { transform: n = "none" } = getComputedStyle(e);
- return p_(n, t);
-}, h_ = [
+ return g_(n, t);
+}, v_ = [
"transformPerspective",
"x",
"y",
@@ -16837,14 +16862,14 @@ var m_ = (e, t) => {
"skew",
"skewX",
"skewY"
-], g_ = /* @__PURE__ */ new Set([...h_, "pathRotation"]), __ = (e) => e === hh || e === Mh, zee = /* @__PURE__ */ new Set([
+], y_ = /* @__PURE__ */ new Set([...v_, "pathRotation"]), b_ = (e) => e === bh || e === G, Bee = /* @__PURE__ */ new Set([
"x",
"y",
"z"
-]), Bee = /* @__PURE__ */ h_.filter((e) => !zee.has(e));
-function Vee(e) {
+]), Vee = /* @__PURE__ */ v_.filter((e) => !Bee.has(e));
+function Hee(e) {
let t = [];
- return Bee.forEach((n) => {
+ return Vee.forEach((n) => {
let r = e.getValue(n);
if (r !== void 0) {
let e = r.get(), i = +!!n.startsWith("scale");
@@ -16853,16 +16878,16 @@ function Vee(e) {
}
}), t;
}
-var Hee = /* @__PURE__ */ new Set(["bottom", "right"]);
-function v_(e, t, n, r, i, a) {
+var Uee = /* @__PURE__ */ new Set(["bottom", "right"]);
+function x_(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 y_ = ({ transform: e }) => p_(e, "x"), b_ = ({ transform: e }) => p_(e, "y"), x_ = {
- width: ({ width: e, paddingLeft: t = "0", paddingRight: n = "0", boxSizing: r }, i) => v_(e, i, "x", t, n, r),
- height: ({ height: e, paddingTop: t = "0", paddingBottom: n = "0", boxSizing: r }, i) => v_(e, i, "y", t, n, r),
+var S_ = ({ transform: e }) => g_(e, "x"), C_ = ({ transform: e }) => g_(e, "y"), w_ = {
+ width: ({ width: e, paddingLeft: t = "0", paddingRight: n = "0", boxSizing: r }, i) => x_(e, i, "x", t, n, r),
+ height: ({ height: e, paddingTop: t = "0", paddingBottom: n = "0", boxSizing: r }, i) => x_(e, i, "y", t, n, r),
top: ({ top: e }) => parseFloat(e),
left: ({ left: e }) => parseFloat(e),
bottom: ({ top: e }, t) => {
@@ -16873,20 +16898,20 @@ var y_ = ({ transform: e }) => p_(e, "x"), b_ = ({ transform: e }) => p_(e, "y")
let { x: n } = t();
return parseFloat(e) + (n.max - n.min);
},
- x: y_,
- y: b_,
- translateX: y_,
- translateY: b_
-}, S_ = /* @__PURE__ */ new Set(), C_ = !1, w_ = !1, T_ = !1;
-function E_() {
- if (w_) {
+ x: S_,
+ y: C_,
+ translateX: S_,
+ translateY: C_
+}, T_ = /* @__PURE__ */ new Set(), E_ = !1, D_ = !1, O_ = !1;
+function k_() {
+ if (D_) {
let e = [], t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
- S_.forEach((r) => {
- r.needsMeasurement && (e.push(r), t.add(r.element), Hee.has(r.name) && n.add(r.element));
+ T_.forEach((r) => {
+ r.needsMeasurement && (e.push(r), t.add(r.element), Uee.has(r.name) && n.add(r.element));
});
let r = /* @__PURE__ */ new Map();
n.forEach((e) => {
- let t = Vee(e);
+ let t = Hee(e);
t.length && (r.set(e, t), e.render());
}), e.forEach((e) => e.measureInitialState()), t.forEach((e) => {
e.render();
@@ -16898,29 +16923,29 @@ function E_() {
e.suspendedScrollY !== void 0 && window.scrollTo(0, e.suspendedScrollY);
});
}
- w_ = !1, C_ = !1, S_.forEach((e) => e.complete(T_)), S_.clear();
+ D_ = !1, E_ = !1, T_.forEach((e) => e.complete(O_)), T_.clear();
}
-function D_() {
- S_.forEach((e) => {
- e.readKeyframes(), e.needsMeasurement && (w_ = !0);
+function A_() {
+ T_.forEach((e) => {
+ e.readKeyframes(), e.needsMeasurement && (D_ = !0);
});
}
-function Uee() {
- T_ = !0, D_(), E_(), T_ = !1;
+function Wee() {
+ O_ = !0, A_(), k_(), O_ = !1;
}
-function Wee(e, t, n) {
+function Gee(e, t, n) {
if (typeof e == "string") {
- if (Em(e) || Om(e)) return parseFloat(e);
- if (!ng.test(e) && ng.test(n)) return i_(t, n);
+ if (jm(e) || Nm(e)) return parseFloat(e);
+ if (!ag.test(e) && ag.test(n)) return s_(t, n);
}
return e ?? void 0;
}
-var O_ = class {
+var j_ = 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 ? (S_.add(this), C_ || (C_ = !0, gg.read(D_), gg.resolveKeyframes(E_))) : (this.readKeyframes(), this.complete());
+ this.state = "scheduled", this.isAsync ? (T_.add(this), E_ || (E_ = !0, bg.read(A_), bg.resolveKeyframes(k_))) : (this.readKeyframes(), this.complete());
}
readKeyframes() {
let { unresolvedKeyframes: e, name: t, element: n, motionValue: r } = this;
@@ -16928,71 +16953,71 @@ var O_ = class {
let i = r?.get(), a = e[e.length - 1];
if (i !== void 0) e[0] = i;
else if (n && t) {
- let r = Wee(n.readValue(t, a), t, a);
+ let r = Gee(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]);
}
- a_(e);
+ c_(e);
}
setFinalKeyframe() {}
measureInitialState() {}
renderEndStyles() {}
measureEndState() {}
complete(e = !1) {
- this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), S_.delete(this);
+ this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), T_.delete(this);
}
cancel() {
- this.state === "scheduled" && (S_.delete(this), this.state = "pending");
+ this.state === "scheduled" && (T_.delete(this), this.state = "pending");
}
resume() {
this.state === "pending" && this.scheduleResolve();
}
-}, k_ = (e) => e.startsWith("--");
+}, M_ = (e) => e.startsWith("--");
// node_modules/motion-dom/dist/es/render/dom/style-set.mjs
-function A_(e, t, n) {
- k_(t) ? e.style.setProperty(t, n) : e.style[t] = n;
+function N_(e, t, n) {
+ M_(t) ? e.style.setProperty(t, n) : e.style[t] = n;
}
// node_modules/motion-dom/dist/es/utils/supports/flags.mjs
-var j_ = {};
+var P_ = {};
// node_modules/motion-dom/dist/es/utils/supports/memo.mjs
-function M_(e, t) {
- let n = /* @__PURE__ */ km(e);
- return () => j_[t] ?? n();
+function F_(e, t) {
+ let n = /* @__PURE__ */ Pm(e);
+ return () => P_[t] ?? n();
}
// node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs
-var N_ = /* @__PURE__ */ M_(() => window.ScrollTimeline !== void 0, "scrollTimeline"), P_ = /*@__PURE__*/ M_(() => {
+var I_ = /* @__PURE__ */ F_(() => window.ScrollTimeline !== void 0, "scrollTimeline"), L_ = /*@__PURE__*/ F_(() => {
try {
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
} catch {
return !1;
}
return !0;
-}, "linearEasing"), F_ = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, I_ = {
+}, "linearEasing"), R_ = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, z_ = {
linear: "linear",
ease: "ease",
easeIn: "ease-in",
easeOut: "ease-out",
easeInOut: "ease-in-out",
- circIn: /*@__PURE__*/ F_([
+ circIn: /*@__PURE__*/ R_([
0,
.65,
.55,
1
]),
- circOut: /*@__PURE__*/ F_([
+ circOut: /*@__PURE__*/ R_([
.55,
0,
1,
.45
]),
- backIn: /*@__PURE__*/ F_([
+ backIn: /*@__PURE__*/ R_([
.31,
.01,
.66,
-.59
]),
- backOut: /*@__PURE__*/ F_([
+ backOut: /*@__PURE__*/ R_([
.33,
1.53,
.69,
@@ -17000,14 +17025,14 @@ var N_ = /* @__PURE__ */ M_(() => window.ScrollTimeline !== void 0, "scrollTimel
])
};
// node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs
-function L_(e, t) {
- if (e) return typeof e == "function" ? P_() ? bg(e, t) : "ease-out" : /* @__PURE__ */ eh(e) ? F_(e) : Array.isArray(e) ? e.map((e) => L_(e, t) || I_.easeOut) : I_[e];
+function B_(e, t) {
+ if (e) return typeof e == "function" ? L_() ? wg(e, t) : "ease-out" : /* @__PURE__ */ ah(e) ? R_(e) : Array.isArray(e) ? e.map((e) => B_(e, t) || z_.easeOut) : z_[e];
}
// node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs
-function R_(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
+function V_(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 = L_(s, i);
+ let d = B_(s, i);
Array.isArray(d) && (u.easing = d);
let f = {
delay: r,
@@ -17020,27 +17045,27 @@ function R_(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatTyp
return l && (f.pseudoElement = l), e.animate(u, f);
}
// node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs
-function z_(e) {
+function H_(e) {
return typeof e == "function" && "applyToOptions" in e;
}
// node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs
-function B_({ type: e, ...t }) {
- return z_(e) && P_() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
+function U_({ type: e, ...t }) {
+ return H_(e) && L_() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
}
// node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs
-var V_ = class extends Yg {
+var W_ = class extends Qg {
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 = B_(e);
- this.animation = R_(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
+ let c = U_(e);
+ this.animation = V_(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
if (this.finishedTime = this.time, !i) {
- let e = Wg(r, this.options, o, this.speed);
- this.updateMotionValue?.(e), A_(t, n, e), this.animation.cancel();
+ let e = qg(r, this.options, o, this.speed);
+ this.updateMotionValue?.(e), N_(t, n, e), this.animation.cancel();
}
s?.(), this.notifyFinished();
- }, Jg(this, e, c);
+ }, Zg(this, e, c);
}
play() {
this.isStopped || (this.manualStartTime = null, this.animation.play(), this.state === "finished" && this.updateFinished());
@@ -17065,18 +17090,18 @@ var V_ = class extends Yg {
}
get duration() {
let e = this.animation.effect?.getComputedTiming?.().duration || 0;
- return /* @__PURE__ */ Fm(Number(e));
+ return /* @__PURE__ */ Bm(Number(e));
}
get iterationDuration() {
let { delay: e = 0 } = this.options || {};
- return this.duration + /* @__PURE__ */ Fm(e);
+ return this.duration + /* @__PURE__ */ Bm(e);
}
get time() {
- return /* @__PURE__ */ Fm(Number(this.animation.currentTime) || 0);
+ return /* @__PURE__ */ Bm(Number(this.animation.currentTime) || 0);
}
set time(e) {
let t = this.finishedTime !== null;
- this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ Pm(e), t && this.animation.pause();
+ this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ zm(e), t && this.animation.pause();
}
get speed() {
return this.animation.playbackRate;
@@ -17094,30 +17119,30 @@ var V_ = class extends Yg {
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 && N_() ? (this.animation.timeline = e, t?.(this.animation), Am) : n(this);
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && I_() ? (this.animation.timeline = e, t?.(this.animation), Fm) : n(this);
}
-}, H_ = {
- anticipate: Gm,
- backInOut: Wm,
- circInOut: Jm
+}, G_ = {
+ anticipate: Xm,
+ backInOut: Ym,
+ circInOut: $m
};
-function Gee(e) {
- return e in H_;
+function K_(e) {
+ return e in G_;
}
function Kee(e) {
- typeof e.ease == "string" && Gee(e.ease) && (e.ease = H_[e.ease]);
+ typeof e.ease == "string" && K_(e.ease) && (e.ease = G_[e.ease]);
}
-var qee = class extends V_ {
+var qee = class extends W_ {
constructor(e) {
- Kee(e), Gg(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
+ Kee(e), Jg(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
}
elapsed() {
- return this.state === "running" ? (sh.now() - this.startTime) * this.speed : this.time * 1e3;
+ return this.state === "running" ? (fh.now() - this.startTime) * this.speed : this.time * 1e3;
}
sample(e) {
if (!this.sampler) {
let { motionValue: e, onUpdate: t, onComplete: n, onPlay: r, onStop: i, element: a, ...o } = this.options;
- this.sampler = new Zg({
+ this.sampler = new e_({
...o,
autoplay: !1
}), this.sampler.stop();
@@ -17135,10 +17160,10 @@ var qee = class extends V_ {
t.set(e);
return;
}
- let { speed: i } = this, a = this.elapsed(), o = this.state === "running" && i ? wm(0, 10, a) : 0, s = this.sample(a);
- n && r && A_(n, r, s), t.setWithVelocity(this.sample(a - o * Math.sign(i)), s, o / Math.abs(i || 1));
+ let { speed: i } = this, a = this.elapsed(), o = this.state === "running" && i ? km(0, 10, a) : 0, s = this.sample(a);
+ n && r && N_(n, r, s), t.setWithVelocity(this.sample(a - o * Math.sign(i)), s, o / Math.abs(i || 1));
}
-}, U_ = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (ng.test(e) || e === "0") && !e.startsWith("url("));
+}, q_ = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (ag.test(e) || e === "0") && !e.startsWith("url("));
// node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs
function Jee(e) {
let t = e[0];
@@ -17149,15 +17174,15 @@ 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 = U_(i, t), s = U_(a, t);
- return !o || !s ? !1 : Jee(e) || (n === "spring" || z_(n)) && r;
+ let a = e[e.length - 1], o = q_(i, t), s = q_(a, t);
+ return !o || !s ? !1 : Jee(e) || (n === "spring" || H_(n)) && r;
}
// node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs
-function W_(e) {
+function J_(e) {
e.duration = 0, e.type = "keyframes";
}
// node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.mjs
-var G_ = /* @__PURE__ */ new Set([
+var Y_ = /* @__PURE__ */ new Set([
"opacity",
"clipPath",
"filter",
@@ -17168,7 +17193,7 @@ function Zee(e) {
return !1;
}
// node_modules/motion-dom/dist/es/animation/waapi/utils/needs-mixer.mjs
-var K_ = ({ mixer: e, keyframes: t }) => e && typeof t[0] != "number" && t.some((n, r) => r && e(t[r - 1], n)), q_ = /* @__PURE__ */ new Set([
+var X_ = ({ 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",
@@ -17179,54 +17204,54 @@ var K_ = ({ mixer: e, keyframes: t }) => e && typeof t[0] != "number" && t.some(
"borderRightColor",
"borderBottomColor",
"borderLeftColor"
-]), J_ = () => !Tm.useManualTiming && Object.hasOwnProperty.call(Element.prototype, "animate");
+]), Q_ = () => !Am.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 || !(G_.has(n) || q_.has(n))) return !1;
+ if (!n || !(Y_.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 J_() && (G_.has(n) || q_.has(n) && Zee(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia" && !K_(e);
+ return Q_() && (Y_.has(n) || Z_.has(n) && Zee(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia" && !X_(e);
}
// node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs
-var Y_ = (e, t) => t && typeof e == "number" ? t.transform(e) : e, $ee = {
+var $_ = (e, t) => t && typeof e == "number" ? t.transform(e) : e, $ee = {
x: "translateX",
y: "translateY",
z: "translateZ",
transformPerspective: "perspective"
-}, ete = h_.length, X_ = {}, Z_ = (e, t, n = Y_(t, t_[e])) => (X_[e] || (X_[e] = ($ee[e] || e) + "(")) + n + ")", Q_ = (e, t) => (typeof t == "number" ? t : parseFloat(t)) === +!!e.startsWith("scale");
+}, ete = v_.length, ev = {}, tv = (e, t, n = $_(t, i_[e])) => (ev[e] || (ev[e] = ($ee[e] || e) + "(")) + n + ")", nv = (e, t) => (typeof t == "number" ? t : parseFloat(t)) === +!!e.startsWith("scale");
function tte(e, t, n) {
let r = "";
for (let i = 0; i < ete; i++) {
- let a = h_[i], o = e[a];
+ let a = v_[i], o = e[a];
if (o === void 0) continue;
- let s = n && (t[a] = Y_(o, n_[a]));
- Q_(a, o) || (r += Z_(a, o, s || void 0) + " ");
+ let s = n && (t[a] = $_(o, a_[a]));
+ nv(a, o) || (r += tv(a, o, s || void 0) + " ");
}
let i = e.pathRotation;
- return i && (r += Z_("rotate", i)), r = r.trim(), n ? n(t, r) : r || "none";
+ return i && (r += tv("rotate", i)), r = r.trim(), n ? n(t, r) : r || "none";
}
// node_modules/motion-dom/dist/es/animation/waapi/transforms/groups.mjs
-var $_ = /* @__PURE__ */ new WeakMap(), nte = 200, ev = .001, rte = .1, ite = .001, ate = 100, ote = (e) => /^(linear|ease(In|Out|InOut))$/.test(e), tv = (e, t) => Math.abs(e - t) <= ev, nv = (e, t) => e - t, rv = (e, t, n) => Vg(Array(n + 1)).map((n) => ag(e, t, n)), iv = (e) => e.motionValue.owner, av = (e) => $_.get(e), ov = ({ state: e }) => e === "idle" || e === "finished", sv = (e, t) => e.latestValues ? e.latestValues[t] : e.getValue(t)?.get(), ste = ({ name: e, motionValue: t }) => e && h_.includes(e) && t?.owner?.current instanceof HTMLElement && J_() && P_();
+var rv = /* @__PURE__ */ new WeakMap(), nte = 200, iv = .001, rte = .1, ite = .001, ate = 100, ote = (e) => /^(linear|ease(In|Out|InOut))$/.test(e), av = (e, t) => Math.abs(e - t) <= iv, ov = (e, t) => e - t, sv = (e, t, n) => Wg(Array(n + 1)).map((n) => lg(e, t, n)), cv = (e) => e.motionValue.owner, lv = (e) => rv.get(e), uv = ({ state: e }) => e === "idle" || e === "finished", dv = (e, t) => e.latestValues ? e.latestValues[t] : e.getValue(t)?.get(), ste = ({ name: e, motionValue: t }) => e && v_.includes(e) && t?.owner?.current instanceof HTMLElement && Q_() && L_();
function cte(e) {
- let t = iv(e), { onUpdate: n, transformTemplate: r } = t.getProps();
- return !e.isHandoff && !n && !e.hasOnUpdate && !r && e.type !== "inertia" && (sv(t, "transform") || "none") === "none" && !sv(t, "pathRotation") && !t.projection?.isProjecting() && !K_(e);
+ let t = cv(e), { onUpdate: n, transformTemplate: r } = t.getProps();
+ return !e.isHandoff && !n && !e.hasOnUpdate && !r && e.type !== "inertia" && (dv(t, "transform") || "none") === "none" && !dv(t, "pathRotation") && !t.projection?.isProjecting() && !X_(e);
}
-var lte = class extends Zg {
+var lte = class extends e_ {
constructor(e) {
- let t = iv(e).current, { driver: n = yg } = e, r, i = cte(e);
+ let t = cv(e).current, { driver: n = Cg } = e, r, i = cte(e);
e.driver = (e) => {
let i = n(e);
return {
js: i,
now: i.now,
start: (e = !0) => {
- let n = av(t);
+ let n = lv(t);
!n || n.isJS ? i.start(e) : n.schedule(!1, !e);
},
stop: () => {
i.stop();
- let e = av(t);
+ let e = lv(t);
e && !e.isFinishing && e.release(r);
}
};
@@ -17237,7 +17262,7 @@ var lte = class extends Zg {
};
}
get group() {
- return av(iv(this.options).current);
+ return lv(cv(this.options).current);
}
get js() {
return this.driver?.js;
@@ -17254,11 +17279,11 @@ var lte = class extends Zg {
return e?.tracks.has(this) && !e.isJS && this.canAccelerate && (t === "running" || t === "paused");
}
liveValue() {
- return this.isAccelerated() ? this.sampleAt(sh.now()) : void 0;
+ return this.isAccelerated() ? this.sampleAt(fh.now()) : void 0;
}
tween() {
- let { keyframes: e, type: t, ease: n, times: r, repeat: i, delay: a = 0 } = this.options, o = /* @__PURE__ */ eh(n) ? F_(n) : ote(n) && I_[n];
- if (o && !i && !r && e.length === 2 && t === Hg && this.holdTime === null) {
+ let { keyframes: e, type: t, ease: n, times: r, repeat: i, delay: a = 0 } = this.options, o = /* @__PURE__ */ ah(n) ? R_(n) : ote(n) && z_[n];
+ if (o && !i && !r && e.length === 2 && t === Gg && this.holdTime === null) {
let e = this.startTime + a / this.speed;
return [
e,
@@ -17268,7 +17293,7 @@ var lte = class extends Zg {
}
}
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 || Hg) === Hg ? u || Vg(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 || Gg) === Gg ? u || Wg(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;
@@ -17284,11 +17309,11 @@ var lte = class extends Zg {
return parseFloat(this.sampleAt(e, !0));
}
sync() {
- let e = sh.now();
+ let e = fh.now();
this.options.motionValue.setWithVelocity(this.sampleAt(e - 10, !0), this.sampleAt(e, !0), 10);
}
play() {
- this.isStopped || ((this.group || ute(iv(this.options))).tracks.add(this), super.play());
+ this.isStopped || ((this.group || ute(cv(this.options))).tracks.add(this), super.play());
}
pause() {
super.pause(), this.isAccelerated() && (this.sync(), this.group.schedule(!1));
@@ -17296,10 +17321,10 @@ var lte = class extends Zg {
complete() {
super.complete();
let { group: e } = this;
- e && !e.isJS && this.canAccelerate && this.tick(sh.now());
+ e && !e.isJS && this.canAccelerate && this.tick(fh.now());
}
get time() {
- return this.isAccelerated() ? /* @__PURE__ */ Fm(wm(0, this.totalDuration, this.at(sh.now()) - (this.options.delay || 0))) : super.time;
+ return this.isAccelerated() ? /* @__PURE__ */ Bm(km(0, this.totalDuration, this.at(fh.now()) - (this.options.delay || 0))) : super.time;
}
set time(e) {
super.time = e, this.isAccelerated() && this.sync();
@@ -17313,8 +17338,8 @@ function ute(e) {
for (let t of n) if (t.name === e) return !0;
}, m = (t, n) => {
let o = {};
- for (let s of t === void 0 ? h_ : a) {
- let a = r.get(s), c = t === void 0 ? sv(e, s) : a ? a.sampleAt(n > t && !a.timing()[1] ? n : t) : i[s];
+ for (let s of t === void 0 ? v_ : a) {
+ let a = r.get(s), c = t === void 0 ? dv(e, s) : a ? a.sampleAt(n > t && !a.timing()[1] ? n : t) : i[s];
c !== void 0 && (o[s] = c);
}
return o;
@@ -17322,7 +17347,7 @@ function ute(e) {
let n = "";
for (let r in e) {
let i = e[r];
- t && Q_(r, i) || (n += Z_(r, i) + " ");
+ t && nv(r, i) || (n += tv(r, i) + " ");
}
return (t ? n.trim() : n) || "none";
}, g = (e, t) => h(m(e, t)), _ = (e = m()) => {
@@ -17335,7 +17360,7 @@ function ute(e) {
offset: t,
end: n
};
- e.startTime = sh.now() + t, n < Infinity && (e.onfinish = () => {
+ e.startTime = fh.now() + t, n < Infinity && (e.onfinish = () => {
r.isDone = !0, s.some((e) => e.end === Infinity) && (e.cancel(), s = s.filter((e) => e !== r)), A.schedule(!1);
}), e.oncancel = () => s.includes(r) && A.demote(), s.push(r);
}, x = (e, t, n) => {
@@ -17348,14 +17373,14 @@ function ute(e) {
}, S = (e, t, n, r) => {
let i = Math.min(nte, Math.max(2, Math.ceil((n - t) / 10)));
if (r.length * 4 > i) return;
- let a = rv(t, n, i).concat(r).sort(nv), o = (e) => /* @__PURE__ */ Mm(t, n, e), s, c;
+ let a = sv(t, n, i).concat(r).sort(ov), o = (e) => /* @__PURE__ */ Lm(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) * ev > 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) * iv > 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) => !tv(e, o && s[t]))) return;
+ else if (l.some((e, t) => !av(e, o && s[t]))) return;
}
- if (!s || s.every((e, t) => tv(e, o(a[t])))) return "linear";
- let l = [], u = (e, t = c(e)) => l.push(Xg(t) + " " + Xg(o(e) * 100) + "%");
+ if (!s || s.every((e, t) => av(e, o(a[t])))) return "linear";
+ let l = [], u = (e, t = c(e)) => l.push($g(t) + " " + $g(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 + ")";
@@ -17367,11 +17392,11 @@ function ute(e) {
for (let r of e) i.push(...x((e) => r.numberAt(e), t, n));
i.push(n);
}
- }, s = rv(t, n, Math.ceil((n - t) / 100));
+ }, s = sv(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(nv)) e > c && o(c, e, 0), c = e;
- return i.sort(nv);
+ for (let e of s.sort(ov)) e > c && o(c, e, 0), c = e;
+ return i.sort(ov);
}, w = (e) => {
let t;
for (let n of e) {
@@ -17382,7 +17407,7 @@ function ute(e) {
return t;
}, T = (e, t, n, r, i = { fill: "both" }, a) => {
let o = e.flatMap((e) => e.boundaries(t, n)), s = r || S(e, t, n, o), c = s ? [t, n] : C(e, t, n, o), l = c.map((e) => g(e, a)), u = { transform: l };
- return s || (u.offset = c.map((e) => /* @__PURE__ */ Mm(t, n, e))), l.every((e) => e === l[0]) && (_(m(t, a)), u = null), y(u, {
+ return s || (u.offset = c.map((e) => /* @__PURE__ */ Lm(t, n, e))), l.every((e) => e === l[0]) && (_(m(t, a)), u = null), y(u, {
...i,
duration: n - t,
easing: s || "linear"
@@ -17410,10 +17435,10 @@ function ute(e) {
d.push(e), c = Math.max(c, n);
}
}
- i = {}, a = h_.filter((t) => {
+ i = {}, a = v_.filter((t) => {
if (r.has(t)) return !0;
- let n = i[t] = sv(e, t);
- return n !== void 0 && !Q_(t, n);
+ let n = i[t] = dv(e, t);
+ return n !== void 0 && !nv(t, n);
}), v(!1);
let m = !l && w(d);
try {
@@ -17459,12 +17484,12 @@ 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, av(t) === A && $_.delete(t), A.isJS || v(), !0), k = () => {
- let t = sh.now();
+ }, O = () => !n.size && (u = !0, lv(t) === A && rv.delete(t), A.isJS || v(), !0), k = () => {
+ let t = fh.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] = sv(e, n.name), o.has(n) || (c = !0));
- }), A.isFinishing = !1), l = !1, u || (n.forEach((e) => ov(e) && n.delete(e)), O())) return;
+ n.state === "running" && n.speed > 0 && !a && r <= t + 1 && (n.complete(), i[n.name] = dv(e, n.name), o.has(n) || (c = !0));
+ }), A.isFinishing = !1), l = !1, u || (n.forEach((e) => uv(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;
@@ -17480,14 +17505,14 @@ function ute(e) {
isJS: !1,
isFinishing: !1,
schedule(e, t) {
- u || (c ||= e, d ||= !!t, l || (l = !0, ih.isProcessing ? gg.render(k, !1, !0) : queueMicrotask(k)));
+ u || (c ||= e, d ||= !!t, l || (l = !0, lh.isProcessing ? bg.render(k, !1, !0) : queueMicrotask(k)));
},
release(e) {
- ov(e) && n.delete(e), O() || A.schedule(!0);
+ uv(e) && n.delete(e), O() || A.schedule(!0);
},
check() {
if (!A.isJS) {
- for (let t in i) if (sv(e, t) !== i[t] && !p(t)) return A.schedule(!0, !0);
+ for (let t in i) if (dv(e, t) !== i[t] && !p(t)) return A.schedule(!0, !0);
}
},
demote(e) {
@@ -17496,40 +17521,40 @@ function ute(e) {
}), A.isJS = !0, o = /* @__PURE__ */ new Map(), v(), n.forEach((e) => e.state === "running" && e.js?.start()), !0;
}
};
- return $_.set(t, A), A;
+ return rv.set(t, A), A;
}
// node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs
-var dte = class extends Yg {
+var dte = class extends Qg {
constructor(e) {
super(), this.stop = () => {
this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
- }, this.createdAt = sh.now();
+ }, this.createdAt = fh.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 || O_;
+ let o = i?.KeyframeResolver || j_;
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 = sh.now();
+ this.resolvedAt = fh.now();
let u = Yee(e, i, a, o);
- u || ((Tm.instantAnimations || !s) && l?.(Wg(e, n, t)), e[0] = e[e.length - 1], W_(n), n.repeat = 0);
+ u || ((Am.instantAnimations || !s) && l?.(qg(e, n, t)), e[0] = e[e.length - 1], J_(n), n.repeat = 0);
let { onComplete: d } = n;
n.finalKeyframe = t, n.keyframes = e, n.onComplete = () => {
d?.(), this.notifyFinished();
};
let f = u && !c && Qee(n), p = !f && ste(n);
- r && (f || p || this.resolvedAt !== this.createdAt) && (n.startTime ??= Kg(this.createdAt, this.resolvedAt));
+ r && (f || p || this.resolvedAt !== this.createdAt) && (n.startTime ??= Yg(this.createdAt, this.resolvedAt));
let m;
if (f) {
n.element = n.motionValue?.owner?.current;
try {
m = new qee(n);
} catch {
- m = new Zg(n);
+ m = new e_(n);
}
- } else m = p ? new lte(n) : new Zg(n);
+ } else m = p ? new lte(n) : new e_(n);
this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;
}
get finished() {
@@ -17542,7 +17567,7 @@ var dte = class extends Yg {
return this._animation?.liveValue?.();
}
get animation() {
- return this._animation || (this.keyframeResolver?.resume(), Uee()), this._animation;
+ return this._animation || (this.keyframeResolver?.resume(), Wee()), this._animation;
}
get duration() {
return this.animation.duration;
@@ -17623,10 +17648,10 @@ var dte = class extends Yg {
return this.getAll("startTime");
}
get duration() {
- return cv(this.animations, "duration");
+ return fv(this.animations, "duration");
}
get iterationDuration() {
- return cv(this.animations, "iterationDuration");
+ return fv(this.animations, "iterationDuration");
}
runAll(e) {
this.animations.forEach((t) => t[e]());
@@ -17644,7 +17669,7 @@ var dte = class extends Yg {
this.runAll("complete");
}
};
-function cv(e, t) {
+function fv(e, t) {
let n = 0;
for (let r = 0; r < e.length; r++) {
let i = e[r][t];
@@ -17653,30 +17678,30 @@ function cv(e, t) {
return n;
}
// node_modules/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs
-var lv = class extends fte {
+var pv = class extends fte {
then(e, t) {
return this.finished.finally(e).then(() => {});
}
-}, uv = /* @__PURE__ */ new WeakMap(), pte = (e, t = "") => `${e}:${t}`;
+}, mv = /* @__PURE__ */ new WeakMap(), pte = (e, t = "") => `${e}:${t}`;
function mte(e) {
- let t = uv.get(e);
- return t || (t = /* @__PURE__ */ new Map(), uv.set(e, t)), t;
+ let t = mv.get(e);
+ return t || (t = /* @__PURE__ */ new Map(), mv.set(e, t)), t;
}
// node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs
-function dv(e, t, n, r = 0, i = 1) {
+function hv(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 fv = 30, hte = (e) => !isNaN(parseFloat(e)), pv = { current: void 0 }, mv = class {
+var gv = 30, hte = (e) => !isNaN(parseFloat(e)), _v = { current: void 0 }, vv = class {
constructor(e, t = {}) {
this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (e) => {
- let t = sh.now();
+ let t = fh.now();
if (this.updatedAt !== t && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(e), this.current !== this.prev && (this.dirty(), this.dependents)) for (let e of this.dependents) e.dirty();
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = t.owner;
}
setCurrent(e) {
- this.current = e, this.updatedAt = sh.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = hte(this.current));
+ this.current = e, this.updatedAt = fh.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = hte(this.current));
}
setPrevFrameValue(e = this.current) {
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
@@ -17686,16 +17711,16 @@ var fv = 30, hte = (e) => !isNaN(parseFloat(e)), pv = { current: void 0 }, mv =
}
on(e, t) {
var n;
- return e === "change" ? this.onChangeSubscribe(t) : ((n = this.events)[e] || (n[e] = new Nm())).add(t);
+ return e === "change" ? this.onChangeSubscribe(t) : ((n = this.events)[e] || (n[e] = new Rm())).add(t);
}
onChangeSubscribe(e) {
let { events: t } = this;
- return !t.change && !this.changeSubscriber ? this.changeSubscriber = e : (t.change || (t.change = new Nm(), t.change.add(this.changeSubscriber), this.changeSubscriber = void 0), t.change.add(e)), () => {
+ return !t.change && !this.changeSubscriber ? this.changeSubscriber = e : (t.change || (t.change = new Rm(), t.change.add(this.changeSubscriber), this.changeSubscriber = void 0), t.change.add(e)), () => {
this.changeSubscriber === e ? this.changeSubscriber = void 0 : t.change?.remove(e), this.stopIfUnobserved();
};
}
stopIfUnobserved() {
- gg.read(() => {
+ bg.read(() => {
!this.changeSubscriber && !this.events.change?.getSize() && this.stop();
});
}
@@ -17713,7 +17738,7 @@ var fv = 30, hte = (e) => !isNaN(parseFloat(e)), pv = { current: void 0 }, mv =
this.set(t), this.prev = void 0, this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt - n;
}
jump(e, t = !0) {
- t && (this.updatedAt = sh.now(), this.stop()), this.updateAndNotify(e), this.prev = e, this.prevUpdatedAt = this.prevFrameValue = void 0, this.stopPassiveEffect?.();
+ t && (this.updatedAt = fh.now(), this.stop()), this.updateAndNotify(e), this.prev = e, this.prevUpdatedAt = this.prevFrameValue = void 0, this.stopPassiveEffect?.();
}
dirty() {
let { current: e, changeSubscriber: t } = this;
@@ -17726,7 +17751,7 @@ var fv = 30, hte = (e) => !isNaN(parseFloat(e)), pv = { current: void 0 }, mv =
this.dependents?.delete(e);
}
get() {
- pv.current?.push(this);
+ _v.current?.push(this);
let e = this.animation?.liveValue?.();
return e === void 0 ? this.current : e;
}
@@ -17737,10 +17762,10 @@ var fv = 30, hte = (e) => !isNaN(parseFloat(e)), pv = { current: void 0 }, mv =
return this.prev;
}
getVelocity() {
- let e = sh.now();
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > fv) return 0;
- let t = Math.min(this.updatedAt - this.prevUpdatedAt, fv);
- return /* @__PURE__ */ Im(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
+ let e = fh.now();
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > gv) return 0;
+ let t = Math.min(this.updatedAt - this.prevUpdatedAt, gv);
+ return /* @__PURE__ */ Vm(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
}
start(e) {
return this.stop(), new Promise((t) => {
@@ -17761,11 +17786,11 @@ var fv = 30, hte = (e) => !isNaN(parseFloat(e)), pv = { current: void 0 }, mv =
this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect?.();
}
};
-function hv(e, t) {
- return new mv(e, t);
+function yv(e, t) {
+ return new vv(e, t);
}
// node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs
-function gv(e, t) {
+function bv(e, t) {
if (e?.inherit && t) {
let { inherit: n, ...r } = e;
return {
@@ -17776,9 +17801,9 @@ function gv(e, t) {
return e;
}
// node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs
-function _v(e, t) {
+function xv(e, t) {
let n = e?.[t] ?? e?.default ?? e;
- return n === e ? n : gv(n, e);
+ return n === e ? n : bv(n, e);
}
// node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs
var gte = {
@@ -17803,7 +17828,7 @@ var gte = {
1
],
duration: .3
-}, bte = (e, { keyframes: t }) => t.length > 2 ? vte : g_.has(e) ? e.startsWith("scale") ? _te(t[1]) : gte : yte, xte = /* @__PURE__ */ new Set([
+}, bte = (e, { keyframes: t }) => t.length > 2 ? vte : y_.has(e) ? e.startsWith("scale") ? _te(t[1]) : gte : yte, xte = /* @__PURE__ */ new Set([
"when",
"delay",
"delayChildren",
@@ -17822,9 +17847,9 @@ function Ste(e) {
return !1;
}
// node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs
-var vv = (e, t, n, r = {}, i, a) => (o) => {
- let s = _v(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
- l -= /* @__PURE__ */ Pm(c);
+var Sv = (e, t, n, r = {}, i, a) => (o) => {
+ let s = xv(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
+ l -= /* @__PURE__ */ zm(c);
let u = {
keyframes: Array.isArray(n) ? n : [null, n],
ease: "easeOut",
@@ -17842,18 +17867,18 @@ var vv = (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__ */ Pm(u.duration), u.repeatDelay &&= /* @__PURE__ */ Pm(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
+ Ste(s) || Object.assign(u, bte(e, u)), u.duration &&= /* @__PURE__ */ zm(u.duration), u.repeatDelay &&= /* @__PURE__ */ zm(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
let d = !1;
- if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (W_(u), u.delay === 0 && (d = !0)), (Tm.instantAnimations || Tm.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, W_(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
- let e = Wg(u.keyframes, s);
+ if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (J_(u), u.delay === 0 && (d = !0)), (Am.instantAnimations || Am.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, J_(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
+ let e = qg(u.keyframes, s);
if (e !== void 0) {
- gg.update(() => {
+ bg.update(() => {
u.onUpdate(e), u.onComplete();
});
return;
}
}
- return s.isSync ? new Zg(u) : new dte(u);
+ return s.isSync ? new e_(u) : new dte(u);
}, Cte = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
function wte(e) {
let t = Cte.exec(e);
@@ -17861,15 +17886,15 @@ function wte(e) {
let [, n, r, i] = t;
return [`--${n ?? r}`, i];
}
-function yv(e, t, n = 1) {
+function Cv(e, t, n = 1) {
let [r, i] = wte(e);
if (!r) return;
let a = window.getComputedStyle(t).getPropertyValue(r);
if (a) {
let e = a.trim();
- return Em(e) ? parseFloat(e) : e;
+ return jm(e) ? parseFloat(e) : e;
}
- return fh(i) ? yv(i, t, n + 1) : i;
+ return _h(i) ? Cv(i, t, n + 1) : i;
}
// node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs
function Tte(e) {
@@ -17878,32 +17903,32 @@ function Tte(e) {
t[0][n] = e.get(), t[1][n] = e.getVelocity();
}), t;
}
-function bv(e, t, n, r) {
+function wv(e, t, n, r) {
let i = (t) => typeof t == "function" ? t(n === void 0 ? e.custom : n, ...Tte(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 xv(e, t, n) {
- return bv(e.getProps(), t, n, e);
+function Tv(e, t, n) {
+ return wv(e.getProps(), t, n, e);
}
-var Sv = (e, t) => t === "exit" ? e.presenceContext?.custom : void 0, Cv = /* @__PURE__ */ new Set([
+var Ev = (e, t) => t === "exit" ? e.presenceContext?.custom : void 0, Dv = /* @__PURE__ */ new Set([
"width",
"height",
"top",
"left",
"right",
"bottom",
- ...h_
+ ...v_
]), Ete = (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, hv(n));
+ e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, yv(n));
}
function Ote(e) {
return Ete(e) ? e[e.length - 1] || 0 : e;
}
function kte(e, t) {
- let { transitionEnd: n = {}, transition: r = {}, ...i } = xv(e, t) || {};
+ let { transitionEnd: n = {}, transition: r = {}, ...i } = Tv(e, t) || {};
i = {
...i,
...n
@@ -17911,25 +17936,25 @@ function kte(e, t) {
for (let t in i) Dte(e, t, Ote(i[t]));
}
// node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs
-var wv = (e) => !!(e && e.getVelocity);
+var Ov = (e) => !!(e && e.getVelocity);
// node_modules/motion-dom/dist/es/value/will-change/is.mjs
function Ate(e) {
- return !!(wv(e) && e.add);
+ return !!(Ov(e) && e.add);
}
// node_modules/motion-dom/dist/es/value/will-change/add-will-change.mjs
-function Tv(e, t) {
+function kv(e, t) {
let n = e.getValue("willChange");
if (Ate(n)) return n.add(t);
- if (!n && Tm.WillChange) {
- let n = new Tm.WillChange("auto");
+ if (!n && Am.WillChange) {
+ let n = new Am.WillChange("auto");
e.addValue("willChange", n), n.add(t);
}
}
// node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.mjs
-var Ev = "data-framer-appear-id";
+var Av = "data-framer-appear-id";
// node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.mjs
-function Dv(e) {
- return e.props[Ev];
+function jv(e) {
+ return e.props[Av];
}
// node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs
var jte = typeof window < "u";
@@ -17937,9 +17962,9 @@ function Mte({ protectedKeys: e, needsAnimating: t }, n) {
let r = n in e && !t[n];
return t[n] = !1, r;
}
-function Ov(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
+function Mv(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
let { transition: a, transitionEnd: o, ...s } = t, c = e.getDefaultTransition();
- a = a ? gv(a, c) : c;
+ a = a ? bv(a, c) : c;
let l = a?.reduceMotion, u = a?.skipAnimations;
r && (a = r);
let d = [], f = i && e.animationState?.getState()[i], p = a?.path;
@@ -17949,30 +17974,30 @@ function Ov(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
if (i === void 0 || f && Mte(f, t)) continue;
let o = {
delay: n,
- ..._v(f?.out[t] || a || {}, t)
+ ...xv(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) {
- gg.update(() => r.set(i));
+ bg.update(() => r.set(i));
continue;
}
let p = !1;
if (jte && window.MotionHandoffAnimation) {
- let n = Dv(e);
+ let n = jv(e);
if (n) {
- let e = window.MotionHandoffAnimation(n, t, gg);
+ let e = window.MotionHandoffAnimation(n, t, bg);
e !== null && (o.startTime = e, p = !0);
}
}
- Tv(e, t);
+ kv(e, t);
let m = l ?? e.shouldReduceMotion;
- r.start(vv(t, r, i, m && Cv.has(t) ? { type: !1 } : o, e, p));
+ r.start(Sv(t, r, i, m && Dv.has(t) ? { type: !1 } : o, e, p));
let h = r.animation;
h && d.push(h);
}
if (o) {
- let t = () => gg.update(() => {
+ let t = () => bg.update(() => {
o && kte(e, o);
});
d.length ? Promise.all(d).then(t) : t();
@@ -17980,13 +18005,13 @@ function Ov(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
return d;
}
// node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs
-function kv(e, t, n = {}) {
- let r = xv(e, t, Sv(e, n.type)), i = n.transitionOverride || (r?.transition ?? (e.getDefaultTransition() || {})), a = () => Promise.all(r ? Ov(e, r, n) : []), o = (r = 0) => {
+function Nv(e, t, n = {}) {
+ let r = Tv(e, t, Ev(e, n.type)), i = n.transitionOverride || (r?.transition ?? (e.getDefaultTransition() || {})), a = () => Promise.all(r ? Mv(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(kv(e, t, {
+ e.notify("AnimationStart", t), l.push(Nv(e, t, {
...n,
- delay: r + (typeof o == "function" ? 0 : o) + dv(a, e, o, s, c)
+ delay: r + (typeof o == "function" ? 0 : o) + hv(a, e, o, s, c)
}).then(() => e.notify("AnimationComplete", t)));
}), Promise.all(l);
}, { when: s } = i;
@@ -17994,7 +18019,7 @@ function kv(e, t, n = {}) {
}
// 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) => kv(e, t, n))) : typeof t == "string" ? kv(e, t, n) : Promise.all(Ov(e, xv(e, t, n.custom), n))).then(() => {
+ return e.notify("AnimationStart", t), (Array.isArray(t) ? Promise.all(t.map((t) => Nv(e, t, n))) : typeof t == "string" ? Nv(e, t, n) : Promise.all(Mv(e, Tv(e, t, n.custom), n))).then(() => {
e.notify("AnimationComplete", t);
});
}
@@ -18003,17 +18028,17 @@ var Pte = {
test: (e) => e === "auto",
parse: (e) => e
}, Fte = (e) => (t) => t.test(e), Ite = [
- hh,
- Mh,
- jh,
- Ah,
- Ph,
- Nh,
+ bh,
+ G,
+ Ih,
+ Fh,
+ Rh,
+ Lh,
Pte
-], Av = (e) => Ite.find(Fte(e));
+], Pv = (e) => Ite.find(Fte(e));
// node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs
function Lte(e) {
- return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || Om(e);
+ return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || Nm(e);
}
// node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs
var Rte = /* @__PURE__ */ new Set([
@@ -18025,12 +18050,12 @@ function zte(e, t, n) {
let r = 0, i;
for (; r < e.length && !i;) {
let t = e[r];
- typeof t == "string" && !Rte.has(t) && Jh(t) && (i = e[r]), r++;
+ typeof t == "string" && !Rte.has(t) && Qh(t) && (i = e[r]), r++;
}
- if (i && n) for (let r of t) e[r] !== i && (e[r] = i_(n, i));
+ if (i && n) for (let r of t) e[r] !== i && (e[r] = s_(n, i));
}
// node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs
-var jv = class extends O_ {
+var Fv = class extends j_ {
constructor() {
super(...arguments), this.isAsync = !0;
}
@@ -18041,7 +18066,7 @@ var jv = class extends O_ {
canReadNow() {
let { unresolvedKeyframes: e, element: t, motionValue: n } = this, r = e[0] ?? n?.get();
if (!t?.current || r === void 0) return !1;
- for (let t = 0; t < e.length; t++) if (mh(t ? e[t] : r)) return !1;
+ for (let t = 0; t < e.length; t++) if (yh(t ? e[t] : r)) return !1;
return !0;
}
readKeyframes() {
@@ -18050,22 +18075,22 @@ var jv = class extends O_ {
super.readKeyframes();
for (let n = 0; n < e.length; n++) {
let r = e[n];
- if (typeof r == "string" && (r = r.trim(), fh(r))) {
- let i = yv(r, t.current);
+ if (typeof r == "string" && (r = r.trim(), _h(r))) {
+ let i = Cv(r, t.current);
i !== void 0 && (e[n] = i), n === e.length - 1 && (this.finalKeyframe = r);
}
}
- if (this.resolveNoneKeyframes(), !Cv.has(n) || e.length !== 2) return;
+ if (this.resolveNoneKeyframes(), !Dv.has(n) || e.length !== 2) return;
let [r, i] = e;
if (typeof r == "number" && typeof i == "number") return;
- let a = Av(r), o = Av(i);
- if (mh(r) !== mh(i) && x_[n]) this.needsMeasurement = !0;
+ let a = Pv(r), o = Pv(i);
+ if (yh(r) !== yh(i) && w_[n]) this.needsMeasurement = !0;
else if (a !== o) {
- if (__(a) && __(o)) for (let t = 0; t < e.length; t++) {
+ if (b_(a) && b_(o)) for (let t = 0; t < e.length; t++) {
let n = e[t];
typeof n == "string" && (e[t] = parseFloat(n));
}
- else x_[n] && (this.needsMeasurement = !0);
+ else w_[n] && (this.needsMeasurement = !0);
}
}
resolveNoneKeyframes() {
@@ -18075,7 +18100,7 @@ var jv = class extends O_ {
}
measure() {
let { element: e, name: t } = this;
- return x_[t](window.getComputedStyle(e.current), () => e.measureViewportBox());
+ return w_[t](window.getComputedStyle(e.current), () => e.measureViewportBox());
}
measureInitialState() {
let { element: e, unresolvedKeyframes: t, name: n } = this;
@@ -18091,7 +18116,7 @@ var jv = class extends O_ {
let n = t.length - 1, r = t[n];
t[n] = this.measure(), r !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = r), this.resolveNoneKeyframes();
}
-}, Mv = [
+}, Iv = [
"borderTopLeftRadius",
"borderTopRightRadius",
"borderBottomRightRadius",
@@ -18103,7 +18128,7 @@ var jv = class extends O_ {
"borderBottomWidth",
"borderLeftWidth",
"borderRadius",
- ...Mv,
+ ...Iv,
"width",
"maxWidth",
"height",
@@ -18150,17 +18175,17 @@ function Vte(e, t) {
for (let n = 0; n < e.length; n++) typeof e[n] == "number" && Bte.has(t) && (e[n] = e[n] + "px");
}
// node_modules/motion-dom/dist/es/animation/animate/effects.mjs
-var Nv = [];
+var Lv = [];
function Hte(e) {
- Pv(e), Nv.unshift(e);
+ Rv(e), Lv.unshift(e);
}
-function Pv(e) {
- Cm(Nv, e);
+function Rv(e) {
+ Om(Lv, e);
}
function Ute(e) {
- return Nv.find((t) => t.test(e));
+ return Lv.find((t) => t.test(e));
}
-function Fv(e, t, n = {}, r) {
+function zv(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) {
@@ -18168,19 +18193,19 @@ function Fv(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 ? gg.update(() => l.set(c)) : (l.start(vv(o, l, c, s && Cv.has(o) ? { type: !1 } : n, r)), l.animation && i.push(l.animation));
+ u !== void 0 && !l.isAnimating() && !Array.isArray(c) && c === u && !a ? bg.update(() => l.set(c)) : (l.start(Sv(o, l, c, s && Dv.has(o) ? { type: !1 } : n, r)), l.animation && i.push(l.animation));
}
let { transitionEnd: c } = t;
if (c) {
- let t = () => gg.update(() => {
+ let t = () => bg.update(() => {
for (let t in c) e(t).set(c[t]);
});
i.length ? Promise.all(i).then(t) : t();
}
return i;
}
-function Iv(e, t, n, r, i) {
- return Fv((r) => {
+function Bv(e, t, n, r, i) {
+ return zv((r) => {
let a = e.get(t, r);
if (!a) {
let o;
@@ -18188,7 +18213,7 @@ function Iv(e, t, n, r, i) {
let i = n[r];
o = Wte(i) ?? e.read(t, r, i);
}
- a = hv(o, { owner: i }), e(t, { [r]: a });
+ a = yv(o, { owner: i }), e(t, { [r]: a });
}
return a;
}, n, r, i);
@@ -18198,32 +18223,32 @@ function Wte(e) {
return t === null ? void 0 : t;
}
// node_modules/motion-dom/dist/es/utils/is-html-element.mjs
-function Lv(e) {
- return Dm(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
+function Vv(e) {
+ return Mm(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
}
// node_modules/motion-dom/dist/es/utils/is-svg-element.mjs
-function Rv(e) {
- return Dm(e) && "ownerSVGElement" in e;
+function Hv(e) {
+ return Mm(e) && "ownerSVGElement" in e;
}
// node_modules/motion-dom/dist/es/scope/active.mjs
-var zv = {};
-function Bv(e) {
- return zv.current?.add(e), e;
+var Uv = {};
+function Wv(e) {
+ return Uv.current?.add(e), e;
}
-var Vv = (e) => zv.current ? zv.current.bind(e) : e;
+var Gv = (e) => Uv.current ? Uv.current.bind(e) : e;
// node_modules/motion-dom/dist/es/utils/resolve-elements.mjs
-function Hv(e, t, n) {
+function Kv(e, t, n) {
if (e == null) return [];
if (e instanceof EventTarget) return [e];
if (typeof e == "string") {
- let r = t ? t.current : zv.current?.root || document, i = n?.[e] ?? r.querySelectorAll(e);
+ let r = t ? t.current : Uv.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 = gg.render) {
+ constructor(e = bg.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;
@@ -18266,7 +18291,7 @@ var Gte = class {
}
};
// node_modules/motion-dom/dist/es/effects/utils/create-effect.mjs
-function Uv(e, { step: t, ...n } = {}) {
+function qv(e, { step: t, ...n } = {}) {
let r = /* @__PURE__ */ new WeakMap();
return Object.assign((n, i) => {
let a = r.get(n) ?? new Gte(t);
@@ -18290,56 +18315,56 @@ function Kte(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 && (Q_(i, a) || (t += (t && " ") + Z_(i, a)));
+ a !== void 0 && (nv(i, a) || (t += (t && " ") + tv(i, a)));
}
let i = e.get("pathRotation")?.get();
- return i && (t += (t && " ") + Z_("rotate", i)), t || "none";
+ return i && (t += (t && " ") + tv("rotate", i)), t || "none";
}
// node_modules/motion-dom/dist/es/effects/style/index.mjs
-var Wv = /* @__PURE__ */ new Set([
+var Jv = /* @__PURE__ */ new Set([
"originX",
"originY",
"originZ"
-]), Gv = (e, t) => Y_(e.get(t)?.get(), n_[t]), Kv = (e, t, n, r) => {
+]), Yv = (e, t) => $_(e.get(t)?.get(), a_[t]), Xv = (e, t, n, r) => {
let i, a;
- if (g_.has(n)) {
+ if (y_.has(n)) {
if (n !== "pathRotation") {
let e = t.transformKeys ??= [];
- (t.transformValues ??= {})[n] = r, e.includes(n) || (e.push(n), e.sort((e, t) => h_.indexOf(e) - h_.indexOf(t)));
+ (t.transformValues ??= {})[n] = r, e.includes(n) || (e.push(n), e.sort((e, t) => v_.indexOf(e) - v_.indexOf(t)));
}
- t.get("transform") || (!Lv(e) && !t.get("transformBox") && Kv(e, t, "transformBox", new mv("fill-box")), t.set("transform", new mv("none"), () => {
- $_.get(e)?.check(), e.style.transform = Kte(t);
+ t.get("transform") || (!Vv(e) && !t.get("transformBox") && Xv(e, t, "transformBox", new vv("fill-box")), t.set("transform", new vv("none"), () => {
+ rv.get(e)?.check(), e.style.transform = Kte(t);
})), a = t.get("transform");
- } else Wv.has(n) ? (t.get("transformOrigin") || t.set("transformOrigin", new mv(""), () => {
- let n = Gv(t, "originX") ?? "50%", r = Gv(t, "originY") ?? "50%", i = Gv(t, "originZ") ?? 0;
+ } else Jv.has(n) ? (t.get("transformOrigin") || t.set("transformOrigin", new vv(""), () => {
+ let n = Yv(t, "originX") ?? "50%", r = Yv(t, "originY") ?? "50%", i = Yv(t, "originZ") ?? 0;
e.style.transformOrigin = `${n} ${r} ${i}`;
- }), a = t.get("transformOrigin")) : i = k_(n) ? () => {
+ }), a = t.get("transformOrigin")) : i = M_(n) ? () => {
e.style.setProperty(n, r.getCurrent());
} : () => {
- e.style[n] = Y_(r.getCurrent(), n_[n]);
+ e.style[n] = $_(r.getCurrent(), a_[n]);
};
return t.set(n, r, i, a);
-}, qte = (e) => Lv(e) || Rv(e), qv = (e, t) => {
- if (g_.has(t)) return m_(e, t);
- let n = getComputedStyle(e), r = k_(t) ? n.getPropertyValue(t) : n[t];
+}, qte = (e) => Vv(e) || Hv(e), Zv = (e, t) => {
+ if (y_.has(t)) return __(e, t);
+ let n = getComputedStyle(e), r = M_(t) ? n.getPropertyValue(t) : n[t];
return typeof r == "string" && r.trim() || 0;
-}, Jte = /*@__PURE__*/ Uv(Kv, {
+}, Jte = /*@__PURE__*/ qv(Xv, {
test: qte,
- read: qv
+ read: Zv
});
// node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.mjs
-function Jv(e) {
+function Qv(e) {
return e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
}
// node_modules/motion-dom/dist/es/render/html/utils/build-styles.mjs
-function Yv(e, t, n) {
+function $v(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 (g_.has(e)) o = !0;
- else if (uh(e)) i[e] = n;
+ if (y_.has(e)) o = !0;
+ else if (hh(e)) i[e] = n;
else {
- let t = Y_(n, n_[e]);
+ let t = $_(n, a_[e]);
e.startsWith("origin") ? (s = !0, a[e] = t) : r[e] = t;
}
}
@@ -18362,7 +18387,7 @@ function Zte(e, t, n = 1, r = 0, i = !0) {
e[a.offset] = `${-r}`, e[a.array] = `${t} ${n}`;
}
// node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs
-var Xv = [
+var ey = [
"transform",
"opacity",
"clipPath",
@@ -18372,14 +18397,14 @@ var Xv = [
"offsetRotate",
"offsetAnchor"
];
-function Zv(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
- if (Yv(e, s, l), c) {
+function ty(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
+ if ($v(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 Xv) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
+ for (let e of ey) 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);
}
// node_modules/motion-dom/dist/es/effects/attr/index.mjs
@@ -18388,39 +18413,39 @@ function Qte(e, t) {
let n = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e), t) || Object.getOwnPropertyDescriptor(e, t);
return n && typeof n.set == "function";
}
-var Qv = (e, t, n, r, i = n) => {
+var ny = (e, t, n, r, i = n) => {
let a = Qte(e, i);
- !a && (i.startsWith("data") || i.startsWith("aria")) && (i = Jv(i));
- let o = n_[n] || n_[i], s = a ? () => {
- e[i] = Y_(r.get(), n_[n]);
+ !a && (i.startsWith("data") || i.startsWith("aria")) && (i = Qv(i));
+ let o = a_[n] || a_[i], s = a ? () => {
+ e[i] = $_(r.get(), a_[n]);
} : () => {
- let t = Y_(r.get(), o);
+ let t = $_(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 gg.render(() => e.setAttribute("pathLength", "1")), n === "pathOffset" ? t.set(n, r, () => {
+ return bg.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 mv("1 1"), () => {
+ }) : (t.get("stroke-dasharray") || t.set("stroke-dasharray", new vv("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__*/ Uv((e, t, n, r) => n.startsWith("path") && !g_.has(n) ? $te(e, t, n, r) : n.startsWith("attr") ? Qv(e, t, n, r, $v(n)) : n === "d" ? t.set(n, r, () => {
+var ene = /*@__PURE__*/ qv((e, t, n, r) => n.startsWith("path") && !y_.has(n) ? $te(e, t, n, r) : n.startsWith("attr") ? ny(e, t, n, r, ry(n)) : n === "d" ? t.set(n, r, () => {
let t = r.get()?.replace(/path\(|["')]/g, "");
t === void 0 ? e.removeAttribute(n) : e.setAttribute(n, t);
-}) : (g_.has(n) || Wv.has(n) || k_(n) || n in e.style ? Kv : Qv)(e, t, n, r), {
- test: Rv,
- read: (e, t) => g_.has(t) ? n_[t]?.default || 0 : k_(t) || Xv.includes(t) ? qv(e, t) || e.getAttribute(Jv(t)) || 0 : (t = $v(t), e.getAttribute(Jv(t)) ?? e.getAttribute(t) ?? void 0)
+}) : (y_.has(n) || Jv.has(n) || M_(n) || n in e.style ? Xv : ny)(e, t, n, r), {
+ test: Hv,
+ read: (e, t) => y_.has(t) ? a_[t]?.default || 0 : M_(t) || ey.includes(t) ? Zv(e, t) || e.getAttribute(Qv(t)) || 0 : (t = ry(t), e.getAttribute(Qv(t)) ?? e.getAttribute(t) ?? void 0)
});
-function $v(e) {
+function ry(e) {
return e.replace(/^attr([A-Z])/, (e, t) => t.toLowerCase());
}
// node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs
-function ey({ top: e, left: t, right: n, bottom: r }) {
+function iy({ top: e, left: t, right: n, bottom: r }) {
return {
x: {
min: t,
@@ -18457,13 +18482,13 @@ function nne(e, t) {
};
}
// node_modules/motion-dom/dist/es/projection/utils/has-transform.mjs
-function ty(e) {
+function ay(e) {
return e === void 0 || e === 1;
}
-function ny({ scale: e, scaleX: t, scaleY: n }) {
- return !ty(e) || !ty(t) || !ty(n);
+function oy({ scale: e, scaleX: t, scaleY: n }) {
+ return !ay(e) || !ay(t) || !ay(n);
}
-var ry = [
+var sy = [
"rotate",
"rotateX",
"rotateY",
@@ -18471,67 +18496,67 @@ var ry = [
"skewX",
"skewY"
];
-function iy(e) {
- return ny(e) || oy(e) || ay(e);
+function cy(e) {
+ return oy(e) || uy(e) || ly(e);
}
-function ay(e) {
+function ly(e) {
return e.z || e.rotate || e.rotateX || e.rotateY || e.rotateZ || e.skewX || e.skewY;
}
-function oy(e) {
- return sy(e.x) || sy(e.y);
+function uy(e) {
+ return dy(e.x) || dy(e.y);
}
-function sy(e) {
+function dy(e) {
return e && e !== "0%";
}
// node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs
-function cy(e, t, n) {
+function fy(e, t, n) {
return n + t * (e - n);
}
-function ly(e, t, n, r, i) {
- return i !== void 0 && (e = cy(e, i, r)), cy(e, n, r) + t;
+function py(e, t, n, r, i) {
+ return i !== void 0 && (e = fy(e, i, r)), fy(e, n, r) + t;
}
-function uy(e, t = 0, n = 1, r, i) {
- e.min = ly(e.min, t, n, r, i), e.max = ly(e.max, t, n, r, i);
+function my(e, t = 0, n = 1, r, i) {
+ e.min = py(e.min, t, n, r, i), e.max = py(e.max, t, n, r, i);
}
-function dy(e, { x: t, y: n }) {
- uy(e.x, t.translate, t.scale, t.originPoint), uy(e.y, n.translate, n.scale, n.originPoint);
+function hy(e, { x: t, y: n }) {
+ my(e.x, t.translate, t.scale, t.originPoint), my(e.y, n.translate, n.scale, n.originPoint);
}
-var fy = .999999999999, py = 1.0000000000001;
+var gy = .999999999999, _y = 1.0000000000001;
function rne(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 && (my(e.x, -a.scroll.offset.x), my(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, dy(e, o)), r && (r.path?.[s] || r) !== a && iy(a.latestValues) && _y(e, a.latestValues, a.layout?.layoutBox));
- t.x < py && t.x > fy && (t.x = 1), t.y < py && t.y > fy && (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 && (vy(e.x, -a.scroll.offset.x), vy(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, hy(e, o)), r && (r.path?.[s] || r) !== a && cy(a.latestValues) && xy(e, a.latestValues, a.layout?.layoutBox));
+ t.x < _y && t.x > gy && (t.x = 1), t.y < _y && t.y > gy && (t.y = 1);
}
-function my(e, t) {
+function vy(e, t) {
e.min += t, e.max += t;
}
-function hy(e, t, n, r, i = .5) {
- uy(e, t, n, ag(e.min, e.max, i), r);
+function yy(e, t, n, r, i = .5) {
+ my(e, t, n, lg(e.min, e.max, i), r);
}
-function gy(e, t) {
+function by(e, t) {
return typeof e == "string" ? parseFloat(e) / 100 * (t.max - t.min) : e;
}
-function _y(e, t, n) {
+function xy(e, t, n) {
let r = n ?? e;
- hy(e.x, gy(t.x, r.x), t.scaleX, t.scale, t.originX), hy(e.y, gy(t.y, r.y), t.scaleY, t.scale, t.originY);
+ yy(e.x, by(t.x, r.x), t.scaleX, t.scale, t.originX), yy(e.y, by(t.y, r.y), t.scaleY, t.scale, t.originY);
}
// node_modules/motion-dom/dist/es/projection/utils/measure.mjs
-function vy(e, t) {
- return ey(nne(e.getBoundingClientRect(), t));
+function Sy(e, t) {
+ return iy(nne(e.getBoundingClientRect(), t));
}
function ine(e, t, n) {
- let r = vy(e, n), { scroll: i } = t;
- return i && (my(r.x, i.offset.x), my(r.y, i.offset.y)), r;
+ let r = Sy(e, n), { scroll: i } = t;
+ return i && (vy(r.x, i.offset.x), vy(r.y, i.offset.y)), r;
}
var ane = () => ({
x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
y: document.documentElement.scrollTop || document.body?.scrollTop || 0
-}), one = {}, yy = (e) => Rv(e) ? ene : Jte, sne = class {
+}), one = {}, sne = (e) => Hv(e) ? ene : Jte, cne = class {
constructor(e, t) {
- this.effect = e, this.current = t, this.KeyframeResolver = jv;
+ this.effect = e, this.current = t, this.KeyframeResolver = Fv;
}
getValue(e) {
return this.effect.get(this.current, e);
@@ -18543,47 +18568,47 @@ var ane = () => ({
this.effect.flush(this.current);
}
measureViewportBox() {
- return vy(this.current);
+ return Sy(this.current);
}
getProps() {
return one;
}
};
-function cne(e, t, n, r) {
- if (zv.current?.track(e), r) return Fv((e) => r.getValue(e, null), t, n, r);
- let i = yy(e);
- return Iv(i, e, t, n, new sne(i, e));
+function lne(e, t, n, r) {
+ if (Uv.current?.track(e), r) return zv((e) => r.getValue(e, null), t, n, r);
+ let i = sne(e);
+ return Bv(i, e, t, n, new cne(i, e));
}
// node_modules/motion-dom/dist/es/effects/prop/index.mjs
-var lne = /*@__PURE__*/ Uv((e, t, n, r) => t.set(n, r, () => {
+var une = /*@__PURE__*/ qv((e, t, n, r) => t.set(n, r, () => {
e[n] = r.get();
}), {
- test: (e) => Dm(e),
+ test: (e) => Mm(e),
read: (e, t) => {
let n = e[t];
return typeof n == "string" || typeof n == "number" ? n : void 0;
}
-}), { schedule: by, cancel: une } = /* @__PURE__ */ hg(queueMicrotask, !1);
+}), { schedule: Cy, cancel: dne } = /* @__PURE__ */ yg(queueMicrotask, !1);
// node_modules/motion-dom/dist/es/animation/animate/single-value.mjs
-function xy(e, t, n) {
- let r = wv(e) ? e : hv(e);
- return r.start(vv("", r, t, n)), r.animation;
+function wy(e, t, n) {
+ let r = Ov(e) ? e : yv(e);
+ return r.start(Sv("", r, t, n)), r.animation;
}
// node_modules/motion-dom/dist/es/projection/styles/scale-correction.mjs
-var Sy = {}, Cy = {
+var Ty = {}, Ey = {
value: null,
addProjectionMetrics: null,
countProjection: void 0
};
// node_modules/motion-dom/dist/es/utils/delay.mjs
-function dne(e, t) {
- let n = sh.now();
- e = Vv(e);
+function Dy(e, t) {
+ let n = fh.now();
+ e = Gv(e);
let r = ({ timestamp: i }) => {
let a = i - n;
- a >= t && (_g(r), e(a - t));
+ a >= t && (xg(r), e(a - t));
};
- return gg.setup(r, !0), Bv(() => _g(r));
+ return bg.setup(r, !0), Wv(() => xg(r));
}
// node_modules/motion-dom/dist/es/utils/is-ref-object.mjs
function fne(e) {
@@ -18591,79 +18616,79 @@ function fne(e) {
}
// node_modules/motion-dom/dist/es/utils/is-svg-svg-element.mjs
function pne(e) {
- return Rv(e) && e.tagName === "svg";
+ return Hv(e) && e.tagName === "svg";
}
// node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs
-function wy(e) {
- return wv(e) ? e.get() : e;
+function Oy(e) {
+ return Ov(e) ? e.get() : e;
}
// node_modules/motion-dom/dist/es/value/utils/as-number.mjs
-var Ty = (e) => typeof e == "number" ? e : parseFloat(e), mne = Mv.length, Ey = (e) => typeof e == "number" || Mh.test(e);
+var ky = (e) => typeof e == "number" ? e : parseFloat(e), mne = Iv.length, Ay = (e) => typeof e == "number" || G.test(e);
function hne(e, t, n, r, i, a) {
- i ? (e.opacity = ag(0, n.opacity ?? 1, gne(r)), e.opacityExit = ag(t.opacity ?? 1, 0, _ne(r))) : a && (e.opacity = ag(t.opacity ?? 1, n.opacity ?? 1, r));
+ i ? (e.opacity = lg(0, n.opacity ?? 1, gne(r)), e.opacityExit = lg(t.opacity ?? 1, 0, _ne(r))) : a && (e.opacity = lg(t.opacity ?? 1, n.opacity ?? 1, r));
for (let i = 0; i < mne; i++) {
- let a = Mv[i], o = Dy(t, a), s = Dy(n, a);
- (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || Ey(o) === Ey(s) ? (e[a] = Math.max(ag(Ty(o), Ty(s), r), 0), (jh.test(s) || jh.test(o)) && (e[a] += "%")) : e[a] = s);
+ let a = Iv[i], o = jy(t, a), s = jy(n, a);
+ (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || Ay(o) === Ay(s) ? (e[a] = Math.max(lg(ky(o), ky(s), r), 0), (Ih.test(s) || Ih.test(o)) && (e[a] += "%")) : e[a] = s);
}
- for (let i = 0; i < ry.length; i++) {
- let a = ry[i];
- (t[a] || n[a]) && (e[a] = ag(t[a] || 0, n[a] || 0, r));
+ for (let i = 0; i < sy.length; i++) {
+ let a = sy[i];
+ (t[a] || n[a]) && (e[a] = lg(t[a] || 0, n[a] || 0, r));
}
}
-function Dy(e, t) {
+function jy(e, t) {
return e[t] === void 0 ? e.borderRadius : e[t];
}
-var gne = /*@__PURE__*/ Oy(0, .5, qm), _ne = /*@__PURE__*/ Oy(.5, .95, Am);
-function Oy(e, t, n) {
- return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ Mm(e, t, r));
+var gne = /*@__PURE__*/ My(0, .5, Qm), _ne = /*@__PURE__*/ My(.5, .95, Fm);
+function My(e, t, n) {
+ return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ Lm(e, t, r));
}
// node_modules/motion-dom/dist/es/projection/geometry/copy.mjs
-function ky(e, t) {
+function Ny(e, t) {
e.min = t.min, e.max = t.max;
}
-function Ay(e, t) {
- ky(e.x, t.x), ky(e.y, t.y);
+function Py(e, t) {
+ Ny(e.x, t.x), Ny(e.y, t.y);
}
-function jy(e, t) {
+function Fy(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 vne = .9999, yne = 1.0001, bne = -.01, xne = .01;
-function My(e) {
+function Iy(e) {
return e.max - e.min;
}
function Sne(e, t, n) {
return Math.abs(e - t) <= n;
}
-function Ny(e, t, n, r = .5) {
- e.origin = r, e.originPoint = ag(t.min, t.max, e.origin), e.scale = My(n) / My(t), e.translate = ag(n.min, n.max, e.origin) - e.originPoint, (e.scale >= vne && e.scale <= yne || isNaN(e.scale)) && (e.scale = 1), (e.translate >= bne && e.translate <= xne || isNaN(e.translate)) && (e.translate = 0);
+function Ly(e, t, n, r = .5) {
+ e.origin = r, e.originPoint = lg(t.min, t.max, e.origin), e.scale = Iy(n) / Iy(t), e.translate = lg(n.min, n.max, e.origin) - e.originPoint, (e.scale >= vne && e.scale <= yne || isNaN(e.scale)) && (e.scale = 1), (e.translate >= bne && e.translate <= xne || isNaN(e.translate)) && (e.translate = 0);
}
-function Py(e, t, n, r) {
- Ny(e.x, t.x, n.x, r?.originX), Ny(e.y, t.y, n.y, r?.originY);
+function Ry(e, t, n, r) {
+ Ly(e.x, t.x, n.x, r?.originX), Ly(e.y, t.y, n.y, r?.originY);
}
-function Fy(e, t, n, r = 0) {
- e.min = (r ? ag(n.min, n.max, r) : n.min) + t.min, e.max = e.min + My(t);
+function zy(e, t, n, r = 0) {
+ e.min = (r ? lg(n.min, n.max, r) : n.min) + t.min, e.max = e.min + Iy(t);
}
function Cne(e, t, n, r) {
- Fy(e.x, t.x, n.x, r?.x), Fy(e.y, t.y, n.y, r?.y);
+ zy(e.x, t.x, n.x, r?.x), zy(e.y, t.y, n.y, r?.y);
}
-function Iy(e, t, n, r = 0) {
- let i = r ? ag(n.min, n.max, r) : n.min;
- e.min = t.min - i, e.max = e.min + My(t);
+function By(e, t, n, r = 0) {
+ let i = r ? lg(n.min, n.max, r) : n.min;
+ e.min = t.min - i, e.max = e.min + Iy(t);
}
-function Ly(e, t, n, r) {
- Iy(e.x, t.x, n.x, r?.x), Iy(e.y, t.y, n.y, r?.y);
+function Vy(e, t, n, r) {
+ By(e.x, t.x, n.x, r?.x), By(e.y, t.y, n.y, r?.y);
}
// node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs
-function Ry(e, t, n, r, i) {
- return e -= t, e = cy(e, 1 / n, r), i !== void 0 && (e = cy(e, 1 / i, r)), e;
+function Hy(e, t, n, r, i) {
+ return e -= t, e = fy(e, 1 / n, r), i !== void 0 && (e = fy(e, 1 / i, r)), e;
}
function wne(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
- if (jh.test(t) && (t = parseFloat(t), t = ag(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
- let s = ag(a.min, a.max, r);
- e === a && (s -= t), e.min = Ry(e.min, t, n, s, i), e.max = Ry(e.max, t, n, s, i);
+ if (Ih.test(t) && (t = parseFloat(t), t = lg(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
+ let s = lg(a.min, a.max, r);
+ e === a && (s -= t), e.min = Hy(e.min, t, n, s, i), e.max = Hy(e.max, t, n, s, i);
}
-function zy(e, t, [n, r, i], a, o) {
+function Uy(e, t, [n, r, i], a, o) {
wne(e, t[n], t[r], t[i], t.scale, a, o);
}
var Tne = [
@@ -18675,56 +18700,56 @@ var Tne = [
"scaleY",
"originY"
];
-function By(e, t, n, r) {
- zy(e.x, t, Tne, n?.x, r?.x), zy(e.y, t, Ene, n?.y, r?.y);
+function Wy(e, t, n, r) {
+ Uy(e.x, t, Tne, n?.x, r?.x), Uy(e.y, t, Ene, n?.y, r?.y);
}
// node_modules/motion-dom/dist/es/projection/geometry/round.mjs
-var Vy = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), Hy = Vy("applewebkit/") && !Vy("chrome/") ? Math.round : Am;
-function Uy(e) {
- e.min = Hy(e.min), e.max = Hy(e.max);
+var Gy = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), Ky = Gy("applewebkit/") && !Gy("chrome/") ? Math.round : Fm;
+function qy(e) {
+ e.min = Ky(e.min), e.max = Ky(e.max);
}
function Dne(e) {
- Uy(e.x), Uy(e.y);
+ qy(e.x), qy(e.y);
}
// node_modules/motion-dom/dist/es/projection/geometry/models.mjs
-var Wy = () => ({
+var Jy = () => ({
translate: 0,
scale: 1,
origin: 0,
originPoint: 0
-}), Gy = () => ({
- x: Wy(),
- y: Wy()
-}), Ky = () => ({
+}), Yy = () => ({
+ x: Jy(),
+ y: Jy()
+}), Xy = () => ({
min: 0,
max: 0
-}), qy = () => ({
- x: Ky(),
- y: Ky()
+}), Zy = () => ({
+ x: Xy(),
+ y: Xy()
});
// node_modules/motion-dom/dist/es/projection/geometry/utils.mjs
-function Jy(e) {
+function Qy(e) {
return e.translate === 0 && e.scale === 1;
}
-function Yy(e) {
- return Jy(e.x) && Jy(e.y);
+function $y(e) {
+ return Qy(e.x) && Qy(e.y);
}
-function Xy(e, t) {
+function eb(e, t) {
return e.min === t.min && e.max === t.max;
}
-function Zy(e, t) {
- return Xy(e.x, t.x) && Xy(e.y, t.y);
+function tb(e, t) {
+ return eb(e.x, t.x) && eb(e.y, t.y);
}
-function Qy(e, t) {
+function nb(e, t) {
return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max);
}
-function $y(e, t) {
- return Qy(e.x, t.x) && Qy(e.y, t.y);
+function rb(e, t) {
+ return nb(e.x, t.x) && nb(e.y, t.y);
}
-function eb(e) {
- return My(e.x) / My(e.y);
+function ib(e) {
+ return Iy(e.x) / Iy(e.y);
}
-function tb(e, t) {
+function ab(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
@@ -18733,17 +18758,17 @@ var One = class {
this.members = [];
}
add(e) {
- Sm(this.members, e);
+ Dm(this.members, e);
for (let t = this.members.length - 1; t >= 0; t--) {
let n = this.members[t];
if (n === e || n === this.lead || n === this.prevLead) continue;
let r = n.instance;
- r && r.isConnected !== !1 || n.snapshot || (Cm(this.members, n), n.unmount());
+ r && r.isConnected !== !1 || n.snapshot || (Om(this.members, n), n.unmount());
}
e.scheduleRender();
}
remove(e) {
- if (Cm(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
+ if (Om(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
let e = this.members[this.members.length - 1];
e && this.promote(e);
}
@@ -18776,28 +18801,28 @@ var One = class {
}
};
// node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.mjs
-function nb(e, t) {
+function ob(e, t) {
return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
}
-var rb = { correct: (e, t) => {
+var sb = { correct: (e, t) => {
if (!t.target) return e;
if (typeof e == "string") {
- if (Mh.test(e)) e = parseFloat(e);
+ if (G.test(e)) e = parseFloat(e);
else return e;
}
- return `${nb(e, t.target.x)}% ${nb(e, t.target.y)}%`;
+ return `${ob(e, t.target.x)}% ${ob(e, t.target.y)}%`;
} }, kne = {
- borderRadius: /* @__PURE__ */ Object.assign({}, rb, { applyTo: /* @__PURE__ */ Mv.slice() }),
- borderTopLeftRadius: rb,
- borderTopRightRadius: rb,
- borderBottomLeftRadius: rb,
- borderBottomRightRadius: rb,
+ borderRadius: /* @__PURE__ */ Object.assign({}, sb, { applyTo: /* @__PURE__ */ Iv.slice() }),
+ borderTopLeftRadius: sb,
+ borderTopRightRadius: sb,
+ borderBottomLeftRadius: sb,
+ borderBottomRightRadius: sb,
boxShadow: { correct: (e, { treeScale: t, projectionDelta: n }) => {
- let r = e, i = ng.parse(e);
+ let r = e, i = ag.parse(e);
if (i.length > 5) return r;
- let a = ng.createTransformer(e), o = typeof i[0] == "number" ? 0 : 1, s = n.x.scale * t.x, c = n.y.scale * t.y;
+ let a = ag.createTransformer(e), o = typeof i[0] == "number" ? 0 : 1, s = n.x.scale * t.x, c = n.y.scale * t.y;
i[0 + o] /= s, i[1 + o] /= c;
- let l = ag(s, c, .5);
+ let l = lg(s, c, .5);
return typeof i[2 + o] == "number" && (i[2 + o] /= l), typeof i[3 + o] == "number" && (i[3 + o] /= l), a(i);
} }
};
@@ -18807,8 +18832,8 @@ function Ane(e, t, n) {
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 < ry.length; e++) {
- let t = ry[e], i = n[t];
+ for (let e = 0; e < sy.length; e++) {
+ let t = sy[e], i = n[t];
i && (r += `${t}(${i}deg) `), !e && n.pathRotation && (r += `rotate(${n.pathRotation}deg) `);
}
}
@@ -18816,7 +18841,7 @@ 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 ib(e) {
+function cb(e) {
return [e("x"), e("y")];
}
// node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.mjs
@@ -18825,49 +18850,49 @@ var jne = (e, t) => e.depth - t.depth, Mne = class {
this.children = [], this.isDirty = !1;
}
add(e) {
- Sm(this.children, e), this.isDirty = !0;
+ Dm(this.children, e), this.isDirty = !0;
}
remove(e) {
- Cm(this.children, e), this.isDirty = !0;
+ Om(this.children, e), this.isDirty = !0;
}
forEach(e) {
this.isDirty && this.children.sort(jne), this.isDirty = !1, this.children.forEach(e);
}
-}, ab = {
+}, lb = {
hasAnimatedSinceResize: !0,
hasEverUpdated: !1
-}, ob = [
+}, ub = [
"z",
"skew",
"skewZ"
], Nne = 1e3, Pne = 0;
-function sb(e, t, n, r) {
+function db(e, t, n, r) {
let { latestValues: i } = t;
i[e] && (n[e] = i[e], t.setStaticValue(e, 0), r && (r[e] = 0));
}
-var cb = (e) => e.instance && $_.get(e.instance)?.demote() && e.resetSkewAndRotation();
-function lb(e) {
+var fb = (e) => e.instance && rv.get(e.instance)?.demote() && e.resetSkewAndRotation();
+function pb(e) {
if (e.hasCheckedOptimisedAppear = !0, e.root === e) return;
let { visualElement: t } = e.options;
if (!t) return;
- let n = Dv(t);
+ let n = jv(t);
if (window.MotionHasOptimisedAnimation(n, "transform")) {
let { layout: t, layoutId: r } = e.options;
- window.MotionCancelOptimisedAnimation(n, "transform", gg, !(t || r));
+ window.MotionCancelOptimisedAnimation(n, "transform", bg, !(t || r));
}
let { parent: r } = e;
- r && !r.hasCheckedOptimisedAppear && lb(r);
+ r && !r.hasCheckedOptimisedAppear && pb(r);
}
-function ub(e) {
- if (e) return e.options.allowProjection === !1 ? ub(e.parent) : e.projection;
+function mb(e) {
+ if (e) return e.options.allowProjection === !1 ? mb(e.parent) : e.projection;
}
-function db({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
- return Object.assign(Sy, {
+function hb({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
+ return Object.assign(Ty, {
...kne,
- ...Sy
+ ...Ty
}), 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 : ub(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 : mb(e.parent));
d.setOptions({
layoutId: r,
layout: i,
@@ -18890,13 +18915,13 @@ function db({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}, 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), Cy.countProjection?.();
+ this.projectionUpdateScheduled = !1, this.nodes.forEach(Lne), this.nodes.forEach(Gne), this.nodes.forEach(Kne), this.nodes.forEach(Rne), Ey.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());
}
addEventListener(e, t) {
- return this.eventHandlers.has(e) || this.eventHandlers.set(e, new Nm()), this.eventHandlers.get(e).add(t);
+ return this.eventHandlers.has(e) || this.eventHandlers.set(e, new Rm()), this.eventHandlers.get(e).add(t);
}
notifyListeners(e, ...t) {
this.eventHandlers.get(e)?.notify(...t);
@@ -18906,15 +18931,15 @@ function db({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
mount(t) {
if (this.instance) return;
- this.isSVG = Rv(t) && !pne(t), this.instance = t;
+ this.isSVG = Hv(t) && !pne(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;
- gg.read(() => {
+ bg.read(() => {
r = window.innerWidth;
}), e(t, () => {
let e = window.innerWidth;
- e !== r && (r = e, this.root.updateBlockedByResize = !0, n?.(), n = dne(i, 250), ab.hasAnimatedSinceResize && (ab.hasAnimatedSinceResize = !1, this.nodes.forEach(mb)));
+ e !== r && (r = e, this.root.updateBlockedByResize = !0, n?.(), n = Dy(i, 250), lb.hasAnimatedSinceResize && (lb.hasAnimatedSinceResize = !1, this.nodes.forEach(vb)));
});
}
n && this.root.registerSharedNode(n, this), this.addLayoutListener();
@@ -18926,21 +18951,21 @@ function db({ 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 || !$y(this.targetLayout, i), l = !t && r;
+ let a = this.options.transition || n.getDefaultTransition() || Xne, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = n.getProps(), c = !this.targetLayout || !rb(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 = {
- ..._v(a, "layout"),
+ ...xv(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 || mb(this), this.isLead() && this.options.onExitComplete?.();
+ } else t || vb(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, _g(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, xg(this.updateProjection);
}
blockUpdate() {
this.updateManuallyBlocked = !0;
@@ -18963,11 +18988,11 @@ function db({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.options.onExitComplete?.();
return;
}
- if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && lb(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
- cb(this), this.isLayoutDirty = !0;
+ if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && pb(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
+ fb(this), this.isLayoutDirty = !0;
for (let e = 0; e < this.path.length; e++) {
let t = this.path[e];
- t.shouldResetTransform = !0, cb(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, fb(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;
@@ -18977,39 +19002,39 @@ function db({ 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(fb);
+ this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(Bne), this.nodes.forEach(gb);
return;
}
if (this.animationId <= this.animationCommitId) {
- this.nodes.forEach(pb);
+ this.nodes.forEach(_b);
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(pb), this.clearAllSnapshots();
- let e = sh.now();
- ih.delta = wm(0, 1e3 / 60, e - ih.timestamp), ih.timestamp = e, ih.isProcessing = !0, vg.update.process(ih), vg.preRender.process(ih), vg.render.process(ih), ih.isProcessing = !1;
+ 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(_b), this.clearAllSnapshots();
+ let e = fh.now();
+ lh.delta = km(0, 1e3 / 60, e - lh.timestamp), lh.timestamp = e, lh.isProcessing = !0, Sg.update.process(lh), Sg.preRender.process(lh), Sg.render.process(lh), lh.isProcessing = !1;
}
didUpdate() {
- this.updateScheduled || (this.updateScheduled = !0, by.read(this.scheduleUpdate));
+ this.updateScheduled || (this.updateScheduled = !0, Cy.read(this.scheduleUpdate));
}
clearAllSnapshots() {
this.nodes.forEach(zne), this.sharedNodes.forEach((e, t) => e.members.length ? e.removeLeadSnapshot() : this.sharedNodes.delete(t));
}
scheduleUpdateProjection() {
- this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, gg.preRender(this.updateProjection, !1, !0));
+ this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, bg.preRender(this.updateProjection, !1, !0));
}
scheduleCheckAfterUnmount() {
- gg.postRender(() => {
+ bg.postRender(() => {
this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
});
}
updateSnapshot() {
- !this.snapshot && this.instance && (this.snapshot = this.measure(), this.snapshot && !My(this.snapshot.measuredBox.x) && !My(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
+ !this.snapshot && this.instance && (this.snapshot = this.measure(), this.snapshot && !Iy(this.snapshot.measuredBox.x) && !Iy(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 ||= qy(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
+ this.layout = this.measure(!1), this.layoutCorrected ||= Zy(), 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);
}
@@ -19029,9 +19054,9 @@ function db({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
resetTransform() {
if (!i) return;
let e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout;
- e && cb(this);
- let t = this.projectionDelta && !Yy(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
- e && this.instance && (t || iy(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
+ e && fb(this);
+ let t = this.projectionDelta && !$y(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
+ e && this.instance && (t || cy(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
}
measure(e = !0) {
let t = this.measurePageBox(), n = this.removeElementScroll(t);
@@ -19045,42 +19070,42 @@ function db({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
measurePageBox() {
let { visualElement: e } = this.options;
- if (!e) return qy();
+ if (!e) return Zy();
let t = e.measureViewportBox();
if (!(this.scroll?.wasRoot || this.path.some(Zne))) {
let { scroll: e } = this.root;
- e && (my(t.x, e.offset.x), my(t.y, e.offset.y));
+ e && (vy(t.x, e.offset.x), vy(t.y, e.offset.y));
}
return t;
}
removeElementScroll(e) {
- let t = qy();
- if (Ay(t, e), this.scroll?.wasRoot) return t;
+ let t = Zy();
+ if (Py(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 && Ay(t, e), my(t.x, i.offset.x), my(t.y, i.offset.y));
+ r !== this.root && i && a.layoutScroll && (i.wasRoot && Py(t, e), vy(t.x, i.offset.x), vy(t.y, i.offset.y));
}
return t;
}
applyTransform(e, t = !1, n, r, i = 0) {
- let a = n || qy();
- Ay(a, e);
+ let a = n || Zy();
+ Py(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 && (my(a.x, -n.scroll.offset.x), my(a.y, -n.scroll.offset.y)), iy(n.latestValues) && _y(a, n.latestValues, n.layout?.layoutBox);
+ !t && n.options.layoutScroll && n.scroll && n !== n.root && (vy(a.x, -n.scroll.offset.x), vy(a.y, -n.scroll.offset.y)), cy(n.latestValues) && xy(a, n.latestValues, n.layout?.layoutBox);
}
- return !r && iy(this.latestValues) && _y(a, this.latestValues, this.layout?.layoutBox), a;
+ return !r && cy(this.latestValues) && xy(a, this.latestValues, this.layout?.layoutBox), a;
}
removeTransform(e) {
- let t = qy();
- Ay(t, e);
+ let t = Zy();
+ Py(t, e);
for (let e = 0; e < this.path.length; e++) {
let n = this.path[e];
- if (!iy(n.latestValues)) continue;
+ if (!cy(n.latestValues)) continue;
let r;
- n.instance && (ny(n.latestValues) && n.updateSnapshot(), r = qy(), Ay(r, n.measurePageBox())), By(t, n.latestValues, n.snapshot?.layoutBox, r);
+ n.instance && (oy(n.latestValues) && n.updateSnapshot(), r = Zy(), Py(r, n.measurePageBox())), Wy(t, n.latestValues, n.snapshot?.layoutBox, r);
}
- return iy(this.latestValues) && By(t, this.latestValues), t;
+ return cy(this.latestValues) && Wy(t, this.latestValues), t;
}
setTargetDelta(e) {
this.targetDelta = e, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
@@ -19096,7 +19121,7 @@ function db({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
}
forceRelativeParentToResolveTarget() {
- this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== ih.timestamp && this.relativeParent.resolveTargetDelta(!0);
+ this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== lh.timestamp && this.relativeParent.resolveTargetDelta(!0);
}
resolveTargetDelta(e = !1) {
let t = this.getLead();
@@ -19105,32 +19130,32 @@ function db({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
if (!(e || n && this.isSharedProjectionDirty || this.isProjectionDirty || this.parent?.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize)) return;
let { layout: r, layoutId: i } = this.options;
if (!this.layout || !(r || i)) return;
- this.resolvedRelativeTargetAt = ih.timestamp;
+ this.resolvedRelativeTargetAt = lh.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 = qy(), this.targetWithTransforms = qy()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Cne(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) : Ay(this.target, this.layout.layoutBox), dy(this.target, this.targetDelta)) : Ay(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), Cy.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 = Zy(), this.targetWithTransforms = Zy()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Cne(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) : Py(this.target, this.layout.layoutBox), hy(this.target, this.targetDelta)) : Py(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), Ey.countProjection?.(1));
}
getClosestProjectingParent() {
- if (!(!this.parent || ny(this.parent.latestValues) || oy(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
+ if (!(!this.parent || oy(this.parent.latestValues) || uy(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 = qy(), this.relativeTargetOrigin = qy(), Ly(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), Ay(this.relativeTarget, this.relativeTargetOrigin);
+ this.relativeParent = e, this.forceRelativeParentToResolveTarget(), this.relativeTarget = Zy(), this.relativeTargetOrigin = Zy(), Vy(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), Py(this.relativeTarget, this.relativeTargetOrigin);
}
removeRelativeTarget() {
this.relativeParent = this.relativeTarget = void 0;
}
calcProjection() {
let e = this.getLead(), t = !!this.resumingFrom || this !== e, n = !0;
- if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === ih.timestamp && (n = !1), n) return;
+ if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === lh.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;
- Ay(this.layoutCorrected, this.layout.layoutBox);
+ Py(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 = qy());
+ 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 = Zy());
let { target: s } = e;
- s ? (!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (jy(this.prevProjectionDelta.x, this.projectionDelta.x), jy(this.prevProjectionDelta.y, this.projectionDelta.y)), Py(this.projectionDelta, this.layoutCorrected, s, this.latestValues), this.treeScale.x === a && this.treeScale.y === o && tb(this.projectionDelta.x, this.prevProjectionDelta.x) && tb(this.projectionDelta.y, this.prevProjectionDelta.y) || (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), Cy.countProjection?.(2)) : this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
+ s ? (!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Fy(this.prevProjectionDelta.x, this.projectionDelta.x), Fy(this.prevProjectionDelta.y, this.projectionDelta.y)), Ry(this.projectionDelta, this.layoutCorrected, s, this.latestValues), this.treeScale.x === a && this.treeScale.y === o && ab(this.projectionDelta.x, this.prevProjectionDelta.x) && ab(this.projectionDelta.y, this.prevProjectionDelta.y) || (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), Ey.countProjection?.(2)) : this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
}
hide() {
this.isVisible = !1;
@@ -19142,22 +19167,22 @@ function db({ 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 = Gy(), this.projectionDelta = Gy(), this.projectionDeltaWithTransform = Gy();
+ this.prevProjectionDelta = Yy(), this.projectionDelta = Yy(), this.projectionDeltaWithTransform = Yy();
}
setAnimationOrigin(e, t = !1, n) {
- let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = Gy();
+ let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = Yy();
this.relativeParent && this.relativeParent.options.layoutRoot || (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !t;
- let s = qy(), 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 = Zy(), 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));
this.animationProgress = 0;
let f, p = n?.interpolateProjection(e);
this.mixTargetDelta = (t) => {
let n = t / 1e3, r = p?.(n);
- hb(o.x, e.x, n), hb(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 && (Ly(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), Jne(this.relativeTarget, this.relativeTargetOrigin, s, n), f && Zy(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= qy(), Ay(f, this.relativeTarget)), c && (this.animationValues = a, hne(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;
+ yb(o.x, e.x, n), yb(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 && (Vy(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), Jne(this.relativeTarget, this.relativeTargetOrigin, s, n), f && tb(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= Zy(), Py(f, this.relativeTarget)), c && (this.animationValues = a, hne(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 &&= (_g(this.pendingAnimation), void 0), this.pendingAnimation = gg.update(() => {
- ab.hasAnimatedSinceResize = !0, this.motionValue ||= hv(0), this.motionValue.jump(0, !1), this.currentAnimation = xy(this.motionValue, [0, 1e3], {
+ this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (xg(this.pendingAnimation), void 0), this.pendingAnimation = bg.update(() => {
+ lb.hasAnimatedSinceResize = !0, this.motionValue ||= yv(0), this.motionValue.jump(0, !1), this.currentAnimation = wy(this.motionValue, [0, 1e3], {
...e,
velocity: 0,
isSync: !0,
@@ -19167,7 +19192,7 @@ function db({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
onComplete: () => {
e.onComplete && e.onComplete(), this.completeAnimation();
}
- }), Aee(this.currentAnimation, this), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
+ }), jee(this.currentAnimation, this), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
});
}
completeAnimation() {
@@ -19181,11 +19206,11 @@ function db({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
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 && vb(this.options.animationType, this.layout.layoutBox, n.layoutBox)) {
+ if (this !== e && this.layout && n && Sb(this.options.animationType, this.layout.layoutBox, n.layoutBox)) {
let { layoutBox: e } = this.layout, t = i;
- i = this.target || qy(), _b(i.x, t.x, e.x), _b(i.y, t.y, e.y);
+ i = this.target || Zy(), xb(i.x, t.x, e.x), xb(i.y, t.y, e.y);
}
- Ay(t, i), _y(t, r), Py(this.projectionDeltaWithTransform, this.layoutCorrected, t, r);
+ Py(t, i), xy(t, r), Ry(this.projectionDeltaWithTransform, this.layoutCorrected, t, r);
}
}
registerSharedNode(e, t) {
@@ -19222,10 +19247,10 @@ function db({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
let { visualElement: e } = this.options;
if (!e) return;
let { latestValues: t } = e;
- if (!ay(t)) return;
+ if (!ly(t)) return;
let n = {};
- for (let t = 0; t < ob.length; t++) sb(ob[t], e, n, this.animationValues);
- for (let t = 0; t < ry.length; t++) sb(ry[t], e, n, this.animationValues);
+ for (let t = 0; t < ub.length; t++) db(ub[t], e, n, this.animationValues);
+ for (let t = 0; t < sy.length; t++) db(sy[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();
@@ -19239,11 +19264,11 @@ function db({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
let r = this.getTransformTemplate();
if (this.needsReset) {
- this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = wy(t?.pointerEvents) || "", e.transform = r ? r(this.latestValues, "") : "none";
+ this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = Oy(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 = wy(t?.pointerEvents) || ""), this.hasProjected && !iy(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 = Oy(t?.pointerEvents) || ""), this.hasProjected && !cy(this.latestValues) && (e.transform = r ? r({}, "") : "none", this.hasProjected = !1);
return;
}
e.visibility = "";
@@ -19253,21 +19278,21 @@ function db({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
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 Sy) {
+ for (let t in Ty) {
if (i[t] === void 0) continue;
- let { correct: r, applyTo: o, isCSSVariable: s } = Sy[t], c = a === "none" ? i[t] : r(i[t], n);
+ let { correct: r, applyTo: o, isCSSVariable: s } = Ty[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 ? wy(t?.pointerEvents) || "" : "none");
+ this.options.layoutId && (e.pointerEvents = n === this ? Oy(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(fb), this.root.sharedNodes.clear();
+ this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(gb), this.root.sharedNodes.clear();
}
};
}
@@ -19278,31 +19303,31 @@ function Ine(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") ib((e) => {
- let t = My(r[e]);
+ if (i === "size") cb((e) => {
+ let t = Iy(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";
- ky(r[e], a[e]);
- } else vb(i, t.layoutBox, n) && ib((t) => {
- let n = My(a[t]);
+ Ny(r[e], a[e]);
+ } else Sb(i, t.layoutBox, n) && cb((t) => {
+ let n = Iy(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 = Gy();
- Py(c, n, t.layoutBox);
- let l = Gy();
- Py(l, a ? e.applyTransform(r, !0) : n, s);
- let u = !Yy(c), d = !1, f = e.getClosestProjectingParent();
+ let c = Yy();
+ Ry(c, n, t.layoutBox);
+ let l = Yy();
+ Ry(l, a ? e.applyTransform(r, !0) : n, s);
+ let u = !$y(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 = qy();
- Ly(c, a ? e.resumeFrom.applyTransform(t.layoutBox, !0, void 0, !0, f.depth + 1) : t.layoutBox, r.layoutBox, s);
- let l = qy();
- Ly(l, n, i.layoutBox, s), a && o(c, l), $y(c, l) || (d = !0), f.options.layoutRoot && (e.relativeTarget = l, e.relativeTargetOrigin = c, e.relativeParent = f);
+ let s = e.options.layoutAnchor || void 0, c = Zy();
+ Vy(c, a ? e.resumeFrom.applyTransform(t.layoutBox, !0, void 0, !0, f.depth + 1) : t.layoutBox, r.layoutBox, s);
+ let l = Zy();
+ Vy(l, n, i.layoutBox, s), a && o(c, l), rb(c, l) || (d = !0), f.options.layoutRoot && (e.relativeTarget = l, e.relativeTargetOrigin = c, e.relativeParent = f);
}
}
e.notifyListeners("didUpdate", {
@@ -19317,7 +19342,7 @@ function Ine(e) {
e.options.transition = void 0;
}
function Lne(e) {
- Cy.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);
+ Ey.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) {
e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
@@ -19325,20 +19350,20 @@ function Rne(e) {
function zne(e) {
e.clearSnapshot();
}
-function fb(e) {
+function gb(e) {
e.clearMeasurements();
}
function Bne(e) {
e.isLayoutDirty = !0, e.updateLayout();
}
-function pb(e) {
+function _b(e) {
e.isLayoutDirty = !1;
}
function Vne(e) {
let { snapshot: t, dragAncestor: n } = e, r = n?.isAnimationBlocked && n.layout;
if (!t || !r || e.resumeFrom || e.isAnimationBlocked) return;
let i = n.dragSnapshot;
- ib((e) => my(t.layoutBox[e], r.layoutBox[e].min - i.layoutBox[e].min));
+ cb((e) => vy(t.layoutBox[e], r.layoutBox[e].min - i.layoutBox[e].min));
}
function Hne(e) {
e.isAnimationBlocked && e.layout && !e.isLayoutDirty && (e.snapshot = e.dragSnapshot || e.layout, e.isLayoutDirty = !0);
@@ -19350,7 +19375,7 @@ function Wne(e) {
let { visualElement: t } = e.options;
t?.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
}
-function mb(e) {
+function vb(e) {
e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
}
function Gne(e) {
@@ -19362,14 +19387,14 @@ function Kne(e) {
function qne(e) {
e.resetSkewAndRotation();
}
-function hb(e, t, n) {
- e.translate = ag(t.translate, 0, n), e.scale = ag(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
+function yb(e, t, n) {
+ e.translate = lg(t.translate, 0, n), e.scale = lg(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
}
-function gb(e, t, n, r) {
- e.min = ag(t.min, n.min, r), e.max = ag(t.max, n.max, r);
+function bb(e, t, n, r) {
+ e.min = lg(t.min, n.min, r), e.max = lg(t.max, n.max, r);
}
function Jne(e, t, n, r) {
- gb(e.x, t.x, n.x, r), gb(e.y, t.y, n.y, r);
+ bb(e.x, t.x, n.x, r), bb(e.y, t.y, n.y, r);
}
function Yne(e) {
return e.animationValues?.opacityExit !== void 0;
@@ -19383,51 +19408,51 @@ var Xne = {
1
]
};
-function _b(e, t, n) {
- e.max = My(n) + (e.min = t.min);
+function xb(e, t, n) {
+ e.max = Iy(n) + (e.min = t.min);
}
-function vb(e, t, n) {
- return e === "position" || e === "preserve-aspect" && !Sne(eb(t), eb(n), .2);
+function Sb(e, t, n) {
+ return e === "position" || e === "preserve-aspect" && !Sne(ib(t), ib(n), .2);
}
function Zne(e) {
return e !== e.root && e.scroll?.wasRoot;
}
// node_modules/motion-dom/dist/es/events/add-dom-event.mjs
-function yb(e, t, n, r = { passive: !0 }) {
+function Cb(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__ */ db({
- attachResizeListener: (e, t) => yb(e, "resize", t),
+var Qne = /* @__PURE__ */ hb({
+ attachResizeListener: (e, t) => Cb(e, "resize", t),
measureScroll: ane,
checkIsScrollRoot: () => !0
-}), bb = { current: void 0 }, xb = /* @__PURE__ */ db({
+}), wb = { current: void 0 }, Tb = /* @__PURE__ */ hb({
measureScroll: (e) => ({
x: e.scrollLeft,
y: e.scrollTop
}),
defaultParent: () => {
- if (!bb.current) {
+ if (!wb.current) {
let e = new Qne({});
- e.mount(window), e.setOptions({ layoutScroll: !0 }), bb.current = e;
+ e.mount(window), e.setOptions({ layoutScroll: !0 }), wb.current = e;
}
- return bb.current;
+ return wb.current;
},
resetTransform: (e, t) => {
e.style.transform = t === void 0 ? "none" : t;
},
checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed"
-}), Sb = /* @__PURE__ */ new WeakMap();
+}), Eb = /* @__PURE__ */ new WeakMap();
// node_modules/motion-dom/dist/es/render/utils/is-animation-controls.mjs
-function Cb(e) {
+function Db(e) {
return typeof e == "object" && !!e && typeof e.start == "function";
}
// node_modules/motion-dom/dist/es/render/utils/is-variant-label.mjs
-function wb(e) {
+function Ob(e) {
return typeof e == "string" || Array.isArray(e);
}
// node_modules/motion-dom/dist/es/render/utils/variant-props.mjs
-var Tb = [
+var kb = [
"animate",
"whileInView",
"whileFocus",
@@ -19435,29 +19460,29 @@ var Tb = [
"whileTap",
"whileDrag",
"exit"
-], Eb = /* @__PURE__ */ ["initial"].concat(Tb);
+], Ab = /* @__PURE__ */ ["initial"].concat(kb);
// node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs
-function Db(e) {
- if (Cb(e.animate)) return !0;
- for (let t = 0; t < Eb.length; t++) if (wb(e[Eb[t]])) return !0;
+function jb(e) {
+ if (Db(e.animate)) return !0;
+ for (let t = 0; t < Ab.length; t++) if (Ob(e[Ab[t]])) return !0;
return !1;
}
-function Ob(e) {
- return !!(Db(e) || e.variants);
+function Mb(e) {
+ return !!(jb(e) || e.variants);
}
// node_modules/motion-dom/dist/es/render/utils/motion-values.mjs
function $ne(e, t, n) {
for (let r in t) {
let i = t[r], a = n[r];
- if (wv(i)) e.addValue(r, i);
- else if (wv(a)) e.addValue(r, hv(i, { owner: e }));
+ if (Ov(i)) e.addValue(r, i);
+ else if (Ov(a)) e.addValue(r, yv(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, hv(t === void 0 ? i : t, { owner: e }));
+ e.addValue(r, yv(t === void 0 ? i : t, { owner: e }));
}
}
}
@@ -19465,17 +19490,17 @@ function $ne(e, t, n) {
return t;
}
// node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.mjs
-var kb = { current: null }, Ab = { current: !1 }, ere = typeof window < "u";
-function jb() {
- if (Ab.current = !0, ere) {
+var Nb = { current: null }, Pb = { current: !1 }, ere = typeof window < "u";
+function Fb() {
+ if (Pb.current = !0, ere) {
if (window.matchMedia) {
- let e = window.matchMedia("(prefers-reduced-motion)"), t = () => kb.current = e.matches;
+ let e = window.matchMedia("(prefers-reduced-motion)"), t = () => Nb.current = e.matches;
e.addEventListener("change", t), t();
- } else kb.current = !1;
+ } else Nb.current = !1;
}
}
// node_modules/motion-dom/dist/es/render/VisualElement.mjs
-var Mb = [
+var Ib = [
"AnimationStart",
"AnimationComplete",
"Update",
@@ -19483,35 +19508,35 @@ var Mb = [
"LayoutMeasure",
"LayoutAnimationStart",
"LayoutAnimationComplete"
-], Nb = {};
-function Pb(e) {
- Nb = e;
+], Lb = {};
+function Rb(e) {
+ Lb = e;
}
function tre() {
- return Nb;
+ return Lb;
}
var nre = 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 = O_, 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 = j_, 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 = sh.now();
- this.renderScheduledAt < e && (this.renderScheduledAt = e, gg.render(this.render, !1, !0));
+ let e = fh.now();
+ this.renderScheduledAt < e && (this.renderScheduledAt = e, bg.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 = Db(t), this.isVariantNode = Ob(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 = jb(t), this.isVariantNode = Mb(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 && wv(t) && t.set(c[e]);
+ c[e] !== void 0 && Ov(t) && t.set(c[e]);
}
}
mount(e) {
if (this.hasBeenMounted) for (let e in this.initialValues) this.values.get(e)?.jump(this.initialValues[e]), this.latestValues[e] = this.initialValues[e];
- if (this.current = e, Sb.set(e, this), this.projection?.instance || this.projection?.mount(e), this.isVariantNode && !this.isControllingVariants) {
+ if (this.current = e, Eb.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;
@@ -19521,10 +19546,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 : (Ab.current || jb(), this.shouldReduceMotion = kb.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 : (Pb.current || Fb(), this.shouldReduceMotion = Nb.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
}
unmount() {
- this.projection?.unmount(), _g(this.notifyUpdate), _g(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree?.(), this.parent?.removeChild(this);
+ this.projection?.unmount(), xg(this.notifyUpdate), xg(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];
@@ -19539,24 +19564,24 @@ var nre = class {
this.children.delete(e), this.enteringChildren?.delete(e);
}
bindToMotionValue(e, t) {
- if (this.valueSubscriptions.get(e)?.(), t.accelerate && G_.has(e) && this.current instanceof HTMLElement) {
- let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new V_({
+ if (this.valueSubscriptions.get(e)?.(), t.accelerate && Y_.has(e) && this.current instanceof HTMLElement) {
+ let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new W_({
element: this.current,
name: e,
keyframes: r,
times: i,
ease: a,
- duration: /* @__PURE__ */ Pm(o)
+ duration: /* @__PURE__ */ zm(o)
}), c = n(s);
this.valueSubscriptions.set(e, () => {
c(), s.cancel();
});
return;
}
- let n = g_.has(e);
+ let n = y_.has(e);
n && this.onBindTransform && this.onBindTransform();
let r = t.on("change", (t) => {
- this.latestValues[e] = t, this.props.onUpdate && gg.preRender(this.notifyUpdate), n && (this.projection && (this.projection.isTransformDirty = !0), $_.get(this.current)?.check()), this.scheduleRender();
+ this.latestValues[e] = t, this.props.onUpdate && bg.preRender(this.notifyUpdate), n && (this.projection && (this.projection.isTransformDirty = !0), rv.get(this.current)?.check()), this.scheduleRender();
}), i;
typeof window < "u" && window.MotionCheckAppearSync && (i = window.MotionCheckAppearSync(this, e, t)), this.valueSubscriptions.set(e, () => {
r(), i?.();
@@ -19567,8 +19592,8 @@ var nre = class {
}
updateFeatures() {
let e = "animation";
- for (e in Nb) {
- let t = Nb[e];
+ for (e in Lb) {
+ let t = Lb[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]) {
@@ -19581,7 +19606,7 @@ var nre = class {
this.build(this.renderState, this.latestValues, this.props);
}
measureViewportBox() {
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : qy();
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : Zy();
}
getStaticValue(e) {
return this.latestValues[e];
@@ -19591,9 +19616,9 @@ var nre = class {
}
update(e, t) {
let { transformTemplate: n, onUpdate: r } = this.props;
- (e.transformTemplate || n) && this.scheduleRender(), (e.transformTemplate && !n || e.onUpdate && !r) && $_.get(this.current)?.demote(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
- for (let t = 0; t < Mb.length; t++) {
- let n = Mb[t];
+ (e.transformTemplate || n) && this.scheduleRender(), (e.transformTemplate && !n || e.onUpdate && !r) && rv.get(this.current)?.demote(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
+ for (let t = 0; t < Ib.length; t++) {
+ let n = Ib[t];
this.propEventSubscriptions[n]?.(), delete this.propEventSubscriptions[n];
let r = e["on" + n];
r && (this.propEventSubscriptions[n] = this.on(n, r));
@@ -19628,27 +19653,27 @@ 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 = hv(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 = yv(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" && (Em(n) || Om(n)) ? n = parseFloat(n) : typeof n != "number" && !ng.test(n) && ng.test(t) && (n = i_(e, t)), this.setBaseTarget(e, wv(n) ? n.get() : n)), wv(n) ? n.get() : n;
+ return n != null && (typeof n == "string" && (jm(n) || Nm(n)) ? n = parseFloat(n) : typeof n != "number" && !ag.test(n) && ag.test(t) && (n = s_(e, t)), this.setBaseTarget(e, Ov(n) ? n.get() : n)), Ov(n) ? n.get() : n;
}
setBaseTarget(e, t) {
this.baseTarget[e] = t;
}
on(e, t) {
- return (this.events[e] || (this.events[e] = new Nm())).add(t);
+ return (this.events[e] || (this.events[e] = new Rm())).add(t);
}
notify(e, ...t) {
this.events[e]?.notify(...t);
}
scheduleRenderMicrotask() {
- by.render(this.render);
+ Cy.render(this.render);
}
-}, Fb = class extends nre {
+}, zb = class extends nre {
constructor() {
- super(...arguments), this.KeyframeResolver = jv;
+ super(...arguments), this.KeyframeResolver = Fv;
}
sortInstanceNodePosition(e, t) {
return e.compareDocumentPosition(t) & 2 ? 1 : -1;
@@ -19663,72 +19688,72 @@ var nre = class {
handleChildMotionValue() {
this.childSubscription && (this.childSubscription(), delete this.childSubscription);
let { children: e } = this.props;
- wv(e) && (this.childSubscription = e.on("change", (e) => {
+ Ov(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 Ib(e, { style: t, vars: n }, r, i) {
+function Bb(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 Lb(e, { layout: t, layoutId: n }) {
- return g_.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!Sy[e] || e === "opacity");
+function Vb(e, { layout: t, layoutId: n }) {
+ return y_.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!Ty[e] || e === "opacity");
}
// node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs
-function Rb(e, t, n) {
+function Hb(e, t, n) {
let r = e.style, i = t?.style, a = {};
if (!r) return a;
- for (let t in r) (wv(r[t]) || i && wv(i[t]) || Lb(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
+ for (let t in r) (Ov(r[t]) || i && Ov(i[t]) || Vb(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) {
return window.getComputedStyle(e);
}
-var ire = class extends Fb {
+var ire = class extends zb {
constructor() {
- super(...arguments), this.type = "html", this.renderInstance = Ib;
+ super(...arguments), this.type = "html", this.renderInstance = Bb;
}
mount(e) {
super.mount(e);
}
readValueFromInstance(e, t) {
- if (g_.has(t)) return this.projection?.isProjecting ? f_(t) : m_(e, t);
+ if (y_.has(t)) return this.projection?.isProjecting ? h_(t) : __(e, t);
{
- let n = rre(e), r = (uh(t) ? n.getPropertyValue(t) : n[t]) || 0;
+ let n = rre(e), r = (hh(t) ? n.getPropertyValue(t) : n[t]) || 0;
return typeof r == "string" ? r.trim() : r;
}
}
measureInstanceViewportBox(e, { transformPagePoint: t }) {
- return vy(e, t);
+ return Sy(e, t);
}
build(e, t, n) {
- Yv(e, t, n.transformTemplate);
+ $v(e, t, n.transformTemplate);
}
scrapeMotionValuesFromProps(e, t, n) {
- return Rb(e, t, n);
+ return Hb(e, t, n);
}
-}, zb = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1;
+}, Ub = (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 Bb(e) {
+function Wb(e) {
return { point: {
x: e.pageX,
y: e.pageY
} };
}
-var are = (e) => (t) => zb(t) && e(t, Bb(t));
+var are = (e) => (t) => Ub(t) && e(t, Wb(t));
// node_modules/motion-dom/dist/es/events/add-pointer-event.mjs
-function Vb(e, t, n, r) {
- return yb(e, t, are(n), r);
+function Gb(e, t, n, r) {
+ return Cb(e, t, are(n), r);
}
// node_modules/motion-dom/dist/es/resize/handle-element.mjs
-var Hb = /* @__PURE__ */ new WeakMap(), Ub, Wb = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : Rv(r) && "getBBox" in r ? r.getBBox()[t] : r[n], ore = /*@__PURE__*/ Wb("inline", "width", "offsetWidth"), sre = /*@__PURE__*/ Wb("block", "height", "offsetHeight");
+var Kb = /* @__PURE__ */ new WeakMap(), qb, Jb = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : Hv(r) && "getBBox" in r ? r.getBBox()[t] : r[n], ore = /*@__PURE__*/ Jb("inline", "width", "offsetWidth"), sre = /*@__PURE__*/ Jb("block", "height", "offsetHeight");
function cre({ target: e, borderBoxSize: t }) {
- Hb.get(e)?.forEach((n) => {
+ Kb.get(e)?.forEach((n) => {
n(e, {
get width() {
return ore(e, t);
@@ -19743,25 +19768,25 @@ function lre(e) {
e.forEach(cre);
}
function ure() {
- typeof ResizeObserver < "u" && (Ub = new ResizeObserver(lre));
+ typeof ResizeObserver < "u" && (qb = new ResizeObserver(lre));
}
function dre(e, t) {
- Ub || ure();
- let n = Hv(e);
+ qb || ure();
+ let n = Kv(e);
return n.forEach((e) => {
- let n = Hb.get(e);
- n || (n = /* @__PURE__ */ new Set(), Hb.set(e, n)), n.add(t), Ub?.observe(e);
+ let n = Kb.get(e);
+ n || (n = /* @__PURE__ */ new Set(), Kb.set(e, n)), n.add(t), qb?.observe(e);
}), () => {
n.forEach((e) => {
- let n = Hb.get(e);
- n?.delete(t), n?.size || Ub?.unobserve(e);
+ let n = Kb.get(e);
+ n?.delete(t), n?.size || qb?.unobserve(e);
});
};
}
// node_modules/motion-dom/dist/es/resize/handle-window.mjs
-var Gb = /* @__PURE__ */ new Set(), Kb;
+var Yb = /* @__PURE__ */ new Set(), Xb;
function fre() {
- Kb = () => {
+ Xb = () => {
let e = {
get width() {
return window.innerWidth;
@@ -19770,26 +19795,26 @@ function fre() {
return window.innerHeight;
}
};
- Gb.forEach((t) => t(e));
- }, window.addEventListener("resize", Kb);
+ Yb.forEach((t) => t(e));
+ }, window.addEventListener("resize", Xb);
}
-function qb(e) {
- return Gb.add(e), Kb || fre(), () => {
- Gb.delete(e), !Gb.size && typeof Kb == "function" && (window.removeEventListener("resize", Kb), Kb = void 0);
+function pre(e) {
+ return Yb.add(e), Xb || fre(), () => {
+ Yb.delete(e), !Yb.size && typeof Xb == "function" && (window.removeEventListener("resize", Xb), Xb = void 0);
};
}
// node_modules/motion-dom/dist/es/resize/index.mjs
-function Jb(e, t) {
- return Bv(typeof e == "function" ? qb(e) : dre(e, t));
+function Zb(e, t) {
+ return Wv(typeof e == "function" ? pre(e) : dre(e, t));
}
// node_modules/motion-dom/dist/es/utils/distance.mjs
-var Yb = (e, t) => Math.abs(e - t);
-function Xb(e, t) {
- let n = Yb(e.x, t.x), r = Yb(e.y, t.y);
+var Qb = (e, t) => Math.abs(e - t);
+function $b(e, t) {
+ let n = Qb(e.x, t.x), r = Qb(e.y, t.y);
return Math.sqrt(n ** 2 + r ** 2);
}
// node_modules/motion-dom/dist/es/gestures/pan/PanSession.mjs
-var Zb = /*#__PURE__*/ new Set(["auto", "scroll"]), Qb = class {
+var ex = /*#__PURE__*/ new Set(["auto", "scroll"]), tx = 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);
@@ -19797,8 +19822,8 @@ var Zb = /*#__PURE__*/ new Set(["auto", "scroll"]), Qb = class {
this.handleScroll(window);
}, this.updatePoint = () => {
if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- this.hasPendingMove = !1, this.lastRawMoveEventInfo && (this.lastMoveEventInfo = ex(this.lastRawMoveEventInfo, this.transformPagePoint));
- let e = nx(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = Xb(e.offset, {
+ this.hasPendingMove = !1, this.lastRawMoveEventInfo && (this.lastMoveEventInfo = rx(this.lastRawMoveEventInfo, this.transformPagePoint));
+ let e = ax(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = $b(e.offset, {
x: 0,
y: 0
}) >= this.distanceThreshold;
@@ -19806,99 +19831,99 @@ var Zb = /*#__PURE__*/ new Set(["auto", "scroll"]), Qb = class {
let { point: r } = e;
this.history.push({
...r,
- timestamp: sh.now()
+ timestamp: fh.now()
});
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 = ex(t, this.transformPagePoint), this.hasPendingMove = !0, gg.update(this.updatePoint, !0);
+ this.handleScroll(window), this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = rx(t, this.transformPagePoint), this.hasPendingMove = !0, bg.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 = nx(e.type === "pointercancel" ? this.lastMoveEventInfo : ex(t, this.transformPagePoint), this.history);
+ let a = ax(e.type === "pointercancel" ? this.lastMoveEventInfo : rx(t, this.transformPagePoint), this.history);
this.startEvent && n?.(e, a), r?.(e, a);
- }, !zb(e)) return;
+ }, !Ub(e)) return;
this.dragSnapToOrigin = i, this.handlers = t, this.transformPagePoint = n, this.distanceThreshold = a, this.contextWindow = r || window;
- let s = ex(Bb(e), this.transformPagePoint), { point: c } = s;
+ let s = rx(Wb(e), this.transformPagePoint), { point: c } = s;
this.history = [{
...c,
- timestamp: sh.now()
+ timestamp: fh.now()
}];
let { onSessionStart: l } = t;
- l && l(e, nx(s, this.history));
+ l && l(e, ax(s, this.history));
let u = {
passive: !0,
capture: !0
};
- this.removeListeners = jm(Vb(this.contextWindow, "pointermove", this.handlePointerMove, u), Vb(this.contextWindow, "pointerup", this.handlePointerUp, u), Vb(this.contextWindow, "pointercancel", this.handlePointerUp, u)), o && this.startScrollTracking(o);
+ this.removeListeners = Im(Gb(this.contextWindow, "pointermove", this.handlePointerMove, u), Gb(this.contextWindow, "pointerup", this.handlePointerUp, u), Gb(this.contextWindow, "pointercancel", this.handlePointerUp, u)), o && this.startScrollTracking(o);
}
startScrollTracking(e) {
let t = e.parentElement;
for (; t;) {
let e = getComputedStyle(t);
- (Zb.has(e.overflowX) || Zb.has(e.overflowY)) && this.scrollPositions.set(t, $b(t)), t = t.parentElement;
+ (ex.has(e.overflowX) || ex.has(e.overflowY)) && this.scrollPositions.set(t, nx(t)), t = t.parentElement;
}
- this.scrollPositions.set(window, $b(window)), this.removeScrollListeners = jm(yb(window, "scroll", this.onElementScroll, { capture: !0 }), yb(window, "scroll", this.onWindowScroll, {}));
+ this.scrollPositions.set(window, nx(window)), this.removeScrollListeners = Im(Cb(window, "scroll", this.onElementScroll, { capture: !0 }), Cb(window, "scroll", this.onWindowScroll, {}));
}
handleScroll(e) {
let t = this.scrollPositions.get(e);
if (!t) return;
- let n = e === window, r = $b(e), i = {
+ let n = e === window, r = nx(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), gg.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), bg.update(this.updatePoint, !0));
}
updateHandlers(e) {
this.handlers = e;
}
end() {
- this.removeListeners?.(), this.removeScrollListeners?.(), this.scrollPositions.clear(), _g(this.updatePoint);
+ this.removeListeners?.(), this.removeScrollListeners?.(), this.scrollPositions.clear(), xg(this.updatePoint);
}
-}, $b = (e) => e === window ? {
+}, nx = (e) => e === window ? {
x: window.scrollX,
y: window.scrollY
} : {
x: e.scrollLeft,
y: e.scrollTop
};
-function ex(e, t) {
+function rx(e, t) {
return t ? { point: t(e.point) } : e;
}
-function tx(e, t) {
+function ix(e, t) {
return {
x: e.x - t.x,
y: e.y - t.y
};
}
-function nx({ point: e }, t) {
+function ax({ point: e }, t) {
return {
point: e,
- delta: tx(e, rx(t)),
- offset: tx(e, pre(t)),
- velocity: mre(t, .1)
+ delta: ix(e, ox(t)),
+ offset: ix(e, mre(t)),
+ velocity: hre(t, .1)
};
}
-function pre(e) {
+function mre(e) {
return e[0];
}
-function rx(e) {
+function ox(e) {
return e[e.length - 1];
}
-function mre(e, t) {
+function hre(e, t) {
if (e.length < 2) return {
x: 0,
y: 0
};
- let n = e.length - 1, r = null, i = rx(e);
- for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ Pm(t)));) n--;
+ let n = e.length - 1, r = null, i = ox(e);
+ for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ zm(t)));) n--;
if (!r) return {
x: 0,
y: 0
};
- r === e[0] && e.length > 2 && i.timestamp - r.timestamp > /* @__PURE__ */ Pm(t) * 2 && (r = e[1]);
- let a = /* @__PURE__ */ Fm(i.timestamp - r.timestamp);
+ r === e[0] && e.length > 2 && i.timestamp - r.timestamp > /* @__PURE__ */ zm(t) * 2 && (r = e[1]);
+ let a = /* @__PURE__ */ Bm(i.timestamp - r.timestamp);
if (a === 0) return {
x: 0,
y: 0
@@ -19910,95 +19935,95 @@ function mre(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 hre = /* @__PURE__ */ new Set([
+var gre = /* @__PURE__ */ new Set([
"BUTTON",
"INPUT",
"SELECT",
"TEXTAREA",
"A"
]);
-function gre(e) {
- return hre.has(e.tagName) || e.isContentEditable === !0;
+function _re(e) {
+ return gre.has(e.tagName) || e.isContentEditable === !0;
}
-var _re = /* @__PURE__ */ new Set([
+var vre = /* @__PURE__ */ new Set([
"INPUT",
"SELECT",
"TEXTAREA"
]);
-function vre(e) {
- return _re.has(e.tagName) || e.isContentEditable === !0;
+function yre(e) {
+ return vre.has(e.tagName) || e.isContentEditable === !0;
}
// node_modules/motion-dom/dist/es/gestures/drag/state/is-active.mjs
-var ix = {
+var sx = {
x: !1,
y: !1
};
-function ax() {
- return ix.x || ix.y;
+function cx() {
+ return sx.x || sx.y;
}
// node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs
-function yre(e) {
- return e === "x" || e === "y" ? ix[e] ? null : (ix[e] = !0, () => {
- ix[e] = !1;
- }) : ix.x || ix.y ? null : (ix.x = ix.y = !0, () => {
- ix.x = ix.y = !1;
+function bre(e) {
+ return e === "x" || e === "y" ? sx[e] ? null : (sx[e] = !0, () => {
+ sx[e] = !1;
+ }) : sx.x || sx.y ? null : (sx.x = sx.y = !0, () => {
+ sx.x = sx.y = !1;
});
}
// node_modules/motion-dom/dist/es/gestures/drag/utils/constraints.mjs
-function bre(e, { min: t, max: n }, r) {
- return t !== void 0 && e < t ? e = r ? ag(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? ag(n, e, r.max) : Math.min(e, n)), e;
+function xre(e, { min: t, max: n }, r) {
+ return t !== void 0 && e < t ? e = r ? lg(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? lg(n, e, r.max) : Math.min(e, n)), e;
}
-function ox(e, t, n) {
+function lx(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 xre(e, { top: t, left: n, bottom: r, right: i }) {
+function Sre(e, { top: t, left: n, bottom: r, right: i }) {
return {
- x: ox(e.x, n, i),
- y: ox(e.y, t, r)
+ x: lx(e.x, n, i),
+ y: lx(e.y, t, r)
};
}
-function sx(e, t) {
+function ux(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 Sre(e, t) {
+function Cre(e, t) {
return {
- x: sx(e.x, t.x),
- y: sx(e.y, t.y)
+ x: ux(e.x, t.x),
+ y: ux(e.y, t.y)
};
}
-function Cre(e, t) {
- let n = .5, r = My(e), i = My(t);
- return i > r ? n = /* @__PURE__ */ Mm(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ Mm(e.min, e.max - i, t.min)), wm(0, 1, n);
-}
function wre(e, t) {
+ let n = .5, r = Iy(e), i = Iy(t);
+ return i > r ? n = /* @__PURE__ */ Lm(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ Lm(e.min, e.max - i, t.min)), km(0, 1, n);
+}
+function Tre(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 cx = .35;
-function Tre(e = cx) {
- return e === !1 ? e = 0 : e === !0 && (e = cx), {
- x: lx(e, "left", "right"),
- y: lx(e, "top", "bottom")
+var dx = .35;
+function Ere(e = dx) {
+ return e === !1 ? e = 0 : e === !0 && (e = dx), {
+ x: fx(e, "left", "right"),
+ y: fx(e, "top", "bottom")
};
}
-function lx(e, t, n) {
+function fx(e, t, n) {
return {
- min: ux(e, t),
- max: ux(e, n)
+ min: px(e, t),
+ max: px(e, n)
};
}
-function ux(e, t) {
+function px(e, t) {
return typeof e == "number" ? e : e[t] || 0;
}
// node_modules/motion-dom/dist/es/gestures/drag/VisualElementDragControls.mjs
-function dx(e) {
+function mx(e) {
let t = "";
for (let n of e.path) {
n.scroll = void 0, n.updateScroll();
@@ -20007,12 +20032,12 @@ function dx(e) {
}
return t;
}
-var Ere = /* @__PURE__ */ new WeakMap(), Dre = class {
+var Dre = /* @__PURE__ */ new WeakMap(), Ore = 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 = qy(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e, this.readProps = t;
+ }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = Zy(), 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;
@@ -20020,28 +20045,28 @@ var Ere = /* @__PURE__ */ new WeakMap(), Dre = class {
t && this.snapToCursor(e), this.stopAnimation();
}, i = (e, t) => {
let { drag: n, dragPropagation: r, onDragStart: i } = this.getProps();
- if (n && !r && (this.openDragLock?.(), this.openDragLock = yre(n), !this.openDragLock)) return;
+ if (n && !r && (this.openDragLock?.(), this.openDragLock = bre(n), !this.openDragLock)) return;
this.latestPointerEvent = e, this.latestPanInfo = t, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints();
let { projection: a } = this.visualElement;
- a && (a.isAnimationBlocked = !0, a.target = void 0), ib((e) => {
+ a && (a.isAnimationBlocked = !0, a.target = void 0), cb((e) => {
let t = this.getAxisMotionValue(e).get() || 0;
- if (fh(t) && (t = yv(t, this.visualElement.current) || 0), Mh.test(t)) t = parseFloat(t);
- else if (jh.test(t)) {
+ if (_h(t) && (t = Cv(t, this.visualElement.current) || 0), G.test(t)) t = parseFloat(t);
+ else if (Ih.test(t)) {
let n = a?.layout?.layoutBox[e];
- n && (t = My(n) * (parseFloat(t) / 100));
+ n && (t = Iy(n) * (parseFloat(t) / 100));
}
this.originPoint[e] = t;
- }), i && gg.update(() => i(e, t), !1, !0), Tv(this.visualElement, "transform"), this.visualElement.animationState?.setActive("whileDrag", !0);
+ }), i && bg.update(() => i(e, t), !1, !0), kv(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 = kre(o), this.currentDirection === null) return;
+ if (this.currentDirection = Are(o), this.currentDirection === null) return;
i && i(this.currentDirection);
}
- this.updateAxis("x", o), this.updateAxis("y", o), this.visualElement.render(), a && gg.update(() => a(e, t), !1, !0);
+ this.updateAxis("x", o), this.updateAxis("y", o), this.visualElement.render(), a && bg.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 = () => {
@@ -20051,7 +20076,7 @@ var Ere = /* @__PURE__ */ new WeakMap(), Dre = class {
y: 0
});
}, { dragSnapToOrigin: c } = this.getProps();
- this.panSession = new Qb(e, {
+ this.panSession = new tx(e, {
onSessionStart: r,
onStart: i,
onMove: a,
@@ -20071,7 +20096,7 @@ var Ere = /* @__PURE__ */ new WeakMap(), Dre = class {
let { velocity: o } = i;
this.startAnimation(o, n);
let { onDragEnd: s } = this.getProps();
- s && gg.postRender(() => s(r, i));
+ s && bg.postRender(() => s(r, i));
}
cancel() {
this.isDragging = !1;
@@ -20083,32 +20108,32 @@ var Ere = /* @__PURE__ */ new WeakMap(), Dre = class {
}
updateAxis(e, t) {
let { drag: n } = this.readProps();
- if (!t || !hx(e, n, this.currentDirection)) return;
+ if (!t || !vx(e, n, this.currentDirection)) return;
let r = this.getAxisMotionValue(e), i = this.originPoint[e] + t[e], a = this.constraints && this.constraints[e];
- a && (i = bre(i, a, this.elastic[e])), r.set(i);
+ a && (i = xre(i, a, this.elastic[e])), 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;
- fx(e) ? this.constraints && this.scroll === dx(n) || (this.constraints = this.resolveRefConstraints()) : this.constraints = e && r ? xre(r.layoutBox, e) : !1, this.elastic = Tre(t), i !== this.constraints && !fx(e) && r && this.constraints && !this.hasMutatedConstraints && ib((e) => {
- this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = wre(r.layoutBox[e], this.constraints[e]));
+ hx(e) ? this.constraints && this.scroll === mx(n) || (this.constraints = this.resolveRefConstraints()) : this.constraints = e && r ? Sre(r.layoutBox, e) : !1, this.elastic = Ere(t), i !== this.constraints && !hx(e) && r && this.constraints && !this.hasMutatedConstraints && cb((e) => {
+ this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = Tre(r.layoutBox[e], this.constraints[e]));
});
}
resolveRefConstraints() {
let { dragConstraints: e, onMeasureDragConstraints: t } = this.getProps();
- if (!fx(e)) return !1;
- let n = px(e), { projection: r } = this.visualElement;
+ if (!hx(e)) return !1;
+ let n = gx(e), { projection: r } = this.visualElement;
if (!r || !r.layout) return !1;
- this.scroll = dx(r);
- let i = ine(n, r.root, this.visualElement.getTransformPagePoint()), a = Sre(r.layout.layoutBox, r.removeElementScroll(i));
+ this.scroll = mx(r);
+ let i = ine(n, r.root, this.visualElement.getTransformPagePoint()), a = Cre(r.layout.layoutBox, r.removeElementScroll(i));
if (t) {
let e = t(tne(a));
- this.hasMutatedConstraints = !!e, e && (a = ey(e));
+ this.hasMutatedConstraints = !!e, e && (a = iy(e));
}
return a;
}
startAnimation(e, t) {
- let { drag: n, dragMomentum: r, dragElastic: i, dragTransition: a, dragSnapToOrigin: o, onDragTransitionEnd: s } = this.getProps(), c = this.constraints || {}, l = ib((s) => {
- if (!hx(s, t || n, this.currentDirection)) return;
+ let { drag: n, dragMomentum: r, dragElastic: i, dragTransition: a, dragSnapToOrigin: o, onDragTransitionEnd: s } = this.getProps(), c = this.constraints || {}, l = cb((s) => {
+ if (!vx(s, t || n, this.currentDirection)) return;
let l = c[s] || {};
(o === !0 || o === s) && (l = {
min: 0,
@@ -20131,10 +20156,10 @@ var Ere = /* @__PURE__ */ new WeakMap(), Dre = class {
}
startAxisValueAnimation(e, t) {
let n = this.getAxisMotionValue(e);
- return Tv(this.visualElement, e), n.start(vv(e, n, 0, t, this.visualElement, !1));
+ return kv(this.visualElement, e), n.start(Sv(e, n, 0, t, this.visualElement, !1));
}
stopAnimation() {
- ib((e) => this.getAxisMotionValue(e).stop());
+ cb((e) => this.getAxisMotionValue(e).stop());
}
getAxisMotionValue(e) {
let t = `_drag${e.toUpperCase()}`;
@@ -20145,50 +20170,50 @@ var Ere = /* @__PURE__ */ new WeakMap(), Dre = class {
x: e,
y: t
}, i = this.visualElement.getTransformPagePoint()?.(r) || r, a = this.visualElement.measureViewportBox();
- ib((e) => {
- if (!hx(e, n, this.currentDirection)) return;
+ cb((e) => {
+ if (!vx(e, n, this.currentDirection)) return;
let t = this.getAxisMotionValue(e), { min: r, max: o } = a[e];
- t.set((t.get() || 0) + i[e] - ag(r, o, .5));
+ t.set((t.get() || 0) + i[e] - lg(r, o, .5));
});
}
scalePositionWithinConstraints() {
if (!this.visualElement.current) return;
let { drag: e, dragConstraints: t } = this.getProps(), { projection: n } = this.visualElement;
- if (!fx(t) || !n || !this.constraints) return;
+ if (!hx(t) || !n || !this.constraints) return;
this.stopAnimation();
let r = this.constraints, i = {
x: 0,
y: 0
};
- ib((e) => {
+ cb((e) => {
let t = this.getAxisMotionValue(e).get();
- i[e] = Cre({
+ i[e] = wre({
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(), ib((t) => {
+ this.visualElement.current.style.transform = a ? a({}, "") : "none", n.root?.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), cb((t) => {
let n = this.getAxisMotionValue(t);
- if (!hx(t, e, null) || !n.get()) return;
+ if (!vx(t, e, null) || !n.get()) return;
let { min: r, max: a } = this.constraints[t];
- n.set(ag(r, a, i[t]));
+ n.set(lg(r, a, i[t]));
}), this.visualElement.render();
}
addListeners() {
if (!this.visualElement.current) return;
- Ere.set(this.visualElement, this);
- let e = this.visualElement.current, t = Vb(e, "pointerdown", (t) => {
- let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && vre(i);
+ Dre.set(this.visualElement, this);
+ let e = this.visualElement.current, t = Gb(e, "pointerdown", (t) => {
+ let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && yre(i);
n && r && !a && this.start(t);
}), n, r = () => {
- let { dragConstraints: t } = this.getProps(), r = fx(t) && px(t);
- r && (this.constraints = this.resolveRefConstraints(), n ||= Ore(e, r, () => this.scalePositionWithinConstraints()));
+ let { dragConstraints: t } = this.getProps(), r = hx(t) && gx(t);
+ r && (this.constraints = this.resolveRefConstraints(), n ||= kre(e, r, () => this.scalePositionWithinConstraints()));
}, { projection: i } = this.visualElement, a = i.addEventListener("measure", r);
- i.layout || (i.root?.updateScroll(), i.updateLayout()), gg.read(r);
- let o = yb(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
- this.isDragging && t && (ib((t) => {
- if (!hx(t, this.getProps().drag, this.currentDirection)) return;
+ i.layout || (i.root?.updateScroll(), i.updateLayout()), bg.read(r);
+ let o = Cb(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
+ this.isDragging && t && (cb((t) => {
+ if (!vx(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());
@@ -20198,7 +20223,7 @@ var Ere = /* @__PURE__ */ new WeakMap(), Dre = class {
};
}
getProps() {
- let e = this.readProps(), { dragElastic: t = cx, dragMomentum: n = !0 } = e;
+ let e = this.readProps(), { dragElastic: t = dx, dragMomentum: n = !0 } = e;
return {
...e,
dragElastic: t,
@@ -20206,32 +20231,32 @@ var Ere = /* @__PURE__ */ new WeakMap(), Dre = class {
};
}
};
-function fx(e) {
+function hx(e) {
return !!e && typeof e == "object" && ("current" in e || "nodeType" in e);
}
-var px = (e) => "current" in e ? e.current : e;
-function mx(e) {
+var gx = (e) => "current" in e ? e.current : e;
+function _x(e) {
let t = !0;
return () => {
t ? t = !1 : e();
};
}
-function Ore(e, t, n) {
- let r = Jb(e, mx(n)), i = Jb(t, mx(n));
+function kre(e, t, n) {
+ let r = Zb(e, _x(n)), i = Zb(t, _x(n));
return () => {
r(), i();
};
}
-function hx(e, t, n) {
+function vx(e, t, n) {
return (t === !0 || t === e) && (n === null || n === e);
}
-function kre(e, t = 10) {
+function Are(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 gx(e, t) {
- let n = Hv(e), r = new AbortController();
+function yx(e, t) {
+ let n = Kv(e), r = new AbortController();
return [
n,
{
@@ -20239,16 +20264,16 @@ function gx(e, t) {
...t,
signal: r.signal
},
- Bv(() => r.abort())
+ Wv(() => r.abort())
];
}
// node_modules/motion-dom/dist/es/gestures/hover.mjs
-function Are(e) {
- return !(e.pointerType === "touch" || ax());
+function jre(e) {
+ return !(e.pointerType === "touch" || cx());
}
-function jre(e, t, n = {}) {
- t = Vv(t);
- let [r, i, a] = gx(e, n);
+function Mre(e, t, n = {}) {
+ t = Gv(t);
+ let [r, i, a] = yx(e, n);
return r.forEach((e) => {
let n = !1, r = !1, a, o = () => {
e.removeEventListener("pointerleave", u);
@@ -20262,7 +20287,7 @@ function jre(e, t, n = {}) {
e.pointerType !== "touch" && (n ? r = !0 : s(e));
};
e.addEventListener("pointerenter", (n) => {
- if (!Are(n)) return;
+ if (!jre(n)) return;
r = !1;
let o = t(e, n);
typeof o == "function" && (a = o, e.addEventListener("pointerleave", u, i));
@@ -20270,71 +20295,71 @@ function jre(e, t, n = {}) {
}), a;
}
// node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs
-var _x = (e, t) => t ? e === t || _x(e, t.parentElement) : !1, vx = /* @__PURE__ */ new WeakSet();
+var bx = (e, t) => t ? e === t || bx(e, t.parentElement) : !1, xx = /* @__PURE__ */ new WeakSet();
// node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs
-function yx(e) {
+function Sx(e) {
return (t) => {
t.key === "Enter" && e(t);
};
}
-function bx(e, t) {
+function Cx(e, t) {
e.dispatchEvent(new PointerEvent("pointer" + t, {
isPrimary: !0,
bubbles: !0
}));
}
-var Mre = (e, t) => {
- let n = !1, r = yx(() => {
- vx.has(e) || (n = !0, bx(e, "down"));
- }), i = yx(() => {
- n && (n = !1, bx(e, "up"));
+var Nre = (e, t) => {
+ let n = !1, r = Sx(() => {
+ xx.has(e) || (n = !0, Cx(e, "down"));
+ }), i = Sx(() => {
+ n && (n = !1, Cx(e, "up"));
});
e.addEventListener("keydown", r, t), e.addEventListener("keyup", i, t), e.addEventListener("blur", () => {
- e.removeEventListener("keydown", r), e.removeEventListener("keyup", i), n && bx(e, "cancel");
+ e.removeEventListener("keydown", r), e.removeEventListener("keyup", i), n && Cx(e, "cancel");
}, {
...t,
once: !0
});
};
// node_modules/motion-dom/dist/es/gestures/press/index.mjs
-function xx(e) {
- return zb(e) && !ax();
+function wx(e) {
+ return Ub(e) && !cx();
}
-var Sx = /* @__PURE__ */ new WeakSet();
-function Nre(e, t, n = {}) {
- t = Vv(t);
- let [r, i, a] = gx(e, n), o = (e) => {
+var Tx = /* @__PURE__ */ new WeakSet();
+function Pre(e, t, n = {}) {
+ t = Gv(t);
+ let [r, i, a] = yx(e, n), o = (e) => {
let r = e.currentTarget;
- if (!xx(e) || Sx.has(e)) return;
- vx.add(r), n.stopPropagation && Sx.add(e);
+ if (!wx(e) || Tx.has(e)) return;
+ xx.add(r), n.stopPropagation && Tx.add(e);
let a = t(r, e), o = {
...i,
capture: !0
}, s = (e, t) => {
- window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), vx.has(r) && vx.delete(r), xx(e) && typeof a == "function" && a(e, { success: t });
+ window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), xx.has(r) && xx.delete(r), wx(e) && typeof a == "function" && a(e, { success: t });
}, c = (e) => {
- s(e, r === window || r === document || n.useGlobalTarget || _x(r, e.target));
+ s(e, r === window || r === document || n.useGlobalTarget || bx(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), Lv(e) && (e.addEventListener("focus", () => Mre(e, i), i), !gre(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
+ (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), Vv(e) && (e.addEventListener("focus", () => Nre(e, i), i), !_re(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
}), a;
}
// node_modules/motion-dom/dist/es/render/dom/style-computed.mjs
-function Cx(e, t) {
+function Ex(e, t) {
let n = window.getComputedStyle(e);
- return k_(t) ? n.getPropertyValue(t) : n[t];
+ return M_(t) ? n.getPropertyValue(t) : n[t];
}
// node_modules/motion-dom/dist/es/render/Feature.mjs
-var wx = class {
+var Dx = class {
constructor(e) {
this.isMounted = !1, this.node = e;
}
update() {}
-}, Tx = /* @__PURE__ */ new Set([
+}, Ox = /* @__PURE__ */ new Set([
"baseFrequency",
"diffuseConstant",
"kernelMatrix",
@@ -20358,58 +20383,58 @@ var wx = class {
"startOffset",
"textLength",
"lengthAdjust"
-]), Ex = (e) => typeof e == "string" && e.toLowerCase() === "svg";
+]), kx = (e) => typeof e == "string" && e.toLowerCase() === "svg";
// node_modules/motion-dom/dist/es/render/svg/utils/render.mjs
-function Pre(e, t, n, r) {
- Ib(e, t, void 0, r);
- for (let n in t.attrs) e.setAttribute(Tx.has(n) ? n : Jv(n), t.attrs[n]);
+function Fre(e, t, n, r) {
+ Bb(e, t, void 0, r);
+ for (let n in t.attrs) e.setAttribute(Ox.has(n) ? n : Qv(n), t.attrs[n]);
}
// node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs
-function Dx(e, t, n) {
- let r = Rb(e, t, n);
- for (let n in e) if (n !== "children" && (wv(e[n]) || wv(t[n]))) {
- let t = h_.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
+function Ax(e, t, n) {
+ let r = Hb(e, t, n);
+ for (let n in e) if (n !== "children" && (Ov(e[n]) || Ov(t[n]))) {
+ let t = v_.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 Fre = class extends Fb {
+var Ire = class extends zb {
constructor() {
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = qy;
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = Zy;
}
getBaseTargetFromProps(e, t) {
- return g_.has(t) ? super.getBaseTargetFromProps(e, t) ?? f_(t) : e[t];
+ return y_.has(t) ? super.getBaseTargetFromProps(e, t) ?? h_(t) : e[t];
}
getDefaultValue(e) {
- return g_.has(e) ? this.latestValues[e] ?? f_(e) : void 0;
+ return y_.has(e) ? this.latestValues[e] ?? h_(e) : void 0;
}
readValueFromInstance(e, t) {
- if (g_.has(t)) {
- let e = r_(t);
+ if (y_.has(t)) {
+ let e = o_(t);
return e && e.default || 0;
}
- if (Xv.includes(t)) {
+ if (ey.includes(t)) {
let n = getComputedStyle(e)[t];
if (typeof n == "string" && n) return n.trim();
}
- return t = Tx.has(t) ? t : Jv(t), e.getAttribute(t);
+ return t = Ox.has(t) ? t : Qv(t), e.getAttribute(t);
}
scrapeMotionValuesFromProps(e, t, n) {
- return Dx(e, t, n);
+ return Ax(e, t, n);
}
build(e, t, n) {
- Zv(e, t, this.isSVGTag, n.transformTemplate, n.style);
+ ty(e, t, this.isSVGTag, n.transformTemplate, n.style);
}
renderInstance(e, t, n, r) {
- Pre(e, t, n, r);
+ Fre(e, t, n, r);
}
mount(e) {
- this.isSVGTag = Ex(e.tagName), super.mount(e);
+ this.isSVGTag = kx(e.tagName), super.mount(e);
}
};
// node_modules/motion-dom/dist/es/render/utils/shallow-compare.mjs
-function Ox(e, t) {
+function jx(e, t) {
if (!Array.isArray(t)) return !1;
let n = t.length;
if (n !== e.length) return !1;
@@ -20417,18 +20442,18 @@ function Ox(e, t) {
return !0;
}
// node_modules/motion-dom/dist/es/render/utils/animation-state.mjs
-var Ire = [...Tb].reverse(), kx = (e) => e?.out === !0 ? e : e?.out;
-function Lre(e) {
- let t = (t) => Promise.all(t.map(({ animation: t, options: n }) => Nte(e, t, n))), n = Ax(), r = !0, i = !1;
+var Lre = [...kb].reverse(), Mx = (e) => e?.out === !0 ? e : e?.out;
+function Rre(e) {
+ let t = (t) => Promise.all(t.map(({ animation: t, options: n }) => Nte(e, t, n))), n = Nx(), 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" && xv(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" && Tv(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 && kx(f(l ?? (g && g.props.initial))?.transition);
- if (Ire.forEach((t, r) => {
- let i = n[t], l = o[t], f = g && g.props[t], v = l === void 0 ? wb(f) || f === !1 ? f : void 0 : l, y = wb(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 || Cb(v) || typeof v == "boolean") return;
+ let _ = u && Mx(f(l ?? (g && g.props.initial))?.transition);
+ if (Lre.forEach((t, r) => {
+ let i = n[t], l = o[t], f = g && g.props[t], v = l === void 0 ? Ob(f) || f === !1 ? f : void 0 : l, y = Ob(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 || Db(v) || typeof v == "boolean") return;
if (b === !1 && (h = r), t === "exit" && i.isActive && b !== !0) {
m = {
...m,
@@ -20436,14 +20461,14 @@ function Lre(e) {
};
return;
}
- let S = Rre(i.prevProp, v), C = S || y && (b && !x || r > h), w = !1, T = Array.isArray(v) ? v : [v], E = {}, D;
+ let S = zre(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 } = xv(e, n, Sv(e, t)) || {};
+ let { transition: r, transitionEnd: i, ...a } = Tv(e, n, Ev(e, t)) || {};
E = {
...E,
...a,
...i
- }, D = kx(r) || D;
+ }, D = Mx(r) || D;
}
let { prevResolvedValues: O } = i;
for (let t in {
@@ -20451,7 +20476,7 @@ function Lre(e) {
...E
}) {
if (t in m) continue;
- let n = E[t], r = O[t], a = Array.isArray(n) && Array.isArray(r) ? !Ox(n, r) || S : n !== r, o;
+ let n = E[t], r = O[t], a = Array.isArray(n) && Array.isArray(r) ? !jx(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;
@@ -20466,8 +20491,8 @@ function Lre(e) {
}), C && (!(x && S) || w)) for (let n of T) {
let r = { type: t };
if (typeof n == "string" && u && c && s?.enteringChildren) {
- let t = xv(s, n)?.transition?.delayChildren;
- r.delay = dv(s.enteringChildren, e, t);
+ let t = Tv(s, n)?.transition?.delayChildren;
+ r.delay = hv(s.enteringChildren, e, t);
}
d.push({
animation: n,
@@ -20484,7 +20509,7 @@ function Lre(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 && !wv(u) ? u : e.initialValues[a] === void 0 ? e.baseTarget[a] : void 0 : c) ?? null;
+ t[a] = (c === void 0 ? u !== void 0 && !Ov(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);
@@ -20505,16 +20530,16 @@ function Lre(e) {
},
getState: () => n,
reset: () => {
- n = Ax(), i = !0;
+ n = Nx(), i = !0;
}
};
}
-function Rre(e, t) {
- return typeof t == "string" ? t !== e : Array.isArray(t) ? !Ox(t, e) : !1;
+function zre(e, t) {
+ return typeof t == "string" ? t !== e : Array.isArray(t) ? !jx(t, e) : !1;
}
-function Ax() {
+function Nx() {
let e = {};
- for (let t of Tb) e[t] = {
+ for (let t of kb) e[t] = {
isActive: t === "animate",
protectedKeys: {},
needsAnimating: {},
@@ -20524,55 +20549,55 @@ function Ax() {
return e;
}
// node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs
-var jx = /* @__PURE__ */ (0, F.createContext)({
+var Px = /* @__PURE__ */ (0, F.createContext)({
transformPagePoint: (e) => e,
isStatic: !1,
reducedMotion: "never"
});
// node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs
-function Mx(e, t) {
+function Fx(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
-function zre(...e) {
+function Bre(...e) {
return (t) => {
let n = !1, r = e.map((e) => {
- let r = Mx(e, t);
+ let r = Fx(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() : Mx(e[t], null);
+ typeof n == "function" ? n() : Fx(e[t], null);
}
};
};
}
-function Bre(...e) {
- return F.useCallback(zre(...e), e);
+function Vre(...e) {
+ return F.useCallback(Bre(...e), e);
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs
-var Nx = (e) => {
+var Ix = (e) => {
let { width: t, height: n } = e?.getBoundingClientRect() || {};
return [t / e?.offsetWidth || 1, n / e?.offsetHeight || 1];
-}, Px = (e) => {
+}, Lx = (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] = Nx(r);
+ let [a, o] = Ix(r);
t += e * a, n += i * o;
}
if (getComputedStyle(r).position === "fixed") break;
}
- let [i, a] = Nx(e.offsetParent);
+ let [i, a] = Ix(e.offsetParent);
return [t / i, n / a];
-}, Vre = class extends F.Component {
+}, Hre = class extends F.Component {
getSnapshotBeforeUpdate(e) {
let t = this.props.getElement();
- if (Lv(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
- let e = t.offsetParent, n = Lv(e) && e.offsetWidth || 0, r = Lv(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 = Px(t);
+ if (Vv(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
+ let e = t.offsetParent, n = Vv(e) && e.offsetWidth || 0, r = Vv(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 = Lx(t);
}
return null;
}
@@ -20581,7 +20606,7 @@ var Nx = (e) => {
return this.props.children;
}
};
-function Hre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a, popNode: o }) {
+function Ure({ 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,
@@ -20590,7 +20615,7 @@ function Hre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
right: 0,
bottom: 0,
direction: "ltr"
- }), { nonce: u } = (0, F.useContext)(jx), d = Bre(c, a === !1 ? void 0 : e.props?.ref ?? e?.ref), f = () => c.current || o?.current?.current, p = (e) => {
+ }), { nonce: u } = (0, F.useContext)(Px), d = Vre(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}`);
};
@@ -20603,10 +20628,10 @@ function Hre({ 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 by.setup(() => {
- let [e, t] = Px(r);
+ return Cy.setup(() => {
+ let [e, t] = Lx(r);
m = l.current.point[0] - e, h = l.current.point[1] - t;
- }), by.read(() => {
+ }), Cy.read(() => {
let { sheet: e } = c;
if (!e || !m && !h) return;
let t = l.current;
@@ -20614,7 +20639,7 @@ function Hre({ 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)(Vre, {
+ }, [t]), (0, I.jsx)(Hre, {
isPresent: t,
getElement: f,
sizeRef: l,
@@ -20623,9 +20648,9 @@ function Hre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
});
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs
-var Ure = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
- let u = ym(Wre), d = (0, F.useId)(), f = (0, F.useRef)(), p = (0, F.useRef)(n), m = (0, F.useRef)(r);
- bm(() => {
+var Wre = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
+ let u = wm(Gre), d = (0, F.useId)(), f = (0, F.useRef)(), p = (0, F.useRef)(n), m = (0, F.useRef)(r);
+ Tm(() => {
p.current = n, m.current = r;
});
let h = !0, g = (0, F.useMemo)(() => (h = !1, {
@@ -20650,7 +20675,7 @@ var Ure = ({ 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)(Hre, {
+ }, [n]), e = (0, I.jsx)(Ure, {
pop: o === "popLayout",
isPresent: n,
anchorX: s,
@@ -20658,17 +20683,17 @@ var Ure = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i
root: l,
popNode: f,
children: e
- }), (0, I.jsx)(xm.Provider, {
+ }), (0, I.jsx)(Em.Provider, {
value: g,
children: e
});
};
-function Wre() {
+function Gre() {
return /* @__PURE__ */ new Map();
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs
-function Fx(e = !0) {
- let t = (0, F.useContext)(xm);
+function Rx(e = !0) {
+ let t = (0, F.useContext)(Em);
if (t === null) return [!0, null];
let { isPresent: n, onExitComplete: r, register: i } = t, a = (0, F.useId)();
(0, F.useEffect)(() => {
@@ -20681,24 +20706,24 @@ function Fx(e = !0) {
]);
return !n && r ? [!1, o] : [!0];
}
-function Ix() {
- return Gre((0, F.useContext)(xm));
+function zx() {
+ return Kre((0, F.useContext)(Em));
}
-function Gre(e) {
+function Kre(e) {
return e === null || e.isPresent;
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs
-var Lx = (e) => e.key || "";
-function Rx(e) {
+var Bx = (e) => e.key || "";
+function Vx(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 zx = ({ 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] = Fx(o), f = (0, F.useMemo)(() => Rx(e), [e]), p = o && !u ? [] : f.map(Lx), m = (0, F.useRef)(!0), h = ym(() => /* @__PURE__ */ new Map()), g = (0, F.useRef)(/* @__PURE__ */ new Set()), [_, v] = (0, F.useState)(f), [y, b] = (0, F.useState)(f);
- bm(() => {
+var Hx = ({ 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] = Rx(o), f = (0, F.useMemo)(() => Vx(e), [e]), p = o && !u ? [] : f.map(Bx), m = (0, F.useRef)(!0), h = wm(() => /* @__PURE__ */ new Map()), g = (0, F.useRef)(/* @__PURE__ */ new Set()), [_, v] = (0, F.useState)(f), [y, b] = (0, F.useState)(f);
+ Tm(() => {
o && !u && !y.length && d?.();
}, [
u,
@@ -20710,10 +20735,10 @@ var zx = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
(0, F.useEffect)(() => () => {
let e = x.current;
x.current = void 0, e?.();
- }, [y]), bm(() => {
+ }, [y]), Tm(() => {
m.current = !1;
for (let e = 0; e < y.length; e++) {
- let t = Lx(y[e]);
+ let t = Bx(y[e]);
p.includes(t) ? (h.delete(t), g.current.delete(t)) : h.get(t) !== !0 && h.set(t, !1);
}
}, [
@@ -20725,15 +20750,15 @@ var zx = ({ 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(Lx(n));
+ let r = p.indexOf(Bx(n));
r === -1 ? (e.splice(t++, 0, n), S.push(n)) : t = r + S.length + 1;
}
- return S.every((e) => h.get(Lx(e))) ? e = f : a === "wait" && (e = S), b(Rx(e)), v(f), null;
+ return S.every((e) => h.get(Bx(e))) ? e = f : a === "wait" && (e = S), b(Vx(e)), v(f), null;
}
- let { forceRender: C } = (0, F.useContext)(vm);
+ let { forceRender: C } = (0, F.useContext)(Cm);
return (0, I.jsx)(I.Fragment, { children: y.map((e) => {
- let _ = Lx(e), b = o && !u ? !1 : f === y || p.includes(_);
- return (0, I.jsx)(Ure, {
+ let _ = Bx(e), b = o && !u ? !1 : f === y || p.includes(_);
+ return (0, I.jsx)(Wre, {
isPresent: b,
initial: !m.current || n ? void 0 : !1,
custom: t,
@@ -20754,8 +20779,8 @@ var zx = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
children: e
}, _);
}) });
-}, Bx = /* @__PURE__ */ (0, F.createContext)({ strict: !1 }), Vx = {
- animation: ["variants", ...Tb],
+}, Ux = /* @__PURE__ */ (0, F.createContext)({ strict: !1 }), Wx = {
+ animation: ["variants", ...kb],
exit: ["exit"],
drag: ["drag", "dragControls"],
focus: ["whileFocus"],
@@ -20782,32 +20807,32 @@ var zx = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
"onViewportLeave"
],
layout: ["layout", "layoutId"]
-}, Hx = !1;
-function Kre() {
- if (Hx) return;
+}, Gx = !1;
+function qre() {
+ if (Gx) return;
let e = {};
- for (let t in Vx) e[t] = { isEnabled: (e) => Vx[t].some((t) => !!e[t]) };
- Pb(e), Hx = !0;
+ for (let t in Wx) e[t] = { isEnabled: (e) => Wx[t].some((t) => !!e[t]) };
+ Rb(e), Gx = !0;
}
-function Ux() {
- return Kre(), tre();
+function Kx() {
+ return qre(), tre();
}
// node_modules/framer-motion/dist/es/motion/features/load-features.mjs
-function qre(e) {
- let t = Ux();
+function Jre(e) {
+ let t = Kx();
for (let n in e) t[n] = {
...t[n],
...e[n]
};
- Pb(t);
+ Rb(t);
}
// node_modules/framer-motion/dist/es/components/MotionConfig/index.mjs
-function Jre({ children: e, ...t }) {
- let n = (0, F.useContext)(jx);
+function Yre({ children: e, ...t }) {
+ let n = (0, F.useContext)(Px);
t = {
...n,
...t
- }, t.transition = gv(t.transition, n.transition), t.isStatic = ym(() => t.isStatic);
+ }, t.transition = bv(t.transition, n.transition), t.isStatic = wm(() => t.isStatic);
let r = (0, F.useMemo)(() => t, [
JSON.stringify(t.transition),
t.transformPagePoint,
@@ -20815,77 +20840,77 @@ function Jre({ children: e, ...t }) {
t.skipAnimations,
t.isValidProp
]);
- return (0, I.jsx)(jx.Provider, {
+ return (0, I.jsx)(Px.Provider, {
value: r,
children: e
});
}
// node_modules/framer-motion/dist/es/context/MotionContext/index.mjs
-var Wx = /* @__PURE__ */ (0, F.createContext)({});
+var qx = /* @__PURE__ */ (0, F.createContext)({});
// node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs
-function Yre(e, t) {
- if (Db(e)) {
+function Xre(e, t) {
+ if (jb(e)) {
let { initial: t, animate: n } = e;
return {
- initial: t === !1 || wb(t) ? t : void 0,
- animate: wb(n) ? n : void 0
+ initial: t === !1 || Ob(t) ? t : void 0,
+ animate: Ob(n) ? n : void 0
};
}
return e.inherit === !1 ? {} : t;
}
// node_modules/framer-motion/dist/es/context/MotionContext/create.mjs
-function Xre(e) {
- let { initial: t, animate: n } = Yre(e, (0, F.useContext)(Wx));
+function Zre(e) {
+ let { initial: t, animate: n } = Xre(e, (0, F.useContext)(qx));
return (0, F.useMemo)(() => ({
initial: t,
animate: n
- }), [Gx(t), Gx(n)]);
+ }), [Jx(t), Jx(n)]);
}
-function Gx(e) {
+function Jx(e) {
return Array.isArray(e) ? e.join(" ") : e;
}
// node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs
-var Kx = () => ({
+var Yx = () => ({
style: {},
transform: {},
transformOrigin: {},
vars: {}
});
// node_modules/framer-motion/dist/es/render/html/use-props.mjs
-function qx(e, t, n) {
- for (let r in t) !wv(t[r]) && !Lb(r, n) && (e[r] = t[r]);
+function Xx(e, t, n) {
+ for (let r in t) !Ov(t[r]) && !Vb(r, n) && (e[r] = t[r]);
}
-function Zre({ transformTemplate: e }, t) {
+function Qre({ transformTemplate: e }, t) {
return (0, F.useMemo)(() => {
- let n = Kx();
- return Yv(n, t, e), Object.assign({}, n.vars, n.style);
+ let n = Yx();
+ return $v(n, t, e), Object.assign({}, n.vars, n.style);
}, [t]);
}
-function Qre(e, t) {
+function $re(e, t) {
let n = e.style || {}, r = {};
- return qx(r, n, e), Object.assign(r, Zre(e, t)), r;
+ return Xx(r, n, e), Object.assign(r, Qre(e, t)), r;
}
-function $re(e, t) {
- let n = {}, r = Qre(e, t);
+function eie(e, t) {
+ let n = {}, r = $re(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 Jx = () => ({
- ...Kx(),
+var Zx = () => ({
+ ...Yx(),
attrs: {}
});
// node_modules/framer-motion/dist/es/render/svg/use-props.mjs
-function eie(e, t, n, r) {
+function tie(e, t, n, r) {
let i = (0, F.useMemo)(() => {
- let n = Jx();
- return Zv(n, t, Ex(r), e.transformTemplate, e.style), {
+ let n = Zx();
+ return ty(n, t, kx(r), e.transformTemplate, e.style), {
...n.attrs,
style: { ...n.style }
};
}, [t]);
if (e.style) {
let t = {};
- return qx(t, e.style, e), {
+ return Xx(t, e.style, e), {
...i,
style: {
...t,
@@ -20896,21 +20921,21 @@ function eie(e, t, n, r) {
return i;
}
// node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs
-var tie = /* @__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 Yx(e) {
- return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || tie.has(e);
+var nie = /* @__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 Qx(e) {
+ return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || nie.has(e);
}
// node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs
-function nie(e, t) {
- return e.startsWith("on") ? !Yx(e) : t?.(e) ?? !Yx(e);
+function rie(e, t) {
+ return e.startsWith("on") ? !Qx(e) : t?.(e) ?? !Qx(e);
}
-function rie(e, t, n, r) {
+function iie(e, t, n, r) {
let i = {};
- for (let a in e) a === "values" && typeof e.values == "object" || wv(e[a]) || (nie(a, r) || n === !0 && Yx(a) || !t && !Yx(a) || e.draggable && a.startsWith("onDrag")) && (i[a] = e[a]);
+ for (let a in e) a === "values" && typeof e.values == "object" || Ov(e[a]) || (rie(a, r) || n === !0 && Qx(a) || !t && !Qx(a) || e.draggable && a.startsWith("onDrag")) && (i[a] = e[a]);
return i;
}
// node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs
-var iie = [
+var aie = [
"animate",
"circle",
"defs",
@@ -20938,40 +20963,40 @@ var iie = [
"view"
];
// node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs
-function Xx(e) {
- return typeof e != "string" || e.includes("-") ? !1 : !!(iie.indexOf(e) > -1 || /[A-Z]/u.test(e));
+function $x(e) {
+ return typeof e != "string" || e.includes("-") ? !1 : !!(aie.indexOf(e) > -1 || /[A-Z]/u.test(e));
}
// node_modules/framer-motion/dist/es/render/dom/use-render.mjs
-function aie(e, t, n, { latestValues: r }, i, a = !1, o, s) {
- let c = (o ?? Xx(e) ? eie : $re)(t, r, i, e), l = rie(t, typeof e == "string", a, s), u = e === F.Fragment ? {} : {
+function oie(e, t, n, { latestValues: r }, i, a = !1, o, s) {
+ let c = (o ?? $x(e) ? tie : eie)(t, r, i, e), l = iie(t, typeof e == "string", a, s), u = e === F.Fragment ? {} : {
...l,
...c,
ref: n
- }, { children: d } = t, f = (0, F.useMemo)(() => wv(d) ? d.get() : d, [d]);
+ }, { children: d } = t, f = (0, F.useMemo)(() => Ov(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 oie({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
+function sie({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
return {
- latestValues: sie(n, r, i, e),
+ latestValues: cie(n, r, i, e),
renderState: t()
};
}
-function sie(e, t, n, r) {
+function cie(e, t, n, r) {
let i = {}, a = r(e, {});
- for (let e in a) i[e] = wy(a[e]);
- let { initial: o, animate: s } = e, c = Db(e), l = Ob(e);
+ for (let e in a) i[e] = Oy(a[e]);
+ let { initial: o, animate: s } = e, c = jb(e), l = Mb(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" && !Cb(d)) {
+ if (d && typeof d != "boolean" && !Db(d)) {
let t = Array.isArray(d) ? d : [d];
for (let n = 0; n < t.length; n++) {
- let r = bv(e, t[n]);
+ let r = wv(e, t[n]);
if (r) {
let { transitionEnd: e, transition: t, ...n } = r;
for (let e in n) {
@@ -20988,18 +21013,18 @@ function sie(e, t, n, r) {
}
return i;
}
-var Zx = (e) => (t, n) => {
- let r = (0, F.useContext)(Wx), i = (0, F.useContext)(xm), a = () => oie(e, t, r, i);
- return n ? a() : ym(a);
-}, cie = /*@__PURE__*/ Zx({
- scrapeMotionValuesFromProps: Rb,
- createRenderState: Kx
-}), lie = /*@__PURE__*/ Zx({
- scrapeMotionValuesFromProps: Dx,
- createRenderState: Jx
-}), uie = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
+var eS = (e) => (t, n) => {
+ let r = (0, F.useContext)(qx), i = (0, F.useContext)(Em), a = () => sie(e, t, r, i);
+ return n ? a() : wm(a);
+}, lie = /*@__PURE__*/ eS({
+ scrapeMotionValuesFromProps: Hb,
+ createRenderState: Yx
+}), uie = /*@__PURE__*/ eS({
+ scrapeMotionValuesFromProps: Ax,
+ createRenderState: Zx
+}), die = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
// node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs
-function die(e, t, n) {
+function fie(e, t, n) {
let r = (0, F.useRef)(n);
(0, F.useInsertionEffect)(() => {
r.current = n;
@@ -21017,10 +21042,10 @@ function die(e, t, n) {
}, [t]);
}
// node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs
-var Qx = /* @__PURE__ */ (0, F.createContext)({});
+var tS = /* @__PURE__ */ (0, F.createContext)({});
// node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs
-function fie(e, t, n, r, i, a) {
- let { visualElement: o } = (0, F.useContext)(Wx), s = (0, F.useContext)(Bx), c = (0, F.useContext)(xm), l = (0, F.useContext)(jx), u = l.reducedMotion, d = l.skipAnimations, f = (0, F.useRef)(null), p = (0, F.useRef)(!1);
+function pie(e, t, n, r, i, a) {
+ let { visualElement: o } = (0, F.useContext)(qx), s = (0, F.useContext)(Ux), c = (0, F.useContext)(Em), l = (0, F.useContext)(Px), 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,
@@ -21031,14 +21056,14 @@ function fie(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)(Qx);
+ let m = f.current, h = (0, F.useContext)(tS);
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[Ev], _ = (0, F.useRef)(!!g && typeof window < "u" && !window.MotionHandoffIsComplete?.(g) && window.MotionHasOptimisedAnimation?.(g));
- return bm(() => {
+ let g = n[Av], _ = (0, F.useRef)(!!g && typeof window < "u" && !window.MotionHandoffIsComplete?.(g) && window.MotionHasOptimisedAnimation?.(g));
+ return Tm(() => {
p.current && m && (m.animationState?.animateChanges(), m.enteringChildren = void 0);
- }, []), bm(() => {
+ }, []), Tm(() => {
p.current = !0, m && (window.MotionIsMounted = !0, m.updateFeatures(), m.scheduleRenderMicrotask(), _.current && m.animationState && m.animationState.animateChanges());
}), (0, F.useEffect)(() => {
m && (!_.current && m.animationState && m.animationState.animateChanges(), _.current &&= (queueMicrotask(() => {
@@ -21047,46 +21072,46 @@ function fie(e, t, n, r, i, a) {
}), m;
}
// node_modules/framer-motion/dist/es/motion/index.mjs
-function $x(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
- r && qre(r);
- let a = n ? n === "svg" : Xx(e), o = a ? lie : cie;
+function nS(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
+ r && Jre(r);
+ let a = n ? n === "svg" : $x(e), o = a ? uie : lie;
function s(n, s) {
- let c, l = pie(n);
- ym(() => !!bb.current?.sharedNodes.get(l)?.lead && n.initial) && (n = {
+ let c, l = mie(n);
+ wm(() => !!wb.current?.sharedNodes.get(l)?.lead && n.initial) && (n = {
...n,
initial: !1
});
let u = {
- ...(0, F.useContext)(jx),
+ ...(0, F.useContext)(Px),
...n,
layoutId: l
- }, { isStatic: d, isValidProp: f } = u, p = Xre(n), m = o(n, d);
+ }, { isStatic: d, isValidProp: f } = u, p = Zre(n), m = o(n, d);
if (!d && typeof window < "u") {
- mie(u, r);
- let t = hie(u);
- p.visualElement = fie(e, m, u, i, t.ProjectionNode, a), (t.isEnabled || p.visualElement?.projection?.options.layoutId) && (c = t.MeasureLayout);
+ hie(u, r);
+ let t = gie(u);
+ p.visualElement = pie(e, m, u, i, t.ProjectionNode, a), (t.isEnabled || p.visualElement?.projection?.options.layoutId) && (c = t.MeasureLayout);
}
- return (0, I.jsxs)(Wx.Provider, {
+ return (0, I.jsxs)(qx.Provider, {
value: p,
children: [c && p.visualElement ? (0, I.jsx)(c, {
visualElement: p.visualElement,
...u
- }) : null, aie(e, n, die(m, p.visualElement, s), m, d, t, a, f)]
+ }) : null, oie(e, n, fie(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[uie] = e, c;
+ return c[die] = e, c;
}
-function pie({ layoutId: e }) {
- let t = (0, F.useContext)(vm).id;
+function mie({ layoutId: e }) {
+ let t = (0, F.useContext)(Cm).id;
return t && e !== void 0 ? t + "-" + e : e;
}
-function mie(e, t) {
- (0, F.useContext)(Bx).strict;
+function hie(e, t) {
+ (0, F.useContext)(Ux).strict;
}
-function hie(e) {
- let { drag: t, layout: n } = Ux();
+function gie(e) {
+ let { drag: t, layout: n } = Kx();
if (!t && !n) return {};
let r = {
...t,
@@ -21099,19 +21124,19 @@ function hie(e) {
};
}
// node_modules/framer-motion/dist/es/render/components/create-proxy.mjs
-function gie(e, t) {
- if (typeof Proxy > "u") return $x;
- let n = /* @__PURE__ */ new Map(), r = (n, r) => $x(n, r, e, t);
- return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, $x(a, void 0, e, t)), n.get(a)) });
+function _ie(e, t) {
+ if (typeof Proxy > "u") return nS;
+ let n = /* @__PURE__ */ new Map(), r = (n, r) => nS(n, r, e, t);
+ return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, nS(a, void 0, e, t)), n.get(a)) });
}
// node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs
-var _ie = (e, t) => t.isSVG ?? Xx(e) ? new Fre(t) : new ire(t, { allowProjection: e !== F.Fragment }), vie = class extends wx {
+var vie = (e, t) => t.isSVG ?? $x(e) ? new Ire(t) : new ire(t, { allowProjection: e !== F.Fragment }), yie = class extends Dx {
constructor(e) {
- super(e), e.animationState ||= Lre(e);
+ super(e), e.animationState ||= Rre(e);
}
updateAnimationControlsSubscription() {
let { animate: e } = this.node.getProps();
- Cb(e) && (this.unmountControls = e.subscribe(this.node));
+ Db(e) && (this.unmountControls = e.subscribe(this.node));
}
mount() {
this.updateAnimationControlsSubscription();
@@ -21122,11 +21147,11 @@ var _ie = (e, t) => t.isSVG ?? Xx(e) ? new Fre(t) : new ire(t, { allowProjection
unmount() {
this.node.animationState.reset(), this.unmountControls?.();
}
-}, yie = 0, bie = {
- animation: { Feature: vie },
- exit: { Feature: class extends wx {
+}, bie = 0, xie = {
+ animation: { Feature: yie },
+ exit: { Feature: class extends Dx {
constructor() {
- super(...arguments), this.id = yie++;
+ super(...arguments), this.id = bie++;
}
update() {
let { presenceContext: e, prevPresenceContext: t, animationState: n } = this.node;
@@ -21137,7 +21162,7 @@ var _ie = (e, t) => t.isSVG ?? Xx(e) ? new Fre(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 } = xv(this.node, e) || {};
+ let { transition: t, transitionEnd: n, ...r } = Tv(this.node, e) || {};
for (let e in r) this.node.getValue(e)?.jump(r[e]);
}
this.node.blockInitialAnimation = !1, n.reset(), n.animateChanges();
@@ -21156,13 +21181,13 @@ var _ie = (e, t) => t.isSVG ?? Xx(e) ? new Fre(t) : new ire(t, { allowProjection
}
unmount() {}
} }
-}, xie = class extends wx {
+}, Sie = class extends Dx {
constructor(e) {
- super(e), this.removeGroupControls = Am, this.removeListeners = Am, this.controls = new Dre(e);
+ super(e), this.removeGroupControls = Fm, this.removeListeners = Fm, this.controls = new Ore(e);
}
mount() {
let { dragControls: e } = this.node.getProps();
- e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || Am;
+ e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || Fm;
}
update() {
let { dragControls: e, drag: t } = this.node.getProps(), { dragControls: n, drag: r } = this.node.prevProps || {};
@@ -21171,14 +21196,14 @@ var _ie = (e, t) => t.isSVG ?? Xx(e) ? new Fre(t) : new ire(t, { allowProjection
unmount() {
this.removeGroupControls(), this.removeListeners(), this.controls.isDragging || this.controls.endPanSession();
}
-}, eS = (e) => (t, n) => {
- e && gg.update(() => e(t, n), !1, !0);
-}, Sie = class extends wx {
+}, rS = (e) => (t, n) => {
+ e && bg.update(() => e(t, n), !1, !0);
+}, Cie = class extends Dx {
constructor() {
- super(...arguments), this.removePointerDownListener = Am;
+ super(...arguments), this.removePointerDownListener = Fm;
}
onPointerDown(e) {
- this.session = new Qb(e, this.createPanHandlers(), {
+ this.session = new tx(e, this.createPanHandlers(), {
transformPagePoint: this.node.getTransformPagePoint(),
contextWindow: this.node.current?.ownerDocument.defaultView
});
@@ -21186,16 +21211,16 @@ var _ie = (e, t) => t.isSVG ?? Xx(e) ? new Fre(t) : new ire(t, { allowProjection
createPanHandlers() {
let { onPanSessionStart: e, onPanStart: t, onPan: n, onPanEnd: r } = this.node.getProps();
return {
- onSessionStart: eS(e),
- onStart: eS(t),
- onMove: eS(n),
+ onSessionStart: rS(e),
+ onStart: rS(t),
+ onMove: rS(n),
onEnd: (e, t) => {
- delete this.session, r && gg.postRender(() => r(e, t));
+ delete this.session, r && bg.postRender(() => r(e, t));
}
};
}
mount() {
- this.removePointerDownListener = Vb(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
+ this.removePointerDownListener = Gb(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
}
update() {
this.session?.updateHandlers(this.createPanHandlers());
@@ -21203,12 +21228,12 @@ var _ie = (e, t) => t.isSVG ?? Xx(e) ? new Fre(t) : new ire(t, { allowProjection
unmount() {
this.removePointerDownListener(), this.session?.end();
}
-}, tS = !1, nS = ({ layout: e, layoutDependency: t, layoutAnchor: n }) => ({
+}, iS = !1, aS = ({ layout: e, layoutDependency: t, layoutAnchor: n }) => ({
layout: e,
layoutDependency: t,
layoutAnchor: n,
animationType: typeof e == "string" ? e : "both"
-}), rS = (e, t) => {
+}), oS = (e, t) => {
let { snapshot: n } = e, r = e.getStack();
r?.remove(e);
let i = r?.lead;
@@ -21217,33 +21242,33 @@ var _ie = (e, t) => t.isSVG ?? Xx(e) ? new Fre(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);
};
-}, Cie = class extends F.Component {
+}, wie = 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), tS && i.root.didUpdate(), i.options.layoutId !== r && rS(i, r)?.(), i.addEventListener("animationComplete", () => this.safeToRemove()), i.setOptions({
+ i && (t.group?.add(i), r && n?.register?.(i), iS && i.root.didUpdate(), i.options.layoutId !== r && oS(i, r)?.(), i.addEventListener("animationComplete", () => this.safeToRemove()), i.setOptions({
...i.options,
- ...nS(this.props),
+ ...aS(this.props),
onExitComplete: () => this.safeToRemove()
- })), ab.hasEverUpdated = !0;
+ })), lb.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(), rS(o, n)), o.setOptions({
+ return o && (o.isPresent = a, this.takeOver = e.layoutId === n ? void 0 : (o.willUpdate(), oS(o, n)), o.setOptions({
...o.options,
- ...nS(this.props)
- }), tS = !0, i || e.layoutDependency !== t || t === void 0 || e.isPresent !== a ? o.willUpdate() : this.safeToRemove(), e.isPresent !== a && (a ? o.promote() : o.relegate() || gg.postRender(() => {
+ ...aS(this.props)
+ }), iS = !0, i || e.layoutDependency !== t || t === void 0 || e.isPresent !== a ? o.willUpdate() : this.safeToRemove(), e.isPresent !== a && (a ? o.promote() : o.relegate() || bg.postRender(() => {
o.getStack()?.members.length || this.safeToRemove();
}))), null;
}
componentDidUpdate() {
let { projection: e } = this.props.visualElement;
- e && (this.takeOver?.(), e.root.didUpdate(), by.postRender(() => {
+ e && (this.takeOver?.(), e.root.didUpdate(), Cy.postRender(() => {
!e.currentAnimation && e.isLead() && this.safeToRemove();
}));
}
componentWillUnmount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n } = this.props, { projection: r } = e;
- tS = !0, r && (r.scheduleCheckAfterUnmount(), t.group?.remove(r), n?.deregister?.(r));
+ iS = !0, r && (r.scheduleCheckAfterUnmount(), t.group?.remove(r), n?.deregister?.(r));
}
safeToRemove() {
this.props.safeToRemove?.();
@@ -21252,39 +21277,39 @@ var _ie = (e, t) => t.isSVG ?? Xx(e) ? new Fre(t) : new ire(t, { allowProjection
return null;
}
};
-function iS(e) {
- let [t, n] = Fx(), r = (0, F.useContext)(vm);
- return (0, I.jsx)(Cie, {
+function sS(e) {
+ let [t, n] = Rx(), r = (0, F.useContext)(Cm);
+ return (0, I.jsx)(wie, {
...e,
layoutGroup: r,
- switchLayoutGroup: (0, F.useContext)(Qx),
+ switchLayoutGroup: (0, F.useContext)(tS),
isPresent: t,
safeToRemove: n
});
}
// node_modules/framer-motion/dist/es/motion/features/drag.mjs
-var wie = {
- pan: { Feature: Sie },
+var Tie = {
+ pan: { Feature: Cie },
drag: {
- Feature: xie,
- ProjectionNode: xb,
- MeasureLayout: iS
+ Feature: Sie,
+ ProjectionNode: Tb,
+ MeasureLayout: sS
}
};
// node_modules/framer-motion/dist/es/gestures/hover.mjs
-function aS(e, t, n, r) {
+function cS(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 && gg.postRender(() => o(t, Bb(t)));
+ o && bg.postRender(() => o(t, Wb(t)));
}
-var Tie = class extends wx {
+var Eie = class extends Dx {
mount() {
let { current: e } = this.node;
- e && (this.unmount = jre(e, (e, t) => (aS(this.node, t, "Hover", "Start"), (e) => aS(this.node, e, "Hover", "End"))));
+ e && (this.unmount = Mre(e, (e, t) => (cS(this.node, t, "Hover", "Start"), (e) => cS(this.node, e, "Hover", "End"))));
}
unmount() {}
-}, Eie = class extends wx {
+}, Die = class extends Dx {
constructor() {
super(...arguments), this.isActive = !1;
}
@@ -21301,51 +21326,51 @@ var Tie = class extends wx {
this.isActive && this.node.animationState && (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
}
mount() {
- this.unmount = jm(yb(this.node.current, "focus", () => this.onFocus()), yb(this.node.current, "blur", () => this.onBlur()));
+ this.unmount = Im(Cb(this.node.current, "focus", () => this.onFocus()), Cb(this.node.current, "blur", () => this.onBlur()));
}
unmount() {}
};
// node_modules/framer-motion/dist/es/gestures/press.mjs
-function oS(e, t, n) {
- e.current instanceof HTMLButtonElement && e.current.disabled || aS(e, t, "Tap", n);
+function lS(e, t, n) {
+ e.current instanceof HTMLButtonElement && e.current.disabled || cS(e, t, "Tap", n);
}
-var Die = class extends wx {
+var Oie = class extends Dx {
mount() {
let { current: e } = this.node;
if (!e) return;
let { globalTapTarget: t, propagate: n } = this.node.props;
- this.unmount = Nre(e, (e, t) => (oS(this.node, t, "Start"), (e, { success: t }) => oS(this.node, e, t ? "" : "Cancel")), {
+ this.unmount = Pre(e, (e, t) => (lS(this.node, t, "Start"), (e, { success: t }) => lS(this.node, e, t ? "" : "Cancel")), {
useGlobalTarget: t,
stopPropagation: n?.tap === !1
});
}
unmount() {}
-}, sS = /* @__PURE__ */ new WeakMap(), cS = /* @__PURE__ */ new WeakMap(), Oie = (e) => {
- let t = sS.get(e.target);
+}, uS = /* @__PURE__ */ new WeakMap(), dS = /* @__PURE__ */ new WeakMap(), kie = (e) => {
+ let t = uS.get(e.target);
t && t(e);
-}, kie = (e) => {
- e.forEach(Oie);
+}, Aie = (e) => {
+ e.forEach(kie);
};
-function Aie({ root: e, ...t }) {
+function jie({ root: e, ...t }) {
let n = e || document;
- cS.has(n) || cS.set(n, {});
- let r = cS.get(n), i = JSON.stringify(t);
- return r[i] || (r[i] = new IntersectionObserver(kie, {
+ dS.has(n) || dS.set(n, {});
+ let r = dS.get(n), i = JSON.stringify(t);
+ return r[i] || (r[i] = new IntersectionObserver(Aie, {
root: e,
...t
})), r[i];
}
-function jie(e, t, n) {
- let r = Aie(t);
- return sS.set(e, n), r.observe(e), () => {
- sS.delete(e), r.unobserve(e);
+function Mie(e, t, n) {
+ let r = jie(t);
+ return uS.set(e, n), r.observe(e), () => {
+ uS.delete(e), r.unobserve(e);
};
}
// node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs
-var Mie = {
+var Nie = {
some: 0,
all: 1
-}, Nie = class extends wx {
+}, Pie = class extends Dx {
constructor() {
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
}
@@ -21354,7 +21379,7 @@ var Mie = {
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 : Mie[r]
+ threshold: typeof r == "number" ? r : Nie[r]
}, o = (e) => {
let { isIntersecting: t } = e;
if (this.isInView === t || (this.isInView = t, i && !t && this.hasEnteredView)) return;
@@ -21362,7 +21387,7 @@ var Mie = {
let { onViewportEnter: n, onViewportLeave: r } = this.node.getProps(), a = t ? n : r;
a && a(e);
};
- this.stopObserver = jie(this.node.current, a, o);
+ this.stopObserver = Mie(this.node.current, a, o);
}
mount() {
this.startObserver();
@@ -21374,81 +21399,81 @@ var Mie = {
"amount",
"margin",
"root"
- ].some(Pie(e, t)) && this.startObserver();
+ ].some(Fie(e, t)) && this.startObserver();
}
unmount() {
this.stopObserver?.(), this.hasEnteredView = !1, this.isInView = !1;
}
};
-function Pie({ viewport: e = {} }, { viewport: t = {} } = {}) {
+function Fie({ viewport: e = {} }, { viewport: t = {} } = {}) {
return (n) => e[n] !== t[n];
}
// node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs
-var Fie = /*@__PURE__*/ gie(/* @__PURE__ */ Object.assign({}, bie, {
- inView: { Feature: Nie },
- tap: { Feature: Die },
- focus: { Feature: Eie },
- hover: { Feature: Tie }
-}, wie, { layout: {
- ProjectionNode: xb,
- MeasureLayout: iS
-} }), _ie);
+var Iie = /*@__PURE__*/ _ie(/* @__PURE__ */ Object.assign({}, xie, {
+ inView: { Feature: Pie },
+ tap: { Feature: Oie },
+ focus: { Feature: Die },
+ hover: { Feature: Eie }
+}, Tie, { layout: {
+ ProjectionNode: Tb,
+ MeasureLayout: sS
+} }), vie);
// node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs
-function lS() {
- !Ab.current && jb();
- let [e] = (0, F.useState)(kb.current);
+function fS() {
+ !Pb.current && Fb();
+ let [e] = (0, F.useState)(Nb.current);
return e;
}
// node_modules/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs
-function uS(e) {
+function pS(e) {
return typeof e == "object" && !Array.isArray(e);
}
// node_modules/framer-motion/dist/es/animation/animate/resolve-subjects.mjs
-function dS(e, t, n, r) {
- return e == null ? [] : typeof e == "string" && uS(t) ? Hv(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((e) => e != null) : [e];
+function mS(e, t, n, r) {
+ return e == null ? [] : typeof e == "string" && pS(t) ? Kv(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 Iie(e, t, n) {
+function Lie(e, t, n) {
return e * (t + 1) + n * t;
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs
-function fS(e, t) {
+function hS(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 Lie(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))) : fS(t, r) ?? e;
+function Rie(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))) : hS(t, r) ?? e;
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/edit.mjs
-function Rie(e, t, n) {
+function zie(e, t, n) {
for (let r = 0; r < e.length; r++) {
let i = e[r];
- i.at > t && i.at < n && (Cm(e, i), r--);
+ i.at > t && i.at < n && (Om(e, i), r--);
}
}
-function zie(e, t, n, r, i, a) {
- Rie(e, i, a);
+function Bie(e, t, n, r, i, a) {
+ zie(e, i, a);
for (let o = 0; o < t.length; o++) e.push({
value: t[o],
- at: ag(i, a, r[o]),
- easing: /* @__PURE__ */ $m(n, o)
+ at: lg(i, a, r[o]),
+ easing: /* @__PURE__ */ ih(n, o)
});
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/normalize-times.mjs
-function Bie(e, t, n = 0) {
+function Vie(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 Vie(e, t) {
+function Hie(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 Hie = "easeInOut", Uie = 20;
-function Wie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
+var Uie = "easeInOut", Wie = 20;
+function Gie(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 : Lie(f, e, d, u);
+ let a = n, s = (e) => typeof e == "number" ? n + e : Rie(f, e, d, u);
for (let n = 0; n < e.length; n++) {
let h = e[n];
if (typeof h == "string") {
@@ -21463,12 +21488,12 @@ function Wie(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 = Gie(e), { delay: l = 0, times: u = Vg(c), type: d = t.type || "keyframes", repeat: m, repeatType: h, repeatDelay: g = 0, ..._ } = n, { ease: v = t.ease || "easeOut", duration: b } = n;
+ let c = Kie(e), { delay: l = 0, times: u = Wg(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 = z_(d) ? d : i?.[d || "keyframes"];
+ let x = typeof l == "function" ? l(a, s) : l, S = c.length, C = H_(d) ? d : i?.[d || "keyframes"];
if (S <= 2 && C) {
let e = 100;
- if (S === 2 && Jie(c)) {
+ if (S === 2 && Yie(c)) {
let t = c[1] - c[0];
e = Math.abs(t);
}
@@ -21476,40 +21501,40 @@ function Wie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
...t,
..._
};
- b !== void 0 && (n.duration = /* @__PURE__ */ Pm(b));
- let r = Cg(n, e, C);
+ b !== void 0 && (n.duration = /* @__PURE__ */ zm(b));
+ let r = Dg(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 && Bg(u, T), c.length === 1 && c.unshift(null), m && m < Uie) {
+ if (T > 0 && Ug(u, T), c.length === 1 && c.unshift(null), m && m < Wie) {
let e = b > 0 ? g / b : 0;
- b = Iie(b, m, g);
+ b = Lie(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;
- i && (a = [...t].reverse(), h === "reverse" && (o = [...r].reverse().map((e) => typeof e == "function" ? /* @__PURE__ */ Vm(e) : e)));
+ i && (a = [...t].reverse(), h === "reverse" && (o = [...r].reverse().map((e) => typeof e == "function" ? /* @__PURE__ */ Km(e) : e)));
for (let s = 0; s < m; s++) {
let l = i && s % 2 == 0, d = l ? a : t, f = l ? o : r, p = (s + 1) * (1 + e);
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__ */ $m(f, e - 1));
+ for (let e = 0; e < d.length; e++) u.push(n[e] + p), v.push(e === 0 ? "linear" : /* @__PURE__ */ ih(f, e - 1));
}
- Bie(u, m, e);
+ Vie(u, m, e);
}
let E = w + b;
- zie(r, c, v, u, w, E), y = Math.max(x + b, y), p = Math.max(E, p);
+ Bie(r, c, v, u, w, E), y = Math.max(x + b, y), p = Math.max(E, p);
};
- if (wv(g)) {
- let e = pS(g, c);
- b(_, v, mS("default", e));
+ if (Ov(g)) {
+ let e = gS(g, c);
+ b(_, v, _S("default", e));
} else {
- let e = dS(g, _, r, l), t = e.length;
+ let e = mS(g, _, r, l), t = e.length;
for (let n = 0; n < t; n++) {
_ = _, v = v;
- let r = e[n], i = pS(r, c);
- for (let e in _) b(_[e], Kie(v, e), mS(e, i), n, t);
+ let r = e[n], i = gS(r, c);
+ for (let e in _) b(_[e], qie(v, e), _S(e, i), n, t);
}
}
d = f, f += y, a = Math.max(a, f);
@@ -21519,13 +21544,13 @@ function Wie(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(Vie);
+ a.sort(Hie);
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__ */ Mm(0, p, t)), l.push(r || "easeOut");
+ o.push(n), c.push(/* @__PURE__ */ Lm(0, p, t)), l.push(r || "easeOut");
}
- c[0] !== 0 && (c.unshift(0), o.unshift(o[0]), l.unshift(Hie)), 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(Uie)), c[c.length - 1] !== 1 && (c.push(1), o.push(null)), s.has(r) || s.set(r, {
keyframes: {},
transition: {}
});
@@ -21543,45 +21568,45 @@ function Wie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
}
}), s;
}
-function pS(e, t) {
+function gS(e, t) {
return !t.has(e) && t.set(e, {}), t.get(e);
}
-function mS(e, t) {
+function _S(e, t) {
return t[e] || (t[e] = []), t[e];
}
-function Gie(e) {
+function Kie(e) {
return Array.isArray(e) ? e : [e];
}
-function Kie(e, t) {
+function qie(e, t) {
return e && e[t] ? {
...e,
...e[t]
} : { ...e };
}
-var qie = (e) => typeof e == "number", Jie = (e) => e.every(qie);
+var Jie = (e) => typeof e == "number", Yie = (e) => e.every(Jie);
// node_modules/framer-motion/dist/es/animation/animate/subject.mjs
-function Yie(e, t) {
- return wv(e) || typeof e == "number" || typeof e == "string" && !uS(t);
+function Xie(e, t) {
+ return Ov(e) || typeof e == "number" || typeof e == "string" && !pS(t);
}
-function hS(e, t, n, r) {
+function vS(e, t, n, r) {
let i = [];
- if (Yie(e, t)) i.push(xy(e, uS(t) && t.default || t, n && (n.default || n)));
+ if (Xie(e, t)) i.push(wy(e, pS(t) && t.default || t, n && (n.default || n)));
else {
if (e == null) return i;
- let a = dS(e, t, r), o = a.length;
+ let a = mS(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(...cne(r, t, s, Sb.get(r))) : i.push(...Iv(Ute(r) ?? lne, r, t, s));
+ "delay" in s && typeof s.delay == "function" && (s.delay = s.delay(e, o)), r instanceof Element ? i.push(...lne(r, t, s, Eb.get(r))) : i.push(...Bv(Ute(r) ?? une, r, t, s));
}
}
return i;
}
// node_modules/framer-motion/dist/es/animation/animate/sequence.mjs
-function Xie(e, t, n, r) {
+function Zie(e, t, n, r) {
let i = [];
- return Wie(e.map((e) => {
+ return Gie(e.map((e) => {
if (Array.isArray(e) && typeof e[0] == "function") {
- let t = e[0], n = hv(0);
+ let t = e[0], n = yv(0);
return n.on("change", t), e.length === 1 ? [n, [0, 1]] : e.length === 2 ? [
n,
[0, 1],
@@ -21593,33 +21618,33 @@ function Xie(e, t, n, r) {
];
}
return e;
- }), t, n, { spring: Lg }, r).forEach(({ keyframes: e, transition: t }, n) => {
- i.push(...hS(n, e, t));
+ }), t, n, { spring: Bg }, r).forEach(({ keyframes: e, transition: t }, n) => {
+ i.push(...vS(n, e, t));
}), i;
}
// node_modules/framer-motion/dist/es/animation/timeline/index.mjs
-var gS = 0;
-function Zie(e, t) {
+var yS = 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 _S = (e, t) => t === void 0 ? e : {
+var bS = (e, t) => t === void 0 ? e : {
name: e,
at: t
};
-function vS(e) {
+function xS(e) {
e.pause(), e.time = 0, e.stop();
}
-var yS = class e {
+var SS = 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 = zv.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 = Uv.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 lv(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 pv(n), this.watch()) : (this.invalidate(), this.flush());
let { scope: r } = t;
- r && (r.animations.push(this), this.finished.then(() => Cm(r.animations, this)));
+ r && (r.animations.push(this), this.finished.then(() => Om(r.animations, this)));
}
add(t, n) {
return t instanceof e && t.adopt(this), this.push({
@@ -21632,7 +21657,7 @@ var yS = class e {
item: e,
at: t,
marker: {
- name: "_m" + gS++,
+ name: "_m" + yS++,
time: 0,
callback: e
}
@@ -21643,7 +21668,7 @@ var yS = class e {
item: t || {},
at: e,
marker: {
- name: "_m" + gS++,
+ name: "_m" + yS++,
time: 0,
callback: t,
pause: !0
@@ -21737,50 +21762,50 @@ var yS = class e {
this.isDirty && !this.parent && !this.isKilled && this.build();
}
adopt(e) {
- this.group &&= (vS(this.group), void 0), this.isDirty = !1, this.parent = e;
+ this.group &&= (xS(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, vS(e)), this.isRebuilding = !1);
+ e && (this.isRebuilding = !0, this.scrollTimeline ? (this.detachScroll?.(), e.cancel()) : (t = e.animations.length ? e.time : 0, xS(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 = zv.current;
- zv.current = this.motionScope;
+ let d = /* @__PURE__ */ new Map(), f = {}, p = Uv.current;
+ Uv.current = this.motionScope;
let m;
try {
- m = Xie(this.toSequence(d), {
+ m = Zie(this.toSequence(d), {
defaultTransition: n,
...u
}, c, f);
} finally {
- zv.current = p;
+ Uv.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 = hv(0);
- e.on("change", (t) => e === this.clock && this.onClock(t)), m.unshift(this.clockAnimation = xy(e, [0, g], {
+ let e = this.clock = yv(0);
+ e.on("change", (t) => e === this.clock && this.onClock(t)), m.unshift(this.clockAnimation = wy(e, [0, g], {
...u,
duration: g,
ease: "linear"
}));
}
- let v = this.group = new lv(m);
+ let v = this.group = new pv(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), _S(i.name, r)) : n instanceof e ? {
+ return this.entries.map(({ item: n, at: r, marker: i }) => i ? (t.set(i.name, i), bS(i.name, r)) : n instanceof e ? {
sequence: n.toSequence(t),
at: r
- } : typeof n == "string" ? _S(n, r) : r === void 0 ? n : Array.isArray(n) ? Zie(n, r) : {
+ } : typeof n == "string" ? bS(n, r) : r === void 0 ? n : Array.isArray(n) ? Qie(n, r) : {
...n,
at: r
});
}
resolve(e) {
- return this.flush(), typeof e == "number" ? e : fS(e, this.labels) ?? this.time;
+ return this.flush(), typeof e == "number" ? e : hS(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;
@@ -21828,16 +21853,16 @@ var yS = class e {
}
};
// node_modules/framer-motion/dist/es/animation/animate/index.mjs
-function Qie(e) {
+function $ie(e) {
return Array.isArray(e) && e.some(Array.isArray);
}
-function $ie(e = {}) {
+function eae(e = {}) {
let { scope: t, reduceMotion: n, skipAnimations: r } = e;
function i(e, i, a) {
- let o = zv.current?.transition, s = {};
+ let o = Uv.current?.transition, s = {};
n !== void 0 && (s.reduceMotion = n), r !== void 0 && (s.skipAnimations = r);
let c;
- if (Qie(e)) {
+ if ($ie(e)) {
let n = {
...s,
...i,
@@ -21846,14 +21871,14 @@ function $ie(e = {}) {
o && (n.defaultTransition = {
...o,
...n.defaultTransition
- }), c = new yS(e, n);
+ }), c = new SS(e, n);
} else {
let { onComplete: n, ...r } = a || {}, l = {
...s,
...o,
...r
}, { onUpdate: u } = r;
- c = new yS([typeof e == "number" || typeof e == "string" && (typeof i == "string" || Array.isArray(i)) ? [
+ c = new SS([typeof e == "number" || typeof e == "string" && (typeof i == "string" || Array.isArray(i)) ? [
u || (() => {}),
Array.isArray(i) ? i : [e, i],
{
@@ -21868,28 +21893,28 @@ function $ie(e = {}) {
...s,
onComplete: n,
scope: t
- }, hS(e, i, l, t));
+ }, vS(e, i, l, t));
}
return c;
}
return i;
}
-var bS = /* @__PURE__ */ Object.assign(/* @__PURE__ */ $ie(), {
+var CS = /* @__PURE__ */ Object.assign(/* @__PURE__ */ eae(), {
addEffect: Hte,
- removeEffect: Pv
+ removeEffect: Rv
});
// node_modules/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs
-function eae(e, t, n, r) {
+function tae(e, t, n, r) {
if (e == null) return [];
- let i = Hv(e, r), a = i.length, o = [];
+ let i = Kv(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 = { ..._v(s, e) };
- i.duration &&= /* @__PURE__ */ Pm(i.duration), i.delay &&= /* @__PURE__ */ Pm(i.delay);
+ let i = { ...xv(s, e) };
+ i.duration &&= /* @__PURE__ */ zm(i.duration), i.delay &&= /* @__PURE__ */ zm(i.delay);
let a = mte(r), c = pte(e, i.pseudoElement || ""), l = a.get(c);
l && l.stop(), o.push({
map: a,
@@ -21906,21 +21931,21 @@ function eae(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] = Cx(r, i)), a_(t), Vte(t, i), !a && t.length < 2 && t.unshift(Cx(r, i)), n.keyframes = t;
+ !a && t[0] === null && (t[0] = Ex(r, i)), c_(t), Vte(t, i), !a && t.length < 2 && t.unshift(Ex(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 V_(r);
+ let { map: t, key: n, options: r } = o[e], i = new W_(r);
t.set(n, i), i.finished.finally(() => t.delete(n)), s.push(i);
}
return s;
}
-var tae = /*@__PURE__*/ ((e) => {
+var nae = /*@__PURE__*/ ((e) => {
function t(t, n, r) {
- return new lv(eae(t, n, r, e));
+ return new pv(tae(t, n, r, e));
}
return t;
-})(), xS = Fie, SS = class {
+})(), wS = Iie, TS = 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;
}
@@ -21935,22 +21960,22 @@ var tae = /*@__PURE__*/ ((e) => {
let r = this.clone();
return t.addDescendants(r, e), r;
}
-}, CS = class extends SS {
+}, ES = class extends TS {
filter(e, t, n) {
- let [r, i] = DS(e, t, this.firstChildKey, n), a = this.clone();
+ let [r, i] = AS(e, t, this.firstChildKey, n), a = this.clone();
return a.firstChildKey = r, a.lastChildKey = i, a;
}
};
-(class extends SS {
+(class extends TS {
static {
this.type = "header";
}
});
-var wS = class extends SS {
+var DS = class extends TS {
static {
this.type = "loader";
}
-}, TS = class extends CS {
+}, OS = class extends ES {
static {
this.type = "item";
}
@@ -21961,7 +21986,7 @@ var wS = class extends SS {
}
return null;
}
-}, nae = class extends CS {
+}, rae = class extends ES {
static {
this.type = "section";
}
@@ -21973,7 +21998,7 @@ var wS = class extends SS {
}
return null;
}
-}, ES = class {
+}, kS = class {
get size() {
return this.itemCount;
}
@@ -22048,14 +22073,14 @@ var wS = class extends SS {
this.firstKey = e, this.lastKey = t, this.frozen = !n;
}
filter(e) {
- let t = new this.constructor(), [n, r] = DS(this, t, this.firstKey, e);
+ let t = new this.constructor(), [n, r] = AS(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 DS(e, t, n, r) {
+function AS(e, t, n, r) {
if (n == null) return [null, null];
let i = null, a = null, o = e.getItem(n);
for (; o != null;) {
@@ -22069,7 +22094,7 @@ function DS(e, t, n, r) {
return [i?.key ?? null, a?.key ?? null];
}
// node_modules/react-aria/dist/private/collections/Document.mjs
-var OS = class {
+var jS = class {
constructor(e) {
this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = e;
}
@@ -22150,7 +22175,7 @@ var OS = class {
for (; e && e.isHidden;) e = e.previousSibling;
return e;
}
-}, kS = class e extends OS {
+}, MS = class e extends jS {
constructor(e, t) {
super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.isHidden = !1, this.node = null;
}
@@ -22201,7 +22226,7 @@ var OS = class {
setAttribute() {}
setAttributeNS() {}
removeAttribute() {}
-}, rae = class extends OS {
+}, iae = class extends jS {
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;
}
@@ -22209,7 +22234,7 @@ var OS = class {
return !0;
}
createElement(e) {
- return new kS(e, this);
+ return new MS(e, this);
}
getMutableCollection() {
return this.nextCollection ||= this.collection.clone(), this.nextCollection;
@@ -22231,8 +22256,8 @@ var OS = class {
return this.inSubscription || (this.queuedRender = !1, this.updateCollection()), this.collection;
}
updateCollection() {
- for (let e of this.dirtyNodes) e instanceof kS && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
- for (let e of this.dirtyNodes) e instanceof kS ? (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 MS && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
+ for (let e of this.dirtyNodes) e instanceof MS ? (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() {
@@ -22250,13 +22275,13 @@ var OS = class {
}
};
// node_modules/react-aria/dist/private/collections/useCachedChildren.mjs
-function AS(e) {
+function NS(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 = iae(a) ? a : null, o = n ? s.get(n) : null;
+ let n = aae(a) ? a : null, o = n ? s.get(n) : null;
if (!o) {
o = t(a);
let c = o.props.id ?? a?.key ?? a?.id;
@@ -22281,7 +22306,7 @@ function AS(e) {
i
]);
}
-function iae(e) {
+function aae(e) {
switch (typeof e) {
case "object": return e != null;
case "function":
@@ -22290,24 +22315,24 @@ function iae(e) {
}
}
// node_modules/react-aria/dist/private/utils/focusWithoutScrolling.mjs
-function jS(e) {
+function PS(e) {
e.focus({ preventScroll: !0 });
}
// node_modules/react-aria/dist/private/utils/domHelpers.mjs
-var MS = (e) => aae(e) ? e.document : oae(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), NS = (e) => MS(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
-function PS(e) {
+var FS = (e) => oae(e) ? e.document : sae(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), IS = (e) => FS(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
+function LS(e) {
return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
}
-function aae(e) {
+function oae(e) {
return typeof e == "object" && !!e && "window" in e && e.window === e;
}
-function oae(e) {
- return PS(e) && e.nodeType === 9;
+function sae(e) {
+ return LS(e) && e.nodeType === 9;
}
-function FS(e) {
- return PS(e) && e.nodeType === 11 && "host" in e;
+function RS(e) {
+ return LS(e) && e.nodeType === 11 && "host" in e;
}
-function IS(e, t, n, r) {
+function zS(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);
@@ -22315,7 +22340,7 @@ function IS(e, t, n, r) {
for (let e of i) e.removeEventListener(t, n, r);
};
}
-function LS(e, t, n, r) {
+function BS(e, t, n, r) {
if (e == null) return () => {};
let i = [], a = Array.isArray(e) ? e : [e];
for (let e of a) {
@@ -22329,70 +22354,70 @@ function LS(e, t, n, r) {
};
}
// node_modules/react-stately/dist/private/flags/flags.mjs
-var sae = !1;
-function RS() {
- return sae;
+var cae = !1;
+function VS() {
+ return cae;
}
// node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.mjs
-function zS(e, t) {
- if (!RS()) return t && e ? e.contains(t) : !1;
+function HS(e, t) {
+ if (!VS()) 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 : FS(n) ? n.host : n.parentNode;
+ n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : RS(n) ? n.host : n.parentNode;
}
return !1;
}
-var BS = (e = document) => {
- if (!RS()) return e.activeElement;
+var US = (e = document) => {
+ if (!VS()) 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 (RS() && e.target instanceof Element && e.target.shadowRoot) {
+function K(e) {
+ if (VS() && 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 VS(e, t) {
+function WS(e, t) {
if (t === null) return [];
- t ??= NS(e);
+ t ??= IS(e);
let n = [t];
- if (!RS() || !e || e === t) return n;
+ if (!VS() || !e || e === t) return n;
let r = "getRootNode" in t ? t.getRootNode() : null, i = e.getRootNode() ?? null;
- for (; FS(i) && i !== r;) n.push(i), i = i.host.getRootNode();
+ for (; RS(i) && i !== r;) n.push(i), i = i.host.getRootNode();
return n;
}
-function HS(e) {
+function GS(e) {
if (!e) return !1;
- let t = e.getRootNode(), n = NS(e);
+ let t = e.getRootNode(), n = IS(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 cae = typeof Element < "u" && "checkVisibility" in Element.prototype;
-function lae(e) {
- let t = NS(e);
+var lae = typeof Element < "u" && "checkVisibility" in Element.prototype;
+function uae(e) {
+ let t = IS(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 } = NS(e), { display: n, visibility: r } = t(e);
+ let { getComputedStyle: t } = IS(e), { display: n, visibility: r } = t(e);
i = n !== "none" && r !== "hidden" && r !== "collapse";
}
return i;
}
-function uae(e, t) {
+function dae(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 US(e, t) {
- return cae ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && lae(e) && uae(e, t) && (!e.parentElement || US(e.parentElement, e));
+function KS(e, t) {
+ return lae ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && uae(e) && dae(e, t) && (!e.parentElement || KS(e.parentElement, e));
}
// node_modules/react-aria/dist/private/utils/isFocusable.mjs
-var WS = [
+var qS = [
"input:not([disabled]):not([type=hidden])",
"select:not([disabled])",
"textarea:not([disabled])",
@@ -22407,58 +22432,58 @@ var WS = [
"video[controls]",
"[contenteditable]:not([contenteditable^=\"false\"])",
"permission"
-], GS = WS.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
-WS.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
-var KS = WS.join(":not([hidden]):not([tabindex=\"-1\"]),");
-function qS(e, t) {
- return e.matches(GS) && !YS(e) && (t?.skipVisibilityCheck || US(e));
+], JS = qS.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
+qS.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
+var YS = qS.join(":not([hidden]):not([tabindex=\"-1\"]),");
+function XS(e, t) {
+ return e.matches(JS) && !QS(e) && (t?.skipVisibilityCheck || KS(e));
}
-function JS(e) {
- return e.matches(KS) && US(e) && !YS(e);
+function ZS(e) {
+ return e.matches(YS) && KS(e) && !QS(e);
}
-function YS(e) {
+function QS(e) {
let t = e;
for (; t != null;) {
- if (t instanceof NS(t).HTMLElement && t.inert) return !0;
+ if (t instanceof IS(t).HTMLElement && t.inert) return !0;
t = t.parentElement;
}
return !1;
}
// node_modules/react-aria/dist/private/utils/useLayoutEffect.mjs
-var XS = typeof document < "u" ? F.useLayoutEffect : () => {};
+var $S = typeof document < "u" ? F.useLayoutEffect : () => {};
// node_modules/react-aria/dist/private/interactions/utils.mjs
-function ZS(e) {
+function eC(e) {
let t = e;
return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {}, t;
}
-function QS(e, t) {
+function tC(e, t) {
Object.defineProperty(e, "target", { value: t }), Object.defineProperty(e, "currentTarget", { value: t });
}
-function $S(e) {
+function nC(e) {
let t = (0, F.useRef)({
isFocused: !1,
observer: null
});
- return XS(() => {
+ return $S(() => {
let e = t.current;
return () => {
e.observer &&= (e.observer.disconnect(), null);
};
}, []), (0, F.useCallback)((n) => {
- let r = G(n);
+ let r = K(n);
if (r instanceof HTMLButtonElement || r instanceof HTMLInputElement || r instanceof HTMLTextAreaElement || r instanceof HTMLSelectElement) {
t.current.isFocused = !0;
let n = r;
n.addEventListener("focusout", (r) => {
if (t.current.isFocused = !1, n.disabled) {
- let t = ZS(r);
+ let t = eC(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 === BS() ? null : BS();
+ let e = n === US() ? null : US();
n.dispatchEvent(new FocusEvent("blur", { relatedTarget: e })), n.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: e
@@ -22471,80 +22496,80 @@ function $S(e) {
}
}, [e]);
}
-var eC = !1;
-function tC(e) {
- for (; e && !qS(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
- let t = BS(NS(e).document);
+var rC = !1;
+function iC(e) {
+ for (; e && !XS(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
+ let t = US(IS(e).document);
if (!t || t === e) return;
- let n = e?.getRootNode(), r = n != null && FS(n) ? n : NS(e), i = (t) => t === e || PS(t) && zS(e, t), a = (e) => e === t || t != null && PS(e) && zS(t, e);
- eC = !0;
+ let n = e?.getRootNode(), r = n != null && RS(n) ? n : IS(e), i = (t) => t === e || LS(t) && HS(e, t), a = (e) => e === t || t != null && LS(e) && HS(t, e);
+ rC = !0;
let o = !1, s = (e) => {
- (a(G(e)) || o) && e.stopImmediatePropagation();
+ (a(K(e)) || o) && e.stopImmediatePropagation();
}, c = (n) => {
- (a(G(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, jS(t), d()));
+ (a(K(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, PS(t), d()));
}, l = (e) => {
- (i(G(e)) || o) && e.stopImmediatePropagation();
+ (i(K(e)) || o) && e.stopImmediatePropagation();
}, u = (e) => {
- (i(G(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, jS(t), d()));
+ (i(K(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, PS(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), eC = !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), rC = !1, o = !1;
}, f = requestAnimationFrame(d);
return d;
}
// node_modules/react-aria/dist/private/utils/platform.mjs
-function nC(e) {
+function aC(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 rC(e) {
+function oC(e) {
return typeof window < "u" && window.navigator != null && e.test(window.navigator.userAgentData?.platform || window.navigator.platform);
}
-function iC(e) {
+function sC(e) {
let t = null;
return () => (t ??= e(), t);
}
-var aC = iC(function() {
- return rC(/^Mac/i);
-}), oC = iC(function() {
- return rC(/^iPhone/i);
-}), sC = iC(function() {
- return rC(/^iPad/i) || aC() && navigator.maxTouchPoints > 1;
-}), cC = iC(function() {
- return oC() || sC();
-}), lC = iC(function() {
- return aC() || cC();
-}), uC = iC(function() {
- return nC(/AppleWebKit/i) && (cC() || !dC());
-}), dC = iC(function() {
- return nC(/Chrome|CriOS|CrMo/i);
-}), fC = iC(function() {
- return nC(/Android/i);
+var cC = sC(function() {
+ return oC(/^Mac/i);
+}), lC = sC(function() {
+ return oC(/^iPhone/i);
+}), uC = sC(function() {
+ return oC(/^iPad/i) || cC() && navigator.maxTouchPoints > 1;
+}), dC = sC(function() {
+ return lC() || uC();
+}), fC = sC(function() {
+ return cC() || dC();
+}), pC = sC(function() {
+ return aC(/AppleWebKit/i) && (dC() || !mC());
+}), mC = sC(function() {
+ return aC(/Chrome|CriOS|CrMo/i);
+}), hC = sC(function() {
+ return aC(/Android/i);
});
// node_modules/react-aria/dist/private/utils/isVirtualEvent.mjs
-function pC(e) {
- return e.pointerType === "" && e.isTrusted ? !0 : fC() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
+function gC(e) {
+ return e.pointerType === "" && e.isTrusted ? !0 : hC() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
}
-function mC(e) {
- return !fC() && e.width === 0 && e.height === 0 || fC() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
+function _C(e) {
+ return !hC() && e.width === 0 && e.height === 0 || hC() && 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 hC = /*#__PURE__*/ (0, F.createContext)({
+var vC = /*#__PURE__*/ (0, F.createContext)({
isNative: !0,
- open: bC,
+ open: CC,
useHref: (e) => e
});
-function gC() {
- return (0, F.useContext)(hC);
+function yC() {
+ return (0, F.useContext)(vC);
}
-function _C(e, t) {
+function bC(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 vC(e, t, n = !0) {
- let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t, s = uC() && aC() && !sC() ? new KeyboardEvent("keydown", {
+function xC(e, t, n = !0) {
+ let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t, s = pC() && cC() && !uC() ? new KeyboardEvent("keydown", {
keyIdentifier: "Enter",
metaKey: r,
ctrlKey: i,
@@ -22559,21 +22584,21 @@ function vC(e, t, n = !0) {
bubbles: !0,
cancelable: !0
});
- vC.isOpening = n, jS(e), e.dispatchEvent(s), vC.isOpening = !1;
+ xC.isOpening = n, PS(e), e.dispatchEvent(s), xC.isOpening = !1;
}
-vC.isOpening = !1;
-function yC(e, t) {
+xC.isOpening = !1;
+function SC(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 bC(e, t) {
- yC(e, (e) => vC(e, t));
+function CC(e, t) {
+ SC(e, (e) => xC(e, t));
}
-function xC(e) {
- let t = gC().useHref(e.href ?? "");
+function wC(e) {
+ let t = yC().useHref(e.href ?? "");
return {
"data-href": e.href ? t : void 0,
"data-target": e.target,
@@ -22583,8 +22608,8 @@ function xC(e) {
"data-referrer-policy": e.referrerPolicy
};
}
-function SC(e) {
- let t = gC().useHref(e?.href ?? ""), n = {};
+function TC(e) {
+ let t = yC().useHref(e?.href ?? ""), n = {};
if (e) for (let r of [
"href",
"target",
@@ -22595,138 +22620,138 @@ function SC(e) {
]) r in e && e[r] !== void 0 && (n[r] = r === "href" ? t : e[r]);
return n;
}
-function dae(e, t, n, r) {
- !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && _C(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
+function fae(e, t, n, r) {
+ !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && bC(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
}
// node_modules/react-aria/dist/private/ssr/SSRProvider.mjs
-var CC = {
+var EC = {
prefix: String(Math.round(Math.random() * 1e10)),
current: 0
-}, wC = /*#__PURE__*/ F.createContext(CC), fae = /*#__PURE__*/ F.createContext(!1);
+}, DC = /*#__PURE__*/ F.createContext(EC), pae = /*#__PURE__*/ F.createContext(!1);
typeof window < "u" && window.document && window.document.createElement;
-var TC = /* @__PURE__ */ new WeakMap();
-function pae(e = !1) {
- let t = (0, F.useContext)(wC), n = (0, F.useRef)(null);
+var OC = /* @__PURE__ */ new WeakMap();
+function mae(e = !1) {
+ let t = (0, F.useContext)(DC), 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 = TC.get(e);
- n == null ? TC.set(e, {
+ let n = OC.get(e);
+ n == null ? OC.set(e, {
id: t.current,
state: e.memoizedState
- }) : e.memoizedState !== n.state && (t.current = n.id, TC.delete(e));
+ }) : e.memoizedState !== n.state && (t.current = n.id, OC.delete(e));
}
n.current = ++t.current;
}
return n.current;
}
-function mae(e) {
- let t = (0, F.useContext)(wC), n = pae(!!e), r = `react-aria${t.prefix}`;
+function hae(e) {
+ let t = (0, F.useContext)(DC), n = mae(!!e), r = `react-aria${t.prefix}`;
return e || `${r}-${n}`;
}
-function hae(e) {
- let t = F.useId(), [n] = (0, F.useState)(EC()), r = n ? "react-aria" : `react-aria${CC.prefix}`;
+function gae(e) {
+ let t = F.useId(), [n] = (0, F.useState)(kC()), r = n ? "react-aria" : `react-aria${EC.prefix}`;
return e || `${r}-${t}`;
}
-var gae = typeof F.useId == "function" ? hae : mae;
-function _ae() {
+var _ae = typeof F.useId == "function" ? gae : hae;
+function vae() {
return !1;
}
-function vae() {
+function yae() {
return !0;
}
-function yae(e) {
+function bae(e) {
return () => {};
}
-function EC() {
- return typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore(yae, _ae, vae) : (0, F.useContext)(fae);
+function kC() {
+ return typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore(bae, vae, yae) : (0, F.useContext)(pae);
}
// node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs
-var DC = null, OC = /* @__PURE__ */ new Set(), kC = /* @__PURE__ */ new Map(), AC = !1, jC = !1, bae = {
+var AC = null, jC = /* @__PURE__ */ new Set(), MC = /* @__PURE__ */ new Map(), NC = !1, PC = !1, xae = {
Tab: !0,
Escape: !0
};
-function MC(e, t) {
- for (let n of OC) n(e, t);
+function FC(e, t) {
+ for (let n of jC) n(e, t);
}
-function xae(e) {
- return !(e.metaKey || !aC() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
+function Sae(e) {
+ return !(e.metaKey || !cC() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
}
-function NC(e) {
- AC = !0, !vC.isOpening && xae(e) && (DC = "keyboard", MC("keyboard", e));
+function IC(e) {
+ NC = !0, !xC.isOpening && Sae(e) && (AC = "keyboard", FC("keyboard", e));
}
-function PC(e) {
- DC = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (AC = !0, MC("pointer", e));
+function LC(e) {
+ AC = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (NC = !0, FC("pointer", e));
}
-function FC(e) {
- !vC.isOpening && pC(e) && (AC = !0, DC = "virtual");
+function RC(e) {
+ !xC.isOpening && gC(e) && (NC = !0, AC = "virtual");
}
-function IC(e) {
- if (eC) return;
- let t = G(e), n = NS(t), r = MS(t);
- t === n ? jC = !0 : t !== r && e.isTrusted && (!AC && !jC && (DC = "virtual", MC("virtual", e)), AC = !1, jC = !1);
+function zC(e) {
+ if (rC) return;
+ let t = K(e), n = IS(t), r = FS(t);
+ t === n ? PC = !0 : t !== r && e.isTrusted && (!NC && !PC && (AC = "virtual", FC("virtual", e)), NC = !1, PC = !1);
}
-function LC() {
- eC || (AC = !1, jC = !0);
+function BC() {
+ rC || (NC = !1, PC = !0);
}
-function RC(e) {
- let t = BS(MS(G(e)));
+function VC(e) {
+ let t = US(FS(K(e)));
queueMicrotask(() => {
- BS(MS(G(e))) !== t && UC("keyboard");
+ US(FS(K(e))) !== t && KC("keyboard");
});
}
-function zC(e) {
+function HC(e) {
if (typeof window > "u" || typeof document > "u") return;
- let t = NS(e), n = MS(e);
- if (kC.get(t)) return;
+ let t = IS(e), n = FS(e);
+ if (MC.get(t)) return;
let r = t.HTMLElement.prototype.focus;
Reflect.defineProperty(t.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
value: function() {
- AC = !0, r.apply(this, arguments);
+ NC = !0, r.apply(this, arguments);
}
- }), n.addEventListener("keydown", NC, !0), n.addEventListener("keyup", NC, !0), n.addEventListener("click", FC, !0), n.addEventListener("invalid", RC, !0), t.addEventListener("focus", IC, !0), t.addEventListener("blur", LC, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", PC, !0), n.addEventListener("pointermove", PC, !0), n.addEventListener("pointerup", PC, !0)), t.addEventListener("beforeunload", () => {
- BC(e);
- }, { once: !0 }), kC.set(t, { focus: r });
+ }), n.addEventListener("keydown", IC, !0), n.addEventListener("keyup", IC, !0), n.addEventListener("click", RC, !0), n.addEventListener("invalid", VC, !0), t.addEventListener("focus", zC, !0), t.addEventListener("blur", BC, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", LC, !0), n.addEventListener("pointermove", LC, !0), n.addEventListener("pointerup", LC, !0)), t.addEventListener("beforeunload", () => {
+ UC(e);
+ }, { once: !0 }), MC.set(t, { focus: r });
}
-var BC = (e, t) => {
- let n = NS(e), r = MS(e);
- t && r.removeEventListener("DOMContentLoaded", t), kC.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
+var UC = (e, t) => {
+ let n = IS(e), r = FS(e);
+ t && r.removeEventListener("DOMContentLoaded", t), MC.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
- value: kC.get(n).focus
- }), r.removeEventListener("keydown", NC, !0), r.removeEventListener("keyup", NC, !0), r.removeEventListener("click", FC, !0), r.removeEventListener("invalid", RC, !0), n.removeEventListener("focus", IC, !0), n.removeEventListener("blur", LC, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", PC, !0), r.removeEventListener("pointermove", PC, !0), r.removeEventListener("pointerup", PC, !0)), kC.delete(n));
+ value: MC.get(n).focus
+ }), r.removeEventListener("keydown", IC, !0), r.removeEventListener("keyup", IC, !0), r.removeEventListener("click", RC, !0), r.removeEventListener("invalid", VC, !0), n.removeEventListener("focus", zC, !0), n.removeEventListener("blur", BC, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", LC, !0), r.removeEventListener("pointermove", LC, !0), r.removeEventListener("pointerup", LC, !0)), MC.delete(n));
};
-function Sae(e) {
- let t = MS(e), n;
+function Cae(e) {
+ let t = FS(e), n;
return t.readyState === "loading" ? (n = () => {
- zC(e);
- }, t.addEventListener("DOMContentLoaded", n)) : zC(e), () => BC(e, n);
+ HC(e);
+ }, t.addEventListener("DOMContentLoaded", n)) : HC(e), () => UC(e, n);
}
-typeof document < "u" && Sae();
-function VC() {
- return DC !== "pointer";
+typeof document < "u" && Cae();
+function WC() {
+ return AC !== "pointer";
}
-function HC() {
- return DC;
+function GC() {
+ return AC;
}
-function UC(e) {
- DC = e, MC(e, null);
+function KC(e) {
+ AC = e, FC(e, null);
}
-function WC() {
- zC();
- let [e, t] = (0, F.useState)(DC);
+function qC() {
+ HC();
+ let [e, t] = (0, F.useState)(AC);
return (0, F.useEffect)(() => {
let e = () => {
- t(DC);
+ t(AC);
};
- return OC.add(e), () => {
- OC.delete(e);
+ return jC.add(e), () => {
+ jC.delete(e);
};
- }, []), EC() ? null : e;
+ }, []), kC() ? null : e;
}
-var Cae = /* @__PURE__ */ new Set([
+var wae = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -22737,107 +22762,107 @@ var Cae = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function wae(e, t, n) {
- let r = n ? G(n) : void 0, i = MS(r), a = NS(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 = BS(i);
- return e = e || u instanceof o && !Cae.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !bae[n.key]);
+function Tae(e, t, n) {
+ let r = n ? K(n) : void 0, i = FS(r), a = IS(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 = US(i);
+ return e = e || u instanceof o && !wae.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !xae[n.key]);
}
-function GC(e = {}) {
- let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, F.useState)(n || VC());
- return KC((e) => {
+function JC(e = {}) {
+ let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, F.useState)(n || WC());
+ return YC((e) => {
i(e);
}, [t], { isTextInput: t }), { isFocusVisible: r };
}
-function KC(e, t, n) {
- zC(), (0, F.useEffect)(() => {
+function YC(e, t, n) {
+ HC(), (0, F.useEffect)(() => {
if (n?.enabled === !1) return;
let t = (t, r) => {
- wae(!!n?.isTextInput, t, r) && e(VC());
+ Tae(!!n?.isTextInput, t, r) && e(WC());
};
- return OC.add(t), () => {
- OC.delete(t);
+ return jC.add(t), () => {
+ jC.delete(t);
};
}, t);
}
// node_modules/react-aria/dist/private/utils/runAfterTransition.mjs
-var qC = /* @__PURE__ */ new Map(), JC = /* @__PURE__ */ new Set();
-function YC(e) {
+var XC = /* @__PURE__ */ new Map(), ZC = /* @__PURE__ */ new Set();
+function QC(e) {
return "propertyName" in e;
}
-function Tae(e) {
- let t = G(e);
- if (!YC(e) || !t) return;
- let n = qC.get(t);
- n || (n = /* @__PURE__ */ new Set(), qC.set(t, n), t.addEventListener("transitioncancel", XC, { once: !0 })), n.add(e.propertyName);
+function Eae(e) {
+ let t = K(e);
+ if (!QC(e) || !t) return;
+ let n = XC.get(t);
+ n || (n = /* @__PURE__ */ new Set(), XC.set(t, n), t.addEventListener("transitioncancel", $C, { once: !0 })), n.add(e.propertyName);
}
-function XC(e) {
- let t = G(e);
- if (!YC(e) || !t) return;
- let n = qC.get(t);
- if (n && (n.delete(e.propertyName), n.size === 0 && (t.removeEventListener("transitioncancel", XC), qC.delete(t)), qC.size === 0)) for (let e of JC) e(!0), JC.delete(e);
+function $C(e) {
+ let t = K(e);
+ if (!QC(e) || !t) return;
+ let n = XC.get(t);
+ if (n && (n.delete(e.propertyName), n.size === 0 && (t.removeEventListener("transitioncancel", $C), XC.delete(t)), XC.size === 0)) for (let e of ZC) e(!0), ZC.delete(e);
}
-function ZC() {
- IS(document, "transitionrun", Tae), IS(document, "transitionend", XC);
+function ew() {
+ zS(document, "transitionrun", Eae), zS(document, "transitionend", $C);
}
-function Eae() {
- for (let [e] of qC) "isConnected" in e && !e.isConnected && qC.delete(e);
+function Dae() {
+ for (let [e] of XC) "isConnected" in e && !e.isConnected && XC.delete(e);
}
-typeof document < "u" && (document.readyState === "loading" ? IS(document, "DOMContentLoaded", ZC) : ZC());
-function QC(e) {
+typeof document < "u" && (document.readyState === "loading" ? zS(document, "DOMContentLoaded", ew) : ew());
+function tw(e) {
let t = window.requestAnimationFrame(() => {
- if (Eae(), qC.size === 0) return e(!1);
- JC.add(e);
+ if (Dae(), XC.size === 0) return e(!1);
+ ZC.add(e);
});
return () => {
- window.cancelAnimationFrame(t), JC.delete(e);
+ window.cancelAnimationFrame(t), ZC.delete(e);
};
}
// node_modules/react-aria/dist/private/interactions/focusSafely.mjs
-function $C(e) {
+function nw(e) {
if (!e.isConnected) return;
- let t = MS(e);
- if (HC() === "virtual") {
- let n = BS(t);
- QC(() => {
- let r = BS(t);
- (r === n || r === t.body) && e.isConnected && jS(e);
+ let t = FS(e);
+ if (GC() === "virtual") {
+ let n = US(t);
+ tw(() => {
+ let r = US(t);
+ (r === n || r === t.body) && e.isConnected && PS(e);
});
- } else jS(e);
+ } else PS(e);
}
// node_modules/react-aria/dist/private/utils/chain.mjs
-function ew(...e) {
+function rw(...e) {
return (...t) => {
for (let n of e) typeof n == "function" && n(...t);
};
}
// node_modules/react-aria/dist/private/utils/useValueEffect.mjs
-function Dae(e) {
+function Oae(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 XS(() => {
+ return $S(() => {
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 Oae = !!(typeof window < "u" && window.document && window.document.createElement), tw = /* @__PURE__ */ new Map(), nw;
-typeof FinalizationRegistry < "u" && (nw = new FinalizationRegistry((e) => {
- tw.delete(e);
+var kae = !!(typeof window < "u" && window.document && window.document.createElement), iw = /* @__PURE__ */ new Map(), aw;
+typeof FinalizationRegistry < "u" && (aw = new FinalizationRegistry((e) => {
+ iw.delete(e);
}));
-var rw = /* @__PURE__ */ new WeakMap();
-function iw(e) {
- let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(null), i = gae(t), a = (0, F.useRef)(null), o = rw.get(a);
- if (nw && o !== i && (o != null && nw.unregister(a), nw.register(a, i, a), rw.set(a, i)), Oae) {
- let e = tw.get(i);
- e && !e.includes(r) ? e.push(r) : tw.set(i, [r]);
- }
- return XS(() => {
+var ow = /* @__PURE__ */ new WeakMap();
+function sw(e) {
+ let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(null), i = _ae(t), a = (0, F.useRef)(null), o = ow.get(a);
+ if (aw && o !== i && (o != null && aw.unregister(a), aw.register(a, i, a), ow.set(a, i)), kae) {
+ let e = iw.get(i);
+ e && !e.includes(r) ? e.push(r) : iw.set(i, [r]);
+ }
+ return $S(() => {
let e = i;
return () => {
- nw && (nw.unregister(a), rw.delete(a)), tw.delete(e);
+ aw && (aw.unregister(a), ow.delete(a)), iw.delete(e);
};
}, [i]), (0, F.useEffect)(() => {
let e = r.current;
@@ -22846,77 +22871,77 @@ function iw(e) {
};
}), i;
}
-function kae(e, t) {
+function Aae(e, t) {
if (e === t) return e;
- let n = tw.get(e);
+ let n = iw.get(e);
if (n) return n.forEach((e) => e.current = t), t;
- let r = tw.get(t);
+ let r = iw.get(t);
return r ? (r.forEach((t) => t.current = e), e) : t;
}
-function aw(e = []) {
- let t = iw(), [n, r] = Dae(t), i = (0, F.useCallback)(() => {
+function cw(e = []) {
+ let t = sw(), [n, r] = Oae(t), i = (0, F.useCallback)(() => {
r(function* () {
yield t, yield document.getElementById(t) ? t : void 0;
});
}, [t, r]);
- return XS(i, [
+ return $S(i, [
t,
i,
...e
]), n;
}
// node_modules/react-aria/dist/private/utils/mergeRefs.mjs
-function ow(...e) {
+function lw(...e) {
return e.length === 1 && e[0] ? e[0] : (t) => {
let n = !1, r = e.map((e) => {
- let r = sw(e, t);
+ let r = uw(e, t);
return n ||= typeof r == "function", r;
});
if (n) return () => {
r.forEach((t, n) => {
- typeof t == "function" ? t() : sw(e[n], null);
+ typeof t == "function" ? t() : uw(e[n], null);
});
};
};
}
-function sw(e, t) {
+function uw(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
// node_modules/clsx/dist/clsx.mjs
-function cw(e) {
+function dw(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 = cw(e[t])) && (r && (r += " "), r += n);
+ for (t = 0; t < i; t++) e[t] && (n = dw(e[t])) && (r && (r += " "), r += n);
} else for (n in e) e[n] && (r && (r += " "), r += n);
}
return r;
}
-function lw() {
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = cw(e)) && (r && (r += " "), r += t);
+function fw() {
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = dw(e)) && (r && (r += " "), r += t);
return r;
}
// node_modules/react-aria/dist/private/utils/mergeProps.mjs
-function K(...e) {
+function q(...e) {
let t = { ...e[0] };
for (let n = 1; n < e.length; n++) {
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] = ew(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = lw(n, i) : e === "id" && n && i ? t.id = kae(n, i) : e === "ref" && n && i ? t.ref = ow(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] = rw(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = fw(n, i) : e === "id" && n && i ? t.id = Aae(n, i) : e === "ref" && n && i ? t.ref = lw(n, i) : t[e] = i === void 0 ? n : i;
}
}
return t;
}
// node_modules/react-aria/dist/private/interactions/useFocus.mjs
-function uw(e) {
+function pw(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 = $S(a), s = (0, F.useCallback)((e) => {
- let t = G(e), r = MS(t), a = r ? BS(r) : BS();
+ if (K(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
+ }, [r, i]), o = nC(a), s = (0, F.useCallback)((e) => {
+ let t = K(e), r = FS(t), a = r ? US(r) : US();
t === e.currentTarget && t === a && (n && n(e), i && i(!0), o(e));
}, [
i,
@@ -22929,7 +22954,7 @@ function uw(e) {
} };
}
// node_modules/react-aria/dist/private/interactions/createEventHandler.mjs
-function dw(e) {
+function mw(e) {
if (e) return (t) => {
let n = !0;
e({
@@ -22953,33 +22978,33 @@ function dw(e) {
};
}
// node_modules/react-aria/dist/private/interactions/createKeyboardShortcutHandler.mjs
-var Aae = /* @__PURE__ */ new Set([
+var jae = /* @__PURE__ */ new Set([
"shift",
"alt",
"control",
"meta",
"mod"
-]), jae = [
+]), Mae = [
"Alt",
"Control",
"Meta",
"Shift"
];
-function Mae(e) {
+function Nae(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(aC() ? "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(cC() ? "Meta" : "Control"), t;
}
-function Nae(e) {
+function Pae(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 fw(e) {
- return jae.filter((t) => e.has(t));
+function hw(e) {
+ return Mae.filter((t) => e.has(t));
}
-function Pae(e) {
+function Fae(e) {
let t = e.split("+").reduce((e, t) => {
let n = t.toLowerCase();
- return Aae.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 jae.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,
@@ -22991,10 +23016,10 @@ function Pae(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 pw(e) {
+function gw(e) {
return e.toLowerCase();
}
-var Fae = {
+var Iae = {
space: " ",
esc: "escape",
del: "delete",
@@ -23006,26 +23031,26 @@ var Fae = {
pageup: "pageup",
pagedown: "pagedown"
};
-function Iae(e) {
- let t = pw(e);
- return Fae[t] ?? t;
-}
function Lae(e) {
- let t = fw(Mae(e)), n = Iae(e.key);
- return t.length > 0 ? `${t.join("+")}+${n}` : n;
+ let t = gw(e);
+ return Iae[t] ?? t;
}
function Rae(e) {
- let t = fw(Nae(e)), n = pw(e.key);
- return (t.length > 0 ? `${t.join("+")}+` : "") + n;
+ let t = hw(Nae(e)), n = Lae(e.key);
+ return t.length > 0 ? `${t.join("+")}+${n}` : n;
}
function zae(e) {
+ let t = hw(Pae(e)), n = gw(e.key);
+ return (t.length > 0 ? `${t.join("+")}+` : "") + n;
+}
+function Bae(e) {
let t = /* @__PURE__ */ new Map();
for (let [n, r] of Object.entries(e)) {
- let e = Pae(n);
- t.set(Lae(e), r);
+ let e = Fae(n);
+ t.set(Rae(e), r);
}
return (e) => {
- let n = Rae(e), r = t.get(n), i = r?.(e);
+ let n = zae(e), r = t.get(n), i = r?.(e);
i === void 0 && r !== void 0 ? i = {
shouldContinuePropagation: !1,
shouldPreventDefault: !0
@@ -23036,23 +23061,23 @@ function zae(e) {
};
}
// node_modules/react-aria/dist/private/interactions/useKeyboard.mjs
-function mw(e) {
+function _w(e) {
let { shortcuts: t, allowRepeats: n = !1, allowComposing: r = !1 } = e, i, a;
if (t) {
- let o = zae(t), s = dw((e) => {
- zS(e.currentTarget, G(e)) ? e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r ? e.continuePropagation() : o(e) : e.continuePropagation();
- }), c = dw((e) => {
- zS(e.currentTarget, G(e)) && (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing), e.continuePropagation();
+ let o = Bae(t), s = mw((e) => {
+ HS(e.currentTarget, K(e)) ? e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r ? e.continuePropagation() : o(e) : e.continuePropagation();
+ }), c = mw((e) => {
+ HS(e.currentTarget, K(e)) && (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing), e.continuePropagation();
});
- i = e.onKeyDown ? ew(e.onKeyDown, s) : s, a = e.onKeyUp ? ew(e.onKeyUp, c) : c;
- } else i = dw(e.onKeyDown), a = dw(e.onKeyUp);
+ i = e.onKeyDown ? rw(e.onKeyDown, s) : s, a = e.onKeyUp ? rw(e.onKeyUp, c) : c;
+ } else i = mw(e.onKeyDown), a = mw(e.onKeyUp);
return { keyboardProps: e.isDisabled ? {} : {
onKeyDown: i,
onKeyUp: a
} };
}
// node_modules/react-aria/dist/private/utils/useObjectRef.mjs
-function hw(e) {
+function vw(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);
@@ -23074,28 +23099,28 @@ function hw(e) {
}), [r]);
}
// node_modules/react-aria/dist/private/utils/useSyncRef.mjs
-function gw(e, t) {
- XS(() => {
+function yw(e, t) {
+ $S(() => {
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 _w = /*#__PURE__*/ F.createContext(null);
-function Bae(e) {
- let t = (0, F.useContext)(_w) || {};
- gw(t, e);
+var bw = /*#__PURE__*/ F.createContext(null);
+function Vae(e) {
+ let t = (0, F.useContext)(bw) || {};
+ yw(t, e);
let { ref: n, ...r } = t;
return r;
}
-function vw(e, t) {
- let { focusProps: n } = uw(e), { keyboardProps: r } = mw(e), i = K(n, r), a = Bae(t), o = e.isDisabled ? {} : a, s = (0, F.useRef)(e.autoFocus);
+function xw(e, t) {
+ let { focusProps: n } = pw(e), { keyboardProps: r } = _w(e), i = q(n, r), a = Vae(t), o = e.isDisabled ? {} : a, s = (0, F.useRef)(e.autoFocus);
(0, F.useEffect)(() => {
- s.current && t.current && $C(t.current), s.current = !1;
+ s.current && t.current && nw(t.current), s.current = !1;
}, [t]);
let c = e.excludeFromTabOrder ? -1 : 0;
- return e.isDisabled && (c = void 0), { focusableProps: K({
+ return e.isDisabled && (c = void 0), { focusableProps: q({
...i,
tabIndex: c
}, o) };
@@ -23126,21 +23151,21 @@ typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.p
return this.content.insertBefore(e, t);
}
}));
-var yw = /*#__PURE__*/ (0, F.createContext)(!1);
-function Vae(e) {
- if ((0, F.useContext)(yw)) return /*#__PURE__*/ F.createElement(F.Fragment, null, e.children);
- let t = /*#__PURE__*/ F.createElement(yw.Provider, { value: !0 }, e.children);
+var Sw = /*#__PURE__*/ (0, F.createContext)(!1);
+function Hae(e) {
+ if ((0, F.useContext)(Sw)) return /*#__PURE__*/ F.createElement(F.Fragment, null, e.children);
+ let t = /*#__PURE__*/ F.createElement(Sw.Provider, { value: !0 }, e.children);
return /*#__PURE__*/ F.createElement("template", null, t);
}
-function bw(e) {
- let t = (t, n) => (0, F.useContext)(yw) ? null : e(t, n);
+function Cw(e) {
+ let t = (t, n) => (0, F.useContext)(Sw) ? null : e(t, n);
return t.displayName = e.displayName || e.name, (0, F.forwardRef)(t);
}
-function xw() {
- return (0, F.useContext)(yw);
+function ww() {
+ return (0, F.useContext)(Sw);
}
// node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
-var Hae = /* @__PURE__ */ o(((e) => {
+var Uae = /* @__PURE__ */ o(((e) => {
var t = A();
function n(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -23178,47 +23203,47 @@ var Hae = /* @__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;
-})), Sw = /* @__PURE__ */ o(((e, t) => {
- t.exports = Hae();
-})), Uae = Sw(), Cw = /*#__PURE__*/ (0, F.createContext)(!1), ww = /*#__PURE__*/ (0, F.createContext)(null);
-function Tw(e) {
- if ((0, F.useContext)(ww)) return e.content;
- let { collection: t, document: n } = qae(e.createCollection);
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(Vae, null, /*#__PURE__*/ F.createElement(ww.Provider, { value: n }, e.content)), /*#__PURE__*/ F.createElement(Wae, {
+})), Tw = /* @__PURE__ */ o(((e, t) => {
+ t.exports = Uae();
+})), Wae = Tw(), Ew = /*#__PURE__*/ (0, F.createContext)(!1), Dw = /*#__PURE__*/ (0, F.createContext)(null);
+function Ow(e) {
+ if ((0, F.useContext)(Dw)) return e.content;
+ let { collection: t, document: n } = Jae(e.createCollection);
+ return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(Hae, null, /*#__PURE__*/ F.createElement(Dw.Provider, { value: n }, e.content)), /*#__PURE__*/ F.createElement(Gae, {
render: e.children,
collection: t
}));
}
-function Wae({ collection: e, render: t }) {
+function Gae({ collection: e, render: t }) {
return t(e);
}
-function Gae(e, t, n) {
- let r = EC(), i = (0, F.useRef)(r);
+function Kae(e, t, n) {
+ let r = kC(), i = (0, F.useRef)(r);
i.current = r;
let a = (0, F.useCallback)(() => i.current ? n() : t(), [t, n]);
- return (0, Uae.useSyncExternalStore)(e, a);
+ return (0, Wae.useSyncExternalStore)(e, a);
}
-var Kae = typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore : Gae;
-function qae(e) {
- let [t] = (0, F.useState)(() => new rae(e?.() || new ES()));
+var qae = typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore : Kae;
+function Jae(e) {
+ let [t] = (0, F.useState)(() => new iae(e?.() || new kS()));
return {
- collection: Kae((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 Ew = /*#__PURE__*/ (0, F.createContext)(null);
-function Jae(e) {
- return class extends SS {
+var kw = /*#__PURE__*/ (0, F.createContext)(null);
+function Yae(e) {
+ return class extends TS {
static {
this.type = e;
}
};
}
-function Dw(e, t, n, r, i, a) {
- typeof e == "string" && (e = Jae(e));
+function Aw(e, t, n, r, i, a) {
+ typeof e == "string" && (e = Yae(e));
let o = (0, F.useCallback)((i) => {
i?.setProps(t, n, e, r, a);
}, [
@@ -23227,82 +23252,82 @@ function Dw(e, t, n, r, i, a) {
r,
a,
e
- ]), s = (0, F.useContext)(Ew);
+ ]), s = (0, F.useContext)(kw);
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(Ew.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(kw.Provider, { value: o }, i) : null;
}
return /*#__PURE__*/ F.createElement(e.type, { ref: o }, i);
}
-function Ow(e, t) {
+function jw(e, t) {
let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, F.forwardRef)((r, i) => {
- let a = (0, F.useContext)(_w);
- if (!(0, F.useContext)(Cw)) {
+ let a = (0, F.useContext)(bw);
+ if (!(0, F.useContext)(Ew)) {
if (t.length >= 3) throw Error(t.name + " cannot be rendered outside a collection.");
return t(r, i);
}
- return Dw(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ F.createElement(_w.Provider, { value: a }, /*#__PURE__*/ F.createElement(n, { node: e })));
+ return Aw(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ F.createElement(bw.Provider, { value: a }, /*#__PURE__*/ F.createElement(n, { node: e })));
});
return r.displayName = t.name, r;
}
-function kw(e, t, n = Aw) {
- let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, F.forwardRef)((t, i) => Dw(e, t, i, null, n(t), (e) => /*#__PURE__*/ F.createElement(r, { node: e })) ?? /*#__PURE__*/ F.createElement(F.Fragment, null));
+function Mw(e, t, n = Nw) {
+ let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, F.forwardRef)((t, i) => Aw(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 Aw(e) {
- return AS({
+function Nw(e) {
+ return NS({
...e,
addIdAndValue: !0
});
}
-var jw = /*#__PURE__*/ (0, F.createContext)(null);
-function Mw(e) {
- let t = (0, F.useContext)(jw), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = Aw({
+var Pw = /*#__PURE__*/ (0, F.createContext)(null);
+function Fw(e) {
+ let t = (0, F.useContext)(Pw), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = Nw({
...e,
idScope: r,
dependencies: n
});
- return (0, F.useContext)(ww) && (i = /*#__PURE__*/ F.createElement(Yae, null, i)), t = (0, F.useMemo)(() => ({
+ return (0, F.useContext)(Dw) && (i = /*#__PURE__*/ F.createElement(Xae, null, i)), t = (0, F.useMemo)(() => ({
dependencies: n,
idScope: r
- }), [r, ...n]), /*#__PURE__*/ F.createElement(jw.Provider, { value: t }, i);
+ }), [r, ...n]), /*#__PURE__*/ F.createElement(Pw.Provider, { value: t }, i);
}
-function Yae({ children: e }) {
- let t = (0, F.useContext)(ww), n = (0, F.useMemo)(() => /*#__PURE__*/ F.createElement(ww.Provider, { value: null }, /*#__PURE__*/ F.createElement(Cw.Provider, { value: !0 }, e)), [e]);
- return EC() ? /*#__PURE__*/ F.createElement(Ew.Provider, { value: t }, n) : /*#__PURE__*/ (0, It.createPortal)(n, t);
+function Xae({ children: e }) {
+ let t = (0, F.useContext)(Dw), n = (0, F.useMemo)(() => /*#__PURE__*/ F.createElement(Dw.Provider, { value: null }, /*#__PURE__*/ F.createElement(Ew.Provider, { value: !0 }, e)), [e]);
+ return kC() ? /*#__PURE__*/ F.createElement(kw.Provider, { value: t }, n) : /*#__PURE__*/ (0, It.createPortal)(n, t);
}
// node_modules/react-aria/dist/private/utils/constants.mjs
-var Xae = "react-aria-clear-focus", Zae = "react-aria-focus";
+var Zae = "react-aria-clear-focus", Qae = "react-aria-focus";
// node_modules/react-aria/dist/private/focus/virtualFocus.mjs
-function Nw(e) {
- let t = $ae(MS(e));
- t !== e && (t && Qae(t, e), e && Pw(e, t));
+function Iw(e) {
+ let t = eoe(FS(e));
+ t !== e && (t && $ae(t, e), e && Lw(e, t));
}
-function Qae(e, t) {
+function $ae(e, t) {
e.dispatchEvent(new FocusEvent("blur", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: t
}));
}
-function Pw(e, t) {
+function Lw(e, t) {
e.dispatchEvent(new FocusEvent("focus", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusin", {
bubbles: !0,
relatedTarget: t
}));
}
-function $ae(e) {
- let t = BS(e), n = t?.getAttribute("aria-activedescendant");
+function eoe(e) {
+ let t = US(e), n = t?.getAttribute("aria-activedescendant");
return n && e.getElementById(n) || t;
}
// node_modules/react-aria/dist/private/utils/getMetaValue.mjs
-function Fw(e, t) {
- let n = NS(t), r = MS(t);
+function Rw(e, t) {
+ let n = IS(t), r = FS(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 Iw = 100, Lw = 600, Rw = {
+var zw = 100, Bw = 600, Vw = {
isOpen: !1,
screenWidth: 0,
screenHeight: 0,
@@ -23312,7 +23337,7 @@ var Iw = 100, Lw = 600, Rw = {
endTimeStamp: 0,
resizeTimeStamp: 0,
resizeTimeout: 0
-}, eoe = /* @__PURE__ */ new Set([
+}, toe = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -23323,7 +23348,7 @@ var Iw = 100, Lw = 600, Rw = {
"submit",
"reset"
]);
-function zw() {
+function Hw() {
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,
@@ -23331,58 +23356,58 @@ function zw() {
angle: window.screen.orientation?.angle ?? 0
};
}
-function toe(e) {
- Rw.resizeTimeStamp <= e.timeStamp + 50 && (Rw.resizeTimeStamp = e.timeStamp + 150, window.clearTimeout(Rw.resizeTimeout), Rw.resizeTimeout = window.setTimeout(Bw, 150));
+function noe(e) {
+ Vw.resizeTimeStamp <= e.timeStamp + 50 && (Vw.resizeTimeStamp = e.timeStamp + 150, window.clearTimeout(Vw.resizeTimeout), Vw.resizeTimeout = window.setTimeout(Uw, 150));
}
-function Bw() {
- let e = Fw("viewport");
- if (fC() && e?.includes("overlays-content")) return;
- let t = performance.now(), n = zw(), r = t - Rw.startTimeStamp, i = Rw.screenHeight - n.height, a = Rw.screenAngle - n.angle;
- Math.abs(a) % 180 && Rw.screenWidth - n.height < Iw && (Rw.screenWidth = n.width, Rw.screenHeight = n.height, Rw.screenAngle = n.angle, i = 0), r > Lw && (window.clearTimeout(Rw.screenTimeout), Rw.screenTimeout = window.setTimeout(() => {
- let e = Uw(document.hasFocus() ? BS() : null), t = zw();
- Math.abs(Rw.screenAngle - t.angle) % 180 || Rw.isOpen && e || (Rw.screenWidth = t.width, Rw.screenHeight = t.height, Rw.screenAngle = t.angle, Rw.isOpen = !1);
- }, Lw)), r <= Lw && i >= Iw && (Rw.endTimeStamp = t), Rw.isOpen = i >= Iw;
+function Uw() {
+ let e = Rw("viewport");
+ if (hC() && e?.includes("overlays-content")) return;
+ let t = performance.now(), n = Hw(), r = t - Vw.startTimeStamp, i = Vw.screenHeight - n.height, a = Vw.screenAngle - n.angle;
+ Math.abs(a) % 180 && Vw.screenWidth - n.height < zw && (Vw.screenWidth = n.width, Vw.screenHeight = n.height, Vw.screenAngle = n.angle, i = 0), r > Bw && (window.clearTimeout(Vw.screenTimeout), Vw.screenTimeout = window.setTimeout(() => {
+ let e = Kw(document.hasFocus() ? US() : null), t = Hw();
+ 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);
+ }, Bw)), r <= Bw && i >= zw && (Vw.endTimeStamp = t), Vw.isOpen = i >= zw;
}
-function noe() {
- let e = zw(), t = Rw.screenAngle - e.angle;
- if (Math.abs(t) % 180 && !Rw.isOpen) {
- let e = Rw.screenWidth;
- Rw.screenWidth = Rw.screenHeight, Rw.screenHeight = e;
+function roe() {
+ let e = Hw(), t = Vw.screenAngle - e.angle;
+ if (Math.abs(t) % 180 && !Vw.isOpen) {
+ let e = Vw.screenWidth;
+ Vw.screenWidth = Vw.screenHeight, Vw.screenHeight = e;
}
- Rw.isOpen || (Rw.screenAngle = e.angle);
+ Vw.isOpen || (Vw.screenAngle = e.angle);
}
-function roe(e) {
- let t = Uw(G(e)), n = performance.now(), r = zw(), i = Rw.screenHeight - r.height;
- i < Iw && t && (Rw.screenWidth = r.width, Rw.screenHeight = r.height, Rw.screenAngle = r.angle, Rw.startTimeStamp = n), t && window.clearTimeout(Rw.screenTimeout), i >= Iw && t && (Rw.endTimeStamp = n);
+function ioe(e) {
+ let t = Kw(K(e)), n = performance.now(), r = Hw(), i = Vw.screenHeight - r.height;
+ i < zw && t && (Vw.screenWidth = r.width, Vw.screenHeight = r.height, Vw.screenAngle = r.angle, Vw.startTimeStamp = n), t && window.clearTimeout(Vw.screenTimeout), i >= zw && t && (Vw.endTimeStamp = n);
}
-function Vw() {
- let e = zw();
- IS(window.visualViewport, "resize", uC() ? Bw : toe), IS(window.screen.orientation, "change", noe), IS(window, "focus", roe, {
+function Ww() {
+ let e = Hw();
+ zS(window.visualViewport, "resize", pC() ? Uw : noe), zS(window.screen.orientation, "change", roe), zS(window, "focus", ioe, {
capture: !0,
passive: !0
- }), Rw.screenWidth = e.width, Rw.screenHeight = e.height, Rw.screenAngle = e.angle;
+ }), Vw.screenWidth = e.width, Vw.screenHeight = e.height, Vw.screenAngle = e.angle;
}
-typeof document < "u" && (document.readyState === "loading" ? IS(document, "DOMContentLoaded", Vw) : Vw());
-function Hw() {
- let e = Fw("viewport");
- return fC() && e?.includes("overlays-content") ? !1 : Rw.isOpen ? !0 : Rw.startTimeStamp ? Rw.endTimeStamp >= Rw.startTimeStamp ? !0 : performance.now() - Rw.startTimeStamp <= Lw ? Rw.endTimeStamp > 0 || window.navigator.maxTouchPoints > 0 : !1 : window.navigator.maxTouchPoints > 0;
+typeof document < "u" && (document.readyState === "loading" ? zS(document, "DOMContentLoaded", Ww) : Ww());
+function Gw() {
+ let e = Rw("viewport");
+ return hC() && e?.includes("overlays-content") ? !1 : Vw.isOpen ? !0 : Vw.startTimeStamp ? Vw.endTimeStamp >= Vw.startTimeStamp ? !0 : performance.now() - Vw.startTimeStamp <= Bw ? Vw.endTimeStamp > 0 || window.navigator.maxTouchPoints > 0 : !1 : window.navigator.maxTouchPoints > 0;
}
-function Uw(e) {
- if (!(e instanceof Element) || !qS(e)) return !1;
- let t = e instanceof HTMLTextAreaElement, n = e instanceof HTMLElement && e.isContentEditable, r = e instanceof HTMLInputElement && !eoe.has(e.type);
+function Kw(e) {
+ if (!(e instanceof Element) || !XS(e)) return !1;
+ let t = e instanceof HTMLTextAreaElement, n = e instanceof HTMLElement && e.isContentEditable, r = e instanceof HTMLInputElement && !toe.has(e.type);
return t || n || r;
}
-function Ww(e) {
- return aC() ? e.metaKey : e.ctrlKey;
+function qw(e) {
+ return cC() ? e.metaKey : e.ctrlKey;
}
-function Gw() {
- return Rw.isOpen;
+function Jw() {
+ return Vw.isOpen;
}
// node_modules/react-aria/dist/private/utils/useEffectEvent.mjs
-var ioe = F.useInsertionEffect ?? XS;
-function Kw(e) {
+var aoe = F.useInsertionEffect ?? $S;
+function Yw(e) {
let t = (0, F.useRef)(null);
- return ioe(() => {
+ return aoe(() => {
t.current = e;
}, [e]), (0, F.useCallback)((...e) => {
let n = t.current;
@@ -23390,10 +23415,10 @@ function Kw(e) {
}, []);
}
// node_modules/react-aria/dist/private/utils/useEvent.mjs
-function qw(e, t, n, r) {
- let i = Kw(n), a = n == null;
+function Xw(e, t, n, r) {
+ let i = Yw(n), a = n == null;
(0, F.useEffect)(() => {
- if (!(a || e.current == null)) return IS(e.current, t, i, r);
+ if (!(a || e.current == null)) return zS(e.current, t, i, r);
}, [
e,
t,
@@ -23402,16 +23427,16 @@ function qw(e, t, n, r) {
]);
}
// node_modules/react-aria/dist/private/utils/useLabels.mjs
-function Jw(e, t) {
+function Zw(e, t) {
let { id: n, "aria-label": r, "aria-labelledby": i } = e;
- return n = iw(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 = sw(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 aoe = /* @__PURE__ */ new Set([
+var ooe = /* @__PURE__ */ new Set([
"Arab",
"Syrc",
"Samr",
@@ -23422,7 +23447,7 @@ var aoe = /* @__PURE__ */ new Set([
"Adlm",
"Rohg",
"Hebr"
-]), ooe = /* @__PURE__ */ new Set([
+]), soe = /* @__PURE__ */ new Set([
"ae",
"ar",
"arc",
@@ -23443,19 +23468,19 @@ var aoe = /* @__PURE__ */ new Set([
"ur",
"yi"
]);
-function soe(e) {
+function coe(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 aoe.has(t.script);
+ if (t.script) return ooe.has(t.script);
}
let t = e.split("-")[0];
- return ooe.has(t);
+ return soe.has(t);
}
// node_modules/react-aria/dist/private/i18n/useDefaultLocale.mjs
-var Yw = Symbol.for("react-aria.i18n.locale");
-function Xw() {
- let e = typeof window < "u" && window[Yw] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
+var Qw = Symbol.for("react-aria.i18n.locale");
+function $w() {
+ let e = typeof window < "u" && window[Qw] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
try {
Intl.DateTimeFormat.supportedLocalesOf([e]);
} catch {
@@ -23463,31 +23488,31 @@ function Xw() {
}
return {
locale: e,
- direction: soe(e) ? "rtl" : "ltr"
+ direction: coe(e) ? "rtl" : "ltr"
};
}
-var Zw = Xw(), Qw = /* @__PURE__ */ new Set();
-function $w() {
- Zw = Xw();
- for (let e of Qw) e(Zw);
+var eT = $w(), tT = /* @__PURE__ */ new Set();
+function nT() {
+ eT = $w();
+ for (let e of tT) e(eT);
}
-function coe() {
- let e = EC(), [t, n] = (0, F.useState)(Zw);
- return (0, F.useEffect)(() => (Qw.size === 0 && window.addEventListener("languagechange", $w), Qw.add(n), () => {
- Qw.delete(n), Qw.size === 0 && window.removeEventListener("languagechange", $w);
+function loe() {
+ let e = kC(), [t, n] = (0, F.useState)(eT);
+ return (0, F.useEffect)(() => (tT.size === 0 && window.addEventListener("languagechange", nT), tT.add(n), () => {
+ tT.delete(n), tT.size === 0 && window.removeEventListener("languagechange", nT);
}), []), e ? {
- locale: typeof window < "u" && window[Yw] || "en-US",
+ locale: typeof window < "u" && window[Qw] || "en-US",
direction: "ltr"
} : t;
}
// node_modules/react-aria/dist/private/i18n/I18nProvider.mjs
-var loe = /*#__PURE__*/ F.createContext(null);
-function eT() {
- let e = coe();
- return (0, F.useContext)(loe) || e;
+var uoe = /*#__PURE__*/ F.createContext(null);
+function rT() {
+ let e = loe();
+ return (0, F.useContext)(uoe) || e;
}
// node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.mjs
-var uoe = Symbol.for("react-aria.i18n.locale"), doe = Symbol.for("react-aria.i18n.strings"), tT = void 0, nT = class e {
+var doe = Symbol.for("react-aria.i18n.locale"), foe = Symbol.for("react-aria.i18n.strings"), iT = void 0, aT = class e {
constructor(e, t = "en-US") {
this.strings = Object.fromEntries(Object.entries(e).filter(([, e]) => e)), this.defaultLocale = t;
}
@@ -23498,38 +23523,38 @@ var uoe = Symbol.for("react-aria.i18n.locale"), doe = Symbol.for("react-aria.i18
}
getStringsForLocale(e) {
let t = this.strings[e];
- return t || (t = foe(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
+ return t || (t = poe(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
}
static getGlobalDictionaryForPackage(t) {
if (typeof window > "u") return null;
- let n = window[uoe];
- if (tT === void 0) {
- let t = window[doe];
+ let n = window[doe];
+ if (iT === void 0) {
+ let t = window[foe];
if (!t) return null;
- tT = {};
- for (let r in t) tT[r] = new e({ [n]: t[r] }, n);
+ iT = {};
+ for (let r in t) iT[r] = new e({ [n]: t[r] }, n);
}
- let r = tT?.[t];
+ let r = iT?.[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 foe(e, t, n = "en-US") {
+function poe(e, t, n = "en-US") {
if (t[e]) return t[e];
- let r = poe(e), i = moe(e);
+ let r = moe(e), i = hoe(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 poe(e) {
+function moe(e) {
return Intl.Locale ? new Intl.Locale(e).language : e.split("-")[0];
}
-function moe(e) {
+function hoe(e) {
if (Intl.Locale) return new Intl.Locale(e).script;
}
// node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.mjs
-var rT = /* @__PURE__ */ new Map(), iT = /* @__PURE__ */ new Map(), hoe = class {
+var oT = /* @__PURE__ */ new Map(), sT = /* @__PURE__ */ new Map(), goe = class {
constructor(e, t) {
this.locale = e, this.strings = t;
}
@@ -23540,36 +23565,36 @@ var rT = /* @__PURE__ */ new Map(), iT = /* @__PURE__ */ new Map(), hoe = class
plural(e, t, n = "cardinal") {
let r = t["=" + e];
if (r) return typeof r == "function" ? r() : r;
- let i = this.locale + ":" + n, a = rT.get(i);
- return a || (a = new Intl.PluralRules(this.locale, { type: n }), rT.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
+ let i = this.locale + ":" + n, a = oT.get(i);
+ return a || (a = new Intl.PluralRules(this.locale, { type: n }), oT.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
}
number(e) {
- let t = iT.get(this.locale);
- return t || (t = new Intl.NumberFormat(this.locale), iT.set(this.locale, t)), t.format(e);
+ let t = sT.get(this.locale);
+ return t || (t = new Intl.NumberFormat(this.locale), sT.set(this.locale, t)), t.format(e);
}
select(e, t) {
let n = e[t] || e.other;
return typeof n == "function" ? n() : n;
}
-}, aT = /* @__PURE__ */ new WeakMap();
-function goe(e) {
- let t = aT.get(e);
- return t || (t = new nT(e), aT.set(e, t)), t;
+}, cT = /* @__PURE__ */ new WeakMap();
+function _oe(e) {
+ let t = cT.get(e);
+ return t || (t = new aT(e), cT.set(e, t)), t;
}
-function _oe(e, t) {
- return t && nT.getGlobalDictionaryForPackage(t) || goe(e);
+function voe(e, t) {
+ return t && aT.getGlobalDictionaryForPackage(t) || _oe(e);
}
-function oT(e, t) {
- let { locale: n } = eT(), r = _oe(e, t);
- return (0, F.useMemo)(() => new hoe(n, r), [n, r]);
+function lT(e, t) {
+ let { locale: n } = rT(), r = voe(e, t);
+ return (0, F.useMemo)(() => new goe(n, r), [n, r]);
}
// node_modules/react-aria/dist/private/utils/filterDOMProps.mjs
-var voe = /* @__PURE__ */ new Set(["id"]), yoe = /* @__PURE__ */ new Set([
+var yoe = /* @__PURE__ */ new Set(["id"]), boe = /* @__PURE__ */ new Set([
"aria-label",
"aria-labelledby",
"aria-describedby",
"aria-details"
-]), boe = /* @__PURE__ */ new Set([
+]), xoe = /* @__PURE__ */ new Set([
"href",
"hrefLang",
"target",
@@ -23577,60 +23602,60 @@ var voe = /* @__PURE__ */ new Set(["id"]), yoe = /* @__PURE__ */ new Set([
"download",
"ping",
"referrerPolicy"
-]), xoe = /* @__PURE__ */ new Set([
+]), Soe = /* @__PURE__ */ new Set([
"dir",
"lang",
"hidden",
"inert",
"translate",
"suppressHydrationWarning"
-]), sT = /* @__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(".")), Soe = /^(data-.*)$/;
-function cT(e, t = {}) {
+]), uT = /* @__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(".")), Coe = /^(data-.*)$/;
+function dT(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) && (voe.has(t) || n && yoe.has(t) || r && boe.has(t) || i && xoe.has(t) || a && (sT.has(t) || t.endsWith("Capture") && sT.has(t.slice(0, -7))) || o?.has(t) || Soe.test(t)) && (s[t] = e[t]);
+ for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (yoe.has(t) || n && boe.has(t) || r && xoe.has(t) || i && Soe.has(t) || a && (uT.has(t) || t.endsWith("Capture") && uT.has(t.slice(0, -7))) || o?.has(t) || Coe.test(t)) && (s[t] = e[t]);
return s;
}
// node_modules/react-aria/dist/private/interactions/textSelection.mjs
-var lT = "default", uT = "", dT = /* @__PURE__ */ new WeakMap();
-function fT(e) {
- if (cC() && uC()) {
- if (lT === "default") {
- let t = MS(e);
- uT = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
- }
- lT = "disabled";
+var fT = "default", pT = "", mT = /* @__PURE__ */ new WeakMap();
+function hT(e) {
+ if (dC() && pC()) {
+ if (fT === "default") {
+ let t = FS(e);
+ pT = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
+ }
+ fT = "disabled";
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- dT.set(e, e.style[t]), e.style[t] = "none";
+ mT.set(e, e.style[t]), e.style[t] = "none";
}
}
-function pT(e) {
- if (cC() && uC()) {
- if (lT !== "disabled") return;
- lT = "restoring", setTimeout(() => {
- QC(() => {
- if (lT === "restoring") {
- let t = MS(e);
- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = uT || ""), uT = "", lT = "default";
+function gT(e) {
+ if (dC() && pC()) {
+ if (fT !== "disabled") return;
+ fT = "restoring", setTimeout(() => {
+ tw(() => {
+ if (fT === "restoring") {
+ let t = FS(e);
+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = pT || ""), pT = "", fT = "default";
}
});
}, 300);
- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && dT.has(e)) {
- let t = dT.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), dT.delete(e);
+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && mT.has(e)) {
+ let t = mT.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
+ e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), mT.delete(e);
}
}
// node_modules/react-aria/dist/private/utils/getNonce.mjs
-var mT = /* @__PURE__ */ new WeakMap();
-function hT(e) {
- let t = MS(e), n = mT.get(t);
- return n ??= Fw("csp-nonce", t), n !== void 0 && mT.set(t, n), n;
+var _T = /* @__PURE__ */ new WeakMap();
+function vT(e) {
+ let t = FS(e), n = _T.get(t);
+ return n ??= Rw("csp-nonce", t), n !== void 0 && _T.set(t, n), n;
}
// node_modules/react-aria/dist/private/interactions/context.mjs
-var gT = F.createContext({ register: () => {} });
-gT.displayName = "PressResponderContext";
+var yT = F.createContext({ register: () => {} });
+yT.displayName = "PressResponderContext";
// node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs
-function _T() {
+function bT() {
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);
@@ -23656,15 +23681,15 @@ function _T() {
};
}
// node_modules/react-aria/dist/private/interactions/usePress.mjs
-function Coe(e) {
- let t = (0, F.useContext)(gT);
+function woe(e) {
+ let t = (0, F.useContext)(yT);
if (t) {
let { register: n, ref: r, ...i } = t;
- e = K(i, e), n();
+ e = q(i, e), n();
}
- return gw(t, e.ref), e;
+ return yw(t, e.ref), e;
}
-var vT = class {
+var xT = class {
#e;
constructor(e, t, n, r) {
this.#e = !0;
@@ -23677,9 +23702,9 @@ var vT = class {
get shouldStopPropagation() {
return this.#e;
}
-}, yT = Symbol("linkClicked"), bT = "react-aria-pressable-style", xT = "data-react-aria-pressable";
-function ST(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 } = Coe(e), [m, h] = (0, F.useState)(!1), g = (0, F.useRef)({
+}, ST = Symbol("linkClicked"), CT = "react-aria-pressable-style", wT = "data-react-aria-pressable";
+function TT(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 } = woe(e), [m, h] = (0, F.useState)(!1), g = (0, F.useRef)({
isPressed: !1,
ignoreEmulatedMouseEvents: !1,
didFirePressStart: !1,
@@ -23689,12 +23714,12 @@ function ST(e) {
isOverTarget: !1,
pointerType: null,
disposables: []
- }), { addGlobalListener: _, removeAllGlobalListeners: v } = _T(), y = (0, F.useCallback)((e, t) => {
+ }), { addGlobalListener: _, removeAllGlobalListeners: v } = bT(), 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 vT("pressstart", t, e);
+ let n = new xT("pressstart", t, e);
r(n), a = n.shouldStopPropagation;
}
return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;
@@ -23708,11 +23733,11 @@ function ST(e) {
o.didFirePressStart = !1, o.isTriggeringEvent = !0;
let c = !0;
if (i) {
- let t = new vT("pressend", r, e);
+ let t = new xT("pressend", r, e);
i(t), c = t.shouldStopPropagation;
}
if (n && n(!1), h(!1), t && a && !s) {
- let n = new vT("press", r, e);
+ let n = new xT("press", r, e);
t(n), c &&= n.shouldStopPropagation;
}
return o.isTriggeringEvent = !1, c;
@@ -23721,19 +23746,19 @@ function ST(e) {
i,
n,
t
- ]), x = Kw(b), S = Kw((0, F.useCallback)((e, t) => {
+ ]), x = Yw(b), S = Yw((0, F.useCallback)((e, t) => {
let n = g.current;
if (s) return !1;
if (a) {
n.isTriggeringEvent = !0;
- let r = new vT("pressup", t, e);
+ let r = new xT("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(TT(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || pT(t.target);
+ t.didFirePressStart && t.pointerType != null && b(OT(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || gT(t.target);
for (let e of t.disposables) e();
t.disposables = [];
}
@@ -23741,7 +23766,7 @@ function ST(e) {
d,
v,
b
- ]), w = Kw(C);
+ ]), w = Yw(C);
(0, F.useEffect)(() => {
s && g.current.isPressed && w({
currentTarget: g.current.target,
@@ -23758,39 +23783,39 @@ function ST(e) {
}, [s, o]), D = (0, F.useCallback)((e, t) => {
if (!s && o) {
let n = new MouseEvent("click", e);
- QS(n, t), o(ZS(n));
+ tC(n, t), o(eC(n));
}
}, [s, o]), O = (0, F.useMemo)(() => {
let e = g.current, t = {
onKeyDown(t) {
- if (wT(t.nativeEvent, t.currentTarget) && zS(t.currentTarget, G(t))) {
- ET(G(t), t.key) && t.preventDefault();
+ if (DT(t.nativeEvent, t.currentTarget) && HS(t.currentTarget, K(t))) {
+ kT(K(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;
- _(MS(t.currentTarget), "keyup", ew((t) => {
- wT(t, i) && !t.repeat && zS(i, G(t)) && e.target && S(TT(e.target, t), "keyboard");
- }, n), !0), r && t.stopPropagation(), t.metaKey && aC() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
+ _(FS(t.currentTarget), "keyup", rw((t) => {
+ DT(t, i) && !t.repeat && HS(i, K(t)) && e.target && S(OT(e.target, t), "keyboard");
+ }, n), !0), r && t.stopPropagation(), t.metaKey && cC() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
},
onClick(t) {
- if ((!t || zS(t.currentTarget, G(t))) && t && t.button === 0 && !e.isTriggeringEvent && !vC.isOpening) {
+ if ((!t || HS(t.currentTarget, K(t))) && t && t.button === 0 && !e.isTriggeringEvent && !xC.isOpening) {
let n = !0;
- if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || pC(t.nativeEvent))) {
+ if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || gC(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(TT(t.currentTarget, t), r), a = x(TT(t.currentTarget, t), r, !0);
+ let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(OT(t.currentTarget, t), r), a = x(OT(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 && wT(t, e.target)) {
- ET(G(t), t.key) && t.preventDefault();
- let n = G(t), r = zS(e.target, n);
- x(TT(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && CT(e.target) && zS(e.target, n) && !t[yT] && (t[yT] = !0, vC(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
+ if (e.isPressed && e.target && DT(t, e.target)) {
+ kT(K(t), t.key) && t.preventDefault();
+ let n = K(t), r = HS(e.target, n);
+ x(OT(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && ET(e.target) && HS(e.target, n) && !t[ST] && (t[ST] = !0, xC(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;
@@ -23799,39 +23824,39 @@ function ST(e) {
};
if (typeof PointerEvent < "u") {
t.onPointerDown = (t) => {
- if (t.button !== 0 || !zS(t.currentTarget, G(t))) return;
- if (mC(t.nativeEvent)) {
+ if (t.button !== 0 || !HS(t.currentTarget, K(t))) return;
+ if (_C(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 || fT(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)), _(MS(t.currentTarget), "pointerup", n, !1), _(MS(t.currentTarget), "pointercancel", r, !1);
+ e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || hT(e.target), i = y(t, e.pointerType);
+ let a = K(t);
+ "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(FS(t.currentTarget), "pointerup", n, !1), _(FS(t.currentTarget), "pointercancel", r, !1);
}
i && t.stopPropagation();
}, t.onMouseDown = (t) => {
- if (zS(t.currentTarget, G(t)) && t.button === 0) {
+ if (HS(t.currentTarget, K(t)) && t.button === 0) {
if (l) {
- let n = tC(t.target);
+ let n = iC(t.target);
n && e.disposables.push(n);
}
t.stopPropagation();
}
}, t.onPointerUp = (t) => {
- zS(t.currentTarget, G(t)) && e.pointerType !== "virtual" && t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
+ HS(t.currentTarget, K(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(TT(e.target, t), e.pointerType));
+ t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(OT(e.target, t), e.pointerType));
}, t.onPointerLeave = (t) => {
- t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(TT(e.target, t), e.pointerType, !1), T(t));
+ t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(OT(e.target, t), e.pointerType, !1), T(t));
};
let n = (t) => {
if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {
- if (zS(e.target, G(t)) && e.pointerType != null) {
+ if (HS(e.target, K(t)) && e.pointerType != null) {
let n = !1, r = setTimeout(() => {
- e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (jS(e.target), e.target.click()));
+ e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (PS(e.target), e.target.click()));
}, 80);
_(t.currentTarget, "click", () => n = !0, !0), e.disposables.push(() => clearTimeout(r));
} else w(t);
@@ -23841,7 +23866,7 @@ function ST(e) {
w(e);
};
t.onDragStart = (e) => {
- zS(e.currentTarget, G(e)) && w(e);
+ HS(e.currentTarget, K(e)) && w(e);
};
}
return t;
@@ -23858,14 +23883,14 @@ function ST(e) {
]);
return (0, F.useEffect)(() => {
if (!f) return;
- let e = MS(f.current);
- if (!e || !e.head || e.getElementById(bT)) return;
+ let e = FS(f.current);
+ if (!e || !e.head || e.getElementById(CT)) return;
let t = e.createElement("style");
- t.id = bT;
- let n = hT(e);
+ t.id = CT;
+ let n = vT(e);
n && (t.nonce = n), t.textContent = `
@layer {
- [${xT}] {
+ [${wT}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
@@ -23873,23 +23898,23 @@ function ST(e) {
}, [f]), (0, F.useEffect)(() => {
let e = g.current;
return () => {
- d || pT(e.target ?? void 0);
+ d || gT(e.target ?? void 0);
for (let t of e.disposables) t();
e.disposables = [];
};
}, [d]), {
isPressed: c || m,
- pressProps: K(p, O, { [xT]: !0 })
+ pressProps: q(p, O, { [wT]: !0 })
};
}
-function CT(e) {
+function ET(e) {
return e.tagName === "A" && e.hasAttribute("href");
}
-function wT(e, t) {
+function DT(e, t) {
let { key: n, code: r } = e, i = t, a = i.getAttribute("role");
- return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof NS(i).HTMLInputElement && !DT(i, n) || i instanceof NS(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && CT(i)) && n !== "Enter");
+ return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof IS(i).HTMLInputElement && !AT(i, n) || i instanceof IS(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && ET(i)) && n !== "Enter");
}
-function TT(e, t) {
+function OT(e, t) {
let n = t.clientX, r = t.clientY;
return {
currentTarget: e,
@@ -23902,13 +23927,13 @@ function TT(e, t) {
key: t.key
};
}
-function woe(e) {
- return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !CT(e);
+function Toe(e) {
+ return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !ET(e);
}
-function ET(e, t) {
- return aC() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !DT(e, t) : woe(e);
+function kT(e, t) {
+ return cC() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !AT(e, t) : Toe(e);
}
-var Toe = /* @__PURE__ */ new Set([
+var Eoe = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -23919,11 +23944,11 @@ var Toe = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function DT(e, t) {
- return e.type === "checkbox" || e.type === "radio" ? t === " " : Toe.has(e.type);
+function AT(e, t) {
+ return e.type === "checkbox" || e.type === "radio" ? t === " " : Eoe.has(e.type);
}
// node_modules/react-aria/dist/private/button/useButton.mjs
-function Eoe(e, t) {
+function Doe(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,
@@ -23945,7 +23970,7 @@ function Eoe(e, t) {
"aria-disabled": !r || n === "input" ? void 0 : r,
rel: n === "a" ? m : void 0
};
- let { pressProps: _, isPressed: v } = ST({
+ let { pressProps: _, isPressed: v } = TT({
onPressStart: a,
onPressEnd: o,
onPressChange: c,
@@ -23955,12 +23980,12 @@ function Eoe(e, t) {
isDisabled: r,
preventFocusOnPress: l,
ref: t
- }), { focusableProps: y } = vw(e, t);
+ }), { focusableProps: y } = xw(e, t);
u && (y.tabIndex = r ? -1 : y.tabIndex);
- let b = K(y, _, cT(e, { labelable: !0 }));
+ let b = q(y, _, dT(e, { labelable: !0 }));
return {
isPressed: v,
- buttonProps: K(g, b, {
+ buttonProps: q(g, b, {
"aria-haspopup": e["aria-haspopup"],
"aria-expanded": e["aria-expanded"],
"aria-controls": e["aria-controls"],
@@ -23971,7 +23996,7 @@ function Eoe(e, t) {
};
}
// node_modules/react-aria/dist/private/utils/shadowdom/ShadowTreeWalker.mjs
-var Doe = class {
+var Ooe = class {
constructor(e, t, n, r) {
this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (e) => {
if (e.nodeType === Node.ELEMENT_NODE) {
@@ -23996,7 +24021,7 @@ var Doe = class {
return this._currentNode;
}
set currentNode(e) {
- if (!zS(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
+ if (!HS(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 });
@@ -24010,7 +24035,7 @@ var Doe = class {
}
firstChild() {
let e = this.currentNode, t = this.nextNode();
- return zS(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
+ return HS(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
}
lastChild() {
let e = this._walkerStack[0].lastChild();
@@ -24074,44 +24099,44 @@ var Doe = class {
return null;
}
};
-function OT(e, t, n, r) {
- return RS() ? new Doe(e, t, n, r) : e.createTreeWalker(t, n, r);
+function jT(e, t, n, r) {
+ return VS() ? new Ooe(e, t, n, r) : e.createTreeWalker(t, n, r);
}
// node_modules/react-aria/dist/private/focus/FocusScope.mjs
-var kT = /*#__PURE__*/ F.createContext(null), AT = "react-aria-focus-scope-restore", jT = 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)(kT) || {}, l = (0, F.useMemo)(() => new GT({ scopeRef: s }), [s]);
- XS(() => {
- let e = c || KT.root;
- if (KT.getTreeNode(e.scopeRef) && jT && !RT(jT, e.scopeRef)) {
- let t = KT.getTreeNode(jT);
+var MT = /*#__PURE__*/ F.createContext(null), NT = "react-aria-focus-scope-restore", PT = null;
+function FT(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)(MT) || {}, l = (0, F.useMemo)(() => new JT({ scopeRef: s }), [s]);
+ $S(() => {
+ let e = c || YT.root;
+ if (YT.getTreeNode(e.scopeRef) && PT && !VT(PT, e.scopeRef)) {
+ let t = YT.getTreeNode(PT);
t && (e = t);
}
- e.addChild(l), KT.addNode(l);
- }, [l, c]), XS(() => {
- let e = KT.getTreeNode(s);
+ e.addChild(l), YT.addNode(l);
+ }, [l, c]), $S(() => {
+ let e = YT.getTreeNode(s);
e && (e.contain = !!n);
- }, [n]), XS(() => {
+ }, [n]), $S(() => {
let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();
- for (; e && e !== o.current;) t.push(e), e.addEventListener(AT, n), e = e.nextSibling;
+ for (; e && e !== o.current;) t.push(e), e.addEventListener(NT, n), e = e.nextSibling;
return s.current = t, () => {
- for (let e of t) e.removeEventListener(AT, n);
+ for (let e of t) e.removeEventListener(NT, n);
};
- }, [t]), Poe(s, r, n), joe(s, n), Foe(s, r, n), Noe(s, i), (0, F.useEffect)(() => {
- let e = BS(MS(s.current ? s.current[0] : void 0)), t = null;
- if (IT(e, s.current)) {
- for (let n of KT.traverse()) n.scopeRef && IT(e, n.scopeRef.current) && (t = n);
- t === KT.getTreeNode(s) && (jT = t.scopeRef);
- }
- }, [s]), XS(() => () => {
- let e = KT.getTreeNode(s)?.parent?.scopeRef ?? null;
- s !== jT && !RT(s, jT) || e && !KT.getTreeNode(e) || (jT = e), KT.removeTreeNode(s);
+ }, [t]), Foe(s, r, n), Moe(s, n), Ioe(s, r, n), Poe(s, i), (0, F.useEffect)(() => {
+ let e = US(FS(s.current ? s.current[0] : void 0)), t = null;
+ if (zT(e, s.current)) {
+ for (let n of YT.traverse()) n.scopeRef && zT(e, n.scopeRef.current) && (t = n);
+ t === YT.getTreeNode(s) && (PT = t.scopeRef);
+ }
+ }, [s]), $S(() => () => {
+ let e = YT.getTreeNode(s)?.parent?.scopeRef ?? null;
+ s !== PT && !VT(s, PT) || e && !YT.getTreeNode(e) || (PT = e), YT.removeTreeNode(s);
}, [s]);
- let u = (0, F.useMemo)(() => Ooe(s), []), d = (0, F.useMemo)(() => ({
+ let u = (0, F.useMemo)(() => koe(s), []), d = (0, F.useMemo)(() => ({
focusManager: u,
parentNode: l
}), [l, u]);
- return /*#__PURE__*/ F.createElement(kT.Provider, { value: d }, /*#__PURE__*/ F.createElement("span", {
+ return /*#__PURE__*/ F.createElement(MT.Provider, { value: d }, /*#__PURE__*/ F.createElement("span", {
"data-focus-scope-start": !0,
hidden: !0,
ref: a
@@ -24121,154 +24146,154 @@ function MT(e) {
ref: o
}));
}
-function Ooe(e) {
+function koe(e) {
return {
focusNext(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || BS(MS(n[0] ?? void 0)), c = n[0].previousElementSibling, l = WT(NT(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || US(FS(n[0] ?? void 0)), c = n[0].previousElementSibling, l = qT(IT(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = IT(s, n) ? s : c;
+ l.currentNode = zT(s, n) ? s : c;
let u = l.nextNode();
- return !u && a && (l.currentNode = c, u = l.nextNode()), u && zT(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.nextNode()), u && HT(u, !0), u;
},
focusPrevious(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || BS(MS(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = WT(NT(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || US(FS(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = qT(IT(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = IT(s, n) ? s : c;
+ l.currentNode = zT(s, n) ? s : c;
let u = l.previousNode();
- return !u && a && (l.currentNode = c, u = l.previousNode()), u && zT(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.previousNode()), u && HT(u, !0), u;
},
focusFirst(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = WT(NT(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = qT(IT(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[0].previousElementSibling;
let o = a.nextNode();
- return o && zT(o, !0), o;
+ return o && HT(o, !0), o;
},
focusLast(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = WT(NT(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = qT(IT(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[n.length - 1].nextElementSibling;
let o = a.previousNode();
- return o && zT(o, !0), o;
+ return o && HT(o, !0), o;
}
};
}
-function NT(e) {
+function IT(e) {
return e[0].parentElement;
}
-function PT(e) {
- let t = KT.getTreeNode(jT);
+function LT(e) {
+ let t = YT.getTreeNode(PT);
for (; t && t.scopeRef !== e;) {
if (t.contain) return !1;
t = t.parent;
}
return !0;
}
-function koe(e) {
- if (!e.form) return Array.from(MS(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
- let t = e.form.elements.namedItem(e.name), n = NS(e);
+function Aoe(e) {
+ if (!e.form) return Array.from(FS(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
+ let t = e.form.elements.namedItem(e.name), n = IS(e);
return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];
}
-function Aoe(e) {
+function joe(e) {
if (e.checked) return !0;
- let t = koe(e);
+ let t = Aoe(e);
return t.length > 0 && !t.some((e) => e.checked);
}
-function joe(e, t) {
+function Moe(e, t) {
let n = (0, F.useRef)(void 0), r = (0, F.useRef)(void 0);
- XS(() => {
+ $S(() => {
let i = e.current;
if (!t) {
r.current &&= (cancelAnimationFrame(r.current), void 0);
return;
}
- let a = MS(i ? i[0] : void 0), o = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !PT(e) || t.isComposing) return;
- let n = BS(a), r = e.current;
- if (!r || !IT(n, r)) return;
- let i = WT(NT(r), { tabbable: !0 }, r);
+ let a = FS(i ? i[0] : void 0), o = (t) => {
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !LT(e) || t.isComposing) return;
+ let n = US(a), r = e.current;
+ if (!r || !zT(n, r)) return;
+ let i = qT(IT(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 && (zT(o, !0), o instanceof NS(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 && (HT(o, !0), o instanceof IS(o).HTMLInputElement && o.select());
}, s = (t) => {
- (!jT || RT(jT, e)) && IT(G(t), e.current) ? (jT = e, n.current = G(t)) : PT(e) && !LT(G(t), e) ? n.current ? zT(n.current) : jT && jT.current && VT(jT.current) : PT(e) && (n.current = G(t));
+ (!PT || VT(PT, e)) && zT(K(t), e.current) ? (PT = e, n.current = K(t)) : LT(e) && !BT(K(t), e) ? n.current ? HT(n.current) : PT && PT.current && WT(PT.current) : LT(e) && (n.current = K(t));
}, c = (t) => {
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
- let r = HC(), i = (r === "virtual" || r === null) && fC() && dC(), o = BS(a);
- if (!i && o && PT(e) && !LT(o, e)) {
- jT = e;
- let r = G(t);
- r && r.isConnected ? (n.current = r, zT(n.current)) : jT.current && VT(jT.current);
+ let r = GC(), i = (r === "virtual" || r === null) && hC() && mC(), o = US(a);
+ if (!i && o && LT(e) && !BT(o, e)) {
+ PT = e;
+ let r = K(t);
+ r && r.isConnected ? (n.current = r, HT(n.current)) : PT.current && WT(PT.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]), XS(() => () => {
+ }, [e, t]), $S(() => () => {
r.current && cancelAnimationFrame(r.current);
}, [r]);
}
-function FT(e) {
- return LT(e);
+function RT(e) {
+ return BT(e);
}
-function IT(e, t) {
- return !e || !t ? !1 : t.some((t) => zS(t, e));
+function zT(e, t) {
+ return !e || !t ? !1 : t.some((t) => HS(t, e));
}
-function LT(e, t = null) {
+function BT(e, t = null) {
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
- for (let { scopeRef: n } of KT.traverse(KT.getTreeNode(t))) if (n && IT(e, n.current)) return !0;
+ for (let { scopeRef: n } of YT.traverse(YT.getTreeNode(t))) if (n && zT(e, n.current)) return !0;
return !1;
}
-function Moe(e) {
- return LT(e, jT);
+function Noe(e) {
+ return BT(e, PT);
}
-function RT(e, t) {
- let n = KT.getTreeNode(t)?.parent;
+function VT(e, t) {
+ let n = YT.getTreeNode(t)?.parent;
for (; n;) {
if (n.scopeRef === e) return !0;
n = n.parent;
}
return !1;
}
-function zT(e, t = !1) {
+function HT(e, t = !1) {
if (e != null && !t) try {
- $C(e);
+ nw(e);
} catch {}
else if (e != null) try {
e.focus();
} catch {}
}
-function BT(e, t = !0) {
- let n = e[0].previousElementSibling, r = NT(e), i = WT(r, { tabbable: t }, e);
+function UT(e, t = !0) {
+ let n = e[0].previousElementSibling, r = IT(e), i = qT(r, { tabbable: t }, e);
i.currentNode = n;
let a = i.nextNode();
- return t && !a && (r = NT(e), i = WT(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
+ return t && !a && (r = IT(e), i = qT(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
}
-function VT(e, t = !0) {
- zT(BT(e, t));
+function WT(e, t = !0) {
+ HT(UT(e, t));
}
-function Noe(e, t) {
+function Poe(e, t) {
let n = F.useRef(t);
(0, F.useEffect)(() => {
- n.current && (jT = e, !IT(BS(MS(e.current ? e.current[0] : void 0)), jT.current) && e.current && VT(e.current)), n.current = !1;
+ n.current && (PT = e, !zT(US(FS(e.current ? e.current[0] : void 0)), PT.current) && e.current && WT(e.current)), n.current = !1;
}, [e]);
}
-function Poe(e, t, n) {
- XS(() => {
+function Foe(e, t, n) {
+ $S(() => {
if (t || n) return;
- let r = e.current, i = MS(r ? r[0] : void 0), a = (t) => {
- let n = G(t);
- IT(n, e.current) ? jT = e : FT(n) || (jT = null);
+ let r = e.current, i = FS(r ? r[0] : void 0), a = (t) => {
+ let n = K(t);
+ zT(n, e.current) ? PT = e : RT(n) || (PT = 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));
@@ -24279,43 +24304,43 @@ function Poe(e, t, n) {
n
]);
}
-function HT(e) {
- let t = KT.getTreeNode(jT);
+function GT(e) {
+ let t = YT.getTreeNode(PT);
for (; t && t.scopeRef !== e;) {
if (t.nodeToRestore) return !1;
t = t.parent;
}
return t?.scopeRef === e;
}
-function Foe(e, t, n) {
- let r = (0, F.useRef)(typeof document < "u" ? BS(MS(e.current ? e.current[0] : void 0)) : null);
- XS(() => {
- let r = e.current, i = MS(r ? r[0] : void 0);
+function Ioe(e, t, n) {
+ let r = (0, F.useRef)(typeof document < "u" ? US(FS(e.current ? e.current[0] : void 0)) : null);
+ $S(() => {
+ let r = e.current, i = FS(r ? r[0] : void 0);
if (!t || n) return;
let a = () => {
- (!jT || RT(jT, e)) && IT(BS(i), e.current) && (jT = e);
+ (!PT || VT(PT, e)) && zT(US(i), e.current) && (PT = 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]), XS(() => {
- let r = MS(e.current ? e.current[0] : void 0);
+ }, [e, n]), $S(() => {
+ let r = FS(e.current ? e.current[0] : void 0);
if (!t) return;
let i = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !PT(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !LT(e) || t.isComposing) return;
let n = r.activeElement;
- if (!LT(n, e) || !HT(e)) return;
- let i = KT.getTreeNode(e);
+ if (!BT(n, e) || !GT(e)) return;
+ let i = YT.getTreeNode(e);
if (!i) return;
- let a = i.nodeToRestore, o = WT(r.body, { tabbable: !0 });
+ let a = i.nodeToRestore, o = qT(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 || !LT(s, e)) && a) {
+ if (a && a.isConnected && a !== r.body || (a = void 0, i.nodeToRestore = void 0), (!s || !BT(s, e)) && a) {
o.currentNode = a;
do
s = t.shiftKey ? o.previousNode() : o.nextNode();
- while (LT(s, e));
- t.preventDefault(), t.stopPropagation(), s ? zT(s, !0) : FT(a) ? zT(a, !0) : n.blur();
+ while (BT(s, e));
+ t.preventDefault(), t.stopPropagation(), s ? HT(s, !0) : RT(a) ? HT(a, !0) : n.blur();
}
};
return n || r.addEventListener("keydown", i, !0), () => {
@@ -24325,31 +24350,31 @@ function Foe(e, t, n) {
e,
t,
n
- ]), XS(() => {
- let n = MS(e.current ? e.current[0] : void 0);
+ ]), $S(() => {
+ let n = FS(e.current ? e.current[0] : void 0);
if (!t) return;
- let i = KT.getTreeNode(e);
+ let i = YT.getTreeNode(e);
if (i) return i.nodeToRestore = r.current ?? void 0, () => {
- let r = KT.getTreeNode(e);
+ let r = YT.getTreeNode(e);
if (!r) return;
- let i = r.nodeToRestore, a = BS(n);
- if (t && i && (a && LT(a, e) || a === n.body && HT(e))) {
- let t = KT.clone();
+ let i = r.nodeToRestore, a = US(n);
+ if (t && i && (a && BT(a, e) || a === n.body && GT(e))) {
+ let t = YT.clone();
requestAnimationFrame(() => {
if (n.activeElement === n.body) {
let n = t.getTreeNode(e);
for (; n;) {
if (n.nodeToRestore && n.nodeToRestore.isConnected) {
- UT(n.nodeToRestore);
+ KT(n.nodeToRestore);
return;
}
n = n.parent;
}
for (n = t.getTreeNode(e); n;) {
- if (n.scopeRef && n.scopeRef.current && KT.getTreeNode(n.scopeRef)) {
- let e = BT(n.scopeRef.current, !0);
+ if (n.scopeRef && n.scopeRef.current && YT.getTreeNode(n.scopeRef)) {
+ let e = UT(n.scopeRef.current, !0);
if (e) {
- UT(e);
+ KT(e);
return;
}
}
@@ -24361,21 +24386,21 @@ function Foe(e, t, n) {
};
}, [e, t]);
}
-function UT(e) {
- e.dispatchEvent(new CustomEvent(AT, {
+function KT(e) {
+ e.dispatchEvent(new CustomEvent(NT, {
bubbles: !0,
cancelable: !0
- })) && zT(e);
+ })) && HT(e);
}
-function WT(e, t, n) {
- let r = t?.tabbable ? JS : qS, i = MS(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = OT(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
- return zS(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Aoe(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || IT(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
+function qT(e, t, n) {
+ let r = t?.tabbable ? ZS : XS, i = FS(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = jT(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
+ return HS(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!joe(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || zT(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
} });
return t?.from && (a.currentNode = t.from), a;
}
-var Ioe = class e {
+var Loe = class e {
constructor() {
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new GT({ 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;
@@ -24386,7 +24411,7 @@ var Ioe = class e {
addTreeNode(e, t, n) {
let r = this.fastMap.get(t ?? null);
if (!r) return;
- let i = new GT({ 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) {
@@ -24397,7 +24422,7 @@ var Ioe = 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 && IT(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 && zT(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);
}
@@ -24409,7 +24434,7 @@ var Ioe = class e {
for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);
return t;
}
-}, GT = class {
+}, JT = class {
constructor(e) {
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
}
@@ -24419,13 +24444,13 @@ var Ioe = class e {
removeChild(e) {
this.children.delete(e), e.parent = void 0;
}
-}, KT = new Ioe(), qT = 7e3, JT = null;
-function YT(e, t = "assertive", n = qT) {
- JT ? JT.announce(e, t, n) : (JT = new Loe(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? JT.announce(e, t, n) : setTimeout(() => {
- JT?.isAttached() && JT?.announce(e, t, n);
+}, YT = new Loe(), XT = 7e3, ZT = null;
+function QT(e, t = "assertive", n = XT) {
+ ZT ? ZT.announce(e, t, n) : (ZT = new Roe(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? ZT.announce(e, t, n) : setTimeout(() => {
+ ZT?.isAttached() && ZT?.announce(e, t, n);
}, 100));
}
-var Loe = class {
+var Roe = 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,
@@ -24450,7 +24475,7 @@ var Loe = class {
destroy() {
this.node &&= (document.body.removeChild(this.node), null);
}
- announce(e, t = "assertive", n = qT) {
+ announce(e, t = "assertive", n = XT) {
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(() => {
@@ -24462,8 +24487,8 @@ var Loe = class {
}
};
// node_modules/react-aria/dist/private/utils/useUpdateEffect.mjs
-function XT(e, t) {
- let n = (0, F.useRef)(!0), r = (0, F.useRef)(null), i = Kw(e);
+function $T(e, t) {
+ let n = (0, F.useRef)(!0), r = (0, F.useRef)(null), i = Yw(e);
(0, F.useEffect)(() => (n.current = !0, () => {
n.current = !1;
}), []), (0, F.useEffect)(() => {
@@ -24472,30 +24497,30 @@ function XT(e, t) {
}, t);
}
// node_modules/react-aria/dist/private/utils/isScrollable.mjs
-function ZT(e, t) {
+function eE(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 QT(e, t) {
+function tE(e, t) {
let n = e;
- for (ZT(n, t) && (n = n.parentElement); n && !ZT(n, t);) n = n.parentElement;
+ for (eE(n, t) && (n = n.parentElement); n && !eE(n, t);) n = n.parentElement;
return n || document.scrollingElement || document.documentElement;
}
// node_modules/react-aria/dist/private/utils/getScrollParents.mjs
-function $T(e, t) {
+function nE(e, t) {
let n = [], r = document.scrollingElement || document.documentElement;
- for (; e && (ZT(e, t) && n.push(e), e !== r);) e = e.parentElement;
+ for (; e && (eE(e, t) && n.push(e), e !== r);) e = e.parentElement;
return n;
}
// node_modules/react-aria/dist/private/utils/scrollIntoView.mjs
-function eE(e, t, n = {}) {
- e !== t && Roe(e, t, t.getBoundingClientRect(), n);
+function rE(e, t, n = {}) {
+ e !== t && zoe(e, t, t.getBoundingClientRect(), n);
}
-function Roe(e, t, n, r = {}) {
+function zoe(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;
- cC() && uC() || u.direction === "ltr" ? I -= te : u.direction === "rtl" && (F += te);
+ dC() && pC() || 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;
@@ -24516,7 +24541,7 @@ function Roe(e, t, n, r = {}) {
top: o
});
}
-function tE(e, t = {}) {
+function iE(e, t = {}) {
let { containingElement: n } = t;
if (e && e.isConnected) {
let t = document.scrollingElement || document.documentElement;
@@ -24529,45 +24554,45 @@ function tE(e, t = {}) {
inline: "center"
}), e.scrollIntoView?.({ block: "nearest" }));
} else {
- let { left: t, top: r } = e.getBoundingClientRect(), i = $T(e, !0);
- for (let t of i) eE(t, e);
+ let { left: t, top: r } = e.getBoundingClientRect(), i = nE(e, !0);
+ for (let t of i) rE(t, e);
let { left: a, top: o } = e.getBoundingClientRect();
if (Math.abs(t - a) > 1 || Math.abs(r - o) > 1) {
- i = n ? $T(n, !0) : [];
- for (let e of i) eE(e, n, {
+ i = n ? nE(n, !0) : [];
+ for (let e of i) rE(e, n, {
block: "center",
inline: "center"
});
- for (let t of $T(e, !0)) eE(t, e);
+ for (let t of nE(e, !0)) rE(t, e);
}
}
}
}
// node_modules/react-aria/dist/private/utils/useDescription.mjs
-var zoe = 0, nE = /* @__PURE__ */ new Map();
-function rE(e) {
+var Boe = 0, aE = /* @__PURE__ */ new Map();
+function oE(e) {
let [t, n] = (0, F.useState)();
- return XS(() => {
+ return $S(() => {
if (!e) return;
- let t = nE.get(e);
+ let t = aE.get(e);
if (t) n(t.element.id);
else {
- let r = `react-aria-description-${zoe++}`;
+ let r = `react-aria-description-${Boe++}`;
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
- }, nE.set(e, t);
+ }, aE.set(e, t);
}
return t.refCount++, () => {
- t && --t.refCount === 0 && (t.element.remove(), nE.delete(e));
+ t && --t.refCount === 0 && (t.element.remove(), aE.delete(e));
};
}, [e]), { "aria-describedby": e ? t : void 0 };
}
// node_modules/react-aria/dist/private/utils/useFormReset.mjs
-function iE(e, t, n) {
- let r = Kw((e) => {
+function sE(e, t, n) {
+ let r = Yw((e) => {
n && !e.defaultPrevented && n(t);
});
(0, F.useEffect)(() => {
@@ -24578,21 +24603,21 @@ function iE(e, t, n) {
}, [e]);
}
// node_modules/react-aria/dist/private/form/useFormValidation.mjs
-function aE(e, t, n) {
+function cE(e, t, n) {
let { validationBehavior: r, focus: i } = e;
- XS(() => {
+ $S(() => {
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(Voe(n.current));
+ n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(Hoe(n.current));
}
});
- let a = (0, F.useRef)(!1), o = Kw(() => {
+ let a = (0, F.useRef)(!1), o = Yw(() => {
a.current || t.resetValidation();
- }), s = Kw((e) => {
+ }), s = Yw((e) => {
t.displayValidation.isInvalid || t.commitValidation();
let r = n?.current?.form;
- !e.defaultPrevented && n && r && Hoe(r) === n.current && (i ? i() : n.current?.focus(), UC("keyboard")), e.preventDefault();
- }), c = Kw(() => {
+ !e.defaultPrevented && n && r && Uoe(r) === n.current && (i ? i() : n.current?.focus(), KC("keyboard")), e.preventDefault();
+ }), c = Yw(() => {
t.commitValidation();
});
(0, F.useEffect)(() => {
@@ -24600,13 +24625,13 @@ function aE(e, t, n) {
if (!e) return;
let t = e.form, r = t?.reset;
return t && (t.reset = () => {
- a.current = !window.event || window.event.type === "message" && G(window.event) instanceof MessagePort, r?.call(t), a.current = !1;
+ a.current = !window.event || window.event.type === "message" && K(window.event) instanceof MessagePort, r?.call(t), a.current = !1;
}), e.addEventListener("invalid", s), e.addEventListener("change", c), t?.addEventListener("reset", o), () => {
e.removeEventListener("invalid", s), e.removeEventListener("change", c), t?.removeEventListener("reset", o), t && (t.reset = r);
};
}, [n, r]);
}
-function Boe(e) {
+function Voe(e) {
let t = e.validity;
return {
badInput: t.badInput,
@@ -24622,14 +24647,14 @@ function Boe(e) {
valid: t.valid
};
}
-function Voe(e) {
+function Hoe(e) {
return {
isInvalid: !e.validity.valid,
- validationDetails: Boe(e),
+ validationDetails: Voe(e),
validationErrors: e.validationMessage ? [e.validationMessage] : []
};
}
-function Hoe(e) {
+function Uoe(e) {
for (let t = 0; t < e.elements.length; t++) {
let n = e.elements[t];
if (n.validity?.valid === !1) return n;
@@ -24637,23 +24662,23 @@ function Hoe(e) {
return null;
}
// node_modules/react-aria/dist/private/utils/useSlot.mjs
-function Uoe(e = !0) {
+function Woe(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 XS(() => {
+ return $S(() => {
r.current || n(!1);
}, []), [i, t];
}
-function oE(e = !0) {
- let t = iw(), [n, r] = Uoe(e);
+function lE(e = !0) {
+ let t = sw(), [n, r] = Woe(e);
return {
id: r ? t : void 0,
ref: n
};
}
// node_modules/react-stately/dist/private/form/useFormValidationState.mjs
-var sE = {
+var uE = {
badInput: !1,
customError: !1,
patternMismatch: !1,
@@ -24665,18 +24690,18 @@ var sE = {
typeMismatch: !1,
valueMissing: !1,
valid: !0
-}, cE = {
- ...sE,
+}, dE = {
+ ...uE,
customError: !0,
valid: !1
-}, lE = {
+}, fE = {
isInvalid: !1,
- validationDetails: sE,
+ validationDetails: uE,
validationErrors: []
-}, Woe = (0, F.createContext)({}), uE = "__reactAriaFormValidationState";
-function dE(e) {
+}, Goe = (0, F.createContext)({}), pE = "__reactAriaFormValidationState";
+function mE(e) {
if (e.__reactAriaFormValidationState) {
- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[uE];
+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[pE];
return {
realtimeValidation: t,
displayValidation: n,
@@ -24685,70 +24710,70 @@ function dE(e) {
commitValidation: a
};
}
- return Goe(e);
+ return Koe(e);
}
-function Goe(e) {
+function Koe(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: cE
- }, l = (0, F.useMemo)(() => !o || i == null ? null : pE(Koe(o, i)), [o, i]);
+ validationDetails: dE
+ }, l = (0, F.useMemo)(() => !o || i == null ? null : gE(qoe(o, i)), [o, i]);
a?.validationDetails.valid && (a = void 0);
- let u = (0, F.useContext)(Woe), d = (0, F.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => fE(u[e])) : fE(u[r]) : [], [u, r]), [f, p] = (0, F.useState)(u), [m, h] = (0, F.useState)(!1);
+ let u = (0, F.useContext)(Goe), d = (0, F.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => hE(u[e])) : hE(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)(() => pE(m ? [] : d), [m, d]), _ = (0, F.useRef)(lE), [v, y] = (0, F.useState)(lE), b = (0, F.useRef)(lE), x = () => {
+ let g = (0, F.useMemo)(() => gE(m ? [] : d), [m, d]), _ = (0, F.useRef)(fE), [v, y] = (0, F.useState)(fE), b = (0, F.useRef)(fE), x = () => {
if (!S) return;
C(!1);
let e = l || a || _.current;
- mE(e, b.current) || (b.current = e, y(e));
+ _E(e, b.current) || (b.current = e, y(e));
}, [S, C] = (0, F.useState)(!1);
return (0, F.useEffect)(x), {
- realtimeValidation: c || g || l || a || lE,
+ realtimeValidation: c || g || l || a || fE,
displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
updateValidation(e) {
- s === "aria" && !mE(v, e) ? y(e) : _.current = e;
+ s === "aria" && !_E(v, e) ? y(e) : _.current = e;
},
resetValidation() {
- let e = lE;
- mE(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
+ let e = fE;
+ _E(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
},
commitValidation() {
s === "native" && C(!0), h(!0);
}
};
}
-function fE(e) {
+function hE(e) {
return e ? Array.isArray(e) ? e : [e] : [];
}
-function Koe(e, t) {
+function qoe(e, t) {
if (typeof e == "function") {
let n = e(t);
- if (n && typeof n != "boolean") return fE(n);
+ if (n && typeof n != "boolean") return hE(n);
}
return [];
}
-function pE(e) {
+function gE(e) {
return e.length ? {
isInvalid: !0,
validationErrors: e,
- validationDetails: cE
+ validationDetails: dE
} : null;
}
-function mE(e, t) {
+function _E(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 hE(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 = dE({
+function vE(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 = mE({
...e,
value: t.isSelected
}), { isInvalid: x, validationErrors: S, validationDetails: C } = b.displayValidation;
- aE(e, b, n);
+ cE(e, b, n);
let w = (e) => {
- e.stopPropagation(), t.setSelected(G(e).checked);
- }, { pressProps: T, isPressed: E } = ST({
+ e.stopPropagation(), t.setSelected(K(e).checked);
+ }, { pressProps: T, isPressed: E } = TT({
onPressStart: m,
onPressEnd: h,
onPressChange: g,
@@ -24756,7 +24781,7 @@ function hE(e, t, n) {
onPressUp: v,
onClick: y,
isDisabled: r
- }), [D, O] = (0, F.useState)(!1), { pressProps: k } = ST({
+ }), [D, O] = (0, F.useState)(!1), { pressProps: k } = TT({
onPressStart(e) {
e.pointerType === "keyboard" || e.pointerType === "virtual" ? e.continuePropagation() : (m?.(e), g?.(!0), O(!0));
},
@@ -24773,16 +24798,16 @@ function hE(e, t, n) {
return;
}
_?.(r), t.toggle(), n.current?.focus();
- let { [uE]: i } = e, { commitValidation: a } = i || b;
+ let { [pE]: i } = e, { commitValidation: a } = i || b;
a();
},
isDisabled: r || i
- }), { focusableProps: A } = vw(e, n), j = K(T, A), M = cT(e, { labelable: !0 });
- iE(n, t.defaultSelected, t.setSelected);
- let ee = oE(), N = oE();
+ }), { focusableProps: A } = xw(e, n), j = q(T, A), M = dT(e, { labelable: !0 });
+ sE(n, t.defaultSelected, t.setSelected);
+ let ee = lE(), N = lE();
return {
- labelProps: K(k, { onClick: (e) => e.preventDefault() }),
- inputProps: K(M, {
+ labelProps: q(k, { onClick: (e) => e.preventDefault() }),
+ inputProps: q(M, {
checked: t.isSelected,
"aria-required": l && u === "aria" || void 0,
required: l && u === "native",
@@ -24815,12 +24840,12 @@ function hE(e, t, n) {
};
}
// node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs
-function gE(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 } = hE(e, t, n), { isIndeterminate: m } = e;
+function yE(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 } = vE(e, t, n), { isIndeterminate: m } = e;
return (0, F.useEffect)(() => {
n.current && (n.current.indeterminate = !!m);
}), {
- labelProps: K(r, (0, F.useMemo)(() => ({ onMouseDown: (e) => e.preventDefault() }), [])),
+ labelProps: q(r, (0, F.useMemo)(() => ({ onMouseDown: (e) => e.preventDefault() }), [])),
inputProps: i,
descriptionProps: a,
errorMessageProps: o,
@@ -24834,17 +24859,17 @@ function gE(e, t, n) {
};
}
// node_modules/react-aria/dist/private/checkbox/utils.mjs
-var qoe = /* @__PURE__ */ new WeakMap();
+var Joe = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/label/useLabel.mjs
-function _E(e) {
+function bE(e) {
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
- t = iw(t);
- let o = iw(), s = {};
+ t = sw(t);
+ let o = sw(), s = {};
n && (r = r ? `${o} ${r}` : o, s = {
id: o,
htmlFor: a === "label" ? t : void 0
});
- let c = Jw({
+ let c = Zw({
id: t,
"aria-label": i,
"aria-labelledby": r
@@ -24855,19 +24880,19 @@ function _E(e) {
};
}
// node_modules/react-aria/dist/private/label/useField.mjs
-function vE(e) {
- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = _E(e), s = aw([
+function xE(e) {
+ let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = bE(e), s = cw([
!!t,
!!n,
r,
i
- ]), c = aw([
+ ]), c = cw([
!!t,
!!n,
r,
i
]);
- return o = K(o, { "aria-describedby": [
+ return o = q(o, { "aria-describedby": [
s,
c,
e["aria-describedby"]
@@ -24879,26 +24904,26 @@ function vE(e) {
};
}
// node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
-function yE(e) {
- let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, F.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = _T(), c = (0, F.useCallback)((e) => {
- zS(e.currentTarget, G(e)) && a.current.isFocusWithin && !zS(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
+function SE(e) {
+ let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, F.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = bT(), c = (0, F.useCallback)((e) => {
+ HS(e.currentTarget, K(e)) && a.current.isFocusWithin && !HS(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
}, [
n,
i,
a,
s
- ]), l = $S(c), u = (0, F.useCallback)((e) => {
- if (!zS(e.currentTarget, G(e))) return;
- let t = G(e), n = MS(t), s = BS(n);
+ ]), l = nC(c), u = (0, F.useCallback)((e) => {
+ if (!HS(e.currentTarget, K(e))) return;
+ let t = K(e), n = FS(t), s = US(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 && !zS(t, r)) {
+ let r = K(e);
+ if (a.current.isFocusWithin && !HS(t, r)) {
let e = new n.defaultView.FocusEvent("blur", { relatedTarget: r });
- QS(e, t);
- let i = ZS(e);
+ tC(e, t);
+ let i = eC(e);
c(i);
}
}, { capture: !0 });
@@ -24919,14 +24944,14 @@ function yE(e) {
} };
}
// node_modules/react-stately/dist/private/utils/useControlledState.mjs
-var Joe = F.useInsertionEffect ?? F.useLayoutEffect;
-function bE(e, t, n) {
+var Yoe = F.useInsertionEffect ?? F.useLayoutEffect;
+function CE(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;
- Joe(() => {
+ Yoe(() => {
a.current = c;
});
let [, l] = (0, F.useReducer)(() => ({}), {});
@@ -24936,8 +24961,8 @@ function bE(e, t, n) {
}, [n])];
}
// node_modules/react-stately/dist/private/toggle/useToggleState.mjs
-function xE(e = {}) {
- let { isReadOnly: t } = e, [n, r] = bE(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, F.useState)(n);
+function wE(e = {}) {
+ let { isReadOnly: t } = e, [n, r] = CE(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, F.useState)(n);
function a(e) {
t || r(e);
}
@@ -24952,26 +24977,26 @@ function xE(e = {}) {
};
}
// node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs
-function Yoe(e, t, n) {
- let r = xE({
+function Xoe(e, t, n) {
+ let r = wE({
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 } = qoe.get(t);
+ }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = Joe.get(t);
c = e.validationBehavior ?? c;
- let { realtimeValidation: l } = dE({
+ let { realtimeValidation: l } = mE({
...e,
value: r.isSelected,
name: void 0,
validationBehavior: "aria"
- }), u = (0, F.useRef)(lE), d = () => {
+ }), u = (0, F.useRef)(fE), 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 = gE({
+ let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = yE({
...e,
isReadOnly: e.isReadOnly || t.isReadOnly,
isDisabled: e.isDisabled || t.isDisabled,
@@ -24979,7 +25004,7 @@ function Yoe(e, t, n) {
form: e.form || a,
isRequired: e.isRequired ?? t.isRequired,
validationBehavior: c,
- [uE]: {
+ [pE]: {
realtimeValidation: f,
displayValidation: p,
resetValidation: t.resetValidation,
@@ -25002,10 +25027,10 @@ function Yoe(e, t, n) {
};
}
// node_modules/react-stately/dist/private/utils/number.mjs
-function SE(e, t = -Infinity, n = Infinity) {
+function TE(e, t = -Infinity, n = Infinity) {
return Math.min(Math.max(e, t), n);
}
-function CE(e, t) {
+function EE(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 {
@@ -25018,23 +25043,23 @@ function CE(e, t) {
}
return n;
}
-function wE(e, t, n, r) {
+function DE(e, t, n, r) {
t = Number(t), n = Number(n);
- let i = (e - (isNaN(t) ? 0 : t)) % r, a = CE(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(CE(n / r, r)) * r) : a < t ? a = t : !isNaN(n) && a > n && (a = t + Math.floor(CE((n - t) / r, r)) * r), a = CE(a, r), a;
+ let i = (e - (isNaN(t) ? 0 : t)) % r, a = EE(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(EE(n / r, r)) * r) : a < t ? a = t : !isNaN(n) && a > n && (a = t + Math.floor(EE((n - t) / r, r)) * r), a = EE(a, r), a;
}
// node_modules/@internationalized/number/dist/private/NumberFormatter.mjs
-var TE = /* @__PURE__ */ new Map(), EE = !1;
+var OE = /* @__PURE__ */ new Map(), kE = !1;
try {
- EE = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
+ kE = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
} catch {}
-var Xoe = class {
+var Zoe = class {
constructor(e, t = {}) {
- this.numberFormatter = Zoe(e, t), this.options = t;
+ this.numberFormatter = Qoe(e, t), this.options = t;
}
format(e) {
let t = "";
- return t = !EE && this.options.signDisplay != null ? Qoe(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), t;
+ return t = !kE && this.options.signDisplay != null ? $oe(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), t;
}
formatToParts(e) {
return this.numberFormatter.formatToParts(e);
@@ -25066,21 +25091,21 @@ var Xoe = class {
}
resolvedOptions() {
let e = this.numberFormatter.resolvedOptions();
- return !EE && this.options.signDisplay != null && (e = {
+ return !kE && this.options.signDisplay != null && (e = {
...e,
signDisplay: this.options.signDisplay
}), e;
}
};
-function Zoe(e, t = {}) {
+function Qoe(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 (TE.has(r)) return TE.get(r);
+ if (OE.has(r)) return OE.get(r);
let i = new Intl.NumberFormat(e, t);
- return TE.set(r, i), i;
+ return OE.set(r, i), i;
}
-function Qoe(e, t, n) {
+function $oe(e, t, n) {
if (t === "auto") return e.format(n);
if (t === "never") return e.format(Math.abs(n));
{
@@ -25093,12 +25118,12 @@ function Qoe(e, t, n) {
}
}
// node_modules/react-aria/dist/private/interactions/useMove.mjs
-function DE(e) {
+function AE(e) {
let { onMoveStart: t, onMove: n, onMoveEnd: r } = e, i = (0, F.useRef)({
didMove: !1,
lastPosition: null,
id: null
- }), { addGlobalListener: a, removeGlobalListener: o } = _T(), s = Kw((0, F.useCallback)((e, r, a, o) => {
+ }), { addGlobalListener: a, removeGlobalListener: o } = bT(), s = Yw((0, F.useCallback)((e, r, a, o) => {
(a !== 0 || o !== 0) && (i.current.didMove || (i.current.didMove = !0, t?.({
type: "movestart",
pointerType: r,
@@ -25120,8 +25145,8 @@ function DE(e) {
t,
n,
i
- ])), c = Kw((0, F.useCallback)((e, t) => {
- pT(), i.current.didMove && r?.({
+ ])), c = Yw((0, F.useCallback)((e, t) => {
+ gT(), i.current.didMove && r?.({
type: "moveend",
pointerType: t,
shiftKey: e.shiftKey,
@@ -25132,7 +25157,7 @@ function DE(e) {
}, [r, i]));
return { moveProps: (0, F.useMemo)(() => {
let e = {}, t = () => {
- fT(), i.current.didMove = !1;
+ hT(), i.current.didMove = !1;
};
{
let n = (e) => {
@@ -25147,7 +25172,7 @@ function DE(e) {
if (e.pointerId === i.current.id) {
let t = e.pointerType || "mouse";
c(e, t), i.current.id = null;
- let a = NS(G(e));
+ let a = IS(K(e));
o(a, "pointermove", n, !1), o(a, "pointerup", r, !1), o(a, "pointercancel", r, !1);
}
};
@@ -25157,7 +25182,7 @@ function DE(e) {
pageX: e.pageX,
pageY: e.pageY
}, i.current.id = e.pointerId;
- let o = NS(G(e));
+ let o = IS(K(e));
a(o, "pointermove", n, !1), a(o, "pointerup", r, !1), a(o, "pointercancel", r, !1);
}
};
@@ -25190,7 +25215,7 @@ function DE(e) {
]) };
}
// node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs
-var OE = {
+var jE = {
border: 0,
clip: "rect(0 0 0 0)",
clipPath: "inset(50%)",
@@ -25202,39 +25227,39 @@ var OE = {
width: "1px",
whiteSpace: "nowrap"
};
-function kE(e = {}) {
- let { style: t, isFocusable: n } = e, [r, i] = (0, F.useState)(!1), { focusWithinProps: a } = yE({
+function ME(e = {}) {
+ let { style: t, isFocusable: n } = e, [r, i] = (0, F.useState)(!1), { focusWithinProps: a } = SE({
isDisabled: !n,
onFocusWithinChange: (e) => i(e)
}), o = (0, F.useMemo)(() => r ? t : t ? {
- ...OE,
+ ...jE,
...t
- } : OE, [r]);
+ } : jE, [r]);
return { visuallyHiddenProps: {
...a,
style: o
} };
}
-function AE(e) {
- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = kE(e);
- return /*#__PURE__*/ F.createElement(n, K(a, o), t);
+function NE(e) {
+ let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = ME(e);
+ return /*#__PURE__*/ F.createElement(n, q(a, o), t);
}
// node_modules/react-aria/dist/private/textfield/useTextField.mjs
-function $oe(e, t) {
- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = bE(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = vw(e, t), d = dE({
+function ese(e, t) {
+ let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = CE(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = xw(e, t), d = mE({
...e,
value: c
- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = vE({
+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = xE({
...e,
isInvalid: f,
errorMessage: e.errorMessage || p
- }), y = cT(e, { labelable: !0 }), b = {
+ }), y = dT(e, { labelable: !0 }), b = {
type: o,
pattern: e.pattern
}, [x] = (0, F.useState)(c);
- return iE(t, e.defaultValue ?? x, l), aE(e, d, t), {
+ return sE(t, e.defaultValue ?? x, l), cE(e, d, t), {
labelProps: h,
- inputProps: K(y, n === "input" ? b : void 0, {
+ inputProps: q(y, n === "input" ? b : void 0, {
disabled: r,
readOnly: a,
required: i && s === "native",
@@ -25246,7 +25271,7 @@ function $oe(e, t) {
"aria-haspopup": e["aria-haspopup"],
"aria-controls": e["aria-controls"],
value: c,
- onChange: (e) => l(G(e).value),
+ onChange: (e) => l(K(e).value),
autoComplete: e.autoComplete,
autoCapitalize: e.autoCapitalize,
maxLength: e.maxLength,
@@ -25278,26 +25303,26 @@ function $oe(e, t) {
};
}
// node_modules/react-aria/dist/private/i18n/useNumberFormatter.mjs
-function ese(e = {}) {
- let { locale: t } = eT();
- return (0, F.useMemo)(() => new Xoe(t, e), [t, e]);
+function tse(e = {}) {
+ let { locale: t } = rT();
+ return (0, F.useMemo)(() => new Zoe(t, e), [t, e]);
}
// node_modules/react-aria/dist/private/slider/utils.mjs
-var jE = /* @__PURE__ */ new WeakMap();
-function ME(e, t) {
- let n = jE.get(e);
+var PE = /* @__PURE__ */ new WeakMap();
+function FE(e, t) {
+ let n = PE.get(e);
if (!n) throw Error("Unknown slider state");
return `${n.id}-${t}`;
}
// node_modules/react-aria/dist/private/slider/useSlider.mjs
-function tse(e, t, n) {
- let { labelProps: r, fieldProps: i } = _E(e), a = e.orientation === "vertical";
- jE.set(t, {
+function nse(e, t, n) {
+ let { labelProps: r, fieldProps: i } = bE(e), a = e.orientation === "vertical";
+ PE.set(t, {
id: r.id ?? i.id,
"aria-describedby": e["aria-describedby"],
"aria-details": e["aria-details"]
});
- let { direction: o } = eT(), { addGlobalListener: s, removeGlobalListener: c } = _T(), l = (0, F.useRef)(null), u = o === "rtl", d = (0, F.useRef)(null), { moveProps: f } = DE({
+ let { direction: o } = rT(), { addGlobalListener: s, removeGlobalListener: c } = bT(), l = (0, F.useRef)(null), u = o === "rtl", d = (0, F.useRef)(null), { moveProps: f } = AE({
onMoveStart() {
d.current = null;
},
@@ -25307,7 +25332,7 @@ function tse(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 = SE(d.current / s, 0, 1);
+ let e = TE(d.current / s, 0, 1);
t.setThumbPercent(l.current, e);
}
},
@@ -25331,14 +25356,14 @@ function tse(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(), UC("keyboard");
+ document.getElementById(FE(t, 0))?.focus(), KC("keyboard");
}), {
labelProps: r,
groupProps: {
role: "group",
...i
},
- trackProps: K({
+ trackProps: q({
onMouseDown(e) {
e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey || m(e, void 0, e.clientX, e.clientY);
},
@@ -25354,26 +25379,26 @@ function tse(e, t, n) {
}
}, f),
outputProps: {
- htmlFor: t.values.map((e, n) => ME(t, n)).join(" "),
+ htmlFor: t.values.map((e, n) => FE(t, n)).join(" "),
"aria-live": "off"
}
};
}
// node_modules/react-aria/dist/private/slider/useSliderThumb.mjs
-function nse(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 } = eT(), { addGlobalListener: m, removeGlobalListener: h } = _T(), g = jE.get(t), { labelProps: _, fieldProps: v } = _E({
+function rse(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 } = rT(), { addGlobalListener: m, removeGlobalListener: h } = bT(), g = PE.get(t), { labelProps: _, fieldProps: v } = bE({
...e,
- id: ME(t, n),
+ id: FE(t, n),
"aria-labelledby": `${g.id} ${e["aria-labelledby"] ?? ""}`.trim()
}), y = t.values[n], b = (0, F.useCallback)(() => {
- s.current && jS(s.current);
+ s.current && PS(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 } = mw({
+ }, { keyboardProps: T } = _w({
shortcuts: {
PageUp: () => w(() => {
t.incrementThumb(n, t.pageSize);
@@ -25389,7 +25414,7 @@ function nse(e, t) {
})
},
allowRepeats: !0
- }), { moveProps: E } = DE({
+ }), { moveProps: E } = AE({
onMoveStart() {
C.current = null, t.setThumbDragging(n, !0);
},
@@ -25400,7 +25425,7 @@ function nse(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, SE(C.current / g, 0, 1));
+ (f || S) && (t = -t), C.current += t, c(n, TE(C.current / g, 0, 1));
}
},
onMoveEnd() {
@@ -25408,7 +25433,7 @@ function nse(e, t) {
}
});
t.setThumbEditable(n, !d);
- let { focusableProps: D } = vw(K(e, {
+ let { focusableProps: D } = xw(q(e, {
onFocus: () => t.setFocusedThumb(n),
onBlur: () => t.setFocusedThumb(void 0)
}), s), O = (0, F.useRef)(void 0), k = (e) => {
@@ -25417,7 +25442,7 @@ function nse(e, t) {
(e.pointerId ?? e.changedTouches?.[0].identifier) === O.current && (b(), t.setThumbDragging(n, !1), h(window, "mouseup", A, !1), h(window, "touchend", A, !1), h(window, "pointerup", A, !1));
}, j = t.getThumbPercent(n);
(f || p === "rtl") && (j = 1 - j);
- let M = d ? {} : K(T, E, {
+ let M = d ? {} : q(T, E, {
onMouseDown: (e) => {
e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey || k();
},
@@ -25428,10 +25453,10 @@ function nse(e, t) {
k(e.changedTouches[0].identifier);
}
});
- return iE(s, t.defaultValues[n], (e) => {
+ return sE(s, t.defaultValues[n], (e) => {
t.setThumbValue(n, e);
}), {
- inputProps: K(D, v, {
+ inputProps: q(D, v, {
type: "range",
tabIndex: d ? void 0 : 0,
min: t.getThumbMinValue(n),
@@ -25449,7 +25474,7 @@ function nse(e, t) {
"aria-describedby": [g["aria-describedby"], e["aria-describedby"]].filter(Boolean).join(" "),
"aria-details": [g["aria-details"], e["aria-details"]].filter(Boolean).join(" "),
onChange: (e) => {
- t.setThumbValue(n, parseFloat(G(e).value));
+ t.setThumbValue(n, parseFloat(K(e).value));
}
}),
thumbProps: {
@@ -25468,42 +25493,42 @@ function nse(e, t) {
};
}
// node_modules/react-aria/dist/private/overlays/ariaHideOutside.mjs
-var rse = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
-function NE(e) {
+var ise = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
+function IE(e) {
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
}
-var PE = /* @__PURE__ */ new WeakMap(), FE = [];
-function IE(e, t) {
- let n = NS(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && rse, 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 LE = /* @__PURE__ */ new WeakMap(), RE = [];
+function zE(e, t) {
+ let n = IS(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && ise, 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 (RS()) {
+ if (VS()) {
let t = i.getRootNode();
for (let n of e) {
let e = n.getRootNode();
- for (; FS(e) && e !== t;) u.add(e), e = e.host.getRootNode();
+ for (; RS(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 (zS(e, t)) return NodeFilter.FILTER_SKIP;
+ for (let t of o) if (HS(e, t)) return NodeFilter.FILTER_SKIP;
return NodeFilter.FILTER_ACCEPT;
- }, n = OT(MS(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
+ }, n = jT(FS(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 = PE.get(e) ?? 0;
- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), PE.set(e, t + 1));
+ let t = LE.get(e) ?? 0;
+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), LE.set(e, t + 1));
};
- FE.length && FE[FE.length - 1].disconnect(), d(i);
+ RE.length && RE[RE.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) => zS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && NE(e) ? o.add(e) : e instanceof Element && d(e);
- if (RS()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => HS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && IE(e) ? o.add(e) : e instanceof Element && d(e);
+ if (VS()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -25516,11 +25541,11 @@ function IE(e, t) {
subtree: !0
});
let m = /* @__PURE__ */ new Set();
- if (RS()) for (let e of u) {
+ if (VS()) 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) => zS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && NE(e) ? o.add(e) : e instanceof Element && d(e);
- if (RS()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => HS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && IE(e) ? o.add(e) : e instanceof Element && d(e);
+ if (VS()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -25546,56 +25571,56 @@ function IE(e, t) {
p.disconnect();
}
};
- return FE.push(h), () => {
- if (p.disconnect(), RS()) for (let e of m) e.disconnect();
+ return RE.push(h), () => {
+ if (p.disconnect(), VS()) for (let e of m) e.disconnect();
for (let e of s) {
- let t = PE.get(e);
- t != null && (t === 1 ? (l(e, !1), PE.delete(e)) : PE.set(e, t - 1));
+ let t = LE.get(e);
+ t != null && (t === 1 ? (l(e, !1), LE.delete(e)) : LE.set(e, t - 1));
}
- h === FE[FE.length - 1] ? (FE.pop(), FE.length && FE[FE.length - 1].observe()) : FE.splice(FE.indexOf(h), 1);
+ h === RE[RE.length - 1] ? (RE.pop(), RE.length && RE[RE.length - 1].observe()) : RE.splice(RE.indexOf(h), 1);
};
}
-function LE(e) {
- let t = FE[FE.length - 1];
+function BE(e) {
+ let t = RE[RE.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 RE = /* @__PURE__ */ new WeakMap();
-function ise(e) {
+var VE = /* @__PURE__ */ new WeakMap();
+function ase(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function ase(e, t) {
- let n = RE.get(e);
+function ose(e, t) {
+ let n = VE.get(e);
if (!n) throw Error("Unknown list");
- return `${n.id}-option-${ise(t)}`;
+ return `${n.id}-option-${ase(t)}`;
}
// node_modules/react-aria/dist/private/selection/utils.mjs
-function zE(e) {
- return lC() ? e.altKey : e.ctrlKey;
+function HE(e) {
+ return fC() ? e.altKey : e.ctrlKey;
}
-function BE(e, t) {
+function UE(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 VE = /* @__PURE__ */ new WeakMap();
-function ose(e) {
- let t = iw();
- return VE.set(e, t), t;
-}
+var WE = /* @__PURE__ */ new WeakMap();
function sse(e) {
- return VE.get(e);
+ let t = sw();
+ return WE.set(e, t), t;
+}
+function cse(e) {
+ return WE.get(e);
}
// node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs
-var HE = class {
+var GE = class {
constructor(e) {
this.ref = e;
}
getItemRect(e) {
let t = this.ref.current;
if (!t) return null;
- let n = e == null ? null : BE(this.ref, e);
+ let n = e == null ? null : UE(this.ref, e);
if (!n) return null;
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
return {
@@ -25621,12 +25646,12 @@ var HE = class {
height: e?.clientHeight ?? 0
};
}
-}, UE = 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 HE(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 HE(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 GE(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 GE(this.ref);
this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
}
isDisabled(e) {
@@ -25666,14 +25691,14 @@ var HE = class {
return e.x === t.x || e.y !== t.y;
}
isReversed(e) {
- let t = this.getNextKey(e), n = BE(this.ref, e);
+ let t = this.getNextKey(e), n = UE(this.ref, e);
if (t != null) {
- let e = BE(this.ref, t);
+ let e = UE(this.ref, t);
return !n || !e ? !1 : n.getBoundingClientRect().top > e.getBoundingClientRect().top;
}
let r = this.getPreviousKey(e);
if (r != null) {
- let e = BE(this.ref, r);
+ let e = UE(this.ref, r);
return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;
}
return !1;
@@ -25707,7 +25732,7 @@ var HE = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !ZT(t)) return this.getFirstKey();
+ if (t && !eE(t)) return this.getFirstKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.max(0, n.x + n.width - this.layoutDelegate.getVisibleRect().width);
@@ -25722,7 +25747,7 @@ var HE = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !ZT(t)) return this.getLastKey();
+ if (t && !eE(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);
@@ -25745,149 +25770,149 @@ var HE = class {
}
return null;
}
-}, WE = {};
-WE = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
+}, qE = {};
+qE = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
// node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs
-var GE = {};
-GE = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
+var JE = {};
+JE = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
// node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
-var KE = {};
-KE = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
+var YE = {};
+YE = { 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 qE = {};
-qE = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
+var XE = {};
+XE = { 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 JE = {};
-JE = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
+var ZE = {};
+ZE = { 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 YE = {};
-YE = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
+var QE = {};
+QE = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
// node_modules/react-aria/dist/private/intl/menu/en-US.mjs
-var XE = {};
-XE = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
+var $E = {};
+$E = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
// node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
-var ZE = {};
-ZE = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
+var eD = {};
+eD = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
// node_modules/react-aria/dist/private/intl/menu/et-EE.mjs
-var QE = {};
-QE = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
+var tD = {};
+tD = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
// node_modules/react-aria/dist/private/intl/menu/fi-FI.mjs
-var $E = {};
-$E = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
+var nD = {};
+nD = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
// node_modules/react-aria/dist/private/intl/menu/fr-FR.mjs
-var eD = {};
-eD = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
+var rD = {};
+rD = { 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 tD = {};
-tD = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
+var iD = {};
+iD = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
// node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
-var nD = {};
-nD = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
+var aD = {};
+aD = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
// node_modules/react-aria/dist/private/intl/menu/hu-HU.mjs
-var rD = {};
-rD = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
+var oD = {};
+oD = { 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 iD = {};
-iD = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
+var sD = {};
+sD = { 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 aD = {};
-aD = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
+var cD = {};
+cD = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
// node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
-var oD = {};
-oD = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
+var lD = {};
+lD = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
// node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
-var sD = {};
-sD = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
+var uD = {};
+uD = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
// node_modules/react-aria/dist/private/intl/menu/lv-LV.mjs
-var cD = {};
-cD = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
+var dD = {};
+dD = { 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 lD = {};
-lD = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
+var fD = {};
+fD = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
// node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
-var uD = {};
-uD = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
+var pD = {};
+pD = { 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 dD = {};
-dD = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
+var mD = {};
+mD = { 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 fD = {};
-fD = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
+var hD = {};
+hD = { 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 pD = {};
-pD = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
+var gD = {};
+gD = { 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 mD = {};
-mD = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
+var _D = {};
+_D = { 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 hD = {};
-hD = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
+var vD = {};
+vD = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
// node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
-var gD = {};
-gD = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
+var yD = {};
+yD = { 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 _D = {};
-_D = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
+var bD = {};
+bD = { 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 vD = {};
-vD = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
+var xD = {};
+xD = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
// node_modules/react-aria/dist/private/intl/menu/sv-SE.mjs
-var yD = {};
-yD = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
+var SD = {};
+SD = { 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 bD = {};
-bD = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
+var CD = {};
+CD = { 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 xD = {};
-xD = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
+var wD = {};
+wD = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
// node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
-var SD = {};
-SD = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
+var TD = {};
+TD = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
// node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
-var CD = {};
-CD = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
+var ED = {};
+ED = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
// node_modules/react-aria/dist/private/menu/intlStrings.mjs
-var wD = {};
-wD = {
- "ar-AE": WE,
- "bg-BG": GE,
- "cs-CZ": KE,
- "da-DK": qE,
- "de-DE": JE,
- "el-GR": YE,
- "en-US": XE,
- "es-ES": ZE,
- "et-EE": QE,
- "fi-FI": $E,
- "fr-FR": eD,
- "he-IL": tD,
- "hr-HR": nD,
- "hu-HU": rD,
- "it-IT": iD,
- "ja-JP": aD,
- "ko-KR": oD,
- "lt-LT": sD,
- "lv-LV": cD,
- "nb-NO": lD,
- "nl-NL": uD,
- "pl-PL": dD,
- "pt-BR": fD,
- "pt-PT": pD,
- "ro-RO": mD,
- "ru-RU": hD,
- "sk-SK": gD,
- "sl-SI": _D,
- "sr-SP": vD,
- "sv-SE": yD,
- "tr-TR": bD,
- "uk-UA": xD,
- "zh-CN": SD,
- "zh-TW": CD
+var DD = {};
+DD = {
+ "ar-AE": qE,
+ "bg-BG": JE,
+ "cs-CZ": YE,
+ "da-DK": XE,
+ "de-DE": ZE,
+ "el-GR": QE,
+ "en-US": $E,
+ "es-ES": eD,
+ "et-EE": tD,
+ "fi-FI": nD,
+ "fr-FR": rD,
+ "he-IL": iD,
+ "hr-HR": aD,
+ "hu-HU": oD,
+ "it-IT": sD,
+ "ja-JP": cD,
+ "ko-KR": lD,
+ "lt-LT": uD,
+ "lv-LV": dD,
+ "nb-NO": fD,
+ "nl-NL": pD,
+ "pl-PL": mD,
+ "pt-BR": hD,
+ "pt-PT": gD,
+ "ro-RO": _D,
+ "ru-RU": vD,
+ "sk-SK": yD,
+ "sl-SI": bD,
+ "sr-SP": xD,
+ "sv-SE": SD,
+ "tr-TR": CD,
+ "uk-UA": wD,
+ "zh-CN": TD,
+ "zh-TW": ED
};
// node_modules/react-aria/dist/private/interactions/useLongPress.mjs
-var cse = 500;
-function TD(e) {
- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = cse, accessibilityDescription: s } = e, c = (0, F.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = _T(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = ST({
+var lse = 500;
+function OD(e) {
+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = lse, accessibilityDescription: s } = e, c = (0, F.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = bT(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = TT({
isDisabled: t,
onPressStart(e) {
if (e.continuePropagation(), d(e)) {
@@ -25895,12 +25920,12 @@ function TD(e) {
...e,
type: "longpressstart"
}), c.current = setTimeout(() => {
- e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), MS(e.target).activeElement !== e.target && jS(e.target), a && a({
+ e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), FS(e.target).activeElement !== e.target && PS(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 = NS(e.target);
+ let t = IS(e.target);
l(t, "pointerup", () => {
setTimeout(() => {
u();
@@ -25915,11 +25940,11 @@ function TD(e) {
});
}
});
- return { longPressProps: K(f, rE(a && !t ? s : void 0)) };
+ return { longPressProps: q(f, oE(a && !t ? s : void 0)) };
}
// node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
-function lse(e) {
- let { onContextMenu: t } = e, n = (0, F.useRef)(!1), { longPressProps: r } = TD({
+function use(e) {
+ let { onContextMenu: t } = e, n = (0, F.useRef)(!1), { longPressProps: r } = OD({
onLongPressStart() {
n.current = !1;
},
@@ -25931,7 +25956,7 @@ function lse(e) {
});
}
});
- return t ? { contextMenuProps: K(cC() ? r : {}, {
+ return t ? { contextMenuProps: q(dC() ? r : {}, {
onContextMenu(e) {
e.stopPropagation(), e.preventDefault(), n.current = !0;
let r = e.currentTarget.getBoundingClientRect();
@@ -25942,7 +25967,7 @@ function lse(e) {
});
},
onKeyDown(e) {
- if (aC() && e.ctrlKey && e.key === "Enter") {
+ if (cC() && e.ctrlKey && e.key === "Enter") {
n.current = !1;
let r = e.currentTarget;
e.stopPropagation(), setTimeout(() => {
@@ -25961,13 +25986,13 @@ function lse(e) {
}) } : { contextMenuProps: {} };
}
// node_modules/react-aria/dist/private/overlays/useCloseOnScroll.mjs
-var ED = /* @__PURE__ */ new WeakMap();
-function use(e) {
+var kD = /* @__PURE__ */ new WeakMap();
+function dse(e) {
let { triggerRef: t, isOpen: n, onClose: r } = e;
- (0, F.useEffect)(() => !n || r === null ? void 0 : IS(VS(t.current), "scroll", (e) => {
- let n = G(e);
- if (!t.current || n instanceof Node && !zS(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
- let i = r || ED.get(t.current);
+ (0, F.useEffect)(() => !n || r === null ? void 0 : zS(WS(t.current), "scroll", (e) => {
+ let n = K(e);
+ if (!t.current || n instanceof Node && !HS(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
+ let i = r || kD.get(t.current);
i && i();
}, !0), [
n,
@@ -25976,14 +26001,14 @@ function use(e) {
]);
}
// node_modules/react-aria/dist/private/overlays/useOverlayTrigger.mjs
-function dse(e, t, n) {
+function fse(e, t, n) {
let { type: r } = e, { isOpen: i } = t;
(0, F.useEffect)(() => {
- n && n.current && ED.set(n.current, t.close);
+ n && n.current && kD.set(n.current, t.close);
});
let a;
r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");
- let o = iw();
+ let o = sw();
return {
triggerProps: {
"aria-haspopup": a,
@@ -25995,14 +26020,14 @@ function dse(e, t, n) {
};
}
// node_modules/react-aria/dist/private/menu/useMenuTrigger.mjs
-function fse(e) {
+function pse(e) {
return e && e.__esModule ? e.default : e;
}
-function DD(e, t, n) {
- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = iw(), { triggerProps: s, overlayProps: c } = dse({ type: r }, t, n), l = (e, n, r = "first") => {
+function AD(e, t, n) {
+ let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = sw(), { triggerProps: s, overlayProps: c } = fse({ type: r }, t, n), l = (e, n, r = "first") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
- }, { keyboardProps: u } = mw({
+ }, { keyboardProps: u } = _w({
isDisabled: i,
shortcuts: {
Enter: (e) => l(a !== "longPress", e, "first"),
@@ -26014,7 +26039,7 @@ function DD(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = oT(fse(wD), "@react-aria/menu"), { longPressProps: f } = TD({
+ }), d = lT(pse(DD), "@react-aria/menu"), { longPressProps: f } = OD({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -26026,14 +26051,14 @@ function DD(e, t, n) {
}), p = {
preventFocusOnPress: !0,
onPressStart(e) {
- e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (jS(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
+ e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (PS(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
},
onPress(e) {
- e.pointerType === "touch" && !i && (jS(e.target), t.toggle());
+ e.pointerType === "touch" && !i && (PS(e.target), t.toggle());
}
};
delete s.onPress;
- let { contextMenuProps: m } = lse({ onContextMenu(e) {
+ let { contextMenuProps: m } = use({ onContextMenu(e) {
let n = e.target.getBoundingClientRect();
t.setPoint({
x: n.x + e.x,
@@ -26043,7 +26068,7 @@ function DD(e, t, n) {
(0, F.useEffect)(() => {
if (t.isOpen && a === "contextMenu") {
let e = (e) => {
- (e.button === 2 || e.button === 0 && e.ctrlKey === !0) && G(e) === document.body && t.close();
+ (e.button === 2 || e.button === 0 && e.ctrlKey === !0) && K(e) === document.body && t.close();
};
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
}
@@ -26077,8 +26102,8 @@ function DD(e, t, n) {
};
}
// node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
-var OD = 1e3;
-function kD(e) {
+var jD = 1e3;
+function MD(e) {
let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, F.useRef)({
search: "",
timeout: void 0
@@ -26097,12 +26122,12 @@ function kD(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, OD);
+ }, jD);
}
} : void 0,
onKeyDown: t.getKeyForSearch ? (e) => {
- let a = pse(e.key);
- if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !zS(e.currentTarget, G(e)) || i.current.search.length === 0 && a === " ")) {
+ let a = mse(e.key);
+ if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !HS(e.currentTarget, K(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();
@@ -26113,32 +26138,32 @@ function kD(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, OD);
+ }, jD);
}
} : void 0
} };
}
-function pse(e) {
+function mse(e) {
return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
}
// node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
-function AD(e, t) {
+function ND(e, t) {
let n = (0, F.useRef)(!0), r = (0, F.useRef)(null);
- XS(() => (n.current = !0, () => {
+ $S(() => (n.current = !0, () => {
n.current = !1;
- }), []), XS(() => {
+ }), []), $S(() => {
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 jD(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 } = eT(), _ = gC(), v = (e, n, i) => {
+function PD(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 } = rT(), _ = yC(), v = (e, n, i) => {
if (n != null) {
- if (t.isLink(n) && m === "selection" && l && !zE(e)) {
+ if (t.isLink(n) && m === "selection" && l && !HE(e)) {
(0, It.flushSync)(() => {
t.setFocusedKey(n, i);
});
- let a = BE(r, n), o = t.getItemProps(n);
+ let a = UE(r, n), o = t.getItemProps(n);
if (a) {
_.open(a, e, o.href, o.routerOptions);
return;
@@ -26150,7 +26175,7 @@ function jD(e) {
t.extendSelection(n);
return;
}
- if (l && !zE(e)) {
+ if (l && !HE(e)) {
t.replaceSelection(n);
return;
}
@@ -26177,9 +26202,9 @@ function jD(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, qw(e));
if (t.setFocusedKey(r), r != null) {
- if (Ww(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (qw(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -26211,9 +26236,9 @@ function jD(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, qw(e));
if (t.setFocusedKey(r), r != null) {
- if (Ww(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (qw(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -26244,12 +26269,12 @@ function jD(e) {
else return !1;
}, k = () => {
if (!f && r.current) {
- let e = WT(r.current, { tabbable: !0 }), t, n;
+ let e = qT(r.current, { tabbable: !0 }), t, n;
do
n = e.lastChild(), n && (t = n);
while (n);
- let i = BS();
- t && (!HS(t) || i && !JS(i)) && jS(t);
+ let i = US();
+ t && (!GS(t) || i && !ZS(i)) && PS(t);
}
return {
shouldContinuePropagation: !0,
@@ -26259,11 +26284,11 @@ function jD(e) {
shouldContinuePropagation: !0,
shouldPreventDefault: !1
}), j = (e, t) => ({
- [aC() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
+ [cC() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
[e + "+Shift"]: t,
- [aC() ? e + "+Alt" : e + "+Control"]: t,
+ [cC() ? e + "+Alt" : e + "+Control"]: t,
[e]: t
- }), { keyboardProps: M } = mw({
+ }), { keyboardProps: M } = _w({
shortcuts: {
...j("ArrowDown", y),
...j("ArrowUp", b),
@@ -26273,7 +26298,7 @@ function jD(e) {
...j("PageUp", E)
},
allowRepeats: !0
- }), { keyboardProps: ee } = mw({ shortcuts: {
+ }), { keyboardProps: ee } = _w({ shortcuts: {
...j("Home", x),
...j("End", w),
"Mod+A": D,
@@ -26284,7 +26309,7 @@ function jD(e) {
top: 0,
left: 0
});
- qw(p, "scroll", () => {
+ Xw(p, "scroll", () => {
N.current = {
top: p.current?.scrollTop ?? 0,
left: p.current?.scrollLeft ?? 0
@@ -26292,11 +26317,11 @@ function jD(e) {
});
let te = (e) => {
if (t.isFocused) {
- zS(e.currentTarget, G(e)) || t.setFocused(!1);
+ HS(e.currentTarget, K(e)) || t.setFocused(!1);
return;
}
- if (!zS(e.currentTarget, G(e))) return;
- let i = HC();
+ if (!HS(e.currentTarget, K(e))) return;
+ let i = GC();
t.setFocused(!0);
let a = (e) => {
e != null && (t.setFocusedKey(e), l && !t.isSelected(e) && t.replaceSelection(e));
@@ -26307,27 +26332,27 @@ function jD(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 = BE(r, t.focusedKey);
- e instanceof HTMLElement && (!HS(e) && !d && jS(e), (i === "keyboard" || h && i === "virtual") && tE(e, { containingElement: r.current }));
+ let e = UE(r, t.focusedKey);
+ e instanceof HTMLElement && (!GS(e) && !d && PS(e), (i === "keyboard" || h && i === "virtual") && iE(e, { containingElement: r.current }));
}
}, P = (e) => {
- zS(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
+ HS(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
}, ne = (0, F.useRef)(!1);
- qw(r, Zae, d ? (e) => {
+ Xw(r, Qae, d ? (e) => {
let { detail: n } = e;
e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (ne.current = !0);
} : void 0);
let re = n.getFirstKey?.() ?? null;
- AD(() => {
+ ND(() => {
if (ne.current) {
if (re == null) {
- let e = BS();
- Nw(r.current), Pw(e, null), t.collection.size > 0 && (ne.current = !1);
+ let e = US();
+ Iw(r.current), Lw(e, null), t.collection.size > 0 && (ne.current = !1);
} else t.setFocusedKey(re), ne.current = !1;
}
- }, [re, t.collection.size]), AD(() => {
+ }, [re, t.collection.size]), ND(() => {
t.collection.size > 0 && (ne.current = !1);
- }, [t.focusedKey]), qw(r, Xae, d ? (e) => {
+ }, [t.focusedKey]), Xw(r, Zae, 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);
@@ -26342,52 +26367,52 @@ function jD(e) {
break;
}
}
- t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && $C(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 && nw(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 = HC(), n = BE(r, t.focusedKey);
+ let e = GC(), n = UE(r, t.focusedKey);
if (!(n instanceof HTMLElement)) return;
(e === "keyboard" || ie.current) && (oe.current && cancelAnimationFrame(oe.current), oe.current = requestAnimationFrame(() => {
- p.current && (eE(p.current, n), e !== "virtual" && tE(n, { containingElement: r.current }));
+ p.current && (rE(p.current, n), e !== "virtual" && iE(n, { containingElement: r.current }));
}));
}
- !d && t.isFocused && t.focusedKey == null && ae.current != null && r.current && $C(r.current), ae.current = t.focusedKey, ie.current = !1;
+ !d && t.isFocused && t.focusedKey == null && ae.current != null && r.current && nw(r.current), ae.current = t.focusedKey, ie.current = !1;
}), (0, F.useEffect)(() => () => {
oe.current && cancelAnimationFrame(oe.current);
- }, []), qw(r, "react-aria-focus-scope-restore", (e) => {
+ }, []), Xw(r, "react-aria-focus-scope-restore", (e) => {
e.preventDefault(), t.setFocused(!0);
});
let se = {
- ...K(ee, M),
+ ...q(ee, M),
onFocus: te,
onBlur: P,
onMouseDown(e) {
- p.current === G(e) && e.preventDefault();
+ p.current === K(e) && e.preventDefault();
}
- }, { typeSelectProps: ce } = kD({
+ }, { typeSelectProps: ce } = MD({
keyboardDelegate: n,
selectionManager: t
});
- u || (se = K(ce, se));
+ u || (se = q(ce, se));
let le;
d || (le = t.focusedKey == null ? 0 : -1);
- let ue = ose(t.collection);
- return { collectionProps: K(se, {
+ let ue = sse(t.collection);
+ return { collectionProps: q(se, {
tabIndex: le,
"data-collection": ue
}) };
}
// node_modules/react-stately/dist/private/collections/getChildNodes.mjs
-function MD(e, t) {
+function FD(e, t) {
return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;
}
-function ND(e) {
- return PD(e, 0);
+function ID(e) {
+ return LD(e, 0);
}
-function PD(e, t) {
+function LD(e, t) {
if (t < 0) return;
let n = 0;
for (let r of e) {
@@ -26395,106 +26420,106 @@ function PD(e, t) {
n++;
}
}
-function FD(e) {
+function RD(e) {
let t;
for (let n of e) t = n;
return t;
}
-function ID(e, t, n) {
+function zD(e, t, n) {
if (t.parentKey === n.parentKey) return t.index - n.index;
- let r = [...LD(e, t), t], i = [...LD(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
+ let r = [...BD(e, t), t], i = [...BD(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 LD(e, t) {
+function BD(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 RD = /* @__PURE__ */ new WeakMap();
-function zD(e) {
- let t = RD.get(e);
+var VD = /* @__PURE__ */ new WeakMap();
+function HD(e) {
+ let t = VD.get(e);
if (t != null) return t;
let n = 0, r = (t) => {
- for (let i of t) i.type === "section" ? r(MD(i, e)) : i.type === "item" && n++;
+ for (let i of t) i.type === "section" ? r(FD(i, e)) : i.type === "item" && n++;
};
- return r(e), RD.set(e, n), n;
+ return r(e), VD.set(e, n), n;
}
// node_modules/react-aria/dist/private/i18n/useCollator.mjs
-var BD = /* @__PURE__ */ new Map();
-function VD(e) {
- let { locale: t } = eT(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (BD.has(n)) return BD.get(n);
+var UD = /* @__PURE__ */ new Map();
+function WD(e) {
+ let { locale: t } = rT(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
+ if (UD.has(n)) return UD.get(n);
let r = new Intl.Collator(t, e);
- return BD.set(n, r), r;
+ return UD.set(n, r), r;
}
// node_modules/react-aria/dist/private/interactions/PressResponder.mjs
-var mse = /*#__PURE__*/ F.forwardRef(({ children: e, ...t }, n) => {
- let r = (0, F.useRef)(!1), i = (0, F.useContext)(gT), a = K(i || {}, {
+var hse = /*#__PURE__*/ F.forwardRef(({ children: e, ...t }, n) => {
+ let r = (0, F.useRef)(!1), i = (0, F.useContext)(yT), a = q(i || {}, {
...t,
register() {
r.current = !0, i && i.register();
}
});
- return a.ref = hw(n || i?.ref), gw(i, a.ref), (0, F.useEffect)(() => {
+ return a.ref = vw(n || i?.ref), yw(i, a.ref), (0, F.useEffect)(() => {
r.current ||= !0;
- }, []), /*#__PURE__*/ F.createElement(gT.Provider, { value: a }, e);
+ }, []), /*#__PURE__*/ F.createElement(yT.Provider, { value: a }, e);
});
-function hse({ children: e }) {
+function gse({ children: e }) {
let t = (0, F.useMemo)(() => ({ register: () => {} }), []);
- return /*#__PURE__*/ F.createElement(gT.Provider, { value: t }, e);
+ return /*#__PURE__*/ F.createElement(yT.Provider, { value: t }, e);
}
// node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var HD = /*#__PURE__*/ (0, F.createContext)({});
-function UD(e) {
- let { getContainer: t } = e, { getContainer: n } = WD();
- return /*#__PURE__*/ F.createElement(HD.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
+var GD = /*#__PURE__*/ (0, F.createContext)({});
+function KD(e) {
+ let { getContainer: t } = e, { getContainer: n } = qD();
+ return /*#__PURE__*/ F.createElement(GD.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
}
-function WD() {
- return (0, F.useContext)(HD) ?? {};
+function qD() {
+ return (0, F.useContext)(GD) ?? {};
}
// node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var GD = /*#__PURE__*/ F.createContext(null);
-function KD(e) {
- let t = EC(), { 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 YD(e) {
+ let t = kC(), { 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 } = WD();
+ }), [i, a]), { getContainer: s } = qD();
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(FT, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ F.createElement(GD.Provider, { value: o }, /*#__PURE__*/ F.createElement(hse, null, /*#__PURE__*/ F.createElement(_w.Provider, { value: null }, c))), /*#__PURE__*/ It.createPortal(c, n);
+ }, c)), c = /*#__PURE__*/ F.createElement(JD.Provider, { value: o }, /*#__PURE__*/ F.createElement(gse, null, /*#__PURE__*/ F.createElement(bw.Provider, { value: null }, c))), /*#__PURE__*/ It.createPortal(c, n);
}
-function qD() {
- let e = (0, F.useContext)(GD)?.setContain;
- XS(() => {
+function XD() {
+ let e = (0, F.useContext)(JD)?.setContain;
+ $S(() => {
e?.(!0);
}, [e]);
}
// node_modules/react-aria/dist/private/dialog/useDialog.mjs
-function gse(e, t) {
- let { role: n = "dialog", isEntering: r } = e, i = aw();
+function _se(e, t) {
+ let { role: n = "dialog", isEntering: r } = e, i = cw();
i = e["aria-label"] ? void 0 : i;
- let a = aw();
+ let a = cw();
a = n === "alertdialog" && !e["aria-describedby"] ? a : void 0;
let o = (0, F.useRef)(!1);
(0, F.useEffect)(() => {
- if (!r && t.current && !HS(t.current)) {
- $C(t.current);
+ if (!r && t.current && !GS(t.current)) {
+ nw(t.current);
let e = setTimeout(() => {
- (BS() === t.current || BS() === document.body) && (o.current = !0, t.current && (t.current.blur(), $C(t.current)), o.current = !1);
+ (US() === t.current || US() === document.body) && (o.current = !0, t.current && (t.current.blur(), nw(t.current)), o.current = !1);
}, 500);
return () => {
clearTimeout(e);
};
}
- }, [t, r]), qD(), (0, F.useRef)(!1), (0, F.useEffect)(() => {});
+ }, [t, r]), XD(), (0, F.useRef)(!1), (0, F.useEffect)(() => {});
let s = e["aria-describedby"] ?? a;
return {
dialogProps: {
- ...cT(e, { labelable: !0 }),
+ ...dT(e, { labelable: !0 }),
role: n,
tabIndex: -1,
"aria-labelledby": e["aria-labelledby"] ?? i,
@@ -26508,23 +26533,23 @@ function gse(e, t) {
};
}
// node_modules/react-aria/dist/private/focus/useFocusRing.mjs
-function JD(e = {}) {
+function ZD(e = {}) {
let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, F.useRef)({
isFocused: !1,
- isFocusVisible: t || VC()
+ isFocusVisible: t || WC()
}), [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 = VC(), o(e), l();
+ i.current.isFocused = e, i.current.isFocusVisible = WC(), o(e), l();
}, [l]);
- KC((e) => {
+ YC((e) => {
i.current.isFocusVisible = e, l();
}, [n, a], {
enabled: a,
isTextInput: n
});
- let { focusProps: d } = uw({
+ let { focusProps: d } = pw({
isDisabled: r,
onFocusChange: u
- }), { focusWithinProps: f } = yE({
+ }), { focusWithinProps: f } = SE({
isDisabled: !r,
onFocusWithinChange: u
});
@@ -26535,41 +26560,41 @@ function JD(e = {}) {
};
}
// node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
-function _se(e = {}) {
- let { locale: t } = eT();
+function vse(e = {}) {
+ let { locale: t } = rT();
return (0, F.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
// node_modules/react-aria/dist/private/interactions/useHover.mjs
-var YD = !1, XD = 0;
-function vse() {
- YD = !0, setTimeout(() => {
- YD = !1;
+var QD = !1, $D = 0;
+function yse() {
+ QD = !0, setTimeout(() => {
+ QD = !1;
}, 500);
}
-function ZD(e) {
- e.pointerType === "touch" && vse();
+function eO(e) {
+ e.pointerType === "touch" && yse();
}
-function yse() {
- let e = MS(null);
- if (e !== void 0) return XD === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", ZD), XD++, () => {
- XD--, !(XD > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", ZD);
+function bse() {
+ let e = FS(null);
+ if (e !== void 0) return $D === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", eO), $D++, () => {
+ $D--, !($D > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", eO);
};
}
-function QD(e) {
+function tO(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)(yse, []);
- let { addGlobalListener: c, removeAllGlobalListeners: l } = _T(), { hoverProps: u, triggerHoverEnd: d } = (0, F.useMemo)(() => {
+ (0, F.useEffect)(bse, []);
+ let { addGlobalListener: c, removeAllGlobalListeners: l } = bT(), { hoverProps: u, triggerHoverEnd: d } = (0, F.useMemo)(() => {
let e = (e, r) => {
- if (s.pointerType = r, i || r === "touch" || s.isHovered || !zS(e.currentTarget, G(e))) return;
+ if (s.pointerType = r, i || r === "touch" || s.isHovered || !HS(e.currentTarget, K(e))) return;
s.isHovered = !0;
let l = e.currentTarget;
- s.target = l, c(MS(G(e)), "pointerover", (e) => {
- s.isHovered && s.target && !zS(s.target, G(e)) && a(e, e.pointerType);
+ s.target = l, c(FS(K(e)), "pointerover", (e) => {
+ s.isHovered && s.target && !HS(s.target, K(e)) && a(e, e.pointerType);
}, { capture: !0 }), t && t({
type: "hoverstart",
target: l,
@@ -26584,9 +26609,9 @@ function QD(e) {
}), n && n(!1), o(!1));
}, u = {};
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
- YD && t.pointerType === "mouse" || e(t, t.pointerType);
+ QD && t.pointerType === "mouse" || e(t, t.pointerType);
}, u.onPointerLeave = (e) => {
- !i && zS(e.currentTarget, G(e)) && a(e, e.pointerType);
+ !i && HS(e.currentTarget, K(e)) && a(e, e.pointerType);
}), {
hoverProps: u,
triggerHoverEnd: a
@@ -26608,22 +26633,22 @@ function QD(e) {
};
}
// node_modules/react-aria/dist/private/interactions/useInteractOutside.mjs
-function bse(e) {
+function xse(e) {
let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, F.useRef)({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
- }), o = Kw((e) => {
- n && $D(e, t) && (i && i(e), a.current.isPointerDown = !0);
- }), s = Kw((e) => {
+ }), o = Yw((e) => {
+ n && nO(e, t) && (i && i(e), a.current.isPointerDown = !0);
+ }), s = Yw((e) => {
n && n(e);
});
(0, F.useEffect)(() => {
let e = a.current;
if (r) return;
- let n = t.current, i = MS(n);
+ let n = t.current, i = FS(n);
if (typeof PointerEvent < "u") {
let n = (n) => {
- e.isPointerDown && $D(n, t) && s(n), e.isPointerDown = !1;
+ e.isPointerDown && nO(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);
@@ -26631,28 +26656,28 @@ function bse(e) {
}
}, [t, r]);
}
-function $D(e, t) {
+function nO(e, t) {
if (e.button > 0) return !1;
- let n = G(e);
+ let n = K(e);
if (n) {
let e = n.ownerDocument;
- if (!e || !zS(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
+ if (!e || !HS(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 eO = /* @__PURE__ */ new WeakMap();
-function tO(e, t) {
- let { id: n } = eO.get(e) ?? {};
+var rO = /* @__PURE__ */ new WeakMap();
+function iO(e, t) {
+ let { id: n } = rO.get(e) ?? {};
if (!n) throw Error("Unknown list");
- return `${n}-${xse(t)}`;
+ return `${n}-${Sse(t)}`;
}
-function xse(e) {
+function Sse(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
// node_modules/react-aria/dist/private/intl/grid/ar-AE.mjs
-var nO = {};
-nO = {
+var aO = {};
+aO = {
deselectedItem: (e) => `${e.item} \u{63A}\u{64A}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,
longPressToSelect: "اضغط مطولًا للدخول إلى وضع التحديد.",
select: "تحديد",
@@ -26665,8 +26690,8 @@ nO = {
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 rO = {};
-rO = {
+var oO = {};
+oO = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{435} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`,
longPressToSelect: "Натиснете и задръжте за да влезете в избирателен режим.",
select: "Изберете",
@@ -26679,8 +26704,8 @@ rO = {
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 iO = {};
-iO = {
+var sO = {};
+sO = {
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",
@@ -26693,8 +26718,8 @@ iO = {
selectedItem: (e) => `Vybr\xe1na polo\u{17E}ka ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/da-DK.mjs
-var aO = {};
-aO = {
+var cO = {};
+cO = {
deselectedItem: (e) => `${e.item} ikke valgt.`,
longPressToSelect: "Lav et langt tryk for at aktivere valgtilstand.",
select: "Vælg",
@@ -26707,8 +26732,8 @@ aO = {
selectedItem: (e) => `${e.item} valgt.`
};
// node_modules/react-aria/dist/private/intl/grid/de-DE.mjs
-var oO = {};
-oO = {
+var lO = {};
+lO = {
deselectedItem: (e) => `${e.item} nicht ausgew\xe4hlt.`,
longPressToSelect: "Gedrückt halten, um Auswahlmodus zu öffnen.",
select: "Auswählen",
@@ -26721,8 +26746,8 @@ oO = {
selectedItem: (e) => `${e.item} ausgew\xe4hlt.`
};
// node_modules/react-aria/dist/private/intl/grid/el-GR.mjs
-var sO = {};
-sO = {
+var uO = {};
+uO = {
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: "Επιλογή",
@@ -26735,8 +26760,8 @@ sO = {
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 cO = {};
-cO = {
+var dO = {};
+dO = {
deselectedItem: (e) => `${e.item} not selected.`,
select: "Select",
selectedCount: (e, t) => `${t.plural(e.count, {
@@ -26749,8 +26774,8 @@ cO = {
longPressToSelect: "Long press to enter selection mode."
};
// node_modules/react-aria/dist/private/intl/grid/es-ES.mjs
-var lO = {};
-lO = {
+var fO = {};
+fO = {
deselectedItem: (e) => `${e.item} no seleccionado.`,
longPressToSelect: "Mantenga pulsado para abrir el modo de selección.",
select: "Seleccionar",
@@ -26763,8 +26788,8 @@ lO = {
selectedItem: (e) => `${e.item} seleccionado.`
};
// node_modules/react-aria/dist/private/intl/grid/et-EE.mjs
-var uO = {};
-uO = {
+var pO = {};
+pO = {
deselectedItem: (e) => `${e.item} pole valitud.`,
longPressToSelect: "Valikurežiimi sisenemiseks vajutage pikalt.",
select: "Vali",
@@ -26777,8 +26802,8 @@ uO = {
selectedItem: (e) => `${e.item} valitud.`
};
// node_modules/react-aria/dist/private/intl/grid/fi-FI.mjs
-var dO = {};
-dO = {
+var mO = {};
+mO = {
deselectedItem: (e) => `Kohdetta ${e.item} ei valittu.`,
longPressToSelect: "Siirry valintatilaan painamalla pitkään.",
select: "Valitse",
@@ -26791,8 +26816,8 @@ dO = {
selectedItem: (e) => `${e.item} valittu.`
};
// node_modules/react-aria/dist/private/intl/grid/fr-FR.mjs
-var fO = {};
-fO = {
+var hO = {};
+hO = {
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",
@@ -26805,8 +26830,8 @@ fO = {
selectedItem: (e) => `${e.item} s\xe9lectionn\xe9.`
};
// node_modules/react-aria/dist/private/intl/grid/he-IL.mjs
-var pO = {};
-pO = {
+var gO = {};
+gO = {
deselectedItem: (e) => `${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,
longPressToSelect: "הקשה ארוכה לכניסה למצב בחירה.",
select: "בחר",
@@ -26819,8 +26844,8 @@ pO = {
selectedItem: (e) => `${e.item} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`
};
// node_modules/react-aria/dist/private/intl/grid/hr-HR.mjs
-var mO = {};
-mO = {
+var _O = {};
+_O = {
deselectedItem: (e) => `Stavka ${e.item} nije odabrana.`,
longPressToSelect: "Dugo pritisnite za ulazak u način odabira.",
select: "Odaberite",
@@ -26833,8 +26858,8 @@ mO = {
selectedItem: (e) => `Stavka ${e.item} je odabrana.`
};
// node_modules/react-aria/dist/private/intl/grid/hu-HU.mjs
-var hO = {};
-hO = {
+var vO = {};
+vO = {
deselectedItem: (e) => `${e.item} nincs kijel\xf6lve.`,
longPressToSelect: "Nyomja hosszan a kijelöléshez.",
select: "Kijelölés",
@@ -26847,8 +26872,8 @@ hO = {
selectedItem: (e) => `${e.item} kijel\xf6lve.`
};
// node_modules/react-aria/dist/private/intl/grid/it-IT.mjs
-var gO = {};
-gO = {
+var yO = {};
+yO = {
deselectedItem: (e) => `${e.item} non selezionato.`,
longPressToSelect: "Premi a lungo per passare alla modalità di selezione.",
select: "Seleziona",
@@ -26861,8 +26886,8 @@ gO = {
selectedItem: (e) => `${e.item} selezionato.`
};
// node_modules/react-aria/dist/private/intl/grid/ja-JP.mjs
-var _O = {};
-_O = {
+var bO = {};
+bO = {
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: "選択",
@@ -26875,8 +26900,8 @@ _O = {
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 vO = {};
-vO = {
+var xO = {};
+xO = {
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: "선택",
@@ -26889,8 +26914,8 @@ vO = {
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 yO = {};
-yO = {
+var SO = {};
+SO = {
deselectedItem: (e) => `${e.item} nepasirinkta.`,
longPressToSelect: "Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",
select: "Pasirinkti",
@@ -26903,8 +26928,8 @@ yO = {
selectedItem: (e) => `Pasirinkta: ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/lv-LV.mjs
-var bO = {};
-bO = {
+var CO = {};
+CO = {
deselectedItem: (e) => `Vienums ${e.item} nav atlas\u{12B}ts.`,
longPressToSelect: "Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",
select: "Atlasīt",
@@ -26917,8 +26942,8 @@ bO = {
selectedItem: (e) => `Atlas\u{12B}ts vienums ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/nb-NO.mjs
-var xO = {};
-xO = {
+var wO = {};
+wO = {
deselectedItem: (e) => `${e.item} er ikke valgt.`,
longPressToSelect: "Bruk et langt trykk for å gå inn i valgmodus.",
select: "Velg",
@@ -26931,8 +26956,8 @@ xO = {
selectedItem: (e) => `${e.item} er valgt.`
};
// node_modules/react-aria/dist/private/intl/grid/nl-NL.mjs
-var SO = {};
-SO = {
+var TO = {};
+TO = {
deselectedItem: (e) => `${e.item} niet geselecteerd.`,
longPressToSelect: "Druk lang om de selectiemodus te openen.",
select: "Selecteren",
@@ -26945,8 +26970,8 @@ SO = {
selectedItem: (e) => `${e.item} geselecteerd.`
};
// node_modules/react-aria/dist/private/intl/grid/pl-PL.mjs
-var CO = {};
-CO = {
+var EO = {};
+EO = {
deselectedItem: (e) => `Nie zaznaczono ${e.item}.`,
longPressToSelect: "Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",
select: "Zaznacz",
@@ -26959,8 +26984,8 @@ CO = {
selectedItem: (e) => `Zaznaczono ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/pt-BR.mjs
-var wO = {};
-wO = {
+var DO = {};
+DO = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Mantenha pressionado para entrar no modo de seleção.",
select: "Selecionar",
@@ -26973,8 +26998,8 @@ wO = {
selectedItem: (e) => `${e.item} selecionado.`
};
// node_modules/react-aria/dist/private/intl/grid/pt-PT.mjs
-var TO = {};
-TO = {
+var OO = {};
+OO = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Prima continuamente para entrar no modo de seleção.",
select: "Selecionar",
@@ -26987,8 +27012,8 @@ TO = {
selectedItem: (e) => `${e.item} selecionado.`
};
// node_modules/react-aria/dist/private/intl/grid/ro-RO.mjs
-var EO = {};
-EO = {
+var kO = {};
+kO = {
deselectedItem: (e) => `${e.item} neselectat.`,
longPressToSelect: "Apăsați lung pentru a intra în modul de selectare.",
select: "Selectare",
@@ -27001,8 +27026,8 @@ EO = {
selectedItem: (e) => `${e.item} selectat.`
};
// node_modules/react-aria/dist/private/intl/grid/ru-RU.mjs
-var DO = {};
-DO = {
+var AO = {};
+AO = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Нажмите и удерживайте для входа в режим выбора.",
select: "Выбрать",
@@ -27015,8 +27040,8 @@ DO = {
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 OO = {};
-OO = {
+var jO = {};
+jO = {
deselectedItem: (e) => `Nevybrat\xe9 polo\u{17E}ky: ${e.item}.`,
longPressToSelect: "Dlhším stlačením prejdite do režimu výberu.",
select: "Vybrať",
@@ -27029,8 +27054,8 @@ OO = {
selectedItem: (e) => `Vybrat\xe9 polo\u{17E}ky: ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/sl-SI.mjs
-var kO = {};
-kO = {
+var MO = {};
+MO = {
deselectedItem: (e) => `Element ${e.item} ni izbran.`,
longPressToSelect: "Za izbirni način pritisnite in dlje časa držite.",
select: "Izberite",
@@ -27043,8 +27068,8 @@ kO = {
selectedItem: (e) => `Element ${e.item} je izbran.`
};
// node_modules/react-aria/dist/private/intl/grid/sr-SP.mjs
-var AO = {};
-AO = {
+var NO = {};
+NO = {
deselectedItem: (e) => `${e.item} nije izabrano.`,
longPressToSelect: "Dugo pritisnite za ulazak u režim biranja.",
select: "Izaberite",
@@ -27057,8 +27082,8 @@ AO = {
selectedItem: (e) => `${e.item} je izabrano.`
};
// node_modules/react-aria/dist/private/intl/grid/sv-SE.mjs
-var jO = {};
-jO = {
+var PO = {};
+PO = {
deselectedItem: (e) => `${e.item} ej markerat.`,
longPressToSelect: "Tryck länge när du vill öppna väljarläge.",
select: "Markera",
@@ -27071,8 +27096,8 @@ jO = {
selectedItem: (e) => `${e.item} markerat.`
};
// node_modules/react-aria/dist/private/intl/grid/tr-TR.mjs
-var MO = {};
-MO = {
+var FO = {};
+FO = {
deselectedItem: (e) => `${e.item} se\xe7ilmedi.`,
longPressToSelect: "Seçim moduna girmek için uzun basın.",
select: "Seç",
@@ -27085,8 +27110,8 @@ MO = {
selectedItem: (e) => `${e.item} se\xe7ildi.`
};
// node_modules/react-aria/dist/private/intl/grid/uk-UA.mjs
-var NO = {};
-NO = {
+var IO = {};
+IO = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Виконайте довге натиснення, щоб перейти в режим вибору.",
select: "Вибрати",
@@ -27099,8 +27124,8 @@ NO = {
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 PO = {};
-PO = {
+var LO = {};
+LO = {
deselectedItem: (e) => `\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,
longPressToSelect: "长按以进入选择模式。",
select: "选择",
@@ -27113,8 +27138,8 @@ PO = {
selectedItem: (e) => `\u{5DF2}\u{9009}\u{62E9} ${e.item}\u{3002}`
};
// node_modules/react-aria/dist/private/intl/grid/zh-TW.mjs
-var FO = {};
-FO = {
+var RO = {};
+RO = {
deselectedItem: (e) => `\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,
longPressToSelect: "長按以進入選擇模式。",
select: "選取",
@@ -27127,54 +27152,54 @@ FO = {
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 IO = {};
-IO = {
- "ar-AE": nO,
- "bg-BG": rO,
- "cs-CZ": iO,
- "da-DK": aO,
- "de-DE": oO,
- "el-GR": sO,
- "en-US": cO,
- "es-ES": lO,
- "et-EE": uO,
- "fi-FI": dO,
- "fr-FR": fO,
- "he-IL": pO,
- "hr-HR": mO,
- "hu-HU": hO,
- "it-IT": gO,
- "ja-JP": _O,
- "ko-KR": vO,
- "lt-LT": yO,
- "lv-LV": bO,
- "nb-NO": xO,
- "nl-NL": SO,
- "pl-PL": CO,
- "pt-BR": wO,
- "pt-PT": TO,
- "ro-RO": EO,
- "ru-RU": DO,
- "sk-SK": OO,
- "sl-SI": kO,
- "sr-SP": AO,
- "sv-SE": jO,
- "tr-TR": MO,
- "uk-UA": NO,
- "zh-CN": PO,
- "zh-TW": FO
+var zO = {};
+zO = {
+ "ar-AE": aO,
+ "bg-BG": oO,
+ "cs-CZ": sO,
+ "da-DK": cO,
+ "de-DE": lO,
+ "el-GR": uO,
+ "en-US": dO,
+ "es-ES": fO,
+ "et-EE": pO,
+ "fi-FI": mO,
+ "fr-FR": hO,
+ "he-IL": gO,
+ "hr-HR": _O,
+ "hu-HU": vO,
+ "it-IT": yO,
+ "ja-JP": bO,
+ "ko-KR": xO,
+ "lt-LT": SO,
+ "lv-LV": CO,
+ "nb-NO": wO,
+ "nl-NL": TO,
+ "pl-PL": EO,
+ "pt-BR": DO,
+ "pt-PT": OO,
+ "ro-RO": kO,
+ "ru-RU": AO,
+ "sk-SK": jO,
+ "sl-SI": MO,
+ "sr-SP": NO,
+ "sv-SE": PO,
+ "tr-TR": FO,
+ "uk-UA": IO,
+ "zh-CN": LO,
+ "zh-TW": RO
};
// node_modules/react-aria/dist/private/grid/useGridSelectionAnnouncement.mjs
-function Sse(e) {
+function Cse(e) {
return e && e.__esModule ? e.default : e;
}
-function LO(e, t) {
- let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = oT(Sse(IO), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, F.useRef)(i), o = (0, F.useCallback)(() => {
+function BO(e, t) {
+ let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = lT(Cse(zO), "@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 = RO(i, a.current), o = RO(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
+ let e = VO(i, a.current), o = VO(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)) {
@@ -27194,7 +27219,7 @@ function LO(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 && YT(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 && QT(c.join(" ")), a.current = i;
}, [
i,
t.selectionManager.selectedKeys,
@@ -27205,7 +27230,7 @@ function LO(e, t) {
n,
r
]);
- XT(() => {
+ $T(() => {
if (t.selectionManager.isFocused) o();
else {
let e = requestAnimationFrame(o);
@@ -27213,20 +27238,20 @@ function LO(e, t) {
}
}, [i, t.selectionManager.isFocused]);
}
-function RO(e, t) {
+function VO(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 zO(e, t) {
+function HO(e, t) {
let n = t?.isDisabled, [r, i] = (0, F.useState)(!1);
- return XS(() => {
+ return $S(() => {
if (e?.current && !n) {
let t = () => {
if (e.current) {
- let t = WT(e.current, { tabbable: !0 });
+ let t = qT(e.current, { tabbable: !0 });
i(!!t.nextNode());
}
};
@@ -27244,12 +27269,12 @@ function zO(e, t) {
}), !n && r;
}
// node_modules/react-aria/dist/private/grid/useHighlightSelectionDescription.mjs
-function Cse(e) {
+function wse(e) {
return e && e.__esModule ? e.default : e;
}
-function BO(e) {
- let t = oT(Cse(IO), "@react-aria/grid"), n = WC(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
- return rE((0, F.useMemo)(() => {
+function UO(e) {
+ let t = lT(wse(zO), "@react-aria/grid"), n = qC(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
+ return oE((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;
}, [
@@ -27261,11 +27286,11 @@ function BO(e) {
]));
}
// node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function VO(e) {
- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = VD({
+function WO(e) {
+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = WD({
usage: "search",
sensitivity: "base"
- }), l = t.disabledBehavior, u = (0, F.useMemo)(() => a || new UE({
+ }), l = t.disabledBehavior, u = (0, F.useMemo)(() => a || new KE({
collection: n,
disabledKeys: r,
disabledBehavior: l,
@@ -27282,7 +27307,7 @@ function VO(e) {
c,
l,
s
- ]), { collectionProps: d } = jD({
+ ]), { collectionProps: d } = PD({
...e,
ref: i,
selectionManager: t,
@@ -27291,10 +27316,10 @@ function VO(e) {
return { listProps: d };
}
// node_modules/react-aria/dist/private/gridlist/useGridList.mjs
-function wse(e, t, n) {
+function Tse(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 } = VO({
+ let { listProps: f } = WO({
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
@@ -27309,30 +27334,30 @@ function wse(e, t, n) {
autoFocus: e.autoFocus,
escapeKeyBehavior: u,
UNSTABLE_focusOnEntry: e.UNSTABLE_focusOnEntry
- }), p = iw(e.id);
- eO.set(t, {
+ }), p = sw(e.id);
+ rO.set(t, {
id: p,
onAction: o,
linkBehavior: c,
keyboardNavigationBehavior: l,
shouldSelectOnPressUp: d
});
- let m = BO({
+ let m = UO({
selectionManager: t.selectionManager,
hasItemActions: !!o
- }), h = zO(n, { isDisabled: t.collection.size !== 0 }), g = K(cT(e, { labelable: !0 }), {
+ }), h = HO(n, { isDisabled: t.collection.size !== 0 }), g = q(dT(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), LO({}, t), { gridProps: g };
+ return r && (g["aria-rowcount"] = t.collection.size, g["aria-colcount"] = 1), BO({}, t), { gridProps: g };
}
// node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function HO(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 = gC();
- t = iw(t);
+function GO(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 = yC();
+ t = sw(t);
let p = (e) => {
- if (e.pointerType === "keyboard" && zE(e)) n.toggleSelection(r);
+ if (e.pointerType === "keyboard" && HE(e)) n.toggleSelection(r);
else {
if (n.selectionMode === "none") return;
if (n.isLink(r)) {
@@ -27343,11 +27368,11 @@ function HO(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 && (qw(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
}
};
(0, F.useEffect)(() => {
- r === n.focusedKey && n.isFocused && (o ? Nw(i.current) : s ? s() : BS() !== i.current && i.current && $C(i.current));
+ r === n.focusedKey && n.isFocused && (o ? Iw(i.current) : s ? s() : US() !== i.current && i.current && nw(i.current));
}, [
i,
r,
@@ -27360,7 +27385,7 @@ function HO(e) {
!o && !c ? m = {
tabIndex: r === n.focusedKey ? 0 : -1,
onFocus(e) {
- G(e) === i.current && n.setFocusedKey(r);
+ K(e) === i.current && n.setFocusedKey(r);
}
} : c && (m.onMouseDown = (e) => {
e.preventDefault();
@@ -27375,23 +27400,23 @@ function HO(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 || WO(e.key)) && p(e);
+ C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || qO(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" && !UO(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 || WO(e.key))) && p(e);
+ C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || qO(e.key))) && p(e);
}, k.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && UO(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 = sse(n.collection);
- if (m["data-collection"] = A, m["data-key"] = r, k.preventFocusOnPress = o, o && (k = K(k, {
+ let A = cse(n.collection);
+ if (m["data-collection"] = A, m["data-key"] = r, k.preventFocusOnPress = o, o && (k = q(k, {
onPressStart(e) {
e.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
},
@@ -27405,10 +27430,10 @@ function HO(e) {
"onPress",
"onPressUp",
"onClick"
- ]) D[e] && (k[e] = ew(k[e], D[e]));
- let { pressProps: j, isPressed: M } = ST(k), ee = x ? (e) => {
+ ]) D[e] && (k[e] = rw(k[e], D[e]));
+ let { pressProps: j, isPressed: M } = TT(k), ee = x ? (e) => {
C.current === "mouse" && (e.stopPropagation(), e.preventDefault(), O(e));
- } : void 0, { longPressProps: N } = TD({
+ } : void 0, { longPressProps: N } = OD({
isDisabled: !w,
onLongPress(e) {
e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));
@@ -27416,8 +27441,8 @@ function HO(e) {
}), te = (e) => {
C.current === "touch" && T.current && e.preventDefault();
}, P = d !== "none" && n.isLink(r) ? (e) => {
- vC.isOpening || e.preventDefault();
- } : void 0, ne = K(m, v || b || o && !c ? j : {}, w ? N : {}, {
+ xC.isOpening || e.preventDefault();
+ } : void 0, ne = q(m, v || b || o && !c ? j : {}, w ? N : {}, {
onDoubleClick: ee,
onDragStartCapture: te,
onClick: P,
@@ -27429,15 +27454,15 @@ function HO(e) {
if (e != null) return e !== A;
t = t.parentElement;
}
- return JS(e);
+ return ZS(e);
}, I = ne.onPointerDown;
ne.onPointerDown = (e) => {
- let t = G(e);
+ let t = K(e);
t && t !== i.current && re(t) ? e.stopPropagation() : I?.(e);
};
let ie = ne.onMouseDown;
return ne.onMouseDown = (e) => {
- let t = G(e);
+ let t = K(e);
t && t !== i.current && re(t) ? e.stopPropagation() : ie?.(e);
}, {
itemProps: ne,
@@ -27449,14 +27474,14 @@ function HO(e) {
hasAction: S
};
}
-function UO(e) {
+function KO(e) {
return e === "Enter";
}
-function WO(e) {
+function qO(e) {
return e === " ";
}
// node_modules/react-aria/dist/private/gridlist/useGridListItem.mjs
-var GO = {
+var JO = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -27466,18 +27491,18 @@ var GO = {
rtl: "ArrowRight"
}
};
-function Tse(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a = "row", allowsArrowNavigation: o } = e, { direction: s } = eT(), { onAction: c, linkBehavior: l, keyboardNavigationBehavior: u, shouldSelectOnPressUp: d } = eO.get(t), f = aw(), p = (0, F.useRef)(null), m = () => {
+function Ese(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a = "row", allowsArrowNavigation: o } = e, { direction: s } = rT(), { onAction: c, linkBehavior: l, keyboardNavigationBehavior: u, shouldSelectOnPressUp: d } = rO.get(t), f = cw(), p = (0, F.useRef)(null), m = () => {
if (n.current !== null) {
if (a === "child") {
- if (HS(n.current) && n.current !== BS(MS(n.current))) return;
- let e = WT(n.current, { tabbable: !0 }).firstChild();
+ if (GS(n.current) && n.current !== US(FS(n.current))) return;
+ let e = qT(n.current, { tabbable: !0 }).firstChild();
if (e) {
- $C(e), tE(e, { containingElement: QT(e) });
+ nw(e), iE(e, { containingElement: tE(e) });
return;
}
}
- (p.current != null && r.key !== p.current || !HS(n.current)) && $C(n.current);
+ (p.current != null && r.key !== p.current || !GS(n.current)) && nw(n.current);
}
}, h = {}, g = e.hasChildItems, _ = t.selectionManager.isLink(r.key);
if (r != null && "expandedKeys" in t) {
@@ -27487,7 +27512,7 @@ function Tse(e, t, n) {
if (r.level >= 0 && r?.parentKey != null) {
let e = t.collection.getItem(r.parentKey);
if (e) {
- let n = Ese(e, t.collection);
+ let n = Dse(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;
@@ -27498,75 +27523,75 @@ function Tse(e, t, n) {
"aria-setsize": i
};
}
- let { itemProps: v, ...y } = HO({
+ let { itemProps: v, ...y } = GO({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: e.shouldSelectOnPressUp || d,
- onAction: c || r.props?.onAction ? ew(r.props?.onAction, c ? () => c(r.key) : void 0) : void 0,
+ onAction: c || r.props?.onAction ? rw(r.props?.onAction, c ? () => c(r.key) : void 0) : void 0,
focus: m,
linkBehavior: l
}), b = (e) => {
- let i = BS(MS(n.current));
- if (!zS(e.currentTarget, G(e)) || !n.current || !i) return;
- let a = WT(n.current);
- if (a.currentNode = i, !KO(e, t, r, g, s, i, n.current, o)) switch (e.key) {
+ let i = US(FS(n.current));
+ if (!HS(e.currentTarget, K(e)) || !n.current || !i) return;
+ let a = qT(n.current);
+ if (a.currentNode = i, !YO(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(), $C(t), tE(t, { containingElement: QT(n.current) });
- else if (e.preventDefault(), e.stopPropagation(), s === "rtl") $C(n.current), tE(n.current, { containingElement: QT(n.current) });
+ if (t) e.preventDefault(), e.stopPropagation(), nw(t), iE(t, { containingElement: tE(n.current) });
+ else if (e.preventDefault(), e.stopPropagation(), s === "rtl") nw(n.current), iE(n.current, { containingElement: tE(n.current) });
else {
a.currentNode = n.current;
- let e = qO(a);
- e && ($C(e), tE(e, { containingElement: QT(n.current) }));
+ let e = XO(a);
+ e && (nw(e), iE(e, { containingElement: tE(n.current) }));
}
}
break;
case "ArrowRight":
if (u === "arrow") {
let t = s === "rtl" ? a.previousNode() : a.nextNode();
- if (t) e.preventDefault(), e.stopPropagation(), $C(t), tE(t, { containingElement: QT(n.current) });
- else if (e.preventDefault(), e.stopPropagation(), s === "ltr") $C(n.current), tE(n.current, { containingElement: QT(n.current) });
+ if (t) e.preventDefault(), e.stopPropagation(), nw(t), iE(t, { containingElement: tE(n.current) });
+ else if (e.preventDefault(), e.stopPropagation(), s === "ltr") nw(n.current), iE(n.current, { containingElement: tE(n.current) });
else {
a.currentNode = n.current;
- let e = qO(a);
- e && ($C(e), tE(e, { containingElement: QT(n.current) }));
+ let e = XO(a);
+ e && (nw(e), iE(e, { containingElement: tE(n.current) }));
}
}
break;
case "ArrowUp":
- case "ArrowDown": !e.altKey && zS(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
+ case "ArrowDown": !e.altKey && HS(n.current, K(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 && zS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
- a === "child" && BS(MS(n.current)) === n.current && m();
- }) : VC() || t.selectionManager.setFocusedKey(r.key);
+ p.current = r.key, K(e) === n.current ? a === "child" && e.relatedTarget && HS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
+ a === "child" && US(FS(n.current)) === n.current && m();
+ }) : WC() || t.selectionManager.setFocusedKey(r.key);
}, S = (e) => {
- let i = BS(MS(n.current));
- if (zS(e.currentTarget, G(e)) && n.current && i) {
+ let i = US(FS(n.current));
+ if (HS(e.currentTarget, K(e)) && n.current && i) {
if (u === "tab") {
- if (G(e) !== n.current && e.key !== "Tab") {
+ if (K(e) !== n.current && e.key !== "Tab") {
e.stopPropagation();
return;
}
- if (KO(e, t, r, g, s, i, n.current, o)) return;
+ if (YO(e, t, r, g, s, i, n.current, o)) return;
}
if (e.key === "Tab" && u === "tab") {
- let t = WT(n.current, { tabbable: !0 });
+ let t = qT(n.current, { tabbable: !0 });
t.currentNode = i, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
- }, C = xC(r.props), w = K(v, y.hasAction ? C : {}, {
+ }, C = wC(r.props), w = q(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) ? `${tO(t, r.key)} ${f}` : void 0,
- id: tO(t, r.key)
+ "aria-labelledby": f && (r["aria-label"] || r.textValue) ? `${iO(t, r.key)} ${f}` : void 0,
+ id: iO(t, r.key)
});
a === "child" && o && u === "tab" && (w.tabIndex = -1);
let T = w.onKeyDown;
@@ -27581,72 +27606,72 @@ function Tse(e, t, n) {
"aria-colindex": 1
};
return {
- rowProps: { ...K(w, h) },
+ rowProps: { ...q(w, h) },
gridCellProps: E,
descriptionProps: { id: f },
...y
};
}
-function KO(e, t, n, r, i, a, o, s) {
+function YO(e, t, n, r, i, a, o, s) {
if (!("expandedKeys" in t) || !s && a !== o) return !1;
- if (e.key === GO.expand[i] && t.selectionManager.focusedKey === n.key && r && !t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
- if (e.key === GO.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 qO(e) {
+function XO(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
while (n);
return t;
}
-function Ese(e, t) {
+function Dse(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 Dse(e) {
+function Ose(e) {
return e && e.__esModule ? e.default : e;
}
-function JO(e, t) {
- let { key: n } = e, r = t.selectionManager, i = iw(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
+function ZO(e, t) {
+ let { key: n } = e, r = t.selectionManager, i = sw(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
return { checkboxProps: {
id: i,
- "aria-label": oT(Dse(IO), "@react-aria/grid").format("select"),
+ "aria-label": lT(Ose(zO), "@react-aria/grid").format("select"),
isSelected: o,
isDisabled: a,
onChange: () => r.toggleSelection(n)
} };
}
// node_modules/react-aria/dist/private/gridlist/useGridListSelectionCheckbox.mjs
-function Ose(e, t) {
- let { key: n } = e, { checkboxProps: r } = JO(e, t);
+function kse(e, t) {
+ let { key: n } = e, { checkboxProps: r } = ZO(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${tO(t, n)}`
+ "aria-labelledby": `${r.id} ${iO(t, n)}`
} };
}
// node_modules/react-aria/dist/private/listbox/useListBox.mjs
-function kse(e, t, n) {
- let r = cT(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
+function Ase(e, t, n) {
+ let r = dT(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 } = VO({
+ let { listProps: s } = WO({
...e,
ref: n,
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
linkBehavior: o
- }), { focusWithinProps: c } = yE({
+ }), { focusWithinProps: c } = SE({
onFocusWithin: e.onFocus,
onBlurWithin: e.onBlur,
onFocusWithinChange: e.onFocusChange
- }), l = iw(e.id);
- RE.set(t, {
+ }), l = sw(e.id);
+ VE.set(t, {
id: l,
shouldUseVirtualFocus: e.shouldUseVirtualFocus,
shouldSelectOnPressUp: e.shouldSelectOnPressUp,
@@ -27656,23 +27681,23 @@ function kse(e, t, n) {
linkBehavior: o,
UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior
});
- let { labelProps: u, fieldProps: d } = _E({
+ let { labelProps: u, fieldProps: d } = bE({
...e,
id: l,
labelElementType: "span"
});
return {
labelProps: u,
- listBoxProps: K(r, c, t.selectionManager.selectionMode === "multiple" ? { "aria-multiselectable": "true" } : {}, {
+ listBoxProps: q(r, c, t.selectionManager.selectionMode === "multiple" ? { "aria-multiselectable": "true" } : {}, {
role: "listbox",
"aria-orientation": a,
- ...K(d, s)
+ ...q(d, s)
})
};
}
// node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
-function Ase(e) {
- let { heading: t, "aria-label": n } = e, r = iw();
+function jse(e) {
+ let { heading: t, "aria-label": n } = e, r = sw();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -27690,8 +27715,8 @@ function Ase(e) {
};
}
// node_modules/react-aria/dist/private/listbox/useOption.mjs
-function jse(e, t, n) {
- let { key: r } = e, i = RE.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 = aw(), f = aw(), p = {
+function Mse(e, t, n) {
+ let { key: r } = e, i = VE.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 = cw(), f = cw(), p = {
role: "option",
"aria-disabled": a || void 0,
"aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,
@@ -27701,9 +27726,9 @@ function jse(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"] = zD(t.collection);
+ p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = HD(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = ase(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = HO({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = ose(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = GO({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -27712,28 +27737,28 @@ function jse(e, t, n) {
isVirtualized: u,
shouldUseVirtualFocus: l,
isDisabled: a,
- onAction: h || m?.props?.onAction ? ew(m?.props?.onAction, h) : void 0,
+ onAction: h || m?.props?.onAction ? rw(m?.props?.onAction, h) : void 0,
linkBehavior: i?.linkBehavior,
UNSTABLE_itemBehavior: i?.UNSTABLE_itemBehavior,
id: g
- }), { hoverProps: S } = QD({
+ }), { hoverProps: S } = tO({
isDisabled: a || !c,
onHoverStart() {
- VC() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
+ WC() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
}
- }), C = cT(m?.props);
+ }), C = dT(m?.props);
delete C.id;
- let w = SC(m?.props);
+ let w = TC(m?.props);
return {
optionProps: {
...p,
- ...K(C, _, S, w),
+ ...q(C, _, S, w),
id: g
},
labelProps: { id: d },
descriptionProps: { id: f },
isFocused: y,
- isFocusVisible: y && t.selectionManager.isFocused && VC(),
+ isFocusVisible: y && t.selectionManager.isFocused && WC(),
isSelected: o,
isDisabled: a,
isPressed: v,
@@ -27742,12 +27767,12 @@ function jse(e, t, n) {
};
}
// node_modules/react-aria/dist/private/menu/utils.mjs
-var YO = /* @__PURE__ */ new WeakMap();
+var QO = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/menu/useMenu.mjs
-function Mse(e, t, n) {
+function Nse(e, t, n) {
let { shouldFocusWrap: r = !0, onKeyDown: i, onKeyUp: a, ...o } = e;
!e["aria-label"] && e["aria-labelledby"];
- let s = cT(e, { labelable: !0 }), { listProps: c } = VO({
+ let s = dT(e, { labelable: !0 }), { listProps: c } = WO({
...o,
ref: n,
selectionManager: t.selectionManager,
@@ -27756,11 +27781,11 @@ function Mse(e, t, n) {
shouldFocusWrap: r,
linkBehavior: "override"
});
- return YO.set(t, {
+ return QO.set(t, {
onClose: e.onClose,
onAction: e.onAction,
shouldUseVirtualFocus: e.shouldUseVirtualFocus
- }), { menuProps: K(s, {
+ }), { menuProps: q(s, {
onKeyDown: i,
onKeyUp: a
}, {
@@ -27772,15 +27797,15 @@ function Mse(e, t, n) {
}) };
}
// node_modules/react-aria/dist/private/menu/useMenuItem.mjs
-function Nse(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 = YO.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = gC(), M = () => {
+function Pse(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 = QO.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = yC(), 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 = aw(), te = aw(), P = aw(), ne = {
+ let N = cw(), te = cw(), P = cw(), ne = {
id: r,
"aria-disabled": E || void 0,
role: ee,
@@ -27797,17 +27822,17 @@ function Nse(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"] = zD(t.collection);
+ ne["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, ne["aria-setsize"] = HD(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(), dae(e, j, k.props.href, k?.props.routerOptions);
+ m?.(e), M(), fae(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 } = HO({
+ }, { itemProps: se, isFocused: ce } = GO({
id: r,
selectionManager: C,
key: i,
@@ -27816,36 +27841,36 @@ function Nse(e, t, n) {
allowsDifferentPressOrigin: !0,
linkBehavior: "none",
shouldUseVirtualFocus: O.shouldUseVirtualFocus
- }), { pressProps: le, isPressed: ue } = ST({
+ }), { pressProps: le, isPressed: ue } = TT({
onPressStart: l,
onPress: d,
onPressUp: ae,
onPressChange: I,
onPressEnd: p,
isDisabled: E
- }), { hoverProps: de } = QD({
+ }), { hoverProps: de } = tO({
isDisabled: E,
onHoverStart(e) {
- !VC() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
+ !WC() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
},
onHoverChange: g,
onHoverEnd: _
- }), { keyboardProps: fe } = mw({
+ }), { keyboardProps: fe } = _w({
shortcuts: {
" ": (e) => {
ie.current = {
pointerType: "keyboard",
key: " "
- }, G(e).click(), UC("keyboard");
+ }, K(e).click(), KC("keyboard");
},
Enter: (e) => {
ie.current = {
pointerType: "keyboard",
key: "Enter"
};
- let t = G(e);
- if (t.tagName !== "A") t.click(), UC("keyboard");
- else return UC("keyboard"), {
+ let t = K(e);
+ if (t.tagName !== "A") t.click(), KC("keyboard");
+ else return KC("keyboard"), {
shouldPreventDefault: !1,
shouldContinuePropagation: !1
};
@@ -27853,17 +27878,17 @@ function Nse(e, t, n) {
},
onKeyDown: v,
onKeyUp: y
- }), { focusableProps: pe } = vw({
+ }), { focusableProps: pe } = xw({
onBlur: S,
onFocus: b,
onFocusChange: x
- }, n), me = cT(k?.props);
+ }, n), me = dT(k?.props);
delete me.id;
- let L = SC(k?.props);
+ let L = TC(k?.props);
return {
menuItemProps: {
...ne,
- ...K(me, L, w ? {
+ ...q(me, L, w ? {
onFocus: se.onFocus,
"data-collection": se["data-collection"],
"data-key": se["data-key"]
@@ -27874,15 +27899,15 @@ function Nse(e, t, n) {
descriptionProps: { id: te },
keyboardShortcutProps: { id: P },
isFocused: ce,
- isFocusVisible: ce && C.isFocused && VC() && !T,
+ isFocusVisible: ce && C.isFocused && WC() && !T,
isSelected: D,
isPressed: ue,
isDisabled: E
};
}
// node_modules/react-aria/dist/private/menu/useMenuSection.mjs
-function Pse(e) {
- let { heading: t, "aria-label": n } = e, r = iw();
+function Fse(e) {
+ let { heading: t, "aria-label": n } = e, r = sw();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -27897,15 +27922,15 @@ function Pse(e) {
};
}
// node_modules/react-aria/dist/private/utils/useResizeObserver.mjs
-function Fse() {
+function Ise() {
return window.ResizeObserver !== void 0;
}
-function XO(e) {
- let { ref: t, box: n, onResize: r } = e, i = Kw(r);
+function $O(e) {
+ let { ref: t, box: n, onResize: r } = e, i = Yw(r);
(0, F.useEffect)(() => {
let e = t?.current;
if (e) {
- if (Fse()) {
+ if (Ise()) {
let t = new window.ResizeObserver((e) => {
e.length && i();
});
@@ -27920,154 +27945,154 @@ function XO(e) {
}, [t, n]);
}
// node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var ZO = {};
-ZO = { dismiss: "تجاهل" };
+var ek = {};
+ek = { dismiss: "تجاهل" };
// node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var QO = {};
-QO = { dismiss: "Отхвърляне" };
+var tk = {};
+tk = { dismiss: "Отхвърляне" };
// node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var $O = {};
-$O = { dismiss: "Odstranit" };
+var nk = {};
+nk = { dismiss: "Odstranit" };
// node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var ek = {};
-ek = { dismiss: "Luk" };
+var rk = {};
+rk = { dismiss: "Luk" };
// node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var tk = {};
-tk = { dismiss: "Schließen" };
+var ik = {};
+ik = { dismiss: "Schließen" };
// node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var nk = {};
-nk = { dismiss: "Απόρριψη" };
+var ak = {};
+ak = { dismiss: "Απόρριψη" };
// node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var rk = {};
-rk = { dismiss: "Dismiss" };
+var ok = {};
+ok = { dismiss: "Dismiss" };
// node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var ik = {};
-ik = { dismiss: "Descartar" };
+var sk = {};
+sk = { dismiss: "Descartar" };
// node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var ak = {};
-ak = { dismiss: "Lõpeta" };
+var ck = {};
+ck = { dismiss: "Lõpeta" };
// node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var ok = {};
-ok = { dismiss: "Hylkää" };
+var lk = {};
+lk = { dismiss: "Hylkää" };
// node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var sk = {};
-sk = { dismiss: "Rejeter" };
+var uk = {};
+uk = { dismiss: "Rejeter" };
// node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var ck = {};
-ck = { dismiss: "התעלם" };
+var dk = {};
+dk = { dismiss: "התעלם" };
// node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var lk = {};
-lk = { dismiss: "Odbaci" };
+var fk = {};
+fk = { dismiss: "Odbaci" };
// node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var uk = {};
-uk = { dismiss: "Elutasítás" };
+var pk = {};
+pk = { dismiss: "Elutasítás" };
// node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var dk = {};
-dk = { dismiss: "Ignora" };
+var mk = {};
+mk = { dismiss: "Ignora" };
// node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var fk = {};
-fk = { dismiss: "閉じる" };
+var hk = {};
+hk = { dismiss: "閉じる" };
// node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var pk = {};
-pk = { dismiss: "무시" };
+var gk = {};
+gk = { dismiss: "무시" };
// node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var mk = {};
-mk = { dismiss: "Atmesti" };
+var _k = {};
+_k = { dismiss: "Atmesti" };
// node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var hk = {};
-hk = { dismiss: "Nerādīt" };
+var vk = {};
+vk = { dismiss: "Nerādīt" };
// node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var gk = {};
-gk = { dismiss: "Lukk" };
+var yk = {};
+yk = { dismiss: "Lukk" };
// node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var _k = {};
-_k = { dismiss: "Negeren" };
+var bk = {};
+bk = { dismiss: "Negeren" };
// node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var vk = {};
-vk = { dismiss: "Zignoruj" };
+var xk = {};
+xk = { dismiss: "Zignoruj" };
// node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var yk = {};
-yk = { dismiss: "Descartar" };
+var Sk = {};
+Sk = { dismiss: "Descartar" };
// node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var bk = {};
-bk = { dismiss: "Dispensar" };
+var Ck = {};
+Ck = { dismiss: "Dispensar" };
// node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var xk = {};
-xk = { dismiss: "Revocare" };
+var wk = {};
+wk = { dismiss: "Revocare" };
// node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var Sk = {};
-Sk = { dismiss: "Пропустить" };
+var Tk = {};
+Tk = { dismiss: "Пропустить" };
// node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var Ck = {};
-Ck = { dismiss: "Zrušiť" };
+var Ek = {};
+Ek = { dismiss: "Zrušiť" };
// node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var wk = {};
-wk = { dismiss: "Opusti" };
+var Dk = {};
+Dk = { dismiss: "Opusti" };
// node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var Tk = {};
-Tk = { dismiss: "Odbaci" };
+var Ok = {};
+Ok = { dismiss: "Odbaci" };
// node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var Ek = {};
-Ek = { dismiss: "Avvisa" };
+var kk = {};
+kk = { dismiss: "Avvisa" };
// node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var Dk = {};
-Dk = { dismiss: "Kapat" };
+var Ak = {};
+Ak = { dismiss: "Kapat" };
// node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var Ok = {};
-Ok = { dismiss: "Скасувати" };
+var jk = {};
+jk = { dismiss: "Скасувати" };
// node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var kk = {};
-kk = { dismiss: "取消" };
+var Mk = {};
+Mk = { dismiss: "取消" };
// node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var Ak = {};
-Ak = { dismiss: "關閉" };
+var Nk = {};
+Nk = { dismiss: "關閉" };
// node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var jk = {};
-jk = {
- "ar-AE": ZO,
- "bg-BG": QO,
- "cs-CZ": $O,
- "da-DK": ek,
- "de-DE": tk,
- "el-GR": nk,
- "en-US": rk,
- "es-ES": ik,
- "et-EE": ak,
- "fi-FI": ok,
- "fr-FR": sk,
- "he-IL": ck,
- "hr-HR": lk,
- "hu-HU": uk,
- "it-IT": dk,
- "ja-JP": fk,
- "ko-KR": pk,
- "lt-LT": mk,
- "lv-LV": hk,
- "nb-NO": gk,
- "nl-NL": _k,
- "pl-PL": vk,
- "pt-BR": yk,
- "pt-PT": bk,
- "ro-RO": xk,
- "ru-RU": Sk,
- "sk-SK": Ck,
- "sl-SI": wk,
- "sr-SP": Tk,
- "sv-SE": Ek,
- "tr-TR": Dk,
- "uk-UA": Ok,
- "zh-CN": kk,
- "zh-TW": Ak
+var Pk = {};
+Pk = {
+ "ar-AE": ek,
+ "bg-BG": tk,
+ "cs-CZ": nk,
+ "da-DK": rk,
+ "de-DE": ik,
+ "el-GR": ak,
+ "en-US": ok,
+ "es-ES": sk,
+ "et-EE": ck,
+ "fi-FI": lk,
+ "fr-FR": uk,
+ "he-IL": dk,
+ "hr-HR": fk,
+ "hu-HU": pk,
+ "it-IT": mk,
+ "ja-JP": hk,
+ "ko-KR": gk,
+ "lt-LT": _k,
+ "lv-LV": vk,
+ "nb-NO": yk,
+ "nl-NL": bk,
+ "pl-PL": xk,
+ "pt-BR": Sk,
+ "pt-PT": Ck,
+ "ro-RO": wk,
+ "ru-RU": Tk,
+ "sk-SK": Ek,
+ "sl-SI": Dk,
+ "sr-SP": Ok,
+ "sv-SE": kk,
+ "tr-TR": Ak,
+ "uk-UA": jk,
+ "zh-CN": Mk,
+ "zh-TW": Nk
};
// node_modules/react-aria/dist/private/overlays/DismissButton.mjs
-function Ise(e) {
+function Lse(e) {
return e && e.__esModule ? e.default : e;
}
-function Mk(e) {
- let { onDismiss: t, ...n } = e, r = Jw(n, oT(Ise(jk), "@react-aria/overlays").format("dismiss")), i = () => {
+function Fk(e) {
+ let { onDismiss: t, ...n } = e, r = Zw(n, lT(Lse(Pk), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
- return /*#__PURE__*/ F.createElement(AE, null, /*#__PURE__*/ F.createElement("button", {
+ return /*#__PURE__*/ F.createElement(NE, null, /*#__PURE__*/ F.createElement("button", {
...r,
tabIndex: -1,
onClick: i,
@@ -28078,35 +28103,35 @@ function Mk(e) {
}));
}
// node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var Nk = [];
-function Pk(e, t) {
+var Ik = [];
+function Lk(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 && !Nk.includes(t)) return Nk.push(t), () => {
- let e = Nk.indexOf(t);
- e >= 0 && Nk.splice(e, 1);
+ if (i && !Ik.includes(t)) return Ik.push(t), () => {
+ let e = Ik.indexOf(t);
+ e >= 0 && Ik.splice(e, 1);
};
}, [i, t]);
let l = () => {
- Nk[Nk.length - 1] === t && n && n();
+ Ik[Ik.length - 1] === t && n && n();
}, u = (e) => {
- let n = Nk[Nk.length - 1];
- c.current = n, (!s || s(G(e))) && n === t && e.stopPropagation();
+ let n = Ik[Ik.length - 1];
+ c.current = n, (!s || s(K(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(G(e))) && (Nk[Nk.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
- }, { keyboardProps: f } = mw({ shortcuts: { Escape: () => {
+ (!s || s(K(e))) && (Ik[Ik.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ }, { keyboardProps: f } = _w({ shortcuts: { Escape: () => {
if (!o) l();
else return !1;
} } });
- bse({
+ xse({
ref: t,
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
});
- let { focusWithinProps: p } = yE({
+ let { focusWithinProps: p } = SE({
isDisabled: !r,
onBlurWithin: (e) => {
- e.relatedTarget && !Moe(e.relatedTarget) && (!s || s(e.relatedTarget)) && n?.();
+ e.relatedTarget && !Noe(e.relatedTarget) && (!s || s(e.relatedTarget)) && n?.();
}
});
return {
@@ -28118,87 +28143,87 @@ function Pk(e, t) {
};
}
// node_modules/react-aria/dist/private/utils/runAfterKeyboard.mjs
-var Lse = 200, Fk = 50, Rse = 600, Ik = /* @__PURE__ */ new WeakMap(), Lk = /* @__PURE__ */ new Set(), Rk = /* @__PURE__ */ new Set();
+var Rse = 200, Rk = 50, zk = 600, Bk = /* @__PURE__ */ new WeakMap(), Vk = /* @__PURE__ */ new Set(), Hk = /* @__PURE__ */ new Set();
function zse(e, t) {
- let n = Gw();
- if (e !== n || t.aborted) for (let e of Rk) e(n), Rk.delete(e);
- if (!e && n && uC() && !t.aborted) window.clearInterval(Ik.get(window)), Ik.set(window, zk(Lse));
+ let n = Jw();
+ if (e !== n || t.aborted) for (let e of Hk) e(n), Hk.delete(e);
+ if (!e && n && pC() && !t.aborted) window.clearInterval(Bk.get(window)), Bk.set(window, Uk(Rse));
else {
- if (e !== n || t.aborted) for (let e of Lk) e(n), Lk.delete(e);
- (Rk.size + Lk.size <= 0 || t.aborted) && (window.clearInterval(Ik.get(window)), Ik.delete(window));
+ if (e !== n || t.aborted) for (let e of Vk) e(n), Vk.delete(e);
+ (Hk.size + Vk.size <= 0 || t.aborted) && (window.clearInterval(Bk.get(window)), Bk.delete(window));
}
}
-function zk(e = Rse) {
- return window.setInterval(zse, Fk, Gw(), AbortSignal.timeout(e));
+function Uk(e = zk) {
+ return window.setInterval(zse, Rk, Jw(), AbortSignal.timeout(e));
}
-function Bk(e) {
- if (!Hw()) return e(!1), () => {};
+function Wk(e) {
+ if (!Gw()) return e(!1), () => {};
let t = window.requestAnimationFrame(() => {
t = window.requestAnimationFrame(() => {
- let t = Uw(document.hasFocus() ? BS() : null);
- if (Gw() === t || Gw() && !t) return e(t);
- Rk.add(e), Ik.has(window) || Ik.set(window, zk());
+ let t = Kw(document.hasFocus() ? US() : null);
+ if (Jw() === t || Jw() && !t) return e(t);
+ Hk.add(e), Bk.has(window) || Bk.set(window, Uk());
});
});
return () => {
- window.cancelAnimationFrame(t), Rk.delete(e);
+ window.cancelAnimationFrame(t), Hk.delete(e);
};
}
function Bse(e) {
- if (!Hw()) return e(!1), () => {};
+ if (!Gw()) return e(!1), () => {};
let t = window.requestAnimationFrame(() => {
t = window.requestAnimationFrame(() => {
- let t = Uw(document.hasFocus() ? BS() : null);
- if (Gw() === t) return e(t);
- Lk.add(e), Ik.has(window) || Ik.set(window, zk());
+ let t = Kw(document.hasFocus() ? US() : null);
+ if (Jw() === t) return e(t);
+ Vk.add(e), Bk.has(window) || Bk.set(window, Uk());
});
});
return () => {
- window.cancelAnimationFrame(t), Lk.delete(e);
+ window.cancelAnimationFrame(t), Vk.delete(e);
};
}
// node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var Vk = typeof document < "u" && window.visualViewport, Hk = 0, Uk;
-function Wk(e = {}) {
+var Gk = typeof document < "u" && window.visualViewport, Kk = 0, qk;
+function Jk(e = {}) {
let { isDisabled: t, UNSTABLE_overrideFocus: n } = e;
- XS(() => {
- if (!t) return Hk++, Hk === 1 && (Uk = cC() && uC() ? Hse() : Vse(n)), () => {
- Hk--, Hk === 0 && Uk();
+ $S(() => {
+ if (!t) return Kk++, Kk === 1 && (qk = dC() && pC() ? Vse() : Yk(n)), () => {
+ Kk--, Kk === 0 && qk();
};
}, [t, n]);
}
-function Vse(e) {
+function Yk(e) {
let t = window.innerWidth - document.documentElement.clientWidth;
- return ew(t > 0 && ("scrollbarGutter" in document.documentElement.style ? LS(document.documentElement, "scrollbar-gutter", "stable") : LS(document.documentElement, "padding-right", `${t}px`)), LS(document.documentElement, "overflow", "hidden"), e && Kk(), e && Hw() && Gk());
+ return rw(t > 0 && ("scrollbarGutter" in document.documentElement.style ? BS(document.documentElement, "scrollbar-gutter", "stable") : BS(document.documentElement, "padding-right", `${t}px`)), BS(document.documentElement, "overflow", "hidden"), e && Zk(), e && Gw() && Xk());
}
-function Hse() {
- let e = LS(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
- let r = G(e);
- t = ZT(r, !0) ? r : QT(r, !0), n = !1;
+function Vse() {
+ let e = BS(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
+ let r = K(e);
+ t = eE(r, !0) ? r : tE(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 = hT();
+ }, i = document.createElement("style"), a = vT();
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 = Kk(), c = ew(IS(document, "touchstart", r, {
+ }, s = Zk(), c = rw(zS(document, "touchstart", r, {
passive: !1,
capture: !0
- }), IS(document, "touchmove", o, {
+ }), zS(document, "touchmove", o, {
passive: !1,
capture: !0
- }), Gk());
+ }), Xk());
return () => {
e(), c(), i.remove(), s();
};
}
-function Gk() {
- return IS(document, "blur", (e) => {
- let t = G(e), n = e.relatedTarget;
- n && Uw(n) ? n.focus() : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+function Xk() {
+ return zS(document, "blur", (e) => {
+ let t = K(e), n = e.relatedTarget;
+ n && Kw(n) ? n.focus() : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
}, !0);
}
-function Kk() {
+function Zk() {
let e = HTMLElement.prototype.focus;
return Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -28209,9 +28234,9 @@ function Kk() {
preventScroll: !0
}), !t || !t.preventScroll) {
let e = () => {
- BS() === this && Use(this);
+ US() === this && Hse(this);
};
- Bk((t) => t ? e() : Bse(() => e()));
+ Wk((t) => t ? e() : Bse(() => e()));
}
}
}), () => {
@@ -28222,15 +28247,15 @@ function Kk() {
});
};
}
-function Use(e) {
+function Hse(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t && n.isConnected;) {
- let e = QT(n);
+ let e = tE(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;
- Vk && (n = Math.min(n, Vk.offsetTop + Vk.height));
+ Gk && (n = Math.min(n, Gk.offsetTop + Gk.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)),
@@ -28242,56 +28267,56 @@ function Use(e) {
}
}
// node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
-function Wse(e, t, n) {
- let { overlayProps: r, underlayProps: i } = Pk({
+function Use(e, t, n) {
+ let { overlayProps: r, underlayProps: i } = Lk({
...e,
isOpen: t.isOpen,
onClose: t.close
}, n);
- Wk({
+ Jk({
isDisabled: !t.isOpen,
UNSTABLE_overrideFocus: e.UNSTABLE_overrideFocus
- }), qD();
+ }), XD();
let { isEntering: a } = e;
return (0, F.useEffect)(() => {
- if (t.isOpen && n.current) return a ? LE(n.current) : IE([n.current], { shouldUseInert: !0 });
+ if (t.isOpen && n.current) return a ? BE(n.current) : zE([n.current], { shouldUseInert: !0 });
}, [
t.isOpen,
a,
n
]), {
- modalProps: K(r),
+ modalProps: q(r),
underlayProps: i
};
}
// node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var qk = {
+var Qk = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, Jk = {
+}, $k = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
-}, Gse = {
+}, Wse = {
top: "left",
left: "top"
-}, Yk = {
+}, eA = {
top: "height",
left: "width"
-}, Xk = {
+}, tA = {
width: "totalWidth",
height: "totalHeight"
-}, Zk = {}, Kse = () => typeof document < "u" ? window.visualViewport : null;
-function Qk(e, t) {
+}, nA = {}, Gse = () => typeof document < "u" ? window.visualViewport : null;
+function rA(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} = aA(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
- return uC() && (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} = lA(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ return pC() && (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,
@@ -28301,7 +28326,7 @@ function Qk(e, t) {
left: s
};
}
-function qse(e) {
+function Kse(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -28309,11 +28334,11 @@ function qse(e) {
height: e.scrollHeight
};
}
-function $k(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[Yk[e]], l = o[e] + r.scroll[qk[e]] + a, u = o[e] + r.scroll[qk[e]] + c - a, d = t - s + r.scroll[qk[e]] + o[e] - r[qk[e]], f = t - s + n + r.scroll[qk[e]] + o[e] - r[qk[e]];
+function iA(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[eA[e]], l = o[e] + r.scroll[Qk[e]] + a, u = o[e] + r.scroll[Qk[e]] + c - a, d = t - s + r.scroll[Qk[e]] + o[e] - r[Qk[e]], f = t - s + n + r.scroll[Qk[e]] + o[e] - r[Qk[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
-function Jse(e) {
+function qse(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -28322,55 +28347,55 @@ function Jse(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function eA(e) {
- if (Zk[e]) return Zk[e];
- let [t, n] = e.split(" "), r = qk[t] || "right", i = Gse[r];
- qk[n] || (n = "center");
- let a = Yk[r], o = Yk[i];
- return Zk[e] = {
+function aA(e) {
+ if (nA[e]) return nA[e];
+ let [t, n] = e.split(" "), r = Qk[t] || "right", i = Wse[r];
+ Qk[n] || (n = "center");
+ let a = eA[r], o = eA[i];
+ return nA[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, Zk[e];
+ }, nA[e];
}
-function tA(e, t, n, r, i, a, o, s, c, l, u) {
+function oA(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] = SE(_[m], v, y), d === p) {
- let t = s ? u[h] : u[Xk[h]];
- _[Jk[p]] = Math.floor(t - e[p] + i);
+ if (_[m] = TE(_[m], v, y), d === p) {
+ let t = s ? u[h] : u[tA[h]];
+ _[$k[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
-function Yse(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[Xk.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+function Jse(e, t, n, r, i, a, o, s, c, l, u) {
+ let d = (e.top == null ? c[tA.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 nA(e, t, n, r, i, a, o, s) {
+function sA(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[Jk[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[Jk[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[$k[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[$k[l]] - i);
}
-function Xse(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = eA(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = tA(t, s, n, v, u, d, l, f, m, h, c), T = u, E = nA(s, l, t, i, a + u, v, c, g);
+function Yse(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
+ let v = aA(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = oA(t, s, n, v, u, d, l, f, m, h, c), T = u, E = sA(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = eA(`${Jk[S]} ${C}`), r = tA(t, s, n, e, u, d, l, f, m, h, c);
- nA(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = aA(`${$k[S]} ${C}`), r = oA(t, s, n, e, u, d, l, f, m, h, c);
+ sA(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 = $k(b, w[b], n[x], s, c, a, l);
+ let O = iA(b, w[b], n[x], s, c, a, l);
w[b] += O;
- let k = Yse(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = tA(t, s, n, v, T, d, l, f, m, h, c), O = $k(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, j = t[b] - w[b] - i[qk[b]], M = j + .5 * t[x], ee = m / 2 + h, N = qk[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - N - m / 2 - h;
- A[b] = SE(SE(M, t[b] + m / 2 - (w[b] + i[qk[b]]), t[b] + t[x] - m / 2 - (w[b] + i[qk[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 = Jse(w, s, l, f, i, a, n.height, D, c, g, _);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = oA(t, s, n, v, T, d, l, f, m, h, c), O = iA(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, j = t[b] - w[b] - i[Qk[b]], M = j + .5 * t[x], ee = m / 2 + h, N = Qk[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - N - m / 2 - h;
+ A[b] = TE(TE(M, t[b] + m / 2 - (w[b] + i[Qk[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Qk[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
@@ -28384,17 +28409,17 @@ function Xse(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
triggerAnchorPoint: ne
};
}
-function rA(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 = Kse(), h = r instanceof HTMLElement ? sA(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? aA(n, !1, p) : oA(n, h, !1, p);
+function Xse(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 = Gse(), h = r instanceof HTMLElement ? dA(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? lA(n, !1, p) : uA(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 = aA(r, !0), x = Jse(r);
+ let b = lA(r, !0), x = qse(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = qse(i), C = Qk(s, m), w = Qk(h, m), T;
+ let S = Kse(i), C = rA(s, m), w = rA(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = iA(h, !1);
+ let e = cA(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -28406,11 +28431,11 @@ function rA(e) {
left: 0,
width: 0,
height: 0
- } : oA(s, h, !1);
- let E = zS(s, h);
- return Xse(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
+ } : uA(s, h, !1);
+ let E = HS(s, h);
+ return Yse(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function iA(e, t) {
+function cA(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,
@@ -28419,8 +28444,8 @@ function iA(e, t) {
height: a
};
}
-function aA(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || iA(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function lA(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || cA(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -28428,29 +28453,29 @@ function aA(e, t, n) {
height: o
};
}
-function oA(e, t, n, r) {
+function uA(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || iA(e, n);
+ if (i.position === "fixed") a = r || cA(e, n);
else {
- a = aA(e, n, r);
- let i = aA(t, n), o = window.getComputedStyle(t);
+ a = lA(e, n, r);
+ let i = lA(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 sA(e) {
+function dA(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !cA(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !cA(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !fA(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !fA(t);) t = t.parentElement;
return t || document.documentElement;
}
-function cA(e) {
+function fA(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 lA = typeof document < "u" ? window.visualViewport : null;
-function Zse(e) {
- let { direction: t } = eT(), { 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 pA = typeof document < "u" ? window.visualViewport : null;
+function mA(e) {
+ let { direction: t } = rT(), { 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,
@@ -28467,15 +28492,15 @@ function Zse(e) {
g,
_,
n
- ], S = (0, F.useRef)(lA?.scale);
+ ], S = (0, F.useRef)(pA?.scale);
(0, F.useEffect)(() => {
- m && (S.current = lA?.scale);
+ m && (S.current = pA?.scale);
}, [m]);
let C = (0, F.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || lA?.scale !== S.current) return;
+ if (p === !1 || !m || !i.current || !r.current || !u || pA?.scale !== S.current) return;
let e = null;
- if (o.current && HS(o.current)) {
- let t = BS()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
+ if (o.current && GS(o.current)) {
+ let t = US()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
e = {
type: "top",
offset: (t?.top ?? 0) - n.top
@@ -28483,8 +28508,8 @@ function Zse(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 = rA({
- placement: $se(s, t),
+ let y = Xse({
+ placement: Qse(s, t),
overlayNode: i.current,
targetNode: r.current,
scrollNode: o.current || i.current,
@@ -28494,28 +28519,28 @@ function Zse(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? iA(a.current, !0).width : 0),
+ arrowSize: n ?? (a?.current ? cA(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 = BS();
+ let x = US();
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);
- XS(C, x), Qse(C), XO({
+ $S(C, x), Zse(C), $O({
ref: i,
onResize: C
- }), XO({
+ }), $O({
ref: r,
onResize: C
});
let w = (0, F.useRef)(!1);
- XS(() => {
+ $S(() => {
let e, t = () => {
w.current = !0, clearTimeout(e), e = setTimeout(() => {
w.current = !1;
@@ -28523,16 +28548,16 @@ function Zse(e) {
}, n = () => {
w.current && t();
};
- lA?.addEventListener("resize", t), lA?.addEventListener("scroll", n);
- let r = IS(VS(window), "scroll", n);
+ pA?.addEventListener("resize", t), pA?.addEventListener("scroll", n);
+ let r = zS(WS(window), "scroll", n);
return () => {
- lA?.removeEventListener("resize", t), lA?.removeEventListener("scroll", n), r();
+ pA?.removeEventListener("resize", t), pA?.removeEventListener("scroll", n), r();
};
}, [C]);
let T = (0, F.useCallback)(() => {
w.current || h?.();
}, [h, w]);
- return use({
+ return dse({
triggerRef: r,
isOpen: m,
onClose: h && T
@@ -28558,24 +28583,24 @@ function Zse(e) {
updatePosition: C
};
}
-function Qse(e) {
- XS(() => (window.addEventListener("resize", e, !1), () => {
+function Zse(e) {
+ $S(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
-function $se(e, t) {
+function Qse(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 ece(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 } = Pk({
+function $se(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 } = Lk({
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 } = Zse({
+ }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = mA({
...c,
targetRef: n,
overlayRef: r,
@@ -28583,17 +28608,17 @@ function ece(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)
});
- Wk({ isDisabled: a || !t.isOpen }), (0, F.useEffect)(() => {
- if (t.isOpen && r.current) return a ? LE(i?.current ?? r.current) : IE([i?.current ?? r.current], { shouldUseInert: !0 });
+ Jk({ isDisabled: a || !t.isOpen }), (0, F.useEffect)(() => {
+ if (t.isOpen && r.current) return a ? BE(i?.current ?? r.current) : zE([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
t.isOpen,
r,
i
]);
- let { focusWithinProps: g } = yE(e);
+ let { focusWithinProps: g } = SE(e);
return {
- popoverProps: K(u, f, g),
+ popoverProps: q(u, f, g),
arrowProps: p,
underlayProps: d,
placement: m,
@@ -28601,12 +28626,12 @@ function ece(e, t) {
};
}
// node_modules/react-aria/dist/private/radio/utils.mjs
-var uA = /* @__PURE__ */ new WeakMap();
+var hA = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/radio/useRadio.mjs
-function tce(e, t, n) {
+function ece(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: _ } = ST({
+ }, { pressProps: g, isPressed: _ } = TT({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -28614,7 +28639,7 @@ function tce(e, t, n) {
onPressUp: d,
onClick: f,
isDisabled: p
- }), { pressProps: v, isPressed: y } = ST({
+ }), { pressProps: v, isPressed: y } = TT({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -28624,17 +28649,17 @@ function tce(e, t, n) {
onPress(e) {
u?.(e), t.setSelectedValue(r), n.current?.focus();
}
- }), { focusableProps: b } = vw(K(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = K(g, b), S = cT(e, { labelable: !0 }), C = -1;
+ }), { focusableProps: b } = xw(q(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = q(g, b), S = dT(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 } = uA.get(t);
- iE(n, t.defaultSelectedValue, t.setSelectedValue), aE({ validationBehavior: O }, t, n);
- let k = oE();
+ let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = hA.get(t);
+ sE(n, t.defaultSelectedValue, t.setSelectedValue), cE({ validationBehavior: O }, t, n);
+ let k = lE();
return {
- labelProps: K(v, (0, F.useMemo)(() => ({
+ labelProps: q(v, (0, F.useMemo)(() => ({
onClick: (e) => e.preventDefault(),
onMouseDown: (e) => e.preventDefault()
}), [])),
- inputProps: K(S, {
+ inputProps: q(S, {
...x,
type: "radio",
name: w,
@@ -28659,13 +28684,13 @@ function tce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function nce(e, t) {
- let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = eT(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = vE({
+function tce(e, t) {
+ let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = rT(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = xE({
...e,
labelElementType: "span",
isInvalid: t.isInvalid,
errorMessage: e.errorMessage || d
- }), _ = cT(e, { labelable: !0 }), { focusWithinProps: v } = yE({
+ }), _ = dT(e, { labelable: !0 }), { focusWithinProps: v } = SE({
onBlurWithin(n) {
e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);
},
@@ -28673,13 +28698,13 @@ function nce(e, t) {
onFocusWithinChange: e.onFocusChange
});
function y(e, n) {
- let r = WT(n.currentTarget, {
- from: G(n),
- accept: (e) => e instanceof NS(e).HTMLInputElement && e.type === "radio"
+ let r = qT(n.currentTarget, {
+ from: K(n),
+ accept: (e) => e instanceof IS(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 } = mw({
+ let { keyboardProps: b } = _w({
shortcuts: {
ArrowRight: (e) => y(l === "rtl" && s !== "vertical" ? "prev" : "next", e),
ArrowLeft: (e) => y(l === "rtl" && s !== "vertical" ? "next" : "prev", e),
@@ -28687,15 +28712,15 @@ function nce(e, t) {
ArrowUp: (e) => y("prev", e)
},
allowRepeats: !0
- }), x = iw(n);
- return uA.set(t, {
+ }), x = sw(n);
+ return hA.set(t, {
name: x,
form: r,
descriptionId: h.id,
errorMessageId: g.id,
validationBehavior: c
}), {
- radioGroupProps: K(_, {
+ radioGroupProps: q(_, {
role: "radiogroup",
...b,
"aria-invalid": t.isInvalid || void 0,
@@ -28716,21 +28741,21 @@ function nce(e, t) {
};
}
// node_modules/react-aria/dist/private/select/useSelect.mjs
-var dA = /* @__PURE__ */ new WeakMap();
-function rce(e, t, n) {
- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = VD({
+var gA = /* @__PURE__ */ new WeakMap();
+function nce(e, t, n) {
+ let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = WD({
usage: "search",
sensitivity: "base"
- }), u = (0, F.useMemo)(() => r || new UE(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 } = DD({
+ ]), { menuTriggerProps: d, menuProps: f } = AD({
isDisabled: i,
type: "listbox"
- }, t, n), { keyboardProps: p } = mw({
+ }, t, n), { keyboardProps: p } = _w({
shortcuts: {
ArrowLeft: () => {
if (t.selectionManager.selectionMode === "multiple") return !1;
@@ -28746,21 +28771,21 @@ function rce(e, t, n) {
allowRepeats: !0,
onKeyDown: e.onKeyDown,
onKeyUp: e.onKeyUp
- }), { typeSelectProps: m } = kD({
+ }), { typeSelectProps: m } = MD({
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 } = vE({
+ }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = xE({
...e,
labelElementType: "span",
isInvalid: h,
errorMessage: e.errorMessage || g
});
t.selectionManager.selectionMode === "multiple" && (m = {});
- let S = cT(e, { labelable: !0 }), C = K(m, d, y), w = iw();
- return dA.set(t, {
+ let S = dT(e, { labelable: !0 }), C = q(m, d, y), w = sw();
+ return gA.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -28770,13 +28795,13 @@ function rce(e, t, n) {
labelProps: {
...v,
onClick: () => {
- e.isDisabled || (n.current?.focus(), UC("keyboard"));
+ e.isDisabled || (n.current?.focus(), KC("keyboard"));
}
},
- triggerProps: K(S, {
+ triggerProps: q(S, {
...C,
isDisabled: i,
- onKeyDown: ew(C.onKeyDown, p.onKeyDown),
+ onKeyDown: rw(C.onKeyDown, p.onKeyDown),
onKeyUp: p.onKeyUp,
"aria-labelledby": [
w,
@@ -28800,7 +28825,7 @@ function rce(e, t, n) {
disallowEmptySelection: !0,
linkBehavior: "selection",
onBlur: (n) => {
- zS(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
+ HS(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(" ")
},
@@ -28820,18 +28845,18 @@ function rce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function ice(e, t, n) {
- let r = dA.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = kE({ style: {
+function rce(e, t, n) {
+ let r = gA.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = ME({ style: {
position: "fixed",
top: 0,
left: 0
} });
- iE(e.selectRef, t.defaultValue, t.setValue), aE({
+ sE(e.selectRef, t.defaultValue, t.setValue), cE({
validationBehavior: c,
focus: () => n.current?.focus()
}, t, e.selectRef);
let d = t.setValue, f = (0, F.useCallback)((e) => {
- let t = G(e);
+ let t = K(e);
t.multiple ? d(Array.from(t.selectedOptions, (e) => e.value)) : d(e.currentTarget.value);
}, [d]);
return {
@@ -28856,8 +28881,8 @@ function ice(e, t, n) {
}
};
}
-function ace(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 } = ice({
+function ice(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 } = rce({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
@@ -28881,7 +28906,7 @@ function ace(e) {
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = dA.get(t) || {};
+ let { validationBehavior: e } = gA.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -28911,8 +28936,8 @@ function ace(e) {
return null;
}
// node_modules/react-aria/dist/private/separator/useSeparator.mjs
-function oce(e) {
- let t = cT(e, { labelable: !0 }), n;
+function ace(e) {
+ let t = dT(e, { labelable: !0 }), n;
return e.orientation === "vertical" && (n = "vertical"), e.elementType === "hr" ? { separatorProps: t } : { separatorProps: {
...t,
role: "separator",
@@ -28920,8 +28945,8 @@ function oce(e) {
} };
}
// node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function sce(e, t, n) {
- let { labelProps: r, inputProps: i, isSelected: a, ...o } = hE(e, t, n);
+function oce(e, t, n) {
+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = vE(e, t, n);
return {
labelProps: r,
inputProps: {
@@ -28934,10 +28959,10 @@ function sce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var fA = class {
+var _A = 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 cce(e.layout) : new HE(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new sce(e.layout) : new GE(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -28973,7 +28998,7 @@ var fA = class {
let n = this.collection.getItem(e);
if (!n) return null;
let r = 0;
- for (let e of MD(n, this.collection)) {
+ for (let e of FD(n, this.collection)) {
if (e.colSpan && e.colSpan + r > t || (e.colSpan && (r = r + e.colSpan - 1), r === t)) return e.key ?? null;
r++;
}
@@ -29007,13 +29032,13 @@ var fA = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = MD(t, this.collection);
- return (this.direction === "rtl" ? FD(e)?.key : ND(e)?.key) ?? null;
+ let e = FD(t, this.collection);
+ return (this.direction === "rtl" ? RD(e)?.key : ID(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = MD(n, this.collection), i = (this.direction === "rtl" ? PD(r, t.index - 1) : PD(r, t.index + 1)) ?? null;
+ let r = FD(n, this.collection), i = (this.direction === "rtl" ? LD(r, t.index - 1) : LD(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;
@@ -29022,13 +29047,13 @@ var fA = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = MD(t, this.collection);
- return (this.direction === "rtl" ? ND(e)?.key : FD(e)?.key) ?? null;
+ let e = FD(t, this.collection);
+ return (this.direction === "rtl" ? ID(e)?.key : RD(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = MD(n, this.collection), i = (this.direction === "rtl" ? PD(r, t.index + 1) : PD(r, t.index - 1)) ?? null;
+ let r = FD(n, this.collection), i = (this.direction === "rtl" ? LD(r, t.index + 1) : LD(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;
@@ -29039,13 +29064,13 @@ var fA = 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 ? ND(MD(e, this.collection))?.key ?? null : null;
+ return e ? ID(FD(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 = ND(MD(e, this.collection))?.key ?? null;
+ n = ID(FD(e, this.collection))?.key ?? null;
}
return n;
}
@@ -29055,13 +29080,13 @@ var fA = 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 ? FD(MD(e, this.collection))?.key ?? null : null;
+ return e ? RD(FD(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 = FD(MD(e, this.collection))?.key ?? null;
+ n = RD(FD(e, this.collection))?.key ?? null;
}
return n;
}
@@ -29097,13 +29122,13 @@ var fA = 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" ? ND(MD(t, this.collection))?.key ?? null : t.key;
+ if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? ID(FD(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;
}
-}, cce = class {
+}, sce = class {
constructor(e) {
this.layout = e;
}
@@ -29116,15 +29141,15 @@ var fA = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, pA = /* @__PURE__ */ new WeakMap();
+}, vA = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/grid/useGrid.mjs
-function lce(e, t, n) {
+function cce(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 = VD({
+ let h = WD({
usage: "search",
sensitivity: "base"
- }), { direction: g } = eT(), _ = t.selectionManager.disabledBehavior, v = (0, F.useMemo)(() => a || new fA({
+ }), { direction: g } = rT(), _ = t.selectionManager.disabledBehavior, v = (0, F.useMemo)(() => a || new _A({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -29141,7 +29166,7 @@ function lce(e, t, n) {
g,
h,
o
- ]), { collectionProps: y } = jD({
+ ]), { collectionProps: y } = PD({
ref: n,
selectionManager: m,
keyboardDelegate: v,
@@ -29149,8 +29174,8 @@ function lce(e, t, n) {
scrollRef: s,
disallowTypeAhead: i,
escapeKeyBehavior: d
- }), b = iw(e.id);
- pA.set(t, {
+ }), b = sw(e.id);
+ vA.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -29159,42 +29184,42 @@ function lce(e, t, n) {
shouldSelectOnPressUp: f,
keyboardNavigationBehavior: p
});
- let x = BO({
+ let x = UO({
selectionManager: m,
hasItemActions: !!(l || u)
- }), S = cT(e, { labelable: !0 }), C = (0, F.useCallback)((e) => {
- m.isFocused ? zS(e.currentTarget, G(e)) || m.setFocused(!1) : zS(e.currentTarget, G(e)) && m.setFocused(!0);
+ }), S = dT(e, { labelable: !0 }), C = (0, F.useCallback)((e) => {
+ m.isFocused ? HS(e.currentTarget, K(e)) || m.setFocused(!1) : HS(e.currentTarget, K(e)) && m.setFocused(!0);
}, [m]), w = (0, F.useMemo)(() => ({
onBlur: y.onBlur,
onFocus: C
- }), [C, y.onBlur]), T = zO(n, { isDisabled: t.collection.size !== 0 }), E = K(S, {
+ }), [C, y.onBlur]), T = HO(n, { isDisabled: t.collection.size !== 0 }), E = q(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), LO({ getRowText: c }, t), { gridProps: E };
+ return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), BO({ getRowText: c }, t), { gridProps: E };
}
// node_modules/react-aria/dist/private/table/utils.mjs
-var mA = /* @__PURE__ */ new WeakMap();
-function hA(e) {
+var yA = /* @__PURE__ */ new WeakMap();
+function bA(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function gA(e, t) {
- let n = mA.get(e);
+function xA(e, t) {
+ let n = yA.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${hA(t)}`;
+ return `${n}-${bA(t)}`;
}
-function _A(e, t, n) {
- let r = mA.get(e);
+function SA(e, t, n) {
+ let r = yA.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${hA(t)}-${hA(n)}`;
+ return `${r}-${bA(t)}-${bA(n)}`;
}
-function vA(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => _A(e, t, n)).join(" ");
+function CA(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => SA(e, t, n)).join(" ");
}
// node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var yA = {};
-yA = {
+var wA = {};
+wA = {
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: "طي",
@@ -29208,8 +29233,8 @@ yA = {
sortable: "عمود قابل للترتيب"
};
// node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var bA = {};
-bA = {
+var TA = {};
+TA = {
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: "Свиване",
@@ -29223,8 +29248,8 @@ bA = {
sortable: "сортираща колона"
};
// node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var xA = {};
-xA = {
+var EA = {};
+EA = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -29238,8 +29263,8 @@ xA = {
sortable: "sloupec s možností řazení"
};
// node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var SA = {};
-SA = {
+var DA = {};
+DA = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -29253,8 +29278,8 @@ SA = {
sortable: "sorterbar kolonne"
};
// node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var CA = {};
-CA = {
+var OA = {};
+OA = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -29268,8 +29293,8 @@ CA = {
sortable: "sortierbare Spalte"
};
// node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var wA = {};
-wA = {
+var kA = {};
+kA = {
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: "Σύμπτυξη",
@@ -29283,8 +29308,8 @@ wA = {
sortable: "Στήλη διαλογής"
};
// node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var TA = {};
-TA = {
+var AA = {};
+AA = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -29298,8 +29323,8 @@ TA = {
collapse: "Collapse"
};
// node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var EA = {};
-EA = {
+var jA = {};
+jA = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -29313,8 +29338,8 @@ EA = {
sortable: "columna ordenable"
};
// node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var DA = {};
-DA = {
+var MA = {};
+MA = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -29328,8 +29353,8 @@ DA = {
sortable: "sorditav veerg"
};
// node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var OA = {};
-OA = {
+var NA = {};
+NA = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -29343,8 +29368,8 @@ OA = {
sortable: "lajiteltava sarake"
};
// node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var kA = {};
-kA = {
+var PA = {};
+PA = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -29358,8 +29383,8 @@ kA = {
sortable: "colonne triable"
};
// node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var AA = {};
-AA = {
+var FA = {};
+FA = {
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: "כווץ",
@@ -29373,8 +29398,8 @@ AA = {
sortable: "עמודה שניתן למיין"
};
// node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var jA = {};
-jA = {
+var IA = {};
+IA = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -29388,8 +29413,8 @@ jA = {
sortable: "stupac koji se može razvrstati"
};
// node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var MA = {};
-MA = {
+var LA = {};
+LA = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -29403,8 +29428,8 @@ MA = {
sortable: "rendezendő oszlop"
};
// node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var NA = {};
-NA = {
+var RA = {};
+RA = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -29418,8 +29443,8 @@ NA = {
sortable: "colonna ordinabile"
};
// node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var PA = {};
-PA = {
+var zA = {};
+zA = {
ascending: "昇順",
ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,
collapse: "折りたたむ",
@@ -29433,8 +29458,8 @@ PA = {
sortable: "並べ替え可能な列"
};
// node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var FA = {};
-FA = {
+var BA = {};
+BA = {
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: "접기",
@@ -29448,8 +29473,8 @@ FA = {
sortable: "정렬 가능한 열"
};
// node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var IA = {};
-IA = {
+var VA = {};
+VA = {
ascending: "didėjančia tvarka",
ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,
collapse: "Sutraukti",
@@ -29463,8 +29488,8 @@ IA = {
sortable: "rikiuojamas stulpelis"
};
// node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var LA = {};
-LA = {
+var HA = {};
+HA = {
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",
@@ -29478,8 +29503,8 @@ LA = {
sortable: "kārtojamā kolonna"
};
// node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var RA = {};
-RA = {
+var UA = {};
+UA = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -29493,8 +29518,8 @@ RA = {
sortable: "kolonne som kan sorteres"
};
// node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var zA = {};
-zA = {
+var WA = {};
+WA = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -29508,8 +29533,8 @@ zA = {
sortable: "sorteerbare kolom"
};
// node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var BA = {};
-BA = {
+var GA = {};
+GA = {
ascending: "rosnąco",
ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,
collapse: "Zwiń",
@@ -29523,8 +29548,8 @@ BA = {
sortable: "kolumna z możliwością sortowania"
};
// node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var VA = {};
-VA = {
+var KA = {};
+KA = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -29538,8 +29563,8 @@ VA = {
sortable: "coluna classificável"
};
// node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var HA = {};
-HA = {
+var qA = {};
+qA = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -29553,8 +29578,8 @@ HA = {
sortable: "Coluna ordenável"
};
// node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var UA = {};
-UA = {
+var JA = {};
+JA = {
ascending: "crescătoare",
ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,
collapse: "Restrângeți",
@@ -29568,8 +29593,8 @@ UA = {
sortable: "coloană sortabilă"
};
// node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var WA = {};
-WA = {
+var YA = {};
+YA = {
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: "Свернуть",
@@ -29583,8 +29608,8 @@ WA = {
sortable: "сортируемый столбец"
};
// node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var GA = {};
-GA = {
+var XA = {};
+XA = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -29598,8 +29623,8 @@ GA = {
sortable: "zoraditeľný stĺpec"
};
// node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var KA = {};
-KA = {
+var ZA = {};
+ZA = {
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",
@@ -29613,8 +29638,8 @@ KA = {
sortable: "razvrstljivi stolpec"
};
// node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var qA = {};
-qA = {
+var QA = {};
+QA = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -29628,8 +29653,8 @@ qA = {
sortable: "kolona koja se može sortirati"
};
// node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var JA = {};
-JA = {
+var $A = {};
+$A = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -29643,8 +29668,8 @@ JA = {
sortable: "sorterbar kolumn"
};
// node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var YA = {};
-YA = {
+var ej = {};
+ej = {
ascending: "artan sırada",
ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
collapse: "Daralt",
@@ -29658,8 +29683,8 @@ YA = {
sortable: "Sıralanabilir sütun"
};
// node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var XA = {};
-XA = {
+var tj = {};
+tj = {
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: "Згорнути",
@@ -29673,8 +29698,8 @@ XA = {
sortable: "сортувальний стовпець"
};
// node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var ZA = {};
-ZA = {
+var nj = {};
+nj = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -29688,8 +29713,8 @@ ZA = {
sortable: "可排序的列"
};
// node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var QA = {};
-QA = {
+var rj = {};
+rj = {
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: "收合",
@@ -29703,45 +29728,45 @@ QA = {
sortable: "可排序的欄"
};
// node_modules/react-aria/dist/private/table/intlStrings.mjs
-var $A = {};
-$A = {
- "ar-AE": yA,
- "bg-BG": bA,
- "cs-CZ": xA,
- "da-DK": SA,
- "de-DE": CA,
- "el-GR": wA,
- "en-US": TA,
- "es-ES": EA,
- "et-EE": DA,
- "fi-FI": OA,
- "fr-FR": kA,
- "he-IL": AA,
- "hr-HR": jA,
- "hu-HU": MA,
- "it-IT": NA,
- "ja-JP": PA,
- "ko-KR": FA,
- "lt-LT": IA,
- "lv-LV": LA,
- "nb-NO": RA,
- "nl-NL": zA,
- "pl-PL": BA,
- "pt-BR": VA,
- "pt-PT": HA,
- "ro-RO": UA,
- "ru-RU": WA,
- "sk-SK": GA,
- "sl-SI": KA,
- "sr-SP": qA,
- "sv-SE": JA,
- "tr-TR": YA,
- "uk-UA": XA,
- "zh-CN": ZA,
- "zh-TW": QA
+var ij = {};
+ij = {
+ "ar-AE": wA,
+ "bg-BG": TA,
+ "cs-CZ": EA,
+ "da-DK": DA,
+ "de-DE": OA,
+ "el-GR": kA,
+ "en-US": AA,
+ "es-ES": jA,
+ "et-EE": MA,
+ "fi-FI": NA,
+ "fr-FR": PA,
+ "he-IL": FA,
+ "hr-HR": IA,
+ "hu-HU": LA,
+ "it-IT": RA,
+ "ja-JP": zA,
+ "ko-KR": BA,
+ "lt-LT": VA,
+ "lv-LV": HA,
+ "nb-NO": UA,
+ "nl-NL": WA,
+ "pl-PL": GA,
+ "pt-BR": KA,
+ "pt-PT": qA,
+ "ro-RO": JA,
+ "ru-RU": YA,
+ "sk-SK": XA,
+ "sl-SI": ZA,
+ "sr-SP": QA,
+ "sv-SE": $A,
+ "tr-TR": ej,
+ "uk-UA": tj,
+ "zh-CN": nj,
+ "zh-TW": rj
};
// node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var uce = class extends fA {
+var lce = class extends _A {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -29749,7 +29774,7 @@ var uce = class extends fA {
let n = this.collection.getItem(e);
if (!n) return null;
if (n.type === "column") {
- let e = ND(MD(n, this.collection));
+ let e = ID(FD(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);
@@ -29770,13 +29795,13 @@ var uce = class extends fA {
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 MD(n, this.collection)) if (e.type === "column") return e.key;
+ for (let e of FD(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 = [...MD(n, this.collection)];
+ let n = this.collection.headerRows[e.level], r = [...FD(n, this.collection)];
for (let e = r.length - 1; e >= 0; e--) {
let t = r[e];
if (t.type === "column") return t.key;
@@ -29805,7 +29830,7 @@ var uce = class extends fA {
let t = o.textValue.slice(0, e.length);
if (this.collator.compare(t, e) === 0) return o.key;
}
- for (let r of MD(o, this.collection)) {
+ for (let r of FD(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);
@@ -29818,14 +29843,14 @@ var uce = class extends fA {
}
};
// node_modules/react-aria/dist/private/table/useTable.mjs
-function dce(e) {
+function uce(e) {
return e && e.__esModule ? e.default : e;
}
-function fce(e, t, n) {
- let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = VD({
+function dce(e, t, n) {
+ let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = WD({
usage: "search",
sensitivity: "base"
- }), { direction: c } = eT(), l = t.selectionManager.disabledBehavior, u = (0, F.useMemo)(() => r || new uce({
+ }), { direction: c } = rT(), l = t.selectionManager.disabledBehavior, u = (0, F.useMemo)(() => r || new lce({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -29844,51 +29869,51 @@ function fce(e, t, n) {
s,
a,
o
- ]), d = iw(e.id);
- mA.set(t, d);
- let { gridProps: f } = lce({
+ ]), d = sw(e.id);
+ yA.set(t, d);
+ let { gridProps: f } = cce({
...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 = oT(dce($A), "@react-aria/table"), g = (0, F.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = lT(uce(ij), "@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
- ]), _ = rE(g);
- return XT(() => {
- g && YT(g, "assertive", 500);
- }, [g]), { gridProps: K(f, _, { "aria-describedby": [_["aria-describedby"], f["aria-describedby"]].filter(Boolean).join(" ") }) };
+ ]), _ = oE(g);
+ return $T(() => {
+ g && QT(g, "assertive", 500);
+ }, [g]), { gridProps: q(f, _, { "aria-describedby": [_["aria-describedby"], f["aria-describedby"]].filter(Boolean).join(" ") }) };
}
// node_modules/react-aria/dist/private/grid/useGridCell.mjs
-function ej(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = eT(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = pA.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = () => {
+function aj(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = rT(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = vA.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = () => {
if (n.current) {
- let e = WT(n.current);
+ let e = qT(n.current);
if (p === "child") {
- let i = BS(MS(n.current));
- if (HS(n.current) && n.current !== i) return;
- let a = MS(n.current);
+ let i = US(FS(n.current));
+ if (GS(n.current) && n.current !== i) return;
+ let a = FS(n.current);
if (!i || i === a.body || i === n.current) {
let e = h.current;
- if (e && m.current === r.key && zS(n.current, e)) {
- $C(e);
+ if (e && m.current === r.key && HS(n.current, e)) {
+ nw(e);
return;
}
}
- let o = t.selectionManager.childFocusStrategy === "last" ? tj(e) : e.firstChild();
+ let o = t.selectionManager.childFocusStrategy === "last" ? oj(e) : e.firstChild();
if (o) {
- $C(o);
+ nw(o);
return;
}
}
- (m.current != null && r.key !== m.current || !HS(n.current)) && $C(n.current);
+ (m.current != null && r.key !== m.current || !GS(n.current)) && nw(n.current);
}
- }, { itemProps: _, isPressed: v } = HO({
+ }, { itemProps: _, isPressed: v } = GO({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -29897,47 +29922,47 @@ function ej(e, t, n) {
shouldSelectOnPressUp: s,
onAction: d ? () => d(r.key) : c,
isDisabled: t.collection.size === 0
- }), y = K(_, {
+ }), y = q(_, {
role: "gridcell",
onKeyDownCapture: f !== "tab" || o ? (e) => {
- let i = BS(MS(n.current));
- if (!zS(e.currentTarget, G(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
- let a = WT(n.current);
+ let i = US(FS(n.current));
+ if (!HS(e.currentTarget, K(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
+ let a = qT(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) $C(t), tE(t, { containingElement: QT(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) nw(t), iE(t, { containingElement: tE(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" ? ($C(n.current), tE(n.current, { containingElement: QT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : tj(a), t && ($C(t), tE(t, { containingElement: QT(n.current) })));
+ p === "cell" && l === "rtl" ? (nw(n.current), iE(n.current, { containingElement: tE(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : oj(a), t && (nw(t), iE(t, { containingElement: tE(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) $C(t), tE(t, { containingElement: QT(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) nw(t), iE(t, { containingElement: tE(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" ? ($C(n.current), tE(n.current, { containingElement: QT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? tj(a) : a.firstChild(), t && ($C(t), tE(t, { containingElement: QT(n.current) })));
+ p === "cell" && l === "ltr" ? (nw(n.current), iE(n.current, { containingElement: tE(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? oj(a) : a.firstChild(), t && (nw(t), iE(t, { containingElement: tE(n.current) })));
}
break;
}
case "ArrowUp":
- case "ArrowDown": !e.altKey && zS(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
+ case "ArrowDown": !e.altKey && HS(n.current, K(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
}
} : void 0,
onKeyDown: f === "tab" ? (e) => {
- let r = BS(MS(n.current));
- if (zS(e.currentTarget, G(e)) && !t.isKeyboardNavigationDisabled && n.current && r) {
- if (f === "tab" && G(e) !== n.current && e.key !== "Tab") e.stopPropagation();
+ let r = US(FS(n.current));
+ if (HS(e.currentTarget, K(e)) && !t.isKeyboardNavigationDisabled && n.current && r) {
+ if (f === "tab" && K(e) !== n.current && e.key !== "Tab") e.stopPropagation();
else if (e.key === "Tab" && f === "tab") {
- let t = WT(n.current, { tabbable: !0 });
+ let t = qT(n.current, { tabbable: !0 });
t.currentNode = r, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
@@ -29946,11 +29971,11 @@ function ej(e, t, n) {
"aria-colindex": r.colIndex == null ? void 0 : r.colIndex + 1,
colSpan: i ? void 0 : r.colSpan,
onFocus: (e) => {
- if (m.current = r.key, G(e) !== n.current) {
- let i = G(e);
- n.current && zS(n.current, i) && (h.current = i), VC() || t.selectionManager.setFocusedKey(r.key);
- } else p === "child" && e.relatedTarget && zS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
- p === "child" && BS(MS(n.current)) === n.current && g();
+ if (m.current = r.key, K(e) !== n.current) {
+ let i = K(e);
+ n.current && HS(n.current, i) && (h.current = i), WC() || t.selectionManager.setFocusedKey(r.key);
+ } else p === "child" && e.relatedTarget && HS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
+ p === "child" && US(FS(n.current)) === n.current && g();
});
},
...p === "child" && f === "tab" ? { tabIndex: -1 } : {}
@@ -29965,7 +29990,7 @@ function ej(e, t, n) {
isPressed: v
};
}
-function tj(e) {
+function oj(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -29973,32 +29998,32 @@ function tj(e) {
return t;
}
// node_modules/react-aria/dist/private/table/useTableCell.mjs
-function pce(e, t, n) {
- let { gridCellProps: r, isPressed: i } = ej(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = _A(t, e.node.parentKey, a)), {
+function fce(e, t, n) {
+ let { gridCellProps: r, isPressed: i } = aj(e, t, n), a = e.node.column?.key;
+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = SA(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
}
// node_modules/react-aria/dist/private/table/useTableColumnHeader.mjs
-function mce(e) {
+function pce(e) {
return e && e.__esModule ? e.default : e;
}
-function hce(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = ej({
+function mce(e, t, n) {
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = aj({
focusMode: "child",
...e
- }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = ST({
+ }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = TT({
isDisabled: !i || o,
onPress() {
t.sort(r.key);
},
ref: n
- }), { focusableProps: l } = vw({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
- r.props.allowsSorting && !fC() && (u = d ? f : "none");
- let p = oT(mce($A), "@react-aria/table"), m;
- i && (m = `${p.format("sortable")}`, d && f && fC() && (m = `${m}, ${p.format(f)}`));
- let h = rE(m), g = t.collection.size === 0;
+ }), { focusableProps: l } = xw({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
+ r.props.allowsSorting && !hC() && (u = d ? f : "none");
+ let p = lT(pce(ij), "@react-aria/table"), m;
+ i && (m = `${p.format("sortable")}`, d && f && hC() && (m = `${m}, ${p.format(f)}`));
+ let h = oE(m), g = t.collection.size === 0;
return (0, F.useEffect)(() => {
g && t.selectionManager.focusedKey === r.key && t.selectionManager.setFocusedKey(null);
}, [
@@ -30007,9 +30032,9 @@ function hce(e, t, n) {
r.key
]), {
columnHeaderProps: {
- ...K(l, a, s, h, g ? { tabIndex: -1 } : null),
+ ...q(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
- id: gA(t, r.key),
+ id: xA(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
"aria-sort": u
},
@@ -30017,17 +30042,17 @@ function hce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/table/useTableColumnResize.mjs
-function gce(e) {
+function hce(e) {
return e && e.__esModule ? e.default : e;
}
-function _ce(e, t, n) {
- let { column: r, triggerRef: i, isDisabled: a, onResizeStart: o, onResize: s, onResizeEnd: c, "aria-label": l } = e, u = oT(gce($A), "@react-aria/table"), d = iw(), 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 } = eT(), b = (0, F.useCallback)((e) => {
+function gce(e, t, n) {
+ let { column: r, triggerRef: i, isDisabled: a, onResizeStart: o, onResize: s, onResizeEnd: c, "aria-label": l } = e, u = lT(hce(ij), "@react-aria/table"), d = sw(), 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 } = rT(), 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 && $C(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 && nw(i.current)), m.current = null;
}, [
t,
i,
@@ -30035,14 +30060,14 @@ function _ce(e, t, n) {
]), C = () => {
if (g) S(r);
else return !1;
- }, { keyboardProps: w } = mw({ shortcuts: {
+ }, { keyboardProps: w } = _w({ shortcuts: {
Escape: () => C(),
Enter: () => {
g ? S(r) : b(r);
},
" ": () => C(),
Tab: () => C()
- } }), T = (0, F.useRef)(0), { moveProps: E } = DE({
+ } }), T = (0, F.useRef)(0), { moveProps: E } = AE({
onMoveStart(e) {
T.current = t.getColumnWidth(r.key), e.pointerType === "mouse" && v(!0), b(r);
},
@@ -30058,12 +30083,12 @@ function _ce(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 = qC();
j === "virtual" && typeof window < "u" && "ontouchstart" in window && (j = "touch");
- let M = rE(i?.current == null && (j === "keyboard" || j === "virtual") && !f ? u.format("resizerDescription") : void 0), ee = {
+ let M = oE(i?.current == null && (j === "keyboard" || j === "virtual") && !f ? u.format("resizerDescription") : void 0), ee = {
"aria-label": l,
"aria-orientation": "horizontal",
- "aria-labelledby": `${d} ${gA(t.tableState, r.key)}`,
+ "aria-labelledby": `${d} ${xA(t.tableState, r.key)}`,
"aria-valuetext": u.format("columnSize", { value: A }),
type: "range",
min: O,
@@ -30071,11 +30096,11 @@ function _ce(e, t, n) {
value: A,
...M
}, N = (0, F.useCallback)(() => {
- n.current && $C(n.current);
- }, [n]), te = t.resizingColumn, P = (0, F.useRef)(null), ne = Kw(b);
+ n.current && nw(n.current);
+ }, [n]), te = t.resizingColumn, P = (0, F.useRef)(null), ne = Yw(b);
(0, F.useEffect)(() => {
if (P.current !== te && te != null && te === r.key) {
- h.current = BS() === n.current, ne(r);
+ h.current = US() === n.current, ne(r);
let e = setTimeout(() => N(), 0), t = setTimeout(N, 400);
return () => {
clearTimeout(e), clearTimeout(t);
@@ -30089,9 +30114,9 @@ function _ce(e, t, n) {
n
]);
let re = (e) => {
- let n = t.getColumnWidth(r.key), i = parseFloat(G(e).value);
+ let n = t.getColumnWidth(r.key), i = parseFloat(K(e).value);
i = i > n ? n + 10 : n - 10, x(r, i);
- }, { pressProps: I } = ST({
+ }, { pressProps: I } = TT({
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)));
@@ -30099,13 +30124,13 @@ function _ce(e, t, n) {
onPress: (e) => {
(e.pointerType === "touch" && h.current || e.pointerType === "mouse") && t.resizingColumn != null && S(r);
}
- }), { visuallyHiddenProps: ie } = kE();
+ }), { visuallyHiddenProps: ie } = ME();
return {
- resizerProps: K(w, {
+ resizerProps: q(w, {
...E,
onKeyDown: D
}, I, { style: { touchAction: "none" } }),
- inputProps: K(ie, {
+ inputProps: q(ie, {
id: d,
onBlur: () => {
S(r);
@@ -30118,19 +30143,19 @@ function _ce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/table/useTableHeaderRow.mjs
-function vce(e, t, n) {
+function _ce(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 yce(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = pA.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = HO({
+function vce(e, t, n) {
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = vA.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = GO({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: c || a,
- onAction: l || r?.props?.onAction ? ew(r?.props?.onAction, l) : void 0,
+ onAction: l || r?.props?.onAction ? rw(r?.props?.onAction, l) : void 0,
isDisabled: t.collection.size === 0
}), f = t.selectionManager.isSelected(r.key), p = {
role: "row",
@@ -30144,10 +30169,10 @@ function yce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/table/useTableRow.mjs
-function bce(e) {
+function yce(e) {
return e && e.__esModule ? e.default : e;
}
-var nj = {
+var sj = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -30157,21 +30182,21 @@ var nj = {
rtl: "ArrowRight"
}
};
-function xce(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = yce(e, t, n), { direction: s } = eT();
+function bce(e, t, n) {
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = vce(e, t, n), { direction: s } = rT();
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 = oT(bce($A), "@react-aria/table"), u = Jw({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = lT(yce(ij), "@react-aria/table"), u = Zw({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": vA(t, r.key)
+ "aria-labelledby": CA(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = rj(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 = rj(t.collection, a);
+ let n = cj(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 = cj(t.collection, a);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
- n.key === nj.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === nj.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 === sj.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === sj.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,
@@ -30189,42 +30214,42 @@ function xce(e, t, n) {
};
}
}
- let p = xC(r.props), m = o.hasAction ? p : {};
+ let p = wC(r.props), m = o.hasAction ? p : {};
return {
rowProps: {
- ...K(a, d, m),
- "aria-labelledby": vA(t, r.key)
+ ...q(a, d, m),
+ "aria-labelledby": CA(t, r.key)
},
expandButtonProps: f,
...o
};
}
-function rj(e, t) {
+function cj(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 Sce() {
+function xce() {
return { rowGroupProps: { role: "rowgroup" } };
}
// node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function ij() {
- return Sce();
+function lj() {
+ return xce();
}
// node_modules/react-aria/dist/private/table/useTableSelectionCheckbox.mjs
-function Cce(e) {
+function Sce(e) {
return e && e.__esModule ? e.default : e;
}
-function wce(e, t) {
- let { key: n } = e, { checkboxProps: r } = JO(e, t);
+function Cce(e, t) {
+ let { key: n } = e, { checkboxProps: r } = ZO(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${vA(t, n)}`
+ "aria-labelledby": `${r.id} ${CA(t, n)}`
} };
}
-function Tce(e) {
+function wce(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": oT(Cce($A), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": lT(Sce(ij), "@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,
@@ -30232,27 +30257,27 @@ function Tce(e) {
} };
}
// node_modules/react-aria/dist/private/tabs/utils.mjs
-var aj = /* @__PURE__ */ new WeakMap();
-function oj(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${aj.get(e)}-${n}-${t}`) : "";
+var uj = /* @__PURE__ */ new WeakMap();
+function dj(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${uj.get(e)}-${n}-${t}`) : "";
}
// node_modules/react-aria/dist/private/tabs/useTab.mjs
-function Ece(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 } = HO({
+function Tce(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 } = GO({
selectionManager: o,
key: r,
ref: n,
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = oj(t, r, "tab"), m = oj(t, r, "tabpanel"), { tabIndex: h } = d, g = cT(u?.props, { labelable: !0 });
+ }), p = dj(t, r, "tab"), m = dj(t, r, "tabpanel"), { tabIndex: h } = d, g = dT(u?.props, { labelable: !0 });
delete g.id;
- let _ = SC(u?.props), { focusableProps: v } = vw({
+ let _ = TC(u?.props), { focusableProps: v } = xw({
...u?.props,
isDisabled: l
}, n);
return {
- tabProps: K(g, v, _, d, {
+ tabProps: q(g, v, _, d, {
id: p,
"aria-selected": c,
"aria-disabled": l || void 0,
@@ -30266,7 +30291,7 @@ function Ece(e, t, n) {
};
}
// node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
-var Dce = class {
+var Ece = class {
constructor(e, t, n, r = /* @__PURE__ */ new Set()) {
this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";
}
@@ -30309,11 +30334,11 @@ var Dce = class {
}
};
// node_modules/react-aria/dist/private/tabs/useTabList.mjs
-function Oce(e, t, n) {
- let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = eT(), { collectionProps: l } = jD({
+function Dce(e, t, n) {
+ let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = rT(), { collectionProps: l } = PD({
ref: n,
selectionManager: o,
- keyboardDelegate: (0, F.useMemo)(() => new Dce(a, c, r, s), [
+ keyboardDelegate: (0, F.useMemo)(() => new Ece(a, c, r, s), [
a,
s,
r,
@@ -30323,9 +30348,9 @@ function Oce(e, t, n) {
disallowEmptySelection: !0,
scrollRef: n,
linkBehavior: "selection"
- }), u = iw();
- return aj.set(t, u), { tabListProps: {
- ...K(l, Jw({
+ }), u = sw();
+ return uj.set(t, u), { tabListProps: {
+ ...q(l, Zw({
...e,
id: u
})),
@@ -30335,12 +30360,12 @@ function Oce(e, t, n) {
} };
}
// node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
-function kce(e, t, n) {
- let r = zO(n) ? void 0 : 0, i = oj(t, e.id ?? t?.selectedKey, "tabpanel");
- return { tabPanelProps: K(Jw({
+function Oce(e, t, n) {
+ let r = HO(n) ? void 0 : 0, i = dj(t, e.id ?? t?.selectedKey, "tabpanel");
+ return { tabPanelProps: q(Zw({
...e,
id: i,
- "aria-labelledby": oj(t, t?.selectedKey, "tab")
+ "aria-labelledby": dj(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -30349,265 +30374,265 @@ function kce(e, t, n) {
}) };
}
// node_modules/react-aria/dist/private/tree/useTree.mjs
-function Ace(e, t, n) {
- let { gridProps: r } = wse(e, t, n);
+function kce(e, t, n) {
+ let { gridProps: r } = Tse(e, t, n);
return r.role = "treegrid", { gridProps: r };
}
// node_modules/react-aria/dist/private/intl/tree/ar-AE.mjs
-var sj = {};
-sj = {
+var fj = {};
+fj = {
collapse: "طي",
expand: "تمديد"
};
// node_modules/react-aria/dist/private/intl/tree/bg-BG.mjs
-var cj = {};
-cj = {
+var pj = {};
+pj = {
collapse: "Свиване",
expand: "Разширяване"
};
// node_modules/react-aria/dist/private/intl/tree/cs-CZ.mjs
-var lj = {};
-lj = {
+var mj = {};
+mj = {
collapse: "Sbalit",
expand: "Roztáhnout"
};
// node_modules/react-aria/dist/private/intl/tree/da-DK.mjs
-var uj = {};
-uj = {
+var hj = {};
+hj = {
collapse: "Skjul",
expand: "Udvid"
};
// node_modules/react-aria/dist/private/intl/tree/de-DE.mjs
-var dj = {};
-dj = {
+var gj = {};
+gj = {
collapse: "Reduzieren",
expand: "Erweitern"
};
// node_modules/react-aria/dist/private/intl/tree/el-GR.mjs
-var fj = {};
-fj = {
+var _j = {};
+_j = {
collapse: "Σύμπτυξη",
expand: "Ανάπτυξη"
};
// node_modules/react-aria/dist/private/intl/tree/en-US.mjs
-var pj = {};
-pj = {
+var vj = {};
+vj = {
expand: "Expand",
collapse: "Collapse"
};
// node_modules/react-aria/dist/private/intl/tree/es-ES.mjs
-var mj = {};
-mj = {
+var yj = {};
+yj = {
collapse: "Contraer",
expand: "Expandir"
};
// node_modules/react-aria/dist/private/intl/tree/et-EE.mjs
-var hj = {};
-hj = {
+var bj = {};
+bj = {
collapse: "Ahenda",
expand: "Laienda"
};
// node_modules/react-aria/dist/private/intl/tree/fi-FI.mjs
-var gj = {};
-gj = {
+var xj = {};
+xj = {
collapse: "Pienennä",
expand: "Laajenna"
};
// node_modules/react-aria/dist/private/intl/tree/fr-FR.mjs
-var _j = {};
-_j = {
+var Sj = {};
+Sj = {
collapse: "Réduire",
expand: "Développer"
};
// node_modules/react-aria/dist/private/intl/tree/he-IL.mjs
-var vj = {};
-vj = {
+var Cj = {};
+Cj = {
collapse: "כווץ",
expand: "הרחב"
};
// node_modules/react-aria/dist/private/intl/tree/hr-HR.mjs
-var yj = {};
-yj = {
+var wj = {};
+wj = {
collapse: "Sažmi",
expand: "Proširi"
};
// node_modules/react-aria/dist/private/intl/tree/hu-HU.mjs
-var bj = {};
-bj = {
+var Tj = {};
+Tj = {
collapse: "Összecsukás",
expand: "Kibontás"
};
// node_modules/react-aria/dist/private/intl/tree/it-IT.mjs
-var xj = {};
-xj = {
+var Ej = {};
+Ej = {
collapse: "Comprimi",
expand: "Espandi"
};
// node_modules/react-aria/dist/private/intl/tree/ja-JP.mjs
-var Sj = {};
-Sj = {
+var Dj = {};
+Dj = {
collapse: "折りたたむ",
expand: "展開"
};
// node_modules/react-aria/dist/private/intl/tree/ko-KR.mjs
-var Cj = {};
-Cj = {
+var Oj = {};
+Oj = {
collapse: "접기",
expand: "펼치기"
};
// node_modules/react-aria/dist/private/intl/tree/lt-LT.mjs
-var wj = {};
-wj = {
+var kj = {};
+kj = {
collapse: "Sutraukti",
expand: "Išskleisti"
};
// node_modules/react-aria/dist/private/intl/tree/lv-LV.mjs
-var Tj = {};
-Tj = {
+var Aj = {};
+Aj = {
collapse: "Sakļaut",
expand: "Izvērst"
};
// node_modules/react-aria/dist/private/intl/tree/nb-NO.mjs
-var Ej = {};
-Ej = {
+var jj = {};
+jj = {
collapse: "Skjul",
expand: "Utvid"
};
// node_modules/react-aria/dist/private/intl/tree/nl-NL.mjs
-var Dj = {};
-Dj = {
+var Mj = {};
+Mj = {
collapse: "Samenvouwen",
expand: "Uitvouwen"
};
// node_modules/react-aria/dist/private/intl/tree/pl-PL.mjs
-var Oj = {};
-Oj = {
+var Nj = {};
+Nj = {
collapse: "Zwiń",
expand: "Rozwiń"
};
// node_modules/react-aria/dist/private/intl/tree/pt-BR.mjs
-var kj = {};
-kj = {
+var Pj = {};
+Pj = {
collapse: "Recolher",
expand: "Expandir"
};
// node_modules/react-aria/dist/private/intl/tree/pt-PT.mjs
-var Aj = {};
-Aj = {
+var Fj = {};
+Fj = {
collapse: "Colapsar",
expand: "Expandir"
};
// node_modules/react-aria/dist/private/intl/tree/ro-RO.mjs
-var jj = {};
-jj = {
+var Ij = {};
+Ij = {
collapse: "Restrângeți",
expand: "Extindeți"
};
// node_modules/react-aria/dist/private/intl/tree/ru-RU.mjs
-var Mj = {};
-Mj = {
+var Lj = {};
+Lj = {
collapse: "Свернуть",
expand: "Развернуть"
};
// node_modules/react-aria/dist/private/intl/tree/sk-SK.mjs
-var Nj = {};
-Nj = {
+var Rj = {};
+Rj = {
collapse: "Zbaliť",
expand: "Rozbaliť"
};
// node_modules/react-aria/dist/private/intl/tree/sl-SI.mjs
-var Pj = {};
-Pj = {
+var zj = {};
+zj = {
collapse: "Strni",
expand: "Razširi"
};
// node_modules/react-aria/dist/private/intl/tree/sr-SP.mjs
-var Fj = {};
-Fj = {
+var Bj = {};
+Bj = {
collapse: " Skupi",
expand: "Proširi"
};
// node_modules/react-aria/dist/private/intl/tree/sv-SE.mjs
-var Ij = {};
-Ij = {
+var Vj = {};
+Vj = {
collapse: "Dölj",
expand: "Expandera"
};
// node_modules/react-aria/dist/private/intl/tree/tr-TR.mjs
-var Lj = {};
-Lj = {
+var Hj = {};
+Hj = {
collapse: "Daralt",
expand: "Genişlet"
};
// node_modules/react-aria/dist/private/intl/tree/uk-UA.mjs
-var Rj = {};
-Rj = {
+var Uj = {};
+Uj = {
collapse: "Згорнути",
expand: "Розгорнути"
};
// node_modules/react-aria/dist/private/intl/tree/zh-CN.mjs
-var zj = {};
-zj = {
+var Wj = {};
+Wj = {
collapse: "折叠",
expand: "扩展"
};
// node_modules/react-aria/dist/private/intl/tree/zh-TW.mjs
-var Bj = {};
-Bj = {
+var Gj = {};
+Gj = {
collapse: "收合",
expand: "展開"
};
// node_modules/react-aria/dist/private/tree/intlStrings.mjs
-var Vj = {};
-Vj = {
- "ar-AE": sj,
- "bg-BG": cj,
- "cs-CZ": lj,
- "da-DK": uj,
- "de-DE": dj,
- "el-GR": fj,
- "en-US": pj,
- "es-ES": mj,
- "et-EE": hj,
- "fi-FI": gj,
- "fr-FR": _j,
- "he-IL": vj,
- "hr-HR": yj,
- "hu-HU": bj,
- "it-IT": xj,
- "ja-JP": Sj,
- "ko-KR": Cj,
- "lt-LT": wj,
- "lv-LV": Tj,
- "nb-NO": Ej,
- "nl-NL": Dj,
- "pl-PL": Oj,
- "pt-BR": kj,
- "pt-PT": Aj,
- "ro-RO": jj,
- "ru-RU": Mj,
- "sk-SK": Nj,
- "sl-SI": Pj,
- "sr-SP": Fj,
- "sv-SE": Ij,
- "tr-TR": Lj,
- "uk-UA": Rj,
- "zh-CN": zj,
- "zh-TW": Bj
+var Kj = {};
+Kj = {
+ "ar-AE": fj,
+ "bg-BG": pj,
+ "cs-CZ": mj,
+ "da-DK": hj,
+ "de-DE": gj,
+ "el-GR": _j,
+ "en-US": vj,
+ "es-ES": yj,
+ "et-EE": bj,
+ "fi-FI": xj,
+ "fr-FR": Sj,
+ "he-IL": Cj,
+ "hr-HR": wj,
+ "hu-HU": Tj,
+ "it-IT": Ej,
+ "ja-JP": Dj,
+ "ko-KR": Oj,
+ "lt-LT": kj,
+ "lv-LV": Aj,
+ "nb-NO": jj,
+ "nl-NL": Mj,
+ "pl-PL": Nj,
+ "pt-BR": Pj,
+ "pt-PT": Fj,
+ "ro-RO": Ij,
+ "ru-RU": Lj,
+ "sk-SK": Rj,
+ "sl-SI": zj,
+ "sr-SP": Bj,
+ "sv-SE": Vj,
+ "tr-TR": Hj,
+ "uk-UA": Uj,
+ "zh-CN": Wj,
+ "zh-TW": Gj
};
// node_modules/react-aria/dist/private/tree/useTreeItem.mjs
-function jce(e) {
+function Ace(e) {
return e && e.__esModule ? e.default : e;
}
-function Hj(e, t, n) {
- let { node: r } = e, i = Tse(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = oT(jce(Vj), "@react-aria/tree"), s = {
+function qj(e, t, n) {
+ let { node: r } = e, i = Ese(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = lT(Ace(Kj), "@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,
- ...Jw({
+ ...Zw({
"aria-label": a ? o.format("collapse") : o.format("expand"),
"aria-labelledby": i.rowProps.id
})
@@ -30618,15 +30643,15 @@ function Hj(e, t, n) {
};
}
// src/react/components/selection-dock.tsx
-var Uj = "(prefers-reduced-motion: reduce)", Mce = () => matchMedia(Uj).matches, Nce = (e) => {
- let t = matchMedia(Uj);
+var Jj = "(prefers-reduced-motion: reduce)", jce = () => matchMedia(Jj).matches, Mce = (e) => {
+ let t = matchMedia(Jj);
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
-}, Wj = /* @__PURE__ */ new Map(), Gj = () => {
+}, Yj = /* @__PURE__ */ new Map(), Xj = () => {
let e = document.documentElement;
- Wj.size ? e.style.setProperty("--selection-dock-space", `${Math.max(...Wj.values())}px`) : e.style.removeProperty("--selection-dock-space");
+ Yj.size ? e.style.setProperty("--selection-dock-space", `${Math.max(...Yj.values())}px`) : e.style.removeProperty("--selection-dock-space");
};
-function Pce({ children: e, count: t, label: n }) {
- let r = (0, F.useRef)(null), i = Ix(), a = (0, F.useSyncExternalStore)(Nce, Mce, () => !1), { isFocusVisible: o } = GC(), s = a || o, c = {
+function Nce({ children: e, count: t, label: n }) {
+ let r = (0, F.useRef)(null), i = zx(), a = (0, F.useSyncExternalStore)(Mce, jce, () => !1), { isFocusVisible: o } = JC(), s = a || o, c = {
opacity: 0,
transform: "translate(-50%, 8px)"
};
@@ -30634,12 +30659,12 @@ function Pce({ children: e, count: t, label: n }) {
let e = r.current;
if (!e || !i) return;
let t = () => {
- Wj.set(e, Math.ceil(e.offsetHeight + (parseFloat(getComputedStyle(e).bottom) || 0) + 16)), Gj();
+ Yj.set(e, Math.ceil(e.offsetHeight + (parseFloat(getComputedStyle(e).bottom) || 0) + 16)), Xj();
}, n = new ResizeObserver(t);
return n.observe(e), window.addEventListener("resize", t), t(), () => {
- n.disconnect(), window.removeEventListener("resize", t), Wj.delete(e), Gj();
+ n.disconnect(), window.removeEventListener("resize", t), Yj.delete(e), Xj();
};
- }, [i]), /* @__PURE__ */ (0, I.jsxs)(xS.div, {
+ }, [i]), /* @__PURE__ */ (0, I.jsxs)(wS.div, {
ref: r,
role: "group",
"aria-label": n,
@@ -30672,17 +30697,17 @@ function Pce({ children: e, count: t, label: n }) {
}), e]
});
}
-function Kj({ visible: e, ...t }) {
- return /* @__PURE__ */ (0, I.jsx)(zx, { children: e ? /* @__PURE__ */ (0, I.jsx)(Pce, { ...t }, "selection") : null });
+function Zj({ visible: e, ...t }) {
+ return /* @__PURE__ */ (0, I.jsx)(Hx, { children: e ? /* @__PURE__ */ (0, I.jsx)(Nce, { ...t }, "selection") : null });
}
// src/react/batch-dock/batch-dock-api.ts
-var qj = {
+var Qj = {
group: "clear",
operation: "clear",
label: "取消",
glyph: "x"
};
-function Fce(e, t = !1) {
+function Pce(e, t = !1) {
switch (e) {
case "trash": return [
{
@@ -30698,7 +30723,7 @@ function Fce(e, t = !1) {
glyph: "trash",
danger: !0
},
- qj
+ Qj
];
case "junk": return [
t ? {
@@ -30719,7 +30744,7 @@ function Fce(e, t = !1) {
glyph: "trash",
danger: !0
},
- qj
+ Qj
];
case "follow": return [
{
@@ -30740,7 +30765,7 @@ function Fce(e, t = !1) {
label: "忽略",
glyph: "eye-off"
},
- qj
+ Qj
];
default: return [
{
@@ -30774,38 +30799,38 @@ function Fce(e, t = !1) {
glyph: "trash",
danger: !0
},
- qj
+ Qj
];
}
}
// src/react/batch-dock/batch-dock-island.tsx
-var Jj = null, Yj = {
+var $j = null, eM = {
count: 0,
context: "catalog",
junkDismissed: !1
-}, Xj = /* @__PURE__ */ new Set();
-function Ice(e) {
- return Xj.add(e), () => {
- Xj.delete(e);
+}, tM = /* @__PURE__ */ new Set();
+function Fce(e) {
+ return tM.add(e), () => {
+ tM.delete(e);
};
}
-function Lce() {
- for (let e of [...Xj]) e();
+function Ice() {
+ for (let e of [...tM]) e();
}
-var Rce = { render(e) {
- Yj = e, (0, It.flushSync)(Lce);
+var Lce = { render(e) {
+ eM = e, (0, It.flushSync)(Ice);
} };
-function zce(e) {
- return Jj = e, Rce;
+function Rce(e) {
+ return $j = e, Lce;
}
-function Bce() {
- let e = (0, F.useSyncExternalStore)(Ice, () => Yj);
- return Jj ? /* @__PURE__ */ (0, I.jsx)(Vce, {
- host: Jj,
+function zce() {
+ let e = (0, F.useSyncExternalStore)(Fce, () => eM);
+ return $j ? /* @__PURE__ */ (0, I.jsx)(Bce, {
+ host: $j,
props: e
}) : null;
}
-function Vce({ host: e, props: t }) {
+function Bce({ host: e, props: t }) {
let n = t.count > 0;
return (0, F.useLayoutEffect)(() => {
document.body.toggleAttribute("data-batch-dock-open", n);
@@ -30815,11 +30840,11 @@ function Vce({ host: e, props: t }) {
className: "peach-react",
"data-batch-scope": "",
"data-context": t.context,
- children: /* @__PURE__ */ (0, I.jsx)(Kj, {
+ children: /* @__PURE__ */ (0, I.jsx)(Zj, {
label: "所选项目操作",
visible: t.count > 0,
count: `已选 ${t.count.toLocaleString()} 项`,
- children: Fce(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: Pce(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-batch-group": t.group,
"data-batch-action": t.operation,
@@ -30835,11 +30860,11 @@ function Vce({ host: e, props: t }) {
});
}
// src/number-setting.ts
-function Zj(e, t, n, r) {
+function nM(e, t, n, r) {
return Number.isInteger(e) && e >= t && e <= n ? e : r;
}
// src/settings-store.ts
-function Hce(e, t) {
+function Vce(e, t) {
let n = /* @__PURE__ */ new Set(), r = 0, i = () => {
r += 1, n.forEach((e) => e());
};
@@ -30858,7 +30883,7 @@ function Hce(e, t) {
};
}
// src/sort-preferences.ts
-var Qj = [
+var rM = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -30867,7 +30892,7 @@ var Qj = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], $j = ["release", "发行时间"], eM = [...Qj, $j].map(([e]) => e), tM = {
+], iM = ["release", "发行时间"], aM = [...rM, iM].map(([e]) => e), oM = {
rating: ["从高到低", "从低到高"],
o: ["从多到少", "从少到多"],
plays: ["从多到少", "从少到多"],
@@ -30876,43 +30901,43 @@ var Qj = [
new: ["从新到旧", "从旧到新"],
played: ["从近到远", "从远到近"],
release: ["从新到旧", "从旧到新"]
-}, nM = {
+}, sM = {
big: ["size", "desc"],
short: ["dur", "asc"],
long: ["dur", "desc"]
-}, rM = (e, t, n = tM) => (n[e] || [])[+(t === "asc")] || "", iM = (e, t = tM) => t[e] ? "desc" : "";
-function aM(e, t, n, r = tM) {
+}, cM = (e, t, n = oM) => (n[e] || [])[+(t === "asc")] || "", lM = (e, t = oM) => t[e] ? "desc" : "";
+function uM(e, t, n, r = oM) {
return e === t ? r[e] ? {
sort: e,
dir: n === "asc" ? "desc" : "asc"
} : null : {
sort: e,
- dir: iM(e, r)
+ dir: lM(e, r)
};
}
-function oM(e, t, n) {
+function dM(e, t, n) {
return e === "seed" ? "" : e === t && n === "asc" ? "asc" : "desc";
}
-function sM(e, t, n, r, i = n) {
- let a = e ? nM[e] : void 0, o = a ? a[0] : e, s = o && eM.includes(o) ? o : i;
- return tM[s] ? {
+function fM(e, t, n, r, i = n) {
+ let a = e ? sM[e] : void 0, o = a ? a[0] : e, s = o && aM.includes(o) ? o : i;
+ return oM[s] ? {
sort: s,
- dir: t === "asc" || t === "desc" ? t : a ? a[1] : e ? "desc" : oM(s, n, r)
+ dir: t === "asc" || t === "desc" ? t : a ? a[1] : e ? "desc" : dM(s, n, r)
} : {
sort: s,
dir: ""
};
}
// src/appearance/home-glow.ts
-var cM = [
+var pM = [
"spot1",
"spot2",
"spot3"
-], Uce = [
+], Hce = [
"光晕一",
"光晕二",
"光晕三"
-], lM = "native", uM = [
+], mM = "native", hM = [
[
"ash",
"灰雾",
@@ -31218,7 +31243,7 @@ var cM = [
"rose"
],
[
- lM,
+ mM,
"玻璃原色",
{
spot1: {
@@ -31236,7 +31261,7 @@ var cM = [
},
"blue"
]
-], dM = (e) => e === lM, fM = [...uM.map(([e, t]) => [e, t]), ["custom", "自定义"]], Wce = (e) => (fM.find(([t]) => t === e) || fM[0])[1], pM = (e) => structuredClone((uM.find(([t]) => t === e) || uM[0])[2]), mM = [
+], gM = (e) => e === mM, _M = [...hM.map(([e, t]) => [e, t]), ["custom", "自定义"]], Uce = (e) => (_M.find(([t]) => t === e) || _M[0])[1], vM = (e) => structuredClone((hM.find(([t]) => t === e) || hM[0])[2]), yM = [
["red", "红"],
["orange", "橙"],
["amber", "琥珀"],
@@ -31249,7 +31274,7 @@ var cM = [
["violet", "紫罗兰"],
["fuchsia", "品红"],
["rose", "玫红"]
-], hM = "blue", gM = (e) => mM.some(([t]) => t === e) ? e : hM, Gce = (e) => (uM.find(([t]) => t === e) || [])[3] || "blue", Kce = [
+], bM = "blue", xM = (e) => yM.some(([t]) => t === e) ? e : bM, Wce = (e) => (hM.find(([t]) => t === e) || [])[3] || "blue", Gce = [
["all", "全部"],
["gray", "灰"],
["red", "红"],
@@ -31259,7 +31284,7 @@ var cM = [
["blue", "蓝"],
["purple", "紫"],
["brown", "棕"]
-], qce = [
+], Kce = [
[
"gray",
"云灰",
@@ -31655,11 +31680,11 @@ var cM = [
"霁蓝",
"#6686b8"
]
-], _M = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, vM = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, Jce = (e, t) => `rgba(${[
+], SM = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, CM = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, qce = (e, t) => `rgba(${[
1,
3,
5
-].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, Yce = {
+].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, Jce = {
strength: [
0,
100,
@@ -31685,7 +31710,7 @@ var cM = [
100,
50
]
-}, yM = {
+}, wM = {
on: !0,
preset: "ash",
strength: 100,
@@ -31693,56 +31718,56 @@ var cM = [
speed: 100,
soften: 50,
size: 50,
- ...pM("ash")
+ ...vM("ash")
};
-function bM(e) {
- let t = e && typeof e == "object" ? e : {}, n = fM.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = pM(r === "custom" ? "ash" : r), a = {
+function TM(e) {
+ let t = e && typeof e == "object" ? e : {}, n = _M.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = vM(r === "custom" ? "ash" : r), a = {
on: t.on !== !1,
preset: r
};
- for (let [e, [n, r, i]] of Object.entries(Yce)) a[e] = _M(+t[e], n, r, i);
- for (let e of cM) {
+ for (let [e, [n, r, i]] of Object.entries(Jce)) a[e] = SM(+t[e], n, r, i);
+ for (let e of pM) {
let r = n && t[e] && typeof t[e] == "object" ? t[e] : {}, o = i[e];
a[e] = {
- color: vM(r.color, o.color),
- alpha: _M(+r.alpha, 0, 100, o.alpha)
+ color: CM(r.color, o.color),
+ alpha: SM(+r.alpha, 0, 100, o.alpha)
};
}
return a;
}
-var Xce = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, xM = /* @__PURE__ */ new WeakMap();
-function Zce(e, t) {
+var Yce = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, EM = /* @__PURE__ */ new WeakMap();
+function Xce(e, t) {
if (!e) return;
- let n = xM.get(e);
- n || (n = /* @__PURE__ */ new Map(), xM.set(e, n));
- let r = t.on && !dM(t.preset), i = (t, r) => {
+ let n = EM.get(e);
+ n || (n = /* @__PURE__ */ new Map(), EM.set(e, n));
+ let r = t.on && !gM(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"), cM.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"), pM.forEach((e, n) => {
let r = t[e];
- i(`--glow-spot-${n + 1}-color`, Jce(r.color, r.alpha));
+ i(`--glow-spot-${n + 1}-color`, qce(r.color, r.alpha));
});
}
-function Qce(e, t) {
+function Zce(e, t) {
if (!e) return;
- let n = !t.on || dM(t.preset);
+ let n = !t.on || gM(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 $ce = "peach.settings.v1", ele = [
+var Qce = "peach.settings.v1", $ce = [
"system",
"light",
"dark"
-], SM = [
+], DM = [
0,
7,
30,
90
-], tle = [
+], ele = [
"feedHideGroupCompilations",
"feedHideSoloCompilations",
"feedHideExcerpts"
-], CM = {
+], OM = {
batchSize: 60,
defaultSort: "seed",
sortDefaultsVersion: 3,
@@ -31763,56 +31788,56 @@ var $ce = "peach.settings.v1", ele = [
theme: "system",
groupCollapse: !0,
sidebarOrder: [...$l],
- homeGlow: yM,
- accent: hM,
+ homeGlow: wM,
+ accent: bM,
performerNameLanguage: "zh-CN"
-}, wM = (e, t, n) => t.includes(e) ? e : n;
-function nle(e) {
+}, kM = (e, t, n) => t.includes(e) ? e : n;
+function tle(e) {
let t = e && typeof e == "object" ? e : {}, n = {
- ...CM,
+ ...OM,
...t
};
- n.followInitialDays = SM.includes(+n.followInitialDays) ? +n.followInitialDays : 30, delete n.rotateMinutes;
+ n.followInitialDays = DM.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 = nM[n.defaultSort];
- return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = Zj(+n.batchSize, 1, 200, 60), n.defaultSort = wM(n.defaultSort, eM, "seed"), n.hoverDelaySeconds = Zj(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = Zj(+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 = Zj(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = Zj(+n.relatedLimit, 0, 60, 20), n.feedLimit = Zj(+n.feedLimit, 1, 100, 12), Object.assign(n, Za(n)), n.theme = wM(n.theme, ele, "system"), n.performerNameLanguage = wM(n.performerNameLanguage, ["zh-CN", "ja"], "zh-CN"), n.homeGlow = bM(n.homeGlow), n.accent = gM(n.accent), n.sidebarOrder = ru(n.sidebarOrder), {
+ let a = sM[n.defaultSort];
+ return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = nM(+n.batchSize, 1, 200, 60), n.defaultSort = kM(n.defaultSort, aM, "seed"), n.hoverDelaySeconds = nM(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = nM(+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 = nM(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = nM(+n.relatedLimit, 0, 60, 20), n.feedLimit = nM(+n.feedLimit, 1, 100, 12), Object.assign(n, Za(n)), n.theme = kM(n.theme, $ce, "system"), n.performerNameLanguage = kM(n.performerNameLanguage, ["zh-CN", "ja"], "zh-CN"), n.homeGlow = TM(n.homeGlow), n.accent = xM(n.accent), n.sidebarOrder = ru(n.sidebarOrder), {
settings: n,
migrated: r
};
}
-function rle(e) {
+function nle(e) {
let t = {};
try {
t = JSON.parse(e.getItem("peach.settings.v1") || "{}");
} catch {}
- return nle(t);
+ return tle(t);
}
-var TM = null;
-function EM() {
- if (TM) return TM;
- let { settings: e, migrated: t } = rle(localStorage);
- return TM = Hce($ce, e), t && TM.save(), TM;
+var AM = null;
+function jM() {
+ if (AM) return AM;
+ let { settings: e, migrated: t } = nle(localStorage);
+ return AM = Vce(Qce, e), t && AM.save(), AM;
}
-function DM(e, t, n = EM()) {
+function MM(e, t, n = jM()) {
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;
- SM.includes(a) && (r.followInitialDays = a, n.save());
- for (let t of tle) typeof e?.[t] == "boolean" && e[t] !== r[t] && (r[t] = e[t], n.save());
+ DM.includes(a) && (r.followInitialDays = a, n.save());
+ for (let t of ele) 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 = Zj(o, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== CM.searchHistoryLimit && ile(n);
+ Number.isInteger(o) && o >= 0 && o <= 50 ? o !== r.searchHistoryLimit && (r.searchHistoryLimit = nM(o, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== OM.searchHistoryLimit && rle(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 ile(e = EM()) {
+function rle(e = jM()) {
return Cn("/api/settings", {
method: "POST",
body: JSON.stringify({ searchHistoryLimit: e.value.searchHistoryLimit })
}).catch(() => {});
}
// src/appearance/theme.ts
-var ale = [
+var ile = [
[
"system",
"跟随系统",
@@ -31828,31 +31853,31 @@ var ale = [
"深色",
"moon"
]
-], ole = null, OM = () => ole ??= matchMedia("(prefers-color-scheme: dark)"), kM = null;
-function sle() {
- return kM || (kM = document.createElement("style"), kM.textContent = "*:not(.board-theme-thumb),*::before,*::after{transition:none!important}"), kM.isConnected || document.head.append(kM), () => {
+], ale = null, NM = () => ale ??= matchMedia("(prefers-color-scheme: dark)"), PM = null;
+function ole() {
+ return PM || (PM = document.createElement("style"), PM.textContent = "*:not(.board-theme-thumb),*::before,*::after{transition:none!important}"), PM.isConnected || document.head.append(PM), () => {
getComputedStyle(document.documentElement).opacity;
let e = () => {
- cancelAnimationFrame(t), clearTimeout(n), kM?.remove();
+ cancelAnimationFrame(t), clearTimeout(n), PM?.remove();
}, t = requestAnimationFrame(e), n = setTimeout(e, 100);
};
}
-function AM(e = EM().value.theme) {
- let t = sle(), n = document.documentElement;
+function FM(e = jM().value.theme) {
+ let t = ole(), n = document.documentElement;
e === "system" ? delete n.dataset.theme : n.dataset.theme = e;
- let r = e === "dark" || e === "system" && OM().matches;
+ let r = e === "dark" || e === "system" && NM().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 jM = !1;
-function cle() {
- jM || (jM = !0, OM().addEventListener("change", () => {
- EM().value.theme === "system" && AM();
+var IM = !1;
+function sle() {
+ IM || (IM = !0, NM().addEventListener("change", () => {
+ jM().value.theme === "system" && FM();
}));
}
// src/appearance/layout.ts
-var MM = [[
+var LM = [[
"big",
"大图",
"maximize"
@@ -31860,7 +31885,7 @@ var MM = [[
"small",
"小图",
"layout-grid"
-]], NM = [[
+]], RM = [[
"big",
"大图",
"maximize"
@@ -31868,7 +31893,7 @@ var MM = [[
"small",
"小图",
"layout-grid"
-]], PM = [[
+]], zM = [[
"fixed",
"固定比例",
"layout-grid"
@@ -31876,127 +31901,127 @@ var MM = [[
"masonry",
"瀑布流",
"columns-2"
-]], FM = .75, IM = () => EM().value, LM = (e = IM()) => Xa(e.javLayout), lle = (e = IM()) => Xa(e.homeLayout), RM = (e, t = IM()) => e ? lle(t) : LM(t), zM = NM.map(([e]) => e), BM = PM.map(([e]) => e), VM = (e = IM()) => wM(e.photoSize, zM, "small"), HM = (e = IM()) => wM(e.photoLayout, BM, "masonry"), UM = null;
-function WM(e, t = IM()) {
+]], BM = .75, VM = () => jM().value, HM = (e = VM()) => Xa(e.javLayout), cle = (e = VM()) => Xa(e.homeLayout), UM = (e, t = VM()) => e ? cle(t) : HM(t), WM = RM.map(([e]) => e), GM = zM.map(([e]) => e), KM = (e = VM()) => kM(e.photoSize, WM, "small"), qM = (e = VM()) => kM(e.photoLayout, GM, "masonry"), JM = null;
+function YM(e, t = VM()) {
let n = {
active: e.active,
- size: RM(e.home, t),
+ size: UM(e.home, t),
portrait: e.portrait,
javImage: t.javImage
- }, r = UM;
- return (!r || Object.keys(n).some((e) => n[e] !== r[e])) && (UM = n), UM;
+ }, r = JM;
+ return (!r || Object.keys(n).some((e) => n[e] !== r[e])) && (JM = n), JM;
}
-function GM(e) {
- return e.portrait ? 9 / 16 : e.active && e.size === "big" ? FM : 16 / 9;
+function XM(e) {
+ return e.portrait ? 9 / 16 : e.active && e.size === "big" ? BM : 16 / 9;
}
-function ule(e, t = EM()) {
+function lle(e, t = jM()) {
t.value.homeLayout = Xa(e), t.save();
}
-function KM(e, t = EM()) {
+function ZM(e, t = jM()) {
t.value.javLayout = Xa(e), t.save();
}
-function dle(e, t = EM()) {
+function ule(e, t = jM()) {
t.value.homeLayout = t.value.javLayout = Xa(e), t.save();
}
-function fle(e, t = EM()) {
- t.value.photoSize = wM(e, zM, "small"), t.save();
+function dle(e, t = jM()) {
+ t.value.photoSize = kM(e, WM, "small"), t.save();
}
-function qM(e, t = EM()) {
- t.value.photoLayout = wM(e, BM, "masonry"), t.save();
+function QM(e, t = jM()) {
+ t.value.photoLayout = kM(e, GM, "masonry"), t.save();
}
// src/appearance/density.ts
-var JM = "density", YM = {
+var $M = "density", eN = {
big: "336px",
dense: "168px"
-}, XM = () => localStorage.getItem(JM) === "dense" ? "dense" : "big";
-function ZM(e, t) {
- let [n, r] = NM;
+}, tN = () => localStorage.getItem($M) === "dense" ? "dense" : "big";
+function nN(e, t) {
+ let [n, r] = RM;
if (e.querySelector("[data-icon-swap]")) Gs(e, t === r[0] ? "b" : "a");
else {
let i = e.querySelector(":scope > [data-glass-drift]");
e.innerHTML = Ws(n[2], r[2], t === r[0] ? "b" : "a"), i && e.append(i);
}
- QM(e, "aria-label", t === "big" ? "切换为小图" : "切换为大图");
+ rN(e, "aria-label", t === "big" ? "切换为小图" : "切换为大图");
}
-function QM(e, t, n) {
+function rN(e, t, n) {
e.getAttribute(t) !== n && e.setAttribute(t, n);
}
-var $M = () => document.querySelector("#density");
-function eN(e = XM()) {
+var iN = () => document.querySelector("#density");
+function aN(e = tN()) {
let t = document.documentElement;
- t.style.getPropertyValue("--tile") !== YM[e] && t.style.setProperty("--tile", YM[e]), QM(document.body, "data-density", e);
- let n = $M();
- n && (QM(n, "aria-pressed", String(e === "dense")), QM(n, "title", "当前:" + (e === "big" ? "大图" : "密集")), ZM(n, e === "big" ? "big" : "small"));
+ t.style.getPropertyValue("--tile") !== eN[e] && t.style.setProperty("--tile", eN[e]), rN(document.body, "data-density", e);
+ let n = iN();
+ n && (rN(n, "aria-pressed", String(e === "dense")), rN(n, "title", "当前:" + (e === "big" ? "大图" : "密集")), nN(n, e === "big" ? "big" : "small"));
}
-function ple() {
- let e = XM() === "big" ? "dense" : "big";
- localStorage.setItem(JM, e), eN(e);
+function fle() {
+ let e = tN() === "big" ? "dense" : "big";
+ localStorage.setItem($M, e), aN(e);
}
-function mle(e) {
- let t = $M();
- t && (QM(t, "aria-pressed", String(e === "small")), QM(t, "title", "当前:" + (e === "big" ? "大图" : "小图")), ZM(t, e));
+function ple(e) {
+ let t = iN();
+ t && (rN(t, "aria-pressed", String(e === "small")), rN(t, "title", "当前:" + (e === "big" ? "大图" : "小图")), nN(t, e));
}
// src/appearance/glow.ts
-function tN(e = EM()) {
- Zce(document.querySelector(".glowlayer"), e.value.homeGlow);
+function oN(e = jM()) {
+ Xce(document.querySelector(".glowlayer"), e.value.homeGlow);
}
-var nN = 0;
-function rN(e = EM()) {
- nN ||= requestAnimationFrame(() => {
- nN = 0, tN(e);
+var sN = 0;
+function cN(e = jM()) {
+ sN ||= requestAnimationFrame(() => {
+ sN = 0, oN(e);
});
}
-function iN(e = EM()) {
- Qce(document.documentElement, e.value.homeGlow);
+function lN(e = jM()) {
+ Zce(document.documentElement, e.value.homeGlow);
}
-function aN(e = EM()) {
+function uN(e = jM()) {
document.documentElement.dataset.accent = e.value.accent;
}
-var oN = (e, t, n) => ({
+var dN = (e, t, n) => ({
key: e,
label: t,
- native: dM(e),
- fill: dM(e) ? "" : Xce(n)
+ native: gM(e),
+ fill: gM(e) ? "" : Yce(n)
});
-function sN(e) {
- let t = uM.map(([e, t, n]) => oN(e, t, cM.map((e) => n[e].color)));
- return e.preset === "custom" && t.push(oN("custom", "自定义", cM.map((t) => e[t].color))), t;
+function fN(e) {
+ let t = hM.map(([e, t, n]) => dN(e, t, pM.map((e) => n[e].color)));
+ return e.preset === "custom" && t.push(dN("custom", "自定义", pM.map((t) => e[t].color))), t;
}
-var cN = mM;
-function lN(e, t = EM()) {
+var pN = yM;
+function mN(e, t = jM()) {
if (e === "custom") return;
let n = t.value.homeGlow;
- n.preset = e, Object.assign(n, pM(e)), t.value.accent = Gce(e), t.save(), rN(t), iN(t), aN(t);
+ n.preset = e, Object.assign(n, vM(e)), t.value.accent = Wce(e), t.save(), cN(t), lN(t), uN(t);
}
-function uN(e, t = EM()) {
- t.value.accent = gM(e), t.save(), aN(t);
+function hN(e, t = jM()) {
+ t.value.accent = xM(e), t.save(), uN(t);
}
-function dN(e = EM()) {
+function gN(e = jM()) {
let t = e.value.homeGlow;
- t.preset = yM.preset, Object.assign(t, pM(t.preset)), e.value.accent = hM, e.save(), rN(e), iN(e), aN(e);
+ t.preset = wM.preset, Object.assign(t, vM(t.preset)), e.value.accent = bM, e.save(), cN(e), lN(e), uN(e);
}
-function fN(e, t) {
- e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && dM(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
+function _N(e, t) {
+ e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && gM(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
}
-function pN(e, t = EM()) {
- return fN(e, t.value.homeGlow), t.subscribe(() => fN(e, t.value.homeGlow));
+function vN(e, t = jM()) {
+ return _N(e, t.value.homeGlow), t.subscribe(() => _N(e, t.value.homeGlow));
}
// src/react/components/glow-preset-grid.tsx
-function mN({ store: e, label: t, hidden: n }) {
+function yN({ 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: sN(r).map((t) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: fN(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: () => lN(t.key, e),
+ onClick: () => mN(t.key, e),
children: /* @__PURE__ */ (0, I.jsx)("span", {
"data-glow-ball": "",
"aria-hidden": "true",
@@ -32007,14 +32032,14 @@ function mN({ store: e, label: t, hidden: n }) {
});
}
// src/react/glow-picker/glow-picker-island.tsx
-var hN = null;
-function hle(e) {
- hN = e;
+var bN = null;
+function mle(e) {
+ bN = e;
}
-function gle() {
- return hN ? /* @__PURE__ */ (0, I.jsx)(_le, { host: hN }) : null;
+function hle() {
+ return bN ? /* @__PURE__ */ (0, I.jsx)(gle, { host: bN }) : null;
}
-function _le({ host: e }) {
+function gle({ host: e }) {
let { store: t } = e;
(0, F.useSyncExternalStore)(t.subscribe, t.version);
let { homeGlow: n, accent: r } = t.value;
@@ -32026,11 +32051,11 @@ function _le({ host: e }) {
children: [/* @__PURE__ */ (0, I.jsx)("span", { children: "光晕" }), /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glow-preset-reset": "",
- onClick: () => dN(t),
+ onClick: () => gN(t),
children: "重置"
})]
}),
- /* @__PURE__ */ (0, I.jsx)(mN, {
+ /* @__PURE__ */ (0, I.jsx)(yN, {
store: t,
label: "光晕",
hidden: !n.on
@@ -32044,14 +32069,14 @@ function _le({ host: e }) {
"data-accent-grid": "",
role: "group",
"aria-label": "强调色",
- children: cN.map(([e, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: pN.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: () => uN(e, t),
+ onClick: () => hN(e, t),
children: /* @__PURE__ */ (0, I.jsx)("span", {
"data-glow-ball": "",
"aria-hidden": "true",
@@ -32069,31 +32094,31 @@ function _le({ host: e }) {
] });
}
// src/player/host.ts
-var gN = null;
-function vle(e) {
- gN = e;
+var xN = null;
+function _le(e) {
+ xN = e;
}
-function _N() {
- if (!gN) throw Error("播放器还没有接上宿主(configurePlayer)");
- return gN;
+function SN() {
+ if (!xN) throw Error("播放器还没有接上宿主(configurePlayer)");
+ return xN;
}
// src/player/menu.ts
-var vN = null;
-function yle(e) {
- vN = e;
+var CN = null;
+function vle(e) {
+ CN = e;
}
-function ble() {
+function yle() {
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 yN = null, bN = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
-function xN() {
+var wN = null, TN = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
+function EN() {
let e = document.getElementById("playerMenu");
e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && ss(e, () => {
e.innerHTML = "";
- }), yN &&= (yN(), null);
+ }), wN &&= (wN(), null);
}
-async function xle(e) {
+async function ble(e) {
try {
return await navigator.clipboard.writeText(e), !0;
} catch {
@@ -32106,8 +32131,8 @@ async function xle(e) {
return t.remove(), n;
}
}
-function Sle(e) {
- let t = !!vN?.inMiniplayer(e), n = e.peachItem, r = vN?.kind(e) ?? "item", i = (t) => {
+function xle(e) {
+ let t = !!CN?.inMiniplayer(e), n = e.peachItem, r = CN?.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);
@@ -32123,7 +32148,7 @@ function Sle(e) {
}
return t && i.searchParams.set("t", String(Math.floor(e.currentTime() || 0))), i.href;
}, a = (e, t) => {
- xle(i(e)).then((e) => _N().toast(e ? t : "复制失败,请手动复制地址栏", {
+ ble(i(e)).then((e) => SN().toast(e ? t : "复制失败,请手动复制地址栏", {
timeout: 4e3,
warn: !e
}));
@@ -32135,11 +32160,11 @@ function Sle(e) {
}, t ? {
icon: "maximize-2",
label: "展开",
- run: () => vN?.expand()
+ run: () => CN?.expand()
} : {
icon: "picture-in-picture-2",
label: "迷你播放器",
- run: () => vN?.toMiniplayer()
+ run: () => CN?.toMiniplayer()
}];
document.pictureInPictureEnabled && o.push({
icon: "player-pip",
@@ -32162,29 +32187,29 @@ function Sle(e) {
run: () => s.click()
}), o;
}
-function Cle(e, t, n) {
- let r = ble();
- xN();
- let i = _N().stage();
+function Sle(e, t, n) {
+ let r = yle();
+ EN();
+ let i = SN().stage();
i instanceof HTMLDialogElement && i.open && i.append(r), r.setAttribute("popover", "manual");
- let a = Sle(e);
+ let a = xle(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}">${bN(z(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${B(e.label)}</span>${n ? bN(z("check"), "data-player-menu-check") : ""}</button>`;
+ return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${TN(z(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${B(e.label)}</span>${n ? TN(z("check"), "data-player-menu-check") : ""}</button>`;
}).join(""), os(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)];
- xN(), n?.run();
+ EN(), n?.run();
};
});
let s = (e) => {
- r.contains(e.target) || xN();
+ r.contains(e.target) || EN();
}, c = (e) => {
if (e.key === "Escape") {
- e.preventDefault(), e.stopPropagation(), xN();
+ e.preventDefault(), e.stopPropagation(), EN();
return;
}
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
@@ -32192,49 +32217,49 @@ function Cle(e, t, n) {
let t = o.indexOf(document.activeElement);
o[(t + (e.key === "ArrowDown" ? 1 : -1) + o.length) % o.length]?.focus();
}, l = (t) => {
- ls(t, e.el()) && xN();
+ ls(t, e.el()) && EN();
};
setTimeout(() => {
document.addEventListener("pointerdown", s, !0), document.addEventListener("keydown", c, !0), window.addEventListener("scroll", l, {
capture: !0,
passive: !0
});
- }, 0), yN = () => {
+ }, 0), wN = () => {
document.removeEventListener("pointerdown", s, !0), document.removeEventListener("keydown", c, !0), window.removeEventListener("scroll", l, !0);
}, o[0]?.focus();
}
-function wle(e) {
+function Cle(e) {
e.el().addEventListener("contextmenu", (t) => {
- t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), Cle(e, t.clientX, t.clientY));
- }), e.on("dispose", xN);
+ t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), Sle(e, t.clientX, t.clientY));
+ }), e.on("dispose", EN);
}
// src/player/registry.ts
-var SN = null, CN = () => SN;
-function wN(e) {
- SN = e;
+var DN = null, ON = () => DN;
+function kN(e) {
+ DN = e;
}
-function TN(e) {
+function AN(e) {
e && !e.isDisposed() && requestAnimationFrame(() => {
e.isDisposed() || e.trigger("resize");
});
}
// src/player/stats.ts
-function EN(e) {
+function jN(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 Tle(e) {
+function wle(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 DN = 3e3;
-function ON(e, t) {
+var MN = 3e3;
+function NN(e, t) {
let n = Number(e) || 0, r = Gn(t) || 0;
return n > 0 && r > 0 ? n * 8 / r : 0;
}
-function Ele(e) {
+function Tle(e) {
let t = [], n = null, r = 0, i = 0;
return {
bitrate: Number(e) || 0,
@@ -32249,10 +32274,10 @@ function Ele(e) {
},
sample(e) {
if (!e) return i;
- let a = performance.now(), o = Tle(e), s = e.currentTime || 0;
+ let a = performance.now(), o = wle(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 > DN * 2 && (t.length = 0);
+ !i && c > 0 && (r += c), e * 1e3 > MN * 2 && (t.length = 0);
}
for (n = {
at: a,
@@ -32261,55 +32286,55 @@ function Ele(e) {
}, t.push({
at: a,
advanced: r
- }); t.length > 2 && a - t[0].at > DN;) t.shift();
+ }); t.length > 2 && a - t[0].at > MN;) 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 kN = 24;
-function AN(e, t) {
- e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > kN && e.splice(0, e.length - kN);
+var PN = 24;
+function FN(e, t) {
+ e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > PN && e.splice(0, e.length - PN);
}
-var jN = "peach-player-panel";
-function MN(e, t, n, r) {
- let i = [...Array(Math.max(0, kN - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
+var IN = "peach-player-panel";
+function LN(e, t, n, r) {
+ let i = [...Array(Math.max(0, PN - 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="${B(r)}">${o}</span>`;
}
-function Dle() {
+function Ele() {
return `<button data-player-stats-button="" id="playerStatsBtn" aria-label="播放统计" title="播放统计" aria-pressed="false" hidden>${z("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 NN(e, t = "") {
+function RN(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 = NN(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 zN(e, t = "") {
+ let n = RN(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 FN(e, t, n = "", r = null) {
+function BN(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 : zN(t, n);
}
-function IN(e) {
+function VN(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 Ole(e, t) {
- return e > 0 ? IN(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : IN(0);
+function Dle(e, t) {
+ return e > 0 ? VN(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : VN(0);
}
// src/player/subtitle-style.ts
-var LN = {
+var HN = {
font: {
label: "字体",
values: [
@@ -32412,7 +32437,7 @@ var LN = {
["shadow", "阴影"]
]
}
-}, RN = {
+}, UN = {
font: "sans",
size: "100",
color: "white",
@@ -32422,7 +32447,7 @@ var LN = {
window: "black",
windowOpacity: "0",
edge: "shadow"
-}, zN = "peach.caption-style.v1", kle = {
+}, WN = "peach.caption-style.v1", Ole = {
white: "255,255,255",
yellow: "255,255,0",
green: "0,255,0",
@@ -32431,7 +32456,7 @@ var LN = {
magenta: "255,0,255",
red: "255,0,0",
black: "0,0,0"
-}, Ale = {
+}, kle = {
sans: "Arial,sans-serif",
mono: "Consolas,monospace",
serif: "Georgia,serif",
@@ -32439,28 +32464,28 @@ var LN = {
casual: "\"Comic Sans MS\",sans-serif",
cursive: "cursive",
"small-caps": "Arial,sans-serif"
-}, jle = {
+}, Ale = {
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 Mle() {
+function jle() {
let e = {};
try {
- e = JSON.parse(localStorage.getItem(zN) || "{}") || {};
+ e = JSON.parse(localStorage.getItem(WN) || "{}") || {};
} catch {}
- return Object.fromEntries(Object.entries(RN).map(([t, n]) => [t, LN[t].values.some(([n]) => n === e[t]) ? e[t] : n]));
+ return Object.fromEntries(Object.entries(UN).map(([t, n]) => [t, HN[t].values.some(([n]) => n === e[t]) ? e[t] : n]));
}
-function BN(e, t, n, r) {
- let i = Mle(), a = /* @__PURE__ */ new Set(), o = document.createElement("div");
+function GN(e, t, n, r) {
+ let i = jle(), 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(${kle[e]},${Number(t) / 100})`;
- e.style.setProperty("--peach-caption-font", Ale[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", jle[i.edge]), e.style.setProperty("--peach-caption-variant", i.font === "small-caps" ? "small-caps" : "normal");
+ let t = (e, t) => `rgba(${Ole[e]},${Number(t) / 100})`;
+ e.style.setProperty("--peach-caption-font", kle[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", Ale[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 || [])) {
@@ -32476,15 +32501,15 @@ function BN(e, t, n, r) {
if (!n.aborted) {
if (e.caption_style) {
let t = {
- ...RN,
+ ...UN,
...e.caption_style
};
- for (let e of Object.keys(RN)) a.has(e) || (i[e] = t[e]);
+ for (let e of Object.keys(UN)) a.has(e) || (i[e] = t[e]);
c();
} else {
let e = !1;
try {
- e = !!localStorage.getItem(zN);
+ e = !!localStorage.getItem(WN);
} catch {}
e && !a.size && r.save({ caption_style: i }).catch(() => {});
}
@@ -32492,18 +32517,18 @@ function BN(e, t, n, r) {
}), {
current: () => i,
set(e, t) {
- LN[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(RN).forEach((e) => a.add(e)), i = { ...RN }, c(), r?.save({ caption_style: i }).catch(() => {});
+ Object.keys(UN).forEach((e) => a.add(e)), i = { ...UN }, c(), r?.save({ caption_style: i }).catch(() => {});
}
};
}
// src/player/memory.ts
-var VN = /* @__PURE__ */ new Map(), HN = /* @__PURE__ */ new WeakMap(), Nle = class {
+var KN = /* @__PURE__ */ new Map(), qN = /* @__PURE__ */ new WeakMap(), Mle = class {
cleanup = new AbortController();
reading;
listeners = /* @__PURE__ */ new Set();
@@ -32531,7 +32556,7 @@ var VN = /* @__PURE__ */ new Map(), HN = /* @__PURE__ */ new WeakMap(), Nle = cl
}
load() {
return this.url ? this.reading ||= (async () => {
- await VN.get(this.url)?.catch(() => {});
+ await KN.get(this.url)?.catch(() => {});
let e = await Cn(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) => {
@@ -32543,7 +32568,7 @@ var VN = /* @__PURE__ */ new Map(), HN = /* @__PURE__ */ new WeakMap(), Nle = cl
}
save(e) {
if (!this.url) return Promise.resolve();
- let t = (VN.get(this.url) || Promise.resolve()).catch(() => {}).then(async () => {
+ let t = (KN.get(this.url) || Promise.resolve()).catch(() => {}).then(async () => {
let t = {
...this.unsaved,
...e,
@@ -32570,8 +32595,8 @@ var VN = /* @__PURE__ */ new Map(), HN = /* @__PURE__ */ new WeakMap(), Nle = cl
this.changed();
}
});
- return VN.set(this.url, t), t.finally(() => {
- VN.get(this.url) === t && VN.delete(this.url);
+ return KN.set(this.url, t), t.finally(() => {
+ KN.get(this.url) === t && KN.delete(this.url);
}).catch(() => {}), t;
}
async retry() {
@@ -32580,12 +32605,12 @@ var VN = /* @__PURE__ */ new Map(), HN = /* @__PURE__ */ new WeakMap(), Nle = cl
} catch {}
}
};
-function UN(e) {
- let t = HN.get(e);
- return t || (t = new Nle(e), HN.set(e, t)), t;
+function JN(e) {
+ let t = qN.get(e);
+ return t || (t = new Mle(e), qN.set(e, t)), t;
}
-function WN(e, t) {
- let n = UN(e), r = Number(e.playbackRate()) || 1, i = !1, a = () => {
+function YN(e, t) {
+ let n = JN(e), r = Number(e.playbackRate()) || 1, i = !1, a = () => {
t.defaultPlaybackRate = r, Number(e.playbackRate()) !== r && e.playbackRate(r);
};
return n.restore((t) => {
@@ -32598,7 +32623,7 @@ function WN(e, t) {
};
}
// src/player/subtitle-memory.ts
-var GN = class {
+var XN = class {
player;
video;
changed;
@@ -32609,7 +32634,7 @@ var GN = class {
ready;
error = "";
constructor(e, t, n = () => {}) {
- this.player = e, this.video = t, this.changed = n, this.memory = UN(e);
+ this.player = e, this.video = t, this.changed = n, this.memory = JN(e);
let r = this.cleanup.signal;
t.textTracks.addEventListener("addtrack", () => {
this.apply(), this.changed();
@@ -32706,7 +32731,7 @@ var GN = class {
throw a.remove(), URL.revokeObjectURL(i), e;
}
}
-}, KN = () => "<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>", Ple = class {
+}, ZN = () => "<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>", Nle = class {
player;
video;
panels;
@@ -32725,7 +32750,7 @@ var GN = class {
more = !1;
searched = !1;
constructor(e, t, n) {
- this.player = e, this.video = t, this.panels = n, this.styles = BN(e.el(), t, this.cleanup.signal, UN(e)), this.cc = e.el().querySelector(".vjs-subtitles-control > button"), this.cc.innerHTML = KN(), this.cc.onclick = () => {
+ this.player = e, this.video = t, this.panels = n, this.styles = GN(e.el(), t, this.cleanup.signal, JN(e)), this.cc = e.el().querySelector(".vjs-subtitles-control > button"), this.cc.innerHTML = ZN(), 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", () => {
@@ -32735,7 +32760,7 @@ var GN = class {
this.sync(), this.page === "tracks" && this.show(0);
}, { signal: this.cleanup.signal }), e.on("dispose", () => {
this.hide(), this.cleanup.abort();
- }), this.session = new GN(e, t, () => {
+ }), this.session = new XN(e, t, () => {
this.sync(), this.page === "tracks" && this.show(0);
}), this.sync();
}
@@ -32783,7 +32808,7 @@ var GN = 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(LN).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>${B(n.label)}</span><b>${B(r)}</b>${z("player-menu-next")}</button>`;
}).join("")}<button type="button" class="vjs-peach-caption-action" data-subtitle-reset>重置</button></div>`, () => this.show(-1), e);
@@ -32795,7 +32820,7 @@ var GN = class {
}
styleOptions(e) {
this.page = "style";
- let t = LN[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="${B(t)}"><span class="vjs-peach-option-check">${r ? z("check") : ""}</span><span class="vjs-peach-option-label">${B(n)}</span></button>`;
@@ -32911,7 +32936,7 @@ var GN = class {
}
};
// src/player/timeline.ts
-function Fle(e, t) {
+function Ple(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;
@@ -32923,8 +32948,8 @@ function Fle(e, t) {
return !a || e >= a[1] && (i !== t.cues.length - 1 || e !== a[1]) ? null : i;
}
// src/player/rotation.ts
-function qN(e, t) {
- let n = 0, r = !1, i = UN(e), a = e.el(), o = a.querySelector("media-container") || a, s = [
+function QN(e, t) {
+ let n = 0, r = !1, i = JN(e), a = e.el(), o = a.querySelector("media-container") || a, s = [
"width",
"height",
"inset",
@@ -32952,7 +32977,7 @@ function qN(e, t) {
};
}
// src/player/pip.ts
-function Ile(e, t, n, r) {
+function Fle(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";
@@ -32984,7 +33009,7 @@ function Ile(e, t, n, r) {
});
}
// src/player/controls.ts
-function JN(e, t, n = "") {
+function $N(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));
@@ -32995,27 +33020,27 @@ function JN(e, t, n = "") {
};
return o(), o;
}
-function YN(e, t) {
+function eP(e, t) {
e?.closest(".video-js")?.querySelector(`.vjs-control-bar ${t}`)?.click();
}
-function Lle(e, t = !0) {
- let n = _N(), r = n.settings();
+function Ile(e, t = !0) {
+ let n = SN(), 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 XN = /* @__PURE__ */ new WeakMap();
-function ZN(e) {
+var tP = /* @__PURE__ */ new WeakMap();
+function nP(e) {
if (!e) return;
- let t = _N().settings().theaterMode;
- e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), XN.get(e)?.(t ? "默认视图" : "影院模式");
+ let t = SN().settings().theaterMode;
+ e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), tP.get(e)?.(t ? "默认视图" : "影院模式");
}
-function QN(e, t = !0) {
- let n = _N(), r = n.settings();
+function rP(e, t = !0) {
+ let n = SN(), r = n.settings();
r.theaterMode = !!e, t && n.saveSettings();
let i = n.stage();
- i?.toggleAttribute("data-theater", r.theaterMode), ZN(i?.querySelector("[data-player-theater]")), TN(CN());
+ i?.toggleAttribute("data-theater", r.theaterMode), nP(i?.querySelector("[data-player-theater]")), AN(ON());
}
-function Rle(e) {
- let t = _N().stage(), n = t?.querySelector("[data-ambient-canvas]");
+function Lle(e) {
+ let t = SN().stage(), n = t?.querySelector("[data-ambient-canvas]");
if (!t || !n) return () => {};
let r = n.getContext("2d", { alpha: !1 });
if (!r) return () => {};
@@ -33038,9 +33063,9 @@ function Rle(e) {
}, u = (t) => {
e.requestVideoFrameCallback ? e.requestVideoFrameCallback((e) => d(t, e)) : requestAnimationFrame((e) => d(t, e));
}, d = (t, n) => {
- i || t !== o || (_N().settings().ambientMode ? e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t)) : c());
+ i || t !== o || (SN().settings().ambientMode ? e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t)) : c());
}, f = () => {
- !i && _N().settings().ambientMode && (l(), e.paused || u(++o));
+ !i && SN().settings().ambientMode && (l(), e.paused || u(++o));
}, p = (e) => {
let n = !!e.detail.enabled;
t.toggleAttribute("data-ambient", n), n ? f() : (o++, c());
@@ -33049,7 +33074,7 @@ function Rle(e) {
i = !0, o++, document.removeEventListener("peachambientchange", p), e.removeEventListener("play", f), e.removeEventListener("loadeddata", f), c();
};
}
-function $N(e, t, n = 0, r = null) {
+function iP(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");
@@ -33059,8 +33084,8 @@ function $N(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]");
- JN(s, "设置");
- let l = a.querySelector(".vjs-peach-settings-menu"), u = qN(e, t), d = WN(e, t), f = UN(e), p, m = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, h = r, g = "auto", _ = (e, t) => {
+ $N(s, "设置");
+ let l = a.querySelector(".vjs-peach-settings-menu"), u = QN(e, t), d = YN(e, t), f = JN(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 = () => {
@@ -33099,11 +33124,11 @@ function $N(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(jN, { detail: "settings" }));
+ l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e || p?.hide(), e && document.dispatchEvent(new CustomEvent(IN, { detail: "settings" }));
}, S = () => x(!1), C = (e) => {
e.detail !== "settings" && S();
};
- document.addEventListener(jN, C);
+ document.addEventListener(IN, 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;
@@ -33119,15 +33144,15 @@ function $N(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="${_N().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="${SN().settings().ambientMode}">
${z("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>${z("player-speed")}<span>播放速度</span><b>${n === 1 ? "正常" : `${n}×`}</b>${z("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">${KN()}</span><span>字幕</span><b>${B(p?.label() || "关闭")}</b>${z("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">${ZN()}</span><span>字幕</span><b>${B(p?.label() || "关闭")}</b>${z("player-menu-next")}</button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-rotation>${z("rotate-cw", "vjs-peach-menu-line-icon")}<span>画面旋转</span><b>${u.angle()}°</b>${z("player-menu-next")}</button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-quality-view>${z("player-quality")}<span>清晰度</span><b>${B(t.label)}</b>${z("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 = () => {
- Lle(!_N().settings().ambientMode), k();
+ Ile(!SN().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();
@@ -33231,8 +33256,8 @@ function $N(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(jN, C), w && clearTimeout(w);
- }), p = new Ple(e, t, {
+ I(), t.removeEventListener("loadedmetadata", re), t.removeEventListener("resize", re), t.removeEventListener("ratechange", re), T++, document.removeEventListener("pointerdown", F), document.removeEventListener(IN, C), w && clearTimeout(w);
+ }), p = new Nle(e, t, {
render: E,
open: () => {
O = "subtitles", x(!0);
@@ -33241,21 +33266,21 @@ function $N(e, t, n = 0, r = null) {
back: () => {
p?.hide(), k(-1);
}
- }), y(), zle(e, a), Ble(e), (e) => {
+ }), y(), Rle(e, a), zle(e), (e) => {
h = e?.length ? e : null, re();
};
}
-function zle(e, t) {
+function Rle(e, t) {
let n = e.el().querySelector(".vjs-control-bar");
if (!n || n.querySelector("[data-player-theater]")) return;
- let r = _N().settings().theaterMode, i = document.createElement("div");
+ let r = SN().settings().theaterMode, i = document.createElement("div");
i.className = "vjs-peach-theater vjs-control", i.innerHTML = `<button type="button" data-player-theater aria-pressed="${r}">${z(r ? "theater-exit" : "theater-enter")}</button>`, n.insertBefore(i, t.nextSibling);
let a = i.querySelector("button");
- XN.set(a, JN(a, "影院模式", "T")), ZN(a), a.onclick = (e) => {
- e.stopPropagation(), QN(!_N().settings().theaterMode);
+ tP.set(a, $N(a, "影院模式", "T")), nP(a), a.onclick = (e) => {
+ e.stopPropagation(), rP(!SN().settings().theaterMode);
};
}
-function Ble(e) {
+function zle(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");
@@ -33267,7 +33292,7 @@ function Ble(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 = JN(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 = $N(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 ? "播放" : "暂停");
};
@@ -33278,7 +33303,7 @@ function Ble(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 = JN(p, "静音", "M"), g = () => {
+ let h = $N(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 ? "取消静音" : "静音");
};
@@ -33304,7 +33329,7 @@ function Ble(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 = JN(x, "显示剩余时间"), T = () => {
+ let C = x.querySelector(".vjs-peach-time-text"), w = $N(x, "显示剩余时间"), T = () => {
let t = Math.max(0, Number(e.currentTime()) || 0), n = Math.max(0, Number(e.duration()) || 0), r = qn(Math.max(0, n - t));
C.textContent = `${S ? `-${r}` : qn(t)} / ${qn(n)}`, x.dataset.remaining = String(S), w(S ? "显示已播放时间" : "显示剩余时间", S ? `剩余 ${r},总时长 ${qn(n)};点击显示已播放时间` : `已播放 ${qn(t)},总时长 ${qn(n)};点击显示剩余时间`);
};
@@ -33316,10 +33341,10 @@ function Ble(e) {
"loadedmetadata"
], T), T(), f ? f.insertAdjacentElement("afterend", x) : t.append(x);
let E = t.querySelector(":scope>.vjs-picture-in-picture-control");
- JN(t.querySelector(".vjs-subtitles-control>button"), "字幕"), r(E, "player-pip"), Ile(e, E, JN(E, "画中画"), (e) => _N().toast(e, { warn: !0 }));
- let D = t.querySelector(":scope>.vjs-fullscreen-control"), O = r(D, "player-fullscreen-enter"), k = JN(D, "全屏", "F"), A = () => {
+ $N(t.querySelector(".vjs-subtitles-control>button"), "字幕"), r(E, "player-pip"), Fle(e, E, $N(E, "画中画"), (e) => SN().toast(e, { warn: !0 }));
+ let D = t.querySelector(":scope>.vjs-fullscreen-control"), O = r(D, "player-fullscreen-enter"), k = $N(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 ? "退出全屏" : "全屏"), TN(e);
+ e.el().toggleAttribute("data-peach-fullscreen", t), O?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), k(t ? "退出全屏" : "全屏"), AN(e);
};
e.on([
"fullscreenchange",
@@ -33340,7 +33365,7 @@ function Ble(e) {
});
let ee = document.createElement("div");
ee.className = "vjs-peach-expand vjs-control", ee.innerHTML = `<button type="button" data-player-expand aria-expanded="false">${z("player-expand")}</button><span class="vjs-peach-hover" aria-hidden="true"></span>`, M.prepend(ee);
- let N = ee.querySelector("button"), te = JN(N, "展开控件"), P = (t) => {
+ let N = ee.querySelector("button"), te = $N(N, "展开控件"), P = (t) => {
e.el().classList.toggle("vjs-peach-right-expanded", t), N.setAttribute("aria-expanded", String(t)), te(t ? "收起控件" : "展开控件");
};
N.onclick = (t) => {
@@ -33352,7 +33377,7 @@ function Ble(e) {
}, re = new ResizeObserver(ne);
re.observe(e.el()), e.on("dispose", () => re.disconnect()), P(!1), ne();
}
-function eP(e, t, n = {}) {
+function aP(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");
@@ -33363,7 +33388,7 @@ function eP(e, t, n = {}) {
}).catch(() => {});
let f = (e, n, r, i) => {
if (!t) return;
- let a = n.columns || 10, o = a * (n.rows || 10), s = Fle(e, n);
+ let a = n.columns || 10, o = a * (n.rows || 10), s = Ple(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;
@@ -33388,13 +33413,13 @@ function eP(e, t, n = {}) {
r.removeEventListener("pointermove", m), r.removeEventListener("pointerleave", h);
});
}
-function Vle(e, t) {
+function Ble(e, t) {
let n = navigator.mediaSession;
if (!n || typeof n.setActionHandler != "function") return;
let r = () => Gn(e.duration()) || Gn(t.duration) || 0, i = (t) => {
let n = r();
e.currentTime(Math.max(0, n ? Math.min(n, t) : t));
- }, a = () => Math.max(1, Number(_N().settings().seekSeconds) || 10), o = [
+ }, a = () => Math.max(1, Number(SN().settings().seekSeconds) || 10), o = [
["play", () => {
e.play();
}],
@@ -33435,11 +33460,11 @@ function Vle(e, t) {
} catch {}
});
}
-function tP(e) {
+function oP(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 nP(e, t) {
+function sP(e, t) {
Cn(`/api/assets/${t}/subtitles`).then((t) => {
e && !e.isDisposed() && (t?.subtitles || []).filter((e) => e.playable).forEach((t) => {
e.addRemoteTextTrack({
@@ -33455,35 +33480,35 @@ function nP(e, t) {
}).catch(() => {});
}
// src/player/progress.ts
-var rP = "peach.playback-position.v1", iP = /* @__PURE__ */ new WeakMap();
-function aP(e) {
- iP.get(e)?.(), iP.delete(e);
+var cP = "peach.playback-position.v1", lP = /* @__PURE__ */ new WeakMap();
+function uP(e) {
+ lP.get(e)?.(), lP.delete(e);
}
-function oP(e, t, n = null) {
+function dP(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 Hle(e) {
+function Vle(e) {
try {
- let t = localStorage.getItem(`${rP}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
+ let t = localStorage.getItem(`${cP}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
return Number.isFinite(n) && n >= 0 ? n : null;
} catch {
return null;
}
}
-function Ule(e, t) {
- let n = Hle(e);
+function Hle(e, t) {
+ let n = Vle(e);
if (n !== null) return n;
let r = Number(t.leave_ratio);
return r > 0 && r < 1 ? r * Gn(t.duration) : 0;
}
-function Wle(e, t) {
- aP(t);
+function Ule(e, t) {
+ uP(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(`${rP}:${e}`, String(r));
+ localStorage.setItem(`${cP}:${e}`, String(r));
} catch {}
}, i = () => {
n = !0;
@@ -33497,7 +33522,7 @@ function Wle(e, t) {
"pause",
"ended"
]) t.addEventListener(e, r);
- window.addEventListener("pagehide", r), document.addEventListener("visibilitychange", r), iP.set(t, () => {
+ window.addEventListener("pagehide", r), document.addEventListener("visibilitychange", r), lP.set(t, () => {
r(), t.removeEventListener("loadedmetadata", i), t.removeEventListener("emptied", a);
for (let e of [
"timeupdate",
@@ -33509,19 +33534,19 @@ function Wle(e, t) {
});
}
// src/player/telemetry.ts
-var sP = /* @__PURE__ */ new WeakMap();
-function cP(e) {
- sP.get(e)?.(), sP.delete(e);
+var fP = /* @__PURE__ */ new WeakMap();
+function pP(e) {
+ fP.get(e)?.(), fP.delete(e);
}
-function lP(e, t, n, r) {
+function mP(e, t, n, r) {
let i = () => t(!1), a = () => {
n(), t(!1);
};
- e.addEventListener("seeking", r), e.addEventListener("emptied", a), window.addEventListener("pagehide", i), sP.set(e, () => {
+ e.addEventListener("seeking", r), e.addEventListener("emptied", a), window.addEventListener("pagehide", i), fP.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 uP(e, t, n = {}) {
+function hP(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 = Gn(e.duration) || Gn(t.duration);
@@ -33562,11 +33587,11 @@ function uP(e, t, n = {}) {
u(), l(!1);
}, t.onended = () => {
u(), l(!0), n.onEnded?.();
- }, lP(t, l, u, () => {
+ }, mP(t, l, u, () => {
a++;
}), c();
}
-function Gle(e, t) {
+function Wle(e, t) {
let n = 0, r = 0, i = !1, a = null, o = (n) => {
let i = Gn(e.duration) || Gn(t.duration);
(r || n) && (Cn("/api/follow/activity", {
@@ -33597,22 +33622,22 @@ function Gle(e, t) {
s(), o(!1);
}, t.onended = () => {
s(), o(!0);
- }, lP(t, o, s, () => {});
+ }, mP(t, o, s, () => {});
}
// src/player/dispose.ts
-function dP(e) {
+function gP(e) {
if (!e || e.isDisposed()) return;
let t = e.el()?.querySelector("video");
try {
e.pause();
} catch {}
- t && (aP(t), cP(t));
+ t && (uP(t), pP(t));
try {
e.dispose();
} catch {}
}
// src/core/random-id.ts
-function fP() {
+function _P() {
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;
@@ -33620,23 +33645,23 @@ function fP() {
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 pP() {
- return fP();
+function vP() {
+ return _P();
}
-function mP(e, t) {
+function yP(e, t) {
return {
src: `/stream?id=${e.id}&session=${encodeURIComponent(t)}`,
type: String(e.name || "").toLowerCase().endsWith(".webm") ? "video/webm" : "video/mp4"
};
}
-function Kle(e) {
+function Gle(e) {
return e.location === "online" && e.follow_item_id ? {
src: `/follow-stream?id=${e.follow_item_id}`,
type: "video/mp4"
} : null;
}
-async function hP(e, t) {
- let n = Kle(e);
+async function bP(e, t) {
+ let n = Gle(e);
if (n) return n;
try {
let n = await Cn(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(t)}`);
@@ -33645,9 +33670,9 @@ async function hP(e, t) {
type: n.mime_type || (n.protocol === "hls" ? "application/vnd.apple.mpegurl" : "video/mp4")
};
} catch {}
- return mP(e, t);
+ return yP(e, t);
}
-function gP(e) {
+function xP(e) {
e && fetch(`/api/stream-cancel?session=${encodeURIComponent(e)}`, {
method: "POST",
credentials: "same-origin",
@@ -33656,22 +33681,22 @@ function gP(e) {
document.documentElement.dataset.peachStreamCancel = JSON.stringify(e);
}).catch(() => {});
}
-var _P = "";
-function vP() {
- return _P;
+var SP = "";
+function CP() {
+ return SP;
}
-function yP() {
- return _P ||= pP(), _P;
+function wP() {
+ return SP ||= vP(), SP;
}
-var qle = (e) => mP(e, yP()), Jle = (e) => hP(e, yP());
-function bP() {
- let e = _P;
- e && (_P = "", gP(e));
+var Kle = (e) => yP(e, wP()), qle = (e) => bP(e, wP());
+function TP() {
+ let e = SP;
+ e && (SP = "", xP(e));
}
// src/player/v10-player.ts
-var xP = (e) => typeof e == "string" ? [e] : e, Yle = (e, t) => {
+var EP = (e) => typeof e == "string" ? [e] : e, Jle = (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-${fP()}`, n.setAttribute("lang", "zh-CN");
+ n.className = "video-js vjs-paused vjs-user-active", n.id = e.id || `peach-player-${_P()}`, 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 = {
@@ -33766,9 +33791,9 @@ var xP = (e) => typeof e == "string" ? [e] : e, Yle = (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) => xP(e).forEach((e) => o.addEventListener(e, t, { signal: c })),
- off: (e, t) => xP(e).forEach((e) => o.removeEventListener(e, t)),
- one: (e, t) => xP(e).forEach((e) => o.addEventListener(e, t, {
+ 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, {
once: !0,
signal: c
})),
@@ -33823,7 +33848,7 @@ var xP = (e) => typeof e == "string" ? [e] : e, Yle = (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);
}
};
-}, Xle = "/vendor/videojs/10.2.0/", Zle = [
+}, Yle = "/vendor/videojs/10.2.0/", Xle = [
"video-player.js",
"media/hlsjs-video.js",
"media/dash-video.js",
@@ -33841,17 +33866,17 @@ var xP = (e) => typeof e == "string" ? [e] : e, Yle = (e, t) => {
"ui/slider-value.js",
"i18n.js",
"locales/zh-CN.js"
-], SP = null;
-function CP() {
- return SP ??= Promise.all(Zle.map((e) => import(
+], DP = null;
+function OP() {
+ return DP ??= Promise.all(Xle.map((e) => import(
/* @vite-ignore */
- `${Xle}${e}`
-))).then(() => Yle).catch((e) => {
- throw SP = null, e;
- }), SP;
+ `${Yle}${e}`
+))).then(() => Jle).catch((e) => {
+ throw DP = null, e;
+ }), DP;
}
// src/player/immerse-player.ts
-var Qle = {
+var Zle = {
controls: !1,
preload: "auto",
posterImage: !1,
@@ -33863,38 +33888,38 @@ var Qle = {
errorDisplay: !1,
textTrackSettings: !1
};
-function $le(e, t) {
+function Qle(e, t) {
let { item: n, session: r } = t, i = null, a = !1;
- return Promise.all([hP(n, r), CP().catch(() => null)]).then(([o, s]) => {
+ return Promise.all([bP(n, r), OP().catch(() => null)]).then(([o, s]) => {
if (a) return;
- let c = mP(n, r), l = String(o.type || "").includes("mpegurl");
+ let c = yP(n, r), l = String(o.type || "").includes("mpegurl");
if (!s) e.src = (l ? c : o).src;
else {
- let t = s(e, Qle);
- i = t, t.peachItem = n, t.peachPlaybackKey = oP("item", n);
+ let t = s(e, Zle);
+ i = t, t.peachItem = n, t.peachPlaybackKey = dP("item", n);
let r = new AbortController();
- BN(t.el(), e, r.signal, UN(t)), qN(t, e), WN(t, e), t.on("dispose", () => r.abort()), new GN(t, e), nP(t, n.id), l && t.one("error", () => {
+ GN(t.el(), e, r.signal, JN(t)), QN(t, e), YN(t, e), t.on("dispose", () => r.abort()), new XN(t, e), sP(t, n.id), l && t.one("error", () => {
a || t.src(c);
}), t.src(o);
}
- uP(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
+ hP(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
}), () => {
- a || (a = !0, gP(r), i ? dP(i) : (e.pause(), cP(e), e.removeAttribute("src"), e.load()));
+ a || (a = !0, xP(r), i ? gP(i) : (e.pause(), pP(e), e.removeAttribute("src"), e.load()));
};
}
// src/player/detail-player.ts
-var wP = /* @__PURE__ */ new WeakMap(), TP = null, EP = null, DP = null;
-function OP() {
- TP &&= (clearInterval(TP), null), EP &&= (clearInterval(EP), null), DP &&= (clearTimeout(DP), null);
+var kP = /* @__PURE__ */ new WeakMap(), AP = null, jP = null, MP = null;
+function NP() {
+ AP &&= (clearInterval(AP), null), jP &&= (clearInterval(jP), null), MP &&= (clearTimeout(MP), null);
}
-async function eue(e, t, n, r = {}) {
- let i = CN();
+async function $le(e, t, n, r = {}) {
+ let i = ON();
if (i && !i.isDisposed()) return i;
- let a = _N(), o = r.resume ?? null;
+ let a = SN(), o = r.resume ?? null;
o?.autoplay && (n = !0);
- let s = () => r.source ? Promise.resolve(r.source) : Jle(e), c;
+ let s = () => r.source ? Promise.resolve(r.source) : qle(e), c;
try {
- c = await CP();
+ c = await OP();
} catch {
return t.controls = !0, s().then((e) => {
t.addEventListener("loadedmetadata", () => {
@@ -33920,7 +33945,7 @@ async function eue(e, t, n, r = {}) {
} }
}
});
- wN(l), l.peachItem = e, l.peachPlaybackKey = r.playbackKey || oP("item", e), wle(l), l.on("loadedmetadata", () => {
+ kN(l), l.peachItem = e, l.peachPlaybackKey = r.playbackKey || dP("item", e), Cle(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}`);
});
@@ -33928,7 +33953,7 @@ async function eue(e, t, n, r = {}) {
speed: [],
activity: [],
buffer: []
- }, f = Number(r.size ?? e.size) || 0, p = Ele(ON(f, e.duration)), m = 0, h = !1, g = () => CN() === l && !l.isDisposed(), _ = () => {
+ }, f = Number(r.size ?? e.size) || 0, p = Tle(NN(f, e.duration)), m = 0, h = !1, g = () => ON() === 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(() => {
@@ -33939,15 +33964,15 @@ async function eue(e, t, n, r = {}) {
ready: !1,
updateStats: () => {}
};
- wP.set(l, y), y.updateStats = () => {
+ kP.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 = vP(), h = s ? NN(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 = CP(), h = s ? RN(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 = 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);
+ let x = BN(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 = EN(t);
- AN(d.speed, x), AN(d.activity, C), AN(d.buffer, w);
+ let w = jN(t);
+ FN(d.speed, x), FN(d.activity, C), FN(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 ? [
"网络活动",
`${_ ? Jn(_) : "—"} · ${h.length} 请求`,
@@ -33965,17 +33990,17 @@ async function eue(e, t, n, r = {}) {
[
"连接速度",
D,
- MN(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],
- MN(d.activity, "activity", Math.max(1, ...d.activity), k[2])
+ LN(d.activity, "activity", Math.max(1, ...d.activity), k[2])
],
[
"缓冲健康",
`${w.toFixed(1)} 秒`,
- MN(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
+ LN(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
],
["播放时间", `${qn(t.currentTime)} / ${qn(u || l.duration())}`],
["日期", (/* @__PURE__ */ new Date()).toLocaleString()]
@@ -33991,15 +34016,15 @@ async function eue(e, t, n, r = {}) {
if (!n || l.isDisposed()) return;
let r = v();
r || p.sample(t);
- let i = FN(l, e.id, vP(), r ? null : p), a = r ? IN(i) : Ole(i, EN(t));
+ let i = BN(l, e.id, CP(), r ? null : p), a = r ? VN(i) : Dle(i, jN(t));
n.innerHTML = `${z("gauge")}<span class="sr-only">加载速度</span><span>${B(a)}</span>`;
}, C = () => {
let e = y.chrome?.netBadge;
- e && e.isConnected && (e.hidden = !1, S(), EP && clearInterval(EP), EP = setInterval(S, 500));
+ e && e.isConnected && (e.hidden = !1, S(), jP && clearInterval(jP), jP = setInterval(S, 500));
}, w = () => {
let e = y.chrome?.netBadge;
- e && (DP && clearTimeout(DP), DP = setTimeout(() => {
- e.hidden = !0, EP &&= (clearInterval(EP), null);
+ e && (MP && clearTimeout(MP), MP = setTimeout(() => {
+ e.hidden = !0, jP &&= (clearInterval(jP), null);
}, 1400));
};
return l.on([
@@ -34010,7 +34035,7 @@ async function eue(e, t, n, r = {}) {
], C), l.on(["canplay", "playing"], () => {
S(), w();
}), l.on("error", () => {
- b && !x && !l.isDisposed() ? (x = !0, b = !1, l.src(qle(e)), n && l.play()?.catch(() => {})) : r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {
+ b && !x && !l.isDisposed() ? (x = !0, b = !1, l.src(Kle(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))}`
@@ -34018,13 +34043,13 @@ async function eue(e, t, n, r = {}) {
});
}), l.ready(() => {
_();
- let n = $N(l, t, e.height, r.qualities ?? null);
+ let n = iP(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(() => {}), eP(l, e, { thumbnail: !r.source }), Vle(l, e), tP(l), r.source || nP(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
+ r > 0 && !f && (f = r, p.bitrate = NN(r, e.duration));
+ }).catch(() => {}), aP(l, e, { thumbnail: !r.source }), Ble(l, e), oP(l), r.source || sP(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
}), s().then((e) => {
g() && (b = String(e.type || "").includes("mpegurl"), o && o.time > 0 && l.one("loadedmetadata", () => {
if (l.isDisposed()) return;
@@ -34033,16 +34058,16 @@ async function eue(e, t, n, r = {}) {
}), l.src(e), _(), setTimeout(_, 0), setTimeout(_, 250), n && l.play()?.catch(() => {}));
}).catch(() => {}), l;
}
-var tue = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
-function kP(e, t = null) {
- if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", tue), e.querySelector("#playerStatsBtn")) return;
+var eue = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
+function PP(e, t = null) {
+ if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", eue), e.querySelector("#playerStatsBtn")) return;
let n = document.createElement("template");
- n.innerHTML = Dle();
+ n.innerHTML = Ele();
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 AP(e, t) {
- let n = wP.get(e);
+function FP(e, t) {
+ let n = kP.get(e);
if (!n || e.isDisposed()) return () => {};
let r = (e) => t.querySelector(`#${e}`), i = {
statsButton: r("playerStatsBtn"),
@@ -34054,29 +34079,29 @@ function AP(e, t) {
if (a && o) {
a.hidden = !n.ready;
let e = () => {
- o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), TP &&= (clearInterval(TP), null));
+ o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), AP &&= (clearInterval(AP), null));
};
a.onclick = () => {
- o.hidden ? (document.dispatchEvent(new CustomEvent(jN, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), TP && clearInterval(TP), TP = setInterval(n.updateStats, 1e3)) : e();
+ o.hidden ? (document.dispatchEvent(new CustomEvent(IN, { 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(jN, t), s = () => document.removeEventListener(jN, t);
+ document.addEventListener(IN, t), s = () => document.removeEventListener(IN, t);
}
- let c = e.el().querySelector("video"), l = c ? Rle(c) : () => {}, u = !0, d = () => {
- u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, OP()));
+ let c = e.el().querySelector("video"), l = c ? Lle(c) : () => {}, u = !0, d = () => {
+ u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, NP()));
};
return e.one("dispose", d), d;
}
-function jP(e, t) {
- if (t.kind === "immerse") return $le(e, t);
- let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = _N(), c = t.chrome === !1 ? null : e.parentElement;
- c && kP(c, e);
- let l = oP(n, r, i?.index ?? null), u = {
+function IP(e, t) {
+ if (t.kind === "immerse") return Qle(e, t);
+ let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = SN(), c = t.chrome === !1 ? null : e.parentElement;
+ c && PP(c, e);
+ let l = dP(n, r, i?.index ?? null), u = {
playbackKey: l,
resume: t.resume ?? {
- time: Ule(l, r),
+ time: Hle(l, r),
autoplay: !1
}
};
@@ -34096,36 +34121,36 @@ function jP(e, t) {
t && (e.poster = t);
}
let d = null, f = !1, p = () => {}, m = e, h = () => {
- p(), !(d && a?.(d)) && (aP(m), d ? (CN() === d && (wN(null), OP()), dP(d)) : cP(m));
+ p(), !(d && a?.(d)) && (uP(m), d ? (ON() === d && (kN(null), NP()), gP(d)) : pP(m));
};
- return eue(r, e, t.autoplay ?? s.settings().detailAutoplay, u).then((t) => {
- d = t, f ? h() : (m = t?.el().querySelector("video") ?? e, Wle(l, m), n === "follow" ? Gle(r, m) : (m.addEventListener("play", () => {
+ return $le(r, e, t.autoplay ?? s.settings().detailAutoplay, u).then((t) => {
+ d = t, f ? h() : (m = t?.el().querySelector("video") ?? e, Ule(l, m), n === "follow" ? Wle(r, m) : (m.addEventListener("play", () => {
Cn("/api/play", {
method: "POST",
body: JSON.stringify({ id: r.id })
}).catch(() => {});
- }, { once: !0 }), uP(r, m, {
+ }, { once: !0 }), hP(r, m, {
watched: "#watched",
mark: "#mark",
ratio: "#ratioTxt"
- })), t ? (c && (p = AP(t, c)), o?.(t)) : o?.(null));
+ })), t ? (c && (p = FP(t, c)), o?.(t)) : o?.(null));
}), () => {
f = !0, h();
};
}
// src/player/playback.ts
-function MP(e) {
+function LP(e) {
e && (e.paused ? e.play()?.catch(() => {}) : e.pause());
}
-function NP(e, t) {
+function RP(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 nue(e, t, n) {
+function tue(e, t, n) {
e.controls = !1;
let r = !1, i = null;
- return CP().then((a) => {
+ return OP().then((a) => {
if (r) return;
i = a(e, {
controls: !0,
@@ -34150,30 +34175,30 @@ function nue(e, t, n) {
o.on("error", () => {
r || n();
}), o.ready(() => {
- r || o.isDisposed() || ($N(o, e), eP(o, null, { thumbnail: !1 }), tP(o));
+ r || o.isDisposed() || (iP(o, e), aP(o, null, { thumbnail: !1 }), oP(o));
}), o.src(t);
}).catch(() => {
r || n();
}), () => {
- r = !0, dP(i), i || (e.pause(), e.removeAttribute("src"), e.load(), e.remove());
+ r = !0, gP(i), i || (e.pause(), e.removeAttribute("src"), e.load(), e.remove());
};
}
-function PP(e, t) {
+function zP(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return t && n.set("exclude_vertical", "1"), n.toString();
}
-var rue = (e, t) => [
+var nue = (e, t) => [
"catalog-grid",
"catalog",
e,
t
-], iue = (e, t) => [
+], rue = (e, t) => [
"catalog-grid",
"entity",
e,
t
];
-async function aue(e, t, n, r, i) {
+async function iue(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 V(`/api/items?${a}`, i), s = {
@@ -34183,22 +34208,22 @@ async function aue(e, t, n, r, i) {
};
return t || s.items.length || r || (s.libraryEmpty = (await V("/api/items?limit=1&thumb=0", i)).total === 0), s;
}
-var oue = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, sue = (e, t) => {
+var aue = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, oue = (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 cue(e) {
- let t = PP(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
+function sue(e) {
+ let t = zP(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
return {
- queryKey: rue(t, e.revision || 0),
- queryFn: ({ pageParam: e, signal: i }) => aue(t, e, n, r, i),
+ queryKey: nue(t, e.revision || 0),
+ queryFn: ({ pageParam: e, signal: i }) => iue(t, e, n, r, i),
initialPageParam: 0,
- getNextPageParam: oue(n)
+ getNextPageParam: aue(n)
};
}
-function lue(e) {
+function cue(e) {
return {
- queryKey: iue(e.entityKey || "", e.revision || 0),
+ queryKey: rue(e.entityKey || "", e.revision || 0),
queryFn: async ({ pageParam: t, signal: n }) => {
if (!e.fetchPage) return {
items: [],
@@ -34213,14 +34238,14 @@ function lue(e) {
};
},
initialPageParam: 0,
- getNextPageParam: sue
+ getNextPageParam: oue
};
}
-function FP(e) {
+function BP(e) {
let t = JSON.stringify(e);
return U.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 IP(e, t, n) {
+function VP(e, t, n) {
return n ? e.filter((e) => {
let n = e.part_group?.key;
if (n) {
@@ -34235,24 +34260,24 @@ function IP(e, t, n) {
return !0;
}) : [...e];
}
-var LP = (e, t) => !!e && !!$a(e, t);
-function uue(e, t) {
- let n = (e) => LP(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) => LP(e, t)) || e[e.length - 1];
+var HP = (e, t) => !!e && !!$a(e, t);
+function lue(e, t) {
+ let n = (e) => HP(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) => HP(e, t)) || e[e.length - 1];
}
-function due(e, { collapse: t, mix: n, javImage: r }) {
+function uue(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 = IP(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
+ let e = VP(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 = uue(e, r);
+ let t = lue(e, r);
t && l.splice(7, 0, {
kind: "mix",
seed: t
@@ -34265,16 +34290,16 @@ function due(e, { collapse: t, mix: n, javImage: r }) {
pageStarts: s
};
}
-function fue(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 pue(e, t) {
+function fue(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 mue(e, t) {
+function pue(e, t) {
let n = [...t].sort((e, t) => e.at - t.at), r = [], i = 0;
for (let t of n) r.push({
start: i,
@@ -34287,10 +34312,10 @@ function mue(e, t) {
strip: null
}), r;
}
-function RP(e, t) {
- zP((t) => t.id === e, t);
+function UP(e, t) {
+ WP((t) => t.id === e, t);
}
-function zP(e, t) {
+function WP(e, t) {
U.setQueriesData({ queryKey: ["catalog-short-layout"] }, (n) => !n || !n.cuts.some((t) => t.items.some(e)) ? n : {
...n,
cuts: n.cuts.map((n) => ({
@@ -34320,34 +34345,34 @@ function zP(e, t) {
} : n)
});
}
-var BP = (e) => Math.min(Math.max(e || 0, 0), 100), VP = (e) => Math.round(BP(e) / 20), hue = (e) => {
- let t = VP(e);
+var GP = (e) => Math.min(Math.max(e || 0, 0), 100), KP = (e) => Math.round(GP(e) / 20), mue = (e) => {
+ let t = KP(e);
return t ? `${t} 星` : "未评分";
-}, HP = (e, t) => t === VP(e) ? 0 : t * 20, UP = (e) => ["item", e], WP = (e) => [
+}, qP = (e, t) => t === KP(e) ? 0 : t * 20, JP = (e) => ["item", e], YP = (e) => [
"item-queue",
e.kind,
e.kind === "playlist" ? e.playlistId : e.seedId
-], gue = (e, t) => [
+], hue = (e, t) => [
"item-related",
e,
t
-], _ue = (e) => `/api/item?id=${e}`, vue = (e, t) => `/api/related?id=${e}&limit=${t}`, GP = "/api/playlist", KP = "/api/feedback", qP = "/api/item-tag", JP = "/api/watch-later", YP = "/api/quality-goal", XP = "/api/preference", ZP = class extends Error {};
-async function QP(e, t) {
- let n = await V(_ue(e), t);
- if (n.error) throw new ZP(n.error);
+], gue = (e) => `/api/item?id=${e}`, _ue = (e, t) => `/api/related?id=${e}&limit=${t}`, XP = "/api/playlist", ZP = "/api/feedback", QP = "/api/item-tag", $P = "/api/watch-later", eF = "/api/quality-goal", tF = "/api/preference", nF = class extends Error {};
+async function rF(e, t) {
+ let n = await V(gue(e), t);
+ if (n.error) throw new nF(n.error);
return n;
}
-async function $P(e, t, n) {
+async function iF(e, t, n) {
if (e.kind === "mix") {
- let r = e.seedId, [i, a] = await Promise.all([QP(r, n), t.mixRelated(r)]);
- return U.setQueryData(UP(i.id), i), {
+ let r = e.seedId, [i, a] = await Promise.all([rF(r, n), t.mixRelated(r)]);
+ return U.setQueryData(JP(i.id), i), {
kind: "mix",
seedId: r,
title: `Mix · ${Ao(i, t.tagLabel)}`,
items: [i, ...a.filter((e) => e.id !== i.id)]
};
}
- if (e.kind === "playlist") return eF(await V(`${GP}?id=${e.playlistId}`, n));
+ if (e.kind === "playlist") return aF(await V(`${XP}?id=${e.playlistId}`, n));
let r = await V(`/api/${e.kind}?id=${e.seedId}`, n);
if (r.error || !r.items?.length) throw Error(r.error || "这一组已不存在");
return {
@@ -34358,19 +34383,19 @@ async function $P(e, t, n) {
versionCount: e.kind === "editions" ? r.count : void 0
};
}
-var eF = (e) => ({
+var aF = (e) => ({
kind: "playlist",
playlistId: e.id,
title: e.name,
items: e.items || [],
currentAssetId: e.current_asset_id
-}), tF = (e) => e.disposal === "vanished";
-function nF(e, t) {
+}), oF = (e) => e.disposal === "vanished";
+function sF(e, t) {
if (e.kind === "mix") return t;
- let n = e.kind === "playlist" ? e.items.filter((e) => !tF(e)) : e.items;
+ let n = e.kind === "playlist" ? e.items.filter((e) => !oF(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 yue(e, t) {
+function vue(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 : {
@@ -34378,20 +34403,20 @@ function yue(e, t) {
part_label: n
};
}
-function rF(e, t) {
+function cF(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 iF(e, t) {
+async function lF(e, t) {
let { queue: n, actions: r } = e, i = null, a = !1;
if (n) {
- let o = WP(n);
+ let o = YP(n);
try {
let r = n.fresh ? void 0 : U.getQueryData(o);
a = !r && n.kind === "mix", i = r || await U.fetchQuery({
queryKey: o,
- queryFn: () => $P(n, e.helpers, t),
+ queryFn: () => iF(n, e.helpers, t),
staleTime: 0
});
} catch (n) {
@@ -34403,21 +34428,21 @@ async function iF(e, t) {
return;
}
}
- let o = i ? nF(i, e.id) : e.id;
+ let o = i ? sF(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 ? U.getQueryData(UP(o)) : void 0;
+ let s, c = a && o === i?.seedId ? U.getQueryData(JP(o)) : void 0;
try {
s = c || await U.fetchQuery({
- queryKey: UP(o),
- queryFn: () => QP(o, t),
+ queryKey: JP(o),
+ queryFn: () => rF(o, t),
staleTime: 0
});
} catch (e) {
if (t.aborted) throw e;
- if (e instanceof ZP) {
+ if (e instanceof nF) {
r.redirect({ kind: "gone" });
return;
}
@@ -34428,7 +34453,7 @@ async function iF(e, t) {
id: Number(s.follow_item_id)
});
}
-function bue(e) {
+function yue(e) {
let t = e.entity_refs || {}, n = /* @__PURE__ */ new Set(), r = (e) => {
let t = Vn(e.name);
return !e.name || n.has(t) ? !1 : (n.add(t), !0);
@@ -34450,35 +34475,35 @@ function bue(e) {
unowned: !i.length && !c.length && !String(e.creator || "").trim()
};
}
-function xue(e, t) {
+function bue(e, t) {
let n = /* @__PURE__ */ new Map();
return (e.tags || []).filter((e) => !t.isDurationTag(e.k)).forEach((e) => {
let r = Vn(t.tagLabel(e.k)), i = n.get(r);
(!i || Vn(e.k) === r && Vn(i.k) !== r) && n.set(r, e);
}), [...n.values()].slice(0, 40);
}
-var aF = (e, t) => (e.tags || []).some((e) => Vn(e.k) === Vn(t)), oF = (e, t) => ({
+var uF = (e, t) => (e.tags || []).some((e) => Vn(e.k) === Vn(t)), dF = (e, t) => ({
...e,
tags: (e.tags || []).filter((e) => Vn(e.k) !== Vn(t))
-}), sF = (e, t) => aF(e, t.k) ? e : {
+}), fF = (e, t) => uF(e, t.k) ? e : {
...e,
tags: [...e.tags || [], t]
-}, cF = "peach.recentTags";
-function lF() {
+}, pF = "peach.recentTags";
+function mF() {
try {
- let e = JSON.parse(localStorage.getItem(cF) || "[]");
+ let e = JSON.parse(localStorage.getItem(pF) || "[]");
return Array.isArray(e) ? e.map(String) : [];
} catch {
return [];
}
}
-function uF(e) {
+function hF(e) {
try {
- let t = lF().filter((t) => Vn(t) !== Vn(e));
- localStorage.setItem(cF, JSON.stringify([e, ...t].slice(0, 12)));
+ let t = mF().filter((t) => Vn(t) !== Vn(e));
+ localStorage.setItem(pF, JSON.stringify([e, ...t].slice(0, 12)));
} catch {}
}
-function Sue(e, t, n) {
+function xue(e, t, n) {
let r = Vn(e), i = new Map(t.map((e) => [Vn(e.k), e])), a = t.filter((e) => !r || Vn(e.k).includes(r)).slice(0, 120), o = r ? [] : n.map((e) => i.get(Vn(e)) || {
k: e,
n: 0
@@ -34489,72 +34514,72 @@ function Sue(e, t, n) {
create: r && !s ? e.trim() : ""
};
}
-var Cue = {
+var Sue = {
中字: "subtitle",
无码: "uncensored",
无码破解: "cracked",
有码: "censored"
-}, wue = {
+}, Cue = {
mix: "Mix",
parts: "分卷",
editions: "版本",
playlist: "播放列表"
};
-function Tue(e) {
+function wue(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: wue[e.kind],
+ title: Cue[e.kind],
summary: e.kind === "editions" ? n : `${e.title} · ${n}`
};
}
-var dF = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, Eue = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${B(dF(e.part_label))}</small>` : "";
-function Due(e, t, n, r) {
+var gF = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, Tue = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${B(gF(e.part_label))}</small>` : "";
+function Eue(e, t, n, r) {
let i = e.filter((e) => e !== t), a = i.indexOf(n);
return i.splice(a + +!!r, 0, t), i;
}
-var Oue = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
-function kue(e, t) {
+var Due = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
+function Oue(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 Aue(e) {
+function kue(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 fF(e, t) {
+function _F(e, t) {
return e === "dislike" ? t.feedback === "dislike" ? "已标记不合口味" : "已取消不合口味" : e === "seen" ? t.feedback === "seen" ? "已标记看过" : "已取消看过" : e === "dispose" ? t.disposal === "trash" ? "已移入回收站" : "已移出回收站" : "已记录一次高潮";
}
// src/react/immerse/immerse.ts
-var jue = (e, t, n) => [
+var Aue = (e, t, n) => [
"immerse-list",
e,
t,
n
];
-function Mue(e) {
+function jue(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 Nue = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.root_id || e.location || ""));
-function Pue(e, t = Math.random) {
+var Mue = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.root_id || e.location || ""));
+function Nue(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 Fue(e, t) {
- return Pue(((await V(`/api/items?${e}`)).items || []).filter((e) => Nue(e, t)));
+async function Pue(e, t) {
+ return Nue(((await V(`/api/items?${e}`)).items || []).filter((e) => Mue(e, t)));
}
-var pF = (e) => U.ensureQueryData({
- queryKey: UP(e),
- queryFn: ({ signal: t }) => QP(e, t)
+var vF = (e) => U.ensureQueryData({
+ queryKey: JP(e),
+ queryFn: ({ signal: t }) => rF(e, t)
});
-function Iue(e, t) {
+function Fue(e, t) {
let n = new Set(e.map((e) => e.id));
return e.concat(t.filter((e) => !n.has(e.id)));
}
-function Lue(e) {
+function Iue(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,
@@ -34563,306 +34588,306 @@ function Lue(e) {
ref: r && e.entity_refs?.[r]?.[0] || null
};
}
-function Rue(e, t, n) {
+function Lue(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 zue(e, t) {
+function Rue(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 Bue = 15e3, mF = {
+var zue = 15e3, yF = {
open: !1,
idle: !1,
wide: !1,
loading: null,
shown: null
-}, hF = null, gF = null, _F = mF, vF = /* @__PURE__ */ new Set(), yF = 0, bF = 0, xF = 0, SF = "", CF = [], wF = 0, TF = !1, EF = !1, DF = null, OF = /* @__PURE__ */ new Set(), kF = "", AF = null, jF = 0, MF = null, NF = !1;
-function PF() {
- if (!hF) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
- return hF;
+}, bF = null, xF = null, SF = yF, CF = /* @__PURE__ */ new Set(), wF = 0, TF = 0, EF = 0, DF = "", OF = [], kF = 0, AF = !1, jF = !1, MF = null, NF = /* @__PURE__ */ new Set(), PF = "", FF = null, IF = 0, LF = null, RF = !1;
+function zF() {
+ if (!bF) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
+ return bF;
}
-function Vue(e) {
- return vF.add(e), () => {
- vF.delete(e);
+function Bue(e) {
+ return CF.add(e), () => {
+ CF.delete(e);
};
}
-function Hue() {
- for (let e of [...vF]) e();
+function Vue() {
+ for (let e of [...CF]) e();
}
-function FF() {
- (0, It.flushSync)(Hue);
+function BF() {
+ (0, It.flushSync)(Vue);
}
-function IF() {
- let e = AF ? PN(AF.id) : 0;
- return e ? `${kF} · ${IN(e)}` : kF;
+function VF() {
+ let e = FF ? zN(FF.id) : 0;
+ return e ? `${PF} · ${VN(e)}` : PF;
}
-function LF(e, t = null) {
- clearInterval(jF), jF = 0, e === null ? (_F = {
- ..._F,
+function HF(e, t = null) {
+ clearInterval(IF), IF = 0, e === null ? (SF = {
+ ...SF,
loading: null
- }, FF()) : (kF = e, AF = t, _F = {
- ..._F,
- loading: IF()
- }, FF(), jF = window.setInterval(() => {
- AF = CF[wF] ?? null, _F = {
- ..._F,
- loading: IF()
- }, FF();
+ }, BF()) : (PF = e, FF = t, SF = {
+ ...SF,
+ loading: VF()
+ }, BF(), IF = window.setInterval(() => {
+ FF = OF[kF] ?? null, SF = {
+ ...SF,
+ loading: VF()
+ }, BF();
}, 500));
}
-function Uue(e) {
+function Hue(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), gF.track.append(t);
- let r = pP(), i = () => {}, a = {
+ n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), xF.track.append(t);
+ let r = vP(), i = () => {}, a = {
el: t,
video: n,
session: r,
- release: () => gP(r),
+ release: () => xP(r),
disposed: !1,
gone: new Promise((e) => {
i = e;
}),
leave: i
};
- return OF.add(a), a;
+ return NF.add(a), a;
}
-function Wue(e, t) {
+function Uue(e, t) {
return new Promise((n) => {
- e.release = jP(e.video, {
+ e.release = IP(e.video, {
kind: "immerse",
item: t,
session: e.session,
onLoaded: n,
onEnded: () => {
- _F.open && WF(1);
+ SF.open && YF(1);
}
}), e.gone.then(n);
});
}
-function RF(e) {
- e && !e.disposed && (e.disposed = !0, OF.delete(e), e.leave(), e.release(), e.el.remove(), DF === e && (DF = null));
+function UF(e) {
+ e && !e.disposed && (e.disposed = !0, NF.delete(e), e.leave(), e.release(), e.el.remove(), MF === e && (MF = null));
}
-var zF = [
+var WF = [
"loadeddata",
"canplay",
"error"
];
-function Gue(e) {
+function Wue(e) {
let { video: t } = e;
return t.readyState >= 3 ? Promise.resolve() : new Promise((n) => {
let r = !1, i = () => {
- r || (r = !0, clearTimeout(a), zF.forEach((e) => t.removeEventListener(e, i)), n());
+ r || (r = !0, clearTimeout(a), WF.forEach((e) => t.removeEventListener(e, i)), n());
};
- zF.forEach((e) => t.addEventListener(e, i, { once: !0 }));
- let a = setTimeout(i, Bue);
+ WF.forEach((e) => t.addEventListener(e, i, { once: !0 }));
+ let a = setTimeout(i, zue);
e.gone.then(i);
});
}
-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 = Rue(e.videoWidth, e.videoHeight, n);
+function GF(e) {
+ let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = Lue(e.videoWidth, e.videoHeight, n);
r === "contain" ? e.dataset.fit = "contain" : r && delete e.dataset.fit;
}
-var VF = () => gF?.track.querySelectorAll("video").forEach(BF);
-function Kue(e) {
- delete e.dataset.fit, e.readyState >= 1 ? BF(e) : e.addEventListener("loadedmetadata", () => BF(e), { once: !0 });
+var KF = () => xF?.track.querySelectorAll("video").forEach(GF);
+function Gue(e) {
+ delete e.dataset.fit, e.readyState >= 1 ? GF(e) : e.addEventListener("loadedmetadata", () => GF(e), { once: !0 });
}
-function que(e) {
- _F = {
- ..._F,
+function Kue(e) {
+ SF = {
+ ...SF,
wide: e
- }, FF(), VF();
+ }, BF(), KF();
}
-var HF = () => {
- let e = SF;
+var qF = () => {
+ let e = DF;
return U.fetchQuery({
- queryKey: jue(e, bF, xF),
- queryFn: () => Fue(e, PF().sourceOffline),
+ queryKey: Aue(e, TF, EF),
+ queryFn: () => Pue(e, zF().sourceOffline),
staleTime: Infinity
});
};
-function Jue(e, t) {
+function que(e, t) {
let n = () => Gn(e.duration) || Gn(t.duration);
e.addEventListener("timeupdate", () => {
let t = n();
- t && gF && (gF.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
- }), MF = {
+ t && xF && (xF.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
+ }), LF = {
video: e,
duration: n
};
}
-async function UF(e = 0) {
- let t = CF[wF];
- if (!t || TF) return;
- let n = yF;
- PF().route(t.id), TF = !0, LF(e ? "切换中" : "加载中", t);
+async function JF(e = 0) {
+ let t = OF[kF];
+ if (!t || AF) return;
+ let n = wF;
+ zF().route(t.id), AF = !0, HF(e ? "切换中" : "加载中", t);
let r = null;
try {
- if (await pF(t.id).catch((e) => {
- if (!(e instanceof ZP)) throw e;
- }), n !== yF) return;
- let i = DF, a = !!(e && i);
- a || RF(i);
- let o = Uue(a ? e > 0 ? 100 : -100 : 0);
- if (r = o, Kue(o.video), await Wue(o, t), await Gue(o), o.disposed || (que(zue(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
+ if (await vF(t.id).catch((e) => {
+ if (!(e instanceof nF)) throw e;
+ }), n !== wF) return;
+ let i = MF, a = !!(e && i);
+ a || UF(i);
+ let o = Hue(a ? e > 0 ? 100 : -100 : 0);
+ if (r = o, Gue(o.video), await Uue(o, t), await Wue(o), o.disposed || (Kue(Rue(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)), RF(i), o.el.style.transform = ""), o.disposed)) return;
- DF = o, r = null, o.video.play()?.catch(() => {}), _F = {
- ..._F,
+ })), await new Promise((e) => setTimeout(e, 210)), UF(i), o.el.style.transform = ""), o.disposed)) return;
+ MF = o, r = null, o.video.play()?.catch(() => {}), SF = {
+ ...SF,
idle: !1,
shown: {
item: t,
- index: wF,
- length: CF.length
+ index: kF,
+ length: OF.length
}
- }, Jue(o.video, t), H("/api/play", { id: t.id }).catch(() => {}), LF(null);
+ }, que(o.video, t), H("/api/play", { id: t.id }).catch(() => {}), HF(null);
} catch {
- RF(r), n === yF && LF(null);
+ UF(r), n === wF && HF(null);
} finally {
- n === yF && (TF = !1);
+ n === wF && (AF = !1);
}
}
-async function WF(e) {
- if (TF || !_F.open) return;
- let t = yF;
- if (wF += e, LF("切换中", CF[wF] ?? null), wF >= CF.length - 3 && !EF) {
- EF = !0;
+async function YF(e) {
+ if (AF || !SF.open) return;
+ let t = wF;
+ if (kF += e, HF("切换中", OF[kF] ?? null), kF >= OF.length - 3 && !jF) {
+ jF = !0;
try {
- xF += 1;
- let e = await HF();
- t === yF && (CF = Iue(CF, e));
+ EF += 1;
+ let e = await qF();
+ t === wF && (OF = Fue(OF, e));
} catch {} finally {
- EF = !1;
+ jF = !1;
}
}
- t === yF && (wF >= CF.length && (wF = 0), wF < 0 && (wF = CF.length - 1), await UF(e));
+ t === wF && (kF >= OF.length && (kF = 0), kF < 0 && (kF = OF.length - 1), await JF(e));
}
-async function Yue(e) {
- let t = ++yF;
- GF(), bF += 1, xF = 0, SF = Mue(PF().filters()), U.removeQueries({ queryKey: ["immerse-list"] }), _F = {
- ..._F,
+async function Jue(e) {
+ let t = ++wF;
+ XF(), TF += 1, EF = 0, DF = jue(zF().filters()), U.removeQueries({ queryKey: ["immerse-list"] }), SF = {
+ ...SF,
open: !0,
idle: !0,
shown: null
- }, document.body.setAttribute("data-immerse-open", ""), LF("加载内容");
+ }, document.body.setAttribute("data-immerse-open", ""), HF("加载内容");
try {
- let n = await HF();
+ let n = await qF();
if (e && !n.some((t) => t.id === e)) {
- let t = await pF(e).catch((e) => {
- if (e instanceof ZP) return null;
+ let t = await vF(e).catch((e) => {
+ if (e instanceof nF) return null;
throw e;
});
t?.id && (n = [t, ...n.filter((t) => t.id !== e)]);
}
- if (t !== yF) return;
- if (CF = n, !CF.length) {
- KF(), PF().warn("当前筛选下没有可直接播放的内容");
+ if (t !== wF) return;
+ if (OF = n, !OF.length) {
+ ZF(), zF().warn("当前筛选下没有可直接播放的内容");
return;
}
- wF = Math.max(0, CF.findIndex((t) => t.id === e)), await UF();
+ kF = Math.max(0, OF.findIndex((t) => t.id === e)), await JF();
} catch {
- if (t !== yF) return;
- LF(null), KF();
+ if (t !== wF) return;
+ HF(null), ZF();
}
}
-function GF() {
- clearInterval(jF), jF = 0, QF(), XF = null, MF = null, NF = !1, [...OF].forEach(RF), TF = !1;
+function XF() {
+ clearInterval(IF), IF = 0, rI(), tI = null, LF = null, RF = !1, [...NF].forEach(UF), AF = !1;
}
-function KF() {
- _F.open && (yF++, GF(), _F = mF, document.body.removeAttribute("data-immerse-open"), FF(), PF().closed());
+function ZF() {
+ SF.open && (wF++, XF(), SF = yF, document.body.removeAttribute("data-immerse-open"), BF(), zF().closed());
}
-var qF = 0, JF = null, YF = 0, XF = null, ZF = 0;
-function QF() {
- clearTimeout(qF), qF = 0, JF = null;
+var QF = 0, $F = null, eI = 0, tI = null, nI = 0;
+function rI() {
+ clearTimeout(QF), QF = 0, $F = null;
}
-function Xue(e) {
- let t = DF?.video;
+function Yue(e) {
+ let t = MF?.video;
if (!t) return;
let n = e < window.innerWidth / 2 ? -1 : 1, r = Date.now();
- JF && JF.side === n && r - JF.at <= 280 ? (QF(), NP(t, PF().seekSeconds() * n)) : (qF && (clearTimeout(qF), qF = 0, MP(t)), JF = {
+ $F && $F.side === n && r - $F.at <= 280 ? (rI(), RP(t, zF().seekSeconds() * n)) : (QF && (clearTimeout(QF), QF = 0, LP(t)), $F = {
side: n,
at: r
- }, qF = window.setTimeout(() => {
- qF = 0, JF = null, _F.open && MP(DF?.video);
+ }, QF = window.setTimeout(() => {
+ QF = 0, $F = null, SF.open && LP(MF?.video);
}, 280));
}
-function Zue() {
- Date.now() < YF || MP(DF?.video);
+function Xue() {
+ Date.now() < eI || LP(MF?.video);
}
-var $F = (e) => gF?.bar.toggleAttribute("data-scrubbing", e);
-function eI(e) {
- gF && (gF.progress.style.width = `${(e * 100).toFixed(2)}%`);
+var iI = (e) => xF?.bar.toggleAttribute("data-scrubbing", e);
+function aI(e) {
+ xF && (xF.progress.style.width = `${(e * 100).toFixed(2)}%`);
}
-function tI(e) {
+function oI(e) {
let t = e.target;
if (e.touches.length !== 1 || !t?.closest("[data-immerse-track]")) {
- XF = null;
+ tI = null;
return;
}
- let n = DF?.video;
- XF = {
+ let n = MF?.video;
+ tI = {
x: e.touches[0].clientX,
y: e.touches[0].clientY,
axis: "",
from: n && n.currentTime || 0
};
}
-function nI(e) {
- if (!XF || e.touches.length !== 1) return;
- let t = e.touches[0].clientX - XF.x, n = e.touches[0].clientY - XF.y;
- if (!XF.axis) {
+function sI(e) {
+ if (!tI || e.touches.length !== 1) return;
+ let t = e.touches[0].clientX - tI.x, n = e.touches[0].clientY - tI.y;
+ if (!tI.axis) {
if (Math.abs(t) < 12 && Math.abs(n) < 12) return;
- XF.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", XF.axis === "x" && $F(!0);
+ tI.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", tI.axis === "x" && iI(!0);
}
- if (XF.axis !== "x") return;
- let r = DF?.video, i = r && r.duration || 0;
- i && (e.preventDefault(), XF.to = Math.min(i, Math.max(0, XF.from + t / window.innerWidth * i)), eI(XF.to / i));
+ if (tI.axis !== "x") return;
+ let r = MF?.video, i = r && r.duration || 0;
+ i && (e.preventDefault(), tI.to = Math.min(i, Math.max(0, tI.from + t / window.innerWidth * i)), aI(tI.to / i));
}
-function rI(e) {
- if (!XF) return;
- let t = XF;
- if (XF = null, YF = Date.now() + 700, $F(!1), t.axis === "x") {
- let e = DF?.video;
+function cI(e) {
+ if (!tI) return;
+ let t = tI;
+ if (tI = null, eI = Date.now() + 700, iI(!1), t.axis === "x") {
+ let e = MF?.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 ? (QF(), WF(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), Xue(n.clientX));
+ Math.abs(i) > 60 ? (rI(), YF(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), Yue(n.clientX));
}
-function iI() {
- XF = null, $F(!1);
+function lI() {
+ tI = null, iI(!1);
}
-function aI(e) {
+function uI(e) {
let t = Date.now();
- t - ZF < 260 || (ZF = t, WF(e.deltaY > 0 ? 1 : -1));
+ t - nI < 260 || (nI = t, YF(e.deltaY > 0 ? 1 : -1));
}
-function oI(e) {
- let t = gF.bar.getBoundingClientRect();
+function dI(e) {
+ let t = xF.bar.getBoundingClientRect();
return Math.min(1, Math.max(0, (e.clientX - t.left) / t.width));
}
+function Zue(e) {
+ LF?.duration() && (RF = !0, iI(!0), e.currentTarget.setPointerCapture(e.pointerId), aI(dI(e)), e.preventDefault());
+}
function Que(e) {
- MF?.duration() && (NF = !0, $F(!0), e.currentTarget.setPointerCapture(e.pointerId), eI(oI(e)), e.preventDefault());
+ RF && aI(dI(e));
}
function $ue(e) {
- NF && eI(oI(e));
-}
-function ede(e) {
- if (!NF) return;
- NF = !1, $F(!1);
- let t = MF?.duration();
- MF && t && (MF.video.currentTime = t * oI(e));
+ if (!RF) return;
+ RF = !1, iI(!1);
+ let t = LF?.duration();
+ LF && t && (LF.video.currentTime = t * dI(e));
}
-function tde() {
- NF = !1, $F(!1);
+function ede() {
+ RF = !1, iI(!1);
}
-async function sI(e, t) {
- let n = await H(KP, {
+async function fI(e, t) {
+ let n = await H(ZP, {
id: e,
kind: t
- }), r = U.getQueryData(UP(e));
- if (!r) return RP(e, {
+ }), r = U.getQueryData(JP(e));
+ if (!r) return UP(e, {
feedback: n.feedback ?? void 0,
o_count: n.o_count
}), n;
@@ -34871,7 +34896,7 @@ async function sI(e, t) {
feedback: n.feedback ?? void 0,
o_count: n.o_count
};
- return U.setQueryData(UP(e), i), RP(e, {
+ return U.setQueryData(JP(e), i), UP(e, {
feedback: i.feedback,
disposal: i.disposal,
watch_later: i.watch_later,
@@ -34879,7 +34904,7 @@ async function sI(e, t) {
o_count: i.o_count
}), n;
}
-var nde = [
+var tde = [
{
kind: "dislike",
glyph: "thumbs-down",
@@ -34896,31 +34921,31 @@ var nde = [
label: "记一次高潮"
}
];
-function cI(e) {
+function pI(e) {
return Nt({
- queryKey: UP(e ?? 0),
- queryFn: ({ signal: t }) => QP(e, t),
+ queryKey: JP(e ?? 0),
+ queryFn: ({ signal: t }) => rF(e, t),
enabled: e != null,
staleTime: Infinity
}).data;
}
-function rde({ kind: e, glyph: t, label: n, id: r }) {
- let i = cI(r), a = Pt({
+function nde({ kind: e, glyph: t, label: n, id: r }) {
+ let i = pI(r), a = Pt({
mutationFn: async (t) => {
- let n = U.getQueryData(UP(t))?.feedback || null;
+ let n = U.getQueryData(JP(t))?.feedback || null;
return {
- result: await sI(t, e),
+ result: await fI(t, e),
before: n
};
},
onSuccess: ({ result: t, before: n }, r) => {
- PF().toast(fF(e, t), { undo: async () => {
- e === "o" ? await sI(r, "o-undo") : (t.feedback && await sI(r, t.feedback), n && await sI(r, n));
+ zF().toast(_F(e, t), { undo: async () => {
+ e === "o" ? await fI(r, "o-undo") : (t.feedback && await fI(r, t.feedback), n && await fI(r, n));
} }), e === "dislike" && t.feedback === "dislike" && setTimeout(() => {
- WF(1);
+ YF(1);
}, 260);
},
- onError: (e) => PF().failure("更新反馈", e)
+ onError: (e) => zF().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": "",
@@ -34951,11 +34976,11 @@ function rde({ kind: e, glyph: t, label: n, id: r }) {
})]
});
}
-function ide({ shown: e }) {
- let t = e?.item ?? null, n = cI(t?.id ?? null), r = n ? Lue(n) : null, i = PF(), a = (e) => {
- e.preventDefault(), n && (KF(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
+function rde({ shown: e }) {
+ let t = e?.item ?? null, n = pI(t?.id ?? null), r = n ? Iue(n) : null, i = zF(), a = (e) => {
+ e.preventDefault(), n && (ZF(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
}, o = () => {
- t && (KF(), i.openItem(t.id));
+ t && (ZF(), i.openItem(t.id));
}, s = r ? ho(r.name, r.ref, Ya(r.name), r.kind || "performer") : "";
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-immerse-ui": "",
@@ -34984,18 +35009,18 @@ function ide({ shown: e }) {
})]
});
}
-var ade = { __html: Rs("媒体加载中") };
-function ode({ view: e }) {
+var ide = { __html: Rs("媒体加载中") };
+function ade({ 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 gF = {
+ return xF = {
root: e,
track: n.current,
bar: r.current,
progress: i.current
- }, e.addEventListener("touchstart", tI, { passive: !0 }), e.addEventListener("touchmove", nI, { passive: !1 }), e.addEventListener("touchend", rI, { passive: !1 }), e.addEventListener("touchcancel", iI, { passive: !0 }), e.addEventListener("wheel", aI, { passive: !0 }), () => {
- e.removeEventListener("touchstart", tI), e.removeEventListener("touchmove", nI), e.removeEventListener("touchend", rI), e.removeEventListener("touchcancel", iI), e.removeEventListener("wheel", aI), gF = null;
+ }, e.addEventListener("touchstart", oI, { passive: !0 }), e.addEventListener("touchmove", sI, { passive: !1 }), e.addEventListener("touchend", cI, { passive: !1 }), e.addEventListener("touchcancel", lI, { passive: !0 }), e.addEventListener("wheel", uI, { passive: !0 }), () => {
+ e.removeEventListener("touchstart", oI), e.removeEventListener("touchmove", sI), e.removeEventListener("touchend", cI), e.removeEventListener("touchcancel", lI), e.removeEventListener("wheel", uI), xF = null;
};
}, []);
let a = e.shown?.item.id ?? null, o = (e) => e ? "" : void 0;
@@ -35012,10 +35037,10 @@ function ode({ view: e }) {
children: [/* @__PURE__ */ (0, I.jsx)("div", {
ref: n,
"data-immerse-track": "",
- onClick: Zue
+ onClick: Xue
}), /* @__PURE__ */ (0, I.jsx)("div", {
"data-immerse-actions": "",
- children: nde.map((e) => /* @__PURE__ */ (0, I.jsx)(rde, {
+ children: tde.map((e) => /* @__PURE__ */ (0, I.jsx)(nde, {
...e,
id: a
}, e.kind))
@@ -35028,7 +35053,7 @@ function ode({ view: e }) {
hidden: e.loading === null,
children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-immerse-spinner": "",
- dangerouslySetInnerHTML: ade
+ dangerouslySetInnerHTML: ide
}), /* @__PURE__ */ (0, I.jsx)("span", { children: e.loading ?? "" })]
}),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -35036,7 +35061,7 @@ function ode({ view: e }) {
"data-immerse-close": "",
title: "关闭",
"aria-label": "关闭",
- onClick: KF,
+ onClick: ZF,
children: /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-x" })
@@ -35045,88 +35070,88 @@ function ode({ view: e }) {
/* @__PURE__ */ (0, I.jsx)("div", {
ref: r,
"data-immerse-bar": "",
- onPointerDown: Que,
- onPointerMove: $ue,
- onPointerUp: ede,
- onPointerCancel: tde,
+ onPointerDown: Zue,
+ onPointerMove: Que,
+ onPointerUp: $ue,
+ onPointerCancel: ede,
children: /* @__PURE__ */ (0, I.jsx)("i", { ref: i })
}),
- /* @__PURE__ */ (0, I.jsx)(ide, { shown: e.shown })
+ /* @__PURE__ */ (0, I.jsx)(rde, { shown: e.shown })
]
});
}
-var sde = {
- open: Yue,
- close: KF,
- isOpen: () => _F.open,
- activeVideo: () => _F.open ? DF?.video ?? null : null
+var ode = {
+ open: Jue,
+ close: ZF,
+ isOpen: () => SF.open,
+ activeVideo: () => SF.open ? MF?.video ?? null : null
};
-function cde(e) {
- if (!_F.open) return;
+function sde(e) {
+ if (!SF.open) return;
let t = e.target;
- 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));
+ t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && YF(1), e.key === "ArrowUp" && YF(-1));
}
-function lde(e) {
- let t = !hF;
- return hF = e, t && (document.addEventListener("keydown", cde), addEventListener("resize", () => {
- _F.open && VF();
+function cde(e) {
+ let t = !bF;
+ return bF = e, t && (document.addEventListener("keydown", sde), addEventListener("resize", () => {
+ SF.open && KF();
}), addEventListener("pagehide", () => {
- OF.forEach((e) => gP(e.session));
- })), sde;
+ NF.forEach((e) => xP(e.session));
+ })), ode;
}
-function ude() {
- let e = (0, F.useSyncExternalStore)(Vue, () => _F);
- return hF ? /* @__PURE__ */ (0, I.jsx)(ode, { view: e }) : null;
+function lde() {
+ let e = (0, F.useSyncExternalStore)(Bue, () => SF);
+ return bF ? /* @__PURE__ */ (0, I.jsx)(ade, { view: e }) : null;
}
// src/manage-header.ts
-var lI = {
+var mI = {
"/junk-files": "垃圾文件",
"/duplicates": "重复文件",
"/review": "人工复核",
"/trash": "回收站",
"/quality-goals": "高清版",
"/sources": "来源和凭证"
-}, dde = /* @__PURE__ */ new Set(["/data-cleanup", "/sources"]);
-function fde(e) {
- let t = lI[e.path] ? "cleanup" : e.section;
+}, ude = /* @__PURE__ */ new Set(["/data-cleanup", "/sources"]);
+function dde(e) {
+ let t = mI[e.path] ? "cleanup" : e.section;
return e.menu.some(([e]) => e === t) ? t : "";
}
-var pde = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t.toLocaleString()}`;
-function uI(e) {
+var fde = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t.toLocaleString()}`;
+function hI(e) {
let t = e.sections.find(([t]) => t === e.section);
if (!t) return null;
- let n = lI[e.path] ?? "";
+ let n = mI[e.path] ?? "";
return {
title: e.section === "cleanup" && n || t[1],
- pressed: fde(e),
+ pressed: dde(e),
crumb: n,
- compact: dde.has(e.path) || e.section === "configuration",
+ compact: ude.has(e.path) || e.section === "configuration",
lede: e.section === "trash" ? e.trash ? {
kind: "count",
- text: pde(e.trash),
+ text: fde(e.trash),
total: e.trash.total
} : { kind: "skeleton" } : { kind: "none" }
};
}
-var dI = (e) => e.replace(/[&<>"']/g, (e) => ({
+var gI = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
-})[e]), fI = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${dI(e)}"/></svg>`, pI = "<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 mde(e) {
- let t = uI(e);
+})[e]), _I = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${gI(e)}"/></svg>`, vI = "<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 pde(e) {
+ let t = hI(e);
if (!t) return "";
let n = e.menu.map(([e, n, r]) => {
let i = e === t.pressed;
- return `<button type="button" data-manage="${dI(e)}" data-pill-variant="gray" aria-pressed="${i}"${i ? " aria-current=\"page\" data-pill-selected=\"\"" : ""}>${fI(r)}<span>${dI(n)}</span></button>`;
- }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${fI("chevron-right")}</li><li aria-current="true"><span>${dI(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? pI : `<span data-lede-text="">${dI(t.lede.text)}</span>${t.lede.total ? hde : ""}`}</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=\"\"" : ""}>${dI(t.title)}</h2>` + i;
+ return `<button type="button" data-manage="${gI(e)}" data-pill-variant="gray" aria-pressed="${i}"${i ? " aria-current=\"page\" data-pill-selected=\"\"" : ""}>${_I(r)}<span>${gI(n)}</span></button>`;
+ }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${_I("chevron-right")}</li><li aria-current="true"><span>${gI(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? vI : `<span data-lede-text="">${gI(t.lede.text)}</span>${t.lede.total ? mde : ""}`}</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=\"\"" : ""}>${gI(t.title)}</h2>` + i;
}
-var hde = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
+var mde = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
// src/react/settings-panel/icon.tsx
-function mI({ name: e }) {
+function yI({ name: e }) {
let { wide: t, viewBox: n } = xn(e);
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: n,
@@ -35135,7 +35160,7 @@ function mI({ name: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function gde({ name: e }) {
+function hde({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -35143,88 +35168,88 @@ function gde({ name: e }) {
});
}
// node_modules/tailwind-merge/dist/bundle-mjs.mjs
-var _de = (e, t) => {
+var bI = (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;
-}, vde = (e, t) => ({
+}, xI = (e, t) => ({
classGroupId: e,
validator: t
-}), hI = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), SI = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), gI = "-", _I = [], vI = "arbitrary..", yI = (e) => {
- let t = SI(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
+}), CI = "-", wI = [], TI = "arbitrary..", EI = (e) => {
+ let t = kI(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return xI(e);
- let n = e.split(gI);
- return bI(n, +(n[0] === "" && n.length > 1), t);
+ if (e.startsWith("[") && e.endsWith("]")) return OI(e);
+ let n = e.split(CI);
+ return DI(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? _de(i, t) : t : i || _I;
+ return t ? i ? bI(i, t) : t : i || wI;
}
- return n[e] || _I;
+ return n[e] || wI;
}
};
-}, bI = (e, t, n) => {
+}, DI = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = bI(e, t + 1, i);
+ let n = DI(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join(gI) : e.slice(t).join(gI), s = a.length;
+ let o = t === 0 ? e.join(CI) : e.slice(t).join(CI), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
-}, xI = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
+}, OI = (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 ? vI + r : void 0;
-})(), SI = (e) => {
+ return r ? TI + r : void 0;
+})(), kI = (e) => {
let { theme: t, classGroups: n } = e;
- return CI(n, t);
-}, CI = (e, t) => {
- let n = hI();
+ return AI(n, t);
+}, AI = (e, t) => {
+ let n = SI();
for (let r in e) {
let i = e[r];
- wI(i, n, r, t);
+ jI(i, n, r, t);
}
return n;
-}, wI = (e, t, n, r) => {
+}, jI = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- TI(i, t, n, r);
+ MI(i, t, n, r);
}
-}, TI = (e, t, n, r) => {
- typeof e == "string" ? EI(e, t, n) : typeof e == "function" ? DI(e, t, n, r) : OI(e, t, n, r);
-}, EI = (e, t, n) => {
- let r = e === "" ? t : kI(t, e);
+}, MI = (e, t, n, r) => {
+ typeof e == "string" ? NI(e, t, n) : typeof e == "function" ? PI(e, t, n, r) : FI(e, t, n, r);
+}, NI = (e, t, n) => {
+ let r = e === "" ? t : II(t, e);
r.classGroupId = n;
-}, DI = (e, t, n, r) => {
- AI(e) ? wI(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(vde(n, e)));
-}, OI = (e, t, n, r) => {
+}, PI = (e, t, n, r) => {
+ LI(e) ? jI(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(xI(n, e)));
+}, FI = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- wI(o, kI(t, a), n, r);
+ jI(o, II(t, a), n, r);
}
-}, kI = (e, t) => {
- let n = e, r = t.split(gI), i = r.length;
+}, II = (e, t) => {
+ let n = e, r = t.split(CI), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = hI(), n.nextPart.set(t, i)), n = i;
+ i || (i = SI(), n.nextPart.set(t, i)), n = i;
}
return n;
-}, AI = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, jI = (e) => {
+}, LI = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, RI = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@ -35242,19 +35267,19 @@ var _de = (e, t) => {
e in n ? n[e] = t : i(e, t);
}
};
-}, MI = "!", NI = ":", PI = [], FI = (e, t, n, r, i) => ({
+}, zI = "!", BI = ":", VI = [], HI = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
-}), II = (e) => {
+}), UI = (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 === NI) {
+ if (o === BI) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -35266,13 +35291,13 @@ var _de = (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(MI) ? (c = s.slice(0, -1), l = !0) : s.startsWith(MI) && (c = s.slice(1), l = !0);
+ s.endsWith(zI) ? (c = s.slice(0, -1), l = !0) : s.startsWith(zI) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return FI(t, l, c, u);
+ return HI(t, l, c, u);
};
if (t) {
- let e = t + NI, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : FI(PI, !1, t, void 0, !0);
+ let e = t + BI, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : HI(VI, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -35282,7 +35307,7 @@ var _de = (e, t) => {
});
}
return r;
-}, LI = (e) => {
+}, WI = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@ -35294,18 +35319,18 @@ var _de = (e, t) => {
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
-}, RI = (e) => ({
- cache: jI(e.cacheSize),
- parseClassName: II(e),
- sortModifiers: LI(e),
- postfixLookupClassGroupIds: zI(e),
- ...yI(e)
-}), zI = (e) => {
+}, GI = (e) => ({
+ cache: RI(e.cacheSize),
+ parseClassName: UI(e),
+ sortModifiers: WI(e),
+ postfixLookupClassGroupIds: KI(e),
+ ...EI(e)
+}), KI = (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;
-}, BI = /\s+/, VI = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(BI), l = "";
+}, qI = /\s+/, JI = (e, t) => {
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(qI), 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) {
@@ -35325,7 +35350,7 @@ var _de = (e, t) => {
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + MI : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + zI : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -35336,34 +35361,34 @@ var _de = (e, t) => {
l = t + (l.length > 0 ? " " + l : l);
}
return l;
-}, HI = (...e) => {
+}, YI = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = UI(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = XI(n)) && (i && (i += " "), i += r);
return i;
-}, UI = (e) => {
+}, XI = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = UI(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = XI(e[r])) && (n && (n += " "), n += t);
return n;
-}, WI = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = RI(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
+}, ZI = (e, ...t) => {
+ let n, r, i, a, o = (o) => (n = GI(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 = VI(e, n);
+ let a = JI(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a(HI(...e));
-}, GI = [], KI = (e) => {
- let t = (t) => t[e] || GI;
+ return a = o, (...e) => a(YI(...e));
+}, QI = [], $I = (e) => {
+ let t = (t) => t[e] || QI;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, qI = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, JI = /^\((?:(\w[\w-]*):)?(.+)\)$/i, YI = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, XI = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ZI = /\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$/, QI = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, $I = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, eL = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, tL = (e) => YI.test(e), nL = (e) => !!e && !Number.isNaN(Number(e)), rL = (e) => !!e && Number.isInteger(Number(e)), iL = (e) => e.endsWith("%") && nL(e.slice(0, -1)), aL = (e) => XI.test(e), oL = () => !0, yde = (e) => ZI.test(e) && !QI.test(e), sL = () => !1, bde = (e) => $I.test(e), xde = (e) => eL.test(e), Sde = (e) => !cL(e) && !pL(e), Cde = (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)), wde = (e) => _L(e, xL, sL), cL = (e) => qI.test(e), lL = (e) => _L(e, SL, yde), uL = (e) => _L(e, Mde, nL), Tde = (e) => _L(e, wL, oL), Ede = (e) => _L(e, CL, sL), dL = (e) => _L(e, yL, sL), Dde = (e) => _L(e, bL, xde), fL = (e) => _L(e, TL, bde), pL = (e) => JI.test(e), mL = (e) => vL(e, SL), Ode = (e) => vL(e, CL), hL = (e) => vL(e, yL), kde = (e) => vL(e, xL), Ade = (e) => vL(e, bL), gL = (e) => vL(e, TL, !0), jde = (e) => vL(e, wL, !0), _L = (e, t, n) => {
- let r = qI.exec(e);
+}, eL = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, tL = /^\((?:(\w[\w-]*):)?(.+)\)$/i, nL = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, gde = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, _de = /\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$/, vde = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, yde = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, bde = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, rL = (e) => nL.test(e), iL = (e) => !!e && !Number.isNaN(Number(e)), aL = (e) => !!e && Number.isInteger(Number(e)), oL = (e) => e.endsWith("%") && iL(e.slice(0, -1)), sL = (e) => gde.test(e), cL = () => !0, xde = (e) => _de.test(e) && !vde.test(e), lL = () => !1, Sde = (e) => yde.test(e), Cde = (e) => bde.test(e), wde = (e) => !uL(e) && !hL(e), Tde = (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)), Ede = (e) => yL(e, CL, lL), uL = (e) => eL.test(e), dL = (e) => yL(e, wL, xde), fL = (e) => yL(e, Pde, iL), Dde = (e) => yL(e, EL, cL), Ode = (e) => yL(e, TL, lL), pL = (e) => yL(e, xL, lL), kde = (e) => yL(e, SL, Cde), mL = (e) => yL(e, DL, Sde), hL = (e) => tL.test(e), gL = (e) => bL(e, wL), Ade = (e) => bL(e, TL), _L = (e) => bL(e, xL), jde = (e) => bL(e, CL), Mde = (e) => bL(e, SL), vL = (e) => bL(e, DL, !0), Nde = (e) => bL(e, EL, !0), yL = (e, t, n) => {
+ let r = eL.exec(e);
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
-}, vL = (e, t, n = !1) => {
- let r = JI.exec(e);
+}, bL = (e, t, n = !1) => {
+ let r = tL.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
-}, yL = (e) => e === "position" || e === "percentage", bL = (e) => e === "image" || e === "url", xL = (e) => e === "length" || e === "size" || e === "bg-size", SL = (e) => e === "length", Mde = (e) => e === "number", CL = (e) => e === "family-name", wL = (e) => e === "number" || e === "weight", TL = (e) => e === "shadow", EL = () => {
- let e = KI("color"), t = KI("font"), n = KI("text"), r = KI("font-weight"), i = KI("tracking"), a = KI("leading"), o = KI("breakpoint"), s = KI("container"), c = KI("spacing"), l = KI("radius"), u = KI("shadow"), d = KI("inset-shadow"), f = KI("text-shadow"), p = KI("drop-shadow"), m = KI("blur"), h = KI("perspective"), g = KI("aspect"), _ = KI("ease"), v = KI("animate"), y = () => [
+}, xL = (e) => e === "position" || e === "percentage", SL = (e) => e === "image" || e === "url", CL = (e) => e === "length" || e === "size" || e === "bg-size", wL = (e) => e === "length", Pde = (e) => e === "number", TL = (e) => e === "family-name", EL = (e) => e === "number" || e === "weight", DL = (e) => e === "shadow", OL = () => {
+ let e = $I("color"), t = $I("font"), n = $I("text"), r = $I("font-weight"), i = $I("tracking"), a = $I("leading"), o = $I("breakpoint"), s = $I("container"), c = $I("spacing"), l = $I("radius"), u = $I("shadow"), d = $I("inset-shadow"), f = $I("text-shadow"), p = $I("drop-shadow"), m = $I("blur"), h = $I("perspective"), g = $I("aspect"), _ = $I("ease"), v = $I("animate"), y = () => [
"auto",
"avoid",
"all",
@@ -35388,8 +35413,8 @@ var _de = (e, t) => {
"left-bottom"
], x = () => [
...b(),
- pL,
- cL
+ hL,
+ uL
], S = () => [
"auto",
"hidden",
@@ -35401,43 +35426,43 @@ var _de = (e, t) => {
"contain",
"none"
], w = () => [
- pL,
- cL,
+ hL,
+ uL,
c
], T = () => [
- tL,
+ rL,
"full",
"auto",
...w()
], E = () => [
- rL,
+ aL,
"none",
"subgrid",
- pL,
- cL
+ hL,
+ uL
], D = () => [
"auto",
{ span: [
"full",
- rL,
- pL,
- cL
+ aL,
+ hL,
+ uL
] },
- rL,
- pL,
- cL
+ aL,
+ hL,
+ uL
], O = () => [
- rL,
+ aL,
"auto",
- pL,
- cL
+ hL,
+ uL
], k = () => [
"auto",
"min",
"max",
"fr",
- pL,
- cL
+ hL,
+ uL
], A = () => [
"start",
"end",
@@ -35457,7 +35482,7 @@ var _de = (e, t) => {
"center-safe",
"end-safe"
], M = () => ["auto", ...w()], ee = () => [
- tL,
+ rL,
"auto",
"full",
"dvw",
@@ -35472,7 +35497,7 @@ var _de = (e, t) => {
...w()
], N = () => [
s,
- tL,
+ rL,
"screen",
"full",
"dvw",
@@ -35483,7 +35508,7 @@ var _de = (e, t) => {
"fit",
...w()
], te = () => [
- tL,
+ rL,
"screen",
"full",
"lh",
@@ -35496,13 +35521,13 @@ var _de = (e, t) => {
...w()
], P = () => [
e,
- pL,
- cL
+ hL,
+ uL
], ne = () => [
...b(),
- hL,
- dL,
- { position: [pL, cL] }
+ _L,
+ pL,
+ { position: [hL, uL] }
], re = () => ["no-repeat", { repeat: [
"",
"x",
@@ -35513,25 +35538,25 @@ var _de = (e, t) => {
"auto",
"cover",
"contain",
- kde,
- wde,
- { size: [pL, cL] }
+ jde,
+ Ede,
+ { size: [hL, uL] }
], I = () => [
- iL,
- mL,
- lL
+ oL,
+ gL,
+ dL
], ie = () => [
"",
"none",
"full",
l,
- pL,
- cL
+ hL,
+ uL
], ae = () => [
"",
- nL,
- mL,
- lL
+ iL,
+ gL,
+ dL
], oe = () => [
"solid",
"dashed",
@@ -35555,32 +35580,32 @@ var _de = (e, t) => {
"color",
"luminosity"
], ce = () => [
- nL,
iL,
- hL,
- dL
+ oL,
+ _L,
+ pL
], le = () => [
"",
"none",
m,
- pL,
- cL
+ hL,
+ uL
], ue = () => [
"none",
- nL,
- pL,
- cL
+ iL,
+ hL,
+ uL
], de = () => [
"none",
- nL,
- pL,
- cL
+ iL,
+ hL,
+ uL
], fe = () => [
- nL,
- pL,
- cL
+ iL,
+ hL,
+ uL
], pe = () => [
- tL,
+ rL,
"full",
...w()
];
@@ -35594,17 +35619,17 @@ var _de = (e, t) => {
"bounce"
],
aspect: ["video"],
- blur: [aL],
- breakpoint: [aL],
- color: [oL],
- container: [aL],
- "drop-shadow": [aL],
+ blur: [sL],
+ breakpoint: [sL],
+ color: [cL],
+ container: [sL],
+ "drop-shadow": [sL],
ease: [
"in",
"out",
"in-out"
],
- font: [Sde],
+ font: [wde],
"font-weight": [
"thin",
"extralight",
@@ -35616,7 +35641,7 @@ var _de = (e, t) => {
"extrabold",
"black"
],
- "inset-shadow": [aL],
+ "inset-shadow": [sL],
leading: [
"none",
"tight",
@@ -35633,11 +35658,11 @@ var _de = (e, t) => {
"distant",
"none"
],
- radius: [aL],
- shadow: [aL],
- spacing: ["px", nL],
- text: [aL],
- "text-shadow": [aL],
+ radius: [sL],
+ shadow: [sL],
+ spacing: ["px", iL],
+ text: [sL],
+ "text-shadow": [sL],
tracking: [
"tighter",
"tight",
@@ -35651,9 +35676,9 @@ var _de = (e, t) => {
aspect: [{ aspect: [
"auto",
"square",
- tL,
- cL,
- pL,
+ rL,
+ uL,
+ hL,
g
] }],
container: ["container"],
@@ -35661,15 +35686,15 @@ var _de = (e, t) => {
"",
"normal",
"size",
- pL,
- cL
+ hL,
+ uL
] }],
- "container-named": [Cde],
+ "container-named": [Tde],
columns: [{ columns: [
- nL,
+ iL,
"auto",
- cL,
- pL,
+ uL,
+ hL,
s
] }],
"break-after": [{ "break-after": y() }],
@@ -35766,13 +35791,13 @@ var _de = (e, t) => {
"collapse"
],
z: [{ z: [
- rL,
+ aL,
"auto",
- pL,
- cL
+ hL,
+ uL
] }],
basis: [{ basis: [
- tL,
+ rL,
"full",
"auto",
s,
@@ -35790,32 +35815,32 @@ var _de = (e, t) => {
"wrap-reverse"
] }],
flex: [{ flex: [
- nL,
- tL,
+ iL,
+ rL,
"auto",
"initial",
"none",
- cL
+ uL
] }],
grow: [{ grow: [
"",
- nL,
- pL,
- cL
+ iL,
+ hL,
+ uL
] }],
shrink: [{ shrink: [
"",
- nL,
- pL,
- cL
+ iL,
+ hL,
+ uL
] }],
order: [{ order: [
- rL,
+ aL,
"first",
"last",
"none",
- pL,
- cL
+ hL,
+ uL
] }],
"grid-cols": [{ "grid-cols": E() }],
"col-start-end": [{ col: D() }],
@@ -35922,15 +35947,15 @@ var _de = (e, t) => {
"font-size": [{ text: [
"base",
n,
- mL,
- lL
+ gL,
+ dL
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
- jde,
- Tde
+ Nde,
+ Dde
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
@@ -35942,15 +35967,15 @@ var _de = (e, t) => {
"expanded",
"extra-expanded",
"ultra-expanded",
- iL,
- cL
+ oL,
+ uL
] }],
"font-family": [{ font: [
+ Ade,
Ode,
- Ede,
t
] }],
- "font-features": [{ "font-features": [cL] }],
+ "font-features": [{ "font-features": [uL] }],
"fvn-normal": ["normal-nums"],
"fvn-ordinal": ["ordinal"],
"fvn-slashed-zero": ["slashed-zero"],
@@ -35959,14 +35984,14 @@ var _de = (e, t) => {
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
tracking: [{ tracking: [
i,
- pL,
- cL
+ hL,
+ uL
] }],
"line-clamp": [{ "line-clamp": [
- nL,
+ iL,
"none",
- pL,
- uL
+ hL,
+ fL
] }],
leading: [{ leading: [
"none",
@@ -35975,16 +36000,16 @@ var _de = (e, t) => {
] }],
"list-image": [{ "list-image": [
"none",
- pL,
- cL
+ hL,
+ uL
] }],
"list-style-position": [{ list: ["inside", "outside"] }],
"list-style-type": [{ list: [
"disc",
"decimal",
"none",
- pL,
- cL
+ hL,
+ uL
] }],
"text-alignment": [{ text: [
"left",
@@ -36004,18 +36029,18 @@ var _de = (e, t) => {
],
"text-decoration-style": [{ decoration: [...oe(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
- nL,
+ iL,
"from-font",
"auto",
- pL,
- lL
+ hL,
+ dL
] }],
"text-decoration-color": [{ decoration: P() }],
"underline-offset": [{ "underline-offset": [
- nL,
+ iL,
"auto",
- pL,
- cL
+ hL,
+ uL
] }],
"text-transform": [
"uppercase",
@@ -36036,9 +36061,9 @@ var _de = (e, t) => {
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- rL,
- pL,
- cL
+ aL,
+ hL,
+ uL
] }],
"vertical-align": [{ align: [
"baseline",
@@ -36049,8 +36074,8 @@ var _de = (e, t) => {
"text-bottom",
"sub",
"super",
- pL,
- cL
+ hL,
+ uL
] }],
whitespace: [{ whitespace: [
"normal",
@@ -36078,8 +36103,8 @@ var _de = (e, t) => {
] }],
content: [{ content: [
"none",
- pL,
- cL
+ hL,
+ uL
] }],
"bg-attachment": [{ bg: [
"fixed",
@@ -36114,24 +36139,24 @@ var _de = (e, t) => {
"l",
"tl"
] },
- rL,
- pL,
- cL
+ aL,
+ hL,
+ uL
],
radial: [
"",
- pL,
- cL
+ hL,
+ uL
],
conic: [
"",
- rL,
- pL,
- cL
+ aL,
+ hL,
+ uL
]
},
- Ade,
- Dde
+ Mde,
+ kde
] }],
"bg-color": [{ bg: P() }],
"gradient-from-pos": [{ from: I() }],
@@ -36198,15 +36223,15 @@ var _de = (e, t) => {
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
- nL,
- pL,
- cL
+ iL,
+ hL,
+ uL
] }],
"outline-w": [{ outline: [
"",
- nL,
- mL,
- lL
+ iL,
+ gL,
+ dL
] }],
"outline-color": [{ outline: P() }],
shadow: [{ shadow: [
@@ -36214,35 +36239,35 @@ var _de = (e, t) => {
"inner",
"none",
u,
- gL,
- fL
+ vL,
+ mL
] }],
"shadow-color": [{ shadow: P() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
- gL,
- fL
+ vL,
+ mL
] }],
"inset-shadow-color": [{ "inset-shadow": P() }],
"ring-w": [{ ring: ae() }],
"ring-w-inset": ["ring-inset"],
"ring-color": [{ ring: P() }],
- "ring-offset-w": [{ "ring-offset": [nL, lL] }],
+ "ring-offset-w": [{ "ring-offset": [iL, dL] }],
"ring-offset-color": [{ "ring-offset": P() }],
"inset-ring-w": [{ "inset-ring": ae() }],
"inset-ring-color": [{ "inset-ring": P() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
- gL,
- fL
+ vL,
+ mL
] }],
"text-shadow-color": [{ "text-shadow": P() }],
opacity: [{ opacity: [
- nL,
- pL,
- cL
+ iL,
+ hL,
+ uL
] }],
"mix-blend": [{ "mix-blend": [
...se(),
@@ -36264,7 +36289,7 @@ var _de = (e, t) => {
"intersect",
"exclude"
] }],
- "mask-image-linear-pos": [{ "mask-linear": [nL] }],
+ "mask-image-linear-pos": [{ "mask-linear": [iL] }],
"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() }],
@@ -36293,7 +36318,7 @@ var _de = (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": [pL, cL] }],
+ "mask-image-radial": [{ "mask-radial": [hL, uL] }],
"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() }],
@@ -36304,7 +36329,7 @@ var _de = (e, t) => {
farthest: ["side", "corner"]
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
- "mask-image-conic-pos": [{ "mask-conic": [nL] }],
+ "mask-image-conic-pos": [{ "mask-conic": [iL] }],
"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() }],
@@ -36328,111 +36353,111 @@ var _de = (e, t) => {
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
"mask-image": [{ mask: [
"none",
- pL,
- cL
+ hL,
+ uL
] }],
filter: [{ filter: [
"",
"none",
- pL,
- cL
+ hL,
+ uL
] }],
blur: [{ blur: le() }],
brightness: [{ brightness: [
- nL,
- pL,
- cL
+ iL,
+ hL,
+ uL
] }],
contrast: [{ contrast: [
- nL,
- pL,
- cL
+ iL,
+ hL,
+ uL
] }],
"drop-shadow": [{ "drop-shadow": [
"",
"none",
p,
- gL,
- fL
+ vL,
+ mL
] }],
"drop-shadow-color": [{ "drop-shadow": P() }],
grayscale: [{ grayscale: [
"",
- nL,
- pL,
- cL
+ iL,
+ hL,
+ uL
] }],
"hue-rotate": [{ "hue-rotate": [
- nL,
- pL,
- cL
+ iL,
+ hL,
+ uL
] }],
invert: [{ invert: [
"",
- nL,
- pL,
- cL
+ iL,
+ hL,
+ uL
] }],
saturate: [{ saturate: [
- nL,
- pL,
- cL
+ iL,
+ hL,
+ uL
] }],
sepia: [{ sepia: [
"",
- nL,
- pL,
- cL
+ iL,
+ hL,
+ uL
] }],
"backdrop-filter": [{ "backdrop-filter": [
"",
"none",
- pL,
- cL
+ hL,
+ uL
] }],
"backdrop-blur": [{ "backdrop-blur": le() }],
"backdrop-brightness": [{ "backdrop-brightness": [
- nL,
- pL,
- cL
+ iL,
+ hL,
+ uL
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
- nL,
- pL,
- cL
+ iL,
+ hL,
+ uL
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
- nL,
- pL,
- cL
+ iL,
+ hL,
+ uL
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
- nL,
- pL,
- cL
+ iL,
+ hL,
+ uL
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
- nL,
- pL,
- cL
+ iL,
+ hL,
+ uL
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
- nL,
- pL,
- cL
+ iL,
+ hL,
+ uL
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
- nL,
- pL,
- cL
+ iL,
+ hL,
+ uL
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
- nL,
- pL,
- cL
+ iL,
+ hL,
+ uL
] }],
"border-collapse": [{ border: ["collapse", "separate"] }],
"border-spacing": [{ "border-spacing": w() }],
@@ -36448,39 +36473,39 @@ var _de = (e, t) => {
"shadow",
"transform",
"none",
- pL,
- cL
+ hL,
+ uL
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
- nL,
+ iL,
"initial",
- pL,
- cL
+ hL,
+ uL
] }],
ease: [{ ease: [
"linear",
"initial",
_,
- pL,
- cL
+ hL,
+ uL
] }],
delay: [{ delay: [
- nL,
- pL,
- cL
+ iL,
+ hL,
+ uL
] }],
animate: [{ animate: [
"none",
v,
- pL,
- cL
+ hL,
+ uL
] }],
backface: [{ backface: ["hidden", "visible"] }],
perspective: [{ perspective: [
h,
- pL,
- cL
+ hL,
+ uL
] }],
"perspective-origin": [{ "perspective-origin": x() }],
rotate: [{ rotate: ue() }],
@@ -36496,8 +36521,8 @@ var _de = (e, t) => {
"skew-x": [{ "skew-x": fe() }],
"skew-y": [{ "skew-y": fe() }],
transform: [{ transform: [
- pL,
- cL,
+ hL,
+ uL,
"",
"none",
"gpu",
@@ -36511,9 +36536,9 @@ var _de = (e, t) => {
"translate-z": [{ "translate-z": pe() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- rL,
- pL,
- cL
+ aL,
+ hL,
+ uL
] }],
accent: [{ accent: P() }],
appearance: [{ appearance: ["none", "auto"] }],
@@ -36563,8 +36588,8 @@ var _de = (e, t) => {
"nwse-resize",
"zoom-in",
"zoom-out",
- pL,
- cL
+ hL,
+ uL
] }],
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
@@ -36650,15 +36675,15 @@ var _de = (e, t) => {
"scroll",
"contents",
"transform",
- pL,
- cL
+ hL,
+ uL
] }],
fill: [{ fill: ["none", ...P()] }],
"stroke-w": [{ stroke: [
- nL,
- mL,
- lL,
- uL
+ iL,
+ gL,
+ dL,
+ fL
] }],
stroke: [{ stroke: ["none", ...P()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
@@ -36916,16 +36941,16 @@ var _de = (e, t) => {
"selection"
]
};
-}, Nde = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (DL(e, "cacheSize", t), DL(e, "prefix", n), DL(e, "experimentalParseClassName", r), OL(e.theme, a.theme), OL(e.classGroups, a.classGroups), OL(e.conflictingClassGroups, a.conflictingClassGroups), OL(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), DL(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), DL(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), kL(e.theme, i.theme), kL(e.classGroups, i.classGroups), kL(e.conflictingClassGroups, i.conflictingClassGroups), kL(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), AL(e, i, "postfixLookupClassGroups"), AL(e, i, "orderSensitiveModifiers"), e), DL = (e, t, n) => {
+}, Fde = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (kL(e, "cacheSize", t), kL(e, "prefix", n), kL(e, "experimentalParseClassName", r), AL(e.theme, a.theme), AL(e.classGroups, a.classGroups), AL(e.conflictingClassGroups, a.conflictingClassGroups), AL(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), kL(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), kL(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), jL(e.theme, i.theme), jL(e.classGroups, i.classGroups), jL(e.conflictingClassGroups, i.conflictingClassGroups), jL(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), ML(e, i, "postfixLookupClassGroups"), ML(e, i, "orderSensitiveModifiers"), e), kL = (e, t, n) => {
n !== void 0 && (e[t] = n);
-}, OL = (e, t) => {
- if (t) for (let n in t) DL(e, n, t[n]);
-}, kL = (e, t) => {
- if (t) for (let n in t) AL(e, t, n);
-}, AL = (e, t, n) => {
+}, AL = (e, t) => {
+ if (t) for (let n in t) kL(e, n, t[n]);
+}, jL = (e, t) => {
+ if (t) for (let n in t) ML(e, t, n);
+}, ML = (e, t, n) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, Pde = (e, ...t) => typeof e == "function" ? WI(EL, e, ...t) : WI(() => Nde(EL(), e), ...t), Fde = [
+}, Ide = (e, ...t) => typeof e == "function" ? ZI(OL, e, ...t) : ZI(() => Fde(OL(), e), ...t), Lde = [
"large-title",
"display-1",
"display-2",
@@ -36939,17 +36964,17 @@ var _de = (e, t) => {
"body-2",
"caption-1",
"caption-2"
-], Ide = [
+], Rde = [
"regular",
"medium",
"semibold",
"bold"
-], jL = Pde({ extend: { classGroups: { "font-size": [{ text: Fde.flatMap((e) => Ide.map((t) => `${e}-${t}`)) }] } } });
-function ML(e) {
+], NL = Ide({ extend: { classGroups: { "font-size": [{ text: Lde.flatMap((e) => Rde.map((t) => `${e}-${t}`)) }] } } });
+function PL(e) {
return e;
}
// src/react/components/pill-tab.tsx
-var Lde = typeof window < "u" ? F.useLayoutEffect : F.useEffect, NL = ML({
+var zde = typeof window < "u" ? F.useLayoutEffect : F.useEffect, FL = PL({
radius: {
blue: "rounded-full",
gray: "rounded-2lg"
@@ -36971,9 +36996,9 @@ var Lde = typeof window < "u" ? F.useLayoutEffect : F.useEffect, NL = ML({
gray: "text-text-primary"
}
});
-function PL({ children: e, className: t, ref: n, container: r, ...i }) {
+function IL({ children: e, className: t, ref: n, container: r, ...i }) {
let a = (0, F.useRef)(null), [o, s] = (0, F.useState)(null);
- Lde(() => {
+ zde(() => {
let e = r === void 0 ? a.current : r;
if (!e) return;
let t = () => {
@@ -37009,7 +37034,7 @@ function PL({ children: e, className: t, ref: n, container: r, ...i }) {
}, l = o && /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
"data-pill-thumb": "",
- className: jL("pointer-events-none absolute left-0 top-0", NL.radius[o.variant], NL.thumb[o.variant]),
+ className: NL("pointer-events-none absolute left-0 top-0", FL.radius[o.variant], FL.thumb[o.variant]),
style: {
"--pill-left": `${o.left}px`,
"--pill-top": `${o.top}px`,
@@ -37020,43 +37045,43 @@ function PL({ children: e, className: t, ref: n, container: r, ...i }) {
return r === void 0 ? /* @__PURE__ */ (0, I.jsxs)("div", {
ref: c,
role: "group",
- className: jL("relative inline-flex items-center gap-1", t),
+ className: NL("relative inline-flex items-center gap-1", t),
...i,
children: [l, e]
}) : r ? (0, It.createPortal)(l, r) : null;
}
// src/react/manage-header/manage-header-island.tsx
-var FL = null, IL = null, LL = /* @__PURE__ */ new Set();
-function Rde(e) {
- return LL.add(e), () => {
- LL.delete(e);
+var LL = null, RL = null, zL = /* @__PURE__ */ new Set();
+function Bde(e) {
+ return zL.add(e), () => {
+ zL.delete(e);
};
}
-function zde() {
- for (let e of [...LL]) e();
+function Vde() {
+ for (let e of [...zL]) e();
}
-var Bde = { render(e) {
- IL = e, (0, It.flushSync)(zde);
+var Hde = { render(e) {
+ RL = e, (0, It.flushSync)(Vde);
} };
-function Vde(e) {
- return FL = e, IL = null, Bde;
+function Ude(e) {
+ return LL = e, RL = null, Hde;
}
-function Hde() {
- let e = (0, F.useSyncExternalStore)(Rde, () => IL);
- return FL && e ? /* @__PURE__ */ (0, I.jsx)(Ude, {
- host: FL,
+function Wde() {
+ let e = (0, F.useSyncExternalStore)(Bde, () => RL);
+ return LL && e ? /* @__PURE__ */ (0, I.jsx)(Gde, {
+ host: LL,
props: e
}) : null;
}
-function Ude({ host: e, props: t }) {
- let n = uI(t);
+function Gde({ host: e, props: t }) {
+ let n = hI(t);
return n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(Wde, {
+ /* @__PURE__ */ (0, I.jsx)(Kde, {
host: e,
pressed: n.pressed,
menu: t.menu
}),
- n.crumb ? /* @__PURE__ */ (0, I.jsx)(Gde, {
+ n.crumb ? /* @__PURE__ */ (0, I.jsx)(qde, {
host: e,
label: n.crumb
}) : null,
@@ -37065,13 +37090,13 @@ function Ude({ host: e, props: t }) {
"data-compact": n.compact ? "" : void 0,
children: n.title
}),
- n.lede.kind === "none" ? null : /* @__PURE__ */ (0, I.jsx)(Kde, {
+ n.lede.kind === "none" ? null : /* @__PURE__ */ (0, I.jsx)(Jde, {
host: e,
lede: n.lede
})
] }) : null;
}
-function Wde({ host: e, pressed: t, menu: n }) {
+function Kde({ host: e, pressed: t, menu: n }) {
let r = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
let e = r.current, t = e?.querySelector("button[aria-pressed=\"true\"]");
@@ -37081,7 +37106,7 @@ function Wde({ host: e, pressed: t, menu: n }) {
}, [t, n]), /* @__PURE__ */ (0, I.jsx)("nav", {
"data-manage-bar": "",
"aria-label": "管理",
- children: /* @__PURE__ */ (0, I.jsx)(PL, {
+ children: /* @__PURE__ */ (0, I.jsx)(IL, {
ref: r,
"data-manage-menu": "",
"data-pill-nav": "",
@@ -37095,13 +37120,13 @@ function Wde({ 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)(mI, { name: i }), /* @__PURE__ */ (0, I.jsx)("span", { children: r })]
+ children: [/* @__PURE__ */ (0, I.jsx)(yI, { name: i }), /* @__PURE__ */ (0, I.jsx)("span", { children: r })]
}, n);
})
})
});
}
-function Gde({ host: e, label: t }) {
+function qde({ host: e, label: t }) {
return /* @__PURE__ */ (0, I.jsx)("nav", {
"data-manage-crumb": "",
"aria-label": "当前位置",
@@ -37111,20 +37136,20 @@ function Gde({ host: e, label: t }) {
t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || t.button || (t.preventDefault(), e.openDataCleanup());
},
children: "数据管理"
- }), /* @__PURE__ */ (0, I.jsx)(mI, { name: "chevron-right" })] }), /* @__PURE__ */ (0, I.jsx)("li", {
+ }), /* @__PURE__ */ (0, I.jsx)(yI, { name: "chevron-right" })] }), /* @__PURE__ */ (0, I.jsx)("li", {
"aria-current": "true",
children: /* @__PURE__ */ (0, I.jsx)("span", { children: t })
})] })
});
}
-function Kde({ host: e, lede: t }) {
+function Jde({ host: e, lede: t }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
className: "mono",
"data-manage-lede": "",
children: t.kind === "skeleton" ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-trash-lede-skeletons": "",
- dangerouslySetInnerHTML: { __html: pI }
- }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(qde, { text: t.text }), t.total ? /* @__PURE__ */ (0, I.jsx)("button", {
+ dangerouslySetInnerHTML: { __html: vI }
+ }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Yde, { text: t.text }), t.total ? /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-empty-trash": "",
"data-danger": "",
@@ -37134,7 +37159,7 @@ function Kde({ host: e, lede: t }) {
}) : null] })
});
}
-function qde({ text: e }) {
+function Yde({ text: e }) {
let t = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
Ks(t.current, e);
@@ -37144,29 +37169,29 @@ function qde({ text: e }) {
});
}
// src/core/text-lang.ts
-var Jde = /[぀-ヿㇰ-ㇿヲ-゚]/, Yde = /[㐀-鿿豈-﫿]/, Xde = /[A-Za-z]/;
-function RL(e) {
+var Xde = /[぀-ヿㇰ-ㇿヲ-゚]/, Zde = /[㐀-鿿豈-﫿]/, Qde = /[A-Za-z]/;
+function BL(e) {
let t = String(e ?? "");
- if (Jde.test(t)) return "ja";
- if (!Yde.test(t) && Xde.test(t)) return "en";
+ if (Xde.test(t)) return "ja";
+ if (!Zde.test(t) && Qde.test(t)) return "en";
}
-var Zde = (e) => {
- let t = RL(e);
+var $de = (e) => {
+ let t = BL(e);
return t ? ` lang="${t}"` : "";
-}, Qde = /\.(?:mp4|mkv|avi|wmv|mov|m4v|webm|ts|m2ts|mts|mpg|mpeg|flv|rm|rmvb|iso)$/i, $de = (e, t = e?.name) => {
+}, efe = /\.(?:mp4|mkv|avi|wmv|mov|m4v|webm|ts|m2ts|mts|mpg|mpeg|flv|rm|rmvb|iso)$/i, tfe = (e, t = e?.name) => {
let n = String(t || "").trim();
- return e?.is_jav ? n.replace(Qde, "") : n;
-}, efe = (e) => /[぀-ヿ㐀-鿿]/.test(String(e || "")), tfe = (e) => {
+ return e?.is_jav ? n.replace(efe, "") : n;
+}, nfe = (e) => /[぀-ヿ㐀-鿿]/.test(String(e || "")), rfe = (e) => {
let t = [e?.catalog_title, e?.original_title].map((e) => String(e || "").trim()).filter(Boolean);
- return t.find(efe) || t[0] || "";
+ return t.find(nfe) || t[0] || "";
};
-function zL(e, t = e?.name) {
- let n = $de(e, t), r = String(e?.code || "").trim().toUpperCase();
+function VL(e, t = e?.name) {
+ let n = tfe(e, t), r = String(e?.code || "").trim().toUpperCase();
if (!e?.is_jav || !r) return {
code: "",
title: n
};
- let i = String(e?.display_code || r).trim().toUpperCase(), a = n.toUpperCase(), o = a === r || a === i || a.startsWith(r) && /^[\s._\-[\]]/.test(n.slice(r.length)) || a.startsWith(i) && /^[\s._\-[\]]/.test(n.slice(i.length)), s = a.startsWith(i) ? i.length : r.length, c = (o ? n.slice(s) : n).replace(/^[\s._-]+/, "").trim(), l = tfe(e), u = Object.prototype.hasOwnProperty.call(e || {}, "display_title") ? String(e.display_title || "").trim() : c, d = l || u, f = Array.isArray(e?.edition_badges) ? e.edition_badges.filter((e) => [
+ let i = String(e?.display_code || r).trim().toUpperCase(), a = n.toUpperCase(), o = a === r || a === i || a.startsWith(r) && /^[\s._\-[\]]/.test(n.slice(r.length)) || a.startsWith(i) && /^[\s._\-[\]]/.test(n.slice(i.length)), s = a.startsWith(i) ? i.length : r.length, c = (o ? n.slice(s) : n).replace(/^[\s._-]+/, "").trim(), l = rfe(e), u = Object.prototype.hasOwnProperty.call(e || {}, "display_title") ? String(e.display_title || "").trim() : c, d = l || u, f = Array.isArray(e?.edition_badges) ? e.edition_badges.filter((e) => [
"中字",
"无码",
"无码破解"
@@ -37177,23 +37202,23 @@ function zL(e, t = e?.name) {
badges: f
};
}
-var BL = (e, t = e?.name) => {
- let { code: n, title: r, badges: i = [] } = zL(e, t);
+var HL = (e, t = e?.name) => {
+ let { code: n, title: r, badges: i = [] } = VL(e, t);
return n ? [
n,
...i,
r
].filter(Boolean).join(" ") : r;
};
-function VL(e, t = e?.name) {
- let { code: n, title: r, badges: i = [] } = zL(e, t);
+function UL(e, t = e?.name) {
+ let { code: n, title: r, badges: i = [] } = VL(e, t);
if (!n) return B(r);
let a = i.map((e) => `<small class="javedition ${e === "中字" ? "subtitle" : e === "无码" ? "uncensored" : e === "无码破解" ? "cracked" : "quality"}">${B(e)}</small>`).join("");
- return `<span class="ui-javidentity"><strong class="ui-javcode">${B(n)}</strong>${a}</span>${r ? ` <span class="ui-javtitle"${Zde(r)}>${B(r)}</span>` : ""}`;
+ return `<span class="ui-javidentity"><strong class="ui-javcode">${B(n)}</strong>${a}</span>${r ? ` <span class="ui-javtitle"${$de(r)}>${B(r)}</span>` : ""}`;
}
// src/react/activity/tasks.ts
-var HL = "/api/tasks", UL = ["tasks"];
-function nfe(e, t) {
+var WL = "/api/tasks", GL = ["tasks"];
+function ife(e, t) {
let n = 0, r = 0, i = 0;
for (let a of t) for (let [t, o] of Object.entries(e?.[String(a.id)] || {})) n += o, (t === "pending" || t === "running") && (r += o), (t === "failed" || t === "interrupted") && (i += o);
return {
@@ -37203,7 +37228,7 @@ function nfe(e, t) {
settled: n - r
};
}
-function rfe(e) {
+function afe(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
let e = t.get(n.task_key);
@@ -37214,11 +37239,11 @@ function rfe(e) {
}
return [...t.values()];
}
-var ife = (e, t) => V(`${HL}?${new URLSearchParams({
+var ofe = (e, t) => V(`${WL}?${new URLSearchParams({
before_finished_at: e.finished_at || "",
before_id: String(e.id)
})}`, t);
-function afe(...e) {
+function sfe(...e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) for (let e of n) t.has(e.id) || t.set(e.id, e);
return [...t.values()].sort((e, t) => {
@@ -37226,26 +37251,26 @@ function afe(...e) {
return n === r ? t.id - e.id : n < r ? 1 : -1;
});
}
-var ofe = 2e3, sfe = 1e4, WL = (e) => e?.running?.length ? ofe : sfe, GL = (e) => V(HL, e);
-async function cfe(e) {
+var cfe = 2e3, lfe = 1e4, KL = (e) => e?.running?.length ? cfe : lfe, qL = (e) => V(WL, e);
+async function ufe(e) {
await U.fetchQuery({
- queryKey: UL,
- queryFn: () => GL(e)
+ queryKey: GL,
+ queryFn: () => qL(e)
});
}
-var lfe = {
+var dfe = {
manual: "手动",
scheduled: "定时",
startup: "启动",
cli: "命令行"
-}, ufe = {
+}, ffe = {
pending: "排队中",
running: "进行中",
succeeded: "已完成",
failed: "失败",
cancelled: "已取消",
interrupted: "意外中断"
-}, dfe = (e) => ufe[e] || e, KL = {
+}, pfe = (e) => ffe[e] || e, JL = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@ -37322,7 +37347,7 @@ var lfe = {
without_code: "未识别番号",
incomplete: "资料或封面未取得",
result: "结果"
-}, ffe = [
+}, mfe = [
"gone_count",
"unclear_count",
"source_failed",
@@ -37344,14 +37369,14 @@ var lfe = {
"paused_count",
"miss",
"incomplete"
-], pfe = ["face_match_unavailable"], qL = (e) => e.result_summary?.ok === !1 || !!e.result_summary?.error || pfe.some((t) => e.result_summary?.[t] === !0) || ffe.some((t) => Number(e.result_summary?.[t]) > 0);
-function mfe(e) {
+], hfe = ["face_match_unavailable"], YL = (e) => e.result_summary?.ok === !1 || !!e.result_summary?.error || hfe.some((t) => e.result_summary?.[t] === !0) || mfe.some((t) => Number(e.result_summary?.[t]) > 0);
+function gfe(e) {
let t = e.result_summary?.issues;
return Array.isArray(t) ? t.filter((e) => !!e && typeof e == "object" && typeof e.error == "string" && typeof e.label == "string") : [];
}
-var JL = /* @__PURE__ */ new Set(["library-processing"]);
-function hfe(e, t = !0) {
- if (!qL(e) && e.status !== "failed" || JL.has(e.task_key) && !t) return null;
+var XL = /* @__PURE__ */ new Set(["library-processing"]);
+function _fe(e, t = !0) {
+ if (!YL(e) && e.status !== "failed" || XL.has(e.task_key) && !t) return null;
let n = {
"link-check": ["/data-cleanup#link-manager", "查看有问题的链接"],
"link-prune": ["/data-cleanup#link-manager", "查看有问题的链接"],
@@ -37369,12 +37394,12 @@ function hfe(e, t = !0) {
label: n[1]
} : null;
}
-function gfe(e) {
+function vfe(e) {
let t = /* @__PURE__ */ new Map();
- for (let n of e) JL.has(n.task_key) && !n.followup_key && n.id > (t.get(n.task_key) ?? 0) && t.set(n.task_key, n.id);
+ for (let n of e) XL.has(n.task_key) && !n.followup_key && n.id > (t.get(n.task_key) ?? 0) && t.set(n.task_key, n.id);
return new Set(t.values());
}
-function _fe(e) {
+function yfe(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
if (!n.followup_key || n.parent_run_id == null) continue;
@@ -37383,7 +37408,7 @@ function _fe(e) {
}
return t;
}
-function vfe(e, t) {
+function bfe(e, t) {
let n = [], r = /* @__PURE__ */ new Map();
for (let i of e) {
if (!t(i)) {
@@ -37405,12 +37430,12 @@ function vfe(e, t) {
}
return n;
}
-var yfe = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !qL(e) && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), YL = (e) => e.status === "pending" || e.status === "running";
-function bfe(e) {
+var xfe = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !YL(e) && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), ZL = (e) => e.status === "pending" || e.status === "running";
+function Sfe(e) {
let t = `${e.task_label}:`, n = e.progress_label || "", r = String(e.result_summary?.name || "") || (n.startsWith(t) ? n.slice(t.length) : n === e.task_label ? "" : n), i = e.progress_total || 0, { name: a, ...o } = e.result_summary || {};
- return [r, QL(e.error) || Dfe(o) || (YL(e) && i > 0 ? `${ZL(e.progress_current, i)} 项` : "")].filter(Boolean).join(" · ");
+ return [r, eR(e.error) || kfe(o) || (ZL(e) && i > 0 ? `${$L(e.progress_current, i)} 项` : "")].filter(Boolean).join(" · ");
}
-function XL(e) {
+function QL(e) {
if (typeof e != "number" || !Number.isFinite(e) || e < 0) return "";
let t = Math.floor(e);
if (t < 60) return `${t} 秒`;
@@ -37419,19 +37444,19 @@ function XL(e) {
let r = Math.floor(n / 60);
return r < 48 ? `${r} 小时 ${n % 60} 分` : `${Math.floor(r / 24).toLocaleString()} 天 ${r % 24} 小时`;
}
-function ZL(e, t) {
+function $L(e, t) {
let n = Math.max(0, Number(t) || 0);
return `${Math.min(n, Math.max(0, Number(e) || 0)).toLocaleString()} / ${n.toLocaleString()}`;
}
-function xfe(e) {
+function Cfe(e) {
let t = String(e || "").split(/\r?\n/).map((e) => e.trim()).filter(Boolean);
return t.length ? /^Traceback \(most recent call last\)/.test(t[0]) ? t[t.length - 1] : t[0] : "";
}
-function QL(e) {
- let t = xfe(e), n = t.match(/^(?:[\w.]*Error|Exception):\s*(.*)$/);
+function eR(e) {
+ let t = Cfe(e), n = t.match(/^(?:[\w.]*Error|Exception):\s*(.*)$/);
return n ? yn(n[1]) : t;
}
-var Sfe = {
+var wfe = {
partial: "处理已结束,部分项目需处理",
complete: "处理完成",
interrupted: "处理已中断",
@@ -37448,11 +37473,11 @@ var Sfe = {
三站都没对上她: "三个来源均未找到与该人物相符的资料页",
已有身份: "已有创作者分类",
已变: "资料已被其他操作修改,本次未保存"
-}, $L = {
+}, tR = {
avwikidb: "AVWikiDB",
javdb: "JavDB",
"minnano-av": "みんなのAV"
-}, Cfe = {
+}, Tfe = {
like: "标记喜欢",
seen: "标记看过",
later: "加入稍后看",
@@ -37463,8 +37488,8 @@ var Sfe = {
"dismiss-junk": "确认不是垃圾",
"reconsider-junk": "重新判定垃圾",
region: "判定产地"
-}, wfe = (e) => Sfe[e] || e.replace(/(avwikidb|javdb|minnano-av) (绑定|写入)/gi, (e, t, n) => n === "绑定" ? `已关联 ${$L[t.toLowerCase()]} 资料页` : `已保存来自 ${$L[t.toLowerCase()]} 的资料`);
-function eR(e) {
+}, Efe = (e) => wfe[e] || e.replace(/(avwikidb|javdb|minnano-av) (绑定|写入)/gi, (e, t, n) => n === "绑定" ? `已关联 ${tR[t.toLowerCase()]} 资料页` : `已保存来自 ${tR[t.toLowerCase()]} 的资料`);
+function nR(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -37474,7 +37499,7 @@ function eR(e) {
minute: "2-digit"
});
}
-var Tfe = /* @__PURE__ */ new Set([
+var Dfe = /* @__PURE__ */ new Set([
"blocked_by",
"status",
"run_id",
@@ -37483,20 +37508,20 @@ var Tfe = /* @__PURE__ */ new Set([
"completed_at",
"finished_at"
]);
-function tR(e) {
- let t = Efe(e);
+function rR(e) {
+ let t = Ofe(e);
return e?.face_match_unavailable === !0 && !t.some((e) => /不可用|未生效/.test(e)) && t.push("人脸模型不可用,未做人脸核对"), t;
}
-function Efe(e) {
- return Object.entries(e || {}).filter(([e, t]) => !Tfe.has(e) && (e in KL || e === "outcome" || e === "followups" || e === "error") && (typeof t == "number" || typeof t == "string") && String(t) !== "" && (t !== 0 || e === "checked" || e === "total")).map(([e, t]) => e === "followups" ? `已安排 ${Number(t).toLocaleString()} 项补充任务` : e === "error" ? QL(String(t)) : e === "outcome" || e === "result" ? wfe(String(t)) : e === "cache_bytes" || e === "bytes_reclaimed" ? `${KL[e]} ${Jn(Number(t))}` : e === "operation" ? `操作:${Cfe[String(t)] || "批量操作"}` : `${KL[e]} ${typeof t == "number" ? t.toLocaleString() : t}`);
+function Ofe(e) {
+ return Object.entries(e || {}).filter(([e, t]) => !Dfe.has(e) && (e in JL || e === "outcome" || e === "followups" || e === "error") && (typeof t == "number" || typeof t == "string") && String(t) !== "" && (t !== 0 || e === "checked" || e === "total")).map(([e, t]) => e === "followups" ? `已安排 ${Number(t).toLocaleString()} 项补充任务` : e === "error" ? eR(String(t)) : e === "outcome" || e === "result" ? Efe(String(t)) : e === "cache_bytes" || e === "bytes_reclaimed" ? `${JL[e]} ${Jn(Number(t))}` : e === "operation" ? `操作:${Tfe[String(t)] || "批量操作"}` : `${JL[e]} ${typeof t == "number" ? t.toLocaleString() : t}`);
}
-var Dfe = (e) => tR(e).join(" · ");
+var kfe = (e) => rR(e).join(" · ");
// src/react/use-entity-names.ts
-function nR() {
+function iR() {
return (0, F.useSyncExternalStore)(qt, Kt, Kt);
}
// src/react/components/async-text.tsx
-function rR({ text: e, busy: t, placeholder: n }) {
+function aR({ text: e, busy: t, placeholder: n }) {
let r = (0, F.useRef)(null), i = (0, F.useRef)(e), a = e ?? i.current;
return (0, F.useLayoutEffect)(() => {
e === void 0 ? a === void 0 && lc(r.current) : i.current = e;
@@ -37519,7 +37544,7 @@ function rR({ text: e, busy: t, placeholder: n }) {
});
}
// src/react/boardui/components/base/buttons/icon-button.tsx
-var iR = ML({
+var oR = PL({
base: "relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg bg-background-primary-default text-foreground-icon-primary border border-border-button-default shadow-xs select-none cursor-pointer transition-[background-color,border-color,box-shadow,color] duration-150 ease outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring hover:bg-background-primary-hover hover:border-border-button-hover active:bg-background-primary-active active:border-border-button-active disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:border-border-button-default disabled:text-icon-button-disabled-foreground disabled:opacity-60 disabled:shadow-none",
size: {
medium: "size-9",
@@ -37530,20 +37555,20 @@ var iR = ML({
small: "size-4 shrink-0"
}
});
-function aR({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+function sR({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
ref: i,
type: r,
- className: jL(iR.base, iR.size[t], n),
+ className: NL(oR.base, oR.size[t], n),
...a,
children: /* @__PURE__ */ (0, I.jsx)(e, {
- className: iR.icon[t],
+ className: oR.icon[t],
"aria-hidden": !0
})
});
}
// src/react/components/glass-drift.tsx
-function oR() {
+function cR() {
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-glass-drift": "",
"aria-hidden": "true",
@@ -37557,7 +37582,7 @@ function oR() {
});
}
// src/react/components/use-stuck.ts
-function sR(e) {
+function lR(e) {
(0, F.useEffect)(() => {
let t = e.current;
if (!t) return;
@@ -37574,7 +37599,7 @@ function sR(e) {
}, [e]);
}
// src/react/components/use-horizontal-scroller.ts
-function cR(e, t = !0) {
+function uR(e, t = !0) {
let [n, r] = (0, F.useState)(null), i = (0, F.useCallback)((t) => {
r(t), typeof e == "function" ? e(t) : e && (e.current = t);
}, [e]);
@@ -37588,17 +37613,17 @@ function cR(e, t = !0) {
}, [n, t]), i;
}
// src/react/components/filter-glass.tsx
-var Ofe = ({ className: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var Afe = ({ className: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
className: e,
dangerouslySetInnerHTML: { __html: Rs("正在处理") }
});
-function lR({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsx)(aR, {
+function dR({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress: i, ...a }) {
+ return /* @__PURE__ */ (0, I.jsx)(sR, {
...a,
"data-filter-action": "",
size: "small",
- icon: n && r === "spinner" ? Ofe : t,
+ icon: n && r === "spinner" ? Afe : t,
"aria-label": e,
title: a.title || e,
"aria-busy": n || void 0,
@@ -37608,9 +37633,9 @@ function lR({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress
}
});
}
-function kfe({ title: e, children: t }) {
+function jfe({ title: e, children: t }) {
let n = (0, F.useRef)(null);
- return sR(n), /* @__PURE__ */ (0, I.jsxs)("div", {
+ return lR(n), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: n,
role: "group",
"aria-label": e,
@@ -37623,20 +37648,20 @@ function kfe({ title: e, children: t }) {
children: e
}),
t,
- /* @__PURE__ */ (0, I.jsx)(oR, {})
+ /* @__PURE__ */ (0, I.jsx)(cR, {})
]
});
}
-function uR({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
- let d = (0, F.useRef)(null), f = cR(), p = cR(u);
- return sR(d), /* @__PURE__ */ (0, I.jsxs)("div", {
+function fR({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
+ let d = (0, F.useRef)(null), f = uR(), p = uR(u);
+ return lR(d), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: d,
role: "group",
"aria-label": e,
"data-filter-glass": !0,
"data-glass-pane": "",
...c,
- className: jL("sticky top-topbar z-10 mb-5.5 flex flex-col", i),
+ className: NL("sticky top-topbar z-10 mb-5.5 flex flex-col", i),
children: [
s,
n === null ? null : /* @__PURE__ */ (0, I.jsx)("div", {
@@ -37644,37 +37669,37 @@ function uR({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassNa
role: "group",
"aria-label": t,
"data-filter-row": "top",
- className: jL("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),
+ className: NL("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),
children: n
}),
/* @__PURE__ */ (0, I.jsx)("div", {
ref: p,
"data-filter-row": "bottom",
"aria-busy": l || void 0,
- className: jL("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
+ className: NL("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
children: r
}),
- /* @__PURE__ */ (0, I.jsx)(oR, {})
+ /* @__PURE__ */ (0, I.jsx)(cR, {})
]
});
}
-var Afe = "flex h-8 flex-none cursor-pointer 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 outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
-function dR({ children: e, pressed: t, onPress: n, className: r, ...i }) {
+var Mfe = "flex h-8 flex-none cursor-pointer 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 outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
+function pR({ children: e, pressed: t, onPress: n, className: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
...i,
"aria-pressed": t,
- className: jL(Afe, r),
+ className: NL(Mfe, r),
onClick: n,
children: e
});
}
-var jfe = "h-8 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
-function fR({ children: e, onPress: t, busy: n = !1 }) {
+var Nfe = "h-8 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
+function mR({ children: e, onPress: t, busy: n = !1 }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glass-pill": "",
- className: jfe,
+ className: Nfe,
"aria-busy": n || void 0,
"aria-disabled": n || void 0,
onClick: () => {
@@ -37684,13 +37709,13 @@ function fR({ children: e, onPress: t, busy: n = !1 }) {
});
}
// src/react/components/use-view-glide.ts
-var pR = (e, t) => [
+var hR = (e, t) => [
"x",
"y",
"w",
"h"
].every((n) => e[n] === t[n]);
-function mR(e, t, n) {
+function gR(e, t, n) {
if (!t.contains(e)) return null;
let r = 0, i = 0;
for (let n = e; n && n !== t; n = n.offsetParent) r += n.offsetLeft, i += n.offsetTop;
@@ -37714,17 +37739,17 @@ function mR(e, t, n) {
h: e.offsetHeight
};
}
-function hR(e, t, n, r, { axis: i = "x" } = {}) {
+function _R(e, t, n, r, { axis: i = "x" } = {}) {
let a = (0, F.useRef)(null), o = (0, F.useCallback)((r, o) => {
let s = e.current, c = t.current, l = s?.parentElement;
if (!s) return;
- let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? mR(u, l, i) : null;
+ let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? gR(u, l, i) : null;
if (!d || !d.w || !d.h) {
Hc(s), s.hidden = !0, a.current = null;
return;
}
let f = s.hidden ? null : a.current;
- s.hidden = !1, a.current = d, !(o && f && pR(f, d)) && Bc(s, o ? f : null, d, i);
+ s.hidden = !1, a.current = d, !(o && f && hR(f, d)) && Bc(s, o ? f : null, d, i);
}, [
e,
t,
@@ -37745,8 +37770,8 @@ function hR(e, t, n, r, { axis: i = "x" } = {}) {
passive: !0
}), addEventListener("resize", c, { passive: !0 });
let l = new ResizeObserver(() => {
- let e = t.current, o = e?.offsetWidth ? e.querySelector(n) : null, s = o && r ? mR(o, r, i) : null, l = a.current;
- s && l && pR(s, l) || c();
+ let e = t.current, o = e?.offsetWidth ? e.querySelector(n) : null, s = o && r ? gR(o, r, i) : null, l = a.current;
+ s && l && hR(s, l) || c();
}), u = t.current;
if (u && r) {
l.observe(u);
@@ -37777,7 +37802,7 @@ function hR(e, t, n, r, { axis: i = "x" } = {}) {
};
}
// src/react/boardui/components/base/buttons/button.tsx
-var gR = ML({
+var vR = PL({
base: "inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden font-sans select-none cursor-pointer button-press-motion outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring disabled:cursor-not-allowed aria-disabled:cursor-not-allowed",
size: {
medium: "h-9 rounded-2lg p-2 text-body-medium",
@@ -37806,56 +37831,56 @@ var gR = ML({
ghost: "bg-button-ghost-background text-button-ghost-foreground hover:bg-button-ghost-hover active:bg-button-ghost-active disabled:bg-button-ghost-disabled disabled:text-button-ghost-disabled-foreground disabled:shadow-none aria-disabled:bg-button-ghost-disabled aria-disabled:text-button-ghost-disabled-foreground aria-disabled:shadow-none"
}
});
-function q({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, type: s = "button", ref: c, ...l }) {
+function J({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, type: s = "button", ref: c, ...l }) {
return /* @__PURE__ */ (0, I.jsxs)("button", {
ref: c,
type: s,
- className: jL(gR.base, gR.size[t], gR.variant[e], n && gR.iconOnlySize[t], o),
+ className: NL(vR.base, vR.size[t], vR.variant[e], n && vR.iconOnlySize[t], o),
...l,
children: [
r ? /* @__PURE__ */ (0, I.jsx)(r, {
- className: gR.icon[t],
+ className: vR.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, I.jsx)("span", {
- className: gR.label[t],
+ className: vR.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, I.jsx)(i, {
- className: gR.icon[t],
+ className: vR.icon[t],
"aria-hidden": !0
}) : null
]
});
}
-function _R({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
+function yR({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
return /* @__PURE__ */ (0, I.jsxs)("a", {
ref: s,
- className: jL(gR.base, gR.size[t], gR.variant[e], n && gR.iconOnlySize[t], o),
+ className: NL(vR.base, vR.size[t], vR.variant[e], n && vR.iconOnlySize[t], o),
...c,
children: [
r ? /* @__PURE__ */ (0, I.jsx)(r, {
- className: gR.icon[t],
+ className: vR.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, I.jsx)("span", {
- className: gR.label[t],
+ className: vR.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, I.jsx)(i, {
- className: gR.icon[t],
+ className: vR.icon[t],
"aria-hidden": !0
}) : null
]
});
}
// node_modules/react-aria-components/dist/private/utils.mjs
-var vR = Symbol("default");
-function yR({ values: e, children: t }) {
+var bR = Symbol("default");
+function xR({ values: e, children: t }) {
for (let [n, r] of e) t = /*#__PURE__*/ F.createElement(n.Provider, { value: r }, t);
return t;
}
-function bR(e) {
+function SR(e) {
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
return (0, F.useMemo)(() => {
let e, l, u;
@@ -37889,11 +37914,11 @@ function bR(e) {
c
]);
}
-function xR(e, t) {
+function CR(e, t) {
let n = (0, F.useContext)(e);
if (t === null) return null;
if (n && typeof n == "object" && "slots" in n && n.slots) {
- let e = t || vR;
+ let e = t || bR;
if (!n.slots[e]) {
let e = new Intl.ListFormat().format(Object.keys(n.slots).map((e) => `"${e}"`)), r = t ? `Invalid slot "${t}".` : "A slot prop is required.";
throw Error(`${r} Valid slot names are ${e}.`);
@@ -37902,8 +37927,8 @@ function xR(e, t) {
}
return n;
}
-function SR(e, t, n) {
- let { ref: r, ...i } = xR(n, e.slot) || {}, a = hw((0, F.useMemo)(() => ow(t, r), [t, r])), o = K(i, e);
+function wR(e, t, n) {
+ let { ref: r, ...i } = CR(n, e.slot) || {}, a = vw((0, F.useMemo)(() => lw(t, r), [t, r])), o = q(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,
@@ -37921,42 +37946,42 @@ function SR(e, t, n) {
...e.style
}), [o, a];
}
-function CR(e = !0) {
+function TR(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 XS(() => {
+ return $S(() => {
r.current || n(!1);
}, []), [i, t];
}
-function wR(e) {
+function ER(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function Mfe(e, t, n) {
- let { render: r, ...i } = t, a = (0, F.useRef)(null), o = (0, F.useMemo)(() => ow(n, a), [n, a]);
- XS(() => {}, [e, r]);
+function Pfe(e, t, n) {
+ let { render: r, ...i } = t, a = (0, F.useRef)(null), o = (0, F.useMemo)(() => lw(n, a), [n, a]);
+ $S(() => {}, [e, r]);
let s = {
...i,
ref: o
};
return r ? r(s, void 0) : /*#__PURE__*/ F.createElement(e, s);
}
-var TR = {}, ER = new Proxy({}, { get(e, t) {
+var DR = {}, OR = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = TR[t];
- return n || (n = /*#__PURE__*/ (0, F.forwardRef)(Mfe.bind(null, t)), TR[t] = n), n;
-} }), DR = /*#__PURE__*/ (0, F.createContext)(null), OR = /*#__PURE__*/ (0, F.createContext)(null), kR = /*#__PURE__*/ (0, F.createContext)(null), AR = {
+ let n = DR[t];
+ return n || (n = /*#__PURE__*/ (0, F.forwardRef)(Pfe.bind(null, t)), DR[t] = n), n;
+} }), kR = /*#__PURE__*/ (0, F.createContext)(null), AR = /*#__PURE__*/ (0, F.createContext)(null), jR = /*#__PURE__*/ (0, F.createContext)(null), MR = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return jR(e, null, t);
+ return NR(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return jR(e, t, n);
+ return NR(e, t, n);
}
};
-function jR(e, t, n) {
- return AS({
+function NR(e, t, n) {
+ return NS({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
children(t) {
@@ -37966,11 +37991,11 @@ function jR(e, t, n) {
type: "item",
key: t.key,
dropPosition: "before"
- }), r, Nfe(e, t, n));
+ }), r, Ffe(e, t, n));
}
});
}
-function Nfe(e, t, n) {
+function Ffe(e, t, n) {
let r = t.key, i = e.getKeyAfter(r), a = i == null ? null : e.getItem(i);
for (; a != null && a.type !== "item";) i = e.getKeyAfter(a.key), a = i == null ? null : e.getItem(i);
let o = t.nextKey == null ? null : e.getItem(t.nextKey);
@@ -37989,24 +38014,24 @@ function Nfe(e, t, n) {
}
return s;
}
-var MR = /*#__PURE__*/ (0, F.createContext)(AR);
-function NR(e) {
+var PR = /*#__PURE__*/ (0, F.createContext)(MR);
+function FR(e) {
return (0, F.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
}
// node_modules/react-aria-components/dist/private/Label.mjs
-var PR = /*#__PURE__*/ (0, F.createContext)({}), FR = /*#__PURE__*/ bw(function(e, t) {
- [e, t] = SR(e, t, PR);
- let { elementType: n = "label", ...r } = e, i = ER[n];
+var IR = /*#__PURE__*/ (0, F.createContext)({}), LR = /*#__PURE__*/ Cw(function(e, t) {
+ [e, t] = wR(e, t, IR);
+ let { elementType: n = "label", ...r } = e, i = OR[n];
return /*#__PURE__*/ F.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
});
-}), Pfe = /*#__PURE__*/ (0, F.createContext)(null), IR = /*#__PURE__*/ (0, F.createContext)({}), LR = /*#__PURE__*/ bw(function(e, t) {
- [e, t] = SR(e, t, IR);
- let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Eoe(e, t);
- i = Ife(i, r);
- let { focusProps: o, isFocused: s, isFocusVisible: c } = JD(e), { hoverProps: l, isHovered: u } = QD({
+}), Ife = /*#__PURE__*/ (0, F.createContext)(null), RR = /*#__PURE__*/ (0, F.createContext)({}), zR = /*#__PURE__*/ Cw(function(e, t) {
+ [e, t] = wR(e, t, RR);
+ let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Doe(e, t);
+ i = Rfe(i, r);
+ let { focusProps: o, isFocused: s, isFocusVisible: c } = ZD(e), { hoverProps: l, isHovered: u } = tO({
...e,
isDisabled: e.isDisabled || r
}), d = {
@@ -38016,25 +38041,25 @@ var PR = /*#__PURE__*/ (0, F.createContext)({}), FR = /*#__PURE__*/ bw(function(
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = bR({
+ }, f = SR({
...e,
values: d,
defaultClassName: "react-aria-Button"
- }), p = iw(i.id), m = iw(), h = i["aria-labelledby"];
+ }), p = sw(i.id), m = sw(), 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) && YT(e, "assertive"), g.current = r;
+ (!g.current && s && r || g.current && s && !r) && QT(e, "assertive"), g.current = r;
}, [
r,
s,
h,
p
]);
- let _ = cT(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ F.createElement(ER.button, {
- ...K(_, f, i, o, l),
+ let _ = dT(e, { global: !0 });
+ return delete _.onClick, /*#__PURE__*/ F.createElement(OR.button, {
+ ...q(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
ref: t,
@@ -38047,61 +38072,61 @@ var PR = /*#__PURE__*/ (0, F.createContext)({}), FR = /*#__PURE__*/ bw(function(
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ F.createElement(Pfe.Provider, { value: { id: m } }, f.children));
-}), Ffe = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function Ife(e, t) {
+ }, /*#__PURE__*/ F.createElement(Ife.Provider, { value: { id: m } }, f.children));
+}), Lfe = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function Rfe(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !Ffe.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !Lfe.test(t) && (e[t] = void 0);
e.href = void 0, e.target = void 0;
}
return e;
}
// node_modules/react-aria-components/dist/private/Heading.mjs
-var RR = /*#__PURE__*/ (0, F.createContext)({}), zR = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = SR(e, t, RR);
- let { children: n, level: r = 3, className: i, ...a } = e, o = ER[`h${r}`];
+var BR = /*#__PURE__*/ (0, F.createContext)({}), VR = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = wR(e, t, BR);
+ let { children: n, level: r = 3, className: i, ...a } = e, o = OR[`h${r}`];
return /*#__PURE__*/ F.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), BR = /*#__PURE__*/ (0, F.createContext)({}), Lfe = /*#__PURE__*/ bw(function(e, t) {
- [e, t] = SR(e, t, BR);
- let { elementType: n = "span", ...r } = e, i = ER[n];
+}), HR = /*#__PURE__*/ (0, F.createContext)({}), zfe = /*#__PURE__*/ Cw(function(e, t) {
+ [e, t] = wR(e, t, HR);
+ let { elementType: n = "span", ...r } = e, i = OR[n];
return /*#__PURE__*/ F.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
});
-}), VR = /*#__PURE__*/ (0, F.createContext)(null), HR = /*#__PURE__*/ (0, F.createContext)(null), UR = /*#__PURE__*/ (0, F.createContext)(null), WR = /*#__PURE__*/ (0, F.createContext)(null), Rfe = /*#__PURE__*/ (0, F.createContext)(null), GR = /*#__PURE__*/ (0, F.createContext)(null);
-function zfe(e, t) {
- let { validationBehavior: n } = xR(HR) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useContext)(Rfe), a = hw((0, F.useMemo)(() => ow(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...wR(e),
+}), UR = /*#__PURE__*/ (0, F.createContext)(null), WR = /*#__PURE__*/ (0, F.createContext)(null), GR = /*#__PURE__*/ (0, F.createContext)(null), KR = /*#__PURE__*/ (0, F.createContext)(null), Bfe = /*#__PURE__*/ (0, F.createContext)(null), qR = /*#__PURE__*/ (0, F.createContext)(null);
+function Vfe(e, t) {
+ let { validationBehavior: n } = CR(WR) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useContext)(Bfe), a = vw((0, F.useMemo)(() => lw(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...ER(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? Yoe(o, i, a) : gE(o, xE(e), a), a];
+ return [i ? Xoe(o, i, a) : yE(o, wE(e), a), a];
}
-var Bfe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+var Hfe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = SR(r, t, UR);
- let [i, a] = zfe(e, n);
- return /*#__PURE__*/ F.createElement(GR.Provider, { value: {
+ [e, t] = wR(r, t, GR);
+ let [i, a] = Vfe(e, n);
+ return /*#__PURE__*/ F.createElement(qR.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ F.createElement(Vfe, {
+ } }, /*#__PURE__*/ F.createElement(Ufe, {
...e,
ref: t
}));
-}), Vfe = /*#__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)(GR), { isFocused: p, isFocusVisible: m, focusProps: h } = JD(), g = a || o, { hoverProps: _, isHovered: v } = QD({
+}), Ufe = /*#__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)(qR), { isFocused: p, isFocusVisible: m, focusProps: h } = ZD(), g = a || o, { hoverProps: _, isHovered: v } = tO({
...e,
isDisabled: g
- }), y = bR({
+ }), y = SR({
...e,
defaultClassName: u,
values: {
@@ -38116,9 +38141,9 @@ var Bfe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
isInvalid: c,
isRequired: f || !1
}
- }), b = cT(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(ER.label, {
- ...K(b, n, _, y),
+ }), b = dT(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(OR.label, {
+ ...q(b, n, _, y),
ref: t,
slot: e.slot || void 0,
"data-selected": i || void 0,
@@ -38131,20 +38156,20 @@ var Bfe = /*#__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(AE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
- ...K(r, h),
+ }, /*#__PURE__*/ F.createElement(NE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
+ ...q(r, h),
ref: l
})), y.children);
-}), KR = /*#__PURE__*/ (0, F.createContext)({}), qR = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = SR(e, t, KR);
+}), JR = /*#__PURE__*/ (0, F.createContext)({}), YR = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = wR(e, t, JR);
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 } = QD({
+ let { hoverProps: l, isHovered: u } = tO({
onHoverStart: a,
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = JD({ within: !0 }), m = bR({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = ZD({ within: !0 }), m = SR({
...e,
values: {
isHovered: u,
@@ -38155,8 +38180,8 @@ var Bfe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ F.createElement(ER.div, {
- ...K(c, p, l),
+ return /*#__PURE__*/ F.createElement(OR.div, {
+ ...q(c, p, l),
...m,
ref: t,
role: e.role ?? "group",
@@ -38168,18 +38193,18 @@ var Bfe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), JR = /*#__PURE__*/ (0, F.createContext)({}), Hfe = (e) => {
+}), XR = /*#__PURE__*/ (0, F.createContext)({}), Wfe = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, Ufe = /*#__PURE__*/ bw(function(e, t) {
- [e, t] = SR(e, t, JR);
- let { hoverProps: n, isHovered: r } = QD({
+}, Gfe = /*#__PURE__*/ Cw(function(e, t) {
+ [e, t] = wR(e, t, XR);
+ let { hoverProps: n, isHovered: r } = tO({
...e,
isDisabled: e.disabled
- }), { isFocused: i, isFocusVisible: a, focusProps: o } = JD({
+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = ZD({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = bR({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = SR({
...e,
values: {
isHovered: r,
@@ -38190,8 +38215,8 @@ var Bfe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ F.createElement(ER.input, {
- ...K(Hfe(e), o, n),
+ return /*#__PURE__*/ F.createElement(OR.input, {
+ ...q(Wfe(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -38200,24 +38225,24 @@ var Bfe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), Wfe = 0, Gfe = 100, Kfe = 1;
-function qfe(e) {
- let { isDisabled: t = !1, minValue: n = Wfe, maxValue: r = Gfe, numberFormatter: i, step: a = Kfe, orientation: o = "horizontal" } = e, s = (0, F.useMemo)(() => {
+}), Kfe = 0, qfe = 100, Jfe = 1;
+function Yfe(e) {
+ let { isDisabled: t = !1, minValue: n = Kfe, maxValue: r = qfe, numberFormatter: i, step: a = Jfe, orientation: o = "horizontal" } = e, s = (0, F.useMemo)(() => {
let e = (r - n) / 10;
- return e = wE(e, 0, e + a, a), Math.max(e, a);
+ return e = DE(e, 0, e + a, a), Math.max(e, a);
}, [
a,
r,
n
- ]), c = (0, F.useCallback)((e) => e?.map((t, i) => wE(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) => DE(t, i === 0 ? n : e[i - 1], i === e.length - 1 ? r : e[i + 1], a)), [
n,
r,
a
- ]), l = (0, F.useMemo)(() => c(XR(e.value)), [e.value, c]), u = (0, F.useMemo)(() => c(XR(e.defaultValue) ?? [n]), [
+ ]), l = (0, F.useMemo)(() => c(QR(e.value)), [e.value, c]), u = (0, F.useMemo)(() => c(QR(e.defaultValue) ?? [n]), [
e.defaultValue,
n,
c
- ]), d = ZR(e.value, e.defaultValue, e.onChange), f = ZR(e.value, e.defaultValue, e.onChangeEnd), [p, m] = bE(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 = $R(e.value, e.defaultValue, e.onChange), f = $R(e.value, e.defaultValue, e.onChangeEnd), [p, m] = CE(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);
@@ -38240,15 +38265,15 @@ function qfe(e) {
function A(e, n) {
if (t || !O(e)) return;
let r = E(e), i = D(e);
- n = wE(n, r, i, a);
- let o = YR(x.current, e, n);
+ n = DE(n, r, i, a);
+ let o = ZR(x.current, e, n);
C(o);
}
function j(e, n) {
if (t || !O(e)) return;
n && (x.current = p);
let r = S.current[e];
- S.current = YR(S.current, e, n), w(S.current), f && r && !S.current.some(Boolean) && f(x.current);
+ S.current = ZR(S.current, e, n), w(S.current), f && r && !S.current.some(Boolean) && f(x.current);
}
let M = (0, F.useRef)(null);
function ee(e = p) {
@@ -38269,15 +38294,15 @@ function qfe(e) {
return Math.round((e - n) / a) * a + n;
}
function P(e) {
- return SE(te(e * (r - n) + n), n, r);
+ return TE(te(e * (r - n) + n), n, r);
}
function ne(e, t = 1) {
let i = Math.max(t, a);
- A(e, wE(p[e] + i, n, r, a));
+ A(e, DE(p[e] + i, n, r, a));
}
function re(e, t = 1) {
let i = Math.max(t, a);
- A(e, wE(p[e] - i, n, r, a));
+ A(e, DE(p[e] - i, n, r, a));
}
return {
values: p,
@@ -38306,31 +38331,31 @@ function qfe(e) {
isDisabled: t
};
}
-function YR(e, t, n) {
+function ZR(e, t, n) {
return e[t] === n ? e : [
...e.slice(0, t),
n,
...e.slice(t + 1)
];
}
-function XR(e) {
+function QR(e) {
if (e != null) return Array.isArray(e) ? e : [e];
}
-function ZR(e, t, n) {
+function $R(e, t, n) {
return (r) => {
typeof e == "number" || typeof t == "number" ? n?.(r[0]) : n?.(r);
};
}
// node_modules/react-aria-components/dist/private/Slider.mjs
-var Jfe = /*#__PURE__*/ (0, F.createContext)(null), QR = /*#__PURE__*/ (0, F.createContext)(null), $R = /*#__PURE__*/ (0, F.createContext)(null), Yfe = /*#__PURE__*/ (0, F.createContext)(null), Xfe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = SR(e, t, Jfe);
- let n = (0, F.useRef)(null), r = ese(e.formatOptions), i = qfe({
+var Xfe = /*#__PURE__*/ (0, F.createContext)(null), ez = /*#__PURE__*/ (0, F.createContext)(null), tz = /*#__PURE__*/ (0, F.createContext)(null), Zfe = /*#__PURE__*/ (0, F.createContext)(null), Qfe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = wR(e, t, Xfe);
+ let n = (0, F.useRef)(null), r = tse(e.formatOptions), i = Yfe({
...e,
numberFormatter: r
- }), [a, o] = CR(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = tse({
+ }), [a, o] = TR(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = nse({
...e,
label: o
- }, i, n), d = bR({
+ }, i, n), d = SR({
...e,
values: {
orientation: i.orientation,
@@ -38338,32 +38363,32 @@ var Jfe = /*#__PURE__*/ (0, F.createContext)(null), QR = /*#__PURE__*/ (0, F.cre
state: i
},
defaultClassName: "react-aria-Slider"
- }), f = cT(e, { global: !0 });
- return delete f.id, /*#__PURE__*/ F.createElement(yR, { values: [
- [QR, i],
- [$R, {
+ }), f = dT(e, { global: !0 });
+ return delete f.id, /*#__PURE__*/ F.createElement(xR, { values: [
+ [ez, i],
+ [tz, {
...c,
ref: n
}],
- [Yfe, u],
- [PR, {
+ [Zfe, u],
+ [IR, {
...l,
ref: a
}]
- ] }, /*#__PURE__*/ F.createElement(ER.div, {
- ...K(f, d, s),
+ ] }, /*#__PURE__*/ F.createElement(OR.div, {
+ ...q(f, d, s),
ref: t,
slot: e.slot || void 0,
"data-orientation": i.orientation,
"data-disabled": i.isDisabled || void 0
}));
-}), Zfe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = SR(e, t, $R);
- let n = (0, F.useContext)(QR), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = QD({
+}), $fe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = wR(e, t, tz);
+ let n = (0, F.useContext)(ez), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = tO({
onHoverStart: r,
onHoverEnd: i,
onHoverChange: a
- }), l = bR({
+ }), l = SR({
...e,
defaultClassName: "react-aria-SliderTrack",
values: {
@@ -38373,22 +38398,22 @@ var Jfe = /*#__PURE__*/ (0, F.createContext)(null), QR = /*#__PURE__*/ (0, F.cre
state: n
}
});
- return /*#__PURE__*/ F.createElement(ER.div, {
- ...K(o, s),
+ return /*#__PURE__*/ F.createElement(OR.div, {
+ ...q(o, s),
...l,
ref: t,
"data-hovered": c || void 0,
"data-orientation": n.orientation || void 0,
"data-disabled": n.isDisabled || void 0
});
-}), Qfe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { inputRef: n = null } = e, r = (0, F.useContext)(QR), { ref: i } = xR($R), { index: a = 0 } = e, o = (0, F.useRef)(null), s = n || o, [c, l] = CR(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = nse({
+}), epe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { inputRef: n = null } = e, r = (0, F.useContext)(ez), { ref: i } = CR(tz), { index: a = 0 } = e, o = (0, F.useRef)(null), s = n || o, [c, l] = TR(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = rse({
...e,
index: a,
trackRef: i,
inputRef: s,
label: l
- }, r), { focusProps: g, isFocusVisible: _ } = JD(), { hoverProps: v, isHovered: y } = QD(e), b = bR({
+ }, r), { focusProps: g, isFocusVisible: _ } = ZD(), { hoverProps: v, isHovered: y } = tO(e), b = SR({
...e,
defaultClassName: "react-aria-SliderThumb",
values: {
@@ -38399,9 +38424,9 @@ var Jfe = /*#__PURE__*/ (0, F.createContext)(null), QR = /*#__PURE__*/ (0, F.cre
isFocusVisible: _,
isDisabled: h
}
- }), x = cT(e, { global: !0 });
- return delete x.id, /*#__PURE__*/ F.createElement(ER.div, {
- ...K(x, u, v),
+ }), x = dT(e, { global: !0 });
+ return delete x.id, /*#__PURE__*/ F.createElement(OR.div, {
+ ...q(x, u, v),
...b,
ref: t,
style: {
@@ -38413,330 +38438,330 @@ var Jfe = /*#__PURE__*/ (0, F.createContext)(null), QR = /*#__PURE__*/ (0, F.cre
"data-focused": m || void 0,
"data-focus-visible": _ || void 0,
"data-disabled": h || void 0
- }, /*#__PURE__*/ F.createElement(AE, null, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(NE, null, /*#__PURE__*/ F.createElement("input", {
ref: s,
- ...K(d, g)
- })), /*#__PURE__*/ F.createElement(yR, { values: [[PR, {
+ ...q(d, g)
+ })), /*#__PURE__*/ F.createElement(xR, { values: [[IR, {
...f,
ref: c
}]] }, b.children));
-}), ez = {};
-ez = {
+}), nz = {};
+nz = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
tableResizer: "أداة تغيير الحجم"
};
// node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var tz = {};
-tz = {
+var rz = {};
+rz = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
tableResizer: "Преоразмерител"
};
// node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var nz = {};
-nz = {
+var iz = {};
+iz = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
tableResizer: "Změna velikosti"
};
// node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var rz = {};
-rz = {
+var az = {};
+az = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
tableResizer: "Størrelsesændring"
};
// node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var iz = {};
-iz = {
+var oz = {};
+oz = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
tableResizer: "Größenanpassung"
};
// node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var az = {};
-az = {
+var sz = {};
+sz = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
tableResizer: "Αλλαγή μεγέθους"
};
// node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var oz = {};
-oz = {
+var cz = {};
+cz = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
colorSwatchPicker: "Color swatches"
};
// node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var sz = {};
-sz = {
+var lz = {};
+lz = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
tableResizer: "Cambiador de tamaño"
};
// node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var cz = {};
-cz = {
+var uz = {};
+uz = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
tableResizer: "Suuruse muutja"
};
// node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var lz = {};
-lz = {
+var dz = {};
+dz = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
tableResizer: "Koon muuttaja"
};
// node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var uz = {};
-uz = {
+var fz = {};
+fz = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
tableResizer: "Redimensionneur"
};
// node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var dz = {};
-dz = {
+var pz = {};
+pz = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
tableResizer: "שינוי גודל"
};
// node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var fz = {};
-fz = {
+var mz = {};
+mz = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
tableResizer: "Promjena veličine"
};
// node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var pz = {};
-pz = {
+var hz = {};
+hz = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
tableResizer: "Átméretező"
};
// node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var mz = {};
-mz = {
+var gz = {};
+gz = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
tableResizer: "Ridimensionamento"
};
// node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var hz = {};
-hz = {
+var _z = {};
+_z = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
tableResizer: "サイズ変更ツール"
};
// node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var gz = {};
-gz = {
+var vz = {};
+vz = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
tableResizer: "크기 조정기"
};
// node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var _z = {};
-_z = {
+var yz = {};
+yz = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
tableResizer: "Dydžio keitiklis"
};
// node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var vz = {};
-vz = {
+var bz = {};
+bz = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
tableResizer: "Izmēra mainītājs"
};
// node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var yz = {};
-yz = {
+var xz = {};
+xz = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
tableResizer: "Størrelsesendrer"
};
// node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var bz = {};
-bz = {
+var Sz = {};
+Sz = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
tableResizer: "Resizer"
};
// node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var xz = {};
-xz = {
+var Cz = {};
+Cz = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
tableResizer: "Zmiana rozmiaru"
};
// node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var Sz = {};
-Sz = {
+var wz = {};
+wz = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
tableResizer: "Redimensionador"
};
// node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var Cz = {};
-Cz = {
+var Tz = {};
+Tz = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
tableResizer: "Redimensionador"
};
// node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var wz = {};
-wz = {
+var Ez = {};
+Ez = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
tableResizer: "Instrument de redimensionare"
};
// node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var Tz = {};
-Tz = {
+var Dz = {};
+Dz = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
tableResizer: "Средство изменения размера"
};
// node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var Ez = {};
-Ez = {
+var Oz = {};
+Oz = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
tableResizer: "Nástroj na zmenu veľkosti"
};
// node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var Dz = {};
-Dz = {
+var kz = {};
+kz = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
tableResizer: "Spreminjanje velikosti"
};
// node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var Oz = {};
-Oz = {
+var Az = {};
+Az = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
tableResizer: "Promena veličine"
};
// node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var kz = {};
-kz = {
+var jz = {};
+jz = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
tableResizer: "Storleksändrare"
};
// node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var Az = {};
-Az = {
+var Mz = {};
+Mz = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
tableResizer: "Yeniden boyutlandırıcı"
};
// node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var jz = {};
-jz = {
+var Nz = {};
+Nz = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
tableResizer: "Засіб змінення розміру"
};
// node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var Mz = {};
-Mz = {
+var Pz = {};
+Pz = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
tableResizer: "尺寸调整器"
};
// node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var Nz = {};
-Nz = {
+var Fz = {};
+Fz = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
tableResizer: "大小調整器"
};
// node_modules/react-aria-components/dist/private/intlStrings.mjs
-var Pz = {};
-Pz = {
- "ar-AE": ez,
- "bg-BG": tz,
- "cs-CZ": nz,
- "da-DK": rz,
- "de-DE": iz,
- "el-GR": az,
- "en-US": oz,
- "es-ES": sz,
- "et-EE": cz,
- "fi-FI": lz,
- "fr-FR": uz,
- "he-IL": dz,
- "hr-HR": fz,
- "hu-HU": pz,
- "it-IT": mz,
- "ja-JP": hz,
- "ko-KR": gz,
- "lt-LT": _z,
- "lv-LV": vz,
- "nb-NO": yz,
- "nl-NL": bz,
- "pl-PL": xz,
- "pt-BR": Sz,
- "pt-PT": Cz,
- "ro-RO": wz,
- "ru-RU": Tz,
- "sk-SK": Ez,
- "sl-SI": Dz,
- "sr-SP": Oz,
- "sv-SE": kz,
- "tr-TR": Az,
- "uk-UA": jz,
- "zh-CN": Mz,
- "zh-TW": Nz
+var Iz = {};
+Iz = {
+ "ar-AE": nz,
+ "bg-BG": rz,
+ "cs-CZ": iz,
+ "da-DK": az,
+ "de-DE": oz,
+ "el-GR": sz,
+ "en-US": cz,
+ "es-ES": lz,
+ "et-EE": uz,
+ "fi-FI": dz,
+ "fr-FR": fz,
+ "he-IL": pz,
+ "hr-HR": mz,
+ "hu-HU": hz,
+ "it-IT": gz,
+ "ja-JP": _z,
+ "ko-KR": vz,
+ "lt-LT": yz,
+ "lv-LV": bz,
+ "nb-NO": xz,
+ "nl-NL": Sz,
+ "pl-PL": Cz,
+ "pt-BR": wz,
+ "pt-PT": Tz,
+ "ro-RO": Ez,
+ "ru-RU": Dz,
+ "sk-SK": Oz,
+ "sl-SI": kz,
+ "sr-SP": Az,
+ "sv-SE": jz,
+ "tr-TR": Mz,
+ "uk-UA": Nz,
+ "zh-CN": Pz,
+ "zh-TW": Fz
};
// node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var Fz = /*#__PURE__*/ (0, F.createContext)({}), Iz = /*#__PURE__*/ (0, F.createContext)(null), $fe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { render: n } = (0, F.useContext)(Iz);
+var Lz = /*#__PURE__*/ (0, F.createContext)({}), Rz = /*#__PURE__*/ (0, F.createContext)(null), tpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { render: n } = (0, F.useContext)(Rz);
return /*#__PURE__*/ F.createElement(F.Fragment, null, n(e, t));
});
-function Lz(e, t) {
+function zz(e, t) {
let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, F.useCallback)((e) => {
- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ F.createElement($fe, { target: e });
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ F.createElement(tpe, { target: e });
}, [
t?.target,
r,
@@ -38744,7 +38769,7 @@ function Lz(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function Rz(e, t, n) {
+function Bz(e, t, n) {
let r = e.focusedKey, i = null;
if (t?.isVirtualDragging?.() && n?.target?.type === "item" && (i = n.target.key, n.target.dropPosition === "after")) {
let e = n.collection.getKeyAfter(i), t = null;
@@ -38765,13 +38790,13 @@ function Rz(e, t, n) {
return (0, F.useMemo)(() => new Set([r, i].filter((e) => e != null)), [r, i]);
}
// node_modules/react-aria-components/dist/private/Header.mjs
-var zz = /*#__PURE__*/ (0, F.createContext)({}), epe = /*#__PURE__*/ (0, F.createContext)(null);
-function Bz(e) {
+var Vz = /*#__PURE__*/ (0, F.createContext)({}), npe = /*#__PURE__*/ (0, F.createContext)(null);
+function Hz(e) {
let t = (0, F.useRef)({});
- return /*#__PURE__*/ F.createElement(epe.Provider, { value: t }, e.children);
+ return /*#__PURE__*/ F.createElement(npe.Provider, { value: t }, e.children);
}
// node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var Vz = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), Hz = /*#__PURE__*/ (0, F.createContext)({}), tpe = /*#__PURE__*/ Ow(class extends SS {
+var Uz = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), Wz = /*#__PURE__*/ (0, F.createContext)({}), rpe = /*#__PURE__*/ jw(class extends TS {
static {
this.type = "separator";
}
@@ -38784,17 +38809,17 @@ var Vz = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), Hz = /*#__PURE_
return null;
}
}, function(e, t) {
- [e, t] = SR(e, t, Hz);
+ [e, t] = wR(e, t, Wz);
let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";
c === "hr" && r === "vertical" && (c = "div");
- let l = ER[c], { separatorProps: u } = oce({
+ let l = OR[c], { separatorProps: u } = ace({
...s,
elementType: n,
orientation: r
- }), d = cT(e, { global: !0 });
+ }), d = dT(e, { global: !0 });
return /*#__PURE__*/ F.createElement(l, {
render: e.render,
- ...K(d, u),
+ ...q(d, u),
style: i,
className: a ?? "react-aria-Separator",
ref: t,
@@ -38802,12 +38827,12 @@ var Vz = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), Hz = /*#__PURE_
});
});
// node_modules/react-aria/dist/private/utils/inertValue.mjs
-function Uz(e) {
+function Gz(e) {
let t = F.version.split(".");
return parseInt(t[0], 10) >= 19 ? e : e ? "true" : void 0;
}
// node_modules/react-stately/dist/private/list/ListCollection.mjs
-var Wz = class {
+var Kz = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -38851,19 +38876,19 @@ var Wz = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, Gz = class e extends Set {
+}, qz = class e extends Set {
constructor(t, n, r) {
super(t), t instanceof e ? (this.anchorKey = n ?? t.anchorKey, this.currentKey = r ?? t.currentKey) : (this.anchorKey = n ?? null, this.currentKey = r ?? null);
}
};
// node_modules/react-stately/dist/private/selection/useMultipleSelectionState.mjs
-function npe(e, t) {
+function ipe(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function Kz(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] = bE((0, F.useMemo)(() => qz(e.selectedKeys), [e.selectedKeys]), (0, F.useMemo)(() => qz(e.defaultSelectedKeys, new Gz()), [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);
+function Jz(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] = CE((0, F.useMemo)(() => Yz(e.selectedKeys), [e.selectedKeys]), (0, F.useMemo)(() => Yz(e.defaultSelectedKeys, new qz()), [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)(() => {
@@ -38890,17 +38915,17 @@ function Kz(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !npe(e, d)) && f(e);
+ (r || !ipe(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
-function qz(e, t) {
- return e ? e === "all" ? "all" : new Gz(e) : t;
+function Yz(e, t) {
+ return e ? e === "all" ? "all" : new qz(e) : t;
}
// node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var Jz = class e {
+var Xz = class e {
constructor(e, t, n) {
this.collection = e, this.state = t, this.allowsCellSelection = n?.allowsCellSelection ?? !1, this._isSelectAll = null, this.layoutDelegate = n?.layoutDelegate || null, this.fullCollection = n?.fullCollection || null;
}
@@ -38956,7 +38981,7 @@ var Jz = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && ID(this.collection, n, e) < 0) && (e = n);
+ (!e || n && zD(this.collection, n, e) < 0) && (e = n);
}
return e?.key ?? null;
}
@@ -38964,7 +38989,7 @@ var Jz = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && ID(this.collection, n, e) > 0) && (e = n);
+ (!e || n && zD(this.collection, n, e) > 0) && (e = n);
}
return e?.key ?? null;
}
@@ -38983,10 +39008,10 @@ var Jz = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new Gz([t], t, t);
+ if (this.state.selectedKeys === "all") n = new qz([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new Gz(e, r, t);
+ n = new qz(e, r, t);
for (let i of this.getKeyRange(r, e.currentKey ?? t)) n.delete(i);
for (let e of this.getKeyRange(t, r)) this.canSelectItem(e) && n.add(e);
}
@@ -38994,7 +39019,7 @@ var Jz = class e {
}
getKeyRange(e, t) {
let n = this.collection.getItem(e), r = this.collection.getItem(t);
- return n && r ? ID(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
+ return n && r ? zD(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);
@@ -39020,19 +39045,19 @@ var Jz = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new Gz(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new qz(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
n.has(t) ? n.delete(t) : this.canSelectItem(t) && (n.add(t), n.anchorKey = t, n.currentKey = t), !(this.disallowEmptySelection && n.size === 0) && this.state.setSelectedKeys(n);
}
replaceSelection(e) {
if (this.selectionMode === "none") return;
let t = this.getKey(e);
if (t == null) return;
- let n = this.canSelectItem(t) ? new Gz([t], t, t) : new Gz();
+ let n = this.canSelectItem(t) ? new qz([t], t, t) : new qz();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new Gz();
+ let t = new qz();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -39044,7 +39069,7 @@ var Jz = 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(ND(MD(i, e))?.key ?? null);
+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(ID(FD(i, e))?.key ?? null);
}
r = e.getKeyAfter(r);
}
@@ -39055,7 +39080,7 @@ var Jz = class e {
!this.isSelectAll && this.selectionMode === "multiple" && this.state.setSelectedKeys("all");
}
clearSelection() {
- !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new Gz());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new qz());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -39096,9 +39121,9 @@ var Jz = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, rpe = class {
+}, ape = class {
build(e, t) {
- return this.context = t, Yz(() => this.iterateCollection(e));
+ return this.context = t, Zz(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
@@ -39180,10 +39205,10 @@ var Jz = class e {
...a,
key: l,
index: s,
- wrapper: ipe(e.wrapper, a.wrapper)
+ wrapper: ope(e.wrapper, a.wrapper)
}, this.getChildState(t, a), n ? `${n}${i.key}` : i.key, r)];
for (let t of u) {
- if (t.value = a.value ?? e.value ?? null, t.value && this.cache.set(t.value, t), e.type && t.type !== e.type) throw Error(`Unsupported type <${Xz(t.type)}> in <${Xz(r?.type ?? "unknown parent type")}>. Only <${Xz(e.type)}> is supported.`);
+ if (t.value = a.value ?? e.value ?? null, t.value && this.cache.set(t.value, t), e.type && t.type !== e.type) throw Error(`Unsupported type <${Qz(t.type)}> in <${Qz(r?.type ?? "unknown parent type")}>. Only <${Qz(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -39205,7 +39230,7 @@ var Jz = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: Yz(function* () {
+ childNodes: Zz(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -39224,7 +39249,7 @@ var Jz = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function Yz(e) {
+function Zz(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -39232,17 +39257,17 @@ function Yz(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function ipe(e, t) {
+function ope(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function Xz(e) {
+function Qz(e) {
return e[0].toUpperCase() + e.slice(1);
}
// node_modules/react-stately/dist/private/collections/useCollection.mjs
-function Zz(e, t, n) {
- let r = (0, F.useMemo)(() => new rpe(), []), { children: i, items: a, collection: o } = e;
+function $z(e, t, n) {
+ let r = (0, F.useMemo)(() => new ape(), []), { children: i, items: a, collection: o } = e;
return (0, F.useMemo)(() => o || t(r.build({
children: i,
items: a
@@ -39256,27 +39281,27 @@ function Zz(e, t, n) {
]);
}
// node_modules/react-stately/dist/private/list/useListState.mjs
-function Qz(e) {
- let { filter: t, layoutDelegate: n } = e, r = Kz(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = Zz(e, (0, F.useCallback)((e) => t ? new Wz(t(e)) : new Wz(e), [t]), (0, F.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, F.useMemo)(() => new Jz(a, r, { layoutDelegate: n }), [
+function eB(e) {
+ let { filter: t, layoutDelegate: n } = e, r = Jz(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = $z(e, (0, F.useCallback)((e) => t ? new Kz(t(e)) : new Kz(e), [t]), (0, F.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, F.useMemo)(() => new Xz(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return $z(a, o), {
+ return tB(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
-function ape(e, t) {
+function spe(e, t) {
let n = (0, F.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return $z(n, r), {
+ return tB(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function $z(e, t) {
+function tB(e, t) {
let n = (0, F.useRef)(null);
(0, F.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
@@ -39303,15 +39328,15 @@ function $z(e, t) {
}, [e, t]);
}
// node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function eB(e, t) {
- let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, F.useRef)(null), s = Kw((e) => {
+function nB(e, t) {
+ let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, F.useRef)(null), s = Yw((e) => {
for (let t of e) t.isIntersecting && r && r();
});
- XS(() => {
+ $S(() => {
if (t.current) {
let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;
o.current = new IntersectionObserver(s, {
- root: QT(t?.current),
+ root: tE(t?.current),
rootMargin: n
}), o.current.observe(t.current);
}
@@ -39326,42 +39351,42 @@ function eB(e, t) {
]);
}
// node_modules/react-aria-components/dist/private/ListBox.mjs
-var tB = /*#__PURE__*/ (0, F.createContext)(null), nB = /*#__PURE__*/ (0, F.createContext)(null), ope = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = SR(e, t, tB);
- let n = (0, F.useContext)(nB);
- return n ? /*#__PURE__*/ F.createElement(rB, {
+var rB = /*#__PURE__*/ (0, F.createContext)(null), iB = /*#__PURE__*/ (0, F.createContext)(null), cpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = wR(e, t, rB);
+ let n = (0, F.useContext)(iB);
+ return n ? /*#__PURE__*/ F.createElement(aB, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ F.createElement(Tw, { content: /*#__PURE__*/ F.createElement(Mw, e) }, (n) => /*#__PURE__*/ F.createElement(spe, {
+ }) : /*#__PURE__*/ F.createElement(Ow, { content: /*#__PURE__*/ F.createElement(Fw, e) }, (n) => /*#__PURE__*/ F.createElement(lpe, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function spe({ props: e, listBoxRef: t, collection: n }) {
+function lpe({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, F.useContext)(MR), i = Qz({
+ let { layoutDelegate: r } = (0, F.useContext)(PR), i = eB({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ F.createElement(rB, {
+ return /*#__PURE__*/ F.createElement(aB, {
state: i,
props: e,
listBoxRef: t
});
}
-function rB({ state: e, props: t, listBoxRef: n }) {
- [t, n] = SR(t, n, DR);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = ape(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = eT(), { disabledBehavior: p, disabledKeys: m } = l, h = VD({
+function aB({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = wR(t, n, kR);
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = spe(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = rT(), { disabledBehavior: p, disabledKeys: m } = l, h = WD({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, F.useContext)(MR), b = (0, F.useMemo)(() => t.keyboardDelegate || new UE({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, F.useContext)(PR), b = (0, F.useMemo)(() => t.keyboardDelegate || new KE({
collection: c,
collator: h,
ref: n,
@@ -39382,7 +39407,7 @@ function rB({ state: e, props: t, listBoxRef: n }) {
t.keyboardDelegate,
i,
_
- ]), { listBoxProps: x } = kse({
+ ]), { listBoxProps: x } = Ase({
...t,
shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,
keyboardDelegate: b,
@@ -39414,7 +39439,7 @@ function rB({ state: e, props: t, listBoxRef: n }) {
dropTargetDelegate: e
}, C, n), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: O, isFocused: k, isFocusVisible: A } = JD(), j = s.collection.size === 0, M = {
+ let { focusProps: O, isFocused: k, isFocusVisible: A } = ZD(), j = s.collection.size === 0, M = {
isDropTarget: T,
isEmpty: j,
isFocused: k,
@@ -39422,7 +39447,7 @@ function rB({ state: e, props: t, listBoxRef: n }) {
layout: t.layout || "stack",
orientation: a,
state: s
- }, ee = bR({
+ }, ee = SR({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
@@ -39432,9 +39457,9 @@ function rB({ state: e, props: t, listBoxRef: n }) {
role: "option",
style: { display: "contents" }
}, t.renderEmptyState(M)));
- let te = cT(t, { global: !0 });
- return /*#__PURE__*/ F.createElement(MT, null, /*#__PURE__*/ F.createElement(ER.div, {
- ...K(te, ee, x, O, w?.collectionProps),
+ let te = dT(t, { global: !0 });
+ return /*#__PURE__*/ F.createElement(FT, null, /*#__PURE__*/ F.createElement(OR.div, {
+ ...q(te, ee, x, O, w?.collectionProps),
ref: n,
slot: t.slot || void 0,
onScroll: t.onScroll,
@@ -39444,60 +39469,60 @@ function rB({ state: e, props: t, listBoxRef: n }) {
"data-focus-visible": A || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ F.createElement(yR, { values: [
- [tB, t],
- [nB, s],
- [Fz, {
+ }, /*#__PURE__*/ F.createElement(xR, { values: [
+ [rB, t],
+ [iB, s],
+ [Lz, {
dragAndDropHooks: r,
dragState: S,
dropState: C
}],
- [Hz, { elementType: "div" }],
- [Iz, { render: upe }],
- [kR, {
+ [Wz, { elementType: "div" }],
+ [Rz, { render: fpe }],
+ [jR, {
name: "ListBoxSection",
- render: cpe
+ render: upe
}]
- ] }, /*#__PURE__*/ F.createElement(Bz, null, /*#__PURE__*/ F.createElement(y, {
+ ] }, /*#__PURE__*/ F.createElement(Hz, null, /*#__PURE__*/ F.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: Rz(l, r, C),
- renderDropIndicator: Lz(r, C)
+ persistedKeys: Bz(l, r, C),
+ renderDropIndicator: zz(r, C)
}))), N, E));
}
-function cpe(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, F.useContext)(nB), { dragAndDropHooks: a, dropState: o } = (0, F.useContext)(Fz), { CollectionBranch: s } = (0, F.useContext)(MR), [c, l] = CR(), { headingProps: u, groupProps: d } = Ase({
+function upe(e, t, n, r = "react-aria-ListBoxSection") {
+ let i = (0, F.useContext)(iB), { dragAndDropHooks: a, dropState: o } = (0, F.useContext)(Lz), { CollectionBranch: s } = (0, F.useContext)(PR), [c, l] = TR(), { headingProps: u, groupProps: d } = jse({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = bR({
+ }), f = SR({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
- }), p = cT(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ F.createElement(ER.section, {
- ...K(p, f, d),
+ }), p = dT(e, { global: !0 });
+ return delete p.id, /*#__PURE__*/ F.createElement(OR.section, {
+ ...q(p, f, d),
ref: t
- }, /*#__PURE__*/ F.createElement(zz.Provider, { value: {
+ }, /*#__PURE__*/ F.createElement(Vz.Provider, { value: {
...u,
ref: c
} }, /*#__PURE__*/ F.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: Lz(a, o)
+ renderDropIndicator: zz(a, o)
})));
}
-var lpe = /*#__PURE__*/ Ow(TS, function(e, t, n) {
- let r = hw(t), i = (0, F.useContext)(nB), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(Fz), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = jse({
+var dpe = /*#__PURE__*/ jw(OS, function(e, t, n) {
+ let r = vw(t), i = (0, F.useContext)(iB), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(Lz), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Mse({
key: n.key,
"aria-label": e?.["aria-label"]
- }, i, r), { hoverProps: p, isHovered: m } = QD({
+ }, i, r), { hoverProps: p, isHovered: m } = tO({
isDisabled: !f.allowsSelection && !f.hasAction && !c,
onHoverStart: n.props.onHoverStart,
onHoverChange: n.props.onHoverChange,
onHoverEnd: n.props.onHoverEnd
- }), { keyboardProps: h } = mw(e), { focusProps: g } = uw(e), _ = null;
+ }), { keyboardProps: h } = _w(e), { focusProps: g } = pw(e), _ = null;
o && a && (_ = a.useDraggableItem({
key: n.key,
hasAction: f.hasAction
@@ -39508,7 +39533,7 @@ var lpe = /*#__PURE__*/ Ow(TS, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), b = bR({
+ let y = o && o.isDragging(n.key), b = SR({
...e,
id: void 0,
children: e.children,
@@ -39526,9 +39551,9 @@ var lpe = /*#__PURE__*/ Ow(TS, function(e, t, n) {
(0, F.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let x = e.href ? ER.a : ER.div, S = cT(e, { global: !0 });
+ let x = e.href ? OR.a : OR.div, S = dT(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),
+ ...q(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
"data-allows-dragging": !!o || void 0,
"data-selected": f.isSelected || void 0,
@@ -39540,29 +39565,29 @@ var lpe = /*#__PURE__*/ Ow(TS, function(e, t, n) {
"data-dragging": y || void 0,
"data-drop-target": v?.isDropTarget || void 0,
"data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode
- }, /*#__PURE__*/ F.createElement(yR, { values: [[BR, { slots: {
- [vR]: u,
+ }, /*#__PURE__*/ F.createElement(xR, { values: [[HR, { slots: {
+ [bR]: u,
label: u,
description: d
- } }], [Vz, { isSelected: f.isSelected }]] }, b.children));
+ } }], [Uz, { isSelected: f.isSelected }]] }, b.children));
});
-function upe(e, t) {
- t = hw(t);
- let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(Fz), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ F.createElement(fpe, {
+function fpe(e, t) {
+ t = vw(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(Lz), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ return a ? null : /*#__PURE__*/ F.createElement(mpe, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function dpe(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = bR({
+function ppe(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = SR({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(ER.div, {
+ return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(OR.div, {
...n,
...a,
role: "option",
@@ -39570,10 +39595,10 @@ function dpe(e, t) {
"data-drop-target": r || void 0
}));
}
-var fpe = /*#__PURE__*/ (0, F.forwardRef)(dpe);
-Ow(wS, function(e, t, n) {
- let r = (0, F.useContext)(nB), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
- eB((0, F.useMemo)(() => ({
+var mpe = /*#__PURE__*/ (0, F.forwardRef)(ppe);
+jw(DS, function(e, t, n) {
+ let r = (0, F.useContext)(iB), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
+ nB((0, F.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -39583,7 +39608,7 @@ Ow(wS, function(e, t, n) {
o,
r?.collection
]), c);
- let l = bR({
+ let l = SR({
...s,
id: void 0,
children: n.rendered,
@@ -39596,7 +39621,7 @@ Ow(wS, function(e, t, n) {
width: 0,
height: 0
},
- inert: Uz(!0)
+ inert: Gz(!0)
}, /*#__PURE__*/ F.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -39605,18 +39630,18 @@ Ow(wS, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(ER.div, {
- ...K(cT(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(OR.div, {
+ ...q(dT(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
ref: t
}, l.children)));
});
// node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var ppe = /*#__PURE__*/ (0, F.createContext)({ placement: "bottom" });
+var hpe = /*#__PURE__*/ (0, F.createContext)({ placement: "bottom" });
// node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function iB(e) {
- let [t, n] = bE(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, F.useState)(null);
+function oB(e) {
+ let [t, n] = CE(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, F.useState)(null);
return {
isOpen: t,
setOpen: n,
@@ -39634,15 +39659,15 @@ function iB(e) {
};
}
// node_modules/react-aria/dist/private/utils/animation.mjs
-function aB(e, t = !0, n) {
+function sB(e, t = !0, n) {
let [r, i] = (0, F.useState)(!0), a = r && t;
- return XS(() => {
- if (!t && e.current) return ew(LS(e.current, "opacity", "0"), LS(e.current, "clip", "rect(0 0 0 0)"), LS(e.current, "clip-path", "inset(50%)"), LS(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
- }, [e, t]), XS(() => {
+ return $S(() => {
+ if (!t && e.current) return rw(BS(e.current, "opacity", "0"), BS(e.current, "clip", "rect(0 0 0 0)"), BS(e.current, "clip-path", "inset(50%)"), BS(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
+ }, [e, t]), $S(() => {
if (a && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, a]), sB(e, a, n, (0, F.useCallback)(() => i(!1), [])), a;
+ }, [e, a]), lB(e, a, n, (0, F.useCallback)(() => i(!1), [])), a;
}
-function oB(e, t, n) {
+function cB(e, t, n) {
let [r, i] = (0, F.useState)(t ? "open" : "closed");
switch (r) {
case "open":
@@ -39652,13 +39677,13 @@ function oB(e, t, n) {
case "exiting": t && i("open");
}
let a = r === "exiting";
- return sB(e, a, n, (0, F.useCallback)(() => {
+ return lB(e, a, n, (0, F.useCallback)(() => {
i((e) => e === "exiting" ? "closed" : e);
}, [])), a;
}
-function sB(e, t, n, r) {
- let i = (0, F.useRef)(null), a = Kw(n);
- XS(() => {
+function lB(e, t, n, r) {
+ let i = (0, F.useRef)(null), a = Yw(n);
+ $S(() => {
if (t && e.current && i.current !== t) {
if (i.current = t, !("getAnimations" in e.current)) {
r();
@@ -39683,9 +39708,9 @@ function sB(e, t, n, r) {
]);
}
// node_modules/react-aria-components/dist/private/Popover.mjs
-var cB = /*#__PURE__*/ (0, F.createContext)(null), lB = /*#__PURE__*/ (0, F.createContext)(null), uB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = SR(e, t, cB);
- let n = (0, F.useContext)(SB), r = iB(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = oB(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = xw(), { direction: c } = eT();
+var uB = /*#__PURE__*/ (0, F.createContext)(null), dB = /*#__PURE__*/ (0, F.createContext)(null), fB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = wR(e, t, uB);
+ let n = (0, F.useContext)(wB), r = oB(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = cB(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = ww(), { direction: c } = rT();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -39696,7 +39721,7 @@ var cB = /*#__PURE__*/ (0, F.createContext)(null), lB = /*#__PURE__*/ (0, F.crea
defaultChildren: null
})), /*#__PURE__*/ F.createElement(F.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ F.createElement(mpe, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ F.createElement(gpe, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -39705,13 +39730,13 @@ var cB = /*#__PURE__*/ (0, F.createContext)(null), lB = /*#__PURE__*/ (0, F.crea
dir: c
});
});
-function mpe({ 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)(lB), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, F.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = ece({
+function gpe({ 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)(dB), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, F.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = $se({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), g = i.popoverRef, _ = aB(g, !!m && l), v = i.isEntering || !i.shouldSkipAnimation && _ || !1, y = bR({
+ }, e), g = i.popoverRef, _ = sB(g, !!m && l), v = i.isEntering || !i.shouldSkipAnimation && _ || !1, y = SR({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -39721,10 +39746,10 @@ function mpe({ 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");
- XS(() => {
+ $S(() => {
g.current && S(b && !g.current.querySelector("[role=dialog]"));
}, [g, b]), (0, F.useEffect)(() => {
- x && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || HC() !== "pointer") && g.current && !HS(g.current) && $C(g.current);
+ x && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || GC() !== "pointer") && g.current && !GS(g.current) && nw(g.current);
}, [
x,
g,
@@ -39732,12 +39757,12 @@ function mpe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
]);
let C = (0, F.useMemo)(() => {
let e = y.children;
- for (let t of [cB, ...r ?? []]) e = /*#__PURE__*/ F.createElement(t.Provider, { value: null }, e);
+ for (let t of [uB, ...r ?? []]) e = /*#__PURE__*/ F.createElement(t.Provider, { value: null }, e);
return e;
}, [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]);
- XS(E, [E]), XO({
+ $S(E, [E]), $O({
ref: y.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: E
});
@@ -39747,9 +39772,9 @@ function mpe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
...y.style,
"--trigger-width": y.style?.["--trigger-width"] || w
};
- XS(() => Bk(() => u(!0)), []);
- let O = /*#__PURE__*/ F.createElement(ER.div, {
- ...K(cT(i, { global: !0 }), d),
+ $S(() => Wk(() => u(!0)), []);
+ let O = /*#__PURE__*/ F.createElement(OR.div, {
+ ...q(dT(i, { global: !0 }), d),
...y,
id: x ? i.id : void 0,
role: x ? "dialog" : void 0,
@@ -39764,17 +39789,17 @@ function mpe({ 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(Mk, { onDismiss: e.close }), /*#__PURE__*/ F.createElement(ppe.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ F.createElement(Fk, { onDismiss: e.close }), /*#__PURE__*/ F.createElement(hpe.Provider, { value: {
...p,
placement: m,
ref: a
- } }, C), /*#__PURE__*/ F.createElement(Mk, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ F.createElement(KD, {
+ } }, C), /*#__PURE__*/ F.createElement(Fk, { onDismiss: e.close }));
+ return c ? /*#__PURE__*/ F.createElement(YD, {
...i,
shouldContainFocus: x && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n ?? s?.current ?? void 0
- }, O) : /*#__PURE__*/ F.createElement(KD, {
+ }, O) : /*#__PURE__*/ F.createElement(YD, {
...i,
shouldContainFocus: x && i.trigger !== "PreviewTrigger",
isExiting: t,
@@ -39789,13 +39814,13 @@ function mpe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}), /*#__PURE__*/ F.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ F.createElement(lB.Provider, { value: o }, O)));
+ }, /*#__PURE__*/ F.createElement(dB.Provider, { value: o }, O)));
}
// node_modules/react-aria-components/dist/private/Keyboard.mjs
-var hpe = /*#__PURE__*/ (0, F.createContext)({});
+var _pe = /*#__PURE__*/ (0, F.createContext)({});
// node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs
-function dB(e) {
- let t = iB(e), [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)([]), o = () => {
+function pB(e) {
+ let t = oB(e), [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)([]), o = () => {
a([]), t.close();
}, s = (e, t) => {
a((n) => t > n.length ? n : [...n.slice(0, t), e]);
@@ -39820,7 +39845,7 @@ function dB(e) {
};
}
// node_modules/react-stately/dist/private/tree/TreeCollection.mjs
-var gpe = class {
+var vpe = class {
constructor(e, { expandedKeys: t } = {}) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e, t ||= /* @__PURE__ */ new Set();
let n = (e) => {
@@ -39863,8 +39888,8 @@ var gpe = class {
}
};
// node_modules/react-stately/dist/private/tree/useTreeState.mjs
-function fB(e) {
- let { onExpandedChange: t } = e, [n, r] = bE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = Kz(e), a = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = Zz(e, (0, F.useCallback)((e) => new gpe(e, { expandedKeys: n }), [n]), null);
+function mB(e) {
+ let { onExpandedChange: t } = e, [n, r] = CE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = Jz(e), a = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = $z(e, (0, F.useCallback)((e) => new vpe(e, { expandedKeys: n }), [n]), null);
return (0, F.useEffect)(() => {
i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);
}, [o, i.focusedKey]), {
@@ -39872,31 +39897,31 @@ function fB(e) {
expandedKeys: n,
disabledKeys: a,
toggleKey: (e) => {
- r(_pe(n, e));
+ r(ype(n, e));
},
setExpandedKeys: r,
- selectionManager: new Jz(o, i)
+ selectionManager: new Xz(o, i)
};
}
-function _pe(e, t) {
+function ype(e, t) {
let n = new Set(e);
return n.has(t) ? n.delete(t) : n.add(t), n;
}
// node_modules/react-aria-components/dist/private/Menu.mjs
-var pB = /*#__PURE__*/ (0, F.createContext)(null), mB = /*#__PURE__*/ (0, F.createContext)(null), hB = /*#__PURE__*/ (0, F.createContext)(null), gB = /*#__PURE__*/ (0, F.createContext)(null);
-function vpe(e) {
- let t = dB(e), n = (0, F.useRef)(null), { menuTriggerProps: r, menuProps: i } = DD({
+var hB = /*#__PURE__*/ (0, F.createContext)(null), gB = /*#__PURE__*/ (0, F.createContext)(null), _B = /*#__PURE__*/ (0, F.createContext)(null), vB = /*#__PURE__*/ (0, F.createContext)(null);
+function bpe(e) {
+ let t = pB(e), n = (0, F.useRef)(null), { menuTriggerProps: r, menuProps: i } = AD({
...e,
type: "menu"
}, t, n), a = (0, F.useRef)(null);
- return xw() ? null : /*#__PURE__*/ F.createElement(yR, { values: [
- [pB, {
+ return ww() ? null : /*#__PURE__*/ F.createElement(xR, { values: [
+ [hB, {
...i,
ref: a
}],
- [SB, t],
- [hB, t],
- [cB, {
+ [wB, t],
+ [_B, t],
+ [uB, {
trigger: "MenuTrigger",
triggerRef: n,
scrollRef: a,
@@ -39904,14 +39929,14 @@ function vpe(e) {
"aria-labelledby": i["aria-labelledby"],
offset: e.trigger === "contextMenu" ? 0 : void 0
}]
- ] }, /*#__PURE__*/ F.createElement(mse, {
+ ] }, /*#__PURE__*/ F.createElement(hse, {
...r,
ref: n,
isPressed: t.isOpen
}, e.children));
}
-var ype = /*#__PURE__*/ (0, F.createContext)(null);
-(class extends SS {
+var xpe = /*#__PURE__*/ (0, F.createContext)(null);
+(class extends TS {
static {
this.type = "submenutrigger";
}
@@ -39924,24 +39949,24 @@ var ype = /*#__PURE__*/ (0, F.createContext)(null);
return null;
}
});
-var bpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return [e, t] = SR(e, t, pB), /*#__PURE__*/ F.createElement(Tw, { content: /*#__PURE__*/ F.createElement(Mw, e) }, (n) => /*#__PURE__*/ F.createElement(xpe, {
+var Spe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ return [e, t] = wR(e, t, hB), /*#__PURE__*/ F.createElement(Ow, { content: /*#__PURE__*/ F.createElement(Fw, e) }, (n) => /*#__PURE__*/ F.createElement(Cpe, {
props: e,
collection: n,
menuRef: t
}));
});
-function xpe({ props: e, collection: t, menuRef: n }) {
- [e, n] = SR(e, n, DR);
- let { filter: r, ...i } = e, a = (0, F.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = fB({
+function Cpe({ props: e, collection: t, menuRef: n }) {
+ [e, n] = wR(e, n, kR);
+ let { filter: r, ...i } = e, a = (0, F.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = mB({
...e,
collection: a,
children: void 0
- }), s = (0, F.useContext)(hB), { isVirtualized: c, CollectionRoot: l } = (0, F.useContext)(MR), { menuProps: u } = Mse({
+ }), s = (0, F.useContext)(_B), { isVirtualized: c, CollectionRoot: l } = (0, F.useContext)(PR), { menuProps: u } = Nse({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
- }, o, n), d = bR({
+ }, o, n), d = SR({
...e,
children: void 0,
defaultClassName: "react-aria-Menu",
@@ -39951,36 +39976,36 @@ function xpe({ props: e, collection: t, menuRef: n }) {
role: "menuitem",
style: { display: "contents" }
}, e.renderEmptyState()));
- let p = cT(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(MT, null, /*#__PURE__*/ F.createElement(ER.div, {
- ...K(p, d, u),
+ let p = dT(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(FT, null, /*#__PURE__*/ F.createElement(OR.div, {
+ ...q(p, d, u),
ref: n,
slot: e.slot || void 0,
"data-empty": o.collection.size === 0 || void 0,
onScroll: e.onScroll
- }, /*#__PURE__*/ F.createElement(yR, { values: [
- [mB, o],
- [Hz, { elementType: "div" }],
- [kR, {
+ }, /*#__PURE__*/ F.createElement(xR, { values: [
+ [gB, o],
+ [Wz, { elementType: "div" }],
+ [jR, {
name: "MenuSection",
- render: _B
+ render: yB
}],
- [ype, {
+ [xpe, {
parentMenuRef: n,
shouldUseVirtualFocus: i?.shouldUseVirtualFocus
}],
- [yB, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
- [DR, null],
- [OR, null],
- [gB, o.selectionManager],
- [hB, s ?? dB({})]
- ] }, /*#__PURE__*/ F.createElement(Bz, null, /*#__PURE__*/ F.createElement(l, {
+ [xB, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [kR, null],
+ [AR, null],
+ [vB, o.selectionManager],
+ [_B, s ?? pB({})]
+ ] }, /*#__PURE__*/ F.createElement(Hz, null, /*#__PURE__*/ F.createElement(l, {
collection: o.collection,
- persistedKeys: NR(o.selectionManager.focusedKey),
+ persistedKeys: FR(o.selectionManager.focusedKey),
scrollRef: n
}))), f));
}
-var Spe = class extends Jz {
+var wpe = class extends Xz {
constructor(e, t) {
super(e.collection, t), this.parent = e;
}
@@ -40000,11 +40025,11 @@ var Spe = class extends Jz {
return this.parent.childFocusStrategy;
}
};
-function _B(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, F.useContext)(mB), { CollectionBranch: a } = (0, F.useContext)(MR), [o, s] = CR(), { headingProps: c, groupProps: l } = Pse({
+function yB(e, t, n, r = "react-aria-MenuSection") {
+ let i = (0, F.useContext)(gB), { CollectionBranch: a } = (0, F.useContext)(PR), [o, s] = TR(), { headingProps: c, groupProps: l } = Fse({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
- }), u = bR({
+ }), u = SR({
...e,
id: void 0,
children: void 0,
@@ -40012,31 +40037,31 @@ function _B(e, t, n, r = "react-aria-MenuSection") {
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, F.useContext)(gB), f = Kz(e), p = e.selectionMode == null ? d : new Spe(d, f), m = xR(yB)?.shouldCloseOnSelect, h = cT(e, { global: !0 });
- return delete h.id, /*#__PURE__*/ F.createElement(ER.section, {
- ...K(h, u, l),
+ }), d = (0, F.useContext)(vB), f = Jz(e), p = e.selectionMode == null ? d : new wpe(d, f), m = CR(xB)?.shouldCloseOnSelect, h = dT(e, { global: !0 });
+ return delete h.id, /*#__PURE__*/ F.createElement(OR.section, {
+ ...q(h, u, l),
ref: t
- }, /*#__PURE__*/ F.createElement(yR, { values: [
- [zz, {
+ }, /*#__PURE__*/ F.createElement(xR, { values: [
+ [Vz, {
...c,
ref: o
}],
- [gB, p],
- [yB, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
+ [vB, p],
+ [xB, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
] }, /*#__PURE__*/ F.createElement(a, {
collection: i.collection,
parent: n
})));
}
-var vB = /*#__PURE__*/ kw(nae, _B), yB = /*#__PURE__*/ (0, F.createContext)(null), bB = /*#__PURE__*/ Ow(TS, function(e, t, n) {
- [e, t] = SR(e, t, yB);
- let r = xR(yB)?.id, i = (0, F.useContext)(mB), a = hw(t), o = (0, F.useContext)(gB), { isVirtualized: s } = (0, F.useContext)(MR), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Nse({
+var bB = /*#__PURE__*/ Mw(rae, yB), xB = /*#__PURE__*/ (0, F.createContext)(null), SB = /*#__PURE__*/ jw(OS, function(e, t, n) {
+ [e, t] = wR(e, t, xB);
+ let r = CR(xB)?.id, i = (0, F.useContext)(gB), a = vw(t), o = (0, F.useContext)(vB), { isVirtualized: s } = (0, F.useContext)(PR), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Pse({
...e,
id: r,
key: n.key,
selectionManager: o,
isVirtualized: s
- }, i, a), { hoverProps: p, isHovered: m } = QD({ isDisabled: f.isDisabled }), h = bR({
+ }, i, a), { hoverProps: p, isHovered: m } = tO({ isDisabled: f.isDisabled }), h = SR({
...e,
id: void 0,
children: n.rendered,
@@ -40050,9 +40075,9 @@ var vB = /*#__PURE__*/ kw(nae, _B), yB = /*#__PURE__*/ (0, F.createContext)(null
hasSubmenu: !!e["aria-haspopup"],
isOpen: e["aria-expanded"] === "true"
}
- }), g = e.href ? ER.a : ER.div, _ = cT(e, { global: !0 });
+ }), g = e.href ? OR.a : OR.div, _ = dT(e, { global: !0 });
return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(g, {
- ...K(_, h, c, p),
+ ...q(_, h, c, p),
ref: a,
"data-disabled": f.isDisabled || void 0,
"data-hovered": m || void 0,
@@ -40063,19 +40088,19 @@ var vB = /*#__PURE__*/ kw(nae, _B), yB = /*#__PURE__*/ (0, F.createContext)(null
"data-selection-mode": o.selectionMode === "none" ? void 0 : o.selectionMode,
"data-has-submenu": !!e["aria-haspopup"] || void 0,
"data-open": e["aria-expanded"] === "true" || void 0
- }, /*#__PURE__*/ F.createElement(yR, { values: [
- [BR, { slots: {
- [vR]: l,
+ }, /*#__PURE__*/ F.createElement(xR, { values: [
+ [HR, { slots: {
+ [bR]: l,
label: l,
description: u
} }],
- [hpe, d],
- [Vz, { isSelected: f.isSelected }]
+ [_pe, d],
+ [Uz, { isSelected: f.isSelected }]
] }, h.children));
});
-Ow(wS, function(e, t, n) {
- let r = (0, F.useContext)(mB), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
- eB((0, F.useMemo)(() => ({
+jw(DS, function(e, t, n) {
+ let r = (0, F.useContext)(gB), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
+ nB((0, F.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -40085,7 +40110,7 @@ Ow(wS, function(e, t, n) {
o,
r?.collection
]), c);
- let l = bR({
+ let l = SR({
...s,
id: void 0,
children: n.rendered,
@@ -40098,7 +40123,7 @@ Ow(wS, function(e, t, n) {
width: 0,
height: 0
},
- inert: Uz(!0)
+ inert: Gz(!0)
}, /*#__PURE__*/ F.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -40107,89 +40132,89 @@ Ow(wS, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(ER.div, {
- ...K(cT(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(OR.div, {
+ ...q(dT(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "menuitem",
ref: t
}, l.children)));
});
// node_modules/react-aria-components/dist/private/Dialog.mjs
-var xB = /*#__PURE__*/ (0, F.createContext)(null), SB = /*#__PURE__*/ (0, F.createContext)(null), CB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+var CB = /*#__PURE__*/ (0, F.createContext)(null), wB = /*#__PURE__*/ (0, F.createContext)(null), TB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = SR(e, t, xB);
- let { dialogProps: r, titleProps: i, contentProps: a } = gse({
+ [e, t] = wR(e, t, CB);
+ let { dialogProps: r, titleProps: i, contentProps: a } = _se({
...e,
"aria-labelledby": n
- }, t), o = (0, F.useContext)(SB);
+ }, t), o = (0, F.useContext)(wB);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = bR({
+ let s = SR({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
- }), c = cT(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(ER.section, {
- ...K(c, s, r),
+ }), c = dT(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(OR.section, {
+ ...q(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ F.createElement(yR, { values: [
- [RR, { slots: {
- [vR]: {},
+ }, /*#__PURE__*/ F.createElement(xR, { values: [
+ [BR, { slots: {
+ [bR]: {},
title: {
...i,
level: 2
}
} }],
- [BR, { slots: {
- [vR]: {},
+ [HR, { slots: {
+ [bR]: {},
description: a
} }],
- [IR, { slots: {
- [vR]: {},
+ [RR, { slots: {
+ [bR]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
-}), wB = typeof document < "u" && window.visualViewport;
-function Cpe() {
- let e = EC(), t = (0, F.useRef)(null), [n, r] = (0, F.useState)(() => e ? {
+}), EB = typeof document < "u" && window.visualViewport;
+function Tpe() {
+ let e = kC(), t = (0, F.useRef)(null), [n, r] = (0, F.useState)(() => e ? {
width: 0,
height: 0
- } : TB());
+ } : DB());
return (0, F.useEffect)(() => {
let e = (e) => {
r((t) => e.width === t.width && e.height === t.height ? t : e);
}, n = () => {
- wB && wB.scale > 1 || e(TB());
+ EB && EB.scale > 1 || e(DB());
}, i = (n) => {
- wB && wB.scale > 1 || Uw(G(n)) && (t.current = Bk((t) => {
+ EB && EB.scale > 1 || Kw(K(n)) && (t.current = Wk((t) => {
t || e({
width: document.documentElement.clientWidth,
height: document.documentElement.clientHeight
});
}));
};
- return e(TB()), cC() && uC() && window.addEventListener("blur", i, !0), wB ? wB.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
- t.current?.(), cC() && uC() && window.removeEventListener("blur", i, !0), wB ? wB.removeEventListener("resize", n) : window.removeEventListener("resize", n);
+ return e(DB()), dC() && pC() && window.addEventListener("blur", i, !0), EB ? EB.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
+ t.current?.(), dC() && pC() && window.removeEventListener("blur", i, !0), EB ? EB.removeEventListener("resize", n) : window.removeEventListener("resize", n);
};
}, []), n;
}
-function TB() {
+function DB() {
return {
- width: wB ? Math.min(wB.width * wB.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: wB ? wB.height * wB.scale : document.documentElement.clientHeight
+ width: EB ? Math.min(EB.width * EB.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: EB ? EB.height * EB.scale : document.documentElement.clientHeight
};
}
// node_modules/react-aria-components/dist/private/Modal.mjs
-var wpe = /*#__PURE__*/ (0, F.createContext)(null), EB = /*#__PURE__*/ (0, F.createContext)(null), Tpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- if ((0, F.useContext)(EB)) return /*#__PURE__*/ F.createElement(OB, {
+var Epe = /*#__PURE__*/ (0, F.createContext)(null), OB = /*#__PURE__*/ (0, F.createContext)(null), Dpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ if ((0, F.useContext)(OB)) return /*#__PURE__*/ F.createElement(AB, {
...e,
modalRef: t
}, e.children);
let { isDismissable: n, isKeyboardDismissDisabled: r, isOpen: i, defaultOpen: a, onOpenChange: o, children: s, isEntering: c, isExiting: l, UNSTABLE_portalContainer: u, shouldCloseOnInteractOutside: d, ...f } = e;
- return /*#__PURE__*/ F.createElement(DB, {
+ return /*#__PURE__*/ F.createElement(kB, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -40199,15 +40224,15 @@ var wpe = /*#__PURE__*/ (0, F.createContext)(null), EB = /*#__PURE__*/ (0, F.cre
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ F.createElement(OB, {
+ }, /*#__PURE__*/ F.createElement(AB, {
...f,
modalRef: t
}, s));
});
-function Epe(e, t) {
- [e, t] = SR(e, t, wpe);
- let n = (0, F.useContext)(SB), r = iB(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = hw(t), o = (0, F.useRef)(null), s = oB(a, i.isOpen, e.onExit), c = (0, F.useRef)(null), l = oB(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = EC();
- return !i.isOpen && !u || d ? null : /*#__PURE__*/ F.createElement(Dpe, {
+function Ope(e, t) {
+ [e, t] = wR(e, t, Epe);
+ let n = (0, F.useContext)(wB), r = oB(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = vw(t), o = (0, F.useRef)(null), s = cB(a, i.isOpen, e.onExit), c = (0, F.useRef)(null), l = cB(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = kC();
+ return !i.isOpen && !u || d ? null : /*#__PURE__*/ F.createElement(kpe, {
...e,
state: i,
isExiting: u,
@@ -40216,12 +40241,12 @@ function Epe(e, t) {
onExitRef: c
});
}
-var DB = /*#__PURE__*/ (0, F.forwardRef)(Epe);
-function Dpe({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
- let r = n.modalRef, { state: i } = n, [a, o] = (0, F.useState)(!1), s = aB(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = Wse({
+var kB = /*#__PURE__*/ (0, F.forwardRef)(Ope);
+function kpe({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
+ let r = n.modalRef, { state: i } = n, [a, o] = (0, F.useState)(!1), s = sB(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = Use({
...n,
isEntering: c
- }, i, r), d = (0, F.useContext)(xB), f = t ? Ope(d, { isEntering: c }) : d, p = bR({
+ }, i, r), d = (0, F.useContext)(CB), f = t ? Ape(d, { isEntering: c }) : d, p = SR({
...n,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -40229,9 +40254,9 @@ function Dpe({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
isExiting: n.isExiting,
state: i
}
- }), m = Cpe(), h, g;
+ }), m = Tpe(), h, g;
if (typeof document < "u") {
- let e = ZT(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
+ let e = eE(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 _ = {
@@ -40241,18 +40266,18 @@ function Dpe({ 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 XS(() => Bk(() => o(!0)), []), /*#__PURE__*/ F.createElement(KD, {
+ return $S(() => Wk(() => o(!0)), []), /*#__PURE__*/ F.createElement(YD, {
isExiting: n.isExiting,
portalContainer: e
- }, /*#__PURE__*/ F.createElement(ER.div, {
- ...K(cT(n, { global: !0 }), u),
+ }, /*#__PURE__*/ F.createElement(OR.div, {
+ ...q(dT(n, { global: !0 }), u),
...p,
style: _,
ref: n.overlayRef,
"data-entering": s || void 0,
"data-exiting": n.isExiting || void 0
- }, /*#__PURE__*/ F.createElement(yR, { values: [
- [EB, {
+ }, /*#__PURE__*/ F.createElement(xR, { values: [
+ [OB, {
modalProps: l,
modalRef: r,
isExiting: n.isExiting,
@@ -40260,11 +40285,11 @@ function Dpe({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
isOpen: a,
isDismissable: n.isDismissable
}],
- [SB, i],
- [xB, f]
+ [wB, i],
+ [CB, f]
] }, p.children)));
}
-function Ope(e, t) {
+function Ape(e, t) {
if (e && "slots" in e && e.slots) {
let n = {};
for (let r in e.slots) n[r] = {
@@ -40281,8 +40306,8 @@ function Ope(e, t) {
...t
};
}
-function OB(e) {
- let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, F.useContext)(EB), s = (0, F.useContext)(SB), c = hw((0, F.useMemo)(() => ow(e.modalRef, n), [e.modalRef, n])), l = aB(c, o, e.onEnter), u = bR({
+function AB(e) {
+ let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, F.useContext)(OB), s = (0, F.useContext)(wB), c = vw((0, F.useMemo)(() => lw(e.modalRef, n), [e.modalRef, n])), l = sB(c, o, e.onEnter), u = SR({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -40291,20 +40316,20 @@ function OB(e) {
state: s
}
});
- return XS(() => {
+ return $S(() => {
i && (i.current = e.onExit);
- }), /*#__PURE__*/ F.createElement(ER.div, {
- ...K(cT(e, { global: !0 }), t),
+ }), /*#__PURE__*/ F.createElement(OR.div, {
+ ...q(dT(e, { global: !0 }), t),
...u,
ref: c,
"data-entering": l || void 0,
"data-exiting": r || void 0
- }, a && /*#__PURE__*/ F.createElement(Mk, { onDismiss: s.close }), u.children);
+ }, a && /*#__PURE__*/ F.createElement(Fk, { onDismiss: s.close }), u.children);
}
// node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
-var kpe = Math.round(Math.random() * 1e10), Ape = 0;
-function jpe(e) {
- let t = (0, F.useMemo)(() => e.name || `radio-group-${kpe}-${++Ape}`, [e.name]), [n, r] = bE(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, F.useState)(n), [a, o] = (0, F.useState)(null), s = dE({
+var jpe = Math.round(Math.random() * 1e10), Mpe = 0;
+function Npe(e) {
+ let t = (0, F.useMemo)(() => e.name || `radio-group-${jpe}-${++Mpe}`, [e.name]), [n, r] = CE(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, F.useState)(n), [a, o] = (0, F.useState)(null), s = mE({
...e,
value: n
}), c = (t) => {
@@ -40326,16 +40351,16 @@ function jpe(e) {
};
}
// node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var Mpe = /*#__PURE__*/ (0, F.createContext)(null), Npe = /*#__PURE__*/ (0, F.createContext)(null), kB = /*#__PURE__*/ (0, F.createContext)(null), AB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = SR(e, t, Mpe);
- let { validationBehavior: n } = xR(HR) || {}, r = e.validationBehavior ?? n ?? "native", i = jpe({
+var Ppe = /*#__PURE__*/ (0, F.createContext)(null), Fpe = /*#__PURE__*/ (0, F.createContext)(null), jB = /*#__PURE__*/ (0, F.createContext)(null), MB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = wR(e, t, Ppe);
+ let { validationBehavior: n } = CR(WR) || {}, r = e.validationBehavior ?? n ?? "native", i = Npe({
...e,
validationBehavior: r
- }), [a, o] = CR(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = nce({
+ }), [a, o] = TR(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = tce({
...e,
label: o,
validationBehavior: r
- }, i), f = bR({
+ }, i), f = SR({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -40346,9 +40371,9 @@ var Mpe = /*#__PURE__*/ (0, F.createContext)(null), Npe = /*#__PURE__*/ (0, F.cr
state: i
},
defaultClassName: "react-aria-RadioGroup"
- }), p = cT(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(ER.div, {
- ...K(p, f, s),
+ }), p = dT(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(OR.div, {
+ ...q(p, f, s),
ref: t,
slot: e.slot || void 0,
"data-orientation": e.orientation || "vertical",
@@ -40356,39 +40381,39 @@ var Mpe = /*#__PURE__*/ (0, F.createContext)(null), Npe = /*#__PURE__*/ (0, F.cr
"data-disabled": i.isDisabled || void 0,
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
- }, /*#__PURE__*/ F.createElement(yR, { values: [
- [kB, i],
- [PR, {
+ }, /*#__PURE__*/ F.createElement(xR, { values: [
+ [jB, i],
+ [IR, {
...c,
ref: a,
elementType: "span"
}],
- [BR, { slots: {
+ [HR, { slots: {
description: l,
errorMessage: u
} }],
- [VR, d]
- ] }, /*#__PURE__*/ F.createElement(Bz, null, f.children)));
-}), jB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [UR, d]
+ ] }, /*#__PURE__*/ F.createElement(Hz, null, f.children)));
+}), NB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = SR(r, t, Npe);
- let i = F.useContext(kB), a = hw((0, F.useMemo)(() => ow(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = tce({
- ...wR(e),
+ [e, t] = wR(r, t, Fpe);
+ let i = F.useContext(jB), a = vw((0, F.useMemo)(() => lw(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = ece({
+ ...ER(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ F.createElement(MB.Provider, { value: {
+ return /*#__PURE__*/ F.createElement(PB.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ F.createElement(Ppe, {
+ } }, /*#__PURE__*/ F.createElement(Ipe, {
...e,
ref: t
}));
-}), MB = /*#__PURE__*/ (0, F.createContext)(null), Ppe = /*#__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)(MB), l = F.useContext(kB), { isFocused: u, isFocusVisible: d, focusProps: f } = JD(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = QD({
+}), PB = /*#__PURE__*/ (0, F.createContext)(null), Ipe = /*#__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)(PB), l = F.useContext(jB), { isFocused: u, isFocusVisible: d, focusProps: f } = ZD(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = tO({
...e,
isDisabled: p
- }), g = bR({
+ }), g = SR({
...e,
defaultClassName: s,
values: {
@@ -40402,9 +40427,9 @@ var Mpe = /*#__PURE__*/ (0, F.createContext)(null), Npe = /*#__PURE__*/ (0, F.cr
isInvalid: l.isInvalid,
isRequired: l.isRequired
}
- }), _ = cT(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(ER.label, {
- ...K(_, n, m, g),
+ }), _ = dT(e, { global: !0 });
+ return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(OR.label, {
+ ...q(_, n, m, g),
ref: t,
"data-selected": i || void 0,
"data-pressed": o || void 0,
@@ -40415,18 +40440,18 @@ var Mpe = /*#__PURE__*/ (0, F.createContext)(null), Npe = /*#__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(AE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
- ...K(r, f),
+ }, /*#__PURE__*/ F.createElement(NE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
+ ...q(r, f),
ref: c
})), g.children);
});
// node_modules/react-stately/dist/private/select/useSelectState.mjs
-function Fpe(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = iB(e), [i, a] = (0, F.useState)(null), o = (0, F.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+function Lpe(e) {
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = oB(e), [i, a] = (0, F.useState)(null), o = (0, F.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
- ]), [s, c] = bE((0, F.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
+ ]), [s, c] = CE((0, F.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
e.value,
e.selectedKey,
t
@@ -40438,12 +40463,12 @@ function Fpe(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = Qz({
+ }, d = eB({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, F.useMemo)(() => Ipe(l), [l]),
+ selectedKeys: (0, F.useMemo)(() => Rpe(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -40453,7 +40478,7 @@ function Fpe(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 = dE({
+ }), 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 = mE({
...e,
value: Array.isArray(l) && l.length === 0 ? null : l
}), [h, g] = (0, F.useState)(!1), [_] = (0, F.useState)(l);
@@ -40480,15 +40505,15 @@ function Fpe(e) {
setFocused: g
};
}
-function Ipe(e) {
+function Rpe(e) {
if (e !== void 0) return e === null ? [] : Array.isArray(e) ? e : [e];
}
// node_modules/react-aria-components/dist/private/Select.mjs
-function Lpe(e) {
+function zpe(e) {
return e && e.__esModule ? e.default : e;
}
-var NB = /*#__PURE__*/ (0, F.createContext)(null), PB = /*#__PURE__*/ (0, F.createContext)(null), Rpe = /*#__PURE__*/ bw(function(e, t) {
- [e, t] = SR(e, t, NB);
+var FB = /*#__PURE__*/ (0, F.createContext)(null), IB = /*#__PURE__*/ (0, F.createContext)(null), Bpe = /*#__PURE__*/ Cw(function(e, t) {
+ [e, t] = wR(e, t, FB);
let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, F.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
@@ -40503,24 +40528,24 @@ var NB = /*#__PURE__*/ (0, F.createContext)(null), PB = /*#__PURE__*/ (0, F.crea
i,
a
]);
- return /*#__PURE__*/ F.createElement(Tw, { content: o }, (n) => /*#__PURE__*/ F.createElement(Bpe, {
+ return /*#__PURE__*/ F.createElement(Ow, { content: o }, (n) => /*#__PURE__*/ F.createElement(Hpe, {
props: e,
collection: n,
selectRef: t
}));
-}), zpe = [
- PR,
+}), Vpe = [
IR,
- BR
+ RR,
+ HR
];
-function Bpe({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = xR(HR) || {}, i = e.validationBehavior ?? r ?? "native", a = Fpe({
+function Hpe({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = CR(WR) || {}, i = e.validationBehavior ?? r ?? "native", a = Lpe({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = JD({ within: !0 }), c = (0, F.useRef)(null), [l, u] = CR(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = rce({
- ...wR(e),
+ }), { isFocusVisible: o, focusProps: s } = ZD({ within: !0 }), c = (0, F.useRef)(null), [l, u] = TR(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = nce({
+ ...ER(e),
label: u,
validationBehavior: i
}, a, c), y = (0, F.useMemo)(() => ({
@@ -40537,49 +40562,49 @@ function Bpe({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
v.isInvalid,
e.isRequired
- ]), b = bR({
+ ]), b = SR({
...e,
values: y,
defaultClassName: "react-aria-Select"
- }), x = cT(e, { global: !0 });
+ }), x = dT(e, { global: !0 });
delete x.id;
let S = (0, F.useRef)(null);
- return /*#__PURE__*/ F.createElement(yR, { values: [
- [NB, e],
- [PB, a],
- [FB, p],
- [PR, {
+ return /*#__PURE__*/ F.createElement(xR, { values: [
+ [FB, e],
+ [IB, a],
+ [LB, p],
+ [IR, {
...d,
ref: l,
elementType: "span"
}],
- [IR, {
+ [RR, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [SB, a],
- [cB, {
+ [wB, a],
+ [uB, {
trigger: "Select",
triggerRef: c,
scrollRef: S,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: zpe
+ clearContexts: Vpe
}],
- [tB, {
+ [rB, {
...m,
ref: S
}],
- [nB, a],
- [BR, { slots: {
+ [iB, a],
+ [HR, { slots: {
description: h,
errorMessage: g
} }],
- [VR, v]
- ] }, /*#__PURE__*/ F.createElement(ER.div, {
- ...K(x, b, s),
+ [UR, v]
+ ] }, /*#__PURE__*/ F.createElement(OR.div, {
+ ...q(x, b, s),
ref: t,
slot: e.slot || void 0,
"data-focused": a.isFocused || void 0,
@@ -40588,14 +40613,14 @@ function Bpe({ 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(ace, {
+ }, b.children, /*#__PURE__*/ F.createElement(ice, {
..._,
autoComplete: e.autoComplete
})));
}
-for (var FB = /*#__PURE__*/ (0, F.createContext)(null), Vpe = /*#__PURE__*/ bw(function(e, t) {
- [e, t] = SR(e, t, FB);
- let n = (0, F.useContext)(PB), { placeholder: r } = xR(NB), i = n.selectedItems.map((e) => {
+for (var LB = /*#__PURE__*/ (0, F.createContext)(null), Upe = /*#__PURE__*/ Cw(function(e, t) {
+ [e, t] = wR(e, t, LB);
+ let n = (0, F.useContext)(IB), { placeholder: r } = CR(FB), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -40607,7 +40632,7 @@ for (var FB = /*#__PURE__*/ (0, F.createContext)(null), Vpe = /*#__PURE__*/ bw(f
selectionMode: "single",
selectionBehavior: "toggle"
})), t;
- }), a = _se(), 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 = vse(), 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
@@ -40622,7 +40647,7 @@ for (var FB = /*#__PURE__*/ (0, F.createContext)(null), Vpe = /*#__PURE__*/ bw(f
a,
o,
i
- ]), u = oT(Lpe(Pz), "react-aria-components"), d = bR({
+ ]), u = lT(zpe(Iz), "react-aria-components"), d = SR({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -40633,33 +40658,33 @@ for (var FB = /*#__PURE__*/ (0, F.createContext)(null), Vpe = /*#__PURE__*/ bw(f
isPlaceholder: n.selectedItems.length === 0,
state: n
}
- }), f = cT(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(ER.span, {
+ }), f = dT(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(OR.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ F.createElement(BR.Provider, { value: void 0 }, d.children));
-}), Hpe = /*#__PURE__*/ (0, F.createContext)(null), IB = /*#__PURE__*/ (0, F.createContext)(null), Upe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ }, /*#__PURE__*/ F.createElement(HR.Provider, { value: void 0 }, d.children));
+}), Wpe = /*#__PURE__*/ (0, F.createContext)(null), RB = /*#__PURE__*/ (0, F.createContext)(null), Gpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = SR(r, t, Hpe);
- let i = hw((0, F.useMemo)(() => ow(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = xE(e), o = sce({
- ...wR(e),
+ [e, t] = wR(r, t, Wpe);
+ let i = vw((0, F.useMemo)(() => lw(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = wE(e), o = oce({
+ ...ER(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ F.createElement(yR, { values: [[IB, a], [LB, {
+ return /*#__PURE__*/ F.createElement(xR, { values: [[RB, a], [zB, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ F.createElement(Wpe, {
+ }]] }, /*#__PURE__*/ F.createElement(Kpe, {
...e,
ref: t
}));
-}), LB = /*#__PURE__*/ (0, F.createContext)(null), Wpe = /*#__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)(LB), { isFocused: f, isFocusVisible: p, focusProps: m } = JD(), h = a || o, g = (0, F.useContext)(IB), { hoverProps: _, isHovered: v } = QD({
+}), zB = /*#__PURE__*/ (0, F.createContext)(null), Kpe = /*#__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)(zB), { isFocused: f, isFocusVisible: p, focusProps: m } = ZD(), h = a || o, g = (0, F.useContext)(RB), { hoverProps: _, isHovered: v } = tO({
...e,
isDisabled: h
- }), y = bR({
+ }), y = SR({
...e,
defaultClassName: u,
values: {
@@ -40674,9 +40699,9 @@ for (var FB = /*#__PURE__*/ (0, F.createContext)(null), Vpe = /*#__PURE__*/ bw(f
isRequired: d || !1,
state: g
}
- }), b = cT(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(ER.label, {
- ...K(b, n, _, y),
+ }), b = dT(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(OR.label, {
+ ...q(b, n, _, y),
ref: t,
slot: e.slot || void 0,
"data-selected": i || void 0,
@@ -40688,11 +40713,11 @@ for (var FB = /*#__PURE__*/ (0, F.createContext)(null), Vpe = /*#__PURE__*/ bw(f
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": d || void 0
- }, /*#__PURE__*/ F.createElement(AE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
- ...K(r, m),
+ }, /*#__PURE__*/ F.createElement(NE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
+ ...q(r, m),
ref: l
})), y.children);
-}), RB = 10, zB = 5, BB = class {
+}), BB = 10, VB = 5, HB = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@ -40702,7 +40727,7 @@ for (var FB = /*#__PURE__*/ (0, F.createContext)(null), Vpe = /*#__PURE__*/ bw(f
}
resolveDropTarget(e, t, n, r) {
let i = this.pointerTracking, a = n - i.lastY, o = t - i.lastX, s = i.yDirection, c = i.xDirection;
- if (Math.abs(a) > zB && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > RB && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
+ if (Math.abs(a) > VB && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > BB && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
let t = this.state.collection.getKeyBefore(e.key);
for (; t != null;) {
let e = this.state.collection.getItem(t);
@@ -40781,11 +40806,11 @@ for (var FB = /*#__PURE__*/ (0, F.createContext)(null), Vpe = /*#__PURE__*/ bw(f
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > zB && i) {
+ if (Math.abs(r - c.lastSwitchY) > VB && i) {
let t = c.preferredTargetIndex || 0;
i === "down" && t === 0 ? c.preferredTargetIndex = e.length - 1 : i === "up" && t === e.length - 1 && (c.preferredTargetIndex = 0), o.xDirection = null;
}
- if (l > RB && a) {
+ if (l > BB && a) {
let t = c.preferredTargetIndex || 0;
a === "left" ? this.direction === "ltr" ? t < e.length - 1 && (c.preferredTargetIndex = t + 1, c.lastSwitchX = n) : t > 0 && (c.preferredTargetIndex = t - 1, c.lastSwitchX = n) : a === "right" && (this.direction === "ltr" ? t > 0 && (c.preferredTargetIndex = t - 1, c.lastSwitchX = n) : t < e.length - 1 && (c.preferredTargetIndex = t + 1, c.lastSwitchX = n)), o.yDirection = null;
}
@@ -40800,7 +40825,7 @@ for (var FB = /*#__PURE__*/ (0, F.createContext)(null), Vpe = /*#__PURE__*/ bw(f
boundaryContext: null
};
}
-}, Gpe = class {
+}, qpe = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
let t = (r) => {
@@ -40870,8 +40895,8 @@ for (var FB = /*#__PURE__*/ (0, F.createContext)(null), Vpe = /*#__PURE__*/ bw(f
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, VB = "row-header-column-" + Math.random().toString(36).slice(2), HB = "row-header-column-" + Math.random().toString(36).slice(2); VB === HB;) HB = "row-header-column-" + Math.random().toString(36).slice(2);
-function UB(e, t) {
+}, UB = "row-header-column-" + Math.random().toString(36).slice(2), WB = "row-header-column-" + Math.random().toString(36).slice(2); UB === WB;) WB = "row-header-column-" + Math.random().toString(36).slice(2);
+function GB(e, t) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@ -40955,13 +40980,13 @@ function UB(e, t) {
textValue: ""
}));
}
-var Kpe = class extends Gpe {
+var Jpe = class extends qpe {
constructor(e, t, n) {
let r = /* @__PURE__ */ new Set(), i = null, a = [];
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: VB,
+ key: UB,
value: null,
textValue: "",
level: 0,
@@ -40976,7 +41001,7 @@ var Kpe = class extends Gpe {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: HB,
+ key: WB,
value: null,
textValue: "",
level: 0,
@@ -41003,7 +41028,7 @@ var Kpe = class extends Gpe {
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = UB(s, a);
+ let l = GB(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@ -41029,10 +41054,10 @@ var Kpe = class extends Gpe {
return this.keyMap.get(e)?.nextKey ?? null;
}
getFirstKey() {
- return ND(this.body.childNodes)?.key ?? null;
+ return ID(this.body.childNodes)?.key ?? null;
}
getLastKey() {
- return FD(this.body.childNodes)?.key ?? null;
+ return RD(this.body.childNodes)?.key ?? null;
}
getItem(e) {
return e === this.body.key ? this.body : this.keyMap.get(e) ?? null;
@@ -41063,15 +41088,15 @@ var Kpe = class extends Gpe {
}
};
// node_modules/react-stately/dist/private/table/TableUtils.mjs
-function qpe(e) {
+function Ype(e) {
return e != null && (!isNaN(e) || String(e).match(/^(\d+)(?=%$)/) !== null);
}
-function Jpe(e) {
+function Xpe(e) {
if (!e || typeof e == "number") return 1;
let t = e.match(/^(.+)(?=fr$)/);
return t ? parseFloat(t[0]) : 1;
}
-function WB(e, t) {
+function KB(e, t) {
if (typeof e == "string") {
let n = e.match(/^(\d+)(?=%$)/);
if (!n) throw Error("Only percentages or numbers are supported for static column widths");
@@ -41079,19 +41104,19 @@ function WB(e, t) {
}
return e;
}
-function GB(e, t) {
- return e == null ? 2 ** 53 - 1 : WB(e, t);
+function qB(e, t) {
+ return e == null ? 2 ** 53 - 1 : KB(e, t);
}
-function KB(e, t) {
- return e == null ? 0 : WB(e, t);
+function JB(e, t) {
+ return e == null ? 0 : KB(e, t);
}
-function Ype(e, t, n, r, i) {
+function Zpe(e, t, n, r, i) {
let a = e, o = Math.floor(e), s = e - o > 0;
e = o;
let c = !1, l = t.map((t, a) => {
let o = n.get(t.key) == null ? t.width ?? t.defaultWidth ?? r?.(a) ?? "1fr" : n.get(t.key) ?? "1fr", s = !1, l = 0, u = 0, d = 0;
- qpe(o) ? (l = WB(o, e), s = !0) : (u = Jpe(o), u <= 0 && (s = !0));
- let f = KB(t.minWidth ?? i?.(a) ?? 0, e), p = GB(t.maxWidth, e), m = Math.max(f, Math.min(l, p));
+ Ype(o) ? (l = KB(o, e), s = !0) : (u = Xpe(o), u <= 0 && (s = !0));
+ let f = JB(t.minWidth ?? i?.(a) ?? 0, e), p = qB(t.maxWidth, e), m = Math.max(f, Math.min(l, p));
return s ? d = m : l > m && (s = !0, d = m), s || (c = !0), {
frozen: s,
baseSize: l,
@@ -41125,14 +41150,14 @@ function Ype(e, t, n, r, i) {
i === 0 || Math.sign(i) === Math.sign(e.violation) ? e.frozen = !0 : e.frozen || (c = !0);
});
}
- let u = Xpe(l);
+ let u = Qpe(l);
if (s && u.length > 0) {
let e = a.toString().split(".")[1], t = u[u.length - 1].toString();
u[u.length - 1] = Number(t + "." + e);
}
return u;
}
-function Xpe(e) {
+function Qpe(e) {
let t = 0, n = 0, r = [];
return e.forEach(function(e) {
let i = e.targetMainSize, a = Math.round(i + t) - n;
@@ -41140,7 +41165,7 @@ function Xpe(e) {
}), r;
}
// node_modules/react-stately/dist/private/table/TableColumnLayout.mjs
-var Zpe = class {
+var $pe = class {
constructor(e) {
this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), this.getDefaultWidth = e?.getDefaultWidth ?? (() => "1fr"), this.getDefaultMinWidth = e?.getDefaultMinWidth ?? (() => 75);
}
@@ -41169,18 +41194,18 @@ var Zpe = class {
}), o;
}
buildColumnWidths(e, t, n) {
- return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), Ype(e, t.columns.map((e) => ({
+ return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), Zpe(e, t.columns.map((e) => ({
...e.props,
key: e.key
})), n, (e) => this.getDefaultWidth(t.columns[e]), (e) => this.getDefaultMinWidth(t.columns[e])).forEach((n, r) => {
let i = t.columns[r].key, a = t.columns[r];
- this.columnWidths.set(i, n), this.columnMinWidths.set(i, KB(a.props.minWidth ?? this.getDefaultMinWidth(a), e)), this.columnMaxWidths.set(i, GB(a.props.maxWidth, e));
+ this.columnWidths.set(i, n), this.columnMinWidths.set(i, JB(a.props.minWidth ?? this.getDefaultMinWidth(a), e)), this.columnMaxWidths.set(i, qB(a.props.maxWidth, e));
}), this.columnWidths;
}
};
// node_modules/react-stately/dist/private/table/useTableColumnResizeState.mjs
-function Qpe(e, t) {
- let { getDefaultWidth: n, getDefaultMinWidth: r, tableWidth: i = 0 } = e, [a, o] = (0, F.useState)(null), s = (0, F.useMemo)(() => new Zpe({
+function eme(e, t) {
+ let { getDefaultWidth: n, getDefaultMinWidth: r, tableWidth: i = 0 } = e, [a, o] = (0, F.useState)(null), s = (0, F.useMemo)(() => new $pe({
getDefaultWidth: n,
getDefaultMinWidth: r
}), [n, r]), [c, l] = (0, F.useMemo)(() => s.splitColumnsIntoControlledAndUncontrolled(t.collection.columns), [t.collection.columns, s]), [u, d] = (0, F.useState)(() => s.getInitialUncontrolledWidths(l)), [f, p] = (0, F.useState)(t.collection.columns);
@@ -41231,19 +41256,19 @@ function Qpe(e, t) {
]);
}
// node_modules/react-stately/dist/private/grid/useGridState.mjs
-function $pe(e) {
- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || Kz(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
+function tme(e) {
+ let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || Jz(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
r.setFocusedKey = (e, r) => {
if (n === "cell" && e != null) {
let n = t.getItem(e);
if (n?.type === "item") {
- let i = MD(n, t);
- e = r === "last" ? FD(i)?.key ?? null : ND(i)?.key ?? null;
+ let i = FD(n, t);
+ e = r === "last" ? RD(i)?.key ?? null : ID(i)?.key ?? null;
}
}
a(e, r);
};
- let o = (0, F.useMemo)(() => new Jz(t, r), [t, r]), s = (0, F.useRef)(null);
+ let o = (0, F.useMemo)(() => new Xz(t, r), [t, r]), s = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
if (r.focusedKey != null && s.current && !t.getItem(r.focusedKey)) {
let e = s.current.getItem(r.focusedKey), n = e?.parentKey != null && (e.type === "cell" || e.type === "rowheader" || e.type === "column") ? s.current.getItem(e.parentKey) : e;
@@ -41263,7 +41288,7 @@ function $pe(e) {
}
}
if (u) {
- let i = u.hasChildNodes ? [...MD(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
+ let i = u.hasChildNodes ? [...FD(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);
}
@@ -41281,11 +41306,11 @@ function $pe(e) {
};
}
// node_modules/react-stately/dist/private/table/useTableState.mjs
-var eme = {
+var nme = {
ascending: "descending",
descending: "ascending"
};
-function tme(e) {
+function rme(e) {
let [t, n] = (0, F.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, F.useMemo)(() => ({
showSelectionCheckboxes: i && r !== "none",
showDragButtons: a,
@@ -41296,11 +41321,11 @@ function tme(e) {
i,
r,
a
- ]), c = Zz(e, (0, F.useCallback)((e) => new Kpe(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = $pe({
+ ]), c = $z(e, (0, F.useCallback)((e) => new Jpe(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = tme({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
- }), [d, f] = bE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ }), [d, f] = CE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
return {
collection: c,
disabledKeys: l,
@@ -41312,7 +41337,7 @@ function tme(e) {
sort(t, n) {
e.onSortChange?.({
column: t,
- direction: n ?? (e.sortDescriptor?.column === t ? eme[e.sortDescriptor.direction] : "ascending")
+ direction: n ?? (e.sortDescriptor?.column === t ? nme[e.sortDescriptor.direction] : "ascending")
});
},
expandedKeys: d,
@@ -41325,7 +41350,7 @@ function tme(e) {
treeColumn: o
};
}
-function nme(e, t) {
+function ime(e, t) {
let n = (0, F.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
return {
...e,
@@ -41334,10 +41359,10 @@ function nme(e, t) {
};
}
// node_modules/react-aria-components/dist/private/Table.mjs
-function rme(e) {
+function ame(e) {
return e && e.__esModule ? e.default : e;
}
-var ime = class extends ES {
+var ome = class extends kS {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -41352,7 +41377,7 @@ var ime = class extends ES {
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new tV(-2);
+ return new rV(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@ -41378,7 +41403,7 @@ var ime = class extends ES {
for (let t of this.getChildren(e.key)) n(t);
};
for (let e of this.getChildren(this.head.key)) n(e);
- if (this.headerRows = UB(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw Error("A table must have at least one Column with the isRowHeader prop set to true");
+ if (this.headerRows = GB(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw Error("A table must have at least one Column with the isRowHeader prop set to true");
}
get columnCount() {
return this.columns.length;
@@ -41459,28 +41484,28 @@ var ime = class extends ES {
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new ZB(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
+ super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new $B(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, qB = /*#__PURE__*/ (0, F.createContext)(null), ame = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let n = hw(t), r = (0, F.useRef)(null), i = (0, F.useRef)(null), [a, o] = (0, F.useState)(0);
- XS(() => {
+}, YB = /*#__PURE__*/ (0, F.createContext)(null), sme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let n = vw(t), r = (0, F.useRef)(null), i = (0, F.useRef)(null), [a, o] = (0, F.useState)(0);
+ $S(() => {
let e = r.current;
- for (; e && e !== n.current && !ZT(e);) e = e.parentElement;
+ for (; e && e !== n.current && !eE(e);) e = e.parentElement;
i.current = e;
- }, [n]), XO({
+ }, [n]), $O({
ref: i,
box: "border-box",
onResize() {
o(i.current?.clientWidth ?? 0);
}
- }), XS(() => {
+ }), $S(() => {
o(i.current?.clientWidth ?? 0);
}, []);
let s = (0, F.useMemo)(() => ({
tableRef: r,
scrollRef: i,
tableWidth: a,
- useTableColumnResizeState: Qpe,
+ useTableColumnResizeState: eme,
onResizeStart: e.onResizeStart,
onResize: e.onResize,
onResizeEnd: e.onResizeEnd
@@ -41491,17 +41516,17 @@ var ime = class extends ES {
e.onResize,
e.onResizeEnd
]);
- return /*#__PURE__*/ F.createElement(ER.div, {
+ return /*#__PURE__*/ F.createElement(OR.div, {
render: e.render,
- ...cT(e, { global: !0 }),
+ ...dT(e, { global: !0 }),
ref: n,
className: e.className || "react-aria-ResizableTableContainer",
style: e.style,
onScroll: e.onScroll
- }, /*#__PURE__*/ F.createElement(qB.Provider, { value: s }, e.children));
-}), ome = /*#__PURE__*/ (0, F.createContext)(null), JB = /*#__PURE__*/ (0, F.createContext)(null), YB = /*#__PURE__*/ (0, F.createContext)(null), sme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = SR(e, t, ome);
- let n = Kz(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, F.useMemo)(() => ({
+ }, /*#__PURE__*/ F.createElement(YB.Provider, { value: s }, e.children));
+}), cme = /*#__PURE__*/ (0, F.createContext)(null), XB = /*#__PURE__*/ (0, F.createContext)(null), ZB = /*#__PURE__*/ (0, F.createContext)(null), lme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = wR(e, t, cme);
+ let n = Jz(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, F.useMemo)(() => ({
selectionBehavior: i === "none" ? null : r,
selectionMode: i,
disallowEmptySelection: a,
@@ -41511,26 +41536,26 @@ var ime = class extends ES {
i,
a,
o
- ]), c = /*#__PURE__*/ F.createElement(ume.Provider, { value: s }, /*#__PURE__*/ F.createElement(Mw, e));
- return /*#__PURE__*/ F.createElement(Tw, {
+ ]), c = /*#__PURE__*/ F.createElement(fme.Provider, { value: s }, /*#__PURE__*/ F.createElement(Fw, e));
+ return /*#__PURE__*/ F.createElement(Ow, {
content: c,
- createCollection: () => new ime()
- }, (r) => /*#__PURE__*/ F.createElement(lme, {
+ createCollection: () => new ome()
+ }, (r) => /*#__PURE__*/ F.createElement(dme, {
props: e,
forwardedRef: t,
selectionState: n,
collection: r
}));
-}), cme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(MR);
- return n ? /*#__PURE__*/ F.createElement(ER.div, {
+}), ume = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(PR);
+ return n ? /*#__PURE__*/ F.createElement(OR.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(ER.table, {
+ }) : /*#__PURE__*/ F.createElement(OR.table, {
...e,
ref: t
});
-}), XB = {
+}), QB = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -41540,26 +41565,26 @@ var ime = class extends ES {
rtl: "ArrowRight"
}
};
-function lme({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
- [e, t] = SR(e, t, DR);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, F.useContext)(qB);
- t = hw((0, F.useMemo)(() => ow(t, c?.tableRef), [t, c?.tableRef]));
- let [l, u] = bE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+function dme({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
+ [e, t] = wR(e, t, kR);
+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, F.useContext)(YB);
+ t = vw((0, F.useMemo)(() => lw(t, c?.tableRef), [t, c?.tableRef]));
+ let [l, u] = CE(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 = tme({
+ let d = rme({
...s,
collection: r,
children: void 0,
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = nme(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, F.useContext)(MR), { dragAndDropHooks: _ } = e, { gridProps: v } = fce({
+ }), f = ime(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, F.useContext)(PR), { dragAndDropHooks: _ } = e, { gridProps: v } = dce({
...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 } = eT(), [k] = (0, F.useState)(() => new BB());
+ let S, C, w, T = !1, E = null, D = (0, F.useRef)(null), { direction: O } = rT(), [k] = (0, F.useState)(() => new HB());
if (b && _) {
S = _.useDraggableCollectionState({
collection: f.collection,
@@ -41574,7 +41599,7 @@ function lme({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
collection: f.collection,
selectionManager: y
});
- let e = new UE({
+ let e = new KE({
collection: f.collection,
disabledKeys: y.disabledKeys,
disabledBehavior: y.disabledBehavior,
@@ -41594,12 +41619,12 @@ function lme({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
let t = C?.target;
if (t && t.type === "item" && t.dropPosition === "on") {
let n = d.collection.getItem(t.key);
- (e.key === XB.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === XB.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
+ (e.key === QB.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === QB.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
}
}
}, C, t), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: A, isFocused: j, isFocusVisible: M } = JD(), ee = bR({
+ let { focusProps: A, isFocused: j, isFocusVisible: M } = ZD(), ee = SR({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
@@ -41615,20 +41640,20 @@ function lme({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
tableLayout: "fixed",
width: "min-content"
}));
- let ne = cT(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(yR, { values: [
- [JB, f],
- [YB, P],
- [Fz, {
+ let ne = dT(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(xR, { values: [
+ [XB, f],
+ [ZB, P],
+ [Lz, {
dragAndDropHooks: _,
dragState: S,
dropState: C
}],
- [Iz, { render: bme }],
- [DR, null],
- [OR, null]
- ] }, /*#__PURE__*/ F.createElement(MT, null, /*#__PURE__*/ F.createElement(cme, {
- ...K(ne, ee, v, A, w?.collectionProps),
+ [Rz, { render: Sme }],
+ [kR, null],
+ [AR, null]
+ ] }, /*#__PURE__*/ F.createElement(FT, null, /*#__PURE__*/ F.createElement(ume, {
+ ...q(ne, ee, v, A, w?.collectionProps),
style: te,
ref: t,
slot: e.slot || void 0,
@@ -41637,55 +41662,55 @@ function lme({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
"data-drop-target": T || void 0,
"data-focused": j || void 0,
"data-focus-visible": M || void 0
- }, /*#__PURE__*/ F.createElement(Bz, null, /*#__PURE__*/ F.createElement(g, {
+ }, /*#__PURE__*/ F.createElement(Hz, null, /*#__PURE__*/ F.createElement(g, {
collection: f.collection,
scrollRef: c?.scrollRef ?? t,
- persistedKeys: Rz(y, _, C)
+ persistedKeys: Bz(y, _, C)
})))), E);
}
-var ume = /*#__PURE__*/ (0, F.createContext)(null), ZB = class extends SS {
+var fme = /*#__PURE__*/ (0, F.createContext)(null), $B = class extends TS {
static {
this.type = "tableheader";
}
-}, dme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(MR);
- return n ? /*#__PURE__*/ F.createElement(ER.div, {
+}, pme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(PR);
+ return n ? /*#__PURE__*/ F.createElement(OR.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(ER.thead, {
+ }) : /*#__PURE__*/ F.createElement(OR.thead, {
...e,
ref: t
});
-}), QB = /*#__PURE__*/ kw(ZB, (e, t) => {
- let n = (0, F.useContext)(JB).collection, r = AS({
+}), eV = /*#__PURE__*/ Mw($B, (e, t) => {
+ let n = (0, F.useContext)(XB).collection, r = NS({
items: n.headerRows,
children: (0, F.useCallback)((e) => {
switch (e.type) {
- case "headerrow": return /*#__PURE__*/ F.createElement(pme, { item: e });
+ case "headerrow": return /*#__PURE__*/ F.createElement(hme, { item: e });
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = ij(), { hoverProps: a, isHovered: o } = QD({
+ }), { rowGroupProps: i } = lj(), { hoverProps: a, isHovered: o } = tO({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), s = bR({
+ }), s = SR({
...e,
children: void 0,
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
- return /*#__PURE__*/ F.createElement(dme, {
- ...K(cT(e, { global: !0 }), i, a),
+ return /*#__PURE__*/ F.createElement(pme, {
+ ...q(dT(e, { global: !0 }), i, a),
...s,
ref: t,
"data-hovered": o || void 0
}, r);
-}, (e) => /*#__PURE__*/ F.createElement(Mw, {
+}, (e) => /*#__PURE__*/ F.createElement(Fw, {
dependencies: e.dependencies,
items: e.columns
-}, e.children)), fme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(MR);
+}, e.children)), mme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(PR);
return n ? /*#__PURE__*/ F.createElement("div", {
...e,
ref: t
@@ -41694,41 +41719,41 @@ var ume = /*#__PURE__*/ (0, F.createContext)(null), ZB = class extends SS {
ref: t
});
});
-function pme({ item: e }) {
- let t = (0, F.useRef)(null), n = (0, F.useContext)(JB), { isVirtualized: r, CollectionBranch: i } = (0, F.useContext)(MR), { rowProps: a } = vce({
+function hme({ item: e }) {
+ let t = (0, F.useRef)(null), n = (0, F.useContext)(XB), { isVirtualized: r, CollectionBranch: i } = (0, F.useContext)(PR), { rowProps: a } = _ce({
node: e,
isVirtualized: r
- }, n, t), { checkboxProps: o } = Tce(n);
- return /*#__PURE__*/ F.createElement(fme, {
+ }, n, t), { checkboxProps: o } = wce(n);
+ return /*#__PURE__*/ F.createElement(mme, {
...a,
ref: t
- }, /*#__PURE__*/ F.createElement(yR, { values: [[UR, { slots: { selection: o } }], [WR, { slots: { selection: o } }]] }, /*#__PURE__*/ F.createElement(i, {
+ }, /*#__PURE__*/ F.createElement(xR, { values: [[GR, { slots: { selection: o } }], [KR, { slots: { selection: o } }]] }, /*#__PURE__*/ F.createElement(i, {
collection: n.collection,
parent: e
})));
}
-var mme = class extends SS {
+var gme = class extends TS {
static {
this.type = "column";
}
-}, hme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(MR);
- return n ? /*#__PURE__*/ F.createElement(ER.div, {
+}, _me = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(PR);
+ return n ? /*#__PURE__*/ F.createElement(OR.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(ER.th, {
+ }) : /*#__PURE__*/ F.createElement(OR.th, {
...e,
ref: t
});
-}), $B = /*#__PURE__*/ Ow(mme, (e, t, n) => {
- let r = hw(t), i = (0, F.useContext)(JB), { isVirtualized: a } = (0, F.useContext)(MR), { columnHeaderProps: o, isPressed: s } = hce({
+}), tV = /*#__PURE__*/ jw(gme, (e, t, n) => {
+ let r = vw(t), i = (0, F.useContext)(XB), { isVirtualized: a } = (0, F.useContext)(PR), { columnHeaderProps: o, isPressed: s } = mce({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = JD(), d = (0, F.useContext)(YB), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = ZD(), d = (0, F.useContext)(ZB), f = !1;
d && (f = d.resizingColumn === n.key);
- let { hoverProps: p, isHovered: m } = QD({ isDisabled: !e.allowsSorting }), h = bR({
+ let { hoverProps: p, isHovered: m } = tO({ isDisabled: !e.allowsSorting }), h = SR({
...e,
id: void 0,
children: n.rendered,
@@ -41754,9 +41779,9 @@ var mme = class extends SS {
...g,
width: d.getColumnWidth(n.key)
});
- let _ = cT(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ F.createElement(hme, {
- ...K(_, o, u, p),
+ let _ = dT(e, { global: !0 });
+ return delete _.id, /*#__PURE__*/ F.createElement(_me, {
+ ...q(_, o, u, p),
...h,
style: g,
ref: r,
@@ -41767,29 +41792,29 @@ var mme = class extends SS {
"data-resizing": f || void 0,
"data-allows-sorting": n.props.allowsSorting || void 0,
"data-sort-direction": i.sortDescriptor?.column === n.key ? i.sortDescriptor.direction : void 0
- }, /*#__PURE__*/ F.createElement(yR, { values: [[eV, {
+ }, /*#__PURE__*/ F.createElement(xR, { values: [[nV, {
column: n,
triggerRef: r
- }], [MR, AR]] }, h.children));
-}), eV = /*#__PURE__*/ (0, F.createContext)(null), gme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let n = (0, F.useContext)(YB);
+ }], [PR, MR]] }, h.children));
+}), nV = /*#__PURE__*/ (0, F.createContext)(null), vme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let n = (0, F.useContext)(ZB);
if (!n) throw Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
- let r = oT(rme(Pz), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: o } = (0, F.useContext)(qB), { column: s, triggerRef: c } = (0, F.useContext)(eV), l = (0, F.useRef)(null), { resizerProps: u, inputProps: d, isResizing: f, isMouseResizing: p } = _ce({
+ let r = lT(ame(Iz), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: o } = (0, F.useContext)(YB), { column: s, triggerRef: c } = (0, F.useContext)(nV), l = (0, F.useRef)(null), { resizerProps: u, inputProps: d, isResizing: f, isMouseResizing: p } = gce({
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 } = JD(), { hoverProps: _, isHovered: v } = QD(e), y = n.getColumnMinWidth(s.key) >= n.getColumnWidth(s.key), b = n.getColumnMaxWidth(s.key) <= n.getColumnWidth(s.key), { direction: x } = eT(), S = "both";
+ }, n, l), { focusProps: m, isFocused: h, isFocusVisible: g } = ZD(), { hoverProps: _, isHovered: v } = tO(e), y = n.getColumnMinWidth(s.key) >= n.getColumnWidth(s.key), b = n.getColumnMaxWidth(s.key) <= n.getColumnWidth(s.key), { direction: x } = rT(), S = "both";
S = y ? x === "rtl" ? "right" : "left" : b ? x === "rtl" ? "left" : "right" : "both";
- let C = hw(t), [w, T] = (0, F.useState)("");
+ let C = vw(t), [w, T] = (0, F.useState)("");
(0, F.useEffect)(() => {
if (!C.current) return;
let e = window.getComputedStyle(C.current);
T(e.cursor);
}, [C, S]);
- let E = bR({
+ let E = SR({
...e,
defaultClassName: "react-aria-ColumnResizer",
values: {
@@ -41799,11 +41824,11 @@ var mme = class extends SS {
isHovered: v,
resizableDirection: S
}
- }), D = cT(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(ER.div, {
+ }), D = dT(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(OR.div, {
ref: C,
role: "presentation",
- ...K(D, E, u, _),
+ ...q(D, E, u, _),
"data-hovered": v || void 0,
"data-focused": h || void 0,
"data-focus-visible": g || void 0,
@@ -41811,7 +41836,7 @@ var mme = class extends SS {
"data-resizable-direction": S
}, E.children, /*#__PURE__*/ F.createElement("input", {
ref: l,
- ...K(d, m)
+ ...q(d, m)
}), f && p && /*#__PURE__*/ It.createPortal(/*#__PURE__*/ F.createElement("div", {
style: {
position: "fixed",
@@ -41823,24 +41848,24 @@ var mme = class extends SS {
},
"data-testid": "cursor-overlay"
}), document.body));
-}), tV = class extends CS {
+}), rV = class extends ES {
static {
this.type = "tablebody";
}
-}, _me = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(MR);
- return n ? /*#__PURE__*/ F.createElement(ER.div, {
+}, yme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(PR);
+ return n ? /*#__PURE__*/ F.createElement(OR.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(ER.tbody, {
+ }) : /*#__PURE__*/ F.createElement(OR.tbody, {
...e,
ref: t
});
-}), nV = /*#__PURE__*/ kw(tV, (e, t, n) => {
- let r = (0, F.useContext)(JB), { isVirtualized: i } = (0, F.useContext)(MR), a = r.collection, { CollectionBranch: o } = (0, F.useContext)(MR), { dragAndDropHooks: s, dropState: c } = (0, F.useContext)(Fz), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
+}), iV = /*#__PURE__*/ Mw(rV, (e, t, n) => {
+ let r = (0, F.useContext)(XB), { isVirtualized: i } = (0, F.useContext)(PR), a = r.collection, { CollectionBranch: o } = (0, F.useContext)(PR), { dragAndDropHooks: s, dropState: c } = (0, F.useContext)(Lz), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
- }, p = bR({
+ }, p = SR({
...e,
id: void 0,
children: void 0,
@@ -41849,33 +41874,33 @@ var mme = class extends SS {
}), m, h = a.columnCount;
if (d && e.renderEmptyState && r) {
let t = {}, n = {}, r = {};
- i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ F.createElement(iV, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ F.createElement(oV, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ F.createElement(oV, {
+ }, /*#__PURE__*/ F.createElement(cV, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = ij(), _ = cT(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(_me, {
- ...K(_, p, g),
+ let { rowGroupProps: g } = lj(), _ = dT(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(yme, {
+ ...q(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ F.createElement(Tme, null), /*#__PURE__*/ F.createElement(o, {
+ }, l && /*#__PURE__*/ F.createElement(Dme, null), /*#__PURE__*/ F.createElement(o, {
collection: a,
parent: n,
- renderDropIndicator: Lz(s, c)
+ renderDropIndicator: zz(s, c)
}), m);
});
-(class extends CS {
+(class extends ES {
static {
this.type = "tablefooter";
}
});
-var rV = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), vme = class extends SS {
+var aV = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), bme = class extends TS {
static {
this.type = "item";
}
@@ -41887,31 +41912,31 @@ var rV = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), vm
}
return null;
}
-}, iV = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(MR);
- return n ? /*#__PURE__*/ F.createElement(ER.div, {
+}, oV = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(PR);
+ return n ? /*#__PURE__*/ F.createElement(OR.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(ER.tr, {
+ }) : /*#__PURE__*/ F.createElement(OR.tr, {
...e,
ref: t
});
-}), aV = /*#__PURE__*/ kw(vme, (e, t, n) => {
- let r = hw(t), i = (0, F.useContext)(JB), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(Fz), { isVirtualized: c, CollectionBranch: l } = (0, F.useContext)(MR), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = xce({
+}), sV = /*#__PURE__*/ Mw(bme, (e, t, n) => {
+ let r = vw(t), i = (0, F.useContext)(XB), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(Lz), { isVirtualized: c, CollectionBranch: l } = (0, F.useContext)(PR), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = bce({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
- }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = JD(), { isFocusVisible: _, focusProps: v } = JD({ within: !0 }), { hoverProps: y, isHovered: b } = QD({
+ }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = ZD(), { isFocusVisible: _, focusProps: v } = ZD({ within: !0 }), { hoverProps: y, isHovered: b } = tO({
isDisabled: !p.allowsSelection && !p.hasAction && !u,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { checkboxProps: x } = wce({ key: n.key }, i), S;
+ }), { checkboxProps: x } = Cce({ 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 } = kE();
+ let C, w = (0, F.useRef)(null), { visuallyHiddenProps: T } = ME();
s && a && (C = a.useDropIndicator({ target: {
type: "item",
key: n.key,
@@ -41921,7 +41946,7 @@ var rV = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), vm
(0, F.useEffect)(() => {
o && E.current;
}, []);
- let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = bR({
+ let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = SR({
...k,
id: void 0,
defaultClassName: "react-aria-Row",
@@ -41942,11 +41967,11 @@ var rV = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), vm
isExpanded: j,
level: n.level + 1
}
- }), ee = cT(e, { global: !0 });
- return delete ee.id, delete ee.onClick, /*#__PURE__*/ F.createElement(F.Fragment, null, C && !C.isHidden && /*#__PURE__*/ F.createElement(iV, {
+ }), ee = dT(e, { global: !0 });
+ return delete ee.id, delete ee.onClick, /*#__PURE__*/ F.createElement(F.Fragment, null, C && !C.isHidden && /*#__PURE__*/ F.createElement(oV, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ F.createElement(oV, {
+ }, /*#__PURE__*/ F.createElement(cV, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
@@ -41955,8 +41980,8 @@ var rV = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), vm
...T,
...C.dropIndicatorProps,
ref: w
- }))), /*#__PURE__*/ F.createElement(iV, {
- ...K(ee, M, d, g, y, S?.dragProps, v),
+ }))), /*#__PURE__*/ F.createElement(oV, {
+ ...q(ee, M, d, g, y, S?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
"data-selected": p.isSelected || void 0,
@@ -41971,17 +41996,17 @@ var rV = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), vm
"data-expanded": j || void 0,
"data-has-child-items": A || void 0,
"data-level": n.level + 1
- }, /*#__PURE__*/ F.createElement(yR, { values: [
- [UR, { slots: {
- [vR]: {},
+ }, /*#__PURE__*/ F.createElement(xR, { values: [
+ [GR, { slots: {
+ [bR]: {},
selection: x
} }],
- [WR, { slots: {
- [vR]: {},
+ [KR, { slots: {
+ [bR]: {},
selection: x
} }],
- [IR, { slots: {
- [vR]: {},
+ [RR, { slots: {
+ [bR]: {},
chevron: f,
drag: {
...S?.dragButtonProps,
@@ -41989,8 +42014,8 @@ var rV = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), vm
style: { pointerEvents: "none" }
}
} }],
- [Vz, { isSelected: p.isSelected }],
- [rV, { isFocusVisibleWithinRow: _ }]
+ [Uz, { isSelected: p.isSelected }],
+ [aV, { isFocusVisibleWithinRow: _ }]
] }, /*#__PURE__*/ F.createElement(l, {
collection: i.collection,
parent: n
@@ -41998,34 +42023,34 @@ var rV = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), vm
}, (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(Mw, {
+ return /*#__PURE__*/ F.createElement(Fw, {
dependencies: t,
items: e.columns,
idScope: e.id
}, e.children);
-}), yme = class extends SS {
+}), xme = class extends TS {
static {
this.type = "cell";
}
-}, oV = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(MR);
- return n ? /*#__PURE__*/ F.createElement(ER.div, {
+}, cV = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(PR);
+ return n ? /*#__PURE__*/ F.createElement(OR.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(ER.td, {
+ }) : /*#__PURE__*/ F.createElement(OR.td, {
...e,
ref: t
});
-}), sV = /*#__PURE__*/ Ow(yme, (e, t, n) => {
- let r = hw(t), i = (0, F.useContext)(JB), { dragState: a } = (0, F.useContext)(Fz), { isVirtualized: o } = (0, F.useContext)(MR);
+}), lV = /*#__PURE__*/ jw(xme, (e, t, n) => {
+ let r = vw(t), i = (0, F.useContext)(XB), { dragState: a } = (0, F.useContext)(Lz), { isVirtualized: o } = (0, F.useContext)(PR);
n.column = i.collection.columns[n.index];
- let { gridCellProps: s, isPressed: c } = pce({
+ let { gridCellProps: s, isPressed: c } = fce({
node: n,
shouldSelectOnPressUp: !!a,
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = JD(), { hoverProps: f, isHovered: p } = QD({}), { isFocusVisibleWithinRow: m } = (0, F.useContext)(rV), 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 = bR({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = ZD(), { hoverProps: f, isHovered: p } = tO({}), { isFocusVisibleWithinRow: m } = (0, F.useContext)(aV), 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 = SR({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -42044,9 +42069,9 @@ var rV = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), vm
level: _.level + 1,
isTreeColumn: n.column.key === i.treeColumn
}
- }), S = cT(e, { global: !0 });
- return delete S.id, /*#__PURE__*/ F.createElement(oV, {
- ...K(S, x, s, d, f),
+ }), S = dT(e, { global: !0 });
+ return delete S.id, /*#__PURE__*/ F.createElement(cV, {
+ ...q(S, x, s, d, f),
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
@@ -42059,14 +42084,14 @@ var rV = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), vm
"data-level": _.level + 1,
"data-tree-column": n.column.key === i.treeColumn || void 0,
"data-disabled": b || void 0
- }, /*#__PURE__*/ F.createElement(MR.Provider, { value: AR }, x.children));
+ }, /*#__PURE__*/ F.createElement(PR.Provider, { value: MR }, x.children));
});
-function bme(e, t) {
- t = hw(t);
- let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(Fz), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+function Sme(e, t) {
+ t = vw(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(Lz), 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;
- return /*#__PURE__*/ F.createElement(wme, {
+ return /*#__PURE__*/ F.createElement(Eme, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -42075,40 +42100,40 @@ function bme(e, t) {
ref: t
});
}
-var xme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(MR);
- return n ? /*#__PURE__*/ F.createElement(ER.div, {
+var Cme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(PR);
+ return n ? /*#__PURE__*/ F.createElement(OR.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(ER.tr, {
+ }) : /*#__PURE__*/ F.createElement(OR.tr, {
...e,
ref: t
});
-}), Sme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(MR);
- return n ? /*#__PURE__*/ F.createElement(ER.div, {
+}), wme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(PR);
+ return n ? /*#__PURE__*/ F.createElement(OR.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(ER.td, {
+ }) : /*#__PURE__*/ F.createElement(OR.td, {
...e,
ref: t
});
});
-function Cme(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, F.useContext)(JB), { visuallyHiddenProps: c } = kE(), l = bR({
+function Tme(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, F.useContext)(XB), { visuallyHiddenProps: c } = ME(), l = SR({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ F.createElement(xme, {
- ...cT(e, { global: !0 }),
+ return /*#__PURE__*/ F.createElement(Cme, {
+ ...dT(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ F.createElement(Sme, {
+ }, /*#__PURE__*/ F.createElement(wme, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
@@ -42119,14 +42144,14 @@ function Cme(e, t) {
ref: i
}), l.children));
}
-var wme = /*#__PURE__*/ (0, F.forwardRef)(Cme);
-function Tme() {
- let e = (0, F.useContext)(JB), { dragAndDropHooks: t, dropState: n } = (0, F.useContext)(Fz), r = (0, F.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = kE();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ F.createElement(iV, {
+var Eme = /*#__PURE__*/ (0, F.forwardRef)(Tme);
+function Dme() {
+ let e = (0, F.useContext)(XB), { dragAndDropHooks: t, dropState: n } = (0, F.useContext)(Lz), r = (0, F.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = ME();
+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ F.createElement(oV, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ F.createElement(oV, {
+ }, /*#__PURE__*/ F.createElement(cV, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
@@ -42137,9 +42162,9 @@ function Tme() {
ref: r
})));
}
-Ow(wS, function(e, t, n) {
- let r = (0, F.useContext)(JB), { isVirtualized: i } = (0, F.useContext)(MR), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, F.useRef)(null);
- eB((0, F.useMemo)(() => ({
+jw(DS, function(e, t, n) {
+ let r = (0, F.useContext)(XB), { isVirtualized: i } = (0, F.useContext)(PR), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, F.useRef)(null);
+ nB((0, F.useMemo)(() => ({
onLoadMore: o,
collection: r?.collection,
sentinelRef: u,
@@ -42149,7 +42174,7 @@ Ow(wS, function(e, t, n) {
s,
r?.collection
]), u);
- let d = bR({
+ let d = SR({
...c,
id: void 0,
children: n.rendered,
@@ -42157,10 +42182,10 @@ Ow(wS, function(e, t, n) {
defaultStyle: { "--table-row-level": n.level + 1 },
values: void 0
}), f = {}, p = {}, m = {};
- return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(iV, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(oV, {
style: { height: 0 },
- inert: Uz(!0)
- }, /*#__PURE__*/ F.createElement(oV, { style: {
+ inert: Gz(!0)
+ }, /*#__PURE__*/ F.createElement(cV, { style: {
padding: 0,
border: 0
} }, /*#__PURE__*/ F.createElement("div", {
@@ -42171,22 +42196,22 @@ Ow(wS, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ F.createElement(iV, {
- ...K(cT(e, { global: !0 }), f),
+ }))), a && d.children && /*#__PURE__*/ F.createElement(oV, {
+ ...q(dT(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ F.createElement(oV, {
+ }, /*#__PURE__*/ F.createElement(cV, {
role: "rowheader",
...p,
style: m
}, d.children)));
});
// node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
-function Eme(e) {
- let [t, n] = bE(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, F.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = Qz({
+function Ome(e) {
+ let [t, n] = CE(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, F.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = eB({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -42208,24 +42233,24 @@ function Eme(e) {
};
}
// node_modules/react-stately/dist/private/tabs/useTabListState.mjs
-function Dme(e) {
- let t = Eme({
+function kme(e) {
+ let t = Ome({
...e,
onSelectionChange: e.onSelectionChange ? (t) => {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? cV(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ defaultSelectedKey: e.defaultSelectedKey ?? uV(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
}), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, F.useRef)(i);
return (0, F.useEffect)(() => {
let o = i;
- e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = cV(r, t.disabledKeys), o != null && n.setSelectedKeys([o])), (o != null && n.focusedKey == null || !n.isFocused && o !== a.current) && n.setFocusedKey(o), a.current = o;
+ e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = uV(r, t.disabledKeys), o != null && n.setSelectedKeys([o])), (o != null && n.focusedKey == null || !n.isFocused && o !== a.current) && n.setFocusedKey(o), a.current = o;
}), {
...t,
isDisabled: e.isDisabled || !1
};
}
-function cV(e, t) {
+function uV(e, t) {
let n = null;
if (e) {
for (n = e.getFirstKey(); n != null && (t.has(n) || e.getItem(n)?.props?.isDisabled) && n !== e.getLastKey();) n = e.getKeyAfter(n);
@@ -42234,24 +42259,24 @@ function cV(e, t) {
return n;
}
// node_modules/react-aria-components/dist/private/Tabs.mjs
-var lV = /*#__PURE__*/ (0, F.createContext)(null), uV = /*#__PURE__*/ (0, F.createContext)(null), Ome = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = SR(e, t, lV);
+var dV = /*#__PURE__*/ (0, F.createContext)(null), fV = /*#__PURE__*/ (0, F.createContext)(null), Ame = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = wR(e, t, dV);
let { children: n, orientation: r = "horizontal" } = e;
return n = (0, F.useMemo)(() => typeof n == "function" ? n({
orientation: r,
defaultChildren: null
- }) : n, [n, r]), /*#__PURE__*/ F.createElement(Tw, { content: n }, (n) => /*#__PURE__*/ F.createElement(kme, {
+ }) : n, [n, r]), /*#__PURE__*/ F.createElement(Ow, { content: n }, (n) => /*#__PURE__*/ F.createElement(jme, {
props: e,
collection: n,
tabsRef: t
}));
});
-function kme({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = Dme({
+function jme({ props: e, tabsRef: t, collection: n }) {
+ let { orientation: r = "horizontal" } = e, i = kme({
...e,
collection: n,
children: void 0
- }), { focusProps: a, isFocused: o, isFocusVisible: s } = JD({ within: !0 }), c = (0, F.useMemo)(() => ({
+ }), { focusProps: a, isFocused: o, isFocusVisible: s } = ZD({ within: !0 }), c = (0, F.useMemo)(() => ({
orientation: r,
isFocusWithin: o,
isFocusVisible: s
@@ -42259,33 +42284,33 @@ function kme({ props: e, tabsRef: t, collection: n }) {
r,
o,
s
- ]), l = bR({
+ ]), l = SR({
...e,
defaultClassName: "react-aria-Tabs",
values: c
- }), u = cT(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(ER.div, {
- ...K(u, l, a),
+ }), u = dT(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(OR.div, {
+ ...q(u, l, a),
ref: t,
slot: e.slot || void 0,
"data-focused": o || void 0,
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ F.createElement(yR, { values: [[lV, e], [uV, i]] }, l.children));
+ }, /*#__PURE__*/ F.createElement(xR, { values: [[dV, e], [fV, i]] }, l.children));
}
-var dV = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return (0, F.useContext)(uV) ? /*#__PURE__*/ F.createElement(Ame, {
+var pV = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ return (0, F.useContext)(fV) ? /*#__PURE__*/ F.createElement(Mme, {
props: e,
forwardedRef: t
- }) : /*#__PURE__*/ F.createElement(Mw, e);
+ }) : /*#__PURE__*/ F.createElement(Fw, e);
});
-function Ame({ props: e, forwardedRef: t }) {
- let n = (0, F.useContext)(uV), { CollectionRoot: r } = (0, F.useContext)(MR), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = xR(lV), o = hw(t), { tabListProps: s } = Oce({
+function Mme({ props: e, forwardedRef: t }) {
+ let n = (0, F.useContext)(fV), { CollectionRoot: r } = (0, F.useContext)(PR), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = CR(dV), o = vw(t), { tabListProps: s } = Dce({
...e,
orientation: i,
keyboardActivation: a
- }, n, o), c = bR({
+ }, n, o), c = SR({
...e,
children: null,
defaultClassName: "react-aria-TabList",
@@ -42293,30 +42318,30 @@ function Ame({ props: e, forwardedRef: t }) {
orientation: i,
state: n
}
- }), l = cT(e, { global: !0 });
- return delete l.id, /*#__PURE__*/ F.createElement(ER.div, {
- ...K(l, c, s),
+ }), l = dT(e, { global: !0 });
+ return delete l.id, /*#__PURE__*/ F.createElement(OR.div, {
+ ...q(l, c, s),
ref: o,
"data-orientation": i || void 0
- }, /*#__PURE__*/ F.createElement(Bz, null, /*#__PURE__*/ F.createElement(r, {
+ }, /*#__PURE__*/ F.createElement(Hz, null, /*#__PURE__*/ F.createElement(r, {
collection: n.collection,
- persistedKeys: NR(n.selectionManager.focusedKey)
+ persistedKeys: FR(n.selectionManager.focusedKey)
})));
}
-var jme = /*#__PURE__*/ Ow(class extends SS {
+var Nme = /*#__PURE__*/ jw(class extends TS {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, F.useContext)(uV), i = hw(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Ece({
+ let r = (0, F.useContext)(fV), i = vw(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Tce({
key: n.key,
...e
- }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = JD(), { hoverProps: f, isHovered: p } = QD({
+ }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = ZD(), { hoverProps: f, isHovered: p } = tO({
isDisabled: s,
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
onHoverChange: e.onHoverChange
- }), m = bR({
+ }), m = SR({
...e,
id: void 0,
children: n.rendered,
@@ -42329,9 +42354,9 @@ var jme = /*#__PURE__*/ Ow(class extends SS {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? ER.a : ER.div, g = cT(e, { global: !0 });
+ }), h = n.props.href ? OR.a : OR.div, g = dT(e, { global: !0 });
return delete g.id, delete g.onClick, /*#__PURE__*/ F.createElement(h, {
- ...K(g, m, a, l, f),
+ ...q(g, m, a, l, f),
ref: i,
"data-selected": o || void 0,
"data-disabled": s || void 0,
@@ -42339,54 +42364,54 @@ var jme = /*#__PURE__*/ Ow(class extends SS {
"data-focus-visible": d || void 0,
"data-pressed": c || void 0,
"data-hovered": p || void 0
- }, /*#__PURE__*/ F.createElement(Vz.Provider, { value: { isSelected: o } }, m.children));
-}), Mme = /*#__PURE__*/ bw(function(e, t) {
- let n = (0, F.useContext)(uV), r = hw(t), i = n.selectedKey === e.id, [a, o] = (0, F.useState)(n.selectedKey == null ? null : i);
+ }, /*#__PURE__*/ F.createElement(Uz.Provider, { value: { isSelected: o } }, m.children));
+}), Pme = /*#__PURE__*/ Cw(function(e, t) {
+ let n = (0, F.useContext)(fV), r = vw(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 = oB(r, i);
- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ F.createElement(Nme, {
+ let s = cB(r, i);
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ F.createElement(Fme, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
isExiting: s
});
});
-function Nme(e) {
- let t = (0, F.useContext)(uV), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = kce(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = JD(), d = t.selectedKey === e.id, f = aB(r) && !i, p = bR({
+function Fme(e) {
+ let t = (0, F.useContext)(fV), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Oce(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = ZD(), d = t.selectedKey === e.id, f = sB(r) && !i, p = SR({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
isFocused: l,
isFocusVisible: u,
- isInert: Uz(!d),
+ isInert: Gz(!d),
isEntering: f,
isExiting: a,
state: t
}
- }), m = cT(o, { global: !0 });
+ }), m = dT(o, { global: !0 });
delete m.id;
- let h = d ? K(m, s, c, p) : K(m, p);
- return /*#__PURE__*/ F.createElement(ER.div, {
+ let h = d ? q(m, s, c, p) : q(m, p);
+ return /*#__PURE__*/ F.createElement(OR.div, {
...h,
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
- inert: Uz(!d || e.inert),
+ inert: Gz(!d || e.inert),
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ F.createElement(yR, { values: [[lV, null], [uV, null]] }, /*#__PURE__*/ F.createElement(MR.Provider, { value: AR }, p.children)));
+ }, /*#__PURE__*/ F.createElement(xR, { values: [[dV, null], [fV, null]] }, /*#__PURE__*/ F.createElement(PR.Provider, { value: MR }, p.children)));
}
// node_modules/react-aria-components/dist/private/TextArea.mjs
-var fV = /*#__PURE__*/ (0, F.createContext)({}), Pme = (e) => {
+var mV = /*#__PURE__*/ (0, F.createContext)({}), Ime = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, Fme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = SR(e, t, fV);
- let { hoverProps: n, isHovered: r } = QD(e), { isFocused: i, isFocusVisible: a, focusProps: o } = JD({
+}, Lme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = wR(e, t, mV);
+ let { hoverProps: n, isHovered: r } = tO(e), { isFocused: i, isFocusVisible: a, focusProps: o } = ZD({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = bR({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = SR({
...e,
values: {
isHovered: r,
@@ -42397,8 +42422,8 @@ var fV = /*#__PURE__*/ (0, F.createContext)({}), Pme = (e) => {
},
defaultClassName: "react-aria-TextArea"
});
- return /*#__PURE__*/ F.createElement(ER.textarea, {
- ...K(Pme(e), o, n),
+ return /*#__PURE__*/ F.createElement(OR.textarea, {
+ ...q(Ime(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -42407,18 +42432,18 @@ var fV = /*#__PURE__*/ (0, F.createContext)({}), Pme = (e) => {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), Ime = /*#__PURE__*/ (0, F.createContext)(null), Lme = /*#__PURE__*/ bw(function(e, t) {
- [e, t] = SR(e, t, Ime);
- let { validationBehavior: n } = xR(HR) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useRef)(null);
- [e, i] = SR(e, i, OR);
- let [a, o] = CR(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, F.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = $oe({
- ...wR(e),
+}), Rme = /*#__PURE__*/ (0, F.createContext)(null), zme = /*#__PURE__*/ Cw(function(e, t) {
+ [e, t] = wR(e, t, Rme);
+ let { validationBehavior: n } = CR(WR) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useRef)(null);
+ [e, i] = wR(e, i, AR);
+ let [a, o] = TR(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, F.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = ese({
+ ...ER(e),
inputElementType: s,
label: o,
validationBehavior: r
}, i), m = (0, F.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
- }, [i]), h = bR({
+ }, [i]), h = SR({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -42427,8 +42452,8 @@ var fV = /*#__PURE__*/ (0, F.createContext)({}), Pme = (e) => {
isRequired: e.isRequired || !1
},
defaultClassName: "react-aria-TextField"
- }), g = cT(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ F.createElement(ER.div, {
+ }), g = dT(e, { global: !0 });
+ return delete g.id, /*#__PURE__*/ F.createElement(OR.div, {
...g,
...h,
ref: t,
@@ -42437,31 +42462,31 @@ var fV = /*#__PURE__*/ (0, F.createContext)({}), Pme = (e) => {
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ F.createElement(yR, { values: [
- [PR, {
+ }, /*#__PURE__*/ F.createElement(xR, { values: [
+ [IR, {
...l,
ref: a
}],
- [JR, {
+ [XR, {
...u,
ref: m
}],
- [fV, {
+ [mV, {
...u,
ref: m
}],
- [KR, {
+ [JR, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [BR, { slots: {
+ [HR, { slots: {
description: d,
errorMessage: f
} }],
- [VR, p]
+ [UR, p]
] }, h.children));
-}), Rme = class e extends ES {
+}), Bme = class e extends kS {
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;
@@ -42533,16 +42558,16 @@ var fV = /*#__PURE__*/ (0, F.createContext)({}), Pme = (e) => {
constructor(...e) {
super(...e), this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, zme = /*#__PURE__*/ (0, F.createContext)(null), pV = /*#__PURE__*/ (0, F.createContext)(null), Bme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return [e, t] = SR(e, t, zme), /*#__PURE__*/ F.createElement(Tw, {
- content: /*#__PURE__*/ F.createElement(Mw, e),
- createCollection: () => new Rme()
- }, (n) => /*#__PURE__*/ F.createElement(Vme, {
+}, Vme = /*#__PURE__*/ (0, F.createContext)(null), hV = /*#__PURE__*/ (0, F.createContext)(null), Hme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ return [e, t] = wR(e, t, Vme), /*#__PURE__*/ F.createElement(Ow, {
+ content: /*#__PURE__*/ F.createElement(Fw, e),
+ createCollection: () => new Bme()
+ }, (n) => /*#__PURE__*/ F.createElement(Ume, {
props: e,
collection: n,
treeRef: t
}));
-}), mV = {
+}), gV = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -42552,17 +42577,17 @@ var fV = /*#__PURE__*/ (0, F.createContext)({}), Pme = (e) => {
rtl: "ArrowRight"
}
};
-function Vme({ props: e, collection: t, treeRef: n }) {
- let { dragAndDropHooks: r } = e, { direction: i } = eT(), a = VD({
+function Ume({ props: e, collection: t, treeRef: n }) {
+ let { dragAndDropHooks: r } = e, { direction: i } = rT(), a = WD({
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)(MR), [y, b] = bE(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));
- Jme(C, y) && t === x || (E(t.withExpandedKeys(C, y)), S(t), w(y));
- let D = fB({
+ let { selectionMode: u = "none", expandedKeys: d, defaultExpandedKeys: f, onExpandedChange: p, disabledBehavior: m = "all" } = e, { CollectionRoot: h, isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v } = (0, F.useContext)(PR), [y, b] = CE(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));
+ Xme(C, y) && t === x || (E(t.withExpandedKeys(C, y)), S(t), w(y));
+ let D = mB({
...e,
selectionMode: u,
expandedKeys: y,
@@ -42570,7 +42595,7 @@ function Vme({ props: e, collection: t, treeRef: n }) {
collection: T,
children: void 0,
disabledBehavior: m
- }), { gridProps: O } = Ace({
+ }), { gridProps: O } = kce({
...e,
isVirtualized: g,
layoutDelegate: _
@@ -42584,7 +42609,7 @@ function Vme({ props: e, collection: t, treeRef: n }) {
let e = r.DragPreview;
ee = r.renderDragPreview ? /*#__PURE__*/ F.createElement(e, { ref: N }, r.renderDragPreview) : null;
}
- let [te] = (0, F.useState)(() => new BB());
+ let [te] = (0, F.useState)(() => new HB());
if (s && r) {
A = r.useDroppableCollectionState({
collection: D.collection,
@@ -42592,7 +42617,7 @@ function Vme({ 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 UE({
+ let t = new KE({
collection: D.collection,
collator: a,
ref: n,
@@ -42614,12 +42639,12 @@ function Vme({ props: e, collection: t, treeRef: n }) {
let t = A?.target;
if (t && t.type === "item" && t.dropPosition === "on") {
let n = D.collection.getItem(t.key);
- (e.key === mV.expand[i] && n?.hasChildNodes && !D.expandedKeys.has(t.key) || e.key === mV.collapse[i] && n?.hasChildNodes && D.expandedKeys.has(t.key)) && D.toggleKey(t.key);
+ (e.key === gV.expand[i] && n?.hasChildNodes && !D.expandedKeys.has(t.key) || e.key === gV.collapse[i] && n?.hasChildNodes && D.expandedKeys.has(t.key)) && D.toggleKey(t.key);
}
}
}, A, n), M = A.isDropTarget({ type: "root" });
}
- let P = !(!o || k?.isDisabled), { focusProps: ne, isFocused: re, isFocusVisible: I } = JD(), ie = {
+ let P = !(!o || k?.isDisabled), { focusProps: ne, isFocused: re, isFocusVisible: I } = ZD(), ie = {
isEmpty: D.collection.size === 0,
isFocused: re,
isFocusVisible: I,
@@ -42627,7 +42652,7 @@ function Vme({ props: e, collection: t, treeRef: n }) {
selectionMode: D.selectionManager.selectionMode,
allowsDragging: !!P,
state: D
- }, ae = bR({
+ }, ae = SR({
...e,
children: void 0,
defaultClassName: "react-aria-Tree",
@@ -42644,9 +42669,9 @@ function Vme({ props: e, collection: t, treeRef: n }) {
style: { display: "contents" }
}, r));
}
- let se = cT(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(MT, null, /*#__PURE__*/ F.createElement(ER.div, {
- ...K(se, ae, O, ne, j?.collectionProps),
+ let se = dT(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(FT, null, /*#__PURE__*/ F.createElement(OR.div, {
+ ...q(se, ae, O, ne, j?.collectionProps),
ref: n,
slot: e.slot || void 0,
"data-empty": D.collection.size === 0 || void 0,
@@ -42655,54 +42680,54 @@ function Vme({ props: e, collection: t, treeRef: n }) {
"data-focus-visible": I || void 0,
"data-selection-mode": D.selectionManager.selectionMode === "none" ? void 0 : D.selectionManager.selectionMode,
"data-allows-dragging": !!P || void 0
- }, /*#__PURE__*/ F.createElement(yR, { values: [
- [pV, D],
- [Fz, {
+ }, /*#__PURE__*/ F.createElement(xR, { values: [
+ [hV, D],
+ [Lz, {
dragAndDropHooks: r,
dragState: k,
dropState: A
}],
- [Iz, { render: Wme }]
- ] }, s && /*#__PURE__*/ F.createElement(qme, null), /*#__PURE__*/ F.createElement(Bz, null, /*#__PURE__*/ F.createElement(h, {
+ [Rz, { render: Kme }]
+ ] }, s && /*#__PURE__*/ F.createElement(Yme, null), /*#__PURE__*/ F.createElement(Hz, null, /*#__PURE__*/ F.createElement(h, {
collection: D.collection,
- persistedKeys: Rz(D.selectionManager, r, A),
+ persistedKeys: Bz(D.selectionManager, r, A),
scrollRef: n,
- renderDropIndicator: Lz(r, A)
+ renderDropIndicator: zz(r, A)
}))), oe)), ee);
}
-var Hme = /*#__PURE__*/ Ow(class extends SS {
+var Wme = /*#__PURE__*/ jw(class extends TS {
static {
this.type = "content";
}
}, function(e) {
- let t = (0, F.useContext)(hV), n = bR({
+ let t = (0, F.useContext)(_V), n = SR({
children: e.children,
values: t
});
- return /*#__PURE__*/ F.createElement(MR.Provider, { value: AR }, n.children);
-}), hV = /*#__PURE__*/ (0, F.createContext)(null), Ume = /*#__PURE__*/ kw(class extends SS {
+ return /*#__PURE__*/ F.createElement(PR.Provider, { value: MR }, n.children);
+}), _V = /*#__PURE__*/ (0, F.createContext)(null), Gme = /*#__PURE__*/ Mw(class extends TS {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, F.useContext)(pV);
- t = hw(t);
- let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, F.useContext)(Fz), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = Hj({
+ let r = (0, F.useContext)(hV);
+ t = vw(t);
+ let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, F.useContext)(Lz), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = qj({
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: _ } = QD({
+ }, 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: _ } = tO({
isDisabled: !f.allowsSelection && !f.hasAction && !s,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { isFocusVisible: v, focusProps: y } = JD(), { isFocusVisible: b, focusProps: x } = JD({ within: !0 }), { checkboxProps: S } = Ose({ key: n.key }, r), C = null;
+ }), { isFocusVisible: v, focusProps: y } = ZD(), { isFocusVisible: b, focusProps: x } = ZD({ within: !0 }), { checkboxProps: S } = kse({ 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 } = kE();
+ let w = null, T = (0, F.useRef)(null), E = (0, F.useRef)(null), D = (0, F.useRef)(null), { visuallyHiddenProps: O } = ME();
o && i && (w = i.useDropIndicator({
target: {
type: "item",
@@ -42741,7 +42766,7 @@ var Hme = /*#__PURE__*/ Ow(class extends SS {
A,
M,
j
- ]), N = bR({
+ ]), N = SR({
...e,
id: void 0,
children: n.rendered,
@@ -42758,7 +42783,7 @@ var Hme = /*#__PURE__*/ Ow(class extends SS {
(0, F.useEffect)(() => {
a && te.current;
}, []);
- let P = AS({
+ let P = NS({
items: r.collection.getChildren(n.key),
children: (e) => {
switch (e.type) {
@@ -42768,7 +42793,7 @@ var Hme = /*#__PURE__*/ Ow(class extends SS {
default: throw Error("Unsupported element type in TreeRow: " + e.type);
}
}
- }), ne = iw(), re = cT(e, { global: !0 });
+ }), ne = sw(), re = dT(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"],
@@ -42791,8 +42816,8 @@ var Hme = /*#__PURE__*/ Ow(class extends SS {
"aria-labelledby": `${ne} ${c.id}`,
tabIndex: -1,
ref: D
- }))), /*#__PURE__*/ F.createElement(ER.div, {
- ...K(re, c, y, g, x, C?.dragProps),
+ }))), /*#__PURE__*/ F.createElement(OR.div, {
+ ...q(re, c, y, g, x, C?.dragProps),
...N,
ref: t,
"data-expanded": m && p || void 0,
@@ -42811,17 +42836,17 @@ var Hme = /*#__PURE__*/ Ow(class extends SS {
}, /*#__PURE__*/ F.createElement("div", {
...l,
style: { display: "contents" }
- }, /*#__PURE__*/ F.createElement(yR, { values: [
- [UR, { slots: {
- [vR]: {},
+ }, /*#__PURE__*/ F.createElement(xR, { values: [
+ [GR, { slots: {
+ [bR]: {},
selection: S
} }],
- [WR, { slots: {
- [vR]: {},
+ [KR, { slots: {
+ [bR]: {},
selection: S
} }],
- [IR, { slots: {
- [vR]: {},
+ [RR, { slots: {
+ [bR]: {},
chevron: {
...u,
ref: T
@@ -42832,13 +42857,13 @@ var Hme = /*#__PURE__*/ Ow(class extends SS {
style: { pointerEvents: "none" }
}
} }],
- [hV, { ...ee }],
- [Vz, { isSelected: f.isSelected }]
+ [_V, { ...ee }],
+ [Uz, { isSelected: f.isSelected }]
] }, P))));
});
-Ow(wS, function(e, t, n) {
- let { isVirtualized: r } = (0, F.useContext)(MR), i = (0, F.useContext)(pV), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, F.useRef)(null);
- eB((0, F.useMemo)(() => ({
+jw(DS, function(e, t, n) {
+ let { isVirtualized: r } = (0, F.useContext)(PR), i = (0, F.useContext)(hV), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, F.useRef)(null);
+ nB((0, F.useMemo)(() => ({
onLoadMore: o,
collection: i?.collection,
sentinelRef: l,
@@ -42847,11 +42872,11 @@ Ow(wS, function(e, t, n) {
o,
s,
i?.collection
- ]), l), t = hw(t);
- let { rowProps: u, gridCellProps: d } = Hj({ node: n }, i, t), f = u["aria-level"] || 1, p = {
+ ]), l), t = vw(t);
+ let { rowProps: u, gridCellProps: d } = qj({ node: n }, i, t), f = u["aria-level"] || 1, p = {
role: "row",
"aria-level": u["aria-level"]
- }, m = bR({
+ }, m = SR({
...c,
id: void 0,
children: n.rendered,
@@ -42864,7 +42889,7 @@ Ow(wS, function(e, t, n) {
width: 0,
height: 0
},
- inert: Uz(!0)
+ inert: Gz(!0)
}, /*#__PURE__*/ F.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: l,
@@ -42873,9 +42898,9 @@ Ow(wS, function(e, t, n) {
height: 1,
width: 1
}
- })), a && m.children && /*#__PURE__*/ F.createElement(ER.div, {
+ })), a && m.children && /*#__PURE__*/ F.createElement(OR.div, {
ref: t,
- ...K(cT(e), p),
+ ...q(dT(e), p),
...m,
"data-level": f
}, /*#__PURE__*/ F.createElement("div", {
@@ -42883,12 +42908,12 @@ Ow(wS, function(e, t, n) {
style: h
}, m.children)));
});
-function Wme(e, t) {
- t = hw(t);
- let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(Fz), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+function Kme(e, t) {
+ t = vw(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(Lz), 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;
- return /*#__PURE__*/ F.createElement(Kme, {
+ return /*#__PURE__*/ F.createElement(Jme, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -42897,8 +42922,8 @@ function Wme(e, t) {
level: c
});
}
-function Gme(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = kE(), c = bR({
+function qme(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = ME(), c = SR({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: {
@@ -42907,7 +42932,7 @@ function Gme(e, t) {
},
values: { isDropTarget: r }
});
- return /*#__PURE__*/ F.createElement(ER.div, {
+ return /*#__PURE__*/ F.createElement(OR.div, {
...c,
role: "row",
"aria-level": a,
@@ -42920,9 +42945,9 @@ function Gme(e, t) {
ref: i
}), c.children));
}
-var Kme = /*#__PURE__*/ (0, F.forwardRef)(Gme);
-function qme() {
- let { dragAndDropHooks: e, dropState: t } = (0, F.useContext)(Fz), n = (0, F.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = kE();
+var Jme = /*#__PURE__*/ (0, F.forwardRef)(qme);
+function Yme() {
+ let { dragAndDropHooks: e, dropState: t } = (0, F.useContext)(Lz), n = (0, F.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = ME();
return !i && r["aria-hidden"] ? null : /*#__PURE__*/ F.createElement("div", {
role: "row",
"aria-hidden": r["aria-hidden"],
@@ -42934,13 +42959,13 @@ function qme() {
ref: n
})));
}
-function Jme(e, t) {
+function Xme(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
// node_modules/@remixicon/react/index.mjs
-var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+var Zme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42948,7 +42973,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), Xme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), Qme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42956,7 +42981,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), gV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), vV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42964,7 +42989,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), _V = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), yV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42972,7 +42997,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), vV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), bV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42980,7 +43005,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), Zme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), $me = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42988,7 +43013,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), Qme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), ehe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42996,7 +43021,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), $me = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), the = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43004,7 +43029,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5 2H19C19.5523 2 20 2.44772 20 3V22.1433C20 22.4194 19.7761 22.6434 19.5 22.6434C19.4061 22.6434 19.314 22.6168 19.2344 22.5669L12 18.0313L4.76559 22.5669C4.53163 22.7136 4.22306 22.6429 4.07637 22.4089C4.02647 22.3293 4 22.2373 4 22.1433V3C4 2.44772 4.44772 2 5 2ZM18 4H6V19.4324L12 15.6707L18 19.4324V4Z" })), ehe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M5 2H19C19.5523 2 20 2.44772 20 3V22.1433C20 22.4194 19.7761 22.6434 19.5 22.6434C19.4061 22.6434 19.314 22.6168 19.2344 22.5669L12 18.0313L4.76559 22.5669C4.53163 22.7136 4.22306 22.6429 4.07637 22.4089C4.02647 22.3293 4 22.2373 4 22.1433V3C4 2.44772 4.44772 2 5 2ZM18 4H6V19.4324L12 15.6707L18 19.4324V4Z" })), nhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43012,7 +43037,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M21 19H23V21H1V19H3V4C3 3.44772 3.44772 3 4 3H14C14.5523 3 15 3.44772 15 4V19H19V11H17V9H20C20.5523 9 21 9.44772 21 10V19ZM5 5V19H13V5H5ZM7 11H11V13H7V11ZM7 7H11V9H7V7Z" })), the = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M21 19H23V21H1V19H3V4C3 3.44772 3.44772 3 4 3H14C14.5523 3 15 3.44772 15 4V19H19V11H17V9H20C20.5523 9 21 9.44772 21 10V19ZM5 5V19H13V5H5ZM7 11H11V13H7V11ZM7 7H11V9H7V7Z" })), rhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43020,7 +43045,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z" })), nhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z" })), ihe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43028,7 +43053,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M7.29117 20.8242L2 22L3.17581 16.7088C2.42544 15.3056 2 13.7025 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C10.2975 22 8.6944 21.5746 7.29117 20.8242ZM7.58075 18.711L8.23428 19.0605C9.38248 19.6745 10.6655 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 13.3345 4.32549 14.6175 4.93949 15.7657L5.28896 16.4192L4.63416 19.3658L7.58075 18.711Z" })), rhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M7.29117 20.8242L2 22L3.17581 16.7088C2.42544 15.3056 2 13.7025 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C10.2975 22 8.6944 21.5746 7.29117 20.8242ZM7.58075 18.711L8.23428 19.0605C9.38248 19.6745 10.6655 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 13.3345 4.32549 14.6175 4.93949 15.7657L5.28896 16.4192L4.63416 19.3658L7.58075 18.711Z" })), ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43036,7 +43061,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), ihe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), ohe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43044,7 +43069,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z" })), ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z" })), she = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43052,7 +43077,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z" })), ohe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z" })), che = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43060,7 +43085,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), yV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), xV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43068,7 +43093,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), she = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), lhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43076,7 +43101,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 2C15.866 2 19 5.13401 19 9C19 9.11351 18.9973 9.22639 18.992 9.33857C21.3265 10.16 23 12.3846 23 15C23 18.3137 20.3137 21 17 21H7C3.68629 21 1 18.3137 1 15C1 12.3846 2.67346 10.16 5.00804 9.33857C5.0027 9.22639 5 9.11351 5 9C5 5.13401 8.13401 2 12 2ZM12 4C9.23858 4 7 6.23858 7 9C7 9.08147 7.00193 9.16263 7.00578 9.24344L7.07662 10.7309L5.67183 11.2252C4.0844 11.7837 3 13.2889 3 15C3 17.2091 4.79086 19 7 19H17C19.2091 19 21 17.2091 21 15C21 12.79 19.21 11 17 11C15.233 11 13.7337 12.1457 13.2042 13.7347L11.3064 13.1021C12.1005 10.7185 14.35 9 17 9C17 6.23858 14.7614 4 12 4Z" })), che = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 2C15.866 2 19 5.13401 19 9C19 9.11351 18.9973 9.22639 18.992 9.33857C21.3265 10.16 23 12.3846 23 15C23 18.3137 20.3137 21 17 21H7C3.68629 21 1 18.3137 1 15C1 12.3846 2.67346 10.16 5.00804 9.33857C5.0027 9.22639 5 9.11351 5 9C5 5.13401 8.13401 2 12 2ZM12 4C9.23858 4 7 6.23858 7 9C7 9.08147 7.00193 9.16263 7.00578 9.24344L7.07662 10.7309L5.67183 11.2252C4.0844 11.7837 3 13.2889 3 15C3 17.2091 4.79086 19 7 19H17C19.2091 19 21 17.2091 21 15C21 12.79 19.21 11 17 11C15.233 11 13.7337 12.1457 13.2042 13.7347L11.3064 13.1021C12.1005 10.7185 14.35 9 17 9C17 6.23858 14.7614 4 12 4Z" })), uhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43084,7 +43109,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), lhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), dhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43092,7 +43117,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), uhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), fhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43100,7 +43125,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), dhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), phe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43108,7 +43133,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), bV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), SV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43116,7 +43141,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), fhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), mhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43124,7 +43149,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), phe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), hhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43132,7 +43157,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z" })), mhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z" })), ghe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43140,7 +43165,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M9 2.00318V2H19.9978C20.5513 2 21 2.45531 21 2.9918V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5501 3 20.9932V8L9 2.00318ZM5.82918 8H9V4.83086L5.82918 8ZM11 4V9C11 9.55228 10.5523 10 10 10H5V20H19V4H11Z" })), hhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M9 2.00318V2H19.9978C20.5513 2 21 2.45531 21 2.9918V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5501 3 20.9932V8L9 2.00318ZM5.82918 8H9V4.83086L5.82918 8ZM11 4V9C11 9.55228 10.5523 10 10 10H5V20H19V4H11Z" })), _he = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43148,7 +43173,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H13V17H8V15Z" })), ghe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H13V17H8V15Z" })), vhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43156,7 +43181,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H16V17H8V15Z" })), _he = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H16V17H8V15Z" })), yhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43164,7 +43189,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), xV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), CV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43172,7 +43197,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 7V19H20V7H4Z" })), SV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 7V19H20V7H4Z" })), wV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43180,7 +43205,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 21C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5H20C20.5523 5 21 5.44772 21 6V9H19V7H11.5858L9.58579 5H4V16.998L5.5 11H22.5L20.1894 20.2425C20.0781 20.6877 19.6781 21 19.2192 21H3ZM19.9384 13H7.06155L5.56155 19H18.4384L19.9384 13Z" })), vhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 21C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5H20C20.5523 5 21 5.44772 21 6V9H19V7H11.5858L9.58579 5H4V16.998L5.5 11H22.5L20.1894 20.2425C20.0781 20.6877 19.6781 21 19.2192 21H3ZM19.9384 13H7.06155L5.56155 19H18.4384L19.9384 13Z" })), bhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43188,7 +43213,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 5V19H20V7H11.5858L9.58579 5H4ZM8.59114 13.8089C8.52934 13.5486 8.49663 13.277 8.49663 12.9978C8.49663 12.7186 8.52933 12.4471 8.59112 12.1868L7.59998 11.6146L8.59949 9.88335L9.59133 10.456C9.98424 10.0843 10.4633 9.80275 10.9954 9.64438V8.5H12.9944V9.64438C13.5265 9.80274 14.0056 10.0843 14.3985 10.4559L15.3904 9.88325L16.39 11.6145L15.3987 12.1867C15.4605 12.447 15.4932 12.7186 15.4932 12.9978C15.4932 13.277 15.4605 13.5485 15.3987 13.8088L16.39 14.3811L15.3905 16.1123L14.3986 15.5396C14.0057 15.9113 13.5266 16.1928 12.9945 16.3512V17.4956H10.9955V16.3513C10.4634 16.1929 9.98434 15.9114 9.59141 15.5397L8.59954 16.1124L7.59998 14.3812L8.59114 13.8089ZM11.9949 14.4971C12.8229 14.4971 13.4942 13.8258 13.4942 12.9978C13.4942 12.1698 12.8229 11.4985 11.9949 11.4985C11.1669 11.4985 10.4957 12.1698 10.4957 12.9978C10.4957 13.8258 11.1669 14.4971 11.9949 14.4971Z" })), CV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 5V19H20V7H11.5858L9.58579 5H4ZM8.59114 13.8089C8.52934 13.5486 8.49663 13.277 8.49663 12.9978C8.49663 12.7186 8.52933 12.4471 8.59112 12.1868L7.59998 11.6146L8.59949 9.88335L9.59133 10.456C9.98424 10.0843 10.4633 9.80275 10.9954 9.64438V8.5H12.9944V9.64438C13.5265 9.80274 14.0056 10.0843 14.3985 10.4559L15.3904 9.88325L16.39 11.6145L15.3987 12.1867C15.4605 12.447 15.4932 12.7186 15.4932 12.9978C15.4932 13.277 15.4605 13.5485 15.3987 13.8088L16.39 14.3811L15.3905 16.1123L14.3986 15.5396C14.0057 15.9113 13.5266 16.1928 12.9945 16.3512V17.4956H10.9955V16.3513C10.4634 16.1929 9.98434 15.9114 9.59141 15.5397L8.59954 16.1124L7.59998 14.3812L8.59114 13.8089ZM11.9949 14.4971C12.8229 14.4971 13.4942 13.8258 13.4942 12.9978C13.4942 12.1698 12.8229 11.4985 11.9949 11.4985C11.1669 11.4985 10.4957 12.1698 10.4957 12.9978C10.4957 13.8258 11.1669 14.4971 11.9949 14.4971Z" })), TV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43196,7 +43221,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), wV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), EV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43204,7 +43229,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), yhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), xhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43212,7 +43237,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), bhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), She = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43220,7 +43245,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), xhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), Che = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43228,7 +43253,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), She = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), whe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43236,7 +43261,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), Che = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), The = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43244,7 +43269,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), TV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), DV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43252,7 +43277,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), whe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), Ehe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43260,7 +43285,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z" })), The = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z" })), Dhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43268,7 +43293,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M8 4H21V6H8V4ZM4.5 6.5C3.67157 6.5 3 5.82843 3 5C3 4.17157 3.67157 3.5 4.5 3.5C5.32843 3.5 6 4.17157 6 5C6 5.82843 5.32843 6.5 4.5 6.5ZM4.5 13.5C3.67157 13.5 3 12.8284 3 12C3 11.1716 3.67157 10.5 4.5 10.5C5.32843 10.5 6 11.1716 6 12C6 12.8284 5.32843 13.5 4.5 13.5ZM4.5 20.4C3.67157 20.4 3 19.7284 3 18.9C3 18.0716 3.67157 17.4 4.5 17.4C5.32843 17.4 6 18.0716 6 18.9C6 19.7284 5.32843 20.4 4.5 20.4ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z" })), EV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M8 4H21V6H8V4ZM4.5 6.5C3.67157 6.5 3 5.82843 3 5C3 4.17157 3.67157 3.5 4.5 3.5C5.32843 3.5 6 4.17157 6 5C6 5.82843 5.32843 6.5 4.5 6.5ZM4.5 13.5C3.67157 13.5 3 12.8284 3 12C3 11.1716 3.67157 10.5 4.5 10.5C5.32843 10.5 6 11.1716 6 12C6 12.8284 5.32843 13.5 4.5 13.5ZM4.5 20.4C3.67157 20.4 3 19.7284 3 18.9C3 18.0716 3.67157 17.4 4.5 17.4C5.32843 17.4 6 18.0716 6 18.9C6 19.7284 5.32843 20.4 4.5 20.4ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z" })), OV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43276,7 +43301,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })), DV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })), kV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43284,7 +43309,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), OV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), AV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43292,7 +43317,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z" })), kV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z" })), jV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43300,7 +43325,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), Ehe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), Ohe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43308,7 +43333,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), AV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), MV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43316,7 +43341,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), Dhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43324,7 +43349,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM8 5H4V19H8V5ZM10 5V19H20V5H10Z" })), Ohe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM8 5H4V19H8V5ZM10 5V19H20V5H10Z" })), Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43332,7 +43357,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12.0006 18.26L4.94715 22.2082L6.52248 14.2799L0.587891 8.7918L8.61493 7.84006L12.0006 0.5L15.3862 7.84006L23.4132 8.7918L17.4787 14.2799L19.054 22.2082L12.0006 18.26ZM12.0006 15.968L16.2473 18.3451L15.2988 13.5717L18.8719 10.2674L14.039 9.69434L12.0006 5.27502L9.96214 9.69434L5.12921 10.2674L8.70231 13.5717L7.75383 18.3451L12.0006 15.968Z" })), khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12.0006 18.26L4.94715 22.2082L6.52248 14.2799L0.587891 8.7918L8.61493 7.84006L12.0006 0.5L15.3862 7.84006L23.4132 8.7918L17.4787 14.2799L19.054 22.2082L12.0006 18.26ZM12.0006 15.968L16.2473 18.3451L15.2988 13.5717L18.8719 10.2674L14.039 9.69434L12.0006 5.27502L9.96214 9.69434L5.12921 10.2674L8.70231 13.5717L7.75383 18.3451L12.0006 15.968Z" })), jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43340,7 +43365,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), Mhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43348,7 +43373,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), Nhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43356,7 +43381,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), Mhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), Phe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43364,7 +43389,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), jV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), NV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43372,7 +43397,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), MV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), PV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43380,7 +43405,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), Nhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), Fhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43388,7 +43413,7 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), Phe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), Ihe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43398,11 +43423,11 @@ var Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
className: "remixicon " + (n || "")
}, F.createElement("path", { d: "M4.50772 2.87597C4.57028 2.37554 4.99568 2 5.5 2H18.5C19.0043 2 19.4297 2.37554 19.4923 2.87597L20.9923 14.876C20.9974 14.9171 21 14.9585 21 15V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V15C3 14.9585 3.00258 14.9171 3.00772 14.876L4.50772 2.87597ZM6.38278 4L5.13278 14H18.8672L17.6172 4H6.38278ZM19 16H5V20H19V16ZM15 17H17V19H15V17ZM13 17H11V19H13V17Z" }));
// src/react/boardui/components/base/input/label.tsx
-function NV({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsxs)(FR, {
+function FV({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, I.jsxs)(LR, {
"data-label": "true",
...a,
- className: jL("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
+ className: NL("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
children: [
i,
e && /* @__PURE__ */ (0, I.jsx)("span", {
@@ -43410,7 +43435,7 @@ function NV({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, I.jsx)(xhe, {
+ n && /* @__PURE__ */ (0, I.jsx)(Che, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -43418,32 +43443,32 @@ function NV({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
});
}
// src/react/boardui/components/base/input/hint-text.tsx
-function PV({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, I.jsx)(Lfe, {
+function IV({ isInvalid: e = !1, className: t, ...n }) {
+ return /* @__PURE__ */ (0, I.jsx)(zfe, {
slot: e ? "errorMessage" : "description",
...n,
- className: jL("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
+ className: NL("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
});
}
// src/react/boardui/components/base/input/input.tsx
-var FV = (0, F.createContext)({});
-function IV({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsx)(FV.Provider, {
+var LV = (0, F.createContext)({});
+function RV({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, I.jsx)(LV.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, I.jsx)(Lme, {
+ children: /* @__PURE__ */ (0, I.jsx)(zme, {
...a,
"data-input-size": e,
- className: jL("group flex h-max w-full flex-col items-start gap-1", r),
+ className: NL("group flex h-max w-full flex-col items-start gap-1", r),
children: i
})
});
}
-IV.displayName = "TextField";
-var LV = ML({
+RV.displayName = "TextField";
+var zV = PL({
field: "relative flex w-full items-center rounded-2lg bg-background-tertiary-default text-foreground-icon-tertiary ring-2 ring-inset ring-transparent transition-[background-color,box-shadow,color] duration-[var(--input-transition-ms)] ease",
fieldSize: {
medium: "p-2",
@@ -43458,44 +43483,44 @@ var LV = ML({
input: "min-w-0 flex-1 bg-transparent border-0 outline-none p-0 m-0 font-sans text-body-regular text-text-primary pl-1 placeholder:text-text-tertiary focus:placeholder:text-text-primary disabled:text-input-disabled-text disabled:placeholder:text-input-disabled-text disabled:cursor-not-allowed aria-invalid:placeholder:text-text-error-placeholder",
icon: "size-5 shrink-0"
});
-function RV({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, F.useContext)(FV), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, I.jsx)(qR, {
+function BV({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, F.useContext)(LV), u = e ?? l.size ?? "medium", d = r != null;
+ return /* @__PURE__ */ (0, I.jsx)(YR, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => jL(LV.field, d ? LV.fieldWithAddonSize[u] : LV.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
+ className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => NL(zV.field, d ? zV.fieldWithAddonSize[u] : zV.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
children: /* @__PURE__ */ (0, I.jsxs)("div", {
- className: LV.content,
+ className: zV.content,
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
- className: LV.leftSection,
+ className: zV.leftSection,
children: [d ? r : t ? /* @__PURE__ */ (0, I.jsx)(t, {
- className: LV.icon,
+ className: zV.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, I.jsx)(Ufe, {
+ }) : null, /* @__PURE__ */ (0, I.jsx)(Gfe, {
ref: o,
...c,
- className: jL(LV.input, l.inputClassName, a)
+ className: NL(zV.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, I.jsx)(n, {
- className: LV.icon,
+ className: zV.icon,
"aria-hidden": !0
}) : null]
})
});
}
-RV.displayName = "InputBase";
-function zV({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {
- return /* @__PURE__ */ (0, I.jsx)(IV, {
+BV.displayName = "InputBase";
+function VV({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {
+ return /* @__PURE__ */ (0, I.jsx)(RV, {
...d,
className: u,
"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- e && /* @__PURE__ */ (0, I.jsx)(NV, {
+ e && /* @__PURE__ */ (0, I.jsx)(FV, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, I.jsx)(RV, {
+ /* @__PURE__ */ (0, I.jsx)(BV, {
ref: c,
groupRef: l,
placeholder: r,
@@ -43504,24 +43529,24 @@ function zV({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, I.jsx)(PV, {
+ t && /* @__PURE__ */ (0, I.jsx)(IV, {
isInvalid: d,
children: t
})
] })
});
}
-zV.displayName = "Input";
+VV.displayName = "Input";
// src/react/components/modal-frame.tsx
-var Fhe = {
+var Lhe = {
"avatar-picker": "max-w-avatar-picker",
"cover-crop": "max-w-cover-crop",
form: "max-w-form-modal",
collections: "max-w-4xl"
};
-function BV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
- let { isFocusVisible: a } = GC();
- return /* @__PURE__ */ (0, I.jsx)(DB, {
+function HV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
+ let { isFocusVisible: a } = JC();
+ return /* @__PURE__ */ (0, I.jsx)(kB, {
isOpen: e,
onOpenChange: t,
isDismissable: !0,
@@ -43529,11 +43554,11 @@ function BV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
"data-modal-kind": n,
"data-motion-instant": a || void 0,
className: "fixed inset-0 z-dialog flex items-center justify-center bg-scrim p-4",
- children: /* @__PURE__ */ (0, I.jsx)(Tpe, {
+ children: /* @__PURE__ */ (0, I.jsx)(Dpe, {
"data-modal-surface": "",
"data-modal-width": n,
- className: `flex max-h-full w-full ${Fhe[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
- children: /* @__PURE__ */ (0, I.jsx)(CB, {
+ className: `flex max-h-full w-full ${Lhe[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
+ children: /* @__PURE__ */ (0, I.jsx)(TB, {
"aria-label": r,
className: "flex min-h-0 flex-col overflow-y-auto overscroll-contain outline-none",
children: i
@@ -43541,7 +43566,7 @@ function BV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
})
});
}
-function VV({ children: e }) {
+function UV({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
className: "flex size-14 shrink-0 items-center justify-center rounded-2xl border border-separator-border bg-background-secondary-default text-foreground-icon-secondary",
@@ -43549,12 +43574,12 @@ function VV({ children: e }) {
});
}
// src/react/components/note.tsx
-function HV({ tone: e, title: t, action: n, extra: r, children: i, actionLayout: a = "inline", className: o }) {
+function WV({ tone: e, title: t, action: n, extra: r, children: i, actionLayout: a = "inline", className: o }) {
let s = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-note-layout": "",
- className: jL("flex gap-3", a === "inline" ? "flex-wrap items-center justify-between" : "flex-col items-start"),
+ className: NL("flex gap-3", a === "inline" ? "flex-wrap items-center justify-between" : "flex-col items-start"),
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
- className: jL("flex min-w-0 flex-auto flex-col justify-center gap-0.5", a === "below" && "w-full"),
+ className: NL("flex min-w-0 flex-auto flex-col justify-center gap-0.5", a === "below" && "w-full"),
children: [t ? /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-medium wrap-anywhere",
children: t
@@ -43571,49 +43596,49 @@ function HV({ tone: e, title: t, action: n, extra: r, children: i, actionLayout:
switch (e) {
case "info": return /* @__PURE__ */ (0, I.jsx)("div", {
role: "status",
- className: jL("@container flex flex-col gap-2 rounded-2lg bg-notification-information-background px-3 py-2 text-notification-information-foreground", o),
+ className: NL("@container flex flex-col gap-2 rounded-2lg bg-notification-information-background px-3 py-2 text-notification-information-foreground", o),
children: s
});
case "success": return /* @__PURE__ */ (0, I.jsx)("div", {
role: "status",
- className: jL("@container flex flex-col gap-2 rounded-2lg bg-notification-success-background px-3 py-2 text-notification-success-foreground", o),
+ className: NL("@container flex flex-col gap-2 rounded-2lg bg-notification-success-background px-3 py-2 text-notification-success-foreground", o),
children: s
});
case "warning": return /* @__PURE__ */ (0, I.jsx)("div", {
role: "note",
- className: jL("@container flex flex-col gap-2 rounded-2lg bg-status-yellow-background px-3 py-2 text-status-yellow-text", o),
+ className: NL("@container flex flex-col gap-2 rounded-2lg bg-status-yellow-background px-3 py-2 text-status-yellow-text", o),
children: s
});
case "error": return /* @__PURE__ */ (0, I.jsx)("div", {
role: "alert",
- className: jL("@container flex flex-col gap-2 rounded-2lg bg-background-tertiary-error px-3 py-2 text-text-error-primary", o),
+ className: NL("@container flex flex-col gap-2 rounded-2lg bg-background-tertiary-error px-3 py-2 text-text-error-primary", o),
children: s
});
default: return /* @__PURE__ */ (0, I.jsx)("div", {
role: "note",
- className: jL("@container flex flex-col gap-2 rounded-2lg bg-background-tertiary-default px-3 py-2 text-text-secondary", o),
+ className: NL("@container flex flex-col gap-2 rounded-2lg bg-background-tertiary-default px-3 py-2 text-text-secondary", o),
children: s
});
}
}
// src/react/components/empty-state.tsx
-var Ihe = {
+var Rhe = {
standard: "min-h-80 px-6 py-12",
compact: "min-h-60 px-4 py-6"
};
-function Lhe({ target: e, children: t }) {
- return /* @__PURE__ */ (0, I.jsx)(q, {
+function zhe({ target: e, children: t }) {
+ return /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "secondary",
onClick: () => document.querySelector(e)?.focus(),
children: t
});
}
-function UV({ icon: e, title: t, actions: n, children: r, size: i = "standard" }) {
+function GV({ icon: e, title: t, actions: n, children: r, size: i = "standard" }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-empty-state": "",
"data-empty-size": i,
- className: `flex min-w-0 max-w-full flex-col items-center justify-center gap-2 rounded-floating border border-separator-border bg-background-secondary-default text-center ${Ihe[i]}`,
+ className: `flex min-w-0 max-w-full flex-col items-center justify-center gap-2 rounded-floating border border-separator-border bg-background-secondary-default text-center ${Rhe[i]}`,
children: [
/* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
@@ -43639,9 +43664,9 @@ function UV({ icon: e, title: t, actions: n, children: r, size: i = "standard" }
});
}
// src/react/components/sprite-glyph.tsx
-var WV = /* @__PURE__ */ new Map();
-function GV(e) {
- let t = WV.get(e);
+var KV = /* @__PURE__ */ new Map();
+function qV(e) {
+ let t = KV.get(e);
if (t) return t;
let { wide: n, viewBox: r } = xn(e), i = n ? ({ className: t }) => /* @__PURE__ */ (0, I.jsx)("svg", {
"aria-hidden": !0,
@@ -43657,10 +43682,10 @@ function GV(e) {
className: `shrink-0 stroke-current stroke-2 ${t ?? "size-4"}`,
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
- return i.displayName = `SpriteGlyph(${e})`, WV.set(e, i), i;
+ return i.displayName = `SpriteGlyph(${e})`, KV.set(e, i), i;
}
// src/react/components/settings-dialog-close.tsx
-function KV({ label: e, id: t, onPress: n }) {
+function JV({ label: e, id: t, onPress: n }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
id: t,
@@ -43675,60 +43700,60 @@ function KV({ label: e, id: t, onPress: n }) {
});
}
// src/react/settings/busy-props.ts
-function qV(e) {
+function YV(e) {
return e ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
}
// src/react/library-shortcuts/library-shortcuts.ts
-var JV = ["library-shortcuts"], YV = "/api/library-shortcuts";
-function XV(e = !0) {
+var XV = ["library-shortcuts"], ZV = "/api/library-shortcuts";
+function QV(e = !0) {
return Nt({
- queryKey: JV,
- queryFn: ({ signal: e }) => V(YV, e),
+ queryKey: XV,
+ queryFn: ({ signal: e }) => V(ZV, e),
enabled: e,
refetchOnMount: e ? "always" : !1
});
}
-function ZV() {
+function $V() {
return Pt({
- mutationKey: JV,
- mutationFn: (e) => H(YV, e),
+ mutationKey: XV,
+ mutationFn: (e) => H(ZV, e),
onSuccess: (e, t) => {
- U.setQueryData(JV, e), t.action === "favorite" && t.scope === "online" && (U.invalidateQueries({ queryKey: ["follow", "tags"] }), U.invalidateQueries({ queryKey: ["tag-management"] }));
+ U.setQueryData(XV, e), t.action === "favorite" && t.scope === "online" && (U.invalidateQueries({ queryKey: ["follow", "tags"] }), U.invalidateQueries({ queryKey: ["tag-management"] }));
}
});
}
-function QV(e, t) {
+function eH(e, t) {
return e.some((e) => t.scope === "online" ? e.scope === "online" && e.tag_id === t.tag_id : e.scope !== "online" && (t.entity_id ? e.entity_id === t.entity_id : e.kind === t.kind && e.name === t.name));
}
-function Rhe(e) {
+function Bhe(e) {
return e.scope === "online" ? `/follow?${new URLSearchParams({ tag: e.name })}` : Mn(e.kind, e.name, e.entity_id);
}
// src/react/library-shortcuts/shortcut-controls.tsx
-var $V = GV("star"), zhe = GV("bookmark-plus"), eH = GV("chevron-right"), tH = {
+var tH = qV("star"), Vhe = qV("bookmark-plus"), nH = qV("chevron-right"), rH = {
performer: "艺人",
creator: "创作者",
studio: "片商与厂牌",
series: "系列",
agency: "事务所",
tag: "标签"
-}, nH = {
- all: GV("star"),
- performer: GV("user-round"),
- creator: GV("user-round"),
- studio: GV("clapperboard"),
- series: GV("film"),
- agency: GV("briefcase"),
- tag: GV("tags"),
- filters: GV("list-filter")
-}, rH = [
+}, iH = {
+ all: qV("star"),
+ performer: qV("user-round"),
+ creator: qV("user-round"),
+ studio: qV("clapperboard"),
+ series: qV("film"),
+ agency: qV("briefcase"),
+ tag: qV("tags"),
+ filters: qV("list-filter")
+}, aH = [
["all", "全部"],
- ...Object.entries(tH),
+ ...Object.entries(rH),
["filters", "保存的筛选"]
];
-function iH({ label: e, children: t, ...n }) {
+function oH({ label: e, children: t, ...n }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
...n,
@@ -43738,20 +43763,20 @@ function iH({ label: e, children: t, ...n }) {
children: t
});
}
-function aH({ item: e }) {
- return /* @__PURE__ */ (0, I.jsx)(Bhe, { item: e }, `${e.scope || "local"}:${e.kind}:${e.tag_id || e.entity_id}:${e.name}`);
+function sH({ item: e }) {
+ return /* @__PURE__ */ (0, I.jsx)(Hhe, { item: e }, `${e.scope || "local"}:${e.kind}:${e.tag_id || e.entity_id}:${e.name}`);
}
-function Bhe({ item: e }) {
- nR();
- let t = XV(!1), n = (0, F.useRef)(t.data), r = ZV(), i = t.data && t.data !== n.current ? QV(t.data.favorites || [], e) : e.favorite ?? (t.data ? QV(t.data.favorites || [], e) : !1);
+function Hhe({ item: e }) {
+ iR();
+ let t = QV(!1), n = (0, F.useRef)(t.data), r = $V(), i = t.data && t.data !== n.current ? eH(t.data.favorites || [], e) : e.favorite ?? (t.data ? eH(t.data.favorites || [], e) : !1);
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex min-w-0 flex-col gap-1",
children: [
- /* @__PURE__ */ (0, I.jsx)(iH, {
+ /* @__PURE__ */ (0, I.jsx)(oH, {
"data-favorite": "",
"aria-pressed": !!i,
label: `${i ? "取消收藏" : "收藏"}${en(e.kind, e.name, e.entity_id)}`,
- ...qV(r.isPending),
+ ...YV(r.isPending),
onClick: () => {
r.isPending || r.mutate({
action: "favorite",
@@ -43762,13 +43787,13 @@ function Bhe({ item: e }) {
children: r.isPending ? /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
dangerouslySetInnerHTML: { __html: Rs("") }
- }) : /* @__PURE__ */ (0, I.jsx)($V, {})
+ }) : /* @__PURE__ */ (0, I.jsx)(tH, {})
}),
- r.isError ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ r.isError ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "error",
children: sr(r.error)
}) : null,
- t.isError ? /* @__PURE__ */ (0, I.jsx)(q, {
+ t.isError ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
"aria-label": "立即重试读取收藏",
@@ -43778,38 +43803,38 @@ function Bhe({ item: e }) {
]
});
}
-function oH({ currentHref: e, kind: t }) {
+function cH({ currentHref: e, kind: t }) {
let [n, r] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-shortcuts-entry": "",
- children: /* @__PURE__ */ (0, I.jsx)(lR, {
+ children: /* @__PURE__ */ (0, I.jsx)(dR, {
"data-shortcuts-trigger": "",
label: "我的收藏",
- icon: $V,
+ icon: tH,
"aria-haspopup": "dialog",
"aria-expanded": n,
onPress: () => r(!0)
})
- }), /* @__PURE__ */ (0, I.jsx)(BV, {
+ }), /* @__PURE__ */ (0, I.jsx)(HV, {
isOpen: n,
onOpenChange: r,
width: "collections",
label: "我的收藏",
- children: n ? /* @__PURE__ */ (0, I.jsx)(Vhe, {
+ children: n ? /* @__PURE__ */ (0, I.jsx)(Uhe, {
currentHref: e,
kind: t,
close: () => r(!1)
}) : null
})] });
}
-function Vhe({ currentHref: e, kind: t, close: n }) {
- nR();
- let r = XV(), i = ZV(), [a, o] = (0, F.useState)(""), [s, c] = (0, F.useState)(t || "all"), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(""), p = (0, F.useId)(), [m, h] = (0, F.useState)(() => matchMedia("(max-width: 760px)").matches);
+function Uhe({ currentHref: e, kind: t, close: n }) {
+ iR();
+ let r = QV(), i = $V(), [a, o] = (0, F.useState)(""), [s, c] = (0, F.useState)(t || "all"), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(""), p = (0, F.useId)(), [m, h] = (0, F.useState)(() => matchMedia("(max-width: 760px)").matches);
(0, F.useEffect)(() => {
let e = matchMedia("(max-width: 760px)"), t = () => h(e.matches);
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
}, []);
- let g = (0, F.useRef)(null), _ = (0, F.useRef)(null), v = (0, F.useRef)(s), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = hR(y, g, "[role=\"tab\"][aria-selected=\"true\"]", s, { axis: "y" });
+ let g = (0, F.useRef)(null), _ = (0, F.useRef)(null), v = (0, F.useRef)(s), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = _R(y, g, "[role=\"tab\"][aria-selected=\"true\"]", s, { axis: "y" });
(0, F.useLayoutEffect)(() => {
b.current && (x.current = Io(b.current) || null);
}, []), (0, F.useLayoutEffect)(() => {
@@ -43822,7 +43847,7 @@ function Vhe({ currentHref: e, kind: t, close: n }) {
}, [s]), (0, F.useLayoutEffect)(() => {
x.current?.();
});
- let C = rH.find(([e]) => e === s)?.[1] || "全部", w = (e) => {
+ let C = aH.find(([e]) => e === s)?.[1] || "全部", w = (e) => {
let t = [...e.currentTarget.querySelectorAll("[role=\"tab\"]")], n = t.indexOf(e.target);
if (n < 0) return;
let r = e.key === "Home" ? 0 : e.key === "End" ? t.length - 1 : ["ArrowDown", "ArrowRight"].includes(e.key) ? (n + 1) % t.length : ["ArrowUp", "ArrowLeft"].includes(e.key) ? (n + t.length - 1) % t.length : -1;
@@ -43845,7 +43870,7 @@ function Vhe({ currentHref: e, kind: t, close: n }) {
children: [/* @__PURE__ */ (0, I.jsx)("h2", {
className: "text-title-2-semibold text-text-primary",
children: C
- }), /* @__PURE__ */ (0, I.jsx)(KV, {
+ }), /* @__PURE__ */ (0, I.jsx)(JV, {
label: "关闭我的收藏",
onPress: n
})]
@@ -43875,8 +43900,8 @@ function Vhe({ currentHref: e, kind: t, close: n }) {
role: "presentation",
children: "我的收藏"
}),
- rH.map(([e, t]) => {
- let n = nH[e] || $V, r = e === "filters" ? E?.filters.length || 0 : (E?.favorites || []).filter((t) => e === "all" || t.kind === e).length;
+ aH.map(([e, t]) => {
+ let n = iH[e] || tH, r = e === "filters" ? E?.filters.length || 0 : (E?.favorites || []).filter((t) => e === "all" || t.kind === e).length;
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
role: "tab",
@@ -43908,17 +43933,17 @@ function Vhe({ currentHref: e, kind: t, close: n }) {
href: "/flagged",
onClick: n,
children: [
- /* @__PURE__ */ (0, I.jsx)($V, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, I.jsx)(tH, { "aria-hidden": !0 }),
"已标记",
- /* @__PURE__ */ (0, I.jsx)(eH, { "aria-hidden": !0 })
+ /* @__PURE__ */ (0, I.jsx)(nH, { "aria-hidden": !0 })
]
}), /* @__PURE__ */ (0, I.jsxs)("a", {
href: "/watch-later",
onClick: n,
children: [
- /* @__PURE__ */ (0, I.jsx)(zhe, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, I.jsx)(Vhe, { "aria-hidden": !0 }),
"稍后看",
- /* @__PURE__ */ (0, I.jsx)(eH, { "aria-hidden": !0 })
+ /* @__PURE__ */ (0, I.jsx)(nH, { "aria-hidden": !0 })
]
})]
})]
@@ -43937,25 +43962,25 @@ function Vhe({ currentHref: e, kind: t, close: n }) {
"data-skeleton": "",
className: "h-12 animate-pulse rounded-lg bg-background-secondary-default"
}) : null,
- r.isError ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ r.isError ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "error",
- action: /* @__PURE__ */ (0, I.jsx)(q, {
+ action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
onClick: () => void r.refetch(),
children: "立即重试"
}),
children: sr(r.error)
}) : null,
- i.isError ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ i.isError ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "error",
children: sr(i.error)
}) : null,
E ? s === "filters" ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- E.filters.length ? null : /* @__PURE__ */ (0, I.jsx)(UV, {
+ E.filters.length ? null : /* @__PURE__ */ (0, I.jsx)(GV, {
size: "compact",
- icon: GV("list-filter"),
+ icon: qV("list-filter"),
title: "还没有保存的筛选",
- actions: /* @__PURE__ */ (0, I.jsx)(_R, {
+ actions: /* @__PURE__ */ (0, I.jsx)(yR, {
size: "small",
href: "/",
onClick: n,
@@ -43970,11 +43995,11 @@ function Vhe({ currentHref: e, kind: t, close: n }) {
onClick: n,
className: "min-w-0 flex-1 break-all text-body-regular text-text-primary underline",
children: e.name
- }), /* @__PURE__ */ (0, I.jsx)(q, {
+ }), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
"aria-label": `删除筛选${e.name}`,
- ...qV(i.isPending),
+ ...YV(i.isPending),
onClick: () => {
i.isPending || i.mutate({
action: "delete_filter",
@@ -43989,16 +44014,16 @@ function Vhe({ currentHref: e, kind: t, close: n }) {
className: "flex flex-col gap-3",
"aria-label": "保存当前筛选",
children: [
- /* @__PURE__ */ (0, I.jsx)(zV, {
+ /* @__PURE__ */ (0, I.jsx)(VV, {
label: "筛选名称",
value: a,
onChange: o,
maxLength: 80
}),
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, I.jsx)(J, {
type: "submit",
disabled: !a.trim(),
- ...qV(i.isPending),
+ ...YV(i.isPending),
children: "保存当前筛选"
}),
d ? /* @__PURE__ */ (0, I.jsx)("span", {
@@ -44009,26 +44034,26 @@ function Vhe({ currentHref: e, kind: t, close: n }) {
]
}) : null
] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(zV, {
+ /* @__PURE__ */ (0, I.jsx)(VV, {
"aria-label": "搜索收藏",
placeholder: "搜索收藏",
- leadingIcon: GV("search"),
+ leadingIcon: qV("search"),
value: l,
onChange: u
}),
- O.length ? null : /* @__PURE__ */ (0, I.jsx)(UV, {
+ O.length ? null : /* @__PURE__ */ (0, I.jsx)(GV, {
size: "compact",
- icon: $V,
+ icon: tH,
title: l ? "没有匹配的收藏" : E.favorites.length ? "还没有此类收藏" : "还没有收藏",
- actions: l ? /* @__PURE__ */ (0, I.jsx)(q, {
+ actions: l ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
onClick: () => u(""),
children: "清除搜索"
- }) : E.favorites.length ? /* @__PURE__ */ (0, I.jsx)(q, {
+ }) : E.favorites.length ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
onClick: () => c("all"),
children: "查看全部收藏"
- }) : /* @__PURE__ */ (0, I.jsx)(_R, {
+ }) : /* @__PURE__ */ (0, I.jsx)(yR, {
size: "small",
href: "/",
onClick: n,
@@ -44042,25 +44067,25 @@ function Vhe({ currentHref: e, kind: t, close: n }) {
"data-shortcuts-row": "",
className: "flex min-w-0 items-center justify-between gap-3",
children: [/* @__PURE__ */ (0, I.jsxs)("a", {
- href: Rhe(e),
+ href: Bhe(e),
"aria-label": en(e.kind, e.name, e.entity_id),
onClick: n,
className: "flex min-w-0 flex-1 items-center gap-3 text-body-regular text-text-primary",
- children: [/* @__PURE__ */ (0, I.jsx)(Hhe, { item: e }, e.image_url), /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(Whe, { item: e }, e.image_url), /* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex min-w-0 flex-col gap-1",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "truncate",
children: en(e.kind, e.name, e.entity_id)
}), /* @__PURE__ */ (0, I.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
- children: e.scope === "online" ? "在线标签" : tH[e.kind]
+ children: e.scope === "online" ? "在线标签" : rH[e.kind]
})]
})]
- }), /* @__PURE__ */ (0, I.jsx)(q, {
+ }), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
"aria-label": `取消收藏${en(e.kind, e.name, e.entity_id)}`,
- ...qV(i.isPending),
+ ...YV(i.isPending),
onClick: () => {
i.isPending || i.mutate({
action: "favorite",
@@ -44078,8 +44103,8 @@ function Vhe({ currentHref: e, kind: t, close: n }) {
]
});
}
-function Hhe({ item: e }) {
- let t = nH[e.kind] || $V;
+function Whe({ item: e }) {
+ let t = iH[e.kind] || tH;
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-shortcuts-avatar": "",
title: e.image_label || e.name,
@@ -44097,11 +44122,11 @@ function Hhe({ item: e }) {
});
}
// src/react/components/board-navigation-link.tsx
-function Uhe(e) {
+function Ghe(e) {
return /* @__PURE__ */ (0, I.jsx)("a", { ...e });
}
// src/react/boardui/components/foundations/icons/chevrons.tsx
-function Whe(e) {
+function Khe(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -44115,7 +44140,7 @@ function Whe(e) {
})
});
}
-function Ghe(e) {
+function qhe(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 12 12",
fill: "none",
@@ -44129,7 +44154,7 @@ function Ghe(e) {
})
});
}
-function sH(e) {
+function lH(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
fill: "none",
@@ -44142,55 +44167,55 @@ function sH(e) {
});
}
// src/react/boardui/components/base/breadcrumb/breadcrumb.tsx
-function Khe({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r }) {
+function Jhe({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r }) {
let i = F.Children.toArray(e).filter(F.isValidElement);
return /* @__PURE__ */ (0, I.jsx)("nav", {
ref: r,
"aria-label": t,
- className: jL("flex w-full items-center overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", n),
+ className: NL("flex w-full items-center overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", n),
children: /* @__PURE__ */ (0, I.jsx)("ol", {
className: "flex items-center gap-2.5 px-1",
- children: i.map((e, t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [t > 0 && /* @__PURE__ */ (0, I.jsx)(Ghe, {
+ children: i.map((e, t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [t > 0 && /* @__PURE__ */ (0, I.jsx)(qhe, {
className: "size-3 shrink-0 text-text-tertiary",
"aria-hidden": !0
}), e] }, e.key ?? t))
})
});
}
-function cH({ children: e, icon: t, href: n, onClick: r, current: i = !1, className: a }) {
+function uH({ children: e, icon: t, href: n, onClick: r, current: i = !1, className: a }) {
let o = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [t && /* @__PURE__ */ (0, I.jsx)(t, {
className: "size-4 shrink-0",
"aria-hidden": !0
}), e] });
if (i) return /* @__PURE__ */ (0, I.jsx)("li", {
"aria-current": "page",
- className: jL("flex items-center gap-1.5 text-caption-1-medium whitespace-nowrap text-text-secondary", a),
+ className: NL("flex items-center gap-1.5 text-caption-1-medium whitespace-nowrap text-text-secondary", a),
children: o
});
- let s = jL("-mx-1 flex items-center gap-1.5 rounded-md px-1 py-0.5 text-caption-1-medium whitespace-nowrap text-text-tertiary", "transition-colors duration-150 ease outline-none", "hover:bg-background-primary-hover hover:text-text-secondary", "focus-visible:ring-2 focus-visible:ring-border-focus-ring", a);
+ let s = NL("-mx-1 flex items-center gap-1.5 rounded-md px-1 py-0.5 text-caption-1-medium whitespace-nowrap text-text-tertiary", "transition-colors duration-150 ease outline-none", "hover:bg-background-primary-hover hover:text-text-secondary", "focus-visible:ring-2 focus-visible:ring-border-focus-ring", a);
return /* @__PURE__ */ (0, I.jsx)("li", {
className: "flex items-center",
- children: n ? /* @__PURE__ */ (0, I.jsx)(Uhe, {
+ children: n ? /* @__PURE__ */ (0, I.jsx)(Ghe, {
href: n,
className: s,
children: o
}) : /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
onClick: r,
- className: jL("cursor-pointer", s),
+ className: NL("cursor-pointer", s),
children: o
})
});
}
// src/react/boardui/components/foundations/direction/direction.tsx
-function lH() {
- return eT().direction;
+function dH() {
+ return rT().direction;
}
// src/react/boardui/components/base/dropdown/menu-styles.ts
-var uH = "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", qhe = "w-[266px]", Jhe = "flex w-full flex-col gap-1 outline-none", dH = "flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left text-text-primary outline-none transition-colors", fH = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
+var fH = "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", Yhe = "w-[266px]", Xhe = "flex w-full flex-col gap-1 outline-none", pH = "flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left text-text-primary outline-none transition-colors", mH = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
// src/react/boardui/components/base/tree-view/tree-view.tsx
-function Yhe({ size: e = "md", showGuides: t = !0, selectionMode: n = "single", renderEmptyState: r = () => "No items.", className: i, onKeyDownCapture: a, ref: o, ...s }) {
- let c = lH(), l = (0, F.useContext)(MR), u = l === AR && !s.dragAndDropHooks ? mH : l;
+function Zhe({ size: e = "md", showGuides: t = !0, selectionMode: n = "single", renderEmptyState: r = () => "No items.", className: i, onKeyDownCapture: a, ref: o, ...s }) {
+ let c = dH(), l = (0, F.useContext)(PR), u = l === MR && !s.dragAndDropHooks ? gH : l;
return /* @__PURE__ */ (0, I.jsx)("div", {
className: "contents",
onKeyDownCapture: (e) => {
@@ -44207,23 +44232,23 @@ function Yhe({ size: e = "md", showGuides: t = !0, selectionMode: n = "single",
}
}
},
- children: /* @__PURE__ */ (0, I.jsx)(MR.Provider, {
+ children: /* @__PURE__ */ (0, I.jsx)(PR.Provider, {
value: u,
- children: /* @__PURE__ */ (0, I.jsx)(Bme, {
+ children: /* @__PURE__ */ (0, I.jsx)(Hme, {
...s,
ref: o,
selectionMode: n,
"data-size": e,
"data-show-guides": t,
renderEmptyState: r,
- className: (e) => jL("group/tree-view flex w-full min-w-0 flex-col rounded-3xl border border-border-button-default bg-background-primary-default p-2 outline-none", u === mH ? "gap-0" : "gap-0.5", "data-[empty]:px-4 data-[empty]:py-8 data-[empty]:text-center data-[empty]:text-body-regular data-[empty]:text-text-tertiary", "data-[focus-visible]:ring-2 data-[focus-visible]:ring-border-focus-ring", typeof i == "function" ? i(e) : i)
+ className: (e) => NL("group/tree-view flex w-full min-w-0 flex-col rounded-3xl border border-border-button-default bg-background-primary-default p-2 outline-none", u === gH ? "gap-0" : "gap-0.5", "data-[empty]:px-4 data-[empty]:py-8 data-[empty]:text-center data-[empty]:text-body-regular data-[empty]:text-text-tertiary", "data-[focus-visible]:ring-2 data-[focus-visible]:ring-border-focus-ring", typeof i == "function" ? i(e) : i)
})
})
});
}
-function pH({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassName: i, trailingContent: a, children: o, className: s, style: c, ref: l, ...u }) {
- let d = lH();
- return /* @__PURE__ */ (0, I.jsxs)(Ume, {
+function hH({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassName: i, trailingContent: a, children: o, className: s, style: c, ref: l, ...u }) {
+ let d = dH();
+ return /* @__PURE__ */ (0, I.jsxs)(Gme, {
...u,
ref: l,
textValue: t,
@@ -44231,11 +44256,11 @@ function pH({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
paddingInlineStart: `calc(0.5rem + ${e.level - 1} * 1.25rem)`,
...typeof c == "function" ? c(e) : c
}),
- className: (e) => jL("relative flex min-h-9 min-w-0 cursor-pointer items-center gap-2 rounded-xl pe-2 text-body-regular text-text-primary outline-none", "transition-[background-color,color,box-shadow] duration-150 motion-reduce:transition-none", "group-data-[size=sm]/tree-view:min-h-8 group-data-[size=sm]/tree-view:text-body-2-regular", (e.isHovered || e.isPressed || e.isFocusVisible) && !e.isDisabled && "bg-dropdown-item-hover-background", e.isSelected && "bg-dropdown-item-hover-background", e.isFocusVisible && "ring-2 ring-inset ring-border-focus-ring", e.isDisabled && "cursor-default text-text-placeholder", typeof s == "function" ? s(e) : s),
- children: [/* @__PURE__ */ (0, I.jsx)(Hme, { children: ({ hasChildItems: t, isExpanded: o, isDisabled: s, level: c, state: l, id: u }) => {
- let f = n === null ? null : o && r ? r : n ?? (t ? o ? SV : xV : mhe);
+ className: (e) => NL("relative flex min-h-9 min-w-0 cursor-pointer items-center gap-2 rounded-xl pe-2 text-body-regular text-text-primary outline-none", "transition-[background-color,color,box-shadow] duration-150 motion-reduce:transition-none", "group-data-[size=sm]/tree-view:min-h-8 group-data-[size=sm]/tree-view:text-body-2-regular", (e.isHovered || e.isPressed || e.isFocusVisible) && !e.isDisabled && "bg-dropdown-item-hover-background", e.isSelected && "bg-dropdown-item-hover-background", e.isFocusVisible && "ring-2 ring-inset ring-border-focus-ring", e.isDisabled && "cursor-default text-text-placeholder", typeof s == "function" ? s(e) : s),
+ children: [/* @__PURE__ */ (0, I.jsx)(Wme, { children: ({ hasChildItems: t, isExpanded: o, isDisabled: s, level: c, state: l, id: u }) => {
+ let f = n === null ? null : o && r ? r : n ?? (t ? o ? wV : CV : ghe);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(Zhe, {
+ /* @__PURE__ */ (0, I.jsx)($he, {
state: l,
id: u,
level: c,
@@ -44245,20 +44270,20 @@ function pH({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
- children: [t ? /* @__PURE__ */ (0, I.jsx)(LR, {
+ children: [t ? /* @__PURE__ */ (0, I.jsx)(zR, {
slot: "chevron",
isDisabled: s,
className: "flex size-5 shrink-0 cursor-pointer items-center justify-center rounded-md text-foreground-icon-tertiary outline-none transition-colors hover:text-foreground-icon-primary data-[focus-visible]:ring-2 data-[focus-visible]:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, I.jsx)(vV, {
+ children: /* @__PURE__ */ (0, I.jsx)(bV, {
"aria-hidden": !0,
- className: jL("size-4 opacity-50 transition-transform duration-150 motion-reduce:transition-none", o ? "rotate-90" : d === "rtl" && "rotate-180")
+ className: NL("size-4 opacity-50 transition-transform duration-150 motion-reduce:transition-none", o ? "rotate-90" : d === "rtl" && "rotate-180")
})
}) : /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
- className: jL("h-5 shrink-0", c > 1 ? "w-2" : "w-5")
+ className: NL("h-5 shrink-0", c > 1 ? "w-2" : "w-5")
}), f && /* @__PURE__ */ (0, I.jsx)(f, {
"aria-hidden": !0,
- className: jL("size-4 shrink-0 opacity-50", t ? "text-foreground-icon-primary" : "text-foreground-icon-secondary", i)
+ className: NL("size-4 shrink-0 opacity-50", t ? "text-foreground-icon-primary" : "text-foreground-icon-secondary", i)
})]
}),
/* @__PURE__ */ (0, I.jsx)("span", {
@@ -44273,24 +44298,24 @@ function pH({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
} }), o]
});
}
-var mH = {
- ...AR,
- CollectionRoot: Xhe
+var gH = {
+ ...MR,
+ CollectionRoot: Qhe
};
-function Xhe({ collection: e, ...t }) {
- let n = (0, F.useContext)(pV);
- return n ? /* @__PURE__ */ (0, I.jsx)(zx, {
+function Qhe({ collection: e, ...t }) {
+ let n = (0, F.useContext)(hV);
+ return n ? /* @__PURE__ */ (0, I.jsx)(Hx, {
initial: !1,
- children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, I.jsx)(Qhe, {
+ children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, I.jsx)(ege, {
state: n,
children: e.render?.(e)
}, e.key))
- }) : /* @__PURE__ */ (0, I.jsx)(AR.CollectionRoot, {
+ }) : /* @__PURE__ */ (0, I.jsx)(MR.CollectionRoot, {
collection: e,
...t
});
}
-function Zhe({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction: a }) {
+function $he({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction: a }) {
let o = e.collection.getItem(t);
if (!o) return null;
let s = [], c = o.parentKey == null ? null : e.collection.getItem(o.parentKey), l = n - 1;
@@ -44323,7 +44348,7 @@ function Zhe({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction
height: "7",
viewBox: `0 0 ${i} 7`,
fill: "none",
- className: jL("absolute start-0", a === "rtl" && "-scale-x-100"),
+ className: NL("absolute start-0", a === "rtl" && "-scale-x-100"),
style: { top: "calc(50% - 6px)" },
children: /* @__PURE__ */ (0, I.jsx)("path", {
d: `M0.5 0 Q0.5 6 6.5 6 H${i - .5}`,
@@ -44349,9 +44374,9 @@ function Zhe({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction
]
});
}
-function Qhe({ state: e, children: t }) {
- let n = Ix(), r = lS(), [i, a] = (0, F.useState)(e);
- return n && i !== e && a(e), /* @__PURE__ */ (0, I.jsx)(xS.div, {
+function ege({ state: e, children: t }) {
+ let n = zx(), r = fS(), [i, a] = (0, F.useState)(e);
+ return n && i !== e && a(e), /* @__PURE__ */ (0, I.jsx)(wS.div, {
role: "presentation",
className: "relative min-w-0 shrink-0 overflow-hidden",
"data-tree-view-exiting": !n || void 0,
@@ -44390,14 +44415,14 @@ function Qhe({ state: e, children: t }) {
1
]
},
- children: /* @__PURE__ */ (0, I.jsx)(pV.Provider, {
+ children: /* @__PURE__ */ (0, I.jsx)(hV.Provider, {
value: n ? e : i,
children: t
})
});
}
// src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var hH = {
+var _H = {
md: {
box: "size-4",
glyph: "size-4",
@@ -44411,11 +44436,11 @@ var hH = {
gap: "gap-1.5"
}
};
-function gH({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = hH[t], c = n || r, l = o && !a;
+function vH({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = _H[t], c = n || r, l = o && !a;
return /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
- className: jL("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? jL("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : jL("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),
+ className: NL("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? NL("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : NL("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),
children: /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -44438,23 +44463,23 @@ function gH({ state: e, size: t = "md" }) {
});
}
// src/react/boardui/components/base/checkbox/checkbox.tsx
-function _H({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = hH[n];
- return /* @__PURE__ */ (0, I.jsx)(Bfe, {
+function yH({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = _H[n];
+ return /* @__PURE__ */ (0, I.jsx)(Hfe, {
ref: r,
...i,
- className: (t) => jL("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
- children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(gH, {
+ className: (t) => NL("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
+ children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(vH, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, I.jsx)("span", {
- className: jL(a.label, "text-text-primary"),
+ className: NL(a.label, "text-text-primary"),
children: t
})] })
});
}
// src/react/components/overlay-scrollbar.ts
-function vH() {
+function bH() {
let e = (0, F.useRef)(null), t = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
t.current?.node !== e.current && (t.current?.control?.destroy(), t.current = e.current ? {
@@ -44466,43 +44491,43 @@ function vH() {
}, []), e;
}
// src/react/providers.tsx
-var yH = null;
-function $he() {
- return yH?.isConnected || (yH = document.createElement("div"), yH.className = "peach-react", yH.dataset.reactOverlays = "", document.body.append(yH)), yH;
+var xH = null;
+function tge() {
+ return xH?.isConnected || (xH = document.createElement("div"), xH.className = "peach-react", xH.dataset.reactOverlays = "", document.body.append(xH)), xH;
}
-function bH({ children: e }) {
+function SH({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)(oe, {
client: U,
- children: /* @__PURE__ */ (0, I.jsx)(Jre, {
+ children: /* @__PURE__ */ (0, I.jsx)(Yre, {
reducedMotion: "user",
- children: /* @__PURE__ */ (0, I.jsx)(UD, {
- getContainer: $he,
+ children: /* @__PURE__ */ (0, I.jsx)(KD, {
+ getContainer: tge,
children: e
})
})
});
}
// node_modules/sonner/dist/index.mjs
-function ege(e) {
+function nge(e) {
if (!e || typeof document > "u") return;
let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
}
-var tge = (e) => {
+var rge = (e) => {
switch (e) {
- case "success": return ige;
- case "info": return oge;
- case "warning": return age;
- case "error": return sge;
+ case "success": return oge;
+ case "info": return cge;
+ case "warning": return sge;
+ case "error": return lge;
default: return null;
}
-}, nge = Array(12).fill(0), rge = ({ visible: e, className: t }) => /*#__PURE__*/ F.createElement("div", {
+}, ige = Array(12).fill(0), age = ({ visible: e, className: t }) => /*#__PURE__*/ F.createElement("div", {
className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),
"data-visible": e
-}, /*#__PURE__*/ F.createElement("div", { className: "sonner-spinner" }, nge.map((e, t) => /*#__PURE__*/ F.createElement("div", {
+}, /*#__PURE__*/ F.createElement("div", { className: "sonner-spinner" }, ige.map((e, t) => /*#__PURE__*/ F.createElement("div", {
className: "sonner-loading-bar",
key: `spinner-bar-${t}`
-})))), ige = /*#__PURE__*/ F.createElement("svg", {
+})))), oge = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -44513,7 +44538,7 @@ var tge = (e) => {
fillRule: "evenodd",
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",
clipRule: "evenodd"
-})), age = /*#__PURE__*/ F.createElement("svg", {
+})), sge = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
fill: "currentColor",
@@ -44524,7 +44549,7 @@ var tge = (e) => {
fillRule: "evenodd",
d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
clipRule: "evenodd"
-})), oge = /*#__PURE__*/ F.createElement("svg", {
+})), cge = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -44535,7 +44560,7 @@ var tge = (e) => {
fillRule: "evenodd",
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",
clipRule: "evenodd"
-})), sge = /*#__PURE__*/ F.createElement("svg", {
+})), lge = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -44546,7 +44571,7 @@ var tge = (e) => {
fillRule: "evenodd",
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",
clipRule: "evenodd"
-})), cge = /*#__PURE__*/ F.createElement("svg", {
+})), uge = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "12",
height: "12",
@@ -44567,7 +44592,7 @@ var tge = (e) => {
y1: "6",
x2: "18",
y2: "18"
-})), lge = () => {
+})), dge = () => {
let [e, t] = F.useState(document.hidden);
return F.useEffect(() => {
let e = () => {
@@ -44575,7 +44600,7 @@ var tge = (e) => {
};
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
}, []), e;
-}, uge = 1, dge = 100, xH = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : uge++, SH = new class {
+}, fge = 1, pge = 100, CH = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : fge++, wH = new class {
constructor() {
this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
let t = this.subscribers.indexOf(e);
@@ -44585,10 +44610,10 @@ var tge = (e) => {
}, this.addToast = (e) => {
this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();
}, this.trimHistory = () => {
- let e = this.toasts.length - dge;
+ let e = this.toasts.length - pge;
e <= 0 || (this.toasts = this.toasts.filter((t) => e > 0 && this.dismissedToasts.has(t.id) ? (this.dismissedToasts.delete(t.id), e--, !1) : !0));
}, this.create = (e) => {
- let { message: t, ...n } = e, r = xH(e), i = this.pendingDismissals.get(r);
+ let { message: t, ...n } = e, r = CH(e), i = this.pendingDismissals.get(r);
i !== void 0 && (cancelAnimationFrame(i), this.pendingDismissals.delete(r), this.dismissedToasts.delete(r));
let a = this.dismissedToasts.has(r), o = e.dismissible === void 0 || e.dismissible;
return a && (this.dismissedToasts.delete(r), this.toasts = this.toasts.filter((e) => e.id !== r)), !a && this.toasts.find((e) => e.id === r) ? this.toasts = this.toasts.map((n) => n.id === r ? (this.publish({
@@ -44663,7 +44688,7 @@ var tge = (e) => {
type: "default",
message: e
});
- else if (pge(e) && !e.ok) {
+ else if (hge(e) && !e.ok) {
i = !1;
let r = typeof t.error == "function" ? await t.error(`HTTP error! status: ${e.status}`) : t.error, a = typeof t.description == "function" ? await t.description(`HTTP error! status: ${e.status}`) : t.description, o = typeof r == "object" && !F.isValidElement(r) ? r : { message: r };
this.create({
@@ -44707,7 +44732,7 @@ var tge = (e) => {
}), s = () => new Promise((e, t) => o.then(() => a[0] === "reject" ? t(a[1]) : e(a[1])).catch(t));
return typeof n != "string" && typeof n != "number" ? { unwrap: s } : Object.assign(n, { unwrap: s });
}, this.custom = (e, t) => {
- let n = xH(t);
+ let n = CH(t);
return this.create({
...t,
jsx: e(n),
@@ -44716,34 +44741,34 @@ var tge = (e) => {
}), n;
}, this.getActiveToasts = () => this.toasts.filter((e) => !this.dismissedToasts.has(e.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set(), this.pendingDismissals = /* @__PURE__ */ new Map();
}
-}(), fge = (e, t) => SH.message(e, t), pge = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", CH = Object.assign(fge, {
- success: SH.success,
- info: SH.info,
- warning: SH.warning,
- error: SH.error,
- custom: SH.custom,
- message: SH.message,
- promise: SH.promise,
- dismiss: SH.dismiss,
- loading: SH.loading
+}(), mge = (e, t) => wH.message(e, t), hge = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", TH = Object.assign(mge, {
+ success: wH.success,
+ info: wH.info,
+ warning: wH.warning,
+ error: wH.error,
+ custom: wH.custom,
+ message: wH.message,
+ promise: wH.promise,
+ dismiss: wH.dismiss,
+ loading: wH.loading
}, {
- getHistory: () => SH.toasts,
- getToasts: () => SH.getActiveToasts()
+ getHistory: () => wH.toasts,
+ getToasts: () => wH.getActiveToasts()
});
-ege("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
-function wH(e) {
+nge("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
+function EH(e) {
return e.label !== void 0;
}
-var mge = 3, hge = "24px", gge = "16px", TH = 4e3, _ge = 356, vge = 14, yge = 45, bge = 200;
-function EH(...e) {
+var gge = 3, _ge = "24px", vge = "16px", DH = 4e3, yge = 356, bge = 14, xge = 45, Sge = 200;
+function OH(...e) {
return e.filter(Boolean).join(" ");
}
-function xge(e) {
+function Cge(e) {
let [t, n] = e.split("-"), r = [];
return t && r.push(t), n && r.push(n), r;
}
-var Sge = (e) => {
- let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: h, actionButtonStyle: g, className: _ = "", descriptionClassName: v = "", duration: y, position: b, gap: x, expandByDefault: S, classNames: C, icons: w, closeButtonAriaLabel: T = "Close toast" } = e, [E, D] = F.useState(null), [O, k] = F.useState(null), [A, j] = F.useState(!1), [M, ee] = F.useState(!1), [N, te] = F.useState(!1), [P, ne] = F.useState(!1), [re, I] = F.useState(!1), [ie, ae] = F.useState(0), [oe, se] = F.useState(0), ce = F.useRef(n.duration || y || TH), le = F.useRef(null), ue = F.useRef(null), de = c === 0, fe = c + 1 <= o, pe = n.type, me = pe ?? "default", L = n.dismissible !== !1, he = n.className || "", ge = n.descriptionClassName || "", _e = F.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ve = F.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), ye = F.useMemo(() => n.duration || y || TH, [n.duration, y]), be = F.useRef(0), xe = F.useRef(0), Se = F.useRef(0), Ce = F.useRef(null), [we, Te] = b.split("-"), Ee = F.useMemo(() => s.reduce((e, t, n) => n >= _e ? e : e + t.height, 0), [s, _e]), De = lge(), Oe = F.useMemo(() => e.swipeDirections ?? xge(b), [e.swipeDirections, b]), ke = n.invert || t, Ae = pe === "loading";
+var wge = (e) => {
+ let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: h, actionButtonStyle: g, className: _ = "", descriptionClassName: v = "", duration: y, position: b, gap: x, expandByDefault: S, classNames: C, icons: w, closeButtonAriaLabel: T = "Close toast" } = e, [E, D] = F.useState(null), [O, k] = F.useState(null), [A, j] = F.useState(!1), [M, ee] = F.useState(!1), [N, te] = F.useState(!1), [P, ne] = F.useState(!1), [re, I] = F.useState(!1), [ie, ae] = F.useState(0), [oe, se] = F.useState(0), ce = F.useRef(n.duration || y || DH), le = F.useRef(null), ue = F.useRef(null), de = c === 0, fe = c + 1 <= o, pe = n.type, me = pe ?? "default", L = n.dismissible !== !1, he = n.className || "", ge = n.descriptionClassName || "", _e = F.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ve = F.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), ye = F.useMemo(() => n.duration || y || DH, [n.duration, y]), be = F.useRef(0), xe = F.useRef(0), Se = F.useRef(0), Ce = F.useRef(null), [we, Te] = b.split("-"), Ee = F.useMemo(() => s.reduce((e, t, n) => n >= _e ? e : e + t.height, 0), [s, _e]), De = dge(), Oe = F.useMemo(() => e.swipeDirections ?? Cge(b), [e.swipeDirections, b]), ke = n.invert || t, Ae = pe === "loading";
xe.current = F.useMemo(() => _e * x + Ee, [_e, Ee]), F.useEffect(() => {
ce.current = ye;
}, [ye]), F.useEffect(() => {
@@ -44784,7 +44809,7 @@ var Sge = (e) => {
let je = F.useCallback(() => {
ee(!0), ae(xe.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
d(n);
- }, bge);
+ }, Sge);
}, [
n,
d,
@@ -44815,18 +44840,18 @@ var Sge = (e) => {
}, [je, n.delete]);
function Me() {
return w?.loading ? /*#__PURE__*/ F.createElement("div", {
- className: EH(C?.loader, n?.classNames?.loader, "sonner-loader"),
+ className: OH(C?.loader, n?.classNames?.loader, "sonner-loader"),
"data-visible": pe === "loading"
- }, w.loading) : /*#__PURE__*/ F.createElement(rge, {
- className: EH(C?.loader, n?.classNames?.loader),
+ }, w.loading) : /*#__PURE__*/ F.createElement(age, {
+ className: OH(C?.loader, n?.classNames?.loader),
visible: pe === "loading"
});
}
- let Ne = n.icon || w?.[pe] || tge(pe);
+ let Ne = n.icon || w?.[pe] || rge(pe);
return /*#__PURE__*/ F.createElement("li", {
tabIndex: 0,
ref: ue,
- className: EH(_, he, C?.toast, n?.classNames?.toast, C?.[me], n?.classNames?.[me]),
+ className: OH(_, he, C?.toast, n?.classNames?.toast, C?.[me], n?.classNames?.[me]),
"data-sonner-toast": "",
"data-rich-colors": n.richColors ?? f,
"data-styled": !(n.jsx || n.unstyled || r),
@@ -44869,7 +44894,7 @@ var Sge = (e) => {
if (P || !L) return;
Ce.current = null;
let e = Number(ue.current?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(ue.current?.style.getPropertyValue("--swipe-amount-y").replace("px", "") || 0), r = (/* @__PURE__ */ new Date()).getTime() - le.current?.getTime(), i = E === "x" ? e : t, a = Math.abs(i) / r;
- if ((E === "x" ? Oe.includes(e > 0 ? "right" : "left") : Oe.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= yge || a > .11)) ae(xe.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), je(), ne(!0);
+ if ((E === "x" ? Oe.includes(e > 0 ? "right" : "left") : Oe.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= xge || a > .11)) ae(xe.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), je(), ne(!0);
else {
var o, s;
(o = ue.current) == null || o.style.setProperty("--swipe-amount-x", "0px"), (s = ue.current) == null || s.style.setProperty("--swipe-amount-y", "0px"), I(!1), te(!1), D(null);
@@ -44908,46 +44933,46 @@ var Sge = (e) => {
onClick: Ae || !L ? () => {} : () => {
je(), n.onDismiss == null || n.onDismiss.call(n, n);
},
- className: EH(C?.closeButton, n?.classNames?.closeButton)
- }, w?.close ?? cge) : null, (pe || n.icon || n.promise) && n.icon !== null && (w?.[pe] !== null || n.icon) ? /*#__PURE__*/ F.createElement("div", {
+ className: OH(C?.closeButton, n?.classNames?.closeButton)
+ }, w?.close ?? uge) : null, (pe || n.icon || n.promise) && n.icon !== null && (w?.[pe] !== null || n.icon) ? /*#__PURE__*/ F.createElement("div", {
"data-icon": "",
- className: EH(C?.icon, n?.classNames?.icon)
+ className: OH(C?.icon, n?.classNames?.icon)
}, pe === "loading" ? n.icon || Me() : n.promise ? Me() : null, pe === "loading" ? null : Ne) : null, /*#__PURE__*/ F.createElement("div", {
"data-content": "",
- className: EH(C?.content, n?.classNames?.content)
+ className: OH(C?.content, n?.classNames?.content)
}, /*#__PURE__*/ F.createElement("div", {
"data-title": "",
- className: EH(C?.title, n?.classNames?.title)
+ className: OH(C?.title, n?.classNames?.title)
}, n.jsx ? n.jsx : typeof n.title == "function" ? n.title() : n.title), n.description ? /*#__PURE__*/ F.createElement("div", {
"data-description": "",
- className: EH(v, ge, C?.description, n?.classNames?.description)
- }, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ F.isValidElement(n.cancel) ? n.cancel : n.cancel && wH(n.cancel) ? /*#__PURE__*/ F.createElement("button", {
+ className: OH(v, ge, C?.description, n?.classNames?.description)
+ }, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ F.isValidElement(n.cancel) ? n.cancel : n.cancel && EH(n.cancel) ? /*#__PURE__*/ F.createElement("button", {
"data-button": !0,
"data-cancel": !0,
style: n.cancelButtonStyle || h,
onClick: (e) => {
- wH(n.cancel) && L && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), je());
+ EH(n.cancel) && L && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), je());
},
- className: EH(C?.cancelButton, n?.classNames?.cancelButton)
- }, n.cancel.label) : null, /*#__PURE__*/ F.isValidElement(n.action) ? n.action : n.action && wH(n.action) ? /*#__PURE__*/ F.createElement("button", {
+ className: OH(C?.cancelButton, n?.classNames?.cancelButton)
+ }, n.cancel.label) : null, /*#__PURE__*/ F.isValidElement(n.action) ? n.action : n.action && EH(n.action) ? /*#__PURE__*/ F.createElement("button", {
"data-button": !0,
"data-action": !0,
style: n.actionButtonStyle || g,
onClick: (e) => {
- wH(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && je());
+ EH(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && je());
},
- className: EH(C?.actionButton, n?.classNames?.actionButton)
+ className: OH(C?.actionButton, n?.classNames?.actionButton)
}, n.action.label) : null);
};
-function DH() {
+function kH() {
if (typeof window > "u" || typeof document > "u") return "ltr";
let e = document.documentElement.getAttribute("dir");
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
}
-function Cge(e, t) {
+function Tge(e, t) {
let n = {};
return [e, t].forEach((e, t) => {
- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? gge : hge;
+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? vge : _ge;
function o(e) {
[
"top",
@@ -44968,11 +44993,11 @@ function Cge(e, t) {
}) : o(a);
}), n;
}
-var OH = /*#__PURE__*/ F.forwardRef(function(e, t) {
- let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = mge, toastOptions: g, dir: _ = DH(), gap: v = vge, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = F.useState([]), w = F.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = F.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = F.useState([]), [O, k] = F.useState(!1), [A, j] = F.useState(!1), [M, ee] = F.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), N = F.useRef(null), te = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), P = F.useRef(null), ne = F.useRef(!1), re = F.useCallback((e) => {
- C((t) => (t.find((t) => t.id === e.id)?.delete || SH.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
+var AH = /*#__PURE__*/ F.forwardRef(function(e, t) {
+ let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = gge, toastOptions: g, dir: _ = kH(), gap: v = bge, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = F.useState([]), w = F.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = F.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = F.useState([]), [O, k] = F.useState(!1), [A, j] = F.useState(!1), [M, ee] = F.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), N = F.useRef(null), te = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), P = F.useRef(null), ne = F.useRef(!1), re = F.useCallback((e) => {
+ C((t) => (t.find((t) => t.id === e.id)?.delete || wH.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
}, []);
- return F.useEffect(() => SH.subscribe((e) => {
+ return F.useEffect(() => wH.subscribe((e) => {
e.dismiss ? requestAnimationFrame(() => {
C((t) => t.map((t) => t.id === e.id ? {
...t,
@@ -45041,7 +45066,7 @@ var OH = /*#__PURE__*/ F.forwardRef(function(e, t) {
let [i, a] = t.split("-");
return w.length ? /*#__PURE__*/ F.createElement("ol", {
key: t,
- dir: _ === "auto" ? DH() : _,
+ dir: _ === "auto" ? kH() : _,
tabIndex: -1,
ref: N,
className: c,
@@ -45051,10 +45076,10 @@ var OH = /*#__PURE__*/ F.forwardRef(function(e, t) {
"data-x-position": a,
style: {
"--front-toast-height": `${E[0]?.height || 0}px`,
- "--width": `${_ge}px`,
+ "--width": `${yge}px`,
"--gap": `${v}px`,
...m,
- ...Cge(l, u)
+ ...Tge(l, u)
},
onBlur: (e) => {
ne.current && !e.currentTarget.contains(e.relatedTarget) && (ne.current = !1, P.current &&= (P.current.focus({ preventScroll: !0 }), null));
@@ -45072,7 +45097,7 @@ var OH = /*#__PURE__*/ F.forwardRef(function(e, t) {
e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || j(!0);
},
onPointerUp: () => j(!1)
- }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ F.createElement(Sge, {
+ }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ F.createElement(wge, {
key: n.id,
icons: y,
index: i,
@@ -45102,35 +45127,35 @@ var OH = /*#__PURE__*/ F.forwardRef(function(e, t) {
swipeDirections: e.swipeDirections
}))) : null;
}));
-}), kH = "/api/library-processing", AH = ["library-processing"], wge = (e, t, n) => {
+}), jH = "/api/library-processing", MH = ["library-processing"], Ege = (e, t, n) => {
let r = new URLSearchParams({
estimate: "1",
stage: e.stage || "all"
});
- return e.asset_ids && r.set("asset_ids", JSON.stringify(e.asset_ids)), e.scope && r.set("scope", e.scope), e.incremental && r.set("incremental", "1"), n && r.set("inventory", n), V(`${kH}?${r}`, t);
-}, Tge = {
+ return e.asset_ids && r.set("asset_ids", JSON.stringify(e.asset_ids)), e.scope && r.set("scope", e.scope), e.incremental && r.set("incremental", "1"), n && r.set("inventory", n), V(`${jH}?${r}`, t);
+}, Dge = {
fetching_cover: "封面",
querying_metadata: "资料"
};
-function jH(e) {
+function NH(e) {
if (e?.status !== "running" || e.current_asset_id == null) return null;
- let t = Tge[e.current_action || ""];
+ let t = Dge[e.current_action || ""];
return !t || (e.waited_seconds || 0) < 120 ? null : {
what: t,
source: e.current_source
};
}
-function MH({ what: e, source: t }) {
+function PH({ what: e, source: t }) {
return `${`${t?.label ? `${t.label} ` : "外部来源"}迟迟没有返回${e}`}。可以先跳过这部,任务结束后再重试。`;
}
-var NH = (e) => !!e && [
+var FH = (e) => !!e && [
"running",
"pausing",
"paused",
"stopping"
-].includes(e.status), PH = (e) => e?.status === "failed" && e.outcome === "partial", FH = "已入库的视频可在全部内容中浏览,未完成项可单独重试。", IH = "/?loc=&thumb=0";
-function LH(e) {
- if (!NH(e)) return "";
+].includes(e.status), IH = (e) => e?.status === "failed" && e.outcome === "partial", LH = "已入库的视频可在全部内容中浏览,未完成项可单独重试。", RH = "/?loc=&thumb=0";
+function zH(e) {
+ if (!FH(e)) return "";
if (e.status === "stopping") return "正在停止,等待当前步骤退出;已取得的结果会保留";
if (e.status === "paused") return "已暂停,继续后更新预估";
if (e.status === "pausing") return "正在暂停,当前步骤结束后暂停";
@@ -45141,18 +45166,18 @@ function LH(e) {
let r = n >= 86400 ? 86400 : n >= 3600 ? 3600 : 60, i = r === 86400 ? "天" : r === 3600 ? "小时" : "分钟", a = r === 60 ? 1 : 10, o = Math.max(1 / a, Math.floor(t / r * a) / a), s = Math.max(o, Math.ceil(n / r * a) / a);
return `预计剩余约 ${o === s ? `${s}` : `${o}–${s}`} ${i}${e.eta_initial || e.eta_kind !== "measured" ? "(粗估)" : ""}${e.eta_scope ? ` · ${e.eta_scope}` : ""}`;
}
-var RH = (e) => V(kH, e);
-async function zH(e) {
+var BH = (e) => V(jH, e);
+async function VH(e) {
await U.fetchQuery({
- queryKey: AH,
- queryFn: () => RH(e)
+ queryKey: MH,
+ queryFn: () => BH(e)
});
}
-var Ege = 2e3, Dge = 1e4, BH = "连接中断,正在重新读取处理进度";
-function VH(e, t) {
- return NH(e) ? Ege : t ? Dge : !1;
+var Oge = 2e3, kge = 1e4, HH = "连接中断,正在重新读取处理进度";
+function UH(e, t) {
+ return FH(e) ? Oge : t ? kge : !1;
}
-var Oge = {
+var Age = {
scanning_files: "扫描文件",
reading_local: "检查配套文件",
reading_local_cover: "读取配套图片",
@@ -45161,25 +45186,25 @@ var Oge = {
skipped: "已跳过",
generating_preview: "生成视频预览",
writing_candidates: "保存待确认资料"
-}, HH = {
+}, WH = {
querying_metadata: "没有资料",
fetching_cover: "没有封面"
};
-function kge(e) {
- let t = Object.entries(e).filter(([e, t]) => HH[e] && t > 0).map(([e, t]) => `${HH[e]} ${t.toLocaleString()} 部`);
+function jge(e) {
+ let t = Object.entries(e).filter(([e, t]) => WH[e] && t > 0).map(([e, t]) => `${WH[e]} ${t.toLocaleString()} 部`);
return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
}
-function Age(e) {
+function Mge(e) {
if (e.status === "paused") return "已暂停";
if (e.status === "pausing") return "正在暂停";
- let t = Oge[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${XL(e.waited_seconds)}` : "";
+ let t = Age[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${QL(e.waited_seconds)}` : "";
return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;
}
-function jge(e) {
- let t = e.total ? `${ZL(e.checked, e.total)} 项` : e.current_action === "scanning_files" || e.stage === "扫描文件" ? `已发现 ${(e.scanned || 0).toLocaleString()} 个文件` : "";
- return Age(e) + (t ? ` · ${t}` : "");
+function Nge(e) {
+ let t = e.total ? `${$L(e.checked, e.total)} 项` : e.current_action === "scanning_files" || e.stage === "扫描文件" ? `已发现 ${(e.scanned || 0).toLocaleString()} 个文件` : "";
+ return Mge(e) + (t ? ` · ${t}` : "");
}
-function Mge(e) {
+function Pge(e) {
let t = e.issue_preview || [];
return t.length ? {
label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,
@@ -45193,22 +45218,22 @@ function Mge(e) {
log: e.issues_log || ""
} : null;
}
-var UH = "peach.library-processing.announced", Nge = 120;
-function WH(e) {
+var GH = "peach.library-processing.announced", Fge = 120;
+function KH(e) {
let t = e.completed_at == null ? Infinity : Date.now() / 1e3 - e.completed_at;
- return !!e.job_id && t >= 0 && t < Nge;
+ return !!e.job_id && t >= 0 && t < Fge;
}
-function Pge(e, t, n) {
- if (e.status === "complete" && (n || WH(e))) {
+function Ige(e, t, n) {
+ if (e.status === "complete" && (n || KH(e))) {
try {
- if (e.job_id && localStorage.getItem(UH) === e.job_id) return;
- e.job_id && localStorage.setItem(UH, e.job_id);
+ if (e.job_id && localStorage.getItem(GH) === e.job_id) return;
+ e.job_id && localStorage.setItem(GH, e.job_id);
} catch {}
e.requested_stage === "previews" ? t(`视频预览已生成:${e.previews || 0} 部`) : t(`扫描与资料采集已完成:识别 ${e.identified || 0} 个番号,取得 ${e.candidates || 0} 组作品资料,自动保存 ${e.auto_applied || 0} 条` + (e.previews ? `,生成 ${e.previews} 部视频预览` : ""));
}
}
// src/react/boardui/components/base/buttons/link-button.tsx
-var GH = ML({
+var qH = PL({
base: "inline-flex items-center justify-center gap-1 whitespace-nowrap font-sans select-none cursor-pointer rounded-sm underline-offset-3 hover:underline transition-colors duration-150 ease outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring disabled:cursor-not-allowed disabled:no-underline aria-disabled:cursor-not-allowed aria-disabled:no-underline",
size: {
medium: "text-body-medium",
@@ -45225,15 +45250,15 @@ var GH = ML({
secondary: "text-text-secondary active:text-text-primary disabled:text-text-tertiary aria-disabled:text-text-tertiary"
}
});
-function KH({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = jL(GH.base, GH.size[t], GH.variant[e], a), l = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
+function JH({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = NL(qH.base, qH.size[t], qH.variant[e], a), l = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
n ? /* @__PURE__ */ (0, I.jsx)(n, {
- className: GH.icon[t],
+ className: qH.icon[t],
"aria-hidden": !0
}) : null,
i != null && /* @__PURE__ */ (0, I.jsx)("span", { children: i }),
r ? /* @__PURE__ */ (0, I.jsx)(r, {
- className: GH.icon[t],
+ className: qH.icon[t],
"aria-hidden": !0
}) : null
] });
@@ -45259,7 +45284,7 @@ function KH({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
});
}
// src/react/settings/use-action.ts
-function qH(e = "") {
+function YH(e = "") {
let t = (0, F.useRef)(null), [n, r] = (0, F.useState)(""), [i, a] = (0, F.useState)(e);
(0, F.useEffect)(() => () => t.current?.abort(), []);
async function o(e, n, i, o) {
@@ -45284,10 +45309,10 @@ function qH(e = "") {
};
}
// src/react/library-processing/slow-item.tsx
-function JH({ state: e }) {
- let t = qH(), n = (e) => {
- t.busy || t.run(e.action, (t) => H(kH, e, "POST", t), (e) => {
- U.setQueryData(AH, e), U.invalidateQueries({ queryKey: AH });
+function XH({ state: e }) {
+ let t = YH(), n = (e) => {
+ t.busy || t.run(e.action, (t) => H(jH, e, "POST", t), (e) => {
+ U.setQueryData(MH, e), U.invalidateQueries({ queryKey: MH });
});
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -45295,11 +45320,11 @@ function JH({ state: e }) {
children: [
/* @__PURE__ */ (0, I.jsx)("div", {
className: "flex flex-wrap items-center gap-2",
- children: /* @__PURE__ */ (0, I.jsx)(q, {
+ children: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "secondary",
disabled: e.skip_requested,
- ...qV(t.busy === "skip_current"),
+ ...YV(t.busy === "skip_current"),
onClick: () => {
e.job_id && e.current_asset_id != null && n({
action: "skip_current",
@@ -45323,37 +45348,37 @@ function JH({ state: e }) {
]
});
}
-function Fge({ state: e, slow: t }) {
- return /* @__PURE__ */ (0, I.jsx)(HV, {
+function Lge({ state: e, slow: t }) {
+ return /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "warning",
- action: /* @__PURE__ */ (0, I.jsx)(JH, { state: e }),
- children: MH(t)
+ action: /* @__PURE__ */ (0, I.jsx)(XH, { state: e }),
+ children: PH(t)
});
}
-function Ige({ state: e, slow: t }) {
+function Rge({ state: e, slow: t }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-processing-slow": "",
className: "flex min-w-0 flex-wrap items-center justify-between gap-3",
children: [/* @__PURE__ */ (0, I.jsx)("p", {
className: "min-w-0 flex-auto text-body-2-regular wrap-anywhere",
- children: MH(t)
- }), /* @__PURE__ */ (0, I.jsx)(JH, { state: e })]
+ children: PH(t)
+ }), /* @__PURE__ */ (0, I.jsx)(XH, { state: e })]
});
}
// src/react/components/use-moving-surface.ts
-var Lge = {
+var zge = {
selection: {
- type: Lg,
+ type: Bg,
duration: .16,
bounce: 0
},
hover: {
- type: Lg,
+ type: Bg,
duration: .08,
bounce: 0
}
};
-function YH(e) {
+function ZH(e) {
let [t, n] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
if (!t) return;
@@ -45374,7 +45399,7 @@ function YH(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 = tae(n, { transform: [r, E] }, Lge[e]);
+ l = nae(n, { transform: [r, E] }, zge[e]);
} else n.style.transform = E;
s = h, c = w, t.dataset.surfaceReady = "";
}, m = (t) => {
@@ -45410,24 +45435,24 @@ function YH(e) {
}, [t, e]), n;
}
// src/react/components/menu-dialog.tsx
-function XH(e) {
- let t = YH("hover");
- return /* @__PURE__ */ (0, I.jsx)(CB, {
+function QH(e) {
+ let t = ZH("hover");
+ return /* @__PURE__ */ (0, I.jsx)(TB, {
...e,
ref: t
});
}
// src/react/library-processing/processing-effort.tsx
-var ZH = [
+var $H = [
"low",
"standard",
"high"
-], QH = [
+], eU = [
"低占用",
"标准",
"全速"
-], $H = GV("snail"), eU = GV("zap");
-function tU({ className: e }) {
+], tU = qV("snail"), nU = qV("zap");
+function rU({ className: e }) {
return /* @__PURE__ */ (0, I.jsxs)("svg", {
className: `processing-effort-double ${e ?? ""}`,
"aria-hidden": "true",
@@ -45458,12 +45483,12 @@ function tU({ className: e }) {
]
});
}
-var Rge = [
- $H,
- eU,
- tU
+var Bge = [
+ tU,
+ nU,
+ rU
];
-function zge({ animate: e }) {
+function Vge({ animate: e }) {
let [t, n] = (0, F.useState)(document.hidden);
return (0, F.useEffect)(() => {
let e = () => n(document.hidden);
@@ -45495,8 +45520,8 @@ function zge({ animate: e }) {
} }, t))]
});
}
-function nU({ value: e, busy: t, onChange: n, animate: r = !0 }) {
- let i = Math.max(0, ZH.indexOf(e)), [a, o] = (0, F.useState)(i);
+function iU({ value: e, busy: t, onChange: n, animate: r = !0 }) {
+ let i = Math.max(0, $H.indexOf(e)), [a, o] = (0, F.useState)(i);
return (0, F.useEffect)(() => {
t || o(i);
}, [i, t]), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -45507,7 +45532,7 @@ function nU({ value: e, busy: t, onChange: n, animate: r = !0 }) {
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "text-text-tertiary",
children: "处理强度 "
- }), QH[a]]
+ }), eU[a]]
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "processing-effort-scale text-caption-1-regular text-text-tertiary",
@@ -45515,19 +45540,19 @@ function nU({ value: e, busy: t, onChange: n, animate: r = !0 }) {
children: [
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-selected": a === 0 || void 0,
- children: [/* @__PURE__ */ (0, I.jsx)($H, {}), "最慢"]
+ children: [/* @__PURE__ */ (0, I.jsx)(tU, {}), "最慢"]
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-selected": a === 1 || void 0,
- children: [/* @__PURE__ */ (0, I.jsx)(eU, {}), "标准"]
+ children: [/* @__PURE__ */ (0, I.jsx)(nU, {}), "标准"]
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-selected": a === 2 || void 0,
- children: [/* @__PURE__ */ (0, I.jsx)(tU, {}), "最快"]
+ children: [/* @__PURE__ */ (0, I.jsx)(rU, {}), "最快"]
})
]
}),
- /* @__PURE__ */ (0, I.jsxs)(Xfe, {
+ /* @__PURE__ */ (0, I.jsxs)(Qfe, {
"aria-label": "处理速度",
minValue: 0,
maxValue: 2,
@@ -45536,10 +45561,10 @@ function nU({ value: e, busy: t, onChange: n, animate: r = !0 }) {
isDisabled: t,
onChange: o,
onChangeEnd: (e) => {
- e !== i && n(ZH[e]);
+ e !== i && n($H[e]);
},
className: "processing-effort-slider",
- children: [/* @__PURE__ */ (0, I.jsx)(FR, {
+ children: [/* @__PURE__ */ (0, I.jsx)(LR, {
className: "processing-effort-label",
children: "处理速度"
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -45559,11 +45584,11 @@ function nU({ value: e, busy: t, onChange: n, animate: r = !0 }) {
/* @__PURE__ */ (0, I.jsx)("i", {})
]
}),
- a === 2 ? /* @__PURE__ */ (0, I.jsx)(zge, { animate: r }) : null,
- /* @__PURE__ */ (0, I.jsx)(Zfe, {
+ a === 2 ? /* @__PURE__ */ (0, I.jsx)(Vge, { animate: r }) : null,
+ /* @__PURE__ */ (0, I.jsx)($fe, {
className: "processing-effort-hit",
- children: /* @__PURE__ */ (0, I.jsx)(Qfe, {
- "aria-label": QH[a],
+ children: /* @__PURE__ */ (0, I.jsx)(epe, {
+ "aria-label": eU[a],
className: "processing-effort-thumb"
})
})
@@ -45577,37 +45602,37 @@ function nU({ value: e, busy: t, onChange: n, animate: r = !0 }) {
]
});
}
-function Bge({ value: e, busy: t, onChange: n, animate: r = !0 }) {
- let i = (0, F.useRef)(null), [a, o] = (0, F.useState)(!1), s = Math.max(0, ZH.indexOf(e));
+function Hge({ value: e, busy: t, onChange: n, animate: r = !0 }) {
+ let i = (0, F.useRef)(null), [a, o] = (0, F.useState)(!1), s = Math.max(0, $H.indexOf(e));
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "processing-effort-trigger",
"data-speed": e,
- children: /* @__PURE__ */ (0, I.jsx)(q, {
+ children: /* @__PURE__ */ (0, I.jsx)(J, {
ref: i,
size: "small",
variant: "secondary",
- "aria-label": `处理速度:${QH[s]}`,
+ "aria-label": `处理速度:${eU[s]}`,
"aria-haspopup": "dialog",
"aria-expanded": a,
"aria-disabled": t,
- leadingIcon: Rge[s],
- trailingIcon: gV,
+ leadingIcon: Bge[s],
+ trailingIcon: vV,
onClick: () => {
t || o(!a);
},
- children: QH[s]
+ children: eU[s]
})
- }), /* @__PURE__ */ (0, I.jsx)(uB, {
+ }), /* @__PURE__ */ (0, I.jsx)(fB, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "top start",
offset: 8,
- className: uH,
- children: /* @__PURE__ */ (0, I.jsx)(XH, {
+ className: fH,
+ children: /* @__PURE__ */ (0, I.jsx)(QH, {
"aria-label": "处理速度",
className: "outline-none",
- children: /* @__PURE__ */ (0, I.jsx)(nU, {
+ children: /* @__PURE__ */ (0, I.jsx)(iU, {
value: e,
busy: t,
onChange: n,
@@ -45617,10 +45642,10 @@ function Bge({ value: e, busy: t, onChange: n, animate: r = !0 }) {
})] });
}
// src/react/library-processing/processing-controls.tsx
-function rU({ state: e, disabled: t = !1 }) {
- let n = qH(), r = NH(e), i = e.status === "stopping", a = e.status === "paused" ? "继续" : e.status === "pausing" ? "正在暂停" : "暂停", o = (e) => {
- t || n.busy || n.run(e.action, (t) => H(kH, e, "POST", t), (e) => {
- U.setQueryData(AH, e), U.invalidateQueries({ queryKey: AH });
+function aU({ state: e, disabled: t = !1 }) {
+ let n = YH(), r = FH(e), i = e.status === "stopping", a = e.status === "paused" ? "继续" : e.status === "pausing" ? "正在暂停" : "暂停", o = (e) => {
+ t || n.busy || n.run(e.action, (t) => H(jH, e, "POST", t), (e) => {
+ U.setQueryData(MH, e), U.invalidateQueries({ queryKey: MH });
});
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -45629,7 +45654,7 @@ function rU({ state: e, disabled: t = !1 }) {
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)(Bge, {
+ /* @__PURE__ */ (0, I.jsx)(Hge, {
value: e.speed_mode || "standard",
busy: t || !!n.busy || i,
animate: e.status !== "paused" && e.status !== "pausing",
@@ -45639,15 +45664,15 @@ function rU({ state: e, disabled: t = !1 }) {
...r ? { job_id: e.job_id } : {}
})
}),
- r ? /* @__PURE__ */ (0, I.jsx)(q, {
+ r ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: e.status === "paused" ? DV : EV,
+ leadingIcon: e.status === "paused" ? kV : OV,
"aria-label": a,
title: a,
disabled: t || !e.job_id || e.status === "pausing" || i,
- ...qV(n.busy === "pause" || n.busy === "resume"),
+ ...YV(n.busy === "pause" || n.busy === "resume"),
onClick: () => {
e.job_id && o({
action: e.status === "paused" ? "resume" : "pause",
@@ -45655,11 +45680,11 @@ function rU({ state: e, disabled: t = !1 }) {
});
}
}) : null,
- r ? /* @__PURE__ */ (0, I.jsx)(q, {
+ r ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "secondary",
disabled: t || !e.job_id || i,
- ...qV(n.busy === "cancel"),
+ ...YV(n.busy === "cancel"),
onClick: () => {
e.job_id && o({
action: "cancel",
@@ -45677,11 +45702,11 @@ function rU({ state: e, disabled: t = !1 }) {
});
}
// src/react/library-processing/use-library-processing.ts
-function iU({ toast: e, mode: t, monitor: n }) {
+function oU({ toast: e, mode: t, monitor: n }) {
let r = t === "notice" || !!n, i = Nt({
- queryKey: AH,
- queryFn: ({ signal: e }) => RH(e),
- refetchInterval: (e) => VH(e.state.data, r)
+ queryKey: MH,
+ queryFn: ({ signal: e }) => BH(e),
+ refetchInterval: (e) => UH(e.state.data, r)
}), [a, o] = (0, F.useState)(null), s = (0, F.useRef)(void 0), c = i.data;
return (0, F.useEffect)(() => {
if (!c) return;
@@ -45692,8 +45717,8 @@ function iU({ toast: e, mode: t, monitor: n }) {
"pausing",
"paused",
"stopping"
- ].includes(n) && !NH(c);
- r && o(c), (r || t === "notice") && Pge(c, e, r);
+ ].includes(n) && !FH(c);
+ r && o(c), (r || t === "notice") && Ige(c, e, r);
}, [
c,
t,
@@ -45705,37 +45730,37 @@ function iU({ toast: e, mode: t, monitor: n }) {
};
}
// src/react/components/card.tsx
-var Vge = "min-w-0", Hge = {
+var Uge = "min-w-0", Wge = {
filled: "bg-background-secondary-default",
outlined: "border border-separator-border bg-background-primary-default",
raised: "bg-background-primary-default"
-}, Uge = {
+}, Gge = {
default: "rounded-2xl shadow-card",
chart: "rounded-2-5xl",
surface: "rounded-surface",
plain: "rounded-2xl"
-}, Wge = {
+}, Kge = {
line: "border border-border-button-default",
soft: "border border-separator-border"
-}, Gge = {
+}, qge = {
none: "",
default: "p-5"
-}, Kge = "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", qge = "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 aU(e = {}) {
+}, Jge = "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", Yge = "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 sU(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 [
- Vge,
- Hge[t],
- Uge[s],
- Gge[n],
- a ? Wge[a] : "",
- r ? Kge : "",
- i ? qge : "",
+ Uge,
+ Wge[t],
+ Gge[s],
+ qge[n],
+ a ? Kge[a] : "",
+ r ? Jge : "",
+ i ? Yge : "",
o ?? ""
].filter(Boolean).join(" ");
}
// src/react/components/loading-dots.tsx
-function oU({ label: e }) {
+function cU({ label: e }) {
return /* @__PURE__ */ (0, I.jsxs)("p", {
role: "status",
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
@@ -45754,21 +45779,21 @@ function oU({ label: e }) {
});
}
// src/react/components/progress.tsx
-var sU = 100, Jge = .4;
-function cU({ label: e, value: t, max: n = 100, stops: r = [] }) {
- let i = n > 0 ? n : 1, a = (e) => Math.min(Math.max(Number.isFinite(e) ? e : 0, 0), i), o = (e) => a(e) / i * sU;
+var lU = 100, Xge = .4;
+function uU({ label: e, value: t, max: n = 100, stops: r = [] }) {
+ let i = n > 0 ? n : 1, a = (e) => Math.min(Math.max(Number.isFinite(e) ? e : 0, 0), i), o = (e) => a(e) / i * lU;
return /* @__PURE__ */ (0, I.jsxs)("svg", {
role: "progressbar",
"aria-label": e,
"aria-valuemin": 0,
"aria-valuemax": i,
"aria-valuenow": a(t),
- viewBox: `0 0 ${sU} 1`,
+ viewBox: `0 0 ${lU} 1`,
preserveAspectRatio: "none",
className: "h-1.5 w-full overflow-hidden rounded-full",
children: [
/* @__PURE__ */ (0, I.jsx)("rect", {
- width: sU,
+ width: lU,
height: 1,
className: "fill-background-tertiary-default"
}),
@@ -45779,7 +45804,7 @@ function cU({ label: e, value: t, max: n = 100, stops: r = [] }) {
}),
r.map((e) => /* @__PURE__ */ (0, I.jsx)("rect", {
x: o(e),
- width: Jge,
+ width: Xge,
height: 1,
className: "fill-background-secondary-default"
}, e))
@@ -45787,26 +45812,26 @@ function cU({ label: e, value: t, max: n = 100, stops: r = [] }) {
});
}
// src/react/components/task-progress.tsx
-function lU({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
+function dU({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-task-progress": !0,
- className: r ? "flex flex-col gap-1.5" : aU({
+ className: r ? "flex flex-col gap-1.5" : sU({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-1.5 px-4 py-3.5"
}),
- children: n && n > 0 ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(cU, {
+ children: n && n > 0 ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(uU, {
label: e,
value: t,
max: n
}), /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-caption-1-regular text-text-secondary wrap-anywhere",
children: e
- })] }) : /* @__PURE__ */ (0, I.jsx)(oU, { label: e })
+ })] }) : /* @__PURE__ */ (0, I.jsx)(cU, { label: e })
});
}
// src/react/library-processing/processing-line.tsx
-function uU(e) {
+function fU(e) {
let [t, n] = (0, F.useState)({
snapshot: e,
seconds: 0
@@ -45822,17 +45847,17 @@ function uU(e) {
return () => window.clearInterval(r);
}, [e, i]);
let a = i && t.snapshot === e ? t.seconds : 0;
- return jge(a ? {
+ return Nge(a ? {
...e,
waited_seconds: r + a
} : e);
}
-function Yge({ state: e }) {
- return uU(e);
+function Zge({ state: e }) {
+ return fU(e);
}
-function Xge({ state: e }) {
- let t = uU(e);
- return /* @__PURE__ */ (0, I.jsx)(lU, {
+function Qge({ state: e }) {
+ let t = fU(e);
+ return /* @__PURE__ */ (0, I.jsx)(dU, {
embedded: !0,
label: t,
value: Math.min(e.checked || 0, e.total || 0),
@@ -45840,7 +45865,7 @@ function Xge({ state: e }) {
});
}
// src/react/components/collapse-region.tsx
-function dU({ open: e, children: t, ...n }) {
+function pU({ open: e, children: t, ...n }) {
let r = (0, F.useRef)(null), i = (0, F.useRef)(!1);
return (0, F.useLayoutEffect)(() => {
let t = r.current;
@@ -45851,7 +45876,7 @@ function dU({ open: e, children: t, ...n }) {
children: t
});
}
-function fU(e) {
+function mU(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
...e,
"aria-hidden": !0,
@@ -45866,21 +45891,21 @@ function fU(e) {
});
}
// src/react/boardui/components/application/settings/settings-rows.tsx
-function pU({ className: e, children: t }) {
+function hU({ className: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
- className: jL("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
+ className: NL("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
-function mU({ className: e, children: t }) {
+function gU({ className: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
- className: jL("w-full px-3 text-body-2-medium text-text-secondary", e),
+ className: NL("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
-function Zge({ label: e, description: t, children: n }) {
+function $ge({ label: e, description: t, children: n }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
- className: jL("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
+ className: NL("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-col",
children: [/* @__PURE__ */ (0, I.jsx)("p", {
@@ -45894,7 +45919,7 @@ function Zge({ label: e, description: t, children: n }) {
});
}
// src/react/settings/section.tsx
-function Qge({ title: e, icon: t, id: n, aside: r, onSubmit: i, children: a }) {
+function e_e({ title: e, icon: t, id: n, aside: r, onSubmit: i, children: a }) {
let o = t ? /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex items-center gap-1.5",
children: [t, e]
@@ -45902,12 +45927,12 @@ function Qge({ title: e, icon: t, id: n, aside: r, onSubmit: i, children: a }) {
className: "flex w-full flex-wrap items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, I.jsx)("div", {
className: "min-w-40 flex-1",
- children: /* @__PURE__ */ (0, I.jsx)(mU, { children: o })
+ children: /* @__PURE__ */ (0, I.jsx)(gU, { children: o })
}), /* @__PURE__ */ (0, I.jsx)("div", {
className: "flex min-w-0 max-w-full",
children: r
})]
- }) : /* @__PURE__ */ (0, I.jsx)(mU, { children: o }), /* @__PURE__ */ (0, I.jsx)(pU, { children: a })] });
+ }) : /* @__PURE__ */ (0, I.jsx)(gU, { children: o }), /* @__PURE__ */ (0, I.jsx)(hU, { children: a })] });
return i ? /* @__PURE__ */ (0, I.jsx)("form", {
id: n,
"aria-label": e,
@@ -45922,13 +45947,13 @@ function Qge({ title: e, icon: t, id: n, aside: r, onSubmit: i, children: a }) {
children: s
});
}
-function $ge({ children: e }) {
+function t_e({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
className: "ui-settings-rows flex flex-col empty:hidden",
children: e
});
}
-function e_e({ divided: e = !1, children: t }) {
+function n_e({ divided: e = !1, children: t }) {
return e ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3 empty:hidden",
children: t
@@ -45937,7 +45962,7 @@ function e_e({ divided: e = !1, children: t }) {
children: t
});
}
-function t_e({ label: e, html: t }) {
+function r_e({ label: e, html: t }) {
let [n] = (0, F.useState)(t);
return /* @__PURE__ */ (0, I.jsx)("div", {
className: "contents",
@@ -45947,7 +45972,7 @@ function t_e({ label: e, html: t }) {
dangerouslySetInnerHTML: { __html: n }
});
}
-function n_e({ status: e, children: t }) {
+function i_e({ status: e, children: t }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3 empty:hidden",
children: [e ? /* @__PURE__ */ (0, I.jsx)("div", {
@@ -45956,34 +45981,34 @@ function n_e({ status: e, children: t }) {
}) : null, t]
});
}
-function hU({ role: e, children: t }) {
+function _U({ role: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function gU({ children: e }) {
+function vU({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function _U({ children: e }) {
+function yU({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function r_e({ href: e, children: t, leadingIcon: n }) {
- return /* @__PURE__ */ (0, I.jsx)(KH, {
+function a_e({ href: e, children: t, leadingIcon: n }) {
+ return /* @__PURE__ */ (0, I.jsx)(JH, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
size: "small",
leadingIcon: n,
- trailingIcon: bV,
+ trailingIcon: SV,
className: "min-w-0 max-w-full",
children: /* @__PURE__ */ (0, I.jsx)("span", {
className: "min-w-0 whitespace-normal break-all",
@@ -45991,22 +46016,22 @@ function r_e({ href: e, children: t, leadingIcon: n }) {
})
});
}
-function i_e() {
- return /* @__PURE__ */ (0, I.jsx)(KH, {
+function o_e() {
+ return /* @__PURE__ */ (0, I.jsx)(JH, {
href: "/tasks",
size: "small",
- trailingIcon: _V,
+ trailingIcon: yV,
className: "self-start",
children: "在任务中心查看进度"
});
}
-function a_e({ children: e }) {
+function s_e({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("dl", {
className: "ui-settings-facts flex flex-col empty:hidden",
children: e
});
}
-function o_e({ term: e, children: t }) {
+function c_e({ term: e, children: t }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0",
children: [/* @__PURE__ */ (0, I.jsx)("dt", {
@@ -46018,7 +46043,7 @@ function o_e({ term: e, children: t }) {
})]
});
}
-function vU({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing: i = !1, onOpenChange: a, contentClassName: o }) {
+function bU({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing: i = !1, onOpenChange: a, contentClassName: o }) {
let s = (0, F.useId)(), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(!1), [d, f] = (0, F.useState)(n ?? t);
return (0, F.useLayoutEffect)(() => {
n !== void 0 && n !== d && c.current && l.current && (Ro(c.current, l.current, n), f(n));
@@ -46034,12 +46059,12 @@ function vU({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing:
},
className: `${i ? "w-full" : "w-fit"} flex cursor-pointer list-none items-center gap-1 rounded-sm text-body-2-medium text-text-secondary outline-none select-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
children: [
- i ? null : /* @__PURE__ */ (0, I.jsx)(vV, {
+ i ? null : /* @__PURE__ */ (0, I.jsx)(bV, {
"aria-hidden": !0,
className: d ? "size-(--icon-inline) shrink-0 rotate-90 transition-transform" : "size-(--icon-inline) shrink-0 transition-transform"
}),
e,
- i ? /* @__PURE__ */ (0, I.jsx)(vV, {
+ i ? /* @__PURE__ */ (0, I.jsx)(bV, {
"aria-hidden": !0,
className: d ? "ml-auto size-(--icon-inline) shrink-0 -rotate-90 transition-transform" : "ml-auto size-(--icon-inline) shrink-0 rotate-90 transition-transform"
}) : null
@@ -46049,13 +46074,13 @@ function vU({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing:
id: s,
inert: !d,
children: /* @__PURE__ */ (0, I.jsx)("div", {
- className: jL("flex flex-col gap-2 pt-3", o),
+ className: NL("flex flex-col gap-2 pt-3", o),
children: r
})
})]
});
}
-function s_e({ name: e }) {
+function l_e({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
"aria-hidden": !0,
"data-source-mark": e,
@@ -46065,34 +46090,34 @@ function s_e({ name: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function yU({ mark: e }) {
+function xU({ mark: e }) {
return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, I.jsx)("img", {
src: e,
alt: "",
width: 16,
height: 16,
className: "size-(--icon-inline) shrink-0"
- }) : /* @__PURE__ */ (0, I.jsx)(s_e, { name: e });
+ }) : /* @__PURE__ */ (0, I.jsx)(l_e, { name: e });
}
// src/react/components/source-label.tsx
-var bU = (e) => e.startsWith("clouddrive:") ? e.split(":")[1] : e, c_e = Object.fromEntries(Object.entries(hs).map(([e, t]) => [e, function({ className: e }) {
+var SU = (e) => e.startsWith("clouddrive:") ? e.split(":")[1] : e, u_e = Object.fromEntries(Object.entries(hs).map(([e, t]) => [e, function({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
className: e,
- children: /* @__PURE__ */ (0, I.jsx)(yU, { mark: t })
+ children: /* @__PURE__ */ (0, I.jsx)(xU, { mark: t })
});
}]));
-function l_e({ className: e }) {
+function d_e({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
className: e,
- children: /* @__PURE__ */ (0, I.jsx)(yU, { mark: "database" })
+ children: /* @__PURE__ */ (0, I.jsx)(xU, { mark: "database" })
});
}
-var xU = (e) => c_e[bU(e)] ?? l_e;
-function u_e({ site: e, label: t }) {
+var CU = (e) => u_e[SU(e)] ?? d_e;
+function f_e({ site: e, label: t }) {
let [n, r] = (0, F.useState)(!1), i = e === "javdb" ? "/site-mark?source=javdb" : e === "missav" ? "/site-mark?domain=missav.com" : null;
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [n || !i ? /* @__PURE__ */ (0, I.jsx)(yU, { mark: "globe" }) : /* @__PURE__ */ (0, I.jsx)("img", {
+ children: [n || !i ? /* @__PURE__ */ (0, I.jsx)(xU, { mark: "globe" }) : /* @__PURE__ */ (0, I.jsx)("img", {
src: i,
alt: "",
className: "size-(--icon-inline) shrink-0 object-contain",
@@ -46100,24 +46125,24 @@ function u_e({ site: e, label: t }) {
}), /* @__PURE__ */ (0, I.jsx)("span", { children: t })]
});
}
-function SU({ source: e, label: t }) {
- let n = bU(e);
+function wU({ source: e, label: t }) {
+ let n = SU(e);
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, I.jsx)(yU, { mark: hs[n] || (n === "local" ? "hard-drive" : "database") }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(xU, { mark: hs[n] || (n === "local" ? "hard-drive" : "database") }), /* @__PURE__ */ (0, I.jsx)("span", {
className: "min-w-0 truncate",
children: t
})]
});
}
// src/react/library-processing/processing-traffic.tsx
-var CU = (e) => Jn(e).replace(/\s/g, ""), wU = (e) => e >= 1024 ** 2 && e < 1024 ** 3 ? `${Number((e / 1024 ** 2).toFixed(1))}MB` : CU(e), d_e = (e, t) => {
- if (e === t) return CU(t);
+var TU = (e) => Jn(e).replace(/\s/g, ""), EU = (e) => e >= 1024 ** 2 && e < 1024 ** 3 ? `${Number((e / 1024 ** 2).toFixed(1))}MB` : TU(e), p_e = (e, t) => {
+ if (e === t) return TU(t);
let [n, r] = Jn(e).split(" "), [i, a] = Jn(t).split(" ");
- return r === a ? `${n}-${i}${a}` : `${CU(e)}-${CU(t)}`;
-}, TU = (e, t, n) => e === void 0 ? d_e(t, n) : `${e > 0 ? "约 " : ""}${CU(e)}`;
-function EU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r }) {
- let i = vH(), [a, o] = (0, F.useState)(!1), s = (0, F.useId)(), c = n ?? a;
+ return r === a ? `${n}-${i}${a}` : `${TU(e)}-${TU(t)}`;
+}, DU = (e, t, n) => e === void 0 ? p_e(t, n) : `${e > 0 ? "约 " : ""}${TU(e)}`;
+function OU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r }) {
+ let i = bH(), [a, o] = (0, F.useState)(!1), s = (0, F.useId)(), c = n ?? a;
if (!e) return null;
let l = (e) => e.toLocaleString("zh-CN");
return /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -46159,25 +46184,25 @@ function EU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
children: [
/* @__PURE__ */ (0, I.jsxs)("p", {
className: "inline-flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, I.jsx)(CV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(TV, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
}), e.inventory && !e.inventory.complete ? "已识别流量" : "预计流量"]
}),
/* @__PURE__ */ (0, I.jsx)("p", {
className: "text-title-3-semibold text-text-primary",
- children: TU(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)
+ children: DU(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)
}),
/* @__PURE__ */ (0, I.jsxs)("p", { children: [
e.unknown_route_estimated_bytes ? "已确认代理" : "代理",
" ",
- TU(e.metered_estimated_bytes, e.metered_estimated_min_bytes, e.metered_estimated_max_bytes)
+ DU(e.metered_estimated_bytes, e.metered_estimated_min_bytes, e.metered_estimated_max_bytes)
] }),
t ? null : /* @__PURE__ */ (0, I.jsxs)("p", { children: [
"已用 ",
- /* @__PURE__ */ (0, I.jsxs)("span", { children: [e.partial ? "约 " : "", CU(e.used_bytes)] }),
+ /* @__PURE__ */ (0, I.jsxs)("span", { children: [e.partial ? "约 " : "", TU(e.used_bytes)] }),
" · 代理 ",
- CU(e.metered_used_bytes)
+ TU(e.metered_used_bytes)
] })
]
}), e.disk ? /* @__PURE__ */ (0, I.jsxs)("section", {
@@ -46186,25 +46211,25 @@ function EU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
children: [
/* @__PURE__ */ (0, I.jsxs)("p", {
className: "inline-flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, I.jsx)(Phe, {
+ children: [/* @__PURE__ */ (0, I.jsx)(Ihe, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
}), e.inventory && !e.inventory.complete ? "已识别占用" : "预计占用"]
}),
/* @__PURE__ */ (0, I.jsxs)("p", {
className: "text-title-3-semibold text-text-primary",
- children: ["约 ", CU(e.disk.estimated_bytes)]
+ children: ["约 ", TU(e.disk.estimated_bytes)]
}),
- e.disk.temporary_bytes > 0 ? /* @__PURE__ */ (0, I.jsxs)("p", { children: ["抽帧临时文件约 ", wU(e.disk.temporary_bytes)] }) : null,
+ e.disk.temporary_bytes > 0 ? /* @__PURE__ */ (0, I.jsxs)("p", { children: ["抽帧临时文件约 ", EU(e.disk.temporary_bytes)] }) : null,
e.disk.volumes.map((e) => /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-col gap-1",
children: [/* @__PURE__ */ (0, I.jsxs)("p", { children: [
e.path,
" 剩余 ",
- e.free_bytes == null ? "未取得" : CU(e.free_bytes)
+ e.free_bytes == null ? "未取得" : TU(e.free_bytes)
] }), e.can_fit === !1 ? /* @__PURE__ */ (0, I.jsxs)("p", {
role: "status",
- children: ["空间不足,还差 ", CU(e.shortfall_bytes || 0)]
+ children: ["空间不足,还差 ", TU(e.shortfall_bytes || 0)]
}) : null]
}, e.path)),
e.disk.cache_unknown ? /* @__PURE__ */ (0, I.jsx)("p", {
@@ -46214,13 +46239,13 @@ function EU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
]
}) : null]
}),
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
className: "self-start",
"aria-expanded": c,
"aria-controls": s,
- trailingIcon: c ? Qme : gV,
+ trailingIcon: c ? ehe : vV,
onClick: () => {
o(!c), r?.(!c);
},
@@ -46239,12 +46264,12 @@ function EU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 items-start justify-between gap-2",
- children: [e.root ? /* @__PURE__ */ (0, I.jsx)(SU, {
+ children: [e.root ? /* @__PURE__ */ (0, I.jsx)(wU, {
source: e.location,
label: e.label
}) : /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, I.jsx)(yU, { mark: "globe" }), e.label]
+ children: [/* @__PURE__ */ (0, I.jsx)(xU, { mark: "globe" }), e.label]
}), /* @__PURE__ */ (0, I.jsx)("span", {
className: "shrink-0",
children: e.connection === "system" ? "跟随系统" : e.connection === "unknown" ? "连接待确认" : e.metered ? "代理" : "直连"
@@ -46266,7 +46291,7 @@ function EU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
"待补资料 ",
l(e.workload.pending_jav_titles),
" 部 · 平均约 ",
- wU(e.workload.metadata_average_bytes || 0),
+ EU(e.workload.metadata_average_bytes || 0),
"/部"
]
}) : null,
@@ -46276,8 +46301,8 @@ function EU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
"已用",
e.unobserved.length ? "约" : "",
" ",
- CU(e.used_bytes)
- ] }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["预计 ", TU(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)] })]
+ TU(e.used_bytes)
+ ] }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["预计 ", DU(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)] })]
})
]
}, e.key))
@@ -46288,15 +46313,15 @@ function EU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
});
}
// src/react/library-processing/library-processing-notice.tsx
-var DU = "peach.library-processing.collapsed";
-function OU(e) {
+var kU = "peach.library-processing.collapsed";
+function AU(e) {
try {
- return !e || sessionStorage.getItem(DU) !== e;
+ return !e || sessionStorage.getItem(kU) !== e;
} catch {
return !0;
}
}
-function f_e({ value: e, max: t }) {
+function m_e({ value: e, max: t }) {
let n = Math.max(0, Math.min(100, e / t * 100));
return /* @__PURE__ */ (0, I.jsxs)("svg", {
role: "progressbar",
@@ -46326,14 +46351,14 @@ function f_e({ value: e, max: t }) {
})]
});
}
-function kU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
- let [i, a] = (0, F.useState)(() => OU(e?.job_id)), o = (0, F.useId)(), [s, c] = (0, F.useState)(!1), l = (0, F.useRef)(null), u = !t && PH(e), d = e?.status === "failed" && !u, f = NH(e);
+function jU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
+ let [i, a] = (0, F.useState)(() => AU(e?.job_id)), o = (0, F.useId)(), [s, c] = (0, F.useState)(!1), l = (0, F.useRef)(null), u = !t && IH(e), d = e?.status === "failed" && !u, f = FH(e);
(0, F.useEffect)(() => {
- a(OU(e?.job_id)), c(!1);
+ a(AU(e?.job_id)), c(!1);
}, [e?.job_id]);
let p = () => {
try {
- i && e?.job_id ? sessionStorage.setItem(DU, e.job_id) : sessionStorage.removeItem(DU);
+ i && e?.job_id ? sessionStorage.setItem(kU, e.job_id) : sessionStorage.removeItem(kU);
} catch {}
i && c(!1), a(!i);
};
@@ -46348,14 +46373,14 @@ function kU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
t = !0, i.disconnect(), document.documentElement.style.removeProperty("--processing-toast-space");
};
}, [n]), e?.archived && !t || !t && !f && !d && !u) return null;
- let m = t ? null : jH(e), h = !!t || !!e?.stalled || u || !!m, g = u ? "处理已结束,部分项目需处理" : d ? "扫描与采集已中断" : e?.status === "paused" ? "扫描与采集已暂停" : "扫描与采集";
+ let m = t ? null : NH(e), h = !!t || !!e?.stalled || u || !!m, g = u ? "处理已结束,部分项目需处理" : d ? "扫描与采集已中断" : e?.status === "paused" ? "扫描与采集已暂停" : "扫描与采集";
return /* @__PURE__ */ (0, I.jsxs)("aside", {
ref: l,
"data-processing-dock": "",
"data-processing-tone": d ? "error" : h ? "warning" : "neutral",
"aria-label": "扫描任务",
role: d ? "alert" : "status",
- className: jL("flex min-w-0 flex-col border bg-background-primary-default p-4", d ? "border-current/35 text-text-error-primary" : h ? "border-current/35 text-status-yellow-text" : "border-border-button-default text-text-primary"),
+ className: NL("flex min-w-0 flex-col border bg-background-primary-default p-4", d ? "border-current/35 text-text-error-primary" : h ? "border-current/35 text-status-yellow-text" : "border-border-button-default text-text-primary"),
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-col gap-3",
@@ -46363,13 +46388,13 @@ function kU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
children: [
- f && e?.total ? /* @__PURE__ */ (0, I.jsx)(f_e, {
+ f && e?.total ? /* @__PURE__ */ (0, I.jsx)(m_e, {
value: e.checked || 0,
max: e.total
- }) : d || h ? /* @__PURE__ */ (0, I.jsx)(dhe, {
+ }) : d || h ? /* @__PURE__ */ (0, I.jsx)(phe, {
"aria-hidden": !0,
className: "size-5 shrink-0"
- }) : /* @__PURE__ */ (0, I.jsx)(She, {
+ }) : /* @__PURE__ */ (0, I.jsx)(whe, {
"aria-hidden": !0,
className: "size-5 shrink-0"
}),
@@ -46381,14 +46406,14 @@ function kU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
}), f ? /* @__PURE__ */ (0, I.jsx)("p", {
"data-processing-eta": "",
className: "text-caption-1-regular text-text-secondary tabular-nums wrap-anywhere",
- children: LH(e)
+ children: zH(e)
}) : null]
}),
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: fU,
+ leadingIcon: mU,
"data-processing-toggle": "",
"data-collapse-upward": "",
"aria-label": i ? "收起任务详情" : "展开任务详情",
@@ -46396,35 +46421,35 @@ function kU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
"aria-controls": o,
onClick: p
}),
- r ? /* @__PURE__ */ (0, I.jsx)(q, {
+ r ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: yV,
+ leadingIcon: xV,
"aria-label": "隐藏任务提示",
onClick: r
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(EU, {
+ /* @__PURE__ */ (0, I.jsx)(OU, {
traffic: e?.traffic,
detailsOpen: s,
onDetailsChange: c
}),
- m ? /* @__PURE__ */ (0, I.jsx)(Ige, {
+ m ? /* @__PURE__ */ (0, I.jsx)(Rge, {
state: e,
slow: m
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(dU, {
+ /* @__PURE__ */ (0, I.jsx)(pU, {
id: o,
open: i,
"data-processing-body": "",
children: /* @__PURE__ */ (0, I.jsx)("div", {
className: "pt-3",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
- className: jL("flex min-w-0 flex-col gap-2 border-t pt-3", d ? "border-border-error-default/20" : h ? "border-current/20" : "border-separator-border"),
+ className: NL("flex min-w-0 flex-col gap-2 border-t pt-3", d ? "border-border-error-default/20" : h ? "border-current/20" : "border-separator-border"),
children: [
e?.steps?.length ? /* @__PURE__ */ (0, I.jsx)("ol", {
"aria-label": "处理步骤",
@@ -46432,16 +46457,16 @@ function kU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
children: e.steps.map((e) => /* @__PURE__ */ (0, I.jsxs)("li", {
"data-processing-step": e.status,
"aria-current": e.status === "current" ? "step" : void 0,
- className: jL("flex min-h-8 items-center gap-2 text-body-2-regular", e.status === "current" ? "text-text-primary" : "text-text-tertiary"),
+ className: NL("flex min-h-8 items-center gap-2 text-body-2-regular", e.status === "current" ? "text-text-primary" : "text-text-tertiary"),
children: [
- e.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(ihe, {
+ e.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(ohe, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
- }) : /* @__PURE__ */ (0, I.jsx)(ahe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(she, {
"aria-hidden": !0,
- className: jL("size-(--icon-inline) shrink-0", e.status === "current" && "text-border-focus-ring")
+ className: NL("size-(--icon-inline) shrink-0", e.status === "current" && "text-border-focus-ring")
}),
- /* @__PURE__ */ (0, I.jsx)(AE, { children: e.status === "complete" ? "已完成:" : e.status === "current" ? "当前:" : "待处理:" }),
+ /* @__PURE__ */ (0, I.jsx)(NE, { children: e.status === "complete" ? "已完成:" : e.status === "current" ? "当前:" : "待处理:" }),
e.status === "complete" ? /* @__PURE__ */ (0, I.jsx)("s", {
className: "wrap-anywhere",
children: e.label
@@ -46454,11 +46479,11 @@ function kU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
}) : null,
/* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular wrap-anywhere",
- children: t || (d || u ? e?.error || "请查看并处理未完成项" : /* @__PURE__ */ (0, I.jsx)(Yge, { state: e }))
+ children: t || (d || u ? e?.error || "请查看并处理未完成项" : /* @__PURE__ */ (0, I.jsx)(Zge, { state: e }))
}),
u ? /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular wrap-anywhere",
- children: FH
+ children: LH
}) : null,
f && e?.stage && !e.steps?.length ? /* @__PURE__ */ (0, I.jsxs)("p", {
className: "text-caption-1-regular text-text-tertiary",
@@ -46475,20 +46500,20 @@ function kU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-2 pt-3",
children: [
- /* @__PURE__ */ (0, I.jsx)(KH, {
+ /* @__PURE__ */ (0, I.jsx)(JH, {
href: "/data-cleanup#libraryProcessing",
variant: "secondary",
size: "small",
- trailingIcon: _V,
+ trailingIcon: yV,
children: t || d || u ? "打开扫描与采集" : "任务详情"
}),
- u ? /* @__PURE__ */ (0, I.jsx)(KH, {
- href: IH,
+ u ? /* @__PURE__ */ (0, I.jsx)(JH, {
+ href: RH,
size: "small",
- trailingIcon: _V,
+ trailingIcon: yV,
children: "查看全部内容"
}) : null,
- f ? /* @__PURE__ */ (0, I.jsx)(rU, {
+ f ? /* @__PURE__ */ (0, I.jsx)(aU, {
state: e,
disabled: !!t
}) : null
@@ -46497,67 +46522,67 @@ function kU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
]
});
}
-function p_e(e) {
- let { job: t } = iU(e);
- return /* @__PURE__ */ (0, I.jsx)(kU, {
+function h_e(e) {
+ let { job: t } = oU(e);
+ return /* @__PURE__ */ (0, I.jsx)(jU, {
state: t.data,
- problem: t.isError ? t.data ? BH : sr(t.error) : ""
+ problem: t.isError ? t.data ? HH : sr(t.error) : ""
});
}
// src/react/library-processing/processing-notice-visibility.ts
-var AU = "peach.library-processing.visibility", jU = /* @__PURE__ */ new Set(), MU = "";
-function m_e() {
+var MU = "peach.library-processing.visibility", NU = /* @__PURE__ */ new Set(), PU = "";
+function g_e() {
try {
- return sessionStorage.getItem(AU) || "";
+ return sessionStorage.getItem(MU) || "";
} catch {
- return MU;
+ return PU;
}
}
-function h_e(e) {
- return jU.add(e), () => {
- jU.delete(e);
+function __e(e) {
+ return NU.add(e), () => {
+ NU.delete(e);
};
}
-function NU(e, t) {
- MU = `${t ? "shown" : "hidden"}:${e}`;
+function FU(e, t) {
+ PU = `${t ? "shown" : "hidden"}:${e}`;
try {
- sessionStorage.setItem(AU, MU);
+ sessionStorage.setItem(MU, PU);
} catch {}
- jU.forEach((e) => e());
+ NU.forEach((e) => e());
}
-function PU(e) {
- let t = (0, F.useSyncExternalStore)(h_e, m_e, () => "");
+function IU(e) {
+ let t = (0, F.useSyncExternalStore)(__e, g_e, () => "");
return {
hidden: t === `hidden:${e}`,
requested: t === `shown:${e}`
};
}
// src/react/library-processing/library-processing-dock.tsx
-var FU = "peach-library-processing";
-function g_e({ toast: e }) {
- let { job: t, settled: n } = iU({
+var LU = "peach-library-processing";
+function v_e({ toast: e }) {
+ let { job: t, settled: n } = oU({
toast: e,
mode: "notice"
- }), r = (0, F.useRef)(!1), i = t.data, a = i?.job_id || "unavailable", { hidden: o, requested: s } = PU(a), c = t.isError ? i ? BH : sr(t.error) : "";
+ }), r = (0, F.useRef)(!1), i = t.data, a = i?.job_id || "unavailable", { hidden: o, requested: s } = IU(a), c = t.isError ? i ? HH : sr(t.error) : "";
return (0, F.useEffect)(() => {
- let e = NH(i), t = i?.status === "failed" && (n?.job_id === i.job_id || WH(i));
- o || i?.archived && !c || !e && !c && !t && !(s && i?.status === "failed") ? (r.current && CH.dismiss(FU), r.current = !1) : (CH.custom(() => /* @__PURE__ */ (0, I.jsx)("div", {
+ let e = FH(i), t = i?.status === "failed" && (n?.job_id === i.job_id || KH(i));
+ o || i?.archived && !c || !e && !c && !t && !(s && i?.status === "failed") ? (r.current && TH.dismiss(LU), r.current = !1) : (TH.custom(() => /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, I.jsx)(kU, {
+ children: /* @__PURE__ */ (0, I.jsx)(jU, {
state: i,
problem: c,
measure: !0,
- onHide: () => NU(a, !1)
+ onHide: () => FU(a, !1)
})
}), {
- id: FU,
+ id: LU,
toasterId: "processing",
duration: Infinity,
dismissible: !1,
closeButton: !1,
className: "processing-task-toast",
onDismiss: () => {
- NU(a, !1), r.current = !1;
+ FU(a, !1), r.current = !1;
}
}), r.current = !0);
}, [
@@ -46568,19 +46593,19 @@ function g_e({ toast: e }) {
o,
s
]), (0, F.useEffect)(() => () => {
- r.current && CH.dismiss(FU), r.current = !1;
+ r.current && TH.dismiss(LU), r.current = !1;
}, []), null;
}
// src/react/network-banner.tsx
-var __e = ["network-status"], v_e = "Peach 连不上外网,资料采集、关注更新和在线来源暂不可用;本机媒体照常浏览和播放。";
-function y_e(e) {
+var y_e = ["network-status"], b_e = "Peach 连不上外网,资料采集、关注更新和在线来源暂不可用;本机媒体照常浏览和播放。";
+function x_e(e) {
return e?.state === "online" ? 12e4 : 3e4;
}
-function b_e() {
+function S_e() {
let e = Nt({
- queryKey: __e,
+ queryKey: y_e,
queryFn: ({ signal: e }) => V("/api/network-status", e),
- refetchInterval: (e) => y_e(e.state.data),
+ refetchInterval: (e) => x_e(e.state.data),
retry: !1
}), t = document.querySelector("[data-network-banner]");
return e.data?.state !== "offline" || !t ? null : (0, It.createPortal)(/* @__PURE__ */ (0, I.jsxs)("aside", {
@@ -46591,22 +46616,22 @@ function b_e() {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-alert" })
- }), /* @__PURE__ */ (0, I.jsx)("p", { children: v_e })] }), /* @__PURE__ */ (0, I.jsx)("a", {
+ }), /* @__PURE__ */ (0, I.jsx)("p", { children: b_e })] }), /* @__PURE__ */ (0, I.jsx)("a", {
href: "/settings/network#peachProxy",
children: "检查 Peach 代理"
})]
}), t);
}
// src/react/client-updates.tsx
-var x_e = 12e4, S_e = 15e3, IU = () => document.visibilityState !== "hidden", LU = /* @__PURE__ */ new Set([
+var C_e = 12e4, w_e = 15e3, RU = () => document.visibilityState !== "hidden", zU = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
"preparing",
"restarting",
"installing"
-]), RU = "/settings/maintenance#releaseUpdates";
-function C_e() {
+]), BU = "/settings/maintenance#releaseUpdates";
+function T_e() {
try {
let e = JSON.parse(document.getElementById("peach-client-runtime")?.textContent || "null");
return typeof e?.version == "string" && typeof e?.build_id == "string" ? {
@@ -46617,23 +46642,23 @@ function C_e() {
return null;
}
}
-function zU() {
- let e = (0, F.useRef)(C_e()), [t, n] = (0, F.useState)(null);
+function VU() {
+ let e = (0, F.useRef)(T_e()), [t, n] = (0, F.useState)(null);
return (0, F.useEffect)(() => {
let t = !1, r, i, a = async () => {
- if (t || !IU()) return;
+ if (t || !RU()) return;
let o = new AbortController();
i = o;
- let s = setTimeout(() => o.abort(), S_e);
+ let s = setTimeout(() => o.abort(), w_e);
o.signal.addEventListener("abort", () => clearTimeout(s), { once: !0 });
try {
let r = await V("/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 && IU() && (r = setTimeout(a, x_e)));
+ clearTimeout(s), i === o && (i = void 0, !t && RU() && (r = setTimeout(a, C_e)));
}
}, o = () => {
- clearTimeout(r), i?.abort(), i = void 0, IU() && a();
+ clearTimeout(r), i?.abort(), i = void 0, RU() && a();
};
return document.addEventListener("visibilitychange", o), document.addEventListener("peach:client-updates", o), a(), () => {
t = !0, clearTimeout(r), i?.abort(), document.removeEventListener("visibilitychange", o), document.removeEventListener("peach:client-updates", o);
@@ -46643,12 +46668,12 @@ function zU() {
refresh: !!t && !!e.current && (t.runtime.version !== e.current.version || t.runtime.build_id !== e.current.build_id)
};
}
-function w_e({ navigate: e }) {
- let { snapshot: t, refresh: n } = zU(), [r, i] = (0, F.useState)(""), a = document.querySelector("[data-network-banner]");
+function E_e({ navigate: e }) {
+ let { snapshot: t, refresh: n } = VU(), [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" : LU.has(s.state) ? "preparing" : o.state === "available" && o.latest_version ? "available" : null;
+ let { release: o, update_job: s, runtime: c } = t, l = n ? "refresh" : s.state === "ready" ? "ready" : zU.has(s.state) ? "preparing" : o.state === "available" && o.latest_version ? "available" : null;
if (!l) return null;
- let u = (s.state === "ready" || LU.has(s.state)) && s.version || o.latest_version, d = JSON.stringify(l === "refresh" ? [
+ let u = (s.state === "ready" || zU.has(s.state)) && s.version || o.latest_version, d = JSON.stringify(l === "refresh" ? [
l,
c.version,
c.build_id
@@ -46671,22 +46696,22 @@ function w_e({ navigate: e }) {
children: [" Peach ", u]
}) : null] })] }), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex-wrap",
- children: [l === "refresh" ? /* @__PURE__ */ (0, I.jsx)(KH, {
+ children: [l === "refresh" ? /* @__PURE__ */ (0, I.jsx)(JH, {
variant: "secondary",
size: "small",
onClick: () => window.location.reload(),
"data-copy-key": "clientUpdates.refresh.action",
children: "刷新页面"
- }) : /* @__PURE__ */ (0, I.jsx)(KH, {
+ }) : /* @__PURE__ */ (0, I.jsx)(JH, {
variant: "secondary",
size: "small",
- href: RU,
+ href: BU,
onClick: (t) => {
- t.button !== 0 || t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || (t.preventDefault(), e(RU));
+ t.button !== 0 || t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || (t.preventDefault(), e(BU));
},
"data-copy-key": `clientUpdates.${l}.action`,
children: l === "preparing" ? "查看进度" : "查看更新"
- }), /* @__PURE__ */ (0, I.jsx)(KH, {
+ }), /* @__PURE__ */ (0, I.jsx)(JH, {
variant: "secondary",
size: "small",
onClick: () => i(d),
@@ -46697,8 +46722,8 @@ function w_e({ navigate: e }) {
}, d), a);
}
// src/react/router/pages/settings.tsx
-function T_e() {
- let e = (0, F.useContext)(GW), { pathname: t } = hf();
+function D_e() {
+ let e = (0, F.useContext)(JW), { pathname: t } = hf();
return (0, F.useEffect)(() => {
e?.openSettings?.(qf(t));
}, [e, t]), (0, F.useEffect)(() => () => {
@@ -46708,7 +46733,7 @@ function T_e() {
}, [e]), null;
}
// src/junk-queue.ts
-var BU = [
+var HU = [
[
"",
"全部",
@@ -46744,40 +46769,40 @@ var BU = [
"其它",
"hard-drive"
]
-], E_e = (e) => BU.find(([t]) => t === e)?.[0] ?? "";
-function VU(e) {
+], O_e = (e) => HU.find(([t]) => t === e)?.[0] ?? "";
+function UU(e) {
let t = new URLSearchParams(e);
return {
- kind: E_e(t.get("type")),
+ kind: O_e(t.get("type")),
view: t.get("view") === "dismissed" ? "dismissed" : "pending"
};
}
-function HU(e = "", t = "pending") {
+function WU(e = "", t = "pending") {
let n = new URLSearchParams();
e && n.set("type", e), t === "dismissed" && n.set("view", "dismissed");
let r = n.toString();
return `/junk-files${r ? `?${r}` : ""}`;
}
-function UU(e) {
+function GU(e) {
return e === "dismissed" ? {
view: "pending",
label: "返回待判断",
glyph: "rotate-ccw",
- href: HU("", "pending")
+ href: WU("", "pending")
} : {
view: "dismissed",
label: "已排除",
glyph: "eye-off",
- href: HU("", "dismissed")
+ href: WU("", "dismissed")
};
}
-var WU = (e) => e === "dismissed" ? "已排除" : "待判断", GU = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
-function D_e({ kind: e, view: t }) {
- let n = BU.map(([n, r, i]) => `<a href="${HU(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${GU(i)}${B(r)}</a>`).join(""), r = UU(t);
- return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${Ps(WU(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\"" : ""}>${GU(r.glyph)}${r.label}</a></nav></div></div></div>`;
+var KU = (e) => e === "dismissed" ? "已排除" : "待判断", qU = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
+function k_e({ kind: e, view: t }) {
+ let n = HU.map(([n, r, i]) => `<a href="${WU(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${qU(i)}${B(r)}</a>`).join(""), r = GU(t);
+ return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${Ps(KU(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 O_e(e, t, n) {
+function A_e(e, t, n) {
(0, F.useEffect)(() => {
if (!e) return;
let r = (e) => {
@@ -46791,7 +46816,7 @@ function O_e(e, t, n) {
n
]);
}
-function k_e(e, t) {
+function j_e(e, t) {
let n = (0, F.useRef)(!1);
return (0, F.useEffect)(() => {
if (!e) return;
@@ -46804,33 +46829,33 @@ function k_e(e, t) {
}, [e, t]), (e) => e && n.current ? (n.current = !1, !1) : !0;
}
// src/react/boardui/components/base/select/select.tsx
-var KU = (0, F.createContext)("md");
-function qU({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+var JU = (0, F.createContext)("md");
+function YU({ 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);
- O_e(d, () => f(!1), [l, u]);
- let p = k_e(d, l);
- return /* @__PURE__ */ (0, I.jsx)(Rpe, {
+ A_e(d, () => f(!1), [l, u]);
+ let p = j_e(d, l);
+ return /* @__PURE__ */ (0, I.jsx)(Bpe, {
ref: s,
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
- className: jL("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)(LR, {
+ className: NL("group flex flex-col", e),
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)(zR, {
ref: l,
- className: jL("flex w-full cursor-pointer items-center justify-between rounded-2lg", "border border-border-button-default bg-background-primary-default shadow-xs", "text-text-primary", "transition-[background-color,border-color,box-shadow,padding,font-size] duration-200 ease", "hover:bg-background-primary-hover hover:border-border-button-hover", "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring", "disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:text-text-tertiary disabled:shadow-none", r === "sm" ? "gap-1 px-[7px] py-1 text-body-2-medium" : "gap-1.5 px-2.5 py-2 text-body-medium", t),
- children: [/* @__PURE__ */ (0, I.jsx)(Vpe, {
- className: jL("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
+ className: NL("flex w-full cursor-pointer items-center justify-between rounded-2lg", "border border-border-button-default bg-background-primary-default shadow-xs", "text-text-primary", "transition-[background-color,border-color,box-shadow,padding,font-size] duration-200 ease", "hover:bg-background-primary-hover hover:border-border-button-hover", "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring", "disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:text-text-tertiary disabled:shadow-none", r === "sm" ? "gap-1 px-[7px] py-1 text-body-2-medium" : "gap-1.5 px-2.5 py-2 text-body-medium", t),
+ children: [/* @__PURE__ */ (0, I.jsx)(Upe, {
+ className: NL("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, I.jsx)(Whe, { className: jL("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, I.jsx)(uB, {
+ }), /* @__PURE__ */ (0, I.jsx)(Khe, { className: NL("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, I.jsx)(fB, {
ref: u,
isNonModal: !0,
offset: 4,
- className: jL(qhe, uH, "p-2", n),
- children: /* @__PURE__ */ (0, I.jsx)(ope, {
+ className: NL(Yhe, fH, "p-2", n),
+ children: /* @__PURE__ */ (0, I.jsx)(cpe, {
items: a,
- className: jL(Jhe, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, I.jsx)(KU.Provider, {
+ className: NL(Xhe, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, I.jsx)(JU.Provider, {
value: r,
children: i
})
@@ -46838,16 +46863,16 @@ function qU({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function JU({ className: e, children: t, ...n }) {
- let r = (0, F.useContext)(KU);
- return /* @__PURE__ */ (0, I.jsx)(lpe, {
+function XU({ className: e, children: t, ...n }) {
+ let r = (0, F.useContext)(JU);
+ return /* @__PURE__ */ (0, I.jsx)(dpe, {
...n,
- className: (t) => jL(dH, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
+ className: (t) => NL(pH, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
children: t
});
}
// src/react/boardui/components/base/badges/chip.tsx
-var YU = ML({
+var ZU = PL({
base: "inline-flex items-center justify-center rounded-md px-1.5 whitespace-nowrap transition-[padding,font-size] duration-200 ease",
variant: {
bold: "py-0.5 text-body-medium",
@@ -46866,15 +46891,15 @@ var YU = ML({
soft: "bg-background-secondary-default text-text-secondary"
}
});
-function XU({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
+function QU({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
ref: r,
- className: jL(YU.base, YU.variant[e], YU.color[t], n),
+ className: NL(ZU.base, ZU.variant[e], ZU.color[t], n),
...i
});
}
// src/react/components/art-slot.tsx
-function ZU({ artwork: e, identity: t = e.html, relayout: n }) {
+function $U({ artwork: e, identity: t = e.html, relayout: n }) {
let [r, i] = (0, F.useState)({
identity: t,
artwork: e
@@ -46893,7 +46918,7 @@ function ZU({ artwork: e, identity: t = e.html, relayout: n }) {
});
}
// src/react/activity/downloads-panel.tsx
-var QU = "/api/downloads", $U = ["downloads"], A_e = "/api/downloads/cancel", j_e = "/api/downloads/postprocess", eW = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, M_e = {
+var eW = "/api/downloads", tW = ["downloads"], M_e = "/api/downloads/cancel", N_e = "/api/downloads/postprocess", nW = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, P_e = {
ingested: "lime",
failed: "rose",
cancelled: "neutral",
@@ -46902,21 +46927,21 @@ var QU = "/api/downloads", $U = ["downloads"], A_e = "/api/downloads/cancel", j_
remote_done: "lime",
landed: "lime",
submitted: "neutral"
-}, tW = (e) => {
- let t = e.display_code || e.code || "", { title: n } = zL({
+}, rW = (e) => {
+ let t = e.display_code || e.code || "", { title: n } = VL({
is_jav: !!t,
code: t,
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}`;
-}, nW = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "", N_e = (e) => (e.postprocess_detail || "").replace("正片已绑定", "已确认主视频对应的作品").replace("整理跳过:", "未整理文件:");
-function P_e() {
+}, iW = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "", F_e = (e) => (e.postprocess_detail || "").replace("正片已绑定", "已确认主视频对应的作品").replace("整理跳过:", "未整理文件:");
+function I_e() {
let e = (0, F.useId)(), t = Ft({
- queryKey: [...$U, "pages"],
+ queryKey: [...tW, "pages"],
initialPageParam: null,
- queryFn: ({ signal: e, pageParam: t }) => V(`${QU}?limit=20${t === null ? "" : `&before_id=${t}`}`, e),
+ queryFn: ({ signal: e, pageParam: t }) => V(`${eW}?limit=20${t === null ? "" : `&before_id=${t}`}`, e),
getNextPageParam: (e) => e.has_more ? e.next_before_id ?? void 0 : void 0,
- refetchInterval: (e) => e.state.data?.pages.some((e) => eW(e) === 5e3) ? 5e3 : 3e4
+ refetchInterval: (e) => e.state.data?.pages.some((e) => nW(e) === 5e3) ? 5e3 : 3e4
}), n = t.data?.pages || [], r = [...new Map(n.flatMap((e) => e.tasks).map((e) => [e.id, e])).values()];
return !r.length && !t.error ? null : /* @__PURE__ */ (0, I.jsxs)("section", {
id: "cloudDownloads",
@@ -46928,24 +46953,24 @@ function P_e() {
className: "text-title-2-medium text-text-primary",
children: "云下载"
}),
- t.error ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ t.error ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "error",
children: sr(t.error)
}) : null,
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)(F_e, {
+ children: r.map((e) => /* @__PURE__ */ (0, I.jsx)(L_e, {
task: e,
writable: n[0]?.available ?? !1
}, e.id))
}) : null,
- t.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(q, {
+ t.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: gV,
+ leadingIcon: vV,
className: "self-start",
- ...qV(t.isFetchingNextPage),
+ ...YV(t.isFetchingNextPage),
onClick: () => {
t.isFetching || t.fetchNextPage();
},
@@ -46954,16 +46979,16 @@ function P_e() {
]
});
}
-function F_e({ task: e, writable: t }) {
- nR();
- let n = ae(), r = qH(), [i, a] = (0, F.useState)(!1), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = nW(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 = [
+function L_e({ task: e, writable: t }) {
+ iR();
+ let n = ae(), r = YH(), [i, a] = (0, F.useState)(!1), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = iW(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 ? "" : "番号未识别",
e.target,
- eR(e.submitted_at)
+ nR(e.submitted_at)
].filter(Boolean).join(" · "), h = () => {
- n.invalidateQueries({ queryKey: $U });
+ n.invalidateQueries({ queryKey: tW });
}, g = () => {
- r.run("cancel", (t) => H(A_e, { id: e.id }, "POST", t), h);
+ r.run("cancel", (t) => H(M_e, { id: e.id }, "POST", t), h);
}, _ = () => {
let t = {
magnet: e.source_uri,
@@ -46973,16 +46998,16 @@ function F_e({ task: e, writable: t }) {
title: e.title,
origin: e.origin
};
- r.run("resubmit", (e) => H(QU, t, "POST", e), h);
+ r.run("resubmit", (e) => H(eW, t, "POST", e), h);
}, v = () => {
navigator.clipboard.writeText(e.source_uri).then(() => a(!0), () => a(!1));
}, y = () => {
- r.run("postprocess", (t) => H(j_e, { id: e.id }, "POST", t), h);
+ r.run("postprocess", (t) => H(N_e, { id: e.id }, "POST", t), h);
};
return /* @__PURE__ */ (0, I.jsxs)("li", {
"data-download-state": e.state,
"data-download-id": e.id,
- className: aU({
+ className: sU({
padding: "none",
bordered: "line",
className: p ? "flex flex-col border-border-error-default" : "flex flex-col"
@@ -46993,14 +47018,14 @@ function F_e({ task: e, writable: t }) {
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-download-cover": "",
"data-media-pic": "",
- style: { "--card-ratio": String(FM) },
+ style: { "--card-ratio": String(BM) },
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", {
"data-media-nopic": "",
children: "无封面"
}),
- u?.has_cover ? /* @__PURE__ */ (0, I.jsx)(ZU, {
+ u?.has_cover ? /* @__PURE__ */ (0, I.jsx)($U, {
artwork: {
kind: "cover",
html: bo(u, "big")
@@ -47010,7 +47035,7 @@ function F_e({ task: e, writable: t }) {
f ? /* @__PURE__ */ (0, I.jsx)("a", {
"data-download-cover-link": "",
href: f,
- "aria-label": `打开作品详情:${tW(e)}`,
+ "aria-label": `打开作品详情:${rW(e)}`,
className: "absolute inset-0 z-1 rounded-lg outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-border-focus-ring"
}) : null
]
@@ -47021,19 +47046,19 @@ function F_e({ task: e, writable: t }) {
className: "flex min-w-0 flex-col items-start gap-1 sm:flex-row sm:items-center sm:gap-2",
children: [/* @__PURE__ */ (0, I.jsx)("strong", {
className: "min-w-0 w-full flex-1 truncate text-title-1-medium text-text-primary sm:w-auto",
- title: tW(e),
+ title: rW(e),
children: f ? /* @__PURE__ */ (0, I.jsx)("a", {
"data-download-title-link": "",
href: f,
className: "block truncate rounded-sm outline-none hover:underline focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-border-focus-ring",
- children: tW(e)
- }) : tW(e)
+ children: rW(e)
+ }) : rW(e)
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex shrink-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(XU, {
- color: M_e[e.state] ?? "neutral",
+ children: [/* @__PURE__ */ (0, I.jsx)(QU, {
+ color: P_e[e.state] ?? "neutral",
children: e.state_label
- }), e.state === "ingested" ? /* @__PURE__ */ (0, I.jsx)(XU, {
+ }), e.state === "ingested" ? /* @__PURE__ */ (0, I.jsx)(QU, {
color: e.postprocess_state === "complete" ? "lime" : e.postprocess_state === "failed" ? "rose" : e.postprocess_state === "running" ? "blue" : "neutral",
children: e.postprocess_label
}) : null]
@@ -47043,7 +47068,7 @@ function F_e({ task: e, writable: t }) {
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "flex shrink-0",
- children: /* @__PURE__ */ (0, I.jsx)(SU, {
+ children: /* @__PURE__ */ (0, I.jsx)(wU, {
source: e.provider,
label: e.provider_label
})
@@ -47070,7 +47095,7 @@ function F_e({ task: e, writable: t }) {
children: [d.map((e) => en("performer", e.name, e.id)).join("、"), (u?.performer_total || 0) > d.length ? ` 等 ${u.performer_total} 人` : ""]
})]
}) : null,
- e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, I.jsx)(cU, {
+ e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, I.jsx)(uU, {
label: "远端下载进度",
value: Math.round(e.progress * 100),
max: 100
@@ -47080,12 +47105,12 @@ function F_e({ task: e, writable: t }) {
title: e.ledger_path,
children: e.ledger_path
}) : null,
- r.error ? /* @__PURE__ */ (0, I.jsx)(gU, { children: r.error }) : null,
+ r.error ? /* @__PURE__ */ (0, I.jsx)(vU, { children: r.error }) : null,
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-download-actions": "",
className: "flex flex-wrap items-center gap-2 pt-1 sm:mt-auto",
children: [
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, I.jsx)(J, {
variant: "ghost",
size: "small",
"aria-expanded": o,
@@ -47093,7 +47118,7 @@ function F_e({ task: e, writable: t }) {
onClick: () => s(!o),
children: o ? "收起标题" : "展开标题"
}),
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, I.jsx)(J, {
variant: "ghost",
size: "small",
onClick: v,
@@ -47102,24 +47127,24 @@ function F_e({ task: e, writable: t }) {
t && (e.cancellable || e.resubmittable || e.postprocess_retryable) ? /* @__PURE__ */ (0, I.jsxs)("div", {
className: "ml-auto flex flex-wrap items-center gap-2",
children: [
- e.cancellable ? /* @__PURE__ */ (0, I.jsx)(q, {
+ e.cancellable ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...qV(r.busy === "cancel"),
+ ...YV(r.busy === "cancel"),
onClick: g,
children: "取消"
}) : null,
- e.resubmittable ? /* @__PURE__ */ (0, I.jsx)(q, {
+ e.resubmittable ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...qV(r.busy === "resubmit"),
+ ...YV(r.busy === "resubmit"),
onClick: _,
children: "重新提交"
}) : null,
- e.postprocess_retryable ? /* @__PURE__ */ (0, I.jsx)(q, {
+ e.postprocess_retryable ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...qV(r.busy === "postprocess"),
+ ...YV(r.busy === "postprocess"),
onClick: y,
children: "重试入库后整理"
}) : null
@@ -47134,33 +47159,33 @@ function F_e({ task: e, writable: t }) {
id: c,
"data-download-title-full": !0,
className: "wrap-anywhere px-5 pb-4 text-body-2-regular text-text-secondary",
- children: tW(e)
+ children: rW(e)
}) : null,
l || e.postprocess_detail ? /* @__PURE__ */ (0, I.jsx)("div", {
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 || N_e(e)
+ children: l || F_e(e)
})
}) : null
]
});
}
// src/react/activity/work-code.ts
-var rW = (e) => (e || "").toUpperCase().replace(/[^A-Z0-9]/g, ""), iW = (e, t) => !!rW(e) && rW(e) === rW(t);
+var aW = (e) => (e || "").toUpperCase().replace(/[^A-Z0-9]/g, ""), oW = (e, t) => !!aW(e) && aW(e) === aW(t);
// src/react/activity/resource-search.tsx
-function I_e({ className: e }) {
+function R_e({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
className: e,
"aria-hidden": !0,
dangerouslySetInnerHTML: { __html: Rs("") }
});
}
-function L_e(e) {
+function z_e(e) {
return ["中字", "中文字幕"].includes(e?.trim() ?? "") ? "chinese" : ["无码", "无码破解"].includes(e?.trim() ?? "") ? "uncensored" : "quality";
}
-function R_e({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
- let [a, o] = (0, F.useState)(e), [s, c] = (0, F.useState)(() => L_e(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 = qH(), b = (0, F.useRef)(null);
+function B_e({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
+ let [a, o] = (0, F.useState)(e), [s, c] = (0, F.useState)(() => z_e(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 = YH(), b = (0, F.useRef)(null);
(0, F.useEffect)(() => () => b.current?.abort(), []);
let x = () => {
if (!a.trim() || y.busy) return;
@@ -47176,7 +47201,7 @@ function R_e({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
let e = new AbortController();
b.current = e, V(`/api/items?jav=1&q=${encodeURIComponent(t)}&limit=10`, e.signal).then((n) => {
if (e.signal.aborted) return;
- let r = (n.items || []).find((e) => iW(e.code, t));
+ let r = (n.items || []).find((e) => oW(e.code, t));
i(r ? {
code: r.code,
title: String(r.catalog_title || r.name || ""),
@@ -47197,18 +47222,18 @@ function R_e({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
"aria-busy": !!y.busy,
className: "flex min-w-0 flex-col gap-4",
children: [
- t ? /* @__PURE__ */ (0, I.jsxs)(hU, { children: [
+ t ? /* @__PURE__ */ (0, I.jsxs)(_U, { children: [
"版本目标:",
t,
"。可在下方调整搜索优先项;完整度与水印需要逐条复核。"
] }) : null,
- /* @__PURE__ */ (0, I.jsx)(zV, {
+ /* @__PURE__ */ (0, I.jsx)(VV, {
label: "按番号查找资源",
value: a,
maxLength: 80,
placeholder: "输入番号,按回车搜索",
enterKeyHint: "search",
- leadingIcon: y.busy ? I_e : AV,
+ leadingIcon: y.busy ? R_e : MV,
isReadOnly: !!y.busy,
"aria-busy": !!y.busy,
onChange: o,
@@ -47218,7 +47243,7 @@ function R_e({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, I.jsx)(_U, { children: "优先寻找" }), /* @__PURE__ */ (0, I.jsxs)(qU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(yU, { children: "优先寻找" }), /* @__PURE__ */ (0, I.jsxs)(YU, {
"aria-label": "优先寻找",
selectedKey: s,
isDisabled: !!y.busy,
@@ -47226,15 +47251,15 @@ function R_e({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
e !== null && c(String(e));
},
children: [
- /* @__PURE__ */ (0, I.jsx)(JU, {
+ /* @__PURE__ */ (0, I.jsx)(XU, {
id: "quality",
children: "高清"
}),
- /* @__PURE__ */ (0, I.jsx)(JU, {
+ /* @__PURE__ */ (0, I.jsx)(XU, {
id: "chinese",
children: "中字"
}),
- /* @__PURE__ */ (0, I.jsx)(JU, {
+ /* @__PURE__ */ (0, I.jsx)(XU, {
id: "uncensored",
children: "无码"
})
@@ -47243,32 +47268,32 @@ function R_e({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex gap-3 max-sm:flex-col",
- children: [/* @__PURE__ */ (0, I.jsx)(zV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(VV, {
label: "最小体积(GiB)",
inputMode: "decimal",
value: l,
onChange: u
- }), /* @__PURE__ */ (0, I.jsx)(zV, {
+ }), /* @__PURE__ */ (0, I.jsx)(VV, {
label: "最大体积(GiB)",
inputMode: "decimal",
value: d,
onChange: f
})]
}),
- y.busy ? /* @__PURE__ */ (0, I.jsx)(hU, {
+ y.busy ? /* @__PURE__ */ (0, I.jsx)(_U, {
role: "status",
children: "正在搜索资源"
}) : null,
- y.error ? /* @__PURE__ */ (0, I.jsx)(gU, { children: y.error }) : null,
- p?.error ? /* @__PURE__ */ (0, I.jsx)(hU, {
+ y.error ? /* @__PURE__ */ (0, I.jsx)(vU, { children: y.error }) : null,
+ p?.error ? /* @__PURE__ */ (0, I.jsx)(_U, {
role: "status",
children: p.error
}) : null,
- p?.state === "ready" && !p.items.length ? /* @__PURE__ */ (0, I.jsx)(hU, {
+ p?.state === "ready" && !p.items.length ? /* @__PURE__ */ (0, I.jsx)(_U, {
role: "status",
children: "没有符合条件的资源。"
}) : null,
- p?.warnings.map((e) => /* @__PURE__ */ (0, I.jsx)(hU, { children: e }, e)),
+ p?.warnings.map((e) => /* @__PURE__ */ (0, I.jsx)(_U, { children: e }, e)),
p?.items.length ? /* @__PURE__ */ (0, I.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
children: p.items.map((e) => /* @__PURE__ */ (0, I.jsxs)("li", {
@@ -47278,7 +47303,7 @@ function R_e({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
className: "break-words text-body-2-medium text-text-primary",
children: e.name
}),
- /* @__PURE__ */ (0, I.jsx)(hU, { children: [
+ /* @__PURE__ */ (0, I.jsx)(_U, { children: [
e.size > 0 ? `${(e.size / 1024 ** 3).toFixed(2)} GiB` : "体积未取得",
e.seeders >= 0 ? `${e.seeders} 个做种` : "做种未取得",
e.resolution ? `${e.resolution}p` : "",
@@ -47287,7 +47312,7 @@ function R_e({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
e.uncensored ? "无码" : "",
e.origins.join("、")
].filter(Boolean).join(" · ") }),
- /* @__PURE__ */ (0, I.jsx)("div", { children: /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, I.jsx)("div", { children: /* @__PURE__ */ (0, I.jsx)(J, {
type: "button",
variant: "secondary",
onClick: () => {
@@ -47302,19 +47327,19 @@ function R_e({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
});
}
// src/react/activity/cloud-download-dialog.tsx
-var z_e = {
+var V_e = {
submitted: "已提交离线下载,进度在任务中心",
adopted: "这个磁力已有任务,没有重复提交",
adopted_remote: "网盘中已有相同的下载任务,Peach 已开始跟踪进度"
};
-function aW({ prefill: e, close: t, receipt: n, provider: r }) {
- return /* @__PURE__ */ (0, I.jsx)(BV, {
+function sW({ prefill: e, close: t, receipt: n, provider: r }) {
+ return /* @__PURE__ */ (0, I.jsx)(HV, {
isOpen: !!e,
onOpenChange: (e) => {
e || t();
},
width: "form",
- children: e ? /* @__PURE__ */ (0, I.jsx)(B_e, {
+ children: e ? /* @__PURE__ */ (0, I.jsx)(H_e, {
prefill: e,
close: t,
receipt: n,
@@ -47322,26 +47347,26 @@ function aW({ prefill: e, close: t, receipt: n, provider: r }) {
}) : null
});
}
-function B_e({ prefill: e, close: t, receipt: n, provider: r }) {
+function H_e({ prefill: e, close: t, receipt: n, provider: r }) {
let i = Nt({
- queryKey: $U,
- queryFn: ({ signal: e }) => V(`${QU}?limit=50`, e),
- refetchInterval: (e) => eW(e.state.data)
+ queryKey: tW,
+ queryFn: ({ signal: e }) => V(`${eW}?limit=50`, e),
+ refetchInterval: (e) => nW(e.state.data)
}), a = i.data, o = /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex items-center justify-between gap-4 px-5 pt-5",
- children: [/* @__PURE__ */ (0, I.jsx)(zR, {
+ children: [/* @__PURE__ */ (0, I.jsx)(VR, {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "查找资源"
- }), /* @__PURE__ */ (0, I.jsx)(q, {
+ }), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: yV,
+ leadingIcon: xV,
"aria-label": "关闭资源面板",
onClick: t
})]
});
- return a ? /* @__PURE__ */ (0, I.jsx)(V_e, {
+ return a ? /* @__PURE__ */ (0, I.jsx)(U_e, {
header: o,
snapshot: a,
prefill: e,
@@ -47354,14 +47379,14 @@ function B_e({ prefill: e, close: t, receipt: n, provider: r }) {
o,
/* @__PURE__ */ (0, I.jsx)("div", {
className: "flex min-h-0 flex-col gap-4 overflow-y-auto p-5",
- children: i.error ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ children: i.error ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "error",
children: sr(i.error)
}) : null
}),
/* @__PURE__ */ (0, I.jsx)("div", {
className: "flex justify-end p-3",
- children: /* @__PURE__ */ (0, I.jsx)(q, {
+ children: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
onClick: t,
children: "关闭"
@@ -47370,8 +47395,8 @@ function B_e({ prefill: e, close: t, receipt: n, provider: r }) {
]
});
}
-function V_e({ 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 = qH(), C = (0, F.useRef)(null), w = (e) => {
+function U_e({ 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 = YH(), C = (0, F.useRef)(null), w = (e) => {
u(e), g(s.find((t) => t.key === e)?.target ?? "");
};
return /* @__PURE__ */ (0, I.jsxs)("form", {
@@ -47387,14 +47412,14 @@ function V_e({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
title: _?.title,
origin: _?.origin
};
- b(""), S.run("submit", (e) => H(QU, t, "POST", e), (e) => {
- o.invalidateQueries({ queryKey: $U });
- let t = z_e[e.outcome];
+ b(""), S.run("submit", (e) => H(eW, t, "POST", e), (e) => {
+ o.invalidateQueries({ queryKey: tW });
+ let t = V_e[e.outcome];
if (e.ok && t) {
i(t), r();
return;
}
- let n = nW(e.task);
+ let n = iW(e.task);
b(e.outcome === "refused" ? "这个资源被判为违规,不再提交。" : n ? `提交没有成功:${n}` : "提交没有成功。");
});
},
@@ -47418,7 +47443,7 @@ function V_e({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
children: [/* @__PURE__ */ (0, I.jsx)("p", {
className: "break-words text-body-medium text-text-primary",
children: _ ? [_.code, _.title].filter(Boolean).join(" · ") : "作品资料未取得"
- }), _ ? /* @__PURE__ */ (0, I.jsx)(hU, { children: [
+ }), _ ? /* @__PURE__ */ (0, I.jsx)(_U, { children: [
_.performers,
_.studio,
_.release_date,
@@ -47426,22 +47451,22 @@ function V_e({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
].filter(Boolean).join(" · ") }) : null]
})]
}) : null,
- /* @__PURE__ */ (0, I.jsx)(R_e, {
+ /* @__PURE__ */ (0, I.jsx)(B_e, {
initialCode: n.code ?? "",
reason: n.searchReason,
onSearch: (e) => {
- iW(e, _?.code) || (v(iW(e, n.code) ? n : null), f("")), m(e);
+ oW(e, _?.code) || (v(oW(e, n.code) ? n : null), f("")), m(e);
},
- onWork: (e) => v((t) => e ? iW(t?.code, e.code) ? {
+ onWork: (e) => v((t) => e ? oW(t?.code, e.code) ? {
...t,
...e,
origin: t?.origin || e.origin
- } : e : iW(t?.code, n.code) ? t : null),
+ } : e : oW(t?.code, n.code) ? t : null),
choose: (e, t) => {
f(e), m(t), C.current?.focus();
}
}),
- /* @__PURE__ */ (0, I.jsx)(zV, {
+ /* @__PURE__ */ (0, I.jsx)(VV, {
ref: C,
label: "磁力链接",
placeholder: "magnet:?xt=urn:btih:…",
@@ -47453,38 +47478,38 @@ function V_e({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-1",
children: [
- /* @__PURE__ */ (0, I.jsx)(_U, { children: "下载到" }),
- /* @__PURE__ */ (0, I.jsx)(qU, {
+ /* @__PURE__ */ (0, I.jsx)(yU, { children: "下载到" }),
+ /* @__PURE__ */ (0, I.jsx)(YU, {
"aria-label": "下载到",
selectedKey: l || null,
isDisabled: !s.length,
onSelectionChange: (e) => {
e !== null && w(String(e));
},
- children: s.map((e) => /* @__PURE__ */ (0, I.jsx)(JU, {
+ children: s.map((e) => /* @__PURE__ */ (0, I.jsx)(XU, {
id: e.key,
textValue: e.label,
- children: /* @__PURE__ */ (0, I.jsx)(SU, {
+ children: /* @__PURE__ */ (0, I.jsx)(wU, {
source: e.key,
label: e.label
})
}, e.key))
}),
- l === "115" ? /* @__PURE__ */ (0, I.jsx)(hU, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
+ l === "115" ? /* @__PURE__ */ (0, I.jsx)(_U, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
]
}),
- t.available ? null : /* @__PURE__ */ (0, I.jsx)(HV, {
+ t.available ? null : /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "neutral",
children: "云下载只在允许修改数据库的设备上可用。"
}),
- s.length ? null : /* @__PURE__ */ (0, I.jsxs)(HV, {
+ s.length ? null : /* @__PURE__ */ (0, I.jsxs)(WV, {
tone: "neutral",
children: ["尚未配置下载渠道。", /* @__PURE__ */ (0, I.jsx)("a", {
href: "/settings/library?section=%E4%B8%8B%E8%BD%BD%E6%B8%A0%E9%81%93",
children: "下载渠道设置"
})]
}),
- /* @__PURE__ */ (0, I.jsx)(zV, {
+ /* @__PURE__ */ (0, I.jsx)(VV, {
label: "目标目录",
placeholder: "/云下载",
autoComplete: "off",
@@ -47492,29 +47517,29 @@ function V_e({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
value: h,
onChange: g
}),
- n.code ? null : /* @__PURE__ */ (0, I.jsx)(zV, {
+ n.code ? null : /* @__PURE__ */ (0, I.jsx)(VV, {
label: "番号",
placeholder: "可不填",
autoComplete: "off",
maxLength: 60,
value: p,
onChange: (e) => {
- m(e), iW(e, _?.code) || v(null);
+ m(e), oW(e, _?.code) || v(null);
}
}),
- y || S.error ? /* @__PURE__ */ (0, I.jsx)(gU, { children: y || S.error }) : null
+ y || S.error ? /* @__PURE__ */ (0, I.jsx)(vU, { children: y || S.error }) : null
]
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex justify-between gap-4 p-3",
- children: [/* @__PURE__ */ (0, I.jsx)(q, {
+ children: [/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
onClick: r,
children: "取消"
- }), /* @__PURE__ */ (0, I.jsx)(q, {
+ }), /* @__PURE__ */ (0, I.jsx)(J, {
type: "submit",
disabled: !d.trim() || !x,
- ...qV(S.busy === "submit"),
+ ...YV(S.busy === "submit"),
children: "提交下载"
})]
})
@@ -47522,18 +47547,18 @@ function V_e({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
});
}
// src/react/wants/wants.ts
-var oW = "/api/wants", sW = ["wants"], H_e = (e) => [
+var cW = "/api/wants", lW = ["wants"], W_e = (e) => [
"wants",
"follow",
e
-], U_e = [
+], G_e = [
["searching", "待找"],
["unreleased", "未发售"],
["given_up", "暂时放弃"],
["acquired", "已入库"]
-], cW = (e) => V(oW, e);
-function W_e(e, t) {
- U.setQueryData(sW, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {
+], uW = (e) => V(cW, e);
+function K_e(e, t) {
+ U.setQueryData(lW, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {
...n,
items: n.items.map((n) => n.id === e ? {
...n,
@@ -47541,37 +47566,37 @@ function W_e(e, t) {
} : n)
} : n);
}
-var G_e = (e, t) => V(`${oW}?follow=${encodeURIComponent(e)}`, t), lW = (e, t) => H(oW, {
+var q_e = (e, t) => V(`${cW}?follow=${encodeURIComponent(e)}`, t), dW = (e, t) => H(cW, {
action: "add",
...e
-}, "POST", t), uW = (e, t) => H(oW, {
+}, "POST", t), fW = (e, t) => H(cW, {
action: "remove",
ids: e
-}, "POST", t), K_e = (e, t) => H(oW, {
+}, "POST", t), J_e = (e, t) => H(cW, {
action: "reset",
ids: e
-}, "POST", t), dW = () => U.invalidateQueries({ queryKey: sW }), q_e = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
-function J_e(e) {
+}, "POST", t), pW = () => U.invalidateQueries({ queryKey: lW }), Y_e = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
+function X_e(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/jav-navigation.ts
-var fW = [
+var mW = [
["library", "馆藏"],
["discover", "发现"],
["wants", "想要"]
-], pW = (e) => fW.some(([t]) => t === e) ? e : "library", Y_e = (e) => pW(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;
-function X_e(e) {
+], hW = (e) => mW.some(([t]) => t === e) ? e : "library", Z_e = (e) => hW(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;
+function Q_e(e) {
let t = new URLSearchParams(e);
return t.delete("tab"), t.set("jav", "1"), "/?" + t;
}
// src/react/jav/jav.ts
-var mW = (e, t = "taste", n = "desc") => [
+var gW = (e, t = "taste", n = "desc") => [
"jav-discoveries",
e,
t,
n
];
-function hW(e, t, n = {}) {
+function _W(e, t, n = {}) {
let r = new URLSearchParams({
scope: e,
limit: "100",
@@ -47580,7 +47605,7 @@ function hW(e, t, n = {}) {
});
return n.jobId && r.set("metadata_job_id", n.jobId), n.refreshMetadata && r.set("metadata_refresh", "1"), n.cancelMetadata && r.set("metadata_cancel", "1"), V(`/api/jav/discoveries?${r}`, t);
}
-function Z_e(e, t, n) {
+function vW(e, t, n) {
let r = So({
...e,
is_jav: !0
@@ -47589,30 +47614,30 @@ function Z_e(e, t, n) {
let i = B(lo(e));
return bo(e, t).replace(/ src="[^"]*"/, ` src="${i}" data-jav-image="${e.id}" data-jav-cover="${i}" data-jav-thumb="" data-jav-image-layout="${t}"${t === "big" ? " data-panel-prior=\"1\"" : ""}`).replace("data-drop=\"self\"", "data-drop=\"initial\" data-initial=\"封面未取得\" data-drop-class=\"media-nopic\"");
}
-async function gW(e, t) {
+async function yW(e, t) {
e === "wants" ? await U.ensureQueryData({
- queryKey: sW,
- queryFn: () => cW(t),
+ queryKey: lW,
+ queryFn: () => uW(t),
staleTime: 3e4,
revalidateIfStale: !0
}) : e === "discover" && await U.ensureQueryData({
- queryKey: mW("external"),
- queryFn: () => hW("external", t),
+ queryKey: gW("external"),
+ queryFn: () => _W("external", t),
staleTime: 3e4,
revalidateIfStale: !0
});
}
// src/react/components/board-tabs.tsx
-function _W({ value: e }) {
+function bW({ value: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-tab-count": "",
className: "ml-1.5 inline-block rounded-sm bg-text-primary/10 px-1 py-px text-caption-1-medium text-text-primary opacity-50",
children: e.toLocaleString()
});
}
-var vW = "relative flex flex-none cursor-pointer items-center whitespace-nowrap rounded-md px-3 py-2 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring hover:text-text-primary aria-selected:bg-background-tertiary-default aria-selected:text-text-primary max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";
-function yW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5" }) {
- let a = (0, F.useRef)(null), o = cR(a);
+var xW = "relative flex flex-none cursor-pointer items-center whitespace-nowrap rounded-md px-3 py-2 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring hover:text-text-primary aria-selected:bg-background-tertiary-default aria-selected:text-text-primary max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";
+function SW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5" }) {
+ let a = (0, F.useRef)(null), o = uR(a);
return (0, F.useLayoutEffect)(() => {
let e = a.current;
e && (() => {
@@ -47621,7 +47646,7 @@ function yW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
let n = t.offsetLeft, r = n + t.offsetWidth;
n < e.scrollLeft ? e.scrollLeft = n : r > e.scrollLeft + e.clientWidth && (e.scrollLeft = r - e.clientWidth);
})();
- }, [t]), /* @__PURE__ */ (0, I.jsx)(PL, {
+ }, [t]), /* @__PURE__ */ (0, I.jsx)(IL, {
ref: o,
role: "tablist",
"aria-label": n,
@@ -47636,7 +47661,7 @@ function yW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
},
className: `relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0 ${i}`,
children: e.map((e) => {
- let n = e.symbol ? GV(e.symbol) : null, i = e.value === t;
+ let n = e.symbol ? qV(e.symbol) : null, i = e.value === t;
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
role: "tab",
@@ -47645,7 +47670,7 @@ function yW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
"data-pill-selected": i ? "" : void 0,
"data-pill-variant": "gray",
tabIndex: i ? 0 : -1,
- className: vW,
+ className: xW,
onClick: () => {
i || r(e.value);
},
@@ -47655,7 +47680,7 @@ function yW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
});
}
// src/react/jav/jav-header.tsx
-function bW({ tab: e, navigate: t, find: n }) {
+function CW({ tab: e, navigate: t, find: n }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex w-full flex-col gap-4",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -47664,50 +47689,50 @@ function bW({ tab: e, navigate: t, find: n }) {
"data-page-title": "",
className: "text-display-4-medium text-text-primary max-board-narrow:text-title-1-medium",
children: "JAV"
- }), /* @__PURE__ */ (0, I.jsx)(q, {
+ }), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "primary",
onClick: n,
children: "查找资源"
})]
- }), /* @__PURE__ */ (0, I.jsx)(yW, {
- tabs: fW.map(([e, t]) => ({
+ }), /* @__PURE__ */ (0, I.jsx)(SW, {
+ tabs: mW.map(([e, t]) => ({
value: e,
label: t
})),
value: e,
label: "JAV 分区",
className: "",
- onChange: (e) => t(Y_e(e))
+ onChange: (e) => t(Z_e(e))
})]
});
}
-function xW({ navigate: e, receipt: t }) {
+function wW({ navigate: e, receipt: t }) {
let [n, r] = (0, F.useState)(null);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(bW, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(CW, {
tab: "library",
navigate: e,
find: () => r({})
- }), /* @__PURE__ */ (0, I.jsx)(aW, {
+ }), /* @__PURE__ */ (0, I.jsx)(sW, {
prefill: n,
close: () => r(null),
receipt: t
})] });
}
// src/react/router/pages/catalog.tsx
-var SW = () => Eu, CW = zp.navigation.seq, wW = zp.navigation.openEpoch, TW = zp.navigation.location.pathname, EW = {
- seq: CW,
+var TW = () => Eu, EW = zp.navigation.seq, DW = zp.navigation.openEpoch, OW = zp.navigation.location.pathname, kW = {
+ seq: EW,
claimed: !0,
- from: TW
+ from: OW
};
zp.listen((e) => {
- EW = {
+ kW = {
seq: e.seq,
- claimed: e.openEpoch === wW,
- from: TW
- }, wW = e.openEpoch, TW = e.location.pathname;
+ claimed: e.openEpoch === DW,
+ from: OW
+ }, DW = e.openEpoch, OW = e.location.pathname;
});
-var DW = !1;
-function OW(e) {
+var AW = !1;
+function jW(e) {
let { seq: t, openEpoch: n, location: r } = zp.navigation, i = ep(r.pathname), a = Hp() ?? r, o = W ?? {};
return {
seq: t,
@@ -47719,8 +47744,8 @@ function OW(e) {
opened: e
};
}
-function kW(e, t, n, r) {
- let i = { ...W }, a = mm("catalog");
+function MW(e, t, n, r) {
+ let i = { ...W }, a = ym("catalog");
if (a) return { ...a };
if (e === "/trash") return {
...i,
@@ -47731,7 +47756,7 @@ function kW(e, t, n, r) {
state: "trash",
q: ""
};
- let o = new URLSearchParams(t), { defaultSort: s, defaultSortDirection: c } = EM().value;
+ let o = new URLSearchParams(t), { defaultSort: s, defaultSortDirection: c } = jM().value;
return {
...i,
loc: o.get("loc") ?? r.defaultLoc(),
@@ -47745,7 +47770,7 @@ function kW(e, t, n, r) {
dur_max: o.get("dur_max") || "",
orient: o.get("orient") || "",
state: Dn[e] || o.get("state") || "",
- ...sM(o.get("sort"), o.get("dir"), s, c),
+ ...fM(o.get("sort"), o.get("dir"), s, c),
seed: o.get("seed") || (n ? nr() : i.seed || nr()),
q: o.get("q") || "",
jav: o.get("jav") || "",
@@ -47756,14 +47781,14 @@ function kW(e, t, n, r) {
folder_recursive: o.get("folder_recursive") === "0" ? "0" : ""
};
}
-function AW(e) {
+function NW(e) {
let t = zp.navigation.seq;
- pm("catalog", { ...W });
+ vm("catalog", { ...W });
let n = e(), r = () => zp.navigation.seq === t, i = () => document.querySelector("#grid");
- _m(r, i(), { pending: !0 }), Promise.resolve(n).then(() => _m(r, i()));
+ Sm(r, i(), { pending: !0 }), Promise.resolve(n).then(() => Sm(r, i()));
}
-function jW(e, t) {
- let n = { ...e }, r = OW(n.opened);
+function PW(e, t) {
+ let n = { ...e }, r = jW(n.opened);
Object.assign(e, r);
let i = t.catalog;
if (!i || r.opens === 0) return;
@@ -47775,39 +47800,39 @@ function jW(e, t) {
if (r.opens === n.opens) {
if (r.epoch === n.epoch && n.opened) {
if (r.seq === n.seq || n.covered && r.address === n.address && r.filters === n.filters) return;
- AW(() => i.load());
+ NW(() => i.load());
return;
}
- r.epoch !== n.epoch && (a = zp.navigation.action === "POP" && EW.from !== "/");
+ r.epoch !== n.epoch && (a = zp.navigation.action === "POP" && kW.from !== "/");
}
let { pathname: o, search: s } = zp.navigation.location;
if (o === "/" && new URLSearchParams(s).get("state") === "ads") {
- let { kind: e, view: t } = VU(s);
- DW = !0, Bp(HU(e, t), { replace: !0 });
+ let { kind: e, view: t } = UU(s);
+ AW = !0, Bp(WU(e, t), { replace: !0 });
return;
}
- let c = DW;
- DW = !1, a &&= o === "/" && !hm(), e.opened = !0, Fu({ state: kW(o, s, a, i) }), AW(() => i.open(o, {
+ let c = AW;
+ AW = !1, a &&= o === "/" && !bm(), e.opened = !0, Fu({ state: MW(o, s, a, i) }), NW(() => i.open(o, {
entering: a,
retitle: c
}));
}
-function MW() {
- let e = (0, F.useContext)(GW), t = WW(), n = (0, F.useSyncExternalStore)(Lu, SW), r = hf(), i = (0, F.useRef)(null), a = (0, F.useRef)({
+function FW() {
+ let e = (0, F.useContext)(JW), t = qW(), n = (0, F.useSyncExternalStore)(Lu, TW), r = hf(), i = (0, F.useRef)(null), a = (0, F.useRef)({
mounted: !0,
queued: !1
});
return (0, F.useEffect)(() => {
let e = a.current;
e.mounted = !0;
- let t = OW(!ep(zp.navigation.location.pathname));
- return !t.covered && t.opens > 0 && (DW || EW.seq === CW ? t.opens = -1 : EW.claimed ? t.seq = -1 : t.epoch = -1), i.current = t, () => {
+ let t = jW(!ep(zp.navigation.location.pathname));
+ return !t.covered && t.opens > 0 && (AW || kW.seq === EW ? t.opens = -1 : kW.claimed ? t.seq = -1 : t.epoch = -1), i.current = t, () => {
e.mounted = !1;
};
}, []), (0, F.useEffect)(() => {
let t = a.current;
!t.queued && e && (t.queued = !0, queueMicrotask(() => {
- t.queued = !1, t.mounted && i.current && jW(i.current, e);
+ t.queued = !1, t.mounted && i.current && PW(i.current, e);
}));
}, [
t,
@@ -47816,7 +47841,7 @@ function MW() {
e
]), null;
}
-function NW() {
+function IW() {
let { pathname: e } = hf();
return (0, F.useLayoutEffect)(() => {
if (e !== "/wall") return;
@@ -47829,19 +47854,19 @@ function NW() {
e.inert = n[t] || !1;
});
};
- }, [e]), ep(e) && !$f(e) ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(MW, {}, e === "/junk-files" ? "/junk-files" : "/"), kn(e) ? /* @__PURE__ */ (0, I.jsx)(uG, {}) : null] });
+ }, [e]), ep(e) && !$f(e) ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(FW, {}, e === "/junk-files" ? "/junk-files" : "/"), kn(e) ? /* @__PURE__ */ (0, I.jsx)(pG, {}) : null] });
}
-function PW() {
- let e = (0, F.useContext)(GW), t = document.getElementById("javLibraryHeader");
- return t && e ? (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(xW, {
+function LW() {
+ let e = (0, F.useContext)(JW), t = document.getElementById("javLibraryHeader");
+ return t && e ? (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(wW, {
navigate: e.navigate,
receipt: (t) => e.receipt(t)
}), t) : null;
}
// src/react/router/pages/overlay.tsx
-var FW = () => Eu, IW = () => Du;
-function LW() {
- let e = (0, F.useContext)(GW), t = (0, F.useSyncExternalStore)(Lu, IW), n = (0, F.useSyncExternalStore)(Lu, FW);
+var RW = () => Eu, zW = () => Du;
+function BW() {
+ let e = (0, F.useContext)(JW), t = (0, F.useSyncExternalStore)(Lu, zW), n = (0, F.useSyncExternalStore)(Lu, RW);
return (0, F.useEffect)(() => {
if (!t || !n) return;
let r = !0;
@@ -47856,8 +47881,8 @@ function LW() {
e
]), null;
}
-function RW(e, t = !1) {
- let n = (0, F.useSyncExternalStore)(Lu, FW), r = (0, F.useRef)(void 0);
+function VW(e, t = !1) {
+ let n = (0, F.useSyncExternalStore)(Lu, RW), r = (0, F.useRef)(void 0);
if (r.current === void 0) {
let { claimed: e } = zp.navigation;
r.current = Eu === 0 || Vp() ? "boot" : e && !t ? null : "history";
@@ -47876,11 +47901,11 @@ function RW(e, t = !1) {
}));
}, [n]);
}
-function zW() {
- let e = (0, F.useContext)(GW), t = (0, F.useRef)(e);
+function HW() {
+ let e = (0, F.useContext)(JW), t = (0, F.useRef)(e);
return (0, F.useLayoutEffect)(() => {
t.current = e;
- }, [e]), RW((t) => {
+ }, [e]), VW((t) => {
let n = zp.navigation.location, { pathname: r, search: i } = Kf(n.pathname) && Yf(n.state) || n, a = $f(r, i);
e && a && (ap(), t || op(zp.navigation.location.state), e.openOverlay(a));
}, !0), (0, F.useEffect)(() => () => {
@@ -47889,8 +47914,8 @@ function zW() {
});
}, []), null;
}
-function BW({ path: e }) {
- WW();
+function UW({ path: e }) {
+ qW();
let { location: t, seq: n, action: r } = zp.navigation, i = Kf(t.pathname) ? Yf(t.state) : null, a = (i || t).pathname + (i || t).search, o = (0, F.useRef)({
identity: a,
seq: i?.seq ?? n,
@@ -47902,24 +47927,24 @@ function BW({ path: e }) {
seq: n,
navigationSeq: n,
settings: !1
- }), /* @__PURE__ */ (0, I.jsx)(zW, {}, `${e} ${o.current.seq}`);
+ }), /* @__PURE__ */ (0, I.jsx)(HW, {}, `${e} ${o.current.seq}`);
}
-function VW() {
- let e = (0, F.useContext)(GW);
- return RW(() => {
+function WW() {
+ let e = (0, F.useContext)(JW);
+ return VW(() => {
e?.follow?.ground();
}), null;
}
-function HW() {
- return /* @__PURE__ */ (0, I.jsx)(VW, {}, WW());
+function GW() {
+ return /* @__PURE__ */ (0, I.jsx)(WW, {}, qW());
}
// src/react/router/router.tsx
-var UW = (0, F.createContext)(0), WW = () => (0, F.useContext)(UW), GW = (0, F.createContext)(null);
-function KW({ children: e }) {
+var KW = (0, F.createContext)(0), qW = () => (0, F.useContext)(KW), JW = (0, F.createContext)(null);
+function YW({ children: e }) {
let [t, n] = (0, F.useState)(() => zp.navigation);
return (0, F.useLayoutEffect)(() => (n(zp.navigation), zp.listen((e) => {
(0, It.flushSync)(() => n(e));
- })), []), /* @__PURE__ */ (0, I.jsx)(UW.Provider, {
+ })), []), /* @__PURE__ */ (0, I.jsx)(KW.Provider, {
value: t.openEpoch,
children: /* @__PURE__ */ (0, I.jsx)(zf, {
location: t.location,
@@ -47929,34 +47954,34 @@ function KW({ children: e }) {
})
});
}
-function qW({ target: e }) {
+function XW({ target: e }) {
let t = _f();
return (0, F.useLayoutEffect)(() => {
e.current = t;
}), null;
}
-function JW(e, t, n) {
+function ZW(e, t, n) {
let r = new URL(e, window.location.href);
- N6(r.pathname) ? n(`${r.pathname}${r.search}${r.hash}`) : t.navigate(e);
+ M6(r.pathname) ? n(`${r.pathname}${r.search}${r.hash}`) : t.navigate(e);
}
-function YW() {
- let e = (0, F.useContext)(GW), [t, n] = (0, F.useState)(Sp), r = (0, F.useRef)(null);
+function QW() {
+ let e = (0, F.useContext)(JW), [t, n] = (0, F.useState)(Sp), r = (0, F.useRef)(null);
(0, F.useLayoutEffect)(() => (n(Sp()), Cp((e, t) => {
t ? (0, It.flushSync)(() => n(e)) : n(e);
})), []);
let i = (0, F.useMemo)(() => (t) => {
- e && r.current && JW(t, e, r.current);
+ e && r.current && ZW(t, e, r.current);
}, [e]);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(qW, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, I.jsx)(XW, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(XW, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, I.jsx)($W, {
entry: t,
- children: /* @__PURE__ */ (0, I.jsx)(ZW, {
+ children: /* @__PURE__ */ (0, I.jsx)(eG, {
entry: t,
actions: e,
go: i
})
}, t.revision)) : null] });
}
-var XW = class extends F.Component {
+var $W = class extends F.Component {
state = { failed: !1 };
static getDerivedStateFromError() {
return { failed: !0 };
@@ -47967,48 +47992,48 @@ var XW = class extends F.Component {
render() {
return this.state.failed ? null : this.props.children;
}
-}, ZW = (0, F.memo)(function({ entry: e, actions: t, go: n }) {
- return q6(e.path) ? (0, It.createPortal)(TNe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
+}, eG = (0, F.memo)(function({ entry: e, actions: t, go: n }) {
+ return K6(e.path) ? (0, It.createPortal)(ANe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
});
-function QW({ children: e }) {
+function tG({ children: e }) {
let t = hf();
- WW();
+ qW();
let n = Hp(), r = Kf(t.pathname) && !Vp() ? Yf(t.state) : null;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsxs)(Bf, {
location: n ?? t,
children: [
- Object.entries(M6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Rf, {
+ Object.entries(j6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Rf, {
path: e,
element: t.element
}, e)),
- Object.entries(xNe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Rf, {
+ Object.entries(ENe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Rf, {
path: e,
element: t.element
}, e)),
- Object.entries(P6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Rf, {
+ Object.entries(N6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Rf, {
path: e,
element: t.element
}, e)),
- Object.entries(L6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Rf, {
+ Object.entries(I6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Rf, {
path: e,
element: t.element
}, e)),
- Object.entries(z6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Rf, {
+ Object.entries(R6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Rf, {
path: e,
element: t.element
}, e)),
- K6.map((e) => /* @__PURE__ */ (0, I.jsx)(Rf, {
+ G6.map((e) => /* @__PURE__ */ (0, I.jsx)(Rf, {
path: e,
- element: B6["/"].element
+ element: z6["/"].element
}, e)),
- Object.entries(SNe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Rf, {
+ Object.entries(DNe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Rf, {
path: e,
element: t.element
}, e)),
Xf.map((e) => /* @__PURE__ */ (0, I.jsx)(Rf, {
path: e,
- element: e === "/works/:code" ? null : e === "/posts/:id" ? /* @__PURE__ */ (0, I.jsx)(HW, {}) : B6["/"].element
+ element: e === "/works/:code" ? null : e === "/posts/:id" ? /* @__PURE__ */ (0, I.jsx)(GW, {}) : z6["/"].element
}, e)),
Gf.map((e) => /* @__PURE__ */ (0, I.jsx)(Rf, {
path: e,
@@ -48024,7 +48049,7 @@ function QW({ children: e }) {
location: r ?? t,
children: [Xf.map((e) => /* @__PURE__ */ (0, I.jsx)(Rf, {
path: e,
- element: /* @__PURE__ */ (0, I.jsx)(BW, { path: e })
+ element: /* @__PURE__ */ (0, I.jsx)(UW, { path: e })
}, e)), /* @__PURE__ */ (0, I.jsx)(Rf, {
path: "*",
element: null
@@ -48032,37 +48057,37 @@ function QW({ children: e }) {
}),
/* @__PURE__ */ (0, I.jsxs)(Bf, { children: [Gf.map((e) => /* @__PURE__ */ (0, I.jsx)(Rf, {
path: e,
- element: /* @__PURE__ */ (0, I.jsx)(T_e, {})
+ element: /* @__PURE__ */ (0, I.jsx)(D_e, {})
}, e)), /* @__PURE__ */ (0, I.jsx)(Rf, {
path: "*",
element: null
})] })
] });
}
-function $W({ children: e, actions: t = null, background: n, processing: r = !1 }) {
- return /* @__PURE__ */ (0, I.jsxs)(bH, { children: [n, /* @__PURE__ */ (0, I.jsx)(GW.Provider, {
+function nG({ children: e, actions: t = null, background: n, processing: r = !1 }) {
+ return /* @__PURE__ */ (0, I.jsxs)(SH, { children: [n, /* @__PURE__ */ (0, I.jsx)(JW.Provider, {
value: t,
- children: /* @__PURE__ */ (0, I.jsxs)(KW, { children: [
- /* @__PURE__ */ (0, I.jsx)(YW, {}),
- /* @__PURE__ */ (0, I.jsx)(PW, {}),
+ children: /* @__PURE__ */ (0, I.jsxs)(YW, { children: [
+ /* @__PURE__ */ (0, I.jsx)(QW, {}),
/* @__PURE__ */ (0, I.jsx)(LW, {}),
- r && t ? /* @__PURE__ */ (0, I.jsx)(g_e, { toast: t.toast }) : null,
- r && t ? /* @__PURE__ */ (0, I.jsx)(b_e, {}) : null,
- r && t ? /* @__PURE__ */ (0, I.jsx)(w_e, { navigate: t.navigate }) : null,
- /* @__PURE__ */ (0, I.jsx)(QW, { children: e })
+ /* @__PURE__ */ (0, I.jsx)(BW, {}),
+ r && t ? /* @__PURE__ */ (0, I.jsx)(v_e, { toast: t.toast }) : null,
+ r && t ? /* @__PURE__ */ (0, I.jsx)(S_e, {}) : null,
+ r && t ? /* @__PURE__ */ (0, I.jsx)(E_e, { navigate: t.navigate }) : null,
+ /* @__PURE__ */ (0, I.jsx)(tG, { children: e })
] })
})] });
}
-var eG = { onCaughtError: (e) => {
+var rG = { onCaughtError: (e) => {
globalThis.reportError?.(e);
-} }, tG = {
+} }, iG = {
category: "个人分类",
creator: "创作者/账号",
performer: "人物",
seller: "卖家",
studio: "厂牌"
};
-function nG(e, t = "", n = "") {
+function aG(e, t = "", n = "") {
let r = new URLSearchParams({
...e,
folder: t,
@@ -48074,14 +48099,14 @@ function nG(e, t = "", n = "") {
queryFn: ({ signal: e }) => V(`/api/folders?${r}`, e)
};
}
-function rG(e, t) {
+function oG(e, t) {
let n = new URLSearchParams(e.search);
for (let [e, r] of Object.entries(t)) r ? n.set(e, r) : n.delete(e);
return e.pathname + (n.size ? `?${n}` : "");
}
// src/react/catalog-folders/folder-rule-dialog.tsx
-function iG({ folder: e, rule: t, revision: n, close: r }) {
- let i = (0, F.useContext)(GW), a = qH(), [o, s] = (0, F.useState)(t?.purpose || "category"), [c, l] = (0, F.useState)(t?.name || ""), [u, d] = (0, F.useState)(t?.recursive ?? !0), [f, p] = (0, F.useState)(t?.future ?? !1), [m, h] = (0, F.useState)(null), [g, _] = (0, F.useState)(!1), v = {
+function sG({ folder: e, rule: t, revision: n, close: r }) {
+ let i = (0, F.useContext)(JW), a = YH(), [o, s] = (0, F.useState)(t?.purpose || "category"), [c, l] = (0, F.useState)(t?.name || ""), [u, d] = (0, F.useState)(t?.recursive ?? !0), [f, p] = (0, F.useState)(t?.future ?? !1), [m, h] = (0, F.useState)(null), [g, _] = (0, F.useState)(!1), v = {
folder: e.id,
purpose: o,
name: c,
@@ -48110,7 +48135,7 @@ function iG({ folder: e, rule: t, revision: n, close: r }) {
})
})).confirmed ? b("已移除目录规则") : _(!1);
}, w = !!a.busy, T = (e, t) => a.busy === e ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Rs(t) } }), t] }) : null;
- return g ? null : /* @__PURE__ */ (0, I.jsx)(BV, {
+ return g ? null : /* @__PURE__ */ (0, I.jsx)(HV, {
isOpen: !0,
onOpenChange: (e) => {
!e && !w && r();
@@ -48124,7 +48149,7 @@ function iG({ folder: e, rule: t, revision: n, close: r }) {
className: "flex items-start justify-between gap-4 border-b border-separator-border p-5",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "min-w-0",
- children: [/* @__PURE__ */ (0, I.jsx)(zR, {
+ children: [/* @__PURE__ */ (0, I.jsx)(VR, {
slot: "title",
className: "text-title-2-medium",
children: "设置目录用途"
@@ -48132,7 +48157,7 @@ function iG({ folder: e, rule: t, revision: n, close: r }) {
className: "mt-1 text-body-2-regular text-text-secondary wrap-anywhere",
children: e.path
})]
- }), /* @__PURE__ */ (0, I.jsx)(KV, {
+ }), /* @__PURE__ */ (0, I.jsx)(JV, {
label: "关闭目录用途",
onPress: () => {
w || r();
@@ -48144,20 +48169,20 @@ function iG({ folder: e, rule: t, revision: n, close: r }) {
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, I.jsx)(NV, { children: "这个文件夹用于" }), /* @__PURE__ */ (0, I.jsx)(qU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(FV, { children: "这个文件夹用于" }), /* @__PURE__ */ (0, I.jsx)(YU, {
"aria-label": "这个文件夹用于",
selectedKey: o,
isDisabled: w,
onSelectionChange: (e) => {
s(e), y();
},
- children: Object.entries(tG).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(JU, {
+ children: Object.entries(iG).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(XU, {
id: e,
children: t
}, e))
})]
}),
- o === "category" ? null : /* @__PURE__ */ (0, I.jsx)(zV, {
+ o === "category" ? null : /* @__PURE__ */ (0, I.jsx)(VV, {
label: "关联名称",
value: c,
onChange: (e) => {
@@ -48168,7 +48193,7 @@ function iG({ folder: e, rule: t, revision: n, close: r }) {
isDisabled: w,
isRequired: !0
}),
- /* @__PURE__ */ (0, I.jsx)(_H, {
+ /* @__PURE__ */ (0, I.jsx)(yH, {
isSelected: u,
isDisabled: w,
onChange: (e) => {
@@ -48176,7 +48201,7 @@ function iG({ folder: e, rule: t, revision: n, close: r }) {
},
children: "应用到子文件夹"
}),
- /* @__PURE__ */ (0, I.jsx)(_H, {
+ /* @__PURE__ */ (0, I.jsx)(yH, {
isSelected: f,
isDisabled: w,
onChange: (e) => {
@@ -48213,9 +48238,9 @@ function iG({ folder: e, rule: t, revision: n, close: r }) {
children: e.name
}, e.id))
}) : null,
- m.conflicts.length ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ m.conflicts.length ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "warning",
- extra: /* @__PURE__ */ (0, I.jsx)(vU, {
+ extra: /* @__PURE__ */ (0, I.jsx)(bU, {
summary: "查看归属冲突",
children: /* @__PURE__ */ (0, I.jsx)("ul", {
className: "mt-2 flex flex-col gap-2",
@@ -48233,7 +48258,7 @@ function iG({ folder: e, rule: t, revision: n, close: r }) {
}) : null
]
}) : null,
- a.error ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ a.error ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "error",
children: a.error
}) : null
@@ -48242,31 +48267,31 @@ function iG({ folder: e, rule: t, revision: n, close: r }) {
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center justify-end gap-2 border-t border-separator-border p-4",
children: [
- t ? /* @__PURE__ */ (0, I.jsx)(q, {
+ t ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "ghost",
className: "mr-auto",
onClick: () => {
w || C();
},
- ...qV(a.busy === "remove"),
+ ...YV(a.busy === "remove"),
children: "移除规则"
}) : null,
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
onClick: () => {
w || r();
},
children: "取消"
}),
- m ? /* @__PURE__ */ (0, I.jsx)(q, {
+ m ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "primary",
- ...qV(a.busy === "save"),
+ ...YV(a.busy === "save"),
onClick: S,
children: T("save", "正在保存") || "保存目录用途"
- }) : /* @__PURE__ */ (0, I.jsx)(q, {
+ }) : /* @__PURE__ */ (0, I.jsx)(J, {
variant: "primary",
disabled: o !== "category" && !c.trim(),
- ...qV(a.busy === "preview"),
+ ...YV(a.busy === "preview"),
onClick: () => {
x();
},
@@ -48279,7 +48304,7 @@ function iG({ folder: e, rule: t, revision: n, close: r }) {
});
}
// src/react/catalog-folders/use-folder-sticky-offset.ts
-function aG(e, t) {
+function cG(e, t) {
(0, F.useLayoutEffect)(() => {
if (!e) return;
let n = t ? document.getElementById("index") : document.getElementById("catalogFilter"), r = null, i = 0, a = new ResizeObserver(() => s()), o = () => {
@@ -48302,34 +48327,34 @@ function aG(e, t) {
}, [e, t]);
}
// src/react/catalog-folders/catalog-folders-page.tsx
-function oG() {
- return mf() ? /* @__PURE__ */ (0, I.jsx)(sG, {}) : null;
+function lG() {
+ return mf() ? /* @__PURE__ */ (0, I.jsx)(uG, {}) : null;
}
-function sG() {
- let e = hf(), t = (0, F.useContext)(GW);
+function uG() {
+ let e = hf(), t = (0, F.useContext)(JW);
if (!kn(e.pathname) && !/^\/(performers|creators|studios|series|agencies|tags)\/[^/]+$/.test(e.pathname)) return null;
let n = new URLSearchParams(e.search), r = n.get("browse") === "folders" || !!n.get("folder");
- return /* @__PURE__ */ (0, I.jsx)(aR, {
+ return /* @__PURE__ */ (0, I.jsx)(sR, {
size: "small",
"data-folder-mode-toggle": "",
"aria-label": "文件夹模式",
title: "文件夹模式",
"aria-pressed": r,
- icon: xV,
- onClick: () => t?.navigate(rG(e, r ? {
+ icon: CV,
+ onClick: () => t?.navigate(oG(e, r ? {
browse: null,
folder: null,
folder_recursive: null
} : { browse: "folders" }))
});
}
-function cG({ children: e, enabled: t }) {
- return mf() ? /* @__PURE__ */ (0, I.jsx)(lG, {
+function dG({ children: e, enabled: t }) {
+ return mf() ? /* @__PURE__ */ (0, I.jsx)(fG, {
enabled: t,
children: e
}) : /* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: e });
}
-function lG({ children: e, enabled: t }) {
+function fG({ children: e, enabled: t }) {
let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(null), o = hf(), s = new URLSearchParams(o.search), c = t && (s.get("browse") === "folders" || !!s.get("folder"));
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "entity-folder-workspace",
@@ -48349,7 +48374,7 @@ function lG({ children: e, enabled: t }) {
hidden: !c
}), e]
}),
- n && i ? /* @__PURE__ */ (0, I.jsx)(uG, {
+ n && i ? /* @__PURE__ */ (0, I.jsx)(pG, {
treeTarget: n,
headerTarget: i,
enabled: t
@@ -48357,14 +48382,14 @@ function lG({ children: e, enabled: t }) {
]
});
}
-function uG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
- let r = hf(), i = (0, F.useContext)(GW), a = new URLSearchParams(r.search), o = n && (a.get("browse") === "folders" || !!a.get("folder")), s = {
+function pG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
+ let r = hf(), i = (0, F.useContext)(JW), a = new URLSearchParams(r.search), o = n && (a.get("browse") === "folders" || !!a.get("folder")), s = {
loc: a.get("loc") ?? "",
library: a.get("library") ?? ""
};
- aG(o, e);
+ cG(o, e);
let c = a.get("folder") || "", l = Nt({
- ...nG(s, c),
+ ...aG(s, c),
enabled: o
}), [u, d] = (0, F.useState)(!1), [f, p] = (0, F.useState)(!1), m = e ?? document.getElementById("catalogFoldersTree"), h = t ?? document.getElementById("catalogFolderHeader");
if ((0, F.useLayoutEffect)(() => (m && (m.hidden = !o), h && (h.hidden = !o), e || document.body.toggleAttribute("data-folder-browse", o), () => {
@@ -48378,11 +48403,11 @@ function uG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
d(!1), p(!1);
}, [c, o]), !o || !m || !h || !i) return null;
let g = (e) => {
- d(!1), i.navigate(rG(r, {
+ d(!1), i.navigate(oG(r, {
browse: "folders",
folder: e
}));
- }, _ = l.data, v = /* @__PURE__ */ (0, I.jsx)(fG, {
+ }, _ = l.data, v = /* @__PURE__ */ (0, I.jsx)(hG, {
scope: s,
selected: c,
current: _,
@@ -48399,21 +48424,21 @@ function uG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "folder-drawer-trigger",
- children: /* @__PURE__ */ (0, I.jsx)(aR, {
+ children: /* @__PURE__ */ (0, I.jsx)(sR, {
"aria-label": "打开文件夹目录",
- icon: Dhe,
+ icon: khe,
size: "small",
onClick: () => d(!0)
})
}),
- /* @__PURE__ */ (0, I.jsxs)(Khe, {
+ /* @__PURE__ */ (0, I.jsxs)(Jhe, {
"aria-label": "文件夹路径",
- children: [/* @__PURE__ */ (0, I.jsx)(cH, {
+ children: [/* @__PURE__ */ (0, I.jsx)(uH, {
current: !c,
onClick: () => g(""),
- icon: xV,
+ icon: CV,
children: "全部文件夹"
- }), _?.ancestors.map((e, t) => /* @__PURE__ */ (0, I.jsx)(cH, {
+ }), _?.ancestors.map((e, t) => /* @__PURE__ */ (0, I.jsx)(uH, {
current: t === _.ancestors.length - 1,
onClick: () => g(e.id),
children: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -48423,17 +48448,17 @@ function uG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
})
}, e.id))]
}),
- _?.selected ? /* @__PURE__ */ (0, I.jsx)(aR, {
+ _?.selected ? /* @__PURE__ */ (0, I.jsx)(sR, {
"aria-label": "设置目录用途",
- icon: vhe,
+ icon: bhe,
size: "small",
onClick: () => p(!0)
}) : null
]
}),
- l.error && !u ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ l.error && !u ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "error",
- action: /* @__PURE__ */ (0, I.jsx)(q, {
+ action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
onClick: () => {
@@ -48443,9 +48468,9 @@ function uG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}),
children: sr(l.error)
}) : null,
- _?.conflicts?.length ? /* @__PURE__ */ (0, I.jsxs)(HV, {
+ _?.conflicts?.length ? /* @__PURE__ */ (0, I.jsxs)(WV, {
tone: "warning",
- action: /* @__PURE__ */ (0, I.jsx)(q, {
+ action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
onClick: () => p(!0),
@@ -48455,14 +48480,14 @@ function uG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}) : null,
_?.selected ? /* @__PURE__ */ (0, I.jsxs)("div", {
className: "folder-scope-row",
- children: [/* @__PURE__ */ (0, I.jsx)(_H, {
+ children: [/* @__PURE__ */ (0, I.jsx)(yH, {
size: "sm",
isSelected: a.get("folder_recursive") !== "0",
- onChange: (e) => i.navigate(rG(r, { folder_recursive: e ? null : "0" })),
+ onChange: (e) => i.navigate(oG(r, { folder_recursive: e ? null : "0" })),
children: "包含子文件夹"
}), /* @__PURE__ */ (0, I.jsx)("span", {
className: "text-caption-1-regular text-text-tertiary",
- children: _.rule ? `${tG[_.rule.purpose]}${_.rule.name ? ` · ${_.rule.name}` : ""}` : "个人分类"
+ children: _.rule ? `${iG[_.rule.purpose]}${_.rule.name ? ` · ${_.rule.name}` : ""}` : "个人分类"
})]
}) : null,
l.isPending ? /* @__PURE__ */ (0, I.jsx)("div", {
@@ -48472,13 +48497,13 @@ function uG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
className: "folder-children",
children: Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, I.jsx)("span", { className: "skeleton-sheen h-8 w-28 rounded-lg" }, t))
}) : null,
- _?.children.length ? /* @__PURE__ */ (0, I.jsx)(dG, {
+ _?.children.length ? /* @__PURE__ */ (0, I.jsx)(mG, {
nodes: _.children,
go: g
}, c) : null
]
}), h),
- /* @__PURE__ */ (0, I.jsxs)(BV, {
+ /* @__PURE__ */ (0, I.jsxs)(HV, {
isOpen: u,
onOpenChange: d,
width: "form",
@@ -48488,7 +48513,7 @@ function uG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: [/* @__PURE__ */ (0, I.jsx)("h2", {
className: "text-title-2-medium",
children: "文件夹"
- }), /* @__PURE__ */ (0, I.jsx)(KV, {
+ }), /* @__PURE__ */ (0, I.jsx)(JV, {
label: "关闭文件夹目录",
onPress: () => d(!1)
})]
@@ -48497,7 +48522,7 @@ function uG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: u ? v : null
})]
}),
- f && _?.selected ? /* @__PURE__ */ (0, I.jsx)(iG, {
+ f && _?.selected ? /* @__PURE__ */ (0, I.jsx)(sG, {
folder: _.selected,
rule: _.rule,
revision: _.rules_revision,
@@ -48505,7 +48530,7 @@ function uG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}, _.selected.id) : null
] });
}
-function dG({ nodes: e, go: t }) {
+function mG({ nodes: e, go: t }) {
let [n, r] = (0, F.useState)(!1), i = (0, F.useId)(), a = n ? e : e.slice(0, 12);
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-col items-start gap-2",
@@ -48513,17 +48538,17 @@ function dG({ nodes: e, go: t }) {
id: i,
className: "folder-children",
"aria-label": "子文件夹",
- children: a.map((e) => /* @__PURE__ */ (0, I.jsx)(q, {
+ children: a.map((e) => /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: xV,
+ leadingIcon: CV,
onClick: () => t(e.id),
children: /* @__PURE__ */ (0, I.jsx)("span", {
className: "truncate",
children: e.name
})
}, e.id))
- }), e.length > 12 ? /* @__PURE__ */ (0, I.jsx)(q, {
+ }), e.length > 12 ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "ghost",
size: "small",
"aria-expanded": n,
@@ -48533,28 +48558,28 @@ function dG({ nodes: e, go: t }) {
}) : null]
});
}
-function fG({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
- let a = Nt(nG(e)), [o, s] = (0, F.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, F.useState)(""), u = (0, F.useDeferredValue)(c), d = Nt({
- ...nG(e, "", u),
+function hG({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
+ let a = Nt(aG(e)), [o, s] = (0, F.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, F.useState)(""), u = (0, F.useDeferredValue)(c), d = Nt({
+ ...aG(e, "", u),
enabled: !!u.trim()
- }), f = vH();
+ }), f = bH();
(0, F.useEffect)(() => {
n?.ancestors.length && s((e) => /* @__PURE__ */ new Set([...e, ...n.ancestors.filter((e) => e.has_children).map((e) => e.id)]));
}, [n?.ancestors]);
- let p = [...o].map(String), m = jt({ queries: p.map((t) => nG(e, t)) }), h = /* @__PURE__ */ new Map();
+ let p = [...o].map(String), m = jt({ queries: p.map((t) => aG(e, t)) }), h = /* @__PURE__ */ new Map();
m.forEach((e, t) => {
e.data && h.set(p[t], e.data.children);
}), n?.selected && h.set(n.selected.id, n.children);
let g = (e) => {
let t = h.get(e.id);
- return /* @__PURE__ */ (0, I.jsx)(pH, {
+ return /* @__PURE__ */ (0, I.jsx)(hH, {
id: e.id,
label: e.name,
- icon: xV,
- expandedIcon: SV,
+ icon: CV,
+ expandedIcon: wV,
iconClassName: "size-(--icon-inline)",
trailingContent: e.parent ? void 0 : e.location === "local" ? "本地" : e.location,
- children: e.has_children ? t ? t.map(g) : /* @__PURE__ */ (0, I.jsx)(pH, {
+ children: e.has_children ? t ? t.map(g) : /* @__PURE__ */ (0, I.jsx)(hH, {
id: `${e.id}:loading`,
label: "正在读取文件夹",
isDisabled: !0
@@ -48570,17 +48595,17 @@ function fG({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
"aria-label": "文件夹导航",
className: "catalog-folder-navigation flex min-h-0 min-w-0 flex-col gap-3",
children: [
- /* @__PURE__ */ (0, I.jsx)(zV, {
+ /* @__PURE__ */ (0, I.jsx)(VV, {
"aria-label": "查找文件夹",
placeholder: "查找文件夹",
- leadingIcon: AV,
+ leadingIcon: MV,
value: c,
onChange: l,
size: "small"
}),
- v ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ v ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "error",
- action: /* @__PURE__ */ (0, I.jsx)(q, {
+ action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
onClick: () => {
@@ -48613,29 +48638,29 @@ function fG({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
"aria-busy": "true",
className: "h-8 skeleton-sheen",
"aria-label": "正在查找文件夹"
- }) : d.error ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ }) : d.error ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "error",
children: sr(d.error)
- }) : d.data?.matches.length ? d.data.matches.map((e) => /* @__PURE__ */ (0, I.jsx)(q, {
+ }) : d.data?.matches.length ? d.data.matches.map((e) => /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: xV,
+ leadingIcon: CV,
onClick: () => {
l(""), r(e.id);
},
children: e.name
- }, e.id)) : /* @__PURE__ */ (0, I.jsx)(UV, {
+ }, e.id)) : /* @__PURE__ */ (0, I.jsx)(GV, {
size: "compact",
- icon: AV,
+ icon: MV,
title: "没有匹配的文件夹",
- actions: /* @__PURE__ */ (0, I.jsx)(q, {
+ actions: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
onClick: () => l(""),
children: "清除搜索"
}),
children: "换个目录名称试试。"
})
- }) : a.data?.roots.length ? /* @__PURE__ */ (0, I.jsx)(Yhe, {
+ }) : a.data?.roots.length ? /* @__PURE__ */ (0, I.jsx)(Zhe, {
"aria-label": "媒体目录",
size: "sm",
expandedKeys: o,
@@ -48643,11 +48668,11 @@ function fG({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
selectedKeys: new Set(t ? [t] : []),
onSelectionChange: _,
children: a.data?.roots.map(g)
- }) : /* @__PURE__ */ (0, I.jsx)(UV, {
+ }) : /* @__PURE__ */ (0, I.jsx)(GV, {
size: "compact",
- icon: xV,
+ icon: CV,
title: "尚未添加媒体目录",
- actions: /* @__PURE__ */ (0, I.jsx)(_R, {
+ actions: /* @__PURE__ */ (0, I.jsx)(yR, {
size: "small",
href: "/settings/library",
children: "添加媒体"
@@ -48660,79 +48685,79 @@ function fG({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
});
}
// src/react/catalog-grid/catalog-view.ts
-var pG = "peach.catalog-view.v1", mG = /* @__PURE__ */ new Set(), hG = "cards";
-function gG() {
+var gG = "peach.catalog-view.v1", _G = /* @__PURE__ */ new Set(), vG = "cards";
+function yG() {
try {
- return localStorage.getItem(pG) === "list" ? "list" : "cards";
+ return localStorage.getItem(gG) === "list" ? "list" : "cards";
} catch {
- return hG;
+ return vG;
}
}
-function _G(e) {
- hG = e === "list" ? "list" : "cards";
+function bG(e) {
+ vG = e === "list" ? "list" : "cards";
try {
- localStorage.setItem(pG, hG);
+ localStorage.setItem(gG, vG);
} catch {}
- mG.forEach((e) => e());
+ _G.forEach((e) => e());
}
-function vG(e) {
- mG.add(e);
+function xG(e) {
+ _G.add(e);
let t = (t) => {
- (t.key === pG || t.key === null) && e();
+ (t.key === gG || t.key === null) && e();
};
return addEventListener("storage", t), () => {
- mG.delete(e), removeEventListener("storage", t);
+ _G.delete(e), removeEventListener("storage", t);
};
}
-var yG = () => (0, F.useSyncExternalStore)(vG, gG, () => "cards");
+var SG = () => (0, F.useSyncExternalStore)(xG, yG, () => "cards");
// src/react/components/segmented.tsx
-function bG(e) {
- let t = cR(YH("selection"));
- return /* @__PURE__ */ (0, I.jsx)(dV, {
+function CG(e) {
+ let t = uR(ZH("selection"));
+ return /* @__PURE__ */ (0, I.jsx)(pV, {
...e,
ref: t
});
}
-function xG(e) {
- let t = cR(YH("selection"));
- return /* @__PURE__ */ (0, I.jsx)(AB, {
+function wG(e) {
+ let t = uR(ZH("selection"));
+ return /* @__PURE__ */ (0, I.jsx)(MB, {
...e,
ref: t
});
}
-var SG = "inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overscroll-x-contain rounded-2lg bg-background-tertiary-default p-1", CG = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 max-sm:px-2 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", wG = "flex size-7 flex-none cursor-pointer items-center justify-center rounded-md text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", TG = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", EG = "relative flex size-8 flex-none cursor-pointer items-center justify-center rounded-lg text-(--glass-text)/62 outline-none transition-colors hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-(--glass-text)";
+var TG = "inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overscroll-x-contain rounded-2lg bg-background-tertiary-default p-1", EG = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 max-sm:px-2 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", DG = "flex size-7 flex-none cursor-pointer items-center justify-center rounded-md text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", OG = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", kG = "relative flex size-8 flex-none cursor-pointer items-center justify-center rounded-lg text-(--glass-text)/62 outline-none transition-colors hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-(--glass-text)";
// src/react/catalog-grid/catalog-view-toggle.tsx
-function DG() {
- let e = yG();
- return /* @__PURE__ */ (0, I.jsxs)(AB, {
+function AG() {
+ let e = SG();
+ return /* @__PURE__ */ (0, I.jsxs)(MB, {
"aria-label": "馆藏显示方式",
orientation: "horizontal",
value: e,
- onChange: _G,
+ onChange: bG,
"data-entity-layout": "",
- className: TG,
- children: [/* @__PURE__ */ (0, I.jsx)(jB, {
+ className: OG,
+ children: [/* @__PURE__ */ (0, I.jsx)(NB, {
value: "cards",
"aria-label": "卡片",
- className: EG,
+ className: kG,
"data-glass-segment": "",
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: "卡片",
className: "pointer-events-none contents",
- children: /* @__PURE__ */ (0, I.jsx)(TV, {
+ children: /* @__PURE__ */ (0, I.jsx)(DV, {
"aria-hidden": "true",
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, I.jsx)(jB, {
+ }), /* @__PURE__ */ (0, I.jsx)(NB, {
value: "list",
"aria-label": "列表",
- className: EG,
+ className: kG,
"data-glass-segment": "",
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: "列表",
className: "pointer-events-none contents",
- children: /* @__PURE__ */ (0, I.jsx)(The, {
+ children: /* @__PURE__ */ (0, I.jsx)(Dhe, {
"aria-hidden": "true",
className: "size-4"
})
@@ -48741,8 +48766,8 @@ function DG() {
});
}
// src/react/components/icon-swap.tsx
-function OG({ a: e, b: t, state: n, className: r }) {
- let { isFocusVisible: i } = GC();
+function jG({ a: e, b: t, state: n, className: r }) {
+ let { isFocusVisible: i } = JC();
return /* @__PURE__ */ (0, I.jsxs)("span", {
"aria-hidden": !0,
className: `iconswap ${r || ""}`,
@@ -48758,114 +48783,114 @@ function OG({ a: e, b: t, state: n, className: r }) {
})]
});
}
-function kG({ className: e }) {
- return /* @__PURE__ */ (0, I.jsx)(OG, {
- a: Zme,
- b: Xme,
+function MG({ className: e }) {
+ return /* @__PURE__ */ (0, I.jsx)(jG, {
+ a: $me,
+ b: Qme,
className: e
});
}
// src/react/follow-feed/follow-marks.ts
-var AG = (e) => typeof e == "string" ? e : "", jG = (e) => e.aliases;
-function MG(e, t = "") {
+var NG = (e) => typeof e == "string" ? e : "", PG = (e) => e.aliases;
+function FG(e, t = "") {
let n = Ki(e);
return n ? `<img data-follow-site-icon="" src="${n}" alt="${B(t)}"${t ? ` title="${B(t)}"` : ""} loading="lazy" data-drop="self">` : "";
}
-function NG(e, t = "") {
+function IG(e, t = "") {
let n = B(ai(t || e)), r = Ki(e);
return r ? `<img data-follow-site-icon="" src="${r}" alt="" loading="lazy" data-drop="initial" data-initial="${n}" data-drop-class="follow-site-initial">` : `<span class="follow-site-initial" aria-hidden="true">${n}</span>`;
}
-var PG = (e) => AG(e.title).trim() || "未命名内容", FG = (e, t) => ii(e, jG(t));
-function IG(e) {
+var LG = (e) => NG(e.title).trim() || "未命名内容", RG = (e, t) => ii(e, PG(t));
+function zG(e) {
let t = e.filter((e) => e.entity_id && e.entity_name);
if (new Set(t.map((e) => e.entity_id)).size !== 1) return "";
- let n = t[0], r = AG(n.entity_name);
+ let n = t[0], r = NG(n.entity_name);
return sn("creator", r, n.entity_id), r;
}
-function LG(e, t) {
+function BG(e, t) {
let { src: n, fallback: r } = oi(e), i = ai(t);
if (!n) return `<span class="favatar none" title="没有可用头像">${B(i)}</span>`;
let a = r ? ` data-fallbacks="${B(r)}"` : "";
return `<img class="favatar" src="${B(n)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="initial"${a} data-initial="${B(i)}" data-drop-class="favatar none">`;
}
-function RG(e, t, n) {
- let r = jG(n), i = e.credit, a = i?.poster;
+function VG(e, t, n) {
+ let r = PG(n), i = e.credit, a = i?.poster;
if (!a) {
let n = ii(t, r);
return {
- author: n || AG(e.author) || AG(e.source_label) || "创作者未取得",
- avatar: LG(t, n),
+ author: n || NG(e.author) || NG(e.source_label) || "创作者未取得",
+ avatar: BG(t, n),
credited: "",
- entityName: IG(t)
+ entityName: zG(t)
};
}
let o = (e) => String(e || "").toLowerCase().replace(/[^a-z0-9]/g, ""), s = n.sources.find((e) => o(e.ref) === o(a)), c = s?.author_key ? n.sources.filter((e) => e.author_key === s.author_key) : s ? [s] : [], l = c.length && ii(c, r) || a;
return {
author: l,
- avatar: LG(c, l),
+ avatar: BG(c, l),
credited: i.credited || "",
- entityName: IG(c)
+ entityName: zG(c)
};
}
-function zG(e, t = e.primary) {
+function HG(e, t = e.primary) {
let n = [], r = (e, t) => `<small class="javedition" data-follow-edition="${e}">${t}</small>`;
e.primary.variant_kind === "wip" ? n.push(r("wip", "WIP")) : e.has_wip && n.push(r("has-wip", "含 WIP"));
- let i = AG(e.primary.version);
+ let i = NG(e.primary.version);
i && n.push(r("version", B(i)));
- let a = AG(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
+ let a = NG(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
return o && n.push(r(a, o)), n.join("");
}
-function BG(e, t = e.primary) {
+function UG(e, t = e.primary) {
let n = new Map([
e.primary,
...e.variants,
...e.duplicates
].filter((e) => e.provider !== t.provider).map((e) => [e.provider, e.provider_label || e.provider]));
if (!n.size) return "";
- let r = [...n].map(([e, t]) => MG(e, t) || `<span>${B(t)}</span>`).join("");
+ let r = [...n].map(([e, t]) => FG(e, t) || `<span>${B(t)}</span>`).join("");
return `<span data-follow-seealso="" title="另见 ${B([...n.values()].join("、"))}"><span data-follow-seealso-label="">另见</span> ${r}</span>`;
}
-function VG(e, t) {
- let n = AG(e.media_error);
+function WG(e, t) {
+ let n = NG(e.media_error);
return n ? `媒体未取得:${n}` : e.media_needs_credential && !t.credentials.has(e.provider) ? e.playable ? "部分媒体未取得:需要 F95 登录会话解析" : "媒体未取得:需要 F95 登录会话解析" : "";
}
-var HG = 864e5, UG = (e, t) => {
+var GG = 864e5, KG = (e, t) => {
let n = new Date(/[Zz]|[+-]\d\d:?\d\d$/.test(e) ? e : `${e}Z`).getTime();
- return Number.isFinite(n) && n - t > HG;
+ return Number.isFinite(n) && n - t > GG;
};
-function WG(e, t) {
- let n = AG(e.published_at);
+function qG(e, t) {
+ let n = NG(e.published_at);
if (!n) return null;
let r = e.published_precision === "approximate", i = xr(n);
return {
prefix: r ? "约 " : "",
full: r ? i.slice(0, 10) : i,
- suffix: UG(n, t) ? " · 晚于现在" : ""
+ suffix: KG(n, t) ? " · 晚于现在" : ""
};
}
-function GG(e, t = Date.now()) {
- let n = WG(e, t);
+function JG(e, t = Date.now()) {
+ let n = qG(e, t);
return n ? `${n.prefix}${n.full}${n.suffix}` : "时间未取得";
}
-function KG(e, t = Date.now()) {
- let n = WG(e, t);
+function YG(e, t = Date.now()) {
+ let n = qG(e, t);
if (!n) return "时间未取得";
if (!/^\d{4}-/.test(n.full)) return `${n.prefix}${n.full}${n.suffix}`;
let r = n.full.startsWith(String(new Date(t).getFullYear())) ? n.full.slice(5, 10) : n.full.slice(0, 10);
return `${n.prefix}${r}${n.suffix}`;
}
-var qG = /* @__PURE__ */ new Set(), JG = [], YG = null;
-function XG() {
- if (YG = null, !JG.length) return;
- let e = JG.splice(0, 200);
+var XG = /* @__PURE__ */ new Set(), ZG = [], QG = null;
+function $G() {
+ if (QG = null, !ZG.length) return;
+ let e = ZG.splice(0, 200);
Cn("/api/follow/image-dims", {
method: "POST",
body: JSON.stringify({ entries: e })
- }).catch(() => {}), JG.length && (YG = setTimeout(XG, 800));
+ }).catch(() => {}), ZG.length && (QG = setTimeout($G, 800));
}
-function ZG(e, t, n, r) {
+function eK(e, t, n, r) {
let i = `${e}:${t ?? ""}`;
- qG.has(i) || (qG.add(i), JG.push(t === null ? {
+ XG.has(i) || (XG.add(i), ZG.push(t === null ? {
item: e,
width: n,
height: r
@@ -48874,25 +48899,25 @@ function ZG(e, t, n, r) {
width: n,
height: r,
media: t
- }), YG ||= setTimeout(XG, 800));
+ }), QG ||= setTimeout($G, 800));
}
// src/react/entity-filter/entity-filter.ts
-var QG = (e) => e === "videos", $G = () => /* @__PURE__ */ (0, I.jsx)("span", {
+var tK = (e) => e === "videos", nK = () => /* @__PURE__ */ (0, I.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), eK = GV("shuffle"), tK = GV("arrow-up"), nK = GV("arrow-down");
-function rK(e) {
- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = QG(t), u = t === "online" ? e.online : null, d = l || !!u, f = u ? u.status : r, p = u ? u.statuses.map(([e, t]) => ({
+}), rK = qV("shuffle"), iK = qV("arrow-up"), aK = qV("arrow-down");
+function oK(e) {
+ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = tK(t), u = t === "online" ? e.online : null, d = l || !!u, f = u ? u.status : r, p = u ? u.statuses.map(([e, t]) => ({
k: e,
label: t
- })) : i, m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (0, F.useRef)(null), _ = (0, F.useRef)(null), v = (0, F.useRef)(null), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = hR(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), S = hR(h, _, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`), C = (0, F.useRef)(null), w = (0, F.useRef)(null), T = u?.mediaCounts ? u : null, E = hR(C, w, "[data-media-view][aria-pressed=\"true\"]", `${t}:${u?.media}:${!!T}`);
+ })) : i, m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (0, F.useRef)(null), _ = (0, F.useRef)(null), v = (0, F.useRef)(null), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = _R(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), S = _R(h, _, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`), C = (0, F.useRef)(null), w = (0, F.useRef)(null), T = u?.mediaCounts ? u : null, E = _R(C, w, "[data-media-view][aria-pressed=\"true\"]", `${t}:${u?.media}:${!!T}`);
return (0, F.useEffect)(() => {
c.wireDrag(y.current), c.wireScroller(v.current), c.wireDrag(b.current);
- }, [c]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(cK, {
+ }, [c]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(sK, {
items: o,
hidden: !l,
actions: s
- }), /* @__PURE__ */ (0, I.jsx)(uR, {
+ }), /* @__PURE__ */ (0, I.jsx)(fR, {
label: "筛选与排序",
topLabel: "媒体与标签",
attrs: {
@@ -48921,19 +48946,19 @@ function rK(e) {
})
] }),
top: !n && !d ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(sK, {
+ n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(nve, {
keys: n,
view: t,
row: _,
glide: S,
onView: s.setView
- }), d ? /* @__PURE__ */ (0, I.jsx)($G, {}) : null] }) : null,
- T ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(aK, {
+ }), d ? /* @__PURE__ */ (0, I.jsx)(nK, {}) : null] }) : null,
+ T ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(eve, {
head: T,
row: w,
glide: E,
onMedia: s.onlineMedia
- }), /* @__PURE__ */ (0, I.jsx)($G, {})] }) : null,
+ }), /* @__PURE__ */ (0, I.jsx)(nK, {})] }) : null,
/* @__PURE__ */ (0, I.jsxs)("div", {
ref: v,
"data-entity-scroll": "",
@@ -48954,11 +48979,11 @@ function rK(e) {
f !== e.k && (u ? s.onlineStatus(e.k) : s.setState(e.k));
},
children: e.label
- }, e.k)), !u || u.providers.length || u.tags.length ? /* @__PURE__ */ (0, I.jsx)($G, {}) : null]
+ }, e.k)), !u || u.providers.length || u.tags.length ? /* @__PURE__ */ (0, I.jsx)(nK, {}) : null]
}), /* @__PURE__ */ (0, I.jsx)("div", {
ref: y,
"data-entity-tags": "",
- children: l ? a.map((e) => /* @__PURE__ */ (0, I.jsxs)(dR, {
+ children: l ? a.map((e) => /* @__PURE__ */ (0, I.jsxs)(pR, {
"data-entity-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -48967,17 +48992,17 @@ function rK(e) {
"data-count-badge": e.k,
children: e.n.toLocaleString()
})]
- }, e.k)) : u ? /* @__PURE__ */ (0, I.jsx)(oK, {
+ }, e.k)) : u ? /* @__PURE__ */ (0, I.jsx)(tve, {
head: u,
actions: s
}) : null
})]
})
] }),
- bottom: /* @__PURE__ */ (0, I.jsx)(Q_e, { ...e })
+ bottom: /* @__PURE__ */ (0, I.jsx)(rve, { ...e })
})] });
}
-var iK = [[
+var $_e = [[
"videos",
"视频",
"play",
@@ -48988,7 +49013,7 @@ var iK = [[
"pics",
"image"
]];
-function aK({ head: e, row: t, glide: n, onMedia: r }) {
+function eve({ head: e, row: t, glide: n, onMedia: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
ref: t,
role: "group",
@@ -48996,7 +49021,7 @@ function aK({ head: e, row: t, glide: n, onMedia: r }) {
"data-entity-media": "",
"data-online-media": "",
onPointerLeave: n.leave,
- children: iK.map(([t, i, a, o]) => {
+ children: $_e.map(([t, i, a, o]) => {
let s = `${i} ${Math.max(0, e.mediaCounts?.[t] || 0).toLocaleString()}`;
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -49014,7 +49039,7 @@ function aK({ head: e, row: t, glide: n, onMedia: r }) {
})
});
}
-function oK({ head: e, actions: t }) {
+function tve({ head: e, actions: t }) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
e.providers.map(([n, r]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -49024,10 +49049,10 @@ function oK({ head: e, actions: t }) {
title: r,
"aria-label": `来源:${r}`,
onClick: () => t.onlineProvider(n),
- dangerouslySetInnerHTML: { __html: MG(n) }
+ dangerouslySetInnerHTML: { __html: FG(n) }
}, n)),
- e.providers.length && e.tags.length ? /* @__PURE__ */ (0, I.jsx)($G, {}) : null,
- e.tags.map((e) => /* @__PURE__ */ (0, I.jsxs)(dR, {
+ e.providers.length && e.tags.length ? /* @__PURE__ */ (0, I.jsx)(nK, {}) : null,
+ e.tags.map((e) => /* @__PURE__ */ (0, I.jsxs)(pR, {
"data-follow-tag": e.k,
"data-entity-press": "",
"data-tag-cat": `r34-${e.cat}`,
@@ -49040,7 +49065,7 @@ function oK({ head: e, actions: t }) {
}, e.k))
] });
}
-function sK({ keys: e, view: t, row: n, glide: r, onView: i }) {
+function nve({ keys: e, view: t, row: n, glide: r, onView: i }) {
let a = [];
return e.people && a.push({
value: "people",
@@ -49088,7 +49113,7 @@ function sK({ keys: e, view: t, row: n, glide: r, onView: i }) {
})
});
}
-function cK({ items: e, hidden: t, actions: n }) {
+function sK({ items: e, hidden: t, actions: n }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-entity-combo": "",
hidden: t,
@@ -49108,7 +49133,7 @@ function cK({ items: e, hidden: t, actions: n }) {
})] }) : null
});
}
-function Q_e(e) {
+function rve(e) {
let { view: t, readout: n, busy: r, video: i, photo: a, actions: o, helpers: s } = e;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
t === "photos" && a?.back ? /* @__PURE__ */ (0, I.jsxs)("button", {
@@ -49120,30 +49145,30 @@ function Q_e(e) {
dangerouslySetInnerHTML: { __html: z("chevron-left") }
}), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部照片" })]
}) : null,
- /* @__PURE__ */ (0, I.jsx)($_e, {
+ /* @__PURE__ */ (0, I.jsx)(ive, {
text: n,
busy: r
}),
- /* @__PURE__ */ (0, I.jsx)(oH, { currentHref: () => location.pathname + location.search }),
- t === "videos" && i ? /* @__PURE__ */ (0, I.jsx)(eve, {
+ /* @__PURE__ */ (0, I.jsx)(cH, { currentHref: () => location.pathname + location.search }),
+ t === "videos" && i ? /* @__PURE__ */ (0, I.jsx)(ave, {
head: i,
actions: o
}) : null,
- t === "photos" && a ? /* @__PURE__ */ (0, I.jsx)(nve, {
+ t === "photos" && a ? /* @__PURE__ */ (0, I.jsx)(sve, {
head: a,
actions: o,
helpers: s
}) : null,
- t === "online" && e.online ? /* @__PURE__ */ (0, I.jsx)(tve, {
+ t === "online" && e.online ? /* @__PURE__ */ (0, I.jsx)(ove, {
head: e.online,
actions: o
}) : null
] });
}
-function $_e({ text: e, busy: t }) {
+function ive({ text: e, busy: t }) {
return /* @__PURE__ */ (0, I.jsx)("h3", {
"data-entity-readout": "",
- children: /* @__PURE__ */ (0, I.jsx)(rR, {
+ children: /* @__PURE__ */ (0, I.jsx)(aR, {
text: t ? void 0 : e,
busy: t,
placeholder: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -49154,22 +49179,22 @@ function $_e({ text: e, busy: t }) {
})
});
}
-function lK({ name: e, label: t, value: n, options: r, onChange: i }) {
- return /* @__PURE__ */ (0, I.jsx)(AB, {
+function cK({ name: e, label: t, value: n, options: r, onChange: i }) {
+ return /* @__PURE__ */ (0, I.jsx)(MB, {
name: e,
"aria-label": t,
orientation: "horizontal",
value: n,
onChange: i,
"data-entity-layout": "",
- className: TG,
+ className: OG,
children: r.map(([e, t, n]) => {
- let r = GV(n);
- return /* @__PURE__ */ (0, I.jsx)(jB, {
+ let r = qV(n);
+ return /* @__PURE__ */ (0, I.jsx)(NB, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: EG,
+ className: kG,
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: t,
className: "contents",
@@ -49179,38 +49204,38 @@ function lK({ name: e, label: t, value: n, options: r, onChange: i }) {
})
});
}
-function uK({ onPress: e, busy: t = !1 }) {
- return /* @__PURE__ */ (0, I.jsx)(lR, {
+function lK({ onPress: e, busy: t = !1 }) {
+ return /* @__PURE__ */ (0, I.jsx)(dR, {
"data-entity-batch": "",
label: "换一批",
busy: t,
busyStyle: "strand",
- icon: eK,
+ icon: rK,
onPress: e
});
}
-function eve({ head: e, actions: t }) {
- let n = yG();
+function ave({ head: e, actions: t }) {
+ let n = SG();
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(uK, { onPress: () => void t.reshuffle() }),
- e.jav && n === "cards" ? /* @__PURE__ */ (0, I.jsx)(lK, {
+ /* @__PURE__ */ (0, I.jsx)(lK, { onPress: () => void t.reshuffle() }),
+ e.jav && n === "cards" ? /* @__PURE__ */ (0, I.jsx)(cK, {
label: "JAV 卡片版式",
value: e.jav.layout,
options: e.jav.options,
onChange: t.setJavLayout
}) : null,
- /* @__PURE__ */ (0, I.jsx)(DG, {}),
- /* @__PURE__ */ (0, I.jsx)(oG, {}),
- /* @__PURE__ */ (0, I.jsx)(dK, {
+ /* @__PURE__ */ (0, I.jsx)(AG, {}),
+ /* @__PURE__ */ (0, I.jsx)(lG, {}),
+ /* @__PURE__ */ (0, I.jsx)(uK, {
sorts: e.sorts,
onSort: t.setSort
})
]
});
}
-function dK({ sorts: e, onSort: t }) {
+function uK({ sorts: e, onSort: t }) {
return /* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-entity-sort": e.key,
@@ -49218,20 +49243,20 @@ function dK({ sorts: e, onSort: t }) {
"aria-pressed": e.pressed,
"aria-label": e.ariaLabel || void 0,
onClick: () => t(e.key),
- children: [e.label, e.pressed && e.dir ? /* @__PURE__ */ (0, I.jsx)(OG, {
- a: tK,
- b: nK,
+ children: [e.label, e.pressed && e.dir ? /* @__PURE__ */ (0, I.jsx)(jG, {
+ a: iK,
+ b: aK,
state: e.dir === "asc" ? "a" : "b",
className: "size-(--icon-inline)"
}) : null]
}, e.key)) });
}
-function tve({ head: e, actions: t }) {
+function ove({ head: e, actions: t }) {
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(uK, { onPress: t.onlineShuffle }),
- e.media === "images" ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(lK, {
+ /* @__PURE__ */ (0, I.jsx)(lK, { onPress: t.onlineShuffle }),
+ e.media === "images" ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(cK, {
label: "图片布局",
value: e.photoLayout,
options: e.photoLayouts,
@@ -49251,27 +49276,27 @@ function tve({ head: e, actions: t }) {
dangerouslySetInnerHTML: { __html: z("captions-off") }
})]
})] }) : null,
- /* @__PURE__ */ (0, I.jsx)(dK, {
+ /* @__PURE__ */ (0, I.jsx)(uK, {
sorts: e.sorts,
onSort: t.onlineSort
})
]
});
}
-function nve({ head: e, actions: t, helpers: n }) {
+function sve({ head: e, actions: t, helpers: n }) {
let [r, i] = (0, F.useState)(!1), a = (0, F.useRef)(null), o = e.back ? n.sourceToolsHtml(e.setId) : "";
return (0, F.useEffect)(() => {
a.current && o && n.wireSourceTools(a.current);
}, [n, o]), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- e.shuffle ? /* @__PURE__ */ (0, I.jsx)(uK, {
+ e.shuffle ? /* @__PURE__ */ (0, I.jsx)(lK, {
onPress: () => {
i(!0), t.reshuffle().finally(() => i(!1));
},
busy: r
}) : null,
- /* @__PURE__ */ (0, I.jsx)(lK, {
+ /* @__PURE__ */ (0, I.jsx)(cK, {
label: "图片布局",
value: e.layout,
options: e.layouts,
@@ -49286,8 +49311,8 @@ function nve({ head: e, actions: t, helpers: n }) {
});
}
// src/react/catalog-filter/catalog-filter.ts
-var rve = "peach.catalog.tiers.v1";
-function fK() {
+var cve = "peach.catalog.tiers.v1";
+function dK() {
try {
let e = JSON.parse(localStorage.getItem("peach.catalog.tiers.v1") || "{}");
return {
@@ -49301,40 +49326,40 @@ function fK() {
};
}
}
-function ive(e) {
+function lve(e) {
try {
let t = JSON.stringify({
performers: e.performers,
studios: e.studios
});
- localStorage.getItem("peach.catalog.tiers.v1") !== t && localStorage.setItem(rve, t);
+ localStorage.getItem("peach.catalog.tiers.v1") !== t && localStorage.setItem(cve, t);
} catch {}
}
// src/react/catalog-filter/catalog-filter-page.tsx
-function ave(e) {
- let t = !e.tiers, n = fve(e.comboHost);
+function uve(e) {
+ let t = !e.tiers, n = _ve(e.comboHost);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-catalog-root": "",
"data-loading": t || void 0,
"data-refreshing": e.refreshing || void 0,
className: "contents",
children: [
- n ? (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(cK, {
+ n ? (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(sK, {
items: e.combo,
hidden: e.comboHidden,
actions: e.actions
}), n) : null,
- /* @__PURE__ */ (0, I.jsx)(cve, { ...e }),
- e.offscreen ? null : /* @__PURE__ */ (0, I.jsx)(ove, { ...e })
+ /* @__PURE__ */ (0, I.jsx)(pve, { ...e }),
+ e.offscreen ? null : /* @__PURE__ */ (0, I.jsx)(dve, { ...e })
]
});
}
-function ove(e) {
- let { actions: t, helpers: n } = e, r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(!1), u = hR(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
+function dve(e) {
+ let { actions: t, helpers: n } = e, r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(!1), u = _R(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
(0, F.useEffect)(() => {
n.wireDrag(o.current), n.wireScroller(a.current), n.wireDrag(s.current);
}, [n]);
- let d = !e.tiers, f = mK(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
+ let d = !e.tiers, f = pK(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
return (0, F.useLayoutEffect)(() => {
if (d) {
l(!1);
@@ -49358,7 +49383,7 @@ function ove(e) {
e.sorts
]), (0, F.useLayoutEffect)(() => {
Xs(o.current, "tagbar");
- }, [f]), /* @__PURE__ */ (0, I.jsx)(uR, {
+ }, [f]), /* @__PURE__ */ (0, I.jsx)(fR, {
label: "筛选与排序",
topLabel: "视图与标签",
attrs: {
@@ -49402,23 +49427,23 @@ function ove(e) {
}), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: o,
"data-catalog-tags": "",
- children: [e.empty || d ? /* @__PURE__ */ (0, I.jsx)(pK, { kind: "tag" }) : null, f.map((n) => /* @__PURE__ */ (0, I.jsx)(sve, {
+ children: [e.empty || d ? /* @__PURE__ */ (0, I.jsx)(fK, { kind: "tag" }) : null, f.map((n) => /* @__PURE__ */ (0, I.jsx)(fve, {
tag: n,
pending: e.tiersPending,
onPress: t.toggleTag
}, n.k))]
})]
}),
- bottom: e.trash ? null : /* @__PURE__ */ (0, I.jsx)(uve, { ...e })
+ bottom: e.trash ? null : /* @__PURE__ */ (0, I.jsx)(hve, { ...e })
});
}
-function sve({ tag: e, pending: t, onPress: n }) {
- return /* @__PURE__ */ (0, I.jsxs)(dR, {
+function fve({ tag: e, pending: t, onPress: n }) {
+ return /* @__PURE__ */ (0, I.jsxs)(pR, {
"data-catalog-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
onPress: () => n(e.k),
- children: [/* @__PURE__ */ (0, I.jsx)(rR, {
+ children: [/* @__PURE__ */ (0, I.jsx)(aR, {
text: e.label,
busy: t
}), e.n == null ? null : /* @__PURE__ */ (0, I.jsx)("span", {
@@ -49427,15 +49452,15 @@ function sve({ tag: e, pending: t, onPress: n }) {
})]
});
}
-function cve(e) {
- nR();
+function pve(e) {
+ iR();
let { actions: t, helpers: n } = e, r = e.tiers ?? {
key: "",
performers: [],
studios: []
- }, i = !e.tiers, a = e.empty || i, o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useCallback)((e) => () => t.moreTops(e), [t]), l = mK(o, r.performers, r.key, 24, a ? void 0 : c("performers")), u = mK(s, r.studios, r.key, 24, a ? void 0 : c("studios")), d = (0, F.useMemo)(() => i ? fK() : null, [i]), f = d ? d.performers : e.empty || r.performers.length > 0, p = d ? d.studios : e.empty || r.studios.length > 0;
+ }, i = !e.tiers, a = e.empty || i, o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useCallback)((e) => () => t.moreTops(e), [t]), l = pK(o, r.performers, r.key, 24, a ? void 0 : c("performers")), u = pK(s, r.studios, r.key, 24, a ? void 0 : c("studios")), d = (0, F.useMemo)(() => i ? dK() : null, [i]), f = d ? d.performers : e.empty || r.performers.length > 0, p = d ? d.studios : e.empty || r.studios.length > 0;
return (0, F.useEffect)(() => {
- i || ive({
+ i || lve({
performers: f,
studios: p
});
@@ -49456,7 +49481,7 @@ function cve(e) {
children: [f ? /* @__PURE__ */ (0, I.jsx)("div", {
ref: o,
"data-catalog-tier": "performers",
- children: a ? /* @__PURE__ */ (0, I.jsx)(pK, { kind: "performer" }) : l.map((n) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: a ? /* @__PURE__ */ (0, I.jsx)(fK, { kind: "performer" }) : l.map((n) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-tier-performer": "",
"data-entity-kind": "performer",
@@ -49467,7 +49492,7 @@ function cve(e) {
dangerouslySetInnerHTML: { __html: n.ringHtml }
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-tier-name": "",
- children: /* @__PURE__ */ (0, I.jsx)(rR, {
+ children: /* @__PURE__ */ (0, I.jsx)(aR, {
text: en("performer", n.name),
busy: e.tiersPending
})
@@ -49476,13 +49501,13 @@ function cve(e) {
}) : null, p ? /* @__PURE__ */ (0, I.jsx)("div", {
ref: s,
"data-catalog-tier": "studios",
- children: a ? /* @__PURE__ */ (0, I.jsx)(pK, { kind: "studio" }) : u.map((n) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: a ? /* @__PURE__ */ (0, I.jsx)(fK, { kind: "studio" }) : u.map((n) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-tier-studio": "",
"data-entity-kind": "studio",
"data-entity-name": n.name,
onClick: () => t.openEntity("studio", n.name),
- children: [/* @__PURE__ */ (0, I.jsx)(lve, { studio: n }), /* @__PURE__ */ (0, I.jsx)(rR, {
+ children: [/* @__PURE__ */ (0, I.jsx)(mve, { studio: n }), /* @__PURE__ */ (0, I.jsx)(aR, {
text: n.name,
busy: e.tiersPending
})]
@@ -49490,7 +49515,7 @@ function cve(e) {
}) : null]
});
}
-function lve({ studio: e }) {
+function mve({ studio: e }) {
let [t, n] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-tier-mark": "",
@@ -49508,7 +49533,7 @@ function lve({ studio: e }) {
}) : e.fallback
});
}
-function pK({ kind: e }) {
+function fK({ kind: e }) {
let t = Array.from({ length: 64 }, (e, t) => t);
return e === "tag" ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-catalog-placeholder": "tag",
@@ -49524,43 +49549,43 @@ function pK({ kind: e }) {
children: [/* @__PURE__ */ (0, I.jsx)("span", {}), /* @__PURE__ */ (0, I.jsx)("span", { children: "\xA0" })]
}, t)) });
}
-function uve({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
- let a = yG(), [o, s] = (0, F.useState)(!1);
+function hve({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
+ let a = SG(), [o, s] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("span", {
"data-catalog-summary": "",
- children: [/* @__PURE__ */ (0, I.jsx)(dve, { count: e }), /* @__PURE__ */ (0, I.jsx)(oH, { currentHref: i.currentHref })]
+ children: [/* @__PURE__ */ (0, I.jsx)(gve, { count: e }), /* @__PURE__ */ (0, I.jsx)(cH, { currentHref: i.currentHref })]
}), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(uK, {
+ /* @__PURE__ */ (0, I.jsx)(lK, {
onPress: () => {
s(!0), i.reshuffle().finally(() => s(!1));
},
busy: o || t
}),
- n && a === "cards" ? /* @__PURE__ */ (0, I.jsx)(lK, {
+ n && a === "cards" ? /* @__PURE__ */ (0, I.jsx)(cK, {
name: n.name,
label: n.label,
value: n.value,
options: n.options,
onChange: i.setLayout
}, n.name) : null,
- /* @__PURE__ */ (0, I.jsx)(DG, {}),
- /* @__PURE__ */ (0, I.jsx)(oG, {}),
- /* @__PURE__ */ (0, I.jsx)(dK, {
+ /* @__PURE__ */ (0, I.jsx)(AG, {}),
+ /* @__PURE__ */ (0, I.jsx)(lG, {}),
+ /* @__PURE__ */ (0, I.jsx)(uK, {
sorts: r,
onSort: i.setSort
})
]
})] });
}
-function dve({ count: e }) {
+function gve({ count: e }) {
let t = e ? `${e.total.toLocaleString()} 个符合 · 显示 ${e.shown.toLocaleString()}` : e === !1 ? "" : void 0;
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-catalog-readout": "",
"data-count-readout": "",
role: "status",
- children: /* @__PURE__ */ (0, I.jsx)(rR, {
+ children: /* @__PURE__ */ (0, I.jsx)(aR, {
text: t,
busy: e === null,
placeholder: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -49571,7 +49596,7 @@ function dve({ count: e }) {
})
});
}
-function fve(e) {
+function _ve(e) {
let [t, n] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
if (!e) return;
@@ -49581,7 +49606,7 @@ function fve(e) {
};
}, [e]), t;
}
-function mK(e, t, n, r, i) {
+function pK(e, t, n, r, i) {
let a = () => ({
key: n,
limit: r,
@@ -49624,8 +49649,8 @@ function mK(e, t, n, r, i) {
}), l.slice(0, c.limit);
}
// src/react/components/grid-reveal.tsx
-var hK = "100% 0px";
-function pve(e, t) {
+var mK = "100% 0px";
+function vve(e, t) {
let [n, r] = (0, F.useState)(e ? "skeleton" : "none"), [i] = (0, F.useState)(() => e ? t() : ""), a = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
a.current && lc(a.current);
@@ -49651,7 +49676,7 @@ function pve(e, t) {
fading: n === "fade"
};
}
-function gK({ message: e, onRetry: t }) {
+function hK({ message: e, onRetry: t }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-media-error": "",
onClick: (e) => {
@@ -49664,7 +49689,7 @@ function gK({ message: e, onRetry: t }) {
});
}
// src/react/components/skeleton-content.tsx
-function _K({ pending: e, skeletonHtml: t, children: n }) {
+function gK({ pending: e, skeletonHtml: t, children: n }) {
let r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = t();
return (0, F.useLayoutEffect)(() => {
e || (r.current = n);
@@ -49688,63 +49713,63 @@ function _K({ pending: e, skeletonHtml: t, children: n }) {
});
}
// src/library-catalog.ts
-var vK = "peach.library-colors.v1", yK = null, bK = /* @__PURE__ */ new Set();
-function mve() {
+var _K = "peach.library-colors.v1", vK = null, yK = /* @__PURE__ */ new Set();
+function yve() {
try {
- let e = JSON.parse(localStorage.getItem(vK) || "{}");
+ let e = JSON.parse(localStorage.getItem(_K) || "{}");
return e && typeof e == "object" ? e : {};
} catch {
return {};
}
}
-function xK(e) {
- yK = e;
+function bK(e) {
+ vK = e;
try {
- localStorage.setItem(vK, JSON.stringify(Object.fromEntries(e.filter((e) => e.color).map((e) => [e.id, e.color]))));
+ localStorage.setItem(_K, JSON.stringify(Object.fromEntries(e.filter((e) => e.color).map((e) => [e.id, e.color]))));
} catch {}
- bK.forEach((t) => t(e));
+ yK.forEach((t) => t(e));
}
-function SK() {
- return yK;
+function xK() {
+ return vK;
}
-function hve(e) {
- return bK.add(e), () => {
- bK.delete(e);
+function bve(e) {
+ return yK.add(e), () => {
+ yK.delete(e);
};
}
// src/react/components/library-tint.ts
-var CK = /* @__PURE__ */ new Map(), wK = !1, TK = /* @__PURE__ */ new Set();
-function gve(e) {
+var SK = /* @__PURE__ */ new Map(), CK = !1, wK = /* @__PURE__ */ new Set();
+function xve(e) {
let t = document.createElement("span");
t.setAttribute("data-accent-ball", e), t.hidden = !0, document.body.append(t);
let n = getComputedStyle(t).getPropertyValue("--color-accent-500").trim();
return t.remove(), n;
}
-function EK(e) {
- CK = e;
+function TK(e) {
+ SK = e;
let t = document.getElementById("peach-library-tints");
- t || (t = document.createElement("style"), t.id = "peach-library-tints", document.head.append(t)), t.textContent = [...CK.values()].filter((e) => e.color).map((e) => `[data-library="${CSS.escape(e.id)}"]{--library-color:${gve(e.color)}}`).join("\n");
+ t || (t = document.createElement("style"), t.id = "peach-library-tints", document.head.append(t)), t.textContent = [...SK.values()].filter((e) => e.color).map((e) => `[data-library="${CSS.escape(e.id)}"]{--library-color:${xve(e.color)}}`).join("\n");
}
-function DK(e) {
- EK(e), TK.forEach((e) => e());
+function EK(e) {
+ TK(e), wK.forEach((e) => e());
}
-var OK = (e) => new Map(e.map((e) => [e.id, {
+var DK = (e) => new Map(e.map((e) => [e.id, {
id: e.id,
name: e.name,
icon: hs[e.icon || ""] || e.icon || "database",
location: e.roots?.[0]?.location || "",
color: e.color || ""
-}])), kK = !1;
-function _ve() {
- if (kK) return;
- kK = !0, hve((e) => DK(OK(e)));
- let e = SK();
+}])), OK = !1;
+function Sve() {
+ if (OK) return;
+ OK = !0, bve((e) => EK(DK(e)));
+ let e = xK();
if (e) {
- EK(OK(e));
+ TK(DK(e));
return;
}
- let t = Object.entries(mve()).filter(([, e]) => e);
- t.length && EK(new Map(t.map(([e, t]) => [e, {
+ let t = Object.entries(yve()).filter(([, e]) => e);
+ t.length && TK(new Map(t.map(([e, t]) => [e, {
id: e,
name: "",
icon: "database",
@@ -49752,73 +49777,73 @@ function _ve() {
color: t
}])));
}
-function vve() {
- wK || SK() || (wK = !0, V("/api/libraries").then((e) => xK(e.libraries || [])).catch(() => {
- wK = !1;
+function Cve() {
+ CK || xK() || (CK = !0, V("/api/libraries").then((e) => bK(e.libraries || [])).catch(() => {
+ CK = !1;
}));
}
-function yve(e, t) {
- let n = CK.get(e) ?? {
+function wve(e, t) {
+ let n = SK.get(e) ?? {
id: e,
name: "",
icon: "database",
location: "",
color: ""
};
- DK(new Map([...CK, [e, {
+ EK(new Map([...SK, [e, {
...n,
color: t
}]]));
}
-function bve(e) {
- return TK.add(e), () => {
- TK.delete(e);
+function Tve(e) {
+ return wK.add(e), () => {
+ wK.delete(e);
};
}
-function AK({ names: e = !1 } = {}) {
- return _ve(), e && vve(), (0, F.useSyncExternalStore)(bve, () => CK, () => CK);
+function kK({ names: e = !1 } = {}) {
+ return Sve(), e && Cve(), (0, F.useSyncExternalStore)(Tve, () => SK, () => SK);
}
// src/react/components/row-click.ts
-var xve = "a,button,input,select,textarea,label,[role=\"checkbox\"],[role=\"switch\"],[role=\"button\"],[role=\"link\"],[role=\"menu\"]";
-function jK(e, t) {
+var Eve = "a,button,input,select,textarea,label,[role=\"checkbox\"],[role=\"switch\"],[role=\"button\"],[role=\"link\"],[role=\"menu\"]";
+function AK(e, t) {
let n = e.target;
if (!(n instanceof Element) || !t.contains(n)) return !1;
- let r = n.closest(xve);
+ let r = n.closest(Eve);
return !r || !t.contains(r) || r === t;
}
-function MK(e) {
+function jK(e) {
e.shiftKey && e.preventDefault();
}
// src/react/components/media-card.tsx
-var NK = 9 / 16, PK = "未命名视频";
-function FK({ name: e }) {
+var MK = 9 / 16, NK = "未命名视频";
+function PK({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-var Sve = {
+var Dve = {
image: "图片",
audio: "音频",
archive: "压缩包",
other: "其它文件"
-}, Cve = {
+}, Ove = {
manual: "手动",
junk: "垃圾",
duplicate: "重复",
missing: "文件缺失"
};
-function IK({ item: e }) {
+function FK({ item: e }) {
if (e.disposal !== "trash") return null;
- let t = e.disposal_reason && Cve[e.disposal_reason] || "原因未记录";
+ let t = e.disposal_reason && Ove[e.disposal_reason] || "原因未记录";
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-disposal-reason": "",
title: `归入原因:${t}`,
children: t
});
}
-function LK({ item: e, actions: t }) {
+function IK({ item: e, actions: t }) {
let [n, r] = (0, F.useState)(!1), [i, a] = (0, F.useState)(""), o = e.disposal === "trash" ? "restore" : "dispose", s = o === "restore" ? "还原" : "移入回收站";
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -49837,10 +49862,10 @@ function LK({ item: e, actions: t }) {
children: i
}) : null] });
}
-function RK(e, t, n) {
- return t === "short" ? NK : GM(n);
+function LK(e, t, n) {
+ return t === "short" ? MK : XM(n);
}
-function zK(e) {
+function RK(e) {
let { kind: t, name: n, coStarred: r, performers: i, refs: a, total: o } = Oo(e), s = i[0] || "", c = po(e);
return {
avatar: r ? /* @__PURE__ */ (0, I.jsx)("div", {
@@ -49872,7 +49897,7 @@ function zK(e) {
"data-entity-kind": "performer",
"data-entity-name": s,
title: en("performer", s),
- children: [/* @__PURE__ */ (0, I.jsx)(FK, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: en("performer", s) })]
+ children: [/* @__PURE__ */ (0, I.jsx)(PK, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: en("performer", s) })]
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-who-more": "",
children: `等 ${o} 人`
@@ -49882,16 +49907,16 @@ function zK(e) {
"data-entity-kind": t,
"data-entity-name": n,
title: en(t, n),
- children: [/* @__PURE__ */ (0, I.jsx)(FK, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: en(t, n) })]
+ children: [/* @__PURE__ */ (0, I.jsx)(PK, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: en(t, n) })]
}) : /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-media-who": "",
"data-open-unowned": "",
- children: [/* @__PURE__ */ (0, I.jsx)(FK, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
+ children: [/* @__PURE__ */ (0, I.jsx)(PK, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
})
};
}
-function wve() {
+function kve() {
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-media-preview": "",
@@ -49910,7 +49935,7 @@ function wve() {
})]
});
}
-function Tve({ item: e, actions: t, on: n, onChange: r }) {
+function Ave({ item: e, actions: t, on: n, onChange: r }) {
let [i, a] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-media-later": "",
@@ -49925,11 +49950,11 @@ function Tve({ item: e, actions: t, on: n, onChange: r }) {
},
"aria-busy": i || void 0,
"aria-disabled": i || void 0,
- children: /* @__PURE__ */ (0, I.jsx)(FK, { name: n ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, I.jsx)(PK, { name: n ? "check" : "bookmark-plus" })
})
});
}
-function Eve({ reason: e }) {
+function jve({ reason: e }) {
let t = (0, F.useRef)(null), [n, r] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("button", {
ref: t,
@@ -49943,15 +49968,15 @@ function Eve({ reason: e }) {
e.stopPropagation(), r(!0);
},
children: e
- }), /* @__PURE__ */ (0, I.jsx)(uB, {
+ }), /* @__PURE__ */ (0, I.jsx)(fB, {
triggerRef: t,
isOpen: n,
onOpenChange: r,
placement: "top",
offset: 8,
containerPadding: 12,
- className: uH,
- children: /* @__PURE__ */ (0, I.jsx)(CB, {
+ className: fH,
+ children: /* @__PURE__ */ (0, I.jsx)(TB, {
"data-media-reason-dialog": "",
"aria-label": "推荐理由",
className: "w-64 max-w-full p-2 text-body-regular whitespace-normal break-words text-text-primary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
@@ -49959,18 +49984,18 @@ function Eve({ reason: e }) {
})
})] });
}
-function BK(e, t) {
+function zK(e, t) {
let n = e?.querySelector("video.hv");
n && Number.isFinite(n.duration) && (n._hop &&= (clearInterval(n._hop), null), n.currentTime = Math.max(0, Math.min(n.duration, n.currentTime + t)));
}
-function Dve({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c, grouped: l = !0 }) {
- nR();
- let u = (0, F.useRef)(null), [d, f] = (0, F.useState)(null), p = d?.id === e.id ? d.on : !!e.watch_later, m = AK(), h = e.library_id && m.get(e.library_id)?.color ? e.library_id : void 0, g = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), _ = (0, F.useRef)(e);
+function Mve({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c, grouped: l = !0 }) {
+ iR();
+ let u = (0, F.useRef)(null), [d, f] = (0, F.useState)(null), p = d?.id === e.id ? d.on : !!e.watch_later, m = kK(), h = e.library_id && m.get(e.library_id)?.color ? e.library_id : void 0, g = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), _ = (0, F.useRef)(e);
_.current = e;
let v = (0, F.useCallback)((e) => {
let t = _.current;
u.current && u.current !== e && ql(u.current), u.current = e, e && (!t.medium || t.medium === "video") && Yl(e, t);
- }, []), y = l && Number(e.part_group?.count) > 1 && e.part_group || null, b = l && Number(e.edition_group?.count) > 1 && e.edition_group || null, x = !!(y || b), S = n.active && !!e.is_jav, C = RK(e, t, n), w = S ? n.size : "small", T = C === NK && !!e.is_jav, E = T ? To(e, !1) : Co(e, w, !1, n.javImage), D = T || w === "small" ? E.html : Co(e, "small", !1, n.javImage).html, O = y?.title || e.name || "", k = o.displayName(e, O).trim() || PK, A = o.titleHtml(e, O).trim() || B(PK), j = y?.total_size ?? e.size, M = y?.total_duration ?? e.duration, ee = !y && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: N, who: te } = zK(e), P = (e.follow_tags || e.tags || []).slice(0, 3), ne = (t) => {
+ }, []), y = l && Number(e.part_group?.count) > 1 && e.part_group || null, b = l && Number(e.edition_group?.count) > 1 && e.edition_group || null, x = !!(y || b), S = n.active && !!e.is_jav, C = LK(e, t, n), w = S ? n.size : "small", T = C === MK && !!e.is_jav, E = T ? To(e, !1) : Co(e, w, !1, n.javImage), D = T || w === "small" ? E.html : Co(e, "small", !1, n.javImage).html, O = y?.title || e.name || "", k = o.displayName(e, O).trim() || NK, A = o.titleHtml(e, O).trim() || B(NK), j = y?.total_size ?? e.size, M = y?.total_duration ?? e.duration, ee = !y && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: N, who: te } = RK(e), P = (e.follow_tags || e.tags || []).slice(0, 3), ne = (t) => {
let n = t.target;
if (n.closest("[data-media-reason-dialog]")) return;
let r = u.current;
@@ -49997,10 +50022,10 @@ function Dve({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
l && r.contains(l) ? s.toggleTag(l.dataset.tag || "") : c(e, r);
}, re = /* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-pic": "",
- "data-pic-portrait": C === NK ? "" : void 0,
+ "data-pic-portrait": C === MK ? "" : void 0,
style: { "--card-ratio": String(C) },
children: [
- E.html ? /* @__PURE__ */ (0, I.jsx)(ZU, {
+ E.html ? /* @__PURE__ */ (0, I.jsx)($U, {
artwork: E,
identity: D,
relayout: (e) => zl(e, w)
@@ -50014,11 +50039,11 @@ function Dve({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
}),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, I.jsx)(FK, { name: "check" })
+ children: /* @__PURE__ */ (0, I.jsx)(PK, { name: "check" })
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, I.jsx)(FK, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, I.jsx)(PK, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]
}),
y && !b ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-group": "",
@@ -50033,7 +50058,7 @@ function Dve({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
"data-media-duration": "",
children: Kn(M)
}),
- !i && e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)(LK, {
+ !i && e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)(IK, {
item: e,
actions: s
}) : null,
@@ -50049,22 +50074,22 @@ function Dve({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
"data-media-scrub": "",
children: /* @__PURE__ */ (0, I.jsx)("i", { style: { "--media-fill": `${Math.round(e.leave_ratio * 100)}%` } })
}),
- /* @__PURE__ */ (0, I.jsx)(wve, {}),
+ /* @__PURE__ */ (0, I.jsx)(kve, {}),
p || g.length ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-status": "",
children: [p ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-status": "later",
title: "稍后看",
"aria-label": "稍后看",
- children: /* @__PURE__ */ (0, I.jsx)(FK, { name: "bookmark" })
+ children: /* @__PURE__ */ (0, I.jsx)(PK, { name: "bookmark" })
}) : null, g.length ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-status": "flagged",
title: `已标记:${g.join("、")}`,
"aria-label": `已标记:${g.join("、")}`,
- children: /* @__PURE__ */ (0, I.jsx)(FK, { name: "heart" })
+ children: /* @__PURE__ */ (0, I.jsx)(PK, { name: "heart" })
}) : null]
}) : null,
- i ? null : /* @__PURE__ */ (0, I.jsx)(Tve, {
+ i ? null : /* @__PURE__ */ (0, I.jsx)(Ave, {
item: e,
actions: s,
on: p,
@@ -50079,27 +50104,27 @@ function Dve({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), BK(u.current, -a);
+ e.stopPropagation(), zK(u.current, -a);
},
title: `后退 ${a} 秒`,
"aria-label": `后退 ${a} 秒`,
- children: /* @__PURE__ */ (0, I.jsx)(FK, { name: "rotate-ccw" })
+ children: /* @__PURE__ */ (0, I.jsx)(PK, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), BK(u.current, a);
+ e.stopPropagation(), zK(u.current, a);
},
title: `前进 ${a} 秒`,
"aria-label": `前进 ${a} 秒`,
- children: /* @__PURE__ */ (0, I.jsx)(FK, { name: "rotate-cw" })
+ children: /* @__PURE__ */ (0, I.jsx)(PK, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-open": "",
title: "打开详情",
"aria-label": "打开详情",
- children: /* @__PURE__ */ (0, I.jsx)(FK, { name: "expand" })
+ children: /* @__PURE__ */ (0, I.jsx)(PK, { name: "expand" })
})
]
})
@@ -50118,7 +50143,7 @@ function Dve({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
"data-pending-delete": e.disposal === "trash" ? "" : void 0,
"data-selected": r ? "" : void 0,
onClick: ne,
- onMouseDown: MK,
+ onMouseDown: jK,
children: [
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -50160,15 +50185,15 @@ function Dve({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
"data-media-release": "",
dateTime: e.release_date,
title: e.release_date,
- children: [/* @__PURE__ */ (0, I.jsx)(FK, { name: "calendar" }), e.release_date]
+ children: [/* @__PURE__ */ (0, I.jsx)(PK, { name: "calendar" }), e.release_date]
}) : null, /* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-size": "",
- children: [/* @__PURE__ */ (0, I.jsx)(FK, { name: "hard-drive" }), Number(j) > 0 ? Jn(Number(j)) : "大小未知"]
+ children: [/* @__PURE__ */ (0, I.jsx)(PK, { name: "hard-drive" }), Number(j) > 0 ? Jn(Number(j)) : "大小未知"]
})]
})
]
}),
- t === "next" ? e.why ? /* @__PURE__ */ (0, I.jsx)(Eve, { reason: e.why }) : null : P.length || e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)("div", {
+ t === "next" ? e.why ? /* @__PURE__ */ (0, I.jsx)(jve, { reason: e.why }) : null : P.length || e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-media-tags": "",
children: P.map((t) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -50178,15 +50203,15 @@ function Dve({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
children: o.tagLabel(t)
}, t))
}) : null,
- /* @__PURE__ */ (0, I.jsx)(IK, { item: e })
+ /* @__PURE__ */ (0, I.jsx)(FK, { item: e })
]
})]
})
]
});
}
-function Ove({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {
- let o = (0, F.useRef)(null), s = e.medium === "image" && e.location !== "online", c = String(e.name || ""), l = c.toLowerCase().endsWith(".url") ? "网址快捷方式" : Sve[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";
+function Nve({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {
+ let o = (0, F.useRef)(null), s = e.medium === "image" && e.location !== "online", c = String(e.name || ""), l = c.toLowerCase().endsWith(".url") ? "网址快捷方式" : Dve[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";
return /* @__PURE__ */ (0, I.jsxs)("article", {
ref: o,
"data-media-card": "",
@@ -50198,14 +50223,14 @@ function Ove({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
onClick: (t) => {
o.current && (n || t.shiftKey || t.ctrlKey || t.metaKey ? (t.preventDefault(), i.toggleSelection(e.id, t.shiftKey)) : a(e, o.current));
},
- onMouseDown: MK,
+ onMouseDown: jK,
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-pic": "",
style: { "--card-ratio": "1.7777777777777777" },
children: [
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, I.jsx)(FK, { name: u }), /* @__PURE__ */ (0, I.jsx)("b", { children: l })]
+ children: [/* @__PURE__ */ (0, I.jsx)(PK, { name: u }), /* @__PURE__ */ (0, I.jsx)("b", { children: l })]
}),
s ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-art": "thumb",
@@ -50217,13 +50242,13 @@ function Ove({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
}),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, I.jsx)(FK, { name: "check" })
+ children: /* @__PURE__ */ (0, I.jsx)(PK, { name: "check" })
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, I.jsx)(FK, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, I.jsx)(PK, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]
}),
- n ? null : /* @__PURE__ */ (0, I.jsx)(LK, {
+ n ? null : /* @__PURE__ */ (0, I.jsx)(IK, {
item: e,
actions: i
})
@@ -50234,7 +50259,7 @@ function Ove({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
"data-media-avatar": "",
"data-media-kind-glyph": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(FK, { name: u })
+ children: /* @__PURE__ */ (0, I.jsx)(PK, { name: u })
}), /* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-text": "",
children: [
@@ -50262,29 +50287,29 @@ function Ove({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
]
}),
e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)("div", { "data-media-tags": "" }) : null,
- /* @__PURE__ */ (0, I.jsx)(IK, { item: e })
+ /* @__PURE__ */ (0, I.jsx)(FK, { item: e })
]
})]
})]
});
}
-function kve(e) {
- return e.variant === "resource" ? /* @__PURE__ */ (0, I.jsx)(Ove, { ...e }) : /* @__PURE__ */ (0, I.jsx)(Dve, { ...e });
+function Pve(e) {
+ return e.variant === "resource" ? /* @__PURE__ */ (0, I.jsx)(Nve, { ...e }) : /* @__PURE__ */ (0, I.jsx)(Mve, { ...e });
}
-var VK = (0, F.memo)(kve), Ave = 1100, jve = 340, Mve = 5e3;
-function Nve(e, t, n) {
+var BK = (0, F.memo)(Pve), Fve = 1100, Ive = 340, Lve = 5e3;
+function Rve(e, t, n) {
return new Promise((r) => {
let i = new Image();
n && (i.referrerPolicy = n);
let a = !1, o = (e) => {
a || (a = !0, clearTimeout(c), i.onload = null, i.onerror = null, t.cancels.delete(s), r(e));
- }, s = () => o(!1), c = setTimeout(s, Mve);
+ }, s = () => o(!1), c = setTimeout(s, Lve);
t.cancels.add(s), i.onerror = s, i.onload = () => {
i.naturalWidth ? typeof i.decode == "function" ? i.decode().then(() => o(!0), s) : o(!0) : o(!1);
}, i.src = e;
});
}
-function HK({ load: e, canFlip: t, referrerPolicy: n }) {
+function VK({ load: e, canFlip: t, referrerPolicy: n }) {
let [r, i] = (0, F.useState)([]), [a, o] = (0, F.useState)(0), [s, c] = (0, F.useState)(null), l = (0, F.useRef)({
live: !1,
generation: 0,
@@ -50326,11 +50351,11 @@ function HK({ load: e, canFlip: t, referrerPolicy: n }) {
return;
}
if (!r() || !u.current.canFlip() || a.length < 2) return;
- let s = await Promise.all(a.map((t) => Nve(t, e, n)));
+ let s = await Promise.all(a.map((t) => Rve(t, e, n)));
if (!r() || !u.current.canFlip()) return;
let d = a.filter((e, t) => s[t]);
d.length < 2 || (e.count = d.length, e.at = 0, i(d), o(0), c(null), f(420, () => {
- p(), e.cycle = setInterval(p, Ave);
+ p(), e.cycle = setInterval(p, Fve);
}));
};
return (0, F.useEffect)(() => d, [d]), {
@@ -50339,7 +50364,7 @@ function HK({ load: e, canFlip: t, referrerPolicy: n }) {
leaving: s,
onPointerEnter: () => {
let e = l.current;
- e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(jve, () => {
+ e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(Ive, () => {
e.armed = null, m();
});
},
@@ -50349,8 +50374,8 @@ function HK({ load: e, canFlip: t, referrerPolicy: n }) {
};
}
// src/react/components/mix-card.tsx
-var UK = GV("play");
-function Pve({ src: e }) {
+var HK = qV("play");
+function zve({ src: e }) {
let [t, n] = (0, F.useState)(!1);
return t ? null : /* @__PURE__ */ (0, I.jsx)("img", {
"data-mix-poster": "",
@@ -50363,8 +50388,8 @@ function Pve({ src: e }) {
className: "absolute inset-0 block size-full object-contain"
});
}
-var WK = "relative inline-grid size-9.5 flex-none place-items-center overflow-hidden rounded-full bg-background-secondary-default text-body-2-regular text-text-secondary [&_img]:absolute [&_img]:inset-0 [&_img]:block [&_img]:size-full [&_img]:object-cover";
-function Fve({ faces: e, fallback: t, onOpenEntity: n }) {
+var UK = "relative inline-grid size-9.5 flex-none place-items-center overflow-hidden rounded-full bg-background-secondary-default text-body-2-regular text-text-secondary [&_img]:absolute [&_img]:inset-0 [&_img]:block [&_img]:size-full [&_img]:object-cover";
+function Bve({ faces: e, fallback: t, onOpenEntity: n }) {
return e.length ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-mix-avatars": "",
children: e.slice(0, 5).map((e) => /* @__PURE__ */ (0, I.jsx)("button", {
@@ -50372,18 +50397,18 @@ function Fve({ faces: e, fallback: t, onOpenEntity: n }) {
title: `打开资料页:${e.name}`,
"aria-label": `打开资料页:${e.name}`,
onClick: () => n(e.kind, e.name),
- className: `${WK} cursor-pointer outline-none`,
+ className: `${UK} cursor-pointer outline-none`,
dangerouslySetInnerHTML: { __html: ho(e.name, e, Ya(e.name), e.kind) }
}, `${e.kind}:${e.id}`))
}) : /* @__PURE__ */ (0, I.jsx)("span", {
"data-mix-initial": "",
"aria-hidden": !0,
- className: `${WK} mt-0.5`,
+ className: `${UK} mt-0.5`,
children: t
});
}
-function GK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, onOpenEntity: s, onOpen: c, openLabel: l, menu: u, ratio: d, artwork: f, artworkIdentity: p, relayoutArt: m, faceHtml: h, badge: g, glyph: _, wholeCard: v, ...y }) {
- let b = HK({
+function WK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, onOpenEntity: s, onOpen: c, openLabel: l, menu: u, ratio: d, artwork: f, artworkIdentity: p, relayoutArt: m, faceHtml: h, badge: g, glyph: _, wholeCard: v, ...y }) {
+ let b = VK({
load: i,
canFlip: a
}), x = (0, F.useRef)(b.onPointerLeave);
@@ -50410,11 +50435,11 @@ function GK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
style: d === void 0 ? void 0 : { "--card-ratio": String(d) },
className: "relative z-1 flex aspect-video items-center justify-center overflow-hidden",
children: [
- f?.html ? /* @__PURE__ */ (0, I.jsx)(ZU, {
+ f?.html ? /* @__PURE__ */ (0, I.jsx)($U, {
artwork: f,
identity: p,
relayout: m
- }) : r ? /* @__PURE__ */ (0, I.jsx)(Pve, { src: r }, r) : /* @__PURE__ */ (0, I.jsx)("span", {
+ }) : r ? /* @__PURE__ */ (0, I.jsx)(zve, { src: r }, r) : /* @__PURE__ */ (0, I.jsx)("span", {
className: "text-caption-1-regular tracking-caps text-text-secondary uppercase",
children: "无预览"
}),
@@ -50444,7 +50469,7 @@ function GK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-mix-badge": "",
className: "absolute right-2.25 bottom-2.25 z-6 flex min-h-7 items-center gap-1.5 rounded-2lg px-2.25 py-1 text-caption-1-semibold text-text-white",
- children: [/* @__PURE__ */ (0, I.jsx)(UK, {
+ children: [/* @__PURE__ */ (0, I.jsx)(HK, {
"aria-hidden": !0,
className: "size-(--icon-inline)"
}), g ?? `${n.toLocaleString()} 个视频`]
@@ -50457,8 +50482,8 @@ function GK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
_ ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-mix-glyph": "",
"aria-hidden": !0,
- children: /* @__PURE__ */ (0, I.jsx)(UK, {})
- }) : /* @__PURE__ */ (0, I.jsx)(Fve, {
+ children: /* @__PURE__ */ (0, I.jsx)(HK, {})
+ }) : /* @__PURE__ */ (0, I.jsx)(Bve, {
faces: o,
fallback: Qn(e),
onOpenEntity: s
@@ -50481,7 +50506,7 @@ function GK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
});
}
// src/react/video-wall/folia/blockReflows.ts
-var Ive = [
+var Vve = [
[
[
{
@@ -54042,7 +54067,7 @@ var Ive = [
}
]
]
-], KK = [
+], GK = [
[
{
x: 0,
@@ -54339,89 +54364,89 @@ var Ive = [
rows: 2
}
]
-], qK = (e) => e.map((e) => ({
+], KK = (e) => e.map((e) => ({
...e,
x: 12 - e.x - e.cols
-})), JK = (e) => e.map((e) => ({
+})), qK = (e) => e.map((e) => ({
...e,
y: 8 - e.y - e.rows
-})), YK = [
+})), JK = [
(e) => e,
+ KK,
qK,
- JK,
- (e) => qK(JK(e))
-], XK = KK.flatMap((e) => YK.map((t) => t(e))), Lve = Ive.flatMap((e) => YK.map((t) => e.map(t)));
-XK.length;
-var Rve = (e, t) => {
+ (e) => KK(qK(e))
+], YK = GK.flatMap((e) => JK.map((t) => t(e))), Hve = Vve.flatMap((e) => JK.map((t) => e.map(t)));
+YK.length;
+var Uve = (e, t) => {
let n = Math.imul(e, 2654435761) ^ Math.imul(t, 2246822507);
return n = Math.imul(n ^ n >>> 15, 739982445), n ^= n >>> 12, n >>> 0;
-}, ZK = (e, t) => {
- let n = KK.length;
- return ((e + t * 2) % n + n) % n * YK.length + Rve(e, t) % YK.length;
-}, zve = (e, t) => XK[ZK(e, t)], Bve = (e, t, n) => n < 0 || n >= 12 ? null : Lve[ZK(e, t)][n], QK = 103.36, $K = 6.08, eq = 12 * QK, tq = 8 * QK, nq = 12, rq = (e, t) => (e % t + t) % t, Vve = (e, t) => e.x < t.x + t.width && e.x + e.width > t.x && e.y < t.y + t.height && e.y + e.height > t.y;
-function iq(e, t) {
- let n = Math.max(1, Math.ceil(e / nq)), r = t ? 3 : Math.min(3, n);
+}, XK = (e, t) => {
+ let n = GK.length;
+ return ((e + t * 2) % n + n) % n * JK.length + Uve(e, t) % JK.length;
+}, Wve = (e, t) => YK[XK(e, t)], Gve = (e, t, n) => n < 0 || n >= 12 ? null : Hve[XK(e, t)][n], ZK = 103.36, QK = 6.08, $K = 12 * ZK, eq = 8 * ZK, tq = 12, nq = (e, t) => (e % t + t) % t, Kve = (e, t) => e.x < t.x + t.width && e.x + e.width > t.x && e.y < t.y + t.height && e.y + e.height > t.y;
+function rq(e, t) {
+ let n = Math.max(1, Math.ceil(e / tq)), r = t ? 3 : Math.min(3, n);
return {
columns: r,
- width: r * eq,
- height: Math.ceil(n / r) * tq
+ width: r * $K,
+ height: Math.ceil(n / r) * eq
};
}
-function aq(e, t, n) {
- let { x: r, y: i, cols: a, rows: o } = zve(e, t)[n];
+function iq(e, t, n) {
+ let { x: r, y: i, cols: a, rows: o } = Wve(e, t)[n];
return {
- x: e * eq + r * QK,
- y: t * tq + i * QK,
- width: a * QK - $K,
- height: o * QK - $K
+ x: e * $K + r * ZK,
+ y: t * eq + i * ZK,
+ width: a * ZK - QK,
+ height: o * ZK - QK
};
}
-function Hve(e) {
+function qve(e) {
return (!e.medium || e.medium === "video") && !!e.has_cover && !!(e.cover_key || e.code);
}
-function oq(e, t, n) {
+function aq(e, t, n) {
if (!e) return null;
let [r, i, a] = n.split(":").map(Number);
if (![
r,
i,
a
- ].every(Number.isInteger) || a < 0 || a >= nq) return null;
- let o = iq(e, t), s = o.height / tq;
+ ].every(Number.isInteger) || a < 0 || a >= tq) return null;
+ let o = rq(e, t), s = o.height / eq;
if (t && (r < 0 || r >= o.columns || i < 0 || i >= s)) return null;
- let c = t ? r : rq(r, o.columns), l = ((t ? i : rq(i, s)) * o.columns + c) * nq + a;
+ let c = t ? r : nq(r, o.columns), l = ((t ? i : nq(i, s)) * o.columns + c) * tq + a;
return t && l >= e ? null : {
- ...aq(r, i, a),
+ ...iq(r, i, a),
index: l % e,
key: n
};
}
-function Uve(e, t) {
+function Jve(e, t) {
if (t < 0 || t >= e) return null;
- let n = Math.floor(t / nq);
- return oq(e, !0, `${n % 3}:${Math.floor(n / 3)}:${t % nq}`);
+ let n = Math.floor(t / tq);
+ return aq(e, !0, `${n % 3}:${Math.floor(n / 3)}:${t % tq}`);
}
-function sq(e, t, n) {
- let [r, i, a] = n.key.split(":").map(Number), o = Bve(r, i, a);
+function oq(e, t, n) {
+ let [r, i, a] = n.key.split(":").map(Number), o = Gve(r, i, a);
return new Map((o || []).map((e, t) => [`${r}:${i}:${t}`, {
- x: r * eq + e.x * QK,
- y: i * tq + e.y * QK,
- width: e.cols * QK - $K,
- height: e.rows * QK - $K
+ x: r * $K + e.x * ZK,
+ y: i * eq + e.y * ZK,
+ width: e.cols * ZK - QK,
+ height: e.rows * ZK - QK
}]));
}
-function Wve(e) {
+function Yve(e) {
let t = 0, n = 0;
for (let r = Math.max(0, e - 36); r < e; r += 1) {
- let e = Math.floor(r / nq), i = aq(e % 3, Math.floor(e / 3), r % nq);
+ let e = Math.floor(r / tq), i = iq(e % 3, Math.floor(e / 3), r % tq);
t = Math.max(t, i.x + i.width), n = Math.max(n, i.y + i.height);
}
return {
- width: e >= 36 ? 3 * eq - $K : t,
+ width: e >= 36 ? 3 * $K - QK : t,
height: n
};
}
-function Gve(e, t, n, r) {
+function Xve(e, t, n, r) {
if (!r) return e;
let i = (t, n, r) => Math.min(16, Math.max(Math.min(16, r - n * e.scale - 16), t));
return {
@@ -54430,22 +54455,22 @@ function Gve(e, t, n, r) {
y: i(e.y, n.height, t.height)
};
}
-function Kve(e, t, n, r) {
+function Zve(e, t, n, r) {
if (!e || !r.width || !r.height) return [];
let i = 180 / n.scale, a = {
x: -n.x / n.scale - i,
y: -n.y / n.scale - i,
width: r.width / n.scale + i * 2,
height: r.height / n.scale + i * 2
- }, o = iq(e, t), s = o.height / tq, c = [];
- for (let n = Math.floor(a.y / tq); n <= Math.floor((a.y + a.height) / tq); n += 1) for (let r = Math.floor(a.x / eq); r <= Math.floor((a.x + a.width) / eq); r += 1) {
+ }, o = rq(e, t), s = o.height / eq, c = [];
+ for (let n = Math.floor(a.y / eq); n <= Math.floor((a.y + a.height) / eq); n += 1) for (let r = Math.floor(a.x / $K); r <= Math.floor((a.x + a.width) / $K); r += 1) {
if (t && (r < 0 || r >= o.columns || n < 0 || n >= s)) continue;
- let i = t ? r : rq(r, o.columns), l = t ? n : rq(n, s);
- for (let s = 0; s < nq; s += 1) {
- let u = (l * o.columns + i) * nq + s;
+ let i = t ? r : nq(r, o.columns), l = t ? n : nq(n, s);
+ for (let s = 0; s < tq; s += 1) {
+ let u = (l * o.columns + i) * tq + s;
if (t && u >= e) continue;
- let d = aq(r, n, s);
- Vve(d, a) && c.push({
+ let d = iq(r, n, s);
+ Kve(d, a) && c.push({
...d,
index: u % e,
key: `${r}:${n}:${s}`
@@ -54454,7 +54479,7 @@ function Kve(e, t, n, r) {
}
return c;
}
-var qve = class {
+var Qve = class {
positions = /* @__PURE__ */ new Map();
used = /* @__PURE__ */ new Set();
cursor = 0;
@@ -54466,7 +54491,7 @@ var qve = class {
this.cursor = e;
}
tile(e, t) {
- let n = this.positions.get(e), r = n === void 0 ? null : oq(t, !1, e);
+ let n = this.positions.get(e), r = n === void 0 ? null : aq(t, !1, e);
return r ? {
...r,
index: n
@@ -54496,7 +54521,7 @@ var qve = class {
let e = 0;
for (let t of this.positions.keys()) e = Math.max(e, Number(t.split(":")[0]));
return {
- x: (e + 2) * eq,
+ x: (e + 2) * $K,
y: 0
};
}
@@ -54509,10 +54534,10 @@ var qve = class {
c < i && (r = s, i = c);
}
if (r) return r;
- let a = this.fresh(), o = `${Math.round(a.x / eq)}:0:0`;
+ let a = this.fresh(), o = `${Math.round(a.x / $K)}:0:0`;
return this.positions.set(o, t), this.used.add(t), this.tile(o, e);
}
-}, cq = [
+}, sq = [
"q",
"performer",
"series",
@@ -54527,16 +54552,16 @@ var qve = class {
"dur_max",
"region"
];
-function Jve(e = {}) {
- return cq.some((t) => !!e[t]);
+function $ve(e = {}) {
+ return sq.some((t) => !!e[t]);
}
// src/react/video-wall/use-wall-camera.ts
-var lq = {
+var cq = {
x: 16,
y: 16,
scale: 1
};
-function Yve(e, t, n = lq, r = !1) {
+function eye(e, t, n = cq, r = !1) {
let i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)({
width: 0,
height: 0
@@ -54556,7 +54581,7 @@ function Yve(e, t, n = lq, r = !1) {
let f = (0, F.useRef)(null), p = (0, F.useRef)(null), m = (0, F.useRef)(!1), h = (0, F.useRef)(null), g = (0, F.useCallback)(() => {
p.current?.stop(), p.current = null, f.current !== null && cancelAnimationFrame(f.current), f.current = null;
}, []), _ = (0, F.useCallback)((e, t = !1, n = !1) => {
- let { count: r, finite: c, focused: f } = d.current, p = Gve(e, o.current, Wve(r), c && !f && !n);
+ let { count: r, finite: c, focused: f } = d.current, p = Xve(e, o.current, Yve(r), c && !f && !n);
s.current = p;
let m = window.devicePixelRatio || 1;
a.current && (a.current.style.transform = `translate3d(${Math.round(p.x * m) / m}px, ${Math.round(p.y * m) / m}px, 0) scale(${p.scale})`), i.current && (i.current.dataset.cameraX = String(p.x), i.current.dataset.cameraY = String(p.y));
@@ -54627,7 +54652,7 @@ function Yve(e, t, n = lq, 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 = bS(0, 1, {
+ !t || v() ? _(a, !0, n) : p.current = CS(0, 1, {
duration: .42,
ease: [
.22,
@@ -54656,7 +54681,7 @@ function Yve(e, t, n = lq, r = !1) {
},
snapshot: () => ({ ...s.current }),
reset: () => {
- g(), _({ ...lq }, !0);
+ g(), _({ ...cq }, !0);
},
pan: (e, t) => {
g(), _({
@@ -54717,16 +54742,16 @@ function Yve(e, t, n = lq, r = !1) {
};
}
// src/react/video-wall/wall-motion.ts
-var Xve = {
+var tye = {
type: "spring",
stiffness: 300,
damping: 34
-}, Zve = {
+}, nye = {
delay: .14,
duration: .24
};
// src/react/video-wall/use-wall-playback.ts
-function Qve(e, t, n) {
+function rye(e, t, n) {
let [r, i] = (0, F.useState)({
paused: !0,
time: 0,
@@ -54767,15 +54792,15 @@ function Qve(e, t, n) {
};
}
// src/react/video-wall/wall-controls.tsx
-function $ve({ 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 = lS(), x = Qve(t, n, v), S = x.duration || Number(e.duration) || 0, C = r || i, w = !t || x.paused, T = async () => {
+function iye({ 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 = fS(), x = rye(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(yn(e));
}
};
- return /* @__PURE__ */ (0, I.jsxs)(xS.div, {
+ return /* @__PURE__ */ (0, I.jsxs)(wS.div, {
"data-wall-focus-actions": "",
initial: !b && {
opacity: 0,
@@ -54785,7 +54810,7 @@ function $ve({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
opacity: 1,
transform: "translateY(0px)"
},
- transition: b ? { duration: 0 } : Zve,
+ transition: b ? { duration: 0 } : nye,
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-wall-control-row": "",
children: [
@@ -54793,7 +54818,7 @@ function $ve({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
type: "button",
"data-wall-play": "",
"data-wall-pause": w ? void 0 : "",
- ...qV(C),
+ ...YV(C),
"aria-label": r ? "正在打开" : i ? "正在读取版本" : w ? "播放" : "暂停",
title: w ? "播放" : "暂停",
onClick: () => void T(),
@@ -54843,7 +54868,7 @@ function $ve({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
- ...qV(d),
+ ...YV(d),
"aria-label": u ? "移出稍后看" : "稍后看",
title: "稍后看",
"aria-pressed": u,
@@ -54889,7 +54914,7 @@ function $ve({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
});
}
// src/react/components/mix-queue.tsx
-function uq({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
+function lq({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
let c = (0, F.useRef)(null), l = (0, F.useCallback)((e) => {
c.current = e, typeof a == "function" ? a(e) : a && (a.current = e);
}, [a]);
@@ -54925,7 +54950,7 @@ function uq({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a,
})]
});
}
-function dq({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
+function uq({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
let s = /* @__PURE__ */ (0, I.jsx)("span", {
"data-mix-item-text": "",
children: a
@@ -54948,7 +54973,7 @@ function dq({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }
}), r]
});
}
-var eye = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {
+var aye = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {
"data-mix-group-label": "",
children: [
e,
@@ -54957,28 +54982,28 @@ var eye = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {
]
});
// src/react/video-wall/wall-queue.tsx
-function tye({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {
+function oye({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-wall-queue": "",
id: "wall-queue",
- children: /* @__PURE__ */ (0, I.jsx)(uq, {
+ children: /* @__PURE__ */ (0, I.jsx)(lq, {
kind: n,
title: n === "parts" ? "分卷" : n === "editions" ? "版本" : "作品",
summary: `${e.length} 个视频`,
onClose: a,
- children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)(dq, {
+ children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)(uq, {
current: e.id === t,
"data-wall-source": e.id,
"aria-label": [
e.edition_label,
- e.part_label ? dF(e.part_label) : "",
+ e.part_label ? gF(e.part_label) : "",
r(e)
].filter(Boolean).join(" · "),
onClick: () => i(e),
- pic: /* @__PURE__ */ (0, I.jsx)(ZU, { artwork: Co(e, "small", !0, "cover") }),
+ pic: /* @__PURE__ */ (0, I.jsx)($U, { artwork: Co(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 ? dF(e.part_label) : "",
+ e.part_label ? gF(e.part_label) : "",
Kn(e.duration)
].filter(Boolean).join(" · ") })]
}, e.id))
@@ -54986,7 +55011,7 @@ function tye({ items: e, activeId: t, kind: n, label: r, choose: i, close: a })
});
}
// src/react/video-wall/wall-route.ts
-function nye(e = `${location.pathname}${location.search}`, t = {}) {
+function sye(e = `${location.pathname}${location.search}`, t = {}) {
let n = new URL(e, location.origin), [r, ...i] = n.pathname.split("/").filter(Boolean), a = {
performers: "performer",
creators: "creator",
@@ -55001,17 +55026,17 @@ function nye(e = `${location.pathname}${location.search}`, t = {}) {
}
return s.set("returnTo", `${n.pathname}${n.search}`), `/wall?${s}`;
}
-function fq(e = `${location.pathname}${location.search}`) {
+function dq(e = `${location.pathname}${location.search}`) {
let t = new URL(e, location.origin).searchParams;
- for (let e of cq) t.delete(e);
+ for (let e of sq) t.delete(e);
return t.delete("tag_match"), `/wall${t.size ? `?${t}` : ""}`;
}
-function pq() {
+function fq() {
let e = new URLSearchParams(zp.navigation.location.search).get("returnTo") || "/";
zp.replace(e.startsWith("/") && !e.startsWith("//") && !e.startsWith("/wall") ? e : "/");
}
// src/react/video-wall/video-wall.tsx
-var mq = /* @__PURE__ */ new Map(), hq = (0, F.memo)(function({ item: e, image: t, big: n = !1, ratio: r = 1 }) {
+var pq = /* @__PURE__ */ new Map(), mq = (0, F.memo)(function({ item: e, image: t, big: n = !1, ratio: r = 1 }) {
let i = Co(!e.is_jav && t === "thumbnail" && e.has_thumb ? {
...e,
has_cover: !1
@@ -55024,7 +55049,7 @@ var mq = /* @__PURE__ */ new Map(), hq = (0, F.memo)(function({ item: e, image:
ref: a,
"data-media-pic": "",
style: { "--card-ratio": String(r) },
- children: /* @__PURE__ */ (0, I.jsx)(ZU, {
+ children: /* @__PURE__ */ (0, I.jsx)($U, {
artwork: i,
relayout: (e) => e.querySelectorAll("img.cover").forEach((e) => {
e.complete && e.naturalWidth && Tl(e, r);
@@ -55032,31 +55057,31 @@ var mq = /* @__PURE__ */ new Map(), hq = (0, F.memo)(function({ item: e, image:
})
});
});
-function rye({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error: a = "", retry: o, emptyHtml: s = "", loadMore: c, actions: l, helpers: u, javImage: d, sessionKey: f }) {
+function cye({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error: a = "", retry: o, emptyHtml: s = "", loadMore: c, actions: l, helpers: u, javImage: d, sessionKey: f }) {
let p = String(e[0]?.id), [m] = (0, F.useState)(() => {
- let e = mq.get(f);
+ let e = pq.get(f);
return e && (i || t || e.pool === p) ? e : void 0;
- }), [h] = (0, F.useState)(() => m?.exploration || new qve()), g = (0, F.useRef)(!1), [_, v] = (0, F.useState)(null), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = (0, F.useRef)(null), C = (0, F.useRef)(null), [w, T] = (0, F.useState)(() => e.find((e) => e.id === m?.selectedId) || null), [E, D] = (0, F.useState)(m?.selectedKey || ""), [O, k] = (0, F.useState)(m?.sourceId || null), [A, j] = (0, F.useState)(!1), M = w?.edition_group ? {
+ }), [h] = (0, F.useState)(() => m?.exploration || new Qve()), g = (0, F.useRef)(!1), [_, v] = (0, F.useState)(null), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = (0, F.useRef)(null), C = (0, F.useRef)(null), [w, T] = (0, F.useState)(() => e.find((e) => e.id === m?.selectedId) || null), [E, D] = (0, F.useState)(m?.selectedKey || ""), [O, k] = (0, F.useState)(m?.sourceId || null), [A, j] = (0, F.useState)(!1), M = w?.edition_group ? {
kind: "editions",
seedId: w.edition_group.seed_id
} : w?.part_group ? {
kind: "parts",
seedId: w.part_group.seed_id
} : null, ee = Nt({
- queryKey: WP(M || {
+ queryKey: YP(M || {
kind: "parts",
seedId: 0
}),
enabled: !!M,
- queryFn: ({ signal: e }) => $P(M, {
+ queryFn: ({ signal: e }) => iF(M, {
tagLabel: u.tagLabel,
mixRelated: async () => []
}, e)
- }), N = M ? ee.data : void 0, te = N?.items.find((e) => e.id === nF(N, O || w?.id || null)) || w, P = Yve(e.length, t && !!e.length, m?.camera || {
+ }), N = M ? ee.data : void 0, te = N?.items.find((e) => e.id === sF(N, O || w?.id || null)) || w, P = eye(e.length, t && !!e.length, m?.camera || {
x: 0,
y: 0,
scale: innerWidth < 640 ? .68 : 1
- }, !!w), ne = lS(), [re, ie] = (0, F.useState)(!!m);
+ }, !!w), ne = fS(), [re, ie] = (0, F.useState)(!!m);
(0, F.useEffect)(() => {
if (!e.length || re || ne) return;
let t = setTimeout(() => ie(!0), 1100);
@@ -55090,17 +55115,17 @@ function rye({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
pool: p
};
let Ae = () => {
- Oe.current && (mq.delete(f), mq.set(f, {
+ Oe.current && (pq.delete(f), pq.set(f, {
...ke.current,
camera: P.snapshot(),
exploration: h
- }), mq.size > 8 && mq.delete(mq.keys().next().value));
+ }), pq.size > 8 && pq.delete(pq.keys().next().value));
};
(0, F.useLayoutEffect)(Ae);
- let je = Kve(i ? 12 : t ? e.length : e.length || n ? 12 : 0, t && !i, P.view.camera, P.view.size), Me = i ? je.map((e) => ({
+ let je = Zve(i ? 12 : t ? e.length : e.length || n ? 12 : 0, t && !i, P.view.camera, P.view.size), Me = i ? je.map((e) => ({
...e,
index: -1
- })) : t ? je : h.assign(je, e.length, n), Ne = w && (t ? oq(e.length, !0, E) : h.tile(E, e.length)), Pe = Ne ? sq(e.length, t, Ne) : /* @__PURE__ */ new Map();
+ })) : t ? je : h.assign(je, e.length, n), Ne = w && (t ? aq(e.length, !0, E) : h.tile(E, e.length)), Pe = Ne ? oq(e.length, t, Ne) : /* @__PURE__ */ new Map();
Ne && !Me.some((e) => e.key === Ne.key) && Me.push(Ne);
let Fe = (e = !1) => {
C.current?.abort(), C.current = null, S.current?.(e), S.current = null, se(null), de(!1);
@@ -55139,7 +55164,7 @@ function rye({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
w?.id !== n.id && Fe(!1), Ee.current = {
key: r.key,
id: n.id
- }, pe(""), le(null), T(n), D(r.key), k(null), j(!1), be(!1), P.reveal(sq(e.length, t, r).get(r.key) || r, i, !0), i || requestAnimationFrame(() => y.current?.querySelector("[data-wall-play]")?.focus({ preventScroll: !0 }));
+ }, pe(""), le(null), T(n), D(r.key), k(null), j(!1), be(!1), P.reveal(oq(e.length, t, r).get(r.key) || r, i, !0), i || requestAnimationFrame(() => y.current?.querySelector("[data-wall-play]")?.focus({ preventScroll: !0 }));
}, Re = () => {
te && y.current && (Ae(), Fe(!0), l.wallDetails?.(te, y.current.querySelector("[data-wall-focus]") || y.current));
}, ze = async (e = te) => {
@@ -55161,7 +55186,7 @@ function rye({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
C.current === t && de(!1);
}
}, Be = () => {
- let e = rF(N || null, oe || 0);
+ let e = cF(N || null, oe || 0);
e && (k(e.id), ze(e));
};
(0, F.useEffect)(() => {
@@ -55183,7 +55208,7 @@ function rye({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
let r = P.snapshot(), i = e.findIndex((e) => e.id === n.id), a = {
x: (P.view.size.width / 2 - r.x) / r.scale,
y: (P.view.size.height / 2 - r.y) / r.scale
- }, o = t ? Uve(e.length, i) : h.nearest(e.length, i, a);
+ }, o = t ? Jve(e.length, i) : h.nearest(e.length, i, a);
o && (Le(n, o), le(n.id));
}, We = async () => {
if (!(r || g.current)) {
@@ -55275,7 +55300,7 @@ function rye({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
/* @__PURE__ */ (0, I.jsx)("div", {
"data-wall-focus-backdrop": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(hq, {
+ children: /* @__PURE__ */ (0, I.jsx)(mq, {
item: w,
image: we,
big: !0
@@ -55283,7 +55308,7 @@ function rye({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
/* @__PURE__ */ (0, I.jsx)("div", {
"data-wall-scene": "",
- children: /* @__PURE__ */ (0, I.jsx)(hq, {
+ children: /* @__PURE__ */ (0, I.jsx)(mq, {
item: w,
image: we,
big: !0
@@ -55312,7 +55337,7 @@ function rye({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
Ye.code ? /* @__PURE__ */ (0, I.jsx)("strong", { children: Je(Ye).startsWith(Ye.code) ? Je(Ye).slice(Ye.code.length).trim() : Je(Ye) }) : null,
/* @__PURE__ */ (0, I.jsx)("span", { children: Ye.performers?.join(" · ") || Ye.creator || "未归属" }),
- N ? /* @__PURE__ */ (0, I.jsx)("small", { children: [Ye.edition_label, Ye.part_label ? dF(Ye.part_label) : ""].filter(Boolean).join(" · ") }) : null
+ N ? /* @__PURE__ */ (0, I.jsx)("small", { children: [Ye.edition_label, Ye.part_label ? gF(Ye.part_label) : ""].filter(Boolean).join(" · ") }) : null
]
}),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -55329,17 +55354,17 @@ function rye({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
fe || M && ee.error && !N ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-wall-play-error": "",
- children: [/* @__PURE__ */ (0, I.jsx)(HV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(WV, {
tone: "error",
children: fe || yn(ee.error)
- }), ee.error && !N ? /* @__PURE__ */ (0, I.jsx)(q, {
+ }), ee.error && !N ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "ghost",
onClick: () => void ee.refetch(),
children: "立即重试"
}) : null]
}) : null,
- /* @__PURE__ */ (0, I.jsx)($ve, {
+ /* @__PURE__ */ (0, I.jsx)(iye, {
item: Ye,
playing: oe,
frame: b,
@@ -55361,7 +55386,7 @@ function rye({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
ended: Be,
error: pe
}),
- A ? /* @__PURE__ */ (0, I.jsx)(tye, {
+ A ? /* @__PURE__ */ (0, I.jsx)(oye, {
items: Ve,
activeId: Ye.id,
kind: N?.kind || "wall",
@@ -55377,7 +55402,7 @@ function rye({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
"data-refreshing": _ !== null || void 0,
hidden: Se,
onKeyDown: (e) => {
- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), e.stopPropagation(), A ? j(!1) : w ? Ie() : ye ? be(!1) : pq());
+ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), e.stopPropagation(), A ? j(!1) : w ? Ie() : ye ? be(!1) : fq());
},
children: [
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -55385,7 +55410,7 @@ function rye({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
"data-wall-back": "",
"aria-label": "退出播放墙",
title: "返回",
- onClick: pq,
+ onClick: fq,
children: /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -55400,10 +55425,10 @@ function rye({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-info" })
- }), /* @__PURE__ */ (0, I.jsx)("p", { children: "当前仅显示筛选结果" })] }), /* @__PURE__ */ (0, I.jsx)(q, {
+ }), /* @__PURE__ */ (0, I.jsx)("p", { children: "当前仅显示筛选结果" })] }), /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "ghost",
- onClick: () => zp.push(fq()),
+ onClick: () => zp.push(dq()),
children: "清除筛选"
})]
}) : null,
@@ -55429,39 +55454,39 @@ function rye({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
defaultValue: new URLSearchParams(location.search).get("q") || ""
})]
}),
- /* @__PURE__ */ (0, I.jsxs)(xG, {
+ /* @__PURE__ */ (0, I.jsxs)(wG, {
"aria-label": "播放墙图片",
value: we,
onChange: Te,
- className: SG,
- children: [/* @__PURE__ */ (0, I.jsx)(jB, {
+ className: TG,
+ children: [/* @__PURE__ */ (0, I.jsx)(NB, {
value: "cover",
- className: CG,
+ className: EG,
children: "封面"
- }), /* @__PURE__ */ (0, I.jsx)(jB, {
+ }), /* @__PURE__ */ (0, I.jsx)(NB, {
value: "thumbnail",
- className: CG,
+ className: EG,
children: "缩略图"
})]
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-wall-tools": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "ghost",
"aria-label": "缩小播放墙",
onClick: () => P.zoom(1 / 1.2),
children: "缩小"
}),
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "ghost",
"aria-label": "放大播放墙",
onClick: () => P.zoom(1.2),
children: "放大"
}),
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "ghost",
onClick: P.reset,
@@ -55512,7 +55537,7 @@ function rye({ 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 = Pe.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)(xS.article, {
+ return /* @__PURE__ */ (0, I.jsx)(wS.article, {
layout: !0,
layoutDependency: `${i.x}:${i.y}:${i.width}:${i.height}`,
"data-wall-tile": t.key,
@@ -55533,7 +55558,7 @@ function rye({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
},
whileHover: ae && !ne && !r && re ? { transform: `translateY(0px) scale(${(i.width + 12.16) / i.width},${(i.height + 12.16) / i.height})` } : void 0,
transition: ne ? { duration: 0 } : {
- layout: Xve,
+ layout: tye,
transform: a ? {
type: "spring",
stiffness: 360,
@@ -55566,7 +55591,7 @@ function rye({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
!r && ["Enter", " "].includes(e.key) && (e.preventDefault(), Le(n, t, !1));
},
children: r ? Xe : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(hq, {
+ /* @__PURE__ */ (0, I.jsx)(mq, {
item: n,
image: we,
ratio: i.width / i.height
@@ -55592,7 +55617,7 @@ function rye({ 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)(xS.span, {
+ /* @__PURE__ */ (0, I.jsx)(wS.span, {
"data-wall-dim": "",
animate: { opacity: w ? .65 : 0 },
transition: { duration: ne ? 0 : .24 }
@@ -55604,10 +55629,10 @@ function rye({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
!i && a ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-wall-error": "",
- children: [/* @__PURE__ */ (0, I.jsx)(HV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(WV, {
tone: "error",
children: a
- }), /* @__PURE__ */ (0, I.jsx)(q, {
+ }), /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "ghost",
onClick: o,
@@ -55631,30 +55656,30 @@ function rye({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}) : null,
!t && (n || e.length > 0) ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-wall-refresh": "",
- children: /* @__PURE__ */ (0, I.jsx)(uK, {
+ children: /* @__PURE__ */ (0, I.jsx)(lK, {
busy: r,
onPress: () => void Ke()
})
}) : null,
n && t && e.length > 0 ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-wall-footer": "",
- children: /* @__PURE__ */ (0, I.jsxs)(q, {
+ children: /* @__PURE__ */ (0, I.jsxs)(J, {
size: "small",
variant: "secondary",
- ...qV(r),
+ ...YV(r),
onClick: () => void We(),
children: [r ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Rs() } }) : null, "载入更多"]
})
}) : null,
me ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-wall-error": "",
- children: [/* @__PURE__ */ (0, I.jsx)(HV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(WV, {
tone: "error",
children: me
- }), /* @__PURE__ */ (0, I.jsx)(q, {
+ }), /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "ghost",
- ...qV(r),
+ ...YV(r),
onClick: () => void We(),
children: "立即重试"
})]
@@ -55677,7 +55702,7 @@ function rye({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
return (0, It.createPortal)(Ze, xe);
}
// src/catalog-onboarding.ts
-var gq = [
+var hq = [
"loc",
"creator",
"performer",
@@ -55696,19 +55721,19 @@ var gq = [
"jav",
"thumb"
];
-function iye(e = typeof location > "u" ? "/" : location.href) {
+function lye(e = typeof location > "u" ? "/" : location.href) {
let t = new URL(e, "http://localhost");
for (let e of [
- ...gq,
+ ...hq,
"q",
"category",
"cat"
]) t.searchParams.delete(e);
return t.searchParams.set("thumb", "0"), t.pathname + (t.search ? t.search : "") + t.hash;
}
-async function aye(e, t) {
+async function uye(e, t) {
let n = new URLSearchParams();
- for (let t of gq) e[t] && n.set(t, e[t]);
+ for (let t of hq) e[t] && n.set(t, e[t]);
let [r, i] = await Promise.all([t("/api/facets?" + n), t("/api/items?" + n + "&limit=5")]), a = [...new Set([
...r.creators || [],
...r.tagperformers || [],
@@ -55719,9 +55744,9 @@ async function aye(e, t) {
return r.set("q", e), r.set("limit", "1"), (await t("/api/items?" + r)).total > 0 ? e : "";
}))).filter(Boolean);
}
-function _q({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
+function gq({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
let a = "<a class=\"geist-button primary\" href=\"/settings/library\">添加媒体</a>", o = "<a class=\"geist-button" + (i ? " primary" : "") + "\" href=\"/subscriptions?tab=add\">添加关注</a>";
- if (t || n) return Hs("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: n ? "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a><a class=\"geist-button\" href=\"/data-cleanup#libraryProcessing\">补全影片资料</a>" : `<a class="geist-button primary" href="${t ? B(iye()) : "/?loc=&thumb=0"}">${t ? "清除筛选" : "查看全部内容"}</a>` });
+ if (t || n) return Hs("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: n ? "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a><a class=\"geist-button\" href=\"/data-cleanup#libraryProcessing\">补全影片资料</a>" : `<a class="geist-button primary" href="${t ? B(lye()) : "/?loc=&thumb=0"}">${t ? "清除筛选" : "查看全部内容"}</a>` });
if (e !== "catalog") {
let t = (i ? {
tags: "标签",
@@ -55739,28 +55764,28 @@ function _q({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable:
return Hs("play", "还没有视频", "添加媒体目录或关注来源,开始建立你的馆藏。", { actions: a + o });
}
// src/react/video-wall/wall-empty.ts
-function oye({ libraryEmpty: e, matches: t, hasMore: n, catalogEmpty: r }) {
- return e ? r || _q() : t ? Hs("image", "这些视频还没有封面", n ? "载入更多作品后继续浏览。" : "为作品补充封面后,可在播放墙中查看。", { actions: "<a class=\"geist-button primary\" href=\"/data-cleanup\">补全封面</a>" + (n ? "<button type=\"button\" class=\"geist-button\" data-wall-load-more>加载更多</button>" : "") }) : Hs("search", "没有符合筛选条件的视频", "清除筛选条件后查看全部视频。", { actions: `<a class="geist-button primary" href="${fq()}">清除筛选</a>` });
+function dye({ libraryEmpty: e, matches: t, hasMore: n, catalogEmpty: r }) {
+ return e ? r || gq() : t ? Hs("image", "这些视频还没有封面", n ? "载入更多作品后继续浏览。" : "为作品补充封面后,可在播放墙中查看。", { actions: "<a class=\"geist-button primary\" href=\"/data-cleanup\">补全封面</a>" + (n ? "<button type=\"button\" class=\"geist-button\" data-wall-load-more>加载更多</button>" : "") }) : Hs("search", "没有符合筛选条件的视频", "清除筛选条件后查看全部视频。", { actions: `<a class="geist-button primary" href="${dq()}">清除筛选</a>` });
}
// src/react/library-processing/processing-actions.tsx
-function vq({ label: e, maintenance: t = !1, children: n }) {
- let r = YH("hover");
+function _q({ label: e, maintenance: t = !1, children: n }) {
+ let r = ZH("hover");
return /* @__PURE__ */ (0, I.jsx)("div", {
ref: r,
role: "group",
"aria-label": e,
"data-processing-maintenance": t || void 0,
- className: jL("flex flex-col gap-1", t && "mt-2 rounded-lg bg-background-secondary-default p-1 pt-3"),
+ className: NL("flex flex-col gap-1", t && "mt-2 rounded-lg bg-background-secondary-default p-1 pt-3"),
children: n
});
}
-function yq({ option: e, metadataOnly: t, onRun: n }) {
+function vq({ option: e, metadataOnly: t, onRun: n }) {
let r = t && e.command.stage === "previews", i = r || e.disabled;
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
disabled: i,
title: r ? "请先在媒体库设置中开启视频预览生成" : void 0,
- className: jL(dH, i ? "cursor-not-allowed opacity-50" : fH, "text-body-2-medium"),
+ className: NL(pH, i ? "cursor-not-allowed opacity-50" : mH, "text-body-2-medium"),
onClick: () => n(e.command),
children: /* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex min-w-0 flex-col gap-1",
@@ -55771,12 +55796,12 @@ function yq({ option: e, metadataOnly: t, onRun: n }) {
})
});
}
-function sye({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
+function fye({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
let [a, o] = (0, F.useState)(t), [s, c] = (0, F.useState)(), [l, u] = (0, F.useState)("");
(0, F.useEffect)(() => {
let t = new AbortController(), r, i = async (a) => {
try {
- let o = await wge(e, t.signal, a);
+ let o = await Ege(e, t.signal, a);
if (!o.traffic) throw Error("服务端未提供流量预估");
if (t.signal.aborted) return;
c(o.traffic), n.confirmButton.disabled = !1, o.traffic.inventory?.token && (r = setTimeout(() => {
@@ -55801,7 +55826,7 @@ function sye({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
}),
/* @__PURE__ */ (0, I.jsx)("div", {
className: "flex justify-center",
- children: /* @__PURE__ */ (0, I.jsx)(nU, {
+ children: /* @__PURE__ */ (0, I.jsx)(iU, {
value: a,
busy: i,
onChange: (e) => {
@@ -55809,7 +55834,7 @@ function sye({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
}
})
}),
- s ? /* @__PURE__ */ (0, I.jsx)(EU, {
+ s ? /* @__PURE__ */ (0, I.jsx)(OU, {
traffic: s,
initial: !0
}) : null,
@@ -55821,7 +55846,7 @@ function sye({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
]
});
}
-function bq({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "standard", pendingCount: i = 0, onRun: a }) {
+function yq({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "standard", pendingCount: i = 0, onRun: a }) {
let o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(null), u = (0, F.useRef)(r);
(0, F.useEffect)(() => () => s.current?.close(), []);
let [d, f] = (0, F.useState)(!1), p = {
@@ -55900,7 +55925,7 @@ function bq({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "stand
});
};
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- c ? (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(sye, {
+ c ? (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(fye, {
command: c.command,
dialog: c.dialog,
speed: r,
@@ -55909,11 +55934,11 @@ function bq({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "stand
u.current = e;
}
}), c.host) : null,
- c ? (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(KH, {
+ c ? (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(JH, {
href: "/settings/library",
size: "small",
variant: "primary",
- trailingIcon: _V,
+ trailingIcon: yV,
disabled: e,
onClick: (e) => {
c.dialog.confirmButton.getAttribute("aria-busy") === "true" ? e.preventDefault() : c.dialog.close();
@@ -55924,44 +55949,44 @@ function bq({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "stand
"data-button-group": !0,
"data-split-button": !0,
"data-variant": "primary",
- children: [/* @__PURE__ */ (0, I.jsx)(q, {
- ...qV(e),
+ children: [/* @__PURE__ */ (0, I.jsx)(J, {
+ ...YV(e),
onClick: () => g(p.command),
children: p.label
- }), /* @__PURE__ */ (0, I.jsx)(q, {
+ }), /* @__PURE__ */ (0, I.jsx)(J, {
ref: o,
iconOnly: !0,
- leadingIcon: gV,
+ leadingIcon: vV,
"aria-label": "更多同步方式",
"aria-haspopup": "dialog",
"aria-expanded": d,
- ...qV(e),
+ ...YV(e),
onClick: () => {
e || f(!d);
}
})]
}),
- /* @__PURE__ */ (0, I.jsx)(uB, {
+ /* @__PURE__ */ (0, I.jsx)(fB, {
triggerRef: o,
isOpen: d,
onOpenChange: f,
placement: "bottom end",
offset: 4,
- className: uH,
- children: /* @__PURE__ */ (0, I.jsxs)(CB, {
+ className: fH,
+ children: /* @__PURE__ */ (0, I.jsxs)(TB, {
"aria-label": "同步方式",
className: "flex w-80 flex-col gap-1 outline-none",
- children: [t ? /* @__PURE__ */ (0, I.jsxs)(vq, {
+ children: [t ? /* @__PURE__ */ (0, I.jsxs)(_q, {
label: "日常同步",
children: [/* @__PURE__ */ (0, I.jsx)("p", {
className: "px-2 py-1 text-caption-1-medium text-text-secondary",
children: "日常同步"
- }), m.map((e) => /* @__PURE__ */ (0, I.jsx)(yq, {
+ }), m.map((e) => /* @__PURE__ */ (0, I.jsx)(vq, {
option: e,
metadataOnly: n,
onRun: g
}, e.label))]
- }) : null, /* @__PURE__ */ (0, I.jsxs)(vq, {
+ }) : null, /* @__PURE__ */ (0, I.jsxs)(_q, {
label: t ? "全库维护" : "补全方式",
maintenance: t,
children: [t ? /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -55973,7 +55998,7 @@ function bq({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "stand
className: "text-caption-1-regular text-text-secondary",
children: "检查全部文件,复用已有资料和预览"
})]
- }) : null, h.map((e) => /* @__PURE__ */ (0, I.jsx)(yq, {
+ }) : null, h.map((e) => /* @__PURE__ */ (0, I.jsx)(vq, {
option: e,
metadataOnly: n,
onRun: g
@@ -55984,48 +56009,48 @@ function bq({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "stand
] });
}
// src/react/library-processing/library-completion.tsx
-function xq(e, t) {
+function bq(e, t) {
return [...new Set(e.filter((e) => (!e.medium || e.medium === "video") && (!/\.(strm|iso)$/i.test(e.name || "") || !!e.code) && !e.disposal && e.location !== "online" && (e.location === "local" || !!e.code) && !Co(e, "small", !1, t).html).map((e) => e.id))];
}
-function Sq({ assetIds: e, onComplete: t, className: n = "mb-4" }) {
- return e.length ? /* @__PURE__ */ (0, I.jsx)(cye, {
+function xq({ assetIds: e, onComplete: t, className: n = "mb-4" }) {
+ return e.length ? /* @__PURE__ */ (0, I.jsx)(pye, {
assetIds: e,
onComplete: t,
className: n
}) : null;
}
-function cye({ assetIds: e, onComplete: t, className: n }) {
+function pye({ assetIds: e, onComplete: t, className: n }) {
let r = Nt({
- queryKey: AH,
- queryFn: ({ signal: e }) => RH(e),
- refetchInterval: (e) => VH(e.state.data, !0)
+ queryKey: MH,
+ queryFn: ({ signal: e }) => BH(e),
+ refetchInterval: (e) => UH(e.state.data, !0)
}), [i, a] = (0, F.useState)(null), [o, s] = (0, F.useState)(""), c = (0, F.useRef)(null), l = Pt({
- mutationFn: (t) => H(kH, {
+ mutationFn: (t) => H(jH, {
...t,
asset_ids: e
}),
onSuccess: (e) => {
- a(e.job_id || null), U.setQueryData(AH, e), U.invalidateQueries({ queryKey: AH });
+ a(e.job_id || null), U.setQueryData(MH, e), U.invalidateQueries({ queryKey: MH });
}
}), u = r.data;
(0, F.useEffect)(() => {
- u && i && u.job_id === i && !NH(u) && c.current !== i && (c.current = i, u.status === "complete" && s(`补全完成:取得 ${u.covers || 0} 张封面,生成 ${u.previews || 0} 部视频预览。`), U.invalidateQueries({ queryKey: ["catalog-grid"] }), t?.());
+ u && i && u.job_id === i && !FH(u) && c.current !== i && (c.current = i, u.status === "complete" && s(`补全完成:取得 ${u.covers || 0} 张封面,生成 ${u.previews || 0} 部视频预览。`), U.invalidateQueries({ queryKey: ["catalog-grid"] }), t?.());
}, [
u,
i,
t
]);
- let d = l.isPending || NH(u), f = l.error ? sr(l.error) : r.error ? BH : i && u?.job_id === i && u.status === "failed" ? u.error || "补全未完成" : "", p = f || (l.isPending ? "正在启动补全…" : o || `这批影片中有 ${e.length.toLocaleString()} 部暂无预览,${NH(u) ? "当前任务结束后可单独补全。" : "可补全资料与图片。"}`);
+ let d = l.isPending || FH(u), f = l.error ? sr(l.error) : r.error ? HH : i && u?.job_id === i && u.status === "failed" ? u.error || "补全未完成" : "", p = f || (l.isPending ? "正在启动补全…" : o || `这批影片中有 ${e.length.toLocaleString()} 部暂无预览,${FH(u) ? "当前任务结束后可单独补全。" : "可补全资料与图片。"}`);
return /* @__PURE__ */ (0, I.jsx)("section", {
"aria-label": "补全预览",
"aria-live": "polite",
"data-library-completion": "",
- className: jL("@container", n),
- children: /* @__PURE__ */ (0, I.jsxs)(HV, {
+ className: NL("@container", n),
+ children: /* @__PURE__ */ (0, I.jsxs)(WV, {
tone: f ? "warning" : "neutral",
action: /* @__PURE__ */ (0, I.jsx)("div", {
className: "flex flex-wrap items-center gap-2",
- children: /* @__PURE__ */ (0, I.jsx)(bq, {
+ children: /* @__PURE__ */ (0, I.jsx)(yq, {
busy: d,
metadataOnly: u?.metadata_only,
onRun: (e) => {
@@ -56036,10 +56061,10 @@ function cye({ assetIds: e, onComplete: t, className: n }) {
children: [
p,
" ",
- /* @__PURE__ */ (0, I.jsx)(KH, {
+ /* @__PURE__ */ (0, I.jsx)(JH, {
href: "/data-cleanup#libraryProcessing",
size: "small",
- trailingIcon: _V,
+ trailingIcon: yV,
children: f ? "打开扫描与采集" : "查看处理详情"
})
]
@@ -56047,31 +56072,31 @@ function cye({ assetIds: e, onComplete: t, className: n }) {
});
}
// node_modules/@tanstack/react-table/dist/FlexRender.js
-function lye(e) {
- return uye(e) || typeof e == "function" || dye(e);
+function mye(e) {
+ return hye(e) || typeof e == "function" || gye(e);
}
-function uye(e) {
+function hye(e) {
return typeof e == "function" && (() => {
let t = Object.getPrototypeOf(e);
return t.prototype && t.prototype.isReactComponent;
})();
}
-function dye(e) {
+function gye(e) {
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
}
-function Cq(e, t) {
- return e == null ? null : lye(e) ? /* @__PURE__ */ F.createElement(e, t) : e;
+function Sq(e, t) {
+ return e == null ? null : mye(e) ? /* @__PURE__ */ F.createElement(e, t) : e;
}
-function fye(e) {
+function _ye(e) {
if ("cell" in e && e.cell) {
let t = e.cell, n = t.column.columnDef, r = t, i = n;
- return r.getIsAggregated?.() ? Cq(i.aggregatedCell ?? n.cell, t.getContext()) : r.getIsPlaceholder?.() ? null : Cq(n.cell, t.getContext());
+ return r.getIsAggregated?.() ? Sq(i.aggregatedCell ?? n.cell, t.getContext()) : r.getIsPlaceholder?.() ? null : Sq(n.cell, t.getContext());
}
- return "header" in e && e.header ? Cq(e.header.column.columnDef.header, e.header.getContext()) : "footer" in e && e.footer ? Cq(e.footer.column.columnDef.footer, e.footer.getContext()) : null;
+ return "header" in e && e.header ? Sq(e.header.column.columnDef.header, e.header.getContext()) : "footer" in e && e.footer ? Sq(e.footer.column.columnDef.footer, e.footer.getContext()) : null;
}
// node_modules/@tanstack/store/dist/alien.js
/* @__NO_SIDE_EFFECTS__ */
-function pye({ update: e, notify: t, unwatched: n }) {
+function vye({ update: e, notify: t, unwatched: n }) {
return {
link: r,
unlink: i,
@@ -56188,7 +56213,7 @@ function pye({ update: e, notify: t, unwatched: n }) {
}
}
// node_modules/@tanstack/store/dist/atom.js
-function mye(e, t, n) {
+function yye(e, t, n) {
let r = typeof e == "object", i = r ? e : void 0;
return {
next: (r ? e.next : e)?.bind(i),
@@ -56196,38 +56221,38 @@ function mye(e, t, n) {
complete: (r ? e.complete : n)?.bind(i)
};
}
-var wq = [], Tq = 0, { link: Eq, unlink: hye, propagate: gye, checkDirty: Dq, shallowPropagate: Oq } = /* @__PURE__ */ pye({
+var Cq = [], wq = 0, { link: Tq, unlink: bye, propagate: xye, checkDirty: Eq, shallowPropagate: Dq } = /* @__PURE__ */ vye({
update(e) {
return e._update();
},
notify(e) {
- wq[Aq++] = e, e.flags &= -3;
+ Cq[kq++] = e, e.flags &= -3;
},
unwatched(e) {
- e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = 17, Nq(e));
+ e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = 17, Mq(e));
}
-}), kq = 0, Aq = 0, jq, Mq = 0;
-function _ye(e) {
+}), Oq = 0, kq = 0, Aq, jq = 0;
+function Sye(e) {
try {
- ++Mq, e();
+ ++jq, e();
} finally {
- --Mq || Pq();
+ --jq || Nq();
}
}
-function Nq(e) {
+function Mq(e) {
let t = e.depsTail, n = t === void 0 ? e.deps : t.nextDep;
- for (; n !== void 0;) n = hye(n, e);
+ for (; n !== void 0;) n = bye(n, e);
}
-function Pq() {
- if (!(Mq > 0)) {
- for (; kq < Aq;) {
- let e = wq[kq];
- wq[kq++] = void 0, e.notify();
+function Nq() {
+ if (!(jq > 0)) {
+ for (; Oq < kq;) {
+ let e = Cq[Oq];
+ Cq[Oq++] = void 0, e.notify();
}
- kq = 0, Aq = 0;
+ Oq = 0, kq = 0;
}
}
-function vye(e, t) {
+function Cye(e, t) {
let n = typeof e == "function", r = e, i = {
_snapshot: n ? void 0 : e,
subs: void 0,
@@ -56236,53 +56261,53 @@ function vye(e, t) {
depsTail: void 0,
flags: +!n,
get() {
- return jq !== void 0 && Eq(i, jq, Tq), i._snapshot;
+ return Aq !== void 0 && Tq(i, Aq, wq), i._snapshot;
},
subscribe(e) {
- let t = mye(e), n = { current: !1 }, r = yye(() => {
- i.get(), n.current ? (jq = void 0, t.next?.(i._snapshot)) : n.current = !0;
+ let t = yye(e), n = { current: !1 }, r = wye(() => {
+ i.get(), n.current ? (Aq = void 0, t.next?.(i._snapshot)) : n.current = !0;
});
return { unsubscribe: () => {
r.stop();
} };
},
_update(e) {
- let a = jq, o = t?.compare ?? Object.is;
- if (n) jq = i, ++Tq, i.depsTail = void 0;
+ let a = Aq, o = t?.compare ?? Object.is;
+ if (n) Aq = i, ++wq, i.depsTail = void 0;
else if (e === void 0) return !1;
n && (i.flags = 5);
try {
let t = i._snapshot, a = typeof e == "function" ? e(t) : e === void 0 && n ? r(t) : e;
return t === void 0 || !o(t, a) ? (i._snapshot = a, !0) : !1;
} finally {
- jq = a, n && (i.flags &= -5), Nq(i);
+ Aq = a, n && (i.flags &= -5), Mq(i);
}
}
};
return n ? (i.flags = 17, i.get = function() {
let e = i.flags;
- if (e & 16 || e & 32 && Dq(i.deps, i)) {
+ if (e & 16 || e & 32 && Eq(i.deps, i)) {
if (i._update()) {
let e = i.subs;
- e !== void 0 && Oq(e);
+ e !== void 0 && Dq(e);
}
} else e & 32 && (i.flags = e & -33);
- return jq !== void 0 && Eq(i, jq, Tq), i._snapshot;
+ return Aq !== void 0 && Tq(i, Aq, wq), i._snapshot;
}) : i.set = function(e) {
if (i._update(e)) {
let e = i.subs;
- e !== void 0 && (gye(e), Oq(e), Pq());
+ e !== void 0 && (xye(e), Dq(e), Nq());
}
}, i;
}
-function yye(e) {
+function wye(e) {
let t = () => {
- let t = jq;
- jq = n, ++Tq, n.depsTail = void 0, n.flags = 6;
+ let t = Aq;
+ Aq = n, ++wq, n.depsTail = void 0, n.flags = 6;
try {
return e();
} finally {
- jq = t, n.flags &= -5, Nq(n);
+ Aq = t, n.flags &= -5, Mq(n);
}
}, n = {
deps: void 0,
@@ -56292,16 +56317,16 @@ function yye(e) {
flags: 6,
notify() {
let e = this.flags;
- e & 16 || e & 32 && Dq(this.deps, this) ? t() : this.flags = 2;
+ e & 16 || e & 32 && Eq(this.deps, this) ? t() : this.flags = 2;
},
stop() {
- this.flags = 0, this.depsTail = void 0, Nq(this);
+ this.flags = 0, this.depsTail = void 0, Mq(this);
}
};
return t(), n;
}
// node_modules/@tanstack/store/dist/shallow.js
-function Fq(e, t) {
+function Pq(e, t) {
if (Object.is(e, t)) return !0;
if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
if (e instanceof Map && t instanceof Map) {
@@ -56315,17 +56340,17 @@ function Fq(e, t) {
return !0;
}
if (e instanceof Date && t instanceof Date) return e.getTime() === t.getTime();
- let n = Iq(e);
- if (n.length !== Iq(t).length) return !1;
+ let n = Fq(e);
+ if (n.length !== Fq(t).length) return !1;
for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !Object.is(e[n[r]], t[n[r]])) return !1;
return !0;
}
-function Iq(e) {
+function Fq(e) {
return Object.keys(e).concat(Object.getOwnPropertySymbols(e));
}
// node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
-var bye = /* @__PURE__ */ o(((e) => {
- var t = A(), n = Sw();
+var Tye = /* @__PURE__ */ o(((e) => {
+ var t = A(), n = Tw();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
}
@@ -56369,33 +56394,33 @@ var bye = /* @__PURE__ */ o(((e) => {
f.hasValue = !0, f.value = p;
}, [p]), l(p), p;
};
-})), Lq = /* @__PURE__ */ o(((e, t) => {
- t.exports = bye();
-})), xye = Lq();
-function Sye(e, t) {
+})), Iq = /* @__PURE__ */ o(((e, t) => {
+ t.exports = Tye();
+})), Eye = Iq();
+function Dye(e, t) {
return e === t;
}
-function Rq(e, t = (e) => e, n) {
- let r = n?.compare ?? Sye, i = (0, F.useCallback)((t) => {
+function Lq(e, t = (e) => e, n) {
+ let r = n?.compare ?? Dye, i = (0, F.useCallback)((t) => {
let { unsubscribe: n } = e.subscribe(t);
return n;
}, [e]), a = (0, F.useCallback)(() => e.get(), [e]);
- return (0, xye.useSyncExternalStoreWithSelector)(i, a, a, t, r);
+ return (0, Eye.useSyncExternalStoreWithSelector)(i, a, a, t, r);
}
// node_modules/@tanstack/react-table/dist/Subscribe.js
-function Cye(e) {
- let t = Rq(e.source, e.selector, { compare: Fq });
+function Oye(e) {
+ let t = Lq(e.source, e.selector, { compare: Pq });
return typeof e.children == "function" ? e.children(t) : e.children;
}
// node_modules/@tanstack/table-core/dist/core/reactivity/coreReactivityFeature.utils.js
-function wye(e) {
+function kye(e) {
let t = e;
return Object.defineProperty(e, "state", { get() {
return e.get();
} }), "set" in e && (t.setState = e.set.bind(e)), t;
}
// node_modules/@tanstack/table-core/dist/core/reactivity/renderPhaseReactivity.js
-function Tye(e) {
+function Aye(e) {
let { createAtom: t, batch: n } = e, r = t(0);
return {
createOptionsStore: !1,
@@ -56425,7 +56450,7 @@ function Tye(e) {
}
};
}
-function Eye(e, t = Object.is) {
+function jye(e, t = Object.is) {
let n = !1, r;
return {
get: e.get,
@@ -56438,28 +56463,28 @@ function Eye(e, t = Object.is) {
};
}
// node_modules/@tanstack/react-table/dist/reactivity.js
-function Dye() {
- return Tye({
- createAtom: vye,
- batch: _ye
+function Mye() {
+ return Aye({
+ createAtom: Cye,
+ batch: Sye
});
}
// node_modules/@tanstack/table-core/dist/utils.js
-function zq(e, t) {
+function Rq(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function Bq(e) {
- if (Array.isArray(e)) return e.map(Bq);
+function zq(e) {
+ if (Array.isArray(e)) return e.map(zq);
if (e && typeof e == "object") {
let t = Object.getPrototypeOf(e);
if (t !== Object.prototype && t !== null) return e;
- let n = t === null ? Hq() : {}, r = Object.keys(e);
+ let n = t === null ? Vq() : {}, r = Object.keys(e);
for (let t = 0; t < r.length; t++) {
let i = r[t];
Object.defineProperty(n, i, {
configurable: !0,
enumerable: !0,
- value: Bq(e[i]),
+ value: zq(e[i]),
writable: !0
});
}
@@ -56467,7 +56492,7 @@ function Bq(e) {
}
return e;
}
-function Vq(e, t) {
+function Bq(e, t) {
let n = Object.keys(t), r = e;
for (let e = 0; e < n.length; e++) {
let i = n[e];
@@ -56475,53 +56500,53 @@ function Vq(e, t) {
}
return e;
}
-function Hq() {
+function Vq() {
return Object.create(null);
}
-function Uq(e, t) {
+function Hq(e, t) {
return Object.prototype.hasOwnProperty.call(e, t);
}
-function Wq(e, t) {
+function Uq(e, t) {
return (n) => {
- (t.options.atoms?.[e] ?? t.baseAtoms[e]).set((e) => zq(n, e));
+ (t.options.atoms?.[e] ?? t.baseAtoms[e]).set((e) => Rq(n, e));
};
}
-function Gq(e) {
+function Wq(e) {
if (typeof e != "object" || !e) return !1;
if (Array.isArray(e)) return !0;
let t = Object.getPrototypeOf(e);
return t === Object.prototype || t === null;
}
-function Kq(e) {
+function Gq(e) {
return Reflect.ownKeys(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
}
-var Oye = 3;
-function kye(e, t) {
- return qq(e, t, Oye);
+var Nye = 3;
+function Pye(e, t) {
+ return Kq(e, t, Nye);
}
-function qq(e, t, n) {
+function Kq(e, t, n) {
if (Object.is(e, t)) return !0;
- if (n <= 0 || !Gq(e) || !Gq(t) || (Array.isArray(e) || Array.isArray(t)) && (!Array.isArray(e) || !Array.isArray(t) || e.length !== t.length)) return !1;
- let r = Kq(e), i = Kq(t);
+ if (n <= 0 || !Wq(e) || !Wq(t) || (Array.isArray(e) || Array.isArray(t)) && (!Array.isArray(e) || !Array.isArray(t) || e.length !== t.length)) return !1;
+ let r = Gq(e), i = Gq(t);
if (r.length !== i.length) return !1;
let a = e, o = t;
for (let e = 0; e < r.length; e++) {
let i = r[e];
- if (!Object.prototype.propertyIsEnumerable.call(t, i) || !qq(a[i], o[i], n - 1)) return !1;
+ if (!Object.prototype.propertyIsEnumerable.call(t, i) || !Kq(a[i], o[i], n - 1)) return !1;
}
return !0;
}
-function Jq(e, t, n, r = kye) {
+function qq(e, t, n, r = Pye) {
let i = `on${t.charAt(0).toUpperCase()}${t.slice(1)}Change`, a = e.options[i];
a && a((e) => {
- let t = zq(n, e);
+ let t = Rq(n, e);
return r(e, t) ? e : t;
});
}
-function Aye(e) {
+function Fye(e) {
return e instanceof Function;
}
-function jye(e, t) {
+function Iye(e, t) {
let n = [], r = (e) => {
e.forEach((e) => {
n.push(e);
@@ -56531,7 +56556,7 @@ function jye(e, t) {
};
return r(e), n;
}
-var Mye = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {
+var Lye = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {
let o = [], s;
return (c) => {
i?.();
@@ -56545,23 +56570,23 @@ var Mye = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCo
return n?.(u), u && (o = l, a?.(), s = e(...l ?? []), r?.(s)), s;
};
};
-function Yq(e) {
+function Jq(e) {
let t = !1;
return () => {
t ? e() : t = !0;
};
}
-function Xq({ feature: e, fnName: t, objectId: n, onAfterUpdate: r, table: i, ...a }) {
+function Yq({ feature: e, fnName: t, objectId: n, onAfterUpdate: r, table: i, ...a }) {
let o = { onAfterUpdate: r ? () => {
let { schedule: e, untrack: t } = i._reactivity;
e(() => t(() => r()));
} : void 0 };
- return Mye({
+ return Lye({
...a,
...o
});
}
-function Zq(e, t = "_") {
+function Xq(e, t = "_") {
let [n, r] = e.replace(t, " ").split(" ");
return {
fnKey: r,
@@ -56569,10 +56594,10 @@ function Zq(e, t = "_") {
parentName: n
};
}
-function Qq(e, t, n) {
+function Zq(e, t, n) {
for (let [r, { fn: i, memoDeps: a }] of Object.entries(n)) {
- let { fnKey: n, fnName: o } = Zq(r);
- t[n] = a ? Xq({
+ let { fnKey: n, fnName: o } = Xq(r);
+ t[n] = a ? Yq({
memoDeps: a,
fn: i,
fnName: o,
@@ -56581,15 +56606,15 @@ function Qq(e, t, n) {
}) : i;
}
}
-function $q(e, t, n, r) {
+function Qq(e, t, n, r) {
for (let [i, { fn: a, memoDeps: o }] of Object.entries(r)) {
- let { fnKey: r, fnName: s } = Zq(i);
+ let { fnKey: r, fnName: s } = Xq(i);
if (o) {
let i = `_memo_${r}`;
t[r] = function(...t) {
if (!this[i]) {
let t = this;
- this[i] = Xq({
+ this[i] = Yq({
memoDeps: (e) => o(t, e),
fn: (...e) => a(t, ...e),
fnName: s,
@@ -56605,17 +56630,17 @@ function $q(e, t, n, r) {
};
}
}
-function eJ(e, t, n, ...r) {
+function $q(e, t, n, ...r) {
return e[t]?.(...r) ?? n(e, ...r);
}
// node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.utils.js
-function Nye(e) {
+function Rye(e) {
return e.row.getValue(e.column.id);
}
-function Pye(e) {
+function zye(e) {
return e.getValue() ?? e.table.options.renderFallbackValue;
}
-function Fye(e) {
+function Bye(e) {
return {
table: e.table,
column: e.column,
@@ -56626,18 +56651,18 @@ function Fye(e) {
};
}
// node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.js
-var Iye = { assignCellPrototype: (e, t) => {
- $q("coreCellsFeature", e, t, {
- cell_getValue: { fn: (e) => Nye(e) },
- cell_renderValue: { fn: (e) => Pye(e) },
+var Vye = { assignCellPrototype: (e, t) => {
+ Qq("coreCellsFeature", e, t, {
+ cell_getValue: { fn: (e) => Rye(e) },
+ cell_renderValue: { fn: (e) => zye(e) },
cell_getContext: {
- fn: (e) => Fye(e),
+ fn: (e) => Bye(e),
memoDeps: (e) => [e]
}
});
} };
// node_modules/@tanstack/table-core/dist/core/columns/constructColumn.js
-function Lye(e) {
+function Hye(e) {
if (!e._columnPrototype) {
e._columnPrototype = { table: e };
let t = Object.values(e._features);
@@ -56645,7 +56670,7 @@ function Lye(e) {
}
return e._columnPrototype;
}
-function Rye(e, t, n, r) {
+function Uye(e, t, n, r) {
let i = {
...e.getDefaultColumnDef(),
...t
@@ -56665,53 +56690,53 @@ function Rye(e, t, n, r) {
} else c = (e) => e[i.accessorKey];
}
if (!s) throw Error();
- let l = Lye(e), u = Object.create(l);
+ let l = Hye(e), u = Object.create(l);
u.accessorFn = c, u.columnDef = i, u.columns = [], u.depth = n, u.id = `${String(s)}`, u.parent = r;
let d = e._columnInstanceInitFns;
for (let e = 0; e < d.length; e++) d[e](u);
return u;
}
// node_modules/@tanstack/table-core/dist/core/featureStubs.js
-function tJ(e) {
+function eJ(e) {
return e.getIsVisible?.() ?? !0;
}
-function zye(e) {
+function Wye(e) {
return e.getVisibleLeafColumns?.() ?? e.getAllLeafColumns();
}
-function nJ(e, t) {
+function tJ(e, t) {
let n = e, r = t;
return n.getOrderColumnsFn?.()(r) ?? n._orderGroupedColumns?.(r) ?? t;
}
-function rJ(e, t, n, r) {
+function nJ(e, t, n, r) {
return e._orderByColumnPinning?.(t, n, r) ?? t;
}
-function iJ(e, t) {
+function rJ(e, t) {
return e._expandRows?.(t) ?? t;
}
-function Bye(e) {
+function Gye(e) {
e.autoResetExpanded?.();
}
-function aJ(e) {
+function iJ(e) {
e.autoResetPageIndex?.();
}
-function Vye(e) {
+function Kye(e) {
e.autoResetSorting?.();
}
-function Hye(e) {
+function qye(e) {
e.autoResetCellSelection?.();
}
// node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.utils.js
-function Uye(e) {
+function Jye(e) {
return [e, ...e.columns.flatMap((e) => e.getFlatColumns())];
}
-function Wye(e) {
+function Yye(e) {
if (e.columns.length) {
let t = e.columns.flatMap((e) => e.getLeafColumns());
- return nJ(e.table, t);
+ return tJ(e.table, t);
}
return [e];
}
-function Gye(e) {
+function Xye(e) {
return {
header: (e) => {
let t = e.header.column.columnDef;
@@ -56722,53 +56747,53 @@ function Gye(e) {
...e.options.defaultColumn
};
}
-function oJ(e, t, n, r = 0) {
+function aJ(e, t, n, r = 0) {
let i = Array(t.length);
for (let a = 0; a < t.length; a++) {
if (!(a in t)) continue;
- let o = t[a], s = Rye(e, o, r, n), c = o;
- s.columns = c.columns ? oJ(e, c.columns, s, r + 1) : [], i[a] = s;
+ let o = t[a], s = Uye(e, o, r, n), c = o;
+ s.columns = c.columns ? aJ(e, c.columns, s, r + 1) : [], i[a] = s;
}
return i;
}
-function Kye(e) {
- return oJ(e, e.options.columns);
+function Zye(e) {
+ return aJ(e, e.options.columns);
}
-function qye(e) {
+function Qye(e) {
return e.getAllColumns().flatMap((e) => e.getFlatColumns());
}
-function Jye(e) {
- let t = Hq(), n = e.getAllFlatColumns();
+function $ye(e) {
+ let t = Vq(), n = e.getAllFlatColumns();
for (let e = 0; e < n.length; e++) {
let r = n[e];
t[r.id] = r;
}
return t;
}
-function Yye(e) {
- return nJ(e, e.getAllColumns().flatMap((e) => e.getLeafColumns()));
+function ebe(e) {
+ return tJ(e, e.getAllColumns().flatMap((e) => e.getLeafColumns()));
}
-function Xye(e) {
- let t = Hq(), n = e.getAllLeafColumns();
+function tbe(e) {
+ let t = Vq(), n = e.getAllLeafColumns();
for (let e = 0; e < n.length; e++) {
let r = n[e];
t[r.id] = r;
}
return t;
}
-function Zye(e, t) {
+function nbe(e, t) {
return e.getAllFlatColumnsById()[t];
}
// node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.js
-var Qye = {
+var rbe = {
assignColumnPrototype: (e, t) => {
- $q("coreColumnsFeature", e, t, {
+ Qq("coreColumnsFeature", e, t, {
column_getFlatColumns: {
- fn: (e) => Uye(e),
+ fn: (e) => Jye(e),
memoDeps: (e) => [e.table.options.columns]
},
column_getLeafColumns: {
- fn: (e) => Wye(e),
+ fn: (e) => Yye(e),
memoDeps: (e) => [
e.table.atoms.columnOrder?.get(),
e.table.atoms.grouping?.get(),
@@ -56779,25 +56804,25 @@ var Qye = {
});
},
constructTableAPIs: (e) => {
- Qq("coreColumnsFeature", e, {
+ Zq("coreColumnsFeature", e, {
table_getDefaultColumnDef: {
- fn: () => Gye(e),
+ fn: () => Xye(e),
memoDeps: () => [e.options.defaultColumn]
},
table_getAllColumns: {
- fn: () => Kye(e),
+ fn: () => Zye(e),
memoDeps: () => [e.options.columns]
},
table_getAllFlatColumns: {
- fn: () => qye(e),
+ fn: () => Qye(e),
memoDeps: () => [e.options.columns]
},
table_getAllFlatColumnsById: {
- fn: () => Jye(e),
+ fn: () => $ye(e),
memoDeps: () => [e.options.columns]
},
table_getAllLeafColumns: {
- fn: () => Yye(e),
+ fn: () => ebe(e),
memoDeps: () => [
e.atoms.columnOrder?.get(),
e.atoms.grouping?.get(),
@@ -56806,15 +56831,15 @@ var Qye = {
]
},
table_getAllLeafColumnsById: {
- fn: () => Xye(e),
+ fn: () => tbe(e),
memoDeps: () => [e.getAllLeafColumns()]
},
- table_getColumn: { fn: (t) => Zye(e, t) }
+ table_getColumn: { fn: (t) => nbe(e, t) }
});
}
};
// node_modules/@tanstack/table-core/dist/core/headers/constructHeader.js
-function $ye(e) {
+function ibe(e) {
if (!e._headerPrototype) {
e._headerPrototype = { table: e };
let t = Object.values(e._features);
@@ -56822,38 +56847,38 @@ function $ye(e) {
}
return e._headerPrototype;
}
-function sJ(e, t, n) {
- let r = $ye(e), i = Object.create(r);
+function oJ(e, t, n) {
+ let r = ibe(e), i = Object.create(r);
i.colSpan = 0, i.column = t, i.depth = n.depth, i.headerGroup = null, i.id = n.id ?? t.id, i.index = n.index, i.isPlaceholder = !!n.isPlaceholder, i.placeholderId = n.placeholderId, i.rowSpan = 0, i.subHeaders = [];
let a = e._headerInstanceInitFns;
for (let e = 0; e < a.length; e++) a[e](i);
return i;
}
// node_modules/@tanstack/table-core/dist/core/headers/buildHeaderGroups.js
-function cJ(e, t = 1) {
+function sJ(e, t = 1) {
let n = t;
for (let r = 0; r < e.length; r++) {
let i = e[r];
- tJ(i) && i.columns.length && (n = Math.max(n, cJ(i.columns, t + 1)));
+ eJ(i) && i.columns.length && (n = Math.max(n, sJ(i.columns, t + 1)));
}
return n;
}
-function ebe(e, t) {
+function abe(e, t) {
return e ? `${e}_${t}` : String(t);
}
-function tbe(e, t, n, r) {
+function obe(e, t, n, r) {
let i = e ?? "";
return t && (i = i ? `${i}_${t}` : String(t)), n && (i = i ? `${i}_${n}` : n), r && (i = i ? `${i}_${r}` : r), i;
}
-function nbe(e, t) {
+function sbe(e, t) {
let n = 0;
for (let r = 0; r < e.length; r++) e[r].column === t && n++;
return n;
}
-function lJ(e, t, n, r, i, a) {
+function cJ(e, t, n, r, i, a) {
let o = {
depth: t,
- id: ebe(r, t),
+ id: abe(r, t),
headers: []
}, s = [];
for (let i = 0; i < e.length; i++) {
@@ -56861,10 +56886,10 @@ function lJ(e, t, n, r, i, a) {
let a = e[i], c = s[s.length - 1], l = a.column.depth === o.depth, u, d = !1;
if (l && a.column.parent ? u = a.column.parent : (u = a.column, d = !0), c && c.column === u) c.subHeaders.push(a);
else {
- let e = sJ(n, u, {
- id: tbe(r, t, u.id, a.id),
+ let e = oJ(n, u, {
+ id: obe(r, t, u.id, a.id),
isPlaceholder: d,
- placeholderId: d ? String(nbe(s, u)) : void 0,
+ placeholderId: d ? String(sbe(s, u)) : void 0,
depth: t,
index: s.length
});
@@ -56873,18 +56898,18 @@ function lJ(e, t, n, r, i, a) {
o.headers.push(a), a.headerGroup = o;
}
for (let e = 0; e < a.length; e++) a[e](o);
- i.push(o), t > 0 && lJ(s, t - 1, n, r, i, a);
+ i.push(o), t > 0 && cJ(s, t - 1, n, r, i, a);
}
-function uJ(e) {
+function lJ(e) {
for (let t = 0; t < e.length; t++) {
let n = e[t];
- if (!tJ(n.column)) continue;
+ if (!eJ(n.column)) continue;
let r = 0;
if (n.subHeaders.length) {
- uJ(n.subHeaders);
+ lJ(n.subHeaders);
for (let e = 0; e < n.subHeaders.length; e++) {
let t = n.subHeaders[e];
- tJ(t.column) && (r += t.colSpan);
+ eJ(t.column) && (r += t.colSpan);
}
} else r = 1;
if (n.colSpan = r, n.isPlaceholder && n.subHeaders.length === 1 && n.subHeaders[0].column === n.column) {
@@ -56894,37 +56919,37 @@ function uJ(e) {
} else n.rowSpan = 1;
}
}
-function rbe(e, t, n, r) {
- let i = cJ(e), a = [], o = n._headerGroupInstanceInitFns, s = Array(t.length);
- for (let e = 0; e < t.length; e++) e in t && (s[e] = sJ(n, t[e], {
+function cbe(e, t, n, r) {
+ let i = sJ(e), a = [], o = n._headerGroupInstanceInitFns, s = Array(t.length);
+ for (let e = 0; e < t.length; e++) e in t && (s[e] = oJ(n, t[e], {
depth: i,
index: e
}));
- return lJ(s, i - 1, n, r, a, o), a.reverse(), uJ(a[0]?.headers ?? []), a;
+ return cJ(s, i - 1, n, r, a, o), a.reverse(), lJ(a[0]?.headers ?? []), a;
}
// node_modules/@tanstack/table-core/dist/core/headers/coreHeadersFeature.utils.js
-function dJ(e, t) {
- for (let n = 0; n < e.subHeaders.length; n++) dJ(e.subHeaders[n], t);
+function uJ(e, t) {
+ for (let n = 0; n < e.subHeaders.length; n++) uJ(e.subHeaders[n], t);
t.push(e);
}
-function ibe(e) {
+function lbe(e) {
let t = [];
- return dJ(e, t), t;
+ return uJ(e, t), t;
}
-function abe(e) {
+function ube(e) {
return {
column: e.column,
header: e,
table: e.column.table
};
}
-function obe(e) {
- return rbe(e.getAllColumns(), rJ(e, zye(e), (e) => e.id), e);
+function dbe(e) {
+ return cbe(e.getAllColumns(), nJ(e, Wye(e), (e) => e.id), e);
}
-function sbe(e) {
+function fbe(e) {
return [...e.getHeaderGroups()].reverse();
}
-function cbe(e) {
+function pbe(e) {
let t = e.getHeaderGroups(), n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e].headers;
@@ -56932,7 +56957,7 @@ function cbe(e) {
}
return n;
}
-function lbe(e) {
+function mbe(e) {
let t = e.getHeaderGroups()[0]?.headers ?? [], n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e].getLeafHeaders();
@@ -56941,23 +56966,23 @@ function lbe(e) {
return n;
}
// node_modules/@tanstack/table-core/dist/core/headers/coreHeadersFeature.js
-var ube = {
+var hbe = {
assignHeaderPrototype: (e, t) => {
- $q("coreHeadersFeature", e, t, {
+ Qq("coreHeadersFeature", e, t, {
header_getLeafHeaders: {
- fn: (e) => ibe(e),
+ fn: (e) => lbe(e),
memoDeps: (e) => [e.column.table.options.columns]
},
header_getContext: {
- fn: (e) => abe(e),
+ fn: (e) => ube(e),
memoDeps: (e) => [e.column.table.options.columns]
}
});
},
constructTableAPIs: (e) => {
- Qq("coreHeadersFeature", e, {
+ Zq("coreHeadersFeature", e, {
table_getHeaderGroups: {
- fn: () => obe(e),
+ fn: () => dbe(e),
memoDeps: () => [
e.options.columns,
e.atoms.columnOrder?.get(),
@@ -56968,22 +56993,22 @@ var ube = {
]
},
table_getFooterGroups: {
- fn: () => sbe(e),
+ fn: () => fbe(e),
memoDeps: () => [e.getHeaderGroups()]
},
table_getFlatHeaders: {
- fn: () => cbe(e),
+ fn: () => pbe(e),
memoDeps: () => [e.getHeaderGroups()]
},
table_getLeafHeaders: {
- fn: () => lbe(e),
+ fn: () => mbe(e),
memoDeps: () => [e.getHeaderGroups()]
}
});
}
};
// node_modules/@tanstack/table-core/dist/core/rows/constructRow.js
-function dbe(e) {
+function gbe(e) {
if (!e._rowPrototype) {
e._rowPrototype = { table: e };
let t = Object.values(e._features);
@@ -56991,98 +57016,98 @@ function dbe(e) {
}
return e._rowPrototype;
}
-var fbe = (e, t, n, r, i, a, o) => {
- let s = dbe(e), c = Object.create(s);
- c._displayIndexCache = -1, c._uniqueValuesCache = Hq(), c._valuesCache = Hq(), c.depth = i, c.id = t, c.index = r, c.original = n, c.parentId = o, c.subRows = a ?? [];
+var _be = (e, t, n, r, i, a, o) => {
+ let s = gbe(e), c = Object.create(s);
+ c._displayIndexCache = -1, c._uniqueValuesCache = Vq(), c._valuesCache = Vq(), c.depth = i, c.id = t, c.index = r, c.original = n, c.parentId = o, c.subRows = a ?? [];
let l = e._rowInstanceInitFns;
for (let e = 0; e < l.length; e++) l[e](c);
return c;
};
// node_modules/@tanstack/table-core/dist/core/row-models/createCoreRowModel.js
-function pbe() {
- return (e) => Xq({
+function vbe() {
+ return (e) => Yq({
feature: "coreRowModelsFeature",
table: e,
fnName: "table.getCoreRowModel",
memoDeps: () => [e.options.data],
- fn: () => mbe(e, e.options.data),
- onAfterUpdate: Yq(() => {
- Bye(e), aJ(e), Vye(e), Hye(e);
+ fn: () => ybe(e, e.options.data),
+ onAfterUpdate: Jq(() => {
+ Gye(e), iJ(e), Kye(e), qye(e);
})
});
}
-function fJ(e, t, n, r = 0, i) {
+function dJ(e, t, n, r = 0, i) {
let a = [];
for (let o = 0; o < n.length; o++) {
- let s = n[o], c = fbe(e, e.getRowId(s, o, i), s, o, r, void 0, i?.id);
- t.flatRows.push(c), t.rowsById[c.id] = c, a.push(c), e.options.getSubRows && (c.originalSubRows = e.options.getSubRows(s, o), c.originalSubRows?.length && (c.subRows = fJ(e, t, c.originalSubRows, r + 1, c)));
+ let s = n[o], c = _be(e, e.getRowId(s, o, i), s, o, r, void 0, i?.id);
+ t.flatRows.push(c), t.rowsById[c.id] = c, a.push(c), e.options.getSubRows && (c.originalSubRows = e.options.getSubRows(s, o), c.originalSubRows?.length && (c.subRows = dJ(e, t, c.originalSubRows, r + 1, c)));
}
return a;
}
-function mbe(e, t) {
+function ybe(e, t) {
let n = {
rows: [],
flatRows: [],
- rowsById: Hq()
+ rowsById: Vq()
};
- return n.rows = fJ(e, n, t), n;
+ return n.rows = dJ(e, n, t), n;
}
// node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.utils.js
-function hbe(e) {
- return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = e.options.features.coreRowModel?.(e) ?? pbe()(e)), e._rowModels.coreRowModel();
+function bbe(e) {
+ return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = e.options.features.coreRowModel?.(e) ?? vbe()(e)), e._rowModels.coreRowModel();
}
-function gbe(e) {
+function xbe(e) {
return e.getCoreRowModel();
}
-function _be(e) {
+function Sbe(e) {
return e._rowModels.filteredRowModel || (e._rowModels.filteredRowModel = e.options.features.filteredRowModel?.(e)), e.options.manualFiltering || !e._rowModels.filteredRowModel ? e.getPreFilteredRowModel() : e._rowModels.filteredRowModel();
}
-function vbe(e) {
+function Cbe(e) {
return e.getFilteredRowModel();
}
-function ybe(e) {
+function wbe(e) {
return e._rowModels.groupedRowModel || (e._rowModels.groupedRowModel = e.options.features.groupedRowModel?.(e)), e.options.manualGrouping || !e._rowModels.groupedRowModel ? e.getPreGroupedRowModel() : e._rowModels.groupedRowModel();
}
-function bbe(e) {
+function Tbe(e) {
return e.getGroupedRowModel();
}
-function xbe(e) {
+function Ebe(e) {
return e._rowModels.sortedRowModel || (e._rowModels.sortedRowModel = e.options.features.sortedRowModel?.(e)), e.options.manualSorting || !e._rowModels.sortedRowModel ? e.getPreSortedRowModel() : e._rowModels.sortedRowModel();
}
-function Sbe(e) {
+function Dbe(e) {
return e.getSortedRowModel();
}
-function Cbe(e) {
+function Obe(e) {
return e._rowModels.expandedRowModel || (e._rowModels.expandedRowModel = e.options.features.expandedRowModel?.(e)), e.options.manualExpanding || !e._rowModels.expandedRowModel ? e.getPreExpandedRowModel() : e._rowModels.expandedRowModel();
}
-function wbe(e) {
+function kbe(e) {
return e.getExpandedRowModel();
}
-function Tbe(e) {
+function Abe(e) {
return e._rowModels.paginatedRowModel || (e._rowModels.paginatedRowModel = e.options.features.paginatedRowModel?.(e)), e.options.manualPagination || !e._rowModels.paginatedRowModel ? e.getPrePaginatedRowModel() : e._rowModels.paginatedRowModel();
}
-function Ebe(e) {
+function jbe(e) {
return e.getPaginatedRowModel();
}
// node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.js
-var Dbe = { constructTableAPIs: (e) => {
- Qq("coreRowModelsFeature", e, {
- table_getCoreRowModel: { fn: () => hbe(e) },
- table_getPreFilteredRowModel: { fn: () => gbe(e) },
- table_getFilteredRowModel: { fn: () => _be(e) },
- table_getPreGroupedRowModel: { fn: () => vbe(e) },
- table_getGroupedRowModel: { fn: () => ybe(e) },
- table_getPreSortedRowModel: { fn: () => bbe(e) },
- table_getSortedRowModel: { fn: () => xbe(e) },
- table_getPreExpandedRowModel: { fn: () => Sbe(e) },
- table_getExpandedRowModel: { fn: () => Cbe(e) },
- table_getPrePaginatedRowModel: { fn: () => wbe(e) },
- table_getPaginatedRowModel: { fn: () => Tbe(e) },
- table_getRowModel: { fn: () => Ebe(e) }
+var Mbe = { constructTableAPIs: (e) => {
+ Zq("coreRowModelsFeature", e, {
+ table_getCoreRowModel: { fn: () => bbe(e) },
+ table_getPreFilteredRowModel: { fn: () => xbe(e) },
+ table_getFilteredRowModel: { fn: () => Sbe(e) },
+ table_getPreGroupedRowModel: { fn: () => Cbe(e) },
+ table_getGroupedRowModel: { fn: () => wbe(e) },
+ table_getPreSortedRowModel: { fn: () => Tbe(e) },
+ table_getSortedRowModel: { fn: () => Ebe(e) },
+ table_getPreExpandedRowModel: { fn: () => Dbe(e) },
+ table_getExpandedRowModel: { fn: () => Obe(e) },
+ table_getPrePaginatedRowModel: { fn: () => kbe(e) },
+ table_getPaginatedRowModel: { fn: () => Abe(e) },
+ table_getRowModel: { fn: () => jbe(e) }
});
} };
// node_modules/@tanstack/table-core/dist/core/cells/constructCell.js
-function Obe(e) {
+function Nbe(e) {
if (!e._cellPrototype) {
e._cellPrototype = { table: e };
let t = Object.values(e._features);
@@ -57090,48 +57115,48 @@ function Obe(e) {
}
return e._cellPrototype;
}
-function kbe(e, t, n) {
- let r = Obe(n), i = Object.create(r);
+function Pbe(e, t, n) {
+ let r = Nbe(n), i = Object.create(r);
i.column = e, i.id = `${t.id}_${e.id}`, i.row = t;
let a = n._cellInstanceInitFns;
for (let e = 0; e < a.length; e++) a[e](i);
return i;
}
// node_modules/@tanstack/table-core/dist/core/rows/coreRowsFeature.utils.js
-function Abe(e) {
+function Fbe(e) {
let t = e.table.getRowsInDisplayOrder(), n = e._displayIndexCache;
return t[n] === e ? n : -1;
}
-function jbe(e) {
- let t = e.getPrePaginatedRowModel(), n = e.options.paginateExpandedRows === !1 ? iJ(e, t).rows : t.rows;
+function Ibe(e) {
+ let t = e.getPrePaginatedRowModel(), n = e.options.paginateExpandedRows === !1 ? rJ(e, t).rows : t.rows;
for (let e = 0; e < n.length; e++) n[e]._displayIndexCache = e;
return n;
}
-function Mbe(e, t) {
- if (Uq(e._valuesCache, t)) return e._valuesCache[t];
+function Lbe(e, t) {
+ if (Hq(e._valuesCache, t)) return e._valuesCache[t];
let n = e.table.getColumn(t);
if (n?.accessorFn) return e._valuesCache[t] = n.accessorFn(e.original, e.index), e._valuesCache[t];
}
-function Nbe(e, t) {
- if (Uq(e._uniqueValuesCache, t)) return e._uniqueValuesCache[t];
+function Rbe(e, t) {
+ if (Hq(e._uniqueValuesCache, t)) return e._uniqueValuesCache[t];
let n = e.table.getColumn(t);
if (n?.accessorFn) return n.columnDef.getUniqueValues ? (e._uniqueValuesCache[t] = n.columnDef.getUniqueValues(e.original, e.index), e._uniqueValuesCache[t]) : (e._uniqueValuesCache[t] = [e.getValue(t)], e._uniqueValuesCache[t]);
}
-function Pbe(e, t) {
+function zbe(e, t) {
return e.getValue(t) ?? e.table.options.renderFallbackValue;
}
-function Fbe(e) {
- return jye(e.subRows, (e) => e.subRows);
+function Bbe(e) {
+ return Iye(e.subRows, (e) => e.subRows);
}
-function Ibe(e) {
+function Vbe(e) {
let t = e.getCoreRowModel().flatRows, n = 0;
for (let e = 0; e < t.length; e++) n = Math.max(n, t[e].depth);
return n;
}
-function Lbe(e) {
+function Hbe(e) {
if (e.parentId) return e.table.getCoreRowModel().rowsById[e.parentId] ?? e.table.getRow(e.parentId, !0);
}
-function Rbe(e) {
+function Ube(e) {
let t = [], n = e;
for (;;) {
let e = n.getParentRow();
@@ -57140,77 +57165,77 @@ function Rbe(e) {
}
return t.reverse();
}
-function zbe(e) {
+function Wbe(e) {
let t = e.table.getAllLeafColumns(), n = e._cellsCache;
n ||= e._cellsCache = /* @__PURE__ */ new WeakMap();
let r = Array(t.length);
for (let i = 0; i < t.length; i++) {
let a = t[i], o = n.get(a);
- o || (o = kbe(a, e, e.table), n.set(a, o)), r[i] = o;
+ o || (o = Pbe(a, e, e.table), n.set(a, o)), r[i] = o;
}
return r;
}
-function Bbe(e) {
- let t = Hq(), n = e.getAllCells();
+function Gbe(e) {
+ let t = Vq(), n = e.getAllCells();
for (let e = 0; e < n.length; e++) {
let r = n[e];
t[r.column.id] = r;
}
return t;
}
-function Vbe(e, t, n, r) {
+function Kbe(e, t, n, r) {
return t.options.getRowId?.(e, n, r) ?? (r ? `${r.id}.${n}` : String(n));
}
-function Hbe(e, t, n) {
+function qbe(e, t, n) {
let r = (n ? e.getPrePaginatedRowModel() : e.getRowModel()).rowsById[t];
if (!r && (r = e.getCoreRowModel().rowsById[t], !r)) throw Error();
return r;
}
// node_modules/@tanstack/table-core/dist/core/rows/coreRowsFeature.js
-var Ube = {
+var Jbe = {
assignRowPrototype: (e, t) => {
- $q("coreRowsFeature", e, t, {
- row_getDisplayIndex: { fn: (e) => Abe(e) },
+ Qq("coreRowsFeature", e, t, {
+ row_getDisplayIndex: { fn: (e) => Fbe(e) },
row_getAllCellsByColumnId: {
- fn: (e) => Bbe(e),
+ fn: (e) => Gbe(e),
memoDeps: (e) => [e.getAllCells()]
},
row_getAllCells: {
- fn: (e) => zbe(e),
+ fn: (e) => Wbe(e),
memoDeps: (e) => [e.table.getAllLeafColumns()]
},
row_getLeafRows: {
- fn: (e) => Fbe(e),
+ fn: (e) => Bbe(e),
memoDeps: (e) => [e.subRows]
},
- row_getParentRow: { fn: (e) => Lbe(e) },
- row_getParentRows: { fn: (e) => Rbe(e) },
- row_getUniqueValues: { fn: (e, t) => Nbe(e, t) },
- row_getValue: { fn: (e, t) => Mbe(e, t) },
- row_renderValue: { fn: (e, t) => Pbe(e, t) }
+ row_getParentRow: { fn: (e) => Hbe(e) },
+ row_getParentRows: { fn: (e) => Ube(e) },
+ row_getUniqueValues: { fn: (e, t) => Rbe(e, t) },
+ row_getValue: { fn: (e, t) => Lbe(e, t) },
+ row_renderValue: { fn: (e, t) => zbe(e, t) }
});
},
constructTableAPIs: (e) => {
- Qq("coreRowsFeature", e, {
+ Zq("coreRowsFeature", e, {
table_getRowsInDisplayOrder: {
- fn: () => jbe(e),
+ fn: () => Ibe(e),
memoDeps: () => [
e.getPrePaginatedRowModel().rows,
e.options.paginateExpandedRows,
e.options.paginateExpandedRows === !1 ? e.atoms.expanded?.get() : void 0
]
},
- table_getRowId: { fn: (t, n, r) => Vbe(t, e, n, r) },
- table_getRow: { fn: (t, n) => Hbe(e, t, n) },
+ table_getRowId: { fn: (t, n, r) => Kbe(t, e, n, r) },
+ table_getRow: { fn: (t, n) => qbe(e, t, n) },
table_getMaxSubRowDepth: {
- fn: () => Ibe(e),
+ fn: () => Vbe(e),
memoDeps: () => [e.getCoreRowModel()]
}
});
}
};
// node_modules/@tanstack/table-core/dist/core/table/coreTablesFeature.utils.js
-function pJ(e, t, n = (e, t) => e === t) {
+function fJ(e, t, n = (e, t) => e === t) {
let r = t === void 0 ? e.options.state : t;
e._reactivity.batch(() => {
if (r) for (let t in r) {
@@ -57221,13 +57246,13 @@ function pJ(e, t, n = (e, t) => e === t) {
}
});
}
-function mJ(e, t, n = (e, t) => e === t) {
+function pJ(e, t, n = (e, t) => e === t) {
e._reactivity.batch(() => {
- pJ(e, t, n), e._reactivity.commit?.();
+ fJ(e, t, n), e._reactivity.commit?.();
});
}
-function Wbe(e) {
- let t = Bq(e.initialState);
+function Ybe(e) {
+ let t = zq(e.initialState);
e._reactivity.batch(() => {
let n = Object.keys(t);
for (let r = 0; r < n.length; r++) {
@@ -57238,7 +57263,7 @@ function Wbe(e) {
let n = Object.values(e._features);
for (let t = 0; t < n.length; t++) n[t].resetTableInstanceData?.(e);
}
-function Gbe(e, t) {
+function Xbe(e, t) {
let { features: n, atoms: r, initialState: i } = e.options;
if (!e.options.mergeOptions) return {
...e.options,
@@ -57270,26 +57295,26 @@ function Gbe(e, t) {
}
});
}
-function hJ(e, t, n) {
- let r = Gbe(e, zq(t, e.options));
- e.optionsStore ? e.optionsStore.set(() => r) : e.options = r, n?.syncExternalState !== !1 && mJ(e, r.state ?? null);
+function mJ(e, t, n) {
+ let r = Xbe(e, Rq(t, e.options));
+ e.optionsStore ? e.optionsStore.set(() => r) : e.options = r, n?.syncExternalState !== !1 && pJ(e, r.state ?? null);
}
// node_modules/@tanstack/table-core/dist/core/coreFeatures.js
-var Kbe = {
- coreCellsFeature: Iye,
- coreColumnsFeature: Qye,
- coreHeadersFeature: ube,
- coreRowModelsFeature: Dbe,
- coreRowsFeature: Ube,
+var Zbe = {
+ coreCellsFeature: Vye,
+ coreColumnsFeature: rbe,
+ coreHeadersFeature: hbe,
+ coreRowModelsFeature: Mbe,
+ coreRowsFeature: Jbe,
coreTablesFeature: { constructTableAPIs: (e) => {
- Qq("coreTablesFeature", e, {
- table_reset: { fn: () => Wbe(e) },
- table_setOptions: { fn: (t) => hJ(e, t) }
+ Zq("coreTablesFeature", e, {
+ table_reset: { fn: () => Ybe(e) },
+ table_setOptions: { fn: (t) => mJ(e, t) }
});
} }
};
// node_modules/@tanstack/table-core/dist/helpers/columnHelper.js
-function gJ() {
+function hJ() {
return {
accessor: (e, t) => typeof e == "function" ? {
...t,
@@ -57304,21 +57329,21 @@ function gJ() {
};
}
// node_modules/@tanstack/table-core/dist/helpers/tableFeatures.js
-function _J(e) {
+function gJ(e) {
return e;
}
// node_modules/@tanstack/table-core/dist/core/table/constructTable.js
-function qbe(e, t = {}) {
+function Qbe(e, t = {}) {
return Object.values(e).forEach((e) => {
t = e.getInitialState?.(t) ?? t;
- }), Bq(t);
+ }), zq(t);
}
-function Jbe(e) {
+function $be(e) {
let t = e.features.coreReactivityFeature, { aggregationFns: n, columnMeta: r, coreRowModel: i, expandedRowModel: a, facetedMinMaxValues: o, facetedRowModel: s, facetedUniqueValues: c, filterFns: l, filterMeta: u, filteredRowModel: d, groupedRowModel: f, paginatedRowModel: p, sortFns: m, sortedRowModel: h, tableMeta: g, ..._ } = e.features, v = {
_cellInstanceInitFns: [],
_columnInstanceInitFns: [],
_features: {
- ...Kbe,
+ ...Zbe,
..._
},
_headerGroupInstanceInitFns: [],
@@ -57356,7 +57381,7 @@ function Jbe(e) {
set(e) {
v.optionsStore.set(() => e);
}
- })) : v.options = b, v.initialState = qbe(v._features, v.options.initialState);
+ })) : v.options = b, v.initialState = Qbe(v._features, v.options.initialState);
let x = Object.keys(v.initialState);
for (let e = 0; e < x.length; e++) {
let n = x[e];
@@ -57364,14 +57389,14 @@ function Jbe(e) {
let e = v.options, t = e.atoms?.[n], r = t ? t.get() : v.baseAtoms[n].get();
if (t) return r;
let i = e.state;
- if (i && Uq(i, n)) {
+ if (i && Hq(i, n)) {
let e = i[n];
return e === void 0 ? v.initialState[n] : e;
}
return r;
}, { debugName: `table/atoms/${n}` });
}
- pJ(v), v.store = wye(t.createReadonlyAtom(() => {
+ fJ(v), v.store = kye(t.createReadonlyAtom(() => {
let e = {};
for (let t = 0; t < x.length; t++) {
let n = x[t];
@@ -57379,7 +57404,7 @@ function Jbe(e) {
}
return e;
}, {
- compare: Fq,
+ compare: Pq,
debugName: "table/store"
}));
for (let e = 0; e < y.length; e++) {
@@ -57389,107 +57414,107 @@ function Jbe(e) {
return v;
}
// node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.utils.js
-function Ybe() {
- return Hq();
+function exe() {
+ return Vq();
}
-function vJ(e, t) {
- bJ(e) && SJ(e.table, (n) => {
- let r = Object.assign(Hq(), n), i = t ?? !eJ(e, "getIsVisible", yJ), a = e.getLeafColumns();
+function _J(e, t) {
+ yJ(e) && xJ(e.table, (n) => {
+ let r = Object.assign(Vq(), n), i = t ?? !$q(e, "getIsVisible", vJ), a = e.getLeafColumns();
for (let e = 0; e < a.length; e++) {
let t = a[e];
- bJ(t) && (r[t.id] = i);
+ yJ(t) && (r[t.id] = i);
}
return r;
});
}
-function yJ(e) {
+function vJ(e) {
let t = e.table.atoms.columnVisibility?.get();
if (!t) return !0;
let n = e.columns;
- return n.length ? n.some((e) => eJ(e, "getIsVisible", yJ)) : (Uq(t, e.id) ? t[e.id] : void 0) ?? !0;
+ return n.length ? n.some((e) => $q(e, "getIsVisible", vJ)) : (Hq(t, e.id) ? t[e.id] : void 0) ?? !0;
}
-function bJ(e) {
+function yJ(e) {
return (e.columnDef.enableHiding ?? !0) && (e.table.options.enableHiding ?? !0);
}
-function Xbe(e) {
+function txe(e) {
return (t) => {
- vJ(e, t.target.checked);
+ _J(e, t.target.checked);
};
}
-function Zbe(e) {
+function nxe(e) {
let t = e.getAllCells(), n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e];
- eJ(r.column, "getIsVisible", yJ) && n.push(r);
+ $q(r.column, "getIsVisible", vJ) && n.push(r);
}
- return rJ(e.table, n, (e) => e.column.id, () => eJ(e, "getVisibleCellsByColumnId", xJ));
+ return nJ(e.table, n, (e) => e.column.id, () => $q(e, "getVisibleCellsByColumnId", bJ));
}
-function xJ(e) {
- let t = Hq(), n = e.getAllCells();
+function bJ(e) {
+ let t = Vq(), n = e.getAllCells();
for (let e = 0; e < n.length; e++) {
let r = n[e];
- eJ(r.column, "getIsVisible", yJ) && (t[r.column.id] = r);
+ $q(r.column, "getIsVisible", vJ) && (t[r.column.id] = r);
}
return t;
}
-function Qbe(e) {
- return e.getAllFlatColumns().filter((e) => eJ(e, "getIsVisible", yJ));
+function rxe(e) {
+ return e.getAllFlatColumns().filter((e) => $q(e, "getIsVisible", vJ));
}
-function $be(e) {
- return e.getAllLeafColumns().filter((e) => eJ(e, "getIsVisible", yJ));
+function ixe(e) {
+ return e.getAllLeafColumns().filter((e) => $q(e, "getIsVisible", vJ));
}
-function SJ(e, t) {
- Jq(e, "columnVisibility", t);
+function xJ(e, t) {
+ qq(e, "columnVisibility", t);
}
-function exe(e, t) {
- SJ(e, t ? Hq() : Object.assign(Hq(), Bq(e.initialState.columnVisibility ?? {})));
+function axe(e, t) {
+ xJ(e, t ? Vq() : Object.assign(Vq(), zq(e.initialState.columnVisibility ?? {})));
}
-function CJ(e, t) {
- t ??= !wJ(e);
- let n = Hq(), r = e.getAllLeafColumns();
+function SJ(e, t) {
+ t ??= !CJ(e);
+ let n = Vq(), r = e.getAllLeafColumns();
for (let e = 0; e < r.length; e++) {
let i = r[e];
- n[i.id] = t || !bJ(i);
+ n[i.id] = t || !yJ(i);
}
- SJ(e, n);
+ xJ(e, n);
}
-function wJ(e) {
- return !e.getAllLeafColumns().some((e) => !eJ(e, "getIsVisible", yJ));
+function CJ(e) {
+ return !e.getAllLeafColumns().some((e) => !$q(e, "getIsVisible", vJ));
}
-function txe(e) {
- return e.getAllLeafColumns().some((e) => eJ(e, "getIsVisible", yJ));
+function oxe(e) {
+ return e.getAllLeafColumns().some((e) => $q(e, "getIsVisible", vJ));
}
-function nxe(e) {
+function sxe(e) {
return (t) => {
- CJ(e, t.target.checked);
+ SJ(e, t.target.checked);
};
}
// node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.js
-var TJ = {
+var wJ = {
getInitialState: (e) => ({
- columnVisibility: Ybe(),
+ columnVisibility: exe(),
...e
}),
- getDefaultTableOptions: (e) => ({ onColumnVisibilityChange: Wq("columnVisibility", e) }),
+ getDefaultTableOptions: (e) => ({ onColumnVisibilityChange: Uq("columnVisibility", e) }),
assignColumnPrototype: (e, t) => {
- $q("columnVisibilityFeature", e, t, {
+ Qq("columnVisibilityFeature", e, t, {
column_getIsVisible: {
- fn: (e) => yJ(e),
+ fn: (e) => vJ(e),
memoDeps: (e) => [
t.options.columns,
t.atoms.columnVisibility?.get(),
e.columns
]
},
- column_getCanHide: { fn: (e) => bJ(e) },
- column_getToggleVisibilityHandler: { fn: (e) => Xbe(e) },
- column_toggleVisibility: { fn: (e, t) => vJ(e, t) }
+ column_getCanHide: { fn: (e) => yJ(e) },
+ column_getToggleVisibilityHandler: { fn: (e) => txe(e) },
+ column_toggleVisibility: { fn: (e, t) => _J(e, t) }
});
},
assignRowPrototype: (e, t) => {
- $q("columnVisibilityFeature", e, t, {
+ Qq("columnVisibilityFeature", e, t, {
row_getVisibleCells: {
- fn: (e) => Zbe(e),
+ fn: (e) => nxe(e),
memoDeps: (e) => [
e.getAllCells(),
t.atoms.columnPinning?.get(),
@@ -57497,15 +57522,15 @@ var TJ = {
]
},
row_getVisibleCellsByColumnId: {
- fn: (e) => xJ(e),
+ fn: (e) => bJ(e),
memoDeps: (e) => [e.getAllCells(), t.atoms.columnVisibility?.get()]
}
});
},
constructTableAPIs: (e) => {
- Qq("columnVisibilityFeature", e, {
+ Zq("columnVisibilityFeature", e, {
table_getVisibleFlatColumns: {
- fn: () => Qbe(e),
+ fn: () => rxe(e),
memoDeps: () => [
e.atoms.columnVisibility?.get(),
e.atoms.columnOrder?.get(),
@@ -57515,7 +57540,7 @@ var TJ = {
]
},
table_getVisibleLeafColumns: {
- fn: () => $be(e),
+ fn: () => ixe(e),
memoDeps: () => [
e.atoms.columnVisibility?.get(),
e.atoms.columnOrder?.get(),
@@ -57524,51 +57549,51 @@ var TJ = {
e.options.groupedColumnMode
]
},
- table_setColumnVisibility: { fn: (t) => SJ(e, t) },
- table_resetColumnVisibility: { fn: (t) => exe(e, t) },
- table_toggleAllColumnsVisible: { fn: (t) => CJ(e, t) },
- table_getIsAllColumnsVisible: { fn: () => wJ(e) },
- table_getIsSomeColumnsVisible: { fn: () => txe(e) },
- table_getToggleAllColumnsVisibilityHandler: { fn: () => nxe(e) }
+ table_setColumnVisibility: { fn: (t) => xJ(e, t) },
+ table_resetColumnVisibility: { fn: (t) => axe(e, t) },
+ table_toggleAllColumnsVisible: { fn: (t) => SJ(e, t) },
+ table_getIsAllColumnsVisible: { fn: () => CJ(e) },
+ table_getIsSomeColumnsVisible: { fn: () => oxe(e) },
+ table_getToggleAllColumnsVisibilityHandler: { fn: () => sxe(e) }
});
}
-}, EJ = 0, DJ = 10;
-function OJ() {
+}, TJ = 0, EJ = 10;
+function DJ() {
return {
- pageIndex: EJ,
- pageSize: DJ
+ pageIndex: TJ,
+ pageSize: EJ
};
}
-function rxe(e) {
+function cxe(e) {
if (e.options.autoResetAll ?? e.options.autoResetPageIndex ?? !e.options.manualPagination) {
- if ((e.atoms.pagination?.get()?.pageIndex ?? EJ) === EJ) return;
- jJ(e, !0);
+ if ((e.atoms.pagination?.get()?.pageIndex ?? TJ) === TJ) return;
+ AJ(e, !0);
}
}
-function kJ(e, t) {
- Jq(e, "pagination", t);
+function OJ(e, t) {
+ qq(e, "pagination", t);
}
-function ixe(e, t) {
- kJ(e, t ? OJ() : Bq(e.initialState.pagination ?? OJ()));
+function lxe(e, t) {
+ OJ(e, t ? DJ() : zq(e.initialState.pagination ?? DJ()));
}
-function AJ(e, t) {
- kJ(e, (n) => {
- let r = zq(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
+function kJ(e, t) {
+ OJ(e, (n) => {
+ let r = Rq(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
return r = Math.max(0, Math.min(r, i)), {
...n,
pageIndex: r
};
});
}
-function jJ(e, t) {
- AJ(e, t ? EJ : e.initialState.pagination?.pageIndex ?? EJ);
+function AJ(e, t) {
+ kJ(e, t ? TJ : e.initialState.pagination?.pageIndex ?? TJ);
}
-function axe(e, t) {
- MJ(e, t ? DJ : e.initialState.pagination?.pageSize ?? DJ);
+function uxe(e, t) {
+ jJ(e, t ? EJ : e.initialState.pagination?.pageSize ?? EJ);
}
-function MJ(e, t) {
- kJ(e, (e) => {
- let n = Math.max(1, zq(t, e.pageSize)), r = e.pageSize === Infinity ? 0 : e.pageSize * e.pageIndex, i = n === Infinity ? 0 : Math.floor(r / n);
+function jJ(e, t) {
+ OJ(e, (e) => {
+ let n = Math.max(1, Rq(t, e.pageSize)), r = e.pageSize === Infinity ? 0 : e.pageSize * e.pageIndex, i = n === Infinity ? 0 : Math.floor(r / n);
return {
...e,
pageIndex: i,
@@ -57576,231 +57601,231 @@ function MJ(e, t) {
};
});
}
-function oxe(e) {
- let t = NJ(e), n = [];
+function dxe(e) {
+ let t = MJ(e), n = [];
return t && t > 0 && (n = [...Array(t)].fill(null).map((e, t) => t)), n;
}
-function sxe(e) {
+function fxe(e) {
return (e.atoms.pagination?.get()?.pageIndex ?? 0) > 0;
}
-function cxe(e) {
- let t = e.atoms.pagination?.get()?.pageIndex ?? EJ, n = NJ(e);
+function pxe(e) {
+ let t = e.atoms.pagination?.get()?.pageIndex ?? TJ, n = MJ(e);
return n === -1 || n !== 0 && t < n - 1;
}
-function lxe(e) {
- let t = e.atoms.pagination?.get()?.pageIndex ?? EJ, n = NJ(e);
+function mxe(e) {
+ let t = e.atoms.pagination?.get()?.pageIndex ?? TJ, n = MJ(e);
return Number.isFinite(n) && n > 0 && t < n - 1;
}
-function uxe(e) {
- return AJ(e, (e) => e - 1);
+function hxe(e) {
+ return kJ(e, (e) => e - 1);
}
-function dxe(e) {
- return AJ(e, (e) => e + 1);
+function gxe(e) {
+ return kJ(e, (e) => e + 1);
}
-function fxe(e) {
- return AJ(e, 0);
+function _xe(e) {
+ return kJ(e, 0);
}
-function pxe(e) {
- let t = NJ(e);
- if (!(!Number.isFinite(t) || t <= 0)) return AJ(e, t - 1);
+function vxe(e) {
+ let t = MJ(e);
+ if (!(!Number.isFinite(t) || t <= 0)) return kJ(e, t - 1);
}
-function NJ(e) {
+function MJ(e) {
let t = e.options.pageCount;
if (t != null) return t;
- let n = PJ(e), r = e.atoms.pagination?.get()?.pageSize ?? DJ;
+ let n = NJ(e), r = e.atoms.pagination?.get()?.pageSize ?? EJ;
return r === Infinity && Number.isFinite(n) && n > 0 ? 1 : Math.ceil(n / r);
}
-function PJ(e) {
+function NJ(e) {
return e.options.rowCount ?? e.getPrePaginatedRowModel().rows.length;
}
// node_modules/@tanstack/table-core/dist/features/row-pagination/rowPaginationFeature.js
-var FJ = {
+var PJ = {
getInitialState: (e) => ({
...e,
pagination: {
- ...OJ(),
+ ...DJ(),
...e.pagination
}
}),
- getDefaultTableOptions: (e) => ({ onPaginationChange: Wq("pagination", e) }),
+ getDefaultTableOptions: (e) => ({ onPaginationChange: Uq("pagination", e) }),
constructTableAPIs: (e) => {
- Qq("rowPaginationFeature", e, {
- table_autoResetPageIndex: { fn: () => rxe(e) },
- table_setPagination: { fn: (t) => kJ(e, t) },
- table_resetPagination: { fn: (t) => ixe(e, t) },
- table_setPageIndex: { fn: (t) => AJ(e, t) },
- table_resetPageIndex: { fn: (t) => jJ(e, t) },
- table_setPageSize: { fn: (t) => MJ(e, t) },
- table_getPageCount: { fn: () => NJ(e) },
- table_resetPageSize: { fn: (t) => axe(e, t) },
- table_getPageOptions: { fn: () => oxe(e) },
- table_getCanPreviousPage: { fn: () => sxe(e) },
- table_getCanNextPage: { fn: () => cxe(e) },
- table_getCanLastPage: { fn: () => lxe(e) },
- table_previousPage: { fn: () => uxe(e) },
- table_nextPage: { fn: () => dxe(e) },
- table_firstPage: { fn: () => fxe(e) },
- table_lastPage: { fn: () => pxe(e) },
- table_getRowCount: { fn: () => PJ(e) }
+ Zq("rowPaginationFeature", e, {
+ table_autoResetPageIndex: { fn: () => cxe(e) },
+ table_setPagination: { fn: (t) => OJ(e, t) },
+ table_resetPagination: { fn: (t) => lxe(e, t) },
+ table_setPageIndex: { fn: (t) => kJ(e, t) },
+ table_resetPageIndex: { fn: (t) => AJ(e, t) },
+ table_setPageSize: { fn: (t) => jJ(e, t) },
+ table_getPageCount: { fn: () => MJ(e) },
+ table_resetPageSize: { fn: (t) => uxe(e, t) },
+ table_getPageOptions: { fn: () => dxe(e) },
+ table_getCanPreviousPage: { fn: () => fxe(e) },
+ table_getCanNextPage: { fn: () => pxe(e) },
+ table_getCanLastPage: { fn: () => mxe(e) },
+ table_previousPage: { fn: () => hxe(e) },
+ table_nextPage: { fn: () => gxe(e) },
+ table_firstPage: { fn: () => _xe(e) },
+ table_lastPage: { fn: () => vxe(e) },
+ table_getRowCount: { fn: () => NJ(e) }
});
}
};
// node_modules/@tanstack/table-core/dist/features/row-selection/rowSelectionFeature.utils.js
-function mxe() {
- return Hq();
+function yxe() {
+ return Vq();
}
-function IJ(e, t) {
+function FJ(e, t) {
e.options.onRowSelectionChange?.(t);
}
-function hxe(e, t) {
- e._lastSelectedRowId = null, IJ(e, t ? Hq() : Object.assign(Hq(), Bq(e.initialState.rowSelection ?? {})));
+function bxe(e, t) {
+ e._lastSelectedRowId = null, FJ(e, t ? Vq() : Object.assign(Vq(), zq(e.initialState.rowSelection ?? {})));
}
-function LJ(e, t, n) {
- e._lastSelectedRowId = null, IJ(e, (r) => {
- if (t = t === void 0 ? !eJ(e, "getIsAllRowsSelected", BJ) : t, n?.deselectAll && !t) return Hq();
- let i = Object.assign(Hq(), r), a = e.getPreGroupedRowModel().flatRows;
+function IJ(e, t, n) {
+ e._lastSelectedRowId = null, FJ(e, (r) => {
+ if (t = t === void 0 ? !$q(e, "getIsAllRowsSelected", zJ) : t, n?.deselectAll && !t) return Vq();
+ let i = Object.assign(Vq(), r), a = e.getPreGroupedRowModel().flatRows;
if (t) {
let e = /* @__PURE__ */ new Map();
a.forEach((t) => {
- XJ(t, e) && (i[t.id] = !0);
+ YJ(t, e) && (i[t.id] = !0);
});
} else a.forEach((e) => {
- KJ(e) && delete i[e.id];
+ GJ(e) && delete i[e.id];
});
return i;
});
}
-function RJ(e, t, n) {
- e._lastSelectedRowId = null, IJ(e, (r) => {
- let i = t === void 0 ? !eJ(e, "getIsAllPageRowsSelected", VJ) : t;
- if (n?.deselectAll && !i) return Hq();
- let a = Object.assign(Hq(), r);
+function LJ(e, t, n) {
+ e._lastSelectedRowId = null, FJ(e, (r) => {
+ let i = t === void 0 ? !$q(e, "getIsAllPageRowsSelected", BJ) : t;
+ if (n?.deselectAll && !i) return Vq();
+ let a = Object.assign(Vq(), r);
return e.getRowModel().rows.forEach((t) => {
- YJ(a, t.id, i, !0, e, !0);
+ JJ(a, t.id, i, !0, e, !0);
}), a;
});
}
-function gxe(e) {
+function xxe(e) {
return e.getCoreRowModel();
}
-function _xe(e) {
+function Sxe(e) {
let t = e.getCoreRowModel();
- return eJ(e, "getIsSomeRowsSelected", HJ) ? $J(t, e) : {
+ return $q(e, "getIsSomeRowsSelected", VJ) ? QJ(t, e) : {
rows: [],
flatRows: [],
- rowsById: Hq()
+ rowsById: Vq()
};
}
-function vxe(e) {
+function Cxe(e) {
let t = e.getFilteredRowModel();
- return eJ(e, "getIsSomeRowsSelected", HJ) ? $J(t, e) : {
+ return $q(e, "getIsSomeRowsSelected", VJ) ? QJ(t, e) : {
rows: [],
flatRows: [],
- rowsById: Hq()
+ rowsById: Vq()
};
}
-function yxe(e) {
+function wxe(e) {
let t = e.getSortedRowModel();
- return eJ(e, "getIsSomeRowsSelected", HJ) ? $J(t, e) : {
+ return $q(e, "getIsSomeRowsSelected", VJ) ? QJ(t, e) : {
rows: [],
flatRows: [],
- rowsById: Hq()
+ rowsById: Vq()
};
}
-function zJ(e) {
+function RJ(e) {
return Object.keys(e.atoms.rowSelection?.get() ?? {});
}
-function BJ(e) {
+function zJ(e) {
let t = e.getFilteredRowModel().flatRows, n = e.atoms.rowSelection?.get() ?? {}, r = !!(t.length && Object.keys(n).length);
if (r) {
let e = /* @__PURE__ */ new Map();
- t.some((t) => !eY(t, n) && XJ(t, e)) && (r = !1);
+ t.some((t) => !$J(t, n) && YJ(t, e)) && (r = !1);
}
return r;
}
-function VJ(e) {
+function BJ(e) {
let t = e.getPaginatedRowModel().flatRows, n = e.atoms.rowSelection?.get() ?? {}, r = /* @__PURE__ */ new Map(), i = !1;
for (let e = 0; e < t.length; e++) {
let a = t[e];
- if (eY(a, n)) !i && XJ(a, r) && (i = !0);
- else if (XJ(a, r)) return !1;
+ if ($J(a, n)) !i && YJ(a, r) && (i = !0);
+ else if (YJ(a, r)) return !1;
}
return i;
}
-function HJ(e) {
- return eJ(e, "getSelectedRowIds", zJ).length > 0;
+function VJ(e) {
+ return $q(e, "getSelectedRowIds", RJ).length > 0;
}
-function bxe(e) {
- return e.getPaginatedRowModel().flatRows.filter((e) => KJ(e)).some((e) => WJ(e) || eJ(e, "getIsSomeSelected", GJ));
+function Txe(e) {
+ return e.getPaginatedRowModel().flatRows.filter((e) => GJ(e)).some((e) => UJ(e) || $q(e, "getIsSomeSelected", WJ));
}
-function xxe(e) {
+function Exe(e) {
return (t) => {
- LJ(e, t.target.checked);
+ IJ(e, t.target.checked);
};
}
-function Sxe(e) {
+function Dxe(e) {
return (t) => {
- RJ(e, t.target.checked);
+ LJ(e, t.target.checked);
};
}
-function UJ(e, t, n) {
- let r = WJ(e);
- IJ(e.table, (i) => {
+function HJ(e, t, n) {
+ let r = UJ(e);
+ FJ(e.table, (i) => {
t = t === void 0 ? !r : t;
- let a = Object.assign(Hq(), i);
- return YJ(a, e.id, t, (n?.selectChildren ?? !0) && JJ(e), e.table), !t && n?.deselectParents && ZJ(a, e), a;
+ let a = Object.assign(Vq(), i);
+ return JJ(a, e.id, t, (n?.selectChildren ?? !0) && qJ(e), e.table), !t && n?.deselectParents && XJ(a, e), a;
});
}
-function WJ(e) {
- return eY(e, e.table.atoms.rowSelection?.get() ?? {});
+function UJ(e) {
+ return $J(e, e.table.atoms.rowSelection?.get() ?? {});
}
-function GJ(e) {
- return tY(e) === "some";
+function WJ(e) {
+ return eY(e) === "some";
}
-function Cxe(e) {
- return tY(e) === "all";
+function Oxe(e) {
+ return eY(e) === "all";
}
-function KJ(e) {
+function GJ(e) {
let t = e.table.options;
return typeof t.enableRowSelection == "function" ? t.enableRowSelection(e) : t.enableRowSelection ?? !0;
}
-function qJ(e) {
+function KJ(e) {
let t = e.table.options;
return typeof t.enableSubRowSelection == "function" ? t.enableSubRowSelection(e) : t.enableSubRowSelection ?? !0;
}
-function JJ(e) {
+function qJ(e) {
let t = e.table.options;
return typeof t.enableMultiRowSelection == "function" ? t.enableMultiRowSelection(e) : t.enableMultiRowSelection ?? !0;
}
-function wxe(e, t) {
- let n = KJ(e);
+function kxe(e, t) {
+ let n = GJ(e);
return (r) => {
if (!n) return;
let i = r, a = e.table, o = i.target.checked, s = a._lastSelectedRowId;
- a.options.enableRowRangeSelection !== !1 && s !== null && JJ(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1) && Txe(e, s, o, t) || UJ(e, o, t), a._lastSelectedRowId = e.id;
+ a.options.enableRowRangeSelection !== !1 && s !== null && qJ(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1) && Axe(e, s, o, t) || HJ(e, o, t), a._lastSelectedRowId = e.id;
};
}
-function Txe(e, t, n, r) {
+function Axe(e, t, n, r) {
let i = r?.selectChildren ?? !0, a = e.table, o = a.getRowsInDisplayOrder(), s = a.getPrePaginatedRowModel().rowsById[t] ?? a.getCoreRowModel().rowsById[t];
if (!s) return !1;
let c = s.getDisplayIndex(), l = e.getDisplayIndex(), u = o[c], d = o[l];
- if (c < 0 || l < 0 || c >= o.length || l >= o.length || u?.id !== s.id || d?.id !== e.id || !JJ(s) || !JJ(e)) return !1;
+ if (c < 0 || l < 0 || c >= o.length || l >= o.length || u?.id !== s.id || d?.id !== e.id || !qJ(s) || !qJ(e)) return !1;
let f = Math.min(c, l), p = Math.max(c, l);
- return IJ(a, (e) => {
- let t = Object.assign(Hq(), e);
+ return FJ(a, (e) => {
+ let t = Object.assign(Vq(), e);
for (let e = f; e <= p; e++) {
let s = o[e];
- KJ(s) && JJ(s) && (YJ(t, s.id, n, i, a), !n && r?.deselectParents && ZJ(t, s));
+ GJ(s) && qJ(s) && (JJ(t, s.id, n, i, a), !n && r?.deselectParents && XJ(t, s));
}
return t;
}), !0;
}
-function YJ(e, t, n, r, i, a) {
+function JJ(e, t, n, r, i, a) {
let o = i.getRow(t, !0);
- n ? (JJ(o) || Object.keys(e).forEach((t) => delete e[t]), KJ(o) && (e[t] = !0)) : (!a || KJ(o)) && delete e[t], r && o.subRows.length && qJ(o) && o.subRows.forEach((t) => YJ(e, t.id, n, r, i, a));
+ n ? (qJ(o) || Object.keys(e).forEach((t) => delete e[t]), GJ(o) && (e[t] = !0)) : (!a || GJ(o)) && delete e[t], r && o.subRows.length && KJ(o) && o.subRows.forEach((t) => JJ(e, t.id, n, r, i, a));
}
-function XJ(e, t) {
- if (!KJ(e)) return !1;
+function YJ(e, t) {
+ if (!GJ(e)) return !1;
let n = e.table;
if (n.options.enableSubRowSelection === !0) return !0;
let r = e.parentId;
@@ -57816,7 +57841,7 @@ function XJ(e, t) {
}
o.push(c);
let r = a[c] ?? n.getRow(c, !0);
- if (!qJ(r)) {
+ if (!KJ(r)) {
s = !1;
break;
}
@@ -57824,50 +57849,50 @@ function XJ(e, t) {
}
return o.forEach((e) => t.set(e, s)), s;
}
-function ZJ(e, t) {
+function XJ(e, t) {
let n = t.table.getCoreRowModel().rowsById, r = t.parentId;
for (; r !== void 0;) delete e[r], r = (n[r] ?? t.table.getRow(r, !0)).parentId;
}
-function QJ(e, t, n, r) {
+function ZJ(e, t, n, r) {
let i = [];
for (let a = 0; a < e.length; a++) {
- let o = e[a], s = eY(o, t);
+ let o = e[a], s = $J(o, t);
if (s && (n.push(o), r[o.id] = o), o.subRows.length) {
- let e = QJ(o.subRows, t, n, r);
+ let e = ZJ(o.subRows, t, n, r);
if (s) {
let t = Object.create(Object.getPrototypeOf(o));
- Vq(t, o), t.subRows = e, i.push(t);
+ Bq(t, o), t.subRows = e, i.push(t);
}
} else s && i.push(o);
}
return i;
}
-function $J(e, t) {
- let n = [], r = Hq(), i = t.atoms.rowSelection?.get() ?? {};
+function QJ(e, t) {
+ let n = [], r = Vq(), i = t.atoms.rowSelection?.get() ?? {};
return {
- rows: QJ(e.rows, i, n, r),
+ rows: ZJ(e.rows, i, n, r),
flatRows: n,
rowsById: r
};
}
-function eY(e, t) {
- return !!(Uq(t, e.id) && t[e.id]);
+function $J(e, t) {
+ return !!(Hq(t, e.id) && t[e.id]);
}
-function tY(e) {
+function eY(e) {
if (!e.subRows.length) return !1;
let t = e.table.atoms.rowSelection?.get() ?? {}, n = !1, r = !0, i = !1;
for (let a = 0; a < e.subRows.length; a++) {
let o = e.subRows[a];
if (n && !r) break;
- if (KJ(o) && (i = !0, eY(o, t) ? n = !0 : r = !1), o.subRows.length) {
- let e = tY(o);
+ if (GJ(o) && (i = !0, $J(o, t) ? n = !0 : r = !1), o.subRows.length) {
+ let e = eY(o);
e === "all" ? (n = !0, i = !0) : e === "some" ? (n = !0, r = !1, i = !0) : r = !1;
}
}
return i ? r ? "all" : n ? "some" : !1 : !1;
}
// node_modules/@tanstack/table-core/dist/features/row-selection/rowSelectionFeature.js
-var nY = {
+var tY = {
initTableInstanceData: (e) => {
e._lastSelectedRowId = null;
},
@@ -57875,11 +57900,11 @@ var nY = {
e._lastSelectedRowId = null;
},
getInitialState: (e) => ({
- rowSelection: mxe(),
+ rowSelection: yxe(),
...e
}),
getDefaultTableOptions: (e) => ({
- onRowSelectionChange: Wq("rowSelection", e),
+ onRowSelectionChange: Uq("rowSelection", e),
enableRowSelection: !0,
enableMultiRowSelection: !0,
enableRowRangeSelection: !0,
@@ -57890,11 +57915,11 @@ var nY = {
}
}),
assignRowPrototype: (e, t) => {
- $q("rowSelectionFeature", e, t, {
- row_toggleSelected: { fn: (e, t, n) => UJ(e, t, n) },
- row_getIsSelected: { fn: (e) => WJ(e) },
+ Qq("rowSelectionFeature", e, t, {
+ row_toggleSelected: { fn: (e, t, n) => HJ(e, t, n) },
+ row_getIsSelected: { fn: (e) => UJ(e) },
row_getIsSomeSelected: {
- fn: (e) => GJ(e),
+ fn: (e) => WJ(e),
memoDeps: (e) => [
e.subRows,
e.table.atoms.rowSelection?.get(),
@@ -57902,44 +57927,44 @@ var nY = {
]
},
row_getIsAllSubRowsSelected: {
- fn: (e) => Cxe(e),
+ fn: (e) => Oxe(e),
memoDeps: (e) => [
e.subRows,
e.table.atoms.rowSelection?.get(),
e.table.options.enableRowSelection
]
},
- row_getCanSelect: { fn: (e) => KJ(e) },
- row_getCanSelectSubRows: { fn: (e) => qJ(e) },
- row_getCanMultiSelect: { fn: (e) => JJ(e) },
- row_getToggleSelectedHandler: { fn: (e, t) => wxe(e, t) }
+ row_getCanSelect: { fn: (e) => GJ(e) },
+ row_getCanSelectSubRows: { fn: (e) => KJ(e) },
+ row_getCanMultiSelect: { fn: (e) => qJ(e) },
+ row_getToggleSelectedHandler: { fn: (e, t) => kxe(e, t) }
});
},
constructTableAPIs: (e) => {
- Qq("rowSelectionFeature", e, {
- table_setRowSelection: { fn: (t) => IJ(e, t) },
- table_resetRowSelection: { fn: (t) => hxe(e, t) },
- table_toggleAllRowsSelected: { fn: (t, n) => LJ(e, t, n) },
- table_toggleAllPageRowsSelected: { fn: (t, n) => RJ(e, t, n) },
- table_getPreSelectedRowModel: { fn: () => gxe(e) },
+ Zq("rowSelectionFeature", e, {
+ table_setRowSelection: { fn: (t) => FJ(e, t) },
+ table_resetRowSelection: { fn: (t) => bxe(e, t) },
+ table_toggleAllRowsSelected: { fn: (t, n) => IJ(e, t, n) },
+ table_toggleAllPageRowsSelected: { fn: (t, n) => LJ(e, t, n) },
+ table_getPreSelectedRowModel: { fn: () => xxe(e) },
table_getSelectedRowModel: {
- fn: () => _xe(e),
+ fn: () => Sxe(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getCoreRowModel()]
},
table_getFilteredSelectedRowModel: {
- fn: () => vxe(e),
+ fn: () => Cxe(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getFilteredRowModel()]
},
table_getGroupedSelectedRowModel: {
- fn: () => yxe(e),
+ fn: () => wxe(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getSortedRowModel()]
},
table_getSelectedRowIds: {
- fn: () => zJ(e),
+ fn: () => RJ(e),
memoDeps: () => [e.atoms.rowSelection?.get()]
},
table_getIsAllRowsSelected: {
- fn: () => BJ(e),
+ fn: () => zJ(e),
memoDeps: () => [
e.atoms.rowSelection?.get(),
e.getFilteredRowModel(),
@@ -57948,7 +57973,7 @@ var nY = {
]
},
table_getIsAllPageRowsSelected: {
- fn: () => VJ(e),
+ fn: () => BJ(e),
memoDeps: () => [
e.atoms.rowSelection?.get(),
e.getPaginatedRowModel(),
@@ -57957,48 +57982,48 @@ var nY = {
]
},
table_getIsSomeRowsSelected: {
- fn: () => HJ(e),
+ fn: () => VJ(e),
memoDeps: () => [e.atoms.rowSelection?.get()]
},
table_getIsSomePageRowsSelected: {
- fn: () => bxe(e),
+ fn: () => Txe(e),
memoDeps: () => [
e.atoms.rowSelection?.get(),
e.getPaginatedRowModel(),
e.options.enableRowSelection
]
},
- table_getToggleAllRowsSelectedHandler: { fn: () => xxe(e) },
- table_getToggleAllPageRowsSelectedHandler: { fn: () => Sxe(e) }
+ table_getToggleAllRowsSelectedHandler: { fn: () => Exe(e) },
+ table_getToggleAllPageRowsSelectedHandler: { fn: () => Dxe(e) }
});
}
-}, Exe = /([0-9]+)/gm;
+}, jxe = /([0-9]+)/gm;
/* @__NO_SIDE_EFFECTS__ */
-function Dxe(e) {
+function Mxe(e) {
let t = Object.assign((e, n, r) => {
let i = e.getValue(r), a = n.getValue(r), o = t.resolveDataValue;
return o && (i = o(i), a = o(a)), t.sort(i, a, e, n, r);
}, e);
return t;
}
-var rY = /* @__PURE__ */ Dxe({ sort: (e, t) => Oxe(e, t) });
-function Oxe(e, t) {
+var nY = /* @__PURE__ */ Mxe({ sort: (e, t) => Nxe(e, t) });
+function Nxe(e, t) {
return e === t ? 0 : e > t ? 1 : -1;
}
// node_modules/@tanstack/table-core/dist/features/row-sorting/rowSortingFeature.utils.js
-function kxe() {
+function Pxe() {
return [];
}
-function iY(e, t) {
- Jq(e, "sorting", t);
+function rY(e, t) {
+ qq(e, "sorting", t);
}
-function aY(e, t) {
- iY(e, t ? [] : Bq(e.initialState.sorting ?? []));
+function iY(e, t) {
+ rY(e, t ? [] : zq(e.initialState.sorting ?? []));
}
-function Axe(e) {
- e.atoms.sorting && (e.options.autoResetAll ?? e.options.autoResetSorting ?? !1) && aY(e);
+function Fxe(e) {
+ e.atoms.sorting && (e.options.autoResetAll ?? e.options.autoResetSorting ?? !1) && iY(e);
}
-function oY(e) {
+function aY(e) {
let t = e.table._rowModelFns.sortFns, n = e.table.getFilteredRowModel().flatRows.slice(0, 10), r, i = !1;
for (let t = 0; t < n.length; t++) {
let a = n[t].getValue(e.id);
@@ -58006,7 +58031,7 @@ function oY(e) {
r = "datetime";
break;
}
- if (typeof a == "string" && (i = !0, a.split(Exe).length > 1)) {
+ if (typeof a == "string" && (i = !0, a.split(jxe).length > 1)) {
r = "alphanumeric";
break;
}
@@ -58015,9 +58040,9 @@ function oY(e) {
let e = t?.[r];
if (e || r === "alphanumeric" && (e = t?.text), e) return e;
}
- return rY;
+ return nY;
}
-function sY(e) {
+function oY(e) {
let t = e.table.getFilteredRowModel().flatRows.slice(0, 10);
for (let n = 0; n < t.length; n++) {
let r = t[n].getValue(e.id);
@@ -58025,14 +58050,14 @@ function sY(e) {
}
return "desc";
}
-function cY(e) {
+function sY(e) {
let t = e.table._rowModelFns.sortFns;
- return Aye(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? oY(e) : t?.[e.columnDef.sortFn] ?? rY;
+ return Fye(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? aY(e) : t?.[e.columnDef.sortFn] ?? nY;
}
-function lY(e, t, n) {
- let r = dY(e, n && pY(e)), i = t !== void 0;
- iY(e.table, (a) => {
- let o = a.findIndex((t) => t.id === e.id), s = o === -1 ? void 0 : a[o], c = [], l, u = i ? t : r === "desc", d = !!(a.length && pY(e) && n);
+function cY(e, t, n) {
+ let r = uY(e, n && fY(e)), i = t !== void 0;
+ rY(e.table, (a) => {
+ let o = a.findIndex((t) => t.id === e.id), s = o === -1 ? void 0 : a[o], c = [], l, u = i ? t : r === "desc", d = !!(a.length && fY(e) && n);
return l = d ? s ? "toggle" : "add" : s ? "toggle" : "replace", l === "toggle" && (i || r || (l = "remove")), l === "add" ? (c = [...a, {
id: e.id,
desc: u
@@ -58048,40 +58073,40 @@ function lY(e, t, n) {
}], c;
});
}
-function uY(e) {
- return e.columnDef.sortDescFirst ?? e.table.options.sortDescFirst ?? sY(e) === "desc" ? "desc" : "asc";
+function lY(e) {
+ return e.columnDef.sortDescFirst ?? e.table.options.sortDescFirst ?? oY(e) === "desc" ? "desc" : "asc";
}
-function dY(e, t) {
- let n = uY(e), r = mY(e);
+function uY(e, t) {
+ let n = lY(e), r = pY(e);
return r ? r !== n && (e.table.options.enableSortingRemoval ?? !0) && (!t || (e.table.options.enableMultiRemove ?? !0)) ? !1 : r === "desc" ? "asc" : "desc" : n;
}
-function fY(e) {
+function dY(e) {
return (e.columnDef.enableSorting ?? !0) && (e.table.options.enableSorting ?? !0) && !!e.accessorFn;
}
-function pY(e) {
+function fY(e) {
return e.columnDef.enableMultiSort ?? e.table.options.enableMultiSort ?? !!e.accessorFn;
}
-function mY(e) {
+function pY(e) {
let t = e.table.atoms.sorting?.get()?.find((t) => t.id === e.id);
return t ? t.desc ? "desc" : "asc" : !1;
}
-function jxe(e) {
+function Ixe(e) {
return e.table.atoms.sorting?.get()?.findIndex((t) => t.id === e.id) ?? -1;
}
-function Mxe(e) {
- iY(e.table, (t) => t.length ? t.filter((t) => t.id !== e.id) : []);
+function Lxe(e) {
+ rY(e.table, (t) => t.length ? t.filter((t) => t.id !== e.id) : []);
}
-function Nxe(e) {
- let t = fY(e);
+function Rxe(e) {
+ let t = dY(e);
return (n) => {
- t && lY(e, void 0, pY(e) ? e.table.options.isMultiSortEvent?.(n) : !1);
+ t && cY(e, void 0, fY(e) ? e.table.options.isMultiSortEvent?.(n) : !1);
};
}
// node_modules/@tanstack/table-core/dist/features/row-sorting/rowSortingFeature.js
-var hY = {
+var mY = {
getInitialState(e) {
return {
- sorting: kxe(),
+ sorting: Pxe(),
...e
};
},
@@ -58094,58 +58119,58 @@ var hY = {
getDefaultTableOptions(e) {
return {
autoResetSorting: !1,
- onSortingChange: Wq("sorting", e),
+ onSortingChange: Uq("sorting", e),
isMultiSortEvent: (e) => e.shiftKey
};
},
assignColumnPrototype(e, t) {
- $q("rowSortingFeature", e, t, {
- column_getAutoSortFn: { fn: (e) => oY(e) },
- column_getAutoSortDir: { fn: (e) => sY(e) },
- column_getSortFn: { fn: (e) => cY(e) },
- column_toggleSorting: { fn: (e, t, n) => lY(e, t, n) },
- column_getFirstSortDir: { fn: (e) => uY(e) },
- column_getNextSortingOrder: { fn: (e, t) => dY(e, t) },
- column_getCanSort: { fn: (e) => fY(e) },
- column_getCanMultiSort: { fn: (e) => pY(e) },
- column_getIsSorted: { fn: (e) => mY(e) },
- column_getSortIndex: { fn: (e) => jxe(e) },
- column_clearSorting: { fn: (e) => Mxe(e) },
- column_getToggleSortingHandler: { fn: (e) => Nxe(e) }
+ Qq("rowSortingFeature", e, t, {
+ column_getAutoSortFn: { fn: (e) => aY(e) },
+ column_getAutoSortDir: { fn: (e) => oY(e) },
+ column_getSortFn: { fn: (e) => sY(e) },
+ column_toggleSorting: { fn: (e, t, n) => cY(e, t, n) },
+ column_getFirstSortDir: { fn: (e) => lY(e) },
+ column_getNextSortingOrder: { fn: (e, t) => uY(e, t) },
+ column_getCanSort: { fn: (e) => dY(e) },
+ column_getCanMultiSort: { fn: (e) => fY(e) },
+ column_getIsSorted: { fn: (e) => pY(e) },
+ column_getSortIndex: { fn: (e) => Ixe(e) },
+ column_clearSorting: { fn: (e) => Lxe(e) },
+ column_getToggleSortingHandler: { fn: (e) => Rxe(e) }
});
},
constructTableAPIs(e) {
- Qq("rowSortingFeature", e, {
- table_autoResetSorting: { fn: () => Axe(e) },
- table_setSorting: { fn: (t) => iY(e, t) },
- table_resetSorting: { fn: (t) => aY(e, t) }
+ Zq("rowSortingFeature", e, {
+ table_autoResetSorting: { fn: () => Fxe(e) },
+ table_setSorting: { fn: (t) => rY(e, t) },
+ table_resetSorting: { fn: (t) => iY(e, t) }
});
}
-}, Pxe = typeof window > "u" ? F.useEffect : F.useLayoutEffect;
-function gY(e, t) {
+}, zxe = typeof window > "u" ? F.useEffect : F.useLayoutEffect;
+function hY(e, t) {
let [{ table: n, rootSource: r }] = (0, F.useState)(() => {
- let t = Jbe({
+ let t = $be({
...e,
features: {
- coreReactivityFeature: Dye(),
+ coreReactivityFeature: Mye(),
...e.features
}
});
- return t.Subscribe = ((e) => Cye({
+ return t.Subscribe = ((e) => Oye({
...e,
source: e.source ?? t.store
- })), t.FlexRender = fye, {
+ })), t.FlexRender = _ye, {
table: t,
- rootSource: Eye(t.store, Fq)
+ rootSource: jye(t.store, Pq)
};
}), i = n;
- hJ(i, (t) => ({
+ mJ(i, (t) => ({
...t,
...e
}), { syncExternalState: !1 });
- let a = i.options.state, o = r.get(), s = Rq(r, t, { compare: Fq });
- return Pxe(() => {
- r.markCommitted(o), mJ(i, a ?? null, Fq);
+ let a = i.options.state, o = r.get(), s = Lq(r, t, { compare: Pq });
+ return zxe(() => {
+ r.markCommitted(o), pJ(i, a ?? null, Pq);
}), (0, F.useMemo)(() => ({
...n,
options: e,
@@ -58157,18 +58182,18 @@ function gY(e, t) {
]);
}
// src/react/boardui/components/base/table/table.tsx
-function _Y({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
+function gY({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
- className: jL("w-full overflow-x-auto", n),
- children: /* @__PURE__ */ (0, I.jsx)(sme, {
+ className: NL("w-full overflow-x-auto", n),
+ children: /* @__PURE__ */ (0, I.jsx)(lme, {
ref: r,
...i,
- className: jL("bui-table", e === "sm" && "bui-table-sm", t)
+ className: NL("bui-table", e === "sm" && "bui-table-sm", t)
})
});
}
// src/react/catalog-grid/catalog-table-columns.ts
-var vY = "peach.catalog-column-widths.v1", yY = "peach.catalog-column-visibility.v1", Fxe = {
+var _Y = "peach.catalog-column-widths.v1", vY = "peach.catalog-column-visibility.v1", Bxe = {
select: {
width: 48,
min: 48,
@@ -58234,13 +58259,13 @@ var vY = "peach.catalog-column-widths.v1", yY = "peach.catalog-column-visibility
min: 144,
max: 560
}
-}, Ixe = {
+}, Vxe = {
code: !1,
o: !1,
new: !1,
played: !1,
release: !1
-}, Lxe = {
+}, Hxe = {
select: "选择",
name: "作品",
dur: "时长",
@@ -58254,7 +58279,7 @@ var vY = "peach.catalog-column-widths.v1", yY = "peach.catalog-column-visibility
release: "发行时间",
code: "番号",
tags: "标签"
-}, bY = [
+}, yY = [
"select",
"name",
"tags",
@@ -58270,13 +58295,13 @@ var vY = "peach.catalog-column-widths.v1", yY = "peach.catalog-column-visibility
"release"
].map((e) => ({
id: e,
- label: Lxe[e],
- ...Fxe[e],
+ label: Hxe[e],
+ ...Bxe[e],
flex: e === "name",
required: e === "select" || e === "name",
- visible: Ixe[e] !== !1
+ visible: Vxe[e] !== !1
}));
-function xY(e) {
+function bY(e) {
try {
let t = JSON.parse(localStorage.getItem(e) || "{}");
return t && typeof t == "object" && !Array.isArray(t) ? t : {};
@@ -58284,9 +58309,9 @@ function xY(e) {
return {};
}
}
-function Rxe() {
- let e = xY(vY), t = xY(yY);
- return bY.filter((e) => e.id !== "select" && (e.required || (typeof t[e.id] == "boolean" ? t[e.id] === !0 : e.visible))).map((t) => {
+function Uxe() {
+ let e = bY(_Y), t = bY(vY);
+ return yY.filter((e) => e.id !== "select" && (e.required || (typeof t[e.id] == "boolean" ? t[e.id] === !0 : e.visible))).map((t) => {
let n = e[t.id], r = typeof n == "number" && Number.isFinite(n) && !(t.flex && n === t.width);
return {
id: t.id,
@@ -58297,37 +58322,37 @@ function Rxe() {
});
}
// src/react/library-processing/completion-row.ts
-var SY = "peach.catalog.completion-row";
-function CY() {
+var xY = "peach.catalog.completion-row";
+function SY() {
try {
- return localStorage.getItem(SY) === "1";
+ return localStorage.getItem(xY) === "1";
} catch {
return !1;
}
}
-function zxe(e) {
+function Wxe(e) {
try {
- e ? localStorage.setItem(SY, "1") : localStorage.removeItem(SY);
+ e ? localStorage.setItem(xY, "1") : localStorage.removeItem(xY);
} catch {}
}
-var Bxe = "<i data-completion-skeleton class=\"skeleton-sheen\"></i>";
+var Gxe = "<i data-completion-skeleton class=\"skeleton-sheen\"></i>";
// src/catalog-content-skeleton.ts
-function wY(e) {
+function CY(e) {
return e === "name" ? "<span data-list-skeleton-name><i class=\"skeleton-sheen\"></i><b class=\"skeleton-sheen\"></b><span><i class=\"skeleton-sheen\"></i><i class=\"skeleton-sheen\"></i></span></span>" : "<i data-list-skeleton-bar class=\"skeleton-sheen\"></i>";
}
-function Vxe(e) {
- let t = Rxe(), n = t.some((e) => e.width === null), r = t.reduce((e, t) => e + (t.width ?? t.min), 0), i = t.map((e) => e.width === null ? "<col>" : `<col style="width:${e.width}px">`).join("") + (n ? "" : "<col>"), a = t.map((e) => `<th>${B(e.label)}</th>`).join("") + (n ? "" : "<th></th>"), o = `<tr>${t.map((e) => `<td>${wY(e.id)}</td>`).join("")}${n ? "" : "<td></td>"}</tr>`;
- return `<div class="peach-react catalog-skeleton" data-skeleton="catalog/list" role="status" aria-busy="true" aria-label="${B(e)}"><div data-list-skeleton aria-hidden="true"><div data-list-skeleton-tools><i class="skeleton-sheen"></i></div>` + (CY() ? Bxe : "") + `<div data-board-data-table><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm" style="table-layout:fixed;min-width:${r}px"><colgroup>${i}</colgroup><thead><tr>${a}</tr></thead><tbody>${o.repeat(6)}</tbody></table></div></div></div></div>`;
+function Kxe(e) {
+ let t = Uxe(), n = t.some((e) => e.width === null), r = t.reduce((e, t) => e + (t.width ?? t.min), 0), i = t.map((e) => e.width === null ? "<col>" : `<col style="width:${e.width}px">`).join("") + (n ? "" : "<col>"), a = t.map((e) => `<th>${B(e.label)}</th>`).join("") + (n ? "" : "<th></th>"), o = `<tr>${t.map((e) => `<td>${CY(e.id)}</td>`).join("")}${n ? "" : "<td></td>"}</tr>`;
+ return `<div class="peach-react catalog-skeleton" data-skeleton="catalog/list" role="status" aria-busy="true" aria-label="${B(e)}"><div data-list-skeleton aria-hidden="true"><div data-list-skeleton-tools><i class="skeleton-sheen"></i></div>` + (SY() ? Gxe : "") + `<div data-board-data-table><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm" style="table-layout:fixed;min-width:${r}px"><colgroup>${i}</colgroup><thead><tr>${a}</tr></thead><tbody>${o.repeat(6)}</tbody></table></div></div></div></div>`;
}
-function TY(e, t) {
- return gG() === "list" ? Vxe(e) : tc(e, {
+function wY(e, t) {
+ return yG() === "list" ? Kxe(e) : tc(e, {
variant: "cards",
className: "catalog-skeleton postercard-skeleton",
cardRatio: t
});
}
// src/react/components/data-table-frame.tsx
-function EY({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
+function TY({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
let i = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
let e = i.current?.querySelector(".overflow-x-auto") ?? null;
@@ -58341,9 +58366,9 @@ function EY({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
let t = e.target;
if (!(t instanceof Element)) return;
let r = t.closest("[role=\"row\"][data-key]");
- r && jK(e, r) && n(r.dataset.key);
+ r && AK(e, r) && n(r.dataset.key);
} : void 0,
- children: r ? /* @__PURE__ */ (0, I.jsx)(ame, {
+ children: r ? /* @__PURE__ */ (0, I.jsx)(sme, {
className: "relative min-w-0",
onResize: r.resize,
onResizeEnd: r.save,
@@ -58352,8 +58377,8 @@ function EY({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
});
}
// src/react/components/select.tsx
-function DY({ prefix: e, renderValue: t, size: n, ...r }) {
- if (e == null) return /* @__PURE__ */ (0, I.jsx)(qU, {
+function EY({ prefix: e, renderValue: t, size: n, ...r }) {
+ if (e == null) return /* @__PURE__ */ (0, I.jsx)(YU, {
...r,
size: n,
renderValue: t
@@ -58363,20 +58388,20 @@ function DY({ prefix: e, renderValue: t, size: n, ...r }) {
className: `shrink-0 text-text-tertiary ${i}`,
children: e
}), typeof t == "function" ? t(n) : t ?? n.defaultChildren] });
- return /* @__PURE__ */ (0, I.jsx)(qU, {
+ return /* @__PURE__ */ (0, I.jsx)(YU, {
...r,
size: n,
renderValue: a
});
}
// src/react/components/table-pagination.tsx
-function OY({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
+function DY({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
return t <= 1 ? null : /* @__PURE__ */ (0, I.jsxs)("nav", {
"aria-label": r,
"data-pagination-layout": "",
className: "inline-grid min-w-0 max-w-full items-center gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
disabled: e <= 1,
@@ -58389,7 +58414,7 @@ function OY({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
"aria-hidden": !0,
className: "px-1 text-body-2-regular text-text-tertiary",
children: "…"
- }) : /* @__PURE__ */ (0, I.jsx)(q, {
+ }) : /* @__PURE__ */ (0, I.jsx)(J, {
variant: t === e ? "secondary" : "ghost",
size: "small",
"aria-label": `第 ${t} 页`,
@@ -58398,7 +58423,7 @@ function OY({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
children: t
}) }, t === "…" ? `dots-${r}` : t))
}),
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
disabled: e >= t,
@@ -58409,11 +58434,11 @@ function OY({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
});
}
// src/react/components/table-controls.tsx
-function kY({ label: e, options: t, sorting: n, onChange: r }) {
+function OY({ label: e, options: t, sorting: n, onChange: r }) {
let i = n[0];
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex flex-none items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsxs)(DY, {
+ children: [/* @__PURE__ */ (0, I.jsxs)(EY, {
"aria-label": `${e}排序`,
prefix: "排序",
selectedKey: i?.id ?? "default",
@@ -58423,18 +58448,18 @@ function kY({ label: e, options: t, sorting: n, onChange: r }) {
desc: i?.desc ?? !1
}]);
},
- children: [/* @__PURE__ */ (0, I.jsx)(JU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(XU, {
id: "default",
children: "默认顺序"
- }), t.map((e) => /* @__PURE__ */ (0, I.jsx)(JU, {
+ }), t.map((e) => /* @__PURE__ */ (0, I.jsx)(XU, {
id: e.id,
children: e.label
}, e.id))]
- }), /* @__PURE__ */ (0, I.jsx)(q, {
+ }), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
iconOnly: !0,
disabled: !i,
- leadingIcon: kG,
+ leadingIcon: MG,
"data-icon-state": i?.desc ? "b" : "a",
"aria-label": `${e}改为${i?.desc ? "升序" : "降序"}`,
onClick: () => {
@@ -58446,7 +58471,7 @@ function kY({ label: e, options: t, sorting: n, onChange: r }) {
})]
});
}
-function AY({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记录", pageUnit: a = "条", pageSizes: o = [
+function kY({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记录", pageUnit: a = "条", pageSizes: o = [
10,
20,
50,
@@ -58461,7 +58486,7 @@ function AY({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记
children: `${l.toLocaleString()}–${u.toLocaleString()} / ${t.toLocaleString()} ${i}`
}), /* @__PURE__ */ (0, I.jsxs)("div", {
"data-toolbar-actions": "",
- children: [/* @__PURE__ */ (0, I.jsx)(DY, {
+ children: [/* @__PURE__ */ (0, I.jsx)(EY, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(n.pageSize),
@@ -58471,11 +58496,11 @@ function AY({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记
pageSize: Number(e)
});
},
- children: o.map((e) => /* @__PURE__ */ (0, I.jsx)(JU, {
+ children: o.map((e) => /* @__PURE__ */ (0, I.jsx)(XU, {
id: String(e),
children: `每页 ${e} ${a}`
}, e))
- }), /* @__PURE__ */ (0, I.jsx)(OY, {
+ }), /* @__PURE__ */ (0, I.jsx)(DY, {
label: `${e}分页`,
page: c + 1,
pages: s,
@@ -58488,7 +58513,7 @@ function AY({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记
});
}
// src/react/components/table-column-preferences.ts
-function jY(e) {
+function AY(e) {
try {
let t = JSON.parse(localStorage.getItem(e) || "{}");
return t && typeof t == "object" && !Array.isArray(t) ? t : {};
@@ -58496,17 +58521,17 @@ function jY(e) {
return {};
}
}
-function MY(e, t) {
+function jY(e, t) {
try {
localStorage.setItem(e, JSON.stringify(t));
} catch {}
}
-function Hxe(e, t) {
+function qxe(e, t) {
let n = (e) => Object.fromEntries(Object.entries(t).map(([t, n]) => {
let r = e[t];
return [t, typeof r == "number" && Number.isFinite(r) ? Math.max(n.min, Math.min(n.max, r)) : n.flex ? "1fr" : n.width];
})), [r, i] = (0, F.useState)(() => {
- let r = jY(e);
+ let r = AY(e);
for (let [e, n] of Object.entries(t)) n.flex && r[e] === n.width && delete r[e];
return n(r);
});
@@ -58523,7 +58548,7 @@ function Hxe(e, t) {
...r,
...Object.fromEntries(t)
});
- i(a), MY(e, a);
+ i(a), jY(e, a);
},
reset: () => {
i(n({}));
@@ -58533,26 +58558,26 @@ function Hxe(e, t) {
}
};
}
-function Uxe(e, t, n, r = {}) {
+function Jxe(e, t, n, r = {}) {
let i = (e) => ({
...r,
...Object.fromEntries(t.filter((t) => !n.includes(t) && typeof e[t] == "boolean").map((t) => [t, e[t] === !0]))
- }), [a, o] = (0, F.useState)(() => i(jY(e)));
+ }), [a, o] = (0, F.useState)(() => i(AY(e)));
return {
visibility: a,
change: (t) => {
let n = i(typeof t == "function" ? t(a) : t);
- o(n), MY(e, n);
+ o(n), jY(e, n);
}
};
}
-function NY(e, t, n) {
+function MY(e, t, n) {
let r = (0, F.useMemo)(() => Object.fromEntries(t.map((e) => [e.id, {
width: e.width ?? 180,
min: e.min ?? 96,
max: e.max ?? (e.flex ? 2e3 : 800),
flex: e.flex
- }])), [t]), i = Hxe(n?.widths ?? `peach.table.${e}.widths.v1`, r), a = Uxe(n?.visibility ?? `peach.table.${e}.visibility.v1`, t.map((e) => e.id), t.filter((e) => e.required).map((e) => e.id), Object.fromEntries(t.filter((e) => e.visible === !1).map((e) => [e.id, !1]))), o = t.some((e) => e.flex && a.visibility[e.id] !== !1 && i.widths[e.id] === "1fr");
+ }])), [t]), i = qxe(n?.widths ?? `peach.table.${e}.widths.v1`, r), a = Jxe(n?.visibility ?? `peach.table.${e}.visibility.v1`, t.map((e) => e.id), t.filter((e) => e.required).map((e) => e.id), Object.fromEntries(t.filter((e) => e.visible === !1).map((e) => [e.id, !1]))), o = t.some((e) => e.flex && a.visibility[e.id] !== !1 && i.widths[e.id] === "1fr");
return {
...i,
...a,
@@ -58571,15 +58596,15 @@ function NY(e, t, n) {
};
}
// src/react/catalog-grid/catalog-column-widths.ts
-function Wxe() {
- return NY("catalog", bY, {
- widths: vY,
- visibility: yY
+function Yxe() {
+ return MY("catalog", yY, {
+ widths: _Y,
+ visibility: vY
});
}
// src/react/components/rating-stars.tsx
-var PY = GV("star");
-function FY({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
+var NY = qV("star");
+function PY({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
let i = Math.max(0, Math.min(5, e)), a = Math.round(i);
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-rating-stars": "",
@@ -58602,25 +58627,25 @@ function FY({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
onClick: () => {
n || t(e);
},
- children: n === e ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Rs("正在保存评分") } }) : /* @__PURE__ */ (0, I.jsx)(PY, {})
+ children: n === e ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Rs("正在保存评分") } }) : /* @__PURE__ */ (0, I.jsx)(NY, {})
}, e) : /* @__PURE__ */ (0, I.jsx)("span", {
"data-rate": e,
"data-on": String(i >= e),
children: /* @__PURE__ */ (0, I.jsxs)("span", {
"data-rating-icon": "",
- children: [/* @__PURE__ */ (0, I.jsx)(PY, {}), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(NY, {}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-rating-fill": "",
style: { width: `${Math.max(0, Math.min(1, i - e + 1)) * 100}%` },
- children: /* @__PURE__ */ (0, I.jsx)(PY, {})
+ children: /* @__PURE__ */ (0, I.jsx)(NY, {})
})]
})
}, e))
});
}
// src/react/catalog-grid/catalog-table-controls.tsx
-function Gxe({ item: e, actions: t }) {
- let { rating: n } = e, r = qH(), i = (0, F.useRef)(0), a = VP(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {
- RP(e.id, { rating: t }), U.setQueryData(["item", e.id], (e) => e && {
+function Xxe({ item: e, actions: t }) {
+ let { rating: n } = e, r = YH(), i = (0, F.useRef)(0), a = KP(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {
+ UP(e.id, { rating: t }), U.setQueryData(["item", e.id], (e) => e && {
...e,
rating: t
});
@@ -58632,13 +58657,13 @@ function Gxe({ item: e, actions: t }) {
role: "group",
"aria-label": o,
title: o,
- children: [/* @__PURE__ */ (0, I.jsx)(FY, {
+ children: [/* @__PURE__ */ (0, I.jsx)(PY, {
value: a,
onRate: c,
busyStar: r.busy ? Number(r.busy) : void 0
- }), r.error ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ }), r.error ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "error",
- action: /* @__PURE__ */ (0, I.jsx)(q, {
+ action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
"aria-label": "立即重试评分",
@@ -58649,7 +58674,7 @@ function Gxe({ item: e, actions: t }) {
}) : null]
});
}
-function IY(e) {
+function FY(e) {
if (e == null || e === "") return "—";
let t = String(e);
if (/^\d{4}-\d{2}-\d{2}$/.test(t)) return t;
@@ -58664,22 +58689,22 @@ function IY(e) {
});
}
// src/react/components/selection-actions.tsx
-function LY({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {
+function IY({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-selection-actions": "",
"data-action-layout": t,
- className: jL("flex gap-2", t === "inline" ? "flex-nowrap items-center" : "flex-col"),
- children: [n, e.map((e) => e.href === void 0 ? /* @__PURE__ */ (0, I.jsx)(q, {
+ className: NL("flex gap-2", t === "inline" ? "flex-nowrap items-center" : "flex-col"),
+ children: [n, e.map((e) => e.href === void 0 ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "ghost",
size: "small",
disabled: e.disabled,
className: t === "inline" ? "shrink-0" : "w-full",
onClick: e.onPress,
children: e.label
- }, e.label) : /* @__PURE__ */ (0, I.jsx)(KH, {
+ }, e.label) : /* @__PURE__ */ (0, I.jsx)(JH, {
size: "small",
href: e.href,
- trailingIcon: _V,
+ trailingIcon: yV,
className: t === "inline" ? "shrink-0" : "w-full",
disabled: e.disabled,
onClick: r,
@@ -58688,15 +58713,15 @@ function LY({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {
});
}
// src/react/components/selection-popover.tsx
-function RY({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i, actions: a, actionLayout: o = "inline", empty: s = "暂无可选项" }) {
- let c = (0, F.useRef)(null), [l, u] = (0, F.useState)(!1), d = /* @__PURE__ */ (0, I.jsx)(LY, {
+function LY({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i, actions: a, actionLayout: o = "inline", empty: s = "暂无可选项" }) {
+ let c = (0, F.useRef)(null), [l, u] = (0, F.useState)(!1), d = /* @__PURE__ */ (0, I.jsx)(IY, {
actions: a,
layout: o,
onNavigate: () => u(!1)
}, "actions"), f = /* @__PURE__ */ (0, I.jsx)("div", {
"data-selection-options": "",
className: "flex min-w-0 flex-col gap-1",
- children: r.length ? r.map((e) => /* @__PURE__ */ (0, I.jsx)(_H, {
+ children: r.length ? r.map((e) => /* @__PURE__ */ (0, I.jsx)(yH, {
isSelected: e.selected,
className: "min-w-0 [&>span:last-child]:min-w-0 [&>span:last-child]:wrap-anywhere",
isDisabled: e.disabled,
@@ -58707,7 +58732,7 @@ function RY({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i,
children: s
})
}, "options");
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(q, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(J, {
ref: c,
variant: "secondary",
leadingIcon: n,
@@ -58716,14 +58741,14 @@ function RY({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i,
"aria-label": t,
onClick: () => u(!0),
children: t
- }), /* @__PURE__ */ (0, I.jsx)(uB, {
+ }), /* @__PURE__ */ (0, I.jsx)(fB, {
triggerRef: c,
isOpen: l,
onOpenChange: u,
placement: "bottom end",
offset: 4,
- className: jL(uH, "w-max overscroll-contain"),
- children: ({ placement: t }) => /* @__PURE__ */ (0, I.jsx)(XH, {
+ className: NL(fH, "w-max overscroll-contain"),
+ children: ({ placement: t }) => /* @__PURE__ */ (0, I.jsx)(QH, {
"aria-label": e,
"data-selection-placement": t ?? "bottom",
className: "flex w-max max-w-full flex-col gap-2 outline-none",
@@ -58732,13 +58757,13 @@ function RY({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i,
})] });
}
// src/react/components/table-column-controls.tsx
-function zY({ preferences: e, label: t = "表格" }) {
+function RY({ preferences: e, label: t = "表格" }) {
let n = e.columns.filter((e) => !e.required);
return /* @__PURE__ */ (0, I.jsxs)("div", {
role: "group",
"aria-label": `${t}列设置`,
className: "flex flex-none gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(RY, {
+ children: [/* @__PURE__ */ (0, I.jsx)(LY, {
label: `${t}显示列`,
triggerLabel: "显示列",
actionLayout: "fullWidth",
@@ -58758,7 +58783,7 @@ function zY({ preferences: e, label: t = "表格" }) {
label: "恢复默认显示",
onPress: () => e.change({})
}]
- }), /* @__PURE__ */ (0, I.jsx)(q, {
+ }), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "medium",
onClick: e.reset,
@@ -58766,39 +58791,39 @@ function zY({ preferences: e, label: t = "表格" }) {
})]
});
}
-function BY({ preferences: e, id: t }) {
+function zY({ preferences: e, id: t }) {
let n = e.columns.find((e) => e.id === t);
- return e.canResize(t) ? /* @__PURE__ */ (0, I.jsx)(gme, { "aria-label": `调整${n.label}列宽` }) : null;
+ return e.canResize(t) ? /* @__PURE__ */ (0, I.jsx)(vme, { "aria-label": `调整${n.label}列宽` }) : null;
}
// src/react/components/table-selection-header.tsx
-function VY(e, t) {
+function BY(e, t) {
let n = (t ? e.getPaginatedRowModel() : e.getFilteredRowModel()).flatRows.filter((e) => e.getCanSelect()), r = n.filter((e) => e.getIsSelected()).length;
return {
all: n.length > 0 && r === n.length,
some: r > 0 && r < n.length
};
}
-function HY({ table: e, label: t, page: n = !1, disabled: r = !1 }) {
- let { all: i, some: a } = VY(e, n);
- return /* @__PURE__ */ (0, I.jsx)(_H, {
+function VY({ table: e, label: t, page: n = !1, disabled: r = !1 }) {
+ let { all: i, some: a } = BY(e, n);
+ return /* @__PURE__ */ (0, I.jsx)(yH, {
slot: null,
"aria-label": t,
isDisabled: r,
isSelected: i,
isIndeterminate: a,
onChange: () => {
- let t = !VY(e, n).all;
+ let t = !BY(e, n).all;
n ? e.toggleAllPageRowsSelected(t) : e.toggleAllRowsSelected(t);
}
});
}
// src/react/catalog-grid/catalog-list-page.tsx
-var Kxe = _J({
- rowSortingFeature: hY,
- rowSelectionFeature: nY,
- rowPaginationFeature: FJ,
- columnVisibilityFeature: TJ
-}), qxe = [
+var Zxe = gJ({
+ rowSortingFeature: mY,
+ rowSelectionFeature: tY,
+ rowPaginationFeature: PJ,
+ columnVisibilityFeature: wJ
+}), Qxe = [
{
id: "name",
label: "名称"
@@ -58835,12 +58860,12 @@ var Kxe = _J({
id: "played",
label: "观看时间"
}
-], UY = /* @__PURE__ */ new Map();
-function Jxe(e) {
- let t = Wxe(), n = AK(), r = PP(e.filters || {}, !1), [i] = (0, F.useState)(() => {
+], HY = /* @__PURE__ */ new Map();
+function $xe(e) {
+ let t = Yxe(), n = kK(), r = zP(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)(() => UY.get(i) || {
+ }), [a, o] = (0, F.useState)(() => HY.get(i) || {
sorting: [],
pagination: {
pageIndex: 0,
@@ -58848,7 +58873,7 @@ function Jxe(e) {
}
}), { sorting: s, pagination: c } = a;
(0, F.useEffect)(() => {
- UY.set(i, a);
+ HY.set(i, a);
}, [i, a]);
let l = c.pageIndex * c.pageSize, u = s[0], d = Nt({
queryKey: [
@@ -58874,9 +58899,9 @@ function Jxe(e) {
let i = new URLSearchParams(r);
return i.set("offset", String(l)), i.set("limit", String(n.limit)), i.delete("count"), n.sort && i.set("sort", n.sort), n.dir && i.set("dir", n.dir), V(`/api/items?${i}`, t);
}
- }), f = d.data?.items || [], p = Number(d.data?.total || 0), m = e.filters?.state === "trash" ? [] : xq(f, e.layout.javImage), [h] = (0, F.useState)(CY);
+ }), f = d.data?.items || [], p = Number(d.data?.total || 0), m = e.filters?.state === "trash" ? [] : bq(f, e.layout.javImage), [h] = (0, F.useState)(SY);
(0, F.useEffect)(() => {
- d.data && !d.isPlaceholderData && zxe(m.length > 0);
+ d.data && !d.isPlaceholderData && Wxe(m.length > 0);
}, [
d.data,
d.isPlaceholderData,
@@ -58908,19 +58933,19 @@ function Jxe(e) {
p,
c.pageIndex
]);
- let g = e.selectMode ? Object.fromEntries([...e.selected].map((e) => [String(e), !0])) : {}, _ = gY({
- features: Kxe,
+ let g = e.selectMode ? Object.fromEntries([...e.selected].map((e) => [String(e), !0])) : {}, _ = hY({
+ features: Zxe,
columns: (0, F.useMemo)(() => {
- let t = gJ();
+ let t = hJ();
return t.columns([
t.display({
id: "select",
- header: ({ table: e }) => /* @__PURE__ */ (0, I.jsx)(HY, {
+ header: ({ table: e }) => /* @__PURE__ */ (0, I.jsx)(VY, {
table: e,
label: "全选本页作品",
disabled: d.isPlaceholderData
}),
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(_H, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(yH, {
slot: null,
"aria-label": `选择 ${e.helpers.displayName(t.original, t.original.name || "")}`,
isDisabled: d.isPlaceholderData,
@@ -58932,7 +58957,7 @@ function Jxe(e) {
id: "name",
header: "作品",
enableSorting: !0,
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Yxe, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(eSe, {
item: t.original,
props: e,
disabled: d.isPlaceholderData
@@ -58989,7 +59014,7 @@ function Jxe(e) {
id: "rating",
header: "评分",
enableSorting: !0,
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Gxe, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Xxe, {
item: t.original,
actions: e.actions
})
@@ -59010,13 +59035,13 @@ function Jxe(e) {
id: "played",
header: "观看时间",
enableSorting: !0,
- cell: ({ row: e }) => IY(e.original.last_played)
+ cell: ({ row: e }) => FY(e.original.last_played)
}),
t.accessor((e) => e.first_seen, {
id: "new",
header: "入库时间",
enableSorting: !0,
- cell: ({ row: e }) => IY(e.original.first_seen)
+ cell: ({ row: e }) => FY(e.original.first_seen)
}),
t.accessor((e) => e.release_date, {
id: "release",
@@ -59076,9 +59101,9 @@ function Jxe(e) {
"aria-label": "作品列表工具栏",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-toolbar-actions": "",
- children: [/* @__PURE__ */ (0, I.jsx)(zY, { preferences: t }), /* @__PURE__ */ (0, I.jsx)(kY, {
+ children: [/* @__PURE__ */ (0, I.jsx)(RY, { preferences: t }), /* @__PURE__ */ (0, I.jsx)(OY, {
label: "作品列表",
- options: qxe,
+ options: Qxe,
sorting: s,
onChange: (e) => _.setSorting(e)
})]
@@ -59088,21 +59113,21 @@ function Jxe(e) {
"data-completion-skeleton": "",
"aria-hidden": "true",
className: "skeleton-sheen"
- }) : null : /* @__PURE__ */ (0, I.jsx)(Sq, {
+ }) : null : /* @__PURE__ */ (0, I.jsx)(xq, {
className: "",
assetIds: m
}),
- d.isError ? /* @__PURE__ */ (0, I.jsx)(gK, {
+ d.isError ? /* @__PURE__ */ (0, I.jsx)(hK, {
message: yn(d.error),
onRetry: () => void d.refetch()
}) : null,
- /* @__PURE__ */ (0, I.jsx)(EY, {
+ /* @__PURE__ */ (0, I.jsx)(TY, {
follow: !0,
preferences: t,
onRowClick: e.selectMode ? (t) => {
d.isPlaceholderData || e.actions.toggleSelection(Number(t), !1);
} : void 0,
- children: /* @__PURE__ */ (0, I.jsxs)(_Y, {
+ children: /* @__PURE__ */ (0, I.jsxs)(gY, {
"aria-label": "作品列表",
size: "sm",
sortDescriptor: u ? {
@@ -59113,47 +59138,47 @@ function Jxe(e) {
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, I.jsxs)(QB, { children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)($B, {
+ children: [/* @__PURE__ */ (0, I.jsxs)(eV, { children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(tV, {
id: e.id,
isRowHeader: e.id === "name",
allowsSorting: e.column.getCanSort(),
...t.columnProps(e.id),
children: ({ sortDirection: n }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex items-center gap-0.5",
- children: [Cq(e.column.columnDef.header, e.getContext()), e.column.getCanSort() ? /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [Sq(e.column.columnDef.header, e.getContext()), e.column.getCanSort() ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-sort-indicator": !0,
"data-direction": n || void 0,
- children: /* @__PURE__ */ (0, I.jsx)(sH, {})
+ children: /* @__PURE__ */ (0, I.jsx)(lH, {})
}) : null]
- }), /* @__PURE__ */ (0, I.jsx)(BY, {
+ }), /* @__PURE__ */ (0, I.jsx)(zY, {
preferences: t,
id: e.id
})] })
- }, e.id)), /* @__PURE__ */ (0, I.jsx)($B, {
+ }, e.id)), /* @__PURE__ */ (0, I.jsx)(tV, {
id: "remaining-space",
"aria-label": "行空白区域",
"data-table-space": "",
width: t.spaceWidth,
minWidth: 0
- })] }), /* @__PURE__ */ (0, I.jsx)(nV, {
+ })] }), /* @__PURE__ */ (0, I.jsx)(iV, {
renderEmptyState: () => d.isError ? "作品列表未取得" : "没有符合的作品",
- children: d.isPending ? Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, I.jsxs)(aV, {
+ children: d.isPending ? Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, I.jsxs)(sV, {
id: `skeleton-${t}`,
"data-list-skeleton-row": "",
"aria-hidden": "true",
- children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(sV, { children: /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: wY(e.id) } }) }, e.id)), /* @__PURE__ */ (0, I.jsx)(sV, { "data-table-space": "" })]
- }, `skeleton-${t}`)) : _.getRowModel().rows.map((e) => /* @__PURE__ */ (0, I.jsxs)(aV, {
+ children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(lV, { children: /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: CY(e.id) } }) }, e.id)), /* @__PURE__ */ (0, I.jsx)(lV, { "data-table-space": "" })]
+ }, `skeleton-${t}`)) : _.getRowModel().rows.map((e) => /* @__PURE__ */ (0, I.jsxs)(sV, {
id: e.id,
"data-catalog-row": "",
"data-id": e.original.id,
"data-library": n.get(e.original.library_id || "")?.color ? e.original.library_id : void 0,
"data-board-selected": e.getIsSelected() || void 0,
- children: [e.getVisibleCells().map((e) => /* @__PURE__ */ (0, I.jsx)(sV, { children: Cq(e.column.columnDef.cell, e.getContext()) }, e.id)), /* @__PURE__ */ (0, I.jsx)(sV, { "data-table-space": "" })]
+ children: [e.getVisibleCells().map((e) => /* @__PURE__ */ (0, I.jsx)(lV, { children: Sq(e.column.columnDef.cell, e.getContext()) }, e.id)), /* @__PURE__ */ (0, I.jsx)(lV, { "data-table-space": "" })]
}, e.id))
})]
})
}),
- d.data ? /* @__PURE__ */ (0, I.jsx)(AY, {
+ d.data ? /* @__PURE__ */ (0, I.jsx)(kY, {
label: "作品列表",
total: p,
pagination: c,
@@ -59164,10 +59189,10 @@ function Jxe(e) {
]
});
}
-function Yxe({ item: e, props: t, disabled: n }) {
+function eSe({ item: e, props: t, disabled: n }) {
let r = Co(e, "small", !1, t.layout.javImage), i = Number(e.part_group?.count) > 1 && e.part_group || null, a = Number(e.edition_group?.count) > 1 && e.edition_group || null, o = i?.title || e.name || "", s = t.helpers.displayName(e, o).trim() || "未命名作品", c = t.helpers.titleHtml(e, o).trim() || "未命名作品";
- nR();
- let { avatar: l, who: u } = zK(e), d = !i && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, f = AK({ names: !0 }), p = e.library_id ? f.get(e.library_id) : void 0, m = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), h = (e) => /* @__PURE__ */ (0, I.jsx)("svg", {
+ iR();
+ let { avatar: l, who: u } = RK(e), d = !i && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, f = kK({ names: !0 }), p = e.library_id ? f.get(e.library_id) : void 0, m = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), h = (e) => /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
@@ -59192,7 +59217,7 @@ function Yxe({ item: e, props: t, disabled: n }) {
children: /* @__PURE__ */ (0, I.jsxs)("span", {
"data-list-picture": "",
children: [
- r.html ? /* @__PURE__ */ (0, I.jsx)(ZU, {
+ r.html ? /* @__PURE__ */ (0, I.jsx)($U, {
artwork: r,
relayout: (e) => zl(e, "small")
}) : /* @__PURE__ */ (0, I.jsx)("span", { children: "无预览" }),
@@ -59247,7 +59272,7 @@ function Yxe({ item: e, props: t, disabled: n }) {
children: [p?.name ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-list-library": "",
title: `媒体库:${p.name}`,
- children: [/* @__PURE__ */ (0, I.jsx)(yU, { mark: p.icon }), p.name]
+ children: [/* @__PURE__ */ (0, I.jsx)(xU, { mark: p.icon }), p.name]
}) : null, u]
})]
})
@@ -59255,22 +59280,22 @@ function Yxe({ item: e, props: t, disabled: n }) {
});
}
// src/react/catalog-grid/catalog-grid-page.tsx
-function WY(e) {
- let t = yG();
- if (e.mode === "items") return /* @__PURE__ */ (0, I.jsx)(Zxe, { ...e });
- let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${PP(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
- if (t === "list" && !e.wall) return /* @__PURE__ */ (0, I.jsx)(Jxe, { ...e }, n);
+function UY(e) {
+ let t = SG();
+ if (e.mode === "items") return /* @__PURE__ */ (0, I.jsx)(nSe, { ...e });
+ let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${zP(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
+ if (t === "list" && !e.wall) return /* @__PURE__ */ (0, I.jsx)($xe, { ...e }, n);
let r = e.mode === "entity" ? "entity" : `catalog:${!!e.wall}`;
- return /* @__PURE__ */ (0, I.jsx)(Qxe, { ...e }, r);
+ return /* @__PURE__ */ (0, I.jsx)(rSe, { ...e }, r);
}
-function Xxe({ name: e }) {
+function tSe({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function GY({ children: e, selectMode: t }) {
+function WY({ children: e, selectMode: t }) {
let n = (0, F.useRef)(null), [r, i] = (0, F.useState)(!1);
return (0, F.useLayoutEffect)(() => {
let e = n.current;
@@ -59286,8 +59311,8 @@ function GY({ children: e, selectMode: t }) {
children: e
});
}
-function Zxe(e) {
- let { actions: t } = e, n = (0, F.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, I.jsx)(VK, {
+function nSe(e) {
+ let { actions: t } = e, n = (0, F.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, I.jsx)(BK, {
item: i,
variant: r,
layout: e.layout,
@@ -59301,13 +59326,13 @@ function Zxe(e) {
return r === "next" ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-media-next-row": "",
children: i
- }) : /* @__PURE__ */ (0, I.jsx)(GY, {
+ }) : /* @__PURE__ */ (0, I.jsx)(WY, {
selectMode: e.selectMode,
children: i
});
}
-function Qxe(e) {
- let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? lue(e) : cue(e), [s] = (0, F.useState)(() => e.wall ? FP(o.queryKey) : void 0), c = JSON.stringify(o.queryKey), l = (0, F.useMemo)(() => e.restoreNavigation ? FP(o.queryKey) : void 0, [c, e.restoreNavigation]) || s || (i && e.initial ? {
+function rSe(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 ? BP(o.queryKey) : void 0), c = JSON.stringify(o.queryKey), l = (0, F.useMemo)(() => e.restoreNavigation ? BP(o.queryKey) : void 0, [c, e.restoreNavigation]) || s || (i && e.initial ? {
pages: [{
...e.initial,
items: e.initial.items || [],
@@ -59333,7 +59358,7 @@ function Qxe(e) {
u.isPlaceholderData,
e.revision
]);
- let { tiles: f, pageStarts: p } = (0, F.useMemo)(() => due(u.data?.pages || [], {
+ let { tiles: f, pageStarts: p } = (0, F.useMemo)(() => uue(u.data?.pages || [], {
collapse: e.groupCollapse !== !1,
mix: !!e.mix && !a,
javImage: r.javImage
@@ -59343,7 +59368,7 @@ function Qxe(e) {
e.mix,
a,
r.javImage
- ]), m = f.reduce((e, t) => e + +(t.kind === "card"), 0), h = Number(u.data?.pages[0]?.total || 0), g = i || Jve(e.filters), _ = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, v = f.flatMap((e) => e.kind === "card" && Hve(e.item) ? [e.item] : []), y = a ? [] : xq(f.flatMap((e) => e.kind === "card" ? [e.item] : []), r.javImage), b = (0, F.useRef)(null), x = $xe(e, u.isPlaceholderData ? void 0 : u.data, f, p, b);
+ ]), m = f.reduce((e, t) => e + +(t.kind === "card"), 0), h = Number(u.data?.pages[0]?.total || 0), g = i || $ve(e.filters), _ = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, v = f.flatMap((e) => e.kind === "card" && qve(e.item) ? [e.item] : []), y = a ? [] : bq(f.flatMap((e) => e.kind === "card" ? [e.item] : []), r.javImage), b = (0, F.useRef)(null), x = iSe(e, u.isPlaceholderData ? void 0 : u.data, f, p, b);
(0, F.useLayoutEffect)(() => {
if (!u.data || u.isPlaceholderData) return;
let t = !0;
@@ -59371,12 +59396,12 @@ function Qxe(e) {
let C = (0, F.useCallback)((e, t) => n.open(e, t), [n]), w = (0, F.useCallback)((e, t) => n.openResource(e, t), [n]), T = (0, F.useCallback)((e) => n.openShort(e), [n]), E = (0, F.useCallback)(async () => {
let e = await u.fetchNextPage();
if (e.isFetchNextPageError) throw e.error;
- }, [u.fetchNextPage]), D = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)(tSe, {
+ }, [u.fetchNextPage]), D = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)(oSe, {
seed: i.seed,
layout: r,
helpers: t,
actions: n
- }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, I.jsx)(VK, {
+ }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, I.jsx)(BK, {
item: i.item,
grouped: e.groupCollapse !== !1,
variant: a && i.item.medium && i.item.medium !== "video" ? "resource" : "grid",
@@ -59388,8 +59413,8 @@ function Qxe(e) {
actions: n,
onOpen: a ? w : C
}, i.item.id), O = () => {
- if (_ && e.wall) return /* @__PURE__ */ (0, I.jsx)(rye, {
- sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${PP(e.filters || {}, !!e.excludeVertical)}`,
+ if (_ && e.wall) return /* @__PURE__ */ (0, I.jsx)(cye, {
+ sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${zP(e.filters || {}, !!e.excludeVertical)}`,
items: v,
finite: g,
hasMore: !!u.hasNextPage,
@@ -59397,7 +59422,7 @@ function Qxe(e) {
loading: u.isPending || !u.data && u.isFetching,
error: !u.data && !u.isPending ? yn(u.error) : "",
retry: () => void u.refetch(),
- emptyHtml: u.data && !v.length ? oye({
+ emptyHtml: u.data && !v.length ? dye({
libraryEmpty: !!u.data.pages[0]?.libraryEmpty,
matches: h,
hasMore: !!u.hasNextPage,
@@ -59412,7 +59437,7 @@ function Qxe(e) {
javImage: r.javImage
}, g ? "finite" : "explore");
if (u.isPending) return null;
- if (!u.data) return /* @__PURE__ */ (0, I.jsx)(gK, {
+ if (!u.data) return /* @__PURE__ */ (0, I.jsx)(hK, {
message: yn(u.error),
onRetry: () => void u.refetch()
});
@@ -59429,12 +59454,12 @@ function Qxe(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: mue(f, x).map((t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(GY, { children: t.tiles.map(D) }), t.strip ? /* @__PURE__ */ (0, I.jsx)(eSe, {
+ children: pue(f, x).map((t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(WY, { children: t.tiles.map(D) }), t.strip ? /* @__PURE__ */ (0, I.jsx)(aSe, {
cut: t.strip,
props: e,
onOpen: T
}) : null] }, t.start))
- }), u.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(KY, {
+ }), u.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(GY, {
entity: i,
load: E,
enabled: () => !u.isPlaceholderData && e.canLoadMore?.() !== !1
@@ -59444,14 +59469,14 @@ function Qxe(e) {
ref: b,
"data-media-body": "",
"aria-busy": u.isFetching && !u.isFetchingNextPage,
- children: [/* @__PURE__ */ (0, I.jsx)(Sq, { assetIds: y }), e.wall ? O() : /* @__PURE__ */ (0, I.jsx)(_K, {
+ children: [/* @__PURE__ */ (0, I.jsx)(xq, { assetIds: y }), e.wall ? O() : /* @__PURE__ */ (0, I.jsx)(gK, {
pending: u.isPending,
skeletonHtml: e.skeletonHtml,
children: O()
})]
});
}
-function KY({ entity: e, load: t, enabled: n, children: r }) {
+function GY({ entity: e, load: t, enabled: n, children: r }) {
let i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(!1), s = (0, F.useRef)(!1), [c, l] = (0, F.useState)({
busy: !1,
error: ""
@@ -59493,7 +59518,7 @@ function KY({ entity: e, load: t, enabled: n, children: r }) {
if (!e) return;
let t = new IntersectionObserver((e) => {
e.some((e) => e.isIntersecting) && d(!1);
- }, { rootMargin: hK });
+ }, { rootMargin: mK });
return a.current = t, t.observe(e), () => {
t.disconnect(), a.current = null;
};
@@ -59516,18 +59541,18 @@ function KY({ entity: e, load: t, enabled: n, children: r }) {
hidden: !!c.error,
onClick: () => void d(!0),
dangerouslySetInnerHTML: { __html: Bs(zs) }
- }), c.error ? /* @__PURE__ */ (0, I.jsx)(gK, {
+ }), c.error ? /* @__PURE__ */ (0, I.jsx)(hK, {
message: c.error,
onRetry: () => void d(!0)
}) : null] });
}
-function $xe(e, t, n, r, i) {
- let a = ["catalog-short-layout", PP(e.filters || {}, !!e.excludeVertical)], o = `${a[1]}:${e.revision}`, s = () => {
+function iSe(e, t, n, r, i) {
+ let a = ["catalog-short-layout", zP(e.filters || {}, !!e.excludeVertical)], o = `${a[1]}:${e.revision}`, s = () => {
let t = e.restoreNavigation ? U.getQueryData(a) : void 0, n = {
parts: /* @__PURE__ */ new Set(),
editions: /* @__PURE__ */ new Set()
};
- return t && IP(t.cuts.flatMap((e) => e.items), n, e.groupCollapse !== !1), {
+ return t && VP(t.cuts.flatMap((e) => e.items), n, e.groupCollapse !== !1), {
stamp: o,
cuts: t?.cuts || [],
offset: t?.offset || 0,
@@ -59553,7 +59578,7 @@ function $xe(e, t, n, r, i) {
let r = new AbortController();
p.controllers.push(r);
let i = n - 1;
- V(`/api/items?${pue(e.filters || {}, p.offset)}`, r.signal).then((e) => {
+ V(`/api/items?${fue(e.filters || {}, p.offset)}`, r.signal).then((e) => {
if (c.current !== p || r.signal.aborted) return;
let t = e.items || [];
t.length ? f({
@@ -59567,9 +59592,9 @@ function $xe(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 = fue(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 _ = IP(d.items, p.groups, e.groupCollapse !== !1);
+ let _ = VP(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,
@@ -59586,7 +59611,7 @@ function $xe(e, t, n, r, i) {
});
}, [d]), m;
}
-function eSe({ cut: e, props: t, onOpen: n }) {
+function aSe({ cut: e, props: t, onOpen: n }) {
let r = (0, F.useRef)(null), { wireDrag: i } = t;
return (0, F.useEffect)(() => {
r.current && i(r.current);
@@ -59602,12 +59627,12 @@ function eSe({ cut: e, props: t, onOpen: n }) {
type: "button",
"data-shorts-enter": "",
onClick: () => t.actions.openShorts(),
- children: [/* @__PURE__ */ (0, I.jsx)(Xxe, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "进入沉浸模式" })]
+ children: [/* @__PURE__ */ (0, I.jsx)(tSe, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "进入沉浸模式" })]
})
] }), /* @__PURE__ */ (0, I.jsx)("div", {
ref: r,
"data-shorts-row": "",
- children: e.items.map((e) => /* @__PURE__ */ (0, I.jsx)(VK, {
+ children: e.items.map((e) => /* @__PURE__ */ (0, I.jsx)(BK, {
item: e,
variant: "short",
layout: t.layout,
@@ -59622,17 +59647,17 @@ function eSe({ cut: e, props: t, onOpen: n }) {
})]
});
}
-function qY(e, t, n) {
+function KY(e, t, n) {
return wo(e, t.active && e.is_jav ? t.size : "small", n, t.javImage);
}
-function tSe({ seed: e, layout: t, helpers: n, actions: r }) {
+function oSe({ 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 = Ao(e, n.tagLabel), s = (0, F.useCallback)(async () => {
- let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => LP(e, t.javImage)).slice(0, 9);
- return i.current = new Map(n.map((e) => [String(e.id), qY(e, t, !0).html])), n.map((e) => String(e.id));
- }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = qY(e, t, !1);
- return /* @__PURE__ */ (0, I.jsx)(GK, {
+ let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => HP(e, t.javImage)).slice(0, 9);
+ return i.current = new Map(n.map((e) => [String(e.id), KY(e, t, !0).html])), n.map((e) => String(e.id));
+ }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = KY(e, t, !1);
+ return /* @__PURE__ */ (0, I.jsx)(WK, {
"data-mix-seed": String(e.id),
name: `Mix · ${o}`,
caption: `${n.displayName(e, e.name || "")}及相似作品`,
@@ -59642,12 +59667,12 @@ function tSe({ seed: e, layout: t, helpers: n, actions: r }) {
wholeCard: !0,
poster: null,
artwork: l,
- artworkIdentity: c === "small" ? l.html : qY(e, {
+ artworkIdentity: c === "small" ? l.html : KY(e, {
...t,
size: "small"
}, !1).html,
relayoutArt: (e) => zl(e, c),
- ratio: RK(e, "grid", t),
+ ratio: LK(e, "grid", t),
flipImages: s,
faceHtml: (e) => i.current.get(e) || "",
canFlip: r.canFlip,
@@ -59658,37 +59683,37 @@ function tSe({ seed: e, layout: t, helpers: n, actions: r }) {
});
}
// src/react/media-sources.ts
-async function JY(e) {
+async function qY(e) {
await U.fetchQuery({
queryKey: _r,
queryFn: () => vr(e)
});
}
-var nSe = (e) => (e?.sources ?? []).filter((e) => gn.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), rSe = "/api/duplicates?limit=120", YY = ["duplicates"], XY = "/api/batch", ZY = (e) => V(rSe, e), iSe = /[\s\-_.()[\]【】/\\]/;
-function aSe(e) {
+var sSe = (e) => (e?.sources ?? []).filter((e) => gn.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), cSe = "/api/duplicates?limit=120", JY = ["duplicates"], YY = "/api/batch", XY = (e) => V(cSe, e), lSe = /[\s\-_.()[\]【】/\\]/;
+function uSe(e) {
if (e.length < 2) return "";
let t = 0, n = e[0];
for (; t < n.length && e.every((e) => e[t] === n[t]);) t += 1;
e.some((e) => e.length <= t) && (t = Math.max(0, t - 1));
let r = t;
- for (; r > 0 && !iSe.test(n[r - 1]);) --r;
+ for (; r > 0 && !lSe.test(n[r - 1]);) --r;
return r >= 8 ? n.slice(0, r) : "";
}
-var oSe = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;
-async function sSe(e) {
+var dSe = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;
+async function fSe(e) {
await Promise.all([U.fetchQuery({
- queryKey: YY,
- queryFn: () => ZY(e)
- }), JY(e)]);
+ queryKey: JY,
+ queryFn: () => XY(e)
+ }), qY(e)]);
}
-var cSe = {
+var pSe = {
largest: "最大的一个",
longest: "最长的一个",
115: "115(没有则留最大)",
pikpak: "PikPak(没有则留最大)",
all: "零个文件"
-}, lSe = (e, t) => t.filter((t) => e.some((e) => e.location === t)), QY = (e, t) => lSe(e, t).filter((t) => e.some((e) => e.location !== t)), uSe = (e, t) => t.filter((t) => e.some((e) => QY(e.files, [t]).length));
-function dSe(e, t) {
+}, mSe = (e, t) => t.filter((t) => e.some((e) => e.location === t)), ZY = (e, t) => mSe(e, t).filter((t) => e.some((e) => e.location !== t)), hSe = (e, t) => t.filter((t) => e.some((e) => ZY(e.files, [t]).length));
+function gSe(e, t) {
let n = [];
for (let r of e) {
if (t === "all") {
@@ -59707,19 +59732,19 @@ function dSe(e, t) {
}
return n;
}
-function fSe(e, t) {
+function _Se(e, t) {
let n = new Set(t);
return e.reduce((e, t) => e + t.files.reduce((e, t) => e + (n.has(t.id) && t.size || 0), 0), 0);
}
-async function pSe(e, t) {
- for (let n = 0; n < e.length; n += 200) await H(XY, {
+async function vSe(e, t) {
+ for (let n = 0; n < e.length; n += 200) await H(YY, {
ids: e.slice(n, n + 200),
operation: t,
...t === "dispose" ? { disposal_reason: "duplicate" } : {}
});
}
// src/react/media-repair/media-repair.ts
-var $Y = "/api/media-repair", eX = ["media-repair"], tX = ["media-repair", "libraries"], mSe = {
+var QY = "/api/media-repair", $Y = ["media-repair"], eX = ["media-repair", "libraries"], ySe = {
status: "idle",
library: "",
stage: "",
@@ -59731,39 +59756,39 @@ var $Y = "/api/media-repair", eX = ["media-repair"], tX = ["media-repair", "libr
missing_tool: 0,
skipped: 0,
message: ""
-}, nX = (e) => V($Y, e), rX = async (e) => (await V("/api/libraries", e)).libraries || [];
-async function hSe(e) {
+}, tX = (e) => V(QY, e), nX = async (e) => (await V("/api/libraries", e)).libraries || [];
+async function bSe(e) {
await Promise.all([U.fetchQuery({
+ queryKey: $Y,
+ queryFn: () => tX(e)
+ }), U.fetchQuery({
queryKey: eX,
queryFn: () => nX(e)
- }), U.fetchQuery({
- queryKey: tX,
- queryFn: () => rX(e)
})]);
}
-var iX = (e) => Number(e).toLocaleString();
-function gSe(e) {
+var rX = (e) => Number(e).toLocaleString();
+function xSe(e) {
if (e.status === "running") {
- let t = e.total ? `${iX(Math.min(e.checked || 0, e.total))} / ${iX(e.total)}` : "准备中";
+ let t = e.total ? `${rX(Math.min(e.checked || 0, e.total))} / ${rX(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${iX(e.repaired)} 部,${iX(e.failed)} 部修不了` : `修好 ${iX(e.repaired)} 部` : "";
+ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${rX(e.repaired)} 部,${rX(e.failed)} 部修不了` : `修好 ${rX(e.repaired)} 部` : "";
}
-var _Se = (e) => `${iX(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, vSe = "/api/quality-goals?limit=200", aX = ["quality-goals"], oX = (e) => V(vSe, e);
-async function ySe(e) {
+var SSe = (e) => `${rX(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, CSe = "/api/quality-goals?limit=200", iX = ["quality-goals"], aX = (e) => V(CSe, e);
+async function wSe(e) {
await U.fetchQuery({
- queryKey: aX,
- queryFn: () => oX(e)
+ queryKey: iX,
+ queryFn: () => aX(e)
});
}
-var bSe = (e) => e.has_cover ? so(e) : `/poster?id=${e.id}&c=4`;
+var TSe = (e) => e.has_cover ? so(e) : `/poster?id=${e.id}&c=4`;
// src/selection.ts
-function sX(e, t, n, r, i, a = i || !e.has(r)) {
+function oX(e, t, n, r, i, a = i || !e.has(r)) {
let o = n === null ? -1 : t.indexOf(n), s = t.indexOf(r);
return i && o >= 0 && s >= 0 ? t.slice(Math.min(o, s), Math.max(o, s) + 1).forEach((t) => e.add(t)) : a ? e.add(r) : e.delete(r), r;
}
// src/react/review/review.ts
-var xSe = "/api/review", SSe = "/api/review/decision", CSe = "/api/review/genre", cX = ["review"], lX = {
+var ESe = "/api/review", DSe = "/api/review/decision", OSe = "/api/review/genre", sX = ["review"], cX = {
metadata_fields: "元数据字段",
creator_tags: "创作者标签",
studio_logos: "厂牌 Logo",
@@ -59773,40 +59798,40 @@ var xSe = "/api/review", SSe = "/api/review/decision", CSe = "/api/review/genre"
fc2_markings: "FC2 评论标记",
fc2_similarity: "FC2 跨号相似",
video_endcards: "片尾/出处证据"
-}, wSe = Object.keys(lX), TSe = "metadata_fields", uX = (e) => typeof e == "string" && Object.hasOwn(lX, e), ESe = {
+}, kSe = Object.keys(cX), ASe = "metadata_fields", lX = (e) => typeof e == "string" && Object.hasOwn(cX, e), jSe = {
creator_tags: "creator",
western_identity: "creator"
-}, dX = [
+}, uX = [
"pending",
"later",
"ignored"
-], fX = {
+], dX = {
pending: "待处理",
later: "稍后处理",
ignored: "已忽略"
-}, DSe = {
+}, MSe = {
approved: "已通过",
rejected: "已忽略",
skipped: "稍后处理"
-}, pX = (e) => e === "later" || e === "ignored" ? e : "pending", mX = (e, t) => t === "pending" ? {
+}, fX = (e) => e === "later" || e === "ignored" ? e : "pending", pX = (e, t) => t === "pending" ? {
sections: e.sections,
counts: e.counts
} : e.queues[t];
-function OSe(e, t) {
+function NSe(e, t) {
return {
...e,
- ...t(mX(e, "pending")),
+ ...t(pX(e, "pending")),
queues: {
later: t(e.queues.later),
ignored: t(e.queues.ignored)
}
};
}
-function kSe(e, t) {
+function PSe(e, t) {
let n = [["candidates", t ? "按来源数量" : "不分组"]];
return e.some((e) => e.source || e.candidates?.some((e) => e.source)) && n.push(["source", "按来源"]), e.some((e) => e.field) && n.push(["field", "按字段"]), n;
}
-function hX(e, t) {
+function mX(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e) {
let e, i;
@@ -59823,10 +59848,10 @@ function hX(e, t) {
}
return [...n.values()];
}
-function ASe(e, t, n) {
- return n && hX(e, t).find((e) => e.key === n)?.rows || e;
+function FSe(e, t, n) {
+ return n && mX(e, t).find((e) => e.key === n)?.rows || e;
}
-function jSe(e, t) {
+function ISe(e, t) {
let n = mr(e.length, 20), r = hr(t, n);
return {
page: r,
@@ -59834,32 +59859,32 @@ function jSe(e, t) {
rows: e.slice((r - 1) * 20, r * 20)
};
}
-function MSe(e) {
+function LSe(e) {
return e.length ? [...new Set(e.flatMap((e) => e.candidates?.map((e) => e.source || "") || []))].filter((t) => t && e.every((e) => e.candidates?.filter((e) => e.source === t).length === 1)) : [];
}
-function NSe(e, t, n, r, i, a) {
- return sX(e, t, n, r, i, a);
+function RSe(e, t, n, r, i, a) {
+ return oX(e, t, n, r, i, a);
}
-function PSe(e, t) {
+function zSe(e, t) {
return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";
}
-function gX(e, t) {
+function hX(e, t) {
return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);
}
-var _X = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
-function FSe(e, t) {
- let n = gX(e, t), r = _X(e, t);
+var gX = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
+function BSe(e, t) {
+ let n = hX(e, t), r = gX(e, t);
return r ? `${n} · ${r}` : n;
}
-var ISe = (e) => e.reason || e.evidence || e.note || e.decision_note || "", LSe = (e) => String(e.tags || "").split("|").filter(Boolean), RSe = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
-function zSe(e) {
+var VSe = (e) => e.reason || e.evidence || e.note || e.decision_note || "", HSe = (e) => String(e.tags || "").split("|").filter(Boolean), USe = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
+function WSe(e) {
let t = e.candidates || [];
return {
candidateKey: t.length === 1 ? t[0].candidate_key : "",
assets: (e.preview_assets || []).map((e) => e.id)
};
}
-function BSe(e, t, n, r) {
+function GSe(e, t, n, r) {
let i = !!t.asset_path && t.asset_mutation_revision != null;
return {
category: e,
@@ -59875,22 +59900,22 @@ function BSe(e, t, n, r) {
...i ? { expected_revision: t.asset_mutation_revision } : {}
};
}
-var VSe = (e) => ({
+var KSe = (e) => ({
approved: "已通过资料",
rejected: "已忽略资料",
skipped: "已移至稍后处理",
restore: "已恢复待处理"
})[e];
-async function vX(e) {
- let t = await V(xSe, e);
- for (let e of ["later", "ignored"]) if (!t.queues?.[e]?.sections || !t.queues[e].counts) throw Error(`${fX[e]}状态未取得,请刷新或更新写入端`);
+async function _X(e) {
+ let t = await V(ESe, e);
+ for (let e of ["later", "ignored"]) if (!t.queues?.[e]?.sections || !t.queues[e].counts) throw Error(`${dX[e]}状态未取得,请刷新或更新写入端`);
return t;
}
-async function HSe(e) {
- let t = await H(SSe, e);
+async function qSe(e) {
+ let t = await H(DSe, e);
if (t.ok && t.asset_revisions) {
let e = t.asset_revisions;
- U.setQueryData(cX, (t) => t && OSe(t, (t) => ({
+ U.setQueryData(sX, (t) => t && NSe(t, (t) => ({
...t,
sections: {
...t.sections,
@@ -59906,33 +59931,33 @@ async function HSe(e) {
}
return t;
}
-function USe(e, t) {
- let n = U.getQueryData(cX);
- return n && dX.flatMap((t) => mX(n, t).sections[e] || []).find((e) => e.item_key === t.item_key) || t;
+function JSe(e, t) {
+ let n = U.getQueryData(sX);
+ return n && uX.flatMap((t) => pX(n, t).sections[e] || []).find((e) => e.item_key === t.item_key) || t;
}
-var WSe = (e, t) => H(CSe, {
+var YSe = (e, t) => H(OSe, {
genre: e,
tag: t
});
-async function GSe(e) {
+async function XSe(e) {
await U.fetchQuery({
- queryKey: cX,
- queryFn: () => vX(e)
+ queryKey: sX,
+ queryFn: () => _X(e)
});
}
-function KSe(e, t, n) {
+function ZSe(e, t, n) {
let r = new Set(t);
- r.size && U.setQueryData(cX, (t) => {
+ r.size && U.setQueryData(sX, (t) => {
if (!t) return t;
- let i = dX.flatMap((n) => mX(t, n).sections[e] || []).filter((e) => r.has(e.item_key));
+ let i = uX.flatMap((n) => pX(t, n).sections[e] || []).filter((e) => r.has(e.item_key));
if (!i.length) return t;
let a = {
skipped: "later",
rejected: "ignored",
restore: "pending",
approved: null
- }[n], o = Object.fromEntries(dX.map((o) => {
- let s = mX(t, o), c = (s.sections[e] || []).filter((e) => !r.has(e.item_key)), l = a === o ? [...c, ...i.map((e) => ({
+ }[n], o = Object.fromEntries(uX.map((o) => {
+ let s = pX(t, o), c = (s.sections[e] || []).filter((e) => !r.has(e.item_key)), l = a === o ? [...c, ...i.map((e) => ({
...e,
decision: n === "restore" ? "pending" : n,
decision_note: ""
@@ -59959,15 +59984,15 @@ function KSe(e, t, n) {
};
});
}
-var qSe = () => U.invalidateQueries({
- queryKey: cX,
+var vX = () => U.invalidateQueries({
+ queryKey: sX,
exact: !0
});
-function JSe(e, t) {
+function QSe(e, t) {
return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${xr(e.fetched_at)} 的缓存` : e?.error || t;
}
// src/react/data-cleanup/links.ts
-var YSe = "/api/links", yX = "/api/links/check", bX = "/api/links/prune", xX = ["links"], SX = ["links", "check"], CX = ["links", "prune"], XSe = {
+var $Se = "/api/links", yX = "/api/links/check", bX = "/api/links/prune", xX = ["links"], SX = ["links", "check"], CX = ["links", "prune"], eCe = {
official: "官网/事务所",
social: "社交账号",
catalog: "作品资料站",
@@ -59978,205 +60003,205 @@ async function wX(e) {
if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");
return t;
}
-var TX = (e) => V(YSe, e), EX = (e) => H(yX, { status_only: !0 }, "POST", e), ZSe = ({ retry: e, checkId: t }) => wX(H(yX, e ? {
+var TX = (e) => V($Se, e), EX = (e) => H(yX, { status_only: !0 }, "POST", e), tCe = ({ retry: e, checkId: t }) => wX(H(yX, e ? {
retry: e,
check_id: t
-} : { restart: !0 })), DX = (e) => V(bX, e), QSe = ({ checkId: e, ids: t }) => wX(H(bX, {
+} : { restart: !0 })), DX = (e) => V(bX, e), nCe = ({ checkId: e, ids: t }) => wX(H(bX, {
confirm: !0,
check_id: e,
background: !0,
...t ? { ids: t } : {}
-})), OX = (e) => Number(e || 0).toLocaleString(), $Se = (e) => `已删除 ${OX(e.removed)} 条;${e.marked ? `已隐退女优的 ${OX(e.marked)} 条留作不可点的记录;` : ""}保留 ${OX(e.recovered)} 条未确认失效的链接。`;
-function kX(e) {
+})), OX = (e) => Number(e || 0).toLocaleString(), rCe = (e) => `已删除 ${OX(e.removed)} 条;${e.marked ? `已隐退女优的 ${OX(e.marked)} 条留作不可点的记录;` : ""}保留 ${OX(e.recovered)} 条未确认失效的链接。`;
+function iCe(e) {
let t = e.scope === "retry";
return e.total ? `${t ? "已重验" : "已检查"} ${OX(e.checked)} / ${OX(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
}
// src/configuration-endpoints.ts
-var AX = "/api/configuration", jX = "/api/pick-folder", MX = "/api/settings", NX = "/api/follow/schedule", PX = "/api/feeds/schedule", FX = "/api/thumbnail-jobs", IX = ["settings"], LX = ["follow-schedule"], RX = ["feed-schedule"], zX = ["thumbnail-jobs"], BX = "/api/media-processing", eCe = ["media-processing"], tCe = (e) => V(BX, e), VX = (e) => V(MX, e), nCe = (e) => V(NX, e), rCe = (e) => V(PX, e), iCe = (e) => V(FX, e);
-function aCe(e = U) {
+var kX = "/api/configuration", AX = "/api/pick-folder", jX = "/api/settings", MX = "/api/follow/schedule", NX = "/api/feeds/schedule", PX = "/api/thumbnail-jobs", FX = ["settings"], IX = ["follow-schedule"], LX = ["feed-schedule"], RX = ["thumbnail-jobs"], zX = "/api/media-processing", aCe = ["media-processing"], oCe = (e) => V(zX, e), BX = (e) => V(jX, e), sCe = (e) => V(MX, e), cCe = (e) => V(NX, e), lCe = (e) => V(PX, e);
+function uCe(e = U) {
return e.fetchQuery({
- queryKey: IX,
- queryFn: ({ signal: e }) => VX(e),
+ queryKey: FX,
+ queryFn: ({ signal: e }) => BX(e),
staleTime: 0
}).catch(() => null);
}
-function HX() {
+function VX() {
return Pt({
- mutationFn: (e) => H(MX, e),
- onSuccess: (e) => U.setQueryData(IX, e)
+ mutationFn: (e) => H(jX, e),
+ onSuccess: (e) => U.setQueryData(FX, e)
});
}
-function oCe() {
+function dCe() {
return Pt({
- mutationFn: (e) => H(NX, {
+ mutationFn: (e) => H(MX, {
enabled: e > 0,
interval_minutes: e || 60
}),
- onSuccess: (e) => U.setQueryData(LX, e)
+ onSuccess: (e) => U.setQueryData(IX, e)
});
}
-var sCe = {
+var fCe = {
follow: {
- url: `${NX}/run`,
- key: LX
+ url: `${MX}/run`,
+ key: IX
},
feed: {
- url: `${PX}/run`,
- key: RX
+ url: `${NX}/run`,
+ key: LX
}
};
-function cCe(e) {
- let { url: t, key: n } = sCe[e];
+function pCe(e) {
+ let { url: t, key: n } = fCe[e];
return Pt({
mutationFn: () => H(t, {}),
onSuccess: (e) => U.setQueryData(n, e)
});
}
-var lCe = (e) => e?.running ? 3e3 : !1;
-function uCe() {
+var mCe = (e) => e?.running ? 3e3 : !1;
+function hCe() {
return Pt({
- mutationFn: (e) => H(FX, { mode: e }),
- onSuccess: (e) => U.setQueryData(zX, e)
+ mutationFn: (e) => H(PX, { mode: e }),
+ onSuccess: (e) => U.setQueryData(RX, e)
});
}
// src/react/data-cleanup/organize.ts
-var dCe = "/api/organize", fCe = "/api/organize/preview", pCe = "/api/organize/apply", mCe = "/api/organize/rollback", UX = ["organize"], hCe = "/api/organize/example", gCe = (e, t, n) => V(`${hCe}?${new URLSearchParams({
+var gCe = "/api/organize", _Ce = "/api/organize/preview", vCe = "/api/organize/apply", yCe = "/api/organize/rollback", HX = ["organize"], bCe = "/api/organize/example", xCe = (e, t, n) => V(`${bCe}?${new URLSearchParams({
file_template: e,
dir_template: t
-})}`, n), WX = (e) => V(dCe, e);
-async function _Ce(e) {
+})}`, n), UX = (e) => V(gCe, e);
+async function SCe(e) {
await U.fetchQuery({
- queryKey: UX,
- queryFn: () => WX(e)
+ queryKey: HX,
+ queryFn: () => UX(e)
});
}
-var vCe = (e) => H(fCe, e), yCe = (e) => H(jX, { initial: e }), bCe = (e) => e.kind === "apply" ? H(pCe, {
+var CCe = (e) => H(_Ce, e), wCe = (e) => H(AX, { initial: e }), TCe = (e) => e.kind === "apply" ? H(vCe, {
...e.request,
confirm: !0
-}) : H(mCe, { confirm: !0 });
-async function xCe(e) {
- U.setQueryData(UX, (t) => t && {
+}) : H(yCe, { confirm: !0 });
+async function ECe(e) {
+ U.setQueryData(HX, (t) => t && {
...t,
templates: e
});
try {
- await H(MX, { organizeTemplates: e });
+ await H(jX, { organizeTemplates: e });
} catch {}
}
-var SCe = (e, t) => e && {
+var DCe = (e, t) => e && {
...e,
...t
-}, CCe = /目录模板|分隔符|盘符|`\.`/;
-function wCe(e) {
+}, OCe = /目录模板|分隔符|盘符|`\.`/;
+function kCe(e) {
let t = String(e || "");
return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);
}
-var GX = (e) => Number(e || 0).toLocaleString();
-function TCe(e) {
- let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${GX(t)}`).join(" · ");
- return Number(e.counts?.change || 0) ? `${GX(e.counts.change)} 个文件会改名或移动,${GX(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
+var WX = (e) => Number(e || 0).toLocaleString();
+function ACe(e) {
+ let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${WX(t)}`).join(" · ");
+ return Number(e.counts?.change || 0) ? `${WX(e.counts.change)} 个文件会改名或移动,${WX(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
}
-function ECe(e) {
+function jCe(e) {
let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);
return {
- text: t ? `已退回 ${GX(r)} 个文件${n ? `,${GX(n)} 行未能退回` : ""}。` : `已整理 ${GX(r)} 个文件${n ? `,${GX(n)} 行未能处理` : ""}。`,
+ text: t ? `已退回 ${WX(r)} 个文件${n ? `,${WX(n)} 行未能退回` : ""}。` : `已整理 ${WX(r)} 个文件${n ? `,${WX(n)} 行未能处理` : ""}。`,
failed: n,
rollback: t
};
}
// src/react/data-cleanup/orphan-records.ts
-var DCe = "/api/orphan-records", OCe = "/api/orphan-records/attach", KX = ["orphan-records"], kCe = [
+var MCe = "/api/orphan-records", NCe = "/api/orphan-records/attach", GX = ["orphan-records"], PCe = [
["asset_preference", "喜欢与理由"],
["watch_queue", "稍后看"],
["playlist_item", "播放列表"],
["asset_quality_goal", "寻找更好版本"],
["activity_event", "观看历史"],
["asset_tag_preference", "隐藏标签"]
-], qX = (e) => V(DCe, e), ACe = (e, t) => H(OCe, {
+], KX = (e) => V(MCe, e), FCe = (e, t) => H(NCe, {
id: e,
target: t
-}), jCe = (e) => H(XY, {
+}), ICe = (e) => H(YY, {
ids: Array.isArray(e) ? e : [e],
operation: "delete"
-}), MCe = (e) => [
+}), LCe = (e) => [
e.rating ? `评分 ${e.rating}` : "",
e.play_count ? `播放 ${Number(e.play_count).toLocaleString()} 次` : e.last_played ? "播放过" : "",
e.o_count ? `高潮 ${Number(e.o_count).toLocaleString()} 次` : ""
-], NCe = (e) => [...kCe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...MCe(e)].filter(Boolean).join(" · "), PCe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", FCe = (e) => [e.name, PCe(e.duration)].filter(Boolean).join(" · "), JX = "/api/resource-sync/scan", YX = "/api/resource-sync/apply", XX = ["resource-sync", "scan"], ZX = ["resource-sync", "apply"], QX = (e) => H(JX, {
+], RCe = (e) => [...PCe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...LCe(e)].filter(Boolean).join(" · "), zCe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", BCe = (e) => [e.name, zCe(e.duration)].filter(Boolean).join(" · "), qX = "/api/resource-sync/scan", JX = "/api/resource-sync/apply", YX = ["resource-sync", "scan"], XX = ["resource-sync", "apply"], ZX = (e) => H(qX, {
background: !0,
status_only: !0
-}, "POST", e), ICe = () => H(JX, {
+}, "POST", e), VCe = () => H(qX, {
background: !0,
restart: !0
-}), $X = (e) => V(YX, e), LCe = (e) => H(YX, {
+}), QX = (e) => V(JX, e), HCe = (e) => H(JX, {
confirm: !0,
clean_cache: !0,
scan_id: e,
background: !0
-}), eZ = (e) => (e?.sources ?? []).some((e) => hn.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
-async function RCe(e) {
- eZ(U.getQueryData(_r)) && await Promise.all([U.fetchQuery({
+}), $X = (e) => (e?.sources ?? []).some((e) => hn.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
+async function UCe(e) {
+ $X(U.getQueryData(_r)) && await Promise.all([U.fetchQuery({
+ queryKey: YX,
+ queryFn: () => ZX(e)
+ }), U.fetchQuery({
queryKey: XX,
queryFn: () => QX(e)
- }), U.fetchQuery({
- queryKey: ZX,
- queryFn: () => $X(e)
})]);
}
-var zCe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), tZ = (e) => Number(e || 0).toLocaleString(), BCe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", nZ = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), rZ = (e) => e.vanish ? `${tZ(e.vanish)} 条作品记录的文件已丢失,个人记录保留,可在「文件已丢失的记录」中转移个人记录或删除记录。` : "", iZ = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", VCe = (e) => `将永久删除文件已不在盘上的 ${tZ(nZ(e))} 条记录和 ${tZ(e.empty)} 个空文件夹,并清理 ${tZ(e.cache?.files)} 个闲置缓存。${iZ(e)}${rZ(e)}`, HCe = (e) => `将永久删除文件已不在盘上的 ${tZ(nZ(e))} 条记录(含回收站里的)、${tZ(e.empty)} 个空文件夹,并清理 ${tZ(e.cache?.files)} 个闲置缓存。来源根目录保留。${iZ(e)}${rZ(e)}`, UCe = (e) => e.online ? [
- `找不到文件 · 共 ${tZ(e.total)} 项`,
- e.vanish ? `${tZ(e.vanish)} 项带个人记录` : "",
- e.empty ? `空文件夹 ${tZ(e.empty)} 个` : ""
-].filter(Boolean).join(" · ") : `馆藏中有 ${tZ(e.total)} 项`;
-function aZ(e) {
+var WCe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), eZ = (e) => Number(e || 0).toLocaleString(), GCe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", tZ = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), nZ = (e) => e.vanish ? `${eZ(e.vanish)} 条作品记录的文件已丢失,个人记录保留,可在「文件已丢失的记录」中转移个人记录或删除记录。` : "", rZ = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", KCe = (e) => `将永久删除文件已不在盘上的 ${eZ(tZ(e))} 条记录和 ${eZ(e.empty)} 个空文件夹,并清理 ${eZ(e.cache?.files)} 个闲置缓存。${rZ(e)}${nZ(e)}`, qCe = (e) => `将永久删除文件已不在盘上的 ${eZ(tZ(e))} 条记录(含回收站里的)、${eZ(e.empty)} 个空文件夹,并清理 ${eZ(e.cache?.files)} 个闲置缓存。来源根目录保留。${rZ(e)}${nZ(e)}`, JCe = (e) => e.online ? [
+ `找不到文件 · 共 ${eZ(e.total)} 项`,
+ e.vanish ? `${eZ(e.vanish)} 项带个人记录` : "",
+ e.empty ? `空文件夹 ${eZ(e.empty)} 个` : ""
+].filter(Boolean).join(" · ") : `馆藏中有 ${eZ(e.total)} 项`;
+function iZ(e) {
let t = e.blocked ?? [], n = Number(e.dir_errors || 0), r = e.cache_blocked ?? [], i = Number(e.purged || 0) + Number(e.vanished || 0) + Number(e.reattached || 0) + Number(e.dirs_removed || 0) + Number(e.cache_removed || 0), a = t.length + n + r.length, o = t.slice(0, 3).map((e) => `「${e.name}」`).join("、") + (t.length > 3 ? " 等" : "");
return {
done: i,
left: a,
rest: [
- t.length ? `${tZ(t.length)} 条记录没有删除(${o})` : "",
- n ? `${tZ(n)} 个文件夹没有删除` : "",
- r.length ? `${tZ(r.length)} 个缓存没有清理` : ""
+ t.length ? `${eZ(t.length)} 条记录没有删除(${o})` : "",
+ n ? `${eZ(n)} 个文件夹没有删除` : "",
+ r.length ? `${eZ(r.length)} 个缓存没有清理` : ""
].filter(Boolean).join(",")
};
}
-var WCe = (e, t) => {
- let { rest: n } = aZ(e), r = `已永久删除 ${tZ(e.purged)} 条失效记录和 ${tZ(e.dirs_removed)} 个空文件夹,清理 ${tZ(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${tZ(e.vanished)} 条作品记录已标为文件丢失,可在「文件已丢失的记录」中处理。` : "") + (e.reattached ? `${tZ(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
+var YCe = (e, t) => {
+ let { rest: n } = iZ(e), r = `已永久删除 ${eZ(e.purged)} 条失效记录和 ${eZ(e.dirs_removed)} 个空文件夹,清理 ${eZ(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${eZ(e.vanished)} 条作品记录已标为文件丢失,可在「文件已丢失的记录」中处理。` : "") + (e.reattached ? `${eZ(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
return n ? `${r}${n},重新检查后可再试。` : r;
-}, GCe = "/api/review?counts=1", oZ = ["review", "counts"], KCe = "/api/ads?limit=1", sZ = ["junk-summary"], cZ = "/api/items?state=trash&limit=1", lZ = ["trash-summary"], qCe = [
+}, XCe = "/api/review?counts=1", aZ = ["review", "counts"], ZCe = "/api/ads?limit=1", oZ = ["junk-summary"], sZ = "/api/items?state=trash&limit=1", cZ = ["trash-summary"], QCe = [
["video", "视频"],
["image", "图片"],
["archive", "压缩包"],
["audio", "音频"],
["url", "网址"],
["other", "其它"]
-], uZ = (e) => V(GCe, e), dZ = (e) => V(KCe, e), fZ = (e) => {
+], lZ = (e) => V(XCe, e), uZ = (e) => V(ZCe, e), dZ = (e) => {
let t = sessionStorage.getItem("peach.library");
- return V(t ? `${cZ}&library=${encodeURIComponent(t)}` : cZ, e);
-}, pZ = (e) => Number(e || 0).toLocaleString();
-function JCe(e) {
- let t = lX, n = Object.entries(e?.counts ?? {}).map(([e, n]) => [t[e] || e, Number(n) || 0]).filter(([, e]) => e > 0).sort((e, t) => t[1] - e[1]), r = n.reduce((e, [, t]) => e + t, 0), i = n.slice(0, 3).map(([e, t]) => `${e} ${t.toLocaleString()}`), a = n.slice(3).reduce((e, [, t]) => e + t, 0);
+ return V(t ? `${sZ}&library=${encodeURIComponent(t)}` : sZ, e);
+}, fZ = (e) => Number(e || 0).toLocaleString();
+function $Ce(e) {
+ let t = cX, n = Object.entries(e?.counts ?? {}).map(([e, n]) => [t[e] || e, Number(n) || 0]).filter(([, e]) => e > 0).sort((e, t) => t[1] - e[1]), r = n.reduce((e, [, t]) => e + t, 0), i = n.slice(0, 3).map(([e, t]) => `${e} ${t.toLocaleString()}`), a = n.slice(3).reduce((e, [, t]) => e + t, 0);
return a && i.push(`其余 ${a.toLocaleString()}`), {
figure: `${r.toLocaleString()} 条待复核`,
meta: i.join(" · ")
};
}
-function YCe(e) {
+function ewe(e) {
if (!e) return "";
- let t = qCe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${pZ(e.counts[t])}`);
- return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${pZ(e.dismissed_total)}`), t.join(" · ");
+ let t = QCe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${fZ(e.counts[t])}`);
+ return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${fZ(e.dismissed_total)}`), t.join(" · ");
}
-var XCe = [
- [oZ, ({ signal: e }) => uZ(e)],
- [aX, ({ signal: e }) => oX(e)],
- [lZ, ({ signal: e }) => fZ(e)],
+var twe = [
+ [aZ, ({ signal: e }) => lZ(e)],
+ [iX, ({ signal: e }) => aX(e)],
+ [cZ, ({ signal: e }) => dZ(e)],
[xX, ({ signal: e }) => TX(e)],
[SX, ({ signal: e }) => EX(e)],
[CX, ({ signal: e }) => DX(e)],
- [KX, ({ signal: e }) => qX(e)]
+ [GX, ({ signal: e }) => KX(e)]
];
-async function ZCe(e) {
- let t = !!location.hash, n = XCe.map(([n, r]) => {
+async function nwe(e) {
+ let t = !!location.hash, n = twe.map(([n, r]) => {
if (t) return U.fetchQuery({
queryKey: n,
queryFn: () => r({ signal: e })
@@ -60189,22 +60214,22 @@ async function ZCe(e) {
await Promise.all([
...n,
U.fetchQuery({
- queryKey: sZ,
- queryFn: () => dZ(e)
+ queryKey: oZ,
+ queryFn: () => uZ(e)
}),
U.fetchQuery({
- queryKey: YY,
- queryFn: () => ZY(e)
+ queryKey: JY,
+ queryFn: () => XY(e)
}),
- JY(e).then(() => RCe(e)),
- zH(e),
- hSe(e),
- _Ce(e)
+ qY(e).then(() => UCe(e)),
+ VH(e),
+ bSe(e),
+ SCe(e)
]);
}
// src/react/feed-new/feed-new.ts
-var mZ = (e) => ["feed-new", e ?? "home"], QCe = 8, $Ce = 1500;
-function ewe(e, t, n) {
+var pZ = (e) => ["feed-new", e ?? "home"], rwe = 8, iwe = 1500;
+function awe(e, t, n) {
let r = document.createElement("template");
r.innerHTML = e;
let i = [...r.content.querySelectorAll("img[src]")].slice(0, t).map((e) => {
@@ -60215,33 +60240,33 @@ function ewe(e, t, n) {
setTimeout(e, n);
})]);
}
-async function twe(e, t, n) {
- let r = new URLSearchParams({ limit: String(EM().value.feedLimit) });
+async function owe(e, t, n) {
+ let r = new URLSearchParams({ limit: String(jM().value.feedLimit) });
e && r.set("entity", String(e));
let i = await Cn(`/api/feeds/discoveries?${r}`).catch(() => null), a = i && !i.error ? i : null, o = a?.items || [], s = t(a);
- return n && o.length && await ewe(s, QCe, $Ce), {
+ return n && o.length && await awe(s, rwe, iwe), {
items: o,
html: s,
fetching: o.some((e) => e.cover_fetching && !e.has_cover)
};
}
-var hZ = (e, t, n = !1) => ({
- queryKey: mZ(e),
- queryFn: () => twe(e, t, n),
+var mZ = (e, t, n = !1) => ({
+ queryKey: pZ(e),
+ queryFn: () => owe(e, t, n),
staleTime: Infinity,
refetchInterval: (e) => e.state.data?.fetching ? 2e3 : !1
-}), gZ = (e, t) => Cn("/api/feeds/discovery", {
+}), hZ = (e, t) => Cn("/api/feeds/discovery", {
method: "POST",
body: JSON.stringify({
action: t,
ids: [e]
})
}).then(() => void 0, () => void 0);
-async function nwe(e) {
- U.removeQueries({ queryKey: mZ(null) }), await U.fetchQuery(hZ(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
+async function swe(e) {
+ U.removeQueries({ queryKey: pZ(null) }), await U.fetchQuery(mZ(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
}
// src/react/entity-page/entity-page.ts
-var _Z = [
+var gZ = [
"loc",
"creator",
"tag",
@@ -60255,52 +60280,52 @@ var _Z = [
"browse",
"folder",
"folder_recursive"
-], vZ = {
+], _Z = {
media: "videos",
set: 0
-}, yZ = (e, t) => [
+}, vZ = (e, t) => [
"entity",
e,
t
-], rwe = (e, t, n, r) => [
+], cwe = (e, t, n, r) => [
"entity-items",
e,
t,
n,
r
-], bZ = (e, t, n, r) => [
+], yZ = (e, t, n, r) => [
"entity-photos",
e,
t,
n,
r
-], xZ = (e) => String(e || "").split(",").filter(Boolean), iwe = (e, t) => xZ(e).includes(t);
-function SZ(e, t, n, r, i = 0) {
+], bZ = (e) => String(e || "").split(",").filter(Boolean), lwe = (e, t) => bZ(e).includes(t);
+function xZ(e, t, n, r, i = 0) {
let a = new URLSearchParams();
- a.set(e, t), e === "tag" && (a.set("tag", [.../* @__PURE__ */ new Set([t, ...xZ(n.tag)])].join(",")), a.set("tag_match", "all")), a.set("limit", "48"), a.set("offset", String(i)), a.set("sort", n.sort || "new"), n.dir && a.set("dir", n.dir), n.sort === "seed" && a.set("seed", r.seed), i && a.set("count", "0");
- for (let t of _Z) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
+ a.set(e, t), e === "tag" && (a.set("tag", [.../* @__PURE__ */ new Set([t, ...bZ(n.tag)])].join(",")), a.set("tag_match", "all")), a.set("limit", "48"), a.set("offset", String(i)), a.set("sort", n.sort || "new"), n.dir && a.set("dir", n.dir), n.sort === "seed" && a.set("seed", r.seed), i && a.set("count", "0");
+ for (let t of gZ) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
return r.jav && a.set("jav", "1"), a;
}
-async function CZ(e, t, n, r, i, a, o) {
- let s = SZ(e, t, n, r, i);
+async function SZ(e, t, n, r, i, a, o) {
+ let s = xZ(e, t, n, r, i);
return o && (s.set("limit", String(o.limit)), s.delete("count"), o.sort && s.set("sort", o.sort), o.dir && s.set("dir", o.dir)), await Cn(`/api/items?${s}`, a ? { signal: a } : {});
}
-var wZ = (e) => {
+var CZ = (e) => {
let t = {
jav: e.jav,
seed: e.seed
- }, n = SZ(e.kind, e.name, e.filters, t).toString();
+ }, n = xZ(e.kind, e.name, e.filters, t).toString();
return {
- queryKey: rwe(e.kind, e.name, n, e.revision),
- queryFn: ({ signal: n }) => CZ(e.kind, e.name, e.filters, t, 0, n),
+ queryKey: cwe(e.kind, e.name, n, e.revision),
+ queryFn: ({ signal: n }) => SZ(e.kind, e.name, e.filters, t, 0, n),
staleTime: Infinity
};
-}, TZ = (e, t) => ({
- queryKey: yZ(e, t),
+}, wZ = (e, t) => ({
+ queryKey: vZ(e, t),
queryFn: ({ signal: n }) => Cn(`/api/entity?kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`, { signal: n }),
staleTime: Infinity
});
-function awe(e, t, n, r, i, a) {
+function uwe(e, t, n, r, i, a) {
let o = `kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`;
if (i) {
let e = `&limit=120&offset=${i}${a ? `&seed=${encodeURIComponent(a)}` : ""}`;
@@ -60309,10 +60334,10 @@ function awe(e, t, n, r, i, a) {
let s = r ? `&seed=${encodeURIComponent(r)}` : "";
return n ? `/api/photo-set?id=${n}&limit=120${s}` : r ? `/api/photos?${o}&limit=120${s}` : `/api/photos?${o}`;
}
-var EZ = (e, t, n, r) => ({
- queryKey: bZ(e, t, n, r),
+var TZ = (e, t, n, r) => ({
+ queryKey: yZ(e, t, n, r),
queryFn: async ({ pageParam: i }) => {
- let a = await Cn(awe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
+ let a = await Cn(uwe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
if (i) throw e;
return { error: String(e) };
});
@@ -60325,8 +60350,8 @@ var EZ = (e, t, n, r) => ({
seed: t[0]?.seed || ""
} : void 0,
staleTime: Infinity
-}), DZ = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
-async function owe(e) {
+}), EZ = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
+async function dwe(e) {
let { kind: t, name: n } = e;
if (!e.restoreNavigation) for (let e of [
"entity",
@@ -60337,25 +60362,25 @@ async function owe(e) {
t,
n
] });
- e.resolvedEntity?.id && U.setQueryData(yZ(t, n), e.resolvedEntity), await Promise.all([
- U.fetchQuery(TZ(t, n)).then((t) => !t || t.error || !t.id ? null : (e.restoreNavigation || U.removeQueries({ queryKey: mZ(Number(t.id)) }), U.fetchQuery(hZ(Number(t.id), e.helpers.feedRowHtml, !0)))),
- U.fetchQuery(wZ(e)),
- U.fetchInfiniteQuery(EZ(t, n, 0, "")),
- e.media.media === "photos" && e.media.set ? U.fetchInfiniteQuery(EZ(t, n, e.media.set, "")) : null
+ e.resolvedEntity?.id && U.setQueryData(vZ(t, n), e.resolvedEntity), await Promise.all([
+ U.fetchQuery(wZ(t, n)).then((t) => !t || t.error || !t.id ? null : (e.restoreNavigation || U.removeQueries({ queryKey: pZ(Number(t.id)) }), U.fetchQuery(mZ(Number(t.id), e.helpers.feedRowHtml, !0)))),
+ U.fetchQuery(CZ(e)),
+ U.fetchInfiniteQuery(TZ(t, n, 0, "")),
+ e.media.media === "photos" && e.media.set ? U.fetchInfiniteQuery(TZ(t, n, e.media.set, "")) : null
]);
}
// src/identity-filter.ts
-var OZ = [
+var DZ = [
["all", "全部"],
["japanese_av", "女优"],
["amateur", "素人"],
["western", "西方"],
["blogger", "网黄博主"],
["animation", "动画作者"]
-], kZ = "mb-4 flex flex-wrap gap-2";
-function swe(e) {
- let t = OZ.some(([t]) => t === e) ? e : "all";
- return `<div class="peach-react"><div aria-label="身份分类" class="${kZ}">${OZ.map(([e, n]) => Es({
+], OZ = "mb-4 flex flex-wrap gap-2";
+function fwe(e) {
+ let t = DZ.some(([t]) => t === e) ? e : "all";
+ return `<div class="peach-react"><div aria-label="身份分类" class="${OZ}">${DZ.map(([e, n]) => Es({
variant: e === t ? "primary" : "secondary",
size: "small",
label: n,
@@ -60363,45 +60388,45 @@ function swe(e) {
})).join("")}</div></div>`;
}
// src/react/follow/online-vocab.ts
-var cwe = "/api/follow/authors", lwe = "/api/follow/tags", uwe = (e) => [
+var pwe = "/api/follow/authors", mwe = "/api/follow/tags", hwe = (e) => [
"follow",
"authors",
e
-], dwe = (e, t) => [
+], gwe = (e, t) => [
"follow",
"tags",
e,
t
];
-function fwe(e, t, n) {
+function _we(e, t, n) {
let r = new URLSearchParams({
limit: String(t),
offset: String(n)
});
- return e && r.set("q", e), `${cwe}?${r}`;
+ return e && r.set("q", e), `${pwe}?${r}`;
}
-function pwe(e, t, n, r) {
+function vwe(e, t, n, r) {
let i = new URLSearchParams({
types: "all",
limit: String(n),
offset: String(r)
});
- return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${lwe}?${i}`;
+ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${mwe}?${i}`;
}
-var mwe = (e, t, n, r) => V(fwe(e, t, n), r), hwe = (e, t, n, r, i) => V(pwe(e, t, n, r), i), gwe = "/api/index", AZ = {
+var ywe = (e, t, n, r) => V(_we(e, t, n), r), bwe = (e, t, n, r, i) => V(vwe(e, t, n, r), i), xwe = "/api/index", kZ = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所",
series: "系列",
tags: "标签"
-}, _we = {
+}, Swe = {
performers: "performer",
creators: "creator",
studios: "studio",
agencies: "agency",
series: "series"
-}, jZ = [
+}, AZ = [
["all", "全部"],
["meta", "影片属性"],
["relationship", "人物关系"],
@@ -60411,31 +60436,31 @@ var mwe = (e, t, n, r) => V(fwe(e, t, n), r), hwe = (e, t, n, r, i) => V(pwe(e,
["story", "故事剧情"],
["position", "性交体位"],
["general", "其他内容"]
-], MZ = [
+], jZ = [
["all", "全部"],
["general", "通用"],
["artist", "创作者"],
["character", "角色"],
["copyright", "作品"],
["metadata", "元数据"]
-], NZ = {
+], MZ = {
people: 120,
tags: 100
-}, PZ = (e) => e !== "tags", FZ = (e) => e === "studios" || e === "agencies";
-function IZ(e) {
- if (e.kind === "creators" && e.category === "animation") return IZ({
+}, NZ = (e) => e !== "tags", PZ = (e) => e === "studios" || e === "agencies";
+function FZ(e) {
+ if (e.kind === "creators" && e.category === "animation") return FZ({
...e,
kind: "performers",
scope: "local"
});
- let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (e.kind === "tags" ? t === "online" ? MZ : jZ : e.kind === "performers" && t === "local" ? OZ : []).some(([t]) => t === e.category);
+ let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (e.kind === "tags" ? t === "online" ? jZ : AZ : e.kind === "performers" && t === "local" ? DZ : []).some(([t]) => t === e.category);
return {
...e,
scope: t,
category: n ? e.category : "all"
};
}
-function LZ(e) {
+function IZ(e) {
let { kind: t, q: n, scope: r, category: i } = e;
return t === "tags" ? r === "online" ? {
what: "online-tags",
@@ -60455,50 +60480,50 @@ function LZ(e) {
...i && i !== "all" ? { category: i } : {}
};
}
-var RZ = (e, t, n = "all") => [
+var LZ = (e, t, n = "all") => [
"index",
e,
t,
...e === "tags" || n !== "all" ? [n] : []
];
-function zZ(e, t, n, r, i) {
+function RZ(e, t, n, r, i) {
let a = new URLSearchParams({
kind: e,
limit: String(r),
offset: String(i)
});
- return t && a.set("q", t), n !== "all" && a.set("category", n), `${gwe}?${a}`;
+ return t && a.set("q", t), n !== "all" && a.set("category", n), `${xwe}?${a}`;
}
-function BZ(e, t = NZ.tags) {
- let n = e.what === "people" || e.what === "online-authors" ? NZ.people : t, r = {
+function zZ(e, t = MZ.tags) {
+ let n = e.what === "people" || e.what === "online-authors" ? MZ.people : t, r = {
initialPageParam: 0,
getNextPageParam: (e, t) => e.has_more ? t.reduce((e, t) => e + t.items.length, 0) : void 0
};
switch (e.what) {
case "people": return {
...r,
- queryKey: RZ(e.kind, e.q, e.category || "all"),
- queryFn: ({ pageParam: t, signal: r }) => V(zZ(e.kind, e.q, e.category || "all", n, t), r)
+ queryKey: LZ(e.kind, e.q, e.category || "all"),
+ queryFn: ({ pageParam: t, signal: r }) => V(RZ(e.kind, e.q, e.category || "all", n, t), r)
};
case "tags": return {
...r,
- queryKey: RZ("tags", e.q, e.category),
- queryFn: ({ pageParam: t, signal: r }) => V(zZ("tags", e.q, e.category, n, t), r)
+ queryKey: LZ("tags", e.q, e.category),
+ queryFn: ({ pageParam: t, signal: r }) => V(RZ("tags", e.q, e.category, n, t), r)
};
case "online-authors": return {
...r,
- queryKey: uwe(e.q),
- queryFn: ({ pageParam: t, signal: r }) => mwe(e.q, n, t, r)
+ queryKey: hwe(e.q),
+ queryFn: ({ pageParam: t, signal: r }) => ywe(e.q, n, t, r)
};
case "online-tags": return {
...r,
- queryKey: dwe(e.q, e.category),
- queryFn: ({ pageParam: t, signal: r }) => hwe(e.q, e.category, n, t, r)
+ queryKey: gwe(e.q, e.category),
+ queryFn: ({ pageParam: t, signal: r }) => bwe(e.q, e.category, n, t, r)
};
}
}
-async function vwe(e, t) {
- let n = BZ(LZ(IZ(e)));
+async function Cwe(e, t) {
+ let n = zZ(IZ(FZ(e)));
await U.fetchInfiniteQuery({
queryKey: n.queryKey,
queryFn: ({ pageParam: e }) => n.queryFn({
@@ -60510,20 +60535,20 @@ async function vwe(e, t) {
staleTime: Infinity
});
}
-var ywe = (e) => e ? e.pages.flatMap((e) => e.items) : [], bwe = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, VZ = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", xwe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, Swe = {
+var wwe = (e) => e ? e.pages.flatMap((e) => e.items) : [], Twe = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, BZ = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", Ewe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, Dwe = {
numeric: !0,
sensitivity: "base"
};
-function HZ(e, t) {
+function VZ(e, t) {
let n = /* @__PURE__ */ new Map();
- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", Swe))) {
+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", Dwe))) {
let e = Qn(t(r.k).normalize("NFKC"), "").toUpperCase(), i = /[A-Z]/.test(e) ? e : /[0-9]/.test(e) ? "#" : /[㐀-鿿]/.test(e) ? "中文" : "其他", a = n.get(i);
a ? a.push(r) : n.set(i, [r]);
}
return [...n].sort(([e], [t]) => e.localeCompare(t, "zh-CN"));
}
// src/react/index/index-people.tsx
-function UZ({ html: e, face: t, company: n, big: r }) {
+function HZ({ html: e, face: t, company: n, big: r }) {
let i = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
t ? i.current?.style.setProperty("--face", t) : i.current?.style.removeProperty("--face");
@@ -60535,18 +60560,18 @@ function UZ({ html: e, face: t, company: n, big: r }) {
dangerouslySetInnerHTML: { __html: e }
});
}
-var Cwe = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", wwe = GV("rss");
-function WZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a, ...o }) {
+var Owe = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", kwe = qV("rss");
+function UZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a, ...o }) {
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
...o,
"data-index-cell": "",
onClick: a,
- className: aU({
+ className: sU({
radius: "plain",
padding: "none",
interactive: !0,
- className: `${Cwe} ${n ? "items-stretch text-left" : "items-center text-center"}`
+ className: `${Owe} ${n ? "items-stretch text-left" : "items-center text-center"}`
}),
children: [
r,
@@ -60555,10 +60580,10 @@ function WZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a
role: "img",
"aria-label": "已订阅新作",
className: "index-feed-mark absolute top-4 right-4 z-2 inline-flex",
- children: /* @__PURE__ */ (0, I.jsx)(XU, {
+ children: /* @__PURE__ */ (0, I.jsx)(QU, {
variant: "caption",
color: "soft",
- children: /* @__PURE__ */ (0, I.jsx)(wwe, {})
+ children: /* @__PURE__ */ (0, I.jsx)(kwe, {})
})
}) : null,
/* @__PURE__ */ (0, I.jsx)("span", {
@@ -60574,9 +60599,9 @@ function WZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a
]
});
}
-function GZ({ kind: e, items: t, layout: n, props: r }) {
- let i = FZ(e) || e === "series";
- nR();
+function WZ({ kind: e, items: t, layout: n, props: r }) {
+ let i = PZ(e) || e === "series";
+ iR();
let a = n === "big";
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-index-grid": "",
@@ -60584,16 +60609,16 @@ function GZ({ kind: e, items: t, layout: n, props: r }) {
"data-cells": i ? "company" : "people",
className: `${i ? "index-grid-company" : "index-grid-person"} gap-3`,
children: t.map((t) => {
- let n = t.entity_kind || _we[e], o = r.personAvatar(t, n, a);
- return /* @__PURE__ */ (0, I.jsx)(WZ, {
+ let n = t.entity_kind || Swe[e], o = r.personAvatar(t, n, a);
+ return /* @__PURE__ */ (0, I.jsx)(UZ, {
"data-k": t.k,
"data-kind": n,
name: en(n, t.k, t.entity_id),
- readout: `${xwe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
+ readout: `${Ewe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
big: a,
following: t.following,
onPress: () => r.openEntity(n, t.k),
- children: /* @__PURE__ */ (0, I.jsx)(UZ, {
+ children: /* @__PURE__ */ (0, I.jsx)(HZ, {
html: o.html,
face: o.face,
company: i,
@@ -60603,15 +60628,15 @@ function GZ({ kind: e, items: t, layout: n, props: r }) {
})
});
}
-function Twe({ items: e, layout: t, props: n }) {
- nR();
+function Awe({ items: e, layout: t, props: n }) {
+ iR();
let r = t === "big";
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-index-grid": "",
"data-layout": t,
"data-cells": "people",
className: "index-grid-person gap-3",
- children: e.map((e) => /* @__PURE__ */ (0, I.jsx)(WZ, {
+ children: e.map((e) => /* @__PURE__ */ (0, I.jsx)(UZ, {
"data-follow-author": e.key,
"data-kind": "performer",
name: en("creator", e.k, e.entity_id),
@@ -60620,7 +60645,7 @@ function Twe({ items: e, layout: t, props: n }) {
onPress: () => {
e.entity_id ? n.openEntity("creator", e.k) : e.held_by ? n.openEntity("creator", e.held_by) : n.openFollowAuthor(e.key);
},
- children: /* @__PURE__ */ (0, I.jsx)(UZ, {
+ children: /* @__PURE__ */ (0, I.jsx)(HZ, {
html: n.authorAvatar(e),
company: !1,
big: r
@@ -60629,8 +60654,8 @@ function Twe({ items: e, layout: t, props: n }) {
});
}
// src/board-tooltip.ts
-var KZ = (e) => e.replace(/\s+/g, " ").trim();
-function qZ(e) {
+var GZ = (e) => e.replace(/\s+/g, " ").trim();
+function KZ(e) {
let t = document.createTreeWalker(e, NodeFilter.SHOW_TEXT), n = "", r;
for (; r = t.nextNode();) {
let e = r.parentElement;
@@ -60638,12 +60663,12 @@ function qZ(e) {
let t = document.createRange();
t.selectNodeContents(r), [...t.getClientRects()].some((e) => e.width > 0 && e.height > 0) && getComputedStyle(e).visibility === "visible" && (n += r.textContent);
}
- return KZ(n);
+ return GZ(n);
}
-function JZ(e) {
+function qZ(e) {
let t = e.getBoundingClientRect();
if (t.width && t.height) {
- if (e.matches("a") && qZ(e) && !YZ(e)) {
+ if (e.matches("a") && KZ(e) && !JZ(e)) {
let t = document.createRange();
t.selectNodeContents(e);
let n = t.getBoundingClientRect();
@@ -60656,7 +60681,7 @@ function JZ(e) {
let r = Math.min(...n.map((e) => e.left)), i = Math.min(...n.map((e) => e.top));
return new DOMRect(r, i, Math.max(...n.map((e) => e.right)) - r, Math.max(...n.map((e) => e.bottom)) - i);
}
-function YZ(e) {
+function JZ(e) {
if (e.matches(".middle-truncated") || e.querySelector(".middle-truncated") || [e, ...e.querySelectorAll("*")].some((e) => e.clientWidth > 0 && (e.scrollWidth > e.clientWidth + 1 || e.scrollHeight > e.clientHeight + 1))) return !0;
let t = document.createRange();
t.selectNodeContents(e);
@@ -60667,19 +60692,19 @@ function YZ(e) {
}
return !1;
}
-function Ewe() {
+function jwe() {
let e = document.createElement("div");
e.className = "ui-board-tooltip", e.id = "board-control-tooltip", e.role = "tooltip", e.popover = "manual", e.hidden = !0, document.body.append(e);
let t = null, n = "", r = null, i, a = (t) => {
- let n = JZ(t), r = e.getBoundingClientRect();
+ let n = qZ(t), r = e.getBoundingClientRect();
n && (e.style.left = `${Math.max(8, Math.min(innerWidth - r.width - 8, n.left + (n.width - r.width) / 2))}px`, e.style.top = `${n.top >= r.height + 16 ? n.top - r.height - 8 : Math.min(innerHeight - r.height - 8, n.bottom + 8)}px`);
}, o = () => {
clearTimeout(i), e.matches(":popover-open") && e.hidePopover(), e.hidden = !0, t && (t.hasAttribute("title") || (t.title = n), r === null ? t.removeAttribute("aria-describedby") : t.setAttribute("aria-describedby", r)), t = null;
}, s = (s, c) => {
if (!(s instanceof Element)) return;
let l = s.closest("[title]");
- (!t?.contains(s) || l && !l.contains(t)) && l && !l.closest(".vjs-control") && l.title.trim() && (o(), t = l, n = l.title, r = l.getAttribute("aria-describedby"), l.removeAttribute("title"), (qZ(l) !== KZ(n) || YZ(l)) && (i = setTimeout(() => {
- t === l && l.isConnected && JZ(l) && ((l.closest("dialog[open]") ?? document.body).append(e), e.textContent = n, e.hidden = !1, e.showPopover(), a(l), l.setAttribute("aria-describedby", [r, e.id].filter(Boolean).join(" ")));
+ (!t?.contains(s) || l && !l.contains(t)) && l && !l.closest(".vjs-control") && l.title.trim() && (o(), t = l, n = l.title, r = l.getAttribute("aria-describedby"), l.removeAttribute("title"), (KZ(l) !== GZ(n) || JZ(l)) && (i = setTimeout(() => {
+ t === l && l.isConnected && qZ(l) && ((l.closest("dialog[open]") ?? document.body).append(e), e.textContent = n, e.hidden = !1, e.showPopover(), a(l), l.setAttribute("aria-describedby", [r, e.id].filter(Boolean).join(" ")));
}, c)));
};
document.addEventListener("pointerover", (e) => s(e.target, 400)), document.addEventListener("pointerout", (e) => {
@@ -60688,32 +60713,32 @@ function Ewe() {
e.key === "Escape" && o();
}), document.addEventListener("scroll", (n) => {
if (!t || !ls(n, t)) return;
- let r = JZ(t);
+ let r = qZ(t);
t.matches(":focus-visible") && r && r.bottom > 0 && r.top < innerHeight ? e.matches(":popover-open") && a(t) : o();
}, !0), window.addEventListener("resize", o);
}
// src/board-controls.ts
-function XZ(e) {
+function YZ(e) {
let t = Number(e.min) || 0, n = Number(e.max) || 100, r = Number(e.value), i = n > t ? Math.max(0, Math.min(100, (r - t) / (n - t) * 100)) : 0;
e.style.setProperty("--board-range-value", `${i}%`);
}
-var ZZ = /* @__PURE__ */ new WeakSet();
-function Dwe() {
- if (ZZ.has(document)) return;
- ZZ.add(document);
+var XZ = /* @__PURE__ */ new WeakSet();
+function Mwe() {
+ if (XZ.has(document)) return;
+ XZ.add(document);
let e = (e) => {
- e.querySelectorAll("input[type=range]").forEach(XZ), kwe(e), Owe(e);
+ e.querySelectorAll("input[type=range]").forEach(YZ), Pwe(e), Nwe(e);
};
e(document), new MutationObserver((t) => {
- for (let n of t) for (let t of n.addedNodes) t instanceof Element && (t.matches("input[type=range]") && XZ(t), e(t));
+ for (let n of t) for (let t of n.addedNodes) t instanceof Element && (t.matches("input[type=range]") && YZ(t), e(t));
}).observe(document.body, {
subtree: !0,
childList: !0
}), document.addEventListener("input", (e) => {
- e.target instanceof HTMLInputElement && e.target.type === "range" && XZ(e.target);
- }), Ewe();
+ e.target instanceof HTMLInputElement && e.target.type === "range" && YZ(e.target);
+ }), jwe();
}
-function Owe(e) {
+function Nwe(e) {
let t = ".ui-board-local-nav:not([data-section-nav])", n = [...e.querySelectorAll(t)];
e instanceof HTMLElement && e.matches(t) && n.push(e), n.forEach((e) => {
if (e.hasAttribute("data-board-tabs")) return;
@@ -60737,15 +60762,15 @@ function Owe(e) {
r.observe(e);
});
}
-var QZ = /* @__PURE__ */ new Map();
-function kwe(e) {
+var ZZ = /* @__PURE__ */ new Map();
+function Pwe(e) {
let t = ".iconswitch,.insightswitch,.follow-workspace-switch", n = [...e.querySelectorAll(t)];
e instanceof HTMLElement && e.matches(t) && n.push(e), n.forEach((e) => {
if (e.hasAttribute("data-board-segments") || e.closest("[data-skeleton]")) return;
e.dataset.boardSegments = "true";
let t = document.createElement("span");
t.className = "board-segment-thumb", t.setAttribute("aria-hidden", "true"), e.prepend(t);
- let n = e.className + (e.getAttribute("aria-label") ?? ""), r = QZ.get(n) ?? null, i = () => {
+ let n = e.className + (e.getAttribute("aria-label") ?? ""), r = ZZ.get(n) ?? null, i = () => {
let i = e.querySelector("label:has(input:checked),button[aria-selected=true]");
if (!i || !i.offsetWidth) return;
let a = {
@@ -60754,7 +60779,7 @@ function kwe(e) {
w: i.offsetWidth,
h: i.offsetHeight
};
- Bc(t, r, a, "x"), r = a, QZ.set(n, a);
+ Bc(t, r, a, "x"), r = a, ZZ.set(n, a);
};
e.addEventListener("change", i);
let a = new MutationObserver(i);
@@ -60770,8 +60795,8 @@ function kwe(e) {
});
}
// src/react/photo-lightbox/photo-lightbox.ts
-var $Z = "/vendor/swiper/14.3.0/", eQ = null, Awe = () => eQ ??= Promise.all([new Promise((e, t) => {
- let n = `${$Z}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
+var QZ = "/vendor/swiper/14.3.0/", $Z = null, Fwe = () => $Z ??= Promise.all([new Promise((e, t) => {
+ let n = `${QZ}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
if (r?.sheet) {
e();
return;
@@ -60785,11 +60810,11 @@ var $Z = "/vendor/swiper/14.3.0/", eQ = null, Awe = () => eQ ??= Promise.all([ne
return;
}
let r = document.createElement("script");
- r.src = `${$Z}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);
+ r.src = `${QZ}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);
})]).then(([, e]) => e).catch((e) => {
- throw eQ = null, e;
+ throw $Z = null, e;
});
-function jwe(e, t, n) {
+function Iwe(e, t, n) {
let r = "fit", i = () => t.slides?.[t.activeIndex]?.querySelector("img"), a = () => {
let e = i();
return !e?.naturalWidth || !e.naturalHeight ? 100 : Math.min(100, e.offsetWidth / e.naturalWidth * 100, e.offsetHeight / e.naturalHeight * 100);
@@ -60810,46 +60835,46 @@ function jwe(e, t, n) {
}
};
}
-var tQ = (e) => {
+var eQ = (e) => {
let t = Number(e) || 0;
return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : Jn(t)).replace(" ", "\xA0") : "大小未知";
-}, Mwe = (e) => e.asset?.name || e.name || "未命名图片";
-function Nwe(e, t) {
+}, Lwe = (e) => e.asset?.name || e.name || "未命名图片";
+function Rwe(e, t) {
let n = e.asset;
- if (n) return [er[n.location ?? ""] || n.location || "来源未知", tQ(n.size)].join(" · ");
+ if (n) return [er[n.location ?? ""] || n.location || "来源未知", eQ(n.size)].join(" · ");
let r = t?.[0] && t[1] ? `${t[0]} × ${t[1]}` : "";
return [
e.source || "在线图片",
r,
- e.size ? tQ(e.size) : ""
+ e.size ? eQ(e.size) : ""
].filter(Boolean).join(" · ");
}
// src/react/photo-lightbox/photo-lightbox-dialog.tsx
-var nQ = null, rQ = null, Pwe = 0;
-function Fwe() {
- return rQ && nQ?.isConnected || (rQ?.unmount(), nQ = document.createElement("div"), nQ.className = "peach-react", nQ.dataset.photoLightboxHost = "", document.body.append(nQ), rQ = (0, Lt.createRoot)(nQ)), rQ;
+var tQ = null, nQ = null, zwe = 0;
+function Bwe() {
+ return nQ && tQ?.isConnected || (nQ?.unmount(), tQ = document.createElement("div"), tQ.className = "peach-react", tQ.dataset.photoLightboxHost = "", document.body.append(tQ), nQ = (0, Lt.createRoot)(tQ)), nQ;
}
-async function iQ(e, t, n) {
+async function rQ(e, t, n) {
if (!t.length || e < 0 || e >= t.length) return;
let r;
try {
- r = await Awe();
+ r = await Fwe();
} catch {
window.open(t[e].src, "_blank", "noopener");
return;
}
- let i = Fwe();
- (0, It.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(Iwe, {
+ let i = Bwe();
+ (0, It.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(Vwe, {
slides: t,
index: e,
Swiper: r,
host: n ?? null
- }, ++Pwe)));
+ }, ++zwe)));
}
-function aQ() {
- rQ && (0, It.flushSync)(() => rQ.render(null));
+function iQ() {
+ nQ && (0, It.flushSync)(() => nQ.render(null));
}
-function Iwe({ slides: e, index: t, Swiper: n, host: r }) {
+function Vwe({ slides: e, index: t, Swiper: n, host: r }) {
let i = e.length > 1, a = (0, F.useId)(), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(null), d = (0, F.useRef)(null), f = (0, F.useRef)(null), p = (0, F.useRef)(null), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (0, F.useRef)(null), [_, v] = (0, F.useState)(t), [y, b] = (0, F.useState)(100), [x, S] = (0, F.useState)({}), [C, w] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [T, E] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [D, O] = (0, F.useState)(!1), [k, A] = (0, F.useState)({
at: t,
text: ""
@@ -60892,7 +60917,7 @@ function Iwe({ slides: e, index: t, Swiper: n, host: r }) {
v(this.activeIndex), i(this.activeIndex);
} }
});
- i(t, 0), h.current = jwe(e, a, b);
+ i(t, 0), h.current = Iwe(e, a, b);
let m = el(e, f.current, p.current), _ = (e = !1) => {
m.hide(), f.current?.setAttribute("aria-expanded", "false"), e && f.current && document.contains(f.current) && f.current.focus();
};
@@ -60909,13 +60934,13 @@ function Iwe({ slides: e, index: t, Swiper: n, host: r }) {
});
y.observe(e);
let x = (e) => {
- e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), g.current?.isOpen() ? g.current.dismiss(!0) : aQ());
+ e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), g.current?.isOpen() ? g.current.dismiss(!0) : iQ());
};
return document.addEventListener("keydown", x, !0), () => {
document.removeEventListener("keydown", x, !0), _(), y.disconnect(), a.destroy(!0, !0), r.destroy(!0, !0), h.current = null, g.current = null, e.close(), document.body.classList.remove("photolight-open");
};
}, []), (0, F.useLayoutEffect)(() => {
- m.current && XZ(m.current);
+ m.current && YZ(m.current);
}, [y]);
let j = e[_], M = j.asset ?? null, ee = async (e) => {
if (!M || !r || e.getAttribute("aria-busy") === "true") return;
@@ -60946,18 +60971,18 @@ function Iwe({ slides: e, index: t, Swiper: n, host: r }) {
"data-photo-lightbox": "",
"data-has-strip": i ? "" : void 0,
onCancel: (e) => {
- e.preventDefault(), aQ();
+ e.preventDefault(), iQ();
},
onClick: (e) => {
let t = e.target;
- g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && aQ();
+ g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && iQ();
},
children: [
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-photo-close": "",
"aria-label": "关闭",
- onClick: aQ,
+ onClick: iQ,
dangerouslySetInnerHTML: { __html: z("x") }
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -61093,10 +61118,10 @@ function Iwe({ slides: e, index: t, Swiper: n, host: r }) {
id: `${a}-title`,
"data-middle-truncate": "",
tabIndex: -1,
- children: Mwe(j)
+ children: Lwe(j)
}, _), /* @__PURE__ */ (0, I.jsx)("span", {
"data-photo-detail-meta": "",
- children: Nwe(j, x[_])
+ children: Rwe(j, x[_])
})]
}),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -61134,41 +61159,41 @@ function Iwe({ slides: e, index: t, Swiper: n, host: r }) {
});
}
// src/react/entity-body/entity-body-page.tsx
-function Lwe(e) {
- return e.view === "people" && e.roster ? /* @__PURE__ */ (0, I.jsx)(Rwe, {
+function Hwe(e) {
+ return e.view === "people" && e.roster ? /* @__PURE__ */ (0, I.jsx)(Uwe, {
roster: e.roster,
props: e
- }) : e.view === "videos" ? /* @__PURE__ */ (0, I.jsx)(zwe, { ...e }) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, I.jsx)(Hwe, {
+ }) : e.view === "videos" ? /* @__PURE__ */ (0, I.jsx)(Wwe, { ...e }) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, I.jsx)(qwe, {
photos: e.photos,
props: e
}, e.photos.revision) : null;
}
-var oQ = NZ.people;
-function Rwe({ roster: e, props: t }) {
+var aQ = MZ.people;
+function Uwe({ roster: e, props: t }) {
let { helpers: n, actions: r } = t, i = (0, F.useMemo)(() => ({
personAvatar: n.personAvatar,
openEntity: r.openEntity
- }), [n, r]), [a, o] = (0, F.useState)(oQ), s = (0, F.useMemo)(() => e.people.slice(0, a), [e.people, a]), c = (0, F.useCallback)(async () => {
- o((e) => e + oQ);
+ }), [n, r]), [a, o] = (0, F.useState)(aQ), s = (0, F.useMemo)(() => e.people.slice(0, a), [e.people, a]), c = (0, F.useCallback)(async () => {
+ o((e) => e + aQ);
}, []);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(GZ, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(WZ, {
kind: e.kind,
items: s,
layout: e.layout,
props: i
- }), a < e.people.length ? /* @__PURE__ */ (0, I.jsx)(KY, {
+ }), a < e.people.length ? /* @__PURE__ */ (0, I.jsx)(GY, {
entity: !0,
load: c,
enabled: () => !0
}, a) : null] });
}
-function zwe(e) {
+function Wwe(e) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-entity-grid": "",
- children: /* @__PURE__ */ (0, I.jsx)(_K, {
+ children: /* @__PURE__ */ (0, I.jsx)(gK, {
pending: !e.items,
skeletonHtml: e.skeletonHtml,
- children: e.items ? /* @__PURE__ */ (0, I.jsx)(WY, {
+ children: e.items ? /* @__PURE__ */ (0, I.jsx)(UY, {
mode: "entity",
entityKey: e.listScope || `${e.kind}:${e.name}`,
revision: e.revision,
@@ -61190,33 +61215,33 @@ function zwe(e) {
})
});
}
-var Bwe = (e) => Array.from({ length: e.n }, (t, n) => ({
+var Gwe = (e) => Array.from({ length: e.n }, (t, n) => ({
sample: !0,
code: e.code,
position: n + 1,
total: e.n,
name: `${e.code} 样张 ${n + 1}`,
source: e.site_label || "官方样张"
-})), sQ = (e) => e.sample === !0, cQ = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, lQ = (e) => sQ(e) ? `/sample-thumb?${cQ(e)}` : `/photo-thumb?id=${e.id}`, Vwe = (e) => sQ(e) ? {
- src: `/sample-image?${cQ(e)}`,
- thumb: lQ(e),
+})), oQ = (e) => e.sample === !0, sQ = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, cQ = (e) => oQ(e) ? `/sample-thumb?${sQ(e)}` : `/photo-thumb?id=${e.id}`, Kwe = (e) => oQ(e) ? {
+ src: `/sample-image?${sQ(e)}`,
+ thumb: cQ(e),
name: e.name,
asset: null,
source: e.source
} : {
src: `/photo?id=${e.id}`,
- thumb: lQ(e),
+ thumb: cQ(e),
name: e.name || "",
asset: e
};
-function Hwe({ photos: e, props: t }) {
- let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, F.useMemo)(() => [...e.codeSets.flatMap(Bwe), ...e.items], [e]), [s, c] = (0, F.useState)(() => /* @__PURE__ */ new Set()), l = (0, F.useCallback)((e) => c((t) => {
+function qwe({ photos: e, props: t }) {
+ let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, F.useMemo)(() => [...e.codeSets.flatMap(Gwe), ...e.items], [e]), [s, c] = (0, F.useState)(() => /* @__PURE__ */ new Set()), l = (0, F.useCallback)((e) => c((t) => {
if (t.has(e)) return t;
let n = new Set(t);
return n.add(e), n;
}), []), u = (0, F.useCallback)((e) => {
- iQ(e, o.map(Vwe), { revealSource: i.revealSource });
- }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, I.jsx)(Uwe, {
+ rQ(e, o.map(Kwe), { revealSource: i.revealSource });
+ }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, I.jsx)(Jwe, {
item: e,
index: t,
lost: s.has(t),
@@ -61234,7 +61259,7 @@ function Hwe({ photos: e, props: t }) {
};
}), h = p;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(uQ, {
+ m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(lQ, {
label: e.code,
title: e.name,
meta: [
@@ -61246,7 +61271,7 @@ function Hwe({ photos: e, props: t }) {
...f,
children: o.slice(t, t + e.n).map((e, n) => d(e, t + n))
})] }, e.code)),
- m.length && e.total ? /* @__PURE__ */ (0, I.jsx)(uQ, {
+ m.length && e.total ? /* @__PURE__ */ (0, I.jsx)(lQ, {
label: "本地图片",
meta: `${e.total.toLocaleString()} 张`
}) : null,
@@ -61255,14 +61280,14 @@ function Hwe({ photos: e, props: t }) {
"data-local-wall": "",
children: e.items.map((e, t) => s.has(h + t) ? null : d(e, h + t))
}),
- e.hasMore ? /* @__PURE__ */ (0, I.jsx)(KY, {
+ e.hasMore ? /* @__PURE__ */ (0, I.jsx)(GY, {
entity: !0,
load: i.loadMorePhotos,
enabled: () => a?.() !== !1
}, e.items.length) : null
] });
}
-function uQ({ label: e, title: t, meta: n }) {
+function lQ({ label: e, title: t, meta: n }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-photo-group": "",
children: [
@@ -61279,7 +61304,7 @@ function uQ({ label: e, title: t, meta: n }) {
]
});
}
-function Uwe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
+function Jwe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
let a = e.name ?? "";
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -61288,7 +61313,7 @@ function Uwe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
title: a,
onClick: () => i(t),
children: n ? null : /* @__PURE__ */ (0, I.jsx)("img", {
- src: lQ(e),
+ src: cQ(e),
alt: a,
loading: "lazy",
decoding: "async",
@@ -61298,9 +61323,9 @@ function Uwe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
});
}
// src/react/background-job.ts
-var Wwe = 2e3, Gwe = (e) => e, Kwe = (e, t) => t;
-function dQ(e) {
- let { queryKey: t, jobOf: n = Gwe, withJob: r = Kwe, idlePollMs: i } = e, [a, o] = (0, F.useState)(!1), [s, c] = (0, F.useState)(null), l = (0, F.useRef)(e);
+var Ywe = 2e3, Xwe = (e) => e, Zwe = (e, t) => t;
+function uQ(e) {
+ let { queryKey: t, jobOf: n = Xwe, withJob: r = Zwe, idlePollMs: i } = e, [a, o] = (0, F.useState)(!1), [s, c] = (0, F.useState)(null), l = (0, F.useRef)(e);
(0, F.useEffect)(() => {
l.current = e;
});
@@ -61309,7 +61334,7 @@ function dQ(e) {
queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),
refetchInterval: (e) => {
let t = e.state.data;
- return t !== void 0 && n(t)?.status === "running" ? Wwe : i ?? !1;
+ return t !== void 0 && n(t)?.status === "running" ? Ywe : i ?? !1;
}
}), d = Pt({
mutationFn: (e) => l.current.start(e),
@@ -61333,13 +61358,13 @@ function dQ(e) {
};
}
// src/react/follow-feed/follow-check.ts
-var fQ = (e) => [...new Set(e)].filter((e) => Number.isSafeInteger(e) && e > 0);
-function qwe(e, t) {
- return t ? fQ(e.filter((e) => e.author_key === t || t.startsWith("entity:") && String(e.entity_id) === t.slice(7)).map((e) => e.id)) : [];
+var dQ = (e) => [...new Set(e)].filter((e) => Number.isSafeInteger(e) && e > 0);
+function Qwe(e, t) {
+ return t ? dQ(e.filter((e) => e.author_key === t || t.startsWith("entity:") && String(e.entity_id) === t.slice(7)).map((e) => e.id)) : [];
}
// src/react/follow-feed/follow-check-button.tsx
-function Jwe({ sources: e, report: t }) {
- let n = fQ(e), [r, i] = (0, F.useState)(""), { running: a, start: o } = dQ({
+function $we({ sources: e, report: t }) {
+ let n = dQ(e), [r, i] = (0, F.useState)(""), { running: a, start: o } = uQ({
queryKey: Lr,
queryFn: ({ signal: e }) => gi(e),
start: (e) => yi(e),
@@ -61350,23 +61375,23 @@ function Jwe({ sources: e, report: t }) {
}), s = a || o.isPending;
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-col gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(q, {
+ children: [/* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
disabled: !n.length,
- ...qV(s),
+ ...YV(s),
onClick: () => {
n.length && !s && (i(""), o.mutate(n));
},
children: "检查更新"
- }), r ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ }), r ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "error",
children: r
}) : null]
});
}
// src/react/follow-feed/follow-card.tsx
-var Ywe = (e) => Number(e) > 0;
-function pQ({ name: e, actions: t, children: n, ...r }) {
+var eTe = (e) => Number(e) > 0;
+function fQ({ name: e, actions: t, children: n, ...r }) {
return /* @__PURE__ */ (0, I.jsx)("a", {
...r,
href: Mn("creator", e),
@@ -61376,15 +61401,15 @@ function pQ({ name: e, actions: t, children: n, ...r }) {
children: n
});
}
-var mQ = ({ provider: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var pQ = ({ provider: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-nothumb": "",
- dangerouslySetInnerHTML: { __html: NG(e) }
+ dangerouslySetInnerHTML: { __html: IG(e) }
});
-function Xwe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a, retryKey: o }) {
+function tTe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a, retryKey: o }) {
let [s, c] = (0, F.useState)(!1), [l, u] = (0, F.useState)(!1), [d, f] = (0, F.useState)(null);
return (0, F.useEffect)(() => {
c(!1);
- }, [o]), s ? /* @__PURE__ */ (0, I.jsx)(mQ, { provider: i }) : /* @__PURE__ */ (0, I.jsx)("img", {
+ }, [o]), s ? /* @__PURE__ */ (0, I.jsx)(pQ, { provider: i }) : /* @__PURE__ */ (0, I.jsx)("img", {
src: l ? t : e,
alt: "",
loading: "lazy",
@@ -61403,8 +61428,8 @@ function Xwe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a
} : void 0
});
}
-function Zwe(e) {
- let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = ma(t, r), d = r === "images", f = d ? (u.media_items || []).find((e) => e.media_kind === "image") : void 0, p = f?.thumb_url || u.thumb_url || "", m = d && u.playable ? `/follow-stream?id=${u.id}${f ? `&media=${f.index}` : ""}` : void 0, h = f && f.thumb_url === p ? f : null, g = !h || p === u.thumb_url, _ = d ? [h, g ? u : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, v = d && !_ && p ? (e, t) => ZG(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? ga(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = va({
+function nTe(e) {
+ let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = ma(t, r), d = r === "images", f = d ? (u.media_items || []).find((e) => e.media_kind === "image") : void 0, p = f?.thumb_url || u.thumb_url || "", m = d && u.playable ? `/follow-stream?id=${u.id}${f ? `&media=${f.index}` : ""}` : void 0, h = f && f.thumb_url === p ? f : null, g = !h || p === u.thumb_url, _ = d ? [h, g ? u : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, v = d && !_ && p ? (e, t) => eK(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? ga(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = va({
cover: p,
coverFace: (f?.thumb_url ? f : u).face,
stack: t.stack,
@@ -61412,7 +61437,7 @@ function Zwe(e) {
limit: 9
}), S = (0, F.useRef)(x.faces);
S.current = x.faces;
- let C = HK({
+ let C = VK({
load: async () => S.current,
canFlip: () => S.current.length > 1 && l.canFlip(),
referrerPolicy: "no-referrer"
@@ -61420,7 +61445,7 @@ function Zwe(e) {
w.current = C.onPointerLeave;
let T = (0, F.useCallback)((e) => {
e && (e._stopHover = () => w.current());
- }, []), E = RG(u, n, i), D = PG(u), O = u.resource_provider || u.provider, k = (u.tags || []).slice(0, 3), A = VG(u, i), j = BG(t, u), M = u.status === "saved", ee = (e) => {
+ }, []), E = VG(u, n, i), D = LG(u), O = u.resource_provider || u.provider, k = (u.tags || []).slice(0, 3), A = WG(u, i), j = UG(t, u), M = u.status === "saved", ee = (e) => {
e.target.closest("[data-media-tag]") || (l.toggleSelection && (o || e.shiftKey || e.ctrlKey || e.metaKey) ? (e.preventDefault(), l.toggleSelection(u.id, e.shiftKey)) : l.openDetail(u.id));
}, N = (e, t) => {
e.stopPropagation(), t();
@@ -61435,7 +61460,7 @@ function Zwe(e) {
"data-collection": x.isMix ? "" : void 0,
"data-selected": a ? "" : void 0,
onClick: ee,
- onMouseDown: MK,
+ onMouseDown: jK,
onMouseEnter: C.onPointerEnter,
onMouseLeave: C.onPointerLeave,
children: [
@@ -61449,7 +61474,7 @@ function Zwe(e) {
}), /* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-pic": "",
children: [
- p ? /* @__PURE__ */ (0, I.jsx)(Xwe, {
+ p ? /* @__PURE__ */ (0, I.jsx)(tTe, {
src: p,
fallback: m,
width: _?.width,
@@ -61457,7 +61482,7 @@ function Zwe(e) {
provider: O,
onLearn: v,
retryKey: e.retryKey
- }, p) : /* @__PURE__ */ (0, I.jsx)(mQ, { provider: O }),
+ }, p) : /* @__PURE__ */ (0, I.jsx)(pQ, { provider: O }),
x.faces.length > 1 ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-mix-faces": "",
hidden: !C.faces.length,
@@ -61477,7 +61502,7 @@ function Zwe(e) {
"data-media-badge": "",
title: u.provider_label || u.provider,
"aria-label": `来源:${u.provider_label || u.provider}`,
- dangerouslySetInnerHTML: { __html: NG(u.provider, u.provider_label) }
+ dangerouslySetInnerHTML: { __html: IG(u.provider, u.provider_label) }
}), j ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-badges": "",
dangerouslySetInnerHTML: { __html: j }
@@ -61490,7 +61515,7 @@ function Zwe(e) {
},
dangerouslySetInnerHTML: { __html: z("check") }
}) : null,
- Ywe(u.duration) ? /* @__PURE__ */ (0, I.jsx)("span", {
+ eTe(u.duration) ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-duration": "",
children: Kn(u.duration)
}) : null,
@@ -61562,7 +61587,7 @@ function Zwe(e) {
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-meta": "",
children: [
- E.entityName ? /* @__PURE__ */ (0, I.jsx)(pQ, {
+ E.entityName ? /* @__PURE__ */ (0, I.jsx)(fQ, {
name: E.entityName,
actions: l,
"data-media-avatar": "",
@@ -61581,12 +61606,12 @@ function Zwe(e) {
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-media-title": "",
- dangerouslySetInnerHTML: { __html: zG(t, u) + B(D) }
+ dangerouslySetInnerHTML: { __html: HG(t, u) + B(D) }
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-follow-byline": "",
children: [
- E.entityName ? /* @__PURE__ */ (0, I.jsx)(pQ, {
+ E.entityName ? /* @__PURE__ */ (0, I.jsx)(fQ, {
name: E.entityName,
actions: l,
"data-follow-author": "",
@@ -61599,8 +61624,8 @@ function Zwe(e) {
}),
/* @__PURE__ */ (0, I.jsx)("time", {
dateTime: u.published_at || "",
- title: GG(u),
- children: KG(u)
+ title: JG(u),
+ children: YG(u)
}),
E.credited ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-credit": "",
@@ -61635,9 +61660,9 @@ function Zwe(e) {
]
});
}
-var hQ = (0, F.memo)(Zwe);
+var mQ = (0, F.memo)(nTe);
// src/react/components/use-masonry-grid.ts
-function Qwe(e, t) {
+function rTe(e, t) {
let n = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
let t = n.current;
@@ -61672,37 +61697,37 @@ function Qwe(e, t) {
}, [e, t]), n;
}
// src/react/follow-manage/manage-route.ts
-var gQ = [
+var hQ = [
["list", "关注列表"],
["add", "添加关注"],
["tags", "标签管理"]
-], _Q = gQ.map(([e]) => e);
-function vQ(e) {
+], gQ = hQ.map(([e]) => e);
+function _Q(e) {
let t = new URLSearchParams(e), n = t.get("tab");
return {
- tab: _Q.find((e) => e === n) || "list",
+ tab: gQ.find((e) => e === n) || "list",
page: Math.max(1, Math.floor(Number(t.get("page"))) || 1),
sort: t.get("sort") || "",
dir: t.get("dir") || ""
};
}
-function yQ(e) {
+function vQ(e) {
let t = new URLSearchParams();
return e.tab !== "list" && t.set("tab", e.tab), e.page > 1 && t.set("page", String(e.page)), e.sort && t.set("sort", e.sort), e.dir && t.set("dir", e.dir), "/subscriptions" + (t.size ? `?${t}` : "");
}
-function bQ(e, t) {
- return !t && new URLSearchParams(e).get("tab") === "wants" ? "/jav?tab=wants" : !t && new URLSearchParams(e).get("tab") === "source" ? "/settings/library?section=%E6%9D%A5%E6%BA%90%E4%B8%8E%E8%AE%A2%E9%98%85" : yQ({
- tab: t || vQ(e).tab,
+function yQ(e, t) {
+ return !t && new URLSearchParams(e).get("tab") === "wants" ? "/jav?tab=wants" : !t && new URLSearchParams(e).get("tab") === "source" ? "/settings/library?section=%E6%9D%A5%E6%BA%90%E4%B8%8E%E8%AE%A2%E9%98%85" : vQ({
+ tab: t || _Q(e).tab,
page: 1,
sort: "",
dir: ""
});
}
// src/react/follow-feed/follow-feed-page.tsx
-var xQ = () => /* @__PURE__ */ (0, I.jsx)("span", {
+var bQ = () => /* @__PURE__ */ (0, I.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), $we = GV("settings"), SQ = GV("chevron-down"), eTe = GV("history"), tTe = GV("arrow-up"), nTe = GV("arrow-down"), rTe = [[
+}), iTe = qV("settings"), xQ = qV("chevron-down"), aTe = qV("history"), oTe = qV("arrow-up"), sTe = qV("arrow-down"), cTe = [[
"fixed",
"固定比例",
"layout-grid"
@@ -61711,7 +61736,7 @@ var xQ = () => /* @__PURE__ */ (0, I.jsx)("span", {
"瀑布流",
"columns-2"
]];
-function iTe(e, t, n) {
+function lTe(e, t, n) {
return (0, F.useMemo)(() => {
let r = e?.groups || [], i = e?.counts || {}, a = e?.sources || [], o = e?.facets || {}, s = new Set(o.authors || []), c = new Map(a.map((e) => [e.provider, e.provider_label || e.provider])), l = new Map((o.providers || []).map((e) => [e, c.get(e) || e])), u = new Map(o.tags || []), d = /* @__PURE__ */ new Map();
a.forEach((e) => {
@@ -61759,7 +61784,7 @@ function iTe(e, t, n) {
n
]);
}
-function aTe(e) {
+function uTe(e) {
let { view: t, seed: n, revision: r, actions: i } = e, a = Ft(ta(t, r)), o = Nt({
queryKey: na,
queryFn: ({ signal: e }) => ra(e)
@@ -61767,9 +61792,9 @@ function aTe(e) {
sources: s?.sources || [],
aliases: s?.author_aliases || [],
credentials: c
- }), [s, c]), u = iTe(s, t, n), d = a.isPending || a.isPlaceholderData, f = !d && !!s;
+ }), [s, c]), u = lTe(s, t, n), d = a.isPending || a.isPlaceholderData, f = !d && !!s;
(0, F.useEffect)(() => {
- _m(() => location.pathname === "/follow", document.querySelector("#stats [data-filter-frame]"), { pending: d });
+ Sm(() => location.pathname === "/follow", document.querySelector("#stats [data-filter-frame]"), { pending: d });
}, [
d,
s,
@@ -61801,10 +61826,10 @@ function aTe(e) {
p,
i
]);
- let m = sTe(e, !!s);
+ let m = fTe(e, !!s);
if (!s) return a.isError ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-follow-feed": "",
- children: [/* @__PURE__ */ (0, I.jsx)(CQ, {}), /* @__PURE__ */ (0, I.jsx)(gK, {
+ children: [/* @__PURE__ */ (0, I.jsx)(SQ, {}), /* @__PURE__ */ (0, I.jsx)(hK, {
message: yn(a.error),
onRetry: () => void a.refetch()
})]
@@ -61817,7 +61842,7 @@ function aTe(e) {
author: u.author,
provider: u.provider
}, {
- authors: new Map([...u.authorSources].map(([e, t]) => [e, FG(t, l)])),
+ authors: new Map([...u.authorSources].map(([e, t]) => [e, RG(t, l)])),
providers: u.providers,
works: u.workNames
}), _ = t.status ? u.counts[t.status] || 0 : u.allCount, v = u.sources.some((e) => e.can_backfill);
@@ -61826,7 +61851,7 @@ function aTe(e) {
ref: m.host,
"data-follow-progress": ""
}, m.generation),
- !m.busy && m.report ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ !m.busy && m.report ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "neutral",
title: "检查结果",
children: m.report
@@ -61835,7 +61860,7 @@ function aTe(e) {
"data-follow-feed": "",
"data-select-mode": e.selectMode ? "" : void 0,
children: [
- /* @__PURE__ */ (0, I.jsx)(CQ, { children: u.sources.length ? /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, I.jsx)(SQ, { children: u.sources.length ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "primary",
"data-follow-recheck": "",
"aria-label": "检查每个来源的更新",
@@ -61846,20 +61871,20 @@ function aTe(e) {
dangerouslySetInnerHTML: { __html: Rs("检查中") }
}) : "检查更新"
}) : null }),
- /* @__PURE__ */ (0, I.jsx)(cTe, {
+ /* @__PURE__ */ (0, I.jsx)(pTe, {
facets: u,
pressed: u.author,
context: l,
props: e,
onPick: (e) => h({ author: u.author === e ? "" : e })
}),
- /* @__PURE__ */ (0, I.jsx)(lTe, {
+ /* @__PURE__ */ (0, I.jsx)(mTe, {
rows: u.workRows,
pressed: t.work,
props: e,
onPick: (e) => h({ work: t.work === e ? "" : e })
}),
- /* @__PURE__ */ (0, I.jsx)(uTe, {
+ /* @__PURE__ */ (0, I.jsx)(hTe, {
facets: u,
view: t,
total: _,
@@ -61867,7 +61892,7 @@ function aTe(e) {
props: e,
route: h
}),
- /* @__PURE__ */ (0, I.jsx)(dTe, {
+ /* @__PURE__ */ (0, I.jsx)(gTe, {
conditions: g,
onDrop: (e) => i.route(wa(t, e)),
onClear: () => h({
@@ -61879,15 +61904,15 @@ function aTe(e) {
durMax: 0
})
}),
- u.broken.length ? /* @__PURE__ */ (0, I.jsx)(fTe, { count: u.broken.length }) : null,
- /* @__PURE__ */ (0, I.jsx)(pTe, {
+ u.broken.length ? /* @__PURE__ */ (0, I.jsx)(_Te, { count: u.broken.length }) : null,
+ /* @__PURE__ */ (0, I.jsx)(vTe, {
retryKey: a.dataUpdatedAt,
pending: d,
facets: u,
data: s,
context: l,
props: e,
- checkAction: /* @__PURE__ */ (0, I.jsx)(q, {
+ checkAction: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "secondary",
"aria-label": "检查每个来源的更新",
@@ -61903,14 +61928,14 @@ function aTe(e) {
"data-follow-pagination": "",
children: [s.has_more ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-page-action": "",
- children: s.groups.length < 500 ? /* @__PURE__ */ (0, I.jsxs)(KY, {
+ children: s.groups.length < 500 ? /* @__PURE__ */ (0, I.jsxs)(GY, {
entity: !0,
enabled: () => !m.busyRef.current,
load: async () => {
await a.fetchNextPage({ throwOnError: !0 });
},
- children: [/* @__PURE__ */ (0, I.jsx)(SQ, { className: "size-(--icon-inline)" }), "加载更多"]
- }, a.data?.pages.length) : /* @__PURE__ */ (0, I.jsx)(oTe, {
+ children: [/* @__PURE__ */ (0, I.jsx)(xQ, { className: "size-(--icon-inline)" }), "加载更多"]
+ }, a.data?.pages.length) : /* @__PURE__ */ (0, I.jsx)(dTe, {
busy: a.isFetchingNextPage,
error: a.isFetchNextPageError ? yn(a.error) : "",
load: () => {
@@ -61919,9 +61944,9 @@ function aTe(e) {
})
}) : null, v ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-follow-page-action": "",
- children: [/* @__PURE__ */ (0, I.jsx)(q, {
+ children: [/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- leadingIcon: m.olderBusy ? void 0 : eTe,
+ leadingIcon: m.olderBusy ? void 0 : aTe,
"data-follow-older": "",
"aria-busy": m.busy || void 0,
onClick: () => void m.start(!0),
@@ -61939,7 +61964,7 @@ function aTe(e) {
})
] });
}
-function CQ({ children: e }) {
+function SQ({ children: e }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-follow-head": "",
children: [/* @__PURE__ */ (0, I.jsx)("h2", {
@@ -61947,30 +61972,30 @@ function CQ({ children: e }) {
children: "关注"
}), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-follow-head-actions": "",
- children: [/* @__PURE__ */ (0, I.jsx)(_R, {
+ children: [/* @__PURE__ */ (0, I.jsx)(yR, {
variant: "secondary",
- leadingIcon: $we,
+ leadingIcon: iTe,
"data-follow-manage": "",
- href: wQ(),
+ href: CQ(),
children: "管理关注"
}), e]
})]
});
}
-function oTe({ busy: e, error: t, load: n }) {
+function dTe({ busy: e, error: t, load: n }) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-entity-more": "",
"aria-busy": e || void 0,
"aria-disabled": e || void 0,
onClick: n,
- children: [/* @__PURE__ */ (0, I.jsx)(SQ, { className: "size-(--icon-inline)" }), "加载更多"]
- }), t ? /* @__PURE__ */ (0, I.jsx)(gK, {
+ children: [/* @__PURE__ */ (0, I.jsx)(xQ, { className: "size-(--icon-inline)" }), "加载更多"]
+ }), t ? /* @__PURE__ */ (0, I.jsx)(hK, {
message: t,
onRetry: n
}) : null] });
}
-function sTe(e, t) {
+function fTe(e, t) {
let { helpers: n, actions: r } = e, [i, a] = (0, F.useState)(0), [o, s] = (0, F.useState)(!1), [c, l] = (0, F.useState)(""), [u, d] = (0, F.useState)(""), [f, p] = (0, F.useState)(!1), m = (0, F.useRef)(!1), h = (0, F.useRef)(null), g = (0, F.useRef)({
helpers: n,
actions: r
@@ -62032,12 +62057,12 @@ function sTe(e, t) {
olderBusy: c === "older" || f && o
};
}
-function cTe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
+function pTe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
let a = (0, F.useRef)(null);
(0, F.useEffect)(() => {
r.helpers.wireDrag(a.current);
}, [r.helpers]);
- let o = (t) => FG(e.authorSources.get(t) || [], n);
+ let o = (t) => RG(e.authorSources.get(t) || [], n);
return e.authorOrder.length ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-authors-bar": "",
children: /* @__PURE__ */ (0, I.jsx)("div", {
@@ -62045,14 +62070,14 @@ function cTe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
"data-follow-authors": "",
"aria-label": "创作者",
children: e.authorOrder.map((n) => {
- let a = e.authorSources.get(n) || [], s = IG(a), c = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ let a = e.authorSources.get(n) || [], s = zG(a), c = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-ring": "",
- dangerouslySetInnerHTML: { __html: LG(a, o(n)) }
+ dangerouslySetInnerHTML: { __html: BG(a, o(n)) }
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-name": "",
children: o(n)
})] });
- return s ? /* @__PURE__ */ (0, I.jsx)(pQ, {
+ return s ? /* @__PURE__ */ (0, I.jsx)(fQ, {
name: s,
actions: r.actions,
"data-follow-author": n,
@@ -62069,7 +62094,7 @@ function cTe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
})
}) : null;
}
-function lTe({ rows: e, pressed: t, props: n, onPick: r }) {
+function mTe({ rows: e, pressed: t, props: n, onPick: r }) {
let i = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
n.helpers.wireDrag(i.current);
@@ -62090,13 +62115,13 @@ function lTe({ rows: e, pressed: t, props: n, onPick: r }) {
}, e[0]))
}) : null;
}
-function uTe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
- let { helpers: o, actions: s } = i, c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(null), d = (0, F.useRef)(null), f = (0, F.useRef)(null), p = (0, F.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = hR(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = hR(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
+function hTe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
+ let { helpers: o, actions: s } = i, c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(null), d = (0, F.useRef)(null), f = (0, F.useRef)(null), p = (0, F.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = _R(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = _R(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
(0, F.useEffect)(() => {
o.wireDrag(f.current), o.wireDrag(p.current), o.wireScroller(p.current);
}, [o]);
let _ = [...e.providers], v = _.length + e.tagRows.length > 0, y = t.media === "images";
- return /* @__PURE__ */ (0, I.jsx)(uR, {
+ return /* @__PURE__ */ (0, I.jsx)(fR, {
label: "筛选与排序",
topLabel: m ? "媒体与关注筛选" : "关注筛选",
attrs: {
@@ -62148,7 +62173,7 @@ function uTe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: z(i) }
}, e);
})
- }), /* @__PURE__ */ (0, I.jsx)(xQ, {})] }) : null, /* @__PURE__ */ (0, I.jsxs)("div", {
+ }), /* @__PURE__ */ (0, I.jsx)(bQ, {})] }) : null, /* @__PURE__ */ (0, I.jsxs)("div", {
ref: f,
"data-entity-scroll": "",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -62168,7 +62193,7 @@ function uTe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
t.status !== e && a({ status: e });
},
children: n
- }, e)), v ? /* @__PURE__ */ (0, I.jsx)(xQ, {}) : null]
+ }, e)), v ? /* @__PURE__ */ (0, I.jsx)(bQ, {}) : null]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: p,
"data-entity-tags": "",
@@ -62181,10 +62206,10 @@ function uTe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
title: n,
"aria-label": `来源:${n}`,
onClick: () => a({ provider: e.provider === t ? "" : t }),
- dangerouslySetInnerHTML: { __html: NG(t, n) }
+ dangerouslySetInnerHTML: { __html: IG(t, n) }
}, t)),
- _.length && e.tagRows.length ? /* @__PURE__ */ (0, I.jsx)(xQ, {}) : null,
- e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, I.jsxs)(dR, {
+ _.length && e.tagRows.length ? /* @__PURE__ */ (0, I.jsx)(bQ, {}) : null,
+ e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, I.jsxs)(pR, {
"data-follow-tag": n,
"data-entity-press": "",
"data-tag-cat": `r34-${Ta(e.groups, n)}`,
@@ -62202,23 +62227,23 @@ function uTe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
/* @__PURE__ */ (0, I.jsx)("h3", {
"data-entity-readout": "",
"data-follow-readout": "",
- children: /* @__PURE__ */ (0, I.jsx)(rR, {
+ children: /* @__PURE__ */ (0, I.jsx)(aR, {
text: `${n.toLocaleString()} 项更新 · 显示 ${e.visible.length.toLocaleString()}`,
busy: r
})
}),
- /* @__PURE__ */ (0, I.jsx)(oH, {
+ /* @__PURE__ */ (0, I.jsx)(cH, {
currentHref: () => location.pathname + location.search,
kind: "creator"
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(uK, { onPress: s.shuffle }),
- y ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(lK, {
+ /* @__PURE__ */ (0, I.jsx)(lK, { onPress: s.shuffle }),
+ y ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(cK, {
label: "图片布局",
value: i.photoLayout,
- options: rTe,
+ options: cTe,
onChange: (e) => s.setPhotoLayout(e === "fixed" ? "fixed" : "masonry")
}), /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
@@ -62248,9 +62273,9 @@ function uTe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
let n = ba(e, t.sort, t.dir);
n && a(n);
},
- children: [n, r ? /* @__PURE__ */ (0, I.jsx)(OG, {
- a: tTe,
- b: nTe,
+ children: [n, r ? /* @__PURE__ */ (0, I.jsx)(jG, {
+ a: oTe,
+ b: sTe,
state: t.dir === "asc" ? "a" : "b",
className: "size-(--icon-inline)"
}) : null]
@@ -62261,7 +62286,7 @@ function uTe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
] })
});
}
-function dTe({ conditions: e, onDrop: t, onClear: n }) {
+function gTe({ conditions: e, onDrop: t, onClear: n }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-entity-combo": "",
"data-follow-combo": "",
@@ -62286,21 +62311,21 @@ function dTe({ conditions: e, onDrop: t, onClear: n }) {
})] }) : null
});
}
-function fTe({ count: e }) {
+function _Te({ count: e }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-broken": "",
- dangerouslySetInnerHTML: { __html: `<div class="geist-note geist-note-error fwarn" role="alert">${z("alert")}<span>${e} 个来源上次检查失败,去<a class="flink" href="${B(wQ())}" data-follow-manage>管理关注</a>看原因。</span></div>` }
+ dangerouslySetInnerHTML: { __html: `<div class="geist-note geist-note-error fwarn" role="alert">${z("alert")}<span>${e} 个来源上次检查失败,去<a class="flink" href="${B(CQ())}" data-follow-manage>管理关注</a>看原因。</span></div>` }
});
}
-var wQ = () => bQ(window.location.search);
-function pTe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a, checkAction: o }) {
+var CQ = () => yQ(window.location.search);
+function vTe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a, checkAction: o }) {
let { view: s, helpers: c } = i, l = s.media === "images";
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-list-body": "",
- children: /* @__PURE__ */ (0, I.jsx)(_K, {
+ children: /* @__PURE__ */ (0, I.jsx)(gK, {
pending: e,
skeletonHtml: () => c.listSkeletonHtml(s.media),
- children: e ? null : /* @__PURE__ */ (0, I.jsx)(mTe, {
+ children: e ? null : /* @__PURE__ */ (0, I.jsx)(yTe, {
facets: t,
data: n,
context: r,
@@ -62312,29 +62337,29 @@ function pTe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a
})
});
}
-function mTe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a, checkAction: o }) {
- let { view: s, actions: c } = r, l = EQ(r), u = i ? {
+function yTe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a, checkAction: o }) {
+ let { view: s, actions: c } = r, l = TQ(r), u = i ? {
"data-size": r.photoSize,
"data-layout": r.photoLayout,
"data-images-only": String(r.imagesOnly)
- } : {}, d = Qwe(i && r.photoLayout === "masonry", `${r.photoSize}:${e.visible.map((e) => e.primary.id).join(",")}`), f;
+ } : {}, d = rTe(i && r.photoLayout === "masonry", `${r.photoSize}:${e.visible.map((e) => e.primary.id).join(",")}`), f;
return f = e.visible.length ? e.visible.map((t) => {
let i = e.byId.get(t.primary?.source_id), o = i?.author_key && e.authorSources.get(i.author_key) || [], u = t.primary.id;
- return /* @__PURE__ */ (0, I.jsx)(hQ, {
+ return /* @__PURE__ */ (0, I.jsx)(mQ, {
group: t,
authorSources: o,
media: s.media,
retryKey: a,
context: n,
- selected: r.selected.has(TQ(t, s)),
+ selected: r.selected.has(wQ(t, s)),
selectMode: r.selectMode,
- busy: l.busy.get(TQ(t, s)) || "",
- failure: l.failures.get(TQ(t, s)) || "",
+ busy: l.busy.get(wQ(t, s)) || "",
+ failure: l.failures.get(wQ(t, s)) || "",
actions: c,
onStatus: l.status,
onSave: l.save
}, `${u}:${s.media}`);
- }) : /* @__PURE__ */ (0, I.jsx)(hTe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(bTe, {
data: t,
filtered: !!(s.status || e.author || e.provider || s.work || s.tags.length || s.durMin || s.durMax),
checkAction: o,
@@ -62357,22 +62382,22 @@ function mTe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a,
children: f
});
}
-function TQ(e, t) {
+function wQ(e, t) {
return ma(e, t.media).id;
}
-function hTe({ data: e, filtered: t, clear: n, checkAction: r }) {
+function bTe({ data: e, filtered: t, clear: n, checkAction: r }) {
let i = !!e.groups.length || t, a = !!e.sources.length;
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-empty": "",
className: "contents",
- children: /* @__PURE__ */ (0, I.jsx)(UV, {
- icon: GV(i ? "search-x" : "rss"),
+ children: /* @__PURE__ */ (0, I.jsx)(GV, {
+ icon: qV(i ? "search-x" : "rss"),
title: i ? "当前筛选下没有更新" : a ? "还没有更新" : "还没有关注任何来源",
- actions: i ? /* @__PURE__ */ (0, I.jsx)(q, {
+ actions: i ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
onClick: n,
children: "清除筛选"
- }) : a ? r : /* @__PURE__ */ (0, I.jsx)(_R, {
+ }) : a ? r : /* @__PURE__ */ (0, I.jsx)(yR, {
size: "small",
href: "/subscriptions?tab=add",
children: "添加关注"
@@ -62381,12 +62406,12 @@ function hTe({ data: e, filtered: t, clear: n, checkAction: r }) {
})
});
}
-var gTe = {
+var xTe = {
new: "已恢复未看",
seen: "已标记已看",
ignored: "已忽略"
};
-function EQ(e) {
+function TQ(e) {
let { view: t, revision: n, actions: r } = e, [i, a] = (0, F.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, F.useState)(() => /* @__PURE__ */ new Map()), c = ta(t, n).queryKey, l = (e, t, n) => n((n) => {
let r = new Map(n);
return t ? r.set(e, t) : r.delete(e), r;
@@ -62409,7 +62434,7 @@ function EQ(e) {
to: t
}),
onSuccess: (e, { id: t, to: n, was: i }) => {
- u(t, n), d(), r.toast(gTe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
+ u(t, n), d(), r.toast(xTe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
await H(Ar, {
item: t,
to: i
@@ -62454,9 +62479,9 @@ function EQ(e) {
};
}
// src/react/entity-body/entity-online.tsx
-function _Te(e) {
+function STe(e) {
let { result: t, data: n, media: r, helpers: i } = e, a = t.isPending || t.isPlaceholderData;
- return !n && t.isError ? /* @__PURE__ */ (0, I.jsx)(gK, {
+ return !n && t.isError ? /* @__PURE__ */ (0, I.jsx)(hK, {
message: yn(t.error),
onRetry: () => {
t.refetch();
@@ -62464,13 +62489,13 @@ function _Te(e) {
}) : /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-list-body": "",
"data-entity-online": "",
- children: /* @__PURE__ */ (0, I.jsxs)(_K, {
+ children: /* @__PURE__ */ (0, I.jsxs)(gK, {
pending: a,
skeletonHtml: () => i.listSkeletonHtml(r),
- children: [a || !n ? null : /* @__PURE__ */ (0, I.jsx)(vTe, {
+ children: [a || !n ? null : /* @__PURE__ */ (0, I.jsx)(CTe, {
...e,
data: n
- }), !a && n?.has_more ? /* @__PURE__ */ (0, I.jsx)(KY, {
+ }), !a && n?.has_more ? /* @__PURE__ */ (0, I.jsx)(GY, {
entity: !0,
enabled: () => e.canLoadMore?.() !== !1,
load: async () => {
@@ -62480,8 +62505,8 @@ function _Te(e) {
})
});
}
-function vTe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c, clearFilters: l }) {
- let u = EQ({
+function CTe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c, clearFilters: l }) {
+ let u = TQ({
view: e,
revision: 0,
actions: c
@@ -62499,7 +62524,7 @@ function vTe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,
"data-images-only": String(s)
} : {}, m = r.length ? r.map((e) => {
let n = ma(e, t).id, r = d.byId.get(e.primary?.source_id)?.author_key;
- return /* @__PURE__ */ (0, I.jsx)(hQ, {
+ return /* @__PURE__ */ (0, I.jsx)(mQ, {
group: e,
authorSources: r && d.byAuthor.get(r) || [],
media: t,
@@ -62512,11 +62537,11 @@ function vTe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,
onStatus: u.status,
onSave: u.save
}, `${e.primary.id}:${t}`);
- }) : /* @__PURE__ */ (0, I.jsx)(yTe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(wTe, {
searched: !!(n.groups || []).length || !!(e.status || e.provider || e.tags.length || e.durMin || e.durMax),
clear: l,
actions: c,
- sources: qwe(n.sources || [], e.author)
+ sources: Qwe(n.sources || [], e.author)
});
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-list": "",
@@ -62525,21 +62550,21 @@ function vTe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,
children: m
});
}
-function yTe({ searched: e, clear: t, actions: n, sources: r }) {
+function wTe({ searched: e, clear: t, actions: n, sources: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-empty": "",
className: "contents",
- children: /* @__PURE__ */ (0, I.jsx)(UV, {
- icon: GV(e ? "search-x" : "rss"),
+ children: /* @__PURE__ */ (0, I.jsx)(GV, {
+ icon: qV(e ? "search-x" : "rss"),
title: e ? "当前筛选下没有更新" : "还没有抓到更新",
- actions: e ? /* @__PURE__ */ (0, I.jsx)(q, {
+ actions: e ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
onClick: t,
children: "清除筛选"
- }) : r.length ? /* @__PURE__ */ (0, I.jsx)(Jwe, {
+ }) : r.length ? /* @__PURE__ */ (0, I.jsx)($we, {
sources: r,
report: n.checkReport
- }) : /* @__PURE__ */ (0, I.jsx)(_R, {
+ }) : /* @__PURE__ */ (0, I.jsx)(yR, {
size: "small",
href: "/subscriptions?tab=add",
children: "添加关注"
@@ -62548,7 +62573,7 @@ function yTe({ searched: e, clear: t, actions: n, sources: r }) {
})
});
}
-function DQ(e) {
+function EQ(e) {
return {
x0: 0,
y0: 0,
@@ -62556,7 +62581,7 @@ function DQ(e) {
y1: e.height
};
}
-function OQ(e) {
+function DQ(e) {
return {
x0: Math.round(e.x0),
y0: Math.round(e.y0),
@@ -62564,40 +62589,40 @@ function OQ(e) {
y1: Math.round(e.y1)
};
}
-function kQ(e) {
+function OQ(e) {
return !!e && Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0;
}
-function AQ(e, t) {
- if (!kQ(e)) return {
+function kQ(e, t) {
+ if (!OQ(e)) return {
x0: 0,
y0: 0,
x1: 0,
y1: 0
};
- if (t == null || !(t > 0)) return DQ(e);
+ if (t == null || !(t > 0)) return EQ(e);
let n = e.width, r = n / t;
r > e.height && (r = e.height, n = r * t);
let i = (e.width - n) / 2, a = (e.height - r) / 2;
- return OQ({
+ return DQ({
x0: i,
y0: a,
x1: i + n,
y1: a + r
});
}
-function bTe(e, t) {
- if (!kQ(e) || !(t > 0)) return DQ(e);
+function TTe(e, t) {
+ if (!OQ(e) || !(t > 0)) return EQ(e);
let n = Math.min(e.width, e.height * t);
- return OQ({
+ return DQ({
x0: e.width - n,
y0: 0,
x1: e.width,
y1: e.height
});
}
-function xTe(e, t, n) {
- if (!kQ(t) || !(n > 0)) return DQ(t);
- let r = jQ(e, t), i = AQ({
+function ETe(e, t, n) {
+ if (!OQ(t) || !(n > 0)) return EQ(t);
+ let r = AQ(e, t), i = kQ({
width: r.x1 - r.x0,
height: r.y1 - r.y0
}, n);
@@ -62608,8 +62633,8 @@ function xTe(e, t, n) {
y1: r.y0 + i.y1
};
}
-function jQ(e, t, n = null, r = "width") {
- if (!kQ(t)) return {
+function AQ(e, t, n = null, r = "width") {
+ if (!OQ(t)) return {
x0: 0,
y0: 0,
x1: 0,
@@ -62618,43 +62643,43 @@ function jQ(e, t, n = null, r = "width") {
let i = Math.min(16, t.width, t.height), a = Math.max(i, Math.min(e.x1 - e.x0, t.width)), o = Math.max(i, Math.min(e.y1 - e.y0, t.height));
n != null && n > 0 && (r === "width" ? (o = a / n, o > t.height && (o = t.height, a = o * n)) : (a = o * n, a > t.width && (a = t.width, o = a / n)), a > t.width && (a = t.width, o = a / n));
let s = Math.max(0, Math.min(e.x0, t.width - a)), c = Math.max(0, Math.min(e.y0, t.height - o));
- return OQ({
+ return DQ({
x0: s,
y0: c,
x1: s + a,
y1: c + o
});
}
-function MQ(e, t, n, r) {
+function jQ(e, t, n, r) {
let i = e.x1 - e.x0, a = e.y1 - e.y0, o = Math.max(0, Math.min(e.x0 + t, r.width - i)), s = Math.max(0, Math.min(e.y0 + n, r.height - a));
- return OQ({
+ return DQ({
x0: o,
y0: s,
x1: o + i,
y1: s + a
});
}
-function NQ(e, t, n, r = null) {
- if (!kQ(n) || !(t > 0)) return e;
+function MQ(e, t, n, r = null) {
+ if (!OQ(n) || !(t > 0)) return e;
let i = (e.x0 + e.x1) / 2, a = (e.y0 + e.y1) / 2, o = (e.x1 - e.x0) * t, s = (e.y1 - e.y0) * t;
- return jQ({
+ return AQ({
x0: i - o / 2,
y0: a - s / 2,
x1: i + o / 2,
y1: a + s / 2
}, n, r);
}
-function STe(e, t, n, r, i = null) {
+function DTe(e, t, n, r, i = null) {
let a = {
x0: e.x0,
y0: e.y0,
x1: Math.max(e.x0 + 1, t),
y1: Math.max(e.y0 + 1, n)
};
- return jQ(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
+ return AQ(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
}
-function CTe(e, t) {
- return kQ(t) ? {
+function OTe(e, t) {
+ return OQ(t) ? {
left: e.x0 / t.width * 100,
top: e.y0 / t.height * 100,
width: (e.x1 - e.x0) / t.width * 100,
@@ -62666,8 +62691,8 @@ function CTe(e, t) {
height: 0
};
}
-function wTe(e, t) {
- if (!kQ(t)) return {
+function kTe(e, t) {
+ if (!OQ(t)) return {
size: "cover",
position: "50% 50%"
};
@@ -62677,7 +62702,7 @@ function wTe(e, t) {
position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`
};
}
-function TTe(e, t) {
+function ATe(e, t) {
let n = Math.max(1, e.x1 - e.x0), r = Math.max(1, e.y1 - e.y0);
return {
left: `${-e.x0 / n * 100}%`,
@@ -62686,15 +62711,15 @@ function TTe(e, t) {
height: `${t.height / r * 100}%`
};
}
-function PQ(e, t, n) {
+function NQ(e, t, n) {
return t > 0 ? e * n / t : 0;
}
-function ETe(e, t) {
+function jTe(e, t) {
return !t || !(t.width > 0) || !(t.height > 0) ? !1 : Math.min(e.width / 100 * t.width, e.height / 100 * t.height) < 36;
}
// src/react/crop/crop-frame.tsx
-var DTe = .02, FQ = 1.08;
-function IQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
+var MTe = .02, PQ = 1.08;
+function FQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
let s = (0, F.useRef)(null), c = (0, F.useRef)(null), [l, u] = (0, F.useState)(!1), [d, f] = (0, F.useState)(null);
(0, F.useEffect)(() => {
u(!1);
@@ -62713,8 +62738,8 @@ function IQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
dx: 0,
dy: 0
} : {
- dx: PQ(e, n.clientWidth, r.width),
- dy: PQ(t, n.clientHeight, r.height)
+ dx: NQ(e, n.clientWidth, r.width),
+ dy: NQ(t, n.clientHeight, r.height)
};
}, [r]);
function m(e) {
@@ -62731,22 +62756,22 @@ function IQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
let n = c.current, a = s.current;
if (!n || !a || !r) return;
let o = p(e.clientX - n.x, e.clientY - n.y);
- n.mode === "move" ? i(MQ(n.box, o.dx, o.dy, r)) : i(STe(n.box, n.box.x0 + (n.box.x1 - n.box.x0) + o.dx, n.box.y0 + (n.box.y1 - n.box.y0) + o.dy, r, t));
+ n.mode === "move" ? i(jQ(n.box, o.dx, o.dy, r)) : i(DTe(n.box, n.box.x0 + (n.box.x1 - n.box.x0) + o.dx, n.box.y0 + (n.box.y1 - n.box.y0) + o.dy, r, t));
}
function g(e) {
c.current && (c.current = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId));
}
function _(e) {
if (!n || !r) return;
- let a = Math.max(1, (n.x1 - n.x0) * DTe), o = {
+ let a = Math.max(1, (n.x1 - n.x0) * MTe), o = {
ArrowLeft: [-a, 0],
ArrowRight: [a, 0],
ArrowUp: [0, -a],
ArrowDown: [0, a]
};
- o[e.key] ? (e.preventDefault(), i(MQ(n, o[e.key][0], o[e.key][1], r))) : (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(NQ(n, e.key === "-" ? 1 / FQ : FQ, r, t)));
+ o[e.key] ? (e.preventDefault(), i(jQ(n, o[e.key][0], o[e.key][1], r))) : (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(MQ(n, e.key === "-" ? 1 / PQ : PQ, r, t)));
}
- let v = n && r ? CTe(jQ(n, r, t), r) : null, y = v ? ETe(v, d) : !1, b = v ? {
+ let v = n && r ? OTe(AQ(n, r, t), r) : null, y = v ? jTe(v, d) : !1, b = v ? {
"--crop-l": `${v.left}%`,
"--crop-t": `${v.top}%`,
"--crop-w": `${v.width}%`,
@@ -62765,7 +62790,7 @@ function IQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
draggable: !1,
onLoad: (e) => {
let t = e.currentTarget;
- kQ({
+ OQ({
width: t.naturalWidth,
height: t.naturalHeight
}) && a({
@@ -62804,7 +62829,7 @@ function IQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
onPointerCancel: g,
onKeyDown: _,
onWheel: (e) => {
- n && r && i(NQ(n, e.deltaY > 0 ? FQ : 1 / FQ, r, t));
+ n && r && i(MQ(n, e.deltaY > 0 ? PQ : 1 / PQ, r, t));
},
className: "absolute left-(--crop-l) top-(--crop-t) h-(--crop-h) w-(--crop-w) cursor-move touch-none outline-none ring-2 ring-border-focus-ring ring-inset focus-visible:ring-4",
children: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -62826,13 +62851,13 @@ function IQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
});
}
// src/react/avatar-picker/avatar-picker.ts
-var OTe = "/api/avatar-choices", LQ = "/api/avatar-pick", kTe = "/api/avatar-code-cover", RQ = "/api/avatar-frame", ATe = "/avatar-choice", zQ = (e, t) => [
+var NTe = "/api/avatar-choices", IQ = "/api/avatar-pick", PTe = "/api/avatar-code-cover", LQ = "/api/avatar-frame", FTe = "/avatar-choice", RQ = (e, t) => [
"avatar-choices",
e,
t
-], BQ = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, VQ = (e, t, n, r = "") => `${ATe}${BQ(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), HQ = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", jTe = (e, t, n) => V(OTe + BQ(e, t), n), MTe = (e) => H(kTe, { code: e });
-async function NTe(e, t, n) {
- let r = await H(RQ, {
+], zQ = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, BQ = (e, t, n, r = "") => `${FTe}${zQ(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), VQ = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", ITe = (e, t, n) => V(NTe + zQ(e, t), n), LTe = (e) => H(PTe, { code: e });
+async function RTe(e, t, n) {
+ let r = await H(LQ, {
kind: e,
id: t,
ref: n.ref
@@ -62845,12 +62870,12 @@ async function NTe(e, t, n) {
bases: r.bases
};
}
-var PTe = (e, t, n) => H(RQ, {
+var zTe = (e, t, n) => H(LQ, {
kind: e,
id: t,
url: n
-}), FTe = (e, t, n) => UQ(`${RQ}${BQ(e, t)}&name=${encodeURIComponent(n.name)}`, n);
-async function UQ(e, t) {
+}), BTe = (e, t, n) => HQ(`${LQ}${zQ(e, t)}&name=${encodeURIComponent(n.name)}`, n);
+async function HQ(e, t) {
let n = await fetch(e, {
method: "POST",
credentials: "same-origin",
@@ -62859,17 +62884,17 @@ async function UQ(e, t) {
if (n.ok) return r;
throw new ar(r?.error || `请求失败(${n.status})`, n.status, r);
}
-function WQ(e, t, n) {
+function UQ(e, t, n) {
let r = t.width === e.width && t.height === e.height;
- return e.focus && r ? xTe(e.focus, t, n) : AQ(t, n);
+ return e.focus && r ? ETe(e.focus, t, n) : kQ(t, n);
}
-var ITe = (e) => e.crop && kQ({
+var VTe = (e) => e.crop && OQ({
width: e.width,
height: e.height
});
-async function LTe(e, t, n) {
+async function HTe(e, t, n) {
if (!("file" in n)) {
- await H(LQ, {
+ await H(IQ, {
kind: e,
id: t,
...n
@@ -62882,19 +62907,19 @@ async function LTe(e, t, n) {
i.x1,
i.y1
].join(",")}` : "";
- await UQ(`${LQ}${BQ(e, t)}&name=${encodeURIComponent(r.name)}${a}`, r);
+ await HQ(`${IQ}${zQ(e, t)}&name=${encodeURIComponent(r.name)}${a}`, r);
}
-var GQ = 2;
-function RTe(e, t) {
+var WQ = 2;
+function UTe(e, t) {
if (!t) return e;
let n = t.matched_names.filter((t) => t !== e);
- return n.length ? `${e}:图库里按${`「${n.slice(0, GQ).join("」「")}」`}${n.length > GQ ? `等 ${n.length.toLocaleString()} 个名字` : ""}找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:还没有备选图片,可输入番号、图片地址或从本机选择。`;
+ return n.length ? `${e}:图库里按${`「${n.slice(0, WQ).join("」「")}」`}${n.length > WQ ? `等 ${n.length.toLocaleString()} 个名字` : ""}找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:还没有备选图片,可输入番号、图片地址或从本机选择。`;
}
-var zTe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
-function BTe(e) {
- return e?.index_refreshing ? "正在更新图库索引,候选图片会自动显示。" : e?.index_error && e.index_stale ? "图库索引未取得:" + e.index_error : !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${zTe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
+var WTe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
+function GTe(e) {
+ return e?.index_refreshing ? "正在更新图库索引,候选图片会自动显示。" : e?.index_error && e.index_stale ? "图库索引未取得:" + e.index_error : !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${WTe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
}
-var KQ = (e) => e.cast > 1, VTe = (e) => KQ(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, HTe = {
+var GQ = (e) => e.cast > 1, KTe = (e) => GQ(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, qTe = {
gfriends: "图库",
history: "用过的",
asset: "作品画面",
@@ -62904,7 +62929,7 @@ var KQ = (e) => e.cast > 1, VTe = (e) => KQ(e) ? `${e.label}:${e.cast.toLocale
social: "社媒头像",
online: "在线作品"
};
-function UTe(e) {
+function JTe(e) {
if (e.startsWith("follow:")) {
let t = e.split(":")[2];
return t === "cover" ? "作品封面" : `内容图片 ${Number(t.replace("image", "") || 0) + 1}`;
@@ -62915,19 +62940,19 @@ function UTe(e) {
let n = Number(t.replace("cell", ""));
return Number.isFinite(n) ? `第 ${n + 1} 格` : t;
}
-var WTe = (e) => `${HTe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (KQ(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), GTe = 8, KTe = 3 / 4;
-async function qTe(e, t, n) {
+var YTe = (e) => `${qTe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (GQ(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), XTe = 8, ZTe = 3 / 4;
+async function QTe(e, t, n) {
switch (n.via) {
- case "choice": return { choice: await NTe(e, t, n.choice) };
- case "code": return { choice: await MTe(n.code) };
- case "url": return { choice: await PTe(e, t, n.url) };
+ case "choice": return { choice: await RTe(e, t, n.choice) };
+ case "code": return { choice: await LTe(n.code) };
+ case "url": return { choice: await zTe(e, t, n.url) };
case "file": return {
- choice: await FTe(e, t, n.file),
+ choice: await BTe(e, t, n.file),
file: n.file
};
}
}
-function JTe({ kind: e, entityId: t, name: n, onPicked: r }) {
+function $Te({ kind: e, entityId: t, name: n, onPicked: r }) {
let [i, a] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "absolute right-1 bottom-1 z-10",
@@ -62937,17 +62962,17 @@ function JTe({ kind: e, entityId: t, name: n, onPicked: r }) {
"aria-label": `更换${n}的头像`,
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-full border border-border-button-default bg-background-primary-default text-foreground-icon-primary shadow-xs outline-none ring-2 ring-background-full transition-colors hover:border-border-button-hover hover:bg-background-primary-hover/60 dark:hover:bg-background-primary-hover focus-visible:ring-border-focus-ring active:bg-background-primary-active",
- children: /* @__PURE__ */ (0, I.jsx)(Yme, {
+ children: /* @__PURE__ */ (0, I.jsx)(Zme, {
"aria-hidden": !0,
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, I.jsx)(BV, {
+ }), /* @__PURE__ */ (0, I.jsx)(HV, {
isOpen: i,
onOpenChange: a,
width: "avatar-picker",
label: "更换头像",
- children: /* @__PURE__ */ (0, I.jsx)(YTe, {
+ children: /* @__PURE__ */ (0, I.jsx)(eEe, {
kind: e,
entityId: t,
name: n,
@@ -62956,24 +62981,24 @@ function JTe({ kind: e, entityId: t, name: n, onPicked: r }) {
})
})] });
}
-function YTe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, F.useRef)(null), o = vH(), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(null), p = zQ(e, t), m = (0, F.useRef)(!1), h = Nt({
+function eEe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
+ let a = (0, F.useRef)(null), o = bH(), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(null), p = RQ(e, t), m = (0, F.useRef)(!1), h = Nt({
queryKey: p,
- queryFn: ({ signal: n }) => jTe(e, t, n),
+ queryFn: ({ signal: n }) => ITe(e, t, n),
retryOnMount: !0,
refetchOnMount: (e) => e.state.data?.index_stale ? "always" : !1,
refetchInterval: (e) => e.state.data?.index_refreshing && !e.state.error ? 1e3 : !1
});
(0, F.useEffect)(() => () => {
- m.current && U.removeQueries({ queryKey: zQ(e, t) });
+ m.current && U.removeQueries({ queryKey: RQ(e, t) });
}, [e, t]);
let g = Pt({
- mutationFn: (n) => LTe(e, t, n),
+ mutationFn: (n) => HTe(e, t, n),
onSuccess: () => {
m.current = !0, i(), r();
}
}), _ = Pt({
- mutationFn: (n) => qTe(e, t, n),
+ mutationFn: (n) => QTe(e, t, n),
onMutate: () => {
g.reset();
},
@@ -62994,39 +63019,39 @@ function YTe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
crop: e.crop
} : { file: n }) : g.mutate(e ?? { ref: t.ref });
}
- let x = h.data, S = x?.choices ?? [], C = (g.error ? sr(g.error) : "") || (!d && _.error ? sr(_.error) : "") || (h.error ? sr(h.error) : ""), w = g.isPending || _.isPending, T = d ? "" : BTe(x), E = !!C && !!h.error && C === sr(h.error), D = h.isPending || S.length > 0;
+ let x = h.data, S = x?.choices ?? [], C = (g.error ? sr(g.error) : "") || (!d && _.error ? sr(_.error) : "") || (h.error ? sr(h.error) : ""), w = g.isPending || _.isPending, T = d ? "" : GTe(x), E = !!C && !!h.error && C === sr(h.error), D = h.isPending || S.length > 0;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, I.jsx)(VV, { children: /* @__PURE__ */ (0, I.jsx)(jV, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, I.jsx)(UV, { children: /* @__PURE__ */ (0, I.jsx)(NV, { className: "size-6" }) }),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(zR, {
+ children: [/* @__PURE__ */ (0, I.jsx)(VR, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: d ? "框出头像那一块" : "更换头像"
- }), !d && S.length ? /* @__PURE__ */ (0, I.jsxs)(XU, {
+ }), !d && S.length ? /* @__PURE__ */ (0, I.jsxs)(QU, {
color: "soft",
children: [S.length.toLocaleString(), " 张可选"]
}) : null]
}),
/* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: d ? VTe(d.choice) : RTe(n, x)
+ children: d ? KTe(d.choice) : UTe(n, x)
}),
- T ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ T ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "neutral",
children: T
}) : null,
- C ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ C ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "error",
- action: E ? /* @__PURE__ */ (0, I.jsx)(q, {
+ action: E ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...qV(h.isFetching),
+ ...YV(h.isFetching),
onClick: () => {
h.isFetching || h.refetch();
},
@@ -63036,14 +63061,14 @@ function YTe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(aR, {
- icon: yV,
+ /* @__PURE__ */ (0, I.jsx)(sR, {
+ icon: xV,
size: "small",
"aria-label": "关闭",
onClick: i
})
]
- }), d ? /* @__PURE__ */ (0, I.jsx)(ZTe, {
+ }), d ? /* @__PURE__ */ (0, I.jsx)(nEe, {
kind: e,
entityId: t,
choice: d.choice,
@@ -63063,7 +63088,7 @@ function YTe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
"aria-busy": h.isPending || void 0,
"data-skeleton": h.isPending ? "avatar-choices" : void 0,
className: "inline-grid grid-cols-3 content-start gap-2 sm:grid-cols-4",
- children: h.isPending ? Array.from({ length: GTe }, (e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: h.isPending ? Array.from({ length: XTe }, (e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
"aria-hidden": !0,
"data-avatar-skeleton": !0,
className: "flex flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-caption-1-regular",
@@ -63076,8 +63101,8 @@ function YTe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
role: "option",
"data-avatar-choice": !0,
"aria-selected": n.current,
- title: WTe(n),
- ...qV(w),
+ title: YTe(n),
+ ...YV(w),
onClick: () => {
w || (n.crop ? (g.reset(), _.reset(), f({ choice: n })) : _.mutate({
via: "choice",
@@ -63086,8 +63111,8 @@ function YTe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
},
className: "relative flex cursor-pointer flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-center text-caption-1-regular text-text-secondary outline-none hover:border-border-button-hover hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-selected:border-border-focus-ring aria-selected:bg-background-tertiary-default aria-selected:text-text-primary aria-disabled:cursor-progress aria-disabled:opacity-60",
children: [
- /* @__PURE__ */ (0, I.jsx)(XTe, {
- src: VQ(e, t, n.ref, HQ(n, n.ref)),
+ /* @__PURE__ */ (0, I.jsx)(tEe, {
+ src: BQ(e, t, n.ref, VQ(n, n.ref)),
choice: n
}),
/* @__PURE__ */ (0, I.jsx)("span", {
@@ -63096,15 +63121,15 @@ function YTe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}),
n.current ? /* @__PURE__ */ (0, I.jsx)("span", {
className: "absolute top-1 left-1",
- children: /* @__PURE__ */ (0, I.jsx)(XU, {
+ children: /* @__PURE__ */ (0, I.jsx)(QU, {
variant: "caption",
color: "gray",
children: "在用"
})
}) : null,
- KQ(n) ? /* @__PURE__ */ (0, I.jsx)("span", {
+ GQ(n) ? /* @__PURE__ */ (0, I.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, I.jsxs)(XU, {
+ children: /* @__PURE__ */ (0, I.jsxs)(QU, {
variant: "caption",
color: "gray",
children: [n.cast.toLocaleString(), " 人"]
@@ -63126,26 +63151,26 @@ function YTe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
},
children: [/* @__PURE__ */ (0, I.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, I.jsx)(zV, {
+ children: /* @__PURE__ */ (0, I.jsx)(VV, {
"aria-label": "番号",
placeholder: "番号,如 ABW-232",
value: l,
onChange: u
})
- }), /* @__PURE__ */ (0, I.jsx)(q, {
+ }), /* @__PURE__ */ (0, I.jsx)(J, {
type: "submit",
variant: "secondary",
disabled: !l.trim(),
- ...qV(v("code")),
+ ...YV(v("code")),
children: "取封面来框"
})]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center gap-3",
children: [
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
onClick: () => a.current?.click(),
- ...qV(v("file")),
+ ...YV(v("file")),
children: "从本机选图片"
}),
/* @__PURE__ */ (0, I.jsx)("input", {
@@ -63165,17 +63190,17 @@ function YTe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
className: "flex min-w-0 flex-1 basis-56 items-center gap-2",
children: [/* @__PURE__ */ (0, I.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, I.jsx)(zV, {
+ children: /* @__PURE__ */ (0, I.jsx)(VV, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
value: s,
onChange: c
})
- }), /* @__PURE__ */ (0, I.jsx)(q, {
+ }), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
disabled: !s.trim(),
- ...qV(v("url")),
+ ...YV(v("url")),
onClick: () => {
w || _.mutate({
via: "url",
@@ -63189,7 +63214,7 @@ function YTe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
})]
})] })] });
}
-function XTe({ src: e, choice: t }) {
+function tEe({ src: e, choice: t }) {
let n = (0, F.useRef)(null), [r, i] = (0, F.useState)(!1), [a, o] = (0, F.useState)(!1);
(0, F.useEffect)(() => {
n.current?.complete && n.current.naturalWidth && i(!0);
@@ -63197,7 +63222,7 @@ function XTe({ src: e, choice: t }) {
let s = {
width: t.width,
height: t.height
- }, c = ITe(t) ? TTe(WQ(t, s, KTe), s) : null, l = r || a ? !0 : void 0;
+ }, c = VTe(t) ? ATe(UQ(t, s, ZTe), s) : null, l = r || a ? !0 : void 0;
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-choice-lost": a || void 0,
className: "relative block w-full aspect-avatar-choice overflow-hidden",
@@ -63223,23 +63248,23 @@ function XTe({ src: e, choice: t }) {
})]
});
}
-function ZTe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
- let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, F.useState)(o[0]), [l, u] = (0, F.useState)(null), [d, f] = (0, F.useState)(null), p = HQ(n, s), m = VQ(e, t, s, p), h = vH();
+function nEe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
+ let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, F.useState)(o[0]), [l, u] = (0, F.useState)(null), [d, f] = (0, F.useState)(null), p = VQ(n, s), m = BQ(e, t, s, p), h = bH();
function g(e) {
c(e), u(null), f(null);
}
- let _ = d && l ? wTe(d, l) : null;
+ let _ = d && l ? kTe(d, l) : null;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
ref: h,
className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",
- children: [m ? /* @__PURE__ */ (0, I.jsx)(IQ, {
+ children: [m ? /* @__PURE__ */ (0, I.jsx)(FQ, {
src: m,
aspect: 1,
box: d,
size: l,
label: `${n.label} 的头像取景框`,
onSize: (e) => {
- u(e), kQ(e) && f(s === n.ref ? WQ(n, e, 1) : AQ(e, 1));
+ u(e), OQ(e) && f(s === n.ref ? UQ(n, e, 1) : kQ(e, 1));
},
onBox: f
}) : null, o.length > 1 ? /* @__PURE__ */ (0, I.jsx)("div", {
@@ -63253,7 +63278,7 @@ function ZTe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
"data-crop-base": !0,
onClick: () => g(e),
className: "cursor-pointer rounded-lg px-2 py-1 text-caption-1-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-checked:bg-background-tertiary-default aria-checked:text-text-primary",
- children: UTe(e)
+ children: JTe(e)
}, e))
}) : null]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -63270,23 +63295,23 @@ function ZTe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-1 flex-wrap items-center justify-end gap-3",
children: [
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
onClick: i,
- ...qV(r),
+ ...YV(r),
children: "返回备选图片"
}),
- n.crop ? null : /* @__PURE__ */ (0, I.jsx)(q, {
+ n.crop ? null : /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...qV(r),
+ ...YV(r),
onClick: () => {
r || a(null);
},
children: "整张使用"
}),
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, I.jsx)(J, {
disabled: !d || !l,
- ...qV(r),
+ ...YV(r),
onClick: () => {
d && !r && a({
ref: s,
@@ -63301,9 +63326,9 @@ function ZTe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
})] });
}
// src/react/components/source-picture.tsx
-var qQ = (e, t, n = 0) => `/jav-image?code=${encodeURIComponent(e)}&image=${encodeURIComponent(t)}${n ? `&attempt=${n}` : ""}`;
-function JQ({ item: e, image: t, thumbnail: n = !1 }) {
- let [r, i] = (0, F.useState)(0), [a, o] = (0, F.useState)(null), [s, c] = (0, F.useState)(""), l = (0, F.useRef)(null), u = t === "cover" && e.has_cover, d = !u && (t !== "cover" || e.source_image), f = n ? "" : t === "cover" ? `${e.code} 封面` : `${e.code} 预览 ${Number(t) + 1}`, p = d ? qQ(e.code, t, r) : u ? so(e, !0) : e.cover_url || "";
+var KQ = (e, t, n = 0) => `/jav-image?code=${encodeURIComponent(e)}&image=${encodeURIComponent(t)}${n ? `&attempt=${n}` : ""}`;
+function qQ({ item: e, image: t, thumbnail: n = !1 }) {
+ let [r, i] = (0, F.useState)(0), [a, o] = (0, F.useState)(null), [s, c] = (0, F.useState)(""), l = (0, F.useRef)(null), u = t === "cover" && e.has_cover, d = !u && (t !== "cover" || e.source_image), f = n ? "" : t === "cover" ? `${e.code} 封面` : `${e.code} 预览 ${Number(t) + 1}`, p = d ? KQ(e.code, t, r) : u ? so(e, !0) : e.cover_url || "";
if ((0, F.useLayoutEffect)(() => {
let e = l.current;
e?.complete && e.naturalWidth > 0 && o({
@@ -63322,16 +63347,16 @@ function JQ({ item: e, image: t, thumbnail: n = !1 }) {
})
}) : n ? /* @__PURE__ */ (0, I.jsx)("span", { children: "预览未取得" }) : /* @__PURE__ */ (0, I.jsx)("div", {
"data-jav-picture-wait": "",
- children: /* @__PURE__ */ (0, I.jsx)(HV, {
+ children: /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "neutral",
children: "封面未取得"
})
});
if (s === p) return n ? /* @__PURE__ */ (0, I.jsx)("span", { children: "预览未取得" }) : /* @__PURE__ */ (0, I.jsx)("div", {
"data-jav-picture-wait": "",
- children: /* @__PURE__ */ (0, I.jsx)(HV, {
+ children: /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "neutral",
- action: /* @__PURE__ */ (0, I.jsx)(q, {
+ action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
onClick: () => i((e) => e + 1),
children: "立即重试"
@@ -63384,8 +63409,8 @@ function JQ({ item: e, image: t, thumbnail: n = !1 }) {
] });
}
// src/react/components/source-avatar.tsx
-function YQ({ code: e, person: t, detail: n = !1 }) {
- nR();
+function JQ({ code: e, person: t, detail: n = !1 }) {
+ iR();
let r = (0, F.useRef)(null), [i, a] = (0, F.useState)(n || typeof IntersectionObserver > "u");
(0, F.useEffect)(() => {
if (!r.current || i) return;
@@ -63399,7 +63424,7 @@ function YQ({ code: e, person: t, detail: n = !1 }) {
"data-source-initial": "",
children: Qn(en("performer", t.name))
}), i && t.source_actor_id ? /* @__PURE__ */ (0, I.jsx)("img", {
- src: qQ(e, `actor:${t.source_actor_id}`),
+ src: KQ(e, `actor:${t.source_actor_id}`),
alt: "",
"data-drop": "self"
}) : null] });
@@ -63409,8 +63434,8 @@ function YQ({ code: e, person: t, detail: n = !1 }) {
}) : o;
}
// src/react/feed-new/feed-new-row.tsx
-function XQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
- let a = (0, F.useContext)(GW), o = (0, F.useRef)(null), [s, c] = (0, F.useState)([]), l = e?.items.length ? e.html : "";
+function YQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
+ let a = (0, F.useContext)(JW), o = (0, F.useRef)(null), [s, c] = (0, F.useState)([]), l = e?.items.length ? e.html : "";
(0, F.useLayoutEffect)(() => {
t.removeAttribute("aria-busy"), t.hidden = !l, e && i?.(!!l);
}, [
@@ -63442,7 +63467,7 @@ function XQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
u(e);
},
dangerouslySetInnerHTML: { __html: l }
- }), s.map((e, t) => (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(YQ, {
+ }), s.map((e, t) => (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(JQ, {
code: e.dataset.code,
person: {
name: e.dataset.name,
@@ -63451,7 +63476,7 @@ function XQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
}), e, `${l.length}:${t}`))] }) : null;
}
// src/react/entity-hero/glyph.tsx
-function ZQ({ name: e }) {
+function XQ({ name: e }) {
let { wide: t, viewBox: n } = xn(e);
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: n,
@@ -63461,20 +63486,20 @@ function ZQ({ name: e }) {
});
}
// src/react/entity-hero/hero-pop.tsx
-function QQ(e, t) {
+function ZQ(e, t) {
t.style.removeProperty("max-height");
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect();
t.style.left = `${Math.max(8, Math.min(innerWidth - r.width - 8, n.left))}px`;
let i = n.bottom + 8, a = innerHeight - 8 - i, o = n.top - 16, s = r.height <= a || r.height > o && a >= o, c = Math.max(0, s ? a : o);
r.height > c && (t.style.maxHeight = `${c}px`), t.style.top = `${s ? i : n.top - 8 - Math.min(r.height, c)}px`;
}
-var $Q = (e) => !!e?.isConnected && e.matches(":popover-open");
-function e$(e, t, n, r) {
+var QQ = (e) => !!e?.isConnected && e.matches(":popover-open");
+function $Q(e, t, n, r) {
let i = (0, F.useRef)(r);
i.current = r, (0, F.useEffect)(() => {
if (!e) return;
let r = () => {
- t.current && $Q(n.current) ? QQ(t.current, n.current) : i.current();
+ t.current && QQ(n.current) ? ZQ(t.current, n.current) : i.current();
};
return addEventListener("scroll", r, {
capture: !0,
@@ -63488,17 +63513,17 @@ function e$(e, t, n, r) {
n
]);
}
-function t$({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
+function e$({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
let o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(!1), u = (0, F.useRef)(!1), d = (0, F.useRef)(0), f = () => {
- clearTimeout(d.current), u.current = !1, $Q(s.current) && s.current.hidePopover(), l(!1);
+ clearTimeout(d.current), u.current = !1, QQ(s.current) && s.current.hidePopover(), l(!1);
}, p = () => {
- clearTimeout(d.current), s.current && o.current && !$Q(s.current) && (s.current.showPopover(), QQ(o.current, s.current), l(!0));
+ clearTimeout(d.current), s.current && o.current && !QQ(s.current) && (s.current.showPopover(), ZQ(o.current, s.current), l(!0));
}, m = () => {
clearTimeout(d.current), d.current = window.setTimeout(() => {
u.current || o.current?.matches(":hover,:focus-visible") || s.current?.matches(":hover") || f();
}, 150);
};
- return e$(c, o, s, f), (0, F.useEffect)(() => {
+ return $Q(c, o, s, f), (0, F.useEffect)(() => {
if (!c) return;
let e = (e) => {
let t = e.target;
@@ -63524,7 +63549,7 @@ function t$({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
u.current ? f() : (p(), u.current = !0);
},
onKeyDown: (e) => {
- e.key === "Escape" && $Q(s.current) && (e.preventDefault(), f());
+ e.key === "Escape" && QQ(s.current) && (e.preventDefault(), f());
},
children: ["+", t]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -63542,16 +63567,16 @@ function t$({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
}), a]
})] });
}
-function QTe({ following: e, busy: t, onToggle: n, tip: r }) {
+function rEe({ following: e, busy: t, onToggle: n, tip: r }) {
let i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), [s, c] = (0, F.useState)(!1), l = (0, F.useRef)(!1), u = () => {
- $Q(o.current) && o.current.hidePopover(), c(!1);
+ QQ(o.current) && o.current.hidePopover(), c(!1);
}, d = () => {
- !l.current && o.current && i.current && !$Q(o.current) && (o.current.showPopover(), QQ(i.current, o.current), c(!0));
+ !l.current && o.current && i.current && !QQ(o.current) && (o.current.showPopover(), ZQ(i.current, o.current), c(!0));
}, f = () => {
l.current = !1, u();
};
- return e$(s, i, o, () => c(!1)), (0, F.useEffect)(() => {
- i.current && $Q(o.current) && QQ(i.current, o.current);
+ return $Q(s, i, o, () => c(!1)), (0, F.useEffect)(() => {
+ i.current && QQ(o.current) && ZQ(i.current, o.current);
}, [r]), /* @__PURE__ */ (0, I.jsxs)("label", {
ref: i,
"data-entry-feed": "",
@@ -63560,7 +63585,7 @@ function QTe({ following: e, busy: t, onToggle: n, tip: r }) {
a.current?.matches(":focus-visible") || f();
},
children: [
- /* @__PURE__ */ (0, I.jsx)(ZQ, { name: "rss" }),
+ /* @__PURE__ */ (0, I.jsx)(XQ, { name: "rss" }),
/* @__PURE__ */ (0, I.jsx)("input", {
ref: a,
type: "checkbox",
@@ -63594,29 +63619,29 @@ function QTe({ following: e, busy: t, onToggle: n, tip: r }) {
});
}
// src/react/entity-hero/name-picker.tsx
-function $Te({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
+function iEe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let [i, a] = (0, F.useState)(!1), o = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
o.current?.setAttribute("title", "名字与别名");
- }, []), /* @__PURE__ */ (0, I.jsxs)(vpe, {
+ }, []), /* @__PURE__ */ (0, I.jsxs)(bpe, {
isOpen: i,
onOpenChange: a,
- children: [/* @__PURE__ */ (0, I.jsx)(LR, {
+ children: [/* @__PURE__ */ (0, I.jsx)(zR, {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
- children: /* @__PURE__ */ (0, I.jsx)(ZQ, { name: "chevron-down" })
- }), /* @__PURE__ */ (0, I.jsx)(uB, {
+ children: /* @__PURE__ */ (0, I.jsx)(XQ, { name: "chevron-down" })
+ }), /* @__PURE__ */ (0, I.jsx)(fB, {
placement: "bottom start",
offset: 8,
containerPadding: 8,
- className: uH,
+ className: fH,
"data-namepick-menu": "",
- children: /* @__PURE__ */ (0, I.jsxs)(bpe, {
+ children: /* @__PURE__ */ (0, I.jsxs)(Spe, {
"aria-label": "名字与别名",
"data-namepick-list": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(vB, {
+ /* @__PURE__ */ (0, I.jsx)(bB, {
selectionMode: "single",
disallowEmptySelection: !0,
selectedKeys: [e],
@@ -63624,34 +63649,34 @@ function $Te({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let r = [...t][0];
r && r !== e && n(r);
},
- children: t.map((e) => /* @__PURE__ */ (0, I.jsxs)(bB, {
+ children: t.map((e) => /* @__PURE__ */ (0, I.jsxs)(SB, {
id: e.value,
textValue: e.label,
"data-namepick-name": e.value,
- children: [/* @__PURE__ */ (0, I.jsx)(ZQ, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.label })]
+ children: [/* @__PURE__ */ (0, I.jsx)(XQ, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.label })]
}, e.value))
}),
- /* @__PURE__ */ (0, I.jsx)(tpe, { "data-namepick-rule": "" }),
- /* @__PURE__ */ (0, I.jsx)(vB, { children: /* @__PURE__ */ (0, I.jsxs)(bB, {
+ /* @__PURE__ */ (0, I.jsx)(rpe, { "data-namepick-rule": "" }),
+ /* @__PURE__ */ (0, I.jsx)(bB, { children: /* @__PURE__ */ (0, I.jsxs)(SB, {
id: "alias",
textValue: "添加别名",
"data-namepick-alias": "",
onAction: r,
- children: [/* @__PURE__ */ (0, I.jsx)(ZQ, { name: "plus" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "添加别名…" })]
+ children: [/* @__PURE__ */ (0, I.jsx)(XQ, { name: "plus" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "添加别名…" })]
}) })
]
})
})]
});
}
-var eEe = (e) => e === "studio" || e === "agency", n$ = (e) => e === "performer" || e === "creator", tEe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
-function nEe(e, t = "zh-CN") {
+var aEe = (e) => e === "studio" || e === "agency", t$ = (e) => e === "performer" || e === "creator", oEe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
+function sEe(e, t = "zh-CN") {
return e.name_display ? e.name_display.choices[t] : [e.canonical_name, ...e.aliases || []].filter((e, t, n) => e && n.indexOf(e) === t).map((e) => ({
value: e,
label: e
}));
}
-function r$(e) {
+function n$(e) {
if (e.agency) return {
name: e.agency.canonical_name,
linked: !0,
@@ -63663,13 +63688,13 @@ function r$(e) {
linked: !1
} : null;
}
-function i$(e, t) {
+function r$(e, t) {
let n = Wn(e, "performer"), r = Vn(t);
return r && [e.label, n].map(Vn).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";
}
-var a$ = (e) => ({ site: Ln(e) });
-function rEe(e, t) {
- let n = r$(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
+var i$ = (e) => ({ site: Ln(e) });
+function cEe(e, t) {
+ let n = n$(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
type: "icon",
url: e.url,
title: e.label,
@@ -63679,7 +63704,7 @@ function rEe(e, t) {
let t = e.retired_year ? `已于 ${e.retired_year} 年隐退` : "链接已失效";
return {
type: "gone",
- title: `${i$(e, n)} · ${t}`
+ title: `${r$(e, n)} · ${t}`
};
}
let r = e.url || "";
@@ -63687,11 +63712,11 @@ function rEe(e, t) {
type: "private",
label: e.label || e.hostname || "已记录"
};
- if (n$(t) && e.link_kind !== "social") return {
+ if (t$(t) && e.link_kind !== "social") return {
type: "icon",
url: r,
- title: i$(e, n),
- mark: a$(e)
+ title: r$(e, n),
+ mark: i$(e)
};
if (e.link_kind === "social") {
let t = Bn(r);
@@ -63699,7 +63724,7 @@ function rEe(e, t) {
type: "icon",
url: r,
title: e.label || "",
- mark: t ? { brand: t } : a$(e)
+ mark: t ? { brand: t } : i$(e)
};
}
return {
@@ -63707,12 +63732,12 @@ function rEe(e, t) {
url: r,
title: e.label || "",
text: Wn(e, t, i),
- mark: a$(e)
+ mark: i$(e)
};
});
- return [...r, ...iEe(a)];
+ return [...r, ...lEe(a)];
}
-function iEe(e) {
+function lEe(e) {
let t = e.filter((e) => e.type === "private");
return t.length < 2 ? e : [...e.filter((e) => e.type !== "private"), {
type: "private",
@@ -63720,8 +63745,8 @@ function iEe(e) {
sources: t.map((e) => e.label)
}];
}
-var o$ = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
-function aEe(e) {
+var a$ = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
+function uEe(e) {
return [
[
"legal_name",
@@ -63777,7 +63802,7 @@ function aEe(e) {
}]
}] : []);
}
-function oEe(e) {
+function dEe(e) {
if (!e) return [];
let t = [];
e.birth_date && t.push({
@@ -63834,14 +63859,14 @@ function oEe(e) {
tags: e.tags
}), t;
}
-function s$(e, t = 4) {
+function o$(e, t = 4) {
let n = e.length > t + 1 ? t : e.length;
return {
shown: e.slice(0, n),
rest: e.length - n
};
}
-function sEe(e) {
+function fEe(e) {
if (!e) return null;
let t = e.shown || [], n = [e.reading || "", ...t].filter(Boolean), r = (e.total || 0) - t.length;
return n.length || r > 0 ? {
@@ -63851,7 +63876,7 @@ function sEe(e) {
} : null;
}
// src/react/entity-hero/entity-hero-page.tsx
-function cEe(e) {
+function pEe(e) {
return mo({
id: e.id,
hasImage: e.has_image,
@@ -63862,9 +63887,9 @@ function cEe(e) {
standIn: e.avatar_stand_in
});
}
-function lEe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
- nR();
- let s = en(e, n.canonical_name, Number(n.id)), c = tn(e, n.canonical_name, Number(n.id)), l = n$(e), u = eEe(e), d = l ? oEe(n.profile) : u ? aEe(n.company_profile) : [], f = rEe(n, e), p = o$(n), m = e === "agency" ? [] : n.related_performers || [], h = (0, F.useRef)(null), g = (0, F.useRef)(null);
+function mEe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
+ iR();
+ let s = en(e, n.canonical_name, Number(n.id)), c = tn(e, n.canonical_name, Number(n.id)), l = t$(e), u = aEe(e), d = l ? dEe(n.profile) : u ? uEe(n.company_profile) : [], f = cEe(n, e), p = a$(n), m = e === "agency" ? [] : n.related_performers || [], h = (0, F.useRef)(null), g = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
o.wireScroller(h.current);
}, [o, f.length]), (0, F.useEffect)(() => {
@@ -63877,7 +63902,7 @@ function lEe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-entity-portrait-wrap": "",
- children: [/* @__PURE__ */ (0, I.jsx)(uEe, {
+ children: [/* @__PURE__ */ (0, I.jsx)(hEe, {
kind: e,
name: s,
helpers: o,
@@ -63885,7 +63910,7 @@ function lEe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
company: u
}), l && n.id ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-avatar-picker": "",
- children: /* @__PURE__ */ (0, I.jsx)(JTe, {
+ children: /* @__PURE__ */ (0, I.jsx)($Te, {
kind: e,
entityId: Number(n.id),
name: s || t,
@@ -63900,17 +63925,17 @@ function lEe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
"data-entity-title": "",
children: [
/* @__PURE__ */ (0, I.jsx)("h2", {
- lang: RL(s),
+ lang: BL(s),
title: c || void 0,
children: s
}),
- e === "tag" ? null : /* @__PURE__ */ (0, I.jsx)($Te, {
+ e === "tag" ? null : /* @__PURE__ */ (0, I.jsx)(iEe, {
current: n.canonical_name,
- choices: nEe(n, Jt()),
+ choices: sEe(n, Jt()),
onChoose: a.chooseName,
onAddAlias: a.addAlias
}),
- n.id ? /* @__PURE__ */ (0, I.jsx)(aH, { item: {
+ n.id ? /* @__PURE__ */ (0, I.jsx)(sH, { item: {
entity_id: Number(n.id),
kind: e,
name: n.canonical_name || t,
@@ -63924,7 +63949,7 @@ function lEe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
className: "text-caption-1-regular text-text-secondary",
children: c
}) : null,
- /* @__PURE__ */ (0, I.jsx)(dEe, {
+ /* @__PURE__ */ (0, I.jsx)(gEe, {
kind: e,
entity: n,
actions: a
@@ -63945,14 +63970,14 @@ function lEe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
f.length ? /* @__PURE__ */ (0, I.jsx)("div", {
ref: h,
"data-entity-links": "",
- children: f.map((e, t) => /* @__PURE__ */ (0, I.jsx)(_Ee, { link: e }, t))
+ children: f.map((e, t) => /* @__PURE__ */ (0, I.jsx)(SEe, { link: e }, t))
}) : null,
- p.length || n.feed ? /* @__PURE__ */ (0, I.jsx)(vEe, {
+ p.length || n.feed ? /* @__PURE__ */ (0, I.jsx)(CEe, {
entity: n,
actions: a,
helpers: o
}) : null,
- n.follow?.held.length ? /* @__PURE__ */ (0, I.jsx)(mEe, {
+ n.follow?.held.length ? /* @__PURE__ */ (0, I.jsx)(yEe, {
follow: n.follow,
displayName: s,
actions: a
@@ -63961,11 +63986,11 @@ function lEe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
}),
d.length ? /* @__PURE__ */ (0, I.jsx)("dl", {
"data-entity-facts": "",
- children: d.map((e) => /* @__PURE__ */ (0, I.jsx)(hEe, {
+ children: d.map((e) => /* @__PURE__ */ (0, I.jsx)(bEe, {
glyph: e.glyph,
label: e.label,
clip: e.clip,
- children: e.tags ? /* @__PURE__ */ (0, I.jsx)(gEe, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: e.tags ? /* @__PURE__ */ (0, I.jsx)(xEe, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
"data-fact-tone": e.tone === "plain" ? void 0 : e.tone,
children: [t ? " " : "", e.text]
}, t))
@@ -63984,7 +64009,7 @@ function lEe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
onClick: () => a.openEntity("performer", e.k),
children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-hero-ring": "",
- dangerouslySetInnerHTML: { __html: `<span>${B(Qn(en("performer", e.k, e.id)))}</span>${cEe(e)}` }
+ dangerouslySetInnerHTML: { __html: `<span>${B(Qn(en("performer", e.k, e.id)))}</span>${pEe(e)}` }
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-hero-costar-name": "",
children: en("performer", e.k, e.id)
@@ -63992,14 +64017,14 @@ function lEe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
}, e.k))
})
}) : null]
- }), i ? (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(XQ, {
+ }), i ? (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(YQ, {
feedNew: r,
host: i,
wire: o.wireFeedRow,
act: (e, t) => a.feedAction(e, t)
}), i) : null] });
}
-function uEe({ kind: e, name: t, helpers: n, people: r, company: i }) {
+function hEe({ kind: e, name: t, helpers: n, people: r, company: i }) {
let a = (0, F.useRef)(null), [o] = (0, F.useState)(() => `${n.portraitImg()}<span data-portrait-initial="">${B(Qn(t))}</span>`);
return (0, F.useLayoutEffect)(() => {
let e = a.current?.querySelector("[data-portrait-initial]");
@@ -64013,8 +64038,8 @@ function uEe({ kind: e, name: t, helpers: n, people: r, company: i }) {
dangerouslySetInnerHTML: { __html: o }
});
}
-function dEe({ kind: e, entity: t, actions: n }) {
- let r = r$(t), i = (e, t) => (r) => {
+function gEe({ kind: e, entity: t, actions: n }) {
+ let r = n$(t), i = (e, t) => (r) => {
r.preventDefault(), n.openEntity(e, t);
}, a = r ? r.linked ? /* @__PURE__ */ (0, I.jsx)("a", {
href: Mn("agency", r.name, r.id),
@@ -64023,44 +64048,44 @@ function dEe({ kind: e, entity: t, actions: n }) {
children: r.name
}) : r.name : null, o = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("b", { children: t.asset_count.toLocaleString() }), " 个视频"] });
if (e === "performer" || e === "creator") {
- let e = t.name_display?.groups[Jt()] ?? t.name_groups, r = sEe(e);
+ let e = t.name_display?.groups[Jt()] ?? t.name_groups, r = fEe(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-entity-alias": "meta",
children: [
- /* @__PURE__ */ (0, I.jsx)(c$, { entity: t }),
+ /* @__PURE__ */ (0, I.jsx)(s$, { entity: t }),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, I.jsx)(ZQ, { name: "film" }), /* @__PURE__ */ (0, I.jsx)("span", { children: o })]
+ children: [/* @__PURE__ */ (0, I.jsx)(XQ, { name: "film" }), /* @__PURE__ */ (0, I.jsx)("span", { children: o })]
}),
- t.follow?.key ? /* @__PURE__ */ (0, I.jsx)(pEe, {
+ t.follow?.key ? /* @__PURE__ */ (0, I.jsx)(vEe, {
follow: t.follow,
actions: n
}) : null,
a ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, I.jsx)(ZQ, { name: "briefcase" }), /* @__PURE__ */ (0, I.jsx)("span", { children: a })]
+ children: [/* @__PURE__ */ (0, I.jsx)(XQ, { name: "briefcase" }), /* @__PURE__ */ (0, I.jsx)("span", { children: a })]
}) : null,
r ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-meta-item": "names",
children: [
- /* @__PURE__ */ (0, I.jsx)(ZQ, { name: "id-card" }),
+ /* @__PURE__ */ (0, I.jsx)(XQ, { name: "id-card" }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: r.names.map((e, t) => /* @__PURE__ */ (0, I.jsx)("span", {
- lang: RL(e),
+ lang: BL(e),
children: e
}, t))
}),
- r.rest > 0 ? /* @__PURE__ */ (0, I.jsx)(t$, {
+ r.rest > 0 ? /* @__PURE__ */ (0, I.jsx)(e$, {
id: "entityAliasPop",
hook: "alias",
rest: r.rest,
label: `另外 ${r.rest.toLocaleString()} 个别名`,
heading: `${r.total.toLocaleString()} 个别名`,
- children: /* @__PURE__ */ (0, I.jsx)("dl", { children: (e?.groups || []).map((e, t) => /* @__PURE__ */ (0, I.jsx)(l$, {
+ children: /* @__PURE__ */ (0, I.jsx)("dl", { children: (e?.groups || []).map((e, t) => /* @__PURE__ */ (0, I.jsx)(c$, {
label: e.label,
names: e.names
}, t)) })
@@ -64082,61 +64107,61 @@ function dEe({ kind: e, entity: t, actions: n }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-entity-alias": "meta",
children: [
- e === "creator" ? /* @__PURE__ */ (0, I.jsx)(c$, { entity: t }) : null,
+ e === "creator" ? /* @__PURE__ */ (0, I.jsx)(s$, { entity: t }) : null,
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, I.jsx)(ZQ, { name: "film" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [o, c] })]
+ children: [/* @__PURE__ */ (0, I.jsx)(XQ, { name: "film" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [o, c] })]
}),
a ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, I.jsx)(ZQ, { name: "briefcase" }), /* @__PURE__ */ (0, I.jsx)("span", { children: a })]
+ children: [/* @__PURE__ */ (0, I.jsx)(XQ, { name: "briefcase" }), /* @__PURE__ */ (0, I.jsx)("span", { children: a })]
}) : null,
l ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "",
title: "片商",
- children: [/* @__PURE__ */ (0, I.jsx)(ZQ, { name: "clapperboard" }), /* @__PURE__ */ (0, I.jsx)("a", {
+ children: [/* @__PURE__ */ (0, I.jsx)(XQ, { name: "clapperboard" }), /* @__PURE__ */ (0, I.jsx)("a", {
href: Mn("studio", l.name, l.id),
"data-studio-link": l.name,
onClick: i("studio", l.name),
children: l.name
})]
}) : null,
- s.length ? /* @__PURE__ */ (0, I.jsx)(fEe, { aliases: s }) : null
+ s.length ? /* @__PURE__ */ (0, I.jsx)(_Ee, { aliases: s }) : null
]
});
}
-function fEe({ aliases: e }) {
- let { shown: t, rest: n } = s$(e, 3);
+function _Ee({ aliases: e }) {
+ let { shown: t, rest: n } = o$(e, 3);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-meta-item": "names",
"data-company-names": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(ZQ, { name: "id-card" }),
+ /* @__PURE__ */ (0, I.jsx)(XQ, { name: "id-card" }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: t.map((e, t) => /* @__PURE__ */ (0, I.jsx)("span", { children: e }, t))
}),
- n ? /* @__PURE__ */ (0, I.jsx)(t$, {
+ n ? /* @__PURE__ */ (0, I.jsx)(e$, {
id: "entityAliasPop",
hook: "alias",
rest: n,
label: `另外 ${n.toLocaleString()} 个别名`,
heading: `${e.length.toLocaleString()} 个别名`,
- children: /* @__PURE__ */ (0, I.jsx)("dl", { children: /* @__PURE__ */ (0, I.jsx)(l$, { names: e.map((e) => ({ name: e })) }) })
+ children: /* @__PURE__ */ (0, I.jsx)("dl", { children: /* @__PURE__ */ (0, I.jsx)(c$, { names: e.map((e) => ({ name: e })) }) })
}) : null
]
});
}
-function pEe({ follow: e, actions: t }) {
+function vEe({ follow: e, actions: t }) {
let n = e.providers.join(" · ");
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "",
"data-entity-follow": "",
title: n ? `关注 · ${n}` : "关注",
- children: [/* @__PURE__ */ (0, I.jsx)(ZQ, { name: "rss" }), /* @__PURE__ */ (0, I.jsxs)("a", {
+ children: [/* @__PURE__ */ (0, I.jsx)(XQ, { name: "rss" }), /* @__PURE__ */ (0, I.jsxs)("a", {
href: "?media=online",
onClick: (n) => {
n.preventDefault(), t.openFollowAuthor(e.key);
@@ -64145,7 +64170,7 @@ function pEe({ follow: e, actions: t }) {
})]
});
}
-function mEe({ follow: e, displayName: t, actions: n }) {
+function yEe({ follow: e, displayName: t, actions: n }) {
let [r, i] = (0, F.useState)(""), a = async (e, t) => {
if (!r) {
i(e);
@@ -64159,12 +64184,12 @@ function mEe({ follow: e, displayName: t, actions: n }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-entity-held": "",
className: "flex flex-col gap-2",
- children: e.held.map((e) => /* @__PURE__ */ (0, I.jsxs)(HV, {
+ children: e.held.map((e) => /* @__PURE__ */ (0, I.jsxs)(WV, {
tone: "info",
title: `关注里有同名作者 ${e.name}`,
- action: /* @__PURE__ */ (0, I.jsx)(q, {
+ action: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
- ...qV(r === e.key),
+ ...YV(r === e.key),
onClick: () => {
a(e.key, e.name);
},
@@ -64179,37 +64204,37 @@ function mEe({ follow: e, displayName: t, actions: n }) {
}, e.key))
});
}
-function c$({ entity: e }) {
+function s$({ entity: e }) {
return e.identity_labels?.length ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "classification",
"data-identity-classification": "",
- children: [/* @__PURE__ */ (0, I.jsx)(ZQ, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.identity_labels.join(" · ") })]
+ children: [/* @__PURE__ */ (0, I.jsx)(XQ, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.identity_labels.join(" · ") })]
}) : null;
}
-function l$({ label: e, names: t }) {
+function c$({ label: e, names: t }) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e ? /* @__PURE__ */ (0, I.jsx)("dt", { children: e }) : null, /* @__PURE__ */ (0, I.jsx)("dd", {
"data-wide": e ? void 0 : "",
children: t.map((e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
"data-pop-name": "",
- lang: RL(e.name),
+ lang: BL(e.name),
children: [e.name, e.reading ? /* @__PURE__ */ (0, I.jsx)("small", { children: e.reading }) : null]
}, t))
})] });
}
-function hEe({ glyph: e, label: t, clip: n, children: r }) {
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("dt", { children: [/* @__PURE__ */ (0, I.jsx)(ZQ, { name: e }), t] }), /* @__PURE__ */ (0, I.jsx)("dd", {
+function bEe({ glyph: e, label: t, clip: n, children: r }) {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("dt", { children: [/* @__PURE__ */ (0, I.jsx)(XQ, { name: e }), t] }), /* @__PURE__ */ (0, I.jsx)("dd", {
"data-fact": e === "tags" ? "tags" : n ? "clip" : e === "calendar-range" ? "num" : void 0,
title: n,
children: r
})] });
}
-function gEe({ tags: e }) {
- let { shown: t, rest: n } = s$(e);
+function xEe({ tags: e }) {
+ let { shown: t, rest: n } = o$(e);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, I.jsx)("span", {
"data-fact-tag": "",
title: e,
children: e
- }, e)), n ? /* @__PURE__ */ (0, I.jsx)(t$, {
+ }, e)), n ? /* @__PURE__ */ (0, I.jsx)(e$, {
id: "entityTagPop",
hook: "fact",
rest: n,
@@ -64225,10 +64250,10 @@ function gEe({ tags: e }) {
})
}) : null] });
}
-function u$({ mark: e }) {
+function l$({ mark: e }) {
if ("brand" in e) return /* @__PURE__ */ (0, I.jsx)("span", {
"data-link-icon": "brand",
- children: /* @__PURE__ */ (0, I.jsx)(ZQ, { name: e.brand })
+ children: /* @__PURE__ */ (0, I.jsx)(XQ, { name: e.brand })
});
let t = z("globe") + ("site" in e ? `<img src="${B(e.site)}" alt="" width="20" height="20" loading="lazy" decoding="async" referrerpolicy="no-referrer" data-drop="self">` : "");
return /* @__PURE__ */ (0, I.jsx)("span", {
@@ -64236,7 +64261,7 @@ function u$({ mark: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-function _Ee({ link: e }) {
+function SEe({ link: e }) {
switch (e.type) {
case "icon": return /* @__PURE__ */ (0, I.jsx)("a", {
"data-link": "icon",
@@ -64245,19 +64270,19 @@ function _Ee({ link: e }) {
rel: "noopener noreferrer",
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, I.jsx)(u$, { mark: e.mark })
+ children: /* @__PURE__ */ (0, I.jsx)(l$, { mark: e.mark })
});
case "gone": return /* @__PURE__ */ (0, I.jsx)("span", {
"data-link": "gone",
tabIndex: 0,
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, I.jsx)(u$, { mark: { globe: !0 } })
+ children: /* @__PURE__ */ (0, I.jsx)(l$, { mark: { globe: !0 } })
});
case "private": return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-link": "private",
title: e.sources ? e.sources.join("\n") : e.label,
- children: [/* @__PURE__ */ (0, I.jsx)(u$, { mark: { globe: !0 } }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(l$, { mark: { globe: !0 } }), /* @__PURE__ */ (0, I.jsx)("span", {
"data-link-label": "",
children: e.sources ? e.label : `来源 · ${e.label}`
})]
@@ -64269,7 +64294,7 @@ function _Ee({ link: e }) {
rel: "noopener noreferrer",
title: e.title,
children: [
- /* @__PURE__ */ (0, I.jsx)(u$, { mark: e.mark }),
+ /* @__PURE__ */ (0, I.jsx)(l$, { mark: e.mark }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-link-label": "",
children: e.text
@@ -64284,7 +64309,7 @@ function _Ee({ link: e }) {
});
}
}
-function vEe({ entity: e, actions: t, helpers: n }) {
+function CEe({ entity: e, actions: t, helpers: n }) {
let [r, i] = (0, F.useState)(!!e.feed?.following), [a, o] = (0, F.useState)(!1), s = (0, F.useRef)(!1), c = async (e) => {
if (s.current) return !1;
s.current = !0, o(!0);
@@ -64302,33 +64327,33 @@ function vEe({ entity: e, actions: t, helpers: n }) {
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-entry-marks": "",
- children: [o$(e).map((e, t) => /* @__PURE__ */ (0, I.jsxs)("a", {
+ children: [a$(e).map((e, t) => /* @__PURE__ */ (0, I.jsxs)("a", {
"data-entry-mark": "",
href: e.url,
target: "_blank",
rel: "noopener noreferrer",
title: e.label,
"aria-label": e.label,
- children: [e.mark ? /* @__PURE__ */ (0, I.jsx)(ZQ, { name: e.mark }) : /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [e.mark ? /* @__PURE__ */ (0, I.jsx)(XQ, { name: e.mark }) : /* @__PURE__ */ (0, I.jsxs)("span", {
"data-missav-mark": "",
children: [/* @__PURE__ */ (0, I.jsx)("span", { children: "MISS" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "AV" })]
}), e.ordinal ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-entry-ordinal": "",
children: e.ordinal
}) : null]
- }, t)), e.feed ? /* @__PURE__ */ (0, I.jsx)(QTe, {
+ }, t)), e.feed ? /* @__PURE__ */ (0, I.jsx)(rEe, {
following: r,
busy: a,
onToggle: (e) => {
l(e);
},
- tip: tEe(r)
+ tip: oEe(r)
}) : null]
});
}
// src/react/entity-page/use-entity-online.ts
-var yEe = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;
-function bEe(e, t, n) {
+var wEe = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;
+function TEe(e, t, n) {
let [r, i] = (0, F.useState)(() => ha(e));
r.author !== e && i(ha(e));
let [a, o] = (0, F.useState)({
@@ -64407,7 +64432,7 @@ function bEe(e, t, n) {
onlineMedia: (e) => c(e),
onlineShuffle: () => T({
sort: Qi,
- seed: yEe()
+ seed: wEe()
}),
onlineImagesOnly: (e) => n.setImagesOnly(e),
onlineStatus: (e) => T({ status: e }),
@@ -64437,8 +64462,8 @@ function bEe(e, t, n) {
};
}
// src/react/entity-page/entity-page-view.tsx
-function xEe(e) {
- let { kind: t, name: n } = e, r = Nt(TZ(t, n)), i = !!r.data?.error, a = r.data?.canonical_name, o = r.data?.redirect ?? (a && a !== n ? {
+function EEe(e) {
+ let { kind: t, name: n } = e, r = Nt(wZ(t, n)), i = !!r.data?.error, a = r.data?.canonical_name, o = r.data?.redirect ?? (a && a !== n ? {
kind: t,
name: a
} : void 0), { actions: s } = e;
@@ -64456,17 +64481,17 @@ function xEe(e) {
s,
o?.kind,
o?.name
- ]), r.isError ? /* @__PURE__ */ (0, I.jsx)(gK, {
+ ]), r.isError ? /* @__PURE__ */ (0, I.jsx)(hK, {
message: sr(r.error),
onRetry: () => {
r.refetch();
}
- }) : !r.data || i || o ? null : /* @__PURE__ */ (0, I.jsx)(wEe, {
+ }) : !r.data || i || o ? null : /* @__PURE__ */ (0, I.jsx)(kEe, {
...e,
entity: r.data
});
}
-function d$(e) {
+function u$(e) {
let [t, n] = (0, F.useState)({
key: e,
n: 1
@@ -64478,22 +64503,22 @@ function d$(e) {
};
return n(r), r.n;
}
-var SEe = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
-function CEe(e, t) {
+var DEe = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
+function OEe(e, t) {
return `照片 · ${[e.total || !t ? `${(e.total || 0).toLocaleString()} 张` : "", t ? `样张 ${(e.sample_total || 0).toLocaleString()} 张 · ${t.toLocaleString()} 部作品` : ""].filter(Boolean).join(" · ")}`;
}
-function wEe(e) {
- let { kind: t, name: n, entity: r, filters: i, media: a, helpers: o, actions: s, hosts: c } = e, l = t === "agency" || t === "studio", u = t === "agency" ? r.related_performers || [] : t === "studio" && r.labels || [], d = Number(r.id) || 0, f = Ft(EZ(t, n, 0, "")).data?.pages[0], p = f && !f.error ? f : null, m = p ? (p.total || 0) + (p.sample_total || 0) : 0, h = (p?.total || 0) > 0 || DZ(p).length > 0, g = t === "creator" && r.follow?.key || "", _ = !!g && !r.asset_count, v = a.media === "photos" && h ? a : (a.media === "online" || _) && g ? {
+function kEe(e) {
+ let { kind: t, name: n, entity: r, filters: i, media: a, helpers: o, actions: s, hosts: c } = e, l = t === "agency" || t === "studio", u = t === "agency" ? r.related_performers || [] : t === "studio" && r.labels || [], d = Number(r.id) || 0, f = Ft(TZ(t, n, 0, "")).data?.pages[0], p = f && !f.error ? f : null, m = p ? (p.total || 0) + (p.sample_total || 0) : 0, h = (p?.total || 0) > 0 || EZ(p).length > 0, g = t === "creator" && r.follow?.key || "", _ = !!g && !r.asset_count, v = a.media === "photos" && h ? a : (a.media === "online" || _) && g ? {
media: "online",
set: 0
- } : vZ, [y, b] = (0, F.useState)("people"), x = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [S, C] = (0, F.useState)(x);
+ } : _Z, [y, b] = (0, F.useState)("people"), x = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [S, C] = (0, F.useState)(x);
S !== x && (C(x), b("videos"));
- let w = l && y === "people" && u.length ? "people" : v.media, T = bEe(g, w === "online", {
+ let w = l && y === "people" && u.length ? "people" : v.media, T = TEe(g, w === "online", {
photoLayout: e.photoLayout,
photoLayouts: e.photoLayouts,
imagesOnly: e.followImagesOnly,
setImagesOnly: e.follow.actions.setImagesOnly
- }), E = w === "photos" || w === "online" && T.media === "images", [D, O] = (0, F.useState)(0), k = wZ(e), A = Nt(k), j = d$(JSON.stringify([k.queryKey, D])), [M] = (0, F.useState)(() => (t === "performer" || t === "studio") && (e.jav || (A.data?.items || []).some((e) => e.is_jav)));
+ }), E = w === "photos" || w === "online" && T.media === "images", [D, O] = (0, F.useState)(0), k = CZ(e), A = Nt(k), j = u$(JSON.stringify([k.queryKey, D])), [M] = (0, F.useState)(() => (t === "performer" || t === "studio") && (e.jav || (A.data?.items || []).some((e) => e.is_jav)));
(0, F.useLayoutEffect)(() => {
s.javContext(M);
}, [s, M]);
@@ -64503,26 +64528,26 @@ function wEe(e) {
}, [e.layout, M]), N = {
jav: e.jav,
seed: e.seed
- }, te = (0, F.useCallback)((e, r, a) => CZ(t, n, i, N, e, r, a), [j]), [P, ne] = (0, F.useState)({}), re = v.set, ie = P[re] || "", ae = Ft({
- ...EZ(t, n, re, ie),
+ }, te = (0, F.useCallback)((e, r, a) => SZ(t, n, i, N, e, r, a), [j]), [P, ne] = (0, F.useState)({}), re = v.set, ie = P[re] || "", ae = Ft({
+ ...TZ(t, n, re, ie),
enabled: w === "photos"
- }), oe = ae.data?.pages[0], se = d$(JSON.stringify(bZ(t, n, re, ie))), ce = (0, F.useMemo)(() => {
+ }), oe = ae.data?.pages[0], se = u$(JSON.stringify(yZ(t, n, re, ie))), ce = (0, F.useMemo)(() => {
let e = ae.data?.pages;
if (!e?.[0] || e[0].error) return null;
let t = e[0];
return {
revision: se,
- codeSets: t.id ? [] : DZ(t),
+ codeSets: t.id ? [] : EZ(t),
items: e.flatMap((e) => e.items || []),
total: t.total || 0,
hasMore: !!e[e.length - 1]?.has_more
};
}, [ae.data, se]), le = ae.refetch, ue = ae.fetchNextPage, de = Nt({
- ...hZ(d, o.feedRowHtml),
+ ...mZ(d, o.feedRowHtml),
enabled: !!d
}), fe = (0, F.useRef)(e.feedRevision);
(0, F.useEffect)(() => {
- fe.current !== e.feedRevision && (fe.current = e.feedRevision, U.invalidateQueries({ queryKey: mZ(d) }));
+ fe.current !== e.feedRevision && (fe.current = e.feedRevision, U.invalidateQueries({ queryKey: pZ(d) }));
}, [d, e.feedRevision]);
let pe = !!A.data;
(0, F.useEffect)(() => {
@@ -64536,11 +64561,11 @@ function wEe(e) {
pe,
T.key
]), (0, F.useEffect)(() => {
- c.body.isConnected && !document.getElementById("index")?.hidden && (pm("entity", {
+ c.body.isConnected && !document.getElementById("index")?.hidden && (vm("entity", {
seed: e.seed,
revision: e.revision,
jav: e.jav
- }), !A.isPending && !ae.isPending && _m(() => c.body.isConnected && !document.getElementById("index")?.hidden, c.filter));
+ }), !A.isPending && !ae.isPending && Sm(() => c.body.isConnected && !document.getElementById("index")?.hidden, c.filter));
}, [
c,
e.seed,
@@ -64556,7 +64581,7 @@ function wEe(e) {
me.current = !1;
}, []);
let L = (0, F.useCallback)(async () => {
- await U.invalidateQueries({ queryKey: ["entity-route"] }), await U.invalidateQueries({ queryKey: yZ(t, n) }), await U.invalidateQueries({ queryKey: [
+ await U.invalidateQueries({ queryKey: ["entity-route"] }), await U.invalidateQueries({ queryKey: vZ(t, n) }), await U.invalidateQueries({ queryKey: [
"entity-items",
t,
n
@@ -64590,7 +64615,7 @@ function wEe(e) {
enabled: e
})
}),
- onSuccess: (e, r) => U.setQueryData(yZ(t, n), (e) => e && {
+ onSuccess: (e, r) => U.setQueryData(vZ(t, n), (e) => e && {
...e,
feed: {
...e.feed,
@@ -64644,10 +64669,10 @@ function wEe(e) {
let e = await Cn("/api/feeds/check").catch(() => null);
if (!e || e.status !== "running") break;
}
- me.current && await U.invalidateQueries({ queryKey: mZ(d) });
+ me.current && await U.invalidateQueries({ queryKey: pZ(d) });
})();
},
- feedAction: gZ,
+ feedAction: hZ,
avatarPicked: () => {
s.avatarChanged(), L().then(() => {
me.current && O((e) => e + 1);
@@ -64695,19 +64720,19 @@ function wEe(e) {
(e !== w || v.set) && (b(e === "people" ? "people" : "videos"), s.route(i, e === "photos" || e === "online" ? {
media: e,
set: 0
- } : vZ));
+ } : _Z));
},
setState: (e) => s.route({
...i,
state: e
- }, vZ),
+ }, _Z),
toggleTag: s.toggleTag,
clearFilter: s.clearFilter,
clearAll: s.clearAll,
setSort: s.setSort,
reshuffle: async () => {
if (w !== "photos") {
- let r = s.reshuffleVideos(), a = wZ({
+ let r = s.reshuffleVideos(), a = CZ({
kind: t,
name: n,
filters: {
@@ -64721,7 +64746,7 @@ function wEe(e) {
await U.fetchQuery(a).catch(() => null);
return;
}
- let r = SEe(), a = await U.fetchInfiniteQuery(EZ(t, n, re, r)).catch(() => null);
+ let r = DEe(), a = await U.fetchInfiniteQuery(TZ(t, n, re, r)).catch(() => null);
me.current && a?.pages[0] && !a.pages[0].error && ne((e) => ({
...e,
[re]: r
@@ -64756,7 +64781,7 @@ function wEe(e) {
k: e.k,
label: Xl(e.k),
n: e.n,
- selected: iwe(i.tag, e.k)
+ selected: lwe(i.tag, e.k)
})), we = [
u.length,
!_,
@@ -64791,14 +64816,14 @@ function wEe(e) {
creator: "",
studio: "",
owner: ""
- }, vZ), Me = "", Ne = !1;
+ }, _Z), Me = "", Ne = !1;
if (w === "people") Me = `${t === "studio" ? "厂牌" : "艺人"} · ${u.length.toLocaleString()}`;
else if (w === "online") Ne = T.busy, Me = `在线 · ${(T.total ?? r.follow?.n ?? 0).toLocaleString()} 项更新`;
else if (w === "videos") {
Ne = !A.data;
- let e = xZ(i.tag).length;
+ let e = bZ(i.tag).length;
Me = `视频 · ${(A.data?.work_total ?? A.data?.total ?? 0).toLocaleString()}${e ? ` · 已选 ${e.toLocaleString()} 个标签` : ""}`;
- } else oe && !oe.error ? Me = Ee ? `${oe.title} · ${(oe.total || 0).toLocaleString()} 张` : CEe(oe, DZ(oe).length) : Ne = ae.isPending;
+ } else oe && !oe.error ? Me = Ee ? `${oe.title} · ${(oe.total || 0).toLocaleString()} 张` : OEe(oe, EZ(oe).length) : Ne = ae.isPending;
let Pe = (0, F.useMemo)(() => ({
...e.card.actions,
loadMorePhotos: async () => {
@@ -64815,7 +64840,7 @@ function wEe(e) {
u
]);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(lEe, {
+ /* @__PURE__ */ (0, I.jsx)(mEe, {
kind: t,
name: n,
entity: r,
@@ -64825,7 +64850,7 @@ function wEe(e) {
actions: ye,
helpers: be
}, D),
- (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(rK, {
+ (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(oK, {
kind: t,
name: n,
view: w,
@@ -64842,9 +64867,9 @@ function wEe(e) {
actions: xe,
helpers: Se
}), c.filter),
- (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(cG, {
+ (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(dG, {
enabled: w === "videos",
- children: w === "online" ? /* @__PURE__ */ (0, I.jsx)(_Te, {
+ children: w === "online" ? /* @__PURE__ */ (0, I.jsx)(STe, {
view: T.view,
media: T.media,
result: T.result,
@@ -64858,16 +64883,16 @@ function wEe(e) {
actions: e.follow.actions,
canLoadMore: e.canLoadMore,
clearFilters: T.clearFilters
- }) : w === "videos" && A.isError ? /* @__PURE__ */ (0, I.jsx)(gK, {
+ }) : w === "videos" && A.isError ? /* @__PURE__ */ (0, I.jsx)(hK, {
message: sr(A.error),
onRetry: () => {
A.refetch();
}
- }) : Ae ? /* @__PURE__ */ (0, I.jsx)(TEe, {
+ }) : Ae ? /* @__PURE__ */ (0, I.jsx)(AEe, {
filtered: ke,
onShowAll: je,
onOnline: g ? () => xe.setView("online") : void 0
- }) : /* @__PURE__ */ (0, I.jsx)(Lwe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(Hwe, {
kind: t,
name: n,
view: w,
@@ -64900,24 +64925,24 @@ function wEe(e) {
}), c.body)
] });
}
-function TEe({ filtered: e, onShowAll: t, onOnline: n }) {
- return e ? /* @__PURE__ */ (0, I.jsx)(UV, {
- icon: GV("search"),
+function AEe({ filtered: e, onShowAll: t, onOnline: n }) {
+ return e ? /* @__PURE__ */ (0, I.jsx)(GV, {
+ icon: qV("search"),
title: "没有符合条件的视频",
- actions: /* @__PURE__ */ (0, I.jsx)(q, {
+ actions: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
onClick: t,
children: "清除筛选"
}),
children: "清除筛选后查看名下全部视频。"
- }) : /* @__PURE__ */ (0, I.jsx)(UV, {
- icon: GV("film"),
+ }) : /* @__PURE__ */ (0, I.jsx)(GV, {
+ icon: qV("film"),
title: "还没有视频",
- actions: n ? /* @__PURE__ */ (0, I.jsx)(q, {
+ actions: n ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
onClick: n,
children: "查看在线作品"
- }) : /* @__PURE__ */ (0, I.jsx)(_R, {
+ }) : /* @__PURE__ */ (0, I.jsx)(yR, {
size: "small",
href: "/",
children: "浏览馆藏"
@@ -64926,30 +64951,30 @@ function TEe({ filtered: e, onShowAll: t, onOnline: n }) {
});
}
// src/react/diagnostics/diagnostics.ts
-var f$ = ["diagnostics"], p$ = (e) => V("/api/diagnostics", e);
-async function EEe(e) {
+var d$ = ["diagnostics"], f$ = (e) => V("/api/diagnostics", e);
+async function jEe(e) {
await U.fetchQuery({
- queryKey: f$,
- queryFn: () => p$(e),
+ queryKey: d$,
+ queryFn: () => f$(e),
staleTime: 1e4
});
}
// src/react/feed-new/feed-new-page.tsx
-function DEe({ host: e, revision: t, helpers: n, actions: r }) {
- let i = Nt(hZ(null, n.feedRowHtml)), a = (0, F.useRef)(t);
+function MEe({ host: e, revision: t, helpers: n, actions: r }) {
+ let i = Nt(mZ(null, n.feedRowHtml)), a = (0, F.useRef)(t);
return (0, F.useEffect)(() => {
- a.current !== t && (a.current = t, U.invalidateQueries({ queryKey: mZ(null) }));
- }, [t]), (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(XQ, {
+ a.current !== t && (a.current = t, U.invalidateQueries({ queryKey: pZ(null) }));
+ }, [t]), (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(YQ, {
feedNew: i.data ?? null,
host: e,
wire: n.wireFeedRow,
- act: gZ,
+ act: hZ,
settled: r.settled
}), e);
}
// src/react/index/index-search.tsx
-var OEe = GV("search");
-function m$({ label: e, value: t, onQuery: n }) {
+var NEe = qV("search");
+function p$({ label: e, value: t, onQuery: n }) {
let [r, i] = (0, F.useState)(t), a = (0, F.useRef)(!1), o = (0, F.useRef)(void 0);
(0, F.useEffect)(() => {
clearTimeout(o.current), i(t);
@@ -64966,15 +64991,15 @@ function m$({ label: e, value: t, onQuery: n }) {
onCompositionEnd: (e) => {
a.current = !1, s(e.target.value);
},
- children: /* @__PURE__ */ (0, I.jsx)(IV, {
+ children: /* @__PURE__ */ (0, I.jsx)(RV, {
"aria-label": e,
value: r,
onChange: (e) => {
i(e), a.current || s(e);
},
- children: /* @__PURE__ */ (0, I.jsx)(RV, {
+ children: /* @__PURE__ */ (0, I.jsx)(BV, {
type: "search",
- leadingIcon: OEe,
+ leadingIcon: NEe,
spellCheck: !1,
autoComplete: "off",
enterKeyHint: "search",
@@ -64986,7 +65011,7 @@ function m$({ label: e, value: t, onQuery: n }) {
});
}
// src/react/index/tag-pagination.ts
-function h$(e) {
+function m$(e) {
let [t, n] = (0, F.useState)({
filter: e,
pageIndex: 0,
@@ -65003,7 +65028,7 @@ function h$(e) {
}), [e])
};
}
-function g$(e, t, n) {
+function h$(e, t, n) {
let { pageIndex: r, pageSize: i } = t;
(0, F.useEffect)(() => {
if (e === void 0) return;
@@ -65020,11 +65045,11 @@ function g$(e, t, n) {
]);
}
// src/react/index/index-tags.tsx
-var _$ = () => /* @__PURE__ */ (0, I.jsx)("span", {
+var g$ = () => /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
"data-tag-dot": "",
className: "size-1.75 flex-none rounded-full"
-}), v$ = GV("pencil"), y$ = (e, t) => ({
+}), _$ = qV("pencil"), v$ = (e, t) => ({
kind: "tag",
name: e.k,
favorite: e.favorite,
@@ -65033,7 +65058,7 @@ var _$ = () => /* @__PURE__ */ (0, I.jsx)("span", {
tag_id: e.id || e.k
} : { entity_id: e.entity_id }
});
-function kEe({ tag: e, actions: t }) {
+function PEe({ tag: e, actions: t }) {
let n = t.picked.has(e.k);
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 items-center gap-1",
@@ -65042,13 +65067,13 @@ function kEe({ tag: e, actions: t }) {
type: "button",
"data-alpha-tag": "",
"data-k": e.k,
- "data-tag-cat": VZ(t.online, e.cat),
+ "data-tag-cat": BZ(t.online, e.cat),
"aria-pressed": n,
title: e.label,
onClick: () => t.press(e.k),
className: "flex h-9 min-w-0 flex-1 cursor-pointer items-center gap-2.25 rounded-lg px-2.5 text-left text-body-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: [
- /* @__PURE__ */ (0, I.jsx)(_$, {}),
+ /* @__PURE__ */ (0, I.jsx)(g$, {}),
/* @__PURE__ */ (0, I.jsx)("span", {
className: "min-w-0 flex-1 truncate",
children: e.label
@@ -65059,32 +65084,32 @@ function kEe({ tag: e, actions: t }) {
})
]
}),
- t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(aH, { item: y$(e, t.online) }),
- t.edit ? /* @__PURE__ */ (0, I.jsx)(iH, {
+ t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(sH, { item: v$(e, t.online) }),
+ t.edit ? /* @__PURE__ */ (0, I.jsx)(oH, {
label: `编辑标签 ${e.label}`,
onClick: () => t.edit?.(e.k),
- children: /* @__PURE__ */ (0, I.jsx)(v$, {})
+ children: /* @__PURE__ */ (0, I.jsx)(_$, {})
}) : null
]
});
}
-function b$({ groups: e, actions: t }) {
+function y$({ groups: e, actions: t }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-alphabet": "",
className: "flex flex-col gap-4",
children: e.map(([e, n], r) => /* @__PURE__ */ (0, I.jsxs)("section", {
"data-alpha-group": r,
- className: aU({
+ className: sU({
radius: "plain",
padding: "none",
className: "px-5 pt-4 pb-3"
}),
children: [/* @__PURE__ */ (0, I.jsxs)("h3", {
className: "mb-2 flex items-center text-title-2-medium text-text-primary",
- children: [e, /* @__PURE__ */ (0, I.jsx)(_W, { value: n.length })]
+ children: [e, /* @__PURE__ */ (0, I.jsx)(bW, { value: n.length })]
}), /* @__PURE__ */ (0, I.jsx)("div", {
className: "index-tag-list gap-x-4 gap-y-0.5",
- children: n.map((e) => /* @__PURE__ */ (0, I.jsx)(kEe, {
+ children: n.map((e) => /* @__PURE__ */ (0, I.jsx)(PEe, {
tag: e,
actions: t
}, e.k))
@@ -65092,26 +65117,26 @@ function b$({ groups: e, actions: t }) {
}, e))
});
}
-var AEe = "\xA0";
-function x$({ tags: e, actions: t }) {
+var FEe = "\xA0";
+function b$({ tags: e, actions: t }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-tag-cloud": "",
className: "flex flex-wrap gap-1.75",
children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)("span", {
"data-tag-token": "",
- "data-tag-cat": VZ(t.online, e.cat),
+ "data-tag-cat": BZ(t.online, e.cat),
className: "inline-flex max-w-full min-w-0 items-center gap-1 rounded-lg border p-1",
children: [/* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-tag-chip": "",
"data-k": e.k,
- "data-tag-cat": VZ(t.online, e.cat),
+ "data-tag-cat": BZ(t.online, e.cat),
"aria-pressed": t.picked.has(e.k),
onClick: () => t.press(e.k),
className: "inline-flex max-w-full min-w-0 cursor-pointer items-center rounded-lg px-2 py-0.5 text-body-2-regular text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "min-w-0 truncate",
- children: e.label + AEe
+ children: e.label + FEe
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-tag-n": "",
className: "text-caption-1-regular opacity-60",
@@ -65120,16 +65145,16 @@ function x$({ tags: e, actions: t }) {
}), t.favorites !== !1 || t.edit ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-tag-actions": "",
className: "inline-flex flex-none items-center gap-1",
- children: [t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(aH, { item: y$(e, t.online) }), t.edit ? /* @__PURE__ */ (0, I.jsx)(iH, {
+ children: [t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(sH, { item: v$(e, t.online) }), t.edit ? /* @__PURE__ */ (0, I.jsx)(oH, {
label: `编辑标签 ${e.label}`,
onClick: () => t.edit?.(e.k),
- children: /* @__PURE__ */ (0, I.jsx)(v$, {})
+ children: /* @__PURE__ */ (0, I.jsx)(_$, {})
}) : null]
}) : null]
}, e.k))
});
}
-var jEe = [[
+var IEe = [[
"cloud",
"标签云",
"tags"
@@ -65138,34 +65163,34 @@ var jEe = [[
"字母表",
"text-aa"
]];
-function S$({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c, status: l, actions: u }) {
- let d = cR();
- return /* @__PURE__ */ (0, I.jsx)(uR, {
+function x$({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c, status: l, actions: u }) {
+ let d = uR();
+ return /* @__PURE__ */ (0, I.jsx)(fR, {
label: "标签筛选",
topLabel: "标签类型",
top: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [l ? /* @__PURE__ */ (0, I.jsxs)("div", {
role: "group",
"aria-label": "标签状态",
className: "flex flex-none items-center gap-1.75 border-r border-(--glass-low) pr-3",
- children: [[[!1, "使用中"], [!0, "已隐藏"]].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(dR, {
+ children: [[[!1, "使用中"], [!0, "已隐藏"]].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(pR, {
"data-tag-pill": "",
"data-tag-cat": "all",
pressed: !l.blocked && l.hidden === e,
onPress: () => l.onChange(!!e),
children: t
- }, String(e))), l.onBlocked ? /* @__PURE__ */ (0, I.jsx)(dR, {
+ }, String(e))), l.onBlocked ? /* @__PURE__ */ (0, I.jsx)(pR, {
"data-tag-pill": "",
"data-tag-cat": "all",
pressed: !!l.blocked,
onPress: l.onBlocked,
children: "已屏蔽内容"
}) : null]
- }) : null, e.map(([e, r]) => /* @__PURE__ */ (0, I.jsxs)(dR, {
+ }) : null, e.map(([e, r]) => /* @__PURE__ */ (0, I.jsxs)(pR, {
"data-tag-pill": "",
- "data-tag-cat": e === "all" ? "all" : VZ(n, e),
+ "data-tag-cat": e === "all" ? "all" : BZ(n, e),
pressed: t === e,
onPress: () => o(e),
- children: [/* @__PURE__ */ (0, I.jsx)(_$, {}), r]
+ children: [/* @__PURE__ */ (0, I.jsx)(g$, {}), r]
}, e))] }),
bottom: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
@@ -65186,19 +65211,19 @@ function S$({ categories: e, category: t, online: n, readout: r, letters: i, vie
children: e
}, e))
}) : null,
- /* @__PURE__ */ (0, I.jsx)(AB, {
+ /* @__PURE__ */ (0, I.jsx)(MB, {
"aria-label": "标签视图",
orientation: "horizontal",
value: a,
onChange: (e) => c(e),
- className: `ml-auto ${TG}`,
- children: jEe.map(([e, t, n]) => {
- let r = GV(n);
- return /* @__PURE__ */ (0, I.jsx)(jB, {
+ className: `ml-auto ${OG}`,
+ children: IEe.map(([e, t, n]) => {
+ let r = qV(n);
+ return /* @__PURE__ */ (0, I.jsx)(NB, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: EG,
+ className: kG,
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: t,
className: "contents",
@@ -65210,13 +65235,13 @@ function S$({ categories: e, category: t, online: n, readout: r, letters: i, vie
] })
});
}
-function MEe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
- return /* @__PURE__ */ (0, I.jsxs)(Kj, {
+function LEe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
+ return /* @__PURE__ */ (0, I.jsxs)(Zj, {
visible: e > 0,
label: "所选标签操作",
count: `已选 ${e.toLocaleString()} 个标签`,
children: [
- /* @__PURE__ */ (0, I.jsx)(_H, {
+ /* @__PURE__ */ (0, I.jsx)(yH, {
isSelected: t === "any",
onChange: (e) => n(e ? "any" : "all"),
children: /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -65230,13 +65255,13 @@ function MEe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
})]
})
}),
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
onClick: r,
children: "清空"
}),
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, I.jsx)(J, {
variant: "primary",
size: "small",
disabled: !e,
@@ -65247,29 +65272,29 @@ function MEe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
});
}
// src/react/toaster.tsx
-var C$ = (e, t) => /* @__PURE__ */ (0, I.jsx)("span", {
+var S$ = (e, t) => /* @__PURE__ */ (0, I.jsx)("span", {
"data-toast-glyph": t ? "draw" : "still",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: e }
-}), w$ = null, T$ = { "--floating-radius": "var(--radius-2xl)" };
-function E$() {
- let e = w$;
- w$ = null, e?.root.unmount();
-}
-var D$ = (e, t) => {
- if (w$?.host === e) return;
- E$();
+}), C$ = null, w$ = { "--floating-radius": "var(--radius-2xl)" };
+function T$() {
+ let e = C$;
+ C$ = null, e?.root.unmount();
+}
+var E$ = (e, t) => {
+ if (C$?.host === e) return;
+ T$();
let n = (0, Lt.createRoot)(e);
- w$ = {
+ C$ = {
host: e,
root: n
- }, n.render(/* @__PURE__ */ (0, I.jsxs)(bH, { children: [/* @__PURE__ */ (0, I.jsx)(OH, {
+ }, n.render(/* @__PURE__ */ (0, I.jsxs)(SH, { children: [/* @__PURE__ */ (0, I.jsx)(AH, {
id: "receipts",
position: "bottom-right",
closeButton: !0,
gap: 8,
style: {
- ...T$,
+ ...w$,
"--width": "min(560px, calc(100vw - 48px))"
},
offset: {
@@ -65284,16 +65309,16 @@ var D$ = (e, t) => {
toastOptions: { closeButtonAriaLabel: "关闭提示" },
containerAriaLabel: "通知",
icons: {
- success: C$(t.success, !0),
- error: C$(t.error, !1)
+ success: S$(t.success, !0),
+ error: S$(t.error, !1)
}
- }), /* @__PURE__ */ (0, I.jsx)(OH, {
+ }), /* @__PURE__ */ (0, I.jsx)(AH, {
id: "processing",
position: "bottom-right",
gap: 8,
expand: !0,
style: {
- ...T$,
+ ...w$,
"--width": "min(400px, calc(100vw - 32px))"
},
offset: {
@@ -65308,13 +65333,13 @@ var D$ = (e, t) => {
toastOptions: { closeButtonAriaLabel: "关闭任务提示" },
containerAriaLabel: "后台任务"
})] }));
-}, NEe = 6e3, O$ = (e, t) => {
+}, REe = 6e3, D$ = (e, t) => {
if (!String(t.html ?? "").trim()) return;
- let n = t.alert ? CH.error : CH.success, r = t.action;
+ let n = t.alert ? TH.error : TH.success, r = t.action;
n(/* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {
id: e,
toasterId: "receipts",
- duration: t.timeout > 0 ? t.timeout : NEe,
+ duration: t.timeout > 0 ? t.timeout : REe,
action: r ? {
label: r.label,
onClick: (e) => {
@@ -65322,7 +65347,7 @@ var D$ = (e, t) => {
}
} : void 0
});
-}, k$ = (e) => e.id ?? e.entity_id, A$ = {
+}, O$ = (e) => e.id ?? e.entity_id, k$ = {
rename: "重命名标签",
merge: "合并标签",
hide: "隐藏标签",
@@ -65330,26 +65355,26 @@ var D$ = (e, t) => {
repair: "整理重复标签",
block: "屏蔽内容",
unblock: "恢复内容"
-}, j$ = (e, t) => H("/api/tag-management/preview", e, "POST", t);
-async function M$(e, t, n) {
+}, A$ = (e, t) => H("/api/tag-management/preview", e, "POST", t);
+async function j$(e, t, n) {
if (n?.aborted) return !1;
let r = t.tags.map((e) => `「${e.k}」`).join("、"), i = e.operation === "merge" || e.operation === "repair" ? `合并 ${t.tags.length} 个标签,涉及 ${t.assets} 个资源,重叠关联 ${t.overlap} 个。旧名称保留为别名。此操作无法直接撤销。` : e.operation === "rename" ? `${r}将更名为「${t.name || e.name}」,涉及 ${t.assets} 个资源。旧名称保留为别名。` : e.operation === "block" ? `屏蔽带有${r}任一标签的内容及其其它版本,涉及 ${t.assets} 个资源。可在「已屏蔽内容」中恢复。` : e.operation === "unblock" ? `解除${r}的内容屏蔽,涉及 ${t.assets} 个资源。` : `${e.operation === "hide" ? "隐藏" : "恢复"} ${t.tags.length} 个标签,涉及 ${t.assets} 个资源。${e.operation === "hide" ? "可在“已隐藏”中恢复。" : ""}`;
return !(await al({
- title: A$[e.operation],
+ title: k$[e.operation],
body: i,
- confirmLabel: A$[e.operation],
+ confirmLabel: k$[e.operation],
onConfirm: () => H("/api/tag-management", {
...e,
token: t.token
}, "POST", n)
- })).confirmed || n?.aborted ? !1 : (await U.invalidateQueries(), O$(`tag-management-${Date.now()}`, {
- html: `已${A$[e.operation]}`,
+ })).confirmed || n?.aborted ? !1 : (await U.invalidateQueries(), D$(`tag-management-${Date.now()}`, {
+ html: `已${k$[e.operation]}`,
alert: !1,
timeout: 6e3,
action: null
}), !0);
}
-function N$({ operation: e, selected: t, close: n, done: r, scope: i = "local" }) {
+function M$({ operation: e, selected: t, close: n, done: r, scope: i = "local" }) {
let a = (0, F.useRef)({
operation: e,
selected: t,
@@ -65358,24 +65383,24 @@ function N$({ operation: e, selected: t, close: n, done: r, scope: i = "local" }
scope: i
}), o = (0, F.useRef)({
name: t[0]?.k || "",
- target_id: t[0] ? k$(t[0]) : 0
+ target_id: t[0] ? O$(t[0]) : 0
}), [s, c] = (0, F.useState)(null);
return (0, F.useEffect)(() => {
let e = new AbortController(), t = a.current, n = rl({
- title: A$[t.operation],
+ title: k$[t.operation],
confirmLabel: "预览影响范围",
confirmDisabled: !0,
body: "<div class=\"peach-react\" data-tag-editor-fields></div>",
onConfirm: async () => {
let n = {
operation: t.operation,
- ids: t.selected.map(k$),
+ ids: t.selected.map(O$),
...t.scope === "online" ? { scope: t.scope } : {},
...t.operation === "rename" ? { name: o.current.name.trim() } : { target_id: o.current.target_id }
};
return {
command: n,
- plan: await j$(n, e.signal)
+ plan: await A$(n, e.signal)
};
}
});
@@ -65386,14 +65411,14 @@ function N$({ operation: e, selected: t, close: n, done: r, scope: i = "local" }
if (!e.signal.aborted) {
if (n.confirmed) {
let r = n.result;
- await M$(r.command, r.plan, e.signal) && t.done();
+ await j$(r.command, r.plan, e.signal) && t.done();
}
e.signal.aborted || t.close();
}
}), () => {
e.abort(), n.close();
};
- }, []), s ? (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(PEe, {
+ }, []), s ? (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(zEe, {
operation: a.current.operation,
selected: a.current.selected,
dialog: s.dialog,
@@ -65402,8 +65427,8 @@ function N$({ operation: e, selected: t, close: n, done: r, scope: i = "local" }
}
}), s.host) : null;
}
-function PEe({ operation: e, selected: t, dialog: n, update: r }) {
- let [i, a] = (0, F.useState)(t[0]?.k || ""), [o, s] = (0, F.useState)(t[0] ? k$(t[0]) : 0);
+function zEe({ operation: e, selected: t, dialog: n, update: r }) {
+ let [i, a] = (0, F.useState)(t[0]?.k || ""), [o, s] = (0, F.useState)(t[0] ? O$(t[0]) : 0);
return (0, F.useEffect)(() => {
r({
name: i,
@@ -65416,28 +65441,28 @@ function PEe({ operation: e, selected: t, dialog: n, update: r }) {
e,
t,
r
- ]), e === "rename" ? /* @__PURE__ */ (0, I.jsx)(zV, {
+ ]), e === "rename" ? /* @__PURE__ */ (0, I.jsx)(VV, {
autoFocus: !0,
"aria-label": "标签名称",
value: i,
onChange: a,
maxLength: 80
- }) : /* @__PURE__ */ (0, I.jsx)(DY, {
+ }) : /* @__PURE__ */ (0, I.jsx)(EY, {
"aria-label": "保留的标签",
prefix: "保留",
selectedKey: String(o),
onSelectionChange: (e) => {
- let n = t.find((t) => String(k$(t)) === String(e));
- n && s(k$(n));
+ let n = t.find((t) => String(O$(t)) === String(e));
+ n && s(O$(n));
},
- children: t.map((e) => /* @__PURE__ */ (0, I.jsx)(JU, {
- id: String(k$(e)),
+ children: t.map((e) => /* @__PURE__ */ (0, I.jsx)(XU, {
+ id: String(O$(e)),
children: e.k
- }, k$(e)))
+ }, O$(e)))
});
}
// src/react/index/tag-manager.tsx
-function P$({ search: e, category: t = "all", view: n = "cloud", onCategory: r, onView: i, onJump: a, scope: o = "local" }) {
+function N$({ search: e, category: t = "all", view: n = "cloud", onCategory: r, onView: i, onJump: a, scope: o = "local" }) {
let s = o === "online", c = (0, F.useRef)(null), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(t), [p, m] = (0, F.useState)(n), h = r ? t : d, g = i ? n : p, _ = e ?? l, [v, y] = (0, F.useState)(!1), [b, x] = (0, F.useState)(!1), S = JSON.stringify([
o,
_,
@@ -65445,7 +65470,7 @@ function P$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
g,
v,
b
- ]), { pagination: C, onChange: w } = h$(S), T = new URLSearchParams({
+ ]), { pagination: C, onChange: w } = m$(S), T = new URLSearchParams({
limit: String(C.pageSize),
offset: String(C.pageIndex * C.pageSize),
q: _,
@@ -65462,25 +65487,25 @@ function P$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
],
queryFn: ({ signal: e }) => V(`/api/tag-management?${T}`, e)
});
- g$(E.data?.total, C, w);
+ h$(E.data?.total, C, w);
let [D, O] = (0, F.useState)(/* @__PURE__ */ new Map());
(0, F.useEffect)(() => {
O(/* @__PURE__ */ new Map());
}, [S]);
- let k = new Set(D.keys()), [A, j] = (0, F.useState)(null), M = qH(), ee = E.data?.items || [], N = ee, te = (s ? MZ : jZ).filter(([e]) => e === "all" || e === h || E.isPending || Number(E.data?.categories[e]) > 0), P = N.map((e) => ({
+ let k = new Set(D.keys()), [A, j] = (0, F.useState)(null), M = YH(), ee = E.data?.items || [], N = ee, te = (s ? jZ : AZ).filter(([e]) => e === "all" || e === h || E.isPending || Number(E.data?.categories[e]) > 0), P = N.map((e) => ({
...e,
label: e.k
- })), ne = g === "alphabet" ? HZ(P, (e) => e) : [], re = [...D.values()], ie = (e) => {
+ })), ne = g === "alphabet" ? VZ(P, (e) => e) : [], re = [...D.values()], ie = (e) => {
M.run(e.operation, async (t) => {
let n = s ? {
...e,
scope: o
} : e;
- return M$(n, await j$(n, t), t);
+ return j$(n, await A$(n, t), t);
}, (e) => {
e && O(/* @__PURE__ */ new Map());
});
- }, ae = re.map(k$), oe = {
+ }, ae = re.map(O$), oe = {
online: s,
favorites: s,
picked: k,
@@ -65501,13 +65526,13 @@ function P$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
children: [
e === void 0 ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "mb-4 flex",
- children: /* @__PURE__ */ (0, I.jsx)(m$, {
+ children: /* @__PURE__ */ (0, I.jsx)(p$, {
label: "过滤标签",
value: l,
onQuery: u
})
}) : null,
- /* @__PURE__ */ (0, I.jsx)(S$, {
+ /* @__PURE__ */ (0, I.jsx)(x$, {
categories: te,
category: h,
online: s,
@@ -65535,7 +65560,7 @@ function P$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
} } : {}
},
actions: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- E.data?.duplicate_groups.length ? /* @__PURE__ */ (0, I.jsx)(fR, {
+ E.data?.duplicate_groups.length ? /* @__PURE__ */ (0, I.jsx)(mR, {
busy: M.busy === "repair",
onPress: () => ie({
operation: "repair",
@@ -65543,11 +65568,11 @@ function P$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
}),
children: "整理重复标签"
}) : null,
- N.length ? /* @__PURE__ */ (0, I.jsx)(fR, {
+ N.length ? /* @__PURE__ */ (0, I.jsx)(mR, {
onPress: () => O((e) => new Map([...e, ...N.map((e) => [e.k, e])])),
children: "选择本页"
}) : null,
- k.size ? /* @__PURE__ */ (0, I.jsx)(fR, {
+ k.size ? /* @__PURE__ */ (0, I.jsx)(mR, {
onPress: () => O(/* @__PURE__ */ new Map()),
children: "清空选择"
}) : null
@@ -65556,27 +65581,27 @@ function P$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
E.isPending ? /* @__PURE__ */ (0, I.jsx)("div", { dangerouslySetInnerHTML: { __html: $s({
mode: g,
pageSize: C.pageSize
- }) } }) : E.isError ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ }) } }) : E.isError ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "error",
- action: /* @__PURE__ */ (0, I.jsx)(q, {
+ action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
onClick: () => void E.refetch(),
children: "立即重试"
}),
children: "无法读取标签"
- }) : N.length ? g === "alphabet" ? /* @__PURE__ */ (0, I.jsx)(b$, {
+ }) : N.length ? g === "alphabet" ? /* @__PURE__ */ (0, I.jsx)(y$, {
groups: ne,
actions: oe
- }) : /* @__PURE__ */ (0, I.jsx)(x$, {
+ }) : /* @__PURE__ */ (0, I.jsx)(b$, {
tags: P,
actions: oe
- }) : /* @__PURE__ */ (0, I.jsx)(HV, {
+ }) : /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "neutral",
children: "没有符合条件的标签。"
}),
E.data ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "mt-5",
- children: /* @__PURE__ */ (0, I.jsx)(AY, {
+ children: /* @__PURE__ */ (0, I.jsx)(kY, {
label: "标签管理",
total: E.data.total,
pagination: C,
@@ -65586,43 +65611,43 @@ function P$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
pageSizes: Qs
})
}) : null,
- M.error ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ M.error ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "error",
children: M.error
}) : null,
- /* @__PURE__ */ (0, I.jsxs)(Kj, {
+ /* @__PURE__ */ (0, I.jsxs)(Zj, {
label: "标签管理操作",
count: `已选 ${k.size} 个标签`,
visible: k.size > 0,
children: [
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
disabled: re.length !== 1,
onClick: () => j("rename"),
children: "重命名"
}),
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
disabled: re.length < 2 || s && new Set(re.map((e) => e.cat)).size > 1,
onClick: () => j("merge"),
children: "合并"
}),
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...qV(!!M.busy),
+ ...YV(!!M.busy),
onClick: () => ie({
operation: v ? "restore" : "hide",
ids: ae
}),
children: v ? "恢复" : "隐藏"
}),
- s ? /* @__PURE__ */ (0, I.jsx)(q, {
+ s ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...qV(!!M.busy),
+ ...YV(!!M.busy),
onClick: () => ie({
operation: b ? "unblock" : "block",
ids: ae
@@ -65631,7 +65656,7 @@ function P$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
}) : null
]
}),
- A ? /* @__PURE__ */ (0, I.jsx)(N$, {
+ A ? /* @__PURE__ */ (0, I.jsx)(M$, {
operation: A,
selected: re,
scope: o,
@@ -65642,7 +65667,7 @@ function P$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
});
}
// src/react/index/index-page.tsx
-var FEe = [
+var BEe = [
{
value: "studios",
label: "厂牌",
@@ -65658,7 +65683,7 @@ var FEe = [
label: "系列",
symbol: "list"
}
-], IEe = [{
+], VEe = [{
value: "local",
label: "本地",
symbol: "hard-drive"
@@ -65666,7 +65691,7 @@ var FEe = [
value: "online",
label: "在线",
symbol: "rss"
-}], LEe = [
+}], HEe = [
{
value: "performers",
label: "艺人",
@@ -65682,7 +65707,7 @@ var FEe = [
label: "在线",
symbol: "rss"
}
-], REe = {
+], UEe = {
people: [[
"big",
"大图 · 竖幅头像",
@@ -65711,20 +65736,20 @@ var FEe = [
"layout-grid"
]]
};
-function zEe({ kind: e, layout: t, onChange: n }) {
- return /* @__PURE__ */ (0, I.jsx)(xG, {
- "aria-label": `${AZ[e]}索引版式`,
+function WEe({ kind: e, layout: t, onChange: n }) {
+ return /* @__PURE__ */ (0, I.jsx)(wG, {
+ "aria-label": `${kZ[e]}索引版式`,
orientation: "horizontal",
value: t,
onChange: (e) => n(e),
"data-index-layout": "",
- className: `flex-none ${SG}`,
- children: REe[e === "series" ? "series" : FZ(e) ? "company" : "people"].map(([e, t, n]) => {
- let r = GV(n);
- return /* @__PURE__ */ (0, I.jsx)(jB, {
+ className: `flex-none ${TG}`,
+ children: UEe[e === "series" ? "series" : PZ(e) ? "company" : "people"].map(([e, t, n]) => {
+ let r = qV(n);
+ return /* @__PURE__ */ (0, I.jsx)(NB, {
value: e,
"aria-label": t,
- className: wG,
+ className: DG,
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: t,
className: "contents",
@@ -65734,8 +65759,8 @@ function zEe({ kind: e, layout: t, onChange: n }) {
})
});
}
-function BEe(e) {
- let [t, n] = (0, F.useState)(!1), [r, i] = (0, F.useState)(() => IZ({
+function GEe(e) {
+ let [t, n] = (0, F.useState)(!1), [r, i] = (0, F.useState)(() => FZ({
kind: e.kind,
q: e.q,
scope: e.scope,
@@ -65748,8 +65773,8 @@ function BEe(e) {
e.view,
e.category
]), [o, s] = (0, F.useState)(a);
- a !== o && (s(a), i(IZ(e)));
- let [c, l] = (0, F.useState)(e.layout), [u, d] = (0, F.useState)(/* @__PURE__ */ new Set()), [f, p] = (0, F.useState)("any"), m = (0, F.useRef)(null), { kind: h, q: g, scope: _, view: v, category: y } = r, b = AZ[h], x = h === "tags" && _ === "online", S = h === "performers" && _ === "online";
+ a !== o && (s(a), i(FZ(e)));
+ let [c, l] = (0, F.useState)(e.layout), [u, d] = (0, F.useState)(/* @__PURE__ */ new Set()), [f, p] = (0, F.useState)("any"), m = (0, F.useRef)(null), { kind: h, q: g, scope: _, view: v, category: y } = r, b = kZ[h], x = h === "tags" && _ === "online", S = h === "performers" && _ === "online";
(0, F.useEffect)(() => {
if (r.kind === e.kind && r.scope === e.scope && r.category === e.category) return;
let t = !0;
@@ -65768,7 +65793,7 @@ function BEe(e) {
...t
};
i(o), e.route(o, { replace: a });
- }, { pagination: w, onChange: T } = h$(JSON.stringify(r)), E = BZ(LZ(r), w.pageSize), D = Ft({
+ }, { pagination: w, onChange: T } = m$(JSON.stringify(r)), E = zZ(IZ(r), w.pageSize), D = Ft({
queryKey: h === "tags" && (w.pageIndex || w.pageSize !== 100) ? [
...E.queryKey,
"page",
@@ -65783,16 +65808,16 @@ function BEe(e) {
getNextPageParam: h === "tags" ? () => void 0 : E.getNextPageParam,
enabled: !(t && h === "tags"),
placeholderData: Oe
- }), O = ywe(D.data), k = D.isPending || D.isPlaceholderData, A = !!D.hasNextPage && !D.isPlaceholderData, j = D.data?.pages[0]?.total;
+ }), O = wwe(D.data), k = D.isPending || D.isPlaceholderData, A = !!D.hasNextPage && !D.isPlaceholderData, j = D.data?.pages[0]?.total;
(0, F.useEffect)(() => {
- _m(() => window.location.pathname === `/${h}` && !!m.current?.isConnected, m.current?.querySelector("[data-index-body]"), { pending: k });
+ Sm(() => window.location.pathname === `/${h}` && !!m.current?.isConnected, m.current?.querySelector("[data-index-body]"), { pending: k });
}, [
D.data,
D.isPending,
D.isPlaceholderData,
r
- ]), g$(h === "tags" && !D.isPlaceholderData ? j : void 0, w, T);
- let M = h === "tags" ? D.isPending || D.isError ? "" : `${(j ?? O.length).toLocaleString()} 个标签` : bwe(O.length, !!D.hasNextPage), ee = `${h}:${_}:${g}`, N = (0, F.useRef)(null), te = D.data?.pages[0]?.categories;
+ ]), h$(h === "tags" && !D.isPlaceholderData ? j : void 0, w, T);
+ let M = h === "tags" ? D.isPending || D.isError ? "" : `${(j ?? O.length).toLocaleString()} 个标签` : Twe(O.length, !!D.hasNextPage), ee = `${h}:${_}:${g}`, N = (0, F.useRef)(null), te = D.data?.pages[0]?.categories;
te && !D.isPlaceholderData && (N.current = {
key: ee,
counts: te
@@ -65808,15 +65833,15 @@ function BEe(e) {
O,
h,
x
- ]), ae = (0, F.useMemo)(() => h === "tags" && v === "alphabet" ? HZ(ie, (t) => x ? t : e.tagLabel(t)) : [], [
+ ]), ae = (0, F.useMemo)(() => h === "tags" && v === "alphabet" ? VZ(ie, (t) => x ? t : e.tagLabel(t)) : [], [
ie,
v,
h,
x
]), oe = (t) => {
l(t), e.savePreference({ layout: t });
- }, se = h === "tags" ? /* @__PURE__ */ (0, I.jsx)(yW, {
- tabs: IEe,
+ }, se = h === "tags" ? /* @__PURE__ */ (0, I.jsx)(SW, {
+ tabs: VEe,
value: _,
label: "词表",
onChange: (e) => {
@@ -65826,8 +65851,8 @@ function BEe(e) {
view: e === "online" ? "alphabet" : v
});
}
- }) : FZ(h) || h === "series" ? /* @__PURE__ */ (0, I.jsx)(yW, {
- tabs: FEe,
+ }) : PZ(h) || h === "series" ? /* @__PURE__ */ (0, I.jsx)(SW, {
+ tabs: BEe,
value: h,
label: "资料类型",
onChange: (e) => C({ kind: e })
@@ -65836,7 +65861,7 @@ function BEe(e) {
let n = new Set(e);
return n.delete(t) || n.add(t), n;
}) : ie.find((e) => e.k === t)?.entity_id ? e.openEntity("tag", t) : e.showTags([t], "all");
- }, le = (x ? MZ : jZ).filter(re);
+ }, le = (x ? jZ : AZ).filter(re);
return /* @__PURE__ */ (0, I.jsxs)("div", {
ref: m,
"data-index-page": h,
@@ -65851,10 +65876,10 @@ function BEe(e) {
className: "flex flex-none items-center text-display-4-medium whitespace-nowrap text-text-primary max-board-narrow:text-title-1-medium",
children: b
}),
- PZ(h) ? /* @__PURE__ */ (0, I.jsx)("span", {
+ NZ(h) ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-index-count": "",
className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums max-board-narrow:order-1 max-board-narrow:basis-full",
- children: /* @__PURE__ */ (0, I.jsx)(rR, {
+ children: /* @__PURE__ */ (0, I.jsx)(aR, {
text: k ? void 0 : D.isError ? "" : M,
busy: k,
placeholder: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -65863,18 +65888,18 @@ function BEe(e) {
})
})
}) : null,
- PZ(h) ? /* @__PURE__ */ (0, I.jsx)(zEe, {
+ NZ(h) ? /* @__PURE__ */ (0, I.jsx)(WEe, {
kind: h,
layout: c,
onChange: oe
}) : null,
- /* @__PURE__ */ (0, I.jsx)(oH, { kind: h === "tags" ? "tag" : h === "series" ? "series" : h === "studios" ? "studio" : h === "agencies" ? "agency" : h === "creators" ? "creator" : "performer" }),
- h === "tags" ? /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, I.jsx)(cH, { kind: h === "tags" ? "tag" : h === "series" ? "series" : h === "studios" ? "studio" : h === "agencies" ? "agency" : h === "creators" ? "creator" : "performer" }),
+ h === "tags" ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: t ? "primary" : "ghost",
iconOnly: !0,
className: "flex-none",
"data-tag-mode": "",
- leadingIcon: GV("pencil"),
+ leadingIcon: qV("pencil"),
"aria-label": t ? "返回标签浏览" : "管理标签",
title: t ? "返回标签浏览" : "管理标签",
"aria-pressed": t,
@@ -65882,7 +65907,7 @@ function BEe(e) {
e.exitSelectMode(), d(/* @__PURE__ */ new Set()), n(!t);
}
}) : null,
- /* @__PURE__ */ (0, I.jsx)(m$, {
+ /* @__PURE__ */ (0, I.jsx)(p$, {
label: `过滤${b}`,
value: g,
onQuery: (e) => {
@@ -65891,8 +65916,8 @@ function BEe(e) {
})
]
}),
- h === "performers" || h === "creators" ? /* @__PURE__ */ (0, I.jsx)(yW, {
- tabs: LEe,
+ h === "performers" || h === "creators" ? /* @__PURE__ */ (0, I.jsx)(SW, {
+ tabs: HEe,
value: S ? "online" : h,
label: "人物名册",
onChange: (t) => {
@@ -65904,7 +65929,7 @@ function BEe(e) {
}
}) : null,
se,
- t && h === "tags" ? /* @__PURE__ */ (0, I.jsx)(P$, {
+ t && h === "tags" ? /* @__PURE__ */ (0, I.jsx)(N$, {
scope: _,
search: g,
category: y,
@@ -65918,8 +65943,8 @@ function BEe(e) {
}, _) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
h === "performers" && _ === "local" ? /* @__PURE__ */ (0, I.jsx)("div", {
"aria-label": "身份分类",
- className: kZ,
- children: OZ.filter((e) => e[0] === y || re(e)).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(q, {
+ className: OZ,
+ children: DZ.filter((e) => e[0] === y || re(e)).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(J, {
variant: y === e ? "primary" : "secondary",
size: "small",
"aria-pressed": y === e,
@@ -65927,7 +65952,7 @@ function BEe(e) {
children: t
}, e))
}) : null,
- h === "tags" ? /* @__PURE__ */ (0, I.jsx)(S$, {
+ h === "tags" ? /* @__PURE__ */ (0, I.jsx)(x$, {
categories: le,
category: y,
online: x,
@@ -65943,7 +65968,7 @@ function BEe(e) {
}) : null,
/* @__PURE__ */ (0, I.jsx)("div", {
"data-index-body": "",
- children: /* @__PURE__ */ (0, I.jsx)(_K, {
+ children: /* @__PURE__ */ (0, I.jsx)(gK, {
pending: k,
skeletonHtml: () => h === "tags" ? $s({
mode: v,
@@ -65955,17 +65980,17 @@ function BEe(e) {
}),
children: (() => {
if (k) return null;
- if (D.isError) return /* @__PURE__ */ (0, I.jsx)(UV, {
- icon: GV("alert"),
+ if (D.isError) return /* @__PURE__ */ (0, I.jsx)(GV, {
+ icon: qV("alert"),
title: `没能读取${b}`,
- actions: /* @__PURE__ */ (0, I.jsx)(q, {
+ actions: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
onClick: () => void D.refetch(),
children: "立即重试"
}),
children: yn(D.error)
});
- if (!O.length) return /* @__PURE__ */ (0, I.jsx)(HEe, {
+ if (!O.length) return /* @__PURE__ */ (0, I.jsx)(qEe, {
kind: h,
filtered: !!g || y !== "all",
online: x || S,
@@ -65974,12 +65999,12 @@ function BEe(e) {
category: "all"
})
});
- if (S) return /* @__PURE__ */ (0, I.jsx)(Twe, {
+ if (S) return /* @__PURE__ */ (0, I.jsx)(Awe, {
items: O,
layout: c,
props: e
});
- if (PZ(h)) return /* @__PURE__ */ (0, I.jsx)(GZ, {
+ if (NZ(h)) return /* @__PURE__ */ (0, I.jsx)(WZ, {
kind: h,
items: O,
layout: c,
@@ -65990,10 +66015,10 @@ function BEe(e) {
picked: u,
press: ce
};
- return v === "alphabet" ? /* @__PURE__ */ (0, I.jsx)(b$, {
+ return v === "alphabet" ? /* @__PURE__ */ (0, I.jsx)(y$, {
groups: ae,
actions: t
- }) : /* @__PURE__ */ (0, I.jsx)(x$, {
+ }) : /* @__PURE__ */ (0, I.jsx)(b$, {
tags: ie,
actions: t
});
@@ -66002,7 +66027,7 @@ function BEe(e) {
}),
h === "tags" && !k && !D.isError ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "mt-5",
- children: /* @__PURE__ */ (0, I.jsx)(AY, {
+ children: /* @__PURE__ */ (0, I.jsx)(kY, {
label: "标签",
total: j ?? O.length,
pagination: w,
@@ -66014,7 +66039,7 @@ function BEe(e) {
}) : null,
A ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "mt-5 flex justify-center",
- children: /* @__PURE__ */ (0, I.jsxs)(q, {
+ children: /* @__PURE__ */ (0, I.jsxs)(J, {
variant: "secondary",
"data-index-more": "",
className: "min-w-31",
@@ -66027,7 +66052,7 @@ function BEe(e) {
}) : null, "载入更多"]
})
}) : null,
- h === "tags" && !x && e.selectMode ? /* @__PURE__ */ (0, I.jsx)(MEe, {
+ h === "tags" && !x && e.selectMode ? /* @__PURE__ */ (0, I.jsx)(LEe, {
count: u.size,
match: f,
onMatch: p,
@@ -66041,7 +66066,7 @@ function BEe(e) {
]
});
}
-var VEe = {
+var KEe = {
tags: "标签",
performers: "艺人",
creators: "卖家",
@@ -66049,27 +66074,27 @@ var VEe = {
agencies: "事务所",
series: "系列"
};
-function HEe({ kind: e, filtered: t, online: n, onClear: r }) {
- if (t) return /* @__PURE__ */ (0, I.jsx)(UV, {
- icon: GV("search"),
+function qEe({ kind: e, filtered: t, online: n, onClear: r }) {
+ if (t) return /* @__PURE__ */ (0, I.jsx)(GV, {
+ icon: qV("search"),
title: "没有符合条件的内容",
- actions: /* @__PURE__ */ (0, I.jsx)(q, {
+ actions: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
onClick: r,
children: "清除筛选"
}),
children: "清除筛选或搜索条件后查看全部内容。"
});
- let i = n && e === "performers" ? "创作者" : VEe[e], a = /* @__PURE__ */ (0, I.jsx)(_R, {
+ let i = n && e === "performers" ? "创作者" : KEe[e], a = /* @__PURE__ */ (0, I.jsx)(yR, {
size: "small",
variant: n ? "primary" : "secondary",
href: "/subscriptions?tab=add",
children: "添加关注"
});
- return /* @__PURE__ */ (0, I.jsx)(UV, {
- icon: GV(e === "tags" ? "tags" : "user-round"),
+ return /* @__PURE__ */ (0, I.jsx)(GV, {
+ icon: qV(e === "tags" ? "tags" : "user-round"),
title: `还没有${i}`,
- actions: n ? a : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(_R, {
+ actions: n ? a : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(yR, {
size: "small",
href: "/settings/library",
children: "添加媒体"
@@ -66077,15 +66102,15 @@ function HEe({ kind: e, filtered: t, online: n, onClear: r }) {
children: n ? `添加关注来源并获取内容后,这里会显示来源上的${i}。` : "添加内容并补充资料后,这里会显示对应信息。"
});
}
-var F$ = {
+var P$ = {
video: ["视频", "play"],
image: ["图片", "pics"],
archive: ["压缩包", "file-archive"],
audio: ["音频", "file-audio"],
url: ["网址快捷方式", "globe"],
other: ["其它文件", "hard-drive"]
-}, UEe = (e) => F$[e.junk_kind || "other"] || F$.other;
-function WEe(e) {
+}, JEe = (e) => P$[e.junk_kind || "other"] || P$.other;
+function YEe(e) {
return e === "dismissed" ? {
operation: "reconsider-junk",
label: "重新判断",
@@ -66096,40 +66121,40 @@ function WEe(e) {
glyph: "check"
};
}
-var I$ = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), GEe = (e, t) => [
+var F$ = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), XEe = (e, t) => [
"junk-queue",
e.view,
e.kind,
t
];
-function KEe({ kind: e, view: t }) {
+function ZEe({ kind: e, view: t }) {
let n = new URLSearchParams({
limit: "200",
status: t
});
return e && n.set("kind", e), n.toString();
}
-async function qEe(e, t) {
- let n = await V(`/api/ads?${KEe(e)}`, t);
+async function QEe(e, t) {
+ let n = await V(`/api/ads?${ZEe(e)}`, t);
return {
...n,
items: n.items || []
};
}
// src/react/junk-queue/junk-card.tsx
-function L$({ name: e }) {
+function I$({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-var R$ = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
-function JEe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {
- let o = (0, F.useRef)(null), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), d = e.junk_kind || "other", [f, p] = UEe(e), m = String(e.name || ""), h = WEe(t), g = d === "video" ? `/thumb?id=${e.id}&c=4` : d === "image" ? `/photo-thumb?id=${e.id}` : "", _ = d === "video" || d === "image", v = (t) => {
- t.target.closest("[data-junk-actions]") || R$(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
+var L$ = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
+function $Ee({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {
+ let o = (0, F.useRef)(null), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), d = e.junk_kind || "other", [f, p] = JEe(e), m = String(e.name || ""), h = YEe(t), g = d === "video" ? `/thumb?id=${e.id}&c=4` : d === "image" ? `/photo-thumb?id=${e.id}` : "", _ = d === "video" || d === "image", v = (t) => {
+ t.target.closest("[data-junk-actions]") || L$(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
}, y = (t) => {
- t.stopPropagation(), R$(r, t) ? (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey)) : o.current && a.open(e, o.current);
+ t.stopPropagation(), L$(r, t) ? (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey)) : o.current && a.open(e, o.current);
}, b = (t) => {
t.preventDefault(), t.stopPropagation(), s !== "reveal" && (c("reveal"), u(""), a.reveal(e).then(u, () => {}).finally(() => c("")));
}, x = (t) => (n) => {
@@ -66160,7 +66185,7 @@ function JEe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"data-junk-kind": d,
"data-selected": n ? "" : void 0,
onClick: v,
- onMouseDown: MK,
+ onMouseDown: jK,
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-pic": "",
@@ -66168,7 +66193,7 @@ function JEe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
children: [
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, I.jsx)(L$, { name: p }), /* @__PURE__ */ (0, I.jsx)("b", { children: f })]
+ children: [/* @__PURE__ */ (0, I.jsx)(I$, { name: p }), /* @__PURE__ */ (0, I.jsx)("b", { children: f })]
}),
g ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-art": "thumb",
@@ -66180,7 +66205,7 @@ function JEe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
}),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, I.jsx)(L$, { name: "check" })
+ children: /* @__PURE__ */ (0, I.jsx)(I$, { name: "check" })
})
]
}),
@@ -66217,7 +66242,7 @@ function JEe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
children: [s === "reveal" ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-junk-spinner": "",
dangerouslySetInnerHTML: { __html: Rs("正在定位") }
- }) : /* @__PURE__ */ (0, I.jsx)(L$, { name: "folder-open" }), /* @__PURE__ */ (0, I.jsx)("span", {
+ }) : /* @__PURE__ */ (0, I.jsx)(I$, { name: "folder-open" }), /* @__PURE__ */ (0, I.jsx)("span", {
"data-junk-label": "",
children: "打开位置"
})]
@@ -66229,7 +66254,7 @@ function JEe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"aria-label": h.label,
...S(h.operation),
onClick: x(h.operation),
- children: [/* @__PURE__ */ (0, I.jsx)(L$, { name: h.glyph }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(I$, { name: h.glyph }), /* @__PURE__ */ (0, I.jsx)("span", {
"data-junk-label": "",
children: h.label
})]
@@ -66241,7 +66266,7 @@ function JEe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"aria-label": "移入回收站",
...S("dispose"),
onClick: x("dispose"),
- children: [/* @__PURE__ */ (0, I.jsx)(L$, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(I$, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("span", {
"data-junk-label": "",
children: "移入回收站"
})]
@@ -66256,9 +66281,9 @@ function JEe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
]
});
}
-var YEe = (0, F.memo)(JEe);
+var eDe = (0, F.memo)($Ee);
// src/react/components/collection-summary.tsx
-function z$({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
+function R$({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-collection-summary": "",
className: `${i ? "" : "mb-5 "}flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5
@@ -66284,31 +66309,31 @@ function z$({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !
});
}
// src/react/junk-queue/junk-count.tsx
-function B$({ name: e }) {
+function z$({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function V$({ scope: e, count: t }) {
+function B$({ scope: e, count: t }) {
return t ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [" ", /* @__PURE__ */ (0, I.jsx)("span", {
"data-count-badge": `junk:${e}`,
children: t.toLocaleString()
})] }) : null;
}
-function XEe({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = vH(), a = (0, F.useRef)(null), { kind: o, view: s } = e, c = hR(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? BU.map(([e]) => I$(t, e)).join(",") : ""}`), l = UU(s), u = (e) => {
+function tDe({ route: e, page: t, failed: n, onNavigate: r }) {
+ let i = bH(), a = (0, F.useRef)(null), { kind: o, view: s } = e, c = _R(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? HU.map(([e]) => F$(t, e)).join(",") : ""}`), l = GU(s), u = (e) => {
let t = e.target.closest("a");
- !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || HU()));
+ !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || WU()));
}, d = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-junk-count": "",
children: [/* @__PURE__ */ (0, I.jsx)("div", {
"data-junk-summary": "",
"aria-live": "polite",
- children: /* @__PURE__ */ (0, I.jsx)(z$, {
- label: WU(s),
+ children: /* @__PURE__ */ (0, I.jsx)(R$, {
+ label: KU(s),
figure: d,
pending: !t && !n,
flush: !0
@@ -66328,17 +66353,17 @@ function XEe({ route: e, page: t, failed: n, onNavigate: r }) {
onClick: u,
onPointerLeave: c.leave,
children: [
- BU.map(([e, n, r]) => /* @__PURE__ */ (0, I.jsxs)("a", {
- href: HU(e, s),
+ HU.map(([e, n, r]) => /* @__PURE__ */ (0, I.jsxs)("a", {
+ href: WU(e, s),
"data-junk-kind-link": e,
"aria-current": e === o ? "page" : void 0,
onPointerEnter: c.hover,
children: [
- /* @__PURE__ */ (0, I.jsx)(B$, { name: r }),
+ /* @__PURE__ */ (0, I.jsx)(z$, { name: r }),
n,
- /* @__PURE__ */ (0, I.jsx)(V$, {
+ /* @__PURE__ */ (0, I.jsx)(B$, {
scope: e,
- count: t ? I$(t, e) : 0
+ count: t ? F$(t, e) : 0
})
]
}, e || "all")),
@@ -66352,9 +66377,9 @@ function XEe({ route: e, page: t, failed: n, onNavigate: r }) {
"aria-current": s === "dismissed" ? "page" : void 0,
onPointerEnter: s === "dismissed" ? void 0 : c.hover,
children: [
- /* @__PURE__ */ (0, I.jsx)(B$, { name: l.glyph }),
+ /* @__PURE__ */ (0, I.jsx)(z$, { name: l.glyph }),
l.label,
- /* @__PURE__ */ (0, I.jsx)(V$, {
+ /* @__PURE__ */ (0, I.jsx)(B$, {
scope: "dismissed",
count: Number(t?.dismissed_total || 0)
})
@@ -66366,33 +66391,33 @@ function XEe({ route: e, page: t, failed: n, onNavigate: r }) {
});
}
// src/react/junk-queue/junk-queue-page.tsx
-var ZEe = GV("check"), QEe = (e, t) => e[1] === t.view && e[2] === t.kind;
-function $Ee(e) {
+var nDe = qV("check"), rDe = (e, t) => e[1] === t.view && e[2] === t.kind;
+function iDe(e) {
let t = {
kind: e.kind,
view: e.view
}, n = Nt({
- queryKey: GEe(t, e.revision),
- queryFn: ({ signal: e }) => qEe(t, e),
- placeholderData: (e, n) => n && QEe(n.queryKey, t) ? e : void 0
+ queryKey: XEe(t, e.revision),
+ queryFn: ({ signal: e }) => QEe(t, e),
+ placeholderData: (e, n) => n && rDe(n.queryKey, t) ? e : void 0
});
(0, F.useEffect)(() => {
n.isFetching || e.settled?.(e.revision);
}, [n.isFetching, e.revision]);
- let r = eDe(e.countRow), i = n.isPending;
+ let r = aDe(e.countRow), i = n.isPending;
(0, F.useLayoutEffect)(() => {
let t = e.countRow;
t && (i ? t.setAttribute("aria-busy", "true") : t.removeAttribute("aria-busy"));
}, [e.countRow, i]), (0, F.useLayoutEffect)(() => {
r && n.data && Xs(r, "junk");
}, [r, n.data]);
- let { navigate: a } = e.actions, o = r ? (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(XEe, {
+ let { navigate: a } = e.actions, o = r ? (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(tDe, {
route: t,
page: n.data,
failed: n.isError && !n.data,
onNavigate: a
}), r) : null;
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [o, /* @__PURE__ */ (0, I.jsx)(tDe, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [o, /* @__PURE__ */ (0, I.jsx)(oDe, {
props: e,
data: n.data,
pending: i,
@@ -66400,7 +66425,7 @@ function $Ee(e) {
retry: () => void n.refetch()
}, `${t.view}:${t.kind}`)] });
}
-function eDe(e) {
+function aDe(e) {
let [t, n] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
if (!e) return;
@@ -66410,8 +66435,8 @@ function eDe(e) {
};
}, [e]), t;
}
-function tDe({ props: e, data: t, pending: n, error: r, retry: i }) {
- let a = pve(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, F.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, F.useCallback)(() => {
+function oDe({ props: e, data: t, pending: n, error: r, retry: i }) {
+ let a = vve(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, F.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, F.useCallback)(() => {
d?.() !== !1 && c((e) => e + 1);
}, [d]);
return /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -66419,16 +66444,16 @@ function tDe({ props: e, data: t, pending: n, error: r, retry: i }) {
"data-grid-reveal": a.fading ? "" : void 0,
children: [a.layer, (() => {
if (n) return null;
- if (!t) return /* @__PURE__ */ (0, I.jsx)(gK, {
+ if (!t) return /* @__PURE__ */ (0, I.jsx)(hK, {
message: yn(r),
onRetry: i
});
if (!l.length) {
let t = e.view === "dismissed";
- return /* @__PURE__ */ (0, I.jsx)(UV, {
- icon: ZEe,
+ return /* @__PURE__ */ (0, I.jsx)(GV, {
+ icon: nDe,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
- actions: t ? /* @__PURE__ */ (0, I.jsx)(_R, {
+ actions: t ? /* @__PURE__ */ (0, I.jsx)(yR, {
size: "small",
href: "/junk-files",
children: "查看待判断"
@@ -66441,7 +66466,7 @@ function tDe({ props: e, data: t, pending: n, error: r, retry: i }) {
"data-media-grid": "",
"data-junk-grid": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: u.map((t) => /* @__PURE__ */ (0, I.jsx)(YEe, {
+ children: u.map((t) => /* @__PURE__ */ (0, I.jsx)(eDe, {
item: t,
view: e.view,
selected: e.selected.has(t.id),
@@ -66450,7 +66475,7 @@ function tDe({ props: e, data: t, pending: n, error: r, retry: i }) {
actions: e.actions
}, t.id))
}),
- u.length < l.length ? /* @__PURE__ */ (0, I.jsx)(nDe, { onMore: f }, s) : null,
+ u.length < l.length ? /* @__PURE__ */ (0, I.jsx)(sDe, { onMore: f }, s) : null,
u.length >= l.length && Number(t.total || 0) > l.length ? /* @__PURE__ */ (0, I.jsx)("p", {
"data-junk-truncated": "",
className: "py-6 text-center text-caption-1-regular text-text-secondary",
@@ -66460,14 +66485,14 @@ function tDe({ props: e, data: t, pending: n, error: r, retry: i }) {
})()]
});
}
-function nDe({ onMore: e }) {
+function sDe({ onMore: e }) {
let t = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
let n = t.current;
if (!n || typeof IntersectionObserver > "u") return;
let r = new IntersectionObserver((t) => {
t.some((e) => e.isIntersecting) && e();
- }, { rootMargin: hK });
+ }, { rootMargin: mK });
return r.observe(n), () => r.disconnect();
}, [e]), /* @__PURE__ */ (0, I.jsx)("div", {
ref: t,
@@ -66477,68 +66502,68 @@ function nDe({ onMore: e }) {
});
}
// src/react/components/fieldset-layout.ts
-var H$ = aU({
+var V$ = sU({
padding: "none",
bordered: "line",
className: "overflow-hidden"
-}), U$ = {
+}), H$ = {
split: "min-w-0 p-6",
stack: "flex min-h-30 min-w-0 flex-1 flex-col px-5 pt-5 pb-4 max-cleanup-tight:min-h-0 max-cleanup-tight:p-4.5"
-}, W$ = {
+}, U$ = {
split: "flex flex-wrap items-center justify-end gap-2 self-stretch p-6 max-[1001px]:justify-start max-[1001px]:pt-0",
stack: "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t border-border-button-default bg-card-footer px-5 py-3 max-cleanup-tight:px-4.5"
};
-function G$(e) {
- return `${H$} ${e === "split" ? "fieldset-split" : "flex flex-col"}`;
+function W$(e) {
+ return `${V$} ${e === "split" ? "fieldset-split" : "flex flex-col"}`;
}
// src/management.ts
-var K$ = "发现新文件,补全新增及未完成影片的资料和预览。需要检查全部影片时,使用全库维护。", q$ = "部分视频文件可能播放卡顿、打不开,修复缺时间戳表和缺索引的问题。", J$ = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", Y$ = "disabled data-skeleton-action", rDe = "aria-disabled=\"true\"", X$ = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, Z$ = (e, t, n) => `<div class="${U$[n]}"><div class="flex flex-col gap-2">
+var G$ = "发现新文件,补全新增及未完成影片的资料和预览。需要检查全部影片时,使用全库维护。", K$ = "部分视频文件可能播放卡顿、打不开,修复缺时间戳表和缺索引的问题。", q$ = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", J$ = "disabled data-skeleton-action", cDe = "aria-disabled=\"true\"", Y$ = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, X$ = (e, t, n) => `<div class="${H$[n]}"><div class="flex flex-col gap-2">
<h3 class="text-title-2-medium text-text-primary">${e}</h3>
<p class="text-body-2-regular text-text-secondary">${t}</p></div></div>`;
-function iDe() {
- return X$(`<section aria-label="扫描与采集" class="${G$("stack")}" data-cleanup-task data-cleanup-processing>
- ${Z$("扫描与采集", K$, "stack")}
- <footer class="${W$.stack}"><a href="/sources" class="inline-flex items-center justify-center gap-1 whitespace-nowrap font-sans rounded-sm text-body-medium text-accent-600"><span>来源和凭证</span>${Cs("arrow-up", "size-(--icon-inline) shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${Es({
+function lDe() {
+ return Y$(`<section aria-label="扫描与采集" class="${W$("stack")}" data-cleanup-task data-cleanup-processing>
+ ${X$("扫描与采集", G$, "stack")}
+ <footer class="${U$.stack}"><a href="/sources" class="inline-flex items-center justify-center gap-1 whitespace-nowrap font-sans rounded-sm text-body-medium text-accent-600"><span>来源和凭证</span>${Cs("arrow-up", "size-(--icon-inline) shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${Es({
label: "同步新增文件",
- attrs: Y$
+ attrs: J$
})}${Es({
glyph: "chevron-down",
- attrs: `${Y$} aria-label="更多同步方式"`
+ attrs: `${J$} aria-label="更多同步方式"`
})}</span></footer>
</section>`);
}
-function aDe() {
- return X$(`<section aria-label="媒体修复" class="${G$("split")}" data-cleanup-task data-cleanup-processing>
- ${Z$("媒体修复", q$, "split")}
- <footer class="${W$.split}">${Os(J$, {
+function uDe() {
+ return Y$(`<section aria-label="媒体修复" class="${W$("split")}" data-cleanup-task data-cleanup-processing>
+ ${X$("媒体修复", K$, "split")}
+ <footer class="${U$.split}">${Os(q$, {
className: "w-48",
- attrs: rDe
+ attrs: cDe
})}${Es({
label: "开始修复",
- attrs: Y$
+ attrs: J$
})}</footer>
</section>`);
}
-function Q$() {
+function Z$() {
let e = [
["人工复核", "square-check-big"],
["高清版", "sparkles"],
["重复文件", "file-stack"],
["垃圾文件", "file-archive"],
["回收站", "trash"]
- ], t = H$, n = U$.stack, r = (e, t = "mb-2") => `<h3 class="text-title-2-medium text-text-primary ${t}">${e}</h3>`, i = (e) => `<footer class="${W$.stack}">${Es({
+ ], t = V$, n = H$.stack, r = (e, t = "mb-2") => `<h3 class="text-title-2-medium text-text-primary ${t}">${e}</h3>`, i = (e) => `<footer class="${U$.stack}">${Es({
label: e,
- attrs: Y$
+ attrs: J$
})}</footer>`, a = (e) => `<div class="flex flex-col gap-1.5"><span class="text-body-medium text-text-primary">${e}</span><span class="skeleton ui-configuration-skeleton-input"></span></div>`;
return `<div class="peach-react" data-skeleton="cleanup" aria-busy="true" role="status" aria-label="正在读取数据管理状态"><div aria-hidden="true" inert class="mx-auto flex w-full max-w-board flex-col gap-8">
- <div class="inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1">${e.map(([e, t]) => `<div class="min-w-0 bg-background-secondary-default rounded-2xl flex min-h-33 flex-col gap-2 p-4 text-left"><span class="flex min-w-0 items-center gap-2 text-body-medium text-text-secondary"><i class="flex size-8 shrink-0 items-center justify-center rounded-md bg-background-primary-default text-text-primary">${Cs(t, "size-4")}</i>${e}</span><strong class="text-title-1-medium">${J$}</strong><span class="text-caption-1-regular">${J$}</span></div>`).join("")}</div>
+ <div class="inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1">${e.map(([e, t]) => `<div class="min-w-0 bg-background-secondary-default rounded-2xl flex min-h-33 flex-col gap-2 p-4 text-left"><span class="flex min-w-0 items-center gap-2 text-body-medium text-text-secondary"><i class="flex size-8 shrink-0 items-center justify-center rounded-md bg-background-primary-default text-text-primary">${Cs(t, "size-4")}</i>${e}</span><strong class="text-title-1-medium">${q$}</strong><span class="text-caption-1-regular">${q$}</span></div>`).join("")}</div>
<div class="flex flex-col gap-4 max-cleanup-tight:gap-3">
- <div id="libraryProcessing">${iDe()}</div><div id="mediaRepair">${aDe()}</div>
+ <div id="libraryProcessing">${lDe()}</div><div id="mediaRepair">${uDe()}</div>
<section id="organize" class="${t} flex flex-col" data-cleanup-organize><div class="${n}">${r("整理", "mb-3")}<p class="text-body-regular text-text-secondary">清理文件名中的特殊符号与乱码,也可按模板改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。</p>
- <div class="mt-3 flex flex-col gap-3"><div class="flex min-w-0 flex-wrap items-start gap-2">${Os(J$)}<span class="skeleton ui-configuration-skeleton-input min-w-0 basis-64 flex-1"></span></div><p class="text-caption-1-regular text-text-secondary">指定路径时包含子目录,目录模板以该路径为起点。模板均留空时只清理文件名。</p>${a("文件名模板")}${a("目录模板")}<div class="flex flex-wrap gap-2">${Array.from({ length: 3 }, () => Es({
+ <div class="mt-3 flex flex-col gap-3"><div class="flex min-w-0 flex-wrap items-start gap-2">${Os(q$)}<span class="skeleton ui-configuration-skeleton-input min-w-0 basis-64 flex-1"></span></div><p class="text-caption-1-regular text-text-secondary">指定路径时包含子目录,目录模板以该路径为起点。模板均留空时只清理文件名。</p>${a("文件名模板")}${a("目录模板")}<div class="flex flex-wrap gap-2">${Array.from({ length: 3 }, () => Es({
variant: "secondary",
- label: J$,
- attrs: Y$
+ label: q$,
+ attrs: J$
})).join("")}</div></div></div>${i("预览")}</section>
</div>
<section id="link-manager" class="flex scroll-mt-20 flex-col gap-4"><div class="${t} flex flex-col"><div class="${n}">${r("链接管理")}<div class="link-stat-grid mt-4 gap-x-8 gap-y-3">${[
@@ -66546,57 +66571,57 @@ function Q$() {
"官网/事务所",
"社交账号",
"作品资料站"
- ].map((e) => `<div class="flex min-w-0 flex-col gap-0.5"><span class="text-caption-1-regular text-text-secondary">${e}</span><b class="text-title-2-semibold">${J$}</b></div>`).join("")}</div><div class="mt-4 flex flex-col gap-0.5"><span class="text-caption-1-regular text-text-secondary">主要站点</span>${J$}</div></div>${i("检查死链")}</div></section>
+ ].map((e) => `<div class="flex min-w-0 flex-col gap-0.5"><span class="text-caption-1-regular text-text-secondary">${e}</span><b class="text-title-2-semibold">${q$}</b></div>`).join("")}</div><div class="mt-4 flex flex-col gap-0.5"><span class="text-caption-1-regular text-text-secondary">主要站点</span>${q$}</div></div>${i("检查死链")}</div></section>
</div></div>`;
}
// src/react/components/fieldset.tsx
-var oDe = aU({
+var dDe = sU({
padding: "none",
radius: "surface",
bordered: "line",
className: "overflow-hidden"
-}), sDe = "border-t border-border-button-default p-4 first:border-t-0";
-function $$({ id: e, gap: t = "none", children: n }) {
+}), fDe = "border-t border-border-button-default p-4 first:border-t-0";
+function Q$({ id: e, gap: t = "none", children: n }) {
return /* @__PURE__ */ (0, I.jsx)("h3", {
id: e,
className: `text-title-2-medium text-text-primary ${t === "medium" ? "mb-3" : t === "small" ? "mb-2" : ""}`,
children: n
});
}
-function e1({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
+function $$({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
return /* @__PURE__ */ (0, I.jsxs)("section", {
id: r,
"aria-label": t,
"aria-labelledby": n,
...o,
- className: G$(e),
+ className: W$(e),
children: [/* @__PURE__ */ (0, I.jsx)("div", {
- className: U$[e],
+ className: H$[e],
children: a
}), i ? /* @__PURE__ */ (0, I.jsx)("footer", {
- className: W$[e],
+ className: U$[e],
children: i
}) : null]
});
}
// src/react/components/status-label.tsx
-var cDe = {
+var pDe = {
success: "lime",
progress: "blue",
warning: "yellow",
error: "rose",
neutral: "neutral"
};
-function t1({ tone: e = "neutral", ...t }) {
- return /* @__PURE__ */ (0, I.jsx)(XU, {
+function e1({ tone: e = "neutral", ...t }) {
+ return /* @__PURE__ */ (0, I.jsx)(QU, {
"data-status-tone": e,
variant: "caption",
- color: cDe[e],
+ color: pDe[e],
...t
});
}
// src/react/components/path-line.tsx
-function lDe({ className: e }) {
+function mDe({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -66609,8 +66634,8 @@ function lDe({ className: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-folder-open" })
});
}
-var uDe = "打开文件管理器失败,请重试";
-function n1({ path: e, prefix: t, className: n, onRevealed: r }) {
+var hDe = "打开文件管理器失败,请重试";
+function t1({ path: e, prefix: t, className: n, onRevealed: r }) {
let [i, a] = (0, F.useState)(!1), [o, s] = (0, F.useState)(""), c = (0, F.useRef)(!0);
(0, F.useEffect)(() => () => {
c.current = !1;
@@ -66621,7 +66646,7 @@ function n1({ path: e, prefix: t, className: n, onRevealed: r }) {
try {
await H("/api/reveal", { path: e }), r?.("已在资源管理器中显示");
} catch (e) {
- c.current && s(e instanceof ar ? e.message : uDe);
+ c.current && s(e instanceof ar ? e.message : hDe);
} finally {
c.current && a(!1);
}
@@ -66632,15 +66657,15 @@ function n1({ path: e, prefix: t, className: n, onRevealed: r }) {
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, I.jsxs)("p", {
- className: jL("min-w-0 break-all", n),
+ className: NL("min-w-0 break-all", n),
children: [t, e]
- }), /* @__PURE__ */ (0, I.jsx)(aR, {
- icon: lDe,
+ }), /* @__PURE__ */ (0, I.jsx)(sR, {
+ icon: mDe,
size: "small",
className: "shrink-0",
"aria-label": "在资源管理器中显示",
onClick: () => void l(),
- ...qV(i)
+ ...YV(i)
})]
}), o ? /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-caption-1-regular text-text-error-primary",
@@ -66649,7 +66674,7 @@ function n1({ path: e, prefix: t, className: n, onRevealed: r }) {
});
}
// src/react/library-processing/issue-export.ts
-async function dDe(e, t) {
+async function gDe(e, t) {
if (!e.job_id) throw Error("请先选择有问题记录的任务");
let n = [], r = 1, i = "";
for (let a = 0; a < r; a += 200) {
@@ -66672,43 +66697,43 @@ async function dDe(e, t) {
rows: n
}, null, 2);
}
-function fDe(e, t) {
+function _De(e, t) {
let n = URL.createObjectURL(new Blob([t], { type: "application/json;charset=utf-8" })), r = document.createElement("a");
r.href = n, r.download = `peach-issues-${e}.json`, r.click(), URL.revokeObjectURL(n);
}
// src/react/library-processing/library-processing-card.tsx
-var pDe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", mDe = (e) => {
+var vDe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", yDe = (e) => {
let t = e.performer_aliases || 0, n = e.performer_avatars || 0, r = e.performer_profile_conflicts || 0, i = e.performer_profile_failed || 0;
if (!t && !n && !r && !i) return "";
let a = [`补齐女优资料:别名 ${t} 个,头像 ${n} 张`];
return r && a.push(`${r} 项同名人物资料需要确认是否为同一人`), i && a.push(`${i} 张头像未取得`), `${a.join(",")}。`;
-}, hDe = (e) => e.requested_stage === "previews" ? `已生成 ${e.previews || 0} 部视频预览。` : `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,取得 ${e.candidates || 0} 组作品资料,自动保存 ${e.auto_applied || 0} 条。` + (e.previews ? `已生成 ${e.previews} 部视频预览。` : "") + mDe(e);
-function gDe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = Mge(e), o = qH(), s = qH(), c = e.status === "failed" && !!e.retryable_asset_ids?.length, l = kge(e.notes || {}), u = !!t || !e.archived && e.status === "failed", d = !t && !e.archived && PH(e), f = u && !!a?.log, p = jH(e), m = vH();
+}, bDe = (e) => e.requested_stage === "previews" ? `已生成 ${e.previews || 0} 部视频预览。` : `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,取得 ${e.candidates || 0} 组作品资料,自动保存 ${e.auto_applied || 0} 条。` + (e.previews ? `已生成 ${e.previews} 部视频预览。` : "") + yDe(e);
+function xDe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
+ let a = Pge(e), o = YH(), s = YH(), c = e.status === "failed" && !!e.retryable_asset_ids?.length, l = jge(e.notes || {}), u = !!t || !e.archived && e.status === "failed", d = !t && !e.archived && IH(e), f = u && !!a?.log, p = NH(e), m = bH();
return /* @__PURE__ */ (0, I.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
children: [
- p ? /* @__PURE__ */ (0, I.jsx)(Fge, {
+ p ? /* @__PURE__ */ (0, I.jsx)(Lge, {
state: e,
slow: p
- }) : e.status === "running" && e.stalled ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ }) : e.status === "running" && e.stalled ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "warning",
title: "处理较慢",
- children: pDe
+ children: vDe
}) : null,
- u ? /* @__PURE__ */ (0, I.jsxs)(HV, {
+ u ? /* @__PURE__ */ (0, I.jsxs)(WV, {
tone: d ? "warning" : "error",
className: "gap-0 p-3",
title: d ? "处理已结束,部分项目需处理" : "处理未完成",
action: /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [d ? /* @__PURE__ */ (0, I.jsx)(KH, {
- href: IH,
+ children: [d ? /* @__PURE__ */ (0, I.jsx)(JH, {
+ href: RH,
size: "small",
- trailingIcon: _V,
+ trailingIcon: yV,
children: "查看全部内容"
- }) : null, c ? /* @__PURE__ */ (0, I.jsx)(q, {
+ }) : null, c ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
"aria-label": "立即重试未完成项",
@@ -66718,7 +66743,7 @@ function gDe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}),
extra: a ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "mt-3 border-t border-current/20 pt-3",
- children: /* @__PURE__ */ (0, I.jsxs)(vU, {
+ children: /* @__PURE__ */ (0, I.jsxs)(bU, {
summary: a.label,
contentClassName: "gap-0",
children: [/* @__PURE__ */ (0, I.jsx)("div", {
@@ -66750,7 +66775,7 @@ function gDe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
})
}), a.log ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "mt-3 border-t border-current/20 pt-3 text-text-secondary",
- children: /* @__PURE__ */ (0, I.jsx)(n1, {
+ children: /* @__PURE__ */ (0, I.jsx)(t1, {
path: a.log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -66759,55 +66784,55 @@ function gDe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}) : null]
})
}) : null,
- children: [t || e.error || "处理未完成,请重试", d ? `\n${FH}` : null]
+ children: [t || e.error || "处理未完成,请重试", d ? `\n${LH}` : null]
}) : null,
- n?.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ n?.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "success",
title: "处理完成",
- children: hDe(n)
+ children: bDe(n)
}) : null,
- n?.status === "cancelled" ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ n?.status === "cancelled" ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "neutral",
title: "任务已停止",
children: "已取得的资料和预览已保留,不会自动继续这趟任务。"
}) : null,
- e.archived ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ e.archived ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "neutral",
children: "上一趟的问题提示已归档,历史记录仍保留。"
}) : null,
- !NH(e) && (e.issue_count || e.status === "failed") ? /* @__PURE__ */ (0, I.jsxs)("div", {
+ !FH(e) && (e.issue_count || e.status === "failed") ? /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [e.issue_count ? /* @__PURE__ */ (0, I.jsx)(q, {
+ children: [e.issue_count ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...qV(!!o.busy),
- onClick: () => void o.run("export", (t) => dDe(e, t), (t) => {
- fDe(e.job_id, t), i("已导出问题清单");
+ ...YV(!!o.busy),
+ onClick: () => void o.run("export", (t) => gDe(e, t), (t) => {
+ _De(e.job_id, t), i("已导出问题清单");
}),
children: "导出完整问题清单"
- }) : null, e.archived ? null : /* @__PURE__ */ (0, I.jsx)(q, {
+ }) : null, e.archived ? null : /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...qV(!!s.busy),
- onClick: () => void s.run("archive", (t) => H(kH, {
+ ...YV(!!s.busy),
+ onClick: () => void s.run("archive", (t) => H(jH, {
action: "archive",
job_id: e.job_id
}, "POST", t), (e) => {
- U.setQueryData(AH, e), i("已归档问题提示");
+ U.setQueryData(MH, e), i("已归档问题提示");
}),
children: "归档提示"
})]
}) : null,
- o.error || s.error ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ o.error || s.error ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "warning",
children: o.error || s.error
}) : null,
- !NH(e) && l ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ !FH(e) && l ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "neutral",
className: "gap-0 p-3",
extra: e.issues_log && !f ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "mt-3 border-t border-current/20 pt-3 text-text-secondary",
- children: /* @__PURE__ */ (0, I.jsx)(n1, {
+ children: /* @__PURE__ */ (0, I.jsx)(t1, {
path: e.issues_log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -66819,44 +66844,44 @@ function gDe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
]
});
}
-function r1(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = iU(e), o = Pt({
- mutationFn: (e) => H(kH, e),
+function n1(e) {
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = oU(e), o = Pt({
+ mutationFn: (e) => H(jH, e),
onSuccess: (e) => {
- a(), U.setQueryData(AH, e), U.invalidateQueries({ queryKey: AH });
+ a(), U.setQueryData(MH, e), U.invalidateQueries({ queryKey: MH });
}
});
(0, F.useEffect)(() => {
i && n?.();
}, [i, n]);
- let s = r.data ?? { status: "idle" }, c = s.job_id || "unavailable", { hidden: l } = PU(c), u = o.error ? sr(o.error) : r.isError ? r.data ? BH : sr(r.error) : "", d = o.isPending || NH(s), f = async (e) => {
+ let s = r.data ?? { status: "idle" }, c = s.job_id || "unavailable", { hidden: l } = IU(c), u = o.error ? sr(o.error) : r.isError ? r.data ? HH : sr(r.error) : "", d = o.isPending || FH(s), f = async (e) => {
d || (o.reset(), await o.mutateAsync(e));
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, I.jsx)(e1, {
+ children: [/* @__PURE__ */ (0, I.jsx)($$, {
layout: "stack",
label: "扫描与采集",
footer: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(KH, {
+ /* @__PURE__ */ (0, I.jsx)(JH, {
href: "/sources",
size: "small",
- trailingIcon: _V,
+ trailingIcon: yV,
children: "来源和凭证"
}),
- /* @__PURE__ */ (0, I.jsx)(KH, {
+ /* @__PURE__ */ (0, I.jsx)(JH, {
href: "/settings/diagnostics",
size: "small",
- trailingIcon: _V,
+ trailingIcon: yV,
children: "诊断与日志"
}),
- s.candidates ? /* @__PURE__ */ (0, I.jsx)(KH, {
+ s.candidates ? /* @__PURE__ */ (0, I.jsx)(JH, {
href: "/review",
size: "small",
- trailingIcon: _V,
+ trailingIcon: yV,
children: "复核资料"
}) : null,
- /* @__PURE__ */ (0, I.jsx)(bq, {
+ /* @__PURE__ */ (0, I.jsx)(yq, {
scan: !0,
busy: d,
metadataOnly: s?.metadata_only,
@@ -66872,7 +66897,7 @@ function r1(e) {
className: "flex flex-wrap items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)($$, { children: "扫描与采集" }), s.new_asset_count ? /* @__PURE__ */ (0, I.jsx)(XU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(Q$, { children: "扫描与采集" }), s.new_asset_count ? /* @__PURE__ */ (0, I.jsx)(QU, {
variant: "caption",
color: "blue",
children: /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -66880,31 +66905,31 @@ function r1(e) {
children: [s.new_asset_count.toLocaleString(), " 部待补全"]
})
}) : null]
- }), l && (NH(s) || s.status === "failed" || r.isError) ? /* @__PURE__ */ (0, I.jsx)(q, {
+ }), l && (FH(s) || s.status === "failed" || r.isError) ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- onClick: () => NU(c, !0),
+ onClick: () => FU(c, !0),
children: "显示进度浮窗"
}) : null]
}),
/* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: K$
+ children: G$
}),
s.status === "paused" && !s.total ? /* @__PURE__ */ (0, I.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, I.jsx)(t1, { children: "已暂停" })
- }) : NH(s) ? /* @__PURE__ */ (0, I.jsx)(Xge, { state: s }) : null,
- NH(s) ? /* @__PURE__ */ (0, I.jsx)("p", {
+ children: /* @__PURE__ */ (0, I.jsx)(e1, { children: "已暂停" })
+ }) : FH(s) ? /* @__PURE__ */ (0, I.jsx)(Qge, { state: s }) : null,
+ FH(s) ? /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular text-text-secondary tabular-nums",
"data-processing-eta": "",
- children: LH(s)
+ children: zH(s)
}) : null,
- NH(s) ? /* @__PURE__ */ (0, I.jsx)(EU, { traffic: s.traffic }) : null,
- NH(s) ? /* @__PURE__ */ (0, I.jsx)(rU, { state: s }) : null
+ FH(s) ? /* @__PURE__ */ (0, I.jsx)(OU, { traffic: s.traffic }) : null,
+ FH(s) ? /* @__PURE__ */ (0, I.jsx)(aU, { state: s }) : null
]
})
- }), /* @__PURE__ */ (0, I.jsx)(gDe, {
+ }), /* @__PURE__ */ (0, I.jsx)(xDe, {
state: s,
problem: u,
settled: i,
@@ -66919,32 +66944,32 @@ function r1(e) {
});
}
// src/react/playlists/playlists.ts
-var _De = "/api/playlists", i1 = "/api/playlist", a1 = ["playlists"], o1 = (e) => V(_De, e);
-async function vDe(e) {
+var SDe = "/api/playlists", r1 = "/api/playlist", i1 = ["playlists"], a1 = (e) => V(SDe, e);
+async function CDe(e) {
await U.fetchQuery({
- queryKey: a1,
- queryFn: () => o1(e),
+ queryKey: i1,
+ queryFn: () => a1(e),
staleTime: 0
});
}
-var yDe = () => U.invalidateQueries({
- queryKey: a1,
+var wDe = () => U.invalidateQueries({
+ queryKey: i1,
exact: !0
-}), bDe = (e) => e.current_asset_id || e.preview_asset_id || null, xDe = (e) => `/poster?id=${e}&c=4`, SDe = (e) => H(i1, {
+}), TDe = (e) => e.current_asset_id || e.preview_asset_id || null, EDe = (e) => `/poster?id=${e}&c=4`, DDe = (e) => H(r1, {
action: "create",
name: e,
asset_ids: []
-}), CDe = (e, t) => H(i1, {
+}), ODe = (e, t) => H(r1, {
action: "rename",
id: e,
name: t
-}), wDe = (e) => H(i1, {
+}), kDe = (e) => H(r1, {
action: "delete",
id: e
-}), TDe = (e) => V(`${i1}?id=${e}`).catch(() => null);
-function EDe(e) {
+}), ADe = (e) => V(`${r1}?id=${e}`).catch(() => null);
+function jDe(e) {
let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
- return H(i1, {
+ return H(r1, {
action: "create",
name: e.name,
asset_ids: t,
@@ -66953,9 +66978,13 @@ function EDe(e) {
});
}
// src/react/scraping/custom-source-data.ts
-var s1 = "/api/custom-metadata", c1 = ["custom-metadata"], l1 = (e) => V(s1, e), DDe = "/api/scraping", ODe = "/api/scraping/settings", kDe = "/api/scraping/check", u1 = "/api/scraping/cover", ADe = "/api/scraping/amane-bridge", jDe = "/api/scraping/amane-bridge/check", MDe = "/api/scraping/amane-bridge/rebuild", d1 = ["scraping"], f1 = ["scraping", "cover"], p1 = ["scraping", "amane-bridge"], NDe = 262144, m1 = (e) => V(DDe, e), h1 = (e) => V(u1, e), g1 = (e) => V(ADe, e);
-async function PDe(e) {
+var o1 = "/api/custom-metadata", s1 = ["custom-metadata"], c1 = (e) => V(o1, e), MDe = "/api/scraping", NDe = "/api/scraping/settings", PDe = "/api/scraping/check", l1 = "/api/scraping/cover", FDe = "/api/scraping/amane-bridge", IDe = "/api/scraping/amane-bridge/check", LDe = "/api/scraping/amane-bridge/rebuild", u1 = ["scraping"], d1 = ["scraping", "cover"], f1 = ["scraping", "amane-bridge"], RDe = 262144, p1 = (e) => V(MDe, e), m1 = (e) => V(l1, e), h1 = (e) => V(FDe, e);
+async function zDe(e) {
await Promise.all([
+ U.fetchQuery({
+ queryKey: u1,
+ queryFn: () => p1(e)
+ }),
U.fetchQuery({
queryKey: d1,
queryFn: () => m1(e)
@@ -66965,40 +66994,36 @@ async function PDe(e) {
queryFn: () => h1(e)
}),
U.fetchQuery({
- queryKey: p1,
- queryFn: () => g1(e)
- }),
- U.fetchQuery({
- queryKey: c1,
- queryFn: () => l1(e)
+ queryKey: s1,
+ queryFn: () => c1(e)
})
]);
}
-function FDe(e, t) {
+function BDe(e, t) {
return `${t}${e.label === "来源页面" ? "" : " 高清图片"}:${e.ok ? "可连接" : "不能连接"}` + (e.width ? ` · ${e.width} × ${e.height}` : "") + (e.elapsed_s === void 0 ? "" : ` · ${e.elapsed_s.toFixed(2)} 秒`) + (e.message ? `。${e.message}` : "");
}
// src/react/search/search.ts
-var _1 = /* @__PURE__ */ new Set([
+var g1 = /* @__PURE__ */ new Set([
"performer",
"creator",
"studio",
"agency",
"series"
-]), v1 = /* @__PURE__ */ new Set([
+]), _1 = /* @__PURE__ */ new Set([
"asset",
"jav",
"post",
"photo",
"release"
-]), y1 = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
-function IDe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o, recommendations: s = [] }) {
+]), v1 = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
+function VDe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o, recommendations: s = [] }) {
let c = 0, l = [], u = (e) => {
let t = {
...e,
index: c++
};
return l.push(t), t;
- }, d = t.filter((t) => !e || y1(t).includes(y1(e)));
+ }, d = t.filter((t) => !e || v1(t).includes(v1(e)));
if (!e) {
if (s.length) {
let e = s.map((e) => ({
@@ -67019,8 +67044,8 @@ function IDe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
value: e
}))
} : null,
- left: e.filter((e) => !v1.has(e.kind)),
- right: e.filter((e) => v1.has(e.kind)),
+ left: e.filter((e) => !_1.has(e.kind)),
+ right: e.filter((e) => _1.has(e.kind)),
empty: !1,
options: l
};
@@ -67070,7 +67095,7 @@ function IDe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
options: n,
more: r
};
- }, g = m.filter((e) => !v1.has(e.kind)).map(h), _ = m.filter((e) => v1.has(e.kind)).map(h), v = f && !m.some((e) => e.items.length);
+ }, g = m.filter((e) => !_1.has(e.kind)).map(h), _ = m.filter((e) => _1.has(e.kind)).map(h), v = f && !m.some((e) => e.items.length);
return {
tabs: f && a.length > 1 ? [...a] : null,
recent: p,
@@ -67080,16 +67105,16 @@ function IDe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
options: l
};
}
-function LDe(e, t, n = Math.random) {
+function HDe(e, t, n = Math.random) {
let r = [...e];
for (let e = r.length - 1; e > 0; --e) {
let t = Math.floor(n() * (e + 1));
[r[e], r[t]] = [r[t], r[e]];
}
- return r.filter((e) => !t.some((t) => y1(t) === y1(e))).slice(0, 5);
+ return r.filter((e) => !t.some((t) => v1(t) === v1(e))).slice(0, 5);
}
// src/react/search/search-page.tsx
-var RDe = () => ({
+var UDe = () => ({
dismissed: !1,
history: [],
pool: [],
@@ -67108,7 +67133,7 @@ var RDe = () => ({
active: -1,
reveal: !1,
rewind: !1
-}), b1 = (e) => IDe({
+}), y1 = (e) => VDe({
query: e.query,
history: e.history,
picks: e.picks,
@@ -67117,18 +67142,18 @@ var RDe = () => ({
tabs: e.tabs,
kind: e.kind,
recommendations: e.recommendations
-}), zDe = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), x1 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
+}), WDe = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), b1 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
-function BDe(e) {
+function GDe(e) {
let t = (0, F.useRef)(e);
t.current = e;
let n = (0, F.useRef)(null);
- n.current ??= RDe();
+ n.current ??= UDe();
let r = n.current, i = (0, F.useRef)(null), [, a] = (0, F.useReducer)((e) => e + 1, 0), o = (0, F.useRef)(null);
- o.current ??= VDe(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
+ o.current ??= KDe(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
let s = o.current;
(0, F.useLayoutEffect)(() => {
let { input: e } = t.current, n = (e) => s.input(e), i = () => t.current.helpers.composing(), a = (e) => s.key(e), o = () => s.focus(), c = () => {
@@ -67143,7 +67168,7 @@ function BDe(e) {
let e = i.current?.closest("[data-search-menu]");
r.rewind && e && (e.scrollTop = 0), r.rewind = !1, r.reveal && i.current?.querySelector("[data-search-option][data-active]")?.scrollIntoView({ block: "nearest" }), r.reveal = !1;
});
- let c = b1(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, I.jsx)(UDe, {
+ let c = y1(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, I.jsx)(JDe, {
entry: t,
active: t.index === r.active,
helpers: e.helpers,
@@ -67156,7 +67181,7 @@ function BDe(e) {
children: [
/* @__PURE__ */ (0, I.jsxs)("h3", { children: [e.label, e.href ? /* @__PURE__ */ (0, I.jsx)("a", {
href: e.href,
- onMouseDown: S1,
+ onMouseDown: x1,
onClick: (t) => {
t.ctrlKey || t.metaKey || t.shiftKey || t.altKey || (t.preventDefault(), s.openPath(e.href));
},
@@ -67175,7 +67200,7 @@ function BDe(e) {
"data-search-recommendations": !r.query && r.recommendations.length ? "" : void 0,
"data-history-limit": l,
children: [
- c.tabs ? /* @__PURE__ */ (0, I.jsx)(HDe, {
+ c.tabs ? /* @__PURE__ */ (0, I.jsx)(qDe, {
tabs: c.tabs,
kind: r.kind,
onPick: s.pickKind,
@@ -67202,7 +67227,7 @@ function BDe(e) {
]
});
}
-function VDe(e, t, n, r) {
+function KDe(e, t, n, r) {
let i = () => e().input, a = () => document.activeElement === i(), o = () => t.history.slice(0, e().historyLimit), s = (n) => {
t.history = n.slice(0, e().historyLimit);
}, c = async () => {
@@ -67213,7 +67238,7 @@ function VDe(e, t, n, r) {
t.history = Array.isArray(e.items) ? e.items.map(String) : [];
} catch {}
}, l = (t) => {
- t && e().historyLimit && (s([t, ...o().filter((e) => y1(e) !== y1(t))]), H("/api/search-history", { query: t }).catch(() => null));
+ t && e().historyLimit && (s([t, ...o().filter((e) => v1(e) !== v1(t))]), H("/api/search-history", { query: t }).catch(() => null));
}, u = async () => {
let n = ++t.poolRequest;
t.pool = [];
@@ -67260,9 +67285,9 @@ function VDe(e, t, n, r) {
i && e().helpers.dismiss(i), t.active = -1, r();
}, h = () => {
if (t.dismissed) return;
- t.query = i().value.trim(), t.picks = t.query ? [] : LDe(t.pool, o()), t.active = -1;
+ t.query = i().value.trim(), t.picks = t.query ? [] : HDe(t.pool, o()), t.active = -1;
let a = n();
- a && (zDe(b1(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
+ a && (WDe(y1(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
}, g = () => {
t.active = -1, t.kind = "", clearTimeout(t.timer);
let e = i().value.trim();
@@ -67274,7 +67299,7 @@ function VDe(e, t, n, r) {
n && e !== t.kind && (t.kind = e, clearTimeout(t.timer), h(), t.rewind = !0, f(n, e).then(() => {
a() && t.kind === e && h();
}));
- }, v = () => p() ? b1(t).options : [], y = (e) => {
+ }, v = () => p() ? y1(t).options : [], y = (e) => {
let n = v();
return n.length ? (t.active = (t.active + e + n.length) % n.length, t.reveal = !0, r(), !0) : !1;
}, b = (t, n) => {
@@ -67283,7 +67308,7 @@ function VDe(e, t, n, r) {
}, x = (t, n) => {
i().blur(), l(n), e().actions.openEntity(t, n);
}, S = (t) => {
- t.type === "suggest" && t.item.followMedia && t.item.id && e().actions.openFollow ? (i().blur(), e().actions.openFollow(t.item.id, t.item.followMedia, t.item.mediaIndex ?? null)) : t.type === "suggest" && t.item.href ? C(t.item.href) : t.type === "more" ? (b(!1, !0), i().blur()) : t.type === "suggest" && t.kind === "asset" && t.item.id != null ? (i().blur(), e().actions.openItem(t.item.id)) : t.type === "suggest" && _1.has(t.kind) ? x(t.kind, t.value) : (i().value = t.value, b(!1, !0));
+ t.type === "suggest" && t.item.followMedia && t.item.id && e().actions.openFollow ? (i().blur(), e().actions.openFollow(t.item.id, t.item.followMedia, t.item.mediaIndex ?? null)) : t.type === "suggest" && t.item.href ? C(t.item.href) : t.type === "more" ? (b(!1, !0), i().blur()) : t.type === "suggest" && t.kind === "asset" && t.item.id != null ? (i().blur(), e().actions.openItem(t.item.id)) : t.type === "suggest" && g1.has(t.kind) ? x(t.kind, t.value) : (i().value = t.value, b(!1, !0));
}, C = (t) => {
m(), i().blur(), e().actions.openPath?.(t);
};
@@ -67329,13 +67354,13 @@ function VDe(e, t, n, r) {
await H("/api/search-history", {
operation: "remove",
query: e
- }).catch(() => null), s(o().filter((t) => y1(t) !== y1(e))), t.active = -1, r();
+ }).catch(() => null), s(o().filter((t) => v1(t) !== v1(e))), t.active = -1, r();
},
pickKind: _,
openPath: C
};
}
-function HDe({ tabs: e, kind: t, onPick: n, wire: r }) {
+function qDe({ tabs: e, kind: t, onPick: n, wire: r }) {
let i = (0, F.useRef)(null);
(0, F.useLayoutEffect)(() => {
r(i.current);
@@ -67349,9 +67374,9 @@ function HDe({ tabs: e, kind: t, onPick: n, wire: r }) {
"data-pill-variant": "gray",
onMouseDown: (e) => e.preventDefault(),
onClick: () => n(e),
- children: [r, i ? /* @__PURE__ */ (0, I.jsx)(_W, { value: i }) : null]
+ children: [r, i ? /* @__PURE__ */ (0, I.jsx)(bW, { value: i }) : null]
}, e || "all");
- return /* @__PURE__ */ (0, I.jsxs)(PL, {
+ return /* @__PURE__ */ (0, I.jsxs)(IL, {
ref: i,
"data-search-tabs": "",
"data-pill-nav": "",
@@ -67360,9 +67385,9 @@ function HDe({ tabs: e, kind: t, onPick: n, wire: r }) {
children: [a("", "全部"), e.map((e) => a(e.kind, e.label, e.total))]
});
}
-var S1 = (e) => e.preventDefault();
-function UDe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
- nR();
+var x1 = (e) => e.preventDefault();
+function JDe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
+ iR();
let o = {
"data-search-value": e.value,
"data-active": t ? "" : void 0,
@@ -67374,33 +67399,33 @@ function UDe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
type: "button",
"data-search-option": "more",
...o,
- onMouseDown: S1,
+ onMouseDown: x1,
children: [
"查看全部 ",
e.total.toLocaleString(),
" 个视频",
- /* @__PURE__ */ (0, I.jsx)(x1, { name: "chevron-right" })
+ /* @__PURE__ */ (0, I.jsx)(b1, { name: "chevron-right" })
]
});
if (e.type !== "suggest") return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-search-option": "",
...o,
children: [
- /* @__PURE__ */ (0, I.jsx)(x1, { name: e.type === "history" ? "history" : "sparkles" }),
+ /* @__PURE__ */ (0, I.jsx)(b1, { name: e.type === "history" ? "history" : "sparkles" }),
/* @__PURE__ */ (0, I.jsx)("span", { children: e.value }),
e.type === "history" ? /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-remove-history": e.value,
"aria-label": `删除历史 ${e.value}`,
- onMouseDown: S1,
+ onMouseDown: x1,
onClick: (t) => {
t.stopPropagation(), a(e.value);
},
- children: /* @__PURE__ */ (0, I.jsx)(x1, { name: "x" })
+ children: /* @__PURE__ */ (0, I.jsx)(b1, { name: "x" })
}) : null
]
});
- let { item: s, kind: c } = e, l = _1.has(c) ? c : void 0;
+ let { item: s, kind: c } = e, l = g1.has(c) ? c : void 0;
if ([
"asset",
"jav",
@@ -67414,8 +67439,8 @@ function UDe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-search-option": "work",
"data-open-item": c === "asset" ? s.id : void 0,
...o,
- onMouseDown: S1,
- children: [/* @__PURE__ */ (0, I.jsx)(C1, {
+ onMouseDown: x1,
+ children: [/* @__PURE__ */ (0, I.jsx)(S1, {
card: s.card,
helpers: n
}), /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -67440,9 +67465,9 @@ function UDe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-search-option": "person",
"data-open-entity": l,
...o,
- onMouseDown: S1,
+ onMouseDown: x1,
children: [
- /* @__PURE__ */ (0, I.jsx)(w1, {
+ /* @__PURE__ */ (0, I.jsx)(C1, {
item: s,
kind: c
}),
@@ -67465,11 +67490,11 @@ function UDe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
type: "button",
"data-open-work": e.id,
"aria-label": `打开 ${e.code || s.value}`,
- onMouseDown: S1,
+ onMouseDown: x1,
onClick: (t) => {
t.stopPropagation(), i(e);
},
- children: /* @__PURE__ */ (0, I.jsx)(C1, {
+ children: /* @__PURE__ */ (0, I.jsx)(S1, {
card: e,
helpers: n
})
@@ -67483,7 +67508,7 @@ function UDe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-open-entity": l,
...o,
children: [
- c === "studio" || c === "agency" ? /* @__PURE__ */ (0, I.jsx)(w1, {
+ c === "studio" || c === "agency" ? /* @__PURE__ */ (0, I.jsx)(C1, {
item: s,
kind: c
}) : null,
@@ -67496,13 +67521,13 @@ function UDe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
]
});
}
-function C1({ card: e, helpers: t }) {
+function S1({ card: e, helpers: t }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-search-pic": "",
dangerouslySetInnerHTML: { __html: t.coverHtml(e) }
});
}
-function w1({ item: e, kind: t }) {
+function C1({ item: e, kind: t }) {
if (e.avatarHtml) return /* @__PURE__ */ (0, I.jsx)("span", {
"data-search-face": "",
dangerouslySetInnerHTML: { __html: e.avatarHtml }
@@ -67521,24 +67546,24 @@ function w1({ item: e, kind: t }) {
});
}
// src/react/settings/configuration.ts
-var T1 = ["configuration"], E1 = (e) => V(AX, e);
-async function WDe(e) {
+var w1 = ["configuration"], T1 = (e) => V(kX, e);
+async function YDe(e) {
await U.fetchQuery({
- queryKey: T1,
- queryFn: () => E1(e)
+ queryKey: w1,
+ queryFn: () => T1(e)
});
}
// src/react/settings-panel/legacy-controls.tsx
-var D1 = (e) => e.map(([e, t, n]) => n ? [
+var E1 = (e) => e.map(([e, t, n]) => n ? [
e,
t,
n
] : [e, t]);
-function O1({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant: o, text: s = !1, epoch: c, onChoose: l }) {
+function D1({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant: o, text: s = !1, epoch: c, onChoose: l }) {
let u = (0, F.useRef)(null), d = (0, F.useRef)(null), f = (0, F.useRef)(l);
return f.current = l, (0, F.useLayoutEffect)(() => {
let e = u.current;
- e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = Yc(t, n, D1(r), i, {
+ e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = Yc(t, n, E1(r), i, {
attr: a,
className: o,
text: s
@@ -67556,13 +67581,13 @@ function O1({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant:
ref: u
});
}
-function k1({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a = !1, hidden: o, describedBy: s, epoch: c, onPick: l, decorate: u }) {
+function O1({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a = !1, hidden: o, describedBy: s, epoch: c, onPick: l, decorate: u }) {
let d = (0, F.useRef)(null), f = (0, F.useRef)(null), p = (0, F.useRef)(-1), m = (0, F.useRef)(l);
return m.current = l, (0, F.useLayoutEffect)(() => {
let e = d.current;
if (!e) return;
if (p.current !== c || !f.current) {
- e.innerHTML = fs(D1(n), r, { label: t });
+ e.innerHTML = fs(E1(n), r, { label: t });
let i = ps(e.firstElementChild);
i.addEventListener("change", () => m.current(i.value)), f.current = i, p.current = c;
}
@@ -67575,7 +67600,7 @@ function k1({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a =
"aria-describedby": s
});
}
-function GDe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
+function XDe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
let s = (0, F.useRef)(null), c = (0, F.useRef)(null), l = (0, F.useRef)({
onStep: a,
onSettle: o
@@ -67609,7 +67634,7 @@ function GDe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSet
});
}
// src/react/settings-panel/glow-settings.tsx
-var KDe = [
+var ZDe = [
[
"strength",
"强度",
@@ -67636,8 +67661,8 @@ var KDe = [
100
]
];
-function qDe({ host: e, spot: t, index: n, glow: r }) {
- let i = Uce[n], a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = vH(), [l, u] = (0, F.useState)("all");
+function QDe({ host: e, spot: t, index: n, glow: r }) {
+ let i = Hce[n], a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = bH(), [l, u] = (0, F.useState)("all");
(0, F.useLayoutEffect)(() => {
let [e, t, n] = [
a.current,
@@ -67650,7 +67675,7 @@ function qDe({ host: e, spot: t, index: n, glow: r }) {
}, []);
let d = r[t].color, f = (n) => {
let r = e.store.value.homeGlow;
- r[t].color = vM(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), is(), o.current?.focus();
+ r[t].color = CM(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), is(), o.current?.focus();
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-glow-stop": t,
@@ -67675,7 +67700,7 @@ function qDe({ host: e, spot: t, index: n, glow: r }) {
children: d
})]
}),
- /* @__PURE__ */ (0, I.jsx)(mI, { name: "chevron-down" })
+ /* @__PURE__ */ (0, I.jsx)(yI, { name: "chevron-down" })
]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "popmenu",
@@ -67687,7 +67712,7 @@ function qDe({ host: e, spot: t, index: n, glow: r }) {
"data-glow-pills": "",
role: "group",
"aria-label": "色系",
- children: Kce.map(([e, t]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: Gce.map(([e, t]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glow-pill": e,
"aria-pressed": e === l,
@@ -67701,7 +67726,7 @@ function qDe({ host: e, spot: t, index: n, glow: r }) {
"data-glow-palette": "",
role: "radiogroup",
"aria-label": `${i}颜色`,
- children: qce.map(([e, t, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: Kce.map(([e, t, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
role: "radio",
"aria-checked": n === d,
@@ -67718,8 +67743,8 @@ function qDe({ host: e, spot: t, index: n, glow: r }) {
})]
});
}
-function JDe({ host: e }) {
- let t = e.store.value.homeGlow, n = dM(t.preset);
+function $De({ host: e }) {
+ let t = e.store.value.homeGlow, n = gM(t.preset);
return /* @__PURE__ */ (0, I.jsxs)("section", {
"data-glow-setting": "",
id: "homeGlowControls",
@@ -67738,10 +67763,10 @@ function JDe({ host: e }) {
"data-glow-current": "",
children: ["当前配色", /* @__PURE__ */ (0, I.jsx)("b", {
"data-glow-preset-name": "",
- children: Wce(t.preset)
+ children: Uce(t.preset)
})]
}),
- /* @__PURE__ */ (0, I.jsx)(mN, {
+ /* @__PURE__ */ (0, I.jsx)(yN, {
store: e.store,
label: "光晕配色"
}),
@@ -67752,7 +67777,7 @@ function JDe({ host: e }) {
}),
/* @__PURE__ */ (0, I.jsx)("div", {
"data-glow-fields": "",
- children: KDe.map(([r, i, a]) => /* @__PURE__ */ (0, I.jsx)(GDe, {
+ children: ZDe.map(([r, i, a]) => /* @__PURE__ */ (0, I.jsx)(XDe, {
field: r,
label: i,
max: a,
@@ -67773,7 +67798,7 @@ function JDe({ host: e }) {
className: "geist-button",
"data-glow-reset": "",
onClick: () => {
- e.store.value.homeGlow = bM(null), e.store.save(), e.changed("glow");
+ e.store.value.homeGlow = TM(null), e.store.save(), e.changed("glow");
},
children: "恢复默认"
})
@@ -67792,7 +67817,7 @@ function JDe({ host: e }) {
"data-glow-colour-card": "",
children: /* @__PURE__ */ (0, I.jsx)("div", {
"data-glow-stops": "",
- children: cM.map((n, r) => /* @__PURE__ */ (0, I.jsx)(qDe, {
+ children: pM.map((n, r) => /* @__PURE__ */ (0, I.jsx)(QDe, {
host: e,
spot: n,
index: r,
@@ -67804,7 +67829,7 @@ function JDe({ host: e }) {
});
}
// src/react/settings-panel/number-setting.tsx
-var YDe = {
+var eOe = {
batchSizeSetting: {
min: 1,
max: 200,
@@ -67851,22 +67876,22 @@ var YDe = {
optional: !0,
fallback: 60
}
-}, A1 = (e) => `peach.number.${e}`;
-function j1(e, t) {
+}, k1 = (e) => `peach.number.${e}`;
+function A1(e, t) {
if (t !== "分钟" || !Number.isInteger(e) || e < 1440) return "";
let n = e / 1440;
return Number.isInteger(n) ? `${n.toLocaleString()} 天` : `约 ${n.toFixed(1)} 天`;
}
-function M1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
- let a = YDe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, F.useRef)(0);
- d.current ||= Zj(Number(localStorage.getItem(A1(e))), o, s, n && n > 0 ? n : l);
+function j1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
+ let a = eOe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, F.useRef)(0);
+ d.current ||= nM(Number(localStorage.getItem(k1(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)));
}, [n]);
let b = () => {
let t = v.current;
- t && (!t.value || !t.checkValidity() ? (t.setAttribute("aria-invalid", "true"), _(`请输入 ${o}–${s} 的整数(${c})`)) : (t.removeAttribute("aria-invalid"), _(""), d.current = Number(t.value), localStorage.setItem(A1(e), String(d.current)), y.current(d.current)));
+ t && (!t.value || !t.checkValidity() ? (t.setAttribute("aria-invalid", "true"), _(`请输入 ${o}–${s} 的整数(${c})`)) : (t.removeAttribute("aria-invalid"), _(""), d.current = Number(t.value), localStorage.setItem(k1(e), String(d.current)), y.current(d.current)));
}, x = (0, F.useRef)(b);
x.current = b, (0, F.useEffect)(() => {
let e = v.current;
@@ -67876,7 +67901,7 @@ function M1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
}, []);
let S = f > 0, C = () => {
let t = v.current;
- t?.removeAttribute("aria-invalid"), _(""), S ? (t && t.value && t.checkValidity() && (d.current = Number(t.value)), localStorage.setItem(A1(e), String(d.current)), p(0), y.current(0)) : (p(d.current), h(String(d.current)), y.current(d.current));
+ t?.removeAttribute("aria-invalid"), _(""), S ? (t && t.value && t.checkValidity() && (d.current = Number(t.value)), localStorage.setItem(k1(e), String(d.current)), p(0), y.current(0)) : (p(d.current), h(String(d.current)), y.current(d.current));
}, w = r || n === null;
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-number-setting": "",
@@ -67913,7 +67938,7 @@ function M1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
}
}), /* @__PURE__ */ (0, I.jsxs)("span", {
"aria-hidden": "true",
- children: [c, j1(Number(m), c) ? ` · ${j1(Number(m), c)}` : ""]
+ children: [c, A1(Number(m), c) ? ` · ${A1(Number(m), c)}` : ""]
})]
}), /* @__PURE__ */ (0, I.jsx)("small", {
id: `${e}-error`,
@@ -67926,13 +67951,13 @@ function M1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
});
}
// src/react/sidebar/sidebar-order.ts
-function N1(e) {
- let { mutate: t } = HX();
+function M1(e) {
+ let { mutate: t } = VX();
return (0, F.useCallback)((n) => {
e.value.sidebarOrder = n, e.save(), t({ sidebarOrder: n }, { onError: () => {} });
}, [e, t]);
}
-function P1(e, t, n, r) {
+function N1(e, t, n, r) {
if (t === n) return null;
let i = [...e], a = i.indexOf(t);
if (a < 0) return null;
@@ -67941,17 +67966,17 @@ function P1(e, t, n, r) {
return o < 0 ? null : (i.splice(o + +!!r, 0, t), i);
}
// src/react/settings-panel/sidebar-order.tsx
-var XDe = "__home__", F1 = (e) => e === "" ? XDe : e;
-function ZDe({ host: e }) {
- let t = N1(e.store), n = e.store.value.sidebarOrder, r = new Map(e.navCatalog.map((e) => [e[0], e])), i = n.map((e) => r.get(e)).filter((e) => e !== void 0), a = e.navCatalog.filter(([e]) => !n.includes(e)), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(!1), [u, d] = (0, F.useState)(null), [f, p] = (0, F.useState)(null), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (e, r, i) => {
- let a = P1(n, e, r, i);
+var tOe = "__home__", P1 = (e) => e === "" ? tOe : e;
+function nOe({ host: e }) {
+ let t = M1(e.store), n = e.store.value.sidebarOrder, r = new Map(e.navCatalog.map((e) => [e[0], e])), i = n.map((e) => r.get(e)).filter((e) => e !== void 0), a = e.navCatalog.filter(([e]) => !n.includes(e)), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(!1), [u, d] = (0, F.useState)(null), [f, p] = (0, F.useState)(null), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (e, r, i) => {
+ let a = N1(n, e, r, i);
a && t(a);
}, _ = (e, r) => {
let i = n.indexOf(e), a = i + r;
if (i < 0 || a < 0 || a >= n.length) return;
let o = [...n];
[o[i], o[a]] = [o[a], o[i]], t(o);
- }, v = a.find(([e]) => F1(e) === o) ?? a[0], y = () => {
+ }, v = a.find(([e]) => P1(e) === o) ?? a[0], y = () => {
h.current && ss(h.current), l(!1);
}, b = () => {
let e = h.current;
@@ -67972,7 +67997,7 @@ function ZDe({ host: e }) {
}, C = (e) => ({
draggable: !0,
onDragStart: (t) => {
- d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", F1(e));
+ d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", P1(e));
},
onDragOver: (t) => {
if (u === null || u === e) return;
@@ -68004,9 +68029,9 @@ function ZDe({ host: e }) {
/* @__PURE__ */ (0, I.jsx)("i", {
"data-sidebar-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(mI, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, I.jsx)(yI, { name: "grip-vertical" })
}),
- /* @__PURE__ */ (0, I.jsx)(mI, { name: a ?? "" }),
+ /* @__PURE__ */ (0, I.jsx)(yI, { name: a ?? "" }),
/* @__PURE__ */ (0, I.jsx)("b", { children: r })
]
}), /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -68020,7 +68045,7 @@ function ZDe({ host: e }) {
title: "上移",
disabled: o === 0,
onClick: () => _(e, -1),
- children: /* @__PURE__ */ (0, I.jsx)(mI, { name: "chevron-up" })
+ children: /* @__PURE__ */ (0, I.jsx)(yI, { name: "chevron-up" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -68030,7 +68055,7 @@ function ZDe({ host: e }) {
title: "下移",
disabled: o === i.length - 1,
onClick: () => _(e, 1),
- children: /* @__PURE__ */ (0, I.jsx)(mI, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, I.jsx)(yI, { name: "chevron-down" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -68042,11 +68067,11 @@ function ZDe({ host: e }) {
onClick: () => {
n.length > 1 && t(n.filter((t) => t !== e));
},
- children: /* @__PURE__ */ (0, I.jsx)(mI, { name: "eye-off" })
+ children: /* @__PURE__ */ (0, I.jsx)(yI, { name: "eye-off" })
})
]
})]
- }, F1(e))), /* @__PURE__ */ (0, I.jsxs)("div", {
+ }, P1(e))), /* @__PURE__ */ (0, I.jsxs)("div", {
"data-sidebar-add-row": "",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-sidebar-add-picker": "",
@@ -68062,13 +68087,13 @@ function ZDe({ host: e }) {
ref: m,
onClick: b,
children: v ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(mI, { name: v[2] ?? "" }),
+ /* @__PURE__ */ (0, I.jsx)(yI, { name: v[2] ?? "" }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-sidebar-add-label": "",
children: v[1]
}),
- /* @__PURE__ */ (0, I.jsx)(mI, { name: "chevron-down" })
- ] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(mI, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部页面都已显示" })] })
+ /* @__PURE__ */ (0, I.jsx)(yI, { name: "chevron-down" })
+ ] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(yI, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部页面都已显示" })] })
}), a.length ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "popmenu",
"data-sidebar-add-menu": "",
@@ -68079,15 +68104,15 @@ function ZDe({ host: e }) {
children: a.map(([e, t, n]) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
role: "option",
- "data-sidebar-add-option": F1(e),
+ "data-sidebar-add-option": P1(e),
"aria-selected": v?.[0] === e,
tabIndex: v?.[0] === e ? 0 : -1,
onKeyDown: x,
onClick: () => {
- s(F1(e)), y(), m.current?.focus();
+ s(P1(e)), y(), m.current?.focus();
},
- children: [/* @__PURE__ */ (0, I.jsx)(mI, { name: n ?? "" }), /* @__PURE__ */ (0, I.jsx)("span", { children: t })]
- }, F1(e)))
+ children: [/* @__PURE__ */ (0, I.jsx)(yI, { name: n ?? "" }), /* @__PURE__ */ (0, I.jsx)("span", { children: t })]
+ }, P1(e)))
}) : null]
}), /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -68103,13 +68128,13 @@ function ZDe({ host: e }) {
});
}
// src/react/settings-panel/settings-panel.tsx
-var I1 = [
+var F1 = [
["外观与导航", "ri-palette-line"],
["浏览与播放", "ri-play-circle-line"],
["JAV 与新作", "jav"],
["搜索与推荐", "ri-search-line"],
["内容显示", "ri-shield-check-line"]
-], QDe = [
+], rOe = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -68118,7 +68143,7 @@ var I1 = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], $De = [["desc", "降序"], ["asc", "升序"]], eOe = [[
+], iOe = [["desc", "降序"], ["asc", "升序"]], aOe = [[
"cover",
"官方封面",
""
@@ -68126,7 +68151,7 @@ var I1 = [
"thumbnail",
"预览图",
""
-]], tOe = [
+]], oOe = [
[
"feedHideGroupSetting",
"feedHideGroupCompilations",
@@ -68145,88 +68170,88 @@ var I1 = [
"切片",
"隐藏切片"
]
-], nOe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", L1 = null, R1 = {
+], sOe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", I1 = null, L1 = {
open: !1,
closing: !1,
epoch: 0,
tab: 0,
configurable: null
-}, z1 = 0, B1 = null, V1 = /* @__PURE__ */ new Set();
-function rOe(e) {
- return V1.add(e), () => {
- V1.delete(e);
+}, R1 = 0, z1 = null, B1 = /* @__PURE__ */ new Set();
+function cOe(e) {
+ return B1.add(e), () => {
+ B1.delete(e);
};
}
-function iOe() {
- for (let e of [...V1]) e();
+function lOe() {
+ for (let e of [...B1]) e();
}
-function H1(e) {
- R1 = {
- ...R1,
+function V1(e) {
+ L1 = {
+ ...L1,
...e
- }, (0, It.flushSync)(iOe);
+ }, (0, It.flushSync)(lOe);
}
-async function aOe(e) {
- let t = R1.epoch, n = await e.configurable();
- R1.open && R1.epoch === t && H1({ configurable: n });
+async function uOe(e) {
+ let t = L1.epoch, n = await e.configurable();
+ L1.open && L1.epoch === t && V1({ configurable: n });
}
-function oOe(e = "") {
- let t = L1;
+function dOe(e = "") {
+ let t = I1;
if (!t) return;
- let n = I1.findIndex(([t]) => t === e);
- if (R1.open && !R1.closing) {
- n >= 0 && n !== R1.tab && H1({ tab: n });
+ let n = F1.findIndex(([t]) => t === e);
+ if (L1.open && !L1.closing) {
+ n >= 0 && n !== L1.tab && V1({ tab: n });
return;
}
- is(), z1 += 1, B1 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
- let r = aCe();
- H1({
+ is(), R1 += 1, z1 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
+ let r = uCe();
+ V1({
open: !0,
closing: !1,
configurable: null,
- epoch: R1.epoch + 1,
- tab: n >= 0 ? n : R1.tab
+ epoch: L1.epoch + 1,
+ tab: n >= 0 ? n : L1.tab
}), r.then((e) => {
e && t.syncRemote(e);
- }), aOe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
+ }), uOe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
}
-function U1(e = !0) {
- if (!R1.open || R1.closing) return;
- let t = ++z1;
- e && L1?.closed?.(), H1({ closing: !0 });
+function H1(e = !0) {
+ if (!L1.open || L1.closing) return;
+ let t = ++R1;
+ e && I1?.closed?.(), V1({ closing: !0 });
let n = () => {
- t === z1 && R1.closing && (H1({
+ t === R1 && L1.closing && (V1({
open: !1,
closing: !1
- }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), B1 instanceof HTMLElement && document.contains(B1) && B1.focus(), B1 = null);
+ }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), z1 instanceof HTMLElement && document.contains(z1) && z1.focus(), z1 = null);
};
matchMedia("(prefers-reduced-motion: reduce)").matches ? queueMicrotask(n) : (document.querySelector("#settingsPanel > [data-settings-card]")?.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 380));
}
-var sOe = {
- open: oOe,
- close: U1,
- isOpen: () => R1.open,
+var fOe = {
+ open: dOe,
+ close: H1,
+ isOpen: () => L1.open,
reveal: (e) => queueMicrotask(() => document.querySelector(e)?.scrollIntoView({ block: "nearest" }))
};
-function cOe(e) {
- return L1 = e, sOe;
+function pOe(e) {
+ return I1 = e, fOe;
}
-function lOe() {
- let e = (0, F.useSyncExternalStore)(rOe, () => R1);
- return L1 ? /* @__PURE__ */ (0, I.jsx)(fOe, {
- host: L1,
+function mOe() {
+ let e = (0, F.useSyncExternalStore)(cOe, () => L1);
+ return I1 ? /* @__PURE__ */ (0, I.jsx)(_Oe, {
+ host: I1,
view: e
}) : null;
}
-function uOe(e) {
+function hOe(e) {
if (e.key !== "Tab") return;
- let t = [...e.currentTarget.querySelectorAll(nOe)].filter((e) => e.getClientRects().length > 0);
+ let t = [...e.currentTarget.querySelectorAll(sOe)].filter((e) => e.getClientRects().length > 0);
if (!t.length) return;
let n = t[0], r = t[t.length - 1];
e.shiftKey && document.activeElement === n ? (e.preventDefault(), r.focus()) : !e.shiftKey && document.activeElement === r && (e.preventDefault(), n.focus());
}
-var W1 = (e) => `settings-tab-${e}`, G1 = (e) => `settings-group-${e}`;
-function dOe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect: i }) {
+var U1 = (e) => `settings-tab-${e}`, W1 = (e) => `settings-group-${e}`;
+function gOe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect: i }) {
let a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useRef)(e), l = (0, F.useRef)([]), u = (e, t) => {
let n = o.current;
if (!n) return;
@@ -68254,7 +68279,7 @@ function dOe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
c.current = e, d.current(l.current[e], t);
}, [e, t]);
let f = (e, t) => {
- let n = I1.length, r = t;
+ let n = F1.length, r = t;
if (e.key === "ArrowRight" || e.key === "ArrowDown") r = (t + 1) % n;
else if (e.key === "ArrowLeft" || e.key === "ArrowUp") r = (t + n - 1) % n;
else if (e.key === "Home") r = 0;
@@ -68283,11 +68308,11 @@ function dOe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
role: "presentation",
children: "设置"
}),
- I1.map(([t, n], r) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ F1.map(([t, n], r) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
role: "tab",
- id: W1(r),
- "aria-controls": G1(r),
+ id: U1(r),
+ "aria-controls": W1(r),
"aria-selected": r === e,
tabIndex: r === e ? 0 : -1,
ref: (e) => {
@@ -68298,7 +68323,7 @@ function dOe({ 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)(mI, { name: n }) : /* @__PURE__ */ (0, I.jsx)(gde, { name: n }), t]
+ children: [n === "jav" ? /* @__PURE__ */ (0, I.jsx)(yI, { name: n }) : /* @__PURE__ */ (0, I.jsx)(hde, { name: n }), t]
}, t)),
/* @__PURE__ */ (0, I.jsx)("div", {
"data-settings-service": "",
@@ -68309,27 +68334,27 @@ function dOe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
onClick: r,
title: n === !1 ? "请在运行 Peach 的设备上打开 Peach 配置" : void 0,
children: [
- /* @__PURE__ */ (0, I.jsx)(mI, { name: "folder-cog" }),
+ /* @__PURE__ */ (0, I.jsx)(yI, { name: "folder-cog" }),
"Peach 配置",
- /* @__PURE__ */ (0, I.jsx)(mI, { name: "chevron-right" })
+ /* @__PURE__ */ (0, I.jsx)(yI, { name: "chevron-right" })
]
})
})
]
});
}
-function K1({ index: e, tab: t, children: n, cards: r = !1 }) {
+function G1({ index: e, tab: t, children: n, cards: r = !1 }) {
return /* @__PURE__ */ (0, I.jsxs)("section", {
"data-setting-group": "",
"data-setting-layout": r ? "cards" : void 0,
- id: G1(e),
+ id: W1(e),
role: "tabpanel",
- "aria-labelledby": W1(e),
+ "aria-labelledby": U1(e),
hidden: e !== t,
- children: [/* @__PURE__ */ (0, I.jsx)("h3", { children: I1[e][0] }), n]
+ children: [/* @__PURE__ */ (0, I.jsx)("h3", { children: F1[e][0] }), n]
});
}
-function q1({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {
+function K1({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {
return /* @__PURE__ */ (0, I.jsxs)("label", {
"data-setting-row": "",
children: [/* @__PURE__ */ (0, I.jsxs)("span", { children: [/* @__PURE__ */ (0, I.jsx)("b", { children: t }), n ? /* @__PURE__ */ (0, I.jsx)("small", {
@@ -68346,7 +68371,7 @@ function q1({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Se
})]
});
}
-function J1({ title: e, description: t, kind: n, children: r }) {
+function q1({ title: e, description: t, kind: n, children: r }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-setting-row": "",
"data-setting-sort": n === "sort" ? "" : void 0,
@@ -68354,7 +68379,7 @@ function J1({ title: e, description: t, kind: n, children: r }) {
children: [/* @__PURE__ */ (0, I.jsxs)("span", { children: [/* @__PURE__ */ (0, I.jsx)("b", { children: e }), typeof t == "string" ? /* @__PURE__ */ (0, I.jsx)("small", { children: t }) : t] }), r]
});
}
-function fOe({ host: e, view: t }) {
+function _Oe({ host: e, view: t }) {
(0, F.useSyncExternalStore)(e.store.subscribe, e.store.version);
let n = e.store.value, r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useRef)(t.tab), l = () => {
let [e, t] = [i.current, o.current];
@@ -68375,7 +68400,7 @@ function fOe({ host: e, view: t }) {
s.current?.();
});
let d = t.epoch, f = (t) => {
- t !== R1.tab && (H1({ tab: t }), e.selectSection?.(I1[t][0]));
+ t !== L1.tab && (V1({ tab: t }), e.selectSection?.(F1[t][0]));
}, p = () => e.store.save();
return /* @__PURE__ */ (0, I.jsx)("section", {
"data-settings-panel": "",
@@ -68386,9 +68411,9 @@ function fOe({ host: e, view: t }) {
"aria-labelledby": "settingsTitle",
"data-closing": t.closing ? "" : void 0,
ref: r,
- onKeyDown: uOe,
+ onKeyDown: hOe,
onClick: (e) => {
- e.target === e.currentTarget && U1();
+ e.target === e.currentTarget && H1();
},
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-settings-card": "",
@@ -68399,27 +68424,27 @@ function fOe({ host: e, view: t }) {
ref: a,
children: [/* @__PURE__ */ (0, I.jsx)("h2", {
id: "settingsTitle",
- children: I1[t.tab][0]
- }), /* @__PURE__ */ (0, I.jsx)(KV, {
+ children: F1[t.tab][0]
+ }), /* @__PURE__ */ (0, I.jsx)(JV, {
id: "settingsClose",
label: "关闭设置",
- onPress: () => U1()
+ onPress: () => H1()
})]
}),
- /* @__PURE__ */ (0, I.jsx)(dOe, {
+ /* @__PURE__ */ (0, I.jsx)(gOe, {
tab: t.tab,
epoch: d,
configurable: t.configurable,
onSelect: f,
openConfiguration: () => {
- U1(!1), e.openConfiguration();
+ H1(!1), e.openConfiguration();
}
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-settings-scroll": "",
ref: o,
children: [
- /* @__PURE__ */ (0, I.jsxs)(K1, {
+ /* @__PURE__ */ (0, I.jsxs)(G1, {
index: 0,
tab: t.tab,
cards: !0,
@@ -68427,9 +68452,9 @@ function fOe({ host: e, view: t }) {
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-setting-card": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(J1, {
+ /* @__PURE__ */ (0, I.jsx)(q1, {
title: "主题",
- children: /* @__PURE__ */ (0, I.jsx)(O1, {
+ children: /* @__PURE__ */ (0, I.jsx)(D1, {
id: "themeSetting",
name: "theme",
legend: "主题",
@@ -68457,7 +68482,7 @@ function fOe({ host: e, view: t }) {
onChange: (t) => e.setHighContrast(t.target.checked)
})]
}),
- /* @__PURE__ */ (0, I.jsx)(q1, {
+ /* @__PURE__ */ (0, I.jsx)(K1, {
id: "uiSoundsSetting",
title: "界面音效",
checked: n.uiSounds,
@@ -68465,7 +68490,7 @@ function fOe({ host: e, view: t }) {
n.uiSounds = t, p(), e.changed("uiSounds");
}
}),
- /* @__PURE__ */ (0, I.jsx)(q1, {
+ /* @__PURE__ */ (0, I.jsx)(K1, {
id: "homeGlowSetting",
title: "侧栏光晕",
checked: n.homeGlow.on,
@@ -68475,7 +68500,7 @@ function fOe({ host: e, view: t }) {
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(JDe, { host: e }),
+ /* @__PURE__ */ (0, I.jsx)($De, { host: e }),
/* @__PURE__ */ (0, I.jsxs)("section", {
"data-setting-block": "",
"aria-labelledby": "sidebarOrderTitle",
@@ -68487,35 +68512,35 @@ function fOe({ host: e, view: t }) {
"data-setting-card": "",
children: /* @__PURE__ */ (0, I.jsx)("section", {
"data-sidebar-setting": "",
- children: /* @__PURE__ */ (0, I.jsx)(ZDe, { host: e })
+ children: /* @__PURE__ */ (0, I.jsx)(nOe, { host: e })
})
})]
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(mOe, {
+ /* @__PURE__ */ (0, I.jsx)(yOe, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, I.jsx)(hOe, {
+ /* @__PURE__ */ (0, I.jsx)(bOe, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, I.jsxs)(K1, {
+ /* @__PURE__ */ (0, I.jsxs)(G1, {
index: 3,
tab: t.tab,
children: [
- /* @__PURE__ */ (0, I.jsx)(yOe, {
+ /* @__PURE__ */ (0, I.jsx)(wOe, {
host: e,
epoch: d
}),
- /* @__PURE__ */ (0, I.jsx)(J1, {
+ /* @__PURE__ */ (0, I.jsx)(q1, {
title: "相关推荐数量",
children: /* @__PURE__ */ (0, I.jsx)("div", {
id: "relatedLimitSetting",
- children: /* @__PURE__ */ (0, I.jsx)(M1, {
+ children: /* @__PURE__ */ (0, I.jsx)(j1, {
id: "relatedLimitSetting",
label: "相关推荐数量",
value: n.relatedLimit,
@@ -68525,24 +68550,24 @@ function fOe({ host: e, view: t }) {
}, d)
})
}),
- /* @__PURE__ */ (0, I.jsx)(J1, {
+ /* @__PURE__ */ (0, I.jsx)(q1, {
title: "口味与记录",
children: /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, I.jsx)(_R, {
+ children: /* @__PURE__ */ (0, I.jsx)(yR, {
variant: "secondary",
href: "/taste",
- onClick: () => U1(!1),
+ onClick: () => H1(!1),
children: "打开口味与记录"
})
})
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(K1, {
+ /* @__PURE__ */ (0, I.jsx)(G1, {
index: 4,
tab: t.tab,
- children: /* @__PURE__ */ (0, I.jsx)(q1, {
+ children: /* @__PURE__ */ (0, I.jsx)(K1, {
id: "censorSetting",
title: "SFW 模式",
describedBy: "sfwDescription",
@@ -68557,7 +68582,7 @@ function fOe({ host: e, view: t }) {
})
});
}
-function pOe(e, t) {
+function vOe(e, t) {
let n = e.querySelector("[data-select-label]");
if (!n) return;
n.querySelector("[data-icon-swap]") || (n.innerHTML = Ws("arrow-up", "arrow-down", "a", {
@@ -68567,9 +68592,9 @@ function pOe(e, t) {
let r = n.querySelector("[data-sort-direction-label]");
r && (r.textContent = t ? "升序" : "降序");
}
-function mOe({ host: e, tab: t, epoch: n }) {
+function yOe({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save(), a = r.defaultSort === "seed", o = r.defaultSortDirection === "asc";
- return /* @__PURE__ */ (0, I.jsxs)(K1, {
+ return /* @__PURE__ */ (0, I.jsxs)(G1, {
index: 1,
tab: t,
children: [
@@ -68577,11 +68602,11 @@ function mOe({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "作品列表"
}),
- /* @__PURE__ */ (0, I.jsx)(J1, {
+ /* @__PURE__ */ (0, I.jsx)(q1, {
title: "每批加载作品",
children: /* @__PURE__ */ (0, I.jsx)("div", {
id: "batchSizeSetting",
- children: /* @__PURE__ */ (0, I.jsx)(M1, {
+ children: /* @__PURE__ */ (0, I.jsx)(j1, {
id: "batchSizeSetting",
label: "每批作品",
value: r.batchSize,
@@ -68591,24 +68616,24 @@ function mOe({ host: e, tab: t, epoch: n }) {
}, n)
})
}),
- /* @__PURE__ */ (0, I.jsx)(J1, {
+ /* @__PURE__ */ (0, I.jsx)(q1, {
title: "默认排序",
kind: "sort",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-setting-sort-controls": "",
- children: [/* @__PURE__ */ (0, I.jsx)(k1, {
+ children: [/* @__PURE__ */ (0, I.jsx)(O1, {
id: "defaultSortSetting",
label: "默认排序",
- options: QDe,
+ options: rOe,
value: r.defaultSort,
epoch: n,
onPick: (t) => {
r.defaultSort = t, i(), e.changed("defaultSort");
}
- }), /* @__PURE__ */ (0, I.jsx)(k1, {
+ }), /* @__PURE__ */ (0, I.jsx)(O1, {
id: "defaultSortDirectionSetting",
label: "默认排序方向",
- options: $De,
+ options: iOe,
value: o ? "asc" : "desc",
hidden: a,
disabled: a,
@@ -68616,13 +68641,13 @@ function mOe({ host: e, tab: t, epoch: n }) {
onPick: (t) => {
r.defaultSortDirection = t, i(), e.changed("sortDirection");
},
- decorate: (e) => pOe(e, o)
+ decorate: (e) => vOe(e, o)
})]
})
}),
- /* @__PURE__ */ (0, I.jsx)(J1, {
+ /* @__PURE__ */ (0, I.jsx)(q1, {
title: "视频卡片大小",
- children: /* @__PURE__ */ (0, I.jsx)(O1, {
+ children: /* @__PURE__ */ (0, I.jsx)(D1, {
id: "javSizeSetting",
name: "video-size",
legend: "视频卡片大小",
@@ -68648,16 +68673,16 @@ function mOe({ host: e, tab: t, epoch: n }) {
}
})]
}),
- /* @__PURE__ */ (0, I.jsx)(J1, {
+ /* @__PURE__ */ (0, I.jsx)(q1, {
title: "悬停预览延迟",
children: /* @__PURE__ */ (0, I.jsx)("div", {
id: "hoverDelaySetting",
- children: /* @__PURE__ */ (0, I.jsx)(M1, {
+ children: /* @__PURE__ */ (0, I.jsx)(j1, {
id: "hoverDelaySetting",
label: "悬停预览延迟",
value: r.hoverDelaySeconds,
onApply: (t) => {
- r.hoverDelaySeconds = Zj(t, 0, 60, 5), i(), e.changed("hoverDelay");
+ r.hoverDelaySeconds = nM(t, 0, 60, 5), i(), e.changed("hoverDelay");
}
}, n)
})
@@ -68666,16 +68691,16 @@ function mOe({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "播放"
}),
- /* @__PURE__ */ (0, I.jsx)(vOe, {
+ /* @__PURE__ */ (0, I.jsx)(COe, {
host: e,
epoch: n
})
]
});
}
-function hOe({ host: e, tab: t, epoch: n }) {
+function bOe({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save();
- return /* @__PURE__ */ (0, I.jsxs)(K1, {
+ return /* @__PURE__ */ (0, I.jsxs)(G1, {
index: 2,
tab: t,
children: [
@@ -68683,17 +68708,17 @@ function hOe({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "作品显示"
}),
- /* @__PURE__ */ (0, I.jsx)(gOe, {
+ /* @__PURE__ */ (0, I.jsx)(xOe, {
host: e,
epoch: n
}),
- /* @__PURE__ */ (0, I.jsx)(J1, {
+ /* @__PURE__ */ (0, I.jsx)(q1, {
title: "默认图片",
- children: /* @__PURE__ */ (0, I.jsx)(O1, {
+ children: /* @__PURE__ */ (0, I.jsx)(D1, {
id: "javImageSetting",
name: "jav-image",
legend: "默认图片",
- options: eOe,
+ options: aOe,
value: r.javImage,
attr: "data-jav-image-choice",
variant: "javimageswitch",
@@ -68708,21 +68733,21 @@ function hOe({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "新作显示"
}),
- /* @__PURE__ */ (0, I.jsx)(J1, {
+ /* @__PURE__ */ (0, I.jsx)(q1, {
title: "显示数量",
children: /* @__PURE__ */ (0, I.jsx)("div", {
id: "feedLimitSetting",
- children: /* @__PURE__ */ (0, I.jsx)(M1, {
+ children: /* @__PURE__ */ (0, I.jsx)(j1, {
id: "feedLimitSetting",
label: "新作显示数量",
value: r.feedLimit,
onApply: (t) => {
- r.feedLimit = Zj(t, 1, 100, 12), i(), e.changed("feedLimit");
+ r.feedLimit = nM(t, 1, 100, 12), i(), e.changed("feedLimit");
}
}, n)
})
}),
- /* @__PURE__ */ (0, I.jsx)(q1, {
+ /* @__PURE__ */ (0, I.jsx)(K1, {
id: "feedAutoScrollSetting",
title: "自动滚动",
checked: r.feedAutoScroll,
@@ -68730,7 +68755,7 @@ function hOe({ host: e, tab: t, epoch: n }) {
r.feedAutoScroll = t, i(), e.changed("feedAutoScroll");
}
}),
- tOe.map(([t, n, r, i]) => /* @__PURE__ */ (0, I.jsx)(_Oe, {
+ oOe.map(([t, n, r, i]) => /* @__PURE__ */ (0, I.jsx)(SOe, {
host: e,
id: t,
settingKey: n,
@@ -68740,19 +68765,19 @@ function hOe({ host: e, tab: t, epoch: n }) {
]
});
}
-function gOe({ host: e, epoch: t }) {
+function xOe({ host: e, epoch: t }) {
let n = Nt({
- queryKey: IX,
- queryFn: ({ signal: e }) => VX(e),
+ queryKey: FX,
+ queryFn: ({ signal: e }) => BX(e),
staleTime: 0
- }), r = HX(), [i, a] = (0, F.useState)(null), o = n.data?.performerNameLanguage;
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(J1, {
+ }), r = VX(), [i, a] = (0, F.useState)(null), o = n.data?.performerNameLanguage;
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(q1, {
title: "女优名称",
description: /* @__PURE__ */ (0, I.jsx)("small", {
"data-copy-key": "performer-name-language-help",
children: "名称与别名只显示所选语言的写法;缺少对应时保留当前名称。偏好保存在数据库,其他设备读取同一份设置。"
}),
- children: /* @__PURE__ */ (0, I.jsx)(k1, {
+ children: /* @__PURE__ */ (0, I.jsx)(O1, {
id: "performerNameLanguageSetting",
label: "女优名称",
epoch: t,
@@ -68770,13 +68795,13 @@ function gOe({ host: e, epoch: t }) {
}));
}
})
- }), n.isError ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ }), n.isError ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "error",
children: "未取得数据库中的名称偏好,请重新打开设置。"
}) : null] });
}
-function _Oe({ host: e, id: t, settingKey: n, label: r, title: i }) {
- let a = HX(), [o, s] = (0, F.useState)(null), c = (0, F.useRef)(null), l = e.store.value, u = (t) => {
+function SOe({ host: e, id: t, settingKey: n, label: r, title: i }) {
+ let a = VX(), [o, s] = (0, F.useState)(null), c = (0, F.useRef)(null), l = e.store.value, u = (t) => {
s(t), Kc(c.current), a.mutate({ [n]: t }, {
onSuccess: (i) => {
l[n] = i[n] === !0, e.store.save(), e.changed("feedCompilations"), e.receipt(t ? `新作已收起${r}` : `新作已列出${r}`);
@@ -68800,10 +68825,10 @@ function _Oe({ host: e, id: t, settingKey: n, label: r, title: i }) {
})]
});
}
-function vOe({ host: e, epoch: t }) {
+function COe({ host: e, epoch: t }) {
let n = e.store.value, r = () => e.store.save();
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(q1, {
+ /* @__PURE__ */ (0, I.jsx)(K1, {
id: "detailAutoplaySetting",
title: "打开详情自动播放",
checked: n.detailAutoplay,
@@ -68811,7 +68836,7 @@ function vOe({ host: e, epoch: t }) {
n.detailAutoplay = e, r();
}
}),
- /* @__PURE__ */ (0, I.jsx)(q1, {
+ /* @__PURE__ */ (0, I.jsx)(K1, {
id: "miniplayerSetting",
title: "离开详情后小窗播放",
checked: n.miniplayer,
@@ -68819,11 +68844,11 @@ function vOe({ host: e, epoch: t }) {
n.miniplayer = t, r(), e.changed("miniplayer");
}
}),
- /* @__PURE__ */ (0, I.jsx)(J1, {
+ /* @__PURE__ */ (0, I.jsx)(q1, {
title: "快进 / 快退步长",
children: /* @__PURE__ */ (0, I.jsx)("div", {
id: "seekSecondsSetting",
- children: /* @__PURE__ */ (0, I.jsx)(M1, {
+ children: /* @__PURE__ */ (0, I.jsx)(j1, {
id: "seekSecondsSetting",
label: "快进 / 快退",
value: n.seekSeconds,
@@ -68835,25 +68860,25 @@ function vOe({ host: e, epoch: t }) {
})
] });
}
-function yOe({ host: e, epoch: t }) {
- let n = e.store.value, r = HX();
- return /* @__PURE__ */ (0, I.jsx)(J1, {
+function wOe({ host: e, epoch: t }) {
+ let n = e.store.value, r = VX();
+ return /* @__PURE__ */ (0, I.jsx)(q1, {
title: "搜索记录数量",
children: /* @__PURE__ */ (0, I.jsx)("div", {
id: "searchHistoryLimitSetting",
- children: /* @__PURE__ */ (0, I.jsx)(M1, {
+ children: /* @__PURE__ */ (0, I.jsx)(j1, {
id: "searchHistoryLimitSetting",
label: "搜索记录",
value: n.searchHistoryLimit,
onApply: (t) => {
- n.searchHistoryLimit = Zj(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
+ n.searchHistoryLimit = nM(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
}
}, t)
})
});
}
// src/react/sidebar/use-sidebar-reorder.ts
-function bOe(e, t, n, r) {
+function TOe(e, t, n, r) {
let [i, a] = (0, F.useState)(null), [o, s] = (0, F.useState)(""), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(!1), d = (0, F.useRef)({
order: t,
commit: n,
@@ -68888,7 +68913,7 @@ function bOe(e, t, n, r) {
let m = (t) => {
let n = c.current;
if (!n || (c.current = null, !n.started)) return;
- let r = d.current.picked, i = n.keys.filter((e) => e !== n.key), o = t ? r.slot : null, l = o === null || o === r.origin ? null : P1(d.current.order, n.key, i[Math.min(o, i.length - 1)], o === i.length);
+ let r = d.current.picked, i = n.keys.filter((e) => e !== n.key), o = t ? r.slot : null, l = o === null || o === r.origin ? null : N1(d.current.order, n.key, i[Math.min(o, i.length - 1)], o === i.length);
p(), e.current.style.minHeight = n.minHeight, document.body.style.cursor = n.cursor, n.node.style.removeProperty("--sidebar-drag-x"), n.node.style.removeProperty("--sidebar-drag-y"), u.current = !0, (0, It.flushSync)(() => {
a(null), l && d.current.commit(l), s(l ? `${n.node.ariaLabel},已移动到第 ${o + 1} 项` : t && o === r.origin ? "顺序未变" : "已取消排序");
}), d.current.settled();
@@ -68950,7 +68975,7 @@ function bOe(e, t, n, r) {
e.preventDefault();
let a = f().map((e) => e.dataset.nav), o = a.indexOf(i), c = e.key === "ArrowDown", l = a[o + (c ? 1 : -1)];
if (l === void 0) return;
- let u = P1(t, i, l, c);
+ let u = N1(t, i, l, c);
u && (p(), (0, It.flushSync)(() => n(u)), s(`${e.currentTarget.ariaLabel},已移动到第 ${o + (c ? 2 : 0)} 项`), r());
}, v = i ? f().filter((e) => e.dataset.nav !== i.key) : [], y = !!i && i.slot !== null && i.slot !== i.origin;
return {
@@ -68989,68 +69014,68 @@ function bOe(e, t, n, r) {
};
}
// src/react/sidebar/sidebar-island.tsx
-var Y1 = "__home__", xOe = {
+var J1 = "__home__", EOe = {
creator: 26,
tag: 30,
tech: 16
-}, X1 = 180, Z1 = null, Q1 = {
+}, Y1 = 180, X1 = null, Z1 = {
props: {
content: null,
filters: {},
latest: null
},
epoch: 0
-}, $1 = /* @__PURE__ */ new Set();
-function SOe(e) {
- return $1.add(e), () => {
- $1.delete(e);
+}, Q1 = /* @__PURE__ */ new Set();
+function DOe(e) {
+ return Q1.add(e), () => {
+ Q1.delete(e);
};
}
-function e0() {
- for (let e of [...$1]) e();
+function $1() {
+ for (let e of [...Q1]) e();
}
-var COe = {
+var OOe = {
render(e) {
- Q1 = {
- ...Q1,
+ Z1 = {
+ ...Z1,
props: e
- }, (0, It.flushSync)(e0);
+ }, (0, It.flushSync)($1);
},
navChanged() {
- Q1 = {
- ...Q1,
- epoch: Q1.epoch + 1
- }, (0, It.flushSync)(e0);
+ Z1 = {
+ ...Z1,
+ epoch: Z1.epoch + 1
+ }, (0, It.flushSync)($1);
}
};
-function wOe(e) {
- return Z1 = e, Q1 = {
- ...Q1,
+function kOe(e) {
+ return X1 = e, Z1 = {
+ ...Z1,
props: {
content: null,
filters: {},
latest: null
}
- }, COe;
+ }, OOe;
}
-function TOe() {
- let e = (0, F.useSyncExternalStore)(SOe, () => Q1);
- return Z1 ? /* @__PURE__ */ (0, I.jsx)(EOe, {
- host: Z1,
+function AOe() {
+ let e = (0, F.useSyncExternalStore)(DOe, () => Z1);
+ return X1 ? /* @__PURE__ */ (0, I.jsx)(jOe, {
+ host: X1,
props: e.props,
epoch: e.epoch
}) : null;
}
-function EOe({ host: e, props: t, epoch: n }) {
+function jOe({ host: e, props: t, epoch: n }) {
let r = (0, F.useSyncExternalStore)(e.store.subscribe, e.store.version);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsx)("div", { "data-sidebar-head": "" }),
- /* @__PURE__ */ (0, I.jsx)(DOe, {
+ /* @__PURE__ */ (0, I.jsx)(MOe, {
host: e,
epoch: n,
version: r
}),
- t.content ? /* @__PURE__ */ (0, I.jsx)(kOe, {
+ t.content ? /* @__PURE__ */ (0, I.jsx)(POe, {
host: e,
content: t.content,
filters: t.filters,
@@ -69058,8 +69083,8 @@ function EOe({ host: e, props: t, epoch: n }) {
}) : null
] });
}
-function DOe({ host: e, epoch: t, version: n }) {
- let r = N1(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = hR(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || Y1 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
+function MOe({ host: e, epoch: t, version: n }) {
+ let r = M1(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = _R(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || J1 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
(0, F.useEffect)(() => {
let t = e.scroll, n = t.parentElement, r = t.querySelector(":scope > [data-sidebar-head]"), i = new ResizeObserver(() => d());
[
@@ -69078,7 +69103,7 @@ function DOe({ host: e, epoch: t, version: n }) {
i.disconnect(), cancelAnimationFrame(a), document.removeEventListener("board:sidebar", o);
};
}, [e, d]);
- let f = bOe(c, i, r, () => requestAnimationFrame(d)), p = e.scroll.parentElement;
+ let f = TOe(c, i, r, () => requestAnimationFrame(d)), p = e.scroll.parentElement;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-sidebar-nav": "",
ref: c,
@@ -69114,8 +69139,8 @@ function DOe({ host: e, epoch: t, version: n }) {
alt: "",
decoding: "async",
draggable: !1
- }) : /* @__PURE__ */ (0, I.jsx)(mI, { name: r }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
- }, t || Y1);
+ }) : /* @__PURE__ */ (0, I.jsx)(yI, { name: r }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
+ }, t || J1);
}),
f.hint ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-sidebar-drop-line": "",
@@ -69136,8 +69161,8 @@ function DOe({ host: e, epoch: t, version: n }) {
ref: l
}), p) : null] });
}
-var t0 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
-function OOe(e) {
+var e0 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
+function NOe(e) {
if (!e) return null;
let t = /* @__PURE__ */ new Map(), n = [
["loc", e.locations],
@@ -69151,7 +69176,7 @@ function OOe(e) {
for (let [e, r] of n) for (let n of r) t.set(`${e}\n${n.value}`, n.n ?? 0);
return t;
}
-function kOe({ host: e, content: t, filters: n, latest: r }) {
+function POe({ host: e, content: t, filters: n, latest: r }) {
let i = t.kind === "catalog" ? t.key : `follow:${t.selected.join(",")}:${t.tags.map((e) => e.value).join(",")}:${(t.providers || []).map((e) => e.value).join(",")}:${n.provider ?? ""}:${+!!t.duration}:${n.dur_min ?? ""}:${n.dur_max ?? ""}`;
(0, F.useLayoutEffect)(() => {
t.kind === "catalog" && Xs(e.scroll, "drawer");
@@ -69160,8 +69185,8 @@ function kOe({ host: e, content: t, filters: n, latest: r }) {
i,
t.kind
]);
- let a = t.kind === "catalog" ? AOe(e, t.facets, n, r, i) : jOe(e, t, n), o = 0;
- return a.map((e) => e && /* @__PURE__ */ (0, I.jsx)(MOe, {
+ let a = t.kind === "catalog" ? FOe(e, t.facets, n, r, i) : IOe(e, t, n), o = 0;
+ return a.map((e) => e && /* @__PURE__ */ (0, I.jsx)(LOe, {
title: e.title,
kind: e.kind,
active: e.active,
@@ -69170,11 +69195,11 @@ function kOe({ host: e, content: t, filters: n, latest: r }) {
children: e.body
}, e.title));
}
-function AOe(e, t, n, r, i) {
- let a = OOe(r), o = (t, r, i) => {
+function FOe(e, t, n, r, i) {
+ let a = NOe(r), o = (t, r, i) => {
if (!t.length) return null;
- let o = t0(n, r);
- return /* @__PURE__ */ (0, I.jsx)(i0, {
+ let o = e0(n, r);
+ return /* @__PURE__ */ (0, I.jsx)(r0, {
rows: t,
filterKey: r,
multi: i,
@@ -69184,7 +69209,7 @@ function AOe(e, t, n, r, i) {
});
}, s = (t, s, c, l, u, d) => {
if (!c.length) return null;
- let f = t0(n, l), p = c.some((e) => f.includes(e.value));
+ let f = e0(n, l), p = c.some((e) => f.includes(e.value));
if (!d) return {
title: t,
kind: s,
@@ -69196,12 +69221,12 @@ function AOe(e, t, n, r, i) {
title: t,
kind: s,
active: p,
- body: /* @__PURE__ */ (0, I.jsx)(POe, {
+ body: /* @__PURE__ */ (0, I.jsx)(zOe, {
epoch: i,
title: t,
rows: c,
latest: m ?? null,
- limit: xOe[d],
+ limit: EOe[d],
filterKey: l,
selected: f,
counts: a,
@@ -69216,7 +69241,7 @@ function AOe(e, t, n, r, i) {
title: "时长",
kind: "meta",
active: !1,
- body: /* @__PURE__ */ (0, I.jsx)(s0, {
+ body: /* @__PURE__ */ (0, I.jsx)(o0, {
host: e,
filters: n
})
@@ -69231,7 +69256,7 @@ function AOe(e, t, n, r, i) {
title: "关注标签",
kind: "online",
active: !1,
- body: /* @__PURE__ */ (0, I.jsx)(a0, {
+ body: /* @__PURE__ */ (0, I.jsx)(i0, {
rows: t.followTags,
host: e,
selected: null,
@@ -69240,14 +69265,14 @@ function AOe(e, t, n, r, i) {
} : null
];
}
-function jOe(e, t, n) {
- let r = t.providers || [], i = t0(n, "provider"), a = new Set(t.selected);
+function IOe(e, t, n) {
+ let r = t.providers || [], i = e0(n, "provider"), a = new Set(t.selected);
return [
r.length ? {
title: "来源",
kind: "src",
active: r.some((e) => i.includes(e.value)),
- body: /* @__PURE__ */ (0, I.jsx)(i0, {
+ body: /* @__PURE__ */ (0, I.jsx)(r0, {
rows: r,
filterKey: "provider",
multi: !1,
@@ -69261,7 +69286,7 @@ function jOe(e, t, n) {
title: "时长",
kind: "meta",
active: !1,
- body: /* @__PURE__ */ (0, I.jsx)(s0, {
+ body: /* @__PURE__ */ (0, I.jsx)(o0, {
host: e,
filters: n,
commit: e.setFollowDuration
@@ -69271,7 +69296,7 @@ function jOe(e, t, n) {
title: "内容标签",
kind: "online",
active: t.tags.some((e) => a.has(e.value)),
- body: /* @__PURE__ */ (0, I.jsx)(a0, {
+ body: /* @__PURE__ */ (0, I.jsx)(i0, {
rows: t.tags,
host: e,
selected: a,
@@ -69280,19 +69305,19 @@ function jOe(e, t, n) {
} : null
];
}
-function n0(e, t) {
+function t0(e, t) {
let n = null;
try {
n = sessionStorage.getItem(`peach.sidebar.group.${e}`);
} catch {}
return n === null ? t : n === "open";
}
-function MOe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
- let o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(() => n0(e, n)), u = (0, F.useRef)(!1);
+function LOe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
+ let o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(() => t0(e, n)), u = (0, F.useRef)(!1);
(0, F.useLayoutEffect)(() => {
let t = o.current, r = s.current;
if (!t || !r) return;
- let i = u.current ? n0(e, n) : c;
+ let i = u.current ? t0(e, n) : c;
u.current = !0, t.open !== i && (t.open = i, r.inert = !i, r.style.height = "", r.classList.contains("ui-fcollapse") && r.classList.toggle("ui-fcollapse-settled", i), l(i));
}, [i]);
let d = (t) => {
@@ -69313,7 +69338,7 @@ function MOe({ 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)(mI, { name: "chevron-right" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, I.jsx)(yI, { name: "chevron-right" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e })]
}), /* @__PURE__ */ (0, I.jsx)("div", {
ref: s,
"data-sidebar-collapse": "",
@@ -69324,7 +69349,7 @@ function MOe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
children: /* @__PURE__ */ (0, I.jsx)("div", {
"data-sidebar-body": "",
id: `sidebar-group-${encodeURIComponent(e)}`,
- children: /* @__PURE__ */ (0, I.jsx)(r0.Provider, {
+ children: /* @__PURE__ */ (0, I.jsx)(n0.Provider, {
value: d,
children: a
})
@@ -69333,15 +69358,15 @@ function MOe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
})]
});
}
-var r0 = (0, F.createContext)(() => {});
-function NOe({ dot: e }) {
- return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, I.jsx)(mI, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, I.jsx)("img", {
+var n0 = (0, F.createContext)(() => {});
+function ROe({ dot: e }) {
+ return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, I.jsx)(yI, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, I.jsx)("img", {
"data-sidebar-source-icon": "",
src: e.src,
alt: ""
}) : /* @__PURE__ */ (0, I.jsx)("i", { "data-sidebar-cost": e.cost }) : null;
}
-function i0({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a, onToggle: o = a.toggleChip }) {
+function r0({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a, onToggle: o = a.toggleChip }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-sidebar-chips": "",
children: e.map((e) => {
@@ -69358,7 +69383,7 @@ function i0({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a,
title: e.offline || e.label,
onClick: () => o(t, e.value, n),
children: [
- /* @__PURE__ */ (0, I.jsx)(NOe, { dot: e.dot }),
+ /* @__PURE__ */ (0, I.jsx)(ROe, { dot: e.dot }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-sidebar-chip-label": "",
children: e.label
@@ -69373,8 +69398,8 @@ function i0({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a,
})
});
}
-function POe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
- let u = (0, F.useContext)(r0), [d, f] = (0, F.useState)(null), [p, m] = (0, F.useState)(e);
+function zOe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
+ let u = (0, F.useContext)(n0), [d, f] = (0, F.useState)(null), [p, m] = (0, F.useState)(e);
p !== e && (m(e), f(null));
let h = (0, F.useRef)(null), g = (0, F.useRef)(null), _ = !!d?.all, v = d ? d.rows : n;
return (0, F.useLayoutEffect)(() => {
@@ -69389,7 +69414,7 @@ function POe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
e.body.classList.add("ui-fcollapse"), Ho(e.body, e.before, () => !!t?.open && !e.body.inert);
}
t(), requestAnimationFrame(t);
- }, [d, _]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(i0, {
+ }, [d, _]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(r0, {
rows: _ ? v : v.slice(0, i),
filterKey: a,
multi: !1,
@@ -69414,10 +69439,10 @@ function POe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
all: !_
}), _ && u());
},
- children: /* @__PURE__ */ (0, I.jsx)(mI, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, I.jsx)(yI, { name: "chevron-down" })
}) : null] });
}
-function a0({ rows: e, host: t, selected: n, badges: r }) {
+function i0({ rows: e, host: t, selected: n, badges: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-sidebar-chips": "",
children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)("button", {
@@ -69439,10 +69464,10 @@ function a0({ rows: e, host: t, selected: n, badges: r }) {
}, e.value))
});
}
-var o0 = (e, t) => e ? Math.min(X1, Number(e) / 60) : t;
-function s0({ host: e, filters: t, commit: n = e.setDuration }) {
- let r = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [i, a] = (0, F.useState)(r), [o, s] = (0, F.useState)(() => [o0(t.dur_min, 0), o0(t.dur_max, X1)]), [c, l] = (0, F.useState)("max");
- i !== r && (a(r), s([o0(t.dur_min, 0), o0(t.dur_max, X1)]));
+var a0 = (e, t) => e ? Math.min(Y1, Number(e) / 60) : t;
+function o0({ host: e, filters: t, commit: n = e.setDuration }) {
+ let r = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [i, a] = (0, F.useState)(r), [o, s] = (0, F.useState)(() => [a0(t.dur_min, 0), a0(t.dur_max, Y1)]), [c, l] = (0, F.useState)("max");
+ i !== r && (a(r), s([a0(t.dur_min, 0), a0(t.dur_max, Y1)]));
let [u, d] = o, f = (0, F.useRef)(null), p = (0, F.useRef)(null), m = (0, F.useRef)(null), h = (0, F.useRef)(o);
h.current = o;
let g = (e, t) => {
@@ -69455,11 +69480,11 @@ function s0({ host: e, filters: t, commit: n = e.setDuration }) {
}, [n]), (0, F.useLayoutEffect)(() => {
let e = f.current;
if (!e) return;
- e.style.setProperty("--lo", `${u / X1 * 100}%`), e.style.setProperty("--hi", `${d / X1 * 100}%`);
+ e.style.setProperty("--lo", `${u / Y1 * 100}%`), e.style.setProperty("--hi", `${d / Y1 * 100}%`);
let t = e.getBoundingClientRect();
e.querySelectorAll("[data-sidebar-range-tip]").forEach((e) => {
let n = e.dataset.rangeEnd === "max" ? d : u;
- e.style.left = `${n / X1 * 100}%`, e.style.setProperty("--range-tip-shift", "0px");
+ e.style.left = `${n / Y1 * 100}%`, e.style.setProperty("--range-tip-shift", "0px");
let r = e.getBoundingClientRect(), i = r.right > t.right ? t.right - r.right : r.left < t.left ? t.left - r.left : 0;
i && e.style.setProperty("--range-tip-shift", `${Math.round(i)}px`);
});
@@ -69469,7 +69494,7 @@ function s0({ host: e, filters: t, commit: n = e.setDuration }) {
"data-range-end": e,
"data-range-active": c === e ? "" : void 0,
"aria-hidden": "true",
- children: e === "max" && t >= X1 ? "不限" : `${t} 分钟`
+ children: e === "max" && t >= Y1 ? "不限" : `${t} 分钟`
});
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-sidebar-duration": "",
@@ -69484,7 +69509,7 @@ function s0({ host: e, filters: t, commit: n = e.setDuration }) {
id: "durMin",
type: "range",
min: "0",
- max: X1,
+ max: Y1,
step: "5",
value: u,
"aria-label": "最短时长(分钟)",
@@ -69495,7 +69520,7 @@ function s0({ host: e, filters: t, commit: n = e.setDuration }) {
id: "durMax",
type: "range",
min: "0",
- max: X1,
+ max: Y1,
step: "5",
value: d,
"aria-label": "最长时长(分钟)",
@@ -69509,7 +69534,7 @@ function s0({ host: e, filters: t, commit: n = e.setDuration }) {
});
}
// src/diagnostics-skeleton.ts
-function c0() {
+function s0() {
let e = (e) => Es({
label: e,
variant: "secondary",
@@ -69523,11 +69548,11 @@ function c0() {
</div></div>`;
}
// src/react/settings/library-policy-copy.ts
-var l0 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式只决定要不要联网补全。", FOe = [
+var c0 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式只决定要不要联网补全。", BOe = [
"自动补全",
"仅使用本地资料",
"自定义"
-], IOe = [
+], VOe = [
[
"读本地 NFO 和图片",
"✓",
@@ -69558,7 +69583,7 @@ var l0 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式
"—",
"可选"
]
-], LOe = "本地只有竖版海报时:自动补全会联网找完整封套(FC2 商品图除外),仅使用本地资料直接用竖版。", u0 = "一个媒体库可以有多个文件夹,作品合在一起显示,共用名称、颜色和处理方式;要分开显示或分开设置时再添加媒体库。", d0 = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", f0 = "只填域名,留空用默认地址", ROe = [
+], HOe = "本地只有竖版海报时:自动补全会联网找完整封套(FC2 商品图除外),仅使用本地资料直接用竖版。", l0 = "一个媒体库可以有多个文件夹,作品合在一起显示,共用名称、颜色和处理方式;要分开显示或分开设置时再添加媒体库。", u0 = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", d0 = "只填域名,留空用默认地址", UOe = [
{
provider: "coomer",
label: "Coomer",
@@ -69648,8 +69673,8 @@ var l0 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式
label: "SubscribeStar",
requirement: "none"
}
-], p0 = "API 代理用于列目录和查询文件信息,数据代理用于读取视频及配套文件。保存后,同一网盘账号在 CloudDrive 中的其他读取也会使用此设置。", zOe = "peach.configuration.shape.v1";
-function m0() {
+], f0 = "API 代理用于列目录和查询文件信息,数据代理用于读取视频及配套文件。保存后,同一网盘账号在 CloudDrive 中的其他读取也会使用此设置。", WOe = "peach.configuration.shape.v1";
+function p0() {
try {
let e = JSON.parse(localStorage.getItem("peach.configuration.shape.v1") || "{}");
return e && typeof e == "object" ? e : {};
@@ -69657,28 +69682,28 @@ function m0() {
return {};
}
}
-function BOe(e, t) {
+function GOe(e, t) {
try {
- let n = m0();
+ let n = p0();
if (JSON.stringify(n[e]) === JSON.stringify(t)) return;
- localStorage.setItem(zOe, JSON.stringify({
+ localStorage.setItem(WOe, JSON.stringify({
...n,
[e]: t
}));
} catch {}
}
-var h0 = (e) => m0()[e], g0 = (e) => e === !0, _0 = (e, t) => Number.isInteger(e) && e > 0 ? Math.min(e, t) : 0, v0 = (e, t, n) => Array.isArray(e) ? e.slice(0, t).map(n) : [], y0 = "disabled data-skeleton-action", b0 = (e = "60%") => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, x0 = (e = "100%") => `<span class="skeleton ui-configuration-skeleton-input" style="width:${e}"></span>`, S0 = (e, t) => `<span class="skeleton shrink-0" style="width:${e};height:${t}"></span>`, C0 = (e = "3em") => S0(e, "24px"), w0 = () => S0("var(--icon-inline)", "var(--icon-inline)"), T0 = (e, t = "primary", n = "medium") => Es({
+var m0 = (e) => p0()[e], h0 = (e) => e === !0, g0 = (e, t) => Number.isInteger(e) && e > 0 ? Math.min(e, t) : 0, _0 = (e, t, n) => Array.isArray(e) ? e.slice(0, t).map(n) : [], v0 = "disabled data-skeleton-action", y0 = (e = "60%") => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, b0 = (e = "100%") => `<span class="skeleton ui-configuration-skeleton-input" style="width:${e}"></span>`, x0 = (e, t) => `<span class="skeleton shrink-0" style="width:${e};height:${t}"></span>`, S0 = (e = "3em") => x0(e, "24px"), C0 = () => x0("var(--icon-inline)", "var(--icon-inline)"), w0 = (e, t = "primary", n = "medium") => Es({
label: e,
variant: t,
size: n,
- attrs: y0
-}), E0 = (e, t = "") => `<div class="-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3">${t ? `<div class="mr-auto min-w-0 text-body-2-regular text-text-secondary">${t}</div>` : ""}${e}</div>`, D0 = (e, t = !1) => `<div class="flex flex-col gap-4 ${t ? "border-t border-separator-border " : ""}py-4 pr-3">${e}</div>`, VOe = (e, t, n) => {
- let r = `<p class="w-full px-3 text-body-2-medium text-text-secondary">${n ? `<span class="inline-flex items-center gap-1.5">${w0()}${e}</span>` : e}</p>`;
+ attrs: v0
+}), T0 = (e, t = "") => `<div class="-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3">${t ? `<div class="mr-auto min-w-0 text-body-2-regular text-text-secondary">${t}</div>` : ""}${e}</div>`, E0 = (e, t = !1) => `<div class="flex flex-col gap-4 ${t ? "border-t border-separator-border " : ""}py-4 pr-3">${e}</div>`, KOe = (e, t, n) => {
+ let r = `<p class="w-full px-3 text-body-2-medium text-text-secondary">${n ? `<span class="inline-flex items-center gap-1.5">${C0()}${e}</span>` : e}</p>`;
return t ? `<div class="flex w-full flex-wrap items-center justify-between gap-2"><div class="min-w-40 flex-1">${r}</div><div class="flex min-w-0 max-w-full">${t}</div></div>` : r;
-}, O0 = (e, t, n = "", { aside: r = "", status: i = "", mark: a = !1 } = {}) => `<section aria-label="${e}" class="flex w-full flex-col gap-2 wrap-anywhere">${VOe(e, r, a)}<div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}${n ? E0(n, i) : ""}</div></section>`, k0 = (e, t, n) => `<div class="flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5 border-b border-separator-border last:border-b-0"><div class="flex min-w-0 flex-col"><p class="text-body-regular text-text-primary">${e}</p>${t ? `<p class="text-body-2-regular text-text-secondary">${t}</p>` : ""}</div>${n}</div>`, A0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => k0(e, t, `<span class="skeleton ${n}"></span>`), j0 = (e, t = "4em") => k0(e, "", b0(t)), M0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, N0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, P0 = (e, t = "") => `<div class="flex w-full flex-col items-start gap-1"><span class="flex items-center gap-0.5 text-body-medium text-text-primary">${e}</span>${x0()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, F0 = (e) => `<div class="flex flex-col gap-1">${N0(e)}${Os(b0("8em"))}</div>`, I0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${S0("16px", "16px")}${e}</span>`, L0 = (e) => `<span class="inline-flex items-center gap-1">${w0()}${e}</span>`, R0 = (e, t = !1) => `<span class="flex w-fit items-center gap-1 text-body-2-medium text-text-secondary">${Cs("chevron-right", `size-(--icon-inline) shrink-0${t ? " rotate-90" : ""}`)}${e}</span>`, HOe = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), z0 = (e) => `<dl class="ui-settings-facts flex flex-col">${e.map((e) => `<div class="flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0"><dt class="flex max-w-1/2 min-w-0 shrink-0 items-center gap-2 text-body-regular text-text-secondary">${e}</dt><dd class="flex min-w-0 flex-wrap items-center justify-end gap-2 text-body-regular text-text-primary">${HOe.has(e) ? b0("100%") + b0("80%") + b0("6em") : b0("6em")}</dd></div>`).join("")}</dl>`, UOe = ROe;
-function WOe(e = h0("credentials")) {
- let t = new Set(v0(e?.done, 64, String));
- return UOe.map((e) => {
+}, D0 = (e, t, n = "", { aside: r = "", status: i = "", mark: a = !1 } = {}) => `<section aria-label="${e}" class="flex w-full flex-col gap-2 wrap-anywhere">${KOe(e, r, a)}<div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}${n ? T0(n, i) : ""}</div></section>`, O0 = (e, t, n) => `<div class="flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5 border-b border-separator-border last:border-b-0"><div class="flex min-w-0 flex-col"><p class="text-body-regular text-text-primary">${e}</p>${t ? `<p class="text-body-2-regular text-text-secondary">${t}</p>` : ""}</div>${n}</div>`, k0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => O0(e, t, `<span class="skeleton ${n}"></span>`), A0 = (e, t = "4em") => O0(e, "", y0(t)), j0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, M0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, N0 = (e, t = "") => `<div class="flex w-full flex-col items-start gap-1"><span class="flex items-center gap-0.5 text-body-medium text-text-primary">${e}</span>${b0()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, P0 = (e) => `<div class="flex flex-col gap-1">${M0(e)}${Os(y0("8em"))}</div>`, F0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${x0("16px", "16px")}${e}</span>`, I0 = (e) => `<span class="inline-flex items-center gap-1">${C0()}${e}</span>`, L0 = (e, t = !1) => `<span class="flex w-fit items-center gap-1 text-body-2-medium text-text-secondary">${Cs("chevron-right", `size-(--icon-inline) shrink-0${t ? " rotate-90" : ""}`)}${e}</span>`, qOe = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), R0 = (e) => `<dl class="ui-settings-facts flex flex-col">${e.map((e) => `<div class="flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0"><dt class="flex max-w-1/2 min-w-0 shrink-0 items-center gap-2 text-body-regular text-text-secondary">${e}</dt><dd class="flex min-w-0 flex-wrap items-center justify-end gap-2 text-body-regular text-text-primary">${qOe.has(e) ? y0("100%") + y0("80%") + y0("6em") : y0("6em")}</dd></div>`).join("")}</dl>`, JOe = UOe;
+function YOe(e = m0("credentials")) {
+ let t = new Set(_0(e?.done, 64, String));
+ return JOe.map((e) => {
let n = t.has(e.provider);
return {
...e,
@@ -69687,134 +69712,134 @@ function WOe(e = h0("credentials")) {
};
});
}
-function GOe(e) {
- let t = e.fields ?? [], n = e.requirement !== "none" && e.requirement !== "blocked", r = C0() + (n && !e.done ? t.map(() => C0("4.5em")).join("") : ""), i = `<span class="flex min-w-0 flex-wrap items-center gap-2">${S0("14px", "14px")}<b class="min-w-0 text-body-medium wrap-anywhere text-text-primary">${B(e.label)}</b>${r}</span>`;
- if (!n) return `<div class="flex flex-wrap items-center gap-3 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4">${i}${e.requirement === "blocked" && e.why ? M0(B(e.why)) : ""}</div>`;
- let a = e.open ? "<div class=\"flex flex-col gap-2 pt-3\"><div class=\"flex flex-col gap-3\">" + M0(`${B(e.why ?? "")}${e.where ? " 获取凭据" : ""}`) + (e.howto ? M0(B(e.howto)) : "") + `<div class="flex w-full flex-col gap-3">${t.map((e) => P0(B(e))).join("")}</div><div class="flex flex-wrap items-center gap-2">${T0("保存配置")}</div>${R0("凭据文件")}</div></div>` : "";
- return `<div class="flex flex-col gap-2 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4">${i}<div>${R0(e.done ? "修改凭据" : "填写凭据", e.open)}${a}</div></div>`;
+function XOe(e) {
+ let t = e.fields ?? [], n = e.requirement !== "none" && e.requirement !== "blocked", r = S0() + (n && !e.done ? t.map(() => S0("4.5em")).join("") : ""), i = `<span class="flex min-w-0 flex-wrap items-center gap-2">${x0("14px", "14px")}<b class="min-w-0 text-body-medium wrap-anywhere text-text-primary">${B(e.label)}</b>${r}</span>`;
+ if (!n) return `<div class="flex flex-wrap items-center gap-3 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4">${i}${e.requirement === "blocked" && e.why ? j0(B(e.why)) : ""}</div>`;
+ let a = e.open ? "<div class=\"flex flex-col gap-2 pt-3\"><div class=\"flex flex-col gap-3\">" + j0(`${B(e.why ?? "")}${e.where ? " 获取凭据" : ""}`) + (e.howto ? j0(B(e.howto)) : "") + `<div class="flex w-full flex-col gap-3">${t.map((e) => N0(B(e))).join("")}</div><div class="flex flex-wrap items-center gap-2">${w0("保存配置")}</div>${L0("凭据文件")}</div></div>` : "";
+ return `<div class="flex flex-col gap-2 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4">${i}<div>${L0(e.done ? "修改凭据" : "填写凭据", e.open)}${a}</div></div>`;
}
-function B0() {
- let e = WOe(), t = e.filter((e) => e.requirement === "required" && !e.done).length;
- return O0("来源凭据", D0(`<div class="flex flex-col gap-4">${[
+function z0() {
+ let e = YOe(), t = e.filter((e) => e.requirement === "required" && !e.done).length;
+ return D0("来源凭据", E0(`<div class="flex flex-col gap-4">${[
["可配置凭据", e.filter((e) => e.requirement !== "none" && e.requirement !== "blocked")],
["不需要凭据", e.filter((e) => e.requirement === "none")],
["暂不支持", e.filter((e) => e.requirement === "blocked")]
- ].filter(([, e]) => e.length).map(([e, t]) => `<div class="flex flex-col gap-2"><h4 class="text-body-medium text-text-secondary">${e}</h4><div class="min-w-0 border border-separator-border bg-background-primary-default rounded-surface flex flex-col overflow-hidden">${t.map(GOe).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? b0("5em") : "" });
+ ].filter(([, e]) => e.length).map(([e, t]) => `<div class="flex flex-col gap-2"><h4 class="text-body-medium text-text-secondary">${e}</h4><div class="min-w-0 border border-separator-border bg-background-primary-default rounded-surface flex flex-col overflow-hidden">${t.map(XOe).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? y0("5em") : "" });
}
-function V0() {
- let e = v0(h0("indexers")?.open, 20, g0).map((e) => `<div class="min-w-0 border-t border-separator-border pt-2"><span class="flex w-full min-w-0 items-center gap-1 text-body-2-medium">${Cs("chevron-right", `size-(--icon-inline) shrink-0 text-text-secondary${e ? " rotate-90" : ""}`)}${b0("6em")}${b0("12em")}</span>` + (e ? `<div class="flex flex-col gap-2 pt-3"><div class="flex min-w-0 flex-col gap-4">${P0("名称")}${P0("Torznab 地址")}${P0("API key")}<div class="flex flex-wrap items-center gap-x-6 gap-y-2">${I0("启用")}${T0("移除", "secondary", "small")}</div></div></div>` : "") + "</div>").join("");
- return O0("资源搜索", D0(`<div class="flex min-w-0 flex-col gap-4">${R0("索引器连接帮助")}${e}</div>`), T0("添加索引器", "secondary") + T0("保存配置"));
+function B0() {
+ let e = _0(m0("indexers")?.open, 20, h0).map((e) => `<div class="min-w-0 border-t border-separator-border pt-2"><span class="flex w-full min-w-0 items-center gap-1 text-body-2-medium">${Cs("chevron-right", `size-(--icon-inline) shrink-0 text-text-secondary${e ? " rotate-90" : ""}`)}${y0("6em")}${y0("12em")}</span>` + (e ? `<div class="flex flex-col gap-2 pt-3"><div class="flex min-w-0 flex-col gap-4">${N0("名称")}${N0("Torznab 地址")}${N0("API key")}<div class="flex flex-wrap items-center gap-x-6 gap-y-2">${F0("启用")}${w0("移除", "secondary", "small")}</div></div></div>` : "") + "</div>").join("");
+ return D0("资源搜索", E0(`<div class="flex min-w-0 flex-col gap-4">${L0("索引器连接帮助")}${e}</div>`), w0("添加索引器", "secondary") + w0("保存配置"));
}
-function H0() {
- let e = h0("javBrowser"), t = g0(e?.enabled);
- return O0("浏览器添加 JAV", D0(`<div class="flex min-w-0 flex-col gap-4">${`<div class="min-w-0 bg-background-primary-default rounded-2xl shadow-card p-5 border border-border-button-default flex flex-col gap-3"><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-medium text-text-primary">Peach 用户脚本</span>${b0("4em")}</div><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-regular text-text-secondary">浏览器添加</span>${C0()}</div><p class="text-caption-1-regular text-text-secondary">${b0("70%")}</p><div class="flex flex-wrap items-center gap-2">${T0("重新检测", "secondary")}</div></div>`}${F0("浏览器添加的下载渠道")}${g0(e?.ready) ? "" : M0("请在媒体库中添加支持云下载的网盘,并配置账号与目标目录。")}${P0("Peach 地址")}</div>`), (t ? T0("关闭浏览器添加", "secondary") : "") + T0(t ? "更新渠道与令牌" : "启用并生成令牌"));
+function V0() {
+ let e = m0("javBrowser"), t = h0(e?.enabled);
+ return D0("浏览器添加 JAV", E0(`<div class="flex min-w-0 flex-col gap-4">${`<div class="min-w-0 bg-background-primary-default rounded-2xl shadow-card p-5 border border-border-button-default flex flex-col gap-3"><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-medium text-text-primary">Peach 用户脚本</span>${y0("4em")}</div><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-regular text-text-secondary">浏览器添加</span>${S0()}</div><p class="text-caption-1-regular text-text-secondary">${y0("70%")}</p><div class="flex flex-wrap items-center gap-2">${w0("重新检测", "secondary")}</div></div>`}${P0("浏览器添加的下载渠道")}${h0(e?.ready) ? "" : j0("请在媒体库中添加支持云下载的网盘,并配置账号与目标目录。")}${N0("Peach 地址")}</div>`), (t ? w0("关闭浏览器添加", "secondary") : "") + w0(t ? "更新渠道与令牌" : "启用并生成令牌"));
}
-var U0 = (e, t) => `<div class="flex min-w-0 flex-col gap-3">${N0(e)}${Os(b0("6em"))}` + (t ? `<div class="flex flex-wrap gap-3"><div class="min-w-40 flex-1">${P0(`${e}地址`)}</div><div class="w-full sm:w-28">${P0(`${e}端口`)}</div></div>${R0("代理认证")}` : "") + "</div>";
-function W0() {
- let e = h0("cloudProxy"), t = v0(e?.accounts, 12, (e) => Array.isArray(e) ? [g0(e[0]), g0(e[1])] : [!1, !1]), n = _0(e?.unlinked, 12), r = t.length || n ? Array.from({ length: n }, () => `<div class="flex min-w-0 flex-col gap-1">${N0(L0(b0("6em")))}${M0(b0("9em"))}</div>`).join("") + t.map(([e, t]) => `<div class="flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4">${N0(L0(b0("8em")))}${M0(b0("50%"))}${U0("数据代理", e)}${U0("API 代理", t)}<div class="flex justify-end">${T0("保存配置")}</div></div>`).join("") : M0(b0("60%"));
- return O0("CloudDrive 代理", D0(`${M0(p0)}<div class="flex min-w-0 flex-col gap-4">${r}</div>`), T0("重新读取", "secondary"));
+var H0 = (e, t) => `<div class="flex min-w-0 flex-col gap-3">${M0(e)}${Os(y0("6em"))}` + (t ? `<div class="flex flex-wrap gap-3"><div class="min-w-40 flex-1">${N0(`${e}地址`)}</div><div class="w-full sm:w-28">${N0(`${e}端口`)}</div></div>${L0("代理认证")}` : "") + "</div>";
+function U0() {
+ let e = m0("cloudProxy"), t = _0(e?.accounts, 12, (e) => Array.isArray(e) ? [h0(e[0]), h0(e[1])] : [!1, !1]), n = g0(e?.unlinked, 12), r = t.length || n ? Array.from({ length: n }, () => `<div class="flex min-w-0 flex-col gap-1">${M0(I0(y0("6em")))}${j0(y0("9em"))}</div>`).join("") + t.map(([e, t]) => `<div class="flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4">${M0(I0(y0("8em")))}${j0(y0("50%"))}${H0("数据代理", e)}${H0("API 代理", t)}<div class="flex justify-end">${w0("保存配置")}</div></div>`).join("") : j0(y0("60%"));
+ return D0("CloudDrive 代理", E0(`${j0(f0)}<div class="flex min-w-0 flex-col gap-4">${r}</div>`), w0("重新读取", "secondary"));
}
-var G0 = (e, t, n) => `<div class="flex min-w-0 flex-col gap-1 ${n}"><span class="flex items-center gap-0.5 text-body-medium text-text-primary" aria-hidden="true">${e}</span>${t}</div>`, KOe = (e) => `<div data-folder-row class="@container flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3">
- <div class="flex items-start gap-2"><span class="min-w-0 flex-1">${x0()}</span>${Es({
+var W0 = (e, t, n) => `<div class="flex min-w-0 flex-col gap-1 ${n}"><span class="flex items-center gap-0.5 text-body-medium text-text-primary" aria-hidden="true">${e}</span>${t}</div>`, ZOe = (e) => `<div data-folder-row class="@container flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3">
+ <div class="flex items-start gap-2"><span class="min-w-0 flex-1">${b0()}</span>${Es({
glyph: "folder-search",
variant: "secondary",
- attrs: y0
+ attrs: v0
})}</div>
- <div class="flex flex-wrap items-end gap-2"><div class="flex w-full flex-wrap items-start gap-2">${G0("来源", Os(b0("6em")), "w-full @lg:w-60")}${G0("读取策略", Os(b0("4em")), "w-full @lg:w-32")}${e > 1 ? G0("移到媒体库", Os(b0("4em")), "w-full @lg:w-48") : ""}</div></div>
- </div>`, qOe = (e, t) => `<div data-library-block class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col p-2">
+ <div class="flex flex-wrap items-end gap-2"><div class="flex w-full flex-wrap items-start gap-2">${W0("来源", Os(y0("6em")), "w-full @lg:w-60")}${W0("读取策略", Os(y0("4em")), "w-full @lg:w-32")}${e > 1 ? W0("移到媒体库", Os(y0("4em")), "w-full @lg:w-48") : ""}</div></div>
+ </div>`, QOe = (e, t) => `<div data-library-block class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col p-2">
<div data-library-head>${Es({
label: "自动识别",
variant: "secondary",
- attrs: y0
-})}${x0()}<span class="skeleton ui-configuration-skeleton-input" style="width:136px"></span>${Os(b0("4em"), { prefix: "处理方式" })}</div>
- <div data-library-folders>${KOe(t).repeat(e)}<div class="flex">${Es({
+ attrs: v0
+})}${b0()}<span class="skeleton ui-configuration-skeleton-input" style="width:136px"></span>${Os(y0("4em"), { prefix: "处理方式" })}</div>
+ <div data-library-folders>${ZOe(t).repeat(e)}<div class="flex">${Es({
label: "添加文件夹",
variant: "secondary",
- attrs: y0
-})}</div></div></div>`, JOe = `<div data-policy-legend class="flex flex-col gap-1"><p class="text-body-2-regular text-text-secondary">${l0}</p><span class="flex items-center gap-1 text-body-2-medium text-text-secondary">三种处理方式对比</span></div>`, YOe = "<p class=\"text-body-2-regular text-text-secondary\">读取策略选「代理保护」时,会限制自动读取视频。</p><div class=\"flex flex-col gap-3\"><span class=\"flex items-center gap-1 text-body-2-medium text-text-secondary\">CloudDrive 设置帮助</span></div>";
-function XOe(e = h0("media")) {
- let t = v0(e?.folders, 12, (e) => _0(e, 50)).filter(Boolean);
+ attrs: v0
+})}</div></div></div>`, $Oe = `<div data-policy-legend class="flex flex-col gap-1"><p class="text-body-2-regular text-text-secondary">${c0}</p><span class="flex items-center gap-1 text-body-2-medium text-text-secondary">三种处理方式对比</span></div>`, eke = "<p class=\"text-body-2-regular text-text-secondary\">读取策略选「代理保护」时,会限制自动读取视频。</p><div class=\"flex flex-col gap-3\"><span class=\"flex items-center gap-1 text-body-2-medium text-text-secondary\">CloudDrive 设置帮助</span></div>";
+function tke(e = m0("media")) {
+ let t = _0(e?.folders, 12, (e) => g0(e, 50)).filter(Boolean);
return t.length ? {
folders: t,
- cloud: g0(e?.cloud)
+ cloud: h0(e?.cloud)
} : {
folders: [1],
cloud: !1
};
}
-function ZOe() {
- let e = h0("discovery"), t = g0(e?.enabled), n = t && g0(e?.cloud), r = n && g0(e?.webhook), i = `<div class="flex items-start gap-2"><span class="min-w-0 flex-1">${x0()}</span>${Os(b0("4em"), { prefix: "对应目录" })}${Es({
+function nke() {
+ let e = m0("discovery"), t = h0(e?.enabled), n = t && h0(e?.cloud), r = n && h0(e?.webhook), i = `<div class="flex items-start gap-2"><span class="min-w-0 flex-1">${b0()}</span>${Os(y0("4em"), { prefix: "对应目录" })}${Es({
glyph: "trash",
variant: "secondary",
- attrs: y0
+ attrs: v0
})}</div>`;
- return O0("自动发现新文件", D0(`<div class="flex flex-wrap items-center gap-2"><span class="text-body-regular text-text-secondary">本机监视</span>${C0()}</div>`) + A0("发现新文件后自动入库", t ? b0("10em") : "") + A0("监视本机文件夹", t && g0(e?.watchLocal) ? b0("12em") : "") + A0("接收 CloudDrive2 通知") + (n ? k0("Webhook 配置", b0("20em"), "") : "") + (r ? D0(R0("查看配置"), !0) : "") + (n ? D0(`<div class="flex flex-col gap-3">${N0("云端路径前缀")}<div class="flex flex-col gap-3">${i.repeat(_0(e?.prefixes, 20))}</div><div>${T0("添加前缀", "secondary")}</div></div>`, !0) : ""), (r ? T0("更换密钥", "secondary") : "") + T0("保存配置"));
-}
-var QOe = () => {
- let e = XOe();
- return O0("媒体库与目录", D0(`${JOe}<div class="flex flex-col gap-4">${e.folders.map((t) => qOe(t, e.folders.length)).join("")}</div>
- <div class="self-start">${T0("添加媒体库", "secondary")}</div>
- <p class="text-body-2-regular text-text-secondary">${u0}</p>
- ${e.cloud ? YOe : ""}<span class="text-body-medium text-text-primary">${b0("15em")}</span>`), T0("保存配置"), { status: "保存后 Peach 会重新启动。" }) + (e.cloud ? W0() : "") + ZOe() + O0("番号识别规则", D0(`${b0("90%")}${b0("60%")}<span class="skeleton ui-configuration-skeleton-input" style="width:100%;height:88px"></span>`), T0("保存配置")) + O0("视频预览", A0("生成视频预览", "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。") + A0("时间轴预览", "按所选间隔抽帧,仅处理本机磁盘上的视频。", "ui-configuration-skeleton-select") + A0("抽帧解码方式", "用于生成封面、九宫格和时间轴。", "ui-configuration-skeleton-select"));
-}, $Oe = () => `<div>${T0("采集来源与登录状态", "secondary")}</div>` + B0() + O0("关注采集", k0("自动检查更新", "", "<span class=\"flex items-center gap-2\"><span class=\"skeleton ui-configuration-skeleton-toggle\"></span><span class=\"skeleton ui-configuration-skeleton-input\" style=\"width:96px\"></span></span>") + j0("订阅源拉取") + A0("首次采集范围", "", "ui-configuration-skeleton-select") + j0("头像刷新") + j0("favicon 刷新")) + V0() + O0("作品资料站点", D0(`<p class="text-body-2-regular text-text-secondary">${d0}</p>${P0(L0("JavDB 地址"), f0)}${P0(L0("MISSAV 地址"), f0)}`), T0("保存配置")), eke = () => {
- let e = h0("downloads"), t = g0(e?.pikpak), n = g0(e?.pikpakRoots) ? F0(L0("PikPak 根目录对应的媒体目录")) : `<div class="flex flex-col gap-1">${N0(L0("PikPak 根目录对应的媒体目录"))}${M0("先在「媒体库与入库」添加 PikPak 挂载文件夹。")}</div>`, r = g0(e?.cloud) ? O0("云下载", D0(P0("CloudDrive2 地址") + P0("CloudDrive2 API 令牌", "需要离线任务权限。") + (g0(e?.has115) ? P0(L0("115 目标目录"), "应位于自动入库的云端路径前缀内。") : "") + (t ? P0(L0("PikPak 目标目录"), "目录要已经存在。") + n : "") + P0("等待上限(小时)", b0("14em"))), T0("检查连接", "secondary") + T0("保存配置")) : "", i = g0(e?.pikpakLoggedIn);
- return r + (t ? O0("PikPak 账号", i ? z0(["账号", b0("4em")]) : D0(P0("账号") + P0("密码") + I0("保存密码,登录过期时自动重新登录")), i ? T0("登出", "secondary") : (g0(e?.browserLogin) ? T0("用浏览器登录", "secondary") : "") + T0("登录"), {
- aside: C0(),
+ return D0("自动发现新文件", E0(`<div class="flex flex-wrap items-center gap-2"><span class="text-body-regular text-text-secondary">本机监视</span>${S0()}</div>`) + k0("发现新文件后自动入库", t ? y0("10em") : "") + k0("监视本机文件夹", t && h0(e?.watchLocal) ? y0("12em") : "") + k0("接收 CloudDrive2 通知") + (n ? O0("Webhook 配置", y0("20em"), "") : "") + (r ? E0(L0("查看配置"), !0) : "") + (n ? E0(`<div class="flex flex-col gap-3">${M0("云端路径前缀")}<div class="flex flex-col gap-3">${i.repeat(g0(e?.prefixes, 20))}</div><div>${w0("添加前缀", "secondary")}</div></div>`, !0) : ""), (r ? w0("更换密钥", "secondary") : "") + w0("保存配置"));
+}
+var rke = () => {
+ let e = tke();
+ return D0("媒体库与目录", E0(`${$Oe}<div class="flex flex-col gap-4">${e.folders.map((t) => QOe(t, e.folders.length)).join("")}</div>
+ <div class="self-start">${w0("添加媒体库", "secondary")}</div>
+ <p class="text-body-2-regular text-text-secondary">${l0}</p>
+ ${e.cloud ? eke : ""}<span class="text-body-medium text-text-primary">${y0("15em")}</span>`), w0("保存配置"), { status: "保存后 Peach 会重新启动。" }) + (e.cloud ? U0() : "") + nke() + D0("番号识别规则", E0(`${y0("90%")}${y0("60%")}<span class="skeleton ui-configuration-skeleton-input" style="width:100%;height:88px"></span>`), w0("保存配置")) + D0("视频预览", k0("生成视频预览", "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。") + k0("时间轴预览", "按所选间隔抽帧,仅处理本机磁盘上的视频。", "ui-configuration-skeleton-select") + k0("抽帧解码方式", "用于生成封面、九宫格和时间轴。", "ui-configuration-skeleton-select"));
+}, ike = () => `<div>${w0("采集来源与登录状态", "secondary")}</div>` + z0() + D0("关注采集", O0("自动检查更新", "", "<span class=\"flex items-center gap-2\"><span class=\"skeleton ui-configuration-skeleton-toggle\"></span><span class=\"skeleton ui-configuration-skeleton-input\" style=\"width:96px\"></span></span>") + A0("订阅源拉取") + k0("首次采集范围", "", "ui-configuration-skeleton-select") + A0("头像刷新") + A0("favicon 刷新")) + B0() + D0("作品资料站点", E0(`<p class="text-body-2-regular text-text-secondary">${u0}</p>${N0(I0("JavDB 地址"), d0)}${N0(I0("MISSAV 地址"), d0)}`), w0("保存配置")), ake = () => {
+ let e = m0("downloads"), t = h0(e?.pikpak), n = h0(e?.pikpakRoots) ? P0(I0("PikPak 根目录对应的媒体目录")) : `<div class="flex flex-col gap-1">${M0(I0("PikPak 根目录对应的媒体目录"))}${j0("先在「媒体库与入库」添加 PikPak 挂载文件夹。")}</div>`, r = h0(e?.cloud) ? D0("云下载", E0(N0("CloudDrive2 地址") + N0("CloudDrive2 API 令牌", "需要离线任务权限。") + (h0(e?.has115) ? N0(I0("115 目标目录"), "应位于自动入库的云端路径前缀内。") : "") + (t ? N0(I0("PikPak 目标目录"), "目录要已经存在。") + n : "") + N0("等待上限(小时)", y0("14em"))), w0("检查连接", "secondary") + w0("保存配置")) : "", i = h0(e?.pikpakLoggedIn);
+ return r + (t ? D0("PikPak 账号", i ? R0(["账号", y0("4em")]) : E0(N0("账号") + N0("密码") + F0("保存密码,登录过期时自动重新登录")), i ? w0("登出", "secondary") : (h0(e?.browserLogin) ? w0("用浏览器登录", "secondary") : "") + w0("登录"), {
+ aside: S0(),
mark: !0
- }) : "") + H0();
-}, K0 = {
+ }) : "") + V0();
+}, G0 = {
legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",
locked: "访问设置无法读取,请在本机检查配置文件。",
password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"
-}, q0 = {
+}, K0 = {
quick: "临时预览用,地址随机,重启后会变。启动前要先设置访问密码。",
named: "使用你在 Cloudflare 绑定的固定域名。启动前要先设置访问密码。"
};
-function tke(e) {
- let t = e === "locked" ? "" : P0(e === "password" ? "新访问密码 *" : "设置访问密码 *", "至少 8 个字符。保存后其他设备需要重新登录。") + P0(e === "password" ? "确认新访问密码 *" : "确认访问密码 *");
- return (K0[e] ? M0(K0[e]) : "") + (e === "open" ? S0("100%", "64px") : "") + (e === "password" || e === "legacy" ? I0("关闭访问密码") : "") + (e === "password" ? P0("当前访问密码 *") : "") + t;
+function oke(e) {
+ let t = e === "locked" ? "" : N0(e === "password" ? "新访问密码 *" : "设置访问密码 *", "至少 8 个字符。保存后其他设备需要重新登录。") + N0(e === "password" ? "确认新访问密码 *" : "确认访问密码 *");
+ return (G0[e] ? j0(G0[e]) : "") + (e === "open" ? x0("100%", "64px") : "") + (e === "password" || e === "legacy" ? F0("关闭访问密码") : "") + (e === "password" ? N0("当前访问密码 *") : "") + t;
}
-var nke = () => {
- let e = h0("network"), t = typeof e?.access == "string" && e.access ? e.access : "legacy", n = g0(e?.tunnelNamed), r = (n && g0(e?.tunnelNamedMode) ? M0(q0.named) + P0("公开主机名", "Cloudflare Zero Trust 里指向这台电脑的主机名。") + P0("隧道令牌", b0("16em")) : M0(q0.quick)) + (g0(e?.tunnelNote) ? S0("100%", "64px") : ""), i = _0(e?.addresses, 3), a = Array.from({ length: i }, (e, t) => `<div class="flex min-w-0 flex-wrap items-end gap-2"><div class="min-w-0 flex-1">${P0([
+var ske = () => {
+ let e = m0("network"), t = typeof e?.access == "string" && e.access ? e.access : "legacy", n = h0(e?.tunnelNamed), r = (n && h0(e?.tunnelNamedMode) ? j0(K0.named) + N0("公开主机名", "Cloudflare Zero Trust 里指向这台电脑的主机名。") + N0("隧道令牌", y0("16em")) : j0(K0.quick)) + (h0(e?.tunnelNote) ? x0("100%", "64px") : ""), i = g0(e?.addresses, 3), a = Array.from({ length: i }, (e, t) => `<div class="flex min-w-0 flex-wrap items-end gap-2"><div class="min-w-0 flex-1">${N0([
"本机地址",
"手机连接地址",
"备用 IP 地址"
- ][t])}</div>${T0("复制地址", "secondary")}</div>`).join("");
- return (i || g0(e?.port) ? O0("访问地址", D0(a + (i ? S0("100%", "40px") : "") + (g0(e?.networkEditable) ? `<div class="flex flex-col gap-1.5">${N0("谁可以访问")}${S0("min(100%, 20em)", "36px")}</div>` + (g0(e?.lan) ? P0("局域网访问地址") : "") : "") + (g0(e?.port) ? P0("端口") : "")), g0(e?.port) ? T0("保存配置") : "", g0(e?.port) ? { status: "保存后 Peach 会重启,并跳转到新地址。" } : {}) : "") + O0("访问密码", D0(tke(t)), t === "locked" ? "" : T0("保存配置")) + O0("Cloudflare 公网入口", D0((n ? S0("10.5em", "36px") : "") + r), T0("启动公网入口", n ? "secondary" : "primary") + (n ? T0("保存配置") : ""), { aside: C0() }) + O0("Peach 代理", A0("连接方式", "", "ui-configuration-skeleton-select") + (g0(e?.proxyAddress) ? D0(P0("代理地址"), !0) : ""), T0("保存配置"));
-}, rke = [
+ ][t])}</div>${w0("复制地址", "secondary")}</div>`).join("");
+ return (i || h0(e?.port) ? D0("访问地址", E0(a + (i ? x0("100%", "40px") : "") + (h0(e?.networkEditable) ? `<div class="flex flex-col gap-1.5">${M0("谁可以访问")}${x0("min(100%, 20em)", "36px")}</div>` + (h0(e?.lan) ? N0("局域网访问地址") : "") : "") + (h0(e?.port) ? N0("端口") : "")), h0(e?.port) ? w0("保存配置") : "", h0(e?.port) ? { status: "保存后 Peach 会重启,并跳转到新地址。" } : {}) : "") + D0("访问密码", E0(oke(t)), t === "locked" ? "" : w0("保存配置")) + D0("Cloudflare 公网入口", E0((n ? x0("10.5em", "36px") : "") + r), w0("启动公网入口", n ? "secondary" : "primary") + (n ? w0("保存配置") : ""), { aside: S0() }) + D0("Peach 代理", k0("连接方式", "", "ui-configuration-skeleton-select") + (h0(e?.proxyAddress) ? E0(N0("代理地址"), !0) : ""), w0("保存配置"));
+}, cke = [
"版本",
"操作系统",
"数据目录",
"设置文件",
"日志目录"
-], ike = () => {
- let e = h0("maintenance"), t = [
+], lke = () => {
+ let e = m0("maintenance"), t = [
"当前版本",
"安装方式",
"更新通道",
"最新版本",
"下载内容"
- ].slice(0, Math.max(4, _0(e?.releaseFacts, 5))), n = _0(e?.releaseNotes, 4), r = _0(e?.storageRows, 12), i = _0(e?.storageNotes, 3), a = v0(e?.facts, 12, (e) => B(String(e))), o = `<span class="self-start">${C0("6em")}</span>`, s = (t) => !e || g0(t), c = s(e?.reporting) ? A0("发送版本统计与错误诊断(推荐)", "上传版本、系统信息、故障类型、代码位置与发生次数。") + (g0(e?.reportingIdle) ? D0(o, !0) : "") : "", l = s(e?.sharing) ? `<div class="border-t border-separator-border">${A0("上传馆藏与口味明细", g0(e?.sharingNotice) ? b0("12em") : "")}${g0(e?.sharingIdle) ? D0(o, !0) : ""}${E0(T0("预览上传内容", "secondary"))}</div>` : "";
- return O0("检查更新", z0(t) + (n ? D0(M0(b0("50%")).repeat(n), !0) : ""), T0("检查更新"), {
- aside: C0("4em"),
- status: b0("5em")
- }) + O0("自动更新", A0("自动检查新版本") + A0("自动下载更新") + A0("检查频率", g0(e?.autoUpdateHelp) ? b0("12em") : "", "ui-configuration-skeleton-select"), T0("保存配置")) + O0("开机自启", A0("开机后启动 Peach") + A0("只启动托盘,不打开网页") + A0("在桌面创建快捷方式", g0(e?.desktopNote) ? b0("12em") : "") + (g0(e?.startupNote) ? D0(M0(b0("60%")), !0) : ""), T0("保存配置")) + O0("视频播放", A0("转码方式", "用于播放时的视频转码。", "ui-configuration-skeleton-select")) + O0("存储空间", z0(["数据目录", "所在磁盘"]) + (r ? Array.from({ length: r }, () => k0(b0("6em"), "", b0("4em"))).join("") : D0(M0("统计后显示各类数据的占用,并可清理缓存与旧备份。"), !0)) + (i ? D0(M0(b0("80%")).repeat(i), !0) : ""), T0("更改位置", "secondary") + T0(r ? "重新统计" : "统计占用")) + (c || l ? O0("数据上传", c + l) : "") + O0("运行信息", z0(a.length ? a : rke)) + `<section aria-label="安装教程" class="w-full"><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${k0("安装教程", "", T0("重新打开教程", "secondary"))}</div></section>` + (s(e?.uninstall) ? O0("卸载 Peach", (g0(e?.uninstallHelp) ? D0(M0("卸载移除 Peach 程序本身,原始媒体文件保留。")) : "") + A0("完全卸载", "同时删除设置、本地数据库、观看记录、凭据和缓存") + D0(R0("数据目录"), !0), T0("卸载 Peach"), { status: b0("16em") }) : "");
+ ].slice(0, Math.max(4, g0(e?.releaseFacts, 5))), n = g0(e?.releaseNotes, 4), r = g0(e?.storageRows, 12), i = g0(e?.storageNotes, 3), a = _0(e?.facts, 12, (e) => B(String(e))), o = `<span class="self-start">${S0("6em")}</span>`, s = (t) => !e || h0(t), c = s(e?.reporting) ? k0("发送版本统计与错误诊断(推荐)", "上传版本、系统信息、故障类型、代码位置与发生次数。") + (h0(e?.reportingIdle) ? E0(o, !0) : "") : "", l = s(e?.sharing) ? `<div class="border-t border-separator-border">${k0("上传馆藏与口味明细", h0(e?.sharingNotice) ? y0("12em") : "")}${h0(e?.sharingIdle) ? E0(o, !0) : ""}${T0(w0("预览上传内容", "secondary"))}</div>` : "";
+ return D0("检查更新", R0(t) + (n ? E0(j0(y0("50%")).repeat(n), !0) : ""), w0("检查更新"), {
+ aside: S0("4em"),
+ status: y0("5em")
+ }) + D0("自动更新", k0("自动检查新版本") + k0("自动下载更新") + k0("检查频率", h0(e?.autoUpdateHelp) ? y0("12em") : "", "ui-configuration-skeleton-select"), w0("保存配置")) + D0("开机自启", k0("开机后启动 Peach") + k0("只启动托盘,不打开网页") + k0("在桌面创建快捷方式", h0(e?.desktopNote) ? y0("12em") : "") + (h0(e?.startupNote) ? E0(j0(y0("60%")), !0) : ""), w0("保存配置")) + D0("视频播放", k0("转码方式", "用于播放时的视频转码。", "ui-configuration-skeleton-select")) + D0("存储空间", R0(["数据目录", "所在磁盘"]) + (r ? Array.from({ length: r }, () => O0(y0("6em"), "", y0("4em"))).join("") : E0(j0("统计后显示各类数据的占用,并可清理缓存与旧备份。"), !0)) + (i ? E0(j0(y0("80%")).repeat(i), !0) : ""), w0("更改位置", "secondary") + w0(r ? "重新统计" : "统计占用")) + (c || l ? D0("数据上传", c + l) : "") + D0("运行信息", R0(a.length ? a : cke)) + `<section aria-label="安装教程" class="w-full"><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${O0("安装教程", "", w0("重新打开教程", "secondary"))}</div></section>` + (s(e?.uninstall) ? D0("卸载 Peach", (h0(e?.uninstallHelp) ? E0(j0("卸载移除 Peach 程序本身,原始媒体文件保留。")) : "") + k0("完全卸载", "同时删除设置、本地数据库、观看记录、凭据和缓存") + E0(L0("数据目录"), !0), w0("卸载 Peach"), { status: y0("16em") }) : "");
};
-function ake(e) {
+function uke(e) {
switch (e) {
- case "系统诊断": return c0();
- case "来源与订阅": return $Oe();
- case "下载渠道": return eke();
- case "网络与访问": return nke();
- case "应用与维护": return ike();
- default: return QOe();
+ case "系统诊断": return s0();
+ case "来源与订阅": return ike();
+ case "下载渠道": return ake();
+ case "网络与访问": return ske();
+ case "应用与维护": return lke();
+ default: return rke();
}
}
-function oke(e = "媒体库与入库") {
- return `<div class="peach-react"><div class="ui-configpage">${`<div class="ui-board-local-nav" data-section-nav data-section-items>${Object.values(Uf).map((t) => `<button type="button" tabindex="-1" aria-selected="${t === e}">${t}</button>`).join("")}</div>`}<div class="flex min-w-0 flex-col gap-6">${ake(e)}</div></div></div>`;
+function dke(e = "媒体库与入库") {
+ return `<div class="peach-react"><div class="ui-configpage">${`<div class="ui-board-local-nav" data-section-nav data-section-items>${Object.values(Uf).map((t) => `<button type="button" tabindex="-1" aria-selected="${t === e}">${t}</button>`).join("")}</div>`}<div class="flex min-w-0 flex-col gap-6">${uke(e)}</div></div></div>`;
}
// src/react/jav/discovery-sorts.ts
-var J0 = [
+var q0 = [
[
"taste",
"口味",
@@ -69822,7 +69847,7 @@ var J0 = [
],
[
"release_date",
- $j[1],
+ iM[1],
"按发行日期排序"
],
[
@@ -69841,10 +69866,10 @@ var J0 = [
"按番号排序"
]
];
-function ske(e) {
+function fke(e) {
return typeof e == "number" && Number.isFinite(e) ? e.toFixed(3) : "—";
}
-function cke(e) {
+function pke(e) {
if (typeof e != "number" || !Number.isFinite(e)) return {
score: "—",
label: "资料未取得",
@@ -69869,8 +69894,8 @@ function cke(e) {
};
}
// src/jav-skeleton.ts
-var Y0 = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, lke = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, X0 = "w-full min-w-0";
-function Z0() {
+var J0 = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, mke = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, Y0 = "w-full min-w-0";
+function X0() {
return [
"w-20",
"w-16",
@@ -69880,26 +69905,26 @@ function Z0() {
"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 Q0(e, t = LM()) {
- if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${Y0("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${lke("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">${Y0("80%")}${Y0("60%")}${Y0("40%")}</div></div>`).join("")}</div>`;
- let n = GM({
- ...WM({
+function Z0(e, t = HM()) {
+ if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${J0("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${mke("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">${J0("80%")}${J0("60%")}${J0("40%")}</div></div>`).join("")}</div>`;
+ let n = XM({
+ ...YM({
active: !0,
home: !1,
portrait: !1
}),
size: t
});
- return `<div data-media-grid class="${X0}" data-skeleton="jav-discover">${Array.from({ length: 6 }, () => `<div data-jav-skeleton-card data-media-card data-jav-card class="flex min-w-0 flex-col gap-3">
+ return `<div data-media-grid class="${Y0}" data-skeleton="jav-discover">${Array.from({ length: 6 }, () => `<div data-jav-skeleton-card data-media-card data-jav-card class="flex min-w-0 flex-col gap-3">
<span data-jav-skeleton-cover class="skeleton block w-full rounded-2lg" style="aspect-ratio:${n}"></span>
<div data-media-meta><span data-jav-skeleton-avatar class="skeleton block shrink-0"></span><div data-media-text>
- <div data-media-title>${Y0("85%")}${Y0("65%")}</div><div data-media-byline>${Y0("55%")}</div>
+ <div data-media-title>${J0("85%")}${J0("65%")}</div><div data-media-byline>${J0("55%")}</div>
<div data-media-tags><span class="skeleton block h-5 w-20 rounded-md"></span><span class="skeleton block h-5 w-24 rounded-md"></span></div>
</div></div>
<div data-jav-skeleton-actions class="flex flex-wrap gap-2"><span data-jav-skeleton-action class="skeleton block h-9 w-20 rounded-md"></span><span data-jav-skeleton-action class="skeleton block h-9 w-12 rounded-md"></span><span data-jav-skeleton-action class="skeleton block h-9 w-26 rounded-md"></span></div>
</div>`).join("")}</div>`;
}
-function uke(e) {
+function hke(e) {
let t = e === "wants" ? "筛选想要" : "筛选推荐";
return `<div class="peach-react"><div class="flex w-full flex-col gap-6">
<div class="flex w-full flex-col gap-4"><div class="flex flex-wrap items-center justify-between gap-2"><h2 data-page-title class="text-display-4-medium text-text-primary max-board-narrow:text-title-1-medium">JAV</h2>${Es({
@@ -69907,28 +69932,28 @@ function uke(e) {
label: "查找资源",
attrs: "disabled data-skeleton-action"
})}</div>
- <div class="relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0">${fW.map(([t, n]) => `<span class="relative flex flex-none items-center whitespace-nowrap rounded-md px-3 py-2 text-body-regular max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular ${t === e ? "bg-background-tertiary-default text-text-primary" : "text-text-secondary"}">${n}</span>`).join("")}</div></div>
+ <div class="relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0">${mW.map(([t, n]) => `<span class="relative flex flex-none items-center whitespace-nowrap rounded-md px-3 py-2 text-body-regular max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular ${t === e ? "bg-background-tertiary-default text-text-primary" : "text-text-secondary"}">${n}</span>`).join("")}</div></div>
<form aria-label="${t}">${Ts("筛选番号、女优或标题", "", t)}</form>
- ${e === "wants" ? `<div class="rounded-2lg bg-background-secondary-default px-6 py-5"><h3 class="mb-4 text-title-2-medium text-text-primary">按番号添加</h3>${Y0("100%")}</div>${Q0(e)}` : `<section class="flex min-w-0 flex-col gap-4">${dke()}${Q0(e)}</section>`}</div></div>`;
+ ${e === "wants" ? `<div class="rounded-2lg bg-background-secondary-default px-6 py-5"><h3 class="mb-4 text-title-2-medium text-text-primary">按番号添加</h3>${J0("100%")}</div>${Z0(e)}` : `<section class="flex min-w-0 flex-col gap-4">${gke()}${Z0(e)}</section>`}</div></div>`;
}
-function dke() {
- 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="" ${LM() === e ? "data-selected=\"true\"" : ""} class="flex size-8 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${Cs(t, "size-4")}</span>`;
+function gke() {
+ 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="" ${HM() === e ? "data-selected=\"true\"" : ""} class="flex size-8 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${Cs(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>${Z0()}</div></div>
+ <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>${X0()}</div></div>
</div>
<div data-filter-row="bottom" aria-busy="true" class="flex min-h-12 min-w-0 items-center gap-3 px-3 py-2">
<span data-catalog-readout><span data-skeleton="count" class="relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"></span></span>
${ws()}
<span data-entity-sorts><button type="button" data-entity-batch data-filter-action data-skeleton-action data-jav-metadata-update title="更新资料" aria-label="更新资料" disabled>${Cs("refresh-cw", "size-4")}</button><span data-entity-layout class="inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg">${t("big", "maximize")}${t("small", "layout-grid")}</span>
- ${J0.map(([e, t]) => `<button type="button" data-entity-sort="${e}" data-entity-press aria-pressed="${e === "taste"}">${t}${e === "taste" ? Cs("arrow-down", "size-3.5") : ""}</button>`).join("")}
+ ${q0.map(([e, t]) => `<button type="button" data-entity-sort="${e}" data-entity-press aria-pressed="${e === "taste"}">${t}${e === "taste" ? Cs("arrow-down", "size-3.5") : ""}</button>`).join("")}
</span>
</div>
</div>`;
}
// src/management-skeletons.ts
-var $0 = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", e2 = (e = "60%") => `<span class="${$0} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, t2 = "disabled data-skeleton-action", n2 = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
-function fke() {
+var Q0 = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", $0 = (e = "60%") => `<span class="${Q0} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, e2 = "disabled data-skeleton-action", t2 = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
+function _ke() {
let e = [
"馆藏视频",
"看过",
@@ -69936,27 +69961,27 @@ function fke() {
"使用空间"
].map((e, t) => `
<div class="min-w-0 rounded-2xl shadow-card flex flex-col overflow-hidden pt-4 text-left ${t === 0 ? "ring-2 ring-border-focus-ring bg-background-primary-default" : "bg-background-secondary-default"}">
- <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${$0} size-7 max-sm:size-6"></i>${e}</span>
- <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3 max-sm:text-title-3-medium">${e2("4em")}</b>
- <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${e2("6em")}</small>
- </div>`).join(""), t = (e) => `<section class="${n2}" data-stats-chart>
- <header class="flex flex-wrap items-end justify-between gap-x-4 gap-y-1"><span class="flex min-w-0 flex-col gap-1"><h3 class="text-title-2-medium text-text-primary">${e}</h3><b class="text-display-4-medium">${e2("4em")}</b></span><small class="text-caption-1-regular text-text-secondary">个视频</small></header>
+ <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${Q0} size-7 max-sm:size-6"></i>${e}</span>
+ <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3 max-sm:text-title-3-medium">${$0("4em")}</b>
+ <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${$0("6em")}</small>
+ </div>`).join(""), t = (e) => `<section class="${t2}" data-stats-chart>
+ <header class="flex flex-wrap items-end justify-between gap-x-4 gap-y-1"><span class="flex min-w-0 flex-col gap-1"><h3 class="text-title-2-medium text-text-primary">${e}</h3><b class="text-display-4-medium">${$0("4em")}</b></span><small class="text-caption-1-regular text-text-secondary">个视频</small></header>
<svg class="h-75 w-full max-sm:h-65 text-background-tertiary-default" viewBox="0 0 200 200" fill="none" stroke="currentColor" stroke-width="12">${[
76,
54,
32
].map((e) => `<circle cx="100" cy="100" r="${e}"/>`).join("")}</svg>
- <div class="inline-grid w-full grid-cols-3 gap-2 max-sm:grid-cols-2">${Array.from({ length: 3 }, () => `<div class="flex min-w-0 flex-col gap-1 rounded-xl bg-background-tertiary-default p-2.5"><span class="text-caption-1-regular">${e2()}</span><b class="text-title-2-medium">${e2("3em")}</b><small class="text-caption-1-regular">${e2()}</small></div>`).join("")}</div>
+ <div class="inline-grid w-full grid-cols-3 gap-2 max-sm:grid-cols-2">${Array.from({ length: 3 }, () => `<div class="flex min-w-0 flex-col gap-1 rounded-xl bg-background-tertiary-default p-2.5"><span class="text-caption-1-regular">${$0()}</span><b class="text-title-2-medium">${$0("3em")}</b><small class="text-caption-1-regular">${$0()}</small></div>`).join("")}</div>
</section>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
- <p class="text-caption-1-regular text-text-secondary">数据库中的当前统计 · ${e2("12em")}</p>
+ <p class="text-caption-1-regular text-text-secondary">数据库中的当前统计 · ${$0("12em")}</p>
<div class="flex flex-col gap-4"><div class="inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4" data-stats-metrics>${e}</div>
<div class="flex flex-col gap-5"><div class="inline-grid w-full gap-5 md:grid-cols-2">${t("网盘与本地")}${t("媒体库")}</div>
<div class="inline-grid w-full gap-5 md:grid-cols-2 xl:grid-cols-3">${[
"时长",
"画质",
"文件类型"
- ].map((e) => `<section class="${n2}"><h3 class="text-title-2-medium">${e}</h3><div class="${$0} h-64"></div></section>`).join("")}</div>
+ ].map((e) => `<section class="${t2}"><h3 class="text-title-2-medium">${e}</h3><div class="${Q0} h-64"></div></section>`).join("")}</div>
</div>
</div>
<section class="rounded-surface bg-background-secondary-default dark:bg-background-primary-default">
@@ -69965,11 +69990,11 @@ function fke() {
"最近看过",
"标签来源"
].map((e) => `<span>${e}</span>`).join("")}</div>
- <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${$0} h-7"></div>`).join("")}</div>
+ <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${Q0} h-7"></div>`).join("")}</div>
</section>
</div></div>`;
}
-function pke() {
+function vke() {
let e = (e) => `<div class="inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto rounded-2lg bg-background-tertiary-default p-1" data-taste-segments>${e.map((e, t) => `<span class="flex min-h-7 flex-none items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover"${t === 0 ? " data-selected=\"true\"" : ""}>${e}</span>`).join("")}</div>`, t = [
"浏览记录",
"口味维度",
@@ -69977,20 +70002,20 @@ function pke() {
"私有导出"
].map((e) => `
<div class="min-w-0 rounded-2xl shadow-card bg-background-secondary-default flex flex-col overflow-hidden pt-4 text-left">
- <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${$0} size-7 max-sm:size-6"></i>${e}</span>
- <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3">${e2("4em")}</b>
- <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${e2("6em")}</small>
- </div>`).join(""), n = Array.from({ length: 6 }, () => `<div class="${$0} h-6"></div>`).join(""), r = (e) => `<section class="${n2}"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="${$0} h-40"></div></section>`;
+ <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${Q0} size-7 max-sm:size-6"></i>${e}</span>
+ <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3">${$0("4em")}</b>
+ <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${$0("6em")}</small>
+ </div>`).join(""), n = Array.from({ length: 6 }, () => `<div class="${Q0} h-6"></div>`).join(""), r = (e) => `<section class="${t2}"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="${Q0} h-40"></div></section>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
<div class="flex flex-col gap-5">
<div class="flex flex-wrap items-center justify-between gap-3">${e(["浏览器记录", "Peach 内部"])}
<div class="flex flex-wrap items-center gap-2">${Os("全部时间")}<span data-button-group data-split-button data-variant="primary">${Es({
glyph: "compass",
label: "读取浏览器历史",
- attrs: t2
+ attrs: e2
})}${Es({
glyph: "chevron-down",
- attrs: t2
+ attrs: e2
})}</span></div>
</div>
<div class="inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4" data-taste-metrics>${t}</div>
@@ -70008,11 +70033,11 @@ function pke() {
4,
5
].map((t) => `${(100 + e * Math.sin(t * Math.PI / 3)).toFixed(1)},${(100 - e * Math.cos(t * Math.PI / 3)).toFixed(1)}`).join(" ")}"/>`).join("")}</svg>
- <small class="text-caption-1-regular">${e2("8em")}</small></div>
+ <small class="text-caption-1-regular">${$0("8em")}</small></div>
<div class="flex min-w-0 grow flex-col justify-around gap-3">${n}</div>
</section>
<div class="inline-grid w-full items-start gap-5 lg:grid-cols-2">${r("浏览活跃时间")}${r("每日活跃")}</div>
- <section class="${n2}"><h3 class="text-title-2-medium text-text-primary">创作者线索来源</h3><div class="${$0} h-72 max-sm:h-48"></div></section>
+ <section class="${t2}"><h3 class="text-title-2-medium text-text-primary">创作者线索来源</h3><div class="${Q0} h-72 max-sm:h-48"></div></section>
<section class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col">
<div class="px-4 pt-3">${e([
"标签",
@@ -70020,20 +70045,20 @@ function pke() {
"常访问网站",
"浏览线索"
])}</div>
- <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${$0} h-7"></div>`).join("")}</div>
+ <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${Q0} h-7"></div>`).join("")}</div>
</section>
</div>
</div></div>`;
}
-function mke() {
+function yke() {
let e = `<div class="duplicate-row items-center gap-3 border-t border-separator-border px-5 py-4 max-compact:p-4">
- <span class="${$0} row-span-2 inline-grid aspect-16/10 w-full rounded-2lg"></span>
- <span class="text-body-regular max-duplicate-narrow:col-start-2 max-duplicate-narrow:-col-end-1">${e2("70%")}</span>
- ${Array.from({ length: 3 }, () => `<span class="font-mono text-caption-1-regular leading-5">${e2("3em")}</span>`).join("")}
- <span class="col-start-2 -col-end-1 min-w-0 pt-0.5 font-mono text-caption-1-regular leading-5 max-duplicate-narrow:col-span-full">${e2("75%")}</span>
+ <span class="${Q0} row-span-2 inline-grid aspect-16/10 w-full rounded-2lg"></span>
+ <span class="text-body-regular max-duplicate-narrow:col-start-2 max-duplicate-narrow:-col-end-1">${$0("70%")}</span>
+ ${Array.from({ length: 3 }, () => `<span class="font-mono text-caption-1-regular leading-5">${$0("3em")}</span>`).join("")}
+ <span class="col-start-2 -col-end-1 min-w-0 pt-0.5 font-mono text-caption-1-regular leading-5 max-duplicate-narrow:col-span-full">${$0("75%")}</span>
</div>`, t = `<section class="mb-6 overflow-hidden rounded-surface bg-background-secondary-default dark:bg-background-primary-default" data-duplicate-group>
<div class="flex flex-wrap items-center gap-3 bg-background-tertiary-default p-5 max-compact:p-4 dark:bg-background-secondary-default">
- <b class="text-title-2-medium">${e2("5em")}</b><span class="font-mono text-caption-1-regular leading-5">${e2("8em")}</span>
+ <b class="text-title-2-medium">${$0("5em")}</b><span class="font-mono text-caption-1-regular leading-5">${$0("8em")}</span>
<span class="ml-auto flex flex-wrap gap-2 max-compact:ml-0 max-compact:w-full">${[
"留最大",
"留最长",
@@ -70042,27 +70067,27 @@ function mke() {
variant: "secondary",
size: "small",
label: e,
- attrs: t2
+ attrs: e2
})).join("")}</span>
</div>${e.repeat(2)}</section>`;
return `<div class="peach-react"><div class="mx-auto w-full max-w-board pb-10.5">
<div data-collection-summary class="mb-5 flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5 max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4 dark:bg-background-primary-default">
- <div class="flex min-w-0 flex-col gap-2"><span class="text-body-regular text-text-secondary">重复内容</span><strong class="text-display-4-medium">${e2("4em")}</strong></div><p class="text-body-regular text-text-secondary">${e2("12em")}</p>
+ <div class="flex min-w-0 flex-col gap-2"><span class="text-body-regular text-text-secondary">重复内容</span><strong class="text-display-4-medium">${$0("4em")}</strong></div><p class="text-body-regular text-text-secondary">${$0("12em")}</p>
</div>
- <div data-filter-glass data-glass-pane class="mb-5.5 flex flex-wrap items-center gap-x-2.5 gap-y-2 px-4 py-2.5"><h3 class="mr-1 text-body-medium">批量保留</h3>${["全部保留最大", "全部保留最长"].map((e) => `<button ${t2} class="h-8 rounded-full border border-separator-border px-3 text-body-2-medium">${e}</button>`).join("")}</div>
+ <div data-filter-glass data-glass-pane class="mb-5.5 flex flex-wrap items-center gap-x-2.5 gap-y-2 px-4 py-2.5"><h3 class="mr-1 text-body-medium">批量保留</h3>${["全部保留最大", "全部保留最长"].map((e) => `<button ${e2} class="h-8 rounded-full border border-separator-border px-3 text-body-2-medium">${e}</button>`).join("")}</div>
${t.repeat(2)}
</div></div>`;
}
-function hke() {
+function bke() {
let e = `<li class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card border border-separator-border flex flex-col gap-3 p-3">
- <div class="flex min-w-0 gap-4"><span class="${$0} inline-grid w-card-cover shrink-0 aspect-card-cover rounded-2lg"></span>
- <div class="flex min-w-0 flex-1 flex-col gap-1.5"><h3 class="text-headline-medium">${e2("80%")}</h3><p class="text-body-2-regular">${e2("60%")}</p></div>
+ <div class="flex min-w-0 gap-4"><span class="${Q0} inline-grid w-card-cover shrink-0 aspect-card-cover rounded-2lg"></span>
+ <div class="flex min-w-0 flex-1 flex-col gap-1.5"><h3 class="text-headline-medium">${$0("80%")}</h3><p class="text-body-2-regular">${$0("60%")}</p></div>
</div>
<footer class="flex justify-end">${Es({
variant: "secondary",
size: "small",
label: "查看版本",
- attrs: t2
+ attrs: e2
})}</footer>
</li>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
@@ -70071,20 +70096,20 @@ function hke() {
</div></div>`;
}
// src/board-skeleton.ts
-var r2 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, gke = () => `${r2("80%")}${r2("48%")}`, i2 = (e, t) => e.repeat(t), a2 = "disabled data-skeleton-action", o2 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, s2 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, _ke = "min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4", c2 = () => `<div class="inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6">${[
+var n2 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, xke = () => `${n2("80%")}${n2("48%")}`, r2 = (e, t) => e.repeat(t), i2 = "disabled data-skeleton-action", a2 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, o2 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, Ske = "min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4", s2 = () => `<div class="inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6">${[
"关注创作者",
"启用来源",
"检查失败",
"未看更新",
"JAV 订阅",
"未看新作"
-].map((e) => `<div class="${_ke}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${o2("3em")}</b></div>`).join("")}</div>`, vke = (e = "") => gQ.some(([t]) => t === e) ? e : "list", l2 = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${gQ.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, u2 = (e = "") => `<span class="group inline-flex items-center select-none gap-2"><span class="flex shrink-0 items-center justify-center rounded-sm size-4 border bg-background-primary-default shadow-xs border-border-checkbox-default"></span>${e ? `<span class="text-body-medium text-text-primary">${e}</span>` : ""}</span>`, yke = ({ table: e, sort: t, dir: n }) => {
+].map((e) => `<div class="${Ske}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${a2("3em")}</b></div>`).join("")}</div>`, Cke = (e = "") => hQ.some(([t]) => t === e) ? e : "list", c2 = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${hQ.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, l2 = (e = "") => `<span class="group inline-flex items-center select-none gap-2"><span class="flex shrink-0 items-center justify-center rounded-sm size-4 border bg-background-primary-default shadow-xs border-border-checkbox-default"></span>${e ? `<span class="text-body-medium text-text-primary">${e}</span>` : ""}</span>`, wke = ({ table: e, sort: t, dir: n }) => {
let r = cr.find(([e]) => e === t)[1];
- return `<div data-responsive-toolbar class="ui-follow-skeleton-toolbar"><span data-follow-toolbar-heading data-toolbar-heading><h3 class="text-title-2-medium text-text-primary">关注列表</h3><span class="text-body-2-regular text-text-secondary">${o2("132px")}</span></span><div data-follow-toolbar-actions data-toolbar-actions>${Es({
+ return `<div data-responsive-toolbar class="ui-follow-skeleton-toolbar"><span data-follow-toolbar-heading data-toolbar-heading><h3 class="text-title-2-medium text-text-primary">关注列表</h3><span class="text-body-2-regular text-text-secondary">${a2("132px")}</span></span><div data-follow-toolbar-actions data-toolbar-actions>${Es({
glyph: "refresh-cw",
label: "检查全部",
compact: !0,
- attrs: a2
+ attrs: i2
})}<span data-follow-toolbar-controls class="contents"><span data-button-group role="group">${Es({
variant: "ghost",
glyph: "layout-grid",
@@ -70101,42 +70126,42 @@ var r2 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, gke
glyph: "chevron-up",
label: "全部收起",
compact: !0,
- attrs: a2
+ attrs: i2
})}</span></div></div>`;
-}, d2 = () => `<span class="flex shrink-0 items-center gap-1">${Es({
+}, u2 = () => `<span class="flex shrink-0 items-center gap-1">${Es({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
- attrs: a2
+ attrs: i2
})}${Es({
variant: "secondary",
size: "small",
glyph: "trash",
- attrs: a2
-})}</span>`, bke = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${u2()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${o2("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${s2(14, 14)}</span>${s2(48, 24)}<span data-follow-source-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-1.5 max-sm:w-full"><span class="shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary max-sm:mr-auto max-sm:text-caption-1-regular">${o2("113px")}</span>${d2()}</span></div>`, f2 = (e) => `<section class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col overflow-hidden p-2 follow-skeleton-author"><div class="flex flex-wrap items-center gap-3 px-2 py-2.5" data-follow-author-header data-open>${s2(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${o2("92px")}</b><span data-follow-author-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-2 max-sm:w-full">${Es({
+ attrs: i2
+})}</span>`, Tke = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${l2()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${a2("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${o2(14, 14)}</span>${o2(48, 24)}<span data-follow-source-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-1.5 max-sm:w-full"><span class="shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary max-sm:mr-auto max-sm:text-caption-1-regular">${a2("113px")}</span>${u2()}</span></div>`, d2 = (e) => `<section class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col overflow-hidden p-2 follow-skeleton-author"><div class="flex flex-wrap items-center gap-3 px-2 py-2.5" data-follow-author-header data-open>${o2(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${a2("92px")}</b><span data-follow-author-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-2 max-sm:w-full">${Es({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
- attrs: a2
-})}<span class="flex shrink-0 items-center gap-1 max-sm:mr-auto">${s2(14, 14)}${s2(14, 14)}</span><span class="flex flex-none items-center gap-2">${Es({
+ attrs: i2
+})}<span class="flex shrink-0 items-center gap-1 max-sm:mr-auto">${o2(14, 14)}${o2(14, 14)}</span><span class="flex flex-none items-center gap-2">${Es({
variant: "secondary",
size: "small",
glyph: "check-check",
label: "全选",
- attrs: a2
+ attrs: i2
})}${Es({
variant: "secondary",
size: "small",
glyph: "chevron-up",
label: "收起",
- attrs: a2
-})}</span></span></div><div data-source-divider>${i2(bke(), e)}</div></section>`, xke = () => {
+ attrs: i2
+})}</span></span></div><div data-source-divider>${r2(Tke(), e)}</div></section>`, Eke = () => {
try {
return Number(JSON.parse(localStorage.getItem("peach.settings.v1") || "{}").followPageSize) || 20;
} catch {
return 20;
}
-}, Ske = [
+}, Dke = [
["select", ""],
["author", "创作者"],
["source", "来源"],
@@ -70144,90 +70169,90 @@ var r2 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, gke
["status", "状态"],
["checked", "上次检查"],
["actions", ""]
-], Cke = {
+], Oke = {
name: "author",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, wke = "<svg viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\"><path d=\"M12.7071 15.2929C12.3166 15.6834 11.6834 15.6834 11.2929 15.2929L7.70711 11.7071C7.07714 11.0771 7.52331 10 8.41421 10H15.5858C16.4767 10 16.9229 11.0771 16.2929 11.7071L12.7071 15.2929Z\" fill=\"currentColor\"/></svg>", Tke = (e, { sort: t, dir: n }) => `<div data-board-data-table data-follow-table class="follow-skeleton-table"><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm"><thead><tr>${Ske.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${Cke[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${wke}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${i2(`<tr>${[
- u2(),
- `<span class="flex min-w-0 items-center gap-2">${s2(32, 32, !0)}${o2("5em")}</span>`,
- o2("10em"),
- `<span class="flex items-center gap-1.5">${s2(14, 14)}${o2("4em")}</span>`,
- s2(48, 24),
- o2("113px"),
- d2()
-].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, Eke = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular text-text-secondary">${o2("111px")}</span><div data-toolbar-actions>${Os(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${s2(204, 32)}</div></div>`, Dke = () => `<div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface"><h3 class="text-title-2-medium text-text-primary">${o2("120px")}</h3>${[
+}, kke = "<svg viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\"><path d=\"M12.7071 15.2929C12.3166 15.6834 11.6834 15.6834 11.2929 15.2929L7.70711 11.7071C7.07714 11.0771 7.52331 10 8.41421 10H15.5858C16.4767 10 16.9229 11.0771 16.2929 11.7071L12.7071 15.2929Z\" fill=\"currentColor\"/></svg>", Ake = (e, { sort: t, dir: n }) => `<div data-board-data-table data-follow-table class="follow-skeleton-table"><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm"><thead><tr>${Dke.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${Oke[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${kke}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${r2(`<tr>${[
+ l2(),
+ `<span class="flex min-w-0 items-center gap-2">${o2(32, 32, !0)}${a2("5em")}</span>`,
+ a2("10em"),
+ `<span class="flex items-center gap-1.5">${o2(14, 14)}${a2("4em")}</span>`,
+ o2(48, 24),
+ a2("113px"),
+ u2()
+].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, jke = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular text-text-secondary">${a2("111px")}</span><div data-toolbar-actions>${Os(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${o2(204, 32)}</div></div>`, Mke = () => `<div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface"><h3 class="text-title-2-medium text-text-primary">${a2("120px")}</h3>${[
"72%",
"56%",
"64%",
"40%"
-].map((e) => `<span class="text-body-medium">${o2(e)}</span>`).join("")}</div>`, Oke = (e) => {
- let t = vke(e.followTab);
- if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${c2()}<div class="flex flex-col gap-6">${l2(t)}<div class="flex flex-col gap-4">${Dke()}</div></div></div></div>`;
- let n = e.followLayout === "table", r = fr(e.followSort, e.followDir), i = e.followPageSize || xke(), a = n ? Tke(i, r) : `${u2("全选本页")}<div class="flex flex-col gap-3">${f2(3)}${f2(4)}${f2(3)}</div>`;
- return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${c2()}<div class="flex flex-col gap-6">${l2(t)}<div class="flex flex-col gap-4"><div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface" data-layout="${n ? "table" : "default"}">${yke({
+].map((e) => `<span class="text-body-medium">${a2(e)}</span>`).join("")}</div>`, Nke = (e) => {
+ let t = Cke(e.followTab);
+ if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${s2()}<div class="flex flex-col gap-6">${c2(t)}<div class="flex flex-col gap-4">${Mke()}</div></div></div></div>`;
+ let n = e.followLayout === "table", r = fr(e.followSort, e.followDir), i = e.followPageSize || Eke(), a = n ? Ake(i, r) : `${l2("全选本页")}<div class="flex flex-col gap-3">${d2(3)}${d2(4)}${d2(3)}</div>`;
+ return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${s2()}<div class="flex flex-col gap-6">${c2(t)}<div class="flex flex-col gap-4"><div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface" data-layout="${n ? "table" : "default"}">${wke({
table: n,
...r
- })}${a}${Eke(n, i)}</div></div></div></div></div>`;
+ })}${a}${jke(n, i)}</div></div></div></div></div>`;
};
-function kke() {
- return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="ui-skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="ui-skeleton-lines">${r2("85%")}${r2("65%")}${i2(gke(), 4)}</div></aside></div>`;
+function Pke() {
+ return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="ui-skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="ui-skeleton-lines">${n2("85%")}${n2("65%")}${r2(xke(), 4)}</div></aside></div>`;
}
-function Ake(e, t = {}) {
+function Fke(e, t = {}) {
let n = "";
- if (e === "/stats") n = fke();
- else if (e === "/jav") n = uke(new URLSearchParams(location.search).get("tab") === "wants" ? "wants" : "discover");
- else if (e === "/taste") n = pke();
- else if (e === "/subscriptions") n = Oke(t);
- else if (e.startsWith("/settings/") && e.split("/")[2] in Uf) n = oke(Uf[e.split("/")[2]]);
+ if (e === "/stats") n = _ke();
+ else if (e === "/jav") n = hke(new URLSearchParams(location.search).get("tab") === "wants" ? "wants" : "discover");
+ else if (e === "/taste") n = vke();
+ else if (e === "/subscriptions") n = Nke(t);
+ else if (e.startsWith("/settings/") && e.split("/")[2] in Uf) n = dke(Uf[e.split("/")[2]]);
else if (e === "/tasks") n = `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${[
"正在进行",
"本次未执行",
"最近完成"
- ].map((e) => `<section class="activitysection flex min-w-0 flex-col gap-3"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="min-w-0 rounded-2xl shadow-card border border-border-button-default bg-background-secondary-default"><div class="flex flex-col gap-1.5 px-5 pt-5 pb-4"><span class="text-title-1-medium">${o2("8em")}</span><span class="text-caption-1-regular">${o2("14em")}</span>${o2("60%")}${o2("40%")}</div><div class="border-t border-separator-border px-5 py-2.5">${o2("6em")}</div></div></section>`).join("")}</div></div>`;
- else if (e === "/duplicates") n = mke();
- else if (e === "/quality-goals") n = hke();
+ ].map((e) => `<section class="activitysection flex min-w-0 flex-col gap-3"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="min-w-0 rounded-2xl shadow-card border border-border-button-default bg-background-secondary-default"><div class="flex flex-col gap-1.5 px-5 pt-5 pb-4"><span class="text-title-1-medium">${a2("8em")}</span><span class="text-caption-1-regular">${a2("14em")}</span>${a2("60%")}${a2("40%")}</div><div class="border-t border-separator-border px-5 py-2.5">${a2("6em")}</div></div></section>`).join("")}</div></div>`;
+ else if (e === "/duplicates") n = yke();
+ else if (e === "/quality-goals") n = bke();
else if (e === "/playlists") n = `<div class="peach-react"><section class="w-full pt-1 pb-10.5"><header class="mb-4 flex items-start justify-between gap-4.5 max-board-narrow:flex-col max-board-narrow:items-stretch"><div><h2 class="mb-1 text-display-4-medium! text-text-primary">播放列表</h2><p class="text-body-2-regular text-text-secondary">保存 Mix,按自己的顺序继续播放。</p></div><div class="flex flex-wrap items-end gap-2"><div class="min-w-50 max-w-80 flex-1 basis-50 max-board-narrow:min-w-0 max-board-narrow:max-w-none"><span class="text-body-medium">新播放列表</span><span class="skeleton ui-configuration-skeleton-input mt-1.5"></span></div>${Es({
label: "新建",
- attrs: a2
- })}</div></header><div class="mx-auto w-full max-w-board"><div class="ui-playlistcards card-grid-cover gap-4.5">${i2("<article class=\"playlistcard skeletoncard\"><i></i><b></b><em></em></article>", 6)}</div></div></section></div>`;
+ attrs: i2
+ })}</div></header><div class="mx-auto w-full max-w-board"><div class="ui-playlistcards card-grid-cover gap-4.5">${r2("<article class=\"playlistcard skeletoncard\"><i></i><b></b><em></em></article>", 6)}</div></div></section></div>`;
else return "";
return `<div class="board-page-skeleton" data-skeleton="board${e}" role="status" aria-label="正在读取页面"><div aria-hidden="true" inert>${n}</div></div>`;
}
// src/react/components/overlay-host.ts
-function jke(e) {
+function Ike(e) {
let t = e.querySelector(":scope > [data-react-overlays]");
if (t) return t;
let n = e.ownerDocument.createElement("div");
return n.className = "peach-react", n.dataset.reactOverlays = "", e.append(n), n;
}
-function p2(e) {
+function f2(e) {
let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");
- return jke(n ?? t.body);
+ return Ike(n ?? t.body);
}
-var m2 = "[role=\"dialog\"],[role=\"listbox\"],[role=\"menu\"]";
-function Mke(e) {
+var p2 = "[role=\"dialog\"],[role=\"listbox\"],[role=\"menu\"]";
+function Lke(e) {
let t = e.querySelector(":scope > [data-react-overlays]");
for (let e = t?.lastElementChild; e; e = e.previousElementSibling) {
- let t = e.matches(m2) ? e : e.querySelector(m2);
+ let t = e.matches(p2) ? e : e.querySelector(p2);
if (t) return t;
}
return null;
}
-function h2(e) {
+function m2(e) {
let t = document.getElementById("toasts"), n = e?.open ? e : document.body;
t && t.parentElement !== n && n.append(t);
}
// src/react/follow-detail/follow-detail.ts
-var g2 = (e) => ["follow-item", e], Nke = (e) => `/api/follow?item=${encodeURIComponent(e)}`, Pke = "/api/follow/save", Fke = "/api/follow/media/hide", _2 = class extends Error {
+var h2 = (e) => ["follow-item", e], Rke = (e) => `/api/follow?item=${encodeURIComponent(e)}`, zke = "/api/follow/save", Bke = "/api/follow/media/hide", g2 = class extends Error {
constructor() {
super("这条关注内容已不存在");
}
};
-async function v2(e, t) {
- let n = await V(Nke(e), t);
+async function _2(e, t) {
+ let n = await V(Rke(e), t);
for (let t of n.groups || []) {
let r = sa(t).find((t) => t.id === e);
if (r) return {
@@ -70237,9 +70262,9 @@ async function v2(e, t) {
aliases: n.author_aliases || []
};
}
- throw new _2();
+ throw new g2();
}
-function Ike(e) {
+function Vke(e) {
for (let [, t] of U.getQueriesData({ queryKey: ["follow-item"] })) {
if (!t?.group) continue;
let n = sa(t.group).find((t) => t.id === e);
@@ -70250,20 +70275,20 @@ function Ike(e) {
}
return null;
}
-async function y2(e, t) {
- let n = g2(e.id), r = ca(e.id), i = U.getQueryData(na) ? null : U.fetchQuery({
+async function v2(e, t) {
+ let n = h2(e.id), r = ca(e.id), i = U.getQueryData(na) ? null : U.fetchQuery({
queryKey: na,
queryFn: () => ra(t)
}), a = r ? {
...r,
item: r.item
- } : U.getQueryData(n) ?? Ike(e.id);
+ } : U.getQueryData(n) ?? Vke(e.id);
a ? U.setQueryData(n, a) : await U.fetchQuery({
queryKey: n,
- queryFn: () => v2(e.id, t)
+ queryFn: () => _2(e.id, t)
}), await i;
}
-function Lke(e, t, n, r) {
+function Hke(e, t, n, r) {
let i = e.media_items || [], a = r === "images" ? "image" : "video", o = i.find((e) => e.media_kind === a) || i[0], s = i.length ? i.find((e) => e.index === (n ?? o.index)) || o : null, c = i.filter((e) => e.media_kind === "image"), l = c.findIndex((e) => e.index === s?.index), u = c.length > 1 && l >= 0, d = i.length > 1 && !u, f = !i.length && t && ga(t).length > 1 ? t : null, p = s?.media_kind || e.media_kind || "", m = (u ? [...c, e] : [s, e]).filter((e) => !!e && (e.width || 0) > 0 && (e.height || 0) > 0);
return {
embedded: i,
@@ -70278,32 +70303,32 @@ function Lke(e, t, n, r) {
src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""
};
}
-var Rke = (e) => sa(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), zke = {
+var Uke = (e) => sa(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), Wke = {
"gofile.io": "Gofile",
"pixeldrain.com": "Pixeldrain",
"mega.nz": "MEGA",
"mega.io": "MEGA",
"mediafire.com": "MediaFire",
"drive.google.com": "Google Drive"
-}, Bke = {
+}, Gke = {
gofile: "Gofile",
pixeldrain: "Pixeldrain",
mega: "MEGA",
mediafire: "MediaFire",
google_drive: "Google Drive"
};
-function Vke(e) {
+function Kke(e) {
try {
let t = new URL(e).hostname.replace(/^www\./, "");
- return zke[t] || t;
+ return Wke[t] || t;
} catch {
return "外部文件页";
}
}
-function b2(e, t) {
- return Bke[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
+function y2(e, t) {
+ return Gke[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
}
-function Hke(e, t, n = "") {
+function qke(e, t, n = "") {
let r = n;
!r && e.is_release && (r = t.variant_label || t.variant_kind || ""), r ||= t.variant_kind === "wip" ? "WIP" : t.variant_label || t.variant_kind || "视频";
let i = e.is_release ? t.summary || (t.has_media ? "(仅附件)" : "(无正文)") : t.title;
@@ -70312,54 +70337,54 @@ function Hke(e, t, n = "") {
title: e.is_release && t.author ? `${t.author}:${i}` : i
};
}
-var Uke = (e) => String(e.name || "").trim(), x2 = (e, t) => e.tag_types?.[t] || "unknown", Wke = /* @__PURE__ */ new Set([
+var Jke = (e) => String(e.name || "").trim(), b2 = (e, t) => e.tag_types?.[t] || "unknown", Yke = /* @__PURE__ */ new Set([
"artist",
"character",
"copyright",
"metadata",
"unknown"
]);
-function Gke(e, t) {
- let n = x2(e, t);
- return `r34-${Wke.has(n) ? n : "general"}`;
+function Xke(e, t) {
+ let n = b2(e, t);
+ return `r34-${Yke.has(n) ? n : "general"}`;
}
-var S2 = [
+var x2 = [
"copyright",
"character",
"artist",
"general",
"metadata"
];
-function Kke(e, t) {
+function Zke(e, t) {
let n = e.detail_tags || e.tags || [], r = (t) => {
- let n = S2.indexOf(x2(e, t));
- return n < 0 ? S2.length : n;
+ let n = x2.indexOf(b2(e, t));
+ return n < 0 ? x2.length : n;
};
return [...n].sort((e, n) => r(e) - r(n) || t(e).localeCompare(t(n)));
}
-function C2(e, t) {
+function S2(e, t) {
let n = t.find((t) => t.id === e.source_id), r = t.filter((e) => n?.author_key && e.author_key === n.author_key);
return !r.length && n && r.push(n), r;
}
-var qke = (e, t) => ({
+var Qke = (e, t) => ({
sources: e.sources,
aliases: e.aliases,
credentials: t
-}), w2 = (e) => e?.size ? { size: e.size } : {};
-function Jke(e, t) {
+}), C2 = (e) => e?.size ? { size: e.size } : {};
+function $ke(e, t) {
let { images: n, kind: r, src: i, selected: a } = t;
return n.length ? n.map((t) => ({
src: `/follow-stream?id=${e.id}&media=${t.index}`,
thumb: t.thumb_url || e.thumb_url || `/follow-stream?id=${e.id}&media=${t.index}`,
name: t.name || e.title,
- source: b2(t, e),
- ...w2(t)
+ source: y2(t, e),
+ ...C2(t)
})) : r === "image" && i ? [{
src: i,
thumb: e.thumb_url || i,
name: e.title,
- source: b2(a, e),
- ...w2(a)
+ source: y2(a, e),
+ ...C2(a)
}] : e.thumb_url ? [{
src: e.thumb_url,
thumb: e.thumb_url,
@@ -70367,7 +70392,7 @@ function Jke(e, t) {
source: e.provider_label || e.provider || "在线图片"
}] : [];
}
-var Yke = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", T2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill: a, cardRatio: o, gridClass: s = "", gridSize: c = "" } = {}) => tc(e, {
+var eAe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", w2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill: a, cardRatio: o, gridClass: s = "", gridSize: c = "" } = {}) => tc(e, {
variant: r || (t ? "cards" : "panel"),
className: n,
gridClass: s,
@@ -70375,7 +70400,7 @@ var Yke = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", T2
...i ? { count: i } : {},
...a === void 0 ? {} : { fill: a },
...o ? { cardRatio: o } : {}
-}), Xke = [
+}), tAe = [
"元数据字段",
"创作者标签",
"厂牌 Logo",
@@ -70385,38 +70410,38 @@ var Yke = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", T2
"FC2 评论标记",
"FC2 跨号相似",
"片尾/出处证据"
-], Zke = (e = "正在读取复核队列") => `<div class="review review-workspace review-skeleton" data-skeleton="review" aria-busy="true" aria-label="${B(e)}">
+], nAe = (e = "正在读取复核队列") => `<div class="review review-workspace review-skeleton" data-skeleton="review" aria-busy="true" aria-label="${B(e)}">
<div class="reviewcontrols" data-section-nav><h2 class="review-category-title">复核分类</h2>
- <div class="reviewtabs" data-section-items>${Xke.map((e, t) => `<button type="button" disabled aria-selected="${t === 0}">${B(e)}<span class="skeleton reviewcountskeleton" aria-hidden="true"></span></button>`).join("")}</div></div>
+ <div class="reviewtabs" data-section-items>${tAe.map((e, t) => `<button type="button" disabled aria-selected="${t === 0}">${B(e)}<span class="skeleton reviewcountskeleton" aria-hidden="true"></span></button>`).join("")}</div></div>
<div class="reviewbulkbar reviewbulktoolbar" aria-hidden="true">${"<span class=\"skeleton reviewtoolskeleton\"></span>".repeat(3)}</div>
- <section class="reviewsection"><div class="reviewlist">${"<div class=\"skeletoncard\" aria-hidden=\"true\"><i></i><b></b><em></em></div>".repeat(6)}</div></section></div>`, Qke = {
- "/data-cleanup": () => Q$(),
- "/resource-sync": () => Q$(),
- "/review": () => Zke(),
+ <section class="reviewsection"><div class="reviewlist">${"<div class=\"skeletoncard\" aria-hidden=\"true\"><i></i><b></b><em></em></div>".repeat(6)}</div></section></div>`, rAe = {
+ "/data-cleanup": () => Z$(),
+ "/resource-sync": () => Z$(),
+ "/review": () => nAe(),
"/sources": () => `<div class="scraping-page"><p>高清图片可能要经代理才能下载,先检查连接。</p>
- ${T2("正在读取采集来源", {
+ ${w2("正在读取采集来源", {
cards: !0,
count: 4,
fill: !1,
className: "cleanup-skeleton"
})}</div>`
};
-function E2(e, { followLayout: t, followSort: n, followDir: r }) {
- return Ake(e, {
+function T2(e, { followLayout: t, followSort: n, followDir: r }) {
+ return Fke(e, {
followLayout: t,
...e === "/subscriptions" ? {
followSort: n,
followDir: r
} : {}
- }) || (Qke[e] ?? (() => T2("正在读取页面")))();
+ }) || (rAe[e] ?? (() => w2("正在读取页面")))();
}
-var D2 = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";
-function O2(e, t) {
- let n = e.querySelector("[data-skeleton]")?.dataset.skeleton || "", r = D2(t);
+var E2 = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";
+function D2(e, t) {
+ let n = e.querySelector("[data-skeleton]")?.dataset.skeleton || "", r = E2(t);
r && r === n || (e.innerHTML = t, lc(e));
}
// src/react/components/related-section.tsx
-function k2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a, online: o = !1, ...s }) {
+function O2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a, online: o = !1, ...s }) {
let c = (0, F.useCallback)((e) => {
e && (lc(e), t(e));
}, [t]);
@@ -70429,17 +70454,17 @@ function k2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a,
children: "接着看"
}), i ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-related-state": "",
- children: /* @__PURE__ */ (0, I.jsx)(gK, {
+ children: /* @__PURE__ */ (0, I.jsx)(hK, {
message: i,
onRetry: a || (() => {})
})
}) : r && !n ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-related-state": "",
- children: /* @__PURE__ */ (0, I.jsx)(UV, {
+ children: /* @__PURE__ */ (0, I.jsx)(GV, {
size: "compact",
- icon: MV,
+ icon: PV,
title: "暂无接着看的内容",
- actions: /* @__PURE__ */ (0, I.jsx)(_R, {
+ actions: /* @__PURE__ */ (0, I.jsx)(yR, {
size: "small",
href: o ? "/follow" : "/",
children: o ? "返回关注" : "浏览馆藏"
@@ -70455,7 +70480,7 @@ function k2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a,
});
}
// src/react/components/detail-continuation.tsx
-function A2({ queue: e, children: t, queueCards: n }) {
+function k2({ queue: e, children: t, queueCards: n }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-detail-continuation": "",
"data-queue-cards": n == null ? void 0 : Math.min(3, n),
@@ -70463,7 +70488,7 @@ function A2({ queue: e, children: t, queueCards: n }) {
});
}
// src/react/components/media-carousel.tsx
-function j2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail: i }) {
+function A2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail: i }) {
let a = (0, F.useRef)(null), o = e.some((e) => e.video), s = !!i;
if ((0, F.useLayoutEffect)(() => {
let e = a.current?.querySelector("[data-media-thumbnails]");
@@ -70543,7 +70568,7 @@ function j2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail
"data-media-thumbnails": "",
role: "group",
"aria-label": "媒体缩略图",
- children: e.map((e, r) => /* @__PURE__ */ (0, I.jsx)($ke, {
+ children: e.map((e, r) => /* @__PURE__ */ (0, I.jsx)(iAe, {
item: e,
selected: r === t,
onSelect: n,
@@ -70562,7 +70587,7 @@ function j2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail
]
});
}
-function $ke({ item: e, selected: t, onSelect: n, render: r }) {
+function iAe({ item: e, selected: t, onSelect: n, render: r }) {
let i = (0, F.useRef)(null), [a, o] = (0, F.useState)(typeof IntersectionObserver > "u");
return (0, F.useEffect)(() => {
if (!i.current || a) return;
@@ -70588,14 +70613,14 @@ function $ke({ item: e, selected: t, onSelect: n, render: r }) {
});
}
// src/react/follow-detail/follow-related.ts
-var eAe = (e, t, n) => [
+var aAe = (e, t, n) => [
"follow-feed",
"related",
e,
t,
n
];
-function M2(e, t, n, r) {
+function j2(e, t, n, r) {
let i = new Set((t.group ? sa(t.group) : [t.item]).map((e) => e.id)), a = /* @__PURE__ */ new Set(), o = new Set(t.item.tags || []), s = t.sources.find((e) => e.id === t.item.source_id)?.author_key, c = new Map(e.flatMap((e) => e.sources || []).map((e) => [e.id, e]));
return e.flatMap((e) => e.groups || []).filter((e) => {
let t = sa(e);
@@ -70610,7 +70635,7 @@ function M2(e, t, n, r) {
};
}).sort((e, t) => Number(t.sameAuthor) - Number(e.sameAuthor) || t.common - e.common || e.order - t.order).slice(0, r).map((e) => e.group);
}
-async function tAe(e, t, n, r) {
+async function oAe(e, t, n, r) {
let i = e.sources.find((t) => t.id === e.item.source_id)?.author_key || "", a = {
...ha(i),
status: "new",
@@ -70624,22 +70649,22 @@ async function tAe(e, t, n, r) {
}, t), r);
return o.push(n), n;
}, c = await s(i, 0);
- return M2(o, e, t, n).length < n && c.has_more && await s(i, (c.offset || 0) + 100), i && M2(o, e, t, n).length < n && await s("", 0), {
+ return j2(o, e, t, n).length < n && c.has_more && await s(i, (c.offset || 0) + 100), i && j2(o, e, t, n).length < n && await s("", 0), {
pages: o,
pageParams: o.map((e) => e.offset || 0)
};
}
// src/react/components/detail-tags.tsx
-var N2 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var M2 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: z(e) }
});
-function P2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, label: a, onOpen: o, onAdd: s, onRemove: c, busyAttrs: l }) {
+function N2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, label: a, onOpen: o, onAdd: s, onRemove: c, busyAttrs: l }) {
let [u, d] = (0, F.useState)(null), [f, p] = (0, F.useState)(!1), m = Nt({
queryKey: ["tag-management", n],
queryFn: ({ signal: e }) => V(`/api/tag-management${n === "online" ? "?scope=online" : ""}`, e),
enabled: f && (n === "online" || !t.length)
- }), h = m.data?.items?.filter((e) => !e.hidden && !e.blocked && (n === "online" || e.cat !== "meta")) || t, g = qH(), _ = (e) => {
+ }), h = m.data?.items?.filter((e) => !e.hidden && !e.blocked && (n === "online" || e.cat !== "meta")) || t, g = YH(), _ = (e) => {
g.run("rename", async (t) => {
let r = (await U.fetchQuery({
queryKey: ["tag-management", n],
@@ -70671,9 +70696,9 @@ function P2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
"data-edit-tag": e.k,
title: "修改标签名称",
"aria-label": `修改标签 ${a(e.k)}`,
- ...qV(!!g.busy),
+ ...YV(!!g.busy),
onClick: () => _(e),
- children: /* @__PURE__ */ (0, I.jsx)(N2, { name: "pencil" })
+ children: /* @__PURE__ */ (0, I.jsx)(M2, { name: "pencil" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -70682,10 +70707,10 @@ function P2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
"aria-label": `删除标签 ${a(e.k)}`,
...l(e.k),
onClick: () => c(e),
- children: /* @__PURE__ */ (0, I.jsx)(N2, { name: "x" })
+ children: /* @__PURE__ */ (0, I.jsx)(M2, { name: "x" })
})
]
- }, e.k)), /* @__PURE__ */ (0, I.jsx)(nAe, {
+ }, e.k)), /* @__PURE__ */ (0, I.jsx)(sAe, {
tags: e,
candidates: h,
label: a,
@@ -70696,20 +70721,20 @@ function P2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
loading: m.isFetching
})]
}),
- g.error ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ g.error ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "error",
children: g.error
}) : null,
- m.isError ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ m.isError ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "error",
- action: /* @__PURE__ */ (0, I.jsx)(q, {
+ action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
onClick: () => void m.refetch(),
children: "立即重试"
}),
children: "无法读取标签候选"
}) : null,
- u ? /* @__PURE__ */ (0, I.jsx)(N$, {
+ u ? /* @__PURE__ */ (0, I.jsx)(M$, {
operation: "rename",
selected: [u],
scope: n,
@@ -70718,8 +70743,8 @@ function P2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
}) : null
] });
}
-function nAe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a, onOpen: o, loading: s }) {
- let c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = vH(), d = (0, F.useRef)(null), f = (0, F.useRef)(!1), [p, m] = (0, F.useState)(!1), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(""), [y, b] = (0, F.useState)(-1), x = (0, F.useRef)({
+function sAe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a, onOpen: o, loading: s }) {
+ let c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = bH(), d = (0, F.useRef)(null), f = (0, F.useRef)(!1), [p, m] = (0, F.useState)(!1), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(""), [y, b] = (0, F.useState)(-1), x = (0, F.useRef)({
adding: i,
query: h,
tags: e,
@@ -70764,7 +70789,7 @@ function nAe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
_,
t.length
]);
- let w = p ? Sue(_, t, lF()) : {
+ let w = p ? xue(_, t, mF()) : {
recent: [],
results: [],
create: ""
@@ -70807,7 +70832,7 @@ function nAe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
"aria-pressed": i,
onClick: () => E(t, i),
children: [
- /* @__PURE__ */ (0, I.jsx)(N2, { name: i ? "check" : "tags" }),
+ /* @__PURE__ */ (0, I.jsx)(M2, { name: i ? "check" : "tags" }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-pick-name": "",
children: n(t.k)
@@ -70827,8 +70852,8 @@ function nAe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
title: "添加标签",
"aria-label": "添加标签",
"aria-expanded": p,
- ...qV(!!i),
- children: /* @__PURE__ */ (0, I.jsx)(N2, { name: "plus" })
+ ...YV(!!i),
+ children: /* @__PURE__ */ (0, I.jsx)(M2, { name: "plus" })
}), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: l,
id: "tagPicker",
@@ -70841,7 +70866,7 @@ function nAe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
children: [s ? /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: Rs("正在读取标签") }
- }) : /* @__PURE__ */ (0, I.jsx)(N2, { name: "search" }), /* @__PURE__ */ (0, I.jsx)("input", {
+ }) : /* @__PURE__ */ (0, I.jsx)(M2, { name: "search" }), /* @__PURE__ */ (0, I.jsx)("input", {
ref: d,
id: "tagPickSearch",
maxLength: 80,
@@ -70885,7 +70910,7 @@ function nAe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
onClick: () => {
C(), r(w.create);
},
- children: [/* @__PURE__ */ (0, I.jsx)(N2, { name: "plus" }), /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(M2, { name: "plus" }), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-pick-name": "",
children: [
"新建“",
@@ -70902,8 +70927,8 @@ function nAe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
})] });
}
// src/react/follow-detail/follow-tags.tsx
-function rAe({ item: e, label: t, actions: n }) {
- let r = qH(), i = () => U.invalidateQueries({ predicate: (e) => [
+function cAe({ item: e, label: t, actions: n }) {
+ let r = YH(), i = () => U.invalidateQueries({ predicate: (e) => [
"follow-feed",
"follow",
"tag-management"
@@ -70926,7 +70951,7 @@ function rAe({ item: e, label: t, actions: n }) {
}, "POST", t);
a(n), await i();
}, () => {
- o === "add" && uF(s);
+ o === "add" && hF(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 H("/api/follow/tag", {
@@ -70942,10 +70967,10 @@ function rAe({ item: e, label: t, actions: n }) {
"aria-label": "内容标签",
"data-follow-tag-editor": "",
"data-follow-detail-tags": "",
- children: [/* @__PURE__ */ (0, I.jsx)(P2, {
- tags: Kke(e, t).map((t) => ({
+ children: [/* @__PURE__ */ (0, I.jsx)(N2, {
+ tags: Zke(e, t).map((t) => ({
k: t,
- cat: Gke(e, t)
+ cat: Xke(e, t)
})),
scope: "online",
adding: !!r.busy,
@@ -70954,30 +70979,30 @@ function rAe({ item: e, label: t, actions: n }) {
onOpen: n.openTag,
onAdd: (e) => o("add", e),
onRemove: (e) => o("remove", e.k),
- busyAttrs: () => qV(!!r.busy)
- }), r.error ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ busyAttrs: () => YV(!!r.busy)
+ }), r.error ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "error",
children: r.error
}) : null]
});
}
// src/react/follow-detail/follow-detail-page.tsx
-var F2 = (e) => Number(e) > 0, iAe = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var P2 = (e) => Number(e) > 0, lAe = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: z(e) }
-}), I2 = z("external-link", "ui-externalmark");
-function aAe(e) {
+}), F2 = z("external-link", "ui-externalmark");
+function uAe(e) {
let { id: t, actions: n } = e, r = Nt({
- queryKey: g2(t),
- queryFn: ({ signal: e }) => v2(t, e)
+ queryKey: h2(t),
+ queryFn: ({ signal: e }) => _2(t, e)
}), i = Nt({
queryKey: na,
queryFn: ({ signal: e }) => ra(e)
}), a = (0, F.useMemo)(() => new Set((i.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [i.data]), [o, s] = (0, F.useState)(e.mediaIndex);
- return r.data ? /* @__PURE__ */ (0, I.jsx)(cAe, {
+ return r.data ? /* @__PURE__ */ (0, I.jsx)(pAe, {
...e,
data: r.data,
- context: qke(r.data, a),
+ context: Qke(r.data, a),
mediaIndex: o,
onMedia: s
}) : /* @__PURE__ */ (0, I.jsx)("div", {
@@ -70986,9 +71011,9 @@ function aAe(e) {
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-media": "",
"data-follow-detail-media": "none",
- children: [/* @__PURE__ */ (0, I.jsx)(L2, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {
+ children: [/* @__PURE__ */ (0, I.jsx)(I2, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-detail-placeholder": "",
- children: r.isError ? oAe(r.error) ? /* @__PURE__ */ (0, I.jsx)(sAe, { onBack: n.close }) : /* @__PURE__ */ (0, I.jsx)(gK, {
+ children: r.isError ? dAe(r.error) ? /* @__PURE__ */ (0, I.jsx)(fAe, { onBack: n.close }) : /* @__PURE__ */ (0, I.jsx)(hK, {
message: yn(r.error),
onRetry: () => void r.refetch()
}) : null
@@ -70996,8 +71021,8 @@ function aAe(e) {
})
});
}
-var oAe = (e) => e instanceof _2 || e instanceof ar && e.status === 404;
-function sAe({ onBack: e }) {
+var dAe = (e) => e instanceof g2 || e instanceof ar && e.status === 404;
+function fAe({ onBack: e }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-detail-gone": "",
onClick: (t) => {
@@ -71006,7 +71031,7 @@ function sAe({ onBack: e }) {
dangerouslySetInnerHTML: { __html: Ls("这条关注内容已不存在,可能已被来源删除或已清理。", { actionLabel: "回到关注" }) }
});
}
-var L2 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
+var I2 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -71015,8 +71040,8 @@ var L2 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: z("x") }
});
-function cAe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
- let { item: c, group: l } = e, u = Lke(c, l, n, i), d = mAe(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, F.useState)({
+function pAe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
+ let { item: c, group: l } = e, u = Hke(c, l, n, i), d = yAe(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, F.useState)({
key: "",
kind: ""
}), h = {
@@ -71036,20 +71061,20 @@ function cAe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
c,
u.kind
]);
- let g = !u.embedded.length && u.collection ? Rke(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, I.jsx)(V2, {
+ let g = !u.embedded.length && u.collection ? Uke(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, I.jsx)(B2, {
item: c,
current: u.selected.index,
helpers: o,
actions: s,
onMedia: r
- }) : u.collection ? g ? /* @__PURE__ */ (0, I.jsx)(V2, {
+ }) : u.collection ? g ? /* @__PURE__ */ (0, I.jsx)(B2, {
item: g,
current: null,
helpers: o,
actions: s,
onMedia: r,
currentId: c.id
- }) : /* @__PURE__ */ (0, I.jsx)(dAe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(gAe, {
group: u.collection,
itemId: c.id,
helpers: o,
@@ -71059,14 +71084,14 @@ function cAe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
"data-stage-grid": "",
"data-with-queue": _ ? "" : void 0,
"data-follow-detail": "",
- children: [/* @__PURE__ */ (0, I.jsx)(uAe, {
+ children: [/* @__PURE__ */ (0, I.jsx)(hAe, {
item: c,
media: u,
helpers: o,
actions: s,
onMedia: r,
issues: h
- }, f), /* @__PURE__ */ (0, I.jsx)(fAe, {
+ }, f), /* @__PURE__ */ (0, I.jsx)(_Ae, {
item: c,
data: e,
context: t,
@@ -71076,9 +71101,9 @@ function cAe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
helpers: o,
actions: s
})]
- }), /* @__PURE__ */ (0, I.jsx)(A2, {
+ }), /* @__PURE__ */ (0, I.jsx)(k2, {
queue: _,
- children: a > 0 ? /* @__PURE__ */ (0, I.jsx)(lAe, {
+ children: a > 0 ? /* @__PURE__ */ (0, I.jsx)(mAe, {
data: e,
media: u.kind === "image" ? "images" : u.kind === "video" ? "videos" : i,
limit: a,
@@ -71088,23 +71113,23 @@ function cAe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
}) : null
})] });
}
-function lAe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
+function mAe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
let o = Nt({
- queryKey: eAe(e.item.id, t, n),
- queryFn: ({ signal: r }) => tAe(e, t, n, r)
- }), [s] = (0, F.useState)(() => T2("正在读取推荐", {
+ queryKey: aAe(e.item.id, t, n),
+ queryFn: ({ signal: r }) => oAe(e, t, n, r)
+ }), [s] = (0, F.useState)(() => w2("正在读取推荐", {
cards: !0,
className: "related-skeleton"
})), c = (0, F.useMemo)(() => ({
openDetail: a.openItem,
openAuthor: a.openAuthor,
canFlip: () => !1
- }), [a]), l = M2(o.data?.pages || [], e, t, n), u = o.data?.pages.at(-1)?.sources || e.sources, d = {
+ }), [a]), l = j2(o.data?.pages || [], e, t, n), u = o.data?.pages.at(-1)?.sources || e.sources, d = {
...r,
sources: u,
aliases: o.data?.pages.at(-1)?.author_aliases || r.aliases
};
- return /* @__PURE__ */ (0, I.jsx)(k2, {
+ return /* @__PURE__ */ (0, I.jsx)(O2, {
online: !0,
"data-follow-related": "",
wireDrag: i.wireDrag,
@@ -71114,11 +71139,11 @@ function lAe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }
onRetry: () => {
o.refetch();
},
- children: o.data ? l.map((e) => /* @__PURE__ */ (0, I.jsx)(hQ, {
+ children: o.data ? l.map((e) => /* @__PURE__ */ (0, I.jsx)(mQ, {
variant: "next",
group: e,
media: t,
- authorSources: C2(e.primary, u),
+ authorSources: S2(e.primary, u),
context: d,
selected: !1,
selectMode: !1,
@@ -71131,8 +71156,8 @@ function lAe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }
})
});
}
-function uAe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
- let { kind: a, selected: o, src: s, images: c, position: l, carousel: u, frameRatio: d } = t, f = (0, F.useRef)(null), p = Jke(e, t), m = o?.thumb_url || e.thumb_url || "", h = e.playable && a === "video", g = e.playable && a === "image" ? s : e.thumb_url || "", _ = e.playable && a === "image" && m && m !== s ? m : "", [v, y] = (0, F.useState)(g), b = (0, F.useRef)({
+function hAe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
+ let { kind: a, selected: o, src: s, images: c, position: l, carousel: u, frameRatio: d } = t, f = (0, F.useRef)(null), p = $ke(e, t), m = o?.thumb_url || e.thumb_url || "", h = e.playable && a === "video", g = e.playable && a === "image" ? s : e.thumb_url || "", _ = e.playable && a === "image" && m && m !== s ? m : "", [v, y] = (0, F.useState)(g), b = (0, F.useRef)({
item: e,
selected: o
}), x = (0, F.useRef)(i.failed);
@@ -71146,14 +71171,14 @@ function uAe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
"data-framed": d ? "" : void 0,
style: { "--follow-frame-ratio": d ? d.toFixed(4) : void 0 },
children: [
- /* @__PURE__ */ (0, I.jsx)(L2, { onClose: n.close }),
+ /* @__PURE__ */ (0, I.jsx)(I2, { onClose: n.close }),
h ? null : g ? /* @__PURE__ */ (0, I.jsx)("img", {
"data-follow-detail-poster": "",
"data-zoomable": p.length ? "" : void 0,
src: v,
alt: e.title,
referrerPolicy: "no-referrer",
- onClick: p.length ? () => void iQ(Math.max(0, l), p) : void 0,
+ onClick: p.length ? () => void rQ(Math.max(0, l), p) : void 0,
onError: () => {
_ && v !== _ ? (y(_), i.thumbFallback()) : i.failed();
}
@@ -71161,10 +71186,10 @@ function uAe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
"data-follow-detail-placeholder": "",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: MG(e.resource_provider || e.provider) }
+ dangerouslySetInnerHTML: { __html: FG(e.resource_provider || e.provider) }
}), /* @__PURE__ */ (0, I.jsx)("span", { children: "没有可用预览" })]
}),
- u ? /* @__PURE__ */ (0, I.jsx)(j2, {
+ u ? /* @__PURE__ */ (0, I.jsx)(A2, {
items: c,
position: l,
onSelect: r,
@@ -71181,11 +71206,11 @@ function uAe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
]
});
}
-var R2 = ({ kind: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var L2 = ({ kind: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-nothumb": "",
dangerouslySetInnerHTML: { __html: z(e === "image" ? "image-off" : "play") }
});
-function z2({ src: e }) {
+function R2({ src: e }) {
let [t, n] = (0, F.useState)(!1);
return t ? null : /* @__PURE__ */ (0, I.jsx)("img", {
src: e,
@@ -71195,27 +71220,27 @@ function z2({ src: e }) {
onError: () => n(!0)
});
}
-function B2(e) {
+function z2(e) {
return (0, F.useCallback)((t) => {
t && e.wireDrag(t);
}, [e]);
}
-function dAe({ group: e, itemId: t, helpers: n, actions: r }) {
- let i = ga(e), a = B2(n);
- return /* @__PURE__ */ (0, I.jsx)(uq, {
+function gAe({ group: e, itemId: t, helpers: n, actions: r }) {
+ let i = ga(e), a = z2(n);
+ return /* @__PURE__ */ (0, I.jsx)(lq, {
kind: "collection",
"data-follow-queue": "",
title: "视频合集",
onClose: r.close,
listRef: a,
- summary: `${PG(e.primary)} · ${i.length} 个视频`,
+ summary: `${LG(e.primary)} · ${i.length} 个视频`,
children: i.map((n) => {
- let i = e.duplicates.includes(n), a = Hke(e, n, i ? n.provider_label : ""), o = i ? MG(n.provider, n.provider_label) : "";
- return /* @__PURE__ */ (0, I.jsxs)(dq, {
+ let i = e.duplicates.includes(n), a = qke(e, n, i ? n.provider_label : ""), o = i ? FG(n.provider, n.provider_label) : "";
+ return /* @__PURE__ */ (0, I.jsxs)(uq, {
current: n.id === t,
"data-follow-queue-item": n.id,
onClick: () => r.openItem(n.id),
- pic: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, I.jsx)(z2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(R2, { kind: "video" }), F2(n.duration) ? /* @__PURE__ */ (0, I.jsx)("i", {
+ pic: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, I.jsx)(R2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(L2, { kind: "video" }), P2(n.duration) ? /* @__PURE__ */ (0, I.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
children: Kn(n.duration)
@@ -71233,15 +71258,15 @@ function dAe({ group: e, itemId: t, helpers: n, actions: r }) {
children: a.label
}), /* @__PURE__ */ (0, I.jsx)("time", {
dateTime: n.published_at || "",
- children: GG(n)
+ children: JG(n)
})]
})]
}, n.id);
})
});
}
-function V2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
- let o = e.media_items || [], s = B2(r), c = [];
+function B2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
+ let o = e.media_items || [], s = z2(r), c = [];
o.forEach((e) => {
let t = e.resource_group || "ungrouped", n = c.find((e) => e.key === t);
n || (n = {
@@ -71251,26 +71276,26 @@ function V2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, c.push(n)), n.items.push(e);
});
let l = (t) => e.id === n ? a(t.index) : i.openItem(e.id, t.index);
- return /* @__PURE__ */ (0, I.jsx)(uq, {
+ return /* @__PURE__ */ (0, I.jsx)(lq, {
kind: "media",
"data-follow-queue": "",
title: "多媒体",
onClose: i.close,
listRef: s,
- summary: `${PG(e)} · ${o.length} 个媒体`,
- children: c.map((n) => [n.label ? /* @__PURE__ */ (0, I.jsx)(eye, {
+ summary: `${LG(e)} · ${o.length} 个媒体`,
+ children: c.map((n) => [n.label ? /* @__PURE__ */ (0, I.jsx)(aye, {
label: n.label,
count: n.items.length
- }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, I.jsxs)(dq, {
+ }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, I.jsxs)(uq, {
current: n.index === t,
"data-follow-media-owner": e.id,
"data-follow-media-item": n.index,
"data-media-kind": n.media_kind || "",
onClick: () => l(n),
- pic: n.thumb_url ? /* @__PURE__ */ (0, I.jsx)(z2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(R2, { kind: n.media_kind || "" }),
+ pic: n.thumb_url ? /* @__PURE__ */ (0, I.jsx)(R2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(L2, { kind: n.media_kind || "" }),
children: [/* @__PURE__ */ (0, I.jsx)("b", {
"data-middle-truncate": "",
- children: Uke(n)
+ children: Jke(n)
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-truncate-end": "",
children: n.media_kind === "image" ? "图片" : "视频"
@@ -71278,13 +71303,13 @@ function V2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, n.index))])
});
}
-function fAe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {
+function _Ae({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {
let { kind: c, selected: l, src: u } = r, d = {
primary: e,
variants: [],
duplicates: [],
has_wip: e.variant_kind === "wip"
- }, f = BG(d, e), p = RG(e, C2(e, t.sources), n), m = p.credited ? "" : e.author && Vn(e.author) !== Vn(p.author) ? e.author : "", h = VG(e, n), g = e.status === "saved", { busy: _ } = i, v = (e) => _.has(e) ? {
+ }, f = UG(d, e), p = VG(e, S2(e, t.sources), n), m = p.credited ? "" : e.author && Vn(e.author) !== Vn(p.author) ? e.author : "", h = WG(e, n), g = e.status === "saved", { busy: _ } = i, v = (e) => _.has(e) ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
@@ -71300,7 +71325,7 @@ function fAe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-stage-title": "",
"data-follow-detail-name": "",
"data-reveal-line": "",
- dangerouslySetInnerHTML: { __html: zG(d, e) + B(PG(e)) }
+ dangerouslySetInnerHTML: { __html: HG(d, e) + B(LG(e)) }
}), e.url ? /* @__PURE__ */ (0, I.jsx)("a", {
"data-follow-origin": "",
href: e.url,
@@ -71308,7 +71333,7 @@ function fAe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
rel: "noreferrer noopener",
title: "打开来源页面",
"aria-label": "打开来源页面",
- dangerouslySetInnerHTML: { __html: I2 }
+ dangerouslySetInnerHTML: { __html: F2 }
}) : null]
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -71316,8 +71341,8 @@ function fAe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-stage-meta": "",
"data-reveal-line": "",
children: [
- /* @__PURE__ */ (0, I.jsx)("span", { children: GG(e) }),
- F2(e.duration) ? /* @__PURE__ */ (0, I.jsx)("span", { children: Kn(e.duration) }) : null,
+ /* @__PURE__ */ (0, I.jsx)("span", { children: JG(e) }),
+ P2(e.duration) ? /* @__PURE__ */ (0, I.jsx)("span", { children: Kn(e.duration) }) : null,
f ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-badges": "",
dangerouslySetInnerHTML: { __html: f }
@@ -71334,7 +71359,7 @@ function fAe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
children: "创作者"
}), /* @__PURE__ */ (0, I.jsx)("div", {
"data-id-row": "",
- children: p.entityName ? /* @__PURE__ */ (0, I.jsxs)(pQ, {
+ children: p.entityName ? /* @__PURE__ */ (0, I.jsxs)(fQ, {
name: p.entityName,
actions: s,
"data-id-cell": "creator",
@@ -71366,7 +71391,7 @@ function fAe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
children: [m ? /* @__PURE__ */ (0, I.jsxs)("span", { children: ["发布者 ", m] }) : null, p.credited ? /* @__PURE__ */ (0, I.jsxs)("span", { children: ["署名含 ", p.credited] }) : null]
}) : null]
}),
- e.summary ? /* @__PURE__ */ (0, I.jsx)(pAe, { text: e.summary }, e.id) : null,
+ e.summary ? /* @__PURE__ */ (0, I.jsx)(vAe, { text: e.summary }, e.id) : null,
h ? /* @__PURE__ */ (0, I.jsx)("p", {
"data-follow-media-issue": "",
children: h
@@ -71389,9 +71414,9 @@ function fAe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
href: e,
target: "_blank",
rel: "noreferrer noopener",
- children: [Vke(e), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [Kke(e), /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: I2 }
+ dangerouslySetInnerHTML: { __html: F2 }
})]
}, e))
}) : null,
@@ -71491,7 +71516,7 @@ function fAe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"aria-label": `恢复显示 ${e.name || ""}`,
...v(`restore:${e.index}`),
onClick: () => i.restore(e.index),
- children: [e.thumb_url ? /* @__PURE__ */ (0, I.jsx)(z2, { src: e.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(iAe, { name: "image-off" }), /* @__PURE__ */ (0, I.jsx)("i", { dangerouslySetInnerHTML: { __html: z("rotate-ccw") } })]
+ children: [e.thumb_url ? /* @__PURE__ */ (0, I.jsx)(R2, { src: e.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(lAe, { name: "image-off" }), /* @__PURE__ */ (0, I.jsx)("i", { dangerouslySetInnerHTML: { __html: z("rotate-ccw") } })]
}, e.index))
})]
}) : null,
@@ -71500,7 +71525,7 @@ function fAe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"aria-live": "polite",
children: i.failure
}),
- /* @__PURE__ */ (0, I.jsx)(rAe, {
+ /* @__PURE__ */ (0, I.jsx)(cAe, {
item: e,
label: o.tagLabel,
actions: s
@@ -71509,7 +71534,7 @@ function fAe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
})
});
}
-function pAe({ text: e }) {
+function vAe({ text: e }) {
let t = (0, F.useRef)(null), [n, r] = (0, F.useState)(!1), [i, a] = (0, F.useState)(!1);
return (0, F.useLayoutEffect)(() => {
let e = t.current;
@@ -71522,10 +71547,10 @@ function pAe({ text: e }) {
ref: t,
"data-follow-detail-summary": "",
"data-long-text": "",
- lang: RL(e),
+ lang: BL(e),
"data-clamped": n ? void 0 : "",
children: e
- }), i || n ? /* @__PURE__ */ (0, I.jsx)(q, {
+ }), i || n ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "ghost",
size: "small",
"data-follow-summary-toggle": "",
@@ -71534,8 +71559,8 @@ function pAe({ text: e }) {
children: n ? "收起" : "展开"
}) : null] });
}
-function mAe(e, t, n) {
- let r = e.id, i = g2(r), [a, o] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, F.useState)(""), l = (e, t) => o((n) => {
+function yAe(e, t, n) {
+ let r = e.id, i = h2(r), [a, o] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, F.useState)(""), l = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
}), u = (e) => {
@@ -71554,7 +71579,7 @@ function mAe(e, t, n) {
to: e
}),
onSuccess: (e, { to: n, was: i }) => {
- u(n), c(""), n === "ignored" && dW(), t.toast(Yke(n), { undo: i === "saved" ? void 0 : async () => {
+ u(n), c(""), n === "ignored" && pW(), t.toast(eAe(n), { undo: i === "saved" ? void 0 : async () => {
await H(Ar, {
item: r,
to: i
@@ -71564,7 +71589,7 @@ function mAe(e, t, n) {
onError: d,
onSettled: (e, t, { to: n }) => l(n, !1)
}), p = Pt({
- mutationFn: () => H(Pke, { item: r }),
+ mutationFn: () => H(zke, { item: r }),
onSuccess: () => {
u("saved"), c(""), t.toast("已保存到数据库");
},
@@ -71572,7 +71597,7 @@ function mAe(e, t, n) {
onSettled: () => l("save", !1)
}), m = Pt({
mutationFn: async ({ index: e, hidden: t }) => {
- await H(Fke, {
+ await H(Bke, {
item: r,
media: e,
hidden: t
@@ -71588,12 +71613,12 @@ function mAe(e, t, n) {
onError: d,
onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)
}), h = Nt({
- queryKey: H_e(r),
- queryFn: ({ signal: e }) => G_e(r, e)
+ queryKey: W_e(r),
+ queryFn: ({ signal: e }) => q_e(r, e)
}).data?.want ?? null, g = Pt({
- mutationFn: async (e) => (e ? await uW([e.id]) : await lW({ follow: r }), !e),
+ mutationFn: async (e) => (e ? await fW([e.id]) : await dW({ follow: r }), !e),
onSuccess: (e) => {
- c(""), t.toast(e ? "已加入想要" : "已取消想要"), dW();
+ c(""), t.toast(e ? "已加入想要" : "已取消想要"), pW();
},
onError: d,
onSettled: () => l("want", !1)
@@ -71632,8 +71657,8 @@ function mAe(e, t, n) {
};
}
// src/react/components/identity-cell.tsx
-function H2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a }) {
- nR();
+function V2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a }) {
+ iR();
let o = en(e, t.name, t.id), s = e === "performer" || e === "creator" ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-id-face": "",
dangerouslySetInnerHTML: { __html: `<span>${B(Qn(o))}</span>` + mo({
@@ -71679,7 +71704,7 @@ function H2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a })
children: c
});
}
-function U2({ people: e, onOpen: t }) {
+function H2({ people: e, onOpen: t }) {
if (!e.length) return null;
let n = (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
@@ -71712,7 +71737,7 @@ function U2({ people: e, onOpen: t }) {
});
}
// src/react/components/folded-title.ts
-function W2(e) {
+function U2(e) {
let t = (0, F.useRef)(null), [n, r] = (0, F.useState)(!1), [i, a] = (0, F.useState)(!1);
return (0, F.useLayoutEffect)(() => {
let e = t.current;
@@ -71729,9 +71754,9 @@ function W2(e) {
};
}
// src/react/item-detail/catalog-picture.tsx
-function G2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
+function W2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
let [i, a] = (0, F.useState)(""), [o, s] = (0, F.useState)(0);
- if (n && t > 0 && e.code) return /* @__PURE__ */ (0, I.jsx)(JQ, {
+ if (n && t > 0 && e.code) return /* @__PURE__ */ (0, I.jsx)(qQ, {
item: {
code: e.code,
has_cover: !1,
@@ -71745,9 +71770,9 @@ function G2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
src: c,
alt: "",
onError: () => a(c)
- }) : i === c ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ }) : i === c ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "neutral",
- action: /* @__PURE__ */ (0, I.jsx)(q, {
+ action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
onClick: () => {
a(""), s((e) => e + 1);
@@ -71763,34 +71788,34 @@ function G2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
}, o);
}
// src/react/jav-detail/jav-detail.ts
-var K2 = (e) => ["jav-detail", e], q2 = (e, t, n = !1) => V(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), hAe = (e, t, n, r = !1) => V(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), J2 = (e, t) => U.ensureQueryData({
- queryKey: K2(e.code),
- queryFn: () => q2(e.code, t),
+var G2 = (e) => ["jav-detail", e], K2 = (e, t, n = !1) => V(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), bAe = (e, t, n, r = !1) => V(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), q2 = (e, t) => U.ensureQueryData({
+ queryKey: G2(e.code),
+ queryFn: () => K2(e.code, t),
staleTime: 216e5,
revalidateIfStale: !0
});
-function gAe(e, t) {
+function xAe(e, t) {
if (!e.ok || !e.more) return;
let n = new Set(t.slice(0, -1).flatMap((e) => e.items.map((e) => e.id)));
return e.items.some((e) => !n.has(e.id)) ? e.page + 1 : void 0;
}
// src/react/item-detail/external-playback.tsx
-var Y2 = "peach.playback-target.v1", X2 = [["m3u", "M3U 播放列表"], ["url", "网络播放地址 / VR"]];
-function _Ae() {
+var J2 = "peach.playback-target.v1", Y2 = [["m3u", "M3U 播放列表"], ["url", "网络播放地址 / VR"]];
+function SAe() {
try {
- return localStorage.getItem(Y2) || `local:${localStorage.getItem("peach.local-player.v1") || "default"}`;
+ return localStorage.getItem(J2) || `local:${localStorage.getItem("peach.local-player.v1") || "default"}`;
} catch {
return "local:default";
}
}
-function Z2({ id: e, onOpened: t }) {
- let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(_Ae), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(""), [u, d] = (0, F.useState)(0), f = qH();
+function X2({ id: e, onOpened: t }) {
+ let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(SAe), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(""), [u, d] = (0, F.useState)(0), f = YH();
(0, F.useEffect)(() => {
let e = new AbortController();
return V("/api/local-players", e.signal).then((t) => {
- e.signal.aborted || (r(t.players), a((e) => t.players.some((t) => `local:${t.id}` === e) || X2.some(([t]) => t === e) ? e : t.players.length ? `local:${t.players[0].id}` : "m3u"));
+ e.signal.aborted || (r(t.players), a((e) => t.players.some((t) => `local:${t.id}` === e) || Y2.some(([t]) => t === e) ? e : t.players.length ? `local:${t.players[0].id}` : "m3u"));
}).catch((t) => {
- e.signal.aborted || (r([]), a((e) => X2.some(([t]) => t === e) ? e : "m3u"), l(String(t.message || t)));
+ e.signal.aborted || (r([]), a((e) => Y2.some(([t]) => t === e) ? e : "m3u"), l(String(t.message || t)));
}), () => e.abort();
}, [u]);
let p = () => void f.run("open", async (t) => {
@@ -71814,30 +71839,30 @@ function Z2({ id: e, onOpened: t }) {
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-local-playback-row": "",
- children: [/* @__PURE__ */ (0, I.jsx)(k1, {
+ children: [/* @__PURE__ */ (0, I.jsx)(O1, {
id: `external-player-${e}`,
label: "外部播放器",
- options: [...(n || []).map((e) => [`local:${e.id}`, e.label]), ...X2],
+ options: [...(n || []).map((e) => [`local:${e.id}`, e.label]), ...Y2],
value: i,
disabled: n === null || !!f.busy,
epoch: u * 2 + Number(n !== null),
onPick: (e) => {
a(e), s(null), f.setError("");
try {
- localStorage.setItem(Y2, e);
+ localStorage.setItem(J2, e);
} catch {}
}
- }), /* @__PURE__ */ (0, I.jsx)(q, {
+ }), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
"aria-label": "使用外部播放器打开",
disabled: n === null,
- ...qV(f.busy === "open"),
+ ...YV(f.busy === "open"),
onClick: p,
children: "打开"
})]
}),
- f.error || c ? /* @__PURE__ */ (0, I.jsx)(gU, { children: f.error || c }) : null,
- c ? /* @__PURE__ */ (0, I.jsx)(q, {
+ f.error || c ? /* @__PURE__ */ (0, I.jsx)(vU, { children: f.error || c }) : null,
+ c ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
disabled: !!f.busy,
onClick: () => {
@@ -71845,16 +71870,16 @@ function Z2({ id: e, onOpened: t }) {
},
children: "重新检测播放器"
}) : null,
- o ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(zV, {
+ o ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(VV, {
label: "网络播放地址",
value: o.url,
isReadOnly: !0
- }), /* @__PURE__ */ (0, I.jsx)(hU, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })] }) : null
+ }), /* @__PURE__ */ (0, I.jsx)(_U, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })] }) : null
]
});
}
// src/react/boardui/components/base/switch/switch.tsx
-var vAe = ML({
+var CAe = PL({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -71916,23 +71941,23 @@ var vAe = ML({
}
}
});
-function yAe({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = vAe[t];
+function wAe({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = CAe[t];
return /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
- className: jL("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? jL("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),
+ className: NL("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? NL("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),
children: /* @__PURE__ */ (0, I.jsx)("span", {
- className: jL("absolute flex items-center justify-center", "bg-linear-to-b from-control-indicator-background from-[43.837%] to-control-indicator-background-subtle", "shadow-[0_3px_3px_0_rgb(0_0_0/0.03),0_0.75px_0_0_rgb(0_0_0/0.05)]", "transition-transform duration-200 ease", r.thumb, r.thumbRadius[n], r.offset, e.isSelected && r.travel),
- children: /* @__PURE__ */ (0, I.jsx)("span", { className: jL("border-solid bg-linear-to-t from-[43.837%]", r.chip, r.chipRadius[n], e.isSelected ? "border-accent-600 from-switch-on-chip-start to-switch-on-chip-end" : "border-border-button-default/50 from-switch-off-chip-start to-switch-off-chip-end") })
+ className: NL("absolute flex items-center justify-center", "bg-linear-to-b from-control-indicator-background from-[43.837%] to-control-indicator-background-subtle", "shadow-[0_3px_3px_0_rgb(0_0_0/0.03),0_0.75px_0_0_rgb(0_0_0/0.05)]", "transition-transform duration-200 ease", r.thumb, r.thumbRadius[n], r.offset, e.isSelected && r.travel),
+ children: /* @__PURE__ */ (0, I.jsx)("span", { className: NL("border-solid bg-linear-to-t from-[43.837%]", r.chip, r.chipRadius[n], e.isSelected ? "border-accent-600 from-switch-on-chip-start to-switch-on-chip-end" : "border-border-button-default/50 from-switch-off-chip-start to-switch-off-chip-end") })
})
});
}
-function Q2({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsx)(Upe, {
+function Z2({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
+ return /* @__PURE__ */ (0, I.jsx)(Gpe, {
ref: i,
...a,
- className: (t) => jL("group inline-flex items-center gap-2 select-none", t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
- children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(yAe, {
+ className: (t) => NL("group inline-flex items-center gap-2 select-none", t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
+ children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(wAe, {
state: e,
size: n,
shape: r
@@ -71943,12 +71968,12 @@ function Q2({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
});
}
// src/react/cover-crop/cover-crop.ts
-var bAe = "/api/cover-crop", xAe = (e, t) => H(bAe, {
+var TAe = "/api/cover-crop", EAe = (e, t) => H(TAe, {
code: e,
box: t
});
// src/react/cover-crop/cover-crop-page.tsx
-function $2({ className: e }) {
+function Q2({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -71961,7 +71986,7 @@ function $2({ className: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-crop" })
});
}
-function SAe({ code: e, coverUrl: t, box: n, onSaved: r }) {
+function DAe({ code: e, coverUrl: t, box: n, onSaved: r }) {
let [i, a] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -71971,13 +71996,13 @@ function SAe({ code: e, coverUrl: t, box: n, onSaved: r }) {
title: "裁剪封面:框出正封那一块",
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, I.jsx)($2, { className: "size-3.75" })
- }), /* @__PURE__ */ (0, I.jsx)(BV, {
+ children: /* @__PURE__ */ (0, I.jsx)(Q2, { className: "size-3.75" })
+ }), /* @__PURE__ */ (0, I.jsx)(HV, {
isOpen: i,
onOpenChange: a,
width: "cover-crop",
label: "裁剪封面",
- children: /* @__PURE__ */ (0, I.jsx)(CAe, {
+ children: /* @__PURE__ */ (0, I.jsx)(OAe, {
code: e,
coverUrl: t,
box: n,
@@ -71986,9 +72011,9 @@ function SAe({ code: e, coverUrl: t, box: n, onSaved: r }) {
})
})] });
}
-function CAe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
- let [a, o] = (0, F.useState)(null), [s, c] = (0, F.useState)(null), [l, u] = (0, F.useState)(!0), d = vH(), f = Pt({
- mutationFn: (t) => xAe(e, t),
+function OAe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
+ let [a, o] = (0, F.useState)(null), [s, c] = (0, F.useState)(null), [l, u] = (0, F.useState)(!0), d = bH(), f = Pt({
+ mutationFn: (t) => EAe(e, t),
onSuccess: (e) => {
i(), r(e.poster_box);
}
@@ -72000,19 +72025,19 @@ function CAe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
y0: n.y0,
x1: n.x1,
y1: n.y1
- } : bTe(e, eo);
- c(jQ(t, e, null));
+ } : TTe(e, eo);
+ c(AQ(t, e, null));
}
let m = f.isPending;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, I.jsx)(VV, { children: /* @__PURE__ */ (0, I.jsx)($2, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, I.jsx)(UV, { children: /* @__PURE__ */ (0, I.jsx)(Q2, { className: "size-6" }) }),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)(zR, {
+ /* @__PURE__ */ (0, I.jsx)(VR, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: "裁剪封面"
@@ -72021,14 +72046,14 @@ function CAe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
className: "text-body-2-regular text-text-secondary",
children: [e, ":框出正封那一块,封面原图不动。拖动方框移动,滚轮或角上那枚方块改大小。"]
}),
- f.error ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ f.error ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "error",
children: sr(f.error)
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(aR, {
- icon: yV,
+ /* @__PURE__ */ (0, I.jsx)(sR, {
+ icon: xV,
size: "small",
"aria-label": "关闭",
onClick: i
@@ -72038,24 +72063,24 @@ function CAe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
/* @__PURE__ */ (0, I.jsx)("div", {
ref: d,
className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",
- children: /* @__PURE__ */ (0, I.jsx)(IQ, {
+ children: /* @__PURE__ */ (0, I.jsx)(FQ, {
src: t,
aspect: l ? eo : null,
box: s,
size: a,
label: `${e} 的正封取景框`,
onSize: (e) => {
- kQ(e) && p(e);
+ OQ(e) && p(e);
},
onBox: c
})
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",
- children: [/* @__PURE__ */ (0, I.jsx)(Q2, {
+ children: [/* @__PURE__ */ (0, I.jsx)(Z2, {
isSelected: l,
onChange: (e) => {
- u(e), e && s && a && c(jQ(s, a, eo));
+ u(e), e && s && a && c(AQ(s, a, eo));
},
children: /* @__PURE__ */ (0, I.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -72063,16 +72088,16 @@ function CAe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
})
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-1 flex-wrap items-center justify-end gap-3",
- children: [/* @__PURE__ */ (0, I.jsx)(q, {
+ children: [/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...qV(m),
+ ...YV(m),
onClick: () => {
m || f.mutate(null);
},
children: "恢复默认"
- }), /* @__PURE__ */ (0, I.jsx)(q, {
+ }), /* @__PURE__ */ (0, I.jsx)(J, {
disabled: !s || !a,
- ...qV(m),
+ ...YV(m),
onClick: () => {
s && !m && f.mutate(s);
},
@@ -72083,21 +72108,21 @@ function CAe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
] });
}
// src/react/item-detail/item-detail-page.tsx
-var e4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var $2 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: z(e) }
-}), t4 = ({ html: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+}), e4 = ({ html: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: e }
-}), n4 = (e) => Number(e) > 0 ? Jn(Number(e)) : "大小未知";
-function wAe(e) {
+}), t4 = (e) => Number(e) > 0 ? Jn(Number(e)) : "大小未知";
+function kAe(e) {
let { queue: t, actions: n } = e, r = Nt({
- queryKey: t ? WP(t) : ["item-queue", "none"],
- queryFn: ({ signal: n }) => $P(t, e.helpers, n),
+ queryKey: t ? YP(t) : ["item-queue", "none"],
+ queryFn: ({ signal: n }) => iF(t, e.helpers, n),
enabled: !!t
- }), i = t && r.data || null, a = i ? nF(i, e.id) : t ? null : e.id, o = Nt({
- queryKey: UP(a ?? 0),
- queryFn: ({ signal: e }) => QP(a, e),
+ }), i = t && r.data || null, a = i ? sF(i, e.id) : t ? null : e.id, o = Nt({
+ queryKey: JP(a ?? 0),
+ queryFn: ({ signal: e }) => rF(a, e),
enabled: a != null
});
if (!o.data || t && !i) {
@@ -72108,9 +72133,9 @@ function wAe(e) {
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-media": "",
"data-item-media": "none",
- children: [/* @__PURE__ */ (0, I.jsx)(r4, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {
+ children: [/* @__PURE__ */ (0, I.jsx)(n4, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {
"data-item-placeholder": "",
- children: e ? /* @__PURE__ */ (0, I.jsx)(gK, {
+ children: e ? /* @__PURE__ */ (0, I.jsx)(hK, {
message: yn(e),
onRetry: () => {
r.error && r.refetch(), o.error && o.refetch();
@@ -72120,13 +72145,13 @@ function wAe(e) {
})
});
}
- return /* @__PURE__ */ (0, I.jsx)(TAe, {
+ return /* @__PURE__ */ (0, I.jsx)(AAe, {
...e,
- item: yue(o.data, i),
+ item: vue(o.data, i),
queue: i
}, o.data.id);
}
-var r4 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
+var n4 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -72135,23 +72160,23 @@ var r4 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: z("x") }
});
-function TAe(e) {
- let { item: t, queue: n, actions: r, helpers: i } = e, a = BAe(t, r, i.tagLabel), o = (0, F.useRef)(t);
+function AAe(e) {
+ let { item: t, queue: n, actions: r, helpers: i } = e, a = GAe(t, r, i.tagLabel), o = (0, F.useRef)(t);
(0, F.useLayoutEffect)(() => {
r.present(o.current, n);
}, [r]), (0, F.useEffect)(() => {
- n?.kind === "playlist" && H(GP, {
+ n?.kind === "playlist" && H(XP, {
action: "progress",
id: n.playlistId,
asset_id: t.id
}).catch(() => {});
}, []);
- let s = kue(t, i.sourceOffline(String(t.root_id || t.location || ""))), c = rF(n, t.id);
+ let s = Oue(t, i.sourceOffline(String(t.root_id || t.location || ""))), c = cF(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,
"data-item-detail": "",
- children: [/* @__PURE__ */ (0, I.jsx)(EAe, {
+ children: [/* @__PURE__ */ (0, I.jsx)(jAe, {
item: t,
gate: s,
helpers: i,
@@ -72164,22 +72189,22 @@ function TAe(e) {
autoplay: !0
}, c.id);
}
- }), /* @__PURE__ */ (0, I.jsx)(jAe, {
+ }), /* @__PURE__ */ (0, I.jsx)(IAe, {
item: t,
queue: n,
write: a,
helpers: i,
actions: r
})]
- }), /* @__PURE__ */ (0, I.jsx)(A2, {
+ }), /* @__PURE__ */ (0, I.jsx)(k2, {
queueCards: n?.kind === "parts" || n?.kind === "editions" ? n.items.length : void 0,
- queue: n ? /* @__PURE__ */ (0, I.jsx)(OAe, {
+ queue: n ? /* @__PURE__ */ (0, I.jsx)(NAe, {
queue: n,
itemId: t.id,
helpers: i,
actions: r
}) : null,
- children: e.relatedLimit > 0 && (!n || n.kind === "parts" || n.kind === "editions") ? /* @__PURE__ */ (0, I.jsx)(zAe, {
+ children: e.relatedLimit > 0 && (!n || n.kind === "parts" || n.kind === "editions") ? /* @__PURE__ */ (0, I.jsx)(WAe, {
...e,
item: n ? {
...t,
@@ -72188,12 +72213,12 @@ function TAe(e) {
}) : null
})] });
}
-function EAe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {
+function jAe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {
let [o, s] = (0, F.useState)(t ? "" : "auto"), c = (0, F.useRef)(null), [l, u] = (0, F.useState)(-2), d = (0, F.useRef)(!1), f = Nt({
- queryKey: K2(e.code || ""),
+ queryKey: G2(e.code || ""),
queryFn: ({ signal: t }) => {
let n = d.current;
- return d.current = !1, q2(e.code, t, n);
+ return d.current = !1, K2(e.code, t, n);
},
staleTime: 216e5,
enabled: !!e.is_jav && !!e.code && !e.sample_images?.length
@@ -72238,7 +72263,7 @@ function EAe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
"data-item-gallery": h ? "" : void 0,
"data-item-picture": l === -2 ? void 0 : "",
children: [
- /* @__PURE__ */ (0, I.jsx)(r4, { onClose: r.close }),
+ /* @__PURE__ */ (0, I.jsx)(n4, { onClose: r.close }),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-player-toolbar": "",
children: [
@@ -72248,21 +72273,21 @@ function EAe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
"data-jav-preview-toggle": "",
"aria-pressed": l !== -2,
onClick: () => g(l === -2 ? m[0].index : -2),
- children: [/* @__PURE__ */ (0, I.jsx)(e4, { name: l === -2 ? "image" : "play" }), l === -2 ? "查看图片" : "播放正片"]
+ children: [/* @__PURE__ */ (0, I.jsx)($2, { name: l === -2 ? "image" : "play" }), l === -2 ? "查看图片" : "播放正片"]
}) : null,
/* @__PURE__ */ (0, I.jsx)("span", { "data-player-net-slot": "" })
]
}),
- h ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [l === -2 ? null : /* @__PURE__ */ (0, I.jsx)(G2, {
+ h ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [l === -2 ? null : /* @__PURE__ */ (0, I.jsx)(W2, {
item: e,
image: l,
source: p.find((e) => e.index === l)?.source
- }, e.id), /* @__PURE__ */ (0, I.jsx)(j2, {
+ }, e.id), /* @__PURE__ */ (0, I.jsx)(A2, {
items: m,
position: Math.max(0, m.findIndex((e) => e.index === l)),
onSelect: g,
below: !0,
- renderThumbnail: (t) => /* @__PURE__ */ (0, I.jsx)(G2, {
+ renderThumbnail: (t) => /* @__PURE__ */ (0, I.jsx)(W2, {
item: e,
image: t.index === -2 ? m[0].index : t.index,
source: p.find((e) => e.index === (t.index === -2 ? m[0].index : t.index))?.source,
@@ -72276,9 +72301,9 @@ function EAe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
role: "status",
"aria-label": "正在读取样图",
className: "relative block h-12 w-20 skeleton-sheen"
- }) : /* @__PURE__ */ (0, I.jsx)(q, {
+ }) : /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...qV(f.isFetching),
+ ...YV(f.isFetching),
title: f.data?.message || yn(f.error),
"aria-label": "立即重试样图",
onClick: () => {
@@ -72287,7 +72312,7 @@ function EAe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
children: "立即重试"
})
}) : null,
- t === "offline" ? /* @__PURE__ */ (0, I.jsx)(DAe, {
+ t === "offline" ? /* @__PURE__ */ (0, I.jsx)(MAe, {
item: e,
badge: y,
helpers: n,
@@ -72298,7 +72323,7 @@ function EAe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
children: [
/* @__PURE__ */ (0, I.jsx)("b", { children: "ISO 原盘" }),
/* @__PURE__ */ (0, I.jsx)("span", { children: "请使用支持原盘的外部播放器打开。" }),
- /* @__PURE__ */ (0, I.jsx)(Z2, {
+ /* @__PURE__ */ (0, I.jsx)(X2, {
id: e.id,
onOpened: () => r.toast("已请求打开本地播放器")
}, e.id)
@@ -72308,7 +72333,7 @@ function EAe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
role: "status",
"data-item-gate": "online",
children: [
- /* @__PURE__ */ (0, I.jsx)(t4, { html: y }),
+ /* @__PURE__ */ (0, I.jsx)(e4, { html: y }),
/* @__PURE__ */ (0, I.jsx)("b", { children: "在线作品" }),
/* @__PURE__ */ (0, I.jsx)("span", { children: "这条没有对应的关注条目,媒体地址无从解析。" }),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -72323,12 +72348,12 @@ function EAe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
id: "gate",
"data-item-gate": "metered",
onClick: () => s("clicked"),
- children: [/* @__PURE__ */ (0, I.jsx)(t4, { html: y }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["点此开始拉流 · ", n4(e.size)] })]
+ children: [/* @__PURE__ */ (0, I.jsx)(e4, { html: y }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["点此开始拉流 · ", t4(e.size)] })]
}) : null
]
});
}
-function DAe({ item: e, badge: t, helpers: n, actions: r }) {
+function MAe({ item: e, badge: t, helpers: n, actions: r }) {
let [i, a] = (0, F.useState)(!1), [o, s] = (0, F.useState)(!1), c = async () => {
a(!0);
let t = await r.checkSource(e.location || "").catch(() => !1);
@@ -72339,7 +72364,7 @@ function DAe({ item: e, badge: t, helpers: n, actions: r }) {
role: "status",
"data-item-gate": "offline",
children: [
- /* @__PURE__ */ (0, I.jsx)(t4, { html: t }),
+ /* @__PURE__ */ (0, I.jsx)(e4, { html: t }),
/* @__PURE__ */ (0, I.jsx)("b", { children: "媒体目录无法访问" }),
/* @__PURE__ */ (0, I.jsx)("span", { children: n.offlineReason(String(e.root_id || e.location || "")) }),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -72353,8 +72378,8 @@ function DAe({ item: e, badge: t, helpers: n, actions: r }) {
]
});
}
-function OAe({ queue: e, itemId: t, helpers: n, actions: r }) {
- let i = Tue(e), a = (0, F.useRef)(null), o = AAe(e, t, r), s = (0, F.useRef)(o);
+function NAe({ queue: e, itemId: t, helpers: n, actions: r }) {
+ let i = wue(e), a = (0, F.useRef)(null), o = FAe(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, {
@@ -72362,7 +72387,7 @@ function OAe({ queue: e, itemId: t, helpers: n, actions: r }) {
attribute: "data-queue-row",
onMove: (e, t, n) => s.current.move(+e, +t, n)
}));
- }, [n, e.kind]), l = kAe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)("button", {
+ }, [n, e.kind]), l = PAe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-save-mix": "",
title: "保存为播放列表",
@@ -72381,7 +72406,7 @@ function OAe({ queue: e, itemId: t, helpers: n, actions: r }) {
seedId: e.seedId,
playlistId: e.playlistId
};
- return /* @__PURE__ */ (0, I.jsx)(uq, {
+ return /* @__PURE__ */ (0, I.jsx)(lq, {
kind: e.kind,
title: i.title,
summary: i.summary,
@@ -72390,11 +72415,11 @@ function OAe({ 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 ${Cue[i.edition_label] || "censored"}`,
+ className: `javedition ${Sue[i.edition_label] || "censored"}`,
"data-queue-edition": "",
children: i.edition_label
- }) : null, s = e.kind === "playlist" && tF(i);
- return /* @__PURE__ */ (0, I.jsxs)(dq, {
+ }) : null, s = e.kind === "playlist" && oF(i);
+ return /* @__PURE__ */ (0, I.jsxs)(uq, {
current: i.id === t,
"data-queue-item": i.id,
row: { "data-queue-row": i.id },
@@ -72404,25 +72429,25 @@ function OAe({ queue: e, itemId: t, helpers: n, actions: r }) {
onClick: () => {
s || r.openQueueItem(d, i.id);
},
- pic: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(t4, { html: Eo(i, n.javImage()) }), /* @__PURE__ */ (0, I.jsx)("i", {
+ pic: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(e4, { html: Eo(i, n.javImage()) }), /* @__PURE__ */ (0, I.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
children: Kn(i.duration)
})] }),
- lead: /* @__PURE__ */ (0, I.jsx)(t4, { html: ko(i) }),
+ lead: /* @__PURE__ */ (0, I.jsx)(e4, { html: ko(i) }),
after: e.kind === "playlist" ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-queue-edit": "",
children: [/* @__PURE__ */ (0, I.jsx)("i", {
"data-queue-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(e4, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, I.jsx)($2, { name: "grip-vertical" })
}), /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-queue-remove": i.id,
title: "移出播放列表",
"aria-label": "移出播放列表",
onClick: () => o.remove(i.id),
- children: /* @__PURE__ */ (0, I.jsx)(e4, { name: "x" })
+ children: /* @__PURE__ */ (0, I.jsx)($2, { name: "x" })
})]
}) : null,
children: [/* @__PURE__ */ (0, I.jsxs)("span", {
@@ -72433,14 +72458,14 @@ function OAe({ 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 ? dF(i.part_label) : Ao(i, n.tagLabel)
+ children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" || e.kind === "editions" && i.part_label ? gF(i.part_label) : Ao(i, n.tagLabel)
})]
}, i.id);
})
});
}
-function kAe(e, t) {
- let n = Pt({ mutationFn: (t) => H(GP, {
+function PAe(e, t) {
+ let n = Pt({ mutationFn: (t) => H(XP, {
action: "create",
name: t,
asset_ids: e.items.map((e) => e.id),
@@ -72453,11 +72478,11 @@ function kAe(e, t) {
save: (e) => n.mutateAsync(e)
});
}
-function AAe(e, t, n) {
- let r = WP({
+function FAe(e, t, n) {
+ let r = YP({
kind: "playlist",
playlistId: e.playlistId
- }), i = (e) => (U.setQueryData(r, eF(e)), e), a = (t) => H(GP, {
+ }), i = (e) => (U.setQueryData(r, aF(e)), e), a = (t) => H(XP, {
id: e.playlistId,
...t
}).then((e) => e.playlist), o = Pt({
@@ -72473,8 +72498,8 @@ function AAe(e, t, n) {
return {
move: async (t, r, c) => {
if (e.kind !== "playlist") return;
- let l = Due(s, t, r, c);
- if (Oue(l, s)) return;
+ let l = Eue(s, t, r, c);
+ if (Due(l, s)) return;
let u = s;
await o.mutateAsync(l), n.toast("已调整播放顺序", { undo: async () => {
i(await a({
@@ -72516,7 +72541,7 @@ function AAe(e, t, n) {
}
};
}
-function jAe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
+function IAe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
let a = e.location === "online", o = n.busyAttrs, [s, c] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-stage-side": "",
@@ -72524,7 +72549,7 @@ function jAe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-side-content": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(MAe, {
+ /* @__PURE__ */ (0, I.jsx)(LAe, {
item: e,
queue: t,
helpers: r,
@@ -72536,7 +72561,7 @@ function jAe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-live": "polite",
children: n.sourceState
}),
- /* @__PURE__ */ (0, I.jsx)(PAe, {
+ /* @__PURE__ */ (0, I.jsx)(zAe, {
item: e,
write: n
}),
@@ -72547,7 +72572,7 @@ function jAe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
children: [
e.width && e.height ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, I.jsx)(e4, { name: "monitor" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [
+ children: [/* @__PURE__ */ (0, I.jsx)($2, { name: "monitor" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [
e.width,
"×",
e.height
@@ -72555,11 +72580,11 @@ function jAe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
}) : null,
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, I.jsx)(e4, { name: "hard-drive" }), /* @__PURE__ */ (0, I.jsx)("span", { children: n4(e.size) })]
+ children: [/* @__PURE__ */ (0, I.jsx)($2, { name: "hard-drive" }), /* @__PURE__ */ (0, I.jsx)("span", { children: t4(e.size) })]
}),
e.release_date ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, I.jsx)(e4, { name: "calendar" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.release_date })]
+ children: [/* @__PURE__ */ (0, I.jsx)($2, { name: "calendar" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.release_date })]
}) : null,
e.region_label ? /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
@@ -72567,32 +72592,32 @@ function jAe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"data-open-region": e.region || "",
title: e.region_settled ? "已判定的产地;打开同产地的作品" : "按番号或厂牌推断的产地,批量判定后不再变;打开同产地的作品",
onClick: () => i.openRegion(e.region || ""),
- children: [/* @__PURE__ */ (0, I.jsx)(e4, { name: "globe" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
+ children: [/* @__PURE__ */ (0, I.jsx)($2, { name: "globe" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
}) : null
]
}),
- (e.medium || "video") === "video" && !a && !String(e.name || "").toLowerCase().endsWith(".iso") ? /* @__PURE__ */ (0, I.jsx)(Z2, {
+ (e.medium || "video") === "video" && !a && !String(e.name || "").toLowerCase().endsWith(".iso") ? /* @__PURE__ */ (0, I.jsx)(X2, {
id: e.id,
onOpened: () => i.toast("已请求打开本地播放器")
}, e.id) : null,
- /* @__PURE__ */ (0, I.jsx)(FAe, {
+ /* @__PURE__ */ (0, I.jsx)(BAe, {
item: e,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, I.jsx)(IAe, {
+ /* @__PURE__ */ (0, I.jsx)(VAe, {
item: e,
write: n,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, I.jsx)(Sq, {
- assetIds: xq([e], r.javImage()),
+ /* @__PURE__ */ (0, I.jsx)(xq, {
+ assetIds: bq([e], r.javImage()),
onComplete: () => {
- U.invalidateQueries({ queryKey: UP(e.id) });
+ U.invalidateQueries({ queryKey: JP(e.id) });
}
}),
- /* @__PURE__ */ (0, I.jsx)(LAe, { item: e }),
+ /* @__PURE__ */ (0, I.jsx)(HAe, { item: e }),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-actions": "",
"data-item-feedback": "",
@@ -72606,7 +72631,7 @@ function jAe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.liked,
...o("like"),
onClick: () => n.preference({ liked: !e.liked }),
- children: /* @__PURE__ */ (0, I.jsx)(e4, { name: "thumbs-up" })
+ children: /* @__PURE__ */ (0, I.jsx)($2, { name: "thumbs-up" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -72618,7 +72643,7 @@ function jAe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-controls": "preferencePanel",
"data-has-reason": String(!!e.like_reason),
onClick: () => c((e) => !e),
- children: /* @__PURE__ */ (0, I.jsx)(e4, { name: "notebook-pen" })
+ children: /* @__PURE__ */ (0, I.jsx)($2, { name: "notebook-pen" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -72629,7 +72654,7 @@ function jAe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.feedback === "dislike",
...o("dislike"),
onClick: () => n.feedback("dislike"),
- children: /* @__PURE__ */ (0, I.jsx)(e4, { name: "thumbs-down" })
+ children: /* @__PURE__ */ (0, I.jsx)($2, { name: "thumbs-down" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -72640,7 +72665,7 @@ function jAe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.feedback === "seen",
...o("seen"),
onClick: () => n.feedback("seen"),
- children: /* @__PURE__ */ (0, I.jsx)(e4, { name: "eye" })
+ children: /* @__PURE__ */ (0, I.jsx)($2, { name: "eye" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -72651,7 +72676,7 @@ function jAe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.watch_later,
...o("later"),
onClick: n.later,
- children: /* @__PURE__ */ (0, I.jsx)(e4, { name: e.watch_later ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, I.jsx)($2, { name: e.watch_later ? "check" : "bookmark-plus" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -72660,7 +72685,7 @@ function jAe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-label": "加入播放列表",
title: "加入播放列表",
onClick: () => i.addToPlaylist(e),
- children: /* @__PURE__ */ (0, I.jsx)(e4, { name: "playlist" })
+ children: /* @__PURE__ */ (0, I.jsx)($2, { name: "playlist" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -72671,7 +72696,7 @@ function jAe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.better_version,
...o("quality"),
onClick: n.quality,
- children: /* @__PURE__ */ (0, I.jsx)(e4, { name: "sparkles" })
+ children: /* @__PURE__ */ (0, I.jsx)($2, { name: "sparkles" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -72682,11 +72707,11 @@ function jAe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.disposal === "trash",
...o("dispose"),
onClick: () => n.feedback("dispose"),
- children: /* @__PURE__ */ (0, I.jsx)(e4, { name: "trash" })
+ children: /* @__PURE__ */ (0, I.jsx)($2, { name: "trash" })
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(RAe, {
+ /* @__PURE__ */ (0, I.jsx)(UAe, {
item: e,
open: s,
write: n
@@ -72697,7 +72722,7 @@ function jAe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
...o("o"),
onClick: () => n.feedback("o"),
children: [
- /* @__PURE__ */ (0, I.jsx)(e4, { name: "sperm" }),
+ /* @__PURE__ */ (0, I.jsx)($2, { name: "sperm" }),
/* @__PURE__ */ (0, I.jsx)("span", { children: "记一次高潮" }),
/* @__PURE__ */ (0, I.jsx)("b", {
className: "mono",
@@ -72710,8 +72735,8 @@ function jAe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
});
}
-function MAe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
- let { text: a, expanded: o, foldable: s, toggle: c } = W2(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Eue(e, t);
+function LAe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
+ let { text: a, expanded: o, foldable: s, toggle: c } = U2(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Tue(e, t);
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-item-title": "",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -72738,23 +72763,23 @@ function MAe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
"aria-label": o ? "收起标题" : "展开标题",
title: o ? "收起标题" : "展开完整标题",
onClick: c,
- children: /* @__PURE__ */ (0, I.jsx)(fU, {})
+ children: /* @__PURE__ */ (0, I.jsx)(mU, {})
}),
e.has_cover && (e.cover_key || e.code) ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-cover-crop-host": "",
- children: /* @__PURE__ */ (0, I.jsx)(SAe, {
+ children: /* @__PURE__ */ (0, I.jsx)(DAe, {
code: e.cover_key || e.code || "",
coverUrl: so(e),
box: e.poster_box || null,
onSaved: (t) => {
U.invalidateQueries({
- queryKey: UP(e.id),
+ queryKey: JP(e.id),
exact: !0
- }), zP((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
+ }), WP((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
}
})
}) : null,
- e.location === "online" ? null : /* @__PURE__ */ (0, I.jsx)(NAe, {
+ e.location === "online" ? null : /* @__PURE__ */ (0, I.jsx)(RAe, {
id: e.id,
actions: r,
onStatus: i
@@ -72764,7 +72789,7 @@ function MAe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
})
});
}
-function NAe({ id: e, actions: t, onStatus: n }) {
+function RAe({ id: e, actions: t, onStatus: n }) {
let [r, i] = (0, F.useState)(""), a = async () => {
r || (i("reveal"), n(""), n(await t.reveal(e)), i(""));
}, o = async () => {
@@ -72794,18 +72819,18 @@ function NAe({ id: e, actions: t, onStatus: n }) {
"aria-disabled": !0
} : {},
onClick: () => void o(),
- children: /* @__PURE__ */ (0, I.jsx)(e4, { name: "folder-sync" })
+ children: /* @__PURE__ */ (0, I.jsx)($2, { name: "folder-sync" })
})] });
}
-function PAe({ item: e, write: t }) {
- let n = VP(e.rating);
+function zAe({ item: e, write: t }) {
+ let n = KP(e.rating);
return /* @__PURE__ */ (0, I.jsxs)("div", {
id: "detailRating",
role: "group",
"data-item-rating": "",
"aria-label": "评分",
- "data-value": BP(e.rating),
- children: [/* @__PURE__ */ (0, I.jsx)(FY, {
+ "data-value": GP(e.rating),
+ children: [/* @__PURE__ */ (0, I.jsx)(PY, {
value: n,
onRate: (e) => t.rate(e),
busyStar: [
@@ -72819,14 +72844,14 @@ function PAe({ item: e, write: t }) {
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-rating-value": "",
"aria-live": "polite",
- children: hue(e.rating)
+ children: mue(e.rating)
})]
});
}
-function FAe({ item: e, actions: t }) {
- let n = (0, F.useMemo)(() => bue(e), [e]), [r, i] = (0, F.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
+function BAe({ item: e, actions: t }) {
+ let n = (0, F.useMemo)(() => yue(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)(H2, {
+ return /* @__PURE__ */ (0, I.jsx)(V2, {
kind: e,
person: n,
onOpen: t.openEntity,
@@ -72858,19 +72883,19 @@ function FAe({ item: e, actions: t }) {
onClick: t.openUnowned,
children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-id-face": "",
- children: /* @__PURE__ */ (0, I.jsx)(e4, { name: "user-round" })
+ children: /* @__PURE__ */ (0, I.jsx)($2, { name: "user-round" })
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-id-name": "",
children: "未归属"
})]
})
})]
- }, "unowned") : s(po(e), "performer", n.cast, a && !r ? /* @__PURE__ */ (0, I.jsxs)(q, {
+ }, "unowned") : s(po(e), "performer", n.cast, a && !r ? /* @__PURE__ */ (0, I.jsxs)(J, {
variant: "secondary",
size: "small",
id: "castMore",
"data-cast-more": "",
- trailingIcon: gV,
+ trailingIcon: vV,
"aria-expanded": !1,
onClick: () => i(!0),
children: [
@@ -72889,18 +72914,18 @@ function FAe({ item: e, actions: t }) {
children: [c.length ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-identity-primary": "",
children: c
- }) : null, /* @__PURE__ */ (0, I.jsx)(U2, {
+ }) : null, /* @__PURE__ */ (0, I.jsx)(H2, {
people: n.series,
onOpen: t.openEntity
})]
});
}
-function IAe({ item: e, write: t, helpers: n, actions: r }) {
+function VAe({ item: e, write: t, helpers: n, actions: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-item-tags": "",
- children: /* @__PURE__ */ (0, I.jsx)(P2, {
+ children: /* @__PURE__ */ (0, I.jsx)(N2, {
id: "detailTags",
- tags: xue(e, n),
+ tags: bue(e, n),
candidates: n.tagCandidates(),
label: n.tagLabel,
adding: [...t.busy].some((e) => e.startsWith("add:")),
@@ -72911,8 +72936,8 @@ function IAe({ item: e, write: t, helpers: n, actions: r }) {
})
});
}
-function LAe({ item: e }) {
- let t = Aue(e);
+function HAe({ item: e }) {
+ let t = kue(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-item-trace": "",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -72946,7 +72971,7 @@ function LAe({ item: e }) {
})]
});
}
-function RAe({ item: e, open: t, write: n }) {
+function UAe({ item: e, open: t, write: n }) {
let [r, i] = (0, F.useState)(e.like_reason || ""), a = (0, F.useRef)(null);
(0, F.useEffect)(() => {
t && a.current?.focus();
@@ -72985,12 +73010,12 @@ function RAe({ item: e, open: t, write: n }) {
})]
});
}
-function zAe(e) {
+function WAe(e) {
let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = Nt({
- queryKey: gue(t.id, n),
- queryFn: async ({ signal: e }) => (await V(vue(t.id, n), e)).items || []
+ queryKey: hue(t.id, n),
+ queryFn: async ({ signal: e }) => (await V(_ue(t.id, n), e)).items || []
}), [o] = (0, F.useState)(() => r.relatedSkeletonHtml());
- return /* @__PURE__ */ (0, I.jsx)(k2, {
+ return /* @__PURE__ */ (0, I.jsx)(O2, {
wireDrag: r.wireDrag,
busy: a.isPending,
empty: a.data?.length === 0,
@@ -72998,7 +73023,7 @@ function zAe(e) {
onRetry: () => {
a.refetch();
},
- children: a.data ? /* @__PURE__ */ (0, I.jsx)(WY, {
+ children: a.data ? /* @__PURE__ */ (0, I.jsx)(UY, {
mode: "items",
variant: "next",
items: a.data,
@@ -73011,11 +73036,11 @@ function zAe(e) {
revision: 0,
wireDrag: r.wireDrag,
skeletonHtml: () => ""
- }) : /* @__PURE__ */ (0, I.jsx)(t4, { html: o })
+ }) : /* @__PURE__ */ (0, I.jsx)(e4, { html: o })
});
}
-function BAe(e, t, n) {
- let r = e.id, i = UP(r), [a, o] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), d = (e, t) => o((n) => {
+function GAe(e, t, n) {
+ let r = e.id, i = JP(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 = () => U.getQueryData(i) || e, p = (e) => {
@@ -73031,7 +73056,7 @@ function BAe(e, t, n) {
rating: t.rating,
o_count: t.o_count
};
- return RP(r, n), t;
+ return UP(r, n), t;
}, m = (e, t) => H(e, {
id: r,
...t
@@ -73046,7 +73071,7 @@ function BAe(e, t, n) {
run: n
}));
}, _ = async (e, t) => {
- let n = await m(KP, t === void 0 ? { kind: e } : {
+ let n = await m(ZP, t === void 0 ? { kind: e } : {
kind: e,
value: t
});
@@ -73066,21 +73091,21 @@ function BAe(e, t, n) {
"aria-disabled": !0
} : {},
rate: (e) => g(`rate:${e}`, "评分", async () => {
- let n = f().rating || 0, r = HP(n, e);
- await _("rate", r), t.toast(r ? `已评 ${VP(r)} 星` : "已取消评分", { undo: async () => {
+ let n = f().rating || 0, r = qP(n, e);
+ await _("rate", r), t.toast(r ? `已评 ${KP(r)} 星` : "已取消评分", { undo: async () => {
await _("rate", n);
} });
}),
feedback: (e) => g(e, "操作", async () => {
let n = { feedback: f().feedback || null }, r = await _(e);
- t.toast(fF(e, r), { undo: async () => {
+ t.toast(_F(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(JP, {});
+ let e = await m($P, {});
p({ watch_later: e.watch_later }), t.toast(e.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
- p({ watch_later: (await m(JP, {})).watch_later });
+ p({ watch_later: (await m($P, {})).watch_later });
} });
}),
quality: () => g("quality", "更新版本需求", async () => {
@@ -73090,9 +73115,9 @@ function BAe(e, t, n) {
}, n = (e) => p({
better_version: e.better_version,
better_version_reason: e.better_version_reason || ""
- }), r = await m(YP, { wanted: !e.wanted });
+ }), r = await m(eF, { wanted: !e.wanted });
n(r), t.toast(r.better_version ? "已标记寻找更好版本" : "已取消寻找更好版本", { undo: async () => {
- n(await m(YP, e));
+ n(await m(eF, e));
} });
}),
preference: ({ liked: e, reason: n }) => {
@@ -73106,7 +73131,7 @@ function BAe(e, t, n) {
});
u("保存中…");
try {
- o(await m(XP, {
+ o(await m(tF, {
liked: a,
reason: i
}));
@@ -73116,7 +73141,7 @@ function BAe(e, t, n) {
u("已保存"), setTimeout(() => u((e) => e === "已保存" ? "" : e), 1400);
let s = f();
t.toast(s.liked ? "已保存喜欢偏好" : "已取消喜欢", { undo: async () => {
- o(await m(XP, r));
+ o(await m(tF, r));
} });
});
},
@@ -73125,41 +73150,41 @@ function BAe(e, t, n) {
operation: "remove",
tag: e.k
})).ok) throw Error("标签未删除");
- p((t) => oF(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
- await m(qP, {
+ p((t) => dF(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
+ await m(QP, {
operation: "add",
tag: e.k
- }), p((t) => sF(t, e));
+ }), p((t) => fF(t, e));
} });
}),
addTag: (e) => {
let r = e.trim();
r && g(`add:${r}`, "添加标签", async () => {
- let e = await m(qP, {
+ let e = await m(QP, {
operation: "add",
tag: r
});
if (!e.ok) return;
let i = e.tag || r;
- aF(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => sF(e, {
+ uF(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => fF(e, {
k: i,
cat: "general"
- })), uF(i), t.toast(`已添加标签「${n(i)}」`, { undo: async () => {
- await m(qP, {
+ })), hF(i), t.toast(`已添加标签「${n(i)}」`, { undo: async () => {
+ await m(QP, {
operation: "remove",
tag: i
- }), p((e) => oF(e, i));
+ }), p((e) => dF(e, i));
} }));
});
}
};
}
// src/react/publication-cache.ts
-var i4 = 864e5, a4 = (e) => {
+var r4 = 864e5, i4 = (e) => {
let t = new Date(e);
return Date.UTC(t.getFullYear(), t.getMonth(), t.getDate());
};
-function o4(e) {
+function a4(e) {
let t = /^(\d{4})-(\d{2})-(\d{2})(?:$|T)/.exec(e || "");
if (!t) return;
let n = Number(t[1]), r = Number(t[2]) - 1, i = Number(t[3]), a = new Date(Date.UTC(n, r, i));
@@ -73167,25 +73192,25 @@ function o4(e) {
let o = new Date(Date.UTC(n, r + 2, 0)).getUTCDate();
return Date.UTC(n, r + 1, Math.min(i, o));
}
-function VAe(e, t = Date.now()) {
- let n = o4(e);
- return n !== void 0 && a4(t) > n ? Infinity : i4;
+function KAe(e, t = Date.now()) {
+ let n = a4(e);
+ return n !== void 0 && i4(t) > n ? Infinity : r4;
}
-function s4(e, t, n = Date.now()) {
- return !Number.isFinite(e) || e <= 0 || e > n ? !1 : VAe(t, n) === Infinity ? a4(e) > o4(t) : n - e < i4;
+function o4(e, t, n = Date.now()) {
+ return !Number.isFinite(e) || e <= 0 || e > n ? !1 : KAe(t, n) === Infinity ? i4(e) > a4(t) : n - e < r4;
}
// src/react/wants/resource-cache.ts
-var c4 = "peach.want-resources.v2";
-function l4(e) {
+var s4 = "peach.want-resources.v2";
+function c4(e) {
return !e.cache_stale && (e.complete === !0 || !e.warnings?.length);
}
-function u4(e, t, n) {
- return !!e && !e.cache_stale && (e.state === "error" || !l4(e) ? Date.now() - t < 6e4 : s4(t, n));
+function l4(e, t, n) {
+ return !!e && !e.cache_stale && (e.state === "error" || !c4(e) ? Date.now() - t < 6e4 : o4(t, n));
}
-function d4() {
+function u4() {
try {
- let e = JSON.parse(localStorage.getItem(c4) || "[]");
- return Array.isArray(e) ? e.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.state === "ready" && Array.isArray(e.result.items) && l4(e.result) && e.result.items.every((e) => e && [
+ let e = JSON.parse(localStorage.getItem(s4) || "[]");
+ return Array.isArray(e) ? e.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.state === "ready" && Array.isArray(e.result.items) && c4(e.result) && e.result.items.every((e) => e && [
"magnet",
"ed2k",
"url"
@@ -73194,23 +73219,23 @@ function d4() {
return [];
}
}
-function HAe(e, t) {
- let n = d4().find((t) => t.code === e);
- return n && s4(n.saved, t) ? n : void 0;
+function qAe(e, t) {
+ let n = u4().find((t) => t.code === e);
+ return n && o4(n.saved, t) ? n : void 0;
}
-function UAe(e) {
- let t = new Map(d4().map((e) => [e.code, e])), n = /* @__PURE__ */ new Map();
+function JAe(e) {
+ let t = new Map(u4().map((e) => [e.code, e])), n = /* @__PURE__ */ new Map();
for (let r of e) {
if (!r.code) continue;
let e = t.get(`all-sources:${r.code}`);
- e && s4(e.saved, r.release_date) && n.set(r.code, e.result.items.some((e) => e.protocol === "magnet"));
+ e && o4(e.saved, r.release_date) && n.set(r.code, e.result.items.some((e) => e.protocol === "magnet"));
}
return n;
}
-function WAe(e, t) {
- if (t.state === "ready" && l4(t)) try {
- let n = d4().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
- localStorage.setItem(c4, JSON.stringify([{
+function YAe(e, t) {
+ if (t.state === "ready" && c4(t)) try {
+ let n = u4().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
+ localStorage.setItem(s4, JSON.stringify([{
code: e,
saved: Number.isFinite(r) ? r : Date.now(),
result: t
@@ -73218,15 +73243,15 @@ function WAe(e, t) {
} catch {}
}
// src/react/wants/resource-display.ts
-function GAe(e) {
+function XAe(e) {
let t = /^([\d,]+)\s*B$/i.exec(e.trim());
return /^[\d,.]+$/.test(e.trim()) ? "大小未知" : t ? Jn(Number(t[1].replaceAll(",", ""))) : e || "大小未知";
}
-function KAe(e) {
+function ZAe(e) {
return /^更多评论.*(?:VIP|官方 App)/.test(e) ? "来源只返回了部分评论,资源链接可能不完整。" : e;
}
// src/react/wants/want-magnets.tsx
-function f4({ icon: e, children: t, title: n }) {
+function d4({ icon: e, children: t, title: n }) {
return /* @__PURE__ */ (0, I.jsxs)("span", {
title: n,
className: "inline-flex items-center gap-1",
@@ -73236,8 +73261,8 @@ function f4({ icon: e, children: t, title: n }) {
}), t]
});
}
-function p4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a, queryUrl: o }) {
- let s = (0, F.useRef)(null), [c, l] = (0, F.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, F.useState)([]), f = qH(), p = ae(), m = (0, F.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, F.useMemo)(() => HAe(h, e.release_date), [h, e.release_date]);
+function f4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a, queryUrl: o }) {
+ let s = (0, F.useRef)(null), [c, l] = (0, F.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, F.useState)([]), f = YH(), p = ae(), m = (0, F.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, F.useMemo)(() => qAe(h, e.release_date), [h, e.release_date]);
(0, F.useEffect)(() => {
if (!s.current || c) return;
let e = new IntersectionObserver((t) => {
@@ -73257,22 +73282,22 @@ function p4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
],
queryFn: async ({ signal: t }) => {
let n = m.current, r = o || `/api/wants/magnets?id=${e.id}`, i = await V(`${r}${n ? `${r.includes("?") ? "&" : "?"}refresh=1` : ""}`, t);
- return m.current = n && i.state === "busy", WAe(h, i), i;
+ return m.current = n && i.state === "busy", YAe(h, i), i;
},
initialData: g?.result,
initialDataUpdatedAt: g?.saved,
enabled: c,
retry: !1,
- staleTime: (t) => u4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) ? Infinity : 0,
+ staleTime: (t) => l4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) ? Infinity : 0,
gcTime: 864e5,
- refetchOnMount: (t) => !u4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) && "always",
+ refetchOnMount: (t) => !l4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) && "always",
refetchOnWindowFocus: !1,
refetchInterval: (e) => e.state.data?.state === "busy" && 3e3
});
(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) && W_e(e.id, _.data.items.some((e) => e.protocol === "magnet"));
+ !o && _.data && (_.data.state === "ready" || _.data.items.length > 0) && K_e(e.id, _.data.items.some((e) => e.protocol === "magnet"));
}, [
_.data,
o,
@@ -73280,7 +73305,7 @@ function p4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
]);
let v = n?.providers.find((e) => e.key === r && e.configured), y = (r) => {
!t && n?.available && v && r.protocol === "magnet" && f.run(r.id, async (t) => {
- let n = await H(QU, {
+ let n = await H(eW, {
magnet: r.uri,
provider: v.key,
target: v.target,
@@ -73291,7 +73316,7 @@ function p4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
if (!n.ok) throw Error(n.task.failure_detail || n.task.failure_label || "添加下载失败");
return n;
}, (e) => {
- d((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), p.invalidateQueries({ queryKey: $U });
+ d((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), p.invalidateQueries({ queryKey: tW });
});
}, b = (e) => {
f.run(`copy:${e.id}`, () => navigator.clipboard.writeText(e.uri), () => i("已复制链接"));
@@ -73306,42 +73331,42 @@ function p4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
children: [/* @__PURE__ */ (0, I.jsxs)("h4", {
className: "text-body-medium text-text-primary",
children: ["资源链接", _.data?.items.length ? ` · ${_.data.items.length}` : ""]
- }), /* @__PURE__ */ (0, I.jsx)(q, {
+ }), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: kV,
- ...qV(x),
+ leadingIcon: jV,
+ ...YV(x),
onClick: () => {
x || (m.current = !0, _.refetch());
},
children: "重新查询"
})]
}),
- x ? /* @__PURE__ */ (0, I.jsx)(oU, { label: "正在查找资源链接" }) : null,
- S ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ x ? /* @__PURE__ */ (0, I.jsx)(cU, { label: "正在查找资源链接" }) : null,
+ S ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "error",
title: "资源链接未取得",
children: S
}) : null,
- _.data?.warnings?.map((e) => /* @__PURE__ */ (0, I.jsx)(HV, {
+ _.data?.warnings?.map((e) => /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "neutral",
- children: KAe(e)
+ children: ZAe(e)
}, e)),
- _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, I.jsx)(_R, {
+ _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, I.jsx)(yR, {
variant: "secondary",
size: "small",
className: "self-start",
- trailingIcon: bV,
+ trailingIcon: SV,
href: _.data.source_url,
target: "_blank",
rel: "noopener noreferrer",
children: "查看来源页"
}) : null,
- _.data?.state === "ready" && !_.data.items.length && !_.data.warnings?.length ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ _.data?.state === "ready" && !_.data.items.length && !_.data.warnings?.length ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "neutral",
children: "暂未找到资源链接。"
}) : null,
- f.error ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ f.error ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "error",
title: "操作未完成",
children: f.error
@@ -73356,7 +73381,7 @@ function p4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
className: "flex min-w-0 flex-col gap-1",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(XU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(QU, {
variant: "caption",
color: e.protocol === "magnet" ? "blue" : e.protocol === "ed2k" ? "purple" : "neutral",
children: e.protocol === "magnet" ? "磁链" : e.protocol === "ed2k" ? "ED2K" : "网页链接"
@@ -73370,26 +73395,26 @@ function p4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
"data-resource-facts": "",
className: "flex flex-wrap gap-x-2 gap-y-1 text-caption-1-regular text-text-secondary",
children: [
- /* @__PURE__ */ (0, I.jsx)(f4, {
- icon: whe,
+ /* @__PURE__ */ (0, I.jsx)(d4, {
+ icon: Ehe,
children: e.source
}),
- /* @__PURE__ */ (0, I.jsx)(f4, {
- icon: wV,
+ /* @__PURE__ */ (0, I.jsx)(d4, {
+ icon: EV,
title: `来源大小:${e.size}`,
- children: GAe(e.size)
+ children: XAe(e.size)
}),
- e.files ? /* @__PURE__ */ (0, I.jsx)(f4, {
- icon: hhe,
+ e.files ? /* @__PURE__ */ (0, I.jsx)(d4, {
+ icon: _he,
children: e.files.replaceAll("個", "个")
}) : null,
- /* @__PURE__ */ (0, I.jsx)(f4, {
- icon: the,
+ /* @__PURE__ */ (0, I.jsx)(d4, {
+ icon: rhe,
title: e.source === "JavDB 评论" ? "评论日期" : "收录日期",
children: e.date ? e.date.slice(0, 10) : "日期未知"
}),
- e.attributes.filter((e) => e !== "高清").map((e) => /* @__PURE__ */ (0, I.jsx)(f4, {
- icon: OV,
+ e.attributes.filter((e) => e !== "高清").map((e) => /* @__PURE__ */ (0, I.jsx)(d4, {
+ icon: AV,
children: e
}, e))
]
@@ -73398,31 +73423,31 @@ function p4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
"data-resource-actions": "",
className: "flex flex-wrap gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)(_R, {
+ /* @__PURE__ */ (0, I.jsx)(yR, {
"data-button-link": "",
variant: "secondary",
size: "small",
- trailingIcon: bV,
+ trailingIcon: SV,
href: e.source_url,
target: "_blank",
rel: "noopener noreferrer",
children: "链接来源"
}),
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: phe,
- ...qV(f.busy === `copy:${e.id}`),
+ leadingIcon: hhe,
+ ...YV(f.busy === `copy:${e.id}`),
onClick: () => b(e),
children: "复制链接"
}),
- e.protocol === "magnet" ? /* @__PURE__ */ (0, I.jsx)(q, {
+ e.protocol === "magnet" ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "primary",
size: "small",
- leadingIcon: v ? xU(v.key) : she,
+ leadingIcon: v ? CU(v.key) : lhe,
title: v ? `下载到 ${v.label}` : void 0,
disabled: t || !n?.available || !v || r,
- ...qV(f.busy === e.id),
+ ...YV(f.busy === e.id),
onClick: () => y(e),
children: r ? "已添加" : "添加下载"
}) : null
@@ -73433,7 +73458,7 @@ function p4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
children: e.slice(0, 3)
- }), e.length > 3 ? /* @__PURE__ */ (0, I.jsx)(vU, {
+ }), e.length > 3 ? /* @__PURE__ */ (0, I.jsx)(bU, {
summary: `更多资源(${e.length - 3} 条)`,
children: /* @__PURE__ */ (0, I.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
@@ -73445,10 +73470,10 @@ function p4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
});
}
// src/react/jav-detail/review-cache.ts
-var m4 = "peach.jav-reviews.v2";
-function h4() {
+var p4 = "peach.jav-reviews.v2";
+function m4() {
try {
- let e = localStorage.getItem(m4) || "[]";
+ let e = localStorage.getItem(p4) || "[]";
if (e.length > 2e6) return [];
let t = JSON.parse(e);
return Array.isArray(t) ? t.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.ok === !0 && !e.result.cache_stale && Number.isInteger(e.result.page) && e.result.page >= 1 && e.result.page <= 8 && Array.isArray(e.result.items) && e.result.items.length <= 10 && e.result.items.every((e) => typeof e?.id == "string" && typeof e.content == "string" && typeof e.username == "string" && typeof e.created_at == "string")) : [];
@@ -73456,21 +73481,21 @@ function h4() {
return [];
}
}
-function qAe(e, t) {
+function QAe(e, t) {
if (t.ok && !t.cache_stale) try {
let n = Date.parse(t.checked_at || ""), r = [{
code: e,
saved: Number.isFinite(n) ? n : Date.now(),
result: t
- }, ...h4().filter((n) => n.code !== e || n.result.page !== t.page)].slice(0, 128), i = JSON.stringify(r);
- i.length <= 2e6 && localStorage.setItem(m4, i);
+ }, ...m4().filter((n) => n.code !== e || n.result.page !== t.page)].slice(0, 128), i = JSON.stringify(r);
+ i.length <= 2e6 && localStorage.setItem(p4, i);
} catch {}
}
-function JAe(e, t) {
- let n = h4(), r = [], i = Infinity;
+function $Ae(e, t) {
+ let n = m4(), r = [], i = Infinity;
for (let a = 1; a <= 8; a++) {
let o = n.find((t) => t.code === e && t.result.page === a);
- if (!o || !s4(o.saved, t) || (r.push(o.result), i = Math.min(i, o.saved), !o.result.more)) break;
+ if (!o || !o4(o.saved, t) || (r.push(o.result), i = Math.min(i, o.saved), !o.result.more)) break;
}
return r.length ? {
pages: r,
@@ -73478,16 +73503,16 @@ function JAe(e, t) {
saved: i
} : void 0;
}
-function YAe(e, t, n) {
- return e.length > 0 && e.every((e) => e.ok && !e.cache_stale && s4(Date.parse(e.checked_at || "") || t, n));
+function eje(e, t, n) {
+ return e.length > 0 && e.every((e) => e.ok && !e.cache_stale && o4(Date.parse(e.checked_at || "") || t, n));
}
// src/react/jav-detail/jav-detail-page.tsx
-function XAe(e) {
+function tje(e) {
let t = (0, F.useRef)(!1), n = Nt({
- queryKey: K2(e.code),
+ queryKey: G2(e.code),
queryFn: ({ signal: n }) => {
let r = t.current;
- return t.current = !1, q2(e.code, n, r);
+ return t.current = !1, K2(e.code, n, r);
},
staleTime: 216e5
}), r = () => {
@@ -73497,21 +73522,21 @@ function XAe(e) {
"data-jav-detail": "",
"data-item-detail": "",
"data-stage-grid": "",
- children: n.data ? /* @__PURE__ */ (0, I.jsx)(ZAe, {
+ children: n.data ? /* @__PURE__ */ (0, I.jsx)(nje, {
...e,
item: n.data,
retry: r,
retrying: n.isFetching
}, e.code) : /* @__PURE__ */ (0, I.jsxs)("div", {
"data-jav-failure": "",
- children: [/* @__PURE__ */ (0, I.jsx)(g4, { close: e.actions.close }), n.error ? /* @__PURE__ */ (0, I.jsx)(gK, {
+ children: [/* @__PURE__ */ (0, I.jsx)(h4, { close: e.actions.close }), n.error ? /* @__PURE__ */ (0, I.jsx)(hK, {
message: sr(n.error),
onRetry: r
}) : null]
})
});
}
-var g4 = ({ close: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
+var h4 = ({ close: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -73520,7 +73545,7 @@ var g4 = ({ close: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: z("x") }
});
-function ZAe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a }) {
+function nje({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a }) {
(0, F.useEffect)(() => {
n.canonicalCode?.(t.code);
}, [n, t.code]), (0, F.useEffect)(() => {
@@ -73540,13 +73565,13 @@ function ZAe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
label: "视频预览",
video: !0
}] : []
- ], [l, u] = (0, F.useState)(null), [d, f] = (0, F.useState)(t.want_id), p = qH(), m = () => {
- p.run("want", async (e) => d ? (await uW([d], e), null) : (await lW({ code: t.code }, e)).want.id, (t) => {
- f(t), U.setQueryData(K2(e), (e) => e && {
+ ], [l, u] = (0, F.useState)(null), [d, f] = (0, F.useState)(t.want_id), p = YH(), m = () => {
+ p.run("want", async (e) => d ? (await fW([d], e), null) : (await dW({ code: t.code }, e)).want.id, (t) => {
+ f(t), U.setQueryData(G2(e), (e) => e && {
...e,
wanted: !!t,
want_id: t
- }), n.receipt(t ? "已加入想要" : "已取消想要"), dW(), U.invalidateQueries({ queryKey: ["feed-new"] }), U.invalidateQueries({ queryKey: ["jav-discoveries"] });
+ }), n.receipt(t ? "已加入想要" : "已取消想要"), pW(), U.invalidateQueries({ queryKey: ["feed-new"] }), U.invalidateQueries({ queryKey: ["jav-discoveries"] });
});
};
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
@@ -73555,24 +73580,24 @@ function ZAe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
"data-jav-art": "",
"data-jav-playing": o === -2 ? "" : void 0,
children: [
- /* @__PURE__ */ (0, I.jsx)(g4, { close: n.close }),
+ /* @__PURE__ */ (0, I.jsx)(h4, { close: n.close }),
t.preview_video_url ? /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-jav-preview-toggle": "",
"aria-pressed": o === -2,
onClick: () => s(o === -2 ? -1 : -2),
- children: [/* @__PURE__ */ (0, I.jsx)(_4, { name: o === -2 ? "image" : "play" }), o === -2 ? "查看图片" : "视频预览"]
+ children: [/* @__PURE__ */ (0, I.jsx)(g4, { name: o === -2 ? "image" : "play" }), o === -2 ? "查看图片" : "视频预览"]
}) : null,
- o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, I.jsx)(eje, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, I.jsx)(JQ, {
+ o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, I.jsx)(aje, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, I.jsx)(qQ, {
item: t,
image: o === -1 ? "cover" : String(o)
}, t.code),
- /* @__PURE__ */ (0, I.jsx)(j2, {
+ /* @__PURE__ */ (0, I.jsx)(A2, {
items: c,
position: Math.max(0, c.findIndex((e) => e.index === o)),
onSelect: s,
below: !0,
- renderThumbnail: (e) => /* @__PURE__ */ (0, I.jsx)(JQ, {
+ renderThumbnail: (e) => /* @__PURE__ */ (0, I.jsx)(qQ, {
item: t,
image: e.index < 0 ? "cover" : String(e.index),
thumbnail: !0
@@ -73586,33 +73611,33 @@ function ZAe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
"data-stage-side-content": "",
"data-jav-info": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(QAe, { item: t }),
- Number(t.score) > 0 ? /* @__PURE__ */ (0, I.jsx)(y4, { score: Number(t.score) }) : null,
+ /* @__PURE__ */ (0, I.jsx)(rje, { item: t }),
+ Number(t.score) > 0 ? /* @__PURE__ */ (0, I.jsx)(v4, { score: Number(t.score) }) : null,
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "mono",
"data-stage-meta": "",
"data-reveal-line": "",
- children: [/* @__PURE__ */ (0, I.jsx)(v4, {
+ children: [/* @__PURE__ */ (0, I.jsx)(_4, {
glyph: "calendar",
label: "发行日期",
value: t.release_date
- }), /* @__PURE__ */ (0, I.jsx)(v4, {
+ }), /* @__PURE__ */ (0, I.jsx)(_4, {
glyph: "clock",
label: "时长",
value: t.duration ? `${t.duration} 分钟` : void 0
})]
}),
- /* @__PURE__ */ (0, I.jsx)($Ae, {
+ /* @__PURE__ */ (0, I.jsx)(ije, {
item: t,
navigate: n.navigate
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-jav-facts": "",
- children: [/* @__PURE__ */ (0, I.jsx)(v4, {
+ children: [/* @__PURE__ */ (0, I.jsx)(_4, {
glyph: "briefcase",
label: "发行商",
value: t.publisher
- }), /* @__PURE__ */ (0, I.jsx)(v4, {
+ }), /* @__PURE__ */ (0, I.jsx)(_4, {
glyph: "clapperboard",
label: "导演",
value: t.director
@@ -73641,14 +73666,14 @@ function ZAe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
t.summary ? /* @__PURE__ */ (0, I.jsx)("p", {
"data-jav-summary": "",
"data-long-text": "",
- lang: RL(t.summary),
+ lang: BL(t.summary),
children: t.summary
}) : null,
- t.message ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ t.message ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "neutral",
- action: /* @__PURE__ */ (0, I.jsx)(q, {
+ action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...qV(a),
+ ...YV(a),
onClick: i,
children: "立即重试"
}),
@@ -73657,24 +73682,24 @@ function ZAe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-jav-actions": "",
children: [
- t.source_url ? /* @__PURE__ */ (0, I.jsx)(_R, {
+ t.source_url ? /* @__PURE__ */ (0, I.jsx)(yR, {
"data-button-link": "",
variant: "secondary",
- trailingIcon: bV,
+ trailingIcon: SV,
href: t.source_url,
target: "_blank",
rel: "noopener noreferrer",
children: "作品来源"
}) : null,
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
disabled: r,
"aria-pressed": !!d,
- ...qV(!!p.busy),
+ ...YV(!!p.busy),
onClick: m,
children: d ? "取消想要" : "想要"
}),
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, I.jsx)(J, {
variant: "primary",
onClick: () => u({
code: t.code,
@@ -73688,16 +73713,16 @@ function ZAe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
})
]
}),
- p.error ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ p.error ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "error",
children: p.error
}) : null,
- /* @__PURE__ */ (0, I.jsx)(tje, {
+ /* @__PURE__ */ (0, I.jsx)(oje, {
code: t.code,
count: t.comments_count,
released: t.release_date
}),
- /* @__PURE__ */ (0, I.jsx)(nje, {
+ /* @__PURE__ */ (0, I.jsx)(sje, {
item: t,
actions: n,
readOnly: r
@@ -73705,24 +73730,24 @@ function ZAe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
]
})
}),
- /* @__PURE__ */ (0, I.jsx)(aW, {
+ /* @__PURE__ */ (0, I.jsx)(sW, {
prefill: l,
close: () => u(null),
receipt: n.receipt
})
] });
}
-var _4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var g4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: z(e) }
-}), v4 = ({ glyph: e, label: t, value: n }) => n ? /* @__PURE__ */ (0, I.jsxs)("span", {
+}), _4 = ({ glyph: e, label: t, value: n }) => n ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-spec-item": "",
title: t,
- children: [/* @__PURE__ */ (0, I.jsx)(_4, { name: e }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
+ children: [/* @__PURE__ */ (0, I.jsx)(g4, { name: e }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
}) : null;
-function QAe({ item: e }) {
- let { text: t, expanded: n, foldable: r, toggle: i } = W2(e.title), a = e.title === e.code ? "" : e.title;
+function rje({ item: e }) {
+ let { text: t, expanded: n, foldable: r, toggle: i } = U2(e.title), a = e.title === e.code ? "" : e.title;
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-item-title": "",
children: [/* @__PURE__ */ (0, I.jsx)("h1", {
@@ -73738,7 +73763,7 @@ function QAe({ item: e }) {
r && !String(getSelection() || "") && i();
},
children: [/* @__PURE__ */ (0, I.jsx)("b", { children: e.code }), a ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [" ", /* @__PURE__ */ (0, I.jsx)("span", {
- lang: RL(a),
+ lang: BL(a),
children: a
})] }) : null]
})
@@ -73752,25 +73777,25 @@ function QAe({ item: e }) {
"aria-label": n ? "收起标题" : "展开标题",
title: n ? "收起标题" : "展开完整标题",
onClick: i,
- children: /* @__PURE__ */ (0, I.jsx)(fU, {})
+ children: /* @__PURE__ */ (0, I.jsx)(mU, {})
})
})]
});
}
-function y4({ score: e, review: t = !1 }) {
+function v4({ score: e, review: t = !1 }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-item-rating": "",
"data-jav-rating": "",
"data-review-rating": t ? "" : void 0,
role: "img",
"aria-label": `${t ? "评论" : "JavDB"}评分 ${e} / 5`,
- children: [/* @__PURE__ */ (0, I.jsx)(FY, { value: e }), /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(PY, { value: e }), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-rating-value": "",
children: [e.toFixed(1), " / 5"]
})]
});
}
-function $Ae({ item: e, navigate: t }) {
+function ije({ item: e, navigate: t }) {
let n = (e, n) => t(Mn(e, n)), r = (t, r, i, a) => i.length ? /* @__PURE__ */ (0, I.jsxs)("section", {
"data-id-group": t,
"data-id-gender": a,
@@ -73779,14 +73804,14 @@ function $Ae({ item: e, navigate: t }) {
children: r
}), /* @__PURE__ */ (0, I.jsx)("div", {
"data-id-row": "",
- children: i.map((r) => /* @__PURE__ */ (0, I.jsx)(H2, {
+ children: i.map((r) => /* @__PURE__ */ (0, I.jsx)(V2, {
kind: t,
person: {
...r,
id: r.id ?? null
},
onOpen: n,
- face: t === "performer" && !r.has_image && !r.has_avatar && r.source_avatar && r.source_actor_id ? /* @__PURE__ */ (0, I.jsx)(YQ, {
+ face: t === "performer" && !r.has_image && !r.has_avatar && r.source_avatar && r.source_actor_id ? /* @__PURE__ */ (0, I.jsx)(JQ, {
code: e.code,
person: r,
detail: !0
@@ -73803,7 +73828,7 @@ function $Ae({ item: e, navigate: t }) {
r("performer", "出演者", e.performer_refs.filter((e) => !e.gender || e.gender === "unknown"), "unknown"),
r("studio", "厂牌", e.studio_refs)
]
- }), /* @__PURE__ */ (0, I.jsx)(U2, {
+ }), /* @__PURE__ */ (0, I.jsx)(H2, {
people: e.series_refs.map((e) => ({
...e,
id: e.id ?? null
@@ -73812,20 +73837,20 @@ function $Ae({ item: e, navigate: t }) {
})]
});
}
-function eje({ src: e }) {
+function aje({ 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), nue(i, {
+ return i.className = "video-js vjs-big-play-centered", i.controls = !0, i.setAttribute("playsinline", ""), i.setAttribute("aria-label", "视频预览"), n.append(i), tue(i, {
src: e,
type: /\.m3u8(?:\?|$)/i.test(e) ? "application/x-mpegURL" : "video/mp4"
}, () => r(!0));
}, [e, i]), /* @__PURE__ */ (0, I.jsx)("div", {
ref: t,
"data-jav-video": "",
- children: n ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ children: n ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "neutral",
- action: /* @__PURE__ */ (0, I.jsx)(q, {
+ action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
onClick: () => {
r(!1), a((e) => e + 1);
@@ -73836,8 +73861,8 @@ function eje({ src: e }) {
}) : null
});
}
-function tje({ code: e, count: t, released: n }) {
- let r = ae(), [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => JAe(e, n), [e, n]), s = (0, F.useRef)(!1), c = Ft({
+function oje({ code: e, count: t, released: n }) {
+ let r = ae(), [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => $Ae(e, n), [e, n]), s = (0, F.useRef)(!1), c = Ft({
queryKey: ["jav-reviews", e],
enabled: i,
initialPageParam: 1,
@@ -73846,12 +73871,12 @@ function tje({ code: e, count: t, released: n }) {
pageParams: o.pageParams
} : void 0,
initialDataUpdatedAt: o?.saved,
- staleTime: (e) => YAe(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,
+ staleTime: (e) => eje(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,
gcTime: 864e5,
refetchOnWindowFocus: !1,
queryFn: async ({ signal: t, pageParam: n }) => {
- let i = await hAe(e, n, t, s.current);
- if (qAe(e, i), !i.ok || i.cache_stale) {
+ let i = await bAe(e, n, t, s.current);
+ if (QAe(e, i), !i.ok || i.cache_stale) {
let t = r.getQueryData(["jav-reviews", e])?.pages.find((e) => e.page === n);
if (t?.ok) return {
...t,
@@ -73861,7 +73886,7 @@ function tje({ code: e, count: t, released: n }) {
}
return i;
},
- getNextPageParam: gAe
+ getNextPageParam: xAe
});
(0, F.useEffect)(() => {
c.isFetching || (s.current = !1);
@@ -73869,10 +73894,10 @@ function tje({ code: e, count: t, released: n }) {
let l = c.data?.pages || [], u = [...new Map(l.flatMap((e) => e.items).map((e) => [e.id, e])).values()], d = c.error ? sr(c.error) : l.find((e) => !e.ok || e.cache_stale)?.message;
return /* @__PURE__ */ (0, I.jsx)("section", {
"data-jav-reviews": "",
- children: /* @__PURE__ */ (0, I.jsxs)(vU, {
+ children: /* @__PURE__ */ (0, I.jsxs)(bU, {
trailing: !0,
summary: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(nhe, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, I.jsx)(ihe, { "aria-hidden": !0 }),
"评论",
t > 0 ? ` · ${t}` : ""
] }),
@@ -73909,7 +73934,7 @@ function tje({ code: e, count: t, released: n }) {
"data-jav-review-meta": "",
children: [
/* @__PURE__ */ (0, I.jsx)("b", { children: e.username }),
- Number(e.score) > 0 ? /* @__PURE__ */ (0, I.jsx)(y4, {
+ Number(e.score) > 0 ? /* @__PURE__ */ (0, I.jsx)(v4, {
score: Number(e.score),
review: !0
}) : null,
@@ -73921,42 +73946,42 @@ function tje({ code: e, count: t, released: n }) {
]
}), /* @__PURE__ */ (0, I.jsx)("p", {
"data-long-text": "",
- lang: RL(e.content),
+ lang: BL(e.content),
children: e.content
})]
}, e.id)),
- d ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ d ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "neutral",
- action: /* @__PURE__ */ (0, I.jsx)(q, {
+ action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...qV(c.isFetching),
+ ...YV(c.isFetching),
onClick: () => {
s.current = !0, c.refetch();
},
children: "立即重试"
}),
children: d
- }) : !c.isPending && !u.length ? /* @__PURE__ */ (0, I.jsx)(HV, {
+ }) : !c.isPending && !u.length ? /* @__PURE__ */ (0, I.jsx)(WV, {
tone: "neutral",
children: "暂无评论"
}) : null,
- !d && l.length ? /* @__PURE__ */ (0, I.jsx)(q, {
+ !d && l.length ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...qV(c.isFetching),
+ ...YV(c.isFetching),
onClick: () => {
s.current = !0, c.refetch();
},
children: "刷新评论"
}) : null,
- c.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(q, {
+ c.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...qV(c.isFetchingNextPage),
+ ...YV(c.isFetchingNextPage),
onClick: () => {
c.isFetchingNextPage || c.fetchNextPage();
},
children: "更多评论"
}) : null,
- !d && l.at(-1)?.page === 8 && t > u.length ? /* @__PURE__ */ (0, I.jsxs)(HV, {
+ !d && l.at(-1)?.page === 8 && t > u.length ? /* @__PURE__ */ (0, I.jsxs)(WV, {
tone: "neutral",
children: [
"已显示 ",
@@ -73968,21 +73993,21 @@ function tje({ code: e, count: t, released: n }) {
})
});
}
-function nje({ item: e, actions: t, readOnly: n }) {
+function sje({ item: e, actions: t, readOnly: n }) {
let [r, i] = (0, F.useState)(!1), a = Nt({
- queryKey: $U,
+ queryKey: tW,
enabled: r,
- queryFn: ({ signal: e }) => V(`${QU}?limit=50`, e)
+ queryFn: ({ signal: e }) => V(`${eW}?limit=50`, e)
}), o = a.data?.providers.find((e) => e.configured)?.key || "", [s, c] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsx)("section", {
"data-jav-resources": "",
- children: /* @__PURE__ */ (0, I.jsx)(vU, {
+ children: /* @__PURE__ */ (0, I.jsx)(bU, {
trailing: !0,
- summary: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(_4, { name: "link" }), "资源"] }),
+ summary: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(g4, { name: "link" }), "资源"] }),
onOpenChange: (e) => {
i(e), e && c(!0);
},
- children: s ? /* @__PURE__ */ (0, I.jsx)(p4, {
+ children: s ? /* @__PURE__ */ (0, I.jsx)(f4, {
want: {
id: 0,
code: e.code,
@@ -73999,31 +74024,31 @@ function nje({ item: e, actions: t, readOnly: n }) {
});
}
// src/react/stage/stage-player.ts
-var b4 = null, x4 = null, S4 = null, C4 = null, w4 = null, T4 = !1, E4 = 0, D4 = null, O4 = () => !1, k4 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
-function rje(e, t) {
- b4 = e, O4 = () => t.isOpen(), D4 = () => t.requestClose(), vle({
+var y4 = null, b4 = null, x4 = null, S4 = null, C4 = null, w4 = !1, T4 = 0, E4 = null, D4 = () => !1, O4 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
+function cje(e, t) {
+ y4 = e, D4 = () => t.isOpen(), E4 = () => t.requestClose(), _le({
...e.player,
stage: () => document.getElementById("stage")
- }), yle({
- inMiniplayer: (e) => x4?.player === e,
- kind: (e) => x4?.player === e ? x4.kind : S4?.kind ?? C4?.kind ?? "item",
- expand: () => Y4(),
- toMiniplayer: () => X4()
- }), A4 || (A4 = !0, addEventListener("pagehide", () => bP()));
-}
-var A4 = !1;
-function j4() {
- if (!b4) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
- return b4;
-}
-function M4(e) {
- C4 = e;
-}
-var ije = () => C4;
-function N4(e, t) {
- let { kind: n, item: r, media: i = null } = t, a = k4(n, r.id, i?.index ?? null);
- if (x4 && x4.key === a) return oje(e, x4);
- x4 && J4();
+ }), vle({
+ inMiniplayer: (e) => b4?.player === e,
+ kind: (e) => b4?.player === e ? b4.kind : x4?.kind ?? S4?.kind ?? "item",
+ expand: () => J4(),
+ toMiniplayer: () => Y4()
+ }), k4 || (k4 = !0, addEventListener("pagehide", () => TP()));
+}
+var k4 = !1;
+function A4() {
+ if (!y4) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
+ return y4;
+}
+function j4(e) {
+ S4 = e;
+}
+var lje = () => S4;
+function M4(e, t) {
+ let { kind: n, item: r, media: i = null } = t, a = O4(n, r.id, i?.index ?? null);
+ if (b4 && b4.key === a) return dje(e, b4);
+ b4 && q4();
let o = {
player: null,
kind: n,
@@ -74031,52 +74056,52 @@ function N4(e, t) {
mediaIndex: i?.index ?? null,
key: a
};
- S4 = o;
+ x4 = 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 = jP(s, {
+ let c = IP(s, {
kind: n,
item: r,
media: i,
autoplay: t.autoplay,
resume: t.resume ?? null,
onPlayer: (e) => {
- S4 === o && (o.player = e);
+ x4 === o && (o.player = e);
},
- handedOff: (e) => x4?.player === e
+ handedOff: (e) => b4?.player === e
});
return () => {
- let e = !!o.player && x4?.player === o.player;
- S4 === o && (S4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), bP());
+ let e = !!o.player && b4?.player === o.player;
+ x4 === o && (x4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), TP());
};
}
-async function aje(e, t, n) {
+async function uje(e, t, n) {
let r = await Cn(`/api/item?id=${e.id}`, { signal: n });
if (n.throwIfAborted(), !r || r.error) throw Error(r?.error || "作品未取得");
if (r.medium && r.medium !== "video") throw Error("这条作品没有可播放的视频");
if (r.location === "online") throw Error("请打开详情播放在线作品");
if (r.cost === "metered") throw Error("请打开详情确认计费来源");
- let i = await j4().player.loadSourceStatus();
- if (n.throwIfAborted(), i[String(r.root_id || r.location || "")] === !1) throw Error(j4().player.offlineReason(String(r.root_id || r.location || "")));
+ let i = await A4().player.loadSourceStatus();
+ if (n.throwIfAborted(), i[String(r.root_id || r.location || "")] === !1) throw Error(A4().player.offlineReason(String(r.root_id || r.location || "")));
let a = {
kind: "item",
item: r,
title: String(r.title || r.name || ""),
sub: String(r.performers?.[0] || r.creator || "未归属")
};
- M4(a);
- let o = N4(t, {
+ j4(a);
+ let o = M4(t, {
kind: "item",
item: r,
autoplay: !0
}), s = !1;
return (e = !1) => {
- s || (s = !0, e && C4 === a && F4(!0), o(), C4 === a && M4(null));
+ s || (s = !0, e && S4 === a && P4(!0), o(), S4 === a && j4(null));
};
}
-function oje(e, t) {
+function dje(e, t) {
let { player: n } = t;
- K4(t), x4 = null, q4(), n.el().classList.remove("vjs-peach-mini"), kP(e), e.append(n.el()), wN(n);
+ G4(t), b4 = null, K4(), n.el().classList.remove("vjs-peach-mini"), PP(e), e.append(n.el()), kN(n);
let r = {
player: n,
kind: t.kind,
@@ -74084,23 +74109,23 @@ function oje(e, t) {
mediaIndex: t.mediaIndex,
key: t.key
};
- S4 = r;
- let i = AP(n, e);
- return TN(n), () => {
- S4 === r && (S4 = null), i(), x4?.player !== n && (CN() === n && wN(null), dP(n), bP());
+ x4 = r;
+ let i = FP(n, e);
+ return AN(n), () => {
+ x4 === r && (x4 = null), i(), b4?.player !== n && (ON() === n && kN(null), gP(n), TP());
};
}
-var P4 = () => {
- let e = S4?.player;
+var N4 = () => {
+ let e = x4?.player;
return e && !e.isDisposed() ? e : null;
};
-function F4(e) {
- let t = T4;
- T4 = !1, x4?.pending && J4();
- let n = S4, r = n?.player, i = C4;
- if (!n || !r || r.isDisposed() || !i || !w4) return;
- let a = j4().player.settings();
- (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && uje({
+function P4(e) {
+ let t = w4;
+ w4 = !1, b4?.pending && q4();
+ let n = x4, r = n?.player, i = S4;
+ if (!n || !r || r.isDisposed() || !i || !C4) return;
+ let a = A4().player.settings();
+ (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && hje({
player: r,
kind: n.kind,
item: n.item,
@@ -74108,46 +74133,46 @@ function F4(e) {
key: n.key
}, i);
}
-function I4(e, t) {
- T4 = !1, x4 && (x4.kind === e && x4.item.id === t ? (x4.pending = !0, q4()) : J4());
+function F4(e, t) {
+ w4 = !1, b4 && (b4.kind === e && b4.item.id === t ? (b4.pending = !0, K4()) : q4());
}
-function L4(e) {
- w4 = e, w4 && W4();
+function I4(e) {
+ C4 = e, C4 && U4();
}
-var R4 = () => !!x4 && !x4.pending && !x4.player.isDisposed();
-function sje() {
- return R4() ? w4?.frame.querySelector("video") ?? null : null;
+var L4 = () => !!b4 && !b4.pending && !b4.player.isDisposed();
+function fje() {
+ return L4() ? C4?.frame.querySelector("video") ?? null : null;
}
-function cje() {
- return O4() ? document.getElementById("stage")?.querySelector("video") ?? null : P4()?.el().querySelector("video") ?? sje();
+function pje() {
+ return D4() ? document.getElementById("stage")?.querySelector("video") ?? null : N4()?.el().querySelector("video") ?? fje();
}
-function z4(e) {
- w4 && (w4.title.textContent = e.title || "", w4.sub.textContent = e.sub || "", w4.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
+function R4(e) {
+ C4 && (C4.title.textContent = e.title || "", C4.sub.textContent = e.sub || "", C4.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
}
-function B4(e = x4?.item) {
- if (!w4) return;
- let t = w4.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
- w4.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
+function z4(e = b4?.item) {
+ if (!C4) return;
+ let t = C4.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
+ C4.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
}
-function V4() {
- let e = x4?.player;
- if (!e || e.isDisposed() || !w4) return;
+function B4() {
+ let e = b4?.player;
+ if (!e || e.isDisposed() || !C4) return;
let t = e.paused();
- w4.play.setAttribute("aria-label", t ? "播放" : "暂停"), w4.play.querySelector("[data-icon-swap]") || (w4.play.innerHTML = Ws("player-pause", "player-play", t ? "b" : "a")), Gs(w4.play, t ? "b" : "a");
+ C4.play.setAttribute("aria-label", t ? "播放" : "暂停"), C4.play.querySelector("[data-icon-swap]") || (C4.play.innerHTML = Ws("player-pause", "player-play", t ? "b" : "a")), Gs(C4.play, t ? "b" : "a");
}
-function H4() {
- let e = x4?.player;
- if (!e || e.isDisposed() || !w4) return;
- let t = Gn(x4?.item.duration) || Gn(e.duration());
- w4.time.textContent = `${qn(e.currentTime())} / ${t ? qn(t) : "0:00"}`;
-}
-var U4 = () => Math.max(1, Number(j4().player.settings().seekSeconds) || 10);
-function W4() {
- if (!w4 || !b4) return;
- let e = U4();
- for (let [t, n] of [[w4.back, `后退 ${e} 秒`], [w4.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
-}
-function G4(e) {
+function V4() {
+ let e = b4?.player;
+ if (!e || e.isDisposed() || !C4) return;
+ let t = Gn(b4?.item.duration) || Gn(e.duration());
+ C4.time.textContent = `${qn(e.currentTime())} / ${t ? qn(t) : "0:00"}`;
+}
+var H4 = () => Math.max(1, Number(A4().player.settings().seekSeconds) || 10);
+function U4() {
+ if (!C4 || !y4) return;
+ let e = H4();
+ for (let [t, n] of [[C4.back, `后退 ${e} 秒`], [C4.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
+}
+function W4(e) {
let t = (t, n) => {
e.player.on(t, n), e.off.push(() => {
try {
@@ -74159,17 +74184,17 @@ function G4(e) {
"play",
"pause",
"ended"
- ], V4), t([
+ ], B4), t([
"timeupdate",
"durationchange",
"loadedmetadata"
- ], H4), t("loadedmetadata", () => B4()), V4(), H4(), B4(), W4();
+ ], V4), t("loadedmetadata", () => z4()), B4(), V4(), z4(), U4();
}
-function K4(e) {
+function G4(e) {
e.off.forEach((e) => e()), e.off = [];
}
-function lje() {
- let e = w4?.root;
+function mje() {
+ let e = C4?.root;
if (!e) return;
let t = e.hidden;
if (e.hidden = !1, !t) return;
@@ -74177,8 +74202,8 @@ function lje() {
let n = () => e.removeAttribute("data-miniplayer-enter");
e.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 500);
}
-function q4() {
- let e = w4?.root;
+function K4() {
+ let e = C4?.root;
if (e) {
e.hidden = !0;
for (let t of [
@@ -74189,73 +74214,73 @@ function q4() {
e.style.transform = "";
}
}
-function uje(e, t) {
- if (!w4) return;
+function hje(e, t) {
+ if (!C4) return;
let n = {
...e,
meta: t,
off: [],
pending: !1
};
- x4 = n, E4++, e.player.el().classList.add("vjs-peach-mini"), w4.frame.prepend(e.player.el()), z4(t), G4(n), lje(), TN(e.player);
+ b4 = n, T4++, e.player.el().classList.add("vjs-peach-mini"), C4.frame.prepend(e.player.el()), R4(t), W4(n), mje(), AN(e.player);
}
-function J4() {
- let e = x4;
- e && K4(e), x4 = null, E4++;
+function q4() {
+ let e = b4;
+ e && G4(e), b4 = null, T4++;
let t = e?.player ?? null;
- t && CN() === t && wN(null), dP(t), t && bP(), w4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), xN(), q4();
+ t && ON() === t && kN(null), gP(t), t && TP(), C4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), EN(), K4();
}
-function Y4() {
- if (!R4() || !x4) return;
- let { kind: e, item: t, mediaIndex: n } = x4;
- j4().expand(e, t.id, n);
+function J4() {
+ if (!L4() || !b4) return;
+ let { kind: e, item: t, mediaIndex: n } = b4;
+ A4().expand(e, t.id, n);
}
-function X4() {
- R4() && !O4() ? Y4() : O4() && P4() && D4 && (T4 = !0, D4());
+function Y4() {
+ L4() && !D4() ? J4() : D4() && N4() && E4 && (w4 = !0, E4());
}
-function dje() {
- let e = x4?.player;
+function gje() {
+ let e = b4?.player;
e && !e.isDisposed() && (e.paused() ? e.play()?.catch(() => {}) : e.pause());
}
-function Z4(e) {
- let t = x4?.player;
+function X4(e) {
+ let t = b4?.player;
if (!t || t.isDisposed()) return;
- let n = Gn(t.duration()) || Gn(x4?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + U4() * e);
+ let n = Gn(t.duration()) || Gn(b4?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + H4() * e);
t.currentTime(n ? Math.min(n, r) : r);
}
-function Q4(e) {
- return !(!R4() || !e || e.part_group || e.edition_group || e.medium && e.medium !== "video" || e.cost === "metered" && e.location !== "online" || e.location === "online" && !e.follow_item_id || j4().sourceOffline(String(e.root_id || e.location || "")));
-}
-async function fje(e) {
- if (!R4() || !x4 || !w4) return;
- let t = ++E4, n = await Cn(`/api/item?id=${e}`).catch(() => null);
- if (t !== E4 || !R4() || !x4 || !w4 || !n || n.error) return;
- if (!Q4(n)) {
- j4().openItem(e);
+function Z4(e) {
+ return !(!L4() || !e || e.part_group || e.edition_group || e.medium && e.medium !== "video" || e.cost === "metered" && e.location !== "online" || e.location === "online" && !e.follow_item_id || A4().sourceOffline(String(e.root_id || e.location || "")));
+}
+async function _je(e) {
+ if (!L4() || !b4 || !C4) return;
+ let t = ++T4, n = await Cn(`/api/item?id=${e}`).catch(() => null);
+ if (t !== T4 || !L4() || !b4 || !C4 || !n || n.error) return;
+ if (!Z4(n)) {
+ A4().openItem(e);
return;
}
- let r = x4;
- K4(r), CN() === r.player && wN(null), dP(r.player), bP(), w4.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
+ let r = b4;
+ G4(r), ON() === r.player && kN(null), gP(r.player), TP(), C4.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
let i = document.createElement("video");
- i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", w4.frame.prepend(i);
+ i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", C4.frame.prepend(i);
let a = {
kind: "item",
item: n,
title: String(n.title || n.name || ""),
sub: String(n.performers?.[0] || n.creator || "未归属")
};
- z4(a), jP(i, {
+ R4(a), IP(i, {
kind: "item",
item: n,
autoplay: !0,
chrome: !1,
onPlayer: (r) => {
- if (t !== E4) {
- r && CN() === r && wN(null), dP(r);
+ if (t !== T4) {
+ r && ON() === r && kN(null), gP(r);
return;
}
if (!r) {
- J4(), j4().openItem(e);
+ q4(), A4().openItem(e);
return;
}
r.el().classList.add("vjs-peach-mini");
@@ -74264,25 +74289,25 @@ async function fje(e) {
kind: "item",
item: n,
mediaIndex: null,
- key: k4("item", n.id, null),
+ key: O4("item", n.id, null),
meta: a,
off: [],
pending: !1
};
- x4 = i, G4(i);
+ b4 = i, W4(i);
}
- }), B4(n);
+ }), z4(n);
}
// src/react/stage/miniplayer.tsx
-var $4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
+var Q4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
-}), pje = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, e3 = (e) => (t) => {
+}), vje = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, $4 = (e) => (t) => {
t.stopPropagation(), e();
-}, mje = (0, F.memo)(function() {
+}, yje = (0, F.memo)(function() {
let e = (0, F.useRef)(null), t = (0, F.useRef)(null), n = (0, F.useRef)(null), r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useRef)(null), l = (0, F.useRef)(null);
- return (0, F.useLayoutEffect)(() => (L4({
+ return (0, F.useLayoutEffect)(() => (I4({
root: e.current,
frame: n.current,
play: r.current,
@@ -74292,7 +74317,7 @@ var $4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
title: s.current,
sub: c.current,
info: l.current
- }), () => L4(null)), []), (0, F.useEffect)(() => gje(e.current, t.current), []), /* @__PURE__ */ (0, I.jsx)("aside", {
+ }), () => I4(null)), []), (0, F.useEffect)(() => xje(e.current, t.current), []), /* @__PURE__ */ (0, I.jsx)("aside", {
ref: e,
"data-miniplayer": "",
id: "miniplayer",
@@ -74316,24 +74341,24 @@ var $4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
id: "miniplayerExpand",
"aria-label": "展开到详情",
"aria-keyshortcuts": "i",
- onClick: e3(Y4),
- children: /* @__PURE__ */ (0, I.jsx)($4, { name: "maximize-2" })
+ onClick: $4(J4),
+ children: /* @__PURE__ */ (0, I.jsx)(Q4, { name: "maximize-2" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-miniplayer-button": "close",
id: "miniplayerClose",
"aria-label": "关闭小窗",
- onClick: e3(J4),
- children: /* @__PURE__ */ (0, I.jsx)($4, { name: "x" })
+ onClick: $4(q4),
+ children: /* @__PURE__ */ (0, I.jsx)(Q4, { name: "x" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
ref: a,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerBack",
- onClick: e3(() => Z4(-1)),
- children: /* @__PURE__ */ (0, I.jsx)($4, { name: "rotate-ccw" })
+ onClick: $4(() => X4(-1)),
+ children: /* @__PURE__ */ (0, I.jsx)(Q4, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
ref: r,
@@ -74342,16 +74367,16 @@ var $4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
id: "miniplayerPlay",
"aria-label": "暂停",
"aria-keyshortcuts": "k",
- onClick: e3(dje),
- dangerouslySetInnerHTML: pje
+ onClick: $4(gje),
+ dangerouslySetInnerHTML: vje
}),
/* @__PURE__ */ (0, I.jsx)("button", {
ref: o,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerAhead",
- onClick: e3(() => Z4(1)),
- children: /* @__PURE__ */ (0, I.jsx)($4, { name: "rotate-cw" })
+ onClick: $4(() => X4(1)),
+ children: /* @__PURE__ */ (0, I.jsx)(Q4, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, I.jsx)("span", {
ref: i,
@@ -74368,7 +74393,7 @@ var $4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
"data-miniplayer-info": "",
id: "miniplayerInfo",
"aria-label": "展开到详情",
- onClick: () => Y4(),
+ onClick: () => J4(),
children: [/* @__PURE__ */ (0, I.jsx)("span", {
ref: s,
"data-miniplayer-title": "",
@@ -74382,7 +74407,7 @@ var $4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
})
});
});
-function hje(e, t, n) {
+function bje(e, t, n) {
let r = e.getBoundingClientRect(), i = (r.top + r.height / 2 < innerHeight / 2 ? "t" : "b") + (r.left + r.width / 2 < innerWidth / 2 ? "l" : "r"), a = parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--topH")) || 56, o = {
left: r.left - t,
top: r.top - n
@@ -74404,7 +74429,7 @@ function hje(e, t, n) {
};
e.addEventListener("transitionend", u), setTimeout(u, 600);
}
-function gje(e, t) {
+function xje(e, t) {
let n = null, r = (e) => {
if (!(e.button !== 0 || e.target.closest("[data-miniplayer-button],[data-miniplayer-play],[data-miniplayer-seek],.vjs-control-bar"))) {
n = {
@@ -74430,7 +74455,7 @@ function gje(e, t) {
} catch {}
i.moved && (e.dataset.dragged = "1", setTimeout(() => {
delete e.dataset.dragged;
- }, 0), hje(e, i.dx, i.dy));
+ }, 0), bje(e, i.dx, i.dy));
}, o = (t) => {
e.dataset.dragged && (t.stopPropagation(), t.preventDefault());
}, s = (e) => {
@@ -74441,57 +74466,57 @@ function gje(e, t) {
};
}
// src/react/stage/stage.tsx
-var t3 = null, n3 = null, r3 = null, i3 = /* @__PURE__ */ new Set(), a3 = 0, o3 = null, s3 = !1, c3 = !1, l3 = () => {
+var e3 = null, t3 = null, n3 = null, r3 = /* @__PURE__ */ new Set(), i3 = 0, a3 = null, o3 = !1, s3 = !1, c3 = () => {
let e = document.getElementById("stage");
return e instanceof HTMLDialogElement ? e : null;
};
-function u3() {
- if (!t3) throw Error("舞台还没有接上宿主(configureStage)");
- return t3;
+function l3() {
+ if (!e3) throw Error("舞台还没有接上宿主(configureStage)");
+ return e3;
}
-function _je(e) {
- return i3.add(e), () => {
- i3.delete(e);
+function Sje(e) {
+ return r3.add(e), () => {
+ r3.delete(e);
};
}
-function vje() {
- for (let e of [...i3]) e();
+function Cje() {
+ for (let e of [...r3]) e();
}
-function d3() {
- (0, It.flushSync)(vje);
+function u3() {
+ (0, It.flushSync)(Cje);
}
-function yje({ view: e }) {
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e ? /* @__PURE__ */ (0, I.jsx)(bje, { view: e }, e.generation) : null, /* @__PURE__ */ (0, I.jsx)(mje, {})] });
+function wje({ view: e }) {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e ? /* @__PURE__ */ (0, I.jsx)(Tje, { view: e }, e.generation) : null, /* @__PURE__ */ (0, I.jsx)(yje, {})] });
}
-var f3 = () => /* @__PURE__ */ (0, I.jsx)("div", {
+var d3 = () => /* @__PURE__ */ (0, I.jsx)("div", {
"data-skeleton": "detail",
role: "status",
"aria-label": "正在读取作品详情",
- dangerouslySetInnerHTML: { __html: kke() }
+ dangerouslySetInnerHTML: { __html: Pke() }
});
-function p3(e) {
+function f3(e) {
let t = e.currentTarget;
if (e.target !== t) return !1;
let n = t.getBoundingClientRect();
return e.clientX < n.left || e.clientX > n.right || e.clientY < n.top || e.clientY > n.bottom;
}
-function m3() {
- let e = l3(), t = e && Mke(e);
+function p3() {
+ let e = c3(), t = e && Lke(e);
t ? (t.focus({ preventScroll: !0 }), t.dispatchEvent(new KeyboardEvent("keydown", {
key: "Escape",
bubbles: !0,
cancelable: !0
- }))) : h3();
+ }))) : m3();
}
-function bje({ view: e }) {
+function Tje({ view: e }) {
let t = (0, F.useRef)(null);
(0, F.useLayoutEffect)(() => {
let e = t.current, n = (t) => {
- t.target === e && (t.preventDefault(), m3());
+ t.target === e && (t.preventDefault(), p3());
};
return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);
}, []);
- let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, I.jsx)(wAe, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, I.jsx)(XAe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, I.jsx)(aAe, { ...r.props }, r.props.id);
+ let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, I.jsx)(kAe, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, I.jsx)(tje, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, I.jsx)(uAe, { ...r.props }, r.props.id);
return /* @__PURE__ */ (0, I.jsxs)("dialog", {
ref: t,
id: "stage",
@@ -74499,27 +74524,27 @@ function bje({ view: e }) {
"data-stage-kind": r.kind,
"aria-label": "作品详情",
onKeyDown: (e) => {
- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), m3());
+ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), p3());
},
onPointerDown: (e) => {
- c3 = p3(e);
+ s3 = f3(e);
},
onClick: (e) => {
- c3 && p3(e) && h3();
+ s3 && f3(e) && m3();
},
children: [
- n === "skeleton" ? /* @__PURE__ */ (0, I.jsx)(f3, {}, "skeleton") : null,
+ n === "skeleton" ? /* @__PURE__ */ (0, I.jsx)(d3, {}, "skeleton") : null,
n === "reveal" ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-stage-fade": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(f3, {})
+ children: /* @__PURE__ */ (0, I.jsx)(d3, {})
}, "fade") : null,
n === "skeleton" ? null : /* @__PURE__ */ (0, I.jsx)("div", {
"data-stage-scroll": "",
children: /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, I.jsx)(UD, {
- getContainer: () => p2(t.current),
+ children: /* @__PURE__ */ (0, I.jsx)(KD, {
+ getContainer: () => f2(t.current),
children: i
})
})
@@ -74527,14 +74552,14 @@ function bje({ view: e }) {
]
});
}
-function h3() {
- n3 && !s3 && (s3 = !0, n3.request.actions.close());
+function m3() {
+ t3 && !o3 && (o3 = !0, t3.request.actions.close());
}
-function g3(e, t) {
- let n = l3();
+function h3(e, t) {
+ let n = c3();
n?.toggleAttribute("data-ambient", e), n?.toggleAttribute("data-theater", t);
}
-function _3(e) {
+function g3(e) {
if (e.kind === "jav") return {
kind: "jav",
props: {
@@ -74542,30 +74567,30 @@ function _3(e) {
readOnly: e.readOnly,
actions: {
...e.actions,
- close: h3
+ close: m3
}
}
};
let t = e.resume ?? null, n = (n) => {
let r = t && (e.id == null || e.id === n) ? t : null;
return t = null, r;
- }, r = () => u3().player.settings(), i = () => n3?.request === e;
+ }, r = () => l3().player.settings(), i = () => t3?.request === e;
if (e.kind === "item") {
let { kind: t, resume: a, actions: o, ...s } = e, c = {
...o,
- close: h3,
+ close: m3,
present: (e, t) => {
let n = e.performers;
- M4({
+ j4({
kind: "item",
item: e,
title: String(e.title || e.name || ""),
sub: String(n?.[0] || e.creator || "未归属")
- }), g3(r().ambientMode, r().theaterMode), queueMicrotask(() => {
+ }), h3(r().ambientMode, r().theaterMode), queueMicrotask(() => {
i() && o.present(e, t);
});
},
- mountPlayer: (e, t, r, i) => N4(e, {
+ mountPlayer: (e, t, r, i) => M4(e, {
kind: "item",
item: t,
autoplay: i?.autoplay,
@@ -74583,18 +74608,18 @@ function _3(e) {
}
let { kind: a, resume: o, actions: s, ...c } = e, l = {
...s,
- close: h3,
+ close: m3,
present: (e, t) => {
- M4({
+ j4({
kind: "follow",
item: e,
title: e.title || "",
sub: e.author || e.source_label || ""
- }), g3(t === "video" && r().ambientMode, t === "video" && r().theaterMode), queueMicrotask(() => {
+ }), h3(t === "video" && r().ambientMode, t === "video" && r().theaterMode), queueMicrotask(() => {
i() && s.present(e, t);
});
},
- mountPlayer: (e, t, r, i) => N4(e, {
+ mountPlayer: (e, t, r, i) => M4(e, {
kind: "follow",
item: t,
media: r,
@@ -74611,106 +74636,106 @@ function _3(e) {
}
};
}
-function xje(e, t) {
+function Eje(e, t) {
let n = e.querySelector(":scope > [data-stage-fade]");
e.setAttribute("data-stage-reveal", ""), e.getBoundingClientRect(), e.setAttribute("data-stage-revealing", "");
let r = 0, i = () => {
- clearTimeout(r), n?.removeEventListener("transitionend", a), e.removeAttribute("data-stage-reveal"), e.removeAttribute("data-stage-revealing"), n3?.generation === t && n3.phase === "reveal" && (n3 = {
- ...n3,
+ clearTimeout(r), n?.removeEventListener("transitionend", a), e.removeAttribute("data-stage-reveal"), e.removeAttribute("data-stage-revealing"), t3?.generation === t && t3.phase === "reveal" && (t3 = {
+ ...t3,
phase: "content"
- }, d3());
+ }, u3());
}, a = (e) => {
e.target === n && i();
};
n?.addEventListener("transitionend", a), r = window.setTimeout(i, 1e3);
}
-function v3(e) {
- let t = l3();
- return !n3 || n3.content.kind !== e || s3 || !t?.open || t.hasAttribute("data-closing") ? null : t;
+function _3(e) {
+ let t = c3();
+ return !t3 || t3.content.kind !== e || o3 || !t?.open || t.hasAttribute("data-closing") ? null : t;
}
-async function Sje(e) {
- !r3 && document.activeElement instanceof HTMLElement && document.activeElement !== document.body && (r3 = {
+async function Dje(e) {
+ !n3 && document.activeElement instanceof HTMLElement && document.activeElement !== document.body && (n3 = {
left: window.scrollX,
top: window.scrollY,
anchor: document.activeElement
});
- let t = v3(e.kind);
+ let t = _3(e.kind);
if (t) {
- await wje(e, t);
+ await kje(e, t);
return;
}
- n3 && y3({ miniplayer: !1 });
- let n = ++a3, r = new AbortController();
- o3 = r, s3 = !1, c3 = !1, e.kind === "jav" ? J4() : I4(e.kind, e.id ?? NaN);
- let i = _3(e);
- n3 = {
+ t3 && v3({ miniplayer: !1 });
+ let n = ++i3, r = new AbortController();
+ a3 = r, o3 = !1, s3 = !1, e.kind === "jav" ? q4() : F4(e.kind, e.id ?? NaN);
+ let i = g3(e);
+ t3 = {
generation: n,
request: e,
content: i,
phase: "skeleton"
};
- let a = i.kind === "item" ? iF(i.props, r.signal) : i.kind === "jav" ? J2(i.props, r.signal) : y2(i.props, r.signal);
- if (n !== a3 || n3?.request !== e) {
+ let a = i.kind === "item" ? lF(i.props, r.signal) : i.kind === "jav" ? q2(i.props, r.signal) : v2(i.props, r.signal);
+ if (n !== i3 || t3?.request !== e) {
await a.catch(() => {});
return;
}
- let o = Cje(i);
- n3 = {
- ...n3,
+ let o = Oje(i);
+ t3 = {
+ ...t3,
phase: o ? "content" : "skeleton"
- }, d3();
- let s = l3();
+ }, u3();
+ let s = c3();
if (!s) {
await a.catch(() => {});
return;
}
- o || lc(s), document.body.setAttribute("data-detail-open", ""), s.open || s.showModal(), h2(s);
+ o || lc(s), document.body.setAttribute("data-detail-open", ""), s.open || s.showModal(), m2(s);
try {
await a;
} catch {
if (r.signal.aborted) return;
}
- if (n !== a3 || !n3 || o) return;
+ if (n !== i3 || !t3 || o) return;
let c = !!s.querySelector(".skeleton-awaiting");
- n3 = {
- ...n3,
+ t3 = {
+ ...t3,
phase: c ? "content" : "reveal"
- }, d3(), c || xje(s, n), Zs(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, u3(), c || Eje(s, n), Zs(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let l = document.activeElement;
l !== s && s.contains(l) || s.querySelector("#closeStage")?.focus();
}
-function Cje(e) {
- if (e.kind === "jav") return !!U.getQueryData(K2(e.props.code));
- if (e.kind === "follow") return !!U.getQueryData(g2(e.props.id));
- let { queue: t, id: n } = e.props, r = t ? U.getQueryData(WP(t)) : null;
+function Oje(e) {
+ if (e.kind === "jav") return !!U.getQueryData(G2(e.props.code));
+ if (e.kind === "follow") return !!U.getQueryData(h2(e.props.id));
+ let { queue: t, id: n } = e.props, r = t ? U.getQueryData(YP(t)) : null;
if (t && !r) return !1;
- let i = r ? nF(r, n) : n;
- return i != null && !!U.getQueryData(UP(i));
+ let i = r ? sF(r, n) : n;
+ return i != null && !!U.getQueryData(JP(i));
}
-async function wje(e, t) {
- let n = ++a3;
- o3?.abort();
+async function kje(e, t) {
+ let n = ++i3;
+ a3?.abort();
let r = new AbortController();
- o3 = r, c3 = !1;
- let i = _3(e);
+ a3 = r, s3 = !1;
+ let i = g3(e);
try {
- i.kind === "item" ? await iF(i.props, r.signal) : i.kind === "jav" ? await J2(i.props, r.signal) : await y2(i.props, r.signal);
+ i.kind === "item" ? await lF(i.props, r.signal) : i.kind === "jav" ? await q2(i.props, r.signal) : await v2(i.props, r.signal);
} catch {
if (r.signal.aborted) return;
}
- if (n !== a3 || !n3 || v3(e.kind) !== t) return;
- e.kind === "jav" ? J4() : I4(e.kind, e.id ?? NaN), Kl(t), xN(), n3 = {
- ...n3,
+ if (n !== i3 || !t3 || _3(e.kind) !== t) return;
+ e.kind === "jav" ? q4() : F4(e.kind, e.id ?? NaN), Kl(t), EN(), t3 = {
+ ...t3,
request: e,
content: i,
phase: "content"
- }, d3(), t.removeAttribute("data-stage-reveal"), t.removeAttribute("data-stage-revealing"), t.querySelector(":scope > [data-stage-scroll]")?.scrollTo({ top: 0 }), Zs(t, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, u3(), t.removeAttribute("data-stage-reveal"), t.removeAttribute("data-stage-revealing"), t.querySelector(":scope > [data-stage-scroll]")?.scrollTo({ top: 0 }), Zs(t, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let a = document.activeElement;
a !== t && t.contains(a) || (t.querySelector("[data-mix-item][aria-current=\"true\"]") || t.querySelector("#closeStage"))?.focus({ preventScroll: !0 });
}
-function Tje() {
- h2(null);
- let e = l3();
+function Aje() {
+ m2(null);
+ let e = c3();
return !e?.open || e.hasAttribute("data-closing") || matchMedia("(prefers-reduced-motion: reduce)").matches ? Promise.resolve() : (e.setAttribute("data-closing", ""), new Promise((t) => {
let n = 0, r = () => {
clearTimeout(n), e.removeEventListener("animationend", i), t();
@@ -74720,14 +74745,14 @@ function Tje() {
e.addEventListener("animationend", i), n = window.setTimeout(r, 380);
}));
}
-function y3({ miniplayer: e = !0 } = {}) {
- if (a3++, o3?.abort(), o3 = null, F4(e), !n3) return;
- let t = l3();
- t && Kl(t), xN(), h2(null), t?.open && t.close(), n3 = null, s3 = !1, c3 = !1, d3(), M4(null), document.body.removeAttribute("data-detail-open");
- let n = r3;
- r3 = null;
+function v3({ miniplayer: e = !0 } = {}) {
+ if (i3++, a3?.abort(), a3 = null, P4(e), !t3) return;
+ let t = c3();
+ t && Kl(t), EN(), m2(null), t?.open && t.close(), t3 = null, o3 = !1, s3 = !1, u3(), j4(null), document.body.removeAttribute("data-detail-open");
+ let n = n3;
+ n3 = null;
let r = () => {
- !n3 && n?.anchor.isConnected && n.anchor.getClientRects().length && window.scrollTo({
+ !t3 && n?.anchor.isConnected && n.anchor.getClientRects().length && window.scrollTo({
left: n.left,
top: n.top,
behavior: "instant"
@@ -74735,80 +74760,80 @@ function y3({ miniplayer: e = !0 } = {}) {
};
r(), requestAnimationFrame(r);
}
-function Eje(e) {
- n3 && (n3 = {
- ...n3,
- content: n3.content.kind === "item" ? {
+function jje(e) {
+ t3 && (t3 = {
+ ...t3,
+ content: t3.content.kind === "item" ? {
kind: "item",
props: {
- ...n3.content.props,
+ ...t3.content.props,
...e
}
- } : n3.content.kind === "jav" ? n3.content : {
+ } : t3.content.kind === "jav" ? t3.content : {
kind: "follow",
props: {
- ...n3.content.props,
+ ...t3.content.props,
...e.relatedLimit === void 0 ? {} : { relatedLimit: e.relatedLimit }
}
}
- }, d3());
+ }, u3());
}
-function Dje() {
- let e = ije(), t = e?.kind === "item" ? e.item : null, n = t ? Do(t, u3().player.settings().javImage) : "";
+function Mje() {
+ let e = lje(), t = e?.kind === "item" ? e.item : null, n = t ? Do(t, l3().player.settings().javImage) : "";
if (!n) return;
- let r = P4();
+ let r = N4();
r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);
}
-var Oje = {
- open: Sje,
- update: Eje,
- exit: Tje,
- dispose: y3,
- requestClose: h3,
- requestEscape: m3,
- repaintPoster: Dje,
- isOpen: () => !!n3,
- showing: () => n3 && v3(n3.content.kind) ? n3.content.kind : null,
- activeVideo: () => cje(),
- mountWallPlayer: aje,
+var Nje = {
+ open: Dje,
+ update: jje,
+ exit: Aje,
+ dispose: v3,
+ requestClose: m3,
+ requestEscape: p3,
+ repaintPoster: Mje,
+ isOpen: () => !!t3,
+ showing: () => t3 && _3(t3.content.kind) ? t3.content.kind : null,
+ activeVideo: () => pje(),
+ mountWallPlayer: uje,
toggleTheater: () => {
- n3 && QN(!u3().player.settings().theaterMode);
+ t3 && rP(!l3().player.settings().theaterMode);
},
- toggleMiniplayer: () => X4(),
- closeMiniplayer: () => J4(),
- miniplayerActive: () => R4(),
- miniplayerTakesCard: (e) => Q4(e),
+ toggleMiniplayer: () => Y4(),
+ closeMiniplayer: () => q4(),
+ miniplayerActive: () => L4(),
+ miniplayerTakesCard: (e) => Z4(e),
miniplayerPlay: (e) => {
- fje(e);
+ _je(e);
}
};
-function kje(e) {
- return t3 = e, rje(e, {
- isOpen: () => !!n3,
- requestClose: h3
- }), Oje;
+function Pje(e) {
+ return e3 = e, cje(e, {
+ isOpen: () => !!t3,
+ requestClose: m3
+ }), Nje;
}
-function Aje() {
- let e = (0, F.useSyncExternalStore)(_je, () => n3);
- return t3 ? /* @__PURE__ */ (0, I.jsx)(yje, { view: e }) : null;
+function Fje() {
+ let e = (0, F.useSyncExternalStore)(Sje, () => t3);
+ return e3 ? /* @__PURE__ */ (0, I.jsx)(wje, { view: e }) : null;
}
// src/react/stats/stats.ts
-var jje = "/api/stats", b3 = ["stats"], x3 = (e) => V(jje, e);
-async function Mje(e) {
+var Ije = "/api/stats", y3 = ["stats"], b3 = (e) => V(Ije, e);
+async function Lje(e) {
await U.fetchQuery({
- queryKey: b3,
- queryFn: () => x3(e)
+ queryKey: y3,
+ queryFn: () => b3(e)
});
}
-var S3 = (e) => e != null && Number.isFinite(e), Nje = (e) => S3(e) ? e.toLocaleString() : "未取得", Pje = (e, t) => S3(e) && S3(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, Fje = (e, t) => {
- let n = Pje(e, t);
- return !n && S3(e) && e > 0 && S3(t) && t > 0 ? "<1%" : `${n}%`;
-}, C3 = (e) => {
- if (!S3(e)) return "未取得";
+var x3 = (e) => e != null && Number.isFinite(e), Rje = (e) => x3(e) ? e.toLocaleString() : "未取得", zje = (e, t) => x3(e) && x3(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, Bje = (e, t) => {
+ let n = zje(e, t);
+ return !n && x3(e) && e > 0 && x3(t) && t > 0 ? "<1%" : `${n}%`;
+}, S3 = (e) => {
+ if (!x3(e)) return "未取得";
let t = Math.max(0, e);
return t >= 172800 ? `${(t / 86400).toLocaleString(void 0, { maximumFractionDigits: 1 })} 天` : t >= 3600 ? `${(t / 3600).toFixed(1)} 小时` : `${Math.round(t / 60)} 分钟`;
-}, w3 = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, T3 = (e) => (e.max_reached || 0) * 100, Ije = (e) => e.kind === "online" ? "在线直接观看" : w3(e) < T3(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", Lje = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
-function Rje(e, t = 6) {
+}, C3 = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, w3 = (e) => (e.max_reached || 0) * 100, Vje = (e) => e.kind === "online" ? "在线直接观看" : C3(e) < w3(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", Hje = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
+function Uje(e, t = 6) {
let n = e.filter((e) => Number.isFinite(e.value) && e.value >= 0);
if (n.length <= t) return n;
let r = [...n].sort((e, t) => t.value - e.value), i = r.slice(t - 1);
@@ -74818,7 +74843,7 @@ function Rje(e, t = 6) {
bytes: i.reduce((e, t) => e + (t.bytes ?? 0), 0)
}];
}
-var zje = (e) => Math.max(1, ...e) * 1.1, Bje = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, Vje = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), Hje = {
+var Wje = (e) => Math.max(1, ...e) * 1.1, Gje = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, Kje = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), qje = {
video: "视频",
image: "图片",
illustration: "插画",
@@ -74826,18 +74851,18 @@ var zje = (e) => Math.max(1, ...e) * 1.1, Bje = (e, t) => e > 0 ? Math.max(e, t
audio: "音频",
account: "账号",
other: "其它文件"
-}, Uje = (e) => e.map((e) => ({
- name: Hje[e.k] ?? e.k,
+}, Jje = (e) => e.map((e) => ({
+ name: qje[e.k] ?? e.k,
value: e.n
-})).sort((e, t) => t.value - e.value), Wje = {
+})).sort((e, t) => t.value - e.value), Yje = {
速食: "<5 分钟",
短: "5–15 分钟",
中: "15–40 分钟",
长: ">40 分钟"
-}, E3 = (e, t = {}) => e.map((e) => ({
+}, T3 = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
-})), Gje = (e) => E3(e, Wje), Kje = [
+})), Xje = (e) => T3(e, Yje), Zje = [
[
1,
1,
@@ -74873,12 +74898,12 @@ var zje = (e) => Math.max(1, ...e) * 1.1, Bje = (e, t) => e > 0 ? Math.max(e, t
Infinity,
"≥10"
]
-], qje = (e) => Kje.map(([t, n, r]) => ({
+], Qje = (e) => Zje.map(([t, n, r]) => ({
name: r,
value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)
}));
// node_modules/d3-array/src/max.js
-function D3(e, t) {
+function E3(e, t) {
let n;
if (t === void 0) for (let t of e) t != null && (n < t || n === void 0 && t >= t) && (n = t);
else {
@@ -74888,7 +74913,7 @@ function D3(e, t) {
return n;
}
// node_modules/d3-array/src/min.js
-function O3(e, t) {
+function D3(e, t) {
let n;
if (t === void 0) for (let t of e) t != null && (n > t || n === void 0 && t >= t) && (n = t);
else {
@@ -74898,7 +74923,7 @@ function O3(e, t) {
return n;
}
// node_modules/d3-array/src/sum.js
-function k3(e, t) {
+function O3(e, t) {
let n = 0;
if (t === void 0) for (let t of e) (t = +t) && (n += t);
else {
@@ -74908,64 +74933,64 @@ function k3(e, t) {
return n;
}
// node_modules/d3-sankey/src/align.js
-function Jje(e, t) {
+function $je(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
// node_modules/d3-sankey/src/constant.js
-function A3(e) {
+function k3(e) {
return function() {
return e;
};
}
// node_modules/d3-sankey/src/sankey.js
+function A3(e, t) {
+ return M3(e.source, t.source) || e.index - t.index;
+}
function j3(e, t) {
- return N3(e.source, t.source) || e.index - t.index;
+ return M3(e.target, t.target) || e.index - t.index;
}
function M3(e, t) {
- return N3(e.target, t.target) || e.index - t.index;
-}
-function N3(e, t) {
return e.y0 - t.y0;
}
-function P3(e) {
+function N3(e) {
return e.value;
}
-function Yje(e) {
+function eMe(e) {
return e.index;
}
-function Xje(e) {
+function tMe(e) {
return e.nodes;
}
-function Zje(e) {
+function nMe(e) {
return e.links;
}
-function F3(e, t) {
+function P3(e, t) {
let n = e.get(t);
if (!n) throw Error("missing: " + t);
return n;
}
-function I3({ nodes: e }) {
+function F3({ nodes: e }) {
for (let t of e) {
let e = t.y0, n = e;
for (let n of t.sourceLinks) n.y0 = e + n.width / 2, e += n.width;
for (let e of t.targetLinks) e.y1 = n + e.width / 2, n += e.width;
}
}
-function Qje() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = Yje, c = Jje, l, u, d = Xje, f = Zje, p = 6;
+function rMe() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = eMe, c = $je, l, u, d = tMe, f = nMe, p = 6;
function m() {
let e = {
nodes: d.apply(null, arguments),
links: f.apply(null, arguments)
};
- return h(e), g(e), _(e), v(e), x(e), I3(e), e;
+ return h(e), g(e), _(e), v(e), x(e), F3(e), e;
}
m.update = function(e) {
- return I3(e), e;
+ return F3(e), e;
}, m.nodeId = function(e) {
- return arguments.length ? (s = typeof e == "function" ? e : A3(e), m) : s;
+ return arguments.length ? (s = typeof e == "function" ? e : k3(e), m) : s;
}, m.nodeAlign = function(e) {
- return arguments.length ? (c = typeof e == "function" ? e : A3(e), m) : c;
+ return arguments.length ? (c = typeof e == "function" ? e : k3(e), m) : c;
}, m.nodeSort = function(e) {
return arguments.length ? (l = e, m) : l;
}, m.nodeWidth = function(e) {
@@ -74973,9 +74998,9 @@ function Qje() {
}, m.nodePadding = function(e) {
return arguments.length ? (a = o = +e, m) : a;
}, m.nodes = function(e) {
- return arguments.length ? (d = typeof e == "function" ? e : A3(e), m) : d;
+ return arguments.length ? (d = typeof e == "function" ? e : k3(e), m) : d;
}, m.links = function(e) {
- return arguments.length ? (f = typeof e == "function" ? e : A3(e), m) : f;
+ return arguments.length ? (f = typeof e == "function" ? e : k3(e), m) : f;
}, m.linkSort = function(e) {
return arguments.length ? (u = e, m) : u;
}, m.size = function(i) {
@@ -74991,12 +75016,12 @@ function Qje() {
for (let [e, r] of t.entries()) {
r.index = e;
let { source: t, target: i } = r;
- typeof t != "object" && (t = r.source = F3(n, t)), typeof i != "object" && (i = r.target = F3(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
+ typeof t != "object" && (t = r.source = P3(n, t)), typeof i != "object" && (i = r.target = P3(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
}
if (u != null) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(u), n.sort(u);
}
function g({ nodes: e }) {
- for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(k3(t.sourceLinks, P3), k3(t.targetLinks, P3)) : t.fixedValue;
+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(O3(t.sourceLinks, N3), O3(t.targetLinks, N3)) : t.fixedValue;
}
function _({ nodes: e }) {
let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;
@@ -75021,7 +75046,7 @@ function Qje() {
}
}
function y({ nodes: t }) {
- let r = D3(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
+ let r = E3(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
for (let n of t) {
let t = Math.max(0, Math.min(r - 1, Math.floor(c.call(null, n, r))));
n.layer = t, n.x0 = e + t * a, n.x1 = n.x0 + i, o[t] ? o[t].push(n) : o[t] = [n];
@@ -75030,7 +75055,7 @@ function Qje() {
return o;
}
function b(e) {
- let n = O3(e, (e) => (r - t - (e.length - 1) * o) / k3(e, P3));
+ let n = D3(e, (e) => (r - t - (e.length - 1) * o) / O3(e, N3));
for (let i of e) {
let e = t;
for (let t of i) {
@@ -75047,7 +75072,7 @@ function Qje() {
}
function x(e) {
let n = y(e);
- o = Math.min(a, (r - t) / (D3(n, (e) => e.length) - 1)), b(n);
+ o = Math.min(a, (r - t) / (E3(n, (e) => e.length) - 1)), b(n);
for (let e = 0; e < p; ++e) {
let t = .99 ** e, r = Math.max(1 - t, (e + 1) / p);
C(n, t, r), S(n, t, r);
@@ -75066,7 +75091,7 @@ function Qje() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(N3), w(i, n);
+ l === void 0 && i.sort(M3), w(i, n);
}
}
function C(e, t, n) {
@@ -75082,7 +75107,7 @@ function Qje() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(N3), w(i, n);
+ l === void 0 && i.sort(M3), w(i, n);
}
}
function w(e, n) {
@@ -75103,12 +75128,12 @@ function Qje() {
}
function D({ sourceLinks: e, targetLinks: t }) {
if (u === void 0) {
- for (let { source: { sourceLinks: e } } of t) e.sort(M3);
- for (let { target: { targetLinks: t } } of e) t.sort(j3);
+ for (let { source: { sourceLinks: e } } of t) e.sort(j3);
+ for (let { target: { targetLinks: t } } of e) t.sort(A3);
}
}
function O(e) {
- if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(M3), n.sort(j3);
+ if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(j3), n.sort(A3);
}
function k(e, t) {
let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;
@@ -75137,15 +75162,15 @@ function Qje() {
return m;
}
// node_modules/d3-path/src/path.js
-var L3 = Math.PI, R3 = 2 * L3, z3 = 1e-6, $je = R3 - z3;
-function B3() {
+var I3 = Math.PI, L3 = 2 * I3, R3 = 1e-6, iMe = L3 - R3;
+function z3() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
-function V3() {
- return new B3();
+function B3() {
+ return new z3();
}
-B3.prototype = V3.prototype = {
- constructor: B3,
+z3.prototype = B3.prototype = {
+ constructor: z3,
moveTo: function(e, t) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);
},
@@ -75166,11 +75191,11 @@ B3.prototype = V3.prototype = {
var a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;
if (i < 0) throw Error("negative radius: " + i);
if (this._x1 === null) this._ += "M" + (this._x1 = e) + "," + (this._y1 = t);
- else if (d > z3) {
- if (!(Math.abs(u * s - c * l) > z3) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
+ else if (d > R3) {
+ if (!(Math.abs(u * s - c * l) > R3) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
else {
- var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((L3 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > z3 && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
+ var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((I3 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > R3 && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
}
}
},
@@ -75178,7 +75203,7 @@ B3.prototype = V3.prototype = {
e = +e, t = +t, n = +n, a = !!a;
var o = n * Math.cos(r), s = n * Math.sin(r), c = e + o, l = t + s, u = 1 ^ a, d = a ? r - i : i - r;
if (n < 0) throw Error("negative radius: " + n);
- this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > z3 || Math.abs(this._y1 - l) > z3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % R3 + R3), d > $je ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > z3 && (this._ += "A" + n + "," + n + ",0," + +(d >= L3) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));
+ this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > R3 || Math.abs(this._y1 - l) > R3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % L3 + L3), d > iMe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > R3 && (this._ += "A" + n + "," + n + ",0," + +(d >= I3) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));
},
rect: function(e, t, n, r) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t) + "h" + +n + "v" + +r + "h" + -n + "Z";
@@ -75188,93 +75213,93 @@ B3.prototype = V3.prototype = {
}
};
// node_modules/d3-shape/src/constant.js
-function H3(e) {
+function V3(e) {
return function() {
return e;
};
}
// node_modules/d3-shape/src/point.js
-function eMe(e) {
+function aMe(e) {
return e[0];
}
-function tMe(e) {
+function oMe(e) {
return e[1];
}
// node_modules/d3-shape/src/array.js
-var nMe = Array.prototype.slice;
+var sMe = Array.prototype.slice;
// node_modules/d3-shape/src/link/index.js
-function rMe(e) {
+function cMe(e) {
return e.source;
}
-function iMe(e) {
+function lMe(e) {
return e.target;
}
-function aMe(e) {
- var t = rMe, n = iMe, r = eMe, i = tMe, a = null;
+function uMe(e) {
+ var t = cMe, n = lMe, r = aMe, i = oMe, a = null;
function o() {
- var o, s = nMe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
- if (a ||= o = V3(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;
+ var o, s = sMe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ if (a ||= o = B3(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;
}
return o.source = function(e) {
return arguments.length ? (t = e, o) : t;
}, o.target = function(e) {
return arguments.length ? (n = e, o) : n;
}, o.x = function(e) {
- return arguments.length ? (r = typeof e == "function" ? e : H3(+e), o) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : V3(+e), o) : r;
}, o.y = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : H3(+e), o) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : V3(+e), o) : i;
}, o.context = function(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function oMe(e, t, n, r, i) {
+function dMe(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function sMe() {
- return aMe(oMe);
+function fMe() {
+ return uMe(dMe);
}
// node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function cMe(e) {
+function pMe(e) {
return [e.source.x1, e.y0];
}
-function lMe(e) {
+function mMe(e) {
return [e.target.x0, e.y1];
}
-function uMe() {
- return sMe().source(cMe).target(lMe);
+function hMe() {
+ return fMe().source(pMe).target(mMe);
}
// src/react/taste/taste.ts
-var dMe = "/api/taste", U3 = "/api/taste/refresh", fMe = "/api/taste/import", W3 = "/api/taste/source", G3 = (e) => ["taste", e], pMe = ["taste", "refresh"], mMe = [
+var gMe = "/api/taste", H3 = "/api/taste/refresh", _Me = "/api/taste/import", U3 = "/api/taste/source", W3 = (e) => ["taste", e], vMe = ["taste", "refresh"], yMe = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], hMe = 2e3, gMe = (e) => e?.stale && !e.error ? hMe : !1, _Me = (e) => e ? new Date(e).toLocaleString("zh-CN", {
+], bMe = 2e3, xMe = (e) => e?.stale && !e.error ? bMe : !1, SMe = (e) => e ? new Date(e).toLocaleString("zh-CN", {
month: "numeric",
day: "numeric",
hour: "2-digit",
minute: "2-digit"
-}) : "—", vMe = (e, t) => H(W3, {
+}) : "—", CMe = (e, t) => H(U3, {
...e,
window: t
-}), K3 = (e, t, n = !1) => V(`${dMe}?window=${e}${n ? "&retry=1" : ""}`, t), yMe = (e) => V(U3, e);
-async function bMe(e, t) {
+}), G3 = (e, t, n = !1) => V(`${gMe}?window=${e}${n ? "&retry=1" : ""}`, t), wMe = (e) => V(H3, e);
+async function TMe(e, t) {
await U.fetchQuery({
- queryKey: G3(e),
- queryFn: () => K3(e, t)
+ queryKey: W3(e),
+ queryFn: () => G3(e, t)
});
}
-var xMe = (e) => H(U3, {
+var EMe = (e) => H(H3, {
window: e,
background: !0
-}), SMe = (e, t) => H(W3, {
+}), DMe = (e, t) => H(U3, {
operation: "remove",
source_key: e,
window: t
});
-async function CMe(e) {
- let t = await fetch(fMe, {
+async function OMe(e) {
+ let t = await fetch(_Me, {
method: "POST",
credentials: "same-origin",
headers: {
@@ -75292,52 +75317,52 @@ async function CMe(e) {
}
return n;
}
-var wMe = 1e4, q3 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";
-function TMe(e) {
+var kMe = 1e4, K3 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";
+function AMe(e) {
let t = `${Number(e.history_sources || 0).toLocaleString()} 个数据源`;
if (!e.range_start && !e.range_end) return t;
let n = e.range_start?.slice(0, 4) === e.range_end?.slice(0, 4), r = (e) => e && n ? new Date(e).toLocaleDateString("zh-CN", {
month: "numeric",
day: "numeric"
- }) : q3(e);
+ }) : K3(e);
return `${t} · ${r(e.range_start)}–${r(e.range_end)}`;
}
-var EMe = C3, DMe = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), OMe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-function kMe(e) {
+var jMe = S3, MMe = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), NMe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+function PMe(e) {
if (e.web_visits == null && !e.web_bookmarks) return Number(e.score || e.visits || 0).toLocaleString();
let t = [], n = Number(e.web_bookmarks || 0), r = Number(e.web_visits ?? e.visits ?? 0) - n;
return r > 0 && t.push(`浏览 ${r.toLocaleString()}`), n && t.push(`书签 ${n.toLocaleString()}`), e.peach_items && t.push(`Peach ${Number(e.peach_items).toLocaleString()}`), t.join(" · ");
}
-function AMe(e) {
- let t = e.map(OMe), n = Math.max(1, ...t);
+function FMe(e) {
+ let t = e.map(NMe), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
-var J3 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({
+var q3 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({
name: e.name,
value: Number(e.score)
})).sort((e, t) => t.value - e.value).slice(0, t);
-function jMe(e) {
- let t = J3(e, 6);
+function IMe(e) {
+ let t = q3(e, 6);
return t.length < 3 ? [] : t;
}
-var Y3 = {
+var J3 = {
width: 720,
height: 435
-}, MMe = {
+}, LMe = {
source: 145,
target: 545
-}, X3 = 30, NMe = 240;
-function Z3(e, t, n) {
+}, Y3 = 30, RMe = 240;
+function X3(e, t, n) {
let r = /* @__PURE__ */ new Map();
for (let n of e) r.set(n[t], (r.get(n[t]) ?? 0) + n.value);
if (r.size <= 12) return (e) => e;
let i = [...r].sort((e, t) => t[1] - e[1]).map(([e]) => e), a = new Set(i.slice(0, 11)), o = n(i.length - a.size);
return (e) => a.has(e) ? e : o;
}
-function PMe(e = []) {
+function zMe(e = []) {
let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);
if (!t.length) return null;
- let n = Z3(t, "source", (e) => `其余 ${e.toLocaleString()} 个网站`), r = Z3(t, "target", (e) => `其余 ${e.toLocaleString()} 位创作者`), i = /* @__PURE__ */ new Map();
+ let n = X3(t, "source", (e) => `其余 ${e.toLocaleString()} 个网站`), r = X3(t, "target", (e) => `其余 ${e.toLocaleString()} 位创作者`), i = /* @__PURE__ */ new Map();
for (let e of t) {
let t = n(e.source), a = r(e.target), o = JSON.stringify([t, a]), s = i.get(o);
s ? s.value += e.value : i.set(o, {
@@ -75346,7 +75371,7 @@ function PMe(e = []) {
value: e.value
});
}
- let a = [...i.values()], o = [...new Set(a.map((e) => e.source))], s = [...new Set(a.map((e) => e.target))], c = Math.max(o.length, s.length), l = Math.max(404, 16 + (c - 1) * X3 + NMe), u = Qje().nodeId((e) => e.id).nodeWidth(10).nodePadding(X3).extent([[155, 16], [535, l]])({
+ let a = [...i.values()], o = [...new Set(a.map((e) => e.source))], s = [...new Set(a.map((e) => e.target))], c = Math.max(o.length, s.length), l = Math.max(404, 16 + (c - 1) * Y3 + RMe), u = rMe().nodeId((e) => e.id).nodeWidth(10).nodePadding(Y3).extent([[155, 16], [535, l]])({
nodes: [...o.map((e) => ({
id: `source:${e}`,
name: e,
@@ -75361,7 +75386,7 @@ function PMe(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), d = a.reduce((e, t) => e + t.value, 0), f = uMe();
+ }), d = a.reduce((e, t) => e + t.value, 0), f = hMe();
return {
nodes: u.nodes.map((e) => ({
id: e.id,
@@ -75389,17 +75414,17 @@ function PMe(e = []) {
};
}),
total: d,
- height: l + Y3.height - 404
+ height: l + J3.height - 404
};
}
-var FMe = (e) => $n(e, 17), Q3 = {
+var BMe = (e) => $n(e, 17), Z3 = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所",
series: "系列",
tags: "标签"
-}, IMe = [[
+}, VMe = [[
"big",
"大图 · 竖幅头像",
"maximize"
@@ -75407,7 +75432,7 @@ var FMe = (e) => $n(e, 17), Q3 = {
"compact",
"紧凑 · 圆形头像",
"layout-grid"
-]], LMe = [[
+]], HMe = [[
"big",
"大图 · 完整标识",
"maximize"
@@ -75415,7 +75440,7 @@ var FMe = (e) => $n(e, 17), Q3 = {
"compact",
"紧凑 · 圆形标识",
"layout-grid"
-]], RMe = [[
+]], UMe = [[
"big",
"大图 · 系列图片",
"maximize"
@@ -75423,7 +75448,7 @@ var FMe = (e) => $n(e, 17), Q3 = {
"compact",
"紧凑 · 系列图片",
"layout-grid"
-]], zMe = [
+]], WMe = [
[
"studios",
"厂牌",
@@ -75439,7 +75464,7 @@ var FMe = (e) => $n(e, 17), Q3 = {
"系列",
"file-stack"
]
-], BMe = [[
+], GMe = [[
"local",
"本地",
"hard-drive"
@@ -75447,7 +75472,7 @@ var FMe = (e) => $n(e, 17), Q3 = {
"online",
"在线",
"rss"
-]], VMe = [
+]], KMe = [
[
"performers",
"艺人",
@@ -75463,7 +75488,7 @@ var FMe = (e) => $n(e, 17), Q3 = {
"在线",
"rss"
]
-], HMe = [[
+], qMe = [[
"cloud",
"标签云",
"tags"
@@ -75471,8 +75496,8 @@ var FMe = (e) => $n(e, 17), Q3 = {
"alphabet",
"字母表",
"text-aa"
-]], $3 = (e) => e === "compact" ? "compact" : "big";
-function e6(e, t) {
+]], Q3 = (e) => e === "compact" ? "compact" : "big";
+function $3(e, t) {
let n = new URLSearchParams(t);
return {
kind: e,
@@ -75482,7 +75507,7 @@ function e6(e, t) {
category: n.get("category") || "all"
};
}
-var t6 = (e, t, n) => Vs(e.map(([e, t, n]) => ({
+var e6 = (e, t, n) => Vs(e.map(([e, t, n]) => ({
value: e,
label: t,
symbol: n
@@ -75490,12 +75515,12 @@ var t6 = (e, t, n) => Vs(e.map(([e, t, n]) => ({
active: t,
label: n,
className: "indextabs"
-}), UMe = (e) => `<div class="peach-react contents"><div data-filter-glass data-glass-pane class="sticky top-topbar z-10 mb-5.5 flex flex-col">
+}), JMe = (e) => `<div class="peach-react contents"><div data-filter-glass data-glass-pane class="sticky top-topbar z-10 mb-5.5 flex flex-col">
<div class="flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2" data-filter-row="top" data-skeleton-tier="filter-pill" aria-label="标签类型"></div>
<div class="flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2" data-filter-row="bottom"><span class="countskeleton"></span>
- <span class="ml-auto">${Yc("tag-view", "标签视图", HMe, e, { className: "tag-skeleton-view" })}</span></div></div></div>`;
-function WMe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
- let o = Q3[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies" || e === "series", l = s ? Yc("people-layout", o + "索引版式", e === "series" ? RMe : c ? LMe : IMe, a) : "";
+ <span class="ml-auto">${Yc("tag-view", "标签视图", qMe, e, { className: "tag-skeleton-view" })}</span></div></div></div>`;
+function YMe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
+ let o = Z3[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies" || e === "series", l = s ? Yc("people-layout", o + "索引版式", e === "series" ? UMe : c ? HMe : VMe, a) : "";
return `<div class="ihead peach-react" data-index-head>
<h2 class="disp indexheading">${o}</h2>
${s ? "<span class=\"mono\" id=\"indexCount\"><span class=\"countskeleton\"></span></span>" : ""}${l}
@@ -75507,24 +75532,24 @@ function WMe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
}) : ""}
<div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Ts("", t, "过滤" + o)}</div>
</div>
- ${e === "tags" ? t6(BMe, n, "词表") : e === "performers" || e === "creators" ? t6(VMe, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? t6(zMe, e, "资料类型") : ""}
- ${e === "tags" ? UMe(r) : ""}
- ${e === "performers" && n !== "online" ? swe(i) : ""}
+ ${e === "tags" ? e6(GMe, n, "词表") : e === "performers" || e === "creators" ? e6(KMe, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? e6(WMe, e, "资料类型") : ""}
+ ${e === "tags" ? JMe(r) : ""}
+ ${e === "performers" && n !== "online" ? fwe(i) : ""}
${nc({
kind: e,
layout: a,
mode: r
})}`;
}
-var GMe = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";
-function n6(e, t, n) {
- let r = WMe(t, n);
- e.querySelector("[data-skeleton]")?.dataset.skeleton !== GMe(r) && (e.innerHTML = r, lc(e));
+var XMe = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";
+function t6(e, t, n) {
+ let r = YMe(t, n);
+ e.querySelector("[data-skeleton]")?.dataset.skeleton !== XMe(r) && (e.innerHTML = r, lc(e));
}
// src/react/router/pages/index-entity.tsx
-var KMe = () => Eu, qMe = () => du, r6 = () => document.getElementById("index");
-function i6(e, t, n = {}) {
- let r = (0, F.useSyncExternalStore)(Lu, KMe);
+var ZMe = () => Eu, QMe = () => du, n6 = () => document.getElementById("index");
+function r6(e, t, n = {}) {
+ let r = (0, F.useSyncExternalStore)(Lu, ZMe);
hf();
let i = ep(zp.navigation.location.pathname), a = (0, F.useRef)({
mounted: !0,
@@ -75572,11 +75597,11 @@ function i6(e, t, n = {}) {
i
]);
}
-async function JMe(e, t, n, r) {
- let i = r6();
+async function $Me(e, t, n, r) {
+ let i = n6();
if (!i) return;
- let a = `/${t}`, o = e6(t, n), s = $3(EM().value.peopleLayout), c = !!i.querySelector("[data-index-page]") && !i.hidden;
- c || (e.surfaceChanged("index", a), n6(i, o, s), _m(r, i, { pending: !0 })), await Tp(a, {
+ let a = `/${t}`, o = $3(t, n), s = Q3(jM().value.peopleLayout), c = !!i.querySelector("[data-index-page]") && !i.hidden;
+ c || (e.surfaceChanged("index", a), t6(i, o, s), Sm(r, i, { pending: !0 })), await Tp(a, {
...o,
layout: s,
selectMode: du,
@@ -75585,25 +75610,25 @@ async function JMe(e, t, n, r) {
container: i,
isCurrent: r,
reuse: c
- }) && r() && (e.surfaceShown?.("index", a), _m(r, i));
+ }) && r() && (e.surfaceShown?.("index", a), Sm(r, i));
}
-function YMe(e) {
- let t = r6(), n = t ? bp(t) : null;
+function eNe(e) {
+ let t = n6(), n = t ? bp(t) : null;
return !!t && !t.hidden && !!n && n.path === e && n.host.isConnected;
}
-function XMe({ epoch: e }) {
- let t = (0, F.useContext)(GW), n = hf(), r = n.pathname.split("/").filter(Boolean)[0];
- return i6(e, (e, i) => {
- t && JMe(t, r, n.search, i);
- }, { shown: () => YMe(`/${r}`) }), null;
+function tNe({ epoch: e }) {
+ let t = (0, F.useContext)(JW), n = hf(), r = n.pathname.split("/").filter(Boolean)[0];
+ return r6(e, (e, i) => {
+ t && $Me(t, r, n.search, i);
+ }, { shown: () => eNe(`/${r}`) }), null;
}
-function ZMe() {
- let e = WW(), t = (0, F.useSyncExternalStore)(Lu, qMe), n = (0, F.useRef)(t);
+function nNe() {
+ let e = qW(), t = (0, F.useSyncExternalStore)(Lu, QMe), n = (0, F.useRef)(t);
return (0, F.useEffect)(() => {
- n.current !== t && (n.current = t, window.location.pathname === "/tags" && Dp(r6(), { selectMode: t }));
- }, [t]), /* @__PURE__ */ (0, I.jsx)(XMe, { epoch: e }, e);
+ n.current !== t && (n.current = t, window.location.pathname === "/tags" && Dp(n6(), { selectMode: t }));
+ }, [t]), /* @__PURE__ */ (0, I.jsx)(tNe, { epoch: e }, e);
}
-function QMe(e) {
+function rNe(e) {
let t;
try {
t = decodeURIComponent(e);
@@ -75617,9 +75642,9 @@ function QMe(e) {
name: a
} : null;
}
-var a6 = /* @__PURE__ */ new WeakMap();
-function $Me(e) {
- let t = a6.get(e);
+var i6 = /* @__PURE__ */ new WeakMap();
+function iNe(e) {
+ let t = i6.get(e);
return t || (t = {
helpers: {
...e.grid.helpers,
@@ -75629,14 +75654,14 @@ function $Me(e) {
...e.grid.actions,
revealSource: e.revealSource
}
- }, a6.set(e, t)), t;
+ }, i6.set(e, t)), t;
}
-function o6() {
- let e = r6(), t = e ? bp(e) : null;
+function a6() {
+ let e = n6(), t = e ? bp(e) : null;
return !!t && t.path.endsWith("/*") && t.host.isConnected;
}
-async function eNe(e, t, n, r, i, a, o) {
- let s = r6();
+async function aNe(e, t, n, r, i, a, o) {
+ let s = n6();
if (!s) return;
let { segment: c, kind: l, name: u } = n;
if (!a()) return;
@@ -75649,9 +75674,9 @@ async function eNe(e, t, n, r, i, a, o) {
body: d.content.querySelector("[data-entity-body]>.peach-react")
}, h = {
...t.props(l, u, i),
- ...mm("entity")
+ ...ym("entity")
};
- pm("entity", {
+ vm("entity", {
seed: h.seed,
revision: h.revision,
jav: h.jav
@@ -75659,9 +75684,9 @@ async function eNe(e, t, n, r, i, a, o) {
let g = {
...h,
hosts: m,
- card: $Me(e),
+ card: iNe(e),
resolvedEntity: o,
- restoreNavigation: hm(),
+ restoreNavigation: bm(),
actions: {
...h.actions,
javContext: (e) => {
@@ -75674,16 +75699,16 @@ async function eNe(e, t, n, r, i, a, o) {
isCurrent: a,
beforePlace: () => e.surfaceChanged("entity", r),
place: (e) => (e.replaceChildren(...f), p.firstElementChild)
- }) && a() && o6() && (e.surfaceShown?.("entity", r), _m(a, m.filter));
+ }) && a() && a6() && (e.surfaceShown?.("entity", r), Sm(a, m.filter));
}
-function tNe({ target: e }) {
- let t = (0, F.useContext)(GW), n = WW(), r = hf();
- return i6(n, (n, i) => {
+function oNe({ target: e }) {
+ let t = (0, F.useContext)(JW), n = qW(), r = hf();
+ return r6(n, (n, i) => {
let a = t?.entity;
t && a && (async () => {
- if (n || !o6()) {
+ if (n || !a6()) {
if (t.surfaceChanged("entity", r.pathname), await a.loading(e.kind, e.name, i), !i()) return;
- _m(i, r6(), { pending: !0 });
+ Sm(i, n6(), { pending: !0 });
}
let o = new URLSearchParams({ kind: e.kind });
o.set(/^[0-9]+$/.test(e.name) ? "id" : "name", e.name);
@@ -75694,7 +75719,7 @@ function tNe({ target: e }) {
e.name
],
queryFn: ({ signal: e }) => V(`/api/entity?${o}`, e),
- staleTime: hm() ? Infinity : 0
+ staleTime: bm() ? Infinity : 0
}).catch(() => null);
if (!i()) return;
if (s?.redirect) {
@@ -75705,11 +75730,11 @@ function tNe({ target: e }) {
return;
}
if (!s?.id || s.error) {
- a.missing(e.kind);
+ a.missing(e.kind), Sm(i);
return;
}
let c = String(s.canonical_name || e.name), l = Mn(e.kind, c, Number(s.id));
- l === r.pathname ? !n && a.refresh(e.kind, c, r.search) ? _m(i, r6()?.querySelector("[data-entity-filter]")) : eNe(t, a, {
+ l === r.pathname ? !n && a.refresh(e.kind, c, r.search) ? Sm(i, n6()?.querySelector("[data-entity-filter]")) : aNe(t, a, {
...e,
name: c
}, r.pathname, r.search, i, s) : Bp(l + r.search + r.hash, {
@@ -75717,108 +75742,108 @@ function tNe({ target: e }) {
state: zp.navigation.location.state
});
})();
- }, { shown: () => o6() && !r6()?.hidden }), null;
+ }, { shown: () => a6() && !n6()?.hidden }), null;
}
-function nNe() {
- let e = QMe(hf().pathname);
- return e ? /* @__PURE__ */ (0, I.jsx)(tNe, { target: e }, JSON.stringify([e.kind, e.name])) : null;
+function sNe() {
+ let e = rNe(hf().pathname);
+ return e ? /* @__PURE__ */ (0, I.jsx)(oNe, { target: e }, JSON.stringify([e.kind, e.name])) : null;
}
// src/react/router/pages/follow.tsx
-var s6 = () => document.getElementById("stats"), rNe = () => Mu;
-async function iNe(e, t) {
- let n = s6(), r = e.follow;
+var o6 = () => document.getElementById("stats"), cNe = () => Mu;
+async function lNe(e, t) {
+ let n = o6(), r = e.follow;
if (!n || !r) return;
- let i = mm("follow"), a = r.refresh(i), o = r.props();
- if (pm("follow", {
+ let i = ym("follow"), a = r.refresh(i), o = r.props();
+ if (vm("follow", {
view: o.view,
seed: o.seed,
revision: o.revision
}), a) return;
let s = U.getQueryData(ta(o.view, o.revision).queryKey) !== void 0;
- s || (e.surfaceChanged("follow", "/follow"), O2(n, r.skeleton()), _m(t, n, { pending: !0 })), await Tp("/follow", o, {
+ s || (e.surfaceChanged("follow", "/follow"), D2(n, r.skeleton()), Sm(t, n, { pending: !0 })), await Tp("/follow", o, {
container: n,
isCurrent: t,
beforePlace: s ? () => e.surfaceChanged("follow", "/follow") : void 0
- }), t() && _m(t, n.querySelector("[data-filter-frame]"));
+ }), t() && Sm(t, n.querySelector("[data-filter-frame]"));
}
-function aNe() {
- let e = s6(), t = e ? bp(e) : null;
+function uNe() {
+ let e = o6(), t = e ? bp(e) : null;
return !!e && !e.hidden && !!t && t.path === "/follow" && t.host.isConnected;
}
-function oNe() {
- let e = (0, F.useContext)(GW);
- return i6(WW(), (t, n) => {
- e && iNe(e, n);
+function dNe() {
+ let e = (0, F.useContext)(JW);
+ return r6(qW(), (t, n) => {
+ e && lNe(e, n);
}, {
- shown: aNe,
+ shown: uNe,
onCovered: () => {
zp.navigation.location.pathname.startsWith("/posts/") && e?.follow?.ground();
}
}), null;
}
-function c6(e) {
+function s6(e) {
let t = e ? bp(e) : null;
return !!t && t.path === "/playlists" && t.host.isConnected;
}
-async function sNe(e, t) {
- let n = s6();
- n && (e.surfaceChanged("playlists", "/playlists"), O2(n, E2("/playlists", {
+async function fNe(e, t) {
+ let n = o6();
+ n && (e.surfaceChanged("playlists", "/playlists"), D2(n, T2("/playlists", {
followLayout: "",
followSort: "",
followDir: ""
- })), _m(t, n, { pending: !0 }), await Tp("/playlists", { revision: Mu }, {
+ })), Sm(t, n, { pending: !0 }), await Tp("/playlists", { revision: Mu }, {
container: n,
isCurrent: t
- }), t() && _m(t));
+ }), t() && Sm(t));
}
-function cNe() {
- let e = (0, F.useContext)(GW), t = (0, F.useSyncExternalStore)(Lu, rNe), n = (0, F.useRef)(t);
+function pNe() {
+ let e = (0, F.useContext)(JW), t = (0, F.useSyncExternalStore)(Lu, cNe), n = (0, F.useRef)(t);
return (0, F.useEffect)(() => {
if (n.current === t) return;
n.current = t;
- let e = s6();
- c6(e) && Dp(e, { revision: t });
- }, [t]), i6(WW(), (t, n) => {
- e && sNe(e, n);
+ let e = o6();
+ s6(e) && Dp(e, { revision: t });
+ }, [t]), r6(qW(), (t, n) => {
+ e && fNe(e, n);
}, { shown: () => {
- let e = s6();
- return c6(e) && !e.hidden;
+ let e = o6();
+ return s6(e) && !e.hidden;
} }), null;
}
// src/react/router/pages/immerse.tsx
-function lNe() {
+function mNe() {
let e = new URLSearchParams(zp.navigation.location.search).get("id");
return /^\d+$/.test(e || "") ? Number(e) : void 0;
}
-function uNe() {
- let e = (0, F.useContext)(GW);
- return RW(() => {
- e?.openImmerse(lNe());
+function hNe() {
+ let e = (0, F.useContext)(JW);
+ return VW(() => {
+ e?.openImmerse(mNe());
}, !0), null;
}
-function dNe() {
- return /* @__PURE__ */ (0, I.jsx)(uNe, {}, WW());
+function gNe() {
+ return /* @__PURE__ */ (0, I.jsx)(hNe, {}, qW());
}
// src/react/router/pages/managed.tsx
-var fNe = () => Eu > 0, l6 = () => (0, F.useSyncExternalStore)(Lu, fNe), u6 = () => EM().value.followLayout === "table" ? "table" : "default", d6 = () => new URLSearchParams(window.location.search);
-function f6(e) {
+var _Ne = () => Eu > 0, c6 = () => (0, F.useSyncExternalStore)(Lu, _Ne), l6 = () => jM().value.followLayout === "table" ? "table" : "default", u6 = () => new URLSearchParams(window.location.search);
+function d6(e) {
return Cn("/healthz", { signal: e.controller.signal }).catch((e) => {
if (wn(e)) return null;
throw e;
});
}
-function p6(e, t) {
+function f6(e, t) {
return {
readOnly: !!e?.ledger_read_only,
readOnlyMessage: e?.ledger_read_only_message || "本机当前只能浏览",
writerUrl: e?.ledger_writer_origin ? new URL(t, e.ledger_writer_origin).href : ""
};
}
-async function pNe(e, t) {
+async function vNe(e, t) {
if (e === "/jav") {
- let e = await f6(t);
+ let e = await d6(t);
return t.live ? {
- tab: pW(d6().get("tab")),
+ tab: hW(u6().get("tab")),
readOnly: !!e?.ledger_read_only
} : null;
}
@@ -75829,51 +75854,51 @@ async function pNe(e, t) {
}
if (e.startsWith("/settings/")) {
window.location.hash === "#peachProxy" && Fu({ configurationRequestedSection: "网络与访问" });
- let t = d6().get("section") || Cu || Wf(e);
+ let t = u6().get("section") || Cu || Wf(e);
return t ? { section: t } : {};
}
if (e === "/review") {
- let e = d6().get("category") || "", n = await f6(t);
+ let e = u6().get("category") || "", n = await d6(t);
return t.live ? {
- category: uX(e) ? e : "",
- queue: pX(d6().get("queue")),
- ...p6(n, "/review")
+ category: lX(e) ? e : "",
+ queue: fX(u6().get("queue")),
+ ...f6(n, "/review")
} : null;
}
if (e === "/subscriptions") {
- let e = vQ("?" + d6().toString()), n = await f6(t);
+ let e = _Q("?" + u6().toString()), n = await d6(t);
if (!t.live) return null;
- let r = EM().value;
+ let r = jM().value;
return {
...e,
pageSize: Number(r.followPageSize) || 20,
- layout: u6(),
- ...p6(n, "/subscriptions")
+ layout: l6(),
+ ...f6(n, "/subscriptions")
};
}
return {};
}
-async function mNe(e, t, n) {
+async function yNe(e, t, n) {
let r = zp.navigation.seq, i = () => n.live && zp.navigation.seq === r;
- if (e === "/jav" && pW(d6().get("tab")) === "library") {
- zp.replace(X_e(window.location.search));
+ if (e === "/jav" && hW(u6().get("tab")) === "library") {
+ zp.replace(Q_e(window.location.search));
return;
}
- if (e === "/subscriptions" && d6().get("tab") === "wants") {
+ if (e === "/subscriptions" && u6().get("tab") === "wants") {
Bp("/jav?tab=wants", { replace: !0 });
return;
}
- if (e === "/subscriptions" && d6().get("tab") === "source") {
+ if (e === "/subscriptions" && u6().get("tab") === "source") {
Bp("/settings/subscriptions", { replace: !0 });
return;
}
let a = document.getElementById("stats");
if (!a) return;
- t.surfaceChanged("management", e), O2(a, E2(e, {
- followLayout: u6(),
- followSort: d6().get("sort") || "",
- followDir: d6().get("dir") || ""
- })), _m(i, a, { pending: !0 }), e === "/taste" && (Fu({ state: {
+ t.surfaceChanged("management", e), D2(a, T2(e, {
+ followLayout: l6(),
+ followSort: u6().get("sort") || "",
+ followDir: u6().get("dir") || ""
+ })), Sm(i, a, { pending: !0 }), e === "/taste" && (Fu({ state: {
...W,
creator: "",
studio: "",
@@ -75888,7 +75913,7 @@ async function mNe(e, t, n) {
q: "",
jav: ""
} }), t.clearSearch());
- let o = await pNe(e, n);
+ let o = await vNe(e, n);
if (!o) return;
let s = await Tp(e, o, {
container: a,
@@ -75901,22 +75926,22 @@ async function mNe(e, t, n) {
replace: !0,
state: null
});
- }) : _m(i);
+ }) : Sm(i);
}
}
-function m6({ path: e }) {
- let t = WW();
+function p6({ path: e }) {
+ let t = qW();
hf();
let n = ep(zp.navigation.location.pathname), r = (0, F.useRef)(n ? null : t), i = (0, F.useRef)(n);
n || i.current && r.current !== null || (r.current = t), i.current = n;
let a = e.startsWith("/settings/") ? "/settings/configuration" : e;
- return /* @__PURE__ */ (0, I.jsx)(hNe, {
+ return /* @__PURE__ */ (0, I.jsx)(bNe, {
path: e,
covered: r.current === null
}, `${a} ${r.current ?? "covered"}`);
}
-function hNe({ path: e, covered: t }) {
- let n = (0, F.useContext)(GW), r = l6(), i = (0, F.useRef)(null);
+function bNe({ path: e, covered: t }) {
+ let n = (0, F.useContext)(JW), r = c6(), i = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
e.startsWith("/settings/") && Dp(document.getElementById("stats"), { section: Wf(e) });
}, [e]), (0, F.useEffect)(() => {
@@ -75927,15 +75952,15 @@ function hNe({ path: e, covered: t }) {
controller: new AbortController()
};
i.current = a, queueMicrotask(() => {
- a.live && mNe(e, n, a);
+ a.live && yNe(e, n, a);
});
}, [r]), (0, F.useEffect)(() => () => {
let e = i.current;
e && (e.live = !1, e.controller.abort());
}, []), null;
}
-function gNe() {
- let e = l6(), t = (0, F.useRef)(!1);
+function xNe() {
+ let e = c6(), t = (0, F.useRef)(!1);
return (0, F.useEffect)(() => {
if (!e || t.current || ep(zp.navigation.location.pathname)) return;
t.current = !0;
@@ -75948,24 +75973,24 @@ function gNe() {
}, [e]), null;
}
// src/react/router/route-chunk.ts
-var h6 = [], g6 = "peach.chunkReloadAt", _Ne = 3e4;
-async function vNe() {
+var m6 = [], h6 = "peach.chunkReloadAt", SNe = 3e4;
+async function CNe() {
try {
- let e = Number(sessionStorage.getItem(g6) || 0);
- if (Date.now() - e < _Ne || !(await fetch("/healthz", {
+ let e = Number(sessionStorage.getItem(h6) || 0);
+ if (Date.now() - e < SNe || !(await fetch("/healthz", {
cache: "no-store",
credentials: "same-origin"
})).ok) return;
- sessionStorage.setItem(g6, String(Date.now())), location.reload();
+ sessionStorage.setItem(h6, String(Date.now())), location.reload();
} catch {}
}
-function _6(e) {
+function g6(e) {
let t = null, n = null, r = () => n ??= e().then((e) => (t = { module: e }, e), (e) => {
throw n = null, e;
});
- return h6.push(r), {
+ return m6.push(r), {
preload: () => r().catch(async (e) => {
- throw await vNe(), e;
+ throw await CNe(), e;
}),
get: () => {
if (!t) throw Error("页面代码还没装载");
@@ -75973,10 +75998,10 @@ function _6(e) {
}
};
}
-function yNe() {
+function wNe() {
let e = globalThis.requestIdleCallback;
if (typeof e != "function") return;
- let t = [...h6], n = () => {
+ let t = [...m6], n = () => {
let r = t.shift();
r && e(() => {
r().catch(() => {}).finally(n);
@@ -75985,31 +76010,31 @@ function yNe() {
document.readyState === "complete" ? n() : window.addEventListener("load", n, { once: !0 });
}
// src/react/router/managed-routes.tsx
-async function v6(e, t) {
+async function _6(e, t) {
let [n, r] = await Promise.allSettled([e.preload(), t]);
if (r.status === "rejected") throw r.reason;
if (n.status === "rejected") throw n.reason;
}
-var y6 = _6(() => import("./peach-app.jav-page-DHl3Jm_q.js")), b6 = _6(() => import("./peach-app.stats-page-CxbUCXeP.js")), x6 = _6(() => import("./peach-app.taste-page-C5j4APwJ.js")), S6 = _6(() => import("./peach-app.review-page-BoybwF8-.js")), C6 = _6(() => import("./peach-app.data-cleanup-page-Ctwipl6H.js")), w6 = _6(() => import("./peach-app.duplicates-page-Bau8HIlx.js")), T6 = _6(() => import("./peach-app.quality-goals-page-DwyqtX3v.js")), E6 = _6(() => import("./peach-app.scraping-page-Ddbx11Bn.js")), D6 = _6(async () => {
+var v6 = g6(() => import("./peach-app.jav-page-DHl3Jm_q.js")), y6 = g6(() => import("./peach-app.stats-page-CxbUCXeP.js")), b6 = g6(() => import("./peach-app.taste-page-C5j4APwJ.js")), x6 = g6(() => import("./peach-app.review-page-BoybwF8-.js")), S6 = g6(() => import("./peach-app.data-cleanup-page-Ctwipl6H.js")), C6 = g6(() => import("./peach-app.duplicates-page-Bau8HIlx.js")), w6 = g6(() => import("./peach-app.quality-goals-page-DwyqtX3v.js")), T6 = g6(() => import("./peach-app.scraping-page-Ddbx11Bn.js")), E6 = g6(async () => {
let [{ ConfigurationPage: e }, { DiagnosticsPage: t }] = await Promise.all([import("./peach-app.configuration-page-DFsNUGcd.js"), import("./peach-app.diagnostics-page-CZQmu5mE.js")]);
return {
ConfigurationPage: e,
DiagnosticsPage: t
};
-}), O6 = _6(() => import("./peach-app.activity-page-B66P-r0P.js")), k6 = _6(() => import("./peach-app.follow-manage-page-36Z6mSDD.js")), A6 = _6(() => import("./peach-app.playlists-page-Be7ygGCR.js"));
-function bNe(e, t, n) {
+}), D6 = g6(() => import("./peach-app.activity-page-B66P-r0P.js")), O6 = g6(() => import("./peach-app.follow-manage-page-36Z6mSDD.js")), k6 = g6(() => import("./peach-app.playlists-page-Be7ygGCR.js"));
+function TNe(e, t, n) {
if (e === "duplicates") {
n("/duplicates");
return;
}
let r = t.managePath(e);
- N6(r) ? n(r) : t.openManage(e);
+ M6(r) ? n(r) : t.openManage(e);
}
-var j6 = (e) => ({
- element: /* @__PURE__ */ (0, I.jsx)(m6, { path: e }),
- prefetch: (t, n) => v6(D6, Promise.all([WDe(n), ...e === "/settings/diagnostics" ? [EEe(n)] : []]).then(() => {})),
+var A6 = (e) => ({
+ element: /* @__PURE__ */ (0, I.jsx)(p6, { path: e }),
+ prefetch: (t, n) => _6(E6, Promise.all([YDe(n), ...e === "/settings/diagnostics" ? [jEe(n)] : []]).then(() => {})),
page: (t, n) => {
- let { ConfigurationPage: r, DiagnosticsPage: i } = D6.get();
+ let { ConfigurationPage: r, DiagnosticsPage: i } = E6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
receipt: (e) => n.receipt(e),
reopenTutorial: n.reopenTutorial,
@@ -76020,12 +76045,12 @@ var j6 = (e) => ({
})
});
}
-}), M6 = {
+}), j6 = {
"/jav": {
- element: /* @__PURE__ */ (0, I.jsx)(m6, { path: "/jav" }),
- prefetch: (e, t) => v6(y6, gW(e.tab, t)),
+ element: /* @__PURE__ */ (0, I.jsx)(p6, { path: "/jav" }),
+ prefetch: (e, t) => _6(v6, yW(e.tab, t)),
page: (e, t) => {
- let { JavPage: n } = y6.get();
+ let { JavPage: n } = v6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
...e,
navigate: t.navigate,
@@ -76034,10 +76059,10 @@ var j6 = (e) => ({
}
},
"/stats": {
- element: /* @__PURE__ */ (0, I.jsx)(m6, { path: "/stats" }),
- prefetch: (e, t) => v6(b6, Mje(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(p6, { path: "/stats" }),
+ prefetch: (e, t) => _6(y6, Lje(t)),
page: (e, t) => {
- let { StatsPage: n } = b6.get();
+ let { StatsPage: n } = y6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
tagLabel: Xl,
onTag: t.openTag
@@ -76045,10 +76070,10 @@ var j6 = (e) => ({
}
},
"/taste": {
- element: /* @__PURE__ */ (0, I.jsx)(m6, { path: "/taste" }),
- prefetch: (e, t) => v6(x6, bMe("all", t)),
+ element: /* @__PURE__ */ (0, I.jsx)(p6, { path: "/taste" }),
+ prefetch: (e, t) => _6(b6, TMe("all", t)),
page: (e, t, n) => {
- let { TastePage: r } = x6.get();
+ let { TastePage: r } = b6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
onSignal: t.openTasteSignal,
navigate: n,
@@ -76058,10 +76083,10 @@ var j6 = (e) => ({
}
},
"/review": {
- element: /* @__PURE__ */ (0, I.jsx)(m6, { path: "/review" }),
- prefetch: (e, t) => v6(S6, GSe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(p6, { path: "/review" }),
+ prefetch: (e, t) => _6(x6, XSe(t)),
page: (e, t) => {
- let { ReviewPage: n } = S6.get();
+ let { ReviewPage: n } = x6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
...e,
route: t.routeReview,
@@ -76073,22 +76098,22 @@ var j6 = (e) => ({
}
},
"/data-cleanup": {
- element: /* @__PURE__ */ (0, I.jsx)(m6, { path: "/data-cleanup" }),
- prefetch: (e, t) => v6(C6, ZCe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(p6, { path: "/data-cleanup" }),
+ prefetch: (e, t) => _6(S6, nwe(t)),
page: (e, t, n) => {
- let { DataCleanupPage: r } = C6.get();
+ let { DataCleanupPage: r } = S6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
failure: t.failure,
- open: (e) => bNe(e, t, n),
+ open: (e) => TNe(e, t, n),
toast: (e, { warning: n = !1 } = {}) => n ? t.toast({ text: e }, { sound: "warning" }) : t.receipt(e)
});
}
},
"/duplicates": {
- element: /* @__PURE__ */ (0, I.jsx)(m6, { path: "/duplicates" }),
- prefetch: (e, t) => v6(w6, sSe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(p6, { path: "/duplicates" }),
+ prefetch: (e, t) => _6(C6, fSe(t)),
page: (e, t) => {
- let { DuplicatesPage: n } = w6.get();
+ let { DuplicatesPage: n } = C6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
openItem: t.openItem,
failure: t.failure,
@@ -76097,46 +76122,46 @@ var j6 = (e) => ({
}
},
"/quality-goals": {
- element: /* @__PURE__ */ (0, I.jsx)(m6, { path: "/quality-goals" }),
- prefetch: (e, t) => v6(T6, ySe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(p6, { path: "/quality-goals" }),
+ prefetch: (e, t) => _6(w6, wSe(t)),
page: (e, t) => {
- let { QualityGoalsPage: n } = T6.get();
+ let { QualityGoalsPage: n } = w6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
openItem: t.openItem,
- javTitleHtml: VL,
- javDisplayName: BL,
+ javTitleHtml: UL,
+ javDisplayName: HL,
toast: (e) => t.receipt(e),
srcBadge: t.srcBadge
});
}
},
"/sources": {
- element: /* @__PURE__ */ (0, I.jsx)(m6, { path: "/sources" }),
- prefetch: (e, t) => v6(E6, PDe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(p6, { path: "/sources" }),
+ prefetch: (e, t) => _6(T6, zDe(t)),
page: (e, t) => {
- let { ScrapingPage: n } = E6.get();
+ let { ScrapingPage: n } = T6.get();
return /* @__PURE__ */ (0, I.jsx)(n, { toast: (e) => t.toast(e) });
}
},
- "/settings/library": j6("/settings/library"),
- "/settings/subscriptions": j6("/settings/subscriptions"),
- "/settings/downloads": j6("/settings/downloads"),
- "/settings/network": j6("/settings/network"),
- "/settings/maintenance": j6("/settings/maintenance"),
- "/settings/diagnostics": j6("/settings/diagnostics"),
+ "/settings/library": A6("/settings/library"),
+ "/settings/subscriptions": A6("/settings/subscriptions"),
+ "/settings/downloads": A6("/settings/downloads"),
+ "/settings/network": A6("/settings/network"),
+ "/settings/maintenance": A6("/settings/maintenance"),
+ "/settings/diagnostics": A6("/settings/diagnostics"),
"/tasks": {
- element: /* @__PURE__ */ (0, I.jsx)(m6, { path: "/tasks" }),
- prefetch: (e, t) => v6(O6, cfe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(p6, { path: "/tasks" }),
+ prefetch: (e, t) => _6(D6, ufe(t)),
page: () => {
- let { ActivityPage: e } = O6.get();
+ let { ActivityPage: e } = D6.get();
return /* @__PURE__ */ (0, I.jsx)(e, {});
}
},
"/subscriptions": {
- element: /* @__PURE__ */ (0, I.jsx)(m6, { path: "/subscriptions" }),
- prefetch: (e, t) => v6(k6, Ii(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(p6, { path: "/subscriptions" }),
+ prefetch: (e, t) => _6(O6, Ii(t)),
page: (e, t) => {
- let { FollowManagePage: n } = k6.get();
+ let { FollowManagePage: n } = O6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
...e,
route: t.routeFollowManage,
@@ -76146,12 +76171,12 @@ var j6 = (e) => ({
});
}
}
-}, N6 = (e) => Object.hasOwn(M6, e), xNe = { "/resource-sync": { element: /* @__PURE__ */ (0, I.jsx)(gNe, {}) } }, SNe = { "/immerse": { element: /* @__PURE__ */ (0, I.jsx)(dNe, {}) } }, P6 = {
+}, M6 = (e) => Object.hasOwn(j6, e), ENe = { "/resource-sync": { element: /* @__PURE__ */ (0, I.jsx)(xNe, {}) } }, DNe = { "/immerse": { element: /* @__PURE__ */ (0, I.jsx)(gNe, {}) } }, N6 = {
"/playlists": {
- element: /* @__PURE__ */ (0, I.jsx)(cNe, {}),
- prefetch: (e, t) => v6(A6, vDe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(pNe, {}),
+ prefetch: (e, t) => _6(k6, CDe(t)),
page: (e, t) => {
- let { PlaylistsPage: n } = A6.get();
+ let { PlaylistsPage: n } = k6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
revision: e.revision,
openPlaylist: t.openPlaylist,
@@ -76162,14 +76187,14 @@ var j6 = (e) => ({
}
},
"/follow": {
- element: /* @__PURE__ */ (0, I.jsx)(oNe, {}),
+ element: /* @__PURE__ */ (0, I.jsx)(dNe, {}),
prefetch: (e, t) => ia(e, t),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(aTe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(uTe, { ...e })
}
-}, F6 = (e) => Object.hasOwn(P6, e), I6 = {
- element: /* @__PURE__ */ (0, I.jsx)(ZMe, {}),
- prefetch: (e, t) => vwe(e, t),
- page: (e, t) => /* @__PURE__ */ (0, I.jsx)(BEe, {
+}, P6 = (e) => Object.hasOwn(N6, e), F6 = {
+ element: /* @__PURE__ */ (0, I.jsx)(nNe, {}),
+ prefetch: (e, t) => Cwe(e, t),
+ page: (e, t) => /* @__PURE__ */ (0, I.jsx)(GEe, {
...e,
route: t.routeIndex,
savePreference: t.savePeopleLayout,
@@ -76182,82 +76207,82 @@ var j6 = (e) => ({
openFollowAuthor: t.openFollowAuthor,
openFollowTag: t.openFollowTag
})
+}, I6 = {
+ "/performers": F6,
+ "/creators": F6,
+ "/studios": F6,
+ "/agencies": F6,
+ "/tags": F6,
+ "/series": F6
}, L6 = {
- "/performers": I6,
- "/creators": I6,
- "/studios": I6,
- "/agencies": I6,
- "/tags": I6,
- "/series": I6
+ element: /* @__PURE__ */ (0, I.jsx)(sNe, {}),
+ prefetch: (e) => dwe(e),
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(EEe, { ...e })
}, R6 = {
- element: /* @__PURE__ */ (0, I.jsx)(nNe, {}),
- prefetch: (e) => owe(e),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(xEe, { ...e })
+ "/performers/*": L6,
+ "/studios/*": L6,
+ "/creators/*": L6,
+ "/series/*": L6,
+ "/agencies/*": L6,
+ "/tags/*": L6
}, z6 = {
- "/performers/*": R6,
- "/studios/*": R6,
- "/creators/*": R6,
- "/series/*": R6,
- "/agencies/*": R6,
- "/tags/*": R6
-}, B6 = {
"/": {
- element: /* @__PURE__ */ (0, I.jsx)(NW, {}),
+ element: /* @__PURE__ */ (0, I.jsx)(IW, {}),
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(WY, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(UY, { ...e })
},
"/junk-files": {
- element: /* @__PURE__ */ (0, I.jsx)(NW, {}),
+ element: /* @__PURE__ */ (0, I.jsx)(IW, {}),
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)($Ee, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(iDe, { ...e })
}
-}, V6 = (e) => Object.hasOwn(B6, e), CNe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, I.jsx)(p_e, { ...e }) : /* @__PURE__ */ (0, I.jsx)(r1, { ...e }), H6 = {
+}, B6 = (e) => Object.hasOwn(z6, e), ONe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, I.jsx)(h_e, { ...e }) : /* @__PURE__ */ (0, I.jsx)(n1, { ...e }), V6 = {
"catalog-filter": {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(ave, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(uve, { ...e })
},
"feed-new": {
- prefetch: (e) => nwe(e),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(DEe, { ...e })
+ prefetch: (e) => swe(e),
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(MEe, { ...e })
},
"library-processing": {
- prefetch: (e, t) => zH(t),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(CNe, { ...e })
+ prefetch: (e, t) => VH(t),
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(ONe, { ...e })
},
search: {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(BDe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(GDe, { ...e })
}
-}, U6 = (e) => Object.hasOwn(H6, e), W6 = {
+}, H6 = (e) => Object.hasOwn(V6, e), U6 = {
"batch-dock": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Bce, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(zce, {})
},
"glow-picker": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(gle, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(hle, {})
},
"manage-header": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Hde, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Wde, {})
},
immerse: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(ude, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(lde, {})
},
"settings-panel": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(lOe, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(mOe, {})
},
sidebar: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(TOe, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(AOe, {})
},
stage: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Aje, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Fje, {})
}
-}, G6 = (e) => Object.hasOwn(W6, e), K6 = [
+}, W6 = (e) => Object.hasOwn(U6, e), G6 = [
"/",
"/wall",
"/unseen",
@@ -76267,99 +76292,99 @@ var j6 = (e) => ({
"/junk-files"
];
[
- ...Object.keys(M6),
- ...Object.keys(P6),
- ...Object.keys(L6),
- ...Object.keys(z6),
- ...K6
+ ...Object.keys(j6),
+ ...Object.keys(N6),
+ ...Object.keys(I6),
+ ...Object.keys(R6),
+ ...G6
];
-var q6 = (e) => N6(e) || F6(e) || Object.hasOwn(L6, e) || Object.hasOwn(z6, e) || V6(e) || U6(e) || G6(e);
-function J6(e) {
- return N6(e) ? M6[e] : F6(e) ? P6[e] : V6(e) ? B6[e] : U6(e) ? H6[e] : G6(e) ? W6[e] : Object.hasOwn(L6, e) ? L6[e] : z6[e];
+var K6 = (e) => M6(e) || P6(e) || Object.hasOwn(I6, e) || Object.hasOwn(R6, e) || B6(e) || H6(e) || W6(e);
+function q6(e) {
+ return M6(e) ? j6[e] : P6(e) ? N6[e] : B6(e) ? z6[e] : H6(e) ? V6[e] : W6(e) ? U6[e] : Object.hasOwn(I6, e) ? I6[e] : R6[e];
}
-function wNe(e, t, n) {
- return q6(e) ? J6(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
+function kNe(e, t, n) {
+ return K6(e) ? q6(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
}
-function TNe(e, t, n, r) {
- return J6(e).page(t, n, r);
+function ANe(e, t, n, r) {
+ return q6(e).page(t, n, r);
}
// src/react/application-residents.ts
-var Y6 = null, X6 = null, Z6 = 0, Q6 = /* @__PURE__ */ new Set();
-function ENe(e) {
- return Y6 = e, X6 && e(X6), () => {
- Y6 === e && (Y6 = null);
+var J6 = null, Y6 = null, X6 = 0, Z6 = /* @__PURE__ */ new Set();
+function jNe(e) {
+ return J6 = e, Y6 && e(Y6), () => {
+ J6 === e && (J6 = null);
};
}
-function DNe(e) {
- return Y6 && (X6 = e, Y6(e), yp(Promise.resolve(wNe)), yNe()), Promise.resolve();
+function MNe(e) {
+ return J6 && (Y6 = e, J6(e), yp(Promise.resolve(kNe)), wNe()), Promise.resolve();
}
-async function $6(e, t, n = (e) => e) {
- let r = Z6;
- if (t.isConnected || Q6.add(t), !await Tp(e, {}, {
+async function Q6(e, t, n = (e) => e) {
+ let r = X6;
+ if (t.isConnected || Z6.add(t), !await Tp(e, {}, {
container: t,
resident: !0,
- isCurrent: () => !!Y6 && r === Z6,
+ isCurrent: () => !!J6 && r === X6,
place: () => n(t)
- }) || r !== Z6 || !Y6) throw new DOMException("应用已卸载", "AbortError");
-}
-function ONe() {
- Z6 += 1, Y6 = null, X6 = null, e8 = null, t8 = null, i8 = null, a8 = null, s8 = null, c8 = null, u8 = null, d8 = null, p8 = null, m8 = null, g8 = null, _8 = null, y8 = null;
- for (let e of Q6) e.remove();
- Q6.clear(), E$();
-}
-var e8 = null, t8 = null;
-function n8(e) {
- return e8 ??= (async () => {
- let t = kje(e), n = document.createElement("div");
- return n.dataset.stageHost = "", await $6("stage", n, (e) => (document.body.append(e), e)), t8 = t, t;
- })(), e8;
-}
-var r8 = () => t8, i8 = null, a8 = null;
-function kNe(e) {
- return i8 ??= (async () => {
- let t = lde(e), n = document.createElement("div");
- return n.dataset.immerseHost = "", await $6("immerse", n, (e) => (document.body.append(e), e)), a8 = t, t;
- })(), i8;
-}
-var o8 = () => a8, s8 = null, c8 = null;
-function ANe(e) {
- return s8 ??= (async () => {
- let t = cOe(e), n = document.createElement("div");
- return n.dataset.settingsHost = "", await $6("settings-panel", n, (e) => (document.body.append(e), e)), c8 = t, t;
- })(), s8;
-}
-var l8 = () => c8, u8 = null, d8 = null;
-function jNe(e) {
- return u8 ??= (async () => {
- let t = wOe(e);
- return await $6("sidebar", e.scroll, (e) => (e.replaceChildren(), e)), e.attached(), d8 = t, t;
- })(), u8;
+ }) || r !== X6 || !J6) throw new DOMException("应用已卸载", "AbortError");
}
-var f8 = () => d8, p8 = null, m8 = null;
-function MNe(e) {
- return p8 ??= (async () => {
- let t = Vde(e);
- return await $6("manage-header", e.root, (e) => (e.replaceChildren(), e)), m8 = t, t;
- })(), p8;
-}
-var h8 = () => m8, g8 = null, _8 = null;
-function NNe(e) {
- return g8 ??= (async () => {
- let t = zce(e);
- return await $6("batch-dock", e.root), _8 = t, t;
- })(), g8;
-}
-var v8 = () => _8, y8 = null;
-function PNe(e) {
- return y8 ??= (async () => {
- hle(e), await $6("glow-picker", e.root);
- })(), y8;
+function NNe() {
+ X6 += 1, J6 = null, Y6 = null, $6 = null, e8 = null, r8 = null, i8 = null, o8 = null, s8 = null, l8 = null, u8 = null, f8 = null, p8 = null, h8 = null, g8 = null, v8 = null;
+ for (let e of Z6) e.remove();
+ Z6.clear(), T$();
}
-function b8(e, t, n, r) {
- D$(e, t), O$(n, r);
+var $6 = null, e8 = null;
+function t8(e) {
+ return $6 ??= (async () => {
+ let t = Pje(e), n = document.createElement("div");
+ return n.dataset.stageHost = "", await Q6("stage", n, (e) => (document.body.append(e), e)), e8 = t, t;
+ })(), $6;
+}
+var n8 = () => e8, r8 = null, i8 = null;
+function PNe(e) {
+ return r8 ??= (async () => {
+ let t = cde(e), n = document.createElement("div");
+ return n.dataset.immerseHost = "", await Q6("immerse", n, (e) => (document.body.append(e), e)), i8 = t, t;
+ })(), r8;
+}
+var a8 = () => i8, o8 = null, s8 = null;
+function FNe(e) {
+ return o8 ??= (async () => {
+ let t = pOe(e), n = document.createElement("div");
+ return n.dataset.settingsHost = "", await Q6("settings-panel", n, (e) => (document.body.append(e), e)), s8 = t, t;
+ })(), o8;
+}
+var c8 = () => s8, l8 = null, u8 = null;
+function INe(e) {
+ return l8 ??= (async () => {
+ let t = kOe(e);
+ return await Q6("sidebar", e.scroll, (e) => (e.replaceChildren(), e)), e.attached(), u8 = t, t;
+ })(), l8;
+}
+var d8 = () => u8, f8 = null, p8 = null;
+function LNe(e) {
+ return f8 ??= (async () => {
+ let t = Ude(e);
+ return await Q6("manage-header", e.root, (e) => (e.replaceChildren(), e)), p8 = t, t;
+ })(), f8;
+}
+var m8 = () => p8, h8 = null, g8 = null;
+function RNe(e) {
+ return h8 ??= (async () => {
+ let t = Rce(e);
+ return await Q6("batch-dock", e.root), g8 = t, t;
+ })(), h8;
+}
+var _8 = () => g8, v8 = null;
+function zNe(e) {
+ return v8 ??= (async () => {
+ mle(e), await Q6("glow-picker", e.root);
+ })(), v8;
+}
+function y8(e, t, n, r) {
+ E$(e, t), D$(n, r);
}
// src/application/effects.ts
-var x8 = class {
+var b8 = class {
cleanups = /* @__PURE__ */ new Set();
active = !0;
disposed = !1;
@@ -76440,9 +76465,9 @@ var x8 = class {
}
if (e.length) throw AggregateError(e, "应用资源清理未全部完成");
}
-}, J = new x8();
-function FNe() {
- return J.dispose(), J = new x8(), J;
+}, x8 = new b8();
+function BNe() {
+ return x8.dispose(), x8 = new b8(), x8;
}
// src/application/receipts.js
var S8 = {
@@ -76455,13 +76480,13 @@ var S8 = {
rollSeed: void 0,
seededSample: void 0
};
-function INe() {
- D$(R("#toasts"), {
+function VNe() {
+ E$(R("#toasts"), {
success: z("check"),
error: z("circle-alert")
}), S8.toastBody = (e) => e && typeof e == "object" && "html" in e ? String(e.html) : B(e && typeof e == "object" ? e.text ?? "" : e ?? ""), S8.toastSeq = 0, S8.toast = (e, { timeout: t = 6e3, warn: n = !1, action: r = null, sound: i = null } = {}) => {
let a = `toast-${++S8.toastSeq}`, o = (e, t, n, r) => {
- Xo(i || (t ? "error" : "success")), b8(R("#toasts"), {
+ Xo(i || (t ? "error" : "success")), y8(R("#toasts"), {
success: z("check"),
error: z("circle-alert")
}, a, {
@@ -76480,7 +76505,7 @@ function INe() {
}, S8.liftToastsOverTutorial = () => {
let e = R("#postSetupTutorial"), t = R("#toasts"), n = e.hidden ? innerHeight : e.getBoundingClientRect().top;
e.hidden || !e.offsetHeight || n < 160 ? t.style.removeProperty("--toast-bottom") : t.style.setProperty("--toast-bottom", `${Math.round(innerHeight - n + 12)}px`);
- }, J.resize(S8.liftToastsOverTutorial).observe(R("#postSetupTutorial")), J.listen.bind(J, window)("resize", S8.liftToastsOverTutorial), S8.actionReceipt = (e, { undo: t = null, timeout: n = t ? 8e3 : 6e3 } = {}) => {
+ }, x8.resize(S8.liftToastsOverTutorial).observe(R("#postSetupTutorial")), x8.listen.bind(x8, window)("resize", S8.liftToastsOverTutorial), S8.actionReceipt = (e, { undo: t = null, timeout: n = t ? 8e3 : 6e3 } = {}) => {
let r = null;
return r = S8.toast({ text: e }, {
timeout: n,
@@ -76502,7 +76527,7 @@ function INe() {
};
}
// src/react/catalog-grid/catalog-state.ts
-var LNe = [
+var HNe = [
"loc",
"creator",
"studio",
@@ -76524,9 +76549,9 @@ var LNe = [
"folder_recursive"
];
function C8(e, t, n, r = n.defaultSort) {
- return sM(e, t, n.defaultSort, n.defaultSortDirection, r);
+ return fM(e, t, n.defaultSort, n.defaultSortDirection, r);
}
-function RNe(e, t, n) {
+function UNe(e, t, n) {
let r = decodeURIComponent(e.pathname), i = new URLSearchParams(e.search), a = kn(r) || r === "/trash", o = (e) => a ? i.get(e) : null;
return {
loc: i.get("loc") ?? "local,115",
@@ -76552,18 +76577,18 @@ function RNe(e, t, n) {
folder_recursive: o("folder_recursive") === "0" ? "0" : ""
};
}
-function zNe(e, t) {
+function WNe(e, t) {
return e.split(",").filter(Boolean).filter((e) => t[e] !== !1).join(",") || e;
}
-function BNe(e) {
+function GNe(e) {
let t = En[e.state ?? ""] || "/", n = new URLSearchParams();
- for (let t of LNe) {
+ for (let t of HNe) {
let r = e[t];
- !r || t === "tag_match" && r === "all" || t === "dir" && r === iM(e.sort ?? "") || n.set(t, r);
+ !r || t === "tag_match" && r === "all" || t === "dir" && r === lM(e.sort ?? "") || n.set(t, r);
}
return !En[e.state ?? ""] && e.state && n.set("state", e.state), t + (n.size ? `?${n}` : "");
}
-function VNe(e, t, n) {
+function KNe(e, t, n) {
return {
loc: e.loc ?? "",
creator: "",
@@ -76579,7 +76604,7 @@ function VNe(e, t, n) {
year: "",
state: "",
sort: t.defaultSort,
- dir: oM(t.defaultSort, t.defaultSort, t.defaultSortDirection),
+ dir: dM(t.defaultSort, t.defaultSort, t.defaultSortDirection),
seed: n(),
q: "",
jav: "",
@@ -76600,7 +76625,7 @@ function w8(e) {
};
}
// src/react/catalog-grid/catalog-controller.ts
-var HNe = class {
+var qNe = class {
currentRevision = 0;
currentPage = "";
painting = null;
@@ -76645,16 +76670,16 @@ var HNe = class {
let e = [...this.waiters.values()];
this.waiters.clear(), e.forEach((e) => e());
}
-}, T8 = Infinity, E8 = 0, UNe = (e, t = E8) => [
+}, T8 = Infinity, E8 = 0, JNe = (e, t = E8) => [
"facets",
e,
t
-], WNe = (e, t, n = E8) => [
+], YNe = (e, t, n = E8) => [
"tops",
e,
t,
n
-], GNe = (e, t = E8) => [
+], XNe = (e, t = E8) => [
"tops",
e,
t
@@ -76663,20 +76688,20 @@ async function D8(e) {
let t = String(e), n = await Cn(`/api/tops?${t}`), r = new URLSearchParams(t);
return n.performers.length || n.studios.length || !r.has("state") ? n : (r.delete("state"), await Cn(`/api/tops?${r}`));
}
-function KNe(e, t) {
+function ZNe(e, t) {
return Promise.all([U.fetchQuery({
- queryKey: UNe(e),
+ queryKey: JNe(e),
queryFn: () => Cn(`/api/facets${e ? `?${e}` : ""}`),
staleTime: T8
}), U.fetchQuery({
- queryKey: WNe(t, e),
+ queryKey: YNe(t, e),
queryFn: () => D8(t),
staleTime: T8
})]);
}
-function qNe(e) {
+function QNe(e) {
return U.fetchQuery({
- queryKey: GNe(e),
+ queryKey: XNe(e),
queryFn: () => D8(e),
staleTime: T8
});
@@ -76797,11 +76822,11 @@ var k8 = [
"follow",
"activity",
"configuration"
-], JNe = (e) => A8.filter(([t]) => j8.includes(t) && (t !== "configuration" || e)), M8 = A8.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
+], $Ne = (e) => A8.filter(([t]) => j8.includes(t) && (t !== "configuration" || e)), M8 = A8.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
e === "follow" ? "follow-manage" : e === "cleanup" ? "data-cleanup" : e,
t,
n
-]]), YNe = [...k8, ...M8], XNe = {
+]]), ePe = [...k8, ...M8], tPe = {
stats: "stats",
review: "review",
"data-cleanup": "cleanup",
@@ -76837,7 +76862,7 @@ function I8(e) {
let t = String(e.k || ""), n = (t.match(/[A-Za-z0-9]/)?.[0] || Array.from(t)[0] || "?").toUpperCase(), r = e.avatar ? `<img src="${B(e.avatar)}" alt="" loading="lazy" referrerpolicy="no-referrer" ${za({ fallbacks: [e.avatar_fallback || ""] })}>` : "";
return `<span class="ini">${B(n)}</span>${r}`;
}
-function ZNe(e) {
+function nPe(e) {
let t = (t) => {
e.adoptFollowView(t), e.hideIndex(), e.openPage(Da(t));
};
@@ -76856,7 +76881,7 @@ function ZNe(e) {
};
}
// src/application/source-action.ts
-function QNe(e) {
+function rPe(e) {
return async (t, n, { button: r = null } = {}) => {
if (r?.getAttribute("aria-busy") === "true") return;
let i = r?.innerHTML ?? "", a = r?.textContent?.trim() ?? "";
@@ -76871,18 +76896,18 @@ function QNe(e) {
};
}
// src/react/entity-page/entity-route.ts
-var L8 = () => Object.fromEntries(_Z.map((e) => [e, e === "sort" ? "new" : e === "dir" ? "desc" : ""]));
+var L8 = () => Object.fromEntries(gZ.map((e) => [e, e === "sort" ? "new" : e === "dir" ? "desc" : ""]));
function R8(e, t) {
let n = new URLSearchParams(e), r = L8();
- for (let e of _Z) e !== "sort" && e !== "dir" && (r[e] = n.get(e) || "");
+ for (let e of gZ) e !== "sort" && e !== "dir" && (r[e] = n.get(e) || "");
return {
...r,
- ...sM(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
+ ...fM(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
};
}
function z8(e) {
let t = new URLSearchParams();
- for (let n of _Z) !e[n] || n === "sort" && e[n] === "new" || n === "dir" && e[n] === iM(e.sort || "") || t.set(n, e[n]);
+ for (let n of gZ) !e[n] || n === "sort" && e[n] === "new" || n === "dir" && e[n] === lM(e.sort || "") || t.set(n, e[n]);
return t.toString();
}
function B8(e) {
@@ -76896,11 +76921,11 @@ function V8(e, t) {
let n = new URLSearchParams(z8(e));
return t?.media === "photos" ? (n.set("media", "photos"), t.set && n.set("set", String(t.set))) : t?.media === "online" && n.set("media", "online"), n.toString();
}
-function $Ne(e, t, n, r) {
+function iPe(e, t, n, r) {
let i = V8(n, r);
return Mn(e, t) + (i ? `?${i}` : "");
}
-function ePe() {
+function aPe() {
let e = "";
return {
fresh(t, n) {
@@ -76921,10 +76946,10 @@ function ePe() {
};
}
// src/react/entity-page/photo-surface.ts
-function tPe(e, t) {
+function oPe(e, t) {
return e.entityWall && e.entityCurrent && e.indexVisible || e.pathname === "/follow" && e.followMedia === "images" && e.statsVisible ? !0 : t();
}
-function nPe(e) {
+function sPe(e) {
let t = () => {
let t = e.preferences();
for (let n of e.walls()) n.dataset.size = t.size, n.dataset.layout = "fixed", n.dataset.imagesOnly = String(t.imagesOnly);
@@ -76946,12 +76971,12 @@ function nPe(e) {
};
}
// src/react/entity-page/entity-controller.ts
-function rPe(e, t, n) {
+function cPe(e, t, n) {
let r = (t, n, r, i = {
media: "videos",
set: 0
}, { push: a = !0 } = {}) => {
- if (a && e.route($Ne(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;
+ if (a && e.route(iPe(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;
e.releaseBodyPreviews();
let o = e.state();
return e.push({
@@ -76978,7 +77003,7 @@ function rPe(e, t, n) {
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
- let n = c(), i = aM(e, n.sort || "new", n.dir || "");
+ let n = c(), i = uM(e, n.sort || "new", n.dir || "");
i && r(t, a, {
...n,
...i
@@ -77029,7 +77054,7 @@ function rPe(e, t, n) {
};
}
// src/react/entity-page/entity-loading.ts
-function iPe(e) {
+function lPe(e) {
return async (t, n, r) => {
e.paintSkeleton(t, n), e.resetView(), e.shapesReady(t, n) || e.waitShapes().then(() => {
r() && e.syncParts(t, n);
@@ -77039,7 +77064,7 @@ function iPe(e) {
};
}
// src/react/entity-page/entity-portrait.ts
-function aPe(e, t) {
+function uPe(e, t) {
let n = e === "studio" || e === "agency", r = t.id ? mo({
kind: e,
id: t.id,
@@ -77061,11 +77086,11 @@ function aPe(e, t) {
return r || (i?.avatar ? `<img src="${B(i.avatar)}" alt="${B(t.canonical_name)}" referrerpolicy="no-referrer" ${za({ fallbacks: [i.avatar_fallback || ""] })}>` : "");
}
// src/react/entity-page/entity-application.ts
-function oPe(e) {
- let t = ePe(), n = {
+function dPe(e) {
+ let t = aPe(), n = {
...e.helpers,
- portraitImg: aPe
- }, r = rPe(e.controller, n, e.actions);
+ portraitImg: uPe
+ }, r = cPe(e.controller, n, e.actions);
return {
...r,
helpers: n,
@@ -77074,12 +77099,12 @@ function oPe(e) {
let { filters: o, media: s } = t.read(n, i, a, e.sortPreference());
return r.props(n, i, o, s);
},
- loading: iPe(e.loading),
- photos: nPe(e.photos)
+ loading: lPe(e.loading),
+ photos: sPe(e.photos)
};
}
// src/card-art/feed-identity.ts
-function sPe(e) {
+function fPe(e) {
let t = e.performer_refs || [], n = [...new Set((e.performers || "").split(/[,,、;/]/).map((e) => e.trim()).filter(Boolean))], r = t.length ? t : n.map((e) => ({ name: e })), i = r.slice(0, 3).map((t) => {
let n = e.code && t.source_actor_id && t.source_avatar && !t.has_image && !t.has_avatar, r = n ? ` data-feed-source-avatar data-code="${B(e.code)}" data-actor="${B(t.source_actor_id)}" data-name="${B(t.name)}"` : "", i = n ? "" : ho(t.name, t, null);
return "id" in t && t.id ? `<a class="mav"${r} href="${B(Mn("performer", t.name, t.id))}" aria-label="打开女优页:${B(t.name)}">${i}</a>` : `<span class="mav"${r} title="${B(t.name)}">${i}</span>`;
@@ -77106,23 +77131,23 @@ var H8 = {
function U8(e) {
return e.has_cover ? bo(e, "big") : !e.cover_url || !e.code ? e.cover_fetching ? `<span class="nopic" data-feed-cover-state="fetching">${Bs("抓取中")}</span>` : "<span class=\"nopic\" data-feed-cover-state=\"missing\">无封面</span>" : bo(e, "big").replace(/ src="[^"]*"/, ` src="${B(lo(e))}" data-panel-prior="1"`).replace("data-drop=\"self\"", "data-drop=\"initial\" data-initial=\"封面未取得\" data-drop-class=\"nopic\"");
}
-function cPe(e) {
- let t = [e.performers && `<span class="feednewperformers" title="${B(e.performers)}">${B(e.performers)}</span>`, e.release_date && `<span>${B(e.release_date)}</span>`].filter(Boolean).join(""), n = U8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? VL({
+function pPe(e) {
+ let t = [e.performers && `<span class="feednewperformers" title="${B(e.performers)}">${B(e.performers)}</span>`, e.release_date && `<span>${B(e.release_date)}</span>`].filter(Boolean).join(""), n = U8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? UL({
is_jav: !0,
code: e.code,
name: e.code,
display_title: e.title || ""
}) : B(r), a = e.code ? `<a class="feednewopen" href="/works/${encodeURIComponent(e.code)}" aria-label="打开 ${B(r)} 的作品详情"></a>` : "";
return `<article class="card feednewcard${e.read ? " isread" : ""}" data-feed-id="${e.id}">
- ${a}<div class="pic" style="--card-ratio:${FM}">${n}
+ ${a}<div class="pic" style="--card-ratio:${BM}">${n}
<div class="hovertools feednewtools">
<button type="button" data-feed-action="${e.wanted ? "unwant" : "want"}" aria-pressed="${!!e.wanted}" title="${e.wanted ? "取消想要" : "想要"}" aria-label="想要 ${B(r)}">${z("star")}</button>
<button type="button" data-feed-action="ignore" title="不想看" aria-label="不想看 ${B(r)}">${z("x")}</button>
<button type="button" data-feed-action="read" title="标为已看过" aria-label="标为已看过 ${B(r)}">${z("check")}</button></div></div>
- <div class="meta">${sPe(e)}<div class="mtext"><span class="t">${i}</span>
+ <div class="meta">${fPe(e)}<div class="mtext"><span class="t">${i}</span>
<div class="s mono">${t || (e.title ? "" : "资料还没取到")}</div></div></div></article>`;
}
-function lPe() {
+function mPe() {
let e = document.getElementById("peach-entity-shape");
if (e) try {
let t = JSON.parse(e.textContent || "null");
@@ -77131,7 +77156,7 @@ function lPe() {
} catch {}
}
async function W8() {
- let e = J, t = await Cn("/api/entity/shapes", { signal: e.signal }).catch(() => null);
+ let e = x8, t = await Cn("/api/entity/shapes", { signal: e.signal }).catch(() => null);
return e.isActive && t && !t.error && (H8.entityShapesComplete = !0, H8.entityShapes = new Map((t.entities || []).flatMap((e) => [String(e.id), ...e.names].map((t) => [`${e.kind}/${Vn(t)}`, e.parts]))), typeof t.home?.feed == "boolean" && K8(t.home.feed), X8(location.pathname) && q8(R("#feedNew"))), H8.entityShapes;
}
var G8 = "peach.home-feed.v1";
@@ -77141,7 +77166,7 @@ function K8(e) {
localStorage.setItem(G8, e ? "1" : "0");
} catch {}
}
-function uPe() {
+function hPe() {
try {
let e = localStorage.getItem(G8);
return e === "1" || e !== "0" && null;
@@ -77152,7 +77177,7 @@ function uPe() {
function q8(e) {
!e || xp(e) || e.querySelector("[data-feed-id]") || (e.hidden = X.homeHasFeed !== !0, X.homeHasFeed === !0 && (e.setAttribute("aria-busy", "true"), e.querySelector(".feednewskeleton") || (e.innerHTML = H8.feedNewSkeletonHtml())));
}
-function dPe(e, t) {
+function gPe(e, t) {
return !(e > 0) || !t.some((e) => !e.has_cover) ? "" : Ls(`${e} 部新作的封面连不上 DMM 图片主机,中国移动宽带常见。把 DMM / FANZA 的连接方式设成 Peach 代理,下一轮会自动重取。`, {
variant: "warning",
className: "feednetwork",
@@ -77162,7 +77187,7 @@ function dPe(e, t) {
}
function J8(e) {
let t = e && !e.error && e.items || [];
- return dPe(e?.cover_network, t) + `<div class="feednewrow srow">${t.map(cPe).join("")}</div>`;
+ return gPe(e?.cover_network, t) + `<div class="feednewrow srow">${t.map(pPe).join("")}</div>`;
}
function Y8(e) {
e && (t9(e), Z.appSettings.feedAutoScroll && Ic(e));
@@ -77170,7 +77195,7 @@ function Y8(e) {
function X8(e) {
return kn(e) && e !== "/junk-files";
}
-function fPe() {
+function _Pe() {
let e = R("#feedNew");
xp(e) ? e.hidden = X.homeHasFeed !== !0 : (q8(e), Tp("feed-new", {
host: e,
@@ -77189,26 +77214,26 @@ function Z8() {
function Q8() {
H8.feedRevision += 1, Dp(R("#feedNew"), { revision: H8.feedRevision }), a5({ feedRevision: H8.feedRevision });
}
-function pPe() {
+function vPe() {
document.querySelectorAll(".feednewrow").forEach((e) => Z.appSettings.feedAutoScroll ? Ic(e) : Lc(e));
}
var $8 = 0;
-function mPe([e]) {
+function yPe([e]) {
let t = e.contentRect.width >= H8.HERO_WIDE_PX;
cancelAnimationFrame($8), $8 = requestAnimationFrame(() => {
$8 = 0, R("#index")?.toggleAttribute("data-hero-wide", t);
});
}
-function hPe() {
- H8.FEED_SKELETON_CARDS = 8, H8.feedNewSkeletonHtml = () => `<div class="feednewrow srow" data-skeleton="feed/new" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${FM}"></div>
+function bPe() {
+ H8.FEED_SKELETON_CARDS = 8, H8.feedNewSkeletonHtml = () => `<div class="feednewrow srow" data-skeleton="feed/new" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${BM}"></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(H8.FEED_SKELETON_CARDS)}</div>`, H8.entityShapes = null, H8.entityShapesComplete = !1, H8.hasEntityShape = (e, t) => H8.entityShapesComplete || !!H8.entityShapes?.has(`${e}/${Vn(t)}`), H8.hasEntityPart = (e, t, n) => !!t && !!H8.entityShapes?.get(`${e}/${Vn(t)}`)?.includes(n), H8.feedNewSkeletonSection = () => `<section class="feednew">${H8.feedNewSkeletonHtml()}</section>`, H8.COSTAR_SKELETON_PEOPLE = 12, H8.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(H8.COSTAR_SKELETON_PEOPLE)}</div></div>`, H8.factsSkeleton = () => `<dl class="entityfacts" data-entity-facts>${"<dt><span class=\"skeleton\"></span></dt><dd><span class=\"skeleton\"></span></dd>".repeat(5)}</dl>`, H8.feedRevision = 0, H8.feedNewHelpers = {
feedRowHtml: J8,
wireFeedRow: (e) => Y8(e)
- }, H8.feedNewActions = { settled: (e) => K8(e) }, H8.HERO_WIDE_PX = 900, J.resize(mPe).observe(R("#index"));
+ }, H8.feedNewActions = { settled: (e) => K8(e) }, H8.HERO_WIDE_PX = 900, x8.resize(yPe).observe(R("#index"));
}
// src/entity-skeleton.ts
-function gPe(e, t, n, r = "") {
+function xPe(e, t, n, r = "") {
let i = e === "studio" || e === "agency", a = new URLSearchParams(location.search), o = a.get("browse") === "folders" || a.get("folder") ? `<div class="peach-react entity-folder-workspace" data-folder-workspace data-folder-browse><aside data-folder-tree-host><div class="flex flex-col gap-3"><span class="skeleton ui-configuration-skeleton-input"></span>${"<span class=\"skeleton\" style=\"width:75%;height:32px\"></span>".repeat(8)}</div></aside><div class="min-w-0"><div data-folder-header-host><span class="skeleton" style="width:160px;height:32px"></span></div>${n}</div></div>` : n;
return `<section data-skeleton="entity/${e}" role="status" aria-label="正在读取资料">
<span class="sr-only">正在读取资料</span><div aria-hidden="true" inert><div class="peach-react contents">
@@ -77222,9 +77247,9 @@ function gPe(e, t, n, r = "") {
<div class="entitysection">${o}</div></div></section>`;
}
// src/filter-controls-skeleton.ts
-var e5 = (e) => e.startsWith("ri-") ? `<svg class="size-4 shrink-0" viewBox="0 0 24 24" fill="currentColor" stroke="none" aria-hidden="true"><use href="#${e}"/></svg>` : Cs(e, "size-4 shrink-0"), t5 = "inert aria-disabled=\"true\" tabindex=\"-1\" data-skeleton-control", n5 = (e, t, n) => `<span data-entity-layout="" class="${TG}" role="radiogroup" aria-label="${B(e)}">${n.map(([e, n, r]) => `<span class="${EG}" role="radio" aria-label="${B(n)}" aria-checked="${e === t}" data-glass-segment=""${e === t ? " data-selected=\"\"" : ""} ${t5}>${e5(r)}</span>`).join("")}</span>`;
+var e5 = (e) => e.startsWith("ri-") ? `<svg class="size-4 shrink-0" viewBox="0 0 24 24" fill="currentColor" stroke="none" aria-hidden="true"><use href="#${e}"/></svg>` : Cs(e, "size-4 shrink-0"), t5 = "inert aria-disabled=\"true\" tabindex=\"-1\" data-skeleton-control", n5 = (e, t, n) => `<span data-entity-layout="" class="${OG}" role="radiogroup" aria-label="${B(e)}">${n.map(([e, n, r]) => `<span class="${kG}" role="radio" aria-label="${B(n)}" aria-checked="${e === t}" data-glass-segment=""${e === t ? " data-selected=\"\"" : ""} ${t5}>${e5(r)}</span>`).join("")}</span>`;
function r5(e, t) {
- let n = gG(), r = new URLSearchParams(location.search), i = t && n === "cards" ? n5(t.label, t.value, t.options) : "";
+ let n = yG(), r = new URLSearchParams(location.search), i = t && n === "cards" ? n5(t.label, t.value, t.options) : "";
return `<span data-entity-sorts=""><button type="button" data-entity-batch="" data-filter-action="" aria-label="换一批" ${t5}>${e5("shuffle")}</button>${i}${n5("馆藏显示方式", n, [[
"cards",
"卡片",
@@ -77283,14 +77308,14 @@ function o5() {
return su;
}
function s5(e, t, n = t7()) {
- return lFe(n).map(([n, r]) => {
- let i = e === n, a = aM(n, e, t);
+ return mFe(n).map(([n, r]) => {
+ let i = e === n, a = uM(n, e, t);
return {
key: n,
label: r,
pressed: i,
- dir: i && rM(n, t) ? t === "asc" ? "asc" : "desc" : "",
- ariaLabel: a ? `按${r}${a.dir ? rM(a.sort, a.dir) : ""}排序` : ""
+ dir: i && cM(n, t) ? t === "asc" ? "asc" : "desc" : "",
+ ariaLabel: a ? `按${r}${a.dir ? cM(a.sort, a.dir) : ""}排序` : ""
};
});
}
@@ -77298,7 +77323,7 @@ function c5(e, t, n, r = Y.EMPTY_ENTITY_MEDIA, i = {}) {
return Y.application.route(e, t, n, r, i);
}
function l5() {
- return tPe({
+ return oPe({
entityWall: Y.entityPageWall,
entityCurrent: Y.entityPageCurrent(),
indexVisible: !R("#index").hidden,
@@ -77311,12 +77336,12 @@ function u5() {
Y.photos.sync();
}
function d5() {
- l5() ? mle(VM()) : eN();
+ l5() ? ple(KM()) : aN();
}
-function _Pe(e) {
+function SPe(e) {
Y.photos.setSize(e);
}
-var f5 = QNe({
+var f5 = rPe({
request: (e) => Cn("/api/reveal", {
method: "POST",
body: JSON.stringify({ id: e })
@@ -77328,7 +77353,7 @@ async function p5(e) {
let t = { textContent: "" };
return await f5(e, t), t.textContent;
}
-async function vPe(e) {
+async function CPe(e) {
let t = { textContent: "" }, n = [];
return await m5(e, t, (e) => {
e.items && (n = e.items.map((e) => e.id));
@@ -77367,17 +77392,17 @@ async function m5(e, t, n) {
t.textContent = Y.sourceHint(e.message), S8.actionFailure("核对目录", e);
}
}
-function yPe(e) {
+function wPe(e) {
return `<div class="srctools">${Y.sourceToolButtons(e)}
<span class="srcstate" aria-live="polite"></span></div>`;
}
-function bPe(e, t) {
+function TPe(e, t) {
let n = e.querySelector(".srcstate");
if (!n) return;
let r = e.querySelector("[data-reveal]"), i = e.querySelector("[data-sync]");
- r && J.handler(r, "onclick", () => f5(Number(r.dataset.reveal), n, { button: r })), i && J.handler(i, "onclick", () => m5(Number(i.dataset.sync), n, t));
+ r && x8.handler(r, "onclick", () => f5(Number(r.dataset.reveal), n, { button: r })), i && x8.handler(i, "onclick", () => m5(Number(i.dataset.sync), n, t));
}
-async function xPe(e, t) {
+async function EPe(e, t) {
let n = rl({
title: "添加别名",
description: "图库按名字查找图片,添加别名可能找到更多备选图片;也可以将别名设为统一显示的名称。",
@@ -77389,9 +77414,9 @@ async function xPe(e, t) {
confirmDisabled: !0,
onConfirm: () => t({ alias: r.value.trim() })
}), r = n.dialog.querySelector("[name=alias]");
- J.handler(r, "oninput", () => {
+ x8.handler(r, "oninput", () => {
n.confirmButton.disabled = !r.value.trim();
- }), n.dialog.querySelectorAll("[data-alias-drop]").forEach((e) => J.handler(e, "onclick", async () => {
+ }), n.dialog.querySelectorAll("[data-alias-drop]").forEach((e) => x8.handler(e, "onclick", async () => {
let r = e.dataset.aliasDrop;
n.close();
try {
@@ -77419,12 +77444,12 @@ function h5(e, t) {
let n = ["performer", "studio"].includes(e) && H8.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>${ws()}${e === "agency" ? "" : r5(s5(W.sort, W.dir, n), n ? {
name: "jav-layout",
label: "JAV 卡片版式",
- value: LM(),
- options: MM
- } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${t5}>${z("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${t5}>${z("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="${B(e.k)}" aria-pressed="${W.state === e.k}" ${t5}>${B(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = gPe(e, r, e === "agency" ? nc({
+ value: HM(),
+ options: LM
+ } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${t5}>${z("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${t5}>${z("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="${B(e.k)}" aria-pressed="${W.state === e.k}" ${t5}>${B(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = xPe(e, r, e === "agency" ? nc({
kind: "performers",
layout: j5.peopleIndexLayout()
- }) : TY("正在读取作品", GM(WM({
+ }) : wY("正在读取作品", XM(YM({
active: n,
home: !1,
portrait: !1
@@ -77440,13 +77465,13 @@ function g5(e, t) {
r(n.querySelector(".entityfoot"), e !== "agency" && H8.hasEntityPart(e, t, "costars"), () => n.querySelector(".entityhero")?.insertAdjacentHTML("beforeend", H8.costarSkeletonFoot())), r(n.querySelector(".feednew"), H8.hasEntityPart(e, t, "feed"), () => n.querySelector(".entitysection")?.insertAdjacentHTML("beforebegin", H8.feedNewSkeletonSection())), r(n.querySelector(".entityfacts"), e === "performer" && H8.hasEntityPart(e, t, "facts"), () => n.querySelector(".entityprofile")?.insertAdjacentHTML("beforeend", H8.factsSkeleton()));
}
function _5(e) {
- let t = An[e] || e, n = Q3[t] || "条目", r = Q3[t] ? `<a class="geist-button primary" href="/${t}">返回${n}列表</a>` : "";
+ let t = An[e] || e, n = Z3[t] || "条目", r = Z3[t] ? `<a class="geist-button primary" href="/${t}">返回${n}列表</a>` : "";
R("#index").innerHTML = Z.emptyState("search-x", `找不到这个${n}`, "名字可能拼错了,或者已经合并到别的名字下;回列表里重新找。", { actions: r });
}
function v5(e, t) {
x9(Y.application.fresh(e, t));
}
-function SPe() {
+function DPe() {
Y.ENTITY_FILTER_KEYS = [
"loc",
"creator",
@@ -77469,7 +77494,7 @@ function SPe() {
return e.type === "home" ? W : e.filters;
}, R("#q").value = W.q, X.rememberSearchValue();
}
-function CPe() {
+function OPe() {
Y.entityPageView = "", Y.entityPageWall = !1, Y.entityPageRevision = 0, Y.entityPageCurrent = () => !!i5(), Y.entityPageLive = (e, t) => {
let n = i5();
return !!n && !R("#index").hidden && n.props.kind === e && n.props.name === t;
@@ -77487,9 +77512,9 @@ function CPe() {
feedRowHtml: J8,
receipt: (e, t) => S8.actionReceipt(e, t),
failure: (e, t) => S8.actionFailure(e, t),
- aliasForm: (e, t) => xPe(e, t),
- sourceToolsHtml: (e) => yPe(e),
- wireSourceTools: (e, t) => bPe(e, t),
+ aliasForm: (e, t) => EPe(e, t),
+ sourceToolsHtml: (e) => wPe(e),
+ wireSourceTools: (e, t) => TPe(e, t),
comboItems: (e) => I7(e),
sortKeys: (e, t, n) => s5(e, t, n)
}, Y.entityFollowActions = {
@@ -77514,8 +77539,8 @@ function CPe() {
<button type="button" data-sync="${e}" title="核对该目录:磁盘上已删除的移入 Peach 回收站,带个人记录的标为已消失"
aria-label="同步删除">${z("folder-sync")}</button>`;
}
-function wPe() {
- Y.application = oPe({
+function kPe() {
+ Y.application = dPe({
controller: {
context: () => {
let e = o5();
@@ -77538,12 +77563,12 @@ function wPe() {
preferences: () => ({
revision: Y.entityPageRevision,
feedRevision: H8.feedRevision,
- photoSize: VM(),
- photoLayout: HM(),
- photoLayouts: PM,
+ photoSize: KM(),
+ photoLayout: qM(),
+ photoLayouts: zM,
followImagesOnly: !!Z.appSettings.followImagesOnly,
- javLayout: LM(),
- javLayouts: MM,
+ javLayout: HM(),
+ javLayouts: LM,
states: X.VIEW_PILLS,
peopleLayout: j5.peopleIndexLayout(),
layout: K7(),
@@ -77565,8 +77590,8 @@ function wPe() {
W.seed = e, Iu();
},
setJavLayout: i7,
- javLayout: LM,
- setPhotoLayout: qM,
+ javLayout: HM,
+ setPhotoLayout: QM,
syncPhotoWalls: u5,
openEntity: v5,
photoViewActive: l5,
@@ -77591,15 +77616,15 @@ function wPe() {
},
photos: {
preferences: () => ({
- size: VM(),
- layout: HM(),
+ size: KM(),
+ layout: qM(),
imagesOnly: !!Z.appSettings.followImagesOnly
}),
walls: () => document.querySelectorAll(".followphotowall"),
pushEntity: a5,
pushFollow: E9,
syncDensity: d5,
- storeSize: fle
+ storeSize: dle
},
helpers: Y.entityPageHelpers,
actions: {
@@ -77615,7 +77640,7 @@ function wPe() {
}
// src/application/playlists.js
var y5 = { playlistWrite: void 0 };
-function TPe(e, t) {
+function APe(e, t) {
e === "tag" ? (Fu({ state: {
...W,
tag: t,
@@ -77631,7 +77656,7 @@ function b5(e = "") {
return `<label class="modalfield"><span>名称</span><input class="geist-input" name="name"
maxlength="80" placeholder="输入名称" value="${B(e)}"></label>`;
}
-async function EPe({ title: e, count: t, save: n }) {
+async function jPe({ title: e, count: t, save: n }) {
let r = rl({
title: "保存为播放列表",
description: `这个 Mix 的 ${t} 个视频会存成一份可以继续播放的列表。`,
@@ -77652,7 +77677,7 @@ async function EPe({ title: e, count: t, save: n }) {
}), x9("/playlists");
} }));
}
-async function DPe(e) {
+async function MPe(e) {
let t = ((await Cn("/api/playlists")).items || []).map((e) => `<label class="pickrow">${Us(`data-pick-playlist="${e.id}"`)}
<span class="pickrowtext"><b>${B(e.name)}</b><small>${e.item_count} 个视频</small></span></label>`).join(""), n = rl({
title: "加入播放列表",
@@ -77680,7 +77705,7 @@ async function DPe(e) {
let e = n.dialog.querySelector("[name=\"name\"]").value.trim();
n.confirmButton.disabled = !e && !n.dialog.querySelector("[data-pick-playlist]:checked");
};
- J.listen(n.dialog, "input", r), J.listen(n.dialog, "change", r);
+ x8.listen(n.dialog, "input", r), x8.listen(n.dialog, "change", r);
let { confirmed: i, result: a } = await n.done;
if (!i) return;
let o = +!!a.created + a.added.length;
@@ -77701,7 +77726,7 @@ function x5() {
let e = bp(R("#stats"));
e?.path !== "/playlists" || !e.host.isConnected ? Fu({ pageOpens: Eu + 1 }) : (V5({ manage: !1 }), Fu({ playlistsRevision: Mu + 1 }));
}
-function OPe(e) {
+function NPe(e) {
let t = new URLSearchParams(location.search);
for (let n of ["category", "queue"]) e[n] ? t.set(n, e[n]) : t.delete(n);
Q.route("/review" + (t.size ? "?" + t : ""));
@@ -77709,7 +77734,7 @@ function OPe(e) {
function S5(e) {
Fu({ configurationRequestedSection: e }), Q.navigatePath(Jf(e));
}
-function kPe() {
+function PPe() {
y5.playlistWrite = (e) => Cn("/api/playlist", {
method: "POST",
body: JSON.stringify(e)
@@ -77728,18 +77753,18 @@ function w5(e, t, n, r, i = !1) {
};
}
function T5(e, t, n, r, i, a = !1) {
- let o = n === "follow", s = sX(o ? e.followSelected : e.selected, r, o ? t.followLastSelectedId : t.lastSelectedId, i, a);
+ let o = n === "follow", s = oX(o ? e.followSelected : e.selected, r, o ? t.followLastSelectedId : t.lastSelectedId, i, a);
return {
...w5(e, t, n, !0),
...o ? { followLastSelectedId: s } : { lastSelectedId: s }
};
}
-function APe(e, t, n, r) {
+function FPe(e, t, n, r) {
let i = C5(t);
return {
count: (i === "follow" ? e.followSelected : e.selected).size,
context: i === "catalog" && r === "trash" ? "trash" : i,
- junkDismissed: VU(n).view === "dismissed"
+ junkDismissed: UU(n).view === "dismissed"
};
}
// src/application/selection.js
@@ -77761,7 +77786,7 @@ function D5() {
}), E9({
selected: new Set(uu),
selectMode: du
- }), E5.batchDockProps = BPe(), v8() && (v8().render(E5.batchDockProps), Z.syncGlassOptics());
+ }), E5.batchDockProps = GPe(), _8() && (_8().render(E5.batchDockProps), Z.syncGlassOptics());
}
function O5(e, t = !1) {
Fu(w5({
@@ -77769,25 +77794,25 @@ function O5(e, t = !1) {
followSelected: uu
}, A5(), C5(location.pathname), !!e, t)), document.body.classList.toggle("select-mode", du), du && Kl(), R("#selectMode").setAttribute("aria-pressed", String(du)), D5();
}
-function jPe() {
+function IPe() {
return [...F5.gridCards()].map((e) => +e.dataset.id);
}
function k5(e, t = !1) {
Fu(T5({
selected: lu,
followSelected: uu
- }, A5(), C5(location.pathname), jPe(), e, t)), O5(!0);
+ }, A5(), C5(location.pathname), IPe(), e, t)), O5(!0);
}
-function MPe() {
+function LPe() {
return [...document.querySelectorAll("[data-follow-list] > [data-follow-item]")].map((e) => +e.dataset.followItem);
}
-function NPe(e, t = !1) {
+function RPe(e, t = !1) {
Fu(T5({
selected: lu,
followSelected: uu
- }, A5(), "follow", MPe(), e, t)), O5(!0);
+ }, A5(), "follow", LPe(), e, t)), O5(!0);
}
-async function PPe(e, t) {
+async function zPe(e, t) {
let n = {
like: "喜欢",
seen: "标为看过",
@@ -77856,7 +77881,7 @@ async function PPe(e, t) {
}
});
}
-async function FPe() {
+async function BPe() {
let e = [...lu];
if (!e.length) return;
let t = rl({
@@ -77882,13 +77907,13 @@ async function FPe() {
};
}
});
- t.dialog.querySelectorAll("[data-region-pick]").forEach((e) => J.handler(e, "onclick", () => {
+ t.dialog.querySelectorAll("[data-region-pick]").forEach((e) => x8.handler(e, "onclick", () => {
t.dialog.querySelectorAll("[data-region-pick]").forEach((t) => t.setAttribute("aria-pressed", String(t === e))), t.confirmButton.disabled = !1;
}));
let { confirmed: n, result: r } = await t.done;
n && (O5(!1, !0), await o7(), S8.actionReceipt(r.region === "none" ? `已撤回 ${e.length} 项的产地判定` : `已判为${r.label}:${e.length} 项`));
}
-async function IPe(e, t) {
+async function VPe(e, t) {
let n = [...uu];
if (!n.length) return;
let r = {
@@ -77923,7 +77948,7 @@ async function IPe(e, t) {
}
});
}
-async function LPe(e, t) {
+async function HPe(e, t) {
let n = [...lu];
if (!n.length) return;
let r = {
@@ -77969,8 +77994,8 @@ async function LPe(e, t) {
}
});
}
-function RPe() {
- NNe({
+function UPe() {
+ RNe({
root: R("[data-batch-dock]"),
run: (e, t, n) => {
E5.BATCH_RUNNERS[e]?.(t, n);
@@ -77979,12 +78004,12 @@ function RPe() {
e.render(E5.batchDockProps), Z.syncGlassOptics();
}).catch(() => {});
}
-function zPe() {
+function WPe() {
E5.batchDockProps = {
count: 0,
context: "catalog",
junkDismissed: !1
- }, E5.trashCount = null, E5.currentSelectSurface = () => C5(location.pathname), J.handler(R("#selectMode"), "onclick", () => O5(!du, !!du)), E5.REGION_CHOICES = [
+ }, E5.trashCount = null, E5.currentSelectSurface = () => C5(location.pathname), x8.handler(R("#selectMode"), "onclick", () => O5(!du, !!du)), E5.REGION_CHOICES = [
["jp", "日本"],
["kr", "韩国"],
["cn", "国产"],
@@ -77992,21 +78017,21 @@ function zPe() {
["other", "其他"],
["none", "撤回判定"]
], E5.BATCH_RUNNERS = {
- batch: PPe,
- region: FPe,
- follow: IPe,
- junk: LPe,
+ batch: zPe,
+ region: BPe,
+ follow: VPe,
+ junk: HPe,
clear: () => O5(!1, !0)
- }, J.handler(R("#density"), "onclick", () => {
- l5() ? _Pe(VM() === "big" ? "small" : "big") : ple();
- }), eN(), Wl({
+ }, x8.handler(R("#density"), "onclick", () => {
+ l5() ? SPe(KM() === "big" ? "small" : "big") : fle();
+ }), aN(), Wl({
selecting: () => du,
censored: () => $7(),
delaySeconds: () => Z.appSettings.hoverDelaySeconds
- }), J.listen(window, "pagehide", () => Kl()), J.listen(document, "visibilitychange", () => {
+ }), x8.listen(window, "pagehide", () => Kl()), x8.listen(document, "visibilitychange", () => {
document.hidden && Kl();
- }), Vl(), E5.coverRecheck = 0, J.listen(window, "resize", () => {
- Rl(R("#index")), clearTimeout(E5.coverRecheck), E5.coverRecheck = J.delay(() => R("#index").querySelectorAll("img.cover").forEach((e) => {
+ }), Vl(), E5.coverRecheck = 0, x8.listen(window, "resize", () => {
+ Rl(R("#index")), clearTimeout(E5.coverRecheck), E5.coverRecheck = x8.delay(() => R("#index").querySelectorAll("img.cover").forEach((e) => {
e.complete && kl(e);
}), 200);
}, { passive: !0 });
@@ -78019,8 +78044,8 @@ function A5() {
followLastSelectedId: pu
};
}
-function BPe() {
- return APe({
+function GPe() {
+ return FPe({
selected: lu,
followSelected: uu
}, location.pathname, location.search, W.state);
@@ -78030,22 +78055,22 @@ var j5 = {
peopleIndexLayout: void 0,
personAvatar: void 0
};
-function VPe() {
+function KPe() {
return Z.appSettings.followLayout === "table" ? "table" : "default";
}
-function HPe() {
- return vQ(location.search);
+function qPe() {
+ return _Q(location.search);
}
-function UPe(e) {
- return yQ(e);
+function JPe(e) {
+ return vQ(e);
}
-function WPe(e) {
- Q.route(UPe(e));
+function YPe(e) {
+ Q.route(JPe(e));
}
-function GPe(e = "") {
- return bQ(location.search, e);
+function XPe(e = "") {
+ return yQ(location.search, e);
}
-function KPe(e) {
+function ZPe(e) {
return I8(e);
}
function M5(e) {
@@ -78054,7 +78079,7 @@ function M5(e) {
function N5() {
R("#stats").hidden = !0, R("#index").hidden = !1, B7(), X.hideCatalogCombo(), R("#count").textContent = "", R("#loadSentinel").hidden = !0;
}
-function qPe(e, t) {
+function QPe(e, t) {
Fu({ state: {
...W,
state: "",
@@ -78065,16 +78090,16 @@ function qPe(e, t) {
function P5(e) {
j5.controller.openFollowAuthor(e);
}
-function JPe(e) {
+function $Pe(e) {
j5.controller.openFollowTag(e);
}
-function YPe() {
- $.FOLLOW_MANAGE_TABS = _Q, J.listen(document, "click", (e) => {
+function eFe() {
+ $.FOLLOW_MANAGE_TABS = gQ, x8.listen(document, "click", (e) => {
e.target.closest?.("[data-empty-settings]") && S5("媒体库与入库");
- }), j5.peopleIndexLayout = () => $3(Z.appSettings.peopleLayout), j5.personAvatar = F8;
+ }), j5.peopleIndexLayout = () => Q3(Z.appSettings.peopleLayout), j5.personAvatar = F8;
}
-function XPe() {
- j5.controller = ZNe({
+function tFe() {
+ j5.controller = nPe({
route: Q.route,
followView: C9,
adoptFollowView: w9,
@@ -78100,12 +78125,12 @@ function I5(e = "正在读取作品") {
return;
}
let t = R("#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 = D_e(VU(location.search)), lc(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", W && 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 = k_e(UU(location.search)), lc(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", W && T7({
count: null,
...O7()
})), R("#loadSentinel").hidden = !0, U7()) return;
let r = R("#grid"), i = q7(e), a = r.querySelector(".catalog-skeleton");
- (a?.dataset.skeleton !== D2(i) || Number(a.querySelector("[style]")?.style.getPropertyValue("--skeleton-card-ratio")) !== J7()) && (a ? r.innerHTML = `<div class="grid">${i}</div>` : F5.setGridCards(i), lc(R("#grid")));
+ (a?.dataset.skeleton !== E2(i) || Number(a.querySelector("[style]")?.style.getPropertyValue("--skeleton-card-ratio")) !== J7()) && (a ? r.innerHTML = `<div class="grid">${i}</div>` : F5.setGridCards(i), lc(R("#grid")));
}
function L5() {
R("#catalogFilter").style.display = "none", w7();
@@ -78114,24 +78139,24 @@ function R5() {
let e = new Promise((e) => {
let t = F5.ENTITY_SHAPES_WAIT, n = performance.now(), r = () => {
let i = performance.now();
- t -= Math.min(i - n, 50), n = i, t > 0 ? J.delay(r, Math.min(t, 50)) : e();
+ t -= Math.min(i - n, 50), n = i, t > 0 ? x8.delay(r, Math.min(t, 50)) : e();
};
- J.delay(r, 50);
+ x8.delay(r, 50);
});
return Promise.race([F5.entityShapesReady ||= W8(), e]);
}
-function ZPe() {
+function nFe() {
let e = decodeURIComponent(location.pathname);
if (document.body.dataset.surface = location.pathname, e === "/wall") document.body.setAttribute("data-wall-open", ""), L5();
else if (/^\/assets\/\d+$/.test(e)) L5();
else if (e === "/settings" || /^\/settings\/(appearance|playback|jav|search|content)$/.test(e) || e.startsWith("/posts/") || e.startsWith("/works/")) L5();
else if (e === "/junk-files") I5("正在读取垃圾文件");
- else if (e === "/jav" && pW(new URLSearchParams(location.search).get("tab")) === "library") I5("正在读取馆藏");
+ else if (e === "/jav" && hW(new URLSearchParams(location.search).get("tab")) === "library") I5("正在读取馆藏");
else if (Q.managedPagePath(e)) {
L5();
let t = R("#stats");
t.hidden = !1, B7(), t.innerHTML = e.startsWith("/follow") && e !== "/subscriptions" ? $.followSkeletonHtml("正在读取关注内容") : F5.managementPlaceholder(e), lc(t);
- } else if (/^\/(performers|creators|studios|agencies|tags)$/.test(e)) L5(), N5(), n6(R("#index"), e6(e.slice(1), location.search), j5.peopleIndexLayout());
+ } else if (/^\/(performers|creators|studios|agencies|tags)$/.test(e)) L5(), N5(), t6(R("#index"), $3(e.slice(1), location.search), j5.peopleIndexLayout());
else if (/^\/(?:performers|creators|studios|agencies|series|tags)\//.test(e)) {
L5(), R("#index").hidden = !1, B7();
let t = jn[e.split("/")[1]], n = e.split("/").slice(2).join("/");
@@ -78140,12 +78165,12 @@ function ZPe() {
});
} else Q.routeMeta(e) ? I5() : (B7(), R("#count").textContent = "", R("#loadSentinel").hidden = !0);
}
-function QPe() {
- $.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => T2(t, {
+function rFe() {
+ $.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => w2(t, {
cards: !0,
className: "follow-content-skeleton postercard-skeleton",
gridClass: e === "images" ? "followlist followphotowall" : "",
- gridSize: VM()
+ gridSize: KM()
}), $.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>
@@ -78155,13 +78180,13 @@ function QPe() {
<div class="count followcount" data-filter-row="bottom"><span class="mono"><span class="countskeleton"></span></span></div></div>
${$.followContentSkeletonHtml(void 0, e)}</div></div>`, R("#loadSentinel").innerHTML = Bs(zs), F5.setGridCards = (e) => ec(R("#grid"), () => {
R("#grid").innerHTML = `<div class="grid">${e}</div>`;
- }), F5.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) :is([data-media-grid] > [data-media-card][data-id],[data-catalog-row][data-id])"), F5.managementPlaceholder = (e) => E2(e, {
- followLayout: VPe(),
+ }), F5.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) :is([data-media-grid] > [data-media-card][data-id],[data-catalog-row][data-id])"), F5.managementPlaceholder = (e) => T2(e, {
+ followLayout: KPe(),
...(({ sort: e, dir: t, tab: n }) => ({
followSort: e,
followDir: t,
followTab: n
- }))(HPe())
+ }))(qPe())
}), F5.wantsDiscoveryBars = () => R("#catalogFilter").style.display !== "none", F5.entityShapesReady = null, F5.ENTITY_SHAPES_WAIT = 400, F5.syncPageTitle = (e) => {
let t = new URL(e, location.origin), n = dp(decodeURIComponent(t.pathname))?.title;
document.title = n ? `${n} · Peach` : "Peach · 蜜桃", document.body.dataset.surface = t.pathname, h9();
@@ -78175,7 +78200,7 @@ var z5 = (e) => e.replace(/[&<>"']/g, (e) => ({
"\"": "&quot;",
"'": "&#39;"
})[e]);
-function $Pe(e, t, n) {
+function iFe(e, t, n) {
let r = new Map(t.map((e) => [e[0], e]));
return `<div data-sidebar-head=""></div><div data-sidebar-nav="">${e.map((e) => r.get(e)).filter((e) => e !== void 0).map(([e, t, r]) => {
let i = e === "" ? "<img data-sidebar-home-logo=\"\" src=\"/peach-logo-64.png\" srcset=\"/peach-logo-64.png 64w, /peach-logo-128.png 128w\" sizes=\"24px\" width=\"24\" height=\"24\" alt=\"\" decoding=\"async\">" : `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${z5(r)}"/></svg>`;
@@ -78183,7 +78208,7 @@ function $Pe(e, t, n) {
}).join("")}</div>`;
}
// src/application/filter-scroll.js
-function eFe(e, t, n, r = !1) {
+function aFe(e, t, n, r = !1) {
if (t = Math.max(0, t), !e || !n || r || t <= 8) return {
y: t,
origin: t,
@@ -78224,7 +78249,7 @@ var B5 = {
mobileFilterPath: void 0
};
function V5({ manage: e = !0, placeholder: t = "" } = {}) {
- R("#stats").hidden = !1, R("#index").hidden = !0, B7(), R("#count").textContent = "", R("#loadSentinel").hidden = !0, e ? Z5() : (Q5(""), _9()), t && O2(R("#stats"), t);
+ R("#stats").hidden = !1, R("#index").hidden = !0, B7(), R("#count").textContent = "", R("#loadSentinel").hidden = !0, e ? Z5() : (Q5(""), _9()), t && D2(R("#stats"), t);
}
function H5() {
R("#javLibraryHeader").hidden = !0, X.hideCatalogCombo(), L5(), document.body.classList.remove("entity-open", "index-open");
@@ -78232,7 +78257,7 @@ function H5() {
function U5() {
R("#javLibraryHeader").hidden = !kn(location.pathname) || !t7(), document.body.classList.remove("entity-open", "index-open"), Op(R("#index")), R("#stats").hidden = !0, R("#index").hidden = !0, X8(location.pathname) || (R("#feedNew").hidden = !0), R("#catalogFilter").style.display = "", w7(), Z5(), $5();
}
-function tFe() {
+function oFe() {
Q.route("/"), U5();
}
function W5({ tags: e = [], providers: t = [], duration: n = !1 }) {
@@ -78260,7 +78285,7 @@ function W5({ tags: e = [], providers: t = [], duration: n = !1 }) {
});
}
function G5(e) {
- aIe({
+ uIe({
...C9(),
...e
}), g9({ filters: $.followSidebarFilters() });
@@ -78275,7 +78300,7 @@ function q5(e) {
function J5() {
K5() && q5(!1);
}
-function nFe() {
+function sFe() {
wu === null && (Fu({ runtimeConfigurable: !1 }), Cn("/healthz").then((e) => {
Fu({ runtimeConfigurable: !!e.configurable }), wu && X5() && Z5();
}).catch(() => {}));
@@ -78293,12 +78318,12 @@ function Y5(e = "", t = !1) {
replace: !0,
state: zp.navigation.location.state
});
- return e ||= qf(location.pathname), ANe(B5.settingsHost()).then((t) => (t.open(e), t));
+ return e ||= qf(location.pathname), FNe(B5.settingsHost()).then((t) => (t.open(e), t));
}
-function rFe() {
+function cFe() {
Kf(location.pathname) && (Yf(zp.navigation.location.state) ? zp.go(-1) : Q.navigatePath("/", !0));
}
-function iFe() {
+function lFe() {
return {
scroll: R("#drawerScroll"),
store: Z.settingsStore,
@@ -78306,7 +78331,7 @@ function iFe() {
navOn: c7,
navTo: l7,
navToTop: () => {
- J5(), gm();
+ J5(), xm();
},
toggleChip: (e, t, n) => C7((r) => {
if (n) {
@@ -78333,31 +78358,31 @@ function iFe() {
}
};
}
-function aFe() {
+function uFe() {
let e = R("#drawerScroll"), t = [...e.querySelector("[data-sidebar-head]")?.children || []];
- e.innerHTML = $Pe(Z.appSettings.sidebarOrder, B5.NAV_CATALOG, c7), e.querySelector("[data-sidebar-head]").append(...t), J.listen(e, "click", (e) => {
- if (f8()) return;
+ e.innerHTML = iFe(Z.appSettings.sidebarOrder, B5.NAV_CATALOG, c7), e.querySelector("[data-sidebar-head]").append(...t), x8.listen(e, "click", (e) => {
+ if (d8()) return;
let t = e.target.closest?.("[data-nav]");
t && l7(t.dataset.nav);
- }), jNe(iFe()).then((e) => e.render(B5.sidebarProps)).catch(() => {});
+ }), INe(lFe()).then((e) => e.render(B5.sidebarProps)).catch(() => {});
}
-async function oFe() {
- let e = J, t = null;
+async function dFe() {
+ let e = x8, t = null;
try {
t = await Cn("/api/settings", { signal: e.signal });
} catch {
return;
}
- e.isActive && DM(t, (e) => Z.settingsEffects[e]?.());
+ e.isActive && MM(t, (e) => Z.settingsEffects[e]?.());
}
function X5() {
return Q.routeMeta(decodeURIComponent(location.pathname))?.route.section || (W.state === "ads" ? "cleanup" : "");
}
function Z5() {
let e = X5();
- nFe(), e && L5(), R("#count").classList.toggle("no-tagbar", !!e), _9(), e !== "trash" && (E5.trashCount = null), Q5(e);
+ sFe(), e && L5(), R("#count").classList.toggle("no-tagbar", !!e), _9(), e !== "trash" && (E5.trashCount = null), Q5(e);
}
-function sFe(e) {
+function fFe(e) {
return {
section: e,
path: decodeURIComponent(location.pathname),
@@ -78368,26 +78393,26 @@ function sFe(e) {
}
function Q5(e = X5()) {
$5();
- let t = sFe(e), n = h8();
+ let t = fFe(e), n = m8();
if (n) n.render(t);
else {
- let e = mde(t);
+ let e = pde(t);
e !== B5.manageHeaderSkeleton && (B5.manageHeaderSkeleton = e, B5.manageHeaderRoot().innerHTML = e);
}
- let r = uI(t)?.title || "";
+ let r = hI(t)?.title || "";
r !== B5.lastManagePageLabel && (B5.lastManagePageLabel = r, r && Zs(B5.manageHeaderRoot(), "[data-manage-title],[data-manage-lede]"));
}
-function cFe() {
+function pFe() {
let e = B5.manageHeaderRoot();
- J.listen(e, "click", (e) => {
- if (h8()) return;
+ x8.listen(e, "click", (e) => {
+ if (m8()) return;
let t = e.target.closest?.("[data-manage]");
if (t) e7(t.dataset.manage);
else if (e.target.closest?.("[data-manage-crumb] a[href]")) {
if (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button) return;
e.preventDefault(), Q.navigatePath("/data-cleanup");
} else e.target.closest?.("[data-empty-trash]") && P7();
- }), MNe({
+ }), LNe({
root: e,
openManage: e7,
openDataCleanup: () => Q.navigatePath("/data-cleanup"),
@@ -78402,35 +78427,35 @@ function $5() {
}
function e7(e = "stats") {
let t = Q.routePathOf("section", e);
- t ? Q.openRoutePath(t) : (W.orient = "", W.state = "ads", Iu(), Q.route(HU()), U5(), _9(), N7());
+ t ? Q.openRoutePath(t) : (W.orient = "", W.state = "ads", Iu(), Q.route(WU()), U5(), _9(), N7());
}
function t7() {
let e = decodeURIComponent(location.pathname);
return e === "/" ? W.jav === "1" : e.startsWith("/performers/") || e.startsWith("/studios/") ? W.jav === "1" || Ou : !1;
}
-function lFe(e = t7()) {
- let t = Qj.filter(([e]) => e !== "seed");
- return e ? [$j, ...t] : t;
+function mFe(e = t7()) {
+ let t = rM.filter(([e]) => e !== "seed");
+ return e ? [iM, ...t] : t;
}
function n7() {
return decodeURIComponent(location.pathname) === "/" && W.jav !== "1";
}
function r7() {
- return RM(n7());
+ return UM(n7());
}
-function uFe(e) {
- ule(e), a7(), R("#grid").hidden || Y7();
+function hFe(e) {
+ lle(e), a7(), R("#grid").hidden || Y7();
}
function i7(e) {
- KM(e), a7(), Y7();
+ ZM(e), a7(), Y7();
}
function a7() {
document.querySelectorAll("[data-video-layout]").forEach((e) => {
e.checked = e.value === r7();
}), X.catalogFilterProps && T7({ layout: D7() });
}
-function dFe(e) {
- dle(e), a7(), Y7();
+function gFe(e) {
+ ule(e), a7(), Y7();
}
async function o7() {
O8(), X.mixRelatedCache.clear(), await Promise.all([s7(), N7()]);
@@ -78458,7 +78483,7 @@ function c7(e) {
return e === "jav" ? t === "/jav" || t7() : e === "shorts" ? W.orient === "竖屏" : e === "" ? t === "/" && !X5() && !W.state && !t7() && W.orient !== "竖屏" : En[e] ? n === e && W.orient !== "竖屏" : n ? n === e : t === "/" && W.state === e && W.orient !== "竖屏";
}
function l7(e) {
- let t = um(e);
+ let t = hm(e);
if (t === location.pathname + location.search + location.hash) return;
if (J5(), t) {
Q.navigatePath(t);
@@ -78489,11 +78514,11 @@ function u7() {
let n = t.length > 1 && Object.prototype.hasOwnProperty.call(jn, t[0]), r = kn(e) || e === "/trash", i = r || n || e === "/tags" || e === "/follow", a = r || n || e === "/follow";
R("#selectMode").hidden = !i, R("#density").hidden = !a, u5(), !i && du && O5(!1, !0);
}
-function fFe() {
+function _Fe() {
let e = [...document.querySelectorAll("[data-filter-frame]")], t = e.find((e) => e.offsetParent !== null);
(t !== B5.mobileFilterHost || location.pathname !== B5.mobileFilterPath) && (B5.mobileFilterScroll = null), B5.mobileFilterHost = t, B5.mobileFilterPath = location.pathname;
let n = Math.max(0, Math.min(scrollY, document.documentElement.scrollHeight - innerHeight)), r = !!t?.querySelector(":focus-visible,input:focus,select:focus,textarea:focus,[aria-expanded=\"true\"]");
- B5.mobileFilterScroll = eFe(B5.mobileFilterScroll, n, innerWidth <= 760, r);
+ B5.mobileFilterScroll = aFe(B5.mobileFilterScroll, n, innerWidth <= 760, r);
for (let n of e) {
let e = n === t && B5.mobileFilterScroll.free;
if (e && n.style.setProperty("--filter-free-top", `${-n.offsetHeight - 12}px`), e === n.hasAttribute("data-filter-free")) continue;
@@ -78507,52 +78532,52 @@ function fFe() {
});
}
}
-function pFe() {
- fFe(), [".board-filter-frame", "#count"].forEach((e) => {
+function vFe() {
+ _Fe(), [".board-filter-frame", "#count"].forEach((e) => {
let t = R(e), n = t && getComputedStyle(t), r = n ? parseFloat(n.top) : NaN, i = !!t && n.position === "sticky" && t.offsetParent !== null && window.scrollY > 0 && Number.isFinite(r) && t.getBoundingClientRect().top - (parseFloat(n.translate.split(" ")[1]) || 0) <= r + 1;
t && t.classList.toggle("is-stuck", i), t?.matches(".board-filter-frame") && t.classList.toggle("board-is-stuck", i);
});
}
function d7() {
- B5.stickyFrame ||= J.frame(() => {
- B5.stickyFrame = 0, pFe();
+ B5.stickyFrame ||= x8.frame(() => {
+ B5.stickyFrame = 0, vFe();
});
}
-function mFe() {
+function yFe() {
$.followSidebarFilters = () => ({
provider: [...$.followProviders][0] || "",
dur_min: $.followDurMin || "",
dur_max: $.followDurMax || ""
- }), J.handler(R("#filterBtn"), "onclick", () => q5(!R("#drawer").classList.contains("open"))), B5.SIDEBAR_ITEMS = k8, B5.MANAGE_SECTIONS = A8, B5.MANAGE_MENU_SECTIONS = j8, B5.manageMenuSections = () => JNe(wu === !0), B5.OPTIONAL_SIDEBAR_ITEMS = M8, B5.NAV_CATALOG = YNe, B5.DIRECT_MANAGE_NAV = XNe, B5.settingsHost = () => ({
+ }), x8.handler(R("#filterBtn"), "onclick", () => q5(!R("#drawer").classList.contains("open"))), B5.SIDEBAR_ITEMS = k8, B5.MANAGE_SECTIONS = A8, B5.MANAGE_MENU_SECTIONS = j8, B5.manageMenuSections = () => $Ne(wu === !0), B5.OPTIONAL_SIDEBAR_ITEMS = M8, B5.NAV_CATALOG = ePe, B5.DIRECT_MANAGE_NAV = tPe, B5.settingsHost = () => ({
selectSection: (e) => Bp(Jf(e), {
replace: !0,
state: zp.navigation.location.state
}),
- closed: rFe,
+ closed: cFe,
store: Z.settingsStore,
changed: (e) => Z.settingsEffects[e]?.(),
sound: (e) => Xo(e),
navCatalog: B5.NAV_CATALOG,
- themeOptions: ale,
- videoLayouts: MM,
+ themeOptions: ile,
+ videoLayouts: LM,
followInitialRanges: N8,
videoLayout: () => r7(),
- setVideoLayout: dFe,
+ setVideoLayout: gFe,
censored: $7,
- setCensored: IFe,
+ setCensored: VFe,
highContrast: () => document.documentElement.classList.contains("board-high-contrast"),
- setHighContrast: LFe,
+ setHighContrast: HFe,
receipt: (e) => S8.actionReceipt(e),
failure: S8.actionFailure,
- syncRemote: (e) => DM(e, (e) => Z.settingsEffects[e]?.()),
+ syncRemote: (e) => MM(e, (e) => Z.settingsEffects[e]?.()),
openConfiguration: () => Q.navigatePath("/settings/library"),
attached: () => Z.syncGlassOptics(),
configurable: () => Cn("/healthz").then((e) => (Fu({ runtimeConfigurable: !!e.configurable }), wu)).catch(() => null)
- }), J.handler(R("#settingsBtn"), "onclick", () => void Y5()), B5.lastManagePageLabel = "", B5.manageHeaderSkeleton = "", B5.manageHeaderRoot = () => R("[data-manage-header]"), window.__scrolling = !1, B5.scrollT = null, B5.stickyFrame = 0, B5.mobileFilterScroll = null, B5.mobileFilterHost = null, B5.mobileFilterPath = "", J.listen(document, "focusin", d7), J.listen(document, "focusout", d7), J.listen(window, "scroll", () => {
- d7(), location.pathname === "/follow" && T9() && Fu({ followScrollY: scrollY }), window.__scrolling = !0, Kl(), clearTimeout(B5.scrollT), B5.scrollT = J.delay(() => {
+ }), x8.handler(R("#settingsBtn"), "onclick", () => void Y5()), B5.lastManagePageLabel = "", B5.manageHeaderSkeleton = "", B5.manageHeaderRoot = () => R("[data-manage-header]"), window.__scrolling = !1, B5.scrollT = null, B5.stickyFrame = 0, B5.mobileFilterScroll = null, B5.mobileFilterHost = null, B5.mobileFilterPath = "", x8.listen(document, "focusin", d7), x8.listen(document, "focusout", d7), x8.listen(window, "scroll", () => {
+ d7(), location.pathname === "/follow" && T9() && Fu({ followScrollY: scrollY }), window.__scrolling = !0, Kl(), clearTimeout(B5.scrollT), B5.scrollT = x8.delay(() => {
window.__scrolling = !1;
}, 180);
- }, { passive: !0 }), J.listen(window, "resize", d7, { passive: !0 }), J.handler(R("#scrim"), "onclick", () => q5(!1));
+ }, { passive: !0 }), x8.listen(window, "resize", d7, { passive: !0 }), x8.handler(R("#scrim"), "onclick", () => q5(!1));
}
// src/catalog-filter-skeleton.ts
var f7 = 64, p7 = (e) => e.replace(/[&<>"]/g, (e) => ({
@@ -78561,8 +78586,8 @@ var f7 = 64, p7 = (e) => e.replace(/[&<>"]/g, (e) => ({
">": "&gt;",
"\"": "&quot;"
})[e]), m7 = (e) => e.repeat(f7);
-function hFe(e, t, n) {
- let r = e.map((e) => `<a href="${p7(e.href)}" data-catalog-view="${p7(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${p7(e.label)}</a>`).join(""), i = fK();
+function bFe(e, t, n) {
+ let r = e.map((e) => `<a href="${p7(e.href)}" data-catalog-view="${p7(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${p7(e.label)}</a>`).join(""), i = dK();
return `<div class="peach-react"><div class="contents" data-catalog-root="" data-loading=""><div data-catalog-tiers="" aria-busy="true"${i.performers || i.studios ? "" : " hidden"}>` + (i.performers ? "<div data-catalog-tier=\"performers\" data-skeleton=\"tiers\">" + m7("<span data-catalog-placeholder=\"performer\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + "</div>" : "") + (i.studios ? "<div data-catalog-tier=\"studios\">" + m7("<span data-catalog-placeholder=\"studio\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + "</div>" : "") + `</div><div role="group" aria-label="筛选与排序" data-filter-glass="" data-glass-pane="" data-filter-frame="" data-catalog-frame="" class="sticky top-topbar z-10 mb-5.5 flex flex-col mx-4"><div role="group" aria-label="视图与标签" 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 role="group" aria-label="视图" data-catalog-views="">${r}<span data-entity-sep="" aria-hidden="true"></span></div><div data-catalog-tags=""><span data-catalog-placeholder="tag" aria-hidden="true">` + "<span></span>".repeat(f7) + `</span></div></div></div><div data-filter-row="bottom" aria-busy="true" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><span data-catalog-summary=""><span data-catalog-readout=""><span data-skeleton="count" aria-hidden="true" class="relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"></span></span>${ws()}</span>` + (n ? r5(n.sorts, n.layout) : "") + "</div></div></div></div>";
}
// src/application/catalog.js
@@ -78602,22 +78627,22 @@ var X = {
junkQueueHelpers: void 0,
junkQueueActions: void 0
};
-function gFe() {
+function xFe() {
X.initialParams.has("loc") || (W.loc = h7(W.loc), Iu());
}
function h7(e) {
- return zNe(e, Z.sourceOnline);
+ return WNe(e, Z.sourceOnline);
}
function g7(e = W) {
- return BNe(e);
+ return GNe(e);
}
-function _Fe() {
- Fu(w8(VNe(W, Z.appSettings, S8.rollSeed)));
+function SFe() {
+ Fu(w8(KNe(W, Z.appSettings, S8.rollSeed)));
}
function _7(e = null) {
- _Fe(), e && (Object.assign(W, e), Iu()), Q.route(e ? g7() : "/"), X.clearSearchField(), a9(!1), _9(), N7();
+ SFe(), e && (Object.assign(W, e), Iu()), Q.route(e ? g7() : "/"), X.clearSearchField(), a9(!1), _9(), N7();
}
-function vFe(e, t = null) {
+function CFe(e, t = null) {
let n = e.id;
!e.medium || e.medium === "video" ? l9(n, !0, null, t) : e.medium === "image" && e.location !== "online" ? window.open("/photo?id=" + n, "_blank", "noopener") : k5(n);
}
@@ -78626,13 +78651,13 @@ function v7(e) {
throw X.mixRelatedCache.delete(e), t;
})), X.mixRelatedCache.get(e);
}
-function yFe(e, t) {
- r8()?.miniplayerTakesCard(e) ? r8().miniplayerPlay(e.id) : y7(e, t);
+function wFe(e, t) {
+ n8()?.miniplayerTakesCard(e) ? n8().miniplayerPlay(e.id) : y7(e, t);
}
function y7(e, t) {
- e.edition_group ? WFe(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? GFe(e.part_group.seed_id, e.id, !0, t) : l9(e.id, !0, null, t);
+ e.edition_group ? YFe(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? XFe(e.part_group.seed_id, e.id, !0, t) : l9(e.id, !0, null, t);
}
-async function bFe(e, t) {
+async function TFe(e, t) {
try {
let n = await Cn("/api/watch-later", {
method: "POST",
@@ -78649,7 +78674,7 @@ async function bFe(e, t) {
S8.actionFailure("更新稍后看", e);
}
}
-async function xFe(e, t) {
+async function EFe(e, t) {
try {
await Cn("/api/batch", {
method: "POST",
@@ -78673,8 +78698,8 @@ async function xFe(e, t) {
throw S8.actionFailure("操作", e), e;
}
}
-async function SFe(e, t, n, r) {
- let i = Number(e.rating) || 0, a = HP(i, t), o = async (t, r) => {
+async function DFe(e, t, n, r) {
+ let i = Number(e.rating) || 0, a = qP(i, t), o = async (t, r) => {
let i = (await Cn("/api/feedback", {
method: "POST",
body: JSON.stringify({
@@ -78688,7 +78713,7 @@ async function SFe(e, t, n, r) {
};
try {
let e = await o(a, r);
- S8.actionReceipt(e ? `已评 ${VP(e)} 星` : "已取消评分", { undo: () => o(i) });
+ S8.actionReceipt(e ? `已评 ${KP(e)} 星` : "已取消评分", { undo: () => o(i) });
} catch (e) {
throw r?.aborted || S8.actionFailure("评分", e), e;
}
@@ -78717,7 +78742,7 @@ async function b7(e) {
e[n] && t.set(n, e[n]);
});
}
- return KNe(t.toString(), X.topsQueryParams(e).toString());
+ return ZNe(t.toString(), X.topsQueryParams(e).toString());
}
function x7(e) {
o5().type !== "entity" && T7({ tags: k7(e) }), g9({ filters: { ...e } }), L7();
@@ -78743,7 +78768,7 @@ function C7(e) {
} }), Q.route(g7()), U5(), N7();
} else e(W), Iu(), Q.route(g7()), x7(W), S7(su);
}
-function CFe() {
+function OFe() {
return {
tiers: null,
tiersPending: !1,
@@ -78779,9 +78804,9 @@ function T7(e) {
...e,
offscreen: n
}, X.catalogFilterProps = {
- ...X.catalogFilterProps || CFe(),
+ ...X.catalogFilterProps || OFe(),
...e
- }, !X.catalogFilterMounting && (xp(t) ? Dp(t, e) : (!t.firstChild && !n && (t.innerHTML = hFe(X.catalogViews(), X.catalogFilterProps.state, O7()), lc(t)), X.catalogFilterMounting = Tp("catalog-filter", X.catalogFilterProps, {
+ }, !X.catalogFilterMounting && (xp(t) ? Dp(t, e) : (!t.firstChild && !n && (t.innerHTML = bFe(X.catalogViews(), X.catalogFilterProps.state, O7()), lc(t)), X.catalogFilterMounting = Tp("catalog-filter", X.catalogFilterProps, {
container: t,
isCurrent: () => !0
}).then(() => Dp(t, X.catalogFilterProps)).finally(() => {
@@ -78806,17 +78831,17 @@ function E7() {
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
- let t = aM(e, W.sort, W.dir);
+ let t = uM(e, W.sort, W.dir);
t && (W.sort = t.sort, W.dir = t.dir, Iu(), Z7());
},
- reshuffle: () => FFe(),
+ reshuffle: () => BFe(),
setLayout: (e) => {
- t7() ? i7(e) : uFe(e);
+ t7() ? i7(e) : hFe(e);
},
moreTops: async (e) => {
let t = X.catalogTopsPages;
if (!t) return [];
- let n = (await qNe(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];
+ let n = (await QNe(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];
return e === "performers" ? n.map(A7) : n.map(j7);
}
};
@@ -78825,13 +78850,13 @@ function D7() {
return t7() ? {
name: "jav-layout",
label: "JAV 卡片版式",
- value: LM(),
- options: MM
+ value: HM(),
+ options: LM
} : n7() ? {
name: "home-layout",
label: "首页卡片版式",
value: r7(),
- options: MM
+ options: LM
} : null;
}
function O7() {
@@ -78869,7 +78894,7 @@ function j7(e) {
logo: e.has_logo ? uo(e.k, "icon", e.logo_version) : ""
};
}
-function wFe(e, t) {
+function kFe(e, t) {
X.barsPendingSeq = t, X.catalogFilterProps?.tiers ? T7({
tiersPending: !0,
state: e.state || ""
@@ -78892,7 +78917,7 @@ async function N7() {
W.seed || "",
t7()
]);
- wFe(n, e);
+ kFe(n, e);
let i;
try {
i = await b7(t);
@@ -78948,7 +78973,7 @@ async function N7() {
latest: null
});
}
-function TFe(e, t) {
+function AFe(e, t) {
n9.total = e, W.state === "trash" && (E5.trashCount = {
total: n9.total,
shown: t
@@ -79017,12 +79042,12 @@ async function R7() {
filters: W
},
detailReturnBarsContext: null
- }), a9(!1), W.state === "ads") return OFe(e);
+ }), a9(!1), W.state === "ads") return NFe(e);
X.controller.page === "/junk-files" && B7(), I5(), U5();
let t = V7(e);
if (X8(location.pathname) && W.browse !== "folders") {
if (await F5.entityShapesReady, !Q.surfaceCurrent(e)) return;
- fPe();
+ _Pe();
} else Z8();
return L7(), R("#count").classList.remove("manage-static", "junkcount"), t;
}
@@ -79034,10 +79059,10 @@ function B7() {
Kl(e), Op(e), X.controller.clear(), e.innerHTML = "";
}
function V7(e) {
- return G7("/", DFe, e, { place: sIe });
+ return G7("/", MFe, e, { place: fIe });
}
-function EFe(e) {
- return G7("/junk-files", AFe, e);
+function jFe(e) {
+ return G7("/junk-files", FFe, e);
}
function H7() {
return !!bp(R("#grid"));
@@ -79065,17 +79090,17 @@ function G7(e, t, n, r = {}) {
}
function K7() {
let e = n7();
- return WM({
+ return YM({
active: t7() || e,
home: e,
portrait: W.orient === "竖屏"
});
}
function q7(e = "正在读取作品") {
- return TY(e, J7());
+ return wY(e, J7());
}
function J7() {
- return W ? GM(K7()) : 16 / 9;
+ return W ? XM(K7()) : 16 / 9;
}
function Y7() {
U7() && (Kl(R("#grid")), W7({
@@ -79086,7 +79111,7 @@ function Y7() {
seekSeconds: Z.appSettings.seekSeconds
}));
}
-function DFe() {
+function MFe() {
let e = decodeURIComponent(location.pathname), t = kn(e), n = W.state === "trash";
return {
mode: "catalog",
@@ -79094,7 +79119,7 @@ function DFe() {
actions: X.gridActions,
layout: K7(),
wall: e === "/wall",
- restoreNavigation: hm(),
+ restoreNavigation: bm(),
selectMode: du,
selected: new Set(lu),
seekSeconds: Z.appSettings.seekSeconds,
@@ -79109,9 +79134,9 @@ function DFe() {
mix: t && e !== "/wall" && !n && W.browse !== "folders",
shorts: t && e !== "/wall" && !t7() && W.orient !== "竖屏" && !n && W.browse !== "folders",
countRow: R("#count"),
- onCount: TFe,
+ onCount: AFe,
onCountFailed: () => T7({ count: !1 }),
- emptyHtml: ({ trash: e, libraryEmpty: t }) => e ? Z.emptyState("trash", "回收站是空的", "删掉的内容会先到这里;确认不再需要后再清空。") : _q({
+ emptyHtml: ({ trash: e, libraryEmpty: t }) => e ? Z.emptyState("trash", "回收站是空的", "删掉的内容会先到这里;确认不再需要后再清空。") : gq({
jav: t7() && !t,
configurable: wu,
filtered: !t
@@ -79119,11 +79144,11 @@ function DFe() {
canLoadMore: () => R("#stats").hidden && R("#index").hidden
};
}
-function OFe(e) {
+function NFe(e) {
let t = R("#count");
- return X.controller.page === "/junk-files" && H7() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (B7(), I5("正在读取垃圾文件")), U5(), L7(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), EFe(e);
+ return X.controller.page === "/junk-files" && H7() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (B7(), I5("正在读取垃圾文件")), U5(), L7(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), jFe(e);
}
-async function kFe(e, t) {
+async function PFe(e, t) {
let n = [e.id], r = t === "dispose", i = t === "reconsider-junk";
try {
await Cn("/api/batch", {
@@ -79148,9 +79173,9 @@ async function kFe(e, t) {
throw S8.actionFailure("操作", e), e;
}
}
-function AFe() {
+function FFe() {
return {
- ...VU(location.search),
+ ...UU(location.search),
helpers: X.junkQueueHelpers,
actions: X.junkQueueActions,
batchSize: Z.appSettings.batchSize,
@@ -79159,15 +79184,15 @@ function AFe() {
selected: new Set(lu),
countRow: R("#count"),
settled: z7,
- skeletonHtml: () => T2("正在读取垃圾文件", {
+ skeletonHtml: () => w2("正在读取垃圾文件", {
cards: !0,
className: "catalog-skeleton postercard-skeleton"
}),
canLoadMore: () => R("#stats").hidden && R("#index").hidden
};
}
-function jFe() {
- X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => C8(e, t, Z.appSettings, n), Fu(w8(RNe(location, Z.appSettings, S8.rollSeed))), X.searchValueSnapshot = {
+function IFe() {
+ X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => C8(e, t, Z.appSettings, n), Fu(w8(UNe(location, Z.appSettings, S8.rollSeed))), X.searchValueSnapshot = {
text: "",
scrollLeft: 0
}, X.cancelSearchDissolve = () => {}, X.rememberSearchValue = (e = R("#q")) => {
@@ -79188,33 +79213,33 @@ function jFe() {
};
};
}
-function MFe() {
- J.handler(R("#wallBtn"), "onclick", () => {
+function LFe() {
+ x8.handler(R("#wallBtn"), "onclick", () => {
O5(!1, !0);
let e = o5(), t = {
...Y.activeFilterState(),
jav: t7() ? "1" : ""
};
- e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(nye(void 0, t));
+ e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(sye(void 0, t));
}), X.mixRelatedCache = /* @__PURE__ */ new Map(), X.reduceMotion = () => matchMedia("(prefers-reduced-motion:reduce)").matches, X.tagList = (e = W.tag) => String(e || "").split(",").filter(Boolean), X.tagPressed = (e, t) => X.tagList(e).includes(String(t)), X.withTagToggled = (e, t) => {
let n = X.tagList(e), r = n.indexOf(t);
return r >= 0 ? n.splice(r, 1) : n.push(t), n.join(",");
}, X.gridHelpers = {
badgeHtml: (e, t) => Z.srcBadge(e, t),
- titleHtml: (e, t) => VL(e, t),
- displayName: (e, t) => BL(e, t),
+ titleHtml: (e, t) => UL(e, t),
+ displayName: (e, t) => HL(e, t),
tagLabel: (e) => Xl(e)
}, X.gridActions = {
wallPlayer: async (e, t, n) => {
- let r = await n8(n9.stageHost);
+ let r = await t8(n9.stageHost);
return n.throwIfAborted(), r.mountWallPlayer(e, t, n);
},
wallDetails: y7,
- open: (e, t) => yFe(e, t),
- openResource: (e, t) => r8()?.miniplayerTakesCard(e) ? r8().miniplayerPlay(e.id) : vFe(e, t),
- openShort: (e) => r8()?.miniplayerTakesCard(e) ? r8().miniplayerPlay(e.id) : f9(e.id),
+ open: (e, t) => wFe(e, t),
+ openResource: (e, t) => n8()?.miniplayerTakesCard(e) ? n8().miniplayerPlay(e.id) : CFe(e, t),
+ openShort: (e) => n8()?.miniplayerTakesCard(e) ? n8().miniplayerPlay(e.id) : f9(e.id),
openShorts: () => f9(),
- openMix: (e, t) => UFe(e, e, !0, t),
+ openMix: (e, t) => JFe(e, e, !0, t),
openEntity: (e, t) => v5(e, t),
openUnowned: () => _7({ owner: "none" }),
toggleTag: (e) => {
@@ -79223,9 +79248,9 @@ function MFe() {
});
},
toggleSelection: (e, t) => k5(e, t),
- watchLater: (e, t) => bFe(e, t),
- rate: (e, t, n, r) => SFe(e, t, n, r),
- resourceOperation: (e, t) => xFe(e, t),
+ watchLater: (e, t) => TFe(e, t),
+ rate: (e, t, n, r) => DFe(e, t, n, r),
+ resourceOperation: (e, t) => EFe(e, t),
mixRelated: (e) => v7(e),
canFlip: () => !du && !$7() && !window.__scrolling && !X.reduceMotion()
}, X.topsQueryParams = (e, t = 0) => {
@@ -79254,7 +79279,7 @@ function MFe() {
], X.catalogViews = () => X.VIEW_PILLS.map((e) => ({
...e,
href: e.k ? En[e.k] : "/"
- })), X.TAGS_FIRST = 26, J.listen(R("#catalogFilter"), "click", (e) => {
+ })), X.TAGS_FIRST = 26, x8.listen(R("#catalogFilter"), "click", (e) => {
let t = e.target.closest?.("[data-catalog-view]");
t && !e.defaultPrevented && (e.preventDefault(), E7().setView(t.dataset.catalogView));
}), X.catalogOnScreen = () => R("#index").hidden && R("#stats").hidden, X.COMBO_LABELS = {
@@ -79265,7 +79290,7 @@ function MFe() {
X.catalogFilterProps && T7({ comboHidden: !0 });
};
}
-function NFe() {
+function RFe() {
X.junkQueueHelpers = { badgeHtml: (e, t) => Z.srcBadge(e, t) }, X.junkQueueActions = {
navigate: (e) => {
du && O5(!1, !0), Q.route(e);
@@ -79282,10 +79307,10 @@ function NFe() {
return Y.sourceHint(e.message);
}
},
- operate: (e, t) => kFe(e, t)
+ operate: (e, t) => PFe(e, t)
};
}
-X.controller = new HNe();
+X.controller = new qNe();
// src/application/preferences.js
var Z = {
sourceOnline: void 0,
@@ -79309,7 +79334,7 @@ var Z = {
CENSOR_KEY: void 0
};
async function X7() {
- let e = J;
+ let e = x8;
try {
let t = await br(e.signal);
if (!e.isActive) return Z.sourceOnline;
@@ -79319,7 +79344,7 @@ async function X7() {
if (!e.isActive) return Z.sourceOnline;
Z.sourceOnline = {}, Z.sourceProblems = {};
}
- return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), gFe(), Z.sourceOnline;
+ return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), xFe(), Z.sourceOnline;
}
function Z7() {
let e = Q.surfacePath();
@@ -79330,7 +79355,7 @@ function Z7() {
state: zp.navigation.location.state
}), t;
}
-function PFe(e) {
+function zFe(e) {
if (e === "local") return {
kind: "glyph",
name: "hard-drive"
@@ -79362,7 +79387,7 @@ function Q7(e, t) {
value: e.k,
label: er[e.k] || e.k,
n: e.n ?? null,
- dot: PFe(e.k),
+ dot: zFe(e.k),
...Z.sourceOffline(e.k) ? { offline: Z.OFFLINE_HINT } : {}
})),
regions: n(e.regions),
@@ -79375,7 +79400,7 @@ function Q7(e, t) {
duration: !!e.stats?.duration
};
}
-async function FFe(e = !1) {
+async function BFe(e = !1) {
if (e && (document.hidden || !kn(decodeURIComponent(location.pathname)) || n9.stageOpen() || n9.immerseOpen() || du || lu.size || document.activeElement === R("#q"))) return !1;
if (!R("#stats").hidden) {
let e = decodeURIComponent(location.pathname), t = Q.routeMeta(e)?.route.refresh;
@@ -79385,11 +79410,11 @@ async function FFe(e = !1) {
return;
}
let n = t === "reopen" ? e : "/stats";
- dm(), n === e ? Q.navigatePath(location.pathname + location.search + location.hash, !0, zp.navigation.location.state) : Q.navigatePath(n);
+ gm(), n === e ? Q.navigatePath(location.pathname + location.search + location.hash, !0, zp.navigation.location.state) : Q.navigatePath(n);
} else if (R("#index").hidden) {
W.sort = "seed", W.dir = "", W.seed = S8.rollSeed(), Iu(), O8(), T7({ refreshing: !0 });
try {
- dm();
+ gm();
let e = Z7();
await null, await Promise.all([e, N7()]);
} finally {
@@ -79407,47 +79432,47 @@ function $7() {
function e9(e) {
document.body.classList.toggle("censor", e), Z.settingsStore.notify();
}
-function IFe(e) {
+function VFe(e) {
localStorage.setItem(Z.CENSOR_KEY, e ? "1" : "0"), e9(e), e && Kl();
}
-function LFe(e) {
+function HFe(e) {
localStorage.setItem("peach.high-contrast", String(e)), document.documentElement.classList.toggle("board-high-contrast", e), Z.settingsStore.notify();
}
function t9(e) {
return Ec(e, { drag: !0 });
}
-function RFe() {
+function UFe() {
["#nrow", "#count"].forEach((e) => t9(R(e))), document.querySelectorAll(".tier,.srow").forEach(t9);
}
-function zFe() {
+function WFe() {
let e = new URLSearchParams(location.search).get("id");
return /^\d+$/.test(e || "") ? Number(e) : void 0;
}
-function BFe() {
+function GFe() {
Z.sourceOnline = {}, Z.sourceProblems = {}, Z.sourceOffline = (e) => Z.sourceOnline[e] === !1, Z.OFFLINE_HINT = "媒体目录无法访问,请检查目录、读取权限和网盘挂载状态", Z.OFFLINE_REASON = {
local: "无法读取媒体目录,请检查目录是否存在及读取权限。",
115: "无法读取 115 媒体目录,请检查目录权限及网盘挂载工具是否正常运行。",
pikpak: "无法读取 PikPak 媒体目录,请检查目录权限及网盘挂载工具是否正常运行。"
- }, Z.offlineReason = (e) => Z.sourceProblems[e] || Z.OFFLINE_REASON[e] || "无法读取这个来源的媒体目录,请检查目录权限及挂载状态。", Z.settingsStore = EM(), Z.appSettings = Z.settingsStore.value, Yt(Z.appSettings.performerNameLanguage), Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), Yo(Z.appSettings.uiSounds), ts(), AM(), cle(), tN(), iN(), aN(), 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 = jM(), Z.appSettings = Z.settingsStore.value, Yt(Z.appSettings.performerNameLanguage), Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), Yo(Z.appSettings.uiSounds), ts(), FM(), sle(), oN(), lN(), uN(), 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: () => {
Yt(Z.appSettings.performerNameLanguage), F5.syncPageTitle(location.href), X.barsRendered = "", N7();
},
- theme: () => AM(),
+ theme: () => FM(),
uiSounds: () => {
Yo(Z.appSettings.uiSounds), Z.appSettings.uiSounds && Xo("toggle-on");
},
- glowFrame: () => rN(),
+ glowFrame: () => cN(),
glow: () => {
- rN(), iN();
+ cN(), lN();
},
batchSize: () => {
location.pathname === "/" && R7();
},
defaultSort: () => {
- W.sort = Z.appSettings.defaultSort, W.dir = oM(W.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Iu(), location.pathname === "/" && Z7();
+ W.sort = Z.appSettings.defaultSort, W.dir = dM(W.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Iu(), location.pathname === "/" && Z7();
},
sortDirection: () => {
- W.dir = oM(W.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Iu(), location.pathname === "/" && Z7();
+ W.dir = dM(W.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Iu(), location.pathname === "/" && Z7();
},
hoverDelay: () => {
Z.appSettings.hoverDelaySeconds || document.querySelectorAll("[data-previewing],[data-longhover]").forEach((e) => {
@@ -79456,14 +79481,14 @@ function BFe() {
},
seekSeconds: () => Y7(),
groupCollapse: () => s7(),
- feedAutoScroll: () => pPe(),
+ feedAutoScroll: () => vPe(),
feedLimit: () => Q8(),
feedCompilations: () => Q8(),
miniplayer: () => {
- Z.appSettings.miniplayer || r8()?.closeMiniplayer();
+ Z.appSettings.miniplayer || n8()?.closeMiniplayer();
},
javImage: () => {
- ro(document, Z.appSettings.javImage), Y7(), document.querySelectorAll("img[data-jav-image].cover").forEach(Tl), HFe();
+ ro(document, Z.appSettings.javImage), Y7(), document.querySelectorAll("img[data-jav-image].cover").forEach(Tl), qFe();
},
searchHistoryLimit: () => Dp(R("#searchMenu"), { historyLimit: Z.appSettings.searchHistoryLimit })
}, Z.syncGlassOptics = () => {}, Z.placeSidebarHead = () => {}, Z.SRCICON = {
@@ -79474,7 +79499,7 @@ function BFe() {
return `<span class="${n || "src"} ${t === "metered" ? "metered" : "free"}" title="${B(r)}" aria-label="${B(r)}">` + (Z.SRCICON[e] || "") + "</span>";
}, Z.emptyState = Hs;
}
-function VFe() {
+function KFe() {
Z.CENSOR_KEY = "peach-censor", e9(localStorage.getItem(Z.CENSOR_KEY) === "1");
}
// src/application/media.js
@@ -79497,10 +79522,10 @@ function r9() {
} : null;
}
function i9() {
- return r8()?.exit() || Promise.resolve();
+ return n8()?.exit() || Promise.resolve();
}
function a9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null } = {}) {
- Q.queueOpenRequest !== r && v9(), r8()?.dispose({ miniplayer: n }), Fu({
+ Q.queueOpenRequest !== r && v9(), n8()?.dispose({ miniplayer: n }), Fu({
activeQueue: null,
pendingQueueRoute: null,
presentedItem: null
@@ -79510,8 +79535,8 @@ function a9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null
detailReturnNeedsRestore: !1
}), d7(), e && Q.route(hu || "/");
}
-function HFe() {
- r8()?.repaintPoster();
+function qFe() {
+ n8()?.repaintPoster();
}
function o9(e, t, n, r, i = null, a = {}) {
t = +t;
@@ -79535,13 +79560,13 @@ function o9(e, t, n, r, i = null, a = {}) {
Q.requestedQueue = () => l9(n == null ? null : +n, !1, s, i, !0, e), Fu({ queueOpens: Du + 1 });
} else return l9(n == null ? null : +n, !1, s, i, r);
}
-function UFe(e, t = e, n = !0, r = null) {
+function JFe(e, t = e, n = !0, r = null) {
return o9("mix", e, t, n, r);
}
-function WFe(e, t = e, n = !0, r = null) {
+function YFe(e, t = e, n = !0, r = null) {
return o9("editions", e, t, n, r);
}
-function GFe(e, t = e, n = !0, r = null) {
+function XFe(e, t = e, n = !0, r = null) {
return o9("parts", e, t, n, r);
}
function s9(e, t = null, n = !0) {
@@ -79558,7 +79583,7 @@ async function l9(e, t = !0, n = null, r = null, i = !1, a = null) {
}
Kl(), e = e == null ? null : +e;
let o = r?.isConnected ? r : gu?.isConnected ? gu : null, s = r?.isConnected ? r.getBoundingClientRect().top + r.getBoundingClientRect().height / 2 > window.innerHeight / 2 : _u, c = c9(), l = vu || !t && !c, u = su.type === "item" ? cu : Y.cloneBarsContext(o5());
- t ? Fu({ detailReturnPath: location.pathname + location.search }) : i || Fu({ detailReturnPath: sp() || hu }), t && ip(), r8()?.showing() !== "item" && a9(!1, !0, {
+ t ? Fu({ detailReturnPath: location.pathname + location.search }) : i || Fu({ detailReturnPath: sp() || hu }), t && ip(), n8()?.showing() !== "item" && a9(!1, !0, {
miniplayer: !1,
preserveQueueRequest: a
}), Fu({
@@ -79570,7 +79595,7 @@ async function l9(e, t = !0, n = null, r = null, i = !1, a = null) {
seedId: n.seedId,
playlistId: n.playlistId
} }), Fu({ pendingQueueRoute: n && i ? `${n.kind}=${n.kind === "playlist" ? n.playlistId : n.seedId}` : null }), t && !n && Q.route("/assets/" + e, !1, cp("item"));
- let d = await n8(n9.stageHost);
+ let d = await t8(n9.stageHost);
if (a?.cancelled) return;
let f = a ? {
...n9.itemDetailActions,
@@ -79612,12 +79637,12 @@ async function d9(e, t = !0) {
return;
}
let n = zp.navigation.seq, r = Y.cloneBarsContext(o5()), i = !c9(), a = sp() || (i ? "/jav?tab=discover" : hu) || "/jav?tab=discover";
- r8()?.showing() !== "jav" && a9(!1, !0, { miniplayer: !1 }), Fu({
+ n8()?.showing() !== "jav" && a9(!1, !0, { miniplayer: !1 }), Fu({
detailReturnPath: a,
detailReturnBarsContext: r,
detailReturnNeedsRestore: i
}), Kl();
- let [o, s] = await Promise.all([n8(n9.stageHost), V("/healthz")]);
+ let [o, s] = await Promise.all([t8(n9.stageHost), V("/healthz")]);
zp.navigation.seq === n && (await o.open({
kind: "jav",
code: e,
@@ -79639,9 +79664,9 @@ async function d9(e, t = !0) {
}), d7());
}
async function f9(e = null, t = !0) {
- t ? (n9.requestedImmerseId = e, Q.route("/immerse")) : (r8()?.closeMiniplayer(), await (await kNe(n9.immerseHost)).open(e));
+ t ? (n9.requestedImmerseId = e, Q.route("/immerse")) : (n8()?.closeMiniplayer(), await (await PNe(n9.immerseHost)).open(e));
}
-function KFe() {
+function ZFe() {
n9.total = 0, n9.facets = null, n9.stageHost = {
player: {
settings: () => Z.appSettings,
@@ -79655,20 +79680,20 @@ function KFe() {
e === "follow" ? O9(t, !0, n) : l9(t, !0);
},
openItem: (e) => void l9(e)
- }, n9.stageOpen = () => !!r8()?.isOpen();
+ }, n9.stageOpen = () => !!n8()?.isOpen();
}
-function qFe() {
+function QFe() {
n9.itemDetailHelpers = {
badgeHtml: (e, t, n) => Z.srcBadge(e, t, n),
- titleHtml: (e) => VL(e),
- displayName: (e) => BL(e),
+ titleHtml: (e) => UL(e),
+ displayName: (e) => HL(e),
javImage: () => Z.appSettings.javImage,
tagLabel: (e) => Xl(e),
isDurationTag: (e) => rr.has(e),
tagCandidates: () => n9.facets && n9.facets.tags || [],
sourceOffline: (e) => Z.sourceOffline(e),
offlineReason: (e) => Z.offlineReason(e),
- relatedSkeletonHtml: () => T2("正在读取推荐", {
+ relatedSkeletonHtml: () => w2("正在读取推荐", {
cards: !0,
className: "related-skeleton"
}),
@@ -79710,12 +79735,12 @@ function qFe() {
openTag: (e) => C7((t) => {
t.tag = e;
}),
- addToPlaylist: (e) => DPe(e),
- saveMix: (e) => EPe(e),
+ addToPlaylist: (e) => MPe(e),
+ saveMix: (e) => jPe(e),
editPlaylist: () => x9("/playlists"),
openPlaylists: () => x9("/playlists"),
reveal: (e) => p5(e),
- sync: (e) => vPe(e),
+ sync: (e) => CPe(e),
trashChanged: async (e, t) => {
W.state === "ads" && (t || e === "trash") && (t || (ap(), a9(!0, !1, { miniplayer: !1 })), await R7());
},
@@ -79725,7 +79750,7 @@ function qFe() {
filters: () => W,
seekSeconds: () => Z.appSettings.seekSeconds,
sourceOffline: (e) => Z.sourceOffline(e),
- displayName: (e) => BL(e),
+ displayName: (e) => HL(e),
route: (e) => Q.route("/immerse?id=" + e, !0),
closed: () => _7(),
openItem: (e) => void l9(e),
@@ -79734,7 +79759,7 @@ function qFe() {
toast: (e, { undo: t } = {}) => S8.actionReceipt(e, { undo: t }),
warn: (e) => S8.toast({ text: e }, { sound: "warning" }),
failure: (e, t) => S8.actionFailure(e, t)
- }, n9.immerseOpen = () => !!o8()?.isOpen(), J.handler(R("#immerseBtn"), "onclick", () => f9());
+ }, n9.immerseOpen = () => !!a8()?.isOpen(), x8.handler(R("#immerseBtn"), "onclick", () => f9());
}
// src/application/tutorial.js
var p9 = {
@@ -79746,7 +79771,7 @@ var p9 = {
readPostSetupTutorialDone: void 0,
openTutorialTarget: void 0
};
-async function JFe() {
+async function $Fe() {
xl(), await p9.writePostSetupTutorialDone(!1), await m9();
}
async function m9() {
@@ -79778,10 +79803,10 @@ async function m9() {
}
e.innerHTML = p9.postSetupTutorialHtml(o, a.size, r.length), e.dataset.tutorialSignature = c, e.removeAttribute("aria-busy");
let l = s[0], u = e.querySelector("[data-tutorial-collapse]"), d = e.querySelector(".post-setup-collapse-body");
- d.inert = pl(), d.classList.toggle("ui-fcollapse-settled", !d.inert), J.handler(u, "onclick", () => {
+ d.inert = pl(), d.classList.toggle("ui-fcollapse-settled", !d.inert), x8.handler(u, "onclick", () => {
let t = e.querySelector(".post-setup-notification"), n = t.dataset.collapsed !== "true";
t.dataset.collapsed = String(n), ml(n), u.setAttribute("aria-expanded", String(!n)), u.setAttribute("aria-label", n ? "展开安装教程" : "折叠安装教程"), zo(d, !n);
- }), e.querySelectorAll("[data-tutorial-skip]").forEach((e) => J.handler(e, "onclick", () => {
+ }), e.querySelectorAll("[data-tutorial-skip]").forEach((e) => x8.handler(e, "onclick", () => {
let t = hl(), n = e.dataset.tutorialSkip;
t.add(n), gl(t), S8.actionReceipt(`已跳过「${e.dataset.tutorialLabel}」`, { undo: async () => {
let e = hl();
@@ -79789,18 +79814,18 @@ async function m9() {
} }), m9();
}));
let f = new Map(o.map((e) => [e.key, e]));
- e.querySelectorAll("[data-tutorial-task]").forEach((e) => J.handler(e, "onclick", (t) => {
+ e.querySelectorAll("[data-tutorial-task]").forEach((e) => x8.handler(e, "onclick", (t) => {
let n = f.get(e.dataset.tutorialTask);
!n || t.metaKey || t.ctrlKey || t.shiftKey || t.button || (t.preventDefault(), p9.openTutorialTarget(n));
- })), J.handler(e.querySelector("[data-tutorial-action]"), "onclick", () => p9.openTutorialTarget(l));
+ })), x8.handler(e.querySelector("[data-tutorial-action]"), "onclick", () => p9.openTutorialTarget(l));
} catch {
if (!bl(n)) return;
- e.innerHTML = Sl(z("alert")), e.removeAttribute("aria-busy"), J.handler(e.querySelector("[data-tutorial-retry]"), "onclick", () => {
+ e.innerHTML = Sl(z("alert")), e.removeAttribute("aria-busy"), x8.handler(e.querySelector("[data-tutorial-retry]"), "onclick", () => {
delete e.dataset.tutorialSignature, e.innerHTML = "", m9();
- }), J.handler(e.querySelector("[data-tutorial-dismiss]"), "onclick", t);
+ }), x8.handler(e.querySelector("[data-tutorial-dismiss]"), "onclick", t);
}
}
-function YFe() {
+function eIe() {
if (Fu({ cameFromSetup: new URLSearchParams(location.search).get("onboarding") === "1" }), p9.postSetupTutorialDone = null, p9.postSetupTutorialNeedsReopen = !1, Tu) {
fl("pending"), p9.postSetupTutorialDone = !1, p9.postSetupTutorialNeedsReopen = !0;
let e = new URL(location.href);
@@ -79927,7 +79952,7 @@ var Q = {
initialOverlayOpened: void 0
};
function h9() {
- let e = f8();
+ let e = d8();
e ? e.navChanged() : R("#drawerScroll")?.querySelectorAll("[data-nav]").forEach((e) => e.setAttribute("aria-pressed", String(c7(e.dataset.nav))));
}
function g9(e = {}) {
@@ -79939,7 +79964,7 @@ function g9(e = {}) {
}), B5.sidebarProps = {
...B5.sidebarProps,
...e
- }, f8()?.render(B5.sidebarProps);
+ }, d8()?.render(B5.sidebarProps);
}
function _9() {
g9(), h9(), u7();
@@ -79959,7 +79984,7 @@ function b9() {
function x9(e) {
Q.route(e), Fu({ pageOpens: Eu + 1 });
}
-function XFe() {
+function tIe() {
Q.routeMeta = (e) => {
let t = dp(e);
return t ? { route: t } : null;
@@ -79967,7 +79992,7 @@ function XFe() {
let t = dp(e);
return !!t && t.reload !== "reopen" && !Q.catalogPage(e) && !ep(e) && e !== "/immerse";
}, Q.openRoutePath = (e) => {
- e === "/immerse" ? f9(zFe()) : e === "/follow" ? D9() : e === "/playlists" || Q.catalogPage(e) ? x9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? GPe() : e) : (O5(!1, !0), x9(M5({
+ e === "/immerse" ? f9(WFe()) : e === "/follow" ? D9() : e === "/playlists" || Q.catalogPage(e) ? x9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? XPe() : e) : (O5(!1, !0), x9(M5({
kind: e.slice(1),
q: "",
scope: "local",
@@ -79976,7 +80001,7 @@ function XFe() {
})));
};
}
-function ZFe() {
+function nIe() {
Q.surfaceEpoch = 0, Q.surfacePath = () => decodeURIComponent(location.pathname), Q.surfaceRequests = null, Q.surfaceToken = (e) => ({
epoch: Q.surfaceEpoch,
path: e,
@@ -79995,15 +80020,15 @@ function ZFe() {
}, Q.requestedOverlay = null, Q.requestedQueue = null, Q.queueOpenRequest = null, Q.initialOverlayOpened = !1;
}
// src/jobs.ts
-function QFe(e, t, n) {
+function rIe(e, t, n) {
if (!Number.isFinite(n) || n <= 0) return "";
let r = Math.max(0, Math.min(n, Number.isFinite(t) ? t : 0)), i = r / n * 100;
return `<div class="ui-board-job-progress" role="progressbar" aria-label="${B(e)}" aria-valuemin="0" aria-valuemax="${n}" aria-valuenow="${r}"><svg width="36" height="36" viewBox="0 0 36 36" aria-hidden="true"><circle class="ui-board-job-track" cx="18" cy="18" r="15"/><circle class="ui-board-job-fill" cx="18" cy="18" r="15" pathLength="100" stroke-dasharray="${i} ${100 - i}" transform="rotate(-90 18 18)"/></svg><span>${B(e)}<small>${Math.round(i)}%</small></span></div>`;
}
-function $Fe(e, t = 0, n = 0) {
- return n > 0 ? QFe(e, t, n) : Bs(e);
+function iIe(e, t = 0, n = 0) {
+ return n > 0 ? rIe(e, t, n) : Bs(e);
}
-async function eIe(e) {
+async function aIe(e) {
let t = e.pause || ((e) => new Promise((t) => setTimeout(t, e))), n = 0;
for (; e.active();) {
let r;
@@ -80018,14 +80043,14 @@ async function eIe(e) {
await t(2e3);
}
}
-function tIe(e) {
+function oIe(e) {
let t = e.note || ((e) => Ls(e, {
label: "任务状态",
variant: "error"
- })), n = e.loading || Bs, r = e.progress || ((e, t, n) => $Fe(n || `已处理 ${e} / ${t}`, e, t)), i = e.container || ((e) => `<section class="followtask" data-geist-fieldset aria-label="任务进度"><div class="geist-fieldset-content">${e}</div></section>`), a = document.createElement("div");
+ })), n = e.loading || Bs, r = e.progress || ((e, t, n) => iIe(n || `已处理 ${e} / ${t}`, e, t)), i = e.container || ((e) => `<section class="followtask" data-geist-fieldset aria-label="任务进度"><div class="geist-fieldset-content">${e}</div></section>`), a = document.createElement("div");
e.host.hidden = !0, a.dataset.followJob = "", a.setAttribute("aria-live", "polite"), e.host.prepend(a);
let o = e.storageKey || "peach-follow-job", s = sessionStorage.getItem(o) || void 0, c = !1;
- eIe({
+ aIe({
read: e.read,
active: () => !c && e.active() && a.isConnected,
keepWatching: e.watchIdle !== !1,
@@ -80074,7 +80099,7 @@ var $ = {
FOLLOW_MANAGE_TABS: void 0,
followSidebarFilters: void 0
};
-function nIe(e) {
+function sIe(e) {
let t = (e.results || []).filter((e) => !e.ok).length;
S8.toast({ text: Bi(e) }, {
warn: !!t,
@@ -80089,7 +80114,7 @@ function nIe(e) {
function S9() {
return Da(C9());
}
-function rIe() {
+function cIe() {
return $.controller.read();
}
function C9() {
@@ -80110,17 +80135,17 @@ function C9() {
function w9(e) {
$.followFilter = e.status, $.followMediaView = e.media, $.followAuthors = new Set(e.author ? [e.author] : []), $.followProviders = new Set(e.provider ? [e.provider] : []), $.followWorks = new Set(e.work ? [e.work] : []), $.followTags = new Set(e.tags), $.followDurMin = e.durMin || 0, $.followDurMax = e.durMax || 0, $.followSort = e.sort, $.followDir = e.dir, $.followSeed = e.seed;
}
-function iIe() {
+function lIe() {
let e = bp(R("#stats"));
return e && e.path === "/follow" && e.host.isConnected ? e : null;
}
function T9() {
- return !!iIe();
+ return !!lIe();
}
function E9(e) {
T9() && Dp(R("#stats"), e);
}
-function aIe(e, t = {}) {
+function uIe(e, t = {}) {
return $.controller.route(e, t);
}
function D9(e = !1) {
@@ -80133,7 +80158,7 @@ async function O9(e, t = !0, n = null, r = !1) {
}
Kl(), e = +e;
let i = !location.pathname.startsWith("/posts/");
- t && i && !r && Fu({ followDetailReturnPath: location.pathname + location.search }), !t && !r && Fu({ followDetailReturnPath: sp() || "/follow" }), t && ip(), r8()?.showing() !== "follow" && a9(!1, !1, { miniplayer: !1 }), t && Q.route(`/posts/${e}`, !1, cp("follow")), await (await n8(n9.stageHost)).open({
+ t && i && !r && Fu({ followDetailReturnPath: location.pathname + location.search }), !t && !r && Fu({ followDetailReturnPath: sp() || "/follow" }), t && ip(), n8()?.showing() !== "follow" && a9(!1, !1, { miniplayer: !1 }), t && Q.route(`/posts/${e}`, !1, cp("follow")), await (await t8(n9.stageHost)).open({
kind: "follow",
id: e,
mediaIndex: n,
@@ -80144,16 +80169,16 @@ async function O9(e, t = !0, n = null, r = !1) {
resume: t ? null : r9()
}), d7();
}
-async function oIe() {
- await i9(), a9(!1, !1, { miniplayer: !1 }), ap(), Q.route(Su || "/follow"), !(Y.entityPageView && Y.entityPageCurrent() && !R("#index").hidden) && (location.pathname === "/follow" && T9() ? (rIe(), E9({ view: C9() })) : Fu({ pageOpens: Eu + 1 }));
+async function dIe() {
+ await i9(), a9(!1, !1, { miniplayer: !1 }), ap(), Q.route(Su || "/follow"), !(Y.entityPageView && Y.entityPageCurrent() && !R("#index").hidden) && (location.pathname === "/follow" && T9() ? (cIe(), E9({ view: C9() })) : Fu({ pageOpens: Eu + 1 }));
}
-function sIe(e) {
+function fIe(e) {
let t = document.createElement("div");
return t.className = "peach-react", ec(e, () => {
e.textContent = "", e.append(t);
}), t;
}
-function cIe() {
+function pIe() {
$.followFeedHelpers = Ql({
wireDrag: (e) => {
e && t9(e);
@@ -80162,32 +80187,32 @@ function cIe() {
e && Ec(e);
},
listSkeletonHtml: (e) => $.followContentSkeletonHtml(e),
- jobProgress: tIe
+ jobProgress: oIe
}), $.followFeedActions = {
loaded: (e) => W5(e),
openDetail: (e) => O9(e),
openAuthor: (e) => Q.navigatePath(Mn("creator", e)),
- toggleSelection: (e, t) => NPe(e, t),
+ toggleSelection: (e, t) => RPe(e, t),
setImagesOnly: (e) => {
Z.appSettings.followImagesOnly = !!e, Z.saveSettings(), u5();
},
setPhotoLayout: (e) => {
- qM(e), u5();
+ QM(e), u5();
},
canFlip: () => !du && !$7() && !window.__scrolling && !X.reduceMotion(),
toast: (e, { undo: t } = {}) => S8.actionReceipt(e, { undo: t }),
failure: (e, t) => S8.actionFailure(e, t),
- checkReport: (e) => nIe(e)
+ checkReport: (e) => sIe(e)
}, $.followFeedShell = {
skeleton: () => $.followSkeletonHtml("正在读取关注内容"),
ground: () => {
- r8()?.showing() !== "follow" && (Kl(), a9(!1), H5(), !T9() && (Q.claimSurface(Q.surfacePath()), V5({ manage: !1 }), R("#stats").querySelector(".peach-react") && Op(R("#stats")), R("#stats").replaceChildren()));
+ n8()?.showing() !== "follow" && (Kl(), a9(!1), H5(), !T9() && (Q.claimSurface(Q.surfacePath()), V5({ manage: !1 }), R("#stats").querySelector(".peach-react") && Op(R("#stats")), R("#stats").replaceChildren()));
}
}, $.followDetailActions = ou({
view: C9,
adoptView: w9,
rememberReturn: (e) => Fu({ followDetailReturnPath: e }),
- close: () => void oIe(),
+ close: () => void dIe(),
open: (e, t, n) => void O9(e, !0, t, n),
drawer: W5,
openAuthor: (e) => Q.navigatePath(Mn("creator", e))
@@ -80196,7 +80221,7 @@ function cIe() {
failure: S8.actionFailure
});
}
-function lIe() {
+function mIe() {
$.controller = Aa({
location: () => location,
view: C9,
@@ -80214,14 +80239,14 @@ function lIe() {
preferences: () => ({
selectMode: du,
selected: uu,
- photoSize: VM(),
- photoLayout: HM(),
+ photoSize: KM(),
+ photoLayout: qM(),
imagesOnly: !!Z.appSettings.followImagesOnly
}),
live: T9,
push: E9,
route: (e) => {
- Q.route(e), pm("follow", {
+ Q.route(e), vm("follow", {
view: C9(),
seed: ku,
revision: Au
@@ -80235,13 +80260,13 @@ function lIe() {
},
syncPhotoWalls: u5,
scrollTop: () => {
- _m(() => location.pathname === "/follow", R("#stats").querySelector("[data-filter-frame]"));
+ Sm(() => location.pathname === "/follow", R("#stats").querySelector("[data-filter-frame]"));
}
}, $.followFeedHelpers, $.followFeedActions), $.followFeedActions = $.controller.actions, $.followFeedProps = $.controller.props, $.followFeedShell.refresh = $.controller.refresh, $.followFeedShell.props = $.controller.props;
}
// src/application/lifecycle.js
-function uIe() {
- Dwe(), Jc(document), Io(document.documentElement, { variant: "page" }), Io(R("#drawerScroll")), J.own(Gc()), Ha(document.body), X.homeHasFeed = uPe(), X.barsRequestSeq = 0, X.barsPendingSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, B5.sidebarProps = {
+function hIe() {
+ Mwe(), Jc(document), Io(document.documentElement, { variant: "page" }), Io(R("#drawerScroll")), x8.own(Gc()), Ha(document.body), X.homeHasFeed = hPe(), X.barsRequestSeq = 0, X.barsPendingSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, B5.sidebarProps = {
content: null,
filters: {},
latest: null
@@ -80252,7 +80277,7 @@ function uIe() {
], $.FOLLOW_RANDOM_SORT = "rand", $.followSort = "new", $.followDir = "desc", $.followSeed = 0, $.followDurMin = 0, $.followDurMax = 0;
}
// src/react/search/recommendations.ts
-async function dIe(e) {
+async function gIe(e) {
let t = (await Promise.allSettled([
e("/api/items?sort=rand&limit=5"),
e("/api/jav/discoveries?scope=library&limit=5"),
@@ -80276,9 +80301,9 @@ async function dIe(e) {
let t = pa(e);
for (let n of ["videos", "images"]) {
if (n === "images" ? !t.has("image") : t.size && !t.has("video")) continue;
- let r = ma(e, n), i = l.sources.find((e) => e.id === r.source_id), a = RG(r, i?.author_key ? l.sources.filter((e) => e.author_key === i.author_key) : i ? [i] : [], l), o = n === "images" ? r.media_items?.find((e) => e.media_kind === "image") : void 0;
+ let r = ma(e, n), i = l.sources.find((e) => e.id === r.source_id), a = VG(r, i?.author_key ? l.sources.filter((e) => e.author_key === i.author_key) : i ? [i] : [], l), o = n === "images" ? r.media_items?.find((e) => e.media_kind === "image") : void 0;
(n === "images" ? c : s).push({
- value: PG(r),
+ value: LG(r),
id: r.id,
who: a.author,
href: `/posts/${r.id}`,
@@ -80294,7 +80319,7 @@ async function dIe(e) {
let u = (t[4]?.items || []).map((e) => ({
value: e.k,
href: e.entity_id ? `/creators/${e.entity_id}` : `/follow?author=${encodeURIComponent(e.key)}`,
- avatarHtml: LG(l.sources.filter((t) => t.author_key === e.key), e.k),
+ avatarHtml: BG(l.sources.filter((t) => t.author_key === e.key), e.k),
subtitle: "关注中的作者"
})), d = /* @__PURE__ */ new Map();
for (let e of r) for (let t of e.performer_refs || []) t.id && !d.has(t.name) && d.set(t.name, {
@@ -80364,7 +80389,7 @@ async function dIe(e) {
];
}
// src/application/search-morph.js
-function fIe(e, t, n, r, i, a, o) {
+function _Ie(e, t, n, r, i, a, o) {
let s = a.startsWith("linear(") ? a.slice(7, -1).split(",").map(Number) : [0, 1];
return s.map((a, c) => {
let l = c / (s.length - 1), u = (e, t) => e + (t - e) * a, d = Math.max(8, Math.min(o - 44, u(e.left, t.left))), f = Math.max(36, Math.min(o - 8 - d, u(e.width, t.width))), p = u(e.height, t.height) + Math.sin(Math.PI * l) * t.height * .12, m = u(e.top + e.height / 2, t.top + t.height / 2);
@@ -80389,7 +80414,7 @@ var k9 = {
function A9() {
k9.searchControl?.close();
}
-function pIe(e) {
+function vIe(e) {
let t = e ? $a({
...e,
is_jav: !!e.code
@@ -80408,22 +80433,22 @@ function M9(e) {
if (t.classList.toggle("open", e), R("#searchBtn").setAttribute("aria-expanded", String(e)), innerWidth > 760 || matchMedia("(prefers-reduced-motion:reduce)").matches) return;
let s = t.getBoundingClientRect(), c = getComputedStyle(t), l = parseFloat(c.paddingLeft), u = t.querySelector("svg").getBoundingClientRect().width, d = Math.max(0, (o.width - u) / 2 - parseFloat(c.borderLeftWidth)), f = r ? i : e ? o : s, p = e ? s : o, m = zc();
t.classList.add("search-morphing");
- let h = t.animate(fIe(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
+ let h = t.animate(_Ie(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
duration: m.duration,
easing: "linear",
fill: "both"
});
- k9.searchMorph = h, J.handler(h, "onfinish", () => {
+ k9.searchMorph = h, x8.handler(h, "onfinish", () => {
k9.searchMorph === h && j9();
});
}
-function mIe() {
- return n9.immerseOpen() ? o8().activeVideo() : r8()?.activeVideo() || null;
+function yIe() {
+ return n9.immerseOpen() ? a8().activeVideo() : n8()?.activeVideo() || null;
}
-function hIe(e) {
+function bIe(e) {
return !!e && (e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.isContentEditable);
}
-function gIe() {
+function xIe() {
k9.searchControl = null, k9.searchActions = {
search: (e) => {
X.rememberSearchValue(), a9(!1), W.q = e, Iu(), Q.route(W.jav === "1" ? g7() : W.q ? "/?q=" + encodeURIComponent(W.q) : "/", !0);
@@ -80435,9 +80460,9 @@ function gIe() {
$.followMediaView = t, O9(e, !0, n);
}
}, k9.searchHelpers = {
- pool: () => aye(W, Cn),
- recommendations: () => dIe(Cn),
- coverHtml: (e) => `<span class="pic">${e?.thumb_url ? `<img src="${B(e.thumb_url)}" width="640" height="360" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : e?.sourceWork ? U8(e) : pIe(e)}</span>`,
+ pool: () => uye(W, Cn),
+ recommendations: () => gIe(Cn),
+ coverHtml: (e) => `<span class="pic">${e?.thumb_url ? `<img src="${B(e.thumb_url)}" width="640" height="360" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : e?.sourceWork ? U8(e) : vIe(e)}</span>`,
present: (e) => os(e),
dismiss: (e) => ss(e),
wireScroller: (e) => Ec(e),
@@ -80463,30 +80488,30 @@ function gIe() {
}, {
container: R("#searchMenu"),
isCurrent: () => !0
- }), J.listen(R("#q"), "beforeinput", (e) => {
+ }), x8.listen(R("#q"), "beforeinput", (e) => {
e.isComposing || X.rememberSearchValue(e.currentTarget);
- }), J.listen(R("#q"), "scroll", (e) => {
+ }), x8.listen(R("#q"), "scroll", (e) => {
e.currentTarget.value && X.rememberSearchValue(e.currentTarget);
- }), J.listen(R("#q"), "pointerdown", (e) => {
+ }), x8.listen(R("#q"), "pointerdown", (e) => {
e.currentTarget.value && X.rememberSearchValue(e.currentTarget);
});
}
-function _Ie() {
- k9.searchMorph = null, k9.searchMorphViewport = innerWidth, J.listen.bind(J, window)("resize", () => {
+function SIe() {
+ k9.searchMorph = null, k9.searchMorphViewport = innerWidth, x8.listen.bind(x8, window)("resize", () => {
innerWidth !== k9.searchMorphViewport && (k9.searchMorphViewport = innerWidth, j9());
- }, { passive: !0 }), J.listen(matchMedia("(prefers-reduced-motion:reduce)"), "change", j9), J.handler(R("#searchBtn"), "onclick", () => {
+ }, { passive: !0 }), x8.listen(matchMedia("(prefers-reduced-motion:reduce)"), "change", j9), x8.handler(R("#searchBtn"), "onclick", () => {
M9(!0), R("#q").focus({ preventScroll: !0 });
- }), J.handler(R("#searchBack"), "onclick", () => {
+ }), x8.handler(R("#searchBack"), "onclick", () => {
M9(!1), A9(), R("#q").blur(), R("#searchBtn").focus({ preventScroll: !0 });
});
let e = (e) => {
e.target.closest(".search") || (e.type !== "focusin" || e.target !== document.body && e.target !== document.documentElement) && (R("#q").value || M9(!1), A9());
};
- J.listen(document, "pointerdown", e, !0), J.listen(document, "focusin", e), J.handler(R("#brandHome"), "onclick", (e) => {
+ x8.listen(document, "pointerdown", e, !0), x8.listen(document, "focusin", e), x8.handler(R("#brandHome"), "onclick", (e) => {
e.preventDefault(), _7();
- }), J.listen(document, "keydown", (e) => {
+ }), x8.listen(document, "keydown", (e) => {
if (e.key === "Escape") {
- let t = l8();
+ let t = c8();
if (t?.isOpen()) {
t.close();
return;
@@ -80496,11 +80521,11 @@ function _Ie() {
return;
}
if (n9.immerseOpen()) {
- o8().close();
+ a8().close();
return;
}
if (n9.stageOpen()) {
- e.defaultPrevented || (e.preventDefault(), r8().requestEscape());
+ e.defaultPrevented || (e.preventDefault(), n8().requestEscape());
return;
}
if (R("#drawer").classList.contains("open")) {
@@ -80513,7 +80538,7 @@ function _Ie() {
}
return;
}
- if (hIe(e.target) || e.ctrlKey || e.metaKey || e.altKey) return;
+ if (bIe(e.target) || e.ctrlKey || e.metaKey || e.altKey) return;
if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
let t = document.querySelector(`#stage[open] [data-media-carousel]:not([data-carousel-video-active]) [data-follow-image-step="${e.key === "ArrowRight" ? 1 : -1}"]`);
if (t) {
@@ -80521,37 +80546,37 @@ function _Ie() {
return;
}
}
- let t = mIe();
+ let t = yIe();
if (t) {
if (e.key === "t" || e.key === "T") {
- e.preventDefault(), r8()?.toggleTheater();
+ e.preventDefault(), n8()?.toggleTheater();
return;
}
if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
- e.preventDefault(), NP(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
+ e.preventDefault(), RP(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
return;
}
if (e.key === " " || e.key === "k" || e.key === "K") {
- e.preventDefault(), MP(t);
+ e.preventDefault(), LP(t);
return;
}
if (e.key === "m" || e.key === "M") {
- e.preventDefault(), YN(t, ".vjs-mute-control");
+ e.preventDefault(), eP(t, ".vjs-mute-control");
return;
}
if (e.key === "f" || e.key === "F") {
- e.preventDefault(), YN(t, ".vjs-fullscreen-control");
+ e.preventDefault(), eP(t, ".vjs-fullscreen-control");
return;
}
if (e.key === "i" || e.key === "I") {
- e.preventDefault(), r8()?.toggleMiniplayer();
+ e.preventDefault(), n8()?.toggleMiniplayer();
return;
}
}
});
}
// src/history/links.ts
-function vIe(e) {
+function CIe(e) {
if (e.defaultPrevented || e.button !== 0 || e.ctrlKey || e.metaKey || e.shiftKey || e.altKey) return null;
let t = e.target instanceof Element ? e.target.closest("a[href]") : null;
if (!t || t.hasAttribute("download") || t.target && t.target.toLowerCase() !== "_self") return null;
@@ -80574,23 +80599,23 @@ var N9 = {
shellActions: void 0,
routing: void 0
};
-function yIe() {
- let e = J, t = (e) => {
+function wIe() {
+ let e = x8, t = (e) => {
e.kind === "item" ? l9(e.id, !1) : e.kind === "jav" ? d9(e.code, !1) : e.kind === "follow" ? O9(e.id, !1) : o9(e.queue, e.key, e.item, !1);
};
- if (lPe(), F5.entityShapesReady = W8(), ZPe(), location.pathname === "/") {
+ if (mPe(), F5.entityShapesReady = W8(), nFe(), location.pathname === "/") {
let e = new URLSearchParams(location.search);
!e.has("state") && e.get("jav") !== "1" && (R("#catalogPageHeading").hidden = !1);
}
- X8(decodeURIComponent(location.pathname)) && q8(R("#feedNew")), aFe(), N9.shellActions = {
+ X8(decodeURIComponent(location.pathname)) && q8(R("#feedNew")), uFe(), N9.shellActions = {
openSettings: (e) => Y5(e, !0),
- closeSettings: () => l8()?.close(!1),
+ closeSettings: () => c8()?.close(!1),
openItem: (e) => void l9(e),
openEntity: (e, t) => void v5(e, t),
openTag: (e) => {
- tFe(), F7(e);
+ oFe(), F7(e);
},
- openTasteSignal: TPe,
+ openTasteSignal: APe,
navigate: (e) => {
let n = new URL(e, location.href), r = $f(n.pathname, n.search);
if (r) {
@@ -80609,9 +80634,9 @@ function yIe() {
toast: (e, t) => S8.toast(e, t),
failure: S8.actionFailure,
revealSource: p5,
- reopenTutorial: JFe,
- routeReview: OPe,
- routeFollowManage: WPe,
+ reopenTutorial: $Fe,
+ routeReview: NPe,
+ routeFollowManage: YPe,
saveFollowPreference: (e) => {
e.pageSize !== void 0 && (Z.appSettings.followPageSize = e.pageSize), e.layout !== void 0 && (Z.appSettings.followLayout = e.layout), Z.saveSettings();
},
@@ -80622,10 +80647,10 @@ function yIe() {
},
exitSelectMode: () => O5(!1, !1),
personAvatar: (e, t, n) => j5.personAvatar(e, t, n),
- authorAvatar: (e) => KPe(e),
- showIndexTags: qPe,
+ authorAvatar: (e) => ZPe(e),
+ showIndexTags: QPe,
openFollowAuthor: P5,
- openFollowTag: JPe,
+ openFollowTag: $Pe,
openPlaylist: (e, t) => void s9(e, t, !0),
canFlip: () => !du && !$7() && !window.__scrolling && !X.reduceMotion(),
surfaceChanged: (e, t) => {
@@ -80686,23 +80711,23 @@ function yIe() {
}
}
}, N9.routing = !1, e.listen(document, "click", (e) => {
- let t = vIe(e);
+ let t = CIe(e);
t && (e.preventDefault(), N9.shellActions.navigate(t));
- }), J.own(zp.listen((e) => {
+ }), x8.own(zp.listen((e) => {
Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !ep(e.location.pathname) && a9(!1), N9.routing && !e.claimed && b9();
- })), DNe(N9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), cFe(), RPe(), Z5(), Promise.all([
+ })), MNe(N9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), pFe(), UPe(), Z5(), Promise.all([
X7(),
- oFe(),
+ dFe(),
F5.entityShapesReady
]).then(() => {
- e.isActive && (F5.wantsDiscoveryBars() && N7().catch((e) => console.error("首页横条装载失败", e)), _9(), RFe(), N9.routing = !0, Fu({ pageOpens: 1 }), b9(), d7());
+ e.isActive && (F5.wantsDiscoveryBars() && N7().catch((e) => console.error("首页横条装载失败", e)), _9(), UFe(), N9.routing = !0, Fu({ pageOpens: 1 }), b9(), d7());
}).catch((t) => {
e.isActive && console.error("应用启动失败", t);
});
}
// src/theme-transition.ts
var P9 = !1;
-async function bIe(e, t) {
+async function TIe(e, t) {
if (P9) return;
if (!document.startViewTransition || matchMedia("(prefers-reduced-motion: reduce)").matches) {
t();
@@ -80724,9 +80749,9 @@ async function bIe(e, t) {
}
}
// src/application/chrome.js
-function xIe() {
+function EIe() {
(() => {
- let e = J, t = [
+ let e = x8, t = [
"#brandHome",
"#filterBtn",
"#settingsBtn"
@@ -80786,7 +80811,7 @@ function xIe() {
e.key === "Escape" && (e.stopPropagation(), u.setOpen(!1), c.focus());
}), Cn("/api/libraries", { signal: e.signal }).then((t) => {
if (!e.isActive) return;
- xK(t.libraries);
+ bK(t.libraries);
let n = [[
"",
"全部媒体库",
@@ -80824,14 +80849,14 @@ function xIe() {
(document.querySelector(".top") || m.closest("header")).prepend(h), e.own(() => h.remove());
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="浅色主题">${z("sun")}</button><button type="button" data-board-theme="dark" aria-label="深色主题">${z("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" && bIe(t, () => {
- Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), AM();
+ t.getAttribute("aria-pressed") !== "true" && TIe(t, () => {
+ Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), FM();
});
- })), AM();
+ })), FM();
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 = us(g, v, _);
- e.own(y.dispose), e.own(pN(v)), PNe({
+ e.own(y.dispose), e.own(vN(v)), zNe({
root: _,
store: Z.settingsStore,
openDetails: () => {
@@ -80850,14 +80875,14 @@ function xIe() {
let r = n.classList.contains("open"), i = !K5();
i || r ? m.parentElement !== t && t.append(m) : m.parentElement !== h.parentElement && h.after(m), n.inert = !i && !r;
}
- Z.placeSidebarHead = b, b(), e.listen(document, "board:sidebar", b), e.listen.bind(J, window)("resize", b);
+ Z.placeSidebarHead = b, b(), e.listen(document, "board:sidebar", b), e.listen.bind(x8, window)("resize", b);
let x = !1;
function S() {
x = !1, document.body.classList.toggle("board-scrolled", scrollY > 8);
}
- if (e.listen.bind(J, window)("scroll", () => {
+ if (e.listen.bind(x8, window)("scroll", () => {
x || (x = !0, e.frame(S));
- }, { passive: !0 }), e.listen.bind(J, window)("resize", S), S(), /Chrome|Chromium|Edg\//.test(navigator.userAgent)) {
+ }, { passive: !0 }), e.listen.bind(x8, window)("resize", S), S(), /Chrome|Chromium|Edg\//.test(navigator.userAgent)) {
let t = "http://www.w3.org/2000/svg", n = document.createElementNS(t, "svg");
n.setAttribute("width", "0"), n.setAttribute("height", "0"), n.setAttribute("aria-hidden", "true"), n.style.position = "fixed", n.style.pointerEvents = "none";
let r = document.createElementNS(t, "defs");
@@ -80974,12 +80999,12 @@ function xIe() {
})(), q5(!K5() && sessionStorage.getItem("board.sidebar") !== "closed");
}
// src/application/initialize.js
-function SIe() {
- uIe(), XFe(), QPe(), ZFe(), BFe(), INe(), jFe(), YFe(), SPe(), KFe(), zPe(), MFe(), hPe(), kPe(), cIe(), YPe(), CPe(), lIe(), XPe(), wPe(), mFe(), NFe(), gIe(), qFe(), _Ie(), VFe(), yIe(), xIe(), J.own(B7), J.own(v9);
+function DIe() {
+ hIe(), tIe(), rFe(), nIe(), GFe(), VNe(), IFe(), eIe(), DPe(), ZFe(), WPe(), LFe(), bPe(), PPe(), pIe(), eFe(), OPe(), mIe(), tFe(), kPe(), yFe(), RFe(), xIe(), QFe(), SIe(), KFe(), wIe(), EIe(), x8.own(B7), x8.own(v9);
}
// src/ui-kit/middle-truncate.ts
var F9 = "…", I9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null, L9 = /* @__PURE__ */ new WeakMap(), R9 = /* @__PURE__ */ new WeakSet(), z9 = null, B9 = null, V9 = /* @__PURE__ */ new Set(), H9 = (e) => I9 ? [...I9.segment(String(e ?? ""))].map((e) => e.segment) : Array.from(String(e ?? ""));
-function CIe(e, t) {
+function OIe(e, t) {
let n = H9(e);
if (!n.length || t(e)) return String(e ?? "");
let r = 0, i = Math.max(0, n.length - 1), a = F9;
@@ -80997,7 +81022,7 @@ var U9 = Object.assign((e, t) => {
Number.isFinite(a) && (i += Math.max(0, H9(t).length - 1) * a);
let o = parseFloat(n.wordSpacing);
return Number.isFinite(o) && (i += (t.match(/\s/g) || []).length * o), i;
-}, { canvas: null }), wIe = (e) => {
+}, { canvas: null }), kIe = (e) => {
if (e.dataset.middleTruncateWithin === void 0) return e.clientWidth;
let t = e.parentElement;
if (!t) return e.clientWidth;
@@ -81007,17 +81032,17 @@ var U9 = Object.assign((e, t) => {
n === e ? a++ : t > 0 && (i += t, a++);
}
return t.getBoundingClientRect().width - (parseFloat(n.paddingLeft) || 0) - (parseFloat(n.paddingRight) || 0) - i - r * Math.max(0, a - 1);
-}, TIe = (e) => {
+}, AIe = (e) => {
let t = L9.get(e);
if (!t || !e.isConnected) return;
- let n = wIe(e), r = n > 0 ? CIe(t.full, (t) => U9(e, t) <= n) : t.full;
+ let n = kIe(e), r = n > 0 ? OIe(t.full, (t) => U9(e, t) <= n) : t.full;
t.rendered = r, e.textContent !== r && (e.textContent = r);
let i = r !== t.full;
e.classList.toggle("middle-truncated", i), e.setAttribute("aria-label", t.full), e.hasAttribute("title") && e.dataset.middleTitle !== "true" || (e.title = t.full, e.dataset.middleTitle = "true");
}, W9 = (e) => {
let t = L9.get(e);
t && !t.raf && (t.raf = requestAnimationFrame(() => {
- t.raf = 0, TIe(e);
+ t.raf = 0, AIe(e);
}));
}, G9 = (e) => {
e instanceof HTMLElement && (L9.has(e) || L9.set(e, {
@@ -81030,7 +81055,7 @@ var U9 = Object.assign((e, t) => {
let t = e;
t.matches("[data-middle-truncate]") && G9(t), t.querySelectorAll("[data-middle-truncate]").forEach(G9);
};
-function EIe(e = document) {
+function jIe(e = document) {
B9?.(), R9 = /* @__PURE__ */ new WeakSet(), V9 = /* @__PURE__ */ new Set();
let t = V9, n = !0;
z9 = new ResizeObserver((e) => e.forEach((e) => {
@@ -81104,7 +81129,7 @@ var q9 = [
"jav-detail",
"wants",
"index"
-], DIe = {
+], MIe = {
catalog: [
...q9,
...J9,
@@ -81125,10 +81150,10 @@ var q9 = [
"avatar-choices"
]
};
-function OIe() {
+function NIe() {
let e = /* @__PURE__ */ new Set(), t = null;
return (n, r) => {
- for (let t of Object.keys(r)) if (r[t] !== n[t]) for (let n of DIe[t] || []) e.add(n);
+ for (let t of Object.keys(r)) if (r[t] !== n[t]) for (let n of MIe[t] || []) e.add(n);
return !t && e.size && (t = (async () => {
for (; e.size;) {
let t = new Set(e);
@@ -81141,12 +81166,12 @@ function OIe() {
})), t || Promise.resolve();
};
}
-function kIe() {
+function PIe() {
let e = Nt({
- queryKey: UL,
- queryFn: ({ signal: e }) => GL(e),
- refetchInterval: (e) => WL(e.state.data)
- }), t = (0, F.useRef)(void 0), [n] = (0, F.useState)(OIe), r = e.data?.result_versions;
+ queryKey: GL,
+ queryFn: ({ signal: e }) => qL(e),
+ refetchInterval: (e) => KL(e.state.data)
+ }), t = (0, F.useRef)(void 0), [n] = (0, F.useState)(NIe), r = e.data?.result_versions;
return (0, F.useEffect)(() => {
r && (t.current && n(t.current, r), t.current = r);
}, [r, n]), null;
@@ -81156,52 +81181,52 @@ var X9 = null;
function Z9(e) {
X9 !== e || e.owners || (X9 = null, e.effects.dispose());
}
-function AIe() {
+function FIe() {
if (!X9) {
- let e = FNe();
+ let e = BNe();
X9 = {
effects: e,
owners: 0
- }, e.own(EIe(document)), e.own(() => {
+ }, e.own(jIe(document)), e.own(() => {
Kl(), U.cancelQueries();
- }), e.own(ONe), e.own(kp), e.own(is);
+ }), e.own(NNe), e.own(kp), e.own(is);
}
return X9.owners += 1, X9.effects.resume(), X9;
}
-function jIe() {
+function IIe() {
let [e, t] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
- let e = X9 === null, n = AIe(), r = ENe(t);
+ let e = X9 === null, n = FIe(), r = jNe(t);
if (e) try {
- SIe();
+ DIe();
} catch (e) {
throw r(), n.effects.dispose(), X9 = null, e;
}
return () => {
r(), --n.owners, !n.owners && (n.effects.pause(), queueMicrotask(() => Z9(n)));
};
- }, []), /* @__PURE__ */ (0, I.jsx)($W, {
+ }, []), /* @__PURE__ */ (0, I.jsx)(nG, {
actions: e,
processing: !0,
- background: e ? /* @__PURE__ */ (0, I.jsx)(kIe, {}) : null
+ background: e ? /* @__PURE__ */ (0, I.jsx)(PIe, {}) : null
});
}
var Q9 = /* @__PURE__ */ new WeakMap();
-function MIe(e) {
+function LIe(e) {
let t = Q9.get(e);
if (t) return t;
- let n = (0, Lt.createRoot)(e, eG);
+ let n = (0, Lt.createRoot)(e, rG);
Q9.set(e, n);
let r = n.unmount.bind(n);
return n.unmount = () => {
Q9.get(e) === n && (Q9.delete(e), r(), X9 && Z9(X9));
- }, (0, It.flushSync)(() => n.render(/* @__PURE__ */ (0, I.jsx)(jIe, {}))), n;
+ }, (0, It.flushSync)(() => n.render(/* @__PURE__ */ (0, I.jsx)(IIe, {}))), n;
}
// src/react/bootstrap.tsx
O();
var $9 = document.getElementById("appRoot");
if (!$9) throw Error("主界面宿主缺失");
-MIe($9);
-export { zR as $2ec61d1d4f780267$export$a8a3e93435678ff9, qR as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, uB as $542a13ca2fa5b484$export$5b6b19405a83ff9d, UD as $72abaeab4d80592f$export$78efe591171d7d45, nV as $76d00c5a4edb230a$export$76ccd210b9029917, $B as $76d00c5a4edb230a$export$816b5d811295e6bc, aV as $76d00c5a4edb230a$export$b59bdbef9ce70de2, sV as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, QB as $76d00c5a4edb230a$export$f850895b287ef28e, Mme as $b4f18e3395fe64d7$export$3d96ec278d3efce4, jme as $b4f18e3395fe64d7$export$3e41faf802a29e71, Ome as $b4f18e3395fe64d7$export$b2539bed5023c21c, dV as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, Fme as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, AE as $ea3928288112382f$export$439d29a4e110a164, CB as $f2ff30fde7b014be$export$3ddf2d174ce01153, AB as $fe21c36db05242bb$export$a98f0dcb43a68a25, jB as $fe21c36db05242bb$export$d7b12c4107be0d61, _he as $l, mM as ACCENTS, jDe as AMANE_BRIDGE_CHECK_URL, p1 as AMANE_BRIDGE_KEY, MDe as AMANE_BRIDGE_REBUILD_URL, ar as ApiError, ZU as ArtSlot, q as Button, _R as ButtonLink, Ehe as Bx, gn as CLOUD_LOCATIONS, p0 as CLOUD_PROXY_HELP, Wr as COLUMN_SORT, T1 as CONFIGURATION_KEY, AX as CONFIGURATION_URL, NDe as COOKIE_TEXT_LIMIT, f1 as COVER_JOB_KEY, qi as CREDENTIAL_STATE, c1 as CUSTOM_SOURCES_KEY, s1 as CUSTOM_SOURCES_URL, _H as Checkbox, gH as CheckboxGlyph, sH as ChevronSortDown, XU as Chip, aW as CloudDownloadDialog, fU as CollapseChevron, dU as CollapseRegion, z$ as CollectionSummary, TSe as DEFAULT_CATEGORY, lr as DEFAULT_SORT, f$ as DIAGNOSTICS_KEY, CCe as DIRECTORY_TEMPLATE_ERROR, J0 as DISCOVERY_SORTS, $U as DOWNLOADS_KEY, QU as DOWNLOADS_URL, YY as DUPLICATES_KEY, AY as DataTableFooter, EY as DataTableFrame, kY as DataTableSort, vU as Disclosure, P_e as DownloadsPanel, che as E3, ESe as ENTITY_REVIEW_KINDS, d0 as ENTRY_LINKS_HELP, f0 as ENTRY_LINKS_HINT, bhe as Ea, Lhe as EmptyFocusButton, UV as EmptyState, gU as ErrorText, r_e as ExternalLink, zr as FEEDS_KEY, RX as FEED_SCHEDULE_KEY, W$ as FIELDSET_FOOT, MMe as FLOW_LABEL_X, Y3 as FLOW_VIEWBOX, Lr as FOLLOW_CHECK_KEY, Ir as FOLLOW_CREDENTIALS_KEY, N8 as FOLLOW_INITIAL_RANGE_OPTIONS, Fr as FOLLOW_MANAGE_KEY, gQ as FOLLOW_MANAGE_NAV, Rr as FOLLOW_RESOLVE_KEY, LX as FOLLOW_SCHEDULE_KEY, o_e as Fact, a_e as FactList, _U as FieldLabel, e1 as Fieldset, $$ as FieldsetTitle, kfe as FilterGlass, uR as FilterGlassRows, lR as FilterIconButton, dR as FilterPill, n_e as Footer, DV as Gg, fR as GlassPill, hU as Help, PV as HintText, wMe as IDLE_POLL_MS, mSe as IDLE_REPAIR, aR as IconButton, zV as Input, RV as InputBase, MM as JAV_LAYOUTS, X0 as JAV_RECOMMENDATION_GRID, sZ as JUNK_KEY, bW as JavHeader, cSe as KEEP_LABELS, Vr as LAYOUTS, u0 as LIBRARY_FOLDER_HELP, AH as LIBRARY_PROCESSING_KEY, xX as LINKS_KEY, SX as LINK_CHECK_KEY, XSe as LINK_KINDS, CX as LINK_PRUNE_KEY, er as LOC, NV as Label, r1 as LibraryProcessingCard, oH as LibraryShortcuts, KH as LinkButton, oU as LoadingDots, uhe as M6, eCe as MEDIA_PROCESSING_KEY, BX as MEDIA_PROCESSING_URL, eX as MEDIA_REPAIR_KEY, $Y as MEDIA_REPAIR_URL, _r as MEDIA_SOURCES_KEY, hs as MEDIA_SOURCE_ICONS, mn as MEDIA_SOURCE_OPTIONS, dH as MENU_ITEM, fH as MENU_ITEM_INTERACTIVE, uH as MENU_POPOVER_SURFACE, XH as MenuDialog, GK as MixCard, BV as ModalFrame, jx as MotionConfigContext, MV as NR, HV as Note, Nhe as OA, UX as ORGANIZE_KEY, KX as ORPHAN_RECORDS_KEY, EV as OV, yV as P7, U_e as PHASES, jX as PICK_FOLDER_URL, a1 as PLAYLISTS_KEY, FOe as POLICY_COLUMNS, LOe as POLICY_COVER_NOTE, IOe as POLICY_MATRIX, l0 as POLICY_SUMMARY, OY as Pagination, n1 as PathLine, PL as PillTabList, cU as Progress, aX as QUALITY_GOALS_KEY, q$ as REPAIR_CARD_TEXT, tX as REPAIR_LIBRARIES_KEY, ZX as RESOURCE_APPLY_KEY, XX as RESOURCE_SCAN_KEY, oDe as RESULT_PANEL, sDe as RESULT_SECTION, wSe as REVIEW_CATEGORIES, oZ as REVIEW_COUNTS_KEY, DSe as REVIEW_DECISION_LABELS, cX as REVIEW_KEY, lX as REVIEW_LABELS, dX as REVIEW_QUEUES, fX as REVIEW_QUEUE_LABELS, gK as RetryNote, Mhe as Rf, $ge as Rows, kDe as SCRAPING_CHECK_URL, u1 as SCRAPING_COVER_URL, d1 as SCRAPING_KEY, ODe as SCRAPING_SETTINGS_URL, CG as SEGMENT, SG as SEGMENTED_TRACK, IX as SETTINGS_KEY, MX as SETTINGS_URL, ur as SORT_DEFAULT_DIR, cr as SORT_OPTIONS, _n as SOURCE_LABELS, b3 as STATS_KEY, Qge as Section, t_e as SectionSkeleton, xG as SegmentedRadioGroup, bG as SegmentedTabList, lK as Segments, DY as Select, qU as Select$1, k1 as SelectField, JU as SelectItem, LY as SelectionActions, Kj as SelectionDock, RY as SelectionPopover, pU as SettingsCard, Zge as SettingsRow, mU as SettingsSectionLabel, u_e as SiteLabel, kG as SortDirectionIcon, dK as SortKeys, YQ as SourceAvatar, SU as SourceLabel, yU as SourceMark, e_e as Stack, t1 as StatusLabel, Q2 as Switch, UL as TASKS_KEY, pMe as TASTE_REFRESH_KEY, mMe as TASTE_WINDOWS, zX as THUMBNAIL_JOBS_KEY, lZ as TRASH_KEY, lfe as TRIGGER_LABELS, _Y as Table, zY as TableColumnControls, BY as TableColumnResizer, HY as TableSelectionHeader, P$ as TagManager, i_e as TaskCenterLink, lU as TaskProgress, IV as TextField, FV as TextFieldContext, TV as Un, sW as WANTS_KEY, p4 as WantMagnets, Yg as WithPromise, bV as Wt, wV as Xc, jV as Xf, fhe as Xt, lhe as _8, o as __commonJSMin, s as __exportAll, l as __toESM, jhe as aB, wi as addAlias, Ci as addSource, lW as addWant, bS as animate, V as apiGet, H as apiSend, EM as appSettingsStore, HCe as applyConfirmText, aZ as applyLeftovers, VCe as applyPlanText, WCe as applyText, AM as applyTheme, Ty as asNumber, ACe as attachOrphan, oi as authorAvatar, ci as authorGroups, ai as authorInitial, ii as authorName, aJ as autoResetPageIndex, ho as avatarInner, E3 as bandRows, wCe as baseName, pSe as batchOperate, Zj as boundedPreference, uSe as bulkCloudPreferences, qV as busyProps, Ahe as cB, UAe as cachedMagnetStates, Ug as calcGeneratorVelocity, PSe as canApprove, _g as cancelFrame, FCe as candidateText, aU as cardClass, GM as cardRatio, CV as cc, Ui as checkEvidenceGap, Hi as checkFailures, Ni as checkFeeds, kX as checkLine, Bi as checkReceipt, Vi as checkSummary, FDe as checkText, Wi as checkedText, jK as clickedBlank, nSe as cloudLocations, W0 as cloudProxySkeleton, lw as clsx, Che as cn, pv as collectMotionValues, TJ as columnVisibilityFeature, fY as column_getCanSort, cY as column_getSortFn, MSe as commonReviewSources, Wf as configurationSection, vMe as configureTasteBrowser, al as confirmModal, Vq as copyInstancePropertiesWithoutMemos, so as coverUrl, gJ as createColumnHelper, SDe as createPlaylist, Ji as credentialDone, B0 as credentialsSkeleton, USe as currentReviewRow, jL as cx, kV as dZ, BSe as decisionPayload, VSe as decisionReceipt, zSe as defaultChoice, wDe as deletePlaylist, x as diagnosticHeaders, c0 as diagnosticsSkeleton, Z_e as discoveryArtwork, mW as discoveryKey, ske as discoveryScore, oSe as distinctName, Ri as dropSources, khe as du, dSe as duplicateVictims, XL as elapsedText, en as entityDisplayName, mo as entityFaceImg, Mn as entityPath, $r as errorHeadline, sr as errorMessage, B as esc, iJ as expandRowModel, gV as f1, Qr as feedIntervalText, g1 as fetchAmaneBridge, gi as fetchCheckJob, E1 as fetchConfiguration, h1 as fetchCoverJob, hi as fetchCredentials, l1 as fetchCustomSources, p$ as fetchDiagnostics, hW as fetchDiscoveries, ZY as fetchDuplicates, ife as fetchEarlier, rCe as fetchFeedSchedule, Ai as fetchFeeds, mi as fetchFollow, nCe as fetchFollowSchedule, dZ as fetchJunkSummary, EX as fetchLinkCheck, DX as fetchLinkPrune, TX as fetchLinkStats, tCe as fetchMediaProcessing, nX as fetchMediaRepair, vr as fetchMediaSources, WX as fetchOrganize, gCe as fetchOrganizeExample, qX as fetchOrphanRecords, ki as fetchPending, o1 as fetchPlaylists, oX as fetchQualityGoals, rX as fetchRepairLibraries, _i as fetchResolveJob, $X as fetchResourceApply, QX as fetchResourceScan, vX as fetchReview, uZ as fetchReviewCounts, VX as fetchSettings, m1 as fetchSources, x3 as fetchStats, vi as fetchSuggestions, GL as fetchTasks, K3 as fetchTaste, yMe as fetchTasteJob, iCe as fetchThumbnailJobs, fZ as fetchTrashSummary, cW as fetchWants, ASe as filterReviewRows, Qn as firstGrapheme, Cq as flexRender, PMe as flowGraph, FMe as flowLabel, Nje as fmtCount, Kn as fmtDur, Jn as fmtSize, rfe as foldByKind, vfe as foldRoutine, Fi as followFeedByName, Br as followSuggestKey, bfe as followupDetail, nfe as followupTally, gg as frame, $me as g4, OJ as getDefaultPaginationState, WM as gridLayout, si as groupByAuthor, _fe as groupFollowups, hX as groupReviewRows, zCe as hasChanges, eZ as hasResourceRoots, qL as hasResultProblems, TMe as historySpan, _V as i2, CMe as importTasteExport, V0 as indexersSkeleton, zg as interpolate, dW as invalidateWants, YL as isActive, Zr as isBroken, Gr as isLayout, wv as isMotionValue, uX as isReviewCategory, yfe as isRoutine, H0 as javBrowserSkeleton, Q0 as javContentSkeleton, LM as javLayout, Z0 as javTagSkeleton, YCe as junkBreakdown, TDe as keepPlaylist, Oe as keepPreviousData, di as keepSelected, S3 as known, rhe as l7, gfe as latestOfKind, Gje as lengthRows, xr as localTime, Pi as lookupFeedActor, ohe as m7, OV as mM, Tn as mapLimit, Oi as markItem, D3 as max, Uje as mediumRows, afe as mergeFinished, O3 as min, JSe as mirrorText, _Se as missingToolText, QY as mixedCloudPreferences, eR as momentText, xS as motion, hv as motionValue, ECe as organizeOutcome, p2 as overlayHost, Kr as pageSizeOf, ui as pageWindow, pr as paginationRange, Li as patchSource, zp as peachHistory, zp as peachHistory$1, RSe as pendingGenres, Fje as percentText, yCe as pickOrganizeFolder, TCe as planSummary, C3 as playedFor, Lje as playedItemUrl, WL as pollInterval, qs as popCount, xDe as posterUrl, yve as previewLibraryColor, vCe as previewOrganize, bSe as previewUrl, hfe as problemDestination, ZL as progressText, xU as providerIcon, $Se as pruneText, nZ as purgeCount, jCe as purgeOrphan, AV as pv, Ohe as qE, U as queryClient, vV as r2, jMe as radarRows, Bje as radialArc, Vje as radialBarSize, zje as radialCeiling, Rje as radialSlices, fP as randomId, kMe as rankDetail, AMe as rankShares, T3 as reachedShare, QL as readableErrorHeadline, cke as recommendationScore, WSe as recordGenre, NCe as recordsText, EDe as recreatePlaylist, yDe as refreshPlaylists, zl as relayoutCovers, zi as reloadFollowManage, qSe as reloadReview, BOe as rememberShape, xCe as rememberTemplates, Ti as removeAlias, Mi as removeFeed, Si as removeSource, SMe as removeTasteSource, uW as removeWants, Ei as renameAliasGroup, CDe as renamePlaylist, qje as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, Lq as require_with_selector, K_e as resetWants, fr as resolveFollowSort, Kg as resolveStartTime, bDe as resumeAssetId, kSe as reviewGroupingOptions, mX as reviewQueueData, pX as reviewQueueOf, JCe as reviewSummary, jSe as reviewWindow, ISe as rowEvidence, _X as rowFieldName, FJ as rowPaginationFeature, nY as rowSelectionFeature, hY as rowSortingFeature, gX as rowSubject, LSe as rowTags, FSe as rowTitle, ehe as s5, Di as saveCredential, BCe as scanLine, lCe as schedulePollInterval, J_e as searchNote, NSe as selectReviewRange, fi as selectionState, ji as setFeedEnabled, xi as setSourceEnabled, Jf as settingsPath, KSe as settleReviewRows, aSe as sharedNamePrefix, Bp as shellNavigate, b8 as showToast, Rn as siteMarkUrl, Yq as skipFirstRun, ML as sortCx, Jr as sortLabel, vn as sourceDefaultCost, Ki as sourceIconUrl, UCe as sourceMeta, Rs as spinnerHtml, Lg as spring, GV as spriteGlyph, yi as startCheck, ZSe as startLinkCheck, QSe as startLinkPrune, bCe as startOrganize, bi as startResolve, LCe as startResourceApply, ICe as startResourceScan, xMe as startTasteRefresh, dfe as statusLabel, gSe as statusLine, Xr as statusText, KM as storeJavLayout, HSe as submitDecision, tR as summaryItems, _J as tableFeatures, Xq as tableMemo, li as tableRows, mfe as taskIssues, q3 as tasteDate, DMe as tasteDimensions, EMe as tasteHours, G3 as tasteKey, gMe as tasteRefetchInterval, _Me as tasteTime, RL as textLang, sh as time, ghe as tl, pi as toggleGroup, J3 as topScores, yhe as uo, qH as useAction, dQ as useBackgroundJob, zU as useClientUpdates, ym as useConstant, nR as useEntityNames, cR as useHorizontalScroller, bm as useIsomorphicLayoutEffect, AK as useLibraryTints, Pt as useMutation, vH as useOverlayScrollbar, Nt as useQuery, ae as useQueryClient, lS as useReducedMotion, cCe as useRunSchedule, oCe as useSaveFollowSchedule, HX as useSaveSettings, uCe as useSaveThumbnailMode, gY as useTable, NY as useTablePreferences, hR as useViewGlide, fSe as victimBytes, q_e as wantName, Ije as watchNote, w3 as watchedShare, Ec as wireHorizontalScroller, SCe as withOrganizeJob };
+LIe($9);
+export { VR as $2ec61d1d4f780267$export$a8a3e93435678ff9, YR as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, fB as $542a13ca2fa5b484$export$5b6b19405a83ff9d, KD as $72abaeab4d80592f$export$78efe591171d7d45, iV as $76d00c5a4edb230a$export$76ccd210b9029917, tV as $76d00c5a4edb230a$export$816b5d811295e6bc, sV as $76d00c5a4edb230a$export$b59bdbef9ce70de2, lV as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, eV as $76d00c5a4edb230a$export$f850895b287ef28e, Pme as $b4f18e3395fe64d7$export$3d96ec278d3efce4, Nme as $b4f18e3395fe64d7$export$3e41faf802a29e71, Ame as $b4f18e3395fe64d7$export$b2539bed5023c21c, pV as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, Lme as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, NE as $ea3928288112382f$export$439d29a4e110a164, TB as $f2ff30fde7b014be$export$3ddf2d174ce01153, MB as $fe21c36db05242bb$export$a98f0dcb43a68a25, NB as $fe21c36db05242bb$export$d7b12c4107be0d61, yhe as $l, yM as ACCENTS, IDe as AMANE_BRIDGE_CHECK_URL, f1 as AMANE_BRIDGE_KEY, LDe as AMANE_BRIDGE_REBUILD_URL, ar as ApiError, $U as ArtSlot, J as Button, yR as ButtonLink, Ohe as Bx, gn as CLOUD_LOCATIONS, f0 as CLOUD_PROXY_HELP, Wr as COLUMN_SORT, w1 as CONFIGURATION_KEY, kX as CONFIGURATION_URL, RDe as COOKIE_TEXT_LIMIT, d1 as COVER_JOB_KEY, qi as CREDENTIAL_STATE, s1 as CUSTOM_SOURCES_KEY, o1 as CUSTOM_SOURCES_URL, yH as Checkbox, vH as CheckboxGlyph, lH as ChevronSortDown, QU as Chip, sW as CloudDownloadDialog, mU as CollapseChevron, pU as CollapseRegion, R$ as CollectionSummary, ASe as DEFAULT_CATEGORY, lr as DEFAULT_SORT, d$ as DIAGNOSTICS_KEY, OCe as DIRECTORY_TEMPLATE_ERROR, q0 as DISCOVERY_SORTS, tW as DOWNLOADS_KEY, eW as DOWNLOADS_URL, JY as DUPLICATES_KEY, kY as DataTableFooter, TY as DataTableFrame, OY as DataTableSort, bU as Disclosure, I_e as DownloadsPanel, uhe as E3, jSe as ENTITY_REVIEW_KINDS, u0 as ENTRY_LINKS_HELP, d0 as ENTRY_LINKS_HINT, She as Ea, zhe as EmptyFocusButton, GV as EmptyState, vU as ErrorText, a_e as ExternalLink, zr as FEEDS_KEY, LX as FEED_SCHEDULE_KEY, U$ as FIELDSET_FOOT, LMe as FLOW_LABEL_X, J3 as FLOW_VIEWBOX, Lr as FOLLOW_CHECK_KEY, Ir as FOLLOW_CREDENTIALS_KEY, N8 as FOLLOW_INITIAL_RANGE_OPTIONS, Fr as FOLLOW_MANAGE_KEY, hQ as FOLLOW_MANAGE_NAV, Rr as FOLLOW_RESOLVE_KEY, IX as FOLLOW_SCHEDULE_KEY, c_e as Fact, s_e as FactList, yU as FieldLabel, $$ as Fieldset, Q$ as FieldsetTitle, jfe as FilterGlass, fR as FilterGlassRows, dR as FilterIconButton, pR as FilterPill, i_e as Footer, kV as Gg, mR as GlassPill, _U as Help, IV as HintText, kMe as IDLE_POLL_MS, ySe as IDLE_REPAIR, sR as IconButton, VV as Input, BV as InputBase, LM as JAV_LAYOUTS, Y0 as JAV_RECOMMENDATION_GRID, oZ as JUNK_KEY, CW as JavHeader, pSe as KEEP_LABELS, Vr as LAYOUTS, l0 as LIBRARY_FOLDER_HELP, MH as LIBRARY_PROCESSING_KEY, xX as LINKS_KEY, SX as LINK_CHECK_KEY, eCe as LINK_KINDS, CX as LINK_PRUNE_KEY, er as LOC, FV as Label, n1 as LibraryProcessingCard, cH as LibraryShortcuts, JH as LinkButton, cU as LoadingDots, fhe as M6, aCe as MEDIA_PROCESSING_KEY, zX as MEDIA_PROCESSING_URL, $Y as MEDIA_REPAIR_KEY, QY as MEDIA_REPAIR_URL, _r as MEDIA_SOURCES_KEY, hs as MEDIA_SOURCE_ICONS, mn as MEDIA_SOURCE_OPTIONS, pH as MENU_ITEM, mH as MENU_ITEM_INTERACTIVE, fH as MENU_POPOVER_SURFACE, QH as MenuDialog, WK as MixCard, HV as ModalFrame, Px as MotionConfigContext, PV as NR, WV as Note, Fhe as OA, HX as ORGANIZE_KEY, GX as ORPHAN_RECORDS_KEY, OV, xV as P7, G_e as PHASES, AX as PICK_FOLDER_URL, i1 as PLAYLISTS_KEY, BOe as POLICY_COLUMNS, HOe as POLICY_COVER_NOTE, VOe as POLICY_MATRIX, c0 as POLICY_SUMMARY, DY as Pagination, t1 as PathLine, IL as PillTabList, uU as Progress, iX as QUALITY_GOALS_KEY, K$ as REPAIR_CARD_TEXT, eX as REPAIR_LIBRARIES_KEY, XX as RESOURCE_APPLY_KEY, YX as RESOURCE_SCAN_KEY, dDe as RESULT_PANEL, fDe as RESULT_SECTION, kSe as REVIEW_CATEGORIES, aZ as REVIEW_COUNTS_KEY, MSe as REVIEW_DECISION_LABELS, sX as REVIEW_KEY, cX as REVIEW_LABELS, uX as REVIEW_QUEUES, dX as REVIEW_QUEUE_LABELS, hK as RetryNote, Phe as Rf, t_e as Rows, PDe as SCRAPING_CHECK_URL, l1 as SCRAPING_COVER_URL, u1 as SCRAPING_KEY, NDe as SCRAPING_SETTINGS_URL, EG as SEGMENT, TG as SEGMENTED_TRACK, FX as SETTINGS_KEY, jX as SETTINGS_URL, ur as SORT_DEFAULT_DIR, cr as SORT_OPTIONS, _n as SOURCE_LABELS, y3 as STATS_KEY, e_e as Section, r_e as SectionSkeleton, wG as SegmentedRadioGroup, CG as SegmentedTabList, cK as Segments, EY as Select, YU as Select$1, O1 as SelectField, XU as SelectItem, IY as SelectionActions, Zj as SelectionDock, LY as SelectionPopover, hU as SettingsCard, $ge as SettingsRow, gU as SettingsSectionLabel, f_e as SiteLabel, MG as SortDirectionIcon, uK as SortKeys, JQ as SourceAvatar, wU as SourceLabel, xU as SourceMark, n_e as Stack, e1 as StatusLabel, Z2 as Switch, GL as TASKS_KEY, vMe as TASTE_REFRESH_KEY, yMe as TASTE_WINDOWS, RX as THUMBNAIL_JOBS_KEY, cZ as TRASH_KEY, dfe as TRIGGER_LABELS, gY as Table, RY as TableColumnControls, zY as TableColumnResizer, VY as TableSelectionHeader, N$ as TagManager, o_e as TaskCenterLink, dU as TaskProgress, RV as TextField, LV as TextFieldContext, DV as Un, lW as WANTS_KEY, f4 as WantMagnets, Qg as WithPromise, SV as Wt, EV as Xc, NV as Xf, mhe as Xt, dhe as _8, o as __commonJSMin, s as __exportAll, l as __toESM, Nhe as aB, wi as addAlias, Ci as addSource, dW as addWant, CS as animate, V as apiGet, H as apiSend, jM as appSettingsStore, qCe as applyConfirmText, iZ as applyLeftovers, KCe as applyPlanText, YCe as applyText, FM as applyTheme, ky as asNumber, FCe as attachOrphan, oi as authorAvatar, ci as authorGroups, ai as authorInitial, ii as authorName, iJ as autoResetPageIndex, ho as avatarInner, T3 as bandRows, kCe as baseName, vSe as batchOperate, nM as boundedPreference, hSe as bulkCloudPreferences, YV as busyProps, Mhe as cB, JAe as cachedMagnetStates, Kg as calcGeneratorVelocity, zSe as canApprove, xg as cancelFrame, BCe as candidateText, sU as cardClass, XM as cardRatio, TV as cc, Ui as checkEvidenceGap, Hi as checkFailures, Ni as checkFeeds, iCe as checkLine, Bi as checkReceipt, Vi as checkSummary, BDe as checkText, Wi as checkedText, AK as clickedBlank, sSe as cloudLocations, U0 as cloudProxySkeleton, fw as clsx, The as cn, _v as collectMotionValues, wJ as columnVisibilityFeature, dY as column_getCanSort, sY as column_getSortFn, LSe as commonReviewSources, Wf as configurationSection, CMe as configureTasteBrowser, al as confirmModal, Bq as copyInstancePropertiesWithoutMemos, so as coverUrl, hJ as createColumnHelper, DDe as createPlaylist, Ji as credentialDone, z0 as credentialsSkeleton, JSe as currentReviewRow, NL as cx, jV as dZ, GSe as decisionPayload, KSe as decisionReceipt, WSe as defaultChoice, kDe as deletePlaylist, x as diagnosticHeaders, s0 as diagnosticsSkeleton, vW as discoveryArtwork, gW as discoveryKey, fke as discoveryScore, dSe as distinctName, Ri as dropSources, jhe as du, gSe as duplicateVictims, QL as elapsedText, en as entityDisplayName, mo as entityFaceImg, Mn as entityPath, $r as errorHeadline, sr as errorMessage, B as esc, rJ as expandRowModel, vV as f1, Qr as feedIntervalText, h1 as fetchAmaneBridge, gi as fetchCheckJob, T1 as fetchConfiguration, m1 as fetchCoverJob, hi as fetchCredentials, c1 as fetchCustomSources, f$ as fetchDiagnostics, _W as fetchDiscoveries, XY as fetchDuplicates, ofe as fetchEarlier, cCe as fetchFeedSchedule, Ai as fetchFeeds, mi as fetchFollow, sCe as fetchFollowSchedule, uZ as fetchJunkSummary, EX as fetchLinkCheck, DX as fetchLinkPrune, TX as fetchLinkStats, oCe as fetchMediaProcessing, tX as fetchMediaRepair, vr as fetchMediaSources, UX as fetchOrganize, xCe as fetchOrganizeExample, KX as fetchOrphanRecords, ki as fetchPending, a1 as fetchPlaylists, aX as fetchQualityGoals, nX as fetchRepairLibraries, _i as fetchResolveJob, QX as fetchResourceApply, ZX as fetchResourceScan, _X as fetchReview, lZ as fetchReviewCounts, BX as fetchSettings, p1 as fetchSources, b3 as fetchStats, vi as fetchSuggestions, qL as fetchTasks, G3 as fetchTaste, wMe as fetchTasteJob, lCe as fetchThumbnailJobs, dZ as fetchTrashSummary, uW as fetchWants, FSe as filterReviewRows, Qn as firstGrapheme, Sq as flexRender, zMe as flowGraph, BMe as flowLabel, Rje as fmtCount, Kn as fmtDur, Jn as fmtSize, afe as foldByKind, bfe as foldRoutine, Fi as followFeedByName, Br as followSuggestKey, Sfe as followupDetail, ife as followupTally, bg as frame, the as g4, DJ as getDefaultPaginationState, YM as gridLayout, si as groupByAuthor, yfe as groupFollowups, mX as groupReviewRows, WCe as hasChanges, $X as hasResourceRoots, YL as hasResultProblems, AMe as historySpan, yV as i2, OMe as importTasteExport, B0 as indexersSkeleton, Hg as interpolate, pW as invalidateWants, ZL as isActive, Zr as isBroken, Gr as isLayout, Ov as isMotionValue, lX as isReviewCategory, xfe as isRoutine, V0 as javBrowserSkeleton, Z0 as javContentSkeleton, HM as javLayout, X0 as javTagSkeleton, ewe as junkBreakdown, ADe as keepPlaylist, Oe as keepPreviousData, di as keepSelected, x3 as known, ahe as l7, vfe as latestOfKind, Xje as lengthRows, xr as localTime, Pi as lookupFeedActor, che as m7, AV as mM, Tn as mapLimit, Oi as markItem, E3 as max, Jje as mediumRows, sfe as mergeFinished, D3 as min, QSe as mirrorText, SSe as missingToolText, ZY as mixedCloudPreferences, nR as momentText, wS as motion, yv as motionValue, jCe as organizeOutcome, f2 as overlayHost, Kr as pageSizeOf, ui as pageWindow, pr as paginationRange, Li as patchSource, zp as peachHistory, zp as peachHistory$1, USe as pendingGenres, Bje as percentText, wCe as pickOrganizeFolder, ACe as planSummary, S3 as playedFor, Hje as playedItemUrl, KL as pollInterval, qs as popCount, EDe as posterUrl, wve as previewLibraryColor, CCe as previewOrganize, TSe as previewUrl, _fe as problemDestination, $L as progressText, CU as providerIcon, rCe as pruneText, tZ as purgeCount, ICe as purgeOrphan, MV as pv, Ahe as qE, U as queryClient, bV as r2, IMe as radarRows, Gje as radialArc, Kje as radialBarSize, Wje as radialCeiling, Uje as radialSlices, _P as randomId, PMe as rankDetail, FMe as rankShares, w3 as reachedShare, eR as readableErrorHeadline, pke as recommendationScore, YSe as recordGenre, RCe as recordsText, jDe as recreatePlaylist, wDe as refreshPlaylists, zl as relayoutCovers, zi as reloadFollowManage, vX as reloadReview, GOe as rememberShape, ECe as rememberTemplates, Ti as removeAlias, Mi as removeFeed, Si as removeSource, DMe as removeTasteSource, fW as removeWants, Ei as renameAliasGroup, ODe as renamePlaylist, Qje as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, Iq as require_with_selector, J_e as resetWants, fr as resolveFollowSort, Yg as resolveStartTime, TDe as resumeAssetId, PSe as reviewGroupingOptions, pX as reviewQueueData, fX as reviewQueueOf, $Ce as reviewSummary, ISe as reviewWindow, VSe as rowEvidence, gX as rowFieldName, PJ as rowPaginationFeature, tY as rowSelectionFeature, mY as rowSortingFeature, hX as rowSubject, HSe as rowTags, BSe as rowTitle, nhe as s5, Di as saveCredential, GCe as scanLine, mCe as schedulePollInterval, X_e as searchNote, RSe as selectReviewRange, fi as selectionState, ji as setFeedEnabled, xi as setSourceEnabled, Jf as settingsPath, ZSe as settleReviewRows, uSe as sharedNamePrefix, Bp as shellNavigate, y8 as showToast, Rn as siteMarkUrl, Jq as skipFirstRun, PL as sortCx, Jr as sortLabel, vn as sourceDefaultCost, Ki as sourceIconUrl, JCe as sourceMeta, Rs as spinnerHtml, Bg as spring, qV as spriteGlyph, yi as startCheck, tCe as startLinkCheck, nCe as startLinkPrune, TCe as startOrganize, bi as startResolve, HCe as startResourceApply, VCe as startResourceScan, EMe as startTasteRefresh, pfe as statusLabel, xSe as statusLine, Xr as statusText, ZM as storeJavLayout, qSe as submitDecision, rR as summaryItems, gJ as tableFeatures, Yq as tableMemo, li as tableRows, gfe as taskIssues, K3 as tasteDate, MMe as tasteDimensions, jMe as tasteHours, W3 as tasteKey, xMe as tasteRefetchInterval, SMe as tasteTime, BL as textLang, fh as time, vhe as tl, pi as toggleGroup, q3 as topScores, xhe as uo, YH as useAction, uQ as useBackgroundJob, VU as useClientUpdates, wm as useConstant, iR as useEntityNames, uR as useHorizontalScroller, Tm as useIsomorphicLayoutEffect, kK as useLibraryTints, Pt as useMutation, bH as useOverlayScrollbar, Nt as useQuery, ae as useQueryClient, fS as useReducedMotion, pCe as useRunSchedule, dCe as useSaveFollowSchedule, VX as useSaveSettings, hCe as useSaveThumbnailMode, hY as useTable, MY as useTablePreferences, _R as useViewGlide, _Se as victimBytes, Y_e as wantName, Vje as watchNote, C3 as watchedShare, Ec as wireHorizontalScroller, DCe as withOrganizeJob };
-//# debugId=95e3af73-14c8-43af-b687-5fc1403a5cb6
\ No newline at end of file
+//# debugId=7bb3ebe1-c5fd-44d4-aae2-6c87e7365cc8
\ No newline at end of file