Peach: Local-first video metadata scraper and media manager.
feat(web): 扫描与采集的终止改为确认后执行,保存媒体库设置前提示在跑的任务
longmeidao5c5a07349c3e
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 0d82cef9e..80d4e7925 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -29,7 +29,9 @@ Removed / Fixed / Security。### 修复- **馆藏**:扫描 SMB 共享时整趟共用一条连接,不再每进入一个目录都重新连接和认证,大型媒体库的扫描明显加快;连接断开时自动重连一次后继续。-- **馆藏**:扫描与采集任务还没结束时点击同步,会提示需要等当前任务完成或停止,不再没有任何反应。+- **馆藏**:扫描与采集任务还没结束时点击同步,会提示当前任务的发起方式(网页、定时或命令行与托盘),以及需要等它完成或终止,不再没有任何反应。+- **馆藏**:扫描与采集的「停止任务」改为「终止任务」,与任务中心的取消使用同一枚图标,确认后才执行;终止后数据管理页显示「已终止上次任务」,命令行或任务中心终止的也会显示。+- **配置**:有扫描与采集任务在运行时保存媒体库设置,会先确认并说明重启对这个任务的影响。- **馆藏**:命令行或托盘运行资料处理时,扫描阶段的进度显示已发现的文件数,不再一直显示「扫描文件:0/0」。## [0.53.0] - 2026-11-02diff --git a/docs/OPERATIONS.md b/docs/OPERATIONS.mdindex 57eb38a66..8ab7d353d 100644--- a/docs/OPERATIONS.md+++ b/docs/OPERATIONS.md@@ -264,9 +264,11 @@ Windows 测试包默认使用 `%LOCALAPPDATA%\Peach\peach-data`。首次设置逐任务 GPU 显示所属子进程最忙引擎的使用率。Windows 使用系统引擎计数器;Linux 使用驱动提供的 DRM fdinfo 引擎时间,Docker 需要映射 GPU 设备并允许读取任务进程信息。macOS、未提供 DRM 引擎时间的驱动、设备未映射、权限不足,以及共享 GPU 活动无法准确归属的情况显示「未取得」并说明原因。网络显示已观测的下载速度,挂载与 SMB 的缓存、预读以及未计量的外部请求显示「未取得」,不以零值代替。首次读取显示「采样中」。CPU 或 GPU 达到 50%、下载达到 10 MiB/s 时,同色标签加深,仅作显示提示。已取消的任务显示红色标签。-后台任务把任务标识、处理范围、完成集合和计数保存在本机。服务重启时接回同一条任务记录,继续未完成的部分。用户暂停的任务保持暂停;明确停止会取消恢复。失败、限流或未取得的结果保留原有重试与冷却规则,不作为成功项目跳过。+后台任务把任务标识、处理范围、完成集合和计数保存在本机。服务重启时接回同一条任务记录,继续未完成的部分。用户暂停的任务保持暂停;明确终止会取消恢复。失败、限流或未取得的结果保留原有重试与冷却规则,不作为成功项目跳过。-「停止任务」先显示正在停止,等当前在途步骤退出后结算。已登记影片、资料、预览和候选保留,停止的任务不会在重启后自动继续;可以重新发起一趟任务。命令行发起的馆藏处理被停止时返回退出码 130。+扫描与采集的「终止任务」与任务中心的取消使用同一枚图标,确认后先显示正在终止,等当前在途步骤退出后结算。已登记影片、资料、预览和候选保留,终止的任务不会在重启后自动继续;数据管理页的扫描与采集卡片显示「已终止上次任务」,可以重新发起一趟任务。命令行发起的馆藏处理被终止时返回退出码 130。++任务还在运行时点击同步,卡片提示当前任务的发起方式,并说明要等它完成或终止。保存媒体库设置会重启 Peach:有扫描与采集任务在运行时先确认。在服务内运行的任务(网页、定时或启动时发起)随重启中断,重启后从中断处继续;已暂停的任务保持暂停;命令行或托盘发起的任务在独立进程中运行,不受重启影响。勾选「保存后扫描并补全资料」时,新的扫描排在当前任务之后。日常使用「同步新增文件」:枚举目录发现尚未登记的文件,仅补全新增及待处理影片的资料和预览。已知路径跳过逐文件属性读取,不重复刮削已有影片;它仍需枚举目录,不能替代文件删除检查。「更多同步方式」分为日常同步和独立的「全库维护」,后者检查全部文件并复用已有资料和预览,可单独执行扫描、资料或预览步骤。diff --git a/frontend/e2e/library-processing-controls.test.ts b/frontend/e2e/library-processing-controls.test.tsindex 16ec72c99..c3ef303da 100644--- a/frontend/e2e/library-processing-controls.test.ts+++ b/frontend/e2e/library-processing-controls.test.ts@@ -260,8 +260,20 @@ describe('扫描与采集控制', () => {await occupied.click({ force: true });await page.locator('#toasts [data-sonner-toast]').filter({ hasText: '当前的扫描与采集任务还没结束' }).waitFor();assert.equal(writes.length, sent);+ // 终止和任务中心的取消同一枚图标,先确认;在确认框里取消就不发请求。+ const terminate = dock.getByRole('button', { name: '终止任务', exact: true });+ assert.equal(await terminate.innerText(), '');+ await terminate.click();+ const confirm = page.getByRole('dialog', { name: '终止扫描与采集', exact: true });+ await confirm.getByRole('button', { name: '取消', exact: true }).click();+ await confirm.waitFor({ state: 'hidden' });+ assert.equal(writes.length, sent);+ state = { ...state, trigger: 'cli' };await page.reload();await resume.waitFor();+ await occupied.click({ force: true });+ await page.locator('#toasts [data-sonner-toast]')+ .filter({ hasText: '当前的扫描与采集任务(由命令行或托盘发起)还没结束' }).waitFor();const lowSpeed = dock.getByRole('button', { name: '处理速度:低占用' });assert.equal(await lowSpeed.innerText(), '低占用');assert.equal(await lowSpeed.locator('use[href="#i-snail"]').count(), 1);diff --git a/frontend/e2e/media-paths.test.ts b/frontend/e2e/media-paths.test.tsindex 5724e2825..acf963470 100644--- a/frontend/e2e/media-paths.test.ts+++ b/frontend/e2e/media-paths.test.ts@@ -45,7 +45,16 @@ describe('非 Windows 媒体目录配置', () => {await form.getByRole('button', { name: '给 电影 添加文件夹', exact: true }).click();await form.getByRole('textbox', { name: '媒体目录 2', exact: true }).fill('/media/other');assert.equal(await internal.count(), 0);+ // 保存会重启 Peach:扫描与采集在跑时先确认,取消就什么都不写。+ await page.route('**/api/library-processing', route => route.fulfill({ json: { status: 'running', trigger: 'cli' } }));await form.getByRole('button', { name: '保存配置', exact: true }).click();+ const restart = page.getByRole('dialog', { name: '扫描与采集正在进行', exact: true });+ await restart.getByText(/由命令行或托盘发起,在独立进程里运行,不受重启影响/).waitFor();+ await restart.getByRole('button', { name: '取消', exact: true }).click();+ await restart.waitFor({ state: 'hidden' });+ assert.equal(writes.length, 0);+ await form.getByRole('button', { name: '保存配置', exact: true }).click();+ await restart.getByRole('button', { name: '仍然保存', exact: true }).click();await page.getByText('配置已保存', { exact: true }).waitFor();assert.deepEqual(writes.at(-1)?.media_sources.map(({ path, root }) => ({ path, root })), [{ path: '/media/影视', root: 'R:\\media' }, { path: '/media/other', root: '' },diff --git a/frontend/src/react/library-processing/library-processing-card.tsx b/frontend/src/react/library-processing/library-processing-card.tsxindex 4b16c0b20..edc8639b3 100644--- a/frontend/src/react/library-processing/library-processing-card.tsx+++ b/frontend/src/react/library-processing/library-processing-card.tsx@@ -25,7 +25,7 @@ import { PathLine } from '../components/path-line';import { Disclosure } from '../settings/section';import { queryClient } from '../query';import {- ALL_CONTENT_URL, BUSY_TEXT, DISCONNECTED_TEXT, issueDetails, LIBRARY_PROCESSING_KEY, LIBRARY_PROCESSING_URL, PARTIAL_RESULT_TEXT,+ ALL_CONTENT_URL, busyText, DISCONNECTED_TEXT, issueDetails, LIBRARY_PROCESSING_KEY, LIBRARY_PROCESSING_URL, PARTIAL_RESULT_TEXT,notesLine, processingActive, processingHasPartialResult, remainingTime, slowItem, type LibraryProcessingCommand, type LibraryProcessingData,} from './library-processing';import { SlowItemNote } from './slow-item';@@ -115,8 +115,9 @@ function Outcome({settled?.status === 'complete'? <Note tone="success" title="处理完成">{receiptText(settled)}</Note>: null}- {settled?.status === 'cancelled' ? <Note tone="neutral" title="任务已停止">- 已取得的资料和预览已保留,不会自动继续这趟任务。+ {/* 终止不止是眼前点的那一下:命令行、任务中心终止的、重开页面才读到的,都留这一句。 */}+ {(settled ?? state).status === 'cancelled' && !state.archived ? <Note tone="neutral" title="已终止上次任务">+ 已取得的资料和预览已保留,这一轮不会自动继续,需要时重新同步。</Note> : null}{issues? <Note tone={!failed ? 'neutral' : partial ? 'warning' : 'error'} className="gap-0 p-3"@@ -220,7 +221,7 @@ export function LibraryProcessingCard(props: LibraryProcessingProps) {: null}{/* 日常同步保留独立入口,原任务的定向重试只处理该任务的失败项。 */}<ProcessingActions scan busy={start.isPending} occupied={processingActive(state)} metadataOnly={state?.metadata_only}- speedMode={state.speed_mode} pendingCount={state.new_asset_count} onRun={run} onOccupied={() => toast(BUSY_TEXT)} />+ speedMode={state.speed_mode} pendingCount={state.new_asset_count} onRun={run} onOccupied={() => toast(busyText(state))} /></>}><div className="flex flex-col gap-2">diff --git a/frontend/src/react/library-processing/library-processing.ts b/frontend/src/react/library-processing/library-processing.tsindex ef319a84e..7475ac4b4 100644--- a/frontend/src/react/library-processing/library-processing.ts+++ b/frontend/src/react/library-processing/library-processing.ts@@ -31,6 +31,8 @@ export interface LibraryProcessingData {outcome?: 'complete' | 'partial' | 'interrupted' | 'cancelled';archived?: boolean;new_asset_count?: number;+ /** 进行中这一轮在任务中心记的发起方式:`manual` | `scheduled` | `startup` | `cli`。 */+ trigger?: string;speed_mode?: ProcessingSpeed;eta_seconds_min?: number | null;eta_seconds_max?: number | null;@@ -163,7 +165,7 @@ export const ALL_CONTENT_URL = '/?loc=&thumb=0';/** 时间向分钟取整;区间两端始终使用同一单位。 */export function remainingTime(state: LibraryProcessingData): string {if (!processingActive(state)) return '';- if (state.status === 'stopping') return '正在停止,等待当前步骤退出;已取得的结果会保留';+ if (state.status === 'stopping') return '正在终止,等待当前步骤退出;已取得的结果会保留';if (state.status === 'paused') return '已暂停,继续后更新预估';if (state.status === 'pausing') return '正在暂停,当前步骤结束后暂停';if (state.stalled) return '等待当前文件响应,剩余时间待更新';@@ -200,8 +202,26 @@ export const IDLE_POLL_MS = 10_000;/** 读失败时页面上留的那句话。上一份数据不撤,下一轮轮询自己会接上。 */export const DISCONNECTED_TEXT = '连接中断,正在重新读取处理进度';-/** 有任务在跑时点同步给的回执;任务可能是命令行或托盘起的,页面上不一定看得出是谁发起的。 */-export const BUSY_TEXT = '当前的扫描与采集任务还没结束,等它完成或停止后再开始新的同步';+/** 任务的发起方式写进句子里用的说法;`TRIGGER_LABELS` 是任务中心列表的短标签,放进句子读不通。 */+const TRIGGER_PHRASES: Record<string, string> = {+ manual: '在网页发起', scheduled: '定时发起', startup: '服务启动时自动发起', cli: '由命令行或托盘发起',+};++/** 保存媒体库设置会重启 Peach:在跑的这一轮会怎样,按它跑在哪个进程、是否已暂停分开说。+ * 命令行与托盘起的是独立的 `peach process` 进程,重载只停服务;服务内的任务由启动恢复接着跑,+ * 用户暂停的那一轮恢复时跳过。勾了「保存后扫描」的那一趟要等全库处理锁,排在后面。 */+export function restartEffectText(state: LibraryProcessingData, scanAfterSave: boolean): string {+ const effect = state.trigger === 'cli' ? '这个任务由命令行或托盘发起,在独立进程里运行,不受重启影响。'+ : state.status === 'paused' ? '已暂停的任务会保持暂停,重启后点继续即可接着处理。'+ : '正在进行的任务会随重启中断,重启后从中断处继续。';+ return `保存后 Peach 会重新启动。${effect}${scanAfterSave ? '勾选的「保存后扫描并补全资料」会排在当前任务之后。' : ''}`;+}++/** 已有任务在跑时点同步的回执,写明这一轮是怎么发起的。 */+export function busyText(state: LibraryProcessingData): string {+ const origin = TRIGGER_PHRASES[state.trigger || ''];+ return `当前的扫描与采集任务${origin ? `(${origin})` : ''}还没结束,等它完成或终止后再开始新的同步`;+}export function pollInterval(data: LibraryProcessingData | undefined, watching: boolean,diff --git a/frontend/src/react/library-processing/processing-controls.tsx b/frontend/src/react/library-processing/processing-controls.tsxindex 3bf185e80..a8c05a68c 100644--- a/frontend/src/react/library-processing/processing-controls.tsx+++ b/frontend/src/react/library-processing/processing-controls.tsx@@ -1,5 +1,7 @@+import { useRef } from 'react';import { Button } from '@/components/base/buttons/button';-import { RiPauseLine, RiPlayLine } from '@remixicon/react';+import { RiPauseLine, RiPlayLine, RiStopLine } from '@remixicon/react';+import { confirmModal } from '@peach/legacy/ui';import { apiSend } from '../../api';import { ProcessingMode } from './processing-effort';@@ -10,14 +12,17 @@ import {type LibraryProcessingData, type ProcessingControlCommand,} from './library-processing';-/** 控制只作用于快照里的任务号;状态由服务端确认后交给所有入口。 */+/** 控制只作用于快照里的任务号;状态由服务端确认后交给所有入口。+ * 终止与任务中心的取消是同一个动作:同一枚图标,先确认再发。 */export function ProcessingControls({ state, disabled = false }: {state: LibraryProcessingData; disabled?: boolean;}) {const action = useAction();+ const confirming = useRef(false);const active = processingActive(state);const stopping = state.status === 'stopping';const controlLabel = state.status === 'paused' ? '继续' : state.status === 'pausing' ? '正在暂停' : '暂停';+ const terminateLabel = stopping ? '正在终止' : '终止任务';const change = (command: ProcessingControlCommand) => {if (disabled || action.busy) return;void action.run(command.action, signal =>@@ -26,6 +31,18 @@ export function ProcessingControls({ state, disabled = false }: {void queryClient.invalidateQueries({ queryKey: LIBRARY_PROCESSING_KEY });});};+ const terminate = () => {+ const jobId = state.job_id;+ if (!jobId || disabled || action.busy || confirming.current) return;+ confirming.current = true;+ void confirmModal({+ title: '终止扫描与采集',+ body: '将终止这一轮剩余的处理。已登记的影片、取得的资料和预览会保留。终止后这一轮不能继续,需要时重新同步。',+ confirmLabel: '终止任务',+ danger: true,+ }).then(({ confirmed }) => { if (confirmed) change({ action: 'cancel', job_id: jobId }) })+ .finally(() => { confirming.current = false });+ };return <div className="flex min-w-0 flex-col gap-2" data-processing-controls=""><div className="flex flex-wrap items-center gap-2"><ProcessingMode value={state.speed_mode || 'standard'} busy={disabled || !!action.busy || stopping}@@ -39,10 +56,9 @@ export function ProcessingControls({ state, disabled = false }: {onClick={() => {if (state.job_id) change({ action: state.status === 'paused' ? 'resume' : 'pause', job_id: state.job_id });}} /> : null}- {active ? <Button size="small" variant="secondary" disabled={disabled || !state.job_id || stopping}- {...busyProps(action.busy === 'cancel')} onClick={() => {- if (state.job_id) change({action:'cancel',job_id:state.job_id});- }}>{stopping ? '正在停止' : '停止任务'}</Button> : null}+ {active ? <Button size="small" variant="secondary" iconOnly leadingIcon={RiStopLine}+ aria-label={terminateLabel} title={terminateLabel} disabled={disabled || !state.job_id || stopping}+ {...busyProps(action.busy === 'cancel')} onClick={terminate} /> : null}</div>{action.error ? <p role="alert" className="text-caption-1-regular text-text-error-primary">{action.error}</p> : null}</div>;diff --git a/frontend/src/react/settings/media-settings.tsx b/frontend/src/react/settings/media-settings.tsxindex 587261d94..87fbe0d24 100644--- a/frontend/src/react/settings/media-settings.tsx+++ b/frontend/src/react/settings/media-settings.tsx@@ -42,6 +42,19 @@ import {ErrorText, ExternalLink, Fact, FactList, Footer, Help, Section, SourceMark, Stack,} from './section';import { busyProps, useAction } from './use-action';+import { confirmModal } from '@peach/legacy/ui';+import { fetchLibraryProcessing, processingActive, restartEffectText } from '../library-processing/library-processing';++/** 保存会重启 Peach。扫描与采集在跑时先确认;读不到任务状态就照常保存,不让旁路读数挡住保存。 */+async function confirmRestartDuringProcessing(scanAfterSave: boolean): Promise<boolean> {+ let state;+ try { state = await fetchLibraryProcessing() } catch { return true }+ if (!processingActive(state)) return true;+ const { confirmed } = await confirmModal({+ title: '扫描与采集正在进行', body: restartEffectText(state, scanAfterSave), confirmLabel: '仍然保存',+ });+ return confirmed;+}const sourceName = (location: string) => MEDIA_SOURCES.find(([kind]) => kind === location)?.[1] ?? location;const sourceOptions = [...MEDIA_SOURCES, ['smb', 'SMB 共享'] as const];@@ -130,6 +143,7 @@ function MediaForm({ data, receipt }: ConfigurationGroupProps) {const [smbResults, setSmbResults] = useState<Record<number, { message: string; directories: string[] }>>({});const [saved, setSaved] = useState<SaveResult | null>(null);const revision = useRef(data.revision);+ const confirming = useRef(false);const action = useAction();// 订阅来源色样式表:改色时卡片当场试色,保存后服务端的颜色接替。useLibraryTints();@@ -174,7 +188,16 @@ function MediaForm({ data, receipt }: ConfigurationGroupProps) {requestAnimationFrame(() => form.querySelector<HTMLButtonElement>(`[data-media-read-policy="${missing}"] button`)?.focus());return;}+ if (action.busy || confirming.current) return;setFailure('');+ confirming.current = true;+ void confirmRestartDuringProcessing(scanNow).then((proceed) => {+ confirming.current = false;+ if (proceed) save();+ });+ };++ const save = () => {void action.run('save', (signal) => apiSend<SaveResult>(CONFIGURATION_URL, {revision: revision.current,media_dirs: rows.map((row) => row.path),diff --git a/src/peach/cli.py b/src/peach/cli.pyindex bbc0873c1..d8294c7b2 100644--- a/src/peach/cli.py+++ b/src/peach/cli.py@@ -536,7 +536,7 @@ def _process_library(args: argparse.Namespace) -> int:database=LedgerDatabase(args.db), report=_processing_printer())except JobCancelled:handle.finish('cancelled', error='用户停止任务')- print('任务已停止,已保存结果保留。')+ print('任务已终止,已保存结果保留。')return 130rows = declared_rows(result.get('followups'))queued = handle.store.enqueue_followups(handle.run_id, rows)diff --git a/src/peach/processing_control.py b/src/peach/processing_control.pyindex 46a03be2d..d2bbf7b66 100644--- a/src/peach/processing_control.py+++ b/src/peach/processing_control.py@@ -90,7 +90,7 @@ def checkpoint_values(values):def interrupted_state(control):if control is not None and control.cancelled:- return dict(status='cancelled', outcome='cancelled', stage='已停止', error='')+ return dict(status='cancelled', outcome='cancelled', stage='已终止', error='')return dict(status='paused', error='', completed_at=None) if control is not None and control.paused else {}diff --git a/web/dist/peach-app.configuration-page-D1PyF3fI.js b/web/dist/peach-app.configuration-page-BzA2e_yA.jssimilarity index 87%rename from web/dist/peach-app.configuration-page-D1PyF3fI.jsrename to web/dist/peach-app.configuration-page-BzA2e_yA.jsindex da6639645..c032b7609 100644--- a/web/dist/peach-app.configuration-page-D1PyF3fI.js+++ b/web/dist/peach-app.configuration-page-BzA2e_yA.js@@ -1,31 +1,31 @@(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] = "ad2c7afd-21c9-4cd0-931a-0e2c90aa252c", e._sentryDebugIdIdentifier = "sentry-dbid-ad2c7afd-21c9-4cd0-931a-0e2c90aa252c");+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "1f937643-2375-4258-a8ef-d230a94de6c6", e._sentryDebugIdIdentifier = "sentry-dbid-1f937643-2375-4258-a8ef-d230a94de6c6");} catch {}})();import { AnimatedItems as e, Cell as t, ChartBackground as n, ChartContainer as r, ChartLegend as i, ChartLegendContent as a, ChartTip as o, ChartTooltip as s, ChartTooltipContent as c, Curve as l, DATA_ITEM_GRAPHICAL_ITEM_ID_ATTRIBUTE_NAME as u, DATA_ITEM_INDEX_ATTRIBUTE_NAME as d, DefaultZIndexes as f, EvilBarChart as p, LabelList as m, LabelListFromLabelProp as h, Layer as g, LoadingIndicator as _, PolarChart as v, PolarLabelContextProvider as y, PolarLabelListContextProvider as b, RegisterGraphicalItemId as x, Sector as S, SetPolarGraphicalItem as C, SetPolarLegendPayload as w, SetTooltipEntrySettings as T, Shape as ee, TIP_SWATCH as te, Text as ne, ZIndexLayer as re, adaptEventsOfChild as ie, arrayTooltipSearcher as ae, createSelector as oe, defaultPolarChartProps as se, findAllByType as ce, get as le, getClassNameFromUnknown as ue, getColorsCount as de, getMaxRadius as fe, getPercentValue as pe, getTooltipNameProp as me, getValueByDataKey as he, interpolate as ge, isNumber as _e, matchAppend as ve, mathSign as ye, polarToCartesian as be, resolveDefaultProps as xe, selectActiveTooltipDataKey as Se, selectActiveTooltipGraphicalItemId as Ce, selectActiveTooltipIndex as we, selectChartDataAndAlwaysIgnoreIndexes as Te, selectChartOffsetInternal as Ee, selectUnfilteredPolarItems as De, svgPropertiesNoEvents as Oe, svgPropertiesNoEventsFromUnknown as ke, tone as Ae, useAnimationCallbacks as je, useAppSelector as Me, useMouseClickItemDispatch as Ne, useMouseEnterItemDispatch as Pe, useMouseLeaveItemDispatch as Fe, usePolarChartLayout as Ie } from "./peach-app.chart-tip-CRxYp6KT.js";-import { $2ec61d1d4f780267$export$a8a3e93435678ff9 as Le, $3a442827418ebe87$export$eb2fcfdbd7ba97d4 as Re, $542a13ca2fa5b484$export$5b6b19405a83ff9d as ze, $72abaeab4d80592f$export$78efe591171d7d45 as Be, $bd263d78e9bf3c56$export$f5c9f3c2c4054eec as Ve, $ea3928288112382f$export$439d29a4e110a164 as He, $f2ff30fde7b014be$export$3ddf2d174ce01153 as Ue, $fe21c36db05242bb$export$a98f0dcb43a68a25 as We, $fe21c36db05242bb$export$d7b12c4107be0d61 as Ge, ACCENTS as Ke, ApiError as qe, Button as E, ButtonLink as Je, CLOUD_LOCATIONS as Ye, CLOUD_PROXY_HELP as Xe, CONFIGURATION_KEY as Ze, CONFIGURATION_URL as Qe, CREDENTIAL_STATE as $e, Checkbox as D, Chip as et, Disclosure as O, ENTRY_LINKS_HELP as tt, ENTRY_LINKS_HINT as nt, EmptyState as rt, ErrorText as k, ExternalLink as A, FEED_SCHEDULE_KEY as it, FOLLOW_CREDENTIALS_KEY as at, FOLLOW_INITIAL_RANGE_OPTIONS as ot, FOLLOW_SCHEDULE_KEY as st, Fact as j, FactList as ct, FieldLabel as lt, Footer as M, Help as N, HintText as ut, Input as P, LIBRARY_FOLDER_HELP as dt, LIBRARY_PROCESSING_KEY as ft, Label as pt, LinkButton as mt, LoadingDots as ht, M6 as gt, MEDIA_PROCESSING_KEY as _t, MEDIA_PROCESSING_URL as vt, MEDIA_SOURCE_ICONS as yt, MENU_POPOVER_SURFACE as bt, Note as F, PICK_FOLDER_URL as xt, POLICY_COLUMNS as St, POLICY_COVER_NOTE as Ct, POLICY_MATRIX as wt, POLICY_SUMMARY as Tt, PathLine as Et, PillTabList as Dt, Progress as Ot, Rows as I, SEGMENT as kt, SEGMENTED_TRACK as At, SETTINGS_KEY as jt, SETTINGS_URL as Mt, Section as L, SectionSkeleton as Nt, SegmentedRadioGroup as Pt, Select as Ft, Select$1 as R, SelectItem as z, SettingsCard as It, SettingsRow as B, SiteLabel as Lt, SourceLabel as Rt, SourceMark as zt, Stack as V, StatusLabel as H, Switch as U, THUMBNAIL_JOBS_KEY as Bt, TaskCenterLink as Vt, TextField as Ht, TextFieldContext as Ut, __toESM as Wt, animate as Gt, apiGet as W, apiSend as G, appSettingsStore as Kt, boundedPreference as qt, busyProps as K, cardClass as Jt, cloudProxySkeleton as Yt, clsx as Xt, cn as Zt, confirmModal as Qt, credentialDone as $t, credentialsSkeleton as en, cx as tn, errorMessage as q, fetchConfiguration as nn, fetchCredentials as rn, fetchFeedSchedule as an, fetchFollowSchedule as on, fetchMediaProcessing as sn, fetchSettings as cn, fetchThumbnailJobs as ln, fmtSize as J, indexersSkeleton as un, javBrowserSkeleton as dn, momentText as fn, motion as pn, overlayHost as mn, peachHistory$1 as hn, previewLibraryColor as gn, providerIcon as _n, queryClient as vn, randomId as yn, rememberShape as bn, require_jsx_runtime as xn, require_react as Sn, saveCredential as Cn, schedulePollInterval as wn, settingsPath as Tn, shellNavigate as En, sortCx as Dn, sourceDefaultCost as On, useAction as Y, useClientUpdates as kn, useLibraryTints as An, useMutation as jn, useQuery as X, useReducedMotion as Mn, useRunSchedule as Nn, useSaveFollowSchedule as Pn, useSaveSettings as Fn, useSaveThumbnailMode as In } from "./peach-app.js";-import { CodeBlock as Ln } from "./peach-app.code-block-CyDva4Ms.js";-import { FolderField as Rn, FolderFieldLine as zn, FolderRow as Bn, MEDIA_SOURCES as Vn, MediaReadPolicy as Hn, MediaReadPolicyHelp as Un, SourceSelect as Wn, isCloudSource as Gn, sourceMark as Kn, useFolderRows as qn } from "./peach-app.folder-rows-BWBfTyUD.js";-import { ConnectionStatus as Jn } from "./peach-app.connection-status-DI6kgn3i.js";-import { SourceIcon as Yn } from "./peach-app.source-view-DalWfDkm.js";+import { $2ec61d1d4f780267$export$a8a3e93435678ff9 as Le, $3a442827418ebe87$export$eb2fcfdbd7ba97d4 as Re, $542a13ca2fa5b484$export$5b6b19405a83ff9d as ze, $72abaeab4d80592f$export$78efe591171d7d45 as Be, $bd263d78e9bf3c56$export$f5c9f3c2c4054eec as Ve, $ea3928288112382f$export$439d29a4e110a164 as He, $f2ff30fde7b014be$export$3ddf2d174ce01153 as Ue, $fe21c36db05242bb$export$a98f0dcb43a68a25 as We, $fe21c36db05242bb$export$d7b12c4107be0d61 as Ge, ACCENTS as Ke, ApiError as qe, Button as E, ButtonLink as Je, CLOUD_LOCATIONS as Ye, CLOUD_PROXY_HELP as Xe, CONFIGURATION_KEY as Ze, CONFIGURATION_URL as Qe, CREDENTIAL_STATE as $e, Checkbox as D, Chip as et, Disclosure as O, ENTRY_LINKS_HELP as tt, ENTRY_LINKS_HINT as nt, EmptyState as rt, ErrorText as k, ExternalLink as A, FEED_SCHEDULE_KEY as it, FOLLOW_CREDENTIALS_KEY as at, FOLLOW_INITIAL_RANGE_OPTIONS as ot, FOLLOW_SCHEDULE_KEY as st, Fact as j, FactList as ct, FieldLabel as lt, Footer as M, Help as N, HintText as ut, Input as P, LIBRARY_FOLDER_HELP as dt, LIBRARY_PROCESSING_KEY as ft, Label as pt, LinkButton as mt, LoadingDots as ht, M6 as gt, MEDIA_PROCESSING_KEY as _t, MEDIA_PROCESSING_URL as vt, MEDIA_SOURCE_ICONS as yt, MENU_POPOVER_SURFACE as bt, Note as F, PICK_FOLDER_URL as xt, POLICY_COLUMNS as St, POLICY_COVER_NOTE as Ct, POLICY_MATRIX as wt, POLICY_SUMMARY as Tt, PathLine as Et, PillTabList as Dt, Progress as Ot, Rows as I, SEGMENT as kt, SEGMENTED_TRACK as At, SETTINGS_KEY as jt, SETTINGS_URL as Mt, Section as L, SectionSkeleton as Nt, SegmentedRadioGroup as Pt, Select as Ft, Select$1 as R, SelectItem as z, SettingsCard as It, SettingsRow as B, SiteLabel as Lt, SourceLabel as Rt, SourceMark as zt, Stack as V, StatusLabel as H, Switch as U, THUMBNAIL_JOBS_KEY as Bt, TaskCenterLink as Vt, TextField as Ht, TextFieldContext as Ut, __toESM as Wt, animate as Gt, apiGet as W, apiSend as G, appSettingsStore as Kt, boundedPreference as qt, busyProps as K, cardClass as Jt, cloudProxySkeleton as Yt, clsx as Xt, cn as Zt, confirmModal as Qt, credentialDone as $t, credentialsSkeleton as en, cx as tn, errorMessage as q, fetchConfiguration as nn, fetchCredentials as rn, fetchFeedSchedule as an, fetchFollowSchedule as on, fetchLibraryProcessing as sn, fetchMediaProcessing as cn, fetchSettings as ln, fetchThumbnailJobs as un, fmtSize as J, indexersSkeleton as dn, javBrowserSkeleton as fn, momentText as pn, motion as mn, overlayHost as hn, peachHistory$1 as gn, previewLibraryColor as _n, processingActive as vn, providerIcon as yn, queryClient as bn, randomId as xn, rememberShape as Sn, require_jsx_runtime as Cn, require_react as wn, restartEffectText as Tn, saveCredential as En, schedulePollInterval as Dn, settingsPath as On, shellNavigate as kn, sortCx as An, sourceDefaultCost as jn, useAction as Y, useClientUpdates as Mn, useLibraryTints as Nn, useMutation as Pn, useQuery as X, useReducedMotion as Fn, useRunSchedule as In, useSaveFollowSchedule as Ln, useSaveSettings as Rn, useSaveThumbnailMode as zn } from "./peach-app.js";+import { CodeBlock as Bn } from "./peach-app.code-block-CyDva4Ms.js";+import { FolderField as Vn, FolderFieldLine as Hn, FolderRow as Un, MEDIA_SOURCES as Wn, MediaReadPolicy as Gn, MediaReadPolicyHelp as Kn, SourceSelect as qn, isCloudSource as Jn, sourceMark as Yn, useFolderRows as Xn } from "./peach-app.folder-rows-BWBfTyUD.js";+import { ConnectionStatus as Zn } from "./peach-app.connection-status-DI6kgn3i.js";+import { SourceIcon as Qn } from "./peach-app.source-view-DalWfDkm.js";// src/react/settings/configuration-panel.ts-var Z = /* @__PURE__ */ Wt(Sn(), 1), Xn = "flex flex-col gap-6";-function Zn(e) {+var Z = /* @__PURE__ */ Wt(wn(), 1), $n = "flex flex-col gap-6";+function er(e) {return e ? {- className: e.active ? `${Xn} ui-board-group-active` : Xn,+ className: e.active ? `${$n} ui-board-group-active` : $n,"data-board-group": String(e.index),id: e.id,role: "tabpanel","aria-labelledby": e.labelledBy- } : { className: Xn };+ } : { className: $n };}// src/react/settings/userscript-probe.ts-function Qn() {+function tr() {let e = (0, Z.useRef)(null), [t, n] = (0, Z.useState)(0), [r, i] = (0, Z.useState)("checking");return (0, Z.useEffect)(() => {- let t = yn(), n = !1, r = e.current, a, o = () => {+ let t = xn(), n = !1, r = e.current, a, o = () => {n = !0, clearInterval(u), i("missing");}, s = () => {n || (clearTimeout(a), a = setTimeout(o, 3e3), c());@@ -53,14 +53,14 @@ function Qn() {};}// src/react/settings/userscript-status.tsx-var Q = xn();-function $n(e, t) {+var Q = Cn();+function nr(e, t) {let n = e.split(".").map(Number), r = t.split(".").map(Number);for (let e = 0; e < 3; e++) if (n[e] !== r[e]) return n[e] > r[e];return !0;}-function er({ enabled: e, release: t }) {- let { frame: n, attempt: r, status: i, retry: a } = Qn(), o = typeof i == "object", s = o && !$n(i.version, t.minimum_version), c = o && !$n(i.version, t.version), l = i === "checking" ? "progress" : i === "missing" ? "neutral" : s || c || !i.paired ? "warning" : "success", u = i === "checking" ? "检测中" : i === "missing" ? "未检测到" : s ? "需更新" : c ? "可更新" : i.paired ? "已连接" : "待配对", d = i === "checking" ? "checking" : i === "missing" ? "missing" : s ? "required" : c ? "available" : i.paired ? e ? "enabled" : "disabled" : "unpaired";+function rr({ enabled: e, release: t }) {+ let { frame: n, attempt: r, status: i, retry: a } = tr(), o = typeof i == "object", s = o && !nr(i.version, t.minimum_version), c = o && !nr(i.version, t.version), l = i === "checking" ? "progress" : i === "missing" ? "neutral" : s || c || !i.paired ? "warning" : "success", u = i === "checking" ? "检测中" : i === "missing" ? "未检测到" : s ? "需更新" : c ? "可更新" : i.paired ? "已连接" : "待配对", d = i === "checking" ? "checking" : i === "missing" ? "missing" : s ? "required" : c ? "available" : i.paired ? e ? "enabled" : "disabled" : "unpaired";return /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)("iframe", {ref: n,title: "Peach 用户脚本检测",@@ -80,7 +80,7 @@ function er({ enabled: e, release: t }) {children: [/* @__PURE__ */ (0, Q.jsx)("span", {className: "text-body-medium text-text-primary",children: "Peach 用户脚本"- }), /* @__PURE__ */ (0, Q.jsx)(Jn, {+ }), /* @__PURE__ */ (0, Q.jsx)(Zn, {tone: l,children: /* @__PURE__ */ (0, Q.jsx)("span", {"data-copy-key": `userscript.${d}.status`,@@ -138,32 +138,32 @@ function er({ enabled: e, release: t }) {})] });}// src/react/settings/jav-browser-settings.tsx-var tr = "/api/configuration/jav-browser";-function nr({ receipt: e, refreshKey: t }) {+var ir = "/api/configuration/jav-browser";+function ar({ receipt: e, refreshKey: t }) {let n = X({queryKey: ["jav-browser-settings", t],- queryFn: ({ signal: e }) => W(tr, e),+ queryFn: ({ signal: e }) => W(ir, e),refetchOnMount: "always",refetchOnWindowFocus: "always"});return n.error && !n.data ? /* @__PURE__ */ (0, Q.jsx)(k, { children: q(n.error) }) : n.isFetching && !n.data ? /* @__PURE__ */ (0, Q.jsx)(Nt, {label: "正在读取浏览器添加设置",- html: dn- }) : n.data ? /* @__PURE__ */ (0, Q.jsx)(rr, {+ html: fn+ }) : n.data ? /* @__PURE__ */ (0, Q.jsx)(or, {initial: n.data,receipt: e}) : null;}-function rr({ initial: e, receipt: t }) {+function or({ initial: e, receipt: t }) {let [n, r] = (0, Z.useState)(e), [i, a] = (0, Z.useState)(e.provider), [o, s] = (0, Z.useState)(""), c = Y();(0, Z.useEffect)(() => {- bn("javBrowser", {+ Sn("javBrowser", {enabled: e.enabled,ready: e.providers.some((t) => t.key === e.provider && t.configured && t.target)}), r(e), a((t) => e.providers.some((e) => e.key === t) ? t : e.provider), e.enabled || s("");}, [e]);let l = (e) => {- c.run(e, (t) => G(tr, {+ c.run(e, (t) => G(ir, {action: e,provider: i}, "POST", t), (n) => {@@ -177,7 +177,7 @@ function rr({ initial: e, receipt: t }) {children: [/* @__PURE__ */ (0, Q.jsxs)(V, { children: [/* @__PURE__ */ (0, Q.jsxs)("div", {className: "flex min-w-0 flex-col gap-4",children: [- /* @__PURE__ */ (0, Q.jsx)(er, {+ /* @__PURE__ */ (0, Q.jsx)(rr, {enabled: n.enabled,release: n.userscript}),@@ -250,17 +250,17 @@ function rr({ initial: e, receipt: t }) {});}// src/react/settings/download-settings.tsx-var ir = "/api/configuration/downloads", ar = "/api/configuration/downloads/check", or = "/api/configuration/downloads/folder", sr = "/api/configuration/downloads/pikpak/login", cr = "/api/configuration/downloads/pikpak/logout", lr = "/api/configuration/downloads/pikpak/browser-login", ur = 2e3, dr = _n("pikpak");-function fr({ initial: e, receipt: t, panel: n, issues: r }) {+var sr = "/api/configuration/downloads", cr = "/api/configuration/downloads/check", lr = "/api/configuration/downloads/folder", ur = "/api/configuration/downloads/pikpak/login", dr = "/api/configuration/downloads/pikpak/logout", fr = "/api/configuration/downloads/pikpak/browser-login", pr = 2e3, mr = yn("pikpak");+function hr({ initial: e, receipt: t, panel: n, issues: r }) {return /* @__PURE__ */ (0, Q.jsxs)("div", {- ...Zn(n),- children: [r, e ? /* @__PURE__ */ (0, Q.jsx)(pr, {+ ...er(n),+ children: [r, e ? /* @__PURE__ */ (0, Q.jsx)(gr, {initial: e,receipt: t}) : null]});}-function pr({ initial: e, receipt: t }) {+function gr({ initial: e, receipt: t }) {let [n, r] = (0, Z.useState)(e), [i, a] = (0, Z.useState)("");(0, Z.useEffect)(() => {r((t) => ({@@ -271,20 +271,20 @@ function pr({ initial: e, receipt: t }) {}, [e.media_sources, e.pikpak_roots]);let o = n.media_sources ?? [], s = o.includes("pikpak"), c = o.some((e) => Ye.includes(e)), l = s && (n.pikpak.logged_in || !!i.trim());return /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [- c ? /* @__PURE__ */ (0, Q.jsx)(mr, {+ c ? /* @__PURE__ */ (0, Q.jsx)(_r, {state: n,settle: r,receipt: t,pikpakAccount: l}) : null,- s ? /* @__PURE__ */ (0, Q.jsx)(_r, {+ s ? /* @__PURE__ */ (0, Q.jsx)(br, {state: n,settle: r,receipt: t,username: i,setUsername: a}) : null,- /* @__PURE__ */ (0, Q.jsx)(nr, {+ /* @__PURE__ */ (0, Q.jsx)(ar, {receipt: t,refreshKey: JSON.stringify([n.media_sources,@@ -295,8 +295,8 @@ function pr({ initial: e, receipt: t }) {})] });}-function mr({ state: e, settle: t, receipt: n, pikpakAccount: r }) {- let [i, a] = (0, Z.useState)(e.config), [o, s] = (0, Z.useState)(""), [c, l] = (0, Z.useState)(String(e.config.wait_hours)), [u, d] = (0, Z.useState)(null), [f, p] = (0, Z.useState)(""), [m, h] = (0, Z.useState)(hr), [g, _] = (0, Z.useState)(""), [v, y] = (0, Z.useState)(!1), b = Y(), x = e.media_sources ?? [], S = x.includes("115"), C = x.includes("pikpak"), w = (e) => i.targets[e] ?? "", T = (e, t) => a({+function _r({ state: e, settle: t, receipt: n, pikpakAccount: r }) {+ let [i, a] = (0, Z.useState)(e.config), [o, s] = (0, Z.useState)(""), [c, l] = (0, Z.useState)(String(e.config.wait_hours)), [u, d] = (0, Z.useState)(null), [f, p] = (0, Z.useState)(""), [m, h] = (0, Z.useState)(vr), [g, _] = (0, Z.useState)(""), [v, y] = (0, Z.useState)(!1), b = Y(), x = e.media_sources ?? [], S = x.includes("115"), C = x.includes("pikpak"), w = (e) => i.targets[e] ?? "", T = (e, t) => a({...i,targets: {...i.targets,@@ -325,7 +325,7 @@ function mr({ state: e, settle: t, receipt: n, pikpakAccount: r }) {target: !e.config.targets[115],root: !e.config.pikpak_root};- b.run("auto", (e) => W(ar, e), (e) => te(e, t), (e) => _(q(e)));+ b.run("auto", (e) => W(cr, e), (e) => te(e, t), (e) => _(q(e)));}, []), /* @__PURE__ */ (0, Q.jsxs)(L, {guide: "download",title: "云下载",@@ -340,13 +340,13 @@ function mr({ state: e, settle: t, receipt: n, pikpakAccount: r }) {token: o,pikpak_account: r};- b.run("save", (e) => G(ir, f, "POST", e), (e) => {+ b.run("save", (e) => G(sr, f, "POST", e), (e) => {let { report: r, ...i } = e;t(i), a(i.config), l(String(i.config.wait_hours)), s(""), r ? te(r, {address: !i.config.clouddrive_address,target: u,root: !i.config.pikpak_root- }, i.config.targets[115] ?? "") : (d(null), p(""), h(hr), y(!1), _("")), n("已保存配置");+ }, i.config.targets[115] ?? "") : (d(null), p(""), h(vr), y(!1), _("")), n("已保存配置");}, (e) => _(q(e)));},children: [@@ -441,7 +441,7 @@ function mr({ state: e, settle: t, receipt: n, pikpakAccount: r }) {divided: !0,children: /* @__PURE__ */ (0, Q.jsx)(ht, { label: "正在检查 CloudDrive2" })}) : null,- u ? /* @__PURE__ */ (0, Q.jsx)(gr, {+ u ? /* @__PURE__ */ (0, Q.jsx)(yr, {report: u,detected: f,suggested: m,@@ -453,7 +453,7 @@ function mr({ state: e, settle: t, receipt: n, pikpakAccount: r }) {pikpak_root: i.pikpak_root,pikpak_account: r};- b.run("folder", (e) => G(or, t, "POST", e), (t) => {+ b.run("folder", (e) => G(lr, t, "POST", e), (t) => {d(t), h((t) => ({...t,target: {@@ -485,7 +485,7 @@ function mr({ state: e, settle: t, receipt: n, pikpakAccount: r }) {pikpak_root: i.pikpak_root,pikpak_account: r};- b.run("check", (e) => G(ar, t, "POST", e), (t) => te(t, e), (e) => _(q(e)));+ b.run("check", (e) => G(cr, t, "POST", e), (t) => te(t, e), (e) => _(q(e)));},disabled: !e.available,...K(b.busy === "check"),@@ -500,12 +500,12 @@ function mr({ state: e, settle: t, receipt: n, pikpakAccount: r }) {]});}-var hr = {+var vr = {target: null,root: "",saved: !1};-function gr({ report: e, detected: t, suggested: n, create: r, creating: i }) {+function yr({ report: e, detected: t, suggested: n, create: r, creating: i }) {let a = n.target, o = !!(t || a || n.root || e.permissions.length || e.folder || e.quota);return !o && !e.problems.length ? null : /* @__PURE__ */ (0, Q.jsxs)(V, {divided: !0,@@ -567,30 +567,30 @@ function gr({ report: e, detected: t, suggested: n, create: r, creating: i }) {] }) : null, e.problems.map((e) => /* @__PURE__ */ (0, Q.jsx)(k, { children: e }, e))]});}-function _r({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {+function br({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {let [a, o] = (0, Z.useState)(""), [s, c] = (0, Z.useState)(!1), [l, u] = (0, Z.useState)(""), [d, f] = (0, Z.useState)(""), [p, m] = (0, Z.useState)(""), h = Y(), g = e.pikpak, _ = e.pikpak_browser, v = _.state === "waiting";(0, Z.useEffect)(() => {if (!v) return;let e = new AbortController(), r, i = async () => {try {- let r = await W(lr, e.signal);+ let r = await W(fr, e.signal);if (e.signal.aborted || (t(r), r.pikpak_browser.state === "done" ? n("已登录 PikPak") : r.pikpak_browser.state !== "waiting" && m(r.pikpak_browser.message), r.pikpak_browser.state !== "waiting")) return;} catch (t) {if (e.signal.aborted) return;f(q(t));}- r = setTimeout(i, ur);+ r = setTimeout(i, pr);};- return r = setTimeout(i, ur), () => {+ return r = setTimeout(i, pr), () => {e.abort(), clearTimeout(r);};}, [v]);let y = () => {- m(""), h.run("browser", (e) => G(lr, {}, "POST", e), (e) => {+ m(""), h.run("browser", (e) => G(fr, {}, "POST", e), (e) => {t(e), f("");}, (e) => f(q(e)));}, b = () => {- h.run("cancel", (e) => G(`${lr}/cancel`, {}, "POST", e), (e) => {+ h.run("cancel", (e) => G(`${fr}/cancel`, {}, "POST", e), (e) => {t(e), f(""), m(e.pikpak_browser.message);}, (e) => f(q(e)));}, x = (e) => {@@ -600,11 +600,11 @@ function _r({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {password: a,remember: s};- h.run("login", (e) => G(sr, i, "POST", e), (e) => {+ h.run("login", (e) => G(ur, i, "POST", e), (e) => {t(e.settings), f(""), e.ok ? (u(""), o(""), n("已登录 PikPak")) : u(e.captcha_url ?? "");}, (e) => f(q(e)));}, S = () => {- h.run("logout", (e) => G(cr, {}, "POST", e), (e) => {+ h.run("logout", (e) => G(dr, {}, "POST", e), (e) => {t(e), f(""), n("已登出 PikPak");}, (e) => f(q(e)));}, C = /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [@@ -654,7 +654,7 @@ function _r({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {return /* @__PURE__ */ (0, Q.jsxs)(L, {guide: "pikpak",title: "PikPak 账号",- icon: /* @__PURE__ */ (0, Q.jsx)(dr, {}),+ icon: /* @__PURE__ */ (0, Q.jsx)(mr, {}),onSubmit: x,aside: /* @__PURE__ */ (0, Q.jsx)(H, {tone: g.logged_in ? "success" : v ? "progress" : T ? "error" : "neutral",@@ -705,7 +705,7 @@ function _r({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {});}// src/react/settings/library-sharing-settings.tsx-function vr({ initial: e, receipt: t }) {+function xr({ initial: e, receipt: t }) {let [n, r] = (0, Z.useState)(e), [i, a] = (0, Z.useState)(null), [o, s] = (0, Z.useState)(!1), [c, l] = (0, Z.useState)(!1), u = (0, Z.useMemo)(() => i ? JSON.stringify(i.data, null, 2) : "", [i]), d = Y(), f = (e) => void d.run("save", (t) => G("/api/configuration/library-sharing", {enabled: e,schema: n.schema,@@ -782,7 +782,7 @@ function vr({ initial: e, receipt: t }) {/* @__PURE__ */ (0, Q.jsx)(O, {summary: "上传数据预览",defaultOpen: !0,- children: /* @__PURE__ */ (0, Q.jsx)(Ln, {+ children: /* @__PURE__ */ (0, Q.jsx)(Bn, {code: u,language: "json",label: "馆藏与口味上传预览",@@ -835,7 +835,7 @@ function vr({ initial: e, receipt: t }) {] });}// src/react/settings/remote-reporting-settings.tsx-function yr({ value: e, onChange: t, busy: n = !1 }) {+function Sr({ value: e, onChange: t, busy: n = !1 }) {return /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(I, { children: /* @__PURE__ */ (0, Q.jsx)(B, {label: "发送版本统计与错误诊断(推荐)",description: "上传版本、系统信息、故障类型、代码位置与发生次数。",@@ -857,9 +857,9 @@ function yr({ value: e, onChange: t, busy: n = !1 }) {})})] });}-function br({ initial: e, receipt: t }) {+function Cr({ initial: e, receipt: t }) {let [n, r] = (0, Z.useState)(e), i = Y();- return /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(yr, {+ return /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(Sr, {value: n,busy: i.busy === "save",onChange: (e) => {@@ -876,16 +876,16 @@ function br({ initial: e, receipt: t }) {}) : null] });}// src/react/components/animated-number.tsx-var xr = .6;-function Sr({ value: e, format: t = (e) => Math.round(e).toLocaleString(), className: n }) {- let r = Mn(), [i, a] = (0, Z.useState)(e), o = (0, Z.useRef)(e);+var wr = .6;+function Tr({ value: e, format: t = (e) => Math.round(e).toLocaleString(), className: n }) {+ let r = Fn(), [i, a] = (0, Z.useState)(e), o = (0, Z.useRef)(e);return (0, Z.useEffect)(() => {if (r || o.current === e) {o.current = e, a(e);return;}let t = Gt(o.current, e, {- duration: xr,+ duration: wr,ease: "easeOut",onUpdate: (e) => {o.current = e, a(e);@@ -898,7 +898,7 @@ function Sr({ value: e, format: t = (e) => Math.round(e).toLocaleString(), class});}// node_modules/recharts/es6/state/selectors/pieSelectors.js-function Cr(e, t) {+function Er(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -908,30 +908,30 @@ function Cr(e, t) {}return n;}-function wr(e) {+function Dr(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? Cr(Object(n), !0).forEach(function(t) {- Tr(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Cr(Object(n)).forEach(function(t) {+ t % 2 ? Er(Object(n), !0).forEach(function(t) {+ Or(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Er(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function Tr(e, t, n) {- return (t = Er(t)) in e ? Object.defineProperty(e, t, {+function Or(e, t, n) {+ return (t = kr(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function Er(e) {- var t = Dr(e, "string");+function kr(e) {+ var t = Ar(e, "string");return typeof t == "symbol" ? t : t + "";}-function Dr(e, t) {+function Ar(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -941,20 +941,20 @@ function Dr(e, t) {}return (t === "string" ? String : Number)(e);}-var Or = oe([De, (e, t) => t], (e, t) => e.filter((e) => e.type === "pie").find((e) => e.id === t)), kr = [], Ar = (e, t, n) => n?.length === 0 ? kr : n, jr = oe([+var jr = oe([De, (e, t) => t], (e, t) => e.filter((e) => e.type === "pie").find((e) => e.id === t)), Mr = [], Nr = (e, t, n) => n?.length === 0 ? Mr : n, Pr = oe([Te,- Or,- Ar+ jr,+ Nr], (e, t, n) => {var r = e.chartData;if (t != null) {var i = t?.data != null && t.data.length > 0 ? t.data : r;- if (i && i.length || n == null || (i = n.map((e) => wr(wr({}, t.presentationProps), e.props))), i != null) return i;+ if (i && i.length || n == null || (i = n.map((e) => Dr(Dr({}, t.presentationProps), e.props))), i != null) return i;}-}), Mr = oe([+}), Fr = oe([+ Pr,jr,- Or,- Ar+ Nr], (e, t, n) => {if (e != null && t != null) return e.map((e, r) => {var i, a = he(e, t.nameKey, t.name), o = n != null && (i = n[r]) != null && (i = i.props) != null && i.fill ? n[r].props.fill : typeof e == "object" && e && "fill" in e ? e.fill : t.fill;@@ -966,42 +966,42 @@ var Or = oe([De, (e, t) => t], (e, t) => e.filter((e) => e.type === "pie").find(type: t.legendType};});-}), Nr = oe([+}), Ir = oe([+ Pr,jr,- Or,- Ar,+ Nr,Ee], (e, t, n, r) => {- if (t != null && e != null) return ii({+ if (t != null && e != null) return si({offset: r,pieSettings: t,displayedData: e,cells: n});-}), Pr = ["key"], Fr = [+}), Lr = ["key"], Rr = ["onMouseEnter","onClick","onMouseLeave"-], Ir = ["id"], Lr = ["id"];-function Rr() {- return Rr = Object.assign ? Object.assign.bind() : function(e) {+], zr = ["id"], Br = ["id"];+function Vr() {+ return Vr = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, Rr.apply(null, arguments);+ }, Vr.apply(null, arguments);}-function zr(e, t) {+function Hr(e, t) {if (e == null) return {};- var n, r, i = Br(e, t);+ var n, r, i = Ur(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function Br(e, t) {+function Ur(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -1010,7 +1010,7 @@ function Br(e, t) {}return n;}-function Vr(e, t) {+function Wr(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -1023,27 +1023,27 @@ function Vr(e, t) {function $(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? Vr(Object(n), !0).forEach(function(t) {- Hr(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Vr(Object(n)).forEach(function(t) {+ t % 2 ? Wr(Object(n), !0).forEach(function(t) {+ Gr(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Wr(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function Hr(e, t, n) {- return (t = Ur(t)) in e ? Object.defineProperty(e, t, {+function Gr(e, t, n) {+ return (t = Kr(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function Ur(e) {- var t = Wr(e, "string");+function Kr(e) {+ var t = qr(e, "string");return typeof t == "symbol" ? t : t + "";}-function Wr(e, t) {+function qr(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -1053,12 +1053,12 @@ function Wr(e, t) {}return (t === "string" ? String : Number)(e);}-var Gr = S;-function Kr(e) {- var n = (0, Z.useMemo)(() => ce(e.children, t), [e.children]), r = Me((t) => Mr(t, e.id, n));+var Jr = S;+function Yr(e) {+ var n = (0, Z.useMemo)(() => ce(e.children, t), [e.children]), r = Me((t) => Fr(t, e.id, n));return r == null ? null : /*#__PURE__*/ Z.createElement(w, { legendPayload: r });}-function qr(e) {+function Xr(e) {if (e != null && typeof e != "boolean" && typeof e != "function") {if (/*#__PURE__*/ Z.isValidElement(e)) {var t = e.props?.fill;@@ -1068,8 +1068,8 @@ function qr(e) {return typeof n == "string" ? n : void 0;}}-var Jr = /*#__PURE__*/ Z.memo((e) => {- var t = e.dataKey, n = e.nameKey, r = e.sectors, i = e.stroke, a = e.strokeWidth, o = e.fill, s = e.name, c = e.hide, l = e.tooltipType, u = e.formatter, d = e.id, f = e.activeShape, p = qr(f), m = {+var Zr = /*#__PURE__*/ Z.memo((e) => {+ var t = e.dataKey, n = e.nameKey, r = e.sectors, i = e.stroke, a = e.strokeWidth, o = e.fill, s = e.name, c = e.hide, l = e.tooltipType, u = e.formatter, d = e.id, f = e.activeShape, p = Xr(f), m = {dataDefinedOnItem: r.map((e) => {var t = e.tooltipPayload;return p == null || t == null ? t : t.map((e) => $($({}, e), {}, {@@ -1094,42 +1094,42 @@ var Jr = /*#__PURE__*/ Z.memo((e) => {}};return /*#__PURE__*/ Z.createElement(T, { tooltipEntrySettings: m });-}), Yr = (e, t) => e > t ? "start" : e < t ? "end" : "middle", Xr = (e, t, n) => pe(typeof t == "function" ? t(e) : t, n, n * .8), Zr = (e, t, n) => {+}), Qr = (e, t) => e > t ? "start" : e < t ? "end" : "middle", $r = (e, t, n) => pe(typeof t == "function" ? t(e) : t, n, n * .8), ei = (e, t, n) => {var r = t.top, i = t.left, a = t.width, o = t.height, s = fe(a, o);return {cx: i + pe(e.cx, a, a / 2),cy: r + pe(e.cy, o, o / 2),innerRadius: pe(e.innerRadius, s, 0),- outerRadius: Xr(n, e.outerRadius, s),+ outerRadius: $r(n, e.outerRadius, s),maxRadius: e.maxRadius || Math.sqrt(a * a + o * o) / 2};-}, Qr = (e, t) => ye(t - e) * Math.min(Math.abs(t - e), 360), $r = (e, t) => {+}, ti = (e, t) => ye(t - e) * Math.min(Math.abs(t - e), 360), ni = (e, t) => {if (/*#__PURE__*/ Z.isValidElement(e)) return /*#__PURE__*/ Z.cloneElement(e, t);if (typeof e == "function") return e(t);var n = Xt("recharts-pie-label-line", typeof e == "boolean" ? "" : e.className);t.key;- var r = zr(t, Pr);- return /*#__PURE__*/ Z.createElement(l, Rr({}, r, {+ var r = Hr(t, Lr);+ return /*#__PURE__*/ Z.createElement(l, Vr({}, r, {type: "linear",className: n}));-}, ei = (e, t, n) => {+}, ri = (e, t, n) => {if (/*#__PURE__*/ Z.isValidElement(e)) return /*#__PURE__*/ Z.cloneElement(e, t);var r = n;if (typeof e == "function" && (r = e(t), /*#__PURE__*/ Z.isValidElement(r))) return r;var i = Xt("recharts-pie-label-text", ue(e));- return /*#__PURE__*/ Z.createElement(ne, Rr({}, t, {+ return /*#__PURE__*/ Z.createElement(ne, Vr({}, t, {alignmentBaseline: "middle",className: i}), r);};-function ti(e) {+function ii(e) {var t = e.sectors, n = e.props, r = e.showLabels, i = n.label, a = n.labelLine, o = n.dataKey;if (!r || !i || !t) return null;var s = Oe(n), c = ke(i), l = ke(a), u = typeof i == "object" && "offsetRadius" in i && typeof i.offsetRadius == "number" && i.offsetRadius || 20, d = t.map((e, t) => {var n = (e.startAngle + e.endAngle) / 2, r = be(e.cx, e.cy, e.outerRadius + u, n), d = $($($($({}, s), e), {}, { stroke: "none" }, c), {}, {index: t,- textAnchor: Yr(r.x, e.cx)+ textAnchor: Qr(r.x, e.cx)}, r), p = $($($($({}, s), e), {}, {fill: "none",stroke: e.fill@@ -1141,20 +1141,20 @@ function ti(e) {return /*#__PURE__*/ Z.createElement(re, {zIndex: f.label,key: `label-${e.startAngle}-${e.endAngle}-${e.midAngle}-${t}`- }, /*#__PURE__*/ Z.createElement(g, null, a && $r(a, p), ei(i, d, he(e, o))));+ }, /*#__PURE__*/ Z.createElement(g, null, a && ni(a, p), ri(i, d, he(e, o))));});return /*#__PURE__*/ Z.createElement(g, { className: "recharts-pie-labels" }, d);}-function ni(e) {+function ai(e) {var t = e.sectors, n = e.props, r = e.showLabels, i = n.label;- return typeof i == "object" && i && "position" in i ? /*#__PURE__*/ Z.createElement(h, { label: i }) : /*#__PURE__*/ Z.createElement(ti, {+ return typeof i == "object" && i && "position" in i ? /*#__PURE__*/ Z.createElement(h, { label: i }) : /*#__PURE__*/ Z.createElement(ii, {sectors: t,props: n,showLabels: r});}-function ri(e) {- var t = e.sectors, n = e.activeShape, r = e.inactiveShape, i = e.allOtherPieProps, a = e.shape, o = e.id, s = e.animationElapsedTime, c = e.isAnimating, l = e.isEntrance, f = Me(we), p = Me(Se), m = Me(Ce), h = i.onMouseEnter, _ = i.onClick, v = i.onMouseLeave, y = zr(i, Fr), b = Pe(h, i.dataKey, o), x = Fe(v), S = Ne(_, i.dataKey, o);+function oi(e) {+ var t = e.sectors, n = e.activeShape, r = e.inactiveShape, i = e.allOtherPieProps, a = e.shape, o = e.id, s = e.animationElapsedTime, c = e.isAnimating, l = e.isEntrance, f = Me(we), p = Me(Se), m = Me(Ce), h = i.onMouseEnter, _ = i.onClick, v = i.onMouseLeave, y = Hr(i, Rr), b = Pe(h, i.dataKey, o), x = Fe(v), S = Ne(_, i.dataKey, o);return t == null || t.length === 0 ? null : /*#__PURE__*/ Z.createElement(Z.Fragment, null, t.map((e, h) => {if (e?.startAngle === 0 && e?.endAngle === 0 && t.length !== 1) return null;var _ = m == null || m === o, v = String(h) === f && (p == null || i.dataKey === p) && _, C = n && v ? n : f ? r : null, w = $($({}, e), {}, {@@ -1168,7 +1168,7 @@ function ri(e) {[d]: h,[u]: o});- return /*#__PURE__*/ Z.createElement(g, Rr({+ return /*#__PURE__*/ Z.createElement(g, Vr({key: `sector-${e?.startAngle}-${e?.endAngle}-${e.midAngle}-${h}`,tabIndex: -1,className: "recharts-pie-sector"@@ -1178,13 +1178,13 @@ function ri(e) {onClick: S(e, h)}), /*#__PURE__*/ Z.createElement(ee, {option: C ?? a,- DefaultShape: Gr,+ DefaultShape: Jr,shapeProps: w}));}));}-function ii(e) {- var t = e.pieSettings, n = e.displayedData, r = e.cells, i = e.offset, a = t.cornerRadius, o = t.startAngle, s = t.endAngle, c = t.dataKey, l = t.nameKey, u = t.tooltipType, d = Math.abs(t.minAngle), f = Qr(o, s), p = Math.abs(f), m = n.length <= 1 ? 0 : t.paddingAngle ?? 0, h = n.filter((e) => he(e, c, 0) !== 0).length, g = (p >= 360 ? h : h - 1) * m, _ = n.reduce((e, t) => {+function si(e) {+ var t = e.pieSettings, n = e.displayedData, r = e.cells, i = e.offset, a = t.cornerRadius, o = t.startAngle, s = t.endAngle, c = t.dataKey, l = t.nameKey, u = t.tooltipType, d = Math.abs(t.minAngle), f = ti(o, s), p = Math.abs(f), m = n.length <= 1 ? 0 : t.paddingAngle ?? 0, h = n.filter((e) => he(e, c, 0) !== 0).length, g = (p >= 360 ? h : h - 1) * m, _ = n.reduce((e, t) => {var n = he(t, c, 0);return e + (_e(n) ? n : 0);}, 0), v = d > 0 && _ > 0 && n.some((e) => {@@ -1194,7 +1194,7 @@ function ii(e) {if (_ > 0) {var x;b = n.map((e, n) => {- var s = he(e, c, 0), d = he(e, l, n), p = Zr(t, i, e), h = (_e(s) ? s : 0) / _, g, b = $($({}, e), r && r[n] && r[n].props), S = b != null && "fill" in b && typeof b.fill == "string" ? b.fill : t.fill;+ var s = he(e, c, 0), d = he(e, l, n), p = ei(t, i, e), h = (_e(s) ? s : 0) / _, g, b = $($({}, e), r && r[n] && r[n].props), S = b != null && "fill" in b && typeof b.fill == "string" ? b.fill : t.fill;g = n ? x.endAngle + ye(f) * m * (s === 0 ? 0 : 1) : o;var C = g + ye(f) * ((s === 0 ? 0 : v) + h * y), w = (g + C) / 2, T = (p.innerRadius + p.outerRadius) / 2, ee = [{name: d,@@ -1226,7 +1226,7 @@ function ii(e) {}return b;}-function ai(e) {+function ci(e) {var t = e.showLabels, n = e.sectors, r = e.children, i = (0, Z.useMemo)(() => !t || !n ? [] : n.map((e) => ({value: e.value,payload: e.payload,@@ -1245,7 +1245,7 @@ function ai(e) {})), [n, t]);return /*#__PURE__*/ Z.createElement(b, { value: t ? i : void 0 }, r);}-var oi = (e, t) => {+var li = (e, t) => {if (e == null) return [];var n = [], r = e.find((e) => e.status !== "removed"), i = r ? r.next.startAngle : 0;return e.forEach((e, r) => {@@ -1267,11 +1267,11 @@ var oi = (e, t) => {}}), n;};-function si(t) {+function ui(t) {var n = t.props, r = t.previousSectorsRef, i = t.id, a = n.sectors, o = n.activeShape, s = n.inactiveShape, c = n.animationInterpolateFn, l = je(n.onAnimationStart, n.onAnimationEnd), u = l.isAnimating, d = l.handleAnimationStart, f = l.handleAnimationEnd, p = Ie();if (p == null) return null;var m = a[0];- return /*#__PURE__*/ Z.createElement(ai, {+ return /*#__PURE__*/ Z.createElement(ci, {showLabels: !u,sectors: a}, /*#__PURE__*/ Z.createElement(e, {@@ -1288,7 +1288,7 @@ function si(t) {animationInterpolateFn: c,animationMatchBy: n.animationMatchBy,layout: p- }, (e, t, r) => /*#__PURE__*/ Z.createElement(g, null, /*#__PURE__*/ Z.createElement(ri, {+ }, (e, t, r) => /*#__PURE__*/ Z.createElement(g, null, /*#__PURE__*/ Z.createElement(oi, {sectors: e,activeShape: o,inactiveShape: s,@@ -1298,7 +1298,7 @@ function si(t) {animationElapsedTime: t,isAnimating: u || t < 1,isEntrance: r- }))), /*#__PURE__*/ Z.createElement(ni, {+ }))), /*#__PURE__*/ Z.createElement(ai, {showLabels: !u,sectors: a,props: n@@ -1312,11 +1312,11 @@ function si(t) {clockWise: !1}, n.children));}-var ci = {+var di = {animationBegin: 400,animationDuration: 1500,animationEasing: "ease",- animationInterpolateFn: oi,+ animationInterpolateFn: li,animationMatchBy: ve,cx: "50%",cy: "50%",@@ -1334,17 +1334,17 @@ var ci = {outerRadius: "80%",paddingAngle: 0,rootTabIndex: 0,- shape: Gr,+ shape: Jr,startAngle: 0,stroke: "#fff",zIndex: f.area};-function li(e) {- var n = e.id, r = zr(e, Ir), i = e.hide, a = e.className, o = e.rootTabIndex, s = (0, Z.useMemo)(() => ce(e.children, t), [e.children]), c = Me((e) => Nr(e, n, s)), l = (0, Z.useRef)(null), u = Xt("recharts-pie", a);+function fi(e) {+ var n = e.id, r = Hr(e, zr), i = e.hide, a = e.className, o = e.rootTabIndex, s = (0, Z.useMemo)(() => ce(e.children, t), [e.children]), c = Me((e) => Ir(e, n, s)), l = (0, Z.useRef)(null), u = Xt("recharts-pie", a);return i || c == null ? (l.current = null, /*#__PURE__*/ Z.createElement(g, {tabIndex: o,className: u- })) : /*#__PURE__*/ Z.createElement(re, { zIndex: e.zIndex }, /*#__PURE__*/ Z.createElement(Jr, {+ })) : /*#__PURE__*/ Z.createElement(re, { zIndex: e.zIndex }, /*#__PURE__*/ Z.createElement(Zr, {dataKey: e.dataKey,nameKey: e.nameKey,sectors: c,@@ -1360,14 +1360,14 @@ function li(e) {}), /*#__PURE__*/ Z.createElement(g, {tabIndex: o,className: u- }, /*#__PURE__*/ Z.createElement(si, {+ }, /*#__PURE__*/ Z.createElement(ui, {props: $($({}, r), {}, { sectors: c }),previousSectorsRef: l,id: n})));}-function ui(e) {- var t = xe(e, ci), n = t.id, r = zr(t, Lr), i = Oe(r);+function pi(e) {+ var t = xe(e, di), n = t.id, r = Hr(t, Br), i = Oe(r);return /*#__PURE__*/ Z.createElement(x, {id: n,type: "pie"@@ -1395,12 +1395,12 @@ function ui(e) {cornerRadius: r.cornerRadius,presentationProps: i,maxRadius: t.maxRadius- }), /*#__PURE__*/ Z.createElement(Kr, Rr({}, r, { id: e })), /*#__PURE__*/ Z.createElement(li, Rr({}, r, { id: e }))));+ }), /*#__PURE__*/ Z.createElement(Yr, Vr({}, r, { id: e })), /*#__PURE__*/ Z.createElement(fi, Vr({}, r, { id: e }))));}-var di = ui;-di.displayName = "Pie";+var mi = pi;+mi.displayName = "Pie";// node_modules/recharts/es6/chart/PieChart.js-function fi(e, t) {+function hi(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -1410,30 +1410,30 @@ function fi(e, t) {}return n;}-function pi(e) {+function gi(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? fi(Object(n), !0).forEach(function(t) {- mi(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fi(Object(n)).forEach(function(t) {+ t % 2 ? hi(Object(n), !0).forEach(function(t) {+ _i(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : hi(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function mi(e, t, n) {- return (t = hi(t)) in e ? Object.defineProperty(e, t, {+function _i(e, t, n) {+ return (t = vi(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function hi(e) {- var t = gi(e, "string");+function vi(e) {+ var t = yi(e, "string");return typeof t == "symbol" ? t : t + "";}-function gi(e, t) {+function yi(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -1443,27 +1443,27 @@ function gi(e, t) {}return (t === "string" ? String : Number)(e);}-var _i = ["item"], vi = pi(pi({}, se), {}, {+var bi = ["item"], xi = gi(gi({}, se), {}, {layout: "centric",startAngle: 0,endAngle: 360-}), yi = /*#__PURE__*/ (0, Z.forwardRef)((e, t) => {- var n = xe(e, vi);+}), Si = /*#__PURE__*/ (0, Z.forwardRef)((e, t) => {+ var n = xe(e, xi);return /*#__PURE__*/ Z.createElement(v, {chartName: "PieChart",defaultTooltipEventType: "item",- validateTooltipEventTypes: _i,+ validateTooltipEventTypes: bi,tooltipPayloadSearcher: ae,categoricalChartProps: n,ref: t});-}), bi = 5, xi = 2e3, Si = 0, Ci = "80%", wi = 0, Ti = 0, Ei = 0, Di = 360, Oi = [], ki = (0, Z.createContext)(null);-function Ai() {- let e = (0, Z.use)(ki);+}), Ci = 5, wi = 2e3, Ti = 0, Ei = "80%", Di = 0, Oi = 0, ki = 0, Ai = 360, ji = [], Mi = (0, Z.createContext)(null);+function Ni() {+ let e = (0, Z.use)(Mi);if (!e) throw Error("Pie chart parts (<Pie />, <Tooltip />, …) must be used within <EvilPieChart />");return e;}-function ji({ config: e, data: t, dataKey: n, nameKey: i, children: a, className: o, chartProps: s, defaultSelectedSector: c = null, onSelectionChange: l, isLoading: u = !1 }) {+function Pi({ config: e, data: t, dataKey: n, nameKey: i, children: a, className: o, chartProps: s, defaultSelectedSector: c = null, onSelectionChange: l, isLoading: u = !1 }) {let [d, f] = (0, Z.useState)(c), p = (0, Z.useCallback)((e) => {if (f(e), e === null) {l?.(null);@@ -1496,12 +1496,12 @@ function ji({ config: e, data: t, dataKey: n, nameKey: i, children: a, classNamed,p]);- return /* @__PURE__ */ (0, Q.jsx)(ki, {+ return /* @__PURE__ */ (0, Q.jsx)(Mi, {value: m,children: /* @__PURE__ */ (0, Q.jsxs)(r, {className: o,config: e,- children: [/* @__PURE__ */ (0, Q.jsx)(_, { isLoading: u }), /* @__PURE__ */ (0, Q.jsx)(yi, {+ children: [/* @__PURE__ */ (0, Q.jsx)(_, { isLoading: u }), /* @__PURE__ */ (0, Q.jsx)(Si, {id: "evil-charts-pie-chart",accessibilityLayer: !0,...s,@@ -1510,10 +1510,10 @@ function ji({ config: e, data: t, dataKey: n, nameKey: i, children: a, className})});}-function Mi({ variant: e = "gradient", innerRadius: t = Si, outerRadius: n = Ci, cornerRadius: r = wi, paddingAngle: i = Ti, startAngle: a = Ei, endAngle: o = Di, isClickable: s = !1, glowingSectors: c = Oi, children: l, pieProps: u }) {- let { config: d, data: f, dataKey: p, nameKey: m, isLoading: h, selectedSector: g, selectSector: _ } = Ai(), v = (0, Z.useId)().replace(/:/g, "");- if (h) return /* @__PURE__ */ (0, Q.jsx)(di, {- data: Bi,+function Fi({ variant: e = "gradient", innerRadius: t = Ti, outerRadius: n = Ei, cornerRadius: r = Di, paddingAngle: i = Oi, startAngle: a = ki, endAngle: o = Ai, isClickable: s = !1, glowingSectors: c = ji, children: l, pieProps: u }) {+ let { config: d, data: f, dataKey: p, nameKey: m, isLoading: h, selectedSector: g, selectSector: _ } = Ni(), v = (0, Z.useId)().replace(/:/g, "");+ if (h) return /* @__PURE__ */ (0, Q.jsx)(mi, {+ data: Ui,dataKey: "value",nameKey: "name",innerRadius: t,@@ -1524,13 +1524,13 @@ function Mi({ variant: e = "gradient", innerRadius: t = Si, outerRadius: n = Ci,endAngle: o,strokeWidth: 0,isAnimationActive: !1,- shape: (e) => /* @__PURE__ */ (0, Q.jsx)(Vi, { ...e })+ shape: (e) => /* @__PURE__ */ (0, Q.jsx)(Wi, { ...e })});- let y = Li(l, p), b = f.map((e) => ({+ let y = Bi(l, p), b = f.map((e) => ({...e,fill: `url(#${v}-colors-${e[m]})`}));- return /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(di, {+ return /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(mi, {data: b,dataKey: p,nameKey: m,@@ -1562,18 +1562,18 @@ function Mi({ variant: e = "gradient", innerRadius: t = Si, outerRadius: n = Ci,},...u,children: y- }), /* @__PURE__ */ (0, Q.jsxs)("defs", { children: [/* @__PURE__ */ (0, Q.jsx)(Ri, {+ }), /* @__PURE__ */ (0, Q.jsxs)("defs", { children: [/* @__PURE__ */ (0, Q.jsx)(Vi, {id: v,config: d,variant: e- }), c.length > 0 && /* @__PURE__ */ (0, Q.jsx)(zi, {+ }), c.length > 0 && /* @__PURE__ */ (0, Q.jsx)(Hi, {id: v,glowingSectors: c})] })] });}-var Ni = () => null;-function Pi({ variant: e, roundness: t, defaultIndex: n }) {- let { isLoading: r, nameKey: i } = Ai();+var Ii = () => null;+function Li({ variant: e, roundness: t, defaultIndex: n }) {+ let { isLoading: r, nameKey: i } = Ni();return r ? null : /* @__PURE__ */ (0, Q.jsx)(s, {defaultIndex: n,content: /* @__PURE__ */ (0, Q.jsx)(c, {@@ -1584,8 +1584,8 @@ function Pi({ variant: e, roundness: t, defaultIndex: n }) {})});}-function Fi({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {- let { nameKey: o, selectedSector: s, selectSector: c } = Ai();+function Ri({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {+ let { nameKey: o, selectedSector: s, selectSector: c } = Ni();return /* @__PURE__ */ (0, Q.jsx)(i, {verticalAlign: n,align: t,@@ -1598,13 +1598,13 @@ function Fi({ variant: e, align: t = "center", verticalAlign: n = "bottom", isCl})});}-function Ii({ variant: e = "dots" }) {+function zi({ variant: e = "dots" }) {return /* @__PURE__ */ (0, Q.jsx)(n, { variant: e });}-var Li = (e, t) => {+var Bi = (e, t) => {let n = null;return Z.Children.forEach(e, (e) => {- if (!(0, Z.isValidElement)(e) || e.type !== Ni) return;+ if (!(0, Z.isValidElement)(e) || e.type !== Ii) return;let { dataKey: r, labelListProps: i } = e.props;n = /* @__PURE__ */ (0, Q.jsx)(m, {dataKey: r ?? t,@@ -1616,7 +1616,7 @@ var Li = (e, t) => {...i});}), n;-}, Ri = ({ id: e, config: t }) => /* @__PURE__ */ (0, Q.jsx)(Q.Fragment, { children: Object.entries(t).map(([t, n]) => {+}, Vi = ({ id: e, config: t }) => /* @__PURE__ */ (0, Q.jsx)(Q.Fragment, { children: Object.entries(t).map(([t, n]) => {let r = de(n);return /* @__PURE__ */ (0, Q.jsx)("linearGradient", {id: `${e}-colors-${t}`,@@ -1638,7 +1638,7 @@ var Li = (e, t) => {}, i);})}, `${e}-colors-${t}`);-}) }), zi = ({ id: e, glowingSectors: t }) => /* @__PURE__ */ (0, Q.jsx)(Q.Fragment, { children: t.map((t) => /* @__PURE__ */ (0, Q.jsxs)("filter", {+}) }), Hi = ({ id: e, glowingSectors: t }) => /* @__PURE__ */ (0, Q.jsx)(Q.Fragment, { children: t.map((t) => /* @__PURE__ */ (0, Q.jsxs)("filter", {id: `${e}-glow-${t}`,x: "-100%",y: "-100%",@@ -1658,12 +1658,12 @@ var Li = (e, t) => {}),/* @__PURE__ */ (0, Q.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, Q.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, Q.jsx)("feMergeNode", { in: "SourceGraphic" })] })]-}, `${e}-glow-${t}`)) }), Bi = Array.from({ length: bi }, (e, t) => ({+}, `${e}-glow-${t}`)) }), Ui = Array.from({ length: Ci }, (e, t) => ({name: `loading${t}`,- value: 100 / bi-})), Vi = (e) => {- let { index: t = 0, ...n } = e, r = t / bi * (xi / 1e3);- return /* @__PURE__ */ (0, Q.jsx)(pn.g, {+ value: 100 / Ci+})), Wi = (e) => {+ let { index: t = 0, ...n } = e, r = t / Ci * (wi / 1e3);+ return /* @__PURE__ */ (0, Q.jsx)(mn.g, {initial: { opacity: .15 },animate: { opacity: [.15,@@ -1671,7 +1671,7 @@ var Li = (e, t) => {.15] },transition: {- duration: xi / 1e3,+ duration: wi / 1e3,delay: r,repeat: Infinity,ease: "easeInOut"@@ -1682,9 +1682,9 @@ var Li = (e, t) => {})});};-ji.Pie = Mi, ji.Label = Ni, ji.Tooltip = Pi, ji.Legend = Fi, ji.Background = Ii;+Pi.Pie = Fi, Pi.Label = Ii, Pi.Tooltip = Li, Pi.Legend = Ri, Pi.Background = zi;// src/react/settings/storage-charts.tsx-var Hi = {+var Gi = {database: "var(--color-chart-1)",backups: "var(--color-chart-2)",playback: "var(--color-chart-3)",@@ -1694,7 +1694,7 @@ var Hi = {sources: "var(--color-chart-7)",records: "var(--color-chart-8)",tools: "var(--color-chart-9)"-}, Ui = "var(--color-text-tertiary)", Wi = {+}, Ki = "var(--color-text-tertiary)", qi = {database: "bg-chart-1",backups: "bg-chart-2",playback: "bg-chart-3",@@ -1704,23 +1704,23 @@ var Hi = {sources: "bg-chart-7",records: "bg-chart-8",tools: "bg-chart-9"-}, Gi = (e) => J(e);-function Ki(e) {- let t = e.filter((e) => Hi[e.key] && e.bytes > 0).map((e) => ({+}, Ji = (e) => J(e);+function Yi(e) {+ let t = e.filter((e) => Gi[e.key] && e.bytes > 0).map((e) => ({key: e.key,label: e.label,bytes: e.bytes,- color: Hi[e.key]- })), n = e.filter((e) => !Hi[e.key]).reduce((e, t) => e + t.bytes, 0);+ color: Gi[e.key]+ })), n = e.filter((e) => !Gi[e.key]).reduce((e, t) => e + t.bytes, 0);return n > 0 ? [...t, {key: "rest",label: "其余",bytes: n,- color: Ui+ color: Ki}] : t;}-function qi({ storage: e }) {- let t = e.usage, n = Ki(t.categories), r = Object.fromEntries(n.map((e) => [e.key, {+function Xi({ storage: e }) {+ let t = e.usage, n = Yi(t.categories), r = Object.fromEntries(n.map((e) => [e.key, {label: e.label,colors: Ae(e.color)}])), i = n.map((e) => ({@@ -1732,14 +1732,14 @@ function qi({ storage: e }) {children: [/* @__PURE__ */ (0, Q.jsxs)("div", {className: "relative mx-auto size-48 flex-none",role: "img",- "aria-label": `数据目录共 ${Gi(t.total_bytes)},各类占比`,- children: [/* @__PURE__ */ (0, Q.jsxs)(ji, {+ "aria-label": `数据目录共 ${Ji(t.total_bytes)},各类占比`,+ children: [/* @__PURE__ */ (0, Q.jsxs)(Pi, {data: i,dataKey: "value",nameKey: "slice",config: r,className: "aspect-square size-48 flex-none",- children: [/* @__PURE__ */ (0, Q.jsx)(ji.Pie, {+ children: [/* @__PURE__ */ (0, Q.jsx)(Pi.Pie, {innerRadius: "68%",outerRadius: "100%",paddingAngle: 1,@@ -1747,13 +1747,13 @@ function qi({ storage: e }) {}), /* @__PURE__ */ (0, Q.jsx)(o, {nameKey: "slice",hideLabel: !0,- format: Gi+ format: Ji})]}), /* @__PURE__ */ (0, Q.jsxs)("div", {className: "pointer-events-none absolute inset-0 flex flex-col items-center justify-center",children: [/* @__PURE__ */ (0, Q.jsx)("b", {className: "text-title-2-medium tabular-nums text-text-primary",- children: Gi(t.total_bytes)+ children: Ji(t.total_bytes)}), /* @__PURE__ */ (0, Q.jsxs)("small", {className: "text-caption-1-regular tabular-nums text-text-secondary",children: [t.total_files.toLocaleString(), " 个文件"]@@ -1769,20 +1769,20 @@ function qi({ storage: e }) {children: [/* @__PURE__ */ (0, Q.jsx)("i", {"aria-hidden": !0,- className: `${te} ${Wi[e.key] || "bg-text-tertiary"}`+ className: `${te} ${qi[e.key] || "bg-text-tertiary"}`}),e.label,/* @__PURE__ */ (0, Q.jsx)("span", {className: "tabular-nums text-text-primary",- children: Gi(e.bytes)+ children: Ji(e.bytes)})]}, e.key))- }), /* @__PURE__ */ (0, Q.jsx)(Ji, { storage: e })]+ }), /* @__PURE__ */ (0, Q.jsx)(Zi, { storage: e })]})]});}-function Ji({ storage: e }) {+function Zi({ storage: e }) {if (e.total_bytes === null || e.free_bytes === null || !e.usage) return null;let t = Math.min(e.usage.total_bytes, e.total_bytes), n = e.free_bytes, r = Math.max(0, e.total_bytes - n - t), i = {peach: {@@ -1791,7 +1791,7 @@ function Ji({ storage: e }) {},others: {label: "其他文件",- colors: Ae(Ui)+ colors: Ae(Ki)},free: {label: "可用",@@ -1804,7 +1804,7 @@ function Ji({ storage: e }) {className: "text-caption-1-regular text-text-secondary",children: ["所在磁盘共 ",- Gi(e.total_bytes),+ Ji(e.total_bytes),e.system_drive ? "(系统盘)" : "",",Peach 占 ",((t) => {@@ -1812,7 +1812,7 @@ function Ji({ storage: e }) {return n < .1 ? "不到 0.1%" : `${n.toFixed(+(n < 10))}%`;})(t),", 可用 ",- Gi(n)+ Ji(n)]}), /* @__PURE__ */ (0, Q.jsxs)(p, {data: [{@@ -1843,26 +1843,26 @@ function Ji({ storage: e }) {/* @__PURE__ */ (0, Q.jsx)(p.Bar, { dataKey: "free" }),/* @__PURE__ */ (0, Q.jsx)(o, {hideLabel: !0,- format: Gi+ format: Ji})]})]});}// src/react/settings/storage-settings.tsx-var Yi = "/api/configuration/storage", Xi = 1500, Zi = 864e5, Qi = (e) => e instanceof qe && e.body?.errors?.target || q(e);-function $i(e) {+var Qi = "/api/configuration/storage", $i = 1500, ea = 864e5, ta = (e) => e instanceof qe && e.body?.errors?.target || q(e);+function na(e) {if (e.free_bytes === null || e.total_bytes === null) return "未取得";let t = `${J(e.free_bytes)} 可用,共 ${J(e.total_bytes)}`;return e.system_drive ? `${t}(系统盘)` : t;}-var ea = (e) => e.cleanable && e.reclaimable > 0;-function ta({ job: e }) {+var ra = (e) => e.cleanable && e.reclaimable > 0;+function ia({ job: e }) {let t = e.files || 0, n = e.expected_files || 0, r = /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: ["已统计 ",- /* @__PURE__ */ (0, Q.jsx)(Sr, { value: t }),+ /* @__PURE__ */ (0, Q.jsx)(Tr, { value: t })," 个文件 · ",- /* @__PURE__ */ (0, Q.jsx)(Sr, {+ /* @__PURE__ */ (0, Q.jsx)(Tr, {value: e.bytes || 0,format: J})@@ -1882,8 +1882,8 @@ function ta({ job: e }) {] })] }) : /* @__PURE__ */ (0, Q.jsx)(ht, { label: "正在统计占用空间" }), n ? null : /* @__PURE__ */ (0, Q.jsx)(N, { children: r })]});}-function na({ category: e, selected: t, disabled: n, onToggle: r }) {- let i = ea(e), a = e.cleanable ? e.reclaimable > 0 ? `清理后${e.note}` : "没有可以清理的文件" : `不能清理:${e.note}`;+function aa({ category: e, selected: t, disabled: n, onToggle: r }) {+ let i = ra(e), a = e.cleanable ? e.reclaimable > 0 ? `清理后${e.note}` : "没有可以清理的文件" : `不能清理:${e.note}`;return /* @__PURE__ */ (0, Q.jsxs)("div", {"data-category": e.key,className: "flex min-h-13 w-full items-start gap-3 border-b border-separator-border py-2.5 pr-3 last:border-b-0",@@ -1902,7 +1902,7 @@ function na({ category: e, selected: t, disabled: n, onToggle: r }) {className: "flex items-center gap-2 text-body-regular text-text-primary",children: [/* @__PURE__ */ (0, Q.jsx)("i", {"aria-hidden": !0,- className: `size-2.5 shrink-0 rounded-xs ${Wi[e.key] || "bg-text-tertiary"}`+ className: `size-2.5 shrink-0 rounded-xs ${qi[e.key] || "bg-text-tertiary"}`}), e.label]}),/* @__PURE__ */ (0, Q.jsx)("p", {@@ -1917,7 +1917,7 @@ function na({ category: e, selected: t, disabled: n, onToggle: r }) {}),/* @__PURE__ */ (0, Q.jsxs)("div", {className: "flex shrink-0 flex-col items-end gap-0.5 text-right",- children: [/* @__PURE__ */ (0, Q.jsx)(Sr, {+ children: [/* @__PURE__ */ (0, Q.jsx)(Tr, {value: e.bytes,format: J,className: "text-body-regular text-text-primary"@@ -1929,22 +1929,22 @@ function na({ category: e, selected: t, disabled: n, onToggle: r }) {]});}-function ra({ initial: e, receipt: t }) {+function oa({ initial: e, receipt: t }) {let [n, r] = (0, Z.useState)(e), [i, a] = (0, Z.useState)(""), [o, s] = (0, Z.useState)(/* @__PURE__ */ new Set()), c = Y(), l = n.job.state !== "idle", u = (0, Z.useRef)(l);(0, Z.useEffect)(() => {if (!l) return;let e = new AbortController(), t = setTimeout(() => {- W(Yi, e.signal).then(r, () => {+ W(Qi, e.signal).then(r, () => {e.signal.aborted || r((e) => ({ ...e }));});- }, Xi);+ }, $i);return () => {e.abort(), clearTimeout(t);};}, [n]), (0, Z.useEffect)(() => {l ? u.current = !0 : u.current && (u.current = !1, s(/* @__PURE__ */ new Set()), n.job.error || t(n.job.message || "已统计占用空间"));}, [l]);- let d = () => void c.run("measure", (e) => G(`${Yi}/measure`, {}, "POST", e), r), f = n.usage, p = f?.categories.filter(ea) ?? [], m = p.filter((e) => o.has(e.key)), h = (e, t) => {+ let d = () => void c.run("measure", (e) => G(`${Qi}/measure`, {}, "POST", e), r), f = n.usage, p = f?.categories.filter(ra) ?? [], m = p.filter((e) => o.has(e.key)), h = (e, t) => {if (!e.length) return;let n = e.reduce((e, t) => e + t.reclaimable, 0);Qt({@@ -1952,7 +1952,7 @@ function ra({ initial: e, receipt: t }) {body: `将删除 ${J(n)}:${e.map((e) => `${e.label} ${J(e.reclaimable)}(清理后${e.note})`).join(";")}。`,confirmLabel: `清理 ${J(n)}`,danger: e.some((e) => e.key === "backups"),- onConfirm: async () => r(await G(`${Yi}/clean`, { categories: e.map((e) => e.key) }))+ onConfirm: async () => r(await G(`${Qi}/clean`, { categories: e.map((e) => e.key) }))});}, g = () => void c.run("relocate", async (e) => {let t = (await G(xt, { initial: n.data_root }, "POST", e)).path;@@ -1964,13 +1964,13 @@ function ra({ initial: e, receipt: t }) {confirmLabel: "迁移数据目录",onConfirm: async () => {try {- a((await G(`${Yi}/relocate`, { target: t })).message);+ a((await G(`${Qi}/relocate`, { target: t })).message);} catch (e) {- throw Error(Qi(e));+ throw Error(ta(e));}}});- }, () => void 0), _ = n.relocation.last, v = _ && (_.state === "error" || (_.notes?.length ?? 0) > 0 || Date.now() - _.finished_at * 1e3 < Zi), y = f?.categories.find((e) => e.key === n.job.category)?.label, b = i || (n.job.state === "cleaning" ? `正在清理${y || ""}…` : n.job.state === "measuring" ? "正在统计占用空间…" : m.length ? `已选 ${m.length} 类,可释放 ${J(m.reduce((e, t) => e + t.reclaimable, 0))}` : f ? `统计于 ${(/* @__PURE__ */ new Date(f.measured_at * 1e3)).toLocaleString()}` : ""), x = l || !!i, S = (e) => (t) => s((n) => {+ }, () => void 0), _ = n.relocation.last, v = _ && (_.state === "error" || (_.notes?.length ?? 0) > 0 || Date.now() - _.finished_at * 1e3 < ea), y = f?.categories.find((e) => e.key === n.job.category)?.label, b = i || (n.job.state === "cleaning" ? `正在清理${y || ""}…` : n.job.state === "measuring" ? "正在统计占用空间…" : m.length ? `已选 ${m.length} 类,可释放 ${J(m.reduce((e, t) => e + t.reclaimable, 0))}` : f ? `统计于 ${(/* @__PURE__ */ new Date(f.measured_at * 1e3)).toLocaleString()}` : ""), x = l || !!i, S = (e) => (t) => s((n) => {let r = new Set(n);return t ? r.add(e) : r.delete(e), r;});@@ -1988,12 +1988,12 @@ function ra({ initial: e, receipt: t }) {})}), /* @__PURE__ */ (0, Q.jsx)(j, {term: "所在磁盘",- children: $i(n)+ children: na(n)})] }),/* @__PURE__ */ (0, Q.jsxs)(V, {divided: !0,children: [- n.job.state === "measuring" ? /* @__PURE__ */ (0, Q.jsx)(ta, { job: n.job }) : null,+ n.job.state === "measuring" ? /* @__PURE__ */ (0, Q.jsx)(ia, { job: n.job }) : null,f ? /* @__PURE__ */ (0, Q.jsxs)("div", {"data-storage-result": "",className: Jt({@@ -2003,10 +2003,10 @@ function ra({ initial: e, receipt: t }) {}),children: [/* @__PURE__ */ (0, Q.jsx)("div", {className: "border-b border-separator-border p-4",- children: /* @__PURE__ */ (0, Q.jsx)(qi, { storage: n })+ children: /* @__PURE__ */ (0, Q.jsx)(Xi, { storage: n })}), /* @__PURE__ */ (0, Q.jsx)("div", {className: "flex flex-col pl-4",- children: f.categories.map((e) => /* @__PURE__ */ (0, Q.jsx)(na, {+ children: f.categories.map((e) => /* @__PURE__ */ (0, Q.jsx)(aa, {category: e,selected: o.has(e.key),disabled: x,@@ -2065,16 +2065,16 @@ function ra({ initial: e, receipt: t }) {});}// src/react/settings/maintenance-settings.tsx-var ia = [+var sa = [["6", "每 6 小时"],["24", "每天"],["168", "每周"]];-function aa({ data: e, receipt: t, reopenTutorial: n, panel: r }) {+function ca({ data: e, receipt: t, reopenTutorial: n, panel: r }) {return /* @__PURE__ */ (0, Q.jsxs)("div", {- ...Zn(r),+ ...er(r),children: [- e.storage ? /* @__PURE__ */ (0, Q.jsx)(ra, {+ e.storage ? /* @__PURE__ */ (0, Q.jsx)(oa, {initial: e.storage,receipt: t}) : null,@@ -2082,30 +2082,30 @@ function aa({ data: e, receipt: t, reopenTutorial: n, panel: r }) {id: "librarySharing",guide: "reporting",title: "数据上传",- children: [e.remote_reporting ? /* @__PURE__ */ (0, Q.jsx)(br, {+ children: [e.remote_reporting ? /* @__PURE__ */ (0, Q.jsx)(Cr, {initial: e.remote_reporting,receipt: t}) : null, e.library_sharing ? /* @__PURE__ */ (0, Q.jsx)("div", {className: "border-t border-separator-border",- children: /* @__PURE__ */ (0, Q.jsx)(vr, {+ children: /* @__PURE__ */ (0, Q.jsx)(xr, {initial: e.library_sharing,receipt: t})}) : null]}) : null,- /* @__PURE__ */ (0, Q.jsx)(ca, { facts: e.facts }),- /* @__PURE__ */ (0, Q.jsx)(oa, {+ /* @__PURE__ */ (0, Q.jsx)(da, { facts: e.facts }),+ /* @__PURE__ */ (0, Q.jsx)(la, {receipt: t,reopenTutorial: n}),- e.uninstall ? /* @__PURE__ */ (0, Q.jsx)(la, {+ e.uninstall ? /* @__PURE__ */ (0, Q.jsx)(fa, {uninstall: e.uninstall,receipt: t}) : null]});}-function oa({ reopenTutorial: e }) {+function la({ reopenTutorial: e }) {return /* @__PURE__ */ (0, Q.jsx)("section", {"aria-label": "新手教程",className: "w-full",@@ -2120,7 +2120,7 @@ function oa({ reopenTutorial: e }) {}) }) })});}-function sa({ initial: e, receipt: t }) {+function ua({ initial: e, receipt: t }) {let [n, r] = (0, Z.useState)(e.mode), [i, a] = (0, Z.useState)(e.interval_hours), o = Y(e.error), s = (r) => {r.preventDefault(), e.available && o.run("save", (e) => G("/api/configuration/automatic-updates", {mode: n,@@ -2162,7 +2162,7 @@ function sa({ initial: e, receipt: t }) {onSelectionChange: (e) => {e !== null && a(Number(e));},- children: ia.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(z, {+ children: sa.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(z, {id: e,children: t}, e))@@ -2182,7 +2182,7 @@ function sa({ initial: e, receipt: t }) {]});}-function ca({ facts: e }) {+function da({ facts: e }) {return /* @__PURE__ */ (0, Q.jsx)(L, {guide: "facts",title: "运行信息",@@ -2195,7 +2195,7 @@ function ca({ facts: e }) {}, e.term)) })});}-function la({ uninstall: e, receipt: t }) {+function fa({ uninstall: e, receipt: t }) {let [n, r] = (0, Z.useState)(!1), [i, a] = (0, Z.useState)(""), o = () => void Qt({title: "卸载 Peach",danger: !0,@@ -2252,23 +2252,23 @@ function la({ uninstall: e, receipt: t }) {});}// src/react/settings/release-updates.tsx-var ua = /* @__PURE__ */ new Set([+var pa = /* @__PURE__ */ new Set(["downloading","verifying","extracting","preparing","restarting","installing"-]), da = [+]), ma = [65,75,90-], fa = 120, pa = "https://github.com/peach-mitao/peach/releases";-function ma({ initial: e, initialJob: t }) {+], ha = 120, ga = "https://github.com/peach-mitao/peach/releases";+function _a({ initial: e, initialJob: t }) {let [n, r] = (0, Z.useState)(e), [i, a] = (0, Z.useState)(t || {state: "idle",progress: 0- }), [o, s] = (0, Z.useState)(""), c = Y(), l = (0, Z.useRef)(!1), u = (0, Z.useRef)(!0), d = ua.has(i.state);+ }), [o, s] = (0, Z.useState)(""), c = Y(), l = (0, Z.useRef)(!1), u = (0, Z.useRef)(!0), d = pa.has(i.state);(0, Z.useEffect)(() => (u.current = !0, () => {u.current = !1;}), []);@@ -2285,7 +2285,7 @@ function ma({ initial: e, initialJob: t }) {(0, Z.useEffect)(() => {i.state !== "ready" || l.current || (l.current = !0, p());}, [i.state]), (0, Z.useEffect)(() => {- let e = new AbortController(), t = ua.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {+ let e = new AbortController(), t = pa.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {try {let t = await W("/api/configuration/update-status", e.signal);if (e.signal.aborted) return;@@ -2298,9 +2298,9 @@ function ma({ initial: e, initialJob: t }) {let n = await W("/api/configuration/automatic-updates", e.signal);!e.signal.aborted && n.result && r(n.result);} catch {- o += 1, o >= fa && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");+ o += 1, o >= ha && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");}- !e.signal.aborted && o < fa && (n = setTimeout(c, t));+ !e.signal.aborted && o < ha && (n = setTimeout(c, t));};return n = setTimeout(c, t), () => {e.abort(), clearTimeout(n);@@ -2366,7 +2366,7 @@ function ma({ initial: e, initialJob: t }) {/* @__PURE__ */ (0, Q.jsx)(Ot, {label: "更新准备进度",value: i.progress,- stops: da+ stops: ma}),/* @__PURE__ */ (0, Q.jsxs)(N, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),/* @__PURE__ */ (0, Q.jsx)(N, { children: _ })@@ -2387,7 +2387,7 @@ function ma({ initial: e, initialJob: t }) {children: "GitHub"}),/* @__PURE__ */ (0, Q.jsx)(A, {- href: n.release_url || pa,+ href: n.release_url || ga,children: "查看发布页"})]@@ -2421,7 +2421,7 @@ function ma({ initial: e, initialJob: t }) {});}// src/react/settings/upgrade-repairs.tsx-var ha = {+var va = {pending: "等待修复",running: "正在修复",failed: "需要重试",@@ -2429,8 +2429,8 @@ var ha = {complete: "已完成",unavailable: "当前部署未启用"};-function ga() {- let { snapshot: e } = kn(), [t, n] = (0, Z.useState)(null), r = Y();+function ya() {+ let { snapshot: e } = Mn(), [t, n] = (0, Z.useState)(null), r = Y();(0, Z.useEffect)(() => n(null), [e]);let i = t ?? e?.repairs, a = i?.state || "pending", o = i?.items.reduce((e, t) => e + (t.pending || 0), 0) || 0, s = i?.items.reduce((e, t) => e + (t.failed || 0), 0) || 0, c = i?.items.reduce((e, t) => e + (t.review_count || 0), 0) || 0;return /* @__PURE__ */ (0, Q.jsxs)(L, {@@ -2440,7 +2440,7 @@ function ga() {tone: a === "failed" ? "error" : a === "running" ? "progress" : a === "review" ? "warning" : a === "complete" ? "success" : "neutral",children: /* @__PURE__ */ (0, Q.jsx)("span", {"data-copy-key": `upgradeRepairs.${a}.status`,- children: ha[a] || "未取得"+ children: va[a] || "未取得"}, a)}),children: [@@ -2448,15 +2448,15 @@ function ga() {/* @__PURE__ */ (0, Q.jsxs)(ct, { children: [/* @__PURE__ */ (0, Q.jsx)(j, {term: "待完成",- children: /* @__PURE__ */ (0, Q.jsxs)("span", { children: [/* @__PURE__ */ (0, Q.jsx)(Sr, { value: o }), " 项"] })+ children: /* @__PURE__ */ (0, Q.jsxs)("span", { children: [/* @__PURE__ */ (0, Q.jsx)(Tr, { value: o }), " 项"] })}),/* @__PURE__ */ (0, Q.jsx)(j, {term: "失败",- children: /* @__PURE__ */ (0, Q.jsxs)("span", { children: [/* @__PURE__ */ (0, Q.jsx)(Sr, { value: s }), " 项"] })+ children: /* @__PURE__ */ (0, Q.jsxs)("span", { children: [/* @__PURE__ */ (0, Q.jsx)(Tr, { value: s }), " 项"] })}),/* @__PURE__ */ (0, Q.jsx)(j, {term: "待复核",- children: /* @__PURE__ */ (0, Q.jsxs)("span", { children: [/* @__PURE__ */ (0, Q.jsx)(Sr, { value: c }), " 项"] })+ children: /* @__PURE__ */ (0, Q.jsxs)("span", { children: [/* @__PURE__ */ (0, Q.jsx)(Tr, { value: c }), " 项"] })})] }),i?.message || r.error ? /* @__PURE__ */ (0, Q.jsx)(V, { children: /* @__PURE__ */ (0, Q.jsx)(k, { children: r.error || i?.message }) }) : null,@@ -2480,27 +2480,27 @@ function ga() {});}// src/react/settings/general-settings.tsx-function _a({ data: e, receipt: t, panel: n }) {+function ba({ data: e, receipt: t, panel: n }) {return /* @__PURE__ */ (0, Q.jsxs)("div", {- ...Zn(n),+ ...er(n),children: [- e.updates ? /* @__PURE__ */ (0, Q.jsx)(ma, {+ e.updates ? /* @__PURE__ */ (0, Q.jsx)(_a, {initial: e.updates,initialJob: e.update_job}) : null,- /* @__PURE__ */ (0, Q.jsx)(ga, {}),- e.automatic_updates ? /* @__PURE__ */ (0, Q.jsx)(sa, {+ /* @__PURE__ */ (0, Q.jsx)(ya, {}),+ e.automatic_updates ? /* @__PURE__ */ (0, Q.jsx)(ua, {initial: e.automatic_updates,receipt: t}) : null,- e.startup ? /* @__PURE__ */ (0, Q.jsx)(va, {+ e.startup ? /* @__PURE__ */ (0, Q.jsx)(xa, {startup: e.startup,receipt: t}) : null]});}-function va({ startup: e, receipt: t }) {+function xa({ startup: e, receipt: t }) {let [n, r] = (0, Z.useState)(e.enabled), [i, a] = (0, Z.useState)(e.silent), [o, s] = (0, Z.useState)(e.desktop), c = Y(), l = e.available && !e.desktop_message;return /* @__PURE__ */ (0, Q.jsxs)(L, {guide: "startup",@@ -2557,7 +2557,7 @@ function va({ startup: e, receipt: t }) {});}// src/react/restart-redirect.ts-var ya = 8e3, ba = [+var Sa = 8e3, Ca = [{name: "机械硬盘,或内存 8 GB 以内",cache: "10–20 GiB",@@ -2576,12 +2576,12 @@ var ya = 8e3, ba = [read: "256 / 128 KB",task: "2 个起步"}-], xa = [+], wa = [["cache", "缓存上限"],["read", "读取长度(默认 / 最小)"],["task", "同时处理视频"]];-function Sa() {+function Ta() {return /* @__PURE__ */ (0, Q.jsx)("div", {className: "@container flex flex-col gap-3",children: /* @__PURE__ */ (0, Q.jsxs)(O, {@@ -2596,14 +2596,14 @@ function Sa() {/* @__PURE__ */ (0, Q.jsx)("ul", {"aria-label": "按缓存所在硬盘分档",className: "flex flex-col gap-2",- children: ba.map((e) => /* @__PURE__ */ (0, Q.jsxs)("li", {+ children: Ca.map((e) => /* @__PURE__ */ (0, Q.jsxs)("li", {className: "flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3",children: [/* @__PURE__ */ (0, Q.jsx)("p", {className: "text-body-medium text-text-primary",children: e.name}), /* @__PURE__ */ (0, Q.jsx)("dl", {className: "inline-grid grid-cols-1 gap-2 @md:grid-cols-3",- children: xa.map(([t, n]) => /* @__PURE__ */ (0, Q.jsxs)("div", {+ children: wa.map(([t, n]) => /* @__PURE__ */ (0, Q.jsxs)("div", {className: "flex flex-col",children: [/* @__PURE__ */ (0, Q.jsx)("dt", {className: "text-caption-1-regular text-text-secondary",@@ -2633,15 +2633,15 @@ function Sa() {});}// src/react/settings/cloud-proxy-settings.tsx-var Ca = "/api/configuration/cloud-proxies", wa = [+var Ea = "/api/configuration/cloud-proxies", Da = [["direct", "直连"],["system", "跟随系统"],["http", "HTTP 代理"],["socks5", "SOCKS5 代理"]];-function Ta({ receipt: e }) {+function Oa({ receipt: e }) {let [t, n] = (0, Z.useState)(null), [r, i] = (0, Z.useState)(!0), a = (0, Z.useRef)(/* @__PURE__ */ new Set()), o = (0, Z.useRef)(/* @__PURE__ */ new Set()), [s, c] = (0, Z.useState)(!1), l = (0, Z.useRef)(() => void 0), u = Y(), d = () => {- o.current.size || u.run("refresh", (e) => W(Ca, e), (e) => {+ o.current.size || u.run("refresh", (e) => W(Ea, e), (e) => {a.current.clear(), n(e), i(!1);}, (e) => {i(!1), u.setError(e instanceof Error ? e.message : "无法读取网盘代理");@@ -2656,7 +2656,7 @@ function Ta({ receipt: e }) {}, []), (0, Z.useEffect)(() => {if (!t) return;let e = (e) => e.mode === "http" || e.mode === "socks5";- bn("cloudProxy", {+ Sn("cloudProxy", {configured: t.configured !== !1,unlinked: t.unlinked?.length ?? 0,accounts: t.accounts.map((t) => [e(t.data), e(t.api)])@@ -2692,10 +2692,10 @@ function Ta({ receipt: e }) {className: "flex min-w-0 flex-col gap-1",children: [/* @__PURE__ */ (0, Q.jsx)(lt, { children: /* @__PURE__ */ (0, Q.jsxs)("span", {className: "inline-flex items-center gap-2",- children: [/* @__PURE__ */ (0, Q.jsx)(zt, { mark: Kn(e.location) }), e.name]+ children: [/* @__PURE__ */ (0, Q.jsx)(zt, { mark: Yn(e.location) }), e.name]}) }), /* @__PURE__ */ (0, Q.jsx)(N, { children: "尚未匹配 CloudDrive 账号" })]}, e.root)),- t?.accounts.map((t) => /* @__PURE__ */ (0, Q.jsx)(Ea, {+ t?.accounts.map((t) => /* @__PURE__ */ (0, Q.jsx)(ka, {initial: t,receipt: e,onDirty: () => a.current.add(t.id),@@ -2719,7 +2719,7 @@ function Ta({ receipt: e }) {}) })]});}-function Ea({ initial: e, receipt: t, onDirty: n, onSaved: r, onSaving: i }) {+function ka({ initial: e, receipt: t, onDirty: n, onSaved: r, onSaving: i }) {let [a, o] = (0, Z.useState)(e), [s, c] = (0, Z.useState)([]), l = a.libraries?.map((e) => e.name).join("、") || a.name, u = Y(), d = (e, t) => {o((n) => ({...n,@@ -2729,7 +2729,7 @@ function Ea({ initial: e, receipt: t, onDirty: n, onSaved: r, onSaving: i }) {return /* @__PURE__ */ (0, Q.jsxs)("form", {"aria-label": `${l} 代理`,onSubmit: (e) => {- e.preventDefault(), i(!0), u.run("save", (e) => G(Ca, {+ e.preventDefault(), i(!0), u.run("save", (e) => G(Ea, {id: a.id,revision: a.revision,...s.includes("api") ? { api: a.api } : {},@@ -2742,20 +2742,20 @@ function Ea({ initial: e, receipt: t, onDirty: n, onSaved: r, onSaving: i }) {children: [/* @__PURE__ */ (0, Q.jsx)(lt, { children: /* @__PURE__ */ (0, Q.jsxs)("span", {className: "inline-flex items-center gap-2",- children: [/* @__PURE__ */ (0, Q.jsx)(zt, { mark: Kn(a.libraries?.[0]?.location || (a.cloud === "115open" ? "115" : a.cloud.toLowerCase())) }), l]+ children: [/* @__PURE__ */ (0, Q.jsx)(zt, { mark: Yn(a.libraries?.[0]?.location || (a.cloud === "115open" ? "115" : a.cloud.toLowerCase())) }), l]}) }),/* @__PURE__ */ (0, Q.jsxs)(N, { children: [a.name," · ",a.path] }),- /* @__PURE__ */ (0, Q.jsx)(Da, {+ /* @__PURE__ */ (0, Q.jsx)(Aa, {label: "数据代理",value: a.data,disabled: !a.writable || !!u.busy,onChange: (e) => d("data", e)}),- /* @__PURE__ */ (0, Q.jsx)(Da, {+ /* @__PURE__ */ (0, Q.jsx)(Aa, {label: "API 代理",value: a.api,disabled: !a.writable || !!u.busy,@@ -2779,7 +2779,7 @@ function Ea({ initial: e, receipt: t, onDirty: n, onSaved: r, onSaving: i }) {]});}-function Da({ label: e, value: t, disabled: n, onChange: r }) {+function Aa({ label: e, value: t, disabled: n, onChange: r }) {let i = t.mode === "http" || t.mode === "socks5";return /* @__PURE__ */ (0, Q.jsxs)("div", {className: "flex min-w-0 flex-col gap-3",@@ -2798,7 +2798,7 @@ function Da({ label: e, value: t, disabled: n, onChange: r }) {children: [t.mode === "unknown" ? /* @__PURE__ */ (0, Q.jsx)(z, {id: "unknown",children: "无法识别的代理类型"- }) : null, wa.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(z, {+ }) : null, Da.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(z, {id: e,children: t}, e))]@@ -2866,7 +2866,7 @@ function Da({ label: e, value: t, disabled: n, onChange: r }) {});}// src/react/settings/library-icon-picker.tsx-var Oa = [+var ja = [["", "自动识别"],["hard-drive", "磁盘"],["database", "资料库"],@@ -2910,13 +2910,13 @@ var Oa = [["star", "收藏"],["tags", "主题"]];-function ka(e) {+function Ma(e) {let t = e === "local" ? "" : yt[e];return t ? [t, "自动识别"] : ["hard-drive", "默认"];}-var Aa = "auto";-function ja({ value: e, label: t, kind: n = "local", onChange: r }) {- let i = (0, Z.useRef)(null), [a, o] = (0, Z.useState)(!1), [s, c] = (0, Z.useState)(e), [l, u] = ka(n);+var Na = "auto";+function Pa({ value: e, label: t, kind: n = "local", onChange: r }) {+ let i = (0, Z.useRef)(null), [a, o] = (0, Z.useState)(!1), [s, c] = (0, Z.useState)(e), [l, u] = Ma(n);return /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(E, {ref: i,variant: "secondary",@@ -2930,7 +2930,7 @@ function ja({ value: e, label: t, kind: n = "local", onChange: r }) {children: /* @__PURE__ */ (0, Q.jsxs)("span", {"data-icon-choice": !0,className: "flex items-center gap-2",- children: [/* @__PURE__ */ (0, Q.jsx)(zt, { mark: e || l }), ((e) => e && Oa.find(([t]) => t === e)?.[1] || u)(e)]+ children: [/* @__PURE__ */ (0, Q.jsx)(zt, { mark: e || l }), ((e) => e && ja.find(([t]) => t === e)?.[1] || u)(e)]})}), /* @__PURE__ */ (0, Q.jsx)(ze, {triggerRef: i,@@ -2950,15 +2950,15 @@ function ja({ value: e, label: t, kind: n = "local", onChange: r }) {}),/* @__PURE__ */ (0, Q.jsx)(We, {"aria-label": "可选图标",- value: s || Aa,- onChange: (e) => c(e === Aa ? "" : e),+ value: s || Na,+ onChange: (e) => c(e === Na ? "" : e),className: "inline-grid grid-cols-7 gap-1",- children: Oa.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(Ge, {- value: e || Aa,+ children: ja.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(Ge, {+ value: e || Na,"aria-label": e ? t : u,className: "flex h-10 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none hover:bg-dropdown-item-hover-background focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-dropdown-item-hover-background data-selected:text-text-primary",children: /* @__PURE__ */ (0, Q.jsx)(zt, { mark: e || l })- }, e || Aa))+ }, e || Na))}),/* @__PURE__ */ (0, Q.jsxs)("div", {className: "flex justify-end gap-2 border-t border-separator-border pt-2.5",@@ -2979,19 +2979,19 @@ function ja({ value: e, label: t, kind: n = "local", onChange: r }) {})] });}// src/react/settings/library-policy-settings.tsx-var Ma = [+var Fa = [["probe", "读取视频信息"],["metadata", "联网补资料"],["cover", "联网补封面"],["people", "联网补人物图片"],["preview", "生成九宫格预览"]-], Na = [+], Ia = ["probe","metadata","cover","people","preview"-], Pa = [+], La = [["auto","自动补全",@@ -3008,7 +3008,7 @@ var Ma = ["逐项选择要做的步骤"]];-function Fa() {+function Ra() {return /* @__PURE__ */ (0, Q.jsxs)("div", {"data-policy-legend": "",className: "flex flex-col gap-1",@@ -3040,7 +3040,7 @@ function Fa() {})]});}-function Ia({ name: e, value: t, onChange: n }) {+function za({ name: e, value: t, onChange: n }) {return /* @__PURE__ */ (0, Q.jsx)(Ft, {"data-guide-target": "library-policy",className: "w-full",@@ -3049,10 +3049,10 @@ function Ia({ name: e, value: t, onChange: n }) {prefix: "处理方式",renderValue: /* @__PURE__ */ (0, Q.jsx)("span", {className: "truncate",- children: Pa.find(([e]) => e === t)?.[1]+ children: La.find(([e]) => e === t)?.[1]}),onSelectionChange: (e) => n(String(e)),- children: Pa.map(([e, t, n]) => /* @__PURE__ */ (0, Q.jsx)(z, {+ children: La.map(([e, t, n]) => /* @__PURE__ */ (0, Q.jsx)(z, {id: e,textValue: t,children: /* @__PURE__ */ (0, Q.jsxs)("span", {@@ -3065,15 +3065,15 @@ function Ia({ name: e, value: t, onChange: n }) {}, e))});}-function La({ name: e, value: t, onChange: n }) {+function Ba({ name: e, value: t, onChange: n }) {return /* @__PURE__ */ (0, Q.jsx)(O, {defaultOpen: !0,- summary: `${e} 的处理步骤(${t.length}/${Ma.length})`,+ summary: `${e} 的处理步骤(${t.length}/${Fa.length})`,children: /* @__PURE__ */ (0, Q.jsx)("div", {className: "flex flex-wrap gap-x-6 gap-y-2",role: "group","aria-label": `${e} 处理步骤`,- children: Ma.map(([e, r]) => /* @__PURE__ */ (0, Q.jsx)(D, {+ children: Fa.map(([e, r]) => /* @__PURE__ */ (0, Q.jsx)(D, {isSelected: t.includes(e),onChange: (r) => n(r ? [...t, e] : t.filter((t) => t !== e)),children: r@@ -3081,9 +3081,9 @@ function La({ name: e, value: t, onChange: n }) {})});}-function Ra({ id: e, name: t, value: n, onChange: r }) {+function Va({ id: e, name: t, value: n, onChange: r }) {let i = (0, Z.useRef)(null), [a, o] = (0, Z.useState)(!1), s = Ke.find(([e]) => e === n)?.[1] || "无颜色", c = (t) => {- r(t), gn(e, t), o(!1);+ r(t), _n(e, t), o(!1);};return /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsxs)("button", {ref: i,@@ -3114,7 +3114,7 @@ function Ra({ id: e, name: t, value: n, onChange: r }) {/* @__PURE__ */ (0, Q.jsx)("span", { children: s })]}), /* @__PURE__ */ (0, Q.jsx)(Be, {- getContainer: () => mn(i.current),+ getContainer: () => hn(i.current),children: /* @__PURE__ */ (0, Q.jsx)(ze, {triggerRef: i,isOpen: a,@@ -3164,8 +3164,8 @@ function Ra({ id: e, name: t, value: n, onChange: r }) {})] });}// src/react/settings/push-discovery-settings.tsx-var za = "/api/configuration/push-discovery", Ba = "/api/configuration/push-discovery/secret";-function Va({ initial: e, receipt: t }) {+var Ha = "/api/configuration/push-discovery", Ua = "/api/configuration/push-discovery/secret";+function Wa({ initial: e, receipt: t }) {let [n, r] = (0, Z.useState)(e), [i, a] = (0, Z.useState)(e.prefixes), [o, s] = (0, Z.useState)(""), c = Y(), l = n.media_roots, [u, d] = (0, Z.useState)(e), f = (e, n) => {r(e), d(e), a(e.prefixes), s(""), t(n);}, p = (e, t) => a((n) => n.map((n, r) => r === e ? {@@ -3179,9 +3179,9 @@ function Va({ initial: e, receipt: t }) {cloud: n.cloud,prefixes: i};- c.run("save", (e) => G(za, t, "POST", e), (e) => f(e, "已保存配置"), (e) => s(q(e)));+ c.run("save", (e) => G(Ha, t, "POST", e), (e) => f(e, "已保存配置"), (e) => s(q(e)));}, h = () => {- c.run("secret", (e) => G(Ba, {}, "POST", e), (e) => f(e, "已更换共享密钥"), (e) => s(q(e)));+ c.run("secret", (e) => G(Ua, {}, "POST", e), (e) => f(e, "已更换共享密钥"), (e) => s(q(e)));}, g = `已入库 ${u.queue.ingested} 个文件` + (u.queue.failed ? `,${u.queue.failed} 个入库失败` : "") + (u.queue.pending ? `,队列里还有 ${u.queue.pending} 条` : ""), _ = u.local_running ? `正在监视 ${u.local_roots.join("、")}` : u.local_message || "没有运行";return /* @__PURE__ */ (0, Q.jsxs)(L, {id: "pushDiscovery",@@ -3257,7 +3257,7 @@ function Va({ initial: e, receipt: t }) {className: "flex flex-col gap-3",children: /* @__PURE__ */ (0, Q.jsxs)(O, {summary: "查看配置",- children: [/* @__PURE__ */ (0, Q.jsx)(Ln, {+ children: [/* @__PURE__ */ (0, Q.jsx)(Bn, {code: u.config_toml,language: "toml",label: "CloudDrive2 配置",@@ -3343,19 +3343,34 @@ function Va({ initial: e, receipt: t }) {});}// src/react/settings/media-settings.tsx-var Ha = (e) => Vn.find(([t]) => t === e)?.[1] ?? e, Ua = [...Vn, ["smb", "SMB 共享"]], Wa = (e) => e.library_icon || ka(e.transport === "smb" ? "smb" : e.location)[0], Ga = async (e) => (await G(xt, { initial: e })).path, Ka = (e) => ({+async function Ga(e) {+ let t;+ try {+ t = await sn();+ } catch {+ return !0;+ }+ if (!vn(t)) return !0;+ let { confirmed: n } = await Qt({+ title: "扫描与采集正在进行",+ body: Tn(t, e),+ confirmLabel: "仍然保存"+ });+ return n;+}+var Ka = (e) => Wn.find(([t]) => t === e)?.[1] ?? e, qa = [...Wn, ["smb", "SMB 共享"]], Ja = (e) => e.library_icon || Ma(e.transport === "smb" ? "smb" : e.location)[0], Ya = async (e) => (await G(xt, { initial: e })).path, Xa = (e) => ({library_id: e.library_id,library: e.library,library_icon: e.library_icon,library_color: e.library_color,library_policy: e.library_policy,library_stages: e.library_stages-}), qa = (e) => e.library_stages ? Na.filter((t) => e.library_stages.split(",").includes(t)) : [], Ja = (e = "") => ({+}), Za = (e) => e.library_stages ? Ia.filter((t) => e.library_stages.split(",").includes(t)) : [], Qa = (e = "") => ({path: e,transport: e.startsWith("smb://") ? "smb" : "filesystem",location: "local",root: "",- library_id: yn(),+ library_id: xn(),library: "",library_icon: "",library_color: "",@@ -3363,8 +3378,8 @@ var Ha = (e) => Vn.find(([t]) => t === e)?.[1] ?? e, Ua = [...Vn, ["smb", "SMBlibrary_stages: "",cost: "free"});-function Ya(e) {- let t = e.media_sources?.filter((e) => Vn.some(([t]) => t === e.location));+function $a(e) {+ let t = e.media_sources?.filter((e) => Wn.some(([t]) => t === e.location));return t?.length ? t.map((e) => ({transport: e.transport === "smb" || e.path.startsWith("smb://") ? "smb" : "filesystem",smb_username: e.smb_username,@@ -3380,24 +3395,24 @@ function Ya(e) {library_policy: e.library_policy || "auto",library_stages: e.library_stages || "",root_id: e.root_id,- library_id: e.library_id || yn(),- cost: e.cost ?? On(e.location)- })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => Ja(e));+ library_id: e.library_id || xn(),+ cost: e.cost ?? jn(e.location)+ })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => Qa(e));}-var Xa = (e) => !(e instanceof qe) || e.status !== 400 ? null : e.body?.errors ?? null;-function Za({ data: e, receipt: t, panel: n }) {- let r = !!e.media_sources?.some((e) => Gn(e.location));+var eo = (e) => !(e instanceof qe) || e.status !== 400 ? null : e.body?.errors ?? null;+function to({ data: e, receipt: t, panel: n }) {+ let r = !!e.media_sources?.some((e) => Jn(e.location));return (0, Z.useEffect)(() => {if (e.editable) {let t = /* @__PURE__ */ new Map();- for (let n of Ya(e)) t.set(n.library_id, (t.get(n.library_id) ?? 0) + 1);- bn("media", {+ for (let n of $a(e)) t.set(n.library_id, (t.get(n.library_id) ?? 0) + 1);+ Sn("media", {folders: [...t.values()],cloud: r});}let t = e.push_discovery;- t && bn("discovery", {+ t && Sn("discovery", {enabled: t.enabled,watchLocal: t.watch_local,cloud: t.cloud,@@ -3405,9 +3420,9 @@ function Za({ data: e, receipt: t, panel: n }) {prefixes: t.prefixes.length});}, [e, r]), /* @__PURE__ */ (0, Q.jsxs)("div", {- ...Zn(n),+ ...er(n),children: [- e.editable ? /* @__PURE__ */ (0, Q.jsx)(Qa, {+ e.editable ? /* @__PURE__ */ (0, Q.jsx)(no, {data: e,receipt: t}) : /* @__PURE__ */ (0, Q.jsx)(F, {@@ -3415,40 +3430,40 @@ function Za({ data: e, receipt: t, panel: n }) {title: "只读",children: e.notice}),- e.editable ? null : /* @__PURE__ */ (0, Q.jsx)(eo, { data: e }),- r ? /* @__PURE__ */ (0, Q.jsx)(Ta, { receipt: t }) : null,- e.push_discovery ? /* @__PURE__ */ (0, Q.jsx)(Va, {+ e.editable ? null : /* @__PURE__ */ (0, Q.jsx)(io, { data: e }),+ r ? /* @__PURE__ */ (0, Q.jsx)(Oa, { receipt: t }) : null,+ e.push_discovery ? /* @__PURE__ */ (0, Q.jsx)(Wa, {initial: e.push_discovery,receipt: t}) : null]});}-function Qa({ data: e, receipt: t }) {- let { rows: n, edit: r, add: i, remove: a, errors: o, setErrors: s, picking: c, pick: l, inputRef: u } = qn({- initial: () => Ya(e),- blank: () => Ja(),- pickFolder: Ga,+function no({ data: e, receipt: t }) {+ let { rows: n, edit: r, add: i, remove: a, errors: o, setErrors: s, picking: c, pick: l, inputRef: u } = Xn({+ initial: () => $a(e),+ blank: () => Qa(),+ pickFolder: Ya,describe: q- }), [d, f] = (0, Z.useState)(!1), [p, m] = (0, Z.useState)(!1), [h, g] = (0, Z.useState)(""), [_, v] = (0, Z.useState)({}), [y, b] = (0, Z.useState)(null), x = (0, Z.useRef)(e.revision), S = Y();- An();- let C = (e, t) => {+ }), [d, f] = (0, Z.useState)(!1), [p, m] = (0, Z.useState)(!1), [h, g] = (0, Z.useState)(""), [_, v] = (0, Z.useState)({}), [y, b] = (0, Z.useState)(null), x = (0, Z.useRef)(e.revision), S = (0, Z.useRef)(!1), C = Y();+ Nn();+ let w = (e, t) => {n.forEach((i, a) => {i.library_id === n[e].library_id && r(a, t);});- }, w = [...n.reduce((e, t) => e.has(t.library_id) ? e : e.set(t.library_id, t), /* @__PURE__ */ new Map()).values()], [T, ee] = (0, Z.useState)(null);+ }, T = [...n.reduce((e, t) => e.has(t.library_id) ? e : e.set(t.library_id, t), /* @__PURE__ */ new Map()).values()], [ee, te] = (0, Z.useState)(null);(0, Z.useEffect)(() => {- if (!T) return;- let e = document.querySelector(`[data-library-key="${CSS.escape(T)}"] [data-library-head] input`);- e?.scrollIntoView({ block: "center" }), e?.focus(), ee(null);- }, [T]);- let te = (e, t) => {+ if (!ee) return;+ let e = document.querySelector(`[data-library-key="${CSS.escape(ee)}"] [data-library-head] input`);+ e?.scrollIntoView({ block: "center" }), e?.focus(), te(null);+ }, [ee]);+ let ne = (e, t) => {let i = n.find((e) => e.library_id === t);if (i) {- r(e, Ka(i));+ r(e, Xa(i));return;}- let a = yn();+ let a = xn();r(e, {library_id: a,library: "",@@ -3456,21 +3471,25 @@ function Qa({ data: e, receipt: t }) {library_color: "",library_policy: "auto",library_stages: ""- }), ee(a);+ }), te(a);};(0, Z.useEffect)(() => {if (!y) return;- let e = setTimeout(() => location.assign(y.url), ya);+ let e = setTimeout(() => location.assign(y.url), Sa);return () => clearTimeout(e);}, [y]);- let ne = (r) => {- r.preventDefault();- let i = n.findIndex((e) => !e.cost);- if (i >= 0) {+ let re = (e) => {+ e.preventDefault();+ let t = n.findIndex((e) => !e.cost);+ if (t >= 0) {m(!0);- let e = r.currentTarget;- requestAnimationFrame(() => e.querySelector(`[data-media-read-policy="${i}"] button`)?.focus());- } else g(""), S.run("save", (t) => G(Qe, {+ let n = e.currentTarget;+ requestAnimationFrame(() => n.querySelector(`[data-media-read-policy="${t}"] button`)?.focus());+ } else C.busy || S.current || (g(""), S.current = !0, Ga(d).then((e) => {+ S.current = !1, e && ie();+ }));+ }, ie = () => {+ C.run("save", (t) => G(Qe, {revision: x.current,media_dirs: n.map((e) => e.path),...e.media_sources ? { media_sources: n } : {},@@ -3479,7 +3498,7 @@ function Qa({ data: e, receipt: t }) {}, "POST", t), (e) => {x.current = e.revision, s([]), t("已保存配置"), b(e);}, (e) => {- let t = Xa(e);+ let t = eo(e);s(t?.media_dirs ?? []), (!t || t.port) && g(t?.port || q(e));});};@@ -3500,18 +3519,18 @@ function Qa({ data: e, receipt: t }) {]}) })});- let re = (t) => e.media_sources?.find((e) => e.root_id === t.root_id && e.path === t.path), ie = n.some((e) => Gn(e.location)), ae = ie ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];+ let ae = (t) => e.media_sources?.find((e) => e.root_id === t.root_id && e.path === t.path), oe = n.some((e) => Jn(e.location)), se = oe ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];return /* @__PURE__ */ (0, Q.jsxs)(L, {guide: "media",title: "媒体库与目录",- onSubmit: ne,+ onSubmit: re,children: [/* @__PURE__ */ (0, Q.jsxs)(V, { children: [- /* @__PURE__ */ (0, Q.jsx)(Fa, {}),+ /* @__PURE__ */ (0, Q.jsx)(Ra, {}),/* @__PURE__ */ (0, Q.jsx)("div", {role: "group","aria-label": "媒体库与目录",className: "flex flex-col gap-4",- children: w.map((e) => {+ children: T.map((e) => {let t = n.findIndex((t) => t.library_id === e.library_id), s = n.map((e, t) => ({row: e,index: t@@ -3529,11 +3548,11 @@ function Qa({ data: e, receipt: t }) {/* @__PURE__ */ (0, Q.jsxs)("div", {"data-library-head": "",children: [- /* @__PURE__ */ (0, Q.jsx)(ja, {+ /* @__PURE__ */ (0, Q.jsx)(Pa, {label: `${f} 图标`,value: e.library_icon,kind: e.transport === "smb" ? "smb" : e.location,- onChange: (e) => C(t, { library_icon: e })+ onChange: (e) => w(t, { library_icon: e })}),/* @__PURE__ */ (0, Q.jsx)(P, {className: "w-full",@@ -3541,34 +3560,34 @@ function Qa({ data: e, receipt: t }) {maxLength: 80,placeholder: "媒体库名称",value: e.library,- onChange: (e) => C(t, { library: e })+ onChange: (e) => w(t, { library: e })}),- /* @__PURE__ */ (0, Q.jsx)(Ra, {+ /* @__PURE__ */ (0, Q.jsx)(Va, {id: e.library_id,name: e.library,value: e.library_color,- onChange: (e) => C(t, { library_color: e })+ onChange: (e) => w(t, { library_color: e })}),- /* @__PURE__ */ (0, Q.jsx)(Ia, {+ /* @__PURE__ */ (0, Q.jsx)(za, {name: f,value: d,- onChange: (n) => C(t, {+ onChange: (n) => w(t, {library_policy: n,- library_stages: n === "custom" ? e.library_stages || Na.join(",") : ""+ library_stages: n === "custom" ? e.library_stages || Ia.join(",") : ""})})]}),- d === "custom" ? /* @__PURE__ */ (0, Q.jsx)(La, {+ d === "custom" ? /* @__PURE__ */ (0, Q.jsx)(Ba, {name: f,- value: qa(e),- onChange: (e) => C(t, { library_stages: Na.filter((t) => e.includes(t)).join(",") })+ value: Za(e),+ onChange: (e) => w(t, { library_stages: Ia.filter((t) => e.includes(t)).join(",") })}) : null,/* @__PURE__ */ (0, Q.jsxs)("div", {"data-library-folders": "",role: "group","aria-label": `${f} 的文件夹`,- children: [s.map(({ row: t, index: i }) => /* @__PURE__ */ (0, Q.jsxs)(Bn, {+ children: [s.map(({ row: t, index: i }) => /* @__PURE__ */ (0, Q.jsxs)(Un, {label: `媒体目录 ${i + 1}`,path: t.path,onPath: (e) => r(i, {@@ -3580,12 +3599,12 @@ function Qa({ data: e, receipt: t }) {picking: c === i,onPick: () => void l(i),onRemove: n.length > 1 ? () => a(i) : void 0,- status: re(t) ? /* @__PURE__ */ (0, Q.jsx)($a, { online: re(t)?.online }) : null,- children: [/* @__PURE__ */ (0, Q.jsxs)(zn, { children: [- /* @__PURE__ */ (0, Q.jsx)(Wn, {+ status: ae(t) ? /* @__PURE__ */ (0, Q.jsx)(ro, { online: ae(t)?.online }) : null,+ children: [/* @__PURE__ */ (0, Q.jsxs)(Hn, { children: [+ /* @__PURE__ */ (0, Q.jsx)(qn, {index: i,value: t.transport === "smb" ? "smb" : t.location,- options: Ua,+ options: qa,onChange: (e) => {let n = e === "smb";r(i, {@@ -3599,13 +3618,13 @@ function Qa({ data: e, receipt: t }) {});}}),- /* @__PURE__ */ (0, Q.jsx)(Hn, {+ /* @__PURE__ */ (0, Q.jsx)(Gn, {index: i,cost: t.cost,onChange: (e) => r(i, { cost: e }),error: p && !t.cost ? "请选择媒体读取策略" : void 0}),- t.root_id && !re(t) ? /* @__PURE__ */ (0, Q.jsx)(Rn, {+ t.root_id && !ae(t) ? /* @__PURE__ */ (0, Q.jsx)(Vn, {label: "变更方式",className: "w-full @lg:w-auto @lg:flex-1",children: /* @__PURE__ */ (0, Q.jsxs)(R, {@@ -3629,7 +3648,7 @@ function Qa({ data: e, receipt: t }) {})]})}) : null,- w.length > 1 ? /* @__PURE__ */ (0, Q.jsx)(Rn, {+ T.length > 1 ? /* @__PURE__ */ (0, Q.jsx)(Vn, {label: "移到媒体库",className: "w-full @lg:w-48",children: /* @__PURE__ */ (0, Q.jsxs)(R, {@@ -3638,20 +3657,20 @@ function Qa({ data: e, receipt: t }) {selectedKey: t.library_id,renderValue: /* @__PURE__ */ (0, Q.jsxs)("span", {className: "flex min-w-0 items-center gap-2",- children: [/* @__PURE__ */ (0, Q.jsx)(zt, { mark: Wa(e) }), /* @__PURE__ */ (0, Q.jsx)("span", {+ children: [/* @__PURE__ */ (0, Q.jsx)(zt, { mark: Ja(e) }), /* @__PURE__ */ (0, Q.jsx)("span", {className: "truncate",children: f})]}),onSelectionChange: (e) => {- e && te(i, String(e));+ e && ne(i, String(e));},- children: [w.map((e) => /* @__PURE__ */ (0, Q.jsx)(z, {+ children: [T.map((e) => /* @__PURE__ */ (0, Q.jsx)(z, {id: e.library_id,textValue: e.library || "未命名媒体库",children: /* @__PURE__ */ (0, Q.jsxs)("span", {className: "flex min-w-0 items-center gap-2",- children: [/* @__PURE__ */ (0, Q.jsx)(zt, { mark: Wa(e) }), /* @__PURE__ */ (0, Q.jsx)("span", {+ children: [/* @__PURE__ */ (0, Q.jsx)(zt, { mark: Ja(e) }), /* @__PURE__ */ (0, Q.jsx)("span", {className: "truncate",children: e.library || "未命名媒体库"})]@@ -3669,7 +3688,7 @@ function Qa({ data: e, receipt: t }) {] }), t.transport === "smb" ? /* @__PURE__ */ (0, Q.jsxs)("div", {className: "flex w-full flex-col gap-2",children: [- /* @__PURE__ */ (0, Q.jsxs)(zn, { children: [/* @__PURE__ */ (0, Q.jsx)(Rn, {+ /* @__PURE__ */ (0, Q.jsxs)(Hn, { children: [/* @__PURE__ */ (0, Q.jsx)(Vn, {label: "SMB 账号",className: "w-full @lg:flex-1",children: /* @__PURE__ */ (0, Q.jsx)(P, {@@ -3678,7 +3697,7 @@ function Qa({ data: e, receipt: t }) {autoComplete: "off",onChange: (e) => r(i, { smb_username: e })})- }), /* @__PURE__ */ (0, Q.jsx)(Rn, {+ }), /* @__PURE__ */ (0, Q.jsx)(Vn, {label: "SMB 密码",className: "w-full @lg:flex-1",children: /* @__PURE__ */ (0, Q.jsx)(P, {@@ -3703,8 +3722,8 @@ function Qa({ data: e, receipt: t }) {/* @__PURE__ */ (0, Q.jsx)(E, {className: "self-start",variant: "secondary",- ...K(S.busy === `smb-${i}`),- onClick: () => void S.run(`smb-${i}`, (e) => G("/api/configuration/smb/test", t, "POST", e), (e) => v((t) => ({+ ...K(C.busy === `smb-${i}`),+ onClick: () => void C.run(`smb-${i}`, (e) => G("/api/configuration/smb/test", t, "POST", e), (e) => v((t) => ({...t,[i]: {message: "共享目录可读取",@@ -3748,7 +3767,7 @@ function Qa({ data: e, receipt: t }) {"aria-label": `给 ${f} 添加文件夹`,onClick: () => {i(), r(n.length, {- ...Ka(e),+ ...Xa(e),location: e.location,cost: e.cost});@@ -3768,8 +3787,8 @@ function Qa({ data: e, receipt: t }) {children: "添加媒体库"}),/* @__PURE__ */ (0, Q.jsx)(N, { children: dt }),- ie ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(Un, {}), /* @__PURE__ */ (0, Q.jsx)(Sa, {})] }) : null,- ae.map((e) => /* @__PURE__ */ (0, Q.jsxs)(N, { children: [+ oe ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(Kn, {}), /* @__PURE__ */ (0, Q.jsx)(Ta, {})] }) : null,+ se.map((e) => /* @__PURE__ */ (0, Q.jsxs)(N, { children: ["未检测到 ",e.name,"。",@@ -3792,24 +3811,24 @@ function Qa({ data: e, receipt: t }) {status: "保存后 Peach 会重新启动。",children: /* @__PURE__ */ (0, Q.jsx)(E, {type: "submit",- ...K(S.busy === "save"),+ ...K(C.busy === "save"),children: "保存配置"})})]});}-function $a({ online: e }) {- return /* @__PURE__ */ (0, Q.jsx)(Jn, { online: e });+function ro({ online: e }) {+ return /* @__PURE__ */ (0, Q.jsx)(Zn, { online: e });}-function eo({ data: e }) {+function io({ data: e }) {let t = e.media_sources, n = Y();return t ? /* @__PURE__ */ (0, Q.jsxs)(L, {guide: "mounts",title: "挂载状态",children: [/* @__PURE__ */ (0, Q.jsx)(ct, { children: t.map((e, t) => /* @__PURE__ */ (0, Q.jsxs)(j, {- term: /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(zt, { mark: Kn(e.location) }), Ha(e.location)] }),- children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, Q.jsx)($a, { online: e.online })]+ term: /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(zt, { mark: Yn(e.location) }), Ka(e.location)] }),+ children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, Q.jsx)(ro, { online: e.online })]}, t)) }),n.error ? /* @__PURE__ */ (0, Q.jsx)(V, {divided: !0,@@ -3817,7 +3836,7 @@ function eo({ data: e }) {}) : null,/* @__PURE__ */ (0, Q.jsx)(M, { children: /* @__PURE__ */ (0, Q.jsx)(E, {variant: "secondary",- onClick: () => void n.run("refresh", (e) => nn(e), (e) => vn.setQueryData(Ze, e)),+ onClick: () => void n.run("refresh", (e) => nn(e), (e) => bn.setQueryData(Ze, e)),...K(n.busy === "refresh"),children: "刷新挂载状态"}) })@@ -3825,17 +3844,17 @@ function eo({ data: e }) {}) : null;}// src/react/settings/service-preferences.tsx-var to = [+var ao = [["off", "关闭"],["precise", "每 10 秒一张"],["coarse", "每 30 秒一张"]];-function no({ epoch: e = 0, disabled: t = !1 }) {+function oo({ epoch: e = 0, disabled: t = !1 }) {let n = X({queryKey: Bt,- queryFn: ({ signal: e }) => ln(e),+ queryFn: ({ signal: e }) => un(e),refetchOnMount: "always"- }), r = In(), i = r.reset;+ }), r = zn(), i = r.reset;(0, Z.useEffect)(() => {i();}, [e, i]);@@ -3853,7 +3872,7 @@ function no({ epoch: e = 0, disabled: t = !1 }) {onSelectionChange: (e) => {e !== null && r.mutate(String(e));},- children: to.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(z, {+ children: ao.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(z, {id: e,children: t}, e))@@ -3873,20 +3892,20 @@ function no({ epoch: e = 0, disabled: t = !1 }) {}) : null] });}-function ro({ receipt: e }) {+function so({ receipt: e }) {let t = Kt();(0, Z.useSyncExternalStore)(t.subscribe, t.version);let n = X({queryKey: jt,- queryFn: ({ signal: e }) => cn(e),+ queryFn: ({ signal: e }) => ln(e),refetchOnMount: "always"- }), r = Fn(), i = n.data?.followInitialDays ?? t.value.followInitialDays, a = r.error || n.error;+ }), r = Rn(), i = n.data?.followInitialDays ?? t.value.followInitialDays, a = r.error || n.error;return /* @__PURE__ */ (0, Q.jsxs)(L, {guide: "follow-options",title: "关注采集",children: [/* @__PURE__ */ (0, Q.jsxs)(I, { children: [- /* @__PURE__ */ (0, Q.jsx)(io, {}),- /* @__PURE__ */ (0, Q.jsx)(ao, {}),+ /* @__PURE__ */ (0, Q.jsx)(co, {}),+ /* @__PURE__ */ (0, Q.jsx)(lo, {}),/* @__PURE__ */ (0, Q.jsx)(B, {label: "首次采集范围",children: /* @__PURE__ */ (0, Q.jsx)("div", {@@ -3921,13 +3940,13 @@ function ro({ receipt: e }) {}) : null]});}-function io() {+function co() {let e = X({queryKey: st,queryFn: ({ signal: e }) => on(e),refetchOnMount: "always",- refetchInterval: (e) => wn(e.state.data)- }), t = Pn(), n = e.data, r = (0, Z.useRef)(qt(Number(localStorage.getItem("peach.number.followScheduleSetting")), 15, 10080, 60)), [i, a] = (0, Z.useState)("60"), [o, s] = (0, Z.useState)(!1);+ refetchInterval: (e) => Dn(e.state.data)+ }), t = Ln(), n = e.data, r = (0, Z.useRef)(qt(Number(localStorage.getItem("peach.number.followScheduleSetting")), 15, 10080, 60)), [i, a] = (0, Z.useState)("60"), [o, s] = (0, Z.useState)(!1);(0, Z.useEffect)(() => {n?.enabled && (r.current = n.interval_minutes, a(String(n.interval_minutes)));}, [n]);@@ -3979,7 +3998,7 @@ function io() {role: "status",children: t.isPending ? "正在保存…" : "正在检查来源更新…"}) }) : null,- /* @__PURE__ */ (0, Q.jsx)(oo, {+ /* @__PURE__ */ (0, Q.jsx)(uo, {kind: "follow",status: n,title: "上次自动检查失败"@@ -3987,12 +4006,12 @@ function io() {u ? /* @__PURE__ */ (0, Q.jsx)(V, { children: /* @__PURE__ */ (0, Q.jsx)(k, { children: q(u) }) }) : null] });}-function ao() {+function lo() {let e = X({queryKey: it,queryFn: ({ signal: e }) => an(e),refetchOnMount: "always",- refetchInterval: (e) => wn(e.state.data)+ refetchInterval: (e) => Dn(e.state.data)}), t = e.data;if (!t) return e.isPending ? /* @__PURE__ */ (0, Q.jsx)(B, {label: "订阅源拉取",@@ -4016,17 +4035,17 @@ function ao() {role: "status",children: "正在拉取订阅源…"}) }) : null,- /* @__PURE__ */ (0, Q.jsx)(oo, {+ /* @__PURE__ */ (0, Q.jsx)(uo, {kind: "feed",status: t,title: "上次自动拉取失败"})] });}-function oo({ kind: e, status: t, title: n }) {- let r = Nn(e);+function uo({ kind: e, status: t, title: n }) {+ let r = In(e);if (!t?.enabled || t.running || !t.last_error) return null;- let i = t.consecutive_failures ?? 0, a = fn(t.next_run_at), o = [i > 1 ? `已连续失败 ${i} 次` : "", a ? `下一轮 ${a}` : ""].filter(Boolean).join(","), s = [+ let i = t.consecutive_failures ?? 0, a = pn(t.next_run_at), o = [i > 1 ? `已连续失败 ${i} 次` : "", a ? `下一轮 ${a}` : ""].filter(Boolean).join(","), s = [t.last_error,o,r.error ? `没有重试:${q(r.error)}` : ""@@ -4046,10 +4065,10 @@ function oo({ kind: e, status: t, title: n }) {}) });}// src/react/settings/media-processing-settings.tsx-function so({ receipt: e }) {+function fo({ receipt: e }) {let t = X({queryKey: _t,- queryFn: ({ signal: e }) => sn(e)+ queryFn: ({ signal: e }) => cn(e)}), n = Y(), r = n.error || (t.error ? q(t.error) : ""), i = !t.data || t.isFetching || !!n.busy;return /* @__PURE__ */ (0, Q.jsxs)(L, {guide: "preview",@@ -4063,11 +4082,11 @@ function so({ receipt: e }) {isSelected: !!t.data && !t.data.metadata_only,isDisabled: i,onChange: (t) => void n.run("save", (e) => G(vt, { metadata_only: !t }, "POST", e), (t) => {- vn.setQueryData(_t, t), vn.invalidateQueries({ queryKey: Bt }), vn.invalidateQueries({ queryKey: ft }), e(t.metadata_only ? "已关闭视频预览生成" : "已开启视频预览生成");+ bn.setQueryData(_t, t), bn.invalidateQueries({ queryKey: Bt }), bn.invalidateQueries({ queryKey: ft }), e(t.metadata_only ? "已关闭视频预览生成" : "已开启视频预览生成");})})}) }),- /* @__PURE__ */ (0, Q.jsx)(no, { disabled: !t.data || t.data.metadata_only || !!n.busy }),+ /* @__PURE__ */ (0, Q.jsx)(oo, { disabled: !t.data || t.data.metadata_only || !!n.busy }),/* @__PURE__ */ (0, Q.jsx)(I, { children: /* @__PURE__ */ (0, Q.jsx)(B, {label: "抽帧解码方式",description: "用于生成封面、九宫格和时间轴。",@@ -4079,7 +4098,7 @@ function so({ receipt: e }) {isDisabled: i,onSelectionChange: (t) => {t !== null && n.run("preview_acceleration", (e) => G(vt, { preview_acceleration: String(t) }, "POST", e), (t) => {- vn.setQueryData(_t, t), e("已保存抽帧解码方式");+ bn.setQueryData(_t, t), e("已保存抽帧解码方式");});},children: [/* @__PURE__ */ (0, Q.jsx)(z, {@@ -4106,10 +4125,10 @@ function so({ receipt: e }) {]});}-function co({ receipt: e }) {+function po({ receipt: e }) {let t = X({queryKey: _t,- queryFn: ({ signal: e }) => sn(e)+ queryFn: ({ signal: e }) => cn(e)}), n = Y(), r = n.error || (t.error ? q(t.error) : "");return /* @__PURE__ */ (0, Q.jsxs)(L, {guide: "transcode",@@ -4126,7 +4145,7 @@ function co({ receipt: e }) {isDisabled: !t.data || t.isFetching || !!n.busy,onSelectionChange: (t) => {t !== null && n.run("playback_acceleration", (e) => G(vt, { playback_acceleration: String(t) }, "POST", e), (t) => {- vn.setQueryData(_t, t), e("已保存转码方式");+ bn.setQueryData(_t, t), e("已保存转码方式");});},children: [/* @__PURE__ */ (0, Q.jsx)(z, {@@ -4154,7 +4173,7 @@ function co({ receipt: e }) {});}// src/react/boardui/components/base/textarea/textarea.tsx-var lo = Dn({+var mo = An({field: "relative flex w-full flex-col 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",@@ -4167,8 +4186,8 @@ var lo = Dn({},footer: "flex w-full items-start justify-between gap-3",count: "ms-auto shrink-0 pt-px text-caption-1-medium text-text-tertiary tabular-nums"-}), uo = 20;-function fo({ size: e, rows: t = 3, autoResize: n = !1, maxRows: r, resize: i = "vertical", fieldClassName: a, className: o, ref: s, groupRef: c, onInput: l, ...u }) {+}), ho = 20;+function go({ size: e, rows: t = 3, autoResize: n = !1, maxRows: r, resize: i = "vertical", fieldClassName: a, className: o, ref: s, groupRef: c, onInput: l, ...u }) {let d = (0, Z.useContext)(Ut), f = e ?? d.size ?? "medium", p = (0, Z.useRef)(null), m = (e) => {p.current = e, typeof s == "function" ? s(e) : s && (s.current = e);}, h = () => {@@ -4178,14 +4197,14 @@ function fo({ size: e, rows: t = 3, autoResize: n = !1, maxRows: r, resize: i =e.style.height = "", e.style.maxHeight = "", e.style.overflowY = "";return;}- let i = parseFloat(window.getComputedStyle(e).lineHeight) || uo, a = r ? r * i : Infinity;+ let i = parseFloat(window.getComputedStyle(e).lineHeight) || ho, a = r ? r * i : Infinity;e.style.height = "0px";let o = Math.max(e.scrollHeight, t * i);e.style.height = `${Math.min(o, a)}px`, e.style.maxHeight = r ? `${a}px` : "", e.style.overflowY = o > a ? "auto" : "hidden";};return (0, Z.useLayoutEffect)(h), /* @__PURE__ */ (0, Q.jsx)(Re, {ref: c,- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => tn(lo.field, lo.fieldSize[f], 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", d.fieldClassName, a),+ className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => tn(mo.field, mo.fieldSize[f], 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", d.fieldClassName, a),children: /* @__PURE__ */ (0, Q.jsx)(Ve, {ref: m,rows: t,@@ -4193,12 +4212,12 @@ function fo({ size: e, rows: t = 3, autoResize: n = !1, maxRows: r, resize: i =onInput: (e) => {h(), l?.(e);},- className: tn(lo.textarea, lo.resize[n ? "none" : i], d.inputClassName, o)+ className: tn(mo.textarea, mo.resize[n ? "none" : i], d.inputClassName, o)})});}-fo.displayName = "TextareaBase";-function po({ label: e, hint: t, tooltip: n, placeholder: r, rows: i, autoResize: a, maxRows: o, resize: s, maxLength: c, showCount: l = !1, fieldClassName: u, ref: d, groupRef: f, className: p, value: m, defaultValue: h, onChange: g, ..._ }) {+go.displayName = "TextareaBase";+function _o({ label: e, hint: t, tooltip: n, placeholder: r, rows: i, autoResize: a, maxRows: o, resize: s, maxLength: c, showCount: l = !1, fieldClassName: u, ref: d, groupRef: f, className: p, value: m, defaultValue: h, onChange: g, ..._ }) {let [v, y] = (0, Z.useState)(() => (h ?? "").length), b = m === void 0 ? v : m.length;return /* @__PURE__ */ (0, Q.jsx)(Ht, {..._,@@ -4216,7 +4235,7 @@ function po({ label: e, hint: t, tooltip: n, placeholder: r, rows: i, autoResizetooltip: n,children: e}),- /* @__PURE__ */ (0, Q.jsx)(fo, {+ /* @__PURE__ */ (0, Q.jsx)(go, {ref: d,groupRef: f,placeholder: r,@@ -4228,25 +4247,25 @@ function po({ label: e, hint: t, tooltip: n, placeholder: r, rows: i, autoResizefieldClassName: u}),(t || l) && /* @__PURE__ */ (0, Q.jsxs)("div", {- className: lo.footer,+ className: mo.footer,children: [t && /* @__PURE__ */ (0, Q.jsx)(ut, {isInvalid: m,children: t}), l && /* @__PURE__ */ (0, Q.jsx)("span", {- className: tn(lo.count, m && "text-text-error-primary"),+ className: tn(mo.count, m && "text-text-error-primary"),children: c ? `${b}/${c}` : b})]})] })});}-po.displayName = "Textarea";+_o.displayName = "Textarea";// src/react/settings/code-pattern-settings.tsx-var mo = "^\\+{3}\\s*(?<code>FC2-PPV-\\d+)\n\\[(?<code>[A-Z]+-\\d+)\\]";-function ho({ receipt: e }) {+var vo = "^\\+{3}\\s*(?<code>FC2-PPV-\\d+)\n\\[(?<code>[A-Z]+-\\d+)\\]";+function yo({ receipt: e }) {let t = X({queryKey: jt,- queryFn: ({ signal: e }) => cn(e)+ queryFn: ({ signal: e }) => ln(e)}), [n, r] = (0, Z.useState)(null), i = Y(), a = n ?? (t.data?.codePatterns ?? []).join("\n"), o = i.error || (t.error ? q(t.error) : "");return /* @__PURE__ */ (0, Q.jsxs)(L, {guide: "codes",@@ -4255,10 +4274,10 @@ function ho({ receipt: e }) {t.preventDefault();let n = a.split("\n").map((e) => e.trim()).filter(Boolean);i.run("save", (e) => G(Mt, { codePatterns: n }, "POST", e), (t) => {- vn.setQueryData(jt, t), r(null), e("已保存配置");+ bn.setQueryData(jt, t), r(null), e("已保存配置");});},- children: [/* @__PURE__ */ (0, Q.jsxs)(V, { children: [/* @__PURE__ */ (0, Q.jsx)(N, { children: "内置规则认不出番号时,按这里的规则从文件名里取。每行一条正则表达式,番号写在 (?<code>…) 里,没有命名组就取第一个括号。规则在下一次处理时对还没有番号的视频生效。" }), /* @__PURE__ */ (0, Q.jsx)(po, {+ children: [/* @__PURE__ */ (0, Q.jsxs)(V, { children: [/* @__PURE__ */ (0, Q.jsx)(N, { children: "内置规则认不出番号时,按这里的规则从文件名里取。每行一条正则表达式,番号写在 (?<code>…) 里,没有命名组就取第一个括号。规则在下一次处理时对还没有番号的视频生效。" }), /* @__PURE__ */ (0, Q.jsx)(_o, {id: "codePatternSetting","aria-label": "番号识别规则",rows: 3,@@ -4266,7 +4285,7 @@ function ho({ receipt: e }) {maxRows: 12,spellCheck: "false",autoComplete: "off",- placeholder: mo,+ placeholder: vo,value: a,isDisabled: !t.data,isInvalid: !!o,@@ -4280,7 +4299,7 @@ function ho({ receipt: e }) {});}// src/react/settings/password-pair.tsx-function go({ label: e, password: t, confirmation: n, onPassword: r, onConfirmation: i, disabled: a = !1, passwordError: o, passwordHint: s, confirmationError: c, confirmationInvalid: l = !1 }) {+function bo({ label: e, password: t, confirmation: n, onPassword: r, onConfirmation: i, disabled: a = !1, passwordError: o, passwordHint: s, confirmationError: c, confirmationInvalid: l = !1 }) {return /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(P, {id: "access-password",type: "password",@@ -4310,12 +4329,12 @@ function go({ label: e, password: t, confirmation: n, onPassword: r, onConfirmat})] });}// src/react/settings/access-settings.tsx-var _o = {+var xo = {legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",locked: "访问设置无法读取,请在本机检查配置文件。",password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"};-function vo({ initial: e, receipt: t }) {+function So({ initial: e, receipt: t }) {let [n, r] = (0, Z.useState)(e), [i, a] = (0, Z.useState)(""), [o, s] = (0, Z.useState)(""), [c, l] = (0, Z.useState)(""), [u, d] = (0, Z.useState)(!1), [f, p] = (0, Z.useState)({}), m = (0, Z.useRef)(null), h = Y(), g = (e) => {e.preventDefault();let f = {};@@ -4332,7 +4351,7 @@ function vo({ initial: e, receipt: t }) {let t = e instanceof qe ? e.body : null, n = t?.errors || t?.detail?.errors;n ? p(n) : h.setError(q(e));});- }, _ = _o[n.mode], v = n.mode !== "locked";+ }, _ = xo[n.mode], v = n.mode !== "locked";return /* @__PURE__ */ (0, Q.jsxs)(L, {guide: "access",title: "访问密码",@@ -4364,7 +4383,7 @@ function vo({ initial: e, receipt: t }) {isInvalid: !!f.current_password,hint: f.current_password}) : null,- v && !u ? /* @__PURE__ */ (0, Q.jsx)(go, {+ v && !u ? /* @__PURE__ */ (0, Q.jsx)(bo, {label: n.mode === "password" ? "新访问密码" : "设置访问密码",password: o,confirmation: c,@@ -4389,7 +4408,7 @@ function vo({ initial: e, receipt: t }) {});}// src/react/components/configuration-fields.tsx-function yo({ id: e, label: t, value: n, onChange: r, options: i, isDisabled: a, isInvalid: o, children: s }) {+function Co({ id: e, label: t, value: n, onChange: r, options: i, isDisabled: a, isInvalid: o, children: s }) {let c = `${e}-label`;return /* @__PURE__ */ (0, Q.jsxs)("div", {className: "flex flex-col gap-1.5",@@ -4418,7 +4437,7 @@ function yo({ id: e, label: t, value: n, onChange: r, options: i, isDisabled: a,]});}-function bo({ prefix: e, suffix: t, ...n }) {+function wo({ prefix: e, suffix: t, ...n }) {let r = () => /* @__PURE__ */ (0, Q.jsx)("span", {className: "shrink-0 pr-1 text-body-regular text-text-secondary",children: t@@ -4433,18 +4452,18 @@ function bo({ prefix: e, suffix: t, ...n }) {});}// src/react/settings/port-settings.tsx-var xo = [{+var To = [{value: "0.0.0.0",label: "同一局域网的设备"}, {value: "127.0.0.1",label: "只有这台电脑"}];-function So({ data: e, receipt: t }) {+function Eo({ data: e, receipt: t }) {let n = e.network, r = n ? n.editable : e.editable && e.port_editable !== !1, [i, a] = (0, Z.useState)(n?.host ?? "127.0.0.1"), [o, s] = (0, Z.useState)(n?.mdns_name ?? "peach"), [c, l] = (0, Z.useState)(String(e.port)), [u, d] = (0, Z.useState)({}), [f, p] = (0, Z.useState)(null), m = Y();return (0, Z.useEffect)(() => {if (!f) return;- let e = setTimeout(() => location.assign(f.url), ya);+ let e = setTimeout(() => location.assign(f.url), Sa);return () => clearTimeout(e);}, [f]), f ? /* @__PURE__ */ (0, Q.jsx)(L, {guide: "port",@@ -4480,33 +4499,33 @@ function So({ data: e, receipt: t }) {});} : void 0,children: [/* @__PURE__ */ (0, Q.jsxs)(V, { children: [- n ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(Co, {+ n ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(Do, {label: "本机地址",value: n.local_url,receipt: t}), n.lan_url || n.ip_url ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [- /* @__PURE__ */ (0, Q.jsx)(Co, {+ /* @__PURE__ */ (0, Q.jsx)(Do, {label: "手机连接地址",value: n.lan_url || n.ip_url,receipt: t}),- n.lan_url && n.ip_url ? /* @__PURE__ */ (0, Q.jsx)(Co, {+ n.lan_url && n.ip_url ? /* @__PURE__ */ (0, Q.jsx)(Do, {label: "备用 IP 地址",value: n.ip_url,receipt: t}) : null,/* @__PURE__ */ (0, Q.jsxs)(N, { children: ["手机与电脑连接同一 Wi-Fi。", n.ip_url && n.lan_url ? "名称地址打不开时,可尝试备用 IP 地址。" : ""] })] }) : /* @__PURE__ */ (0, Q.jsx)(N, { children: n.scope === "local" ? "当前只允许这台电脑访问,手机无法连接。" : "局域网连接地址未取得,请检查电脑的网络连接和服务启动配置。" })] }) : null,- r ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [n?.editable ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(yo, {+ r ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [n?.editable ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(Co, {id: "configHost",label: "谁可以访问",value: i,onChange: a,- options: xo,+ options: To,isDisabled: !!m.busy,isInvalid: !!u.host,children: u.host ? /* @__PURE__ */ (0, Q.jsx)(k, { children: u.host }) : null- }), i === "0.0.0.0" ? /* @__PURE__ */ (0, Q.jsx)(bo, {+ }), i === "0.0.0.0" ? /* @__PURE__ */ (0, Q.jsx)(wo, {id: "configMdnsName",label: "局域网访问地址",value: o,@@ -4520,7 +4539,7 @@ function So({ data: e, receipt: t }) {validationBehavior: "aria",isInvalid: !!u.mdns_name,hint: u.mdns_name || void 0- }) : null] }) : null, /* @__PURE__ */ (0, Q.jsx)(bo, {+ }) : null] }) : null, /* @__PURE__ */ (0, Q.jsx)(wo, {id: "configPort",label: "端口",prefix: "localhost:",@@ -4548,7 +4567,7 @@ function So({ data: e, receipt: t }) {}) : null]});}-function Co({ label: e, value: t, receipt: n }) {+function Do({ label: e, value: t, receipt: n }) {let r = Y();return /* @__PURE__ */ (0, Q.jsxs)("div", {className: "flex min-w-0 flex-col gap-2",@@ -4573,12 +4592,12 @@ function Co({ label: e, value: t, receipt: n }) {});}// src/react/settings/peach-proxy-fields.tsx-var wo = [+var Oo = [["environment", "跟随环境"],["direct", "直连"],["proxy", "自定义"]];-function To({ mode: e, onChange: t, labelledBy: n }) {+function ko({ mode: e, onChange: t, labelledBy: n }) {return /* @__PURE__ */ (0, Q.jsx)(R, {"aria-label": n ? void 0 : "连接方式","aria-labelledby": n,@@ -4586,13 +4605,13 @@ function To({ mode: e, onChange: t, labelledBy: n }) {onSelectionChange: (e) => {e !== null && t(String(e));},- children: wo.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(z, {+ children: Oo.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(z, {id: e,children: t}, e))});}-function Eo({ id: e, value: t, onChange: n, saved: r = !1, error: i }) {+function Ao({ id: e, value: t, onChange: n, saved: r = !1, error: i }) {return /* @__PURE__ */ (0, Q.jsx)(P, {id: e,type: "password",@@ -4608,19 +4627,19 @@ function Eo({ id: e, value: t, onChange: n, saved: r = !1, error: i }) {});}// src/react/settings/tunnel-settings.tsx-var Do = 2e3, Oo = [["quick", "临时链接"], ["named", "命名隧道"]], ko = {+var jo = 2e3, Mo = [["quick", "临时链接"], ["named", "命名隧道"]], No = {quick: "临时预览用,地址随机,重启后会变。启动前要先设置访问密码。",named: "使用你在 Cloudflare 绑定的固定域名。启动前要先设置访问密码。"};-function Ao({ revision: e, initial: t, receipt: n }) {+function Po({ revision: e, initial: t, receipt: n }) {let [r, i] = (0, Z.useState)(t), [a, o] = (0, Z.useState)(e), [s, c] = (0, Z.useState)(t.mode), [l, u] = (0, Z.useState)(t.hostname), [d, f] = (0, Z.useState)(""), [p, m] = (0, Z.useState)({}), h = Y(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";(0, Z.useEffect)(() => {if (r.state !== "starting") return;let e = new AbortController(), t = window.setInterval(() => {nn(e.signal).then((t) => {- !e.signal.aborted && t.tunnel && (vn.setQueryData(Ze, t), i(t.tunnel), o(t.revision));+ !e.signal.aborted && t.tunnel && (bn.setQueryData(Ze, t), i(t.tunnel), o(t.revision));}).catch(() => void 0);- }, Do);+ }, jo);return () => {e.abort(), window.clearInterval(t);};@@ -4657,13 +4676,13 @@ function Ao({ revision: e, initial: t, receipt: n }) {isDisabled: g,onChange: (e) => c(e),className: At,- children: Oo.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(Ge, {+ children: Mo.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(Ge, {value: e,className: kt,children: t}, e))}) : null,- /* @__PURE__ */ (0, Q.jsx)(N, { children: ko[_ ? "named" : "quick"] }),+ /* @__PURE__ */ (0, Q.jsx)(N, { children: No[_ ? "named" : "quick"] }),_ ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(P, {id: "tunnel-hostname",label: "公开主机名",@@ -4723,32 +4742,32 @@ function Ao({ revision: e, initial: t, receipt: n }) {});}// src/react/settings/network-settings.tsx-function jo({ data: e, receipt: t, panel: n, issues: r }) {+function Fo({ data: e, receipt: t, panel: n, issues: r }) {return /* @__PURE__ */ (0, Q.jsxs)("div", {- ...Zn(n),+ ...er(n),children: [r,- e.network || e.editable && e.port_editable !== !1 && !e.section_errors?.media_sources ? /* @__PURE__ */ (0, Q.jsx)(So, {+ e.network || e.editable && e.port_editable !== !1 && !e.section_errors?.media_sources ? /* @__PURE__ */ (0, Q.jsx)(Eo, {data: e,receipt: t}) : null,- e.access ? /* @__PURE__ */ (0, Q.jsx)(vo, {+ e.access ? /* @__PURE__ */ (0, Q.jsx)(So, {initial: e.access,receipt: t}) : null,- e.tunnel ? /* @__PURE__ */ (0, Q.jsx)(Ao, {+ e.tunnel ? /* @__PURE__ */ (0, Q.jsx)(Po, {revision: e.revision,initial: e.tunnel,receipt: t}) : null,- e.peach_proxy ? /* @__PURE__ */ (0, Q.jsx)(Mo, {+ e.peach_proxy ? /* @__PURE__ */ (0, Q.jsx)(Io, {initial: e.peach_proxy,receipt: t}) : null]});}-function Mo({ initial: e, receipt: t }) {+function Io({ initial: e, receipt: t }) {let [n, r] = (0, Z.useState)(e), [i, a] = (0, Z.useState)(e.mode), [o, s] = (0, Z.useState)(""), c = Y();return /* @__PURE__ */ (0, Q.jsxs)(L, {id: "peachProxy",@@ -4765,7 +4784,7 @@ function Mo({ initial: e, receipt: t }) {children: [/* @__PURE__ */ (0, Q.jsx)(I, { children: /* @__PURE__ */ (0, Q.jsx)(B, {label: "连接方式",- children: /* @__PURE__ */ (0, Q.jsx)(To, {+ children: /* @__PURE__ */ (0, Q.jsx)(ko, {mode: i,onChange: a})@@ -4773,7 +4792,7 @@ function Mo({ initial: e, receipt: t }) {i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, Q.jsxs)(V, {divided: !0,children: [- i === "proxy" ? /* @__PURE__ */ (0, Q.jsx)(Eo, {+ i === "proxy" ? /* @__PURE__ */ (0, Q.jsx)(Ao, {id: "peachProxyAddress",value: o,onChange: s,@@ -4796,11 +4815,11 @@ function Mo({ initial: e, receipt: t }) {});}// src/react/follow-manage/credentials.tsx-var No = "将清除这个来源在本机和共享副本中的登录凭据。", Po = "其他系统用户可以读取此凭据文件。请在运行 Peach 的 Mac 或 Linux 电脑上,将文件权限设为仅当前用户可读写(0600)。";-function Fo(e, t) {+var Lo = "将清除这个来源在本机和共享副本中的登录凭据。", Ro = "其他系统用户可以读取此凭据文件。请在运行 Peach 的 Mac 或 Linux 电脑上,将文件权限设为仅当前用户可读写(0600)。";+function zo(e, t) {return (e.shared_fields || []).includes(t) ? "来自共享,留空表示不改" : e.fields.includes(t) ? "已保存,留空表示不改" : "未填写";}-function Io({ row: e }) {+function Bo({ row: e }) {if ($t(e)) return /* @__PURE__ */ (0, Q.jsx)(et, {variant: "caption",color: "lime",@@ -4813,11 +4832,11 @@ function Io({ row: e }) {children: $e[e.requirement] || ""});}-function Lo({ row: e, readOnly: t, toast: n }) {- let [r, i] = (0, Z.useState)({}), [a, o] = (0, Z.useState)(""), s = $t(e), c = jn({- mutationFn: (t) => Cn(e.provider, t),+function Vo({ row: e, readOnly: t, toast: n }) {+ let [r, i] = (0, Z.useState)({}), [a, o] = (0, Z.useState)(""), s = $t(e), c = Pn({+ mutationFn: (t) => En(e.provider, t),onSuccess: (e, t) => {- e.note ? o(e.note) : (o(""), i({}), vn.invalidateQueries({+ e.note ? o(e.note) : (o(""), i({}), bn.invalidateQueries({queryKey: at,exact: !0}), n(Object.keys(t).length ? "已保存来源凭据" : "已清除来源凭据"));@@ -4840,7 +4859,7 @@ function Lo({ row: e, readOnly: t, toast: n }) {children: (e.needs || []).map((n) => /* @__PURE__ */ (0, Q.jsx)(P, {type: "password",label: n,- placeholder: Fo(e, n),+ placeholder: zo(e, n),autoComplete: "off",spellCheck: "false",isDisabled: t,@@ -4860,7 +4879,7 @@ function Lo({ row: e, readOnly: t, toast: n }) {...K(c.isPending),onClick: () => void Qt({title: "清除来源凭据",- body: No,+ body: Lo,confirmLabel: "清除来源凭据",danger: !0,onConfirm: () => c.mutateAsync({})@@ -4887,19 +4906,19 @@ function Lo({ row: e, readOnly: t, toast: n }) {]});}-function Ro({ row: e, readOnly: t, toast: n }) {+function Ho({ row: e, readOnly: t, toast: n }) {let r = /* @__PURE__ */ (0, Q.jsxs)("span", {className: "flex min-w-0 flex-wrap items-center gap-2",children: [/* @__PURE__ */ (0, Q.jsx)("span", {className: "inline-flex size-3.5 shrink-0 items-center justify-center",- children: /* @__PURE__ */ (0, Q.jsx)(Yn, { provider: e.provider })+ children: /* @__PURE__ */ (0, Q.jsx)(Qn, { provider: e.provider })}),/* @__PURE__ */ (0, Q.jsx)("b", {className: "min-w-0 text-body-medium wrap-anywhere text-text-primary",children: e.provider_label}),- /* @__PURE__ */ (0, Q.jsx)(Io, { row: e }),+ /* @__PURE__ */ (0, Q.jsx)(Bo, { row: e }),e.missing.map((e) => /* @__PURE__ */ (0, Q.jsx)(et, {variant: "caption",color: "rose",@@ -4917,7 +4936,7 @@ function Ro({ row: e, readOnly: t, toast: n }) {/* @__PURE__ */ (0, Q.jsx)(O, {summary: $t(e) ? "修改凭据" : "填写凭据",defaultOpen: e.requirement === "required" && !$t(e),- children: /* @__PURE__ */ (0, Q.jsx)(Lo, {+ children: /* @__PURE__ */ (0, Q.jsx)(Vo, {row: e,readOnly: t,toast: n@@ -4926,15 +4945,15 @@ function Ro({ row: e, readOnly: t, toast: n }) {e.world_readable ? /* @__PURE__ */ (0, Q.jsx)(F, {tone: "error",title: "凭据文件权限过宽",- children: Po+ children: Ro}) : null]});}-function zo({ data: e, readOnly: t, toast: n, embedded: r = !1 }) {+function Uo({ data: e, readOnly: t, toast: n, embedded: r = !1 }) {let i = e.providers || [], a = i.filter((e) => e.requirement === "required" && !$t(e));if ((0, Z.useEffect)(() => {- bn("credentials", { done: i.filter($t).map((e) => e.provider) });+ Sn("credentials", { done: i.filter($t).map((e) => e.provider) });}, [e]), !i.length) return /* @__PURE__ */ (0, Q.jsx)(rt, {size: "compact",icon: Zt,@@ -4969,7 +4988,7 @@ function zo({ data: e, readOnly: t, toast: n, embedded: r = !1 }) {padding: "none",className: "flex flex-col overflow-hidden"}),- children: e.rows.map((e) => /* @__PURE__ */ (0, Q.jsx)(Ro, {+ children: e.rows.map((e) => /* @__PURE__ */ (0, Q.jsx)(Ho, {row: e,readOnly: t,toast: n@@ -4999,7 +5018,7 @@ function zo({ data: e, readOnly: t, toast: n, embedded: r = !1 }) {});}// src/react/settings/entry-links-settings.tsx-function Bo({ initial: e, receipt: t }) {+function Wo({ initial: e, receipt: t }) {let [n, r] = (0, Z.useState)(e.sites), i = Y(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {...n,host: t@@ -5039,31 +5058,31 @@ function Bo({ initial: e, receipt: t }) {});}// src/react/settings/indexer-settings.tsx-var Vo = "/api/configuration/indexers";-function Ho({ receipt: e }) {+var Go = "/api/configuration/indexers";+function Ko({ receipt: e }) {let t = X({queryKey: ["indexers"],- queryFn: ({ signal: e }) => W(Vo, e),+ queryFn: ({ signal: e }) => W(Go, e),refetchOnMount: "always"});return t.error ? /* @__PURE__ */ (0, Q.jsx)(k, { children: q(t.error) }) : t.isFetching ? /* @__PURE__ */ (0, Q.jsx)(Nt, {label: "正在读取资源搜索设置",- html: un- }) : t.data ? /* @__PURE__ */ (0, Q.jsx)(Go, {+ html: dn+ }) : t.data ? /* @__PURE__ */ (0, Q.jsx)(Yo, {initial: t.data,receipt: e}) : null;}-function Uo(e) {+function qo(e) {try {return new globalThis.URL(e).host;} catch {return e;}}-function Wo({ row: e, index: t }) {+function Jo({ row: e, index: t }) {let n = [- e.url ? Uo(e.url) : "未填地址",+ e.url ? qo(e.url) : "未填地址",e.enabled ? "已启用" : "已停用",e.api_key_set && !e.clear_api_key ? "已保存 API key" : e.api_key ? "API key 待保存" : "没有 API key"];@@ -5078,10 +5097,10 @@ function Wo({ row: e, index: t }) {})]});}-function Go({ initial: e, receipt: t }) {+function Yo({ initial: e, receipt: t }) {let [n, r] = (0, Z.useState)(e.indexers), i = Y();(0, Z.useEffect)(() => {- bn("indexers", { open: e.indexers.map((e) => !e.url) });+ Sn("indexers", { open: e.indexers.map((e) => !e.url) });}, [e]);let a = (e, t) => r((n) => n.map((n) => n.key === e ? {...n,@@ -5091,7 +5110,7 @@ function Go({ initial: e, receipt: t }) {guide: "indexers",title: "资源搜索",onSubmit: (e) => {- e.preventDefault(), i.run("save", (e) => G(Vo, { indexers: n }, "POST", e), (e) => {+ e.preventDefault(), i.run("save", (e) => G(Go, { indexers: n }, "POST", e), (e) => {r(e.indexers), t("已保存索引器");});},@@ -5111,7 +5130,7 @@ function Go({ initial: e, receipt: t }) {className: "min-w-0 border-t border-separator-border pt-2",children: /* @__PURE__ */ (0, Q.jsx)(O, {defaultOpen: !e.url,- summary: /* @__PURE__ */ (0, Q.jsx)(Wo, {+ summary: /* @__PURE__ */ (0, Q.jsx)(Jo, {row: e,index: t}),@@ -5181,7 +5200,7 @@ function Go({ initial: e, receipt: t }) {type: "button",disabled: !!i.busy || n.length >= e.max_indexers,onClick: () => r([...n, {- key: yn(),+ key: xn(),name: "",url: "",enabled: !0,@@ -5196,7 +5215,7 @@ function Go({ initial: e, receipt: t }) {});}// src/react/settings/source-settings.tsx-function Ko({ data: e, receipt: t, panel: n, issues: r }) {+function Xo({ data: e, receipt: t, panel: n, issues: r }) {let i = X({queryKey: at,queryFn: ({ signal: e }) => rn(e),@@ -5204,7 +5223,7 @@ function Ko({ data: e, receipt: t, panel: n, issues: r }) {refetchOnMount: "always"});return /* @__PURE__ */ (0, Q.jsxs)("div", {- ...Zn(n),+ ...er(n),children: [r,/* @__PURE__ */ (0, Q.jsx)("div", {@@ -5215,7 +5234,7 @@ function Ko({ data: e, receipt: t, panel: n, issues: r }) {children: "采集来源与登录状态"})}),- i.data ? /* @__PURE__ */ (0, Q.jsx)(zo, {+ i.data ? /* @__PURE__ */ (0, Q.jsx)(Uo, {data: i.data,readOnly: !!e.ledger_read_only,toast: t,@@ -5228,9 +5247,9 @@ function Ko({ data: e, receipt: t, panel: n, issues: r }) {label: "正在读取来源凭据",html: en}),- /* @__PURE__ */ (0, Q.jsx)(ro, { receipt: t }),- /* @__PURE__ */ (0, Q.jsx)(Ho, { receipt: t }),- e.entry_links ? /* @__PURE__ */ (0, Q.jsx)(Bo, {+ /* @__PURE__ */ (0, Q.jsx)(so, { receipt: t }),+ /* @__PURE__ */ (0, Q.jsx)(Ko, { receipt: t }),+ e.entry_links ? /* @__PURE__ */ (0, Q.jsx)(Wo, {initial: e.entry_links,receipt: t}) : null@@ -5238,7 +5257,7 @@ function Ko({ data: e, receipt: t, panel: n, issues: r }) {});}// src/react/settings/configuration-shape.ts-function qo(e) {+function Zo(e) {let t = e.downloads;if (!t) return null;let n = t.media_sources ?? [];@@ -5251,7 +5270,7 @@ function qo(e) {browserLogin: t.pikpak_browser.available};}-function Jo(e) {+function Qo(e) {let t = e.tunnel;return {port: !!(e.editable && e.port_editable !== !1),@@ -5265,7 +5284,7 @@ function Jo(e) {tunnelNote: !!(t && (!t.available || t.state === "starting" || t.state === "running" && t.url))};}-function Yo(e) {+function $o(e) {let t = e.updates, n = e.update_job?.state ?? "idle", r = !t || t.state === "unchecked" && !t.checked_at && n === "idle", i = +!!t?.package_kind + (r ? 0 : +!!t?.checked_at + (t?.state === "unchecked" ? 0 : 1) + (n === "idle" ? 0 : 1)), a = e.automatic_updates, o = e.storage;return {releaseFacts: t?.package_kind ? 5 : 4,@@ -5286,12 +5305,12 @@ function Yo(e) {};}// src/react/settings/configuration-page.tsx-function Xo({ receipt: e, reopenTutorial: t, section: n = "", diagnostics: r }) {+function es({ receipt: e, reopenTutorial: t, section: n = "", diagnostics: r }) {let i = X({queryKey: Ze,queryFn: ({ signal: e }) => nn(e)}), a = i.data;- return a ? /* @__PURE__ */ (0, Q.jsx)($o, {+ return a ? /* @__PURE__ */ (0, Q.jsx)(rs, {data: a,receipt: e,reopenTutorial: t,@@ -5310,7 +5329,7 @@ function Xo({ receipt: e, reopenTutorial: t, section: n = "", diagnostics: r })})});}-function Zo({ data: e, sections: t, reload: n, refreshing: r }) {+function ts({ data: e, sections: t, reload: n, refreshing: r }) {return /* @__PURE__ */ (0, Q.jsx)(Q.Fragment, { children: t.map((t) => {let i = e.section_errors?.[t];return i ? /* @__PURE__ */ (0, Q.jsx)(F, {@@ -5327,14 +5346,14 @@ function Zo({ data: e, sections: t, reload: n, refreshing: r }) {}, t) : null;}) });}-var Qo = 0;-function $o({ data: e, receipt: t, reopenTutorial: n, section: r, diagnostics: i, reload: a, refreshing: o }) {- let [s] = (0, Z.useState)(() => `board-tabs-${++Qo}`), [c, l] = (0, Z.useState)(r), u = (0, Z.useRef)(null), d = (0, Z.useRef)(c);+var ns = 0;+function rs({ data: e, receipt: t, reopenTutorial: n, section: r, diagnostics: i, reload: a, refreshing: o }) {+ let [s] = (0, Z.useState)(() => `board-tabs-${++ns}`), [c, l] = (0, Z.useState)(r), u = (0, Z.useRef)(null), d = (0, Z.useRef)(c);(0, Z.useEffect)(() => {l(r);}, [r]), (0, Z.useEffect)(() => {- let t = qo(e);- t && bn("downloads", t), bn("network", Jo(e)), bn("maintenance", Yo(e));+ let t = Zo(e);+ t && Sn("downloads", t), Sn("network", Qo(e)), Sn("maintenance", $o(e));}, [e]), (0, Z.useLayoutEffect)(() => {if (d.current === c) return;d.current = c;@@ -5346,9 +5365,9 @@ function $o({ data: e, receipt: t, reopenTutorial: n, section: r, diagnostics: iwindow.scrollTo(0, Math.max(0, window.scrollY + t.getBoundingClientRect().top - r));}, [c]);let f = (e) => {- l(e), En(Tn(e), {+ l(e), kn(On(e), {replace: !0,- state: hn.navigation.location.state+ state: gn.navigation.location.state});}, [p, m] = (0, Z.useState)(() => matchMedia("(max-width:900px)").matches);(0, Z.useEffect)(() => {@@ -5358,7 +5377,7 @@ function $o({ data: e, receipt: t, reopenTutorial: n, section: r, diagnostics: ilet h = (0, Z.useRef)([]), g = {data: e,receipt: t- }, _ = (t) => /* @__PURE__ */ (0, Q.jsx)(Zo, {+ }, _ = (t) => /* @__PURE__ */ (0, Q.jsx)(ts, {data: e,sections: t,reload: a,@@ -5373,22 +5392,22 @@ function $o({ data: e, receipt: t, reopenTutorial: n, section: r, diagnostics: i{title: "媒体库与入库",body: (n) => /* @__PURE__ */ (0, Q.jsxs)("div", {- ...Zn(n),+ ...er(n),children: [_(["media_sources","library_count","mount_dependencies"]),- !e.section_errors?.media_sources && !e.section_errors?.library_count ? /* @__PURE__ */ (0, Q.jsx)(Za, { ...g }) : null,- /* @__PURE__ */ (0, Q.jsx)(ho, { receipt: t }),- /* @__PURE__ */ (0, Q.jsx)(so, { receipt: t })+ !e.section_errors?.media_sources && !e.section_errors?.library_count ? /* @__PURE__ */ (0, Q.jsx)(to, { ...g }) : null,+ /* @__PURE__ */ (0, Q.jsx)(yo, { receipt: t }),+ /* @__PURE__ */ (0, Q.jsx)(fo, { receipt: t })]})},{title: "来源与订阅",- body: (e) => /* @__PURE__ */ (0, Q.jsx)(Ko, {+ body: (e) => /* @__PURE__ */ (0, Q.jsx)(Xo, {...g,panel: e,issues: _(["entry_links"])@@ -5396,7 +5415,7 @@ function $o({ data: e, receipt: t, reopenTutorial: n, section: r, diagnostics: i},...b || e.section_errors?.downloads ? [{title: "下载渠道",- body: (e) => /* @__PURE__ */ (0, Q.jsx)(fr, {+ body: (e) => /* @__PURE__ */ (0, Q.jsx)(hr, {initial: b,receipt: t,panel: e,@@ -5405,7 +5424,7 @@ function $o({ data: e, receipt: t, reopenTutorial: n, section: r, diagnostics: i}] : [],...y ? [{title: "网络与访问",- body: (e) => /* @__PURE__ */ (0, Q.jsx)(jo, {+ body: (e) => /* @__PURE__ */ (0, Q.jsx)(Fo, {...g,panel: e,issues: _(v)@@ -5414,7 +5433,7 @@ function $o({ data: e, receipt: t, reopenTutorial: n, section: r, diagnostics: i{title: "应用与维护",body: (e) => /* @__PURE__ */ (0, Q.jsxs)("div", {- ...Zn(e),+ ...er(e),children: [_(["startup",@@ -5427,9 +5446,9 @@ function $o({ data: e, receipt: t, reopenTutorial: n, section: r, diagnostics: i"automatic_updates","facts"]),- /* @__PURE__ */ (0, Q.jsx)(_a, { ...g }),- /* @__PURE__ */ (0, Q.jsx)(co, { receipt: t }),- /* @__PURE__ */ (0, Q.jsx)(aa, {+ /* @__PURE__ */ (0, Q.jsx)(ba, { ...g }),+ /* @__PURE__ */ (0, Q.jsx)(po, { receipt: t }),+ /* @__PURE__ */ (0, Q.jsx)(ca, {...g,reopenTutorial: n})@@ -5439,7 +5458,7 @@ function $o({ data: e, receipt: t, reopenTutorial: n, section: r, diagnostics: i{title: "系统诊断",body: (e) => /* @__PURE__ */ (0, Q.jsx)("div", {- ...Zn(e),+ ...er(e),children: e.active ? i : null})}@@ -5490,6 +5509,6 @@ function $o({ data: e, receipt: t, reopenTutorial: n, section: r, diagnostics: i})] }, e))]});}-export { Xo as ConfigurationPage };+export { es as ConfigurationPage };-//# debugId=ad2c7afd-21c9-4cd0-931a-0e2c90aa252c\ No newline at end of file+//# debugId=1f937643-2375-4258-a8ef-d230a94de6c6\ No newline at end of filediff --git a/web/dist/peach-app.js b/web/dist/peach-app.jsindex 7449e5f75..6577d2a50 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] = "4cd4bd67-af63-4621-8b1a-37326bee31e3", e._sentryDebugIdIdentifier = "sentry-dbid-4cd4bd67-af63-4621-8b1a-37326bee31e3");+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "bb0dd71e-f97d-458b-9aaa-1709ddce8273", e._sentryDebugIdIdentifier = "sentry-dbid-bb0dd71e-f97d-458b-9aaa-1709ddce8273");} 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) => {@@ -43494,7 +43494,7 @@ var She = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Ffill: 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" })), ege = ({ 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" })), 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,@@ -43502,7 +43502,7 @@ var She = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Ffill: e,...r,className: "remixicon " + (n || "")-}, F.createElement("path", { d: "M7 7V17H17V7H7ZM6 5H18C18.5523 5 19 5.44772 19 6V18C19 18.5523 18.5523 19 18 19H6C5.44772 19 5 18.5523 5 18V6C5 5.44772 5.44772 5 6 5Z" })), tge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {+}, F.createElement("path", { d: "M7 7V17H17V7H7ZM6 5H18C18.5523 5 19 5.44772 19 6V18C19 18.5523 18.5523 19 18 19H6C5.44772 19 5 18.5523 5 18V6C5 5.44772 5.44772 5 6 5Z" })), ege = ({ 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,@@ -43510,7 +43510,7 @@ var She = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Ffill: 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" })), nge = ({ 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" })), tge = ({ 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,@@ -43518,7 +43518,7 @@ var She = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Ffill: 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" })), rge = ({ 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" })), nge = ({ 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,@@ -43526,7 +43526,7 @@ var She = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Ffill: 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" })), pV = ({ 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" })), 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,@@ -43534,7 +43534,7 @@ var She = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Ffill: e,...r,className: "remixicon " + (n || "")-}, F.createElement("path", { d: "M5.32943 3.27158C6.56252 2.8332 7.9923 3.10749 8.97927 4.09446C10.1002 5.21537 10.3019 6.90741 9.5843 8.23385L20.293 18.9437L18.8788 20.3579L8.16982 9.64875C6.84325 10.3669 5.15069 10.1654 4.02952 9.04421C3.04227 8.05696 2.7681 6.62665 3.20701 5.39332L5.44373 7.63C6.02952 8.21578 6.97927 8.21578 7.56505 7.63C8.15084 7.04421 8.15084 6.09446 7.56505 5.50868L5.32943 3.27158ZM15.6968 5.15512L18.8788 3.38736L20.293 4.80157L18.5252 7.98355L16.7574 8.3371L14.6361 10.4584L13.2219 9.04421L15.3432 6.92289L15.6968 5.15512ZM8.97927 13.2868L10.3935 14.7011L5.09018 20.0044C4.69966 20.3949 4.06649 20.3949 3.67597 20.0044C3.31334 19.6417 3.28744 19.0699 3.59826 18.6774L3.67597 18.5902L8.97927 13.2868Z" })), ige = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {+}, F.createElement("path", { d: "M5.32943 3.27158C6.56252 2.8332 7.9923 3.10749 8.97927 4.09446C10.1002 5.21537 10.3019 6.90741 9.5843 8.23385L20.293 18.9437L18.8788 20.3579L8.16982 9.64875C6.84325 10.3669 5.15069 10.1654 4.02952 9.04421C3.04227 8.05696 2.7681 6.62665 3.20701 5.39332L5.44373 7.63C6.02952 8.21578 6.97927 8.21578 7.56505 7.63C8.15084 7.04421 8.15084 6.09446 7.56505 5.50868L5.32943 3.27158ZM15.6968 5.15512L18.8788 3.38736L20.293 4.80157L18.5252 7.98355L16.7574 8.3371L14.6361 10.4584L13.2219 9.04421L15.3432 6.92289L15.6968 5.15512ZM8.97927 13.2868L10.3935 14.7011L5.09018 20.0044C4.69966 20.3949 4.06649 20.3949 3.67597 20.0044C3.31334 19.6417 3.28744 19.0699 3.59826 18.6774L3.67597 18.5902L8.97927 13.2868Z" })), rge = ({ 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,@@ -43542,7 +43542,7 @@ var She = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Ffill: 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" })), age = ({ 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" })), ige = ({ 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,@@ -43550,7 +43550,7 @@ var She = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Ffill: e,...r,className: "remixicon " + (n || "")-}, F.createElement("path", { d: "M20 22H18V20C18 18.3431 16.6569 17 15 17H9C7.34315 17 6 18.3431 6 20V22H4V20C4 17.2386 6.23858 15 9 15H15C17.7614 15 20 17.2386 20 20V22ZM12 13C8.68629 13 6 10.3137 6 7C6 3.68629 8.68629 1 12 1C15.3137 1 18 3.68629 18 7C18 10.3137 15.3137 13 12 13ZM12 11C14.2091 11 16 9.20914 16 7C16 4.79086 14.2091 3 12 3C9.79086 3 8 4.79086 8 7C8 9.20914 9.79086 11 12 11Z" })), mV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {+}, F.createElement("path", { d: "M20 22H18V20C18 18.3431 16.6569 17 15 17H9C7.34315 17 6 18.3431 6 20V22H4V20C4 17.2386 6.23858 15 9 15H15C17.7614 15 20 17.2386 20 20V22ZM12 13C8.68629 13 6 10.3137 6 7C6 3.68629 8.68629 1 12 1C15.3137 1 18 3.68629 18 7C18 10.3137 15.3137 13 12 13ZM12 11C14.2091 11 16 9.20914 16 7C16 4.79086 14.2091 3 12 3C9.79086 3 8 4.79086 8 7C8 9.20914 9.79086 11 12 11Z" })), hV = ({ 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,@@ -43558,7 +43558,7 @@ var She = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Ffill: 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" })), hV = ({ 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" })), gV = ({ 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,@@ -43566,7 +43566,7 @@ var She = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Ffill: 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" })), oge = ({ 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" })), age = ({ 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,@@ -43574,7 +43574,7 @@ var She = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Ffill: 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" })), sge = ({ 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" })), oge = ({ 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,@@ -43582,7 +43582,7 @@ var She = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Ffill: e,...r,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" })), cge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {+}, 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" })), sge = ({ 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,@@ -43592,7 +43592,7 @@ var She = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => FclassName: "remixicon " + (n || "")}, F.createElement("path", { d: "M8.00008 6V9H5.00008V6H8.00008ZM3.00008 4V11H10.0001V4H3.00008ZM13.0001 4H21.0001V6H13.0001V4ZM13.0001 11H21.0001V13H13.0001V11ZM13.0001 18H21.0001V20H13.0001V18ZM10.7072 16.2071L9.29297 14.7929L6.00008 18.0858L4.20718 16.2929L2.79297 17.7071L6.00008 20.9142L10.7072 16.2071Z" }));// src/react/boardui/components/base/input/label.tsx-function gV({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {+function _V({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {return /* @__PURE__ */ (0, I.jsxs)(rR, {"data-label": "true",...a,@@ -43612,7 +43612,7 @@ function gV({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr});}// src/react/boardui/components/base/input/hint-text.tsx-function _V({ isInvalid: e = !1, className: t, ...n }) {+function vV({ isInvalid: e = !1, className: t, ...n }) {return /* @__PURE__ */ (0, I.jsx)(upe, {slot: e ? "errorMessage" : "description",...n,@@ -43620,9 +43620,9 @@ function _V({ isInvalid: e = !1, className: t, ...n }) {});}// src/react/boardui/components/base/input/input.tsx-var vV = (0, F.createContext)({});-function yV({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {- return /* @__PURE__ */ (0, I.jsx)(vV.Provider, {+var yV = (0, F.createContext)({});+function bV({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {+ return /* @__PURE__ */ (0, I.jsx)(yV.Provider, {value: {size: e,fieldClassName: t,@@ -43636,8 +43636,8 @@ function yV({ size: e = "medium", fieldClassName: t, inputClassName: n, classNam})});}-yV.displayName = "TextField";-var bV = eL({+bV.displayName = "TextField";+var xV = eL({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",@@ -43652,44 +43652,44 @@ var bV = eL({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 xV({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {- let l = (0, F.useContext)(vV), u = e ?? l.size ?? "medium", d = r != null;+function SV({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {+ let l = (0, F.useContext)(yV), u = e ?? l.size ?? "medium", d = r != null;return /* @__PURE__ */ (0, I.jsx)(hR, {ref: s,- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => q(bV.field, d ? bV.fieldWithAddonSize[u] : bV.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 }) => q(xV.field, d ? xV.fieldWithAddonSize[u] : xV.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: bV.content,+ className: xV.content,children: [/* @__PURE__ */ (0, I.jsxs)("div", {- className: bV.leftSection,+ className: xV.leftSection,children: [d ? r : t ? /* @__PURE__ */ (0, I.jsx)(t, {- className: bV.icon,+ className: xV.icon,"aria-hidden": !0}) : null, /* @__PURE__ */ (0, I.jsx)(gpe, {ref: o,...c,- className: q(bV.input, l.inputClassName, a)+ className: q(xV.input, l.inputClassName, a)})]}), n ? /* @__PURE__ */ (0, I.jsx)(n, {- className: bV.icon,+ className: xV.icon,"aria-hidden": !0}) : null]})});}-xV.displayName = "InputBase";-function SV({ 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)(yV, {+SV.displayName = "InputBase";+function CV({ 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)(bV, {...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)(gV, {+ e && /* @__PURE__ */ (0, I.jsx)(_V, {isRequired: u,isInvalid: d,tooltip: n,children: e}),- /* @__PURE__ */ (0, I.jsx)(xV, {+ /* @__PURE__ */ (0, I.jsx)(SV, {ref: c,groupRef: l,placeholder: r,@@ -43698,23 +43698,23 @@ function SV({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, traleadingAddon: o,fieldClassName: s}),- t && /* @__PURE__ */ (0, I.jsx)(_V, {+ t && /* @__PURE__ */ (0, I.jsx)(vV, {isInvalid: d,children: t})] })});}-SV.displayName = "Input";+CV.displayName = "Input";// src/react/components/modal-frame.tsx-var lge = {+var cge = {"avatar-picker": "max-w-avatar-picker","cover-crop": "max-w-cover-crop",form: "max-w-form-modal",collections: "max-w-4xl",tutorial: "max-w-2xl"};-function CV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfaceClassName: a = "" }) {+function wV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfaceClassName: a = "" }) {let { isFocusVisible: o } = FC();return /* @__PURE__ */ (0, I.jsx)(Yz, {isOpen: e,@@ -43727,7 +43727,7 @@ function CV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfachildren: /* @__PURE__ */ (0, I.jsx)(Qpe, {"data-modal-surface": "","data-modal-width": n,- className: q("flex max-h-full w-full flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown", lge[n], a),+ className: q("flex max-h-full w-full flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown", cge[n], a),children: /* @__PURE__ */ (0, I.jsx)(Gz, {"aria-label": r,className: "flex min-h-0 flex-col overflow-y-auto overscroll-contain outline-none",@@ -43736,7 +43736,7 @@ function CV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfa})});}-function wV({ children: e }) {+function TV({ 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",@@ -43744,7 +43744,7 @@ function wV({ children: e }) {});}// src/react/components/note.tsx-function TV({ tone: e, title: t, action: n, extra: r, children: i, actionLayout: a = "inline", className: o }) {+function EV({ 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: q("flex gap-3", a === "inline" ? "flex-wrap items-center justify-between" : "flex-col items-start"),@@ -43792,11 +43792,11 @@ function TV({ tone: e, title: t, action: n, extra: r, children: i, actionLayout:}}// src/react/components/empty-state.tsx-var uge = {+var lge = {standard: "min-h-80 px-6 py-12",compact: "min-h-60 px-4 py-6"};-function dge({ target: e, children: t }) {+function uge({ target: e, children: t }) {return /* @__PURE__ */ (0, I.jsx)(J, {size: "small",variant: "secondary",@@ -43804,11 +43804,11 @@ function dge({ target: e, children: t }) {children: t});}-function EV({ icon: e, title: t, actions: n, children: r, size: i = "standard" }) {+function DV({ 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 ${uge[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 ${lge[i]}`,children: [/* @__PURE__ */ (0, I.jsx)("span", {"aria-hidden": !0,@@ -43834,9 +43834,9 @@ function EV({ icon: e, title: t, actions: n, children: r, size: i = "standard" }});}// src/react/components/sprite-glyph.tsx-var DV = /* @__PURE__ */ new Map();-function OV(e) {- let t = DV.get(e);+var OV = /* @__PURE__ */ new Map();+function kV(e) {+ let t = OV.get(e);if (t) return t;let { wide: n, viewBox: r } = Sn(e), i = n ? ({ className: t }) => /* @__PURE__ */ (0, I.jsx)("svg", {"aria-hidden": !0,@@ -43852,10 +43852,10 @@ function OV(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})`, DV.set(e, i), i;+ return i.displayName = `SpriteGlyph(${e})`, OV.set(e, i), i;}// src/react/components/settings-dialog-close.tsx-function kV({ label: e, id: t, onPress: n }) {+function AV({ label: e, id: t, onPress: n }) {return /* @__PURE__ */ (0, I.jsx)("button", {type: "button",id: t,@@ -43870,60 +43870,60 @@ function kV({ label: e, id: t, onPress: n }) {});}// src/react/settings/busy-props.ts-function AV(e) {+function jV(e) {return e ? {"aria-busy": !0,"aria-disabled": !0} : {};}// src/react/library-shortcuts/library-shortcuts.ts-var jV = ["library-shortcuts"], MV = "/api/library-shortcuts";-function NV(e = !0) {+var MV = ["library-shortcuts"], NV = "/api/library-shortcuts";+function PV(e = !0) {return Pt({- queryKey: jV,- queryFn: ({ signal: e }) => B(MV, e),+ queryKey: MV,+ queryFn: ({ signal: e }) => B(NV, e),enabled: e,refetchOnMount: e ? "always" : !1});}-function PV() {+function FV() {return Ft({- mutationKey: jV,- mutationFn: (e) => V(MV, e),+ mutationKey: MV,+ mutationFn: (e) => V(NV, e),onSuccess: (e, t) => {- H.setQueryData(jV, e), t.action === "favorite" && t.scope === "online" && (H.invalidateQueries({ queryKey: ["follow", "tags"] }), H.invalidateQueries({ queryKey: ["tag-management"] }));+ H.setQueryData(MV, e), t.action === "favorite" && t.scope === "online" && (H.invalidateQueries({ queryKey: ["follow", "tags"] }), H.invalidateQueries({ queryKey: ["tag-management"] }));}});}-function FV(e, t) {+function IV(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 fge(e) {+function dge(e) {return e.scope === "online" ? `/follow?${new URLSearchParams({ tag: e.name })}` : Nn(e.kind, e.name, e.entity_id);}// src/react/library-shortcuts/shortcut-controls.tsx-var IV = OV("star"), pge = OV("bookmark-plus"), LV = OV("chevron-right"), RV = {+var LV = kV("star"), fge = kV("bookmark-plus"), RV = kV("chevron-right"), zV = {performer: "艺人",creator: "创作者",studio: "片商与厂牌",series: "系列",agency: "事务所",tag: "标签"-}, zV = {- all: OV("star"),- performer: OV("user-round"),- creator: OV("user-round"),- studio: OV("clapperboard"),- series: OV("film"),- agency: OV("briefcase"),- tag: OV("tags"),- filters: OV("list-filter")-}, BV = [+}, BV = {+ all: kV("star"),+ performer: kV("user-round"),+ creator: kV("user-round"),+ studio: kV("clapperboard"),+ series: kV("film"),+ agency: kV("briefcase"),+ tag: kV("tags"),+ filters: kV("list-filter")+}, VV = [["all", "全部"],- ...Object.entries(RV),+ ...Object.entries(zV),["filters", "保存的筛选"]];-function VV({ label: e, children: t, ...n }) {+function HV({ label: e, children: t, ...n }) {return /* @__PURE__ */ (0, I.jsx)("button", {type: "button",...n,@@ -43933,20 +43933,20 @@ function VV({ label: e, children: t, ...n }) {children: t});}-function HV({ item: e }) {- return /* @__PURE__ */ (0, I.jsx)(mge, { item: e }, `${e.scope || "local"}:${e.kind}:${e.tag_id || e.entity_id}:${e.name}`);+function UV({ item: e }) {+ return /* @__PURE__ */ (0, I.jsx)(pge, { item: e }, `${e.scope || "local"}:${e.kind}:${e.tag_id || e.entity_id}:${e.name}`);}-function mge({ item: e }) {+function pge({ item: e }) {wL();- let t = NV(!1), n = (0, F.useRef)(t.data), r = PV(), i = t.data && t.data !== n.current ? FV(t.data.favorites || [], e) : e.favorite ?? (t.data ? FV(t.data.favorites || [], e) : !1);+ let t = PV(!1), n = (0, F.useRef)(t.data), r = FV(), i = t.data && t.data !== n.current ? IV(t.data.favorites || [], e) : e.favorite ?? (t.data ? IV(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)(VV, {+ /* @__PURE__ */ (0, I.jsx)(HV, {"data-favorite": "","aria-pressed": !!i,label: `${i ? "取消收藏" : "收藏"}${tn(e.kind, e.name, e.entity_id)}`,- ...AV(r.isPending),+ ...jV(r.isPending),onClick: () => {r.isPending || r.mutate({action: "favorite",@@ -43957,9 +43957,9 @@ function mge({ item: e }) {children: r.isPending ? /* @__PURE__ */ (0, I.jsx)("span", {"aria-hidden": !0,dangerouslySetInnerHTML: { __html: zs("") }- }) : /* @__PURE__ */ (0, I.jsx)(IV, {})+ }) : /* @__PURE__ */ (0, I.jsx)(LV, {})}),- r.isError ? /* @__PURE__ */ (0, I.jsx)(TV, {+ r.isError ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "error",children: cr(r.error)}) : null,@@ -43973,33 +43973,33 @@ function mge({ item: e }) {]});}-function UV({ currentHref: e, kind: t }) {+function WV({ 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)(jL, {"data-shortcuts-trigger": "",label: "我的收藏",- icon: IV,+ icon: LV,"aria-haspopup": "dialog","aria-expanded": n,onPress: () => r(!0)})- }), /* @__PURE__ */ (0, I.jsx)(CV, {+ }), /* @__PURE__ */ (0, I.jsx)(wV, {isOpen: n,onOpenChange: r,width: "collections",label: "我的收藏",- children: n ? /* @__PURE__ */ (0, I.jsx)(hge, {+ children: n ? /* @__PURE__ */ (0, I.jsx)(mge, {currentHref: e,kind: t,close: () => r(!1)}) : null})] });}-function hge({ currentHref: e, kind: t, close: n }) {+function mge({ currentHref: e, kind: t, close: n }) {wL();- let r = NV(), i = PV(), [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);+ let r = PV(), i = FV(), [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);@@ -44017,7 +44017,7 @@ function hge({ currentHref: e, kind: t, close: n }) {}, [s]), (0, F.useLayoutEffect)(() => {x.current?.();});- let C = BV.find(([e]) => e === s)?.[1] || "全部", w = (e) => {+ let C = VV.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;@@ -44040,7 +44040,7 @@ function hge({ 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)(AV, {label: "关闭我的收藏",onPress: n})]@@ -44070,8 +44070,8 @@ function hge({ currentHref: e, kind: t, close: n }) {role: "presentation",children: "我的收藏"}),- BV.map(([e, t]) => {- let n = zV[e] || IV, r = e === "filters" ? E?.filters.length || 0 : (E?.favorites || []).filter((t) => e === "all" || t.kind === e).length;+ VV.map(([e, t]) => {+ let n = BV[e] || LV, 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",@@ -44103,17 +44103,17 @@ function hge({ currentHref: e, kind: t, close: n }) {href: "/flagged",onClick: n,children: [- /* @__PURE__ */ (0, I.jsx)(IV, { "aria-hidden": !0 }),+ /* @__PURE__ */ (0, I.jsx)(LV, { "aria-hidden": !0 }),"已标记",- /* @__PURE__ */ (0, I.jsx)(LV, { "aria-hidden": !0 })+ /* @__PURE__ */ (0, I.jsx)(RV, { "aria-hidden": !0 })]}), /* @__PURE__ */ (0, I.jsxs)("a", {href: "/watch-later",onClick: n,children: [- /* @__PURE__ */ (0, I.jsx)(pge, { "aria-hidden": !0 }),+ /* @__PURE__ */ (0, I.jsx)(fge, { "aria-hidden": !0 }),"稍后看",- /* @__PURE__ */ (0, I.jsx)(LV, { "aria-hidden": !0 })+ /* @__PURE__ */ (0, I.jsx)(RV, { "aria-hidden": !0 })]})]})]@@ -44132,7 +44132,7 @@ function hge({ 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)(TV, {+ r.isError ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "error",action: /* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",@@ -44141,14 +44141,14 @@ function hge({ currentHref: e, kind: t, close: n }) {}),children: cr(r.error)}) : null,- i.isError ? /* @__PURE__ */ (0, I.jsx)(TV, {+ i.isError ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "error",children: cr(i.error)}) : null,E ? s === "filters" ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [- E.filters.length ? null : /* @__PURE__ */ (0, I.jsx)(EV, {+ E.filters.length ? null : /* @__PURE__ */ (0, I.jsx)(DV, {size: "compact",- icon: OV("list-filter"),+ icon: kV("list-filter"),title: "还没有保存的筛选",actions: /* @__PURE__ */ (0, I.jsx)(zL, {size: "small",@@ -44169,7 +44169,7 @@ function hge({ currentHref: e, kind: t, close: n }) {variant: "secondary",size: "small","aria-label": `删除筛选${e.name}`,- ...AV(i.isPending),+ ...jV(i.isPending),onClick: () => {i.isPending || i.mutate({action: "delete_filter",@@ -44184,7 +44184,7 @@ function hge({ currentHref: e, kind: t, close: n }) {className: "flex flex-col gap-3","aria-label": "保存当前筛选",children: [- /* @__PURE__ */ (0, I.jsx)(SV, {+ /* @__PURE__ */ (0, I.jsx)(CV, {label: "筛选名称",value: a,onChange: o,@@ -44193,7 +44193,7 @@ function hge({ currentHref: e, kind: t, close: n }) {/* @__PURE__ */ (0, I.jsx)(J, {type: "submit",disabled: !a.trim(),- ...AV(i.isPending),+ ...jV(i.isPending),children: "保存当前筛选"}),d ? /* @__PURE__ */ (0, I.jsx)("span", {@@ -44204,16 +44204,16 @@ function hge({ currentHref: e, kind: t, close: n }) {]}) : null] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [- /* @__PURE__ */ (0, I.jsx)(SV, {+ /* @__PURE__ */ (0, I.jsx)(CV, {"aria-label": "搜索收藏",placeholder: "搜索收藏",- leadingIcon: OV("search"),+ leadingIcon: kV("search"),value: l,onChange: u}),- O.length ? null : /* @__PURE__ */ (0, I.jsx)(EV, {+ O.length ? null : /* @__PURE__ */ (0, I.jsx)(DV, {size: "compact",- icon: IV,+ icon: LV,title: l ? "没有匹配的收藏" : E.favorites.length ? "还没有此类收藏" : "还没有收藏",actions: l ? /* @__PURE__ */ (0, I.jsx)(J, {size: "small",@@ -44237,25 +44237,25 @@ function hge({ 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: fge(e),+ href: dge(e),"aria-label": tn(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)(gge, { item: e }, e.image_url), /* @__PURE__ */ (0, I.jsxs)("span", {+ children: [/* @__PURE__ */ (0, I.jsx)(hge, { 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: tn(e.kind, e.name, e.entity_id)}), /* @__PURE__ */ (0, I.jsx)("span", {className: "text-caption-1-regular text-text-secondary",- children: e.scope === "online" ? "在线标签" : RV[e.kind]+ children: e.scope === "online" ? "在线标签" : zV[e.kind]})]})]}), /* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",size: "small","aria-label": `取消收藏${tn(e.kind, e.name, e.entity_id)}`,- ...AV(i.isPending),+ ...jV(i.isPending),onClick: () => {i.isPending || i.mutate({action: "favorite",@@ -44273,8 +44273,8 @@ function hge({ currentHref: e, kind: t, close: n }) {]});}-function gge({ item: e }) {- let t = zV[e.kind] || IV;+function hge({ item: e }) {+ let t = BV[e.kind] || LV;return /* @__PURE__ */ (0, I.jsxs)("span", {"data-shortcuts-avatar": "",title: e.image_label || e.name,@@ -44292,11 +44292,11 @@ function gge({ item: e }) {});}// src/react/components/board-navigation-link.tsx-function _ge(e) {+function gge(e) {return /* @__PURE__ */ (0, I.jsx)("a", { ...e });}// src/react/boardui/components/foundations/icons/chevrons.tsx-function vge(e) {+function _ge(e) {return /* @__PURE__ */ (0, I.jsx)("svg", {viewBox: "0 0 16 16",fill: "none",@@ -44310,7 +44310,7 @@ function vge(e) {})});}-function yge(e) {+function vge(e) {return /* @__PURE__ */ (0, I.jsx)("svg", {viewBox: "0 0 12 12",fill: "none",@@ -44324,7 +44324,7 @@ function yge(e) {})});}-function WV(e) {+function GV(e) {return /* @__PURE__ */ (0, I.jsx)("svg", {viewBox: "0 0 24 24",fill: "none",@@ -44337,7 +44337,7 @@ function WV(e) {});}// src/react/boardui/components/base/breadcrumb/breadcrumb.tsx-function bge({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r }) {+function yge({ 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,@@ -44345,14 +44345,14 @@ function bge({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: rclassName: q("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)(yge, {+ children: i.map((e, t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [t > 0 && /* @__PURE__ */ (0, I.jsx)(vge, {className: "size-3 shrink-0 text-text-tertiary","aria-hidden": !0}), e] }, e.key ?? t))})});}-function GV({ children: e, icon: t, href: n, onClick: r, current: i = !1, className: a }) {+function KV({ 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@@ -44365,7 +44365,7 @@ function GV({ children: e, icon: t, href: n, onClick: r, current: i = !1, classNlet s = q("-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)(_ge, {+ children: n ? /* @__PURE__ */ (0, I.jsx)(gge, {href: n,className: s,children: o@@ -44378,14 +44378,14 @@ function GV({ children: e, icon: t, href: n, onClick: r, current: i = !1, classN});}// src/react/boardui/components/foundations/direction/direction.tsx-function KV() {+function qV() {return Ww().direction;}// src/react/boardui/components/base/dropdown/menu-styles.ts-var qV = "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", xge = "w-[266px]", Sge = "flex w-full flex-col gap-1 outline-none", JV = "flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left text-text-primary outline-none transition-colors", YV = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";+var JV = "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", bge = "w-[266px]", xge = "flex w-full flex-col gap-1 outline-none", YV = "flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left text-text-primary outline-none transition-colors", XV = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";// src/react/boardui/components/base/tree-view/tree-view.tsx-function Cge({ size: e = "md", showGuides: t = !0, selectionMode: n = "single", renderEmptyState: r = () => "No items.", className: i, onKeyDownCapture: a, ref: o, ...s }) {- let c = KV(), l = (0, F.useContext)(eR), u = l === QL && !s.dragAndDropHooks ? ZV : l;+function Sge({ size: e = "md", showGuides: t = !0, selectionMode: n = "single", renderEmptyState: r = () => "No items.", className: i, onKeyDownCapture: a, ref: o, ...s }) {+ let c = qV(), l = (0, F.useContext)(eR), u = l === QL && !s.dragAndDropHooks ? QV : l;return /* @__PURE__ */ (0, I.jsx)("div", {className: "contents",onKeyDownCapture: (e) => {@@ -44411,13 +44411,13 @@ function Cge({ size: e = "md", showGuides: t = !0, selectionMode: n = "single","data-size": e,"data-show-guides": t,renderEmptyState: r,- className: (e) => q("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 === ZV ? "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) => q("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 === QV ? "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 XV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassName: i, trailingContent: a, children: o, className: s, style: c, ref: l, ...u }) {- let d = KV();+function ZV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassName: i, trailingContent: a, children: o, className: s, style: c, ref: l, ...u }) {+ let d = qV();return /* @__PURE__ */ (0, I.jsxs)(ghe, {...u,ref: l,@@ -44430,7 +44430,7 @@ function XV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNamchildren: [/* @__PURE__ */ (0, I.jsx)(hhe, { children: ({ hasChildItems: t, isExpanded: o, isDisabled: s, level: c, state: l, id: u }) => {let f = n === null ? null : o && r ? r : n ?? (t ? o ? $B : ZB : Lhe);return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [- /* @__PURE__ */ (0, I.jsx)(Tge, {+ /* @__PURE__ */ (0, I.jsx)(wge, {state: l,id: u,level: c,@@ -44468,15 +44468,15 @@ function XV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam} }), o]});}-var ZV = {+var QV = {...QL,- CollectionRoot: wge+ CollectionRoot: Cge};-function wge({ collection: e, ...t }) {+function Cge({ collection: e, ...t }) {let n = (0, F.useContext)(FB);return n ? /* @__PURE__ */ (0, I.jsx)(jx, {initial: !1,- children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, I.jsx)(Ege, {+ children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, I.jsx)(Tge, {state: n,children: e.render?.(e)}, e.key))@@ -44485,7 +44485,7 @@ function wge({ collection: e, ...t }) {...t});}-function Tge({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction: a }) {+function wge({ 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;@@ -44544,7 +44544,7 @@ function Tge({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction]});}-function Ege({ state: e, children: t }) {+function Tge({ state: e, children: t }) {let n = Ox(), r = tS(), [i, a] = (0, F.useState)(e);return n && i !== e && a(e), /* @__PURE__ */ (0, I.jsx)(pS.div, {role: "presentation",@@ -44592,7 +44592,7 @@ function Ege({ state: e, children: t }) {});}// src/react/boardui/components/base/checkbox/checkbox-glyph.tsx-var QV = {+var $V = {md: {box: "size-4",glyph: "size-4",@@ -44606,8 +44606,8 @@ var QV = {gap: "gap-1.5"}};-function $V({ state: e, size: t = "md" }) {- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = QV[t], c = n || r, l = o && !a;+function eH({ state: e, size: t = "md" }) {+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = $V[t], c = n || r, l = o && !a;return /* @__PURE__ */ (0, I.jsx)("span", {"aria-hidden": !0,className: q("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? q("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : q("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"),@@ -44633,13 +44633,13 @@ function $V({ state: e, size: t = "md" }) {});}// src/react/boardui/components/base/checkbox/checkbox.tsx-function eH({ className: e, children: t, size: n = "md", ref: r, ...i }) {- let a = QV[n];+function tH({ className: e, children: t, size: n = "md", ref: r, ...i }) {+ let a = $V[n];return /* @__PURE__ */ (0, I.jsx)(ppe, {ref: r,...i,className: (t) => q("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)($V, {+ children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(eH, {state: e,size: n}), t != null && /* @__PURE__ */ (0, I.jsx)("span", {@@ -44649,7 +44649,7 @@ function eH({ className: e, children: t, size: n = "md", ref: r, ...i }) {});}// src/react/components/overlay-scrollbar.ts-function tH() {+function nH() {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 ? {@@ -44661,43 +44661,43 @@ function tH() {}, []), e;}// src/react/providers.tsx-var nH = null;-function Dge() {- return nH?.isConnected || (nH = document.createElement("div"), nH.className = "peach-react", nH.dataset.reactOverlays = "", document.body.append(nH)), nH;+var rH = null;+function Ege() {+ return rH?.isConnected || (rH = document.createElement("div"), rH.className = "peach-react", rH.dataset.reactOverlays = "", document.body.append(rH)), rH;}-function rH({ children: e }) {+function iH({ children: e }) {return /* @__PURE__ */ (0, I.jsx)(oe, {client: H,children: /* @__PURE__ */ (0, I.jsx)(Jre, {reducedMotion: "user",children: /* @__PURE__ */ (0, I.jsx)(ND, {- getContainer: Dge,+ getContainer: Ege,children: e})})});}// node_modules/sonner/dist/index.mjs-function Oge(e) {+function Dge(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 kge = (e) => {+var Oge = (e) => {switch (e) {- case "success": return Mge;- case "info": return Pge;- case "warning": return Nge;- case "error": return Fge;+ case "success": return jge;+ case "info": return Nge;+ case "warning": return Mge;+ case "error": return Pge;default: return null;}-}, Age = Array(12).fill(0), jge = ({ visible: e, className: t }) => /*#__PURE__*/ F.createElement("div", {+}, kge = 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" }, Age.map((e, t) => /*#__PURE__*/ F.createElement("div", {+}, /*#__PURE__*/ F.createElement("div", { className: "sonner-spinner" }, kge.map((e, t) => /*#__PURE__*/ F.createElement("div", {className: "sonner-loading-bar",key: `spinner-bar-${t}`-})))), Mge = /*#__PURE__*/ F.createElement("svg", {+})))), jge = /*#__PURE__*/ F.createElement("svg", {xmlns: "http://www.w3.org/2000/svg",viewBox: "0 0 20 20",fill: "currentColor",@@ -44708,7 +44708,7 @@ var kge = (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"-})), Nge = /*#__PURE__*/ F.createElement("svg", {+})), Mge = /*#__PURE__*/ F.createElement("svg", {xmlns: "http://www.w3.org/2000/svg",viewBox: "0 0 24 24",fill: "currentColor",@@ -44719,7 +44719,7 @@ var kge = (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"-})), Pge = /*#__PURE__*/ F.createElement("svg", {+})), Nge = /*#__PURE__*/ F.createElement("svg", {xmlns: "http://www.w3.org/2000/svg",viewBox: "0 0 20 20",fill: "currentColor",@@ -44730,7 +44730,7 @@ var kge = (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"-})), Fge = /*#__PURE__*/ F.createElement("svg", {+})), Pge = /*#__PURE__*/ F.createElement("svg", {xmlns: "http://www.w3.org/2000/svg",viewBox: "0 0 20 20",fill: "currentColor",@@ -44741,7 +44741,7 @@ var kge = (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"-})), Ige = /*#__PURE__*/ F.createElement("svg", {+})), Fge = /*#__PURE__*/ F.createElement("svg", {xmlns: "http://www.w3.org/2000/svg",width: "12",height: "12",@@ -44762,7 +44762,7 @@ var kge = (e) => {y1: "6",x2: "18",y2: "18"-})), Lge = () => {+})), Ige = () => {let [e, t] = F.useState(document.hidden);return F.useEffect(() => {let e = () => {@@ -44770,7 +44770,7 @@ var kge = (e) => {};return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);}, []), e;-}, Rge = 1, zge = 100, iH = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : Rge++, aH = new class {+}, Lge = 1, Rge = 100, aH = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : Lge++, oH = new class {constructor() {this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {let t = this.subscribers.indexOf(e);@@ -44780,10 +44780,10 @@ var kge = (e) => {}, this.addToast = (e) => {this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();}, this.trimHistory = () => {- let e = this.toasts.length - zge;+ let e = this.toasts.length - Rge;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 = iH(e), i = this.pendingDismissals.get(r);+ let { message: t, ...n } = e, r = aH(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({@@ -44858,7 +44858,7 @@ var kge = (e) => {type: "default",message: e});- else if (Vge(e) && !e.ok) {+ else if (Bge(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({@@ -44902,7 +44902,7 @@ var kge = (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 = iH(t);+ let n = aH(t);return this.create({...t,jsx: e(n),@@ -44911,34 +44911,34 @@ var kge = (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();}-}(), Bge = (e, t) => aH.message(e, t), Vge = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", oH = Object.assign(Bge, {- success: aH.success,- info: aH.info,- warning: aH.warning,- error: aH.error,- custom: aH.custom,- message: aH.message,- promise: aH.promise,- dismiss: aH.dismiss,- loading: aH.loading+}(), zge = (e, t) => oH.message(e, t), Bge = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", sH = Object.assign(zge, {+ success: oH.success,+ info: oH.info,+ warning: oH.warning,+ error: oH.error,+ custom: oH.custom,+ message: oH.message,+ promise: oH.promise,+ dismiss: oH.dismiss,+ loading: oH.loading}, {- getHistory: () => aH.toasts,- getToasts: () => aH.getActiveToasts()+ getHistory: () => oH.toasts,+ getToasts: () => oH.getActiveToasts()});-Oge("[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 sH(e) {+Dge("[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 cH(e) {return e.label !== void 0;}-var Hge = 3, Uge = "24px", Wge = "16px", cH = 4e3, Gge = 356, Kge = 14, qge = 45, Jge = 200;-function lH(...e) {+var Vge = 3, Hge = "24px", Uge = "16px", lH = 4e3, Wge = 356, Gge = 14, Kge = 45, qge = 200;+function uH(...e) {return e.filter(Boolean).join(" ");}-function Yge(e) {+function Jge(e) {let [t, n] = e.split("-"), r = [];return t && r.push(t), n && r.push(n), r;}-var Xge = (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 || cH), le = F.useRef(null), ue = F.useRef(null), de = c === 0, fe = c + 1 <= o, pe = n.type, me = pe ?? "default", he = n.dismissible !== !1, ge = n.className || "", _e = n.descriptionClassName || "", ve = F.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ye = F.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), be = F.useMemo(() => n.duration || y || cH, [n.duration, y]), xe = F.useRef(0), Se = F.useRef(0), Ce = F.useRef(0), we = F.useRef(null), [Te, Ee] = b.split("-"), De = F.useMemo(() => s.reduce((e, t, n) => n >= ve ? e : e + t.height, 0), [s, ve]), Oe = Lge(), ke = F.useMemo(() => e.swipeDirections ?? Yge(b), [e.swipeDirections, b]), Ae = n.invert || t, je = pe === "loading";+var Yge = (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 || lH), le = F.useRef(null), ue = F.useRef(null), de = c === 0, fe = c + 1 <= o, pe = n.type, me = pe ?? "default", he = n.dismissible !== !1, ge = n.className || "", _e = n.descriptionClassName || "", ve = F.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ye = F.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), be = F.useMemo(() => n.duration || y || lH, [n.duration, y]), xe = F.useRef(0), Se = F.useRef(0), Ce = F.useRef(0), we = F.useRef(null), [Te, Ee] = b.split("-"), De = F.useMemo(() => s.reduce((e, t, n) => n >= ve ? e : e + t.height, 0), [s, ve]), Oe = Ige(), ke = F.useMemo(() => e.swipeDirections ?? Jge(b), [e.swipeDirections, b]), Ae = n.invert || t, je = pe === "loading";Se.current = F.useMemo(() => ve * x + De, [ve, De]), F.useEffect(() => {ce.current = be;}, [be]), F.useEffect(() => {@@ -44979,7 +44979,7 @@ var Xge = (e) => {let Me = F.useCallback(() => {ee(!0), ae(Se.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {d(n);- }, Jge);+ }, qge);}, [n,d,@@ -45010,18 +45010,18 @@ var Xge = (e) => {}, [Me, n.delete]);function Ne() {return w?.loading ? /*#__PURE__*/ F.createElement("div", {- className: lH(C?.loader, n?.classNames?.loader, "sonner-loader"),+ className: uH(C?.loader, n?.classNames?.loader, "sonner-loader"),"data-visible": pe === "loading"- }, w.loading) : /*#__PURE__*/ F.createElement(jge, {- className: lH(C?.loader, n?.classNames?.loader),+ }, w.loading) : /*#__PURE__*/ F.createElement(Age, {+ className: uH(C?.loader, n?.classNames?.loader),visible: pe === "loading"});}- let Pe = n.icon || w?.[pe] || kge(pe);+ let Pe = n.icon || w?.[pe] || Oge(pe);return /*#__PURE__*/ F.createElement("li", {tabIndex: 0,ref: ue,- className: lH(_, ge, C?.toast, n?.classNames?.toast, C?.[me], n?.classNames?.[me]),+ className: uH(_, ge, 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),@@ -45064,7 +45064,7 @@ var Xge = (e) => {if (P || !he) return;we.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" ? ke.includes(e > 0 ? "right" : "left") : ke.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= qge || a > .11)) ae(Se.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), Me(), ne(!0);+ if ((E === "x" ? ke.includes(e > 0 ? "right" : "left") : ke.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= Kge || a > .11)) ae(Se.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), Me(), 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);@@ -45103,46 +45103,46 @@ var Xge = (e) => {onClick: je || !he ? () => {} : () => {Me(), n.onDismiss == null || n.onDismiss.call(n, n);},- className: lH(C?.closeButton, n?.classNames?.closeButton)- }, w?.close ?? Ige) : null, (pe || n.icon || n.promise) && n.icon !== null && (w?.[pe] !== null || n.icon) ? /*#__PURE__*/ F.createElement("div", {+ className: uH(C?.closeButton, n?.classNames?.closeButton)+ }, w?.close ?? Fge) : null, (pe || n.icon || n.promise) && n.icon !== null && (w?.[pe] !== null || n.icon) ? /*#__PURE__*/ F.createElement("div", {"data-icon": "",- className: lH(C?.icon, n?.classNames?.icon)+ className: uH(C?.icon, n?.classNames?.icon)}, pe === "loading" ? n.icon || Ne() : n.promise ? Ne() : null, pe === "loading" ? null : Pe) : null, /*#__PURE__*/ F.createElement("div", {"data-content": "",- className: lH(C?.content, n?.classNames?.content)+ className: uH(C?.content, n?.classNames?.content)}, /*#__PURE__*/ F.createElement("div", {"data-title": "",- className: lH(C?.title, n?.classNames?.title)+ className: uH(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: lH(v, _e, C?.description, n?.classNames?.description)- }, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ F.isValidElement(n.cancel) ? n.cancel : n.cancel && sH(n.cancel) ? /*#__PURE__*/ F.createElement("button", {+ className: uH(v, _e, C?.description, n?.classNames?.description)+ }, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ F.isValidElement(n.cancel) ? n.cancel : n.cancel && cH(n.cancel) ? /*#__PURE__*/ F.createElement("button", {"data-button": !0,"data-cancel": !0,style: n.cancelButtonStyle || h,onClick: (e) => {- sH(n.cancel) && he && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Me());+ cH(n.cancel) && he && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Me());},- className: lH(C?.cancelButton, n?.classNames?.cancelButton)- }, n.cancel.label) : null, /*#__PURE__*/ F.isValidElement(n.action) ? n.action : n.action && sH(n.action) ? /*#__PURE__*/ F.createElement("button", {+ className: uH(C?.cancelButton, n?.classNames?.cancelButton)+ }, n.cancel.label) : null, /*#__PURE__*/ F.isValidElement(n.action) ? n.action : n.action && cH(n.action) ? /*#__PURE__*/ F.createElement("button", {"data-button": !0,"data-action": !0,style: n.actionButtonStyle || g,onClick: (e) => {- sH(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && Me());+ cH(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && Me());},- className: lH(C?.actionButton, n?.classNames?.actionButton)+ className: uH(C?.actionButton, n?.classNames?.actionButton)}, n.action.label) : null);};-function uH() {+function dH() {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 Zge(e, t) {+function Xge(e, t) {let n = {};return [e, t].forEach((e, t) => {- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? Wge : Uge;+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? Uge : Hge;function o(e) {["top",@@ -45163,11 +45163,11 @@ function Zge(e, t) {}) : o(a);}), n;}-var dH = /*#__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 = Hge, toastOptions: g, dir: _ = uH(), gap: v = Kge, 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 || aH.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));+var fH = /*#__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 = Vge, toastOptions: g, dir: _ = dH(), gap: v = Gge, 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 || oH.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));}, []);- return F.useEffect(() => aH.subscribe((e) => {+ return F.useEffect(() => oH.subscribe((e) => {e.dismiss ? requestAnimationFrame(() => {C((t) => t.map((t) => t.id === e.id ? {...t,@@ -45236,7 +45236,7 @@ var dH = /*#__PURE__*/ F.forwardRef(function(e, t) {let [i, a] = t.split("-");return w.length ? /*#__PURE__*/ F.createElement("ol", {key: t,- dir: _ === "auto" ? uH() : _,+ dir: _ === "auto" ? dH() : _,tabIndex: -1,ref: N,className: c,@@ -45246,10 +45246,10 @@ var dH = /*#__PURE__*/ F.forwardRef(function(e, t) {"data-x-position": a,style: {"--front-toast-height": `${E[0]?.height || 0}px`,- "--width": `${Gge}px`,+ "--width": `${Wge}px`,"--gap": `${v}px`,...m,- ...Zge(l, u)+ ...Xge(l, u)},onBlur: (e) => {ne.current && !e.currentTarget.contains(e.relatedTarget) && (ne.current = !1, P.current &&= (P.current.focus({ preventScroll: !0 }), null));@@ -45267,7 +45267,7 @@ var dH = /*#__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(Xge, {+ }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ F.createElement(Yge, {key: n.id,icons: y,index: i,@@ -45297,36 +45297,36 @@ var dH = /*#__PURE__*/ F.forwardRef(function(e, t) {swipeDirections: e.swipeDirections}))) : null;}));-}), fH = "/api/library-processing", pH = ["library-processing"], Qge = (e, t, n) => {+}), pH = "/api/library-processing", mH = ["library-processing"], Zge = (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), B(`${fH}?${r}`, t);-}, $ge = {+ 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), B(`${pH}?${r}`, t);+}, Qge = {fetching_cover: "封面",querying_metadata: "资料"};-function mH(e) {+function hH(e) {if (e?.status !== "running" || e.current_asset_id == null) return null;- let t = $ge[e.current_action || ""];+ let t = Qge[e.current_action || ""];return !t || (e.waited_seconds || 0) < 120 ? null : {what: t,source: e.current_source};}-function hH({ what: e, source: t }) {+function gH({ what: e, source: t }) {return `${`${t?.label ? `${t.label} ` : "外部来源"}迟迟没有返回${e}`}。可以先跳过这部,任务结束后再重试。`;}-var gH = (e) => !!e && [+var _H = (e) => !!e && ["running","pausing","paused","stopping"-].includes(e.status), _H = (e) => e?.status === "failed" && e.outcome === "partial", vH = "已入库的视频可在全部内容中浏览,未完成项可单独重试。", yH = "/?loc=&thumb=0";-function bH(e) {- if (!gH(e)) return "";- if (e.status === "stopping") return "正在停止,等待当前步骤退出;已取得的结果会保留";+].includes(e.status), vH = (e) => e?.status === "failed" && e.outcome === "partial", yH = "已入库的视频可在全部内容中浏览,未完成项可单独重试。", bH = "/?loc=&thumb=0";+function xH(e) {+ if (!_H(e)) return "";+ if (e.status === "stopping") return "正在终止,等待当前步骤退出;已取得的结果会保留";if (e.status === "paused") return "已暂停,继续后更新预估";if (e.status === "pausing") return "正在暂停,当前步骤结束后暂停";if (e.stalled) return "等待当前文件响应,剩余时间待更新";@@ -45336,18 +45336,30 @@ function bH(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 xH = (e) => B(fH, e);-async function SH(e) {+var SH = (e) => B(pH, e);+async function CH(e) {await H.fetchQuery({- queryKey: pH,- queryFn: () => xH(e)+ queryKey: mH,+ queryFn: () => SH(e)});}-var e_e = 2e3, t_e = 1e4, CH = "连接中断,正在重新读取处理进度", n_e = "当前的扫描与采集任务还没结束,等它完成或停止后再开始新的同步";-function wH(e, t) {- return gH(e) ? e_e : t ? t_e : !1;+var $ge = 2e3, e_e = 1e4, wH = "连接中断,正在重新读取处理进度", t_e = {+ manual: "在网页发起",+ scheduled: "定时发起",+ startup: "服务启动时自动发起",+ cli: "由命令行或托盘发起"+};+function n_e(e, t) {+ return `保存后 Peach 会重新启动。${e.trigger === "cli" ? "这个任务由命令行或托盘发起,在独立进程里运行,不受重启影响。" : e.status === "paused" ? "已暂停的任务会保持暂停,重启后点继续即可接着处理。" : "正在进行的任务会随重启中断,重启后从中断处继续。"}${t ? "勾选的「保存后扫描并补全资料」会排在当前任务之后。" : ""}`;+}+function r_e(e) {+ let t = t_e[e.trigger || ""];+ return `当前的扫描与采集任务${t ? `(${t})` : ""}还没结束,等它完成或终止后再开始新的同步`;}-var r_e = {+function TH(e, t) {+ return _H(e) ? $ge : t ? e_e : !1;+}+var i_e = {scanning_files: "扫描文件",reading_local: "检查配套文件",reading_local_cover: "读取配套图片",@@ -45356,25 +45368,25 @@ var r_e = {skipped: "已跳过",generating_preview: "生成视频预览",writing_candidates: "保存待确认资料"-}, TH = {+}, EH = {querying_metadata: "没有资料",fetching_cover: "没有封面"};-function i_e(e) {- let t = Object.entries(e).filter(([e, t]) => TH[e] && t > 0).map(([e, t]) => `${TH[e]} ${t.toLocaleString()} 部`);+function a_e(e) {+ let t = Object.entries(e).filter(([e, t]) => EH[e] && t > 0).map(([e, t]) => `${EH[e]} ${t.toLocaleString()} 部`);return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";}-function a_e(e) {+function o_e(e) {if (e.status === "paused") return "已暂停";if (e.status === "pausing") return "正在暂停";- let t = r_e[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${vL(e.waited_seconds)}` : "";+ let t = i_e[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${vL(e.waited_seconds)}` : "";return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;}-function o_e(e) {+function s_e(e) {let t = e.total ? `${yL(e.checked, e.total)} 项` : e.current_action === "scanning_files" || e.stage === "扫描文件" ? `已发现 ${(e.scanned || 0).toLocaleString()} 个文件` : "";- return a_e(e) + (t ? ` · ${t}` : "");+ return o_e(e) + (t ? ` · ${t}` : "");}-function s_e(e) {+function c_e(e) {let t = e.issue_preview || [];return t.length ? {label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,@@ -45388,22 +45400,22 @@ function s_e(e) {log: e.issues_log || ""} : null;}-var EH = "peach.library-processing.announced", c_e = 120;-function DH(e) {+var DH = "peach.library-processing.announced", l_e = 120;+function OH(e) {let t = e.completed_at == null ? Infinity : Date.now() / 1e3 - e.completed_at;- return !!e.job_id && t >= 0 && t < c_e;+ return !!e.job_id && t >= 0 && t < l_e;}-function l_e(e, t, n) {- if (e.status === "complete" && (n || DH(e))) {+function u_e(e, t, n) {+ if (e.status === "complete" && (n || OH(e))) {try {- if (e.job_id && localStorage.getItem(EH) === e.job_id) return;- e.job_id && localStorage.setItem(EH, e.job_id);+ if (e.job_id && localStorage.getItem(DH) === e.job_id) return;+ e.job_id && localStorage.setItem(DH, 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 OH = eL({+var kH = eL({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",@@ -45420,15 +45432,15 @@ var OH = eL({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 = q(OH.base, OH.size[t], OH.variant[e], a), l = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [+function AH({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {+ let c = q(kH.base, kH.size[t], kH.variant[e], a), l = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [n ? /* @__PURE__ */ (0, I.jsx)(n, {- className: OH.icon[t],+ className: kH.icon[t],"aria-hidden": !0}) : null,i != null && /* @__PURE__ */ (0, I.jsx)("span", { children: i }),r ? /* @__PURE__ */ (0, I.jsx)(r, {- className: OH.icon[t],+ className: kH.icon[t],"aria-hidden": !0}) : null] });@@ -45454,7 +45466,7 @@ function kH({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili});}// src/react/settings/use-action.ts-function AH(e = "") {+function jH(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) {@@ -45479,10 +45491,10 @@ function AH(e = "") {};}// src/react/library-processing/slow-item.tsx-function jH({ state: e }) {- let t = AH(), n = (e) => {- t.busy || t.run(e.action, (t) => V(fH, e, "POST", t), (e) => {- H.setQueryData(pH, e), H.invalidateQueries({ queryKey: pH });+function MH({ state: e }) {+ let t = jH(), n = (e) => {+ t.busy || t.run(e.action, (t) => V(pH, e, "POST", t), (e) => {+ H.setQueryData(mH, e), H.invalidateQueries({ queryKey: mH });});};return /* @__PURE__ */ (0, I.jsxs)("div", {@@ -45494,7 +45506,7 @@ function jH({ state: e }) {size: "small",variant: "secondary",disabled: e.skip_requested,- ...AV(t.busy === "skip_current"),+ ...jV(t.busy === "skip_current"),onClick: () => {e.job_id && e.current_asset_id != null && n({action: "skip_current",@@ -45518,25 +45530,25 @@ function jH({ state: e }) {]});}-function u_e({ state: e, slow: t }) {- return /* @__PURE__ */ (0, I.jsx)(TV, {+function d_e({ state: e, slow: t }) {+ return /* @__PURE__ */ (0, I.jsx)(EV, {tone: "warning",- action: /* @__PURE__ */ (0, I.jsx)(jH, { state: e }),- children: hH(t)+ action: /* @__PURE__ */ (0, I.jsx)(MH, { state: e }),+ children: gH(t)});}-function d_e({ state: e, slow: t }) {+function f_e({ 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: hH(t)- }), /* @__PURE__ */ (0, I.jsx)(jH, { state: e })]+ children: gH(t)+ }), /* @__PURE__ */ (0, I.jsx)(MH, { state: e })]});}// src/react/components/use-moving-surface.ts-var f_e = {+var p_e = {selection: {type: Mg,duration: .16,@@ -45548,7 +45560,7 @@ var f_e = {bounce: 0}};-function MH(e) {+function NH(e) {let [t, n] = (0, F.useState)(null);return (0, F.useLayoutEffect)(() => {if (!t) return;@@ -45569,7 +45581,7 @@ function MH(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] }, f_e[e]);+ l = tae(n, { transform: [r, E] }, p_e[e]);} else n.style.transform = E;s = h, c = w, t.dataset.surfaceReady = "";}, m = (t) => {@@ -45605,24 +45617,24 @@ function MH(e) {}, [t, e]), n;}// src/react/components/menu-dialog.tsx-function NH(e) {- let t = MH("hover");+function PH(e) {+ let t = NH("hover");return /* @__PURE__ */ (0, I.jsx)(Gz, {...e,ref: t});}// src/react/library-processing/processing-effort.tsx-var PH = [+var FH = ["low","standard","high"-], FH = [+], IH = ["低占用","标准","全速"-], IH = OV("snail"), LH = OV("zap");-function RH({ className: e }) {+], LH = kV("snail"), RH = kV("zap");+function zH({ className: e }) {return /* @__PURE__ */ (0, I.jsxs)("svg", {className: `processing-effort-double ${e ?? ""}`,"aria-hidden": "true",@@ -45653,12 +45665,12 @@ function RH({ className: e }) {]});}-var p_e = [- IH,+var m_e = [LH,- RH+ RH,+ zH];-function m_e({ animate: e }) {+function h_e({ animate: e }) {let [t, n] = (0, F.useState)(document.hidden);return (0, F.useEffect)(() => {let e = () => n(document.hidden);@@ -45690,8 +45702,8 @@ function m_e({ animate: e }) {} }, t))]});}-function zH({ value: e, busy: t, onChange: n, animate: r = !0 }) {- let i = Math.max(0, PH.indexOf(e)), [a, o] = (0, F.useState)(i);+function BH({ value: e, busy: t, onChange: n, animate: r = !0 }) {+ let i = Math.max(0, FH.indexOf(e)), [a, o] = (0, F.useState)(i);return (0, F.useEffect)(() => {t || o(i);}, [i, t]), /* @__PURE__ */ (0, I.jsxs)("div", {@@ -45702,7 +45714,7 @@ function zH({ value: e, busy: t, onChange: n, animate: r = !0 }) {children: [/* @__PURE__ */ (0, I.jsx)("span", {className: "text-text-tertiary",children: "处理强度 "- }), FH[a]]+ }), IH[a]]}),/* @__PURE__ */ (0, I.jsxs)("div", {className: "processing-effort-scale text-caption-1-regular text-text-tertiary",@@ -45710,15 +45722,15 @@ function zH({ 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)(IH, {}), "最慢"]+ children: [/* @__PURE__ */ (0, I.jsx)(LH, {}), "最慢"]}),/* @__PURE__ */ (0, I.jsxs)("span", {"data-selected": a === 1 || void 0,- children: [/* @__PURE__ */ (0, I.jsx)(LH, {}), "标准"]+ children: [/* @__PURE__ */ (0, I.jsx)(RH, {}), "标准"]}),/* @__PURE__ */ (0, I.jsxs)("span", {"data-selected": a === 2 || void 0,- children: [/* @__PURE__ */ (0, I.jsx)(RH, {}), "最快"]+ children: [/* @__PURE__ */ (0, I.jsx)(zH, {}), "最快"]})]}),@@ -45731,7 +45743,7 @@ function zH({ value: e, busy: t, onChange: n, animate: r = !0 }) {isDisabled: t,onChange: o,onChangeEnd: (e) => {- e !== i && n(PH[e]);+ e !== i && n(FH[e]);},className: "processing-effort-slider",children: [/* @__PURE__ */ (0, I.jsx)(rR, {@@ -45754,11 +45766,11 @@ function zH({ value: e, busy: t, onChange: n, animate: r = !0 }) {/* @__PURE__ */ (0, I.jsx)("i", {})]}),- a === 2 ? /* @__PURE__ */ (0, I.jsx)(m_e, { animate: r }) : null,+ a === 2 ? /* @__PURE__ */ (0, I.jsx)(h_e, { animate: r }) : null,/* @__PURE__ */ (0, I.jsx)(wpe, {className: "processing-effort-hit",children: /* @__PURE__ */ (0, I.jsx)(Tpe, {- "aria-label": FH[a],+ "aria-label": IH[a],className: "processing-effort-thumb"})})@@ -45772,8 +45784,8 @@ function zH({ value: e, busy: t, onChange: n, animate: r = !0 }) {]});}-function h_e({ 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, PH.indexOf(e));+function g_e({ 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, FH.indexOf(e));return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {className: "processing-effort-trigger","data-speed": e,@@ -45781,16 +45793,16 @@ function h_e({ value: e, busy: t, onChange: n, animate: r = !0 }) {ref: i,size: "small",variant: "secondary",- "aria-label": `处理速度:${FH[s]}`,+ "aria-label": `处理速度:${IH[s]}`,"aria-haspopup": "dialog","aria-expanded": a,"aria-disabled": t,- leadingIcon: p_e[s],+ leadingIcon: m_e[s],trailingIcon: RB,onClick: () => {t || o(!a);},- children: FH[s]+ children: IH[s]})}), /* @__PURE__ */ (0, I.jsx)(Mz, {triggerRef: i,@@ -45798,11 +45810,11 @@ function h_e({ value: e, busy: t, onChange: n, animate: r = !0 }) {onOpenChange: o,placement: "top start",offset: 8,- className: qV,- children: /* @__PURE__ */ (0, I.jsx)(NH, {+ className: JV,+ children: /* @__PURE__ */ (0, I.jsx)(PH, {"aria-label": "处理速度",className: "outline-none",- children: /* @__PURE__ */ (0, I.jsx)(zH, {+ children: /* @__PURE__ */ (0, I.jsx)(BH, {value: e,busy: t,onChange: n,@@ -45812,11 +45824,26 @@ function h_e({ value: e, busy: t, onChange: n, animate: r = !0 }) {})] });}// src/react/library-processing/processing-controls.tsx-function BH({ state: e, disabled: t = !1 }) {- let n = AH(), r = gH(e), i = e.status === "stopping", a = e.status === "paused" ? "继续" : e.status === "pausing" ? "正在暂停" : "暂停", o = (e) => {- t || n.busy || n.run(e.action, (t) => V(fH, e, "POST", t), (e) => {- H.setQueryData(pH, e), H.invalidateQueries({ queryKey: pH });+function VH({ state: e, disabled: t = !1 }) {+ let n = jH(), r = (0, F.useRef)(!1), i = _H(e), a = e.status === "stopping", o = e.status === "paused" ? "继续" : e.status === "pausing" ? "正在暂停" : "暂停", s = a ? "正在终止" : "终止任务", c = (e) => {+ t || n.busy || n.run(e.action, (t) => V(pH, e, "POST", t), (e) => {+ H.setQueryData(mH, e), H.invalidateQueries({ queryKey: mH });});+ }, l = () => {+ let i = e.job_id;+ !i || t || n.busy || r.current || (r.current = !0, ol({+ title: "终止扫描与采集",+ body: "将终止这一轮剩余的处理。已登记的影片、取得的资料和预览会保留。终止后这一轮不能继续,需要时重新同步。",+ confirmLabel: "终止任务",+ danger: !0+ }).then(({ confirmed: e }) => {+ e && c({+ action: "cancel",+ job_id: i+ });+ }).finally(() => {+ r.current = !1;+ }));};return /* @__PURE__ */ (0, I.jsxs)("div", {className: "flex min-w-0 flex-col gap-2",@@ -45824,44 +45851,42 @@ function BH({ state: e, disabled: t = !1 }) {children: [/* @__PURE__ */ (0, I.jsxs)("div", {className: "flex flex-wrap items-center gap-2",children: [- /* @__PURE__ */ (0, I.jsx)(h_e, {+ /* @__PURE__ */ (0, I.jsx)(g_e, {value: e.speed_mode || "standard",- busy: t || !!n.busy || i,+ busy: t || !!n.busy || a,animate: e.status !== "paused" && e.status !== "pausing",- onChange: (t) => o({+ onChange: (t) => c({action: "set_speed",speed_mode: t,- ...r ? { job_id: e.job_id } : {}+ ...i ? { job_id: e.job_id } : {}})}),- r ? /* @__PURE__ */ (0, I.jsx)(J, {+ i ? /* @__PURE__ */ (0, I.jsx)(J, {size: "small",variant: "secondary",iconOnly: !0,leadingIcon: e.status === "paused" ? oV : iV,- "aria-label": a,- title: a,- disabled: t || !e.job_id || e.status === "pausing" || i,- ...AV(n.busy === "pause" || n.busy === "resume"),+ "aria-label": o,+ title: o,+ disabled: t || !e.job_id || e.status === "pausing" || a,+ ...jV(n.busy === "pause" || n.busy === "resume"),onClick: () => {- e.job_id && o({+ e.job_id && c({action: e.status === "paused" ? "resume" : "pause",job_id: e.job_id});}}) : null,- r ? /* @__PURE__ */ (0, I.jsx)(J, {+ i ? /* @__PURE__ */ (0, I.jsx)(J, {size: "small",variant: "secondary",- disabled: t || !e.job_id || i,- ...AV(n.busy === "cancel"),- onClick: () => {- e.job_id && o({- action: "cancel",- job_id: e.job_id- });- },- children: i ? "正在停止" : "停止任务"+ iconOnly: !0,+ leadingIcon: pV,+ "aria-label": s,+ title: s,+ disabled: t || !e.job_id || a,+ ...jV(n.busy === "cancel"),+ onClick: l}) : null]}), n.error ? /* @__PURE__ */ (0, I.jsx)("p", {@@ -45872,11 +45897,11 @@ function BH({ state: e, disabled: t = !1 }) {});}// src/react/library-processing/use-library-processing.ts-function VH({ toast: e, mode: t, monitor: n }) {+function HH({ toast: e, mode: t, monitor: n }) {let r = t === "notice" || !!n, i = Pt({- queryKey: pH,- queryFn: ({ signal: e }) => xH(e),- refetchInterval: (e) => wH(e.state.data, r)+ queryKey: mH,+ queryFn: ({ signal: e }) => SH(e),+ refetchInterval: (e) => TH(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;@@ -45887,8 +45912,8 @@ function VH({ toast: e, mode: t, monitor: n }) {"pausing","paused","stopping"- ].includes(n) && !gH(c);- r && o(c), (r || t === "notice") && l_e(c, e, r);+ ].includes(n) && !_H(c);+ r && o(c), (r || t === "notice") && u_e(c, e, r);}, [c,t,@@ -45900,37 +45925,37 @@ function VH({ toast: e, mode: t, monitor: n }) {};}// src/react/components/card.tsx-var g_e = "min-w-0", __e = {+var __e = "min-w-0", v_e = {filled: "bg-background-secondary-default",outlined: "border border-separator-border bg-background-primary-default",raised: "bg-background-primary-default"-}, v_e = {+}, y_e = {default: "rounded-2xl shadow-card",chart: "rounded-2-5xl",surface: "rounded-surface",plain: "rounded-2xl"-}, y_e = {+}, b_e = {line: "border border-border-button-default",soft: "border border-separator-border"-}, b_e = {+}, x_e = {none: "",default: "p-5"-}, x_e = "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", S_e = "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 HH(e = {}) {+}, S_e = "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", C_e = "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 UH(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 [- g_e,- __e[t],- v_e[s],- b_e[n],- a ? y_e[a] : "",- r ? x_e : "",- i ? S_e : "",+ __e,+ v_e[t],+ y_e[s],+ x_e[n],+ a ? b_e[a] : "",+ r ? S_e : "",+ i ? C_e : "",o ?? ""].filter(Boolean).join(" ");}// src/react/components/loading-dots.tsx-function UH({ label: e }) {+function WH({ 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",@@ -45949,21 +45974,21 @@ function UH({ label: e }) {});}// src/react/components/progress.tsx-var WH = 100, C_e = .4;-function GH({ 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 * WH;+var GH = 100, w_e = .4;+function KH({ 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 * GH;return /* @__PURE__ */ (0, I.jsxs)("svg", {role: "progressbar","aria-label": e,"aria-valuemin": 0,"aria-valuemax": i,"aria-valuenow": a(t),- viewBox: `0 0 ${WH} 1`,+ viewBox: `0 0 ${GH} 1`,preserveAspectRatio: "none",className: "h-1.5 w-full overflow-hidden rounded-full",children: [/* @__PURE__ */ (0, I.jsx)("rect", {- width: WH,+ width: GH,height: 1,className: "fill-background-tertiary-default"}),@@ -45974,7 +45999,7 @@ function GH({ label: e, value: t, max: n = 100, stops: r = [] }) {}),r.map((e) => /* @__PURE__ */ (0, I.jsx)("rect", {x: o(e),- width: C_e,+ width: w_e,height: 1,className: "fill-background-secondary-default"}, e))@@ -45982,26 +46007,26 @@ function GH({ label: e, value: t, max: n = 100, stops: r = [] }) {});}// src/react/components/task-progress.tsx-function KH({ label: e, value: t = 0, total: n, embedded: r = !1 }) {+function qH({ 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" : HH({+ className: r ? "flex flex-col gap-1.5" : UH({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)(GH, {+ children: n && n > 0 ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(KH, {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)(UH, { label: e })+ })] }) : /* @__PURE__ */ (0, I.jsx)(WH, { label: e })});}// src/react/library-processing/processing-line.tsx-function qH(e) {+function JH(e) {let [t, n] = (0, F.useState)({snapshot: e,seconds: 0@@ -46017,17 +46042,17 @@ function qH(e) {return () => window.clearInterval(r);}, [e, i]);let a = i && t.snapshot === e ? t.seconds : 0;- return o_e(a ? {+ return s_e(a ? {...e,waited_seconds: r + a} : e);}-function w_e({ state: e }) {- return qH(e);-}function T_e({ state: e }) {- let t = qH(e);- return /* @__PURE__ */ (0, I.jsx)(KH, {+ return JH(e);+}+function E_e({ state: e }) {+ let t = JH(e);+ return /* @__PURE__ */ (0, I.jsx)(qH, {embedded: !0,label: t,value: Math.min(e.checked || 0, e.total || 0),@@ -46035,7 +46060,7 @@ function T_e({ state: e }) {});}// src/react/components/collapse-region.tsx-function JH({ open: e, children: t, ...n }) {+function YH({ open: e, children: t, ...n }) {let r = (0, F.useRef)(null), i = (0, F.useRef)(!1);return (0, F.useLayoutEffect)(() => {let t = r.current;@@ -46046,7 +46071,7 @@ function JH({ open: e, children: t, ...n }) {children: t});}-function YH(e) {+function XH(e) {return /* @__PURE__ */ (0, I.jsx)("svg", {...e,"aria-hidden": !0,@@ -46061,19 +46086,19 @@ function YH(e) {});}// src/react/boardui/components/application/settings/settings-rows.tsx-function XH({ className: e, children: t }) {+function ZH({ className: e, children: t }) {return /* @__PURE__ */ (0, I.jsx)("div", {className: q("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),children: t});}-function ZH({ className: e, children: t }) {+function QH({ className: e, children: t }) {return /* @__PURE__ */ (0, I.jsx)("p", {className: q("w-full px-3 text-body-2-medium text-text-secondary", e),children: t});}-function E_e({ label: e, description: t, children: n }) {+function D_e({ label: e, description: t, children: n }) {return /* @__PURE__ */ (0, I.jsxs)("div", {className: q("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", {@@ -46089,34 +46114,34 @@ function E_e({ label: e, description: t, children: n }) {});}// src/react/jav/jav-navigation.ts-var QH = [+var $H = [["library", "馆藏"],["discover", "发现"],["wants", "想要"]-], $H = (e) => QH.some(([t]) => t === e) ? e : "library", eU = (e) => $H(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;-function D_e(e) {+], eU = (e) => $H.some(([t]) => t === e) ? e : "library", tU = (e) => eU(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;+function O_e(e) {let t = new URLSearchParams(e);return t.delete("tab"), t.set("jav", "1"), "/?" + t;}// src/onboarding/guide-catalog.ts-var tU = (e, t, n, r, i, a) => ({+var nU = (e, t, n, r, i, a) => ({id: e,title: t,body: n,route: r,target: i,scope: a-}), nU = (e, t, n, r, i) => tU(e, t, n, r, i), rU = [+}), rU = (e, t, n, r, i) => nU(e, t, n, r, i), iU = [{id: "basics",kind: "interface",title: "认识界面",summary: "4 步认识搜索、导航、作品详情和设置。",steps: [- nU("search", "搜索馆藏", "输入作品名、番号、艺人、厂牌或标签。搜索结果来自已经入库的内容。", "/", "#q, #searchBtn"),- nU("navigation", "切换浏览入口", "在侧栏按人物、厂牌和标签浏览。手机上用导航按钮展开侧栏;入口与顺序可以在设置里调整。", "/", "#filterBtn, [data-sidebar-nav]"),- nU("cards", "打开作品详情", "选择作品查看资料、版本和播放入口。首次扫描尚未入库时,可以先继续认识导航。", "/", "[data-media-grid] > [data-id], [data-catalog-row], [data-media-empty]"),- nU("preferences", "调整自己的界面", "侧栏底部的设置包含显示与播放偏好;手机上先展开侧栏。媒体目录、网络和后台服务放在其中的 Peach 配置入口。", "/", "#settingsBtn, #filterBtn")+ rU("search", "搜索馆藏", "输入作品名、番号、艺人、厂牌或标签。搜索结果来自已经入库的内容。", "/", "#q, #searchBtn"),+ rU("navigation", "切换浏览入口", "在侧栏按人物、厂牌和标签浏览。手机上用导航按钮展开侧栏;入口与顺序可以在设置里调整。", "/", "#filterBtn, [data-sidebar-nav]"),+ rU("cards", "打开作品详情", "选择作品查看资料、版本和播放入口。首次扫描尚未入库时,可以先继续认识导航。", "/", "[data-media-grid] > [data-id], [data-catalog-row], [data-media-empty]"),+ rU("preferences", "调整自己的界面", "侧栏底部的设置包含显示与播放偏好;手机上先展开侧栏。媒体目录、网络和后台服务放在其中的 Peach 配置入口。", "/", "#settingsBtn, #filterBtn")]},{@@ -46125,23 +46150,23 @@ var tU = (e, t, n, r, i, a) => ({title: "找到并播放",summary: "搜索、筛选、详情、版本、字幕和播放器。",steps: [- nU("library", "选择媒体库", "导航顶部可以切换全部媒体库或某个媒体库;手机上先展开侧栏。媒体库把不同目录组织成一组。", "/", "#brandHome, #filterBtn"),- nU("search", "按关键词找内容", "输入作品、番号或人物名称,结合筛选与排序定位内容。搜索记录数量可在搜索与推荐中设置。", "/", "#q, #searchBtn"),- nU("filter", "筛选与清除", "多个筛选条件会共同缩小结果。找不到内容时先检查媒体库和筛选条件。", "/", "[data-catalog-frame]"),+ rU("library", "选择媒体库", "导航顶部可以切换全部媒体库或某个媒体库;手机上先展开侧栏。媒体库把不同目录组织成一组。", "/", "#brandHome, #filterBtn"),+ rU("search", "按关键词找内容", "输入作品、番号或人物名称,结合筛选与排序定位内容。搜索记录数量可在搜索与推荐中设置。", "/", "#q, #searchBtn"),+ rU("filter", "筛选与清除", "多个筛选条件会共同缩小结果。找不到内容时先检查媒体库和筛选条件。", "/", "[data-catalog-frame]"),{- ...tU("detail", "作品详情", "这里显示当前作品的标题和源文件工具。评分、人物和标签在下方;有分卷或版本的作品可从馆藏卡片进入相应队列。", "/", "[data-item-title]"),+ ...nU("detail", "作品详情", "这里显示当前作品的标题和源文件工具。评分、人物和标签在下方;有分卷或版本的作品可从馆藏卡片进入相应队列。", "/", "[data-item-title]"),surface: "detail"},{- ...tU("player", "播放器控件", "底部控制条提供播放、进度、音量和全屏。右侧齿轮打开播放速度、字幕、画面旋转和清晰度等选项。", "/", "#stage .vjs-control-bar"),+ ...nU("player", "播放器控件", "底部控制条提供播放、进度、音量和全屏。右侧齿轮打开播放速度、字幕、画面旋转和清晰度等选项。", "/", "#stage .vjs-control-bar"),surface: "player"},{- ...tU("subtitles", "字幕与播放选项", "从播放器齿轮菜单进入字幕,可以选择已有字幕、加载本地字幕文件或搜索字幕;播放速度和清晰度也在这个菜单中。", "/", "#stage [data-player-subtitles]"),+ ...nU("subtitles", "字幕与播放选项", "从播放器齿轮菜单进入字幕,可以选择已有字幕、加载本地字幕文件或搜索字幕;播放速度和清晰度也在这个菜单中。", "/", "#stage [data-player-subtitles]"),surface: "subtitles"},{- ...tU("external", "外部播放器", "在这里选择本地播放器、M3U 播放列表或网络播放地址,再点打开。另一台设备需要能访问当前 Peach 地址。", "/", "#stage [data-local-playback-row]"),+ ...nU("external", "外部播放器", "在这里选择本地播放器、M3U 播放列表或网络播放地址,再点打开。另一台设备需要能访问当前 Peach 地址。", "/", "#stage [data-local-playback-row]"),surface: "detail"}]@@ -46153,15 +46178,15 @@ var tU = (e, t, n, r, i, a) => ({summary: "评分、标记、播放列表与当前播放队列。",steps: [{- ...nU("marks", "评分", "点击星星给作品评分;下方的喜欢、稍后看和加入播放列表用于保存感兴趣的内容。", "/", "#stage [data-item-rating]"),+ ...rU("marks", "评分", "点击星星给作品评分;下方的喜欢、稍后看和加入播放列表用于保存感兴趣的内容。", "/", "#stage [data-item-rating]"),surface: "detail"},{- ...nU("mark-actions", "标记与加入列表", "喜欢影响口味推荐,稍后看便于回找;加入播放列表可把作品整理到自己的列表。", "/", "#stage [data-item-feedback]"),+ ...rU("mark-actions", "标记与加入列表", "喜欢影响口味推荐,稍后看便于回找;加入播放列表可把作品整理到自己的列表。", "/", "#stage [data-item-feedback]"),surface: "detail"},- nU("lists", "建立播放列表", "在这里输入名称,创建自己的播放列表。之后从作品详情的加入播放列表按钮添加内容。", "/playlists", "[data-playlist-create]"),- nU("queue", "从列表开始播放", "选择一张播放列表卡片进入队列,查看和调整播放顺序。没有列表时先创建,再加入作品。", "/playlists", "[data-playlist-card]")+ rU("lists", "建立播放列表", "在这里输入名称,创建自己的播放列表。之后从作品详情的加入播放列表按钮添加内容。", "/playlists", "[data-playlist-create]"),+ rU("queue", "从列表开始播放", "选择一张播放列表卡片进入队列,查看和调整播放顺序。没有列表时先创建,再加入作品。", "/playlists", "[data-playlist-card]")]},{@@ -46170,10 +46195,10 @@ var tU = (e, t, n, r, i, a) => ({title: "按人物与主题浏览",summary: "从人物、厂牌和标签继续发现相关馆藏。",steps: [- nU("people", "艺人与创作者", "选择人物卡片进入资料页,查看相关作品、照片与已连接的来源。上方可以切换艺人、卖家与在线人物。", "/performers", "[data-index-body] [data-index-cell], [data-index-body] [data-empty-state]"),- nU("studios", "厂牌", "选择厂牌卡片集中查看作品。资料页中的作品仍会受到当前媒体库范围影响。", "/studios", "[data-index-body] [data-index-cell], [data-index-body] [data-empty-state]"),- nU("tags", "标签与主题", "选择标签继续浏览相关馆藏;本地与在线使用不同的标签词表。", "/tags", "[data-index-body] [data-alpha-tag], [data-index-body] [data-tag-chip], [data-index-body] [data-empty-state]"),- nU("manage-tags", "管理标签", "铅笔按钮打开标签管理,用于整理标签名称和关系;再次点击返回浏览。", "/tags", "[data-tag-mode]")+ rU("people", "艺人与创作者", "选择人物卡片进入资料页,查看相关作品、照片与已连接的来源。上方可以切换艺人、卖家与在线人物。", "/performers", "[data-index-body] [data-index-cell], [data-index-body] [data-empty-state]"),+ rU("studios", "厂牌", "选择厂牌卡片集中查看作品。资料页中的作品仍会受到当前媒体库范围影响。", "/studios", "[data-index-body] [data-index-cell], [data-index-body] [data-empty-state]"),+ rU("tags", "标签与主题", "选择标签继续浏览相关馆藏;本地与在线使用不同的标签词表。", "/tags", "[data-index-body] [data-alpha-tag], [data-index-body] [data-tag-chip], [data-index-body] [data-empty-state]"),+ rU("manage-tags", "管理标签", "铅笔按钮打开标签管理,用于整理标签名称和关系;再次点击返回浏览。", "/tags", "[data-tag-mode]")]},{@@ -46182,10 +46207,10 @@ var tU = (e, t, n, r, i, a) => ({title: "JAV 与追新",summary: "馆藏、新作、想要清单与高清版。",steps: [- nU("library", "JAV 馆藏", "按番号、出演者和厂牌查找已入库的作品,可以选择官方封面或预览图。", eU("library"), "[data-catalog-frame]"),- nU("new", "发现推荐", "发现页按口味推荐作品。在这里切换馆藏或外部内容,并按标签筛选。", eU("discover"), "[data-jav-filter] [data-catalog-views]"),- nU("wants", "查看想要清单", "喜欢的外部作品可以加入想要清单;在这里切换馆藏、发现与想要。", eU("discover"), "[aria-label=\"JAV 分区\"]"),- nU("quality", "高清版", "待升级卡片列出当前版本信息和判定原因,可以查看版本或查找资源;没有目标时这里显示空状态。", "/quality-goals", "[data-goal-id], #main [data-empty-state]")+ rU("library", "JAV 馆藏", "按番号、出演者和厂牌查找已入库的作品,可以选择官方封面或预览图。", tU("library"), "[data-catalog-frame]"),+ rU("new", "发现推荐", "发现页按口味推荐作品。在这里切换馆藏或外部内容,并按标签筛选。", tU("discover"), "[data-jav-filter] [data-catalog-views]"),+ rU("wants", "查看想要清单", "喜欢的外部作品可以加入想要清单;在这里切换馆藏、发现与想要。", tU("discover"), "[aria-label=\"JAV 分区\"]"),+ rU("quality", "高清版", "待升级卡片列出当前版本信息和判定原因,可以查看版本或查找资源;没有目标时这里显示空状态。", "/quality-goals", "[data-goal-id], #main [data-empty-state]")]},{@@ -46194,9 +46219,9 @@ var tU = (e, t, n, r, i, a) => ({title: "关注创作者",summary: "多来源更新、同作品合并和来源状态。",steps: [- nU("feed", "集中看关注更新", "来自不同来源的创作者更新汇集在这里,选择一项更新查看内容;尚未关注来源时,按空状态中的入口添加。", "/follow", "[data-follow-item], [data-follow-empty] [data-empty-state]"),- nU("sources", "管理关注来源", "从列表查看启用状态、采集结果和失败原因;切换到添加区域,添加创作者或订阅来源。", "/subscriptions", "[aria-label=\"关注管理区域\"]"),- nU("credentials", "按需配置凭据", "部分来源需要登录凭据;先确认要启用的来源,再展开对应站点,填写其要求的信息。", "/settings/subscriptions", "[data-guide-target=\"credentials\"]")+ rU("feed", "集中看关注更新", "来自不同来源的创作者更新汇集在这里,选择一项更新查看内容;尚未关注来源时,按空状态中的入口添加。", "/follow", "[data-follow-item], [data-follow-empty] [data-empty-state]"),+ rU("sources", "管理关注来源", "从列表查看启用状态、采集结果和失败原因;切换到添加区域,添加创作者或订阅来源。", "/subscriptions", "[aria-label=\"关注管理区域\"]"),+ rU("credentials", "按需配置凭据", "部分来源需要登录凭据;先确认要启用的来源,再展开对应站点,填写其要求的信息。", "/settings/subscriptions", "[data-guide-target=\"credentials\"]")]},{@@ -46205,9 +46230,9 @@ var tU = (e, t, n, r, i, a) => ({title: "专注观看",summary: "播放墙、沉浸模式与详情小窗。",steps: [- nU("wall", "播放墙", "播放墙提供多画面观看入口。结束导览后点击进入,再选择要播放的内容。", "/", "#wallBtn"),- nU("immerse", "沉浸模式", "沉浸模式适合连续观看。点击入口会进入观看流程,请在准备好播放时使用。", "/", "#immerseBtn"),- nU("mini", "离开详情后继续看", "开启小窗播放后,离开详情可以继续观看。自动播放、小窗和快进步长都在浏览与播放设置中。", "/settings/playback", "#miniplayerSetting")+ rU("wall", "播放墙", "播放墙提供多画面观看入口。结束导览后点击进入,再选择要播放的内容。", "/", "#wallBtn"),+ rU("immerse", "沉浸模式", "沉浸模式适合连续观看。点击入口会进入观看流程,请在准备好播放时使用。", "/", "#immerseBtn"),+ rU("mini", "离开详情后继续看", "开启小窗播放后,离开详情可以继续观看。自动播放、小窗和快进步长都在浏览与播放设置中。", "/settings/playback", "#miniplayerSetting")]},{@@ -46216,11 +46241,11 @@ var tU = (e, t, n, r, i, a) => ({title: "整理与维护",summary: "扫描、补资料、复核、文件整理与回收站。",steps: [- nU("scan", "扫描与补资料", "在媒体库处理区域选择扫描和资料处理范围。读取策略取决于媒体库配置;导览不会启动任务。", "/data-cleanup", "#libraryProcessing"),- nU("review", "人工复核", "先按分类找到待复核资料,再查看项目的来源和证据后作决定。", "/review", "[aria-labelledby=\"reviewcategories\"]"),- nU("organize", "文件整理", "文件整理先查看预览,确认命名与目标目录再执行。资料整理和真实文件操作有不同的影响范围。", "/data-cleanup", "[data-cleanup-organize]"),- nU("trash", "回收站", "查看已移入回收站的作品,按需要恢复或处理。永久删除前认真核对确认框中的范围。", "/trash", "[data-media-grid] > [data-id], [data-catalog-row], [data-media-empty]"),- nU("tasks", "任务与失败原因", "任务记录显示处理状态;展开记录查看详情与失败原因。还没有任务时,这里会说明哪些操作会留下记录。", "/tasks", "[data-run-id], #main [data-empty-state]")+ rU("scan", "扫描与补资料", "在媒体库处理区域选择扫描和资料处理范围。读取策略取决于媒体库配置;导览不会启动任务。", "/data-cleanup", "#libraryProcessing"),+ rU("review", "人工复核", "先按分类找到待复核资料,再查看项目的来源和证据后作决定。", "/review", "[aria-labelledby=\"reviewcategories\"]"),+ rU("organize", "文件整理", "文件整理先查看预览,确认命名与目标目录再执行。资料整理和真实文件操作有不同的影响范围。", "/data-cleanup", "[data-cleanup-organize]"),+ rU("trash", "回收站", "查看已移入回收站的作品,按需要恢复或处理。永久删除前认真核对确认框中的范围。", "/trash", "[data-media-grid] > [data-id], [data-catalog-row], [data-media-empty]"),+ rU("tasks", "任务与失败原因", "任务记录显示处理状态;展开记录查看详情与失败原因。还没有任务时,这里会说明哪些操作会留下记录。", "/tasks", "[data-run-id], #main [data-empty-state]")]},{@@ -46229,10 +46254,10 @@ var tU = (e, t, n, r, i, a) => ({title: "了解自己的馆藏",summary: "统计、口味,以及浏览历史和书签来源。",steps: [- nU("stats", "馆藏统计", "选择统计视图查看馆藏、存储和观看情况,各视图中的入口可继续查看相关作品。", "/stats", "[aria-label=\"统计视图\"]"),- nU("taste", "口味与记录", "在这里切换浏览器记录与 Peach 观看评价,分析各自的口味。", "/taste", "[aria-label=\"口味分析的数据来源\"]"),- nU("import", "取得浏览历史与书签", "读取浏览器记录需要在运行 Peach 的电脑操作;更多方式菜单可以导入历史或书签文件,适合其它设备。", "/taste", "[data-guide-target=\"history-import\"]"),- nU("history", "管理记录来源", "已取得的记录来源集中列在这里,可以停用本机浏览器读取或移除已导入的数据源;导览不会修改这些记录。", "/taste", "section[aria-label=\"数据源\"]")+ rU("stats", "馆藏统计", "选择统计视图查看馆藏、存储和观看情况,各视图中的入口可继续查看相关作品。", "/stats", "[aria-label=\"统计视图\"]"),+ rU("taste", "口味与记录", "在这里切换浏览器记录与 Peach 观看评价,分析各自的口味。", "/taste", "[aria-label=\"口味分析的数据来源\"]"),+ rU("import", "取得浏览历史与书签", "读取浏览器记录需要在运行 Peach 的电脑操作;更多方式菜单可以导入历史或书签文件,适合其它设备。", "/taste", "[data-guide-target=\"history-import\"]"),+ rU("history", "管理记录来源", "已取得的记录来源集中列在这里,可以停用本机浏览器读取或移除已导入的数据源;导览不会修改这些记录。", "/taste", "section[aria-label=\"数据源\"]")]},{@@ -46241,9 +46266,9 @@ var tU = (e, t, n, r, i, a) => ({title: "从外部加入内容",summary: "云下载、目录映射与浏览器添加。",steps: [- nU("downloads", "配置下载渠道", "先连接支持的渠道,再指定云端目标目录与本地媒体目录。下载完成后按目录规则入库。", "/settings/downloads", "[data-guide-target=\"download\"]"),- nU("search", "搜索资源", "资源搜索使用配置的索引器。查到结果后还需要你主动选择下载。", "/settings/subscriptions", "[data-guide-target=\"indexers\"]"),- nU("browser", "浏览器添加 JAV", "用户脚本与 Peach 配对后可从浏览器添加作品。专用令牌、默认渠道和开关在下载渠道里管理。", "/settings/downloads", "[data-guide-target=\"browser\"]")+ rU("downloads", "配置下载渠道", "先连接支持的渠道,再指定云端目标目录与本地媒体目录。下载完成后按目录规则入库。", "/settings/downloads", "[data-guide-target=\"download\"]"),+ rU("search", "搜索资源", "资源搜索使用配置的索引器。查到结果后还需要你主动选择下载。", "/settings/subscriptions", "[data-guide-target=\"indexers\"]"),+ rU("browser", "浏览器添加 JAV", "用户脚本与 Peach 配对后可从浏览器添加作品。专用令牌、默认渠道和开关在下载渠道里管理。", "/settings/downloads", "[data-guide-target=\"browser\"]")]},{@@ -46252,18 +46277,18 @@ var tU = (e, t, n, r, i, a) => ({title: "手机与其他设备",summary: "访问地址、密码、局域网和公网入口。",steps: [- nU("address", "找到访问地址", "同一局域网的设备使用 Peach 的局域网地址。仅本机访问时,其它设备无法连接。", "/settings/network", "[data-guide-target=\"port\"]"),- nU("password", "访问密码", "能连接到 Peach 的设备按访问密码登录。显示偏好与访问权限是不同的设置。", "/settings/network", "[data-guide-target=\"access\"]"),- nU("tunnel", "需要时启用公网入口", "Cloudflare 公网入口适合离开局域网后访问,需要按实际部署配置连接信息。", "/settings/network", "[data-guide-target=\"tunnel\"]")+ rU("address", "找到访问地址", "同一局域网的设备使用 Peach 的局域网地址。仅本机访问时,其它设备无法连接。", "/settings/network", "[data-guide-target=\"port\"]"),+ rU("password", "访问密码", "能连接到 Peach 的设备按访问密码登录。显示偏好与访问权限是不同的设置。", "/settings/network", "[data-guide-target=\"access\"]"),+ rU("tunnel", "需要时启用公网入口", "Cloudflare 公网入口适合离开局域网后访问,需要按实际部署配置连接信息。", "/settings/network", "[data-guide-target=\"tunnel\"]")]}-], O_e = "当前浏览器 · 修改后自动保存", iU = "跟随馆藏 · 修改后自动保存", aU = "运行 Peach 的电脑 · 确认后保存配置", oU = (e, t, n = O_e) => t.map(([t, r, i, a, o]) => tU(t, r, i, `/settings/${e}`, a || `[data-guide-target="${t}"]`, o || n)), sU = [+], k_e = "当前浏览器 · 修改后自动保存", aU = "跟随馆藏 · 修改后自动保存", oU = "运行 Peach 的电脑 · 确认后保存配置", sU = (e, t, n = k_e) => t.map(([t, r, i, a, o]) => nU(t, r, i, `/settings/${e}`, a || `[data-guide-target="${t}"]`, o || n)), cU = [{id: "appearance",kind: "settings",title: Ef.appearance,summary: "主题、光晕与导航入口。",- steps: oU("appearance", [+ steps: sU("appearance", [["theme","主题",@@ -46293,7 +46318,7 @@ var tU = (e, t, n, r, i, a) => ({"导航入口与顺序","把常用入口放到侧栏,拖动调整顺序。","[data-sidebar-setting]",- iU+ aU]])},@@ -46302,7 +46327,7 @@ var tU = (e, t, n, r, i, a) => ({kind: "settings",title: Ef.playback,summary: "列表呈现、悬停预览与播放行为。",- steps: oU("playback", [+ steps: sU("playback", [["batch","每批作品",@@ -46358,13 +46383,13 @@ var tU = (e, t, n, r, i, a) => ({kind: "settings",title: Ef.jav,summary: "封面与新作筛选。",- steps: oU("jav", [+ steps: sU("jav", [["names","女优名称","选择中文或日文名称;偏好跟随馆藏,其他设备读取同一份设置。","#performerNameLanguageSetting",- iU+ aU],["image",@@ -46389,21 +46414,21 @@ var tU = (e, t, n, r, i, a) => ({"隐藏大合集","过滤新作中的大合集,只影响新作展示,馆藏仍可查找。","#feedHideGroupSetting",- iU+ aU],["solo-compilations","隐藏单人合集","过滤新作中的单人合集,只影响新作展示,馆藏仍可查找。","#feedHideSoloSetting",- iU+ aU],["excerpts","隐藏切片","过滤新作中的切片,只影响新作展示,馆藏仍可查找。","#feedHideExcerptSetting",- iU+ aU]])},@@ -46412,12 +46437,12 @@ var tU = (e, t, n, r, i, a) => ({kind: "settings",title: Ef.search,summary: "搜索记录、推荐数量与口味入口。",- steps: [...oU("search", [[+ steps: [...sU("search", [["history","搜索记录","设置保留的搜索记录上限,0 表示不记录。","#searchHistoryLimitSetting"- ]], iU), ...oU("search", [[+ ]], aU), ...sU("search", [["related","相关推荐数量","决定详情中显示多少项相关推荐。口味和记录来源在口味页面管理。",@@ -46429,7 +46454,7 @@ var tU = (e, t, n, r, i, a) => ({kind: "settings",title: Ef.content,summary: "SFW 模式与画面显示。",- steps: oU("content", [[+ steps: sU("content", [["sfw","SFW 模式","隐藏敏感画面并停止悬停预览,适合需要遮挡画面的环境。访问控制请另设访问密码。",@@ -46441,7 +46466,7 @@ var tU = (e, t, n, r, i, a) => ({kind: "settings",title: Df.library,summary: "媒体库、目录、读取与处理方式。",- steps: oU("library", [+ steps: sU("library", [["media","媒体库名称与外观",@@ -46492,14 +46517,14 @@ var tU = (e, t, n, r, i, a) => ({"视频预览","生成视频预览会读取视频并产生缓存。时间轴预览的开关与采集间隔控制本机磁盘缩略图;抽帧解码方式决定生成预览使用的解码器。修改后自动保存,并受媒体库处理方式与读取策略约束。"]- ], aU)+ ], oU)},{id: "subscriptions",kind: "settings",title: Df.subscriptions,summary: "资料来源、关注、索引器与站点入口。",- steps: oU("subscriptions", [+ steps: sU("subscriptions", [["sources","采集来源与登录状态",@@ -46526,14 +46551,14 @@ var tU = (e, t, n, r, i, a) => ({"作品资料站点","配置资料站点和镜像入口,用于打开相关作品页面。地址和登录凭据分别管理。"]- ], aU)+ ], oU)},{id: "downloads",kind: "settings",title: Df.downloads,summary: "云下载目录、账号与浏览器配对。",- steps: oU("downloads", [+ steps: sU("downloads", [["download","云下载",@@ -46549,14 +46574,14 @@ var tU = (e, t, n, r, i, a) => ({"浏览器添加 JAV","安装用户脚本并配对 Peach。默认渠道决定提交到哪里;启用开关控制功能,专用令牌可更新或关闭,脚本检测帮助确认配对。"]- ], aU)+ ], oU)},{id: "network",kind: "settings",title: Df.network,summary: "访问端口、代理、密码和公网入口。",- steps: oU("network", [+ steps: sU("network", [["port","访问地址与端口",@@ -46577,14 +46602,14 @@ var tU = (e, t, n, r, i, a) => ({"Cloudflare 公网入口","临时链接用于临时连接,命名隧道使用主机名与隧道令牌。连接状态显示是否已可用,按需要启用。"]- ], aU)+ ], oU)},{id: "app-maintenance",kind: "settings",title: Df.maintenance,summary: "更新、存储、数据选择与应用维护。",- steps: oU("maintenance", [+ steps: sU("maintenance", [["updates","检查更新",@@ -46625,14 +46650,14 @@ var tU = (e, t, n, r, i, a) => ({"卸载 Peach","卸载移除程序;完全卸载还移除设置、资料库、记录、凭据和缓存。执行前核对页面列出的数据目录与确认内容。"]- ], aU)+ ], oU)},{id: "diagnostics",kind: "settings",title: Df.diagnostics,summary: "遇到问题时查看检查项与诊断报告。",- steps: oU("diagnostics", [+ steps: sU("diagnostics", [["attention","需要关注的检查项",@@ -46657,7 +46682,7 @@ var tU = (e, t, n, r, i, a) => ({]], "只读检查 · 重新检查与下载由你主动执行")}-], k_e = {+], A_e = {glow: [["配色预设", "一次应用一组配色和参数,适合先挑选整体外观。"],["强度", "控制光晕的明亮程度;太抢眼时降低。"],@@ -46764,8 +46789,8 @@ var tU = (e, t, n, r, i, a) => ({["上传预览", "查看本次会包含的内容,再决定是否启用明细上传。"]]};-for (let e of sU) for (let t of e.steps) t.details = k_e[t.id], (t.id === "preview" || t.id === "transcode") && (t.scope = "运行 Peach 的电脑 · 修改后自动保存"), (t.id === "follow-options" || t.id === "sources" || t.id === "reporting" || t.id === "storage") && (t.scope = "按页面中各项的保存或确认动作生效");-var cU = [...rU, ...sU], A_e = [+for (let e of cU) for (let t of e.steps) t.details = A_e[t.id], (t.id === "preview" || t.id === "transcode") && (t.scope = "运行 Peach 的电脑 · 修改后自动保存"), (t.id === "follow-options" || t.id === "sources" || t.id === "reporting" || t.id === "storage") && (t.scope = "按页面中各项的保存或确认动作生效");+var lU = [...iU, ...cU], j_e = [{id: "browse",kind: "interface",@@ -46842,7 +46867,7 @@ var cU = [...rU, ...sU], A_e = ["diagnostics"]}-], j_e = {+], M_e = {来源凭据: "credentials",关注采集: "follow-options",检查更新: "updates",@@ -46869,39 +46894,39 @@ var cU = [...rU, ...sU], A_e = [数据上传: "reporting","卸载 Peach": "uninstall"};-function lU(e) {- let t = j_e[e] || e;- return t ? sU.flatMap((e) => e.steps).find((e) => e.id === t) : void 0;+function uU(e) {+ let t = M_e[e] || e;+ return t ? cU.flatMap((e) => e.steps).find((e) => e.id === t) : void 0;}-function M_e(e) {- return e === "/" ? rU[0] : sU.find((t) => t.steps[0]?.route === e) || rU.find((t) => t.id !== "basics" && t.steps.some((t) => t.route === e)) || rU[0];+function N_e(e) {+ return e === "/" ? iU[0] : cU.find((t) => t.steps[0]?.route === e) || iU.find((t) => t.id !== "basics" && t.steps.some((t) => t.route === e)) || iU[0];}// src/onboarding/guide-state.ts-var N_e = () => ({+var P_e = () => ({version: 1,campaign: "",invited: !1,completed: !1,chapters: {}});-function uU(e, t) {+function dU(e, t) {let n = e.chapters[t.id]?.read || [];return t.steps.every((e) => n.includes(e.id));}-function P_e(e, t) {+function F_e(e, t) {let n = e.chapters[t.id];- return !n || uU(e, t) ? 0 : n.next < t.steps.length ? n.next : t.steps.findIndex((e) => !n.read.includes(e.id));+ return !n || dU(e, t) ? 0 : n.next < t.steps.length ? n.next : t.steps.findIndex((e) => !n.read.includes(e.id));}-function F_e() {+function I_e() {return B("/api/tutorial-progress");}-function I_e(e, t) {+function L_e(e, t) {return V("/api/tutorial-progress", {campaign: e,...t});}-function L_e(e, t, n, r, i) {+function R_e(e, t, n, r, i) {let a = e.chapters[t] || {next: 0,read: [],@@ -46919,24 +46944,24 @@ function L_e(e, t, n, r, i) {}};}-var dU = null, fU = /* @__PURE__ */ new Set();-function pU(e = {}) {- fU.size || (dU = e);- for (let t of fU) t(e);+var fU = null, pU = /* @__PURE__ */ new Set();+function mU(e = {}) {+ pU.size || (fU = e);+ for (let t of pU) t(e);}-function R_e(e) {- if (fU.add(e), dU) {- let t = dU;- dU = null, queueMicrotask(() => {- fU.has(e) && e(t);+function z_e(e) {+ if (pU.add(e), fU) {+ let t = fU;+ fU = null, queueMicrotask(() => {+ pU.has(e) && e(t);});}return () => {- fU.delete(e);+ pU.delete(e);};}// src/react/onboarding/guide-help.tsx-function mU({ details: e }) {+function hU({ details: e }) {return e?.length ? /* @__PURE__ */ (0, I.jsx)("dl", {className: "flex flex-col gap-3",children: e.map(([e, t]) => /* @__PURE__ */ (0, I.jsxs)("div", {@@ -46951,28 +46976,28 @@ function mU({ details: e }) {}, e))}) : null;}-function hU({ chapter: e, section: t }) {- let n = t ? lU(t) : void 0, r = cU.find((t) => t.id === e);+function gU({ chapter: e, section: t }) {+ let n = t ? uU(t) : void 0, r = lU.find((t) => t.id === e);return !n && !r ? null : /* @__PURE__ */ (0, I.jsx)("div", {"data-guide-help": "",className: "text-body-2-regular text-text-secondary",- children: /* @__PURE__ */ (0, I.jsx)(yU, {+ children: /* @__PURE__ */ (0, I.jsx)(bU, {summary: t ? "设置说明" : "了解这些设置",children: n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("p", { children: n.body }),- /* @__PURE__ */ (0, I.jsx)(mU, { details: n.details }),+ /* @__PURE__ */ (0, I.jsx)(hU, { details: n.details }),/* @__PURE__ */ (0, I.jsx)("p", { children: n.scope })] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("p", { children: r.summary }), /* @__PURE__ */ (0, I.jsx)("div", { children: /* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",size: "small",- onClick: () => pU({ chapter: e }),+ onClick: () => mU({ chapter: e }),children: "逐步了解这个分区"}) })] })})});}// src/react/settings/section.tsx-function z_e({ title: e, guide: t, icon: n, id: r, aside: i, onSubmit: a, children: o }) {+function B_e({ title: e, guide: t, icon: n, id: r, aside: i, onSubmit: a, children: o }) {let s = n ? /* @__PURE__ */ (0, I.jsxs)("span", {className: "inline-flex items-center gap-1.5",children: [n, e]@@ -46981,14 +47006,14 @@ function z_e({ title: e, guide: t, icon: n, id: r, aside: i, onSubmit: a, childrclassName: "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)(ZH, { children: s })+ children: /* @__PURE__ */ (0, I.jsx)(QH, { children: s })}), /* @__PURE__ */ (0, I.jsx)("div", {className: "flex min-w-0 max-w-full",children: i})]- }) : /* @__PURE__ */ (0, I.jsx)(ZH, { children: s }),- t ? /* @__PURE__ */ (0, I.jsx)(hU, { section: t }) : null,- /* @__PURE__ */ (0, I.jsx)(XH, { children: o })+ }) : /* @__PURE__ */ (0, I.jsx)(QH, { children: s }),+ t ? /* @__PURE__ */ (0, I.jsx)(gU, { section: t }) : null,+ /* @__PURE__ */ (0, I.jsx)(ZH, { children: o })] });return a ? /* @__PURE__ */ (0, I.jsx)("form", {id: r,@@ -47006,13 +47031,13 @@ function z_e({ title: e, guide: t, icon: n, id: r, aside: i, onSubmit: a, childrchildren: c});}-function B_e({ children: e }) {+function V_e({ children: e }) {return /* @__PURE__ */ (0, I.jsx)("div", {className: "ui-settings-rows flex flex-col empty:hidden",children: e});}-function V_e({ divided: e = !1, children: t }) {+function H_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 [&>.ui-settings-facts]:-mr-3",children: t@@ -47021,7 +47046,7 @@ function V_e({ divided: e = !1, children: t }) {children: t});}-function H_e({ label: e, html: t }) {+function U_e({ label: e, html: t }) {let [n] = (0, F.useState)(t);return /* @__PURE__ */ (0, I.jsx)("div", {className: "contents",@@ -47031,7 +47056,7 @@ function H_e({ label: e, html: t }) {dangerouslySetInnerHTML: { __html: n }});}-function U_e({ status: e, children: t }) {+function W_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", {@@ -47040,28 +47065,28 @@ function U_e({ status: e, children: t }) {}) : null, t]});}-function gU({ 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 _U({ 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 vU({ children: e }) {+function yU({ children: e }) {return /* @__PURE__ */ (0, I.jsx)("p", {className: "text-body-medium text-text-primary",children: e});}-function W_e({ href: e, children: t, leadingIcon: n }) {- return /* @__PURE__ */ (0, I.jsx)(kH, {+function G_e({ href: e, children: t, leadingIcon: n }) {+ return /* @__PURE__ */ (0, I.jsx)(AH, {href: e,target: "_blank",rel: "noopener noreferrer",@@ -47075,8 +47100,8 @@ function W_e({ href: e, children: t, leadingIcon: n }) {})});}-function G_e() {- return /* @__PURE__ */ (0, I.jsx)(kH, {+function K_e() {+ return /* @__PURE__ */ (0, I.jsx)(AH, {href: "/tasks",size: "small",trailingIcon: zB,@@ -47084,13 +47109,13 @@ function G_e() {children: "在任务中心查看进度"});}-function K_e({ children: e }) {+function q_e({ children: e }) {return /* @__PURE__ */ (0, I.jsx)("dl", {className: "ui-settings-facts flex flex-col empty:hidden",children: e});}-function q_e({ term: e, children: t }) {+function J_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", {@@ -47102,7 +47127,7 @@ function q_e({ term: e, children: t }) {})]});}-function yU({ 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 && (zo(c.current, l.current, n), f(n));@@ -47139,7 +47164,7 @@ function yU({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing:})]});}-function J_e({ name: e }) {+function Y_e({ name: e }) {return /* @__PURE__ */ (0, I.jsx)("svg", {"aria-hidden": !0,"data-source-mark": e,@@ -47149,34 +47174,34 @@ function J_e({ name: e }) {children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })});}-function bU({ 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)(J_e, { name: e });+ }) : /* @__PURE__ */ (0, I.jsx)(Y_e, { name: e });}// src/react/components/source-label.tsx-var xU = (e) => e.startsWith("clouddrive:") ? e.split(":")[1] : e, Y_e = Object.fromEntries(Object.entries(gs).map(([e, t]) => [e, function({ className: e }) {+var SU = (e) => e.startsWith("clouddrive:") ? e.split(":")[1] : e, X_e = Object.fromEntries(Object.entries(gs).map(([e, t]) => [e, function({ className: e }) {return /* @__PURE__ */ (0, I.jsx)("span", {className: e,- children: /* @__PURE__ */ (0, I.jsx)(bU, { mark: t })+ children: /* @__PURE__ */ (0, I.jsx)(xU, { mark: t })});}]));-function X_e({ className: e }) {+function Z_e({ className: e }) {return /* @__PURE__ */ (0, I.jsx)("span", {className: e,- children: /* @__PURE__ */ (0, I.jsx)(bU, { mark: "database" })+ children: /* @__PURE__ */ (0, I.jsx)(xU, { mark: "database" })});}-var SU = (e) => Y_e[xU(e)] ?? X_e;-function Z_e({ site: e, label: t }) {+var CU = (e) => X_e[SU(e)] ?? Z_e;+function Q_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)(bU, { 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",@@ -47184,24 +47209,24 @@ function Z_e({ site: e, label: t }) {}), /* @__PURE__ */ (0, I.jsx)("span", { children: t })]});}-function CU({ source: e, label: t }) {- let n = xU(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)(bU, { mark: gs[n] || (n === "local" ? "hard-drive" : "database") }), /* @__PURE__ */ (0, I.jsx)("span", {+ children: [/* @__PURE__ */ (0, I.jsx)(xU, { mark: gs[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 wU = (e) => Yn(e).replace(/\s/g, ""), TU = (e) => e >= 1024 ** 2 && e < 1024 ** 3 ? `${Number((e / 1024 ** 2).toFixed(1))}MB` : wU(e), Q_e = (e, t) => {- if (e === t) return wU(t);+var TU = (e) => Yn(e).replace(/\s/g, ""), EU = (e) => e >= 1024 ** 2 && e < 1024 ** 3 ? `${Number((e / 1024 ** 2).toFixed(1))}MB` : TU(e), $_e = (e, t) => {+ if (e === t) return TU(t);let [n, r] = Yn(e).split(" "), [i, a] = Yn(t).split(" ");- return r === a ? `${n}-${i}${a}` : `${wU(e)}-${wU(t)}`;-}, EU = (e, t, n) => e === void 0 ? Q_e(t, n) : `${e > 0 ? "约 " : ""}${wU(e)}`;-function DU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r }) {- let i = tH(), [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 ? $_e(t, n) : `${e > 0 ? "约 " : ""}${TU(e)}`;+function OU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r }) {+ let i = nH(), [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", {@@ -47250,18 +47275,18 @@ function DU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })}),/* @__PURE__ */ (0, I.jsx)("p", {className: "text-title-3-semibold text-text-primary",- children: EU(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 ? "已确认代理" : "代理"," ",- EU(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 ? "约 " : "", wU(e.used_bytes)] }),+ /* @__PURE__ */ (0, I.jsxs)("span", { children: [e.partial ? "约 " : "", TU(e.used_bytes)] })," · 代理 ",- wU(e.metered_used_bytes)+ TU(e.metered_used_bytes)] })]}), e.disk ? /* @__PURE__ */ (0, I.jsxs)("section", {@@ -47270,25 +47295,25 @@ function DU({ 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)(sge, {+ children: [/* @__PURE__ */ (0, I.jsx)(oge, {"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: ["约 ", wU(e.disk.estimated_bytes)]+ children: ["约 ", TU(e.disk.estimated_bytes)]}),- e.disk.temporary_bytes > 0 ? /* @__PURE__ */ (0, I.jsxs)("p", { children: ["抽帧临时文件约 ", TU(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 ? "未取得" : wU(e.free_bytes)+ e.free_bytes == null ? "未取得" : TU(e.free_bytes)] }), e.can_fit === !1 ? /* @__PURE__ */ (0, I.jsxs)("p", {role: "status",- children: ["空间不足,还差 ", wU(e.shortfall_bytes || 0)]+ children: ["空间不足,还差 ", TU(e.shortfall_bytes || 0)]}) : null]}, e.path)),e.disk.cache_unknown ? /* @__PURE__ */ (0, I.jsx)("p", {@@ -47323,12 +47348,12 @@ function DU({ 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)(CU, {+ 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)(bU, { 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 ? "代理" : "直连"@@ -47350,7 +47375,7 @@ function DU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })"待补资料 ",l(e.workload.pending_jav_titles)," 部 · 平均约 ",- TU(e.workload.metadata_average_bytes || 0),+ EU(e.workload.metadata_average_bytes || 0),"/部"]}) : null,@@ -47360,8 +47385,8 @@ function DU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })"已用",e.unobserved.length ? "约" : ""," ",- wU(e.used_bytes)- ] }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["预计 ", EU(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))@@ -47372,15 +47397,15 @@ function DU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })});}// src/react/library-processing/library-processing-notice.tsx-var OU = "peach.library-processing.collapsed";-function kU(e) {+var kU = "peach.library-processing.collapsed";+function AU(e) {try {- return !e || sessionStorage.getItem(OU) !== e;+ return !e || sessionStorage.getItem(kU) !== e;} catch {return !0;}}-function $_e({ value: e, max: t }) {+function eve({ value: e, max: t }) {let n = Math.max(0, Math.min(100, e / t * 100));return /* @__PURE__ */ (0, I.jsxs)("svg", {role: "progressbar",@@ -47410,14 +47435,14 @@ function $_e({ value: e, max: t }) {})]});}-function AU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {- let [i, a] = (0, F.useState)(() => kU(e?.job_id)), o = (0, F.useId)(), [s, c] = (0, F.useState)(!1), l = (0, F.useRef)(null), u = !t && _H(e), d = e?.status === "failed" && !u, f = gH(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 && vH(e), d = e?.status === "failed" && !u, f = _H(e);(0, F.useEffect)(() => {- a(kU(e?.job_id)), c(!1);+ a(AU(e?.job_id)), c(!1);}, [e?.job_id]);let p = () => {try {- i && e?.job_id ? sessionStorage.setItem(OU, e.job_id) : sessionStorage.removeItem(OU);+ i && e?.job_id ? sessionStorage.setItem(kU, e.job_id) : sessionStorage.removeItem(kU);} catch {}i && c(!1), a(!i);};@@ -47432,7 +47457,7 @@ function AU({ 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 : mH(e), h = !!t || !!e?.stalled || u || !!m, g = u ? "处理已结束,部分项目需处理" : d ? "扫描与采集已中断" : e?.status === "paused" ? "扫描与采集已暂停" : "扫描与采集";+ let m = t ? null : hH(e), h = !!t || !!e?.stalled || u || !!m, g = u ? "处理已结束,部分项目需处理" : d ? "扫描与采集已中断" : e?.status === "paused" ? "扫描与采集已暂停" : "扫描与采集";return /* @__PURE__ */ (0, I.jsxs)("aside", {ref: l,"data-processing-dock": "",@@ -47447,7 +47472,7 @@ function AU({ 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)($_e, {+ f && e?.total ? /* @__PURE__ */ (0, I.jsx)(eve, {value: e.checked || 0,max: e.total}) : d || h ? /* @__PURE__ */ (0, I.jsx)(Fhe, {@@ -47465,14 +47490,14 @@ function AU({ 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: bH(e)+ children: xH(e)}) : null]}),/* @__PURE__ */ (0, I.jsx)(J, {size: "small",variant: "secondary",iconOnly: !0,- leadingIcon: YH,+ leadingIcon: XH,"data-processing-toggle": "","data-collapse-upward": "","aria-label": i ? "收起任务详情" : "展开任务详情",@@ -47490,18 +47515,18 @@ function AU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {}) : null]}),- /* @__PURE__ */ (0, I.jsx)(DU, {+ /* @__PURE__ */ (0, I.jsx)(OU, {traffic: e?.traffic,detailsOpen: s,onDetailsChange: c}),- m ? /* @__PURE__ */ (0, I.jsx)(d_e, {+ m ? /* @__PURE__ */ (0, I.jsx)(f_e, {state: e,slow: m}) : null]}),- /* @__PURE__ */ (0, I.jsx)(JH, {+ /* @__PURE__ */ (0, I.jsx)(YH, {id: o,open: i,"data-processing-body": "",@@ -47538,11 +47563,11 @@ function AU({ 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)(w_e, { state: e }))+ children: t || (d || u ? e?.error || "请查看并处理未完成项" : /* @__PURE__ */ (0, I.jsx)(T_e, { state: e }))}),u ? /* @__PURE__ */ (0, I.jsx)("p", {className: "text-body-2-regular wrap-anywhere",- children: vH+ children: yH}) : null,f && e?.stage && !e.steps?.length ? /* @__PURE__ */ (0, I.jsxs)("p", {className: "text-caption-1-regular text-text-tertiary",@@ -47559,20 +47584,20 @@ function AU({ 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)(AH, {href: "/data-cleanup#libraryProcessing",variant: "secondary",size: "small",trailingIcon: zB,children: t || d || u ? "打开扫描与采集" : "任务详情"}),- u ? /* @__PURE__ */ (0, I.jsx)(kH, {- href: yH,+ u ? /* @__PURE__ */ (0, I.jsx)(AH, {+ href: bH,size: "small",trailingIcon: zB,children: "查看全部内容"}) : null,- f ? /* @__PURE__ */ (0, I.jsx)(BH, {+ f ? /* @__PURE__ */ (0, I.jsx)(VH, {state: e,disabled: !!t}) : null@@ -47581,67 +47606,67 @@ function AU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {]});}-function eve(e) {- let { job: t } = VH(e);- return /* @__PURE__ */ (0, I.jsx)(AU, {+function tve(e) {+ let { job: t } = HH(e);+ return /* @__PURE__ */ (0, I.jsx)(jU, {state: t.data,- problem: t.isError ? t.data ? CH : cr(t.error) : ""+ problem: t.isError ? t.data ? wH : cr(t.error) : ""});}// src/react/library-processing/processing-notice-visibility.ts-var jU = "peach.library-processing.visibility", MU = /* @__PURE__ */ new Set(), NU = "";-function tve() {+var MU = "peach.library-processing.visibility", NU = /* @__PURE__ */ new Set(), PU = "";+function nve() {try {- return sessionStorage.getItem(jU) || "";+ return sessionStorage.getItem(MU) || "";} catch {- return NU;+ return PU;}}-function nve(e) {- return MU.add(e), () => {- MU.delete(e);+function rve(e) {+ return NU.add(e), () => {+ NU.delete(e);};}-function PU(e, t) {- NU = `${t ? "shown" : "hidden"}:${e}`;+function FU(e, t) {+ PU = `${t ? "shown" : "hidden"}:${e}`;try {- sessionStorage.setItem(jU, NU);+ sessionStorage.setItem(MU, PU);} catch {}- MU.forEach((e) => e());+ NU.forEach((e) => e());}-function FU(e) {- let t = (0, F.useSyncExternalStore)(nve, tve, () => "");+function IU(e) {+ let t = (0, F.useSyncExternalStore)(rve, nve, () => "");return {hidden: t === `hidden:${e}`,requested: t === `shown:${e}`};}// src/react/library-processing/library-processing-dock.tsx-var IU = "peach-library-processing";-function rve({ toast: e }) {- let { job: t, settled: n } = VH({+var LU = "peach-library-processing";+function ive({ toast: e }) {+ let { job: t, settled: n } = HH({toast: e,mode: "notice"- }), r = (0, F.useRef)(!1), i = t.data, a = i?.job_id || "unavailable", { hidden: o, requested: s } = FU(a), c = t.isError ? i ? CH : cr(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 ? wH : cr(t.error) : "";return (0, F.useEffect)(() => {- let e = gH(i), t = i?.status === "failed" && (n?.job_id === i.job_id || DH(i));- o || i?.archived && !c || !e && !c && !t && !(s && i?.status === "failed") ? (r.current && oH.dismiss(IU), r.current = !1) : (oH.custom(() => /* @__PURE__ */ (0, I.jsx)("div", {+ let e = _H(i), t = i?.status === "failed" && (n?.job_id === i.job_id || OH(i));+ o || i?.archived && !c || !e && !c && !t && !(s && i?.status === "failed") ? (r.current && sH.dismiss(LU), r.current = !1) : (sH.custom(() => /* @__PURE__ */ (0, I.jsx)("div", {className: "peach-react",- children: /* @__PURE__ */ (0, I.jsx)(AU, {+ children: /* @__PURE__ */ (0, I.jsx)(jU, {state: i,problem: c,measure: !0,- onHide: () => PU(a, !1)+ onHide: () => FU(a, !1)})}), {- id: IU,+ id: LU,toasterId: "processing",duration: Infinity,dismissible: !1,closeButton: !1,className: "processing-task-toast",onDismiss: () => {- PU(a, !1), r.current = !1;+ FU(a, !1), r.current = !1;}}), r.current = !0);}, [@@ -47652,19 +47677,19 @@ function rve({ toast: e }) {o,s]), (0, F.useEffect)(() => () => {- r.current && oH.dismiss(IU), r.current = !1;+ r.current && sH.dismiss(LU), r.current = !1;}, []), null;}// src/react/network-banner.tsx-var ive = ["network-status"], ave = "Peach 连不上外网,资料采集、关注更新和在线来源暂不可用;本机媒体照常浏览和播放。";-function ove(e) {+var ave = ["network-status"], ove = "Peach 连不上外网,资料采集、关注更新和在线来源暂不可用;本机媒体照常浏览和播放。";+function sve(e) {return e?.state === "online" ? 12e4 : 3e4;}-function sve() {+function cve() {let e = Pt({- queryKey: ive,+ queryKey: ave,queryFn: ({ signal: e }) => B("/api/network-status", e),- refetchInterval: (e) => ove(e.state.data),+ refetchInterval: (e) => sve(e.state.data),retry: !1}), t = document.querySelector("[data-network-banner]");return e.data?.state !== "offline" || !t ? null : (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsxs)("aside", {@@ -47675,28 +47700,28 @@ function sve() {viewBox: "0 0 24 24","aria-hidden": "true",children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-alert" })- }), /* @__PURE__ */ (0, I.jsx)("p", { children: ave })] }), /* @__PURE__ */ (0, I.jsx)("a", {+ }), /* @__PURE__ */ (0, I.jsx)("p", { children: ove })] }), /* @__PURE__ */ (0, I.jsx)("a", {href: "/settings/network#peachProxy",children: "检查 Peach 代理"})]}), t);}// src/react/components/segmented.tsx-function cve(e) {- let t = AL(MH("selection"));+function lve(e) {+ let t = AL(NH("selection"));return /* @__PURE__ */ (0, I.jsx)(NB, {...e,ref: t});}-function LU(e) {- let t = AL(MH("selection"));+function RU(e) {+ let t = AL(NH("selection"));return /* @__PURE__ */ (0, I.jsx)(Qz, {...e,ref: t});}-var RU = "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", zU = "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", lve = "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", BU = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", VU = "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)", uve = {+var zU = "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", BU = "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", uve = "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", VU = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", HU = "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)", dve = {browse: uV,collect: HB,watch: aV,@@ -47705,10 +47730,10 @@ var RU = "inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overdiscovery: lV,storage: KB,system: dV-}, dve = {+}, fve = {basics: GB,"find-play": uV,- entities: age,+ entities: ige,jav: XB,save: HB,follow: lV,@@ -47716,7 +47741,7 @@ var RU = "inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overviewing: aV,devices: fV,external: qB,- maintenance: pV,+ maintenance: mV,appearance: rV,playback: aV,content: YB,@@ -47726,21 +47751,21 @@ var RU = "inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overlibrary: KB,downloads: qB,network: fV,- "app-maintenance": pV,+ "app-maintenance": mV,diagnostics: Yhe};-function fve({ chapter: e, className: t = "size-5" }) {- let n = dve[e] || GB;+function pve({ chapter: e, className: t = "size-5" }) {+ let n = fve[e] || GB;return /* @__PURE__ */ (0, I.jsx)(n, {"aria-hidden": !0,className: q(t, "shrink-0")});}-function HU({ icon: e, title: t, description: n, children: r, completed: i = !1 }) {+function UU({ icon: e, title: t, description: n, children: r, completed: i = !1 }) {return /* @__PURE__ */ (0, I.jsxs)("section", {"data-guide-banner": "","data-guide-completed": i || void 0,- className: HH({+ className: UH({radius: "plain",className: "flex flex-col gap-4"}),@@ -47769,8 +47794,8 @@ function HU({ icon: e, title: t, description: n, children: r, completed: i = !1})]});}-function UU({ chapter: e, progress: t, loading: n, start: r }) {- let i = uU(t, e), a = !i && !!t.chapters[e.id];+function WU({ chapter: e, progress: t, loading: n, start: r }) {+ let i = dU(t, e), a = !i && !!t.chapters[e.id];return /* @__PURE__ */ (0, I.jsxs)("button", {type: "button",disabled: n,@@ -47780,7 +47805,7 @@ function UU({ chapter: e, progress: t, loading: n, start: r }) {children: [/* @__PURE__ */ (0, I.jsx)("span", {className: "peach-guide-topic-icon",- children: /* @__PURE__ */ (0, I.jsx)(fve, { chapter: e.id })+ children: /* @__PURE__ */ (0, I.jsx)(pve, { chapter: e.id })}),/* @__PURE__ */ (0, I.jsxs)("span", {className: "flex min-w-0 flex-1 flex-col gap-1",@@ -47792,7 +47817,7 @@ function UU({ chapter: e, progress: t, loading: n, start: r }) {children: e.summary})]}),- i ? /* @__PURE__ */ (0, I.jsx)(WU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {+ i ? /* @__PURE__ */ (0, I.jsx)(GU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {className: "shrink-0 text-caption-1-regular tabular-nums text-text-secondary",children: [a ? "继续 · " : "",@@ -47807,7 +47832,7 @@ function UU({ chapter: e, progress: t, loading: n, start: r }) {]});}-function WU() {+function GU() {return /* @__PURE__ */ (0, I.jsxs)("span", {className: "inline-flex shrink-0 items-center gap-1 rounded-full bg-notification-success-background px-2 py-1 text-caption-1-medium text-notification-success-foreground",children: [/* @__PURE__ */ (0, I.jsx)(UB, {@@ -47819,17 +47844,17 @@ function WU() {})]});}-function pve({ kind: e, query: t, setQuery: n, context: r, progress: i, loading: a, start: o }) {- let [s, c] = (0, F.useState)(null), l = cU.find((t) => t.id === (e === "interface" ? "basics" : "appearance")), u = uU(i, l), d = !u && !!i.chapters[l.id], f = t.trim().toLowerCase(), p = cU.filter((t) => t.kind === e && `${t.title} ${t.summary} ${t.steps.map((e) => `${e.title} ${e.body} ${(e.details || []).flat().join(" ")}`).join(" ")}`.toLowerCase().includes(f));+function mve({ kind: e, query: t, setQuery: n, context: r, progress: i, loading: a, start: o }) {+ let [s, c] = (0, F.useState)(null), l = lU.find((t) => t.id === (e === "interface" ? "basics" : "appearance")), u = dU(i, l), d = !u && !!i.chapters[l.id], f = t.trim().toLowerCase(), p = lU.filter((t) => t.kind === e && `${t.title} ${t.summary} ${t.steps.map((e) => `${e.title} ${e.body} ${(e.details || []).flat().join(" ")}`).join(" ")}`.toLowerCase().includes(f));return /* @__PURE__ */ (0, I.jsxs)("div", {className: "flex flex-col gap-4",children: [- /* @__PURE__ */ (0, I.jsxs)(HU, {+ /* @__PURE__ */ (0, I.jsxs)(UU, {completed: u,icon: e === "interface" ? GB : dV,title: e === "interface" ? "先认识 Peach" : "按习惯调整 Peach",description: e === "interface" ? "先用 4 步认识常用入口,其余功能用到时再看。" : "先了解外观与导航,其余设置按需要查看。",- children: [u ? /* @__PURE__ */ (0, I.jsx)(WU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {+ children: [u ? /* @__PURE__ */ (0, I.jsx)(GU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {className: "text-body-2-regular text-text-secondary",children: [l.steps.length, " 步 · 随时可以退出"]}), /* @__PURE__ */ (0, I.jsx)(J, {@@ -47842,11 +47867,11 @@ function pve({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:})})]}),- /* @__PURE__ */ (0, I.jsx)(yV, {+ /* @__PURE__ */ (0, I.jsx)(bV, {"aria-label": "搜索教程",value: t,onChange: n,- children: /* @__PURE__ */ (0, I.jsx)(xV, {+ children: /* @__PURE__ */ (0, I.jsx)(SV, {type: "search",placeholder: e === "settings" ? "搜索设置名称或用途" : "搜索功能或页面",leadingIcon: uV@@ -47854,13 +47879,13 @@ function pve({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:}),f ? p.length ? /* @__PURE__ */ (0, I.jsx)("div", {className: "peach-guide-chapters",- children: p.map((e) => /* @__PURE__ */ (0, I.jsx)(UU, {+ children: p.map((e) => /* @__PURE__ */ (0, I.jsx)(WU, {chapter: e,progress: i,loading: a,start: o}, e.id))- }) : /* @__PURE__ */ (0, I.jsx)(EV, {+ }) : /* @__PURE__ */ (0, I.jsx)(DV, {icon: uV,title: "没有匹配的教程",size: "compact",@@ -47879,12 +47904,12 @@ function pve({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:}) : null]}), /* @__PURE__ */ (0, I.jsx)("div", {className: "peach-guide-topics",- children: A_e.filter((t) => t.kind === e).map((e) => {- let t = uve[e.id];+ children: j_e.filter((t) => t.kind === e).map((e) => {+ let t = dve[e.id];return /* @__PURE__ */ (0, I.jsx)("div", {"data-guide-topic": e.id,className: "peach-guide-topic",- children: /* @__PURE__ */ (0, I.jsx)(yU, {+ children: /* @__PURE__ */ (0, I.jsx)(bU, {trailing: !0,isOpen: s === e.id,onOpenChange: (t) => c(t ? e.id : null),@@ -47909,8 +47934,8 @@ function pve({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:}),children: /* @__PURE__ */ (0, I.jsx)("div", {className: "peach-guide-topic-chapters",- children: e.chapters.map((e) => /* @__PURE__ */ (0, I.jsx)(UU, {- chapter: cU.find((t) => t.id === e),+ children: e.chapters.map((e) => /* @__PURE__ */ (0, I.jsx)(WU, {+ chapter: lU.find((t) => t.id === e),progress: i,loading: a,start: o@@ -47924,14 +47949,14 @@ function pve({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:});}// src/onboarding/guide-entry.ts-var GU = "侧栏收起时,先点左上角的导航按钮。", KU = (...e) => ({+var KU = "侧栏收起时,先点左上角的导航按钮。", qU = (...e) => ({path: ["侧栏", ...e],- hint: GU-}), qU = (e) => ({+ hint: KU+}), JU = (e) => ({path: ["侧栏底部的设置", e],- hint: GU+ hint: KU});-function mve(e) {+function hve(e) {if (e.surface) return e.id === "external" ? { path: ["作品卡片","作品详情",@@ -47949,7 +47974,7 @@ function mve(e) {let [t = "/", n = ""] = e.route.split("#")[0].split("?"), r = t.split("/")[2];if (t.startsWith("/settings/")) {let e = Ef[r];- if (e) return qU(e);+ if (e) return JU(e);let t = Df[r];if (t) return {path: [@@ -47957,11 +47982,11 @@ function mve(e) {"Peach 配置",t],- hint: GU+ hint: KU};}let i = new URLSearchParams(n);- if (t === "/jav" || i.get("jav") === "1") return KU("JAV", QH.find(([e]) => e === (i.get("tab") || "library"))?.[1] || QH[0][1]);+ if (t === "/jav" || i.get("jav") === "1") return qU("JAV", $H.find(([e]) => e === (i.get("tab") || "library"))?.[1] || $H[0][1]);if (t === "/") {switch (e.id) {case "search": return {@@ -47971,9 +47996,9 @@ function mve(e) {case "navigation": return { path: ["左上角导航按钮", "侧栏中的浏览入口"] };case "library": return {path: ["侧栏顶部", "媒体库选择器"],- hint: GU+ hint: KU};- case "preferences": return qU(Ef.appearance);+ case "preferences": return JU(Ef.appearance);case "wall": return { path: ["页面顶部", "播放墙按钮"] };case "immerse": return { path: ["页面顶部", "沉浸模式按钮"] };case "cards":@@ -47995,23 +48020,23 @@ function mve(e) {hint: "来源、时长等更多筛选位于侧栏。"};}- return KU("首页");+ return qU("首页");}if (["/review","/quality-goals","/trash"- ].includes(t)) return KU("管理", Zf["/data-cleanup"].title, t === "/trash" ? "回收站" : Zf[t].title);+ ].includes(t)) return qU("管理", Zf["/data-cleanup"].title, t === "/trash" ? "回收站" : Zf[t].title);let a = Zf[t];if (a?.nav && a.title) {- let e = KU(a.title);+ let e = qU(a.title);return t === "/playlists" && (e.hint = "若侧栏没有播放列表,到设置 → 外观与导航 → 导航入口与顺序添加;手机上先展开侧栏。"), e;}- if (a?.section && a.title) return KU("管理", a.title);+ if (a?.section && a.title) return qU("管理", a.title);}// src/react/onboarding/guide-popover.tsx-function hve({ step: e, position: t, total: n, missing: r, next: i, previous: a, close: o, invitation: s }) {- let c = tH(), l = mve(e);+function gve({ step: e, position: t, total: n, missing: r, next: i, previous: a, close: o, invitation: s }) {+ let c = nH(), l = hve(e);return /* @__PURE__ */ (0, I.jsxs)("div", {className: "peach-guide-popover-content",onPointerDown: (e) => e.stopPropagation(),@@ -48022,7 +48047,7 @@ function hve({ step: e, position: t, total: n, missing: r, next: i, previous: a,id: "driver-popover-title",className: "text-body-medium text-text-primary",children: e.title- }), /* @__PURE__ */ (0, I.jsx)(kV, {+ }), /* @__PURE__ */ (0, I.jsx)(AV, {label: s ? "关闭教程提示" : "结束导览",onPress: o})]@@ -48069,15 +48094,15 @@ function hve({ step: e, position: t, total: n, missing: r, next: i, previous: a,className: "text-caption-1-regular text-text-secondary",children: "导览期间不自动播放;退出后仍按原来的播放设置使用。"}) : null,- e.details?.length ? /* @__PURE__ */ (0, I.jsx)(yU, {+ e.details?.length ? /* @__PURE__ */ (0, I.jsx)(bU, {summary: "更多说明",- children: /* @__PURE__ */ (0, I.jsx)(mU, { details: e.details })+ children: /* @__PURE__ */ (0, I.jsx)(hU, { details: e.details })}) : null,e.scope ? /* @__PURE__ */ (0, I.jsx)("p", {className: "text-body-2-regular text-text-secondary",children: e.scope}) : null,- r ? /* @__PURE__ */ (0, I.jsx)(TV, {+ r ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "neutral",children: e.surface ? "尚未取得可演示的视频或对应控件。请先添加视频,或跳过后稍后重看。" : "当前页面未显示这个入口,可能尚无内容、没有配置权限或仍在加载。可以跳过,稍后重看。"}) : null@@ -48131,14 +48156,14 @@ function hve({ step: e, position: t, total: n, missing: r, next: i, previous: a,]});}-function JU(e, t, n) {+function YU(e, t, n) {let r = document.createElement("div");e.replaceChildren(r, t);let i = (0, Rt.createRoot)(r);- return (0, Lt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(hve, { ...n }))), () => i.unmount();+ return (0, Lt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(gve, { ...n }))), () => i.unmount();}// src/react/onboarding/tutorial-center.tsx-function gve({ go: e }) {+function _ve({ go: e }) {let [t, n] = (0, F.useState)(null), [r, i] = (0, F.useState)(""), [a, o] = (0, F.useState)(0);(0, F.useEffect)(() => {let e = new AbortController();@@ -48152,7 +48177,7 @@ function gve({ go: e }) {return /* @__PURE__ */ (0, I.jsxs)("div", {className: "flex flex-col gap-4",children: [- /* @__PURE__ */ (0, I.jsxs)(HU, {+ /* @__PURE__ */ (0, I.jsxs)(UU, {icon: Xhe,title: "从第一份收藏开始",description: "连接媒体目录,查看入库结果,再打开馆藏。",@@ -48164,7 +48189,7 @@ function gve({ go: e }) {children: "连接媒体目录"})]}),- r ? /* @__PURE__ */ (0, I.jsx)(TV, {+ r ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "error",action: /* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",@@ -48199,7 +48224,7 @@ function gve({ go: e }) {/* @__PURE__ */ (0, I.jsxs)("li", { children: [/* @__PURE__ */ (0, I.jsx)("span", {className: "peach-guide-topic-icon",- children: /* @__PURE__ */ (0, I.jsx)(cge, {+ children: /* @__PURE__ */ (0, I.jsx)(sge, {"aria-hidden": !0,className: "size-5"})@@ -48236,7 +48261,7 @@ function gve({ go: e }) {] })]}),- /* @__PURE__ */ (0, I.jsx)(yU, {+ /* @__PURE__ */ (0, I.jsx)(bU, {summary: "更多接入方式",children: /* @__PURE__ */ (0, I.jsx)("div", {className: "peach-guide-routes",@@ -48296,15 +48321,15 @@ function gve({ go: e }) {]});}-function _ve({ actions: e }) {- let [t, n] = (0, F.useState)(!1), [r, i] = (0, F.useState)(!1), [a, o] = (0, F.useState)("interface"), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(N_e), [d, f] = (0, F.useState)(!1), [p, m] = (0, F.useState)(""), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(!1), y = tH(), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = (0, F.useRef)(0), C = (0, F.useRef)(l);+function vve({ actions: e }) {+ let [t, n] = (0, F.useState)(!1), [r, i] = (0, F.useState)(!1), [a, o] = (0, F.useState)("interface"), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(P_e), [d, f] = (0, F.useState)(!1), [p, m] = (0, F.useState)(""), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(!1), y = nH(), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = (0, F.useRef)(0), C = (0, F.useRef)(l);C.current = l;let w = (0, F.useRef)(0), T = (0, F.useRef)(null), E = (0, F.useRef)(""), D = (0, F.useRef)(!1), O = (0, F.useRef)(() => {}), k = (0, F.useRef)(Promise.resolve()), A = (0, F.useRef)(0), j = (0, F.useRef)(0), M = (0, F.useRef)(!0), ee = (e) => {C.current = e, u(e);}, N = async (e = !0) => {let t = j.current;try {- let n = await F_e();+ let n = await I_e();return !M.current || t !== j.current ? !1 : (ee(n), f(!0), e && m(""), b.current || i(!n.invited && !n.completed), !0);} catch {return M.current && m("未取得账本中的教程状态,请重新读取。"), !1;@@ -48314,7 +48339,7 @@ function _ve({ actions: e }) {let n = ++j.current;A.current += 1, k.current = k.current.then(async () => {try {- let r = await I_e(e.campaign, t);+ let r = await L_e(e.campaign, t);M.current && n === j.current && ee(r);} catch {M.current && (m("教程进度未保存到本机账本,其他设备尚未同步。请重新读取后继续。"), n === j.current && await N(!1));@@ -48343,7 +48368,7 @@ function _ve({ actions: e }) {let i = !1, a = null;return import("./peach-app.guide-driver-BZX0VpRC.js").then(({ createGuideSession: t }) => {i || (a = t({- mountPopover: JU,+ mountPopover: YU,invitation: !0,navigate: e.navigate,previous: () => {},@@ -48382,12 +48407,12 @@ function _ve({ actions: e }) {D.current = !1;});document.addEventListener("input", e), document.addEventListener("change", e);- let r = R_e((e) => {+ let r = z_e((e) => {(async () => {let t = document.activeElement;if (await k.current, !M.current || !await N() || e.invitation) return;re(), T.current = t, g(""), c("");- let r = cU.find((t) => t.id === e.chapter);+ let r = lU.find((t) => t.id === e.chapter);e.reopen ? (i(!1), te({...C.current,invited: !0,@@ -48416,11 +48441,11 @@ function _ve({ actions: e }) {g("请先关闭当前详情或对话框,再开始导览。");return;}- if (t.steps.some((e) => e.surface) && r8()?.miniplayerActive()) {+ if (t.steps.some((e) => e.surface) && i8()?.miniplayerActive()) {g("请先关闭正在播放的小窗,再开始播放器导览。");return;}- let i = r ? P_e(C.current, t) : 0;+ let i = r ? F_e(C.current, t) : 0;if (D.current && t.steps.some((e) => e.route && e.route !== location.pathname)) {g("当前配置表单有编辑内容。请先处理表单,再开启需要切换页面的章节。");return;@@ -48454,7 +48479,7 @@ function _ve({ actions: e }) {}), b.current?.show(t.steps[w.current], w.current, t.steps.length);};b.current = r({- mountPopover: JU,+ mountPopover: YU,navigate: e.navigate,close: () => {re(!0), o(t.kind);@@ -48465,18 +48490,18 @@ function _ve({ actions: e }) {},next: async (e = !1) => {let n = w.current + 1;- if (te(L_e(C.current, t.id, t.steps[w.current].id, n, e), {+ if (te(R_e(C.current, t.id, t.steps[w.current].id, n, e), {action: "step",chapter: t.id,step: t.steps[w.current].id,next: n,skipped: e}), n >= t.steps.length) {- if (t.id === "basics" && uU(C.current, t) && te({+ if (t.id === "basics" && dU(C.current, t) && te({...C.current,completed: !0}, { action: "complete" }), await k.current, a !== S.current) return;- re(!0), o(t.kind), g(uU(C.current, t) ? t.id === "basics" ? C.current.completed ? "快速导览已完成,所有设备的教程入口都会收起。以后可到设置 → Peach 配置 → 应用与维护 → 新手教程重新打开,其余内容按需查看。" : "导览已结束,但完成状态未保存。请重新读取教程状态后再试。" : "这段导览已完成。需要时再了解其他功能。" : "本章已结束,未显示的步骤尚未完成,可以稍后继续。");+ re(!0), o(t.kind), g(dU(C.current, t) ? t.id === "basics" ? C.current.completed ? "快速导览已完成,所有设备的教程入口都会收起。以后可到设置 → Peach 配置 → 应用与维护 → 新手教程重新打开,其余内容按需查看。" : "导览已结束,但完成状态未保存。请重新读取教程状态后再试。" : "这段导览已完成。需要时再了解其他功能。" : "本章已结束,未显示的步骤尚未完成,可以稍后继续。");} else w.current = n, l();}}), l();@@ -48489,11 +48514,11 @@ function _ve({ actions: e }) {O.current = (e, t) => {oe(e, t);};- let se = M_e(location.pathname);+ let se = N_e(location.pathname);return (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [p && !t ? /* @__PURE__ */ (0, I.jsx)("aside", {className: "peach-react peach-guide-invitation","aria-label": "教程同步状态",- children: /* @__PURE__ */ (0, I.jsx)(TV, {+ children: /* @__PURE__ */ (0, I.jsx)(EV, {tone: "error",action: /* @__PURE__ */ (0, I.jsx)(J, {size: "small",@@ -48504,7 +48529,7 @@ function _ve({ actions: e }) {}),children: p})- }) : null, /* @__PURE__ */ (0, I.jsxs)(CV, {+ }) : null, /* @__PURE__ */ (0, I.jsxs)(wV, {isOpen: t,onOpenChange: (e) => {e || ie();@@ -48519,18 +48544,18 @@ function _ve({ actions: e }) {id: "guideTitle",className: "text-title-2-medium text-text-primary",children: "新手教程"- }), /* @__PURE__ */ (0, I.jsx)(kV, {+ }), /* @__PURE__ */ (0, I.jsx)(AV, {label: "关闭新手教程",onPress: ie})]}),/* @__PURE__ */ (0, I.jsx)("div", {className: "peach-guide-tools flex shrink-0 flex-col gap-4 px-6 pt-4 pb-3",- children: /* @__PURE__ */ (0, I.jsx)(LU, {+ children: /* @__PURE__ */ (0, I.jsx)(RU, {"aria-label": "教程路径",name: "guide-path",orientation: "horizontal",- className: RU,+ className: zU,value: a,onChange: (e) => {o(e), c(""), g("");@@ -48541,7 +48566,7 @@ function _ve({ actions: e }) {["settings", "设置导览"]].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)($z, {value: e,- className: zU,+ className: BU,children: t}, e))})@@ -48552,7 +48577,7 @@ function _ve({ actions: e }) {ref: y,className: "peach-guide-body",children: [- p ? /* @__PURE__ */ (0, I.jsx)(TV, {+ p ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "error",className: "mb-4",action: /* @__PURE__ */ (0, I.jsx)(J, {@@ -48564,12 +48589,12 @@ function _ve({ actions: e }) {}),children: p}) : null,- h ? /* @__PURE__ */ (0, I.jsx)(TV, {+ h ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "neutral",className: "mb-4",children: h}) : null,- a === "start" ? /* @__PURE__ */ (0, I.jsx)(gve, { go: ae }) : /* @__PURE__ */ (0, I.jsx)(pve, {+ a === "start" ? /* @__PURE__ */ (0, I.jsx)(_ve, { go: ae }) : /* @__PURE__ */ (0, I.jsx)(mve, {kind: a,query: s,setQuery: c,@@ -48587,15 +48612,15 @@ function _ve({ actions: e }) {})] }), document.body);}// src/react/client-updates.tsx-var vve = 12e4, yve = 15e3, YU = () => document.visibilityState !== "hidden", XU = /* @__PURE__ */ new Set([+var yve = 12e4, bve = 15e3, XU = () => document.visibilityState !== "hidden", ZU = /* @__PURE__ */ new Set(["downloading","verifying","extracting","preparing","restarting","installing"-]), ZU = "/settings/maintenance#releaseUpdates";-function bve() {+]), QU = "/settings/maintenance#releaseUpdates";+function xve() {try {let e = JSON.parse(document.getElementById("peach-client-runtime")?.textContent || "null");return typeof e?.version == "string" && typeof e?.build_id == "string" ? {@@ -48606,23 +48631,23 @@ function bve() {return null;}}-function QU() {- let e = (0, F.useRef)(bve()), [t, n] = (0, F.useState)(null);+function $U() {+ let e = (0, F.useRef)(xve()), [t, n] = (0, F.useState)(null);return (0, F.useEffect)(() => {let t = !1, r, i, a = async () => {- if (t || !YU()) return;+ if (t || !XU()) return;let o = new AbortController();i = o;- let s = setTimeout(() => o.abort(), yve);+ let s = setTimeout(() => o.abort(), bve);o.signal.addEventListener("abort", () => clearTimeout(s), { once: !0 });try {let r = await B("/api/client-updates", o.signal);!t && !o.signal.aborted && typeof r?.runtime?.version == "string" && typeof r.runtime.build_id == "string" && (e.current ??= { ...r.runtime }, n(r));} catch {} finally {- clearTimeout(s), i === o && (i = void 0, !t && YU() && (r = setTimeout(a, vve)));+ clearTimeout(s), i === o && (i = void 0, !t && XU() && (r = setTimeout(a, yve)));}}, o = () => {- clearTimeout(r), i?.abort(), i = void 0, YU() && a();+ clearTimeout(r), i?.abort(), i = void 0, XU() && 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);@@ -48632,12 +48657,12 @@ function QU() {refresh: !!t && !!e.current && (t.runtime.version !== e.current.version || t.runtime.build_id !== e.current.build_id)};}-function xve({ navigate: e }) {- let { snapshot: t, refresh: n } = QU(), [r, i] = (0, F.useState)(""), a = document.querySelector("[data-network-banner]");+function Sve({ navigate: e }) {+ let { snapshot: t, refresh: n } = $U(), [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" : XU.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" || XU.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@@ -48660,22 +48685,22 @@ function xve({ 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)(AH, {variant: "secondary",size: "small",onClick: () => window.location.reload(),"data-copy-key": "clientUpdates.refresh.action",children: "刷新页面"- }) : /* @__PURE__ */ (0, I.jsx)(kH, {+ }) : /* @__PURE__ */ (0, I.jsx)(AH, {variant: "secondary",size: "small",- href: ZU,+ href: QU,onClick: (t) => {- t.button !== 0 || t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || (t.preventDefault(), e(ZU));+ t.button !== 0 || t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || (t.preventDefault(), e(QU));},"data-copy-key": `clientUpdates.${l}.action`,children: l === "preparing" ? "查看进度" : "查看更新"- }), /* @__PURE__ */ (0, I.jsx)(kH, {+ }), /* @__PURE__ */ (0, I.jsx)(AH, {variant: "secondary",size: "small",onClick: () => i(d),@@ -48686,8 +48711,8 @@ function xve({ navigate: e }) {}, d), a);}// src/react/router/pages/settings.tsx-function Sve() {- let e = (0, F.useContext)(gG), { pathname: t } = Qd();+function Cve() {+ let e = (0, F.useContext)(_G), { pathname: t } = Qd();return (0, F.useEffect)(() => {e?.openSettings?.(jf(t));}, [e, t]), (0, F.useEffect)(() => () => {@@ -48697,7 +48722,7 @@ function Sve() {}, [e]), null;}// src/junk-queue.ts-var $U = [+var eW = [["","全部",@@ -48733,40 +48758,40 @@ var $U = ["其它","hard-drive"]-], Cve = (e) => $U.find(([t]) => t === e)?.[0] ?? "";-function eW(e) {+], wve = (e) => eW.find(([t]) => t === e)?.[0] ?? "";+function tW(e) {let t = new URLSearchParams(e);return {- kind: Cve(t.get("type")),+ kind: wve(t.get("type")),view: t.get("view") === "dismissed" ? "dismissed" : "pending"};}-function tW(e = "", t = "pending") {+function nW(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 nW(e) {+function rW(e) {return e === "dismissed" ? {view: "pending",label: "返回待判断",glyph: "rotate-ccw",- href: tW("", "pending")+ href: nW("", "pending")} : {view: "dismissed",label: "已排除",glyph: "eye-off",- href: tW("", "dismissed")+ href: nW("", "dismissed")};}-var rW = (e) => e === "dismissed" ? "已排除" : "待判断", iW = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;-function wve({ kind: e, view: t }) {- let n = $U.map(([n, r, i]) => `<a href="${tW(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${iW(i)}${z(r)}</a>`).join(""), r = nW(t);- return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${Fs(rW(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\"" : ""}>${iW(r.glyph)}${r.label}</a></nav></div></div></div>`;+var iW = (e) => e === "dismissed" ? "已排除" : "待判断", aW = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;+function Tve({ kind: e, view: t }) {+ let n = eW.map(([n, r, i]) => `<a href="${nW(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${aW(i)}${z(r)}</a>`).join(""), r = rW(t);+ return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${Fs(iW(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\"" : ""}>${aW(r.glyph)}${r.label}</a></nav></div></div></div>`;}// src/react/boardui/utils/use-dismiss-on-outside-press.ts-function Tve(e, t, n) {+function Eve(e, t, n) {(0, F.useEffect)(() => {if (!e) return;let r = (e) => {@@ -48780,7 +48805,7 @@ function Tve(e, t, n) {n]);}-function Eve(e, t) {+function Dve(e, t) {let n = (0, F.useRef)(!1);return (0, F.useEffect)(() => {if (!e) return;@@ -48793,11 +48818,11 @@ function Eve(e, t) {}, [e, t]), (e) => e && n.current ? (n.current = !1, !1) : !0;}// src/react/boardui/components/base/select/select.tsx-var aW = (0, F.createContext)("md");-function oW({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {+var oW = (0, F.createContext)("md");+function sW({ 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);- Tve(d, () => f(!1), [l, u]);- let p = Eve(d, l);+ Eve(d, () => f(!1), [l, u]);+ let p = Dve(d, l);return /* @__PURE__ */ (0, I.jsx)(dme, {ref: s,...c,@@ -48810,16 +48835,16 @@ function oW({ className: e, triggerClassName: t, popoverClassName: n, size: r =children: [/* @__PURE__ */ (0, I.jsx)(mme, {className: q("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),children: o- }), /* @__PURE__ */ (0, I.jsx)(vge, { className: q("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]+ }), /* @__PURE__ */ (0, I.jsx)(_ge, { className: q("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]}), /* @__PURE__ */ (0, I.jsx)(Mz, {ref: u,isNonModal: !0,offset: 4,- className: q(xge, qV, "p-2", n),+ className: q(bge, JV, "p-2", n),children: /* @__PURE__ */ (0, I.jsx)(Npe, {items: a,- className: q(Sge, "max-h-[240px] overflow-auto"),- children: /* @__PURE__ */ (0, I.jsx)(aW.Provider, {+ className: q(xge, "max-h-[240px] overflow-auto"),+ children: /* @__PURE__ */ (0, I.jsx)(oW.Provider, {value: r,children: i})@@ -48827,16 +48852,16 @@ function oW({ className: e, triggerClassName: t, popoverClassName: n, size: r =})] })});}-function sW({ className: e, children: t, ...n }) {- let r = (0, F.useContext)(aW);+function cW({ className: e, children: t, ...n }) {+ let r = (0, F.useContext)(oW);return /* @__PURE__ */ (0, I.jsx)(Ipe, {...n,- className: (t) => q(JV, 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) => q(YV, 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 cW = eL({+var lW = eL({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",@@ -48855,15 +48880,15 @@ var cW = eL({soft: "bg-background-secondary-default text-text-secondary"}});-function lW({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {+function uW({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {return /* @__PURE__ */ (0, I.jsx)("span", {ref: r,- className: q(cW.base, cW.variant[e], cW.color[t], n),+ className: q(lW.base, lW.variant[e], lW.color[t], n),...i});}// src/react/components/art-slot.tsx-function uW({ artwork: e, identity: t = e.html, relayout: n }) {+function dW({ artwork: e, identity: t = e.html, relayout: n }) {let [r, i] = (0, F.useState)({identity: t,artwork: e@@ -48882,7 +48907,7 @@ function uW({ artwork: e, identity: t = e.html, relayout: n }) {});}// src/react/activity/downloads-panel.tsx-var dW = "/api/downloads", fW = ["downloads"], Dve = "/api/downloads/cancel", Ove = "/api/downloads/postprocess", pW = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, kve = {+var fW = "/api/downloads", pW = ["downloads"], Ove = "/api/downloads/cancel", kve = "/api/downloads/postprocess", mW = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, Ave = {ingested: "lime",failed: "rose",cancelled: "neutral",@@ -48891,21 +48916,21 @@ var dW = "/api/downloads", fW = ["downloads"], Dve = "/api/downloads/cancel", Ovremote_done: "lime",landed: "lime",submitted: "neutral"-}, mW = (e) => {+}, hW = (e) => {let t = e.display_code || e.code || "", { title: n } = sL({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}`;-}, hW = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "", Ave = (e) => (e.postprocess_detail || "").replace("正片已绑定", "已确认主视频对应的作品").replace("整理跳过:", "未整理文件:");-function jve() {+}, gW = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "", jve = (e) => (e.postprocess_detail || "").replace("正片已绑定", "已确认主视频对应的作品").replace("整理跳过:", "未整理文件:");+function Mve() {let e = (0, F.useId)(), t = It({- queryKey: [...fW, "pages"],+ queryKey: [...pW, "pages"],initialPageParam: null,- queryFn: ({ signal: e, pageParam: t }) => B(`${dW}?limit=20${t === null ? "" : `&before_id=${t}`}`, e),+ queryFn: ({ signal: e, pageParam: t }) => B(`${fW}?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) => pW(e) === 5e3) ? 5e3 : 3e4+ refetchInterval: (e) => e.state.data?.pages.some((e) => mW(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",@@ -48917,14 +48942,14 @@ function jve() {className: "text-title-2-medium text-text-primary",children: "云下载"}),- t.error ? /* @__PURE__ */ (0, I.jsx)(TV, {+ t.error ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "error",children: cr(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)(Mve, {+ children: r.map((e) => /* @__PURE__ */ (0, I.jsx)(Nve, {task: e,writable: n[0]?.available ?? !1}, e.id))@@ -48934,7 +48959,7 @@ function jve() {size: "small",leadingIcon: RB,className: "self-start",- ...AV(t.isFetchingNextPage),+ ...jV(t.isFetchingNextPage),onClick: () => {t.isFetching || t.fetchNextPage();},@@ -48943,16 +48968,16 @@ function jve() {]});}-function Mve({ task: e, writable: t }) {+function Nve({ task: e, writable: t }) {wL();- let n = ae(), r = AH(), [i, a] = (0, F.useState)(!1), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = hW(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 = [+ let n = ae(), r = jH(), [i, a] = (0, F.useState)(!1), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = gW(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,SL(e.submitted_at)].filter(Boolean).join(" · "), h = () => {- n.invalidateQueries({ queryKey: fW });+ n.invalidateQueries({ queryKey: pW });}, g = () => {- r.run("cancel", (t) => V(Dve, { id: e.id }, "POST", t), h);+ r.run("cancel", (t) => V(Ove, { id: e.id }, "POST", t), h);}, _ = () => {let t = {magnet: e.source_uri,@@ -48962,16 +48987,16 @@ function Mve({ task: e, writable: t }) {title: e.title,origin: e.origin};- r.run("resubmit", (e) => V(dW, t, "POST", e), h);+ r.run("resubmit", (e) => V(fW, t, "POST", e), h);}, v = () => {navigator.clipboard.writeText(e.source_uri).then(() => a(!0), () => a(!1));}, y = () => {- r.run("postprocess", (t) => V(Ove, { id: e.id }, "POST", t), h);+ r.run("postprocess", (t) => V(kve, { id: e.id }, "POST", t), h);};return /* @__PURE__ */ (0, I.jsxs)("li", {"data-download-state": e.state,"data-download-id": e.id,- className: HH({+ className: UH({padding: "none",className: p ? "flex flex-col border-border-error-default" : "flex flex-col"}),@@ -48988,7 +49013,7 @@ function Mve({ task: e, writable: t }) {"data-media-nopic": "",children: "无封面"}),- u?.has_cover ? /* @__PURE__ */ (0, I.jsx)(uW, {+ u?.has_cover ? /* @__PURE__ */ (0, I.jsx)(dW, {artwork: {kind: "cover",html: xo(u, "big")@@ -48998,7 +49023,7 @@ function Mve({ task: e, writable: t }) {f ? /* @__PURE__ */ (0, I.jsx)("a", {"data-download-cover-link": "",href: f,- "aria-label": `打开作品详情:${mW(e)}`,+ "aria-label": `打开作品详情:${hW(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]@@ -49009,19 +49034,19 @@ function Mve({ 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: mW(e),+ title: hW(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: mW(e)- }) : mW(e)+ children: hW(e)+ }) : hW(e)}), /* @__PURE__ */ (0, I.jsxs)("div", {className: "flex shrink-0 items-center gap-2",- children: [/* @__PURE__ */ (0, I.jsx)(lW, {- color: kve[e.state] ?? "neutral",+ children: [/* @__PURE__ */ (0, I.jsx)(uW, {+ color: Ave[e.state] ?? "neutral",children: e.state_label- }), e.state === "ingested" ? /* @__PURE__ */ (0, I.jsx)(lW, {+ }), e.state === "ingested" ? /* @__PURE__ */ (0, I.jsx)(uW, {color: e.postprocess_state === "complete" ? "lime" : e.postprocess_state === "failed" ? "rose" : e.postprocess_state === "running" ? "blue" : "neutral",children: e.postprocess_label}) : null]@@ -49031,7 +49056,7 @@ function Mve({ 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)(CU, {+ children: /* @__PURE__ */ (0, I.jsx)(wU, {source: e.provider,label: e.provider_label})@@ -49058,7 +49083,7 @@ function Mve({ task: e, writable: t }) {children: [d.map((e) => tn("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)(GH, {+ e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, I.jsx)(KH, {label: "远端下载进度",value: Math.round(e.progress * 100),max: 100@@ -49068,7 +49093,7 @@ function Mve({ task: e, writable: t }) {title: e.ledger_path,children: e.ledger_path}) : null,- r.error ? /* @__PURE__ */ (0, I.jsx)(_U, { 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",@@ -49093,21 +49118,21 @@ function Mve({ task: e, writable: t }) {e.cancellable ? /* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",size: "small",- ...AV(r.busy === "cancel"),+ ...jV(r.busy === "cancel"),onClick: g,children: "取消"}) : null,e.resubmittable ? /* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",size: "small",- ...AV(r.busy === "resubmit"),+ ...jV(r.busy === "resubmit"),onClick: _,children: "重新提交"}) : null,e.postprocess_retryable ? /* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",size: "small",- ...AV(r.busy === "postprocess"),+ ...jV(r.busy === "postprocess"),onClick: y,children: "重试入库后整理"}) : null@@ -49122,33 +49147,33 @@ function Mve({ 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: mW(e)+ children: hW(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 || Ave(e)+ children: l || jve(e)})}) : null]});}// src/react/activity/work-code.ts-var gW = (e) => (e || "").toUpperCase().replace(/[^A-Z0-9]/g, ""), _W = (e, t) => !!gW(e) && gW(e) === gW(t);+var _W = (e) => (e || "").toUpperCase().replace(/[^A-Z0-9]/g, ""), vW = (e, t) => !!_W(e) && _W(e) === _W(t);// src/react/activity/resource-search.tsx-function vW({ className: e }) {+function yW({ className: e }) {return /* @__PURE__ */ (0, I.jsx)("span", {className: e,"aria-hidden": !0,dangerouslySetInnerHTML: { __html: zs("") }});}-function yW(e) {+function bW(e) {return ["中字", "中文字幕"].includes(e?.trim() ?? "") ? "chinese" : ["无码", "无码破解"].includes(e?.trim() ?? "") ? "uncensored" : "quality";}-function bW({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {- let [a, o] = (0, F.useState)(e), [s, c] = (0, F.useState)(() => yW(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 = AH(), b = (0, F.useRef)(null);+function xW({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {+ let [a, o] = (0, F.useState)(e), [s, c] = (0, F.useState)(() => bW(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 = jH(), b = (0, F.useRef)(null);(0, F.useEffect)(() => () => b.current?.abort(), []);let x = () => {if (!a.trim() || y.busy) return;@@ -49164,7 +49189,7 @@ function bW({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {let e = new AbortController();b.current = e, B(`/api/items?jav=1&q=${encodeURIComponent(t)}&limit=10`, e.signal).then((n) => {if (e.signal.aborted) return;- let r = (n.items || []).find((e) => _W(e.code, t));+ let r = (n.items || []).find((e) => vW(e.code, t));i(r ? {code: r.code,title: String(r.catalog_title || r.name || ""),@@ -49185,18 +49210,18 @@ function bW({ 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)(gU, { children: [+ t ? /* @__PURE__ */ (0, I.jsxs)(_U, { children: ["版本目标:",t,"。可在下方调整搜索优先项;完整度与水印需要逐条复核。"] }) : null,- /* @__PURE__ */ (0, I.jsx)(SV, {+ /* @__PURE__ */ (0, I.jsx)(CV, {label: "按番号查找资源",value: a,maxLength: 80,placeholder: "输入番号,按回车搜索",enterKeyHint: "search",- leadingIcon: y.busy ? vW : uV,+ leadingIcon: y.busy ? yW : uV,isReadOnly: !!y.busy,"aria-busy": !!y.busy,onChange: o,@@ -49206,7 +49231,7 @@ function bW({ 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)(vU, { children: "优先寻找" }), /* @__PURE__ */ (0, I.jsxs)(oW, {+ children: [/* @__PURE__ */ (0, I.jsx)(yU, { children: "优先寻找" }), /* @__PURE__ */ (0, I.jsxs)(sW, {"aria-label": "优先寻找",selectedKey: s,isDisabled: !!y.busy,@@ -49214,15 +49239,15 @@ function bW({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {e !== null && c(String(e));},children: [- /* @__PURE__ */ (0, I.jsx)(sW, {+ /* @__PURE__ */ (0, I.jsx)(cW, {id: "quality",children: "高清"}),- /* @__PURE__ */ (0, I.jsx)(sW, {+ /* @__PURE__ */ (0, I.jsx)(cW, {id: "chinese",children: "中字"}),- /* @__PURE__ */ (0, I.jsx)(sW, {+ /* @__PURE__ */ (0, I.jsx)(cW, {id: "uncensored",children: "无码"})@@ -49231,32 +49256,32 @@ function bW({ 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)(SV, {+ children: [/* @__PURE__ */ (0, I.jsx)(CV, {label: "最小体积(GiB)",inputMode: "decimal",value: l,onChange: u- }), /* @__PURE__ */ (0, I.jsx)(SV, {+ }), /* @__PURE__ */ (0, I.jsx)(CV, {label: "最大体积(GiB)",inputMode: "decimal",value: d,onChange: f})]}),- y.busy ? /* @__PURE__ */ (0, I.jsx)(gU, {+ y.busy ? /* @__PURE__ */ (0, I.jsx)(_U, {role: "status",children: "正在搜索资源"}) : null,- y.error ? /* @__PURE__ */ (0, I.jsx)(_U, { children: y.error }) : null,- p?.error ? /* @__PURE__ */ (0, I.jsx)(gU, {+ 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)(gU, {+ p?.state === "ready" && !p.items.length ? /* @__PURE__ */ (0, I.jsx)(_U, {role: "status",children: "没有符合条件的资源。"}) : null,- p?.warnings.map((e) => /* @__PURE__ */ (0, I.jsx)(gU, { 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", {@@ -49266,7 +49291,7 @@ function bW({ 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)(gU, { 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` : "",@@ -49290,19 +49315,19 @@ function bW({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {});}// src/react/activity/cloud-download-dialog.tsx-var xW = {+var SW = {submitted: "已提交离线下载,进度在任务中心",adopted: "这个磁力已有任务,没有重复提交",adopted_remote: "网盘中已有相同的下载任务,Peach 已开始跟踪进度"};-function SW({ prefill: e, close: t, receipt: n, provider: r }) {- return /* @__PURE__ */ (0, I.jsx)(CV, {+function CW({ prefill: e, close: t, receipt: n, provider: r }) {+ return /* @__PURE__ */ (0, I.jsx)(wV, {isOpen: !!e,onOpenChange: (e) => {e || t();},width: "form",- children: e ? /* @__PURE__ */ (0, I.jsx)(CW, {+ children: e ? /* @__PURE__ */ (0, I.jsx)(wW, {prefill: e,close: t,receipt: n,@@ -49310,11 +49335,11 @@ function SW({ prefill: e, close: t, receipt: n, provider: r }) {}) : null});}-function CW({ prefill: e, close: t, receipt: n, provider: r }) {+function wW({ prefill: e, close: t, receipt: n, provider: r }) {let i = Pt({- queryKey: fW,- queryFn: ({ signal: e }) => B(`${dW}?limit=50`, e),- refetchInterval: (e) => pW(e.state.data)+ queryKey: pW,+ queryFn: ({ signal: e }) => B(`${fW}?limit=50`, e),+ refetchInterval: (e) => mW(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)(sR, {@@ -49329,7 +49354,7 @@ function CW({ prefill: e, close: t, receipt: n, provider: r }) {onClick: t})]});- return a ? /* @__PURE__ */ (0, I.jsx)(wW, {+ return a ? /* @__PURE__ */ (0, I.jsx)(TW, {header: o,snapshot: a,prefill: e,@@ -49342,7 +49367,7 @@ function CW({ 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)(TV, {+ children: i.error ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "error",children: cr(i.error)}) : null@@ -49358,8 +49383,8 @@ function CW({ prefill: e, close: t, receipt: n, provider: r }) {]});}-function wW({ 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 = AH(), C = (0, F.useRef)(null), w = (e) => {+function TW({ 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 = jH(), C = (0, F.useRef)(null), w = (e) => {u(e), g(s.find((t) => t.key === e)?.target ?? "");};return /* @__PURE__ */ (0, I.jsxs)("form", {@@ -49375,14 +49400,14 @@ function wW({ header: e, snapshot: t, prefill: n, close: r, receipt: i, providertitle: _?.title,origin: _?.origin};- b(""), S.run("submit", (e) => V(dW, t, "POST", e), (e) => {- o.invalidateQueries({ queryKey: fW });- let t = xW[e.outcome];+ b(""), S.run("submit", (e) => V(fW, t, "POST", e), (e) => {+ o.invalidateQueries({ queryKey: pW });+ let t = SW[e.outcome];if (e.ok && t) {i(t), r();return;}- let n = hW(e.task);+ let n = gW(e.task);b(e.outcome === "refused" ? "这个资源被判为违规,不再提交。" : n ? `提交没有成功:${n}` : "提交没有成功。");});},@@ -49406,7 +49431,7 @@ function wW({ header: e, snapshot: t, prefill: n, close: r, receipt: i, providerchildren: [/* @__PURE__ */ (0, I.jsx)("p", {className: "break-words text-body-medium text-text-primary",children: _ ? [_.code, _.title].filter(Boolean).join(" · ") : "作品资料未取得"- }), _ ? /* @__PURE__ */ (0, I.jsx)(gU, { children: [+ }), _ ? /* @__PURE__ */ (0, I.jsx)(_U, { children: [_.performers,_.studio,_.release_date,@@ -49414,22 +49439,22 @@ function wW({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider].filter(Boolean).join(" · ") }) : null]})]}) : null,- /* @__PURE__ */ (0, I.jsx)(bW, {+ /* @__PURE__ */ (0, I.jsx)(xW, {initialCode: n.code ?? "",reason: n.searchReason,onSearch: (e) => {- _W(e, _?.code) || (v(_W(e, n.code) ? n : null), f("")), m(e);+ vW(e, _?.code) || (v(vW(e, n.code) ? n : null), f("")), m(e);},- onWork: (e) => v((t) => e ? _W(t?.code, e.code) ? {+ onWork: (e) => v((t) => e ? vW(t?.code, e.code) ? {...t,...e,origin: t?.origin || e.origin- } : e : _W(t?.code, n.code) ? t : null),+ } : e : vW(t?.code, n.code) ? t : null),choose: (e, t) => {f(e), m(t), C.current?.focus();}}),- /* @__PURE__ */ (0, I.jsx)(SV, {+ /* @__PURE__ */ (0, I.jsx)(CV, {ref: C,label: "磁力链接",placeholder: "magnet:?xt=urn:btih:…",@@ -49441,38 +49466,38 @@ function wW({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider/* @__PURE__ */ (0, I.jsxs)("div", {className: "flex flex-col gap-1",children: [- /* @__PURE__ */ (0, I.jsx)(vU, { children: "下载到" }),- /* @__PURE__ */ (0, I.jsx)(oW, {+ /* @__PURE__ */ (0, I.jsx)(yU, { children: "下载到" }),+ /* @__PURE__ */ (0, I.jsx)(sW, {"aria-label": "下载到",selectedKey: l || null,isDisabled: !s.length,onSelectionChange: (e) => {e !== null && w(String(e));},- children: s.map((e) => /* @__PURE__ */ (0, I.jsx)(sW, {+ children: s.map((e) => /* @__PURE__ */ (0, I.jsx)(cW, {id: e.key,textValue: e.label,- children: /* @__PURE__ */ (0, I.jsx)(CU, {+ children: /* @__PURE__ */ (0, I.jsx)(wU, {source: e.key,label: e.label})}, e.key))}),- l === "115" ? /* @__PURE__ */ (0, I.jsx)(gU, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null+ l === "115" ? /* @__PURE__ */ (0, I.jsx)(_U, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null]}),- t.available ? null : /* @__PURE__ */ (0, I.jsx)(TV, {+ t.available ? null : /* @__PURE__ */ (0, I.jsx)(EV, {tone: "neutral",children: "云下载只在允许修改数据库的设备上可用。"}),- s.length ? null : /* @__PURE__ */ (0, I.jsxs)(TV, {+ s.length ? null : /* @__PURE__ */ (0, I.jsxs)(EV, {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)(SV, {+ /* @__PURE__ */ (0, I.jsx)(CV, {label: "目标目录",placeholder: "/云下载",autoComplete: "off",@@ -49480,17 +49505,17 @@ function wW({ header: e, snapshot: t, prefill: n, close: r, receipt: i, providervalue: h,onChange: g}),- n.code ? null : /* @__PURE__ */ (0, I.jsx)(SV, {+ n.code ? null : /* @__PURE__ */ (0, I.jsx)(CV, {label: "番号",placeholder: "可不填",autoComplete: "off",maxLength: 60,value: p,onChange: (e) => {- m(e), _W(e, _?.code) || v(null);+ m(e), vW(e, _?.code) || v(null);}}),- y || S.error ? /* @__PURE__ */ (0, I.jsx)(_U, { children: y || S.error }) : null+ y || S.error ? /* @__PURE__ */ (0, I.jsx)(vU, { children: y || S.error }) : null]}),/* @__PURE__ */ (0, I.jsxs)("div", {@@ -49502,7 +49527,7 @@ function wW({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider}), /* @__PURE__ */ (0, I.jsx)(J, {type: "submit",disabled: !d.trim() || !x,- ...AV(S.busy === "submit"),+ ...jV(S.busy === "submit"),children: "提交下载"})]})@@ -49510,18 +49535,18 @@ function wW({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider});}// src/react/wants/wants.ts-var TW = "/api/wants", EW = ["wants"], DW = (e) => [+var EW = "/api/wants", DW = ["wants"], OW = (e) => ["wants","follow",e-], OW = [+], kW = [["searching", "待找"],["unreleased", "未发售"],["given_up", "暂时放弃"],["acquired", "已入库"]-], kW = (e) => B(TW, e);-function AW(e, t) {- H.setQueryData(EW, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {+], AW = (e) => B(EW, e);+function jW(e, t) {+ H.setQueryData(DW, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {...n,items: n.items.map((n) => n.id === e ? {...n,@@ -49529,27 +49554,27 @@ function AW(e, t) {} : n)} : n);}-var jW = (e, t) => B(`${TW}?follow=${encodeURIComponent(e)}`, t), MW = (e, t) => V(TW, {+var MW = (e, t) => B(`${EW}?follow=${encodeURIComponent(e)}`, t), NW = (e, t) => V(EW, {action: "add",...e-}, "POST", t), NW = (e, t) => V(TW, {+}, "POST", t), PW = (e, t) => V(EW, {action: "remove",ids: e-}, "POST", t), PW = (e, t) => V(TW, {+}, "POST", t), FW = (e, t) => V(EW, {action: "reset",ids: e-}, "POST", t), FW = () => H.invalidateQueries({ queryKey: EW }), IW = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;-function LW(e) {+}, "POST", t), IW = () => H.invalidateQueries({ queryKey: DW }), LW = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;+function RW(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.ts-var RW = (e, t = "taste", n = "desc") => [+var zW = (e, t = "taste", n = "desc") => ["jav-discoveries",e,t,n];-function zW(e, t, n = {}) {+function BW(e, t, n = {}) {let r = new URLSearchParams({scope: e,limit: "100",@@ -49558,7 +49583,7 @@ function zW(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"), B(`/api/jav/discoveries?${r}`, t);}-function BW(e, t, n) {+function VW(e, t, n) {let r = Co({...e,is_jav: !0@@ -49567,29 +49592,29 @@ function BW(e, t, n) {let i = z(uo(e));return xo(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 VW(e, t) {+async function HW(e, t) {e === "wants" ? await H.ensureQueryData({- queryKey: EW,- queryFn: () => kW(t),+ queryKey: DW,+ queryFn: () => AW(t),staleTime: 3e4,revalidateIfStale: !0}) : e === "discover" && await H.ensureQueryData({- queryKey: RW("external"),- queryFn: () => zW("external", t),+ queryKey: zW("external"),+ queryFn: () => BW("external", t),staleTime: 3e4,revalidateIfStale: !0});}// src/react/components/board-tabs.tsx-function HW({ value: e }) {+function UW({ 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 UW = "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 WW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5" }) {+var WW = "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 GW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5" }) {let a = (0, F.useRef)(null), o = AL(a);return (0, F.useLayoutEffect)(() => {let e = a.current;@@ -49614,7 +49639,7 @@ function WW({ 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 ? OV(e.symbol) : null, i = e.value === t;+ let n = e.symbol ? kV(e.symbol) : null, i = e.value === t;return /* @__PURE__ */ (0, I.jsxs)("button", {type: "button",role: "tab",@@ -49623,7 +49648,7 @@ function WW({ 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: UW,+ className: WW,onClick: () => {i || r(e.value);},@@ -49633,7 +49658,7 @@ function WW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"});}// src/react/jav/jav-header.tsx-function GW({ tab: e, navigate: t, find: n }) {+function KW({ 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", {@@ -49647,45 +49672,45 @@ function GW({ tab: e, navigate: t, find: n }) {onClick: n,children: "查找资源"})]- }), /* @__PURE__ */ (0, I.jsx)(WW, {- tabs: QH.map(([e, t]) => ({+ }), /* @__PURE__ */ (0, I.jsx)(GW, {+ tabs: $H.map(([e, t]) => ({value: e,label: t})),value: e,label: "JAV 分区",className: "",- onChange: (e) => t(eU(e))+ onChange: (e) => t(tU(e))})]});}-function KW({ navigate: e, receipt: t }) {+function qW({ navigate: e, receipt: t }) {let [n, r] = (0, F.useState)(null);- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(GW, {+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(KW, {tab: "library",navigate: e,find: () => r({})- }), /* @__PURE__ */ (0, I.jsx)(SW, {+ }), /* @__PURE__ */ (0, I.jsx)(CW, {prefill: n,close: () => r(null),receipt: t})] });}// src/react/router/pages/catalog.tsx-var qW = () => uu, JW = W.navigation.seq, YW = W.navigation.openEpoch, XW = W.navigation.location.pathname, ZW = {- seq: JW,+var JW = () => uu, YW = W.navigation.seq, XW = W.navigation.openEpoch, ZW = W.navigation.location.pathname, QW = {+ seq: YW,claimed: !0,- from: XW+ from: ZW};W.listen((e) => {- ZW = {+ QW = {seq: e.seq,- claimed: e.openEpoch === YW,- from: XW- }, YW = e.openEpoch, XW = e.location.pathname;+ claimed: e.openEpoch === XW,+ from: ZW+ }, XW = e.openEpoch, ZW = e.location.pathname;});-var QW = !1;-function $W(e) {+var $W = !1;+function eG(e) {let { seq: t, openEpoch: n, location: r } = W.navigation, i = Rf(r.pathname), a = Op() ?? r, o = U ?? {};return {seq: t,@@ -49697,7 +49722,7 @@ function $W(e) {opened: e};}-function eG(e, t, n, r) {+function tG(e, t, n, r) {let i = { ...U }, a = om("catalog");if (a) return { ...a };if (e === "/trash") return {@@ -49734,14 +49759,14 @@ function eG(e, t, n, r) {folder_recursive: o.get("folder_recursive") === "0" ? "0" : ""};}-function tG(e) {+function nG(e) {let t = W.navigation.seq;am("catalog", { ...U });let n = e(), r = () => W.navigation.seq === t, i = () => document.querySelector("#grid");lm(r, i(), { pending: !0 }), Promise.resolve(n).then(() => lm(r, i()));}-function nG(e, t) {- let n = { ...e }, r = $W(n.opened);+function rG(e, t) {+ let n = { ...e }, r = eG(n.opened);Object.assign(e, r);let i = t.catalog;if (!i || r.opens === 0) return;@@ -49753,39 +49778,39 @@ function nG(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;- tG(() => i.load());+ nG(() => i.load());return;}- r.epoch !== n.epoch && (a = W.navigation.action === "POP" && ZW.from !== "/");+ r.epoch !== n.epoch && (a = W.navigation.action === "POP" && QW.from !== "/");}let { pathname: o, search: s } = W.navigation.location;if (o === "/" && new URLSearchParams(s).get("state") === "ads") {- let { kind: e, view: t } = eW(s);- QW = !0, Ep(tW(e, t), { replace: !0 });+ let { kind: e, view: t } = tW(s);+ $W = !0, Ep(nW(e, t), { replace: !0 });return;}- let c = QW;- QW = !1, a &&= o === "/" && !sm(), e.opened = !0, yu({ state: eG(o, s, a, i) }), tG(() => i.open(o, {+ let c = $W;+ $W = !1, a &&= o === "/" && !sm(), e.opened = !0, yu({ state: tG(o, s, a, i) }), nG(() => i.open(o, {entering: a,retitle: c}));}-function rG() {- let e = (0, F.useContext)(gG), t = hG(), n = (0, F.useSyncExternalStore)(xu, qW), r = Qd(), i = (0, F.useRef)(null), a = (0, F.useRef)({+function iG() {+ let e = (0, F.useContext)(_G), t = gG(), n = (0, F.useSyncExternalStore)(xu, JW), r = Qd(), 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 = $W(!Rf(W.navigation.location.pathname));- return !t.covered && t.opens > 0 && (QW || ZW.seq === JW ? t.opens = -1 : ZW.claimed ? t.seq = -1 : t.epoch = -1), i.current = t, () => {+ let t = eG(!Rf(W.navigation.location.pathname));+ return !t.covered && t.opens > 0 && ($W || QW.seq === YW ? t.opens = -1 : QW.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 && nG(i.current, e);+ t.queued = !1, t.mounted && i.current && rG(i.current, e);}));}, [t,@@ -49794,7 +49819,7 @@ function rG() {e]), null;}-function iG() {+function aG() {let { pathname: e } = Qd();return (0, F.useLayoutEffect)(() => {if (e !== "/wall") return;@@ -49807,19 +49832,19 @@ function iG() {e.inert = n[t] || !1;});};- }, [e]), Rf(e) && !Lf(e) ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(rG, {}, e === "/junk-files" ? "/junk-files" : "/"), An(e) ? /* @__PURE__ */ (0, I.jsx)(AG, {}) : null] });+ }, [e]), Rf(e) && !Lf(e) ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(iG, {}, e === "/junk-files" ? "/junk-files" : "/"), An(e) ? /* @__PURE__ */ (0, I.jsx)(AG, {}) : null] });}-function aG() {- let e = (0, F.useContext)(gG), t = document.getElementById("javLibraryHeader");- return t && e ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(KW, {+function oG() {+ let e = (0, F.useContext)(_G), t = document.getElementById("javLibraryHeader");+ return t && e ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(qW, {navigate: e.navigate,receipt: (t) => e.receipt(t)}), t) : null;}// src/react/router/pages/overlay.tsx-var oG = () => uu, sG = () => du;-function cG() {- let e = (0, F.useContext)(gG), t = (0, F.useSyncExternalStore)(xu, sG), n = (0, F.useSyncExternalStore)(xu, oG);+var sG = () => uu, cG = () => du;+function lG() {+ let e = (0, F.useContext)(_G), t = (0, F.useSyncExternalStore)(xu, cG), n = (0, F.useSyncExternalStore)(xu, sG);return (0, F.useEffect)(() => {if (!t || !n) return;let r = !0;@@ -49834,8 +49859,8 @@ function cG() {e]), null;}-function lG(e, t = !1) {- let n = (0, F.useSyncExternalStore)(xu, oG), r = (0, F.useRef)(void 0);+function uG(e, t = !1) {+ let n = (0, F.useSyncExternalStore)(xu, sG), r = (0, F.useRef)(void 0);if (r.current === void 0) {let { claimed: e } = W.navigation;r.current = uu === 0 || Dp() ? "boot" : e && !t ? null : "history";@@ -49854,11 +49879,11 @@ function lG(e, t = !1) {}));}, [n]);}-function uG() {- let e = (0, F.useContext)(gG), t = (0, F.useRef)(e);+function dG() {+ let e = (0, F.useContext)(_G), t = (0, F.useRef)(e);return (0, F.useLayoutEffect)(() => {t.current = e;- }, [e]), lG((t) => {+ }, [e]), uG((t) => {let n = W.navigation.location, { pathname: r, search: i } = Af(n.pathname) && Nf(n.state) || n, a = Lf(r, i);e && a && (Uf(), t || Wf(W.navigation.location.state), e.openOverlay(a));}, !0), (0, F.useEffect)(() => () => {@@ -49867,8 +49892,8 @@ function uG() {});}, []), null;}-function dG({ path: e }) {- hG();+function fG({ path: e }) {+ gG();let { location: t, seq: n, action: r } = W.navigation, i = Af(t.pathname) ? Nf(t.state) : null, a = (i || t).pathname + (i || t).search, o = (0, F.useRef)({identity: a,seq: i?.seq ?? n,@@ -49880,24 +49905,24 @@ function dG({ path: e }) {seq: n,navigationSeq: n,settings: !1- }), /* @__PURE__ */ (0, I.jsx)(uG, {}, `${e} ${o.current.seq}`);+ }), /* @__PURE__ */ (0, I.jsx)(dG, {}, `${e} ${o.current.seq}`);}-function fG() {- let e = (0, F.useContext)(gG);- return lG(() => {+function pG() {+ let e = (0, F.useContext)(_G);+ return uG(() => {e?.follow?.ground();}), null;}-function pG() {- return /* @__PURE__ */ (0, I.jsx)(fG, {}, hG());+function mG() {+ return /* @__PURE__ */ (0, I.jsx)(pG, {}, gG());}// src/react/router/router.tsx-var mG = (0, F.createContext)(0), hG = () => (0, F.useContext)(mG), gG = (0, F.createContext)(null);-function _G({ children: e }) {+var hG = (0, F.createContext)(0), gG = () => (0, F.useContext)(hG), _G = (0, F.createContext)(null);+function vG({ children: e }) {let [t, n] = (0, F.useState)(() => W.navigation);return (0, F.useLayoutEffect)(() => (n(W.navigation), W.listen((e) => {(0, Lt.flushSync)(() => n(e));- })), []), /* @__PURE__ */ (0, I.jsx)(mG.Provider, {+ })), []), /* @__PURE__ */ (0, I.jsx)(hG.Provider, {value: t.openEpoch,children: /* @__PURE__ */ (0, I.jsx)(Cf, {location: t.location,@@ -49907,34 +49932,34 @@ function _G({ children: e }) {})});}-function vG({ target: e }) {+function yG({ target: e }) {let t = ef();return (0, F.useLayoutEffect)(() => {e.current = t;}), null;}-function yG(e, t, n) {+function bG(e, t, n) {let r = new URL(e, window.location.href);- N6(r.pathname) ? n(`${r.pathname}${r.search}${r.hash}`) : t.navigate(e);+ P6(r.pathname) ? n(`${r.pathname}${r.search}${r.hash}`) : t.navigate(e);}-function bG() {- let e = (0, F.useContext)(gG), [t, n] = (0, F.useState)(lp), r = (0, F.useRef)(null);+function xG() {+ let e = (0, F.useContext)(_G), [t, n] = (0, F.useState)(lp), r = (0, F.useRef)(null);(0, F.useLayoutEffect)(() => (n(lp()), up((e, t) => {t ? (0, Lt.flushSync)(() => n(e)) : n(e);})), []);let i = (0, F.useMemo)(() => (t) => {- e && r.current && yG(t, e, r.current);+ e && r.current && bG(t, e, r.current);}, [e]);- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(vG, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, I.jsx)(xG, {+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(yG, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, I.jsx)(SG, {entry: t,- children: /* @__PURE__ */ (0, I.jsx)(SG, {+ children: /* @__PURE__ */ (0, I.jsx)(CG, {entry: t,actions: e,go: i})}, t.revision)) : null] });}-var xG = class extends F.Component {+var SG = class extends F.Component {state = { failed: !1 };static getDerivedStateFromError() {return { failed: !0 };@@ -49945,48 +49970,48 @@ var xG = class extends F.Component {render() {return this.state.failed ? null : this.props.children;}-}, SG = (0, F.memo)(function({ entry: e, actions: t, go: n }) {- return q6(e.path) ? (0, Lt.createPortal)(HPe(e.path, e.props, t, n), e.host, String(e.revision)) : null;+}, CG = (0, F.memo)(function({ entry: e, actions: t, go: n }) {+ return J6(e.path) ? (0, Lt.createPortal)(UPe(e.path, e.props, t, n), e.host, String(e.revision)) : null;});-function CG({ children: e }) {+function wG({ children: e }) {let t = Qd();- hG();+ gG();let n = Op(), r = Af(t.pathname) && !Dp() ? Nf(t.state) : null;return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)(wf, {location: n ?? t,children: [- Object.entries(M6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Sf, {+ Object.entries(N6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Sf, {path: e,element: t.element}, e)),- Object.entries(RPe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Sf, {+ Object.entries(zPe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Sf, {path: e,element: t.element}, e)),- Object.entries(P6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Sf, {+ Object.entries(F6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Sf, {path: e,element: t.element}, e)),- Object.entries(L6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Sf, {+ Object.entries(R6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Sf, {path: e,element: t.element}, e)),- Object.entries(z6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Sf, {+ Object.entries(B6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Sf, {path: e,element: t.element}, e)),- K6.map((e) => /* @__PURE__ */ (0, I.jsx)(Sf, {+ q6.map((e) => /* @__PURE__ */ (0, I.jsx)(Sf, {path: e,- element: B6["/"].element+ element: V6["/"].element}, e)),- Object.entries(zPe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Sf, {+ Object.entries(BPe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Sf, {path: e,element: t.element}, e)),Pf.map((e) => /* @__PURE__ */ (0, I.jsx)(Sf, {path: e,- element: e === "/works/:code" ? null : e === "/posts/:id" ? /* @__PURE__ */ (0, I.jsx)(pG, {}) : B6["/"].element+ element: e === "/works/:code" ? null : e === "/posts/:id" ? /* @__PURE__ */ (0, I.jsx)(mG, {}) : V6["/"].element}, e)),kf.map((e) => /* @__PURE__ */ (0, I.jsx)(Sf, {path: e,@@ -50002,7 +50027,7 @@ function CG({ children: e }) {location: r ?? t,children: [Pf.map((e) => /* @__PURE__ */ (0, I.jsx)(Sf, {path: e,- element: /* @__PURE__ */ (0, I.jsx)(dG, { path: e })+ element: /* @__PURE__ */ (0, I.jsx)(fG, { path: e })}, e)), /* @__PURE__ */ (0, I.jsx)(Sf, {path: "*",element: null@@ -50010,29 +50035,29 @@ function CG({ children: e }) {}),/* @__PURE__ */ (0, I.jsxs)(wf, { children: [kf.map((e) => /* @__PURE__ */ (0, I.jsx)(Sf, {path: e,- element: /* @__PURE__ */ (0, I.jsx)(Sve, {})+ element: /* @__PURE__ */ (0, I.jsx)(Cve, {})}, e)), /* @__PURE__ */ (0, I.jsx)(Sf, {path: "*",element: null})] })] });}-function wG({ children: e, actions: t = null, background: n, processing: r = !1 }) {- return /* @__PURE__ */ (0, I.jsxs)(rH, { children: [n, /* @__PURE__ */ (0, I.jsx)(gG.Provider, {+function TG({ children: e, actions: t = null, background: n, processing: r = !1 }) {+ return /* @__PURE__ */ (0, I.jsxs)(iH, { children: [n, /* @__PURE__ */ (0, I.jsx)(_G.Provider, {value: t,- children: /* @__PURE__ */ (0, I.jsxs)(_G, { children: [- /* @__PURE__ */ (0, I.jsx)(bG, {}),- /* @__PURE__ */ (0, I.jsx)(aG, {}),- /* @__PURE__ */ (0, I.jsx)(cG, {}),- r && t ? /* @__PURE__ */ (0, I.jsx)(rve, { toast: t.toast }) : null,- r && t ? /* @__PURE__ */ (0, I.jsx)(sve, {}) : null,- r && t ? /* @__PURE__ */ (0, I.jsx)(xve, { navigate: t.navigate }) : null,- r && t ? /* @__PURE__ */ (0, I.jsx)(_ve, { actions: t }) : null,- /* @__PURE__ */ (0, I.jsx)(CG, { children: e })+ children: /* @__PURE__ */ (0, I.jsxs)(vG, { children: [+ /* @__PURE__ */ (0, I.jsx)(xG, {}),+ /* @__PURE__ */ (0, I.jsx)(oG, {}),+ /* @__PURE__ */ (0, I.jsx)(lG, {}),+ r && t ? /* @__PURE__ */ (0, I.jsx)(ive, { toast: t.toast }) : null,+ r && t ? /* @__PURE__ */ (0, I.jsx)(cve, {}) : null,+ r && t ? /* @__PURE__ */ (0, I.jsx)(Sve, { navigate: t.navigate }) : null,+ r && t ? /* @__PURE__ */ (0, I.jsx)(vve, { actions: t }) : null,+ /* @__PURE__ */ (0, I.jsx)(wG, { children: e })] })})] });}-var TG = { onCaughtError: (e) => {+var Pve = { onCaughtError: (e) => {globalThis.reportError?.(e);} }, EG = {category: "个人分类",@@ -50059,8 +50084,8 @@ function OG(e, t) {return e.pathname + (n.size ? `?${n}` : "");}// src/react/catalog-folders/folder-rule-dialog.tsx-function Nve({ folder: e, rule: t, revision: n, close: r }) {- let i = (0, F.useContext)(gG), a = AH(), [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 Fve({ folder: e, rule: t, revision: n, close: r }) {+ let i = (0, F.useContext)(_G), a = jH(), [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,@@ -50089,7 +50114,7 @@ function Nve({ 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: zs(t) } }), t] }) : null;- return g ? null : /* @__PURE__ */ (0, I.jsx)(CV, {+ return g ? null : /* @__PURE__ */ (0, I.jsx)(wV, {isOpen: !0,onOpenChange: (e) => {!e && !w && r();@@ -50111,7 +50136,7 @@ function Nve({ 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)(AV, {label: "关闭目录用途",onPress: () => {w || r();@@ -50123,20 +50148,20 @@ function Nve({ 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)(gV, { children: "这个文件夹用于" }), /* @__PURE__ */ (0, I.jsx)(oW, {+ children: [/* @__PURE__ */ (0, I.jsx)(_V, { children: "这个文件夹用于" }), /* @__PURE__ */ (0, I.jsx)(sW, {"aria-label": "这个文件夹用于",selectedKey: o,isDisabled: w,onSelectionChange: (e) => {s(e), y();},- children: Object.entries(EG).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(sW, {+ children: Object.entries(EG).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(cW, {id: e,children: t}, e))})]}),- o === "category" ? null : /* @__PURE__ */ (0, I.jsx)(SV, {+ o === "category" ? null : /* @__PURE__ */ (0, I.jsx)(CV, {label: "关联名称",value: c,onChange: (e) => {@@ -50147,7 +50172,7 @@ function Nve({ folder: e, rule: t, revision: n, close: r }) {isDisabled: w,isRequired: !0}),- /* @__PURE__ */ (0, I.jsx)(eH, {+ /* @__PURE__ */ (0, I.jsx)(tH, {isSelected: u,isDisabled: w,onChange: (e) => {@@ -50155,7 +50180,7 @@ function Nve({ folder: e, rule: t, revision: n, close: r }) {},children: "应用到子文件夹"}),- /* @__PURE__ */ (0, I.jsx)(eH, {+ /* @__PURE__ */ (0, I.jsx)(tH, {isSelected: f,isDisabled: w,onChange: (e) => {@@ -50192,9 +50217,9 @@ function Nve({ folder: e, rule: t, revision: n, close: r }) {children: e.name}, e.id))}) : null,- m.conflicts.length ? /* @__PURE__ */ (0, I.jsx)(TV, {+ m.conflicts.length ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "warning",- extra: /* @__PURE__ */ (0, I.jsx)(yU, {+ extra: /* @__PURE__ */ (0, I.jsx)(bU, {summary: "查看归属冲突",children: /* @__PURE__ */ (0, I.jsx)("ul", {className: "mt-2 flex flex-col gap-2",@@ -50212,7 +50237,7 @@ function Nve({ folder: e, rule: t, revision: n, close: r }) {}) : null]}) : null,- a.error ? /* @__PURE__ */ (0, I.jsx)(TV, {+ a.error ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "error",children: a.error}) : null@@ -50227,7 +50252,7 @@ function Nve({ folder: e, rule: t, revision: n, close: r }) {onClick: () => {w || C();},- ...AV(a.busy === "remove"),+ ...jV(a.busy === "remove"),children: "移除规则"}) : null,/* @__PURE__ */ (0, I.jsx)(J, {@@ -50239,13 +50264,13 @@ function Nve({ folder: e, rule: t, revision: n, close: r }) {}),m ? /* @__PURE__ */ (0, I.jsx)(J, {variant: "primary",- ...AV(a.busy === "save"),+ ...jV(a.busy === "save"),onClick: S,children: T("save", "正在保存") || "保存目录用途"}) : /* @__PURE__ */ (0, I.jsx)(J, {variant: "primary",disabled: o !== "category" && !c.trim(),- ...AV(a.busy === "preview"),+ ...jV(a.busy === "preview"),onClick: () => {x();},@@ -50258,7 +50283,7 @@ function Nve({ folder: e, rule: t, revision: n, close: r }) {});}// src/react/catalog-folders/use-folder-sticky-offset.ts-function Pve(e, t) {+function Ive(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 = () => {@@ -50282,10 +50307,10 @@ function Pve(e, t) {}// src/react/catalog-folders/catalog-folders-page.tsxfunction kG() {- return Zd() ? /* @__PURE__ */ (0, I.jsx)(Fve, {}) : null;+ return Zd() ? /* @__PURE__ */ (0, I.jsx)(Lve, {}) : null;}-function Fve() {- let e = Qd(), t = (0, F.useContext)(gG);+function Lve() {+ let e = Qd(), t = (0, F.useContext)(_G);if (!An(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)(DL, {@@ -50302,13 +50327,13 @@ function Fve() {} : { browse: "folders" }))});}-function Ive({ children: e, enabled: t }) {- return Zd() ? /* @__PURE__ */ (0, I.jsx)(Lve, {+function Rve({ children: e, enabled: t }) {+ return Zd() ? /* @__PURE__ */ (0, I.jsx)(zve, {enabled: t,children: e}) : /* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: e });}-function Lve({ children: e, enabled: t }) {+function zve({ children: e, enabled: t }) {let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(null), o = Qd(), s = new URLSearchParams(o.search), c = t && (s.get("browse") === "folders" || !!s.get("folder"));return /* @__PURE__ */ (0, I.jsxs)("div", {className: "entity-folder-workspace",@@ -50337,11 +50362,11 @@ function Lve({ children: e, enabled: t }) {});}function AG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {- let r = Qd(), i = (0, F.useContext)(gG), a = new URLSearchParams(r.search), o = n && (a.get("browse") === "folders" || !!a.get("folder")), s = {+ let r = Qd(), i = (0, F.useContext)(_G), a = new URLSearchParams(r.search), o = n && (a.get("browse") === "folders" || !!a.get("folder")), s = {loc: a.get("loc") ?? "",library: a.get("library") ?? ""};- Pve(o, e);+ Ive(o, e);let c = a.get("folder") || "", l = Pt({...DG(s, c),enabled: o@@ -50361,7 +50386,7 @@ function AG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {browse: "folders",folder: e}));- }, _ = l.data, v = /* @__PURE__ */ (0, I.jsx)(zve, {+ }, _ = l.data, v = /* @__PURE__ */ (0, I.jsx)(Vve, {scope: s,selected: c,current: _,@@ -50385,14 +50410,14 @@ function AG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {onClick: () => d(!0)})}),- /* @__PURE__ */ (0, I.jsxs)(bge, {+ /* @__PURE__ */ (0, I.jsxs)(yge, {"aria-label": "文件夹路径",- children: [/* @__PURE__ */ (0, I.jsx)(GV, {+ children: [/* @__PURE__ */ (0, I.jsx)(KV, {current: !c,onClick: () => g(""),icon: ZB,children: "全部文件夹"- }), _?.ancestors.map((e, t) => /* @__PURE__ */ (0, I.jsx)(GV, {+ }), _?.ancestors.map((e, t) => /* @__PURE__ */ (0, I.jsx)(KV, {current: t === _.ancestors.length - 1,onClick: () => g(e.id),children: /* @__PURE__ */ (0, I.jsx)("span", {@@ -50410,7 +50435,7 @@ function AG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {}) : null]}),- l.error && !u ? /* @__PURE__ */ (0, I.jsx)(TV, {+ l.error && !u ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "error",action: /* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",@@ -50422,7 +50447,7 @@ function AG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {}),children: cr(l.error)}) : null,- _?.conflicts?.length ? /* @__PURE__ */ (0, I.jsxs)(TV, {+ _?.conflicts?.length ? /* @__PURE__ */ (0, I.jsxs)(EV, {tone: "warning",action: /* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",@@ -50434,7 +50459,7 @@ function AG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {}) : null,_?.selected ? /* @__PURE__ */ (0, I.jsxs)("div", {className: "folder-scope-row",- children: [/* @__PURE__ */ (0, I.jsx)(eH, {+ children: [/* @__PURE__ */ (0, I.jsx)(tH, {size: "sm",isSelected: a.get("folder_recursive") !== "0",onChange: (e) => i.navigate(OG(r, { folder_recursive: e ? null : "0" })),@@ -50451,13 +50476,13 @@ function AG({ 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)(Rve, {+ _?.children.length ? /* @__PURE__ */ (0, I.jsx)(Bve, {nodes: _.children,go: g}, c) : null]}), h),- /* @__PURE__ */ (0, I.jsxs)(CV, {+ /* @__PURE__ */ (0, I.jsxs)(wV, {isOpen: u,onOpenChange: d,width: "form",@@ -50467,7 +50492,7 @@ function AG({ 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)(AV, {label: "关闭文件夹目录",onPress: () => d(!1)})]@@ -50476,7 +50501,7 @@ function AG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {children: u ? v : null})]}),- f && _?.selected ? /* @__PURE__ */ (0, I.jsx)(Nve, {+ f && _?.selected ? /* @__PURE__ */ (0, I.jsx)(Fve, {folder: _.selected,rule: _.rule,revision: _.rules_revision,@@ -50484,7 +50509,7 @@ function AG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {}, _.selected.id) : null] });}-function Rve({ nodes: e, go: t }) {+function Bve({ 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",@@ -50512,11 +50537,11 @@ function Rve({ nodes: e, go: t }) {}) : null]});}-function zve({ scope: e, selected: t, current: n, go: r, reportedError: i }) {+function Vve({ scope: e, selected: t, current: n, go: r, reportedError: i }) {let a = Pt(DG(e)), [o, s] = (0, F.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, F.useState)(""), u = (0, F.useDeferredValue)(c), d = Pt({...DG(e, "", u),enabled: !!u.trim()- }), f = tH();+ }), f = nH();(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]);@@ -50526,14 +50551,14 @@ function zve({ scope: e, selected: t, current: n, go: r, reportedError: i }) {}), n?.selected && h.set(n.selected.id, n.children);let g = (e) => {let t = h.get(e.id);- return /* @__PURE__ */ (0, I.jsx)(XV, {+ return /* @__PURE__ */ (0, I.jsx)(ZV, {id: e.id,label: e.name,icon: ZB,expandedIcon: $B,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)(XV, {+ children: e.has_children ? t ? t.map(g) : /* @__PURE__ */ (0, I.jsx)(ZV, {id: `${e.id}:loading`,label: "正在读取文件夹",isDisabled: !0@@ -50549,7 +50574,7 @@ function zve({ 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)(SV, {+ /* @__PURE__ */ (0, I.jsx)(CV, {"aria-label": "查找文件夹",placeholder: "查找文件夹",leadingIcon: uV,@@ -50557,7 +50582,7 @@ function zve({ scope: e, selected: t, current: n, go: r, reportedError: i }) {onChange: l,size: "small"}),- v ? /* @__PURE__ */ (0, I.jsx)(TV, {+ v ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "error",action: /* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",@@ -50592,7 +50617,7 @@ function zve({ 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)(TV, {+ }) : d.error ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "error",children: cr(d.error)}) : d.data?.matches.length ? d.data.matches.map((e) => /* @__PURE__ */ (0, I.jsx)(J, {@@ -50603,7 +50628,7 @@ function zve({ scope: e, selected: t, current: n, go: r, reportedError: i }) {l(""), r(e.id);},children: e.name- }, e.id)) : /* @__PURE__ */ (0, I.jsx)(EV, {+ }, e.id)) : /* @__PURE__ */ (0, I.jsx)(DV, {size: "compact",icon: uV,title: "没有匹配的文件夹",@@ -50614,7 +50639,7 @@ function zve({ scope: e, selected: t, current: n, go: r, reportedError: i }) {}),children: "换个目录名称试试。"})- }) : a.data?.roots.length ? /* @__PURE__ */ (0, I.jsx)(Cge, {+ }) : a.data?.roots.length ? /* @__PURE__ */ (0, I.jsx)(Sge, {"aria-label": "媒体目录",size: "sm",expandedKeys: o,@@ -50622,7 +50647,7 @@ function zve({ 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)(EV, {+ }) : /* @__PURE__ */ (0, I.jsx)(DV, {size: "compact",icon: ZB,title: "尚未添加媒体目录",@@ -50647,14 +50672,14 @@ function PG() {return NG;}}-function Bve(e) {+function Hve(e) {NG = e === "list" ? "list" : "cards";try {localStorage.setItem(jG, NG);} catch {}MG.forEach((e) => e());}-function Vve(e) {+function Uve(e) {MG.add(e);let t = (t) => {(t.key === jG || t.key === null) && e();@@ -50663,7 +50688,7 @@ function Vve(e) {MG.delete(e), removeEventListener("storage", t);};}-var FG = () => (0, F.useSyncExternalStore)(Vve, PG, () => "cards");+var FG = () => (0, F.useSyncExternalStore)(Uve, PG, () => "cards");// src/react/catalog-grid/catalog-view-toggle.tsxfunction IG() {let e = FG();@@ -50671,13 +50696,13 @@ function IG() {"aria-label": "馆藏显示方式",orientation: "horizontal",value: e,- onChange: Bve,+ onChange: Hve,"data-entity-layout": "",- className: BU,+ className: VU,children: [/* @__PURE__ */ (0, I.jsx)($z, {value: "cards","aria-label": "卡片",- className: VU,+ className: HU,"data-glass-segment": "",children: /* @__PURE__ */ (0, I.jsx)("span", {title: "卡片",@@ -50690,7 +50715,7 @@ function IG() {}), /* @__PURE__ */ (0, I.jsx)($z, {value: "list","aria-label": "列表",- className: VU,+ className: HU,"data-glass-segment": "",children: /* @__PURE__ */ (0, I.jsx)("span", {title: "列表",@@ -50792,9 +50817,9 @@ function XG(e, t) {let n = zG(e.media_error);return n ? `媒体未取得:${n}` : e.media_needs_credential && !t.credentials.has(e.provider) ? e.playable ? "部分媒体未取得:需要 F95 登录会话解析" : "媒体未取得:需要 F95 登录会话解析" : "";}-var Hve = 864e5, Uve = (e, t) => {+var Wve = 864e5, Gve = (e, t) => {let n = new Date(/[Zz]|[+-]\d\d:?\d\d$/.test(e) ? e : `${e}Z`).getTime();- return Number.isFinite(n) && n - t > Hve;+ return Number.isFinite(n) && n - t > Wve;};function ZG(e, t) {let n = zG(e.published_at);@@ -50803,14 +50828,14 @@ function ZG(e, t) {return {prefix: r ? "约 " : "",full: r ? i.slice(0, 10) : i,- suffix: Uve(n, t) ? " · 晚于现在" : ""+ suffix: Gve(n, t) ? " · 晚于现在" : ""};}function QG(e, t = Date.now()) {let n = ZG(e, t);return n ? `${n.prefix}${n.full}${n.suffix}` : "时间未取得";}-function Wve(e, t = Date.now()) {+function Kve(e, t = Date.now()) {let n = ZG(e, t);if (!n) return "时间未取得";if (!/^\d{4}-/.test(n.full)) return `${n.prefix}${n.full}${n.suffix}`;@@ -50826,7 +50851,7 @@ function nK() {body: JSON.stringify({ entries: e })}).catch(() => {}), eK.length && (tK = setTimeout(nK, 800));}-function Gve(e, t, n, r) {+function qve(e, t, n, r) {let i = `${e}:${t ?? ""}`;$G.has(i) || ($G.add(i), eK.push(t === null ? {item: e,@@ -50840,12 +50865,12 @@ function Gve(e, t, n, r) {}), tK ||= setTimeout(nK, 800));}// src/react/entity-filter/entity-filter.ts-var Kve = (e) => e === "videos", rK = () => /* @__PURE__ */ (0, I.jsx)("span", {+var Jve = (e) => e === "videos", rK = () => /* @__PURE__ */ (0, I.jsx)("span", {"data-entity-sep": "","aria-hidden": "true"-}), qve = OV("shuffle"), Jve = OV("arrow-up"), Yve = OV("arrow-down");-function Xve(e) {- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Kve(t), u = t === "online" ? e.online : null, d = l || !!u, f = u ? u.status : r, p = u ? u.statuses.map(([e, t]) => ({+}), Yve = kV("shuffle"), Xve = kV("arrow-up"), Zve = kV("arrow-down");+function Qve(e) {+ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Jve(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 = LL(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), S = LL(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 = LL(C, w, "[data-media-view][aria-pressed=\"true\"]", `${t}:${u?.media}:${!!T}`);@@ -50884,14 +50909,14 @@ function Xve(e) {})] }),top: !n && !d ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [- n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(eye, {+ n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(nye, {keys: n,view: t,row: _,glide: S,onView: s.setView}), d ? /* @__PURE__ */ (0, I.jsx)(rK, {}) : null] }) : null,- T ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Qve, {+ T ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(eye, {head: T,row: w,glide: E,@@ -50930,17 +50955,17 @@ function Xve(e) {"data-count-badge": e.k,children: e.n.toLocaleString()})]- }, e.k)) : u ? /* @__PURE__ */ (0, I.jsx)($ve, {+ }, e.k)) : u ? /* @__PURE__ */ (0, I.jsx)(tye, {head: u,actions: s}) : null})]})] }),- bottom: /* @__PURE__ */ (0, I.jsx)(tye, { ...e })+ bottom: /* @__PURE__ */ (0, I.jsx)(rye, { ...e })})] });}-var Zve = [[+var $ve = [["videos","视频","play",@@ -50951,7 +50976,7 @@ var Zve = [["pics","image"]];-function Qve({ head: e, row: t, glide: n, onMedia: r }) {+function eye({ head: e, row: t, glide: n, onMedia: r }) {return /* @__PURE__ */ (0, I.jsx)("div", {ref: t,role: "group",@@ -50959,7 +50984,7 @@ function Qve({ head: e, row: t, glide: n, onMedia: r }) {"data-entity-media": "","data-online-media": "",onPointerLeave: n.leave,- children: Zve.map(([t, i, a, o]) => {+ children: $ve.map(([t, i, a, o]) => {let s = `${i} ${Math.max(0, e.mediaCounts?.[t] || 0).toLocaleString()}`;return /* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -50977,7 +51002,7 @@ function Qve({ head: e, row: t, glide: n, onMedia: r }) {})});}-function $ve({ head: e, actions: t }) {+function tye({ head: e, actions: t }) {return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e.providers.map(([n, r]) => /* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -51003,7 +51028,7 @@ function $ve({ head: e, actions: t }) {}, e.k))] });}-function eye({ keys: e, view: t, row: n, glide: r, onView: i }) {+function nye({ keys: e, view: t, row: n, glide: r, onView: i }) {let a = [];return e.people && a.push({value: "people",@@ -51071,7 +51096,7 @@ function iK({ items: e, hidden: t, actions: n }) {})] }) : null});}-function tye(e) {+function rye(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", {@@ -51083,27 +51108,27 @@ function tye(e) {dangerouslySetInnerHTML: { __html: R("chevron-left") }}), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部照片" })]}) : null,- /* @__PURE__ */ (0, I.jsx)(nye, {+ /* @__PURE__ */ (0, I.jsx)(iye, {text: n,busy: r}),- /* @__PURE__ */ (0, I.jsx)(UV, { currentHref: () => location.pathname + location.search }),- t === "videos" && i ? /* @__PURE__ */ (0, I.jsx)(rye, {+ /* @__PURE__ */ (0, I.jsx)(WV, { currentHref: () => location.pathname + location.search }),+ t === "videos" && i ? /* @__PURE__ */ (0, I.jsx)(aye, {head: i,actions: o}) : null,- t === "photos" && a ? /* @__PURE__ */ (0, I.jsx)(aye, {+ t === "photos" && a ? /* @__PURE__ */ (0, I.jsx)(sye, {head: a,actions: o,helpers: s}) : null,- t === "online" && e.online ? /* @__PURE__ */ (0, I.jsx)(iye, {+ t === "online" && e.online ? /* @__PURE__ */ (0, I.jsx)(oye, {head: e.online,actions: o}) : null] });}-function nye({ text: e, busy: t }) {+function iye({ text: e, busy: t }) {return /* @__PURE__ */ (0, I.jsx)("h3", {"data-entity-readout": "",children: /* @__PURE__ */ (0, I.jsx)(TL, {@@ -51125,14 +51150,14 @@ function aK({ name: e, label: t, value: n, options: r, onChange: i }) {value: n,onChange: i,"data-entity-layout": "",- className: BU,+ className: VU,children: r.map(([e, t, n]) => {- let r = OV(n);+ let r = kV(n);return /* @__PURE__ */ (0, I.jsx)($z, {value: e,"aria-label": t,"data-glass-segment": "",- className: VU,+ className: HU,children: /* @__PURE__ */ (0, I.jsx)("span", {title: t,className: "contents",@@ -51148,11 +51173,11 @@ function oK({ onPress: e, busy: t = !1 }) {label: "换一批",busy: t,busyStyle: "strand",- icon: qve,+ icon: Yve,onPress: e});}-function rye({ head: e, actions: t }) {+function aye({ head: e, actions: t }) {let n = FG();return /* @__PURE__ */ (0, I.jsxs)("span", {"data-entity-sorts": "",@@ -51182,14 +51207,14 @@ function sK({ sorts: e, onSort: t }) {"aria-label": e.ariaLabel || void 0,onClick: () => t(e.key),children: [e.label, e.pressed && e.dir ? /* @__PURE__ */ (0, I.jsx)(LG, {- a: Jve,- b: Yve,+ a: Xve,+ b: Zve,state: e.dir === "asc" ? "a" : "b",className: "size-(--icon-inline)"}) : null]}, e.key)) });}-function iye({ head: e, actions: t }) {+function oye({ head: e, actions: t }) {return /* @__PURE__ */ (0, I.jsxs)("span", {"data-entity-sorts": "",children: [@@ -51221,7 +51246,7 @@ function iye({ head: e, actions: t }) {]});}-function aye({ head: e, actions: t, helpers: n }) {+function sye({ 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);@@ -51249,7 +51274,7 @@ function aye({ head: e, actions: t, helpers: n }) {});}// src/react/catalog-filter/catalog-filter.ts-var oye = "peach.catalog.tiers.v1";+var cye = "peach.catalog.tiers.v1";function cK() {try {let e = JSON.parse(localStorage.getItem("peach.catalog.tiers.v1") || "{}");@@ -51264,18 +51289,18 @@ function cK() {};}}-function sye(e) {+function lye(e) {try {let t = JSON.stringify({performers: e.performers,studios: e.studios});- localStorage.getItem("peach.catalog.tiers.v1") !== t && localStorage.setItem(oye, t);+ localStorage.getItem("peach.catalog.tiers.v1") !== t && localStorage.setItem(cye, t);} catch {}}// src/react/catalog-filter/catalog-filter-page.tsx-function cye(e) {- let t = !e.tiers, n = hye(e.comboHost);+function uye(e) {+ let t = !e.tiers, n = _ye(e.comboHost);return /* @__PURE__ */ (0, I.jsxs)("div", {"data-catalog-root": "","data-loading": t || void 0,@@ -51287,12 +51312,12 @@ function cye(e) {hidden: e.comboHidden,actions: e.actions}), n) : null,- /* @__PURE__ */ (0, I.jsx)(dye, { ...e }),- e.offscreen ? null : /* @__PURE__ */ (0, I.jsx)(lye, { ...e })+ /* @__PURE__ */ (0, I.jsx)(pye, { ...e }),+ e.offscreen ? null : /* @__PURE__ */ (0, I.jsx)(dye, { ...e })]});}-function lye(e) {+function dye(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 = LL(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);@@ -51365,17 +51390,17 @@ function lye(e) {}), /* @__PURE__ */ (0, I.jsxs)("div", {ref: o,"data-catalog-tags": "",- children: [e.empty || d ? /* @__PURE__ */ (0, I.jsx)(lK, { kind: "tag" }) : null, f.map((n) => /* @__PURE__ */ (0, I.jsx)(uye, {+ children: [e.empty || d ? /* @__PURE__ */ (0, I.jsx)(lK, { kind: "tag" }) : null, f.map((n) => /* @__PURE__ */ (0, I.jsx)(fye, {tag: n,pending: e.tiersPending,onPress: t.toggleTag}, n.k))]})]}),- bottom: e.trash ? null : /* @__PURE__ */ (0, I.jsx)(pye, { ...e })+ bottom: e.trash ? null : /* @__PURE__ */ (0, I.jsx)(hye, { ...e })});}-function uye({ tag: e, pending: t, onPress: n }) {+function fye({ tag: e, pending: t, onPress: n }) {return /* @__PURE__ */ (0, I.jsxs)(NL, {"data-catalog-tag": e.k,"data-entity-press": "",@@ -51390,7 +51415,7 @@ function uye({ tag: e, pending: t, onPress: n }) {})]});}-function dye(e) {+function pye(e) {wL();let { actions: t, helpers: n } = e, r = e.tiers ?? {key: "",@@ -51398,7 +51423,7 @@ function dye(e) {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 = uK(o, r.performers, r.key, 24, a ? void 0 : c("performers")), u = uK(s, r.studios, r.key, 24, a ? void 0 : c("studios")), d = (0, F.useMemo)(() => i ? cK() : 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 || sye({+ i || lye({performers: f,studios: p});@@ -51445,7 +51470,7 @@ function dye(e) {"data-entity-kind": "studio","data-entity-name": n.name,onClick: () => t.openEntity("studio", n.name),- children: [/* @__PURE__ */ (0, I.jsx)(fye, { studio: n }), /* @__PURE__ */ (0, I.jsx)(TL, {+ children: [/* @__PURE__ */ (0, I.jsx)(mye, { studio: n }), /* @__PURE__ */ (0, I.jsx)(TL, {text: n.name,busy: e.tiersPending})]@@ -51453,7 +51478,7 @@ function dye(e) {}) : null]});}-function fye({ studio: e }) {+function mye({ studio: e }) {let [t, n] = (0, F.useState)(!1);return /* @__PURE__ */ (0, I.jsx)("span", {"data-tier-mark": "",@@ -51487,11 +51512,11 @@ function lK({ kind: e }) {children: [/* @__PURE__ */ (0, I.jsx)("span", {}), /* @__PURE__ */ (0, I.jsx)("span", { children: "\xA0" })]}, t)) });}-function pye({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {+function hye({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {let a = FG(), [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)(mye, { count: e }), /* @__PURE__ */ (0, I.jsx)(UV, { currentHref: i.currentHref })]+ children: [/* @__PURE__ */ (0, I.jsx)(gye, { count: e }), /* @__PURE__ */ (0, I.jsx)(WV, { currentHref: i.currentHref })]}), /* @__PURE__ */ (0, I.jsxs)("span", {"data-entity-sorts": "",children: [@@ -51517,7 +51542,7 @@ function pye({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {]})] });}-function mye({ count: e }) {+function gye({ count: e }) {let t = e ? `${e.total.toLocaleString()} 个符合 · 显示 ${e.shown.toLocaleString()}` : e === !1 ? "" : void 0;return /* @__PURE__ */ (0, I.jsx)("span", {"data-catalog-readout": "",@@ -51534,7 +51559,7 @@ function mye({ count: e }) {})});}-function hye(e) {+function _ye(e) {let [t, n] = (0, F.useState)(null);return (0, F.useLayoutEffect)(() => {if (!e) return;@@ -51588,7 +51613,7 @@ function uK(e, t, n, r, i) {}// src/react/components/grid-reveal.tsxvar dK = "100% 0px";-function gye(e, t) {+function vye(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 && uc(a.current);@@ -51652,7 +51677,7 @@ function pK({ pending: e, skeletonHtml: t, children: n }) {}// src/library-catalog.tsvar mK = "peach.library-colors.v1", hK = null, gK = /* @__PURE__ */ new Set();-function _ye() {+function yye() {try {let e = JSON.parse(localStorage.getItem(mK) || "{}");return e && typeof e == "object" ? e : {};@@ -51670,14 +51695,14 @@ function _K(e) {function vK() {return hK;}-function vye(e) {+function bye(e) {return gK.add(e), () => {gK.delete(e);};}// src/react/components/library-tint.tsvar yK = /* @__PURE__ */ new Map(), bK = !1, xK = /* @__PURE__ */ new Set();-function yye(e) {+function xye(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();@@ -51686,7 +51711,7 @@ function yye(e) {function SK(e) {yK = e;let t = document.getElementById("peach-library-tints");- t || (t = document.createElement("style"), t.id = "peach-library-tints", document.head.append(t)), t.textContent = [...yK.values()].filter((e) => e.color).map((e) => `[data-library="${CSS.escape(e.id)}"]{--library-color:${yye(e.color)}}`).join("\n");+ t || (t = document.createElement("style"), t.id = "peach-library-tints", document.head.append(t)), t.textContent = [...yK.values()].filter((e) => e.color).map((e) => `[data-library="${CSS.escape(e.id)}"]{--library-color:${xye(e.color)}}`).join("\n");}function CK(e) {SK(e), xK.forEach((e) => e());@@ -51698,15 +51723,15 @@ var wK = (e) => new Map(e.map((e) => [e.id, {location: e.roots?.[0]?.location || "",color: e.color || ""}])), TK = !1;-function bye() {+function Sye() {if (TK) return;- TK = !0, vye((e) => CK(wK(e)));+ TK = !0, bye((e) => CK(wK(e)));let e = vK();if (e) {SK(wK(e));return;}- let t = Object.entries(_ye()).filter(([, e]) => e);+ let t = Object.entries(yye()).filter(([, e]) => e);t.length && SK(new Map(t.map(([e, t]) => [e, {id: e,name: "",@@ -51715,12 +51740,12 @@ function bye() {color: t}])));}-function xye() {+function Cye() {bK || vK() || (bK = !0, B("/api/libraries").then((e) => _K(e.libraries || [])).catch(() => {bK = !1;}));}-function Sye(e, t) {+function wye(e, t) {let n = yK.get(e) ?? {id: e,name: "",@@ -51733,20 +51758,20 @@ function Sye(e, t) {color: t}]]));}-function Cye(e) {+function Tye(e) {return xK.add(e), () => {xK.delete(e);};}function EK({ names: e = !1 } = {}) {- return bye(), e && xye(), (0, F.useSyncExternalStore)(Cye, () => yK, () => yK);+ return Sye(), e && Cye(), (0, F.useSyncExternalStore)(Tye, () => yK, () => yK);}// src/react/components/row-click.ts-var wye = "a,button,input,select,textarea,label,[role=\"checkbox\"],[role=\"switch\"],[role=\"button\"],[role=\"link\"],[role=\"menu\"]";+var Eye = "a,button,input,select,textarea,label,[role=\"checkbox\"],[role=\"switch\"],[role=\"button\"],[role=\"link\"],[role=\"menu\"]";function DK(e, t) {let n = e.target;if (!(n instanceof Element) || !t.contains(n)) return !1;- let r = n.closest(wye);+ let r = n.closest(Eye);return !r || !t.contains(r) || r === t;}function OK(e) {@@ -51761,18 +51786,18 @@ function jK({ name: e }) {children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })});}-var Tye = {+var Dye = {image: "图片",audio: "音频",archive: "压缩包",other: "其它文件"-}, Eye = {+}, Oye = {manual: "手动",junk: "垃圾",duplicate: "重复",missing: "文件缺失"};-function Dye(e) {+function kye(e) {if (Number(e.duration) < 0) return {key: "unavailable",label: "探查错误"@@ -51802,7 +51827,7 @@ function Dye(e) {}function MK({ item: e }) {if (e.disposal !== "trash") return null;- let t = e.disposal_reason && Eye[e.disposal_reason] || "原因未记录";+ let t = e.disposal_reason && Oye[e.disposal_reason] || "原因未记录";return /* @__PURE__ */ (0, I.jsx)("span", {"data-media-disposal-reason": "",title: `归入原因:${t}`,@@ -51882,7 +51907,7 @@ function FK(e) {})};}-function Oye() {+function Aye() {return /* @__PURE__ */ (0, I.jsxs)("button", {type: "button","data-media-preview": "",@@ -51901,7 +51926,7 @@ function Oye() {})]});}-function kye({ item: e, actions: t, on: n, onChange: r }) {+function jye({ item: e, actions: t, on: n, onChange: r }) {let [i, a] = (0, F.useState)(!1);return /* @__PURE__ */ (0, I.jsx)("div", {"data-media-later": "",@@ -51920,7 +51945,7 @@ function kye({ item: e, actions: t, on: n, onChange: r }) {})});}-function Aye({ reason: e }) {+function Mye({ 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,@@ -51941,7 +51966,7 @@ function Aye({ reason: e }) {placement: "top",offset: 8,containerPadding: 12,- className: qV,+ className: JV,children: /* @__PURE__ */ (0, I.jsx)(Gz, {"data-media-reason-dialog": "","aria-label": "推荐理由",@@ -51954,14 +51979,14 @@ function IK(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 jye({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c, grouped: l = !0 }) {+function Nye({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c, grouped: l = !0 }) {wL();let u = (0, F.useRef)(null), [d, f] = (0, F.useState)(null), p = d?.id === e.id ? d.on : !!e.watch_later, m = EK(), 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 && jl(u.current), u.current = e, e && (!t.medium || t.medium === "video") && Nl(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 = PK(e, t, n), w = S ? n.size : "small", T = C === kK && !!e.is_jav, E = T ? Eo(e, !1) : wo(e, w, !1, n.javImage), D = T || w === "small" ? E.html : wo(e, "small", !1, n.javImage).html, O = y?.title || e.name || "", k = o.displayName(e, O).trim() || AK, A = o.titleHtml(e, O).trim() || z(AK), j = y?.total_size ?? e.size, M = y?.total_duration ?? e.duration, ee = Number(M) > 0 ? null : Dye(e), N = !y && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: te, who: P } = FK(e), ne = (e.follow_tags || e.tags || []).slice(0, 3), re = (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 = PK(e, t, n), w = S ? n.size : "small", T = C === kK && !!e.is_jav, E = T ? Eo(e, !1) : wo(e, w, !1, n.javImage), D = T || w === "small" ? E.html : wo(e, "small", !1, n.javImage).html, O = y?.title || e.name || "", k = o.displayName(e, O).trim() || AK, A = o.titleHtml(e, O).trim() || z(AK), j = y?.total_size ?? e.size, M = y?.total_duration ?? e.duration, ee = Number(M) > 0 ? null : kye(e), N = !y && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: te, who: P } = FK(e), ne = (e.follow_tags || e.tags || []).slice(0, 3), re = (t) => {let n = t.target;if (n.closest("[data-media-reason-dialog]")) return;let r = u.current;@@ -51991,7 +52016,7 @@ function jye({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS"data-pic-portrait": C === kK ? "" : void 0,style: { "--card-ratio": String(C) },children: [- E.html ? /* @__PURE__ */ (0, I.jsx)(uW, {+ E.html ? /* @__PURE__ */ (0, I.jsx)(dW, {artwork: E,identity: D,relayout: (e) => Cl(e, w)@@ -52041,7 +52066,7 @@ function jye({ 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)(Oye, {}),+ /* @__PURE__ */ (0, I.jsx)(Aye, {}),p || g.length ? /* @__PURE__ */ (0, I.jsxs)("div", {"data-media-status": "",children: [p ? /* @__PURE__ */ (0, I.jsx)("span", {@@ -52056,7 +52081,7 @@ function jye({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSchildren: /* @__PURE__ */ (0, I.jsx)(jK, { name: "heart" })}) : null]}) : null,- i ? null : /* @__PURE__ */ (0, I.jsx)(kye, {+ i ? null : /* @__PURE__ */ (0, I.jsx)(jye, {item: e,actions: s,on: p,@@ -52161,7 +52186,7 @@ function jye({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS})]}),- t === "next" ? e.why ? /* @__PURE__ */ (0, I.jsx)(Aye, { reason: e.why }) : null : ne.length || e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)("div", {+ t === "next" ? e.why ? /* @__PURE__ */ (0, I.jsx)(Mye, { reason: e.why }) : null : ne.length || e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)("div", {"data-media-tags": "",children: ne.map((t) => /* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -52178,8 +52203,8 @@ function jye({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS]});}-function Mye({ 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") ? "网址快捷方式" : Tye[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";+function Pye({ 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") ? "网址快捷方式" : Dye[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";return /* @__PURE__ */ (0, I.jsxs)("article", {ref: o,"data-media-card": "",@@ -52261,17 +52286,17 @@ function Mye({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp})]});}-function Nye(e) {- return e.variant === "resource" ? /* @__PURE__ */ (0, I.jsx)(Mye, { ...e }) : /* @__PURE__ */ (0, I.jsx)(jye, { ...e });+function Fye(e) {+ return e.variant === "resource" ? /* @__PURE__ */ (0, I.jsx)(Pye, { ...e }) : /* @__PURE__ */ (0, I.jsx)(Nye, { ...e });}-var LK = (0, F.memo)(Nye), Pye = 1100, Fye = 340, Iye = 5e3;-function Lye(e, t, n) {+var LK = (0, F.memo)(Fye), Iye = 1100, Lye = 340, Rye = 5e3;+function zye(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, Iye);+ }, s = () => o(!1), c = setTimeout(s, Rye);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;@@ -52319,11 +52344,11 @@ function RK({ load: e, canFlip: t, referrerPolicy: n }) {return;}if (!r() || !u.current.canFlip() || a.length < 2) return;- let s = await Promise.all(a.map((t) => Lye(t, e, n)));+ let s = await Promise.all(a.map((t) => zye(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, Pye);+ p(), e.cycle = setInterval(p, Iye);}));};return (0, F.useEffect)(() => d, [d]), {@@ -52332,7 +52357,7 @@ function RK({ 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(Fye, () => {+ e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(Lye, () => {e.armed = null, m();});},@@ -52342,8 +52367,8 @@ function RK({ load: e, canFlip: t, referrerPolicy: n }) {};}// src/react/components/mix-card.tsx-var zK = OV("play");-function Rye({ src: e }) {+var zK = kV("play");+function Bye({ src: e }) {let [t, n] = (0, F.useState)(!1);return t ? null : /* @__PURE__ */ (0, I.jsx)("img", {"data-mix-poster": "",@@ -52357,7 +52382,7 @@ function Rye({ src: e }) {});}var BK = "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 zye({ faces: e, fallback: t, onOpenEntity: n }) {+function Vye({ 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", {@@ -52403,11 +52428,11 @@ function VK({ 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)(uW, {+ f?.html ? /* @__PURE__ */ (0, I.jsx)(dW, {artwork: f,identity: p,relayout: m- }) : r ? /* @__PURE__ */ (0, I.jsx)(Rye, { src: r }, r) : /* @__PURE__ */ (0, I.jsx)("span", {+ }) : r ? /* @__PURE__ */ (0, I.jsx)(Bye, { src: r }, r) : /* @__PURE__ */ (0, I.jsx)("span", {className: "text-caption-1-regular tracking-caps text-text-secondary uppercase",children: "无预览"}),@@ -52451,7 +52476,7 @@ function VK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:"data-mix-glyph": "","aria-hidden": !0,children: /* @__PURE__ */ (0, I.jsx)(zK, {})- }) : /* @__PURE__ */ (0, I.jsx)(zye, {+ }) : /* @__PURE__ */ (0, I.jsx)(Vye, {faces: o,fallback: $n(e),onOpenEntity: s@@ -52474,7 +52499,7 @@ function VK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:});}// src/react/video-wall/folia/blockReflows.ts-var Bye = [+var Hye = [[[{@@ -56343,15 +56368,15 @@ var Bye = [UK,WK,(e) => UK(WK(e))-], KK = HK.flatMap((e) => GK.map((t) => t(e))), Vye = Bye.flatMap((e) => GK.map((t) => e.map(t)));+], KK = HK.flatMap((e) => GK.map((t) => t(e))), Uye = Hye.flatMap((e) => GK.map((t) => e.map(t)));KK.length;-var Hye = (e, t) => {+var Wye = (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;}, qK = (e, t) => {let n = HK.length;- return ((e + t * 2) % n + n) % n * GK.length + Hye(e, t) % GK.length;-}, Uye = (e, t) => KK[qK(e, t)], Wye = (e, t, n) => n < 0 || n >= 12 ? null : Vye[qK(e, t)][n], JK = 103.36, YK = 6.08, XK = 12 * JK, ZK = 8 * JK, QK = 12, $K = (e, t) => (e % t + t) % t, Gye = (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;+ return ((e + t * 2) % n + n) % n * GK.length + Wye(e, t) % GK.length;+}, Gye = (e, t) => KK[qK(e, t)], Kye = (e, t, n) => n < 0 || n >= 12 ? null : Uye[qK(e, t)][n], JK = 103.36, YK = 6.08, XK = 12 * JK, ZK = 8 * JK, QK = 12, $K = (e, t) => (e % t + t) % t, qye = (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 eq(e, t) {let n = Math.max(1, Math.ceil(e / QK)), r = t ? 3 : Math.min(3, n);return {@@ -56361,7 +56386,7 @@ function eq(e, t) {};}function tq(e, t, n) {- let { x: r, y: i, cols: a, rows: o } = Uye(e, t)[n];+ let { x: r, y: i, cols: a, rows: o } = Gye(e, t)[n];return {x: e * XK + r * JK,y: t * ZK + i * JK,@@ -56369,7 +56394,7 @@ function tq(e, t, n) {height: o * JK - YK};}-function Kye(e) {+function Jye(e) {return (!e.medium || e.medium === "video") && !!e.has_cover && !!(e.cover_key || e.code);}function nq(e, t, n) {@@ -56389,13 +56414,13 @@ function nq(e, t, n) {key: n};}-function qye(e, t) {+function Yye(e, t) {if (t < 0 || t >= e) return null;let n = Math.floor(t / QK);return nq(e, !0, `${n % 3}:${Math.floor(n / 3)}:${t % QK}`);}function rq(e, t, n) {- let [r, i, a] = n.key.split(":").map(Number), o = Wye(r, i, a);+ let [r, i, a] = n.key.split(":").map(Number), o = Kye(r, i, a);return new Map((o || []).map((e, t) => [`${r}:${i}:${t}`, {x: r * XK + e.x * JK,y: i * ZK + e.y * JK,@@ -56403,7 +56428,7 @@ function rq(e, t, n) {height: e.rows * JK - YK}]));}-function Jye(e) {+function Xye(e) {let t = 0, n = 0;for (let r = Math.max(0, e - 36); r < e; r += 1) {let e = Math.floor(r / QK), i = tq(e % 3, Math.floor(e / 3), r % QK);@@ -56414,7 +56439,7 @@ function Jye(e) {height: n};}-function Yye(e, t, n, r) {+function Zye(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 {@@ -56423,7 +56448,7 @@ function Yye(e, t, n, r) {y: i(e.y, n.height, t.height)};}-function Xye(e, t, n, r) {+function Qye(e, t, n, r) {if (!e || !r.width || !r.height) return [];let i = 180 / n.scale, a = {x: -n.x / n.scale - i,@@ -56438,7 +56463,7 @@ function Xye(e, t, n, r) {let u = (l * o.columns + i) * QK + s;if (t && u >= e) continue;let d = tq(r, n, s);- Gye(d, a) && c.push({+ qye(d, a) && c.push({...d,index: u % e,key: `${r}:${n}:${s}`@@ -56447,7 +56472,7 @@ function Xye(e, t, n, r) {}return c;}-var Zye = class {+var $ye = class {positions = /* @__PURE__ */ new Map();used = /* @__PURE__ */ new Set();cursor = 0;@@ -56520,7 +56545,7 @@ var Zye = class {"dur_max","region"];-function Qye(e = {}) {+function ebe(e = {}) {return iq.some((t) => !!e[t]);}// src/react/video-wall/use-wall-camera.ts@@ -56529,7 +56554,7 @@ var aq = {y: 16,scale: 1};-function $ye(e, t, n = aq, r = !1) {+function tbe(e, t, n = aq, r = !1) {let i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)({width: 0,height: 0@@ -56549,7 +56574,7 @@ function $ye(e, t, n = aq, 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 = Yye(e, o.current, Jye(r), c && !f && !n);+ let { count: r, finite: c, focused: f } = d.current, p = Zye(e, o.current, Xye(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));@@ -56710,16 +56735,16 @@ function $ye(e, t, n = aq, r = !1) {};}// src/react/video-wall/wall-motion.ts-var ebe = {+var nbe = {type: "spring",stiffness: 300,damping: 34-}, tbe = {+}, rbe = {delay: .14,duration: .24};// src/react/video-wall/use-wall-playback.ts-function nbe(e, t, n) {+function ibe(e, t, n) {let [r, i] = (0, F.useState)({paused: !0,time: 0,@@ -56760,8 +56785,8 @@ function nbe(e, t, n) {};}// src/react/video-wall/wall-controls.tsx-function rbe({ 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 = tS(), x = nbe(t, n, v), S = x.duration || Number(e.duration) || 0, C = r || i, w = !t || x.paused, T = async () => {+function abe({ 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 = tS(), x = ibe(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) {@@ -56778,7 +56803,7 @@ function rbe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grouopacity: 1,transform: "translateY(0px)"},- transition: b ? { duration: 0 } : tbe,+ transition: b ? { duration: 0 } : rbe,children: [/* @__PURE__ */ (0, I.jsxs)("div", {"data-wall-control-row": "",children: [@@ -56786,7 +56811,7 @@ function rbe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, groutype: "button","data-wall-play": "","data-wall-pause": w ? void 0 : "",- ...AV(C),+ ...jV(C),"aria-label": r ? "正在打开" : i ? "正在读取版本" : w ? "播放" : "暂停",title: w ? "播放" : "暂停",onClick: () => void T(),@@ -56836,7 +56861,7 @@ function rbe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou}),/* @__PURE__ */ (0, I.jsx)("button", {type: "button",- ...AV(d),+ ...jV(d),"aria-label": u ? "移出稍后看" : "稍后看",title: "稍后看","aria-pressed": u,@@ -56941,7 +56966,7 @@ function sq({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }}), r]});}-var ibe = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {+var obe = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {"data-mix-group-label": "",children: [e,@@ -56950,7 +56975,7 @@ var ibe = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {]});// src/react/video-wall/wall-queue.tsx-function abe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {+function sbe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {return /* @__PURE__ */ (0, I.jsx)("div", {"data-wall-queue": "",id: "wall-queue",@@ -56968,7 +56993,7 @@ function abe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a })r(e)].filter(Boolean).join(" · "),onClick: () => i(e),- pic: /* @__PURE__ */ (0, I.jsx)(uW, { artwork: wo(e, "small", !0, "cover") }),+ pic: /* @__PURE__ */ (0, I.jsx)(dW, { artwork: wo(e, "small", !0, "cover") }),children: [/* @__PURE__ */ (0, I.jsx)("b", { children: r(e) }), /* @__PURE__ */ (0, I.jsx)("span", { children: [e.edition_label,e.part_label ? QP(e.part_label) : "",@@ -56979,7 +57004,7 @@ function abe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a })});}// src/react/video-wall/wall-route.ts-function obe(e = `${location.pathname}${location.search}`, t = {}) {+function cbe(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",@@ -57017,7 +57042,7 @@ var uq = /* @__PURE__ */ new Map(), dq = (0, F.memo)(function({ item: e, image:ref: a,"data-media-pic": "",style: { "--card-ratio": String(r) },- children: /* @__PURE__ */ (0, I.jsx)(uW, {+ children: /* @__PURE__ */ (0, I.jsx)(dW, {artwork: i,relayout: (e) => e.querySelectorAll("img.cover").forEach((e) => {e.complete && e.naturalWidth && ll(e, r);@@ -57025,11 +57050,11 @@ var uq = /* @__PURE__ */ new Map(), dq = (0, F.memo)(function({ item: e, image:})});});-function sbe({ 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 lbe({ 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 = uq.get(f);return e && (i || t || e.pool === p) ? e : void 0;- }), [h] = (0, F.useState)(() => m?.exploration || new Zye()), 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 $ye()), 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 ? {@@ -57045,7 +57070,7 @@ function sbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:tagLabel: u.tagLabel,mixRelated: async () => []}, e)- }), N = M ? ee.data : void 0, te = N?.items.find((e) => e.id === UP(N, O || w?.id || null)) || w, P = $ye(e.length, t && !!e.length, m?.camera || {+ }), N = M ? ee.data : void 0, te = N?.items.find((e) => e.id === UP(N, O || w?.id || null)) || w, P = tbe(e.length, t && !!e.length, m?.camera || {x: 0,y: 0,scale: innerWidth < 640 ? .68 : 1@@ -57090,7 +57115,7 @@ function sbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:}), uq.size > 8 && uq.delete(uq.keys().next().value));};(0, F.useLayoutEffect)(je);- let Me = Xye(i ? 12 : t ? e.length : e.length || n ? 12 : 0, t && !i, P.view.camera, P.view.size), Ne = i ? Me.map((e) => ({+ let Me = Qye(i ? 12 : t ? e.length : e.length || n ? 12 : 0, t && !i, P.view.camera, P.view.size), Ne = i ? Me.map((e) => ({...e,index: -1})) : t ? Me : h.assign(Me, e.length, n), Pe = w && (t ? nq(e.length, !0, E) : h.tile(E, e.length)), Fe = Pe ? rq(e.length, t, Pe) : /* @__PURE__ */ new Map();@@ -57176,7 +57201,7 @@ function sbe({ 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 ? qye(e.length, i) : h.nearest(e.length, i, a);+ }, o = t ? Yye(e.length, i) : h.nearest(e.length, i, a);o && (Re(n, o), le(n.id));}, Ge = async () => {if (!(r || g.current)) {@@ -57322,7 +57347,7 @@ function sbe({ 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)(TV, {+ children: [/* @__PURE__ */ (0, I.jsx)(EV, {tone: "error",children: fe || bn(ee.error)}), ee.error && !N ? /* @__PURE__ */ (0, I.jsx)(J, {@@ -57332,7 +57357,7 @@ function sbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:children: "立即重试"}) : null]}) : null,- /* @__PURE__ */ (0, I.jsx)(rbe, {+ /* @__PURE__ */ (0, I.jsx)(abe, {item: Xe,playing: oe,frame: b,@@ -57354,7 +57379,7 @@ function sbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:ended: Ve,error: pe}),- A ? /* @__PURE__ */ (0, I.jsx)(abe, {+ A ? /* @__PURE__ */ (0, I.jsx)(sbe, {items: He,activeId: Xe.id,kind: N?.kind || "wall",@@ -57422,18 +57447,18 @@ function sbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:defaultValue: new URLSearchParams(location.search).get("q") || ""})]}),- /* @__PURE__ */ (0, I.jsxs)(LU, {+ /* @__PURE__ */ (0, I.jsxs)(RU, {"aria-label": "播放墙图片",value: Te,onChange: Ee,- className: RU,+ className: zU,children: [/* @__PURE__ */ (0, I.jsx)($z, {value: "cover",- className: zU,+ className: BU,children: "封面"}), /* @__PURE__ */ (0, I.jsx)($z, {value: "thumbnail",- className: zU,+ className: BU,children: "缩略图"})]}),@@ -57526,7 +57551,7 @@ function sbe({ 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: ebe,+ layout: nbe,transform: a ? {type: "spring",stiffness: 360,@@ -57597,7 +57622,7 @@ function sbe({ 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)(TV, {+ children: [/* @__PURE__ */ (0, I.jsx)(EV, {tone: "error",children: a}), /* @__PURE__ */ (0, I.jsx)(J, {@@ -57634,20 +57659,20 @@ function sbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:children: /* @__PURE__ */ (0, I.jsxs)(J, {size: "small",variant: "secondary",- ...AV(r),+ ...jV(r),onClick: () => void Ge(),children: [r ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: zs() } }) : null, "载入更多"]})}) : null,me ? /* @__PURE__ */ (0, I.jsxs)("div", {"data-wall-error": "",- children: [/* @__PURE__ */ (0, I.jsx)(TV, {+ children: [/* @__PURE__ */ (0, I.jsx)(EV, {tone: "error",children: me}), /* @__PURE__ */ (0, I.jsx)(J, {size: "small",variant: "ghost",- ...AV(r),+ ...jV(r),onClick: () => void Ge(),children: "立即重试"})]@@ -57689,7 +57714,7 @@ var fq = ["jav","thumb"];-function cbe(e = typeof location > "u" ? "/" : location.href) {+function ube(e = typeof location > "u" ? "/" : location.href) {let t = new URL(e, "http://localhost");for (let e of [...fq,@@ -57699,7 +57724,7 @@ function cbe(e = typeof location > "u" ? "/" : location.href) {]) t.searchParams.delete(e);return t.searchParams.set("thumb", "0"), t.pathname + (t.search ? t.search : "") + t.hash;}-async function lbe(e, t) {+async function dbe(e, t) {let n = new URLSearchParams();for (let t of fq) 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([@@ -57714,7 +57739,7 @@ async function lbe(e, t) {}function pq({ 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 Us("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 ? z(cbe()) : "/?loc=&thumb=0"}">${t ? "清除筛选" : "查看全部内容"}</a>` });+ if (t || n) return Us("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 ? z(ube()) : "/?loc=&thumb=0"}">${t ? "清除筛选" : "查看全部内容"}</a>` });if (e !== "catalog") {let t = (i ? {tags: "标签",@@ -57732,12 +57757,12 @@ function pq({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable:return Us("play", "还没有视频", "添加媒体目录或关注来源,开始建立你的馆藏。", { actions: a + o });}// src/react/video-wall/wall-empty.ts-function ube({ libraryEmpty: e, matches: t, hasMore: n, catalogEmpty: r }) {+function fbe({ libraryEmpty: e, matches: t, hasMore: n, catalogEmpty: r }) {return e ? r || pq() : t ? Us("image", "这些视频还没有封面", n ? "载入更多作品后继续浏览。" : "为作品补充封面后,可在播放墙中查看。", { actions: "<a class=\"geist-button primary\" href=\"/data-cleanup\">补全封面</a>" + (n ? "<button type=\"button\" class=\"geist-button\" data-wall-load-more>加载更多</button>" : "") }) : Us("search", "没有符合筛选条件的视频", "清除筛选条件后查看全部视频。", { actions: `<a class="geist-button primary" href="${cq()}">清除筛选</a>` });}// src/react/library-processing/processing-actions.tsxfunction mq({ label: e, maintenance: t = !1, children: n }) {- let r = MH("hover");+ let r = NH("hover");return /* @__PURE__ */ (0, I.jsx)("div", {ref: r,role: "group",@@ -57753,7 +57778,7 @@ function hq({ option: e, metadataOnly: t, onRun: n }) {type: "button",disabled: i,title: r ? "请先在媒体库设置中开启视频预览生成" : void 0,- className: q(JV, i ? "cursor-not-allowed opacity-50" : YV, "text-body-2-medium"),+ className: q(YV, i ? "cursor-not-allowed opacity-50" : XV, "text-body-2-medium"),onClick: () => n(e.command),children: /* @__PURE__ */ (0, I.jsxs)("span", {className: "flex min-w-0 flex-col gap-1",@@ -57764,12 +57789,12 @@ function hq({ option: e, metadataOnly: t, onRun: n }) {})});}-function dbe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {+function pbe({ 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 Qge(e, t.signal, a);+ let o = await Zge(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(() => {@@ -57794,7 +57819,7 @@ function dbe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {}),/* @__PURE__ */ (0, I.jsx)("div", {className: "flex justify-center",- children: /* @__PURE__ */ (0, I.jsx)(zH, {+ children: /* @__PURE__ */ (0, I.jsx)(BH, {value: a,busy: i,onChange: (e) => {@@ -57802,7 +57827,7 @@ function dbe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {}})}),- s ? /* @__PURE__ */ (0, I.jsx)(DU, {+ s ? /* @__PURE__ */ (0, I.jsx)(OU, {traffic: s,initial: !0}) : null,@@ -57862,7 +57887,7 @@ function gq({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spedescription: "为已入库的本地视频生成九宫格",command: { stage: "previews" }}- ], v = e || t, y = e ? AV(!0) : t ? { "aria-disabled": !0 } : {}, b = (a) => {+ ], v = e || t, y = e ? jV(!0) : t ? { "aria-disabled": !0 } : {}, b = (a) => {if (e) return;if (t) {s?.();@@ -57897,7 +57922,7 @@ function gq({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe});};return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [- u ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(dbe, {+ u ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(pbe, {command: u.command,dialog: u.dialog,speed: i,@@ -57906,7 +57931,7 @@ function gq({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spef.current = e;}}), u.host) : null,- u ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(kH, {+ u ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(AH, {href: "/settings/library",size: "small",variant: "primary",@@ -57944,7 +57969,7 @@ function gq({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, speonOpenChange: m,placement: "bottom end",offset: 4,- className: qV,+ className: JV,children: /* @__PURE__ */ (0, I.jsxs)(Gz, {"aria-label": "同步方式",className: "flex w-80 flex-col gap-1 outline-none",@@ -57985,40 +58010,40 @@ function _q(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) && !wo(e, "small", !1, t).html).map((e) => e.id))];}function vq({ assetIds: e, onComplete: t, className: n = "mb-4" }) {- return e.length ? /* @__PURE__ */ (0, I.jsx)(fbe, {+ return e.length ? /* @__PURE__ */ (0, I.jsx)(mbe, {assetIds: e,onComplete: t,className: n}) : null;}-function fbe({ assetIds: e, onComplete: t, className: n }) {+function mbe({ assetIds: e, onComplete: t, className: n }) {let r = Pt({- queryKey: pH,- queryFn: ({ signal: e }) => xH(e),- refetchInterval: (e) => wH(e.state.data, !0)+ queryKey: mH,+ queryFn: ({ signal: e }) => SH(e),+ refetchInterval: (e) => TH(e.state.data, !0)}), [i, a] = (0, F.useState)(null), [o, s] = (0, F.useState)(""), c = (0, F.useRef)(null), l = Ft({- mutationFn: (t) => V(fH, {+ mutationFn: (t) => V(pH, {...t,asset_ids: e}),onSuccess: (e) => {- a(e.job_id || null), H.setQueryData(pH, e), H.invalidateQueries({ queryKey: pH });+ a(e.job_id || null), H.setQueryData(mH, e), H.invalidateQueries({ queryKey: mH });}}), u = r.data;(0, F.useEffect)(() => {- u && i && u.job_id === i && !gH(u) && c.current !== i && (c.current = i, u.status === "complete" && s(`补全完成:取得 ${u.covers || 0} 张封面,生成 ${u.previews || 0} 部视频预览。`), H.invalidateQueries({ queryKey: ["catalog-grid"] }), t?.());+ u && i && u.job_id === i && !_H(u) && c.current !== i && (c.current = i, u.status === "complete" && s(`补全完成:取得 ${u.covers || 0} 张封面,生成 ${u.previews || 0} 部视频预览。`), H.invalidateQueries({ queryKey: ["catalog-grid"] }), t?.());}, [u,i,t]);- let d = l.isPending || gH(u), f = l.error ? cr(l.error) : r.error ? CH : i && u?.job_id === i && u.status === "failed" ? u.error || "补全未完成" : "", p = f || (l.isPending ? "正在启动补全…" : o || `这批影片中有 ${e.length.toLocaleString()} 部暂无预览,${gH(u) ? "当前任务结束后可单独补全。" : "可补全资料与图片。"}`);+ let d = l.isPending || _H(u), f = l.error ? cr(l.error) : r.error ? wH : i && u?.job_id === i && u.status === "failed" ? u.error || "补全未完成" : "", p = f || (l.isPending ? "正在启动补全…" : o || `这批影片中有 ${e.length.toLocaleString()} 部暂无预览,${_H(u) ? "当前任务结束后可单独补全。" : "可补全资料与图片。"}`);return /* @__PURE__ */ (0, I.jsx)("section", {"aria-label": "补全预览","aria-live": "polite","data-library-completion": "",className: q("@container", n),- children: /* @__PURE__ */ (0, I.jsxs)(TV, {+ children: /* @__PURE__ */ (0, I.jsxs)(EV, {tone: f ? "warning" : "neutral",action: /* @__PURE__ */ (0, I.jsx)("div", {className: "flex flex-wrap items-center gap-2",@@ -58033,7 +58058,7 @@ function fbe({ assetIds: e, onComplete: t, className: n }) {children: [p," ",- /* @__PURE__ */ (0, I.jsx)(kH, {+ /* @__PURE__ */ (0, I.jsx)(AH, {href: "/data-cleanup#libraryProcessing",size: "small",trailingIcon: zB,@@ -58044,22 +58069,22 @@ function fbe({ assetIds: e, onComplete: t, className: n }) {});}// node_modules/@tanstack/react-table/dist/FlexRender.js-function pbe(e) {- return mbe(e) || typeof e == "function" || hbe(e);+function hbe(e) {+ return gbe(e) || typeof e == "function" || _be(e);}-function mbe(e) {+function gbe(e) {return typeof e == "function" && (() => {let t = Object.getPrototypeOf(e);return t.prototype && t.prototype.isReactComponent;})();}-function hbe(e) {+function _be(e) {return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);}function yq(e, t) {- return e == null ? null : pbe(e) ? /* @__PURE__ */ F.createElement(e, t) : e;+ return e == null ? null : hbe(e) ? /* @__PURE__ */ F.createElement(e, t) : e;}-function gbe(e) {+function vbe(e) {if ("cell" in e && e.cell) {let t = e.cell, n = t.column.columnDef, r = t, i = n;return r.getIsAggregated?.() ? yq(i.aggregatedCell ?? n.cell, t.getContext()) : r.getIsPlaceholder?.() ? null : yq(n.cell, t.getContext());@@ -58068,7 +58093,7 @@ function gbe(e) {}// node_modules/@tanstack/store/dist/alien.js/* @__NO_SIDE_EFFECTS__ */-function _be({ update: e, notify: t, unwatched: n }) {+function ybe({ update: e, notify: t, unwatched: n }) {return {link: r,unlink: i,@@ -58185,7 +58210,7 @@ function _be({ update: e, notify: t, unwatched: n }) {}}// node_modules/@tanstack/store/dist/atom.js-function vbe(e, t, n) {+function bbe(e, t, n) {let r = typeof e == "object", i = r ? e : void 0;return {next: (r ? e.next : e)?.bind(i),@@ -58193,7 +58218,7 @@ function vbe(e, t, n) {complete: (r ? e.complete : n)?.bind(i)};}-var bq = [], xq = 0, { link: Sq, unlink: ybe, propagate: bbe, checkDirty: Cq, shallowPropagate: wq } = /* @__PURE__ */ _be({+var bq = [], xq = 0, { link: Sq, unlink: xbe, propagate: Sbe, checkDirty: Cq, shallowPropagate: wq } = /* @__PURE__ */ ybe({update(e) {return e._update();},@@ -58204,7 +58229,7 @@ var bq = [], xq = 0, { link: Sq, unlink: ybe, propagate: bbe, checkDirty: Cq, she.depsTail !== void 0 && (e.depsTail = void 0, e.flags = 17, kq(e));}}), Tq = 0, Eq = 0, Dq, Oq = 0;-function xbe(e) {+function Cbe(e) {try {++Oq, e();} finally {@@ -58213,7 +58238,7 @@ function xbe(e) {}function kq(e) {let t = e.depsTail, n = t === void 0 ? e.deps : t.nextDep;- for (; n !== void 0;) n = ybe(n, e);+ for (; n !== void 0;) n = xbe(n, e);}function Aq() {if (!(Oq > 0)) {@@ -58224,7 +58249,7 @@ function Aq() {Tq = 0, Eq = 0;}}-function Sbe(e, t) {+function wbe(e, t) {let n = typeof e == "function", r = e, i = {_snapshot: n ? void 0 : e,subs: void 0,@@ -58236,7 +58261,7 @@ function Sbe(e, t) {return Dq !== void 0 && Sq(i, Dq, xq), i._snapshot;},subscribe(e) {- let t = vbe(e), n = { current: !1 }, r = Cbe(() => {+ let t = bbe(e), n = { current: !1 }, r = Tbe(() => {i.get(), n.current ? (Dq = void 0, t.next?.(i._snapshot)) : n.current = !0;});return { unsubscribe: () => {@@ -58268,11 +58293,11 @@ function Sbe(e, t) {}) : i.set = function(e) {if (i._update(e)) {let e = i.subs;- e !== void 0 && (bbe(e), wq(e), Aq());+ e !== void 0 && (Sbe(e), wq(e), Aq());}}, i;}-function Cbe(e) {+function Tbe(e) {let t = () => {let t = Dq;Dq = n, ++xq, n.depsTail = void 0, n.flags = 6;@@ -58321,7 +58346,7 @@ function Mq(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 wbe = /* @__PURE__ */ o(((e) => {+var Ebe = /* @__PURE__ */ o(((e) => {var t = A(), n = fw();function r(e, t) {return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;@@ -58367,32 +58392,32 @@ var wbe = /* @__PURE__ */ o(((e) => {}, [p]), l(p), p;};})), Nq = /* @__PURE__ */ o(((e, t) => {- t.exports = wbe();-})), Tbe = Nq();-function Ebe(e, t) {+ t.exports = Ebe();+})), Dbe = Nq();+function Obe(e, t) {return e === t;}function Pq(e, t = (e) => e, n) {- let r = n?.compare ?? Ebe, i = (0, F.useCallback)((t) => {+ let r = n?.compare ?? Obe, i = (0, F.useCallback)((t) => {let { unsubscribe: n } = e.subscribe(t);return n;}, [e]), a = (0, F.useCallback)(() => e.get(), [e]);- return (0, Tbe.useSyncExternalStoreWithSelector)(i, a, a, t, r);+ return (0, Dbe.useSyncExternalStoreWithSelector)(i, a, a, t, r);}// node_modules/@tanstack/react-table/dist/Subscribe.js-function Dbe(e) {+function kbe(e) {let t = Pq(e.source, e.selector, { compare: jq });return typeof e.children == "function" ? e.children(t) : e.children;}// node_modules/@tanstack/table-core/dist/core/reactivity/coreReactivityFeature.utils.js-function Obe(e) {+function Abe(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 kbe(e) {+function jbe(e) {let { createAtom: t, batch: n } = e, r = t(0);return {createOptionsStore: !1,@@ -58422,7 +58447,7 @@ function kbe(e) {}};}-function Abe(e, t = Object.is) {+function Mbe(e, t = Object.is) {let n = !1, r;return {get: e.get,@@ -58435,10 +58460,10 @@ function Abe(e, t = Object.is) {};}// node_modules/@tanstack/react-table/dist/reactivity.js-function jbe() {- return kbe({- createAtom: Sbe,- batch: xbe+function Nbe() {+ return jbe({+ createAtom: wbe,+ batch: Cbe});}// node_modules/@tanstack/table-core/dist/utils.js@@ -58492,9 +58517,9 @@ function Vq(e) {function Hq(e) {return Reflect.ownKeys(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));}-var Mbe = 3;-function Nbe(e, t) {- return Uq(e, t, Mbe);+var Pbe = 3;+function Fbe(e, t) {+ return Uq(e, t, Pbe);}function Uq(e, t, n) {if (Object.is(e, t)) return !0;@@ -58508,17 +58533,17 @@ function Uq(e, t, n) {}return !0;}-function Wq(e, t, n, r = Nbe) {+function Wq(e, t, n, r = Fbe) {let i = `on${t.charAt(0).toUpperCase()}${t.slice(1)}Change`, a = e.options[i];a && a((e) => {let t = Fq(n, e);return r(e, t) ? e : t;});}-function Pbe(e) {+function Ibe(e) {return e instanceof Function;}-function Fbe(e, t) {+function Lbe(e, t) {let n = [], r = (e) => {e.forEach((e) => {n.push(e);@@ -58528,7 +58553,7 @@ function Fbe(e, t) {};return r(e), n;}-var Ibe = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {+var Rbe = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {let o = [], s;return (c) => {i?.();@@ -58553,7 +58578,7 @@ function Kq({ feature: e, fnName: t, objectId: n, onAfterUpdate: r, table: i, ..let { schedule: e, untrack: t } = i._reactivity;e(() => t(() => r()));} : void 0 };- return Ibe({+ return Rbe({...a,...o});@@ -58606,13 +58631,13 @@ function Xq(e, t, n, ...r) {return e[t]?.(...r) ?? n(e, ...r);}// node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.utils.js-function Lbe(e) {+function zbe(e) {return e.row.getValue(e.column.id);}-function Rbe(e) {+function Bbe(e) {return e.getValue() ?? e.table.options.renderFallbackValue;}-function zbe(e) {+function Vbe(e) {return {table: e.table,column: e.column,@@ -58623,18 +58648,18 @@ function zbe(e) {};}// node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.js-var Bbe = { assignCellPrototype: (e, t) => {+var Hbe = { assignCellPrototype: (e, t) => {Yq("coreCellsFeature", e, t, {- cell_getValue: { fn: (e) => Lbe(e) },- cell_renderValue: { fn: (e) => Rbe(e) },+ cell_getValue: { fn: (e) => zbe(e) },+ cell_renderValue: { fn: (e) => Bbe(e) },cell_getContext: {- fn: (e) => zbe(e),+ fn: (e) => Vbe(e),memoDeps: (e) => [e]}});} };// node_modules/@tanstack/table-core/dist/core/columns/constructColumn.js-function Vbe(e) {+function Ube(e) {if (!e._columnPrototype) {e._columnPrototype = { table: e };let t = Object.values(e._features);@@ -58642,7 +58667,7 @@ function Vbe(e) {}return e._columnPrototype;}-function Hbe(e, t, n, r) {+function Wbe(e, t, n, r) {let i = {...e.getDefaultColumnDef(),...t@@ -58662,7 +58687,7 @@ function Hbe(e, t, n, r) {} else c = (e) => e[i.accessorKey];}if (!s) throw Error();- let l = Vbe(e), u = Object.create(l);+ let l = Ube(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);@@ -58672,7 +58697,7 @@ function Hbe(e, t, n, r) {function Zq(e) {return e.getIsVisible?.() ?? !0;}-function Ube(e) {+function Gbe(e) {return e.getVisibleLeafColumns?.() ?? e.getAllLeafColumns();}function Qq(e, t) {@@ -58685,30 +58710,30 @@ function $q(e, t, n, r) {function eJ(e, t) {return e._expandRows?.(t) ?? t;}-function Wbe(e) {+function Kbe(e) {e.autoResetExpanded?.();}function tJ(e) {e.autoResetPageIndex?.();}-function Gbe(e) {+function qbe(e) {e.autoResetSorting?.();}-function Kbe(e) {+function Jbe(e) {e.autoResetCellSelection?.();}// node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.utils.js-function qbe(e) {+function Ybe(e) {return [e, ...e.columns.flatMap((e) => e.getFlatColumns())];}-function Jbe(e) {+function Xbe(e) {if (e.columns.length) {let t = e.columns.flatMap((e) => e.getLeafColumns());return Qq(e.table, t);}return [e];}-function Ybe(e) {+function Zbe(e) {return {header: (e) => {let t = e.header.column.columnDef;@@ -58723,18 +58748,18 @@ function nJ(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 = Hbe(e, o, r, n), c = o;+ let o = t[a], s = Wbe(e, o, r, n), c = o;s.columns = c.columns ? nJ(e, c.columns, s, r + 1) : [], i[a] = s;}return i;}-function Xbe(e) {+function Qbe(e) {return nJ(e, e.options.columns);}-function Zbe(e) {+function $be(e) {return e.getAllColumns().flatMap((e) => e.getFlatColumns());}-function Qbe(e) {+function exe(e) {let t = Rq(), n = e.getAllFlatColumns();for (let e = 0; e < n.length; e++) {let r = n[e];@@ -58742,10 +58767,10 @@ function Qbe(e) {}return t;}-function $be(e) {+function txe(e) {return Qq(e, e.getAllColumns().flatMap((e) => e.getLeafColumns()));}-function exe(e) {+function nxe(e) {let t = Rq(), n = e.getAllLeafColumns();for (let e = 0; e < n.length; e++) {let r = n[e];@@ -58753,19 +58778,19 @@ function exe(e) {}return t;}-function txe(e, t) {+function rxe(e, t) {return e.getAllFlatColumnsById()[t];}// node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.js-var nxe = {+var ixe = {assignColumnPrototype: (e, t) => {Yq("coreColumnsFeature", e, t, {column_getFlatColumns: {- fn: (e) => qbe(e),+ fn: (e) => Ybe(e),memoDeps: (e) => [e.table.options.columns]},column_getLeafColumns: {- fn: (e) => Jbe(e),+ fn: (e) => Xbe(e),memoDeps: (e) => [e.table.atoms.columnOrder?.get(),e.table.atoms.grouping?.get(),@@ -58778,23 +58803,23 @@ var nxe = {constructTableAPIs: (e) => {Jq("coreColumnsFeature", e, {table_getDefaultColumnDef: {- fn: () => Ybe(e),+ fn: () => Zbe(e),memoDeps: () => [e.options.defaultColumn]},table_getAllColumns: {- fn: () => Xbe(e),+ fn: () => Qbe(e),memoDeps: () => [e.options.columns]},table_getAllFlatColumns: {- fn: () => Zbe(e),+ fn: () => $be(e),memoDeps: () => [e.options.columns]},table_getAllFlatColumnsById: {- fn: () => Qbe(e),+ fn: () => exe(e),memoDeps: () => [e.options.columns]},table_getAllLeafColumns: {- fn: () => $be(e),+ fn: () => txe(e),memoDeps: () => [e.atoms.columnOrder?.get(),e.atoms.grouping?.get(),@@ -58803,15 +58828,15 @@ var nxe = {]},table_getAllLeafColumnsById: {- fn: () => exe(e),+ fn: () => nxe(e),memoDeps: () => [e.getAllLeafColumns()]},- table_getColumn: { fn: (t) => txe(e, t) }+ table_getColumn: { fn: (t) => rxe(e, t) }});}};// node_modules/@tanstack/table-core/dist/core/headers/constructHeader.js-function rxe(e) {+function axe(e) {if (!e._headerPrototype) {e._headerPrototype = { table: e };let t = Object.values(e._features);@@ -58820,7 +58845,7 @@ function rxe(e) {return e._headerPrototype;}function rJ(e, t, n) {- let r = rxe(e), i = Object.create(r);+ let r = axe(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);@@ -58835,14 +58860,14 @@ function iJ(e, t = 1) {}return n;}-function ixe(e, t) {+function oxe(e, t) {return e ? `${e}_${t}` : String(t);}-function axe(e, t, n, r) {+function sxe(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 oxe(e, t) {+function cxe(e, t) {let n = 0;for (let r = 0; r < e.length; r++) e[r].column === t && n++;return n;@@ -58850,7 +58875,7 @@ function oxe(e, t) {function aJ(e, t, n, r, i, a) {let o = {depth: t,- id: ixe(r, t),+ id: oxe(r, t),headers: []}, s = [];for (let i = 0; i < e.length; i++) {@@ -58859,9 +58884,9 @@ function aJ(e, t, n, r, i, a) {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 = rJ(n, u, {- id: axe(r, t, u.id, a.id),+ id: sxe(r, t, u.id, a.id),isPlaceholder: d,- placeholderId: d ? String(oxe(s, u)) : void 0,+ placeholderId: d ? String(cxe(s, u)) : void 0,depth: t,index: s.length});@@ -58891,7 +58916,7 @@ function oJ(e) {} else n.rowSpan = 1;}}-function sxe(e, t, n, r) {+function lxe(e, t, n, r) {let i = iJ(e), a = [], o = n._headerGroupInstanceInitFns, s = Array(t.length);for (let e = 0; e < t.length; e++) e in t && (s[e] = rJ(n, t[e], {depth: i,@@ -58904,24 +58929,24 @@ function sJ(e, t) {for (let n = 0; n < e.subHeaders.length; n++) sJ(e.subHeaders[n], t);t.push(e);}-function cxe(e) {+function uxe(e) {let t = [];return sJ(e, t), t;}-function lxe(e) {+function dxe(e) {return {column: e.column,header: e,table: e.column.table};}-function uxe(e) {- return sxe(e.getAllColumns(), $q(e, Ube(e), (e) => e.id), e);+function fxe(e) {+ return lxe(e.getAllColumns(), $q(e, Gbe(e), (e) => e.id), e);}-function dxe(e) {+function pxe(e) {return [...e.getHeaderGroups()].reverse();}-function fxe(e) {+function mxe(e) {let t = e.getHeaderGroups(), n = [];for (let e = 0; e < t.length; e++) {let r = t[e].headers;@@ -58929,7 +58954,7 @@ function fxe(e) {}return n;}-function pxe(e) {+function hxe(e) {let t = e.getHeaderGroups()[0]?.headers ?? [], n = [];for (let e = 0; e < t.length; e++) {let r = t[e].getLeafHeaders();@@ -58938,15 +58963,15 @@ function pxe(e) {return n;}// node_modules/@tanstack/table-core/dist/core/headers/coreHeadersFeature.js-var mxe = {+var gxe = {assignHeaderPrototype: (e, t) => {Yq("coreHeadersFeature", e, t, {header_getLeafHeaders: {- fn: (e) => cxe(e),+ fn: (e) => uxe(e),memoDeps: (e) => [e.column.table.options.columns]},header_getContext: {- fn: (e) => lxe(e),+ fn: (e) => dxe(e),memoDeps: (e) => [e.column.table.options.columns]}});@@ -58954,7 +58979,7 @@ var mxe = {constructTableAPIs: (e) => {Jq("coreHeadersFeature", e, {table_getHeaderGroups: {- fn: () => uxe(e),+ fn: () => fxe(e),memoDeps: () => [e.options.columns,e.atoms.columnOrder?.get(),@@ -58965,22 +58990,22 @@ var mxe = {]},table_getFooterGroups: {- fn: () => dxe(e),+ fn: () => pxe(e),memoDeps: () => [e.getHeaderGroups()]},table_getFlatHeaders: {- fn: () => fxe(e),+ fn: () => mxe(e),memoDeps: () => [e.getHeaderGroups()]},table_getLeafHeaders: {- fn: () => pxe(e),+ fn: () => hxe(e),memoDeps: () => [e.getHeaderGroups()]}});}};// node_modules/@tanstack/table-core/dist/core/rows/constructRow.js-function hxe(e) {+function _xe(e) {if (!e._rowPrototype) {e._rowPrototype = { table: e };let t = Object.values(e._features);@@ -58988,35 +59013,35 @@ function hxe(e) {}return e._rowPrototype;}-var gxe = (e, t, n, r, i, a, o) => {- let s = hxe(e), c = Object.create(s);+var vxe = (e, t, n, r, i, a, o) => {+ let s = _xe(e), c = Object.create(s);c._displayIndexCache = -1, c._uniqueValuesCache = Rq(), c._valuesCache = Rq(), 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 _xe() {+function yxe() {return (e) => Kq({feature: "coreRowModelsFeature",table: e,fnName: "table.getCoreRowModel",memoDeps: () => [e.options.data],- fn: () => vxe(e, e.options.data),+ fn: () => bxe(e, e.options.data),onAfterUpdate: Gq(() => {- Wbe(e), tJ(e), Gbe(e), Kbe(e);+ Kbe(e), tJ(e), qbe(e), Jbe(e);})});}function cJ(e, t, n, r = 0, i) {let a = [];for (let o = 0; o < n.length; o++) {- let s = n[o], c = gxe(e, e.getRowId(s, o, i), s, o, r, void 0, i?.id);+ let s = n[o], c = vxe(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 = cJ(e, t, c.originalSubRows, r + 1, c)));}return a;}-function vxe(e, t) {+function bxe(e, t) {let n = {rows: [],flatRows: [],@@ -59025,61 +59050,61 @@ function vxe(e, t) {return n.rows = cJ(e, n, t), n;}// node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.utils.js-function yxe(e) {- return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = e.options.features.coreRowModel?.(e) ?? _xe()(e)), e._rowModels.coreRowModel();+function xxe(e) {+ return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = e.options.features.coreRowModel?.(e) ?? yxe()(e)), e._rowModels.coreRowModel();}-function bxe(e) {+function Sxe(e) {return e.getCoreRowModel();}-function xxe(e) {+function Cxe(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 Sxe(e) {+function wxe(e) {return e.getFilteredRowModel();}-function Cxe(e) {+function Txe(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 wxe(e) {+function Exe(e) {return e.getGroupedRowModel();}-function Txe(e) {+function Dxe(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 Exe(e) {+function Oxe(e) {return e.getSortedRowModel();}-function Dxe(e) {+function kxe(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 Oxe(e) {+function Axe(e) {return e.getExpandedRowModel();}-function kxe(e) {+function jxe(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 Axe(e) {+function Mxe(e) {return e.getPaginatedRowModel();}// node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.js-var jxe = { constructTableAPIs: (e) => {+var Nxe = { constructTableAPIs: (e) => {Jq("coreRowModelsFeature", e, {- table_getCoreRowModel: { fn: () => yxe(e) },- table_getPreFilteredRowModel: { fn: () => bxe(e) },- table_getFilteredRowModel: { fn: () => xxe(e) },- table_getPreGroupedRowModel: { fn: () => Sxe(e) },- table_getGroupedRowModel: { fn: () => Cxe(e) },- table_getPreSortedRowModel: { fn: () => wxe(e) },- table_getSortedRowModel: { fn: () => Txe(e) },- table_getPreExpandedRowModel: { fn: () => Exe(e) },- table_getExpandedRowModel: { fn: () => Dxe(e) },- table_getPrePaginatedRowModel: { fn: () => Oxe(e) },- table_getPaginatedRowModel: { fn: () => kxe(e) },- table_getRowModel: { fn: () => Axe(e) }+ table_getCoreRowModel: { fn: () => xxe(e) },+ table_getPreFilteredRowModel: { fn: () => Sxe(e) },+ table_getFilteredRowModel: { fn: () => Cxe(e) },+ table_getPreGroupedRowModel: { fn: () => wxe(e) },+ table_getGroupedRowModel: { fn: () => Txe(e) },+ table_getPreSortedRowModel: { fn: () => Exe(e) },+ table_getSortedRowModel: { fn: () => Dxe(e) },+ table_getPreExpandedRowModel: { fn: () => Oxe(e) },+ table_getExpandedRowModel: { fn: () => kxe(e) },+ table_getPrePaginatedRowModel: { fn: () => Axe(e) },+ table_getPaginatedRowModel: { fn: () => jxe(e) },+ table_getRowModel: { fn: () => Mxe(e) }});} };// node_modules/@tanstack/table-core/dist/core/cells/constructCell.js-function Mxe(e) {+function Pxe(e) {if (!e._cellPrototype) {e._cellPrototype = { table: e };let t = Object.values(e._features);@@ -59087,48 +59112,48 @@ function Mxe(e) {}return e._cellPrototype;}-function Nxe(e, t, n) {- let r = Mxe(n), i = Object.create(r);+function Fxe(e, t, n) {+ let r = Pxe(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 Pxe(e) {+function Ixe(e) {let t = e.table.getRowsInDisplayOrder(), n = e._displayIndexCache;return t[n] === e ? n : -1;}-function Fxe(e) {+function Lxe(e) {let t = e.getPrePaginatedRowModel(), n = e.options.paginateExpandedRows === !1 ? eJ(e, t).rows : t.rows;for (let e = 0; e < n.length; e++) n[e]._displayIndexCache = e;return n;}-function Ixe(e, t) {+function Rxe(e, t) {if (zq(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 Lxe(e, t) {+function zxe(e, t) {if (zq(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 Rxe(e, t) {+function Bxe(e, t) {return e.getValue(t) ?? e.table.options.renderFallbackValue;}-function zxe(e) {- return Fbe(e.subRows, (e) => e.subRows);+function Vxe(e) {+ return Lbe(e.subRows, (e) => e.subRows);}-function Bxe(e) {+function Hxe(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 Vxe(e) {+function Uxe(e) {if (e.parentId) return e.table.getCoreRowModel().rowsById[e.parentId] ?? e.table.getRow(e.parentId, !0);}-function Hxe(e) {+function Wxe(e) {let t = [], n = e;for (;;) {let e = n.getParentRow();@@ -59137,17 +59162,17 @@ function Hxe(e) {}return t.reverse();}-function Uxe(e) {+function Gxe(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 = Nxe(a, e, e.table), n.set(a, o)), r[i] = o;+ o || (o = Fxe(a, e, e.table), n.set(a, o)), r[i] = o;}return r;}-function Wxe(e) {+function Kxe(e) {let t = Rq(), n = e.getAllCells();for (let e = 0; e < n.length; e++) {let r = n[e];@@ -59155,52 +59180,52 @@ function Wxe(e) {}return t;}-function Gxe(e, t, n, r) {+function qxe(e, t, n, r) {return t.options.getRowId?.(e, n, r) ?? (r ? `${r.id}.${n}` : String(n));}-function Kxe(e, t, n) {+function Jxe(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 qxe = {+var Yxe = {assignRowPrototype: (e, t) => {Yq("coreRowsFeature", e, t, {- row_getDisplayIndex: { fn: (e) => Pxe(e) },+ row_getDisplayIndex: { fn: (e) => Ixe(e) },row_getAllCellsByColumnId: {- fn: (e) => Wxe(e),+ fn: (e) => Kxe(e),memoDeps: (e) => [e.getAllCells()]},row_getAllCells: {- fn: (e) => Uxe(e),+ fn: (e) => Gxe(e),memoDeps: (e) => [e.table.getAllLeafColumns()]},row_getLeafRows: {- fn: (e) => zxe(e),+ fn: (e) => Vxe(e),memoDeps: (e) => [e.subRows]},- row_getParentRow: { fn: (e) => Vxe(e) },- row_getParentRows: { fn: (e) => Hxe(e) },- row_getUniqueValues: { fn: (e, t) => Lxe(e, t) },- row_getValue: { fn: (e, t) => Ixe(e, t) },- row_renderValue: { fn: (e, t) => Rxe(e, t) }+ row_getParentRow: { fn: (e) => Uxe(e) },+ row_getParentRows: { fn: (e) => Wxe(e) },+ row_getUniqueValues: { fn: (e, t) => zxe(e, t) },+ row_getValue: { fn: (e, t) => Rxe(e, t) },+ row_renderValue: { fn: (e, t) => Bxe(e, t) }});},constructTableAPIs: (e) => {Jq("coreRowsFeature", e, {table_getRowsInDisplayOrder: {- fn: () => Fxe(e),+ fn: () => Lxe(e),memoDeps: () => [e.getPrePaginatedRowModel().rows,e.options.paginateExpandedRows,e.options.paginateExpandedRows === !1 ? e.atoms.expanded?.get() : void 0]},- table_getRowId: { fn: (t, n, r) => Gxe(t, e, n, r) },- table_getRow: { fn: (t, n) => Kxe(e, t, n) },+ table_getRowId: { fn: (t, n, r) => qxe(t, e, n, r) },+ table_getRow: { fn: (t, n) => Jxe(e, t, n) },table_getMaxSubRowDepth: {- fn: () => Bxe(e),+ fn: () => Hxe(e),memoDeps: () => [e.getCoreRowModel()]}});@@ -59223,7 +59248,7 @@ function uJ(e, t, n = (e, t) => e === t) {lJ(e, t, n), e._reactivity.commit?.();});}-function Jxe(e) {+function Xxe(e) {let t = Iq(e.initialState);e._reactivity.batch(() => {let n = Object.keys(t);@@ -59235,7 +59260,7 @@ function Jxe(e) {let n = Object.values(e._features);for (let t = 0; t < n.length; t++) n[t].resetTableInstanceData?.(e);}-function Yxe(e, t) {+function Zxe(e, t) {let { features: n, atoms: r, initialState: i } = e.options;if (!e.options.mergeOptions) return {...e.options,@@ -59268,19 +59293,19 @@ function Yxe(e, t) {});}function dJ(e, t, n) {- let r = Yxe(e, Fq(t, e.options));+ let r = Zxe(e, Fq(t, e.options));e.optionsStore ? e.optionsStore.set(() => r) : e.options = r, n?.syncExternalState !== !1 && uJ(e, r.state ?? null);}// node_modules/@tanstack/table-core/dist/core/coreFeatures.js-var Xxe = {- coreCellsFeature: Bbe,- coreColumnsFeature: nxe,- coreHeadersFeature: mxe,- coreRowModelsFeature: jxe,- coreRowsFeature: qxe,+var Qxe = {+ coreCellsFeature: Hbe,+ coreColumnsFeature: ixe,+ coreHeadersFeature: gxe,+ coreRowModelsFeature: Nxe,+ coreRowsFeature: Yxe,coreTablesFeature: { constructTableAPIs: (e) => {Jq("coreTablesFeature", e, {- table_reset: { fn: () => Jxe(e) },+ table_reset: { fn: () => Xxe(e) },table_setOptions: { fn: (t) => dJ(e, t) }});} }@@ -59305,17 +59330,17 @@ function pJ(e) {return e;}// node_modules/@tanstack/table-core/dist/core/table/constructTable.js-function Zxe(e, t = {}) {+function $xe(e, t = {}) {return Object.values(e).forEach((e) => {t = e.getInitialState?.(t) ?? t;}), Iq(t);}-function Qxe(e) {+function eSe(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: {- ...Xxe,+ ...Qxe,..._},_headerGroupInstanceInitFns: [],@@ -59353,7 +59378,7 @@ function Qxe(e) {set(e) {v.optionsStore.set(() => e);}- })) : v.options = b, v.initialState = Zxe(v._features, v.options.initialState);+ })) : v.options = b, v.initialState = $xe(v._features, v.options.initialState);let x = Object.keys(v.initialState);for (let e = 0; e < x.length; e++) {let n = x[e];@@ -59368,7 +59393,7 @@ function Qxe(e) {return r;}, { debugName: `table/atoms/${n}` });}- lJ(v), v.store = Obe(t.createReadonlyAtom(() => {+ lJ(v), v.store = Abe(t.createReadonlyAtom(() => {let e = {};for (let t = 0; t < x.length; t++) {let n = x[t];@@ -59386,7 +59411,7 @@ function Qxe(e) {return v;}// node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.utils.js-function $xe() {+function tSe() {return Rq();}function mJ(e, t) {@@ -59408,12 +59433,12 @@ function hJ(e) {function gJ(e) {return (e.columnDef.enableHiding ?? !0) && (e.table.options.enableHiding ?? !0);}-function eSe(e) {+function nSe(e) {return (t) => {mJ(e, t.target.checked);};}-function tSe(e) {+function rSe(e) {let t = e.getAllCells(), n = [];for (let e = 0; e < t.length; e++) {let r = t[e];@@ -59429,16 +59454,16 @@ function _J(e) {}return t;}-function nSe(e) {+function iSe(e) {return e.getAllFlatColumns().filter((e) => Xq(e, "getIsVisible", hJ));}-function rSe(e) {+function aSe(e) {return e.getAllLeafColumns().filter((e) => Xq(e, "getIsVisible", hJ));}function vJ(e, t) {Wq(e, "columnVisibility", t);}-function iSe(e, t) {+function oSe(e, t) {vJ(e, t ? Rq() : Object.assign(Rq(), Iq(e.initialState.columnVisibility ?? {})));}function yJ(e, t) {@@ -59453,10 +59478,10 @@ function yJ(e, t) {function bJ(e) {return !e.getAllLeafColumns().some((e) => !Xq(e, "getIsVisible", hJ));}-function aSe(e) {+function sSe(e) {return e.getAllLeafColumns().some((e) => Xq(e, "getIsVisible", hJ));}-function oSe(e) {+function cSe(e) {return (t) => {yJ(e, t.target.checked);};@@ -59464,7 +59489,7 @@ function oSe(e) {// node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.jsvar xJ = {getInitialState: (e) => ({- columnVisibility: $xe(),+ columnVisibility: tSe(),...e}),getDefaultTableOptions: (e) => ({ onColumnVisibilityChange: Bq("columnVisibility", e) }),@@ -59479,14 +59504,14 @@ var xJ = {]},column_getCanHide: { fn: (e) => gJ(e) },- column_getToggleVisibilityHandler: { fn: (e) => eSe(e) },+ column_getToggleVisibilityHandler: { fn: (e) => nSe(e) },column_toggleVisibility: { fn: (e, t) => mJ(e, t) }});},assignRowPrototype: (e, t) => {Yq("columnVisibilityFeature", e, t, {row_getVisibleCells: {- fn: (e) => tSe(e),+ fn: (e) => rSe(e),memoDeps: (e) => [e.getAllCells(),t.atoms.columnPinning?.get(),@@ -59502,7 +59527,7 @@ var xJ = {constructTableAPIs: (e) => {Jq("columnVisibilityFeature", e, {table_getVisibleFlatColumns: {- fn: () => nSe(e),+ fn: () => iSe(e),memoDeps: () => [e.atoms.columnVisibility?.get(),e.atoms.columnOrder?.get(),@@ -59512,7 +59537,7 @@ var xJ = {]},table_getVisibleLeafColumns: {- fn: () => rSe(e),+ fn: () => aSe(e),memoDeps: () => [e.atoms.columnVisibility?.get(),e.atoms.columnOrder?.get(),@@ -59522,11 +59547,11 @@ var xJ = {]},table_setColumnVisibility: { fn: (t) => vJ(e, t) },- table_resetColumnVisibility: { fn: (t) => iSe(e, t) },+ table_resetColumnVisibility: { fn: (t) => oSe(e, t) },table_toggleAllColumnsVisible: { fn: (t) => yJ(e, t) },table_getIsAllColumnsVisible: { fn: () => bJ(e) },- table_getIsSomeColumnsVisible: { fn: () => aSe(e) },- table_getToggleAllColumnsVisibilityHandler: { fn: () => oSe(e) }+ table_getIsSomeColumnsVisible: { fn: () => sSe(e) },+ table_getToggleAllColumnsVisibilityHandler: { fn: () => cSe(e) }});}}, SJ = 0, CJ = 10;@@ -59536,7 +59561,7 @@ function wJ() {pageSize: CJ};}-function sSe(e) {+function lSe(e) {if (e.options.autoResetAll ?? e.options.autoResetPageIndex ?? !e.options.manualPagination) {if ((e.atoms.pagination?.get()?.pageIndex ?? SJ) === SJ) return;DJ(e, !0);@@ -59545,7 +59570,7 @@ function sSe(e) {function TJ(e, t) {Wq(e, "pagination", t);}-function cSe(e, t) {+function uSe(e, t) {TJ(e, t ? wJ() : Iq(e.initialState.pagination ?? wJ()));}function EJ(e, t) {@@ -59560,7 +59585,7 @@ function EJ(e, t) {function DJ(e, t) {EJ(e, t ? SJ : e.initialState.pagination?.pageIndex ?? SJ);}-function lSe(e, t) {+function dSe(e, t) {OJ(e, t ? CJ : e.initialState.pagination?.pageSize ?? CJ);}function OJ(e, t) {@@ -59573,31 +59598,31 @@ function OJ(e, t) {};});}-function uSe(e) {+function fSe(e) {let t = kJ(e), n = [];return t && t > 0 && (n = [...Array(t)].fill(null).map((e, t) => t)), n;}-function dSe(e) {+function pSe(e) {return (e.atoms.pagination?.get()?.pageIndex ?? 0) > 0;}-function fSe(e) {+function mSe(e) {let t = e.atoms.pagination?.get()?.pageIndex ?? SJ, n = kJ(e);return n === -1 || n !== 0 && t < n - 1;}-function pSe(e) {+function hSe(e) {let t = e.atoms.pagination?.get()?.pageIndex ?? SJ, n = kJ(e);return Number.isFinite(n) && n > 0 && t < n - 1;}-function mSe(e) {+function gSe(e) {return EJ(e, (e) => e - 1);}-function hSe(e) {+function _Se(e) {return EJ(e, (e) => e + 1);}-function gSe(e) {+function vSe(e) {return EJ(e, 0);}-function _Se(e) {+function ySe(e) {let t = kJ(e);if (!(!Number.isFinite(t) || t <= 0)) return EJ(e, t - 1);}@@ -59622,34 +59647,34 @@ var jJ = {getDefaultTableOptions: (e) => ({ onPaginationChange: Bq("pagination", e) }),constructTableAPIs: (e) => {Jq("rowPaginationFeature", e, {- table_autoResetPageIndex: { fn: () => sSe(e) },+ table_autoResetPageIndex: { fn: () => lSe(e) },table_setPagination: { fn: (t) => TJ(e, t) },- table_resetPagination: { fn: (t) => cSe(e, t) },+ table_resetPagination: { fn: (t) => uSe(e, t) },table_setPageIndex: { fn: (t) => EJ(e, t) },table_resetPageIndex: { fn: (t) => DJ(e, t) },table_setPageSize: { fn: (t) => OJ(e, t) },table_getPageCount: { fn: () => kJ(e) },- table_resetPageSize: { fn: (t) => lSe(e, t) },- table_getPageOptions: { fn: () => uSe(e) },- table_getCanPreviousPage: { fn: () => dSe(e) },- table_getCanNextPage: { fn: () => fSe(e) },- table_getCanLastPage: { fn: () => pSe(e) },- table_previousPage: { fn: () => mSe(e) },- table_nextPage: { fn: () => hSe(e) },- table_firstPage: { fn: () => gSe(e) },- table_lastPage: { fn: () => _Se(e) },+ table_resetPageSize: { fn: (t) => dSe(e, t) },+ table_getPageOptions: { fn: () => fSe(e) },+ table_getCanPreviousPage: { fn: () => pSe(e) },+ table_getCanNextPage: { fn: () => mSe(e) },+ table_getCanLastPage: { fn: () => hSe(e) },+ table_previousPage: { fn: () => gSe(e) },+ table_nextPage: { fn: () => _Se(e) },+ table_firstPage: { fn: () => vSe(e) },+ table_lastPage: { fn: () => ySe(e) },table_getRowCount: { fn: () => AJ(e) }});}};// node_modules/@tanstack/table-core/dist/features/row-selection/rowSelectionFeature.utils.js-function vSe() {+function bSe() {return Rq();}function MJ(e, t) {e.options.onRowSelectionChange?.(t);}-function ySe(e, t) {+function xSe(e, t) {e._lastSelectedRowId = null, MJ(e, t ? Rq() : Object.assign(Rq(), Iq(e.initialState.rowSelection ?? {})));}function NJ(e, t, n) {@@ -59677,10 +59702,10 @@ function PJ(e, t, n) {}), a;});}-function bSe(e) {+function SSe(e) {return e.getCoreRowModel();}-function xSe(e) {+function CSe(e) {let t = e.getCoreRowModel();return Xq(e, "getIsSomeRowsSelected", RJ) ? YJ(t, e) : {rows: [],@@ -59688,7 +59713,7 @@ function xSe(e) {rowsById: Rq()};}-function SSe(e) {+function wSe(e) {let t = e.getFilteredRowModel();return Xq(e, "getIsSomeRowsSelected", RJ) ? YJ(t, e) : {rows: [],@@ -59696,7 +59721,7 @@ function SSe(e) {rowsById: Rq()};}-function CSe(e) {+function TSe(e) {let t = e.getSortedRowModel();return Xq(e, "getIsSomeRowsSelected", RJ) ? YJ(t, e) : {rows: [],@@ -59727,15 +59752,15 @@ function LJ(e) {function RJ(e) {return Xq(e, "getSelectedRowIds", FJ).length > 0;}-function wSe(e) {+function ESe(e) {return e.getPaginatedRowModel().flatRows.filter((e) => HJ(e)).some((e) => BJ(e) || Xq(e, "getIsSomeSelected", VJ));}-function TSe(e) {+function DSe(e) {return (t) => {NJ(e, t.target.checked);};}-function ESe(e) {+function OSe(e) {return (t) => {PJ(e, t.target.checked);};@@ -59754,7 +59779,7 @@ function BJ(e) {function VJ(e) {return ZJ(e) === "some";}-function DSe(e) {+function kSe(e) {return ZJ(e) === "all";}function HJ(e) {@@ -59769,15 +59794,15 @@ function WJ(e) {let t = e.table.options;return typeof t.enableMultiRowSelection == "function" ? t.enableMultiRowSelection(e) : t.enableMultiRowSelection ?? !0;}-function OSe(e, t) {+function ASe(e, t) {let n = HJ(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 && WJ(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1) && kSe(e, s, o, t) || zJ(e, o, t), a._lastSelectedRowId = e.id;+ a.options.enableRowRangeSelection !== !1 && s !== null && WJ(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1) && jSe(e, s, o, t) || zJ(e, o, t), a._lastSelectedRowId = e.id;};}-function kSe(e, t, n, r) {+function jSe(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];@@ -59872,7 +59897,7 @@ var QJ = {e._lastSelectedRowId = null;},getInitialState: (e) => ({- rowSelection: vSe(),+ rowSelection: bSe(),...e}),getDefaultTableOptions: (e) => ({@@ -59899,7 +59924,7 @@ var QJ = {]},row_getIsAllSubRowsSelected: {- fn: (e) => DSe(e),+ fn: (e) => kSe(e),memoDeps: (e) => [e.subRows,e.table.atoms.rowSelection?.get(),@@ -59909,26 +59934,26 @@ var QJ = {row_getCanSelect: { fn: (e) => HJ(e) },row_getCanSelectSubRows: { fn: (e) => UJ(e) },row_getCanMultiSelect: { fn: (e) => WJ(e) },- row_getToggleSelectedHandler: { fn: (e, t) => OSe(e, t) }+ row_getToggleSelectedHandler: { fn: (e, t) => ASe(e, t) }});},constructTableAPIs: (e) => {Jq("rowSelectionFeature", e, {table_setRowSelection: { fn: (t) => MJ(e, t) },- table_resetRowSelection: { fn: (t) => ySe(e, t) },+ table_resetRowSelection: { fn: (t) => xSe(e, t) },table_toggleAllRowsSelected: { fn: (t, n) => NJ(e, t, n) },table_toggleAllPageRowsSelected: { fn: (t, n) => PJ(e, t, n) },- table_getPreSelectedRowModel: { fn: () => bSe(e) },+ table_getPreSelectedRowModel: { fn: () => SSe(e) },table_getSelectedRowModel: {- fn: () => xSe(e),+ fn: () => CSe(e),memoDeps: () => [e.atoms.rowSelection?.get(), e.getCoreRowModel()]},table_getFilteredSelectedRowModel: {- fn: () => SSe(e),+ fn: () => wSe(e),memoDeps: () => [e.atoms.rowSelection?.get(), e.getFilteredRowModel()]},table_getGroupedSelectedRowModel: {- fn: () => CSe(e),+ fn: () => TSe(e),memoDeps: () => [e.atoms.rowSelection?.get(), e.getSortedRowModel()]},table_getSelectedRowIds: {@@ -59958,32 +59983,32 @@ var QJ = {memoDeps: () => [e.atoms.rowSelection?.get()]},table_getIsSomePageRowsSelected: {- fn: () => wSe(e),+ fn: () => ESe(e),memoDeps: () => [e.atoms.rowSelection?.get(),e.getPaginatedRowModel(),e.options.enableRowSelection]},- table_getToggleAllRowsSelectedHandler: { fn: () => TSe(e) },- table_getToggleAllPageRowsSelectedHandler: { fn: () => ESe(e) }+ table_getToggleAllRowsSelectedHandler: { fn: () => DSe(e) },+ table_getToggleAllPageRowsSelectedHandler: { fn: () => OSe(e) }});}-}, ASe = /([0-9]+)/gm;+}, MSe = /([0-9]+)/gm;/* @__NO_SIDE_EFFECTS__ */-function jSe(e) {+function NSe(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 $J = /* @__PURE__ */ jSe({ sort: (e, t) => MSe(e, t) });-function MSe(e, t) {+var $J = /* @__PURE__ */ NSe({ sort: (e, t) => PSe(e, t) });+function PSe(e, t) {return e === t ? 0 : e > t ? 1 : -1;}// node_modules/@tanstack/table-core/dist/features/row-sorting/rowSortingFeature.utils.js-function NSe() {+function FSe() {return [];}function eY(e, t) {@@ -59992,7 +60017,7 @@ function eY(e, t) {function tY(e, t) {eY(e, t ? [] : Iq(e.initialState.sorting ?? []));}-function PSe(e) {+function ISe(e) {e.atoms.sorting && (e.options.autoResetAll ?? e.options.autoResetSorting ?? !1) && tY(e);}function nY(e) {@@ -60003,7 +60028,7 @@ function nY(e) {r = "datetime";break;}- if (typeof a == "string" && (i = !0, a.split(ASe).length > 1)) {+ if (typeof a == "string" && (i = !0, a.split(MSe).length > 1)) {r = "alphanumeric";break;}@@ -60024,7 +60049,7 @@ function rY(e) {}function iY(e) {let t = e.table._rowModelFns.sortFns;- return Pbe(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? nY(e) : t?.[e.columnDef.sortFn] ?? $J;+ return Ibe(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? nY(e) : t?.[e.columnDef.sortFn] ?? $J;}function aY(e, t, n) {let r = sY(e, n && lY(e)), i = t !== void 0;@@ -60062,13 +60087,13 @@ function uY(e) {let t = e.table.atoms.sorting?.get()?.find((t) => t.id === e.id);return t ? t.desc ? "desc" : "asc" : !1;}-function FSe(e) {+function LSe(e) {return e.table.atoms.sorting?.get()?.findIndex((t) => t.id === e.id) ?? -1;}-function ISe(e) {+function RSe(e) {eY(e.table, (t) => t.length ? t.filter((t) => t.id !== e.id) : []);}-function LSe(e) {+function zSe(e) {let t = cY(e);return (n) => {t && aY(e, void 0, lY(e) ? e.table.options.isMultiSortEvent?.(n) : !1);@@ -60078,7 +60103,7 @@ function LSe(e) {var dY = {getInitialState(e) {return {- sorting: NSe(),+ sorting: FSe(),...e};},@@ -60106,34 +60131,34 @@ var dY = {column_getCanSort: { fn: (e) => cY(e) },column_getCanMultiSort: { fn: (e) => lY(e) },column_getIsSorted: { fn: (e) => uY(e) },- column_getSortIndex: { fn: (e) => FSe(e) },- column_clearSorting: { fn: (e) => ISe(e) },- column_getToggleSortingHandler: { fn: (e) => LSe(e) }+ column_getSortIndex: { fn: (e) => LSe(e) },+ column_clearSorting: { fn: (e) => RSe(e) },+ column_getToggleSortingHandler: { fn: (e) => zSe(e) }});},constructTableAPIs(e) {Jq("rowSortingFeature", e, {- table_autoResetSorting: { fn: () => PSe(e) },+ table_autoResetSorting: { fn: () => ISe(e) },table_setSorting: { fn: (t) => eY(e, t) },table_resetSorting: { fn: (t) => tY(e, t) }});}-}, RSe = typeof window > "u" ? F.useEffect : F.useLayoutEffect;+}, BSe = typeof window > "u" ? F.useEffect : F.useLayoutEffect;function fY(e, t) {let [{ table: n, rootSource: r }] = (0, F.useState)(() => {- let t = Qxe({+ let t = eSe({...e,features: {- coreReactivityFeature: jbe(),+ coreReactivityFeature: Nbe(),...e.features}});- return t.Subscribe = ((e) => Dbe({+ return t.Subscribe = ((e) => kbe({...e,source: e.source ?? t.store- })), t.FlexRender = gbe, {+ })), t.FlexRender = vbe, {table: t,- rootSource: Abe(t.store, jq)+ rootSource: Mbe(t.store, jq)};}), i = n;dJ(i, (t) => ({@@ -60141,7 +60166,7 @@ function fY(e, t) {...e}), { syncExternalState: !1 });let a = i.options.state, o = r.get(), s = Pq(r, t, { compare: jq });- return RSe(() => {+ return BSe(() => {r.markCommitted(o), uJ(i, a ?? null, jq);}), (0, F.useMemo)(() => ({...n,@@ -60165,7 +60190,7 @@ function pY({ size: e = "md", className: t, containerClassName: n, ref: r, ...i});}// src/react/catalog-grid/catalog-table-columns.ts-var mY = "peach.catalog-column-widths.v1", hY = "peach.catalog-column-visibility.v1", zSe = {+var mY = "peach.catalog-column-widths.v1", hY = "peach.catalog-column-visibility.v1", VSe = {select: {width: 48,min: 48,@@ -60231,13 +60256,13 @@ var mY = "peach.catalog-column-widths.v1", hY = "peach.catalog-column-visibilitymin: 144,max: 560}-}, BSe = {+}, HSe = {code: !1,o: !1,new: !1,played: !1,release: !1-}, VSe = {+}, USe = {select: "选择",name: "作品",dur: "时长",@@ -60267,11 +60292,11 @@ var mY = "peach.catalog-column-widths.v1", hY = "peach.catalog-column-visibility"release"].map((e) => ({id: e,- label: VSe[e],- ...zSe[e],+ label: USe[e],+ ...VSe[e],flex: e === "name",required: e === "select" || e === "name",- visible: BSe[e] !== !1+ visible: HSe[e] !== !1}));function _Y(e) {try {@@ -60281,7 +60306,7 @@ function _Y(e) {return {};}}-function HSe() {+function WSe() {let e = _Y(mY), t = _Y(hY);return gY.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);@@ -60302,22 +60327,22 @@ function yY() {return !1;}}-function USe(e) {+function GSe(e) {try {e ? localStorage.setItem(vY, "1") : localStorage.removeItem(vY);} catch {}}-var WSe = "<i data-completion-skeleton class=\"skeleton-sheen\"></i>";+var KSe = "<i data-completion-skeleton class=\"skeleton-sheen\"></i>";// src/catalog-content-skeleton.tsfunction bY(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 GSe(e) {- let t = HSe(), 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>${z(e.label)}</th>`).join("") + (n ? "" : "<th></th>"), o = `<tr>${t.map((e) => `<td>${bY(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="${z(e)}"><div data-list-skeleton aria-hidden="true"><div data-list-skeleton-tools><i class="skeleton-sheen"></i></div>` + (yY() ? WSe : "") + `<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 qSe(e) {+ let t = WSe(), 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>${z(e.label)}</th>`).join("") + (n ? "" : "<th></th>"), o = `<tr>${t.map((e) => `<td>${bY(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="${z(e)}"><div data-list-skeleton aria-hidden="true"><div data-list-skeleton-tools><i class="skeleton-sheen"></i></div>` + (yY() ? KSe : "") + `<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 xY(e, t) {- return PG() === "list" ? GSe(e) : nc(e, {+ return PG() === "list" ? qSe(e) : nc(e, {variant: "cards",className: "catalog-skeleton postercard-skeleton",cardRatio: t@@ -60350,7 +60375,7 @@ function SY({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {}// src/react/components/select.tsxfunction CY({ prefix: e, renderValue: t, size: n, ...r }) {- if (e == null) return /* @__PURE__ */ (0, I.jsx)(oW, {+ if (e == null) return /* @__PURE__ */ (0, I.jsx)(sW, {...r,size: n,renderValue: t@@ -60360,7 +60385,7 @@ function CY({ 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)(oW, {+ return /* @__PURE__ */ (0, I.jsx)(sW, {...r,size: n,renderValue: a@@ -60420,10 +60445,10 @@ function TY({ label: e, options: t, sorting: n, onChange: r }) {desc: i?.desc ?? !1}]);},- children: [/* @__PURE__ */ (0, I.jsx)(sW, {+ children: [/* @__PURE__ */ (0, I.jsx)(cW, {id: "default",children: "默认顺序"- }), t.map((e) => /* @__PURE__ */ (0, I.jsx)(sW, {+ }), t.map((e) => /* @__PURE__ */ (0, I.jsx)(cW, {id: e.id,children: e.label}, e.id))]@@ -60468,7 +60493,7 @@ function EY({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记pageSize: Number(e)});},- children: o.map((e) => /* @__PURE__ */ (0, I.jsx)(sW, {+ children: o.map((e) => /* @__PURE__ */ (0, I.jsx)(cW, {id: String(e),children: `每页 ${e} ${a}`}, e))@@ -60498,7 +60523,7 @@ function OY(e, t) {localStorage.setItem(e, JSON.stringify(t));} catch {}}-function KSe(e, t) {+function JSe(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];@@ -60530,7 +60555,7 @@ function KSe(e, t) {}};}-function qSe(e, t, n, r = {}) {+function YSe(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]))@@ -60549,7 +60574,7 @@ function kY(e, t, n) {min: e.min ?? 96,max: e.max ?? (e.flex ? 2e3 : 800),flex: e.flex- }])), [t]), i = KSe(n?.widths ?? `peach.table.${e}.widths.v1`, r), a = qSe(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 = JSe(n?.widths ?? `peach.table.${e}.widths.v1`, r), a = YSe(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,@@ -60568,14 +60593,14 @@ function kY(e, t, n) {};}// src/react/catalog-grid/catalog-column-widths.ts-function JSe() {+function XSe() {return kY("catalog", gY, {widths: mY,visibility: hY});}// src/react/components/rating-stars.tsx-var AY = OV("star");+var AY = kV("star");function jY({ 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", {@@ -60615,8 +60640,8 @@ function jY({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {});}// src/react/catalog-grid/catalog-table-controls.tsx-function YSe({ item: e, actions: t }) {- let { rating: n } = e, r = AH(), i = (0, F.useRef)(0), a = OP(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {+function ZSe({ item: e, actions: t }) {+ let { rating: n } = e, r = jH(), i = (0, F.useRef)(0), a = OP(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {TP(e.id, { rating: t }), H.setQueryData(["item", e.id], (e) => e && {...e,rating: t@@ -60633,7 +60658,7 @@ function YSe({ item: e, actions: t }) {value: a,onRate: c,busyStar: r.busy ? Number(r.busy) : void 0- }), r.error ? /* @__PURE__ */ (0, I.jsx)(TV, {+ }), r.error ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "error",action: /* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",@@ -60673,7 +60698,7 @@ function NY({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {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)(AH, {size: "small",href: e.href,trailingIcon: zB,@@ -60693,7 +60718,7 @@ function PY({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i,}, "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)(eH, {+ children: r.length ? r.map((e) => /* @__PURE__ */ (0, I.jsx)(tH, {isSelected: e.selected,className: "min-w-0 [&>span:last-child]:min-w-0 [&>span:last-child]:wrap-anywhere",isDisabled: e.disabled,@@ -60719,8 +60744,8 @@ function PY({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i,onOpenChange: u,placement: "bottom end",offset: 4,- className: q(qV, "w-max overscroll-contain"),- children: ({ placement: t }) => /* @__PURE__ */ (0, I.jsx)(NH, {+ className: q(JV, "w-max overscroll-contain"),+ children: ({ placement: t }) => /* @__PURE__ */ (0, I.jsx)(PH, {"aria-label": e,"data-selection-placement": t ?? "bottom",className: "flex w-max max-w-full flex-col gap-2 outline-none",@@ -60777,7 +60802,7 @@ function LY(e, t) {}function RY({ table: e, label: t, page: n = !1, disabled: r = !1 }) {let { all: i, some: a } = LY(e, n);- return /* @__PURE__ */ (0, I.jsx)(eH, {+ return /* @__PURE__ */ (0, I.jsx)(tH, {slot: null,"aria-label": t,isDisabled: r,@@ -60790,12 +60815,12 @@ function RY({ table: e, label: t, page: n = !1, disabled: r = !1 }) {});}// src/react/catalog-grid/catalog-list-page.tsx-var XSe = pJ({+var QSe = pJ({rowSortingFeature: dY,rowSelectionFeature: QJ,rowPaginationFeature: jJ,columnVisibilityFeature: xJ-}), ZSe = [+}), $Se = [{id: "name",label: "名称"@@ -60833,8 +60858,8 @@ var XSe = pJ({label: "观看时间"}], zY = /* @__PURE__ */ new Map();-function QSe(e) {- let t = JSe(), n = EK(), r = xP(e.filters || {}, !1), [i] = (0, F.useState)(() => {+function eCe(e) {+ let t = XSe(), n = EK(), r = xP(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)(() => zY.get(i) || {@@ -60873,7 +60898,7 @@ function QSe(e) {}}), f = d.data?.items || [], p = Number(d.data?.total || 0), m = e.filters?.state === "trash" ? [] : _q(f, e.layout.javImage), [h] = (0, F.useState)(yY);(0, F.useEffect)(() => {- d.data && !d.isPlaceholderData && USe(m.length > 0);+ d.data && !d.isPlaceholderData && GSe(m.length > 0);}, [d.data,d.isPlaceholderData,@@ -60906,7 +60931,7 @@ function QSe(e) {c.pageIndex]);let g = e.selectMode ? Object.fromEntries([...e.selected].map((e) => [String(e), !0])) : {}, _ = fY({- features: XSe,+ features: QSe,columns: (0, F.useMemo)(() => {let t = fJ();return t.columns([@@ -60917,7 +60942,7 @@ function QSe(e) {label: "全选本页作品",disabled: d.isPlaceholderData}),- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(eH, {+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(tH, {slot: null,"aria-label": `选择 ${e.helpers.displayName(t.original, t.original.name || "")}`,isDisabled: d.isPlaceholderData,@@ -60929,7 +60954,7 @@ function QSe(e) {id: "name",header: "作品",enableSorting: !0,- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)($Se, {+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(tCe, {item: t.original,props: e,disabled: d.isPlaceholderData@@ -60986,7 +61011,7 @@ function QSe(e) {id: "rating",header: "评分",enableSorting: !0,- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(YSe, {+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(ZSe, {item: t.original,actions: e.actions})@@ -61075,7 +61100,7 @@ function QSe(e) {"data-toolbar-actions": "",children: [/* @__PURE__ */ (0, I.jsx)(FY, { preferences: t }), /* @__PURE__ */ (0, I.jsx)(TY, {label: "作品列表",- options: ZSe,+ options: $Se,sorting: s,onChange: (e) => _.setSorting(e)})]@@ -61120,7 +61145,7 @@ function QSe(e) {children: [yq(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)(WV, {})+ children: /* @__PURE__ */ (0, I.jsx)(GV, {})}) : null]}), /* @__PURE__ */ (0, I.jsx)(IY, {preferences: t,@@ -61162,7 +61187,7 @@ function QSe(e) {]});}-function $Se({ item: e, props: t, disabled: n }) {+function tCe({ item: e, props: t, disabled: n }) {let r = wo(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() || "未命名作品";wL();let { avatar: l, who: u } = FK(e), d = !i && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, f = EK({ 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", {@@ -61190,7 +61215,7 @@ function $Se({ item: e, props: t, disabled: n }) {children: /* @__PURE__ */ (0, I.jsxs)("span", {"data-list-picture": "",children: [- r.html ? /* @__PURE__ */ (0, I.jsx)(uW, {+ r.html ? /* @__PURE__ */ (0, I.jsx)(dW, {artwork: r,relayout: (e) => Cl(e, "small")}) : /* @__PURE__ */ (0, I.jsx)("span", { children: "无预览" }),@@ -61245,7 +61270,7 @@ function $Se({ 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)(bU, { mark: p.icon }), p.name]+ children: [/* @__PURE__ */ (0, I.jsx)(xU, { mark: p.icon }), p.name]}) : null, u]})]})@@ -61255,13 +61280,13 @@ function $Se({ item: e, props: t, disabled: n }) {// src/react/catalog-grid/catalog-grid-page.tsxfunction BY(e) {let t = FG();- if (e.mode === "items") return /* @__PURE__ */ (0, I.jsx)(tCe, { ...e });+ if (e.mode === "items") return /* @__PURE__ */ (0, I.jsx)(rCe, { ...e });let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${xP(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;- if (t === "list" && !e.wall) return /* @__PURE__ */ (0, I.jsx)(QSe, { ...e }, n);+ if (t === "list" && !e.wall) return /* @__PURE__ */ (0, I.jsx)(eCe, { ...e }, n);let r = e.mode === "entity" ? "entity" : `catalog:${!!e.wall}`;- return /* @__PURE__ */ (0, I.jsx)(nCe, { ...e }, r);+ return /* @__PURE__ */ (0, I.jsx)(iCe, { ...e }, r);}-function eCe({ name: e }) {+function nCe({ name: e }) {return /* @__PURE__ */ (0, I.jsx)("svg", {viewBox: "0 0 24 24","aria-hidden": "true",@@ -61284,7 +61309,7 @@ function VY({ children: e, selectMode: t }) {children: e});}-function tCe(e) {+function rCe(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)(LK, {item: i,variant: r,@@ -61304,7 +61329,7 @@ function tCe(e) {children: i});}-function nCe(e) {+function iCe(e) {let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? _ue(e) : gue(e), [s] = (0, F.useState)(() => e.wall ? SP(o.queryKey) : void 0), c = JSON.stringify(o.queryKey), l = (0, F.useMemo)(() => e.restoreNavigation ? SP(o.queryKey) : void 0, [c, e.restoreNavigation]) || s || (i && e.initial ? {pages: [{...e.initial,@@ -61341,7 +61366,7 @@ function nCe(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 || Qye(e.filters), _ = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, v = f.flatMap((e) => e.kind === "card" && Kye(e.item) ? [e.item] : []), y = a ? [] : _q(f.flatMap((e) => e.kind === "card" ? [e.item] : []), r.javImage), b = (0, F.useRef)(null), x = rCe(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 || ebe(e.filters), _ = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, v = f.flatMap((e) => e.kind === "card" && Jye(e.item) ? [e.item] : []), y = a ? [] : _q(f.flatMap((e) => e.kind === "card" ? [e.item] : []), r.javImage), b = (0, F.useRef)(null), x = aCe(e, u.isPlaceholderData ? void 0 : u.data, f, p, b);(0, F.useLayoutEffect)(() => {if (!u.data || u.isPlaceholderData) return;let t = !0;@@ -61369,7 +61394,7 @@ function nCe(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)(aCe, {+ }, [u.fetchNextPage]), D = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)(sCe, {seed: i.seed,layout: r,helpers: t,@@ -61386,7 +61411,7 @@ function nCe(e) {actions: n,onOpen: a ? w : C}, i.item.id), O = () => {- if (_ && e.wall) return /* @__PURE__ */ (0, I.jsx)(sbe, {+ if (_ && e.wall) return /* @__PURE__ */ (0, I.jsx)(lbe, {sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${xP(e.filters || {}, !!e.excludeVertical)}`,items: v,finite: g,@@ -61395,7 +61420,7 @@ function nCe(e) {loading: u.isPending || !u.data && u.isFetching,error: !u.data && !u.isPending ? bn(u.error) : "",retry: () => void u.refetch(),- emptyHtml: u.data && !v.length ? ube({+ emptyHtml: u.data && !v.length ? fbe({libraryEmpty: !!u.data.pages[0]?.libraryEmpty,matches: h,hasMore: !!u.hasNextPage,@@ -61427,7 +61452,7 @@ function nCe(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: Sue(f, x).map((t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(VY, { children: t.tiles.map(D) }), t.strip ? /* @__PURE__ */ (0, I.jsx)(iCe, {+ children: Sue(f, x).map((t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(VY, { children: t.tiles.map(D) }), t.strip ? /* @__PURE__ */ (0, I.jsx)(oCe, {cut: t.strip,props: e,onOpen: T@@ -61519,7 +61544,7 @@ function HY({ entity: e, load: t, enabled: n, children: r }) {onRetry: () => void d(!0)}) : null] });}-function rCe(e, t, n, r, i) {+function aCe(e, t, n, r, i) {let a = ["catalog-short-layout", xP(e.filters || {}, !!e.excludeVertical)], o = `${a[1]}:${e.revision}`, s = () => {let t = e.restoreNavigation ? H.getQueryData(a) : void 0, n = {parts: /* @__PURE__ */ new Set(),@@ -61584,7 +61609,7 @@ function rCe(e, t, n, r, i) {});}, [d]), m;}-function iCe({ cut: e, props: t, onOpen: n }) {+function oCe({ cut: e, props: t, onOpen: n }) {let r = (0, F.useRef)(null), { wireDrag: i } = t;return (0, F.useEffect)(() => {r.current && i(r.current);@@ -61600,7 +61625,7 @@ function iCe({ cut: e, props: t, onOpen: n }) {type: "button","data-shorts-enter": "",onClick: () => t.actions.openShorts(),- children: [/* @__PURE__ */ (0, I.jsx)(eCe, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "进入沉浸模式" })]+ children: [/* @__PURE__ */ (0, I.jsx)(nCe, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "进入沉浸模式" })]})] }), /* @__PURE__ */ (0, I.jsx)("div", {ref: r,@@ -61623,7 +61648,7 @@ function iCe({ cut: e, props: t, onOpen: n }) {function UY(e, t, n) {return To(e, t.active && e.is_jav ? t.size : "small", n, t.javImage);}-function aCe({ seed: e, layout: t, helpers: n, actions: r }) {+function sCe({ seed: e, layout: t, helpers: n, actions: r }) {let i = (0, F.useRef)(/* @__PURE__ */ new Map()), a = (0, F.useRef)(t);a.current = t;let o = jo(e, n.tagLabel), s = (0, F.useCallback)(async () => {@@ -61662,31 +61687,31 @@ async function WY(e) {queryFn: () => yr(e)});}-var oCe = (e) => (e?.sources ?? []).filter((e) => _n.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), sCe = "/api/duplicates?limit=120", GY = ["duplicates"], KY = "/api/batch", qY = (e) => B(sCe, e), cCe = /[\s\-_.()[\]【】/\\]/;-function lCe(e) {+var cCe = (e) => (e?.sources ?? []).filter((e) => _n.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), lCe = "/api/duplicates?limit=120", GY = ["duplicates"], KY = "/api/batch", qY = (e) => B(lCe, e), uCe = /[\s\-_.()[\]【】/\\]/;+function dCe(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 && !cCe.test(n[r - 1]);) --r;+ for (; r > 0 && !uCe.test(n[r - 1]);) --r;return r >= 8 ? n.slice(0, r) : "";}-var uCe = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;-async function dCe(e) {+var fCe = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;+async function pCe(e) {await Promise.all([H.fetchQuery({queryKey: GY,queryFn: () => qY(e)}), WY(e)]);}-var fCe = {+var mCe = {largest: "最大的一个",longest: "最长的一个",115: "115(没有则留最大)",pikpak: "PikPak(没有则留最大)",all: "零个文件"-}, pCe = (e, t) => t.filter((t) => e.some((e) => e.location === t)), JY = (e, t) => pCe(e, t).filter((t) => e.some((e) => e.location !== t)), mCe = (e, t) => t.filter((t) => e.some((e) => JY(e.files, [t]).length));-function hCe(e, t) {+}, hCe = (e, t) => t.filter((t) => e.some((e) => e.location === t)), JY = (e, t) => hCe(e, t).filter((t) => e.some((e) => e.location !== t)), gCe = (e, t) => t.filter((t) => e.some((e) => JY(e.files, [t]).length));+function _Ce(e, t) {let n = [];for (let r of e) {if (t === "all") {@@ -61705,11 +61730,11 @@ function hCe(e, t) {}return n;}-function gCe(e, t) {+function vCe(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 _Ce(e, t) {+async function yCe(e, t) {for (let n = 0; n < e.length; n += 200) await V(KY, {ids: e.slice(n, n + 200),operation: t,@@ -61717,7 +61742,7 @@ async function _Ce(e, t) {});}// src/react/media-repair/media-repair.ts-var YY = "/api/media-repair", XY = ["media-repair"], ZY = ["media-repair", "libraries"], vCe = {+var YY = "/api/media-repair", XY = ["media-repair"], ZY = ["media-repair", "libraries"], bCe = {status: "idle",library: "",stage: "",@@ -61730,7 +61755,7 @@ var YY = "/api/media-repair", XY = ["media-repair"], ZY = ["media-repair", "librskipped: 0,message: ""}, QY = (e) => B(YY, e), $Y = async (e) => (await B("/api/libraries", e)).libraries || [];-async function yCe(e) {+async function xCe(e) {await Promise.all([H.fetchQuery({queryKey: XY,queryFn: () => QY(e)@@ -61740,28 +61765,28 @@ async function yCe(e) {})]);}var eX = (e) => Number(e).toLocaleString();-function bCe(e) {+function SCe(e) {if (e.status === "running") {let t = e.total ? `${eX(Math.min(e.checked || 0, e.total))} / ${eX(e.total)}` : "准备中";return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;}return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${eX(e.repaired)} 部,${eX(e.failed)} 部修不了` : `修好 ${eX(e.repaired)} 部` : "";}-var xCe = (e) => `${eX(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, SCe = "/api/quality-goals?limit=200", tX = ["quality-goals"], nX = (e) => B(SCe, e);-async function CCe(e) {+var CCe = (e) => `${eX(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, wCe = "/api/quality-goals?limit=200", tX = ["quality-goals"], nX = (e) => B(wCe, e);+async function TCe(e) {await H.fetchQuery({queryKey: tX,queryFn: () => nX(e)});}-var wCe = (e) => e.has_cover ? co(e) : `/poster?id=${e.id}&c=4`;+var ECe = (e) => e.has_cover ? co(e) : `/poster?id=${e.id}&c=4`;// src/selection.tsfunction rX(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 TCe = "/api/review", ECe = "/api/review/decision", DCe = "/api/review/genre", iX = ["review"], aX = {+var DCe = "/api/review", OCe = "/api/review/decision", kCe = "/api/review/genre", iX = ["review"], aX = {metadata_fields: "元数据字段",creator_tags: "创作者标签",studio_logos: "厂牌 Logo",@@ -61771,7 +61796,7 @@ var TCe = "/api/review", ECe = "/api/review/decision", DCe = "/api/review/genre"fc2_markings: "FC2 评论标记",fc2_similarity: "FC2 跨号相似",video_endcards: "片尾/出处证据"-}, OCe = Object.keys(aX), kCe = "metadata_fields", oX = (e) => typeof e == "string" && Object.hasOwn(aX, e), ACe = {+}, ACe = Object.keys(aX), jCe = "metadata_fields", oX = (e) => typeof e == "string" && Object.hasOwn(aX, e), MCe = {creator_tags: "creator",western_identity: "creator"}, sX = [@@ -61782,7 +61807,7 @@ var TCe = "/api/review", ECe = "/api/review/decision", DCe = "/api/review/genre"pending: "待处理",later: "稍后处理",ignored: "已忽略"-}, jCe = {+}, NCe = {approved: "已通过",rejected: "已忽略",skipped: "稍后处理"@@ -61790,7 +61815,7 @@ var TCe = "/api/review", ECe = "/api/review/decision", DCe = "/api/review/genre"sections: e.sections,counts: e.counts} : e.queues[t];-function MCe(e, t) {+function PCe(e, t) {return {...e,...t(uX(e, "pending")),@@ -61800,7 +61825,7 @@ function MCe(e, t) {}};}-function NCe(e, t) {+function FCe(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;}@@ -61821,10 +61846,10 @@ function dX(e, t) {}return [...n.values()];}-function PCe(e, t, n) {+function ICe(e, t, n) {return n && dX(e, t).find((e) => e.key === n)?.rows || e;}-function FCe(e, t) {+function LCe(e, t) {let n = hr(e.length, 20), r = gr(t, n);return {page: r,@@ -61832,32 +61857,32 @@ function FCe(e, t) {rows: e.slice((r - 1) * 20, r * 20)};}-function ICe(e) {+function RCe(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 LCe(e, t, n, r, i, a) {+function zCe(e, t, n, r, i, a) {return rX(e, t, n, r, i, a);}-function RCe(e, t) {+function BCe(e, t) {return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";}function fX(e, t) {return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);}var pX = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";-function zCe(e, t) {+function VCe(e, t) {let n = fX(e, t), r = pX(e, t);return r ? `${n} · ${r}` : n;}-var BCe = (e) => e.reason || e.evidence || e.note || e.decision_note || "", VCe = (e) => String(e.tags || "").split("|").filter(Boolean), HCe = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];-function UCe(e) {+var HCe = (e) => e.reason || e.evidence || e.note || e.decision_note || "", UCe = (e) => String(e.tags || "").split("|").filter(Boolean), WCe = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];+function GCe(e) {let t = e.candidates || [];return {candidateKey: t.length === 1 ? t[0].candidate_key : "",assets: (e.preview_assets || []).map((e) => e.id)};}-function WCe(e, t, n, r) {+function KCe(e, t, n, r) {let i = !!t.asset_path && t.asset_mutation_revision != null;return {category: e,@@ -61873,22 +61898,22 @@ function WCe(e, t, n, r) {...i ? { expected_revision: t.asset_mutation_revision } : {}};}-var GCe = (e) => ({+var qCe = (e) => ({approved: "已通过资料",rejected: "已忽略资料",skipped: "已移至稍后处理",restore: "已恢复待处理"})[e];async function mX(e) {- let t = await B(TCe, e);+ let t = await B(DCe, e);for (let e of ["later", "ignored"]) if (!t.queues?.[e]?.sections || !t.queues[e].counts) throw Error(`${cX[e]}状态未取得,请刷新或更新写入端`);return t;}-async function KCe(e) {- let t = await V(ECe, e);+async function JCe(e) {+ let t = await V(OCe, e);if (t.ok && t.asset_revisions) {let e = t.asset_revisions;- H.setQueryData(iX, (t) => t && MCe(t, (t) => ({+ H.setQueryData(iX, (t) => t && PCe(t, (t) => ({...t,sections: {...t.sections,@@ -61904,21 +61929,21 @@ async function KCe(e) {}return t;}-function qCe(e, t) {+function YCe(e, t) {let n = H.getQueryData(iX);return n && sX.flatMap((t) => uX(n, t).sections[e] || []).find((e) => e.item_key === t.item_key) || t;}-var JCe = (e, t) => V(DCe, {+var XCe = (e, t) => V(kCe, {genre: e,tag: t});-async function YCe(e) {+async function ZCe(e) {await H.fetchQuery({queryKey: iX,queryFn: () => mX(e)});}-function XCe(e, t, n) {+function QCe(e, t, n) {let r = new Set(t);r.size && H.setQueryData(iX, (t) => {if (!t) return t;@@ -61957,15 +61982,15 @@ function XCe(e, t, n) {};});}-var ZCe = () => H.invalidateQueries({+var $Ce = () => H.invalidateQueries({queryKey: iX,exact: !0});-function QCe(e, t) {+function ewe(e, t) {return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${Sr(e.fetched_at)} 的缓存` : e?.error || t;}// src/react/data-cleanup/links.ts-var $Ce = "/api/links", hX = "/api/links/check", gX = "/api/links/prune", _X = ["links"], vX = ["links", "check"], yX = ["links", "prune"], ewe = {+var twe = "/api/links", hX = "/api/links/check", gX = "/api/links/prune", _X = ["links"], vX = ["links", "check"], yX = ["links", "prune"], nwe = {official: "官网/事务所",social: "社交账号",catalog: "作品资料站",@@ -61976,22 +62001,22 @@ async function bX(e) {if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");return t;}-var xX = (e) => B($Ce, e), SX = (e) => V(hX, { status_only: !0 }, "POST", e), twe = ({ retry: e, checkId: t }) => bX(V(hX, e ? {+var xX = (e) => B(twe, e), SX = (e) => V(hX, { status_only: !0 }, "POST", e), rwe = ({ retry: e, checkId: t }) => bX(V(hX, e ? {retry: e,check_id: t-} : { restart: !0 })), CX = (e) => B(gX, e), nwe = ({ checkId: e, ids: t }) => bX(V(gX, {+} : { restart: !0 })), CX = (e) => B(gX, e), iwe = ({ checkId: e, ids: t }) => bX(V(gX, {confirm: !0,check_id: e,background: !0,...t ? { ids: t } : {}-})), wX = (e) => Number(e || 0).toLocaleString(), rwe = (e) => `已删除 ${wX(e.removed)} 条;${e.marked ? `已隐退女优的 ${wX(e.marked)} 条留作不可点的记录;` : ""}保留 ${wX(e.recovered)} 条未确认失效的链接。`;-function iwe(e) {+})), wX = (e) => Number(e || 0).toLocaleString(), awe = (e) => `已删除 ${wX(e.removed)} 条;${e.marked ? `已隐退女优的 ${wX(e.marked)} 条留作不可点的记录;` : ""}保留 ${wX(e.recovered)} 条未确认失效的链接。`;+function owe(e) {let t = e.scope === "retry";return e.total ? `${t ? "已重验" : "已检查"} ${wX(e.checked)} / ${wX(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";}// src/configuration-endpoints.ts-var TX = "/api/configuration", EX = "/api/pick-folder", DX = "/api/settings", OX = "/api/follow/schedule", kX = "/api/feeds/schedule", AX = "/api/thumbnail-jobs", jX = ["settings"], MX = ["follow-schedule"], NX = ["feed-schedule"], PX = ["thumbnail-jobs"], FX = "/api/media-processing", awe = ["media-processing"], owe = (e) => B(FX, e), IX = (e) => B(DX, e), swe = (e) => B(OX, e), cwe = (e) => B(kX, e), lwe = (e) => B(AX, e);-function uwe(e = H) {+var TX = "/api/configuration", EX = "/api/pick-folder", DX = "/api/settings", OX = "/api/follow/schedule", kX = "/api/feeds/schedule", AX = "/api/thumbnail-jobs", jX = ["settings"], MX = ["follow-schedule"], NX = ["feed-schedule"], PX = ["thumbnail-jobs"], FX = "/api/media-processing", swe = ["media-processing"], cwe = (e) => B(FX, e), IX = (e) => B(DX, e), lwe = (e) => B(OX, e), uwe = (e) => B(kX, e), dwe = (e) => B(AX, e);+function fwe(e = H) {return e.fetchQuery({queryKey: jX,queryFn: ({ signal: e }) => IX(e),@@ -62004,7 +62029,7 @@ function LX() {onSuccess: (e) => H.setQueryData(jX, e)});}-function dwe() {+function pwe() {return Ft({mutationFn: (e) => V(OX, {enabled: e > 0,@@ -62013,7 +62038,7 @@ function dwe() {onSuccess: (e) => H.setQueryData(MX, e)});}-var fwe = {+var mwe = {follow: {url: `${OX}/run`,key: MX@@ -62023,36 +62048,36 @@ var fwe = {key: NX}};-function pwe(e) {- let { url: t, key: n } = fwe[e];+function hwe(e) {+ let { url: t, key: n } = mwe[e];return Ft({mutationFn: () => V(t, {}),onSuccess: (e) => H.setQueryData(n, e)});}-var mwe = (e) => e?.running ? 3e3 : !1;-function hwe() {+var gwe = (e) => e?.running ? 3e3 : !1;+function _we() {return Ft({mutationFn: (e) => V(AX, { mode: e }),onSuccess: (e) => H.setQueryData(PX, e)});}// src/react/data-cleanup/organize.ts-var gwe = "/api/organize", _we = "/api/organize/preview", vwe = "/api/organize/apply", ywe = "/api/organize/rollback", RX = ["organize"], bwe = "/api/organize/example", xwe = (e, t, n) => B(`${bwe}?${new URLSearchParams({+var vwe = "/api/organize", ywe = "/api/organize/preview", bwe = "/api/organize/apply", xwe = "/api/organize/rollback", RX = ["organize"], Swe = "/api/organize/example", Cwe = (e, t, n) => B(`${Swe}?${new URLSearchParams({file_template: e,dir_template: t-})}`, n), zX = (e) => B(gwe, e);-async function Swe(e) {+})}`, n), zX = (e) => B(vwe, e);+async function wwe(e) {await H.fetchQuery({queryKey: RX,queryFn: () => zX(e)});}-var Cwe = (e) => V(_we, e), wwe = (e) => V(EX, { initial: e }), Twe = (e) => e.kind === "apply" ? V(vwe, {+var Twe = (e) => V(ywe, e), Ewe = (e) => V(EX, { initial: e }), Dwe = (e) => e.kind === "apply" ? V(bwe, {...e.request,confirm: !0-}) : V(ywe, { confirm: !0 });-async function Ewe(e) {+}) : V(xwe, { confirm: !0 });+async function Owe(e) {H.setQueryData(RX, (t) => t && {...t,templates: e@@ -62061,20 +62086,20 @@ async function Ewe(e) {await V(DX, { organizeTemplates: e });} catch {}}-var Dwe = (e, t) => e && {+var kwe = (e, t) => e && {...e,...t-}, Owe = /目录模板|分隔符|盘符|`\.`/;-function kwe(e) {+}, Awe = /目录模板|分隔符|盘符|`\.`/;+function jwe(e) {let t = String(e || "");return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);}var BX = (e) => Number(e || 0).toLocaleString();-function Awe(e) {+function Mwe(e) {let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${BX(t)}`).join(" · ");return Number(e.counts?.change || 0) ? `${BX(e.counts.change)} 个文件会改名或移动,${BX(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;}-function jwe(e) {+function Nwe(e) {let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);return {text: t ? `已退回 ${BX(r)} 个文件${n ? `,${BX(n)} 行未能退回` : ""}。` : `已整理 ${BX(r)} 个文件${n ? `,${BX(n)} 行未能处理` : ""}。`,@@ -62083,36 +62108,36 @@ function jwe(e) {};}// src/react/data-cleanup/orphan-records.ts-var Mwe = "/api/orphan-records", Nwe = "/api/orphan-records/attach", VX = ["orphan-records"], Pwe = [+var Pwe = "/api/orphan-records", Fwe = "/api/orphan-records/attach", VX = ["orphan-records"], Iwe = [["asset_preference", "喜欢与理由"],["watch_queue", "稍后看"],["playlist_item", "播放列表"],["asset_quality_goal", "寻找更好版本"],["activity_event", "观看历史"],["asset_tag_preference", "隐藏标签"]-], HX = (e) => B(Mwe, e), Fwe = (e, t) => V(Nwe, {+], HX = (e) => B(Pwe, e), Lwe = (e, t) => V(Fwe, {id: e,target: t-}), Iwe = (e) => V(KY, {+}), Rwe = (e) => V(KY, {ids: Array.isArray(e) ? e : [e],operation: "delete"-}), Lwe = (e) => [+}), zwe = (e) => [e.rating ? `评分 ${e.rating}` : "",e.play_count ? `播放 ${Number(e.play_count).toLocaleString()} 次` : e.last_played ? "播放过" : "",e.o_count ? `高潮 ${Number(e.o_count).toLocaleString()} 次` : ""-], Rwe = (e) => [...Pwe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...Lwe(e)].filter(Boolean).join(" · "), zwe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", Bwe = (e) => [e.name, zwe(e.duration)].filter(Boolean).join(" · "), UX = "/api/resource-sync/scan", WX = "/api/resource-sync/apply", GX = ["resource-sync", "scan"], KX = ["resource-sync", "apply"], qX = (e) => V(UX, {+], Bwe = (e) => [...Iwe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...zwe(e)].filter(Boolean).join(" · "), Vwe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", Hwe = (e) => [e.name, Vwe(e.duration)].filter(Boolean).join(" · "), UX = "/api/resource-sync/scan", WX = "/api/resource-sync/apply", GX = ["resource-sync", "scan"], KX = ["resource-sync", "apply"], qX = (e) => V(UX, {background: !0,status_only: !0-}, "POST", e), Vwe = () => V(UX, {+}, "POST", e), Uwe = () => V(UX, {background: !0,restart: !0-}), JX = (e) => B(WX, e), Hwe = (e) => V(WX, {+}), JX = (e) => B(WX, e), Wwe = (e) => V(WX, {confirm: !0,clean_cache: !0,scan_id: e,background: !0}), YX = (e) => (e?.sources ?? []).some((e) => gn.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);-async function Uwe(e) {+async function Gwe(e) {YX(H.getQueryData(vr)) && await Promise.all([H.fetchQuery({queryKey: GX,queryFn: () => qX(e)@@ -62121,7 +62146,7 @@ async function Uwe(e) {queryFn: () => JX(e)})]);}-var Wwe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), XX = (e) => Number(e || 0).toLocaleString(), Gwe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", ZX = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), QX = (e) => e.vanish ? `${XX(e.vanish)} 条作品记录的文件已丢失,个人记录保留,可在「文件已丢失的记录」中转移个人记录或删除记录。` : "", $X = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", Kwe = (e) => `将永久删除文件已不在盘上的 ${XX(ZX(e))} 条记录和 ${XX(e.empty)} 个空文件夹,并清理 ${XX(e.cache?.files)} 个闲置缓存。${$X(e)}${QX(e)}`, qwe = (e) => `将永久删除文件已不在盘上的 ${XX(ZX(e))} 条记录(含回收站里的)、${XX(e.empty)} 个空文件夹,并清理 ${XX(e.cache?.files)} 个闲置缓存。来源根目录保留。${$X(e)}${QX(e)}`, Jwe = (e) => e.online ? [+var Kwe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), XX = (e) => Number(e || 0).toLocaleString(), qwe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", ZX = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), QX = (e) => e.vanish ? `${XX(e.vanish)} 条作品记录的文件已丢失,个人记录保留,可在「文件已丢失的记录」中转移个人记录或删除记录。` : "", $X = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", Jwe = (e) => `将永久删除文件已不在盘上的 ${XX(ZX(e))} 条记录和 ${XX(e.empty)} 个空文件夹,并清理 ${XX(e.cache?.files)} 个闲置缓存。${$X(e)}${QX(e)}`, Ywe = (e) => `将永久删除文件已不在盘上的 ${XX(ZX(e))} 条记录(含回收站里的)、${XX(e.empty)} 个空文件夹,并清理 ${XX(e.cache?.files)} 个闲置缓存。来源根目录保留。${$X(e)}${QX(e)}`, Xwe = (e) => e.online ? [`找不到文件 · 共 ${XX(e.total)} 项`,e.vanish ? `${XX(e.vanish)} 项带个人记录` : "",e.empty ? `空文件夹 ${XX(e.empty)} 个` : ""@@ -62138,59 +62163,59 @@ function eZ(e) {].filter(Boolean).join(",")};}-var Ywe = (e, t) => {+var Zwe = (e, t) => {let { rest: n } = eZ(e), r = `已永久删除 ${XX(e.purged)} 条失效记录和 ${XX(e.dirs_removed)} 个空文件夹,清理 ${XX(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${XX(e.vanished)} 条作品记录已标为文件丢失,可在「文件已丢失的记录」中处理。` : "") + (e.reattached ? `${XX(e.reattached)} 条的记录已接到库里的另一个版本。` : "");return n ? `${r}${n},重新检查后可再试。` : r;-}, tZ = ["performer-delete-candidates"], nZ = (e) => B("/api/performer/delete-candidates", e), Xwe = (e, t) => B(`/api/performer/delete-plan?${new URLSearchParams({ ids: e.join(",") })}`, t), Zwe = (e) => V("/api/performer/delete", {+}, tZ = ["performer-delete-candidates"], nZ = (e) => B("/api/performer/delete-candidates", e), Qwe = (e, t) => B(`/api/performer/delete-plan?${new URLSearchParams({ ids: e.join(",") })}`, t), $we = (e) => V("/api/performer/delete", {entity_ids: e.entity_ids,plan: e.plan-}), Qwe = "/api/review?counts=1", rZ = ["review", "counts"], $we = "/api/ads?limit=1", iZ = ["junk-summary"], aZ = "/api/items?state=trash&limit=1", oZ = ["trash-summary"], eTe = [+}), eTe = "/api/review?counts=1", rZ = ["review", "counts"], tTe = "/api/ads?limit=1", iZ = ["junk-summary"], aZ = "/api/items?state=trash&limit=1", oZ = ["trash-summary"], nTe = [["video", "视频"],["image", "图片"],["archive", "压缩包"],["audio", "音频"],["url", "网址"],["other", "其它"]-], sZ = (e) => B(Qwe, e), cZ = (e) => B($we, e), lZ = (e) => {+], sZ = (e) => B(eTe, e), cZ = (e) => B(tTe, e), lZ = (e) => {let t = sessionStorage.getItem("peach.library");return B(t ? `${aZ}&library=${encodeURIComponent(t)}` : aZ, e);}, uZ = (e) => Number(e || 0).toLocaleString();-function tTe(e) {+function rTe(e) {let t = aX, 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 nTe(e) {+function iTe(e) {if (!e) return "";- let t = eTe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${uZ(e.counts[t])}`);+ let t = nTe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${uZ(e.counts[t])}`);return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${uZ(e.dismissed_total)}`), t.join(" · ");}-var rTe = [+var aTe = [[rZ, ({ signal: e }) => sZ(e)],[tX, ({ signal: e }) => nX(e)],[oZ, ({ signal: e }) => lZ(e)],[iZ, ({ signal: e }) => cZ(e)],[GY, ({ signal: e }) => qY(e)]];-async function iTe(e) {- for (let [t, n] of rTe) H.prefetchQuery({+async function oTe(e) {+ for (let [t, n] of aTe) H.prefetchQuery({queryKey: t,queryFn: () => n({ signal: e })});- await SH(e);+ await CH(e);}-async function aTe(e, t) {+async function sTe(e, t) {switch (e) {case "organize":- await Swe(t);+ await wwe(t);break;case "media-repair":- await yCe(t);+ await xCe(t);break;case "resource-sync":- await WY(t), await Uwe(t);+ await WY(t), await Gwe(t);break;case "orphan-records":await H.prefetchQuery({@@ -62221,8 +62246,8 @@ async function aTe(e, t) {}}// src/react/feed-new/feed-new.ts-var dZ = (e) => ["feed-new", e ?? "home"], oTe = 8, sTe = 1500;-function cTe(e, t, n) {+var dZ = (e) => ["feed-new", e ?? "home"], cTe = 8, lTe = 1500;+function uTe(e, t, n) {let r = document.createElement("template");r.innerHTML = e;let i = [...r.content.querySelectorAll("img[src]")].slice(0, t).map((e) => {@@ -62233,11 +62258,11 @@ function cTe(e, t, n) {setTimeout(e, n);})]);}-async function lTe(e, t, n) {+async function dTe(e, t, n) {let r = new URLSearchParams({ limit: String(_M().value.feedLimit) });e && r.set("entity", String(e));let i = await wn(`/api/feeds/discoveries?${r}`).catch(() => null), a = i && !i.error ? i : null, o = a?.items || [], s = t(a);- return n && o.length && await cTe(s, oTe, sTe), {+ return n && o.length && await uTe(s, cTe, lTe), {items: o,html: s,fetching: o.some((e) => e.cover_fetching && !e.has_cover)@@ -62245,7 +62270,7 @@ async function lTe(e, t, n) {}var fZ = (e, t, n = !1) => ({queryKey: dZ(e),- queryFn: () => lTe(e, t, n),+ queryFn: () => dTe(e, t, n),staleTime: Infinity,refetchInterval: (e) => e.state.data?.fetching ? 2e3 : !1}), pZ = (e, t) => wn("/api/feeds/discovery", {@@ -62255,7 +62280,7 @@ var fZ = (e, t, n = !1) => ({ids: [e]})}).then(() => void 0, () => void 0);-async function uTe(e) {+async function fTe(e) {H.removeQueries({ queryKey: dZ(null) }), await H.fetchQuery(fZ(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));}// src/react/entity-page/entity-page.ts@@ -62280,7 +62305,7 @@ var mZ = ["entity",e,t-], dTe = (e, t, n, r) => [+], pTe = (e, t, n, r) => ["entity-items",e,t,@@ -62292,7 +62317,7 @@ var mZ = [t,n,r-], vZ = (e) => String(e || "").split(",").filter(Boolean), fTe = (e, t) => vZ(e).includes(t);+], vZ = (e) => String(e || "").split(",").filter(Boolean), mTe = (e, t) => vZ(e).includes(t);function yZ(e, t, n, r, i = 0) {let a = new URLSearchParams();a.set(e, t), e === "tag" && (a.set("tag", [.../* @__PURE__ */ new Set([t, ...vZ(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");@@ -62309,7 +62334,7 @@ var xZ = (e) => {seed: e.seed}, n = yZ(e.kind, e.name, e.filters, t).toString();return {- queryKey: dTe(e.kind, e.name, n, e.revision),+ queryKey: pTe(e.kind, e.name, n, e.revision),queryFn: ({ signal: n }) => bZ(e.kind, e.name, e.filters, t, 0, n),staleTime: Infinity};@@ -62318,7 +62343,7 @@ var xZ = (e) => {queryFn: ({ signal: n }) => wn(`/api/entity?kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`, { signal: n }),staleTime: Infinity});-function pTe(e, t, n, r, i, a) {+function hTe(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)}` : ""}`;@@ -62330,7 +62355,7 @@ function pTe(e, t, n, r, i, a) {var CZ = (e, t, n, r) => ({queryKey: _Z(e, t, n, r),queryFn: async ({ pageParam: i }) => {- let a = await wn(pTe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {+ let a = await wn(hTe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {if (i) throw e;return { error: String(e) };});@@ -62344,7 +62369,7 @@ var CZ = (e, t, n, r) => ({} : void 0,staleTime: Infinity}), wZ = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];-async function mTe(e) {+async function gTe(e) {let { kind: t, name: n } = e;if (!e.restoreNavigation) for (let e of ["entity",@@ -62371,7 +62396,7 @@ var TZ = [["blogger", "网黄博主"],["animation", "动画作者"]], EZ = "mb-4 flex flex-wrap gap-2";-function hTe(e) {+function _Te(e) {let t = TZ.some(([t]) => t === e) ? e : "all";return `<div class="peach-react"><div aria-label="身份分类" class="${EZ}">${TZ.map(([e, n]) => Ds({variant: e === t ? "primary" : "secondary",@@ -62381,39 +62406,39 @@ function hTe(e) {})).join("")}</div></div>`;}// src/react/follow/online-vocab.ts-var gTe = "/api/follow/authors", _Te = "/api/follow/tags", vTe = (e) => [+var vTe = "/api/follow/authors", yTe = "/api/follow/tags", bTe = (e) => ["follow","authors",e-], yTe = (e, t) => [+], xTe = (e, t) => ["follow","tags",e,t];-function bTe(e, t, n) {+function STe(e, t, n) {let r = new URLSearchParams({limit: String(t),offset: String(n)});- return e && r.set("q", e), `${gTe}?${r}`;+ return e && r.set("q", e), `${vTe}?${r}`;}-function xTe(e, t, n, r) {+function CTe(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), `${_Te}?${i}`;+ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${yTe}?${i}`;}-var STe = (e, t, n, r) => B(bTe(e, t, n), r), CTe = (e, t, n, r, i) => B(xTe(e, t, n, r), i), wTe = "/api/index", DZ = {+var wTe = (e, t, n, r) => B(STe(e, t, n), r), TTe = (e, t, n, r, i) => B(CTe(e, t, n, r), i), ETe = "/api/index", DZ = {performers: "艺人",creators: "卖家",studios: "厂牌",agencies: "事务所",series: "系列",tags: "标签"-}, TTe = {+}, DTe = {performers: "performer",creators: "creator",studios: "studio",@@ -62485,7 +62510,7 @@ function IZ(e, t, n, r, i) {limit: String(r),offset: String(i)});- return t && a.set("q", t), n !== "all" && a.set("category", n), `${wTe}?${a}`;+ return t && a.set("q", t), n !== "all" && a.set("category", n), `${ETe}?${a}`;}function LZ(e, t = AZ.tags) {let n = e.what === "people" || e.what === "online-authors" ? AZ.people : t, r = {@@ -62505,17 +62530,17 @@ function LZ(e, t = AZ.tags) {};case "online-authors": return {...r,- queryKey: vTe(e.q),- queryFn: ({ pageParam: t, signal: r }) => STe(e.q, n, t, r)+ queryKey: bTe(e.q),+ queryFn: ({ pageParam: t, signal: r }) => wTe(e.q, n, t, r)};case "online-tags": return {...r,- queryKey: yTe(e.q, e.category),- queryFn: ({ pageParam: t, signal: r }) => CTe(e.q, e.category, n, t, r)+ queryKey: xTe(e.q, e.category),+ queryFn: ({ pageParam: t, signal: r }) => TTe(e.q, e.category, n, t, r)};}}-async function ETe(e, t) {+async function OTe(e, t) {let n = LZ(PZ(NZ(e)));await H.fetchInfiniteQuery({queryKey: n.queryKey,@@ -62528,13 +62553,13 @@ async function ETe(e, t) {staleTime: Infinity});}-var DTe = (e) => e ? e.pages.flatMap((e) => e.items) : [], OTe = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, RZ = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", kTe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, ATe = {+var kTe = (e) => e ? e.pages.flatMap((e) => e.items) : [], ATe = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, RZ = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", jTe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, MTe = {numeric: !0,sensitivity: "base"};function zZ(e, t) {let n = /* @__PURE__ */ new Map();- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", ATe))) {+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", MTe))) {let e = $n(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]);}@@ -62553,18 +62578,18 @@ function BZ({ html: e, face: t, company: n, big: r }) {dangerouslySetInnerHTML: { __html: e }});}-var jTe = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", MTe = OV("rss");+var NTe = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", PTe = kV("rss");function VZ({ 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: HH({+ className: UH({radius: "plain",padding: "none",interactive: !0,- className: `${jTe} ${n ? "items-stretch text-left" : "items-center text-center"}`+ className: `${NTe} ${n ? "items-stretch text-left" : "items-center text-center"}`}),children: [r,@@ -62573,10 +62598,10 @@ function VZ({ name: e, readout: t, big: n, children: r, following: i, onPress: arole: "img","aria-label": "已订阅新作",className: "index-feed-mark absolute top-4 right-4 z-2 inline-flex",- children: /* @__PURE__ */ (0, I.jsx)(lW, {+ children: /* @__PURE__ */ (0, I.jsx)(uW, {variant: "caption",color: "soft",- children: /* @__PURE__ */ (0, I.jsx)(MTe, {})+ children: /* @__PURE__ */ (0, I.jsx)(PTe, {})})}) : null,/* @__PURE__ */ (0, I.jsx)("span", {@@ -62602,12 +62627,12 @@ function HZ({ 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 || TTe[e], o = r.personAvatar(t, n, a);+ let n = t.entity_kind || DTe[e], o = r.personAvatar(t, n, a);return /* @__PURE__ */ (0, I.jsx)(VZ, {"data-k": t.k,"data-kind": n,name: tn(n, t.k, t.entity_id),- readout: `${kTe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,+ readout: `${jTe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,big: a,following: t.following,onPress: () => r.openEntity(n, t.k),@@ -62621,7 +62646,7 @@ function HZ({ kind: e, items: t, layout: n, props: r }) {})});}-function NTe({ items: e, layout: t, props: n }) {+function FTe({ items: e, layout: t, props: n }) {wL();let r = t === "big";return /* @__PURE__ */ (0, I.jsx)("div", {@@ -62685,7 +62710,7 @@ function KZ(e) {}return !1;}-function PTe() {+function ITe() {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, o = !1, s = () => e.hasAttribute("data-copy-key") && !!document.querySelector("[data-copy-bar]"), c = () => s() && (o || !!e.querySelector("[data-copy-inline],[contenteditable]") || !!document.querySelector("[data-copy-choice],[data-copy-bar][aria-busy=\"true\"]")), l = (t) => {@@ -62732,11 +62757,11 @@ function qZ(e) {e.style.setProperty("--board-range-value", `${i}%`);}var JZ = /* @__PURE__ */ new WeakSet();-function FTe() {+function LTe() {if (JZ.has(document)) return;JZ.add(document);let e = (e) => {- e.querySelectorAll("input[type=range]").forEach(qZ), LTe(e), ITe(e);+ e.querySelectorAll("input[type=range]").forEach(qZ), zTe(e), RTe(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]") && qZ(t), e(t));@@ -62745,9 +62770,9 @@ function FTe() {childList: !0}), document.addEventListener("input", (e) => {e.target instanceof HTMLInputElement && e.target.type === "range" && qZ(e.target);- }), PTe();+ }), ITe();}-function ITe(e) {+function RTe(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;@@ -62772,7 +62797,7 @@ function ITe(e) {});}var YZ = /* @__PURE__ */ new Map();-function LTe(e) {+function zTe(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;@@ -62804,7 +62829,7 @@ function LTe(e) {});}// src/react/photo-lightbox/photo-lightbox.ts-var XZ = "/vendor/swiper/14.4.0/", ZZ = null, RTe = () => ZZ ??= Promise.all([new Promise((e, t) => {+var XZ = "/vendor/swiper/14.4.0/", ZZ = null, BTe = () => ZZ ??= Promise.all([new Promise((e, t) => {let n = `${XZ}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);if (r?.sheet) {e();@@ -62823,7 +62848,7 @@ var XZ = "/vendor/swiper/14.4.0/", ZZ = null, RTe = () => ZZ ??= Promise.all([ne})]).then(([, e]) => e).catch((e) => {throw ZZ = null, e;});-function zTe(e, t, n) {+function VTe(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);@@ -62847,8 +62872,8 @@ function zTe(e, t, n) {var QZ = (e) => {let t = Number(e) || 0;return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : Yn(t)).replace(" ", "\xA0") : "大小未知";-}, BTe = (e) => e.asset?.name || e.name || "未命名图片";-function VTe(e, t) {+}, HTe = (e) => e.asset?.name || e.name || "未命名图片";+function UTe(e, t) {let n = e.asset;if (n) return [tr[n.location ?? ""] || n.location || "来源未知", QZ(n.size)].join(" · ");let r = t?.[0] && t[1] ? `${t[0]} × ${t[1]}` : "";@@ -62859,31 +62884,31 @@ function VTe(e, t) {].filter(Boolean).join(" · ");}// src/react/photo-lightbox/photo-lightbox-dialog.tsx-var $Z = null, eQ = null, HTe = 0;-function UTe() {+var $Z = null, eQ = null, WTe = 0;+function GTe() {return eQ && $Z?.isConnected || (eQ?.unmount(), $Z = document.createElement("div"), $Z.className = "peach-react", $Z.dataset.photoLightboxHost = "", document.body.append($Z), eQ = (0, Rt.createRoot)($Z)), eQ;}async function tQ(e, t, n) {if (!t.length || e < 0 || e >= t.length) return;let r;try {- r = await RTe();+ r = await BTe();} catch {window.open(t[e].src, "_blank", "noopener");return;}- let i = UTe();- (0, Lt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(WTe, {+ let i = GTe();+ (0, Lt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(KTe, {slides: t,index: e,Swiper: r,host: n ?? null- }, ++HTe)));+ }, ++WTe)));}function nQ() {eQ && (0, Lt.flushSync)(() => eQ.render(null));}-function WTe({ slides: e, index: t, Swiper: n, host: r }) {+function KTe({ 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: ""@@ -62926,7 +62951,7 @@ function WTe({ slides: e, index: t, Swiper: n, host: r }) {v(this.activeIndex), i(this.activeIndex);} }});- i(t, 0), h.current = zTe(e, a, b);+ i(t, 0), h.current = VTe(e, a, b);let m = tl(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();};@@ -63127,10 +63152,10 @@ function WTe({ slides: e, index: t, Swiper: n, host: r }) {id: `${a}-title`,"data-middle-truncate": "",tabIndex: -1,- children: BTe(j)+ children: HTe(j)}, _), /* @__PURE__ */ (0, I.jsx)("span", {"data-photo-detail-meta": "",- children: VTe(j, x[_])+ children: UTe(j, x[_])})]}),/* @__PURE__ */ (0, I.jsx)("button", {@@ -63168,17 +63193,17 @@ function WTe({ slides: e, index: t, Swiper: n, host: r }) {});}// src/react/entity-body/entity-body-page.tsx-function GTe(e) {- return e.view === "people" && e.roster ? /* @__PURE__ */ (0, I.jsx)(KTe, {+function qTe(e) {+ return e.view === "people" && e.roster ? /* @__PURE__ */ (0, I.jsx)(JTe, {roster: e.roster,props: e- }) : e.view === "videos" ? /* @__PURE__ */ (0, I.jsx)(qTe, { ...e }) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, I.jsx)(XTe, {+ }) : e.view === "videos" ? /* @__PURE__ */ (0, I.jsx)(YTe, { ...e }) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, I.jsx)(QTe, {photos: e.photos,props: e}, e.photos.revision) : null;}var rQ = AZ.people;-function KTe({ roster: e, props: t }) {+function JTe({ roster: e, props: t }) {let { helpers: n, actions: r } = t, i = (0, F.useMemo)(() => ({personAvatar: n.personAvatar,openEntity: r.openEntity@@ -63196,7 +63221,7 @@ function KTe({ roster: e, props: t }) {enabled: () => !0}, a) : null] });}-function qTe(e) {+function YTe(e) {return /* @__PURE__ */ (0, I.jsx)("div", {"data-entity-grid": "",children: /* @__PURE__ */ (0, I.jsx)(pK, {@@ -63224,14 +63249,14 @@ function qTe(e) {})});}-var JTe = (e) => Array.from({ length: e.n }, (t, n) => ({+var XTe = (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 || "官方样张"-})), iQ = (e) => e.sample === !0, aQ = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, oQ = (e) => iQ(e) ? `/sample-thumb?${aQ(e)}` : `/photo-thumb?id=${e.id}`, YTe = (e) => iQ(e) ? {+})), iQ = (e) => e.sample === !0, aQ = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, oQ = (e) => iQ(e) ? `/sample-thumb?${aQ(e)}` : `/photo-thumb?id=${e.id}`, ZTe = (e) => iQ(e) ? {src: `/sample-image?${aQ(e)}`,thumb: oQ(e),name: e.name,@@ -63243,14 +63268,14 @@ var JTe = (e) => Array.from({ length: e.n }, (t, n) => ({name: e.name || "",asset: e};-function XTe({ photos: e, props: t }) {- let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, F.useMemo)(() => [...e.codeSets.flatMap(JTe), ...e.items], [e]), [s, c] = (0, F.useState)(() => /* @__PURE__ */ new Set()), l = (0, F.useCallback)((e) => c((t) => {+function QTe({ photos: e, props: t }) {+ let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, F.useMemo)(() => [...e.codeSets.flatMap(XTe), ...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) => {- tQ(e, o.map(YTe), { revealSource: i.revealSource });- }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, I.jsx)(ZTe, {+ tQ(e, o.map(ZTe), { revealSource: i.revealSource });+ }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, I.jsx)($Te, {item: e,index: t,lost: s.has(t),@@ -63313,7 +63338,7 @@ function sQ({ label: e, title: t, meta: n }) {]});}-function ZTe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {+function $Te({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {let a = e.name ?? "";return /* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -63332,9 +63357,9 @@ function ZTe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {});}// src/react/background-job.ts-var QTe = 2e3, $Te = (e) => e, eEe = (e, t) => t;+var eEe = 2e3, tEe = (e) => e, nEe = (e, t) => t;function cQ(e) {- let { queryKey: t, jobOf: n = $Te, withJob: r = eEe, idlePollMs: i } = e, [a, o] = (0, F.useState)(!1), [s, c] = (0, F.useState)(null), l = (0, F.useRef)(e);+ let { queryKey: t, jobOf: n = tEe, withJob: r = nEe, 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;});@@ -63343,7 +63368,7 @@ function cQ(e) {queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),refetchInterval: (e) => {let t = e.state.data;- return t !== void 0 && n(t)?.status === "running" ? QTe : i ?? !1;+ return t !== void 0 && n(t)?.status === "running" ? eEe : i ?? !1;}}), d = Ft({mutationFn: (e) => l.current.start(e),@@ -63368,11 +63393,11 @@ function cQ(e) {}// src/react/follow-feed/follow-check.tsvar lQ = (e) => [...new Set(e)].filter((e) => Number.isSafeInteger(e) && e > 0);-function tEe(e, t) {+function rEe(e, t) {return t ? lQ(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 nEe({ sources: e, report: t }) {+function iEe({ sources: e, report: t }) {let n = lQ(e), [r, i] = (0, F.useState)(""), { running: a, start: o } = cQ({queryKey: Rr,queryFn: ({ signal: e }) => _i(e),@@ -63387,19 +63412,19 @@ function nEe({ sources: e, report: t }) {children: [/* @__PURE__ */ (0, I.jsx)(J, {size: "small",disabled: !n.length,- ...AV(s),+ ...jV(s),onClick: () => {n.length && !s && (i(""), o.mutate(n));},children: "检查更新"- }), r ? /* @__PURE__ */ (0, I.jsx)(TV, {+ }), r ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "error",children: r}) : null]});}// src/react/follow-feed/follow-card.tsx-var rEe = (e) => Number(e) > 0;+var aEe = (e) => Number(e) > 0;function uQ({ name: e, actions: t, children: n, ...r }) {return /* @__PURE__ */ (0, I.jsx)("a", {...r,@@ -63414,7 +63439,7 @@ var dQ = ({ provider: e }) => /* @__PURE__ */ (0, I.jsx)("span", {"data-follow-nothumb": "",dangerouslySetInnerHTML: { __html: HG(e) }});-function iEe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a, retryKey: o }) {+function oEe({ 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);@@ -63437,8 +63462,8 @@ function iEe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a} : void 0});}-function aEe(e) {- let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = ha(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) => Gve(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? _a(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = ya({+function sEe(e) {+ let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = ha(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) => qve(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? _a(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = ya({cover: p,coverFace: (f?.thumb_url ? f : u).face,stack: t.stack,@@ -63483,7 +63508,7 @@ function aEe(e) {}), /* @__PURE__ */ (0, I.jsxs)("div", {"data-media-pic": "",children: [- p ? /* @__PURE__ */ (0, I.jsx)(iEe, {+ p ? /* @__PURE__ */ (0, I.jsx)(oEe, {src: p,fallback: m,width: _?.width,@@ -63524,7 +63549,7 @@ function aEe(e) {},dangerouslySetInnerHTML: { __html: R("check") }}) : null,- rEe(u.duration) ? /* @__PURE__ */ (0, I.jsx)("span", {+ aEe(u.duration) ? /* @__PURE__ */ (0, I.jsx)("span", {"data-media-duration": "",children: qn(u.duration)}) : null,@@ -63634,7 +63659,7 @@ function aEe(e) {/* @__PURE__ */ (0, I.jsx)("time", {dateTime: u.published_at || "",title: QG(u),- children: Wve(u)+ children: Kve(u)}),E.credited ? /* @__PURE__ */ (0, I.jsx)("span", {"data-follow-credit": "",@@ -63669,9 +63694,9 @@ function aEe(e) {]});}-var fQ = (0, F.memo)(aEe);+var fQ = (0, F.memo)(sEe);// src/react/components/use-masonry-grid.ts-function oEe(e, t) {+function cEe(e, t) {let n = (0, F.useRef)(null);return (0, F.useLayoutEffect)(() => {let t = n.current;@@ -63736,7 +63761,7 @@ function _Q(e, t) {var vQ = () => /* @__PURE__ */ (0, I.jsx)("span", {"data-entity-sep": "","aria-hidden": "true"-}), sEe = OV("settings"), yQ = OV("chevron-down"), cEe = OV("history"), lEe = OV("arrow-up"), uEe = OV("arrow-down"), dEe = [[+}), lEe = kV("settings"), yQ = kV("chevron-down"), uEe = kV("history"), dEe = kV("arrow-up"), fEe = kV("arrow-down"), pEe = [["fixed","固定比例","layout-grid"@@ -63745,7 +63770,7 @@ var vQ = () => /* @__PURE__ */ (0, I.jsx)("span", {"瀑布流","columns-2"]];-function fEe(e, t, n) {+function mEe(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) => {@@ -63793,7 +63818,7 @@ function fEe(e, t, n) {n]);}-function pEe(e) {+function hEe(e) {let { view: t, seed: n, revision: r, actions: i } = e, a = It(na(t, r)), o = Pt({queryKey: ra,queryFn: ({ signal: e }) => ia(e)@@ -63801,7 +63826,7 @@ function pEe(e) {sources: s?.sources || [],aliases: s?.author_aliases || [],credentials: c- }), [s, c]), u = fEe(s, t, n), d = a.isPending || a.isPlaceholderData, f = !d && !!s;+ }), [s, c]), u = mEe(s, t, n), d = a.isPending || a.isPlaceholderData, f = !d && !!s;(0, F.useEffect)(() => {lm(() => location.pathname === "/follow", document.querySelector("#stats [data-filter-frame]"), { pending: d });}, [@@ -63835,7 +63860,7 @@ function pEe(e) {p,i]);- let m = hEe(e, !!s);+ let m = _Ee(e, !!s);if (!s) return a.isError ? /* @__PURE__ */ (0, I.jsxs)("div", {"data-follow-feed": "",children: [/* @__PURE__ */ (0, I.jsx)(bQ, {}), /* @__PURE__ */ (0, I.jsx)(fK, {@@ -63860,7 +63885,7 @@ function pEe(e) {ref: m.host,"data-follow-progress": ""}, m.generation),- !m.busy && m.report ? /* @__PURE__ */ (0, I.jsx)(TV, {+ !m.busy && m.report ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "neutral",title: "检查结果",children: m.report@@ -63880,20 +63905,20 @@ function pEe(e) {dangerouslySetInnerHTML: { __html: zs("检查中") }}) : "检查更新"}) : null }),- /* @__PURE__ */ (0, I.jsx)(gEe, {+ /* @__PURE__ */ (0, I.jsx)(vEe, {facets: u,pressed: u.author,context: l,props: e,onPick: (e) => h({ author: u.author === e ? "" : e })}),- /* @__PURE__ */ (0, I.jsx)(_Ee, {+ /* @__PURE__ */ (0, I.jsx)(yEe, {rows: u.workRows,pressed: t.work,props: e,onPick: (e) => h({ work: t.work === e ? "" : e })}),- /* @__PURE__ */ (0, I.jsx)(vEe, {+ /* @__PURE__ */ (0, I.jsx)(bEe, {facets: u,view: t,total: _,@@ -63901,7 +63926,7 @@ function pEe(e) {props: e,route: h}),- /* @__PURE__ */ (0, I.jsx)(yEe, {+ /* @__PURE__ */ (0, I.jsx)(xEe, {conditions: g,onDrop: (e) => i.route(Ta(t, e)),onClear: () => h({@@ -63913,8 +63938,8 @@ function pEe(e) {durMax: 0})}),- u.broken.length ? /* @__PURE__ */ (0, I.jsx)(bEe, { count: u.broken.length }) : null,- /* @__PURE__ */ (0, I.jsx)(xEe, {+ u.broken.length ? /* @__PURE__ */ (0, I.jsx)(SEe, { count: u.broken.length }) : null,+ /* @__PURE__ */ (0, I.jsx)(CEe, {retryKey: a.dataUpdatedAt,pending: d,facets: u,@@ -63944,7 +63969,7 @@ function pEe(e) {await a.fetchNextPage({ throwOnError: !0 });},children: [/* @__PURE__ */ (0, I.jsx)(yQ, { className: "size-(--icon-inline)" }), "加载更多"]- }, a.data?.pages.length) : /* @__PURE__ */ (0, I.jsx)(mEe, {+ }, a.data?.pages.length) : /* @__PURE__ */ (0, I.jsx)(gEe, {busy: a.isFetchingNextPage,error: a.isFetchNextPageError ? bn(a.error) : "",load: () => {@@ -63955,7 +63980,7 @@ function pEe(e) {"data-follow-page-action": "",children: [/* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",- leadingIcon: m.olderBusy ? void 0 : cEe,+ leadingIcon: m.olderBusy ? void 0 : uEe,"data-follow-older": "","aria-busy": m.busy || void 0,onClick: () => void m.start(!0),@@ -63983,7 +64008,7 @@ function bQ({ children: e }) {"data-follow-head-actions": "",children: [/* @__PURE__ */ (0, I.jsx)(zL, {variant: "secondary",- leadingIcon: sEe,+ leadingIcon: lEe,"data-follow-manage": "",href: xQ(),children: "管理关注"@@ -63991,7 +64016,7 @@ function bQ({ children: e }) {})]});}-function mEe({ busy: e, error: t, load: n }) {+function gEe({ busy: e, error: t, load: n }) {return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("button", {type: "button","data-entity-more": "",@@ -64004,7 +64029,7 @@ function mEe({ busy: e, error: t, load: n }) {onRetry: n}) : null] });}-function hEe(e, t) {+function _Ee(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@@ -64066,7 +64091,7 @@ function hEe(e, t) {olderBusy: c === "older" || f && o};}-function gEe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {+function vEe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {let a = (0, F.useRef)(null);(0, F.useEffect)(() => {r.helpers.wireDrag(a.current);@@ -64103,7 +64128,7 @@ function gEe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {})}) : null;}-function _Ee({ rows: e, pressed: t, props: n, onPick: r }) {+function yEe({ rows: e, pressed: t, props: n, onPick: r }) {let i = (0, F.useRef)(null);return (0, F.useEffect)(() => {n.helpers.wireDrag(i.current);@@ -64124,7 +64149,7 @@ function _Ee({ rows: e, pressed: t, props: n, onPick: r }) {}, e[0]))}) : null;}-function vEe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {+function bEe({ 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 = LL(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = LL(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);@@ -64241,7 +64266,7 @@ function vEe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {busy: r})}),- /* @__PURE__ */ (0, I.jsx)(UV, {+ /* @__PURE__ */ (0, I.jsx)(WV, {currentHref: () => location.pathname + location.search,kind: "creator"}),@@ -64252,7 +64277,7 @@ function vEe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {y ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(aK, {label: "图片布局",value: i.photoLayout,- options: dEe,+ options: pEe,onChange: (e) => s.setPhotoLayout(e === "fixed" ? "fixed" : "masonry")}), /* @__PURE__ */ (0, I.jsxs)("button", {type: "button",@@ -64283,8 +64308,8 @@ function vEe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {n && a(n);},children: [n, r ? /* @__PURE__ */ (0, I.jsx)(LG, {- a: lEe,- b: uEe,+ a: dEe,+ b: fEe,state: t.dir === "asc" ? "a" : "b",className: "size-(--icon-inline)"}) : null]@@ -64295,7 +64320,7 @@ function vEe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {] })});}-function yEe({ conditions: e, onDrop: t, onClear: n }) {+function xEe({ conditions: e, onDrop: t, onClear: n }) {return /* @__PURE__ */ (0, I.jsx)("div", {"data-entity-combo": "","data-follow-combo": "",@@ -64320,21 +64345,21 @@ function yEe({ conditions: e, onDrop: t, onClear: n }) {})] }) : null});}-function bEe({ count: e }) {+function SEe({ count: e }) {return /* @__PURE__ */ (0, I.jsx)("div", {"data-follow-broken": "",dangerouslySetInnerHTML: { __html: `<div class="geist-note geist-note-error fwarn" role="alert">${R("alert")}<span>${e} 个来源上次检查失败,去<a class="flink" href="${z(xQ())}" data-follow-manage>管理关注</a>看原因。</span></div>` }});}var xQ = () => _Q(window.location.search);-function xEe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a, checkAction: o }) {+function CEe({ 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)(pK, {pending: e,skeletonHtml: () => c.listSkeletonHtml(s.media),- children: e ? null : /* @__PURE__ */ (0, I.jsx)(SEe, {+ children: e ? null : /* @__PURE__ */ (0, I.jsx)(wEe, {facets: t,data: n,context: r,@@ -64346,12 +64371,12 @@ function xEe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a})});}-function SEe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a, checkAction: o }) {+function wEe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a, checkAction: o }) {let { view: s, actions: c } = r, l = CQ(r), u = i ? {"data-size": r.photoSize,"data-layout": r.photoLayout,"data-images-only": String(r.imagesOnly)- } : {}, d = oEe(i && r.photoLayout === "masonry", `${r.photoSize}:${e.visible.map((e) => e.primary.id).join(",")}`), f;+ } : {}, d = cEe(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)(fQ, {@@ -64368,7 +64393,7 @@ function SEe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a,onStatus: l.status,onSave: l.save}, `${u}:${s.media}`);- }) : /* @__PURE__ */ (0, I.jsx)(CEe, {+ }) : /* @__PURE__ */ (0, I.jsx)(TEe, {data: t,filtered: !!(s.status || e.author || e.provider || s.work || s.tags.length || s.durMin || s.durMax),checkAction: o,@@ -64394,13 +64419,13 @@ function SEe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a,function SQ(e, t) {return ha(e, t.media).id;}-function CEe({ data: e, filtered: t, clear: n, checkAction: r }) {+function TEe({ 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)(EV, {- icon: OV(i ? "search-x" : "rss"),+ children: /* @__PURE__ */ (0, I.jsx)(DV, {+ icon: kV(i ? "search-x" : "rss"),title: i ? "当前筛选下没有更新" : a ? "还没有更新" : "还没有关注任何来源",actions: i ? /* @__PURE__ */ (0, I.jsx)(J, {size: "small",@@ -64415,7 +64440,7 @@ function CEe({ data: e, filtered: t, clear: n, checkAction: r }) {})});}-var wEe = {+var EEe = {new: "已恢复未看",seen: "已标记已看",ignored: "已忽略"@@ -64443,7 +64468,7 @@ function CQ(e) {to: t}),onSuccess: (e, { id: t, to: n, was: i }) => {- u(t, n), d(), r.toast(wEe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {+ u(t, n), d(), r.toast(EEe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {await V(jr, {item: t,to: i@@ -64488,7 +64513,7 @@ function CQ(e) {};}// src/react/entity-body/entity-online.tsx-function TEe(e) {+function DEe(e) {let { result: t, data: n, media: r, helpers: i } = e, a = t.isPending || t.isPlaceholderData;return !n && t.isError ? /* @__PURE__ */ (0, I.jsx)(fK, {message: bn(t.error),@@ -64501,7 +64526,7 @@ function TEe(e) {children: /* @__PURE__ */ (0, I.jsxs)(pK, {pending: a,skeletonHtml: () => i.listSkeletonHtml(r),- children: [a || !n ? null : /* @__PURE__ */ (0, I.jsx)(EEe, {+ children: [a || !n ? null : /* @__PURE__ */ (0, I.jsx)(OEe, {...e,data: n}), !a && n?.has_more ? /* @__PURE__ */ (0, I.jsx)(HY, {@@ -64514,7 +64539,7 @@ function TEe(e) {})});}-function EEe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c, clearFilters: l }) {+function OEe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c, clearFilters: l }) {let u = CQ({view: e,revision: 0,@@ -64546,11 +64571,11 @@ function EEe({ 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)(DEe, {+ }) : /* @__PURE__ */ (0, I.jsx)(kEe, {searched: !!(n.groups || []).length || !!(e.status || e.provider || e.tags.length || e.durMin || e.durMax),clear: l,actions: c,- sources: tEe(n.sources || [], e.author)+ sources: rEe(n.sources || [], e.author)});return /* @__PURE__ */ (0, I.jsx)("div", {"data-follow-list": "",@@ -64559,18 +64584,18 @@ function EEe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,children: m});}-function DEe({ searched: e, clear: t, actions: n, sources: r }) {+function kEe({ searched: e, clear: t, actions: n, sources: r }) {return /* @__PURE__ */ (0, I.jsx)("div", {"data-follow-empty": "",className: "contents",- children: /* @__PURE__ */ (0, I.jsx)(EV, {- icon: OV(e ? "search-x" : "rss"),+ children: /* @__PURE__ */ (0, I.jsx)(DV, {+ icon: kV(e ? "search-x" : "rss"),title: e ? "当前筛选下没有更新" : "还没有抓到更新",actions: e ? /* @__PURE__ */ (0, I.jsx)(J, {size: "small",onClick: t,children: "清除筛选"- }) : r.length ? /* @__PURE__ */ (0, I.jsx)(nEe, {+ }) : r.length ? /* @__PURE__ */ (0, I.jsx)(iEe, {sources: r,report: n.checkReport}) : /* @__PURE__ */ (0, I.jsx)(zL, {@@ -64619,7 +64644,7 @@ function DQ(e, t) {y1: a + r});}-function OEe(e, t) {+function AEe(e, t) {if (!EQ(e) || !(t > 0)) return wQ(e);let n = Math.min(e.width, e.height * t);return TQ({@@ -64629,7 +64654,7 @@ function OEe(e, t) {y1: e.height});}-function kEe(e, t, n) {+function jEe(e, t, n) {if (!EQ(t) || !(n > 0)) return wQ(t);let r = OQ(e, t), i = DQ({width: r.x1 - r.x0,@@ -64678,7 +64703,7 @@ function AQ(e, t, n, r = null) {y1: a + s / 2}, n, r);}-function AEe(e, t, n, r, i = null) {+function MEe(e, t, n, r, i = null) {let a = {x0: e.x0,y0: e.y0,@@ -64687,7 +64712,7 @@ function AEe(e, t, n, r, i = null) {};return OQ(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");}-function jEe(e, t) {+function NEe(e, t) {return EQ(t) ? {left: e.x0 / t.width * 100,top: e.y0 / t.height * 100,@@ -64700,7 +64725,7 @@ function jEe(e, t) {height: 0};}-function MEe(e, t) {+function PEe(e, t) {if (!EQ(t)) return {size: "cover",position: "50% 50%"@@ -64711,7 +64736,7 @@ function MEe(e, t) {position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`};}-function NEe(e, t) {+function FEe(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}%`,@@ -64723,11 +64748,11 @@ function NEe(e, t) {function jQ(e, t, n) {return t > 0 ? e * n / t : 0;}-function PEe(e, t) {+function IEe(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 FEe = .02, MQ = 1.08;+var LEe = .02, MQ = 1.08;function NQ({ 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)(() => {@@ -64765,14 +64790,14 @@ function NQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: olet 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(kQ(n.box, o.dx, o.dy, r)) : i(AEe(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(kQ(n.box, o.dx, o.dy, r)) : i(MEe(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) * FEe), o = {+ let a = Math.max(1, (n.x1 - n.x0) * LEe), o = {ArrowLeft: [-a, 0],ArrowRight: [a, 0],ArrowUp: [0, -a],@@ -64780,7 +64805,7 @@ function NQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o};o[e.key] ? (e.preventDefault(), i(kQ(n, o[e.key][0], o[e.key][1], r))) : (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(AQ(n, e.key === "-" ? 1 / MQ : MQ, r, t)));}- let v = n && r ? jEe(OQ(n, r, t), r) : null, y = v ? PEe(v, d) : !1, b = v ? {+ let v = n && r ? NEe(OQ(n, r, t), r) : null, y = v ? IEe(v, d) : !1, b = v ? {"--crop-l": `${v.left}%`,"--crop-t": `${v.top}%`,"--crop-w": `${v.width}%`,@@ -64860,12 +64885,12 @@ function NQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o});}// src/react/avatar-picker/avatar-picker.ts-var IEe = "/api/avatar-choices", PQ = "/api/avatar-pick", LEe = "/api/avatar-code-cover", FQ = "/api/avatar-frame", REe = "/avatar-choice", IQ = (e, t) => [+var REe = "/api/avatar-choices", PQ = "/api/avatar-pick", zEe = "/api/avatar-code-cover", FQ = "/api/avatar-frame", BEe = "/avatar-choice", IQ = (e, t) => ["avatar-choices",e,t-], LQ = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, RQ = (e, t, n, r = "") => `${REe}${LQ(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), zQ = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", zEe = (e, t, n) => B(IEe + LQ(e, t), n), BEe = (e) => V(LEe, { code: e });-async function VEe(e, t, n) {+], LQ = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, RQ = (e, t, n, r = "") => `${BEe}${LQ(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), zQ = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", VEe = (e, t, n) => B(REe + LQ(e, t), n), HEe = (e) => V(zEe, { code: e });+async function UEe(e, t, n) {let r = await V(FQ, {kind: e,id: t,@@ -64879,11 +64904,11 @@ async function VEe(e, t, n) {bases: r.bases};}-var HEe = (e, t, n) => V(FQ, {+var WEe = (e, t, n) => V(FQ, {kind: e,id: t,url: n-}), UEe = (e, t, n) => BQ(`${FQ}${LQ(e, t)}&name=${encodeURIComponent(n.name)}`, n);+}), GEe = (e, t, n) => BQ(`${FQ}${LQ(e, t)}&name=${encodeURIComponent(n.name)}`, n);async function BQ(e, t) {let n = await fetch(e, {method: "POST",@@ -64895,13 +64920,13 @@ async function BQ(e, t) {}function VQ(e, t, n) {let r = t.width === e.width && t.height === e.height;- return e.focus && r ? kEe(e.focus, t, n) : DQ(t, n);+ return e.focus && r ? jEe(e.focus, t, n) : DQ(t, n);}-var WEe = (e) => e.crop && EQ({+var KEe = (e) => e.crop && EQ({width: e.width,height: e.height});-async function GEe(e, t, n) {+async function qEe(e, t, n) {if (!("file" in n)) {await V(PQ, {kind: e,@@ -64919,16 +64944,16 @@ async function GEe(e, t, n) {await BQ(`${PQ}${LQ(e, t)}&name=${encodeURIComponent(r.name)}${a}`, r);}var HQ = 2;-function KEe(e, t) {+function JEe(e, t) {if (!t) return e;let n = t.matched_names.filter((t) => t !== e);return n.length ? `${e}:图库里按${`「${n.slice(0, HQ).join("」「")}」`}${n.length > HQ ? `等 ${n.length.toLocaleString()} 个名字` : ""}找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:还没有备选图片,可输入番号、图片地址或从本机选择。`;}-var qEe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;-function JEe(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 ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${qEe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;+var YEe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;+function XEe(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 ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${YEe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;}-var UQ = (e) => e.cast > 1, YEe = (e) => UQ(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, XEe = {+var UQ = (e) => e.cast > 1, ZEe = (e) => UQ(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, QEe = {gfriends: "图库",history: "用过的",asset: "作品画面",@@ -64938,7 +64963,7 @@ var UQ = (e) => e.cast > 1, YEe = (e) => UQ(e) ? `${e.label}:${e.cast.toLocalesocial: "社媒头像",online: "在线作品"};-function ZEe(e) {+function $Ee(e) {if (e.startsWith("follow:")) {let t = e.split(":")[2];return t === "cover" ? "作品封面" : `内容图片 ${Number(t.replace("image", "") || 0) + 1}`;@@ -64949,19 +64974,19 @@ function ZEe(e) {let n = Number(t.replace("cell", ""));return Number.isFinite(n) ? `第 ${n + 1} 格` : t;}-var QEe = (e) => `${XEe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (UQ(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), $Ee = 8, eDe = 3 / 4;-async function tDe(e, t, n) {+var eDe = (e) => `${QEe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (UQ(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), tDe = 8, nDe = 3 / 4;+async function rDe(e, t, n) {switch (n.via) {- case "choice": return { choice: await VEe(e, t, n.choice) };- case "code": return { choice: await BEe(n.code) };- case "url": return { choice: await HEe(e, t, n.url) };+ case "choice": return { choice: await UEe(e, t, n.choice) };+ case "code": return { choice: await HEe(n.code) };+ case "url": return { choice: await WEe(e, t, n.url) };case "file": return {- choice: await UEe(e, t, n.file),+ choice: await GEe(e, t, n.file),file: n.file};}}-function nDe({ kind: e, entityId: t, name: n, onPicked: r }) {+function iDe({ 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",@@ -64976,12 +65001,12 @@ function nDe({ kind: e, entityId: t, name: n, onPicked: r }) {className: "size-4"})})- }), /* @__PURE__ */ (0, I.jsx)(CV, {+ }), /* @__PURE__ */ (0, I.jsx)(wV, {isOpen: i,onOpenChange: a,width: "avatar-picker",label: "更换头像",- children: /* @__PURE__ */ (0, I.jsx)(rDe, {+ children: /* @__PURE__ */ (0, I.jsx)(aDe, {kind: e,entityId: t,name: n,@@ -64990,10 +65015,10 @@ function nDe({ kind: e, entityId: t, name: n, onPicked: r }) {})})] });}-function rDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {- let a = (0, F.useRef)(null), o = tH(), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(null), p = IQ(e, t), m = (0, F.useRef)(!1), h = Pt({+function aDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {+ let a = (0, F.useRef)(null), o = nH(), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(null), p = IQ(e, t), m = (0, F.useRef)(!1), h = Pt({queryKey: p,- queryFn: ({ signal: n }) => zEe(e, t, n),+ queryFn: ({ signal: n }) => VEe(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@@ -65002,12 +65027,12 @@ function rDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {m.current && H.removeQueries({ queryKey: IQ(e, t) });}, [e, t]);let g = Ft({- mutationFn: (n) => GEe(e, t, n),+ mutationFn: (n) => qEe(e, t, n),onSuccess: () => {m.current = !0, i(), r();}}), _ = Ft({- mutationFn: (n) => tDe(e, t, n),+ mutationFn: (n) => rDe(e, t, n),onMutate: () => {g.reset();},@@ -65028,11 +65053,11 @@ function rDe({ 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 ? cr(g.error) : "") || (!d && _.error ? cr(_.error) : "") || (h.error ? cr(h.error) : ""), w = g.isPending || _.isPending, T = d ? "" : JEe(x), E = !!C && !!h.error && C === cr(h.error), D = h.isPending || S.length > 0;+ let x = h.data, S = x?.choices ?? [], C = (g.error ? cr(g.error) : "") || (!d && _.error ? cr(_.error) : "") || (h.error ? cr(h.error) : ""), w = g.isPending || _.isPending, T = d ? "" : XEe(x), E = !!C && !!h.error && C === cr(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)(wV, { children: /* @__PURE__ */ (0, I.jsx)(mV, { className: "size-6" }) }),+ /* @__PURE__ */ (0, I.jsx)(TV, { children: /* @__PURE__ */ (0, I.jsx)(hV, { className: "size-6" }) }),/* @__PURE__ */ (0, I.jsxs)("div", {className: "flex min-w-0 flex-1 flex-col gap-2",children: [@@ -65042,25 +65067,25 @@ function rDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {slot: "title",className: "text-title-3-semibold text-text-primary",children: d ? "框出头像那一块" : "更换头像"- }), !d && S.length ? /* @__PURE__ */ (0, I.jsxs)(lW, {+ }), !d && S.length ? /* @__PURE__ */ (0, I.jsxs)(uW, {color: "soft",children: [S.length.toLocaleString(), " 张可选"]}) : null]}),/* @__PURE__ */ (0, I.jsx)("p", {className: "text-body-2-regular text-text-secondary",- children: d ? YEe(d.choice) : KEe(n, x)+ children: d ? ZEe(d.choice) : JEe(n, x)}),- T ? /* @__PURE__ */ (0, I.jsx)(TV, {+ T ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "neutral",children: T}) : null,- C ? /* @__PURE__ */ (0, I.jsx)(TV, {+ C ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "error",action: E ? /* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",size: "small",- ...AV(h.isFetching),+ ...jV(h.isFetching),onClick: () => {h.isFetching || h.refetch();},@@ -65077,7 +65102,7 @@ function rDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {onClick: i})]- }), d ? /* @__PURE__ */ (0, I.jsx)(aDe, {+ }), d ? /* @__PURE__ */ (0, I.jsx)(sDe, {kind: e,entityId: t,choice: d.choice,@@ -65097,7 +65122,7 @@ function rDe({ 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: $Ee }, (e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {+ children: h.isPending ? Array.from({ length: tDe }, (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",@@ -65110,8 +65135,8 @@ function rDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {role: "option","data-avatar-choice": !0,"aria-selected": n.current,- title: QEe(n),- ...AV(w),+ title: eDe(n),+ ...jV(w),onClick: () => {w || (n.crop ? (g.reset(), _.reset(), f({ choice: n })) : _.mutate({via: "choice",@@ -65120,7 +65145,7 @@ function rDe({ 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)(iDe, {+ /* @__PURE__ */ (0, I.jsx)(oDe, {src: RQ(e, t, n.ref, zQ(n, n.ref)),choice: n}),@@ -65130,7 +65155,7 @@ function rDe({ 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)(lW, {+ children: /* @__PURE__ */ (0, I.jsx)(uW, {variant: "caption",color: "gray",children: "在用"@@ -65138,7 +65163,7 @@ function rDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {}) : null,UQ(n) ? /* @__PURE__ */ (0, I.jsx)("span", {className: "absolute top-1 right-1",- children: /* @__PURE__ */ (0, I.jsxs)(lW, {+ children: /* @__PURE__ */ (0, I.jsxs)(uW, {variant: "caption",color: "gray",children: [n.cast.toLocaleString(), " 人"]@@ -65160,7 +65185,7 @@ function rDe({ 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)(SV, {+ children: /* @__PURE__ */ (0, I.jsx)(CV, {"aria-label": "番号",placeholder: "番号,如 ABW-232",value: l,@@ -65170,7 +65195,7 @@ function rDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {type: "submit",variant: "secondary",disabled: !l.trim(),- ...AV(v("code")),+ ...jV(v("code")),children: "取封面来框"})]}), /* @__PURE__ */ (0, I.jsxs)("div", {@@ -65179,7 +65204,7 @@ function rDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {/* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",onClick: () => a.current?.click(),- ...AV(v("file")),+ ...jV(v("file")),children: "从本机选图片"}),/* @__PURE__ */ (0, I.jsx)("input", {@@ -65199,7 +65224,7 @@ function rDe({ 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)(SV, {+ children: /* @__PURE__ */ (0, I.jsx)(CV, {type: "url","aria-label": "图片地址",placeholder: "https://…",@@ -65209,7 +65234,7 @@ function rDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {}), /* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",disabled: !s.trim(),- ...AV(v("url")),+ ...jV(v("url")),onClick: () => {w || _.mutate({via: "url",@@ -65223,7 +65248,7 @@ function rDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {})]})] })] });}-function iDe({ src: e, choice: t }) {+function oDe({ 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);@@ -65231,7 +65256,7 @@ function iDe({ src: e, choice: t }) {let s = {width: t.width,height: t.height- }, c = WEe(t) ? NEe(VQ(t, s, eDe), s) : null, l = r || a ? !0 : void 0;+ }, c = KEe(t) ? FEe(VQ(t, s, nDe), 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",@@ -65257,12 +65282,12 @@ function iDe({ src: e, choice: t }) {})]});}-function aDe({ 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 = zQ(n, s), m = RQ(e, t, s, p), h = tH();+function sDe({ 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 = zQ(n, s), m = RQ(e, t, s, p), h = nH();function g(e) {c(e), u(null), f(null);}- let _ = d && l ? MEe(d, l) : null;+ let _ = d && l ? PEe(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",@@ -65287,7 +65312,7 @@ function aDe({ 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: ZEe(e)+ children: $Ee(e)}, e))}) : null]}), /* @__PURE__ */ (0, I.jsxs)("div", {@@ -65307,12 +65332,12 @@ function aDe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })/* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",onClick: i,- ...AV(r),+ ...jV(r),children: "返回备选图片"}),n.crop ? null : /* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",- ...AV(r),+ ...jV(r),onClick: () => {r || a(null);},@@ -65320,7 +65345,7 @@ function aDe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })}),/* @__PURE__ */ (0, I.jsx)(J, {disabled: !d || !l,- ...AV(r),+ ...jV(r),onClick: () => {d && !r && a({ref: s,@@ -65356,14 +65381,14 @@ function GQ({ 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)(TV, {+ children: /* @__PURE__ */ (0, I.jsx)(EV, {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)(TV, {+ children: /* @__PURE__ */ (0, I.jsx)(EV, {tone: "neutral",action: /* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",@@ -65444,7 +65469,7 @@ function KQ({ code: e, person: t, detail: n = !1 }) {}// src/react/feed-new/feed-new-row.tsxfunction qQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {- let a = (0, F.useContext)(gG), o = (0, F.useRef)(null), [s, c] = (0, F.useState)([]), l = e?.items.length ? e.html : "";+ let a = (0, F.useContext)(_G), 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);}, [@@ -65576,7 +65601,7 @@ function QQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {}), a]})] });}-function oDe({ following: e, busy: t, onToggle: n, tip: r }) {+function cDe({ 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 = () => {XQ(o.current) && o.current.hidePopover(), c(!1);}, d = () => {@@ -65628,7 +65653,7 @@ function oDe({ following: e, busy: t, onToggle: n, tip: r }) {});}// src/react/entity-hero/name-picker.tsx-function sDe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {+function lDe({ 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", "名字与别名");@@ -65644,7 +65669,7 @@ function sDe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {placement: "bottom start",offset: 8,containerPadding: 8,- className: qV,+ className: JV,"data-namepick-menu": "",children: /* @__PURE__ */ (0, I.jsxs)(qpe, {"aria-label": "名字与别名",@@ -65678,8 +65703,8 @@ function sDe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {})]});}-var cDe = (e) => e === "studio" || e === "agency", $Q = (e) => e === "performer" || e === "creator", lDe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";-function uDe(e, t = "zh-CN") {+var uDe = (e) => e === "studio" || e === "agency", $Q = (e) => e === "performer" || e === "creator", dDe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";+function fDe(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@@ -65702,7 +65727,7 @@ function t$(e, t) {return r && [e.label, n].map(Hn).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";}var n$ = (e) => ({ site: Rn(e) });-function dDe(e, t) {+function pDe(e, t) {let n = e$(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({type: "icon",url: e.url,@@ -65744,9 +65769,9 @@ function dDe(e, t) {mark: n$(e)};});- return [...r, ...fDe(a)];+ return [...r, ...mDe(a)];}-function fDe(e) {+function mDe(e) {let t = e.filter((e) => e.type === "private");return t.length < 2 ? e : [...e.filter((e) => e.type !== "private"), {type: "private",@@ -65755,7 +65780,7 @@ function fDe(e) {}];}var r$ = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");-function pDe(e) {+function hDe(e) {return [["legal_name",@@ -65811,7 +65836,7 @@ function pDe(e) {}]}] : []);}-function mDe(e) {+function gDe(e) {if (!e) return [];let t = [];e.birth_date && t.push({@@ -65875,7 +65900,7 @@ function i$(e, t = 4) {rest: e.length - n};}-function hDe(e) {+function _De(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 ? {@@ -65885,7 +65910,7 @@ function hDe(e) {} : null;}// src/react/entity-hero/entity-hero-page.tsx-function gDe(e) {+function vDe(e) {return ho({id: e.id,hasImage: e.has_image,@@ -65896,9 +65921,9 @@ function gDe(e) {standIn: e.avatar_stand_in});}-function _De({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {+function yDe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {wL();- let s = tn(e, n.canonical_name, Number(n.id)), c = nn(e, n.canonical_name, Number(n.id)), l = $Q(e), u = cDe(e), d = l ? mDe(n.profile) : u ? pDe(n.company_profile) : [], f = dDe(n, e), p = r$(n), m = e === "agency" ? [] : n.related_performers || [], h = (0, F.useRef)(null), g = (0, F.useRef)(null);+ let s = tn(e, n.canonical_name, Number(n.id)), c = nn(e, n.canonical_name, Number(n.id)), l = $Q(e), u = uDe(e), d = l ? gDe(n.profile) : u ? hDe(n.company_profile) : [], f = pDe(n, e), p = r$(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)(() => {@@ -65911,7 +65936,7 @@ function _De({ 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)(vDe, {+ children: [/* @__PURE__ */ (0, I.jsx)(bDe, {kind: e,name: s,helpers: o,@@ -65919,7 +65944,7 @@ function _De({ 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)(nDe, {+ children: /* @__PURE__ */ (0, I.jsx)(iDe, {kind: e,entityId: Number(n.id),name: s || t,@@ -65938,13 +65963,13 @@ function _De({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,title: c || void 0,children: s}),- e === "tag" ? null : /* @__PURE__ */ (0, I.jsx)(sDe, {+ e === "tag" ? null : /* @__PURE__ */ (0, I.jsx)(lDe, {current: n.canonical_name,- choices: uDe(n, Yt()),+ choices: fDe(n, Yt()),onChoose: a.chooseName,onAddAlias: a.addAlias}),- n.id ? /* @__PURE__ */ (0, I.jsx)(HV, { item: {+ n.id ? /* @__PURE__ */ (0, I.jsx)(UV, { item: {entity_id: Number(n.id),kind: e,name: n.canonical_name || t,@@ -65958,7 +65983,7 @@ function _De({ 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)(yDe, {+ /* @__PURE__ */ (0, I.jsx)(xDe, {kind: e,entity: n,actions: a@@ -65979,14 +66004,14 @@ function _De({ 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)(TDe, { link: e }, t))+ children: f.map((e, t) => /* @__PURE__ */ (0, I.jsx)(DDe, { link: e }, t))}) : null,- p.length || n.feed ? /* @__PURE__ */ (0, I.jsx)(EDe, {+ p.length || n.feed ? /* @__PURE__ */ (0, I.jsx)(ODe, {entity: n,actions: a,helpers: o}) : null,- n.follow?.held.length ? /* @__PURE__ */ (0, I.jsx)(SDe, {+ n.follow?.held.length ? /* @__PURE__ */ (0, I.jsx)(wDe, {follow: n.follow,displayName: s,actions: a@@ -65995,11 +66020,11 @@ function _De({ 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)(CDe, {+ children: d.map((e) => /* @__PURE__ */ (0, I.jsx)(TDe, {glyph: e.glyph,label: e.label,clip: e.clip,- children: e.tags ? /* @__PURE__ */ (0, I.jsx)(wDe, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {+ children: e.tags ? /* @__PURE__ */ (0, I.jsx)(EDe, { 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))@@ -66018,7 +66043,7 @@ function _De({ 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>${z($n(tn("performer", e.k, e.id)))}</span>${gDe(e)}` }+ dangerouslySetInnerHTML: { __html: `<span>${z($n(tn("performer", e.k, e.id)))}</span>${vDe(e)}` }}), /* @__PURE__ */ (0, I.jsx)("span", {"data-hero-costar-name": "",children: tn("performer", e.k, e.id)@@ -66033,7 +66058,7 @@ function _De({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,act: (e, t) => a.feedAction(e, t)}), i) : null] });}-function vDe({ kind: e, name: t, helpers: n, people: r, company: i }) {+function bDe({ 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="">${z($n(t))}</span>`);return (0, F.useLayoutEffect)(() => {let e = a.current?.querySelector("[data-portrait-initial]");@@ -66047,7 +66072,7 @@ function vDe({ kind: e, name: t, helpers: n, people: r, company: i }) {dangerouslySetInnerHTML: { __html: o }});}-function yDe({ kind: e, entity: t, actions: n }) {+function xDe({ kind: e, entity: t, actions: n }) {let r = e$(t), i = (e, t) => (r) => {r.preventDefault(), n.openEntity(e, t);}, a = r ? r.linked ? /* @__PURE__ */ (0, I.jsx)("a", {@@ -66057,7 +66082,7 @@ function yDe({ 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[Yt()] ?? t.name_groups, r = hDe(e);+ let e = t.name_display?.groups[Yt()] ?? t.name_groups, r = _De(e);return /* @__PURE__ */ (0, I.jsxs)("div", {"data-entity-alias": "meta",children: [@@ -66067,7 +66092,7 @@ function yDe({ kind: e, entity: t, actions: n }) {title: "视频",children: [/* @__PURE__ */ (0, I.jsx)(JQ, { name: "film" }), /* @__PURE__ */ (0, I.jsx)("span", { children: o })]}),- t.follow?.key ? /* @__PURE__ */ (0, I.jsx)(xDe, {+ t.follow?.key ? /* @__PURE__ */ (0, I.jsx)(CDe, {follow: t.follow,actions: n}) : null,@@ -66137,11 +66162,11 @@ function yDe({ kind: e, entity: t, actions: n }) {children: l.name})]}) : null,- s.length ? /* @__PURE__ */ (0, I.jsx)(bDe, { aliases: s }) : null+ s.length ? /* @__PURE__ */ (0, I.jsx)(SDe, { aliases: s }) : null]});}-function bDe({ aliases: e }) {+function SDe({ aliases: e }) {let { shown: t, rest: n } = i$(e, 3);return /* @__PURE__ */ (0, I.jsxs)("div", {"data-meta-item": "names",@@ -66164,7 +66189,7 @@ function bDe({ aliases: e }) {]});}-function xDe({ follow: e, actions: t }) {+function CDe({ follow: e, actions: t }) {let n = e.providers.join(" · ");return /* @__PURE__ */ (0, I.jsxs)("span", {"data-meta-item": "",@@ -66179,7 +66204,7 @@ function xDe({ follow: e, actions: t }) {})]});}-function SDe({ follow: e, displayName: t, actions: n }) {+function wDe({ follow: e, displayName: t, actions: n }) {let [r, i] = (0, F.useState)(""), a = async (e, t) => {if (!r) {i(e);@@ -66193,12 +66218,12 @@ function SDe({ 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)(TV, {+ children: e.held.map((e) => /* @__PURE__ */ (0, I.jsxs)(EV, {tone: "info",title: `关注里有同名作者 ${e.name}`,action: /* @__PURE__ */ (0, I.jsx)(J, {size: "small",- ...AV(r === e.key),+ ...jV(r === e.key),onClick: () => {a(e.key, e.name);},@@ -66230,14 +66255,14 @@ function o$({ label: e, names: t }) {}, t))})] });}-function CDe({ glyph: e, label: t, clip: n, children: r }) {+function TDe({ 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)(JQ, { 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 wDe({ tags: e }) {+function EDe({ tags: e }) {let { shown: t, rest: n } = i$(e);return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, I.jsx)("span", {"data-fact-tag": "",@@ -66270,7 +66295,7 @@ function s$({ mark: e }) {dangerouslySetInnerHTML: { __html: t }});}-function TDe({ link: e }) {+function DDe({ link: e }) {switch (e.type) {case "icon": return /* @__PURE__ */ (0, I.jsx)("a", {"data-link": "icon",@@ -66318,7 +66343,7 @@ function TDe({ link: e }) {});}}-function EDe({ entity: e, actions: t, helpers: n }) {+function ODe({ 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);@@ -66350,19 +66375,19 @@ function EDe({ entity: e, actions: t, helpers: n }) {"data-entry-ordinal": "",children: e.ordinal}) : null]- }, t)), e.feed ? /* @__PURE__ */ (0, I.jsx)(oDe, {+ }, t)), e.feed ? /* @__PURE__ */ (0, I.jsx)(cDe, {following: r,busy: a,onToggle: (e) => {l(e);},- tip: lDe(r)+ tip: dDe(r)}) : null]});}// src/react/entity-page/use-entity-online.ts-var DDe = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;-function ODe(e, t, n) {+var kDe = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;+function ADe(e, t, n) {let [r, i] = (0, F.useState)(() => ga(e));r.author !== e && i(ga(e));let [a, o] = (0, F.useState)({@@ -66441,7 +66466,7 @@ function ODe(e, t, n) {onlineMedia: (e) => c(e),onlineShuffle: () => T({sort: $i,- seed: DDe()+ seed: kDe()}),onlineImagesOnly: (e) => n.setImagesOnly(e),onlineStatus: (e) => T({ status: e }),@@ -66471,7 +66496,7 @@ function ODe(e, t, n) {};}// src/react/entity-page/entity-page-view.tsx-function kDe(e) {+function jDe(e) {let { kind: t, name: n } = e, r = Pt(SZ(t, n)), i = !!r.data?.error, a = r.data?.canonical_name, o = r.data?.redirect ?? (a && a !== n ? {kind: t,name: a@@ -66495,7 +66520,7 @@ function kDe(e) {onRetry: () => {r.refetch();}- }) : !r.data || i || o ? null : /* @__PURE__ */ (0, I.jsx)(MDe, {+ }) : !r.data || i || o ? null : /* @__PURE__ */ (0, I.jsx)(PDe, {...e,entity: r.data});@@ -66512,17 +66537,17 @@ function c$(e) {};return n(r), r.n;}-var ADe = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);-function jDe(e, t) {+var MDe = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);+function NDe(e, t) {return `照片 · ${[e.total || !t ? `${(e.total || 0).toLocaleString()} 张` : "", t ? `样张 ${(e.sample_total || 0).toLocaleString()} 张 · ${t.toLocaleString()} 部作品` : ""].filter(Boolean).join(" · ")}`;}-function MDe(e) {+function PDe(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 = It(CZ(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 || wZ(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} : hZ, [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 = ODe(g, w === "online", {+ let w = l && y === "people" && u.length ? "people" : v.media, T = ADe(g, w === "online", {photoLayout: e.photoLayout,photoLayouts: e.photoLayouts,imagesOnly: e.followImagesOnly,@@ -66755,7 +66780,7 @@ function MDe(e) {await H.fetchQuery(a).catch(() => null);return;}- let r = ADe(), a = await H.fetchInfiniteQuery(CZ(t, n, re, r)).catch(() => null);+ let r = MDe(), a = await H.fetchInfiniteQuery(CZ(t, n, re, r)).catch(() => null);me.current && a?.pages[0] && !a.pages[0].error && ne((e) => ({...e,[re]: r@@ -66790,7 +66815,7 @@ function MDe(e) {k: e.k,label: Pl(e.k),n: e.n,- selected: fTe(i.tag, e.k)+ selected: mTe(i.tag, e.k)})), Te = [u.length,!_,@@ -66832,7 +66857,7 @@ function MDe(e) {Pe = !A.data;let e = vZ(i.tag).length;Ne = `视频 · ${(A.data?.work_total ?? A.data?.total ?? 0).toLocaleString()}${e ? ` · 已选 ${e.toLocaleString()} 个标签` : ""}`;- } else oe && !oe.error ? Ne = De ? `${oe.title} · ${(oe.total || 0).toLocaleString()} 张` : jDe(oe, wZ(oe).length) : Pe = ae.isPending;+ } else oe && !oe.error ? Ne = De ? `${oe.title} · ${(oe.total || 0).toLocaleString()} 张` : NDe(oe, wZ(oe).length) : Pe = ae.isPending;let Fe = (0, F.useMemo)(() => ({...e.card.actions,loadMorePhotos: async () => {@@ -66849,7 +66874,7 @@ function MDe(e) {u]);return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [- /* @__PURE__ */ (0, I.jsx)(_De, {+ /* @__PURE__ */ (0, I.jsx)(yDe, {kind: t,name: n,entity: r,@@ -66859,7 +66884,7 @@ function MDe(e) {actions: be,helpers: xe}, D),- (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Xve, {+ (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Qve, {kind: t,name: n,view: w,@@ -66876,9 +66901,9 @@ function MDe(e) {actions: Se,helpers: Ce}), c.filter),- (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Ive, {+ (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Rve, {enabled: w === "videos",- children: w === "online" ? /* @__PURE__ */ (0, I.jsx)(TEe, {+ children: w === "online" ? /* @__PURE__ */ (0, I.jsx)(DEe, {view: T.view,media: T.media,result: T.result,@@ -66897,11 +66922,11 @@ function MDe(e) {onRetry: () => {A.refetch();}- }) : je ? /* @__PURE__ */ (0, I.jsx)(NDe, {+ }) : je ? /* @__PURE__ */ (0, I.jsx)(FDe, {filtered: Ae,onShowAll: Me,onOnline: g ? () => Se.setView("online") : void 0- }) : /* @__PURE__ */ (0, I.jsx)(GTe, {+ }) : /* @__PURE__ */ (0, I.jsx)(qTe, {kind: t,name: n,view: w,@@ -66934,9 +66959,9 @@ function MDe(e) {}), c.body)] });}-function NDe({ filtered: e, onShowAll: t, onOnline: n }) {- return e ? /* @__PURE__ */ (0, I.jsx)(EV, {- icon: OV("search"),+function FDe({ filtered: e, onShowAll: t, onOnline: n }) {+ return e ? /* @__PURE__ */ (0, I.jsx)(DV, {+ icon: kV("search"),title: "没有符合条件的视频",actions: /* @__PURE__ */ (0, I.jsx)(J, {size: "small",@@ -66944,8 +66969,8 @@ function NDe({ filtered: e, onShowAll: t, onOnline: n }) {children: "清除筛选"}),children: "清除筛选后查看名下全部视频。"- }) : /* @__PURE__ */ (0, I.jsx)(EV, {- icon: OV("film"),+ }) : /* @__PURE__ */ (0, I.jsx)(DV, {+ icon: kV("film"),title: "还没有视频",actions: n ? /* @__PURE__ */ (0, I.jsx)(J, {size: "small",@@ -66961,7 +66986,7 @@ function NDe({ filtered: e, onShowAll: t, onOnline: n }) {}// src/react/diagnostics/diagnostics.tsvar l$ = ["diagnostics"], u$ = (e) => B("/api/diagnostics", e);-async function PDe(e) {+async function IDe(e) {await H.fetchQuery({queryKey: l$,queryFn: () => u$(e),@@ -66969,7 +66994,7 @@ async function PDe(e) {});}// src/react/feed-new/feed-new-page.tsx-function FDe({ host: e, revision: t, helpers: n, actions: r }) {+function LDe({ host: e, revision: t, helpers: n, actions: r }) {let i = Pt(fZ(null, n.feedRowHtml)), a = (0, F.useRef)(t);return (0, F.useEffect)(() => {a.current !== t && (a.current = t, H.invalidateQueries({ queryKey: dZ(null) }));@@ -66982,7 +67007,7 @@ function FDe({ host: e, revision: t, helpers: n, actions: r }) {}), e);}// src/react/index/index-search.tsx-var IDe = OV("search");+var RDe = kV("search");function d$({ 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)(() => {@@ -67000,15 +67025,15 @@ function d$({ label: e, value: t, onQuery: n }) {onCompositionEnd: (e) => {a.current = !1, s(e.target.value);},- children: /* @__PURE__ */ (0, I.jsx)(yV, {+ children: /* @__PURE__ */ (0, I.jsx)(bV, {"aria-label": e,value: r,onChange: (e) => {i(e), a.current || s(e);},- children: /* @__PURE__ */ (0, I.jsx)(xV, {+ children: /* @__PURE__ */ (0, I.jsx)(SV, {type: "search",- leadingIcon: IDe,+ leadingIcon: RDe,spellCheck: !1,autoComplete: "off",enterKeyHint: "search",@@ -67058,7 +67083,7 @@ var m$ = () => /* @__PURE__ */ (0, I.jsx)("span", {"aria-hidden": !0,"data-tag-dot": "",className: "size-1.75 flex-none rounded-full"-}), h$ = OV("pencil"), g$ = (e, t) => ({+}), h$ = kV("pencil"), g$ = (e, t) => ({kind: "tag",name: e.k,favorite: e.favorite,@@ -67067,7 +67092,7 @@ var m$ = () => /* @__PURE__ */ (0, I.jsx)("span", {tag_id: e.id || e.k} : { entity_id: e.entity_id }});-function LDe({ tag: e, actions: t }) {+function zDe({ 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",@@ -67093,8 +67118,8 @@ function LDe({ tag: e, actions: t }) {})]}),- t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(HV, { item: g$(e, t.online) }),- t.edit ? /* @__PURE__ */ (0, I.jsx)(VV, {+ t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(UV, { item: g$(e, t.online) }),+ t.edit ? /* @__PURE__ */ (0, I.jsx)(HV, {label: `编辑标签 ${e.label}`,onClick: () => t.edit?.(e.k),children: /* @__PURE__ */ (0, I.jsx)(h$, {})@@ -67108,17 +67133,17 @@ function _$({ groups: e, actions: t }) {className: "flex flex-col gap-4",children: e.map(([e, n], r) => /* @__PURE__ */ (0, I.jsxs)("section", {"data-alpha-group": r,- className: HH({+ className: UH({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)(HW, { value: n.length })]+ children: [e, /* @__PURE__ */ (0, I.jsx)(UW, { 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)(LDe, {+ children: n.map((e) => /* @__PURE__ */ (0, I.jsx)(zDe, {tag: e,actions: t}, e.k))@@ -67126,7 +67151,7 @@ function _$({ groups: e, actions: t }) {}, e))});}-var RDe = "\xA0";+var BDe = "\xA0";function v$({ tags: e, actions: t }) {return /* @__PURE__ */ (0, I.jsx)("div", {"data-tag-cloud": "",@@ -67145,7 +67170,7 @@ function v$({ tags: e, actions: t }) {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 + RDe+ children: e.label + BDe}), /* @__PURE__ */ (0, I.jsx)("span", {"data-tag-n": "",className: "text-caption-1-regular opacity-60",@@ -67154,7 +67179,7 @@ function v$({ 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)(HV, { item: g$(e, t.online) }), t.edit ? /* @__PURE__ */ (0, I.jsx)(VV, {+ children: [t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(UV, { item: g$(e, t.online) }), t.edit ? /* @__PURE__ */ (0, I.jsx)(HV, {label: `编辑标签 ${e.label}`,onClick: () => t.edit?.(e.k),children: /* @__PURE__ */ (0, I.jsx)(h$, {})@@ -67163,7 +67188,7 @@ function v$({ tags: e, actions: t }) {}, e.k))});}-var zDe = [[+var VDe = [["cloud","标签云","tags"@@ -67225,14 +67250,14 @@ function y$({ categories: e, category: t, online: n, readout: r, letters: i, vieorientation: "horizontal",value: a,onChange: (e) => c(e),- className: `ml-auto ${BU}`,- children: zDe.map(([e, t, n]) => {- let r = OV(n);+ className: `ml-auto ${VU}`,+ children: VDe.map(([e, t, n]) => {+ let r = kV(n);return /* @__PURE__ */ (0, I.jsx)($z, {value: e,"aria-label": t,"data-glass-segment": "",- className: VU,+ className: HU,children: /* @__PURE__ */ (0, I.jsx)("span", {title: t,className: "contents",@@ -67244,13 +67269,13 @@ function y$({ categories: e, category: t, online: n, readout: r, letters: i, vie] })});}-function BDe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {+function HDe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {return /* @__PURE__ */ (0, I.jsxs)(Pj, {visible: e > 0,label: "所选标签操作",count: `已选 ${e.toLocaleString()} 个标签`,children: [- /* @__PURE__ */ (0, I.jsx)(eH, {+ /* @__PURE__ */ (0, I.jsx)(tH, {isSelected: t === "any",onChange: (e) => n(e ? "any" : "all"),children: /* @__PURE__ */ (0, I.jsxs)("span", {@@ -67297,7 +67322,7 @@ var w$ = (e, t) => {x$ = {host: e,root: n- }, n.render(/* @__PURE__ */ (0, I.jsxs)(rH, { children: [/* @__PURE__ */ (0, I.jsx)(dH, {+ }, n.render(/* @__PURE__ */ (0, I.jsxs)(iH, { children: [/* @__PURE__ */ (0, I.jsx)(fH, {id: "receipts",position: "bottom-right",closeButton: !0,@@ -67321,7 +67346,7 @@ var w$ = (e, t) => {success: b$(t.success, !0),error: b$(t.error, !1)}- }), /* @__PURE__ */ (0, I.jsx)(dH, {+ }), /* @__PURE__ */ (0, I.jsx)(fH, {id: "processing",position: "bottom-right",gap: 8,@@ -67342,13 +67367,13 @@ var w$ = (e, t) => {toastOptions: { closeButtonAriaLabel: "关闭任务提示" },containerAriaLabel: "后台任务"})] }));-}, VDe = 6e3, T$ = (e, t) => {+}, UDe = 6e3, T$ = (e, t) => {if (!String(t.html ?? "").trim()) return;- let n = t.alert ? oH.error : oH.success, r = t.action;+ let n = t.alert ? sH.error : sH.success, r = t.action;n(/* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {id: e,toasterId: "receipts",- duration: t.timeout > 0 ? t.timeout : VDe,+ duration: t.timeout > 0 ? t.timeout : UDe,action: r ? {label: r.label,onClick: (e) => {@@ -67427,7 +67452,7 @@ function A$({ operation: e, selected: t, close: n, done: r, scope: i = "local" }}), () => {e.abort(), n.close();};- }, []), s ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(HDe, {+ }, []), s ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(WDe, {operation: a.current.operation,selected: a.current.selected,dialog: s.dialog,@@ -67436,7 +67461,7 @@ function A$({ operation: e, selected: t, close: n, done: r, scope: i = "local" }}}), s.host) : null;}-function HDe({ operation: e, selected: t, dialog: n, update: r }) {+function WDe({ operation: e, selected: t, dialog: n, update: r }) {let [i, a] = (0, F.useState)(t[0]?.k || ""), [o, s] = (0, F.useState)(t[0] ? E$(t[0]) : 0);return (0, F.useEffect)(() => {r({@@ -67450,7 +67475,7 @@ function HDe({ operation: e, selected: t, dialog: n, update: r }) {e,t,r- ]), e === "rename" ? /* @__PURE__ */ (0, I.jsx)(SV, {+ ]), e === "rename" ? /* @__PURE__ */ (0, I.jsx)(CV, {autoFocus: !0,"aria-label": "标签名称",value: i,@@ -67464,7 +67489,7 @@ function HDe({ operation: e, selected: t, dialog: n, update: r }) {let n = t.find((t) => String(E$(t)) === String(e));n && s(E$(n));},- children: t.map((e) => /* @__PURE__ */ (0, I.jsx)(sW, {+ children: t.map((e) => /* @__PURE__ */ (0, I.jsx)(cW, {id: String(E$(e)),children: e.k}, E$(e)))@@ -67501,7 +67526,7 @@ function j$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,(0, F.useEffect)(() => {O(/* @__PURE__ */ new Map());}, [S]);- let k = new Set(D.keys()), [A, j] = (0, F.useState)(null), M = AH(), ee = E.data?.items || [], N = ee, te = (s ? kZ : OZ).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 = jH(), ee = E.data?.items || [], N = ee, te = (s ? kZ : OZ).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" ? zZ(P, (e) => e) : [], re = [...D.values()], ie = (e) => {@@ -67590,7 +67615,7 @@ function j$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,E.isPending ? /* @__PURE__ */ (0, I.jsx)("div", { dangerouslySetInnerHTML: { __html: ec({mode: g,pageSize: C.pageSize- }) } }) : E.isError ? /* @__PURE__ */ (0, I.jsx)(TV, {+ }) } }) : E.isError ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "error",action: /* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",@@ -67604,7 +67629,7 @@ function j$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,}) : /* @__PURE__ */ (0, I.jsx)(v$, {tags: P,actions: oe- }) : /* @__PURE__ */ (0, I.jsx)(TV, {+ }) : /* @__PURE__ */ (0, I.jsx)(EV, {tone: "neutral",children: "没有符合条件的标签。"}),@@ -67620,7 +67645,7 @@ function j$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,pageSizes: $s})}) : null,- M.error ? /* @__PURE__ */ (0, I.jsx)(TV, {+ M.error ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "error",children: M.error}) : null,@@ -67646,7 +67671,7 @@ function j$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,/* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",size: "small",- ...AV(!!M.busy),+ ...jV(!!M.busy),onClick: () => ie({operation: v ? "restore" : "hide",ids: ae@@ -67656,7 +67681,7 @@ function j$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,s ? /* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",size: "small",- ...AV(!!M.busy),+ ...jV(!!M.busy),onClick: () => ie({operation: b ? "unblock" : "block",ids: ae@@ -67676,7 +67701,7 @@ function j$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,});}// src/react/index/index-page.tsx-var UDe = [+var GDe = [{value: "studios",label: "厂牌",@@ -67692,7 +67717,7 @@ var UDe = [label: "系列",symbol: "list"}-], WDe = [{+], KDe = [{value: "local",label: "本地",symbol: "hard-drive"@@ -67700,7 +67725,7 @@ var UDe = [value: "online",label: "在线",symbol: "rss"-}], GDe = [+}], qDe = [{value: "performers",label: "艺人",@@ -67716,7 +67741,7 @@ var UDe = [label: "在线",symbol: "rss"}-], KDe = {+], JDe = {people: [["big","大图 · 竖幅头像",@@ -67745,20 +67770,20 @@ var UDe = ["layout-grid"]]};-function qDe({ kind: e, layout: t, onChange: n }) {- return /* @__PURE__ */ (0, I.jsx)(LU, {+function YDe({ kind: e, layout: t, onChange: n }) {+ return /* @__PURE__ */ (0, I.jsx)(RU, {"aria-label": `${DZ[e]}索引版式`,orientation: "horizontal",value: t,onChange: (e) => n(e),"data-index-layout": "",- className: `flex-none ${RU}`,- children: KDe[e === "series" ? "series" : MZ(e) ? "company" : "people"].map(([e, t, n]) => {- let r = OV(n);+ className: `flex-none ${zU}`,+ children: JDe[e === "series" ? "series" : MZ(e) ? "company" : "people"].map(([e, t, n]) => {+ let r = kV(n);return /* @__PURE__ */ (0, I.jsx)($z, {value: e,"aria-label": t,- className: lve,+ className: uve,children: /* @__PURE__ */ (0, I.jsx)("span", {title: t,className: "contents",@@ -67768,7 +67793,7 @@ function qDe({ kind: e, layout: t, onChange: n }) {})});}-function JDe(e) {+function XDe(e) {let [t, n] = (0, F.useState)(!1), [r, i] = (0, F.useState)(() => NZ({kind: e.kind,q: e.q,@@ -67817,7 +67842,7 @@ function JDe(e) {getNextPageParam: h === "tags" ? () => void 0 : E.getNextPageParam,enabled: !(t && h === "tags"),placeholderData: ke- }), O = DTe(D.data), k = D.isPending || D.isPlaceholderData, A = !!D.hasNextPage && !D.isPlaceholderData, j = D.data?.pages[0]?.total;+ }), O = kTe(D.data), k = D.isPending || D.isPlaceholderData, A = !!D.hasNextPage && !D.isPlaceholderData, j = D.data?.pages[0]?.total;(0, F.useEffect)(() => {lm(() => window.location.pathname === `/${h}` && !!m.current?.isConnected, m.current?.querySelector("[data-index-body]"), { pending: k });}, [@@ -67826,7 +67851,7 @@ function JDe(e) {D.isPlaceholderData,r]), p$(h === "tags" && !D.isPlaceholderData ? j : void 0, w, T);- let M = h === "tags" ? D.isPending || D.isError ? "" : `${(j ?? O.length).toLocaleString()} 个标签` : OTe(O.length, !!D.hasNextPage), ee = `${h}:${_}:${g}`, N = (0, F.useRef)(null), te = D.data?.pages[0]?.categories;+ let M = h === "tags" ? D.isPending || D.isError ? "" : `${(j ?? O.length).toLocaleString()} 个标签` : ATe(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@@ -67849,8 +67874,8 @@ function JDe(e) {x]), oe = (t) => {l(t), e.savePreference({ layout: t });- }, se = h === "tags" ? /* @__PURE__ */ (0, I.jsx)(WW, {- tabs: WDe,+ }, se = h === "tags" ? /* @__PURE__ */ (0, I.jsx)(GW, {+ tabs: KDe,value: _,label: "词表",onChange: (e) => {@@ -67860,8 +67885,8 @@ function JDe(e) {view: e === "online" ? "alphabet" : v});}- }) : MZ(h) || h === "series" ? /* @__PURE__ */ (0, I.jsx)(WW, {- tabs: UDe,+ }) : MZ(h) || h === "series" ? /* @__PURE__ */ (0, I.jsx)(GW, {+ tabs: GDe,value: h,label: "资料类型",onChange: (e) => C({ kind: e })@@ -67897,18 +67922,18 @@ function JDe(e) {})})}) : null,- jZ(h) ? /* @__PURE__ */ (0, I.jsx)(qDe, {+ jZ(h) ? /* @__PURE__ */ (0, I.jsx)(YDe, {kind: h,layout: c,onChange: oe}) : null,- /* @__PURE__ */ (0, I.jsx)(UV, { kind: h === "tags" ? "tag" : h === "series" ? "series" : h === "studios" ? "studio" : h === "agencies" ? "agency" : h === "creators" ? "creator" : "performer" }),+ /* @__PURE__ */ (0, I.jsx)(WV, { 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: OV("pencil"),+ leadingIcon: kV("pencil"),"aria-label": t ? "返回标签浏览" : "管理标签",title: t ? "返回标签浏览" : "管理标签","aria-pressed": t,@@ -67925,8 +67950,8 @@ function JDe(e) {})]}),- h === "performers" || h === "creators" ? /* @__PURE__ */ (0, I.jsx)(WW, {- tabs: GDe,+ h === "performers" || h === "creators" ? /* @__PURE__ */ (0, I.jsx)(GW, {+ tabs: qDe,value: S ? "online" : h,label: "人物名册",onChange: (t) => {@@ -67989,8 +68014,8 @@ function JDe(e) {}),children: (() => {if (k) return null;- if (D.isError) return /* @__PURE__ */ (0, I.jsx)(EV, {- icon: OV("alert"),+ if (D.isError) return /* @__PURE__ */ (0, I.jsx)(DV, {+ icon: kV("alert"),title: `没能读取${b}`,actions: /* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",@@ -67999,7 +68024,7 @@ function JDe(e) {}),children: bn(D.error)});- if (!O.length) return /* @__PURE__ */ (0, I.jsx)(XDe, {+ if (!O.length) return /* @__PURE__ */ (0, I.jsx)(QDe, {kind: h,filtered: !!g || y !== "all",online: x || S,@@ -68008,7 +68033,7 @@ function JDe(e) {category: "all"})});- if (S) return /* @__PURE__ */ (0, I.jsx)(NTe, {+ if (S) return /* @__PURE__ */ (0, I.jsx)(FTe, {items: O,layout: c,props: e@@ -68061,7 +68086,7 @@ function JDe(e) {}) : null, "载入更多"]})}) : null,- h === "tags" && !x && e.selectMode ? /* @__PURE__ */ (0, I.jsx)(BDe, {+ h === "tags" && !x && e.selectMode ? /* @__PURE__ */ (0, I.jsx)(HDe, {count: u.size,match: f,onMatch: p,@@ -68075,7 +68100,7 @@ function JDe(e) {]});}-var YDe = {+var ZDe = {tags: "标签",performers: "艺人",creators: "卖家",@@ -68083,9 +68108,9 @@ var YDe = {agencies: "事务所",series: "系列"};-function XDe({ kind: e, filtered: t, online: n, onClear: r }) {- if (t) return /* @__PURE__ */ (0, I.jsx)(EV, {- icon: OV("search"),+function QDe({ kind: e, filtered: t, online: n, onClear: r }) {+ if (t) return /* @__PURE__ */ (0, I.jsx)(DV, {+ icon: kV("search"),title: "没有符合条件的内容",actions: /* @__PURE__ */ (0, I.jsx)(J, {size: "small",@@ -68094,14 +68119,14 @@ function XDe({ kind: e, filtered: t, online: n, onClear: r }) {}),children: "清除筛选或搜索条件后查看全部内容。"});- let i = n && e === "performers" ? "创作者" : YDe[e], a = /* @__PURE__ */ (0, I.jsx)(zL, {+ let i = n && e === "performers" ? "创作者" : ZDe[e], a = /* @__PURE__ */ (0, I.jsx)(zL, {size: "small",variant: n ? "primary" : "secondary",href: "/subscriptions?tab=add",children: "添加关注"});- return /* @__PURE__ */ (0, I.jsx)(EV, {- icon: OV(e === "tags" ? "tags" : "user-round"),+ return /* @__PURE__ */ (0, I.jsx)(DV, {+ icon: kV(e === "tags" ? "tags" : "user-round"),title: `还没有${i}`,actions: n ? a : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(zL, {size: "small",@@ -68118,8 +68143,8 @@ var M$ = {audio: ["音频", "file-audio"],url: ["网址快捷方式", "globe"],other: ["其它文件", "hard-drive"]-}, ZDe = (e) => M$[e.junk_kind || "other"] || M$.other;-function QDe(e) {+}, $De = (e) => M$[e.junk_kind || "other"] || M$.other;+function eOe(e) {return e === "dismissed" ? {operation: "reconsider-junk",label: "重新判断",@@ -68130,21 +68155,21 @@ function QDe(e) {glyph: "check"};}-var N$ = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), $De = (e, t) => [+var N$ = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), tOe = (e, t) => ["junk-queue",e.view,e.kind,t];-function eOe({ kind: e, view: t }) {+function nOe({ kind: e, view: t }) {let n = new URLSearchParams({limit: "200",status: t});return e && n.set("kind", e), n.toString();}-async function tOe(e, t) {- let n = await B(`/api/ads?${eOe(e)}`, t);+async function rOe(e, t) {+ let n = await B(`/api/ads?${nOe(e)}`, t);return {...n,items: n.items || []@@ -68159,8 +68184,8 @@ function P$({ name: e }) {});}var F$ = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;-function nOe({ 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] = ZDe(e), m = String(e.name || ""), h = QDe(t), g = d === "video" ? `/thumb?id=${e.id}&c=4` : d === "image" ? `/photo-thumb?id=${e.id}` : "", _ = d === "video" || d === "image", v = (t) => {+function iOe({ 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] = $De(e), m = String(e.name || ""), h = eOe(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]") || F$(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));}, y = (t) => {t.stopPropagation(), F$(r, t) ? (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey)) : o.current && a.open(e, o.current);@@ -68290,7 +68315,7 @@ function nOe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions]});}-var rOe = (0, F.memo)(nOe);+var aOe = (0, F.memo)(iOe);// src/react/components/collection-summary.tsxfunction I$({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {return /* @__PURE__ */ (0, I.jsxs)("div", {@@ -68331,10 +68356,10 @@ function R$({ scope: e, count: t }) {children: t.toLocaleString()})] }) : null;}-function iOe({ route: e, page: t, failed: n, onNavigate: r }) {- let i = tH(), a = (0, F.useRef)(null), { kind: o, view: s } = e, c = LL(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? $U.map(([e]) => N$(t, e)).join(",") : ""}`), l = nW(s), u = (e) => {+function oOe({ route: e, page: t, failed: n, onNavigate: r }) {+ let i = nH(), a = (0, F.useRef)(null), { kind: o, view: s } = e, c = LL(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? eW.map(([e]) => N$(t, e)).join(",") : ""}`), l = rW(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") || tW()));+ !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || nW()));}, d = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";return /* @__PURE__ */ (0, I.jsxs)("div", {"data-junk-count": "",@@ -68342,7 +68367,7 @@ function iOe({ route: e, page: t, failed: n, onNavigate: r }) {"data-junk-summary": "","aria-live": "polite",children: /* @__PURE__ */ (0, I.jsx)(I$, {- label: rW(s),+ label: iW(s),figure: d,pending: !t && !n,flush: !0@@ -68362,8 +68387,8 @@ function iOe({ route: e, page: t, failed: n, onNavigate: r }) {onClick: u,onPointerLeave: c.leave,children: [- $U.map(([e, n, r]) => /* @__PURE__ */ (0, I.jsxs)("a", {- href: tW(e, s),+ eW.map(([e, n, r]) => /* @__PURE__ */ (0, I.jsxs)("a", {+ href: nW(e, s),"data-junk-kind-link": e,"aria-current": e === o ? "page" : void 0,onPointerEnter: c.hover,@@ -68400,33 +68425,33 @@ function iOe({ route: e, page: t, failed: n, onNavigate: r }) {});}// src/react/junk-queue/junk-queue-page.tsx-var aOe = OV("check"), oOe = (e, t) => e[1] === t.view && e[2] === t.kind;-function sOe(e) {+var sOe = kV("check"), cOe = (e, t) => e[1] === t.view && e[2] === t.kind;+function lOe(e) {let t = {kind: e.kind,view: e.view}, n = Pt({- queryKey: $De(t, e.revision),- queryFn: ({ signal: e }) => tOe(t, e),- placeholderData: (e, n) => n && oOe(n.queryKey, t) ? e : void 0+ queryKey: tOe(t, e.revision),+ queryFn: ({ signal: e }) => rOe(t, e),+ placeholderData: (e, n) => n && cOe(n.queryKey, t) ? e : void 0});(0, F.useEffect)(() => {n.isFetching || e.settled?.(e.revision);}, [n.isFetching, e.revision]);- let r = cOe(e.countRow), i = n.isPending;+ let r = uOe(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 && Zs(r, "junk");}, [r, n.data]);- let { navigate: a } = e.actions, o = r ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(iOe, {+ let { navigate: a } = e.actions, o = r ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(oOe, {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)(lOe, {+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [o, /* @__PURE__ */ (0, I.jsx)(dOe, {props: e,data: n.data,pending: i,@@ -68434,7 +68459,7 @@ function sOe(e) {retry: () => void n.refetch()}, `${t.view}:${t.kind}`)] });}-function cOe(e) {+function uOe(e) {let [t, n] = (0, F.useState)(null);return (0, F.useLayoutEffect)(() => {if (!e) return;@@ -68444,8 +68469,8 @@ function cOe(e) {};}, [e]), t;}-function lOe({ props: e, data: t, pending: n, error: r, retry: i }) {- let a = gye(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 dOe({ props: e, data: t, pending: n, error: r, retry: i }) {+ let a = vye(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", {@@ -68459,8 +68484,8 @@ function lOe({ props: e, data: t, pending: n, error: r, retry: i }) {});if (!l.length) {let t = e.view === "dismissed";- return /* @__PURE__ */ (0, I.jsx)(EV, {- icon: aOe,+ return /* @__PURE__ */ (0, I.jsx)(DV, {+ icon: sOe,title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",actions: t ? /* @__PURE__ */ (0, I.jsx)(zL, {size: "small",@@ -68475,7 +68500,7 @@ function lOe({ 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)(rOe, {+ children: u.map((t) => /* @__PURE__ */ (0, I.jsx)(aOe, {item: t,view: e.view,selected: e.selected.has(t.id),@@ -68484,7 +68509,7 @@ function lOe({ props: e, data: t, pending: n, error: r, retry: i }) {actions: e.actions}, t.id))}),- u.length < l.length ? /* @__PURE__ */ (0, I.jsx)(uOe, { onMore: f }, s) : null,+ u.length < l.length ? /* @__PURE__ */ (0, I.jsx)(fOe, { 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",@@ -68494,7 +68519,7 @@ function lOe({ props: e, data: t, pending: n, error: r, retry: i }) {})()]});}-function uOe({ onMore: e }) {+function fOe({ onMore: e }) {let t = (0, F.useRef)(null);return (0, F.useEffect)(() => {let n = t.current;@@ -68511,7 +68536,7 @@ function uOe({ onMore: e }) {});}// src/react/components/fieldset-layout.ts-var dOe = HH({+var pOe = UH({padding: "none",className: "overflow-hidden"}), z$ = {@@ -68522,11 +68547,11 @@ var dOe = HH({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 V$(e) {- return `${dOe} ${e === "split" ? "fieldset-split" : "flex flex-col"}`;+ return `${pOe} ${e === "split" ? "fieldset-split" : "flex flex-col"}`;}// src/react/data-cleanup/cleanup-entry.tsvar H$ = "inline-grid w-full grid-cols-2 gap-3 max-cleanup-tight:grid-cols-1", U$ = {- face: HH({+ face: UH({padding: "none",radius: "plain",interactive: !0,@@ -68538,26 +68563,26 @@ var H$ = "inline-grid w-full grid-cols-2 gap-3 max-cleanup-tight:grid-cols-1", Usummary: "text-body-2-regular tabular-nums text-text-secondary wrap-anywhere",detail: "text-caption-1-regular text-text-tertiary wrap-anywhere",arrow: "size-4 shrink-0 self-center text-foreground-icon-tertiary"-}, fOe = [+}, mOe = ["text-chart-6","text-chart-5","text-chart-7","text-chart-8"-], pOe = [+], hOe = ["bg-chart-6/10","bg-chart-5/10","bg-chart-7/10","bg-chart-8/10"];-function mOe(e = {}) {- return `${HH({+function gOe(e = {}) {+ return `${UH({...e,padding: "none"})} flex flex-col overflow-hidden pt-4 text-left`;}-var hOe = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", gOe = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";+var _Oe = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", vOe = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";function W$({ interactive: e = !1 } = {}) {- return HH({+ return UH({padding: "none",radius: "plain",interactive: e,@@ -68565,7 +68590,7 @@ function W$({ interactive: e = !1 } = {}) {});}var G$ = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";-function _Oe({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {+function yOe({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("span", {className: "flex min-w-0 items-center gap-2 text-body-medium text-text-secondary",@@ -68598,13 +68623,13 @@ function _Oe({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMet})] });}-function vOe({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {+function bOe({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("span", {className: "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",children: [t ? /* @__PURE__ */ (0, I.jsx)("i", {"aria-hidden": !0,- className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${fOe[n % 4]} ${pOe[n % 4]}`,+ className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${mOe[n % 4]} ${hOe[n % 4]}`,children: /* @__PURE__ */ (0, I.jsx)(t, {"aria-hidden": !0,className: "size-4"@@ -68625,10 +68650,10 @@ function vOe({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {] });}// src/management.ts-var K$ = "发现新文件,补全新增及未完成影片的资料和预览。需要检查全部影片时,使用全库维护。", q$ = "部分视频文件可能播放卡顿、打不开,修复缺时间戳表和缺索引的问题。", J$ = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", Y$ = "disabled data-skeleton-action", yOe = "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="${z$[n]}"><div class="flex flex-col gap-2">+var K$ = "发现新文件,补全新增及未完成影片的资料和预览。需要检查全部影片时,使用全库维护。", q$ = "部分视频文件可能播放卡顿、打不开,修复缺时间戳表和缺索引的问题。", J$ = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", Y$ = "disabled data-skeleton-action", xOe = "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="${z$[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 bOe() {+function SOe() {return X$(`<section aria-label="扫描与采集" class="${V$("stack")}" data-cleanup-task data-cleanup-processing>${Z$("扫描与采集", K$, "stack")}<footer class="${B$.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>${ws("arrow-up", "size-(--icon-inline) shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${Ds({@@ -68640,12 +68665,12 @@ function bOe() {})}</span></footer></section>`);}-function xOe() {+function COe() {return X$(`<section aria-label="媒体修复" class="${V$("split")}" data-cleanup-task data-cleanup-processing>${Z$("媒体修复", q$, "split")}<footer class="${B$.split}">${ks(J$, {className: "w-48",- attrs: yOe+ attrs: xOe})}${Ds({label: "开始修复",attrs: Y$@@ -68662,18 +68687,18 @@ function Q$() {["高清版", "sparkles"],["回收站", "trash"]].map(([e, n]) => t(e, n)).join("")}</div></section>- <div id="libraryProcessing" class="scroll-mt-20">${bOe()}</div>+ <div id="libraryProcessing" class="scroll-mt-20">${SOe()}</div><section class="flex flex-col gap-4">${n("整理与维护")}<div class="${H$}">${r(!1)}</div></section><section class="flex flex-col gap-4">${n("清理与删除")}<div class="${H$}">${r(!0)}</div></section></div></div>`;}// src/react/components/fieldset.tsx-var SOe = HH({+var wOe = UH({padding: "none",radius: "surface",className: "overflow-hidden"-}), COe = "border-t border-border-button-default p-4 first:border-t-0";-function wOe({ id: e, children: t }) {+}), TOe = "border-t border-border-button-default p-4 first:border-t-0";+function EOe({ id: e, children: t }) {return /* @__PURE__ */ (0, I.jsx)("h2", {id: e,className: "text-title-2-medium! m-0! text-text-primary",@@ -68704,7 +68729,7 @@ function e1({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a,});}// src/react/components/status-label.tsx-var TOe = {+var DOe = {success: "lime",progress: "blue",warning: "yellow",@@ -68712,15 +68737,15 @@ var TOe = {neutral: "neutral"};function t1({ tone: e = "neutral", ...t }) {- return /* @__PURE__ */ (0, I.jsx)(lW, {+ return /* @__PURE__ */ (0, I.jsx)(uW, {"data-status-tone": e,variant: "caption",- color: TOe[e],+ color: DOe[e],...t});}// src/react/components/path-line.tsx-function EOe({ className: e }) {+function OOe({ className: e }) {return /* @__PURE__ */ (0, I.jsx)("svg", {"aria-hidden": !0,viewBox: "0 0 24 24",@@ -68733,7 +68758,7 @@ function EOe({ className: e }) {children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-folder-open" })});}-var DOe = "打开文件管理器失败,请重试";+var kOe = "打开文件管理器失败,请重试";function n1({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {let [a, o] = (0, F.useState)(!1), [s, c] = (0, F.useState)(""), l = (0, F.useRef)(!0);(0, F.useEffect)(() => () => {@@ -68745,7 +68770,7 @@ function n1({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {try {await V("/api/reveal", { path: e }), i?.("已在资源管理器中显示");} catch (e) {- l.current && c(e instanceof or ? e.message : DOe);+ l.current && c(e instanceof or ? e.message : kOe);} finally {l.current && o(!1);}@@ -68761,11 +68786,11 @@ function n1({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {}), /* @__PURE__ */ (0, I.jsxs)("div", {className: "flex shrink-0 items-center gap-2",children: [/* @__PURE__ */ (0, I.jsx)(DL, {- icon: EOe,+ icon: OOe,size: "small","aria-label": "在资源管理器中显示",onClick: () => void u(),- ...AV(a)+ ...jV(a)}), r]})]}), s ? /* @__PURE__ */ (0, I.jsx)("p", {@@ -68775,7 +68800,7 @@ function n1({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {});}// src/react/library-processing/issue-export.ts-async function OOe(e, t) {+async function AOe(e, t) {if (!e.job_id) throw Error("请先选择有问题记录的任务");let n = [], r = 1, i = "";for (let a = 0; a < r; a += 200) {@@ -68798,67 +68823,67 @@ async function OOe(e, t) {rows: n}, null, 2);}-function kOe(e, t) {+function jOe(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 AOe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", jOe = (e) => {+var MOe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", NOe = (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(",")}。`;-}, MOe = (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} 部视频预览。` : "") + jOe(e);-function NOe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {- let a = s_e(e), o = AH(), s = AH(), [c, l] = (0, F.useState)(""), u = gH(e), d = e.status === "failed" && !!e.retryable_asset_ids?.length, f = i_e(e.notes || {}), p = !!t || !e.archived && e.status === "failed", m = !t && !e.archived && _H(e), h = p || !e.archived && !u && (!!f || !!e.issue_count), g = !u && !!e.job_id && !e.archived, _ = e.issues_log || "", v = mH(e), y = tH(), b = (t) => void s.run(t ? "archive" : "unarchive", (n) => V(fH, {+}, POe = (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} 部视频预览。` : "") + NOe(e);+function FOe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {+ let a = c_e(e), o = jH(), s = jH(), [c, l] = (0, F.useState)(""), u = _H(e), d = e.status === "failed" && !!e.retryable_asset_ids?.length, f = a_e(e.notes || {}), p = !!t || !e.archived && e.status === "failed", m = !t && !e.archived && vH(e), h = p || !e.archived && !u && (!!f || !!e.issue_count), g = !u && !!e.job_id && !e.archived, _ = e.issues_log || "", v = hH(e), y = nH(), b = (t) => void s.run(t ? "archive" : "unarchive", (n) => V(pH, {action: t ? "archive" : "unarchive",job_id: e.job_id}, "POST", n), (n) => {- H.setQueryData(pH, n), l(t ? e.job_id : "");+ H.setQueryData(mH, n), l(t ? e.job_id : "");}), x = e.issue_count && !u ? /* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",size: "small",- ...AV(!!o.busy),- onClick: () => void o.run("export", (t) => OOe(e, t), (t) => {- kOe(e.job_id, t), i("已导出问题清单");+ ...jV(!!o.busy),+ onClick: () => void o.run("export", (t) => AOe(e, t), (t) => {+ jOe(e.job_id, t), i("已导出问题清单");}),children: "导出完整问题清单"}) : null, S = p ? [t || e.error || "处理未完成,请重试",- m ? vH : "",+ m ? yH : "",f].filter(Boolean).join("\n") : f || `这一趟有 ${(e.issue_count || 0).toLocaleString()} 项问题。`;return /* @__PURE__ */ (0, I.jsxs)("div", {"aria-live": "polite",className: "flex flex-col gap-4 empty:hidden",children: [- v ? /* @__PURE__ */ (0, I.jsx)(u_e, {+ v ? /* @__PURE__ */ (0, I.jsx)(d_e, {state: e,slow: v- }) : e.status === "running" && e.stalled ? /* @__PURE__ */ (0, I.jsx)(TV, {+ }) : e.status === "running" && e.stalled ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "warning",title: "处理较慢",- children: AOe+ children: MOe}) : null,- n?.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(TV, {+ n?.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "success",title: "处理完成",- children: MOe(n)+ children: POe(n)}) : null,- n?.status === "cancelled" ? /* @__PURE__ */ (0, I.jsx)(TV, {+ (n ?? e).status === "cancelled" && !e.archived ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "neutral",- title: "任务已停止",- children: "已取得的资料和预览已保留,不会自动继续这趟任务。"+ title: "已终止上次任务",+ children: "已取得的资料和预览已保留,这一轮不会自动继续,需要时重新同步。"}) : null,- h ? /* @__PURE__ */ (0, I.jsx)(TV, {+ h ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: p ? m ? "warning" : "error" : "neutral",className: "gap-0 p-3",title: p ? m ? "处理已结束,部分项目需处理" : "处理未完成" : void 0,action: /* @__PURE__ */ (0, I.jsxs)("div", {className: "flex flex-wrap items-center gap-2",children: [- m ? /* @__PURE__ */ (0, I.jsx)(kH, {- href: yH,+ m ? /* @__PURE__ */ (0, I.jsx)(AH, {+ href: bH,size: "small",trailingIcon: zB,children: "查看全部内容"@@ -68874,7 +68899,7 @@ function NOe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {variant: "secondary",size: "small","aria-label": "归档提示",- ...AV(!!s.busy),+ ...jV(!!s.busy),onClick: () => b(!0),children: "归档"}) : null@@ -68882,7 +68907,7 @@ function NOe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {}),extra: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [a ? /* @__PURE__ */ (0, I.jsx)("div", {className: "-mx-3 mt-3 border-t border-current/20 px-3 pt-3",- children: /* @__PURE__ */ (0, I.jsx)(yU, {+ children: /* @__PURE__ */ (0, I.jsx)(bU, {summary: a.label,contentClassName: "gap-0",children: /* @__PURE__ */ (0, I.jsx)("div", {@@ -68929,18 +68954,18 @@ function NOe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {}) : null] }),children: S}) : null,- e.archived && c === e.job_id && !t ? /* @__PURE__ */ (0, I.jsx)(TV, {+ e.archived && c === e.job_id && !t ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "neutral",action: /* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",size: "small",- ...AV(!!s.busy),+ ...jV(!!s.busy),onClick: () => b(!1),children: "撤销"}),children: "已归档上一趟的问题提示,完整记录仍保留。"}) : null,- o.error || s.error ? /* @__PURE__ */ (0, I.jsx)(TV, {+ o.error || s.error ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "warning",children: o.error || s.error}) : null@@ -68948,16 +68973,16 @@ function NOe({ 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 } = VH(e), o = Ft({- mutationFn: (e) => V(fH, e),+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = HH(e), o = Ft({+ mutationFn: (e) => V(pH, e),onSuccess: (e) => {- a(), H.setQueryData(pH, e), H.invalidateQueries({ queryKey: pH });+ a(), H.setQueryData(mH, e), H.invalidateQueries({ queryKey: mH });}});(0, F.useEffect)(() => {i && n?.();}, [i, n]);- let s = r.data ?? { status: "idle" }, c = s.job_id || "unavailable", { hidden: l } = FU(c), u = o.error ? cr(o.error) : r.isError ? r.data ? CH : cr(r.error) : "", d = o.isPending || gH(s), f = async (e) => {+ let s = r.data ?? { status: "idle" }, c = s.job_id || "unavailable", { hidden: l } = IU(c), u = o.error ? cr(o.error) : r.isError ? r.data ? wH : cr(r.error) : "", d = o.isPending || _H(s), f = async (e) => {d || (o.reset(), await o.mutateAsync(e));};return /* @__PURE__ */ (0, I.jsxs)("div", {@@ -68966,19 +68991,19 @@ function r1(e) {layout: "stack",label: "扫描与采集",footer: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [- /* @__PURE__ */ (0, I.jsx)(kH, {+ /* @__PURE__ */ (0, I.jsx)(AH, {href: "/sources",size: "small",trailingIcon: zB,children: "来源和凭证"}),- /* @__PURE__ */ (0, I.jsx)(kH, {+ /* @__PURE__ */ (0, I.jsx)(AH, {href: "/settings/diagnostics",size: "small",trailingIcon: zB,children: "诊断与日志"}),- s.candidates ? /* @__PURE__ */ (0, I.jsx)(kH, {+ s.candidates ? /* @__PURE__ */ (0, I.jsx)(AH, {href: "/review",size: "small",trailingIcon: zB,@@ -68987,12 +69012,12 @@ function r1(e) {/* @__PURE__ */ (0, I.jsx)(gq, {scan: !0,busy: o.isPending,- occupied: gH(s),+ occupied: _H(s),metadataOnly: s?.metadata_only,speedMode: s.speed_mode,pendingCount: s.new_asset_count,onRun: f,- onOccupied: () => t(n_e)+ onOccupied: () => t(r_e(s))})] }),children: /* @__PURE__ */ (0, I.jsxs)("div", {@@ -69002,7 +69027,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)(lW, {+ children: [/* @__PURE__ */ (0, I.jsx)($$, { children: "扫描与采集" }), s.new_asset_count ? /* @__PURE__ */ (0, I.jsx)(uW, {variant: "caption",color: "blue",children: /* @__PURE__ */ (0, I.jsxs)("span", {@@ -69010,10 +69035,10 @@ function r1(e) {children: [s.new_asset_count.toLocaleString(), " 部待补全"]})}) : null]- }), l && (gH(s) || s.status === "failed" || r.isError) ? /* @__PURE__ */ (0, I.jsx)(J, {+ }), l && (_H(s) || s.status === "failed" || r.isError) ? /* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",size: "small",- onClick: () => PU(c, !0),+ onClick: () => FU(c, !0),children: "显示进度浮窗"}) : null]}),@@ -69024,17 +69049,17 @@ function r1(e) {s.status === "paused" && !s.total ? /* @__PURE__ */ (0, I.jsx)("span", {className: "self-start",children: /* @__PURE__ */ (0, I.jsx)(t1, { children: "已暂停" })- }) : gH(s) ? /* @__PURE__ */ (0, I.jsx)(T_e, { state: s }) : null,- gH(s) ? /* @__PURE__ */ (0, I.jsx)("p", {+ }) : _H(s) ? /* @__PURE__ */ (0, I.jsx)(E_e, { state: s }) : null,+ _H(s) ? /* @__PURE__ */ (0, I.jsx)("p", {className: "text-body-2-regular text-text-secondary tabular-nums","data-processing-eta": "",- children: bH(s)+ children: xH(s)}) : null,- gH(s) ? /* @__PURE__ */ (0, I.jsx)(DU, { traffic: s.traffic }) : null,- gH(s) ? /* @__PURE__ */ (0, I.jsx)(BH, { state: s }) : null+ _H(s) ? /* @__PURE__ */ (0, I.jsx)(OU, { traffic: s.traffic }) : null,+ _H(s) ? /* @__PURE__ */ (0, I.jsx)(VH, { state: s }) : null]})- }), /* @__PURE__ */ (0, I.jsx)(NOe, {+ }), /* @__PURE__ */ (0, I.jsx)(FOe, {state: s,problem: u,settled: i,@@ -69049,30 +69074,30 @@ function r1(e) {});}// src/react/playlists/playlists.ts-var POe = "/api/playlists", i1 = "/api/playlist", a1 = ["playlists"], o1 = (e) => B(POe, e);-async function FOe(e) {+var IOe = "/api/playlists", i1 = "/api/playlist", a1 = ["playlists"], o1 = (e) => B(IOe, e);+async function LOe(e) {await H.fetchQuery({queryKey: a1,queryFn: () => o1(e),staleTime: 0});}-var IOe = () => H.invalidateQueries({+var ROe = () => H.invalidateQueries({queryKey: a1,exact: !0-}), LOe = (e) => e.current_asset_id || e.preview_asset_id || null, ROe = (e) => `/poster?id=${e}&c=4`, zOe = (e) => V(i1, {+}), zOe = (e) => e.current_asset_id || e.preview_asset_id || null, BOe = (e) => `/poster?id=${e}&c=4`, VOe = (e) => V(i1, {action: "create",name: e,asset_ids: []-}), BOe = (e, t) => V(i1, {+}), HOe = (e, t) => V(i1, {action: "rename",id: e,name: t-}), VOe = (e) => V(i1, {+}), UOe = (e) => V(i1, {action: "delete",id: e-}), HOe = (e) => B(`${i1}?id=${e}`).catch(() => null);-function UOe(e) {+}), WOe = (e) => B(`${i1}?id=${e}`).catch(() => null);+function GOe(e) {let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;return V(i1, {action: "create",@@ -69083,8 +69108,8 @@ function UOe(e) {});}// src/react/scraping/custom-source-data.ts-var s1 = "/api/custom-metadata", c1 = ["custom-metadata"], l1 = (e) => B(s1, e), WOe = "/api/scraping", GOe = "/api/scraping/settings", KOe = "/api/scraping/check", u1 = "/api/scraping/cover", qOe = "/api/scraping/amane-bridge", JOe = "/api/scraping/amane-bridge/check", YOe = "/api/scraping/amane-bridge/rebuild", d1 = ["scraping"], f1 = ["scraping", "cover"], p1 = ["scraping", "amane-bridge"], XOe = 262144, m1 = (e) => B(WOe, e), h1 = (e) => B(u1, e), g1 = (e) => B(qOe, e);-async function ZOe(e) {+var s1 = "/api/custom-metadata", c1 = ["custom-metadata"], l1 = (e) => B(s1, e), KOe = "/api/scraping", qOe = "/api/scraping/settings", JOe = "/api/scraping/check", u1 = "/api/scraping/cover", YOe = "/api/scraping/amane-bridge", XOe = "/api/scraping/amane-bridge/check", ZOe = "/api/scraping/amane-bridge/rebuild", d1 = ["scraping"], f1 = ["scraping", "cover"], p1 = ["scraping", "amane-bridge"], QOe = 262144, m1 = (e) => B(KOe, e), h1 = (e) => B(u1, e), g1 = (e) => B(YOe, e);+async function $Oe(e) {await Promise.all([H.fetchQuery({queryKey: d1,@@ -69104,7 +69129,7 @@ async function ZOe(e) {})]);}-function QOe(e, t) {+function eke(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@@ -69121,7 +69146,7 @@ var _1 = /* @__PURE__ */ new Set(["photo","release"]), y1 = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();-function $Oe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o, recommendations: s = [] }) {+function tke({ 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,@@ -69210,7 +69235,7 @@ function $Oe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: aoptions: l};}-function eke(e, t, n = Math.random) {+function nke(e, t, n = Math.random) {let r = [...e];for (let e = r.length - 1; e > 0; --e) {let t = Math.floor(n() * (e + 1));@@ -69219,7 +69244,7 @@ function eke(e, t, n = Math.random) {return r.filter((e) => !t.some((t) => y1(t) === y1(e))).slice(0, 5);}// src/react/search/search-page.tsx-var tke = () => ({+var rke = () => ({dismissed: !1,history: [],pool: [],@@ -69238,7 +69263,7 @@ var tke = () => ({active: -1,reveal: !1,rewind: !1-}), b1 = (e) => $Oe({+}), b1 = (e) => tke({query: e.query,history: e.history,picks: e.picks,@@ -69247,18 +69272,18 @@ var tke = () => ({tabs: e.tabs,kind: e.kind,recommendations: e.recommendations-}), nke = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), x1 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {+}), ike = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), x1 = ({ 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 rke(e) {+function ake(e) {let t = (0, F.useRef)(e);t.current = e;let n = (0, F.useRef)(null);- n.current ??= tke();+ n.current ??= rke();let r = n.current, i = (0, F.useRef)(null), [, a] = (0, F.useReducer)((e) => e + 1, 0), o = (0, F.useRef)(null);- o.current ??= ike(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);+ o.current ??= oke(() => 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 = () => {@@ -69273,7 +69298,7 @@ function rke(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)(oke, {+ let c = b1(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, I.jsx)(cke, {entry: t,active: t.index === r.active,helpers: e.helpers,@@ -69305,7 +69330,7 @@ function rke(e) {"data-search-recommendations": !r.query && r.recommendations.length ? "" : void 0,"data-history-limit": l,children: [- c.tabs ? /* @__PURE__ */ (0, I.jsx)(ake, {+ c.tabs ? /* @__PURE__ */ (0, I.jsx)(ske, {tabs: c.tabs,kind: r.kind,onPick: s.pickKind,@@ -69332,7 +69357,7 @@ function rke(e) {]});}-function ike(e, t, n, r) {+function oke(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 () => {@@ -69390,9 +69415,9 @@ function ike(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 ? [] : eke(t.pool, o()), t.active = -1;+ t.query = i().value.trim(), t.picks = t.query ? [] : nke(t.pool, o()), t.active = -1;let a = n();- a && (nke(b1(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();+ a && (ike(b1(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();}, g = () => {t.active = -1, t.kind = "", clearTimeout(t.timer);let e = i().value.trim();@@ -69465,7 +69490,7 @@ function ike(e, t, n, r) {openPath: C};}-function ake({ tabs: e, kind: t, onPick: n, wire: r }) {+function ske({ tabs: e, kind: t, onPick: n, wire: r }) {let i = (0, F.useRef)(null);(0, F.useLayoutEffect)(() => {r(i.current);@@ -69479,7 +69504,7 @@ function ake({ 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)(HW, { value: i }) : null]+ children: [r, i ? /* @__PURE__ */ (0, I.jsx)(UW, { value: i }) : null]}, e || "all");return /* @__PURE__ */ (0, I.jsxs)(nL, {ref: i,@@ -69491,7 +69516,7 @@ function ake({ tabs: e, kind: t, onPick: n, wire: r }) {});}var S1 = (e) => e.preventDefault();-function oke({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {+function cke({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {wL();let o = {"data-search-value": e.value,@@ -69652,7 +69677,7 @@ function w1({ item: e, kind: t }) {}// src/react/settings/configuration.tsvar T1 = ["configuration"], E1 = (e) => B(TX, e);-async function ske(e) {+async function lke(e) {await H.fetchQuery({queryKey: T1,queryFn: () => E1(e)@@ -69705,7 +69730,7 @@ function k1({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a ="aria-describedby": s});}-function cke({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {+function uke({ 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@@ -69739,7 +69764,7 @@ function cke({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSet});}// src/react/settings-panel/glow-settings.tsx-var lke = [+var dke = [["strength","强度",@@ -69766,8 +69791,8 @@ var lke = [100]];-function uke({ host: e, spot: t, index: n, glow: r }) {- let i = Wce[n], a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = tH(), [l, u] = (0, F.useState)("all");+function fke({ host: e, spot: t, index: n, glow: r }) {+ let i = Wce[n], a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = nH(), [l, u] = (0, F.useState)("all");(0, F.useLayoutEffect)(() => {let [e, t, n] = [a.current,@@ -69848,7 +69873,7 @@ function uke({ host: e, spot: t, index: n, glow: r }) {})]});}-function dke({ host: e }) {+function pke({ host: e }) {let t = e.store.value.homeGlow, n = nM(t.preset);return /* @__PURE__ */ (0, I.jsxs)("section", {"data-glow-setting": "",@@ -69882,7 +69907,7 @@ function dke({ host: e }) {}),/* @__PURE__ */ (0, I.jsx)("div", {"data-glow-fields": "",- children: lke.map(([r, i, a]) => /* @__PURE__ */ (0, I.jsx)(cke, {+ children: dke.map(([r, i, a]) => /* @__PURE__ */ (0, I.jsx)(uke, {field: r,label: i,max: a,@@ -69922,7 +69947,7 @@ function dke({ host: e }) {"data-glow-colour-card": "",children: /* @__PURE__ */ (0, I.jsx)("div", {"data-glow-stops": "",- children: $j.map((n, r) => /* @__PURE__ */ (0, I.jsx)(uke, {+ children: $j.map((n, r) => /* @__PURE__ */ (0, I.jsx)(fke, {host: e,spot: n,index: r,@@ -69934,7 +69959,7 @@ function dke({ host: e }) {});}// src/react/settings-panel/number-setting.tsx-var fke = {+var mke = {batchSizeSetting: {min: 1,max: 200,@@ -69988,7 +70013,7 @@ function j1(e, t) {return Number.isInteger(n) ? `${n.toLocaleString()} 天` : `约 ${n.toFixed(1)} 天`;}function M1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {- let a = fke[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, F.useRef)(0);+ let a = mke[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, F.useRef)(0);d.current ||= Hj(Number(localStorage.getItem(A1(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)(() => {@@ -70071,8 +70096,8 @@ 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 pke = "__home__", F1 = (e) => e === "" ? pke : e;-function mke({ host: e }) {+var hke = "__home__", F1 = (e) => e === "" ? hke : e;+function gke({ 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);a && t(a);@@ -70239,7 +70264,7 @@ var I1 = [["JAV 与新作", "jav"],["搜索与推荐", "ri-search-line"],["内容显示", "ri-shield-check-line"]-], hke = [+], _ke = [["seed", "随机"],["rating", "评分"],["o", "高潮计数"],@@ -70248,7 +70273,7 @@ var I1 = [["size", "体积"],["new", "入库时间"],["played", "观看时间"]-], gke = [["desc", "降序"], ["asc", "升序"]], _ke = [[+], vke = [["desc", "降序"], ["asc", "升序"]], yke = [["cover","官方封面",""@@ -70256,7 +70281,7 @@ var I1 = ["thumbnail","预览图",""-]], vke = [+]], bke = [["feedHideGroupSetting","feedHideGroupCompilations",@@ -70275,32 +70300,32 @@ var I1 = ["切片","隐藏切片"]-], yke = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", L1 = null, R1 = {+], xke = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", L1 = null, R1 = {open: !1,closing: !1,epoch: 0,tab: 0,configurable: null}, z1 = 0, B1 = null, V1 = /* @__PURE__ */ new Set();-function bke(e) {+function Ske(e) {return V1.add(e), () => {V1.delete(e);};}-function xke() {+function Cke() {for (let e of [...V1]) e();}function H1(e) {R1 = {...R1,...e- }, (0, Lt.flushSync)(xke);+ }, (0, Lt.flushSync)(Cke);}-async function Ske(e) {+async function wke(e) {let t = R1.epoch, n = await e.configurable();R1.open && R1.epoch === t && H1({ configurable: n });}-function Cke(e = "") {+function Tke(e = "") {let t = L1;if (!t) return;let n = I1.findIndex(([t]) => t === e);@@ -70309,7 +70334,7 @@ function Cke(e = "") {return;}as(), z1 += 1, B1 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");- let r = uwe();+ let r = fwe();H1({open: !0,closing: !1,@@ -70318,7 +70343,7 @@ function Cke(e = "") {tab: n >= 0 ? n : R1.tab}), r.then((e) => {e && t.syncRemote(e);- }), Ske(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());+ }), wke(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());}function U1(e = !0) {if (!R1.open || R1.closing) return;@@ -70332,31 +70357,31 @@ function U1(e = !0) {};matchMedia("(prefers-reduced-motion: reduce)").matches ? queueMicrotask(n) : (document.querySelector("#settingsPanel > [data-settings-card]")?.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 380));}-var wke = {- open: Cke,+var Eke = {+ open: Tke,close: U1,isOpen: () => R1.open,reveal: (e) => queueMicrotask(() => document.querySelector(e)?.scrollIntoView({ block: "nearest" }))};-function Tke(e) {- return L1 = e, wke;+function Dke(e) {+ return L1 = e, Eke;}-function Eke() {- let e = (0, F.useSyncExternalStore)(bke, () => R1);- return L1 ? /* @__PURE__ */ (0, I.jsx)(kke, {+function Oke() {+ let e = (0, F.useSyncExternalStore)(Ske, () => R1);+ return L1 ? /* @__PURE__ */ (0, I.jsx)(jke, {host: L1,view: e}) : null;}-function Dke(e) {+function kke(e) {if (e.key !== "Tab") return;- let t = [...e.currentTarget.querySelectorAll(yke)].filter((e) => e.getClientRects().length > 0);+ let t = [...e.currentTarget.querySelectorAll(xke)].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 Oke({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect: i }) {+function Ake({ 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;@@ -70458,7 +70483,7 @@ function K1({ index: e, tab: t, children: n, cards: r = !1 }) {hidden: e !== t,children: [/* @__PURE__ */ (0, I.jsx)("h3", { children: I1[e][0] }),- /* @__PURE__ */ (0, I.jsx)(hU, { chapter: [+ /* @__PURE__ */ (0, I.jsx)(gU, { chapter: ["appearance","playback","jav-settings",@@ -70494,7 +70519,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 kke({ host: e, view: t }) {+function jke({ 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];@@ -70526,7 +70551,7 @@ function kke({ host: e, view: t }) {"aria-labelledby": "settingsTitle","data-closing": t.closing ? "" : void 0,ref: r,- onKeyDown: Dke,+ onKeyDown: kke,onClick: (e) => {e.target === e.currentTarget && U1();},@@ -70540,13 +70565,13 @@ function kke({ host: e, view: t }) {children: [/* @__PURE__ */ (0, I.jsx)("h2", {id: "settingsTitle",children: I1[t.tab][0]- }), /* @__PURE__ */ (0, I.jsx)(kV, {+ }), /* @__PURE__ */ (0, I.jsx)(AV, {id: "settingsClose",label: "关闭设置",onPress: () => U1()})]}),- /* @__PURE__ */ (0, I.jsx)(Oke, {+ /* @__PURE__ */ (0, I.jsx)(Ake, {tab: t.tab,epoch: d,configurable: t.configurable,@@ -70615,7 +70640,7 @@ function kke({ host: e, view: t }) {})]}),- /* @__PURE__ */ (0, I.jsx)(dke, { host: e }),+ /* @__PURE__ */ (0, I.jsx)(pke, { host: e }),/* @__PURE__ */ (0, I.jsxs)("section", {"data-setting-block": "","aria-labelledby": "sidebarOrderTitle",@@ -70627,18 +70652,18 @@ function kke({ host: e, view: t }) {"data-setting-card": "",children: /* @__PURE__ */ (0, I.jsx)("section", {"data-sidebar-setting": "",- children: /* @__PURE__ */ (0, I.jsx)(mke, { host: e })+ children: /* @__PURE__ */ (0, I.jsx)(gke, { host: e })})})]})]}),- /* @__PURE__ */ (0, I.jsx)(jke, {+ /* @__PURE__ */ (0, I.jsx)(Nke, {host: e,tab: t.tab,epoch: d}),- /* @__PURE__ */ (0, I.jsx)(Mke, {+ /* @__PURE__ */ (0, I.jsx)(Pke, {host: e,tab: t.tab,epoch: d@@ -70647,7 +70672,7 @@ function kke({ host: e, view: t }) {index: 3,tab: t.tab,children: [- /* @__PURE__ */ (0, I.jsx)(Ike, {+ /* @__PURE__ */ (0, I.jsx)(Rke, {host: e,epoch: d}),@@ -70697,7 +70722,7 @@ function kke({ host: e, view: t }) {})});}-function Ake(e, t) {+function Mke(e, t) {let n = e.querySelector("[data-select-label]");if (!n) return;n.querySelector("[data-icon-swap]") || (n.innerHTML = Gs("arrow-up", "arrow-down", "a", {@@ -70707,7 +70732,7 @@ function Ake(e, t) {let r = n.querySelector("[data-sort-direction-label]");r && (r.textContent = t ? "升序" : "降序");}-function jke({ host: e, tab: t, epoch: n }) {+function Nke({ 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, {index: 1,@@ -70739,7 +70764,7 @@ function jke({ host: e, tab: t, epoch: n }) {children: [/* @__PURE__ */ (0, I.jsx)(k1, {id: "defaultSortSetting",label: "默认排序",- options: hke,+ options: _ke,value: r.defaultSort,epoch: n,onPick: (t) => {@@ -70748,7 +70773,7 @@ function jke({ host: e, tab: t, epoch: n }) {}), /* @__PURE__ */ (0, I.jsx)(k1, {id: "defaultSortDirectionSetting",label: "默认排序方向",- options: gke,+ options: vke,value: o ? "asc" : "desc",hidden: a,disabled: a,@@ -70756,7 +70781,7 @@ function jke({ host: e, tab: t, epoch: n }) {onPick: (t) => {r.defaultSortDirection = t, i(), e.changed("sortDirection");},- decorate: (e) => Ake(e, o)+ decorate: (e) => Mke(e, o)})]})}),@@ -70806,14 +70831,14 @@ function jke({ host: e, tab: t, epoch: n }) {"data-settings-subheading": "",children: "播放"}),- /* @__PURE__ */ (0, I.jsx)(Fke, {+ /* @__PURE__ */ (0, I.jsx)(Lke, {host: e,epoch: n})]});}-function Mke({ host: e, tab: t, epoch: n }) {+function Pke({ host: e, tab: t, epoch: n }) {let r = e.store.value, i = () => e.store.save();return /* @__PURE__ */ (0, I.jsxs)(K1, {index: 2,@@ -70823,7 +70848,7 @@ function Mke({ host: e, tab: t, epoch: n }) {"data-settings-subheading": "",children: "作品显示"}),- /* @__PURE__ */ (0, I.jsx)(Nke, {+ /* @__PURE__ */ (0, I.jsx)(Fke, {host: e,epoch: n}),@@ -70833,7 +70858,7 @@ function Mke({ host: e, tab: t, epoch: n }) {id: "javImageSetting",name: "jav-image",legend: "默认图片",- options: _ke,+ options: yke,value: r.javImage,attr: "data-jav-image-choice",variant: "javimageswitch",@@ -70870,7 +70895,7 @@ function Mke({ host: e, tab: t, epoch: n }) {r.feedAutoScroll = t, i(), e.changed("feedAutoScroll");}}),- vke.map(([t, n, r, i]) => /* @__PURE__ */ (0, I.jsx)(Pke, {+ bke.map(([t, n, r, i]) => /* @__PURE__ */ (0, I.jsx)(Ike, {host: e,id: t,settingKey: n,@@ -70880,7 +70905,7 @@ function Mke({ host: e, tab: t, epoch: n }) {]});}-function Nke({ host: e, epoch: t }) {+function Fke({ host: e, epoch: t }) {let n = Pt({queryKey: jX,queryFn: ({ signal: e }) => IX(e),@@ -70910,12 +70935,12 @@ function Nke({ host: e, epoch: t }) {}));}})- }), n.isError ? /* @__PURE__ */ (0, I.jsx)(TV, {+ }), n.isError ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "error",children: "未取得数据库中的名称偏好,请重新打开设置。"}) : null] });}-function Pke({ host: e, id: t, settingKey: n, label: r, title: i }) {+function Ike({ host: e, id: t, settingKey: n, label: r, title: i }) {let a = LX(), [o, s] = (0, F.useState)(null), c = (0, F.useRef)(null), l = e.store.value, u = (t) => {s(t), qc(c.current), a.mutate({ [n]: t }, {onSuccess: (i) => {@@ -70940,7 +70965,7 @@ function Pke({ host: e, id: t, settingKey: n, label: r, title: i }) {})]});}-function Fke({ host: e, epoch: t }) {+function Lke({ 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, {@@ -70975,7 +71000,7 @@ function Fke({ host: e, epoch: t }) {})] });}-function Ike({ host: e, epoch: t }) {+function Rke({ host: e, epoch: t }) {let n = e.store.value, r = LX();return /* @__PURE__ */ (0, I.jsx)(J1, {title: "搜索记录数量",@@ -70993,7 +71018,7 @@ function Ike({ host: e, epoch: t }) {});}// src/react/sidebar/use-sidebar-reorder.ts-function Lke(e, t, n, r) {+function zke(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,@@ -71129,7 +71154,7 @@ function Lke(e, t, n, r) {};}// src/react/sidebar/sidebar-island.tsx-var Y1 = "__home__", Rke = {+var Y1 = "__home__", Bke = {creator: 26,tag: 30,tech: 16@@ -71141,7 +71166,7 @@ var Y1 = "__home__", Rke = {},epoch: 0}, $1 = /* @__PURE__ */ new Set();-function zke(e) {+function Vke(e) {return $1.add(e), () => {$1.delete(e);};@@ -71149,7 +71174,7 @@ function zke(e) {function e0() {for (let e of [...$1]) e();}-var Bke = {+var Hke = {render(e) {Q1 = {...Q1,@@ -71163,7 +71188,7 @@ var Bke = {}, (0, Lt.flushSync)(e0);}};-function Vke(e) {+function Uke(e) {return Z1 = e, Q1 = {...Q1,props: {@@ -71171,26 +71196,26 @@ function Vke(e) {filters: {},latest: null}- }, Bke;+ }, Hke;}-function Hke() {- let e = (0, F.useSyncExternalStore)(zke, () => Q1);- return Z1 ? /* @__PURE__ */ (0, I.jsx)(Uke, {+function Wke() {+ let e = (0, F.useSyncExternalStore)(Vke, () => Q1);+ return Z1 ? /* @__PURE__ */ (0, I.jsx)(Gke, {host: Z1,props: e.props,epoch: e.epoch}) : null;}-function Uke({ host: e, props: t, epoch: n }) {+function Gke({ 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)(Wke, {+ /* @__PURE__ */ (0, I.jsx)(Kke, {host: e,epoch: n,version: r}),- t.content ? /* @__PURE__ */ (0, I.jsx)(Kke, {+ t.content ? /* @__PURE__ */ (0, I.jsx)(Jke, {host: e,content: t.content,filters: t.filters,@@ -71198,7 +71223,7 @@ function Uke({ host: e, props: t, epoch: n }) {}) : null] });}-function Wke({ host: e, epoch: t, version: n }) {+function Kke({ 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 = LL(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || Y1 : "").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());@@ -71218,7 +71243,7 @@ function Wke({ host: e, epoch: t, version: n }) {i.disconnect(), cancelAnimationFrame(a), document.removeEventListener("board:sidebar", o);};}, [e, d]);- let f = Lke(c, i, r, () => requestAnimationFrame(d)), p = e.scroll.parentElement;+ let f = zke(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,@@ -71277,7 +71302,7 @@ function Wke({ host: e, epoch: t, version: n }) {}), p) : null] });}var t0 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);-function Gke(e) {+function qke(e) {if (!e) return null;let t = /* @__PURE__ */ new Map(), n = [["loc", e.locations],@@ -71291,7 +71316,7 @@ function Gke(e) {for (let [e, r] of n) for (let n of r) t.set(`${e}\n${n.value}`, n.n ?? 0);return t;}-function Kke({ host: e, content: t, filters: n, latest: r }) {+function Jke({ 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" && Zs(e.scroll, "drawer");@@ -71300,8 +71325,8 @@ function Kke({ host: e, content: t, filters: n, latest: r }) {i,t.kind]);- let a = t.kind === "catalog" ? qke(e, t.facets, n, r, i) : Jke(e, t, n), o = 0;- return a.map((e) => e && /* @__PURE__ */ (0, I.jsx)(Yke, {+ let a = t.kind === "catalog" ? Yke(e, t.facets, n, r, i) : Xke(e, t, n), o = 0;+ return a.map((e) => e && /* @__PURE__ */ (0, I.jsx)(Zke, {title: e.title,kind: e.kind,active: e.active,@@ -71310,8 +71335,8 @@ function Kke({ host: e, content: t, filters: n, latest: r }) {children: e.body}, e.title));}-function qke(e, t, n, r, i) {- let a = Gke(r), o = (t, r, i) => {+function Yke(e, t, n, r, i) {+ let a = qke(r), o = (t, r, i) => {if (!t.length) return null;let o = t0(n, r);return /* @__PURE__ */ (0, I.jsx)(i0, {@@ -71336,12 +71361,12 @@ function qke(e, t, n, r, i) {title: t,kind: s,active: p,- body: /* @__PURE__ */ (0, I.jsx)(Zke, {+ body: /* @__PURE__ */ (0, I.jsx)($ke, {epoch: i,title: t,rows: c,latest: m ?? null,- limit: Rke[d],+ limit: Bke[d],filterKey: l,selected: f,counts: a,@@ -71380,7 +71405,7 @@ function qke(e, t, n, r, i) {} : null];}-function Jke(e, t, n) {+function Xke(e, t, n) {let r = t.providers || [], i = t0(n, "provider"), a = new Set(t.selected);return [r.length ? {@@ -71427,7 +71452,7 @@ function n0(e, t) {} catch {}return n === null ? t : n === "open";}-function Yke({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {+function Zke({ 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);(0, F.useLayoutEffect)(() => {let t = o.current, r = s.current;@@ -71474,7 +71499,7 @@ function Yke({ title: e, kind: t, active: n, index: r, epoch: i, children: a })});}var r0 = (0, F.createContext)(() => {});-function Xke({ dot: e }) {+function Qke({ dot: e }) {return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, I.jsx)(tI, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, I.jsx)("img", {"data-sidebar-source-icon": "",src: e.src,@@ -71498,7 +71523,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)(Xke, { dot: e.dot }),+ /* @__PURE__ */ (0, I.jsx)(Qke, { dot: e.dot }),/* @__PURE__ */ (0, I.jsx)("span", {"data-sidebar-chip-label": "",children: e.label@@ -71513,7 +71538,7 @@ function i0({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a,})});}-function Zke({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {+function $ke({ 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);p !== e && (m(e), f(null));let h = (0, F.useRef)(null), g = (0, F.useRef)(null), _ = !!d?.all, v = d ? d.rows : n;@@ -71663,11 +71688,11 @@ function c0() {</div></div>`;}// src/react/settings/library-policy-copy.ts-var l0 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式只决定要不要联网补全。", Qke = [+var l0 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式只决定要不要联网补全。", eAe = ["自动补全","仅使用本地资料","自定义"-], $ke = [+], tAe = [["读本地 NFO 和图片","✓",@@ -71698,7 +71723,7 @@ var l0 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式"—","可选"]-], eAe = "本地只有竖版海报时:自动补全会联网找完整封套(FC2 商品图除外),仅使用本地资料直接用竖版。", u0 = "一个媒体库可以有多个文件夹,作品合在一起显示,共用名称、颜色和处理方式;要分开显示或分开设置时再添加媒体库。", d0 = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", f0 = "只填域名,留空用默认地址", tAe = [+], u0 = "本地只有竖版海报时:自动补全会联网找完整封套(FC2 商品图除外),仅使用本地资料直接用竖版。", d0 = "一个媒体库可以有多个文件夹,作品合在一起显示,共用名称、颜色和处理方式;要分开显示或分开设置时再添加媒体库。", f0 = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", p0 = "只填域名,留空用默认地址", nAe = [{provider: "coomer",label: "Coomer",@@ -71788,8 +71813,8 @@ var l0 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式label: "SubscribeStar",requirement: "none"}-], p0 = "API 代理用于列目录和查询文件信息,数据代理用于读取视频及配套文件。保存后,同一网盘账号在 CloudDrive 中的其他读取也会使用此设置。", nAe = "peach.configuration.shape.v1";-function m0() {+], m0 = "API 代理用于列目录和查询文件信息,数据代理用于读取视频及配套文件。保存后,同一网盘账号在 CloudDrive 中的其他读取也会使用此设置。", rAe = "peach.configuration.shape.v1";+function h0() {try {let e = JSON.parse(localStorage.getItem("peach.configuration.shape.v1") || "{}");return e && typeof e == "object" ? e : {};@@ -71797,28 +71822,28 @@ function m0() {return {};}}-function rAe(e, t) {+function iAe(e, t) {try {- let n = m0();+ let n = h0();if (JSON.stringify(n[e]) === JSON.stringify(t)) return;- localStorage.setItem(nAe, JSON.stringify({+ localStorage.setItem(rAe, 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") => Ds({+var g0 = (e) => h0()[e], _0 = (e) => e === !0, v0 = (e, t) => Number.isInteger(e) && e > 0 ? Math.min(e, t) : 0, y0 = (e, t, n) => Array.isArray(e) ? e.slice(0, t).map(n) : [], b0 = "disabled data-skeleton-action", x0 = (e = "60%") => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, S0 = (e = "100%") => `<span class="skeleton ui-configuration-skeleton-input" style="width:${e}"></span>`, C0 = (e, t) => `<span class="skeleton shrink-0" style="width:${e};height:${t}"></span>`, w0 = (e = "3em") => C0(e, "24px"), T0 = () => C0("var(--icon-inline)", "var(--icon-inline)"), E0 = (e, t = "primary", n = "medium") => Ds({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>`, iAe = (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: b0+}), D0 = (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>`, O0 = (e, t = !1) => `<div class="flex flex-col gap-4 ${t ? "border-t border-separator-border " : ""}py-4 pr-3">${e}</div>`, aAe = (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">${T0()}${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">${iAe(e, r, a)}${lU(e) ? `<div aria-hidden="true" class="flex items-center gap-1 text-body-2-medium text-text-secondary">${ws("chevron-right", "size-(--icon-inline) shrink-0")}设置说明</div>` : ""}<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)}${ks(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">${ws("chevron-right", `size-(--icon-inline) shrink-0${t ? " rotate-90" : ""}`)}${e}</span>`, aAe = /* @__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">${aAe.has(e) ? b0("100%") + b0("80%") + b0("6em") : b0("6em")}</dd></div>`).join("")}</dl>`, oAe = tAe;-function sAe(e = h0("credentials")) {- let t = new Set(v0(e?.done, 64, String));- return oAe.map((e) => {+}, k0 = (e, t, n = "", { aside: r = "", status: i = "", mark: a = !1 } = {}) => `<section aria-label="${e}" class="flex w-full flex-col gap-2 wrap-anywhere">${aAe(e, r, a)}${uU(e) ? `<div aria-hidden="true" class="flex items-center gap-1 text-body-2-medium text-text-secondary">${ws("chevron-right", "size-(--icon-inline) shrink-0")}设置说明</div>` : ""}<div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}${n ? D0(n, i) : ""}</div></section>`, A0 = (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>`, j0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => A0(e, t, `<span class="skeleton ${n}"></span>`), M0 = (e, t = "4em") => A0(e, "", x0(t)), N0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, P0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, F0 = (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>${S0()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, I0 = (e) => `<div class="flex flex-col gap-1">${P0(e)}${ks(x0("8em"))}</div>`, L0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${C0("16px", "16px")}${e}</span>`, R0 = (e) => `<span class="inline-flex items-center gap-1">${T0()}${e}</span>`, z0 = (e, t = !1) => `<span class="flex w-fit items-center gap-1 text-body-2-medium text-text-secondary">${ws("chevron-right", `size-(--icon-inline) shrink-0${t ? " rotate-90" : ""}`)}${e}</span>`, oAe = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), B0 = (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">${oAe.has(e) ? x0("100%") + x0("80%") + x0("6em") : x0("6em")}</dd></div>`).join("")}</dl>`, sAe = nAe;+function cAe(e = g0("credentials")) {+ let t = new Set(y0(e?.done, 64, String));+ return sAe.map((e) => {let n = t.has(e.provider);return {...e,@@ -71827,134 +71852,134 @@ function sAe(e = h0("credentials")) {};});}-function cAe(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">${z(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(z(e.why)) : ""}</div>`;- let a = e.open ? "<div class=\"flex flex-col gap-2 pt-3\"><div class=\"flex flex-col gap-3\">" + M0(`${z(e.why ?? "")}${e.where ? " 获取凭据" : ""}`) + (e.howto ? M0(z(e.howto)) : "") + `<div class="flex w-full flex-col gap-3">${t.map((e) => P0(z(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 lAe(e) {+ let t = e.fields ?? [], n = e.requirement !== "none" && e.requirement !== "blocked", r = w0() + (n && !e.done ? t.map(() => w0("4.5em")).join("") : ""), i = `<span class="flex min-w-0 flex-wrap items-center gap-2">${C0("14px", "14px")}<b class="min-w-0 text-body-medium wrap-anywhere text-text-primary">${z(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 ? N0(z(e.why)) : ""}</div>`;+ let a = e.open ? "<div class=\"flex flex-col gap-2 pt-3\"><div class=\"flex flex-col gap-3\">" + N0(`${z(e.why ?? "")}${e.where ? " 获取凭据" : ""}`) + (e.howto ? N0(z(e.howto)) : "") + `<div class="flex w-full flex-col gap-3">${t.map((e) => F0(z(e))).join("")}</div><div class="flex flex-wrap items-center gap-2">${E0("保存配置")}</div>${z0("凭据文件")}</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>${z0(e.done ? "修改凭据" : "填写凭据", e.open)}${a}</div></div>`;}-function B0() {- let e = sAe(), t = e.filter((e) => e.requirement === "required" && !e.done).length;- return O0("来源凭据", D0(`<div class="flex flex-col gap-4">${[+function V0() {+ let e = cAe(), t = e.filter((e) => e.requirement === "required" && !e.done).length;+ return k0("来源凭据", O0(`<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(cAe).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? b0("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">${ws("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("保存配置"));+ ].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(lAe).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? x0("5em") : "" });}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 ? "更新渠道与令牌" : "启用并生成令牌"));+ let e = y0(g0("indexers")?.open, 20, _0).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">${ws("chevron-right", `size-(--icon-inline) shrink-0 text-text-secondary${e ? " rotate-90" : ""}`)}${x0("6em")}${x0("12em")}</span>` + (e ? `<div class="flex flex-col gap-2 pt-3"><div class="flex min-w-0 flex-col gap-4">${F0("名称")}${F0("Torznab 地址")}${F0("API key")}<div class="flex flex-wrap items-center gap-x-6 gap-y-2">${L0("启用")}${E0("移除", "secondary", "small")}</div></div></div>` : "") + "</div>").join("");+ return k0("资源搜索", O0(`<div class="flex min-w-0 flex-col gap-4">${z0("索引器连接帮助")}${e}</div>`), E0("添加索引器", "secondary") + E0("保存配置"));+}+function U0() {+ let e = g0("javBrowser"), t = _0(e?.enabled);+ return k0("浏览器添加 JAV", O0(`<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>${x0("4em")}</div><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-regular text-text-secondary">浏览器添加</span>${w0()}</div><p class="text-caption-1-regular text-text-secondary">${x0("70%")}</p><div class="flex flex-wrap items-center gap-2">${E0("重新检测", "secondary")}</div></div>`}${I0("浏览器添加的下载渠道")}${_0(e?.ready) ? "" : N0("请在媒体库中添加支持云下载的网盘,并配置账号与目标目录。")}${F0("Peach 地址")}</div>`), (t ? E0("关闭浏览器添加", "secondary") : "") + E0(t ? "更新渠道与令牌" : "启用并生成令牌"));}-var U0 = (e, t) => `<div class="flex min-w-0 flex-col gap-3">${N0(e)}${ks(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 W0 = (e, t) => `<div class="flex min-w-0 flex-col gap-3">${P0(e)}${ks(x0("6em"))}` + (t ? `<div class="flex flex-wrap gap-3"><div class="min-w-40 flex-1">${F0(`${e}地址`)}</div><div class="w-full sm:w-28">${F0(`${e}端口`)}</div></div>${z0("代理认证")}` : "") + "</div>";+function G0() {+ let e = g0("cloudProxy"), t = y0(e?.accounts, 12, (e) => Array.isArray(e) ? [_0(e[0]), _0(e[1])] : [!1, !1]), n = v0(e?.unlinked, 12), r = t.length || n ? Array.from({ length: n }, () => `<div class="flex min-w-0 flex-col gap-1">${P0(R0(x0("6em")))}${N0(x0("9em"))}</div>`).join("") + t.map(([e, t]) => `<div class="flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4">${P0(R0(x0("8em")))}${N0(x0("50%"))}${W0("数据代理", e)}${W0("API 代理", t)}<div class="flex justify-end">${E0("保存配置")}</div></div>`).join("") : N0(x0("60%"));+ return k0("CloudDrive 代理", O0(`${N0(m0)}<div class="flex min-w-0 flex-col gap-4">${r}</div>`), E0("重新读取", "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>`, lAe = (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>${Ds({+var K0 = (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>`, uAe = (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">${S0()}</span>${Ds({glyph: "folder-search",variant: "secondary",- attrs: y0+ attrs: b0})}</div>- <div class="flex flex-wrap items-end gap-2"><div class="flex w-full flex-wrap items-start gap-2">${G0("来源", ks(b0("6em")), "w-full @lg:w-60")}${G0("读取策略", ks(b0("4em")), "w-full @lg:w-32")}${e > 1 ? G0("移到媒体库", ks(b0("4em")), "w-full @lg:w-48") : ""}</div></div>- </div>`, uAe = (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">${K0("来源", ks(x0("6em")), "w-full @lg:w-60")}${K0("读取策略", ks(x0("4em")), "w-full @lg:w-32")}${e > 1 ? K0("移到媒体库", ks(x0("4em")), "w-full @lg:w-48") : ""}</div></div>+ </div>`, dAe = (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>${Ds({label: "自动识别",variant: "secondary",- attrs: y0-})}${x0()}<span class="skeleton ui-configuration-skeleton-input" style="width:136px"></span>${ks(b0("4em"), { prefix: "处理方式" })}</div>- <div data-library-folders>${lAe(t).repeat(e)}<div class="flex">${Ds({+ attrs: b0+})}${S0()}<span class="skeleton ui-configuration-skeleton-input" style="width:136px"></span>${ks(x0("4em"), { prefix: "处理方式" })}</div>+ <div data-library-folders>${uAe(t).repeat(e)}<div class="flex">${Ds({label: "添加文件夹",variant: "secondary",- attrs: y0-})}</div></div></div>`, dAe = `<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>`, fAe = "<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 pAe(e = h0("media")) {- let t = v0(e?.folders, 12, (e) => _0(e, 50)).filter(Boolean);+ attrs: b0+})}</div></div></div>`, fAe = `<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>`, pAe = "<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 mAe(e = g0("media")) {+ let t = y0(e?.folders, 12, (e) => v0(e, 50)).filter(Boolean);return t.length ? {folders: t,- cloud: g0(e?.cloud)+ cloud: _0(e?.cloud)} : {folders: [1],cloud: !1};}-function mAe() {- 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>${ks(b0("4em"), { prefix: "对应目录" })}${Ds({+function hAe() {+ let e = g0("discovery"), t = _0(e?.enabled), n = t && _0(e?.cloud), r = n && _0(e?.webhook), i = `<div class="flex items-start gap-2"><span class="min-w-0 flex-1">${S0()}</span>${ks(x0("4em"), { prefix: "对应目录" })}${Ds({glyph: "trash",variant: "secondary",- attrs: y0+ attrs: b0})}</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 hAe = () => {- let e = pAe();- return O0("媒体库与目录", D0(`${dAe}<div class="flex flex-col gap-4">${e.folders.map((t) => uAe(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 ? fAe : ""}<span class="text-body-medium text-text-primary">${b0("15em")}</span>`), T0("保存配置"), { status: "保存后 Peach 会重新启动。" }) + (e.cloud ? W0() : "") + mAe() + 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"));-}, gAe = () => `<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("保存配置")), _Ae = () => {- 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 k0("自动发现新文件", O0(`<div class="flex flex-wrap items-center gap-2"><span class="text-body-regular text-text-secondary">本机监视</span>${w0()}</div>`) + j0("发现新文件后自动入库", t ? x0("10em") : "") + j0("监视本机文件夹", t && _0(e?.watchLocal) ? x0("12em") : "") + j0("接收 CloudDrive2 通知") + (n ? A0("Webhook 配置", x0("20em"), "") : "") + (r ? O0(z0("查看配置"), !0) : "") + (n ? O0(`<div class="flex flex-col gap-3">${P0("云端路径前缀")}<div class="flex flex-col gap-3">${i.repeat(v0(e?.prefixes, 20))}</div><div>${E0("添加前缀", "secondary")}</div></div>`, !0) : ""), (r ? E0("更换密钥", "secondary") : "") + E0("保存配置"));+}+var gAe = () => {+ let e = mAe();+ return k0("媒体库与目录", O0(`${fAe}<div class="flex flex-col gap-4">${e.folders.map((t) => dAe(t, e.folders.length)).join("")}</div>+ <div class="self-start">${E0("添加媒体库", "secondary")}</div>+ <p class="text-body-2-regular text-text-secondary">${d0}</p>+ ${e.cloud ? pAe : ""}<span class="text-body-medium text-text-primary">${x0("15em")}</span>`), E0("保存配置"), { status: "保存后 Peach 会重新启动。" }) + (e.cloud ? G0() : "") + hAe() + k0("番号识别规则", O0(`${x0("90%")}${x0("60%")}<span class="skeleton ui-configuration-skeleton-input" style="width:100%;height:88px"></span>`), E0("保存配置")) + k0("视频预览", j0("生成视频预览", "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。") + j0("时间轴预览", "按所选间隔抽帧,仅处理本机磁盘上的视频。", "ui-configuration-skeleton-select") + j0("抽帧解码方式", "用于生成封面、九宫格和时间轴。", "ui-configuration-skeleton-select"));+}, _Ae = () => `<div>${E0("采集来源与登录状态", "secondary")}</div>` + V0() + k0("关注采集", A0("自动检查更新", "", "<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>") + M0("订阅源拉取") + j0("首次采集范围", "", "ui-configuration-skeleton-select") + M0("头像刷新") + M0("favicon 刷新")) + H0() + k0("作品资料站点", O0(`<p class="text-body-2-regular text-text-secondary">${f0}</p>${F0(R0("JavDB 地址"), p0)}${F0(R0("MISSAV 地址"), p0)}`), E0("保存配置")), vAe = () => {+ let e = g0("downloads"), t = _0(e?.pikpak), n = _0(e?.pikpakRoots) ? I0(R0("PikPak 根目录对应的媒体目录")) : `<div class="flex flex-col gap-1">${P0(R0("PikPak 根目录对应的媒体目录"))}${N0("先在「媒体库与入库」添加 PikPak 挂载文件夹。")}</div>`, r = _0(e?.cloud) ? k0("云下载", O0(F0("CloudDrive2 地址") + F0("CloudDrive2 API 令牌", "需要离线任务权限。") + (_0(e?.has115) ? F0(R0("115 目标目录"), "应位于自动入库的云端路径前缀内。") : "") + (t ? F0(R0("PikPak 目标目录"), "目录要已经存在。") + n : "") + F0("等待上限(小时)", x0("14em"))), E0("检查连接", "secondary") + E0("保存配置")) : "", i = _0(e?.pikpakLoggedIn);+ return r + (t ? k0("PikPak 账号", i ? B0(["账号", x0("4em")]) : O0(F0("账号") + F0("密码") + L0("保存密码,登录过期时自动重新登录")), i ? E0("登出", "secondary") : (_0(e?.browserLogin) ? E0("用浏览器登录", "secondary") : "") + E0("登录"), {+ aside: w0(),mark: !0- }) : "") + H0();-}, K0 = {+ }) : "") + U0();+}, q0 = {legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",locked: "访问设置无法读取,请在本机检查配置文件。",password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"-}, q0 = {+}, J0 = {quick: "临时预览用,地址随机,重启后会变。启动前要先设置访问密码。",named: "使用你在 Cloudflare 绑定的固定域名。启动前要先设置访问密码。"};-function vAe(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 yAe(e) {+ let t = e === "locked" ? "" : F0(e === "password" ? "新访问密码 *" : "设置访问密码 *", "至少 8 个字符。保存后其他设备需要重新登录。") + F0(e === "password" ? "确认新访问密码 *" : "确认访问密码 *");+ return (q0[e] ? N0(q0[e]) : "") + (e === "open" ? C0("100%", "64px") : "") + (e === "password" || e === "legacy" ? L0("关闭访问密码") : "") + (e === "password" ? F0("当前访问密码 *") : "") + t;}-var yAe = () => {- 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 bAe = () => {+ let e = g0("network"), t = typeof e?.access == "string" && e.access ? e.access : "legacy", n = _0(e?.tunnelNamed), r = (n && _0(e?.tunnelNamedMode) ? N0(J0.named) + F0("公开主机名", "Cloudflare Zero Trust 里指向这台电脑的主机名。") + F0("隧道令牌", x0("16em")) : N0(J0.quick)) + (_0(e?.tunnelNote) ? C0("100%", "64px") : ""), i = v0(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">${F0(["本机地址","手机连接地址","备用 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(vAe(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("保存配置"));-}, bAe = [+ ][t])}</div>${E0("复制地址", "secondary")}</div>`).join("");+ return (i || _0(e?.port) ? k0("访问地址", O0(a + (i ? C0("100%", "40px") : "") + (_0(e?.networkEditable) ? `<div class="flex flex-col gap-1.5">${P0("谁可以访问")}${C0("min(100%, 20em)", "36px")}</div>` + (_0(e?.lan) ? F0("局域网访问地址") : "") : "") + (_0(e?.port) ? F0("端口") : "")), _0(e?.port) ? E0("保存配置") : "", _0(e?.port) ? { status: "保存后 Peach 会重启,并跳转到新地址。" } : {}) : "") + k0("访问密码", O0(yAe(t)), t === "locked" ? "" : E0("保存配置")) + k0("Cloudflare 公网入口", O0((n ? C0("10.5em", "36px") : "") + r), E0("启动公网入口", n ? "secondary" : "primary") + (n ? E0("保存配置") : ""), { aside: w0() }) + k0("Peach 代理", j0("连接方式", "", "ui-configuration-skeleton-select") + (_0(e?.proxyAddress) ? O0(F0("代理地址"), !0) : ""), E0("保存配置"));+}, xAe = ["版本","操作系统","数据目录","设置文件","日志目录"-], xAe = () => {- let e = h0("maintenance"), t = [+], SAe = () => {+ let e = g0("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) => z(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 : bAe)) + `<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, v0(e?.releaseFacts, 5))), n = v0(e?.releaseNotes, 4), r = v0(e?.storageRows, 12), i = v0(e?.storageNotes, 3), a = y0(e?.facts, 12, (e) => z(String(e))), o = `<span class="self-start">${w0("6em")}</span>`, s = (t) => !e || _0(t), c = s(e?.reporting) ? j0("发送版本统计与错误诊断(推荐)", "上传版本、系统信息、故障类型、代码位置与发生次数。") + (_0(e?.reportingIdle) ? O0(o, !0) : "") : "", l = s(e?.sharing) ? `<div class="border-t border-separator-border">${j0("上传馆藏与口味明细", _0(e?.sharingNotice) ? x0("12em") : "")}${_0(e?.sharingIdle) ? O0(o, !0) : ""}${D0(E0("预览上传内容", "secondary"))}</div>` : "";+ return k0("检查更新", B0(t) + (n ? O0(N0(x0("50%")).repeat(n), !0) : ""), E0("检查更新"), {+ aside: w0("4em"),+ status: x0("5em")+ }) + k0("自动更新", j0("自动检查新版本") + j0("自动下载更新") + j0("检查频率", _0(e?.autoUpdateHelp) ? x0("12em") : "", "ui-configuration-skeleton-select"), E0("保存配置")) + k0("开机自启", j0("开机后启动 Peach") + j0("只启动托盘,不打开网页") + j0("在桌面创建快捷方式", _0(e?.desktopNote) ? x0("12em") : "") + (_0(e?.startupNote) ? O0(N0(x0("60%")), !0) : ""), E0("保存配置")) + k0("视频播放", j0("转码方式", "用于播放时的视频转码。", "ui-configuration-skeleton-select")) + k0("存储空间", B0(["数据目录", "所在磁盘"]) + (r ? Array.from({ length: r }, () => A0(x0("6em"), "", x0("4em"))).join("") : O0(N0("统计后显示各类数据的占用,并可清理缓存与旧备份。"), !0)) + (i ? O0(N0(x0("80%")).repeat(i), !0) : ""), E0("更改位置", "secondary") + E0(r ? "重新统计" : "统计占用")) + (c || l ? k0("数据上传", c + l) : "") + k0("运行信息", B0(a.length ? a : xAe)) + `<section aria-label="新手教程" class="w-full"><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${A0("新手教程", "在所有设备上恢复右上角教程入口,保留已读进度", E0("重新打开", "secondary"))}</div></section>` + (s(e?.uninstall) ? k0("卸载 Peach", (_0(e?.uninstallHelp) ? O0(N0("卸载移除 Peach 程序本身,原始媒体文件保留。")) : "") + j0("完全卸载", "同时删除设置、本地数据库、观看记录、凭据和缓存") + O0(z0("数据目录"), !0), E0("卸载 Peach"), { status: x0("16em") }) : "");};-function SAe(e) {+function CAe(e) {switch (e) {case "系统诊断": return c0();- case "来源与订阅": return gAe();- case "下载渠道": return _Ae();- case "网络与访问": return yAe();- case "应用与维护": return xAe();- default: return hAe();+ case "来源与订阅": return _Ae();+ case "下载渠道": return vAe();+ case "网络与访问": return bAe();+ case "应用与维护": return SAe();+ default: return gAe();}}-function CAe(e = "媒体库与入库") {- return `<div class="peach-react"><div class="ui-configpage">${`<div class="ui-board-local-nav" data-section-nav data-section-items>${Object.values(Df).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">${SAe(e)}</div></div></div>`;+function wAe(e = "媒体库与入库") {+ return `<div class="peach-react"><div class="ui-configpage">${`<div class="ui-board-local-nav" data-section-nav data-section-items>${Object.values(Df).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">${CAe(e)}</div></div></div>`;}// src/react/jav/discovery-sorts.ts-var J0 = [+var Y0 = [["taste","口味",@@ -71981,10 +72006,10 @@ var J0 = ["按番号排序"]];-function wAe(e) {+function TAe(e) {return typeof e == "number" && Number.isFinite(e) ? e.toFixed(3) : "—";}-function TAe(e) {+function EAe(e) {if (typeof e != "number" || !Number.isFinite(e)) return {score: "—",label: "资料未取得",@@ -72009,8 +72034,8 @@ function TAe(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>`, EAe = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, X0 = "w-full min-w-0";-function Z0() {+var X0 = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, DAe = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, Z0 = "w-full min-w-0";+function Q0() {return ["w-20","w-16",@@ -72020,8 +72045,8 @@ 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 = OM()) {- 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">${EAe("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>`;+function $0(e, t = OM()) {+ if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${X0("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${DAe("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">${X0("80%")}${X0("60%")}${X0("40%")}</div></div>`).join("")}</div>`;let n = IM({...FM({active: !0,@@ -72030,16 +72055,16 @@ function Q0(e, t = OM()) {}),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="${Z0}" 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>${X0("85%")}${X0("65%")}</div><div data-media-byline>${X0("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 DAe(e) {+function OAe(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>${Ds({@@ -72047,28 +72072,28 @@ function DAe(e) {label: "查找资源",attrs: "disabled data-skeleton-action"})}</div>- <div class="relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0">${QH.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">${$H.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}">${Es("筛选番号、女优或标题", "", 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">${OAe()}${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>${X0("100%")}</div>${$0(e)}` : `<section class="flex min-w-0 flex-col gap-4">${kAe()}${$0(e)}</section>`}</div></div>`;}-function OAe() {+function kAe() {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="" ${OM() === e ? "data-selected=\"true\"" : ""} class="flex size-8 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${ws(t, "size-4")}</span>`;return `<div data-filter-glass data-glass-pane data-filter-frame data-jav-filter data-catalog-frame class="sticky top-topbar z-10 mb-5.5 flex flex-col"><div data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible">- <div data-catalog-scroll><div data-catalog-views>${e("external", "库外发现")}${e("library", "馆藏探索")}<span data-entity-sep aria-hidden="true"></span></div><div data-catalog-tags>${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>${Q0()}</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>${Ts()}<span data-entity-sorts><button type="button" data-entity-batch data-filter-action data-skeleton-action data-jav-metadata-update title="更新资料" aria-label="更新资料" disabled>${ws("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" ? ws("arrow-down", "size-3.5") : ""}</button>`).join("")}+ ${Y0.map(([e, t]) => `<button type="button" data-entity-sort="${e}" data-entity-press aria-pressed="${e === "taste"}">${t}${e === "taste" ? ws("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 kAe() {+var e2 = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", t2 = (e = "60%") => `<span class="${e2} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, n2 = "disabled data-skeleton-action", r2 = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";+function AAe() {let e = ["馆藏视频","看过",@@ -72076,27 +72101,27 @@ function kAe() {"使用空间"].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="${e2} 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">${t2("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">${t2("6em")}</small>+ </div>`).join(""), t = (e) => `<section class="${r2}" 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">${t2("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">${t2()}</span><b class="text-title-2-medium">${t2("3em")}</b><small class="text-caption-1-regular">${t2()}</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">数据库中的当前统计 · ${t2("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="${r2}"><h3 class="text-title-2-medium">${e}</h3><div class="${e2} h-64"></div></section>`).join("")}</div></div></div><section class="rounded-surface bg-background-secondary-default dark:bg-background-primary-default">@@ -72105,11 +72130,11 @@ function kAe() {"最近看过","标签来源"].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="${e2} h-7"></div>`).join("")}</div></section></div></div>`;}-function AAe() {+function jAe() {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 = ["浏览记录","口味维度",@@ -72117,20 +72142,20 @@ function AAe() {"私有导出"].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="${e2} 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">${t2("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">${t2("6em")}</small>+ </div>`).join(""), n = Array.from({ length: 6 }, () => `<div class="${e2} h-6"></div>`).join(""), r = (e) => `<section class="${r2}"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="${e2} 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">${ks("全部时间")}<span data-button-group data-split-button data-variant="primary">${Ds({glyph: "compass",label: "读取浏览器历史",- attrs: t2+ attrs: n2})}${Ds({glyph: "chevron-down",- attrs: t2+ attrs: n2})}</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>@@ -72148,11 +72173,11 @@ function AAe() {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">${t2("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="${r2}"><h3 class="text-title-2-medium text-text-primary">创作者线索来源</h3><div class="${e2} 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(["标签",@@ -72160,20 +72185,20 @@ function AAe() {"常访问网站","浏览线索"])}</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="${e2} h-7"></div>`).join("")}</div></section></div></div></div>`;}-function jAe() {+function MAe() {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="${e2} 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">${t2("70%")}</span>+ ${Array.from({ length: 3 }, () => `<span class="font-mono text-caption-1-regular leading-5">${t2("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">${t2("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">${t2("5em")}</b><span class="font-mono text-caption-1-regular leading-5">${t2("8em")}</span><span class="ml-auto flex flex-wrap gap-2 max-compact:ml-0 max-compact:w-full">${["留最大","留最长",@@ -72182,27 +72207,27 @@ function jAe() {variant: "secondary",size: "small",label: e,- attrs: t2+ attrs: n2})).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">${t2("4em")}</strong></div><p class="text-body-regular text-text-secondary">${t2("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 ${n2} 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 MAe() {+function NAe() {let e = `<li class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card 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="${e2} 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">${t2("80%")}</h3><p class="text-body-2-regular">${t2("60%")}</p></div></div><footer class="flex justify-end">${Ds({variant: "secondary",size: "small",label: "查看版本",- attrs: t2+ attrs: n2})}</footer></li>`;return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">@@ -72211,20 +72236,20 @@ function MAe() {</div></div>`;}// src/board-skeleton.ts-var r2 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, NAe = () => `${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>`, PAe = "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 i2 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, PAe = () => `${i2("80%")}${i2("48%")}`, a2 = (e, t) => e.repeat(t), o2 = "disabled data-skeleton-action", s2 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, c2 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, FAe = "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", l2 = () => `<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="${PAe}"><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>`, FAe = (e = "") => pQ.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">${pQ.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>`, IAe = ({ table: e, sort: t, dir: n }) => {+].map((e) => `<div class="${FAe}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${s2("3em")}</b></div>`).join("")}</div>`, IAe = (e = "") => pQ.some(([t]) => t === e) ? e : "list", u2 = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${pQ.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, d2 = (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>`, LAe = ({ table: e, sort: t, dir: n }) => {let r = lr.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>${Ds({+ 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">${s2("132px")}</span></span><div data-follow-toolbar-actions data-toolbar-actions>${Ds({glyph: "refresh-cw",label: "检查全部",compact: !0,- attrs: a2+ attrs: o2})}<span data-follow-toolbar-controls class="contents"><span data-button-group role="group">${Ds({variant: "ghost",glyph: "layout-grid",@@ -72241,42 +72266,42 @@ var r2 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, NAeglyph: "chevron-up",label: "全部收起",compact: !0,- attrs: a2+ attrs: o2})}</span></div></div>`;-}, d2 = () => `<span class="flex shrink-0 items-center gap-1">${Ds({+}, f2 = () => `<span class="flex shrink-0 items-center gap-1">${Ds({variant: "secondary",size: "small",glyph: "refresh-cw",- attrs: a2+ attrs: o2})}${Ds({variant: "secondary",size: "small",glyph: "trash",- attrs: a2-})}</span>`, LAe = () => `<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">${Ds({+ attrs: o2+})}</span>`, RAe = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${d2()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${s2("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${c2(14, 14)}</span>${c2(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">${s2("113px")}</span>${f2()}</span></div>`, p2 = (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>${c2(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${s2("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">${Ds({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">${Ds({+ attrs: o2+})}<span class="flex shrink-0 items-center gap-1 max-sm:mr-auto">${c2(14, 14)}${c2(14, 14)}</span><span class="flex flex-none items-center gap-2">${Ds({variant: "secondary",size: "small",glyph: "check-check",label: "全选",- attrs: a2+ attrs: o2})}${Ds({variant: "secondary",size: "small",glyph: "chevron-up",label: "收起",- attrs: a2-})}</span></span></div><div data-source-divider>${i2(LAe(), e)}</div></section>`, RAe = () => {+ attrs: o2+})}</span></span></div><div data-source-divider>${a2(RAe(), e)}</div></section>`, zAe = () => {try {return Number(JSON.parse(localStorage.getItem("peach.settings.v1") || "{}").followPageSize) || 20;} catch {return 20;}-}, zAe = [+}, BAe = [["select", ""],["author", "创作者"],["source", "来源"],@@ -72284,90 +72309,90 @@ var r2 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, NAe["status", "状态"],["checked", "上次检查"],["actions", ""]-], BAe = {+], VAe = {name: "author",source: "source",provider: "provider",status: "status",checked: "checked"-}, VAe = "<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>", HAe = (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>${zAe.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${BAe[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${VAe}</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>`, UAe = (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>${ks(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${s2(204, 32)}</div></div>`, WAe = () => `<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>${[+}, HAe = "<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>", UAe = (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>${BAe.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${VAe[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${HAe}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${a2(`<tr>${[+ d2(),+ `<span class="flex min-w-0 items-center gap-2">${c2(32, 32, !0)}${s2("5em")}</span>`,+ s2("10em"),+ `<span class="flex items-center gap-1.5">${c2(14, 14)}${s2("4em")}</span>`,+ c2(48, 24),+ s2("113px"),+ f2()+].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, WAe = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular text-text-secondary">${s2("111px")}</span><div data-toolbar-actions>${ks(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${c2(204, 32)}</div></div>`, GAe = () => `<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">${s2("120px")}</h3>${["72%","56%","64%","40%"-].map((e) => `<span class="text-body-medium">${o2(e)}</span>`).join("")}</div>`, GAe = (e) => {- let t = FAe(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">${WAe()}</div></div></div></div>`;- let n = e.followLayout === "table", r = pr(e.followSort, e.followDir), i = e.followPageSize || RAe(), a = n ? HAe(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"}">${IAe({+].map((e) => `<span class="text-body-medium">${s2(e)}</span>`).join("")}</div>`, KAe = (e) => {+ let t = IAe(e.followTab);+ if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${l2()}<div class="flex flex-col gap-6">${u2(t)}<div class="flex flex-col gap-4">${GAe()}</div></div></div></div>`;+ let n = e.followLayout === "table", r = pr(e.followSort, e.followDir), i = e.followPageSize || zAe(), a = n ? UAe(i, r) : `${d2("全选本页")}<div class="flex flex-col gap-3">${p2(3)}${p2(4)}${p2(3)}</div>`;+ return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${l2()}<div class="flex flex-col gap-6">${u2(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"}">${LAe({table: n,...r- })}${a}${UAe(n, i)}</div></div></div></div></div>`;+ })}${a}${WAe(n, i)}</div></div></div></div></div>`;};-function KAe() {- 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(NAe(), 4)}</div></aside></div>`;+function qAe() {+ 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">${i2("85%")}${i2("65%")}${a2(PAe(), 4)}</div></aside></div>`;}-function qAe(e, t = {}) {+function JAe(e, t = {}) {let n = "";- if (e === "/stats") n = kAe();- else if (e === "/jav") n = DAe(new URLSearchParams(location.search).get("tab") === "wants" ? "wants" : "discover");- else if (e === "/taste") n = AAe();- else if (e === "/subscriptions") n = GAe(t);- else if (e.startsWith("/settings/") && e.split("/")[2] in Df) n = CAe(Df[e.split("/")[2]]);+ if (e === "/stats") n = AAe();+ else if (e === "/jav") n = OAe(new URLSearchParams(location.search).get("tab") === "wants" ? "wants" : "discover");+ else if (e === "/taste") n = jAe();+ else if (e === "/subscriptions") n = KAe(t);+ else if (e.startsWith("/settings/") && e.split("/")[2] in Df) n = wAe(Df[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 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 = jAe();- else if (e === "/quality-goals") n = MAe();+ ].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 bg-background-secondary-default"><div class="flex flex-col gap-1.5 px-5 pt-5 pb-4"><span class="text-title-1-medium">${s2("8em")}</span><span class="text-caption-1-regular">${s2("14em")}</span>${s2("60%")}${s2("40%")}</div><div class="border-t border-separator-border px-5 py-2.5">${s2("6em")}</div></div></section>`).join("")}</div></div>`;+ else if (e === "/duplicates") n = MAe();+ else if (e === "/quality-goals") n = NAe();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>${Ds({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: o2+ })}</div></header><div class="mx-auto w-full max-w-board"><div class="ui-playlistcards card-grid-cover gap-4.5">${a2("<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 JAe(e) {+function YAe(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 m2(e) {let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");- return JAe(n ?? t.body);+ return YAe(n ?? t.body);}-var m2 = "[role=\"dialog\"],[role=\"listbox\"],[role=\"menu\"]";-function YAe(e) {+var h2 = "[role=\"dialog\"],[role=\"listbox\"],[role=\"menu\"]";+function XAe(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(h2) ? e : e.querySelector(h2);if (t) return t;}return null;}-function h2(e) {+function g2(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], XAe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, ZAe = "/api/follow/save", QAe = "/api/follow/media/hide", _2 = class extends Error {+var _2 = (e) => ["follow-item", e], ZAe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, QAe = "/api/follow/save", $Ae = "/api/follow/media/hide", v2 = class extends Error {constructor() {super("这条关注内容已不存在");}};-async function v2(e, t) {- let n = await B(XAe(e), t);+async function y2(e, t) {+ let n = await B(ZAe(e), t);for (let t of n.groups || []) {let r = ca(t).find((t) => t.id === e);if (r) return {@@ -72377,9 +72402,9 @@ async function v2(e, t) {aliases: n.author_aliases || []};}- throw new _2();+ throw new v2();}-function $Ae(e) {+function eje(e) {for (let [, t] of H.getQueriesData({ queryKey: ["follow-item"] })) {if (!t?.group) continue;let n = ca(t.group).find((t) => t.id === e);@@ -72390,20 +72415,20 @@ function $Ae(e) {}return null;}-async function y2(e, t) {- let n = g2(e.id), r = la(e.id), i = H.getQueryData(ra) ? null : H.fetchQuery({+async function b2(e, t) {+ let n = _2(e.id), r = la(e.id), i = H.getQueryData(ra) ? null : H.fetchQuery({queryKey: ra,queryFn: () => ia(t)}), a = r ? {...r,item: r.item- } : H.getQueryData(n) ?? $Ae(e.id);+ } : H.getQueryData(n) ?? eje(e.id);a ? H.setQueryData(n, a) : await H.fetchQuery({queryKey: n,- queryFn: () => v2(e.id, t)+ queryFn: () => y2(e.id, t)}), await i;}-function eje(e, t, n, r) {+function tje(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 && _a(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,@@ -72418,32 +72443,32 @@ function eje(e, t, n, r) {src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""};}-var tje = (e) => ca(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), nje = {+var nje = (e) => ca(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), rje = {"gofile.io": "Gofile","pixeldrain.com": "Pixeldrain","mega.nz": "MEGA","mega.io": "MEGA","mediafire.com": "MediaFire","drive.google.com": "Google Drive"-}, rje = {+}, ije = {gofile: "Gofile",pixeldrain: "Pixeldrain",mega: "MEGA",mediafire: "MediaFire",google_drive: "Google Drive"};-function ije(e) {+function aje(e) {try {let t = new URL(e).hostname.replace(/^www\./, "");- return nje[t] || t;+ return rje[t] || t;} catch {return "外部文件页";}}-function b2(e, t) {- return rje[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";+function x2(e, t) {+ return ije[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";}-function aje(e, t, n = "") {+function oje(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;@@ -72452,54 +72477,54 @@ function aje(e, t, n = "") {title: e.is_release && t.author ? `${t.author}:${i}` : i};}-var oje = (e) => String(e.name || "").trim(), x2 = (e, t) => e.tag_types?.[t] || "unknown", sje = /* @__PURE__ */ new Set([+var sje = (e) => String(e.name || "").trim(), S2 = (e, t) => e.tag_types?.[t] || "unknown", cje = /* @__PURE__ */ new Set(["artist","character","copyright","metadata","unknown"]);-function cje(e, t) {- let n = x2(e, t);- return `r34-${sje.has(n) ? n : "general"}`;+function lje(e, t) {+ let n = S2(e, t);+ return `r34-${cje.has(n) ? n : "general"}`;}-var S2 = [+var C2 = ["copyright","character","artist","general","metadata"];-function lje(e, t) {+function uje(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 = C2.indexOf(S2(e, t));+ return n < 0 ? C2.length : n;};return [...n].sort((e, n) => r(e) - r(n) || t(e).localeCompare(t(n)));}-function C2(e, t) {+function w2(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 uje = (e, t) => ({+var dje = (e, t) => ({sources: e.sources,aliases: e.aliases,credentials: t-}), w2 = (e) => e?.size ? { size: e.size } : {};-function dje(e, t) {+}), T2 = (e) => e?.size ? { size: e.size } : {};+function fje(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: x2(t, e),+ ...T2(t)})) : r === "image" && i ? [{src: i,thumb: e.thumb_url || i,name: e.title,- source: b2(a, e),- ...w2(a)+ source: x2(a, e),+ ...T2(a)}] : e.thumb_url ? [{src: e.thumb_url,thumb: e.thumb_url,@@ -72507,7 +72532,7 @@ function dje(e, t) {source: e.provider_label || e.provider || "在线图片"}] : [];}-var fje = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", T2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill: a, cardRatio: o, gridClass: s = "", gridSize: c = "" } = {}) => nc(e, {+var pje = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", E2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill: a, cardRatio: o, gridClass: s = "", gridSize: c = "" } = {}) => nc(e, {variant: r || (t ? "cards" : "panel"),className: n,gridClass: s,@@ -72515,7 +72540,7 @@ var fje = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", T2...i ? { count: i } : {},...a === void 0 ? {} : { fill: a },...o ? { cardRatio: o } : {}-}), pje = [+}), mje = ["元数据字段","创作者标签","厂牌 Logo",@@ -72525,39 +72550,39 @@ var fje = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", T2"FC2 评论标记","FC2 跨号相似","片尾/出处证据"-], mje = (e = "正在读取复核队列") => `<div class="review review-workspace review-skeleton" data-skeleton="review" aria-busy="true" aria-label="${z(e)}">+], hje = (e = "正在读取复核队列") => `<div class="review review-workspace review-skeleton" data-skeleton="review" aria-busy="true" aria-label="${z(e)}"><div class="reviewcontrols" data-section-nav><h2 class="review-category-title">复核分类</h2>- <div class="reviewtabs" data-section-items>${pje.map((e, t) => `<button type="button" disabled aria-selected="${t === 0}">${z(e)}<span class="skeleton reviewcountskeleton" aria-hidden="true"></span></button>`).join("")}</div></div>+ <div class="reviewtabs" data-section-items>${mje.map((e, t) => `<button type="button" disabled aria-selected="${t === 0}">${z(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>`, hje = {+ <section class="reviewsection"><div class="reviewlist">${"<div class=\"skeletoncard\" aria-hidden=\"true\"><i></i><b></b><em></em></div>".repeat(6)}</div></section></div>`, gje = {"/data-cleanup": () => Q$(),- "/data-cleanup/media-repair": () => `<div class="peach-react" data-skeleton="cleanup/media-repair" 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">${xOe()}</div></div>`,+ "/data-cleanup/media-repair": () => `<div class="peach-react" data-skeleton="cleanup/media-repair" 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">${COe()}</div></div>`,"/resource-sync": () => Q$(),- "/review": () => mje(),+ "/review": () => hje(),"/sources": () => `<div class="scraping-page"><p>高清图片可能要经代理才能下载,先检查连接。</p>- ${T2("正在读取采集来源", {+ ${E2("正在读取采集来源", {cards: !0,count: 4,fill: !1,className: "cleanup-skeleton"})}</div>`};-function E2(e, { followLayout: t, followSort: n, followDir: r }) {- return qAe(e, {+function D2(e, { followLayout: t, followSort: n, followDir: r }) {+ return JAe(e, {followLayout: t,...e === "/subscriptions" ? {followSort: n,followDir: r} : {}- }) || (hje[e] ?? (() => T2("正在读取页面")))();+ }) || (gje[e] ?? (() => E2("正在读取页面")))();}-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 O2 = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";+function k2(e, t) {+ let n = e.querySelector("[data-skeleton]")?.dataset.skeleton || "", r = O2(t);r && r === n || (e.innerHTML = t, uc(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 A2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a, online: o = !1, ...s }) {let c = (0, F.useCallback)((e) => {e && (uc(e), t(e));}, [t]);@@ -72576,9 +72601,9 @@ function k2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a,})}) : r && !n ? /* @__PURE__ */ (0, I.jsx)("div", {"data-related-state": "",- children: /* @__PURE__ */ (0, I.jsx)(EV, {+ children: /* @__PURE__ */ (0, I.jsx)(DV, {size: "compact",- icon: hV,+ icon: gV,title: "暂无接着看的内容",actions: /* @__PURE__ */ (0, I.jsx)(zL, {size: "small",@@ -72596,7 +72621,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 j2({ 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),@@ -72604,7 +72629,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 M2({ 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]");@@ -72684,7 +72709,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)(gje, {+ children: e.map((e, r) => /* @__PURE__ */ (0, I.jsx)(_je, {item: e,selected: r === t,onSelect: n,@@ -72703,7 +72728,7 @@ function j2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail]});}-function gje({ item: e, selected: t, onSelect: n, render: r }) {+function _je({ 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;@@ -72729,14 +72754,14 @@ function gje({ item: e, selected: t, onSelect: n, render: r }) {});}// src/react/follow-detail/follow-related.ts-var _je = (e, t, n) => [+var vje = (e, t, n) => ["follow-feed","related",e,t,n];-function M2(e, t, n, r) {+function N2(e, t, n, r) {let i = new Set((t.group ? ca(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 = ca(e);@@ -72751,7 +72776,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 vje(e, t, n, r) {+async function yje(e, t, n, r) {let i = e.sources.find((t) => t.id === e.item.source_id)?.author_key || "", a = {...ga(i),status: "new",@@ -72765,22 +72790,22 @@ async function vje(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 N2(o, e, t, n).length < n && c.has_more && await s(i, (c.offset || 0) + 100), i && N2(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 P2 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {className: "contents",dangerouslySetInnerHTML: { __html: R(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 F2({ 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 = Pt({queryKey: ["tag-management", n],queryFn: ({ signal: e }) => B(`/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 = AH(), _ = (e) => {+ }), h = m.data?.items?.filter((e) => !e.hidden && !e.blocked && (n === "online" || e.cat !== "meta")) || t, g = jH(), _ = (e) => {g.run("rename", async (t) => {let r = (await H.fetchQuery({queryKey: ["tag-management", n],@@ -72812,9 +72837,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)}`,- ...AV(!!g.busy),+ ...jV(!!g.busy),onClick: () => _(e),- children: /* @__PURE__ */ (0, I.jsx)(N2, { name: "pencil" })+ children: /* @__PURE__ */ (0, I.jsx)(P2, { name: "pencil" })}),/* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -72823,10 +72848,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)(P2, { name: "x" })})]- }, e.k)), /* @__PURE__ */ (0, I.jsx)(yje, {+ }, e.k)), /* @__PURE__ */ (0, I.jsx)(bje, {tags: e,candidates: h,label: a,@@ -72837,11 +72862,11 @@ function P2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labeloading: m.isFetching})]}),- g.error ? /* @__PURE__ */ (0, I.jsx)(TV, {+ g.error ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "error",children: g.error}) : null,- m.isError ? /* @__PURE__ */ (0, I.jsx)(TV, {+ m.isError ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "error",action: /* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",@@ -72859,8 +72884,8 @@ function P2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe}) : null] });}-function yje({ 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 = tH(), 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 bje({ 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 = nH(), 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,@@ -72948,7 +72973,7 @@ function yje({ 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)(P2, { name: i ? "check" : "tags" }),/* @__PURE__ */ (0, I.jsx)("span", {"data-pick-name": "",children: n(t.k)@@ -72968,8 +72993,8 @@ function yje({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,title: "添加标签","aria-label": "添加标签","aria-expanded": p,- ...AV(!!i),- children: /* @__PURE__ */ (0, I.jsx)(N2, { name: "plus" })+ ...jV(!!i),+ children: /* @__PURE__ */ (0, I.jsx)(P2, { name: "plus" })}), /* @__PURE__ */ (0, I.jsxs)("div", {ref: l,id: "tagPicker",@@ -72982,7 +73007,7 @@ function yje({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,children: [s ? /* @__PURE__ */ (0, I.jsx)("span", {className: "contents",dangerouslySetInnerHTML: { __html: zs("正在读取标签") }- }) : /* @__PURE__ */ (0, I.jsx)(N2, { name: "search" }), /* @__PURE__ */ (0, I.jsx)("input", {+ }) : /* @__PURE__ */ (0, I.jsx)(P2, { name: "search" }), /* @__PURE__ */ (0, I.jsx)("input", {ref: d,id: "tagPickSearch",maxLength: 80,@@ -73026,7 +73051,7 @@ function yje({ 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)(P2, { name: "plus" }), /* @__PURE__ */ (0, I.jsxs)("span", {"data-pick-name": "",children: ["新建“",@@ -73043,8 +73068,8 @@ function yje({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,})] });}// src/react/follow-detail/follow-tags.tsx-function bje({ item: e, label: t, actions: n }) {- let r = AH(), i = () => H.invalidateQueries({ predicate: (e) => [+function xje({ item: e, label: t, actions: n }) {+ let r = jH(), i = () => H.invalidateQueries({ predicate: (e) => ["follow-feed","follow","tag-management"@@ -73083,10 +73108,10 @@ function bje({ item: e, label: t, actions: n }) {"aria-label": "内容标签","data-follow-tag-editor": "","data-follow-detail-tags": "",- children: [/* @__PURE__ */ (0, I.jsx)(P2, {- tags: lje(e, t).map((t) => ({+ children: [/* @__PURE__ */ (0, I.jsx)(F2, {+ tags: uje(e, t).map((t) => ({k: t,- cat: cje(e, t)+ cat: lje(e, t)})),scope: "online",adding: !!r.busy,@@ -73095,30 +73120,30 @@ function bje({ item: e, label: t, actions: n }) {onOpen: n.openTag,onAdd: (e) => o("add", e),onRemove: (e) => o("remove", e.k),- busyAttrs: () => AV(!!r.busy)- }), r.error ? /* @__PURE__ */ (0, I.jsx)(TV, {+ busyAttrs: () => jV(!!r.busy)+ }), r.error ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "error",children: r.error}) : null]});}// src/react/follow-detail/follow-detail-page.tsx-var F2 = (e) => Number(e) > 0, xje = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {+var I2 = (e) => Number(e) > 0, Sje = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {className: "contents",dangerouslySetInnerHTML: { __html: R(e) }-}), I2 = R("external-link", "ui-externalmark");-function Sje(e) {+}), L2 = R("external-link", "ui-externalmark");+function Cje(e) {let { id: t, actions: n } = e, r = Pt({- queryKey: g2(t),- queryFn: ({ signal: e }) => v2(t, e)+ queryKey: _2(t),+ queryFn: ({ signal: e }) => y2(t, e)}), i = Pt({queryKey: ra,queryFn: ({ signal: e }) => ia(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)(Tje, {+ return r.data ? /* @__PURE__ */ (0, I.jsx)(Eje, {...e,data: r.data,- context: uje(r.data, a),+ context: dje(r.data, a),mediaIndex: o,onMedia: s}) : /* @__PURE__ */ (0, I.jsx)("div", {@@ -73127,9 +73152,9 @@ function Sje(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)(R2, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {"data-follow-detail-placeholder": "",- children: r.isError ? Cje(r.error) ? /* @__PURE__ */ (0, I.jsx)(wje, { onBack: n.close }) : /* @__PURE__ */ (0, I.jsx)(fK, {+ children: r.isError ? wje(r.error) ? /* @__PURE__ */ (0, I.jsx)(Tje, { onBack: n.close }) : /* @__PURE__ */ (0, I.jsx)(fK, {message: bn(r.error),onRetry: () => void r.refetch()}) : null@@ -73137,8 +73162,8 @@ function Sje(e) {})});}-var Cje = (e) => e instanceof _2 || e instanceof or && e.status === 404;-function wje({ onBack: e }) {+var wje = (e) => e instanceof v2 || e instanceof or && e.status === 404;+function Tje({ onBack: e }) {return /* @__PURE__ */ (0, I.jsx)("div", {"data-follow-detail-gone": "",onClick: (t) => {@@ -73147,7 +73172,7 @@ function wje({ onBack: e }) {dangerouslySetInnerHTML: { __html: Rs("这条关注内容已不存在,可能已被来源删除或已清理。", { actionLabel: "回到关注" }) }});}-var L2 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {+var R2 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {type: "button","data-stage-close": "",id: "closeStage",@@ -73156,8 +73181,8 @@ var L2 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {onClick: e,dangerouslySetInnerHTML: { __html: R("x") }});-function Tje({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {- let { item: c, group: l } = e, u = eje(c, l, n, i), d = jje(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, F.useState)({+function Eje({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {+ let { item: c, group: l } = e, u = tje(c, l, n, i), d = Mje(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, F.useState)({key: "",kind: ""}), h = {@@ -73177,20 +73202,20 @@ function Tje({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relc,u.kind]);- let g = !u.embedded.length && u.collection ? tje(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, I.jsx)(V2, {+ let g = !u.embedded.length && u.collection ? nje(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, I.jsx)(H2, {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)(H2, {item: g,current: null,helpers: o,actions: s,onMedia: r,currentId: c.id- }) : /* @__PURE__ */ (0, I.jsx)(Oje, {+ }) : /* @__PURE__ */ (0, I.jsx)(kje, {group: u.collection,itemId: c.id,helpers: o,@@ -73200,14 +73225,14 @@ function Tje({ 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)(Dje, {+ children: [/* @__PURE__ */ (0, I.jsx)(Oje, {item: c,media: u,helpers: o,actions: s,onMedia: r,issues: h- }, f), /* @__PURE__ */ (0, I.jsx)(kje, {+ }, f), /* @__PURE__ */ (0, I.jsx)(Aje, {item: c,data: e,context: t,@@ -73217,9 +73242,9 @@ function Tje({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relhelpers: o,actions: s})]- }), /* @__PURE__ */ (0, I.jsx)(A2, {+ }), /* @__PURE__ */ (0, I.jsx)(j2, {queue: _,- children: a > 0 ? /* @__PURE__ */ (0, I.jsx)(Eje, {+ children: a > 0 ? /* @__PURE__ */ (0, I.jsx)(Dje, {data: e,media: u.kind === "image" ? "images" : u.kind === "video" ? "videos" : i,limit: a,@@ -73229,23 +73254,23 @@ function Tje({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel}) : null})] });}-function Eje({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {+function Dje({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {let o = Pt({- queryKey: _je(e.item.id, t, n),- queryFn: ({ signal: r }) => vje(e, t, n, r)- }), [s] = (0, F.useState)(() => T2("正在读取推荐", {+ queryKey: vje(e.item.id, t, n),+ queryFn: ({ signal: r }) => yje(e, t, n, r)+ }), [s] = (0, F.useState)(() => E2("正在读取推荐", {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 = N2(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)(A2, {online: !0,"data-follow-related": "",wireDrag: i.wireDrag,@@ -73259,7 +73284,7 @@ function Eje({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }variant: "next",group: e,media: t,- authorSources: C2(e.primary, u),+ authorSources: w2(e.primary, u),context: d,selected: !1,selectMode: !1,@@ -73272,8 +73297,8 @@ function Eje({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }})});}-function Dje({ 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 = dje(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 Oje({ 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 = fje(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);@@ -73287,7 +73312,7 @@ function Dje({ 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)(R2, { onClose: n.close }),h ? null : g ? /* @__PURE__ */ (0, I.jsx)("img", {"data-follow-detail-poster": "","data-zoomable": p.length ? "" : void 0,@@ -73305,7 +73330,7 @@ function Dje({ item: e, media: t, actions: n, onMedia: r, issues: i }) {dangerouslySetInnerHTML: { __html: VG(e.resource_provider || e.provider) }}), /* @__PURE__ */ (0, I.jsx)("span", { children: "没有可用预览" })]}),- u ? /* @__PURE__ */ (0, I.jsx)(j2, {+ u ? /* @__PURE__ */ (0, I.jsx)(M2, {items: c,position: l,onSelect: r,@@ -73322,11 +73347,11 @@ function Dje({ item: e, media: t, actions: n, onMedia: r, issues: i }) {]});}-var R2 = ({ kind: e }) => /* @__PURE__ */ (0, I.jsx)("span", {+var z2 = ({ kind: e }) => /* @__PURE__ */ (0, I.jsx)("span", {"data-follow-nothumb": "",dangerouslySetInnerHTML: { __html: R(e === "image" ? "image-off" : "play") }});-function z2({ src: e }) {+function B2({ src: e }) {let [t, n] = (0, F.useState)(!1);return t ? null : /* @__PURE__ */ (0, I.jsx)("img", {src: e,@@ -73336,13 +73361,13 @@ function z2({ src: e }) {onError: () => n(!0)});}-function B2(e) {+function V2(e) {return (0, F.useCallback)((t) => {t && e.wireDrag(t);}, [e]);}-function Oje({ group: e, itemId: t, helpers: n, actions: r }) {- let i = _a(e), a = B2(n);+function kje({ group: e, itemId: t, helpers: n, actions: r }) {+ let i = _a(e), a = V2(n);return /* @__PURE__ */ (0, I.jsx)(oq, {kind: "collection","data-follow-queue": "",@@ -73351,12 +73376,12 @@ function Oje({ group: e, itemId: t, helpers: n, actions: r }) {listRef: a,summary: `${UG(e.primary)} · ${i.length} 个视频`,children: i.map((n) => {- let i = e.duplicates.includes(n), a = aje(e, n, i ? n.provider_label : ""), o = i ? VG(n.provider, n.provider_label) : "";+ let i = e.duplicates.includes(n), a = oje(e, n, i ? n.provider_label : ""), o = i ? VG(n.provider, n.provider_label) : "";return /* @__PURE__ */ (0, I.jsxs)(sq, {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)(B2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(z2, { kind: "video" }), I2(n.duration) ? /* @__PURE__ */ (0, I.jsx)("i", {className: "mono","data-mix-item-duration": "",children: qn(n.duration)@@ -73381,8 +73406,8 @@ function Oje({ group: e, itemId: t, helpers: n, actions: r }) {})});}-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 H2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {+ let o = e.media_items || [], s = V2(r), c = [];o.forEach((e) => {let t = e.resource_group || "ungrouped", n = c.find((e) => e.key === t);n || (n = {@@ -73399,7 +73424,7 @@ function V2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,onClose: i.close,listRef: s,summary: `${UG(e)} · ${o.length} 个媒体`,- children: c.map((n) => [n.label ? /* @__PURE__ */ (0, I.jsx)(ibe, {+ children: c.map((n) => [n.label ? /* @__PURE__ */ (0, I.jsx)(obe, {label: n.label,count: n.items.length}, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, I.jsxs)(sq, {@@ -73408,10 +73433,10 @@ function V2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,"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)(B2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(z2, { kind: n.media_kind || "" }),children: [/* @__PURE__ */ (0, I.jsx)("b", {"data-middle-truncate": "",- children: oje(n)+ children: sje(n)}), /* @__PURE__ */ (0, I.jsx)("span", {"data-truncate-end": "",children: n.media_kind === "image" ? "图片" : "视频"@@ -73419,13 +73444,13 @@ function V2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,}, n.index))])});}-function kje({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {+function Aje({ 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 = YG(d, e), p = qG(e, C2(e, t.sources), n), m = p.credited ? "" : e.author && Hn(e.author) !== Hn(p.author) ? e.author : "", h = XG(e, n), g = e.status === "saved", { busy: _ } = i, v = (e) => _.has(e) ? {+ }, f = YG(d, e), p = qG(e, w2(e, t.sources), n), m = p.credited ? "" : e.author && Hn(e.author) !== Hn(p.author) ? e.author : "", h = XG(e, n), g = e.status === "saved", { busy: _ } = i, v = (e) => _.has(e) ? {"aria-busy": !0,"aria-disabled": !0} : {};@@ -73449,7 +73474,7 @@ function kje({ item: e, data: t, context: n, media: r, write: i, issue: a, helperel: "noreferrer noopener",title: "打开来源页面","aria-label": "打开来源页面",- dangerouslySetInnerHTML: { __html: I2 }+ dangerouslySetInnerHTML: { __html: L2 }}) : null]}),/* @__PURE__ */ (0, I.jsxs)("div", {@@ -73458,7 +73483,7 @@ function kje({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe"data-reveal-line": "",children: [/* @__PURE__ */ (0, I.jsx)("span", { children: QG(e) }),- F2(e.duration) ? /* @__PURE__ */ (0, I.jsx)("span", { children: qn(e.duration) }) : null,+ I2(e.duration) ? /* @__PURE__ */ (0, I.jsx)("span", { children: qn(e.duration) }) : null,f ? /* @__PURE__ */ (0, I.jsx)("span", {"data-follow-badges": "",dangerouslySetInnerHTML: { __html: f }@@ -73507,7 +73532,7 @@ function kje({ item: e, data: t, context: n, media: r, write: i, issue: a, helpechildren: [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)(Aje, { text: e.summary }, e.id) : null,+ e.summary ? /* @__PURE__ */ (0, I.jsx)(jje, { text: e.summary }, e.id) : null,h ? /* @__PURE__ */ (0, I.jsx)("p", {"data-follow-media-issue": "",children: h@@ -73530,9 +73555,9 @@ function kje({ item: e, data: t, context: n, media: r, write: i, issue: a, helpehref: e,target: "_blank",rel: "noreferrer noopener",- children: [ije(e), /* @__PURE__ */ (0, I.jsx)("span", {+ children: [aje(e), /* @__PURE__ */ (0, I.jsx)("span", {className: "contents",- dangerouslySetInnerHTML: { __html: I2 }+ dangerouslySetInnerHTML: { __html: L2 }})]}, e))}) : null,@@ -73632,7 +73657,7 @@ function kje({ 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)(xje, { name: "image-off" }), /* @__PURE__ */ (0, I.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]+ children: [e.thumb_url ? /* @__PURE__ */ (0, I.jsx)(B2, { src: e.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(Sje, { name: "image-off" }), /* @__PURE__ */ (0, I.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]}, e.index))})]}) : null,@@ -73641,7 +73666,7 @@ function kje({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe"aria-live": "polite",children: i.failure}),- /* @__PURE__ */ (0, I.jsx)(bje, {+ /* @__PURE__ */ (0, I.jsx)(xje, {item: e,label: o.tagLabel,actions: s@@ -73650,7 +73675,7 @@ function kje({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe})});}-function Aje({ text: e }) {+function jje({ 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;@@ -73675,8 +73700,8 @@ function Aje({ text: e }) {children: n ? "收起" : "展开"}) : null] });}-function jje(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 Mje(e, t, n) {+ let r = e.id, i = _2(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) => {@@ -73695,7 +73720,7 @@ function jje(e, t, n) {to: e}),onSuccess: (e, { to: n, was: i }) => {- u(n), c(""), n === "ignored" && FW(), t.toast(fje(n), { undo: i === "saved" ? void 0 : async () => {+ u(n), c(""), n === "ignored" && IW(), t.toast(pje(n), { undo: i === "saved" ? void 0 : async () => {await V(jr, {item: r,to: i@@ -73705,7 +73730,7 @@ function jje(e, t, n) {onError: d,onSettled: (e, t, { to: n }) => l(n, !1)}), p = Ft({- mutationFn: () => V(ZAe, { item: r }),+ mutationFn: () => V(QAe, { item: r }),onSuccess: () => {u("saved"), c(""), t.toast("已保存到数据库");},@@ -73713,7 +73738,7 @@ function jje(e, t, n) {onSettled: () => l("save", !1)}), m = Ft({mutationFn: async ({ index: e, hidden: t }) => {- await V(QAe, {+ await V($Ae, {item: r,media: e,hidden: t@@ -73729,12 +73754,12 @@ function jje(e, t, n) {onError: d,onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)}), h = Pt({- queryKey: DW(r),- queryFn: ({ signal: e }) => jW(r, e)+ queryKey: OW(r),+ queryFn: ({ signal: e }) => MW(r, e)}).data?.want ?? null, g = Ft({- mutationFn: async (e) => (e ? await NW([e.id]) : await MW({ follow: r }), !e),+ mutationFn: async (e) => (e ? await PW([e.id]) : await NW({ follow: r }), !e),onSuccess: (e) => {- c(""), t.toast(e ? "已加入想要" : "已取消想要"), FW();+ c(""), t.toast(e ? "已加入想要" : "已取消想要"), IW();},onError: d,onSettled: () => l("want", !1)@@ -73773,7 +73798,7 @@ function jje(e, t, n) {};}// src/react/components/identity-cell.tsx-function H2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a }) {+function U2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a }) {wL();let o = tn(e, t.name, t.id), s = e === "performer" || e === "creator" ? /* @__PURE__ */ (0, I.jsx)("span", {"data-id-face": "",@@ -73820,7 +73845,7 @@ function H2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a })children: c});}-function U2({ people: e, onOpen: t }) {+function W2({ 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",@@ -73853,7 +73878,7 @@ function U2({ people: e, onOpen: t }) {});}// src/react/components/folded-title.ts-function W2(e) {+function G2(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;@@ -73870,7 +73895,7 @@ function W2(e) {};}// src/react/item-detail/catalog-picture.tsx-function G2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {+function K2({ 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)(GQ, {item: {@@ -73886,7 +73911,7 @@ function G2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {src: c,alt: "",onError: () => a(c)- }) : i === c ? /* @__PURE__ */ (0, I.jsx)(TV, {+ }) : i === c ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "neutral",action: /* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",@@ -73904,34 +73929,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) => B(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), Mje = (e, t, n, r = !1) => B(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), J2 = (e, t) => H.ensureQueryData({- queryKey: K2(e.code),- queryFn: () => q2(e.code, t),+var q2 = (e) => ["jav-detail", e], J2 = (e, t, n = !1) => B(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), Nje = (e, t, n, r = !1) => B(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), Y2 = (e, t) => H.ensureQueryData({+ queryKey: q2(e.code),+ queryFn: () => J2(e.code, t),staleTime: 216e5,revalidateIfStale: !0});-function Nje(e, t) {+function Pje(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 Pje() {+var X2 = "peach.playback-target.v1", Z2 = [["m3u", "M3U 播放列表"], ["url", "网络播放地址 / VR"]];+function Fje() {try {- return localStorage.getItem(Y2) || `local:${localStorage.getItem("peach.local-player.v1") || "default"}`;+ return localStorage.getItem(X2) || `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)(Pje), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(""), [u, d] = (0, F.useState)(0), f = AH();+function Q2({ id: e, onOpened: t }) {+ let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(Fje), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(""), [u, d] = (0, F.useState)(0), f = jH();(0, F.useEffect)(() => {let e = new AbortController();return B("/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) || Z2.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) => Z2.some(([t]) => t === e) ? e : "m3u"), l(String(t.message || t)));}), () => e.abort();}, [u]);let p = () => void f.run("open", async (t) => {@@ -73958,26 +73983,26 @@ function Z2({ id: e, onOpened: t }) {children: [/* @__PURE__ */ (0, I.jsx)(k1, {id: `external-player-${e}`,label: "外部播放器",- options: [...(n || []).map((e) => [`local:${e.id}`, e.label]), ...X2],+ options: [...(n || []).map((e) => [`local:${e.id}`, e.label]), ...Z2],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(X2, e);} catch {}}}), /* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary","aria-label": "使用外部播放器打开",disabled: n === null,- ...AV(f.busy === "open"),+ ...jV(f.busy === "open"),onClick: p,children: "打开"})]}),- f.error || c ? /* @__PURE__ */ (0, I.jsx)(_U, { children: f.error || c }) : null,+ f.error || c ? /* @__PURE__ */ (0, I.jsx)(vU, { children: f.error || c }) : null,c ? /* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",disabled: !!f.busy,@@ -73986,16 +74011,16 @@ function Z2({ id: e, onOpened: t }) {},children: "重新检测播放器"}) : null,- o ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(SV, {+ o ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(CV, {label: "网络播放地址",value: o.url,isReadOnly: !0- }), /* @__PURE__ */ (0, I.jsx)(gU, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })] }) : null+ }), /* @__PURE__ */ (0, I.jsx)(_U, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })] }) : null]});}// src/react/boardui/components/base/switch/switch.tsx-var Fje = eL({+var Ije = eL({sm: {track: "h-4 w-7",trackRadius: {@@ -74057,8 +74082,8 @@ var Fje = eL({}}});-function Ije({ state: e, size: t = "md", shape: n = "pill" }) {- let r = Fje[t];+function Lje({ state: e, size: t = "md", shape: n = "pill" }) {+ let r = Ije[t];return /* @__PURE__ */ (0, I.jsx)("span", {"aria-hidden": !0,className: q("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? q("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"),@@ -74068,12 +74093,12 @@ function Ije({ state: e, size: t = "md", shape: n = "pill" }) {})});}-function Q2({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {+function $2({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {return /* @__PURE__ */ (0, I.jsx)(gme, {ref: i,...a,className: (t) => q("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)(Ije, {+ children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Lje, {state: e,size: n,shape: r@@ -74084,12 +74109,12 @@ function Q2({ className: e, children: t, size: n = "md", shape: r = "pill", ref:});}// src/react/cover-crop/cover-crop.ts-var Lje = "/api/cover-crop", Rje = (e, t) => V(Lje, {+var Rje = "/api/cover-crop", zje = (e, t) => V(Rje, {code: e,box: t});// src/react/cover-crop/cover-crop-page.tsx-function $2({ className: e }) {+function e4({ className: e }) {return /* @__PURE__ */ (0, I.jsx)("svg", {"aria-hidden": !0,viewBox: "0 0 24 24",@@ -74102,7 +74127,7 @@ function $2({ className: e }) {children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-crop" })});}-function zje({ code: e, coverUrl: t, box: n, onSaved: r }) {+function Bje({ 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",@@ -74112,13 +74137,13 @@ function zje({ 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)(CV, {+ children: /* @__PURE__ */ (0, I.jsx)(e4, { className: "size-3.75" })+ }), /* @__PURE__ */ (0, I.jsx)(wV, {isOpen: i,onOpenChange: a,width: "cover-crop",label: "裁剪封面",- children: /* @__PURE__ */ (0, I.jsx)(Bje, {+ children: /* @__PURE__ */ (0, I.jsx)(Vje, {code: e,coverUrl: t,box: n,@@ -74127,9 +74152,9 @@ function zje({ code: e, coverUrl: t, box: n, onSaved: r }) {})})] });}-function Bje({ 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 = tH(), f = Ft({- mutationFn: (t) => Rje(e, t),+function Vje({ 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 = nH(), f = Ft({+ mutationFn: (t) => zje(e, t),onSuccess: (e) => {i(), r(e.poster_box);}@@ -74141,7 +74166,7 @@ function Bje({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {y0: n.y0,x1: n.x1,y1: n.y1- } : OEe(e, to);+ } : AEe(e, to);c(OQ(t, e, null));}let m = f.isPending;@@ -74149,7 +74174,7 @@ function Bje({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {/* @__PURE__ */ (0, I.jsxs)("div", {className: "flex shrink-0 items-start gap-4 p-5",children: [- /* @__PURE__ */ (0, I.jsx)(wV, { children: /* @__PURE__ */ (0, I.jsx)($2, { className: "size-6" }) }),+ /* @__PURE__ */ (0, I.jsx)(TV, { children: /* @__PURE__ */ (0, I.jsx)(e4, { className: "size-6" }) }),/* @__PURE__ */ (0, I.jsxs)("div", {className: "flex min-w-0 flex-1 flex-col gap-2",children: [@@ -74162,7 +74187,7 @@ function Bje({ 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)(TV, {+ f.error ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "error",children: cr(f.error)}) : null@@ -74193,7 +74218,7 @@ function Bje({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {}),/* @__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)($2, {isSelected: l,onChange: (e) => {u(e), e && s && a && c(OQ(s, a, to));@@ -74206,14 +74231,14 @@ function Bje({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {className: "flex flex-1 flex-wrap items-center justify-end gap-3",children: [/* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",- ...AV(m),+ ...jV(m),onClick: () => {m || f.mutate(null);},children: "恢复默认"}), /* @__PURE__ */ (0, I.jsx)(J, {disabled: !s || !a,- ...AV(m),+ ...jV(m),onClick: () => {s && !m && f.mutate(s);},@@ -74224,14 +74249,14 @@ function Bje({ 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 t4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {className: "contents",dangerouslySetInnerHTML: { __html: R(e) }-}), t4 = ({ html: e }) => /* @__PURE__ */ (0, I.jsx)("span", {+}), n4 = ({ html: e }) => /* @__PURE__ */ (0, I.jsx)("span", {className: "contents",dangerouslySetInnerHTML: { __html: e }-}), n4 = (e) => Number(e) > 0 ? Yn(Number(e)) : "大小未知";-function Vje(e) {+}), r4 = (e) => Number(e) > 0 ? Yn(Number(e)) : "大小未知";+function Hje(e) {let { queue: t, actions: n } = e, r = Pt({queryKey: t ? jP(t) : ["item-queue", "none"],queryFn: ({ signal: n }) => BP(t, e.helpers, n),@@ -74249,7 +74274,7 @@ function Vje(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)(i4, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {"data-item-placeholder": "",children: e ? /* @__PURE__ */ (0, I.jsx)(fK, {message: bn(e),@@ -74261,13 +74286,13 @@ function Vje(e) {})});}- return /* @__PURE__ */ (0, I.jsx)(Hje, {+ return /* @__PURE__ */ (0, I.jsx)(Uje, {...e,item: Due(o.data, i),queue: i}, o.data.id);}-var r4 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {+var i4 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {type: "button","data-stage-close": "",id: "closeStage",@@ -74276,8 +74301,8 @@ var r4 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {onClick: e,dangerouslySetInnerHTML: { __html: R("x") }});-function Hje(e) {- let { item: t, queue: n, actions: r, helpers: i } = e, a = rMe(t, r, i.tagLabel), o = (0, F.useRef)(t);+function Uje(e) {+ let { item: t, queue: n, actions: r, helpers: i } = e, a = iMe(t, r, i.tagLabel), o = (0, F.useRef)(t);(0, F.useLayoutEffect)(() => {r.present(o.current, n);}, [r]), (0, F.useEffect)(() => {@@ -74292,7 +74317,7 @@ function Hje(e) {"data-stage-grid": "","data-with-queue": n ? "" : void 0,"data-item-detail": "",- children: [/* @__PURE__ */ (0, I.jsx)(Uje, {+ children: [/* @__PURE__ */ (0, I.jsx)(Wje, {item: t,gate: s,helpers: i,@@ -74305,22 +74330,22 @@ function Hje(e) {autoplay: !0}, c.id);}- }), /* @__PURE__ */ (0, I.jsx)(Jje, {+ }), /* @__PURE__ */ (0, I.jsx)(Yje, {item: t,queue: n,write: a,helpers: i,actions: r})]- }), /* @__PURE__ */ (0, I.jsx)(A2, {+ }), /* @__PURE__ */ (0, I.jsx)(j2, {queueCards: n?.kind === "parts" || n?.kind === "editions" ? n.items.length : void 0,- queue: n ? /* @__PURE__ */ (0, I.jsx)(Gje, {+ queue: n ? /* @__PURE__ */ (0, I.jsx)(Kje, {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)(nMe, {+ children: e.relatedLimit > 0 && (!n || n.kind === "parts" || n.kind === "editions") ? /* @__PURE__ */ (0, I.jsx)(rMe, {...e,item: n ? {...t,@@ -74329,12 +74354,12 @@ function Hje(e) {}) : null})] });}-function Uje({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {+function Wje({ 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 = Pt({- queryKey: K2(e.code || ""),+ queryKey: q2(e.code || ""),queryFn: ({ signal: t }) => {let n = d.current;- return d.current = !1, q2(e.code, t, n);+ return d.current = !1, J2(e.code, t, n);},staleTime: 216e5,enabled: !!e.is_jav && !!e.code && !e.sample_images?.length@@ -74379,7 +74404,7 @@ function Uje({ 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)(i4, { onClose: r.close }),/* @__PURE__ */ (0, I.jsxs)("div", {"data-player-toolbar": "",children: [@@ -74389,21 +74414,21 @@ function Uje({ 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)(t4, { 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)(K2, {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)(M2, {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)(K2, {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,@@ -74419,7 +74444,7 @@ function Uje({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: aclassName: "relative block h-12 w-20 skeleton-sheen"}) : /* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",- ...AV(f.isFetching),+ ...jV(f.isFetching),title: f.data?.message || bn(f.error),"aria-label": "立即重试样图",onClick: () => {@@ -74428,7 +74453,7 @@ function Uje({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: achildren: "立即重试"})}) : null,- t === "offline" ? /* @__PURE__ */ (0, I.jsx)(Wje, {+ t === "offline" ? /* @__PURE__ */ (0, I.jsx)(Gje, {item: e,badge: y,helpers: n,@@ -74439,7 +74464,7 @@ function Uje({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: achildren: [/* @__PURE__ */ (0, I.jsx)("b", { children: "ISO 原盘" }),/* @__PURE__ */ (0, I.jsx)("span", { children: "请使用支持原盘的外部播放器打开。" }),- /* @__PURE__ */ (0, I.jsx)(Z2, {+ /* @__PURE__ */ (0, I.jsx)(Q2, {id: e.id,onOpened: () => r.toast("已请求打开本地播放器")}, e.id)@@ -74449,7 +74474,7 @@ function Uje({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: arole: "status","data-item-gate": "online",children: [- /* @__PURE__ */ (0, I.jsx)(t4, { html: y }),+ /* @__PURE__ */ (0, I.jsx)(n4, { html: y }),/* @__PURE__ */ (0, I.jsx)("b", { children: "在线作品" }),/* @__PURE__ */ (0, I.jsx)("span", { children: "这条没有对应的关注条目,媒体地址无从解析。" }),/* @__PURE__ */ (0, I.jsx)("button", {@@ -74464,12 +74489,12 @@ function Uje({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: aid: "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)(n4, { html: y }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["点此开始拉流 · ", r4(e.size)] })]}) : null]});}-function Wje({ item: e, badge: t, helpers: n, actions: r }) {+function Gje({ 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);@@ -74480,7 +74505,7 @@ function Wje({ 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)(n4, { 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", {@@ -74494,8 +74519,8 @@ function Wje({ item: e, badge: t, helpers: n, actions: r }) {]});}-function Gje({ queue: e, itemId: t, helpers: n, actions: r }) {- let i = Nue(e), a = (0, F.useRef)(null), o = qje(e, t, r), s = (0, F.useRef)(o);+function Kje({ queue: e, itemId: t, helpers: n, actions: r }) {+ let i = Nue(e), a = (0, F.useRef)(null), o = Jje(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, {@@ -74503,7 +74528,7 @@ function Gje({ 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 = Kje(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)("button", {+ }, [n, e.kind]), l = qje(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)("button", {type: "button","data-save-mix": "",title: "保存为播放列表",@@ -74545,25 +74570,25 @@ function Gje({ 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: Do(i, n.javImage()) }), /* @__PURE__ */ (0, I.jsx)("i", {+ pic: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(n4, { html: Do(i, n.javImage()) }), /* @__PURE__ */ (0, I.jsx)("i", {className: "mono","data-mix-item-duration": "",children: qn(i.duration)})] }),- lead: /* @__PURE__ */ (0, I.jsx)(t4, { html: Ao(i) }),+ lead: /* @__PURE__ */ (0, I.jsx)(n4, { html: Ao(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)(t4, { 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)(t4, { name: "x" })})]}) : null,children: [/* @__PURE__ */ (0, I.jsxs)("span", {@@ -74580,7 +74605,7 @@ function Gje({ queue: e, itemId: t, helpers: n, actions: r }) {})});}-function Kje(e, t) {+function qje(e, t) {let n = Ft({ mutationFn: (t) => V(MP, {action: "create",name: t,@@ -74594,7 +74619,7 @@ function Kje(e, t) {save: (e) => n.mutateAsync(e)});}-function qje(e, t, n) {+function Jje(e, t, n) {let r = jP({kind: "playlist",playlistId: e.playlistId@@ -74657,7 +74682,7 @@ function qje(e, t, n) {}};}-function Jje({ item: e, queue: t, write: n, helpers: r, actions: i }) {+function Yje({ 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": "",@@ -74665,7 +74690,7 @@ function Jje({ 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)(Yje, {+ /* @__PURE__ */ (0, I.jsx)(Xje, {item: e,queue: t,helpers: r,@@ -74677,7 +74702,7 @@ function Jje({ item: e, queue: t, write: n, helpers: r, actions: i }) {"aria-live": "polite",children: n.sourceState}),- /* @__PURE__ */ (0, I.jsx)(Zje, {+ /* @__PURE__ */ (0, I.jsx)(Qje, {item: e,write: n}),@@ -74688,7 +74713,7 @@ function Jje({ 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)(t4, { name: "monitor" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [e.width,"×",e.height@@ -74696,11 +74721,11 @@ function Jje({ 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)(t4, { name: "hard-drive" }), /* @__PURE__ */ (0, I.jsx)("span", { children: r4(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)(t4, { name: "calendar" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.release_date })]}) : null,e.region_label ? /* @__PURE__ */ (0, I.jsxs)("button", {type: "button",@@ -74708,20 +74733,20 @@ function Jje({ 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)(t4, { 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)(Q2, {id: e.id,onOpened: () => i.toast("已请求打开本地播放器")}, e.id) : null,- /* @__PURE__ */ (0, I.jsx)(Qje, {+ /* @__PURE__ */ (0, I.jsx)($je, {item: e,helpers: r,actions: i}),- /* @__PURE__ */ (0, I.jsx)($je, {+ /* @__PURE__ */ (0, I.jsx)(eMe, {item: e,write: n,helpers: r,@@ -74733,7 +74758,7 @@ function Jje({ item: e, queue: t, write: n, helpers: r, actions: i }) {H.invalidateQueries({ queryKey: AP(e.id) });}}),- /* @__PURE__ */ (0, I.jsx)(eMe, { item: e }),+ /* @__PURE__ */ (0, I.jsx)(tMe, { item: e }),/* @__PURE__ */ (0, I.jsxs)("div", {"data-stage-actions": "","data-item-feedback": "",@@ -74747,7 +74772,7 @@ function Jje({ 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)(t4, { name: "thumbs-up" })}),/* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -74759,7 +74784,7 @@ function Jje({ 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)(t4, { name: "notebook-pen" })}),/* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -74770,7 +74795,7 @@ function Jje({ 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)(t4, { name: "thumbs-down" })}),/* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -74781,7 +74806,7 @@ function Jje({ 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)(t4, { name: "eye" })}),/* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -74792,7 +74817,7 @@ function Jje({ 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)(t4, { name: e.watch_later ? "check" : "bookmark-plus" })}),/* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -74801,7 +74826,7 @@ function Jje({ 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)(t4, { name: "playlist" })}),/* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -74812,7 +74837,7 @@ function Jje({ 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)(t4, { name: "sparkles" })}),/* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -74823,11 +74848,11 @@ function Jje({ 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)(t4, { name: "trash" })})]}),- /* @__PURE__ */ (0, I.jsx)(tMe, {+ /* @__PURE__ */ (0, I.jsx)(nMe, {item: e,open: s,write: n@@ -74838,7 +74863,7 @@ function Jje({ 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)(t4, { name: "sperm" }),/* @__PURE__ */ (0, I.jsx)("span", { children: "记一次高潮" }),/* @__PURE__ */ (0, I.jsx)("b", {className: "mono",@@ -74851,8 +74876,8 @@ function Jje({ item: e, queue: t, write: n, helpers: r, actions: i }) {})});}-function Yje({ 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) + Pue(e, t);+function Xje({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {+ let { text: a, expanded: o, foldable: s, toggle: c } = G2(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Pue(e, t);return /* @__PURE__ */ (0, I.jsx)("div", {"data-item-title": "",children: /* @__PURE__ */ (0, I.jsxs)("div", {@@ -74879,11 +74904,11 @@ function Yje({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {"aria-label": o ? "收起标题" : "展开标题",title: o ? "收起标题" : "展开完整标题",onClick: c,- children: /* @__PURE__ */ (0, I.jsx)(YH, {})+ children: /* @__PURE__ */ (0, I.jsx)(XH, {})}),e.has_cover && (e.cover_key || e.code) ? /* @__PURE__ */ (0, I.jsx)("span", {"data-cover-crop-host": "",- children: /* @__PURE__ */ (0, I.jsx)(zje, {+ children: /* @__PURE__ */ (0, I.jsx)(Bje, {code: e.cover_key || e.code || "",coverUrl: co(e),box: e.poster_box || null,@@ -74895,7 +74920,7 @@ function Yje({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {}})}) : null,- e.location === "online" ? null : /* @__PURE__ */ (0, I.jsx)(Xje, {+ e.location === "online" ? null : /* @__PURE__ */ (0, I.jsx)(Zje, {id: e.id,actions: r,onStatus: i@@ -74905,7 +74930,7 @@ function Yje({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {})});}-function Xje({ id: e, actions: t, onStatus: n }) {+function Zje({ 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 () => {@@ -74935,10 +74960,10 @@ function Xje({ 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)(t4, { name: "folder-sync" })})] });}-function Zje({ item: e, write: t }) {+function Qje({ item: e, write: t }) {let n = OP(e.rating);return /* @__PURE__ */ (0, I.jsxs)("div", {id: "detailRating",@@ -74964,10 +74989,10 @@ function Zje({ item: e, write: t }) {})]});}-function Qje({ item: e, actions: t }) {+function $je({ item: e, actions: t }) {let n = (0, F.useMemo)(() => Oue(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)(U2, {kind: e,person: n,onOpen: t.openEntity,@@ -74999,7 +75024,7 @@ function Qje({ 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)(t4, { name: "user-round" })}), /* @__PURE__ */ (0, I.jsx)("span", {"data-id-name": "",children: "未归属"@@ -75030,16 +75055,16 @@ function Qje({ 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)(W2, {people: n.series,onOpen: t.openEntity})]});}-function $je({ item: e, write: t, helpers: n, actions: r }) {+function eMe({ 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)(F2, {id: "detailTags",tags: kue(e, n),candidates: n.tagCandidates(),@@ -75052,7 +75077,7 @@ function $je({ item: e, write: t, helpers: n, actions: r }) {})});}-function eMe({ item: e }) {+function tMe({ item: e }) {let t = Rue(e);return /* @__PURE__ */ (0, I.jsxs)("div", {"data-item-trace": "",@@ -75087,7 +75112,7 @@ function eMe({ item: e }) {})]});}-function tMe({ item: e, open: t, write: n }) {+function nMe({ 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();@@ -75126,12 +75151,12 @@ function tMe({ item: e, open: t, write: n }) {})]});}-function nMe(e) {+function rMe(e) {let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = Pt({queryKey: wue(t.id, n),queryFn: async ({ signal: e }) => (await B(Eue(t.id, n), e)).items || []}), [o] = (0, F.useState)(() => r.relatedSkeletonHtml());- return /* @__PURE__ */ (0, I.jsx)(k2, {+ return /* @__PURE__ */ (0, I.jsx)(A2, {wireDrag: r.wireDrag,busy: a.isPending,empty: a.data?.length === 0,@@ -75152,10 +75177,10 @@ function nMe(e) {revision: 0,wireDrag: r.wireDrag,skeletonHtml: () => ""- }) : /* @__PURE__ */ (0, I.jsx)(t4, { html: o })+ }) : /* @__PURE__ */ (0, I.jsx)(n4, { html: o })});}-function rMe(e, t, n) {+function iMe(e, t, n) {let r = e.id, i = AP(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;@@ -75296,11 +75321,11 @@ function rMe(e, t, n) {};}// src/react/publication-cache.ts-var i4 = 864e5, a4 = (e) => {+var a4 = 864e5, o4 = (e) => {let t = new Date(e);return Date.UTC(t.getFullYear(), t.getMonth(), t.getDate());};-function o4(e) {+function s4(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));@@ -75308,25 +75333,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 iMe(e, t = Date.now()) {- let n = o4(e);- return n !== void 0 && a4(t) > n ? Infinity : i4;+function aMe(e, t = Date.now()) {+ let n = s4(e);+ return n !== void 0 && o4(t) > n ? Infinity : a4;}-function s4(e, t, n = Date.now()) {- return !Number.isFinite(e) || e <= 0 || e > n ? !1 : iMe(t, n) === Infinity ? a4(e) > o4(t) : n - e < i4;+function c4(e, t, n = Date.now()) {+ return !Number.isFinite(e) || e <= 0 || e > n ? !1 : aMe(t, n) === Infinity ? o4(e) > s4(t) : n - e < a4;}// src/react/wants/resource-cache.ts-var c4 = "peach.want-resources.v2";-function l4(e) {+var l4 = "peach.want-resources.v2";+function u4(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 d4(e, t, n) {+ return !!e && !e.cache_stale && (e.state === "error" || !u4(e) ? Date.now() - t < 6e4 : c4(t, n));}-function d4() {+function f4() {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(l4) || "[]");+ return Array.isArray(e) ? e.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.state === "ready" && Array.isArray(e.result.items) && u4(e.result) && e.result.items.every((e) => e && ["magnet","ed2k","url"@@ -75335,23 +75360,23 @@ function d4() {return [];}}-function aMe(e, t) {- let n = d4().find((t) => t.code === e);- return n && s4(n.saved, t) ? n : void 0;+function oMe(e, t) {+ let n = f4().find((t) => t.code === e);+ return n && c4(n.saved, t) ? n : void 0;}-function oMe(e) {- let t = new Map(d4().map((e) => [e.code, e])), n = /* @__PURE__ */ new Map();+function sMe(e) {+ let t = new Map(f4().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 && c4(e.saved, r.release_date) && n.set(r.code, e.result.items.some((e) => e.protocol === "magnet"));}return n;}-function sMe(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 cMe(e, t) {+ if (t.state === "ready" && u4(t)) try {+ let n = f4().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");+ localStorage.setItem(l4, JSON.stringify([{code: e,saved: Number.isFinite(r) ? r : Date.now(),result: t@@ -75359,15 +75384,15 @@ function sMe(e, t) {} catch {}}// src/react/wants/resource-display.ts-function cMe(e) {+function lMe(e) {let t = /^([\d,]+)\s*B$/i.exec(e.trim());return /^[\d,.]+$/.test(e.trim()) ? "大小未知" : t ? Yn(Number(t[1].replaceAll(",", ""))) : e || "大小未知";}-function lMe(e) {+function uMe(e) {return /^更多评论.*(?:VIP|官方 App)/.test(e) ? "来源只返回了部分评论,资源链接可能不完整。" : e;}// src/react/wants/want-magnets.tsx-function f4({ icon: e, children: t, title: n }) {+function p4({ icon: e, children: t, title: n }) {return /* @__PURE__ */ (0, I.jsxs)("span", {title: n,className: "inline-flex items-center gap-1",@@ -75377,8 +75402,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 = AH(), p = ae(), m = (0, F.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, F.useMemo)(() => aMe(h, e.release_date), [h, e.release_date]);+function m4({ 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 = jH(), p = ae(), m = (0, F.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, F.useMemo)(() => oMe(h, e.release_date), [h, e.release_date]);(0, F.useEffect)(() => {if (!s.current || c) return;let e = new IntersectionObserver((t) => {@@ -75398,22 +75423,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 B(`${r}${n ? `${r.includes("?") ? "&" : "?"}refresh=1` : ""}`, t);- return m.current = n && i.state === "busy", sMe(h, i), i;+ return m.current = n && i.state === "busy", cMe(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) => d4(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) => !d4(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) && AW(e.id, _.data.items.some((e) => e.protocol === "magnet"));+ !o && _.data && (_.data.state === "ready" || _.data.items.length > 0) && jW(e.id, _.data.items.some((e) => e.protocol === "magnet"));}, [_.data,o,@@ -75421,7 +75446,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 V(dW, {+ let n = await V(fW, {magnet: r.uri,provider: v.key,target: v.target,@@ -75432,7 +75457,7 @@ function p4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourcif (!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: fW });+ d((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), p.invalidateQueries({ queryKey: pW });});}, b = (e) => {f.run(`copy:${e.id}`, () => navigator.clipboard.writeText(e.uri), () => i("已复制链接"));@@ -75451,22 +75476,22 @@ function p4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourcvariant: "secondary",size: "small",leadingIcon: cV,- ...AV(x),+ ...jV(x),onClick: () => {x || (m.current = !0, _.refetch());},children: "重新查询"})]}),- x ? /* @__PURE__ */ (0, I.jsx)(UH, { label: "正在查找资源链接" }) : null,- S ? /* @__PURE__ */ (0, I.jsx)(TV, {+ x ? /* @__PURE__ */ (0, I.jsx)(WH, { label: "正在查找资源链接" }) : null,+ S ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "error",title: "资源链接未取得",children: S}) : null,- _.data?.warnings?.map((e) => /* @__PURE__ */ (0, I.jsx)(TV, {+ _.data?.warnings?.map((e) => /* @__PURE__ */ (0, I.jsx)(EV, {tone: "neutral",- children: lMe(e)+ children: uMe(e)}, e)),_.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, I.jsx)(zL, {variant: "secondary",@@ -75478,11 +75503,11 @@ function p4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourcrel: "noopener noreferrer",children: "查看来源页"}) : null,- _.data?.state === "ready" && !_.data.items.length && !_.data.warnings?.length ? /* @__PURE__ */ (0, I.jsx)(TV, {+ _.data?.state === "ready" && !_.data.items.length && !_.data.warnings?.length ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "neutral",children: "暂未找到资源链接。"}) : null,- f.error ? /* @__PURE__ */ (0, I.jsx)(TV, {+ f.error ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "error",title: "操作未完成",children: f.error@@ -75497,7 +75522,7 @@ function p4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourcclassName: "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)(lW, {+ children: [/* @__PURE__ */ (0, I.jsx)(uW, {variant: "caption",color: e.protocol === "magnet" ? "blue" : e.protocol === "ed2k" ? "purple" : "neutral",children: e.protocol === "magnet" ? "磁链" : e.protocol === "ed2k" ? "ED2K" : "网页链接"@@ -75511,25 +75536,25 @@ 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, {+ /* @__PURE__ */ (0, I.jsx)(p4, {icon: qhe,children: e.source}),- /* @__PURE__ */ (0, I.jsx)(f4, {+ /* @__PURE__ */ (0, I.jsx)(p4, {icon: tV,title: `来源大小:${e.size}`,- children: cMe(e.size)+ children: lMe(e.size)}),- e.files ? /* @__PURE__ */ (0, I.jsx)(f4, {+ e.files ? /* @__PURE__ */ (0, I.jsx)(p4, {icon: Rhe,children: e.files.replaceAll("個", "个")}) : null,- /* @__PURE__ */ (0, I.jsx)(f4, {+ /* @__PURE__ */ (0, I.jsx)(p4, {icon: Dhe,title: e.source === "JavDB 评论" ? "评论日期" : "收录日期",children: e.date ? e.date.slice(0, 10) : "日期未知"}),- e.attributes.filter((e) => e !== "高清").map((e) => /* @__PURE__ */ (0, I.jsx)(f4, {+ e.attributes.filter((e) => e !== "高清").map((e) => /* @__PURE__ */ (0, I.jsx)(p4, {icon: sV,children: e}, e))@@ -75553,17 +75578,17 @@ function p4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourcvariant: "secondary",size: "small",leadingIcon: Ihe,- ...AV(f.busy === `copy:${e.id}`),+ ...jV(f.busy === `copy:${e.id}`),onClick: () => b(e),children: "复制链接"}),e.protocol === "magnet" ? /* @__PURE__ */ (0, I.jsx)(J, {variant: "primary",size: "small",- leadingIcon: v ? SU(v.key) : Mhe,+ leadingIcon: v ? CU(v.key) : Mhe,title: v ? `下载到 ${v.label}` : void 0,disabled: t || !n?.available || !v || r,- ...AV(f.busy === e.id),+ ...jV(f.busy === e.id),onClick: () => y(e),children: r ? "已添加" : "添加下载"}) : null@@ -75574,7 +75599,7 @@ function p4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourcreturn /* @__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)(yU, {+ }), 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",@@ -75586,10 +75611,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 h4 = "peach.jav-reviews.v2";+function g4() {try {- let e = localStorage.getItem(m4) || "[]";+ let e = localStorage.getItem(h4) || "[]";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")) : [];@@ -75597,21 +75622,21 @@ function h4() {return [];}}-function uMe(e, t) {+function dMe(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);+ }, ...g4().filter((n) => n.code !== e || n.result.page !== t.page)].slice(0, 128), i = JSON.stringify(r);+ i.length <= 2e6 && localStorage.setItem(h4, i);} catch {}}-function dMe(e, t) {- let n = h4(), r = [], i = Infinity;+function fMe(e, t) {+ let n = g4(), 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 || !c4(o.saved, t) || (r.push(o.result), i = Math.min(i, o.saved), !o.result.more)) break;}return r.length ? {pages: r,@@ -75619,16 +75644,16 @@ function dMe(e, t) {saved: i} : void 0;}-function fMe(e, t, n) {- return e.length > 0 && e.every((e) => e.ok && !e.cache_stale && s4(Date.parse(e.checked_at || "") || t, n));+function pMe(e, t, n) {+ return e.length > 0 && e.every((e) => e.ok && !e.cache_stale && c4(Date.parse(e.checked_at || "") || t, n));}// src/react/jav-detail/jav-detail-page.tsx-function pMe(e) {+function mMe(e) {let t = (0, F.useRef)(!1), n = Pt({- queryKey: K2(e.code),+ queryKey: q2(e.code),queryFn: ({ signal: n }) => {let r = t.current;- return t.current = !1, q2(e.code, n, r);+ return t.current = !1, J2(e.code, n, r);},staleTime: 216e5}), r = () => {@@ -75638,21 +75663,21 @@ function pMe(e) {"data-jav-detail": "","data-item-detail": "","data-stage-grid": "",- children: n.data ? /* @__PURE__ */ (0, I.jsx)(mMe, {+ children: n.data ? /* @__PURE__ */ (0, I.jsx)(hMe, {...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)(fK, {+ children: [/* @__PURE__ */ (0, I.jsx)(_4, { close: e.actions.close }), n.error ? /* @__PURE__ */ (0, I.jsx)(fK, {message: cr(n.error),onRetry: r}) : null]})});}-var g4 = ({ close: e }) => /* @__PURE__ */ (0, I.jsx)("button", {+var _4 = ({ close: e }) => /* @__PURE__ */ (0, I.jsx)("button", {type: "button","data-stage-close": "",id: "closeStage",@@ -75661,7 +75686,7 @@ var g4 = ({ close: e }) => /* @__PURE__ */ (0, I.jsx)("button", {onClick: e,dangerouslySetInnerHTML: { __html: R("x") }});-function mMe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a }) {+function hMe({ 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)(() => {@@ -75681,13 +75706,13 @@ function mMe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: alabel: "视频预览",video: !0}] : []- ], [l, u] = (0, F.useState)(null), [d, f] = (0, F.useState)(t.want_id), p = AH(), m = () => {- p.run("want", async (e) => d ? (await NW([d], e), null) : (await MW({ code: t.code }, e)).want.id, (t) => {- f(t), H.setQueryData(K2(e), (e) => e && {+ ], [l, u] = (0, F.useState)(null), [d, f] = (0, F.useState)(t.want_id), p = jH(), m = () => {+ p.run("want", async (e) => d ? (await PW([d], e), null) : (await NW({ code: t.code }, e)).want.id, (t) => {+ f(t), H.setQueryData(q2(e), (e) => e && {...e,wanted: !!t,want_id: t- }), n.receipt(t ? "已加入想要" : "已取消想要"), FW(), H.invalidateQueries({ queryKey: ["feed-new"] }), H.invalidateQueries({ queryKey: ["jav-discoveries"] });+ }), n.receipt(t ? "已加入想要" : "已取消想要"), IW(), H.invalidateQueries({ queryKey: ["feed-new"] }), H.invalidateQueries({ queryKey: ["jav-discoveries"] });});};return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [@@ -75696,19 +75721,19 @@ function mMe({ 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)(_4, { 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)(v4, { name: o === -2 ? "image" : "play" }), o === -2 ? "查看图片" : "视频预览"]}) : null,- o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, I.jsx)(_Me, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, I.jsx)(GQ, {+ o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, I.jsx)(vMe, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, I.jsx)(GQ, {item: t,image: o === -1 ? "cover" : String(o)}, t.code),- /* @__PURE__ */ (0, I.jsx)(j2, {+ /* @__PURE__ */ (0, I.jsx)(M2, {items: c,position: Math.max(0, c.findIndex((e) => e.index === o)),onSelect: s,@@ -75727,33 +75752,33 @@ function mMe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a"data-stage-side-content": "","data-jav-info": "",children: [- /* @__PURE__ */ (0, I.jsx)(hMe, { item: t }),- Number(t.score) > 0 ? /* @__PURE__ */ (0, I.jsx)(y4, { score: Number(t.score) }) : null,+ /* @__PURE__ */ (0, I.jsx)(gMe, { item: t }),+ Number(t.score) > 0 ? /* @__PURE__ */ (0, I.jsx)(b4, { 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)(y4, {glyph: "calendar",label: "发行日期",value: t.release_date- }), /* @__PURE__ */ (0, I.jsx)(v4, {+ }), /* @__PURE__ */ (0, I.jsx)(y4, {glyph: "clock",label: "时长",value: t.duration ? `${t.duration} 分钟` : void 0})]}),- /* @__PURE__ */ (0, I.jsx)(gMe, {+ /* @__PURE__ */ (0, I.jsx)(_Me, {item: t,navigate: n.navigate}),/* @__PURE__ */ (0, I.jsxs)("div", {"data-jav-facts": "",- children: [/* @__PURE__ */ (0, I.jsx)(v4, {+ children: [/* @__PURE__ */ (0, I.jsx)(y4, {glyph: "briefcase",label: "发行商",value: t.publisher- }), /* @__PURE__ */ (0, I.jsx)(v4, {+ }), /* @__PURE__ */ (0, I.jsx)(y4, {glyph: "clapperboard",label: "导演",value: t.director@@ -75785,11 +75810,11 @@ function mMe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: alang: oL(t.summary),children: t.summary}) : null,- t.message ? /* @__PURE__ */ (0, I.jsx)(TV, {+ t.message ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "neutral",action: /* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",- ...AV(a),+ ...jV(a),onClick: i,children: "立即重试"}),@@ -75811,7 +75836,7 @@ function mMe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: avariant: "secondary",disabled: r,"aria-pressed": !!d,- ...AV(!!p.busy),+ ...jV(!!p.busy),onClick: m,children: d ? "取消想要" : "想要"}),@@ -75829,16 +75854,16 @@ function mMe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a})]}),- p.error ? /* @__PURE__ */ (0, I.jsx)(TV, {+ p.error ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "error",children: p.error}) : null,- /* @__PURE__ */ (0, I.jsx)(vMe, {+ /* @__PURE__ */ (0, I.jsx)(yMe, {code: t.code,count: t.comments_count,released: t.release_date}),- /* @__PURE__ */ (0, I.jsx)(yMe, {+ /* @__PURE__ */ (0, I.jsx)(bMe, {item: t,actions: n,readOnly: r@@ -75846,24 +75871,24 @@ function mMe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a]})}),- /* @__PURE__ */ (0, I.jsx)(SW, {+ /* @__PURE__ */ (0, I.jsx)(CW, {prefill: l,close: () => u(null),receipt: n.receipt})] });}-var _4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {+var v4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {className: "contents","aria-hidden": "true",dangerouslySetInnerHTML: { __html: R(e) }-}), v4 = ({ glyph: e, label: t, value: n }) => n ? /* @__PURE__ */ (0, I.jsxs)("span", {+}), y4 = ({ 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)(v4, { name: e }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]}) : null;-function hMe({ item: e }) {- let { text: t, expanded: n, foldable: r, toggle: i } = W2(e.title), a = e.title === e.code ? "" : e.title;+function gMe({ item: e }) {+ let { text: t, expanded: n, foldable: r, toggle: i } = G2(e.title), a = e.title === e.code ? "" : e.title;return /* @__PURE__ */ (0, I.jsxs)("div", {"data-item-title": "",children: [/* @__PURE__ */ (0, I.jsx)("h1", {@@ -75893,12 +75918,12 @@ function hMe({ item: e }) {"aria-label": n ? "收起标题" : "展开标题",title: n ? "收起标题" : "展开完整标题",onClick: i,- children: /* @__PURE__ */ (0, I.jsx)(YH, {})+ children: /* @__PURE__ */ (0, I.jsx)(XH, {})})})]});}-function y4({ score: e, review: t = !1 }) {+function b4({ score: e, review: t = !1 }) {return /* @__PURE__ */ (0, I.jsxs)("div", {"data-item-rating": "","data-jav-rating": "",@@ -75911,7 +75936,7 @@ function y4({ score: e, review: t = !1 }) {})]});}-function gMe({ item: e, navigate: t }) {+function _Me({ item: e, navigate: t }) {let n = (e, n) => t(Nn(e, n)), r = (t, r, i, a) => i.length ? /* @__PURE__ */ (0, I.jsxs)("section", {"data-id-group": t,"data-id-gender": a,@@ -75920,7 +75945,7 @@ function gMe({ 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)(U2, {kind: t,person: {...r,@@ -75944,7 +75969,7 @@ function gMe({ 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)(W2, {people: e.series_refs.map((e) => ({...e,id: e.id ?? null@@ -75953,7 +75978,7 @@ function gMe({ item: e, navigate: t }) {})]});}-function _Me({ src: e }) {+function vMe({ 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");@@ -75964,7 +75989,7 @@ function _Me({ src: e }) {}, [e, i]), /* @__PURE__ */ (0, I.jsx)("div", {ref: t,"data-jav-video": "",- children: n ? /* @__PURE__ */ (0, I.jsx)(TV, {+ children: n ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "neutral",action: /* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",@@ -75977,8 +76002,8 @@ function _Me({ src: e }) {}) : null});}-function vMe({ code: e, count: t, released: n }) {- let r = ae(), [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => dMe(e, n), [e, n]), s = (0, F.useRef)(!1), c = It({+function yMe({ code: e, count: t, released: n }) {+ let r = ae(), [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => fMe(e, n), [e, n]), s = (0, F.useRef)(!1), c = It({queryKey: ["jav-reviews", e],enabled: i,initialPageParam: 1,@@ -75987,12 +76012,12 @@ function vMe({ code: e, count: t, released: n }) {pageParams: o.pageParams} : void 0,initialDataUpdatedAt: o?.saved,- staleTime: (e) => fMe(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,+ staleTime: (e) => pMe(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,gcTime: 864e5,refetchOnWindowFocus: !1,queryFn: async ({ signal: t, pageParam: n }) => {- let i = await Mje(e, n, t, s.current);- if (uMe(e, i), !i.ok || i.cache_stale) {+ let i = await Nje(e, n, t, s.current);+ if (dMe(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,@@ -76002,7 +76027,7 @@ function vMe({ code: e, count: t, released: n }) {}return i;},- getNextPageParam: Nje+ getNextPageParam: Pje});(0, F.useEffect)(() => {c.isFetching || (s.current = !1);@@ -76010,7 +76035,7 @@ function vMe({ 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 ? cr(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)(yU, {+ children: /* @__PURE__ */ (0, I.jsxs)(bU, {trailing: !0,summary: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Ohe, { "aria-hidden": !0 }),@@ -76050,7 +76075,7 @@ function vMe({ 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)(b4, {score: Number(e.score),review: !0}) : null,@@ -76066,24 +76091,24 @@ function vMe({ code: e, count: t, released: n }) {children: e.content})]}, e.id)),- d ? /* @__PURE__ */ (0, I.jsx)(TV, {+ d ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "neutral",action: /* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",- ...AV(c.isFetching),+ ...jV(c.isFetching),onClick: () => {s.current = !0, c.refetch();},children: "立即重试"}),children: d- }) : !c.isPending && !u.length ? /* @__PURE__ */ (0, I.jsx)(TV, {+ }) : !c.isPending && !u.length ? /* @__PURE__ */ (0, I.jsx)(EV, {tone: "neutral",children: "暂无评论"}) : null,!d && l.length ? /* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",- ...AV(c.isFetching),+ ...jV(c.isFetching),onClick: () => {s.current = !0, c.refetch();},@@ -76091,13 +76116,13 @@ function vMe({ code: e, count: t, released: n }) {}) : null,c.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",- ...AV(c.isFetchingNextPage),+ ...jV(c.isFetchingNextPage),onClick: () => {c.isFetchingNextPage || c.fetchNextPage();},children: "更多评论"}) : null,- !d && l.at(-1)?.page === 8 && t > u.length ? /* @__PURE__ */ (0, I.jsxs)(TV, {+ !d && l.at(-1)?.page === 8 && t > u.length ? /* @__PURE__ */ (0, I.jsxs)(EV, {tone: "neutral",children: ["已显示 ",@@ -76109,21 +76134,21 @@ function vMe({ code: e, count: t, released: n }) {})});}-function yMe({ item: e, actions: t, readOnly: n }) {+function bMe({ item: e, actions: t, readOnly: n }) {let [r, i] = (0, F.useState)(!1), a = Pt({- queryKey: fW,+ queryKey: pW,enabled: r,- queryFn: ({ signal: e }) => B(`${dW}?limit=50`, e)+ queryFn: ({ signal: e }) => B(`${fW}?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)(yU, {+ 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)(v4, { name: "link" }), "资源"] }),onOpenChange: (e) => {i(e), e && c(!0);},- children: s ? /* @__PURE__ */ (0, I.jsx)(p4, {+ children: s ? /* @__PURE__ */ (0, I.jsx)(m4, {want: {id: 0,code: e.code,@@ -76140,31 +76165,31 @@ function yMe({ 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 bMe(e, t) {- b4 = e, O4 = () => t.isOpen(), D4 = () => t.requestClose(), Tle({+var x4 = null, S4 = null, C4 = null, w4 = null, T4 = null, E4 = !1, D4 = 0, O4 = null, k4 = () => !1, A4 = (e, t, n) => `${e}:${t}:${n ?? ""}`;+function xMe(e, t) {+ x4 = e, k4 = () => t.isOpen(), O4 = () => t.requestClose(), Tle({...e.player,stage: () => document.getElementById("stage")}), Ele({- 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", () => aP()));-}-var A4 = !1;-function j4() {- if (!b4) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");- return b4;-}-function M4(e) {- C4 = e;-}-var xMe = () => 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 CMe(e, x4);- x4 && J4();+ inMiniplayer: (e) => S4?.player === e,+ kind: (e) => S4?.player === e ? S4.kind : C4?.kind ?? w4?.kind ?? "item",+ expand: () => X4(),+ toMiniplayer: () => Z4()+ }), j4 || (j4 = !0, addEventListener("pagehide", () => aP()));+}+var j4 = !1;+function M4() {+ if (!x4) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");+ return x4;+}+function N4(e) {+ w4 = e;+}+var SMe = () => w4;+function P4(e, t) {+ let { kind: n, item: r, media: i = null } = t, a = A4(n, r.id, i?.index ?? null);+ if (S4 && S4.key === a) return wMe(e, S4);+ S4 && Y4();let o = {player: null,kind: n,@@ -76172,7 +76197,7 @@ function N4(e, t) {mediaIndex: i?.index ?? null,key: a};- S4 = o;+ C4 = 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 = vP(s, {@@ -76182,42 +76207,42 @@ function N4(e, t) {autoplay: t.autoplay,resume: t.resume ?? null,onPlayer: (e) => {- S4 === o && (o.player = e);+ C4 === o && (o.player = e);},- handedOff: (e) => x4?.player === e+ handedOff: (e) => S4?.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()), aP());+ let e = !!o.player && S4?.player === o.player;+ C4 === o && (C4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), aP());};}-async function SMe(e, t, n) {+async function CMe(e, t, n) {let r = await wn(`/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 M4().player.loadSourceStatus();+ if (n.throwIfAborted(), i[String(r.root_id || r.location || "")] === !1) throw Error(M4().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, {+ N4(a);+ let o = P4(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 && w4 === a && I4(!0), o(), w4 === a && N4(null));};}-function CMe(e, t) {+function wMe(e, t) {let { player: n } = t;- K4(t), x4 = null, q4(), n.el().classList.remove("vjs-peach-mini"), gP(e), e.append(n.el()), lN(n);+ q4(t), S4 = null, J4(), n.el().classList.remove("vjs-peach-mini"), gP(e), e.append(n.el()), lN(n);let r = {player: n,kind: t.kind,@@ -76225,23 +76250,23 @@ function CMe(e, t) {mediaIndex: t.mediaIndex,key: t.key};- S4 = r;+ C4 = r;let i = _P(n, e);return uN(n), () => {- S4 === r && (S4 = null), i(), x4?.player !== n && (cN() === n && lN(null), XN(n), aP());+ C4 === r && (C4 = null), i(), S4?.player !== n && (cN() === n && lN(null), XN(n), aP());};}-var P4 = () => {- let e = S4?.player;+var F4 = () => {+ let e = C4?.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()) && DMe({+function I4(e) {+ let t = E4;+ E4 = !1, S4?.pending && Y4();+ let n = C4, r = n?.player, i = w4;+ if (!n || !r || r.isDisposed() || !i || !T4) return;+ let a = M4().player.settings();+ (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && OMe({player: r,kind: n.kind,item: n.item,@@ -76249,46 +76274,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 L4(e) {- w4 = e, w4 && W4();+function L4(e, t) {+ E4 = !1, S4 && (S4.kind === e && S4.item.id === t ? (S4.pending = !0, J4()) : Y4());}-var R4 = () => !!x4 && !x4.pending && !x4.player.isDisposed();-function wMe() {- return R4() ? w4?.frame.querySelector("video") ?? null : null;+function R4(e) {+ T4 = e, T4 && G4();}+var z4 = () => !!S4 && !S4.pending && !S4.player.isDisposed();function TMe() {- return O4() ? document.getElementById("stage")?.querySelector("video") ?? null : P4()?.el().querySelector("video") ?? wMe();+ return z4() ? T4?.frame.querySelector("video") ?? null : null;+}+function EMe() {+ return k4() ? document.getElementById("stage")?.querySelector("video") ?? null : F4()?.el().querySelector("video") ?? TMe();}-function z4(e) {- w4 && (w4.title.textContent = e.title || "", w4.sub.textContent = e.sub || "", w4.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));+function B4(e) {+ T4 && (T4.title.textContent = e.title || "", T4.sub.textContent = e.sub || "", T4.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 V4(e = S4?.item) {+ if (!T4) return;+ let t = T4.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;+ T4.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);}-function V4() {- let e = x4?.player;- if (!e || e.isDisposed() || !w4) return;+function H4() {+ let e = S4?.player;+ if (!e || e.isDisposed() || !T4) return;let t = e.paused();- w4.play.setAttribute("aria-label", t ? "播放" : "暂停"), w4.play.querySelector("[data-icon-swap]") || (w4.play.innerHTML = Gs("player-pause", "player-play", t ? "b" : "a")), Ks(w4.play, t ? "b" : "a");+ T4.play.setAttribute("aria-label", t ? "播放" : "暂停"), T4.play.querySelector("[data-icon-swap]") || (T4.play.innerHTML = Gs("player-pause", "player-play", t ? "b" : "a")), Ks(T4.play, t ? "b" : "a");}-function H4() {- let e = x4?.player;- if (!e || e.isDisposed() || !w4) return;- let t = Kn(x4?.item.duration) || Kn(e.duration());- w4.time.textContent = `${Jn(e.currentTime())} / ${t ? Jn(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 U4() {+ let e = S4?.player;+ if (!e || e.isDisposed() || !T4) return;+ let t = Kn(S4?.item.duration) || Kn(e.duration());+ T4.time.textContent = `${Jn(e.currentTime())} / ${t ? Jn(t) : "0:00"}`;+}+var W4 = () => Math.max(1, Number(M4().player.settings().seekSeconds) || 10);+function G4() {+ if (!T4 || !x4) return;+ let e = W4();+ for (let [t, n] of [[T4.back, `后退 ${e} 秒`], [T4.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;+}+function K4(e) {let t = (t, n) => {e.player.on(t, n), e.off.push(() => {try {@@ -76300,17 +76325,17 @@ function G4(e) {"play","pause","ended"- ], V4), t([+ ], H4), t(["timeupdate","durationchange","loadedmetadata"- ], H4), t("loadedmetadata", () => B4()), V4(), H4(), B4(), W4();+ ], U4), t("loadedmetadata", () => V4()), H4(), U4(), V4(), G4();}-function K4(e) {+function q4(e) {e.off.forEach((e) => e()), e.off = [];}-function EMe() {- let e = w4?.root;+function DMe() {+ let e = T4?.root;if (!e) return;let t = e.hidden;if (e.hidden = !1, !t) return;@@ -76318,8 +76343,8 @@ function EMe() {let n = () => e.removeAttribute("data-miniplayer-enter");e.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 500);}-function q4() {- let e = w4?.root;+function J4() {+ let e = T4?.root;if (e) {e.hidden = !0;for (let t of [@@ -76330,73 +76355,73 @@ function q4() {e.style.transform = "";}}-function DMe(e, t) {- if (!w4) return;+function OMe(e, t) {+ if (!T4) 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), EMe(), uN(e.player);-}-function J4() {- let e = x4;- e && K4(e), x4 = null, E4++;- let t = e?.player ?? null;- t && cN() === t && lN(null), XN(t), t && aP(), w4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), oN(), q4();+ S4 = n, D4++, e.player.el().classList.add("vjs-peach-mini"), T4.frame.prepend(e.player.el()), B4(t), K4(n), DMe(), uN(e.player);}function Y4() {- if (!R4() || !x4) return;- let { kind: e, item: t, mediaIndex: n } = x4;- j4().expand(e, t.id, n);+ let e = S4;+ e && q4(e), S4 = null, D4++;+ let t = e?.player ?? null;+ t && cN() === t && lN(null), XN(t), t && aP(), T4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), oN(), J4();}function X4() {- R4() && !O4() ? Y4() : O4() && P4() && D4 && (T4 = !0, D4());+ if (!z4() || !S4) return;+ let { kind: e, item: t, mediaIndex: n } = S4;+ M4().expand(e, t.id, n);}-function OMe() {- let e = x4?.player;+function Z4() {+ z4() && !k4() ? X4() : k4() && F4() && O4 && (E4 = !0, O4());+}+function kMe() {+ let e = S4?.player;e && !e.isDisposed() && (e.paused() ? e.play()?.catch(() => {}) : e.pause());}-function Z4(e) {- let t = x4?.player;+function Q4(e) {+ let t = S4?.player;if (!t || t.isDisposed()) return;- let n = Kn(t.duration()) || Kn(x4?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + U4() * e);+ let n = Kn(t.duration()) || Kn(S4?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + W4() * 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 kMe(e) {- if (!R4() || !x4 || !w4) return;- let t = ++E4, n = await wn(`/api/item?id=${e}`).catch(() => null);- if (t !== E4 || !R4() || !x4 || !w4 || !n || n.error) return;- if (!Q4(n)) {- j4().openItem(e);+function $4(e) {+ return !(!z4() || !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 || M4().sourceOffline(String(e.root_id || e.location || "")));+}+async function AMe(e) {+ if (!z4() || !S4 || !T4) return;+ let t = ++D4, n = await wn(`/api/item?id=${e}`).catch(() => null);+ if (t !== D4 || !z4() || !S4 || !T4 || !n || n.error) return;+ if (!$4(n)) {+ M4().openItem(e);return;}- let r = x4;- K4(r), cN() === r.player && lN(null), XN(r.player), aP(), w4.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());+ let r = S4;+ q4(r), cN() === r.player && lN(null), XN(r.player), aP(), T4.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", T4.frame.prepend(i);let a = {kind: "item",item: n,title: String(n.title || n.name || ""),sub: String(n.performers?.[0] || n.creator || "未归属")};- z4(a), vP(i, {+ B4(a), vP(i, {kind: "item",item: n,autoplay: !0,chrome: !1,onPlayer: (r) => {- if (t !== E4) {+ if (t !== D4) {r && cN() === r && lN(null), XN(r);return;}if (!r) {- J4(), j4().openItem(e);+ Y4(), M4().openItem(e);return;}r.el().classList.add("vjs-peach-mini");@@ -76405,25 +76430,25 @@ async function kMe(e) {kind: "item",item: n,mediaIndex: null,- key: k4("item", n.id, null),+ key: A4("item", n.id, null),meta: a,off: [],pending: !1};- x4 = i, G4(i);+ S4 = i, K4(i);}- }), B4(n);+ }), V4(n);}// src/react/stage/miniplayer.tsx-var $4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {+var e3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {viewBox: "0 0 24 24","aria-hidden": "true",children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })-}), AMe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, e3 = (e) => (t) => {+}), jMe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, t3 = (e) => (t) => {t.stopPropagation(), e();-}, jMe = (0, F.memo)(function() {+}, MMe = (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)(() => (R4({root: e.current,frame: n.current,play: r.current,@@ -76433,7 +76458,7 @@ var $4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {title: s.current,sub: c.current,info: l.current- }), () => L4(null)), []), (0, F.useEffect)(() => NMe(e.current, t.current), []), /* @__PURE__ */ (0, I.jsx)("aside", {+ }), () => R4(null)), []), (0, F.useEffect)(() => PMe(e.current, t.current), []), /* @__PURE__ */ (0, I.jsx)("aside", {ref: e,"data-miniplayer": "",id: "miniplayer",@@ -76457,24 +76482,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: t3(X4),+ children: /* @__PURE__ */ (0, I.jsx)(e3, { 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: t3(Y4),+ children: /* @__PURE__ */ (0, I.jsx)(e3, { 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: t3(() => Q4(-1)),+ children: /* @__PURE__ */ (0, I.jsx)(e3, { name: "rotate-ccw" })}),/* @__PURE__ */ (0, I.jsx)("button", {ref: r,@@ -76483,16 +76508,16 @@ var $4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {id: "miniplayerPlay","aria-label": "暂停","aria-keyshortcuts": "k",- onClick: e3(OMe),- dangerouslySetInnerHTML: AMe+ onClick: t3(kMe),+ dangerouslySetInnerHTML: jMe}),/* @__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: t3(() => Q4(1)),+ children: /* @__PURE__ */ (0, I.jsx)(e3, { name: "rotate-cw" })}),/* @__PURE__ */ (0, I.jsx)("span", {ref: i,@@ -76509,7 +76534,7 @@ var $4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {"data-miniplayer-info": "",id: "miniplayerInfo","aria-label": "展开到详情",- onClick: () => Y4(),+ onClick: () => X4(),children: [/* @__PURE__ */ (0, I.jsx)("span", {ref: s,"data-miniplayer-title": "",@@ -76523,7 +76548,7 @@ var $4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {})});});-function MMe(e, t, n) {+function NMe(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@@ -76545,7 +76570,7 @@ function MMe(e, t, n) {};e.addEventListener("transitionend", u), setTimeout(u, 600);}-function NMe(e, t) {+function PMe(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 = {@@ -76571,7 +76596,7 @@ function NMe(e, t) {} catch {}i.moved && (e.dataset.dragged = "1", setTimeout(() => {delete e.dataset.dragged;- }, 0), MMe(e, i.dx, i.dy));+ }, 0), NMe(e, i.dx, i.dy));}, o = (t) => {e.dataset.dragged && (t.stopPropagation(), t.preventDefault());}, s = (e) => {@@ -76582,57 +76607,57 @@ function NMe(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 n3 = null, r3 = null, i3 = null, a3 = /* @__PURE__ */ new Set(), o3 = 0, s3 = null, c3 = !1, l3 = !1, u3 = () => {let e = document.getElementById("stage");return e instanceof HTMLDialogElement ? e : null;};-function u3() {- if (!t3) throw Error("舞台还没有接上宿主(configureStage)");- return t3;+function d3() {+ if (!n3) throw Error("舞台还没有接上宿主(configureStage)");+ return n3;}-function PMe(e) {- return i3.add(e), () => {- i3.delete(e);+function FMe(e) {+ return a3.add(e), () => {+ a3.delete(e);};}-function FMe() {- for (let e of [...i3]) e();+function IMe() {+ for (let e of [...a3]) e();}-function d3() {- (0, Lt.flushSync)(FMe);+function f3() {+ (0, Lt.flushSync)(IMe);}-function IMe({ view: e }) {- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e ? /* @__PURE__ */ (0, I.jsx)(LMe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, I.jsx)(jMe, {})] });+function LMe({ view: e }) {+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e ? /* @__PURE__ */ (0, I.jsx)(RMe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, I.jsx)(MMe, {})] });}-var f3 = () => /* @__PURE__ */ (0, I.jsx)("div", {+var p3 = () => /* @__PURE__ */ (0, I.jsx)("div", {"data-skeleton": "detail",role: "status","aria-label": "正在读取作品详情",- dangerouslySetInnerHTML: { __html: KAe() }+ dangerouslySetInnerHTML: { __html: qAe() }});-function p3(e) {+function m3(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 && YAe(e);+function h3() {+ let e = u3(), t = e && XAe(e);t ? (t.focus({ preventScroll: !0 }), t.dispatchEvent(new KeyboardEvent("keydown", {key: "Escape",bubbles: !0,cancelable: !0- }))) : h3();+ }))) : g3();}-function LMe({ view: e }) {+function RMe({ 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(), h3());};return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);}, []);- let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, I.jsx)(Vje, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, I.jsx)(pMe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, I.jsx)(Sje, { ...r.props }, r.props.id);+ let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, I.jsx)(Hje, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, I.jsx)(mMe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, I.jsx)(Cje, { ...r.props }, r.props.id);return /* @__PURE__ */ (0, I.jsxs)("dialog", {ref: t,id: "stage",@@ -76640,27 +76665,27 @@ function LMe({ 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(), h3());},onPointerDown: (e) => {- c3 = p3(e);+ l3 = m3(e);},onClick: (e) => {- c3 && p3(e) && h3();+ l3 && m3(e) && g3();},children: [- n === "skeleton" ? /* @__PURE__ */ (0, I.jsx)(f3, {}, "skeleton") : null,+ n === "skeleton" ? /* @__PURE__ */ (0, I.jsx)(p3, {}, "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)(p3, {})}, "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)(ND, {- getContainer: () => p2(t.current),+ getContainer: () => m2(t.current),children: i})})@@ -76668,14 +76693,14 @@ function LMe({ view: e }) {]});}-function h3() {- n3 && !s3 && (s3 = !0, n3.request.actions.close());+function g3() {+ r3 && !c3 && (c3 = !0, r3.request.actions.close());}-function g3(e, t) {- let n = l3();+function _3(e, t) {+ let n = u3();n?.toggleAttribute("data-ambient", e), n?.toggleAttribute("data-theater", t);}-function _3(e) {+function v3(e) {if (e.kind === "jav") return {kind: "jav",props: {@@ -76683,30 +76708,30 @@ function _3(e) {readOnly: e.readOnly,actions: {...e.actions,- close: h3+ close: g3}}};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 = () => d3().player.settings(), i = () => r3?.request === e;if (e.kind === "item") {let { kind: t, resume: a, actions: o, ...s } = e, c = {...o,- close: h3,+ close: g3,present: (e, t) => {let n = e.performers;- M4({+ N4({kind: "item",item: e,title: String(e.title || e.name || ""),sub: String(n?.[0] || e.creator || "未归属")- }), g3(r().ambientMode, r().theaterMode), queueMicrotask(() => {+ }), _3(r().ambientMode, r().theaterMode), queueMicrotask(() => {i() && o.present(e, t);});},- mountPlayer: (e, t, r, i) => N4(e, {+ mountPlayer: (e, t, r, i) => P4(e, {kind: "item",item: t,autoplay: i?.autoplay,@@ -76724,18 +76749,18 @@ function _3(e) {}let { kind: a, resume: o, actions: s, ...c } = e, l = {...s,- close: h3,+ close: g3,present: (e, t) => {- M4({+ N4({kind: "follow",item: e,title: e.title || "",sub: e.author || e.source_label || ""- }), g3(t === "video" && r().ambientMode, t === "video" && r().theaterMode), queueMicrotask(() => {+ }), _3(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) => P4(e, {kind: "follow",item: t,media: r,@@ -76752,106 +76777,106 @@ function _3(e) {}};}-function RMe(e, t) {+function zMe(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"), r3?.generation === t && r3.phase === "reveal" && (r3 = {+ ...r3,phase: "content"- }, d3());+ }, f3());}, 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 y3(e) {+ let t = u3();+ return !r3 || r3.content.kind !== e || c3 || !t?.open || t.hasAttribute("data-closing") ? null : t;}-async function zMe(e) {- !r3 && document.activeElement instanceof HTMLElement && document.activeElement !== document.body && (r3 = {+async function BMe(e) {+ !i3 && document.activeElement instanceof HTMLElement && document.activeElement !== document.body && (i3 = {left: window.scrollX,top: window.scrollY,anchor: document.activeElement});- let t = v3(e.kind);+ let t = y3(e.kind);if (t) {- await VMe(e, t);+ await HMe(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 = {+ r3 && b3({ miniplayer: !1 });+ let n = ++o3, r = new AbortController();+ s3 = r, c3 = !1, l3 = !1, e.kind === "jav" ? Y4() : L4(e.kind, e.id ?? NaN);+ let i = v3(e);+ r3 = {generation: n,request: e,content: i,phase: "skeleton"};- let a = i.kind === "item" ? GP(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" ? GP(i.props, r.signal) : i.kind === "jav" ? Y2(i.props, r.signal) : b2(i.props, r.signal);+ if (n !== o3 || r3?.request !== e) {await a.catch(() => {});return;}- let o = BMe(i);- n3 = {- ...n3,+ let o = VMe(i);+ r3 = {+ ...r3,phase: o ? "content" : "skeleton"- }, d3();- let s = l3();+ }, f3();+ let s = u3();if (!s) {await a.catch(() => {});return;}- o || uc(s), document.body.setAttribute("data-detail-open", ""), s.open || s.showModal(), h2(s);+ o || uc(s), document.body.setAttribute("data-detail-open", ""), s.open || s.showModal(), g2(s);try {await a;} catch {if (r.signal.aborted) return;}- if (n !== a3 || !n3 || o) return;+ if (n !== o3 || !r3 || o) return;let c = !!s.querySelector(".skeleton-awaiting");- n3 = {- ...n3,+ r3 = {+ ...r3,phase: c ? "content" : "reveal"- }, d3(), c || RMe(s, n), Qs(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");+ }, f3(), c || zMe(s, n), Qs(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");let l = document.activeElement;l !== s && s.contains(l) || s.querySelector("#closeStage")?.focus();}-function BMe(e) {- if (e.kind === "jav") return !!H.getQueryData(K2(e.props.code));- if (e.kind === "follow") return !!H.getQueryData(g2(e.props.id));+function VMe(e) {+ if (e.kind === "jav") return !!H.getQueryData(q2(e.props.code));+ if (e.kind === "follow") return !!H.getQueryData(_2(e.props.id));let { queue: t, id: n } = e.props, r = t ? H.getQueryData(jP(t)) : null;if (t && !r) return !1;let i = r ? UP(r, n) : n;return i != null && !!H.getQueryData(AP(i));}-async function VMe(e, t) {- let n = ++a3;- o3?.abort();+async function HMe(e, t) {+ let n = ++o3;+ s3?.abort();let r = new AbortController();- o3 = r, c3 = !1;- let i = _3(e);+ s3 = r, l3 = !1;+ let i = v3(e);try {- i.kind === "item" ? await GP(i.props, r.signal) : i.kind === "jav" ? await J2(i.props, r.signal) : await y2(i.props, r.signal);+ i.kind === "item" ? await GP(i.props, r.signal) : i.kind === "jav" ? await Y2(i.props, r.signal) : await b2(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), Al(t), oN(), n3 = {- ...n3,+ if (n !== o3 || !r3 || y3(e.kind) !== t) return;+ e.kind === "jav" ? Y4() : L4(e.kind, e.id ?? NaN), Al(t), oN(), r3 = {+ ...r3,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 }), Qs(t, ":scope>:not([data-stage-fade]) [data-reveal-line]");+ }, f3(), t.removeAttribute("data-stage-reveal"), t.removeAttribute("data-stage-revealing"), t.querySelector(":scope > [data-stage-scroll]")?.scrollTo({ top: 0 }), Qs(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 HMe() {- h2(null);- let e = l3();+function UMe() {+ g2(null);+ let e = u3();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();@@ -76861,14 +76886,14 @@ function HMe() {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 && Al(t), oN(), 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 b3({ miniplayer: e = !0 } = {}) {+ if (o3++, s3?.abort(), s3 = null, I4(e), !r3) return;+ let t = u3();+ t && Al(t), oN(), g2(null), t?.open && t.close(), r3 = null, c3 = !1, l3 = !1, f3(), N4(null), document.body.removeAttribute("data-detail-open");+ let n = i3;+ i3 = null;let r = () => {- !n3 && n?.anchor.isConnected && n.anchor.getClientRects().length && window.scrollTo({+ !r3 && n?.anchor.isConnected && n.anchor.getClientRects().length && window.scrollTo({left: n.left,top: n.top,behavior: "instant"@@ -76876,80 +76901,80 @@ function y3({ miniplayer: e = !0 } = {}) {};r(), requestAnimationFrame(r);}-function UMe(e) {- n3 && (n3 = {- ...n3,- content: n3.content.kind === "item" ? {+function WMe(e) {+ r3 && (r3 = {+ ...r3,+ content: r3.content.kind === "item" ? {kind: "item",props: {- ...n3.content.props,+ ...r3.content.props,...e}- } : n3.content.kind === "jav" ? n3.content : {+ } : r3.content.kind === "jav" ? r3.content : {kind: "follow",props: {- ...n3.content.props,+ ...r3.content.props,...e.relatedLimit === void 0 ? {} : { relatedLimit: e.relatedLimit }}}- }, d3());+ }, f3());}-function WMe() {- let e = xMe(), t = e?.kind === "item" ? e.item : null, n = t ? Oo(t, u3().player.settings().javImage) : "";+function GMe() {+ let e = SMe(), t = e?.kind === "item" ? e.item : null, n = t ? Oo(t, d3().player.settings().javImage) : "";if (!n) return;- let r = P4();+ let r = F4();r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);}-var GMe = {- open: zMe,- update: UMe,- exit: HMe,- dispose: y3,- requestClose: h3,- requestEscape: m3,- repaintPoster: WMe,- isOpen: () => !!n3,- showing: () => n3 && v3(n3.content.kind) ? n3.content.kind : null,- activeVideo: () => TMe(),- mountWallPlayer: SMe,+var KMe = {+ open: BMe,+ update: WMe,+ exit: UMe,+ dispose: b3,+ requestClose: g3,+ requestEscape: h3,+ repaintPoster: GMe,+ isOpen: () => !!r3,+ showing: () => r3 && y3(r3.content.kind) ? r3.content.kind : null,+ activeVideo: () => EMe(),+ mountWallPlayer: CMe,toggleTheater: () => {- n3 && LN(!u3().player.settings().theaterMode);+ r3 && LN(!d3().player.settings().theaterMode);},- toggleMiniplayer: () => X4(),- closeMiniplayer: () => J4(),- miniplayerActive: () => R4(),- miniplayerTakesCard: (e) => Q4(e),+ toggleMiniplayer: () => Z4(),+ closeMiniplayer: () => Y4(),+ miniplayerActive: () => z4(),+ miniplayerTakesCard: (e) => $4(e),miniplayerPlay: (e) => {- kMe(e);+ AMe(e);}};-function KMe(e) {- return t3 = e, bMe(e, {- isOpen: () => !!n3,- requestClose: h3- }), GMe;+function qMe(e) {+ return n3 = e, xMe(e, {+ isOpen: () => !!r3,+ requestClose: g3+ }), KMe;}-function qMe() {- let e = (0, F.useSyncExternalStore)(PMe, () => n3);- return t3 ? /* @__PURE__ */ (0, I.jsx)(IMe, { view: e }) : null;+function JMe() {+ let e = (0, F.useSyncExternalStore)(FMe, () => r3);+ return n3 ? /* @__PURE__ */ (0, I.jsx)(LMe, { view: e }) : null;}// src/react/stats/stats.ts-var JMe = "/api/stats", b3 = ["stats"], x3 = (e) => B(JMe, e);-async function YMe(e) {+var YMe = "/api/stats", x3 = ["stats"], S3 = (e) => B(YMe, e);+async function XMe(e) {await H.fetchQuery({- queryKey: b3,- queryFn: () => x3(e)+ queryKey: x3,+ queryFn: () => S3(e)});}-var S3 = (e) => e != null && Number.isFinite(e), XMe = (e) => S3(e) ? e.toLocaleString() : "未取得", ZMe = (e, t) => S3(e) && S3(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, QMe = (e, t) => {- let n = ZMe(e, t);- return !n && S3(e) && e > 0 && S3(t) && t > 0 ? "<1%" : `${n}%`;-}, C3 = (e) => {- if (!S3(e)) return "未取得";+var C3 = (e) => e != null && Number.isFinite(e), ZMe = (e) => C3(e) ? e.toLocaleString() : "未取得", QMe = (e, t) => C3(e) && C3(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, $Me = (e, t) => {+ let n = QMe(e, t);+ return !n && C3(e) && e > 0 && C3(t) && t > 0 ? "<1%" : `${n}%`;+}, w3 = (e) => {+ if (!C3(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, $Me = (e) => e.kind === "online" ? "在线直接观看" : w3(e) < T3(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", eNe = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;-function tNe(e, t = 6) {+}, T3 = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, E3 = (e) => (e.max_reached || 0) * 100, eNe = (e) => e.kind === "online" ? "在线直接观看" : T3(e) < E3(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", tNe = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;+function nNe(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);@@ -76959,7 +76984,7 @@ function tNe(e, t = 6) {bytes: i.reduce((e, t) => e + (t.bytes ?? 0), 0)}];}-var nNe = (e) => Math.max(1, ...e) * 1.1, rNe = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, iNe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), aNe = {+var rNe = (e) => Math.max(1, ...e) * 1.1, iNe = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, aNe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), oNe = {video: "视频",image: "图片",illustration: "插画",@@ -76967,18 +76992,18 @@ var nNe = (e) => Math.max(1, ...e) * 1.1, rNe = (e, t) => e > 0 ? Math.max(e, taudio: "音频",account: "账号",other: "其它文件"-}, oNe = (e) => e.map((e) => ({- name: aNe[e.k] ?? e.k,+}, sNe = (e) => e.map((e) => ({+ name: oNe[e.k] ?? e.k,value: e.n-})).sort((e, t) => t.value - e.value), sNe = {+})).sort((e, t) => t.value - e.value), cNe = {速食: "<5 分钟",短: "5–15 分钟",中: "15–40 分钟",长: ">40 分钟"-}, E3 = (e, t = {}) => e.map((e) => ({+}, D3 = (e, t = {}) => e.map((e) => ({name: t[e.k] ?? e.k,value: e.n-})), cNe = (e) => E3(e, sNe), lNe = [+})), lNe = (e) => D3(e, cNe), uNe = [[1,1,@@ -77014,12 +77039,12 @@ var nNe = (e) => Math.max(1, ...e) * 1.1, rNe = (e, t) => e > 0 ? Math.max(e, tInfinity,"≥10"]-], uNe = (e) => lNe.map(([t, n, r]) => ({+], dNe = (e) => uNe.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 O3(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 {@@ -77029,7 +77054,7 @@ function D3(e, t) {return n;}// node_modules/d3-array/src/min.js-function O3(e, t) {+function k3(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 {@@ -77039,7 +77064,7 @@ function O3(e, t) {return n;}// node_modules/d3-array/src/sum.js-function k3(e, t) {+function A3(e, t) {let n = 0;if (t === void 0) for (let t of e) (t = +t) && (n += t);else {@@ -77049,64 +77074,64 @@ function k3(e, t) {return n;}// node_modules/d3-sankey/src/align.js-function dNe(e, t) {+function fNe(e, t) {return e.sourceLinks.length ? e.depth : t - 1;}// node_modules/d3-sankey/src/constant.js-function A3(e) {+function j3(e) {return function() {return e;};}// node_modules/d3-sankey/src/sankey.js-function j3(e, t) {- return N3(e.source, t.source) || e.index - t.index;-}function M3(e, t) {- return N3(e.target, t.target) || e.index - t.index;+ return P3(e.source, t.source) || e.index - t.index;}function N3(e, t) {+ return P3(e.target, t.target) || e.index - t.index;+}+function P3(e, t) {return e.y0 - t.y0;}-function P3(e) {+function F3(e) {return e.value;}-function fNe(e) {+function pNe(e) {return e.index;}-function pNe(e) {+function mNe(e) {return e.nodes;}-function mNe(e) {+function hNe(e) {return e.links;}-function F3(e, t) {+function I3(e, t) {let n = e.get(t);if (!n) throw Error("missing: " + t);return n;}-function I3({ nodes: e }) {+function L3({ 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 hNe() {- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = fNe, c = dNe, l, u, d = pNe, f = mNe, p = 6;+function gNe() {+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = pNe, c = fNe, l, u, d = mNe, f = hNe, 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), L3(e), e;}m.update = function(e) {- return I3(e), e;+ return L3(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 : j3(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 : j3(e), m) : c;}, m.nodeSort = function(e) {return arguments.length ? (l = e, m) : l;}, m.nodeWidth = function(e) {@@ -77114,9 +77139,9 @@ function hNe() {}, 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 : j3(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 : j3(e), m) : f;}, m.linkSort = function(e) {return arguments.length ? (u = e, m) : u;}, m.size = function(i) {@@ -77132,12 +77157,12 @@ function hNe() {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 = I3(n, t)), typeof i != "object" && (i = r.target = I3(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(A3(t.sourceLinks, F3), A3(t.targetLinks, F3)) : t.fixedValue;}function _({ nodes: e }) {let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;@@ -77162,7 +77187,7 @@ function hNe() {}}function y({ nodes: t }) {- let r = D3(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);+ let r = O3(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];@@ -77171,7 +77196,7 @@ function hNe() {return o;}function b(e) {- let n = O3(e, (e) => (r - t - (e.length - 1) * o) / k3(e, P3));+ let n = k3(e, (e) => (r - t - (e.length - 1) * o) / A3(e, F3));for (let i of e) {let e = t;for (let t of i) {@@ -77188,7 +77213,7 @@ function hNe() {}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) / (O3(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);@@ -77207,7 +77232,7 @@ function hNe() {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(P3), w(i, n);}}function C(e, t, n) {@@ -77223,7 +77248,7 @@ function hNe() {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(P3), w(i, n);}}function w(e, n) {@@ -77244,12 +77269,12 @@ function hNe() {}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(N3);+ for (let { target: { targetLinks: t } } of e) t.sort(M3);}}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(N3), n.sort(M3);}function k(e, t) {let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;@@ -77278,15 +77303,15 @@ function hNe() {return m;}// node_modules/d3-path/src/path.js-var L3 = Math.PI, R3 = 2 * L3, z3 = 1e-6, gNe = R3 - z3;-function B3() {+var R3 = Math.PI, z3 = 2 * R3, B3 = 1e-6, _Ne = z3 - B3;+function V3() {this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";}-function V3() {- return new B3();+function H3() {+ return new V3();}-B3.prototype = V3.prototype = {- constructor: B3,+V3.prototype = H3.prototype = {+ constructor: V3,moveTo: function(e, t) {this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);},@@ -77307,11 +77332,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 > B3) {+ if (!(Math.abs(u * s - c * l) > B3) || !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((R3 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;+ Math.abs(y - 1) > B3 && (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);}}},@@ -77319,7 +77344,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 > gNe ? 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) > B3 || Math.abs(this._y1 - l) > B3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % z3 + z3), d > _Ne ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > B3 && (this._ += "A" + n + "," + n + ",0," + +(d >= R3) + "," + 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";@@ -77329,93 +77354,93 @@ B3.prototype = V3.prototype = {}};// node_modules/d3-shape/src/constant.js-function H3(e) {+function U3(e) {return function() {return e;};}// node_modules/d3-shape/src/point.js-function _Ne(e) {+function vNe(e) {return e[0];}-function vNe(e) {+function yNe(e) {return e[1];}// node_modules/d3-shape/src/array.js-var yNe = Array.prototype.slice;+var bNe = Array.prototype.slice;// node_modules/d3-shape/src/link/index.js-function bNe(e) {+function xNe(e) {return e.source;}-function xNe(e) {+function SNe(e) {return e.target;}-function SNe(e) {- var t = bNe, n = xNe, r = _Ne, i = vNe, a = null;+function CNe(e) {+ var t = xNe, n = SNe, r = vNe, i = yNe, a = null;function o() {- var o, s = yNe.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 = bNe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);+ if (a ||= o = H3(), 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 : U3(+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 : U3(+e), o) : i;}, o.context = function(e) {return arguments.length ? (a = e ?? null, o) : a;}, o;}-function CNe(e, t, n, r, i) {+function wNe(e, t, n, r, i) {e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);}-function wNe() {- return SNe(CNe);+function TNe() {+ return CNe(wNe);}// node_modules/d3-sankey/src/sankeyLinkHorizontal.js-function TNe(e) {+function ENe(e) {return [e.source.x1, e.y0];}-function ENe(e) {+function DNe(e) {return [e.target.x0, e.y1];}-function DNe() {- return wNe().source(TNe).target(ENe);+function ONe() {+ return TNe().source(ENe).target(DNe);}// src/react/taste/taste.ts-var ONe = "/api/taste", U3 = "/api/taste/refresh", kNe = "/api/taste/import", W3 = "/api/taste/source", G3 = (e) => ["taste", e], ANe = ["taste", "refresh"], jNe = [+var kNe = "/api/taste", W3 = "/api/taste/refresh", ANe = "/api/taste/import", G3 = "/api/taste/source", K3 = (e) => ["taste", e], jNe = ["taste", "refresh"], MNe = [["7d", "最近 7 天"],["30d", "最近 30 天"],["90d", "最近 90 天"],["365d", "最近一年"],["all", "全部时间"]-], MNe = 2e3, NNe = (e) => e?.stale && !e.error ? MNe : !1, PNe = (e) => e ? new Date(e).toLocaleString("zh-CN", {+], NNe = 2e3, PNe = (e) => e?.stale && !e.error ? NNe : !1, FNe = (e) => e ? new Date(e).toLocaleString("zh-CN", {month: "numeric",day: "numeric",hour: "2-digit",minute: "2-digit"-}) : "—", FNe = (e, t) => V(W3, {+}) : "—", INe = (e, t) => V(G3, {...e,window: t-}), K3 = (e, t, n = !1) => B(`${ONe}?window=${e}${n ? "&retry=1" : ""}`, t), INe = (e) => B(U3, e);-async function LNe(e, t) {+}), q3 = (e, t, n = !1) => B(`${kNe}?window=${e}${n ? "&retry=1" : ""}`, t), LNe = (e) => B(W3, e);+async function RNe(e, t) {await H.fetchQuery({- queryKey: G3(e),- queryFn: () => K3(e, t)+ queryKey: K3(e),+ queryFn: () => q3(e, t)});}-var RNe = (e) => V(U3, {+var zNe = (e) => V(W3, {window: e,background: !0-}), zNe = (e, t) => V(W3, {+}), BNe = (e, t) => V(G3, {operation: "remove",source_key: e,window: t});-async function BNe(e) {- let t = await fetch(kNe, {+async function VNe(e) {+ let t = await fetch(ANe, {method: "POST",credentials: "same-origin",headers: {@@ -77433,52 +77458,52 @@ async function BNe(e) {}return n;}-var VNe = 1e4, q3 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";-function HNe(e) {+var HNe = 1e4, J3 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";+function UNe(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);+ }) : J3(e);return `${t} · ${r(e.range_start)}–${r(e.range_end)}`;}-var UNe = C3, WNe = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), GNe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);-function KNe(e) {+var WNe = w3, GNe = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), KNe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);+function qNe(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 qNe(e) {- let t = e.map(GNe), n = Math.max(1, ...t);+function JNe(e) {+ let t = e.map(KNe), 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 Y3 = (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 JNe(e) {- let t = J3(e, 6);+function YNe(e) {+ let t = Y3(e, 6);return t.length < 3 ? [] : t;}-var Y3 = {+var X3 = {width: 720,height: 435-}, YNe = {+}, XNe = {source: 145,target: 545-}, X3 = 30, XNe = 240;-function Z3(e, t, n) {+}, Z3 = 30, ZNe = 240;+function Q3(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 ZNe(e = []) {+function QNe(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 = Q3(t, "source", (e) => `其余 ${e.toLocaleString()} 个网站`), r = Q3(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, {@@ -77487,7 +77512,7 @@ function ZNe(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 + XNe), u = hNe().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) * Z3 + ZNe), u = gNe().nodeId((e) => e.id).nodeWidth(10).nodePadding(Z3).extent([[155, 16], [535, l]])({nodes: [...o.map((e) => ({id: `source:${e}`,name: e,@@ -77502,7 +77527,7 @@ function ZNe(e = []) {target: `target:${e.target}`,value: e.value}))- }), d = a.reduce((e, t) => e + t.value, 0), f = DNe();+ }), d = a.reduce((e, t) => e + t.value, 0), f = ONe();return {nodes: u.nodes.map((e) => ({id: e.id,@@ -77530,17 +77555,17 @@ function ZNe(e = []) {};}),total: d,- height: l + Y3.height - 404+ height: l + X3.height - 404};}-var QNe = (e) => er(e, 17), Q3 = {+var $Ne = (e) => er(e, 17), $3 = {performers: "艺人",creators: "卖家",studios: "厂牌",agencies: "事务所",series: "系列",tags: "标签"-}, $Ne = [[+}, ePe = [["big","大图 · 竖幅头像","maximize"@@ -77548,7 +77573,7 @@ var QNe = (e) => er(e, 17), Q3 = {"compact","紧凑 · 圆形头像","layout-grid"-]], ePe = [[+]], tPe = [["big","大图 · 完整标识","maximize"@@ -77556,7 +77581,7 @@ var QNe = (e) => er(e, 17), Q3 = {"compact","紧凑 · 圆形标识","layout-grid"-]], tPe = [[+]], nPe = [["big","大图 · 系列图片","maximize"@@ -77564,7 +77589,7 @@ var QNe = (e) => er(e, 17), Q3 = {"compact","紧凑 · 系列图片","layout-grid"-]], nPe = [+]], rPe = [["studios","厂牌",@@ -77580,7 +77605,7 @@ var QNe = (e) => er(e, 17), Q3 = {"系列","file-stack"]-], rPe = [[+], iPe = [["local","本地","hard-drive"@@ -77588,7 +77613,7 @@ var QNe = (e) => er(e, 17), Q3 = {"online","在线","rss"-]], iPe = [+]], aPe = [["performers","艺人",@@ -77604,7 +77629,7 @@ var QNe = (e) => er(e, 17), Q3 = {"在线","rss"]-], aPe = [[+], oPe = [["cloud","标签云","tags"@@ -77612,8 +77637,8 @@ var QNe = (e) => er(e, 17), Q3 = {"alphabet","字母表","text-aa"-]], $3 = (e) => e === "compact" ? "compact" : "big";-function e6(e, t) {+]], e6 = (e) => e === "compact" ? "compact" : "big";+function t6(e, t) {let n = new URLSearchParams(t);return {kind: e,@@ -77623,7 +77648,7 @@ function e6(e, t) {category: n.get("category") || "all"};}-var t6 = (e, t, n) => Hs(e.map(([e, t, n]) => ({+var n6 = (e, t, n) => Hs(e.map(([e, t, n]) => ({value: e,label: t,symbol: n@@ -77631,12 +77656,12 @@ var t6 = (e, t, n) => Hs(e.map(([e, t, n]) => ({active: t,label: n,className: "indextabs"-}), oPe = (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">+}), sPe = (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">${Xc("tag-view", "标签视图", aPe, e, { className: "tag-skeleton-view" })}</span></div></div></div>`;-function sPe({ 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 ? Xc("people-layout", o + "索引版式", e === "series" ? tPe : c ? ePe : $Ne, a) : "";+ <span class="ml-auto">${Xc("tag-view", "标签视图", oPe, e, { className: "tag-skeleton-view" })}</span></div></div></div>`;+function cPe({ kind: e, q: t, scope: n, view: r, category: i }, a) {+ let o = $3[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies" || e === "series", l = s ? Xc("people-layout", o + "索引版式", e === "series" ? nPe : c ? tPe : ePe, 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}@@ -77648,24 +77673,24 @@ function sPe({ 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">${Es("", t, "过滤" + o)}</div></div>- ${e === "tags" ? t6(rPe, n, "词表") : e === "performers" || e === "creators" ? t6(iPe, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? t6(nPe, e, "资料类型") : ""}- ${e === "tags" ? oPe(r) : ""}- ${e === "performers" && n !== "online" ? hTe(i) : ""}+ ${e === "tags" ? n6(iPe, n, "词表") : e === "performers" || e === "creators" ? n6(aPe, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? n6(rPe, e, "资料类型") : ""}+ ${e === "tags" ? sPe(r) : ""}+ ${e === "performers" && n !== "online" ? _Te(i) : ""}${rc({kind: e,layout: a,mode: r})}`;}-var cPe = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";-function n6(e, t, n) {- let r = sPe(t, n);- e.querySelector("[data-skeleton]")?.dataset.skeleton !== cPe(r) && (e.innerHTML = r, uc(e));+var lPe = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";+function r6(e, t, n) {+ let r = cPe(t, n);+ e.querySelector("[data-skeleton]")?.dataset.skeleton !== lPe(r) && (e.innerHTML = r, uc(e));}// src/react/router/pages/index-entity.tsx-var lPe = () => uu, uPe = () => Yl, r6 = () => document.getElementById("index");-function i6(e, t, n = {}) {- let r = (0, F.useSyncExternalStore)(xu, lPe);+var uPe = () => uu, dPe = () => Yl, i6 = () => document.getElementById("index");+function a6(e, t, n = {}) {+ let r = (0, F.useSyncExternalStore)(xu, uPe);Qd();let i = Rf(W.navigation.location.pathname), a = (0, F.useRef)({mounted: !0,@@ -77713,11 +77738,11 @@ function i6(e, t, n = {}) {i]);}-async function dPe(e, t, n, r) {- let i = r6();+async function fPe(e, t, n, r) {+ let i = i6();if (!i) return;- let a = `/${t}`, o = e6(t, n), s = $3(_M().value.peopleLayout), c = !!i.querySelector("[data-index-page]") && !i.hidden;- c || (e.surfaceChanged("index", a), n6(i, o, s), lm(r, i, { pending: !0 })), await fp(a, {+ let a = `/${t}`, o = t6(t, n), s = e6(_M().value.peopleLayout), c = !!i.querySelector("[data-index-page]") && !i.hidden;+ c || (e.surfaceChanged("index", a), r6(i, o, s), lm(r, i, { pending: !0 })), await fp(a, {...o,layout: s,selectMode: Yl,@@ -77728,23 +77753,23 @@ async function dPe(e, t, n, r) {reuse: c}) && r() && (e.surfaceShown?.("index", a), lm(r, i));}-function fPe(e) {- let t = r6(), n = t ? sp(t) : null;+function pPe(e) {+ let t = i6(), n = t ? sp(t) : null;return !!t && !t.hidden && !!n && n.path === e && n.host.isConnected;}-function pPe({ epoch: e }) {- let t = (0, F.useContext)(gG), n = Qd(), r = n.pathname.split("/").filter(Boolean)[0];- return i6(e, (e, i) => {- t && dPe(t, r, n.search, i);- }, { shown: () => fPe(`/${r}`) }), null;+function mPe({ epoch: e }) {+ let t = (0, F.useContext)(_G), n = Qd(), r = n.pathname.split("/").filter(Boolean)[0];+ return a6(e, (e, i) => {+ t && fPe(t, r, n.search, i);+ }, { shown: () => pPe(`/${r}`) }), null;}-function mPe() {- let e = hG(), t = (0, F.useSyncExternalStore)(xu, uPe), n = (0, F.useRef)(t);+function hPe() {+ let e = gG(), t = (0, F.useSyncExternalStore)(xu, dPe), n = (0, F.useRef)(t);return (0, F.useEffect)(() => {- n.current !== t && (n.current = t, window.location.pathname === "/tags" && mp(r6(), { selectMode: t }));- }, [t]), /* @__PURE__ */ (0, I.jsx)(pPe, { epoch: e }, e);+ n.current !== t && (n.current = t, window.location.pathname === "/tags" && mp(i6(), { selectMode: t }));+ }, [t]), /* @__PURE__ */ (0, I.jsx)(mPe, { epoch: e }, e);}-function hPe(e) {+function gPe(e) {let t;try {t = decodeURIComponent(e);@@ -77758,9 +77783,9 @@ function hPe(e) {name: a} : null;}-var a6 = /* @__PURE__ */ new WeakMap();-function gPe(e) {- let t = a6.get(e);+var o6 = /* @__PURE__ */ new WeakMap();+function _Pe(e) {+ let t = o6.get(e);return t || (t = {helpers: {...e.grid.helpers,@@ -77770,14 +77795,14 @@ function gPe(e) {...e.grid.actions,revealSource: e.revealSource}- }, a6.set(e, t)), t;+ }, o6.set(e, t)), t;}-function o6() {- let e = r6(), t = e ? sp(e) : null;+function s6() {+ let e = i6(), t = e ? sp(e) : null;return !!t && t.path.endsWith("/*") && t.host.isConnected;}-async function _Pe(e, t, n, r, i, a, o) {- let s = r6();+async function vPe(e, t, n, r, i, a, o) {+ let s = i6();if (!s) return;let { segment: c, kind: l, name: u } = n;if (!a()) return;@@ -77800,7 +77825,7 @@ async function _Pe(e, t, n, r, i, a, o) {let g = {...h,hosts: m,- card: gPe(e),+ card: _Pe(e),resolvedEntity: o,restoreNavigation: sm(),actions: {@@ -77815,16 +77840,16 @@ async function _Pe(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), lm(a, m.filter));+ }) && a() && s6() && (e.surfaceShown?.("entity", r), lm(a, m.filter));}-function vPe({ target: e }) {- let t = (0, F.useContext)(gG), n = hG(), r = Qd();- return i6(n, (n, i) => {+function yPe({ target: e }) {+ let t = (0, F.useContext)(_G), n = gG(), r = Qd();+ return a6(n, (n, i) => {let a = t?.entity;t && a && (async () => {- if (n || !o6()) {+ if (n || !s6()) {if (t.surfaceChanged("entity", r.pathname), await a.loading(e.kind, e.name, i), !i()) return;- lm(i, r6(), { pending: !0 });+ lm(i, i6(), { pending: !0 });}let o = new URLSearchParams({ kind: e.kind });o.set(/^[0-9]+$/.test(e.name) ? "id" : "name", e.name);@@ -77850,7 +77875,7 @@ function vPe({ target: e }) {return;}let c = String(s.canonical_name || e.name), l = Nn(e.kind, c, Number(s.id));- l === r.pathname ? !n && a.refresh(e.kind, c, r.search) ? lm(i, r6()?.querySelector("[data-entity-filter]")) : _Pe(t, a, {+ l === r.pathname ? !n && a.refresh(e.kind, c, r.search) ? lm(i, i6()?.querySelector("[data-entity-filter]")) : vPe(t, a, {...e,name: c}, r.pathname, r.search, i, s) : Ep(l + r.search + r.hash, {@@ -77858,16 +77883,16 @@ function vPe({ target: e }) {state: W.navigation.location.state});})();- }, { shown: () => o6() && !r6()?.hidden }), null;+ }, { shown: () => s6() && !i6()?.hidden }), null;}-function yPe() {- let e = hPe(Qd().pathname);- return e ? /* @__PURE__ */ (0, I.jsx)(vPe, { target: e }, JSON.stringify([e.kind, e.name])) : null;+function bPe() {+ let e = gPe(Qd().pathname);+ return e ? /* @__PURE__ */ (0, I.jsx)(yPe, { target: e }, JSON.stringify([e.kind, e.name])) : null;}// src/react/router/pages/follow.tsx-var s6 = () => document.getElementById("stats"), bPe = () => gu;-async function xPe(e, t) {- let n = s6(), r = e.follow;+var c6 = () => document.getElementById("stats"), xPe = () => gu;+async function SPe(e, t) {+ let n = c6(), r = e.follow;if (!n || !r) return;let i = om("follow"), a = r.refresh(i), o = r.props();if (am("follow", {@@ -77876,34 +77901,34 @@ async function xPe(e, t) {revision: o.revision}), a) return;let s = H.getQueryData(na(o.view, o.revision).queryKey) !== void 0;- s || (e.surfaceChanged("follow", "/follow"), O2(n, r.skeleton()), lm(t, n, { pending: !0 })), await fp("/follow", o, {+ s || (e.surfaceChanged("follow", "/follow"), k2(n, r.skeleton()), lm(t, n, { pending: !0 })), await fp("/follow", o, {container: n,isCurrent: t,beforePlace: s ? () => e.surfaceChanged("follow", "/follow") : void 0}), t() && lm(t, n.querySelector("[data-filter-frame]"));}-function SPe() {- let e = s6(), t = e ? sp(e) : null;+function CPe() {+ let e = c6(), t = e ? sp(e) : null;return !!e && !e.hidden && !!t && t.path === "/follow" && t.host.isConnected;}-function CPe() {- let e = (0, F.useContext)(gG);- return i6(hG(), (t, n) => {- e && xPe(e, n);+function wPe() {+ let e = (0, F.useContext)(_G);+ return a6(gG(), (t, n) => {+ e && SPe(e, n);}, {- shown: SPe,+ shown: CPe,onCovered: () => {W.navigation.location.pathname.startsWith("/posts/") && e?.follow?.ground();}}), null;}-function c6(e) {+function l6(e) {let t = e ? sp(e) : null;return !!t && t.path === "/playlists" && t.host.isConnected;}-async function wPe(e, t) {- let n = s6();- n && (e.surfaceChanged("playlists", "/playlists"), O2(n, E2("/playlists", {+async function TPe(e, t) {+ let n = c6();+ n && (e.surfaceChanged("playlists", "/playlists"), k2(n, D2("/playlists", {followLayout: "",followSort: "",followDir: ""@@ -77912,54 +77937,54 @@ async function wPe(e, t) {isCurrent: t}), t() && lm(t));}-function TPe() {- let e = (0, F.useContext)(gG), t = (0, F.useSyncExternalStore)(xu, bPe), n = (0, F.useRef)(t);+function EPe() {+ let e = (0, F.useContext)(_G), t = (0, F.useSyncExternalStore)(xu, xPe), n = (0, F.useRef)(t);return (0, F.useEffect)(() => {if (n.current === t) return;n.current = t;- let e = s6();- c6(e) && mp(e, { revision: t });- }, [t]), i6(hG(), (t, n) => {- e && wPe(e, n);+ let e = c6();+ l6(e) && mp(e, { revision: t });+ }, [t]), a6(gG(), (t, n) => {+ e && TPe(e, n);}, { shown: () => {- let e = s6();- return c6(e) && !e.hidden;+ let e = c6();+ return l6(e) && !e.hidden;} }), null;}// src/react/router/pages/immerse.tsx-function EPe() {+function DPe() {let e = new URLSearchParams(W.navigation.location.search).get("id");return /^\d+$/.test(e || "") ? Number(e) : void 0;}-function DPe() {- let e = (0, F.useContext)(gG);- return lG(() => {- e?.openImmerse(EPe());+function OPe() {+ let e = (0, F.useContext)(_G);+ return uG(() => {+ e?.openImmerse(DPe());}, !0), null;}-function OPe() {- return /* @__PURE__ */ (0, I.jsx)(DPe, {}, hG());+function kPe() {+ return /* @__PURE__ */ (0, I.jsx)(OPe, {}, gG());}// src/react/router/pages/managed.tsx-var kPe = () => uu > 0, l6 = () => (0, F.useSyncExternalStore)(xu, kPe), u6 = () => _M().value.followLayout === "table" ? "table" : "default", d6 = () => new URLSearchParams(window.location.search);-function f6(e) {+var APe = () => uu > 0, u6 = () => (0, F.useSyncExternalStore)(xu, APe), d6 = () => _M().value.followLayout === "table" ? "table" : "default", f6 = () => new URLSearchParams(window.location.search);+function p6(e) {return wn("/healthz", { signal: e.controller.signal }).catch((e) => {if (Tn(e)) return null;throw e;});}-function p6(e, t) {+function m6(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 APe(e, t) {+async function jPe(e, t) {if (e === "/jav") {- let e = await f6(t);+ let e = await p6(t);return t.live ? {- tab: $H(d6().get("tab")),+ tab: eU(f6().get("tab")),readOnly: !!e?.ledger_read_only} : null;}@@ -77970,50 +77995,50 @@ async function APe(e, t) {}if (e.startsWith("/settings/")) {window.location.hash === "#peachProxy" && yu({ configurationRequestedSection: "网络与访问" });- let t = d6().get("section") || su || Of(e);+ let t = f6().get("section") || su || Of(e);return t ? { section: t } : {};}if (e === "/review") {- let e = d6().get("category") || "", n = await f6(t);+ let e = f6().get("category") || "", n = await p6(t);return t.live ? {category: oX(e) ? e : "",- queue: lX(d6().get("queue")),- ...p6(n, "/review")+ queue: lX(f6().get("queue")),+ ...m6(n, "/review")} : null;}if (e === "/subscriptions") {- let e = hQ("?" + d6().toString()), n = await f6(t);+ let e = hQ("?" + f6().toString()), n = await p6(t);if (!t.live) return null;let r = _M().value;return {...e,pageSize: Number(r.followPageSize) || 20,- layout: u6(),- ...p6(n, "/subscriptions")+ layout: d6(),+ ...m6(n, "/subscriptions")};}return {};}-async function jPe(e, t, n) {+async function MPe(e, t, n) {let r = W.navigation.seq, i = () => n.live && W.navigation.seq === r;- if (e === "/jav" && $H(d6().get("tab")) === "library") {- W.replace(D_e(window.location.search));+ if (e === "/jav" && eU(f6().get("tab")) === "library") {+ W.replace(O_e(window.location.search));return;}- if (e === "/subscriptions" && d6().get("tab") === "wants") {+ if (e === "/subscriptions" && f6().get("tab") === "wants") {Ep("/jav?tab=wants", { replace: !0 });return;}- if (e === "/subscriptions" && d6().get("tab") === "source") {+ if (e === "/subscriptions" && f6().get("tab") === "source") {Ep("/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") || ""+ t.surfaceChanged("management", e), k2(a, D2(e, {+ followLayout: d6(),+ followSort: f6().get("sort") || "",+ followDir: f6().get("dir") || ""})), lm(i, a, { pending: !0 }), e === "/taste" && (yu({ state: {...U,creator: "",@@ -78029,7 +78054,7 @@ async function jPe(e, t, n) {q: "",jav: ""} }), t.clearSearch());- let o = await APe(e, n);+ let o = await jPe(e, n);if (!o) return;let s = await fp(e, o, {container: a,@@ -78045,19 +78070,19 @@ async function jPe(e, t, n) {}) : lm(i);}}-function m6({ path: e }) {- let t = hG();+function h6({ path: e }) {+ let t = gG();Qd();let n = Rf(W.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)(MPe, {+ return /* @__PURE__ */ (0, I.jsx)(NPe, {path: e,covered: r.current === null}, `${a} ${r.current ?? "covered"}`);}-function MPe({ path: e, covered: t }) {- let n = (0, F.useContext)(gG), r = l6(), i = (0, F.useRef)(null);+function NPe({ path: e, covered: t }) {+ let n = (0, F.useContext)(_G), r = u6(), i = (0, F.useRef)(null);return (0, F.useEffect)(() => {e.startsWith("/settings/") && mp(document.getElementById("stats"), { section: Of(e) });}, [e]), (0, F.useEffect)(() => {@@ -78068,15 +78093,15 @@ function MPe({ path: e, covered: t }) {controller: new AbortController()};i.current = a, queueMicrotask(() => {- a.live && jPe(e, n, a);+ a.live && MPe(e, n, a);});}, [r]), (0, F.useEffect)(() => () => {let e = i.current;e && (e.live = !1, e.controller.abort());}, []), null;}-function NPe() {- let e = l6(), t = (0, F.useRef)(!1);+function PPe() {+ let e = u6(), t = (0, F.useRef)(!1);return (0, F.useEffect)(() => {if (!e || t.current || Rf(W.navigation.location.pathname)) return;t.current = !0;@@ -78089,24 +78114,24 @@ function NPe() {}, [e]), null;}// src/react/router/route-chunk.ts-var h6 = [], g6 = "peach.chunkReloadAt", PPe = 3e4;-async function FPe() {+var g6 = [], _6 = "peach.chunkReloadAt", FPe = 3e4;+async function IPe() {try {- let e = Number(sessionStorage.getItem(g6) || 0);- if (Date.now() - e < PPe || !(await fetch("/healthz", {+ let e = Number(sessionStorage.getItem(_6) || 0);+ if (Date.now() - e < FPe || !(await fetch("/healthz", {cache: "no-store",credentials: "same-origin"})).ok) return;- sessionStorage.setItem(g6, String(Date.now())), location.reload();+ sessionStorage.setItem(_6, String(Date.now())), location.reload();} catch {}}-function _6(e) {+function v6(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 g6.push(r), {preload: () => r().catch(async (e) => {- throw await FPe(), e;+ throw await IPe(), e;}),get: () => {if (!t) throw Error("页面代码还没装载");@@ -78114,10 +78139,10 @@ function _6(e) {}};}-function IPe() {+function LPe() {let e = globalThis.requestIdleCallback;if (typeof e != "function") return;- let t = [...h6], n = () => {+ let t = [...g6], n = () => {let r = t.shift();r && e(() => {r().catch(() => {}).finally(n);@@ -78126,31 +78151,31 @@ function IPe() {document.readyState === "complete" ? n() : window.addEventListener("load", n, { once: !0 });}// src/react/router/managed-routes.tsx-async function v6(e, t) {+async function y6(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-C2bS144a.js")), b6 = _6(() => import("./peach-app.stats-page-DhNggTPt.js")), x6 = _6(() => import("./peach-app.taste-page-O5P41pRb.js")), S6 = _6(() => import("./peach-app.review-page-kd1HFP2A.js")), C6 = _6(() => import("./peach-app.data-cleanup-page-Dm9pvNrp.js")), w6 = _6(() => import("./peach-app.duplicates-page-Bau8HIlx.js")), T6 = _6(() => import("./peach-app.quality-goals-page-Deoy7rhD.js")), E6 = _6(() => import("./peach-app.scraping-page-Ddbx11Bn.js")), D6 = _6(async () => {- let [{ ConfigurationPage: e }, { DiagnosticsPage: t }] = await Promise.all([import("./peach-app.configuration-page-D1PyF3fI.js"), import("./peach-app.diagnostics-page-yTNOV5os.js")]);+var b6 = v6(() => import("./peach-app.jav-page-C2bS144a.js")), x6 = v6(() => import("./peach-app.stats-page-DhNggTPt.js")), S6 = v6(() => import("./peach-app.taste-page-O5P41pRb.js")), C6 = v6(() => import("./peach-app.review-page-kd1HFP2A.js")), w6 = v6(() => import("./peach-app.data-cleanup-page-Dm9pvNrp.js")), T6 = v6(() => import("./peach-app.duplicates-page-Bau8HIlx.js")), E6 = v6(() => import("./peach-app.quality-goals-page-Deoy7rhD.js")), D6 = v6(() => import("./peach-app.scraping-page-Ddbx11Bn.js")), O6 = v6(async () => {+ let [{ ConfigurationPage: e }, { DiagnosticsPage: t }] = await Promise.all([import("./peach-app.configuration-page-BzA2e_yA.js"), import("./peach-app.diagnostics-page-yTNOV5os.js")]);return {ConfigurationPage: e,DiagnosticsPage: t};-}), O6 = _6(() => import("./peach-app.activity-page-BI05_rqb.js")), k6 = _6(() => import("./peach-app.follow-manage-page-Bvnaf0EO.js")), A6 = _6(() => import("./peach-app.playlists-page-Be7ygGCR.js"));-function LPe(e, t, n) {+}), k6 = v6(() => import("./peach-app.activity-page-BI05_rqb.js")), A6 = v6(() => import("./peach-app.follow-manage-page-Bvnaf0EO.js")), j6 = v6(() => import("./peach-app.playlists-page-Be7ygGCR.js"));+function RPe(e, t, n) {if (e === "duplicates") {n("/duplicates");return;}let r = t.managePath(e);- N6(r) ? n(r) : t.openManage(e);+ P6(r) ? n(r) : t.openManage(e);}-var j6 = (e) => ({- element: /* @__PURE__ */ (0, I.jsx)(m6, { path: e }),- prefetch: (t, n) => v6(D6, Promise.all([ske(n), ...e === "/settings/diagnostics" ? [PDe(n)] : []]).then(() => {})),+var M6 = (e) => ({+ element: /* @__PURE__ */ (0, I.jsx)(h6, { path: e }),+ prefetch: (t, n) => y6(O6, Promise.all([lke(n), ...e === "/settings/diagnostics" ? [IDe(n)] : []]).then(() => {})),page: (t, n) => {- let { ConfigurationPage: r, DiagnosticsPage: i } = D6.get();+ let { ConfigurationPage: r, DiagnosticsPage: i } = O6.get();return /* @__PURE__ */ (0, I.jsx)(r, {receipt: (e) => n.receipt(e),reopenTutorial: n.reopenTutorial,@@ -78161,12 +78186,12 @@ var j6 = (e) => ({})});}-}), M6 = {+}), N6 = {...qf.reduce((e, t) => (e[t.path] = {- element: /* @__PURE__ */ (0, I.jsx)(m6, { path: t.path }),- prefetch: (e, n) => v6(C6, aTe(t.key, n)),+ element: /* @__PURE__ */ (0, I.jsx)(h6, { path: t.path }),+ prefetch: (e, n) => y6(w6, sTe(t.key, n)),page: (e, n) => {- let { DataCleanupToolPage: r } = C6.get();+ let { DataCleanupToolPage: r } = w6.get();return /* @__PURE__ */ (0, I.jsx)(r, {tool: t.key,failure: n.failure,@@ -78175,10 +78200,10 @@ var j6 = (e) => ({}}, e), {}),"/jav": {- element: /* @__PURE__ */ (0, I.jsx)(m6, { path: "/jav" }),- prefetch: (e, t) => v6(y6, VW(e.tab, t)),+ element: /* @__PURE__ */ (0, I.jsx)(h6, { path: "/jav" }),+ prefetch: (e, t) => y6(b6, HW(e.tab, t)),page: (e, t) => {- let { JavPage: n } = y6.get();+ let { JavPage: n } = b6.get();return /* @__PURE__ */ (0, I.jsx)(n, {...e,navigate: t.navigate,@@ -78187,10 +78212,10 @@ var j6 = (e) => ({}},"/stats": {- element: /* @__PURE__ */ (0, I.jsx)(m6, { path: "/stats" }),- prefetch: (e, t) => v6(b6, YMe(t)),+ element: /* @__PURE__ */ (0, I.jsx)(h6, { path: "/stats" }),+ prefetch: (e, t) => y6(x6, XMe(t)),page: (e, t) => {- let { StatsPage: n } = b6.get();+ let { StatsPage: n } = x6.get();return /* @__PURE__ */ (0, I.jsx)(n, {tagLabel: Pl,onTag: t.openTag@@ -78198,10 +78223,10 @@ var j6 = (e) => ({}},"/taste": {- element: /* @__PURE__ */ (0, I.jsx)(m6, { path: "/taste" }),- prefetch: (e, t) => v6(x6, LNe("all", t)),+ element: /* @__PURE__ */ (0, I.jsx)(h6, { path: "/taste" }),+ prefetch: (e, t) => y6(S6, RNe("all", t)),page: (e, t, n) => {- let { TastePage: r } = x6.get();+ let { TastePage: r } = S6.get();return /* @__PURE__ */ (0, I.jsx)(r, {onSignal: t.openTasteSignal,navigate: n,@@ -78211,10 +78236,10 @@ var j6 = (e) => ({}},"/review": {- element: /* @__PURE__ */ (0, I.jsx)(m6, { path: "/review" }),- prefetch: (e, t) => v6(S6, YCe(t)),+ element: /* @__PURE__ */ (0, I.jsx)(h6, { path: "/review" }),+ prefetch: (e, t) => y6(C6, ZCe(t)),page: (e, t) => {- let { ReviewPage: n } = S6.get();+ let { ReviewPage: n } = C6.get();return /* @__PURE__ */ (0, I.jsx)(n, {...e,route: t.routeReview,@@ -78226,23 +78251,23 @@ var j6 = (e) => ({}},"/data-cleanup": {- element: /* @__PURE__ */ (0, I.jsx)(m6, { path: "/data-cleanup" }),- prefetch: (e, t) => v6(C6, iTe(t)),+ element: /* @__PURE__ */ (0, I.jsx)(h6, { path: "/data-cleanup" }),+ prefetch: (e, t) => y6(w6, oTe(t)),page: (e, t, n) => {- let { DataCleanupPage: r } = C6.get();+ let { DataCleanupPage: r } = w6.get();return /* @__PURE__ */ (0, I.jsx)(r, {navigate: n,failure: t.failure,- open: (e) => LPe(e, t, n),+ open: (e) => RPe(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, dCe(t)),+ element: /* @__PURE__ */ (0, I.jsx)(h6, { path: "/duplicates" }),+ prefetch: (e, t) => y6(T6, pCe(t)),page: (e, t) => {- let { DuplicatesPage: n } = w6.get();+ let { DuplicatesPage: n } = T6.get();return /* @__PURE__ */ (0, I.jsx)(n, {openItem: t.openItem,failure: t.failure,@@ -78251,10 +78276,10 @@ var j6 = (e) => ({}},"/quality-goals": {- element: /* @__PURE__ */ (0, I.jsx)(m6, { path: "/quality-goals" }),- prefetch: (e, t) => v6(T6, CCe(t)),+ element: /* @__PURE__ */ (0, I.jsx)(h6, { path: "/quality-goals" }),+ prefetch: (e, t) => y6(E6, TCe(t)),page: (e, t) => {- let { QualityGoalsPage: n } = T6.get();+ let { QualityGoalsPage: n } = E6.get();return /* @__PURE__ */ (0, I.jsx)(n, {openItem: t.openItem,javTitleHtml: lL,@@ -78265,32 +78290,32 @@ var j6 = (e) => ({}},"/sources": {- element: /* @__PURE__ */ (0, I.jsx)(m6, { path: "/sources" }),- prefetch: (e, t) => v6(E6, ZOe(t)),+ element: /* @__PURE__ */ (0, I.jsx)(h6, { path: "/sources" }),+ prefetch: (e, t) => y6(D6, $Oe(t)),page: (e, t) => {- let { ScrapingPage: n } = E6.get();+ let { ScrapingPage: n } = D6.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": M6("/settings/library"),+ "/settings/subscriptions": M6("/settings/subscriptions"),+ "/settings/downloads": M6("/settings/downloads"),+ "/settings/network": M6("/settings/network"),+ "/settings/maintenance": M6("/settings/maintenance"),+ "/settings/diagnostics": M6("/settings/diagnostics"),"/tasks": {- element: /* @__PURE__ */ (0, I.jsx)(m6, { path: "/tasks" }),- prefetch: (e, t) => v6(O6, Ffe(t)),+ element: /* @__PURE__ */ (0, I.jsx)(h6, { path: "/tasks" }),+ prefetch: (e, t) => y6(k6, Ffe(t)),page: () => {- let { ActivityPage: e } = O6.get();+ let { ActivityPage: e } = k6.get();return /* @__PURE__ */ (0, I.jsx)(e, {});}},"/subscriptions": {- element: /* @__PURE__ */ (0, I.jsx)(m6, { path: "/subscriptions" }),- prefetch: (e, t) => v6(k6, Li(t)),+ element: /* @__PURE__ */ (0, I.jsx)(h6, { path: "/subscriptions" }),+ prefetch: (e, t) => y6(A6, Li(t)),page: (e, t) => {- let { FollowManagePage: n } = k6.get();+ let { FollowManagePage: n } = A6.get();return /* @__PURE__ */ (0, I.jsx)(n, {...e,route: t.routeFollowManage,@@ -78300,12 +78325,12 @@ var j6 = (e) => ({});}}-}, N6 = (e) => Object.hasOwn(M6, e), RPe = { "/resource-sync": { element: /* @__PURE__ */ (0, I.jsx)(NPe, {}) } }, zPe = { "/immerse": { element: /* @__PURE__ */ (0, I.jsx)(OPe, {}) } }, P6 = {+}, P6 = (e) => Object.hasOwn(N6, e), zPe = { "/resource-sync": { element: /* @__PURE__ */ (0, I.jsx)(PPe, {}) } }, BPe = { "/immerse": { element: /* @__PURE__ */ (0, I.jsx)(kPe, {}) } }, F6 = {"/playlists": {- element: /* @__PURE__ */ (0, I.jsx)(TPe, {}),- prefetch: (e, t) => v6(A6, FOe(t)),+ element: /* @__PURE__ */ (0, I.jsx)(EPe, {}),+ prefetch: (e, t) => y6(j6, LOe(t)),page: (e, t) => {- let { PlaylistsPage: n } = A6.get();+ let { PlaylistsPage: n } = j6.get();return /* @__PURE__ */ (0, I.jsx)(n, {revision: e.revision,openPlaylist: t.openPlaylist,@@ -78316,14 +78341,14 @@ var j6 = (e) => ({}},"/follow": {- element: /* @__PURE__ */ (0, I.jsx)(CPe, {}),+ element: /* @__PURE__ */ (0, I.jsx)(wPe, {}),prefetch: (e, t) => aa(e, t),- page: (e) => /* @__PURE__ */ (0, I.jsx)(pEe, { ...e })+ page: (e) => /* @__PURE__ */ (0, I.jsx)(hEe, { ...e })}-}, F6 = (e) => Object.hasOwn(P6, e), I6 = {- element: /* @__PURE__ */ (0, I.jsx)(mPe, {}),- prefetch: (e, t) => ETe(e, t),- page: (e, t) => /* @__PURE__ */ (0, I.jsx)(JDe, {+}, I6 = (e) => Object.hasOwn(F6, e), L6 = {+ element: /* @__PURE__ */ (0, I.jsx)(hPe, {}),+ prefetch: (e, t) => OTe(e, t),+ page: (e, t) => /* @__PURE__ */ (0, I.jsx)(XDe, {...e,route: t.routeIndex,savePreference: t.savePeopleLayout,@@ -78336,53 +78361,53 @@ var j6 = (e) => ({openFollowAuthor: t.openFollowAuthor,openFollowTag: t.openFollowTag})-}, L6 = {- "/performers": I6,- "/creators": I6,- "/studios": I6,- "/agencies": I6,- "/tags": I6,- "/series": I6}, R6 = {- element: /* @__PURE__ */ (0, I.jsx)(yPe, {}),- prefetch: (e) => mTe(e),- page: (e) => /* @__PURE__ */ (0, I.jsx)(kDe, { ...e })+ "/performers": L6,+ "/creators": L6,+ "/studios": L6,+ "/agencies": L6,+ "/tags": L6,+ "/series": L6}, z6 = {- "/performers/*": R6,- "/studios/*": R6,- "/creators/*": R6,- "/series/*": R6,- "/agencies/*": R6,- "/tags/*": R6+ element: /* @__PURE__ */ (0, I.jsx)(bPe, {}),+ prefetch: (e) => gTe(e),+ page: (e) => /* @__PURE__ */ (0, I.jsx)(jDe, { ...e })}, B6 = {+ "/performers/*": z6,+ "/studios/*": z6,+ "/creators/*": z6,+ "/series/*": z6,+ "/agencies/*": z6,+ "/tags/*": z6+}, V6 = {"/": {- element: /* @__PURE__ */ (0, I.jsx)(iG, {}),+ element: /* @__PURE__ */ (0, I.jsx)(aG, {}),prefetch: async () => {},page: (e) => /* @__PURE__ */ (0, I.jsx)(BY, { ...e })},"/junk-files": {- element: /* @__PURE__ */ (0, I.jsx)(iG, {}),+ element: /* @__PURE__ */ (0, I.jsx)(aG, {}),prefetch: async () => {},- page: (e) => /* @__PURE__ */ (0, I.jsx)(sOe, { ...e })+ page: (e) => /* @__PURE__ */ (0, I.jsx)(lOe, { ...e })}-}, V6 = (e) => Object.hasOwn(B6, e), BPe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, I.jsx)(eve, { ...e }) : /* @__PURE__ */ (0, I.jsx)(r1, { ...e }), H6 = {+}, H6 = (e) => Object.hasOwn(V6, e), VPe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, I.jsx)(tve, { ...e }) : /* @__PURE__ */ (0, I.jsx)(r1, { ...e }), U6 = {"catalog-filter": {prefetch: async () => {},- page: (e) => /* @__PURE__ */ (0, I.jsx)(cye, { ...e })+ page: (e) => /* @__PURE__ */ (0, I.jsx)(uye, { ...e })},"feed-new": {- prefetch: (e) => uTe(e),- page: (e) => /* @__PURE__ */ (0, I.jsx)(FDe, { ...e })+ prefetch: (e) => fTe(e),+ page: (e) => /* @__PURE__ */ (0, I.jsx)(LDe, { ...e })},"library-processing": {- prefetch: (e, t) => SH(t),- page: (e) => /* @__PURE__ */ (0, I.jsx)(BPe, { ...e })+ prefetch: (e, t) => CH(t),+ page: (e) => /* @__PURE__ */ (0, I.jsx)(VPe, { ...e })},search: {prefetch: async () => {},- page: (e) => /* @__PURE__ */ (0, I.jsx)(rke, { ...e })+ page: (e) => /* @__PURE__ */ (0, I.jsx)(ake, { ...e })}-}, U6 = (e) => Object.hasOwn(H6, e), W6 = {+}, W6 = (e) => Object.hasOwn(U6, e), G6 = {"batch-dock": {prefetch: async () => {},page: () => /* @__PURE__ */ (0, I.jsx)(Vce, {})@@ -78401,17 +78426,17 @@ var j6 = (e) => ({},"settings-panel": {prefetch: async () => {},- page: () => /* @__PURE__ */ (0, I.jsx)(Eke, {})+ page: () => /* @__PURE__ */ (0, I.jsx)(Oke, {})},sidebar: {prefetch: async () => {},- page: () => /* @__PURE__ */ (0, I.jsx)(Hke, {})+ page: () => /* @__PURE__ */ (0, I.jsx)(Wke, {})},stage: {prefetch: async () => {},- page: () => /* @__PURE__ */ (0, I.jsx)(qMe, {})+ page: () => /* @__PURE__ */ (0, I.jsx)(JMe, {})}-}, G6 = (e) => Object.hasOwn(W6, e), K6 = [+}, K6 = (e) => Object.hasOwn(G6, e), q6 = ["/","/wall","/unseen",@@ -78421,99 +78446,99 @@ var j6 = (e) => ({"/junk-files"];[- ...Object.keys(M6),- ...Object.keys(P6),- ...Object.keys(L6),- ...Object.keys(z6),- ...K6+ ...Object.keys(N6),+ ...Object.keys(F6),+ ...Object.keys(R6),+ ...Object.keys(B6),+ ...q6];-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 J6 = (e) => P6(e) || I6(e) || Object.hasOwn(R6, e) || Object.hasOwn(B6, e) || H6(e) || W6(e) || K6(e);+function Y6(e) {+ return P6(e) ? N6[e] : I6(e) ? F6[e] : H6(e) ? V6[e] : W6(e) ? U6[e] : K6(e) ? G6[e] : Object.hasOwn(R6, e) ? R6[e] : B6[e];}-function VPe(e, t, n) {- return q6(e) ? J6(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));+function HPe(e, t, n) {+ return J6(e) ? Y6(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));}-function HPe(e, t, n, r) {- return J6(e).page(t, n, r);+function UPe(e, t, n, r) {+ return Y6(e).page(t, n, r);}// src/react/application-residents.ts-var Y6 = null, X6 = null, Z6 = 0, Q6 = /* @__PURE__ */ new Set();-function UPe(e) {- return Y6 = e, X6 && e(X6), () => {- Y6 === e && (Y6 = null);+var X6 = null, Z6 = null, Q6 = 0, $6 = /* @__PURE__ */ new Set();+function WPe(e) {+ return X6 = e, Z6 && e(Z6), () => {+ X6 === e && (X6 = null);};}-function WPe(e) {- return Y6 && (X6 = e, Y6(e), op(Promise.resolve(VPe)), IPe()), Promise.resolve();+function GPe(e) {+ return X6 && (Z6 = e, X6(e), op(Promise.resolve(HPe)), LPe()), Promise.resolve();}-async function $6(e, t, n = (e) => e) {- let r = Z6;- if (t.isConnected || Q6.add(t), !await fp(e, {}, {+async function e8(e, t, n = (e) => e) {+ let r = Q6;+ if (t.isConnected || $6.add(t), !await fp(e, {}, {container: t,resident: !0,- isCurrent: () => !!Y6 && r === Z6,+ isCurrent: () => !!X6 && r === Q6,place: () => n(t)- }) || r !== Z6 || !Y6) throw new DOMException("应用已卸载", "AbortError");-}-function GPe() {- 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(), C$();-}-var e8 = null, t8 = null;-function n8(e) {- return e8 ??= (async () => {- let t = KMe(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 KPe(e) {- return i8 ??= (async () => {- let t = _de(e), n = document.createElement("div");- return n.dataset.immerseHost = "", await $6("immerse", n, (e) => (document.body.append(e), e)), a8 = t, t;- })(), i8;+ }) || r !== Q6 || !X6) throw new DOMException("应用已卸载", "AbortError");+}+function KPe() {+ Q6 += 1, X6 = null, Z6 = null, t8 = null, n8 = null, a8 = null, o8 = null, c8 = null, l8 = null, d8 = null, f8 = null, m8 = null, h8 = null, _8 = null, v8 = null, b8 = null;+ for (let e of $6) e.remove();+ $6.clear(), C$();}-var o8 = () => a8, s8 = null, c8 = null;+var t8 = null, n8 = null;+function r8(e) {+ return t8 ??= (async () => {+ let t = qMe(e), n = document.createElement("div");+ return n.dataset.stageHost = "", await e8("stage", n, (e) => (document.body.append(e), e)), n8 = t, t;+ })(), t8;+}+var i8 = () => n8, a8 = null, o8 = null;function qPe(e) {- return s8 ??= (async () => {- let t = Tke(e), n = document.createElement("div");- return n.dataset.settingsHost = "", await $6("settings-panel", n, (e) => (document.body.append(e), e)), c8 = t, t;- })(), s8;+ return a8 ??= (async () => {+ let t = _de(e), n = document.createElement("div");+ return n.dataset.immerseHost = "", await e8("immerse", n, (e) => (document.body.append(e), e)), o8 = t, t;+ })(), a8;}-var l8 = () => c8, u8 = null, d8 = null;+var s8 = () => o8, c8 = null, l8 = null;function JPe(e) {- return u8 ??= (async () => {- let t = Vke(e);- return await $6("sidebar", e.scroll, (e) => (e.replaceChildren(), e)), e.attached(), d8 = t, t;- })(), u8;+ return c8 ??= (async () => {+ let t = Dke(e), n = document.createElement("div");+ return n.dataset.settingsHost = "", await e8("settings-panel", n, (e) => (document.body.append(e), e)), l8 = t, t;+ })(), c8;}-var f8 = () => d8, p8 = null, m8 = null;+var u8 = () => l8, d8 = null, f8 = null;function YPe(e) {- return p8 ??= (async () => {- let t = pfe(e);- return await $6("manage-header", e.root, (e) => (e.replaceChildren(), e)), m8 = t, t;- })(), p8;+ return d8 ??= (async () => {+ let t = Uke(e);+ return await e8("sidebar", e.scroll, (e) => (e.replaceChildren(), e)), e.attached(), f8 = t, t;+ })(), d8;}-var h8 = () => m8, g8 = null, _8 = null;+var p8 = () => f8, m8 = null, h8 = null;function XPe(e) {- return g8 ??= (async () => {- let t = Bce(e);- return await $6("batch-dock", e.root), _8 = t, t;- })(), g8;+ return m8 ??= (async () => {+ let t = pfe(e);+ return await e8("manage-header", e.root, (e) => (e.replaceChildren(), e)), h8 = t, t;+ })(), m8;}-var v8 = () => _8, y8 = null;+var g8 = () => h8, _8 = null, v8 = null;function ZPe(e) {- return y8 ??= (async () => {- Sle(e), await $6("glow-picker", e.root);- })(), y8;+ return _8 ??= (async () => {+ let t = Bce(e);+ return await e8("batch-dock", e.root), v8 = t, t;+ })(), _8;}-function b8(e, t, n, r) {+var y8 = () => v8, b8 = null;+function QPe(e) {+ return b8 ??= (async () => {+ Sle(e), await e8("glow-picker", e.root);+ })(), b8;+}+function x8(e, t, n, r) {w$(e, t), T$(n, r);}// src/application/receipts.js-var x8 = {+var S8 = {toastBody: void 0,toastSeq: void 0,toast: void 0,@@ -78522,13 +78547,13 @@ var x8 = {rollSeed: void 0,seededSample: void 0};-function QPe() {+function $Pe() {w$(L("#toasts"), {success: R("check"),error: R("circle-alert")- }), x8.toastBody = (e) => e && typeof e == "object" && "html" in e ? String(e.html) : z(e && typeof e == "object" ? e.text ?? "" : e ?? ""), x8.toastSeq = 0, x8.toast = (e, { timeout: t = 6e3, warn: n = !1, action: r = null, sound: i = null } = {}) => {- let a = `toast-${++x8.toastSeq}`, o = (e, t, n, r) => {- Zo(i || (t ? "error" : "success")), b8(L("#toasts"), {+ }), S8.toastBody = (e) => e && typeof e == "object" && "html" in e ? String(e.html) : z(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) => {+ Zo(i || (t ? "error" : "success")), x8(L("#toasts"), {success: R("check"),error: R("circle-alert")}, a, {@@ -78543,10 +78568,10 @@ function QPe() {} : null});};- return o(x8.toastBody(e), n, t, r), { replaceMessage: (e, { warn: t = !1, timeout: n = 4e3 } = {}) => o(x8.toastBody(e), t, n, null) };- }, x8.actionReceipt = (e, { undo: t = null, timeout: n = t ? 8e3 : 6e3 } = {}) => {+ return o(S8.toastBody(e), n, t, r), { replaceMessage: (e, { warn: t = !1, timeout: n = 4e3 } = {}) => o(S8.toastBody(e), t, n, null) };+ }, S8.actionReceipt = (e, { undo: t = null, timeout: n = t ? 8e3 : 6e3 } = {}) => {let r = null;- return r = x8.toast({ text: e }, {+ return r = S8.toast({ text: e }, {timeout: n,action: t ? {label: "撤销",@@ -78559,14 +78584,14 @@ function QPe() {}} : null}), r;- }, x8.actionFailure = (e, t) => x8.toast({ text: `${e}失败:${t?.message || "请重试"}` }, { warn: !0 }), x8.rollSeed = () => rr(), x8.seededSample = (e, t, n, r = (e) => e.k) => {+ }, S8.actionFailure = (e, t) => S8.toast({ text: `${e}失败:${t?.message || "请重试"}` }, { warn: !0 }), S8.rollSeed = () => rr(), S8.seededSample = (e, t, n, r = (e) => e.k) => {if (e.length <= t) return e;let i = new Set([...e].sort((e, t) => nr(n, r(e)) - nr(n, r(t))).slice(0, t).map(r));return e.filter((e) => i.has(r(e)));};}// src/react/catalog-grid/catalog-state.ts-var $Pe = [+var eFe = ["loc","creator","studio",@@ -78587,10 +78612,10 @@ var $Pe = ["folder","folder_recursive"];-function S8(e, t, n, r = n.defaultSort) {+function C8(e, t, n, r = n.defaultSort) {return Qj(e, t, n.defaultSort, n.defaultSortDirection, r);}-function eFe(e, t, n) {+function tFe(e, t, n) {let r = decodeURIComponent(e.pathname), i = new URLSearchParams(e.search), a = An(r) || r === "/trash", o = (e) => a ? i.get(e) : null;return {loc: i.get("loc") ?? "local,115",@@ -78606,7 +78631,7 @@ function eFe(e, t, n) {region: o("region") || "",year: o("year") || "",state: On[r] || o("state") || "",- ...S8(o("sort"), o("dir"), t),+ ...C8(o("sort"), o("dir"), t),seed: o("seed") || n(),q: o("q") || "",jav: o("jav") || "",@@ -78616,18 +78641,18 @@ function eFe(e, t, n) {folder_recursive: o("folder_recursive") === "0" ? "0" : ""};}-function tFe(e, t) {+function nFe(e, t) {return e.split(",").filter(Boolean).filter((e) => t[e] !== !1).join(",") || e;}-function nFe(e) {+function rFe(e) {let t = Dn[e.state ?? ""] || "/", n = new URLSearchParams();- for (let t of $Pe) {+ for (let t of eFe) {let r = e[t];!r || t === "tag_match" && r === "all" || t === "dir" && r === Yj(e.sort ?? "") || n.set(t, r);}return !Dn[e.state ?? ""] && e.state && n.set("state", e.state), t + (n.size ? `?${n}` : "");}-function rFe(e, t, n) {+function iFe(e, t, n) {return {loc: e.loc ?? "",creator: "",@@ -78653,7 +78678,7 @@ function rFe(e, t, n) {folder_recursive: ""};}-function C8(e) {+function w8(e) {return {state: e,barsContext: {@@ -78664,7 +78689,7 @@ function C8(e) {};}// src/react/catalog-grid/catalog-controller.ts-var iFe = class {+var aFe = class {currentRevision = 0;currentPage = "";painting = null;@@ -78709,44 +78734,44 @@ var iFe = class {let e = [...this.waiters.values()];this.waiters.clear(), e.forEach((e) => e());}-}, w8 = Infinity, T8 = 0, aFe = (e, t = T8) => [+}, T8 = Infinity, E8 = 0, oFe = (e, t = E8) => ["facets",e,t-], oFe = (e, t, n = T8) => [+], sFe = (e, t, n = E8) => ["tops",e,t,n-], sFe = (e, t = T8) => [+], cFe = (e, t = E8) => ["tops",e,t];-async function E8(e) {+async function D8(e) {let t = String(e), n = await wn(`/api/tops?${t}`), r = new URLSearchParams(t);return n.performers.length || n.studios.length || !r.has("state") ? n : (r.delete("state"), await wn(`/api/tops?${r}`));}-function cFe(e, t) {+function lFe(e, t) {return Promise.all([H.fetchQuery({- queryKey: aFe(e),+ queryKey: oFe(e),queryFn: () => wn(`/api/facets${e ? `?${e}` : ""}`),- staleTime: w8+ staleTime: T8}), H.fetchQuery({- queryKey: oFe(t, e),- queryFn: () => E8(t),- staleTime: w8+ queryKey: sFe(t, e),+ queryFn: () => D8(t),+ staleTime: T8})]);}-function lFe(e) {+function uFe(e) {return H.fetchQuery({- queryKey: sFe(e),- queryFn: () => E8(e),- staleTime: w8+ queryKey: cFe(e),+ queryFn: () => D8(e),+ staleTime: T8});}-function D8() {- T8 += 1;+function O8() {+ E8 += 1;let e = (e) => e.state.fetchStatus === "idle";H.removeQueries({queryKey: ["facets"],@@ -78757,7 +78782,7 @@ function D8() {});}// src/application/navigation-items.ts-var O8 = [+var k8 = [["","首页",@@ -78808,7 +78833,7 @@ var O8 = ["管理","wrench"]-], k8 = [+], A8 = [["stats","统计",@@ -78854,18 +78879,18 @@ var O8 = ["Peach 配置","folder-cog"]-], A8 = [+], j8 = ["stats","taste","cleanup","follow","activity","configuration"-], uFe = (e) => k8.filter(([t]) => A8.includes(t) && (t !== "configuration" || e)), j8 = k8.flatMap(([e, t, n]) => e === "configuration" ? [] : [[+], dFe = (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-]]), dFe = [...O8, ...j8], fFe = {+]]), fFe = [...k8, ...M8], pFe = {stats: "stats",review: "review","data-cleanup": "cleanup",@@ -78873,18 +78898,18 @@ var O8 = ["follow-manage": "follow",quality: "quality",activity: "activity"-}, M8 = [+}, N8 = [["0", "不限时间"],["7", "最近 7 天"],["30", "最近 30 天"],["90", "最近 90 天"]];// src/react/index/index-controller.ts-function N8({ kind: e, q: t, scope: n, view: r, category: i }) {+function P8({ kind: e, q: t, scope: n, view: r, category: i }) {let a = new URLSearchParams();return t && a.set("q", t), e === "tags" && (a.set("view", r), n === "online" && a.set("scope", n), i !== "all" && a.set("category", i)), e === "performers" && n === "online" && a.set("scope", n), e === "performers" && n !== "online" && i !== "all" && a.set("category", i), `/${e}` + (a.size ? `?${a}` : "");}-function P8(e, t, n) {+function F8(e, t, n) {let r = e.entity_id || e.id, i = t === "studio" || t === "agency";return {html: go(e.k, r ? {@@ -78897,20 +78922,20 @@ function P8(e, t, n) {face: vo(e.avatar_focus)};}-function F8(e) {+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="${z(e.avatar)}" alt="" loading="lazy" referrerpolicy="no-referrer" ${Ba({ fallbacks: [e.avatar_fallback || ""] })}>` : "";return `<span class="ini">${z(n)}</span>${r}`;}-function pFe(e) {+function mFe(e) {let t = (t) => {e.adoptFollowView(t), e.hideIndex(), e.openPage(Oa(t));};return {route(t, { replace: n = !1 } = {}) {- e.route(N8(t), n);+ e.route(P8(t), n);},- personAvatar: P8,- authorAvatar: F8,+ personAvatar: F8,+ authorAvatar: I8,openFollowAuthor(n) {t(ka(e.followView(), n));},@@ -78920,7 +78945,7 @@ function pFe(e) {};}// src/application/effects.ts-var I8 = class {+var L8 = class {cleanups = /* @__PURE__ */ new Set();active = !0;disposed = !1;@@ -79001,12 +79026,12 @@ var I8 = class {}if (e.length) throw AggregateError(e, "应用资源清理未全部完成");}-}, L8 = new I8();-function mFe() {- return L8.dispose(), L8 = new I8(), L8;+}, R8 = new L8();+function hFe() {+ return R8.dispose(), R8 = new L8(), R8;}// src/application/source-action.ts-function hFe(e) {+function gFe(e) {return async (t, n, { button: r = null } = {}) => {if (r?.getAttribute("aria-busy") === "true") return;let i = r?.innerHTML ?? "", a = r?.textContent?.trim() ?? "";@@ -79021,36 +79046,36 @@ function hFe(e) {};}// src/react/entity-page/entity-route.ts-var R8 = () => Object.fromEntries(mZ.map((e) => [e, e === "sort" ? "new" : e === "dir" ? "desc" : ""]));-function z8(e, t) {- let n = new URLSearchParams(e), r = R8();+var z8 = () => Object.fromEntries(mZ.map((e) => [e, e === "sort" ? "new" : e === "dir" ? "desc" : ""]));+function B8(e, t) {+ let n = new URLSearchParams(e), r = z8();for (let e of mZ) e !== "sort" && e !== "dir" && (r[e] = n.get(e) || "");return {...r,...Qj(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")};}-function B8(e) {+function V8(e) {let t = new URLSearchParams();for (let n of mZ) !e[n] || n === "sort" && e[n] === "new" || n === "dir" && e[n] === Yj(e.sort || "") || t.set(n, e[n]);return t.toString();}-function V8(e) {+function H8(e) {let t = new URLSearchParams(e), n = t.get("set") || "", r = t.get("media");return {media: r === "photos" || r === "online" ? r : "videos",set: r === "photos" && /^\d+$/.test(n) ? Number(n) : 0};}-function H8(e, t) {- let n = new URLSearchParams(B8(e));+function U8(e, t) {+ let n = new URLSearchParams(V8(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 gFe(e, t, n, r) {- let i = H8(n, r);+function _Fe(e, t, n, r) {+ let i = U8(n, r);return Nn(e, t) + (i ? `?${i}` : "");}-function _Fe() {+function vFe() {let e = "";return {fresh(t, n) {@@ -79059,22 +79084,22 @@ function _Fe() {read(t, n, r, i) {let a = e === Nn(t, n) && !r;e = "";- let o = a ? R8() : { ...z8(r, i) };+ let o = a ? z8() : { ...B8(r, i) };return t === "creator" && (o.creator = ""), {filters: o,media: a ? {media: "videos",set: 0- } : V8(r)+ } : H8(r)};}};}// src/react/entity-page/photo-surface.ts-function vFe(e, t) {+function yFe(e, t) {return e.entityWall && e.entityCurrent && e.indexVisible || e.pathname === "/follow" && e.followMedia === "images" && e.statsVisible ? !0 : t();}-function yFe(e) {+function bFe(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);@@ -79096,12 +79121,12 @@ function yFe(e) {};}// src/react/entity-page/entity-controller.ts-function bFe(e, t, n) {+function xFe(e, t, n) {let r = (t, n, r, i = {media: "videos",set: 0}, { push: a = !0 } = {}) => {- if (a && e.route(gFe(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;+ if (a && e.route(_Fe(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;e.releaseBodyPreviews();let o = e.state();return e.push({@@ -79115,7 +79140,7 @@ function bFe(e, t, n) {if (s) return s;let c = () => {let n = e.context();- return n?.kind === t && n.name === a ? n.filters : R8();+ return n?.kind === t && n.name === a ? n.filters : z8();}, l = {...n,route: (e, n) => {@@ -79179,7 +79204,7 @@ function bFe(e, t, n) {};}// src/react/entity-page/entity-loading.ts-function xFe(e) {+function SFe(e) {return async (t, n, r) => {e.paintSkeleton(t, n), e.resetView(), e.shapesReady(t, n) || e.waitShapes().then(() => {r() && e.syncParts(t, n);@@ -79189,7 +79214,7 @@ function xFe(e) {};}// src/react/entity-page/entity-portrait.ts-function SFe(e, t) {+function CFe(e, t) {let n = e === "studio" || e === "agency", r = t.id ? ho({kind: e,id: t.id,@@ -79211,11 +79236,11 @@ function SFe(e, t) {return r || (i?.avatar ? `<img src="${z(i.avatar)}" alt="${z(t.canonical_name)}" referrerpolicy="no-referrer" ${Ba({ fallbacks: [i.avatar_fallback || ""] })}>` : "");}// src/react/entity-page/entity-application.ts-function CFe(e) {- let t = _Fe(), n = {+function wFe(e) {+ let t = vFe(), n = {...e.helpers,- portraitImg: SFe- }, r = bFe(e.controller, n, e.actions);+ portraitImg: CFe+ }, r = xFe(e.controller, n, e.actions);return {...r,helpers: n,@@ -79224,12 +79249,12 @@ function CFe(e) {let { filters: o, media: s } = t.read(n, i, a, e.sortPreference());return r.props(n, i, o, s);},- loading: xFe(e.loading),- photos: yFe(e.photos)+ loading: SFe(e.loading),+ photos: bFe(e.photos)};}// src/card-art/feed-identity.ts-function wFe(e) {+function TFe(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="${z(e.code)}" data-actor="${z(t.source_actor_id)}" data-name="${z(t.name)}"` : "", i = n ? "" : go(t.name, t, null);return "id" in t && t.id ? `<a class="mav"${r} href="${z(Nn("performer", t.name, t.id))}" aria-label="打开女优页:${z(t.name)}">${i}</a>` : `<span class="mav"${r} title="${z(t.name)}">${i}</span>`;@@ -79237,7 +79262,7 @@ function wFe(e) {return r.length > 1 ? `<div class="mavstack">${i}</div>` : i;}// src/application/feed.js-var U8 = {+var W8 = {FEED_SKELETON_CARDS: void 0,feedNewSkeletonHtml: void 0,entityShapes: void 0,@@ -79253,11 +79278,11 @@ var U8 = {feedNewActions: void 0,HERO_WIDE_PX: void 0};-function W8(e) {+function G8(e) {return e.has_cover ? xo(e, "big") : !e.cover_url || !e.code ? e.cover_fetching ? `<span class="nopic" data-feed-cover-state="fetching">${Vs("抓取中")}</span>` : "<span class=\"nopic\" data-feed-cover-state=\"missing\">无封面</span>" : xo(e, "big").replace(/ src="[^"]*"/, ` src="${z(uo(e))}" data-panel-prior="1"`).replace("data-drop=\"self\"", "data-drop=\"initial\" data-initial=\"封面未取得\" data-drop-class=\"nopic\"");}-function TFe(e) {- let t = [e.performers && `<span class="feednewperformers" title="${z(e.performers)}">${z(e.performers)}</span>`, e.release_date && `<span>${z(e.release_date)}</span>`].filter(Boolean).join(""), n = W8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? lL({+function EFe(e) {+ let t = [e.performers && `<span class="feednewperformers" title="${z(e.performers)}">${z(e.performers)}</span>`, e.release_date && `<span>${z(e.release_date)}</span>`].filter(Boolean).join(""), n = G8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? lL({is_jav: !0,code: e.code,name: e.code,@@ -79269,40 +79294,40 @@ function TFe(e) {<button type="button" data-feed-action="${e.wanted ? "unwant" : "want"}" aria-pressed="${!!e.wanted}" title="${e.wanted ? "取消想要" : "想要"}" aria-label="想要 ${z(r)}">${R("star")}</button><button type="button" data-feed-action="ignore" title="不想看" aria-label="不想看 ${z(r)}">${R("x")}</button><button type="button" data-feed-action="read" title="标为已看过" aria-label="标为已看过 ${z(r)}">${R("check")}</button></div></div>- <div class="meta">${wFe(e)}<div class="mtext"><span class="t">${i}</span>+ <div class="meta">${TFe(e)}<div class="mtext"><span class="t">${i}</span><div class="s mono">${t || (e.title ? "" : "资料还没取到")}</div></div></div></article>`;}-function EFe() {+function DFe() {let e = document.getElementById("peach-entity-shape");if (e) try {let t = JSON.parse(e.textContent || "null");if (!t?.id || typeof t.kind != "string" || !Array.isArray(t.names) || !Array.isArray(t.parts)) return;- U8.entityShapes = new Map([String(t.id), ...t.names].map((e) => [`${t.kind}/${Hn(e)}`, t.parts]));+ W8.entityShapes = new Map([String(t.id), ...t.names].map((e) => [`${t.kind}/${Hn(e)}`, t.parts]));} catch {}}-async function G8() {- let e = L8, t = await wn("/api/entity/shapes", { signal: e.signal }).catch(() => null);- return e.isActive && t && !t.error && (U8.entityShapesComplete = !0, U8.entityShapes = new Map((t.entities || []).flatMap((e) => [String(e.id), ...e.names].map((t) => [`${e.kind}/${Hn(t)}`, e.parts]))), typeof t.home?.feed == "boolean" && q8(t.home.feed), Z8(location.pathname) && J8(L("#feedNew"))), U8.entityShapes;+async function K8() {+ let e = R8, t = await wn("/api/entity/shapes", { signal: e.signal }).catch(() => null);+ return e.isActive && t && !t.error && (W8.entityShapesComplete = !0, W8.entityShapes = new Map((t.entities || []).flatMap((e) => [String(e.id), ...e.names].map((t) => [`${e.kind}/${Hn(t)}`, e.parts]))), typeof t.home?.feed == "boolean" && J8(t.home.feed), Q8(location.pathname) && Y8(L("#feedNew"))), W8.entityShapes;}-var K8 = "peach.home-feed.v1";-function q8(e) {+var q8 = "peach.home-feed.v1";+function J8(e) {X.homeHasFeed = e;try {- localStorage.setItem(K8, e ? "1" : "0");+ localStorage.setItem(q8, e ? "1" : "0");} catch {}}-function DFe() {+function OFe() {try {- let e = localStorage.getItem(K8);+ let e = localStorage.getItem(q8);return e === "1" || e !== "0" && null;} catch {return null;}}-function J8(e) {- !e || cp(e) || e.querySelector("[data-feed-id]") || (e.hidden = X.homeHasFeed !== !0, X.homeHasFeed === !0 && (e.setAttribute("aria-busy", "true"), e.querySelector(".feednewskeleton") || (e.innerHTML = U8.feedNewSkeletonHtml())));+function Y8(e) {+ !e || cp(e) || e.querySelector("[data-feed-id]") || (e.hidden = X.homeHasFeed !== !0, X.homeHasFeed === !0 && (e.setAttribute("aria-busy", "true"), e.querySelector(".feednewskeleton") || (e.innerHTML = W8.feedNewSkeletonHtml())));}-function OFe(e, t) {+function kFe(e, t) {return !(e > 0) || !t.some((e) => !e.has_cover) ? "" : Rs(`${e} 部新作的封面连不上 DMM 图片主机,中国移动宽带常见。把 DMM / FANZA 的连接方式设成 Peach 代理,下一轮会自动重取。`, {variant: "warning",className: "feednetwork",@@ -79310,55 +79335,55 @@ function OFe(e, t) {actionHref: "/sources"});}-function Y8(e) {+function X8(e) {let t = e && !e.error && e.items || [];- return OFe(e?.cover_network, t) + `<div class="feednewrow srow">${t.map(TFe).join("")}</div>`;+ return kFe(e?.cover_network, t) + `<div class="feednewrow srow">${t.map(EFe).join("")}</div>`;}-function X8(e) {+function Z8(e) {e && (r9(e), Z.appSettings.feedAutoScroll && Lc(e));}-function Z8(e) {+function Q8(e) {return An(e) && e !== "/junk-files";}-function kFe() {+function AFe() {let e = L("#feedNew");- cp(e) ? e.hidden = X.homeHasFeed !== !0 : (J8(e), fp("feed-new", {+ cp(e) ? e.hidden = X.homeHasFeed !== !0 : (Y8(e), fp("feed-new", {host: e,- revision: U8.feedRevision,- helpers: U8.feedNewHelpers,- actions: U8.feedNewActions+ revision: W8.feedRevision,+ helpers: W8.feedNewHelpers,+ actions: W8.feedNewActions}, {container: e,- isCurrent: () => Z8(location.pathname)+ isCurrent: () => Q8(location.pathname)}));}-function Q8() {+function $8() {let e = L("#feedNew");e.querySelectorAll(".feednewrow").forEach(Rc), e.hidden = !0;}-function $8() {- U8.feedRevision += 1, mp(L("#feedNew"), { revision: U8.feedRevision }), o5({ feedRevision: U8.feedRevision });+function e5() {+ W8.feedRevision += 1, mp(L("#feedNew"), { revision: W8.feedRevision }), s5({ feedRevision: W8.feedRevision });}-function AFe() {+function jFe() {document.querySelectorAll(".feednewrow").forEach((e) => Z.appSettings.feedAutoScroll ? Lc(e) : Rc(e));}-var e5 = 0;-function jFe([e]) {- let t = e.contentRect.width >= U8.HERO_WIDE_PX;- cancelAnimationFrame(e5), e5 = requestAnimationFrame(() => {- e5 = 0, L("#index")?.toggleAttribute("data-hero-wide", t);+var t5 = 0;+function MFe([e]) {+ let t = e.contentRect.width >= W8.HERO_WIDE_PX;+ cancelAnimationFrame(t5), t5 = requestAnimationFrame(() => {+ t5 = 0, L("#index")?.toggleAttribute("data-hero-wide", t);});}-function MFe() {- U8.FEED_SKELETON_CARDS = 8, U8.feedNewSkeletonHtml = () => `<div class="feednewrow srow" data-skeleton="feed/new" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${EM}"></div>+function NFe() {+ W8.FEED_SKELETON_CARDS = 8, W8.feedNewSkeletonHtml = () => `<div class="feednewrow srow" data-skeleton="feed/new" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${EM}"></div><div class="meta"><div class="mtext"><span class="t"><span class="skeleton"></span></span>- <div class="s mono"><span class="skeleton">​</span></div></div></div></article>`.repeat(U8.FEED_SKELETON_CARDS)}</div>`, U8.entityShapes = null, U8.entityShapesComplete = !1, U8.hasEntityShape = (e, t) => U8.entityShapesComplete || !!U8.entityShapes?.has(`${e}/${Hn(t)}`), U8.hasEntityPart = (e, t, n) => !!t && !!U8.entityShapes?.get(`${e}/${Hn(t)}`)?.includes(n), U8.feedNewSkeletonSection = () => `<section class="feednew">${U8.feedNewSkeletonHtml()}</section>`, U8.COSTAR_SKELETON_PEOPLE = 12, U8.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>​</span></button>".repeat(U8.COSTAR_SKELETON_PEOPLE)}</div></div>`, U8.factsSkeleton = () => `<dl class="entityfacts" data-entity-facts>${"<dt><span class=\"skeleton\"></span></dt><dd><span class=\"skeleton\"></span></dd>".repeat(5)}</dl>`, U8.feedRevision = 0, U8.feedNewHelpers = {- feedRowHtml: Y8,- wireFeedRow: (e) => X8(e)- }, U8.feedNewActions = { settled: (e) => q8(e) }, U8.HERO_WIDE_PX = 900, L8.resize(jFe).observe(L("#index"));+ <div class="s mono"><span class="skeleton">​</span></div></div></div></article>`.repeat(W8.FEED_SKELETON_CARDS)}</div>`, W8.entityShapes = null, W8.entityShapesComplete = !1, W8.hasEntityShape = (e, t) => W8.entityShapesComplete || !!W8.entityShapes?.has(`${e}/${Hn(t)}`), W8.hasEntityPart = (e, t, n) => !!t && !!W8.entityShapes?.get(`${e}/${Hn(t)}`)?.includes(n), W8.feedNewSkeletonSection = () => `<section class="feednew">${W8.feedNewSkeletonHtml()}</section>`, W8.COSTAR_SKELETON_PEOPLE = 12, W8.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>​</span></button>".repeat(W8.COSTAR_SKELETON_PEOPLE)}</div></div>`, W8.factsSkeleton = () => `<dl class="entityfacts" data-entity-facts>${"<dt><span class=\"skeleton\"></span></dt><dd><span class=\"skeleton\"></span></dd>".repeat(5)}</dl>`, W8.feedRevision = 0, W8.feedNewHelpers = {+ feedRowHtml: X8,+ wireFeedRow: (e) => Z8(e)+ }, W8.feedNewActions = { settled: (e) => J8(e) }, W8.HERO_WIDE_PX = 900, R8.resize(MFe).observe(L("#index"));}// src/entity-skeleton.ts-function NFe(e, t, n, r = "") {+function PFe(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">@@ -79372,10 +79397,10 @@ function NFe(e, t, n, r = "") {<div class="entitysection">${o}</div></div></section>`;}// src/filter-controls-skeleton.ts-var t5 = (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>` : ws(e, "size-4 shrink-0"), n5 = "inert aria-disabled=\"true\" tabindex=\"-1\" data-skeleton-control", r5 = (e, t, n) => `<span data-entity-layout="" class="${BU}" role="radiogroup" aria-label="${z(e)}">${n.map(([e, n, r]) => `<span class="${VU}" role="radio" aria-label="${z(n)}" aria-checked="${e === t}" data-glass-segment=""${e === t ? " data-selected=\"\"" : ""} ${n5}>${t5(r)}</span>`).join("")}</span>`;-function i5(e, t) {- let n = PG(), r = new URLSearchParams(location.search), i = t && n === "cards" ? r5(t.label, t.value, t.options) : "";- return `<span data-entity-sorts=""><button type="button" data-entity-batch="" data-filter-action="" aria-label="换一批" ${n5}>${t5("shuffle")}</button>${i}${r5("馆藏显示方式", n, [[+var n5 = (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>` : ws(e, "size-4 shrink-0"), r5 = "inert aria-disabled=\"true\" tabindex=\"-1\" data-skeleton-control", i5 = (e, t, n) => `<span data-entity-layout="" class="${VU}" role="radiogroup" aria-label="${z(e)}">${n.map(([e, n, r]) => `<span class="${HU}" role="radio" aria-label="${z(n)}" aria-checked="${e === t}" data-glass-segment=""${e === t ? " data-selected=\"\"" : ""} ${r5}>${n5(r)}</span>`).join("")}</span>`;+function a5(e, t) {+ let n = PG(), r = new URLSearchParams(location.search), i = t && n === "cards" ? i5(t.label, t.value, t.options) : "";+ return `<span data-entity-sorts=""><button type="button" data-entity-batch="" data-filter-action="" aria-label="换一批" ${r5}>${n5("shuffle")}</button>${i}${i5("馆藏显示方式", n, [["cards","卡片","ri-layout-grid-line"@@ -79383,7 +79408,7 @@ function i5(e, t) {"list","列表","ri-list-unordered"- ]])}<button type="button" data-folder-mode-toggle="" aria-label="文件夹模式" aria-pressed="${r.get("browse") === "folders" || !!r.get("folder")}" ${n5}>${t5("ri-folder-3-line")}</button>${e.map((e) => `<button type="button" data-entity-sort="${z(e.key)}" aria-pressed="${e.pressed}" ${n5}>${z(e.label)}${e.dir ? t5(e.dir === "asc" ? "arrow-up" : "arrow-down") : ""}</button>`).join("")}</span>`;+ ]])}<button type="button" data-folder-mode-toggle="" aria-label="文件夹模式" aria-pressed="${r.get("browse") === "folders" || !!r.get("folder")}" ${r5}>${n5("ri-folder-3-line")}</button>${e.map((e) => `<button type="button" data-entity-sort="${z(e.key)}" aria-pressed="${e.pressed}" ${r5}>${z(e.label)}${e.dir ? n5(e.dir === "asc" ? "arrow-up" : "arrow-down") : ""}</button>`).join("")}</span>`;}// src/application/entity.jsvar Y = {@@ -79411,16 +79436,16 @@ var Y = {sourceToolButtons: void 0,application: void 0};-function a5() {+function o5() {let e = sp(L("#index"));return e && e.path.endsWith("/*") && e.host.isConnected ? e : null;}-function o5(e) {+function s5(e) {Y.entityPageCurrent() && mp(L("#index"), e);}-function s5() {+function c5() {if (Gl.type === "item") return Gl;- let e = a5();+ let e = o5();if (e) {let { kind: t, name: n, filters: r } = e.props;return {@@ -79432,8 +79457,8 @@ function s5() {}return Gl;}-function c5(e, t, n = r7()) {- return TIe(n).map(([n, r]) => {+function l5(e, t, n = r7()) {+ return DIe(n).map(([n, r]) => {let i = e === n, a = Xj(n, e, t);return {key: n,@@ -79444,11 +79469,11 @@ function c5(e, t, n = r7()) {};});}-function l5(e, t, n, r = Y.EMPTY_ENTITY_MEDIA, i = {}) {+function u5(e, t, n, r = Y.EMPTY_ENTITY_MEDIA, i = {}) {return Y.application.route(e, t, n, r, i);}-function u5() {- return vFe({+function d5() {+ return yFe({entityWall: Y.entityPageWall,entityCurrent: Y.entityPageCurrent(),indexVisible: !L("#index").hidden,@@ -79457,37 +79482,37 @@ function u5() {statsVisible: !L("#stats").hidden}, () => [...document.querySelectorAll(".followphotowall")].some((e) => e.getClientRects().length > 0));}-function d5() {+function f5() {Y.photos.sync();}-function f5() {- u5() ? hle(MM()) : GM();+function p5() {+ d5() ? hle(MM()) : GM();}-function PFe(e) {+function FFe(e) {Y.photos.setSize(e);}-var p5 = hFe({+var m5 = gFe({request: (e) => wn("/api/reveal", {method: "POST",body: JSON.stringify({ id: e })}),- success: () => x8.toast({ text: "已在资源管理器中显示" }),+ success: () => S8.toast({ text: "已在资源管理器中显示" }),failureText: (e) => Y.sourceHint(e instanceof Error ? e.message : String(e))});-async function m5(e) {+async function h5(e) {let t = { textContent: "" };- return await p5(e, t), t.textContent;+ return await m5(e, t), t.textContent;}-async function FFe(e) {+async function IFe(e) {let t = { textContent: "" }, n = [];- return await h5(e, t, (e) => {+ return await g5(e, t, (e) => {e.items && (n = e.items.map((e) => e.id));}), {text: t.textContent,removed: n};}-async function h5(e, t, n) {+async function g5(e, t, n) {t.textContent = "正在核对目录…";try {let r = await wn("/api/purge-missing", {@@ -79500,7 +79525,7 @@ async function h5(e, t, n) {}if (t.textContent = r.removed ? `${Y.syncedText(r)}(核对 ${r.checked} 项${r.unreadable ? `,${r.unreadable} 项未能读取` : ""})` : r.unreadable ? `目录有 ${r.unreadable} 项暂时无法读取,本次未改动` : `目录内 ${r.checked} 项都还在,无需改动`, r.removed) {let e = (r.items || []).filter((e) => e.disposal !== "reattached").map((e) => e.id);- n && n(r), x8.actionReceipt(Y.syncedText(r), { undo: e.length ? async () => {+ n && n(r), S8.actionReceipt(Y.syncedText(r), { undo: e.length ? async () => {await wn("/api/batch", {method: "POST",body: JSON.stringify({@@ -79512,22 +79537,22 @@ async function h5(e, t, n) {restored: e.length});} : null });- } else x8.actionReceipt("目录核对完成,无需改动");+ } else S8.actionReceipt("目录核对完成,无需改动");} catch (e) {- t.textContent = Y.sourceHint(e.message), x8.actionFailure("核对目录", e);+ t.textContent = Y.sourceHint(e.message), S8.actionFailure("核对目录", e);}}-function IFe(e) {+function LFe(e) {return `<div class="srctools">${Y.sourceToolButtons(e)}<span class="srcstate" aria-live="polite"></span></div>`;}-function LFe(e, t) {+function RFe(e, t) {let n = e.querySelector(".srcstate");if (!n) return;let r = e.querySelector("[data-reveal]"), i = e.querySelector("[data-sync]");- r && L8.handler(r, "onclick", () => p5(Number(r.dataset.reveal), n, { button: r })), i && L8.handler(i, "onclick", () => h5(Number(i.dataset.sync), n, t));+ r && R8.handler(r, "onclick", () => m5(Number(r.dataset.reveal), n, { button: r })), i && R8.handler(i, "onclick", () => g5(Number(i.dataset.sync), n, t));}-async function RFe(e, t) {+async function zFe(e, t) {let n = il({title: "添加别名",description: "图库按名字查找图片,添加别名可能找到更多备选图片;也可以将别名设为统一显示的名称。",@@ -79539,9 +79564,9 @@ async function RFe(e, t) {confirmDisabled: !0,onConfirm: () => t({ alias: r.value.trim() })}), r = n.dialog.querySelector("[name=alias]");- L8.handler(r, "oninput", () => {+ R8.handler(r, "oninput", () => {n.confirmButton.disabled = !r.value.trim();- }), n.dialog.querySelectorAll("[data-alias-drop]").forEach((e) => L8.handler(e, "onclick", async () => {+ }), n.dialog.querySelectorAll("[data-alias-drop]").forEach((e) => R8.handler(e, "onclick", async () => {let r = e.dataset.aliasDrop;n.close();try {@@ -79550,53 +79575,53 @@ async function RFe(e, t) {remove: !0});} catch (e) {- x8.actionFailure("撤销别名", e);+ S8.actionFailure("撤销别名", e);return;}- x8.actionReceipt(`已撤销别名 ${r}`, { undo: async () => {+ S8.actionReceipt(`已撤销别名 ${r}`, { undo: async () => {await t({ alias: r });} });}));let { confirmed: i, result: a } = await n.done;- i && (a?.added ? x8.actionReceipt(`已添加别名 ${a.alias}`, { undo: async () => {+ i && (a?.added ? S8.actionReceipt(`已添加别名 ${a.alias}`, { undo: async () => {await t({alias: a.alias,remove: !0});- } }) : x8.actionReceipt(`${a?.alias} 已经是这份档案中的名字`));+ } }) : S8.actionReceipt(`${a?.alias} 已经是这份档案中的名字`));}-function g5(e, t) {- let n = ["performer", "studio"].includes(e) && U8.hasEntityPart(e, t, "jav"), r = `<div data-filter-row="bottom" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><h3 data-entity-readout><span data-skeleton="count" class="relative inline-block h-3.5 w-24 rounded-md align-middle skeleton-sheen"></span></h3>${Ts()}${e === "agency" ? "" : i5(c5(U.sort, U.dir, n), n ? {+function _5(e, t) {+ let n = ["performer", "studio"].includes(e) && W8.hasEntityPart(e, t, "jav"), r = `<div data-filter-row="bottom" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><h3 data-entity-readout><span data-skeleton="count" class="relative inline-block h-3.5 w-24 rounded-md align-middle skeleton-sheen"></span></h3>${Ts()}${e === "agency" ? "" : a5(l5(U.sort, U.dir, n), n ? {name: "jav-layout",label: "JAV 卡片版式",value: OM(),options: CM- } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${n5}>${R("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${n5}>${R("pics")}</button></div><span data-entity-sep></span><div data-entity-scroll><div data-entity-states>${X.catalogViews().map((e) => `<button type="button" data-entity-state="${z(e.k)}" aria-pressed="${U.state === e.k}" ${n5}>${z(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = NFe(e, r, e === "agency" ? rc({+ } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${r5}>${R("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${r5}>${R("pics")}</button></div><span data-entity-sep></span><div data-entity-scroll><div data-entity-states>${X.catalogViews().map((e) => `<button type="button" data-entity-state="${z(e.k)}" aria-pressed="${U.state === e.k}" ${r5}>${z(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = PFe(e, r, e === "agency" ? rc({kind: "performers",- layout: M5.peopleIndexLayout()+ layout: N5.peopleIndexLayout()}) : xY("正在读取作品", IM(FM({active: n,home: !1,portrait: !1}))), i);- L("#index").firstElementChild?.dataset.skeleton === `entity/${e}` ? _5(e, t) : (L("#index").innerHTML = a, _5(e, t), uc(L("#index")));+ L("#index").firstElementChild?.dataset.skeleton === `entity/${e}` ? v5(e, t) : (L("#index").innerHTML = a, v5(e, t), uc(L("#index")));}-function _5(e, t) {+function v5(e, t) {let n = L("#index").firstElementChild;if (n?.dataset.skeleton !== `entity/${e}`) return;let r = (e, t, n) => {t && !e ? n() : !t && e && e.remove();};- r(n.querySelector(".entityfoot"), e !== "agency" && U8.hasEntityPart(e, t, "costars"), () => n.querySelector(".entityhero")?.insertAdjacentHTML("beforeend", U8.costarSkeletonFoot())), r(n.querySelector(".feednew"), U8.hasEntityPart(e, t, "feed"), () => n.querySelector(".entitysection")?.insertAdjacentHTML("beforebegin", U8.feedNewSkeletonSection())), r(n.querySelector(".entityfacts"), e === "performer" && U8.hasEntityPart(e, t, "facts"), () => n.querySelector(".entityprofile")?.insertAdjacentHTML("beforeend", U8.factsSkeleton()));+ r(n.querySelector(".entityfoot"), e !== "agency" && W8.hasEntityPart(e, t, "costars"), () => n.querySelector(".entityhero")?.insertAdjacentHTML("beforeend", W8.costarSkeletonFoot())), r(n.querySelector(".feednew"), W8.hasEntityPart(e, t, "feed"), () => n.querySelector(".entitysection")?.insertAdjacentHTML("beforebegin", W8.feedNewSkeletonSection())), r(n.querySelector(".entityfacts"), e === "performer" && W8.hasEntityPart(e, t, "facts"), () => n.querySelector(".entityprofile")?.insertAdjacentHTML("beforeend", W8.factsSkeleton()));}-function v5(e) {- let t = jn[e] || e, n = Q3[t] || "条目", r = Q3[t] ? `<a class="geist-button primary" href="/${t}">返回${n}列表</a>` : "";+function y5(e) {+ let t = jn[e] || e, n = $3[t] || "条目", r = $3[t] ? `<a class="geist-button primary" href="/${t}">返回${n}列表</a>` : "";L("#index").innerHTML = Z.emptyState("search-x", `找不到这个${n}`, "名字可能拼错了,或者已经合并到别的名字下;回列表里重新找。", { actions: r });}-function y5(e, t) {+function b5(e, t) {x9(Y.application.fresh(e, t));}-function zFe() {+function BFe() {Y.ENTITY_FILTER_KEYS = ["loc","creator",@@ -79608,40 +79633,40 @@ function zFe() {"year","sort","dir"- ], Y.emptyEntityFilters = R8, Y.parseEntityFilters = (e) => z8(e, {+ ], Y.emptyEntityFilters = z8, Y.parseEntityFilters = (e) => B8(e, {sort: Z.appSettings.defaultSort,dir: Z.appSettings.defaultSortDirection- }), Y.entityFilterSearch = B8, Y.cloneBarsContext = (e) => e && e.type === "entity" ? {+ }), Y.entityFilterSearch = V8, Y.cloneBarsContext = (e) => e && e.type === "entity" ? {...e,filters: { ...e.filters }} : e, Y.activeFilterState = () => {- let e = s5();+ let e = c5();return e.type === "home" ? U : e.filters;}, L("#q").value = U.q, X.rememberSearchValue();}-function BFe() {- Y.entityPageView = "", Y.entityPageWall = !1, Y.entityPageRevision = 0, Y.entityPageCurrent = () => !!a5(), Y.entityPageLive = (e, t) => {- let n = a5();+function VFe() {+ Y.entityPageView = "", Y.entityPageWall = !1, Y.entityPageRevision = 0, Y.entityPageCurrent = () => !!o5(), Y.entityPageLive = (e, t) => {+ let n = o5();return !!n && !L("#index").hidden && n.props.kind === e && n.props.name === t;}, Y.EMPTY_ENTITY_MEDIA = {media: "videos",set: 0- }, Y.parseMediaView = V8, Y.entityViewSearch = H8, Y.entityBodyCanLoadMore = () => !L("#index").hidden && L("#stats").hidden, Y.entityBodySkeleton = () => Y7(), Y.entityPageHelpers = {+ }, Y.parseMediaView = H8, Y.entityViewSearch = U8, Y.entityBodyCanLoadMore = () => !L("#index").hidden && L("#stats").hidden, Y.entityBodySkeleton = () => Y7(), Y.entityPageHelpers = {wireDrag: (e) => {e && r9(e);},wireScroller: (e) => {e && Dc(e);},- wireFeedRow: (e) => X8(e),- feedRowHtml: Y8,- receipt: (e, t) => x8.actionReceipt(e, t),- failure: (e, t) => x8.actionFailure(e, t),- aliasForm: (e, t) => RFe(e, t),- sourceToolsHtml: (e) => IFe(e),- wireSourceTools: (e, t) => LFe(e, t),+ wireFeedRow: (e) => Z8(e),+ feedRowHtml: X8,+ receipt: (e, t) => S8.actionReceipt(e, t),+ failure: (e, t) => S8.actionFailure(e, t),+ aliasForm: (e, t) => zFe(e, t),+ sourceToolsHtml: (e) => LFe(e),+ wireSourceTools: (e, t) => RFe(e, t),comboItems: (e) => R7(e),- sortKeys: (e, t, n) => c5(e, t, n)+ sortKeys: (e, t, n) => l5(e, t, n)}, Y.entityFollowActions = {...$.followFeedActions,route: () => {},@@ -79664,11 +79689,11 @@ function BFe() {<button type="button" data-sync="${e}" title="核对该目录:磁盘上已删除的移入 Peach 回收站,带个人记录的标为已消失"aria-label="同步删除">${R("folder-sync")}</button>`;}-function VFe() {- Y.application = CFe({+function HFe() {+ Y.application = wFe({controller: {context: () => {- let e = s5();+ let e = c5();return e.type === "entity" ? e : null;},live: (e, t) => Y.entityPageLive(e, t),@@ -79680,14 +79705,14 @@ function VFe() {filters: U} }),releaseBodyPreviews: () => Al(L("#index [data-entity-body]")),- push: o5,+ push: s5,state: () => ({seed: String(U.seed || ""),jav: U.jav === "1"}),preferences: () => ({revision: Y.entityPageRevision,- feedRevision: U8.feedRevision,+ feedRevision: W8.feedRevision,photoSize: MM(),photoLayout: NM(),photoLayouts: TM,@@ -79695,7 +79720,7 @@ function VFe() {javLayout: OM(),javLayouts: CM,states: X.VIEW_PILLS,- peopleLayout: M5.peopleIndexLayout(),+ peopleLayout: N5.peopleIndexLayout(),layout: J7(),selectMode: Yl,selected: new Set(ql),@@ -79710,34 +79735,34 @@ function VFe() {}}),changeFilter: T7,- rollSeed: () => x8.rollSeed(),+ rollSeed: () => S8.rollSeed(),writeSeed: (e) => {U.seed = e, bu();},setJavLayout: o7,javLayout: OM,setPhotoLayout: RM,- syncPhotoWalls: d5,- openEntity: y5,- photoViewActive: u5,+ syncPhotoWalls: f5,+ openEntity: b5,+ photoViewActive: d5,recordPainted: (e, t) => {Y.entityPageView = e, Y.entityPageWall = t;},- syncDensity: f5,+ syncDensity: p5,scheduleSticky: p7,releasePage: () => hp(L("#index")),- showMissing: v5,- dropBars: D8+ showMissing: y5,+ dropBars: O8},loading: {- shapesReady: (e, t) => U8.hasEntityShape(e, t),- waitShapes: z5,- paintSkeleton: g5,+ shapesReady: (e, t) => W8.hasEntityShape(e, t),+ waitShapes: B5,+ paintSkeleton: _5,resetView: () => {yu({ detailReturnBarsContext: null }), Y.entityPageView = "", Y.entityPageWall = !1;},- loadShapes: G8,- syncParts: _5+ loadShapes: K8,+ syncParts: v5},photos: {preferences: () => ({@@ -79746,15 +79771,15 @@ function VFe() {imagesOnly: !!Z.appSettings.followImagesOnly}),walls: () => document.querySelectorAll(".followphotowall"),- pushEntity: o5,+ pushEntity: s5,pushFollow: E9,- syncDensity: f5,+ syncDensity: p5,storeSize: ple},helpers: Y.entityPageHelpers,actions: {toggleTag: L7,- openFollowAuthor: F5,+ openFollowAuthor: I5,javContext: (e) => yu({ entityJavLayout: !!e })},sortPreference: () => ({@@ -79764,8 +79789,8 @@ function VFe() {}), Y.photos = Y.application.photos, Y.entityPageHelpers = Y.application.helpers;}// src/application/playlists.js-var b5 = { playlistWrite: void 0 };-function HFe(e, t) {+var x5 = { playlistWrite: void 0 };+function UFe(e, t) {e === "tag" ? (yu({ state: {...U,tag: t,@@ -79775,17 +79800,17 @@ function HFe(e, t) {q: "",state: "",orient: ""- } }), X.clearSearchField(), Q.route(v7()), W5(), F7()) : y5(e, t);+ } }), X.clearSearchField(), Q.route(v7()), G5(), F7()) : b5(e, t);}-function x5(e = "") {+function S5(e = "") {return `<label class="modalfield"><span>名称</span><input class="geist-input" name="name"maxlength="80" placeholder="输入名称" value="${z(e)}"></label>`;}-async function UFe({ title: e, count: t, save: n }) {+async function WFe({ title: e, count: t, save: n }) {let r = il({title: "保存为播放列表",description: `这个 Mix 的 ${t} 个视频会存成一份可以继续播放的列表。`,- body: x5(e),+ body: S5(e),confirmLabel: "保存为播放列表",onConfirm: () => {let e = r.dialog.querySelector("[name=\"name\"]").value.trim();@@ -79795,28 +79820,28 @@ async function UFe({ title: e, count: t, save: n }) {});r.dialog.querySelector("[name=\"name\"]").select();let { confirmed: i, result: a } = await r.done;- i && (await l9(a.id, a.current_asset_id, !0), x8.actionReceipt("已保存为播放列表", { undo: async () => {- await b5.playlistWrite({+ i && (await l9(a.id, a.current_asset_id, !0), S8.actionReceipt("已保存为播放列表", { undo: async () => {+ await x5.playlistWrite({action: "delete",id: a.id}), x9("/playlists");} }));}-async function WFe(e) {+async function GFe(e) {let t = ((await wn("/api/playlists")).items || []).map((e) => `<label class="pickrow">${Ws(`data-pick-playlist="${e.id}"`)}<span class="pickrowtext"><b>${z(e.name)}</b><small>${e.item_count} 个视频</small></span></label>`).join(""), n = il({title: "加入播放列表",description: "勾选要加入的列表,或者填个名称新建一份。",- body: x5() + (t ? `<div class="picklist" role="group" aria-label="已有播放列表">${t}</div>` : Rs("还没有播放列表,填个名称就能新建一份。", { size: "small" })),+ body: S5() + (t ? `<div class="picklist" role="group" aria-label="已有播放列表">${t}</div>` : Rs("还没有播放列表,填个名称就能新建一份。", { size: "small" })),confirmLabel: "保存",confirmDisabled: !0,onConfirm: async () => {- let t = n.dialog.querySelector("[name=\"name\"]").value.trim(), r = [...n.dialog.querySelectorAll("[data-pick-playlist]:checked")].map((e) => +e.dataset.pickPlaylist), i = t ? (await b5.playlistWrite({+ let t = n.dialog.querySelector("[name=\"name\"]").value.trim(), r = [...n.dialog.querySelectorAll("[data-pick-playlist]:checked")].map((e) => +e.dataset.pickPlaylist), i = t ? (await x5.playlistWrite({action: "create",name: t,asset_ids: [e.id]})).playlist : null;- for (let t of r) await b5.playlistWrite({+ for (let t of r) await x5.playlistWrite({action: "add",id: t,asset_ids: [e.id]@@ -79830,46 +79855,46 @@ async function WFe(e) {let e = n.dialog.querySelector("[name=\"name\"]").value.trim();n.confirmButton.disabled = !e && !n.dialog.querySelector("[data-pick-playlist]:checked");};- L8.listen(n.dialog, "input", r), L8.listen(n.dialog, "change", r);+ R8.listen(n.dialog, "input", r), R8.listen(n.dialog, "change", r);let { confirmed: i, result: a } = await n.done;if (!i) return;let o = +!!a.created + a.added.length;- x8.actionReceipt(`已加入 ${o} 个播放列表`, { undo: async () => {- for (let t of a.added) await b5.playlistWrite({+ S8.actionReceipt(`已加入 ${o} 个播放列表`, { undo: async () => {+ for (let t of a.added) await x5.playlistWrite({action: "remove",id: t,asset_id: e.id});- a.created && await b5.playlistWrite({+ a.created && await x5.playlistWrite({action: "delete",id: a.created.id});} });}-function S5() {- Al(), s9(!1), U5();+function C5() {+ Al(), s9(!1), W5();let e = sp(L("#stats"));- e?.path !== "/playlists" || !e.host.isConnected ? yu({ pageOpens: uu + 1 }) : (H5({ manage: !1 }), yu({ playlistsRevision: gu + 1 }));+ e?.path !== "/playlists" || !e.host.isConnected ? yu({ pageOpens: uu + 1 }) : (U5({ manage: !1 }), yu({ playlistsRevision: gu + 1 }));}-function GFe(e) {+function KFe(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 : ""));}-function C5(e) {+function w5(e) {yu({ configurationRequestedSection: e }), Q.navigatePath(Mf(e));}-function KFe() {- b5.playlistWrite = (e) => wn("/api/playlist", {+function qFe() {+ x5.playlistWrite = (e) => wn("/api/playlist", {method: "POST",body: JSON.stringify(e)});}// src/react/catalog-grid/selection-controller.ts-function w5(e) {+function T5(e) {return e === "/follow" ? "follow" : e === "/junk-files" ? "junk" : "catalog";}-function T5(e, t, n, r, i = !1) {+function E5(e, t, n, r, i = !1) {return i && (e.selected.clear(), e.followSelected.clear()), {selectMode: r,selectSurface: r ? t.selectMode ? t.selectSurface : n : "",@@ -79877,23 +79902,23 @@ function T5(e, t, n, r, i = !1) {followLastSelectedId: i ? null : t.followLastSelectedId};}-function E5(e, t, n, r, i, a = !1) {+function D5(e, t, n, r, i, a = !1) {let o = n === "follow", s = rX(o ? e.followSelected : e.selected, r, o ? t.followLastSelectedId : t.lastSelectedId, i, a);return {- ...T5(e, t, n, !0),+ ...E5(e, t, n, !0),...o ? { followLastSelectedId: s } : { lastSelectedId: s }};}-function qFe(e, t, n, r) {- let i = w5(t);+function JFe(e, t, n, r) {+ let i = T5(t);return {count: (i === "follow" ? e.followSelected : e.selected).size,context: i === "catalog" && r === "trash" ? "trash" : i,- junkDismissed: eW(n).view === "dismissed"+ junkDismissed: tW(n).view === "dismissed"};}// src/application/selection.js-var D5 = {+var O5 = {batchDockProps: void 0,trashCount: void 0,currentSelectSurface: void 0,@@ -79901,43 +79926,43 @@ var D5 = {BATCH_RUNNERS: void 0,coverRecheck: void 0};-function O5() {+function k5() {K7({selected: new Set(ql),selectMode: Yl- }), o5({+ }), s5({selected: new Set(ql),selectMode: Yl}), E9({selected: new Set(Jl),selectMode: Yl- }), D5.batchDockProps = rIe(), v8() && (v8().render(D5.batchDockProps), Z.syncGlassOptics());+ }), O5.batchDockProps = iIe(), y8() && (y8().render(O5.batchDockProps), Z.syncGlassOptics());}-function k5(e, t = !1) {- yu(T5({+function A5(e, t = !1) {+ yu(E5({selected: ql,followSelected: Jl- }, j5(), w5(location.pathname), !!e, t)), document.body.classList.toggle("select-mode", Yl), Yl && Al(), L("#selectMode").setAttribute("aria-pressed", String(Yl)), O5();+ }, M5(), T5(location.pathname), !!e, t)), document.body.classList.toggle("select-mode", Yl), Yl && Al(), L("#selectMode").setAttribute("aria-pressed", String(Yl)), k5();}-function JFe() {- return [...I5.gridCards()].map((e) => +e.dataset.id);+function YFe() {+ return [...L5.gridCards()].map((e) => +e.dataset.id);}-function A5(e, t = !1) {- yu(E5({+function j5(e, t = !1) {+ yu(D5({selected: ql,followSelected: Jl- }, j5(), w5(location.pathname), JFe(), e, t)), k5(!0);+ }, M5(), T5(location.pathname), YFe(), e, t)), A5(!0);}-function YFe() {+function XFe() {return [...document.querySelectorAll("[data-follow-list] > [data-follow-item]")].map((e) => +e.dataset.followItem);}-function XFe(e, t = !1) {- yu(E5({+function ZFe(e, t = !1) {+ yu(D5({selected: ql,followSelected: Jl- }, j5(), "follow", YFe(), e, t)), k5(!0);+ }, M5(), "follow", XFe(), e, t)), A5(!0);}-async function ZFe(e, t) {+async function QFe(e, t) {let n = {like: "喜欢",seen: "标为看过",@@ -79969,9 +79994,9 @@ async function ZFe(e, t) {})});if (t.blocked && t.blocked.length) throw Error(`已永久删除 ${t.purged} 项;${t.blocked.length} 项未能删除,仍在回收站:\n` + t.blocked.slice(0, 5).map((e) => `${e.path}(${e.reason})`).join("\n"));- k5(!1, !0), await c7();+ A5(!1, !0), await c7();let r = e === "dispose" ? "restore" : e === "restore" ? "dispose" : null;- x8.actionReceipt(`已${n[e]} ${i.length} 项`, { undo: r ? async () => {+ S8.actionReceipt(`已${n[e]} ${i.length} 项`, { undo: r ? async () => {if (r === "dispose" && t.restored_reasons) for (let e of [null,"manual",@@ -80001,18 +80026,18 @@ async function ZFe(e, t) {} catch (e) {throw qc(t, !1), e;} finally {- qc(t, !1), O5();+ qc(t, !1), k5();}}});}-async function QFe() {+async function $Fe() {let e = [...ql];if (!e.length) return;let t = il({title: "判定产地",description: `选中的 ${e.length} 项归为同一个产地。判定之后,刮削和自动推断不再改写产地。`,- body: "<div class=\"chips\" role=\"group\" aria-label=\"产地\">" + D5.REGION_CHOICES.map(([e, t]) => `<button type="button" class="chip" aria-pressed="false" data-region-pick="${e}">+ body: "<div class=\"chips\" role=\"group\" aria-label=\"产地\">" + O5.REGION_CHOICES.map(([e, t]) => `<button type="button" class="chip" aria-pressed="false" data-region-pick="${e}"><span class="chip-label">${t}</span></button>`).join("") + "</div>",confirmLabel: "判定产地",confirmDisabled: !0,@@ -80032,13 +80057,13 @@ async function QFe() {};}});- t.dialog.querySelectorAll("[data-region-pick]").forEach((e) => L8.handler(e, "onclick", () => {+ t.dialog.querySelectorAll("[data-region-pick]").forEach((e) => R8.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 && (k5(!1, !0), await c7(), x8.actionReceipt(r.region === "none" ? `已撤回 ${e.length} 项的产地判定` : `已判为${r.label}:${e.length} 项`));+ n && (A5(!1, !0), await c7(), S8.actionReceipt(r.region === "none" ? `已撤回 ${e.length} 项的产地判定` : `已判为${r.label}:${e.length} 项`));}-async function $Fe(e, t) {+async function eIe(e, t) {let n = [...Jl];if (!n.length) return;let r = {@@ -80064,16 +80089,16 @@ async function $Fe(e, t) {items: n,to: e})- }), k5(!1, !0), location.pathname === "/follow" && yu({ pageOpens: uu + 1 }), x8.actionReceipt(`已${r[e]} ${n.length} 项`);+ }), A5(!1, !0), location.pathname === "/follow" && yu({ pageOpens: uu + 1 }), S8.actionReceipt(`已${r[e]} ${n.length} 项`);} catch (e) {throw qc(t, !1), e;} finally {- qc(t, !1), O5();+ qc(t, !1), k5();}}});}-async function eIe(e, t) {+async function tIe(e, t) {let n = [...ql];if (!n.length) return;let r = {@@ -80100,9 +80125,9 @@ async function eIe(e, t) {operation: e,...e === "dispose" ? { disposal_reason: "junk" } : {}})- }), k5(!1, !0), await B7();+ }), A5(!1, !0), await B7();let t = e === "dispose" ? "restore" : e === "dismiss-junk" ? "reconsider-junk" : e === "reconsider-junk" ? "dismiss-junk" : null;- x8.actionReceipt(`已批量${r[e]}:${n.length} 项`, { undo: t ? async () => {+ S8.actionReceipt(`已批量${r[e]}:${n.length} 项`, { undo: t ? async () => {await wn("/api/batch", {method: "POST",body: JSON.stringify({@@ -80114,54 +80139,54 @@ async function eIe(e, t) {} catch (e) {throw qc(t, !1), e;} finally {- qc(t, !1), O5();+ qc(t, !1), k5();}}});}-function tIe() {- XPe({+function nIe() {+ ZPe({root: L("[data-batch-dock]"),run: (e, t, n) => {- D5.BATCH_RUNNERS[e]?.(t, n);+ O5.BATCH_RUNNERS[e]?.(t, n);}}).then((e) => {- e.render(D5.batchDockProps), Z.syncGlassOptics();+ e.render(O5.batchDockProps), Z.syncGlassOptics();}).catch(() => {});}-function nIe() {- D5.batchDockProps = {+function rIe() {+ O5.batchDockProps = {count: 0,context: "catalog",junkDismissed: !1- }, D5.trashCount = null, D5.currentSelectSurface = () => w5(location.pathname), L8.handler(L("#selectMode"), "onclick", () => k5(!Yl, !!Yl)), D5.REGION_CHOICES = [+ }, O5.trashCount = null, O5.currentSelectSurface = () => T5(location.pathname), R8.handler(L("#selectMode"), "onclick", () => A5(!Yl, !!Yl)), O5.REGION_CHOICES = [["jp", "日本"],["kr", "韩国"],["cn", "国产"],["west", "欧美"],["other", "其他"],["none", "撤回判定"]- ], D5.BATCH_RUNNERS = {- batch: ZFe,- region: QFe,- follow: $Fe,- junk: eIe,- clear: () => k5(!1, !0)- }, L8.handler(L("#density"), "onclick", () => {- u5() ? PFe(MM() === "big" ? "small" : "big") : mle();+ ], O5.BATCH_RUNNERS = {+ batch: QFe,+ region: $Fe,+ follow: eIe,+ junk: tIe,+ clear: () => A5(!1, !0)+ }, R8.handler(L("#density"), "onclick", () => {+ d5() ? FFe(MM() === "big" ? "small" : "big") : mle();}), GM(), Ol({selecting: () => Yl,censored: () => t9(),delaySeconds: () => Z.appSettings.hoverDelaySeconds- }), L8.listen(window, "pagehide", () => Al()), L8.listen(document, "visibilitychange", () => {+ }), R8.listen(window, "pagehide", () => Al()), R8.listen(document, "visibilitychange", () => {document.hidden && Al();- }), Tl(), D5.coverRecheck = 0, L8.listen(window, "resize", () => {- Sl(L("#index")), clearTimeout(D5.coverRecheck), D5.coverRecheck = L8.delay(() => L("#index").querySelectorAll("img.cover").forEach((e) => {+ }), Tl(), O5.coverRecheck = 0, R8.listen(window, "resize", () => {+ Sl(L("#index")), clearTimeout(O5.coverRecheck), O5.coverRecheck = R8.delay(() => L("#index").querySelectorAll("img.cover").forEach((e) => {e.complete && pl(e);}), 200);}, { passive: !0 });}-function j5() {+function M5() {return {selectMode: Yl,selectSurface: Ql,@@ -80169,62 +80194,62 @@ function j5() {followLastSelectedId: Zl};}-function rIe() {- return qFe({+function iIe() {+ return JFe({selected: ql,followSelected: Jl}, location.pathname, location.search, U.state);}// src/application/index.js-var M5 = {+var N5 = {peopleIndexLayout: void 0,personAvatar: void 0};-function iIe() {+function aIe() {return Z.appSettings.followLayout === "table" ? "table" : "default";}-function aIe() {+function oIe() {return hQ(location.search);}-function oIe(e) {+function sIe(e) {return gQ(e);}-function sIe(e) {- Q.route(oIe(e));+function cIe(e) {+ Q.route(sIe(e));}-function cIe(e = "") {+function lIe(e = "") {return _Q(location.search, e);}-function lIe(e) {- return F8(e);+function uIe(e) {+ return I8(e);}-function N5(e) {- return N8(e);+function P5(e) {+ return P8(e);}-function P5() {+function F5() {L("#stats").hidden = !0, L("#index").hidden = !1, H7(), X.hideCatalogCombo(), L("#count").textContent = "", L("#loadSentinel").hidden = !0;}-function uIe(e, t) {+function dIe(e, t) {yu({ state: {...U,state: "",tag: e.join(","),tag_match: t- } }), k5(!1, !1), Q.route(v7()), W5(), _9(), F7();-}-function F5(e) {- M5.controller.openFollowAuthor(e);+ } }), A5(!1, !1), Q.route(v7()), G5(), _9(), F7();}-function dIe(e) {- M5.controller.openFollowTag(e);+function I5(e) {+ N5.controller.openFollowAuthor(e);}-function fIe() {- $.FOLLOW_MANAGE_TABS = mQ, L8.listen(document, "click", (e) => {- e.target.closest?.("[data-empty-settings]") && C5("媒体库与入库");- }), M5.peopleIndexLayout = () => $3(Z.appSettings.peopleLayout), M5.personAvatar = P8;+function fIe(e) {+ N5.controller.openFollowTag(e);}function pIe() {- M5.controller = pFe({+ $.FOLLOW_MANAGE_TABS = mQ, R8.listen(document, "click", (e) => {+ e.target.closest?.("[data-empty-settings]") && w5("媒体库与入库");+ }), N5.peopleIndexLayout = () => e6(Z.appSettings.peopleLayout), N5.personAvatar = F8;+}+function mIe() {+ N5.controller = mFe({route: Q.route,followView: C9,adoptFollowView: w9,@@ -80235,7 +80260,7 @@ function pIe() {});}// src/application/loading.js-var I5 = {+var L5 = {setGridCards: void 0,gridCards: void 0,managementPlaceholder: void 0,@@ -80244,54 +80269,54 @@ var I5 = {ENTITY_SHAPES_WAIT: void 0,syncPageTitle: void 0};-function L5(e = "正在读取作品") {+function R5(e = "正在读取作品") {if (location.pathname === "/wall") {L("#loadSentinel").hidden = !0;return;}let t = L("#count"), n = decodeURIComponent(location.pathname) === "/junk-files";- if (t.classList.toggle("manage-static", n), t.classList.toggle("junkcount", n), n ? (t.setAttribute("aria-busy", "true"), t.setAttribute("aria-label", e), t.innerHTML = wve(eW(location.search)), uc(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", U && D7({+ 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 = Tve(tW(location.search)), uc(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", U && D7({count: null,...A7()})), L("#loadSentinel").hidden = !0, G7()) return;let r = L("#grid"), i = Y7(e), a = r.querySelector(".catalog-skeleton");- (a?.dataset.skeleton !== D2(i) || Number(a.querySelector("[style]")?.style.getPropertyValue("--skeleton-card-ratio")) !== X7()) && (a ? r.innerHTML = `<div class="grid">${i}</div>` : I5.setGridCards(i), uc(L("#grid")));+ (a?.dataset.skeleton !== O2(i) || Number(a.querySelector("[style]")?.style.getPropertyValue("--skeleton-card-ratio")) !== X7()) && (a ? r.innerHTML = `<div class="grid">${i}</div>` : L5.setGridCards(i), uc(L("#grid")));}-function R5() {+function z5() {L("#catalogFilter").style.display = "none", E7();}-function z5() {+function B5() {let e = new Promise((e) => {- let t = I5.ENTITY_SHAPES_WAIT, n = performance.now(), r = () => {+ let t = L5.ENTITY_SHAPES_WAIT, n = performance.now(), r = () => {let i = performance.now();- t -= Math.min(i - n, 50), n = i, t > 0 ? L8.delay(r, Math.min(t, 50)) : e();+ t -= Math.min(i - n, 50), n = i, t > 0 ? R8.delay(r, Math.min(t, 50)) : e();};- L8.delay(r, 50);+ R8.delay(r, 50);});- return Promise.race([I5.entityShapesReady ||= G8(), e]);+ return Promise.race([L5.entityShapesReady ||= K8(), e]);}-function mIe() {+function hIe() {let e = decodeURIComponent(location.pathname);- if (document.body.dataset.surface = location.pathname, e === "/wall") document.body.setAttribute("data-wall-open", ""), R5();- else if (/^\/assets\/\d+$/.test(e)) R5();- else if (e === "/settings" || /^\/settings\/(appearance|playback|jav|search|content)$/.test(e) || e.startsWith("/posts/") || e.startsWith("/works/")) R5();- else if (e === "/junk-files") L5("正在读取垃圾文件");- else if (e === "/jav" && $H(new URLSearchParams(location.search).get("tab")) === "library") L5("正在读取馆藏");+ if (document.body.dataset.surface = location.pathname, e === "/wall") document.body.setAttribute("data-wall-open", ""), z5();+ else if (/^\/assets\/\d+$/.test(e)) z5();+ else if (e === "/settings" || /^\/settings\/(appearance|playback|jav|search|content)$/.test(e) || e.startsWith("/posts/") || e.startsWith("/works/")) z5();+ else if (e === "/junk-files") R5("正在读取垃圾文件");+ else if (e === "/jav" && eU(new URLSearchParams(location.search).get("tab")) === "library") R5("正在读取馆藏");else if (Q.managedPagePath(e)) {- R5();+ z5();let t = L("#stats");- t.hidden = !1, H7(), t.innerHTML = e.startsWith("/follow") && e !== "/subscriptions" ? $.followSkeletonHtml("正在读取关注内容") : I5.managementPlaceholder(e), uc(t);- } else if (/^\/(performers|creators|studios|agencies|tags)$/.test(e)) R5(), P5(), n6(L("#index"), e6(e.slice(1), location.search), M5.peopleIndexLayout());+ t.hidden = !1, H7(), t.innerHTML = e.startsWith("/follow") && e !== "/subscriptions" ? $.followSkeletonHtml("正在读取关注内容") : L5.managementPlaceholder(e), uc(t);+ } else if (/^\/(performers|creators|studios|agencies|tags)$/.test(e)) z5(), F5(), r6(L("#index"), t6(e.slice(1), location.search), N5.peopleIndexLayout());else if (/^\/(?:performers|creators|studios|agencies|series|tags)\//.test(e)) {- R5(), L("#index").hidden = !1, H7();+ z5(), L("#index").hidden = !1, H7();let t = Mn[e.split("/")[1]], n = e.split("/").slice(2).join("/");- (U8.hasEntityShape(t, n) ? Promise.resolve() : z5()).then(() => {- L("#index").firstElementChild || decodeURIComponent(location.pathname) !== e || (g5(t, n), uc(L("#index")));+ (W8.hasEntityShape(t, n) ? Promise.resolve() : B5()).then(() => {+ L("#index").firstElementChild || decodeURIComponent(location.pathname) !== e || (_5(t, n), uc(L("#index")));});- } else Q.routeMeta(e) ? L5() : (H7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0);+ } else Q.routeMeta(e) ? R5() : (H7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0);}-function hIe() {- $.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => T2(t, {+function gIe() {+ $.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => E2(t, {cards: !0,className: "follow-content-skeleton postercard-skeleton",gridClass: e === "images" ? "followlist followphotowall" : "",@@ -80303,37 +80328,37 @@ function hIe() {<div class="board-filter-frame" data-filter-frame><div class="tagbar followfilters" data-filter-row="top" data-skeleton-tier="pill"></div><div class="count followcount" data-filter-row="bottom"><span class="mono"><span class="countskeleton"></span></span></div></div>- ${$.followContentSkeletonHtml(void 0, e)}</div></div>`, L("#loadSentinel").innerHTML = Vs(Bs), I5.setGridCards = (e) => tc(L("#grid"), () => {+ ${$.followContentSkeletonHtml(void 0, e)}</div></div>`, L("#loadSentinel").innerHTML = Vs(Bs), L5.setGridCards = (e) => tc(L("#grid"), () => {L("#grid").innerHTML = `<div class="grid">${e}</div>`;- }), I5.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) :is([data-media-grid] > [data-media-card][data-id],[data-catalog-row][data-id])"), I5.managementPlaceholder = (e) => E2(e, {- followLayout: iIe(),+ }), L5.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) :is([data-media-grid] > [data-media-card][data-id],[data-catalog-row][data-id])"), L5.managementPlaceholder = (e) => D2(e, {+ followLayout: aIe(),...(({ sort: e, dir: t, tab: n }) => ({followSort: e,followDir: t,followTab: n- }))(aIe())- }), I5.wantsDiscoveryBars = () => L("#catalogFilter").style.display !== "none", I5.entityShapesReady = null, I5.ENTITY_SHAPES_WAIT = 400, I5.syncPageTitle = (e) => {+ }))(oIe())+ }), L5.wantsDiscoveryBars = () => L("#catalogFilter").style.display !== "none", L5.entityShapesReady = null, L5.ENTITY_SHAPES_WAIT = 400, L5.syncPageTitle = (e) => {let t = new URL(e, location.origin), n = Qf(decodeURIComponent(t.pathname))?.title;document.title = n ? `${n} · Peach` : "Peach · 蜜桃", document.body.dataset.surface = t.pathname, h9();};}// src/sidebar-skeleton.ts-var B5 = (e) => e.replace(/[&<>"']/g, (e) => ({+var V5 = (e) => e.replace(/[&<>"']/g, (e) => ({"&": "&","<": "<",">": ">","\"": ""","'": "'"})[e]);-function gIe(e, t, n) {+function _Ie(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-${B5(r)}"/></svg>`;- return `<button type="button" data-nav="${B5(e)}" aria-pressed="${n(e)}" aria-label="${B5(t)}">${i}<span>${B5(t)}</span></button>`;+ 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-${V5(r)}"/></svg>`;+ return `<button type="button" data-nav="${V5(e)}" aria-pressed="${n(e)}" aria-label="${V5(t)}">${i}<span>${V5(t)}</span></button>`;}).join("")}</div>`;}// src/application/filter-scroll.js-function _Ie(e, t, n, r = !1) {+function vIe(e, t, n, r = !1) {if (t = Math.max(0, t), !e || !n || r || t <= 8) return {y: t,origin: t,@@ -80351,7 +80376,7 @@ function _Ie(e, t, n, r = !1) {};}// src/application/layout.js-var V5 = {+var H5 = {sidebarProps: void 0,sidebarSurface: void 0,sidebarCatalog: void 0,@@ -80373,19 +80398,19 @@ var V5 = {mobileFilterHost: void 0,mobileFilterPath: void 0};-function H5({ manage: e = !0, placeholder: t = "" } = {}) {- L("#stats").hidden = !1, L("#index").hidden = !0, H7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0, e ? $5() : (e7(""), _9()), t && O2(L("#stats"), t);-}-function U5() {- L("#javLibraryHeader").hidden = !0, X.hideCatalogCombo(), R5(), document.body.classList.remove("entity-open", "index-open");+function U5({ manage: e = !0, placeholder: t = "" } = {}) {+ L("#stats").hidden = !1, L("#index").hidden = !0, H7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0, e ? $5() : (e7(""), _9()), t && k2(L("#stats"), t);}function W5() {- L("#javLibraryHeader").hidden = !An(location.pathname) || !r7(), document.body.classList.remove("entity-open", "index-open"), hp(L("#index")), L("#stats").hidden = !0, L("#index").hidden = !0, Z8(location.pathname) || (L("#feedNew").hidden = !0), L("#catalogFilter").style.display = "", E7(), $5(), t7();+ L("#javLibraryHeader").hidden = !0, X.hideCatalogCombo(), z5(), document.body.classList.remove("entity-open", "index-open");}-function vIe() {- Q.route("/"), W5();+function G5() {+ L("#javLibraryHeader").hidden = !An(location.pathname) || !r7(), document.body.classList.remove("entity-open", "index-open"), hp(L("#index")), L("#stats").hidden = !0, L("#index").hidden = !0, Q8(location.pathname) || (L("#feedNew").hidden = !0), L("#catalogFilter").style.display = "", E7(), $5(), t7();}-function G5({ tags: e = [], providers: t = [], duration: n = !1 }) {+function yIe() {+ Q.route("/"), G5();+}+function K5({ tags: e = [], providers: t = [], duration: n = !1 }) {g9({content: e.length || t.length || n ? {kind: "follow",@@ -80409,28 +80434,28 @@ function G5({ tags: e = [], providers: t = [], duration: n = !1 }) {filters: $.followSidebarFilters()});}-function K5(e) {- yLe({+function q5(e) {+ xLe({...C9(),...e}), g9({ filters: $.followSidebarFilters() });}-function q5() {+function J5() {return matchMedia("(max-width:760px)").matches;}-function J5(e) {+function Y5(e) {let t = L("#drawer"), n = !e && t.contains(document.activeElement);- t.inert = !e && q5(), t.classList.toggle("open", e), L("#scrim").classList.toggle("on", e), document.body.classList.toggle("drawer-open", !!e), document.dispatchEvent(new Event("board:sidebar")), L("#filterBtn").setAttribute("aria-expanded", String(!!e)), L("#filterBtn").setAttribute("aria-controls", "drawer"), L("#filterBtn").setAttribute("aria-label", e ? "收起侧栏" : "展开侧栏"), n && L("#filterBtn").focus(), sessionStorage.setItem("board.sidebar", e ? "open" : "closed");+ t.inert = !e && J5(), t.classList.toggle("open", e), L("#scrim").classList.toggle("on", e), document.body.classList.toggle("drawer-open", !!e), document.dispatchEvent(new Event("board:sidebar")), L("#filterBtn").setAttribute("aria-expanded", String(!!e)), L("#filterBtn").setAttribute("aria-controls", "drawer"), L("#filterBtn").setAttribute("aria-label", e ? "收起侧栏" : "展开侧栏"), n && L("#filterBtn").focus(), sessionStorage.setItem("board.sidebar", e ? "open" : "closed");}-function Y5() {- q5() && J5(!1);+function X5() {+ J5() && Y5(!1);}-function yIe() {+function bIe() {cu === null && (yu({ runtimeConfigurable: !1 }), wn("/healthz").then((e) => {yu({ runtimeConfigurable: !!e.configurable }), cu && Q5() && $5();}).catch(() => {}));}-function X5(e = "", t = !1) {+function Z5(e = "", t = !1) {if (!t && !Af(location.pathname)) {let t = W.navigation;W.push(Mf(e), { settingsBackground: {@@ -80443,20 +80468,20 @@ function X5(e = "", t = !1) {replace: !0,state: W.navigation.location.state});- return e ||= jf(location.pathname), qPe(V5.settingsHost()).then((t) => (t.open(e), t));+ return e ||= jf(location.pathname), JPe(H5.settingsHost()).then((t) => (t.open(e), t));}-function bIe() {+function xIe() {Af(location.pathname) && (Nf(W.navigation.location.state) ? W.go(-1) : Q.navigatePath("/", !0));}-function Z5() {+function SIe() {return {scroll: L("#drawerScroll"),store: Z.settingsStore,- navCatalog: V5.NAV_CATALOG,+ navCatalog: H5.NAV_CATALOG,navOn: u7,navTo: d7,navToTop: () => {- Y5(), cm();+ X5(), cm();},toggleChip: (e, t, n) => T7((r) => {if (n) {@@ -80468,13 +80493,13 @@ function Z5() {n.len = "", n.dur_min = e ? String(e * 60) : "", n.dur_max = t < 180 ? String(t * 60) : "";}),openFollowTag: (e) => {- $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followFilter = "saved", $.followDurMin = $.followDurMax = 0, $.followTags = /* @__PURE__ */ new Set([e]), J5(!1), x9(S9());+ $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followFilter = "saved", $.followDurMin = $.followDurMax = 0, $.followTags = /* @__PURE__ */ new Set([e]), Y5(!1), x9(S9());},selectFollowTag: (e) => {- $.followTags = /* @__PURE__ */ new Set([e]), J5(!1), x9(S9());+ $.followTags = /* @__PURE__ */ new Set([e]), Y5(!1), x9(S9());},- selectFollowProvider: (e) => K5({ provider: $.followProviders.has(e) ? "" : e }),- setFollowDuration: (e, t) => K5({+ selectFollowProvider: (e) => q5({ provider: $.followProviders.has(e) ? "" : e }),+ setFollowDuration: (e, t) => q5({durMin: e ? e * 60 : 0,durMax: t < 180 ? t * 60 : 0}),@@ -80483,16 +80508,16 @@ function Z5() {}};}-function xIe() {+function CIe() {let e = L("#drawerScroll"), t = [...e.querySelector("[data-sidebar-head]")?.children || []];- e.innerHTML = gIe(Z.appSettings.sidebarOrder, V5.NAV_CATALOG, u7), e.querySelector("[data-sidebar-head]").append(...t), L8.listen(e, "click", (e) => {- if (f8()) return;+ e.innerHTML = _Ie(Z.appSettings.sidebarOrder, H5.NAV_CATALOG, u7), e.querySelector("[data-sidebar-head]").append(...t), R8.listen(e, "click", (e) => {+ if (p8()) return;let t = e.target.closest?.("[data-nav]");t && d7(t.dataset.nav);- }), JPe(Z5()).then((e) => e.render(V5.sidebarProps)).catch(() => {});+ }), YPe(SIe()).then((e) => e.render(H5.sidebarProps)).catch(() => {});}-async function SIe() {- let e = L8, t = null;+async function wIe() {+ let e = R8, t = null;try {t = await wn("/api/settings", { signal: e.signal });} catch {@@ -80505,39 +80530,39 @@ function Q5() {}function $5() {let e = Q5();- yIe(), e && R5(), L("#count").classList.toggle("no-tagbar", !!e), _9(), e !== "trash" && (D5.trashCount = null), e7(e);+ bIe(), e && z5(), L("#count").classList.toggle("no-tagbar", !!e), _9(), e !== "trash" && (O5.trashCount = null), e7(e);}-function CIe(e) {+function TIe(e) {return {section: e,path: decodeURIComponent(location.pathname),- sections: V5.MANAGE_SECTIONS,- menu: e ? V5.manageMenuSections() : [],- trash: D5.trashCount+ sections: H5.MANAGE_SECTIONS,+ menu: e ? H5.manageMenuSections() : [],+ trash: O5.trashCount};}function e7(e = Q5()) {t7();- let t = CIe(e), n = h8();+ let t = TIe(e), n = g8();if (n) n.render(t);else {let e = Sde(t);- e !== V5.manageHeaderSkeleton && (V5.manageHeaderSkeleton = e, V5.manageHeaderRoot().innerHTML = e);+ e !== H5.manageHeaderSkeleton && (H5.manageHeaderSkeleton = e, H5.manageHeaderRoot().innerHTML = e);}let r = ZF(t)?.title || "";- r !== V5.lastManagePageLabel && (V5.lastManagePageLabel = r, r && Qs(V5.manageHeaderRoot(), "[data-manage-title],[data-manage-lede]"));+ r !== H5.lastManagePageLabel && (H5.lastManagePageLabel = r, r && Qs(H5.manageHeaderRoot(), "[data-manage-title],[data-manage-lede]"));}-function wIe() {- let e = V5.manageHeaderRoot();- L8.listen(e, "click", (e) => {- if (h8()) return;+function EIe() {+ let e = H5.manageHeaderRoot();+ R8.listen(e, "click", (e) => {+ if (g8()) return;let t = e.target.closest?.("[data-manage]");if (t) n7(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]") && I7();- }), YPe({+ }), XPe({root: e,openManage: n7,openDataCleanup: () => Q.navigatePath("/data-cleanup"),@@ -80552,13 +80577,13 @@ function t7() {}function n7(e = "stats") {let t = Q.routePathOf("section", e);- t ? Q.openRoutePath(t) : (U.orient = "", U.state = "ads", bu(), Q.route(tW()), W5(), _9(), F7());+ t ? Q.openRoutePath(t) : (U.orient = "", U.state = "ads", bu(), Q.route(nW()), G5(), _9(), F7());}function r7() {let e = decodeURIComponent(location.pathname);return e === "/" ? U.jav === "1" : e.startsWith("/performers/") || e.startsWith("/studios/") ? U.jav === "1" || fu : !1;}-function TIe(e = r7()) {+function DIe(e = r7()) {let t = Uj.filter(([e]) => e !== "seed");return e ? [Wj, ...t] : t;}@@ -80568,7 +80593,7 @@ function i7() {function a7() {return kM(i7());}-function EIe(e) {+function OIe(e) {dle(e), s7(), L("#grid").hidden || Z7();}function o7(e) {@@ -80579,15 +80604,15 @@ function s7() {e.checked = e.value === a7();}), X.catalogFilterProps && D7({ layout: k7() });}-function DIe(e) {+function kIe(e) {fle(e), s7(), Z7();}async function c7() {- D8(), X.mixRelatedCache.clear(), await Promise.all([l7(), F7()]);+ O8(), X.mixRelatedCache.clear(), await Promise.all([l7(), F7()]);}async function l7() {if (Y.entityPageCurrent() && !L("#index").hidden) {- o5({ revision: ++Y.entityPageRevision });+ s5({ revision: ++Y.entityPageRevision });return;}let e = decodeURIComponent(location.pathname);@@ -80599,23 +80624,23 @@ async function l7() {t?.route.reload ? await t.route.reload() : await B7();}function u7(e) {- let t = decodeURIComponent(location.pathname), n = Q.routeMeta(t)?.route.nav || "", r = V5.DIRECT_MANAGE_NAV[e];+ let t = decodeURIComponent(location.pathname), n = Q.routeMeta(t)?.route.nav || "", r = H5.DIRECT_MANAGE_NAV[e];if (r) return Q5() === r;if (e === "manage") {let e = Q5();- return !!e && !Z.appSettings.sidebarOrder.some((t) => V5.DIRECT_MANAGE_NAV[t] === e);+ return !!e && !Z.appSettings.sidebarOrder.some((t) => H5.DIRECT_MANAGE_NAV[t] === e);}return e === "jav" ? t === "/jav" || r7() : e === "shorts" ? U.orient === "竖屏" : e === "" ? t === "/" && !Q5() && !U.state && !r7() && U.orient !== "竖屏" : Dn[e] ? n === e && U.orient !== "竖屏" : n ? n === e : t === "/" && U.state === e && U.orient !== "竖屏";}function d7(e) {let t = nm(e);if (t === location.pathname + location.search + location.hash) return;- if (Y5(), t) {+ if (X5(), t) {Q.navigatePath(t);return;}- if (V5.DIRECT_MANAGE_NAV[e]) {- n7(V5.DIRECT_MANAGE_NAV[e]);+ if (H5.DIRECT_MANAGE_NAV[e]) {+ n7(H5.DIRECT_MANAGE_NAV[e]);return;}if (e === "manage") {@@ -80635,17 +80660,17 @@ function d7(e) {}function f7() {let e = decodeURIComponent(location.pathname), t = e.split("/").filter(Boolean);- Yl && Ql !== D5.currentSelectSurface() && k5(!1, !0);+ Yl && Ql !== O5.currentSelectSurface() && A5(!1, !0);let n = t.length > 1 && Object.prototype.hasOwnProperty.call(Mn, t[0]), r = An(e) || e === "/trash", i = r || n || e === "/tags" || e === "/follow", a = r || n || e === "/follow";- L("#selectMode").hidden = !i, L("#density").hidden = !a, d5(), !i && Yl && k5(!1, !0);+ L("#selectMode").hidden = !i, L("#density").hidden = !a, f5(), !i && Yl && A5(!1, !0);}-function OIe() {+function AIe() {let e = [...document.querySelectorAll("[data-filter-frame]")], t = e.find((e) => e.offsetParent !== null);- (t !== V5.mobileFilterHost || location.pathname !== V5.mobileFilterPath) && (V5.mobileFilterScroll = null), V5.mobileFilterHost = t, V5.mobileFilterPath = location.pathname;+ (t !== H5.mobileFilterHost || location.pathname !== H5.mobileFilterPath) && (H5.mobileFilterScroll = null), H5.mobileFilterHost = t, H5.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\"]");- V5.mobileFilterScroll = _Ie(V5.mobileFilterScroll, n, innerWidth <= 760, r);+ H5.mobileFilterScroll = vIe(H5.mobileFilterScroll, n, innerWidth <= 760, r);for (let n of e) {- let e = n === t && V5.mobileFilterScroll.free;+ let e = n === t && H5.mobileFilterScroll.free;if (e && n.style.setProperty("--filter-free-top", `${-n.offsetHeight - 12}px`), e === n.hasAttribute("data-filter-free")) continue;let r = n.getBoundingClientRect().top;n.getAnimations().forEach((e) => e.id === "filter-slide" && e.cancel()), n.toggleAttribute("data-filter-free", e);@@ -80657,52 +80682,52 @@ function OIe() {});}}-function kIe() {- OIe(), [".board-filter-frame", "#count"].forEach((e) => {+function jIe() {+ AIe(), [".board-filter-frame", "#count"].forEach((e) => {let t = L(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 p7() {- V5.stickyFrame ||= L8.frame(() => {- V5.stickyFrame = 0, kIe();+ H5.stickyFrame ||= R8.frame(() => {+ H5.stickyFrame = 0, jIe();});}-function AIe() {+function MIe() {$.followSidebarFilters = () => ({provider: [...$.followProviders][0] || "",dur_min: $.followDurMin || "",dur_max: $.followDurMax || ""- }), L8.handler(L("#filterBtn"), "onclick", () => J5(!L("#drawer").classList.contains("open"))), V5.SIDEBAR_ITEMS = O8, V5.MANAGE_SECTIONS = k8, V5.MANAGE_MENU_SECTIONS = A8, V5.manageMenuSections = () => uFe(cu === !0), V5.OPTIONAL_SIDEBAR_ITEMS = j8, V5.NAV_CATALOG = dFe, V5.DIRECT_MANAGE_NAV = fFe, V5.settingsHost = () => ({+ }), R8.handler(L("#filterBtn"), "onclick", () => Y5(!L("#drawer").classList.contains("open"))), H5.SIDEBAR_ITEMS = k8, H5.MANAGE_SECTIONS = A8, H5.MANAGE_MENU_SECTIONS = j8, H5.manageMenuSections = () => dFe(cu === !0), H5.OPTIONAL_SIDEBAR_ITEMS = M8, H5.NAV_CATALOG = fFe, H5.DIRECT_MANAGE_NAV = pFe, H5.settingsHost = () => ({selectSection: (e) => Ep(Mf(e), {replace: !0,state: W.navigation.location.state}),- closed: bIe,+ closed: xIe,store: Z.settingsStore,changed: (e) => Z.settingsEffects[e]?.(),sound: (e) => Zo(e),- navCatalog: V5.NAV_CATALOG,+ navCatalog: H5.NAV_CATALOG,themeOptions: ole,videoLayouts: CM,- followInitialRanges: M8,+ followInitialRanges: N8,videoLayout: () => a7(),- setVideoLayout: DIe,+ setVideoLayout: kIe,censored: t9,- setCensored: QIe,+ setCensored: eLe,highContrast: () => document.documentElement.classList.contains("board-high-contrast"),- setHighContrast: $Ie,- receipt: (e) => x8.actionReceipt(e),- failure: x8.actionFailure,+ setHighContrast: tLe,+ receipt: (e) => S8.actionReceipt(e),+ failure: S8.actionFailure,syncRemote: (e) => vM(e, (e) => Z.settingsEffects[e]?.()),openConfiguration: () => Q.navigatePath("/settings/library"),attached: () => Z.syncGlassOptics(),configurable: () => wn("/healthz").then((e) => (yu({ runtimeConfigurable: !!e.configurable }), cu)).catch(() => null)- }), L8.handler(L("#settingsBtn"), "onclick", () => void X5()), V5.lastManagePageLabel = "", V5.manageHeaderSkeleton = "", V5.manageHeaderRoot = () => L("[data-manage-header]"), window.__scrolling = !1, V5.scrollT = null, V5.stickyFrame = 0, V5.mobileFilterScroll = null, V5.mobileFilterHost = null, V5.mobileFilterPath = "", L8.listen(document, "focusin", p7), L8.listen(document, "focusout", p7), L8.listen(window, "scroll", () => {- p7(), location.pathname === "/follow" && T9() && yu({ followScrollY: scrollY }), window.__scrolling = !0, Al(), clearTimeout(V5.scrollT), V5.scrollT = L8.delay(() => {+ }), R8.handler(L("#settingsBtn"), "onclick", () => void Z5()), H5.lastManagePageLabel = "", H5.manageHeaderSkeleton = "", H5.manageHeaderRoot = () => L("[data-manage-header]"), window.__scrolling = !1, H5.scrollT = null, H5.stickyFrame = 0, H5.mobileFilterScroll = null, H5.mobileFilterHost = null, H5.mobileFilterPath = "", R8.listen(document, "focusin", p7), R8.listen(document, "focusout", p7), R8.listen(window, "scroll", () => {+ p7(), location.pathname === "/follow" && T9() && yu({ followScrollY: scrollY }), window.__scrolling = !0, Al(), clearTimeout(H5.scrollT), H5.scrollT = R8.delay(() => {window.__scrolling = !1;}, 180);- }, { passive: !0 }), L8.listen(window, "resize", p7, { passive: !0 }), L8.handler(L("#scrim"), "onclick", () => J5(!1));+ }, { passive: !0 }), R8.listen(window, "resize", p7, { passive: !0 }), R8.handler(L("#scrim"), "onclick", () => Y5(!1));}// src/catalog-filter-skeleton.tsvar m7 = 64, h7 = (e) => e.replace(/[&<>"]/g, (e) => ({@@ -80711,9 +80736,9 @@ var m7 = 64, h7 = (e) => e.replace(/[&<>"]/g, (e) => ({">": ">","\"": """})[e]), g7 = (e) => e.repeat(m7);-function jIe(e, t, n) {+function NIe(e, t, n) {let r = e.map((e) => `<a href="${h7(e.href)}" data-catalog-view="${h7(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${h7(e.label)}</a>`).join(""), i = cK();- 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\">" + g7("<span data-catalog-placeholder=\"performer\" aria-hidden=\"true\"><span></span><span> </span></span>") + "</div>" : "") + (i.studios ? "<div data-catalog-tier=\"studios\">" + g7("<span data-catalog-placeholder=\"studio\" aria-hidden=\"true\"><span></span><span> </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(m7) + `</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>${Ts()}</span>` + (n ? i5(n.sorts, n.layout) : "") + "</div></div></div></div>";+ 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\">" + g7("<span data-catalog-placeholder=\"performer\" aria-hidden=\"true\"><span></span><span> </span></span>") + "</div>" : "") + (i.studios ? "<div data-catalog-tier=\"studios\">" + g7("<span data-catalog-placeholder=\"studio\" aria-hidden=\"true\"><span></span><span> </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(m7) + `</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>${Ts()}</span>` + (n ? a5(n.sorts, n.layout) : "") + "</div></div></div></div>";}// src/application/catalog.jsvar X = {@@ -80752,43 +80777,43 @@ var X = {junkQueueHelpers: void 0,junkQueueActions: void 0};-function MIe() {+function PIe() {X.initialParams.has("loc") || (U.loc = _7(U.loc), bu());}function _7(e) {- return tFe(e, Z.sourceOnline);+ return nFe(e, Z.sourceOnline);}function v7(e = U) {- return nFe(e);+ return rFe(e);}-function NIe() {- yu(C8(rFe(U, Z.appSettings, x8.rollSeed)));+function FIe() {+ yu(w8(iFe(U, Z.appSettings, S8.rollSeed)));}function y7(e = null) {- NIe(), e && (Object.assign(U, e), bu()), Q.route(e ? v7() : "/"), X.clearSearchField(), s9(!1), _9(), F7();+ FIe(), e && (Object.assign(U, e), bu()), Q.route(e ? v7() : "/"), X.clearSearchField(), s9(!1), _9(), F7();}-function PIe(e, t = null) {+function IIe(e, t = null) {let n = e.id;- !e.medium || e.medium === "video" ? d9(n, !0, null, t) : e.medium === "image" && e.location !== "online" ? window.open("/photo?id=" + n, "_blank", "noopener") : A5(n);+ !e.medium || e.medium === "video" ? d9(n, !0, null, t) : e.medium === "image" && e.location !== "online" ? window.open("/photo?id=" + n, "_blank", "noopener") : j5(n);}function b7(e) {return X.mixRelatedCache.has(e) || X.mixRelatedCache.set(e, wn("/api/related?id=" + e + "&limit=28").then((t) => (t.items || []).filter((t) => t.id !== e)).catch((t) => {throw X.mixRelatedCache.delete(e), t;})), X.mixRelatedCache.get(e);}-function FIe(e, t) {- r8()?.miniplayerTakesCard(e) ? r8().miniplayerPlay(e.id) : x7(e, t);+function LIe(e, t) {+ i8()?.miniplayerTakesCard(e) ? i8().miniplayerPlay(e.id) : x7(e, t);}function x7(e, t) {- e.edition_group ? oLe(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? sLe(e.part_group.seed_id, e.id, !0, t) : d9(e.id, !0, null, t);+ e.edition_group ? cLe(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? lLe(e.part_group.seed_id, e.id, !0, t) : d9(e.id, !0, null, t);}-async function IIe(e, t) {+async function RIe(e, t) {try {let n = await wn("/api/watch-later", {method: "POST",body: JSON.stringify({ id: e.id })});- e.watch_later = n.watch_later, t(!!n.watch_later), x8.actionReceipt(n.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {+ e.watch_later = n.watch_later, t(!!n.watch_later), S8.actionReceipt(n.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {let n = await wn("/api/watch-later", {method: "POST",body: JSON.stringify({ id: e.id })@@ -80796,10 +80821,10 @@ async function IIe(e, t) {e.watch_later = n.watch_later, t(!!n.watch_later);} });} catch (e) {- x8.actionFailure("更新稍后看", e);+ S8.actionFailure("更新稍后看", e);}}-async function LIe(e, t) {+async function zIe(e, t) {try {await wn("/api/batch", {method: "POST",@@ -80809,7 +80834,7 @@ async function LIe(e, t) {})}), await B7();let n = t === "restore" ? "dispose" : "restore";- x8.actionReceipt(t === "restore" ? "已还原" : "已移入回收站", { undo: async () => {+ S8.actionReceipt(t === "restore" ? "已还原" : "已移入回收站", { undo: async () => {await wn("/api/batch", {method: "POST",body: JSON.stringify({@@ -80820,10 +80845,10 @@ async function LIe(e, t) {}), await B7();} });} catch (e) {- throw x8.actionFailure("操作", e), e;+ throw S8.actionFailure("操作", e), e;}}-async function RIe(e, t, n, r) {+async function BIe(e, t, n, r) {let i = Number(e.rating) || 0, a = kP(i, t), o = async (t, r) => {let i = (await wn("/api/feedback", {method: "POST",@@ -80838,9 +80863,9 @@ async function RIe(e, t, n, r) {};try {let e = await o(a, r);- x8.actionReceipt(e ? `已评 ${OP(e)} 星` : "已取消评分", { undo: () => o(i) });+ S8.actionReceipt(e ? `已评 ${OP(e)} 星` : "已取消评分", { undo: () => o(i) });} catch (e) {- throw r?.aborted || x8.actionFailure("评分", e), e;+ throw r?.aborted || S8.actionFailure("评分", e), e;}}async function S7(e) {@@ -80867,33 +80892,33 @@ async function S7(e) {e[n] && t.set(n, e[n]);});}- return cFe(t.toString(), X.topsQueryParams(e).toString());+ return lFe(t.toString(), X.topsQueryParams(e).toString());}function C7(e) {- s5().type !== "entity" && D7({ tags: j7(e) }), g9({ filters: { ...e } }), z7();+ c5().type !== "entity" && D7({ tags: j7(e) }), g9({ filters: { ...e } }), z7();}async function w7(e) {let t = ++X.facetCountsSeq, [n] = await S7(e);t === X.facetCountsSeq && (e.type === "home" && (i9.facets = n), g9({ latest: e9(n, e) }));}function T7(e) {- let t = s5();+ let t = c5();if (t.type === "entity") {let n = { ...t.filters };- e(n), l5(t.kind, t.name, n), C7(n), w7(s5());+ e(n), u5(t.kind, t.name, n), C7(n), w7(c5());} else if (t.type === "item") {let t = Y.cloneBarsContext(Kl);if (s9(!1), yu({ detailReturnBarsContext: null }), t && t.type === "entity") {- e(t.filters), l5(t.kind, t.name, t.filters) ? F7() : yu({ pageOpens: uu + 1 });+ e(t.filters), u5(t.kind, t.name, t.filters) ? F7() : yu({ pageOpens: uu + 1 });return;}e(U), yu({ barsContext: {type: "home",filters: U- } }), Q.route(v7()), W5(), F7();+ } }), Q.route(v7()), G5(), F7();} else e(U), bu(), Q.route(v7()), C7(U), w7(Gl);}-function zIe() {+function VIe() {return {tiers: null,tiersPending: !1,@@ -80929,9 +80954,9 @@ function D7(e) {...e,offscreen: n}, X.catalogFilterProps = {- ...X.catalogFilterProps || zIe(),+ ...X.catalogFilterProps || VIe(),...e- }, !X.catalogFilterMounting && (cp(t) ? mp(t, e) : (!t.firstChild && !n && (t.innerHTML = jIe(X.catalogViews(), X.catalogFilterProps.state, A7()), uc(t)), X.catalogFilterMounting = fp("catalog-filter", X.catalogFilterProps, {+ }, !X.catalogFilterMounting && (cp(t) ? mp(t, e) : (!t.firstChild && !n && (t.innerHTML = NIe(X.catalogViews(), X.catalogFilterProps.state, A7()), uc(t)), X.catalogFilterMounting = fp("catalog-filter", X.catalogFilterProps, {container: t,isCurrent: () => !0}).then(() => mp(t, X.catalogFilterProps)).finally(() => {@@ -80944,7 +80969,7 @@ function O7() {let e = new URL(v7(), location.origin);return e.searchParams.set("loc", U.loc || ""), e.searchParams.set("thumb", U.thumb || "0"), e.searchParams.set("sort", U.sort || ""), e.searchParams.set("dir", U.dir || ""), e.pathname + e.search;},- openEntity: (e, t) => y5(e, t),+ openEntity: (e, t) => b5(e, t),setView: (e) => {U.state = e, bu(), D7({ state: e }), Q.route(v7()), F7();},@@ -80959,14 +80984,14 @@ function O7() {let t = Xj(e, U.sort, U.dir);t && (U.sort = t.sort, U.dir = t.dir, bu(), $7());},- reshuffle: () => ZIe(),+ reshuffle: () => $Ie(),setLayout: (e) => {- r7() ? o7(e) : EIe(e);+ r7() ? o7(e) : OIe(e);},moreTops: async (e) => {let t = X.catalogTopsPages;if (!t) return [];- let n = (await lFe(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];+ let n = (await uFe(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];return e === "performers" ? n.map(M7) : n.map(N7);}};@@ -80986,7 +81011,7 @@ function k7() {}function A7() {return {- sorts: c5(U.sort, U.dir),+ sorts: l5(U.sort, U.dir),layout: k7(),state: U.state || "",trash: U.state === "trash"@@ -81019,7 +81044,7 @@ function N7(e) {logo: e.has_logo ? fo(e.k, "icon", e.logo_version) : ""};}-function BIe(e, t) {+function HIe(e, t) {X.barsPendingSeq = t, X.catalogFilterProps?.tiers ? D7({tiersPending: !0,state: e.state || ""@@ -81035,14 +81060,14 @@ function P7(e) {async function F7() {let e = ++X.barsRequestSeq;if (g9(), !Hl(location.pathname) || Gl.type === "item") return;- let t = s5(), n = Y.activeFilterState(), r = JSON.stringify([+ let t = c5(), n = Y.activeFilterState(), r = JSON.stringify([t,n,U.state || "",U.seed || "",r7()]);- BIe(n, e);+ HIe(n, e);let i;try {i = await S7(t);@@ -81056,8 +81081,8 @@ async function F7() {}let s = r + "\n" + JSON.stringify([a, o]);if (s === X.barsRendered) {- X.barsPendingSeq = 0, D7({ tiersPending: !1 }), V5.sidebarCatalog && g9({- content: V5.sidebarCatalog,+ X.barsPendingSeq = 0, D7({ tiersPending: !1 }), H5.sidebarCatalog && g9({+ content: H5.sidebarCatalog,filters: { ...n }});return;@@ -81071,7 +81096,7 @@ async function F7() {performers: 0,studios: 0};- let u = X.tagList(n.tag), d = new Map(c.map((e) => [e.k, e])), f = u.map((e) => d.get(e) || { k: e }), p = c.filter((e) => !u.includes(e.k)), m = x8.seededSample(p, X.TAGS_FIRST, `tags:${U.seed || ""}`), h = new Set(m.map((e) => e.k));+ let u = X.tagList(n.tag), d = new Map(c.map((e) => [e.k, e])), f = u.map((e) => d.get(e) || { k: e }), p = c.filter((e) => !u.includes(e.k)), m = S8.seededSample(p, X.TAGS_FIRST, `tags:${U.seed || ""}`), h = new Set(m.map((e) => e.k));X.catalogTagRows = f.concat(m, p.filter((e) => !h.has(e.k))).map((e) => ({k: e.k,label: Pl(e.k),@@ -81088,18 +81113,18 @@ async function F7() {tagFirst: f.length + m.length,views: X.catalogViews(),state: n.state || ""- }), z7(), V5.sidebarCatalog = {+ }), z7(), H5.sidebarCatalog = {kind: "catalog",- key: String(++V5.sidebarContentSeq),+ key: String(++H5.sidebarContentSeq),facets: e9(a, t)}, g9({- content: V5.sidebarCatalog,+ content: H5.sidebarCatalog,filters: { ...n },latest: null});}-function VIe(e, t) {- i9.total = e, U.state === "trash" && (D5.trashCount = {+function UIe(e, t) {+ i9.total = e, U.state === "trash" && (O5.trashCount = {total: i9.total,shown: t}), $5(), D7({ count: {@@ -81117,7 +81142,7 @@ function I7() {try {let e = await wn("/api/trash/empty", { method: "POST" });if (e.blocked && e.blocked.length) throw Error(`已永久删除 ${e.purged} 项;${e.blocked.length} 项未能删除,仍在回收站:\n` + e.blocked.slice(0, 5).map((e) => `${e.path}(${e.reason})`).join("\n"));- x8.actionReceipt(`已永久删除 ${e.purged} 项`);+ S8.actionReceipt(`已永久删除 ${e.purged} 项`);} finally {await B7();}@@ -81167,13 +81192,13 @@ async function B7() {filters: U},detailReturnBarsContext: null- }), s9(!1), U.state === "ads") return WIe(e);- X.controller.page === "/junk-files" && H7(), L5(), W5();+ }), s9(!1), U.state === "ads") return KIe(e);+ X.controller.page === "/junk-files" && H7(), R5(), G5();let t = U7(e);- if (Z8(location.pathname) && U.browse !== "folders") {- if (await I5.entityShapesReady, !Q.surfaceCurrent(e)) return;- kFe();- } else Q8();+ if (Q8(location.pathname) && U.browse !== "folders") {+ if (await L5.entityShapesReady, !Q.surfaceCurrent(e)) return;+ AFe();+ } else $8();return z7(), L("#count").classList.remove("manage-static", "junkcount"), t;}function V7(e) {@@ -81184,10 +81209,10 @@ function H7() {Al(e), hp(e), X.controller.clear(), e.innerHTML = "";}function U7(e) {- return q7("/", UIe, e, { place: xLe });+ return q7("/", GIe, e, { place: CLe });}-function HIe(e) {- return q7("/junk-files", KIe, e);+function WIe(e) {+ return q7("/junk-files", JIe, e);}function W7() {return !!sp(L("#grid"));@@ -81231,12 +81256,12 @@ function Z7() {G7() && (Al(L("#grid")), K7({layout: J7(),seekSeconds: Z.appSettings.seekSeconds- })), Y.entityPageCurrent() && (Al(L("#index [data-entity-hero]")), o5({+ })), Y.entityPageCurrent() && (Al(L("#index [data-entity-hero]")), s5({layout: J7(),seekSeconds: Z.appSettings.seekSeconds}));}-function UIe() {+function GIe() {let e = decodeURIComponent(location.pathname), t = An(e), n = U.state === "trash";return {mode: "catalog",@@ -81259,7 +81284,7 @@ function UIe() {mix: t && e !== "/wall" && !n && U.browse !== "folders",shorts: t && e !== "/wall" && !r7() && U.orient !== "竖屏" && !n && U.browse !== "folders",countRow: L("#count"),- onCount: VIe,+ onCount: UIe,onCountFailed: () => D7({ count: !1 }),emptyHtml: ({ trash: e, libraryEmpty: t }) => e ? Z.emptyState("trash", "回收站是空的", "删掉的内容会先到这里;确认不再需要后再清空。") : pq({jav: r7() && !t,@@ -81269,11 +81294,11 @@ function UIe() {canLoadMore: () => L("#stats").hidden && L("#index").hidden};}-function WIe(e) {+function KIe(e) {let t = L("#count");- return X.controller.page === "/junk-files" && W7() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (H7(), L5("正在读取垃圾文件")), W5(), z7(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), HIe(e);+ return X.controller.page === "/junk-files" && W7() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (H7(), R5("正在读取垃圾文件")), G5(), z7(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), WIe(e);}-async function GIe(e, t) {+async function qIe(e, t) {let n = [e.id], r = t === "dispose", i = t === "reconsider-junk";try {await wn("/api/batch", {@@ -81285,7 +81310,7 @@ async function GIe(e, t) {})}), await B7();let e = r ? "restore" : i ? "dismiss-junk" : "reconsider-junk";- x8.actionReceipt(r ? "已移入回收站" : i ? "已重新加入垃圾判断" : "已标记为不是垃圾", { undo: async () => {+ S8.actionReceipt(r ? "已移入回收站" : i ? "已重新加入垃圾判断" : "已标记为不是垃圾", { undo: async () => {await wn("/api/batch", {method: "POST",body: JSON.stringify({@@ -81295,12 +81320,12 @@ async function GIe(e, t) {}), await B7();} });} catch (e) {- throw x8.actionFailure("操作", e), e;+ throw S8.actionFailure("操作", e), e;}}-function KIe() {+function JIe() {return {- ...eW(location.search),+ ...tW(location.search),helpers: X.junkQueueHelpers,actions: X.junkQueueActions,batchSize: Z.appSettings.batchSize,@@ -81309,15 +81334,15 @@ function KIe() {selected: new Set(ql),countRow: L("#count"),settled: V7,- skeletonHtml: () => T2("正在读取垃圾文件", {+ skeletonHtml: () => E2("正在读取垃圾文件", {cards: !0,className: "catalog-skeleton postercard-skeleton"}),canLoadMore: () => L("#stats").hidden && L("#index").hidden};}-function qIe() {- X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => S8(e, t, Z.appSettings, n), yu(C8(eFe(location, Z.appSettings, x8.rollSeed))), X.searchValueSnapshot = {+function YIe() {+ X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => C8(e, t, Z.appSettings, n), yu(w8(tFe(location, Z.appSettings, S8.rollSeed))), X.searchValueSnapshot = {text: "",scrollLeft: 0}, X.cancelSearchDissolve = () => {}, X.rememberSearchValue = (e = L("#q")) => {@@ -81338,14 +81363,14 @@ function qIe() {};};}-function JIe() {- L8.handler(L("#wallBtn"), "onclick", () => {- k5(!1, !0);- let e = s5(), t = {+function XIe() {+ R8.handler(L("#wallBtn"), "onclick", () => {+ A5(!1, !0);+ let e = c5(), t = {...Y.activeFilterState(),jav: r7() ? "1" : ""};- e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(obe(void 0, t));+ e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(cbe(void 0, t));}), X.mixRelatedCache = /* @__PURE__ */ new Map(), X.reduceMotion = () => matchMedia("(prefers-reduced-motion:reduce)").matches, X.tagList = (e = U.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(",");@@ -81356,26 +81381,26 @@ function JIe() {tagLabel: (e) => Pl(e)}, X.gridActions = {wallPlayer: async (e, t, n) => {- let r = await n8(i9.stageHost);+ let r = await r8(i9.stageHost);return n.throwIfAborted(), r.mountWallPlayer(e, t, n);},wallDetails: x7,- open: (e, t) => FIe(e, t),- openResource: (e, t) => r8()?.miniplayerTakesCard(e) ? r8().miniplayerPlay(e.id) : PIe(e, t),- openShort: (e) => r8()?.miniplayerTakesCard(e) ? r8().miniplayerPlay(e.id) : m9(e.id),+ open: (e, t) => LIe(e, t),+ openResource: (e, t) => i8()?.miniplayerTakesCard(e) ? i8().miniplayerPlay(e.id) : IIe(e, t),+ openShort: (e) => i8()?.miniplayerTakesCard(e) ? i8().miniplayerPlay(e.id) : m9(e.id),openShorts: () => m9(),- openMix: (e, t) => aLe(e, e, !0, t),- openEntity: (e, t) => y5(e, t),+ openMix: (e, t) => sLe(e, e, !0, t),+ openEntity: (e, t) => b5(e, t),openUnowned: () => y7({ owner: "none" }),toggleTag: (e) => {T7((t) => {t.tag = X.tagPressed(t.tag, e) ? "" : e;});},- toggleSelection: (e, t) => A5(e, t),- watchLater: (e, t) => IIe(e, t),- rate: (e, t, n, r) => RIe(e, t, n, r),- resourceOperation: (e, t) => LIe(e, t),+ toggleSelection: (e, t) => j5(e, t),+ watchLater: (e, t) => RIe(e, t),+ rate: (e, t, n, r) => BIe(e, t, n, r),+ resourceOperation: (e, t) => zIe(e, t),mixRelated: (e) => b7(e),canFlip: () => !Yl && !t9() && !window.__scrolling && !X.reduceMotion()}, X.topsQueryParams = (e, t = 0) => {@@ -81404,7 +81429,7 @@ function JIe() {], X.catalogViews = () => X.VIEW_PILLS.map((e) => ({...e,href: e.k ? Dn[e.k] : "/"- })), X.TAGS_FIRST = 26, L8.listen(L("#catalogFilter"), "click", (e) => {+ })), X.TAGS_FIRST = 26, R8.listen(L("#catalogFilter"), "click", (e) => {let t = e.target.closest?.("[data-catalog-view]");t && !e.defaultPrevented && (e.preventDefault(), O7().setView(t.dataset.catalogView));}), X.catalogOnScreen = () => L("#index").hidden && L("#stats").hidden, X.COMBO_LABELS = {@@ -81415,27 +81440,27 @@ function JIe() {X.catalogFilterProps && D7({ comboHidden: !0 });};}-function YIe() {+function ZIe() {X.junkQueueHelpers = { badgeHtml: (e, t) => Z.srcBadge(e, t) }, X.junkQueueActions = {navigate: (e) => {- Yl && k5(!1, !0), Q.route(e);+ Yl && A5(!1, !0), Q.route(e);},- toggleSelection: (e, t) => A5(e, t),+ toggleSelection: (e, t) => j5(e, t),open: (e, t) => e.junk_kind === "image" ? window.open("/photo?id=" + e.id, "_blank", "noopener") : d9(e.id, !0, null, t),reveal: async (e) => {try {return await wn("/api/reveal", {method: "POST",body: JSON.stringify({ id: e.id })- }), x8.toast({ text: "已在资源管理器中显示" }), "";+ }), S8.toast({ text: "已在资源管理器中显示" }), "";} catch (e) {return Y.sourceHint(e.message);}},- operate: (e, t) => GIe(e, t)+ operate: (e, t) => qIe(e, t)};}-X.controller = new iFe();+X.controller = new aFe();// src/application/preferences.jsvar Z = {sourceOnline: void 0,@@ -81459,7 +81484,7 @@ var Z = {CENSOR_KEY: void 0};async function Q7() {- let e = L8;+ let e = R8;try {let t = await xr(e.signal);if (!e.isActive) return Z.sourceOnline;@@ -81469,7 +81494,7 @@ async function Q7() {if (!e.isActive) return Z.sourceOnline;Z.sourceOnline = {}, Z.sourceProblems = {};}- return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), MIe(), Z.sourceOnline;+ return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), PIe(), Z.sourceOnline;}function $7() {let e = Q.surfacePath();@@ -81480,7 +81505,7 @@ function $7() {state: W.navigation.location.state}), t;}-function XIe(e) {+function QIe(e) {if (e === "local") return {kind: "glyph",name: "hard-drive"@@ -81512,7 +81537,7 @@ function e9(e, t) {value: e.k,label: tr[e.k] || e.k,n: e.n ?? null,- dot: XIe(e.k),+ dot: QIe(e.k),...Z.sourceOffline(e.k) ? { offline: Z.OFFLINE_HINT } : {}})),regions: n(e.regions),@@ -81525,19 +81550,19 @@ function e9(e, t) {duration: !!e.stats?.duration};}-async function ZIe(e = !1) {+async function $Ie(e = !1) {if (e && (document.hidden || !An(decodeURIComponent(location.pathname)) || i9.stageOpen() || i9.immerseOpen() || Yl || ql.size || document.activeElement === L("#q"))) return !1;if (!L("#stats").hidden) {let e = decodeURIComponent(location.pathname), t = Q.routeMeta(e)?.route.refresh;if (t === "skip") return;if (e === "/playlists") {- S5();+ C5();return;}let n = t === "reopen" ? e : "/stats";rm(), n === e ? Q.navigatePath(location.pathname + location.search + location.hash, !0, W.navigation.location.state) : Q.navigatePath(n);} else if (L("#index").hidden) {- U.sort = "seed", U.dir = "", U.seed = x8.rollSeed(), bu(), D8(), D7({ refreshing: !0 });+ U.sort = "seed", U.dir = "", U.seed = S8.rollSeed(), bu(), O8(), D7({ refreshing: !0 });try {rm();let e = $7();@@ -81557,30 +81582,30 @@ function t9() {function n9(e) {document.body.classList.toggle("censor", e), Z.settingsStore.notify();}-function QIe(e) {+function eLe(e) {localStorage.setItem(Z.CENSOR_KEY, e ? "1" : "0"), n9(e), e && Al();}-function $Ie(e) {+function tLe(e) {localStorage.setItem("peach.high-contrast", String(e)), document.documentElement.classList.toggle("board-high-contrast", e), Z.settingsStore.notify();}function r9(e) {return Dc(e, { drag: !0 });}-function eLe() {+function nLe() {["#nrow", "#count"].forEach((e) => r9(L(e))), document.querySelectorAll(".tier,.srow").forEach(r9);}-function tLe() {+function rLe() {let e = new URLSearchParams(location.search).get("id");return /^\d+$/.test(e || "") ? Number(e) : void 0;}-function nLe() {+function iLe() {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 = _M(), Z.appSettings = Z.settingsStore.value, Xt(Z.appSettings.performerNameLanguage), Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), Xo(Z.appSettings.uiSounds), ns(), xM(), lle(), KM(), YM(), XM(), Z.catalogLoadWaiters = [], Z.nextCatalogLoad = () => new Promise((e) => Z.catalogLoadWaiters.push(e)), Z.handOff = (e) => (Z.catalogLoadWaiters.splice(0).forEach((t) => t(e)), e), Z.settingsEffects = {performerNameLanguage: () => {- Xt(Z.appSettings.performerNameLanguage), I5.syncPageTitle(location.href), X.barsRendered = "", F7();+ Xt(Z.appSettings.performerNameLanguage), L5.syncPageTitle(location.href), X.barsRendered = "", F7();},theme: () => xM(),uiSounds: () => {@@ -81606,14 +81631,14 @@ function nLe() {},seekSeconds: () => Z7(),groupCollapse: () => l7(),- feedAutoScroll: () => AFe(),- feedLimit: () => $8(),- feedCompilations: () => $8(),+ feedAutoScroll: () => jFe(),+ feedLimit: () => e5(),+ feedCompilations: () => e5(),miniplayer: () => {- Z.appSettings.miniplayer || r8()?.closeMiniplayer();+ Z.appSettings.miniplayer || i8()?.closeMiniplayer();},javImage: () => {- io(document, Z.appSettings.javImage), Z7(), document.querySelectorAll("img[data-jav-image].cover").forEach(ll), iLe();+ io(document, Z.appSettings.javImage), Z7(), document.querySelectorAll("img[data-jav-image].cover").forEach(ll), oLe();},searchHistoryLimit: () => mp(L("#searchMenu"), { historyLimit: Z.appSettings.searchHistoryLimit })}, Z.syncGlassOptics = () => {}, Z.placeSidebarHead = () => {}, Z.SRCICON = {@@ -81624,7 +81649,7 @@ function nLe() {return `<span class="${n || "src"} ${t === "metered" ? "metered" : "free"}" title="${z(r)}" aria-label="${z(r)}">` + (Z.SRCICON[e] || "") + "</span>";}, Z.emptyState = Us;}-function rLe() {+function aLe() {Z.CENSOR_KEY = "peach-censor", n9(localStorage.getItem(Z.CENSOR_KEY) === "1");}// src/application/media.js@@ -81647,10 +81672,10 @@ function a9() {} : null;}function o9() {- return r8()?.exit() || Promise.resolve();+ return i8()?.exit() || Promise.resolve();}function s9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null } = {}) {- Q.queueOpenRequest !== r && v9(), r8()?.dispose({ miniplayer: n }), yu({+ Q.queueOpenRequest !== r && v9(), i8()?.dispose({ miniplayer: n }), yu({activeQueue: null,pendingQueueRoute: null,presentedItem: null@@ -81660,8 +81685,8 @@ function s9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = nulldetailReturnNeedsRestore: !1}), p7(), e && Q.route($l || "/");}-function iLe() {- r8()?.repaintPoster();+function oLe() {+ i8()?.repaintPoster();}function c9(e, t, n, r, i = null, a = {}) {t = +t;@@ -81685,13 +81710,13 @@ function c9(e, t, n, r, i = null, a = {}) {Q.requestedQueue = () => d9(n == null ? null : +n, !1, s, i, !0, e), yu({ queueOpens: du + 1 });} else return d9(n == null ? null : +n, !1, s, i, r);}-function aLe(e, t = e, n = !0, r = null) {+function sLe(e, t = e, n = !0, r = null) {return c9("mix", e, t, n, r);}-function oLe(e, t = e, n = !0, r = null) {+function cLe(e, t = e, n = !0, r = null) {return c9("editions", e, t, n, r);}-function sLe(e, t = e, n = !0, r = null) {+function lLe(e, t = e, n = !0, r = null) {return c9("parts", e, t, n, r);}function l9(e, t = null, n = !0) {@@ -81707,8 +81732,8 @@ async function d9(e, t = !0, n = null, r = null, i = !1, a = null) {return;}Al(), e = e == null ? null : +e;- let o = r?.isConnected ? r : eu?.isConnected ? eu : null, s = r?.isConnected ? r.getBoundingClientRect().top + r.getBoundingClientRect().height / 2 > window.innerHeight / 2 : tu, c = u9(), l = nu || !t && !c, u = Gl.type === "item" ? Kl : Y.cloneBarsContext(s5());- t ? yu({ detailReturnPath: location.pathname + location.search }) : i || yu({ detailReturnPath: Gf() || $l }), t && Hf(), r8()?.showing() !== "item" && s9(!1, !0, {+ let o = r?.isConnected ? r : eu?.isConnected ? eu : null, s = r?.isConnected ? r.getBoundingClientRect().top + r.getBoundingClientRect().height / 2 > window.innerHeight / 2 : tu, c = u9(), l = nu || !t && !c, u = Gl.type === "item" ? Kl : Y.cloneBarsContext(c5());+ t ? yu({ detailReturnPath: location.pathname + location.search }) : i || yu({ detailReturnPath: Gf() || $l }), t && Hf(), i8()?.showing() !== "item" && s9(!1, !0, {miniplayer: !1,preserveQueueRequest: a}), yu({@@ -81720,7 +81745,7 @@ async function d9(e, t = !0, n = null, r = null, i = !1, a = null) {seedId: n.seedId,playlistId: n.playlistId} }), yu({ pendingQueueRoute: n && i ? `${n.kind}=${n.kind === "playlist" ? n.playlistId : n.seedId}` : null }), t && !n && Q.route("/assets/" + e, !1, Kf("item"));- let d = await n8(i9.stageHost);+ let d = await r8(i9.stageHost);if (a?.cancelled) return;let f = a ? {...i9.itemDetailActions,@@ -81754,20 +81779,20 @@ async function f9() {await o9(), s9(!1, !1, { miniplayer: !1 }), yu({ detailReturnBarsContext: null }), Uf(), yu({ barsContext: e || {type: "home",filters: U- } }), n && Q.managedPagePath(new URL(t, location.href).pathname) ? Q.navigatePath(t) : (Q.route(t), n ? yu({ pageOpens: uu + 1 }) : (F7(), location.pathname === "/playlists" && S5()));+ } }), n && Q.managedPagePath(new URL(t, location.href).pathname) ? Q.navigatePath(t) : (Q.route(t), n ? yu({ pageOpens: uu + 1 }) : (F7(), location.pathname === "/playlists" && C5()));}async function p9(e, t = !0) {if (t) {yu({ detailReturnPath: location.pathname + location.search }), y9("/works/" + encodeURIComponent(e), "jav", () => p9(e, !1));return;}- let n = W.navigation.seq, r = Y.cloneBarsContext(s5()), i = !u9(), a = Gf() || (i ? "/jav?tab=discover" : $l) || "/jav?tab=discover";- r8()?.showing() !== "jav" && s9(!1, !0, { miniplayer: !1 }), yu({+ let n = W.navigation.seq, r = Y.cloneBarsContext(c5()), i = !u9(), a = Gf() || (i ? "/jav?tab=discover" : $l) || "/jav?tab=discover";+ i8()?.showing() !== "jav" && s9(!1, !0, { miniplayer: !1 }), yu({detailReturnPath: a,detailReturnBarsContext: r,detailReturnNeedsRestore: i}), Al();- let [o, s] = await Promise.all([n8(i9.stageHost), B("/healthz")]);+ let [o, s] = await Promise.all([r8(i9.stageHost), B("/healthz")]);W.navigation.seq === n && (await o.open({kind: "jav",code: e,@@ -81784,19 +81809,19 @@ async function p9(e, t = !0) {openTag: (e) => T7((t) => {t.tag = e;}),- receipt: (e) => x8.toast({ text: e })+ receipt: (e) => S8.toast({ text: e })}}), p7());}async function m9(e = null, t = !0) {- t ? (i9.requestedImmerseId = e, Q.route("/immerse")) : (r8()?.closeMiniplayer(), await (await KPe(i9.immerseHost)).open(e));+ t ? (i9.requestedImmerseId = e, Q.route("/immerse")) : (i8()?.closeMiniplayer(), await (await qPe(i9.immerseHost)).open(e));}-function cLe() {+function uLe() {i9.total = 0, i9.facets = null, i9.stageHost = {player: {settings: () => Z.appSettings,saveSettings: () => Z.saveSettings(),- toast: (e, t) => x8.toast({ text: e }, t),+ toast: (e, t) => S8.toast({ text: e }, t),loadSourceStatus: () => Q7(),offlineReason: (e) => Z.offlineReason(e)},@@ -81805,9 +81830,9 @@ function cLe() {e === "follow" ? O9(t, !0, n) : d9(t, !0);},openItem: (e) => void d9(e)- }, i9.stageOpen = () => !!r8()?.isOpen();+ }, i9.stageOpen = () => !!i8()?.isOpen();}-function lLe() {+function dLe() {i9.itemDetailHelpers = {badgeHtml: (e, t, n) => Z.srcBadge(e, t, n),titleHtml: (e) => lL(e),@@ -81818,7 +81843,7 @@ function lLe() {tagCandidates: () => i9.facets && i9.facets.tags || [],sourceOffline: (e) => Z.sourceOffline(e),offlineReason: (e) => Z.offlineReason(e),- relatedSkeletonHtml: () => T2("正在读取推荐", {+ relatedSkeletonHtml: () => E2("正在读取推荐", {cards: !0,className: "related-skeleton"}),@@ -81841,7 +81866,7 @@ function lLe() {e.kind === "follow" ? (Q.queueOpenRequest = null, yu({pendingQueueRoute: null,followDetailReturnPath: $l || "/"- }), Q.route(`/posts/${e.id}`, !t, Kf("follow")), O9(e.id, !1, null, !0)) : e.kind === "item" ? d9(e.id, !0) : e.kind === "playlists" ? t || location.pathname !== "/playlists" ? x9("/playlists") : S5() : s9(!1);+ }), Q.route(`/posts/${e.id}`, !t, Kf("follow")), O9(e.id, !1, null, !0)) : e.kind === "item" ? d9(e.id, !0) : e.kind === "playlists" ? t || location.pathname !== "/playlists" ? x9("/playlists") : C5() : s9(!1);},openQueueItem: (e, t, n = !0) => void c9(e.kind, e.kind === "playlist" ? e.playlistId : e.seedId, t, n, null, { autoplay: e.autoplay }),reopen: () => {@@ -81854,23 +81879,23 @@ function lLe() {openSavedFollow: () => {$.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followTags = /* @__PURE__ */ new Set(), $.followWorks = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followDurMin = $.followDurMax = 0, $.followFilter = "saved", x9(S9());},- openEntity: (e, t) => y5(e, t),+ openEntity: (e, t) => b5(e, t),openUnowned: () => y7({ owner: "none" }),openRegion: (e) => y7({ region: e || "none" }),openTag: (e) => T7((t) => {t.tag = e;}),- addToPlaylist: (e) => WFe(e),- saveMix: (e) => UFe(e),+ addToPlaylist: (e) => GFe(e),+ saveMix: (e) => WFe(e),editPlaylist: () => x9("/playlists"),openPlaylists: () => x9("/playlists"),- reveal: (e) => m5(e),- sync: (e) => FFe(e),+ reveal: (e) => h5(e),+ sync: (e) => IFe(e),trashChanged: async (e, t) => {U.state === "ads" && (t || e === "trash") && (t || (Uf(), s9(!0, !1, { miniplayer: !1 })), await B7());},- toast: (e, { undo: t } = {}) => x8.actionReceipt(e, { undo: t }),- failure: (e, t) => x8.actionFailure(e, t)+ toast: (e, { undo: t } = {}) => S8.actionReceipt(e, { undo: t }),+ failure: (e, t) => S8.actionFailure(e, t)}, i9.immerseHost = {filters: () => U,seekSeconds: () => Z.appSettings.seekSeconds,@@ -81879,12 +81904,12 @@ function lLe() {route: (e) => Q.route("/immerse?id=" + e, !0),closed: () => y7(),openItem: (e) => void d9(e),- openEntity: (e, t) => y5(e, t),+ openEntity: (e, t) => b5(e, t),openUnowned: () => y7({ owner: "none" }),- toast: (e, { undo: t } = {}) => x8.actionReceipt(e, { undo: t }),- warn: (e) => x8.toast({ text: e }, { sound: "warning" }),- failure: (e, t) => x8.actionFailure(e, t)- }, i9.immerseOpen = () => !!o8()?.isOpen(), L8.handler(L("#immerseBtn"), "onclick", () => m9());+ toast: (e, { undo: t } = {}) => S8.actionReceipt(e, { undo: t }),+ warn: (e) => S8.toast({ text: e }, { sound: "warning" }),+ failure: (e, t) => S8.actionFailure(e, t)+ }, i9.immerseOpen = () => !!s8()?.isOpen(), R8.handler(L("#immerseBtn"), "onclick", () => m9());}// src/application/navigation.jsvar Q = {@@ -81907,19 +81932,19 @@ var Q = {initialOverlayOpened: void 0};function h9() {- let e = f8();+ let e = p8();e ? e.navChanged() : L("#drawerScroll")?.querySelectorAll("[data-nav]").forEach((e) => e.setAttribute("aria-pressed", String(u7(e.dataset.nav))));}function g9(e = {}) {let t = Q.surfacePath();- t !== V5.sidebarSurface && (V5.sidebarSurface = t, V5.sidebarProps = {- ...V5.sidebarProps,+ t !== H5.sidebarSurface && (H5.sidebarSurface = t, H5.sidebarProps = {+ ...H5.sidebarProps,content: null,latest: null- }), V5.sidebarProps = {- ...V5.sidebarProps,+ }), H5.sidebarProps = {+ ...H5.sidebarProps,...e- }, f8()?.render(V5.sidebarProps);+ }, p8()?.render(H5.sidebarProps);}function _9() {g9(), h9(), f7();@@ -81934,12 +81959,12 @@ function y9(e, t, n) {}, Q.route(e, !1, Kf(t));}function b9() {- Q.surfaceEpoch++, X.barsRequestSeq++, I5.syncPageTitle(location.href), g9(), Uf();+ Q.surfaceEpoch++, X.barsRequestSeq++, L5.syncPageTitle(location.href), g9(), Uf();}function x9(e) {Q.route(e), yu({ pageOpens: uu + 1 });}-function uLe() {+function fLe() {Q.routeMeta = (e) => {let t = Qf(e);return t ? { route: t } : null;@@ -81947,7 +81972,7 @@ function uLe() {let t = Qf(e);return !!t && t.reload !== "reopen" && !Q.catalogPage(e) && !Rf(e) && e !== "/immerse";}, Q.openRoutePath = (e) => {- e === "/immerse" ? m9(tLe()) : e === "/follow" ? D9() : e === "/playlists" || Q.catalogPage(e) ? x9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? cIe() : e) : (k5(!1, !0), x9(N5({+ e === "/immerse" ? m9(rLe()) : e === "/follow" ? D9() : e === "/playlists" || Q.catalogPage(e) ? x9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? lIe() : e) : (A5(!1, !0), x9(P5({kind: e.slice(1),q: "",scope: "local",@@ -81956,16 +81981,16 @@ function uLe() {})));};}-function dLe() {+function pLe() {Q.surfaceEpoch = 0, Q.surfacePath = () => decodeURIComponent(location.pathname), Q.surfaceRequests = null, Q.surfaceToken = (e) => ({epoch: Q.surfaceEpoch,path: e,signal: Q.surfaceRequests?.signal- }), Q.surfaceCurrent = (e) => e.epoch === Q.surfaceEpoch && Q.surfacePath() === e.path, Q.claimSurface = (e) => (Z8(e) || Q8(), hp(L("#stats"), L("#index")), !An(e) && e !== "/trash" && H7(), Q.surfaceRequests?.abort(), Q.surfaceRequests = new AbortController(), Q.surfaceEpoch++, Q.surfaceToken(e)), Q.route = (e, t = !1, n) => {+ }), Q.surfaceCurrent = (e) => e.epoch === Q.surfaceEpoch && Q.surfacePath() === e.path, Q.claimSurface = (e) => (Q8(e) || $8(), hp(L("#stats"), L("#index")), !An(e) && e !== "/trash" && H7(), Q.surfaceRequests?.abort(), Q.surfaceRequests = new AbortController(), Q.surfaceEpoch++, Q.surfaceToken(e)), Q.route = (e, t = !1, n) => {Q.surfaceEpoch++, X.barsRequestSeq++, Ep(e, {replace: t,state: n- }), I5.syncPageTitle(e), queueMicrotask(() => {+ }), L5.syncPageTitle(e), queueMicrotask(() => {f7(), t7(), g9();});}, Q.navigatePath = (e, t = !1, n) => {@@ -81975,15 +82000,15 @@ function dLe() {}, Q.requestedOverlay = null, Q.requestedQueue = null, Q.queueOpenRequest = null, Q.initialOverlayOpened = !1;}// src/jobs.ts-function fLe(e, t, n) {+function mLe(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="${z(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>${z(e)}<small>${Math.round(i)}%</small></span></div>`;}-function pLe(e, t = 0, n = 0) {- return n > 0 ? fLe(e, t, n) : Vs(e);+function hLe(e, t = 0, n = 0) {+ return n > 0 ? mLe(e, t, n) : Vs(e);}-async function mLe(e) {+async function gLe(e) {let t = e.pause || ((e) => new Promise((t) => setTimeout(t, e))), n = 0;for (; e.active();) {let r;@@ -81998,14 +82023,14 @@ async function mLe(e) {await t(2e3);}}-function hLe(e) {+function _Le(e) {let t = e.note || ((e) => Rs(e, {label: "任务状态",variant: "error"- })), n = e.loading || Vs, r = e.progress || ((e, t, n) => pLe(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 || Vs, r = e.progress || ((e, t, n) => hLe(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;- mLe({+ gLe({read: e.read,active: () => !c && e.active() && a.isConnected,keepWatching: e.watchIdle !== !1,@@ -82054,9 +82079,9 @@ var $ = {FOLLOW_MANAGE_TABS: void 0,followSidebarFilters: void 0};-function gLe(e) {+function vLe(e) {let t = (e.results || []).filter((e) => !e.ok).length;- x8.toast({ text: Vi(e) }, {+ S8.toast({ text: Vi(e) }, {warn: !!t,timeout: t ? 8e3 : 6e3,sound: t ? "warning" : "success",@@ -82069,7 +82094,7 @@ function gLe(e) {function S9() {return Oa(C9());}-function _Le() {+function yLe() {return $.controller.read();}function C9() {@@ -82090,17 +82115,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 vLe() {+function bLe() {let e = sp(L("#stats"));return e && e.path === "/follow" && e.host.isConnected ? e : null;}function T9() {- return !!vLe();+ return !!bLe();}function E9(e) {T9() && mp(L("#stats"), e);}-function yLe(e, t = {}) {+function xLe(e, t = {}) {return $.controller.route(e, t);}function D9(e = !1) {@@ -82113,7 +82138,7 @@ async function O9(e, t = !0, n = null, r = !1) {}Al(), e = +e;let i = !location.pathname.startsWith("/posts/");- t && i && !r && yu({ followDetailReturnPath: location.pathname + location.search }), !t && !r && yu({ followDetailReturnPath: Gf() || "/follow" }), t && Hf(), r8()?.showing() !== "follow" && s9(!1, !1, { miniplayer: !1 }), t && Q.route(`/posts/${e}`, !1, Kf("follow")), await (await n8(i9.stageHost)).open({+ t && i && !r && yu({ followDetailReturnPath: location.pathname + location.search }), !t && !r && yu({ followDetailReturnPath: Gf() || "/follow" }), t && Hf(), i8()?.showing() !== "follow" && s9(!1, !1, { miniplayer: !1 }), t && Q.route(`/posts/${e}`, !1, Kf("follow")), await (await r8(i9.stageHost)).open({kind: "follow",id: e,mediaIndex: n,@@ -82124,16 +82149,16 @@ async function O9(e, t = !0, n = null, r = !1) {resume: t ? null : a9()}), p7();}-async function bLe() {- await o9(), s9(!1, !1, { miniplayer: !1 }), Uf(), Q.route(ou || "/follow"), !(Y.entityPageView && Y.entityPageCurrent() && !L("#index").hidden) && (location.pathname === "/follow" && T9() ? (_Le(), E9({ view: C9() })) : yu({ pageOpens: uu + 1 }));+async function SLe() {+ await o9(), s9(!1, !1, { miniplayer: !1 }), Uf(), Q.route(ou || "/follow"), !(Y.entityPageView && Y.entityPageCurrent() && !L("#index").hidden) && (location.pathname === "/follow" && T9() ? (yLe(), E9({ view: C9() })) : yu({ pageOpens: uu + 1 }));}-function xLe(e) {+function CLe(e) {let t = document.createElement("div");return t.className = "peach-react", tc(e, () => {e.textContent = "", e.append(t);}), t;}-function SLe() {+function wLe() {$.followFeedHelpers = Il({wireDrag: (e) => {e && r9(e);@@ -82142,41 +82167,41 @@ function SLe() {e && Dc(e);},listSkeletonHtml: (e) => $.followContentSkeletonHtml(e),- jobProgress: hLe+ jobProgress: _Le}), $.followFeedActions = {- loaded: (e) => G5(e),+ loaded: (e) => K5(e),openDetail: (e) => O9(e),openAuthor: (e) => Q.navigatePath(Nn("creator", e)),- toggleSelection: (e, t) => XFe(e, t),+ toggleSelection: (e, t) => ZFe(e, t),setImagesOnly: (e) => {- Z.appSettings.followImagesOnly = !!e, Z.saveSettings(), d5();+ Z.appSettings.followImagesOnly = !!e, Z.saveSettings(), f5();},setPhotoLayout: (e) => {- RM(e), d5();+ RM(e), f5();},canFlip: () => !Yl && !t9() && !window.__scrolling && !X.reduceMotion(),- toast: (e, { undo: t } = {}) => x8.actionReceipt(e, { undo: t }),- failure: (e, t) => x8.actionFailure(e, t),- checkReport: (e) => gLe(e)+ toast: (e, { undo: t } = {}) => S8.actionReceipt(e, { undo: t }),+ failure: (e, t) => S8.actionFailure(e, t),+ checkReport: (e) => vLe(e)}, $.followFeedShell = {skeleton: () => $.followSkeletonHtml("正在读取关注内容"),ground: () => {- r8()?.showing() !== "follow" && (Al(), s9(!1), U5(), !T9() && (Q.claimSurface(Q.surfacePath()), H5({ manage: !1 }), L("#stats").querySelector(".peach-react") && hp(L("#stats")), L("#stats").replaceChildren()));+ i8()?.showing() !== "follow" && (Al(), s9(!1), W5(), !T9() && (Q.claimSurface(Q.surfacePath()), U5({ manage: !1 }), L("#stats").querySelector(".peach-react") && hp(L("#stats")), L("#stats").replaceChildren()));}}, $.followDetailActions = Wl({view: C9,adoptView: w9,rememberReturn: (e) => yu({ followDetailReturnPath: e }),- close: () => void bLe(),+ close: () => void SLe(),open: (e, t, n) => void O9(e, !0, t, n),- drawer: G5,+ drawer: K5,openAuthor: (e) => Q.navigatePath(Nn("creator", e))}, {- toast: (e, { undo: t } = {}) => x8.actionReceipt(e, { undo: t }),- failure: x8.actionFailure+ toast: (e, { undo: t } = {}) => S8.actionReceipt(e, { undo: t }),+ failure: S8.actionFailure});}-function CLe() {+function TLe() {$.controller = ja({location: () => location,view: C9,@@ -82208,36 +82233,36 @@ function CLe() {});},openPage: x9,- rollSeed: () => Number(x8.rollSeed()),+ rollSeed: () => Number(S8.rollSeed()),enterSeed: () => Math.floor(Math.random() * 4294967295),revealFeed: () => {- Al(), U5(), H5({ manage: !1 });+ Al(), W5(), U5({ manage: !1 });},- syncPhotoWalls: d5,+ syncPhotoWalls: f5,scrollTop: () => {lm(() => location.pathname === "/follow", L("#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 wLe() {- FTe(), Yc(document), Lo(document.documentElement, { variant: "page" }), Lo(L("#drawerScroll")), L8.own(Kc()), Ua(document.body), X.homeHasFeed = DFe(), X.barsRequestSeq = 0, X.barsPendingSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, V5.sidebarProps = {+function ELe() {+ LTe(), Yc(document), Lo(document.documentElement, { variant: "page" }), Lo(L("#drawerScroll")), R8.own(Kc()), Ua(document.body), X.homeHasFeed = OFe(), X.barsRequestSeq = 0, X.barsPendingSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, H5.sidebarProps = {content: null,filters: {},latest: null- }, V5.sidebarSurface = "", V5.sidebarCatalog = null, V5.sidebarContentSeq = 0, $.followFilter = "", $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followTags = /* @__PURE__ */ new Set(), $.followWorks = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.FOLLOW_FEED_SORTS = [+ }, H5.sidebarSurface = "", H5.sidebarCatalog = null, H5.sidebarContentSeq = 0, $.followFilter = "", $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followTags = /* @__PURE__ */ new Set(), $.followWorks = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.FOLLOW_FEED_SORTS = [["new", "更新时间"],["hot", "热度"],["dur", "时长"]], $.FOLLOW_RANDOM_SORT = "rand", $.followSort = "new", $.followDir = "desc", $.followSeed = 0, $.followDurMin = 0, $.followDurMax = 0;}// src/application/tutorial.js-async function TLe() {- pU({ reopen: !0 });+async function DLe() {+ mU({ reopen: !0 });}-function ELe() {+function OLe() {let e = new URL(location.href), t = e.searchParams.get("onboarding") === "1";- yu({ cameFromSetup: t }), L8.handler(document.getElementById("tutorialBtn"), "onclick", () => pU()), pU({ invitation: !0 }), t && e.searchParams.delete("onboarding");+ yu({ cameFromSetup: t }), R8.handler(document.getElementById("tutorialBtn"), "onclick", () => mU()), mU({ invitation: !0 }), t && e.searchParams.delete("onboarding");let n = e.searchParams.get("agentation");try {localStorage.removeItem("peach.agentation");@@ -82248,7 +82273,7 @@ function ELe() {}), n === "on" && import("/dev/agentation.js").catch(() => {});}// src/react/search/recommendations.ts-async function DLe(e) {+async function kLe(e) {let t = (await Promise.allSettled([e("/api/items?sort=rand&limit=5"),e("/api/jav/discoveries?scope=library&limit=5"),@@ -82360,7 +82385,7 @@ async function DLe(e) {];}// src/application/search-morph.js-function OLe(e, t, n, r, i, a, o) {+function ALe(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);@@ -82385,7 +82410,7 @@ var k9 = {function A9() {k9.searchControl?.close();}-function kLe(e) {+function jLe(e) {let t = e ? eo({...e,is_jav: !!e.code@@ -82404,36 +82429,36 @@ function M9(e) {if (t.classList.toggle("open", e), L("#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 = Bc();t.classList.add("search-morphing");- let h = t.animate(OLe(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {+ let h = t.animate(ALe(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {duration: m.duration,easing: "linear",fill: "both"});- k9.searchMorph = h, L8.handler(h, "onfinish", () => {+ k9.searchMorph = h, R8.handler(h, "onfinish", () => {k9.searchMorph === h && j9();});}-function ALe() {- return i9.immerseOpen() ? o8().activeVideo() : r8()?.activeVideo() || null;+function MLe() {+ return i9.immerseOpen() ? s8().activeVideo() : i8()?.activeVideo() || null;}-function jLe(e) {+function NLe(e) {return !!e && (e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.isContentEditable);}-function MLe() {+function PLe() {k9.searchControl = null, k9.searchActions = {search: (e) => {X.rememberSearchValue(), s9(!1), U.q = e, bu(), Q.route(U.jav === "1" ? v7() : U.q ? "/?q=" + encodeURIComponent(U.q) : "/", !0);},openItem: (e) => d9(e),- openEntity: (e, t) => y5(e, t),+ openEntity: (e, t) => b5(e, t),openPath: (e) => Q.route(e, !1),openFollow: (e, t, n) => {$.followMediaView = t, O9(e, !0, n);}}, k9.searchHelpers = {- pool: () => lbe(U, wn),- recommendations: () => DLe(wn),- coverHtml: (e) => `<span class="pic">${e?.thumb_url ? `<img src="${z(e.thumb_url)}" width="640" height="360" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : e?.sourceWork ? W8(e) : kLe(e)}</span>`,+ pool: () => dbe(U, wn),+ recommendations: () => kLe(wn),+ coverHtml: (e) => `<span class="pic">${e?.thumb_url ? `<img src="${z(e.thumb_url)}" width="640" height="360" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : e?.sourceWork ? G8(e) : jLe(e)}</span>`,present: (e) => ss(e),dismiss: (e) => cs(e),wireScroller: (e) => Dc(e),@@ -82459,30 +82484,30 @@ function MLe() {}, {container: L("#searchMenu"),isCurrent: () => !0- }), L8.listen(L("#q"), "beforeinput", (e) => {+ }), R8.listen(L("#q"), "beforeinput", (e) => {e.isComposing || X.rememberSearchValue(e.currentTarget);- }), L8.listen(L("#q"), "scroll", (e) => {+ }), R8.listen(L("#q"), "scroll", (e) => {e.currentTarget.value && X.rememberSearchValue(e.currentTarget);- }), L8.listen(L("#q"), "pointerdown", (e) => {+ }), R8.listen(L("#q"), "pointerdown", (e) => {e.currentTarget.value && X.rememberSearchValue(e.currentTarget);});}-function NLe() {- k9.searchMorph = null, k9.searchMorphViewport = innerWidth, L8.listen.bind(L8, window)("resize", () => {+function FLe() {+ k9.searchMorph = null, k9.searchMorphViewport = innerWidth, R8.listen.bind(R8, window)("resize", () => {innerWidth !== k9.searchMorphViewport && (k9.searchMorphViewport = innerWidth, j9());- }, { passive: !0 }), L8.listen(matchMedia("(prefers-reduced-motion:reduce)"), "change", j9), L8.handler(L("#searchBtn"), "onclick", () => {+ }, { passive: !0 }), R8.listen(matchMedia("(prefers-reduced-motion:reduce)"), "change", j9), R8.handler(L("#searchBtn"), "onclick", () => {M9(!0), L("#q").focus({ preventScroll: !0 });- }), L8.handler(L("#searchBack"), "onclick", () => {+ }), R8.handler(L("#searchBack"), "onclick", () => {M9(!1), A9(), L("#q").blur(), L("#searchBtn").focus({ preventScroll: !0 });});let e = (e) => {e.target.closest(".search") || (e.type !== "focusin" || e.target !== document.body && e.target !== document.documentElement) && (L("#q").value || M9(!1), A9());};- L8.listen(document, "pointerdown", e, !0), L8.listen(document, "focusin", e), L8.handler(L("#brandHome"), "onclick", (e) => {+ R8.listen(document, "pointerdown", e, !0), R8.listen(document, "focusin", e), R8.handler(L("#brandHome"), "onclick", (e) => {e.preventDefault(), y7();- }), L8.listen(document, "keydown", (e) => {+ }), R8.listen(document, "keydown", (e) => {if (e.key === "Escape") {- let t = l8();+ let t = u8();if (t?.isOpen()) {t.close();return;@@ -82492,24 +82517,24 @@ function NLe() {return;}if (i9.immerseOpen()) {- o8().close();+ s8().close();return;}if (i9.stageOpen()) {- e.defaultPrevented || (e.preventDefault(), r8().requestEscape());+ e.defaultPrevented || (e.preventDefault(), i8().requestEscape());return;}if (L("#drawer").classList.contains("open")) {- J5(!1);+ Y5(!1);return;}if (Yl || ql.size || Jl.size) {- k5(!1, !0);+ A5(!1, !0);return;}return;}- if (jLe(e.target) || e.ctrlKey || e.metaKey || e.altKey) return;+ if (NLe(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) {@@ -82517,10 +82542,10 @@ function NLe() {return;}}- let t = ALe();+ let t = MLe();if (t) {if (e.key === "t" || e.key === "T") {- e.preventDefault(), r8()?.toggleTheater();+ e.preventDefault(), i8()?.toggleTheater();return;}if (e.key === "ArrowLeft" || e.key === "ArrowRight") {@@ -82540,14 +82565,14 @@ function NLe() {return;}if (e.key === "i" || e.key === "I") {- e.preventDefault(), r8()?.toggleMiniplayer();+ e.preventDefault(), i8()?.toggleMiniplayer();return;}}});}// src/history/links.ts-function PLe(e) {+function ILe(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;@@ -82570,23 +82595,23 @@ var N9 = {shellActions: void 0,routing: void 0};-function FLe() {- let e = L8, t = (e) => {+function LLe() {+ let e = R8, t = (e) => {e.kind === "item" ? d9(e.id, !1) : e.kind === "jav" ? p9(e.code, !1) : e.kind === "follow" ? O9(e.id, !1) : c9(e.queue, e.key, e.item, !1);};- if (EFe(), I5.entityShapesReady = G8(), mIe(), location.pathname === "/") {+ if (DFe(), L5.entityShapesReady = K8(), hIe(), location.pathname === "/") {let e = new URLSearchParams(location.search);!e.has("state") && e.get("jav") !== "1" && (L("#catalogPageHeading").hidden = !1);}- Z8(decodeURIComponent(location.pathname)) && J8(L("#feedNew")), xIe(), N9.shellActions = {- openSettings: (e) => X5(e, !0),- closeSettings: () => l8()?.close(!1),+ Q8(decodeURIComponent(location.pathname)) && Y8(L("#feedNew")), CIe(), N9.shellActions = {+ openSettings: (e) => Z5(e, !0),+ closeSettings: () => u8()?.close(!1),openItem: (e) => void d9(e),- openEntity: (e, t) => void y5(e, t),+ openEntity: (e, t) => void b5(e, t),openTag: (e) => {- vIe(), L7(e);+ yIe(), L7(e);},- openTasteSignal: HFe,+ openTasteSignal: UFe,navigate: (e) => {let n = new URL(e, location.href), r = Lf(n.pathname, n.search);if (r) {@@ -82601,34 +82626,34 @@ function FLe() {openManage: n7,managePath: (e) => Q.routePathOf("section", e) || "",openFollow: () => D9(),- receipt: (e, t) => x8.actionReceipt(e, t),- toast: (e, t) => x8.toast(e, t),- failure: x8.actionFailure,- revealSource: m5,- reopenTutorial: TLe,- routeReview: GFe,- routeFollowManage: sIe,+ receipt: (e, t) => S8.actionReceipt(e, t),+ toast: (e, t) => S8.toast(e, t),+ failure: S8.actionFailure,+ revealSource: h5,+ reopenTutorial: DLe,+ routeReview: KFe,+ routeFollowManage: cIe,saveFollowPreference: (e) => {e.pageSize !== void 0 && (Z.appSettings.followPageSize = e.pageSize), e.layout !== void 0 && (Z.appSettings.followLayout = e.layout), Z.saveSettings();},srcBadge: (e, t) => Z.srcBadge(e, t),- routeIndex: (e, { replace: t = !1 } = {}) => Q.route(N5(e), t),+ routeIndex: (e, { replace: t = !1 } = {}) => Q.route(P5(e), t),savePeopleLayout: ({ layout: e }) => {Z.appSettings.peopleLayout = e, Z.saveSettings();},- exitSelectMode: () => k5(!1, !1),- personAvatar: (e, t, n) => M5.personAvatar(e, t, n),- authorAvatar: (e) => lIe(e),- showIndexTags: uIe,- openFollowAuthor: F5,- openFollowTag: dIe,+ exitSelectMode: () => A5(!1, !1),+ personAvatar: (e, t, n) => N5.personAvatar(e, t, n),+ authorAvatar: (e) => uIe(e),+ showIndexTags: dIe,+ openFollowAuthor: I5,+ openFollowTag: fIe,openPlaylist: (e, t) => void l9(e, t, !0),canFlip: () => !Yl && !t9() && !window.__scrolling && !X.reduceMotion(),surfaceChanged: (e, t) => {e === "entity" ? (Al(), yu({ barsContext: {type: "home",filters: U- } }), W5(), document.body.classList.add("entity-open"), E7(), P5()) : e === "index" ? (Al(), document.body.classList.remove("entity-open"), Q.claimSurface(t), W5(), document.body.classList.add("index-open"), E7(), P5()) : (Al(), Q.claimSurface(t), e === "catalog" ? W5() : (U5(), H5({ manage: e === "management" })));+ } }), G5(), document.body.classList.add("entity-open"), E7(), F5()) : e === "index" ? (Al(), document.body.classList.remove("entity-open"), Q.claimSurface(t), G5(), document.body.classList.add("index-open"), E7(), F5()) : (Al(), Q.claimSurface(t), e === "catalog" ? G5() : (W5(), U5({ manage: e === "management" })));},clearSearch: () => X.clearSearchField(),openImmerse: (e) => {@@ -82656,21 +82681,21 @@ function FLe() {},entity: {missing: (e) => {- N9.shellActions.surfaceChanged("entity", location.pathname), v5(e);+ N9.shellActions.surfaceChanged("entity", location.pathname), y5(e);},loading: (e, t, n) => Y.application.loading(e, t, n),props: (e, t, n) => Y.application.addressProps(e, t, n),refresh: (e, t, n) => {let r = Y.parseEntityFilters(n);e === "creator" && (r.creator = "");- let i = s5();- return i.type !== "entity" || i.kind !== e || i.name !== t || !l5(e, t, r, Y.parseMediaView(n), { push: !1 }) ? !1 : (C7(r), w7(s5()), !0);+ let i = c5();+ return i.type !== "entity" || i.kind !== e || i.name !== t || !u5(e, t, r, Y.parseMediaView(n), { push: !1 }) ? !1 : (C7(r), w7(c5()), !0);}},follow: $.followFeedShell,catalog: {defaultLoc: () => _7("local,115"),- open: (e, { entering: t = !1, retitle: n = !1 } = {}) => (n && (b9(), f7(), t7()), t && D8(), e === "/trash" ? X.clearSearchField() : (L("#q").value = U.q, X.rememberSearchValue()), _9(), F7(), Z.handOff(B7())),+ open: (e, { entering: t = !1, retitle: n = !1 } = {}) => (n && (b9(), f7(), t7()), t && O8(), e === "/trash" ? X.clearSearchField() : (L("#q").value = U.q, X.rememberSearchValue()), _9(), F7(), Z.handOff(B7())),load: () => Z.handOff(B7()),fill: () => {if (G7() || !Dp() && !L("#grid").querySelector(".catalog-skeleton")) return;@@ -82678,27 +82703,27 @@ function FLe() {e.removeAttribute("aria-busy"), e.removeAttribute("aria-label"), U7(Q.surfaceToken(Q.surfacePath()));},release: () => {- H7(), Q8();+ H7(), $8();}}}, N9.routing = !1, e.listen(document, "click", (e) => {- let t = PLe(e);+ let t = ILe(e);t && (e.preventDefault(), N9.shellActions.navigate(t));- }), L8.own(W.listen((e) => {+ }), R8.own(W.listen((e) => {Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !Rf(e.location.pathname) && s9(!1), N9.routing && !e.claimed && b9();- })), WPe(N9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), wIe(), tIe(), $5(), Promise.all([+ })), GPe(N9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), EIe(), nIe(), $5(), Promise.all([Q7(),- SIe(),- I5.entityShapesReady+ wIe(),+ L5.entityShapesReady]).then(() => {- e.isActive && (I5.wantsDiscoveryBars() && F7().catch((e) => console.error("首页横条装载失败", e)), _9(), eLe(), N9.routing = !0, yu({ pageOpens: 1 }), b9(), p7());+ e.isActive && (L5.wantsDiscoveryBars() && F7().catch((e) => console.error("首页横条装载失败", e)), _9(), nLe(), N9.routing = !0, yu({ pageOpens: 1 }), b9(), p7());}).catch((t) => {e.isActive && console.error("应用启动失败", t);});}// src/theme-transition.tsvar P9 = !1;-async function ILe(e, t) {+async function RLe(e, t) {if (P9) return;if (!document.startViewTransition || matchMedia("(prefers-reduced-motion: reduce)").matches) {t();@@ -82720,9 +82745,9 @@ async function ILe(e, t) {}}// src/application/chrome.js-function LLe() {+function zLe() {(() => {- let e = L8, t = [+ let e = R8, t = ["#brandHome","#filterBtn","#settingsBtn"@@ -82803,7 +82828,7 @@ function LLe() {s.className = "mark", s.setAttribute("aria-hidden", "true"), s.innerHTML = o(n.find((e) => e[0] === i)?.[2] || "database"), c.querySelector(".mark").replaceWith(s), l.innerHTML = `<p>媒体库</p><div class="board-library-rows">${n.map(([e, t, n]) => `<button type="button" data-library="${z(e)}" aria-pressed="${e === i}"><span class="board-library-avatar">${o(n)}</span><span>${z(t)}</span></button>`).join("")}</div><footer><button type="button" class="geist-button primary" data-library-manage>管理媒体库</button></footer>`, l.querySelectorAll("[data-library]").forEach((t) => e.handler(t, "onclick", () => {sessionStorage.setItem("peach.library", t.dataset.library), sessionStorage.setItem("peach.library-label", n.find((e) => e[0] === t.dataset.library)?.[1] || "全部媒体库"), location.assign("/");})), e.handler(l.querySelector("[data-library-manage]"), "onclick", () => {- u.setOpen(!1), J5(!1), C5("媒体库与入库");+ u.setOpen(!1), Y5(!1), w5("媒体库与入库");});let d = l.querySelector(".board-library-rows");e.listen(d, "pointerover", (e) => {@@ -82820,18 +82845,18 @@ function LLe() {(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="浅色主题">${R("sun")}</button><button type="button" data-board-theme="dark" aria-label="深色主题">${R("moon")}</button></div>`, g.insertAdjacentHTML("beforeend", "<div class=\"board-foot-actions\"><button type=\"button\" class=\"board-glow-toggle\" id=\"boardGlowBtn\" aria-label=\"光晕配色\" aria-haspopup=\"dialog\" aria-expanded=\"false\" aria-controls=\"boardGlowMenu\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#ri-palette-line\"/></svg><span class=\"board-glow-mark\" aria-hidden=\"true\"><span class=\"board-glow-mark-glow\"></span><span class=\"board-glow-mark-accent\"></span></span></button></div>"), g.querySelector(".board-foot-actions").append(document.querySelector("#settingsBtn")), document.querySelector("#drawer").append(g), g.querySelectorAll("[data-board-theme]").forEach((t) => e.handler(t, "onclick", () => {- t.getAttribute("aria-pressed") !== "true" && ILe(t, () => {+ t.getAttribute("aria-pressed") !== "true" && RLe(t, () => {Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), xM();});})), xM();let _ = document.createElement("div");_.className = "popmenu board-glow-menu", _.id = "boardGlowMenu", _.hidden = !0, _.setAttribute("popover", "manual"), _.setAttribute("role", "dialog"), _.setAttribute("aria-label", "配色"), document.body.append(_), e.own(() => _.remove());let v = g.querySelector("#boardGlowBtn"), y = ds(g, v, _);- e.own(y.dispose), e.own(xle(v)), ZPe({+ e.own(y.dispose), e.own(xle(v)), QPe({root: _,store: Z.settingsStore,openDetails: () => {- e.isActive && (y.setOpen(!1), J5(!1), X5("外观与导航").then((t) => {+ e.isActive && (y.setOpen(!1), Y5(!1), Z5("外观与导航").then((t) => {e.isActive && t.reveal("#homeGlowControls");}));}@@ -82843,17 +82868,17 @@ function LLe() {let t = document.querySelector("#drawerScroll > [data-sidebar-head]"), n = document.querySelector("#drawer");if (!t) return;c.setAttribute("aria-label", "选择媒体库"), c.parentElement !== t && t.prepend(c);- let r = n.classList.contains("open"), i = !q5();+ let r = n.classList.contains("open"), i = !J5();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(L8, window)("resize", b);+ Z.placeSidebarHead = b, b(), e.listen(document, "board:sidebar", b), e.listen.bind(R8, window)("resize", b);let x = !1;function S() {x = !1, document.body.classList.toggle("board-scrolled", scrollY > 8);}- if (e.listen.bind(L8, window)("scroll", () => {+ if (e.listen.bind(R8, window)("scroll", () => {x || (x = !0, e.frame(S));- }, { passive: !0 }), e.listen.bind(L8, window)("resize", S), S(), /Chrome|Chromium|Edg\//.test(navigator.userAgent)) {+ }, { passive: !0 }), e.listen.bind(R8, 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");@@ -82967,15 +82992,15 @@ function LLe() {subtree: !0}), y();}- })(), J5(!q5() && sessionStorage.getItem("board.sidebar") !== "closed");+ })(), Y5(!J5() && sessionStorage.getItem("board.sidebar") !== "closed");}// src/application/initialize.js-function RLe() {- wLe(), uLe(), hIe(), dLe(), nLe(), QPe(), qIe(), ELe(), zFe(), cLe(), nIe(), JIe(), MFe(), KFe(), SLe(), fIe(), BFe(), CLe(), pIe(), VFe(), AIe(), YIe(), MLe(), lLe(), NLe(), rLe(), FLe(), LLe(), L8.own(H7), L8.own(v9);+function BLe() {+ ELe(), fLe(), gIe(), pLe(), iLe(), $Pe(), YIe(), OLe(), BFe(), uLe(), rIe(), XIe(), NFe(), qFe(), wLe(), pIe(), VFe(), TLe(), mIe(), HFe(), MIe(), ZIe(), PLe(), dLe(), FLe(), aLe(), LLe(), zLe(), R8.own(H7), R8.own(v9);}// src/ui-kit/middle-truncate.tsvar 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 zLe(e, t) {+function VLe(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;@@ -82993,7 +83018,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 }), BLe = (e) => {+}, { canvas: null }), HLe = (e) => {if (e.dataset.middleTruncateWithin === void 0) return e.clientWidth;let t = e.parentElement;if (!t) return e.clientWidth;@@ -83003,17 +83028,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);-}, VLe = (e) => {+}, ULe = (e) => {let t = L9.get(e);if (!t || !e.isConnected) return;- let n = BLe(e), r = n > 0 ? zLe(t.full, (t) => U9(e, t) <= n) : t.full;+ let n = HLe(e), r = n > 0 ? VLe(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, VLe(e);+ t.raf = 0, ULe(e);}));}, G9 = (e) => {e instanceof HTMLElement && (L9.has(e) || L9.set(e, {@@ -83026,7 +83051,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 HLe(e = document) {+function WLe(e = document) {B9?.(), R9 = /* @__PURE__ */ new WeakSet(), V9 = /* @__PURE__ */ new Set();let t = V9, n = !0;z9 = new ResizeObserver((e) => e.forEach((e) => {@@ -83100,7 +83125,7 @@ var q9 = ["jav-detail","wants","index"-], ULe = {+], GLe = {catalog: [...q9,...J9,@@ -83121,10 +83146,10 @@ var q9 = ["avatar-choices"]};-function WLe() {+function KLe() {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 ULe[t] || []) e.add(n);+ for (let t of Object.keys(r)) if (r[t] !== n[t]) for (let n of GLe[t] || []) e.add(n);return !t && e.size && (t = (async () => {for (; e.size;) {let t = new Set(e);@@ -83137,12 +83162,12 @@ function WLe() {})), t || Promise.resolve();};}-function GLe() {+function qLe() {let e = Pt({queryKey: dL,queryFn: ({ signal: e }) => pL(e),refetchInterval: (e) => fL(e.state.data)- }), t = (0, F.useRef)(void 0), [n] = (0, F.useState)(WLe), r = e.data?.result_versions;+ }), t = (0, F.useRef)(void 0), [n] = (0, F.useState)(KLe), r = e.data?.result_versions;return (0, F.useEffect)(() => {r && (t.current && n(t.current, r), t.current = r);}, [r, n]), null;@@ -83152,52 +83177,52 @@ var X9 = null;function Z9(e) {X9 !== e || e.owners || (X9 = null, e.effects.dispose());}-function KLe() {+function JLe() {if (!X9) {- let e = mFe();+ let e = hFe();X9 = {effects: e,owners: 0- }, e.own(HLe(document)), e.own(() => {+ }, e.own(WLe(document)), e.own(() => {Al(), H.cancelQueries();- }), e.own(GPe), e.own(gp), e.own(as);+ }), e.own(KPe), e.own(gp), e.own(as);}return X9.owners += 1, X9.effects.resume(), X9;}-function qLe() {+function YLe() {let [e, t] = (0, F.useState)(null);return (0, F.useLayoutEffect)(() => {- let e = X9 === null, n = KLe(), r = UPe(t);+ let e = X9 === null, n = JLe(), r = WPe(t);if (e) try {- RLe();+ BLe();} 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)(wG, {+ }, []), /* @__PURE__ */ (0, I.jsx)(TG, {actions: e,processing: !0,- background: e ? /* @__PURE__ */ (0, I.jsx)(GLe, {}) : null+ background: e ? /* @__PURE__ */ (0, I.jsx)(qLe, {}) : null});}var Q9 = /* @__PURE__ */ new WeakMap();-function JLe(e) {+function XLe(e) {let t = Q9.get(e);if (t) return t;- let n = (0, Rt.createRoot)(e, TG);+ let n = (0, Rt.createRoot)(e, Pve);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, Lt.flushSync)(() => n.render(/* @__PURE__ */ (0, I.jsx)(qLe, {}))), n;+ }, (0, Lt.flushSync)(() => n.render(/* @__PURE__ */ (0, I.jsx)(YLe, {}))), n;}// src/react/bootstrap.tsxO();var $9 = document.getElementById("appRoot");if (!$9) throw Error("主界面宿主缺失");-JLe($9);-export { sR as $2ec61d1d4f780267$export$a8a3e93435678ff9, hR as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, Mz as $542a13ca2fa5b484$export$5b6b19405a83ff9d, ND as $72abaeab4d80592f$export$78efe591171d7d45, wB as $76d00c5a4edb230a$export$76ccd210b9029917, xB as $76d00c5a4edb230a$export$816b5d811295e6bc, DB as $76d00c5a4edb230a$export$b59bdbef9ce70de2, kB as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, bB as $76d00c5a4edb230a$export$f850895b287ef28e, ahe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, ihe as $b4f18e3395fe64d7$export$3e41faf802a29e71, the as $b4f18e3395fe64d7$export$b2539bed5023c21c, NB as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, che as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, bE as $ea3928288112382f$export$439d29a4e110a164, Gz as $f2ff30fde7b014be$export$3ddf2d174ce01153, Qz as $fe21c36db05242bb$export$a98f0dcb43a68a25, $z as $fe21c36db05242bb$export$d7b12c4107be0d61, Bhe as $l, aM as ACCENTS, JOe as AMANE_BRIDGE_CHECK_URL, p1 as AMANE_BRIDGE_KEY, YOe as AMANE_BRIDGE_REBUILD_URL, or as ApiError, uW as ArtSlot, J as Button, zL as ButtonLink, lV as Bx, U$ as CLEANUP_ENTRY, H$ as CLEANUP_ENTRY_GRID, Yf as CLEANUP_HASH_REDIRECTS, qf as CLEANUP_TOOLS, _n as CLOUD_LOCATIONS, p0 as CLOUD_PROXY_HELP, Gr as COLUMN_SORT, T1 as CONFIGURATION_KEY, TX as CONFIGURATION_URL, XOe as COOKIE_TEXT_LIMIT, f1 as COVER_JOB_KEY, Ji as CREDENTIAL_STATE, c1 as CUSTOM_SOURCES_KEY, s1 as CUSTOM_SOURCES_URL, eH as Checkbox, $V as CheckboxGlyph, WV as ChevronSortDown, lW as Chip, SW as CloudDownloadDialog, YH as CollapseChevron, JH as CollapseRegion, I$ as CollectionSummary, kCe as DEFAULT_CATEGORY, ur as DEFAULT_SORT, l$ as DIAGNOSTICS_KEY, Owe as DIRECTORY_TEMPLATE_ERROR, J0 as DISCOVERY_SORTS, fW as DOWNLOADS_KEY, dW as DOWNLOADS_URL, GY as DUPLICATES_KEY, EY as DataTableFooter, SY as DataTableFrame, TY as DataTableSort, yU as Disclosure, jve as DownloadsPanel, Nhe as E3, ACe as ENTITY_REVIEW_KINDS, d0 as ENTRY_LINKS_HELP, f0 as ENTRY_LINKS_HINT, Uhe as Ea, dge as EmptyFocusButton, EV as EmptyState, _U as ErrorText, W_e as ExternalLink, Br as FEEDS_KEY, NX as FEED_SCHEDULE_KEY, B$ as FIELDSET_FOOT, YNe as FLOW_LABEL_X, Y3 as FLOW_VIEWBOX, Rr as FOLLOW_CHECK_KEY, Lr as FOLLOW_CREDENTIALS_KEY, M8 as FOLLOW_INITIAL_RANGE_OPTIONS, Ir as FOLLOW_MANAGE_KEY, pQ as FOLLOW_MANAGE_NAV, zr as FOLLOW_RESOLVE_KEY, MX as FOLLOW_SCHEDULE_KEY, q_e as Fact, K_e as FactList, vU as FieldLabel, e1 as Fieldset, $$ as FieldsetTitle, npe as FilterGlass, ML as FilterGlassRows, jL as FilterIconButton, NL as FilterPill, U_e as Footer, oV as Gg, PL as GlassPill, ege as HN, gU as Help, _V as HintText, VNe as IDLE_POLL_MS, vCe as IDLE_REPAIR, DL as IconButton, d$ as IndexSearch, SV as Input, xV as InputBase, CM as JAV_LAYOUTS, X0 as JAV_RECOMMENDATION_GRID, iZ as JUNK_KEY, GW as JavHeader, fCe as KEEP_LABELS, Hr as LAYOUTS, u0 as LIBRARY_FOLDER_HELP, pH as LIBRARY_PROCESSING_KEY, _X as LINKS_KEY, vX as LINK_CHECK_KEY, ewe as LINK_KINDS, yX as LINK_PRUNE_KEY, tr as LOC, gV as Label, r1 as LibraryProcessingCard, UV as LibraryShortcuts, kH as LinkButton, UH as LoadingDots, Phe as M6, awe as MEDIA_PROCESSING_KEY, FX as MEDIA_PROCESSING_URL, XY as MEDIA_REPAIR_KEY, YY as MEDIA_REPAIR_URL, vr as MEDIA_SOURCES_KEY, gs as MEDIA_SOURCE_ICONS, hn as MEDIA_SOURCE_OPTIONS, JV as MENU_ITEM, YV as MENU_ITEM_INTERACTIVE, qV as MENU_POPOVER_SURFACE, NH as MenuDialog, VK as MixCard, CV as ModalFrame, Cx as MotionConfigContext, hV as NR, TV as Note, oge as OA, RX as ORGANIZE_KEY, VX as ORPHAN_RECORDS_KEY, iV as OV, WB as P7, tZ as PERFORMER_DELETE_KEY, OW as PHASES, EX as PICK_FOLDER_URL, G$ as PLAIN_STAT_STRIP, a1 as PLAYLISTS_KEY, Qke as POLICY_COLUMNS, eAe as POLICY_COVER_NOTE, $ke as POLICY_MATRIX, l0 as POLICY_SUMMARY, wY as Pagination, n1 as PathLine, nL as PillTabList, _Oe as PlainStat, GH as Progress, tX as QUALITY_GOALS_KEY, q$ as REPAIR_CARD_TEXT, ZY as REPAIR_LIBRARIES_KEY, KX as RESOURCE_APPLY_KEY, GX as RESOURCE_SCAN_KEY, SOe as RESULT_PANEL, COe as RESULT_SECTION, OCe as REVIEW_CATEGORIES, rZ as REVIEW_COUNTS_KEY, jCe as REVIEW_DECISION_LABELS, iX as REVIEW_KEY, aX as REVIEW_LABELS, sX as REVIEW_QUEUES, cX as REVIEW_QUEUE_LABELS, fK as RetryNote, ige as Rf, B_e as Rows, KOe as SCRAPING_CHECK_URL, u1 as SCRAPING_COVER_URL, d1 as SCRAPING_KEY, GOe as SCRAPING_SETTINGS_URL, zU as SEGMENT, RU as SEGMENTED_TRACK, jX as SETTINGS_KEY, DX as SETTINGS_URL, dr as SORT_DEFAULT_DIR, lr as SORT_OPTIONS, vn as SOURCE_LABELS, b3 as STATS_KEY, hOe as STAT_STRIP, gOe as STAT_STRIP_SIX, z_e as Section, wOe as SectionHeading, H_e as SectionSkeleton, LU as SegmentedRadioGroup, cve as SegmentedTabList, aK as Segments, CY as Select, oW as Select$1, k1 as SelectField, sW as SelectItem, NY as SelectionActions, Pj as SelectionDock, PY as SelectionPopover, XH as SettingsCard, E_e as SettingsRow, ZH as SettingsSectionLabel, Z_e as SiteLabel, RG as SortDirectionIcon, sK as SortKeys, KQ as SourceAvatar, CU as SourceLabel, bU as SourceMark, V_e as Stack, vOe as StatCard, t1 as StatusLabel, Q2 as Switch, dL as TASKS_KEY, ANe as TASTE_REFRESH_KEY, jNe as TASTE_WINDOWS, PX as THUMBNAIL_JOBS_KEY, oZ as TRASH_KEY, Ife as TRIGGER_LABELS, pY as Table, FY as TableColumnControls, IY as TableColumnResizer, RY as TableSelectionHeader, j$ as TagManager, G_e as TaskCenterLink, KH as TaskProgress, yV as TextField, vV as TextFieldContext, nV as Un, EW as WANTS_KEY, p4 as WantMagnets, Wg as WithPromise, JB as Wt, tV as Xc, mV as Xf, YB as Xt, KB as _8, o as __commonJSMin, s as __exportAll, l as __toESM, rge as aB, Ti as addAlias, wi as addSource, MW as addWant, fS as animate, B as apiGet, V as apiSend, _M as appSettingsStore, qwe as applyConfirmText, eZ as applyLeftovers, Kwe as applyPlanText, Ywe as applyText, xM as applyTheme, _y as asNumber, Fwe as attachOrphan, si as authorAvatar, li as authorGroups, oi as authorInitial, ai as authorName, tJ as autoResetPageIndex, go as avatarInner, E3 as bandRows, kwe as baseName, _Ce as batchOperate, sue as beginPlayerGuidePreview, Hj as boundedPreference, mCe as bulkCloudPreferences, AV as busyProps, nge as cB, oMe as cachedMagnetStates, Rg as calcGeneratorVelocity, RCe as canApprove, pg as cancelFrame, Bwe as candidateText, HH as cardClass, IM as cardRatio, eV as cc, Wi as checkEvidenceGap, Ui as checkFailures, Pi as checkFeeds, iwe as checkLine, Vi as checkReceipt, Hi as checkSummary, QOe as checkText, Gi as checkedText, DK as clickedBlank, Y5 as closeDrawerAfterNav, oCe as cloudLocations, W0 as cloudProxySkeleton, $C as clsx, Khe as cn, ov as collectMotionValues, xJ as columnVisibilityFeature, cY as column_getCanSort, iY as column_getSortFn, ICe as commonReviewSources, Of as configurationSection, FNe as configureTasteBrowser, ol as confirmModal, Pfe as controlTask, Lq as copyInstancePropertiesWithoutMemos, co as coverUrl, fJ as createColumnHelper, zOe as createPlaylist, Yi as credentialDone, B0 as credentialsSkeleton, qCe as currentReviewRow, q as cx, cV as dZ, WCe as decisionPayload, GCe as decisionReceipt, UCe as defaultChoice, Zwe as deletePerformerVideos, VOe as deletePlaylist, x as diagnosticHeaders, c0 as diagnosticsSkeleton, BW as discoveryArtwork, RW as discoveryKey, wAe as discoveryScore, s9 as disposeStage, uCe as distinctName, zi as dropSources, tge as du, hCe as duplicateVictims, vL as elapsedText, tn as entityDisplayName, ho as entityFaceImg, Nn as entityPath, ei as errorHeadline, cr as errorMessage, z as esc, eJ as expandRowModel, RB as f1, $r as feedIntervalText, g1 as fetchAmaneBridge, _i as fetchCheckJob, E1 as fetchConfiguration, h1 as fetchCoverJob, gi as fetchCredentials, l1 as fetchCustomSources, nZ as fetchDeletePerformers, Xwe as fetchDeletePlan, u$ as fetchDiagnostics, zW as fetchDiscoveries, qY as fetchDuplicates, Afe as fetchEarlier, cwe as fetchFeedSchedule, ji as fetchFeeds, hi as fetchFollow, swe as fetchFollowSchedule, cZ as fetchJunkSummary, SX as fetchLinkCheck, CX as fetchLinkPrune, xX as fetchLinkStats, owe as fetchMediaProcessing, QY as fetchMediaRepair, yr as fetchMediaSources, zX as fetchOrganize, xwe as fetchOrganizeExample, HX as fetchOrphanRecords, Ai as fetchPending, o1 as fetchPlaylists, nX as fetchQualityGoals, $Y as fetchRepairLibraries, vi as fetchResolveJob, JX as fetchResourceApply, qX as fetchResourceScan, mX as fetchReview, sZ as fetchReviewCounts, IX as fetchSettings, m1 as fetchSources, x3 as fetchStats, yi as fetchSuggestions, pL as fetchTasks, K3 as fetchTaste, INe as fetchTasteJob, lwe as fetchThumbnailJobs, lZ as fetchTrashSummary, kW as fetchWants, PCe as filterReviewRows, $n as firstGrapheme, yq as flexRender, ZNe as flowGraph, QNe as flowLabel, XMe as fmtCount, qn as fmtDur, Yn as fmtSize, kfe as foldByKind, Gfe as foldRoutine, Ii as followFeedByName, Vr as followSuggestKey, qfe as followupDetail, Ofe as followupTally, fg as frame, HB as g4, wJ as getDefaultPaginationState, FM as gridLayout, ci as groupByAuthor, Wfe as groupFollowups, dX as groupReviewRows, Wwe as hasChanges, YX as hasResourceRoots, hL as hasResultProblems, HNe as historySpan, zB as i2, BNe as importTasteExport, V0 as indexersSkeleton, Pg as interpolate, FW as invalidateWants, _L as isActive, Qr as isBroken, Kr as isLayout, _v as isMotionValue, oX as isReviewCategory, Kfe as isRoutine, H0 as javBrowserSkeleton, Q0 as javContentSkeleton, OM as javLayout, Z0 as javTagSkeleton, nTe as junkBreakdown, HOe as keepPlaylist, ke as keepPreviousData, fi as keepSelected, S3 as known, khe as l7, Ufe as latestOfKind, cNe as lengthRows, Sr as localTime, Fi as lookupFeedActor, UB as m7, sV as mM, En as mapLimit, ki as markItem, D3 as max, oNe as mediumRows, jfe as mergeFinished, O3 as min, QCe as mirrorText, xCe as missingToolText, JY as mixedCloudPreferences, SL as momentText, pS as motion, cv as motionValue, nn as nameFallback, He as notifyManager, jwe as organizeOutcome, p2 as overlayHost, qr as pageSizeOf, di as pageWindow, mr as paginationRange, Ri as patchSource, W as peachHistory, W as peachHistory$1, HCe as pendingGenres, QMe as percentText, wwe as pickOrganizeFolder, W$ as plainStatClass, Awe as planSummary, C3 as playedFor, eNe as playedItemUrl, fL as pollInterval, Js as popCount, ROe as posterUrl, Sye as previewLibraryColor, Cwe as previewOrganize, wCe as previewUrl, Hfe as problemDestination, yL as progressText, SU as providerIcon, rwe as pruneText, ZX as purgeCount, Iwe as purgeOrphan, uV as pv, $he as qE, H as queryClient, BB as r2, JNe as radarRows, rNe as radialArc, iNe as radialBarSize, nNe as radialCeiling, tNe as radialSlices, ZN as randomId, KNe as rankDetail, qNe as rankShares, T3 as reachedShare, bL as readableErrorHeadline, TAe as recommendationScore, JCe as recordGenre, Rwe as recordsText, UOe as recreatePlaylist, IOe as refreshPlaylists, Cl as relayoutCovers, Bi as reloadFollowManage, ZCe as reloadReview, rAe as rememberShape, Ewe as rememberTemplates, Ei as removeAlias, Ni as removeFeed, Ci as removeSource, zNe as removeTasteSource, NW as removeWants, Di as renameAliasGroup, BOe as renamePlaylist, Se as replaceEqualDeep, uNe as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, Nq as require_with_selector, PW as resetWants, pr as resolveFollowSort, Vg as resolveStartTime, LOe as resumeAssetId, NCe as reviewGroupingOptions, uX as reviewQueueData, lX as reviewQueueOf, tTe as reviewSummary, FCe as reviewWindow, BCe as rowEvidence, pX as rowFieldName, jJ as rowPaginationFeature, QJ as rowSelectionFeature, dY as rowSortingFeature, fX as rowSubject, VCe as rowTags, zCe as rowTitle, Ehe as s5, Oi as saveCredential, Gwe as scanLine, mwe as schedulePollInterval, LW as searchNote, LCe as selectReviewRange, pi as selectionState, Mi as setFeedEnabled, Si as setSourceEnabled, Mf as settingsPath, XCe as settleReviewRows, lCe as sharedNamePrefix, Ep as shellNavigate, b8 as showToast, zn as siteMarkUrl, Gq as skipFirstRun, eL as sortCx, Yr as sortLabel, yn as sourceDefaultCost, qi as sourceIconUrl, Jwe as sourceMeta, zs as spinnerHtml, Mg as spring, OV as spriteGlyph, bi as startCheck, twe as startLinkCheck, nwe as startLinkPrune, Twe as startOrganize, xi as startResolve, Hwe as startResourceApply, Vwe as startResourceScan, RNe as startTasteRefresh, mOe as statCardClass, Rfe as statusLabel, bCe as statusLine, Zr as statusText, LM as storeJavLayout, KCe as submitDecision, CL as summaryItems, pJ as tableFeatures, Kq as tableMemo, ui as tableRows, Vfe as taskIssues, q3 as tasteDate, WNe as tasteDimensions, UNe as tasteHours, G3 as tasteKey, NNe as tasteRefetchInterval, PNe as tasteTime, oL as textLang, $m as time, zhe as tl, mi as toggleGroup, J3 as topScores, Hhe as uo, AH as useAction, cQ as useBackgroundJob, QU as useClientUpdates, dm as useConstant, wL as useEntityNames, AL as useHorizontalScroller, fm as useIsomorphicLayoutEffect, EK as useLibraryTints, Ft as useMutation, tH as useOverlayScrollbar, Pt as useQuery, ae as useQueryClient, tS as useReducedMotion, pwe as useRunSchedule, dwe as useSaveFollowSchedule, LX as useSaveSettings, hwe as useSaveThumbnailMode, fY as useTable, kY as useTablePreferences, LL as useViewGlide, gCe as victimBytes, IW as wantName, $Me as watchNote, w3 as watchedShare, Dc as wireHorizontalScroller, Dwe as withOrganizeJob };+XLe($9);+export { sR as $2ec61d1d4f780267$export$a8a3e93435678ff9, hR as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, Mz as $542a13ca2fa5b484$export$5b6b19405a83ff9d, ND as $72abaeab4d80592f$export$78efe591171d7d45, wB as $76d00c5a4edb230a$export$76ccd210b9029917, xB as $76d00c5a4edb230a$export$816b5d811295e6bc, DB as $76d00c5a4edb230a$export$b59bdbef9ce70de2, kB as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, bB as $76d00c5a4edb230a$export$f850895b287ef28e, ahe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, ihe as $b4f18e3395fe64d7$export$3e41faf802a29e71, the as $b4f18e3395fe64d7$export$b2539bed5023c21c, NB as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, che as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, bE as $ea3928288112382f$export$439d29a4e110a164, Gz as $f2ff30fde7b014be$export$3ddf2d174ce01153, Qz as $fe21c36db05242bb$export$a98f0dcb43a68a25, $z as $fe21c36db05242bb$export$d7b12c4107be0d61, Bhe as $l, aM as ACCENTS, XOe as AMANE_BRIDGE_CHECK_URL, p1 as AMANE_BRIDGE_KEY, ZOe as AMANE_BRIDGE_REBUILD_URL, or as ApiError, dW as ArtSlot, J as Button, zL as ButtonLink, lV as Bx, U$ as CLEANUP_ENTRY, H$ as CLEANUP_ENTRY_GRID, Yf as CLEANUP_HASH_REDIRECTS, qf as CLEANUP_TOOLS, _n as CLOUD_LOCATIONS, m0 as CLOUD_PROXY_HELP, Gr as COLUMN_SORT, T1 as CONFIGURATION_KEY, TX as CONFIGURATION_URL, QOe as COOKIE_TEXT_LIMIT, f1 as COVER_JOB_KEY, Ji as CREDENTIAL_STATE, c1 as CUSTOM_SOURCES_KEY, s1 as CUSTOM_SOURCES_URL, tH as Checkbox, eH as CheckboxGlyph, GV as ChevronSortDown, uW as Chip, CW as CloudDownloadDialog, XH as CollapseChevron, YH as CollapseRegion, I$ as CollectionSummary, jCe as DEFAULT_CATEGORY, ur as DEFAULT_SORT, l$ as DIAGNOSTICS_KEY, Awe as DIRECTORY_TEMPLATE_ERROR, Y0 as DISCOVERY_SORTS, pW as DOWNLOADS_KEY, fW as DOWNLOADS_URL, GY as DUPLICATES_KEY, EY as DataTableFooter, SY as DataTableFrame, TY as DataTableSort, bU as Disclosure, Mve as DownloadsPanel, Nhe as E3, MCe as ENTITY_REVIEW_KINDS, f0 as ENTRY_LINKS_HELP, p0 as ENTRY_LINKS_HINT, Uhe as Ea, uge as EmptyFocusButton, DV as EmptyState, vU as ErrorText, G_e as ExternalLink, Br as FEEDS_KEY, NX as FEED_SCHEDULE_KEY, B$ as FIELDSET_FOOT, XNe as FLOW_LABEL_X, X3 as FLOW_VIEWBOX, Rr as FOLLOW_CHECK_KEY, Lr as FOLLOW_CREDENTIALS_KEY, N8 as FOLLOW_INITIAL_RANGE_OPTIONS, Ir as FOLLOW_MANAGE_KEY, pQ as FOLLOW_MANAGE_NAV, zr as FOLLOW_RESOLVE_KEY, MX as FOLLOW_SCHEDULE_KEY, J_e as Fact, q_e as FactList, yU as FieldLabel, e1 as Fieldset, $$ as FieldsetTitle, npe as FilterGlass, ML as FilterGlassRows, jL as FilterIconButton, NL as FilterPill, W_e as Footer, oV as Gg, PL as GlassPill, pV as HN, _U as Help, vV as HintText, HNe as IDLE_POLL_MS, bCe as IDLE_REPAIR, DL as IconButton, d$ as IndexSearch, CV as Input, SV as InputBase, CM as JAV_LAYOUTS, Z0 as JAV_RECOMMENDATION_GRID, iZ as JUNK_KEY, KW as JavHeader, mCe as KEEP_LABELS, Hr as LAYOUTS, d0 as LIBRARY_FOLDER_HELP, mH as LIBRARY_PROCESSING_KEY, _X as LINKS_KEY, vX as LINK_CHECK_KEY, nwe as LINK_KINDS, yX as LINK_PRUNE_KEY, tr as LOC, _V as Label, r1 as LibraryProcessingCard, WV as LibraryShortcuts, AH as LinkButton, WH as LoadingDots, Phe as M6, swe as MEDIA_PROCESSING_KEY, FX as MEDIA_PROCESSING_URL, XY as MEDIA_REPAIR_KEY, YY as MEDIA_REPAIR_URL, vr as MEDIA_SOURCES_KEY, gs as MEDIA_SOURCE_ICONS, hn as MEDIA_SOURCE_OPTIONS, YV as MENU_ITEM, XV as MENU_ITEM_INTERACTIVE, JV as MENU_POPOVER_SURFACE, PH as MenuDialog, VK as MixCard, wV as ModalFrame, Cx as MotionConfigContext, gV as NR, EV as Note, age as OA, RX as ORGANIZE_KEY, VX as ORPHAN_RECORDS_KEY, iV as OV, WB as P7, tZ as PERFORMER_DELETE_KEY, kW as PHASES, EX as PICK_FOLDER_URL, G$ as PLAIN_STAT_STRIP, a1 as PLAYLISTS_KEY, eAe as POLICY_COLUMNS, u0 as POLICY_COVER_NOTE, tAe as POLICY_MATRIX, l0 as POLICY_SUMMARY, wY as Pagination, n1 as PathLine, nL as PillTabList, yOe as PlainStat, KH as Progress, tX as QUALITY_GOALS_KEY, q$ as REPAIR_CARD_TEXT, ZY as REPAIR_LIBRARIES_KEY, KX as RESOURCE_APPLY_KEY, GX as RESOURCE_SCAN_KEY, wOe as RESULT_PANEL, TOe as RESULT_SECTION, ACe as REVIEW_CATEGORIES, rZ as REVIEW_COUNTS_KEY, NCe as REVIEW_DECISION_LABELS, iX as REVIEW_KEY, aX as REVIEW_LABELS, sX as REVIEW_QUEUES, cX as REVIEW_QUEUE_LABELS, fK as RetryNote, rge as Rf, V_e as Rows, JOe as SCRAPING_CHECK_URL, u1 as SCRAPING_COVER_URL, d1 as SCRAPING_KEY, qOe as SCRAPING_SETTINGS_URL, BU as SEGMENT, zU as SEGMENTED_TRACK, jX as SETTINGS_KEY, DX as SETTINGS_URL, dr as SORT_DEFAULT_DIR, lr as SORT_OPTIONS, vn as SOURCE_LABELS, x3 as STATS_KEY, _Oe as STAT_STRIP, vOe as STAT_STRIP_SIX, B_e as Section, EOe as SectionHeading, U_e as SectionSkeleton, RU as SegmentedRadioGroup, lve as SegmentedTabList, aK as Segments, CY as Select, sW as Select$1, k1 as SelectField, cW as SelectItem, NY as SelectionActions, Pj as SelectionDock, PY as SelectionPopover, ZH as SettingsCard, D_e as SettingsRow, QH as SettingsSectionLabel, Q_e as SiteLabel, RG as SortDirectionIcon, sK as SortKeys, KQ as SourceAvatar, wU as SourceLabel, xU as SourceMark, H_e as Stack, bOe as StatCard, t1 as StatusLabel, $2 as Switch, dL as TASKS_KEY, jNe as TASTE_REFRESH_KEY, MNe as TASTE_WINDOWS, PX as THUMBNAIL_JOBS_KEY, oZ as TRASH_KEY, Ife as TRIGGER_LABELS, pY as Table, FY as TableColumnControls, IY as TableColumnResizer, RY as TableSelectionHeader, j$ as TagManager, K_e as TaskCenterLink, qH as TaskProgress, bV as TextField, yV as TextFieldContext, nV as Un, DW as WANTS_KEY, m4 as WantMagnets, Wg as WithPromise, JB as Wt, tV as Xc, hV as Xf, YB as Xt, KB as _8, o as __commonJSMin, s as __exportAll, l as __toESM, nge as aB, Ti as addAlias, wi as addSource, NW as addWant, fS as animate, B as apiGet, V as apiSend, _M as appSettingsStore, Ywe as applyConfirmText, eZ as applyLeftovers, Jwe as applyPlanText, Zwe as applyText, xM as applyTheme, _y as asNumber, Lwe as attachOrphan, si as authorAvatar, li as authorGroups, oi as authorInitial, ai as authorName, tJ as autoResetPageIndex, go as avatarInner, D3 as bandRows, jwe as baseName, yCe as batchOperate, sue as beginPlayerGuidePreview, Hj as boundedPreference, gCe as bulkCloudPreferences, jV as busyProps, tge as cB, sMe as cachedMagnetStates, Rg as calcGeneratorVelocity, BCe as canApprove, pg as cancelFrame, Hwe as candidateText, UH as cardClass, IM as cardRatio, eV as cc, Wi as checkEvidenceGap, Ui as checkFailures, Pi as checkFeeds, owe as checkLine, Vi as checkReceipt, Hi as checkSummary, eke as checkText, Gi as checkedText, DK as clickedBlank, X5 as closeDrawerAfterNav, cCe as cloudLocations, G0 as cloudProxySkeleton, $C as clsx, Khe as cn, ov as collectMotionValues, xJ as columnVisibilityFeature, cY as column_getCanSort, iY as column_getSortFn, RCe as commonReviewSources, Of as configurationSection, INe as configureTasteBrowser, ol as confirmModal, Pfe as controlTask, Lq as copyInstancePropertiesWithoutMemos, co as coverUrl, fJ as createColumnHelper, VOe as createPlaylist, Yi as credentialDone, V0 as credentialsSkeleton, YCe as currentReviewRow, q as cx, cV as dZ, KCe as decisionPayload, qCe as decisionReceipt, GCe as defaultChoice, $we as deletePerformerVideos, UOe as deletePlaylist, x as diagnosticHeaders, c0 as diagnosticsSkeleton, VW as discoveryArtwork, zW as discoveryKey, TAe as discoveryScore, s9 as disposeStage, fCe as distinctName, zi as dropSources, ege as du, _Ce as duplicateVictims, vL as elapsedText, tn as entityDisplayName, ho as entityFaceImg, Nn as entityPath, ei as errorHeadline, cr as errorMessage, z as esc, eJ as expandRowModel, RB as f1, $r as feedIntervalText, g1 as fetchAmaneBridge, _i as fetchCheckJob, E1 as fetchConfiguration, h1 as fetchCoverJob, gi as fetchCredentials, l1 as fetchCustomSources, nZ as fetchDeletePerformers, Qwe as fetchDeletePlan, u$ as fetchDiagnostics, BW as fetchDiscoveries, qY as fetchDuplicates, Afe as fetchEarlier, uwe as fetchFeedSchedule, ji as fetchFeeds, hi as fetchFollow, lwe as fetchFollowSchedule, cZ as fetchJunkSummary, SH as fetchLibraryProcessing, SX as fetchLinkCheck, CX as fetchLinkPrune, xX as fetchLinkStats, cwe as fetchMediaProcessing, QY as fetchMediaRepair, yr as fetchMediaSources, zX as fetchOrganize, Cwe as fetchOrganizeExample, HX as fetchOrphanRecords, Ai as fetchPending, o1 as fetchPlaylists, nX as fetchQualityGoals, $Y as fetchRepairLibraries, vi as fetchResolveJob, JX as fetchResourceApply, qX as fetchResourceScan, mX as fetchReview, sZ as fetchReviewCounts, IX as fetchSettings, m1 as fetchSources, S3 as fetchStats, yi as fetchSuggestions, pL as fetchTasks, q3 as fetchTaste, LNe as fetchTasteJob, dwe as fetchThumbnailJobs, lZ as fetchTrashSummary, AW as fetchWants, ICe as filterReviewRows, $n as firstGrapheme, yq as flexRender, QNe as flowGraph, $Ne as flowLabel, ZMe as fmtCount, qn as fmtDur, Yn as fmtSize, kfe as foldByKind, Gfe as foldRoutine, Ii as followFeedByName, Vr as followSuggestKey, qfe as followupDetail, Ofe as followupTally, fg as frame, HB as g4, wJ as getDefaultPaginationState, FM as gridLayout, ci as groupByAuthor, Wfe as groupFollowups, dX as groupReviewRows, Kwe as hasChanges, YX as hasResourceRoots, hL as hasResultProblems, UNe as historySpan, zB as i2, VNe as importTasteExport, H0 as indexersSkeleton, Pg as interpolate, IW as invalidateWants, _L as isActive, Qr as isBroken, Kr as isLayout, _v as isMotionValue, oX as isReviewCategory, Kfe as isRoutine, U0 as javBrowserSkeleton, $0 as javContentSkeleton, OM as javLayout, Q0 as javTagSkeleton, iTe as junkBreakdown, WOe as keepPlaylist, ke as keepPreviousData, fi as keepSelected, C3 as known, khe as l7, Ufe as latestOfKind, lNe as lengthRows, Sr as localTime, Fi as lookupFeedActor, UB as m7, sV as mM, En as mapLimit, ki as markItem, O3 as max, sNe as mediumRows, jfe as mergeFinished, k3 as min, ewe as mirrorText, CCe as missingToolText, JY as mixedCloudPreferences, SL as momentText, pS as motion, cv as motionValue, nn as nameFallback, He as notifyManager, Nwe as organizeOutcome, m2 as overlayHost, qr as pageSizeOf, di as pageWindow, mr as paginationRange, Ri as patchSource, W as peachHistory, W as peachHistory$1, WCe as pendingGenres, $Me as percentText, Ewe as pickOrganizeFolder, W$ as plainStatClass, Mwe as planSummary, w3 as playedFor, tNe as playedItemUrl, fL as pollInterval, Js as popCount, BOe as posterUrl, wye as previewLibraryColor, Twe as previewOrganize, ECe as previewUrl, Hfe as problemDestination, _H as processingActive, yL as progressText, CU as providerIcon, awe as pruneText, ZX as purgeCount, Rwe as purgeOrphan, uV as pv, $he as qE, H as queryClient, BB as r2, YNe as radarRows, iNe as radialArc, aNe as radialBarSize, rNe as radialCeiling, nNe as radialSlices, ZN as randomId, qNe as rankDetail, JNe as rankShares, E3 as reachedShare, bL as readableErrorHeadline, EAe as recommendationScore, XCe as recordGenre, Bwe as recordsText, GOe as recreatePlaylist, ROe as refreshPlaylists, Cl as relayoutCovers, Bi as reloadFollowManage, $Ce as reloadReview, iAe as rememberShape, Owe as rememberTemplates, Ei as removeAlias, Ni as removeFeed, Ci as removeSource, BNe as removeTasteSource, PW as removeWants, Di as renameAliasGroup, HOe as renamePlaylist, Se as replaceEqualDeep, dNe as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, Nq as require_with_selector, FW as resetWants, pr as resolveFollowSort, Vg as resolveStartTime, n_e as restartEffectText, zOe as resumeAssetId, FCe as reviewGroupingOptions, uX as reviewQueueData, lX as reviewQueueOf, rTe as reviewSummary, LCe as reviewWindow, HCe as rowEvidence, pX as rowFieldName, jJ as rowPaginationFeature, QJ as rowSelectionFeature, dY as rowSortingFeature, fX as rowSubject, UCe as rowTags, VCe as rowTitle, Ehe as s5, Oi as saveCredential, qwe as scanLine, gwe as schedulePollInterval, RW as searchNote, zCe as selectReviewRange, pi as selectionState, Mi as setFeedEnabled, Si as setSourceEnabled, Mf as settingsPath, QCe as settleReviewRows, dCe as sharedNamePrefix, Ep as shellNavigate, x8 as showToast, zn as siteMarkUrl, Gq as skipFirstRun, eL as sortCx, Yr as sortLabel, yn as sourceDefaultCost, qi as sourceIconUrl, Xwe as sourceMeta, zs as spinnerHtml, Mg as spring, kV as spriteGlyph, bi as startCheck, rwe as startLinkCheck, iwe as startLinkPrune, Dwe as startOrganize, xi as startResolve, Wwe as startResourceApply, Uwe as startResourceScan, zNe as startTasteRefresh, gOe as statCardClass, Rfe as statusLabel, SCe as statusLine, Zr as statusText, LM as storeJavLayout, JCe as submitDecision, CL as summaryItems, pJ as tableFeatures, Kq as tableMemo, ui as tableRows, Vfe as taskIssues, J3 as tasteDate, GNe as tasteDimensions, WNe as tasteHours, K3 as tasteKey, PNe as tasteRefetchInterval, FNe as tasteTime, oL as textLang, $m as time, zhe as tl, mi as toggleGroup, Y3 as topScores, Hhe as uo, jH as useAction, cQ as useBackgroundJob, $U as useClientUpdates, dm as useConstant, wL as useEntityNames, AL as useHorizontalScroller, fm as useIsomorphicLayoutEffect, EK as useLibraryTints, Ft as useMutation, nH as useOverlayScrollbar, Pt as useQuery, ae as useQueryClient, tS as useReducedMotion, hwe as useRunSchedule, pwe as useSaveFollowSchedule, LX as useSaveSettings, _we as useSaveThumbnailMode, fY as useTable, kY as useTablePreferences, LL as useViewGlide, vCe as victimBytes, LW as wantName, eNe as watchNote, T3 as watchedShare, Dc as wireHorizontalScroller, kwe as withOrganizeJob };-//# debugId=4cd4bd67-af63-4621-8b1a-37326bee31e3\ No newline at end of file+//# debugId=bb0dd71e-f97d-458b-9aaa-1709ddce8273\ No newline at end of file