Skip to content

armgit / peach

Public Imported from GitHub
0

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

fix(web): JAV 页筛选框并入页头,骨架按所在分区画

longmeidao924e1d6a88fd
diff --git a/frontend/e2e/jav-recommendations.test.ts b/frontend/e2e/jav-recommendations.test.ts
index 7bfefba58..a9c64daa1 100644
--- a/frontend/e2e/jav-recommendations.test.ts
+++ b/frontend/e2e/jav-recommendations.test.ts
@@ -91,7 +91,7 @@ describe('JAV 推荐与加载结构', () => {
assert.ok(cover && Math.abs(cover.width / cover.height - 0.75) < 0.02, '大图封面占位应与馆藏正封同一比例');
const skeletonWidth = await page.locator('[data-skeleton="jav-discover"]').first().boundingBox();
const skeletonCard = await page.locator('[data-jav-skeleton-card]').first().boundingBox();
- const searchBox = await page.locator('input[aria-label="筛选推荐"]').locator('xpath=../../..').boundingBox();
+ const searchBox = await page.locator('[data-index-search]').boundingBox();
const main = await page.locator('#main').boundingBox();
assert.ok(skeletonWidth && main && skeletonWidth.width >= main.width - 40);
const pendingFilter = await page.locator('[data-jav-filter]').boundingBox();
@@ -185,7 +185,7 @@ describe('JAV 推荐与加载结构', () => {
} else {
assert.ok(skeletonCard && Math.abs(skeletonCard.height - heights[0]!) <= 2, JSON.stringify({ skeletonCard, heights }));
}
- assert.deepEqual(await search.locator('xpath=../../..').boundingBox(), searchBox);
+ assert.deepEqual(await page.locator('[data-index-search]').boundingBox(), searchBox, '页头筛选框骨架与接管后同一位置');
assert.equal(await cards.nth(1).locator('h3').evaluate(node => getComputedStyle(node).webkitLineClamp), '2');
const lookup = page.getByRole('button', { name: '查找资源', exact: true }).first();
assert.notEqual(await lookup.evaluate(node => getComputedStyle(node).backgroundColor),
diff --git a/frontend/src/board-skeleton.ts b/frontend/src/board-skeleton.ts
index 8f98d5e73..3ac05db54 100644
--- a/frontend/src/board-skeleton.ts
+++ b/frontend/src/board-skeleton.ts
@@ -2,6 +2,7 @@ import { resolveFollowSort, SORT_OPTIONS, type SortDir, type SortKey } from './f
import { islandButton, islandSelect } from './island-skeleton';
import { configurationSkeleton } from './configuration-skeleton';
import { javPageSkeleton } from './jav-skeleton';
+import { javTab } from './react/jav/jav-navigation';
import { duplicatesSkeleton, qualityGoalsSkeleton, statsSkeleton, tasteSkeleton } from './management-skeletons';
import { CONFIGURATION_SECTIONS } from './history/settings-route';
import { FOLLOW_MANAGE_NAV as FOLLOW_TABS } from './react/follow-manage/manage-route';
@@ -94,7 +95,8 @@ export function boardPageSkeleton(
if (path === '/stats') {
body = statsSkeleton();
} else if (path === '/jav') {
- body = javPageSkeleton(new URLSearchParams(location.search).get('tab') === 'wants' ? 'wants' : 'discover');
+ const tab = javTab(new URLSearchParams(location.search).get('tab'));
+ body = javPageSkeleton(tab === 'library' ? 'discover' : tab);
} else if (path === '/taste') {
body = tasteSkeleton();
} else if (path === '/subscriptions') {
diff --git a/frontend/src/catalog-filter-skeleton.ts b/frontend/src/catalog-filter-skeleton.ts
index cc6b7194c..333dd84b8 100644
--- a/frontend/src/catalog-filter-skeleton.ts
+++ b/frontend/src/catalog-filter-skeleton.ts
@@ -19,6 +19,10 @@ const esc = (value: string): string => value.replace(/[&<>"]/g, (ch) =>
const slots = (html: string): string => html.repeat(EMPTY_SLOTS);
+/** 女优或厂牌那一排的占位格;JAV 新作分区的两排等数据时也用这一份。 */
+export const tierPlaceholdersHtml = (kind: 'performer' | 'studio'): string =>
+ slots(`<span data-catalog-placeholder="${kind}" aria-hidden="true"><span></span><span>&nbsp;</span></span>`);
+
export function catalogFilterSkeletonHtml(views: readonly CatalogView[], state: string, head?: Pick<CatalogFilterProps, 'sorts' | 'layout'>): string {
const viewHtml = views.map((view) => `<a href="${esc(view.href)}" data-catalog-view="${esc(view.k)}"`
+ ` data-entity-press="" aria-pressed="${state === view.k}">${esc(view.label)}</a>`).join('');
@@ -26,12 +30,8 @@ export function catalogFilterSkeletonHtml(views: readonly CatalogView[], state:
const shape = rememberedTiers();
return `<div class="peach-react"><div class="contents" data-catalog-root="" data-loading="">`
+ `<div data-catalog-tiers="" aria-busy="true"${shape.performers || shape.studios ? '' : ' hidden'}>`
- + (shape.performers ? `<div data-catalog-tier="performers" data-skeleton="tiers">`
- + slots('<span data-catalog-placeholder="performer" aria-hidden="true"><span></span><span>&nbsp;</span></span>')
- + `</div>` : '')
- + (shape.studios ? `<div data-catalog-tier="studios">`
- + slots('<span data-catalog-placeholder="studio" aria-hidden="true"><span></span><span>&nbsp;</span></span>')
- + `</div>` : '')
+ + (shape.performers ? `<div data-catalog-tier="performers" data-skeleton="tiers">${tierPlaceholdersHtml('performer')}</div>` : '')
+ + (shape.studios ? `<div data-catalog-tier="studios">${tierPlaceholdersHtml('studio')}</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">`
diff --git a/frontend/src/filter-controls-skeleton.ts b/frontend/src/filter-controls-skeleton.ts
index 67b3e15aa..f5c5b761f 100644
--- a/frontend/src/filter-controls-skeleton.ts
+++ b/frontend/src/filter-controls-skeleton.ts
@@ -13,11 +13,13 @@ const segments = (label: string, value: string, options: readonly SegmentOption[
`<span data-entity-layout="" class="${SEGMENTED_GLASS_TRACK}" role="radiogroup" aria-label="${esc(label)}">${options.map(([key, text, glyph]) =>
`<span class="${SEGMENT_GLASS}" role="radio" aria-label="${esc(text)}" aria-checked="${key === value}" data-glass-segment=""${key === value ? ' data-selected=""' : ''} ${FILTER_WAITING}>${icon(glyph)}</span>`).join('')}</span>`;
-/** 已知的控件保留文字、字形与按下态;等待接线时不能执行动作。 */
-export function filterControlsSkeletonHtml(sorts: readonly EntitySortKey[], layout: Layout | null): string {
- const view = catalogView();
+/** 已知的控件保留文字、字形与按下态;等待接线时不能执行动作。`catalog` 为假时不画馆藏才有的
+ * 「卡片/列表」与文件夹开关(JAV 新作分区只有换一批、卡片版式与排序键)。 */
+export function filterControlsSkeletonHtml(sorts: readonly EntitySortKey[], layout: Layout | null, { catalog = true } = {}): string {
+ const view = catalog ? catalogView() : 'cards';
const folders = new URLSearchParams(location.search);
const sizes = layout && view === 'cards' ? segments(layout.label, layout.value, layout.options) : '';
- return `<span data-entity-sorts=""><button type="button" data-entity-batch="" data-filter-action="" aria-label="换一批" ${FILTER_WAITING}>${icon('shuffle')}</button>${sizes}${segments('馆藏显示方式', view, [['cards','卡片','ri-layout-grid-line'],['list','列表','ri-list-unordered']])}<button type="button" data-folder-mode-toggle="" aria-label="文件夹模式" aria-pressed="${folders.get('browse') === 'folders' || !!folders.get('folder')}" ${FILTER_WAITING}>${icon('ri-folder-3-line')}</button>${sorts.map(sort =>
+ const catalogControls = catalog ? `${segments('馆藏显示方式', view, [['cards','卡片','ri-layout-grid-line'],['list','列表','ri-list-unordered']])}<button type="button" data-folder-mode-toggle="" aria-label="文件夹模式" aria-pressed="${folders.get('browse') === 'folders' || !!folders.get('folder')}" ${FILTER_WAITING}>${icon('ri-folder-3-line')}</button>` : '';
+ return `<span data-entity-sorts=""><button type="button" data-entity-batch="" data-filter-action="" aria-label="换一批" ${FILTER_WAITING}>${icon('shuffle')}</button>${sizes}${catalogControls}${sorts.map(sort =>
`<button type="button" data-entity-sort="${esc(sort.key)}" aria-pressed="${sort.pressed}" ${FILTER_WAITING}>${esc(sort.label)}${sort.dir ? icon(sort.dir === 'asc' ? 'arrow-up' : 'arrow-down') : ''}</button>`).join('')}</span>`;
}
diff --git a/frontend/src/jav-skeleton.ts b/frontend/src/jav-skeleton.ts
index 2c2d377bc..9ba0e96d3 100644
--- a/frontend/src/jav-skeleton.ts
+++ b/frontend/src/jav-skeleton.ts
@@ -1,7 +1,9 @@
import { islandButton, islandGlyph, islandSearchInput, islandShortcutsEntry } from './island-skeleton';
import { JAV_TABS } from './react/jav/jav-navigation';
-import { cardRatio, gridLayout, javLayout } from './appearance';
-import { DISCOVERY_SORTS } from './react/jav/discovery-sorts';
+import { cardRatio, gridLayout, javLayout, JAV_LAYOUTS } from './appearance';
+import { DISCOVERY_SORTS, RELEASE_SORTS } from './react/jav/discovery-sorts';
+import { tierPlaceholdersHtml } from './catalog-filter-skeleton';
+import { filterControlsSkeletonHtml } from './filter-controls-skeleton';
const text = (width: string) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${width}" aria-hidden="true"></span>`;
const cover = (classes: string) => `<span data-jav-skeleton-cover class="skeleton ${classes}"></span>`;
@@ -27,14 +29,39 @@ export function javContentSkeleton(tab: string, layout = javLayout()): string {
</div>`).join('')}</div>`;
}
+const SEARCH_LABELS: Record<string, string> = { releases: '筛选新作', discover: '筛选推荐', wants: '筛选想要' };
+
+/** 照 `JavPage` 的静止态画:页头一行是标题、靠右的筛选框(同名册页的 `IndexSearch` 骨架)与查找资源,
+ * 分区按地址栏里的那一个按下,下面按分区画各自的筛选条与卡片占位。 */
export function javPageSkeleton(tab: string): string {
- const filterLabel = tab === 'wants' ? '筛选想要' : '筛选推荐';
+ const q = new URLSearchParams(location.search).get('q') || '';
+ const body = tab === '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>${text('100%')}</div>${javContentSkeleton(tab)}`
+ : tab === 'releases' ? `<section class="flex min-w-0 flex-col gap-4">${releasesFilterSkeleton()}${javContentSkeleton(tab)}</section>`
+ : `<section class="flex min-w-0 flex-col gap-4">${javFilterSkeleton()}${javContentSkeleton(tab)}</section>`;
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>${islandButton({ variant: 'primary', label: '查找资源', attrs: 'disabled data-skeleton-action' })}</div>
+ <div class="flex w-full flex-col gap-4"><div class="flex min-w-0 flex-wrap items-center gap-3 max-board-narrow:gap-x-2"><h2 data-page-title class="text-display-4-medium text-text-primary max-board-narrow:text-title-1-medium">JAV</h2><div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${islandSearchInput('', q, SEARCH_LABELS[tab] || '筛选')}</div>${islandButton({ variant: 'primary', label: '查找资源', attrs: 'disabled data-skeleton-action' })}</div>
<div class="relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0">${JAV_TABS.map(([key, label]) => `<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 ${key === tab ? 'bg-background-tertiary-default text-text-primary' : 'text-text-secondary'}">${label}</span>`).join('')}</div></div>
- <form aria-label="${filterLabel}">${islandSearchInput('筛选番号、女优或标题', '', filterLabel)}</form>
- ${tab === '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>${text('100%')}</div>${javContentSkeleton(tab)}`
- : `<section class="flex min-w-0 flex-col gap-4">${javFilterSkeleton()}${javContentSkeleton(tab)}</section>`}</div></div>`;
+ ${body}</div></div>`;
+}
+
+/** 新作分区等数据时的两排头像与筛选条:头像、厂牌、标签用馆藏同一份占位,下排是换一批、卡片版式与
+ * 排序键(照地址栏里的排序按下),同 `jav-releases.tsx` 取到数据后的样子。 */
+export function releasesFilterSkeleton(): string {
+ const params = new URLSearchParams(location.search);
+ const sort = params.get('sort') || 'release_date';
+ const dir: 'asc' | 'desc' = params.get('dir') === 'asc' ? 'asc' : 'desc';
+ const sorts = RELEASE_SORTS.map(([key, label, ariaLabel]) => ({ key, label, ariaLabel, pressed: key === sort,
+ dir: key === sort ? dir : '' as const }));
+ return `<div data-catalog-tiers="" aria-busy="true"><div data-catalog-tier="performers" data-skeleton="tiers">${tierPlaceholdersHtml('performer')}</div><div data-catalog-tier="studios">${tierPlaceholdersHtml('studio')}</div></div>
+ <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-tags>${javTagSkeleton()}</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>
+ ${filterControlsSkeletonHtml(sorts, { name: 'jav-layout', label: 'JAV 卡片版式', value: javLayout(), options: JAV_LAYOUTS }, { catalog: false })}
+ </div>
+ </div>`;
}
/** 首屏筛选控件使用首页的两排容器;标签和读数依赖查询。 */
diff --git a/frontend/src/react/jav/discovery-sorts.ts b/frontend/src/react/jav/discovery-sorts.ts
index 090ea2557..954ee9866 100644
--- a/frontend/src/react/jav/discovery-sorts.ts
+++ b/frontend/src/react/jav/discovery-sorts.ts
@@ -8,6 +8,15 @@ export const DISCOVERY_SORTS = [
['code', '番号', '按番号排序'],
] as const;
export type DiscoverySort = typeof DISCOVERY_SORTS[number][0];
+/** 新作分区的排序:发行时间打头(默认),其余同「发现」;`random` 是「换一批」,没有对应的排序键。 */
+export const RELEASE_SORTS = [
+ ['release_date', JAV_RELEASE_SORT[1], '按发行日期排序'],
+ ['source_score', '来源评分', '按来源评分排序'],
+ ['duration', '时长', '按时长排序'],
+ ['code', '番号', '按番号排序'],
+ ['taste', '口味', '按口味匹配排序'],
+] as const;
+export type ReleaseSort = typeof RELEASE_SORTS[number][0] | 'random';
export type DiscoveryDirection = 'asc' | 'desc';
export function discoveryScore(value: number | null | undefined): string {
diff --git a/frontend/src/react/jav/jav-header.tsx b/frontend/src/react/jav/jav-header.tsx
index 0e10d8854..253f4153c 100644
--- a/frontend/src/react/jav/jav-header.tsx
+++ b/frontend/src/react/jav/jav-header.tsx
@@ -1,16 +1,18 @@
-import { useState } from 'react';
+import { useState, type ReactNode } from 'react';
import { Button } from '@/components/base/buttons/button';
import { CloudDownloadDialog, type DownloadPrefill } from '../activity/cloud-download-dialog';
import { JAV_TABS, javPath } from './jav';
import { BoardTabs } from '../components/board-tabs';
-export function JavHeader({ tab, navigate, find }: {
- tab: string; navigate(path: string): void; find(): void;
+/** 页头一行:标题、分区自己的筛选框(同名册页的 `IndexSearch`,靠右)、查找资源。馆藏用目录顶栏的搜索,不传。 */
+export function JavHeader({ tab, navigate, find, search }: {
+ tab: string; navigate(path: string): void; find(): void; search?: ReactNode;
}) {
return <div className="flex w-full flex-col gap-4">
- <div className="flex flex-wrap items-center justify-between gap-2">
+ <div className="flex min-w-0 flex-wrap items-center gap-3 max-board-narrow:gap-x-2">
<h2 data-page-title="" className="text-display-4-medium text-text-primary max-board-narrow:text-title-1-medium">JAV</h2>
- <Button variant="primary" onClick={find}>查找资源</Button>
+ {search}
+ <Button variant="primary" className={search ? 'flex-none' : 'ml-auto flex-none'} onClick={find}>查找资源</Button>
</div>
<BoardTabs tabs={JAV_TABS.map(([value, label]) => ({ value, label }))} value={tab}
label="JAV 分区" className="" onChange={key => navigate(javPath(key))} />
diff --git a/frontend/src/react/jav/jav-page.tsx b/frontend/src/react/jav/jav-page.tsx
index 395f20b4f..55cf5c22e 100644
--- a/frontend/src/react/jav/jav-page.tsx
+++ b/frontend/src/react/jav/jav-page.tsx
@@ -1,8 +1,7 @@
-import { useEffect, useRef, useState, useSyncExternalStore, type CSSProperties, type FormEvent } from 'react';
+import { useEffect, useRef, useState, useSyncExternalStore, type CSSProperties } from 'react';
import { useQuery } from '@tanstack/react-query';
import { RiCompassLine } from '@remixicon/react';
import { Button, ButtonLink } from '@/components/base/buttons/button';
-import { Input } from '@/components/base/input/input';
import { Chip } from '@/components/base/badges/chip';
import { appSettingsStore, javLayout, storeJavLayout, JAV_LAYOUTS, cardRatio, gridLayout } from '@peach/appearance';
import { wireHorizontalScroller } from '../../ui-kit/scroll';
@@ -19,6 +18,7 @@ import { writeJavQuery } from './jav-navigation';
import { DiscoveryCard, resourcePrefill } from './discovery-card';
import { Releases } from './jav-releases';
import { JavHeader } from './jav-header';
+import { IndexSearch } from '../index/index-search';
import { spriteGlyph } from '../components/sprite-glyph';
import { FilterGlassRows, FilterIconButton, FilterPill, GlassPill } from '../components/filter-glass';
import { LibraryShortcuts } from '../library-shortcuts/shortcut-controls';
@@ -26,7 +26,6 @@ import { Segments, SortKeys } from '../entity-filter/entity-filter-page';
import { TaskProgress } from '../components/task-progress';
import { DISCOVERY_SORTS, discoveryScore, recommendationScore, type DiscoverySort } from './discovery-sorts';
-const SearchGlyph = spriteGlyph('search');
const MetadataStopGlyph = spriteGlyph('x');
const MetadataRefreshGlyph = spriteGlyph('refresh-cw');
const SEARCH_LABELS: Record<string, string> = { releases: '筛选新作', discover: '筛选推荐', wants: '筛选想要' };
@@ -37,13 +36,9 @@ export function JavPage({ tab, readOnly, navigate, receipt }: {
const [download, setDownload] = useState<DownloadPrefill | null>(null);
const [text, changeText] = useState(() => new URLSearchParams(location.search).get('q') || '');
const setText = (value: string) => { changeText(value); writeJavQuery({ q: value }) };
- const search = (event: FormEvent) => { event.preventDefault() };
return <div className="flex w-full flex-col gap-6">
- <JavHeader tab={tab} navigate={navigate} find={() => setDownload({})} />
- <form aria-label={SEARCH_LABELS[tab]} onSubmit={search}>
- <Input type="search" aria-label={SEARCH_LABELS[tab]} placeholder="筛选番号、女优或标题" leadingIcon={SearchGlyph}
- value={text} onChange={setText} enterKeyHint="search" />
- </form>
+ <JavHeader tab={tab} navigate={navigate} find={() => setDownload({})}
+ search={<IndexSearch label={SEARCH_LABELS[tab] || '筛选'} value={text} onQuery={setText} />} />
{tab === 'releases'
? <Releases readOnly={readOnly} receipt={receipt} resource={setDownload} query={text.trim()} navigate={navigate} clearText={() => setText('')} />
: tab === 'discover'
diff --git a/frontend/src/react/jav/jav-releases.tsx b/frontend/src/react/jav/jav-releases.tsx
index 86aafa4a9..8ab42b4f0 100644
--- a/frontend/src/react/jav/jav-releases.tsx
+++ b/frontend/src/react/jav/jav-releases.tsx
@@ -10,6 +10,7 @@ import { appSettingsStore, javLayout, storeJavLayout, JAV_LAYOUTS, cardRatio, gr
import { entityFaceImg, facePos, logoUrl } from '@peach/card-art';
import { wireHorizontalScroller } from '../../ui-kit/scroll';
import { javContentSkeleton, javTagSkeleton, JAV_RECOMMENDATION_GRID } from '../../jav-skeleton';
+import { tierPlaceholdersHtml } from '../../catalog-filter-skeleton';
import { errorMessage } from '../../api';
import { entityDisplayName } from '../../core/entity-names';
import type { DownloadPrefill } from '../activity/cloud-download-dialog';
@@ -20,16 +21,18 @@ import { Pagination } from '../components/table-pagination';
import { FilterGlassRows, FilterPill, GlassPill } from '../components/filter-glass';
import { Segments, Shuffle, SortKeys } from '../entity-filter/entity-filter-page';
import { Chip } from '@/components/base/badges/chip';
-import { recommendationScore, type DiscoveryDirection } from './discovery-sorts';
+import { recommendationScore, RELEASE_SORTS, type DiscoveryDirection, type ReleaseSort } from './discovery-sorts';
import { addWant, invalidateWants } from '../wants/wants';
import { useAction } from '../settings/use-action';
import { useEntityNames } from '../use-entity-names';
import { DiscoveryCard, resourcePrefill } from './discovery-card';
-import { fetchReleases, releaseFilters, releaseKey, RELEASE_PAGE_SIZE, RELEASE_SORTS, type ReleaseFacetPerformer, type ReleaseFacetStudio,
- type ReleaseFilters, type ReleaseSort } from './jav';
+import { fetchReleases, releaseFilters, releaseKey, RELEASE_PAGE_SIZE, type ReleaseFacetPerformer, type ReleaseFacetStudio,
+ type ReleaseFilters } from './jav';
import { writeJavQuery } from './jav-navigation';
type Facet = 'performer' | 'studio' | 'tag';
+/** 等数据时两排头像的占位,与路由骨架(`releasesFilterSkeleton`)同一份。 */
+const TIER_PLACEHOLDERS = `<div data-catalog-tier="performers" data-skeleton="tiers">${tierPlaceholdersHtml('performer')}</div><div data-catalog-tier="studios">${tierPlaceholdersHtml('studio')}</div>`;
const performerRing = (person: ReleaseFacetPerformer) =>
`<span data-tier-initial>${esc(firstGrapheme(entityDisplayName('performer', person.name, person.id)))}</span>${entityFaceImg({
@@ -56,11 +59,11 @@ export function Releases({ readOnly, receipt, resource, query, navigate, clearTe
}) {
useEntityNames();
const [filters, setFilters] = useState<ReleaseFilters>(() => releaseFilters(location.search));
- /* 文字筛选停手 300 毫秒再问服务端:每敲一个字就是一趟整批筛选。 */
+ /* 页头的 `IndexSearch` 停手 300 毫秒才交出文字,这里换了就回第 1 页重问服务端。 */
useEffect(() => {
if (query === filters.q) return;
- const timer = setTimeout(() => { setFilters(current => ({ ...current, q: query, page: 1 })); writeJavQuery({ page: '' }) }, 300);
- return () => clearTimeout(timer);
+ setFilters(current => ({ ...current, q: query, page: 1 }));
+ writeJavQuery({ page: '' });
}, [query, filters.q]);
const choose = (facet: Facet, value: string) => {
const next = filters[facet] === value ? '' : value;
@@ -119,6 +122,7 @@ export function Releases({ readOnly, receipt, resource, query, navigate, clearTe
const filtered = !!(filters.performer || filters.studio || filters.tag || filters.q);
const pages = Math.max(1, Math.ceil((data?.total || 0) / RELEASE_PAGE_SIZE));
return <section ref={section} aria-label="订阅新作" aria-busy={waiting || releases.isFetching} className="flex min-w-0 scroll-mt-24 flex-col gap-4">
+ {waiting ? <div data-catalog-tiers="" aria-busy="true" dangerouslySetInnerHTML={{ __html: TIER_PLACEHOLDERS }} /> : null}
{data && (data.facets.performers.length || data.facets.studios.length) ? <div data-catalog-tiers="" data-release-tiers="">
{data.facets.performers.length ? <div data-catalog-tier="performers" role="group" aria-label="按女优筛选">
{data.facets.performers.map(person => <button key={person.name} type="button" data-tier-performer=""
diff --git a/frontend/src/react/jav/jav.ts b/frontend/src/react/jav/jav.ts
index 1acd0a822..89fe6f2bf 100644
--- a/frontend/src/react/jav/jav.ts
+++ b/frontend/src/react/jav/jav.ts
@@ -4,8 +4,7 @@ import { fetchWants, WANTS_KEY } from '../wants/wants';
import type { FaceRef, CoverItem } from '@peach/card-art';
import { coverImage, javArtwork, remoteCoverUrl } from '@peach/card-art';
import { esc } from '@peach/legacy/core';
-import type { DiscoveryDirection, DiscoverySort } from './discovery-sorts';
-import { JAV_RELEASE_SORT } from '../../sort-preferences';
+import { RELEASE_SORTS, type DiscoveryDirection, type DiscoverySort, type ReleaseSort } from './discovery-sorts';
export { JAV_TABS, javTab, javPath, javLibraryPath } from './jav-navigation';
export interface Discovery extends CoverItem {
@@ -38,15 +37,6 @@ export function fetchDiscoveries(scope: DiscoveryScope, signal: AbortSignal, opt
return apiGet<DiscoveryResult>(`/api/jav/discoveries?${params}`, signal);
}
-/** 新作分区的排序:发行时间打头(默认),其余同「发现」;`random` 是「换一批」,没有对应的排序键。 */
-export const RELEASE_SORTS = [
- ['release_date', JAV_RELEASE_SORT[1], '按发行日期排序'],
- ['source_score', '来源评分', '按来源评分排序'],
- ['duration', '时长', '按时长排序'],
- ['code', '番号', '按番号排序'],
- ['taste', '口味', '按口味匹配排序'],
-] as const;
-export type ReleaseSort = typeof RELEASE_SORTS[number][0] | 'random';
/** 新作分区的筛选与排序:都写在地址栏里,刷新与返回原样恢复。`seed` 只在换一批时有值。 */
export interface ReleaseFilters {
page: number; performer: string; studio: string; tag: string; q: string;
diff --git a/frontend/test/board-skeleton.test.ts b/frontend/test/board-skeleton.test.ts
index 8219b66c9..6926737ae 100644
--- a/frontend/test/board-skeleton.test.ts
+++ b/frontend/test/board-skeleton.test.ts
@@ -26,6 +26,21 @@ describe('Board 页面骨架', () => {
expect(control.closest('[inert]')).not.toBeNull();
}
});
+ it('JAV 新作分区骨架按下新作,页头是名册页那种筛选框,下面是两排头像占位与新作自己的排序键', () => {
+ const before = location.pathname + location.search;
+ history.replaceState(null, '', '/jav?tab=releases&sort=duration&dir=asc');
+ const root = document.createElement('div');
+ root.innerHTML = boardPageSkeleton('/jav');
+ history.replaceState(null, '', before);
+ expect([...root.querySelectorAll('span.whitespace-nowrap.rounded-md')].find(node => node.classList.contains('text-text-primary'))?.textContent).toBe('新作');
+ expect(root.querySelector('[data-index-search] input')?.getAttribute('aria-label')).toBe('筛选新作');
+ expect(root.querySelector('form')).toBeNull();
+ expect(root.querySelectorAll('[data-catalog-tier] [data-catalog-placeholder]').length).toBeGreaterThan(0);
+ expect(root.querySelector('[data-entity-tag="external"]')).toBeNull();
+ expect([...root.querySelectorAll('[data-entity-sort]')].map(node => node.textContent)).toEqual(['发行时间', '来源评分', '时长', '番号', '口味']);
+ expect(root.querySelector('[data-entity-sort][aria-pressed="true"]')?.getAttribute('data-entity-sort')).toBe('duration');
+ expect(root.querySelector('[data-entity-batch]')?.getAttribute('aria-label')).toBe('换一批');
+ });
it('统计预留四张指标卡,未知页面交给自身骨架', () => {
const root = document.createElement('div');
root.innerHTML = boardPageSkeleton('/stats');
diff --git a/frontend/test/react/jav-page.test.tsx b/frontend/test/react/jav-page.test.tsx
index 499a34942..20c802c68 100644
--- a/frontend/test/react/jav-page.test.tsx
+++ b/frontend/test/react/jav-page.test.tsx
@@ -1,3 +1,4 @@
+import { act } from 'react';
import { afterEach, expect, it, vi } from 'vitest';
import { QueryClientProvider, notifyManager } from '@tanstack/react-query';
import { queryClient } from '../../src/react/query';
@@ -10,6 +11,12 @@ import { actionOrder, buttonNamed, click, mount, settle, type } from './render';
notifyManager.setScheduler(notify => notify());
afterEach(() => queryClient.clear());
+/** 页头筛选框是名册页那个 `IndexSearch`:停手 300 毫秒才交出文字。 */
+async function search(host: ParentNode, text: string) {
+ await type(host.querySelector('[data-index-search] input'), text);
+ await act(() => new Promise(resolve => { setTimeout(resolve, 320) }));
+}
+
it('发现已有结果即时呈现,陈旧推荐在后台更新', async () => {
const cached = { items: [{ id: 1, code: 'ABC-001' }], candidate_total: 1, limited: false };
queryClient.setQueryData(discoveryKey('external'), cached, { updatedAt: Date.now() - 60_000 });
@@ -83,9 +90,9 @@ it('发现按范围读取,清除文字和标签恢复列表,卡片打开对
expect(host.querySelectorAll('[data-jav-card]')).toHaveLength(1);
await click(buttonNamed('清除筛选', host));
expect(host.querySelectorAll('[data-jav-card]')).toHaveLength(2);
- await type(host.querySelector('input[type="search"]'), 'ABC-001');
+ await search(host, 'ABC-001');
expect(host.querySelectorAll('[data-jav-card]')).toHaveLength(1);
- await type(host.querySelector('input[type="search"]'), '');
+ await search(host, '');
expect(host.querySelectorAll('[data-jav-card]')).toHaveLength(2);
await click(host.querySelector('[data-jav-card] h3'));
expect(navigate).toHaveBeenLastCalledWith('/works/ABC-001');
@@ -129,7 +136,7 @@ it('新作分区的女优、厂牌、标签只列接口给的订阅新作筛选
it('新作分区默认按发行时间倒序,排序键再点翻方向,换一批按新种子重排且不按下排序键', async () => {
const before = location.pathname + location.search;
history.replaceState(null, '', '/jav?tab=releases');
- const fetcher = vi.fn(async () => ({ ok: true, status: 200, json: async () => ({ items: [], total: 0, candidate_total: 0, page: 1, size: 24,
+ const fetcher = vi.fn(async (_url: string) => ({ ok: true, status: 200, json: async () => ({ items: [], total: 0, candidate_total: 0, page: 1, size: 24,
facets: { performers: [], studios: [], tags: [] } }) }));
vi.stubGlobal('fetch', fetcher);
const host = await mount(<QueryClientProvider client={queryClient}><JavPage tab="releases" readOnly navigate={vi.fn()} receipt={vi.fn()} /></QueryClientProvider>);
diff --git a/web/dist/peach-app.jav-page-ODKY3pI8.js b/web/dist/peach-app.jav-page-C7oV8KHn.js
similarity index 72%
rename from web/dist/peach-app.jav-page-ODKY3pI8.js
rename to web/dist/peach-app.jav-page-C7oV8KHn.js
index c69307b71..66d9db0f9 100644
--- a/web/dist/peach-app.jav-page-ODKY3pI8.js
+++ b/web/dist/peach-app.jav-page-C7oV8KHn.js
@@ -1,28 +1,28 @@
(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] = "0fdb342b-820f-4b3c-9a8f-7235a2f54321", e._sentryDebugIdIdentifier = "sentry-dbid-0fdb342b-820f-4b3c-9a8f-7235a2f54321");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "e19604f0-dfdb-4cf0-8f2f-6350c8940e56", e._sentryDebugIdIdentifier = "sentry-dbid-e19604f0-dfdb-4cf0-8f2f-6350c8940e56");
} catch {}
})();
-import { $fe21c36db05242bb$export$d7b12c4107be0d61 as e, ArtSlot as t, Button as n, ButtonLink as r, Bx as i, Chip as a, CloudDownloadDialog as o, DISCOVERY_SORTS as s, DOWNLOADS_KEY as c, DOWNLOADS_URL as l, E3 as u, EmptyFocusButton as d, EmptyState as f, FilterGlassRows as p, FilterIconButton as m, FilterPill as h, GlassPill as g, Help as _, Input as v, JAV_LAYOUTS as ee, JAV_RECOMMENDATION_GRID as te, JavHeader as y, LibraryShortcuts as b, M6 as x, Note as S, PHASES as C, Pagination as w, RELEASE_SORTS as T, SEGMENT as E, SEGMENTED_TRACK as D, SegmentedRadioGroup as O, Segments as ne, Shuffle as re, SortKeys as ie, SourceAvatar as k, TaskProgress as ae, WANTS_KEY as A, WantMagnets as j, Wt as M, __toESM as N, addWant as oe, apiGet as P, appSettingsStore as se, avatarInner as F, busyProps as I, cachedMagnetStates as L, cardClass as R, cardRatio as ce, coverUrl as z, discoveryArtwork as B, discoveryKey as le, discoveryScore as ue, entityDisplayName as V, entityFaceImg as H, entityPath as U, errorMessage as W, esc as G, facePos as de, fetchDiscoveries as fe, fetchReleases as K, fetchWants as q, firstGrapheme as pe, gridLayout as me, invalidateWants as J, javContentSkeleton as he, javLayout as ge, javTagSkeleton as _e, keepPreviousData as ve, leadingGraphemes as ye, logoUrl as be, pageWindow as xe, qE as Se, recommendationScore as Ce, relayoutCovers as we, releaseFilters as Te, releaseKey as Ee, removeWants as De, require_jsx_runtime as Oe, require_react as ke, resetWants as Ae, searchNote as je, spriteGlyph as Me, storeJavLayout as Ne, textLang as Pe, useAction as Y, useEntityNames as Fe, useQuery as Ie, wantName as X, wireHorizontalScroller as Le, writeJavQuery as Z } from "./peach-app.js";
-import { ErrorLine as Re } from "./peach-app.source-view-DalWfDkm.js";
+import { $fe21c36db05242bb$export$d7b12c4107be0d61 as e, ArtSlot as t, Button as n, ButtonLink as r, Bx as i, Chip as a, CloudDownloadDialog as o, DISCOVERY_SORTS as s, DOWNLOADS_KEY as c, DOWNLOADS_URL as l, E3 as u, EmptyFocusButton as d, EmptyState as f, FilterGlassRows as p, FilterIconButton as m, FilterPill as h, GlassPill as g, Help as _, IndexSearch as v, Input as y, JAV_LAYOUTS as ee, JAV_RECOMMENDATION_GRID as te, JavHeader as b, LibraryShortcuts as x, M6 as S, Note as C, PHASES as ne, Pagination as w, RELEASE_SORTS as T, SEGMENT as E, SEGMENTED_TRACK as D, SegmentedRadioGroup as O, Segments as re, Shuffle as ie, SortKeys as ae, SourceAvatar as k, TaskProgress as oe, WANTS_KEY as A, WantMagnets as j, Wt as M, __toESM as N, addWant as se, apiGet as P, appSettingsStore as ce, avatarInner as F, busyProps as I, cachedMagnetStates as L, cardClass as R, cardRatio as le, coverUrl as z, discoveryArtwork as B, discoveryKey as ue, discoveryScore as de, entityDisplayName as V, entityFaceImg as H, entityPath as U, errorMessage as W, esc as fe, facePos as G, fetchDiscoveries as pe, fetchReleases as K, fetchWants as me, firstGrapheme as he, gridLayout as ge, invalidateWants as q, javContentSkeleton as _e, javLayout as ve, javTagSkeleton as ye, keepPreviousData as be, leadingGraphemes as xe, logoUrl as Se, pageWindow as Ce, qE as we, recommendationScore as Te, relayoutCovers as Ee, releaseFilters as De, releaseKey as Oe, removeWants as ke, require_jsx_runtime as Ae, require_react as je, resetWants as Me, searchNote as Ne, spriteGlyph as Pe, storeJavLayout as Fe, textLang as Ie, tierPlaceholdersHtml as Le, useAction as J, useEntityNames as Re, useQuery as Y, wantName as X, wireHorizontalScroller as ze, writeJavQuery as Z } from "./peach-app.js";
+import { ErrorLine as Be } from "./peach-app.source-view-DalWfDkm.js";
import "./peach-app.source-list-ri5fRK2E.js";
// src/react/wants/want-list.tsx
-var Q = /* @__PURE__ */ N(ke(), 1), $ = Oe(), ze = {
+var Q = /* @__PURE__ */ N(je(), 1), $ = Ae(), Ve = {
code: "手动添加",
feed: "订阅新作",
follow: "关注"
-}, Be = [
+}, He = [
["all", "全部"],
["available", "有磁链"],
["missing", "没磁链"]
-], Ve = (e) => [
+], Ue = (e) => [
e.release_date,
e.studio,
e.performers,
- ze[e.origin]
+ Ve[e.origin]
].filter(Boolean).join(" · ");
-function He({ want: e }) {
+function We({ want: e }) {
return /* @__PURE__ */ (0, $.jsxs)("span", {
className: "relative inline-grid w-card-cover shrink-0 aspect-card-cover place-items-center overflow-hidden rounded-2lg bg-background-tertiary-default max-sm:w-24",
children: [/* @__PURE__ */ (0, $.jsx)("span", {
@@ -38,14 +38,14 @@ function He({ want: e }) {
}) : null]
});
}
-function Ue({ want: e, readOnly: t, busy: i, onReset: a, onRemove: o, onCloudDownload: s, downloads: c, provider: l, toast: u }) {
+function Ge({ want: e, readOnly: t, busy: i, onReset: a, onRemove: o, onCloudDownload: s, downloads: c, provider: l, toast: u }) {
let [d, f] = (0, Q.useState)(""), p = e.link || d || (e.code ? `https://javdb.com/search?q=${encodeURIComponent(e.code)}&f=all` : "");
return /* @__PURE__ */ (0, $.jsxs)("li", {
"data-want-id": e.id,
className: R({ className: "flex flex-col gap-4 max-sm:p-4" }),
children: [/* @__PURE__ */ (0, $.jsxs)("div", {
className: "flex min-w-0 items-start gap-4 max-sm:gap-3",
- children: [/* @__PURE__ */ (0, $.jsx)(He, { want: e }), /* @__PURE__ */ (0, $.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, $.jsx)(We, { want: e }), /* @__PURE__ */ (0, $.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-1",
children: [
/* @__PURE__ */ (0, $.jsxs)("p", {
@@ -58,16 +58,16 @@ function Ue({ want: e, readOnly: t, busy: i, onReset: a, onRemove: o, onCloudDow
children: e.title
}) : null]
}),
- Ve(e) ? /* @__PURE__ */ (0, $.jsx)("p", {
+ Ue(e) ? /* @__PURE__ */ (0, $.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: Ve(e)
+ children: Ue(e)
}) : null,
!e.code || e.phase === "unreleased" || e.phase === "acquired" ? /* @__PURE__ */ (0, $.jsx)("p", {
"data-want-note": "",
className: "text-caption-1-regular text-text-secondary",
- children: je(e)
+ children: Ne(e)
}) : null,
- e.scrape_error ? /* @__PURE__ */ (0, $.jsx)(Re, {
+ e.scrape_error ? /* @__PURE__ */ (0, $.jsx)(Be, {
text: e.scrape_error,
prefix: "资料未取得:",
tone: "muted"
@@ -88,7 +88,7 @@ function Ue({ want: e, readOnly: t, busy: i, onReset: a, onRemove: o, onCloudDow
/* @__PURE__ */ (0, $.jsx)(n, {
variant: "secondary",
size: "small",
- leadingIcon: x,
+ leadingIcon: S,
disabled: t,
...I(i === `remove:${e.id}`),
onClick: o,
@@ -122,8 +122,8 @@ function Ue({ want: e, readOnly: t, busy: i, onReset: a, onRemove: o, onCloudDow
}) : null]
});
}
-function We({ phase: t, label: r, rows: i, row: a }) {
- let [o, s] = (0, Q.useState)(1), [c, l] = (0, Q.useState)("all"), u = L(i), d = (e) => e.has_magnets ?? u.get(e.code || "") ?? !1, p = i.filter(d), m = t !== "searching" || c === "all" ? i : i.filter((e) => d(e) === (c === "available")), h = xe(m.length, 20, o);
+function Ke({ phase: t, label: r, rows: i, row: a }) {
+ let [o, s] = (0, Q.useState)(1), [c, l] = (0, Q.useState)("all"), u = L(i), d = (e) => e.has_magnets ?? u.get(e.code || "") ?? !1, p = i.filter(d), m = t !== "searching" || c === "all" ? i : i.filter((e) => d(e) === (c === "available")), h = Ce(m.length, 20, o);
return /* @__PURE__ */ (0, $.jsxs)("section", {
"aria-label": r,
"data-want-phase": t,
@@ -146,7 +146,7 @@ function We({ phase: t, label: r, rows: i, row: a }) {
onChange: (e) => {
l(e), s(1);
},
- children: Be.map(([t, n]) => /* @__PURE__ */ (0, $.jsxs)(e, {
+ children: He.map(([t, n]) => /* @__PURE__ */ (0, $.jsxs)(e, {
value: t,
"aria-label": n,
className: E,
@@ -159,7 +159,7 @@ function We({ phase: t, label: r, rows: i, row: a }) {
}),
m.length ? null : /* @__PURE__ */ (0, $.jsx)(f, {
size: "compact",
- icon: Se,
+ icon: we,
title: "暂无符合条件的作品",
actions: /* @__PURE__ */ (0, $.jsx)(n, {
size: "small",
@@ -190,36 +190,36 @@ function We({ phase: t, label: r, rows: i, row: a }) {
]
});
}
-function Ge({ readOnly: e, toast: t, query: r = "", clearQuery: i }) {
- let [a, s] = (0, Q.useState)(""), [u, p] = (0, Q.useState)(null), m = Y(), h = Ie({
+function qe({ readOnly: e, toast: t, query: r = "", clearQuery: i }) {
+ let [a, s] = (0, Q.useState)(""), [u, p] = (0, Q.useState)(null), m = J(), h = Y({
queryKey: A,
- queryFn: ({ signal: e }) => q(e),
+ queryFn: ({ signal: e }) => me(e),
staleTime: 3e4,
refetchInterval: (e) => e.state.data?.scraping ? 3e3 : !1
}), g = () => {
let n = a.trim();
- n && !e && m.run("add", (e) => oe({ code: n }, e), (e) => {
- t(e.created ? `已加入想要:${X(e.want)}` : `${X(e.want)} 已经在想要里`), s(""), J();
+ n && !e && m.run("add", (e) => se({ code: n }, e), (e) => {
+ t(e.created ? `已加入想要:${X(e.want)}` : `${X(e.want)} 已经在想要里`), s(""), q();
});
- }, ee = (e) => {
+ }, v = (e) => {
e.key === "Enter" && !e.nativeEvent.isComposing && (e.preventDefault(), g());
- }, te = (e) => {
- m.run(`remove:${e.id}`, (t) => De([e.id], t), () => {
- t(`已移除:${X(e)}`), J();
+ }, ee = (e) => {
+ m.run(`remove:${e.id}`, (t) => ke([e.id], t), () => {
+ t(`已移除:${X(e)}`), q();
});
- }, y = (e) => {
- m.run(`reset:${e.id}`, (t) => Ae([e.id], t), () => {
- t(`${X(e)} 回到待找`), J();
+ }, te = (e) => {
+ m.run(`reset:${e.id}`, (t) => Me([e.id], t), () => {
+ t(`${X(e)} 回到待找`), q();
});
}, b = h.data, x = (b?.items || []).filter((e) => !r || [
e.code,
e.title,
e.performers
- ].join(" ").toLocaleLowerCase().includes(r.toLocaleLowerCase())), w = Ie({
+ ].join(" ").toLocaleLowerCase().includes(r.toLocaleLowerCase())), S = Y({
queryKey: c,
queryFn: ({ signal: e }) => P(`${l}?limit=100`, e),
enabled: x.some((e) => e.code && (e.phase === "searching" || e.phase === "given_up"))
- }), T = w.data?.providers.filter((e) => e.configured) || [], E = T[0]?.key || "";
+ }), w = S.data?.providers.filter((e) => e.configured) || [], T = w[0]?.key || "";
return /* @__PURE__ */ (0, $.jsxs)("div", {
"aria-busy": h.isPending,
className: "flex flex-col gap-8",
@@ -238,13 +238,13 @@ function Ge({ readOnly: e, toast: t, query: r = "", clearQuery: i }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, $.jsx)("div", {
className: "min-w-64 grow max-sm:min-w-0",
- children: /* @__PURE__ */ (0, $.jsx)(v, {
+ children: /* @__PURE__ */ (0, $.jsx)(y, {
"aria-label": "番号",
placeholder: "输入番号,例如 SSIS-950",
value: a,
isDisabled: e,
onChange: s,
- onKeyDown: ee
+ onKeyDown: v
})
}), /* @__PURE__ */ (0, $.jsx)(n, {
variant: "primary",
@@ -254,14 +254,14 @@ function Ge({ readOnly: e, toast: t, query: r = "", clearQuery: i }) {
children: "添加"
})]
}),
- m.error ? /* @__PURE__ */ (0, $.jsx)(S, {
+ m.error ? /* @__PURE__ */ (0, $.jsx)(C, {
tone: "error",
title: "这一次没有完成",
children: m.error
}) : null
]
}),
- h.error ? /* @__PURE__ */ (0, $.jsx)(S, {
+ h.error ? /* @__PURE__ */ (0, $.jsx)(C, {
tone: "error",
title: "想要清单读取失败",
children: W(h.error)
@@ -269,31 +269,31 @@ function Ge({ readOnly: e, toast: t, query: r = "", clearQuery: i }) {
h.isPending ? /* @__PURE__ */ (0, $.jsx)("div", {
role: "status",
"aria-label": "正在读取想要",
- dangerouslySetInnerHTML: { __html: he("wants") }
+ dangerouslySetInnerHTML: { __html: _e("wants") }
}) : null,
b?.scraping ? /* @__PURE__ */ (0, $.jsx)(_, {
role: "status",
children: "正在给刚加入的番号取资料与封面。"
}) : null,
- w.error ? /* @__PURE__ */ (0, $.jsx)(S, {
+ S.error ? /* @__PURE__ */ (0, $.jsx)(C, {
tone: "error",
title: "下载配置未取得",
- children: W(w.error)
+ children: W(S.error)
}) : null,
- w.data && !T.length ? /* @__PURE__ */ (0, $.jsxs)(S, {
+ S.data && !w.length ? /* @__PURE__ */ (0, $.jsxs)(C, {
tone: "neutral",
children: ["尚未配置下载渠道。", /* @__PURE__ */ (0, $.jsx)("a", {
href: "/settings/library?section=%E4%B8%8B%E8%BD%BD%E6%B8%A0%E9%81%93",
children: "下载渠道设置"
})]
}) : null,
- w.data && !w.data.available ? /* @__PURE__ */ (0, $.jsx)(S, {
+ S.data && !S.data.available ? /* @__PURE__ */ (0, $.jsx)(C, {
tone: "neutral",
children: "云下载只在允许修改数据库的设备上可用。"
}) : null,
b && !x.length ? /* @__PURE__ */ (0, $.jsx)(f, {
size: "compact",
- icon: Se,
+ icon: we,
title: r ? "没有符合条件的作品" : "还没有想要的作品",
actions: r && i ? /* @__PURE__ */ (0, $.jsx)(n, {
size: "small",
@@ -305,21 +305,21 @@ function Ge({ readOnly: e, toast: t, query: r = "", clearQuery: i }) {
}) : void 0,
children: r ? "试试其他番号、女优或标题。" : "输入番号,添加想看的作品。"
}) : null,
- C.map(([n, r]) => {
+ ne.map(([n, r]) => {
let i = x.filter((e) => e.phase === n);
- return i.length ? /* @__PURE__ */ (0, $.jsx)(We, {
+ return i.length ? /* @__PURE__ */ (0, $.jsx)(Ke, {
phase: n,
label: r,
rows: i,
- row: (n) => /* @__PURE__ */ (0, $.jsx)(Ue, {
+ row: (n) => /* @__PURE__ */ (0, $.jsx)(Ge, {
want: n,
readOnly: e,
busy: m.busy,
- downloads: w.data,
- provider: E,
+ downloads: S.data,
+ provider: T,
toast: t,
- onReset: () => y(n),
- onRemove: () => te(n),
+ onReset: () => te(n),
+ onRemove: () => ee(n),
onCloudDownload: () => p({
code: n.code || "",
title: n.title || "",
@@ -336,14 +336,14 @@ function Ge({ readOnly: e, toast: t, query: r = "", clearQuery: i }) {
prefill: u,
close: () => p(null),
receipt: t,
- provider: E
+ provider: T
})
]
});
}
// src/react/jav/discovery-faces.tsx
-function Ke({ item: e }) {
- Fe();
+function Je({ item: e }) {
+ Re();
let t = e.performer_refs?.length ? e.performer_refs : [...new Set(e.performers.split(/[,,、;/]/).filter(Boolean))].map((e) => ({ name: e })), n = t.slice(0, 5).map((t, n) => {
let r = { "--media-avatar-index": n }, i = t.source_avatar && t.source_actor_id && !t.has_image ? { children: /* @__PURE__ */ (0, $.jsx)(k, {
code: e.code,
@@ -369,12 +369,12 @@ function Ke({ item: e }) {
}) : n[0] || null;
}
// src/react/jav/discovery-card.tsx
-var qe = (e) => ({
+var Ye = (e) => ({
...e,
cover: e.has_cover ? z(e, !0) : e.cover_url,
origin: `${e.asset_id ? "asset" : "feed"}:${e.id}`
});
-function Je({ item: e, layout: i, javImage: a, readOnly: o, navigate: s, tag: c, onTag: l, wanting: u, onWant: d, onResource: f, badge: p }) {
+function Xe({ item: e, layout: i, javImage: a, readOnly: o, navigate: s, tag: c, onTag: l, wanting: u, onWant: d, onResource: f, badge: p }) {
let m = e.performer_refs?.length ? e.performer_refs.map((e) => e.name).join("、") : e.performers, h = B(e, i, a), g = e.asset_id ? `/assets/${e.asset_id}` : `/works/${encodeURIComponent(e.code)}`;
return /* @__PURE__ */ (0, $.jsxs)("article", {
"data-media-card": "",
@@ -398,7 +398,7 @@ function Je({ item: e, layout: i, javImage: a, readOnly: o, navigate: s, tag: c,
html: h
},
identity: B(e, "small", a),
- relayout: (e) => we(e, i)
+ relayout: (e) => Ee(e, i)
}) : /* @__PURE__ */ (0, $.jsx)("span", {
"data-media-nopic": "",
children: "无封面"
@@ -406,7 +406,7 @@ function Je({ item: e, layout: i, javImage: a, readOnly: o, navigate: s, tag: c,
}),
/* @__PURE__ */ (0, $.jsxs)("div", {
"data-media-meta": "",
- children: [/* @__PURE__ */ (0, $.jsx)(Ke, { item: e }), /* @__PURE__ */ (0, $.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, $.jsx)(Je, { item: e }), /* @__PURE__ */ (0, $.jsxs)("div", {
"data-media-text": "",
children: [
/* @__PURE__ */ (0, $.jsxs)("h3", {
@@ -417,7 +417,7 @@ function Je({ item: e, layout: i, javImage: a, readOnly: o, navigate: s, tag: c,
/* @__PURE__ */ (0, $.jsx)("b", { children: e.code }),
" ",
e.title ? /* @__PURE__ */ (0, $.jsx)("span", {
- lang: Pe(e.title),
+ lang: Ie(e.title),
children: e.title
}) : "标题未取得"
]
@@ -507,16 +507,16 @@ function Je({ item: e, layout: i, javImage: a, readOnly: o, navigate: s, tag: c,
});
}
// src/react/jav/jav-releases.tsx
-var Ye = (e) => `<span data-tier-initial>${G(pe(V("performer", e.name, e.id)))}</span>${H({
+var Ze = `<div data-catalog-tier="performers" data-skeleton="tiers">${Le("performer")}</div><div data-catalog-tier="studios">${Le("studio")}</div>`, Qe = (e) => `<span data-tier-initial>${fe(he(V("performer", e.name, e.id)))}</span>${H({
id: e.id,
hasImage: e.has_image,
version: e.image_version,
- style: de(e.avatar_focus),
+ style: G(e.avatar_focus),
focus: e.avatar_focus,
standIn: e.avatar_stand_in
})}`;
-function Xe({ value: e }) {
- let t = Ce(e);
+function $e({ value: e }) {
+ let t = Te(e);
return /* @__PURE__ */ (0, $.jsx)("span", {
"data-jav-taste-score": "",
title: `口味 ${t.score}`,
@@ -526,34 +526,30 @@ function Xe({ value: e }) {
})
});
}
-function Ze({ studio: e }) {
+function et({ studio: e }) {
let [t, n] = (0, Q.useState)(!1);
return /* @__PURE__ */ (0, $.jsx)("span", {
"data-tier-mark": "",
children: e.has_logo && !t ? /* @__PURE__ */ (0, $.jsx)("img", {
- src: be(e.name, "icon", e.logo_version),
+ src: Se(e.name, "icon", e.logo_version),
alt: "",
width: 28,
height: 28,
loading: "lazy",
decoding: "async",
onError: () => n(!0)
- }) : ye(e.name, 2)
+ }) : xe(e.name, 2)
});
}
-function Qe({ readOnly: e, receipt: t, resource: a, query: o, navigate: s, clearText: c }) {
- Fe();
- let [l, u] = (0, Q.useState)(() => Te(location.search));
+function tt({ readOnly: e, receipt: t, resource: a, query: o, navigate: s, clearText: c }) {
+ Re();
+ let [l, u] = (0, Q.useState)(() => De(location.search));
(0, Q.useEffect)(() => {
- if (o === l.q) return;
- let e = setTimeout(() => {
- u((e) => ({
- ...e,
- q: o,
- page: 1
- })), Z({ page: "" });
- }, 300);
- return () => clearTimeout(e);
+ o !== l.q && (u((e) => ({
+ ...e,
+ q: o,
+ page: 1
+ })), Z({ page: "" }));
}, [o, l.q]);
let d = (e, t) => {
let n = l[e] === t ? "" : t;
@@ -614,43 +610,48 @@ function Qe({ readOnly: e, receipt: t, resource: a, query: o, navigate: s, clear
});
};
(0, Q.useEffect)(() => {
- let e = [...m.current?.querySelectorAll("[data-catalog-tier],[data-catalog-tags],[data-filter-row=\"bottom\"]") || []].map((e) => Le(e, { drag: !0 }));
+ let e = [...m.current?.querySelectorAll("[data-catalog-tier],[data-catalog-tags],[data-filter-row=\"bottom\"]") || []].map((e) => ze(e, { drag: !0 }));
return () => e.forEach((e) => e.destroy());
}, []);
- let x = se();
+ let x = ce();
(0, Q.useSyncExternalStore)(x.subscribe, x.version, x.version);
- let C = ge(), E = ce(me({
+ let S = ve(), ne = le(ge({
active: !0,
home: !1,
portrait: !1
- })), D = (0, Q.useRef)(""), O = Ie({
- queryKey: Ee(l),
- queryFn: ({ signal: e }) => K(l, e, D.current),
- placeholderData: ve,
+ })), E = (0, Q.useRef)(""), D = Y({
+ queryKey: Oe(l),
+ queryFn: ({ signal: e }) => K(l, e, E.current),
+ placeholderData: be,
retry: !1,
refetchOnWindowFocus: !1,
refetchInterval: (e) => e.state.data?.metadata_job?.status === "running" && Math.max(1e3, e.state.data.poll_after_ms || 3e3)
- }), k = O.data?.metadata_job, A = k?.status === "running", j = (0, Q.useRef)(!1);
+ }), O = D.data?.metadata_job, k = O?.status === "running", A = (0, Q.useRef)(!1);
(0, Q.useEffect)(() => {
- k?.job_id && (D.current = k.job_id);
- }, [k?.job_id]), (0, Q.useEffect)(() => {
- j.current && !A && O.refetch(), j.current = A;
- }, [A, O]);
- let M = Y(), N = O.data, P = O.isPending, F = !!(l.performer || l.studio || l.tag || l.q), I = Math.max(1, Math.ceil((N?.total || 0) / 24));
+ O?.job_id && (E.current = O.job_id);
+ }, [O?.job_id]), (0, Q.useEffect)(() => {
+ A.current && !k && D.refetch(), A.current = k;
+ }, [k, D]);
+ let j = J(), M = D.data, N = D.isPending, P = !!(l.performer || l.studio || l.tag || l.q), F = Math.max(1, Math.ceil((M?.total || 0) / 24));
return /* @__PURE__ */ (0, $.jsxs)("section", {
ref: m,
"aria-label": "订阅新作",
- "aria-busy": P || O.isFetching,
+ "aria-busy": N || D.isFetching,
className: "flex min-w-0 scroll-mt-24 flex-col gap-4",
children: [
- N && (N.facets.performers.length || N.facets.studios.length) ? /* @__PURE__ */ (0, $.jsxs)("div", {
+ N ? /* @__PURE__ */ (0, $.jsx)("div", {
+ "data-catalog-tiers": "",
+ "aria-busy": "true",
+ dangerouslySetInnerHTML: { __html: Ze }
+ }) : null,
+ M && (M.facets.performers.length || M.facets.studios.length) ? /* @__PURE__ */ (0, $.jsxs)("div", {
"data-catalog-tiers": "",
"data-release-tiers": "",
- children: [N.facets.performers.length ? /* @__PURE__ */ (0, $.jsx)("div", {
+ children: [M.facets.performers.length ? /* @__PURE__ */ (0, $.jsx)("div", {
"data-catalog-tier": "performers",
role: "group",
"aria-label": "按女优筛选",
- children: N.facets.performers.map((e) => /* @__PURE__ */ (0, $.jsxs)("button", {
+ children: M.facets.performers.map((e) => /* @__PURE__ */ (0, $.jsxs)("button", {
type: "button",
"data-tier-performer": "",
"aria-pressed": l.performer === e.name,
@@ -658,24 +659,24 @@ function Qe({ readOnly: e, receipt: t, resource: a, query: o, navigate: s, clear
onClick: () => d("performer", e.name),
children: [/* @__PURE__ */ (0, $.jsx)("span", {
"data-tier-ring": "",
- dangerouslySetInnerHTML: { __html: Ye(e) }
+ dangerouslySetInnerHTML: { __html: Qe(e) }
}), /* @__PURE__ */ (0, $.jsx)("span", {
"data-tier-name": "",
children: V("performer", e.name, e.id)
})]
}, e.name))
- }) : null, N.facets.studios.length ? /* @__PURE__ */ (0, $.jsx)("div", {
+ }) : null, M.facets.studios.length ? /* @__PURE__ */ (0, $.jsx)("div", {
"data-catalog-tier": "studios",
role: "group",
"aria-label": "按厂牌筛选",
- children: N.facets.studios.map((e) => /* @__PURE__ */ (0, $.jsxs)("button", {
+ children: M.facets.studios.map((e) => /* @__PURE__ */ (0, $.jsxs)("button", {
type: "button",
"data-tier-studio": "",
"aria-pressed": l.studio === e.name,
title: `${e.name} · ${e.count} 部`,
onClick: () => d("studio", e.name),
children: [
- /* @__PURE__ */ (0, $.jsx)(Ze, { studio: e }),
+ /* @__PURE__ */ (0, $.jsx)(et, { studio: e }),
e.name,
/* @__PURE__ */ (0, $.jsx)("span", {
"data-count-badge": "",
@@ -693,15 +694,15 @@ function Qe({ readOnly: e, receipt: t, resource: a, query: o, navigate: s, clear
"data-jav-filter": "",
"data-catalog-frame": ""
},
- busy: P,
+ busy: N,
topClassName: "gap-1.5 overflow-visible",
bottomClassName: "min-h-12",
top: /* @__PURE__ */ (0, $.jsx)("div", {
"data-catalog-scroll": "",
children: /* @__PURE__ */ (0, $.jsx)("div", {
"data-catalog-tags": "",
- dangerouslySetInnerHTML: P ? { __html: _e() } : void 0,
- children: P ? null : N?.facets.tags.map((e) => /* @__PURE__ */ (0, $.jsxs)(h, {
+ dangerouslySetInnerHTML: N ? { __html: ye() } : void 0,
+ children: N ? null : M?.facets.tags.map((e) => /* @__PURE__ */ (0, $.jsxs)(h, {
"data-catalog-tag": e.name,
"data-entity-press": "",
pressed: l.tag === e.name,
@@ -716,30 +717,30 @@ function Qe({ readOnly: e, receipt: t, resource: a, query: o, navigate: s, clear
bottom: /* @__PURE__ */ (0, $.jsxs)($.Fragment, { children: [
/* @__PURE__ */ (0, $.jsx)("span", {
"data-catalog-readout": "",
- children: P ? /* @__PURE__ */ (0, $.jsx)("span", {
+ children: N ? /* @__PURE__ */ (0, $.jsx)("span", {
"data-skeleton": "count",
"aria-hidden": !0,
className: "relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"
- }) : F ? `${N?.total || 0} / ${N?.candidate_total || 0} 部` : `${N?.total || 0} 部`
+ }) : P ? `${M?.total || 0} / ${M?.candidate_total || 0} 部` : `${M?.total || 0} 部`
}),
- F ? /* @__PURE__ */ (0, $.jsx)(g, {
+ P ? /* @__PURE__ */ (0, $.jsx)(g, {
onPress: v,
children: "清除筛选"
}) : null,
/* @__PURE__ */ (0, $.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, $.jsx)(re, {
+ /* @__PURE__ */ (0, $.jsx)(ie, {
onPress: b,
- busy: l.sort === "random" && O.isFetching
+ busy: l.sort === "random" && D.isFetching
}),
- /* @__PURE__ */ (0, $.jsx)(ne, {
+ /* @__PURE__ */ (0, $.jsx)(re, {
label: "JAV 卡片版式",
- value: C,
+ value: S,
options: ee,
- onChange: Ne
+ onChange: Fe
}),
- /* @__PURE__ */ (0, $.jsx)(ie, {
+ /* @__PURE__ */ (0, $.jsx)(ae, {
sorts: T.map(([e, t, n]) => ({
key: e,
label: t,
@@ -753,29 +754,29 @@ function Qe({ readOnly: e, receipt: t, resource: a, query: o, navigate: s, clear
})
] })
}),
- P ? /* @__PURE__ */ (0, $.jsx)("div", {
+ N ? /* @__PURE__ */ (0, $.jsx)("div", {
role: "status",
"aria-label": "正在读取新作",
- dangerouslySetInnerHTML: { __html: he("discover", C) }
+ dangerouslySetInnerHTML: { __html: _e("discover", S) }
}) : null,
- O.error ? /* @__PURE__ */ (0, $.jsx)(S, {
+ D.error ? /* @__PURE__ */ (0, $.jsx)(C, {
tone: "error",
title: "新作未取得",
- children: W(O.error)
+ children: W(D.error)
}) : null,
- A && k ? /* @__PURE__ */ (0, $.jsx)("div", {
+ k && O ? /* @__PURE__ */ (0, $.jsx)("div", {
"data-jav-metadata": "",
className: "min-w-0",
- children: /* @__PURE__ */ (0, $.jsx)(ae, {
- label: `正在读取作品资料 · ${k.completed} / ${k.total} 部`,
- value: k.completed,
- total: k.total
+ children: /* @__PURE__ */ (0, $.jsx)(oe, {
+ label: `正在读取作品资料 · ${O.completed} / ${O.total} 部`,
+ value: O.completed,
+ total: O.total
})
}) : null,
- !P && !O.error && !N?.items.length ? /* @__PURE__ */ (0, $.jsx)(f, {
+ !N && !D.error && !M?.items.length ? /* @__PURE__ */ (0, $.jsx)(f, {
icon: i,
- title: F ? "没有符合条件的新作" : "暂无未入库的新作",
- actions: F ? /* @__PURE__ */ (0, $.jsx)(n, {
+ title: P ? "没有符合条件的新作" : "暂无未入库的新作",
+ actions: P ? /* @__PURE__ */ (0, $.jsx)(n, {
size: "small",
onClick: v,
children: "清除筛选"
@@ -784,39 +785,39 @@ function Qe({ readOnly: e, receipt: t, resource: a, query: o, navigate: s, clear
href: "/subscriptions?tab=add",
children: "添加订阅"
}),
- children: F ? "清除筛选后查看全部新作。" : "订阅女优或厂牌后,还没入库的新作会出现在这里。"
+ children: P ? "清除筛选后查看全部新作。" : "订阅女优或厂牌后,还没入库的新作会出现在这里。"
}) : null,
- M.error ? /* @__PURE__ */ (0, $.jsx)(S, {
+ j.error ? /* @__PURE__ */ (0, $.jsx)(C, {
tone: "error",
- children: M.error
+ children: j.error
}) : null,
/* @__PURE__ */ (0, $.jsx)("div", {
"data-media-grid": "",
className: te,
- style: { "--card-ratio": E },
- children: (N?.items || []).map((n) => /* @__PURE__ */ (0, $.jsx)(Je, {
+ style: { "--card-ratio": ne },
+ children: (M?.items || []).map((n) => /* @__PURE__ */ (0, $.jsx)(Xe, {
item: n,
- layout: C,
+ layout: S,
javImage: x.value.javImage,
readOnly: e,
navigate: s,
tag: l.tag,
onTag: (e) => d("tag", e || l.tag),
- wanting: M.busy === String(n.id),
+ wanting: j.busy === String(n.id),
onWant: () => {
- M.run(String(n.id), (e) => oe({ code: n.code }, e), () => {
- t("已加入想要"), J(), O.refetch();
+ j.run(String(n.id), (e) => se({ code: n.code }, e), () => {
+ t("已加入想要"), q(), D.refetch();
});
},
- onResource: () => a(qe(n)),
- badge: l.sort === "taste" ? /* @__PURE__ */ (0, $.jsx)(Xe, { value: n.taste_score }) : void 0
+ onResource: () => a(Ye(n)),
+ badge: l.sort === "taste" ? /* @__PURE__ */ (0, $.jsx)($e, { value: n.taste_score }) : void 0
}, n.id))
}),
/* @__PURE__ */ (0, $.jsx)("div", {
className: "flex justify-center",
children: /* @__PURE__ */ (0, $.jsx)(w, {
page: l.page,
- pages: I,
+ pages: F,
onPage: _,
label: "新作分页"
})
@@ -825,53 +826,43 @@ function Qe({ readOnly: e, receipt: t, resource: a, query: o, navigate: s, clear
});
}
// src/react/jav/jav-page.tsx
-var $e = Me("search"), et = Me("x"), tt = Me("refresh-cw"), nt = {
+var nt = Pe("x"), rt = Pe("refresh-cw"), it = {
releases: "筛选新作",
discover: "筛选推荐",
wants: "筛选想要"
};
-function rt({ tab: e, readOnly: t, navigate: n, receipt: r }) {
+function at({ tab: e, readOnly: t, navigate: n, receipt: r }) {
let [i, a] = (0, Q.useState)(null), [s, c] = (0, Q.useState)(() => new URLSearchParams(location.search).get("q") || ""), l = (e) => {
c(e), Z({ q: e });
};
return /* @__PURE__ */ (0, $.jsxs)("div", {
className: "flex w-full flex-col gap-6",
children: [
- /* @__PURE__ */ (0, $.jsx)(y, {
+ /* @__PURE__ */ (0, $.jsx)(b, {
tab: e,
navigate: n,
- find: () => a({})
- }),
- /* @__PURE__ */ (0, $.jsx)("form", {
- "aria-label": nt[e],
- onSubmit: (e) => {
- e.preventDefault();
- },
- children: /* @__PURE__ */ (0, $.jsx)(v, {
- type: "search",
- "aria-label": nt[e],
- placeholder: "筛选番号、女优或标题",
- leadingIcon: $e,
+ find: () => a({}),
+ search: /* @__PURE__ */ (0, $.jsx)(v, {
+ label: it[e] || "筛选",
value: s,
- onChange: l,
- enterKeyHint: "search"
+ onQuery: l
})
}),
- e === "releases" ? /* @__PURE__ */ (0, $.jsx)(Qe, {
+ e === "releases" ? /* @__PURE__ */ (0, $.jsx)(tt, {
readOnly: t,
receipt: r,
resource: a,
query: s.trim(),
navigate: n,
clearText: () => l("")
- }) : e === "discover" ? /* @__PURE__ */ (0, $.jsx)(it, {
+ }) : e === "discover" ? /* @__PURE__ */ (0, $.jsx)(ot, {
readOnly: t,
receipt: r,
resource: a,
query: s.trim(),
navigate: n,
clearText: () => l("")
- }) : /* @__PURE__ */ (0, $.jsx)(Ge, {
+ }) : /* @__PURE__ */ (0, $.jsx)(qe, {
readOnly: t,
toast: r,
query: s.trim(),
@@ -885,62 +876,62 @@ function rt({ tab: e, readOnly: t, navigate: n, receipt: r }) {
]
});
}
-function it({ readOnly: e, receipt: t, resource: i, query: o, navigate: c, clearText: l }) {
- let d = new URLSearchParams(location.search), [_, v] = (0, Q.useState)(() => d.get("scope") === "library" ? "library" : "external"), [y, x] = (0, Q.useState)(() => d.get("tag") || ""), [C, w] = (0, Q.useState)(() => s.some(([e]) => e === d.get("sort")) ? d.get("sort") : "taste"), [T, E] = (0, Q.useState)(() => d.get("dir") === "asc"), D = (e) => {
+function ot({ readOnly: e, receipt: t, resource: i, query: o, navigate: c, clearText: l }) {
+ let d = new URLSearchParams(location.search), [_, v] = (0, Q.useState)(() => d.get("scope") === "library" ? "library" : "external"), [y, b] = (0, Q.useState)(() => d.get("tag") || ""), [S, ne] = (0, Q.useState)(() => s.some(([e]) => e === d.get("sort")) ? d.get("sort") : "taste"), [w, T] = (0, Q.useState)(() => d.get("dir") === "asc"), E = (e) => {
v(e), Z({ scope: e === "external" ? "" : e });
+ }, D = (e) => {
+ b(e), Z({ tag: e });
}, O = (e) => {
- x(e), Z({ tag: e });
- }, re = (e) => {
- w(e), Z({ sort: e === "taste" ? "" : e });
- }, k = (e) => {
- E(e), Z({ dir: e ? "asc" : "" });
- }, A = (0, Q.useRef)(null);
+ ne(e), Z({ sort: e === "taste" ? "" : e });
+ }, ie = (e) => {
+ T(e), Z({ dir: e ? "asc" : "" });
+ }, k = (0, Q.useRef)(null);
(0, Q.useEffect)(() => {
- let e = [...A.current?.querySelectorAll("[data-catalog-scroll],[data-catalog-tags],[data-filter-row=\"bottom\"]") || []].map((e) => Le(e, { drag: !0 }));
+ let e = [...k.current?.querySelectorAll("[data-catalog-scroll],[data-catalog-tags],[data-filter-row=\"bottom\"]") || []].map((e) => ze(e, { drag: !0 }));
return () => e.forEach((e) => e.destroy());
}, []);
- let j = se();
- (0, Q.useSyncExternalStore)(j.subscribe, j.version, j.version);
- let M = ge(), N = ce(me({
+ let A = ce();
+ (0, Q.useSyncExternalStore)(A.subscribe, A.version, A.version);
+ let j = ve(), M = le(ge({
active: !0,
home: !1,
portrait: !1
- })), P = (0, Q.useRef)({}), F = (0, Q.useRef)(!1), L = (0, Q.useRef)(!1), R = T ? "asc" : "desc", z = Ie({
- queryKey: le(_, C, R),
+ })), N = (0, Q.useRef)({}), P = (0, Q.useRef)(!1), F = (0, Q.useRef)(!1), L = w ? "asc" : "desc", R = Y({
+ queryKey: ue(_, S, L),
retry: !1,
refetchOnWindowFocus: !1,
queryFn: ({ signal: e }) => {
- let t = F.current, n = L.current;
- return F.current = !1, L.current = !1, fe(_, e, {
- sort: C,
- direction: R,
- jobId: t ? void 0 : P.current[_],
+ let t = P.current, n = F.current;
+ return P.current = !1, F.current = !1, pe(_, e, {
+ sort: S,
+ direction: L,
+ jobId: t ? void 0 : N.current[_],
refreshMetadata: t,
cancelMetadata: n
});
},
refetchInterval: (e) => e.state.data?.metadata_job?.status === "running" && Math.max(1e3, e.state.data.poll_after_ms || 3e3)
- }), B = z.data?.metadata_job;
+ }), z = R.data?.metadata_job;
(0, Q.useEffect)(() => {
- B?.job_id && (P.current[_] = B.job_id);
- }, [_, B?.job_id]);
- let V = Y(), H = Y(), U = (e) => {
- H.run(e, async () => (L.current = e === "stop", F.current = e !== "stop", z.refetch({
+ z?.job_id && (N.current[_] = z.job_id);
+ }, [_, z?.job_id]);
+ let B = J(), V = J(), H = (e) => {
+ V.run(e, async () => (F.current = e === "stop", P.current = e !== "stop", R.refetch({
cancelRefetch: !0,
throwOnError: !0
})), () => {});
- }, G = z.data?.items || [], de = [...new Set(G.flatMap((e) => e.tags || []))], K = G.filter((e) => (!y || e.tags?.includes(y)) && (!o || [
+ }, U = R.data?.items || [], fe = [...new Set(U.flatMap((e) => e.tags || []))], G = U.filter((e) => (!y || e.tags?.includes(y)) && (!o || [
e.code,
e.title,
e.performers,
e.studio,
...e.tags || [],
...(e.performer_refs || []).map((e) => e.name)
- ].join(" ").toLocaleLowerCase().includes(o.toLocaleLowerCase()))), q = z.isPending;
+ ].join(" ").toLocaleLowerCase().includes(o.toLocaleLowerCase()))), K = R.isPending;
return /* @__PURE__ */ (0, $.jsxs)("section", {
- ref: A,
+ ref: k,
"aria-label": "为你推荐",
- "aria-busy": q,
+ "aria-busy": K,
className: "flex min-w-0 flex-col gap-4",
children: [
/* @__PURE__ */ (0, $.jsx)(p, {
@@ -951,7 +942,7 @@ function it({ readOnly: e, receipt: t, resource: i, query: o, navigate: c, clear
"data-jav-filter": "",
"data-catalog-frame": ""
},
- busy: q,
+ busy: K,
topClassName: "gap-1.5 overflow-visible",
bottomClassName: "min-h-12",
top: /* @__PURE__ */ (0, $.jsxs)("div", {
@@ -963,7 +954,7 @@ function it({ readOnly: e, receipt: t, resource: i, query: o, navigate: c, clear
"data-entity-press": "",
pressed: _ === e,
onPress: () => {
- D(e), O("");
+ E(e), D("");
},
children: t
}, e)), /* @__PURE__ */ (0, $.jsx)("span", {
@@ -972,15 +963,15 @@ function it({ readOnly: e, receipt: t, resource: i, query: o, navigate: c, clear
})]
}), /* @__PURE__ */ (0, $.jsx)("div", {
"data-catalog-tags": "",
- dangerouslySetInnerHTML: q ? { __html: _e() } : void 0,
- children: q ? null : de.map((e) => /* @__PURE__ */ (0, $.jsxs)(h, {
+ dangerouslySetInnerHTML: K ? { __html: ye() } : void 0,
+ children: K ? null : fe.map((e) => /* @__PURE__ */ (0, $.jsxs)(h, {
"data-catalog-tag": e,
"data-entity-press": "",
pressed: y === e,
- onPress: () => O(y === e ? "" : e),
+ onPress: () => D(y === e ? "" : e),
children: [e, /* @__PURE__ */ (0, $.jsx)("span", {
"data-count-badge": "",
- children: G.filter((t) => t.tags?.includes(e)).length
+ children: U.filter((t) => t.tags?.includes(e)).length
})]
}, e))
})]
@@ -988,16 +979,16 @@ function it({ readOnly: e, receipt: t, resource: i, query: o, navigate: c, clear
bottom: /* @__PURE__ */ (0, $.jsxs)($.Fragment, { children: [
/* @__PURE__ */ (0, $.jsx)("span", {
"data-catalog-readout": "",
- children: q ? /* @__PURE__ */ (0, $.jsx)("span", {
+ children: K ? /* @__PURE__ */ (0, $.jsx)("span", {
"data-skeleton": "count",
"aria-hidden": !0,
className: "relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"
- }) : `${K.length} 部`
+ }) : `${G.length} 部`
}),
- /* @__PURE__ */ (0, $.jsx)(b, { currentHref: () => location.pathname + location.search }),
+ /* @__PURE__ */ (0, $.jsx)(x, { currentHref: () => location.pathname + location.search }),
o || y ? /* @__PURE__ */ (0, $.jsx)(g, {
onPress: () => {
- O(""), l();
+ D(""), l();
},
children: "清除筛选"
}) : null,
@@ -1007,71 +998,71 @@ function it({ readOnly: e, receipt: t, resource: i, query: o, navigate: c, clear
_ === "external" ? /* @__PURE__ */ (0, $.jsx)(m, {
"data-entity-batch": "",
"data-jav-metadata-update": "",
- label: B?.status === "running" ? "停止读取" : "更新资料",
- disabled: q,
- "data-skeleton-action": q ? "" : void 0,
- busy: !!H.busy,
- icon: B?.status === "running" ? et : tt,
- onPress: () => U(B?.status === "running" ? "stop" : "update")
+ label: z?.status === "running" ? "停止读取" : "更新资料",
+ disabled: K,
+ "data-skeleton-action": K ? "" : void 0,
+ busy: !!V.busy,
+ icon: z?.status === "running" ? nt : rt,
+ onPress: () => H(z?.status === "running" ? "stop" : "update")
}) : null,
- /* @__PURE__ */ (0, $.jsx)(ne, {
+ /* @__PURE__ */ (0, $.jsx)(re, {
label: "JAV 卡片版式",
- value: M,
+ value: j,
options: ee,
- onChange: Ne
+ onChange: Fe
}),
- /* @__PURE__ */ (0, $.jsx)(ie, {
+ /* @__PURE__ */ (0, $.jsx)(ae, {
sorts: s.map(([e, t, n]) => ({
key: e,
label: t,
ariaLabel: n,
- pressed: e === C,
- dir: R
+ pressed: e === S,
+ dir: L
})),
onSort: (e) => {
- e === C ? k(!T) : (re(e), k(e === "code"));
+ e === S ? ie(!w) : (O(e), ie(e === "code"));
}
})
]
})
] })
}),
- q ? /* @__PURE__ */ (0, $.jsx)("div", {
+ K ? /* @__PURE__ */ (0, $.jsx)("div", {
role: "status",
"aria-label": "正在读取推荐",
- dangerouslySetInnerHTML: { __html: he("discover", M) }
+ dangerouslySetInnerHTML: { __html: _e("discover", j) }
}) : null,
- z.error ? /* @__PURE__ */ (0, $.jsx)(S, {
+ R.error ? /* @__PURE__ */ (0, $.jsx)(C, {
tone: "error",
title: "推荐未取得",
- children: W(z.error)
+ children: W(R.error)
}) : null,
- _ === "external" && B?.status === "running" ? /* @__PURE__ */ (0, $.jsx)("div", {
+ _ === "external" && z?.status === "running" ? /* @__PURE__ */ (0, $.jsx)("div", {
"data-jav-metadata": "",
className: "min-w-0",
- children: /* @__PURE__ */ (0, $.jsx)(ae, {
+ children: /* @__PURE__ */ (0, $.jsx)(oe, {
embedded: !0,
- label: `正在读取作品资料 · ${B.completed} / ${B.total} 部`,
- value: B.completed,
- total: B.total
+ label: `正在读取作品资料 · ${z.completed} / ${z.total} 部`,
+ value: z.completed,
+ total: z.total
})
}) : null,
- B && B.status !== "running" && (B.status !== "complete" || B.failed > 0) ? /* @__PURE__ */ (0, $.jsx)(S, {
+ z && z.status !== "running" && (z.status !== "complete" || z.failed > 0) ? /* @__PURE__ */ (0, $.jsx)(C, {
tone: "neutral",
action: /* @__PURE__ */ (0, $.jsx)(n, {
variant: "secondary",
- ...I(H.busy === "retry"),
+ ...I(V.busy === "retry"),
"aria-label": "立即重试读取作品资料",
- onClick: () => U("retry"),
+ onClick: () => H("retry"),
children: "立即重试"
}),
- children: B.message || `作品资料 ${B.completed} / ${B.total} 部`
+ children: z.message || `作品资料 ${z.completed} / ${z.total} 部`
}) : null,
- H.error ? /* @__PURE__ */ (0, $.jsx)(S, {
+ V.error ? /* @__PURE__ */ (0, $.jsx)(C, {
tone: "error",
- children: H.error
+ children: V.error
}) : null,
- !q && !z.error && !K.length ? /* @__PURE__ */ (0, $.jsx)(f, {
+ !K && !R.error && !G.length ? /* @__PURE__ */ (0, $.jsx)(f, {
icon: u,
title: o || y ? "没有符合条件的推荐" : "暂无匹配口味的作品",
actions: /* @__PURE__ */ (0, $.jsxs)($.Fragment, { children: [/* @__PURE__ */ (0, $.jsx)(r, {
@@ -1083,7 +1074,7 @@ function it({ readOnly: e, receipt: t, resource: i, query: o, navigate: c, clear
variant: "primary",
size: "small",
onClick: () => {
- l(), x(""), Z({
+ l(), b(""), Z({
q: "",
tag: ""
});
@@ -1102,37 +1093,37 @@ function it({ readOnly: e, receipt: t, resource: i, query: o, navigate: c, clear
})] }),
children: o || y ? "清除筛选后查看其他作品。" : _ === "library" ? "观看或标记作品后,可以探索少看的馆藏。" : "可以查找番号,或更新关注来源。"
}) : null,
- V.error ? /* @__PURE__ */ (0, $.jsx)(S, {
+ B.error ? /* @__PURE__ */ (0, $.jsx)(C, {
tone: "error",
- children: V.error
+ children: B.error
}) : null,
/* @__PURE__ */ (0, $.jsx)("div", {
"data-media-grid": "",
className: te,
- style: { "--card-ratio": N },
- children: K.map((n) => {
- let r = Ce(n.taste_score ?? n.score), o = [
+ style: { "--card-ratio": M },
+ children: G.map((n) => {
+ let r = Te(n.taste_score ?? n.score), o = [
r.label,
- `口味 ${ue(n.taste_score ?? n.score)}`,
- z.data?.ranking_method === "mmr" && n.ranking_score != null ? `排序 ${ue(n.ranking_score)}` : "",
+ `口味 ${de(n.taste_score ?? n.score)}`,
+ R.data?.ranking_method === "mmr" && n.ranking_score != null ? `排序 ${de(n.ranking_score)}` : "",
n.source_score == null ? "" : `来源评分 ${n.source_score.toFixed(1)} / 5`,
...n.reasons || []
].filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, $.jsx)(Je, {
+ return /* @__PURE__ */ (0, $.jsx)(Xe, {
item: n,
- layout: M,
- javImage: j.value.javImage,
+ layout: j,
+ javImage: A.value.javImage,
readOnly: e,
navigate: c,
tag: y,
- onTag: O,
- wanting: V.busy === String(n.id),
+ onTag: D,
+ wanting: B.busy === String(n.id),
onWant: () => {
- V.run(String(n.id), (e) => oe({ code: n.code }, e), () => {
- t("已加入想要"), J(), z.refetch();
+ B.run(String(n.id), (e) => se({ code: n.code }, e), () => {
+ t("已加入想要"), q(), R.refetch();
});
},
- onResource: () => i(qe(n)),
+ onResource: () => i(Ye(n)),
badge: /* @__PURE__ */ (0, $.jsx)("button", {
"data-jav-taste-score": "",
type: "button",
@@ -1150,6 +1141,6 @@ function it({ readOnly: e, receipt: t, resource: i, query: o, navigate: c, clear
]
});
}
-export { rt as JavPage };
+export { at as JavPage };
-//# debugId=0fdb342b-820f-4b3c-9a8f-7235a2f54321
\ No newline at end of file
+//# debugId=e19604f0-dfdb-4cf0-8f2f-6350c8940e56
\ No newline at end of file
diff --git a/web/dist/peach-app.js b/web/dist/peach-app.js
index df019e161..5495aa7d5 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] = "ca47c035-7a3d-4441-9cfa-ad73f99e1af8", e._sentryDebugIdIdentifier = "sentry-dbid-ca47c035-7a3d-4441-9cfa-ad73f99e1af8");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "4006446c-3b4e-43a9-ad45-5938cc7eaa09", e._sentryDebugIdIdentifier = "sentry-dbid-4006446c-3b4e-43a9-ad45-5938cc7eaa09");
} catch {}
})();
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), s = (e, n) => {
@@ -16117,7 +16117,7 @@ function tee(e, t) {
return (n) => Qh(e, t, n);
}
function ag(e) {
- return typeof e == "number" ? tee : typeof e == "string" ? ih(e) ? Zh : kh.test(e) ? rg : ree : Array.isArray(e) ? og : typeof e == "object" ? kh.test(e) ? rg : sg : Zh;
+ return typeof e == "number" ? tee : typeof e == "string" ? ih(e) ? Zh : kh.test(e) ? rg : nee : Array.isArray(e) ? og : typeof e == "object" ? kh.test(e) ? rg : sg : Zh;
}
function og(e, t) {
let n = [...e], r = n.length, i = e.map((e, n) => ag(e)(e, t[n]));
@@ -16137,7 +16137,7 @@ function sg(e, t) {
return n;
};
}
-function nee(e, t) {
+function cg(e, t) {
let n = [], r = {
color: 0,
var: 0,
@@ -16149,28 +16149,28 @@ function nee(e, t) {
}
return n;
}
-var ree = (e, t) => {
+var nee = (e, t) => {
let n = Vh(e), r = Vh(t);
- return n.indexes.var.length === r.indexes.var.length && n.indexes.color.length === r.indexes.color.length && n.indexes.number.length >= r.indexes.number.length ? ig.has(e) && !r.values.length || ig.has(t) && !n.values.length ? eee(e, t) : Cm(og(nee(n, r), r.values), Uh(r)) : Zh(e, t);
-}, cg = /^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;
-function iee(e, t) {
- let n = cg.exec(e);
+ return n.indexes.var.length === r.indexes.var.length && n.indexes.color.length === r.indexes.color.length && n.indexes.number.length >= r.indexes.number.length ? ig.has(e) && !r.values.length || ig.has(t) && !n.values.length ? eee(e, t) : Cm(og(cg(n, r), r.values), Uh(r)) : Zh(e, t);
+}, lg = /^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;
+function ree(e, t) {
+ let n = lg.exec(e);
if (!n) return;
- let r = cg.exec(t);
+ let r = lg.exec(t);
if (!r || n[2] !== r[2]) return;
let i = n[2], a = parseFloat(n[1]), o = parseFloat(r[1]);
return (e) => eh(Qh(a, o, e)) + i;
}
-function lg(e, t, n) {
+function ug(e, t, n) {
if (typeof e == "number" && typeof t == "number" && typeof n == "number") return Qh(e, t, n);
if (typeof e == "string" && typeof t == "string") {
- let n = iee(e, t);
+ let n = ree(e, t);
if (n) return n;
}
return ag(e)(e, t);
}
// node_modules/motion-dom/dist/es/frameloop/order.mjs
-var ug = [
+var dg = [
"setup",
"read",
"resolveKeyframes",
@@ -16181,7 +16181,7 @@ var ug = [
"postRender"
];
// node_modules/motion-dom/dist/es/frameloop/render-step.mjs
-function aee(e) {
+function iee(e) {
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = !1, i = !1, a, o = /* @__PURE__ */ new Set(), s = {
delta: 0,
timestamp: 0,
@@ -16211,55 +16211,55 @@ function aee(e) {
return l;
}
// node_modules/motion-dom/dist/es/frameloop/batcher.mjs
-var oee = 40;
-function dg(e, t, n = {
+var aee = 40;
+function fg(e, t, n = {
delta: 0,
timestamp: 0,
isProcessing: !1
}) {
- let r = !1, i = !0, a = () => r = !0, o = ug.reduce((e, t) => (e[t] = aee(a), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
+ let r = !1, i = !0, a = () => r = !0, o = dg.reduce((e, t) => (e[t] = iee(a), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
let a = _m.useManualTiming, o = a ? n.timestamp : performance.now();
- r = !1, a || (n.delta = i ? 1e3 / 60 : Math.max(Math.min(o - n.timestamp, oee), 1)), n.timestamp = o, n.isProcessing = !0, s.process(n), c.process(n), l.process(n), u.process(n), d.process(n), f.process(n), p.process(n), m.process(n), n.isProcessing = !1, r && t && (i = !1, e(h));
+ r = !1, a || (n.delta = i ? 1e3 / 60 : Math.max(Math.min(o - n.timestamp, aee), 1)), n.timestamp = o, n.isProcessing = !0, s.process(n), c.process(n), l.process(n), u.process(n), d.process(n), f.process(n), p.process(n), m.process(n), n.isProcessing = !1, r && t && (i = !1, e(h));
}, g = () => {
r = !0, i = !0, n.isProcessing || e(h);
};
return {
- schedule: ug.reduce((e, t) => {
+ schedule: dg.reduce((e, t) => {
let n = o[t];
return e[t] = (e, t = !1, i = !1) => (r || g(), n.schedule(e, t, i)), e;
}, {}),
cancel: (e) => {
- for (let t = 0; t < ug.length; t++) o[ug[t]].cancel(e);
+ for (let t = 0; t < dg.length; t++) o[dg[t]].cancel(e);
},
state: n,
steps: o
};
}
// node_modules/motion-dom/dist/es/frameloop/frame.mjs
-var { schedule: fg, cancel: pg, steps: mg } = /* @__PURE__ */ dg(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Sm, !0, Xm), hg = (e) => {
+var { schedule: pg, cancel: mg, steps: hg } = /* @__PURE__ */ fg(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Sm, !0, Xm), gg = (e) => {
let t = ({ timestamp: t }) => e(t);
return {
- start: (e = !0) => fg.update(t, e),
- stop: () => pg(t),
+ start: (e = !0) => pg.update(t, e),
+ stop: () => mg(t),
now: () => Xm.isProcessing ? Xm.timestamp : $m.now()
};
-}, gg = (e, t, n = 10) => {
+}, _g = (e, t, n = 10) => {
let r = "", i = Math.max(Math.round(t / n), 2);
for (let t = 0; t < i; t++) r += Math.round(e(t / (i - 1)) * 1e4) / 1e4 + ", ";
return `linear(${r.substring(0, r.length - 2)})`;
-}, _g = 2e4;
-function vg(e, t = 50, n = _g, r) {
+}, vg = 2e4;
+function yg(e, t = 50, n = vg, r) {
let i = 0, a = e.next(i);
for (r?.push(a.value); !a.done && i < n;) i += t, a = e.next(i), r?.push(a.value);
return i >= n ? Infinity : i;
}
// node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs
-function yg(e, t = 100, n) {
+function bg(e, t = 100, n) {
let { keyframes: r, velocity: i } = e, a = r && r[r.length - 1] - r[0], o = n({
...e,
velocity: i && a ? i * t / a : i,
keyframes: [0, t]
- }), s = Math.min(vg(o), _g);
+ }), s = Math.min(yg(o), vg);
return {
type: "keyframes",
ease: (e) => o.next(s * e).value / t,
@@ -16267,61 +16267,61 @@ function yg(e, t = 100, n) {
};
}
// node_modules/motion-dom/dist/es/animation/generators/spring.mjs
-var bg = 100, xg = 10, see = 1, cee = 800, Sg = .3, lee = .3, uee = .01, dee = 2, fee = .005, pee = .5, mee = .01, hee = 10, Cg = .05, wg = (e) => e < 0 ? 1 / Math.max(1 + e, Cg) : Math.max(1 - e, Cg);
-function Tg(e, t) {
+var xg = 100, Sg = 10, oee = 1, see = 800, Cg = .3, cee = .3, lee = .01, uee = 2, dee = .005, fee = .5, pee = .01, wg = 10, Tg = .05, Eg = (e) => e < 0 ? 1 / Math.max(1 + e, Tg) : Math.max(1 - e, Tg);
+function Dg(e, t) {
if (!(e > 1)) return 1;
let n = Math.sqrt(e * e - 1), r = e - n, i = e + n, a = 2 * n * Math.exp(-t) * (1 + t);
- return Dg((e) => i * Math.exp(-r * e) - r * Math.exp(-i * e) - a, (e) => Math.exp(-i * e) - Math.exp(-r * e), t) / t;
+ return kg((e) => i * Math.exp(-r * e) - r * Math.exp(-i * e) - a, (e) => Math.exp(-i * e) - Math.exp(-r * e), t) / t;
}
-function Eg(e, t) {
+function Og(e, t) {
return e * Math.sqrt(1 - t * t);
}
-var gee = 12;
-function Dg(e, t, n) {
+var mee = 12;
+function kg(e, t, n) {
let r = n;
- for (let n = 1; n < gee; n++) r -= e(r) / t(r);
+ for (let n = 1; n < mee; n++) r -= e(r) / t(r);
return r;
}
-var Og = .001;
-function _ee({ duration: e = cee, bounce: t = Sg }) {
- let n, r, i = wg(t);
- e = gm(mee, hee, /* @__PURE__ */ Dm(e)), i < 1 ? (n = (t) => {
- let n = t * i, r = n * e, a = Eg(t, i), o = Math.exp(-r);
- return Og - n / a * o;
+var Ag = .001;
+function hee({ duration: e = see, bounce: t = Cg }) {
+ let n, r, i = Eg(t);
+ e = gm(pee, wg, /* @__PURE__ */ Dm(e)), i < 1 ? (n = (t) => {
+ let n = t * i, r = n * e, a = Og(t, i), o = Math.exp(-r);
+ return Ag - n / a * o;
}, r = (t) => {
- let r = t * i * e, a = i * i * t * t * e, o = Math.exp(-r), s = Eg(t * t, i);
- return (-n(t) + Og > 0 ? -1 : 1) * -a * o / s;
+ let r = t * i * e, a = i * i * t * t * e, o = Math.exp(-r), s = Og(t * t, i);
+ return (-n(t) + Ag > 0 ? -1 : 1) * -a * o / s;
}) : (n = (t) => -.001 + Math.exp(-t * e) * (t * e + 1), r = (t) => Math.exp(-t * e) * (-t * (e * e)));
- let a = 5 / e, o = Dg(n, r, a), s = o * Tg(i, o * e), c = s * s;
+ let a = 5 / e, o = kg(n, r, a), s = o * Dg(i, o * e), c = s * s;
return {
stiffness: c,
damping: i * 2 * Math.sqrt(c),
duration: /* @__PURE__ */ Em(e)
};
}
-var kg = (e, t) => (t ? e >= 0 : e > 0) && e < Infinity;
-function Ag(e, t) {
- if (kg(e, t)) return e;
+var jg = (e, t) => (t ? e >= 0 : e > 0) && e < Infinity;
+function Mg(e, t) {
+ if (jg(e, t)) return e;
}
-function vee(e) {
- let t = Ag(e.stiffness), n = Ag(e.damping, !0), r = Ag(e.mass), i = {
+function gee(e) {
+ let t = Mg(e.stiffness), n = Mg(e.damping, !0), r = Mg(e.mass), i = {
...e,
- stiffness: t ?? bg,
- damping: n ?? xg,
- mass: r ?? see,
+ stiffness: t ?? xg,
+ damping: n ?? Sg,
+ mass: r ?? oee,
isResolvedFromDuration: !1,
isTimeDefined: (t ?? n ?? r) === void 0 && (e.duration !== void 0 || e.bounce !== void 0)
};
if (i.isTimeDefined) {
if (e.visualDuration) {
- let t = wg(e.bounce || 0), n = 2 * Math.PI / (e.visualDuration * 1.2) * Tg(t, 2 * Math.PI / 1.2);
+ let t = Eg(e.bounce || 0), n = 2 * Math.PI / (e.visualDuration * 1.2) * Dg(t, 2 * Math.PI / 1.2);
i.stiffness = n * n, i.damping = 2 * t * Math.sqrt(i.stiffness);
- } else Object.assign(i, _ee(i)), i.isResolvedFromDuration = !0;
- kg(i.stiffness) && kg(i.damping, !0) || (i.stiffness = bg, i.damping = xg);
+ } else Object.assign(i, hee(i)), i.isResolvedFromDuration = !0;
+ jg(i.stiffness) && jg(i.damping, !0) || (i.stiffness = xg, i.damping = Sg);
}
return i;
}
-function jg(e = lee, t = Sg) {
+function Ng(e = cee, t = Cg) {
let n = typeof e == "object" ? e : {
visualDuration: e,
keyframes: [0, 1],
@@ -16329,7 +16329,7 @@ function jg(e = lee, t = Sg) {
}, r = n.keyframes[0], i = n.keyframes[n.keyframes.length - 1], a = {
done: !1,
value: r
- }, { stiffness: o, damping: s, mass: c, duration: l, isResolvedFromDuration: u, isTimeDefined: d } = vee({ ...n }), f = (e) => d ? 0 : -/* @__PURE__ */ Dm(e), p = s / (2 * Math.sqrt(o * c)), m = /* @__PURE__ */ Dm(Math.sqrt(o / c)), h = p * m, g = {
+ }, { stiffness: o, damping: s, mass: c, duration: l, isResolvedFromDuration: u, isTimeDefined: d } = gee({ ...n }), f = (e) => d ? 0 : -/* @__PURE__ */ Dm(e), p = s / (2 * Math.sqrt(o * c)), m = /* @__PURE__ */ Dm(Math.sqrt(o / c)), h = p * m, g = {
target: i,
delta: i - r,
velocity: f(n.velocity || 0) || 0,
@@ -16337,12 +16337,12 @@ function jg(e = lee, t = Sg) {
restDelta: 0
}, _ = () => {
let e = Math.abs(g.delta) < 5;
- g.restSpeed = n.restSpeed || (e ? uee : dee), g.restDelta = n.restDelta || (e ? fee : pee);
+ g.restSpeed = n.restSpeed || (e ? lee : uee), g.restDelta = n.restDelta || (e ? dee : fee);
};
_();
let v, y, b;
if (p < 1) {
- let e = Eg(m, p), t = {
+ let e = Og(m, p), t = {
A: 0,
sinC: 0,
cosC: 0,
@@ -16391,19 +16391,19 @@ function jg(e = lee, t = Sg) {
return a.value = a.done ? g.target : t, a;
},
toString: () => {
- let e = Math.min(vg(S), _g), t = gg((t) => S.next(e * t).value, e, 30);
+ let e = Math.min(yg(S), vg), t = _g((t) => S.next(e * t).value, e, 30);
return e + "ms " + t;
},
toTransition: () => {}
};
return S;
}
-var Mg = /* @__PURE__ */ Object.assign(jg, { applyToOptions: (e) => {
- let t = yg(e, 100, jg);
+var Pg = /* @__PURE__ */ Object.assign(Ng, { applyToOptions: (e) => {
+ let t = bg(e, 100, Ng);
return e.ease = t.ease, e.duration = /* @__PURE__ */ Em(t.duration), e.type = "keyframes", e;
} });
// node_modules/motion-dom/dist/es/animation/generators/inertia.mjs
-function Ng({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
+function Fg({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
let d = e[0], f = {
done: !1,
value: d
@@ -16413,7 +16413,7 @@ function Ng({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
let t = v(e);
f.done = Math.abs(t) <= l, f.value = f.done ? _ : e ? _ + t : d;
}, b, x, S = (e) => {
- p(f.value) && (b = e, x = Mg({
+ p(f.value) && (b = e, x = Pg({
keyframes: [f.value, m(f.value)],
velocity: -v(e) / r * 1e3,
damping: i,
@@ -16431,21 +16431,21 @@ function Ng({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
};
}
// node_modules/motion-dom/dist/es/utils/interpolate.mjs
-function yee(e, t, n) {
- let r = [], i = _m.mix || lg, a = e.length - 1;
+function _ee(e, t, n) {
+ let r = [], i = _m.mix || ug, a = e.length - 1;
for (let o = 0; o < a; o++) {
let a = n?.(e[o], e[o + 1]) || i(e[o], e[o + 1]);
t && (a = Cm(Array.isArray(t) ? t[o] || Sm : t, a)), r.push(a);
}
return r;
}
-function Pg(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
+function Ig(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
let a = e.length;
if (a === 1) return () => t[0];
if (a === 2 && t[0] === t[1]) return () => t[1];
let o = e[0] === e[1];
e[0] > e[a - 1] && (e = [...e].reverse(), t = [...t].reverse());
- let s = yee(t, r, i), c = s.length, l = (n) => {
+ let s = _ee(t, r, i), c = s.length, l = (n) => {
if (o && n < e[0]) return t[0];
let r = 0;
if (c > 1) for (; r < e.length - 2 && !(n < e[r + 1]); r++);
@@ -16455,7 +16455,7 @@ function Pg(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
return n ? (t) => l(gm(e[0], e[a - 1], t)) : l;
}
// node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs
-function Fg(e, t) {
+function Lg(e, t) {
let n = e[e.length - 1];
for (let r = 1; r <= t; r++) {
let i = /* @__PURE__ */ wm(0, t, r);
@@ -16463,32 +16463,32 @@ function Fg(e, t) {
}
}
// node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs
-function Ig(e) {
+function Rg(e) {
let t = [0];
- return Fg(t, e.length - 1), t;
+ return Lg(t, e.length - 1), t;
}
// node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs
-function bee(e, t) {
+function vee(e, t) {
return e.map((e) => e * t);
}
// node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs
-function xee(e, t) {
+function yee(e, t) {
return e.map(() => t || Um).splice(0, e.length - 1);
}
-function Lg({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut", mixer: i }) {
+function zg({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut", mixer: i }) {
let a = typeof t[0] == "number" ? void 0 : i, o = /* @__PURE__ */ Wm(r) ? r.map(Ym) : Ym(r) || Um, s = {
done: !1,
value: t[0]
};
if (!a && t.length === 2 && !Array.isArray(o) && (!n || n.length !== 2 || n[0] === 0 && n[1] === 1)) {
- let [n, r] = t, i = n === r ? void 0 : (_m.mix || lg)(n, r);
+ let [n, r] = t, i = n === r ? void 0 : (_m.mix || ug)(n, r);
return {
calculatedDuration: e,
next: (t) => (s.value = i ? i(o(e > 0 ? gm(0, 1, t / e) : 1)) : r, s.done = t >= e, s)
};
}
- let c = Pg(bee(n && n.length === t.length ? n : Ig(t), e), t, {
- ease: Array.isArray(o) ? o : xee(t, o),
+ let c = Ig(vee(n && n.length === t.length ? n : Rg(t), e), t, {
+ ease: Array.isArray(o) ? o : yee(t, o),
mixer: a
});
return {
@@ -16497,35 +16497,35 @@ function Lg({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut",
};
}
// node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs
-var See = 5;
-function Cee(e, t, n) {
- let r = Math.max(t - See, 0);
+var bee = 5;
+function xee(e, t, n) {
+ let r = Math.max(t - bee, 0);
return /* @__PURE__ */ Om(n - e(r), t - r);
}
-function Rg(e, t, n = 0) {
- return t <= 0 ? n : e.velocity ? e.velocity(t) : Cee((t) => e.next(t).value, t, e.next(t).value);
+function Bg(e, t, n = 0) {
+ return t <= 0 ? n : e.velocity ? e.velocity(t) : xee((t) => e.next(t).value, t, e.next(t).value);
}
// node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs
-var wee = (e) => e !== null;
-function zg(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
- let a = e.filter(wee), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
+var See = (e) => e !== null;
+function Vg(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
+ let a = e.filter(See), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
return !o || r === void 0 ? a[o] : r;
}
// node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs
-var Tee = {
- decay: Ng,
- inertia: Ng,
- tween: Lg,
- keyframes: Lg,
- spring: Mg
+var Cee = {
+ decay: Fg,
+ inertia: Fg,
+ tween: zg,
+ keyframes: zg,
+ spring: Pg
};
-function Bg(e) {
- typeof e.type == "string" && (e.type = Tee[e.type]);
+function Hg(e) {
+ typeof e.type == "string" && (e.type = Cee[e.type]);
}
// node_modules/motion-dom/dist/es/animation/utils/resolve-start-time.mjs
-var Eee = 40, Vg = (e, t) => t - e > Eee && !_m.useManualTiming ? t : e;
+var wee = 40, Ug = (e, t) => t - e > wee && !_m.useManualTiming ? t : e;
// node_modules/motion-dom/dist/es/animation/utils/notify-inspector.mjs
-function Hg(e, t) {
+function Wg(e, t) {
return {
kind: e,
animation: t,
@@ -16534,11 +16534,11 @@ function Hg(e, t) {
frameIsProcessing: Xm.isProcessing
};
}
-function Ug(e, t, n) {
+function Gg(e, t, n) {
let r = globalThis.__MOTION_INSPECT__;
if (r) try {
r({
- ...Hg("animation-start", e),
+ ...Wg("animation-start", e),
options: n ? {
...t,
...n
@@ -16546,17 +16546,17 @@ function Ug(e, t, n) {
});
} catch {}
}
-function Dee(e, t) {
+function Tee(e, t) {
let n = globalThis.__MOTION_INSPECT__;
if (n) try {
n({
- ...Hg("layout-animation-start", e),
+ ...Wg("layout-animation-start", e),
node: t
});
} catch {}
}
// node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs
-var Wg = class {
+var Kg = class {
constructor() {
this.isResolved = !1;
}
@@ -16574,7 +16574,7 @@ var Wg = class {
then(e, t) {
return this.finished.then(e, t);
}
-}, Oee = (e) => e / 100, Gg = (e) => Math.round(e * 1e4) / 1e4, Kg = class extends Wg {
+}, Eee = (e) => e / 100, qg = (e) => Math.round(e * 1e4) / 1e4, Jg = class extends Kg {
constructor(e) {
super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.delayState = {
done: !1,
@@ -16582,13 +16582,13 @@ var Wg = class {
}, this.stop = () => {
let { motionValue: e } = this.options;
e && e.updatedAt !== $m.now() && this.tick($m.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
- }, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause(), Ug(this, this.options);
+ }, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause(), Gg(this, this.options);
}
initAnimation() {
let { options: e } = this;
- Bg(e);
- let { type: t = Lg, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || Lg;
- this.mixKeyframes = void 0, s !== Lg && typeof o[0] != "number" && (this.mixKeyframes = Cm(Oee, e.mixer?.(o[0], o[1]) || lg(o[0], o[1])), o = [0, 100]);
+ Hg(e);
+ let { type: t = zg, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || zg;
+ this.mixKeyframes = void 0, s !== zg && typeof o[0] != "number" && (this.mixKeyframes = Cm(Eee, e.mixer?.(o[0], o[1]) || ug(o[0], o[1])), o = [0, 100]);
let c = s(o === e.keyframes ? e : {
...e,
keyframes: o
@@ -16597,7 +16597,7 @@ var Wg = class {
...e,
keyframes: [...o].reverse(),
velocity: -a
- })), c.calculatedDuration === null && (c.calculatedDuration = vg(c));
+ })), c.calculatedDuration === null && (c.calculatedDuration = yg(c));
let { calculatedDuration: l } = c;
this.calculatedDuration = l, this.resolvedDuration = l + r, this.totalDuration = this.resolvedDuration * (n + 1) - r, this.generator = c;
}
@@ -16608,20 +16608,20 @@ var Wg = class {
let { generator: n, totalDuration: r, calculatedDuration: i } = this;
if (this.startTime === null) return n.next(0);
let { delay: a = 0, keyframes: o, type: s, onUpdate: c, finalKeyframe: l } = this.options;
- this.startTime === this.pendingStartTime && (this.startTime = Vg(this.startTime, e)), this.pendingStartTime = void 0, this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - r / this.speed, this.startTime)), t ? this.currentTime = e : this.updateTime(e);
+ this.startTime === this.pendingStartTime && (this.startTime = Ug(this.startTime, e)), this.pendingStartTime = void 0, this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - r / this.speed, this.startTime)), t ? this.currentTime = e : this.updateTime(e);
let u = this.currentTime - a * (this.playbackSpeed >= 0 ? 1 : -1), d = this.playbackSpeed >= 0 ? u < 0 : u > r;
this.currentTime = Math.max(u, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = r);
let f = this.generate(this.currentTime, d), { done: p } = f;
d || (p = this.playbackSpeed >= 0 ? i < Infinity ? this.currentTime >= r : p : this.currentTime <= 0);
let m = this.holdTime === null && (this.state === "finished" || this.state === "running" && p);
- return m && s !== Ng && (f.value = zg(o, this.options, l, this.speed)), c && c(f.value), m && this.finish(), f;
+ return m && s !== Fg && (f.value = Vg(o, this.options, l, this.speed)), c && c(f.value), m && this.finish(), f;
}
at(e) {
- return this.holdTime ?? Gg((e - this.startTime) * this.playbackSpeed);
+ return this.holdTime ?? qg((e - this.startTime) * this.playbackSpeed);
}
sampleAt(e, t) {
let { options: n, totalDuration: r } = this, i = this.at(e) - (n.delay || 0);
- return i >= r && n.type !== Ng ? zg(n.keyframes, n, t ? void 0 : n.finalKeyframe) : this.generate(Math.max(i, 0), i < 0).value;
+ return i >= r && n.type !== Fg ? Vg(n.keyframes, n, t ? void 0 : n.finalKeyframe) : this.generate(Math.max(i, 0), i < 0).value;
}
generate(e, t) {
let { generator: n, totalDuration: r, mixKeyframes: i, mirroredGenerator: a, resolvedDuration: o } = this, { keyframes: s, repeat: c, repeatType: l, repeatDelay: u } = this.options, d = e, f = n;
@@ -16645,7 +16645,7 @@ var Wg = class {
e = /* @__PURE__ */ Em(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = e, this.tick(e));
}
getGeneratorVelocity() {
- return Rg(this.generator, this.currentTime, this.options.velocity);
+ return Bg(this.generator, this.currentTime, this.options.velocity);
}
get speed() {
return this.playbackSpeed;
@@ -16656,7 +16656,7 @@ var Wg = class {
}
play() {
if (this.isStopped) return;
- let { driver: e = hg, startTime: t } = this.options;
+ let { driver: e = gg, startTime: t } = this.options;
this.driver ||= e((e) => this.tick(e)), this.options.onPlay?.();
let n = this.driver.now();
this.state === "finished" ? (this.updateFinished(), this.startTime = n) : this.holdTime === null ? this.startTime ||= t ?? (this.pendingStartTime = n) : this.startTime = n - this.holdTime / (this.playbackSpeed || 1), this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
@@ -16682,27 +16682,27 @@ var Wg = class {
attachTimeline(e) {
return this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear", this.initAnimation()), this.driver?.stop(), e.observe(this);
}
-}, kee = /* @__PURE__ */ new Set([
+}, Dee = /* @__PURE__ */ new Set([
"brightness",
"contrast",
"saturate",
"opacity"
]);
-function Aee(e) {
+function Oee(e) {
let [t, n] = e.slice(0, -1).split("(");
if (t === "drop-shadow") return e;
let [r] = n.match(uh) || [];
if (!r) return e;
- let i = n.replace(r, ""), a = +!!kee.has(t);
+ let i = n.replace(r, ""), a = +!!Dee.has(t);
return r !== n && (a *= 100), t + "(" + a + i + ")";
}
-var jee = /\b([a-z-]*)\(.*?\)/gu, qg = {
+var kee = /\b([a-z-]*)\(.*?\)/gu, Yg = {
...Jh,
getAnimatableNone: (e) => {
- let t = e.match(jee);
- return t ? t.map(Aee).join(" ") : e;
+ let t = e.match(kee);
+ return t ? t.map(Oee).join(" ") : e;
}
-}, Jg = {
+}, Xg = {
...Jh,
getAnimatableNone: (e) => {
let t = Jh.parse(e);
@@ -16711,10 +16711,10 @@ var jee = /\b([a-z-]*)\(.*?\)/gu, qg = {
alpha: 1
} : e));
}
-}, Yg = {
+}, Zg = {
...sh,
transform: Math.round
-}, Xg = {
+}, Qg = {
rotate: Sh,
pathRotation: Sh,
rotateX: Sh,
@@ -16740,7 +16740,7 @@ var jee = /\b([a-z-]*)\(.*?\)/gu, qg = {
originX: Dh,
originY: Dh,
originZ: wh
-}, Zg = {
+}, $g = {
borderWidth: wh,
borderTopWidth: wh,
borderRightWidth: wh,
@@ -16791,13 +16791,13 @@ var jee = /\b([a-z-]*)\(.*?\)/gu, qg = {
fontSize: wh,
backgroundPositionX: wh,
backgroundPositionY: wh,
- ...Xg,
- zIndex: Yg,
+ ...Qg,
+ zIndex: Zg,
fillOpacity: ch,
strokeOpacity: ch,
- numOctaves: Yg
-}, Mee = {
- ...Zg,
+ numOctaves: Zg
+}, Aee = {
+ ...$g,
color: kh,
backgroundColor: kh,
outlineColor: kh,
@@ -16808,21 +16808,21 @@ var jee = /\b([a-z-]*)\(.*?\)/gu, qg = {
borderRightColor: kh,
borderBottomColor: kh,
borderLeftColor: kh,
- filter: qg,
- WebkitFilter: qg,
- mask: Jg,
- WebkitMask: Jg
-}, Qg = (e) => Mee[e], Nee = /*@__PURE__*/ new Set([qg, Jg]);
-function $g(e, t) {
- let n = Qg(e);
- return Nee.has(n) || (n = Jh), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
+ filter: Yg,
+ WebkitFilter: Yg,
+ mask: Xg,
+ WebkitMask: Xg
+}, e_ = (e) => Aee[e], jee = /*@__PURE__*/ new Set([Yg, Xg]);
+function t_(e, t) {
+ let n = e_(e);
+ return jee.has(n) || (n = Jh), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
}
// node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs
-function e_(e) {
+function n_(e) {
for (let t = 1; t < e.length; t++) e[t] ?? (e[t] = e[t - 1]);
}
// node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs
-var t_ = (e) => e * 180 / Math.PI, n_ = (e) => r_(t_(Math.atan2(e[1], e[0]))), Pee = {
+var r_ = (e) => e * 180 / Math.PI, i_ = (e) => a_(r_(Math.atan2(e[1], e[0]))), Mee = {
x: 4,
y: 5,
translateX: 4,
@@ -16831,44 +16831,44 @@ var t_ = (e) => e * 180 / Math.PI, n_ = (e) => r_(t_(Math.atan2(e[1], e[0]))), P
scaleY: 3,
scaleZ: () => 1,
scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
- rotate: n_,
- rotateZ: n_,
- skewX: (e) => t_(Math.atan(e[1])),
- skewY: (e) => t_(Math.atan(e[2])),
+ rotate: i_,
+ rotateZ: i_,
+ skewX: (e) => r_(Math.atan(e[1])),
+ skewY: (e) => r_(Math.atan(e[2])),
skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
-}, r_ = (e) => (e %= 360, e < 0 && (e += 360), e), i_ = n_, a_ = (e) => Math.hypot(e[0], e[1]), o_ = (e) => Math.hypot(e[4], e[5]), Fee = {
+}, a_ = (e) => (e %= 360, e < 0 && (e += 360), e), o_ = i_, s_ = (e) => Math.hypot(e[0], e[1]), c_ = (e) => Math.hypot(e[4], e[5]), Nee = {
x: 12,
y: 13,
z: 14,
translateX: 12,
translateY: 13,
translateZ: 14,
- scaleX: a_,
- scaleY: o_,
+ scaleX: s_,
+ scaleY: c_,
scaleZ: (e) => Math.hypot(e[8], e[9], e[10]),
- scale: (e) => (a_(e) + o_(e)) / 2,
- rotateX: (e) => r_(t_(Math.atan2(e[6], e[5]))),
- rotateY: (e) => r_(t_(Math.atan2(-e[2], e[0]))),
- rotateZ: i_,
- rotate: i_,
- skewX: (e) => t_(Math.atan(e[4])),
- skewY: (e) => t_(Math.atan(e[1])),
+ scale: (e) => (s_(e) + c_(e)) / 2,
+ rotateX: (e) => a_(r_(Math.atan2(e[6], e[5]))),
+ rotateY: (e) => a_(r_(Math.atan2(-e[2], e[0]))),
+ rotateZ: o_,
+ rotate: o_,
+ skewX: (e) => r_(Math.atan(e[4])),
+ skewY: (e) => r_(Math.atan(e[1])),
skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
};
-function s_(e) {
+function l_(e) {
return +!!e.includes("scale");
}
-function c_(e, t) {
- if (!e || e === "none") return s_(t);
+function u_(e, t) {
+ if (!e || e === "none") return l_(t);
let n = e.match(/^matrix(3d)?\(([-\d.e\s,]+)\)$/u);
- if (!n) return s_(t);
- let r = (n[1] ? Fee : Pee)[t], i = n[2].split(",").map((e) => parseFloat(e));
+ if (!n) return l_(t);
+ let r = (n[1] ? Nee : Mee)[t], i = n[2].split(",").map((e) => parseFloat(e));
return typeof r == "function" ? r(i) : i[r];
}
-var l_ = (e, t) => {
+var d_ = (e, t) => {
let { transform: n = "none" } = getComputedStyle(e);
- return c_(n, t);
-}, u_ = [
+ return u_(n, t);
+}, f_ = [
"transformPerspective",
"x",
"y",
@@ -16887,14 +16887,14 @@ var l_ = (e, t) => {
"skew",
"skewX",
"skewY"
-], d_ = /* @__PURE__ */ new Set([...u_, "pathRotation"]), f_ = (e) => e === sh || e === wh, Iee = /* @__PURE__ */ new Set([
+], p_ = /* @__PURE__ */ new Set([...f_, "pathRotation"]), m_ = (e) => e === sh || e === wh, Pee = /* @__PURE__ */ new Set([
"x",
"y",
"z"
-]), Lee = /* @__PURE__ */ u_.filter((e) => !Iee.has(e));
-function Ree(e) {
+]), Fee = /* @__PURE__ */ f_.filter((e) => !Pee.has(e));
+function Iee(e) {
let t = [];
- return Lee.forEach((n) => {
+ return Fee.forEach((n) => {
let r = e.getValue(n);
if (r !== void 0) {
let e = r.get(), i = +!!n.startsWith("scale");
@@ -16903,16 +16903,16 @@ function Ree(e) {
}
}), t;
}
-var zee = /* @__PURE__ */ new Set(["bottom", "right"]);
-function p_(e, t, n, r, i, a) {
+var Lee = /* @__PURE__ */ new Set(["bottom", "right"]);
+function h_(e, t, n, r, i, a) {
let o = parseFloat(e);
if (!isNaN(o)) return o;
let { min: s, max: c } = t()[n], l = c - s;
return a === "border-box" ? l : l - parseFloat(r) - parseFloat(i);
}
-var m_ = ({ transform: e }) => c_(e, "x"), h_ = ({ transform: e }) => c_(e, "y"), g_ = {
- width: ({ width: e, paddingLeft: t = "0", paddingRight: n = "0", boxSizing: r }, i) => p_(e, i, "x", t, n, r),
- height: ({ height: e, paddingTop: t = "0", paddingBottom: n = "0", boxSizing: r }, i) => p_(e, i, "y", t, n, r),
+var g_ = ({ transform: e }) => u_(e, "x"), __ = ({ transform: e }) => u_(e, "y"), v_ = {
+ width: ({ width: e, paddingLeft: t = "0", paddingRight: n = "0", boxSizing: r }, i) => h_(e, i, "x", t, n, r),
+ height: ({ height: e, paddingTop: t = "0", paddingBottom: n = "0", boxSizing: r }, i) => h_(e, i, "y", t, n, r),
top: ({ top: e }) => parseFloat(e),
left: ({ left: e }) => parseFloat(e),
bottom: ({ top: e }, t) => {
@@ -16923,20 +16923,20 @@ var m_ = ({ transform: e }) => c_(e, "x"), h_ = ({ transform: e }) => c_(e, "y")
let { x: n } = t();
return parseFloat(e) + (n.max - n.min);
},
- x: m_,
- y: h_,
- translateX: m_,
- translateY: h_
-}, __ = /* @__PURE__ */ new Set(), v_ = !1, y_ = !1, b_ = !1;
-function x_() {
- if (y_) {
+ x: g_,
+ y: __,
+ translateX: g_,
+ translateY: __
+}, y_ = /* @__PURE__ */ new Set(), b_ = !1, x_ = !1, S_ = !1;
+function C_() {
+ if (x_) {
let e = [], t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
- __.forEach((r) => {
- r.needsMeasurement && (e.push(r), t.add(r.element), zee.has(r.name) && n.add(r.element));
+ y_.forEach((r) => {
+ r.needsMeasurement && (e.push(r), t.add(r.element), Lee.has(r.name) && n.add(r.element));
});
let r = /* @__PURE__ */ new Map();
n.forEach((e) => {
- let t = Ree(e);
+ let t = Iee(e);
t.length && (r.set(e, t), e.render());
}), e.forEach((e) => e.measureInitialState()), t.forEach((e) => {
e.render();
@@ -16948,29 +16948,29 @@ function x_() {
e.suspendedScrollY !== void 0 && window.scrollTo(0, e.suspendedScrollY);
});
}
- y_ = !1, v_ = !1, __.forEach((e) => e.complete(b_)), __.clear();
+ x_ = !1, b_ = !1, y_.forEach((e) => e.complete(S_)), y_.clear();
}
-function S_() {
- __.forEach((e) => {
- e.readKeyframes(), e.needsMeasurement && (y_ = !0);
+function w_() {
+ y_.forEach((e) => {
+ e.readKeyframes(), e.needsMeasurement && (x_ = !0);
});
}
-function Bee() {
- b_ = !0, S_(), x_(), b_ = !1;
+function Ree() {
+ S_ = !0, w_(), C_(), S_ = !1;
}
-function Vee(e, t, n) {
+function zee(e, t, n) {
if (typeof e == "string") {
if (vm(e) || bm(e)) return parseFloat(e);
- if (!Jh.test(e) && Jh.test(n)) return $g(t, n);
+ if (!Jh.test(e) && Jh.test(n)) return t_(t, n);
}
return e ?? void 0;
}
-var C_ = class {
+var T_ = class {
constructor(e, t, n, r, i, a = !1) {
this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = t, this.name = n, this.motionValue = r, this.element = i, this.isAsync = a;
}
scheduleResolve() {
- this.state = "scheduled", this.isAsync ? (__.add(this), v_ || (v_ = !0, fg.read(S_), fg.resolveKeyframes(x_))) : (this.readKeyframes(), this.complete());
+ this.state = "scheduled", this.isAsync ? (y_.add(this), b_ || (b_ = !0, pg.read(w_), pg.resolveKeyframes(C_))) : (this.readKeyframes(), this.complete());
}
readKeyframes() {
let { unresolvedKeyframes: e, name: t, element: n, motionValue: r } = this;
@@ -16978,71 +16978,71 @@ var C_ = class {
let i = r?.get(), a = e[e.length - 1];
if (i !== void 0) e[0] = i;
else if (n && t) {
- let r = Vee(n.readValue(t, a), t, a);
+ let r = zee(n.readValue(t, a), t, a);
r !== void 0 && (e[0] = r);
}
e[0] === void 0 && (e[0] = a), r && i === void 0 && r.set(e[0]);
}
- e_(e);
+ n_(e);
}
setFinalKeyframe() {}
measureInitialState() {}
renderEndStyles() {}
measureEndState() {}
complete(e = !1) {
- this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), __.delete(this);
+ this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), y_.delete(this);
}
cancel() {
- this.state === "scheduled" && (__.delete(this), this.state = "pending");
+ this.state === "scheduled" && (y_.delete(this), this.state = "pending");
}
resume() {
this.state === "pending" && this.scheduleResolve();
}
-}, w_ = (e) => e.startsWith("--");
+}, E_ = (e) => e.startsWith("--");
// node_modules/motion-dom/dist/es/render/dom/style-set.mjs
-function T_(e, t, n) {
- w_(t) ? e.style.setProperty(t, n) : e.style[t] = n;
+function D_(e, t, n) {
+ E_(t) ? e.style.setProperty(t, n) : e.style[t] = n;
}
// node_modules/motion-dom/dist/es/utils/supports/flags.mjs
-var Hee = {};
+var Bee = {};
// node_modules/motion-dom/dist/es/utils/supports/memo.mjs
-function E_(e, t) {
+function O_(e, t) {
let n = /* @__PURE__ */ xm(e);
- return () => Hee[t] ?? n();
+ return () => Bee[t] ?? n();
}
// node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs
-var Uee = /* @__PURE__ */ E_(() => window.ScrollTimeline !== void 0, "scrollTimeline"), D_ = /*@__PURE__*/ E_(() => {
+var Vee = /* @__PURE__ */ O_(() => window.ScrollTimeline !== void 0, "scrollTimeline"), k_ = /*@__PURE__*/ O_(() => {
try {
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
} catch {
return !1;
}
return !0;
-}, "linearEasing"), O_ = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, k_ = {
+}, "linearEasing"), A_ = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, j_ = {
linear: "linear",
ease: "ease",
easeIn: "ease-in",
easeOut: "ease-out",
easeInOut: "ease-in-out",
- circIn: /*@__PURE__*/ O_([
+ circIn: /*@__PURE__*/ A_([
0,
.65,
.55,
1
]),
- circOut: /*@__PURE__*/ O_([
+ circOut: /*@__PURE__*/ A_([
.55,
0,
1,
.45
]),
- backIn: /*@__PURE__*/ O_([
+ backIn: /*@__PURE__*/ A_([
.31,
.01,
.66,
-.59
]),
- backOut: /*@__PURE__*/ O_([
+ backOut: /*@__PURE__*/ A_([
.33,
1.53,
.69,
@@ -17050,14 +17050,14 @@ var Uee = /* @__PURE__ */ E_(() => window.ScrollTimeline !== void 0, "scrollTime
])
};
// node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs
-function A_(e, t) {
- if (e) return typeof e == "function" ? D_() ? gg(e, t) : "ease-out" : /* @__PURE__ */ Km(e) ? O_(e) : Array.isArray(e) ? e.map((e) => A_(e, t) || k_.easeOut) : k_[e];
+function M_(e, t) {
+ if (e) return typeof e == "function" ? k_() ? _g(e, t) : "ease-out" : /* @__PURE__ */ Km(e) ? A_(e) : Array.isArray(e) ? e.map((e) => M_(e, t) || j_.easeOut) : j_[e];
}
// node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs
-function Wee(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
+function Hee(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
let u = { [t]: n };
c && (u.offset = c);
- let d = A_(s, i);
+ let d = M_(s, i);
Array.isArray(d) && (u.easing = d);
let f = {
delay: r,
@@ -17070,27 +17070,27 @@ function Wee(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatTy
return l && (f.pseudoElement = l), e.animate(u, f);
}
// node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs
-function j_(e) {
+function N_(e) {
return typeof e == "function" && "applyToOptions" in e;
}
// node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs
-function Gee({ type: e, ...t }) {
- return j_(e) && D_() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
+function Uee({ type: e, ...t }) {
+ return N_(e) && k_() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
}
// node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs
-var M_ = class extends Wg {
+var P_ = class extends Kg {
constructor(e) {
if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !e) return;
let { element: t, name: n, keyframes: r, pseudoElement: i, allowFlatten: a = !1, finalKeyframe: o, onComplete: s } = e;
this.isPseudoElement = !!i, this.allowFlatten = a, this.options = e;
- let c = Gee(e);
- this.animation = Wee(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
+ let c = Uee(e);
+ this.animation = Hee(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
if (this.finishedTime = this.time, !i) {
- let e = zg(r, this.options, o, this.speed);
- this.updateMotionValue?.(e), T_(t, n, e), this.animation.cancel();
+ let e = Vg(r, this.options, o, this.speed);
+ this.updateMotionValue?.(e), D_(t, n, e), this.animation.cancel();
}
s?.(), this.notifyFinished();
- }, Ug(this, e, c);
+ }, Gg(this, e, c);
}
play() {
this.isStopped || (this.manualStartTime = null, this.animation.play(), this.state === "finished" && this.updateFinished());
@@ -17144,22 +17144,22 @@ var M_ = class extends Wg {
this.manualStartTime = this.animation.startTime = e;
}
attachTimeline({ timeline: e, onAttach: t, observe: n }) {
- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && Uee() ? (this.animation.timeline = e, t?.(this.animation), Sm) : n(this);
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && Vee() ? (this.animation.timeline = e, t?.(this.animation), Sm) : n(this);
}
-}, N_ = {
+}, F_ = {
anticipate: Lm,
backInOut: Im,
circInOut: Bm
};
-function Kee(e) {
- return e in N_;
+function Wee(e) {
+ return e in F_;
}
-function qee(e) {
- typeof e.ease == "string" && Kee(e.ease) && (e.ease = N_[e.ease]);
+function Gee(e) {
+ typeof e.ease == "string" && Wee(e.ease) && (e.ease = F_[e.ease]);
}
-var Jee = class extends M_ {
+var Kee = class extends P_ {
constructor(e) {
- qee(e), Bg(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
+ Gee(e), Hg(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
}
elapsed() {
return this.state === "running" ? ($m.now() - this.startTime) * this.speed : this.time * 1e3;
@@ -17167,7 +17167,7 @@ var Jee = class extends M_ {
sample(e) {
if (!this.sampler) {
let { motionValue: e, onUpdate: t, onComplete: n, onPlay: r, onStop: i, element: a, ...o } = this.options;
- this.sampler = new Kg({
+ this.sampler = new Jg({
...o,
autoplay: !1
}), this.sampler.stop();
@@ -17186,39 +17186,39 @@ var Jee = class extends M_ {
return;
}
let { speed: i } = this, a = this.elapsed(), o = this.state === "running" && i ? gm(0, 10, a) : 0, s = this.sample(a);
- n && r && T_(n, r, s), t.setWithVelocity(this.sample(a - o * Math.sign(i)), s, o / Math.abs(i || 1));
+ n && r && D_(n, r, s), t.setWithVelocity(this.sample(a - o * Math.sign(i)), s, o / Math.abs(i || 1));
}
-}, P_ = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (Jh.test(e) || e === "0") && !e.startsWith("url("));
+}, I_ = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (Jh.test(e) || e === "0") && !e.startsWith("url("));
// node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs
-function Yee(e) {
+function qee(e) {
let t = e[0];
if (e.length === 1) return !0;
for (let n = 0; n < e.length; n++) if (e[n] !== t) return !0;
}
-function Xee(e, t, n, r) {
+function Jee(e, t, n, r) {
let i = e[0];
if (i === null) return !1;
if (t === "display" || t === "visibility") return !0;
- let a = e[e.length - 1], o = P_(i, t), s = P_(a, t);
- return !o || !s ? !1 : Yee(e) || (n === "spring" || j_(n)) && r;
+ let a = e[e.length - 1], o = I_(i, t), s = I_(a, t);
+ return !o || !s ? !1 : qee(e) || (n === "spring" || N_(n)) && r;
}
// node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs
-function F_(e) {
+function L_(e) {
e.duration = 0, e.type = "keyframes";
}
// node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.mjs
-var I_ = /* @__PURE__ */ new Set([
+var R_ = /* @__PURE__ */ new Set([
"opacity",
"clipPath",
"filter",
"transform"
-]), Zee = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
-function Qee(e) {
- for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && Zee.test(e[t])) return !0;
+]), Yee = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
+function Xee(e) {
+ for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && Yee.test(e[t])) return !0;
return !1;
}
// node_modules/motion-dom/dist/es/animation/waapi/utils/needs-mixer.mjs
-var L_ = ({ mixer: e, keyframes: t }) => e && typeof t[0] != "number" && t.some((n, r) => r && e(t[r - 1], n)), R_ = /* @__PURE__ */ new Set([
+var z_ = ({ mixer: e, keyframes: t }) => e && typeof t[0] != "number" && t.some((n, r) => r && e(t[r - 1], n)), B_ = /* @__PURE__ */ new Set([
"color",
"backgroundColor",
"outlineColor",
@@ -17229,54 +17229,54 @@ var L_ = ({ mixer: e, keyframes: t }) => e && typeof t[0] != "number" && t.some(
"borderRightColor",
"borderBottomColor",
"borderLeftColor"
-]), z_ = () => !_m.useManualTiming && Object.hasOwnProperty.call(Element.prototype, "animate");
-function B_(e) {
+]), V_ = () => !_m.useManualTiming && Object.hasOwnProperty.call(Element.prototype, "animate");
+function H_(e) {
let { motionValue: t, name: n, repeatDelay: r, repeatType: i, damping: a, type: o, keyframes: s } = e;
- if (!n || !(I_.has(n) || R_.has(n))) return !1;
+ if (!n || !(R_.has(n) || B_.has(n))) return !1;
let c = t?.owner?.current;
if (!(c instanceof HTMLElement) && !(c instanceof SVGElement)) return !1;
let { onUpdate: l, transformTemplate: u } = t.owner.getProps();
- return z_() && (I_.has(n) || R_.has(n) && Qee(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia" && !L_(e);
+ return V_() && (R_.has(n) || B_.has(n) && Xee(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia" && !z_(e);
}
// node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs
-var V_ = (e, t) => t && typeof e == "number" ? t.transform(e) : e, H_ = {
+var U_ = (e, t) => t && typeof e == "number" ? t.transform(e) : e, W_ = {
x: "translateX",
y: "translateY",
z: "translateZ",
transformPerspective: "perspective"
-}, U_ = u_.length, W_ = {}, G_ = (e, t, n = V_(t, Xg[e])) => (W_[e] || (W_[e] = (H_[e] || e) + "(")) + n + ")", K_ = (e, t) => (typeof t == "number" ? t : parseFloat(t)) === +!!e.startsWith("scale");
-function $ee(e, t, n) {
+}, G_ = f_.length, K_ = {}, q_ = (e, t, n = U_(t, Qg[e])) => (K_[e] || (K_[e] = (W_[e] || e) + "(")) + n + ")", J_ = (e, t) => (typeof t == "number" ? t : parseFloat(t)) === +!!e.startsWith("scale");
+function Zee(e, t, n) {
let r = "";
- for (let i = 0; i < U_; i++) {
- let a = u_[i], o = e[a];
+ for (let i = 0; i < G_; i++) {
+ let a = f_[i], o = e[a];
if (o === void 0) continue;
- let s = n && (t[a] = V_(o, Zg[a]));
- K_(a, o) || (r += G_(a, o, s || void 0) + " ");
+ let s = n && (t[a] = U_(o, $g[a]));
+ J_(a, o) || (r += q_(a, o, s || void 0) + " ");
}
let i = e.pathRotation;
- return i && (r += G_("rotate", i)), r = r.trim(), n ? n(t, r) : r || "none";
+ return i && (r += q_("rotate", i)), r = r.trim(), n ? n(t, r) : r || "none";
}
// node_modules/motion-dom/dist/es/animation/waapi/transforms/groups.mjs
-var q_ = /* @__PURE__ */ new WeakMap(), ete = 200, J_ = .001, tte = .1, nte = .001, rte = 100, ite = (e) => /^(linear|ease(In|Out|InOut))$/.test(e), Y_ = (e, t) => Math.abs(e - t) <= J_, X_ = (e, t) => e - t, Z_ = (e, t, n) => Ig(Array(n + 1)).map((n) => Qh(e, t, n)), Q_ = (e) => e.motionValue.owner, $_ = (e) => q_.get(e), ev = ({ state: e }) => e === "idle" || e === "finished", tv = (e, t) => e.latestValues ? e.latestValues[t] : e.getValue(t)?.get(), ate = ({ name: e, motionValue: t }) => e && u_.includes(e) && t?.owner?.current instanceof HTMLElement && z_() && D_();
-function ote(e) {
- let t = Q_(e), { onUpdate: n, transformTemplate: r } = t.getProps();
- return !e.isHandoff && !n && !e.hasOnUpdate && !r && e.type !== "inertia" && (tv(t, "transform") || "none") === "none" && !tv(t, "pathRotation") && !t.projection?.isProjecting() && !L_(e);
+var Y_ = /* @__PURE__ */ new WeakMap(), Qee = 200, X_ = .001, $ee = .1, ete = .001, tte = 100, nte = (e) => /^(linear|ease(In|Out|InOut))$/.test(e), Z_ = (e, t) => Math.abs(e - t) <= X_, Q_ = (e, t) => e - t, $_ = (e, t, n) => Rg(Array(n + 1)).map((n) => Qh(e, t, n)), ev = (e) => e.motionValue.owner, tv = (e) => Y_.get(e), nv = ({ state: e }) => e === "idle" || e === "finished", rv = (e, t) => e.latestValues ? e.latestValues[t] : e.getValue(t)?.get(), rte = ({ name: e, motionValue: t }) => e && f_.includes(e) && t?.owner?.current instanceof HTMLElement && V_() && k_();
+function ite(e) {
+ let t = ev(e), { onUpdate: n, transformTemplate: r } = t.getProps();
+ return !e.isHandoff && !n && !e.hasOnUpdate && !r && e.type !== "inertia" && (rv(t, "transform") || "none") === "none" && !rv(t, "pathRotation") && !t.projection?.isProjecting() && !z_(e);
}
-var ste = class extends Kg {
+var ate = class extends Jg {
constructor(e) {
- let t = Q_(e).current, { driver: n = hg } = e, r, i = ote(e);
+ let t = ev(e).current, { driver: n = gg } = e, r, i = ite(e);
e.driver = (e) => {
let i = n(e);
return {
js: i,
now: i.now,
start: (e = !0) => {
- let n = $_(t);
+ let n = tv(t);
!n || n.isJS ? i.start(e) : n.schedule(!1, !e);
},
stop: () => {
i.stop();
- let e = $_(t);
+ let e = tv(t);
e && !e.isFinishing && e.release(r);
}
};
@@ -17287,7 +17287,7 @@ var ste = class extends Kg {
};
}
get group() {
- return $_(Q_(this.options).current);
+ return tv(ev(this.options).current);
}
get js() {
return this.driver?.js;
@@ -17307,8 +17307,8 @@ var ste = class extends Kg {
return this.isAccelerated() ? this.sampleAt($m.now()) : void 0;
}
tween() {
- let { keyframes: e, type: t, ease: n, times: r, repeat: i, delay: a = 0 } = this.options, o = /* @__PURE__ */ Km(n) ? O_(n) : ite(n) && k_[n];
- if (o && !i && !r && e.length === 2 && t === Lg && this.holdTime === null) {
+ let { keyframes: e, type: t, ease: n, times: r, repeat: i, delay: a = 0 } = this.options, o = /* @__PURE__ */ Km(n) ? A_(n) : nte(n) && j_[n];
+ if (o && !i && !r && e.length === 2 && t === zg && this.holdTime === null) {
let e = this.startTime + a / this.speed;
return [
e,
@@ -17318,7 +17318,7 @@ var ste = class extends Kg {
}
}
boundaries(e, t) {
- let { startTime: n, speed: r, resolvedDuration: i, options: a } = this, { delay: o = 0, repeat: s = 0, repeatDelay: c = 0, repeatType: l, times: u, keyframes: d, type: f } = a, p = (f || Lg) === Lg ? u || Ig(d) : [0, 1], m = n + o / r, h = [];
+ let { startTime: n, speed: r, resolvedDuration: i, options: a } = this, { delay: o = 0, repeat: s = 0, repeatDelay: c = 0, repeatType: l, times: u, keyframes: d, type: f } = a, p = (f || zg) === zg ? u || Rg(d) : [0, 1], m = n + o / r, h = [];
if (this.holdTime !== null || !(i > 0)) return h;
for (let n = Math.max(0, Math.floor((e - m) * r / i)); n <= s; n++) {
let a = m + n * i / r;
@@ -17338,7 +17338,7 @@ var ste = class extends Kg {
this.options.motionValue.setWithVelocity(this.sampleAt(e - 10, !0), this.sampleAt(e, !0), 10);
}
play() {
- this.isStopped || ((this.group || cte(Q_(this.options))).tracks.add(this), super.play());
+ this.isStopped || ((this.group || ote(ev(this.options))).tracks.add(this), super.play());
}
pause() {
super.pause(), this.isAccelerated() && (this.sync(), this.group.schedule(!1));
@@ -17358,13 +17358,13 @@ var ste = class extends Kg {
return this.canAccelerate = !1, this.group?.demote(!0), super.attachTimeline(e);
}
};
-function cte(e) {
+function ote(e) {
let t = e.current, n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map(), i = {}, a = [], o = /* @__PURE__ */ new Map(), s = [], c = !1, l = !1, u = !1, d = !1, f = -Infinity, p = (e) => {
for (let t of n) if (t.name === e) return !0;
}, m = (t, n) => {
let o = {};
- for (let s of t === void 0 ? u_ : a) {
- let a = r.get(s), c = t === void 0 ? tv(e, s) : a ? a.sampleAt(n > t && !a.timing()[1] ? n : t) : i[s];
+ for (let s of t === void 0 ? f_ : a) {
+ let a = r.get(s), c = t === void 0 ? rv(e, s) : a ? a.sampleAt(n > t && !a.timing()[1] ? n : t) : i[s];
c !== void 0 && (o[s] = c);
}
return o;
@@ -17372,7 +17372,7 @@ function cte(e) {
let n = "";
for (let r in e) {
let i = e[r];
- t && K_(r, i) || (n += G_(r, i) + " ");
+ t && J_(r, i) || (n += q_(r, i) + " ");
}
return (t ? n.trim() : n) || "none";
}, g = (e, t) => h(m(e, t)), _ = (e = m()) => {
@@ -17396,32 +17396,32 @@ function cte(e) {
}
return r(t, n) > i / 2 ? [t, n] : [];
}, S = (e, t, n, r) => {
- let i = Math.min(ete, Math.max(2, Math.ceil((n - t) / 10)));
+ let i = Math.min(Qee, Math.max(2, Math.ceil((n - t) / 10)));
if (r.length * 4 > i) return;
- let a = Z_(t, n, i).concat(r).sort(X_), o = (e) => /* @__PURE__ */ wm(t, n, e), s, c;
+ let a = $_(t, n, i).concat(r).sort(Q_), o = (e) => /* @__PURE__ */ wm(t, n, e), s, c;
for (let n of e) {
- let e = n.numberAt(t), r = a.map((t) => n.numberAt(t) - e), i = r[r.length - 1], o = r.some((e) => Math.abs(e) * J_ > Math.abs(i)) ? 0 : i, l = r.map((e) => o ? e / o : e);
+ let e = n.numberAt(t), r = a.map((t) => n.numberAt(t) - e), i = r[r.length - 1], o = r.some((e) => Math.abs(e) * X_ > Math.abs(i)) ? 0 : i, l = r.map((e) => o ? e / o : e);
if (o && !s) s = l, c = (t) => (n.numberAt(t) - e) / o;
- else if (l.some((e, t) => !Y_(e, o && s[t]))) return;
+ else if (l.some((e, t) => !Z_(e, o && s[t]))) return;
}
- if (!s || s.every((e, t) => Y_(e, o(a[t])))) return "linear";
- let l = [], u = (e, t = c(e)) => l.push(Gg(t) + " " + Gg(o(e) * 100) + "%");
+ if (!s || s.every((e, t) => Z_(e, o(a[t])))) return "linear";
+ let l = [], u = (e, t = c(e)) => l.push(qg(t) + " " + qg(o(e) * 100) + "%");
return s.forEach((e, t) => {
t && Math.abs(e - s[t - 1]) > .2 && x(c, a[t - 1], a[t]).forEach((e) => u(e)), u(a[t], e);
}), "linear(" + l + ")";
}, C = (e, t, n, r) => {
- let i = [t], a = (t, n) => e.every((e) => !(Math.abs(e.numberAt((t + n) / 2) - (e.numberAt(t) + e.numberAt(n)) / 2) > (e.name.startsWith("scale") ? nte : tte))), o = (t, n, r) => {
+ let i = [t], a = (t, n) => e.every((e) => !(Math.abs(e.numberAt((t + n) / 2) - (e.numberAt(t) + e.numberAt(n)) / 2) > (e.name.startsWith("scale") ? ete : $ee))), o = (t, n, r) => {
if (n - t < 1 || a(t, n)) i.push(n);
else if (r < 4) o(t, (t + n) / 2, r + 1), o((t + n) / 2, n, r + 1);
else {
for (let r of e) i.push(...x((e) => r.numberAt(e), t, n));
i.push(n);
}
- }, s = Z_(t, n, Math.ceil((n - t) / 100));
+ }, s = $_(t, n, Math.ceil((n - t) / 100));
for (let e of r) s.push(e, Math.min(e + .01, n));
let c = t;
- for (let e of s.sort(X_)) e > c && o(c, e, 0), c = e;
- return i.sort(X_);
+ for (let e of s.sort(Q_)) e > c && o(c, e, 0), c = e;
+ return i.sort(Q_);
}, w = (e) => {
let t;
for (let n of e) {
@@ -17460,10 +17460,10 @@ function cte(e) {
d.push(e), c = Math.max(c, n);
}
}
- i = {}, a = u_.filter((t) => {
+ i = {}, a = f_.filter((t) => {
if (r.has(t)) return !0;
- let n = i[t] = tv(e, t);
- return n !== void 0 && !K_(t, n);
+ let n = i[t] = rv(e, t);
+ return n !== void 0 && !J_(t, n);
}), v(!1);
let m = !l && w(d);
try {
@@ -17509,18 +17509,18 @@ function cte(e) {
r && n.updatePlaybackRate && n.playState === "running" && Math.abs(Number(n.currentTime) - o) < 20 ? n.playbackRate !== r && n.updatePlaybackRate(r) : r ? (n.playbackRate = r, n.startTime = e - o / r) : (n.startTime = null, n.currentTime = o);
}
return !0;
- }, O = () => !n.size && (u = !0, $_(t) === A && q_.delete(t), A.isJS || v(), !0), k = () => {
+ }, O = () => !n.size && (u = !0, tv(t) === A && Y_.delete(t), A.isJS || v(), !0), k = () => {
let t = $m.now();
if (A.isJS || (A.isFinishing = !0, n.forEach((n) => {
let [r, a] = n.timing();
- n.state === "running" && n.speed > 0 && !a && r <= t + 1 && (n.complete(), i[n.name] = tv(e, n.name), o.has(n) || (c = !0));
- }), A.isFinishing = !1), l = !1, u || (n.forEach((e) => ev(e) && n.delete(e)), O())) return;
+ n.state === "running" && n.speed > 0 && !a && r <= t + 1 && (n.complete(), i[n.name] = rv(e, n.name), o.has(n) || (c = !0));
+ }), A.isFinishing = !1), l = !1, u || (n.forEach((e) => nv(e) && n.delete(e)), O())) return;
for (let e of n) if (!e.canAccelerate) return A.demote(!0);
A.isJS && (A.isJS = !1, c = !0, n.forEach((e) => e.js?.stop()));
let r = c, a = d;
if (c = d = !1, r || !D(t)) {
if (a) {
- if (t - f < rte) return A.demote();
+ if (t - f < tte) return A.demote();
f = t;
}
if (!E(t)) return A.demote();
@@ -17530,14 +17530,14 @@ function cte(e) {
isJS: !1,
isFinishing: !1,
schedule(e, t) {
- u || (c ||= e, d ||= !!t, l || (l = !0, Xm.isProcessing ? fg.render(k, !1, !0) : queueMicrotask(k)));
+ u || (c ||= e, d ||= !!t, l || (l = !0, Xm.isProcessing ? pg.render(k, !1, !0) : queueMicrotask(k)));
},
release(e) {
- ev(e) && n.delete(e), O() || A.schedule(!0);
+ nv(e) && n.delete(e), O() || A.schedule(!0);
},
check() {
if (!A.isJS) {
- for (let t in i) if (tv(e, t) !== i[t] && !p(t)) return A.schedule(!0, !0);
+ for (let t in i) if (rv(e, t) !== i[t] && !p(t)) return A.schedule(!0, !0);
}
},
demote(e) {
@@ -17546,40 +17546,40 @@ function cte(e) {
}), A.isJS = !0, o = /* @__PURE__ */ new Map(), v(), n.forEach((e) => e.state === "running" && e.js?.start()), !0;
}
};
- return q_.set(t, A), A;
+ return Y_.set(t, A), A;
}
// node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs
-var lte = class extends Wg {
+var ste = class extends Kg {
constructor(e) {
super(), this.stop = () => {
this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
}, this.createdAt = $m.now();
let { keyframes: t, name: n, motionValue: r, element: i } = e, a = e;
a.autoplay ??= !0, a.delay ??= 0, a.type ??= "keyframes", a.repeat ??= 0, a.repeatDelay ??= 0, a.repeatType ??= "loop";
- let o = i?.KeyframeResolver || C_;
+ let o = i?.KeyframeResolver || T_;
this.keyframeResolver = new o(t, (e, t, n) => this.onKeyframesResolved(e, t, a, !n), n, r, i), this.keyframeResolver?.scheduleResolve();
}
onKeyframesResolved(e, t, n, r) {
this.keyframeResolver = void 0;
let { name: i, type: a, velocity: o, delay: s, isHandoff: c, onUpdate: l } = n;
this.resolvedAt = $m.now();
- let u = Xee(e, i, a, o);
- u || ((_m.instantAnimations || !s) && l?.(zg(e, n, t)), e[0] = e[e.length - 1], F_(n), n.repeat = 0);
+ let u = Jee(e, i, a, o);
+ u || ((_m.instantAnimations || !s) && l?.(Vg(e, n, t)), e[0] = e[e.length - 1], L_(n), n.repeat = 0);
let { onComplete: d } = n;
n.finalKeyframe = t, n.keyframes = e, n.onComplete = () => {
d?.(), this.notifyFinished();
};
- let f = u && !c && B_(n), p = !f && ate(n);
- r && (f || p || this.resolvedAt !== this.createdAt) && (n.startTime ??= Vg(this.createdAt, this.resolvedAt));
+ let f = u && !c && H_(n), p = !f && rte(n);
+ r && (f || p || this.resolvedAt !== this.createdAt) && (n.startTime ??= Ug(this.createdAt, this.resolvedAt));
let m;
if (f) {
n.element = n.motionValue?.owner?.current;
try {
- m = new Jee(n);
+ m = new Kee(n);
} catch {
- m = new Kg(n);
+ m = new Jg(n);
}
- } else m = p ? new ste(n) : new Kg(n);
+ } else m = p ? new ate(n) : new Jg(n);
this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;
}
get finished() {
@@ -17592,7 +17592,7 @@ var lte = class extends Wg {
return this._animation?.liveValue?.();
}
get animation() {
- return this._animation || (this.keyframeResolver?.resume(), Bee()), this._animation;
+ return this._animation || (this.keyframeResolver?.resume(), Ree()), this._animation;
}
get duration() {
return this.animation.duration;
@@ -17633,7 +17633,7 @@ var lte = class extends Wg {
cancel() {
this._animation?.cancel(), this.keyframeResolver?.cancel();
}
-}, ute = class {
+}, cte = class {
constructor(e) {
this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
}
@@ -17673,10 +17673,10 @@ var lte = class extends Wg {
return this.getAll("startTime");
}
get duration() {
- return nv(this.animations, "duration");
+ return iv(this.animations, "duration");
}
get iterationDuration() {
- return nv(this.animations, "iterationDuration");
+ return iv(this.animations, "iterationDuration");
}
runAll(e) {
this.animations.forEach((t) => t[e]());
@@ -17694,7 +17694,7 @@ var lte = class extends Wg {
this.runAll("complete");
}
};
-function nv(e, t) {
+function iv(e, t) {
let n = 0;
for (let r = 0; r < e.length; r++) {
let i = e[r][t];
@@ -17703,22 +17703,22 @@ function nv(e, t) {
return n;
}
// node_modules/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs
-var rv = class extends ute {
+var av = class extends cte {
then(e, t) {
return this.finished.finally(e).then(() => {});
}
-}, iv = /* @__PURE__ */ new WeakMap(), dte = (e, t = "") => `${e}:${t}`;
-function fte(e) {
- let t = iv.get(e);
- return t || (t = /* @__PURE__ */ new Map(), iv.set(e, t)), t;
+}, ov = /* @__PURE__ */ new WeakMap(), lte = (e, t = "") => `${e}:${t}`;
+function ute(e) {
+ let t = ov.get(e);
+ return t || (t = /* @__PURE__ */ new Map(), ov.set(e, t)), t;
}
// node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs
-function av(e, t, n, r = 0, i = 1) {
+function sv(e, t, n, r = 0, i = 1) {
let a = Array.from(e).sort((e, t) => e.sortNodePosition(t)).indexOf(t), o = e.size, s = (o - 1) * r;
return typeof n == "function" ? n(a, o) : i === 1 ? a * r : s - a * r;
}
// node_modules/motion-dom/dist/es/value/index.mjs
-var ov = 30, pte = (e) => !isNaN(parseFloat(e)), sv = { current: void 0 }, cv = class {
+var cv = 30, dte = (e) => !isNaN(parseFloat(e)), lv = { current: void 0 }, uv = class {
constructor(e, t = {}) {
this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (e) => {
let t = $m.now();
@@ -17726,7 +17726,7 @@ var ov = 30, pte = (e) => !isNaN(parseFloat(e)), sv = { current: void 0 }, cv =
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = t.owner;
}
setCurrent(e) {
- this.current = e, this.updatedAt = $m.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = pte(this.current));
+ this.current = e, this.updatedAt = $m.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = dte(this.current));
}
setPrevFrameValue(e = this.current) {
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
@@ -17745,7 +17745,7 @@ var ov = 30, pte = (e) => !isNaN(parseFloat(e)), sv = { current: void 0 }, cv =
};
}
stopIfUnobserved() {
- fg.read(() => {
+ pg.read(() => {
!this.changeSubscriber && !this.events.change?.getSize() && this.stop();
});
}
@@ -17776,7 +17776,7 @@ var ov = 30, pte = (e) => !isNaN(parseFloat(e)), sv = { current: void 0 }, cv =
this.dependents?.delete(e);
}
get() {
- sv.current?.push(this);
+ lv.current?.push(this);
let e = this.animation?.liveValue?.();
return e === void 0 ? this.current : e;
}
@@ -17788,8 +17788,8 @@ var ov = 30, pte = (e) => !isNaN(parseFloat(e)), sv = { current: void 0 }, cv =
}
getVelocity() {
let e = $m.now();
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > ov) return 0;
- let t = Math.min(this.updatedAt - this.prevUpdatedAt, ov);
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > cv) return 0;
+ let t = Math.min(this.updatedAt - this.prevUpdatedAt, cv);
return /* @__PURE__ */ Om(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
}
start(e) {
@@ -17811,11 +17811,11 @@ var ov = 30, pte = (e) => !isNaN(parseFloat(e)), sv = { current: void 0 }, cv =
this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect?.();
}
};
-function lv(e, t) {
- return new cv(e, t);
+function dv(e, t) {
+ return new uv(e, t);
}
// node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs
-function uv(e, t) {
+function fv(e, t) {
if (e?.inherit && t) {
let { inherit: n, ...r } = e;
return {
@@ -17826,25 +17826,25 @@ function uv(e, t) {
return e;
}
// node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs
-function dv(e, t) {
+function pv(e, t) {
let n = e?.[t] ?? e?.default ?? e;
- return n === e ? n : uv(n, e);
+ return n === e ? n : fv(n, e);
}
// node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs
-var mte = {
+var fte = {
type: "spring",
stiffness: 500,
damping: 25,
restSpeed: 10
-}, hte = (e) => ({
+}, pte = (e) => ({
type: "spring",
stiffness: 550,
damping: e === 0 ? 2 * Math.sqrt(550) : 30,
restSpeed: 10
-}), gte = {
+}), mte = {
type: "keyframes",
duration: .8
-}, _te = {
+}, hte = {
type: "keyframes",
ease: [
.25,
@@ -17853,7 +17853,7 @@ var mte = {
1
],
duration: .3
-}, vte = (e, { keyframes: t }) => t.length > 2 ? gte : d_.has(e) ? e.startsWith("scale") ? hte(t[1]) : mte : _te, yte = /* @__PURE__ */ new Set([
+}, gte = (e, { keyframes: t }) => t.length > 2 ? mte : p_.has(e) ? e.startsWith("scale") ? pte(t[1]) : fte : hte, _te = /* @__PURE__ */ new Set([
"when",
"delay",
"delayChildren",
@@ -17867,13 +17867,13 @@ var mte = {
"out",
"mixer"
]);
-function bte(e) {
- for (let t in e) if (!yte.has(t)) return !0;
+function vte(e) {
+ for (let t in e) if (!_te.has(t)) return !0;
return !1;
}
// node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs
-var fv = (e, t, n, r = {}, i, a) => (o) => {
- let s = dv(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
+var mv = (e, t, n, r = {}, i, a) => (o) => {
+ let s = pv(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
l -= /* @__PURE__ */ Em(c);
let u = {
keyframes: Array.isArray(n) ? n : [null, n],
@@ -17892,195 +17892,195 @@ var fv = (e, t, n, r = {}, i, a) => (o) => {
element: a ? void 0 : i,
hasOnUpdate: !!s.onUpdate
};
- bte(s) || Object.assign(u, vte(e, u)), u.duration &&= /* @__PURE__ */ Em(u.duration), u.repeatDelay &&= /* @__PURE__ */ Em(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
+ vte(s) || Object.assign(u, gte(e, u)), u.duration &&= /* @__PURE__ */ Em(u.duration), u.repeatDelay &&= /* @__PURE__ */ Em(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
let d = !1;
- if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (F_(u), u.delay === 0 && (d = !0)), (_m.instantAnimations || _m.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, F_(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
- let e = zg(u.keyframes, s);
+ if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (L_(u), u.delay === 0 && (d = !0)), (_m.instantAnimations || _m.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, L_(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
+ let e = Vg(u.keyframes, s);
if (e !== void 0) {
- fg.update(() => {
+ pg.update(() => {
u.onUpdate(e), u.onComplete();
});
return;
}
}
- return s.isSync ? new Kg(u) : new lte(u);
-}, xte = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
-function Ste(e) {
- let t = xte.exec(e);
+ return s.isSync ? new Jg(u) : new ste(u);
+}, yte = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
+function bte(e) {
+ let t = yte.exec(e);
if (!t) return [,];
let [, n, r, i] = t;
return [`--${n ?? r}`, i];
}
-function pv(e, t, n = 1) {
- let [r, i] = Ste(e);
+function hv(e, t, n = 1) {
+ let [r, i] = bte(e);
if (!r) return;
let a = window.getComputedStyle(t).getPropertyValue(r);
if (a) {
let e = a.trim();
return vm(e) ? parseFloat(e) : e;
}
- return ih(i) ? pv(i, t, n + 1) : i;
+ return ih(i) ? hv(i, t, n + 1) : i;
}
// node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs
-function Cte(e) {
+function xte(e) {
let t = [{}, {}];
return e?.values.forEach((e, n) => {
t[0][n] = e.get(), t[1][n] = e.getVelocity();
}), t;
}
-function mv(e, t, n, r) {
- let i = (t) => typeof t == "function" ? t(n === void 0 ? e.custom : n, ...Cte(r)) : t;
+function gv(e, t, n, r) {
+ let i = (t) => typeof t == "function" ? t(n === void 0 ? e.custom : n, ...xte(r)) : t;
return t = i(t), typeof t == "string" && (t = e.variants && e.variants[t]), i(t);
}
// node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs
-function hv(e, t, n) {
- return mv(e.getProps(), t, n, e);
+function _v(e, t, n) {
+ return gv(e.getProps(), t, n, e);
}
-var gv = (e, t) => t === "exit" ? e.presenceContext?.custom : void 0, _v = /* @__PURE__ */ new Set([
+var vv = (e, t) => t === "exit" ? e.presenceContext?.custom : void 0, yv = /* @__PURE__ */ new Set([
"width",
"height",
"top",
"left",
"right",
"bottom",
- ...u_
-]), wte = (e) => Array.isArray(e);
+ ...f_
+]), Ste = (e) => Array.isArray(e);
// node_modules/motion-dom/dist/es/render/utils/setters.mjs
-function Tte(e, t, n) {
- e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, lv(n));
+function Cte(e, t, n) {
+ e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, dv(n));
}
-function Ete(e) {
- return wte(e) ? e[e.length - 1] || 0 : e;
+function wte(e) {
+ return Ste(e) ? e[e.length - 1] || 0 : e;
}
-function Dte(e, t) {
- let { transitionEnd: n = {}, transition: r = {}, ...i } = hv(e, t) || {};
+function Tte(e, t) {
+ let { transitionEnd: n = {}, transition: r = {}, ...i } = _v(e, t) || {};
i = {
...i,
...n
};
- for (let t in i) Tte(e, t, Ete(i[t]));
+ for (let t in i) Cte(e, t, wte(i[t]));
}
// node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs
-var vv = (e) => !!(e && e.getVelocity);
+var bv = (e) => !!(e && e.getVelocity);
// node_modules/motion-dom/dist/es/value/will-change/is.mjs
-function Ote(e) {
- return !!(vv(e) && e.add);
+function Ete(e) {
+ return !!(bv(e) && e.add);
}
// node_modules/motion-dom/dist/es/value/will-change/add-will-change.mjs
-function yv(e, t) {
+function xv(e, t) {
let n = e.getValue("willChange");
- if (Ote(n)) return n.add(t);
+ if (Ete(n)) return n.add(t);
if (!n && _m.WillChange) {
let n = new _m.WillChange("auto");
e.addValue("willChange", n), n.add(t);
}
}
// node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.mjs
-var bv = "data-framer-appear-id";
+var Sv = "data-framer-appear-id";
// node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.mjs
-function xv(e) {
- return e.props[bv];
+function Cv(e) {
+ return e.props[Sv];
}
// node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs
-var kte = typeof window < "u";
-function Ate({ protectedKeys: e, needsAnimating: t }, n) {
+var Dte = typeof window < "u";
+function Ote({ protectedKeys: e, needsAnimating: t }, n) {
let r = n in e && !t[n];
return t[n] = !1, r;
}
-function Sv(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
+function wv(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
let { transition: a, transitionEnd: o, ...s } = t, c = e.getDefaultTransition();
- a = a ? uv(a, c) : c;
+ a = a ? fv(a, c) : c;
let l = a?.reduceMotion, u = a?.skipAnimations;
r && (a = r);
let d = [], f = i && e.animationState?.getState()[i], p = a?.path;
p && (p.animateValues ? p.animateValues((t) => e.getValue(t, e.latestValues[t] ?? 0), s, a, n, d) : p.animateVisualElement?.(e, s, a, n, d));
for (let t in s) {
let r = e.getValue(t, e.latestValues[t] ?? null), i = s[t];
- if (i === void 0 || f && Ate(f, t)) continue;
+ if (i === void 0 || f && Ote(f, t)) continue;
let o = {
delay: n,
- ...dv(f?.out[t] || a || {}, t)
+ ...pv(f?.out[t] || a || {}, t)
};
u && (o.skipAnimations = !0);
let c = r.get();
if (c !== void 0 && !r.isAnimating() && !Array.isArray(i) && i === c && !o.velocity) {
- fg.update(() => r.set(i));
+ pg.update(() => r.set(i));
continue;
}
let p = !1;
- if (kte && window.MotionHandoffAnimation) {
- let n = xv(e);
+ if (Dte && window.MotionHandoffAnimation) {
+ let n = Cv(e);
if (n) {
- let e = window.MotionHandoffAnimation(n, t, fg);
+ let e = window.MotionHandoffAnimation(n, t, pg);
e !== null && (o.startTime = e, p = !0);
}
}
- yv(e, t);
+ xv(e, t);
let m = l ?? e.shouldReduceMotion;
- r.start(fv(t, r, i, m && _v.has(t) ? { type: !1 } : o, e, p));
+ r.start(mv(t, r, i, m && yv.has(t) ? { type: !1 } : o, e, p));
let h = r.animation;
h && d.push(h);
}
if (o) {
- let t = () => fg.update(() => {
- o && Dte(e, o);
+ let t = () => pg.update(() => {
+ o && Tte(e, o);
});
d.length ? Promise.all(d).then(t) : t();
}
return d;
}
// node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs
-function Cv(e, t, n = {}) {
- let r = hv(e, t, gv(e, n.type)), i = n.transitionOverride || (r?.transition ?? (e.getDefaultTransition() || {})), a = () => Promise.all(r ? Sv(e, r, n) : []), o = (r = 0) => {
+function Tv(e, t, n = {}) {
+ let r = _v(e, t, vv(e, n.type)), i = n.transitionOverride || (r?.transition ?? (e.getDefaultTransition() || {})), a = () => Promise.all(r ? wv(e, r, n) : []), o = (r = 0) => {
let { variantChildren: a } = e, { delayChildren: o = 0, staggerChildren: s, staggerDirection: c } = i, l = [];
return a?.forEach((e) => {
- e.notify("AnimationStart", t), l.push(Cv(e, t, {
+ e.notify("AnimationStart", t), l.push(Tv(e, t, {
...n,
- delay: r + (typeof o == "function" ? 0 : o) + av(a, e, o, s, c)
+ delay: r + (typeof o == "function" ? 0 : o) + sv(a, e, o, s, c)
}).then(() => e.notify("AnimationComplete", t)));
}), Promise.all(l);
}, { when: s } = i;
return s ? s === "beforeChildren" ? a().then(() => o()) : o().then(a) : Promise.all([a(), o(n.delay)]);
}
// node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs
-function jte(e, t, n = {}) {
- return e.notify("AnimationStart", t), (Array.isArray(t) ? Promise.all(t.map((t) => Cv(e, t, n))) : typeof t == "string" ? Cv(e, t, n) : Promise.all(Sv(e, hv(e, t, n.custom), n))).then(() => {
+function kte(e, t, n = {}) {
+ return e.notify("AnimationStart", t), (Array.isArray(t) ? Promise.all(t.map((t) => Tv(e, t, n))) : typeof t == "string" ? Tv(e, t, n) : Promise.all(wv(e, _v(e, t, n.custom), n))).then(() => {
e.notify("AnimationComplete", t);
});
}
// node_modules/motion-dom/dist/es/value/types/auto.mjs
-var Mte = {
+var Ate = {
test: (e) => e === "auto",
parse: (e) => e
-}, Nte = (e) => (t) => t.test(e), Pte = [
+}, jte = (e) => (t) => t.test(e), Mte = [
sh,
wh,
Ch,
Sh,
Eh,
Th,
- Mte
-], wv = (e) => Pte.find(Nte(e));
+ Ate
+], Ev = (e) => Mte.find(jte(e));
// node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs
-function Fte(e) {
+function Nte(e) {
return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || bm(e);
}
// node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs
-var Ite = /* @__PURE__ */ new Set([
+var Pte = /* @__PURE__ */ new Set([
"auto",
"none",
"0"
]);
-function Lte(e, t, n) {
+function Fte(e, t, n) {
let r = 0, i;
for (; r < e.length && !i;) {
let t = e[r];
- typeof t == "string" && !Ite.has(t) && Bh(t) && (i = e[r]), r++;
+ typeof t == "string" && !Pte.has(t) && Bh(t) && (i = e[r]), r++;
}
- if (i && n) for (let r of t) e[r] !== i && (e[r] = $g(n, i));
+ if (i && n) for (let r of t) e[r] !== i && (e[r] = t_(n, i));
}
// node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs
-var Tv = class extends C_ {
+var Dv = class extends T_ {
constructor() {
super(...arguments), this.isAsync = !0;
}
@@ -18101,31 +18101,31 @@ var Tv = class extends C_ {
for (let n = 0; n < e.length; n++) {
let r = e[n];
if (typeof r == "string" && (r = r.trim(), ih(r))) {
- let i = pv(r, t.current);
+ let i = hv(r, t.current);
i !== void 0 && (e[n] = i), n === e.length - 1 && (this.finalKeyframe = r);
}
}
- if (this.resolveNoneKeyframes(), !_v.has(n) || e.length !== 2) return;
+ if (this.resolveNoneKeyframes(), !yv.has(n) || e.length !== 2) return;
let [r, i] = e;
if (typeof r == "number" && typeof i == "number") return;
- let a = wv(r), o = wv(i);
- if (oh(r) !== oh(i) && g_[n]) this.needsMeasurement = !0;
+ let a = Ev(r), o = Ev(i);
+ if (oh(r) !== oh(i) && v_[n]) this.needsMeasurement = !0;
else if (a !== o) {
- if (f_(a) && f_(o)) for (let t = 0; t < e.length; t++) {
+ if (m_(a) && m_(o)) for (let t = 0; t < e.length; t++) {
let n = e[t];
typeof n == "string" && (e[t] = parseFloat(n));
}
- else g_[n] && (this.needsMeasurement = !0);
+ else v_[n] && (this.needsMeasurement = !0);
}
}
resolveNoneKeyframes() {
let { unresolvedKeyframes: e, name: t } = this, n = [];
- for (let t = 0; t < e.length; t++) (e[t] === null || Fte(e[t])) && n.push(t);
- n.length && Lte(e, n, t);
+ for (let t = 0; t < e.length; t++) (e[t] === null || Nte(e[t])) && n.push(t);
+ n.length && Fte(e, n, t);
}
measure() {
let { element: e, name: t } = this;
- return g_[t](window.getComputedStyle(e.current), () => e.measureViewportBox());
+ return v_[t](window.getComputedStyle(e.current), () => e.measureViewportBox());
}
measureInitialState() {
let { element: e, unresolvedKeyframes: t, name: n } = this;
@@ -18141,19 +18141,19 @@ var Tv = class extends C_ {
let n = t.length - 1, r = t[n];
t[n] = this.measure(), r !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = r), this.resolveNoneKeyframes();
}
-}, Ev = [
+}, Ov = [
"borderTopLeftRadius",
"borderTopRightRadius",
"borderBottomRightRadius",
"borderBottomLeftRadius"
-], Rte = /* @__PURE__ */ new Set([
+], Ite = /* @__PURE__ */ new Set([
"borderWidth",
"borderTopWidth",
"borderRightWidth",
"borderBottomWidth",
"borderLeftWidth",
"borderRadius",
- ...Ev,
+ ...Ov,
"width",
"maxWidth",
"height",
@@ -18196,21 +18196,21 @@ var Tv = class extends C_ {
"backgroundPositionY"
]);
// node_modules/motion-dom/dist/es/animation/keyframes/utils/apply-px-defaults.mjs
-function zte(e, t) {
- for (let n = 0; n < e.length; n++) typeof e[n] == "number" && Rte.has(t) && (e[n] = e[n] + "px");
+function Lte(e, t) {
+ for (let n = 0; n < e.length; n++) typeof e[n] == "number" && Ite.has(t) && (e[n] = e[n] + "px");
}
// node_modules/motion-dom/dist/es/animation/animate/effects.mjs
-var Dv = [];
-function Bte(e) {
- Ov(e), Dv.unshift(e);
+var kv = [];
+function Rte(e) {
+ Av(e), kv.unshift(e);
}
-function Ov(e) {
- hm(Dv, e);
+function Av(e) {
+ hm(kv, e);
}
-function Vte(e) {
- return Dv.find((t) => t.test(e));
+function zte(e) {
+ return kv.find((t) => t.test(e));
}
-function kv(e, t, n = {}, r) {
+function jv(e, t, n = {}, r) {
let i = [], { velocity: a, path: o } = n, s = n.reduceMotion ?? r?.shouldReduceMotion;
o?.animateValues && r && (t = { ...t }, o.animateValues(e, t, n, 0, i));
for (let o in t) {
@@ -18218,62 +18218,62 @@ function kv(e, t, n = {}, r) {
let c = t[o];
if (c === void 0) continue;
let l = e(o), u = l.get();
- u !== void 0 && !l.isAnimating() && !Array.isArray(c) && c === u && !a ? fg.update(() => l.set(c)) : (l.start(fv(o, l, c, s && _v.has(o) ? { type: !1 } : n, r)), l.animation && i.push(l.animation));
+ u !== void 0 && !l.isAnimating() && !Array.isArray(c) && c === u && !a ? pg.update(() => l.set(c)) : (l.start(mv(o, l, c, s && yv.has(o) ? { type: !1 } : n, r)), l.animation && i.push(l.animation));
}
let { transitionEnd: c } = t;
if (c) {
- let t = () => fg.update(() => {
+ let t = () => pg.update(() => {
for (let t in c) e(t).set(c[t]);
});
i.length ? Promise.all(i).then(t) : t();
}
return i;
}
-function Av(e, t, n, r, i) {
- return kv((r) => {
+function Mv(e, t, n, r, i) {
+ return jv((r) => {
let a = e.get(t, r);
if (!a) {
let o;
if (!i) {
let i = n[r];
- o = Hte(i) ?? e.read(t, r, i);
+ o = Bte(i) ?? e.read(t, r, i);
}
- a = lv(o, { owner: i }), e(t, { [r]: a });
+ a = dv(o, { owner: i }), e(t, { [r]: a });
}
return a;
}, n, r, i);
}
-function Hte(e) {
+function Bte(e) {
let t = Array.isArray(e) ? e[0] : void 0;
return t === null ? void 0 : t;
}
// node_modules/motion-dom/dist/es/utils/is-html-element.mjs
-function jv(e) {
+function Nv(e) {
return ym(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
}
// node_modules/motion-dom/dist/es/utils/is-svg-element.mjs
-function Mv(e) {
+function Pv(e) {
return ym(e) && "ownerSVGElement" in e;
}
// node_modules/motion-dom/dist/es/scope/active.mjs
-var Nv = {};
-function Pv(e) {
- return Nv.current?.add(e), e;
+var Fv = {};
+function Iv(e) {
+ return Fv.current?.add(e), e;
}
-var Fv = (e) => Nv.current ? Nv.current.bind(e) : e;
+var Lv = (e) => Fv.current ? Fv.current.bind(e) : e;
// node_modules/motion-dom/dist/es/utils/resolve-elements.mjs
-function Iv(e, t, n) {
+function Rv(e, t, n) {
if (e == null) return [];
if (e instanceof EventTarget) return [e];
if (typeof e == "string") {
- let r = t ? t.current : Nv.current?.root || document, i = n?.[e] ?? r.querySelectorAll(e);
+ let r = t ? t.current : Fv.current?.root || document, i = n?.[e] ?? r.querySelectorAll(e);
return i ? Array.from(i) : [];
}
return Array.from(e).filter((e) => e != null);
}
// node_modules/motion-dom/dist/es/effects/MotionValueState.mjs
-var Ute = class {
- constructor(e = fg.render) {
+var Vte = class {
+ constructor(e = pg.render) {
this.step = e, this.values = /* @__PURE__ */ new Map(), this.pending = [], this.numPending = 0, this.flush = () => {
let { pending: e, numPending: t } = this;
this.numPending = 0;
@@ -18316,10 +18316,10 @@ var Ute = class {
}
};
// node_modules/motion-dom/dist/es/effects/utils/create-effect.mjs
-function Lv(e, { step: t, ...n } = {}) {
+function zv(e, { step: t, ...n } = {}) {
let r = /* @__PURE__ */ new WeakMap();
return Object.assign((n, i) => {
- let a = r.get(n) ?? new Ute(t);
+ let a = r.get(n) ?? new Vte(t);
r.set(n, a);
let o = [];
for (let t in i) {
@@ -18336,83 +18336,83 @@ function Lv(e, { step: t, ...n } = {}) {
});
}
// node_modules/motion-dom/dist/es/effects/style/transform.mjs
-function Wte(e) {
+function Hte(e) {
let t = "", { transformKeys: n = [], transformValues: r = {} } = e;
for (let e = 0; e < n.length; e++) {
let i = n[e], a = r[i].getCurrent();
- a !== void 0 && (K_(i, a) || (t += (t && " ") + G_(i, a)));
+ a !== void 0 && (J_(i, a) || (t += (t && " ") + q_(i, a)));
}
let i = e.get("pathRotation")?.get();
- return i && (t += (t && " ") + G_("rotate", i)), t || "none";
+ return i && (t += (t && " ") + q_("rotate", i)), t || "none";
}
// node_modules/motion-dom/dist/es/effects/style/index.mjs
-var Rv = /* @__PURE__ */ new Set([
+var Bv = /* @__PURE__ */ new Set([
"originX",
"originY",
"originZ"
-]), zv = (e, t) => V_(e.get(t)?.get(), Zg[t]), Bv = (e, t, n, r) => {
+]), Vv = (e, t) => U_(e.get(t)?.get(), $g[t]), Hv = (e, t, n, r) => {
let i, a;
- if (d_.has(n)) {
+ if (p_.has(n)) {
if (n !== "pathRotation") {
let e = t.transformKeys ??= [];
- (t.transformValues ??= {})[n] = r, e.includes(n) || (e.push(n), e.sort((e, t) => u_.indexOf(e) - u_.indexOf(t)));
+ (t.transformValues ??= {})[n] = r, e.includes(n) || (e.push(n), e.sort((e, t) => f_.indexOf(e) - f_.indexOf(t)));
}
- t.get("transform") || (!jv(e) && !t.get("transformBox") && Bv(e, t, "transformBox", new cv("fill-box")), t.set("transform", new cv("none"), () => {
- q_.get(e)?.check(), e.style.transform = Wte(t);
+ t.get("transform") || (!Nv(e) && !t.get("transformBox") && Hv(e, t, "transformBox", new uv("fill-box")), t.set("transform", new uv("none"), () => {
+ Y_.get(e)?.check(), e.style.transform = Hte(t);
})), a = t.get("transform");
- } else Rv.has(n) ? (t.get("transformOrigin") || t.set("transformOrigin", new cv(""), () => {
- let n = zv(t, "originX") ?? "50%", r = zv(t, "originY") ?? "50%", i = zv(t, "originZ") ?? 0;
+ } else Bv.has(n) ? (t.get("transformOrigin") || t.set("transformOrigin", new uv(""), () => {
+ let n = Vv(t, "originX") ?? "50%", r = Vv(t, "originY") ?? "50%", i = Vv(t, "originZ") ?? 0;
e.style.transformOrigin = `${n} ${r} ${i}`;
- }), a = t.get("transformOrigin")) : i = w_(n) ? () => {
+ }), a = t.get("transformOrigin")) : i = E_(n) ? () => {
e.style.setProperty(n, r.getCurrent());
} : () => {
- e.style[n] = V_(r.getCurrent(), Zg[n]);
+ e.style[n] = U_(r.getCurrent(), $g[n]);
};
return t.set(n, r, i, a);
-}, Gte = (e) => jv(e) || Mv(e), Vv = (e, t) => {
- if (d_.has(t)) return l_(e, t);
- let n = getComputedStyle(e), r = w_(t) ? n.getPropertyValue(t) : n[t];
+}, Ute = (e) => Nv(e) || Pv(e), Uv = (e, t) => {
+ if (p_.has(t)) return d_(e, t);
+ let n = getComputedStyle(e), r = E_(t) ? n.getPropertyValue(t) : n[t];
return typeof r == "string" && r.trim() || 0;
-}, Kte = /*@__PURE__*/ Lv(Bv, {
- test: Gte,
- read: Vv
+}, Wte = /*@__PURE__*/ zv(Hv, {
+ test: Ute,
+ read: Uv
});
// node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.mjs
-function Hv(e) {
+function Wv(e) {
return e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
}
// node_modules/motion-dom/dist/es/render/html/utils/build-styles.mjs
-function Uv(e, t, n) {
+function Gv(e, t, n) {
let { style: r, vars: i, transformOrigin: a } = e, o = !1, s = !1;
for (let e in t) {
let n = t[e];
- if (d_.has(e)) o = !0;
+ if (p_.has(e)) o = !0;
else if (nh(e)) i[e] = n;
else {
- let t = V_(n, Zg[e]);
+ let t = U_(n, $g[e]);
e.startsWith("origin") ? (s = !0, a[e] = t) : r[e] = t;
}
}
- if (t.transform || (o || n ? r.transform = $ee(t, e.transform, n) : r.transform &&= "none"), s) {
+ if (t.transform || (o || n ? r.transform = Zee(t, e.transform, n) : r.transform &&= "none"), s) {
let { originX: e = "50%", originY: t = "50%", originZ: n = 0 } = a;
r.transformOrigin = `${e} ${t} ${n}`;
}
}
// node_modules/motion-dom/dist/es/render/svg/utils/path.mjs
-var qte = {
+var Gte = {
offset: "stroke-dashoffset",
array: "stroke-dasharray"
-}, Jte = {
+}, Kte = {
offset: "strokeDashoffset",
array: "strokeDasharray"
};
-function Yte(e, t, n = 1, r = 0, i = !0) {
+function qte(e, t, n = 1, r = 0, i = !0) {
e.pathLength = 1;
- let a = i ? qte : Jte;
+ let a = i ? Gte : Kte;
e[a.offset] = `${-r}`, e[a.array] = `${t} ${n}`;
}
// node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs
-var Wv = [
+var Kv = [
"transform",
"opacity",
"clipPath",
@@ -18422,55 +18422,55 @@ var Wv = [
"offsetRotate",
"offsetAnchor"
];
-function Gv(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
- if (Uv(e, s, l), c) {
+function qv(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
+ if (Gv(e, s, l), c) {
e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
return;
}
e.attrs = e.style, e.style = {};
let { attrs: d, style: f } = e;
- for (let e of Wv) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
- (f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete d.transformBox), t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && Yte(d, i, a, o, !1);
+ for (let e of Kv) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
+ (f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete d.transformBox), t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && qte(d, i, a, o, !1);
}
// node_modules/motion-dom/dist/es/effects/attr/index.mjs
-function Xte(e, t) {
+function Jte(e, t) {
if (!(t in e)) return !1;
let n = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e), t) || Object.getOwnPropertyDescriptor(e, t);
return n && typeof n.set == "function";
}
-var Kv = (e, t, n, r, i = n) => {
- let a = Xte(e, i);
- !a && (i.startsWith("data") || i.startsWith("aria")) && (i = Hv(i));
- let o = Zg[n] || Zg[i], s = a ? () => {
- e[i] = V_(r.get(), Zg[n]);
+var Jv = (e, t, n, r, i = n) => {
+ let a = Jte(e, i);
+ !a && (i.startsWith("data") || i.startsWith("aria")) && (i = Wv(i));
+ let o = $g[n] || $g[i], s = a ? () => {
+ e[i] = U_(r.get(), $g[n]);
} : () => {
- let t = V_(r.get(), o);
+ let t = U_(r.get(), o);
t == null ? e.removeAttribute(i) : e.setAttribute(i, String(t));
};
return t.set(n, r, s);
};
// node_modules/motion-dom/dist/es/effects/svg/index.mjs
-function Zte(e, t, n, r) {
- return fg.render(() => e.setAttribute("pathLength", "1")), n === "pathOffset" ? t.set(n, r, () => {
+function Yte(e, t, n, r) {
+ return pg.render(() => e.setAttribute("pathLength", "1")), n === "pathOffset" ? t.set(n, r, () => {
let t = r.get();
e.setAttribute("stroke-dashoffset", `${-t}`);
- }) : (t.get("stroke-dasharray") || t.set("stroke-dasharray", new cv("1 1"), () => {
+ }) : (t.get("stroke-dasharray") || t.set("stroke-dasharray", new uv("1 1"), () => {
let n = t.get("pathLength")?.get() ?? 1, r = t.get("pathSpacing")?.get();
e.setAttribute("stroke-dasharray", `${n} ${r ?? 1 - Number(n)}`);
}), t.set(n, r, void 0, t.get("stroke-dasharray")));
}
-var Qte = /*@__PURE__*/ Lv((e, t, n, r) => n.startsWith("path") && !d_.has(n) ? Zte(e, t, n, r) : n.startsWith("attr") ? Kv(e, t, n, r, qv(n)) : n === "d" ? t.set(n, r, () => {
+var Xte = /*@__PURE__*/ zv((e, t, n, r) => n.startsWith("path") && !p_.has(n) ? Yte(e, t, n, r) : n.startsWith("attr") ? Jv(e, t, n, r, Yv(n)) : n === "d" ? t.set(n, r, () => {
let t = r.get()?.replace(/path\(|["')]/g, "");
t === void 0 ? e.removeAttribute(n) : e.setAttribute(n, t);
-}) : (d_.has(n) || Rv.has(n) || w_(n) || n in e.style ? Bv : Kv)(e, t, n, r), {
- test: Mv,
- read: (e, t) => d_.has(t) ? Zg[t]?.default || 0 : w_(t) || Wv.includes(t) ? Vv(e, t) || e.getAttribute(Hv(t)) || 0 : (t = qv(t), e.getAttribute(Hv(t)) ?? e.getAttribute(t) ?? void 0)
+}) : (p_.has(n) || Bv.has(n) || E_(n) || n in e.style ? Hv : Jv)(e, t, n, r), {
+ test: Pv,
+ read: (e, t) => p_.has(t) ? $g[t]?.default || 0 : E_(t) || Kv.includes(t) ? Uv(e, t) || e.getAttribute(Wv(t)) || 0 : (t = Yv(t), e.getAttribute(Wv(t)) ?? e.getAttribute(t) ?? void 0)
});
-function qv(e) {
+function Yv(e) {
return e.replace(/^attr([A-Z])/, (e, t) => t.toLowerCase());
}
// node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs
-function Jv({ top: e, left: t, right: n, bottom: r }) {
+function Xv({ top: e, left: t, right: n, bottom: r }) {
return {
x: {
min: t,
@@ -18482,7 +18482,7 @@ function Jv({ top: e, left: t, right: n, bottom: r }) {
}
};
}
-function $te({ x: e, y: t }) {
+function Zte({ x: e, y: t }) {
return {
top: t.min,
right: e.max,
@@ -18490,7 +18490,7 @@ function $te({ x: e, y: t }) {
left: e.min
};
}
-function ene(e, t) {
+function Qte(e, t) {
if (!t) return e;
let n = t({
x: e.left,
@@ -18507,13 +18507,13 @@ function ene(e, t) {
};
}
// node_modules/motion-dom/dist/es/projection/utils/has-transform.mjs
-function Yv(e) {
+function Zv(e) {
return e === void 0 || e === 1;
}
-function Xv({ scale: e, scaleX: t, scaleY: n }) {
- return !Yv(e) || !Yv(t) || !Yv(n);
+function Qv({ scale: e, scaleX: t, scaleY: n }) {
+ return !Zv(e) || !Zv(t) || !Zv(n);
}
-var Zv = [
+var $v = [
"rotate",
"rotateX",
"rotateY",
@@ -18521,67 +18521,67 @@ var Zv = [
"skewX",
"skewY"
];
-function Qv(e) {
- return Xv(e) || ey(e) || $v(e);
+function ey(e) {
+ return Qv(e) || ny(e) || ty(e);
}
-function $v(e) {
+function ty(e) {
return e.z || e.rotate || e.rotateX || e.rotateY || e.rotateZ || e.skewX || e.skewY;
}
-function ey(e) {
- return ty(e.x) || ty(e.y);
+function ny(e) {
+ return ry(e.x) || ry(e.y);
}
-function ty(e) {
+function ry(e) {
return e && e !== "0%";
}
// node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs
-function ny(e, t, n) {
+function iy(e, t, n) {
return n + t * (e - n);
}
-function ry(e, t, n, r, i) {
- return i !== void 0 && (e = ny(e, i, r)), ny(e, n, r) + t;
+function ay(e, t, n, r, i) {
+ return i !== void 0 && (e = iy(e, i, r)), iy(e, n, r) + t;
}
-function iy(e, t = 0, n = 1, r, i) {
- e.min = ry(e.min, t, n, r, i), e.max = ry(e.max, t, n, r, i);
+function oy(e, t = 0, n = 1, r, i) {
+ e.min = ay(e.min, t, n, r, i), e.max = ay(e.max, t, n, r, i);
}
-function ay(e, { x: t, y: n }) {
- iy(e.x, t.translate, t.scale, t.originPoint), iy(e.y, n.translate, n.scale, n.originPoint);
+function sy(e, { x: t, y: n }) {
+ oy(e.x, t.translate, t.scale, t.originPoint), oy(e.y, n.translate, n.scale, n.originPoint);
}
-var oy = .999999999999, sy = 1.0000000000001;
-function tne(e, t, n, r = !1) {
+var cy = .999999999999, ly = 1.0000000000001;
+function $te(e, t, n, r = !1) {
let i = n.length;
if (!i) return;
t.x = t.y = 1;
let a, o;
- for (let s = 0; s < i; s++) a = n[s], o = a.projectionDelta, a.options.visualElement?.props.style?.display !== "contents" && (r === !0 && a.options.layoutScroll && a.scroll && a !== a.root && (cy(e.x, -a.scroll.offset.x), cy(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, ay(e, o)), r && (r.path?.[s] || r) !== a && Qv(a.latestValues) && dy(e, a.latestValues, a.layout?.layoutBox));
- t.x < sy && t.x > oy && (t.x = 1), t.y < sy && t.y > oy && (t.y = 1);
+ for (let s = 0; s < i; s++) a = n[s], o = a.projectionDelta, a.options.visualElement?.props.style?.display !== "contents" && (r === !0 && a.options.layoutScroll && a.scroll && a !== a.root && (uy(e.x, -a.scroll.offset.x), uy(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, sy(e, o)), r && (r.path?.[s] || r) !== a && ey(a.latestValues) && py(e, a.latestValues, a.layout?.layoutBox));
+ t.x < ly && t.x > cy && (t.x = 1), t.y < ly && t.y > cy && (t.y = 1);
}
-function cy(e, t) {
+function uy(e, t) {
e.min += t, e.max += t;
}
-function ly(e, t, n, r, i = .5) {
- iy(e, t, n, Qh(e.min, e.max, i), r);
+function dy(e, t, n, r, i = .5) {
+ oy(e, t, n, Qh(e.min, e.max, i), r);
}
-function uy(e, t) {
+function fy(e, t) {
return typeof e == "string" ? parseFloat(e) / 100 * (t.max - t.min) : e;
}
-function dy(e, t, n) {
+function py(e, t, n) {
let r = n ?? e;
- ly(e.x, uy(t.x, r.x), t.scaleX, t.scale, t.originX), ly(e.y, uy(t.y, r.y), t.scaleY, t.scale, t.originY);
+ dy(e.x, fy(t.x, r.x), t.scaleX, t.scale, t.originX), dy(e.y, fy(t.y, r.y), t.scaleY, t.scale, t.originY);
}
// node_modules/motion-dom/dist/es/projection/utils/measure.mjs
-function fy(e, t) {
- return Jv(ene(e.getBoundingClientRect(), t));
+function my(e, t) {
+ return Xv(Qte(e.getBoundingClientRect(), t));
}
-function nne(e, t, n) {
- let r = fy(e, n), { scroll: i } = t;
- return i && (cy(r.x, i.offset.x), cy(r.y, i.offset.y)), r;
+function ene(e, t, n) {
+ let r = my(e, n), { scroll: i } = t;
+ return i && (uy(r.x, i.offset.x), uy(r.y, i.offset.y)), r;
}
-var rne = () => ({
+var tne = () => ({
x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
y: document.documentElement.scrollTop || document.body?.scrollTop || 0
-}), ine = {}, ane = (e) => Mv(e) ? Qte : Kte, one = class {
+}), nne = {}, rne = (e) => Pv(e) ? Xte : Wte, ine = class {
constructor(e, t) {
- this.effect = e, this.current = t, this.KeyframeResolver = Tv;
+ this.effect = e, this.current = t, this.KeyframeResolver = Dv;
}
getValue(e) {
return this.effect.get(this.current, e);
@@ -18593,19 +18593,19 @@ var rne = () => ({
this.effect.flush(this.current);
}
measureViewportBox() {
- return fy(this.current);
+ return my(this.current);
}
getProps() {
- return ine;
+ return nne;
}
};
-function sne(e, t, n, r) {
- if (Nv.current?.track(e), r) return kv((e) => r.getValue(e, null), t, n, r);
- let i = ane(e);
- return Av(i, e, t, n, new one(i, e));
+function ane(e, t, n, r) {
+ if (Fv.current?.track(e), r) return jv((e) => r.getValue(e, null), t, n, r);
+ let i = rne(e);
+ return Mv(i, e, t, n, new ine(i, e));
}
// node_modules/motion-dom/dist/es/effects/prop/index.mjs
-var cne = /*@__PURE__*/ Lv((e, t, n, r) => t.set(n, r, () => {
+var one = /*@__PURE__*/ zv((e, t, n, r) => t.set(n, r, () => {
e[n] = r.get();
}), {
test: (e) => ym(e),
@@ -18613,172 +18613,172 @@ var cne = /*@__PURE__*/ Lv((e, t, n, r) => t.set(n, r, () => {
let n = e[t];
return typeof n == "string" || typeof n == "number" ? n : void 0;
}
-}), { schedule: py, cancel: lne } = /* @__PURE__ */ dg(queueMicrotask, !1);
+}), { schedule: hy, cancel: sne } = /* @__PURE__ */ fg(queueMicrotask, !1);
// node_modules/motion-dom/dist/es/animation/animate/single-value.mjs
-function my(e, t, n) {
- let r = vv(e) ? e : lv(e);
- return r.start(fv("", r, t, n)), r.animation;
+function gy(e, t, n) {
+ let r = bv(e) ? e : dv(e);
+ return r.start(mv("", r, t, n)), r.animation;
}
// node_modules/motion-dom/dist/es/projection/styles/scale-correction.mjs
-var hy = {}, gy = {
+var _y = {}, vy = {
value: null,
addProjectionMetrics: null,
countProjection: void 0
};
// node_modules/motion-dom/dist/es/utils/delay.mjs
-function une(e, t) {
+function cne(e, t) {
let n = $m.now();
- e = Fv(e);
+ e = Lv(e);
let r = ({ timestamp: i }) => {
let a = i - n;
- a >= t && (pg(r), e(a - t));
+ a >= t && (mg(r), e(a - t));
};
- return fg.setup(r, !0), Pv(() => pg(r));
+ return pg.setup(r, !0), Iv(() => mg(r));
}
// node_modules/motion-dom/dist/es/utils/is-ref-object.mjs
-function dne(e) {
+function lne(e) {
return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
}
// node_modules/motion-dom/dist/es/utils/is-svg-svg-element.mjs
-function fne(e) {
- return Mv(e) && e.tagName === "svg";
+function une(e) {
+ return Pv(e) && e.tagName === "svg";
}
// node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs
-function _y(e) {
- return vv(e) ? e.get() : e;
+function yy(e) {
+ return bv(e) ? e.get() : e;
}
// node_modules/motion-dom/dist/es/value/utils/as-number.mjs
-var vy = (e) => typeof e == "number" ? e : parseFloat(e), pne = Ev.length, yy = (e) => typeof e == "number" || wh.test(e);
-function mne(e, t, n, r, i, a) {
- i ? (e.opacity = Qh(0, n.opacity ?? 1, hne(r)), e.opacityExit = Qh(t.opacity ?? 1, 0, gne(r))) : a && (e.opacity = Qh(t.opacity ?? 1, n.opacity ?? 1, r));
- for (let i = 0; i < pne; i++) {
- let a = Ev[i], o = by(t, a), s = by(n, a);
- (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || yy(o) === yy(s) ? (e[a] = Math.max(Qh(vy(o), vy(s), r), 0), (Ch.test(s) || Ch.test(o)) && (e[a] += "%")) : e[a] = s);
- }
- for (let i = 0; i < Zv.length; i++) {
- let a = Zv[i];
+var by = (e) => typeof e == "number" ? e : parseFloat(e), dne = Ov.length, xy = (e) => typeof e == "number" || wh.test(e);
+function fne(e, t, n, r, i, a) {
+ i ? (e.opacity = Qh(0, n.opacity ?? 1, pne(r)), e.opacityExit = Qh(t.opacity ?? 1, 0, mne(r))) : a && (e.opacity = Qh(t.opacity ?? 1, n.opacity ?? 1, r));
+ for (let i = 0; i < dne; i++) {
+ let a = Ov[i], o = Sy(t, a), s = Sy(n, a);
+ (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || xy(o) === xy(s) ? (e[a] = Math.max(Qh(by(o), by(s), r), 0), (Ch.test(s) || Ch.test(o)) && (e[a] += "%")) : e[a] = s);
+ }
+ for (let i = 0; i < $v.length; i++) {
+ let a = $v[i];
(t[a] || n[a]) && (e[a] = Qh(t[a] || 0, n[a] || 0, r));
}
}
-function by(e, t) {
+function Sy(e, t) {
return e[t] === void 0 ? e.borderRadius : e[t];
}
-var hne = /*@__PURE__*/ xy(0, .5, zm), gne = /*@__PURE__*/ xy(.5, .95, Sm);
-function xy(e, t, n) {
+var pne = /*@__PURE__*/ Cy(0, .5, zm), mne = /*@__PURE__*/ Cy(.5, .95, Sm);
+function Cy(e, t, n) {
return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ wm(e, t, r));
}
// node_modules/motion-dom/dist/es/projection/geometry/copy.mjs
-function Sy(e, t) {
+function wy(e, t) {
e.min = t.min, e.max = t.max;
}
-function Cy(e, t) {
- Sy(e.x, t.x), Sy(e.y, t.y);
+function Ty(e, t) {
+ wy(e.x, t.x), wy(e.y, t.y);
}
-function wy(e, t) {
+function Ey(e, t) {
e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;
}
// node_modules/motion-dom/dist/es/projection/geometry/delta-calc.mjs
-var _ne = .9999, vne = 1.0001, yne = -.01, bne = .01;
-function Ty(e) {
+var hne = .9999, gne = 1.0001, _ne = -.01, vne = .01;
+function Dy(e) {
return e.max - e.min;
}
-function xne(e, t, n) {
+function yne(e, t, n) {
return Math.abs(e - t) <= n;
}
-function Ey(e, t, n, r = .5) {
- e.origin = r, e.originPoint = Qh(t.min, t.max, e.origin), e.scale = Ty(n) / Ty(t), e.translate = Qh(n.min, n.max, e.origin) - e.originPoint, (e.scale >= _ne && e.scale <= vne || isNaN(e.scale)) && (e.scale = 1), (e.translate >= yne && e.translate <= bne || isNaN(e.translate)) && (e.translate = 0);
+function Oy(e, t, n, r = .5) {
+ e.origin = r, e.originPoint = Qh(t.min, t.max, e.origin), e.scale = Dy(n) / Dy(t), e.translate = Qh(n.min, n.max, e.origin) - e.originPoint, (e.scale >= hne && e.scale <= gne || isNaN(e.scale)) && (e.scale = 1), (e.translate >= _ne && e.translate <= vne || isNaN(e.translate)) && (e.translate = 0);
}
-function Dy(e, t, n, r) {
- Ey(e.x, t.x, n.x, r?.originX), Ey(e.y, t.y, n.y, r?.originY);
+function ky(e, t, n, r) {
+ Oy(e.x, t.x, n.x, r?.originX), Oy(e.y, t.y, n.y, r?.originY);
}
-function Oy(e, t, n, r = 0) {
- e.min = (r ? Qh(n.min, n.max, r) : n.min) + t.min, e.max = e.min + Ty(t);
+function Ay(e, t, n, r = 0) {
+ e.min = (r ? Qh(n.min, n.max, r) : n.min) + t.min, e.max = e.min + Dy(t);
}
-function Sne(e, t, n, r) {
- Oy(e.x, t.x, n.x, r?.x), Oy(e.y, t.y, n.y, r?.y);
+function bne(e, t, n, r) {
+ Ay(e.x, t.x, n.x, r?.x), Ay(e.y, t.y, n.y, r?.y);
}
-function ky(e, t, n, r = 0) {
+function jy(e, t, n, r = 0) {
let i = r ? Qh(n.min, n.max, r) : n.min;
- e.min = t.min - i, e.max = e.min + Ty(t);
+ e.min = t.min - i, e.max = e.min + Dy(t);
}
-function Ay(e, t, n, r) {
- ky(e.x, t.x, n.x, r?.x), ky(e.y, t.y, n.y, r?.y);
+function My(e, t, n, r) {
+ jy(e.x, t.x, n.x, r?.x), jy(e.y, t.y, n.y, r?.y);
}
// node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs
-function jy(e, t, n, r, i) {
- return e -= t, e = ny(e, 1 / n, r), i !== void 0 && (e = ny(e, 1 / i, r)), e;
+function Ny(e, t, n, r, i) {
+ return e -= t, e = iy(e, 1 / n, r), i !== void 0 && (e = iy(e, 1 / i, r)), e;
}
-function Cne(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
+function Py(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
if (Ch.test(t) && (t = parseFloat(t), t = Qh(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
let s = Qh(a.min, a.max, r);
- e === a && (s -= t), e.min = jy(e.min, t, n, s, i), e.max = jy(e.max, t, n, s, i);
+ e === a && (s -= t), e.min = Ny(e.min, t, n, s, i), e.max = Ny(e.max, t, n, s, i);
}
-function My(e, t, [n, r, i], a, o) {
- Cne(e, t[n], t[r], t[i], t.scale, a, o);
+function Fy(e, t, [n, r, i], a, o) {
+ Py(e, t[n], t[r], t[i], t.scale, a, o);
}
-var wne = [
+var xne = [
"x",
"scaleX",
"originX"
-], Tne = [
+], Sne = [
"y",
"scaleY",
"originY"
];
-function Ny(e, t, n, r) {
- My(e.x, t, wne, n?.x, r?.x), My(e.y, t, Tne, n?.y, r?.y);
+function Iy(e, t, n, r) {
+ Fy(e.x, t, xne, n?.x, r?.x), Fy(e.y, t, Sne, n?.y, r?.y);
}
// node_modules/motion-dom/dist/es/projection/geometry/round.mjs
-var Py = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), Fy = Py("applewebkit/") && !Py("chrome/") ? Math.round : Sm;
-function Iy(e) {
- e.min = Fy(e.min), e.max = Fy(e.max);
+var Ly = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), Ry = Ly("applewebkit/") && !Ly("chrome/") ? Math.round : Sm;
+function zy(e) {
+ e.min = Ry(e.min), e.max = Ry(e.max);
}
-function Ene(e) {
- Iy(e.x), Iy(e.y);
+function Cne(e) {
+ zy(e.x), zy(e.y);
}
// node_modules/motion-dom/dist/es/projection/geometry/models.mjs
-var Ly = () => ({
+var By = () => ({
translate: 0,
scale: 1,
origin: 0,
originPoint: 0
-}), Ry = () => ({
- x: Ly(),
- y: Ly()
-}), zy = () => ({
+}), Vy = () => ({
+ x: By(),
+ y: By()
+}), Hy = () => ({
min: 0,
max: 0
-}), By = () => ({
- x: zy(),
- y: zy()
+}), Uy = () => ({
+ x: Hy(),
+ y: Hy()
});
// node_modules/motion-dom/dist/es/projection/geometry/utils.mjs
-function Vy(e) {
+function Wy(e) {
return e.translate === 0 && e.scale === 1;
}
-function Hy(e) {
- return Vy(e.x) && Vy(e.y);
+function Gy(e) {
+ return Wy(e.x) && Wy(e.y);
}
-function Uy(e, t) {
+function Ky(e, t) {
return e.min === t.min && e.max === t.max;
}
-function Dne(e, t) {
- return Uy(e.x, t.x) && Uy(e.y, t.y);
+function wne(e, t) {
+ return Ky(e.x, t.x) && Ky(e.y, t.y);
}
-function Wy(e, t) {
+function qy(e, t) {
return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max);
}
-function Gy(e, t) {
- return Wy(e.x, t.x) && Wy(e.y, t.y);
+function Jy(e, t) {
+ return qy(e.x, t.x) && qy(e.y, t.y);
}
-function Ky(e) {
- return Ty(e.x) / Ty(e.y);
+function Yy(e) {
+ return Dy(e.x) / Dy(e.y);
}
-function qy(e, t) {
+function Xy(e, t) {
return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
}
// node_modules/motion-dom/dist/es/projection/shared/stack.mjs
-var One = class {
+var Tne = class {
constructor() {
this.members = [];
}
@@ -18826,22 +18826,22 @@ var One = class {
}
};
// node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.mjs
-function Jy(e, t) {
+function Zy(e, t) {
return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
}
-var Yy = { correct: (e, t) => {
+var Qy = { correct: (e, t) => {
if (!t.target) return e;
if (typeof e == "string") {
if (wh.test(e)) e = parseFloat(e);
else return e;
}
- return `${Jy(e, t.target.x)}% ${Jy(e, t.target.y)}%`;
-} }, kne = {
- borderRadius: /* @__PURE__ */ Object.assign({}, Yy, { applyTo: /* @__PURE__ */ Ev.slice() }),
- borderTopLeftRadius: Yy,
- borderTopRightRadius: Yy,
- borderBottomLeftRadius: Yy,
- borderBottomRightRadius: Yy,
+ return `${Zy(e, t.target.x)}% ${Zy(e, t.target.y)}%`;
+} }, Ene = {
+ borderRadius: /* @__PURE__ */ Object.assign({}, Qy, { applyTo: /* @__PURE__ */ Ov.slice() }),
+ borderTopLeftRadius: Qy,
+ borderTopRightRadius: Qy,
+ borderBottomLeftRadius: Qy,
+ borderBottomRightRadius: Qy,
boxShadow: { correct: (e, { treeScale: t, projectionDelta: n }) => {
let r = e, i = Jh.parse(e);
if (i.length > 5) return r;
@@ -18852,13 +18852,13 @@ var Yy = { correct: (e, t) => {
} }
};
// node_modules/motion-dom/dist/es/projection/styles/transform.mjs
-function Ane(e, t, n) {
+function Dne(e, t, n) {
let r = "", i = e.x.translate / t.x, a = e.y.translate / t.y, o = n?.z || 0;
if ((i || a || o) && (r = `translate3d(${i}px, ${a}px, ${o}px) `), (t.x !== 1 || t.y !== 1) && (r += `scale(${1 / t.x}, ${1 / t.y}) `), n) {
let { transformPerspective: e } = n;
e && (r = `perspective(${e}px) ${r}`);
- for (let e = 0; e < Zv.length; e++) {
- let t = Zv[e], i = n[t];
+ for (let e = 0; e < $v.length; e++) {
+ let t = $v[e], i = n[t];
i && (r += `${t}(${i}deg) `), !e && n.pathRotation && (r += `rotate(${n.pathRotation}deg) `);
}
}
@@ -18866,11 +18866,11 @@ function Ane(e, t, n) {
return (s !== 1 || c !== 1) && (r += `scale(${s}, ${c})`), r || "none";
}
// node_modules/motion-dom/dist/es/projection/utils/each-axis.mjs
-function Xy(e) {
+function $y(e) {
return [e("x"), e("y")];
}
// node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.mjs
-var jne = (e, t) => e.depth - t.depth, Mne = class {
+var One = (e, t) => e.depth - t.depth, kne = class {
constructor() {
this.children = [], this.isDirty = !1;
}
@@ -18881,47 +18881,47 @@ var jne = (e, t) => e.depth - t.depth, Mne = class {
hm(this.children, e), this.isDirty = !0;
}
forEach(e) {
- this.isDirty && this.children.sort(jne), this.isDirty = !1, this.children.forEach(e);
+ this.isDirty && this.children.sort(One), this.isDirty = !1, this.children.forEach(e);
}
-}, Zy = {
+}, eb = {
hasAnimatedSinceResize: !0,
hasEverUpdated: !1
-}, Qy = [
+}, tb = [
"z",
"skew",
"skewZ"
-], Nne = 1e3, Pne = 0;
-function $y(e, t, n, r) {
+], Ane = 1e3, jne = 0;
+function nb(e, t, n, r) {
let { latestValues: i } = t;
i[e] && (n[e] = i[e], t.setStaticValue(e, 0), r && (r[e] = 0));
}
-var eb = (e) => e.instance && q_.get(e.instance)?.demote() && e.resetSkewAndRotation();
-function tb(e) {
+var rb = (e) => e.instance && Y_.get(e.instance)?.demote() && e.resetSkewAndRotation();
+function ib(e) {
if (e.hasCheckedOptimisedAppear = !0, e.root === e) return;
let { visualElement: t } = e.options;
if (!t) return;
- let n = xv(t);
+ let n = Cv(t);
if (window.MotionHasOptimisedAnimation(n, "transform")) {
let { layout: t, layoutId: r } = e.options;
- window.MotionCancelOptimisedAnimation(n, "transform", fg, !(t || r));
+ window.MotionCancelOptimisedAnimation(n, "transform", pg, !(t || r));
}
let { parent: r } = e;
- r && !r.hasCheckedOptimisedAppear && tb(r);
+ r && !r.hasCheckedOptimisedAppear && ib(r);
}
-function nb(e) {
- if (e) return e.options.allowProjection === !1 ? nb(e.parent) : e.projection;
+function ab(e) {
+ if (e) return e.options.allowProjection === !1 ? ab(e.parent) : e.projection;
}
-function rb({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
- return Object.assign(hy, {
- ...kne,
- ...hy
+function ob({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
+ return Object.assign(_y, {
+ ...Ene,
+ ..._y
}), class {
static create(e, t, n) {
- let { layoutId: r, layout: i, drag: a, dragConstraints: o, layoutScroll: s, layoutRoot: c, layoutAnchor: l, layoutCrossfade: u } = t, d = e.projection = new this(e.latestValues, t["data-framer-portal-id"] ? void 0 : nb(e.parent));
+ let { layoutId: r, layout: i, drag: a, dragConstraints: o, layoutScroll: s, layoutRoot: c, layoutAnchor: l, layoutCrossfade: u } = t, d = e.projection = new this(e.latestValues, t["data-framer-portal-id"] ? void 0 : ab(e.parent));
d.setOptions({
layoutId: r,
layout: i,
- alwaysMeasureLayout: !!a || o && dne(o),
+ alwaysMeasureLayout: !!a || o && lne(o),
visualElement: e,
animationType: typeof i == "string" ? i : "both",
initialPromotionConfig: n,
@@ -18934,16 +18934,16 @@ function rb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
f && !d.root.isUpdateBlocked() && (f.willUpdate(), f.scheduleCheckAfterUnmount());
}
constructor(e = {}, n = t?.()) {
- this.id = Pne++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {
+ this.id = jne++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {
x: 1,
y: 1
}, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
}, this.updateProjection = () => {
- this.projectionUpdateScheduled = !1, this.nodes.forEach(ib), this.nodes.forEach(Une), this.nodes.forEach(Wne), this.nodes.forEach(ab), gy.countProjection?.();
+ this.projectionUpdateScheduled = !1, this.nodes.forEach(Pne), this.nodes.forEach(Hne), this.nodes.forEach(Une), this.nodes.forEach(Fne), vy.countProjection?.();
}, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = e, this.root = n ? n.root || n : this, this.path = n ? [...n.path, n] : [], this.parent = n, this.depth = n ? n.depth + 1 : 0;
for (let e = 0; e < this.path.length; e++) this.path[e].shouldResetTransform = !0;
- this.root === this && (this.nodes = new Mne());
+ this.root === this && (this.nodes = new kne());
}
addEventListener(e, t) {
return this.eventHandlers.has(e) || this.eventHandlers.set(e, new Tm()), this.eventHandlers.get(e).add(t);
@@ -18956,15 +18956,15 @@ function rb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
mount(t) {
if (this.instance) return;
- this.isSVG = Mv(t) && !fne(t), this.instance = t;
+ this.isSVG = Pv(t) && !une(t), this.instance = t;
let { layoutId: n, layout: r, visualElement: i } = this.options;
if (i && !i.current && i.mount(t), this.root.nodes.add(this), this.parent?.children.add(this), this.root.hasTreeAnimated && (r || n) && (this.isLayoutDirty = !0), e) {
let n, r = 0, i = () => this.root.updateBlockedByResize = !1;
- fg.read(() => {
+ pg.read(() => {
r = window.innerWidth;
}), e(t, () => {
let e = window.innerWidth;
- e !== r && (r = e, this.root.updateBlockedByResize = !0, n?.(), n = une(i, 250), Zy.hasAnimatedSinceResize && (Zy.hasAnimatedSinceResize = !1, this.nodes.forEach(cb)));
+ e !== r && (r = e, this.root.updateBlockedByResize = !0, n?.(), n = cne(i, 250), eb.hasAnimatedSinceResize && (eb.hasAnimatedSinceResize = !1, this.nodes.forEach(lb)));
});
}
n && this.root.registerSharedNode(n, this), this.addLayoutListener();
@@ -18976,21 +18976,21 @@ function rb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.target = void 0, this.relativeTarget = void 0;
return;
}
- let a = this.options.transition || n.getDefaultTransition() || Jne, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = n.getProps(), c = !this.targetLayout || !Gy(this.targetLayout, i), l = !t && r;
+ let a = this.options.transition || n.getDefaultTransition() || qne, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = n.getProps(), c = !this.targetLayout || !Jy(this.targetLayout, i), l = !t && r;
if (this.options.layoutRoot || this.resumeFrom || l || t && (c || !this.currentAnimation)) {
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
let t = {
- ...dv(a, "layout"),
+ ...pv(a, "layout"),
onPlay: o,
onComplete: s
};
(n.shouldReduceMotion || this.options.layoutRoot) && (t.delay = 0, t.type = !1), this.startAnimation(t), this.setAnimationOrigin(e, l, t.path);
- } else t || cb(this), this.isLead() && this.options.onExitComplete?.();
+ } else t || lb(this), this.isLead() && this.options.onExitComplete?.();
this.targetLayout = i;
}));
}
unmount() {
- this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this), this.getStack()?.remove(this), this.parent?.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), this.hasLayoutListener = !1, pg(this.updateProjection);
+ this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this), this.getStack()?.remove(this), this.parent?.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), this.hasLayoutListener = !1, mg(this.updateProjection);
}
blockUpdate() {
this.updateManuallyBlocked = !0;
@@ -19002,7 +19002,7 @@ function rb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
return this.updateManuallyBlocked || this.updateBlockedByResize;
}
startUpdate() {
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes?.forEach(Gne), this.animationId++);
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes?.forEach(Wne), this.animationId++);
}
getTransformTemplate() {
let { visualElement: e } = this.options;
@@ -19013,11 +19013,11 @@ function rb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.options.onExitComplete?.();
return;
}
- if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && tb(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
- eb(this), this.isLayoutDirty = !0;
+ if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && ib(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
+ rb(this), this.isLayoutDirty = !0;
for (let e = 0; e < this.path.length; e++) {
let t = this.path[e];
- t.shouldResetTransform = !0, eb(t), (typeof t.latestValues.x == "string" || typeof t.latestValues.y == "string") && (t.isLayoutDirty = !0), t.updateScroll("snapshot"), t.options.layoutRoot && t.willUpdate(!1), t.isAnimationBlocked && (t.dragSnapshot ||= t.measure(), this.dragAncestor = t);
+ t.shouldResetTransform = !0, rb(t), (typeof t.latestValues.x == "string" || typeof t.latestValues.y == "string") && (t.isLayoutDirty = !0), t.updateScroll("snapshot"), t.options.layoutRoot && t.willUpdate(!1), t.isAnimationBlocked && (t.dragSnapshot ||= t.measure(), this.dragAncestor = t);
}
let { layoutId: t, layout: n } = this.options;
if (t === void 0 && !n) return;
@@ -19027,39 +19027,39 @@ function rb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
update() {
if (this.updateScheduled = !1, this.isUpdateBlocked()) {
let e = this.updateBlockedByResize;
- this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(Rne), this.nodes.forEach(ob);
+ this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(Lne), this.nodes.forEach(sb);
return;
}
if (this.animationId <= this.animationCommitId) {
- this.nodes.forEach(sb);
+ this.nodes.forEach(cb);
return;
}
- this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Bne), this.nodes.forEach(Vne), this.nodes.forEach(Hne), this.nodes.forEach(Fne), this.nodes.forEach(Ine)) : this.nodes.forEach(sb), this.clearAllSnapshots();
+ this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(zne), this.nodes.forEach(Bne), this.nodes.forEach(Vne), this.nodes.forEach(Mne), this.nodes.forEach(Nne)) : this.nodes.forEach(cb), this.clearAllSnapshots();
let e = $m.now();
- Xm.delta = gm(0, 1e3 / 60, e - Xm.timestamp), Xm.timestamp = e, Xm.isProcessing = !0, mg.update.process(Xm), mg.preRender.process(Xm), mg.render.process(Xm), Xm.isProcessing = !1;
+ Xm.delta = gm(0, 1e3 / 60, e - Xm.timestamp), Xm.timestamp = e, Xm.isProcessing = !0, hg.update.process(Xm), hg.preRender.process(Xm), hg.render.process(Xm), Xm.isProcessing = !1;
}
didUpdate() {
- this.updateScheduled || (this.updateScheduled = !0, py.read(this.scheduleUpdate));
+ this.updateScheduled || (this.updateScheduled = !0, hy.read(this.scheduleUpdate));
}
clearAllSnapshots() {
- this.nodes.forEach(Lne), this.sharedNodes.forEach((e, t) => e.members.length ? e.removeLeadSnapshot() : this.sharedNodes.delete(t));
+ this.nodes.forEach(Ine), this.sharedNodes.forEach((e, t) => e.members.length ? e.removeLeadSnapshot() : this.sharedNodes.delete(t));
}
scheduleUpdateProjection() {
- this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, fg.preRender(this.updateProjection, !1, !0));
+ this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, pg.preRender(this.updateProjection, !1, !0));
}
scheduleCheckAfterUnmount() {
- fg.postRender(() => {
+ pg.postRender(() => {
this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
});
}
updateSnapshot() {
- !this.snapshot && this.instance && (this.snapshot = this.measure(), this.snapshot && !Ty(this.snapshot.measuredBox.x) && !Ty(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
+ !this.snapshot && this.instance && (this.snapshot = this.measure(), this.snapshot && !Dy(this.snapshot.measuredBox.x) && !Dy(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
}
updateLayout() {
if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty)) return;
if (this.resumeFrom && !this.resumeFrom.instance) for (let e = 0; e < this.path.length; e++) this.path[e].updateScroll();
let e = this.layout;
- this.layout = this.measure(!1), this.layoutCorrected ||= By(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
+ this.layout = this.measure(!1), this.layoutCorrected ||= Uy(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
let { visualElement: t } = this.options;
t?.notify("LayoutMeasure", this.layout.layoutBox, e?.layoutBox);
}
@@ -19079,13 +19079,13 @@ function rb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
resetTransform() {
if (!i) return;
let e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout;
- e && eb(this);
- let t = this.projectionDelta && !Hy(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
- e && this.instance && (t || Qv(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
+ e && rb(this);
+ let t = this.projectionDelta && !Gy(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
+ e && this.instance && (t || ey(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
}
measure(e = !0) {
let t = this.measurePageBox(), n = this.removeElementScroll(t);
- return e && (n = this.removeTransform(n)), Ene(n), {
+ return e && (n = this.removeTransform(n)), Cne(n), {
animationId: this.root.animationId,
measuredBox: t,
layoutBox: n,
@@ -19095,42 +19095,42 @@ function rb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
measurePageBox() {
let { visualElement: e } = this.options;
- if (!e) return By();
+ if (!e) return Uy();
let t = e.measureViewportBox();
- if (!(this.scroll?.wasRoot || this.path.some(Yne))) {
+ if (!(this.scroll?.wasRoot || this.path.some(Jne))) {
let { scroll: e } = this.root;
- e && (cy(t.x, e.offset.x), cy(t.y, e.offset.y));
+ e && (uy(t.x, e.offset.x), uy(t.y, e.offset.y));
}
return t;
}
removeElementScroll(e) {
- let t = By();
- if (Cy(t, e), this.scroll?.wasRoot) return t;
+ let t = Uy();
+ if (Ty(t, e), this.scroll?.wasRoot) return t;
for (let n = 0; n < this.path.length; n++) {
let r = this.path[n], { scroll: i, options: a } = r;
- r !== this.root && i && a.layoutScroll && (i.wasRoot && Cy(t, e), cy(t.x, i.offset.x), cy(t.y, i.offset.y));
+ r !== this.root && i && a.layoutScroll && (i.wasRoot && Ty(t, e), uy(t.x, i.offset.x), uy(t.y, i.offset.y));
}
return t;
}
applyTransform(e, t = !1, n, r, i = 0) {
- let a = n || By();
- Cy(a, e);
+ let a = n || Uy();
+ Ty(a, e);
for (let e = i; e < this.path.length; e++) {
let n = this.path[e];
- !t && n.options.layoutScroll && n.scroll && n !== n.root && (cy(a.x, -n.scroll.offset.x), cy(a.y, -n.scroll.offset.y)), Qv(n.latestValues) && dy(a, n.latestValues, n.layout?.layoutBox);
+ !t && n.options.layoutScroll && n.scroll && n !== n.root && (uy(a.x, -n.scroll.offset.x), uy(a.y, -n.scroll.offset.y)), ey(n.latestValues) && py(a, n.latestValues, n.layout?.layoutBox);
}
- return !r && Qv(this.latestValues) && dy(a, this.latestValues, this.layout?.layoutBox), a;
+ return !r && ey(this.latestValues) && py(a, this.latestValues, this.layout?.layoutBox), a;
}
removeTransform(e) {
- let t = By();
- Cy(t, e);
+ let t = Uy();
+ Ty(t, e);
for (let e = 0; e < this.path.length; e++) {
let n = this.path[e];
- if (!Qv(n.latestValues)) continue;
+ if (!ey(n.latestValues)) continue;
let r;
- n.instance && (Xv(n.latestValues) && n.updateSnapshot(), r = By(), Cy(r, n.measurePageBox())), Ny(t, n.latestValues, n.snapshot?.layoutBox, r);
+ n.instance && (Qv(n.latestValues) && n.updateSnapshot(), r = Uy(), Ty(r, n.measurePageBox())), Iy(t, n.latestValues, n.snapshot?.layoutBox, r);
}
- return Qv(this.latestValues) && Ny(t, this.latestValues), t;
+ return ey(this.latestValues) && Iy(t, this.latestValues), t;
}
setTargetDelta(e) {
this.targetDelta = e, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
@@ -19157,16 +19157,16 @@ function rb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
if (!this.layout || !(r || i)) return;
this.resolvedRelativeTargetAt = Xm.timestamp;
let a = this.getClosestProjectingParent();
- !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), (this.relativeTarget || this.targetDelta) && (this.target || (this.target = By(), this.targetWithTransforms = By()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Sne(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target, !0) : Cy(this.target, this.layout.layoutBox), ay(this.target, this.targetDelta)) : Cy(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && (!a.resumingFrom == !this.resumingFrom || a.options.layoutRoot && !a.resumingFrom) && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), gy.countProjection?.(1));
+ !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), (this.relativeTarget || this.targetDelta) && (this.target || (this.target = Uy(), this.targetWithTransforms = Uy()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), bne(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target, !0) : Ty(this.target, this.layout.layoutBox), sy(this.target, this.targetDelta)) : Ty(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && (!a.resumingFrom == !this.resumingFrom || a.options.layoutRoot && !a.resumingFrom) && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), vy.countProjection?.(1));
}
getClosestProjectingParent() {
- if (!(!this.parent || Xv(this.parent.latestValues) || ey(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
+ if (!(!this.parent || Qv(this.parent.latestValues) || ny(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
}
isProjecting() {
return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
}
createRelativeTarget(e, t, n) {
- this.relativeParent = e, this.forceRelativeParentToResolveTarget(), this.relativeTarget = By(), this.relativeTargetOrigin = By(), Ay(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), Cy(this.relativeTarget, this.relativeTargetOrigin);
+ this.relativeParent = e, this.forceRelativeParentToResolveTarget(), this.relativeTarget = Uy(), this.relativeTargetOrigin = Uy(), My(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), Ty(this.relativeTarget, this.relativeTargetOrigin);
}
removeRelativeTarget() {
this.relativeParent = this.relativeTarget = void 0;
@@ -19176,11 +19176,11 @@ function rb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === Xm.timestamp && (n = !1), n) return;
let { layout: r, layoutId: i } = this.options;
if (this.isTreeAnimating = !!(this.parent?.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(r || i)) return;
- Cy(this.layoutCorrected, this.layout.layoutBox);
+ Ty(this.layoutCorrected, this.layout.layoutBox);
let a = this.treeScale.x, o = this.treeScale.y;
- tne(this.layoutCorrected, this.treeScale, this.path, t && (e.relativeTarget && !e.relativeParent.resumingFrom ? e.relativeParent : !0)), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = By());
+ $te(this.layoutCorrected, this.treeScale, this.path, t && (e.relativeTarget && !e.relativeParent.resumingFrom ? e.relativeParent : !0)), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = Uy());
let { target: s } = e;
- s ? (!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (wy(this.prevProjectionDelta.x, this.projectionDelta.x), wy(this.prevProjectionDelta.y, this.projectionDelta.y)), Dy(this.projectionDelta, this.layoutCorrected, s, this.latestValues), this.treeScale.x === a && this.treeScale.y === o && qy(this.projectionDelta.x, this.prevProjectionDelta.x) && qy(this.projectionDelta.y, this.prevProjectionDelta.y) || (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), gy.countProjection?.(2)) : this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
+ s ? (!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Ey(this.prevProjectionDelta.x, this.projectionDelta.x), Ey(this.prevProjectionDelta.y, this.projectionDelta.y)), ky(this.projectionDelta, this.layoutCorrected, s, this.latestValues), this.treeScale.x === a && this.treeScale.y === o && Xy(this.projectionDelta.x, this.prevProjectionDelta.x) && Xy(this.projectionDelta.y, this.prevProjectionDelta.y) || (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), vy.countProjection?.(2)) : this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
}
hide() {
this.isVisible = !1;
@@ -19192,22 +19192,22 @@ function rb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.options.visualElement?.scheduleRender(), e && this.getStack()?.scheduleRender(), this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
}
createProjectionDeltas() {
- this.prevProjectionDelta = Ry(), this.projectionDelta = Ry(), this.projectionDeltaWithTransform = Ry();
+ this.prevProjectionDelta = Vy(), this.projectionDelta = Vy(), this.projectionDeltaWithTransform = Vy();
}
setAnimationOrigin(e, t = !1, n) {
- let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = Ry();
+ let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = Vy();
this.relativeParent && this.relativeParent.options.layoutRoot || (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !t;
- let s = By(), c = r?.source !== this.layout?.source, l = this.getStack(), u = !l || l.members.length <= 1, d = !(!c || u || this.options.crossfade !== !0 || this.path.some(qne));
+ let s = Uy(), c = r?.source !== this.layout?.source, l = this.getStack(), u = !l || l.members.length <= 1, d = !(!c || u || this.options.crossfade !== !0 || this.path.some(Kne));
this.animationProgress = 0;
let f, p = n?.interpolateProjection(e);
this.mixTargetDelta = (t) => {
let n = t / 1e3, r = p?.(n);
- lb(o.x, e.x, n), lb(o.y, e.y, n), r && (o.x.translate = r.x, o.y.translate = r.y), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Ay(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), Kne(this.relativeTarget, this.relativeTargetOrigin, s, n), f && Dne(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= By(), Cy(f, this.relativeTarget)), c && (this.animationValues = a, mne(a, i, this.latestValues, n, d, u)), r?.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
+ ub(o.x, e.x, n), ub(o.y, e.y, n), r && (o.x.translate = r.x, o.y.translate = r.y), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (My(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), Gne(this.relativeTarget, this.relativeTargetOrigin, s, n), f && wne(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= Uy(), Ty(f, this.relativeTarget)), c && (this.animationValues = a, fne(a, i, this.latestValues, n, d, u)), r?.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
}
startAnimation(e) {
- this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (pg(this.pendingAnimation), void 0), this.pendingAnimation = fg.update(() => {
- Zy.hasAnimatedSinceResize = !0, this.motionValue ||= lv(0), this.motionValue.jump(0, !1), this.currentAnimation = my(this.motionValue, [0, 1e3], {
+ this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (mg(this.pendingAnimation), void 0), this.pendingAnimation = pg.update(() => {
+ eb.hasAnimatedSinceResize = !0, this.motionValue ||= dv(0), this.motionValue.jump(0, !1), this.currentAnimation = gy(this.motionValue, [0, 1e3], {
...e,
velocity: 0,
isSync: !0,
@@ -19217,7 +19217,7 @@ function rb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
onComplete: () => {
e.onComplete && e.onComplete(), this.completeAnimation();
}
- }), Dee(this.currentAnimation, this), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
+ }), Tee(this.currentAnimation, this), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
});
}
completeAnimation() {
@@ -19226,20 +19226,20 @@ function rb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
e && e.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
}
finishAnimation() {
- this.currentAnimation && (this.mixTargetDelta?.(Nne), this.currentAnimation.stop()), this.completeAnimation();
+ this.currentAnimation && (this.mixTargetDelta?.(Ane), this.currentAnimation.stop()), this.completeAnimation();
}
applyTransformsToTarget() {
let e = this.getLead(), { targetWithTransforms: t, layout: n, latestValues: r } = e, { target: i } = e;
if (t && i && n) {
- if (this !== e && this.layout && n && fb(this.options.animationType, this.layout.layoutBox, n.layoutBox)) {
+ if (this !== e && this.layout && n && pb(this.options.animationType, this.layout.layoutBox, n.layoutBox)) {
let { layoutBox: e } = this.layout, t = i;
- i = this.target || By(), db(i.x, t.x, e.x), db(i.y, t.y, e.y);
+ i = this.target || Uy(), fb(i.x, t.x, e.x), fb(i.y, t.y, e.y);
}
- Cy(t, i), dy(t, r), Dy(this.projectionDeltaWithTransform, this.layoutCorrected, t, r);
+ Ty(t, i), py(t, r), ky(this.projectionDeltaWithTransform, this.layoutCorrected, t, r);
}
}
registerSharedNode(e, t) {
- this.sharedNodes.has(e) || this.sharedNodes.set(e, new One()), this.sharedNodes.get(e).add(t);
+ this.sharedNodes.has(e) || this.sharedNodes.set(e, new Tne()), this.sharedNodes.get(e).add(t);
let n = t.options.initialPromotionConfig;
t.promote({
transition: n?.transition,
@@ -19272,10 +19272,10 @@ function rb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
let { visualElement: e } = this.options;
if (!e) return;
let { latestValues: t } = e;
- if (!$v(t)) return;
+ if (!ty(t)) return;
let n = {};
- for (let t = 0; t < Qy.length; t++) $y(Qy[t], e, n, this.animationValues);
- for (let t = 0; t < Zv.length; t++) $y(Zv[t], e, n, this.animationValues);
+ for (let t = 0; t < tb.length; t++) nb(tb[t], e, n, this.animationValues);
+ for (let t = 0; t < $v.length; t++) nb($v[t], e, n, this.animationValues);
e.render();
for (let t in n) e.setStaticValue(t, n[t]), this.animationValues && (this.animationValues[t] = n[t]);
e.scheduleRender();
@@ -19289,70 +19289,70 @@ function rb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
let r = this.getTransformTemplate();
if (this.needsReset) {
- this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = _y(t?.pointerEvents) || "", e.transform = r ? r(this.latestValues, "") : "none";
+ this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = yy(t?.pointerEvents) || "", e.transform = r ? r(this.latestValues, "") : "none";
return;
}
if (!this.projectionDelta || !this.layout || !n.target) {
- (this.options.layoutId || this.needsShow) && (this.needsShow = !1, e.visibility = "", e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = _y(t?.pointerEvents) || ""), this.hasProjected && !Qv(this.latestValues) && (e.transform = r ? r({}, "") : "none", this.hasProjected = !1);
+ (this.options.layoutId || this.needsShow) && (this.needsShow = !1, e.visibility = "", e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = yy(t?.pointerEvents) || ""), this.hasProjected && !ey(this.latestValues) && (e.transform = r ? r({}, "") : "none", this.hasProjected = !1);
return;
}
e.visibility = "";
let i = n.animationValues || n.latestValues;
this.applyTransformsToTarget();
- let a = Ane(this.projectionDeltaWithTransform, this.treeScale, i);
+ let a = Dne(this.projectionDeltaWithTransform, this.treeScale, i);
r && (a = r(i, a)), e.transform = a;
let { x: o, y: s } = this.projectionDelta;
e.transformOrigin = `${o.origin * 100}% ${s.origin * 100}% 0`, e.opacity = n.animationValues ? n === this ? i.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : i.opacityExit : n === this ? i.opacity === void 0 ? "" : i.opacity : i.opacityExit === void 0 ? 0 : i.opacityExit;
- for (let t in hy) {
+ for (let t in _y) {
if (i[t] === void 0) continue;
- let { correct: r, applyTo: o, isCSSVariable: s } = hy[t], c = a === "none" ? i[t] : r(i[t], n);
+ let { correct: r, applyTo: o, isCSSVariable: s } = _y[t], c = a === "none" ? i[t] : r(i[t], n);
if (o) {
let t = o.length;
for (let n = 0; n < t; n++) e[o[n]] = c;
} else s ? this.options.visualElement.renderState.vars[t] = c : e[t] = c;
}
- this.options.layoutId && (e.pointerEvents = n === this ? _y(t?.pointerEvents) || "" : "none");
+ this.options.layoutId && (e.pointerEvents = n === this ? yy(t?.pointerEvents) || "" : "none");
}
clearSnapshot() {
this.resumeFrom = this.snapshot = this.dragSnapshot = this.dragAncestor = void 0;
}
resetTree() {
- this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(ob), this.root.sharedNodes.clear();
+ this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(sb), this.root.sharedNodes.clear();
}
};
}
-function Fne(e) {
- e.updateLayout(), zne(e);
+function Mne(e) {
+ e.updateLayout(), Rne(e);
}
-function Ine(e) {
+function Nne(e) {
let t = e.resumeFrom?.snapshot || e.snapshot;
if (e.isLead() && e.layout && t && e.hasListeners("didUpdate")) {
let { layoutBox: n, measuredBox: r } = e.layout, { animationType: i } = e.options, a = t.source !== e.layout.source, o = (r, a) => {
- if (i === "size") Xy((e) => {
- let t = Ty(r[e]);
+ if (i === "size") $y((e) => {
+ let t = Dy(r[e]);
r[e].min = a[e].min, r[e].max = r[e].min + t;
});
else if (i === "x" || i === "y") {
let e = i === "x" ? "y" : "x";
- Sy(r[e], a[e]);
- } else fb(i, t.layoutBox, n) && Xy((t) => {
- let n = Ty(a[t]);
+ wy(r[e], a[e]);
+ } else pb(i, t.layoutBox, n) && $y((t) => {
+ let n = Dy(a[t]);
r[t].max = r[t].min + n, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[t].max = e.relativeTarget[t].min + n);
});
}, s = a ? t.measuredBox : t.layoutBox;
o(s, n);
- let c = Ry();
- Dy(c, n, t.layoutBox);
- let l = Ry();
- Dy(l, a ? e.applyTransform(r, !0) : n, s);
- let u = !Hy(c), d = !1, f = e.getClosestProjectingParent();
+ let c = Vy();
+ ky(c, n, t.layoutBox);
+ let l = Vy();
+ ky(l, a ? e.applyTransform(r, !0) : n, s);
+ let u = !Gy(c), d = !1, f = e.getClosestProjectingParent();
if ((!e.resumeFrom || f?.options.layoutRoot && e.resumeFrom.path.includes(f)) && f && !f.resumeFrom) {
let { snapshot: r, layout: i } = f;
if (r && i) {
- let s = e.options.layoutAnchor || void 0, c = By();
- Ay(c, a ? e.resumeFrom.applyTransform(t.layoutBox, !0, void 0, !0, f.depth + 1) : t.layoutBox, r.layoutBox, s);
- let l = By();
- Ay(l, n, i.layoutBox, s), a && o(c, l), Gy(c, l) || (d = !0), f.options.layoutRoot && (e.relativeTarget = l, e.relativeTargetOrigin = c, e.relativeParent = f);
+ let s = e.options.layoutAnchor || void 0, c = Uy();
+ My(c, a ? e.resumeFrom.applyTransform(t.layoutBox, !0, void 0, !0, f.depth + 1) : t.layoutBox, r.layoutBox, s);
+ let l = Uy();
+ My(l, n, i.layoutBox, s), a && o(c, l), Jy(c, l) || (d = !0), f.options.layoutRoot && (e.relativeTarget = l, e.relativeTargetOrigin = c, e.relativeParent = f);
}
}
e.notifyListeners("didUpdate", {
@@ -19366,65 +19366,65 @@ function Ine(e) {
} else e.isLead() && e.options.onExitComplete?.();
e.options.transition = void 0;
}
-function ib(e) {
- gy.countProjection?.(0), e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);
+function Pne(e) {
+ vy.countProjection?.(0), e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);
}
-function ab(e) {
+function Fne(e) {
e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
}
-function Lne(e) {
+function Ine(e) {
e.clearSnapshot();
}
-function ob(e) {
+function sb(e) {
e.clearMeasurements();
}
-function Rne(e) {
+function Lne(e) {
e.isLayoutDirty = !0, e.updateLayout();
}
-function sb(e) {
+function cb(e) {
e.isLayoutDirty = !1;
}
-function zne(e) {
+function Rne(e) {
let { snapshot: t, dragAncestor: n } = e, r = n?.isAnimationBlocked && n.layout;
if (!t || !r || e.resumeFrom || e.isAnimationBlocked) return;
let i = n.dragSnapshot;
- Xy((e) => cy(t.layoutBox[e], r.layoutBox[e].min - i.layoutBox[e].min));
+ $y((e) => uy(t.layoutBox[e], r.layoutBox[e].min - i.layoutBox[e].min));
}
-function Bne(e) {
+function zne(e) {
e.isAnimationBlocked && e.layout && !e.isLayoutDirty && (e.snapshot = e.dragSnapshot || e.layout, e.isLayoutDirty = !0);
}
-function Vne(e) {
+function Bne(e) {
e.relativeTarget && e.relativeParent?.isLayoutDirty && (e.currentAnimation ? e.isLayoutDirty = !0 : (e.targetDelta = void 0, e.removeRelativeTarget()));
}
-function Hne(e) {
+function Vne(e) {
let { visualElement: t } = e.options;
t?.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
}
-function cb(e) {
+function lb(e) {
e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
}
-function Une(e) {
+function Hne(e) {
e.resolveTargetDelta();
}
-function Wne(e) {
+function Une(e) {
e.calcProjection();
}
-function Gne(e) {
+function Wne(e) {
e.resetSkewAndRotation();
}
-function lb(e, t, n) {
+function ub(e, t, n) {
e.translate = Qh(t.translate, 0, n), e.scale = Qh(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
}
-function ub(e, t, n, r) {
+function db(e, t, n, r) {
e.min = Qh(t.min, n.min, r), e.max = Qh(t.max, n.max, r);
}
-function Kne(e, t, n, r) {
- ub(e.x, t.x, n.x, r), ub(e.y, t.y, n.y, r);
+function Gne(e, t, n, r) {
+ db(e.x, t.x, n.x, r), db(e.y, t.y, n.y, r);
}
-function qne(e) {
+function Kne(e) {
return e.animationValues?.opacityExit !== void 0;
}
-var Jne = {
+var qne = {
duration: .45,
ease: [
.4,
@@ -19433,51 +19433,51 @@ var Jne = {
1
]
};
-function db(e, t, n) {
- e.max = Ty(n) + (e.min = t.min);
-}
function fb(e, t, n) {
- return e === "position" || e === "preserve-aspect" && !xne(Ky(t), Ky(n), .2);
+ e.max = Dy(n) + (e.min = t.min);
+}
+function pb(e, t, n) {
+ return e === "position" || e === "preserve-aspect" && !yne(Yy(t), Yy(n), .2);
}
-function Yne(e) {
+function Jne(e) {
return e !== e.root && e.scroll?.wasRoot;
}
// node_modules/motion-dom/dist/es/events/add-dom-event.mjs
-function pb(e, t, n, r = { passive: !0 }) {
+function mb(e, t, n, r = { passive: !0 }) {
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
}
// node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs
-var Xne = /* @__PURE__ */ rb({
- attachResizeListener: (e, t) => pb(e, "resize", t),
- measureScroll: rne,
+var Yne = /* @__PURE__ */ ob({
+ attachResizeListener: (e, t) => mb(e, "resize", t),
+ measureScroll: tne,
checkIsScrollRoot: () => !0
-}), mb = { current: void 0 }, hb = /* @__PURE__ */ rb({
+}), hb = { current: void 0 }, gb = /* @__PURE__ */ ob({
measureScroll: (e) => ({
x: e.scrollLeft,
y: e.scrollTop
}),
defaultParent: () => {
- if (!mb.current) {
- let e = new Xne({});
- e.mount(window), e.setOptions({ layoutScroll: !0 }), mb.current = e;
+ if (!hb.current) {
+ let e = new Yne({});
+ e.mount(window), e.setOptions({ layoutScroll: !0 }), hb.current = e;
}
- return mb.current;
+ return hb.current;
},
resetTransform: (e, t) => {
e.style.transform = t === void 0 ? "none" : t;
},
checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed"
-}), gb = /* @__PURE__ */ new WeakMap();
+}), _b = /* @__PURE__ */ new WeakMap();
// node_modules/motion-dom/dist/es/render/utils/is-animation-controls.mjs
-function _b(e) {
+function vb(e) {
return typeof e == "object" && !!e && typeof e.start == "function";
}
// node_modules/motion-dom/dist/es/render/utils/is-variant-label.mjs
-function vb(e) {
+function yb(e) {
return typeof e == "string" || Array.isArray(e);
}
// node_modules/motion-dom/dist/es/render/utils/variant-props.mjs
-var yb = [
+var bb = [
"animate",
"whileInView",
"whileFocus",
@@ -19485,29 +19485,29 @@ var yb = [
"whileTap",
"whileDrag",
"exit"
-], bb = /* @__PURE__ */ ["initial"].concat(yb);
+], xb = /* @__PURE__ */ ["initial"].concat(bb);
// node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs
-function xb(e) {
- if (_b(e.animate)) return !0;
- for (let t = 0; t < bb.length; t++) if (vb(e[bb[t]])) return !0;
+function Sb(e) {
+ if (vb(e.animate)) return !0;
+ for (let t = 0; t < xb.length; t++) if (yb(e[xb[t]])) return !0;
return !1;
}
-function Sb(e) {
- return !!(xb(e) || e.variants);
+function Cb(e) {
+ return !!(Sb(e) || e.variants);
}
// node_modules/motion-dom/dist/es/render/utils/motion-values.mjs
-function Zne(e, t, n) {
+function Xne(e, t, n) {
for (let r in t) {
let i = t[r], a = n[r];
- if (vv(i)) e.addValue(r, i);
- else if (vv(a)) e.addValue(r, lv(i, { owner: e }));
+ if (bv(i)) e.addValue(r, i);
+ else if (bv(a)) e.addValue(r, dv(i, { owner: e }));
else if (a !== i) {
if (e.hasValue(r)) {
let t = e.getValue(r);
t.liveStyle === !0 ? t.jump(i) : t.hasAnimated || t.set(i);
} else {
let t = e.getStaticValue(r);
- e.addValue(r, lv(t === void 0 ? i : t, { owner: e }));
+ e.addValue(r, dv(t === void 0 ? i : t, { owner: e }));
}
}
}
@@ -19515,17 +19515,17 @@ function Zne(e, t, n) {
return t;
}
// node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.mjs
-var Cb = { current: null }, wb = { current: !1 }, Qne = typeof window < "u";
-function Tb() {
- if (wb.current = !0, Qne) {
+var wb = { current: null }, Tb = { current: !1 }, Zne = typeof window < "u";
+function Eb() {
+ if (Tb.current = !0, Zne) {
if (window.matchMedia) {
- let e = window.matchMedia("(prefers-reduced-motion)"), t = () => Cb.current = e.matches;
+ let e = window.matchMedia("(prefers-reduced-motion)"), t = () => wb.current = e.matches;
e.addEventListener("change", t), t();
- } else Cb.current = !1;
+ } else wb.current = !1;
}
}
// node_modules/motion-dom/dist/es/render/VisualElement.mjs
-var Eb = [
+var Db = [
"AnimationStart",
"AnimationComplete",
"Update",
@@ -19533,35 +19533,35 @@ var Eb = [
"LayoutMeasure",
"LayoutAnimationStart",
"LayoutAnimationComplete"
-], Db = {};
-function Ob(e) {
- Db = e;
+], Ob = {};
+function kb(e) {
+ Ob = e;
}
-function $ne() {
- return Db;
+function Qne() {
+ return Ob;
}
-var ere = class {
+var $ne = class {
scrapeMotionValuesFromProps(e, t, n) {
return {};
}
constructor({ parent: e, props: t, presenceContext: n, reducedMotionConfig: r, skipAnimations: i, blockInitialAnimation: a, visualState: o }, s = {}) {
- this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = C_, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
+ this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = T_, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
let e = $m.now();
- this.renderScheduledAt < e && (this.renderScheduledAt = e, fg.render(this.render, !1, !0));
+ this.renderScheduledAt < e && (this.renderScheduledAt = e, pg.render(this.render, !1, !0));
};
let { latestValues: c, renderState: l } = o;
- this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = xb(t), this.isVariantNode = Sb(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
+ this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = Sb(t), this.isVariantNode = Cb(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
let { willChange: u, ...d } = this.scrapeMotionValuesFromProps(t, {}, this);
for (let e in d) {
let t = d[e];
- c[e] !== void 0 && vv(t) && t.set(c[e]);
+ c[e] !== void 0 && bv(t) && t.set(c[e]);
}
}
mount(e) {
if (this.hasBeenMounted && !this.presenceContext?.keepValuesOnRemount) for (let e in this.initialValues) this.values.get(e)?.jump(this.initialValues[e]), this.latestValues[e] = this.initialValues[e];
- if (this.current = e, gb.set(e, this), this.projection?.instance || this.projection?.mount(e), this.isVariantNode && !this.isControllingVariants) {
+ if (this.current = e, _b.set(e, this), this.projection?.instance || this.projection?.mount(e), this.isVariantNode && !this.isControllingVariants) {
let e = this;
do
e = e.props.inherit !== !1 && e.parent;
@@ -19571,10 +19571,10 @@ var ere = class {
t.add(this), this.removeFromVariantTree = () => t.delete(this);
}
}
- this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (wb.current || Tb(), this.shouldReduceMotion = Cb.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
+ this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (Tb.current || Eb(), this.shouldReduceMotion = wb.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
}
unmount() {
- this.projection?.unmount(), pg(this.notifyUpdate), pg(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree?.(), this.parent?.removeChild(this);
+ this.projection?.unmount(), mg(this.notifyUpdate), mg(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree?.(), this.parent?.removeChild(this);
for (let e in this.events) this.events[e].clear();
for (let e in this.features) {
let t = this.features[e];
@@ -19589,8 +19589,8 @@ var ere = class {
this.children.delete(e), this.enteringChildren?.delete(e);
}
bindToMotionValue(e, t) {
- if (this.valueSubscriptions.get(e)?.(), t.accelerate && I_.has(e) && this.current instanceof HTMLElement) {
- let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new M_({
+ if (this.valueSubscriptions.get(e)?.(), t.accelerate && R_.has(e) && this.current instanceof HTMLElement) {
+ let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new P_({
element: this.current,
name: e,
keyframes: r,
@@ -19603,10 +19603,10 @@ var ere = class {
});
return;
}
- let n = d_.has(e);
+ let n = p_.has(e);
n && this.onBindTransform && this.onBindTransform();
let r = t.on("change", (t) => {
- this.latestValues[e] = t, this.props.onUpdate && fg.preRender(this.notifyUpdate), n && (this.projection && (this.projection.isTransformDirty = !0), q_.get(this.current)?.check()), this.scheduleRender();
+ this.latestValues[e] = t, this.props.onUpdate && pg.preRender(this.notifyUpdate), n && (this.projection && (this.projection.isTransformDirty = !0), Y_.get(this.current)?.check()), this.scheduleRender();
}), i;
typeof window < "u" && window.MotionCheckAppearSync && (i = window.MotionCheckAppearSync(this, e, t)), this.valueSubscriptions.set(e, () => {
r(), i?.();
@@ -19617,8 +19617,8 @@ var ere = class {
}
updateFeatures() {
let e = "animation";
- for (e in Db) {
- let t = Db[e];
+ for (e in Ob) {
+ let t = Ob[e];
if (!t) continue;
let { isEnabled: n, Feature: r } = t;
if (!this.features[e] && r && n(this.props) && (this.features[e] = new r(this)), this.features[e]) {
@@ -19631,7 +19631,7 @@ var ere = class {
this.build(this.renderState, this.latestValues, this.props);
}
measureViewportBox() {
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : By();
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : Uy();
}
getStaticValue(e) {
return this.latestValues[e];
@@ -19641,14 +19641,14 @@ var ere = class {
}
update(e, t) {
let { transformTemplate: n, onUpdate: r } = this.props;
- (e.transformTemplate || n) && this.scheduleRender(), (e.transformTemplate && !n || e.onUpdate && !r) && q_.get(this.current)?.demote(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
- for (let t = 0; t < Eb.length; t++) {
- let n = Eb[t];
+ (e.transformTemplate || n) && this.scheduleRender(), (e.transformTemplate && !n || e.onUpdate && !r) && Y_.get(this.current)?.demote(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
+ for (let t = 0; t < Db.length; t++) {
+ let n = Db[t];
this.propEventSubscriptions[n]?.(), delete this.propEventSubscriptions[n];
let r = e["on" + n];
r && (this.propEventSubscriptions[n] = this.on(n, r));
}
- this.prevMotionValues = Zne(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue?.();
+ this.prevMotionValues = Xne(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue?.();
}
getProps() {
return this.props;
@@ -19678,11 +19678,11 @@ var ere = class {
}
getValue(e, t) {
let n = this.props.values?.[e];
- return n || (n = this.values.get(e), n === void 0 && t !== void 0 && (n = lv(t ?? this.getDefaultValue?.(e), { owner: this }), this.addValue(e, n)), n);
+ return n || (n = this.values.get(e), n === void 0 && t !== void 0 && (n = dv(t ?? this.getDefaultValue?.(e), { owner: this }), this.addValue(e, n)), n);
}
readValue(e, t) {
let n = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
- return n != null && (typeof n == "string" && (vm(n) || bm(n)) ? n = parseFloat(n) : typeof n != "number" && !Jh.test(n) && Jh.test(t) && (n = $g(e, t)), this.setBaseTarget(e, vv(n) ? n.get() : n)), vv(n) ? n.get() : n;
+ return n != null && (typeof n == "string" && (vm(n) || bm(n)) ? n = parseFloat(n) : typeof n != "number" && !Jh.test(n) && Jh.test(t) && (n = t_(e, t)), this.setBaseTarget(e, bv(n) ? n.get() : n)), bv(n) ? n.get() : n;
}
setBaseTarget(e, t) {
this.baseTarget[e] = t;
@@ -19694,11 +19694,11 @@ var ere = class {
this.events[e]?.notify(...t);
}
scheduleRenderMicrotask() {
- py.render(this.render);
+ hy.render(this.render);
}
-}, kb = class extends ere {
+}, Ab = class extends $ne {
constructor() {
- super(...arguments), this.KeyframeResolver = Tv;
+ super(...arguments), this.KeyframeResolver = Dv;
}
sortInstanceNodePosition(e, t) {
return e.compareDocumentPosition(t) & 2 ? 1 : -1;
@@ -19713,105 +19713,105 @@ var ere = class {
handleChildMotionValue() {
this.childSubscription && (this.childSubscription(), delete this.childSubscription);
let { children: e } = this.props;
- vv(e) && (this.childSubscription = e.on("change", (e) => {
+ bv(e) && (this.childSubscription = e.on("change", (e) => {
this.current && (this.current.textContent = `${e}`);
}));
}
};
// node_modules/motion-dom/dist/es/render/html/utils/render.mjs
-function Ab(e, { style: t, vars: n }, r, i) {
+function jb(e, { style: t, vars: n }, r, i) {
let a = e.style, o;
for (o in t) a[o] = t[o];
for (o in i?.applyProjectionStyles(a, r), n) a.setProperty(o, n[o]);
}
// node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs
-function jb(e, { layout: t, layoutId: n }) {
- return d_.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!hy[e] || e === "opacity");
+function Mb(e, { layout: t, layoutId: n }) {
+ return p_.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!_y[e] || e === "opacity");
}
// node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs
-function Mb(e, t, n) {
+function Nb(e, t, n) {
let r = e.style, i = t?.style, a = {};
if (!r) return a;
- for (let t in r) (vv(r[t]) || i && vv(i[t]) || jb(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
+ for (let t in r) (bv(r[t]) || i && bv(i[t]) || Mb(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
return a;
}
// node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.mjs
-function tre(e) {
+function ere(e) {
return window.getComputedStyle(e);
}
-var nre = class extends kb {
+var tre = class extends Ab {
constructor() {
- super(...arguments), this.type = "html", this.renderInstance = Ab;
+ super(...arguments), this.type = "html", this.renderInstance = jb;
}
mount(e) {
super.mount(e);
}
readValueFromInstance(e, t) {
- if (d_.has(t)) return this.projection?.isProjecting ? s_(t) : l_(e, t);
+ if (p_.has(t)) return this.projection?.isProjecting ? l_(t) : d_(e, t);
{
- let n = tre(e), r = (nh(t) ? n.getPropertyValue(t) : n[t]) || 0;
+ let n = ere(e), r = (nh(t) ? n.getPropertyValue(t) : n[t]) || 0;
return typeof r == "string" ? r.trim() : r;
}
}
measureInstanceViewportBox(e, { transformPagePoint: t }) {
- return fy(e, t);
+ return my(e, t);
}
build(e, t, n) {
- Uv(e, t, n.transformTemplate);
+ Gv(e, t, n.transformTemplate);
}
scrapeMotionValuesFromProps(e, t, n) {
- return Mb(e, t, n);
+ return Nb(e, t, n);
}
-}, Nb = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1;
+}, Pb = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1;
// node_modules/motion-dom/dist/es/events/event-info.mjs
-function Pb(e) {
+function Fb(e) {
return { point: {
x: e.pageX,
y: e.pageY
} };
}
-var rre = (e) => (t) => Nb(t) && e(t, Pb(t));
+var nre = (e) => (t) => Pb(t) && e(t, Fb(t));
// node_modules/motion-dom/dist/es/events/add-pointer-event.mjs
-function Fb(e, t, n, r) {
- return pb(e, t, rre(n), r);
+function Ib(e, t, n, r) {
+ return mb(e, t, nre(n), r);
}
// node_modules/motion-dom/dist/es/resize/handle-element.mjs
-var Ib = /* @__PURE__ */ new WeakMap(), Lb, Rb = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : Mv(r) && "getBBox" in r ? r.getBBox()[t] : r[n], ire = /*@__PURE__*/ Rb("inline", "width", "offsetWidth"), are = /*@__PURE__*/ Rb("block", "height", "offsetHeight");
-function ore({ target: e, borderBoxSize: t }) {
- Ib.get(e)?.forEach((n) => {
+var Lb = /* @__PURE__ */ new WeakMap(), Rb, zb = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : Pv(r) && "getBBox" in r ? r.getBBox()[t] : r[n], rre = /*@__PURE__*/ zb("inline", "width", "offsetWidth"), ire = /*@__PURE__*/ zb("block", "height", "offsetHeight");
+function are({ target: e, borderBoxSize: t }) {
+ Lb.get(e)?.forEach((n) => {
n(e, {
get width() {
- return ire(e, t);
+ return rre(e, t);
},
get height() {
- return are(e, t);
+ return ire(e, t);
}
});
});
}
-function sre(e) {
- e.forEach(ore);
+function ore(e) {
+ e.forEach(are);
}
-function cre() {
- typeof ResizeObserver < "u" && (Lb = new ResizeObserver(sre));
+function sre() {
+ typeof ResizeObserver < "u" && (Rb = new ResizeObserver(ore));
}
-function lre(e, t) {
- Lb || cre();
- let n = Iv(e);
+function cre(e, t) {
+ Rb || sre();
+ let n = Rv(e);
return n.forEach((e) => {
- let n = Ib.get(e);
- n || (n = /* @__PURE__ */ new Set(), Ib.set(e, n)), n.add(t), Lb?.observe(e);
+ let n = Lb.get(e);
+ n || (n = /* @__PURE__ */ new Set(), Lb.set(e, n)), n.add(t), Rb?.observe(e);
}), () => {
n.forEach((e) => {
- let n = Ib.get(e);
- n?.delete(t), n?.size || Lb?.unobserve(e);
+ let n = Lb.get(e);
+ n?.delete(t), n?.size || Rb?.unobserve(e);
});
};
}
// node_modules/motion-dom/dist/es/resize/handle-window.mjs
-var zb = /* @__PURE__ */ new Set(), Bb;
-function ure() {
- Bb = () => {
+var Bb = /* @__PURE__ */ new Set(), Vb;
+function lre() {
+ Vb = () => {
let e = {
get width() {
return window.innerWidth;
@@ -19820,26 +19820,26 @@ function ure() {
return window.innerHeight;
}
};
- zb.forEach((t) => t(e));
- }, window.addEventListener("resize", Bb);
+ Bb.forEach((t) => t(e));
+ }, window.addEventListener("resize", Vb);
}
-function dre(e) {
- return zb.add(e), Bb || ure(), () => {
- zb.delete(e), !zb.size && typeof Bb == "function" && (window.removeEventListener("resize", Bb), Bb = void 0);
+function ure(e) {
+ return Bb.add(e), Vb || lre(), () => {
+ Bb.delete(e), !Bb.size && typeof Vb == "function" && (window.removeEventListener("resize", Vb), Vb = void 0);
};
}
// node_modules/motion-dom/dist/es/resize/index.mjs
-function Vb(e, t) {
- return Pv(typeof e == "function" ? dre(e) : lre(e, t));
+function Hb(e, t) {
+ return Iv(typeof e == "function" ? ure(e) : cre(e, t));
}
// node_modules/motion-dom/dist/es/utils/distance.mjs
-var Hb = (e, t) => Math.abs(e - t);
-function fre(e, t) {
- let n = Hb(e.x, t.x), r = Hb(e.y, t.y);
+var Ub = (e, t) => Math.abs(e - t);
+function dre(e, t) {
+ let n = Ub(e.x, t.x), r = Ub(e.y, t.y);
return Math.sqrt(n ** 2 + r ** 2);
}
// node_modules/motion-dom/dist/es/gestures/pan/PanSession.mjs
-var Ub = /*#__PURE__*/ new Set(["auto", "scroll"]), Wb = class {
+var Wb = /*#__PURE__*/ new Set(["auto", "scroll"]), Gb = class {
constructor(e, t, { transformPagePoint: n, contextWindow: r = window, dragSnapToOrigin: i = !1, distanceThreshold: a = 3, element: o } = {}) {
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.lastRawMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.scrollPositions = /* @__PURE__ */ new Map(), this.onElementScroll = (e) => {
this.handleScroll(e.target);
@@ -19847,8 +19847,8 @@ var Ub = /*#__PURE__*/ new Set(["auto", "scroll"]), Wb = class {
this.handleScroll(window);
}, this.updatePoint = () => {
if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- this.hasPendingMove = !1, this.lastRawMoveEventInfo && (this.lastMoveEventInfo = Kb(this.lastRawMoveEventInfo, this.transformPagePoint));
- let e = Jb(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = fre(e.offset, {
+ this.hasPendingMove = !1, this.lastRawMoveEventInfo && (this.lastMoveEventInfo = qb(this.lastRawMoveEventInfo, this.transformPagePoint));
+ let e = Yb(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = dre(e.offset, {
x: 0,
y: 0
}) >= this.distanceThreshold;
@@ -19861,87 +19861,87 @@ var Ub = /*#__PURE__*/ new Set(["auto", "scroll"]), Wb = class {
let { onStart: i, onMove: a } = this.handlers;
t || (i?.(this.lastMoveEvent, e), this.startEvent = this.lastMoveEvent), a?.(this.lastMoveEvent, e);
}, this.handlePointerMove = (e, t) => {
- this.handleScroll(window), this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = Kb(t, this.transformPagePoint), this.hasPendingMove = !0, fg.update(this.updatePoint, !0);
+ this.handleScroll(window), this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = qb(t, this.transformPagePoint), this.hasPendingMove = !0, pg.update(this.updatePoint, !0);
}, this.handlePointerUp = (e, t) => {
this.hasPendingMove && this.updatePoint(), this.end();
let { onEnd: n, onSessionEnd: r, resumeAnimation: i } = this.handlers;
if ((this.dragSnapToOrigin || !this.startEvent) && i?.(), !(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- let a = Jb(e.type === "pointercancel" ? this.lastMoveEventInfo : Kb(t, this.transformPagePoint), this.history);
+ let a = Yb(e.type === "pointercancel" ? this.lastMoveEventInfo : qb(t, this.transformPagePoint), this.history);
this.startEvent && n?.(e, a), r?.(e, a);
- }, !Nb(e)) return;
+ }, !Pb(e)) return;
this.dragSnapToOrigin = i, this.handlers = t, this.transformPagePoint = n, this.distanceThreshold = a, this.contextWindow = r || window;
- let s = Kb(Pb(e), this.transformPagePoint), { point: c } = s;
+ let s = qb(Fb(e), this.transformPagePoint), { point: c } = s;
this.history = [{
...c,
timestamp: $m.now()
}];
let { onSessionStart: l } = t;
- l && l(e, Jb(s, this.history));
+ l && l(e, Yb(s, this.history));
let u = {
passive: !0,
capture: !0
};
- this.removeListeners = Cm(Fb(this.contextWindow, "pointermove", this.handlePointerMove, u), Fb(this.contextWindow, "pointerup", this.handlePointerUp, u), Fb(this.contextWindow, "pointercancel", this.handlePointerUp, u)), o && this.startScrollTracking(o);
+ this.removeListeners = Cm(Ib(this.contextWindow, "pointermove", this.handlePointerMove, u), Ib(this.contextWindow, "pointerup", this.handlePointerUp, u), Ib(this.contextWindow, "pointercancel", this.handlePointerUp, u)), o && this.startScrollTracking(o);
}
startScrollTracking(e) {
let t = e.parentElement;
for (; t;) {
let e = getComputedStyle(t);
- (Ub.has(e.overflowX) || Ub.has(e.overflowY)) && this.scrollPositions.set(t, Gb(t)), t = t.parentElement;
+ (Wb.has(e.overflowX) || Wb.has(e.overflowY)) && this.scrollPositions.set(t, Kb(t)), t = t.parentElement;
}
- this.scrollPositions.set(window, Gb(window)), this.removeScrollListeners = Cm(pb(window, "scroll", this.onElementScroll, { capture: !0 }), pb(window, "scroll", this.onWindowScroll, {}));
+ this.scrollPositions.set(window, Kb(window)), this.removeScrollListeners = Cm(mb(window, "scroll", this.onElementScroll, { capture: !0 }), mb(window, "scroll", this.onWindowScroll, {}));
}
handleScroll(e) {
let t = this.scrollPositions.get(e);
if (!t) return;
- let n = e === window, r = Gb(e), i = {
+ let n = e === window, r = Kb(e), i = {
x: r.x - t.x,
y: r.y - t.y
};
- (i.x !== 0 || i.y !== 0) && (n ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += i.x, this.lastMoveEventInfo.point.y += i.y) : this.history.length > 0 && (this.history[0].x -= i.x, this.history[0].y -= i.y), this.scrollPositions.set(e, r), fg.update(this.updatePoint, !0));
+ (i.x !== 0 || i.y !== 0) && (n ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += i.x, this.lastMoveEventInfo.point.y += i.y) : this.history.length > 0 && (this.history[0].x -= i.x, this.history[0].y -= i.y), this.scrollPositions.set(e, r), pg.update(this.updatePoint, !0));
}
updateHandlers(e) {
this.handlers = e;
}
end() {
- this.removeListeners?.(), this.removeScrollListeners?.(), this.scrollPositions.clear(), pg(this.updatePoint);
+ this.removeListeners?.(), this.removeScrollListeners?.(), this.scrollPositions.clear(), mg(this.updatePoint);
}
-}, Gb = (e) => e === window ? {
+}, Kb = (e) => e === window ? {
x: window.scrollX,
y: window.scrollY
} : {
x: e.scrollLeft,
y: e.scrollTop
};
-function Kb(e, t) {
+function qb(e, t) {
return t ? { point: t(e.point) } : e;
}
-function qb(e, t) {
+function Jb(e, t) {
return {
x: e.x - t.x,
y: e.y - t.y
};
}
-function Jb({ point: e }, t) {
+function Yb({ point: e }, t) {
return {
point: e,
- delta: qb(e, Yb(t)),
- offset: qb(e, pre(t)),
- velocity: mre(t, .1)
+ delta: Jb(e, Xb(t)),
+ offset: Jb(e, fre(t)),
+ velocity: pre(t, .1)
};
}
-function pre(e) {
+function fre(e) {
return e[0];
}
-function Yb(e) {
+function Xb(e) {
return e[e.length - 1];
}
-function mre(e, t) {
+function pre(e, t) {
if (e.length < 2) return {
x: 0,
y: 0
};
- let n = e.length - 1, r = null, i = Yb(e);
+ let n = e.length - 1, r = null, i = Xb(e);
for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ Em(t)));) n--;
if (!r) return {
x: 0,
@@ -19960,95 +19960,95 @@ function mre(e, t) {
return o.x === Infinity && (o.x = 0), o.y === Infinity && (o.y = 0), o;
}
// node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs
-var hre = /* @__PURE__ */ new Set([
+var mre = /* @__PURE__ */ new Set([
"BUTTON",
"INPUT",
"SELECT",
"TEXTAREA",
"A"
]);
-function gre(e) {
- return hre.has(e.tagName) || e.isContentEditable === !0;
+function hre(e) {
+ return mre.has(e.tagName) || e.isContentEditable === !0;
}
-var _re = /* @__PURE__ */ new Set([
+var gre = /* @__PURE__ */ new Set([
"INPUT",
"SELECT",
"TEXTAREA"
]);
-function vre(e) {
- return _re.has(e.tagName) || e.isContentEditable === !0;
+function _re(e) {
+ return gre.has(e.tagName) || e.isContentEditable === !0;
}
// node_modules/motion-dom/dist/es/gestures/drag/state/is-active.mjs
-var Xb = {
+var Zb = {
x: !1,
y: !1
};
-function Zb() {
- return Xb.x || Xb.y;
+function Qb() {
+ return Zb.x || Zb.y;
}
// node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs
-function yre(e) {
- return e === "x" || e === "y" ? Xb[e] ? null : (Xb[e] = !0, () => {
- Xb[e] = !1;
- }) : Xb.x || Xb.y ? null : (Xb.x = Xb.y = !0, () => {
- Xb.x = Xb.y = !1;
+function vre(e) {
+ return e === "x" || e === "y" ? Zb[e] ? null : (Zb[e] = !0, () => {
+ Zb[e] = !1;
+ }) : Zb.x || Zb.y ? null : (Zb.x = Zb.y = !0, () => {
+ Zb.x = Zb.y = !1;
});
}
// node_modules/motion-dom/dist/es/gestures/drag/utils/constraints.mjs
-function bre(e, { min: t, max: n }, r) {
+function yre(e, { min: t, max: n }, r) {
return t !== void 0 && e < t ? e = r ? Qh(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? Qh(n, e, r.max) : Math.min(e, n)), e;
}
-function Qb(e, t, n) {
+function $b(e, t, n) {
return {
min: t === void 0 ? void 0 : e.min + t,
max: n === void 0 ? void 0 : e.max + n - (e.max - e.min)
};
}
-function $b(e, { top: t, left: n, bottom: r, right: i }) {
+function ex(e, { top: t, left: n, bottom: r, right: i }) {
return {
- x: Qb(e.x, n, i),
- y: Qb(e.y, t, r)
+ x: $b(e.x, n, i),
+ y: $b(e.y, t, r)
};
}
-function ex(e, t) {
+function tx(e, t) {
let n = t.min - e.min, r = t.max - e.max;
return t.max - t.min < e.max - e.min && ([n, r] = [r, n]), {
min: n,
max: r
};
}
-function xre(e, t) {
+function nx(e, t) {
return {
- x: ex(e.x, t.x),
- y: ex(e.y, t.y)
+ x: tx(e.x, t.x),
+ y: tx(e.y, t.y)
};
}
-function Sre(e, t) {
- let n = .5, r = Ty(e), i = Ty(t);
+function bre(e, t) {
+ let n = .5, r = Dy(e), i = Dy(t);
return i > r ? n = /* @__PURE__ */ wm(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ wm(e.min, e.max - i, t.min)), gm(0, 1, n);
}
-function Cre(e, t) {
+function xre(e, t) {
let n = {};
return t.min !== void 0 && (n.min = t.min - e.min), t.max !== void 0 && (n.max = t.max - e.min), n;
}
-var tx = .35;
-function wre(e = tx) {
- return e === !1 ? e = 0 : e === !0 && (e = tx), {
- x: nx(e, "left", "right"),
- y: nx(e, "top", "bottom")
+var rx = .35;
+function Sre(e = rx) {
+ return e === !1 ? e = 0 : e === !0 && (e = rx), {
+ x: ix(e, "left", "right"),
+ y: ix(e, "top", "bottom")
};
}
-function nx(e, t, n) {
+function ix(e, t, n) {
return {
- min: rx(e, t),
- max: rx(e, n)
+ min: ax(e, t),
+ max: ax(e, n)
};
}
-function rx(e, t) {
+function ax(e, t) {
return typeof e == "number" ? e : e[t] || 0;
}
// node_modules/motion-dom/dist/es/gestures/drag/VisualElementDragControls.mjs
-function ix(e) {
+function ox(e) {
let t = "";
for (let n of e.path) {
n.scroll = void 0, n.updateScroll();
@@ -20057,12 +20057,12 @@ function ix(e) {
}
return t;
}
-var Tre = /* @__PURE__ */ new WeakMap(), Ere = class {
+var Cre = /* @__PURE__ */ new WeakMap(), wre = class {
constructor(e, t = () => e.getProps()) {
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = {
x: 0,
y: 0
- }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = By(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e, this.readProps = t;
+ }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = Uy(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e, this.readProps = t;
}
start(e, { snapToCursor: t = !1, distanceThreshold: n } = {}) {
if (this.visualElement.presenceContext?.isPresent === !1) return;
@@ -20070,28 +20070,28 @@ var Tre = /* @__PURE__ */ new WeakMap(), Ere = class {
t && this.snapToCursor(e), this.stopAnimation();
}, i = (e, t) => {
let { drag: n, dragConstraints: r, dragPropagation: i, onDragStart: a } = this.getProps();
- if (n && !i && (this.openDragLock?.(), this.openDragLock = yre(n), !this.openDragLock)) return;
+ if (n && !i && (this.openDragLock?.(), this.openDragLock = vre(n), !this.openDragLock)) return;
this.latestPointerEvent = e, this.latestPanInfo = t, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints();
let { projection: o } = this.visualElement;
- o && (o.isAnimationBlocked = !0, o.target = void 0), Xy((e) => {
+ o && (o.isAnimationBlocked = !0, o.target = void 0), $y((e) => {
let t = this.getAxisMotionValue(e).get() || 0;
- if (ih(t) && (t = pv(t, this.visualElement.current) || 0), wh.test(t)) t = parseFloat(t);
+ if (ih(t) && (t = hv(t, this.visualElement.current) || 0), wh.test(t)) t = parseFloat(t);
else if (Ch.test(t)) {
let n = o?.layout?.layoutBox[e];
- n && (t = Ty(n) * (parseFloat(t) / 100));
+ n && (t = Dy(n) * (parseFloat(t) / 100));
}
this.originPoint[e] = t;
- }), this.point = typeof r == "function" && r(this), a && fg.update(() => a(e, t), !1, !0), yv(this.visualElement, "transform"), this.visualElement.animationState?.setActive("whileDrag", !0);
+ }), this.point = typeof r == "function" && r(this), a && pg.update(() => a(e, t), !1, !0), xv(this.visualElement, "transform"), this.visualElement.animationState?.setActive("whileDrag", !0);
}, a = (e, t) => {
this.latestPointerEvent = e, this.latestPanInfo = t;
let { dragPropagation: n, dragDirectionLock: r, onDirectionLock: i, onDrag: a } = this.getProps();
if (!n && !this.openDragLock) return;
let { offset: o } = t;
if (r && this.currentDirection === null) {
- if (this.currentDirection = Ore(o), this.currentDirection === null) return;
+ if (this.currentDirection = Ere(o), this.currentDirection === null) return;
i && i(this.currentDirection);
}
- this.updateAxis("x", o), this.updateAxis("y", o), this.point && this.point.move(), this.visualElement.render(), a && fg.update(() => a(e, t), !1, !0);
+ this.updateAxis("x", o), this.updateAxis("y", o), this.point && this.point.move(), this.visualElement.render(), a && pg.update(() => a(e, t), !1, !0);
}, o = (e, t) => {
this.latestPointerEvent = e, this.latestPanInfo = t, this.stop(e, t), this.latestPointerEvent = null, this.latestPanInfo = null;
}, s = () => {
@@ -20101,7 +20101,7 @@ var Tre = /* @__PURE__ */ new WeakMap(), Ere = class {
y: 0
});
}, { dragSnapToOrigin: c } = this.getProps();
- this.panSession = new Wb(e, {
+ this.panSession = new Gb(e, {
onSessionStart: r,
onStart: i,
onMove: a,
@@ -20121,7 +20121,7 @@ var Tre = /* @__PURE__ */ new WeakMap(), Ere = class {
let { velocity: o } = i;
this.startAnimation(o, n);
let { onDragEnd: s } = this.getProps();
- s && fg.postRender(() => s(r, i));
+ s && pg.postRender(() => s(r, i));
}
cancel() {
this.isDragging = !1;
@@ -20133,26 +20133,26 @@ var Tre = /* @__PURE__ */ new WeakMap(), Ere = class {
}
updateAxis(e, t) {
let { drag: n } = this.readProps();
- if (!t || !cx(e, n, this.currentDirection)) return;
+ if (!t || !ux(e, n, this.currentDirection)) return;
let r = this.getAxisMotionValue(e), i = this.originPoint[e] + t[e], a = this.constraints && this.constraints[e];
- a && (i = bre(i, a, this.elastic[e])), this.point ? this.point[e] = i : r.set(i);
+ a && (i = yre(i, a, this.elastic[e])), this.point ? this.point[e] = i : r.set(i);
}
resolveConstraints() {
let { dragConstraints: e, dragElastic: t } = this.getProps(), { projection: n } = this.visualElement, r = n && (n.layout || n.measure(!1)), i = this.constraints;
- ax(e) ? this.constraints && this.scroll === ix(n) || (this.constraints = this.resolveRefConstraints()) : this.constraints = e && r && typeof e == "object" ? $b(r.layoutBox, e) : !1, this.elastic = wre(t), i !== this.constraints && !ax(e) && r && this.constraints && !this.hasMutatedConstraints && Xy((e) => {
- this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = Cre(r.layoutBox[e], this.constraints[e]));
+ sx(e) ? this.constraints && this.scroll === ox(n) || (this.constraints = this.resolveRefConstraints()) : this.constraints = e && r && typeof e == "object" ? ex(r.layoutBox, e) : !1, this.elastic = Sre(t), i !== this.constraints && !sx(e) && r && this.constraints && !this.hasMutatedConstraints && $y((e) => {
+ this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = xre(r.layoutBox[e], this.constraints[e]));
});
}
resolveRefConstraints() {
let { dragConstraints: e, onMeasureDragConstraints: t } = this.getProps();
- if (!ax(e)) return !1;
- let n = ox(e), { projection: r } = this.visualElement;
+ if (!sx(e)) return !1;
+ let n = cx(e), { projection: r } = this.visualElement;
if (!r || !r.layout) return !1;
- this.scroll = ix(r);
- let i = nne(n, r.root, this.visualElement.getTransformPagePoint()), a = xre(r.layout.layoutBox, r.removeElementScroll(i));
+ this.scroll = ox(r);
+ let i = ene(n, r.root, this.visualElement.getTransformPagePoint()), a = nx(r.layout.layoutBox, r.removeElementScroll(i));
if (t) {
- let e = t($te(a));
- this.hasMutatedConstraints = !!e, e && (a = Jv(e));
+ let e = t(Zte(a));
+ this.hasMutatedConstraints = !!e, e && (a = Xv(e));
}
return a;
}
@@ -20164,13 +20164,13 @@ var Tre = /* @__PURE__ */ new WeakMap(), Ere = class {
restDelta: 1,
restSpeed: 10,
...a
- }, l = (i) => r && !(this.point && o) && cx(i, t || n, this.currentDirection) ? e[i] : 0;
+ }, l = (i) => r && !(this.point && o) && ux(i, t || n, this.currentDirection) ? e[i] : 0;
if (this.point && !o) return this.point.release({
x: l("x"),
y: l("y")
}, c).then(s);
- let u = this.constraints || {}, d = Xy((e) => {
- if (!cx(e, t || n, this.currentDirection)) return;
+ let u = this.constraints || {}, d = $y((e) => {
+ if (!ux(e, t || n, this.currentDirection)) return;
let r = u[e] || {};
(o === !0 || o === e) && (r = {
min: 0,
@@ -20188,10 +20188,10 @@ var Tre = /* @__PURE__ */ new WeakMap(), Ere = class {
}
startAxisValueAnimation(e, t) {
let n = this.getAxisMotionValue(e);
- return yv(this.visualElement, e), n.start(fv(e, n, 0, t, this.visualElement, !1));
+ return xv(this.visualElement, e), n.start(mv(e, n, 0, t, this.visualElement, !1));
}
stopAnimation() {
- Xy((e) => this.getAxisMotionValue(e).stop());
+ $y((e) => this.getAxisMotionValue(e).stop());
}
getAxisMotionValue(e) {
let t = `_drag${e.toUpperCase()}`;
@@ -20202,8 +20202,8 @@ var Tre = /* @__PURE__ */ new WeakMap(), Ere = class {
x: e,
y: t
}, i = this.visualElement.getTransformPagePoint()?.(r) || r, a = this.visualElement.measureViewportBox();
- Xy((e) => {
- if (!cx(e, n, this.currentDirection)) return;
+ $y((e) => {
+ if (!ux(e, n, this.currentDirection)) return;
let t = this.getAxisMotionValue(e), { min: r, max: o } = a[e];
t.set((t.get() || 0) + i[e] - Qh(r, o, .5));
});
@@ -20211,41 +20211,41 @@ var Tre = /* @__PURE__ */ new WeakMap(), Ere = class {
scalePositionWithinConstraints() {
if (!this.visualElement.current) return;
let { drag: e, dragConstraints: t } = this.getProps(), { projection: n } = this.visualElement;
- if (!ax(t) || !n || !this.constraints) return;
+ if (!sx(t) || !n || !this.constraints) return;
this.stopAnimation();
let r = this.constraints, i = {
x: 0,
y: 0
};
- Xy((e) => {
+ $y((e) => {
let t = this.getAxisMotionValue(e).get();
- i[e] = Sre({
+ i[e] = bre({
min: t,
max: t
}, r[e]);
});
let { transformTemplate: a } = this.visualElement.getProps();
- this.visualElement.current.style.transform = a ? a({}, "") : "none", n.root?.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), Xy((t) => {
+ this.visualElement.current.style.transform = a ? a({}, "") : "none", n.root?.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), $y((t) => {
let n = this.getAxisMotionValue(t);
- if (!cx(t, e, null) || !n.get()) return;
+ if (!ux(t, e, null) || !n.get()) return;
let { min: r, max: a } = this.constraints[t];
n.set(Qh(r, a, i[t]));
}), this.visualElement.render();
}
addListeners() {
if (!this.visualElement.current) return;
- Tre.set(this.visualElement, this);
- let e = this.visualElement.current, t = Fb(e, "pointerdown", (t) => {
- let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && vre(i);
+ Cre.set(this.visualElement, this);
+ let e = this.visualElement.current, t = Ib(e, "pointerdown", (t) => {
+ let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && _re(i);
n && r && !a && this.start(t);
}), n, r = () => {
- let { dragConstraints: t } = this.getProps(), r = ax(t) && ox(t);
- r && (this.constraints = this.resolveRefConstraints(), n ||= Dre(e, r, () => this.scalePositionWithinConstraints()));
+ let { dragConstraints: t } = this.getProps(), r = sx(t) && cx(t);
+ r && (this.constraints = this.resolveRefConstraints(), n ||= Tre(e, r, () => this.scalePositionWithinConstraints()));
}, { projection: i } = this.visualElement, a = i.addEventListener("measure", r);
- i.layout || (i.root?.updateScroll(), i.updateLayout()), fg.read(r);
- let o = pb(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
- this.isDragging && t && (Xy((t) => {
- if (!cx(t, this.getProps().drag, this.currentDirection)) return;
+ i.layout || (i.root?.updateScroll(), i.updateLayout()), pg.read(r);
+ let o = mb(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
+ this.isDragging && t && ($y((t) => {
+ if (!ux(t, this.getProps().drag, this.currentDirection)) return;
let n = this.getAxisMotionValue(t);
this.originPoint[t] += e[t].translate, n.set(n.get() + e[t].translate);
}), this.visualElement.render());
@@ -20255,7 +20255,7 @@ var Tre = /* @__PURE__ */ new WeakMap(), Ere = class {
};
}
getProps() {
- let e = this.readProps(), { dragElastic: t = tx, dragMomentum: n = !0 } = e;
+ let e = this.readProps(), { dragElastic: t = rx, dragMomentum: n = !0 } = e;
return {
...e,
dragElastic: t,
@@ -20263,32 +20263,32 @@ var Tre = /* @__PURE__ */ new WeakMap(), Ere = class {
};
}
};
-function ax(e) {
+function sx(e) {
return !!e && typeof e == "object" && ("current" in e || "nodeType" in e);
}
-var ox = (e) => "current" in e ? e.current : e;
-function sx(e) {
+var cx = (e) => "current" in e ? e.current : e;
+function lx(e) {
let t = !0;
return () => {
t ? t = !1 : e();
};
}
-function Dre(e, t, n) {
- let r = Vb(e, sx(n)), i = Vb(t, sx(n));
+function Tre(e, t, n) {
+ let r = Hb(e, lx(n)), i = Hb(t, lx(n));
return () => {
r(), i();
};
}
-function cx(e, t, n) {
+function ux(e, t, n) {
return (t === !0 || t === e) && (n === null || n === e);
}
-function Ore(e, t = 10) {
+function Ere(e, t = 10) {
let n = null;
return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
}
// node_modules/motion-dom/dist/es/gestures/utils/setup.mjs
-function lx(e, t) {
- let n = Iv(e), r = new AbortController();
+function dx(e, t) {
+ let n = Rv(e), r = new AbortController();
return [
n,
{
@@ -20296,16 +20296,16 @@ function lx(e, t) {
...t,
signal: r.signal
},
- Pv(() => r.abort())
+ Iv(() => r.abort())
];
}
// node_modules/motion-dom/dist/es/gestures/hover.mjs
-function kre(e) {
- return !(e.pointerType === "touch" || Zb());
+function Dre(e) {
+ return !(e.pointerType === "touch" || Qb());
}
-function Are(e, t, n = {}) {
- t = Fv(t);
- let [r, i, a] = lx(e, n);
+function Ore(e, t, n = {}) {
+ t = Lv(t);
+ let [r, i, a] = dx(e, n);
return r.forEach((e) => {
let n = !1, r = !1, a, o = () => {
e.removeEventListener("pointerleave", u);
@@ -20319,7 +20319,7 @@ function Are(e, t, n = {}) {
e.pointerType !== "touch" && (n ? r = !0 : s(e));
};
e.addEventListener("pointerenter", (n) => {
- if (!kre(n)) return;
+ if (!Dre(n)) return;
r = !1;
let o = t(e, n);
typeof o == "function" && (a = o, e.addEventListener("pointerleave", u, i));
@@ -20327,71 +20327,71 @@ function Are(e, t, n = {}) {
}), a;
}
// node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs
-var ux = (e, t) => t ? e === t || ux(e, t.parentElement) : !1, dx = /* @__PURE__ */ new WeakSet();
+var fx = (e, t) => t ? e === t || fx(e, t.parentElement) : !1, px = /* @__PURE__ */ new WeakSet();
// node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs
-function fx(e) {
+function mx(e) {
return (t) => {
t.key === "Enter" && e(t);
};
}
-function px(e, t) {
+function hx(e, t) {
e.dispatchEvent(new PointerEvent("pointer" + t, {
isPrimary: !0,
bubbles: !0
}));
}
-var jre = (e, t) => {
- let n = !1, r = fx(() => {
- dx.has(e) || (n = !0, px(e, "down"));
- }), i = fx(() => {
- n && (n = !1, px(e, "up"));
+var kre = (e, t) => {
+ let n = !1, r = mx(() => {
+ px.has(e) || (n = !0, hx(e, "down"));
+ }), i = mx(() => {
+ n && (n = !1, hx(e, "up"));
});
e.addEventListener("keydown", r, t), e.addEventListener("keyup", i, t), e.addEventListener("blur", () => {
- e.removeEventListener("keydown", r), e.removeEventListener("keyup", i), n && px(e, "cancel");
+ e.removeEventListener("keydown", r), e.removeEventListener("keyup", i), n && hx(e, "cancel");
}, {
...t,
once: !0
});
};
// node_modules/motion-dom/dist/es/gestures/press/index.mjs
-function mx(e) {
- return Nb(e) && !Zb();
+function gx(e) {
+ return Pb(e) && !Qb();
}
-var hx = /* @__PURE__ */ new WeakSet();
-function Mre(e, t, n = {}) {
- t = Fv(t);
- let [r, i, a] = lx(e, n), o = (e) => {
+var _x = /* @__PURE__ */ new WeakSet();
+function Are(e, t, n = {}) {
+ t = Lv(t);
+ let [r, i, a] = dx(e, n), o = (e) => {
let r = e.currentTarget;
- if (!mx(e) || hx.has(e)) return;
- dx.add(r), n.stopPropagation && hx.add(e);
+ if (!gx(e) || _x.has(e)) return;
+ px.add(r), n.stopPropagation && _x.add(e);
let a = t(r, e), o = {
...i,
capture: !0
}, s = (e, t) => {
- window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), dx.has(r) && dx.delete(r), mx(e) && typeof a == "function" && a(e, { success: t });
+ window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), px.has(r) && px.delete(r), gx(e) && typeof a == "function" && a(e, { success: t });
}, c = (e) => {
- s(e, r === window || r === document || n.useGlobalTarget || ux(r, e.target));
+ s(e, r === window || r === document || n.useGlobalTarget || fx(r, e.target));
}, l = (e) => {
s(e, !1);
};
window.addEventListener("pointerup", c, o), window.addEventListener("pointercancel", l, o);
};
return r.forEach((e) => {
- (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), jv(e) && (e.addEventListener("focus", () => jre(e, i), i), !gre(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
+ (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), Nv(e) && (e.addEventListener("focus", () => kre(e, i), i), !hre(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
}), a;
}
// node_modules/motion-dom/dist/es/render/dom/style-computed.mjs
-function gx(e, t) {
+function vx(e, t) {
let n = window.getComputedStyle(e);
- return w_(t) ? n.getPropertyValue(t) : n[t];
+ return E_(t) ? n.getPropertyValue(t) : n[t];
}
// node_modules/motion-dom/dist/es/render/Feature.mjs
-var _x = class {
+var yx = class {
constructor(e) {
this.isMounted = !1, this.node = e;
}
update() {}
-}, vx = /* @__PURE__ */ new Set([
+}, bx = /* @__PURE__ */ new Set([
"baseFrequency",
"diffuseConstant",
"kernelMatrix",
@@ -20415,58 +20415,58 @@ var _x = class {
"startOffset",
"textLength",
"lengthAdjust"
-]), yx = (e) => typeof e == "string" && e.toLowerCase() === "svg";
+]), xx = (e) => typeof e == "string" && e.toLowerCase() === "svg";
// node_modules/motion-dom/dist/es/render/svg/utils/render.mjs
-function Nre(e, t, n, r) {
- Ab(e, t, void 0, r);
- for (let n in t.attrs) e.setAttribute(vx.has(n) ? n : Hv(n), t.attrs[n]);
+function jre(e, t, n, r) {
+ jb(e, t, void 0, r);
+ for (let n in t.attrs) e.setAttribute(bx.has(n) ? n : Wv(n), t.attrs[n]);
}
// node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs
-function bx(e, t, n) {
- let r = Mb(e, t, n);
- for (let n in e) if (n !== "children" && (vv(e[n]) || vv(t[n]))) {
- let t = u_.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
+function Sx(e, t, n) {
+ let r = Nb(e, t, n);
+ for (let n in e) if (n !== "children" && (bv(e[n]) || bv(t[n]))) {
+ let t = f_.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
r[t] = e[n];
}
return r;
}
// node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs
-var Pre = class extends kb {
+var Mre = class extends Ab {
constructor() {
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = By;
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = Uy;
}
getBaseTargetFromProps(e, t) {
- return d_.has(t) ? super.getBaseTargetFromProps(e, t) ?? s_(t) : e[t];
+ return p_.has(t) ? super.getBaseTargetFromProps(e, t) ?? l_(t) : e[t];
}
getDefaultValue(e) {
- return d_.has(e) ? this.latestValues[e] ?? s_(e) : void 0;
+ return p_.has(e) ? this.latestValues[e] ?? l_(e) : void 0;
}
readValueFromInstance(e, t) {
- if (d_.has(t)) {
- let e = Qg(t);
+ if (p_.has(t)) {
+ let e = e_(t);
return e && e.default || 0;
}
- if (Wv.includes(t)) {
+ if (Kv.includes(t)) {
let n = getComputedStyle(e)[t];
if (typeof n == "string" && n) return n.trim();
}
- return t = vx.has(t) ? t : Hv(t), e.getAttribute(t);
+ return t = bx.has(t) ? t : Wv(t), e.getAttribute(t);
}
scrapeMotionValuesFromProps(e, t, n) {
- return bx(e, t, n);
+ return Sx(e, t, n);
}
build(e, t, n) {
- Gv(e, t, this.isSVGTag, n.transformTemplate, n.style);
+ qv(e, t, this.isSVGTag, n.transformTemplate, n.style);
}
renderInstance(e, t, n, r) {
- Nre(e, t, n, r);
+ jre(e, t, n, r);
}
mount(e) {
- this.isSVGTag = yx(e.tagName), super.mount(e);
+ this.isSVGTag = xx(e.tagName), super.mount(e);
}
};
// node_modules/motion-dom/dist/es/render/utils/shallow-compare.mjs
-function xx(e, t) {
+function Cx(e, t) {
if (!Array.isArray(t)) return !1;
let n = t.length;
if (n !== e.length) return !1;
@@ -20474,18 +20474,18 @@ function xx(e, t) {
return !0;
}
// node_modules/motion-dom/dist/es/render/utils/animation-state.mjs
-var Fre = [...yb].reverse(), Sx = (e) => e?.out === !0 ? e : e?.out;
-function Ire(e) {
- let t = (t) => Promise.all(t.map(({ animation: t, options: n }) => jte(e, t, n))), n = Cx(), r = !0, i = !1;
+var Nre = [...bb].reverse(), wx = (e) => e?.out === !0 ? e : e?.out;
+function Pre(e) {
+ let t = (t) => Promise.all(t.map(({ animation: t, options: n }) => kte(e, t, n))), n = Tx(), r = !0, i = !1;
function a(a) {
- let { props: o, parent: s, manuallyAnimateOnMount: c } = e, { initial: l } = o, u = r || i, d = [], f = (t = l) => typeof t != "boolean" && hv(e, Array.isArray(t) ? t[0] : t, e.presenceContext?.custom) || void 0, p = /* @__PURE__ */ new Map(), m = {}, h = Infinity, g = e;
+ let { props: o, parent: s, manuallyAnimateOnMount: c } = e, { initial: l } = o, u = r || i, d = [], f = (t = l) => typeof t != "boolean" && _v(e, Array.isArray(t) ? t[0] : t, e.presenceContext?.custom) || void 0, p = /* @__PURE__ */ new Map(), m = {}, h = Infinity, g = e;
do
g = g.props.inherit !== !1 && g.parent;
while (g && !g.isControllingVariants);
- let _ = u && Sx(f(l ?? (g && g.props.initial))?.transition);
- if (Fre.forEach((t, r) => {
- let i = n[t], l = o[t], f = g && g.props[t], v = l === void 0 ? vb(f) || f === !1 ? f : void 0 : l, y = vb(v), b = t === a ? i.isActive : null, x = y && l === void 0 && !(u && c);
- if (i.protectedKeys = { ...m }, !i.isActive && b === null || !v && !i.prevProp || _b(v) || typeof v == "boolean") return;
+ let _ = u && wx(f(l ?? (g && g.props.initial))?.transition);
+ if (Nre.forEach((t, r) => {
+ let i = n[t], l = o[t], f = g && g.props[t], v = l === void 0 ? yb(f) || f === !1 ? f : void 0 : l, y = yb(v), b = t === a ? i.isActive : null, x = y && l === void 0 && !(u && c);
+ if (i.protectedKeys = { ...m }, !i.isActive && b === null || !v && !i.prevProp || vb(v) || typeof v == "boolean") return;
if (b === !1 && (h = r), t === "exit" && i.isActive && b !== !0) {
m = {
...m,
@@ -20493,14 +20493,14 @@ function Ire(e) {
};
return;
}
- let S = Lre(i.prevProp, v), C = S || y && (b && !x || r > h), w = !1, T = Array.isArray(v) ? v : [v], E = {}, D;
+ let S = Fre(i.prevProp, v), C = S || y && (b && !x || r > h), w = !1, T = Array.isArray(v) ? v : [v], E = {}, D;
if (b !== !1) for (let n of T) {
- let { transition: r, transitionEnd: i, ...a } = hv(e, n, gv(e, t)) || {};
+ let { transition: r, transitionEnd: i, ...a } = _v(e, n, vv(e, t)) || {};
E = {
...E,
...a,
...i
- }, D = Sx(r) || D;
+ }, D = wx(r) || D;
}
let { prevResolvedValues: O } = i;
for (let t in {
@@ -20508,7 +20508,7 @@ function Ire(e) {
...E
}) {
if (t in m) continue;
- let n = E[t], r = O[t], a = Array.isArray(n) && Array.isArray(r) ? !xx(n, r) || S : n !== r, o;
+ let n = E[t], r = O[t], a = Array.isArray(n) && Array.isArray(r) ? !Cx(n, r) || S : n !== r, o;
if (a && n == null) p.has(t) || p.set(t, i.prevOut);
else if (a || n !== void 0 && p.has(t)) {
C = !0, o = p.get(t) || _, p.delete(t) && (w = !0), i.needsAnimating[t] = !0;
@@ -20523,8 +20523,8 @@ function Ire(e) {
}), C && (!(x && S) || w)) for (let n of T) {
let r = { type: t };
if (typeof n == "string" && u && c && s?.enteringChildren) {
- let t = hv(s, n)?.transition?.delayChildren;
- r.delay = av(s.enteringChildren, e, t);
+ let t = _v(s, n)?.transition?.delayChildren;
+ r.delay = sv(s.enteringChildren, e, t);
}
d.push({
animation: n,
@@ -20541,7 +20541,7 @@ function Ire(e) {
let s = e.getValue(a);
s && (s.liveStyle = !0);
let c = n && !Array.isArray(l) ? n[a] : void 0, u = e.getBaseTargetFromProps(o, a);
- t[a] = (c === void 0 ? u !== void 0 && !vv(u) ? u : e.initialValues[a] === void 0 ? e.baseTarget[a] : void 0 : c) ?? null;
+ t[a] = (c === void 0 ? u !== void 0 && !bv(u) ? u : e.initialValues[a] === void 0 ? e.baseTarget[a] : void 0 : c) ?? null;
}), r && (t.transition = r), d.push({ animation: t });
}
let v = u && e.blockInitialAnimation || r && !c && (o.initial === !1 || o.initial === o.animate);
@@ -20562,16 +20562,16 @@ function Ire(e) {
},
getState: () => n,
reset: () => {
- n = Cx(), i = !0;
+ n = Tx(), i = !0;
}
};
}
-function Lre(e, t) {
- return typeof t == "string" ? t !== e : Array.isArray(t) ? !xx(t, e) : !1;
+function Fre(e, t) {
+ return typeof t == "string" ? t !== e : Array.isArray(t) ? !Cx(t, e) : !1;
}
-function Cx() {
+function Tx() {
let e = {};
- for (let t of yb) e[t] = {
+ for (let t of bb) e[t] = {
isActive: t === "animate",
protectedKeys: {},
needsAnimating: {},
@@ -20581,55 +20581,55 @@ function Cx() {
return e;
}
// node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs
-var wx = /* @__PURE__ */ (0, F.createContext)({
+var Ex = /* @__PURE__ */ (0, F.createContext)({
transformPagePoint: (e) => e,
isStatic: !1,
reducedMotion: "never"
});
// node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs
-function Tx(e, t) {
+function Dx(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
-function Rre(...e) {
+function Ire(...e) {
return (t) => {
let n = !1, r = e.map((e) => {
- let r = Tx(e, t);
+ let r = Dx(e, t);
return !n && typeof r == "function" && (n = !0), r;
});
if (n) return () => {
for (let t = 0; t < r.length; t++) {
let n = r[t];
- typeof n == "function" ? n() : Tx(e[t], null);
+ typeof n == "function" ? n() : Dx(e[t], null);
}
};
};
}
-function zre(...e) {
- return F.useCallback(Rre(...e), e);
+function Lre(...e) {
+ return F.useCallback(Ire(...e), e);
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs
-var Ex = (e) => {
+var Ox = (e) => {
let { width: t, height: n } = e?.getBoundingClientRect() || {};
return [t / e?.offsetWidth || 1, n / e?.offsetHeight || 1];
-}, Dx = (e) => {
+}, kx = (e) => {
let { left: t, top: n } = e.getBoundingClientRect(), r = e;
for (; r = r.parentElement || r.parentNode?.host;) {
let { scrollLeft: e, scrollTop: i } = r;
if (e || i) {
- let [a, o] = Ex(r);
+ let [a, o] = Ox(r);
t += e * a, n += i * o;
}
if (getComputedStyle(r).position === "fixed") break;
}
- let [i, a] = Ex(e.offsetParent);
+ let [i, a] = Ox(e.offsetParent);
return [t / i, n / a];
-}, Bre = class extends F.Component {
+}, Rre = class extends F.Component {
getSnapshotBeforeUpdate(e) {
let t = this.props.getElement();
- if (jv(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
- let e = t.offsetParent, n = jv(e) && e.offsetWidth || 0, r = jv(e) && e.offsetHeight || 0, i = getComputedStyle(t), a = this.props.sizeRef.current;
- a.height = parseFloat(i.height), a.width = parseFloat(i.width), a.top = t.offsetTop, a.left = t.offsetLeft, a.right = n - a.width - a.left, a.bottom = r - a.height - a.top, a.direction = i.direction, a.point = Dx(t);
+ if (Nv(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
+ let e = t.offsetParent, n = Nv(e) && e.offsetWidth || 0, r = Nv(e) && e.offsetHeight || 0, i = getComputedStyle(t), a = this.props.sizeRef.current;
+ a.height = parseFloat(i.height), a.width = parseFloat(i.width), a.top = t.offsetTop, a.left = t.offsetLeft, a.right = n - a.width - a.left, a.bottom = r - a.height - a.top, a.direction = i.direction, a.point = kx(t);
}
return null;
}
@@ -20638,7 +20638,7 @@ var Ex = (e) => {
return this.props.children;
}
};
-function Vre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a, popNode: o }) {
+function zre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a, popNode: o }) {
let s = (0, F.useId)(), c = (0, F.useRef)(null), l = (0, F.useRef)({
width: 0,
height: 0,
@@ -20647,7 +20647,7 @@ function Vre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
right: 0,
bottom: 0,
direction: "ltr"
- }), { nonce: u } = (0, F.useContext)(wx), d = zre(c, a === !1 ? void 0 : e.props?.ref ?? e?.ref), f = () => c.current || o?.current?.current, p = (e) => {
+ }), { nonce: u } = (0, F.useContext)(Ex), d = Lre(c, a === !1 ? void 0 : e.props?.ref ?? e?.ref), f = () => c.current || o?.current?.current, p = (e) => {
let { width: t, height: i, top: a, left: o, right: c, bottom: u, direction: d } = l.current, f = d === "rtl", p = n === "left" ? f ? `right:${c}` : `left:${o}` : f ? `left:${o}` : `right:${c}`, m = r === "bottom" ? `bottom:${u}` : `top:${a}`;
e?.insertRule(`[data-motion-pop-id="${s}"]{position:absolute!important;width:${t}px!important;height:${i}px!important;${p}px!important;${m}px!important}`);
};
@@ -20660,10 +20660,10 @@ function Vre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
let d = i ?? o.head;
d.appendChild(c), p(c.sheet);
let m = 0, h = 0;
- return py.setup(() => {
- let [e, t] = Dx(r);
+ return hy.setup(() => {
+ let [e, t] = kx(r);
m = l.current.point[0] - e, h = l.current.point[1] - t;
- }), py.read(() => {
+ }), hy.read(() => {
let { sheet: e } = c;
if (!e || !m && !h) return;
let t = l.current;
@@ -20671,7 +20671,7 @@ function Vre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
}), () => {
r.removeAttribute("data-motion-pop-id"), d.contains(c) && d.removeChild(c);
};
- }, [t]), (0, I.jsx)(Bre, {
+ }, [t]), (0, I.jsx)(Rre, {
isPresent: t,
getElement: f,
sizeRef: l,
@@ -20680,8 +20680,8 @@ function Vre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
});
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs
-var Hre = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
- let u = dm(Ure), d = (0, F.useId)(), f = (0, F.useRef)(), p = (0, F.useRef)(n), m = (0, F.useRef)(r);
+var Bre = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
+ let u = dm(Vre), d = (0, F.useId)(), f = (0, F.useRef)(), p = (0, F.useRef)(n), m = (0, F.useRef)(r);
fm(() => {
p.current = n, m.current = r;
});
@@ -20707,7 +20707,7 @@ var Hre = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i
u.forEach((e, t) => u.set(t, !1));
}, [n]), F.useEffect(() => {
!n && !u.size && r && r();
- }, [n]), e = (0, I.jsx)(Vre, {
+ }, [n]), e = (0, I.jsx)(zre, {
pop: o === "popLayout",
isPresent: n,
anchorX: s,
@@ -20720,11 +20720,11 @@ var Hre = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i
children: e
});
};
-function Ure() {
+function Vre() {
return /* @__PURE__ */ new Map();
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs
-function Ox(e = !0) {
+function Ax(e = !0) {
let t = (0, F.useContext)(pm);
if (t === null) return [!0, null];
let { isPresent: n, onExitComplete: r, register: i } = t, a = (0, F.useId)();
@@ -20738,23 +20738,23 @@ function Ox(e = !0) {
]);
return !n && r ? [!1, o] : [!0];
}
-function kx() {
- return Wre((0, F.useContext)(pm));
+function jx() {
+ return Hre((0, F.useContext)(pm));
}
-function Wre(e) {
+function Hre(e) {
return e === null || e.isPresent;
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs
-var Ax = (e) => e.key || "";
-function jx(e) {
+var Mx = (e) => e.key || "";
+function Nx(e) {
let t = [];
return F.Children.forEach(e, (e) => {
(0, F.isValidElement)(e) && t.push(e);
}), t;
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs
-var Mx = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: o = !1, anchorX: s = "left", anchorY: c = "top", root: l }) => {
- let [u, d] = Ox(o), f = (0, F.useMemo)(() => jx(e), [e]), p = o && !u ? [] : f.map(Ax), m = (0, F.useRef)(!0), h = dm(() => /* @__PURE__ */ new Map()), g = (0, F.useRef)(/* @__PURE__ */ new Set()), [_, v] = (0, F.useState)(f), [y, b] = (0, F.useState)(f);
+var Px = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: o = !1, anchorX: s = "left", anchorY: c = "top", root: l }) => {
+ let [u, d] = Ax(o), f = (0, F.useMemo)(() => Nx(e), [e]), p = o && !u ? [] : f.map(Mx), m = (0, F.useRef)(!0), h = dm(() => /* @__PURE__ */ new Map()), g = (0, F.useRef)(/* @__PURE__ */ new Set()), [_, v] = (0, F.useState)(f), [y, b] = (0, F.useState)(f);
fm(() => {
o && !u && !y.length && d?.();
}, [
@@ -20770,7 +20770,7 @@ var Mx = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
}, [y]), fm(() => {
m.current = !1;
for (let e = 0; e < y.length; e++) {
- let t = Ax(y[e]);
+ let t = Mx(y[e]);
p.includes(t) ? (h.delete(t), g.current.delete(t)) : h.get(t) !== !0 && h.set(t, !1);
}
}, [
@@ -20782,15 +20782,15 @@ var Mx = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
if (f !== _) {
let e = [...f], t = 0;
for (let n of y) {
- let r = p.indexOf(Ax(n));
+ let r = p.indexOf(Mx(n));
r === -1 ? (e.splice(t++, 0, n), S.push(n)) : t = r + S.length + 1;
}
- return S.every((e) => h.get(Ax(e))) ? e = f : a === "wait" && (e = S), b(jx(e)), v(f), null;
+ return S.every((e) => h.get(Mx(e))) ? e = f : a === "wait" && (e = S), b(Nx(e)), v(f), null;
}
let { forceRender: C } = (0, F.useContext)(um);
return (0, I.jsx)(I.Fragment, { children: y.map((e) => {
- let _ = Ax(e), b = o && !u ? !1 : f === y || p.includes(_);
- return (0, I.jsx)(Hre, {
+ let _ = Mx(e), b = o && !u ? !1 : f === y || p.includes(_);
+ return (0, I.jsx)(Bre, {
isPresent: b,
initial: !m.current || n ? void 0 : !1,
custom: t,
@@ -20811,8 +20811,8 @@ var Mx = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
children: e
}, _);
}) });
-}, Nx = /* @__PURE__ */ (0, F.createContext)({ strict: !1 }), Px = {
- animation: ["variants", ...yb],
+}, Fx = /* @__PURE__ */ (0, F.createContext)({ strict: !1 }), Ix = {
+ animation: ["variants", ...bb],
exit: ["exit"],
drag: ["drag", "dragControls"],
focus: ["whileFocus"],
@@ -20839,32 +20839,32 @@ var Mx = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
"onViewportLeave"
],
layout: ["layout", "layoutId"]
-}, Fx = !1;
-function Gre() {
- if (Fx) return;
+}, Lx = !1;
+function Ure() {
+ if (Lx) return;
let e = {};
- for (let t in Px) e[t] = { isEnabled: (e) => Px[t].some((t) => !!e[t]) };
- Ob(e), Fx = !0;
+ for (let t in Ix) e[t] = { isEnabled: (e) => Ix[t].some((t) => !!e[t]) };
+ kb(e), Lx = !0;
}
-function Ix() {
- return Gre(), $ne();
+function Rx() {
+ return Ure(), Qne();
}
// node_modules/framer-motion/dist/es/motion/features/load-features.mjs
-function Kre(e) {
- let t = Ix();
+function Wre(e) {
+ let t = Rx();
for (let n in e) t[n] = {
...t[n],
...e[n]
};
- Ob(t);
+ kb(t);
}
// node_modules/framer-motion/dist/es/components/MotionConfig/index.mjs
-function qre({ children: e, ...t }) {
- let n = (0, F.useContext)(wx);
+function Gre({ children: e, ...t }) {
+ let n = (0, F.useContext)(Ex);
t = {
...n,
...t
- }, t.transition = uv(t.transition, n.transition), t.isStatic = dm(() => t.isStatic);
+ }, t.transition = fv(t.transition, n.transition), t.isStatic = dm(() => t.isStatic);
let r = (0, F.useMemo)(() => t, [
JSON.stringify(t.transition),
t.transformPagePoint,
@@ -20872,77 +20872,77 @@ function qre({ children: e, ...t }) {
t.skipAnimations,
t.isValidProp
]);
- return (0, I.jsx)(wx.Provider, {
+ return (0, I.jsx)(Ex.Provider, {
value: r,
children: e
});
}
// node_modules/framer-motion/dist/es/context/MotionContext/index.mjs
-var Lx = /* @__PURE__ */ (0, F.createContext)({});
+var zx = /* @__PURE__ */ (0, F.createContext)({});
// node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs
-function Jre(e, t) {
- if (xb(e)) {
+function Kre(e, t) {
+ if (Sb(e)) {
let { initial: t, animate: n } = e;
return {
- initial: t === !1 || vb(t) ? t : void 0,
- animate: vb(n) ? n : void 0
+ initial: t === !1 || yb(t) ? t : void 0,
+ animate: yb(n) ? n : void 0
};
}
return e.inherit === !1 ? {} : t;
}
// node_modules/framer-motion/dist/es/context/MotionContext/create.mjs
-function Yre(e) {
- let { initial: t, animate: n } = Jre(e, (0, F.useContext)(Lx));
+function qre(e) {
+ let { initial: t, animate: n } = Kre(e, (0, F.useContext)(zx));
return (0, F.useMemo)(() => ({
initial: t,
animate: n
- }), [Rx(t), Rx(n)]);
+ }), [Bx(t), Bx(n)]);
}
-function Rx(e) {
+function Bx(e) {
return Array.isArray(e) ? e.join(" ") : e;
}
// node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs
-var zx = () => ({
+var Vx = () => ({
style: {},
transform: {},
transformOrigin: {},
vars: {}
});
// node_modules/framer-motion/dist/es/render/html/use-props.mjs
-function Bx(e, t, n) {
- for (let r in t) !vv(t[r]) && !jb(r, n) && (e[r] = t[r]);
+function Hx(e, t, n) {
+ for (let r in t) !bv(t[r]) && !Mb(r, n) && (e[r] = t[r]);
}
-function Xre({ transformTemplate: e }, t) {
+function Jre({ transformTemplate: e }, t) {
return (0, F.useMemo)(() => {
- let n = zx();
- return Uv(n, t, e), Object.assign({}, n.vars, n.style);
+ let n = Vx();
+ return Gv(n, t, e), Object.assign({}, n.vars, n.style);
}, [t]);
}
-function Zre(e, t) {
+function Yre(e, t) {
let n = e.style || {}, r = {};
- return Bx(r, n, e), Object.assign(r, Xre(e, t)), r;
+ return Hx(r, n, e), Object.assign(r, Jre(e, t)), r;
}
-function Qre(e, t) {
- let n = {}, r = Zre(e, t);
+function Xre(e, t) {
+ let n = {}, r = Yre(e, t);
return e.drag && e.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = r, n;
}
// node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs
-var Vx = () => ({
- ...zx(),
+var Ux = () => ({
+ ...Vx(),
attrs: {}
});
// node_modules/framer-motion/dist/es/render/svg/use-props.mjs
-function $re(e, t, n, r) {
+function Zre(e, t, n, r) {
let i = (0, F.useMemo)(() => {
- let n = Vx();
- return Gv(n, t, yx(r), e.transformTemplate, e.style), {
+ let n = Ux();
+ return qv(n, t, xx(r), e.transformTemplate, e.style), {
...n.attrs,
style: { ...n.style }
};
}, [t]);
if (e.style) {
let t = {};
- return Bx(t, e.style, e), {
+ return Hx(t, e.style, e), {
...i,
style: {
...t,
@@ -20953,21 +20953,21 @@ function $re(e, t, n, r) {
return i;
}
// node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs
-var eie = /* @__PURE__ */ new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
-function Hx(e) {
- return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || eie.has(e);
+var Qre = /* @__PURE__ */ new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
+function Wx(e) {
+ return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || Qre.has(e);
}
// node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs
-function tie(e, t) {
- return e.startsWith("on") ? !Hx(e) : t?.(e) ?? !Hx(e);
+function $re(e, t) {
+ return e.startsWith("on") ? !Wx(e) : t?.(e) ?? !Wx(e);
}
-function nie(e, t, n, r) {
+function eie(e, t, n, r) {
let i = {};
- for (let a in e) a === "values" && typeof e.values == "object" || vv(e[a]) || (tie(a, r) || n === !0 && Hx(a) || !t && !Hx(a) || e.draggable && a.startsWith("onDrag")) && (i[a] = e[a]);
+ for (let a in e) a === "values" && typeof e.values == "object" || bv(e[a]) || ($re(a, r) || n === !0 && Wx(a) || !t && !Wx(a) || e.draggable && a.startsWith("onDrag")) && (i[a] = e[a]);
return i;
}
// node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs
-var rie = [
+var tie = [
"animate",
"circle",
"defs",
@@ -20995,40 +20995,40 @@ var rie = [
"view"
];
// node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs
-function Ux(e) {
- return typeof e != "string" || e.includes("-") ? !1 : !!(rie.indexOf(e) > -1 || /[A-Z]/u.test(e));
+function Gx(e) {
+ return typeof e != "string" || e.includes("-") ? !1 : !!(tie.indexOf(e) > -1 || /[A-Z]/u.test(e));
}
// node_modules/framer-motion/dist/es/render/dom/use-render.mjs
-function iie(e, t, n, { latestValues: r }, i, a = !1, o, s) {
- let c = (o ?? Ux(e) ? $re : Qre)(t, r, i, e), l = nie(t, typeof e == "string", a, s), u = e === F.Fragment ? {} : {
+function nie(e, t, n, { latestValues: r }, i, a = !1, o, s) {
+ let c = (o ?? Gx(e) ? Zre : Xre)(t, r, i, e), l = eie(t, typeof e == "string", a, s), u = e === F.Fragment ? {} : {
...l,
...c,
ref: n
- }, { children: d } = t, f = (0, F.useMemo)(() => vv(d) ? d.get() : d, [d]);
+ }, { children: d } = t, f = (0, F.useMemo)(() => bv(d) ? d.get() : d, [d]);
return (0, F.createElement)(e, {
...u,
children: f
});
}
// node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs
-function aie({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
+function rie({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
return {
- latestValues: oie(n, r, i, e),
+ latestValues: iie(n, r, i, e),
renderState: t()
};
}
-function oie(e, t, n, r) {
+function iie(e, t, n, r) {
let i = {}, a = r(e, {});
- for (let e in a) i[e] = _y(a[e]);
- let { initial: o, animate: s } = e, c = xb(e), l = Sb(e);
+ for (let e in a) i[e] = yy(a[e]);
+ let { initial: o, animate: s } = e, c = Sb(e), l = Cb(e);
t && l && !c && e.inherit !== !1 && (o === void 0 && (o = t.initial), s === void 0 && (s = t.animate));
let u = n ? n.initial === !1 : !1;
u ||= o === !1;
let d = u ? s : o;
- if (d && typeof d != "boolean" && !_b(d)) {
+ if (d && typeof d != "boolean" && !vb(d)) {
let t = Array.isArray(d) ? d : [d];
for (let n = 0; n < t.length; n++) {
- let r = mv(e, t[n]);
+ let r = gv(e, t[n]);
if (r) {
let { transitionEnd: e, transition: t, ...n } = r;
for (let e in n) {
@@ -21045,18 +21045,18 @@ function oie(e, t, n, r) {
}
return i;
}
-var Wx = (e) => (t, n) => {
- let r = (0, F.useContext)(Lx), i = (0, F.useContext)(pm), a = () => aie(e, t, r, i);
+var Kx = (e) => (t, n) => {
+ let r = (0, F.useContext)(zx), i = (0, F.useContext)(pm), a = () => rie(e, t, r, i);
return n ? a() : dm(a);
-}, sie = /*@__PURE__*/ Wx({
- scrapeMotionValuesFromProps: Mb,
- createRenderState: zx
-}), cie = /*@__PURE__*/ Wx({
- scrapeMotionValuesFromProps: bx,
+}, aie = /*@__PURE__*/ Kx({
+ scrapeMotionValuesFromProps: Nb,
createRenderState: Vx
-}), lie = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
+}), oie = /*@__PURE__*/ Kx({
+ scrapeMotionValuesFromProps: Sx,
+ createRenderState: Ux
+}), sie = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
// node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs
-function uie(e, t, n) {
+function cie(e, t, n) {
let r = (0, F.useRef)(n);
(0, F.useInsertionEffect)(() => {
r.current = n;
@@ -21074,10 +21074,10 @@ function uie(e, t, n) {
}, [t]);
}
// node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs
-var Gx = /* @__PURE__ */ (0, F.createContext)({});
+var qx = /* @__PURE__ */ (0, F.createContext)({});
// node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs
-function die(e, t, n, r, i, a) {
- let { visualElement: o } = (0, F.useContext)(Lx), s = (0, F.useContext)(Nx), c = (0, F.useContext)(pm), l = (0, F.useContext)(wx), u = l.reducedMotion, d = l.skipAnimations, f = (0, F.useRef)(null), p = (0, F.useRef)(!1);
+function lie(e, t, n, r, i, a) {
+ let { visualElement: o } = (0, F.useContext)(zx), s = (0, F.useContext)(Fx), c = (0, F.useContext)(pm), l = (0, F.useContext)(Ex), u = l.reducedMotion, d = l.skipAnimations, f = (0, F.useRef)(null), p = (0, F.useRef)(!1);
r ||= s.renderer, !f.current && r && (f.current = r(e, {
visualState: t,
parent: o,
@@ -21088,11 +21088,11 @@ function die(e, t, n, r, i, a) {
skipAnimations: d,
isSVG: a
}), p.current && f.current && (f.current.manuallyAnimateOnMount = !0));
- let m = f.current, h = (0, F.useContext)(Gx);
+ let m = f.current, h = (0, F.useContext)(qx);
m && !m.projection && i && (m.type === "html" || m.type === "svg") && i.create(m, n, h), (0, F.useInsertionEffect)(() => {
m && m.props !== n && m.update(n, c);
});
- let g = n[bv], _ = (0, F.useRef)(!!g && typeof window < "u" && !window.MotionHandoffIsComplete?.(g) && window.MotionHasOptimisedAnimation?.(g));
+ let g = n[Sv], _ = (0, F.useRef)(!!g && typeof window < "u" && !window.MotionHandoffIsComplete?.(g) && window.MotionHasOptimisedAnimation?.(g));
return fm(() => {
p.current && m && (m.animationState?.animateChanges(), m.enteringChildren = void 0);
}, []), fm(() => {
@@ -21104,46 +21104,46 @@ function die(e, t, n, r, i, a) {
}), m;
}
// node_modules/framer-motion/dist/es/motion/index.mjs
-function Kx(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
- r && Kre(r);
- let a = n ? n === "svg" : Ux(e), o = a ? cie : sie;
+function Jx(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
+ r && Wre(r);
+ let a = n ? n === "svg" : Gx(e), o = a ? oie : aie;
function s(n, s) {
- let c, l = fie(n);
- dm(() => !!mb.current?.sharedNodes.get(l)?.lead && n.initial) && (n = {
+ let c, l = uie(n);
+ dm(() => !!hb.current?.sharedNodes.get(l)?.lead && n.initial) && (n = {
...n,
initial: !1
});
let u = {
- ...(0, F.useContext)(wx),
+ ...(0, F.useContext)(Ex),
...n,
layoutId: l
- }, { isStatic: d, isValidProp: f } = u, p = Yre(n), m = o(n, d);
+ }, { isStatic: d, isValidProp: f } = u, p = qre(n), m = o(n, d);
if (!d && typeof window < "u") {
- pie(u, r);
- let t = mie(u);
- p.visualElement = die(e, m, u, i, t.ProjectionNode, a), (t.isEnabled || p.visualElement?.projection?.options.layoutId) && (c = t.MeasureLayout);
+ die(u, r);
+ let t = fie(u);
+ p.visualElement = lie(e, m, u, i, t.ProjectionNode, a), (t.isEnabled || p.visualElement?.projection?.options.layoutId) && (c = t.MeasureLayout);
}
- return (0, I.jsxs)(Lx.Provider, {
+ return (0, I.jsxs)(zx.Provider, {
value: p,
children: [c && p.visualElement ? (0, I.jsx)(c, {
visualElement: p.visualElement,
...u
- }) : null, iie(e, n, uie(m, p.visualElement, s), m, d, t, a, f)]
+ }) : null, nie(e, n, cie(m, p.visualElement, s), m, d, t, a, f)]
});
}
s.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;
let c = (0, F.forwardRef)(s);
- return c[lie] = e, c;
+ return c[sie] = e, c;
}
-function fie({ layoutId: e }) {
+function uie({ layoutId: e }) {
let t = (0, F.useContext)(um).id;
return t && e !== void 0 ? t + "-" + e : e;
}
-function pie(e, t) {
- (0, F.useContext)(Nx).strict;
+function die(e, t) {
+ (0, F.useContext)(Fx).strict;
}
-function mie(e) {
- let { drag: t, layout: n } = Ix();
+function fie(e) {
+ let { drag: t, layout: n } = Rx();
if (!t && !n) return {};
let r = {
...t,
@@ -21156,19 +21156,19 @@ function mie(e) {
};
}
// node_modules/framer-motion/dist/es/render/components/create-proxy.mjs
-function hie(e, t) {
- if (typeof Proxy > "u") return Kx;
- let n = /* @__PURE__ */ new Map(), r = (n, r) => Kx(n, r, e, t);
- return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, Kx(a, void 0, e, t)), n.get(a)) });
+function pie(e, t) {
+ if (typeof Proxy > "u") return Jx;
+ let n = /* @__PURE__ */ new Map(), r = (n, r) => Jx(n, r, e, t);
+ return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, Jx(a, void 0, e, t)), n.get(a)) });
}
// node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs
-var gie = (e, t) => t.isSVG ?? Ux(e) ? new Pre(t) : new nre(t, { allowProjection: e !== F.Fragment }), _ie = class extends _x {
+var mie = (e, t) => t.isSVG ?? Gx(e) ? new Mre(t) : new tre(t, { allowProjection: e !== F.Fragment }), hie = class extends yx {
constructor(e) {
- super(e), e.animationState ||= Ire(e);
+ super(e), e.animationState ||= Pre(e);
}
updateAnimationControlsSubscription() {
let { animate: e } = this.node.getProps();
- _b(e) && (this.unmountControls = e.subscribe(this.node));
+ vb(e) && (this.unmountControls = e.subscribe(this.node));
}
mount() {
this.updateAnimationControlsSubscription();
@@ -21179,11 +21179,11 @@ var gie = (e, t) => t.isSVG ?? Ux(e) ? new Pre(t) : new nre(t, { allowProjection
unmount() {
this.node.animationState.reset(), this.unmountControls?.();
}
-}, vie = 0, yie = {
- animation: { Feature: _ie },
- exit: { Feature: class extends _x {
+}, gie = 0, _ie = {
+ animation: { Feature: hie },
+ exit: { Feature: class extends yx {
constructor() {
- super(...arguments), this.id = vie++;
+ super(...arguments), this.id = gie++;
}
update() {
let { presenceContext: e, prevPresenceContext: t, animationState: n } = this.node;
@@ -21194,7 +21194,7 @@ var gie = (e, t) => t.isSVG ?? Ux(e) ? new Pre(t) : new nre(t, { allowProjection
if (this.exit === !0) {
let { initial: e } = this.node.getProps();
if (e && !Array.isArray(e)) {
- let { transition: t, transitionEnd: n, ...r } = hv(this.node, e) || {};
+ let { transition: t, transitionEnd: n, ...r } = _v(this.node, e) || {};
for (let e in r) this.node.getValue(e)?.jump(r[e]);
}
this.node.blockInitialAnimation = !1, n.reset(), n.animateChanges();
@@ -21213,9 +21213,9 @@ var gie = (e, t) => t.isSVG ?? Ux(e) ? new Pre(t) : new nre(t, { allowProjection
}
unmount() {}
} }
-}, bie = class extends _x {
+}, vie = class extends yx {
constructor(e) {
- super(e), this.removeGroupControls = Sm, this.removeListeners = Sm, this.controls = new Ere(e);
+ super(e), this.removeGroupControls = Sm, this.removeListeners = Sm, this.controls = new wre(e);
}
mount() {
let { dragControls: e } = this.node.getProps();
@@ -21228,14 +21228,14 @@ var gie = (e, t) => t.isSVG ?? Ux(e) ? new Pre(t) : new nre(t, { allowProjection
unmount() {
this.removeGroupControls(), this.removeListeners(), this.controls.isDragging || this.controls.endPanSession();
}
-}, qx = (e) => (t, n) => {
- e && fg.update(() => e(t, n), !1, !0);
-}, xie = class extends _x {
+}, Yx = (e) => (t, n) => {
+ e && pg.update(() => e(t, n), !1, !0);
+}, yie = class extends yx {
constructor() {
super(...arguments), this.removePointerDownListener = Sm;
}
onPointerDown(e) {
- this.session = new Wb(e, this.createPanHandlers(), {
+ this.session = new Gb(e, this.createPanHandlers(), {
transformPagePoint: this.node.getTransformPagePoint(),
contextWindow: this.node.current?.ownerDocument.defaultView
});
@@ -21243,16 +21243,16 @@ var gie = (e, t) => t.isSVG ?? Ux(e) ? new Pre(t) : new nre(t, { allowProjection
createPanHandlers() {
let { onPanSessionStart: e, onPanStart: t, onPan: n, onPanEnd: r } = this.node.getProps();
return {
- onSessionStart: qx(e),
- onStart: qx(t),
- onMove: qx(n),
+ onSessionStart: Yx(e),
+ onStart: Yx(t),
+ onMove: Yx(n),
onEnd: (e, t) => {
- delete this.session, r && fg.postRender(() => r(e, t));
+ delete this.session, r && pg.postRender(() => r(e, t));
}
};
}
mount() {
- this.removePointerDownListener = Fb(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
+ this.removePointerDownListener = Ib(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
}
update() {
this.session?.updateHandlers(this.createPanHandlers());
@@ -21260,12 +21260,12 @@ var gie = (e, t) => t.isSVG ?? Ux(e) ? new Pre(t) : new nre(t, { allowProjection
unmount() {
this.removePointerDownListener(), this.session?.end();
}
-}, Jx = !1, Yx = ({ layout: e, layoutDependency: t, layoutAnchor: n }) => ({
+}, Xx = !1, Zx = ({ layout: e, layoutDependency: t, layoutAnchor: n }) => ({
layout: e,
layoutDependency: t,
layoutAnchor: n,
animationType: typeof e == "string" ? e : "both"
-}), Xx = (e, t) => {
+}), Qx = (e, t) => {
let { snapshot: n } = e, r = e.getStack();
r?.remove(e);
let i = r?.lead;
@@ -21274,33 +21274,33 @@ var gie = (e, t) => t.isSVG ?? Ux(e) ? new Pre(t) : new nre(t, { allowProjection
let { resumeFrom: t } = e;
t?.isPresent !== !1 && e.getStack().members.includes(t) && (t.hide(), e.resumeFrom = void 0, e.snapshot = n);
};
-}, Sie = class extends F.Component {
+}, bie = class extends F.Component {
componentDidMount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n, layoutId: r } = this.props, { projection: i } = e;
- i && (t.group?.add(i), r && n?.register?.(i), Jx && i.root.didUpdate(), i.options.layoutId !== r && Xx(i, r)?.(), i.addEventListener("animationComplete", () => this.safeToRemove()), i.setOptions({
+ i && (t.group?.add(i), r && n?.register?.(i), Xx && i.root.didUpdate(), i.options.layoutId !== r && Qx(i, r)?.(), i.addEventListener("animationComplete", () => this.safeToRemove()), i.setOptions({
...i.options,
- ...Yx(this.props),
+ ...Zx(this.props),
onExitComplete: () => this.safeToRemove()
- })), Zy.hasEverUpdated = !0;
+ })), eb.hasEverUpdated = !0;
}
getSnapshotBeforeUpdate(e) {
let { layoutDependency: t, layoutId: n, visualElement: r, drag: i, isPresent: a } = this.props, { projection: o } = r;
- return o && (o.isPresent = a, this.takeOver = e.layoutId === n ? void 0 : (o.willUpdate(), Xx(o, n)), o.setOptions({
+ return o && (o.isPresent = a, this.takeOver = e.layoutId === n ? void 0 : (o.willUpdate(), Qx(o, n)), o.setOptions({
...o.options,
- ...Yx(this.props)
- }), Jx = !0, i || e.layoutDependency !== t || t === void 0 || e.isPresent !== a ? o.willUpdate() : this.safeToRemove(), e.isPresent !== a && (a ? o.promote() : o.relegate() || fg.postRender(() => {
+ ...Zx(this.props)
+ }), Xx = !0, i || e.layoutDependency !== t || t === void 0 || e.isPresent !== a ? o.willUpdate() : this.safeToRemove(), e.isPresent !== a && (a ? o.promote() : o.relegate() || pg.postRender(() => {
o.getStack()?.members.length || this.safeToRemove();
}))), null;
}
componentDidUpdate() {
let { projection: e } = this.props.visualElement;
- e && (this.takeOver?.(), e.root.didUpdate(), py.postRender(() => {
+ e && (this.takeOver?.(), e.root.didUpdate(), hy.postRender(() => {
!e.currentAnimation && e.isLead() && this.safeToRemove();
}));
}
componentWillUnmount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n } = this.props, { projection: r } = e;
- Jx = !0, r && (r.scheduleCheckAfterUnmount(), t.group?.remove(r), n?.deregister?.(r));
+ Xx = !0, r && (r.scheduleCheckAfterUnmount(), t.group?.remove(r), n?.deregister?.(r));
}
safeToRemove() {
this.props.safeToRemove?.();
@@ -21309,39 +21309,39 @@ var gie = (e, t) => t.isSVG ?? Ux(e) ? new Pre(t) : new nre(t, { allowProjection
return null;
}
};
-function Zx(e) {
- let [t, n] = Ox(), r = (0, F.useContext)(um);
- return (0, I.jsx)(Sie, {
+function $x(e) {
+ let [t, n] = Ax(), r = (0, F.useContext)(um);
+ return (0, I.jsx)(bie, {
...e,
layoutGroup: r,
- switchLayoutGroup: (0, F.useContext)(Gx),
+ switchLayoutGroup: (0, F.useContext)(qx),
isPresent: t,
safeToRemove: n
});
}
// node_modules/framer-motion/dist/es/motion/features/drag.mjs
-var Cie = {
- pan: { Feature: xie },
+var xie = {
+ pan: { Feature: yie },
drag: {
- Feature: bie,
- ProjectionNode: hb,
- MeasureLayout: Zx
+ Feature: vie,
+ ProjectionNode: gb,
+ MeasureLayout: $x
}
};
// node_modules/framer-motion/dist/es/gestures/hover.mjs
-function Qx(e, t, n, r) {
+function eS(e, t, n, r) {
let { props: i } = e, a = "while" + n;
e.animationState && i[a] && e.animationState.setActive(a, r === "Start");
let o = i["on" + n + r];
- o && fg.postRender(() => o(t, Pb(t)));
+ o && pg.postRender(() => o(t, Fb(t)));
}
-var wie = class extends _x {
+var Sie = class extends yx {
mount() {
let { current: e } = this.node;
- e && (this.unmount = Are(e, (e, t) => (Qx(this.node, t, "Hover", "Start"), (e) => Qx(this.node, e, "Hover", "End"))));
+ e && (this.unmount = Ore(e, (e, t) => (eS(this.node, t, "Hover", "Start"), (e) => eS(this.node, e, "Hover", "End"))));
}
unmount() {}
-}, Tie = class extends _x {
+}, Cie = class extends yx {
constructor() {
super(...arguments), this.isActive = !1;
}
@@ -21358,51 +21358,51 @@ var wie = class extends _x {
this.isActive && this.node.animationState && (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
}
mount() {
- this.unmount = Cm(pb(this.node.current, "focus", () => this.onFocus()), pb(this.node.current, "blur", () => this.onBlur()));
+ this.unmount = Cm(mb(this.node.current, "focus", () => this.onFocus()), mb(this.node.current, "blur", () => this.onBlur()));
}
unmount() {}
};
// node_modules/framer-motion/dist/es/gestures/press.mjs
-function $x(e, t, n) {
- e.current instanceof HTMLButtonElement && e.current.disabled || Qx(e, t, "Tap", n);
+function tS(e, t, n) {
+ e.current instanceof HTMLButtonElement && e.current.disabled || eS(e, t, "Tap", n);
}
-var Eie = class extends _x {
+var wie = class extends yx {
mount() {
let { current: e } = this.node;
if (!e) return;
let { globalTapTarget: t, propagate: n } = this.node.props;
- this.unmount = Mre(e, (e, t) => ($x(this.node, t, "Start"), (e, { success: t }) => $x(this.node, e, t ? "" : "Cancel")), {
+ this.unmount = Are(e, (e, t) => (tS(this.node, t, "Start"), (e, { success: t }) => tS(this.node, e, t ? "" : "Cancel")), {
useGlobalTarget: t,
stopPropagation: n?.tap === !1
});
}
unmount() {}
-}, eS = /* @__PURE__ */ new WeakMap(), tS = /* @__PURE__ */ new WeakMap(), Die = (e) => {
- let t = eS.get(e.target);
+}, nS = /* @__PURE__ */ new WeakMap(), rS = /* @__PURE__ */ new WeakMap(), Tie = (e) => {
+ let t = nS.get(e.target);
t && t(e);
-}, Oie = (e) => {
- e.forEach(Die);
+}, Eie = (e) => {
+ e.forEach(Tie);
};
-function kie({ root: e, ...t }) {
+function Die({ root: e, ...t }) {
let n = e || document;
- tS.has(n) || tS.set(n, {});
- let r = tS.get(n), i = JSON.stringify(t);
- return r[i] || (r[i] = new IntersectionObserver(Oie, {
+ rS.has(n) || rS.set(n, {});
+ let r = rS.get(n), i = JSON.stringify(t);
+ return r[i] || (r[i] = new IntersectionObserver(Eie, {
root: e,
...t
})), r[i];
}
-function Aie(e, t, n) {
- let r = kie(t);
- return eS.set(e, n), r.observe(e), () => {
- eS.delete(e), r.unobserve(e);
+function Oie(e, t, n) {
+ let r = Die(t);
+ return nS.set(e, n), r.observe(e), () => {
+ nS.delete(e), r.unobserve(e);
};
}
// node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs
-var jie = {
+var kie = {
some: 0,
all: 1
-}, Mie = class extends _x {
+}, Aie = class extends yx {
constructor() {
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
}
@@ -21411,7 +21411,7 @@ var jie = {
let { viewport: e = {} } = this.node.getProps(), { root: t, margin: n, amount: r = "some", once: i } = e, a = {
root: t ? t.current : void 0,
rootMargin: n,
- threshold: typeof r == "number" ? r : jie[r]
+ threshold: typeof r == "number" ? r : kie[r]
}, o = (e) => {
let { isIntersecting: t } = e;
if (this.isInView === t || (this.isInView = t, i && !t && this.hasEnteredView)) return;
@@ -21419,7 +21419,7 @@ var jie = {
let { onViewportEnter: n, onViewportLeave: r } = this.node.getProps(), a = t ? n : r;
a && a(e);
};
- this.stopObserver = Aie(this.node.current, a, o);
+ this.stopObserver = Oie(this.node.current, a, o);
}
mount() {
this.startObserver();
@@ -21431,61 +21431,61 @@ var jie = {
"amount",
"margin",
"root"
- ].some(Nie(e, t)) && this.startObserver();
+ ].some(jie(e, t)) && this.startObserver();
}
unmount() {
this.stopObserver?.(), this.hasEnteredView = !1, this.isInView = !1;
}
};
-function Nie({ viewport: e = {} }, { viewport: t = {} } = {}) {
+function jie({ viewport: e = {} }, { viewport: t = {} } = {}) {
return (n) => e[n] !== t[n];
}
// node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs
-var Pie = /*@__PURE__*/ hie(/* @__PURE__ */ Object.assign({}, yie, {
- inView: { Feature: Mie },
- tap: { Feature: Eie },
- focus: { Feature: Tie },
- hover: { Feature: wie }
-}, Cie, { layout: {
- ProjectionNode: hb,
- MeasureLayout: Zx
-} }), gie);
+var Mie = /*@__PURE__*/ pie(/* @__PURE__ */ Object.assign({}, _ie, {
+ inView: { Feature: Aie },
+ tap: { Feature: wie },
+ focus: { Feature: Cie },
+ hover: { Feature: Sie }
+}, xie, { layout: {
+ ProjectionNode: gb,
+ MeasureLayout: $x
+} }), mie);
// node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs
-function nS() {
- !wb.current && Tb();
- let [e] = (0, F.useState)(Cb.current);
+function iS() {
+ !Tb.current && Eb();
+ let [e] = (0, F.useState)(wb.current);
return e;
}
// node_modules/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs
-function rS(e) {
+function aS(e) {
return typeof e == "object" && !Array.isArray(e);
}
// node_modules/framer-motion/dist/es/animation/animate/resolve-subjects.mjs
-function iS(e, t, n, r) {
- return e == null ? [] : typeof e == "string" && rS(t) ? Iv(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((e) => e != null) : [e];
+function oS(e, t, n, r) {
+ return e == null ? [] : typeof e == "string" && aS(t) ? Rv(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((e) => e != null) : [e];
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/calc-repeat-duration.mjs
-function Fie(e, t, n) {
+function Nie(e, t, n) {
return e * (t + 1) + n * t;
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs
-function aS(e, t) {
+function sS(e, t) {
if (t.has(e)) return t.get(e);
let [, n, r] = e.match(/^(.+?)([+-][\d.]+)$/) || [];
return t.has(n) ? Math.max(0, t.get(n) + parseFloat(r)) : void 0;
}
-function Iie(e, t, n, r) {
- return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? n : t.startsWith("<") ? Math.max(0, n + parseFloat(t.slice(1))) : aS(t, r) ?? e;
+function Pie(e, t, n, r) {
+ return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? n : t.startsWith("<") ? Math.max(0, n + parseFloat(t.slice(1))) : sS(t, r) ?? e;
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/edit.mjs
-function Lie(e, t, n) {
+function Fie(e, t, n) {
for (let r = 0; r < e.length; r++) {
let i = e[r];
i.at > t && i.at < n && (hm(e, i), r--);
}
}
-function Rie(e, t, n, r, i, a) {
- Lie(e, i, a);
+function Iie(e, t, n, r, i, a) {
+ Fie(e, i, a);
for (let o = 0; o < t.length; o++) e.push({
value: t[o],
at: Qh(i, a, r[o]),
@@ -21493,19 +21493,19 @@ function Rie(e, t, n, r, i, a) {
});
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/normalize-times.mjs
-function zie(e, t, n = 0) {
+function Lie(e, t, n = 0) {
let r = t + 1 + t * n;
for (let t = 0; t < e.length; t++) e[t] = e[t] / r;
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/sort.mjs
-function Bie(e, t) {
+function Rie(e, t) {
return e.at === t.at ? e.value === null ? 1 : t.value === null ? -1 : 0 : e.at - t.at;
}
// node_modules/framer-motion/dist/es/animation/sequence/create.mjs
-var Vie = "easeInOut", Hie = 20;
-function Uie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
+var zie = "easeInOut", Bie = 20;
+function Vie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
let o = t.duration || .3, s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), l = {}, u = /* @__PURE__ */ new Map(), d = 0, f = 0, p = 0, m = (e, n) => {
- let a = n, s = (e) => typeof e == "number" ? n + e : Iie(f, e, d, u);
+ let a = n, s = (e) => typeof e == "number" ? n + e : Pie(f, e, d, u);
for (let n = 0; n < e.length; n++) {
let h = e[n];
if (typeof h == "string") {
@@ -21520,12 +21520,12 @@ function Uie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
let [g, _, v = {}] = h;
v.at !== void 0 && (f = s(v.at));
let y = 0, b = (e, n, r, a = 0, s = 0) => {
- let c = Wie(e), { delay: l = 0, times: u = Ig(c), type: d = t.type || "keyframes", repeat: m, repeatType: h, repeatDelay: g = 0, ..._ } = n, { ease: v = t.ease || "easeOut", duration: b } = n;
+ let c = Hie(e), { delay: l = 0, times: u = Rg(c), type: d = t.type || "keyframes", repeat: m, repeatType: h, repeatDelay: g = 0, ..._ } = n, { ease: v = t.ease || "easeOut", duration: b } = n;
r.mixer ||= n.mixer;
- let x = typeof l == "function" ? l(a, s) : l, S = c.length, C = j_(d) ? d : i?.[d || "keyframes"];
+ let x = typeof l == "function" ? l(a, s) : l, S = c.length, C = N_(d) ? d : i?.[d || "keyframes"];
if (S <= 2 && C) {
let e = 100;
- if (S === 2 && qie(c)) {
+ if (S === 2 && Gie(c)) {
let t = c[1] - c[0];
e = Math.abs(t);
}
@@ -21534,16 +21534,16 @@ function Uie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
..._
};
b !== void 0 && (n.duration = /* @__PURE__ */ Em(b));
- let r = yg(n, e, C);
+ let r = bg(n, e, C);
v = r.ease, b = r.duration;
}
b ??= o;
let w = f + x;
u.length === 1 && u[0] === 0 && (u[1] = 1);
let T = u.length - c.length;
- if (T > 0 && Fg(u, T), c.length === 1 && c.unshift(null), m && m < Hie) {
+ if (T > 0 && Lg(u, T), c.length === 1 && c.unshift(null), m && m < Bie) {
let e = b > 0 ? g / b : 0;
- b = Fie(b, m, g);
+ b = Nie(b, m, g);
let t = [...c], n = [...u];
v = Array.isArray(v) ? [...v] : [v];
let r = [...v], i = h === "reverse" || h === "mirror", a = t, o = r;
@@ -21553,20 +21553,20 @@ function Uie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
e > 0 && (c.push(c[c.length - 1]), u.push(p), v.push("linear")), c.push(...d);
for (let e = 0; e < d.length; e++) u.push(n[e] + p), v.push(e === 0 ? "linear" : /* @__PURE__ */ Gm(f, e - 1));
}
- zie(u, m, e);
+ Lie(u, m, e);
}
let E = w + b;
- Rie(r, c, v, u, w, E), y = Math.max(x + b, y), p = Math.max(E, p);
+ Iie(r, c, v, u, w, E), y = Math.max(x + b, y), p = Math.max(E, p);
};
- if (vv(g)) {
- let e = oS(g, c);
- b(_, v, sS("default", e));
+ if (bv(g)) {
+ let e = cS(g, c);
+ b(_, v, lS("default", e));
} else {
- let e = iS(g, _, r, l), t = e.length;
+ let e = oS(g, _, r, l), t = e.length;
for (let n = 0; n < t; n++) {
_ = _, v = v;
- let r = e[n], i = oS(r, c);
- for (let e in _) b(_[e], Gie(v, e), sS(e, i), n, t);
+ let r = e[n], i = cS(r, c);
+ for (let e in _) b(_[e], Uie(v, e), lS(e, i), n, t);
}
}
d = f, f += y, a = Math.max(a, f);
@@ -21576,13 +21576,13 @@ function Uie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
return m(e, 0), a && (a.duration = p, a.labels = u), c.forEach((e, r) => {
for (let i in e) {
let a = e[i];
- a.sort(Bie);
+ a.sort(Rie);
let o = [], c = [], l = [];
for (let e = 0; e < a.length; e++) {
let { at: t, value: n, easing: r } = a[e];
o.push(n), c.push(/* @__PURE__ */ wm(0, p, t)), l.push(r || "easeOut");
}
- c[0] !== 0 && (c.unshift(0), o.unshift(o[0]), l.unshift(Vie)), c[c.length - 1] !== 1 && (c.push(1), o.push(null)), s.has(r) || s.set(r, {
+ c[0] !== 0 && (c.unshift(0), o.unshift(o[0]), l.unshift(zie)), c[c.length - 1] !== 1 && (c.push(1), o.push(null)), s.has(r) || s.set(r, {
keyframes: {},
transition: {}
});
@@ -21600,45 +21600,45 @@ function Uie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
}
}), s;
}
-function oS(e, t) {
+function cS(e, t) {
return !t.has(e) && t.set(e, {}), t.get(e);
}
-function sS(e, t) {
+function lS(e, t) {
return t[e] || (t[e] = []), t[e];
}
-function Wie(e) {
+function Hie(e) {
return Array.isArray(e) ? e : [e];
}
-function Gie(e, t) {
+function Uie(e, t) {
return e && e[t] ? {
...e,
...e[t]
} : { ...e };
}
-var Kie = (e) => typeof e == "number", qie = (e) => e.every(Kie);
+var Wie = (e) => typeof e == "number", Gie = (e) => e.every(Wie);
// node_modules/framer-motion/dist/es/animation/animate/subject.mjs
-function Jie(e, t) {
- return vv(e) || typeof e == "number" || typeof e == "string" && !rS(t);
+function Kie(e, t) {
+ return bv(e) || typeof e == "number" || typeof e == "string" && !aS(t);
}
-function cS(e, t, n, r) {
+function uS(e, t, n, r) {
let i = [];
- if (Jie(e, t)) i.push(my(e, rS(t) && t.default || t, n && (n.default || n)));
+ if (Kie(e, t)) i.push(gy(e, aS(t) && t.default || t, n && (n.default || n)));
else {
if (e == null) return i;
- let a = iS(e, t, r), o = a.length;
+ let a = oS(e, t, r), o = a.length;
for (let e = 0; e < o; e++) {
let r = a[e], s = { ...n };
- "delay" in s && typeof s.delay == "function" && (s.delay = s.delay(e, o)), r instanceof Element ? i.push(...sne(r, t, s, gb.get(r))) : i.push(...Av(Vte(r) ?? cne, r, t, s));
+ "delay" in s && typeof s.delay == "function" && (s.delay = s.delay(e, o)), r instanceof Element ? i.push(...ane(r, t, s, _b.get(r))) : i.push(...Mv(zte(r) ?? one, r, t, s));
}
}
return i;
}
// node_modules/framer-motion/dist/es/animation/animate/sequence.mjs
-function Yie(e, t, n, r) {
+function qie(e, t, n, r) {
let i = [];
- return Uie(e.map((e) => {
+ return Vie(e.map((e) => {
if (Array.isArray(e) && typeof e[0] == "function") {
- let t = e[0], n = lv(0);
+ let t = e[0], n = dv(0);
return n.on("change", t), e.length === 1 ? [n, [0, 1]] : e.length === 2 ? [
n,
[0, 1],
@@ -21650,31 +21650,31 @@ function Yie(e, t, n, r) {
];
}
return e;
- }), t, n, { spring: Mg }, r).forEach(({ keyframes: e, transition: t }, n) => {
- i.push(...cS(n, e, t));
+ }), t, n, { spring: Pg }, r).forEach(({ keyframes: e, transition: t }, n) => {
+ i.push(...uS(n, e, t));
}), i;
}
// node_modules/framer-motion/dist/es/animation/timeline/index.mjs
-var lS = 0;
-function Xie(e, t) {
+var dS = 0;
+function Jie(e, t) {
let n = [...e], r = typeof n[0] == "function" ? Math.max(1, n.length - 1) : 2;
return n[r] = {
...n[r],
at: t
}, n;
}
-var uS = (e, t) => t === void 0 ? e : {
+var fS = (e, t) => t === void 0 ? e : {
name: e,
at: t
};
-function dS(e) {
+function pS(e) {
e.pause(), e.time = 0, e.stop();
}
-var fS = class e {
+var mS = class e {
constructor(e = [], t = {}, n) {
- this.options = t, this.entries = [], this.repeatIndex = 0, this.prevTime = 0, this.markers = [], this.labels = /* @__PURE__ */ new Map(), this.totalDuration = 0, this.isDirty = !1, this.isDone = !1, this.isRebuilding = !1, this.playbackSpeed = 1, this.motionScope = Nv.current, this.isKilled = !1, this.isWrapped = !1, this.stop = () => {
+ this.options = t, this.entries = [], this.repeatIndex = 0, this.prevTime = 0, this.markers = [], this.labels = /* @__PURE__ */ new Map(), this.totalDuration = 0, this.isDirty = !1, this.isDone = !1, this.isRebuilding = !1, this.playbackSpeed = 1, this.motionScope = Fv.current, this.isKilled = !1, this.isWrapped = !1, this.stop = () => {
this.flush(), this.group?.stop();
- }, this.isPaused = t.autoplay === !1, this.newFinished(), e.forEach((e) => this.add(e)), n ? (this.isDirty = !1, this.isWrapped = !0, this.group = new rv(n), this.watch()) : (this.invalidate(), this.flush());
+ }, this.isPaused = t.autoplay === !1, this.newFinished(), e.forEach((e) => this.add(e)), n ? (this.isDirty = !1, this.isWrapped = !0, this.group = new av(n), this.watch()) : (this.invalidate(), this.flush());
let { scope: r } = t;
r && (r.animations.push(this), this.finished.then(() => hm(r.animations, this)));
}
@@ -21689,7 +21689,7 @@ var fS = class e {
item: e,
at: t,
marker: {
- name: "_m" + lS++,
+ name: "_m" + dS++,
time: 0,
callback: e
}
@@ -21700,7 +21700,7 @@ var fS = class e {
item: t || {},
at: e,
marker: {
- name: "_m" + lS++,
+ name: "_m" + dS++,
time: 0,
callback: t,
pause: !0
@@ -21794,50 +21794,50 @@ var fS = class e {
this.isDirty && !this.parent && !this.isKilled && this.build();
}
adopt(e) {
- this.group &&= (dS(this.group), void 0), this.isDirty = !1, this.parent = e;
+ this.group &&= (pS(this.group), void 0), this.isDirty = !1, this.parent = e;
}
build() {
this.isDirty = !1, this.isWrapped = !1;
let e = this.group, t = 0;
- e && (this.isRebuilding = !0, this.scrollTimeline ? (this.detachScroll?.(), e.cancel()) : (t = e.animations.length ? e.time : 0, dS(e)), this.isRebuilding = !1);
+ e && (this.isRebuilding = !0, this.scrollTimeline ? (this.detachScroll?.(), e.cancel()) : (t = e.animations.length ? e.time : 0, pS(e)), this.isRebuilding = !1);
let { defaultTransition: n, onComplete: r, onUpdate: i, onRepeat: a, onReverseComplete: o, autoplay: s, scope: c, ...l } = this.options, u = {};
c?.reduceMotion !== void 0 && (u.reduceMotion = c.reduceMotion), c?.skipAnimations !== void 0 && (u.skipAnimations = c.skipAnimations), Object.assign(u, l);
- let d = /* @__PURE__ */ new Map(), f = {}, p = Nv.current;
- Nv.current = this.motionScope;
+ let d = /* @__PURE__ */ new Map(), f = {}, p = Fv.current;
+ Fv.current = this.motionScope;
let m;
try {
- m = Yie(this.toSequence(d), {
+ m = qie(this.toSequence(d), {
defaultTransition: n,
...u
}, c, f);
} finally {
- Nv.current = p;
+ Fv.current = p;
}
let h = f.labels, g = u.duration ?? f.duration, _ = f.duration ? g / f.duration : 1;
if (h.forEach((e, t) => h.set(t, e * _)), this.markers = [], d.forEach((e, t) => {
e.time = h.get(t), h.delete(t), g = Math.max(g, e.time), this.markers.push(e);
}), this.markers.sort((e, t) => e.time - t.time), this.labels = h, this.totalDuration = g, this.clock = this.clockAnimation = void 0, this.markers.length || this.stopAt !== void 0 || i || a) {
- let e = this.clock = lv(0);
- e.on("change", (t) => e === this.clock && this.onClock(t)), m.unshift(this.clockAnimation = my(e, [0, g], {
+ let e = this.clock = dv(0);
+ e.on("change", (t) => e === this.clock && this.onClock(t)), m.unshift(this.clockAnimation = gy(e, [0, g], {
...u,
duration: g,
ease: "linear"
}));
}
- let v = this.group = new rv(m);
+ let v = this.group = new av(m);
t = Math.min(t, g), this.isDone && t < g && this.newFinished(), this.scrollTimeline ? this.detachScroll = v.attachTimeline(this.scrollTimeline) : (v.speed = this.playbackSpeed, this.isPaused && v.pause(), t && (v.time = t)), this.repeatIndex = this.currentRepeat(), this.prevTime = t || -1, this.watch();
}
toSequence(t) {
- return this.entries.map(({ item: n, at: r, marker: i }) => i ? (t.set(i.name, i), uS(i.name, r)) : n instanceof e ? {
+ return this.entries.map(({ item: n, at: r, marker: i }) => i ? (t.set(i.name, i), fS(i.name, r)) : n instanceof e ? {
sequence: n.toSequence(t),
at: r
- } : typeof n == "string" ? uS(n, r) : r === void 0 ? n : Array.isArray(n) ? Xie(n, r) : {
+ } : typeof n == "string" ? fS(n, r) : r === void 0 ? n : Array.isArray(n) ? Jie(n, r) : {
...n,
at: r
});
}
resolve(e) {
- return this.flush(), typeof e == "number" ? e : aS(e, this.labels) ?? this.time;
+ return this.flush(), typeof e == "number" ? e : sS(e, this.labels) ?? this.time;
}
currentRepeat() {
let { repeat: e = 0, repeatDelay: t = 0, delay: n = 0 } = this.options, r = this.totalDuration + t, i = (this.clockAnimation?.time ?? 0) - n;
@@ -21885,16 +21885,16 @@ var fS = class e {
}
};
// node_modules/framer-motion/dist/es/animation/animate/index.mjs
-function Zie(e) {
+function Yie(e) {
return Array.isArray(e) && e.some(Array.isArray);
}
-function Qie(e = {}) {
+function Xie(e = {}) {
let { scope: t, reduceMotion: n, skipAnimations: r } = e;
function i(e, i, a) {
- let o = Nv.current?.transition, s = {};
+ let o = Fv.current?.transition, s = {};
n !== void 0 && (s.reduceMotion = n), r !== void 0 && (s.skipAnimations = r);
let c;
- if (Zie(e)) {
+ if (Yie(e)) {
let n = {
...s,
...i,
@@ -21903,14 +21903,14 @@ function Qie(e = {}) {
o && (n.defaultTransition = {
...o,
...n.defaultTransition
- }), c = new fS(e, n);
+ }), c = new mS(e, n);
} else {
let { onComplete: n, ...r } = a || {}, l = {
...s,
...o,
...r
}, { onUpdate: u } = r;
- c = new fS([typeof e == "number" || typeof e == "string" && (typeof i == "string" || Array.isArray(i)) ? [
+ c = new mS([typeof e == "number" || typeof e == "string" && (typeof i == "string" || Array.isArray(i)) ? [
u || (() => {}),
Array.isArray(i) ? i : [e, i],
{
@@ -21925,29 +21925,29 @@ function Qie(e = {}) {
...s,
onComplete: n,
scope: t
- }, cS(e, i, l, t));
+ }, uS(e, i, l, t));
}
return c;
}
return i;
}
-var pS = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Qie(), {
- addEffect: Bte,
- removeEffect: Ov
+var hS = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Xie(), {
+ addEffect: Rte,
+ removeEffect: Av
});
// node_modules/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs
-function $ie(e, t, n, r) {
+function Zie(e, t, n, r) {
if (e == null) return [];
- let i = Iv(e, r), a = i.length, o = [];
+ let i = Rv(e, r), a = i.length, o = [];
for (let e = 0; e < a; e++) {
let r = i[e], s = { ...n };
typeof s.delay == "function" && (s.delay = s.delay(e, a));
for (let e in t) {
let n = t[e];
Array.isArray(n) || (n = [n]);
- let i = { ...dv(s, e) };
+ let i = { ...pv(s, e) };
i.duration &&= /* @__PURE__ */ Em(i.duration), i.delay &&= /* @__PURE__ */ Em(i.delay);
- let a = fte(r), c = dte(e, i.pseudoElement || ""), l = a.get(c);
+ let a = ute(r), c = lte(e, i.pseudoElement || ""), l = a.get(c);
l && l.stop(), o.push({
map: a,
key: c,
@@ -21963,21 +21963,21 @@ function $ie(e, t, n, r) {
}
for (let e = 0; e < o.length; e++) {
let { unresolvedKeyframes: t, options: n } = o[e], { element: r, name: i, pseudoElement: a } = n;
- !a && t[0] === null && (t[0] = gx(r, i)), e_(t), zte(t, i), !a && t.length < 2 && t.unshift(gx(r, i)), n.keyframes = t;
+ !a && t[0] === null && (t[0] = vx(r, i)), n_(t), Lte(t, i), !a && t.length < 2 && t.unshift(vx(r, i)), n.keyframes = t;
}
let s = [];
for (let e = 0; e < o.length; e++) {
- let { map: t, key: n, options: r } = o[e], i = new M_(r);
+ let { map: t, key: n, options: r } = o[e], i = new P_(r);
t.set(n, i), i.finished.finally(() => t.delete(n)), s.push(i);
}
return s;
}
-var eae = /*@__PURE__*/ ((e) => {
+var Qie = /*@__PURE__*/ ((e) => {
function t(t, n, r) {
- return new rv($ie(t, n, r, e));
+ return new av(Zie(t, n, r, e));
}
return t;
-})(), mS = Pie, hS = class {
+})(), gS = Mie, _S = class {
constructor(e) {
this.value = null, this.level = 0, this.hasChildNodes = !1, this.rendered = null, this.textValue = "", this["aria-label"] = void 0, this.index = 0, this.parentKey = null, this.prevKey = null, this.nextKey = null, this.firstChildKey = null, this.lastChildKey = null, this.props = {}, this.colSpan = null, this.colIndex = null, this.type = this.constructor.type, this.key = e;
}
@@ -21992,22 +21992,22 @@ var eae = /*@__PURE__*/ ((e) => {
let r = this.clone();
return t.addDescendants(r, e), r;
}
-}, gS = class extends hS {
+}, vS = class extends _S {
filter(e, t, n) {
- let [r, i] = bS(e, t, this.firstChildKey, n), a = this.clone();
+ let [r, i] = SS(e, t, this.firstChildKey, n), a = this.clone();
return a.firstChildKey = r, a.lastChildKey = i, a;
}
};
-(class extends hS {
+(class extends _S {
static {
this.type = "header";
}
});
-var _S = class extends hS {
+var yS = class extends _S {
static {
this.type = "loader";
}
-}, vS = class extends gS {
+}, bS = class extends vS {
static {
this.type = "item";
}
@@ -22018,7 +22018,7 @@ var _S = class extends hS {
}
return null;
}
-}, tae = class extends gS {
+}, $ie = class extends vS {
static {
this.type = "section";
}
@@ -22030,7 +22030,7 @@ var _S = class extends hS {
}
return null;
}
-}, yS = class {
+}, xS = class {
get size() {
return this.itemCount;
}
@@ -22105,14 +22105,14 @@ var _S = class extends hS {
this.firstKey = e, this.lastKey = t, this.frozen = !n;
}
filter(e) {
- let t = new this.constructor(), [n, r] = bS(this, t, this.firstKey, e);
+ let t = new this.constructor(), [n, r] = SS(this, t, this.firstKey, e);
return t?.commit(n, r), t;
}
constructor() {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.frozen = !1, this.itemCount = 0;
}
};
-function bS(e, t, n, r) {
+function SS(e, t, n, r) {
if (n == null) return [null, null];
let i = null, a = null, o = e.getItem(n);
for (; o != null;) {
@@ -22126,7 +22126,7 @@ function bS(e, t, n, r) {
return [i?.key ?? null, a?.key ?? null];
}
// node_modules/react-aria/dist/private/collections/Document.mjs
-var xS = class {
+var CS = class {
constructor(e) {
this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = e;
}
@@ -22207,7 +22207,7 @@ var xS = class {
for (; e && e.isHidden;) e = e.previousSibling;
return e;
}
-}, SS = class e extends xS {
+}, wS = class e extends CS {
constructor(e, t) {
super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.isHidden = !1, this.node = null;
}
@@ -22258,7 +22258,7 @@ var xS = class {
setAttribute() {}
setAttributeNS() {}
removeAttribute() {}
-}, nae = class extends xS {
+}, eae = class extends CS {
constructor(e) {
super(null), this.nodeType = 11, this.ownerDocument = this, this.dirtyNodes = /* @__PURE__ */ new Set(), this.isSSR = !1, this.nodeId = 0, this.nodesByProps = /* @__PURE__ */ new WeakMap(), this.keyOwners = /* @__PURE__ */ new Map(), this.nextCollection = null, this.subscriptions = /* @__PURE__ */ new Set(), this.queuedRender = !1, this.inSubscription = !1, this.collection = e, this.nextCollection = e;
}
@@ -22266,7 +22266,7 @@ var xS = class {
return !0;
}
createElement(e) {
- return new SS(e, this);
+ return new wS(e, this);
}
getMutableCollection() {
return this.nextCollection ||= this.collection.clone(), this.nextCollection;
@@ -22288,8 +22288,8 @@ var xS = class {
return this.inSubscription || (this.queuedRender = !1, this.updateCollection()), this.collection;
}
updateCollection() {
- for (let e of this.dirtyNodes) e instanceof SS && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
- for (let e of this.dirtyNodes) e instanceof SS ? (e.isConnected && !e.isHidden && (e.updateNode(), this.addNode(e)), e.node && this.dirtyNodes.delete(e), e.isMutated = !1) : this.dirtyNodes.delete(e);
+ for (let e of this.dirtyNodes) e instanceof wS && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
+ for (let e of this.dirtyNodes) e instanceof wS ? (e.isConnected && !e.isHidden && (e.updateNode(), this.addNode(e)), e.node && this.dirtyNodes.delete(e), e.isMutated = !1) : this.dirtyNodes.delete(e);
this.nextCollection && (this.nextCollection.commit(this.firstVisibleChild?.node?.key ?? null, this.lastVisibleChild?.node?.key ?? null, this.isSSR), this.isSSR || (this.collection = this.nextCollection, this.nextCollection = null));
}
queueUpdate() {
@@ -22307,13 +22307,13 @@ var xS = class {
}
};
// node_modules/react-aria/dist/private/collections/useCachedChildren.mjs
-function CS(e) {
+function TS(e) {
let { children: t, items: n, idScope: r, addIdAndValue: i, dependencies: a = [] } = e, o = (0, F.useMemo)(() => void 0, [t]), s = (0, F.useMemo)(() => /* @__PURE__ */ new WeakMap(), [...a, o]);
return (0, F.useMemo)(() => {
if (n && typeof t == "function") {
let e = [];
for (let a of n) {
- let n = rae(a) ? a : null, o = n ? s.get(n) : null;
+ let n = tae(a) ? a : null, o = n ? s.get(n) : null;
if (!o) {
o = t(a);
let c = o.props.id ?? a?.key ?? a?.id;
@@ -22338,7 +22338,7 @@ function CS(e) {
i
]);
}
-function rae(e) {
+function tae(e) {
switch (typeof e) {
case "object": return e != null;
case "function":
@@ -22347,24 +22347,24 @@ function rae(e) {
}
}
// node_modules/react-aria/dist/private/utils/focusWithoutScrolling.mjs
-function wS(e) {
+function ES(e) {
e.focus({ preventScroll: !0 });
}
// node_modules/react-aria/dist/private/utils/domHelpers.mjs
-var TS = (e) => iae(e) ? e.document : aae(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), ES = (e) => TS(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
-function DS(e) {
+var DS = (e) => nae(e) ? e.document : rae(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), OS = (e) => DS(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
+function kS(e) {
return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
}
-function iae(e) {
+function nae(e) {
return typeof e == "object" && !!e && "window" in e && e.window === e;
}
-function aae(e) {
- return DS(e) && e.nodeType === 9;
+function rae(e) {
+ return kS(e) && e.nodeType === 9;
}
-function OS(e) {
- return DS(e) && e.nodeType === 11 && "host" in e;
+function AS(e) {
+ return kS(e) && e.nodeType === 11 && "host" in e;
}
-function kS(e, t, n, r) {
+function jS(e, t, n, r) {
if (n == null || e == null) return () => {};
let i = Array.isArray(e) ? e : [e];
for (let e of i) e.addEventListener(t, n, r);
@@ -22372,7 +22372,7 @@ function kS(e, t, n, r) {
for (let e of i) e.removeEventListener(t, n, r);
};
}
-function AS(e, t, n, r) {
+function MS(e, t, n, r) {
if (e == null) return () => {};
let i = [], a = Array.isArray(e) ? e : [e];
for (let e of a) {
@@ -22386,70 +22386,70 @@ function AS(e, t, n, r) {
};
}
// node_modules/react-stately/dist/private/flags/flags.mjs
-var oae = !1;
-function jS() {
- return oae;
+var iae = !1;
+function NS() {
+ return iae;
}
// node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.mjs
-function MS(e, t) {
- if (!jS()) return t && e ? e.contains(t) : !1;
+function PS(e, t) {
+ if (!NS()) return t && e ? e.contains(t) : !1;
if (!e || !t) return !1;
let n = t;
for (; n != null;) {
if (n === e) return !0;
- n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : OS(n) ? n.host : n.parentNode;
+ n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : AS(n) ? n.host : n.parentNode;
}
return !1;
}
-var NS = (e = document) => {
- if (!jS()) return e.activeElement;
+var FS = (e = document) => {
+ if (!NS()) return e.activeElement;
let t = e.activeElement;
for (; t && "shadowRoot" in t && t.shadowRoot?.activeElement;) t = t.shadowRoot.activeElement;
return t;
};
function G(e) {
- if (jS() && e.target instanceof Element && e.target.shadowRoot) {
+ if (NS() && e.target instanceof Element && e.target.shadowRoot) {
if ("composedPath" in e) return e.composedPath()[0] ?? null;
if ("composedPath" in e.nativeEvent) return e.nativeEvent.composedPath()[0] ?? null;
}
return e.target;
}
-function PS(e, t) {
+function IS(e, t) {
if (t === null) return [];
- t ??= ES(e);
+ t ??= OS(e);
let n = [t];
- if (!jS() || !e || e === t) return n;
+ if (!NS() || !e || e === t) return n;
let r = "getRootNode" in t ? t.getRootNode() : null, i = e.getRootNode() ?? null;
- for (; OS(i) && i !== r;) n.push(i), i = i.host.getRootNode();
+ for (; AS(i) && i !== r;) n.push(i), i = i.host.getRootNode();
return n;
}
-function FS(e) {
+function LS(e) {
if (!e) return !1;
- let t = e.getRootNode(), n = ES(e);
+ let t = e.getRootNode(), n = OS(e);
if (!(t instanceof n.Document || t instanceof n.ShadowRoot)) return !1;
let r = t.activeElement;
return r != null && e.contains(r);
}
// node_modules/react-aria/dist/private/utils/isElementVisible.mjs
-var sae = typeof Element < "u" && "checkVisibility" in Element.prototype;
-function cae(e) {
- let t = ES(e);
+var aae = typeof Element < "u" && "checkVisibility" in Element.prototype;
+function oae(e) {
+ let t = OS(e);
if (!(e instanceof t.HTMLElement) && !(e instanceof t.SVGElement)) return !1;
let { display: n, visibility: r } = e.style, i = n !== "none" && r !== "hidden" && r !== "collapse";
if (i) {
- let { getComputedStyle: t } = ES(e), { display: n, visibility: r } = t(e);
+ let { getComputedStyle: t } = OS(e), { display: n, visibility: r } = t(e);
i = n !== "none" && r !== "hidden" && r !== "collapse";
}
return i;
}
-function lae(e, t) {
+function sae(e, t) {
return !e.hasAttribute("hidden") && !e.hasAttribute("data-react-aria-prevent-focus") && (e.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0);
}
-function IS(e, t) {
- return sae ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && cae(e) && lae(e, t) && (!e.parentElement || IS(e.parentElement, e));
+function RS(e, t) {
+ return aae ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && oae(e) && sae(e, t) && (!e.parentElement || RS(e.parentElement, e));
}
// node_modules/react-aria/dist/private/utils/isFocusable.mjs
-var LS = [
+var zS = [
"input:not([disabled]):not([type=hidden])",
"select:not([disabled])",
"textarea:not([disabled])",
@@ -22464,39 +22464,39 @@ var LS = [
"video[controls]",
"[contenteditable]:not([contenteditable^=\"false\"])",
"permission"
-], uae = LS.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
-LS.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
-var dae = LS.join(":not([hidden]):not([tabindex=\"-1\"]),");
-function RS(e, t) {
- return e.matches(uae) && !BS(e) && (t?.skipVisibilityCheck || IS(e));
+], cae = zS.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
+zS.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
+var lae = zS.join(":not([hidden]):not([tabindex=\"-1\"]),");
+function BS(e, t) {
+ return e.matches(cae) && !HS(e) && (t?.skipVisibilityCheck || RS(e));
}
-function zS(e) {
- return e.matches(dae) && IS(e) && !BS(e);
+function VS(e) {
+ return e.matches(lae) && RS(e) && !HS(e);
}
-function BS(e) {
+function HS(e) {
let t = e;
for (; t != null;) {
- if (t instanceof ES(t).HTMLElement && t.inert) return !0;
+ if (t instanceof OS(t).HTMLElement && t.inert) return !0;
t = t.parentElement;
}
return !1;
}
// node_modules/react-aria/dist/private/utils/useLayoutEffect.mjs
-var VS = typeof document < "u" ? F.useLayoutEffect : () => {};
+var US = typeof document < "u" ? F.useLayoutEffect : () => {};
// node_modules/react-aria/dist/private/interactions/utils.mjs
-function HS(e) {
+function WS(e) {
let t = e;
return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {}, t;
}
-function US(e, t) {
+function GS(e, t) {
Object.defineProperty(e, "target", { value: t }), Object.defineProperty(e, "currentTarget", { value: t });
}
-function WS(e) {
+function KS(e) {
let t = (0, F.useRef)({
isFocused: !1,
observer: null
});
- return VS(() => {
+ return US(() => {
let e = t.current;
return () => {
e.observer &&= (e.observer.disconnect(), null);
@@ -22508,14 +22508,14 @@ function WS(e) {
let n = r;
n.addEventListener("focusout", (r) => {
if (t.current.isFocused = !1, n.disabled) {
- let t = HS(r);
+ let t = WS(r);
e?.(t);
}
t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
}, { once: !0 }), t.current.observer = new MutationObserver(() => {
if (t.current.isFocused && n.disabled) {
t.current.observer?.disconnect();
- let e = n === NS() ? null : NS();
+ let e = n === FS() ? null : FS();
n.dispatchEvent(new FocusEvent("blur", { relatedTarget: e })), n.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: e
@@ -22528,80 +22528,80 @@ function WS(e) {
}
}, [e]);
}
-var GS = !1;
-function fae(e) {
- for (; e && !RS(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
- let t = NS(ES(e).document);
+var qS = !1;
+function uae(e) {
+ for (; e && !BS(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
+ let t = FS(OS(e).document);
if (!t || t === e) return;
- let n = e?.getRootNode(), r = n != null && OS(n) ? n : ES(e), i = (t) => t === e || DS(t) && MS(e, t), a = (e) => e === t || t != null && DS(e) && MS(t, e);
- GS = !0;
+ let n = e?.getRootNode(), r = n != null && AS(n) ? n : OS(e), i = (t) => t === e || kS(t) && PS(e, t), a = (e) => e === t || t != null && kS(e) && PS(t, e);
+ qS = !0;
let o = !1, s = (e) => {
(a(G(e)) || o) && e.stopImmediatePropagation();
}, c = (n) => {
- (a(G(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, wS(t), d()));
+ (a(G(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, ES(t), d()));
}, l = (e) => {
(i(G(e)) || o) && e.stopImmediatePropagation();
}, u = (e) => {
- (i(G(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, wS(t), d()));
+ (i(G(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, ES(t), d()));
};
r.addEventListener("blur", s, !0), r.addEventListener("focusout", c, !0), r.addEventListener("focusin", u, !0), r.addEventListener("focus", l, !0);
let d = () => {
- cancelAnimationFrame(f), r.removeEventListener("blur", s, !0), r.removeEventListener("focusout", c, !0), r.removeEventListener("focusin", u, !0), r.removeEventListener("focus", l, !0), GS = !1, o = !1;
+ cancelAnimationFrame(f), r.removeEventListener("blur", s, !0), r.removeEventListener("focusout", c, !0), r.removeEventListener("focusin", u, !0), r.removeEventListener("focus", l, !0), qS = !1, o = !1;
}, f = requestAnimationFrame(d);
return d;
}
// node_modules/react-aria/dist/private/utils/platform.mjs
-function KS(e) {
+function JS(e) {
if (typeof window > "u" || window.navigator == null) return !1;
let t = window.navigator.userAgentData?.brands;
return Array.isArray(t) && t.some((t) => e.test(t.brand)) || e.test(window.navigator.userAgent);
}
-function qS(e) {
+function YS(e) {
return typeof window < "u" && window.navigator != null && e.test(window.navigator.userAgentData?.platform || window.navigator.platform);
}
-function JS(e) {
+function XS(e) {
let t = null;
return () => (t ??= e(), t);
}
-var YS = JS(function() {
- return qS(/^Mac/i);
-}), pae = JS(function() {
- return qS(/^iPhone/i);
-}), XS = JS(function() {
- return qS(/^iPad/i) || YS() && navigator.maxTouchPoints > 1;
-}), ZS = JS(function() {
- return pae() || XS();
-}), mae = JS(function() {
- return YS() || ZS();
-}), QS = JS(function() {
- return KS(/AppleWebKit/i) && (ZS() || !$S());
-}), $S = JS(function() {
- return KS(/Chrome|CriOS|CrMo/i);
-}), eC = JS(function() {
- return KS(/Android/i);
+var ZS = XS(function() {
+ return YS(/^Mac/i);
+}), dae = XS(function() {
+ return YS(/^iPhone/i);
+}), QS = XS(function() {
+ return YS(/^iPad/i) || ZS() && navigator.maxTouchPoints > 1;
+}), $S = XS(function() {
+ return dae() || QS();
+}), fae = XS(function() {
+ return ZS() || $S();
+}), eC = XS(function() {
+ return JS(/AppleWebKit/i) && ($S() || !tC());
+}), tC = XS(function() {
+ return JS(/Chrome|CriOS|CrMo/i);
+}), nC = XS(function() {
+ return JS(/Android/i);
});
// node_modules/react-aria/dist/private/utils/isVirtualEvent.mjs
-function tC(e) {
- return e.pointerType === "" && e.isTrusted ? !0 : eC() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
+function rC(e) {
+ return e.pointerType === "" && e.isTrusted ? !0 : nC() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
}
-function hae(e) {
- return !eC() && e.width === 0 && e.height === 0 || eC() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
+function pae(e) {
+ return !nC() && e.width === 0 && e.height === 0 || nC() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
}
// node_modules/react-aria/dist/private/utils/openLink.mjs
-var gae = /*#__PURE__*/ (0, F.createContext)({
+var mae = /*#__PURE__*/ (0, F.createContext)({
isNative: !0,
- open: yae,
+ open: _ae,
useHref: (e) => e
});
-function nC() {
- return (0, F.useContext)(gae);
+function iC() {
+ return (0, F.useContext)(mae);
}
-function _ae(e, t) {
+function hae(e, t) {
let n = e.getAttribute("target");
return (!n || n === "_self") && e.origin === location.origin && !e.hasAttribute("download") && !t.metaKey && !t.ctrlKey && !t.altKey && !t.shiftKey;
}
-function rC(e, t, n = !0) {
- let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t, s = QS() && YS() && !XS() ? new KeyboardEvent("keydown", {
+function aC(e, t, n = !0) {
+ let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t, s = eC() && ZS() && !QS() ? new KeyboardEvent("keydown", {
keyIdentifier: "Enter",
metaKey: r,
ctrlKey: i,
@@ -22616,21 +22616,21 @@ function rC(e, t, n = !0) {
bubbles: !0,
cancelable: !0
});
- rC.isOpening = n, wS(e), e.dispatchEvent(s), rC.isOpening = !1;
+ aC.isOpening = n, ES(e), e.dispatchEvent(s), aC.isOpening = !1;
}
-rC.isOpening = !1;
-function vae(e, t) {
+aC.isOpening = !1;
+function gae(e, t) {
if (e instanceof HTMLAnchorElement) t(e);
else if (e.hasAttribute("data-href")) {
let n = document.createElement("a");
n.href = e.getAttribute("data-href"), e.hasAttribute("data-target") && (n.target = e.getAttribute("data-target")), e.hasAttribute("data-rel") && (n.rel = e.getAttribute("data-rel")), e.hasAttribute("data-download") && (n.download = e.getAttribute("data-download")), e.hasAttribute("data-ping") && (n.ping = e.getAttribute("data-ping")), e.hasAttribute("data-referrer-policy") && (n.referrerPolicy = e.getAttribute("data-referrer-policy")), e.appendChild(n), t(n), e.removeChild(n);
}
}
-function yae(e, t) {
- vae(e, (e) => rC(e, t));
+function _ae(e, t) {
+ gae(e, (e) => aC(e, t));
}
-function iC(e) {
- let t = nC().useHref(e.href ?? "");
+function oC(e) {
+ let t = iC().useHref(e.href ?? "");
return {
"data-href": e.href ? t : void 0,
"data-target": e.target,
@@ -22640,8 +22640,8 @@ function iC(e) {
"data-referrer-policy": e.referrerPolicy
};
}
-function aC(e) {
- let t = nC().useHref(e?.href ?? ""), n = {};
+function sC(e) {
+ let t = iC().useHref(e?.href ?? ""), n = {};
if (e) for (let r of [
"href",
"target",
@@ -22652,138 +22652,138 @@ function aC(e) {
]) r in e && e[r] !== void 0 && (n[r] = r === "href" ? t : e[r]);
return n;
}
-function bae(e, t, n, r) {
- !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && _ae(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
+function vae(e, t, n, r) {
+ !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && hae(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
}
// node_modules/react-aria/dist/private/ssr/SSRProvider.mjs
-var oC = {
+var cC = {
prefix: String(Math.round(Math.random() * 1e10)),
current: 0
-}, sC = /*#__PURE__*/ F.createContext(oC), xae = /*#__PURE__*/ F.createContext(!1);
+}, lC = /*#__PURE__*/ F.createContext(cC), yae = /*#__PURE__*/ F.createContext(!1);
typeof window < "u" && window.document && window.document.createElement;
-var cC = /* @__PURE__ */ new WeakMap();
-function Sae(e = !1) {
- let t = (0, F.useContext)(sC), n = (0, F.useRef)(null);
+var uC = /* @__PURE__ */ new WeakMap();
+function bae(e = !1) {
+ let t = (0, F.useContext)(lC), n = (0, F.useRef)(null);
if (n.current === null && !e) {
let e = F.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
if (e) {
- let n = cC.get(e);
- n == null ? cC.set(e, {
+ let n = uC.get(e);
+ n == null ? uC.set(e, {
id: t.current,
state: e.memoizedState
- }) : e.memoizedState !== n.state && (t.current = n.id, cC.delete(e));
+ }) : e.memoizedState !== n.state && (t.current = n.id, uC.delete(e));
}
n.current = ++t.current;
}
return n.current;
}
-function Cae(e) {
- let t = (0, F.useContext)(sC), n = Sae(!!e), r = `react-aria${t.prefix}`;
+function xae(e) {
+ let t = (0, F.useContext)(lC), n = bae(!!e), r = `react-aria${t.prefix}`;
return e || `${r}-${n}`;
}
-function wae(e) {
- let t = F.useId(), [n] = (0, F.useState)(lC()), r = n ? "react-aria" : `react-aria${oC.prefix}`;
+function Sae(e) {
+ let t = F.useId(), [n] = (0, F.useState)(dC()), r = n ? "react-aria" : `react-aria${cC.prefix}`;
return e || `${r}-${t}`;
}
-var Tae = typeof F.useId == "function" ? wae : Cae;
-function Eae() {
+var Cae = typeof F.useId == "function" ? Sae : xae;
+function wae() {
return !1;
}
-function Dae() {
+function Tae() {
return !0;
}
-function Oae(e) {
+function Eae(e) {
return () => {};
}
-function lC() {
- return typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore(Oae, Eae, Dae) : (0, F.useContext)(xae);
+function dC() {
+ return typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore(Eae, wae, Tae) : (0, F.useContext)(yae);
}
// node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs
-var uC = null, dC = /* @__PURE__ */ new Set(), fC = /* @__PURE__ */ new Map(), pC = !1, mC = !1, kae = {
+var fC = null, pC = /* @__PURE__ */ new Set(), mC = /* @__PURE__ */ new Map(), hC = !1, gC = !1, Dae = {
Tab: !0,
Escape: !0
};
-function hC(e, t) {
- for (let n of dC) n(e, t);
-}
-function Aae(e) {
- return !(e.metaKey || !YS() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
+function _C(e, t) {
+ for (let n of pC) n(e, t);
}
-function gC(e) {
- pC = !0, !rC.isOpening && Aae(e) && (uC = "keyboard", hC("keyboard", e));
-}
-function _C(e) {
- uC = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (pC = !0, hC("pointer", e));
+function Oae(e) {
+ return !(e.metaKey || !ZS() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
}
function vC(e) {
- !rC.isOpening && tC(e) && (pC = !0, uC = "virtual");
+ hC = !0, !aC.isOpening && Oae(e) && (fC = "keyboard", _C("keyboard", e));
}
function yC(e) {
- if (GS) return;
- let t = G(e), n = ES(t), r = TS(t);
- t === n ? mC = !0 : t !== r && e.isTrusted && (!pC && !mC && (uC = "virtual", hC("virtual", e)), pC = !1, mC = !1);
+ fC = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (hC = !0, _C("pointer", e));
}
-function bC() {
- GS || (pC = !1, mC = !0);
+function bC(e) {
+ !aC.isOpening && rC(e) && (hC = !0, fC = "virtual");
}
function xC(e) {
- let t = NS(TS(G(e)));
+ if (qS) return;
+ let t = G(e), n = OS(t), r = DS(t);
+ t === n ? gC = !0 : t !== r && e.isTrusted && (!hC && !gC && (fC = "virtual", _C("virtual", e)), hC = !1, gC = !1);
+}
+function SC() {
+ qS || (hC = !1, gC = !0);
+}
+function CC(e) {
+ let t = FS(DS(G(e)));
queueMicrotask(() => {
- NS(TS(G(e))) !== t && EC("keyboard");
+ FS(DS(G(e))) !== t && OC("keyboard");
});
}
-function SC(e) {
+function wC(e) {
if (typeof window > "u" || typeof document > "u") return;
- let t = ES(e), n = TS(e);
- if (fC.get(t)) return;
+ let t = OS(e), n = DS(e);
+ if (mC.get(t)) return;
let r = t.HTMLElement.prototype.focus;
Reflect.defineProperty(t.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
value: function() {
- pC = !0, r.apply(this, arguments);
+ hC = !0, r.apply(this, arguments);
}
- }), n.addEventListener("keydown", gC, !0), n.addEventListener("keyup", gC, !0), n.addEventListener("click", vC, !0), n.addEventListener("invalid", xC, !0), t.addEventListener("focus", yC, !0), t.addEventListener("blur", bC, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", _C, !0), n.addEventListener("pointermove", _C, !0), n.addEventListener("pointerup", _C, !0)), t.addEventListener("beforeunload", () => {
- CC(e);
- }, { once: !0 }), fC.set(t, { focus: r });
+ }), n.addEventListener("keydown", vC, !0), n.addEventListener("keyup", vC, !0), n.addEventListener("click", bC, !0), n.addEventListener("invalid", CC, !0), t.addEventListener("focus", xC, !0), t.addEventListener("blur", SC, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", yC, !0), n.addEventListener("pointermove", yC, !0), n.addEventListener("pointerup", yC, !0)), t.addEventListener("beforeunload", () => {
+ TC(e);
+ }, { once: !0 }), mC.set(t, { focus: r });
}
-var CC = (e, t) => {
- let n = ES(e), r = TS(e);
- t && r.removeEventListener("DOMContentLoaded", t), fC.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
+var TC = (e, t) => {
+ let n = OS(e), r = DS(e);
+ t && r.removeEventListener("DOMContentLoaded", t), mC.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
- value: fC.get(n).focus
- }), r.removeEventListener("keydown", gC, !0), r.removeEventListener("keyup", gC, !0), r.removeEventListener("click", vC, !0), r.removeEventListener("invalid", xC, !0), n.removeEventListener("focus", yC, !0), n.removeEventListener("blur", bC, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", _C, !0), r.removeEventListener("pointermove", _C, !0), r.removeEventListener("pointerup", _C, !0)), fC.delete(n));
+ value: mC.get(n).focus
+ }), r.removeEventListener("keydown", vC, !0), r.removeEventListener("keyup", vC, !0), r.removeEventListener("click", bC, !0), r.removeEventListener("invalid", CC, !0), n.removeEventListener("focus", xC, !0), n.removeEventListener("blur", SC, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", yC, !0), r.removeEventListener("pointermove", yC, !0), r.removeEventListener("pointerup", yC, !0)), mC.delete(n));
};
-function jae(e) {
- let t = TS(e), n;
+function kae(e) {
+ let t = DS(e), n;
return t.readyState === "loading" ? (n = () => {
- SC(e);
- }, t.addEventListener("DOMContentLoaded", n)) : SC(e), () => CC(e, n);
+ wC(e);
+ }, t.addEventListener("DOMContentLoaded", n)) : wC(e), () => TC(e, n);
}
-typeof document < "u" && jae();
-function wC() {
- return uC !== "pointer";
+typeof document < "u" && kae();
+function EC() {
+ return fC !== "pointer";
}
-function TC() {
- return uC;
+function DC() {
+ return fC;
}
-function EC(e) {
- uC = e, hC(e, null);
+function OC(e) {
+ fC = e, _C(e, null);
}
-function DC() {
- SC();
- let [e, t] = (0, F.useState)(uC);
+function kC() {
+ wC();
+ let [e, t] = (0, F.useState)(fC);
return (0, F.useEffect)(() => {
let e = () => {
- t(uC);
+ t(fC);
};
- return dC.add(e), () => {
- dC.delete(e);
+ return pC.add(e), () => {
+ pC.delete(e);
};
- }, []), lC() ? null : e;
+ }, []), dC() ? null : e;
}
-var Mae = /* @__PURE__ */ new Set([
+var Aae = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -22794,107 +22794,107 @@ var Mae = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function Nae(e, t, n) {
- let r = n ? G(n) : void 0, i = TS(r), a = ES(r), o = a === void 0 ? HTMLInputElement : a.HTMLInputElement, s = a === void 0 ? HTMLTextAreaElement : a.HTMLTextAreaElement, c = a === void 0 ? HTMLElement : a.HTMLElement, l = a === void 0 ? KeyboardEvent : a.KeyboardEvent, u = NS(i);
- return e = e || u instanceof o && !Mae.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !kae[n.key]);
+function jae(e, t, n) {
+ let r = n ? G(n) : void 0, i = DS(r), a = OS(r), o = a === void 0 ? HTMLInputElement : a.HTMLInputElement, s = a === void 0 ? HTMLTextAreaElement : a.HTMLTextAreaElement, c = a === void 0 ? HTMLElement : a.HTMLElement, l = a === void 0 ? KeyboardEvent : a.KeyboardEvent, u = FS(i);
+ return e = e || u instanceof o && !Aae.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !Dae[n.key]);
}
-function OC(e = {}) {
- let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, F.useState)(n || wC());
- return kC((e) => {
+function AC(e = {}) {
+ let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, F.useState)(n || EC());
+ return jC((e) => {
i(e);
}, [t], { isTextInput: t }), { isFocusVisible: r };
}
-function kC(e, t, n) {
- SC(), (0, F.useEffect)(() => {
+function jC(e, t, n) {
+ wC(), (0, F.useEffect)(() => {
if (n?.enabled === !1) return;
let t = (t, r) => {
- Nae(!!n?.isTextInput, t, r) && e(wC());
+ jae(!!n?.isTextInput, t, r) && e(EC());
};
- return dC.add(t), () => {
- dC.delete(t);
+ return pC.add(t), () => {
+ pC.delete(t);
};
}, t);
}
// node_modules/react-aria/dist/private/utils/runAfterTransition.mjs
-var AC = /* @__PURE__ */ new Map(), jC = /* @__PURE__ */ new Set();
-function MC(e) {
+var MC = /* @__PURE__ */ new Map(), NC = /* @__PURE__ */ new Set();
+function PC(e) {
return "propertyName" in e;
}
-function Pae(e) {
+function Mae(e) {
let t = G(e);
- if (!MC(e) || !t) return;
- let n = AC.get(t);
- n || (n = /* @__PURE__ */ new Set(), AC.set(t, n), t.addEventListener("transitioncancel", NC, { once: !0 })), n.add(e.propertyName);
+ if (!PC(e) || !t) return;
+ let n = MC.get(t);
+ n || (n = /* @__PURE__ */ new Set(), MC.set(t, n), t.addEventListener("transitioncancel", FC, { once: !0 })), n.add(e.propertyName);
}
-function NC(e) {
+function FC(e) {
let t = G(e);
- if (!MC(e) || !t) return;
- let n = AC.get(t);
- if (n && (n.delete(e.propertyName), n.size === 0 && (t.removeEventListener("transitioncancel", NC), AC.delete(t)), AC.size === 0)) for (let e of jC) e(!0), jC.delete(e);
+ if (!PC(e) || !t) return;
+ let n = MC.get(t);
+ if (n && (n.delete(e.propertyName), n.size === 0 && (t.removeEventListener("transitioncancel", FC), MC.delete(t)), MC.size === 0)) for (let e of NC) e(!0), NC.delete(e);
}
-function PC() {
- kS(document, "transitionrun", Pae), kS(document, "transitionend", NC);
+function IC() {
+ jS(document, "transitionrun", Mae), jS(document, "transitionend", FC);
}
-function Fae() {
- for (let [e] of AC) "isConnected" in e && !e.isConnected && AC.delete(e);
+function Nae() {
+ for (let [e] of MC) "isConnected" in e && !e.isConnected && MC.delete(e);
}
-typeof document < "u" && (document.readyState === "loading" ? kS(document, "DOMContentLoaded", PC) : PC());
-function FC(e) {
+typeof document < "u" && (document.readyState === "loading" ? jS(document, "DOMContentLoaded", IC) : IC());
+function LC(e) {
let t = window.requestAnimationFrame(() => {
- if (Fae(), AC.size === 0) return e(!1);
- jC.add(e);
+ if (Nae(), MC.size === 0) return e(!1);
+ NC.add(e);
});
return () => {
- window.cancelAnimationFrame(t), jC.delete(e);
+ window.cancelAnimationFrame(t), NC.delete(e);
};
}
// node_modules/react-aria/dist/private/interactions/focusSafely.mjs
-function IC(e) {
+function RC(e) {
if (!e.isConnected) return;
- let t = TS(e);
- if (TC() === "virtual") {
- let n = NS(t);
- FC(() => {
- let r = NS(t);
- (r === n || r === t.body) && e.isConnected && wS(e);
+ let t = DS(e);
+ if (DC() === "virtual") {
+ let n = FS(t);
+ LC(() => {
+ let r = FS(t);
+ (r === n || r === t.body) && e.isConnected && ES(e);
});
- } else wS(e);
+ } else ES(e);
}
// node_modules/react-aria/dist/private/utils/chain.mjs
-function LC(...e) {
+function zC(...e) {
return (...t) => {
for (let n of e) typeof n == "function" && n(...t);
};
}
// node_modules/react-aria/dist/private/utils/useValueEffect.mjs
-function Iae(e) {
+function Pae(e) {
let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(t), i = (0, F.useRef)(null), a = (0, F.useRef)(() => {
if (!i.current) return;
let e = i.current.next();
e.done ? i.current = null : r.current === e.value ? a.current() : n(e.value);
});
- return VS(() => {
+ return US(() => {
r.current = t, i.current && a.current();
}), [t, (0, F.useCallback)((e) => {
i.current = e(r.current), a.current();
}, [a])];
}
// node_modules/react-aria/dist/private/utils/useId.mjs
-var Lae = !!(typeof window < "u" && window.document && window.document.createElement), RC = /* @__PURE__ */ new Map(), zC;
-typeof FinalizationRegistry < "u" && (zC = new FinalizationRegistry((e) => {
- RC.delete(e);
+var Fae = !!(typeof window < "u" && window.document && window.document.createElement), BC = /* @__PURE__ */ new Map(), VC;
+typeof FinalizationRegistry < "u" && (VC = new FinalizationRegistry((e) => {
+ BC.delete(e);
}));
-var BC = /* @__PURE__ */ new WeakMap();
-function VC(e) {
- let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(null), i = Tae(t), a = (0, F.useRef)(null), o = BC.get(a);
- if (zC && o !== i && (o != null && zC.unregister(a), zC.register(a, i, a), BC.set(a, i)), Lae) {
- let e = RC.get(i);
- e && !e.includes(r) ? e.push(r) : RC.set(i, [r]);
- }
- return VS(() => {
+var HC = /* @__PURE__ */ new WeakMap();
+function UC(e) {
+ let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(null), i = Cae(t), a = (0, F.useRef)(null), o = HC.get(a);
+ if (VC && o !== i && (o != null && VC.unregister(a), VC.register(a, i, a), HC.set(a, i)), Fae) {
+ let e = BC.get(i);
+ e && !e.includes(r) ? e.push(r) : BC.set(i, [r]);
+ }
+ return US(() => {
let e = i;
return () => {
- zC && (zC.unregister(a), BC.delete(a)), RC.delete(e);
+ VC && (VC.unregister(a), HC.delete(a)), BC.delete(e);
};
}, [i]), (0, F.useEffect)(() => {
let e = r.current;
@@ -22903,57 +22903,57 @@ function VC(e) {
};
}), i;
}
-function Rae(e, t) {
+function Iae(e, t) {
if (e === t) return e;
- let n = RC.get(e);
+ let n = BC.get(e);
if (n) return n.forEach((e) => e.current = t), t;
- let r = RC.get(t);
+ let r = BC.get(t);
return r ? (r.forEach((t) => t.current = e), e) : t;
}
-function HC(e = []) {
- let t = VC(), [n, r] = Iae(t), i = (0, F.useCallback)(() => {
+function WC(e = []) {
+ let t = UC(), [n, r] = Pae(t), i = (0, F.useCallback)(() => {
r(function* () {
yield t, yield document.getElementById(t) ? t : void 0;
});
}, [t, r]);
- return VS(i, [
+ return US(i, [
t,
i,
...e
]), n;
}
// node_modules/react-aria/dist/private/utils/mergeRefs.mjs
-function UC(...e) {
+function GC(...e) {
return e.length === 1 && e[0] ? e[0] : (t) => {
let n = !1, r = e.map((e) => {
- let r = WC(e, t);
+ let r = KC(e, t);
return n ||= typeof r == "function", r;
});
if (n) return () => {
r.forEach((t, n) => {
- typeof t == "function" ? t() : WC(e[n], null);
+ typeof t == "function" ? t() : KC(e[n], null);
});
};
};
}
-function WC(e, t) {
+function KC(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
// node_modules/clsx/dist/clsx.mjs
-function GC(e) {
+function qC(e) {
var t, n, r = "";
if (typeof e == "string" || typeof e == "number") r += e;
else if (typeof e == "object") {
if (Array.isArray(e)) {
var i = e.length;
- for (t = 0; t < i; t++) e[t] && (n = GC(e[t])) && (r && (r += " "), r += n);
+ for (t = 0; t < i; t++) e[t] && (n = qC(e[t])) && (r && (r += " "), r += n);
} else for (n in e) e[n] && (r && (r += " "), r += n);
}
return r;
}
-function KC() {
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = GC(e)) && (r && (r += " "), r += t);
+function JC() {
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = qC(e)) && (r && (r += " "), r += t);
return r;
}
// node_modules/react-aria/dist/private/utils/mergeProps.mjs
@@ -22963,17 +22963,17 @@ function K(...e) {
let r = e[n];
for (let e in r) {
let n = t[e], i = r[e];
- typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = LC(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = KC(n, i) : e === "id" && n && i ? t.id = Rae(n, i) : e === "ref" && n && i ? t.ref = UC(n, i) : t[e] = i === void 0 ? n : i;
+ typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = zC(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = JC(n, i) : e === "id" && n && i ? t.id = Iae(n, i) : e === "ref" && n && i ? t.ref = GC(n, i) : t[e] = i === void 0 ? n : i;
}
}
return t;
}
// node_modules/react-aria/dist/private/interactions/useFocus.mjs
-function qC(e) {
+function YC(e) {
let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, F.useCallback)((e) => {
if (G(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
- }, [r, i]), o = WS(a), s = (0, F.useCallback)((e) => {
- let t = G(e), r = TS(t), a = r ? NS(r) : NS();
+ }, [r, i]), o = KS(a), s = (0, F.useCallback)((e) => {
+ let t = G(e), r = DS(t), a = r ? FS(r) : FS();
t === e.currentTarget && t === a && (n && n(e), i && i(!0), o(e));
}, [
i,
@@ -22986,7 +22986,7 @@ function qC(e) {
} };
}
// node_modules/react-aria/dist/private/interactions/createEventHandler.mjs
-function JC(e) {
+function XC(e) {
if (e) return (t) => {
let n = !0;
e({
@@ -23010,33 +23010,33 @@ function JC(e) {
};
}
// node_modules/react-aria/dist/private/interactions/createKeyboardShortcutHandler.mjs
-var zae = /* @__PURE__ */ new Set([
+var Lae = /* @__PURE__ */ new Set([
"shift",
"alt",
"control",
"meta",
"mod"
-]), Bae = [
+]), Rae = [
"Alt",
"Control",
"Meta",
"Shift"
];
-function Vae(e) {
+function zae(e) {
let t = /* @__PURE__ */ new Set();
- return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add(YS() ? "Meta" : "Control"), t;
+ return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add(ZS() ? "Meta" : "Control"), t;
}
-function Hae(e) {
+function Bae(e) {
let t = /* @__PURE__ */ new Set();
return e.altKey && t.add("Alt"), e.ctrlKey && t.add("Control"), e.metaKey && t.add("Meta"), e.shiftKey && t.add("Shift"), t;
}
-function YC(e) {
- return Bae.filter((t) => e.has(t));
+function ZC(e) {
+ return Rae.filter((t) => e.has(t));
}
-function Uae(e) {
+function Vae(e) {
let t = e.split("+").reduce((e, t) => {
let n = t.toLowerCase();
- return zae.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
+ return Lae.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
}, {
shift: !1,
alt: !1,
@@ -23048,10 +23048,10 @@ function Uae(e) {
if (t.key === "") throw Error(`Invalid keyboard shortcut: "${e}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);
return t;
}
-function XC(e) {
+function QC(e) {
return e.toLowerCase();
}
-var Wae = {
+var Hae = {
space: " ",
esc: "escape",
del: "delete",
@@ -23063,26 +23063,26 @@ var Wae = {
pageup: "pageup",
pagedown: "pagedown"
};
-function Gae(e) {
- let t = XC(e);
- return Wae[t] ?? t;
+function Uae(e) {
+ let t = QC(e);
+ return Hae[t] ?? t;
}
-function Kae(e) {
- let t = YC(Vae(e)), n = Gae(e.key);
+function Wae(e) {
+ let t = ZC(zae(e)), n = Uae(e.key);
return t.length > 0 ? `${t.join("+")}+${n}` : n;
}
-function qae(e) {
- let t = YC(Hae(e)), n = XC(e.key);
+function Gae(e) {
+ let t = ZC(Bae(e)), n = QC(e.key);
return (t.length > 0 ? `${t.join("+")}+` : "") + n;
}
-function Jae(e) {
+function Kae(e) {
let t = /* @__PURE__ */ new Map();
for (let [n, r] of Object.entries(e)) {
- let e = Uae(n);
- t.set(Kae(e), r);
+ let e = Vae(n);
+ t.set(Wae(e), r);
}
return (e) => {
- let n = qae(e), r = t.get(n), i = r?.(e);
+ let n = Gae(e), r = t.get(n), i = r?.(e);
i === void 0 && r !== void 0 ? i = {
shouldContinuePropagation: !1,
shouldPreventDefault: !0
@@ -23093,23 +23093,23 @@ function Jae(e) {
};
}
// node_modules/react-aria/dist/private/interactions/useKeyboard.mjs
-function ZC(e) {
+function $C(e) {
let { shortcuts: t, allowRepeats: n = !1, allowComposing: r = !1 } = e, i, a;
if (t) {
- let o = Jae(t), s = JC((e) => {
- MS(e.currentTarget, G(e)) ? e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r ? e.continuePropagation() : o(e) : e.continuePropagation();
- }), c = JC((e) => {
- MS(e.currentTarget, G(e)) && (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing), e.continuePropagation();
+ let o = Kae(t), s = XC((e) => {
+ PS(e.currentTarget, G(e)) ? e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r ? e.continuePropagation() : o(e) : e.continuePropagation();
+ }), c = XC((e) => {
+ PS(e.currentTarget, G(e)) && (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing), e.continuePropagation();
});
- i = e.onKeyDown ? LC(e.onKeyDown, s) : s, a = e.onKeyUp ? LC(e.onKeyUp, c) : c;
- } else i = JC(e.onKeyDown), a = JC(e.onKeyUp);
+ i = e.onKeyDown ? zC(e.onKeyDown, s) : s, a = e.onKeyUp ? zC(e.onKeyUp, c) : c;
+ } else i = XC(e.onKeyDown), a = XC(e.onKeyUp);
return { keyboardProps: e.isDisabled ? {} : {
onKeyDown: i,
onKeyUp: a
} };
}
// node_modules/react-aria/dist/private/utils/useObjectRef.mjs
-function QC(e) {
+function ew(e) {
let t = (0, F.useRef)(null), n = (0, F.useRef)(void 0), r = (0, F.useCallback)((t) => {
if (typeof e == "function") {
let n = e, r = n(t);
@@ -23131,25 +23131,25 @@ function QC(e) {
}), [r]);
}
// node_modules/react-aria/dist/private/utils/useSyncRef.mjs
-function $C(e, t) {
- VS(() => {
+function tw(e, t) {
+ US(() => {
if (e && e.ref && t) return e.ref.current = t.current, () => {
e.ref && (e.ref.current = null);
};
});
}
// node_modules/react-aria/dist/private/interactions/useFocusable.mjs
-var ew = /*#__PURE__*/ F.createContext(null);
-function Yae(e) {
- let t = (0, F.useContext)(ew) || {};
- $C(t, e);
+var nw = /*#__PURE__*/ F.createContext(null);
+function qae(e) {
+ let t = (0, F.useContext)(nw) || {};
+ tw(t, e);
let { ref: n, ...r } = t;
return r;
}
-function tw(e, t) {
- let { focusProps: n } = qC(e), { keyboardProps: r } = ZC(e), i = K(n, r), a = Yae(t), o = e.isDisabled ? {} : a, s = (0, F.useRef)(e.autoFocus);
+function rw(e, t) {
+ let { focusProps: n } = YC(e), { keyboardProps: r } = $C(e), i = K(n, r), a = qae(t), o = e.isDisabled ? {} : a, s = (0, F.useRef)(e.autoFocus);
(0, F.useEffect)(() => {
- s.current && t.current && IC(t.current), s.current = !1;
+ s.current && t.current && RC(t.current), s.current = !1;
}, [t]);
let c = e.excludeFromTabOrder ? -1 : 0;
return e.isDisabled && (c = void 0), { focusableProps: K({
@@ -23183,21 +23183,21 @@ typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.p
return this.content.insertBefore(e, t);
}
}));
-var nw = /*#__PURE__*/ (0, F.createContext)(!1);
-function Xae(e) {
- if ((0, F.useContext)(nw)) return /*#__PURE__*/ F.createElement(F.Fragment, null, e.children);
- let t = /*#__PURE__*/ F.createElement(nw.Provider, { value: !0 }, e.children);
+var iw = /*#__PURE__*/ (0, F.createContext)(!1);
+function Jae(e) {
+ if ((0, F.useContext)(iw)) return /*#__PURE__*/ F.createElement(F.Fragment, null, e.children);
+ let t = /*#__PURE__*/ F.createElement(iw.Provider, { value: !0 }, e.children);
return /*#__PURE__*/ F.createElement("template", null, t);
}
-function rw(e) {
- let t = (t, n) => (0, F.useContext)(nw) ? null : e(t, n);
+function aw(e) {
+ let t = (t, n) => (0, F.useContext)(iw) ? null : e(t, n);
return t.displayName = e.displayName || e.name, (0, F.forwardRef)(t);
}
-function iw() {
- return (0, F.useContext)(nw);
+function ow() {
+ return (0, F.useContext)(iw);
}
// node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
-var Zae = /* @__PURE__ */ o(((e) => {
+var Yae = /* @__PURE__ */ o(((e) => {
var t = A();
function n(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -23235,47 +23235,47 @@ var Zae = /* @__PURE__ */ o(((e) => {
}
var d = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? u : c;
e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? d : t.useSyncExternalStore;
-})), aw = /* @__PURE__ */ o(((e, t) => {
- t.exports = Zae();
-})), Qae = aw(), ow = /*#__PURE__*/ (0, F.createContext)(!1), sw = /*#__PURE__*/ (0, F.createContext)(null);
-function cw(e) {
- if ((0, F.useContext)(sw)) return e.content;
- let { collection: t, document: n } = noe(e.createCollection);
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(Xae, null, /*#__PURE__*/ F.createElement(sw.Provider, { value: n }, e.content)), /*#__PURE__*/ F.createElement($ae, {
+})), sw = /* @__PURE__ */ o(((e, t) => {
+ t.exports = Yae();
+})), Xae = sw(), cw = /*#__PURE__*/ (0, F.createContext)(!1), lw = /*#__PURE__*/ (0, F.createContext)(null);
+function uw(e) {
+ if ((0, F.useContext)(lw)) return e.content;
+ let { collection: t, document: n } = eoe(e.createCollection);
+ return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(Jae, null, /*#__PURE__*/ F.createElement(lw.Provider, { value: n }, e.content)), /*#__PURE__*/ F.createElement(Zae, {
render: e.children,
collection: t
}));
}
-function $ae({ collection: e, render: t }) {
+function Zae({ collection: e, render: t }) {
return t(e);
}
-function eoe(e, t, n) {
- let r = lC(), i = (0, F.useRef)(r);
+function Qae(e, t, n) {
+ let r = dC(), i = (0, F.useRef)(r);
i.current = r;
let a = (0, F.useCallback)(() => i.current ? n() : t(), [t, n]);
- return (0, Qae.useSyncExternalStore)(e, a);
+ return (0, Xae.useSyncExternalStore)(e, a);
}
-var toe = typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore : eoe;
-function noe(e) {
- let [t] = (0, F.useState)(() => new nae(e?.() || new yS()));
+var $ae = typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore : Qae;
+function eoe(e) {
+ let [t] = (0, F.useState)(() => new eae(e?.() || new xS()));
return {
- collection: toe((0, F.useCallback)((e) => t.subscribe(e), [t]), (0, F.useCallback)(() => {
+ collection: $ae((0, F.useCallback)((e) => t.subscribe(e), [t]), (0, F.useCallback)(() => {
let e = t.getCollection();
return t.isSSR && t.resetAfterSSR(), e;
}, [t]), (0, F.useCallback)(() => (t.isSSR = !0, t.getCollection()), [t])),
document: t
};
}
-var lw = /*#__PURE__*/ (0, F.createContext)(null);
-function roe(e) {
- return class extends hS {
+var dw = /*#__PURE__*/ (0, F.createContext)(null);
+function toe(e) {
+ return class extends _S {
static {
this.type = e;
}
};
}
-function uw(e, t, n, r, i, a) {
- typeof e == "string" && (e = roe(e));
+function fw(e, t, n, r, i, a) {
+ typeof e == "string" && (e = toe(e));
let o = (0, F.useCallback)((i) => {
i?.setProps(t, n, e, r, a);
}, [
@@ -23284,82 +23284,82 @@ function uw(e, t, n, r, i, a) {
r,
a,
e
- ]), s = (0, F.useContext)(lw);
+ ]), s = (0, F.useContext)(dw);
if (s) {
let o = s.ownerDocument.nodesByProps.get(t);
- return o || (o = s.ownerDocument.createElement(e.type), o.setProps(t, n, e, r, a), s.appendChild(o), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(t, o)), i ? /*#__PURE__*/ F.createElement(lw.Provider, { value: o }, i) : null;
+ return o || (o = s.ownerDocument.createElement(e.type), o.setProps(t, n, e, r, a), s.appendChild(o), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(t, o)), i ? /*#__PURE__*/ F.createElement(dw.Provider, { value: o }, i) : null;
}
return /*#__PURE__*/ F.createElement(e.type, { ref: o }, i);
}
-function dw(e, t) {
+function pw(e, t) {
let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, F.forwardRef)((r, i) => {
- let a = (0, F.useContext)(ew);
- if (!(0, F.useContext)(ow)) {
+ let a = (0, F.useContext)(nw);
+ if (!(0, F.useContext)(cw)) {
if (t.length >= 3) throw Error(t.name + " cannot be rendered outside a collection.");
return t(r, i);
}
- return uw(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ F.createElement(ew.Provider, { value: a }, /*#__PURE__*/ F.createElement(n, { node: e })));
+ return fw(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ F.createElement(nw.Provider, { value: a }, /*#__PURE__*/ F.createElement(n, { node: e })));
});
return r.displayName = t.name, r;
}
-function fw(e, t, n = pw) {
- let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, F.forwardRef)((t, i) => uw(e, t, i, null, n(t), (e) => /*#__PURE__*/ F.createElement(r, { node: e })) ?? /*#__PURE__*/ F.createElement(F.Fragment, null));
+function mw(e, t, n = hw) {
+ let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, F.forwardRef)((t, i) => fw(e, t, i, null, n(t), (e) => /*#__PURE__*/ F.createElement(r, { node: e })) ?? /*#__PURE__*/ F.createElement(F.Fragment, null));
return i.displayName = t.name, i;
}
-function pw(e) {
- return CS({
+function hw(e) {
+ return TS({
...e,
addIdAndValue: !0
});
}
-var mw = /*#__PURE__*/ (0, F.createContext)(null);
-function hw(e) {
- let t = (0, F.useContext)(mw), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = pw({
+var gw = /*#__PURE__*/ (0, F.createContext)(null);
+function _w(e) {
+ let t = (0, F.useContext)(gw), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = hw({
...e,
idScope: r,
dependencies: n
});
- return (0, F.useContext)(sw) && (i = /*#__PURE__*/ F.createElement(ioe, null, i)), t = (0, F.useMemo)(() => ({
+ return (0, F.useContext)(lw) && (i = /*#__PURE__*/ F.createElement(noe, null, i)), t = (0, F.useMemo)(() => ({
dependencies: n,
idScope: r
- }), [r, ...n]), /*#__PURE__*/ F.createElement(mw.Provider, { value: t }, i);
+ }), [r, ...n]), /*#__PURE__*/ F.createElement(gw.Provider, { value: t }, i);
}
-function ioe({ children: e }) {
- let t = (0, F.useContext)(sw), n = (0, F.useMemo)(() => /*#__PURE__*/ F.createElement(sw.Provider, { value: null }, /*#__PURE__*/ F.createElement(ow.Provider, { value: !0 }, e)), [e]);
- return lC() ? /*#__PURE__*/ F.createElement(lw.Provider, { value: t }, n) : /*#__PURE__*/ (0, Lt.createPortal)(n, t);
+function noe({ children: e }) {
+ let t = (0, F.useContext)(lw), n = (0, F.useMemo)(() => /*#__PURE__*/ F.createElement(lw.Provider, { value: null }, /*#__PURE__*/ F.createElement(cw.Provider, { value: !0 }, e)), [e]);
+ return dC() ? /*#__PURE__*/ F.createElement(dw.Provider, { value: t }, n) : /*#__PURE__*/ (0, Lt.createPortal)(n, t);
}
// node_modules/react-aria/dist/private/utils/constants.mjs
-var aoe = "react-aria-clear-focus", ooe = "react-aria-focus";
+var roe = "react-aria-clear-focus", ioe = "react-aria-focus";
// node_modules/react-aria/dist/private/focus/virtualFocus.mjs
-function gw(e) {
- let t = coe(TS(e));
- t !== e && (t && soe(t, e), e && _w(e, t));
+function vw(e) {
+ let t = ooe(DS(e));
+ t !== e && (t && aoe(t, e), e && yw(e, t));
}
-function soe(e, t) {
+function aoe(e, t) {
e.dispatchEvent(new FocusEvent("blur", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: t
}));
}
-function _w(e, t) {
+function yw(e, t) {
e.dispatchEvent(new FocusEvent("focus", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusin", {
bubbles: !0,
relatedTarget: t
}));
}
-function coe(e) {
- let t = NS(e), n = t?.getAttribute("aria-activedescendant");
+function ooe(e) {
+ let t = FS(e), n = t?.getAttribute("aria-activedescendant");
return n && e.getElementById(n) || t;
}
// node_modules/react-aria/dist/private/utils/getMetaValue.mjs
-function vw(e, t) {
- let n = ES(t), r = TS(t);
+function bw(e, t) {
+ let n = OS(t), r = DS(t);
if (r == null || n == null) return;
let i, a = `meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`, o = r.querySelector(a);
return o && o instanceof n.HTMLMetaElement && (e === "csp-nonce" && o.nonce && (i ??= o.nonce || void 0), o.content && (i ??= o.content || void 0)), e === "csp-nonce" && (i ??= n.__webpack_nonce__ || globalThis.__webpack_nonce__ || void 0), i;
}
// node_modules/react-aria/dist/private/utils/keyboard.mjs
-var yw = 100, bw = 600, xw = {
+var xw = 100, Sw = 600, Cw = {
isOpen: !1,
screenWidth: 0,
screenHeight: 0,
@@ -23369,7 +23369,7 @@ var yw = 100, bw = 600, xw = {
endTimeStamp: 0,
resizeTimeStamp: 0,
resizeTimeout: 0
-}, loe = /* @__PURE__ */ new Set([
+}, soe = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -23380,7 +23380,7 @@ var yw = 100, bw = 600, xw = {
"submit",
"reset"
]);
-function Sw() {
+function ww() {
let e = Number(window.visualViewport?.width ?? window.innerWidth), t = Number(window.visualViewport?.height ?? window.innerHeight), n = Number(window.visualViewport?.scale ?? 1);
return {
width: e * n,
@@ -23388,58 +23388,58 @@ function Sw() {
angle: window.screen.orientation?.angle ?? 0
};
}
-function uoe(e) {
- xw.resizeTimeStamp <= e.timeStamp + 50 && (xw.resizeTimeStamp = e.timeStamp + 150, window.clearTimeout(xw.resizeTimeout), xw.resizeTimeout = window.setTimeout(Cw, 150));
-}
-function Cw() {
- let e = vw("viewport");
- if (eC() && e?.includes("overlays-content")) return;
- let t = performance.now(), n = Sw(), r = t - xw.startTimeStamp, i = xw.screenHeight - n.height, a = xw.screenAngle - n.angle;
- Math.abs(a) % 180 && xw.screenWidth - n.height < yw && (xw.screenWidth = n.width, xw.screenHeight = n.height, xw.screenAngle = n.angle, i = 0), r > bw && (window.clearTimeout(xw.screenTimeout), xw.screenTimeout = window.setTimeout(() => {
- let e = Ew(document.hasFocus() ? NS() : null), t = Sw();
- Math.abs(xw.screenAngle - t.angle) % 180 || xw.isOpen && e || (xw.screenWidth = t.width, xw.screenHeight = t.height, xw.screenAngle = t.angle, xw.isOpen = !1);
- }, bw)), r <= bw && i >= yw && (xw.endTimeStamp = t), xw.isOpen = i >= yw;
+function coe(e) {
+ Cw.resizeTimeStamp <= e.timeStamp + 50 && (Cw.resizeTimeStamp = e.timeStamp + 150, window.clearTimeout(Cw.resizeTimeout), Cw.resizeTimeout = window.setTimeout(Tw, 150));
}
-function doe() {
- let e = Sw(), t = xw.screenAngle - e.angle;
- if (Math.abs(t) % 180 && !xw.isOpen) {
- let e = xw.screenWidth;
- xw.screenWidth = xw.screenHeight, xw.screenHeight = e;
- }
- xw.isOpen || (xw.screenAngle = e.angle);
+function Tw() {
+ let e = bw("viewport");
+ if (nC() && e?.includes("overlays-content")) return;
+ let t = performance.now(), n = ww(), r = t - Cw.startTimeStamp, i = Cw.screenHeight - n.height, a = Cw.screenAngle - n.angle;
+ Math.abs(a) % 180 && Cw.screenWidth - n.height < xw && (Cw.screenWidth = n.width, Cw.screenHeight = n.height, Cw.screenAngle = n.angle, i = 0), r > Sw && (window.clearTimeout(Cw.screenTimeout), Cw.screenTimeout = window.setTimeout(() => {
+ let e = Ow(document.hasFocus() ? FS() : null), t = ww();
+ Math.abs(Cw.screenAngle - t.angle) % 180 || Cw.isOpen && e || (Cw.screenWidth = t.width, Cw.screenHeight = t.height, Cw.screenAngle = t.angle, Cw.isOpen = !1);
+ }, Sw)), r <= Sw && i >= xw && (Cw.endTimeStamp = t), Cw.isOpen = i >= xw;
+}
+function loe() {
+ let e = ww(), t = Cw.screenAngle - e.angle;
+ if (Math.abs(t) % 180 && !Cw.isOpen) {
+ let e = Cw.screenWidth;
+ Cw.screenWidth = Cw.screenHeight, Cw.screenHeight = e;
+ }
+ Cw.isOpen || (Cw.screenAngle = e.angle);
}
-function foe(e) {
- let t = Ew(G(e)), n = performance.now(), r = Sw(), i = xw.screenHeight - r.height;
- i < yw && t && (xw.screenWidth = r.width, xw.screenHeight = r.height, xw.screenAngle = r.angle, xw.startTimeStamp = n), t && window.clearTimeout(xw.screenTimeout), i >= yw && t && (xw.endTimeStamp = n);
+function uoe(e) {
+ let t = Ow(G(e)), n = performance.now(), r = ww(), i = Cw.screenHeight - r.height;
+ i < xw && t && (Cw.screenWidth = r.width, Cw.screenHeight = r.height, Cw.screenAngle = r.angle, Cw.startTimeStamp = n), t && window.clearTimeout(Cw.screenTimeout), i >= xw && t && (Cw.endTimeStamp = n);
}
-function ww() {
- let e = Sw();
- kS(window.visualViewport, "resize", QS() ? Cw : uoe), kS(window.screen.orientation, "change", doe), kS(window, "focus", foe, {
+function Ew() {
+ let e = ww();
+ jS(window.visualViewport, "resize", eC() ? Tw : coe), jS(window.screen.orientation, "change", loe), jS(window, "focus", uoe, {
capture: !0,
passive: !0
- }), xw.screenWidth = e.width, xw.screenHeight = e.height, xw.screenAngle = e.angle;
+ }), Cw.screenWidth = e.width, Cw.screenHeight = e.height, Cw.screenAngle = e.angle;
}
-typeof document < "u" && (document.readyState === "loading" ? kS(document, "DOMContentLoaded", ww) : ww());
-function Tw() {
- let e = vw("viewport");
- return eC() && e?.includes("overlays-content") ? !1 : xw.isOpen ? !0 : xw.startTimeStamp ? xw.endTimeStamp >= xw.startTimeStamp ? !0 : performance.now() - xw.startTimeStamp <= bw ? xw.endTimeStamp > 0 || window.navigator.maxTouchPoints > 0 : !1 : window.navigator.maxTouchPoints > 0;
+typeof document < "u" && (document.readyState === "loading" ? jS(document, "DOMContentLoaded", Ew) : Ew());
+function Dw() {
+ let e = bw("viewport");
+ return nC() && e?.includes("overlays-content") ? !1 : Cw.isOpen ? !0 : Cw.startTimeStamp ? Cw.endTimeStamp >= Cw.startTimeStamp ? !0 : performance.now() - Cw.startTimeStamp <= Sw ? Cw.endTimeStamp > 0 || window.navigator.maxTouchPoints > 0 : !1 : window.navigator.maxTouchPoints > 0;
}
-function Ew(e) {
- if (!(e instanceof Element) || !RS(e)) return !1;
- let t = e instanceof HTMLTextAreaElement, n = e instanceof HTMLElement && e.isContentEditable, r = e instanceof HTMLInputElement && !loe.has(e.type);
+function Ow(e) {
+ if (!(e instanceof Element) || !BS(e)) return !1;
+ let t = e instanceof HTMLTextAreaElement, n = e instanceof HTMLElement && e.isContentEditable, r = e instanceof HTMLInputElement && !soe.has(e.type);
return t || n || r;
}
-function Dw(e) {
- return YS() ? e.metaKey : e.ctrlKey;
+function kw(e) {
+ return ZS() ? e.metaKey : e.ctrlKey;
}
-function Ow() {
- return xw.isOpen;
+function Aw() {
+ return Cw.isOpen;
}
// node_modules/react-aria/dist/private/utils/useEffectEvent.mjs
-var poe = F.useInsertionEffect ?? VS;
-function kw(e) {
+var doe = F.useInsertionEffect ?? US;
+function jw(e) {
let t = (0, F.useRef)(null);
- return poe(() => {
+ return doe(() => {
t.current = e;
}, [e]), (0, F.useCallback)((...e) => {
let n = t.current;
@@ -23447,10 +23447,10 @@ function kw(e) {
}, []);
}
// node_modules/react-aria/dist/private/utils/useEvent.mjs
-function Aw(e, t, n, r) {
- let i = kw(n), a = n == null;
+function Mw(e, t, n, r) {
+ let i = jw(n), a = n == null;
(0, F.useEffect)(() => {
- if (!(a || e.current == null)) return kS(e.current, t, i, r);
+ if (!(a || e.current == null)) return jS(e.current, t, i, r);
}, [
e,
t,
@@ -23459,16 +23459,16 @@ function Aw(e, t, n, r) {
]);
}
// node_modules/react-aria/dist/private/utils/useLabels.mjs
-function jw(e, t) {
+function Nw(e, t) {
let { id: n, "aria-label": r, "aria-labelledby": i } = e;
- return n = VC(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
+ return n = UC(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
id: n,
"aria-label": r,
"aria-labelledby": i
};
}
// node_modules/react-aria/dist/private/i18n/utils.mjs
-var moe = /* @__PURE__ */ new Set([
+var foe = /* @__PURE__ */ new Set([
"Arab",
"Syrc",
"Samr",
@@ -23479,7 +23479,7 @@ var moe = /* @__PURE__ */ new Set([
"Adlm",
"Rohg",
"Hebr"
-]), hoe = /* @__PURE__ */ new Set([
+]), poe = /* @__PURE__ */ new Set([
"ae",
"ar",
"arc",
@@ -23500,19 +23500,19 @@ var moe = /* @__PURE__ */ new Set([
"ur",
"yi"
]);
-function goe(e) {
+function moe(e) {
if (Intl.Locale) {
let t = new Intl.Locale(e).maximize(), n = typeof t.getTextInfo == "function" ? t.getTextInfo() : t.textInfo;
if (n) return n.direction === "rtl";
- if (t.script) return moe.has(t.script);
+ if (t.script) return foe.has(t.script);
}
let t = e.split("-")[0];
- return hoe.has(t);
+ return poe.has(t);
}
// node_modules/react-aria/dist/private/i18n/useDefaultLocale.mjs
-var Mw = Symbol.for("react-aria.i18n.locale");
-function Nw() {
- let e = typeof window < "u" && window[Mw] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
+var Pw = Symbol.for("react-aria.i18n.locale");
+function Fw() {
+ let e = typeof window < "u" && window[Pw] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
try {
Intl.DateTimeFormat.supportedLocalesOf([e]);
} catch {
@@ -23520,31 +23520,31 @@ function Nw() {
}
return {
locale: e,
- direction: goe(e) ? "rtl" : "ltr"
+ direction: moe(e) ? "rtl" : "ltr"
};
}
-var Pw = Nw(), Fw = /* @__PURE__ */ new Set();
-function Iw() {
- Pw = Nw();
- for (let e of Fw) e(Pw);
+var Iw = Fw(), Lw = /* @__PURE__ */ new Set();
+function Rw() {
+ Iw = Fw();
+ for (let e of Lw) e(Iw);
}
-function _oe() {
- let e = lC(), [t, n] = (0, F.useState)(Pw);
- return (0, F.useEffect)(() => (Fw.size === 0 && window.addEventListener("languagechange", Iw), Fw.add(n), () => {
- Fw.delete(n), Fw.size === 0 && window.removeEventListener("languagechange", Iw);
+function hoe() {
+ let e = dC(), [t, n] = (0, F.useState)(Iw);
+ return (0, F.useEffect)(() => (Lw.size === 0 && window.addEventListener("languagechange", Rw), Lw.add(n), () => {
+ Lw.delete(n), Lw.size === 0 && window.removeEventListener("languagechange", Rw);
}), []), e ? {
- locale: typeof window < "u" && window[Mw] || "en-US",
+ locale: typeof window < "u" && window[Pw] || "en-US",
direction: "ltr"
} : t;
}
// node_modules/react-aria/dist/private/i18n/I18nProvider.mjs
-var voe = /*#__PURE__*/ F.createContext(null);
-function Lw() {
- let e = _oe();
- return (0, F.useContext)(voe) || e;
+var goe = /*#__PURE__*/ F.createContext(null);
+function zw() {
+ let e = hoe();
+ return (0, F.useContext)(goe) || e;
}
// node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.mjs
-var yoe = Symbol.for("react-aria.i18n.locale"), boe = Symbol.for("react-aria.i18n.strings"), Rw = void 0, zw = class e {
+var _oe = Symbol.for("react-aria.i18n.locale"), voe = Symbol.for("react-aria.i18n.strings"), Bw = void 0, Vw = class e {
constructor(e, t = "en-US") {
this.strings = Object.fromEntries(Object.entries(e).filter(([, e]) => e)), this.defaultLocale = t;
}
@@ -23555,38 +23555,38 @@ var yoe = Symbol.for("react-aria.i18n.locale"), boe = Symbol.for("react-aria.i18
}
getStringsForLocale(e) {
let t = this.strings[e];
- return t || (t = xoe(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
+ return t || (t = yoe(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
}
static getGlobalDictionaryForPackage(t) {
if (typeof window > "u") return null;
- let n = window[yoe];
- if (Rw === void 0) {
- let t = window[boe];
+ let n = window[_oe];
+ if (Bw === void 0) {
+ let t = window[voe];
if (!t) return null;
- Rw = {};
- for (let r in t) Rw[r] = new e({ [n]: t[r] }, n);
+ Bw = {};
+ for (let r in t) Bw[r] = new e({ [n]: t[r] }, n);
}
- let r = Rw?.[t];
+ let r = Bw?.[t];
if (!r) throw Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);
return r;
}
};
-function xoe(e, t, n = "en-US") {
+function yoe(e, t, n = "en-US") {
if (t[e]) return t[e];
- let r = Soe(e), i = Coe(e);
+ let r = boe(e), i = xoe(e);
if (i && t[`${r}-${i}`]) return t[`${r}-${i}`];
if (t[r]) return t[r];
for (let e in t) if (e.startsWith(r + "-")) return t[e];
return t[n];
}
-function Soe(e) {
+function boe(e) {
return Intl.Locale ? new Intl.Locale(e).language : e.split("-")[0];
}
-function Coe(e) {
+function xoe(e) {
if (Intl.Locale) return new Intl.Locale(e).script;
}
// node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.mjs
-var Bw = /* @__PURE__ */ new Map(), Vw = /* @__PURE__ */ new Map(), woe = class {
+var Hw = /* @__PURE__ */ new Map(), Uw = /* @__PURE__ */ new Map(), Soe = class {
constructor(e, t) {
this.locale = e, this.strings = t;
}
@@ -23597,36 +23597,36 @@ var Bw = /* @__PURE__ */ new Map(), Vw = /* @__PURE__ */ new Map(), woe = class
plural(e, t, n = "cardinal") {
let r = t["=" + e];
if (r) return typeof r == "function" ? r() : r;
- let i = this.locale + ":" + n, a = Bw.get(i);
- return a || (a = new Intl.PluralRules(this.locale, { type: n }), Bw.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
+ let i = this.locale + ":" + n, a = Hw.get(i);
+ return a || (a = new Intl.PluralRules(this.locale, { type: n }), Hw.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
}
number(e) {
- let t = Vw.get(this.locale);
- return t || (t = new Intl.NumberFormat(this.locale), Vw.set(this.locale, t)), t.format(e);
+ let t = Uw.get(this.locale);
+ return t || (t = new Intl.NumberFormat(this.locale), Uw.set(this.locale, t)), t.format(e);
}
select(e, t) {
let n = e[t] || e.other;
return typeof n == "function" ? n() : n;
}
-}, Hw = /* @__PURE__ */ new WeakMap();
-function Toe(e) {
- let t = Hw.get(e);
- return t || (t = new zw(e), Hw.set(e, t)), t;
+}, Ww = /* @__PURE__ */ new WeakMap();
+function Coe(e) {
+ let t = Ww.get(e);
+ return t || (t = new Vw(e), Ww.set(e, t)), t;
}
-function Eoe(e, t) {
- return t && zw.getGlobalDictionaryForPackage(t) || Toe(e);
+function woe(e, t) {
+ return t && Vw.getGlobalDictionaryForPackage(t) || Coe(e);
}
-function Uw(e, t) {
- let { locale: n } = Lw(), r = Eoe(e, t);
- return (0, F.useMemo)(() => new woe(n, r), [n, r]);
+function Gw(e, t) {
+ let { locale: n } = zw(), r = woe(e, t);
+ return (0, F.useMemo)(() => new Soe(n, r), [n, r]);
}
// node_modules/react-aria/dist/private/utils/filterDOMProps.mjs
-var Doe = /* @__PURE__ */ new Set(["id"]), Ooe = /* @__PURE__ */ new Set([
+var Toe = /* @__PURE__ */ new Set(["id"]), Eoe = /* @__PURE__ */ new Set([
"aria-label",
"aria-labelledby",
"aria-describedby",
"aria-details"
-]), koe = /* @__PURE__ */ new Set([
+]), Doe = /* @__PURE__ */ new Set([
"href",
"hrefLang",
"target",
@@ -23634,60 +23634,60 @@ var Doe = /* @__PURE__ */ new Set(["id"]), Ooe = /* @__PURE__ */ new Set([
"download",
"ping",
"referrerPolicy"
-]), Aoe = /* @__PURE__ */ new Set([
+]), Ooe = /* @__PURE__ */ new Set([
"dir",
"lang",
"hidden",
"inert",
"translate",
"suppressHydrationWarning"
-]), Ww = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), joe = /^(data-.*)$/;
-function Gw(e, t = {}) {
+]), Kw = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), koe = /^(data-.*)$/;
+function qw(e, t = {}) {
let { labelable: n, isLink: r, global: i, events: a = i, propNames: o } = t, s = {};
- for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (Doe.has(t) || n && Ooe.has(t) || r && koe.has(t) || i && Aoe.has(t) || a && (Ww.has(t) || t.endsWith("Capture") && Ww.has(t.slice(0, -7))) || o?.has(t) || joe.test(t)) && (s[t] = e[t]);
+ for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (Toe.has(t) || n && Eoe.has(t) || r && Doe.has(t) || i && Ooe.has(t) || a && (Kw.has(t) || t.endsWith("Capture") && Kw.has(t.slice(0, -7))) || o?.has(t) || koe.test(t)) && (s[t] = e[t]);
return s;
}
// node_modules/react-aria/dist/private/interactions/textSelection.mjs
-var Kw = "default", qw = "", Jw = /* @__PURE__ */ new WeakMap();
-function Yw(e) {
- if (ZS() && QS()) {
- if (Kw === "default") {
- let t = TS(e);
- qw = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
- }
- Kw = "disabled";
+var Jw = "default", Yw = "", Xw = /* @__PURE__ */ new WeakMap();
+function Zw(e) {
+ if ($S() && eC()) {
+ if (Jw === "default") {
+ let t = DS(e);
+ Yw = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
+ }
+ Jw = "disabled";
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- Jw.set(e, e.style[t]), e.style[t] = "none";
+ Xw.set(e, e.style[t]), e.style[t] = "none";
}
}
-function Xw(e) {
- if (ZS() && QS()) {
- if (Kw !== "disabled") return;
- Kw = "restoring", setTimeout(() => {
- FC(() => {
- if (Kw === "restoring") {
- let t = TS(e);
- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = qw || ""), qw = "", Kw = "default";
+function Qw(e) {
+ if ($S() && eC()) {
+ if (Jw !== "disabled") return;
+ Jw = "restoring", setTimeout(() => {
+ LC(() => {
+ if (Jw === "restoring") {
+ let t = DS(e);
+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Yw || ""), Yw = "", Jw = "default";
}
});
}, 300);
- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && Jw.has(e)) {
- let t = Jw.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), Jw.delete(e);
+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && Xw.has(e)) {
+ let t = Xw.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
+ e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), Xw.delete(e);
}
}
// node_modules/react-aria/dist/private/utils/getNonce.mjs
-var Zw = /* @__PURE__ */ new WeakMap();
-function Qw(e) {
- let t = TS(e), n = Zw.get(t);
- return n ??= vw("csp-nonce", t), n !== void 0 && Zw.set(t, n), n;
+var $w = /* @__PURE__ */ new WeakMap();
+function eT(e) {
+ let t = DS(e), n = $w.get(t);
+ return n ??= bw("csp-nonce", t), n !== void 0 && $w.set(t, n), n;
}
// node_modules/react-aria/dist/private/interactions/context.mjs
-var $w = F.createContext({ register: () => {} });
-$w.displayName = "PressResponderContext";
+var tT = F.createContext({ register: () => {} });
+tT.displayName = "PressResponderContext";
// node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs
-function eT() {
+function nT() {
let e = (0, F.useRef)(/* @__PURE__ */ new Map()), t = (0, F.useCallback)((t, n, r, i) => {
let a = i?.once ? (...t) => {
e.current.delete(r), r(...t);
@@ -23713,15 +23713,15 @@ function eT() {
};
}
// node_modules/react-aria/dist/private/interactions/usePress.mjs
-function Moe(e) {
- let t = (0, F.useContext)($w);
+function Aoe(e) {
+ let t = (0, F.useContext)(tT);
if (t) {
let { register: n, ref: r, ...i } = t;
e = K(i, e), n();
}
- return $C(t, e.ref), e;
+ return tw(t, e.ref), e;
}
-var tT = class {
+var rT = class {
#e;
constructor(e, t, n, r) {
this.#e = !0;
@@ -23734,9 +23734,9 @@ var tT = class {
get shouldStopPropagation() {
return this.#e;
}
-}, nT = Symbol("linkClicked"), rT = "react-aria-pressable-style", iT = "data-react-aria-pressable";
-function aT(e) {
- let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = Moe(e), [m, h] = (0, F.useState)(!1), g = (0, F.useRef)({
+}, iT = Symbol("linkClicked"), aT = "react-aria-pressable-style", oT = "data-react-aria-pressable";
+function sT(e) {
+ let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = Aoe(e), [m, h] = (0, F.useState)(!1), g = (0, F.useRef)({
isPressed: !1,
ignoreEmulatedMouseEvents: !1,
didFirePressStart: !1,
@@ -23746,12 +23746,12 @@ function aT(e) {
isOverTarget: !1,
pointerType: null,
disposables: []
- }), { addGlobalListener: _, removeAllGlobalListeners: v } = eT(), y = (0, F.useCallback)((e, t) => {
+ }), { addGlobalListener: _, removeAllGlobalListeners: v } = nT(), y = (0, F.useCallback)((e, t) => {
let i = g.current;
if (s || i.didFirePressStart) return !1;
let a = !0;
if (i.isTriggeringEvent = !0, r) {
- let n = new tT("pressstart", t, e);
+ let n = new rT("pressstart", t, e);
r(n), a = n.shouldStopPropagation;
}
return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;
@@ -23765,11 +23765,11 @@ function aT(e) {
o.didFirePressStart = !1, o.isTriggeringEvent = !0;
let c = !0;
if (i) {
- let t = new tT("pressend", r, e);
+ let t = new rT("pressend", r, e);
i(t), c = t.shouldStopPropagation;
}
if (n && n(!1), h(!1), t && a && !s) {
- let n = new tT("press", r, e);
+ let n = new rT("press", r, e);
t(n), c &&= n.shouldStopPropagation;
}
return o.isTriggeringEvent = !1, c;
@@ -23778,19 +23778,19 @@ function aT(e) {
i,
n,
t
- ]), x = kw(b), S = kw((0, F.useCallback)((e, t) => {
+ ]), x = jw(b), S = jw((0, F.useCallback)((e, t) => {
let n = g.current;
if (s) return !1;
if (a) {
n.isTriggeringEvent = !0;
- let r = new tT("pressup", t, e);
+ let r = new rT("pressup", t, e);
return a(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;
}
return !0;
}, [s, a])), C = (0, F.useCallback)((e) => {
let t = g.current;
if (t.isPressed && t.target) {
- t.didFirePressStart && t.pointerType != null && b(cT(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || Xw(t.target);
+ t.didFirePressStart && t.pointerType != null && b(uT(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || Qw(t.target);
for (let e of t.disposables) e();
t.disposables = [];
}
@@ -23798,7 +23798,7 @@ function aT(e) {
d,
v,
b
- ]), w = kw(C);
+ ]), w = jw(C);
(0, F.useEffect)(() => {
s && g.current.isPressed && w({
currentTarget: g.current.target,
@@ -23815,39 +23815,39 @@ function aT(e) {
}, [s, o]), D = (0, F.useCallback)((e, t) => {
if (!s && o) {
let n = new MouseEvent("click", e);
- US(n, t), o(HS(n));
+ GS(n, t), o(WS(n));
}
}, [s, o]), O = (0, F.useMemo)(() => {
let e = g.current, t = {
onKeyDown(t) {
- if (sT(t.nativeEvent, t.currentTarget) && MS(t.currentTarget, G(t))) {
- lT(G(t), t.key) && t.preventDefault();
+ if (lT(t.nativeEvent, t.currentTarget) && PS(t.currentTarget, G(t))) {
+ dT(G(t), t.key) && t.preventDefault();
let r = !0;
!e.isPressed && !t.repeat && (e.target = t.currentTarget, e.isPressed = !0, e.pointerType = "keyboard", r = y(t, "keyboard"));
let i = t.currentTarget;
- _(TS(t.currentTarget), "keyup", LC((t) => {
- sT(t, i) && !t.repeat && MS(i, G(t)) && e.target && S(cT(e.target, t), "keyboard");
- }, n), !0), r && t.stopPropagation(), t.metaKey && YS() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
+ _(DS(t.currentTarget), "keyup", zC((t) => {
+ lT(t, i) && !t.repeat && PS(i, G(t)) && e.target && S(uT(e.target, t), "keyboard");
+ }, n), !0), r && t.stopPropagation(), t.metaKey && ZS() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
},
onClick(t) {
- if ((!t || MS(t.currentTarget, G(t))) && t && t.button === 0 && !e.isTriggeringEvent && !rC.isOpening) {
+ if ((!t || PS(t.currentTarget, G(t))) && t && t.button === 0 && !e.isTriggeringEvent && !aC.isOpening) {
let n = !0;
- if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || tC(t.nativeEvent))) {
+ if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || rC(t.nativeEvent))) {
let e = y(t, "virtual"), r = S(t, "virtual"), i = x(t, "virtual");
E(t), n = e && r && i;
} else if (e.isPressed && e.pointerType !== "keyboard") {
- let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(cT(t.currentTarget, t), r), a = x(cT(t.currentTarget, t), r, !0);
+ let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(uT(t.currentTarget, t), r), a = x(uT(t.currentTarget, t), r, !0);
n = i && a, e.isOverTarget = !1, E(t), w(t);
}
e.ignoreEmulatedMouseEvents = !1, n && t.stopPropagation();
}
}
}, n = (t) => {
- if (e.isPressed && e.target && sT(t, e.target)) {
- lT(G(t), t.key) && t.preventDefault();
- let n = G(t), r = MS(e.target, n);
- x(cT(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && oT(e.target) && MS(e.target, n) && !t[nT] && (t[nT] = !0, rC(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
+ if (e.isPressed && e.target && lT(t, e.target)) {
+ dT(G(t), t.key) && t.preventDefault();
+ let n = G(t), r = PS(e.target, n);
+ x(uT(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && cT(e.target) && PS(e.target, n) && !t[iT] && (t[iT] = !0, aC(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
} else if (t.key === "Meta" && e.metaKeyEvents?.size) {
let t = e.metaKeyEvents;
e.metaKeyEvents = void 0;
@@ -23856,39 +23856,39 @@ function aT(e) {
};
if (typeof PointerEvent < "u") {
t.onPointerDown = (t) => {
- if (t.button !== 0 || !MS(t.currentTarget, G(t))) return;
- if (hae(t.nativeEvent)) {
+ if (t.button !== 0 || !PS(t.currentTarget, G(t))) return;
+ if (pae(t.nativeEvent)) {
e.pointerType = "virtual";
return;
}
e.pointerType = t.pointerType;
let i = !0;
if (!e.isPressed) {
- e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || Yw(e.target), i = y(t, e.pointerType);
+ e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || Zw(e.target), i = y(t, e.pointerType);
let a = G(t);
- "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(TS(t.currentTarget), "pointerup", n, !1), _(TS(t.currentTarget), "pointercancel", r, !1);
+ "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(DS(t.currentTarget), "pointerup", n, !1), _(DS(t.currentTarget), "pointercancel", r, !1);
}
i && t.stopPropagation();
}, t.onMouseDown = (t) => {
- if (MS(t.currentTarget, G(t)) && t.button === 0) {
+ if (PS(t.currentTarget, G(t)) && t.button === 0) {
if (l) {
- let n = fae(t.target);
+ let n = uae(t.target);
n && e.disposables.push(n);
}
t.stopPropagation();
}
}, t.onPointerUp = (t) => {
- MS(t.currentTarget, G(t)) && e.pointerType !== "virtual" && t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
+ PS(t.currentTarget, G(t)) && e.pointerType !== "virtual" && t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
}, t.onPointerEnter = (t) => {
- t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(cT(e.target, t), e.pointerType));
+ t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(uT(e.target, t), e.pointerType));
}, t.onPointerLeave = (t) => {
- t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(cT(e.target, t), e.pointerType, !1), T(t));
+ t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(uT(e.target, t), e.pointerType, !1), T(t));
};
let n = (t) => {
if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {
- if (MS(e.target, G(t)) && e.pointerType != null) {
+ if (PS(e.target, G(t)) && e.pointerType != null) {
let n = !1, r = setTimeout(() => {
- e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (wS(e.target), e.target.click()));
+ e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (ES(e.target), e.target.click()));
}, 80);
_(t.currentTarget, "click", () => n = !0, !0), e.disposables.push(() => clearTimeout(r));
} else w(t);
@@ -23898,7 +23898,7 @@ function aT(e) {
w(e);
};
t.onDragStart = (e) => {
- MS(e.currentTarget, G(e)) && w(e);
+ PS(e.currentTarget, G(e)) && w(e);
};
}
return t;
@@ -23915,14 +23915,14 @@ function aT(e) {
]);
return (0, F.useEffect)(() => {
if (!f) return;
- let e = TS(f.current);
- if (!e || !e.head || e.getElementById(rT)) return;
+ let e = DS(f.current);
+ if (!e || !e.head || e.getElementById(aT)) return;
let t = e.createElement("style");
- t.id = rT;
- let n = Qw(e);
+ t.id = aT;
+ let n = eT(e);
n && (t.nonce = n), t.textContent = `
@layer {
- [${iT}] {
+ [${oT}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
@@ -23930,23 +23930,23 @@ function aT(e) {
}, [f]), (0, F.useEffect)(() => {
let e = g.current;
return () => {
- d || Xw(e.target ?? void 0);
+ d || Qw(e.target ?? void 0);
for (let t of e.disposables) t();
e.disposables = [];
};
}, [d]), {
isPressed: c || m,
- pressProps: K(p, O, { [iT]: !0 })
+ pressProps: K(p, O, { [oT]: !0 })
};
}
-function oT(e) {
+function cT(e) {
return e.tagName === "A" && e.hasAttribute("href");
}
-function sT(e, t) {
+function lT(e, t) {
let { key: n, code: r } = e, i = t, a = i.getAttribute("role");
- return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof ES(i).HTMLInputElement && !uT(i, n) || i instanceof ES(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && oT(i)) && n !== "Enter");
+ return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof OS(i).HTMLInputElement && !fT(i, n) || i instanceof OS(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && cT(i)) && n !== "Enter");
}
-function cT(e, t) {
+function uT(e, t) {
let n = t.clientX, r = t.clientY;
return {
currentTarget: e,
@@ -23959,13 +23959,13 @@ function cT(e, t) {
key: t.key
};
}
-function Noe(e) {
- return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !oT(e);
+function joe(e) {
+ return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !cT(e);
}
-function lT(e, t) {
- return YS() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !uT(e, t) : Noe(e);
+function dT(e, t) {
+ return ZS() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !fT(e, t) : joe(e);
}
-var Poe = /* @__PURE__ */ new Set([
+var Moe = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -23976,11 +23976,11 @@ var Poe = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function uT(e, t) {
- return e.type === "checkbox" || e.type === "radio" ? t === " " : Poe.has(e.type);
+function fT(e, t) {
+ return e.type === "checkbox" || e.type === "radio" ? t === " " : Moe.has(e.type);
}
// node_modules/react-aria/dist/private/button/useButton.mjs
-function Foe(e, t) {
+function Noe(e, t) {
let { elementType: n = "button", isDisabled: r, onPress: i, onPressStart: a, onPressEnd: o, onPressUp: s, onPressChange: c, preventFocusOnPress: l, allowFocusWhenDisabled: u, onClick: d, href: f, target: p, rel: m, type: h = "button" } = e, g;
g = n === "button" ? {
type: h,
@@ -24002,7 +24002,7 @@ function Foe(e, t) {
"aria-disabled": !r || n === "input" ? void 0 : r,
rel: n === "a" ? m : void 0
};
- let { pressProps: _, isPressed: v } = aT({
+ let { pressProps: _, isPressed: v } = sT({
onPressStart: a,
onPressEnd: o,
onPressChange: c,
@@ -24012,9 +24012,9 @@ function Foe(e, t) {
isDisabled: r,
preventFocusOnPress: l,
ref: t
- }), { focusableProps: y } = tw(e, t);
+ }), { focusableProps: y } = rw(e, t);
u && (y.tabIndex = r ? -1 : y.tabIndex);
- let b = K(y, _, Gw(e, { labelable: !0 }));
+ let b = K(y, _, qw(e, { labelable: !0 }));
return {
isPressed: v,
buttonProps: K(g, b, {
@@ -24028,7 +24028,7 @@ function Foe(e, t) {
};
}
// node_modules/react-aria/dist/private/utils/shadowdom/ShadowTreeWalker.mjs
-var Ioe = class {
+var Poe = class {
constructor(e, t, n, r) {
this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (e) => {
if (e.nodeType === Node.ELEMENT_NODE) {
@@ -24053,7 +24053,7 @@ var Ioe = class {
return this._currentNode;
}
set currentNode(e) {
- if (!MS(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
+ if (!PS(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
let t = [], n = e, r = e;
for (this._currentNode = e; n && n !== this.root;) if (n.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
let e = n, i = this._doc.createTreeWalker(e, this.whatToShow, { acceptNode: this._acceptNode });
@@ -24067,7 +24067,7 @@ var Ioe = class {
}
firstChild() {
let e = this.currentNode, t = this.nextNode();
- return MS(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
+ return PS(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
}
lastChild() {
let e = this._walkerStack[0].lastChild();
@@ -24131,44 +24131,44 @@ var Ioe = class {
return null;
}
};
-function dT(e, t, n, r) {
- return jS() ? new Ioe(e, t, n, r) : e.createTreeWalker(t, n, r);
+function pT(e, t, n, r) {
+ return NS() ? new Poe(e, t, n, r) : e.createTreeWalker(t, n, r);
}
// node_modules/react-aria/dist/private/focus/FocusScope.mjs
-var fT = /*#__PURE__*/ F.createContext(null), pT = "react-aria-focus-scope-restore", mT = null;
-function hT(e) {
- let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)([]), { parentNode: c } = (0, F.useContext)(fT) || {}, l = (0, F.useMemo)(() => new OT({ scopeRef: s }), [s]);
- VS(() => {
- let e = c || kT.root;
- if (kT.getTreeNode(e.scopeRef) && mT && !xT(mT, e.scopeRef)) {
- let t = kT.getTreeNode(mT);
+var mT = /*#__PURE__*/ F.createContext(null), hT = "react-aria-focus-scope-restore", gT = null;
+function _T(e) {
+ let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)([]), { parentNode: c } = (0, F.useContext)(mT) || {}, l = (0, F.useMemo)(() => new AT({ scopeRef: s }), [s]);
+ US(() => {
+ let e = c || jT.root;
+ if (jT.getTreeNode(e.scopeRef) && gT && !CT(gT, e.scopeRef)) {
+ let t = jT.getTreeNode(gT);
t && (e = t);
}
- e.addChild(l), kT.addNode(l);
- }, [l, c]), VS(() => {
- let e = kT.getTreeNode(s);
+ e.addChild(l), jT.addNode(l);
+ }, [l, c]), US(() => {
+ let e = jT.getTreeNode(s);
e && (e.contain = !!n);
- }, [n]), VS(() => {
+ }, [n]), US(() => {
let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();
- for (; e && e !== o.current;) t.push(e), e.addEventListener(pT, n), e = e.nextSibling;
+ for (; e && e !== o.current;) t.push(e), e.addEventListener(hT, n), e = e.nextSibling;
return s.current = t, () => {
- for (let e of t) e.removeEventListener(pT, n);
+ for (let e of t) e.removeEventListener(hT, n);
};
- }, [t]), Uoe(s, r, n), Boe(s, n), Woe(s, r, n), Hoe(s, i), (0, F.useEffect)(() => {
- let e = NS(TS(s.current ? s.current[0] : void 0)), t = null;
- if (yT(e, s.current)) {
- for (let n of kT.traverse()) n.scopeRef && yT(e, n.scopeRef.current) && (t = n);
- t === kT.getTreeNode(s) && (mT = t.scopeRef);
- }
- }, [s]), VS(() => () => {
- let e = kT.getTreeNode(s)?.parent?.scopeRef ?? null;
- s !== mT && !xT(s, mT) || e && !kT.getTreeNode(e) || (mT = e), kT.removeTreeNode(s);
+ }, [t]), Voe(s, r, n), Roe(s, n), Hoe(s, r, n), Boe(s, i), (0, F.useEffect)(() => {
+ let e = FS(DS(s.current ? s.current[0] : void 0)), t = null;
+ if (xT(e, s.current)) {
+ for (let n of jT.traverse()) n.scopeRef && xT(e, n.scopeRef.current) && (t = n);
+ t === jT.getTreeNode(s) && (gT = t.scopeRef);
+ }
+ }, [s]), US(() => () => {
+ let e = jT.getTreeNode(s)?.parent?.scopeRef ?? null;
+ s !== gT && !CT(s, gT) || e && !jT.getTreeNode(e) || (gT = e), jT.removeTreeNode(s);
}, [s]);
- let u = (0, F.useMemo)(() => Loe(s), []), d = (0, F.useMemo)(() => ({
+ let u = (0, F.useMemo)(() => Foe(s), []), d = (0, F.useMemo)(() => ({
focusManager: u,
parentNode: l
}), [l, u]);
- return /*#__PURE__*/ F.createElement(fT.Provider, { value: d }, /*#__PURE__*/ F.createElement("span", {
+ return /*#__PURE__*/ F.createElement(mT.Provider, { value: d }, /*#__PURE__*/ F.createElement("span", {
"data-focus-scope-start": !0,
hidden: !0,
ref: a
@@ -24178,154 +24178,154 @@ function hT(e) {
ref: o
}));
}
-function Loe(e) {
+function Foe(e) {
return {
focusNext(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || NS(TS(n[0] ?? void 0)), c = n[0].previousElementSibling, l = DT(gT(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || FS(DS(n[0] ?? void 0)), c = n[0].previousElementSibling, l = kT(vT(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = yT(s, n) ? s : c;
+ l.currentNode = xT(s, n) ? s : c;
let u = l.nextNode();
- return !u && a && (l.currentNode = c, u = l.nextNode()), u && ST(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.nextNode()), u && wT(u, !0), u;
},
focusPrevious(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || NS(TS(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = DT(gT(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || FS(DS(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = kT(vT(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = yT(s, n) ? s : c;
+ l.currentNode = xT(s, n) ? s : c;
let u = l.previousNode();
- return !u && a && (l.currentNode = c, u = l.previousNode()), u && ST(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.previousNode()), u && wT(u, !0), u;
},
focusFirst(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = DT(gT(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = kT(vT(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[0].previousElementSibling;
let o = a.nextNode();
- return o && ST(o, !0), o;
+ return o && wT(o, !0), o;
},
focusLast(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = DT(gT(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = kT(vT(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[n.length - 1].nextElementSibling;
let o = a.previousNode();
- return o && ST(o, !0), o;
+ return o && wT(o, !0), o;
}
};
}
-function gT(e) {
+function vT(e) {
return e[0].parentElement;
}
-function _T(e) {
- let t = kT.getTreeNode(mT);
+function yT(e) {
+ let t = jT.getTreeNode(gT);
for (; t && t.scopeRef !== e;) {
if (t.contain) return !1;
t = t.parent;
}
return !0;
}
-function Roe(e) {
- if (!e.form) return Array.from(TS(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
- let t = e.form.elements.namedItem(e.name), n = ES(e);
+function Ioe(e) {
+ if (!e.form) return Array.from(DS(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
+ let t = e.form.elements.namedItem(e.name), n = OS(e);
return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];
}
-function zoe(e) {
+function Loe(e) {
if (e.checked) return !0;
- let t = Roe(e);
+ let t = Ioe(e);
return t.length > 0 && !t.some((e) => e.checked);
}
-function Boe(e, t) {
+function Roe(e, t) {
let n = (0, F.useRef)(void 0), r = (0, F.useRef)(void 0);
- VS(() => {
+ US(() => {
let i = e.current;
if (!t) {
r.current &&= (cancelAnimationFrame(r.current), void 0);
return;
}
- let a = TS(i ? i[0] : void 0), o = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !_T(e) || t.isComposing) return;
- let n = NS(a), r = e.current;
- if (!r || !yT(n, r)) return;
- let i = DT(gT(r), { tabbable: !0 }, r);
+ let a = DS(i ? i[0] : void 0), o = (t) => {
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !yT(e) || t.isComposing) return;
+ let n = FS(a), r = e.current;
+ if (!r || !xT(n, r)) return;
+ let i = kT(vT(r), { tabbable: !0 }, r);
if (!n) return;
i.currentNode = n;
let o = t.shiftKey ? i.previousNode() : i.nextNode();
- o ||= (i.currentNode = t.shiftKey ? r[r.length - 1].nextElementSibling : r[0].previousElementSibling, t.shiftKey ? i.previousNode() : i.nextNode()), t.preventDefault(), o && (ST(o, !0), o instanceof ES(o).HTMLInputElement && o.select());
+ o ||= (i.currentNode = t.shiftKey ? r[r.length - 1].nextElementSibling : r[0].previousElementSibling, t.shiftKey ? i.previousNode() : i.nextNode()), t.preventDefault(), o && (wT(o, !0), o instanceof OS(o).HTMLInputElement && o.select());
}, s = (t) => {
- (!mT || xT(mT, e)) && yT(G(t), e.current) ? (mT = e, n.current = G(t)) : _T(e) && !bT(G(t), e) ? n.current ? ST(n.current) : mT && mT.current && wT(mT.current) : _T(e) && (n.current = G(t));
+ (!gT || CT(gT, e)) && xT(G(t), e.current) ? (gT = e, n.current = G(t)) : yT(e) && !ST(G(t), e) ? n.current ? wT(n.current) : gT && gT.current && ET(gT.current) : yT(e) && (n.current = G(t));
}, c = (t) => {
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
- let r = TC(), i = (r === "virtual" || r === null) && eC() && $S(), o = NS(a);
- if (!i && o && _T(e) && !bT(o, e)) {
- mT = e;
+ let r = DC(), i = (r === "virtual" || r === null) && nC() && tC(), o = FS(a);
+ if (!i && o && yT(e) && !ST(o, e)) {
+ gT = e;
let r = G(t);
- r && r.isConnected ? (n.current = r, ST(n.current)) : mT.current && wT(mT.current);
+ r && r.isConnected ? (n.current = r, wT(n.current)) : gT.current && ET(gT.current);
}
});
};
return a.addEventListener("keydown", o, !1), a.addEventListener("focusin", s, !1), i?.forEach((e) => e.addEventListener("focusin", s, !1)), i?.forEach((e) => e.addEventListener("focusout", c, !1)), () => {
a.removeEventListener("keydown", o, !1), a.removeEventListener("focusin", s, !1), i?.forEach((e) => e.removeEventListener("focusin", s, !1)), i?.forEach((e) => e.removeEventListener("focusout", c, !1));
};
- }, [e, t]), VS(() => () => {
+ }, [e, t]), US(() => () => {
r.current && cancelAnimationFrame(r.current);
}, [r]);
}
-function vT(e) {
- return bT(e);
+function bT(e) {
+ return ST(e);
}
-function yT(e, t) {
- return !e || !t ? !1 : t.some((t) => MS(t, e));
+function xT(e, t) {
+ return !e || !t ? !1 : t.some((t) => PS(t, e));
}
-function bT(e, t = null) {
+function ST(e, t = null) {
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
- for (let { scopeRef: n } of kT.traverse(kT.getTreeNode(t))) if (n && yT(e, n.current)) return !0;
+ for (let { scopeRef: n } of jT.traverse(jT.getTreeNode(t))) if (n && xT(e, n.current)) return !0;
return !1;
}
-function Voe(e) {
- return bT(e, mT);
+function zoe(e) {
+ return ST(e, gT);
}
-function xT(e, t) {
- let n = kT.getTreeNode(t)?.parent;
+function CT(e, t) {
+ let n = jT.getTreeNode(t)?.parent;
for (; n;) {
if (n.scopeRef === e) return !0;
n = n.parent;
}
return !1;
}
-function ST(e, t = !1) {
+function wT(e, t = !1) {
if (e != null && !t) try {
- IC(e);
+ RC(e);
} catch {}
else if (e != null) try {
e.focus();
} catch {}
}
-function CT(e, t = !0) {
- let n = e[0].previousElementSibling, r = gT(e), i = DT(r, { tabbable: t }, e);
+function TT(e, t = !0) {
+ let n = e[0].previousElementSibling, r = vT(e), i = kT(r, { tabbable: t }, e);
i.currentNode = n;
let a = i.nextNode();
- return t && !a && (r = gT(e), i = DT(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
+ return t && !a && (r = vT(e), i = kT(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
}
-function wT(e, t = !0) {
- ST(CT(e, t));
+function ET(e, t = !0) {
+ wT(TT(e, t));
}
-function Hoe(e, t) {
+function Boe(e, t) {
let n = F.useRef(t);
(0, F.useEffect)(() => {
- n.current && (mT = e, !yT(NS(TS(e.current ? e.current[0] : void 0)), mT.current) && e.current && wT(e.current)), n.current = !1;
+ n.current && (gT = e, !xT(FS(DS(e.current ? e.current[0] : void 0)), gT.current) && e.current && ET(e.current)), n.current = !1;
}, [e]);
}
-function Uoe(e, t, n) {
- VS(() => {
+function Voe(e, t, n) {
+ US(() => {
if (t || n) return;
- let r = e.current, i = TS(r ? r[0] : void 0), a = (t) => {
+ let r = e.current, i = DS(r ? r[0] : void 0), a = (t) => {
let n = G(t);
- yT(n, e.current) ? mT = e : vT(n) || (mT = null);
+ xT(n, e.current) ? gT = e : bT(n) || (gT = null);
};
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
@@ -24336,43 +24336,43 @@ function Uoe(e, t, n) {
n
]);
}
-function TT(e) {
- let t = kT.getTreeNode(mT);
+function DT(e) {
+ let t = jT.getTreeNode(gT);
for (; t && t.scopeRef !== e;) {
if (t.nodeToRestore) return !1;
t = t.parent;
}
return t?.scopeRef === e;
}
-function Woe(e, t, n) {
- let r = (0, F.useRef)(typeof document < "u" ? NS(TS(e.current ? e.current[0] : void 0)) : null);
- VS(() => {
- let r = e.current, i = TS(r ? r[0] : void 0);
+function Hoe(e, t, n) {
+ let r = (0, F.useRef)(typeof document < "u" ? FS(DS(e.current ? e.current[0] : void 0)) : null);
+ US(() => {
+ let r = e.current, i = DS(r ? r[0] : void 0);
if (!t || n) return;
let a = () => {
- (!mT || xT(mT, e)) && yT(NS(i), e.current) && (mT = e);
+ (!gT || CT(gT, e)) && xT(FS(i), e.current) && (gT = e);
};
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
};
- }, [e, n]), VS(() => {
- let r = TS(e.current ? e.current[0] : void 0);
+ }, [e, n]), US(() => {
+ let r = DS(e.current ? e.current[0] : void 0);
if (!t) return;
let i = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !_T(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !yT(e) || t.isComposing) return;
let n = r.activeElement;
- if (!bT(n, e) || !TT(e)) return;
- let i = kT.getTreeNode(e);
+ if (!ST(n, e) || !DT(e)) return;
+ let i = jT.getTreeNode(e);
if (!i) return;
- let a = i.nodeToRestore, o = DT(r.body, { tabbable: !0 });
+ let a = i.nodeToRestore, o = kT(r.body, { tabbable: !0 });
o.currentNode = n;
let s = t.shiftKey ? o.previousNode() : o.nextNode();
- if (a && a.isConnected && a !== r.body || (a = void 0, i.nodeToRestore = void 0), (!s || !bT(s, e)) && a) {
+ if (a && a.isConnected && a !== r.body || (a = void 0, i.nodeToRestore = void 0), (!s || !ST(s, e)) && a) {
o.currentNode = a;
do
s = t.shiftKey ? o.previousNode() : o.nextNode();
- while (bT(s, e));
- t.preventDefault(), t.stopPropagation(), s ? ST(s, !0) : vT(a) ? ST(a, !0) : n.blur();
+ while (ST(s, e));
+ t.preventDefault(), t.stopPropagation(), s ? wT(s, !0) : bT(a) ? wT(a, !0) : n.blur();
}
};
return n || r.addEventListener("keydown", i, !0), () => {
@@ -24382,31 +24382,31 @@ function Woe(e, t, n) {
e,
t,
n
- ]), VS(() => {
- let n = TS(e.current ? e.current[0] : void 0);
+ ]), US(() => {
+ let n = DS(e.current ? e.current[0] : void 0);
if (!t) return;
- let i = kT.getTreeNode(e);
+ let i = jT.getTreeNode(e);
if (i) return i.nodeToRestore = r.current ?? void 0, () => {
- let r = kT.getTreeNode(e);
+ let r = jT.getTreeNode(e);
if (!r) return;
- let i = r.nodeToRestore, a = NS(n);
- if (t && i && (a && bT(a, e) || a === n.body && TT(e))) {
- let t = kT.clone();
+ let i = r.nodeToRestore, a = FS(n);
+ if (t && i && (a && ST(a, e) || a === n.body && DT(e))) {
+ let t = jT.clone();
requestAnimationFrame(() => {
if (n.activeElement === n.body) {
let n = t.getTreeNode(e);
for (; n;) {
if (n.nodeToRestore && n.nodeToRestore.isConnected) {
- ET(n.nodeToRestore);
+ OT(n.nodeToRestore);
return;
}
n = n.parent;
}
for (n = t.getTreeNode(e); n;) {
- if (n.scopeRef && n.scopeRef.current && kT.getTreeNode(n.scopeRef)) {
- let e = CT(n.scopeRef.current, !0);
+ if (n.scopeRef && n.scopeRef.current && jT.getTreeNode(n.scopeRef)) {
+ let e = TT(n.scopeRef.current, !0);
if (e) {
- ET(e);
+ OT(e);
return;
}
}
@@ -24418,21 +24418,21 @@ function Woe(e, t, n) {
};
}, [e, t]);
}
-function ET(e) {
- e.dispatchEvent(new CustomEvent(pT, {
+function OT(e) {
+ e.dispatchEvent(new CustomEvent(hT, {
bubbles: !0,
cancelable: !0
- })) && ST(e);
+ })) && wT(e);
}
-function DT(e, t, n) {
- let r = t?.tabbable ? zS : RS, i = TS(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = dT(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
- return MS(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!zoe(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || yT(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
+function kT(e, t, n) {
+ let r = t?.tabbable ? VS : BS, i = DS(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = pT(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
+ return PS(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Loe(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || xT(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
} });
return t?.from && (a.currentNode = t.from), a;
}
-var Goe = class e {
+var Uoe = class e {
constructor() {
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new OT({ scopeRef: null }), this.fastMap.set(null, this.root);
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new AT({ scopeRef: null }), this.fastMap.set(null, this.root);
}
get size() {
return this.fastMap.size;
@@ -24443,7 +24443,7 @@ var Goe = class e {
addTreeNode(e, t, n) {
let r = this.fastMap.get(t ?? null);
if (!r) return;
- let i = new OT({ scopeRef: e });
+ let i = new AT({ scopeRef: e });
r.addChild(i), i.parent = r, this.fastMap.set(e, i), n && (i.nodeToRestore = n);
}
addNode(e) {
@@ -24454,7 +24454,7 @@ var Goe = class e {
let t = this.fastMap.get(e);
if (!t) return;
let n = t.parent;
- for (let e of this.traverse()) e !== t && t.nodeToRestore && e.nodeToRestore && t.scopeRef && t.scopeRef.current && yT(e.nodeToRestore, t.scopeRef.current) && (e.nodeToRestore = t.nodeToRestore);
+ for (let e of this.traverse()) e !== t && t.nodeToRestore && e.nodeToRestore && t.scopeRef && t.scopeRef.current && xT(e.nodeToRestore, t.scopeRef.current) && (e.nodeToRestore = t.nodeToRestore);
let r = t.children;
n && (n.removeChild(t), r.size > 0 && r.forEach((e) => n && n.addChild(e))), this.fastMap.delete(t.scopeRef);
}
@@ -24466,7 +24466,7 @@ var Goe = class e {
for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);
return t;
}
-}, OT = class {
+}, AT = class {
constructor(e) {
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
}
@@ -24476,13 +24476,13 @@ var Goe = class e {
removeChild(e) {
this.children.delete(e), e.parent = void 0;
}
-}, kT = new Goe(), AT = 7e3, jT = null;
-function MT(e, t = "assertive", n = AT) {
- jT ? jT.announce(e, t, n) : (jT = new Koe(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? jT.announce(e, t, n) : setTimeout(() => {
- jT?.isAttached() && jT?.announce(e, t, n);
+}, jT = new Uoe(), MT = 7e3, NT = null;
+function PT(e, t = "assertive", n = MT) {
+ NT ? NT.announce(e, t, n) : (NT = new Woe(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? NT.announce(e, t, n) : setTimeout(() => {
+ NT?.isAttached() && NT?.announce(e, t, n);
}, 100));
}
-var Koe = class {
+var Woe = class {
constructor() {
this.node = null, this.assertiveLog = null, this.politeLog = null, typeof document < "u" && (this.node = document.createElement("div"), this.node.dataset.liveAnnouncer = "true", Object.assign(this.node.style, {
border: 0,
@@ -24507,7 +24507,7 @@ var Koe = class {
destroy() {
this.node &&= (document.body.removeChild(this.node), null);
}
- announce(e, t = "assertive", n = AT) {
+ announce(e, t = "assertive", n = MT) {
if (!this.node) return;
let r = document.createElement("div");
typeof e == "object" ? (r.setAttribute("role", "img"), r.setAttribute("aria-labelledby", e["aria-labelledby"])) : r.textContent = e, t === "assertive" ? this.assertiveLog?.appendChild(r) : this.politeLog?.appendChild(r), e !== "" && setTimeout(() => {
@@ -24519,8 +24519,8 @@ var Koe = class {
}
};
// node_modules/react-aria/dist/private/utils/useUpdateEffect.mjs
-function NT(e, t) {
- let n = (0, F.useRef)(!0), r = (0, F.useRef)(null), i = kw(e);
+function FT(e, t) {
+ let n = (0, F.useRef)(!0), r = (0, F.useRef)(null), i = jw(e);
(0, F.useEffect)(() => (n.current = !0, () => {
n.current = !1;
}), []), (0, F.useEffect)(() => {
@@ -24529,30 +24529,30 @@ function NT(e, t) {
}, t);
}
// node_modules/react-aria/dist/private/utils/isScrollable.mjs
-function PT(e, t) {
+function IT(e, t) {
if (!e) return !1;
let n = window.getComputedStyle(e), r = document.scrollingElement || document.documentElement, i = /(auto|scroll)/.test(n.overflow + n.overflowX + n.overflowY);
return e === r && n.overflow !== "hidden" && (i = !0), i && t && (i = e.scrollHeight !== e.clientHeight || e.scrollWidth !== e.clientWidth), i;
}
// node_modules/react-aria/dist/private/utils/getScrollParent.mjs
-function FT(e, t) {
+function LT(e, t) {
let n = e;
- for (PT(n, t) && (n = n.parentElement); n && !PT(n, t);) n = n.parentElement;
+ for (IT(n, t) && (n = n.parentElement); n && !IT(n, t);) n = n.parentElement;
return n || document.scrollingElement || document.documentElement;
}
// node_modules/react-aria/dist/private/utils/getScrollParents.mjs
-function IT(e, t) {
+function RT(e, t) {
let n = [], r = document.scrollingElement || document.documentElement;
- for (; e && (PT(e, t) && n.push(e), e !== r);) e = e.parentElement;
+ for (; e && (IT(e, t) && n.push(e), e !== r);) e = e.parentElement;
return n;
}
// node_modules/react-aria/dist/private/utils/scrollIntoView.mjs
-function LT(e, t, n = {}) {
- e !== t && qoe(e, t, t.getBoundingClientRect(), n);
+function zT(e, t, n = {}) {
+ e !== t && Goe(e, t, t.getBoundingClientRect(), n);
}
-function qoe(e, t, n, r = {}) {
+function Goe(e, t, n, r = {}) {
let { block: i = "nearest", inline: a = "nearest" } = r, o = e.scrollTop, s = e.scrollLeft, c = e.getBoundingClientRect(), l = window.getComputedStyle(t), u = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d, p = e === d ? 0 : c.top, m = e === d ? e.clientHeight : c.bottom, h = e === d ? 0 : c.left, g = e === d ? e.clientWidth : c.right, _ = parseFloat(l.scrollMarginTop) || 0, v = parseFloat(l.scrollMarginBottom) || 0, y = parseFloat(l.scrollMarginLeft) || 0, b = parseFloat(l.scrollMarginRight) || 0, x = parseFloat(u.scrollPaddingTop) || 0, S = parseFloat(u.scrollPaddingBottom) || 0, C = parseFloat(u.scrollPaddingLeft) || 0, w = parseFloat(u.scrollPaddingRight) || 0, T = parseFloat(u.borderTopWidth) || 0, E = parseFloat(u.borderBottomWidth) || 0, D = parseFloat(u.borderLeftWidth) || 0, O = parseFloat(u.borderRightWidth) || 0, k = n.top - _, A = n.bottom + v, j = n.left - y, M = n.right + b, ee = e === d ? 0 : D + O, N = e === d ? 0 : T + E, te = e === d ? 0 : e.offsetWidth - e.clientWidth - ee, P = e === d ? 0 : e.offsetHeight - e.clientHeight - N, ne = p + (f ? 0 : T) + x, re = m - (f ? 0 : E) - S - P, F = h + (f ? 0 : D) + C, I = g - (f ? 0 : O) - w;
- ZS() && QS() || u.direction === "ltr" ? I -= te : u.direction === "rtl" && (F += te);
+ $S() && eC() || u.direction === "ltr" ? I -= te : u.direction === "rtl" && (F += te);
let ie = k < ne || A > re, ae = j < F || M > I;
if (ie && i === "start") o += k - ne;
else if (ie && i === "center") o += (k + A) / 2 - (ne + re) / 2;
@@ -24573,7 +24573,7 @@ function qoe(e, t, n, r = {}) {
top: o
});
}
-function RT(e, t = {}) {
+function BT(e, t = {}) {
let { containingElement: n } = t;
if (e && e.isConnected) {
let t = document.scrollingElement || document.documentElement;
@@ -24586,45 +24586,45 @@ function RT(e, t = {}) {
inline: "center"
}), e.scrollIntoView?.({ block: "nearest" }));
} else {
- let { left: t, top: r } = e.getBoundingClientRect(), i = IT(e, !0);
- for (let t of i) LT(t, e);
+ let { left: t, top: r } = e.getBoundingClientRect(), i = RT(e, !0);
+ for (let t of i) zT(t, e);
let { left: a, top: o } = e.getBoundingClientRect();
if (Math.abs(t - a) > 1 || Math.abs(r - o) > 1) {
- i = n ? IT(n, !0) : [];
- for (let e of i) LT(e, n, {
+ i = n ? RT(n, !0) : [];
+ for (let e of i) zT(e, n, {
block: "center",
inline: "center"
});
- for (let t of IT(e, !0)) LT(t, e);
+ for (let t of RT(e, !0)) zT(t, e);
}
}
}
}
// node_modules/react-aria/dist/private/utils/useDescription.mjs
-var Joe = 0, zT = /* @__PURE__ */ new Map();
-function BT(e) {
+var Koe = 0, VT = /* @__PURE__ */ new Map();
+function HT(e) {
let [t, n] = (0, F.useState)();
- return VS(() => {
+ return US(() => {
if (!e) return;
- let t = zT.get(e);
+ let t = VT.get(e);
if (t) n(t.element.id);
else {
- let r = `react-aria-description-${Joe++}`;
+ let r = `react-aria-description-${Koe++}`;
n(r);
let i = document.createElement("div");
i.id = r, i.style.display = "none", i.textContent = e, document.body.appendChild(i), t = {
refCount: 0,
element: i
- }, zT.set(e, t);
+ }, VT.set(e, t);
}
return t.refCount++, () => {
- t && --t.refCount === 0 && (t.element.remove(), zT.delete(e));
+ t && --t.refCount === 0 && (t.element.remove(), VT.delete(e));
};
}, [e]), { "aria-describedby": e ? t : void 0 };
}
// node_modules/react-aria/dist/private/utils/useFormReset.mjs
-function VT(e, t, n) {
- let r = kw((e) => {
+function UT(e, t, n) {
+ let r = jw((e) => {
n && !e.defaultPrevented && n(t);
});
(0, F.useEffect)(() => {
@@ -24635,21 +24635,21 @@ function VT(e, t, n) {
}, [e]);
}
// node_modules/react-aria/dist/private/form/useFormValidation.mjs
-function HT(e, t, n) {
+function WT(e, t, n) {
let { validationBehavior: r, focus: i } = e;
- VS(() => {
+ US(() => {
if (r === "native" && n?.current && "setCustomValidity" in n.current && !n.current.disabled) {
let e = t.realtimeValidation.isInvalid ? t.realtimeValidation.validationErrors.join(" ") || "Invalid value." : "";
- n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(Xoe(n.current));
+ n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(Joe(n.current));
}
});
- let a = (0, F.useRef)(!1), o = kw(() => {
+ let a = (0, F.useRef)(!1), o = jw(() => {
a.current || t.resetValidation();
- }), s = kw((e) => {
+ }), s = jw((e) => {
t.displayValidation.isInvalid || t.commitValidation();
let r = n?.current?.form;
- !e.defaultPrevented && n && r && Zoe(r) === n.current && (i ? i() : n.current?.focus(), EC("keyboard")), e.preventDefault();
- }), c = kw(() => {
+ !e.defaultPrevented && n && r && Yoe(r) === n.current && (i ? i() : n.current?.focus(), OC("keyboard")), e.preventDefault();
+ }), c = jw(() => {
t.commitValidation();
});
(0, F.useEffect)(() => {
@@ -24663,7 +24663,7 @@ function HT(e, t, n) {
};
}, [n, r]);
}
-function Yoe(e) {
+function qoe(e) {
let t = e.validity;
return {
badInput: t.badInput,
@@ -24679,14 +24679,14 @@ function Yoe(e) {
valid: t.valid
};
}
-function Xoe(e) {
+function Joe(e) {
return {
isInvalid: !e.validity.valid,
- validationDetails: Yoe(e),
+ validationDetails: qoe(e),
validationErrors: e.validationMessage ? [e.validationMessage] : []
};
}
-function Zoe(e) {
+function Yoe(e) {
for (let t = 0; t < e.elements.length; t++) {
let n = e.elements[t];
if (n.validity?.valid === !1) return n;
@@ -24694,23 +24694,23 @@ function Zoe(e) {
return null;
}
// node_modules/react-aria/dist/private/utils/useSlot.mjs
-function Qoe(e = !0) {
+function Xoe(e = !0) {
let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(!1), i = (0, F.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return VS(() => {
+ return US(() => {
r.current || n(!1);
}, []), [i, t];
}
-function UT(e = !0) {
- let t = VC(), [n, r] = Qoe(e);
+function GT(e = !0) {
+ let t = UC(), [n, r] = Xoe(e);
return {
id: r ? t : void 0,
ref: n
};
}
// node_modules/react-stately/dist/private/form/useFormValidationState.mjs
-var WT = {
+var KT = {
badInput: !1,
customError: !1,
patternMismatch: !1,
@@ -24722,18 +24722,18 @@ var WT = {
typeMismatch: !1,
valueMissing: !1,
valid: !0
-}, GT = {
- ...WT,
+}, qT = {
+ ...KT,
customError: !0,
valid: !1
-}, KT = {
+}, JT = {
isInvalid: !1,
- validationDetails: WT,
+ validationDetails: KT,
validationErrors: []
-}, $oe = (0, F.createContext)({}), qT = "__reactAriaFormValidationState";
-function JT(e) {
+}, Zoe = (0, F.createContext)({}), YT = "__reactAriaFormValidationState";
+function XT(e) {
if (e.__reactAriaFormValidationState) {
- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[qT];
+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[YT];
return {
realtimeValidation: t,
displayValidation: n,
@@ -24742,70 +24742,70 @@ function JT(e) {
commitValidation: a
};
}
- return ese(e);
+ return Qoe(e);
}
-function ese(e) {
+function Qoe(e) {
let { isInvalid: t, validationState: n, name: r, value: i, builtinValidation: a, validate: o, validationBehavior: s = "aria" } = e;
n && (t ||= n === "invalid");
let c = t === void 0 ? null : {
isInvalid: t,
validationErrors: [],
- validationDetails: GT
- }, l = (0, F.useMemo)(() => !o || i == null ? null : XT(tse(o, i)), [o, i]);
+ validationDetails: qT
+ }, l = (0, F.useMemo)(() => !o || i == null ? null : QT($oe(o, i)), [o, i]);
a?.validationDetails.valid && (a = void 0);
- let u = (0, F.useContext)($oe), d = (0, F.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => YT(u[e])) : YT(u[r]) : [], [u, r]), [f, p] = (0, F.useState)(u), [m, h] = (0, F.useState)(!1);
+ let u = (0, F.useContext)(Zoe), d = (0, F.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => ZT(u[e])) : ZT(u[r]) : [], [u, r]), [f, p] = (0, F.useState)(u), [m, h] = (0, F.useState)(!1);
u !== f && (p(u), h(!1));
- let g = (0, F.useMemo)(() => XT(m ? [] : d), [m, d]), _ = (0, F.useRef)(KT), [v, y] = (0, F.useState)(KT), b = (0, F.useRef)(KT), x = () => {
+ let g = (0, F.useMemo)(() => QT(m ? [] : d), [m, d]), _ = (0, F.useRef)(JT), [v, y] = (0, F.useState)(JT), b = (0, F.useRef)(JT), x = () => {
if (!S) return;
C(!1);
let e = l || a || _.current;
- ZT(e, b.current) || (b.current = e, y(e));
+ $T(e, b.current) || (b.current = e, y(e));
}, [S, C] = (0, F.useState)(!1);
return (0, F.useEffect)(x), {
- realtimeValidation: c || g || l || a || KT,
+ realtimeValidation: c || g || l || a || JT,
displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
updateValidation(e) {
- s === "aria" && !ZT(v, e) ? y(e) : _.current = e;
+ s === "aria" && !$T(v, e) ? y(e) : _.current = e;
},
resetValidation() {
- let e = KT;
- ZT(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
+ let e = JT;
+ $T(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
},
commitValidation() {
s === "native" && C(!0), h(!0);
}
};
}
-function YT(e) {
+function ZT(e) {
return e ? Array.isArray(e) ? e : [e] : [];
}
-function tse(e, t) {
+function $oe(e, t) {
if (typeof e == "function") {
let n = e(t);
- if (n && typeof n != "boolean") return YT(n);
+ if (n && typeof n != "boolean") return ZT(n);
}
return [];
}
-function XT(e) {
+function QT(e) {
return e.length ? {
isInvalid: !0,
validationErrors: e,
- validationDetails: GT
+ validationDetails: qT
} : null;
}
-function ZT(e, t) {
+function $T(e, t) {
return e === t || !!e && !!t && e.isInvalid === t.isInvalid && e.validationErrors.length === t.validationErrors.length && e.validationErrors.every((e, n) => e === t.validationErrors[n]) && Object.entries(e.validationDetails).every(([e, n]) => t.validationDetails[e] === n);
}
// node_modules/react-aria/dist/private/toggle/useToggle.mjs
-function QT(e, t, n) {
- let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, b = JT({
+function eE(e, t, n) {
+ let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, b = XT({
...e,
value: t.isSelected
}), { isInvalid: x, validationErrors: S, validationDetails: C } = b.displayValidation;
- HT(e, b, n);
+ WT(e, b, n);
let w = (e) => {
e.stopPropagation(), t.setSelected(G(e).checked);
- }, { pressProps: T, isPressed: E } = aT({
+ }, { pressProps: T, isPressed: E } = sT({
onPressStart: m,
onPressEnd: h,
onPressChange: g,
@@ -24813,7 +24813,7 @@ function QT(e, t, n) {
onPressUp: v,
onClick: y,
isDisabled: r
- }), [D, O] = (0, F.useState)(!1), { pressProps: k } = aT({
+ }), [D, O] = (0, F.useState)(!1), { pressProps: k } = sT({
onPressStart(e) {
e.pointerType === "keyboard" || e.pointerType === "virtual" ? e.continuePropagation() : (m?.(e), g?.(!0), O(!0));
},
@@ -24830,13 +24830,13 @@ function QT(e, t, n) {
return;
}
_?.(r), t.toggle(), n.current?.focus();
- let { [qT]: i } = e, { commitValidation: a } = i || b;
+ let { [YT]: i } = e, { commitValidation: a } = i || b;
a();
},
isDisabled: r || i
- }), { focusableProps: A } = tw(e, n), j = K(T, A), M = Gw(e, { labelable: !0 });
- VT(n, t.defaultSelected, t.setSelected);
- let ee = UT(), N = UT();
+ }), { focusableProps: A } = rw(e, n), j = K(T, A), M = qw(e, { labelable: !0 });
+ UT(n, t.defaultSelected, t.setSelected);
+ let ee = GT(), N = GT();
return {
labelProps: K(k, { onClick: (e) => e.preventDefault() }),
inputProps: K(M, {
@@ -24872,8 +24872,8 @@ function QT(e, t, n) {
};
}
// node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs
-function $T(e, t, n) {
- let { labelProps: r, inputProps: i, descriptionProps: a, errorMessageProps: o, isSelected: s, isPressed: c, isDisabled: l, isReadOnly: u, isInvalid: d, validationErrors: f, validationDetails: p } = QT(e, t, n), { isIndeterminate: m } = e;
+function tE(e, t, n) {
+ let { labelProps: r, inputProps: i, descriptionProps: a, errorMessageProps: o, isSelected: s, isPressed: c, isDisabled: l, isReadOnly: u, isInvalid: d, validationErrors: f, validationDetails: p } = eE(e, t, n), { isIndeterminate: m } = e;
return (0, F.useEffect)(() => {
n.current && (n.current.indeterminate = !!m);
}), {
@@ -24891,17 +24891,17 @@ function $T(e, t, n) {
};
}
// node_modules/react-aria/dist/private/checkbox/utils.mjs
-var nse = /* @__PURE__ */ new WeakMap();
+var ese = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/label/useLabel.mjs
-function eE(e) {
+function nE(e) {
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
- t = VC(t);
- let o = VC(), s = {};
+ t = UC(t);
+ let o = UC(), s = {};
n && (r = r ? `${o} ${r}` : o, s = {
id: o,
htmlFor: a === "label" ? t : void 0
});
- let c = jw({
+ let c = Nw({
id: t,
"aria-label": i,
"aria-labelledby": r
@@ -24912,13 +24912,13 @@ function eE(e) {
};
}
// node_modules/react-aria/dist/private/label/useField.mjs
-function tE(e) {
- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = eE(e), s = HC([
+function rE(e) {
+ let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = nE(e), s = WC([
!!t,
!!n,
r,
i
- ]), c = HC([
+ ]), c = WC([
!!t,
!!n,
r,
@@ -24936,26 +24936,26 @@ function tE(e) {
};
}
// node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
-function nE(e) {
- let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, F.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = eT(), c = (0, F.useCallback)((e) => {
- MS(e.currentTarget, G(e)) && a.current.isFocusWithin && !MS(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
+function iE(e) {
+ let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, F.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = nT(), c = (0, F.useCallback)((e) => {
+ PS(e.currentTarget, G(e)) && a.current.isFocusWithin && !PS(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
}, [
n,
i,
a,
s
- ]), l = WS(c), u = (0, F.useCallback)((e) => {
- if (!MS(e.currentTarget, G(e))) return;
- let t = G(e), n = TS(t), s = NS(n);
+ ]), l = KS(c), u = (0, F.useCallback)((e) => {
+ if (!PS(e.currentTarget, G(e))) return;
+ let t = G(e), n = DS(t), s = FS(n);
if (!a.current.isFocusWithin && s === t) {
r && r(e), i && i(!0), a.current.isFocusWithin = !0, l(e);
let t = e.currentTarget;
o(n, "focus", (e) => {
let r = G(e);
- if (a.current.isFocusWithin && !MS(t, r)) {
+ if (a.current.isFocusWithin && !PS(t, r)) {
let e = new n.defaultView.FocusEvent("blur", { relatedTarget: r });
- US(e, t);
- let i = HS(e);
+ GS(e, t);
+ let i = WS(e);
c(i);
}
}, { capture: !0 });
@@ -24976,14 +24976,14 @@ function nE(e) {
} };
}
// node_modules/react-stately/dist/private/utils/useControlledState.mjs
-var rse = F.useInsertionEffect ?? F.useLayoutEffect;
-function rE(e, t, n) {
+var tse = F.useInsertionEffect ?? F.useLayoutEffect;
+function aE(e, t, n) {
let [r, i] = (0, F.useState)(e || t), a = (0, F.useRef)(r), o = (0, F.useRef)(e !== void 0), s = e !== void 0;
(0, F.useEffect)(() => {
o.current, o.current = s;
}, [s]);
let c = s ? e : r;
- rse(() => {
+ tse(() => {
a.current = c;
});
let [, l] = (0, F.useReducer)(() => ({}), {});
@@ -24993,8 +24993,8 @@ function rE(e, t, n) {
}, [n])];
}
// node_modules/react-stately/dist/private/toggle/useToggleState.mjs
-function iE(e = {}) {
- let { isReadOnly: t } = e, [n, r] = rE(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, F.useState)(n);
+function oE(e = {}) {
+ let { isReadOnly: t } = e, [n, r] = aE(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, F.useState)(n);
function a(e) {
t || r(e);
}
@@ -25009,26 +25009,26 @@ function iE(e = {}) {
};
}
// node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs
-function ise(e, t, n) {
- let r = iE({
+function nse(e, t, n) {
+ let r = oE({
isReadOnly: e.isReadOnly || t.isReadOnly,
isSelected: t.isSelected(e.value),
defaultSelected: t.defaultValue.includes(e.value),
onChange(n) {
n ? t.addValue(e.value) : t.removeValue(e.value), e.onChange && e.onChange(n);
}
- }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = nse.get(t);
+ }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = ese.get(t);
c = e.validationBehavior ?? c;
- let { realtimeValidation: l } = JT({
+ let { realtimeValidation: l } = XT({
...e,
value: r.isSelected,
name: void 0,
validationBehavior: "aria"
- }), u = (0, F.useRef)(KT), d = () => {
+ }), u = (0, F.useRef)(JT), d = () => {
t.setInvalid(e.value, l.isInvalid ? l : u.current);
};
(0, F.useEffect)(d);
- let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = $T({
+ let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = tE({
...e,
isReadOnly: e.isReadOnly || t.isReadOnly,
isDisabled: e.isDisabled || t.isDisabled,
@@ -25036,7 +25036,7 @@ function ise(e, t, n) {
form: e.form || a,
isRequired: e.isRequired ?? t.isRequired,
validationBehavior: c,
- [qT]: {
+ [YT]: {
realtimeValidation: f,
displayValidation: p,
resetValidation: t.resetValidation,
@@ -25059,10 +25059,10 @@ function ise(e, t, n) {
};
}
// node_modules/react-stately/dist/private/utils/number.mjs
-function aE(e, t = -Infinity, n = Infinity) {
+function sE(e, t = -Infinity, n = Infinity) {
return Math.min(Math.max(e, t), n);
}
-function oE(e, t) {
+function cE(e, t) {
let n = e, r = 0, i = t.toString(), a = i.toLowerCase().indexOf("e-");
if (a > 0) r = Math.abs(Math.floor(Math.log10(Math.abs(t)))) + a;
else {
@@ -25075,23 +25075,23 @@ function oE(e, t) {
}
return n;
}
-function sE(e, t, n, r) {
+function lE(e, t, n, r) {
t = Number(t), n = Number(n);
- let i = (e - (isNaN(t) ? 0 : t)) % r, a = oE(Math.abs(i) * 2 >= r ? e + Math.sign(i) * (r - Math.abs(i)) : e - i, r);
- return isNaN(t) ? !isNaN(n) && a > n && (a = Math.floor(oE(n / r, r)) * r) : a < t ? a = t : !isNaN(n) && a > n && (a = t + Math.floor(oE((n - t) / r, r)) * r), a = oE(a, r), a;
+ let i = (e - (isNaN(t) ? 0 : t)) % r, a = cE(Math.abs(i) * 2 >= r ? e + Math.sign(i) * (r - Math.abs(i)) : e - i, r);
+ return isNaN(t) ? !isNaN(n) && a > n && (a = Math.floor(cE(n / r, r)) * r) : a < t ? a = t : !isNaN(n) && a > n && (a = t + Math.floor(cE((n - t) / r, r)) * r), a = cE(a, r), a;
}
// node_modules/@internationalized/number/dist/private/NumberFormatter.mjs
-var cE = /* @__PURE__ */ new Map(), lE = !1;
+var uE = /* @__PURE__ */ new Map(), dE = !1;
try {
- lE = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
+ dE = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
} catch {}
-var ase = class {
+var rse = class {
constructor(e, t = {}) {
- this.numberFormatter = ose(e, t), this.options = t;
+ this.numberFormatter = ise(e, t), this.options = t;
}
format(e) {
let t = "";
- return t = !lE && this.options.signDisplay != null ? sse(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), t;
+ return t = !dE && this.options.signDisplay != null ? ase(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), t;
}
formatToParts(e) {
return this.numberFormatter.formatToParts(e);
@@ -25123,21 +25123,21 @@ var ase = class {
}
resolvedOptions() {
let e = this.numberFormatter.resolvedOptions();
- return !lE && this.options.signDisplay != null && (e = {
+ return !dE && this.options.signDisplay != null && (e = {
...e,
signDisplay: this.options.signDisplay
}), e;
}
};
-function ose(e, t = {}) {
+function ise(e, t = {}) {
let { numberingSystem: n } = t;
n && e.includes("-nu-") && (e.includes("-u-") || (e += "-u-"), e += `-nu-${n}`);
let r = e + (t ? Object.entries(t).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (cE.has(r)) return cE.get(r);
+ if (uE.has(r)) return uE.get(r);
let i = new Intl.NumberFormat(e, t);
- return cE.set(r, i), i;
+ return uE.set(r, i), i;
}
-function sse(e, t, n) {
+function ase(e, t, n) {
if (t === "auto") return e.format(n);
if (t === "never") return e.format(Math.abs(n));
{
@@ -25150,12 +25150,12 @@ function sse(e, t, n) {
}
}
// node_modules/react-aria/dist/private/interactions/useMove.mjs
-function uE(e) {
+function fE(e) {
let { onMoveStart: t, onMove: n, onMoveEnd: r } = e, i = (0, F.useRef)({
didMove: !1,
lastPosition: null,
id: null
- }), { addGlobalListener: a, removeGlobalListener: o } = eT(), s = kw((0, F.useCallback)((e, r, a, o) => {
+ }), { addGlobalListener: a, removeGlobalListener: o } = nT(), s = jw((0, F.useCallback)((e, r, a, o) => {
(a !== 0 || o !== 0) && (i.current.didMove || (i.current.didMove = !0, t?.({
type: "movestart",
pointerType: r,
@@ -25177,8 +25177,8 @@ function uE(e) {
t,
n,
i
- ])), c = kw((0, F.useCallback)((e, t) => {
- Xw(), i.current.didMove && r?.({
+ ])), c = jw((0, F.useCallback)((e, t) => {
+ Qw(), i.current.didMove && r?.({
type: "moveend",
pointerType: t,
shiftKey: e.shiftKey,
@@ -25189,7 +25189,7 @@ function uE(e) {
}, [r, i]));
return { moveProps: (0, F.useMemo)(() => {
let e = {}, t = () => {
- Yw(), i.current.didMove = !1;
+ Zw(), i.current.didMove = !1;
};
{
let n = (e) => {
@@ -25204,7 +25204,7 @@ function uE(e) {
if (e.pointerId === i.current.id) {
let t = e.pointerType || "mouse";
c(e, t), i.current.id = null;
- let a = ES(G(e));
+ let a = OS(G(e));
o(a, "pointermove", n, !1), o(a, "pointerup", r, !1), o(a, "pointercancel", r, !1);
}
};
@@ -25214,7 +25214,7 @@ function uE(e) {
pageX: e.pageX,
pageY: e.pageY
}, i.current.id = e.pointerId;
- let o = ES(G(e));
+ let o = OS(G(e));
a(o, "pointermove", n, !1), a(o, "pointerup", r, !1), a(o, "pointercancel", r, !1);
}
};
@@ -25247,7 +25247,7 @@ function uE(e) {
]) };
}
// node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs
-var dE = {
+var pE = {
border: 0,
clip: "rect(0 0 0 0)",
clipPath: "inset(50%)",
@@ -25259,37 +25259,37 @@ var dE = {
width: "1px",
whiteSpace: "nowrap"
};
-function fE(e = {}) {
- let { style: t, isFocusable: n } = e, [r, i] = (0, F.useState)(!1), { focusWithinProps: a } = nE({
+function mE(e = {}) {
+ let { style: t, isFocusable: n } = e, [r, i] = (0, F.useState)(!1), { focusWithinProps: a } = iE({
isDisabled: !n,
onFocusWithinChange: (e) => i(e)
}), o = (0, F.useMemo)(() => r ? t : t ? {
- ...dE,
+ ...pE,
...t
- } : dE, [r]);
+ } : pE, [r]);
return { visuallyHiddenProps: {
...a,
style: o
} };
}
-function pE(e) {
- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = fE(e);
+function hE(e) {
+ let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = mE(e);
return /*#__PURE__*/ F.createElement(n, K(a, o), t);
}
// node_modules/react-aria/dist/private/textfield/useTextField.mjs
-function cse(e, t) {
- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = rE(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = tw(e, t), d = JT({
+function ose(e, t) {
+ let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = aE(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = rw(e, t), d = XT({
...e,
value: c
- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = tE({
+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = rE({
...e,
isInvalid: f,
errorMessage: e.errorMessage || p
- }), y = Gw(e, { labelable: !0 }), b = {
+ }), y = qw(e, { labelable: !0 }), b = {
type: o,
pattern: e.pattern
}, [x] = (0, F.useState)(c);
- return VT(t, e.defaultValue ?? x, l), HT(e, d, t), {
+ return UT(t, e.defaultValue ?? x, l), WT(e, d, t), {
labelProps: h,
inputProps: K(y, n === "input" ? b : void 0, {
disabled: r,
@@ -25335,26 +25335,26 @@ function cse(e, t) {
};
}
// node_modules/react-aria/dist/private/i18n/useNumberFormatter.mjs
-function lse(e = {}) {
- let { locale: t } = Lw();
- return (0, F.useMemo)(() => new ase(t, e), [t, e]);
+function sse(e = {}) {
+ let { locale: t } = zw();
+ return (0, F.useMemo)(() => new rse(t, e), [t, e]);
}
// node_modules/react-aria/dist/private/slider/utils.mjs
-var mE = /* @__PURE__ */ new WeakMap();
-function hE(e, t) {
- let n = mE.get(e);
+var gE = /* @__PURE__ */ new WeakMap();
+function _E(e, t) {
+ let n = gE.get(e);
if (!n) throw Error("Unknown slider state");
return `${n.id}-${t}`;
}
// node_modules/react-aria/dist/private/slider/useSlider.mjs
-function use(e, t, n) {
- let { labelProps: r, fieldProps: i } = eE(e), a = e.orientation === "vertical";
- mE.set(t, {
+function cse(e, t, n) {
+ let { labelProps: r, fieldProps: i } = nE(e), a = e.orientation === "vertical";
+ gE.set(t, {
id: r.id ?? i.id,
"aria-describedby": e["aria-describedby"],
"aria-details": e["aria-details"]
});
- let { direction: o } = Lw(), { addGlobalListener: s, removeGlobalListener: c } = eT(), l = (0, F.useRef)(null), u = o === "rtl", d = (0, F.useRef)(null), { moveProps: f } = uE({
+ let { direction: o } = zw(), { addGlobalListener: s, removeGlobalListener: c } = nT(), l = (0, F.useRef)(null), u = o === "rtl", d = (0, F.useRef)(null), { moveProps: f } = fE({
onMoveStart() {
d.current = null;
},
@@ -25364,7 +25364,7 @@ function use(e, t, n) {
d.current == null && l.current != null && (d.current = t.getThumbPercent(l.current) * s);
let c = a ? r : e;
if ((a || u) && (c = -c), d.current += c, l.current != null && n.current) {
- let e = aE(d.current / s, 0, 1);
+ let e = sE(d.current / s, 0, 1);
t.setThumbPercent(l.current, e);
}
},
@@ -25388,7 +25388,7 @@ function use(e, t, n) {
(e.pointerId ?? e.changedTouches?.[0].identifier) === p.current && (l.current != null && (t.setThumbDragging(l.current, !1), l.current = null), c(window, "mouseup", h, !1), c(window, "touchend", h, !1), c(window, "pointerup", h, !1));
};
return "htmlFor" in r && r.htmlFor && (delete r.htmlFor, r.onClick = () => {
- document.getElementById(hE(t, 0))?.focus(), EC("keyboard");
+ document.getElementById(_E(t, 0))?.focus(), OC("keyboard");
}), {
labelProps: r,
groupProps: {
@@ -25411,26 +25411,26 @@ function use(e, t, n) {
}
}, f),
outputProps: {
- htmlFor: t.values.map((e, n) => hE(t, n)).join(" "),
+ htmlFor: t.values.map((e, n) => _E(t, n)).join(" "),
"aria-live": "off"
}
};
}
// node_modules/react-aria/dist/private/slider/useSliderThumb.mjs
-function dse(e, t) {
- let { index: n = 0, isRequired: r, validationState: i, isInvalid: a, trackRef: o, inputRef: s, orientation: c = t.orientation, name: l, form: u } = e, d = e.isDisabled || t.isDisabled, f = c === "vertical", { direction: p } = Lw(), { addGlobalListener: m, removeGlobalListener: h } = eT(), g = mE.get(t), { labelProps: _, fieldProps: v } = eE({
+function lse(e, t) {
+ let { index: n = 0, isRequired: r, validationState: i, isInvalid: a, trackRef: o, inputRef: s, orientation: c = t.orientation, name: l, form: u } = e, d = e.isDisabled || t.isDisabled, f = c === "vertical", { direction: p } = zw(), { addGlobalListener: m, removeGlobalListener: h } = nT(), g = gE.get(t), { labelProps: _, fieldProps: v } = nE({
...e,
- id: hE(t, n),
+ id: _E(t, n),
"aria-labelledby": `${g.id} ${e["aria-labelledby"] ?? ""}`.trim()
}), y = t.values[n], b = (0, F.useCallback)(() => {
- s.current && wS(s.current);
+ s.current && ES(s.current);
}, [s]), x = t.focusedThumb === n;
(0, F.useEffect)(() => {
x && b();
}, [x, b]);
let S = p === "rtl", C = (0, F.useRef)(null), w = (e) => {
t.setThumbDragging(n, !0), e(), t.setThumbDragging(n, !1);
- }, { keyboardProps: T } = ZC({
+ }, { keyboardProps: T } = $C({
shortcuts: {
PageUp: () => w(() => {
t.incrementThumb(n, t.pageSize);
@@ -25446,7 +25446,7 @@ function dse(e, t) {
})
},
allowRepeats: !0
- }), { moveProps: E } = uE({
+ }), { moveProps: E } = fE({
onMoveStart() {
C.current = null, t.setThumbDragging(n, !0);
},
@@ -25457,7 +25457,7 @@ function dse(e, t) {
if (C.current ??= s(n) * g, i === "keyboard") e > 0 && S || e < 0 && !S || r > 0 ? l(n, a ? p : d) : u(n, a ? p : d);
else {
let t = f ? r : e;
- (f || S) && (t = -t), C.current += t, c(n, aE(C.current / g, 0, 1));
+ (f || S) && (t = -t), C.current += t, c(n, sE(C.current / g, 0, 1));
}
},
onMoveEnd() {
@@ -25465,7 +25465,7 @@ function dse(e, t) {
}
});
t.setThumbEditable(n, !d);
- let { focusableProps: D } = tw(K(e, {
+ let { focusableProps: D } = rw(K(e, {
onFocus: () => t.setFocusedThumb(n),
onBlur: () => t.setFocusedThumb(void 0)
}), s), O = (0, F.useRef)(void 0), k = (e) => {
@@ -25485,7 +25485,7 @@ function dse(e, t) {
k(e.changedTouches[0].identifier);
}
});
- return VT(s, t.defaultValues[n], (e) => {
+ return UT(s, t.defaultValues[n], (e) => {
t.setThumbValue(n, e);
}), {
inputProps: K(D, v, {
@@ -25525,42 +25525,42 @@ function dse(e, t) {
};
}
// node_modules/react-aria/dist/private/overlays/ariaHideOutside.mjs
-var fse = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
-function gE(e) {
+var use = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
+function vE(e) {
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
}
-var _E = /* @__PURE__ */ new WeakMap(), vE = [];
-function yE(e, t) {
- let n = ES(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && fse, o = new Set(e), s = /* @__PURE__ */ new Set(), c = (e) => a && e instanceof n.HTMLElement ? e.inert : e.getAttribute("aria-hidden") === "true", l = (e, t) => {
+var yE = /* @__PURE__ */ new WeakMap(), bE = [];
+function xE(e, t) {
+ let n = OS(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && use, o = new Set(e), s = /* @__PURE__ */ new Set(), c = (e) => a && e instanceof n.HTMLElement ? e.inert : e.getAttribute("aria-hidden") === "true", l = (e, t) => {
a && e instanceof n.HTMLElement ? e.inert = t : t ? e.setAttribute("aria-hidden", "true") : (e.removeAttribute("aria-hidden"), e instanceof n.HTMLElement && (e.inert = !1));
}, u = /* @__PURE__ */ new Set();
- if (jS()) {
+ if (NS()) {
let t = i.getRootNode();
for (let n of e) {
let e = n.getRootNode();
- for (; OS(e) && e !== t;) u.add(e), e = e.host.getRootNode();
+ for (; AS(e) && e !== t;) u.add(e), e = e.host.getRootNode();
}
}
let d = (e) => {
for (let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) o.add(t);
let t = (e) => {
if (s.has(e) || o.has(e) || e.parentElement && s.has(e.parentElement) && e.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
- for (let t of o) if (MS(e, t)) return NodeFilter.FILTER_SKIP;
+ for (let t of o) if (PS(e, t)) return NodeFilter.FILTER_SKIP;
return NodeFilter.FILTER_ACCEPT;
- }, n = dT(TS(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
+ }, n = pT(DS(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
if (r === NodeFilter.FILTER_ACCEPT && f(e), r !== NodeFilter.FILTER_REJECT) {
let e = n.nextNode();
for (; e != null;) f(e), e = n.nextNode();
}
}, f = (e) => {
- let t = _E.get(e) ?? 0;
- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), _E.set(e, t + 1));
+ let t = yE.get(e) ?? 0;
+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), yE.set(e, t + 1));
};
- vE.length && vE[vE.length - 1].disconnect(), d(i);
+ bE.length && bE[bE.length - 1].disconnect(), d(i);
let p = new MutationObserver((e) => {
for (let t of e) if (t.type === "childList") {
- if (t.target.isConnected && ![...o, ...s].some((e) => MS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && gE(e) ? o.add(e) : e instanceof Element && d(e);
- if (jS()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => PS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && vE(e) ? o.add(e) : e instanceof Element && d(e);
+ if (NS()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -25573,11 +25573,11 @@ function yE(e, t) {
subtree: !0
});
let m = /* @__PURE__ */ new Set();
- if (jS()) for (let e of u) {
+ if (NS()) for (let e of u) {
let t = new MutationObserver((e) => {
for (let t of e) if (t.type === "childList") {
- if (t.target.isConnected && ![...o, ...s].some((e) => MS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && gE(e) ? o.add(e) : e instanceof Element && d(e);
- if (jS()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => PS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && vE(e) ? o.add(e) : e instanceof Element && d(e);
+ if (NS()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -25603,56 +25603,56 @@ function yE(e, t) {
p.disconnect();
}
};
- return vE.push(h), () => {
- if (p.disconnect(), jS()) for (let e of m) e.disconnect();
+ return bE.push(h), () => {
+ if (p.disconnect(), NS()) for (let e of m) e.disconnect();
for (let e of s) {
- let t = _E.get(e);
- t != null && (t === 1 ? (l(e, !1), _E.delete(e)) : _E.set(e, t - 1));
+ let t = yE.get(e);
+ t != null && (t === 1 ? (l(e, !1), yE.delete(e)) : yE.set(e, t - 1));
}
- h === vE[vE.length - 1] ? (vE.pop(), vE.length && vE[vE.length - 1].observe()) : vE.splice(vE.indexOf(h), 1);
+ h === bE[bE.length - 1] ? (bE.pop(), bE.length && bE[bE.length - 1].observe()) : bE.splice(bE.indexOf(h), 1);
};
}
-function bE(e) {
- let t = vE[vE.length - 1];
+function SE(e) {
+ let t = bE[bE.length - 1];
if (t && !t.visibleNodes.has(e)) return t.visibleNodes.add(e), () => {
t.visibleNodes.delete(e);
};
}
// node_modules/react-aria/dist/private/listbox/utils.mjs
-var xE = /* @__PURE__ */ new WeakMap();
-function pse(e) {
+var CE = /* @__PURE__ */ new WeakMap();
+function dse(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function mse(e, t) {
- let n = xE.get(e);
+function fse(e, t) {
+ let n = CE.get(e);
if (!n) throw Error("Unknown list");
- return `${n.id}-option-${pse(t)}`;
+ return `${n.id}-option-${dse(t)}`;
}
// node_modules/react-aria/dist/private/selection/utils.mjs
-function SE(e) {
- return mae() ? e.altKey : e.ctrlKey;
+function wE(e) {
+ return fae() ? e.altKey : e.ctrlKey;
}
-function CE(e, t) {
+function TE(e, t) {
let n = `[data-key="${CSS.escape(String(t))}"]`, r = e.current?.dataset.collection;
return r && (n = `[data-collection="${CSS.escape(r)}"]${n}`), e.current?.querySelector(n);
}
-var wE = /* @__PURE__ */ new WeakMap();
-function hse(e) {
- let t = VC();
- return wE.set(e, t), t;
+var EE = /* @__PURE__ */ new WeakMap();
+function pse(e) {
+ let t = UC();
+ return EE.set(e, t), t;
}
-function gse(e) {
- return wE.get(e);
+function mse(e) {
+ return EE.get(e);
}
// node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs
-var TE = class {
+var DE = class {
constructor(e) {
this.ref = e;
}
getItemRect(e) {
let t = this.ref.current;
if (!t) return null;
- let n = e == null ? null : CE(this.ref, e);
+ let n = e == null ? null : TE(this.ref, e);
if (!n) return null;
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
return {
@@ -25678,12 +25678,12 @@ var TE = class {
height: e?.clientHeight ?? 0
};
}
-}, EE = class {
+}, OE = class {
constructor(...e) {
if (e.length === 1) {
let t = e[0];
- this.collection = t.collection, this.ref = t.ref, this.collator = t.collator, this.disabledKeys = t.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = t.disabledBehavior || "all", this.orientation = t.orientation || "vertical", this.direction = t.direction, this.layout = t.layout || "stack", this.layoutDelegate = t.layoutDelegate || new TE(t.ref);
- } else this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new TE(this.ref);
+ this.collection = t.collection, this.ref = t.ref, this.collator = t.collator, this.disabledKeys = t.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = t.disabledBehavior || "all", this.orientation = t.orientation || "vertical", this.direction = t.direction, this.layout = t.layout || "stack", this.layoutDelegate = t.layoutDelegate || new DE(t.ref);
+ } else this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new DE(this.ref);
this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
}
isDisabled(e) {
@@ -25723,14 +25723,14 @@ var TE = class {
return e.x === t.x || e.y !== t.y;
}
isReversed(e) {
- let t = this.getNextKey(e), n = CE(this.ref, e);
+ let t = this.getNextKey(e), n = TE(this.ref, e);
if (t != null) {
- let e = CE(this.ref, t);
+ let e = TE(this.ref, t);
return !n || !e ? !1 : n.getBoundingClientRect().top > e.getBoundingClientRect().top;
}
let r = this.getPreviousKey(e);
if (r != null) {
- let e = CE(this.ref, r);
+ let e = TE(this.ref, r);
return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;
}
return !1;
@@ -25764,7 +25764,7 @@ var TE = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !PT(t)) return this.getFirstKey();
+ if (t && !IT(t)) return this.getFirstKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.max(0, n.x + n.width - this.layoutDelegate.getVisibleRect().width);
@@ -25779,7 +25779,7 @@ var TE = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !PT(t)) return this.getLastKey();
+ if (t && !IT(t)) return this.getLastKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.min(this.layoutDelegate.getContentSize().width, n.x - n.width + this.layoutDelegate.getVisibleRect().width);
@@ -25802,149 +25802,149 @@ var TE = class {
}
return null;
}
-}, DE = {};
-DE = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
+}, kE = {};
+kE = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
// node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs
-var OE = {};
-OE = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
+var AE = {};
+AE = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
// node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
-var kE = {};
-kE = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
+var jE = {};
+jE = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
// node_modules/react-aria/dist/private/intl/menu/da-DK.mjs
-var AE = {};
-AE = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
+var ME = {};
+ME = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
// node_modules/react-aria/dist/private/intl/menu/de-DE.mjs
-var jE = {};
-jE = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
+var NE = {};
+NE = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
// node_modules/react-aria/dist/private/intl/menu/el-GR.mjs
-var ME = {};
-ME = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
+var PE = {};
+PE = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
// node_modules/react-aria/dist/private/intl/menu/en-US.mjs
-var NE = {};
-NE = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
+var FE = {};
+FE = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
// node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
-var PE = {};
-PE = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
+var IE = {};
+IE = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
// node_modules/react-aria/dist/private/intl/menu/et-EE.mjs
-var FE = {};
-FE = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
+var LE = {};
+LE = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
// node_modules/react-aria/dist/private/intl/menu/fi-FI.mjs
-var IE = {};
-IE = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
+var RE = {};
+RE = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
// node_modules/react-aria/dist/private/intl/menu/fr-FR.mjs
-var LE = {};
-LE = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
+var zE = {};
+zE = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
// node_modules/react-aria/dist/private/intl/menu/he-IL.mjs
-var RE = {};
-RE = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
+var BE = {};
+BE = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
// node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
-var zE = {};
-zE = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
+var VE = {};
+VE = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
// node_modules/react-aria/dist/private/intl/menu/hu-HU.mjs
-var BE = {};
-BE = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
+var HE = {};
+HE = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
// node_modules/react-aria/dist/private/intl/menu/it-IT.mjs
-var VE = {};
-VE = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
+var UE = {};
+UE = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
// node_modules/react-aria/dist/private/intl/menu/ja-JP.mjs
-var HE = {};
-HE = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
+var WE = {};
+WE = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
// node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
-var UE = {};
-UE = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
+var GE = {};
+GE = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
// node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
-var WE = {};
-WE = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
+var KE = {};
+KE = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
// node_modules/react-aria/dist/private/intl/menu/lv-LV.mjs
-var GE = {};
-GE = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
+var qE = {};
+qE = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
// node_modules/react-aria/dist/private/intl/menu/nb-NO.mjs
-var KE = {};
-KE = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
+var JE = {};
+JE = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
// node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
-var qE = {};
-qE = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
+var YE = {};
+YE = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
// node_modules/react-aria/dist/private/intl/menu/pl-PL.mjs
-var JE = {};
-JE = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
+var XE = {};
+XE = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
// node_modules/react-aria/dist/private/intl/menu/pt-BR.mjs
-var YE = {};
-YE = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
+var ZE = {};
+ZE = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
// node_modules/react-aria/dist/private/intl/menu/pt-PT.mjs
-var XE = {};
-XE = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
+var QE = {};
+QE = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
// node_modules/react-aria/dist/private/intl/menu/ro-RO.mjs
-var ZE = {};
-ZE = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
+var $E = {};
+$E = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
// node_modules/react-aria/dist/private/intl/menu/ru-RU.mjs
-var QE = {};
-QE = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
+var eD = {};
+eD = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
// node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
-var $E = {};
-$E = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
+var tD = {};
+tD = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
// node_modules/react-aria/dist/private/intl/menu/sl-SI.mjs
-var eD = {};
-eD = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
+var nD = {};
+nD = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
// node_modules/react-aria/dist/private/intl/menu/sr-SP.mjs
-var tD = {};
-tD = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
+var rD = {};
+rD = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
// node_modules/react-aria/dist/private/intl/menu/sv-SE.mjs
-var nD = {};
-nD = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
+var iD = {};
+iD = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
// node_modules/react-aria/dist/private/intl/menu/tr-TR.mjs
-var rD = {};
-rD = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
+var aD = {};
+aD = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
// node_modules/react-aria/dist/private/intl/menu/uk-UA.mjs
-var iD = {};
-iD = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
+var oD = {};
+oD = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
// node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
-var aD = {};
-aD = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
+var sD = {};
+sD = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
// node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
-var oD = {};
-oD = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
+var cD = {};
+cD = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
// node_modules/react-aria/dist/private/menu/intlStrings.mjs
-var sD = {};
-sD = {
- "ar-AE": DE,
- "bg-BG": OE,
- "cs-CZ": kE,
- "da-DK": AE,
- "de-DE": jE,
- "el-GR": ME,
- "en-US": NE,
- "es-ES": PE,
- "et-EE": FE,
- "fi-FI": IE,
- "fr-FR": LE,
- "he-IL": RE,
- "hr-HR": zE,
- "hu-HU": BE,
- "it-IT": VE,
- "ja-JP": HE,
- "ko-KR": UE,
- "lt-LT": WE,
- "lv-LV": GE,
- "nb-NO": KE,
- "nl-NL": qE,
- "pl-PL": JE,
- "pt-BR": YE,
- "pt-PT": XE,
- "ro-RO": ZE,
- "ru-RU": QE,
- "sk-SK": $E,
- "sl-SI": eD,
- "sr-SP": tD,
- "sv-SE": nD,
- "tr-TR": rD,
- "uk-UA": iD,
- "zh-CN": aD,
- "zh-TW": oD
+var lD = {};
+lD = {
+ "ar-AE": kE,
+ "bg-BG": AE,
+ "cs-CZ": jE,
+ "da-DK": ME,
+ "de-DE": NE,
+ "el-GR": PE,
+ "en-US": FE,
+ "es-ES": IE,
+ "et-EE": LE,
+ "fi-FI": RE,
+ "fr-FR": zE,
+ "he-IL": BE,
+ "hr-HR": VE,
+ "hu-HU": HE,
+ "it-IT": UE,
+ "ja-JP": WE,
+ "ko-KR": GE,
+ "lt-LT": KE,
+ "lv-LV": qE,
+ "nb-NO": JE,
+ "nl-NL": YE,
+ "pl-PL": XE,
+ "pt-BR": ZE,
+ "pt-PT": QE,
+ "ro-RO": $E,
+ "ru-RU": eD,
+ "sk-SK": tD,
+ "sl-SI": nD,
+ "sr-SP": rD,
+ "sv-SE": iD,
+ "tr-TR": aD,
+ "uk-UA": oD,
+ "zh-CN": sD,
+ "zh-TW": cD
};
// node_modules/react-aria/dist/private/interactions/useLongPress.mjs
-var _se = 500;
-function cD(e) {
- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = _se, accessibilityDescription: s } = e, c = (0, F.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = eT(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = aT({
+var hse = 500;
+function uD(e) {
+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = hse, accessibilityDescription: s } = e, c = (0, F.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = nT(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = sT({
isDisabled: t,
onPressStart(e) {
if (e.continuePropagation(), d(e)) {
@@ -25952,12 +25952,12 @@ function cD(e) {
...e,
type: "longpressstart"
}), c.current = setTimeout(() => {
- e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), TS(e.target).activeElement !== e.target && wS(e.target), a && a({
+ e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), DS(e.target).activeElement !== e.target && ES(e.target), a && a({
...e,
type: "longpress"
}), c.current = void 0;
}, o), e.pointerType === "touch" && l(e.target, "contextmenu", (e) => e.preventDefault(), { once: !0 });
- let t = ES(e.target);
+ let t = OS(e.target);
l(t, "pointerup", () => {
setTimeout(() => {
u();
@@ -25972,11 +25972,11 @@ function cD(e) {
});
}
});
- return { longPressProps: K(f, BT(a && !t ? s : void 0)) };
+ return { longPressProps: K(f, HT(a && !t ? s : void 0)) };
}
// node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
-function vse(e) {
- let { onContextMenu: t } = e, n = (0, F.useRef)(!1), { longPressProps: r } = cD({
+function gse(e) {
+ let { onContextMenu: t } = e, n = (0, F.useRef)(!1), { longPressProps: r } = uD({
onLongPressStart() {
n.current = !1;
},
@@ -25988,7 +25988,7 @@ function vse(e) {
});
}
});
- return t ? { contextMenuProps: K(ZS() ? r : {}, {
+ return t ? { contextMenuProps: K($S() ? r : {}, {
onContextMenu(e) {
e.stopPropagation(), e.preventDefault(), n.current = !0;
let r = e.currentTarget.getBoundingClientRect();
@@ -25999,7 +25999,7 @@ function vse(e) {
});
},
onKeyDown(e) {
- if (YS() && e.ctrlKey && e.key === "Enter") {
+ if (ZS() && e.ctrlKey && e.key === "Enter") {
n.current = !1;
let r = e.currentTarget;
e.stopPropagation(), setTimeout(() => {
@@ -26018,13 +26018,13 @@ function vse(e) {
}) } : { contextMenuProps: {} };
}
// node_modules/react-aria/dist/private/overlays/useCloseOnScroll.mjs
-var lD = /* @__PURE__ */ new WeakMap();
-function yse(e) {
+var dD = /* @__PURE__ */ new WeakMap();
+function _se(e) {
let { triggerRef: t, isOpen: n, onClose: r } = e;
- (0, F.useEffect)(() => !n || r === null ? void 0 : kS(PS(t.current), "scroll", (e) => {
+ (0, F.useEffect)(() => !n || r === null ? void 0 : jS(IS(t.current), "scroll", (e) => {
let n = G(e);
- if (!t.current || n instanceof Node && !MS(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
- let i = r || lD.get(t.current);
+ if (!t.current || n instanceof Node && !PS(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
+ let i = r || dD.get(t.current);
i && i();
}, !0), [
n,
@@ -26033,14 +26033,14 @@ function yse(e) {
]);
}
// node_modules/react-aria/dist/private/overlays/useOverlayTrigger.mjs
-function bse(e, t, n) {
+function vse(e, t, n) {
let { type: r } = e, { isOpen: i } = t;
(0, F.useEffect)(() => {
- n && n.current && lD.set(n.current, t.close);
+ n && n.current && dD.set(n.current, t.close);
});
let a;
r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");
- let o = VC();
+ let o = UC();
return {
triggerProps: {
"aria-haspopup": a,
@@ -26052,14 +26052,14 @@ function bse(e, t, n) {
};
}
// node_modules/react-aria/dist/private/menu/useMenuTrigger.mjs
-function xse(e) {
+function yse(e) {
return e && e.__esModule ? e.default : e;
}
-function uD(e, t, n) {
- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = VC(), { triggerProps: s, overlayProps: c } = bse({ type: r }, t, n), l = (e, n, r = "first") => {
+function fD(e, t, n) {
+ let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = UC(), { triggerProps: s, overlayProps: c } = vse({ type: r }, t, n), l = (e, n, r = "first") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
- }, { keyboardProps: u } = ZC({
+ }, { keyboardProps: u } = $C({
isDisabled: i,
shortcuts: {
Enter: (e) => l(a !== "longPress", e, "first"),
@@ -26071,7 +26071,7 @@ function uD(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = Uw(xse(sD), "@react-aria/menu"), { longPressProps: f } = cD({
+ }), d = Gw(yse(lD), "@react-aria/menu"), { longPressProps: f } = uD({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -26083,14 +26083,14 @@ function uD(e, t, n) {
}), p = {
preventFocusOnPress: !0,
onPressStart(e) {
- e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (wS(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
+ e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (ES(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
},
onPress(e) {
- e.pointerType === "touch" && !i && (wS(e.target), t.toggle());
+ e.pointerType === "touch" && !i && (ES(e.target), t.toggle());
}
};
delete s.onPress;
- let { contextMenuProps: m } = vse({ onContextMenu(e) {
+ let { contextMenuProps: m } = gse({ onContextMenu(e) {
let n = e.target.getBoundingClientRect();
t.setPoint({
x: n.x + e.x,
@@ -26134,8 +26134,8 @@ function uD(e, t, n) {
};
}
// node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
-var dD = 1e3;
-function fD(e) {
+var pD = 1e3;
+function mD(e) {
let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, F.useRef)({
search: "",
timeout: void 0
@@ -26154,12 +26154,12 @@ function fD(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, dD);
+ }, pD);
}
} : void 0,
onKeyDown: t.getKeyForSearch ? (e) => {
- let a = Sse(e.key);
- if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !MS(e.currentTarget, G(e)) || i.current.search.length === 0 && a === " ")) {
+ let a = bse(e.key);
+ if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !PS(e.currentTarget, G(e)) || i.current.search.length === 0 && a === " ")) {
if (i.current.search += a, t.getKeyForSearch != null) {
let a = t.getKeyForSearch(i.current.search, n.focusedKey);
if (a ??= t.getKeyForSearch(i.current.search), a != null) n.setFocusedKey(a), r && r(a), e.preventDefault(), "continuePropagation" in e || e.stopPropagation();
@@ -26170,32 +26170,32 @@ function fD(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, dD);
+ }, pD);
}
} : void 0
} };
}
-function Sse(e) {
+function bse(e) {
return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
}
// node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
-function pD(e, t) {
+function hD(e, t) {
let n = (0, F.useRef)(!0), r = (0, F.useRef)(null);
- VS(() => (n.current = !0, () => {
+ US(() => (n.current = !0, () => {
n.current = !1;
- }), []), VS(() => {
+ }), []), US(() => {
n.current ? n.current = !1 : (!r.current || t.some((e, t) => !Object.is(e, r[t]))) && e(), r.current = t;
}, t);
}
// node_modules/react-aria/dist/private/selection/useSelectableCollection.mjs
-function mD(e) {
- let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: i = !1, shouldFocusWrap: a = !1, disallowEmptySelection: o = !1, disallowSelectAll: s = !1, escapeKeyBehavior: c = "clearSelection", selectOnFocus: l = t.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: f = !1, scrollRef: p = r, linkBehavior: m = "action", UNSTABLE_focusOnEntry: h } = e, { direction: g } = Lw(), _ = nC(), v = (e, n, i) => {
+function gD(e) {
+ let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: i = !1, shouldFocusWrap: a = !1, disallowEmptySelection: o = !1, disallowSelectAll: s = !1, escapeKeyBehavior: c = "clearSelection", selectOnFocus: l = t.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: f = !1, scrollRef: p = r, linkBehavior: m = "action", UNSTABLE_focusOnEntry: h } = e, { direction: g } = zw(), _ = iC(), v = (e, n, i) => {
if (n != null) {
- if (t.isLink(n) && m === "selection" && l && !SE(e)) {
+ if (t.isLink(n) && m === "selection" && l && !wE(e)) {
(0, Lt.flushSync)(() => {
t.setFocusedKey(n, i);
});
- let a = CE(r, n), o = t.getItemProps(n);
+ let a = TE(r, n), o = t.getItemProps(n);
if (a) {
_.open(a, e, o.href, o.routerOptions);
return;
@@ -26207,7 +26207,7 @@ function mD(e) {
t.extendSelection(n);
return;
}
- if (l && !SE(e)) {
+ if (l && !wE(e)) {
t.replaceSelection(n);
return;
}
@@ -26234,9 +26234,9 @@ function mD(e) {
}, x = (e) => {
if (n.getFirstKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getFirstKey(t.focusedKey, Dw(e));
+ let r = n.getFirstKey(t.focusedKey, kw(e));
if (t.setFocusedKey(r), r != null) {
- if (Dw(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (kw(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -26268,9 +26268,9 @@ function mD(e) {
}, w = (e) => {
if (n.getLastKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getLastKey(t.focusedKey, Dw(e));
+ let r = n.getLastKey(t.focusedKey, kw(e));
if (t.setFocusedKey(r), r != null) {
- if (Dw(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (kw(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -26301,12 +26301,12 @@ function mD(e) {
else return !1;
}, k = () => {
if (!f && r.current) {
- let e = DT(r.current, { tabbable: !0 }), t, n;
+ let e = kT(r.current, { tabbable: !0 }), t, n;
do
n = e.lastChild(), n && (t = n);
while (n);
- let i = NS();
- t && (!FS(t) || i && !zS(i)) && wS(t);
+ let i = FS();
+ t && (!LS(t) || i && !VS(i)) && ES(t);
}
return {
shouldContinuePropagation: !0,
@@ -26316,11 +26316,11 @@ function mD(e) {
shouldContinuePropagation: !0,
shouldPreventDefault: !1
}), j = (e, t) => ({
- [YS() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
+ [ZS() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
[e + "+Shift"]: t,
- [YS() ? e + "+Alt" : e + "+Control"]: t,
+ [ZS() ? e + "+Alt" : e + "+Control"]: t,
[e]: t
- }), { keyboardProps: M } = ZC({
+ }), { keyboardProps: M } = $C({
shortcuts: {
...j("ArrowDown", y),
...j("ArrowUp", b),
@@ -26330,7 +26330,7 @@ function mD(e) {
...j("PageUp", E)
},
allowRepeats: !0
- }), { keyboardProps: ee } = ZC({ shortcuts: {
+ }), { keyboardProps: ee } = $C({ shortcuts: {
...j("Home", x),
...j("End", w),
"Mod+A": D,
@@ -26341,7 +26341,7 @@ function mD(e) {
top: 0,
left: 0
});
- Aw(p, "scroll", () => {
+ Mw(p, "scroll", () => {
N.current = {
top: p.current?.scrollTop ?? 0,
left: p.current?.scrollLeft ?? 0
@@ -26349,11 +26349,11 @@ function mD(e) {
});
let te = (e) => {
if (t.isFocused) {
- MS(e.currentTarget, G(e)) || t.setFocused(!1);
+ PS(e.currentTarget, G(e)) || t.setFocused(!1);
return;
}
- if (!MS(e.currentTarget, G(e))) return;
- let i = TC();
+ if (!PS(e.currentTarget, G(e))) return;
+ let i = DC();
t.setFocused(!0);
let a = (e) => {
e != null && (t.setFocusedKey(e), l && !t.isSelected(e) && t.replaceSelection(e));
@@ -26364,27 +26364,27 @@ function mD(e) {
r && e.currentTarget.compareDocumentPosition(r) & Node.DOCUMENT_POSITION_FOLLOWING ? a(t.lastSelectedKey ?? n.getLastKey?.()) : a(t.firstSelectedKey ?? n.getFirstKey?.());
} else p.current && (p.current.scrollTop = N.current.top, p.current.scrollLeft = N.current.left);
if (t.focusedKey != null && p.current) {
- let e = CE(r, t.focusedKey);
- e instanceof HTMLElement && (!FS(e) && !d && wS(e), (i === "keyboard" || h && i === "virtual") && RT(e, { containingElement: r.current }));
+ let e = TE(r, t.focusedKey);
+ e instanceof HTMLElement && (!LS(e) && !d && ES(e), (i === "keyboard" || h && i === "virtual") && BT(e, { containingElement: r.current }));
}
}, P = (e) => {
- MS(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
+ PS(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
}, ne = (0, F.useRef)(!1);
- Aw(r, ooe, d ? (e) => {
+ Mw(r, ioe, d ? (e) => {
let { detail: n } = e;
e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (ne.current = !0);
} : void 0);
let re = n.getFirstKey?.() ?? null;
- pD(() => {
+ hD(() => {
if (ne.current) {
if (re == null) {
- let e = NS();
- gw(r.current), _w(e, null), t.collection.size > 0 && (ne.current = !1);
+ let e = FS();
+ vw(r.current), yw(e, null), t.collection.size > 0 && (ne.current = !1);
} else t.setFocusedKey(re), ne.current = !1;
}
- }, [re, t.collection.size]), pD(() => {
+ }, [re, t.collection.size]), hD(() => {
t.collection.size > 0 && (ne.current = !1);
- }, [t.focusedKey]), Aw(r, aoe, d ? (e) => {
+ }, [t.focusedKey]), Mw(r, roe, d ? (e) => {
e.stopPropagation(), t.setFocused(!1), e.detail?.clearFocusKey && t.setFocusedKey(null);
} : void 0);
let I = (0, F.useRef)(i), ie = (0, F.useRef)(!1);
@@ -26399,22 +26399,22 @@ function mD(e) {
break;
}
}
- t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && IC(r.current), t.collection.size > 0 && (I.current = !1, ie.current = !0);
+ t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && RC(r.current), t.collection.size > 0 && (I.current = !1, ie.current = !0);
}
});
let ae = (0, F.useRef)(t.focusedKey), oe = (0, F.useRef)(null);
(0, F.useEffect)(() => {
if (t.isFocused && t.focusedKey != null && (t.focusedKey !== ae.current || ie.current) && p.current && r.current) {
- let e = TC(), n = CE(r, t.focusedKey);
+ let e = DC(), n = TE(r, t.focusedKey);
if (!(n instanceof HTMLElement)) return;
(e === "keyboard" || ie.current) && (oe.current && cancelAnimationFrame(oe.current), oe.current = requestAnimationFrame(() => {
- p.current && (LT(p.current, n), e !== "virtual" && RT(n, { containingElement: r.current }));
+ p.current && (zT(p.current, n), e !== "virtual" && BT(n, { containingElement: r.current }));
}));
}
- !d && t.isFocused && t.focusedKey == null && ae.current != null && r.current && IC(r.current), ae.current = t.focusedKey, ie.current = !1;
+ !d && t.isFocused && t.focusedKey == null && ae.current != null && r.current && RC(r.current), ae.current = t.focusedKey, ie.current = !1;
}), (0, F.useEffect)(() => () => {
oe.current && cancelAnimationFrame(oe.current);
- }, []), Aw(r, "react-aria-focus-scope-restore", (e) => {
+ }, []), Mw(r, "react-aria-focus-scope-restore", (e) => {
e.preventDefault(), t.setFocused(!0);
});
let se = {
@@ -26424,27 +26424,27 @@ function mD(e) {
onMouseDown(e) {
p.current === G(e) && e.preventDefault();
}
- }, { typeSelectProps: ce } = fD({
+ }, { typeSelectProps: ce } = mD({
keyboardDelegate: n,
selectionManager: t
});
u || (se = K(ce, se));
let le;
d || (le = t.focusedKey == null ? 0 : -1);
- let ue = hse(t.collection);
+ let ue = pse(t.collection);
return { collectionProps: K(se, {
tabIndex: le,
"data-collection": ue
}) };
}
// node_modules/react-stately/dist/private/collections/getChildNodes.mjs
-function hD(e, t) {
+function _D(e, t) {
return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;
}
-function gD(e) {
- return _D(e, 0);
+function vD(e) {
+ return yD(e, 0);
}
-function _D(e, t) {
+function yD(e, t) {
if (t < 0) return;
let n = 0;
for (let r of e) {
@@ -26452,106 +26452,106 @@ function _D(e, t) {
n++;
}
}
-function vD(e) {
+function bD(e) {
let t;
for (let n of e) t = n;
return t;
}
-function yD(e, t, n) {
+function xD(e, t, n) {
if (t.parentKey === n.parentKey) return t.index - n.index;
- let r = [...bD(e, t), t], i = [...bD(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
+ let r = [...SD(e, t), t], i = [...SD(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
return a === -1 ? r.findIndex((e) => e === n) >= 0 ? 1 : (i.findIndex((e) => e === t), -1) : (t = r[a], n = i[a], t.index - n.index);
}
-function bD(e, t) {
+function SD(e, t) {
let n = [], r = t;
for (; r?.parentKey != null;) r = e.getItem(r.parentKey), r && n.unshift(r);
return n;
}
// node_modules/react-stately/dist/private/collections/getItemCount.mjs
-var xD = /* @__PURE__ */ new WeakMap();
-function SD(e) {
- let t = xD.get(e);
+var CD = /* @__PURE__ */ new WeakMap();
+function wD(e) {
+ let t = CD.get(e);
if (t != null) return t;
let n = 0, r = (t) => {
- for (let i of t) i.type === "section" ? r(hD(i, e)) : i.type === "item" && n++;
+ for (let i of t) i.type === "section" ? r(_D(i, e)) : i.type === "item" && n++;
};
- return r(e), xD.set(e, n), n;
+ return r(e), CD.set(e, n), n;
}
// node_modules/react-aria/dist/private/i18n/useCollator.mjs
-var CD = /* @__PURE__ */ new Map();
-function wD(e) {
- let { locale: t } = Lw(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (CD.has(n)) return CD.get(n);
+var TD = /* @__PURE__ */ new Map();
+function ED(e) {
+ let { locale: t } = zw(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
+ if (TD.has(n)) return TD.get(n);
let r = new Intl.Collator(t, e);
- return CD.set(n, r), r;
+ return TD.set(n, r), r;
}
// node_modules/react-aria/dist/private/interactions/PressResponder.mjs
-var Cse = /*#__PURE__*/ F.forwardRef(({ children: e, ...t }, n) => {
- let r = (0, F.useRef)(!1), i = (0, F.useContext)($w), a = K(i || {}, {
+var xse = /*#__PURE__*/ F.forwardRef(({ children: e, ...t }, n) => {
+ let r = (0, F.useRef)(!1), i = (0, F.useContext)(tT), a = K(i || {}, {
...t,
register() {
r.current = !0, i && i.register();
}
});
- return a.ref = QC(n || i?.ref), $C(i, a.ref), (0, F.useEffect)(() => {
+ return a.ref = ew(n || i?.ref), tw(i, a.ref), (0, F.useEffect)(() => {
r.current ||= !0;
- }, []), /*#__PURE__*/ F.createElement($w.Provider, { value: a }, e);
+ }, []), /*#__PURE__*/ F.createElement(tT.Provider, { value: a }, e);
});
-function wse({ children: e }) {
+function Sse({ children: e }) {
let t = (0, F.useMemo)(() => ({ register: () => {} }), []);
- return /*#__PURE__*/ F.createElement($w.Provider, { value: t }, e);
+ return /*#__PURE__*/ F.createElement(tT.Provider, { value: t }, e);
}
// node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var TD = /*#__PURE__*/ (0, F.createContext)({});
-function ED(e) {
- let { getContainer: t } = e, { getContainer: n } = DD();
- return /*#__PURE__*/ F.createElement(TD.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
+var DD = /*#__PURE__*/ (0, F.createContext)({});
+function OD(e) {
+ let { getContainer: t } = e, { getContainer: n } = kD();
+ return /*#__PURE__*/ F.createElement(DD.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
}
-function DD() {
- return (0, F.useContext)(TD) ?? {};
+function kD() {
+ return (0, F.useContext)(DD) ?? {};
}
// node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var OD = /*#__PURE__*/ F.createContext(null);
-function kD(e) {
- let t = lC(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => ({
+var AD = /*#__PURE__*/ F.createContext(null);
+function jD(e) {
+ let t = dC(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => ({
contain: i,
setContain: a
- }), [i, a]), { getContainer: s } = DD();
+ }), [i, a]), { getContainer: s } = kD();
if (!e.portalContainer && s && (n = s()), !n) return null;
let c = e.children;
- return e.disableFocusManagement || (c = /*#__PURE__*/ F.createElement(hT, {
+ return e.disableFocusManagement || (c = /*#__PURE__*/ F.createElement(_T, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ F.createElement(OD.Provider, { value: o }, /*#__PURE__*/ F.createElement(wse, null, /*#__PURE__*/ F.createElement(ew.Provider, { value: null }, c))), /*#__PURE__*/ Lt.createPortal(c, n);
+ }, c)), c = /*#__PURE__*/ F.createElement(AD.Provider, { value: o }, /*#__PURE__*/ F.createElement(Sse, null, /*#__PURE__*/ F.createElement(nw.Provider, { value: null }, c))), /*#__PURE__*/ Lt.createPortal(c, n);
}
-function AD() {
- let e = (0, F.useContext)(OD)?.setContain;
- VS(() => {
+function MD() {
+ let e = (0, F.useContext)(AD)?.setContain;
+ US(() => {
e?.(!0);
}, [e]);
}
// node_modules/react-aria/dist/private/dialog/useDialog.mjs
-function Tse(e, t) {
- let { role: n = "dialog", isEntering: r } = e, i = HC();
+function Cse(e, t) {
+ let { role: n = "dialog", isEntering: r } = e, i = WC();
i = e["aria-label"] ? void 0 : i;
- let a = HC();
+ let a = WC();
a = n === "alertdialog" && !e["aria-describedby"] ? a : void 0;
let o = (0, F.useRef)(!1);
(0, F.useEffect)(() => {
- if (!r && t.current && !FS(t.current)) {
- IC(t.current);
+ if (!r && t.current && !LS(t.current)) {
+ RC(t.current);
let e = setTimeout(() => {
- (NS() === t.current || NS() === document.body) && (o.current = !0, t.current && (t.current.blur(), IC(t.current)), o.current = !1);
+ (FS() === t.current || FS() === document.body) && (o.current = !0, t.current && (t.current.blur(), RC(t.current)), o.current = !1);
}, 500);
return () => {
clearTimeout(e);
};
}
- }, [t, r]), AD(), (0, F.useRef)(!1), (0, F.useEffect)(() => {});
+ }, [t, r]), MD(), (0, F.useRef)(!1), (0, F.useEffect)(() => {});
let s = e["aria-describedby"] ?? a;
return {
dialogProps: {
- ...Gw(e, { labelable: !0 }),
+ ...qw(e, { labelable: !0 }),
role: n,
tabIndex: -1,
"aria-labelledby": e["aria-labelledby"] ?? i,
@@ -26565,23 +26565,23 @@ function Tse(e, t) {
};
}
// node_modules/react-aria/dist/private/focus/useFocusRing.mjs
-function jD(e = {}) {
+function ND(e = {}) {
let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, F.useRef)({
isFocused: !1,
- isFocusVisible: t || wC()
+ isFocusVisible: t || EC()
}), [a, o] = (0, F.useState)(!1), [s, c] = (0, F.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, F.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, F.useCallback)((e) => {
- i.current.isFocused = e, i.current.isFocusVisible = wC(), o(e), l();
+ i.current.isFocused = e, i.current.isFocusVisible = EC(), o(e), l();
}, [l]);
- kC((e) => {
+ jC((e) => {
i.current.isFocusVisible = e, l();
}, [n, a], {
enabled: a,
isTextInput: n
});
- let { focusProps: d } = qC({
+ let { focusProps: d } = YC({
isDisabled: r,
onFocusChange: u
- }), { focusWithinProps: f } = nE({
+ }), { focusWithinProps: f } = iE({
isDisabled: !r,
onFocusWithinChange: u
});
@@ -26592,41 +26592,41 @@ function jD(e = {}) {
};
}
// node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
-function Ese(e = {}) {
- let { locale: t } = Lw();
+function wse(e = {}) {
+ let { locale: t } = zw();
return (0, F.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
// node_modules/react-aria/dist/private/interactions/useHover.mjs
-var MD = !1, ND = 0;
-function Dse() {
- MD = !0, setTimeout(() => {
- MD = !1;
+var PD = !1, FD = 0;
+function Tse() {
+ PD = !0, setTimeout(() => {
+ PD = !1;
}, 500);
}
-function PD(e) {
- e.pointerType === "touch" && Dse();
+function ID(e) {
+ e.pointerType === "touch" && Tse();
}
-function Ose() {
- let e = TS(null);
- if (e !== void 0) return ND === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", PD), ND++, () => {
- ND--, !(ND > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", PD);
+function Ese() {
+ let e = DS(null);
+ if (e !== void 0) return FD === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", ID), FD++, () => {
+ FD--, !(FD > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", ID);
};
}
-function FD(e) {
+function LD(e) {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, F.useState)(!1), s = (0, F.useRef)({
isHovered: !1,
ignoreEmulatedMouseEvents: !1,
pointerType: "",
target: null
}).current;
- (0, F.useEffect)(Ose, []);
- let { addGlobalListener: c, removeAllGlobalListeners: l } = eT(), { hoverProps: u, triggerHoverEnd: d } = (0, F.useMemo)(() => {
+ (0, F.useEffect)(Ese, []);
+ let { addGlobalListener: c, removeAllGlobalListeners: l } = nT(), { hoverProps: u, triggerHoverEnd: d } = (0, F.useMemo)(() => {
let e = (e, r) => {
- if (s.pointerType = r, i || r === "touch" || s.isHovered || !MS(e.currentTarget, G(e))) return;
+ if (s.pointerType = r, i || r === "touch" || s.isHovered || !PS(e.currentTarget, G(e))) return;
s.isHovered = !0;
let l = e.currentTarget;
- s.target = l, c(TS(G(e)), "pointerover", (e) => {
- s.isHovered && s.target && !MS(s.target, G(e)) && a(e, e.pointerType);
+ s.target = l, c(DS(G(e)), "pointerover", (e) => {
+ s.isHovered && s.target && !PS(s.target, G(e)) && a(e, e.pointerType);
}, { capture: !0 }), t && t({
type: "hoverstart",
target: l,
@@ -26641,9 +26641,9 @@ function FD(e) {
}), n && n(!1), o(!1));
}, u = {};
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
- MD && t.pointerType === "mouse" || e(t, t.pointerType);
+ PD && t.pointerType === "mouse" || e(t, t.pointerType);
}, u.onPointerLeave = (e) => {
- !i && MS(e.currentTarget, G(e)) && a(e, e.pointerType);
+ !i && PS(e.currentTarget, G(e)) && a(e, e.pointerType);
}), {
hoverProps: u,
triggerHoverEnd: a
@@ -26665,22 +26665,22 @@ function FD(e) {
};
}
// node_modules/react-aria/dist/private/interactions/useInteractOutside.mjs
-function kse(e) {
+function Dse(e) {
let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, F.useRef)({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
- }), o = kw((e) => {
- n && ID(e, t) && (i && i(e), a.current.isPointerDown = !0);
- }), s = kw((e) => {
+ }), o = jw((e) => {
+ n && RD(e, t) && (i && i(e), a.current.isPointerDown = !0);
+ }), s = jw((e) => {
n && n(e);
});
(0, F.useEffect)(() => {
let e = a.current;
if (r) return;
- let n = t.current, i = TS(n);
+ let n = t.current, i = DS(n);
if (typeof PointerEvent < "u") {
let n = (n) => {
- e.isPointerDown && ID(n, t) && s(n), e.isPointerDown = !1;
+ e.isPointerDown && RD(n, t) && s(n), e.isPointerDown = !1;
};
return i.addEventListener("pointerdown", o, !0), i.addEventListener("click", n, !0), () => {
i.removeEventListener("pointerdown", o, !0), i.removeEventListener("click", n, !0);
@@ -26688,28 +26688,28 @@ function kse(e) {
}
}, [t, r]);
}
-function ID(e, t) {
+function RD(e, t) {
if (e.button > 0) return !1;
let n = G(e);
if (n) {
let e = n.ownerDocument;
- if (!e || !MS(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
+ if (!e || !PS(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
}
return t.current ? !e.composedPath().includes(t.current) : !1;
}
// node_modules/react-aria/dist/private/gridlist/utils.mjs
-var LD = /* @__PURE__ */ new WeakMap();
-function RD(e, t) {
- let { id: n } = LD.get(e) ?? {};
+var zD = /* @__PURE__ */ new WeakMap();
+function BD(e, t) {
+ let { id: n } = zD.get(e) ?? {};
if (!n) throw Error("Unknown list");
- return `${n}-${Ase(t)}`;
+ return `${n}-${Ose(t)}`;
}
-function Ase(e) {
+function Ose(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
// node_modules/react-aria/dist/private/intl/grid/ar-AE.mjs
-var zD = {};
-zD = {
+var VD = {};
+VD = {
deselectedItem: (e) => `${e.item} \u{63A}\u{64A}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,
longPressToSelect: "اضغط مطولًا للدخول إلى وضع التحديد.",
select: "تحديد",
@@ -26722,8 +26722,8 @@ zD = {
selectedItem: (e) => `${e.item} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`
};
// node_modules/react-aria/dist/private/intl/grid/bg-BG.mjs
-var BD = {};
-BD = {
+var HD = {};
+HD = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{435} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`,
longPressToSelect: "Натиснете и задръжте за да влезете в избирателен режим.",
select: "Изберете",
@@ -26736,8 +26736,8 @@ BD = {
selectedItem: (e) => `${e.item} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`
};
// node_modules/react-aria/dist/private/intl/grid/cs-CZ.mjs
-var VD = {};
-VD = {
+var UD = {};
+UD = {
deselectedItem: (e) => `Polo\u{17E}ka ${e.item} nen\xed vybr\xe1na.`,
longPressToSelect: "Dlouhým stisknutím přejdete do režimu výběru.",
select: "Vybrat",
@@ -26750,8 +26750,8 @@ VD = {
selectedItem: (e) => `Vybr\xe1na polo\u{17E}ka ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/da-DK.mjs
-var HD = {};
-HD = {
+var WD = {};
+WD = {
deselectedItem: (e) => `${e.item} ikke valgt.`,
longPressToSelect: "Lav et langt tryk for at aktivere valgtilstand.",
select: "Vælg",
@@ -26764,8 +26764,8 @@ HD = {
selectedItem: (e) => `${e.item} valgt.`
};
// node_modules/react-aria/dist/private/intl/grid/de-DE.mjs
-var UD = {};
-UD = {
+var GD = {};
+GD = {
deselectedItem: (e) => `${e.item} nicht ausgew\xe4hlt.`,
longPressToSelect: "Gedrückt halten, um Auswahlmodus zu öffnen.",
select: "Auswählen",
@@ -26778,8 +26778,8 @@ UD = {
selectedItem: (e) => `${e.item} ausgew\xe4hlt.`
};
// node_modules/react-aria/dist/private/intl/grid/el-GR.mjs
-var WD = {};
-WD = {
+var KD = {};
+KD = {
deselectedItem: (e) => `\u{394}\u{3B5}\u{3BD} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} \u{3C4}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF} ${e.item}.`,
longPressToSelect: "Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",
select: "Επιλογή",
@@ -26792,8 +26792,8 @@ WD = {
selectedItem: (e) => `\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} \u{3C4}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF} ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/en-US.mjs
-var GD = {};
-GD = {
+var qD = {};
+qD = {
deselectedItem: (e) => `${e.item} not selected.`,
select: "Select",
selectedCount: (e, t) => `${t.plural(e.count, {
@@ -26806,8 +26806,8 @@ GD = {
longPressToSelect: "Long press to enter selection mode."
};
// node_modules/react-aria/dist/private/intl/grid/es-ES.mjs
-var KD = {};
-KD = {
+var JD = {};
+JD = {
deselectedItem: (e) => `${e.item} no seleccionado.`,
longPressToSelect: "Mantenga pulsado para abrir el modo de selección.",
select: "Seleccionar",
@@ -26820,8 +26820,8 @@ KD = {
selectedItem: (e) => `${e.item} seleccionado.`
};
// node_modules/react-aria/dist/private/intl/grid/et-EE.mjs
-var qD = {};
-qD = {
+var YD = {};
+YD = {
deselectedItem: (e) => `${e.item} pole valitud.`,
longPressToSelect: "Valikurežiimi sisenemiseks vajutage pikalt.",
select: "Vali",
@@ -26834,8 +26834,8 @@ qD = {
selectedItem: (e) => `${e.item} valitud.`
};
// node_modules/react-aria/dist/private/intl/grid/fi-FI.mjs
-var JD = {};
-JD = {
+var XD = {};
+XD = {
deselectedItem: (e) => `Kohdetta ${e.item} ei valittu.`,
longPressToSelect: "Siirry valintatilaan painamalla pitkään.",
select: "Valitse",
@@ -26848,8 +26848,8 @@ JD = {
selectedItem: (e) => `${e.item} valittu.`
};
// node_modules/react-aria/dist/private/intl/grid/fr-FR.mjs
-var YD = {};
-YD = {
+var ZD = {};
+ZD = {
deselectedItem: (e) => `${e.item} non s\xe9lectionn\xe9.`,
longPressToSelect: "Appuyez de manière prolongée pour passer en mode de sélection.",
select: "Sélectionner",
@@ -26862,8 +26862,8 @@ YD = {
selectedItem: (e) => `${e.item} s\xe9lectionn\xe9.`
};
// node_modules/react-aria/dist/private/intl/grid/he-IL.mjs
-var XD = {};
-XD = {
+var QD = {};
+QD = {
deselectedItem: (e) => `${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,
longPressToSelect: "הקשה ארוכה לכניסה למצב בחירה.",
select: "בחר",
@@ -26876,8 +26876,8 @@ XD = {
selectedItem: (e) => `${e.item} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`
};
// node_modules/react-aria/dist/private/intl/grid/hr-HR.mjs
-var ZD = {};
-ZD = {
+var $D = {};
+$D = {
deselectedItem: (e) => `Stavka ${e.item} nije odabrana.`,
longPressToSelect: "Dugo pritisnite za ulazak u način odabira.",
select: "Odaberite",
@@ -26890,8 +26890,8 @@ ZD = {
selectedItem: (e) => `Stavka ${e.item} je odabrana.`
};
// node_modules/react-aria/dist/private/intl/grid/hu-HU.mjs
-var QD = {};
-QD = {
+var eO = {};
+eO = {
deselectedItem: (e) => `${e.item} nincs kijel\xf6lve.`,
longPressToSelect: "Nyomja hosszan a kijelöléshez.",
select: "Kijelölés",
@@ -26904,8 +26904,8 @@ QD = {
selectedItem: (e) => `${e.item} kijel\xf6lve.`
};
// node_modules/react-aria/dist/private/intl/grid/it-IT.mjs
-var $D = {};
-$D = {
+var tO = {};
+tO = {
deselectedItem: (e) => `${e.item} non selezionato.`,
longPressToSelect: "Premi a lungo per passare alla modalità di selezione.",
select: "Seleziona",
@@ -26918,8 +26918,8 @@ $D = {
selectedItem: (e) => `${e.item} selezionato.`
};
// node_modules/react-aria/dist/private/intl/grid/ja-JP.mjs
-var eO = {};
-eO = {
+var nO = {};
+nO = {
deselectedItem: (e) => `${e.item} \u{304C}\u{9078}\u{629E}\u{3055}\u{308C}\u{3066}\u{3044}\u{307E}\u{305B}\u{3093}\u{3002}`,
longPressToSelect: "長押しして選択モードを開きます。",
select: "選択",
@@ -26932,8 +26932,8 @@ eO = {
selectedItem: (e) => `${e.item} \u{3092}\u{9078}\u{629E}\u{3057}\u{307E}\u{3057}\u{305F}\u{3002}`
};
// node_modules/react-aria/dist/private/intl/grid/ko-KR.mjs
-var tO = {};
-tO = {
+var rO = {};
+rO = {
deselectedItem: (e) => `${e.item}\u{C774}(\u{AC00}) \u{C120}\u{D0DD}\u{B418}\u{C9C0} \u{C54A}\u{C558}\u{C2B5}\u{B2C8}\u{B2E4}.`,
longPressToSelect: "선택 모드로 들어가려면 길게 누르십시오.",
select: "선택",
@@ -26946,8 +26946,8 @@ tO = {
selectedItem: (e) => `${e.item}\u{C774}(\u{AC00}) \u{C120}\u{D0DD}\u{B418}\u{C5C8}\u{C2B5}\u{B2C8}\u{B2E4}.`
};
// node_modules/react-aria/dist/private/intl/grid/lt-LT.mjs
-var nO = {};
-nO = {
+var iO = {};
+iO = {
deselectedItem: (e) => `${e.item} nepasirinkta.`,
longPressToSelect: "Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",
select: "Pasirinkti",
@@ -26960,8 +26960,8 @@ nO = {
selectedItem: (e) => `Pasirinkta: ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/lv-LV.mjs
-var rO = {};
-rO = {
+var aO = {};
+aO = {
deselectedItem: (e) => `Vienums ${e.item} nav atlas\u{12B}ts.`,
longPressToSelect: "Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",
select: "Atlasīt",
@@ -26974,8 +26974,8 @@ rO = {
selectedItem: (e) => `Atlas\u{12B}ts vienums ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/nb-NO.mjs
-var iO = {};
-iO = {
+var oO = {};
+oO = {
deselectedItem: (e) => `${e.item} er ikke valgt.`,
longPressToSelect: "Bruk et langt trykk for å gå inn i valgmodus.",
select: "Velg",
@@ -26988,8 +26988,8 @@ iO = {
selectedItem: (e) => `${e.item} er valgt.`
};
// node_modules/react-aria/dist/private/intl/grid/nl-NL.mjs
-var aO = {};
-aO = {
+var sO = {};
+sO = {
deselectedItem: (e) => `${e.item} niet geselecteerd.`,
longPressToSelect: "Druk lang om de selectiemodus te openen.",
select: "Selecteren",
@@ -27002,8 +27002,8 @@ aO = {
selectedItem: (e) => `${e.item} geselecteerd.`
};
// node_modules/react-aria/dist/private/intl/grid/pl-PL.mjs
-var oO = {};
-oO = {
+var cO = {};
+cO = {
deselectedItem: (e) => `Nie zaznaczono ${e.item}.`,
longPressToSelect: "Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",
select: "Zaznacz",
@@ -27016,8 +27016,8 @@ oO = {
selectedItem: (e) => `Zaznaczono ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/pt-BR.mjs
-var sO = {};
-sO = {
+var lO = {};
+lO = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Mantenha pressionado para entrar no modo de seleção.",
select: "Selecionar",
@@ -27030,8 +27030,8 @@ sO = {
selectedItem: (e) => `${e.item} selecionado.`
};
// node_modules/react-aria/dist/private/intl/grid/pt-PT.mjs
-var cO = {};
-cO = {
+var uO = {};
+uO = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Prima continuamente para entrar no modo de seleção.",
select: "Selecionar",
@@ -27044,8 +27044,8 @@ cO = {
selectedItem: (e) => `${e.item} selecionado.`
};
// node_modules/react-aria/dist/private/intl/grid/ro-RO.mjs
-var lO = {};
-lO = {
+var dO = {};
+dO = {
deselectedItem: (e) => `${e.item} neselectat.`,
longPressToSelect: "Apăsați lung pentru a intra în modul de selectare.",
select: "Selectare",
@@ -27058,8 +27058,8 @@ lO = {
selectedItem: (e) => `${e.item} selectat.`
};
// node_modules/react-aria/dist/private/intl/grid/ru-RU.mjs
-var uO = {};
-uO = {
+var fO = {};
+fO = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Нажмите и удерживайте для входа в режим выбора.",
select: "Выбрать",
@@ -27072,8 +27072,8 @@ uO = {
selectedItem: (e) => `${e.item} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`
};
// node_modules/react-aria/dist/private/intl/grid/sk-SK.mjs
-var dO = {};
-dO = {
+var pO = {};
+pO = {
deselectedItem: (e) => `Nevybrat\xe9 polo\u{17E}ky: ${e.item}.`,
longPressToSelect: "Dlhším stlačením prejdite do režimu výberu.",
select: "Vybrať",
@@ -27086,8 +27086,8 @@ dO = {
selectedItem: (e) => `Vybrat\xe9 polo\u{17E}ky: ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/sl-SI.mjs
-var fO = {};
-fO = {
+var mO = {};
+mO = {
deselectedItem: (e) => `Element ${e.item} ni izbran.`,
longPressToSelect: "Za izbirni način pritisnite in dlje časa držite.",
select: "Izberite",
@@ -27100,8 +27100,8 @@ fO = {
selectedItem: (e) => `Element ${e.item} je izbran.`
};
// node_modules/react-aria/dist/private/intl/grid/sr-SP.mjs
-var pO = {};
-pO = {
+var hO = {};
+hO = {
deselectedItem: (e) => `${e.item} nije izabrano.`,
longPressToSelect: "Dugo pritisnite za ulazak u režim biranja.",
select: "Izaberite",
@@ -27114,8 +27114,8 @@ pO = {
selectedItem: (e) => `${e.item} je izabrano.`
};
// node_modules/react-aria/dist/private/intl/grid/sv-SE.mjs
-var mO = {};
-mO = {
+var gO = {};
+gO = {
deselectedItem: (e) => `${e.item} ej markerat.`,
longPressToSelect: "Tryck länge när du vill öppna väljarläge.",
select: "Markera",
@@ -27128,8 +27128,8 @@ mO = {
selectedItem: (e) => `${e.item} markerat.`
};
// node_modules/react-aria/dist/private/intl/grid/tr-TR.mjs
-var hO = {};
-hO = {
+var _O = {};
+_O = {
deselectedItem: (e) => `${e.item} se\xe7ilmedi.`,
longPressToSelect: "Seçim moduna girmek için uzun basın.",
select: "Seç",
@@ -27142,8 +27142,8 @@ hO = {
selectedItem: (e) => `${e.item} se\xe7ildi.`
};
// node_modules/react-aria/dist/private/intl/grid/uk-UA.mjs
-var gO = {};
-gO = {
+var vO = {};
+vO = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Виконайте довге натиснення, щоб перейти в режим вибору.",
select: "Вибрати",
@@ -27156,8 +27156,8 @@ gO = {
selectedItem: (e) => `${e.item} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`
};
// node_modules/react-aria/dist/private/intl/grid/zh-CN.mjs
-var _O = {};
-_O = {
+var yO = {};
+yO = {
deselectedItem: (e) => `\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,
longPressToSelect: "长按以进入选择模式。",
select: "选择",
@@ -27170,8 +27170,8 @@ _O = {
selectedItem: (e) => `\u{5DF2}\u{9009}\u{62E9} ${e.item}\u{3002}`
};
// node_modules/react-aria/dist/private/intl/grid/zh-TW.mjs
-var vO = {};
-vO = {
+var bO = {};
+bO = {
deselectedItem: (e) => `\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,
longPressToSelect: "長按以進入選擇模式。",
select: "選取",
@@ -27184,54 +27184,54 @@ vO = {
selectedItem: (e) => `\u{5DF2}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`
};
// node_modules/react-aria/dist/private/grid/intlStrings.mjs
-var yO = {};
-yO = {
- "ar-AE": zD,
- "bg-BG": BD,
- "cs-CZ": VD,
- "da-DK": HD,
- "de-DE": UD,
- "el-GR": WD,
- "en-US": GD,
- "es-ES": KD,
- "et-EE": qD,
- "fi-FI": JD,
- "fr-FR": YD,
- "he-IL": XD,
- "hr-HR": ZD,
- "hu-HU": QD,
- "it-IT": $D,
- "ja-JP": eO,
- "ko-KR": tO,
- "lt-LT": nO,
- "lv-LV": rO,
- "nb-NO": iO,
- "nl-NL": aO,
- "pl-PL": oO,
- "pt-BR": sO,
- "pt-PT": cO,
- "ro-RO": lO,
- "ru-RU": uO,
- "sk-SK": dO,
- "sl-SI": fO,
- "sr-SP": pO,
- "sv-SE": mO,
- "tr-TR": hO,
- "uk-UA": gO,
- "zh-CN": _O,
- "zh-TW": vO
+var xO = {};
+xO = {
+ "ar-AE": VD,
+ "bg-BG": HD,
+ "cs-CZ": UD,
+ "da-DK": WD,
+ "de-DE": GD,
+ "el-GR": KD,
+ "en-US": qD,
+ "es-ES": JD,
+ "et-EE": YD,
+ "fi-FI": XD,
+ "fr-FR": ZD,
+ "he-IL": QD,
+ "hr-HR": $D,
+ "hu-HU": eO,
+ "it-IT": tO,
+ "ja-JP": nO,
+ "ko-KR": rO,
+ "lt-LT": iO,
+ "lv-LV": aO,
+ "nb-NO": oO,
+ "nl-NL": sO,
+ "pl-PL": cO,
+ "pt-BR": lO,
+ "pt-PT": uO,
+ "ro-RO": dO,
+ "ru-RU": fO,
+ "sk-SK": pO,
+ "sl-SI": mO,
+ "sr-SP": hO,
+ "sv-SE": gO,
+ "tr-TR": _O,
+ "uk-UA": vO,
+ "zh-CN": yO,
+ "zh-TW": bO
};
// node_modules/react-aria/dist/private/grid/useGridSelectionAnnouncement.mjs
-function jse(e) {
+function kse(e) {
return e && e.__esModule ? e.default : e;
}
-function bO(e, t) {
- let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = Uw(jse(yO), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, F.useRef)(i), o = (0, F.useCallback)(() => {
+function SO(e, t) {
+ let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = Gw(kse(xO), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, F.useRef)(i), o = (0, F.useCallback)(() => {
if (!t.selectionManager.isFocused || i === a.current) {
a.current = i;
return;
}
- let e = xO(i, a.current), o = xO(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
+ let e = CO(i, a.current), o = CO(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
if (t.selectionManager.selectedKeys.size === 1 && s) {
let e = t.selectionManager.selectedKeys.keys().next().value;
if (e != null && t.collection.getItem(e)) {
@@ -27251,7 +27251,7 @@ function bO(e, t) {
t && c.push(r.format("deselectedItem", { item: t }));
}
}
- t.selectionManager.selectionMode === "multiple" && (c.length === 0 || i === "all" || i.size > 1 || a.current === "all" || a.current?.size > 1) && c.push(i === "all" ? r.format("selectedAll") : r.format("selectedCount", { count: i.size })), c.length > 0 && MT(c.join(" ")), a.current = i;
+ t.selectionManager.selectionMode === "multiple" && (c.length === 0 || i === "all" || i.size > 1 || a.current === "all" || a.current?.size > 1) && c.push(i === "all" ? r.format("selectedAll") : r.format("selectedCount", { count: i.size })), c.length > 0 && PT(c.join(" ")), a.current = i;
}, [
i,
t.selectionManager.selectedKeys,
@@ -27262,7 +27262,7 @@ function bO(e, t) {
n,
r
]);
- NT(() => {
+ FT(() => {
if (t.selectionManager.isFocused) o();
else {
let e = requestAnimationFrame(o);
@@ -27270,20 +27270,20 @@ function bO(e, t) {
}
}, [i, t.selectionManager.isFocused]);
}
-function xO(e, t) {
+function CO(e, t) {
let n = /* @__PURE__ */ new Set();
if (e === "all" || t === "all") return n;
for (let r of e.keys()) t.has(r) || n.add(r);
return n;
}
// node_modules/react-aria/dist/private/focus/useHasTabbableChild.mjs
-function SO(e, t) {
+function wO(e, t) {
let n = t?.isDisabled, [r, i] = (0, F.useState)(!1);
- return VS(() => {
+ return US(() => {
if (e?.current && !n) {
let t = () => {
if (e.current) {
- let t = DT(e.current, { tabbable: !0 });
+ let t = kT(e.current, { tabbable: !0 });
i(!!t.nextNode());
}
};
@@ -27301,12 +27301,12 @@ function SO(e, t) {
}), !n && r;
}
// node_modules/react-aria/dist/private/grid/useHighlightSelectionDescription.mjs
-function Mse(e) {
+function Ase(e) {
return e && e.__esModule ? e.default : e;
}
-function CO(e) {
- let t = Uw(Mse(yO), "@react-aria/grid"), n = DC(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
- return BT((0, F.useMemo)(() => {
+function TO(e) {
+ let t = Gw(Ase(xO), "@react-aria/grid"), n = kC(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
+ return HT((0, F.useMemo)(() => {
let n = e.selectionManager.selectionMode, i = e.selectionManager.selectionBehavior, a;
return r && (a = t.format("longPressToSelect")), i === "replace" && n !== "none" && e.hasItemActions ? a : void 0;
}, [
@@ -27318,11 +27318,11 @@ function CO(e) {
]));
}
// node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function wO(e) {
- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = wD({
+function EO(e) {
+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = ED({
usage: "search",
sensitivity: "base"
- }), l = t.disabledBehavior, u = (0, F.useMemo)(() => a || new EE({
+ }), l = t.disabledBehavior, u = (0, F.useMemo)(() => a || new OE({
collection: n,
disabledKeys: r,
disabledBehavior: l,
@@ -27339,7 +27339,7 @@ function wO(e) {
c,
l,
s
- ]), { collectionProps: d } = mD({
+ ]), { collectionProps: d } = gD({
...e,
ref: i,
selectionManager: t,
@@ -27348,10 +27348,10 @@ function wO(e) {
return { listProps: d };
}
// node_modules/react-aria/dist/private/gridlist/useGridList.mjs
-function Nse(e, t, n) {
+function jse(e, t, n) {
let { isVirtualized: r, keyboardDelegate: i, layoutDelegate: a, onAction: o, disallowTypeAhead: s, linkBehavior: c = "action", keyboardNavigationBehavior: l = "arrow", escapeKeyBehavior: u = "clearSelection", shouldSelectOnPressUp: d } = e;
!e["aria-label"] && !e["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
- let { listProps: f } = wO({
+ let { listProps: f } = EO({
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
@@ -27366,30 +27366,30 @@ function Nse(e, t, n) {
autoFocus: e.autoFocus,
escapeKeyBehavior: u,
UNSTABLE_focusOnEntry: e.UNSTABLE_focusOnEntry
- }), p = VC(e.id);
- LD.set(t, {
+ }), p = UC(e.id);
+ zD.set(t, {
id: p,
onAction: o,
linkBehavior: c,
keyboardNavigationBehavior: l,
shouldSelectOnPressUp: d
});
- let m = CO({
+ let m = TO({
selectionManager: t.selectionManager,
hasItemActions: !!o
- }), h = SO(n, { isDisabled: t.collection.size !== 0 }), g = K(Gw(e, { labelable: !0 }), {
+ }), h = wO(n, { isDisabled: t.collection.size !== 0 }), g = K(qw(e, { labelable: !0 }), {
role: "grid",
id: p,
"aria-multiselectable": t.selectionManager.selectionMode === "multiple" ? "true" : void 0
}, t.collection.size === 0 ? { tabIndex: h ? -1 : 0 } : f, m);
- return r && (g["aria-rowcount"] = t.collection.size, g["aria-colcount"] = 1), bO({}, t), { gridProps: g };
+ return r && (g["aria-rowcount"] = t.collection.size, g["aria-colcount"] = 1), SO({}, t), { gridProps: g };
}
// node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function TO(e) {
- let { id: t, selectionManager: n, key: r, ref: i, shouldSelectOnPressUp: a, shouldUseVirtualFocus: o, focus: s, isDisabled: c, onAction: l, allowsDifferentPressOrigin: u, linkBehavior: d = "action" } = e, f = nC();
- t = VC(t);
+function DO(e) {
+ let { id: t, selectionManager: n, key: r, ref: i, shouldSelectOnPressUp: a, shouldUseVirtualFocus: o, focus: s, isDisabled: c, onAction: l, allowsDifferentPressOrigin: u, linkBehavior: d = "action" } = e, f = iC();
+ t = UC(t);
let p = (e) => {
- if (e.pointerType === "keyboard" && SE(e)) n.toggleSelection(r);
+ if (e.pointerType === "keyboard" && wE(e)) n.toggleSelection(r);
else {
if (n.selectionMode === "none") return;
if (n.isLink(r)) {
@@ -27400,11 +27400,11 @@ function TO(e) {
}
if (d === "override" || d === "none") return;
}
- n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : e && e.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || e && (Dw(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
+ n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : e && e.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || e && (kw(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
}
};
(0, F.useEffect)(() => {
- r === n.focusedKey && n.isFocused && (o ? gw(i.current) : s ? s() : NS() !== i.current && i.current && IC(i.current));
+ r === n.focusedKey && n.isFocused && (o ? vw(i.current) : s ? s() : FS() !== i.current && i.current && RC(i.current));
}, [
i,
r,
@@ -27432,22 +27432,22 @@ function TO(e) {
l && (l(), i.current?.dispatchEvent(new CustomEvent("react-aria-item-action", { bubbles: !0 }))), _ && i.current && f.open(i.current, e, D.href, D.routerOptions);
}, k = { ref: i };
a ? (k.onPressStart = (e) => {
- C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || DO(e.key)) && p(e);
+ C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || kO(e.key)) && p(e);
}, u ? (k.onPressUp = b ? void 0 : (e) => {
e.pointerType === "mouse" && v && p(e);
}, k.onPress = b ? O : (e) => {
e.pointerType !== "keyboard" && e.pointerType !== "mouse" && v && p(e);
}) : k.onPress = (e) => {
if (b || x && e.pointerType !== "mouse") {
- if (e.pointerType === "keyboard" && !EO(e.key)) return;
+ if (e.pointerType === "keyboard" && !OO(e.key)) return;
O(e);
} else e.pointerType !== "keyboard" && v && p(e);
}) : (k.onPressStart = (e) => {
- C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || DO(e.key))) && p(e);
+ C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || kO(e.key))) && p(e);
}, k.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && EO(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
+ (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && OO(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
});
- let A = gse(n.collection);
+ let A = mse(n.collection);
if (m["data-collection"] = A, m["data-key"] = r, k.preventFocusOnPress = o, o && (k = K(k, {
onPressStart(e) {
e.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
@@ -27462,10 +27462,10 @@ function TO(e) {
"onPress",
"onPressUp",
"onClick"
- ]) D[e] && (k[e] = LC(k[e], D[e]));
- let { pressProps: j, isPressed: M } = aT(k), ee = x ? (e) => {
+ ]) D[e] && (k[e] = zC(k[e], D[e]));
+ let { pressProps: j, isPressed: M } = sT(k), ee = x ? (e) => {
C.current === "mouse" && (e.stopPropagation(), e.preventDefault(), O(e));
- } : void 0, { longPressProps: N } = cD({
+ } : void 0, { longPressProps: N } = uD({
isDisabled: !w,
onLongPress(e) {
e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));
@@ -27473,7 +27473,7 @@ function TO(e) {
}), te = (e) => {
C.current === "touch" && T.current && e.preventDefault();
}, P = d !== "none" && n.isLink(r) ? (e) => {
- rC.isOpening || e.preventDefault();
+ aC.isOpening || e.preventDefault();
} : void 0, ne = K(m, v || b || o && !c ? j : {}, w ? N : {}, {
onDoubleClick: ee,
onDragStartCapture: te,
@@ -27486,7 +27486,7 @@ function TO(e) {
if (e != null) return e !== A;
t = t.parentElement;
}
- return zS(e);
+ return VS(e);
}, I = ne.onPointerDown;
ne.onPointerDown = (e) => {
let t = G(e);
@@ -27506,14 +27506,14 @@ function TO(e) {
hasAction: S
};
}
-function EO(e) {
+function OO(e) {
return e === "Enter";
}
-function DO(e) {
+function kO(e) {
return e === " ";
}
// node_modules/react-aria/dist/private/gridlist/useGridListItem.mjs
-var OO = {
+var AO = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -27523,18 +27523,18 @@ var OO = {
rtl: "ArrowRight"
}
};
-function Pse(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a = "row", allowsArrowNavigation: o } = e, { direction: s } = Lw(), { onAction: c, linkBehavior: l, keyboardNavigationBehavior: u, shouldSelectOnPressUp: d } = LD.get(t), f = HC(), p = (0, F.useRef)(null), m = () => {
+function Mse(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a = "row", allowsArrowNavigation: o } = e, { direction: s } = zw(), { onAction: c, linkBehavior: l, keyboardNavigationBehavior: u, shouldSelectOnPressUp: d } = zD.get(t), f = WC(), p = (0, F.useRef)(null), m = () => {
if (n.current !== null) {
if (a === "child") {
- if (FS(n.current) && n.current !== NS(TS(n.current))) return;
- let e = DT(n.current, { tabbable: !0 }).firstChild();
+ if (LS(n.current) && n.current !== FS(DS(n.current))) return;
+ let e = kT(n.current, { tabbable: !0 }).firstChild();
if (e) {
- IC(e), RT(e, { containingElement: FT(e) });
+ RC(e), BT(e, { containingElement: LT(e) });
return;
}
}
- (p.current != null && r.key !== p.current || !FS(n.current)) && IC(n.current);
+ (p.current != null && r.key !== p.current || !LS(n.current)) && RC(n.current);
}
}, h = {}, g = e.hasChildItems, _ = t.selectionManager.isLink(r.key);
if (r != null && "expandedKeys" in t) {
@@ -27544,7 +27544,7 @@ function Pse(e, t, n) {
if (r.level >= 0 && r?.parentKey != null) {
let e = t.collection.getItem(r.parentKey);
if (e) {
- let n = Fse(e, t.collection);
+ let n = Nse(e, t.collection);
i = [...n].filter((e) => e.type === "item").length, a > 0 && n[0].type !== "item" && --a;
}
} else i = [...t.collection].filter((e) => e.level === 0 && e.type === "item").length;
@@ -27555,75 +27555,75 @@ function Pse(e, t, n) {
"aria-setsize": i
};
}
- let { itemProps: v, ...y } = TO({
+ let { itemProps: v, ...y } = DO({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: e.shouldSelectOnPressUp || d,
- onAction: c || r.props?.onAction ? LC(r.props?.onAction, c ? () => c(r.key) : void 0) : void 0,
+ onAction: c || r.props?.onAction ? zC(r.props?.onAction, c ? () => c(r.key) : void 0) : void 0,
focus: m,
linkBehavior: l
}), b = (e) => {
- let i = NS(TS(n.current));
- if (!MS(e.currentTarget, G(e)) || !n.current || !i) return;
- let a = DT(n.current);
- if (a.currentNode = i, !kO(e, t, r, g, s, i, n.current, o)) switch (e.key) {
+ let i = FS(DS(n.current));
+ if (!PS(e.currentTarget, G(e)) || !n.current || !i) return;
+ let a = kT(n.current);
+ if (a.currentNode = i, !jO(e, t, r, g, s, i, n.current, o)) switch (e.key) {
case "ArrowLeft":
if (u === "arrow") {
let t = s === "rtl" ? a.nextNode() : a.previousNode();
- if (t) e.preventDefault(), e.stopPropagation(), IC(t), RT(t, { containingElement: FT(n.current) });
- else if (e.preventDefault(), e.stopPropagation(), s === "rtl") IC(n.current), RT(n.current, { containingElement: FT(n.current) });
+ if (t) e.preventDefault(), e.stopPropagation(), RC(t), BT(t, { containingElement: LT(n.current) });
+ else if (e.preventDefault(), e.stopPropagation(), s === "rtl") RC(n.current), BT(n.current, { containingElement: LT(n.current) });
else {
a.currentNode = n.current;
- let e = AO(a);
- e && (IC(e), RT(e, { containingElement: FT(n.current) }));
+ let e = MO(a);
+ e && (RC(e), BT(e, { containingElement: LT(n.current) }));
}
}
break;
case "ArrowRight":
if (u === "arrow") {
let t = s === "rtl" ? a.previousNode() : a.nextNode();
- if (t) e.preventDefault(), e.stopPropagation(), IC(t), RT(t, { containingElement: FT(n.current) });
- else if (e.preventDefault(), e.stopPropagation(), s === "ltr") IC(n.current), RT(n.current, { containingElement: FT(n.current) });
+ if (t) e.preventDefault(), e.stopPropagation(), RC(t), BT(t, { containingElement: LT(n.current) });
+ else if (e.preventDefault(), e.stopPropagation(), s === "ltr") RC(n.current), BT(n.current, { containingElement: LT(n.current) });
else {
a.currentNode = n.current;
- let e = AO(a);
- e && (IC(e), RT(e, { containingElement: FT(n.current) }));
+ let e = MO(a);
+ e && (RC(e), BT(e, { containingElement: LT(n.current) }));
}
}
break;
case "ArrowUp":
- case "ArrowDown": !e.altKey && MS(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
+ case "ArrowDown": !e.altKey && PS(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
}
}, x = (e) => {
- p.current = r.key, G(e) === n.current ? a === "child" && e.relatedTarget && MS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
- a === "child" && NS(TS(n.current)) === n.current && m();
- }) : wC() || t.selectionManager.setFocusedKey(r.key);
+ p.current = r.key, G(e) === n.current ? a === "child" && e.relatedTarget && PS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
+ a === "child" && FS(DS(n.current)) === n.current && m();
+ }) : EC() || t.selectionManager.setFocusedKey(r.key);
}, S = (e) => {
- let i = NS(TS(n.current));
- if (MS(e.currentTarget, G(e)) && n.current && i) {
+ let i = FS(DS(n.current));
+ if (PS(e.currentTarget, G(e)) && n.current && i) {
if (u === "tab") {
if (G(e) !== n.current && e.key !== "Tab") {
e.stopPropagation();
return;
}
- if (kO(e, t, r, g, s, i, n.current, o)) return;
+ if (jO(e, t, r, g, s, i, n.current, o)) return;
}
if (e.key === "Tab" && u === "tab") {
- let t = DT(n.current, { tabbable: !0 });
+ let t = kT(n.current, { tabbable: !0 });
t.currentNode = i, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
- }, C = iC(r.props), w = K(v, y.hasAction ? C : {}, {
+ }, C = oC(r.props), w = K(v, y.hasAction ? C : {}, {
role: "row",
onKeyDownCapture: u === "arrow" || o ? b : void 0,
onFocus: x,
"aria-label": r["aria-label"] || r.textValue || void 0,
"aria-selected": t.selectionManager.canSelectItem(r.key) ? t.selectionManager.isSelected(r.key) : void 0,
"aria-disabled": t.selectionManager.isDisabled(r.key) || void 0,
- "aria-labelledby": f && (r["aria-label"] || r.textValue) ? `${RD(t, r.key)} ${f}` : void 0,
- id: RD(t, r.key)
+ "aria-labelledby": f && (r["aria-label"] || r.textValue) ? `${BD(t, r.key)} ${f}` : void 0,
+ id: BD(t, r.key)
});
a === "child" && o && u === "tab" && (w.tabIndex = -1);
let T = w.onKeyDown;
@@ -27644,66 +27644,66 @@ function Pse(e, t, n) {
...y
};
}
-function kO(e, t, n, r, i, a, o, s) {
+function jO(e, t, n, r, i, a, o, s) {
if (!("expandedKeys" in t) || !s && a !== o) return !1;
- if (e.key === OO.expand[i] && t.selectionManager.focusedKey === n.key && r && !t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
- if (e.key === OO.collapse[i] && t.selectionManager.focusedKey === n.key) {
+ if (e.key === AO.expand[i] && t.selectionManager.focusedKey === n.key && r && !t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
+ if (e.key === AO.collapse[i] && t.selectionManager.focusedKey === n.key) {
if (r && t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
if (!t.expandedKeys.has(n.key) && n.parentKey && t.collection.getItem(n.parentKey)?.type === "item") return t.selectionManager.setFocusedKey(n.parentKey), e.stopPropagation(), !0;
}
return !1;
}
-function AO(e) {
+function MO(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
while (n);
return t;
}
-function Fse(e, t) {
+function Nse(e, t) {
let n = t.getChildren?.(e.key), r = n ? Array.from(n) : [], i = r.length > 0 ? r[0] : null, a = [];
for (; i;) a.push(i), i = i.nextKey == null ? null : t.getItem(i.nextKey);
return a;
}
// node_modules/react-aria/dist/private/grid/useGridSelectionCheckbox.mjs
-function Ise(e) {
+function Pse(e) {
return e && e.__esModule ? e.default : e;
}
-function jO(e, t) {
- let { key: n } = e, r = t.selectionManager, i = VC(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
+function NO(e, t) {
+ let { key: n } = e, r = t.selectionManager, i = UC(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
return { checkboxProps: {
id: i,
- "aria-label": Uw(Ise(yO), "@react-aria/grid").format("select"),
+ "aria-label": Gw(Pse(xO), "@react-aria/grid").format("select"),
isSelected: o,
isDisabled: a,
onChange: () => r.toggleSelection(n)
} };
}
// node_modules/react-aria/dist/private/gridlist/useGridListSelectionCheckbox.mjs
-function Lse(e, t) {
- let { key: n } = e, { checkboxProps: r } = jO(e, t);
+function Fse(e, t) {
+ let { key: n } = e, { checkboxProps: r } = NO(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${RD(t, n)}`
+ "aria-labelledby": `${r.id} ${BD(t, n)}`
} };
}
// node_modules/react-aria/dist/private/listbox/useListBox.mjs
-function Rse(e, t, n) {
- let r = Gw(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
+function Ise(e, t, n) {
+ let r = qw(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
i === "toggle" && o === "action" && (o = "override");
- let { listProps: s } = wO({
+ let { listProps: s } = EO({
...e,
ref: n,
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
linkBehavior: o
- }), { focusWithinProps: c } = nE({
+ }), { focusWithinProps: c } = iE({
onFocusWithin: e.onFocus,
onBlurWithin: e.onBlur,
onFocusWithinChange: e.onFocusChange
- }), l = VC(e.id);
- xE.set(t, {
+ }), l = UC(e.id);
+ CE.set(t, {
id: l,
shouldUseVirtualFocus: e.shouldUseVirtualFocus,
shouldSelectOnPressUp: e.shouldSelectOnPressUp,
@@ -27713,7 +27713,7 @@ function Rse(e, t, n) {
linkBehavior: o,
UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior
});
- let { labelProps: u, fieldProps: d } = eE({
+ let { labelProps: u, fieldProps: d } = nE({
...e,
id: l,
labelElementType: "span"
@@ -27728,8 +27728,8 @@ function Rse(e, t, n) {
};
}
// node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
-function zse(e) {
- let { heading: t, "aria-label": n } = e, r = VC();
+function Lse(e) {
+ let { heading: t, "aria-label": n } = e, r = UC();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -27747,8 +27747,8 @@ function zse(e) {
};
}
// node_modules/react-aria/dist/private/listbox/useOption.mjs
-function Bse(e, t, n) {
- let { key: r } = e, i = xE.get(t), a = e.isDisabled ?? t.selectionManager.isDisabled(r), o = e.isSelected ?? t.selectionManager.isSelected(r), s = e.shouldSelectOnPressUp ?? i?.shouldSelectOnPressUp, c = e.shouldFocusOnHover ?? i?.shouldFocusOnHover, l = e.shouldUseVirtualFocus ?? i?.shouldUseVirtualFocus, u = e.isVirtualized ?? i?.isVirtualized, d = HC(), f = HC(), p = {
+function Rse(e, t, n) {
+ let { key: r } = e, i = CE.get(t), a = e.isDisabled ?? t.selectionManager.isDisabled(r), o = e.isSelected ?? t.selectionManager.isSelected(r), s = e.shouldSelectOnPressUp ?? i?.shouldSelectOnPressUp, c = e.shouldFocusOnHover ?? i?.shouldFocusOnHover, l = e.shouldUseVirtualFocus ?? i?.shouldUseVirtualFocus, u = e.isVirtualized ?? i?.isVirtualized, d = WC(), f = WC(), p = {
role: "option",
"aria-disabled": a || void 0,
"aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,
@@ -27758,9 +27758,9 @@ function Bse(e, t, n) {
}, m = t.collection.getItem(r);
if (u) {
let e = Number(m?.index);
- p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = SD(t.collection);
+ p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = wD(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = mse(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = TO({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = fse(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = DO({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -27769,18 +27769,18 @@ function Bse(e, t, n) {
isVirtualized: u,
shouldUseVirtualFocus: l,
isDisabled: a,
- onAction: h || m?.props?.onAction ? LC(m?.props?.onAction, h) : void 0,
+ onAction: h || m?.props?.onAction ? zC(m?.props?.onAction, h) : void 0,
linkBehavior: i?.linkBehavior,
UNSTABLE_itemBehavior: i?.UNSTABLE_itemBehavior,
id: g
- }), { hoverProps: S } = FD({
+ }), { hoverProps: S } = LD({
isDisabled: a || !c,
onHoverStart() {
- wC() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
+ EC() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
}
- }), C = Gw(m?.props);
+ }), C = qw(m?.props);
delete C.id;
- let w = aC(m?.props);
+ let w = sC(m?.props);
return {
optionProps: {
...p,
@@ -27790,7 +27790,7 @@ function Bse(e, t, n) {
labelProps: { id: d },
descriptionProps: { id: f },
isFocused: y,
- isFocusVisible: y && t.selectionManager.isFocused && wC(),
+ isFocusVisible: y && t.selectionManager.isFocused && EC(),
isSelected: o,
isDisabled: a,
isPressed: v,
@@ -27799,12 +27799,12 @@ function Bse(e, t, n) {
};
}
// node_modules/react-aria/dist/private/menu/utils.mjs
-var MO = /* @__PURE__ */ new WeakMap();
+var PO = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/menu/useMenu.mjs
-function Vse(e, t, n) {
+function zse(e, t, n) {
let { shouldFocusWrap: r = !0, onKeyDown: i, onKeyUp: a, ...o } = e;
!e["aria-label"] && e["aria-labelledby"];
- let s = Gw(e, { labelable: !0 }), { listProps: c } = wO({
+ let s = qw(e, { labelable: !0 }), { listProps: c } = EO({
...o,
ref: n,
selectionManager: t.selectionManager,
@@ -27813,7 +27813,7 @@ function Vse(e, t, n) {
shouldFocusWrap: r,
linkBehavior: "override"
});
- return MO.set(t, {
+ return PO.set(t, {
onClose: e.onClose,
onAction: e.onAction,
shouldUseVirtualFocus: e.shouldUseVirtualFocus
@@ -27829,15 +27829,15 @@ function Vse(e, t, n) {
}) };
}
// node_modules/react-aria/dist/private/menu/useMenuItem.mjs
-function Hse(e, t, n) {
- let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: S, selectionManager: C = t.selectionManager } = e, w = !!c, T = w && e["aria-expanded"] === "true", E = e.isDisabled ?? C.isDisabled(i), D = e.isSelected ?? C.isSelected(i), O = MO.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = nC(), M = () => {
+function Bse(e, t, n) {
+ let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: S, selectionManager: C = t.selectionManager } = e, w = !!c, T = w && e["aria-expanded"] === "true", E = e.isDisabled ?? C.isDisabled(i), D = e.isSelected ?? C.isSelected(i), O = PO.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = iC(), M = () => {
if (!w && (k?.props?.onAction ? k.props.onAction() : e.onAction && e.onAction(i), O.onAction)) {
let e = O.onAction;
e(i, k?.value);
}
}, ee = "menuitem";
w || (C.selectionMode === "single" ? ee = "menuitemradio" : C.selectionMode === "multiple" && (ee = "menuitemcheckbox"));
- let N = HC(), te = HC(), P = HC(), ne = {
+ let N = WC(), te = WC(), P = WC(), ne = {
id: r,
"aria-disabled": E || void 0,
role: ee,
@@ -27854,17 +27854,17 @@ function Hse(e, t, n) {
};
if (C.selectionMode !== "none" && !w && (ne["aria-checked"] = D), s) {
let e = Number(k?.index);
- ne["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, ne["aria-setsize"] = SD(t.collection);
+ ne["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, ne["aria-setsize"] = wD(t.collection);
}
let re = (0, F.useRef)(!1), I = (e) => {
f?.(e), re.current = e;
}, ie = (0, F.useRef)(null), ae = (e) => {
e.pointerType !== "keyboard" && (ie.current = { pointerType: e.pointerType }), e.pointerType === "mouse" && (re.current || e.target.click()), u?.(e);
}, oe = (e) => {
- m?.(e), M(), bae(e, j, k.props.href, k?.props.routerOptions);
+ m?.(e), M(), vae(e, j, k.props.href, k?.props.routerOptions);
let t = ie.current?.pointerType === "keyboard" ? ie.current?.key === "Enter" || C.selectionMode === "none" || C.isLink(i) : C.selectionMode !== "multiple" || C.isLink(i);
t = o ?? a ?? t, A && !w && t && A(), ie.current = null;
- }, { itemProps: se, isFocused: ce } = TO({
+ }, { itemProps: se, isFocused: ce } = DO({
id: r,
selectionManager: C,
key: i,
@@ -27873,27 +27873,27 @@ function Hse(e, t, n) {
allowsDifferentPressOrigin: !0,
linkBehavior: "none",
shouldUseVirtualFocus: O.shouldUseVirtualFocus
- }), { pressProps: le, isPressed: ue } = aT({
+ }), { pressProps: le, isPressed: ue } = sT({
onPressStart: l,
onPress: d,
onPressUp: ae,
onPressChange: I,
onPressEnd: p,
isDisabled: E
- }), { hoverProps: de } = FD({
+ }), { hoverProps: de } = LD({
isDisabled: E,
onHoverStart(e) {
- !wC() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
+ !EC() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
},
onHoverChange: g,
onHoverEnd: _
- }), { keyboardProps: fe } = ZC({
+ }), { keyboardProps: fe } = $C({
shortcuts: {
" ": (e) => {
ie.current = {
pointerType: "keyboard",
key: " "
- }, G(e).click(), EC("keyboard");
+ }, G(e).click(), OC("keyboard");
},
Enter: (e) => {
ie.current = {
@@ -27901,8 +27901,8 @@ function Hse(e, t, n) {
key: "Enter"
};
let t = G(e);
- if (t.tagName !== "A") t.click(), EC("keyboard");
- else return EC("keyboard"), {
+ if (t.tagName !== "A") t.click(), OC("keyboard");
+ else return OC("keyboard"), {
shouldPreventDefault: !1,
shouldContinuePropagation: !1
};
@@ -27910,13 +27910,13 @@ function Hse(e, t, n) {
},
onKeyDown: v,
onKeyUp: y
- }), { focusableProps: pe } = tw({
+ }), { focusableProps: pe } = rw({
onBlur: S,
onFocus: b,
onFocusChange: x
- }, n), me = Gw(k?.props);
+ }, n), me = qw(k?.props);
delete me.id;
- let he = aC(k?.props);
+ let he = sC(k?.props);
return {
menuItemProps: {
...ne,
@@ -27931,15 +27931,15 @@ function Hse(e, t, n) {
descriptionProps: { id: te },
keyboardShortcutProps: { id: P },
isFocused: ce,
- isFocusVisible: ce && C.isFocused && wC() && !T,
+ isFocusVisible: ce && C.isFocused && EC() && !T,
isSelected: D,
isPressed: ue,
isDisabled: E
};
}
// node_modules/react-aria/dist/private/menu/useMenuSection.mjs
-function Use(e) {
- let { heading: t, "aria-label": n } = e, r = VC();
+function Vse(e) {
+ let { heading: t, "aria-label": n } = e, r = UC();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -27954,15 +27954,15 @@ function Use(e) {
};
}
// node_modules/react-aria/dist/private/utils/useResizeObserver.mjs
-function Wse() {
+function Hse() {
return window.ResizeObserver !== void 0;
}
-function NO(e) {
- let { ref: t, box: n, onResize: r } = e, i = kw(r);
+function FO(e) {
+ let { ref: t, box: n, onResize: r } = e, i = jw(r);
(0, F.useEffect)(() => {
let e = t?.current;
if (e) {
- if (Wse()) {
+ if (Hse()) {
let t = new window.ResizeObserver((e) => {
e.length && i();
});
@@ -27977,154 +27977,154 @@ function NO(e) {
}, [t, n]);
}
// node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var PO = {};
-PO = { dismiss: "تجاهل" };
+var IO = {};
+IO = { dismiss: "تجاهل" };
// node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var FO = {};
-FO = { dismiss: "Отхвърляне" };
+var LO = {};
+LO = { dismiss: "Отхвърляне" };
// node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var IO = {};
-IO = { dismiss: "Odstranit" };
+var RO = {};
+RO = { dismiss: "Odstranit" };
// node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var LO = {};
-LO = { dismiss: "Luk" };
+var zO = {};
+zO = { dismiss: "Luk" };
// node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var RO = {};
-RO = { dismiss: "Schließen" };
+var BO = {};
+BO = { dismiss: "Schließen" };
// node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var zO = {};
-zO = { dismiss: "Απόρριψη" };
+var VO = {};
+VO = { dismiss: "Απόρριψη" };
// node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var BO = {};
-BO = { dismiss: "Dismiss" };
+var HO = {};
+HO = { dismiss: "Dismiss" };
// node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var VO = {};
-VO = { dismiss: "Descartar" };
+var UO = {};
+UO = { dismiss: "Descartar" };
// node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var HO = {};
-HO = { dismiss: "Lõpeta" };
+var WO = {};
+WO = { dismiss: "Lõpeta" };
// node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var UO = {};
-UO = { dismiss: "Hylkää" };
+var GO = {};
+GO = { dismiss: "Hylkää" };
// node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var WO = {};
-WO = { dismiss: "Rejeter" };
+var KO = {};
+KO = { dismiss: "Rejeter" };
// node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var GO = {};
-GO = { dismiss: "התעלם" };
+var qO = {};
+qO = { dismiss: "התעלם" };
// node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var KO = {};
-KO = { dismiss: "Odbaci" };
+var JO = {};
+JO = { dismiss: "Odbaci" };
// node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var qO = {};
-qO = { dismiss: "Elutasítás" };
+var YO = {};
+YO = { dismiss: "Elutasítás" };
// node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var JO = {};
-JO = { dismiss: "Ignora" };
+var XO = {};
+XO = { dismiss: "Ignora" };
// node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var YO = {};
-YO = { dismiss: "閉じる" };
+var ZO = {};
+ZO = { dismiss: "閉じる" };
// node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var XO = {};
-XO = { dismiss: "무시" };
+var QO = {};
+QO = { dismiss: "무시" };
// node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var ZO = {};
-ZO = { dismiss: "Atmesti" };
+var $O = {};
+$O = { dismiss: "Atmesti" };
// node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var QO = {};
-QO = { dismiss: "Nerādīt" };
+var ek = {};
+ek = { dismiss: "Nerādīt" };
// node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var $O = {};
-$O = { dismiss: "Lukk" };
+var tk = {};
+tk = { dismiss: "Lukk" };
// node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var ek = {};
-ek = { dismiss: "Negeren" };
+var nk = {};
+nk = { dismiss: "Negeren" };
// node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var tk = {};
-tk = { dismiss: "Zignoruj" };
+var rk = {};
+rk = { dismiss: "Zignoruj" };
// node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var nk = {};
-nk = { dismiss: "Descartar" };
+var ik = {};
+ik = { dismiss: "Descartar" };
// node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var rk = {};
-rk = { dismiss: "Dispensar" };
+var ak = {};
+ak = { dismiss: "Dispensar" };
// node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var ik = {};
-ik = { dismiss: "Revocare" };
+var ok = {};
+ok = { dismiss: "Revocare" };
// node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var ak = {};
-ak = { dismiss: "Пропустить" };
+var sk = {};
+sk = { dismiss: "Пропустить" };
// node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var ok = {};
-ok = { dismiss: "Zrušiť" };
+var ck = {};
+ck = { dismiss: "Zrušiť" };
// node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var sk = {};
-sk = { dismiss: "Opusti" };
+var lk = {};
+lk = { dismiss: "Opusti" };
// node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var ck = {};
-ck = { dismiss: "Odbaci" };
+var uk = {};
+uk = { dismiss: "Odbaci" };
// node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var lk = {};
-lk = { dismiss: "Avvisa" };
+var dk = {};
+dk = { dismiss: "Avvisa" };
// node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var uk = {};
-uk = { dismiss: "Kapat" };
+var fk = {};
+fk = { dismiss: "Kapat" };
// node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var dk = {};
-dk = { dismiss: "Скасувати" };
+var pk = {};
+pk = { dismiss: "Скасувати" };
// node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var fk = {};
-fk = { dismiss: "取消" };
+var mk = {};
+mk = { dismiss: "取消" };
// node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var pk = {};
-pk = { dismiss: "關閉" };
+var hk = {};
+hk = { dismiss: "關閉" };
// node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var mk = {};
-mk = {
- "ar-AE": PO,
- "bg-BG": FO,
- "cs-CZ": IO,
- "da-DK": LO,
- "de-DE": RO,
- "el-GR": zO,
- "en-US": BO,
- "es-ES": VO,
- "et-EE": HO,
- "fi-FI": UO,
- "fr-FR": WO,
- "he-IL": GO,
- "hr-HR": KO,
- "hu-HU": qO,
- "it-IT": JO,
- "ja-JP": YO,
- "ko-KR": XO,
- "lt-LT": ZO,
- "lv-LV": QO,
- "nb-NO": $O,
- "nl-NL": ek,
- "pl-PL": tk,
- "pt-BR": nk,
- "pt-PT": rk,
- "ro-RO": ik,
- "ru-RU": ak,
- "sk-SK": ok,
- "sl-SI": sk,
- "sr-SP": ck,
- "sv-SE": lk,
- "tr-TR": uk,
- "uk-UA": dk,
- "zh-CN": fk,
- "zh-TW": pk
+var gk = {};
+gk = {
+ "ar-AE": IO,
+ "bg-BG": LO,
+ "cs-CZ": RO,
+ "da-DK": zO,
+ "de-DE": BO,
+ "el-GR": VO,
+ "en-US": HO,
+ "es-ES": UO,
+ "et-EE": WO,
+ "fi-FI": GO,
+ "fr-FR": KO,
+ "he-IL": qO,
+ "hr-HR": JO,
+ "hu-HU": YO,
+ "it-IT": XO,
+ "ja-JP": ZO,
+ "ko-KR": QO,
+ "lt-LT": $O,
+ "lv-LV": ek,
+ "nb-NO": tk,
+ "nl-NL": nk,
+ "pl-PL": rk,
+ "pt-BR": ik,
+ "pt-PT": ak,
+ "ro-RO": ok,
+ "ru-RU": sk,
+ "sk-SK": ck,
+ "sl-SI": lk,
+ "sr-SP": uk,
+ "sv-SE": dk,
+ "tr-TR": fk,
+ "uk-UA": pk,
+ "zh-CN": mk,
+ "zh-TW": hk
};
// node_modules/react-aria/dist/private/overlays/DismissButton.mjs
-function Gse(e) {
+function Use(e) {
return e && e.__esModule ? e.default : e;
}
-function hk(e) {
- let { onDismiss: t, ...n } = e, r = jw(n, Uw(Gse(mk), "@react-aria/overlays").format("dismiss")), i = () => {
+function _k(e) {
+ let { onDismiss: t, ...n } = e, r = Nw(n, Gw(Use(gk), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
- return /*#__PURE__*/ F.createElement(pE, null, /*#__PURE__*/ F.createElement("button", {
+ return /*#__PURE__*/ F.createElement(hE, null, /*#__PURE__*/ F.createElement("button", {
...r,
tabIndex: -1,
onClick: i,
@@ -28135,35 +28135,35 @@ function hk(e) {
}));
}
// node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var gk = [];
-function _k(e, t) {
+var vk = [];
+function yk(e, t) {
let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, F.useRef)(void 0);
(0, F.useEffect)(() => {
- if (i && !gk.includes(t)) return gk.push(t), () => {
- let e = gk.indexOf(t);
- e >= 0 && gk.splice(e, 1);
+ if (i && !vk.includes(t)) return vk.push(t), () => {
+ let e = vk.indexOf(t);
+ e >= 0 && vk.splice(e, 1);
};
}, [i, t]);
let l = () => {
- gk[gk.length - 1] === t && n && n();
+ vk[vk.length - 1] === t && n && n();
}, u = (e) => {
- let n = gk[gk.length - 1];
+ let n = vk[vk.length - 1];
c.current = n, (!s || s(G(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(G(e))) && (gk[gk.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
- }, { keyboardProps: f } = ZC({ shortcuts: { Escape: () => {
+ (!s || s(G(e))) && (vk[vk.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ }, { keyboardProps: f } = $C({ shortcuts: { Escape: () => {
if (!o) l();
else return !1;
} } });
- kse({
+ Dse({
ref: t,
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
});
- let { focusWithinProps: p } = nE({
+ let { focusWithinProps: p } = iE({
isDisabled: !r,
onBlurWithin: (e) => {
- e.relatedTarget && !Voe(e.relatedTarget) && (!s || s(e.relatedTarget)) && n?.();
+ e.relatedTarget && !zoe(e.relatedTarget) && (!s || s(e.relatedTarget)) && n?.();
}
});
return {
@@ -28175,87 +28175,87 @@ function _k(e, t) {
};
}
// node_modules/react-aria/dist/private/utils/runAfterKeyboard.mjs
-var Kse = 200, qse = 50, Jse = 600, vk = /* @__PURE__ */ new WeakMap(), yk = /* @__PURE__ */ new Set(), bk = /* @__PURE__ */ new Set();
-function Yse(e, t) {
- let n = Ow();
- if (e !== n || t.aborted) for (let e of bk) e(n), bk.delete(e);
- if (!e && n && QS() && !t.aborted) window.clearInterval(vk.get(window)), vk.set(window, xk(Kse));
+var Wse = 200, Gse = 50, Kse = 600, bk = /* @__PURE__ */ new WeakMap(), xk = /* @__PURE__ */ new Set(), Sk = /* @__PURE__ */ new Set();
+function qse(e, t) {
+ let n = Aw();
+ if (e !== n || t.aborted) for (let e of Sk) e(n), Sk.delete(e);
+ if (!e && n && eC() && !t.aborted) window.clearInterval(bk.get(window)), bk.set(window, Ck(Wse));
else {
- if (e !== n || t.aborted) for (let e of yk) e(n), yk.delete(e);
- (bk.size + yk.size <= 0 || t.aborted) && (window.clearInterval(vk.get(window)), vk.delete(window));
+ if (e !== n || t.aborted) for (let e of xk) e(n), xk.delete(e);
+ (Sk.size + xk.size <= 0 || t.aborted) && (window.clearInterval(bk.get(window)), bk.delete(window));
}
}
-function xk(e = Jse) {
- return window.setInterval(Yse, qse, Ow(), AbortSignal.timeout(e));
+function Ck(e = Kse) {
+ return window.setInterval(qse, Gse, Aw(), AbortSignal.timeout(e));
}
-function Sk(e) {
- if (!Tw()) return e(!1), () => {};
+function wk(e) {
+ if (!Dw()) return e(!1), () => {};
let t = window.requestAnimationFrame(() => {
t = window.requestAnimationFrame(() => {
- let t = Ew(document.hasFocus() ? NS() : null);
- if (Ow() === t || Ow() && !t) return e(t);
- bk.add(e), vk.has(window) || vk.set(window, xk());
+ let t = Ow(document.hasFocus() ? FS() : null);
+ if (Aw() === t || Aw() && !t) return e(t);
+ Sk.add(e), bk.has(window) || bk.set(window, Ck());
});
});
return () => {
- window.cancelAnimationFrame(t), bk.delete(e);
+ window.cancelAnimationFrame(t), Sk.delete(e);
};
}
-function Xse(e) {
- if (!Tw()) return e(!1), () => {};
+function Jse(e) {
+ if (!Dw()) return e(!1), () => {};
let t = window.requestAnimationFrame(() => {
t = window.requestAnimationFrame(() => {
- let t = Ew(document.hasFocus() ? NS() : null);
- if (Ow() === t) return e(t);
- yk.add(e), vk.has(window) || vk.set(window, xk());
+ let t = Ow(document.hasFocus() ? FS() : null);
+ if (Aw() === t) return e(t);
+ xk.add(e), bk.has(window) || bk.set(window, Ck());
});
});
return () => {
- window.cancelAnimationFrame(t), yk.delete(e);
+ window.cancelAnimationFrame(t), xk.delete(e);
};
}
// node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var Ck = typeof document < "u" && window.visualViewport, wk = 0, Tk;
-function Ek(e = {}) {
+var Tk = typeof document < "u" && window.visualViewport, Ek = 0, Dk;
+function Ok(e = {}) {
let { isDisabled: t, UNSTABLE_overrideFocus: n } = e;
- VS(() => {
- if (!t) return wk++, wk === 1 && (Tk = ZS() && QS() ? Qse() : Zse(n)), () => {
- wk--, wk === 0 && Tk();
+ US(() => {
+ if (!t) return Ek++, Ek === 1 && (Dk = $S() && eC() ? Xse() : Yse(n)), () => {
+ Ek--, Ek === 0 && Dk();
};
}, [t, n]);
}
-function Zse(e) {
+function Yse(e) {
let t = window.innerWidth - document.documentElement.clientWidth;
- return LC(t > 0 && ("scrollbarGutter" in document.documentElement.style ? AS(document.documentElement, "scrollbar-gutter", "stable") : AS(document.documentElement, "padding-right", `${t}px`)), AS(document.documentElement, "overflow", "hidden"), e && Ok(), e && Tw() && Dk());
+ return zC(t > 0 && ("scrollbarGutter" in document.documentElement.style ? MS(document.documentElement, "scrollbar-gutter", "stable") : MS(document.documentElement, "padding-right", `${t}px`)), MS(document.documentElement, "overflow", "hidden"), e && Ak(), e && Dw() && kk());
}
-function Qse() {
- let e = AS(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
+function Xse() {
+ let e = MS(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
let r = G(e);
- t = PT(r, !0) ? r : FT(r, !0), n = !1;
+ t = IT(r, !0) ? r : LT(r, !0), n = !1;
let i = r.ownerDocument.defaultView.getSelection();
i && !i.isCollapsed && i.containsNode(r, !0) && (n = !0), e.composedPath().some((e) => e instanceof HTMLInputElement && e.type === "range") && (n = !0), "selectionStart" in r && "selectionEnd" in r && r.selectionStart < r.selectionEnd && r.ownerDocument.activeElement === r && (n = !0);
- }, i = document.createElement("style"), a = Qw();
+ }, i = document.createElement("style"), a = eT();
a && (i.nonce = a), i.textContent = "@layer {\n * {\n overscroll-behavior: contain;\n }\n}", document.head.prepend(i);
let o = (e) => {
e.touches.length === 2 || n || (!t || t === document.documentElement || t === document.body || t.scrollHeight === t.clientHeight && t.scrollWidth === t.clientWidth) && e.preventDefault();
- }, s = Ok(), c = LC(kS(document, "touchstart", r, {
+ }, s = Ak(), c = zC(jS(document, "touchstart", r, {
passive: !1,
capture: !0
- }), kS(document, "touchmove", o, {
+ }), jS(document, "touchmove", o, {
passive: !1,
capture: !0
- }), Dk());
+ }), kk());
return () => {
e(), c(), i.remove(), s();
};
}
-function Dk() {
- return kS(document, "blur", (e) => {
+function kk() {
+ return jS(document, "blur", (e) => {
let t = G(e), n = e.relatedTarget;
- n && Ew(n) ? n.focus() : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+ n && Ow(n) ? n.focus() : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
}, !0);
}
-function Ok() {
+function Ak() {
let e = HTMLElement.prototype.focus;
return Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -28266,9 +28266,9 @@ function Ok() {
preventScroll: !0
}), !t || !t.preventScroll) {
let e = () => {
- NS() === this && $se(this);
+ FS() === this && Zse(this);
};
- Sk((t) => t ? e() : Xse(() => e()));
+ wk((t) => t ? e() : Jse(() => e()));
}
}
}), () => {
@@ -28279,15 +28279,15 @@ function Ok() {
});
};
}
-function $se(e) {
+function Zse(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t && n.isConnected;) {
- let e = FT(n);
+ let e = LT(n);
if (e !== document.documentElement && e !== document.body && e !== n) {
let t = e.getBoundingClientRect(), r = n.getBoundingClientRect();
if (r.top < t.top || r.bottom > t.top + n.clientHeight) {
let n = t.bottom;
- Ck && (n = Math.min(n, Ck.offsetTop + Ck.height));
+ Tk && (n = Math.min(n, Tk.offsetTop + Tk.height));
let i = r.top - t.top - ((n - t.top) / 2 - r.height / 2);
e.scrollTo({
top: Math.max(0, Math.min(e.scrollHeight - e.clientHeight, e.scrollTop + i)),
@@ -28299,19 +28299,19 @@ function $se(e) {
}
}
// node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
-function ece(e, t, n) {
- let { overlayProps: r, underlayProps: i } = _k({
+function Qse(e, t, n) {
+ let { overlayProps: r, underlayProps: i } = yk({
...e,
isOpen: t.isOpen,
onClose: t.close
}, n);
- Ek({
+ Ok({
isDisabled: !t.isOpen,
UNSTABLE_overrideFocus: e.UNSTABLE_overrideFocus
- }), AD();
+ }), MD();
let { isEntering: a } = e;
return (0, F.useEffect)(() => {
- if (t.isOpen && n.current) return a ? bE(n.current) : yE([n.current], { shouldUseInert: !0 });
+ if (t.isOpen && n.current) return a ? SE(n.current) : xE([n.current], { shouldUseInert: !0 });
}, [
t.isOpen,
a,
@@ -28322,33 +28322,33 @@ function ece(e, t, n) {
};
}
// node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var kk = {
+var jk = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, Ak = {
+}, Mk = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
-}, tce = {
+}, $se = {
top: "left",
left: "top"
-}, jk = {
+}, Nk = {
top: "height",
left: "width"
-}, Mk = {
+}, Pk = {
width: "totalWidth",
height: "totalHeight"
-}, Nk = {}, nce = () => typeof document < "u" ? window.visualViewport : null;
-function Pk(e, t) {
+}, Fk = {}, ece = () => typeof document < "u" ? window.visualViewport : null;
+function Ik(e, t) {
let n = 0, r = 0, i = 0, a = 0, o = 0, s = 0, c = {}, l = (t?.scale ?? 1) > 1;
if (e.tagName === "BODY" || e.tagName === "HTML") {
let l = document.documentElement;
i = l.clientWidth, a = l.clientHeight, n = t?.width ?? i, r = t?.height ?? a, c.top = l.scrollTop || e.scrollTop, c.left = l.scrollLeft || e.scrollLeft, t && (o = Math.max(0, t.pageTop - (c.top ?? 0)), s = Math.max(0, t.pageLeft - (c.left ?? 0)));
- } else ({width: n, height: r, top: o, left: s} = Bk(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
- return QS() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
+ } else ({width: n, height: r, top: o, left: s} = Hk(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ return eC() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
width: n,
height: r,
totalWidth: i,
@@ -28358,7 +28358,7 @@ function Pk(e, t) {
left: s
};
}
-function rce(e) {
+function tce(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -28366,11 +28366,11 @@ function rce(e) {
height: e.scrollHeight
};
}
-function Fk(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[jk[e]], l = o[e] + r.scroll[kk[e]] + a, u = o[e] + r.scroll[kk[e]] + c - a, d = t - s + r.scroll[kk[e]] + o[e] - r[kk[e]], f = t - s + n + r.scroll[kk[e]] + o[e] - r[kk[e]];
+function Lk(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[Nk[e]], l = o[e] + r.scroll[jk[e]] + a, u = o[e] + r.scroll[jk[e]] + c - a, d = t - s + r.scroll[jk[e]] + o[e] - r[jk[e]], f = t - s + n + r.scroll[jk[e]] + o[e] - r[jk[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
-function ice(e) {
+function nce(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -28379,55 +28379,55 @@ function ice(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function Ik(e) {
- if (Nk[e]) return Nk[e];
- let [t, n] = e.split(" "), r = kk[t] || "right", i = tce[r];
- kk[n] || (n = "center");
- let a = jk[r], o = jk[i];
- return Nk[e] = {
+function Rk(e) {
+ if (Fk[e]) return Fk[e];
+ let [t, n] = e.split(" "), r = jk[t] || "right", i = $se[r];
+ jk[n] || (n = "center");
+ let a = Nk[r], o = Nk[i];
+ return Fk[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, Nk[e];
+ }, Fk[e];
}
-function Lk(e, t, n, r, i, a, o, s, c, l, u) {
+function zk(e, t, n, r, i, a, o, s, c, l, u) {
let { placement: d, crossPlacement: f, axis: p, crossAxis: m, size: h, crossSize: g } = r, _ = {};
_[m] = e[m] ?? 0, f === "center" ? _[m] += ((e[g] ?? 0) - (n[g] ?? 0)) / 2 : f !== m && (_[m] += (e[g] ?? 0) - (n[g] ?? 0)), _[m] += a;
let v = e[m] - n[g] + c + l, y = e[m] + e[g] - c - l;
- if (_[m] = aE(_[m], v, y), d === p) {
- let t = s ? u[h] : u[Mk[h]];
- _[Ak[p]] = Math.floor(t - e[p] + i);
+ if (_[m] = sE(_[m], v, y), d === p) {
+ let t = s ? u[h] : u[Pk[h]];
+ _[Mk[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
-function ace(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[Mk.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+function rce(e, t, n, r, i, a, o, s, c, l, u) {
+ let d = (e.top == null ? c[Pk.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
top: Math.max(t.top + f, (u?.offsetTop ?? t.top) + f),
bottom: Math.min(t.top + t.height + f, (u?.offsetTop ?? 0) + (u?.height ?? 0))
};
return s === "top" ? Math.max(0, d + o - p.top - ((i.top ?? 0) + (i.bottom ?? 0) + a)) : Math.max(0, p.bottom - d - ((i.top ?? 0) + (i.bottom ?? 0) + a));
}
-function Rk(e, t, n, r, i, a, o, s) {
+function Bk(e, t, n, r, i, a, o, s) {
let { placement: c, axis: l, size: u } = a;
- return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[Ak[l]] - i) : Math.max(0, e[u] + e[l] + (s ? t[l] : 0) - n[l] - n[u] + (o.scroll[l] ?? 0) - (r[l] ?? 0) - r[Ak[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[Mk[l]] - i) : Math.max(0, e[u] + e[l] + (s ? t[l] : 0) - n[l] - n[u] + (o.scroll[l] ?? 0) - (r[l] ?? 0) - r[Mk[l]] - i);
}
-function oce(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = Ik(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = Lk(t, s, n, v, u, d, l, f, m, h, c), T = u, E = Rk(s, l, t, i, a + u, v, c, g);
+function ice(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
+ let v = Rk(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = zk(t, s, n, v, u, d, l, f, m, h, c), T = u, E = Bk(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = Ik(`${Ak[S]} ${C}`), r = Lk(t, s, n, e, u, d, l, f, m, h, c);
- Rk(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = Rk(`${Mk[S]} ${C}`), r = zk(t, s, n, e, u, d, l, f, m, h, c);
+ Bk(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
}
let D = "bottom";
v.axis === "top" ? v.placement === "top" ? D = "top" : v.placement === "bottom" && (D = "bottom") : v.crossAxis === "top" && (v.crossPlacement === "top" ? D = "bottom" : v.crossPlacement === "bottom" && (D = "top"));
- let O = Fk(b, w[b], n[x], s, c, a, l);
+ let O = Lk(b, w[b], n[x], s, c, a, l);
w[b] += O;
- let k = ace(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = Lk(t, s, n, v, T, d, l, f, m, h, c), O = Fk(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, j = t[b] - w[b] - i[kk[b]], M = j + .5 * t[x], ee = m / 2 + h, N = kk[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - N - m / 2 - h;
- A[b] = aE(aE(M, t[b] + m / 2 - (w[b] + i[kk[b]]), t[b] + t[x] - m / 2 - (w[b] + i[kk[b]])), ee, te), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
+ let k = rce(w, s, l, f, i, a, n.height, D, c, g, _);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = zk(t, s, n, v, T, d, l, f, m, h, c), O = Lk(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, j = t[b] - w[b] - i[jk[b]], M = j + .5 * t[x], ee = m / 2 + h, N = jk[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - N - m / 2 - h;
+ A[b] = sE(sE(M, t[b] + m / 2 - (w[b] + i[jk[b]]), t[b] + t[x] - m / 2 - (w[b] + i[jk[b]])), ee, te), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
let P = S === "left" || S === "top" ? n[y] : 0, ne = {
x: S === "top" || S === "bottom" ? j : P,
y: S === "left" || S === "right" ? j : P
@@ -28441,17 +28441,17 @@ function oce(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
triggerAnchorPoint: ne
};
}
-function sce(e) {
- let { placement: t, targetNode: n, overlayNode: r, scrollNode: i, padding: a, shouldFlip: o, boundaryElement: s, offset: c, crossOffset: l, maxHeight: u, arrowSize: d = 0, arrowBoundaryOffset: f = 0, targetRect: p } = e, m = nce(), h = r instanceof HTMLElement ? Hk(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Bk(n, !1, p) : Vk(n, h, !1, p);
+function ace(e) {
+ let { placement: t, targetNode: n, overlayNode: r, scrollNode: i, padding: a, shouldFlip: o, boundaryElement: s, offset: c, crossOffset: l, maxHeight: u, arrowSize: d = 0, arrowBoundaryOffset: f = 0, targetRect: p } = e, m = ece(), h = r instanceof HTMLElement ? oce(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Hk(n, !1, p) : Uk(n, h, !1, p);
if (!g) {
let { marginTop: e, marginLeft: t } = window.getComputedStyle(n);
y.top += parseInt(e, 10) || 0, y.left += parseInt(t, 10) || 0;
}
- let b = Bk(r, !0), x = ice(r);
+ let b = Hk(r, !0), x = nce(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = rce(i), C = Pk(s, m), w = Pk(h, m), T;
+ let S = tce(i), C = Ik(s, m), w = Ik(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = zk(h, !1);
+ let e = Vk(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -28463,11 +28463,11 @@ function sce(e) {
left: 0,
width: 0,
height: 0
- } : Vk(s, h, !1);
- let E = MS(s, h);
- return oce(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
+ } : Uk(s, h, !1);
+ let E = PS(s, h);
+ return ice(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function zk(e, t) {
+function Vk(e, t) {
let { top: n, left: r, width: i, height: a } = e.getBoundingClientRect();
return t && e instanceof e.ownerDocument.defaultView.HTMLElement && (i = e.offsetWidth, a = e.offsetHeight), {
top: n,
@@ -28476,8 +28476,8 @@ function zk(e, t) {
height: a
};
}
-function Bk(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || zk(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function Hk(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || Vk(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -28485,29 +28485,29 @@ function Bk(e, t, n) {
height: o
};
}
-function Vk(e, t, n, r) {
+function Uk(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || zk(e, n);
+ if (i.position === "fixed") a = r || Vk(e, n);
else {
- a = Bk(e, n, r);
- let i = Bk(t, n), o = window.getComputedStyle(t);
+ a = Hk(e, n, r);
+ let i = Hk(t, n), o = window.getComputedStyle(t);
i.top += (parseInt(o.borderTopWidth, 10) || 0) - t.scrollTop, i.left += (parseInt(o.borderLeftWidth, 10) || 0) - t.scrollLeft, a.top -= i.top, a.left -= i.left;
}
return a.top -= parseInt(i.marginTop, 10) || 0, a.left -= parseInt(i.marginLeft, 10) || 0, a;
}
-function Hk(e) {
+function oce(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !Uk(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !Uk(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !Wk(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !Wk(t);) t = t.parentElement;
return t || document.documentElement;
}
-function Uk(e) {
+function Wk(e) {
let t = window.getComputedStyle(e);
return t.transform !== "none" || /transform|perspective/.test(t.willChange) || t.filter !== "none" || t.contain === "paint" || "backdropFilter" in t && t.backdropFilter !== "none" || "WebkitBackdropFilter" in t && t.WebkitBackdropFilter !== "none";
}
// node_modules/react-aria/dist/private/overlays/useOverlayPosition.mjs
-var Wk = typeof document < "u" ? window.visualViewport : null;
-function cce(e) {
- let { direction: t } = Lw(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, F.useState)(null), x = [
+var Gk = typeof document < "u" ? window.visualViewport : null;
+function sce(e) {
+ let { direction: t } = zw(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, F.useState)(null), x = [
p,
s,
i.current,
@@ -28524,15 +28524,15 @@ function cce(e) {
g,
_,
n
- ], S = (0, F.useRef)(Wk?.scale);
+ ], S = (0, F.useRef)(Gk?.scale);
(0, F.useEffect)(() => {
- m && (S.current = Wk?.scale);
+ m && (S.current = Gk?.scale);
}, [m]);
let C = (0, F.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || Wk?.scale !== S.current) return;
+ if (p === !1 || !m || !i.current || !r.current || !u || Gk?.scale !== S.current) return;
let e = null;
- if (o.current && FS(o.current)) {
- let t = NS()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
+ if (o.current && LS(o.current)) {
+ let t = FS()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
e = {
type: "top",
offset: (t?.top ?? 0) - n.top
@@ -28540,8 +28540,8 @@ function cce(e) {
}
let h = i.current;
!g && i.current && (h.style.top = "0px", h.style.bottom = "", h.style.maxHeight = (window.visualViewport?.height ?? window.innerHeight) + "px");
- let y = sce({
- placement: uce(s, t),
+ let y = ace({
+ placement: cce(s, t),
overlayNode: i.current,
targetNode: r.current,
scrollNode: o.current || i.current,
@@ -28551,28 +28551,28 @@ function cce(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? zk(a.current, !0).width : 0),
+ arrowSize: n ?? (a?.current ? Vk(a.current, !0).width : 0),
arrowBoundaryOffset: _,
targetRect: v?.(r.current)
});
if (!y.position) return;
h.style.top = "", h.style.bottom = "", h.style.left = "", h.style.right = "", Object.keys(y.position).forEach((e) => h.style[e] = y.position[e] + "px"), h.style.maxHeight = y.maxHeight == null ? "" : y.maxHeight + "px";
- let x = NS();
+ let x = FS();
if (e && x && o.current) {
let t = x.getBoundingClientRect(), n = o.current.getBoundingClientRect(), r = t[e.type] - n[e.type];
o.current.scrollTop += r - e.offset;
}
b(y);
}, x);
- VS(C, x), lce(C), NO({
+ US(C, x), Kk(C), FO({
ref: i,
onResize: C
- }), NO({
+ }), FO({
ref: r,
onResize: C
});
let w = (0, F.useRef)(!1);
- VS(() => {
+ US(() => {
let e, t = () => {
w.current = !0, clearTimeout(e), e = setTimeout(() => {
w.current = !1;
@@ -28580,16 +28580,16 @@ function cce(e) {
}, n = () => {
w.current && t();
};
- Wk?.addEventListener("resize", t), Wk?.addEventListener("scroll", n);
- let r = kS(PS(window), "scroll", n);
+ Gk?.addEventListener("resize", t), Gk?.addEventListener("scroll", n);
+ let r = jS(IS(window), "scroll", n);
return () => {
- Wk?.removeEventListener("resize", t), Wk?.removeEventListener("scroll", n), r();
+ Gk?.removeEventListener("resize", t), Gk?.removeEventListener("scroll", n), r();
};
}, [C]);
let T = (0, F.useCallback)(() => {
w.current || h?.();
}, [h, w]);
- return yse({
+ return _se({
triggerRef: r,
isOpen: m,
onClose: h && T
@@ -28615,24 +28615,24 @@ function cce(e) {
updatePosition: C
};
}
-function lce(e) {
- VS(() => (window.addEventListener("resize", e, !1), () => {
+function Kk(e) {
+ US(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
-function uce(e, t) {
+function cce(e, t) {
return t === "rtl" ? e.replace("start", "right").replace("end", "left") : e.replace("start", "left").replace("end", "right");
}
// node_modules/react-aria/dist/private/overlays/usePopover.mjs
-function dce(e, t) {
- let { triggerRef: n, popoverRef: r, groupRef: i, isNonModal: a, isKeyboardDismissDisabled: o, shouldCloseOnInteractOutside: s, ...c } = e, l = c.trigger === "SubmenuTrigger", { overlayProps: u, underlayProps: d } = _k({
+function lce(e, t) {
+ let { triggerRef: n, popoverRef: r, groupRef: i, isNonModal: a, isKeyboardDismissDisabled: o, shouldCloseOnInteractOutside: s, ...c } = e, l = c.trigger === "SubmenuTrigger", { overlayProps: u, underlayProps: d } = yk({
isOpen: t.isOpen,
onClose: t.close,
shouldCloseOnBlur: !0,
isDismissable: !a || l,
isKeyboardDismissDisabled: o,
shouldCloseOnInteractOutside: s
- }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = cce({
+ }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = sce({
...c,
targetRef: n,
overlayRef: r,
@@ -28640,15 +28640,15 @@ function dce(e, t) {
onClose: a && !l ? t.close : null,
getTargetRect: c.getTargetRect ?? (t.point ? () => new DOMRect(t.point.x, t.point.y, 0, 0) : void 0)
});
- Ek({ isDisabled: a || !t.isOpen }), (0, F.useEffect)(() => {
- if (t.isOpen && r.current) return a ? bE(i?.current ?? r.current) : yE([i?.current ?? r.current], { shouldUseInert: !0 });
+ Ok({ isDisabled: a || !t.isOpen }), (0, F.useEffect)(() => {
+ if (t.isOpen && r.current) return a ? SE(i?.current ?? r.current) : xE([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
t.isOpen,
r,
i
]);
- let { focusWithinProps: g } = nE(e);
+ let { focusWithinProps: g } = iE(e);
return {
popoverProps: K(u, f, g),
arrowProps: p,
@@ -28658,12 +28658,12 @@ function dce(e, t) {
};
}
// node_modules/react-aria/dist/private/radio/utils.mjs
-var Gk = /* @__PURE__ */ new WeakMap();
+var qk = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/radio/useRadio.mjs
-function fce(e, t, n) {
+function uce(e, t, n) {
let { value: r, children: i, "aria-label": a, "aria-labelledby": o, onPressStart: s, onPressEnd: c, onPressChange: l, onPress: u, onPressUp: d, onClick: f } = e, p = e.isDisabled || t.isDisabled, m = t.selectedValue === r, h = (e) => {
e.stopPropagation(), t.setSelectedValue(r);
- }, { pressProps: g, isPressed: _ } = aT({
+ }, { pressProps: g, isPressed: _ } = sT({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -28671,7 +28671,7 @@ function fce(e, t, n) {
onPressUp: d,
onClick: f,
isDisabled: p
- }), { pressProps: v, isPressed: y } = aT({
+ }), { pressProps: v, isPressed: y } = sT({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -28681,11 +28681,11 @@ function fce(e, t, n) {
onPress(e) {
u?.(e), t.setSelectedValue(r), n.current?.focus();
}
- }), { focusableProps: b } = tw(K(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = K(g, b), S = Gw(e, { labelable: !0 }), C = -1;
+ }), { focusableProps: b } = rw(K(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = K(g, b), S = qw(e, { labelable: !0 }), C = -1;
t.selectedValue == null ? (t.lastFocusedValue === r || t.lastFocusedValue == null) && (C = 0) : t.selectedValue === r && (C = 0), p && (C = void 0);
- let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = Gk.get(t);
- VT(n, t.defaultSelectedValue, t.setSelectedValue), HT({ validationBehavior: O }, t, n);
- let k = UT();
+ let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = qk.get(t);
+ UT(n, t.defaultSelectedValue, t.setSelectedValue), WT({ validationBehavior: O }, t, n);
+ let k = GT();
return {
labelProps: K(v, (0, F.useMemo)(() => ({
onClick: (e) => e.preventDefault(),
@@ -28716,13 +28716,13 @@ function fce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function pce(e, t) {
- let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Lw(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = tE({
+function dce(e, t) {
+ let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = zw(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = rE({
...e,
labelElementType: "span",
isInvalid: t.isInvalid,
errorMessage: e.errorMessage || d
- }), _ = Gw(e, { labelable: !0 }), { focusWithinProps: v } = nE({
+ }), _ = qw(e, { labelable: !0 }), { focusWithinProps: v } = iE({
onBlurWithin(n) {
e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);
},
@@ -28730,13 +28730,13 @@ function pce(e, t) {
onFocusWithinChange: e.onFocusChange
});
function y(e, n) {
- let r = DT(n.currentTarget, {
+ let r = kT(n.currentTarget, {
from: G(n),
- accept: (e) => e instanceof ES(e).HTMLInputElement && e.type === "radio"
+ accept: (e) => e instanceof OS(e).HTMLInputElement && e.type === "radio"
}), i;
return e === "next" ? (i = r.nextNode(), i ||= (r.currentNode = n.currentTarget, r.firstChild())) : (i = r.previousNode(), i ||= (r.currentNode = n.currentTarget, r.lastChild())), i ? (i.focus(), t.setSelectedValue(i.value), !0) : !1;
}
- let { keyboardProps: b } = ZC({
+ let { keyboardProps: b } = $C({
shortcuts: {
ArrowRight: (e) => y(l === "rtl" && s !== "vertical" ? "prev" : "next", e),
ArrowLeft: (e) => y(l === "rtl" && s !== "vertical" ? "next" : "prev", e),
@@ -28744,8 +28744,8 @@ function pce(e, t) {
ArrowUp: (e) => y("prev", e)
},
allowRepeats: !0
- }), x = VC(n);
- return Gk.set(t, {
+ }), x = UC(n);
+ return qk.set(t, {
name: x,
form: r,
descriptionId: h.id,
@@ -28773,21 +28773,21 @@ function pce(e, t) {
};
}
// node_modules/react-aria/dist/private/select/useSelect.mjs
-var Kk = /* @__PURE__ */ new WeakMap();
-function qk(e, t, n) {
- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = wD({
+var Jk = /* @__PURE__ */ new WeakMap();
+function fce(e, t, n) {
+ let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = ED({
usage: "search",
sensitivity: "base"
- }), u = (0, F.useMemo)(() => r || new EE(t.collection, t.disabledKeys, n, l), [
+ }), u = (0, F.useMemo)(() => r || new OE(t.collection, t.disabledKeys, n, l), [
r,
t.collection,
t.disabledKeys,
l,
n
- ]), { menuTriggerProps: d, menuProps: f } = uD({
+ ]), { menuTriggerProps: d, menuProps: f } = fD({
isDisabled: i,
type: "listbox"
- }, t, n), { keyboardProps: p } = ZC({
+ }, t, n), { keyboardProps: p } = $C({
shortcuts: {
ArrowLeft: () => {
if (t.selectionManager.selectionMode === "multiple") return !1;
@@ -28803,21 +28803,21 @@ function qk(e, t, n) {
allowRepeats: !0,
onKeyDown: e.onKeyDown,
onKeyUp: e.onKeyUp
- }), { typeSelectProps: m } = fD({
+ }), { typeSelectProps: m } = mD({
keyboardDelegate: u,
selectionManager: t.selectionManager,
onTypeSelect(e) {
t.setSelectedKey(e);
}
- }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = tE({
+ }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = rE({
...e,
labelElementType: "span",
isInvalid: h,
errorMessage: e.errorMessage || g
});
t.selectionManager.selectionMode === "multiple" && (m = {});
- let S = Gw(e, { labelable: !0 }), C = K(m, d, y), w = VC();
- return Kk.set(t, {
+ let S = qw(e, { labelable: !0 }), C = K(m, d, y), w = UC();
+ return Jk.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -28827,13 +28827,13 @@ function qk(e, t, n) {
labelProps: {
...v,
onClick: () => {
- e.isDisabled || (n.current?.focus(), EC("keyboard"));
+ e.isDisabled || (n.current?.focus(), OC("keyboard"));
}
},
triggerProps: K(S, {
...C,
isDisabled: i,
- onKeyDown: LC(C.onKeyDown, p.onKeyDown),
+ onKeyDown: zC(C.onKeyDown, p.onKeyDown),
onKeyUp: p.onKeyUp,
"aria-labelledby": [
w,
@@ -28857,7 +28857,7 @@ function qk(e, t, n) {
disallowEmptySelection: !0,
linkBehavior: "selection",
onBlur: (n) => {
- MS(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
+ PS(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
},
"aria-labelledby": [y["aria-labelledby"], C["aria-label"] && !y["aria-labelledby"] ? C.id : null].filter(Boolean).join(" ")
},
@@ -28877,13 +28877,13 @@ function qk(e, t, n) {
};
}
// node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function mce(e, t, n) {
- let r = Kk.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = fE({ style: {
+function pce(e, t, n) {
+ let r = Jk.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = mE({ style: {
position: "fixed",
top: 0,
left: 0
} });
- VT(e.selectRef, t.defaultValue, t.setValue), HT({
+ UT(e.selectRef, t.defaultValue, t.setValue), WT({
validationBehavior: c,
focus: () => n.current?.focus()
}, t, e.selectRef);
@@ -28913,8 +28913,8 @@ function mce(e, t, n) {
}
};
}
-function hce(e) {
- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, F.useRef)(null), c = (0, F.useRef)(null), { containerProps: l, selectProps: u } = mce({
+function mce(e) {
+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, F.useRef)(null), c = (0, F.useRef)(null), { containerProps: l, selectProps: u } = pce({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
@@ -28938,7 +28938,7 @@ function hce(e) {
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = Kk.get(t) || {};
+ let { validationBehavior: e } = Jk.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -28968,8 +28968,8 @@ function hce(e) {
return null;
}
// node_modules/react-aria/dist/private/separator/useSeparator.mjs
-function gce(e) {
- let t = Gw(e, { labelable: !0 }), n;
+function hce(e) {
+ let t = qw(e, { labelable: !0 }), n;
return e.orientation === "vertical" && (n = "vertical"), e.elementType === "hr" ? { separatorProps: t } : { separatorProps: {
...t,
role: "separator",
@@ -28977,8 +28977,8 @@ function gce(e) {
} };
}
// node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function _ce(e, t, n) {
- let { labelProps: r, inputProps: i, isSelected: a, ...o } = QT(e, t, n);
+function gce(e, t, n) {
+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = eE(e, t, n);
return {
labelProps: r,
inputProps: {
@@ -28991,10 +28991,10 @@ function _ce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var Jk = class {
+var Yk = class {
constructor(e) {
if (this.collection = e.collection, this.disabledKeys = e.disabledKeys, this.disabledBehavior = e.disabledBehavior || "all", this.direction = e.direction, this.collator = e.collator, !e.layout && !e.ref) throw Error("Either a layout or a ref must be specified.");
- this.layoutDelegate = e.layoutDelegate || (e.layout ? new vce(e.layout) : new TE(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new _ce(e.layout) : new DE(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -29030,7 +29030,7 @@ var Jk = class {
let n = this.collection.getItem(e);
if (!n) return null;
let r = 0;
- for (let e of hD(n, this.collection)) {
+ for (let e of _D(n, this.collection)) {
if (e.colSpan && e.colSpan + r > t || (e.colSpan && (r = r + e.colSpan - 1), r === t)) return e.key ?? null;
r++;
}
@@ -29064,13 +29064,13 @@ var Jk = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = hD(t, this.collection);
- return (this.direction === "rtl" ? vD(e)?.key : gD(e)?.key) ?? null;
+ let e = _D(t, this.collection);
+ return (this.direction === "rtl" ? bD(e)?.key : vD(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = hD(n, this.collection), i = (this.direction === "rtl" ? _D(r, t.index - 1) : _D(r, t.index + 1)) ?? null;
+ let r = _D(n, this.collection), i = (this.direction === "rtl" ? yD(r, t.index - 1) : yD(r, t.index + 1)) ?? null;
return i ? i.key ?? null : this.focusMode === "row" ? t.parentKey ?? null : (this.direction === "rtl" ? this.getFirstKey(e) : this.getLastKey(e)) ?? null;
}
return null;
@@ -29079,13 +29079,13 @@ var Jk = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = hD(t, this.collection);
- return (this.direction === "rtl" ? gD(e)?.key : vD(e)?.key) ?? null;
+ let e = _D(t, this.collection);
+ return (this.direction === "rtl" ? vD(e)?.key : bD(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = hD(n, this.collection), i = (this.direction === "rtl" ? _D(r, t.index + 1) : _D(r, t.index - 1)) ?? null;
+ let r = _D(n, this.collection), i = (this.direction === "rtl" ? yD(r, t.index + 1) : yD(r, t.index - 1)) ?? null;
return i ? i.key ?? null : this.focusMode === "row" ? t.parentKey ?? null : (this.direction === "rtl" ? this.getLastKey(e) : this.getFirstKey(e)) ?? null;
}
return null;
@@ -29096,13 +29096,13 @@ var Jk = class {
if (r = this.collection.getItem(n), !r) return null;
if (this.isCell(r) && !t && r.parentKey != null) {
let e = this.collection.getItem(r.parentKey);
- return e ? gD(hD(e, this.collection))?.key ?? null : null;
+ return e ? vD(_D(e, this.collection))?.key ?? null : null;
}
}
if (n = this.findNextKey(void 0, (e) => e.type === "item"), n != null && (r && this.isCell(r) && t || this.focusMode === "cell")) {
let e = this.collection.getItem(n);
if (!e) return null;
- n = gD(hD(e, this.collection))?.key ?? null;
+ n = vD(_D(e, this.collection))?.key ?? null;
}
return n;
}
@@ -29112,13 +29112,13 @@ var Jk = class {
if (r = this.collection.getItem(n), !r) return null;
if (this.isCell(r) && !t && r.parentKey != null) {
let e = this.collection.getItem(r.parentKey);
- return e ? vD(hD(e, this.collection))?.key ?? null : null;
+ return e ? bD(_D(e, this.collection))?.key ?? null : null;
}
}
if (n = this.findPreviousKey(void 0, (e) => e.type === "item"), n != null && (r && this.isCell(r) && t || this.focusMode === "cell")) {
let e = this.collection.getItem(n);
if (!e) return null;
- n = vD(hD(e, this.collection))?.key ?? null;
+ n = bD(_D(e, this.collection))?.key ?? null;
}
return n;
}
@@ -29154,13 +29154,13 @@ var Jk = class {
if (!t) return null;
if (t.textValue) {
let n = t.textValue.slice(0, e.length);
- if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? gD(hD(t, this.collection))?.key ?? null : t.key;
+ if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? vD(_D(t, this.collection))?.key ?? null : t.key;
}
n = this.findNextKey(n, (e) => e.type === "item"), n == null && !a && (n = this.getFirstKey(), a = !0);
}
return null;
}
-}, vce = class {
+}, _ce = class {
constructor(e) {
this.layout = e;
}
@@ -29173,15 +29173,15 @@ var Jk = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, Yk = /* @__PURE__ */ new WeakMap();
+}, Xk = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/grid/useGrid.mjs
-function yce(e, t, n) {
+function Zk(e, t, n) {
let { isVirtualized: r, disallowTypeAhead: i, keyboardDelegate: a, focusMode: o, scrollRef: s, getRowText: c, onRowAction: l, onCellAction: u, escapeKeyBehavior: d = "clearSelection", shouldSelectOnPressUp: f, keyboardNavigationBehavior: p = "arrow" } = e, { selectionManager: m } = t;
!e["aria-label"] && !e["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
- let h = wD({
+ let h = ED({
usage: "search",
sensitivity: "base"
- }), { direction: g } = Lw(), _ = t.selectionManager.disabledBehavior, v = (0, F.useMemo)(() => a || new Jk({
+ }), { direction: g } = zw(), _ = t.selectionManager.disabledBehavior, v = (0, F.useMemo)(() => a || new Yk({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -29198,7 +29198,7 @@ function yce(e, t, n) {
g,
h,
o
- ]), { collectionProps: y } = mD({
+ ]), { collectionProps: y } = gD({
ref: n,
selectionManager: m,
keyboardDelegate: v,
@@ -29206,8 +29206,8 @@ function yce(e, t, n) {
scrollRef: s,
disallowTypeAhead: i,
escapeKeyBehavior: d
- }), b = VC(e.id);
- Yk.set(t, {
+ }), b = UC(e.id);
+ Xk.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -29216,42 +29216,42 @@ function yce(e, t, n) {
shouldSelectOnPressUp: f,
keyboardNavigationBehavior: p
});
- let x = CO({
+ let x = TO({
selectionManager: m,
hasItemActions: !!(l || u)
- }), S = Gw(e, { labelable: !0 }), C = (0, F.useCallback)((e) => {
- m.isFocused ? MS(e.currentTarget, G(e)) || m.setFocused(!1) : MS(e.currentTarget, G(e)) && m.setFocused(!0);
+ }), S = qw(e, { labelable: !0 }), C = (0, F.useCallback)((e) => {
+ m.isFocused ? PS(e.currentTarget, G(e)) || m.setFocused(!1) : PS(e.currentTarget, G(e)) && m.setFocused(!0);
}, [m]), w = (0, F.useMemo)(() => ({
onBlur: y.onBlur,
onFocus: C
- }), [C, y.onBlur]), T = SO(n, { isDisabled: t.collection.size !== 0 }), E = K(S, {
+ }), [C, y.onBlur]), T = wO(n, { isDisabled: t.collection.size !== 0 }), E = K(S, {
role: "grid",
id: b,
"aria-multiselectable": m.selectionMode === "multiple" ? "true" : void 0
}, t.isKeyboardNavigationDisabled ? w : y, t.collection.size === 0 && { tabIndex: T ? -1 : 0 } || void 0, x);
- return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), bO({ getRowText: c }, t), { gridProps: E };
+ return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), SO({ getRowText: c }, t), { gridProps: E };
}
// node_modules/react-aria/dist/private/table/utils.mjs
-var Xk = /* @__PURE__ */ new WeakMap();
-function Zk(e) {
+var Qk = /* @__PURE__ */ new WeakMap();
+function $k(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function Qk(e, t) {
- let n = Xk.get(e);
+function eA(e, t) {
+ let n = Qk.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${Zk(t)}`;
+ return `${n}-${$k(t)}`;
}
-function $k(e, t, n) {
- let r = Xk.get(e);
+function tA(e, t, n) {
+ let r = Qk.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${Zk(t)}-${Zk(n)}`;
+ return `${r}-${$k(t)}-${$k(n)}`;
}
-function eA(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => $k(e, t, n)).join(" ");
+function nA(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => tA(e, t, n)).join(" ");
}
// node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var tA = {};
-tA = {
+var rA = {};
+rA = {
ascending: "تصاعدي",
ascendingSort: (e) => `\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62D}\u{633}\u{628} \u{627}\u{644}\u{639}\u{645}\u{648}\u{62F} ${e.columnName} \u{628}\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62A}\u{635}\u{627}\u{639}\u{62F}\u{64A}`,
collapse: "طي",
@@ -29265,8 +29265,8 @@ tA = {
sortable: "عمود قابل للترتيب"
};
// node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var nA = {};
-nA = {
+var iA = {};
+iA = {
ascending: "възходящ",
ascendingSort: (e) => `\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{430}\u{43D}\u{43E} \u{43F}\u{43E} \u{43A}\u{43E}\u{43B}\u{43E}\u{43D}\u{430} ${e.columnName} \u{432}\u{44A}\u{432} \u{432}\u{44A}\u{437}\u{445}\u{43E}\u{434}\u{44F}\u{449} \u{440}\u{435}\u{434}`,
collapse: "Свиване",
@@ -29280,8 +29280,8 @@ nA = {
sortable: "сортираща колона"
};
// node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var rA = {};
-rA = {
+var aA = {};
+aA = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -29295,8 +29295,8 @@ rA = {
sortable: "sloupec s možností řazení"
};
// node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var iA = {};
-iA = {
+var oA = {};
+oA = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -29310,8 +29310,8 @@ iA = {
sortable: "sorterbar kolonne"
};
// node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var aA = {};
-aA = {
+var sA = {};
+sA = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -29325,8 +29325,8 @@ aA = {
sortable: "sortierbare Spalte"
};
// node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var oA = {};
-oA = {
+var cA = {};
+cA = {
ascending: "αύξουσα",
ascendingSort: (e) => `\u{3B4}\u{3B9}\u{3B1}\u{3BB}\u{3BF}\u{3B3}\u{3AE} \u{3B1}\u{3BD}\u{3AC} \u{3C3}\u{3C4}\u{3AE}\u{3BB}\u{3B7} ${e.columnName} \u{3C3}\u{3B5} \u{3B1}\u{3CD}\u{3BE}\u{3BF}\u{3C5}\u{3C3}\u{3B1} \u{3C3}\u{3B5}\u{3B9}\u{3C1}\u{3AC}`,
collapse: "Σύμπτυξη",
@@ -29340,8 +29340,8 @@ oA = {
sortable: "Στήλη διαλογής"
};
// node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var sA = {};
-sA = {
+var lA = {};
+lA = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -29355,8 +29355,8 @@ sA = {
collapse: "Collapse"
};
// node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var cA = {};
-cA = {
+var uA = {};
+uA = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -29370,8 +29370,8 @@ cA = {
sortable: "columna ordenable"
};
// node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var lA = {};
-lA = {
+var dA = {};
+dA = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -29385,8 +29385,8 @@ lA = {
sortable: "sorditav veerg"
};
// node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var uA = {};
-uA = {
+var fA = {};
+fA = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -29400,8 +29400,8 @@ uA = {
sortable: "lajiteltava sarake"
};
// node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var dA = {};
-dA = {
+var pA = {};
+pA = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -29415,8 +29415,8 @@ dA = {
sortable: "colonne triable"
};
// node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var fA = {};
-fA = {
+var mA = {};
+mA = {
ascending: "עולה",
ascendingSort: (e) => `\u{5DE}\u{5D5}\u{5D9}\u{5DF} \u{5DC}\u{5E4}\u{5D9} \u{5E2}\u{5DE}\u{5D5}\u{5D3}\u{5D4} ${e.columnName} \u{5D1}\u{5E1}\u{5D3}\u{5E8} \u{5E2}\u{5D5}\u{5DC}\u{5D4}`,
collapse: "כווץ",
@@ -29430,8 +29430,8 @@ fA = {
sortable: "עמודה שניתן למיין"
};
// node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var pA = {};
-pA = {
+var hA = {};
+hA = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -29445,8 +29445,8 @@ pA = {
sortable: "stupac koji se može razvrstati"
};
// node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var mA = {};
-mA = {
+var gA = {};
+gA = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -29460,8 +29460,8 @@ mA = {
sortable: "rendezendő oszlop"
};
// node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var hA = {};
-hA = {
+var _A = {};
+_A = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -29475,8 +29475,8 @@ hA = {
sortable: "colonna ordinabile"
};
// node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var gA = {};
-gA = {
+var vA = {};
+vA = {
ascending: "昇順",
ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,
collapse: "折りたたむ",
@@ -29490,8 +29490,8 @@ gA = {
sortable: "並べ替え可能な列"
};
// node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var _A = {};
-_A = {
+var yA = {};
+yA = {
ascending: "오름차순",
ascendingSort: (e) => `${e.columnName} \u{C5F4}\u{C744} \u{AE30}\u{C900}\u{C73C}\u{B85C} \u{C624}\u{B984}\u{CC28}\u{C21C}\u{C73C}\u{B85C} \u{C815}\u{B82C}\u{B428}`,
collapse: "접기",
@@ -29505,8 +29505,8 @@ _A = {
sortable: "정렬 가능한 열"
};
// node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var vA = {};
-vA = {
+var bA = {};
+bA = {
ascending: "didėjančia tvarka",
ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,
collapse: "Sutraukti",
@@ -29520,8 +29520,8 @@ vA = {
sortable: "rikiuojamas stulpelis"
};
// node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var yA = {};
-yA = {
+var xA = {};
+xA = {
ascending: "augošā secībā",
ascendingSort: (e) => `k\u{101}rtots p\u{113}c kolonnas ${e.columnName} augo\u{161}\u{101} sec\u{12B}b\u{101}`,
collapse: "Sakļaut",
@@ -29535,8 +29535,8 @@ yA = {
sortable: "kārtojamā kolonna"
};
// node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var bA = {};
-bA = {
+var SA = {};
+SA = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -29550,8 +29550,8 @@ bA = {
sortable: "kolonne som kan sorteres"
};
// node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var xA = {};
-xA = {
+var CA = {};
+CA = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -29565,8 +29565,8 @@ xA = {
sortable: "sorteerbare kolom"
};
// node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var SA = {};
-SA = {
+var wA = {};
+wA = {
ascending: "rosnąco",
ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,
collapse: "Zwiń",
@@ -29580,8 +29580,8 @@ SA = {
sortable: "kolumna z możliwością sortowania"
};
// node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var CA = {};
-CA = {
+var TA = {};
+TA = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -29595,8 +29595,8 @@ CA = {
sortable: "coluna classificável"
};
// node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var wA = {};
-wA = {
+var EA = {};
+EA = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -29610,8 +29610,8 @@ wA = {
sortable: "Coluna ordenável"
};
// node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var TA = {};
-TA = {
+var DA = {};
+DA = {
ascending: "crescătoare",
ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,
collapse: "Restrângeți",
@@ -29625,8 +29625,8 @@ TA = {
sortable: "coloană sortabilă"
};
// node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var EA = {};
-EA = {
+var OA = {};
+OA = {
ascending: "возрастание",
ascendingSort: (e) => `\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{43E}\u{432}\u{430}\u{442}\u{44C} \u{441}\u{442}\u{43E}\u{43B}\u{431}\u{435}\u{446} ${e.columnName} \u{432} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{435} \u{432}\u{43E}\u{437}\u{440}\u{430}\u{441}\u{442}\u{430}\u{43D}\u{438}\u{44F}`,
collapse: "Свернуть",
@@ -29640,8 +29640,8 @@ EA = {
sortable: "сортируемый столбец"
};
// node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var DA = {};
-DA = {
+var kA = {};
+kA = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -29655,8 +29655,8 @@ DA = {
sortable: "zoraditeľný stĺpec"
};
// node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var OA = {};
-OA = {
+var AA = {};
+AA = {
ascending: "naraščajoče",
ascendingSort: (e) => `razvr\u{161}\u{10D}eno po stolpcu ${e.columnName} v nara\u{161}\u{10D}ajo\u{10D}em vrstnem redu`,
collapse: "Strni",
@@ -29670,8 +29670,8 @@ OA = {
sortable: "razvrstljivi stolpec"
};
// node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var kA = {};
-kA = {
+var jA = {};
+jA = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -29685,8 +29685,8 @@ kA = {
sortable: "kolona koja se može sortirati"
};
// node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var AA = {};
-AA = {
+var MA = {};
+MA = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -29700,8 +29700,8 @@ AA = {
sortable: "sorterbar kolumn"
};
// node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var jA = {};
-jA = {
+var NA = {};
+NA = {
ascending: "artan sırada",
ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
collapse: "Daralt",
@@ -29715,8 +29715,8 @@ jA = {
sortable: "Sıralanabilir sütun"
};
// node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var MA = {};
-MA = {
+var PA = {};
+PA = {
ascending: "висхідний",
ascendingSort: (e) => `\u{432}\u{456}\u{434}\u{441}\u{43E}\u{440}\u{442}\u{43E}\u{432}\u{430}\u{43D}\u{43E} \u{437}\u{430} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{446}\u{435}\u{43C} ${e.columnName} \u{443} \u{432}\u{438}\u{441}\u{445}\u{456}\u{434}\u{43D}\u{43E}\u{43C}\u{443} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{443}`,
collapse: "Згорнути",
@@ -29730,8 +29730,8 @@ MA = {
sortable: "сортувальний стовпець"
};
// node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var NA = {};
-NA = {
+var FA = {};
+FA = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -29745,8 +29745,8 @@ NA = {
sortable: "可排序的列"
};
// node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var PA = {};
-PA = {
+var IA = {};
+IA = {
ascending: "遞增",
ascendingSort: (e) => `\u{5DF2}\u{4F9D}\u{64DA}\u{300C}${e.columnName}\u{300D}\u{6B04}\u{905E}\u{589E}\u{6392}\u{5E8F}`,
collapse: "收合",
@@ -29760,45 +29760,45 @@ PA = {
sortable: "可排序的欄"
};
// node_modules/react-aria/dist/private/table/intlStrings.mjs
-var FA = {};
-FA = {
- "ar-AE": tA,
- "bg-BG": nA,
- "cs-CZ": rA,
- "da-DK": iA,
- "de-DE": aA,
- "el-GR": oA,
- "en-US": sA,
- "es-ES": cA,
- "et-EE": lA,
- "fi-FI": uA,
- "fr-FR": dA,
- "he-IL": fA,
- "hr-HR": pA,
- "hu-HU": mA,
- "it-IT": hA,
- "ja-JP": gA,
- "ko-KR": _A,
- "lt-LT": vA,
- "lv-LV": yA,
- "nb-NO": bA,
- "nl-NL": xA,
- "pl-PL": SA,
- "pt-BR": CA,
- "pt-PT": wA,
- "ro-RO": TA,
- "ru-RU": EA,
- "sk-SK": DA,
- "sl-SI": OA,
- "sr-SP": kA,
- "sv-SE": AA,
- "tr-TR": jA,
- "uk-UA": MA,
- "zh-CN": NA,
- "zh-TW": PA
+var LA = {};
+LA = {
+ "ar-AE": rA,
+ "bg-BG": iA,
+ "cs-CZ": aA,
+ "da-DK": oA,
+ "de-DE": sA,
+ "el-GR": cA,
+ "en-US": lA,
+ "es-ES": uA,
+ "et-EE": dA,
+ "fi-FI": fA,
+ "fr-FR": pA,
+ "he-IL": mA,
+ "hr-HR": hA,
+ "hu-HU": gA,
+ "it-IT": _A,
+ "ja-JP": vA,
+ "ko-KR": yA,
+ "lt-LT": bA,
+ "lv-LV": xA,
+ "nb-NO": SA,
+ "nl-NL": CA,
+ "pl-PL": wA,
+ "pt-BR": TA,
+ "pt-PT": EA,
+ "ro-RO": DA,
+ "ru-RU": OA,
+ "sk-SK": kA,
+ "sl-SI": AA,
+ "sr-SP": jA,
+ "sv-SE": MA,
+ "tr-TR": NA,
+ "uk-UA": PA,
+ "zh-CN": FA,
+ "zh-TW": IA
};
// node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var bce = class extends Jk {
+var vce = class extends Yk {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -29806,7 +29806,7 @@ var bce = class extends Jk {
let n = this.collection.getItem(e);
if (!n) return null;
if (n.type === "column") {
- let e = gD(hD(n, this.collection));
+ let e = vD(_D(n, this.collection));
if (e) return e.key;
let t = this.getFirstKey();
return t == null || !this.collection.getItem(t) ? null : super.getKeyForItemInRowByIndex(t, n.index);
@@ -29827,13 +29827,13 @@ var bce = class extends Jk {
let t = this.findNextKey(e.key, (e) => e.type === "column");
if (t != null) return t;
let n = this.collection.headerRows[e.level];
- for (let e of hD(n, this.collection)) if (e.type === "column") return e.key;
+ for (let e of _D(n, this.collection)) if (e.type === "column") return e.key;
return null;
}
findPreviousColumnKey(e) {
let t = this.findPreviousKey(e.key, (e) => e.type === "column");
if (t != null) return t;
- let n = this.collection.headerRows[e.level], r = [...hD(n, this.collection)];
+ let n = this.collection.headerRows[e.level], r = [..._D(n, this.collection)];
for (let e = r.length - 1; e >= 0; e--) {
let t = r[e];
if (t.type === "column") return t.key;
@@ -29862,7 +29862,7 @@ var bce = class extends Jk {
let t = o.textValue.slice(0, e.length);
if (this.collator.compare(t, e) === 0) return o.key;
}
- for (let r of hD(o, this.collection)) {
+ for (let r of _D(o, this.collection)) {
let a = n.columns[r.index];
if (n.rowHeaderColumnKeys.has(a.key) && r.textValue) {
let a = r.textValue.slice(0, e.length);
@@ -29875,14 +29875,14 @@ var bce = class extends Jk {
}
};
// node_modules/react-aria/dist/private/table/useTable.mjs
-function xce(e) {
+function yce(e) {
return e && e.__esModule ? e.default : e;
}
-function Sce(e, t, n) {
- let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = wD({
+function bce(e, t, n) {
+ let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = ED({
usage: "search",
sensitivity: "base"
- }), { direction: c } = Lw(), l = t.selectionManager.disabledBehavior, u = (0, F.useMemo)(() => r || new bce({
+ }), { direction: c } = zw(), l = t.selectionManager.disabledBehavior, u = (0, F.useMemo)(() => r || new vce({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -29901,51 +29901,51 @@ function Sce(e, t, n) {
s,
a,
o
- ]), d = VC(e.id);
- Xk.set(t, d);
- let { gridProps: f } = yce({
+ ]), d = UC(e.id);
+ Qk.set(t, d);
+ let { gridProps: f } = Zk({
...e,
id: d,
keyboardDelegate: u
}, t, n);
i && (f["aria-rowcount"] = t.collection.size + t.collection.headerRows.length), t.treeColumn != null && (f.role = "treegrid");
- let { column: p, direction: m } = t.sortDescriptor || {}, h = Uw(xce(FA), "@react-aria/table"), g = (0, F.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = Gw(yce(LA), "@react-aria/table"), g = (0, F.useMemo)(() => {
let e = t.collection.columns.find((e) => e.key === p)?.textValue ?? "";
return m && p ? h.format(`${m}Sort`, { columnName: e }) : void 0;
}, [
m,
p,
t.collection.columns
- ]), _ = BT(g);
- return NT(() => {
- g && MT(g, "assertive", 500);
+ ]), _ = HT(g);
+ return FT(() => {
+ g && PT(g, "assertive", 500);
}, [g]), { gridProps: K(f, _, { "aria-describedby": [_["aria-describedby"], f["aria-describedby"]].filter(Boolean).join(" ") }) };
}
// node_modules/react-aria/dist/private/grid/useGridCell.mjs
-function IA(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Lw(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = Yk.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = () => {
+function RA(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = zw(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = Xk.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = () => {
if (n.current) {
- let e = DT(n.current);
+ let e = kT(n.current);
if (p === "child") {
- let i = NS(TS(n.current));
- if (FS(n.current) && n.current !== i) return;
- let a = TS(n.current);
+ let i = FS(DS(n.current));
+ if (LS(n.current) && n.current !== i) return;
+ let a = DS(n.current);
if (!i || i === a.body || i === n.current) {
let e = h.current;
- if (e && m.current === r.key && MS(n.current, e)) {
- IC(e);
+ if (e && m.current === r.key && PS(n.current, e)) {
+ RC(e);
return;
}
}
- let o = t.selectionManager.childFocusStrategy === "last" ? LA(e) : e.firstChild();
+ let o = t.selectionManager.childFocusStrategy === "last" ? zA(e) : e.firstChild();
if (o) {
- IC(o);
+ RC(o);
return;
}
}
- (m.current != null && r.key !== m.current || !FS(n.current)) && IC(n.current);
+ (m.current != null && r.key !== m.current || !LS(n.current)) && RC(n.current);
}
- }, { itemProps: _, isPressed: v } = TO({
+ }, { itemProps: _, isPressed: v } = DO({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -29957,44 +29957,44 @@ function IA(e, t, n) {
}), y = K(_, {
role: "gridcell",
onKeyDownCapture: f !== "tab" || o ? (e) => {
- let i = NS(TS(n.current));
- if (!MS(e.currentTarget, G(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
- let a = DT(n.current);
+ let i = FS(DS(n.current));
+ if (!PS(e.currentTarget, G(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
+ let a = kT(n.current);
switch (a.currentNode = i, e.key) {
case "ArrowLeft": {
let t = l === "rtl" ? a.nextNode() : a.previousNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) IC(t), RT(t, { containingElement: FT(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) RC(t), BT(t, { containingElement: LT(n.current) });
else {
if (u.getKeyLeftOf?.(r.key) !== r.key) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "rtl" ? (IC(n.current), RT(n.current, { containingElement: FT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : LA(a), t && (IC(t), RT(t, { containingElement: FT(n.current) })));
+ p === "cell" && l === "rtl" ? (RC(n.current), BT(n.current, { containingElement: LT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : zA(a), t && (RC(t), BT(t, { containingElement: LT(n.current) })));
}
break;
}
case "ArrowRight": {
let t = l === "rtl" ? a.previousNode() : a.nextNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) IC(t), RT(t, { containingElement: FT(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) RC(t), BT(t, { containingElement: LT(n.current) });
else {
if (u.getKeyRightOf?.(r.key) !== r.key) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "ltr" ? (IC(n.current), RT(n.current, { containingElement: FT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? LA(a) : a.firstChild(), t && (IC(t), RT(t, { containingElement: FT(n.current) })));
+ p === "cell" && l === "ltr" ? (RC(n.current), BT(n.current, { containingElement: LT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? zA(a) : a.firstChild(), t && (RC(t), BT(t, { containingElement: LT(n.current) })));
}
break;
}
case "ArrowUp":
- case "ArrowDown": !e.altKey && MS(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
+ case "ArrowDown": !e.altKey && PS(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
}
} : void 0,
onKeyDown: f === "tab" ? (e) => {
- let r = NS(TS(n.current));
- if (MS(e.currentTarget, G(e)) && !t.isKeyboardNavigationDisabled && n.current && r) {
+ let r = FS(DS(n.current));
+ if (PS(e.currentTarget, G(e)) && !t.isKeyboardNavigationDisabled && n.current && r) {
if (f === "tab" && G(e) !== n.current && e.key !== "Tab") e.stopPropagation();
else if (e.key === "Tab" && f === "tab") {
- let t = DT(n.current, { tabbable: !0 });
+ let t = kT(n.current, { tabbable: !0 });
t.currentNode = r, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
@@ -30005,9 +30005,9 @@ function IA(e, t, n) {
onFocus: (e) => {
if (m.current = r.key, G(e) !== n.current) {
let i = G(e);
- n.current && MS(n.current, i) && (h.current = i), wC() || t.selectionManager.setFocusedKey(r.key);
- } else p === "child" && e.relatedTarget && MS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
- p === "child" && NS(TS(n.current)) === n.current && g();
+ n.current && PS(n.current, i) && (h.current = i), EC() || t.selectionManager.setFocusedKey(r.key);
+ } else p === "child" && e.relatedTarget && PS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
+ p === "child" && FS(DS(n.current)) === n.current && g();
});
},
...p === "child" && f === "tab" ? { tabIndex: -1 } : {}
@@ -30022,7 +30022,7 @@ function IA(e, t, n) {
isPressed: v
};
}
-function LA(e) {
+function zA(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -30030,32 +30030,32 @@ function LA(e) {
return t;
}
// node_modules/react-aria/dist/private/table/useTableCell.mjs
-function Cce(e, t, n) {
- let { gridCellProps: r, isPressed: i } = IA(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = $k(t, e.node.parentKey, a)), {
+function xce(e, t, n) {
+ let { gridCellProps: r, isPressed: i } = RA(e, t, n), a = e.node.column?.key;
+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = tA(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
}
// node_modules/react-aria/dist/private/table/useTableColumnHeader.mjs
-function wce(e) {
+function Sce(e) {
return e && e.__esModule ? e.default : e;
}
-function Tce(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = IA({
+function Cce(e, t, n) {
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = RA({
focusMode: "child",
...e
- }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = aT({
+ }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = sT({
isDisabled: !i || o,
onPress() {
t.sort(r.key);
},
ref: n
- }), { focusableProps: l } = tw({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
- r.props.allowsSorting && !eC() && (u = d ? f : "none");
- let p = Uw(wce(FA), "@react-aria/table"), m;
- i && (m = `${p.format("sortable")}`, d && f && eC() && (m = `${m}, ${p.format(f)}`));
- let h = BT(m), g = t.collection.size === 0;
+ }), { focusableProps: l } = rw({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
+ r.props.allowsSorting && !nC() && (u = d ? f : "none");
+ let p = Gw(Sce(LA), "@react-aria/table"), m;
+ i && (m = `${p.format("sortable")}`, d && f && nC() && (m = `${m}, ${p.format(f)}`));
+ let h = HT(m), g = t.collection.size === 0;
return (0, F.useEffect)(() => {
g && t.selectionManager.focusedKey === r.key && t.selectionManager.setFocusedKey(null);
}, [
@@ -30066,7 +30066,7 @@ function Tce(e, t, n) {
columnHeaderProps: {
...K(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
- id: Qk(t, r.key),
+ id: eA(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
"aria-sort": u
},
@@ -30074,17 +30074,17 @@ function Tce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/table/useTableColumnResize.mjs
-function Ece(e) {
+function wce(e) {
return e && e.__esModule ? e.default : e;
}
-function Dce(e, t, n) {
- let { column: r, triggerRef: i, isDisabled: a, onResizeStart: o, onResize: s, onResizeEnd: c, "aria-label": l } = e, u = Uw(Ece(FA), "@react-aria/table"), d = VC(), f = t.resizingColumn === r.key, p = (0, F.useRef)(f), m = (0, F.useRef)(null), h = (0, F.useRef)(!1), g = t.tableState.isKeyboardNavigationDisabled, [_, v] = (0, F.useState)(!1), { direction: y } = Lw(), b = (0, F.useCallback)((e) => {
+function Tce(e, t, n) {
+ let { column: r, triggerRef: i, isDisabled: a, onResizeStart: o, onResize: s, onResizeEnd: c, "aria-label": l } = e, u = Gw(wce(LA), "@react-aria/table"), d = UC(), f = t.resizingColumn === r.key, p = (0, F.useRef)(f), m = (0, F.useRef)(null), h = (0, F.useRef)(!1), g = t.tableState.isKeyboardNavigationDisabled, [_, v] = (0, F.useState)(!1), { direction: y } = zw(), b = (0, F.useCallback)((e) => {
p.current || (m.current = t.updateResizedColumns(e.key, t.getColumnWidth(e.key)), t.startResize(e.key), t.tableState.setKeyboardNavigationDisabled(!0), o?.(m.current)), p.current = !0;
}, [t, o]), x = (0, F.useCallback)((e, n) => {
let r = t.updateResizedColumns(e.key, n);
s?.(r), m.current = r;
}, [t, s]), S = (0, F.useCallback)((e) => {
- p.current && (m.current ??= t.updateResizedColumns(e.key, t.getColumnWidth(e.key)), t.endResize(), t.tableState.setKeyboardNavigationDisabled(!1), c?.(m.current), p.current = !1, i?.current && !h.current && IC(i.current)), m.current = null;
+ p.current && (m.current ??= t.updateResizedColumns(e.key, t.getColumnWidth(e.key)), t.endResize(), t.tableState.setKeyboardNavigationDisabled(!1), c?.(m.current), p.current = !1, i?.current && !h.current && RC(i.current)), m.current = null;
}, [
t,
i,
@@ -30092,14 +30092,14 @@ function Dce(e, t, n) {
]), C = () => {
if (g) S(r);
else return !1;
- }, { keyboardProps: w } = ZC({ shortcuts: {
+ }, { keyboardProps: w } = $C({ shortcuts: {
Escape: () => C(),
Enter: () => {
g ? S(r) : b(r);
},
" ": () => C(),
Tab: () => C()
- } }), T = (0, F.useRef)(0), { moveProps: E } = uE({
+ } }), T = (0, F.useRef)(0), { moveProps: E } = fE({
onMoveStart(e) {
T.current = t.getColumnWidth(r.key), e.pointerType === "mouse" && v(!0), b(r);
},
@@ -30115,12 +30115,12 @@ function Dce(e, t, n) {
g && E.onKeyDown?.(e);
}, [g, E]), O = Math.floor(t.getColumnMinWidth(r.key)), k = Math.floor(t.getColumnMaxWidth(r.key));
k === Infinity && (k = 2 ** 53 - 1);
- let A = Math.floor(t.getColumnWidth(r.key)), j = DC();
+ let A = Math.floor(t.getColumnWidth(r.key)), j = kC();
j === "virtual" && typeof window < "u" && "ontouchstart" in window && (j = "touch");
- let M = BT(i?.current == null && (j === "keyboard" || j === "virtual") && !f ? u.format("resizerDescription") : void 0), ee = {
+ let M = HT(i?.current == null && (j === "keyboard" || j === "virtual") && !f ? u.format("resizerDescription") : void 0), ee = {
"aria-label": l,
"aria-orientation": "horizontal",
- "aria-labelledby": `${d} ${Qk(t.tableState, r.key)}`,
+ "aria-labelledby": `${d} ${eA(t.tableState, r.key)}`,
"aria-valuetext": u.format("columnSize", { value: A }),
type: "range",
min: O,
@@ -30128,11 +30128,11 @@ function Dce(e, t, n) {
value: A,
...M
}, N = (0, F.useCallback)(() => {
- n.current && IC(n.current);
- }, [n]), te = t.resizingColumn, P = (0, F.useRef)(null), ne = kw(b);
+ n.current && RC(n.current);
+ }, [n]), te = t.resizingColumn, P = (0, F.useRef)(null), ne = jw(b);
(0, F.useEffect)(() => {
if (P.current !== te && te != null && te === r.key) {
- h.current = NS() === n.current, ne(r);
+ h.current = FS() === n.current, ne(r);
let e = setTimeout(() => N(), 0), t = setTimeout(N, 400);
return () => {
clearTimeout(e), clearTimeout(t);
@@ -30148,7 +30148,7 @@ function Dce(e, t, n) {
let re = (e) => {
let n = t.getColumnWidth(r.key), i = parseFloat(G(e).value);
i = i > n ? n + 10 : n - 10, x(r, i);
- }, { pressProps: I } = aT({
+ }, { pressProps: I } = sT({
preventFocusOnPress: !0,
onPressStart: (e) => {
e.ctrlKey || e.altKey || e.metaKey || e.shiftKey || e.pointerType === "keyboard" || (e.pointerType === "virtual" && t.resizingColumn != null ? S(r) : (N(), e.pointerType !== "virtual" && b(r)));
@@ -30156,7 +30156,7 @@ function Dce(e, t, n) {
onPress: (e) => {
(e.pointerType === "touch" && h.current || e.pointerType === "mouse") && t.resizingColumn != null && S(r);
}
- }), { visuallyHiddenProps: ie } = fE();
+ }), { visuallyHiddenProps: ie } = mE();
return {
resizerProps: K(w, {
...E,
@@ -30175,19 +30175,19 @@ function Dce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/table/useTableHeaderRow.mjs
-function Oce(e, t, n) {
+function Ece(e, t, n) {
let { node: r, isVirtualized: i } = e, a = { role: "row" };
return i && t.treeColumn == null && (a["aria-rowindex"] = r.index + 1), { rowProps: a };
}
// node_modules/react-aria/dist/private/grid/useGridRow.mjs
-function kce(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = Yk.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = TO({
+function Dce(e, t, n) {
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = Xk.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = DO({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: c || a,
- onAction: l || r?.props?.onAction ? LC(r?.props?.onAction, l) : void 0,
+ onAction: l || r?.props?.onAction ? zC(r?.props?.onAction, l) : void 0,
isDisabled: t.collection.size === 0
}), f = t.selectionManager.isSelected(r.key), p = {
role: "row",
@@ -30201,10 +30201,10 @@ function kce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/table/useTableRow.mjs
-function Ace(e) {
+function Oce(e) {
return e && e.__esModule ? e.default : e;
}
-var RA = {
+var BA = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -30214,21 +30214,21 @@ var RA = {
rtl: "ArrowRight"
}
};
-function jce(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = kce(e, t, n), { direction: s } = Lw();
+function kce(e, t, n) {
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Dce(e, t, n), { direction: s } = zw();
i && t.treeColumn == null ? a["aria-rowindex"] = r.index + 1 + t.collection.headerRows.length : delete a["aria-rowindex"];
- let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = Uw(Ace(FA), "@react-aria/table"), u = jw({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = Gw(Oce(LA), "@react-aria/table"), u = Nw({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": eA(t, r.key)
+ "aria-labelledby": nA(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = zA(t.collection, r), i = e.props?.hasChildRows || e.props?.UNSTABLE_childItems || n?.type !== "cell", a = t.collection.getItem(r.parentKey), c = a.type === "tablebody" || a.type === "body", l = zA(t.collection, a);
+ let n = VA(t.collection, r), i = e.props?.hasChildRows || e.props?.UNSTABLE_childItems || n?.type !== "cell", a = t.collection.getItem(r.parentKey), c = a.type === "tablebody" || a.type === "body", l = VA(t.collection, a);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
- n.key === RA.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === RA.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));
+ n.key === BA.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === BA.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));
},
"aria-expanded": i ? t.expandedKeys === "all" || t.expandedKeys.has(r.key) : void 0,
"aria-level": e.level + 1,
@@ -30246,42 +30246,42 @@ function jce(e, t, n) {
};
}
}
- let p = iC(r.props), m = o.hasAction ? p : {};
+ let p = oC(r.props), m = o.hasAction ? p : {};
return {
rowProps: {
...K(a, d, m),
- "aria-labelledby": eA(t, r.key)
+ "aria-labelledby": nA(t, r.key)
},
expandButtonProps: f,
...o
};
}
-function zA(e, t) {
+function VA(e, t) {
return "lastChildKey" in t ? t.lastChildKey == null ? null : e.getItem(t.lastChildKey) : Array.from(t.childNodes).findLast((e) => e.parentKey === t.key);
}
// node_modules/react-aria/dist/private/grid/useGridRowGroup.mjs
-function Mce() {
+function Ace() {
return { rowGroupProps: { role: "rowgroup" } };
}
// node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function BA() {
- return Mce();
+function HA() {
+ return Ace();
}
// node_modules/react-aria/dist/private/table/useTableSelectionCheckbox.mjs
-function Nce(e) {
+function jce(e) {
return e && e.__esModule ? e.default : e;
}
-function Pce(e, t) {
- let { key: n } = e, { checkboxProps: r } = jO(e, t);
+function Mce(e, t) {
+ let { key: n } = e, { checkboxProps: r } = NO(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${eA(t, n)}`
+ "aria-labelledby": `${r.id} ${nA(t, n)}`
} };
}
-function Fce(e) {
+function Nce(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": Uw(Nce(FA), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": Gw(jce(LA), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
isSelected: n,
isDisabled: r !== "multiple" || e.collection.size === 0 || e.collection.rows.length === 1 && e.collection.rows[0].type === "loader",
isIndeterminate: !t && !n,
@@ -30289,22 +30289,22 @@ function Fce(e) {
} };
}
// node_modules/react-aria/dist/private/tabs/utils.mjs
-var VA = /* @__PURE__ */ new WeakMap();
-function HA(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${VA.get(e)}-${n}-${t}`) : "";
+var UA = /* @__PURE__ */ new WeakMap();
+function WA(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${UA.get(e)}-${n}-${t}`) : "";
}
// node_modules/react-aria/dist/private/tabs/useTab.mjs
-function Ice(e, t, n) {
- let { key: r, isDisabled: i, shouldSelectOnPressUp: a } = e, { selectionManager: o, selectedKey: s } = t, c = r === s, l = i || t.isDisabled || t.selectionManager.isDisabled(r), u = t.collection.getItem(r), { itemProps: d, isPressed: f } = TO({
+function Pce(e, t, n) {
+ let { key: r, isDisabled: i, shouldSelectOnPressUp: a } = e, { selectionManager: o, selectedKey: s } = t, c = r === s, l = i || t.isDisabled || t.selectionManager.isDisabled(r), u = t.collection.getItem(r), { itemProps: d, isPressed: f } = DO({
selectionManager: o,
key: r,
ref: n,
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = HA(t, r, "tab"), m = HA(t, r, "tabpanel"), { tabIndex: h } = d, g = Gw(u?.props, { labelable: !0 });
+ }), p = WA(t, r, "tab"), m = WA(t, r, "tabpanel"), { tabIndex: h } = d, g = qw(u?.props, { labelable: !0 });
delete g.id;
- let _ = aC(u?.props), { focusableProps: v } = tw({
+ let _ = sC(u?.props), { focusableProps: v } = rw({
...u?.props,
isDisabled: l
}, n);
@@ -30323,7 +30323,7 @@ function Ice(e, t, n) {
};
}
// node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
-var Lce = class {
+var Fce = class {
constructor(e, t, n, r = /* @__PURE__ */ new Set()) {
this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";
}
@@ -30366,11 +30366,11 @@ var Lce = class {
}
};
// node_modules/react-aria/dist/private/tabs/useTabList.mjs
-function Rce(e, t, n) {
- let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Lw(), { collectionProps: l } = mD({
+function Ice(e, t, n) {
+ let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = zw(), { collectionProps: l } = gD({
ref: n,
selectionManager: o,
- keyboardDelegate: (0, F.useMemo)(() => new Lce(a, c, r, s), [
+ keyboardDelegate: (0, F.useMemo)(() => new Fce(a, c, r, s), [
a,
s,
r,
@@ -30380,9 +30380,9 @@ function Rce(e, t, n) {
disallowEmptySelection: !0,
scrollRef: n,
linkBehavior: "selection"
- }), u = VC();
- return VA.set(t, u), { tabListProps: {
- ...K(l, jw({
+ }), u = UC();
+ return UA.set(t, u), { tabListProps: {
+ ...K(l, Nw({
...e,
id: u
})),
@@ -30392,12 +30392,12 @@ function Rce(e, t, n) {
} };
}
// node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
-function zce(e, t, n) {
- let r = SO(n) ? void 0 : 0, i = HA(t, e.id ?? t?.selectedKey, "tabpanel");
- return { tabPanelProps: K(jw({
+function Lce(e, t, n) {
+ let r = wO(n) ? void 0 : 0, i = WA(t, e.id ?? t?.selectedKey, "tabpanel");
+ return { tabPanelProps: K(Nw({
...e,
id: i,
- "aria-labelledby": HA(t, t?.selectedKey, "tab")
+ "aria-labelledby": WA(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -30406,265 +30406,265 @@ function zce(e, t, n) {
}) };
}
// node_modules/react-aria/dist/private/tree/useTree.mjs
-function Bce(e, t, n) {
- let { gridProps: r } = Nse(e, t, n);
+function Rce(e, t, n) {
+ let { gridProps: r } = jse(e, t, n);
return r.role = "treegrid", { gridProps: r };
}
// node_modules/react-aria/dist/private/intl/tree/ar-AE.mjs
-var UA = {};
-UA = {
+var GA = {};
+GA = {
collapse: "طي",
expand: "تمديد"
};
// node_modules/react-aria/dist/private/intl/tree/bg-BG.mjs
-var WA = {};
-WA = {
+var KA = {};
+KA = {
collapse: "Свиване",
expand: "Разширяване"
};
// node_modules/react-aria/dist/private/intl/tree/cs-CZ.mjs
-var GA = {};
-GA = {
+var qA = {};
+qA = {
collapse: "Sbalit",
expand: "Roztáhnout"
};
// node_modules/react-aria/dist/private/intl/tree/da-DK.mjs
-var KA = {};
-KA = {
+var JA = {};
+JA = {
collapse: "Skjul",
expand: "Udvid"
};
// node_modules/react-aria/dist/private/intl/tree/de-DE.mjs
-var qA = {};
-qA = {
+var YA = {};
+YA = {
collapse: "Reduzieren",
expand: "Erweitern"
};
// node_modules/react-aria/dist/private/intl/tree/el-GR.mjs
-var JA = {};
-JA = {
+var XA = {};
+XA = {
collapse: "Σύμπτυξη",
expand: "Ανάπτυξη"
};
// node_modules/react-aria/dist/private/intl/tree/en-US.mjs
-var YA = {};
-YA = {
+var ZA = {};
+ZA = {
expand: "Expand",
collapse: "Collapse"
};
// node_modules/react-aria/dist/private/intl/tree/es-ES.mjs
-var XA = {};
-XA = {
+var QA = {};
+QA = {
collapse: "Contraer",
expand: "Expandir"
};
// node_modules/react-aria/dist/private/intl/tree/et-EE.mjs
-var ZA = {};
-ZA = {
+var $A = {};
+$A = {
collapse: "Ahenda",
expand: "Laienda"
};
// node_modules/react-aria/dist/private/intl/tree/fi-FI.mjs
-var QA = {};
-QA = {
+var ej = {};
+ej = {
collapse: "Pienennä",
expand: "Laajenna"
};
// node_modules/react-aria/dist/private/intl/tree/fr-FR.mjs
-var $A = {};
-$A = {
+var tj = {};
+tj = {
collapse: "Réduire",
expand: "Développer"
};
// node_modules/react-aria/dist/private/intl/tree/he-IL.mjs
-var ej = {};
-ej = {
+var nj = {};
+nj = {
collapse: "כווץ",
expand: "הרחב"
};
// node_modules/react-aria/dist/private/intl/tree/hr-HR.mjs
-var tj = {};
-tj = {
+var rj = {};
+rj = {
collapse: "Sažmi",
expand: "Proširi"
};
// node_modules/react-aria/dist/private/intl/tree/hu-HU.mjs
-var nj = {};
-nj = {
+var ij = {};
+ij = {
collapse: "Összecsukás",
expand: "Kibontás"
};
// node_modules/react-aria/dist/private/intl/tree/it-IT.mjs
-var rj = {};
-rj = {
+var aj = {};
+aj = {
collapse: "Comprimi",
expand: "Espandi"
};
// node_modules/react-aria/dist/private/intl/tree/ja-JP.mjs
-var ij = {};
-ij = {
+var oj = {};
+oj = {
collapse: "折りたたむ",
expand: "展開"
};
// node_modules/react-aria/dist/private/intl/tree/ko-KR.mjs
-var aj = {};
-aj = {
+var sj = {};
+sj = {
collapse: "접기",
expand: "펼치기"
};
// node_modules/react-aria/dist/private/intl/tree/lt-LT.mjs
-var oj = {};
-oj = {
+var cj = {};
+cj = {
collapse: "Sutraukti",
expand: "Išskleisti"
};
// node_modules/react-aria/dist/private/intl/tree/lv-LV.mjs
-var sj = {};
-sj = {
+var lj = {};
+lj = {
collapse: "Sakļaut",
expand: "Izvērst"
};
// node_modules/react-aria/dist/private/intl/tree/nb-NO.mjs
-var cj = {};
-cj = {
+var uj = {};
+uj = {
collapse: "Skjul",
expand: "Utvid"
};
// node_modules/react-aria/dist/private/intl/tree/nl-NL.mjs
-var lj = {};
-lj = {
+var dj = {};
+dj = {
collapse: "Samenvouwen",
expand: "Uitvouwen"
};
// node_modules/react-aria/dist/private/intl/tree/pl-PL.mjs
-var uj = {};
-uj = {
+var fj = {};
+fj = {
collapse: "Zwiń",
expand: "Rozwiń"
};
// node_modules/react-aria/dist/private/intl/tree/pt-BR.mjs
-var dj = {};
-dj = {
+var pj = {};
+pj = {
collapse: "Recolher",
expand: "Expandir"
};
// node_modules/react-aria/dist/private/intl/tree/pt-PT.mjs
-var fj = {};
-fj = {
+var mj = {};
+mj = {
collapse: "Colapsar",
expand: "Expandir"
};
// node_modules/react-aria/dist/private/intl/tree/ro-RO.mjs
-var pj = {};
-pj = {
+var hj = {};
+hj = {
collapse: "Restrângeți",
expand: "Extindeți"
};
// node_modules/react-aria/dist/private/intl/tree/ru-RU.mjs
-var mj = {};
-mj = {
+var gj = {};
+gj = {
collapse: "Свернуть",
expand: "Развернуть"
};
// node_modules/react-aria/dist/private/intl/tree/sk-SK.mjs
-var hj = {};
-hj = {
+var _j = {};
+_j = {
collapse: "Zbaliť",
expand: "Rozbaliť"
};
// node_modules/react-aria/dist/private/intl/tree/sl-SI.mjs
-var gj = {};
-gj = {
+var vj = {};
+vj = {
collapse: "Strni",
expand: "Razširi"
};
// node_modules/react-aria/dist/private/intl/tree/sr-SP.mjs
-var _j = {};
-_j = {
+var yj = {};
+yj = {
collapse: " Skupi",
expand: "Proširi"
};
// node_modules/react-aria/dist/private/intl/tree/sv-SE.mjs
-var vj = {};
-vj = {
+var bj = {};
+bj = {
collapse: "Dölj",
expand: "Expandera"
};
// node_modules/react-aria/dist/private/intl/tree/tr-TR.mjs
-var yj = {};
-yj = {
+var xj = {};
+xj = {
collapse: "Daralt",
expand: "Genişlet"
};
// node_modules/react-aria/dist/private/intl/tree/uk-UA.mjs
-var bj = {};
-bj = {
+var Sj = {};
+Sj = {
collapse: "Згорнути",
expand: "Розгорнути"
};
// node_modules/react-aria/dist/private/intl/tree/zh-CN.mjs
-var xj = {};
-xj = {
+var Cj = {};
+Cj = {
collapse: "折叠",
expand: "扩展"
};
// node_modules/react-aria/dist/private/intl/tree/zh-TW.mjs
-var Sj = {};
-Sj = {
+var wj = {};
+wj = {
collapse: "收合",
expand: "展開"
};
// node_modules/react-aria/dist/private/tree/intlStrings.mjs
-var Cj = {};
-Cj = {
- "ar-AE": UA,
- "bg-BG": WA,
- "cs-CZ": GA,
- "da-DK": KA,
- "de-DE": qA,
- "el-GR": JA,
- "en-US": YA,
- "es-ES": XA,
- "et-EE": ZA,
- "fi-FI": QA,
- "fr-FR": $A,
- "he-IL": ej,
- "hr-HR": tj,
- "hu-HU": nj,
- "it-IT": rj,
- "ja-JP": ij,
- "ko-KR": aj,
- "lt-LT": oj,
- "lv-LV": sj,
- "nb-NO": cj,
- "nl-NL": lj,
- "pl-PL": uj,
- "pt-BR": dj,
- "pt-PT": fj,
- "ro-RO": pj,
- "ru-RU": mj,
- "sk-SK": hj,
- "sl-SI": gj,
- "sr-SP": _j,
- "sv-SE": vj,
- "tr-TR": yj,
- "uk-UA": bj,
- "zh-CN": xj,
- "zh-TW": Sj
+var Tj = {};
+Tj = {
+ "ar-AE": GA,
+ "bg-BG": KA,
+ "cs-CZ": qA,
+ "da-DK": JA,
+ "de-DE": YA,
+ "el-GR": XA,
+ "en-US": ZA,
+ "es-ES": QA,
+ "et-EE": $A,
+ "fi-FI": ej,
+ "fr-FR": tj,
+ "he-IL": nj,
+ "hr-HR": rj,
+ "hu-HU": ij,
+ "it-IT": aj,
+ "ja-JP": oj,
+ "ko-KR": sj,
+ "lt-LT": cj,
+ "lv-LV": lj,
+ "nb-NO": uj,
+ "nl-NL": dj,
+ "pl-PL": fj,
+ "pt-BR": pj,
+ "pt-PT": mj,
+ "ro-RO": hj,
+ "ru-RU": gj,
+ "sk-SK": _j,
+ "sl-SI": vj,
+ "sr-SP": yj,
+ "sv-SE": bj,
+ "tr-TR": xj,
+ "uk-UA": Sj,
+ "zh-CN": Cj,
+ "zh-TW": wj
};
// node_modules/react-aria/dist/private/tree/useTreeItem.mjs
-function Vce(e) {
+function zce(e) {
return e && e.__esModule ? e.default : e;
}
-function wj(e, t, n) {
- let { node: r } = e, i = Pse(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = Uw(Vce(Cj), "@react-aria/tree"), s = {
+function Ej(e, t, n) {
+ let { node: r } = e, i = Mse(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = Gw(zce(Tj), "@react-aria/tree"), s = {
onPress: () => {
i.isDisabled || (t.toggleKey(r.key), t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r.key));
},
excludeFromTabOrder: !0,
preventFocusOnPress: !0,
"data-react-aria-prevent-focus": !0,
- ...jw({
+ ...Nw({
"aria-label": a ? o.format("collapse") : o.format("expand"),
"aria-labelledby": i.rowProps.id
})
@@ -30675,15 +30675,15 @@ function wj(e, t, n) {
};
}
// src/react/components/selection-dock.tsx
-var Tj = "(prefers-reduced-motion: reduce)", Hce = () => matchMedia(Tj).matches, Uce = (e) => {
- let t = matchMedia(Tj);
+var Dj = "(prefers-reduced-motion: reduce)", Bce = () => matchMedia(Dj).matches, Vce = (e) => {
+ let t = matchMedia(Dj);
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
-}, Ej = /* @__PURE__ */ new Map(), Dj = () => {
+}, Oj = /* @__PURE__ */ new Map(), kj = () => {
let e = document.documentElement;
- Ej.size ? e.style.setProperty("--selection-dock-space", `${Math.max(...Ej.values())}px`) : e.style.removeProperty("--selection-dock-space");
+ Oj.size ? e.style.setProperty("--selection-dock-space", `${Math.max(...Oj.values())}px`) : e.style.removeProperty("--selection-dock-space");
};
-function Wce({ children: e, count: t, label: n }) {
- let r = (0, F.useRef)(null), i = kx(), a = (0, F.useSyncExternalStore)(Uce, Hce, () => !1), { isFocusVisible: o } = OC(), s = a || o, c = {
+function Hce({ children: e, count: t, label: n }) {
+ let r = (0, F.useRef)(null), i = jx(), a = (0, F.useSyncExternalStore)(Vce, Bce, () => !1), { isFocusVisible: o } = AC(), s = a || o, c = {
opacity: 0,
transform: "translate(-50%, 8px)"
};
@@ -30691,12 +30691,12 @@ function Wce({ children: e, count: t, label: n }) {
let e = r.current;
if (!e || !i) return;
let t = () => {
- Ej.set(e, Math.ceil(e.offsetHeight + (parseFloat(getComputedStyle(e).bottom) || 0) + 16)), Dj();
+ Oj.set(e, Math.ceil(e.offsetHeight + (parseFloat(getComputedStyle(e).bottom) || 0) + 16)), kj();
}, n = new ResizeObserver(t);
return n.observe(e), window.addEventListener("resize", t), t(), () => {
- n.disconnect(), window.removeEventListener("resize", t), Ej.delete(e), Dj();
+ n.disconnect(), window.removeEventListener("resize", t), Oj.delete(e), kj();
};
- }, [i]), /* @__PURE__ */ (0, I.jsxs)(mS.div, {
+ }, [i]), /* @__PURE__ */ (0, I.jsxs)(gS.div, {
ref: r,
role: "group",
"aria-label": n,
@@ -30729,17 +30729,17 @@ function Wce({ children: e, count: t, label: n }) {
}), e]
});
}
-function Oj({ visible: e, ...t }) {
- return /* @__PURE__ */ (0, I.jsx)(Mx, { children: e ? /* @__PURE__ */ (0, I.jsx)(Wce, { ...t }, "selection") : null });
+function Aj({ visible: e, ...t }) {
+ return /* @__PURE__ */ (0, I.jsx)(Px, { children: e ? /* @__PURE__ */ (0, I.jsx)(Hce, { ...t }, "selection") : null });
}
// src/react/batch-dock/batch-dock-api.ts
-var kj = {
+var jj = {
group: "clear",
operation: "clear",
label: "取消",
glyph: "x"
};
-function Gce(e, t = !1) {
+function Uce(e, t = !1) {
switch (e) {
case "trash": return [
{
@@ -30755,7 +30755,7 @@ function Gce(e, t = !1) {
glyph: "trash",
danger: !0
},
- kj
+ jj
];
case "junk": return [
t ? {
@@ -30776,7 +30776,7 @@ function Gce(e, t = !1) {
glyph: "trash",
danger: !0
},
- kj
+ jj
];
case "follow": return [
{
@@ -30797,7 +30797,7 @@ function Gce(e, t = !1) {
label: "忽略",
glyph: "eye-off"
},
- kj
+ jj
];
default: return [
{
@@ -30831,38 +30831,38 @@ function Gce(e, t = !1) {
glyph: "trash",
danger: !0
},
- kj
+ jj
];
}
}
// src/react/batch-dock/batch-dock-island.tsx
-var Aj = null, jj = {
+var Mj = null, Nj = {
count: 0,
context: "catalog",
junkDismissed: !1
-}, Mj = /* @__PURE__ */ new Set();
-function Kce(e) {
- return Mj.add(e), () => {
- Mj.delete(e);
+}, Pj = /* @__PURE__ */ new Set();
+function Wce(e) {
+ return Pj.add(e), () => {
+ Pj.delete(e);
};
}
-function qce() {
- for (let e of [...Mj]) e();
+function Gce() {
+ for (let e of [...Pj]) e();
}
-var Jce = { render(e) {
- jj = e, (0, Lt.flushSync)(qce);
+var Kce = { render(e) {
+ Nj = e, (0, Lt.flushSync)(Gce);
} };
-function Yce(e) {
- return Aj = e, Jce;
+function qce(e) {
+ return Mj = e, Kce;
}
-function Xce() {
- let e = (0, F.useSyncExternalStore)(Kce, () => jj);
- return Aj ? /* @__PURE__ */ (0, I.jsx)(Zce, {
- host: Aj,
+function Jce() {
+ let e = (0, F.useSyncExternalStore)(Wce, () => Nj);
+ return Mj ? /* @__PURE__ */ (0, I.jsx)(Yce, {
+ host: Mj,
props: e
}) : null;
}
-function Zce({ host: e, props: t }) {
+function Yce({ host: e, props: t }) {
let n = t.count > 0;
return (0, F.useLayoutEffect)(() => {
document.body.toggleAttribute("data-batch-dock-open", n);
@@ -30872,11 +30872,11 @@ function Zce({ host: e, props: t }) {
className: "peach-react",
"data-batch-scope": "",
"data-context": t.context,
- children: /* @__PURE__ */ (0, I.jsx)(Oj, {
+ children: /* @__PURE__ */ (0, I.jsx)(Aj, {
label: "所选项目操作",
visible: t.count > 0,
count: `已选 ${t.count.toLocaleString()} 项`,
- children: Gce(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: Uce(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-batch-group": t.group,
"data-batch-action": t.operation,
@@ -30892,11 +30892,11 @@ function Zce({ host: e, props: t }) {
});
}
// src/number-setting.ts
-function Nj(e, t, n, r) {
+function Fj(e, t, n, r) {
return Number.isInteger(e) && e >= t && e <= n ? e : r;
}
// src/settings-store.ts
-function Qce(e, t) {
+function Xce(e, t) {
let n = /* @__PURE__ */ new Set(), r = 0, i = () => {
r += 1, n.forEach((e) => e());
};
@@ -30915,7 +30915,7 @@ function Qce(e, t) {
};
}
// src/sort-preferences.ts
-var Pj = [
+var Ij = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -30924,7 +30924,7 @@ var Pj = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], Fj = ["release", "发行时间"], Ij = [...Pj, Fj].map(([e]) => e), Lj = {
+], Lj = ["release", "发行时间"], Rj = [...Ij, Lj].map(([e]) => e), zj = {
rating: ["从高到低", "从低到高"],
o: ["从多到少", "从少到多"],
plays: ["从多到少", "从少到多"],
@@ -30933,43 +30933,43 @@ var Pj = [
new: ["从新到旧", "从旧到新"],
played: ["从近到远", "从远到近"],
release: ["从新到旧", "从旧到新"]
-}, Rj = {
+}, Bj = {
big: ["size", "desc"],
short: ["dur", "asc"],
long: ["dur", "desc"]
-}, zj = (e, t, n = Lj) => (n[e] || [])[+(t === "asc")] || "", Bj = (e, t = Lj) => t[e] ? "desc" : "";
-function Vj(e, t, n, r = Lj) {
+}, Vj = (e, t, n = zj) => (n[e] || [])[+(t === "asc")] || "", Hj = (e, t = zj) => t[e] ? "desc" : "";
+function Uj(e, t, n, r = zj) {
return e === t ? r[e] ? {
sort: e,
dir: n === "asc" ? "desc" : "asc"
} : null : {
sort: e,
- dir: Bj(e, r)
+ dir: Hj(e, r)
};
}
-function Hj(e, t, n) {
+function Wj(e, t, n) {
return e === "seed" ? "" : e === t && n === "asc" ? "asc" : "desc";
}
-function Uj(e, t, n, r, i = n) {
- let a = e ? Rj[e] : void 0, o = a ? a[0] : e, s = o && Ij.includes(o) ? o : i;
- return Lj[s] ? {
+function Gj(e, t, n, r, i = n) {
+ let a = e ? Bj[e] : void 0, o = a ? a[0] : e, s = o && Rj.includes(o) ? o : i;
+ return zj[s] ? {
sort: s,
- dir: t === "asc" || t === "desc" ? t : a ? a[1] : e ? "desc" : Hj(s, n, r)
+ dir: t === "asc" || t === "desc" ? t : a ? a[1] : e ? "desc" : Wj(s, n, r)
} : {
sort: s,
dir: ""
};
}
// src/appearance/home-glow.ts
-var Wj = [
+var Kj = [
"spot1",
"spot2",
"spot3"
-], $ce = [
+], Zce = [
"光晕一",
"光晕二",
"光晕三"
-], Gj = "native", Kj = [
+], qj = "native", Jj = [
[
"ash",
"灰雾",
@@ -31275,7 +31275,7 @@ var Wj = [
"rose"
],
[
- Gj,
+ qj,
"玻璃原色",
{
spot1: {
@@ -31293,7 +31293,7 @@ var Wj = [
},
"blue"
]
-], qj = (e) => e === Gj, Jj = [...Kj.map(([e, t]) => [e, t]), ["custom", "自定义"]], ele = (e) => (Jj.find(([t]) => t === e) || Jj[0])[1], Yj = (e) => structuredClone((Kj.find(([t]) => t === e) || Kj[0])[2]), Xj = [
+], Yj = (e) => e === qj, Xj = [...Jj.map(([e, t]) => [e, t]), ["custom", "自定义"]], Qce = (e) => (Xj.find(([t]) => t === e) || Xj[0])[1], Zj = (e) => structuredClone((Jj.find(([t]) => t === e) || Jj[0])[2]), Qj = [
["red", "红"],
["orange", "橙"],
["amber", "琥珀"],
@@ -31306,7 +31306,7 @@ var Wj = [
["violet", "紫罗兰"],
["fuchsia", "品红"],
["rose", "玫红"]
-], Zj = "blue", Qj = (e) => Xj.some(([t]) => t === e) ? e : Zj, tle = (e) => (Kj.find(([t]) => t === e) || [])[3] || "blue", nle = [
+], $j = "blue", eM = (e) => Qj.some(([t]) => t === e) ? e : $j, $ce = (e) => (Jj.find(([t]) => t === e) || [])[3] || "blue", ele = [
["all", "全部"],
["gray", "灰"],
["red", "红"],
@@ -31316,7 +31316,7 @@ var Wj = [
["blue", "蓝"],
["purple", "紫"],
["brown", "棕"]
-], rle = [
+], tle = [
[
"gray",
"云灰",
@@ -31712,11 +31712,11 @@ var Wj = [
"霁蓝",
"#6686b8"
]
-], $j = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, eM = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, ile = (e, t) => `rgba(${[
+], tM = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, nM = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, nle = (e, t) => `rgba(${[
1,
3,
5
-].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, ale = {
+].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, rle = {
strength: [
0,
100,
@@ -31742,7 +31742,7 @@ var Wj = [
100,
50
]
-}, tM = {
+}, rM = {
on: !0,
preset: "ash",
strength: 100,
@@ -31750,56 +31750,56 @@ var Wj = [
speed: 100,
soften: 50,
size: 50,
- ...Yj("ash")
+ ...Zj("ash")
};
-function nM(e) {
- let t = e && typeof e == "object" ? e : {}, n = Jj.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = Yj(r === "custom" ? "ash" : r), a = {
+function iM(e) {
+ let t = e && typeof e == "object" ? e : {}, n = Xj.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = Zj(r === "custom" ? "ash" : r), a = {
on: t.on !== !1,
preset: r
};
- for (let [e, [n, r, i]] of Object.entries(ale)) a[e] = $j(+t[e], n, r, i);
- for (let e of Wj) {
+ for (let [e, [n, r, i]] of Object.entries(rle)) a[e] = tM(+t[e], n, r, i);
+ for (let e of Kj) {
let r = n && t[e] && typeof t[e] == "object" ? t[e] : {}, o = i[e];
a[e] = {
- color: eM(r.color, o.color),
- alpha: $j(+r.alpha, 0, 100, o.alpha)
+ color: nM(r.color, o.color),
+ alpha: tM(+r.alpha, 0, 100, o.alpha)
};
}
return a;
}
-var ole = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, rM = /* @__PURE__ */ new WeakMap();
-function sle(e, t) {
+var ile = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, aM = /* @__PURE__ */ new WeakMap();
+function ale(e, t) {
if (!e) return;
- let n = rM.get(e);
- n || (n = /* @__PURE__ */ new Map(), rM.set(e, n));
- let r = t.on && !qj(t.preset), i = (t, r) => {
+ let n = aM.get(e);
+ n || (n = /* @__PURE__ */ new Map(), aM.set(e, n));
+ let r = t.on && !Yj(t.preset), i = (t, r) => {
n.get(t) !== r && (n.set(t, r), e.style.setProperty(t, r));
};
- i("--glow-strength", String(r ? t.strength / 100 : 0)), i("--glow-noise", String(r ? t.noise / 100 : 0)), i("--glow-soften", (.7 + t.soften / 100 * .6).toFixed(3)), i("--glow-size", (.5 + t.size / 100).toFixed(3)), i("--glow-drift-scale", t.speed ? (100 / t.speed).toFixed(3) : "1"), i("--glow-drift-play", t.speed ? "running" : "paused"), Wj.forEach((e, n) => {
+ i("--glow-strength", String(r ? t.strength / 100 : 0)), i("--glow-noise", String(r ? t.noise / 100 : 0)), i("--glow-soften", (.7 + t.soften / 100 * .6).toFixed(3)), i("--glow-size", (.5 + t.size / 100).toFixed(3)), i("--glow-drift-scale", t.speed ? (100 / t.speed).toFixed(3) : "1"), i("--glow-drift-play", t.speed ? "running" : "paused"), Kj.forEach((e, n) => {
let r = t[e];
- i(`--glow-spot-${n + 1}-color`, ile(r.color, r.alpha));
+ i(`--glow-spot-${n + 1}-color`, nle(r.color, r.alpha));
});
}
-function cle(e, t) {
+function ole(e, t) {
if (!e) return;
- let n = !t.on || qj(t.preset);
+ let n = !t.on || Yj(t.preset);
e.toggleAttribute("data-glow-native", n), e.style.setProperty("--glow-drift-scale", t.speed ? (100 / t.speed).toFixed(3) : "1"), e.style.setProperty("--glow-drift-play", t.speed ? "running" : "paused"), n ? (e.style.removeProperty("--glass-tint-a"), e.style.removeProperty("--glass-tint-b")) : (e.style.setProperty("--glass-tint-a", t.spot1.color), e.style.setProperty("--glass-tint-b", t.spot2.color));
}
// src/appearance/settings.ts
-var lle = "peach.settings.v1", ule = [
+var sle = "peach.settings.v1", cle = [
"system",
"light",
"dark"
-], iM = [
+], oM = [
0,
7,
30,
90
-], dle = [
+], lle = [
"feedHideGroupCompilations",
"feedHideSoloCompilations",
"feedHideExcerpts"
-], aM = {
+], sM = {
batchSize: 60,
defaultSort: "seed",
sortDefaultsVersion: 3,
@@ -31820,56 +31820,56 @@ var lle = "peach.settings.v1", ule = [
theme: "system",
groupCollapse: !0,
sidebarOrder: [...Ll],
- homeGlow: tM,
- accent: Zj,
+ homeGlow: rM,
+ accent: $j,
performerNameLanguage: "zh-CN"
-}, oM = (e, t, n) => t.includes(e) ? e : n;
-function fle(e) {
+}, cM = (e, t, n) => t.includes(e) ? e : n;
+function ule(e) {
let t = e && typeof e == "object" ? e : {}, n = {
- ...aM,
+ ...sM,
...t
};
- n.followInitialDays = iM.includes(+n.followInitialDays) ? +n.followInitialDays : 30, delete n.rotateMinutes;
+ n.followInitialDays = oM.includes(+n.followInitialDays) ? +n.followInitialDays : 30, delete n.rotateMinutes;
let r = !1, i = +n.sortDefaultsVersion || 0;
i < 2 && n.defaultSort === "new" && (n.defaultSort = "seed", r = !0);
- let a = Rj[n.defaultSort];
- return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = Nj(+n.batchSize, 1, 200, 60), n.defaultSort = oM(n.defaultSort, Ij, "seed"), n.hoverDelaySeconds = Nj(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = Nj(+n.seekSeconds, 1, 300, 10), delete n.loginDays, delete n.metadataRefreshDays, n.ambientMode = n.ambientMode !== !1, n.theaterMode = n.theaterMode === !0, n.groupCollapse = n.groupCollapse !== !1, n.detailAutoplay = n.detailAutoplay !== !1, n.miniplayer = n.miniplayer !== !1, n.uiSounds = n.uiSounds !== !1, n.feedAutoScroll = n.feedAutoScroll !== !1, n.feedHideGroupCompilations = n.feedHideGroupCompilations !== !1, n.feedHideSoloCompilations = n.feedHideSoloCompilations === !0, n.feedHideExcerpts = n.feedHideExcerpts !== !1, n.searchHistoryLimit = Nj(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = Nj(+n.relatedLimit, 0, 60, 20), n.feedLimit = Nj(+n.feedLimit, 1, 100, 12), Object.assign(n, Qa(n)), n.theme = oM(n.theme, ule, "system"), n.performerNameLanguage = oM(n.performerNameLanguage, ["zh-CN", "ja"], "zh-CN"), n.homeGlow = nM(n.homeGlow), n.accent = Qj(n.accent), n.sidebarOrder = Vl(n.sidebarOrder), {
+ let a = Bj[n.defaultSort];
+ return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = Fj(+n.batchSize, 1, 200, 60), n.defaultSort = cM(n.defaultSort, Rj, "seed"), n.hoverDelaySeconds = Fj(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = Fj(+n.seekSeconds, 1, 300, 10), delete n.loginDays, delete n.metadataRefreshDays, n.ambientMode = n.ambientMode !== !1, n.theaterMode = n.theaterMode === !0, n.groupCollapse = n.groupCollapse !== !1, n.detailAutoplay = n.detailAutoplay !== !1, n.miniplayer = n.miniplayer !== !1, n.uiSounds = n.uiSounds !== !1, n.feedAutoScroll = n.feedAutoScroll !== !1, n.feedHideGroupCompilations = n.feedHideGroupCompilations !== !1, n.feedHideSoloCompilations = n.feedHideSoloCompilations === !0, n.feedHideExcerpts = n.feedHideExcerpts !== !1, n.searchHistoryLimit = Fj(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = Fj(+n.relatedLimit, 0, 60, 20), n.feedLimit = Fj(+n.feedLimit, 1, 100, 12), Object.assign(n, Qa(n)), n.theme = cM(n.theme, cle, "system"), n.performerNameLanguage = cM(n.performerNameLanguage, ["zh-CN", "ja"], "zh-CN"), n.homeGlow = iM(n.homeGlow), n.accent = eM(n.accent), n.sidebarOrder = Vl(n.sidebarOrder), {
settings: n,
migrated: r
};
}
-function ple(e) {
+function dle(e) {
let t = {};
try {
t = JSON.parse(e.getItem("peach.settings.v1") || "{}");
} catch {}
- return fle(t);
+ return ule(t);
}
-var sM = null;
-function cM() {
- if (sM) return sM;
- let { settings: e, migrated: t } = ple(localStorage);
- return sM = Qce(lle, e), t && sM.save(), sM;
+var lM = null;
+function uM() {
+ if (lM) return lM;
+ let { settings: e, migrated: t } = dle(localStorage);
+ return lM = Xce(sle, e), t && lM.save(), lM;
}
-function lM(e, t, n = cM()) {
+function dM(e, t, n = uM()) {
let r = n.value, i = e?.performerNameLanguage;
(i === "zh-CN" || i === "ja") && i !== r.performerNameLanguage && (r.performerNameLanguage = i, n.save(), t("performerNameLanguage"));
let a = e && e.followInitialDays;
- iM.includes(a) && (r.followInitialDays = a, n.save());
- for (let t of dle) typeof e?.[t] == "boolean" && e[t] !== r[t] && (r[t] = e[t], n.save());
+ oM.includes(a) && (r.followInitialDays = a, n.save());
+ for (let t of lle) typeof e?.[t] == "boolean" && e[t] !== r[t] && (r[t] = e[t], n.save());
let o = e && e.searchHistoryLimit;
- Number.isInteger(o) && o >= 0 && o <= 50 ? o !== r.searchHistoryLimit && (r.searchHistoryLimit = Nj(o, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== aM.searchHistoryLimit && mle(n);
+ Number.isInteger(o) && o >= 0 && o <= 50 ? o !== r.searchHistoryLimit && (r.searchHistoryLimit = Fj(o, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== sM.searchHistoryLimit && fle(n);
let s = Array.isArray(e && e.sidebarOrder) ? e.sidebarOrder : null;
s && s.length && s.join(",") !== r.sidebarOrder.join(",") && (r.sidebarOrder = s, n.save());
}
-function mle(e = cM()) {
+function fle(e = uM()) {
return wn("/api/settings", {
method: "POST",
body: JSON.stringify({ searchHistoryLimit: e.value.searchHistoryLimit })
}).catch(() => {});
}
// src/appearance/theme.ts
-var hle = [
+var ple = [
[
"system",
"跟随系统",
@@ -31885,31 +31885,31 @@ var hle = [
"深色",
"moon"
]
-], gle = null, uM = () => gle ??= matchMedia("(prefers-color-scheme: dark)"), dM = null;
-function _le() {
- return dM || (dM = document.createElement("style"), dM.textContent = "*:not(.board-theme-thumb),*::before,*::after{transition:none!important}"), dM.isConnected || document.head.append(dM), () => {
+], mle = null, fM = () => mle ??= matchMedia("(prefers-color-scheme: dark)"), pM = null;
+function hle() {
+ return pM || (pM = document.createElement("style"), pM.textContent = "*:not(.board-theme-thumb),*::before,*::after{transition:none!important}"), pM.isConnected || document.head.append(pM), () => {
getComputedStyle(document.documentElement).opacity;
let e = () => {
- cancelAnimationFrame(t), clearTimeout(n), dM?.remove();
+ cancelAnimationFrame(t), clearTimeout(n), pM?.remove();
}, t = requestAnimationFrame(e), n = setTimeout(e, 100);
};
}
-function fM(e = cM().value.theme) {
- let t = _le(), n = document.documentElement;
+function mM(e = uM().value.theme) {
+ let t = hle(), n = document.documentElement;
e === "system" ? delete n.dataset.theme : n.dataset.theme = e;
- let r = e === "dark" || e === "system" && uM().matches;
+ let r = e === "dark" || e === "system" && fM().matches;
n.classList.toggle("dark", r), document.querySelectorAll("[data-board-theme]").forEach((e) => e.setAttribute("aria-pressed", String(e.dataset.boardTheme === "dark" === r))), document.querySelector(".board-theme-toggle")?.classList.toggle("is-dark", r), document.querySelectorAll("meta[data-theme-color]").forEach((e) => {
e.media = e.dataset.themeColor === "dark" === r ? "all" : "not all";
}), t();
}
-var pM = !1;
-function vle() {
- pM || (pM = !0, uM().addEventListener("change", () => {
- cM().value.theme === "system" && fM();
+var hM = !1;
+function gle() {
+ hM || (hM = !0, fM().addEventListener("change", () => {
+ uM().value.theme === "system" && mM();
}));
}
// src/appearance/layout.ts
-var mM = [[
+var gM = [[
"big",
"大图",
"maximize"
@@ -31917,7 +31917,7 @@ var mM = [[
"small",
"小图",
"layout-grid"
-]], hM = [[
+]], _M = [[
"big",
"大图",
"maximize"
@@ -31925,7 +31925,7 @@ var mM = [[
"small",
"小图",
"layout-grid"
-]], gM = [[
+]], vM = [[
"fixed",
"固定比例",
"layout-grid"
@@ -31933,127 +31933,127 @@ var mM = [[
"masonry",
"瀑布流",
"columns-2"
-]], _M = .75, vM = () => cM().value, yM = (e = vM()) => Za(e.javLayout), yle = (e = vM()) => Za(e.homeLayout), bM = (e, t = vM()) => e ? yle(t) : yM(t), xM = hM.map(([e]) => e), SM = gM.map(([e]) => e), CM = (e = vM()) => oM(e.photoSize, xM, "small"), wM = (e = vM()) => oM(e.photoLayout, SM, "masonry"), TM = null;
-function EM(e, t = vM()) {
+]], yM = .75, bM = () => uM().value, xM = (e = bM()) => Za(e.javLayout), _le = (e = bM()) => Za(e.homeLayout), SM = (e, t = bM()) => e ? _le(t) : xM(t), CM = _M.map(([e]) => e), wM = vM.map(([e]) => e), TM = (e = bM()) => cM(e.photoSize, CM, "small"), EM = (e = bM()) => cM(e.photoLayout, wM, "masonry"), DM = null;
+function OM(e, t = bM()) {
let n = {
active: e.active,
- size: bM(e.home, t),
+ size: SM(e.home, t),
portrait: e.portrait,
javImage: t.javImage
- }, r = TM;
- return (!r || Object.keys(n).some((e) => n[e] !== r[e])) && (TM = n), TM;
+ }, r = DM;
+ return (!r || Object.keys(n).some((e) => n[e] !== r[e])) && (DM = n), DM;
}
-function DM(e) {
- return e.portrait ? 9 / 16 : e.active && e.size === "big" ? _M : 16 / 9;
+function kM(e) {
+ return e.portrait ? 9 / 16 : e.active && e.size === "big" ? yM : 16 / 9;
}
-function ble(e, t = cM()) {
+function vle(e, t = uM()) {
t.value.homeLayout = Za(e), t.save();
}
-function OM(e, t = cM()) {
+function AM(e, t = uM()) {
t.value.javLayout = Za(e), t.save();
}
-function xle(e, t = cM()) {
+function yle(e, t = uM()) {
t.value.homeLayout = t.value.javLayout = Za(e), t.save();
}
-function Sle(e, t = cM()) {
- t.value.photoSize = oM(e, xM, "small"), t.save();
+function ble(e, t = uM()) {
+ t.value.photoSize = cM(e, CM, "small"), t.save();
}
-function kM(e, t = cM()) {
- t.value.photoLayout = oM(e, SM, "masonry"), t.save();
+function jM(e, t = uM()) {
+ t.value.photoLayout = cM(e, wM, "masonry"), t.save();
}
// src/appearance/density.ts
-var AM = "density", jM = {
+var MM = "density", NM = {
big: "336px",
dense: "168px"
-}, MM = () => localStorage.getItem(AM) === "dense" ? "dense" : "big";
-function NM(e, t) {
- let [n, r] = hM;
+}, PM = () => localStorage.getItem(MM) === "dense" ? "dense" : "big";
+function FM(e, t) {
+ let [n, r] = _M;
if (e.querySelector("[data-icon-swap]")) Ks(e, t === r[0] ? "b" : "a");
else {
let i = e.querySelector(":scope > [data-glass-drift]");
e.innerHTML = Gs(n[2], r[2], t === r[0] ? "b" : "a"), i && e.append(i);
}
- PM(e, "aria-label", t === "big" ? "切换为小图" : "切换为大图");
+ IM(e, "aria-label", t === "big" ? "切换为小图" : "切换为大图");
}
-function PM(e, t, n) {
+function IM(e, t, n) {
e.getAttribute(t) !== n && e.setAttribute(t, n);
}
-var FM = () => document.querySelector("#density");
-function IM(e = MM()) {
+var LM = () => document.querySelector("#density");
+function RM(e = PM()) {
let t = document.documentElement;
- t.style.getPropertyValue("--tile") !== jM[e] && t.style.setProperty("--tile", jM[e]), PM(document.body, "data-density", e);
- let n = FM();
- n && (PM(n, "aria-pressed", String(e === "dense")), PM(n, "title", "当前:" + (e === "big" ? "大图" : "密集")), NM(n, e === "big" ? "big" : "small"));
+ t.style.getPropertyValue("--tile") !== NM[e] && t.style.setProperty("--tile", NM[e]), IM(document.body, "data-density", e);
+ let n = LM();
+ n && (IM(n, "aria-pressed", String(e === "dense")), IM(n, "title", "当前:" + (e === "big" ? "大图" : "密集")), FM(n, e === "big" ? "big" : "small"));
}
-function Cle() {
- let e = MM() === "big" ? "dense" : "big";
- localStorage.setItem(AM, e), IM(e);
+function xle() {
+ let e = PM() === "big" ? "dense" : "big";
+ localStorage.setItem(MM, e), RM(e);
}
-function wle(e) {
- let t = FM();
- t && (PM(t, "aria-pressed", String(e === "small")), PM(t, "title", "当前:" + (e === "big" ? "大图" : "小图")), NM(t, e));
+function Sle(e) {
+ let t = LM();
+ t && (IM(t, "aria-pressed", String(e === "small")), IM(t, "title", "当前:" + (e === "big" ? "大图" : "小图")), FM(t, e));
}
// src/appearance/glow.ts
-function LM(e = cM()) {
- sle(document.querySelector(".glowlayer"), e.value.homeGlow);
+function zM(e = uM()) {
+ ale(document.querySelector(".glowlayer"), e.value.homeGlow);
}
-var RM = 0;
-function zM(e = cM()) {
- RM ||= requestAnimationFrame(() => {
- RM = 0, LM(e);
+var BM = 0;
+function VM(e = uM()) {
+ BM ||= requestAnimationFrame(() => {
+ BM = 0, zM(e);
});
}
-function BM(e = cM()) {
- cle(document.documentElement, e.value.homeGlow);
+function HM(e = uM()) {
+ ole(document.documentElement, e.value.homeGlow);
}
-function VM(e = cM()) {
+function UM(e = uM()) {
document.documentElement.dataset.accent = e.value.accent;
}
-var HM = (e, t, n) => ({
+var WM = (e, t, n) => ({
key: e,
label: t,
- native: qj(e),
- fill: qj(e) ? "" : ole(n)
+ native: Yj(e),
+ fill: Yj(e) ? "" : ile(n)
});
-function Tle(e) {
- let t = Kj.map(([e, t, n]) => HM(e, t, Wj.map((e) => n[e].color)));
- return e.preset === "custom" && t.push(HM("custom", "自定义", Wj.map((t) => e[t].color))), t;
+function Cle(e) {
+ let t = Jj.map(([e, t, n]) => WM(e, t, Kj.map((e) => n[e].color)));
+ return e.preset === "custom" && t.push(WM("custom", "自定义", Kj.map((t) => e[t].color))), t;
}
-var Ele = Xj;
-function Dle(e, t = cM()) {
+var wle = Qj;
+function Tle(e, t = uM()) {
if (e === "custom") return;
let n = t.value.homeGlow;
- n.preset = e, Object.assign(n, Yj(e)), t.value.accent = tle(e), t.save(), zM(t), BM(t), VM(t);
+ n.preset = e, Object.assign(n, Zj(e)), t.value.accent = $ce(e), t.save(), VM(t), HM(t), UM(t);
}
-function Ole(e, t = cM()) {
- t.value.accent = Qj(e), t.save(), VM(t);
+function Ele(e, t = uM()) {
+ t.value.accent = eM(e), t.save(), UM(t);
}
-function kle(e = cM()) {
+function Dle(e = uM()) {
let t = e.value.homeGlow;
- t.preset = tM.preset, Object.assign(t, Yj(t.preset)), e.value.accent = Zj, e.save(), zM(e), BM(e), VM(e);
+ t.preset = rM.preset, Object.assign(t, Zj(t.preset)), e.value.accent = $j, e.save(), VM(e), HM(e), UM(e);
}
-function UM(e, t) {
- e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && qj(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
+function GM(e, t) {
+ e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && Yj(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
}
-function Ale(e, t = cM()) {
- return UM(e, t.value.homeGlow), t.subscribe(() => UM(e, t.value.homeGlow));
+function Ole(e, t = uM()) {
+ return GM(e, t.value.homeGlow), t.subscribe(() => GM(e, t.value.homeGlow));
}
// src/react/components/glow-preset-grid.tsx
-function WM({ store: e, label: t, hidden: n }) {
+function KM({ store: e, label: t, hidden: n }) {
let r = e.value.homeGlow;
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-glow-grid": "",
role: "group",
"aria-label": t,
hidden: n,
- children: Tle(r).map((t) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: Cle(r).map((t) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glow-chip": "",
"data-glow-preset": t.key,
"aria-pressed": t.key === r.preset,
title: t.label,
"aria-label": t.label,
- onClick: () => Dle(t.key, e),
+ onClick: () => Tle(t.key, e),
children: /* @__PURE__ */ (0, I.jsx)("span", {
"data-glow-ball": "",
"aria-hidden": "true",
@@ -32064,14 +32064,14 @@ function WM({ store: e, label: t, hidden: n }) {
});
}
// src/react/glow-picker/glow-picker-island.tsx
-var GM = null;
-function jle(e) {
- GM = e;
+var qM = null;
+function kle(e) {
+ qM = e;
}
-function Mle() {
- return GM ? /* @__PURE__ */ (0, I.jsx)(Nle, { host: GM }) : null;
+function Ale() {
+ return qM ? /* @__PURE__ */ (0, I.jsx)(jle, { host: qM }) : null;
}
-function Nle({ host: e }) {
+function jle({ host: e }) {
let { store: t } = e;
(0, F.useSyncExternalStore)(t.subscribe, t.version);
let { homeGlow: n, accent: r } = t.value;
@@ -32083,11 +32083,11 @@ function Nle({ host: e }) {
children: [/* @__PURE__ */ (0, I.jsx)("span", { children: "光晕" }), /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glow-preset-reset": "",
- onClick: () => kle(t),
+ onClick: () => Dle(t),
children: "重置"
})]
}),
- /* @__PURE__ */ (0, I.jsx)(WM, {
+ /* @__PURE__ */ (0, I.jsx)(KM, {
store: t,
label: "光晕",
hidden: !n.on
@@ -32101,14 +32101,14 @@ function Nle({ host: e }) {
"data-accent-grid": "",
role: "group",
"aria-label": "强调色",
- children: Ele.map(([e, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: wle.map(([e, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glow-chip": "",
"data-accent": e,
"aria-pressed": e === r,
title: n,
"aria-label": n,
- onClick: () => Ole(e, t),
+ onClick: () => Ele(e, t),
children: /* @__PURE__ */ (0, I.jsx)("span", {
"data-glow-ball": "",
"aria-hidden": "true",
@@ -32126,31 +32126,31 @@ function Nle({ host: e }) {
] });
}
// src/player/host.ts
-var KM = null;
-function Ple(e) {
- KM = e;
+var JM = null;
+function Mle(e) {
+ JM = e;
}
-function qM() {
- if (!KM) throw Error("播放器还没有接上宿主(configurePlayer)");
- return KM;
+function YM() {
+ if (!JM) throw Error("播放器还没有接上宿主(configurePlayer)");
+ return JM;
}
// src/player/menu.ts
-var JM = null;
-function Fle(e) {
- JM = e;
+var XM = null;
+function Nle(e) {
+ XM = e;
}
-function Ile() {
+function Ple() {
let e = document.getElementById("playerMenu");
return e || (e = document.createElement("div"), e.className = "popmenu", e.setAttribute("data-player-context-menu", ""), e.id = "playerMenu", e.setAttribute("role", "menu"), e.setAttribute("aria-label", "播放器菜单"), e.hidden = !0, document.body.append(e)), e;
}
-var YM = null, XM = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
-function ZM() {
+var ZM = null, QM = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
+function $M() {
let e = document.getElementById("playerMenu");
e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && cs(e, () => {
e.innerHTML = "";
- }), YM &&= (YM(), null);
+ }), ZM &&= (ZM(), null);
}
-async function Lle(e) {
+async function Fle(e) {
try {
return await navigator.clipboard.writeText(e), !0;
} catch {
@@ -32163,8 +32163,8 @@ async function Lle(e) {
return t.remove(), n;
}
}
-function Rle(e) {
- let t = !!JM?.inMiniplayer(e), n = e.peachItem, r = JM?.kind(e) ?? "item", i = (t) => {
+function Ile(e) {
+ let t = !!XM?.inMiniplayer(e), n = e.peachItem, r = XM?.kind(e) ?? "item", i = (t) => {
let i = new URL(r === "follow" ? `/posts/${n?.id}` : `/assets/${n?.id}`, location.origin);
if (r !== "follow" && location.pathname === i.pathname) {
let e = new URLSearchParams(location.search);
@@ -32180,7 +32180,7 @@ function Rle(e) {
}
return t && i.searchParams.set("t", String(Math.floor(e.currentTime() || 0))), i.href;
}, a = (e, t) => {
- Lle(i(e)).then((e) => qM().toast(e ? t : "复制失败,请手动复制地址栏", {
+ Fle(i(e)).then((e) => YM().toast(e ? t : "复制失败,请手动复制地址栏", {
timeout: 4e3,
warn: !e
}));
@@ -32192,11 +32192,11 @@ function Rle(e) {
}, t ? {
icon: "maximize-2",
label: "展开",
- run: () => JM?.expand()
+ run: () => XM?.expand()
} : {
icon: "picture-in-picture-2",
label: "迷你播放器",
- run: () => JM?.toMiniplayer()
+ run: () => XM?.toMiniplayer()
}];
document.pictureInPictureEnabled && o.push({
icon: "player-pip",
@@ -32219,29 +32219,29 @@ function Rle(e) {
run: () => s.click()
}), o;
}
-function zle(e, t, n) {
- let r = Ile();
- ZM();
- let i = qM().stage();
+function Lle(e, t, n) {
+ let r = Ple();
+ $M();
+ let i = YM().stage();
i instanceof HTMLDialogElement && i.open && i.append(r), r.setAttribute("popover", "manual");
- let a = Rle(e);
+ let a = Ile(e);
r.innerHTML = a.map((e, t) => {
let n = e.checked !== void 0;
- return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${XM(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${z(e.label)}</span>${n ? XM(R("check"), "data-player-menu-check") : ""}</button>`;
+ return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${QM(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${z(e.label)}</span>${n ? QM(R("check"), "data-player-menu-check") : ""}</button>`;
}).join(""), ss(r), r.showPopover(), r.style.left = `${Math.max(8, Math.min(t, innerWidth - r.offsetWidth - 8))}px`, r.style.top = `${Math.max(8, Math.min(n, innerHeight - r.offsetHeight - 8))}px`;
let o = [...r.querySelectorAll("[data-player-menu]")];
o.forEach((e) => {
e.onclick = (t) => {
t.stopPropagation();
let n = a[Number(e.dataset.playerMenu)];
- ZM(), n?.run();
+ $M(), n?.run();
};
});
let s = (e) => {
- r.contains(e.target) || ZM();
+ r.contains(e.target) || $M();
}, c = (e) => {
if (e.key === "Escape") {
- e.preventDefault(), e.stopPropagation(), ZM();
+ e.preventDefault(), e.stopPropagation(), $M();
return;
}
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
@@ -32249,49 +32249,49 @@ function zle(e, t, n) {
let t = o.indexOf(document.activeElement);
o[(t + (e.key === "ArrowDown" ? 1 : -1) + o.length) % o.length]?.focus();
}, l = (t) => {
- us(t, e.el()) && ZM();
+ us(t, e.el()) && $M();
};
setTimeout(() => {
document.addEventListener("pointerdown", s, !0), document.addEventListener("keydown", c, !0), window.addEventListener("scroll", l, {
capture: !0,
passive: !0
});
- }, 0), YM = () => {
+ }, 0), ZM = () => {
document.removeEventListener("pointerdown", s, !0), document.removeEventListener("keydown", c, !0), window.removeEventListener("scroll", l, !0);
}, o[0]?.focus();
}
-function Ble(e) {
+function Rle(e) {
e.el().addEventListener("contextmenu", (t) => {
- t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), zle(e, t.clientX, t.clientY));
- }), e.on("dispose", ZM);
+ t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), Lle(e, t.clientX, t.clientY));
+ }), e.on("dispose", $M);
}
// src/player/registry.ts
-var QM = null, $M = () => QM;
-function eN(e) {
- QM = e;
+var eN = null, tN = () => eN;
+function nN(e) {
+ eN = e;
}
-function tN(e) {
+function rN(e) {
e && !e.isDisposed() && requestAnimationFrame(() => {
e.isDisposed() || e.trigger("resize");
});
}
// src/player/stats.ts
-function nN(e) {
+function iN(e) {
let t = e.currentTime || 0;
for (let n = 0; n < e.buffered.length; n++) if (e.buffered.start(n) <= t && e.buffered.end(n) >= t) return Math.max(0, e.buffered.end(n) - t);
return 0;
}
-function Vle(e) {
+function zle(e) {
let t = e.currentTime || 0;
for (let n = 0; n < e.buffered.length; n++) if (e.buffered.start(n) <= t + .25 && e.buffered.end(n) >= t) return e.buffered.end(n);
return e.buffered.length ? e.buffered.end(e.buffered.length - 1) : 0;
}
-var rN = 3e3;
-function iN(e, t) {
+var aN = 3e3;
+function oN(e, t) {
let n = Number(e) || 0, r = Kn(t) || 0;
return n > 0 && r > 0 ? n * 8 / r : 0;
}
-function Hle(e) {
+function Ble(e) {
let t = [], n = null, r = 0, i = 0;
return {
bitrate: Number(e) || 0,
@@ -32306,10 +32306,10 @@ function Hle(e) {
},
sample(e) {
if (!e) return i;
- let a = performance.now(), o = Vle(e), s = e.currentTime || 0;
+ let a = performance.now(), o = zle(e), s = e.currentTime || 0;
if (n) {
let e = (a - n.at) / 1e3, i = Math.abs(s - n.ct) > e * 4 + 1, c = o - n.frontier;
- !i && c > 0 && (r += c), e * 1e3 > rN * 2 && (t.length = 0);
+ !i && c > 0 && (r += c), e * 1e3 > aN * 2 && (t.length = 0);
}
for (n = {
at: a,
@@ -32318,55 +32318,55 @@ function Hle(e) {
}, t.push({
at: a,
advanced: r
- }); t.length > 2 && a - t[0].at > rN;) t.shift();
+ }); t.length > 2 && a - t[0].at > aN;) t.shift();
let c = t[0], l = (a - c.at) / 1e3, u = r - c.advanced;
return l >= .5 && u > 0 && this.bitrate > 0 && (i = u * this.bitrate / l), i;
}
};
}
-var aN = 24;
-function oN(e, t) {
- e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > aN && e.splice(0, e.length - aN);
+var sN = 24;
+function cN(e, t) {
+ e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > sN && e.splice(0, e.length - sN);
}
-var sN = "peach-player-panel";
-function cN(e, t, n, r) {
- let i = [...Array(Math.max(0, aN - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
+var lN = "peach-player-panel";
+function uN(e, t, n, r) {
+ let i = [...Array(Math.max(0, sN - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
if (e === null) return "<i aria-hidden=\"true\"></i>";
let n = e <= 0 ? 0 : Math.max(.08, Math.min(1, e / a));
return `<i data-bar="${t === "buffer" ? e < 5 ? "low" : e < 15 ? "mid" : "good" : "on"}" style="height:${(n * 100).toFixed(1)}%" aria-hidden="true"></i>`;
}).join("");
return `<span data-player-stats-plot="${t}" role="img" aria-label="${z(r)}">${o}</span>`;
}
-function lN() {
+function dN() {
return `<button data-player-stats-button="" id="playerStatsBtn" aria-label="播放统计" title="播放统计" aria-pressed="false" hidden>${R("chart")}</button>
<div data-player-net="" id="playerNet" role="status" aria-live="polite" hidden></div>
<div data-player-stats="" id="playerStats" role="status" hidden></div>`;
}
-function uN(e, t = "") {
+function fN(e, t = "") {
let n = t ? encodeURIComponent(t) : "";
return performance.getEntriesByType("resource").filter((t) => t.name.includes("/stream") && (t.name.includes(`/stream?id=${e}`) || t.name.includes(`/stream/hls/${e}/`)) && (!n || t.name.includes(`session=${n}`)));
}
-function dN(e, t = "") {
- let n = uN(e, t), r = n.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), i = n.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
+function pN(e, t = "") {
+ let n = fN(e, t), r = n.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), i = n.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
return r > 0 && i > 0 ? r * 8 / i : 0;
}
-function fN(e, t, n = "", r = null) {
+function mN(e, t, n = "", r = null) {
let i = 0;
try {
i = Number(e?.bandwidth?.()) || 0;
} catch {}
- return i > 0 ? i : r ? Number(r.bits) || 0 : dN(t, n);
+ return i > 0 ? i : r ? Number(r.bits) || 0 : pN(t, n);
}
-function pN(e) {
+function hN(e) {
if (!Number.isFinite(e) || e <= 0) return "加载中…";
let t = e / 8;
return t >= 1048576 ? `${(t / 1048576).toFixed(1)} MB/s` : `${Math.max(1, Math.round(t / 1024))} KB/s`;
}
-function Ule(e, t) {
- return e > 0 ? pN(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : pN(0);
+function Vle(e, t) {
+ return e > 0 ? hN(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : hN(0);
}
// src/player/subtitle-style.ts
-var mN = {
+var gN = {
font: {
label: "字体",
values: [
@@ -32469,7 +32469,7 @@ var mN = {
["shadow", "阴影"]
]
}
-}, hN = {
+}, _N = {
font: "sans",
size: "100",
color: "white",
@@ -32479,7 +32479,7 @@ var mN = {
window: "black",
windowOpacity: "0",
edge: "shadow"
-}, gN = "peach.caption-style.v1", Wle = {
+}, vN = "peach.caption-style.v1", Hle = {
white: "255,255,255",
yellow: "255,255,0",
green: "0,255,0",
@@ -32488,7 +32488,7 @@ var mN = {
magenta: "255,0,255",
red: "255,0,0",
black: "0,0,0"
-}, Gle = {
+}, Ule = {
sans: "Arial,sans-serif",
mono: "Consolas,monospace",
serif: "Georgia,serif",
@@ -32496,28 +32496,28 @@ var mN = {
casual: "\"Comic Sans MS\",sans-serif",
cursive: "cursive",
"small-caps": "Arial,sans-serif"
-}, Kle = {
+}, Wle = {
none: "none",
raised: "-1px -1px 0 #ddd,1px 1px 0 #222",
depressed: "1px 1px 0 #ddd,-1px -1px 0 #222",
outline: "-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000",
shadow: "2px 2px 3px #000"
};
-function qle() {
+function Gle() {
let e = {};
try {
- e = JSON.parse(localStorage.getItem(gN) || "{}") || {};
+ e = JSON.parse(localStorage.getItem(vN) || "{}") || {};
} catch {}
- return Object.fromEntries(Object.entries(hN).map(([t, n]) => [t, mN[t].values.some(([n]) => n === e[t]) ? e[t] : n]));
+ return Object.fromEntries(Object.entries(_N).map(([t, n]) => [t, gN[t].values.some(([n]) => n === e[t]) ? e[t] : n]));
}
-function _N(e, t, n, r) {
- let i = qle(), a = /* @__PURE__ */ new Set(), o = document.createElement("div");
+function yN(e, t, n, r) {
+ let i = Gle(), a = /* @__PURE__ */ new Set(), o = document.createElement("div");
o.className = "vjs-peach-captions", o.setAttribute("aria-hidden", "true");
let s = document.createElement("div");
s.className = "vjs-peach-caption-window", o.append(s), e.querySelector("media-container").append(o), e.dataset.peachCaptions = "";
let c = () => {
- let t = (e, t) => `rgba(${Wle[e]},${Number(t) / 100})`;
- e.style.setProperty("--peach-caption-font", Gle[i.font]), e.style.setProperty("--peach-caption-scale", String(Number(i.size) / 100)), e.style.setProperty("--peach-caption-color", t(i.color, i.opacity)), e.style.setProperty("--peach-caption-background", t(i.background, i.backgroundOpacity)), e.style.setProperty("--peach-caption-window", t(i.window, i.windowOpacity)), e.style.setProperty("--peach-caption-edge", Kle[i.edge]), e.style.setProperty("--peach-caption-variant", i.font === "small-caps" ? "small-caps" : "normal");
+ let t = (e, t) => `rgba(${Hle[e]},${Number(t) / 100})`;
+ e.style.setProperty("--peach-caption-font", Ule[i.font]), e.style.setProperty("--peach-caption-scale", String(Number(i.size) / 100)), e.style.setProperty("--peach-caption-color", t(i.color, i.opacity)), e.style.setProperty("--peach-caption-background", t(i.background, i.backgroundOpacity)), e.style.setProperty("--peach-caption-window", t(i.window, i.windowOpacity)), e.style.setProperty("--peach-caption-edge", Wle[i.edge]), e.style.setProperty("--peach-caption-variant", i.font === "small-caps" ? "small-caps" : "normal");
}, l = () => {
s.replaceChildren();
for (let e of t.textTracks) if (e.mode === "showing" && ["subtitles", "captions"].includes(e.kind)) for (let t of Array.from(e.activeCues || [])) {
@@ -32533,15 +32533,15 @@ function _N(e, t, n, r) {
if (!n.aborted) {
if (e.caption_style) {
let t = {
- ...hN,
+ ..._N,
...e.caption_style
};
- for (let e of Object.keys(hN)) a.has(e) || (i[e] = t[e]);
+ for (let e of Object.keys(_N)) a.has(e) || (i[e] = t[e]);
c();
} else {
let e = !1;
try {
- e = !!localStorage.getItem(gN);
+ e = !!localStorage.getItem(vN);
} catch {}
e && !a.size && r.save({ caption_style: i }).catch(() => {});
}
@@ -32549,18 +32549,18 @@ function _N(e, t, n, r) {
}), {
current: () => i,
set(e, t) {
- mN[e].values.some(([e]) => e === t) && (a.add(e), i = {
+ gN[e].values.some(([e]) => e === t) && (a.add(e), i = {
...i,
[e]: t
}, c(), r?.save({ caption_style: { [e]: t } }).catch(() => {}));
},
reset() {
- Object.keys(hN).forEach((e) => a.add(e)), i = { ...hN }, c(), r?.save({ caption_style: i }).catch(() => {});
+ Object.keys(_N).forEach((e) => a.add(e)), i = { ..._N }, c(), r?.save({ caption_style: i }).catch(() => {});
}
};
}
// src/player/memory.ts
-var vN = /* @__PURE__ */ new Map(), yN = /* @__PURE__ */ new WeakMap(), Jle = class {
+var bN = /* @__PURE__ */ new Map(), xN = /* @__PURE__ */ new WeakMap(), Kle = class {
cleanup = new AbortController();
reading;
listeners = /* @__PURE__ */ new Set();
@@ -32588,7 +32588,7 @@ var vN = /* @__PURE__ */ new Map(), yN = /* @__PURE__ */ new WeakMap(), Jle = cl
}
load() {
return this.url ? this.reading ||= (async () => {
- await vN.get(this.url)?.catch(() => {});
+ await bN.get(this.url)?.catch(() => {});
let e = await wn(this.url, { signal: this.cleanup.signal });
return this.cleanup.signal.aborted || (this.restored = e, this.restorers.forEach((t) => t(e)), this.changed()), e;
})().catch((e) => {
@@ -32600,7 +32600,7 @@ var vN = /* @__PURE__ */ new Map(), yN = /* @__PURE__ */ new WeakMap(), Jle = cl
}
save(e) {
if (!this.url) return Promise.resolve();
- let t = (vN.get(this.url) || Promise.resolve()).catch(() => {}).then(async () => {
+ let t = (bN.get(this.url) || Promise.resolve()).catch(() => {}).then(async () => {
let t = {
...this.unsaved,
...e,
@@ -32627,8 +32627,8 @@ var vN = /* @__PURE__ */ new Map(), yN = /* @__PURE__ */ new WeakMap(), Jle = cl
this.changed();
}
});
- return vN.set(this.url, t), t.finally(() => {
- vN.get(this.url) === t && vN.delete(this.url);
+ return bN.set(this.url, t), t.finally(() => {
+ bN.get(this.url) === t && bN.delete(this.url);
}).catch(() => {}), t;
}
async retry() {
@@ -32637,12 +32637,12 @@ var vN = /* @__PURE__ */ new Map(), yN = /* @__PURE__ */ new WeakMap(), Jle = cl
} catch {}
}
};
-function bN(e) {
- let t = yN.get(e);
- return t || (t = new Jle(e), yN.set(e, t)), t;
+function SN(e) {
+ let t = xN.get(e);
+ return t || (t = new Kle(e), xN.set(e, t)), t;
}
-function xN(e, t) {
- let n = bN(e), r = Number(e.playbackRate()) || 1, i = !1, a = () => {
+function CN(e, t) {
+ let n = SN(e), r = Number(e.playbackRate()) || 1, i = !1, a = () => {
t.defaultPlaybackRate = r, Number(e.playbackRate()) !== r && e.playbackRate(r);
};
return n.restore((t) => {
@@ -32655,7 +32655,7 @@ function xN(e, t) {
};
}
// src/player/subtitle-memory.ts
-var SN = class {
+var wN = class {
player;
video;
changed;
@@ -32666,7 +32666,7 @@ var SN = class {
ready;
error = "";
constructor(e, t, n = () => {}) {
- this.player = e, this.video = t, this.changed = n, this.memory = bN(e);
+ this.player = e, this.video = t, this.changed = n, this.memory = SN(e);
let r = this.cleanup.signal;
t.textTracks.addEventListener("addtrack", () => {
this.apply(), this.changed();
@@ -32763,7 +32763,7 @@ var SN = class {
throw a.remove(), URL.revokeObjectURL(i), e;
}
}
-}, CN = () => "<svg viewBox=\"0 0 36 36\" aria-hidden=\"true\"><path d=\"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z\"/></svg>", Yle = class {
+}, TN = () => "<svg viewBox=\"0 0 36 36\" aria-hidden=\"true\"><path d=\"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z\"/></svg>", qle = class {
player;
video;
panels;
@@ -32782,7 +32782,7 @@ var SN = class {
more = !1;
searched = !1;
constructor(e, t, n) {
- this.player = e, this.video = t, this.panels = n, this.styles = _N(e.el(), t, this.cleanup.signal, bN(e)), this.cc = e.el().querySelector(".vjs-subtitles-control > button"), this.cc.innerHTML = CN(), this.cc.onclick = () => {
+ this.player = e, this.video = t, this.panels = n, this.styles = yN(e.el(), t, this.cleanup.signal, SN(e)), this.cc = e.el().querySelector(".vjs-subtitles-control > button"), this.cc.innerHTML = TN(), this.cc.onclick = () => {
let e = this.tracks().find((e) => e.mode === "showing");
e ? (this.last = e, this.select(null)) : this.tracks().length ? this.select(this.last && this.tracks().includes(this.last) ? this.last : this.tracks()[0]) : this.show();
}, this.input.type = "file", this.input.accept = ".srt,.ass,.ssa,.vtt", this.input.hidden = !0, this.input.setAttribute("aria-label", "加载字幕文件"), e.el().append(this.input), this.input.addEventListener("change", () => {
@@ -32792,7 +32792,7 @@ var SN = class {
this.sync(), this.page === "tracks" && this.show(0);
}, { signal: this.cleanup.signal }), e.on("dispose", () => {
this.hide(), this.cleanup.abort();
- }), this.session = new SN(e, t, () => {
+ }), this.session = new wN(e, t, () => {
this.sync(), this.page === "tracks" && this.show(0);
}), this.sync();
}
@@ -32840,7 +32840,7 @@ var SN = class {
}
options(e = 1) {
this.page = "options";
- let t = this.styles.current(), n = this.panel(this.header("字幕选项") + `<div class="vjs-peach-panel-menu">${Object.entries(mN).map(([e, n]) => {
+ let t = this.styles.current(), n = this.panel(this.header("字幕选项") + `<div class="vjs-peach-panel-menu">${Object.entries(gN).map(([e, n]) => {
let r = n.values.find(([n]) => n === t[e])?.[1] || "";
return `<button type="button" class="vjs-peach-caption-setting" data-subtitle-style="${e}"><span>${z(n.label)}</span><b>${z(r)}</b>${R("player-menu-next")}</button>`;
}).join("")}<button type="button" class="vjs-peach-caption-action" data-subtitle-reset>重置</button></div>`, () => this.show(-1), e);
@@ -32852,7 +32852,7 @@ var SN = class {
}
styleOptions(e) {
this.page = "style";
- let t = mN[e];
+ let t = gN[e];
this.panel(this.header(t.label) + `<div class="vjs-peach-panel-menu">${t.values.map(([t, n]) => {
let r = this.styles.current()[e] === t;
return `<button type="button" class="vjs-peach-menu-option" role="menuitemradio" aria-checked="${r}" data-subtitle-value="${z(t)}"><span class="vjs-peach-option-check">${r ? R("check") : ""}</span><span class="vjs-peach-option-label">${z(n)}</span></button>`;
@@ -32968,7 +32968,7 @@ var SN = class {
}
};
// src/player/timeline.ts
-function Xle(e, t) {
+function Jle(e, t) {
if (!Number.isFinite(e) || e < 0 || t.frames <= 0) return null;
if (!t.cues?.length) return t.interval > 0 ? Math.min(t.frames - 1, Math.floor(e / t.interval)) : null;
let n = 0, r = t.cues.length;
@@ -32980,8 +32980,8 @@ function Xle(e, t) {
return !a || e >= a[1] && (i !== t.cues.length - 1 || e !== a[1]) ? null : i;
}
// src/player/rotation.ts
-function wN(e, t) {
- let n = 0, r = !1, i = bN(e), a = e.el(), o = a.querySelector("media-container") || a, s = [
+function EN(e, t) {
+ let n = 0, r = !1, i = SN(e), a = e.el(), o = a.querySelector("media-container") || a, s = [
"width",
"height",
"inset",
@@ -33009,7 +33009,7 @@ function wN(e, t) {
};
}
// src/player/pip.ts
-function Zle(e, t, n, r) {
+function Yle(e, t, n, r) {
let i = e.el().querySelector("video");
if (!i || !t) return;
let a = t, o = !!document.pictureInPictureEnabled && typeof i.requestPictureInPicture == "function" || typeof i.webkitSetPresentationMode == "function";
@@ -33041,7 +33041,7 @@ function Zle(e, t, n, r) {
});
}
// src/player/controls.ts
-function TN(e, t, n = "") {
+function DN(e, t, n = "") {
if (!e) return () => {};
let r = e.querySelector(":scope>.vjs-peach-tooltip");
r || (r = document.createElement("span"), r.className = "vjs-peach-tooltip", r.setAttribute("role", "tooltip"), r.innerHTML = "<span class=\"vjs-peach-tooltip-text\"></span><kbd hidden></kbd>", e.append(r));
@@ -33052,27 +33052,27 @@ function TN(e, t, n = "") {
};
return o(), o;
}
-function EN(e, t) {
+function ON(e, t) {
e?.closest(".video-js")?.querySelector(`.vjs-control-bar ${t}`)?.click();
}
-function Qle(e, t = !0) {
- let n = qM(), r = n.settings();
+function Xle(e, t = !0) {
+ let n = YM(), r = n.settings();
r.ambientMode = !!e, t && n.saveSettings(), n.stage()?.toggleAttribute("data-ambient", r.ambientMode), document.dispatchEvent(new CustomEvent("peachambientchange", { detail: { enabled: r.ambientMode } }));
}
-var DN = /* @__PURE__ */ new WeakMap();
-function ON(e) {
+var kN = /* @__PURE__ */ new WeakMap();
+function AN(e) {
if (!e) return;
- let t = qM().settings().theaterMode;
- e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), DN.get(e)?.(t ? "默认视图" : "影院模式");
+ let t = YM().settings().theaterMode;
+ e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), kN.get(e)?.(t ? "默认视图" : "影院模式");
}
-function kN(e, t = !0) {
- let n = qM(), r = n.settings();
+function jN(e, t = !0) {
+ let n = YM(), r = n.settings();
r.theaterMode = !!e, t && n.saveSettings();
let i = n.stage();
- i?.toggleAttribute("data-theater", r.theaterMode), ON(i?.querySelector("[data-player-theater]")), tN($M());
+ i?.toggleAttribute("data-theater", r.theaterMode), AN(i?.querySelector("[data-player-theater]")), rN(tN());
}
-function $le(e) {
- let t = qM().stage(), n = t?.querySelector("[data-ambient-canvas]");
+function Zle(e) {
+ let t = YM().stage(), n = t?.querySelector("[data-ambient-canvas]");
if (!t || !n) return () => {};
let r = n.getContext("2d", { alpha: !1 });
if (!r) return () => {};
@@ -33095,9 +33095,9 @@ function $le(e) {
}, u = (t) => {
e.requestVideoFrameCallback ? e.requestVideoFrameCallback((e) => d(t, e)) : requestAnimationFrame((e) => d(t, e));
}, d = (t, n) => {
- i || t !== o || (qM().settings().ambientMode ? e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t)) : c());
+ i || t !== o || (YM().settings().ambientMode ? e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t)) : c());
}, f = () => {
- !i && qM().settings().ambientMode && (l(), e.paused || u(++o));
+ !i && YM().settings().ambientMode && (l(), e.paused || u(++o));
}, p = (e) => {
let n = !!e.detail.enabled;
t.toggleAttribute("data-ambient", n), n ? f() : (o++, c());
@@ -33106,7 +33106,7 @@ function $le(e) {
i = !0, o++, document.removeEventListener("peachambientchange", p), e.removeEventListener("play", f), e.removeEventListener("loadeddata", f), c();
};
}
-function AN(e, t, n = 0, r = null) {
+function MN(e, t, n = 0, r = null) {
let i = e.el().querySelector(".vjs-control-bar");
if (!i || i.querySelector("[data-player-quality]")) return;
let a = document.createElement("div");
@@ -33116,8 +33116,8 @@ function AN(e, t, n = 0, r = null) {
let o = i.querySelector(".vjs-fullscreen-control");
i.insertBefore(a, o || null);
let s = a.querySelector("button"), c = a.querySelector("[data-player-quality-badge]");
- TN(s, "设置");
- let l = a.querySelector(".vjs-peach-settings-menu"), u = wN(e, t), d = xN(e, t), f = bN(e), p, m = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, h = r, g = "auto", _ = (e, t) => {
+ DN(s, "设置");
+ let l = a.querySelector(".vjs-peach-settings-menu"), u = EN(e, t), d = CN(e, t), f = SN(e), p, m = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, h = r, g = "auto", _ = (e, t) => {
let n = [Number(e), Number(t)].filter((e) => e > 0);
return n.length ? Math.min(...n) : 0;
}, v = () => {
@@ -33156,11 +33156,11 @@ function AN(e, t, n = 0, r = null) {
active: n
};
}, b = () => l.getAttribute("aria-hidden") !== "true", x = (e) => {
- l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e || p?.hide(), e && document.dispatchEvent(new CustomEvent(sN, { detail: "settings" }));
+ l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e || p?.hide(), e && document.dispatchEvent(new CustomEvent(lN, { detail: "settings" }));
}, S = () => x(!1), C = (e) => {
e.detail !== "settings" && S();
};
- document.addEventListener(sN, C);
+ document.addEventListener(lN, C);
let w = null, T = 0, E = (e, t) => {
let n = ++T;
w && (clearTimeout(w), w = null, l.classList.remove("vjs-peach-popup-animating"), l.style.height = ""), l.querySelectorAll(".vjs-peach-panel-leaving").forEach((e) => e.remove()), l.scrollTop = 0;
@@ -33176,15 +33176,15 @@ function AN(e, t, n = 0, r = null) {
}), i;
}, D = (e, t) => e.querySelector(t), O = "main", k = (e = 0) => {
O = "main";
- let { active: t } = y(), n = d.current(), r = E(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${qM().settings().ambientMode}">
+ let { active: t } = y(), n = d.current(), r = E(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${YM().settings().ambientMode}">
${R("player-ambient")}<span>氛围模式</span><i class="vjs-peach-switch" aria-hidden="true"></i></button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-speed>${R("player-speed")}<span>播放速度</span><b>${n === 1 ? "正常" : `${n}×`}</b>${R("player-menu-next")}</button>
- <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-subtitles><span class="vjs-peach-menu-cc" aria-hidden="true">${CN()}</span><span>字幕</span><b>${z(p?.label() || "关闭")}</b>${R("player-menu-next")}</button>
+ <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-subtitles><span class="vjs-peach-menu-cc" aria-hidden="true">${TN()}</span><span>字幕</span><b>${z(p?.label() || "关闭")}</b>${R("player-menu-next")}</button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-rotation>${R("rotate-cw", "vjs-peach-menu-line-icon")}<span>画面旋转</span><b>${u.angle()}°</b>${R("player-menu-next")}</button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-quality-view>${R("player-quality")}<span>清晰度</span><b>${z(t.label)}</b>${R("player-menu-next")}</button>
<div data-player-memory-error hidden><p class="vjs-peach-subtitle-status" role="status"></p><button type="button" class="vjs-peach-menu-row" data-player-memory-retry>重试保存播放记忆</button></div></div>`, e);
D(r, "[data-player-ambient]").onclick = () => {
- Qle(!qM().settings().ambientMode), k();
+ Xle(!YM().settings().ambientMode), k();
}, D(r, "[data-player-speed]").onclick = () => te(), D(r, "[data-player-subtitles]").onclick = () => p?.show(), D(r, "[data-player-quality-view]").onclick = () => ne(), D(r, "[data-player-rotation]").onclick = () => j(), D(r, "[data-player-memory-retry]").onclick = () => {
f.retry();
}, A();
@@ -33288,8 +33288,8 @@ function AN(e, t, n = 0, r = null) {
A(), re();
});
return e.on("dispose", () => {
- I(), t.removeEventListener("loadedmetadata", re), t.removeEventListener("resize", re), t.removeEventListener("ratechange", re), T++, document.removeEventListener("pointerdown", F), document.removeEventListener(sN, C), w && clearTimeout(w);
- }), p = new Yle(e, t, {
+ I(), t.removeEventListener("loadedmetadata", re), t.removeEventListener("resize", re), t.removeEventListener("ratechange", re), T++, document.removeEventListener("pointerdown", F), document.removeEventListener(lN, C), w && clearTimeout(w);
+ }), p = new qle(e, t, {
render: E,
open: () => {
O = "subtitles", x(!0);
@@ -33298,21 +33298,21 @@ function AN(e, t, n = 0, r = null) {
back: () => {
p?.hide(), k(-1);
}
- }), y(), eue(e, a), tue(e), (e) => {
+ }), y(), Qle(e, a), $le(e), (e) => {
h = e?.length ? e : null, re();
};
}
-function eue(e, t) {
+function Qle(e, t) {
let n = e.el().querySelector(".vjs-control-bar");
if (!n || n.querySelector("[data-player-theater]")) return;
- let r = qM().settings().theaterMode, i = document.createElement("div");
+ let r = YM().settings().theaterMode, i = document.createElement("div");
i.className = "vjs-peach-theater vjs-control", i.innerHTML = `<button type="button" data-player-theater aria-pressed="${r}">${R(r ? "theater-exit" : "theater-enter")}</button>`, n.insertBefore(i, t.nextSibling);
let a = i.querySelector("button");
- DN.set(a, TN(a, "影院模式", "T")), ON(a), a.onclick = (e) => {
- e.stopPropagation(), kN(!qM().settings().theaterMode);
+ kN.set(a, DN(a, "影院模式", "T")), AN(a), a.onclick = (e) => {
+ e.stopPropagation(), jN(!YM().settings().theaterMode);
};
}
-function tue(e) {
+function $le(e) {
let t = e.el().querySelector(".vjs-control-bar");
if (!t || t.querySelector(".vjs-peach-right-controls")) return;
let n = t.querySelector(":scope>.vjs-play-control");
@@ -33324,7 +33324,7 @@ function tue(e) {
e.dataset.peachExplicitIcon = "";
let r = document.createElementNS("http://www.w3.org/2000/svg", "svg");
return r.setAttribute("viewBox", n.getAttribute("viewBox") || ""), r.setAttribute("aria-hidden", "true"), r.setAttribute("class", "vjs-peach-control-icon vjs-peach-morph-icon"), r.innerHTML = n.innerHTML, e.append(r), r;
- }, a = (e) => [...document.getElementById(`i-${e}`)?.querySelectorAll("path") || []], o = i(n, "player-play")?.querySelector("path"), s = a("player-play")[0]?.getAttribute("d") || "", c = a("player-pause")[0]?.getAttribute("d") || "", l = TN(n, "播放", "K"), u = CSS.supports("d", "path(\"M0 0\")"), d = () => {
+ }, a = (e) => [...document.getElementById(`i-${e}`)?.querySelectorAll("path") || []], o = i(n, "player-play")?.querySelector("path"), s = a("player-play")[0]?.getAttribute("d") || "", c = a("player-pause")[0]?.getAttribute("d") || "", l = DN(n, "播放", "K"), u = CSS.supports("d", "path(\"M0 0\")"), d = () => {
let t = e.paused() || e.ended(), n = t ? s : c;
o && (u ? o.style.setProperty("d", `path("${n}")`) : o.setAttribute("d", n)), l(t ? "播放" : "暂停");
};
@@ -33335,7 +33335,7 @@ function tue(e) {
], d), d();
let f = t.querySelector(":scope>.vjs-volume-panel"), p = f?.querySelector(":scope>.vjs-mute-control"), m = i(p, "player-volume");
m && a("player-volume-muted").forEach((e) => m.append(e.cloneNode(!0)));
- let h = TN(p, "静音", "M"), g = () => {
+ let h = DN(p, "静音", "M"), g = () => {
let t = e.muted() || e.volume() === 0;
m && (m.dataset.silent = String(t), m.dataset.loud = String(!t && e.volume() > .5)), h(t ? "取消静音" : "静音");
};
@@ -33361,7 +33361,7 @@ function tue(e) {
});
let x = document.createElement("button"), S = !1;
x.type = "button", x.className = "vjs-peach-time vjs-control", x.dataset.playerTime = "", x.innerHTML = "<span class=\"vjs-peach-time-text\"></span>";
- let C = x.querySelector(".vjs-peach-time-text"), w = TN(x, "显示剩余时间"), T = () => {
+ let C = x.querySelector(".vjs-peach-time-text"), w = DN(x, "显示剩余时间"), T = () => {
let t = Math.max(0, Number(e.currentTime()) || 0), n = Math.max(0, Number(e.duration()) || 0), r = Jn(Math.max(0, n - t));
C.textContent = `${S ? `-${r}` : Jn(t)} / ${Jn(n)}`, x.dataset.remaining = String(S), w(S ? "显示已播放时间" : "显示剩余时间", S ? `剩余 ${r},总时长 ${Jn(n)};点击显示已播放时间` : `已播放 ${Jn(t)},总时长 ${Jn(n)};点击显示剩余时间`);
};
@@ -33373,10 +33373,10 @@ function tue(e) {
"loadedmetadata"
], T), T(), f ? f.insertAdjacentElement("afterend", x) : t.append(x);
let E = t.querySelector(":scope>.vjs-picture-in-picture-control");
- TN(t.querySelector(".vjs-subtitles-control>button"), "字幕"), r(E, "player-pip"), Zle(e, E, TN(E, "画中画"), (e) => qM().toast(e, { warn: !0 }));
- let D = t.querySelector(":scope>.vjs-fullscreen-control"), O = r(D, "player-fullscreen-enter"), k = TN(D, "全屏", "F"), A = () => {
+ DN(t.querySelector(".vjs-subtitles-control>button"), "字幕"), r(E, "player-pip"), Yle(e, E, DN(E, "画中画"), (e) => YM().toast(e, { warn: !0 }));
+ let D = t.querySelector(":scope>.vjs-fullscreen-control"), O = r(D, "player-fullscreen-enter"), k = DN(D, "全屏", "F"), A = () => {
let t = !!e.isFullscreen();
- e.el().toggleAttribute("data-peach-fullscreen", t), O?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), k(t ? "退出全屏" : "全屏"), tN(e);
+ e.el().toggleAttribute("data-peach-fullscreen", t), O?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), k(t ? "退出全屏" : "全屏"), rN(e);
};
e.on([
"fullscreenchange",
@@ -33397,7 +33397,7 @@ function tue(e) {
});
let ee = document.createElement("div");
ee.className = "vjs-peach-expand vjs-control", ee.innerHTML = `<button type="button" data-player-expand aria-expanded="false">${R("player-expand")}</button><span class="vjs-peach-hover" aria-hidden="true"></span>`, M.prepend(ee);
- let N = ee.querySelector("button"), te = TN(N, "展开控件"), P = (t) => {
+ let N = ee.querySelector("button"), te = DN(N, "展开控件"), P = (t) => {
e.el().classList.toggle("vjs-peach-right-expanded", t), N.setAttribute("aria-expanded", String(t)), te(t ? "收起控件" : "展开控件");
};
N.onclick = (t) => {
@@ -33409,7 +33409,7 @@ function tue(e) {
}, re = new ResizeObserver(ne);
re.observe(e.el()), e.on("dispose", () => re.disconnect()), P(!1), ne();
}
-function jN(e, t, n = {}) {
+function NN(e, t, n = {}) {
let r = e.el().querySelector(".vjs-control-bar .vjs-progress-control");
if (!r || r.querySelector("[data-player-seek-preview]")) return;
let i = !!t && n.thumbnail !== !1, a = document.createElement("div");
@@ -33420,7 +33420,7 @@ function jN(e, t, n = {}) {
}).catch(() => {});
let f = (e, n, r, i) => {
if (!t) return;
- let a = n.columns || 10, o = a * (n.rows || 10), s = Xle(e, n);
+ let a = n.columns || 10, o = a * (n.rows || 10), s = Jle(e, n);
if (s === null) return !1;
let c = Math.floor(s / o), l = s % o, f = Math.ceil(Math.min(o, n.frames - c * o) / a);
d = !!n.cues;
@@ -33445,13 +33445,13 @@ function jN(e, t, n = {}) {
r.removeEventListener("pointermove", m), r.removeEventListener("pointerleave", h);
});
}
-function nue(e, t) {
+function eue(e, t) {
let n = navigator.mediaSession;
if (!n || typeof n.setActionHandler != "function") return;
let r = () => Kn(e.duration()) || Kn(t.duration) || 0, i = (t) => {
let n = r();
e.currentTime(Math.max(0, n ? Math.min(n, t) : t));
- }, a = () => Math.max(1, Number(qM().settings().seekSeconds) || 10), o = [
+ }, a = () => Math.max(1, Number(YM().settings().seekSeconds) || 10), o = [
["play", () => {
e.play();
}],
@@ -33492,11 +33492,11 @@ function nue(e, t) {
} catch {}
});
}
-function MN(e) {
+function PN(e) {
let t = e.el().querySelector(".vjs-loading-spinner");
t && !t.querySelector(".vjs-peach-spinner-container") && (t.innerHTML = "<span class=\"vjs-peach-spinner-container\"><span class=\"vjs-peach-spinner-rotator\"><span class=\"vjs-peach-spinner-left\"><span class=\"vjs-peach-spinner-circle\"></span></span><span class=\"vjs-peach-spinner-right\"><span class=\"vjs-peach-spinner-circle\"></span></span></span></span>");
}
-function NN(e, t) {
+function FN(e, t) {
wn(`/api/assets/${t}/subtitles`).then((t) => {
e && !e.isDisposed() && (t?.subtitles || []).filter((e) => e.playable).forEach((t) => {
e.addRemoteTextTrack({
@@ -33512,35 +33512,35 @@ function NN(e, t) {
}).catch(() => {});
}
// src/player/progress.ts
-var PN = "peach.playback-position.v1", FN = /* @__PURE__ */ new WeakMap();
-function IN(e) {
- FN.get(e)?.(), FN.delete(e);
+var IN = "peach.playback-position.v1", LN = /* @__PURE__ */ new WeakMap();
+function RN(e) {
+ LN.get(e)?.(), LN.delete(e);
}
-function LN(e, t, n = null) {
+function zN(e, t, n = null) {
let r = e === "follow" ? t.id : t.location === "online" ? t.follow_item_id : null;
return r ? `follow:${r}:${n ?? "main"}` : `item:${t.id}`;
}
-function rue(e) {
+function tue(e) {
try {
- let t = localStorage.getItem(`${PN}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
+ let t = localStorage.getItem(`${IN}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
return Number.isFinite(n) && n >= 0 ? n : null;
} catch {
return null;
}
}
-function iue(e, t) {
- let n = rue(e);
+function nue(e, t) {
+ let n = tue(e);
if (n !== null) return n;
let r = Number(t.leave_ratio);
return r > 0 && r < 1 ? r * Kn(t.duration) : 0;
}
-function aue(e, t) {
- IN(t);
+function rue(e, t) {
+ RN(t);
let n = t.readyState >= 1, r = () => {
if (!n || !Number.isFinite(t.currentTime)) return;
let r = t.ended ? 0 : Math.max(0, t.currentTime);
try {
- localStorage.setItem(`${PN}:${e}`, String(r));
+ localStorage.setItem(`${IN}:${e}`, String(r));
} catch {}
}, i = () => {
n = !0;
@@ -33554,7 +33554,7 @@ function aue(e, t) {
"pause",
"ended"
]) t.addEventListener(e, r);
- window.addEventListener("pagehide", r), document.addEventListener("visibilitychange", r), FN.set(t, () => {
+ window.addEventListener("pagehide", r), document.addEventListener("visibilitychange", r), LN.set(t, () => {
r(), t.removeEventListener("loadedmetadata", i), t.removeEventListener("emptied", a);
for (let e of [
"timeupdate",
@@ -33566,19 +33566,19 @@ function aue(e, t) {
});
}
// src/player/telemetry.ts
-var RN = /* @__PURE__ */ new WeakMap();
-function zN(e) {
- RN.get(e)?.(), RN.delete(e);
+var BN = /* @__PURE__ */ new WeakMap();
+function VN(e) {
+ BN.get(e)?.(), BN.delete(e);
}
-function BN(e, t, n, r) {
+function HN(e, t, n, r) {
let i = () => t(!1), a = () => {
n(), t(!1);
};
- e.addEventListener("seeking", r), e.addEventListener("emptied", a), window.addEventListener("pagehide", i), RN.set(e, () => {
+ e.addEventListener("seeking", r), e.addEventListener("emptied", a), window.addEventListener("pagehide", i), BN.set(e, () => {
n(), t(!1), e.onplay = null, e.ontimeupdate = null, e.onpause = null, e.onended = null, e.removeEventListener("seeking", r), e.removeEventListener("emptied", a), window.removeEventListener("pagehide", i);
});
}
-function VN(e, t, n = {}) {
+function UN(e, t, n = {}) {
if (!t) return;
let r = 0, i = 0, a = 0, o = null, s = (e) => e ? document.querySelector(e) : null, c = () => {
let r = Kn(e.duration) || Kn(t.duration);
@@ -33619,11 +33619,11 @@ function VN(e, t, n = {}) {
u(), l(!1);
}, t.onended = () => {
u(), l(!0), n.onEnded?.();
- }, BN(t, l, u, () => {
+ }, HN(t, l, u, () => {
a++;
}), c();
}
-function oue(e, t) {
+function iue(e, t) {
let n = 0, r = 0, i = !1, a = null, o = (n) => {
let i = Kn(e.duration) || Kn(t.duration);
(r || n) && (wn("/api/follow/activity", {
@@ -33654,22 +33654,22 @@ function oue(e, t) {
s(), o(!1);
}, t.onended = () => {
s(), o(!0);
- }, BN(t, o, s, () => {});
+ }, HN(t, o, s, () => {});
}
// src/player/dispose.ts
-function HN(e) {
+function WN(e) {
if (!e || e.isDisposed()) return;
let t = e.el()?.querySelector("video");
try {
e.pause();
} catch {}
- t && (IN(t), zN(t));
+ t && (RN(t), VN(t));
try {
e.dispose();
} catch {}
}
// src/core/random-id.ts
-function UN() {
+function GN() {
if (typeof crypto.randomUUID == "function") return crypto.randomUUID();
let e = crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(16));
e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128;
@@ -33677,23 +33677,23 @@ function UN() {
return `${t.slice(0, 8)}-${t.slice(8, 12)}-${t.slice(12, 16)}-${t.slice(16, 20)}-${t.slice(20)}`;
}
// src/player/stream.ts
-function WN() {
- return UN();
+function KN() {
+ return GN();
}
-function GN(e, t) {
+function qN(e, t) {
return {
src: `/stream?id=${e.id}&session=${encodeURIComponent(t)}`,
type: String(e.name || "").toLowerCase().endsWith(".webm") ? "video/webm" : "video/mp4"
};
}
-function sue(e) {
+function aue(e) {
return e.location === "online" && e.follow_item_id ? {
src: `/follow-stream?id=${e.follow_item_id}`,
type: "video/mp4"
} : null;
}
-async function KN(e, t) {
- let n = sue(e);
+async function JN(e, t) {
+ let n = aue(e);
if (n) return n;
try {
let n = await wn(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(t)}`);
@@ -33702,9 +33702,9 @@ async function KN(e, t) {
type: n.mime_type || (n.protocol === "hls" ? "application/vnd.apple.mpegurl" : "video/mp4")
};
} catch {}
- return GN(e, t);
+ return qN(e, t);
}
-function qN(e) {
+function YN(e) {
e && fetch(`/api/stream-cancel?session=${encodeURIComponent(e)}`, {
method: "POST",
credentials: "same-origin",
@@ -33713,22 +33713,22 @@ function qN(e) {
document.documentElement.dataset.peachStreamCancel = JSON.stringify(e);
}).catch(() => {});
}
-var JN = "";
-function YN() {
- return JN;
+var XN = "";
+function ZN() {
+ return XN;
}
-function XN() {
- return JN ||= WN(), JN;
+function QN() {
+ return XN ||= KN(), XN;
}
-var cue = (e) => GN(e, XN()), lue = (e) => KN(e, XN());
-function ZN() {
- let e = JN;
- e && (JN = "", qN(e));
+var oue = (e) => qN(e, QN()), sue = (e) => JN(e, QN());
+function $N() {
+ let e = XN;
+ e && (XN = "", YN(e));
}
// src/player/v10-player.ts
-var QN = (e) => typeof e == "string" ? [e] : e, uue = (e, t) => {
+var eP = (e) => typeof e == "string" ? [e] : e, cue = (e, t) => {
let n = document.createElement("div"), r = document.createElement("video-player");
- n.className = "video-js vjs-paused vjs-user-active", n.id = e.id || `peach-player-${UN()}`, n.setAttribute("lang", "zh-CN");
+ n.className = "video-js vjs-paused vjs-user-active", n.id = e.id || `peach-player-${GN()}`, n.setAttribute("lang", "zh-CN");
let i = document.createElement("media-container"), a = document.createElement("hlsjs-video");
e.parentNode?.replaceChild(n, e), e.removeAttribute("id"), e.className = "vjs-tech", e.slot = "media", e.controls = !1, e.preload = t.preload === "auto" ? "auto" : t.preload === "none" ? "none" : "metadata", t.poster && (e.poster = String(t.poster)), a.append(e), i.append(a), r.append(i), n.append(r), t.controls !== !1 && i.insertAdjacentHTML("beforeend", "<div class=\"vjs-loading-spinner\" aria-label=\"正在缓冲\"></div>\n <div class=\"vjs-error-display\"><div class=\"vjs-modal-dialog-content\" role=\"alert\"></div></div>\n <div class=\"vjs-control-bar\">\n <media-play-button class=\"vjs-play-control vjs-control vjs-button\" label=\"播放\"></media-play-button>\n <div class=\"vjs-volume-panel vjs-control vjs-volume-panel-horizontal\">\n <media-mute-button class=\"vjs-mute-control vjs-control vjs-button\" label=\"静音\"></media-mute-button>\n <div class=\"vjs-volume-control vjs-volume-horizontal\"><media-volume-slider class=\"vjs-volume-bar vjs-slider vjs-slider-horizontal\" label=\"音量\">\n <media-slider-track><media-slider-fill class=\"vjs-volume-level\"></media-slider-fill></media-slider-track>\n <media-slider-thumb class=\"vjs-volume-thumb\"></media-slider-thumb>\n <media-slider-value class=\"vjs-volume-tooltip\"></media-slider-value>\n </media-volume-slider></div>\n </div>\n <div class=\"vjs-progress-control vjs-control\"><media-time-slider class=\"vjs-progress-holder vjs-slider vjs-slider-horizontal\" label=\"播放进度\">\n <media-slider-track><media-slider-buffer class=\"vjs-load-progress\"></media-slider-buffer><media-slider-fill class=\"vjs-play-progress\"></media-slider-fill></media-slider-track>\n <media-slider-thumb class=\"vjs-progress-thumb\"></media-slider-thumb>\n </media-time-slider></div>\n <div class=\"vjs-subtitles-control vjs-control\"><button type=\"button\" class=\"vjs-button\" aria-label=\"开启字幕\" aria-pressed=\"false\">CC</button></div>\n <media-pip-button class=\"vjs-picture-in-picture-control vjs-control vjs-button\" label=\"画中画\"></media-pip-button>\n <media-fullscreen-button class=\"vjs-fullscreen-control vjs-control vjs-button\" label=\"全屏\"></media-fullscreen-button>\n </div>");
let o = new EventTarget(), s = new AbortController(), c = s.signal, l = !1, u = 0, d = 0, f = 0, p = {
@@ -33823,9 +33823,9 @@ var QN = (e) => typeof e == "string" ? [e] : e, uue = (e, t) => {
e && Array.isArray(e.levels) && !x.has(e) && (x.add(e), e.on("hlsManifestParsed", w), e.on("hlsLevelSwitched", w)), w();
};
return e.addEventListener("loadedmetadata", T, { signal: c }), {
- on: (e, t) => QN(e).forEach((e) => o.addEventListener(e, t, { signal: c })),
- off: (e, t) => QN(e).forEach((e) => o.removeEventListener(e, t)),
- one: (e, t) => QN(e).forEach((e) => o.addEventListener(e, t, {
+ on: (e, t) => eP(e).forEach((e) => o.addEventListener(e, t, { signal: c })),
+ off: (e, t) => eP(e).forEach((e) => o.removeEventListener(e, t)),
+ one: (e, t) => eP(e).forEach((e) => o.addEventListener(e, t, {
once: !0,
signal: c
})),
@@ -33880,7 +33880,7 @@ var QN = (e) => typeof e == "string" ? [e] : e, uue = (e, t) => {
n.id = String(t.id || ""), t.legacyId && (n.dataset.subtitleAlias = String(t.legacyId)), n.kind = String(t.kind || "subtitles"), n.src = String(t.src || ""), n.srclang = String(t.srclang || ""), n.label = String(t.label || ""), e.append(n);
}
};
-}, due = "/vendor/videojs/10.2.0/", fue = [
+}, lue = "/vendor/videojs/10.2.0/", uue = [
"video-player.js",
"media/hlsjs-video.js",
"media/dash-video.js",
@@ -33898,17 +33898,17 @@ var QN = (e) => typeof e == "string" ? [e] : e, uue = (e, t) => {
"ui/slider-value.js",
"i18n.js",
"locales/zh-CN.js"
-], $N = null;
-function eP() {
- return $N ??= Promise.all(fue.map((e) => import(
+], tP = null;
+function nP() {
+ return tP ??= Promise.all(uue.map((e) => import(
/* @vite-ignore */
- `${due}${e}`
-))).then(() => uue).catch((e) => {
- throw $N = null, e;
- }), $N;
+ `${lue}${e}`
+))).then(() => cue).catch((e) => {
+ throw tP = null, e;
+ }), tP;
}
// src/player/immerse-player.ts
-var pue = {
+var due = {
controls: !1,
preload: "auto",
posterImage: !1,
@@ -33920,45 +33920,45 @@ var pue = {
errorDisplay: !1,
textTrackSettings: !1
};
-function mue(e, t) {
+function fue(e, t) {
let { item: n, session: r } = t, i = null, a = !1;
- return Promise.all([KN(n, r), eP().catch(() => null)]).then(([o, s]) => {
+ return Promise.all([JN(n, r), nP().catch(() => null)]).then(([o, s]) => {
if (a) return;
- let c = GN(n, r), l = String(o.type || "").includes("mpegurl");
+ let c = qN(n, r), l = String(o.type || "").includes("mpegurl");
if (!s) e.src = (l ? c : o).src;
else {
- let t = s(e, pue);
- i = t, t.peachItem = n, t.peachPlaybackKey = LN("item", n);
+ let t = s(e, due);
+ i = t, t.peachItem = n, t.peachPlaybackKey = zN("item", n);
let r = new AbortController();
- _N(t.el(), e, r.signal, bN(t)), wN(t, e), xN(t, e), t.on("dispose", () => r.abort()), new SN(t, e), NN(t, n.id), l && t.one("error", () => {
+ yN(t.el(), e, r.signal, SN(t)), EN(t, e), CN(t, e), t.on("dispose", () => r.abort()), new wN(t, e), FN(t, n.id), l && t.one("error", () => {
a || t.src(c);
}), t.src(o);
}
- VN(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
+ UN(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
}), () => {
- a || (a = !0, qN(r), i ? HN(i) : (e.pause(), zN(e), e.removeAttribute("src"), e.load()));
+ a || (a = !0, YN(r), i ? WN(i) : (e.pause(), VN(e), e.removeAttribute("src"), e.load()));
};
}
// src/player/guide-preview.ts
-var tP = !1, nP = () => tP;
-function hue() {
- return tP = !0, () => {
- tP = !1;
+var rP = !1, iP = () => rP;
+function pue() {
+ return rP = !0, () => {
+ rP = !1;
};
}
// src/player/detail-player.ts
-var rP = /* @__PURE__ */ new WeakMap(), iP = null, aP = null, oP = null;
-function sP() {
- iP &&= (clearInterval(iP), null), aP &&= (clearInterval(aP), null), oP &&= (clearTimeout(oP), null);
+var aP = /* @__PURE__ */ new WeakMap(), oP = null, sP = null, cP = null;
+function lP() {
+ oP &&= (clearInterval(oP), null), sP &&= (clearInterval(sP), null), cP &&= (clearTimeout(cP), null);
}
-async function gue(e, t, n, r = {}) {
- let i = $M();
+async function mue(e, t, n, r = {}) {
+ let i = tN();
if (i && !i.isDisposed()) return i;
- let a = qM(), o = r.resume ?? null;
+ let a = YM(), o = r.resume ?? null;
o?.autoplay && (n = !0), r.guidePreview && (n = !1);
- let s = () => r.source ? Promise.resolve(r.source) : lue(e), c;
+ let s = () => r.source ? Promise.resolve(r.source) : sue(e), c;
try {
- c = await eP();
+ c = await nP();
} catch {
return t.controls = !0, r.guidePreview || s().then((e) => {
t.addEventListener("loadedmetadata", () => {
@@ -33984,7 +33984,7 @@ async function gue(e, t, n, r = {}) {
} }
}
});
- eN(l), l.peachItem = e, l.peachPlaybackKey = r.playbackKey || LN("item", e), Ble(l), l.on("loadedmetadata", () => {
+ nN(l), l.peachItem = e, l.peachPlaybackKey = r.playbackKey || zN("item", e), Rle(l), l.on("loadedmetadata", () => {
let e = l.el()?.querySelector("video");
e?.videoWidth && e.videoHeight && l.el().style.setProperty("--peach-video-ratio", `${e.videoWidth}/${e.videoHeight}`);
});
@@ -33992,7 +33992,7 @@ async function gue(e, t, n, r = {}) {
speed: [],
activity: [],
buffer: []
- }, f = Number(r.size ?? e.size) || 0, p = Hle(iN(f, e.duration)), m = 0, h = !1, g = () => $M() === l && !l.isDisposed(), _ = () => {
+ }, f = Number(r.size ?? e.size) || 0, p = Ble(oN(f, e.duration)), m = 0, h = !1, g = () => tN() === l && !l.isDisposed(), _ = () => {
if (!u || h || !g()) return;
let e = Number(l.duration());
(!Number.isFinite(e) || Math.abs(e - u) > Math.max(2, u * .001)) && (h = !0, l.duration(u), queueMicrotask(() => {
@@ -34003,15 +34003,15 @@ async function gue(e, t, n, r = {}) {
ready: !1,
updateStats: () => {}
};
- rP.set(l, y), y.updateStats = () => {
+ aP.set(l, y), y.updateStats = () => {
let n = y.chrome?.statsPanel;
if (!n || n.hidden || !g()) return;
- let i = t.getVideoPlaybackQuality ? t.getVideoPlaybackQuality() : null, a = t.getBoundingClientRect(), o = `${t.videoWidth || e.width || "?"}×${t.videoHeight || e.height || "?"}`, s = v(), c = YN(), h = s ? uN(e.id, c) : [], _ = h.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = h.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
+ let i = t.getVideoPlaybackQuality ? t.getVideoPlaybackQuality() : null, a = t.getBoundingClientRect(), o = `${t.videoWidth || e.width || "?"}×${t.videoHeight || e.height || "?"}`, s = v(), c = ZN(), h = s ? fN(e.id, c) : [], _ = h.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = h.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
p.sample(t);
- let x = fN(l, e.id, c, s ? null : p) || (b > 0 ? _ * 8 / b : 0), S = s ? _ : p.bitrate > 0 ? p.bytes() : p.seconds, C = Math.max(0, S - m);
+ let x = mN(l, e.id, c, s ? null : p) || (b > 0 ? _ * 8 / b : 0), S = s ? _ : p.bitrate > 0 ? p.bytes() : p.seconds, C = Math.max(0, S - m);
m = S;
- let w = nN(t);
- oN(d.speed, x), oN(d.activity, C), oN(d.buffer, w);
+ let w = iN(t);
+ cN(d.speed, x), cN(d.activity, C), cN(d.buffer, w);
let T = String(e.name || ""), E = (T.includes(".") ? T.split(".").pop() || "" : s ? "" : String(l.currentSource()?.type || "").split("/").pop() || "").toUpperCase() || "—", D = x ? `${(x / 1e6).toFixed(1)} Mbps` : "—", O = s || p.bitrate > 0, k = s ? [
"网络活动",
`${_ ? Yn(_) : "—"} · ${h.length} 请求`,
@@ -34029,17 +34029,17 @@ async function gue(e, t, n, r = {}) {
[
"连接速度",
D,
- cN(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
+ uN(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
],
[
k[0],
k[1],
- cN(d.activity, "activity", Math.max(1, ...d.activity), k[2])
+ uN(d.activity, "activity", Math.max(1, ...d.activity), k[2])
],
[
"缓冲健康",
`${w.toFixed(1)} 秒`,
- cN(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
+ uN(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
],
["播放时间", `${Jn(t.currentTime)} / ${Jn(u || l.duration())}`],
["日期", (/* @__PURE__ */ new Date()).toLocaleString()]
@@ -34055,15 +34055,15 @@ async function gue(e, t, n, r = {}) {
if (!n || l.isDisposed()) return;
let r = v();
r || p.sample(t);
- let i = fN(l, e.id, YN(), r ? null : p), a = r ? pN(i) : Ule(i, nN(t));
+ let i = mN(l, e.id, ZN(), r ? null : p), a = r ? hN(i) : Vle(i, iN(t));
n.innerHTML = `${R("gauge")}<span class="sr-only">加载速度</span><span>${z(a)}</span>`;
}, C = () => {
let e = y.chrome?.netBadge;
- e && e.isConnected && (e.hidden = !1, S(), aP && clearInterval(aP), aP = setInterval(S, 500));
+ e && e.isConnected && (e.hidden = !1, S(), sP && clearInterval(sP), sP = setInterval(S, 500));
}, w = () => {
let e = y.chrome?.netBadge;
- e && (oP && clearTimeout(oP), oP = setTimeout(() => {
- e.hidden = !0, aP &&= (clearInterval(aP), null);
+ e && (cP && clearTimeout(cP), cP = setTimeout(() => {
+ e.hidden = !0, sP &&= (clearInterval(sP), null);
}, 1400));
};
return l.on([
@@ -34074,7 +34074,7 @@ async function gue(e, t, n, r = {}) {
], C), l.on(["canplay", "playing"], () => {
S(), w();
}), l.on("error", () => {
- b && !x && !l.isDisposed() ? (x = !0, b = !1, l.src(cue(e)), n && l.play()?.catch(() => {})) : r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {
+ b && !x && !l.isDisposed() ? (x = !0, b = !1, l.src(oue(e)), n && l.play()?.catch(() => {})) : r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {
t[String(e.root_id || e.location)] !== !1 || l.isDisposed() || l.error({
code: 2,
message: `媒体目录无法访问 · ${a.offlineReason(String(e.root_id || e.location))}`
@@ -34082,13 +34082,13 @@ async function gue(e, t, n, r = {}) {
});
}), l.ready(() => {
_();
- let n = AN(l, t, e.height, r.qualities ?? null);
+ let n = MN(l, t, e.height, r.qualities ?? null);
r.mediaPromise?.then((t) => {
if (!g()) return;
n?.(t?.qualities?.length ? t.qualities : null);
let r = Number(t?.size) || 0;
- r > 0 && !f && (f = r, p.bitrate = iN(r, e.duration));
- }).catch(() => {}), jN(l, e, { thumbnail: !r.source }), r.guidePreview || nue(l, e), MN(l), r.source || NN(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
+ r > 0 && !f && (f = r, p.bitrate = oN(r, e.duration));
+ }).catch(() => {}), NN(l, e, { thumbnail: !r.source }), r.guidePreview || eue(l, e), PN(l), r.source || FN(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
}), r.guidePreview || s().then((e) => {
g() && (b = String(e.type || "").includes("mpegurl"), o && o.time > 0 && l.one("loadedmetadata", () => {
if (l.isDisposed()) return;
@@ -34097,16 +34097,16 @@ async function gue(e, t, n, r = {}) {
}), l.src(e), _(), setTimeout(_, 0), setTimeout(_, 250), n && l.play()?.catch(() => {}));
}).catch(() => {}), l;
}
-var _ue = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
-function cP(e, t = null) {
- if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", _ue), e.querySelector("#playerStatsBtn")) return;
+var hue = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
+function uP(e, t = null) {
+ if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", hue), e.querySelector("#playerStatsBtn")) return;
let n = document.createElement("template");
- n.innerHTML = lN();
+ n.innerHTML = dN();
let r = e.querySelector(":scope > [data-player-toolbar]");
r && (r.querySelector("[data-player-stats-slot]").append(n.content.querySelector("#playerStatsBtn")), r.querySelector("[data-player-net-slot]").append(n.content.querySelector("#playerNet"))), e.insertBefore(n.content, t);
}
-function lP(e, t) {
- let n = rP.get(e);
+function dP(e, t) {
+ let n = aP.get(e);
if (!n || e.isDisposed()) return () => {};
let r = (e) => t.querySelector(`#${e}`), i = {
statsButton: r("playerStatsBtn"),
@@ -34118,30 +34118,30 @@ function lP(e, t) {
if (a && o) {
a.hidden = !n.ready;
let e = () => {
- o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), iP &&= (clearInterval(iP), null));
+ o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), oP &&= (clearInterval(oP), null));
};
a.onclick = () => {
- o.hidden ? (document.dispatchEvent(new CustomEvent(sN, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), iP && clearInterval(iP), iP = setInterval(n.updateStats, 1e3)) : e();
+ o.hidden ? (document.dispatchEvent(new CustomEvent(lN, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), oP && clearInterval(oP), oP = setInterval(n.updateStats, 1e3)) : e();
};
let t = (t) => {
t.detail !== "stats" && e();
};
- document.addEventListener(sN, t), s = () => document.removeEventListener(sN, t);
+ document.addEventListener(lN, t), s = () => document.removeEventListener(lN, t);
}
- let c = e.el().querySelector("video"), l = c ? $le(c) : () => {}, u = !0, d = () => {
- u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, sP()));
+ let c = e.el().querySelector("video"), l = c ? Zle(c) : () => {}, u = !0, d = () => {
+ u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, lP()));
};
return e.one("dispose", d), d;
}
-function uP(e, t) {
- if (t.kind === "immerse") return mue(e, t);
- let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = nP(), c = qM(), l = t.chrome === !1 ? null : e.parentElement;
- l && cP(l, e);
- let u = LN(n, r, i?.index ?? null), d = {
+function fP(e, t) {
+ if (t.kind === "immerse") return fue(e, t);
+ let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = iP(), c = YM(), l = t.chrome === !1 ? null : e.parentElement;
+ l && uP(l, e);
+ let u = zN(n, r, i?.index ?? null), d = {
guidePreview: s,
playbackKey: u,
resume: s ? null : t.resume ?? {
- time: iue(u, r),
+ time: nue(u, r),
autoplay: !1
}
};
@@ -34161,36 +34161,36 @@ function uP(e, t) {
t && (e.poster = t);
}
let f = null, p = !1, m = () => {}, h = e, g = () => {
- m(), !(f && a?.(f)) && (IN(h), f ? ($M() === f && (eN(null), sP()), HN(f)) : zN(h));
+ m(), !(f && a?.(f)) && (RN(h), f ? (tN() === f && (nN(null), lP()), WN(f)) : VN(h));
};
- return gue(r, e, s ? !1 : t.autoplay ?? c.settings().detailAutoplay, d).then((t) => {
- f = t, p ? g() : (h = t?.el().querySelector("video") ?? e, s ? (t?.el().setAttribute("data-player-guide", ""), o?.(t)) : (aue(u, h), n === "follow" ? oue(r, h) : (h.addEventListener("play", () => {
+ return mue(r, e, s ? !1 : t.autoplay ?? c.settings().detailAutoplay, d).then((t) => {
+ f = t, p ? g() : (h = t?.el().querySelector("video") ?? e, s ? (t?.el().setAttribute("data-player-guide", ""), o?.(t)) : (rue(u, h), n === "follow" ? iue(r, h) : (h.addEventListener("play", () => {
wn("/api/play", {
method: "POST",
body: JSON.stringify({ id: r.id })
}).catch(() => {});
- }, { once: !0 }), VN(r, h, {
+ }, { once: !0 }), UN(r, h, {
watched: "#watched",
mark: "#mark",
ratio: "#ratioTxt"
- })), t ? (l && (m = lP(t, l)), o?.(t)) : o?.(null)));
+ })), t ? (l && (m = dP(t, l)), o?.(t)) : o?.(null)));
}), () => {
p = !0, g();
};
}
// src/player/playback.ts
-function dP(e) {
+function pP(e) {
e && (e.paused ? e.play()?.catch(() => {}) : e.pause());
}
-function fP(e, t) {
+function mP(e, t) {
let n = e.duration, r = (e.currentTime || 0) + t;
e.currentTime = Number.isFinite(n) ? Math.max(0, Math.min(n, r)) : Math.max(0, r);
}
// src/player/preview-player.ts
-function vue(e, t, n) {
+function gue(e, t, n) {
e.controls = !1;
let r = !1, i = null;
- return eP().then((a) => {
+ return nP().then((a) => {
if (r) return;
i = a(e, {
controls: !0,
@@ -34215,30 +34215,30 @@ function vue(e, t, n) {
o.on("error", () => {
r || n();
}), o.ready(() => {
- r || o.isDisposed() || (AN(o, e), jN(o, null, { thumbnail: !1 }), MN(o));
+ r || o.isDisposed() || (MN(o, e), NN(o, null, { thumbnail: !1 }), PN(o));
}), o.src(t);
}).catch(() => {
r || n();
}), () => {
- r = !0, HN(i), i || (e.pause(), e.removeAttribute("src"), e.load(), e.remove());
+ r = !0, WN(i), i || (e.pause(), e.removeAttribute("src"), e.load(), e.remove());
};
}
-function pP(e, t) {
+function hP(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return t && n.set("exclude_vertical", "1"), n.toString();
}
-var yue = (e, t) => [
+var _ue = (e, t) => [
"catalog-grid",
"catalog",
e,
t
-], bue = (e, t) => [
+], vue = (e, t) => [
"catalog-grid",
"entity",
e,
t
];
-async function xue(e, t, n, r, i) {
+async function yue(e, t, n, r, i) {
let a = new URLSearchParams(e);
a.set("limit", String(n)), a.set("offset", String(t)), t && a.set("count", "0");
let o = await B(`/api/items?${a}`, i), s = {
@@ -34248,22 +34248,22 @@ async function xue(e, t, n, r, i) {
};
return t || s.items.length || r || (s.libraryEmpty = (await B("/api/items?limit=1&thumb=0", i)).total === 0), s;
}
-var Sue = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Cue = (e, t) => {
+var bue = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, xue = (e, t) => {
let n = t.reduce((e, t) => e + t.items.length, 0);
return (e.has_more == null ? n < (e.total || 0) : e.has_more) ? n : void 0;
};
-function wue(e) {
- let t = pP(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
+function Sue(e) {
+ let t = hP(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
return {
- queryKey: yue(t, e.revision || 0),
- queryFn: ({ pageParam: e, signal: i }) => xue(t, e, n, r, i),
+ queryKey: _ue(t, e.revision || 0),
+ queryFn: ({ pageParam: e, signal: i }) => yue(t, e, n, r, i),
initialPageParam: 0,
- getNextPageParam: Sue(n)
+ getNextPageParam: bue(n)
};
}
-function Tue(e) {
+function Cue(e) {
return {
- queryKey: bue(e.entityKey || "", e.revision || 0),
+ queryKey: vue(e.entityKey || "", e.revision || 0),
queryFn: async ({ pageParam: t, signal: n }) => {
if (!e.fetchPage) return {
items: [],
@@ -34278,14 +34278,14 @@ function Tue(e) {
};
},
initialPageParam: 0,
- getNextPageParam: Cue
+ getNextPageParam: xue
};
}
-function mP(e) {
+function gP(e) {
let t = JSON.stringify(e);
return H.getQueryCache().findAll({ queryKey: e.slice(0, -1) }).filter((e) => JSON.stringify(e.queryKey) !== t && !e.state.isInvalidated && Array.isArray(e.state.data?.pages)).sort((e, t) => t.state.dataUpdatedAt - e.state.dataUpdatedAt)[0]?.state.data;
}
-function hP(e, t, n) {
+function _P(e, t, n) {
return n ? e.filter((e) => {
let n = e.part_group?.key;
if (n) {
@@ -34300,24 +34300,24 @@ function hP(e, t, n) {
return !0;
}) : [...e];
}
-var gP = (e, t) => !!e && !!eo(e, t);
-function Eue(e, t) {
- let n = (e) => gP(e, t) && !!(e.creator || (e.performers || []).length || e.studio);
- return e.slice(15).find(n) || e.slice(8).find(n) || e.slice(8).find((e) => gP(e, t)) || e[e.length - 1];
+var vP = (e, t) => !!e && !!eo(e, t);
+function wue(e, t) {
+ let n = (e) => vP(e, t) && !!(e.creator || (e.performers || []).length || e.studio);
+ return e.slice(15).find(n) || e.slice(8).find(n) || e.slice(8).find((e) => vP(e, t)) || e[e.length - 1];
}
-function Due(e, { collapse: t, mix: n, javImage: r }) {
+function Tue(e, { collapse: t, mix: n, javImage: r }) {
let i = {
parts: /* @__PURE__ */ new Set(),
editions: /* @__PURE__ */ new Set()
}, a = /* @__PURE__ */ new Set(), o = [], s = [];
for (let c of e) {
s.push(o.length);
- let e = hP(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
+ let e = _P(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
kind: "card",
item: e
}));
if (n && e.length >= 8) {
- let t = Eue(e, r);
+ let t = wue(e, r);
t && l.splice(7, 0, {
kind: "mix",
seed: t
@@ -34330,16 +34330,16 @@ function Due(e, { collapse: t, mix: n, javImage: r }) {
pageStarts: s
};
}
-function Oue(e, t, n) {
+function Eue(e, t, n) {
let r = Math.max(1, n), i = [];
for (let n = Math.max(r, Math.ceil(Math.max(0, t) / r) * r); n < e; n += r) i.push(n);
return i;
}
-function kue(e, t) {
+function Due(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return n.set("orient", "竖屏"), n.set("limit", "18"), n.set("offset", String(t)), n.toString();
}
-function Aue(e, t) {
+function Oue(e, t) {
let n = [...t].sort((e, t) => e.at - t.at), r = [], i = 0;
for (let t of n) r.push({
start: i,
@@ -34352,10 +34352,10 @@ function Aue(e, t) {
strip: null
}), r;
}
-function _P(e, t) {
- vP((t) => t.id === e, t);
+function yP(e, t) {
+ bP((t) => t.id === e, t);
}
-function vP(e, t) {
+function bP(e, t) {
H.setQueriesData({ queryKey: ["catalog-short-layout"] }, (n) => !n || !n.cuts.some((t) => t.items.some(e)) ? n : {
...n,
cuts: n.cuts.map((n) => ({
@@ -34385,34 +34385,34 @@ function vP(e, t) {
} : n)
});
}
-var yP = (e) => Math.min(Math.max(e || 0, 0), 100), bP = (e) => Math.round(yP(e) / 20), jue = (e) => {
- let t = bP(e);
+var xP = (e) => Math.min(Math.max(e || 0, 0), 100), SP = (e) => Math.round(xP(e) / 20), kue = (e) => {
+ let t = SP(e);
return t ? `${t} 星` : "未评分";
-}, xP = (e, t) => t === bP(e) ? 0 : t * 20, SP = (e) => ["item", e], CP = (e) => [
+}, CP = (e, t) => t === SP(e) ? 0 : t * 20, wP = (e) => ["item", e], TP = (e) => [
"item-queue",
e.kind,
e.kind === "playlist" ? e.playlistId : e.seedId
-], Mue = (e, t) => [
+], Aue = (e, t) => [
"item-related",
e,
t
-], Nue = (e) => `/api/item?id=${e}`, Pue = (e, t) => `/api/related?id=${e}&limit=${t}`, wP = "/api/playlist", TP = "/api/feedback", EP = "/api/item-tag", DP = "/api/watch-later", OP = "/api/quality-goal", kP = "/api/preference", AP = class extends Error {};
-async function jP(e, t) {
- let n = await B(Nue(e), t);
- if (n.error) throw new AP(n.error);
+], jue = (e) => `/api/item?id=${e}`, Mue = (e, t) => `/api/related?id=${e}&limit=${t}`, EP = "/api/playlist", DP = "/api/feedback", OP = "/api/item-tag", kP = "/api/watch-later", AP = "/api/quality-goal", jP = "/api/preference", MP = class extends Error {};
+async function NP(e, t) {
+ let n = await B(jue(e), t);
+ if (n.error) throw new MP(n.error);
return n;
}
-async function MP(e, t, n) {
+async function PP(e, t, n) {
if (e.kind === "mix") {
- let r = e.seedId, [i, a] = await Promise.all([jP(r, n), t.mixRelated(r)]);
- return H.setQueryData(SP(i.id), i), {
+ let r = e.seedId, [i, a] = await Promise.all([NP(r, n), t.mixRelated(r)]);
+ return H.setQueryData(wP(i.id), i), {
kind: "mix",
seedId: r,
title: `Mix · ${jo(i, t.tagLabel)}`,
items: [i, ...a.filter((e) => e.id !== i.id)]
};
}
- if (e.kind === "playlist") return NP(await B(`${wP}?id=${e.playlistId}`, n));
+ if (e.kind === "playlist") return FP(await B(`${EP}?id=${e.playlistId}`, n));
let r = await B(`/api/${e.kind}?id=${e.seedId}`, n);
if (r.error || !r.items?.length) throw Error(r.error || "这一组已不存在");
return {
@@ -34423,19 +34423,19 @@ async function MP(e, t, n) {
versionCount: e.kind === "editions" ? r.count : void 0
};
}
-var NP = (e) => ({
+var FP = (e) => ({
kind: "playlist",
playlistId: e.id,
title: e.name,
items: e.items || [],
currentAssetId: e.current_asset_id
-}), PP = (e) => e.disposal === "vanished";
-function FP(e, t) {
+}), IP = (e) => e.disposal === "vanished";
+function LP(e, t) {
if (e.kind === "mix") return t;
- let n = e.kind === "playlist" ? e.items.filter((e) => !PP(e)) : e.items;
+ let n = e.kind === "playlist" ? e.items.filter((e) => !IP(e)) : e.items;
return n.length ? t != null && n.some((e) => e.id === t) ? t : e.kind === "playlist" && n.some((t) => t.id === e.currentAssetId) ? e.currentAssetId : n[0].id : null;
}
-function Fue(e, t) {
+function Nue(e, t) {
if (t?.kind !== "parts" && t?.kind !== "editions") return e;
let n = t.items.find((t) => t.id === e.id)?.part_label || "";
return e.part_label === n ? e : {
@@ -34443,20 +34443,20 @@ function Fue(e, t) {
part_label: n
};
}
-function IP(e, t) {
+function RP(e, t) {
if (!e || e.kind !== "parts" && e.kind !== "editions") return null;
let n = e.items.findIndex((e) => e.id === t), r = e.items[n], i = e.items[n + 1];
return !r?.part_label || !i?.part_label ? null : e.kind === "parts" || r.version_id != null && r.version_id === i.version_id ? i : null;
}
-async function LP(e, t) {
+async function zP(e, t) {
let { queue: n, actions: r } = e, i = null, a = !1;
if (n) {
- let o = CP(n);
+ let o = TP(n);
try {
let r = n.fresh ? void 0 : H.getQueryData(o);
a = !r && n.kind === "mix", i = r || await H.fetchQuery({
queryKey: o,
- queryFn: () => MP(n, e.helpers, t),
+ queryFn: () => PP(n, e.helpers, t),
staleTime: 0
});
} catch (n) {
@@ -34468,21 +34468,21 @@ async function LP(e, t) {
return;
}
}
- let o = i ? FP(i, e.id) : e.id;
+ let o = i ? LP(i, e.id) : e.id;
if (o == null) {
r.redirect(i?.kind === "playlist" ? { kind: "playlists" } : { kind: "gone" });
return;
}
- let s, c = a && o === i?.seedId ? H.getQueryData(SP(o)) : void 0;
+ let s, c = a && o === i?.seedId ? H.getQueryData(wP(o)) : void 0;
try {
s = c || await H.fetchQuery({
- queryKey: SP(o),
- queryFn: () => jP(o, t),
+ queryKey: wP(o),
+ queryFn: () => NP(o, t),
staleTime: 0
});
} catch (e) {
if (t.aborted) throw e;
- if (e instanceof AP) {
+ if (e instanceof MP) {
r.redirect({ kind: "gone" });
return;
}
@@ -34493,7 +34493,7 @@ async function LP(e, t) {
id: Number(s.follow_item_id)
});
}
-function Iue(e) {
+function Pue(e) {
let t = e.entity_refs || {}, n = /* @__PURE__ */ new Set(), r = (e) => {
let t = Hn(e.name);
return !e.name || n.has(t) ? !1 : (n.add(t), !0);
@@ -34515,35 +34515,35 @@ function Iue(e) {
unowned: !i.length && !c.length && !String(e.creator || "").trim()
};
}
-function Lue(e, t) {
+function Fue(e, t) {
let n = /* @__PURE__ */ new Map();
return (e.tags || []).filter((e) => !t.isDurationTag(e.k)).forEach((e) => {
let r = Hn(t.tagLabel(e.k)), i = n.get(r);
(!i || Hn(e.k) === r && Hn(i.k) !== r) && n.set(r, e);
}), [...n.values()].slice(0, 40);
}
-var RP = (e, t) => (e.tags || []).some((e) => Hn(e.k) === Hn(t)), zP = (e, t) => ({
+var BP = (e, t) => (e.tags || []).some((e) => Hn(e.k) === Hn(t)), VP = (e, t) => ({
...e,
tags: (e.tags || []).filter((e) => Hn(e.k) !== Hn(t))
-}), BP = (e, t) => RP(e, t.k) ? e : {
+}), HP = (e, t) => BP(e, t.k) ? e : {
...e,
tags: [...e.tags || [], t]
-}, VP = "peach.recentTags";
-function HP() {
+}, UP = "peach.recentTags";
+function WP() {
try {
- let e = JSON.parse(localStorage.getItem(VP) || "[]");
+ let e = JSON.parse(localStorage.getItem(UP) || "[]");
return Array.isArray(e) ? e.map(String) : [];
} catch {
return [];
}
}
-function UP(e) {
+function GP(e) {
try {
- let t = HP().filter((t) => Hn(t) !== Hn(e));
- localStorage.setItem(VP, JSON.stringify([e, ...t].slice(0, 12)));
+ let t = WP().filter((t) => Hn(t) !== Hn(e));
+ localStorage.setItem(UP, JSON.stringify([e, ...t].slice(0, 12)));
} catch {}
}
-function Rue(e, t, n) {
+function Iue(e, t, n) {
let r = Hn(e), i = new Map(t.map((e) => [Hn(e.k), e])), a = t.filter((e) => !r || Hn(e.k).includes(r)).slice(0, 120), o = r ? [] : n.map((e) => i.get(Hn(e)) || {
k: e,
n: 0
@@ -34554,72 +34554,72 @@ function Rue(e, t, n) {
create: r && !s ? e.trim() : ""
};
}
-var zue = {
+var Lue = {
中字: "subtitle",
无码: "uncensored",
无码破解: "cracked",
有码: "censored"
-}, Bue = {
+}, Rue = {
mix: "Mix",
parts: "分卷",
editions: "版本",
playlist: "播放列表"
};
-function Vue(e) {
+function zue(e) {
let t = (e.kind === "editions" ? e.versionCount ?? e.items.length : e.items.length).toLocaleString(), n = e.kind === "parts" ? `${t} 卷` : e.kind === "editions" ? `${t} 个版本` : `${t} 个视频`;
return {
- title: Bue[e.kind],
+ title: Rue[e.kind],
summary: e.kind === "editions" ? n : `${e.title} · ${n}`
};
}
-var WP = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, Hue = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${z(WP(e.part_label))}</small>` : "";
-function Uue(e, t, n, r) {
+var KP = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, Bue = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${z(KP(e.part_label))}</small>` : "";
+function Vue(e, t, n, r) {
let i = e.filter((e) => e !== t), a = i.indexOf(n);
return i.splice(a + +!!r, 0, t), i;
}
-var Wue = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
-function Gue(e, t) {
+var Hue = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
+function Uue(e, t) {
return t ? "offline" : String(e.name || "").toLowerCase().endsWith(".iso") ? "disc" : e.location === "online" && !e.follow_item_id ? "online" : e.cost === "metered" && e.location !== "online" ? "metered" : "";
}
-function Kue(e) {
+function Wue(e) {
let t = Number(e.duration) > 0 ? Number(e.duration) : 0;
return !e.play_seconds || !t ? null : Math.min(Number(e.play_seconds) / t, 1) * 100;
}
-function GP(e, t) {
+function qP(e, t) {
return e === "dislike" ? t.feedback === "dislike" ? "已标记不合口味" : "已取消不合口味" : e === "seen" ? t.feedback === "seen" ? "已标记看过" : "已取消看过" : e === "dispose" ? t.disposal === "trash" ? "已移入回收站" : "已移出回收站" : "已记录一次高潮";
}
// src/react/immerse/immerse.ts
-var que = (e, t, n) => [
+var Gue = (e, t, n) => [
"immerse-list",
e,
t,
n
];
-function Jue(e) {
+function Kue(e) {
let t = new URLSearchParams();
for (let [n, r] of Object.entries(e)) r && t.set(n, String(r));
return t.delete("orient"), t.set("sort", "rand"), t.set("limit", "60"), t.set("offset", "0"), t.set("thumb", ""), t.toString();
}
-var Yue = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.root_id || e.location || ""));
-function Xue(e, t = Math.random) {
+var que = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.root_id || e.location || ""));
+function Jue(e, t = Math.random) {
for (let n = e.length - 1; n > 0; n--) {
let r = Math.floor(t() * (n + 1));
[e[n], e[r]] = [e[r], e[n]];
}
return e;
}
-async function Zue(e, t) {
- return Xue(((await B(`/api/items?${e}`)).items || []).filter((e) => Yue(e, t)));
+async function Yue(e, t) {
+ return Jue(((await B(`/api/items?${e}`)).items || []).filter((e) => que(e, t)));
}
-var KP = (e) => H.ensureQueryData({
- queryKey: SP(e),
- queryFn: ({ signal: t }) => jP(e, t)
+var JP = (e) => H.ensureQueryData({
+ queryKey: wP(e),
+ queryFn: ({ signal: t }) => NP(e, t)
});
-function Que(e, t) {
+function Xue(e, t) {
let n = new Set(e.map((e) => e.id));
return e.concat(t.filter((e) => !n.has(e.id)));
}
-function $ue(e) {
+function Zue(e) {
let t = e.performers || [], n = t.length ? t.slice(0, 3).join("、") + (t.length > 3 ? ` 等 ${t.length} 人` : "") : e.creator || "未归属", r = t.length ? "performer" : e.creator ? "creator" : "";
return {
who: n,
@@ -34628,306 +34628,306 @@ function $ue(e) {
ref: r && e.entity_refs?.[r]?.[0] || null
};
}
-function ede(e, t, n) {
+function Que(e, t, n) {
if (!e || !t || !n || !Number.isFinite(n)) return null;
let r = e / t;
return (r > n ? r / n : n / r) > 1.05 ? "contain" : "cover";
}
-function tde(e, t) {
+function $ue(e, t) {
return e.videoWidth && e.videoHeight ? e.videoWidth >= e.videoHeight : !!(t.width && t.height && t.width > 0 && t.height > 0 && t.width >= t.height);
}
-var nde = 15e3, qP = {
+var ede = 15e3, YP = {
open: !1,
idle: !1,
wide: !1,
loading: null,
shown: null
-}, JP = null, YP = null, XP = qP, ZP = /* @__PURE__ */ new Set(), QP = 0, $P = 0, eF = 0, tF = "", nF = [], rF = 0, iF = !1, aF = !1, oF = null, sF = /* @__PURE__ */ new Set(), cF = "", lF = null, uF = 0, dF = null, fF = !1;
-function pF() {
- if (!JP) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
- return JP;
+}, XP = null, ZP = null, QP = YP, $P = /* @__PURE__ */ new Set(), eF = 0, tF = 0, nF = 0, rF = "", iF = [], aF = 0, oF = !1, sF = !1, cF = null, lF = /* @__PURE__ */ new Set(), uF = "", dF = null, fF = 0, pF = null, mF = !1;
+function hF() {
+ if (!XP) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
+ return XP;
}
-function rde(e) {
- return ZP.add(e), () => {
- ZP.delete(e);
+function tde(e) {
+ return $P.add(e), () => {
+ $P.delete(e);
};
}
-function ide() {
- for (let e of [...ZP]) e();
+function nde() {
+ for (let e of [...$P]) e();
}
-function mF() {
- (0, Lt.flushSync)(ide);
+function gF() {
+ (0, Lt.flushSync)(nde);
}
-function hF() {
- let e = lF ? dN(lF.id) : 0;
- return e ? `${cF} · ${pN(e)}` : cF;
+function _F() {
+ let e = dF ? pN(dF.id) : 0;
+ return e ? `${uF} · ${hN(e)}` : uF;
}
-function gF(e, t = null) {
- clearInterval(uF), uF = 0, e === null ? (XP = {
- ...XP,
+function vF(e, t = null) {
+ clearInterval(fF), fF = 0, e === null ? (QP = {
+ ...QP,
loading: null
- }, mF()) : (cF = e, lF = t, XP = {
- ...XP,
- loading: hF()
- }, mF(), uF = window.setInterval(() => {
- lF = nF[rF] ?? null, XP = {
- ...XP,
- loading: hF()
- }, mF();
+ }, gF()) : (uF = e, dF = t, QP = {
+ ...QP,
+ loading: _F()
+ }, gF(), fF = window.setInterval(() => {
+ dF = iF[aF] ?? null, QP = {
+ ...QP,
+ loading: _F()
+ }, gF();
}, 500));
}
-function ade(e) {
+function rde(e) {
let t = document.createElement("div");
t.dataset.immerseSlide = "", e && (t.style.transform = `translateY(${e}%)`);
let n = document.createElement("video");
- n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), YP.track.append(t);
- let r = WN(), i = () => {}, a = {
+ n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), ZP.track.append(t);
+ let r = KN(), i = () => {}, a = {
el: t,
video: n,
session: r,
- release: () => qN(r),
+ release: () => YN(r),
disposed: !1,
gone: new Promise((e) => {
i = e;
}),
leave: i
};
- return sF.add(a), a;
+ return lF.add(a), a;
}
-function ode(e, t) {
+function ide(e, t) {
return new Promise((n) => {
- e.release = uP(e.video, {
+ e.release = fP(e.video, {
kind: "immerse",
item: t,
session: e.session,
onLoaded: n,
onEnded: () => {
- XP.open && CF(1);
+ QP.open && TF(1);
}
}), e.gone.then(n);
});
}
-function _F(e) {
- e && !e.disposed && (e.disposed = !0, sF.delete(e), e.leave(), e.release(), e.el.remove(), oF === e && (oF = null));
+function yF(e) {
+ e && !e.disposed && (e.disposed = !0, lF.delete(e), e.leave(), e.release(), e.el.remove(), cF === e && (cF = null));
}
-var vF = [
+var bF = [
"loadeddata",
"canplay",
"error"
];
-function sde(e) {
+function ade(e) {
let { video: t } = e;
return t.readyState >= 3 ? Promise.resolve() : new Promise((n) => {
let r = !1, i = () => {
- r || (r = !0, clearTimeout(a), vF.forEach((e) => t.removeEventListener(e, i)), n());
+ r || (r = !0, clearTimeout(a), bF.forEach((e) => t.removeEventListener(e, i)), n());
};
- vF.forEach((e) => t.addEventListener(e, i, { once: !0 }));
- let a = setTimeout(i, nde);
+ bF.forEach((e) => t.addEventListener(e, i, { once: !0 }));
+ let a = setTimeout(i, ede);
e.gone.then(i);
});
}
-function yF(e) {
- let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = ede(e.videoWidth, e.videoHeight, n);
+function xF(e) {
+ let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = Que(e.videoWidth, e.videoHeight, n);
r === "contain" ? e.dataset.fit = "contain" : r && delete e.dataset.fit;
}
-var bF = () => YP?.track.querySelectorAll("video").forEach(yF);
-function cde(e) {
- delete e.dataset.fit, e.readyState >= 1 ? yF(e) : e.addEventListener("loadedmetadata", () => yF(e), { once: !0 });
+var SF = () => ZP?.track.querySelectorAll("video").forEach(xF);
+function ode(e) {
+ delete e.dataset.fit, e.readyState >= 1 ? xF(e) : e.addEventListener("loadedmetadata", () => xF(e), { once: !0 });
}
-function lde(e) {
- XP = {
- ...XP,
+function sde(e) {
+ QP = {
+ ...QP,
wide: e
- }, mF(), bF();
+ }, gF(), SF();
}
-var xF = () => {
- let e = tF;
+var CF = () => {
+ let e = rF;
return H.fetchQuery({
- queryKey: que(e, $P, eF),
- queryFn: () => Zue(e, pF().sourceOffline),
+ queryKey: Gue(e, tF, nF),
+ queryFn: () => Yue(e, hF().sourceOffline),
staleTime: Infinity
});
};
-function ude(e, t) {
+function cde(e, t) {
let n = () => Kn(e.duration) || Kn(t.duration);
e.addEventListener("timeupdate", () => {
let t = n();
- t && YP && (YP.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
- }), dF = {
+ t && ZP && (ZP.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
+ }), pF = {
video: e,
duration: n
};
}
-async function SF(e = 0) {
- let t = nF[rF];
- if (!t || iF) return;
- let n = QP;
- pF().route(t.id), iF = !0, gF(e ? "切换中" : "加载中", t);
+async function wF(e = 0) {
+ let t = iF[aF];
+ if (!t || oF) return;
+ let n = eF;
+ hF().route(t.id), oF = !0, vF(e ? "切换中" : "加载中", t);
let r = null;
try {
- if (await KP(t.id).catch((e) => {
- if (!(e instanceof AP)) throw e;
- }), n !== QP) return;
- let i = oF, a = !!(e && i);
- a || _F(i);
- let o = ade(a ? e > 0 ? 100 : -100 : 0);
- if (r = o, cde(o.video), await ode(o, t), await sde(o), o.disposed || (lde(tde(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
+ if (await JP(t.id).catch((e) => {
+ if (!(e instanceof MP)) throw e;
+ }), n !== eF) return;
+ let i = cF, a = !!(e && i);
+ a || yF(i);
+ let o = rde(a ? e > 0 ? 100 : -100 : 0);
+ if (r = o, ode(o.video), await ide(o, t), await ade(o), o.disposed || (sde($ue(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
i.el.style.transform = `translateY(${e > 0 ? -100 : 100}%)`, o.el.style.transform = "";
- })), await new Promise((e) => setTimeout(e, 210)), _F(i), o.el.style.transform = ""), o.disposed)) return;
- oF = o, r = null, o.video.play()?.catch(() => {}), XP = {
- ...XP,
+ })), await new Promise((e) => setTimeout(e, 210)), yF(i), o.el.style.transform = ""), o.disposed)) return;
+ cF = o, r = null, o.video.play()?.catch(() => {}), QP = {
+ ...QP,
idle: !1,
shown: {
item: t,
- index: rF,
- length: nF.length
+ index: aF,
+ length: iF.length
}
- }, ude(o.video, t), V("/api/play", { id: t.id }).catch(() => {}), gF(null);
+ }, cde(o.video, t), V("/api/play", { id: t.id }).catch(() => {}), vF(null);
} catch {
- _F(r), n === QP && gF(null);
+ yF(r), n === eF && vF(null);
} finally {
- n === QP && (iF = !1);
+ n === eF && (oF = !1);
}
}
-async function CF(e) {
- if (iF || !XP.open) return;
- let t = QP;
- if (rF += e, gF("切换中", nF[rF] ?? null), rF >= nF.length - 3 && !aF) {
- aF = !0;
+async function TF(e) {
+ if (oF || !QP.open) return;
+ let t = eF;
+ if (aF += e, vF("切换中", iF[aF] ?? null), aF >= iF.length - 3 && !sF) {
+ sF = !0;
try {
- eF += 1;
- let e = await xF();
- t === QP && (nF = Que(nF, e));
+ nF += 1;
+ let e = await CF();
+ t === eF && (iF = Xue(iF, e));
} catch {} finally {
- aF = !1;
+ sF = !1;
}
}
- t === QP && (rF >= nF.length && (rF = 0), rF < 0 && (rF = nF.length - 1), await SF(e));
+ t === eF && (aF >= iF.length && (aF = 0), aF < 0 && (aF = iF.length - 1), await wF(e));
}
-async function dde(e) {
- let t = ++QP;
- wF(), $P += 1, eF = 0, tF = Jue(pF().filters()), H.removeQueries({ queryKey: ["immerse-list"] }), XP = {
- ...XP,
+async function lde(e) {
+ let t = ++eF;
+ EF(), tF += 1, nF = 0, rF = Kue(hF().filters()), H.removeQueries({ queryKey: ["immerse-list"] }), QP = {
+ ...QP,
open: !0,
idle: !0,
shown: null
- }, document.body.setAttribute("data-immerse-open", ""), gF("加载内容");
+ }, document.body.setAttribute("data-immerse-open", ""), vF("加载内容");
try {
- let n = await xF();
+ let n = await CF();
if (e && !n.some((t) => t.id === e)) {
- let t = await KP(e).catch((e) => {
- if (e instanceof AP) return null;
+ let t = await JP(e).catch((e) => {
+ if (e instanceof MP) return null;
throw e;
});
t?.id && (n = [t, ...n.filter((t) => t.id !== e)]);
}
- if (t !== QP) return;
- if (nF = n, !nF.length) {
- TF(), pF().warn("当前筛选下没有可直接播放的内容");
+ if (t !== eF) return;
+ if (iF = n, !iF.length) {
+ DF(), hF().warn("当前筛选下没有可直接播放的内容");
return;
}
- rF = Math.max(0, nF.findIndex((t) => t.id === e)), await SF();
+ aF = Math.max(0, iF.findIndex((t) => t.id === e)), await wF();
} catch {
- if (t !== QP) return;
- gF(null), TF();
+ if (t !== eF) return;
+ vF(null), DF();
}
}
-function wF() {
- clearInterval(uF), uF = 0, jF(), kF = null, dF = null, fF = !1, [...sF].forEach(_F), iF = !1;
+function EF() {
+ clearInterval(fF), fF = 0, NF(), jF = null, pF = null, mF = !1, [...lF].forEach(yF), oF = !1;
}
-function TF() {
- XP.open && (QP++, wF(), XP = qP, document.body.removeAttribute("data-immerse-open"), mF(), pF().closed());
+function DF() {
+ QP.open && (eF++, EF(), QP = YP, document.body.removeAttribute("data-immerse-open"), gF(), hF().closed());
}
-var EF = 0, DF = null, OF = 0, kF = null, AF = 0;
-function jF() {
- clearTimeout(EF), EF = 0, DF = null;
+var OF = 0, kF = null, AF = 0, jF = null, MF = 0;
+function NF() {
+ clearTimeout(OF), OF = 0, kF = null;
}
-function fde(e) {
- let t = oF?.video;
+function ude(e) {
+ let t = cF?.video;
if (!t) return;
let n = e < window.innerWidth / 2 ? -1 : 1, r = Date.now();
- DF && DF.side === n && r - DF.at <= 280 ? (jF(), fP(t, pF().seekSeconds() * n)) : (EF && (clearTimeout(EF), EF = 0, dP(t)), DF = {
+ kF && kF.side === n && r - kF.at <= 280 ? (NF(), mP(t, hF().seekSeconds() * n)) : (OF && (clearTimeout(OF), OF = 0, pP(t)), kF = {
side: n,
at: r
- }, EF = window.setTimeout(() => {
- EF = 0, DF = null, XP.open && dP(oF?.video);
+ }, OF = window.setTimeout(() => {
+ OF = 0, kF = null, QP.open && pP(cF?.video);
}, 280));
}
-function pde() {
- Date.now() < OF || dP(oF?.video);
+function dde() {
+ Date.now() < AF || pP(cF?.video);
}
-var MF = (e) => YP?.bar.toggleAttribute("data-scrubbing", e);
-function NF(e) {
- YP && (YP.progress.style.width = `${(e * 100).toFixed(2)}%`);
+var PF = (e) => ZP?.bar.toggleAttribute("data-scrubbing", e);
+function FF(e) {
+ ZP && (ZP.progress.style.width = `${(e * 100).toFixed(2)}%`);
}
-function PF(e) {
+function IF(e) {
let t = e.target;
if (e.touches.length !== 1 || !t?.closest("[data-immerse-track]")) {
- kF = null;
+ jF = null;
return;
}
- let n = oF?.video;
- kF = {
+ let n = cF?.video;
+ jF = {
x: e.touches[0].clientX,
y: e.touches[0].clientY,
axis: "",
from: n && n.currentTime || 0
};
}
-function FF(e) {
- if (!kF || e.touches.length !== 1) return;
- let t = e.touches[0].clientX - kF.x, n = e.touches[0].clientY - kF.y;
- if (!kF.axis) {
+function LF(e) {
+ if (!jF || e.touches.length !== 1) return;
+ let t = e.touches[0].clientX - jF.x, n = e.touches[0].clientY - jF.y;
+ if (!jF.axis) {
if (Math.abs(t) < 12 && Math.abs(n) < 12) return;
- kF.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", kF.axis === "x" && MF(!0);
+ jF.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", jF.axis === "x" && PF(!0);
}
- if (kF.axis !== "x") return;
- let r = oF?.video, i = r && r.duration || 0;
- i && (e.preventDefault(), kF.to = Math.min(i, Math.max(0, kF.from + t / window.innerWidth * i)), NF(kF.to / i));
+ if (jF.axis !== "x") return;
+ let r = cF?.video, i = r && r.duration || 0;
+ i && (e.preventDefault(), jF.to = Math.min(i, Math.max(0, jF.from + t / window.innerWidth * i)), FF(jF.to / i));
}
-function IF(e) {
- if (!kF) return;
- let t = kF;
- if (kF = null, OF = Date.now() + 700, MF(!1), t.axis === "x") {
- let e = oF?.video;
+function RF(e) {
+ if (!jF) return;
+ let t = jF;
+ if (jF = null, AF = Date.now() + 700, PF(!1), t.axis === "x") {
+ let e = cF?.video;
e && t.to != null && (e.currentTime = t.to);
return;
}
let n = e.changedTouches[0], r = n.clientX - t.x, i = t.y - n.clientY;
- Math.abs(i) > 60 ? (jF(), CF(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), fde(n.clientX));
+ Math.abs(i) > 60 ? (NF(), TF(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), ude(n.clientX));
}
-function LF() {
- kF = null, MF(!1);
+function zF() {
+ jF = null, PF(!1);
}
-function RF(e) {
+function BF(e) {
let t = Date.now();
- t - AF < 260 || (AF = t, CF(e.deltaY > 0 ? 1 : -1));
+ t - MF < 260 || (MF = t, TF(e.deltaY > 0 ? 1 : -1));
}
-function zF(e) {
- let t = YP.bar.getBoundingClientRect();
+function VF(e) {
+ let t = ZP.bar.getBoundingClientRect();
return Math.min(1, Math.max(0, (e.clientX - t.left) / t.width));
}
-function mde(e) {
- dF?.duration() && (fF = !0, MF(!0), e.currentTarget.setPointerCapture(e.pointerId), NF(zF(e)), e.preventDefault());
+function fde(e) {
+ pF?.duration() && (mF = !0, PF(!0), e.currentTarget.setPointerCapture(e.pointerId), FF(VF(e)), e.preventDefault());
}
-function hde(e) {
- fF && NF(zF(e));
+function pde(e) {
+ mF && FF(VF(e));
}
-function gde(e) {
- if (!fF) return;
- fF = !1, MF(!1);
- let t = dF?.duration();
- dF && t && (dF.video.currentTime = t * zF(e));
+function mde(e) {
+ if (!mF) return;
+ mF = !1, PF(!1);
+ let t = pF?.duration();
+ pF && t && (pF.video.currentTime = t * VF(e));
}
-function _de() {
- fF = !1, MF(!1);
+function hde() {
+ mF = !1, PF(!1);
}
-async function BF(e, t) {
- let n = await V(TP, {
+async function HF(e, t) {
+ let n = await V(DP, {
id: e,
kind: t
- }), r = H.getQueryData(SP(e));
- if (!r) return _P(e, {
+ }), r = H.getQueryData(wP(e));
+ if (!r) return yP(e, {
feedback: n.feedback ?? void 0,
o_count: n.o_count
}), n;
@@ -34936,7 +34936,7 @@ async function BF(e, t) {
feedback: n.feedback ?? void 0,
o_count: n.o_count
};
- return H.setQueryData(SP(e), i), _P(e, {
+ return H.setQueryData(wP(e), i), yP(e, {
feedback: i.feedback,
disposal: i.disposal,
watch_later: i.watch_later,
@@ -34944,7 +34944,7 @@ async function BF(e, t) {
o_count: i.o_count
}), n;
}
-var vde = [
+var gde = [
{
kind: "dislike",
glyph: "thumbs-down",
@@ -34961,31 +34961,31 @@ var vde = [
label: "记一次高潮"
}
];
-function VF(e) {
+function UF(e) {
return Pt({
- queryKey: SP(e ?? 0),
- queryFn: ({ signal: t }) => jP(e, t),
+ queryKey: wP(e ?? 0),
+ queryFn: ({ signal: t }) => NP(e, t),
enabled: e != null,
staleTime: Infinity
}).data;
}
-function yde({ kind: e, glyph: t, label: n, id: r }) {
- let i = VF(r), a = Ft({
+function _de({ kind: e, glyph: t, label: n, id: r }) {
+ let i = UF(r), a = Ft({
mutationFn: async (t) => {
- let n = H.getQueryData(SP(t))?.feedback || null;
+ let n = H.getQueryData(wP(t))?.feedback || null;
return {
- result: await BF(t, e),
+ result: await HF(t, e),
before: n
};
},
onSuccess: ({ result: t, before: n }, r) => {
- pF().toast(GP(e, t), { undo: async () => {
- e === "o" ? await BF(r, "o-undo") : (t.feedback && await BF(r, t.feedback), n && await BF(r, n));
+ hF().toast(qP(e, t), { undo: async () => {
+ e === "o" ? await HF(r, "o-undo") : (t.feedback && await HF(r, t.feedback), n && await HF(r, n));
} }), e === "dislike" && t.feedback === "dislike" && setTimeout(() => {
- CF(1);
+ TF(1);
}, 260);
},
- onError: (e) => pF().failure("更新反馈", e)
+ onError: (e) => hF().failure("更新反馈", e)
}), o = a.isPending, s = e !== "o" && i ? i.feedback === e ? "true" : "false" : void 0;
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-immerse-action": "",
@@ -35016,11 +35016,11 @@ function yde({ kind: e, glyph: t, label: n, id: r }) {
})]
});
}
-function bde({ shown: e }) {
- let t = e?.item ?? null, n = VF(t?.id ?? null), r = n ? $ue(n) : null, i = pF(), a = (e) => {
- e.preventDefault(), n && (TF(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
+function vde({ shown: e }) {
+ let t = e?.item ?? null, n = UF(t?.id ?? null), r = n ? Zue(n) : null, i = hF(), a = (e) => {
+ e.preventDefault(), n && (DF(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
}, o = () => {
- t && (TF(), i.openItem(t.id));
+ t && (DF(), i.openItem(t.id));
}, s = r ? go(r.name, r.ref, Xa(r.name), r.kind || "performer") : "";
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-immerse-ui": "",
@@ -35049,18 +35049,18 @@ function bde({ shown: e }) {
})]
});
}
-var xde = { __html: zs("媒体加载中") };
-function Sde({ view: e }) {
+var yde = { __html: zs("媒体加载中") };
+function bde({ view: e }) {
let t = (0, F.useRef)(null), n = (0, F.useRef)(null), r = (0, F.useRef)(null), i = (0, F.useRef)(null);
(0, F.useLayoutEffect)(() => {
let e = t.current;
- return YP = {
+ return ZP = {
root: e,
track: n.current,
bar: r.current,
progress: i.current
- }, e.addEventListener("touchstart", PF, { passive: !0 }), e.addEventListener("touchmove", FF, { passive: !1 }), e.addEventListener("touchend", IF, { passive: !1 }), e.addEventListener("touchcancel", LF, { passive: !0 }), e.addEventListener("wheel", RF, { passive: !0 }), () => {
- e.removeEventListener("touchstart", PF), e.removeEventListener("touchmove", FF), e.removeEventListener("touchend", IF), e.removeEventListener("touchcancel", LF), e.removeEventListener("wheel", RF), YP = null;
+ }, e.addEventListener("touchstart", IF, { passive: !0 }), e.addEventListener("touchmove", LF, { passive: !1 }), e.addEventListener("touchend", RF, { passive: !1 }), e.addEventListener("touchcancel", zF, { passive: !0 }), e.addEventListener("wheel", BF, { passive: !0 }), () => {
+ e.removeEventListener("touchstart", IF), e.removeEventListener("touchmove", LF), e.removeEventListener("touchend", RF), e.removeEventListener("touchcancel", zF), e.removeEventListener("wheel", BF), ZP = null;
};
}, []);
let a = e.shown?.item.id ?? null, o = (e) => e ? "" : void 0;
@@ -35077,10 +35077,10 @@ function Sde({ view: e }) {
children: [/* @__PURE__ */ (0, I.jsx)("div", {
ref: n,
"data-immerse-track": "",
- onClick: pde
+ onClick: dde
}), /* @__PURE__ */ (0, I.jsx)("div", {
"data-immerse-actions": "",
- children: vde.map((e) => /* @__PURE__ */ (0, I.jsx)(yde, {
+ children: gde.map((e) => /* @__PURE__ */ (0, I.jsx)(_de, {
...e,
id: a
}, e.kind))
@@ -35093,7 +35093,7 @@ function Sde({ view: e }) {
hidden: e.loading === null,
children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-immerse-spinner": "",
- dangerouslySetInnerHTML: xde
+ dangerouslySetInnerHTML: yde
}), /* @__PURE__ */ (0, I.jsx)("span", { children: e.loading ?? "" })]
}),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -35101,7 +35101,7 @@ function Sde({ view: e }) {
"data-immerse-close": "",
title: "关闭",
"aria-label": "关闭",
- onClick: TF,
+ onClick: DF,
children: /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-x" })
@@ -35110,41 +35110,41 @@ function Sde({ view: e }) {
/* @__PURE__ */ (0, I.jsx)("div", {
ref: r,
"data-immerse-bar": "",
- onPointerDown: mde,
- onPointerMove: hde,
- onPointerUp: gde,
- onPointerCancel: _de,
+ onPointerDown: fde,
+ onPointerMove: pde,
+ onPointerUp: mde,
+ onPointerCancel: hde,
children: /* @__PURE__ */ (0, I.jsx)("i", { ref: i })
}),
- /* @__PURE__ */ (0, I.jsx)(bde, { shown: e.shown })
+ /* @__PURE__ */ (0, I.jsx)(vde, { shown: e.shown })
]
});
}
-var Cde = {
- open: dde,
- close: TF,
- isOpen: () => XP.open,
- activeVideo: () => XP.open ? oF?.video ?? null : null
+var xde = {
+ open: lde,
+ close: DF,
+ isOpen: () => QP.open,
+ activeVideo: () => QP.open ? cF?.video ?? null : null
};
-function wde(e) {
- if (!XP.open) return;
+function Sde(e) {
+ if (!QP.open) return;
let t = e.target;
- t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && CF(1), e.key === "ArrowUp" && CF(-1));
+ t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && TF(1), e.key === "ArrowUp" && TF(-1));
}
-function Tde(e) {
- let t = !JP;
- return JP = e, t && (document.addEventListener("keydown", wde), addEventListener("resize", () => {
- XP.open && bF();
+function Cde(e) {
+ let t = !XP;
+ return XP = e, t && (document.addEventListener("keydown", Sde), addEventListener("resize", () => {
+ QP.open && SF();
}), addEventListener("pagehide", () => {
- sF.forEach((e) => qN(e.session));
- })), Cde;
+ lF.forEach((e) => YN(e.session));
+ })), xde;
}
-function Ede() {
- let e = (0, F.useSyncExternalStore)(rde, () => XP);
- return JP ? /* @__PURE__ */ (0, I.jsx)(Sde, { view: e }) : null;
+function wde() {
+ let e = (0, F.useSyncExternalStore)(tde, () => QP);
+ return XP ? /* @__PURE__ */ (0, I.jsx)(bde, { view: e }) : null;
}
// src/manage-header.ts
-var HF = {
+var WF = {
...Jf,
"/junk-files": "垃圾文件",
"/duplicates": "重复文件",
@@ -35152,47 +35152,47 @@ var HF = {
"/trash": "回收站",
"/quality-goals": "高清版",
"/sources": "来源和凭证"
-}, Dde = /* @__PURE__ */ new Set(["/data-cleanup", "/sources"]);
-function Ode(e) {
- let t = HF[e.path] ? "cleanup" : e.section;
+}, Tde = /* @__PURE__ */ new Set(["/data-cleanup", "/sources"]);
+function Ede(e) {
+ let t = WF[e.path] ? "cleanup" : e.section;
return e.menu.some(([e]) => e === t) ? t : "";
}
-var kde = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t.toLocaleString()}`;
-function UF(e) {
+var Dde = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t.toLocaleString()}`;
+function GF(e) {
let t = e.sections.find(([t]) => t === e.section);
if (!t) return null;
- let n = HF[e.path] ?? "";
+ let n = WF[e.path] ?? "";
return {
title: e.section === "cleanup" && n || t[1],
- pressed: Ode(e),
+ pressed: Ede(e),
crumb: n,
- compact: Dde.has(e.path) || e.section === "configuration",
+ compact: Tde.has(e.path) || e.section === "configuration",
lede: e.section === "trash" ? e.trash ? {
kind: "count",
- text: kde(e.trash),
+ text: Dde(e.trash),
total: e.trash.total
} : { kind: "skeleton" } : { kind: "none" }
};
}
-var WF = (e) => e.replace(/[&<>"']/g, (e) => ({
+var KF = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
-})[e]), GF = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${WF(e)}"/></svg>`, KF = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";
-function Ade(e) {
- let t = UF(e);
+})[e]), qF = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${KF(e)}"/></svg>`, JF = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";
+function Ode(e) {
+ let t = GF(e);
if (!t) return "";
let n = e.menu.map(([e, n, r]) => {
let i = e === t.pressed;
- return `<button type="button" data-manage="${WF(e)}" data-pill-variant="gray" aria-pressed="${i}"${i ? " aria-current=\"page\" data-pill-selected=\"\"" : ""}>${GF(r)}<span>${WF(n)}</span></button>`;
- }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${GF("chevron-right")}</li><li aria-current="true"><span>${WF(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? KF : `<span data-lede-text="">${WF(t.lede.text)}</span>${t.lede.total ? jde : ""}`}</p>`;
- return `<nav data-manage-bar="" aria-label="管理"><div data-manage-menu="" data-pill-nav="" role="group">${n}</div></nav>` + r + `<h2 data-manage-title=""${t.compact ? " data-compact=\"\"" : ""}>${WF(t.title)}</h2>` + i;
+ return `<button type="button" data-manage="${KF(e)}" data-pill-variant="gray" aria-pressed="${i}"${i ? " aria-current=\"page\" data-pill-selected=\"\"" : ""}>${qF(r)}<span>${KF(n)}</span></button>`;
+ }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${qF("chevron-right")}</li><li aria-current="true"><span>${KF(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? JF : `<span data-lede-text="">${KF(t.lede.text)}</span>${t.lede.total ? kde : ""}`}</p>`;
+ return `<nav data-manage-bar="" aria-label="管理"><div data-manage-menu="" data-pill-nav="" role="group">${n}</div></nav>` + r + `<h2 data-manage-title=""${t.compact ? " data-compact=\"\"" : ""}>${KF(t.title)}</h2>` + i;
}
-var jde = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
+var kde = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
// src/react/settings-panel/icon.tsx
-function qF({ name: e }) {
+function YF({ name: e }) {
let { wide: t, viewBox: n } = Sn(e);
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: n,
@@ -35201,7 +35201,7 @@ function qF({ name: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function Mde({ name: e }) {
+function Ade({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -35209,88 +35209,88 @@ function Mde({ name: e }) {
});
}
// node_modules/tailwind-merge/dist/bundle-mjs.mjs
-var Nde = (e, t) => {
+var jde = (e, t) => {
let n = Array(e.length + t.length);
for (let t = 0; t < e.length; t++) n[t] = e[t];
for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
return n;
-}, Pde = (e, t) => ({
+}, Mde = (e, t) => ({
classGroupId: e,
validator: t
-}), JF = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), XF = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), YF = "-", XF = [], Fde = "arbitrary..", Ide = (e) => {
- let t = Rde(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
+}), ZF = "-", QF = [], Nde = "arbitrary..", Pde = (e) => {
+ let t = Ide(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return Lde(e);
- let n = e.split(YF);
- return ZF(n, +(n[0] === "" && n.length > 1), t);
+ if (e.startsWith("[") && e.endsWith("]")) return Fde(e);
+ let n = e.split(ZF);
+ return $F(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? Nde(i, t) : t : i || XF;
+ return t ? i ? jde(i, t) : t : i || QF;
}
- return n[e] || XF;
+ return n[e] || QF;
}
};
-}, ZF = (e, t, n) => {
+}, $F = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = ZF(e, t + 1, i);
+ let n = $F(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join(YF) : e.slice(t).join(YF), s = a.length;
+ let o = t === 0 ? e.join(ZF) : e.slice(t).join(ZF), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
-}, Lde = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
+}, Fde = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
- return r ? Fde + r : void 0;
-})(), Rde = (e) => {
+ return r ? Nde + r : void 0;
+})(), Ide = (e) => {
let { theme: t, classGroups: n } = e;
- return zde(n, t);
-}, zde = (e, t) => {
- let n = JF();
+ return Lde(n, t);
+}, Lde = (e, t) => {
+ let n = XF();
for (let r in e) {
let i = e[r];
- QF(i, n, r, t);
+ eI(i, n, r, t);
}
return n;
-}, QF = (e, t, n, r) => {
+}, eI = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- Bde(i, t, n, r);
+ Rde(i, t, n, r);
}
-}, Bde = (e, t, n, r) => {
- typeof e == "string" ? Vde(e, t, n) : typeof e == "function" ? Hde(e, t, n, r) : Ude(e, t, n, r);
-}, Vde = (e, t, n) => {
- let r = e === "" ? t : $F(t, e);
+}, Rde = (e, t, n, r) => {
+ typeof e == "string" ? zde(e, t, n) : typeof e == "function" ? Bde(e, t, n, r) : Vde(e, t, n, r);
+}, zde = (e, t, n) => {
+ let r = e === "" ? t : tI(t, e);
r.classGroupId = n;
-}, Hde = (e, t, n, r) => {
- Wde(e) ? QF(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(Pde(n, e)));
-}, Ude = (e, t, n, r) => {
+}, Bde = (e, t, n, r) => {
+ Hde(e) ? eI(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(Mde(n, e)));
+}, Vde = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- QF(o, $F(t, a), n, r);
+ eI(o, tI(t, a), n, r);
}
-}, $F = (e, t) => {
- let n = e, r = t.split(YF), i = r.length;
+}, tI = (e, t) => {
+ let n = e, r = t.split(ZF), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = JF(), n.nextPart.set(t, i)), n = i;
+ i || (i = XF(), n.nextPart.set(t, i)), n = i;
}
return n;
-}, Wde = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Gde = (e) => {
+}, Hde = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Ude = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@ -35308,19 +35308,19 @@ var Nde = (e, t) => {
e in n ? n[e] = t : i(e, t);
}
};
-}, eI = "!", tI = ":", Kde = [], nI = (e, t, n, r, i) => ({
+}, nI = "!", rI = ":", Wde = [], iI = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
-}), qde = (e) => {
+}), Gde = (e) => {
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
let t = [], n = 0, r = 0, i = 0, a, o = e.length;
for (let s = 0; s < o; s++) {
let o = e[s];
if (n === 0 && r === 0) {
- if (o === tI) {
+ if (o === rI) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -35332,13 +35332,13 @@ var Nde = (e, t) => {
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
}
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
- s.endsWith(eI) ? (c = s.slice(0, -1), l = !0) : s.startsWith(eI) && (c = s.slice(1), l = !0);
+ s.endsWith(nI) ? (c = s.slice(0, -1), l = !0) : s.startsWith(nI) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return nI(t, l, c, u);
+ return iI(t, l, c, u);
};
if (t) {
- let e = t + tI, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : nI(Kde, !1, t, void 0, !0);
+ let e = t + rI, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : iI(Wde, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -35348,7 +35348,7 @@ var Nde = (e, t) => {
});
}
return r;
-}, Jde = (e) => {
+}, Kde = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@ -35360,18 +35360,18 @@ var Nde = (e, t) => {
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
-}, Yde = (e) => ({
- cache: Gde(e.cacheSize),
- parseClassName: qde(e),
- sortModifiers: Jde(e),
- postfixLookupClassGroupIds: Xde(e),
- ...Ide(e)
-}), Xde = (e) => {
+}, qde = (e) => ({
+ cache: Ude(e.cacheSize),
+ parseClassName: Gde(e),
+ sortModifiers: Kde(e),
+ postfixLookupClassGroupIds: Jde(e),
+ ...Pde(e)
+}), Jde = (e) => {
let t = Object.create(null), n = e.postfixLookupClassGroups;
if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
return t;
-}, Zde = /\s+/, Qde = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Zde), l = "";
+}, Yde = /\s+/, Xde = (e, t) => {
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Yde), l = "";
for (let e = c.length - 1; e >= 0; --e) {
let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
if (u) {
@@ -35391,7 +35391,7 @@ var Nde = (e, t) => {
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + eI : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + nI : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -35402,34 +35402,34 @@ var Nde = (e, t) => {
l = t + (l.length > 0 ? " " + l : l);
}
return l;
-}, $de = (...e) => {
+}, Zde = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = rI(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = aI(n)) && (i && (i += " "), i += r);
return i;
-}, rI = (e) => {
+}, aI = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = rI(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = aI(e[r])) && (n && (n += " "), n += t);
return n;
-}, iI = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = Yde(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
+}, oI = (e, ...t) => {
+ let n, r, i, a, o = (o) => (n = qde(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
let t = r(e);
if (t) return t;
- let a = Qde(e, n);
+ let a = Xde(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a($de(...e));
-}, efe = [], aI = (e) => {
- let t = (t) => t[e] || efe;
+ return a = o, (...e) => a(Zde(...e));
+}, Qde = [], sI = (e) => {
+ let t = (t) => t[e] || Qde;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, oI = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, sI = /^\((?:(\w[\w-]*):)?(.+)\)$/i, tfe = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, nfe = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, rfe = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ife = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, afe = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, ofe = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, cI = (e) => tfe.test(e), lI = (e) => !!e && !Number.isNaN(Number(e)), uI = (e) => !!e && Number.isInteger(Number(e)), dI = (e) => e.endsWith("%") && lI(e.slice(0, -1)), fI = (e) => nfe.test(e), pI = () => !0, mI = (e) => rfe.test(e) && !ife.test(e), hI = () => !1, gI = (e) => afe.test(e), _I = (e) => ofe.test(e), vI = (e) => !xI(e) && !kI(e), yI = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), bI = (e) => NI(e, LI, hI), xI = (e) => oI.test(e), SI = (e) => NI(e, RI, mI), CI = (e) => NI(e, dfe, lI), wI = (e) => NI(e, BI, pI), TI = (e) => NI(e, zI, hI), EI = (e) => NI(e, FI, hI), DI = (e) => NI(e, II, _I), OI = (e) => NI(e, VI, gI), kI = (e) => sI.test(e), AI = (e) => PI(e, RI), sfe = (e) => PI(e, zI), jI = (e) => PI(e, FI), cfe = (e) => PI(e, LI), lfe = (e) => PI(e, II), MI = (e) => PI(e, VI, !0), ufe = (e) => PI(e, BI, !0), NI = (e, t, n) => {
- let r = oI.exec(e);
+}, cI = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, lI = /^\((?:(\w[\w-]*):)?(.+)\)$/i, $de = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, efe = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, tfe = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, nfe = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, rfe = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, ife = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, uI = (e) => $de.test(e), dI = (e) => !!e && !Number.isNaN(Number(e)), fI = (e) => !!e && Number.isInteger(Number(e)), pI = (e) => e.endsWith("%") && dI(e.slice(0, -1)), mI = (e) => efe.test(e), hI = () => !0, gI = (e) => tfe.test(e) && !nfe.test(e), _I = () => !1, vI = (e) => rfe.test(e), yI = (e) => ife.test(e), bI = (e) => !CI(e) && !jI(e), xI = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), SI = (e) => FI(e, zI, _I), CI = (e) => cI.test(e), wI = (e) => FI(e, BI, gI), TI = (e) => FI(e, lfe, dI), EI = (e) => FI(e, HI, hI), DI = (e) => FI(e, VI, _I), OI = (e) => FI(e, LI, _I), kI = (e) => FI(e, RI, yI), AI = (e) => FI(e, UI, vI), jI = (e) => lI.test(e), MI = (e) => II(e, BI), afe = (e) => II(e, VI), NI = (e) => II(e, LI), ofe = (e) => II(e, zI), sfe = (e) => II(e, RI), PI = (e) => II(e, UI, !0), cfe = (e) => II(e, HI, !0), FI = (e, t, n) => {
+ let r = cI.exec(e);
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
-}, PI = (e, t, n = !1) => {
- let r = sI.exec(e);
+}, II = (e, t, n = !1) => {
+ let r = lI.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
-}, FI = (e) => e === "position" || e === "percentage", II = (e) => e === "image" || e === "url", LI = (e) => e === "length" || e === "size" || e === "bg-size", RI = (e) => e === "length", dfe = (e) => e === "number", zI = (e) => e === "family-name", BI = (e) => e === "number" || e === "weight", VI = (e) => e === "shadow", HI = () => {
- let e = aI("color"), t = aI("font"), n = aI("text"), r = aI("font-weight"), i = aI("tracking"), a = aI("leading"), o = aI("breakpoint"), s = aI("container"), c = aI("spacing"), l = aI("radius"), u = aI("shadow"), d = aI("inset-shadow"), f = aI("text-shadow"), p = aI("drop-shadow"), m = aI("blur"), h = aI("perspective"), g = aI("aspect"), _ = aI("ease"), v = aI("animate"), y = () => [
+}, LI = (e) => e === "position" || e === "percentage", RI = (e) => e === "image" || e === "url", zI = (e) => e === "length" || e === "size" || e === "bg-size", BI = (e) => e === "length", lfe = (e) => e === "number", VI = (e) => e === "family-name", HI = (e) => e === "number" || e === "weight", UI = (e) => e === "shadow", WI = () => {
+ let e = sI("color"), t = sI("font"), n = sI("text"), r = sI("font-weight"), i = sI("tracking"), a = sI("leading"), o = sI("breakpoint"), s = sI("container"), c = sI("spacing"), l = sI("radius"), u = sI("shadow"), d = sI("inset-shadow"), f = sI("text-shadow"), p = sI("drop-shadow"), m = sI("blur"), h = sI("perspective"), g = sI("aspect"), _ = sI("ease"), v = sI("animate"), y = () => [
"auto",
"avoid",
"all",
@@ -35454,8 +35454,8 @@ var Nde = (e, t) => {
"left-bottom"
], x = () => [
...b(),
- kI,
- xI
+ jI,
+ CI
], S = () => [
"auto",
"hidden",
@@ -35467,43 +35467,43 @@ var Nde = (e, t) => {
"contain",
"none"
], w = () => [
- kI,
- xI,
+ jI,
+ CI,
c
], T = () => [
- cI,
+ uI,
"full",
"auto",
...w()
], E = () => [
- uI,
+ fI,
"none",
"subgrid",
- kI,
- xI
+ jI,
+ CI
], D = () => [
"auto",
{ span: [
"full",
- uI,
- kI,
- xI
+ fI,
+ jI,
+ CI
] },
- uI,
- kI,
- xI
+ fI,
+ jI,
+ CI
], O = () => [
- uI,
+ fI,
"auto",
- kI,
- xI
+ jI,
+ CI
], k = () => [
"auto",
"min",
"max",
"fr",
- kI,
- xI
+ jI,
+ CI
], A = () => [
"start",
"end",
@@ -35523,7 +35523,7 @@ var Nde = (e, t) => {
"center-safe",
"end-safe"
], M = () => ["auto", ...w()], ee = () => [
- cI,
+ uI,
"auto",
"full",
"dvw",
@@ -35538,7 +35538,7 @@ var Nde = (e, t) => {
...w()
], N = () => [
s,
- cI,
+ uI,
"screen",
"full",
"dvw",
@@ -35549,7 +35549,7 @@ var Nde = (e, t) => {
"fit",
...w()
], te = () => [
- cI,
+ uI,
"screen",
"full",
"lh",
@@ -35562,13 +35562,13 @@ var Nde = (e, t) => {
...w()
], P = () => [
e,
- kI,
- xI
+ jI,
+ CI
], ne = () => [
...b(),
- jI,
- EI,
- { position: [kI, xI] }
+ NI,
+ OI,
+ { position: [jI, CI] }
], re = () => ["no-repeat", { repeat: [
"",
"x",
@@ -35579,25 +35579,25 @@ var Nde = (e, t) => {
"auto",
"cover",
"contain",
- cfe,
- bI,
- { size: [kI, xI] }
+ ofe,
+ SI,
+ { size: [jI, CI] }
], I = () => [
- dI,
- AI,
- SI
+ pI,
+ MI,
+ wI
], ie = () => [
"",
"none",
"full",
l,
- kI,
- xI
+ jI,
+ CI
], ae = () => [
"",
- lI,
- AI,
- SI
+ dI,
+ MI,
+ wI
], oe = () => [
"solid",
"dashed",
@@ -35621,32 +35621,32 @@ var Nde = (e, t) => {
"color",
"luminosity"
], ce = () => [
- lI,
dI,
- jI,
- EI
+ pI,
+ NI,
+ OI
], le = () => [
"",
"none",
m,
- kI,
- xI
+ jI,
+ CI
], ue = () => [
"none",
- lI,
- kI,
- xI
+ dI,
+ jI,
+ CI
], de = () => [
"none",
- lI,
- kI,
- xI
+ dI,
+ jI,
+ CI
], fe = () => [
- lI,
- kI,
- xI
+ dI,
+ jI,
+ CI
], pe = () => [
- cI,
+ uI,
"full",
...w()
];
@@ -35660,17 +35660,17 @@ var Nde = (e, t) => {
"bounce"
],
aspect: ["video"],
- blur: [fI],
- breakpoint: [fI],
- color: [pI],
- container: [fI],
- "drop-shadow": [fI],
+ blur: [mI],
+ breakpoint: [mI],
+ color: [hI],
+ container: [mI],
+ "drop-shadow": [mI],
ease: [
"in",
"out",
"in-out"
],
- font: [vI],
+ font: [bI],
"font-weight": [
"thin",
"extralight",
@@ -35682,7 +35682,7 @@ var Nde = (e, t) => {
"extrabold",
"black"
],
- "inset-shadow": [fI],
+ "inset-shadow": [mI],
leading: [
"none",
"tight",
@@ -35699,11 +35699,11 @@ var Nde = (e, t) => {
"distant",
"none"
],
- radius: [fI],
- shadow: [fI],
- spacing: ["px", lI],
- text: [fI],
- "text-shadow": [fI],
+ radius: [mI],
+ shadow: [mI],
+ spacing: ["px", dI],
+ text: [mI],
+ "text-shadow": [mI],
tracking: [
"tighter",
"tight",
@@ -35717,9 +35717,9 @@ var Nde = (e, t) => {
aspect: [{ aspect: [
"auto",
"square",
- cI,
- xI,
- kI,
+ uI,
+ CI,
+ jI,
g
] }],
container: ["container"],
@@ -35727,15 +35727,15 @@ var Nde = (e, t) => {
"",
"normal",
"size",
- kI,
- xI
+ jI,
+ CI
] }],
- "container-named": [yI],
+ "container-named": [xI],
columns: [{ columns: [
- lI,
+ dI,
"auto",
- xI,
- kI,
+ CI,
+ jI,
s
] }],
"break-after": [{ "break-after": y() }],
@@ -35832,13 +35832,13 @@ var Nde = (e, t) => {
"collapse"
],
z: [{ z: [
- uI,
+ fI,
"auto",
- kI,
- xI
+ jI,
+ CI
] }],
basis: [{ basis: [
- cI,
+ uI,
"full",
"auto",
s,
@@ -35856,32 +35856,32 @@ var Nde = (e, t) => {
"wrap-reverse"
] }],
flex: [{ flex: [
- lI,
- cI,
+ dI,
+ uI,
"auto",
"initial",
"none",
- xI
+ CI
] }],
grow: [{ grow: [
"",
- lI,
- kI,
- xI
+ dI,
+ jI,
+ CI
] }],
shrink: [{ shrink: [
"",
- lI,
- kI,
- xI
+ dI,
+ jI,
+ CI
] }],
order: [{ order: [
- uI,
+ fI,
"first",
"last",
"none",
- kI,
- xI
+ jI,
+ CI
] }],
"grid-cols": [{ "grid-cols": E() }],
"col-start-end": [{ col: D() }],
@@ -35988,15 +35988,15 @@ var Nde = (e, t) => {
"font-size": [{ text: [
"base",
n,
- AI,
- SI
+ MI,
+ wI
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
- ufe,
- wI
+ cfe,
+ EI
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
@@ -36008,15 +36008,15 @@ var Nde = (e, t) => {
"expanded",
"extra-expanded",
"ultra-expanded",
- dI,
- xI
+ pI,
+ CI
] }],
"font-family": [{ font: [
- sfe,
- TI,
+ afe,
+ DI,
t
] }],
- "font-features": [{ "font-features": [xI] }],
+ "font-features": [{ "font-features": [CI] }],
"fvn-normal": ["normal-nums"],
"fvn-ordinal": ["ordinal"],
"fvn-slashed-zero": ["slashed-zero"],
@@ -36025,14 +36025,14 @@ var Nde = (e, t) => {
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
tracking: [{ tracking: [
i,
- kI,
- xI
+ jI,
+ CI
] }],
"line-clamp": [{ "line-clamp": [
- lI,
+ dI,
"none",
- kI,
- CI
+ jI,
+ TI
] }],
leading: [{ leading: [
"none",
@@ -36041,16 +36041,16 @@ var Nde = (e, t) => {
] }],
"list-image": [{ "list-image": [
"none",
- kI,
- xI
+ jI,
+ CI
] }],
"list-style-position": [{ list: ["inside", "outside"] }],
"list-style-type": [{ list: [
"disc",
"decimal",
"none",
- kI,
- xI
+ jI,
+ CI
] }],
"text-alignment": [{ text: [
"left",
@@ -36070,18 +36070,18 @@ var Nde = (e, t) => {
],
"text-decoration-style": [{ decoration: [...oe(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
- lI,
+ dI,
"from-font",
"auto",
- kI,
- SI
+ jI,
+ wI
] }],
"text-decoration-color": [{ decoration: P() }],
"underline-offset": [{ "underline-offset": [
- lI,
+ dI,
"auto",
- kI,
- xI
+ jI,
+ CI
] }],
"text-transform": [
"uppercase",
@@ -36102,9 +36102,9 @@ var Nde = (e, t) => {
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- uI,
- kI,
- xI
+ fI,
+ jI,
+ CI
] }],
"vertical-align": [{ align: [
"baseline",
@@ -36115,8 +36115,8 @@ var Nde = (e, t) => {
"text-bottom",
"sub",
"super",
- kI,
- xI
+ jI,
+ CI
] }],
whitespace: [{ whitespace: [
"normal",
@@ -36144,8 +36144,8 @@ var Nde = (e, t) => {
] }],
content: [{ content: [
"none",
- kI,
- xI
+ jI,
+ CI
] }],
"bg-attachment": [{ bg: [
"fixed",
@@ -36180,24 +36180,24 @@ var Nde = (e, t) => {
"l",
"tl"
] },
- uI,
- kI,
- xI
+ fI,
+ jI,
+ CI
],
radial: [
"",
- kI,
- xI
+ jI,
+ CI
],
conic: [
"",
- uI,
- kI,
- xI
+ fI,
+ jI,
+ CI
]
},
- lfe,
- DI
+ sfe,
+ kI
] }],
"bg-color": [{ bg: P() }],
"gradient-from-pos": [{ from: I() }],
@@ -36264,15 +36264,15 @@ var Nde = (e, t) => {
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
- lI,
- kI,
- xI
+ dI,
+ jI,
+ CI
] }],
"outline-w": [{ outline: [
"",
- lI,
- AI,
- SI
+ dI,
+ MI,
+ wI
] }],
"outline-color": [{ outline: P() }],
shadow: [{ shadow: [
@@ -36280,35 +36280,35 @@ var Nde = (e, t) => {
"inner",
"none",
u,
- MI,
- OI
+ PI,
+ AI
] }],
"shadow-color": [{ shadow: P() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
- MI,
- OI
+ PI,
+ AI
] }],
"inset-shadow-color": [{ "inset-shadow": P() }],
"ring-w": [{ ring: ae() }],
"ring-w-inset": ["ring-inset"],
"ring-color": [{ ring: P() }],
- "ring-offset-w": [{ "ring-offset": [lI, SI] }],
+ "ring-offset-w": [{ "ring-offset": [dI, wI] }],
"ring-offset-color": [{ "ring-offset": P() }],
"inset-ring-w": [{ "inset-ring": ae() }],
"inset-ring-color": [{ "inset-ring": P() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
- MI,
- OI
+ PI,
+ AI
] }],
"text-shadow-color": [{ "text-shadow": P() }],
opacity: [{ opacity: [
- lI,
- kI,
- xI
+ dI,
+ jI,
+ CI
] }],
"mix-blend": [{ "mix-blend": [
...se(),
@@ -36330,7 +36330,7 @@ var Nde = (e, t) => {
"intersect",
"exclude"
] }],
- "mask-image-linear-pos": [{ "mask-linear": [lI] }],
+ "mask-image-linear-pos": [{ "mask-linear": [dI] }],
"mask-image-linear-from-pos": [{ "mask-linear-from": ce() }],
"mask-image-linear-to-pos": [{ "mask-linear-to": ce() }],
"mask-image-linear-from-color": [{ "mask-linear-from": P() }],
@@ -36359,7 +36359,7 @@ var Nde = (e, t) => {
"mask-image-y-to-pos": [{ "mask-y-to": ce() }],
"mask-image-y-from-color": [{ "mask-y-from": P() }],
"mask-image-y-to-color": [{ "mask-y-to": P() }],
- "mask-image-radial": [{ "mask-radial": [kI, xI] }],
+ "mask-image-radial": [{ "mask-radial": [jI, CI] }],
"mask-image-radial-from-pos": [{ "mask-radial-from": ce() }],
"mask-image-radial-to-pos": [{ "mask-radial-to": ce() }],
"mask-image-radial-from-color": [{ "mask-radial-from": P() }],
@@ -36370,7 +36370,7 @@ var Nde = (e, t) => {
farthest: ["side", "corner"]
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
- "mask-image-conic-pos": [{ "mask-conic": [lI] }],
+ "mask-image-conic-pos": [{ "mask-conic": [dI] }],
"mask-image-conic-from-pos": [{ "mask-conic-from": ce() }],
"mask-image-conic-to-pos": [{ "mask-conic-to": ce() }],
"mask-image-conic-from-color": [{ "mask-conic-from": P() }],
@@ -36394,111 +36394,111 @@ var Nde = (e, t) => {
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
"mask-image": [{ mask: [
"none",
- kI,
- xI
+ jI,
+ CI
] }],
filter: [{ filter: [
"",
"none",
- kI,
- xI
+ jI,
+ CI
] }],
blur: [{ blur: le() }],
brightness: [{ brightness: [
- lI,
- kI,
- xI
+ dI,
+ jI,
+ CI
] }],
contrast: [{ contrast: [
- lI,
- kI,
- xI
+ dI,
+ jI,
+ CI
] }],
"drop-shadow": [{ "drop-shadow": [
"",
"none",
p,
- MI,
- OI
+ PI,
+ AI
] }],
"drop-shadow-color": [{ "drop-shadow": P() }],
grayscale: [{ grayscale: [
"",
- lI,
- kI,
- xI
+ dI,
+ jI,
+ CI
] }],
"hue-rotate": [{ "hue-rotate": [
- lI,
- kI,
- xI
+ dI,
+ jI,
+ CI
] }],
invert: [{ invert: [
"",
- lI,
- kI,
- xI
+ dI,
+ jI,
+ CI
] }],
saturate: [{ saturate: [
- lI,
- kI,
- xI
+ dI,
+ jI,
+ CI
] }],
sepia: [{ sepia: [
"",
- lI,
- kI,
- xI
+ dI,
+ jI,
+ CI
] }],
"backdrop-filter": [{ "backdrop-filter": [
"",
"none",
- kI,
- xI
+ jI,
+ CI
] }],
"backdrop-blur": [{ "backdrop-blur": le() }],
"backdrop-brightness": [{ "backdrop-brightness": [
- lI,
- kI,
- xI
+ dI,
+ jI,
+ CI
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
- lI,
- kI,
- xI
+ dI,
+ jI,
+ CI
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
- lI,
- kI,
- xI
+ dI,
+ jI,
+ CI
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
- lI,
- kI,
- xI
+ dI,
+ jI,
+ CI
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
- lI,
- kI,
- xI
+ dI,
+ jI,
+ CI
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
- lI,
- kI,
- xI
+ dI,
+ jI,
+ CI
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
- lI,
- kI,
- xI
+ dI,
+ jI,
+ CI
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
- lI,
- kI,
- xI
+ dI,
+ jI,
+ CI
] }],
"border-collapse": [{ border: ["collapse", "separate"] }],
"border-spacing": [{ "border-spacing": w() }],
@@ -36514,39 +36514,39 @@ var Nde = (e, t) => {
"shadow",
"transform",
"none",
- kI,
- xI
+ jI,
+ CI
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
- lI,
+ dI,
"initial",
- kI,
- xI
+ jI,
+ CI
] }],
ease: [{ ease: [
"linear",
"initial",
_,
- kI,
- xI
+ jI,
+ CI
] }],
delay: [{ delay: [
- lI,
- kI,
- xI
+ dI,
+ jI,
+ CI
] }],
animate: [{ animate: [
"none",
v,
- kI,
- xI
+ jI,
+ CI
] }],
backface: [{ backface: ["hidden", "visible"] }],
perspective: [{ perspective: [
h,
- kI,
- xI
+ jI,
+ CI
] }],
"perspective-origin": [{ "perspective-origin": x() }],
rotate: [{ rotate: ue() }],
@@ -36562,8 +36562,8 @@ var Nde = (e, t) => {
"skew-x": [{ "skew-x": fe() }],
"skew-y": [{ "skew-y": fe() }],
transform: [{ transform: [
- kI,
- xI,
+ jI,
+ CI,
"",
"none",
"gpu",
@@ -36577,9 +36577,9 @@ var Nde = (e, t) => {
"translate-z": [{ "translate-z": pe() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- uI,
- kI,
- xI
+ fI,
+ jI,
+ CI
] }],
accent: [{ accent: P() }],
appearance: [{ appearance: ["none", "auto"] }],
@@ -36629,8 +36629,8 @@ var Nde = (e, t) => {
"nwse-resize",
"zoom-in",
"zoom-out",
- kI,
- xI
+ jI,
+ CI
] }],
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
@@ -36716,15 +36716,15 @@ var Nde = (e, t) => {
"scroll",
"contents",
"transform",
- kI,
- xI
+ jI,
+ CI
] }],
fill: [{ fill: ["none", ...P()] }],
"stroke-w": [{ stroke: [
- lI,
- AI,
- SI,
- CI
+ dI,
+ MI,
+ wI,
+ TI
] }],
stroke: [{ stroke: ["none", ...P()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
@@ -36982,16 +36982,16 @@ var Nde = (e, t) => {
"selection"
]
};
-}, ffe = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (UI(e, "cacheSize", t), UI(e, "prefix", n), UI(e, "experimentalParseClassName", r), WI(e.theme, a.theme), WI(e.classGroups, a.classGroups), WI(e.conflictingClassGroups, a.conflictingClassGroups), WI(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), UI(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), UI(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), GI(e.theme, i.theme), GI(e.classGroups, i.classGroups), GI(e.conflictingClassGroups, i.conflictingClassGroups), GI(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), KI(e, i, "postfixLookupClassGroups"), KI(e, i, "orderSensitiveModifiers"), e), UI = (e, t, n) => {
+}, ufe = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (GI(e, "cacheSize", t), GI(e, "prefix", n), GI(e, "experimentalParseClassName", r), KI(e.theme, a.theme), KI(e.classGroups, a.classGroups), KI(e.conflictingClassGroups, a.conflictingClassGroups), KI(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), GI(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), GI(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), qI(e.theme, i.theme), qI(e.classGroups, i.classGroups), qI(e.conflictingClassGroups, i.conflictingClassGroups), qI(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), JI(e, i, "postfixLookupClassGroups"), JI(e, i, "orderSensitiveModifiers"), e), GI = (e, t, n) => {
n !== void 0 && (e[t] = n);
-}, WI = (e, t) => {
- if (t) for (let n in t) UI(e, n, t[n]);
-}, GI = (e, t) => {
- if (t) for (let n in t) KI(e, t, n);
-}, KI = (e, t, n) => {
+}, KI = (e, t) => {
+ if (t) for (let n in t) GI(e, n, t[n]);
+}, qI = (e, t) => {
+ if (t) for (let n in t) JI(e, t, n);
+}, JI = (e, t, n) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, pfe = (e, ...t) => typeof e == "function" ? iI(HI, e, ...t) : iI(() => ffe(HI(), e), ...t), mfe = [
+}, dfe = (e, ...t) => typeof e == "function" ? oI(WI, e, ...t) : oI(() => ufe(WI(), e), ...t), ffe = [
"large-title",
"display-1",
"display-2",
@@ -37005,17 +37005,17 @@ var Nde = (e, t) => {
"body-2",
"caption-1",
"caption-2"
-], hfe = [
+], pfe = [
"regular",
"medium",
"semibold",
"bold"
-], q = pfe({ extend: { classGroups: { "font-size": [{ text: mfe.flatMap((e) => hfe.map((t) => `${e}-${t}`)) }] } } });
-function qI(e) {
+], q = dfe({ extend: { classGroups: { "font-size": [{ text: ffe.flatMap((e) => pfe.map((t) => `${e}-${t}`)) }] } } });
+function YI(e) {
return e;
}
// src/react/components/pill-tab.tsx
-var gfe = typeof window < "u" ? F.useLayoutEffect : F.useEffect, JI = qI({
+var mfe = typeof window < "u" ? F.useLayoutEffect : F.useEffect, XI = YI({
radius: {
blue: "rounded-full",
gray: "rounded-2lg"
@@ -37037,9 +37037,9 @@ var gfe = typeof window < "u" ? F.useLayoutEffect : F.useEffect, JI = qI({
gray: "text-text-primary"
}
});
-function YI({ children: e, className: t, ref: n, container: r, ...i }) {
+function ZI({ children: e, className: t, ref: n, container: r, ...i }) {
let a = (0, F.useRef)(null), [o, s] = (0, F.useState)(null);
- gfe(() => {
+ mfe(() => {
let e = r === void 0 ? a.current : r;
if (!e) return;
let t = () => {
@@ -37075,7 +37075,7 @@ function YI({ children: e, className: t, ref: n, container: r, ...i }) {
}, l = o && /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
"data-pill-thumb": "",
- className: q("pointer-events-none absolute left-0 top-0", JI.radius[o.variant], JI.thumb[o.variant]),
+ className: q("pointer-events-none absolute left-0 top-0", XI.radius[o.variant], XI.thumb[o.variant]),
style: {
"--pill-left": `${o.left}px`,
"--pill-top": `${o.top}px`,
@@ -37092,37 +37092,37 @@ function YI({ children: e, className: t, ref: n, container: r, ...i }) {
}) : r ? (0, Lt.createPortal)(l, r) : null;
}
// src/react/manage-header/manage-header-island.tsx
-var XI = null, ZI = null, QI = /* @__PURE__ */ new Set();
-function _fe(e) {
- return QI.add(e), () => {
- QI.delete(e);
+var QI = null, $I = null, eL = /* @__PURE__ */ new Set();
+function hfe(e) {
+ return eL.add(e), () => {
+ eL.delete(e);
};
}
-function vfe() {
- for (let e of [...QI]) e();
+function gfe() {
+ for (let e of [...eL]) e();
}
-var yfe = { render(e) {
- ZI = e, (0, Lt.flushSync)(vfe);
+var _fe = { render(e) {
+ $I = e, (0, Lt.flushSync)(gfe);
} };
-function bfe(e) {
- return XI = e, ZI = null, yfe;
+function vfe(e) {
+ return QI = e, $I = null, _fe;
}
-function xfe() {
- let e = (0, F.useSyncExternalStore)(_fe, () => ZI);
- return XI && e ? /* @__PURE__ */ (0, I.jsx)(Sfe, {
- host: XI,
+function yfe() {
+ let e = (0, F.useSyncExternalStore)(hfe, () => $I);
+ return QI && e ? /* @__PURE__ */ (0, I.jsx)(bfe, {
+ host: QI,
props: e
}) : null;
}
-function Sfe({ host: e, props: t }) {
- let n = UF(t);
+function bfe({ host: e, props: t }) {
+ let n = GF(t);
return n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(Cfe, {
+ /* @__PURE__ */ (0, I.jsx)(xfe, {
host: e,
pressed: n.pressed,
menu: t.menu
}),
- n.crumb ? /* @__PURE__ */ (0, I.jsx)(wfe, {
+ n.crumb ? /* @__PURE__ */ (0, I.jsx)(Sfe, {
host: e,
label: n.crumb
}) : null,
@@ -37131,13 +37131,13 @@ function Sfe({ host: e, props: t }) {
"data-compact": n.compact ? "" : void 0,
children: n.title
}),
- n.lede.kind === "none" ? null : /* @__PURE__ */ (0, I.jsx)(Tfe, {
+ n.lede.kind === "none" ? null : /* @__PURE__ */ (0, I.jsx)(Cfe, {
host: e,
lede: n.lede
})
] }) : null;
}
-function Cfe({ host: e, pressed: t, menu: n }) {
+function xfe({ host: e, pressed: t, menu: n }) {
let r = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
let e = r.current, t = e?.querySelector("button[aria-pressed=\"true\"]");
@@ -37147,7 +37147,7 @@ function Cfe({ host: e, pressed: t, menu: n }) {
}, [t, n]), /* @__PURE__ */ (0, I.jsx)("nav", {
"data-manage-bar": "",
"aria-label": "管理",
- children: /* @__PURE__ */ (0, I.jsx)(YI, {
+ children: /* @__PURE__ */ (0, I.jsx)(ZI, {
ref: r,
"data-manage-menu": "",
"data-pill-nav": "",
@@ -37161,13 +37161,13 @@ function Cfe({ host: e, pressed: t, menu: n }) {
"data-pill-selected": a ? "" : void 0,
"data-pill-variant": "gray",
onClick: () => e.openManage(n),
- children: [/* @__PURE__ */ (0, I.jsx)(qF, { name: i }), /* @__PURE__ */ (0, I.jsx)("span", { children: r })]
+ children: [/* @__PURE__ */ (0, I.jsx)(YF, { name: i }), /* @__PURE__ */ (0, I.jsx)("span", { children: r })]
}, n);
})
})
});
}
-function wfe({ host: e, label: t }) {
+function Sfe({ host: e, label: t }) {
return /* @__PURE__ */ (0, I.jsx)("nav", {
"data-manage-crumb": "",
"aria-label": "当前位置",
@@ -37177,20 +37177,20 @@ function wfe({ host: e, label: t }) {
t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || t.button || (t.preventDefault(), e.openDataCleanup());
},
children: "数据管理"
- }), /* @__PURE__ */ (0, I.jsx)(qF, { name: "chevron-right" })] }), /* @__PURE__ */ (0, I.jsx)("li", {
+ }), /* @__PURE__ */ (0, I.jsx)(YF, { name: "chevron-right" })] }), /* @__PURE__ */ (0, I.jsx)("li", {
"aria-current": "true",
children: /* @__PURE__ */ (0, I.jsx)("span", { children: t })
})] })
});
}
-function Tfe({ host: e, lede: t }) {
+function Cfe({ host: e, lede: t }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
className: "mono",
"data-manage-lede": "",
children: t.kind === "skeleton" ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-trash-lede-skeletons": "",
- dangerouslySetInnerHTML: { __html: KF }
- }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Efe, { text: t.text }), t.total ? /* @__PURE__ */ (0, I.jsx)("button", {
+ dangerouslySetInnerHTML: { __html: JF }
+ }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(wfe, { text: t.text }), t.total ? /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-empty-trash": "",
"data-danger": "",
@@ -37200,7 +37200,7 @@ function Tfe({ host: e, lede: t }) {
}) : null] })
});
}
-function Efe({ text: e }) {
+function wfe({ text: e }) {
let t = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
qs(t.current, e);
@@ -37210,29 +37210,29 @@ function Efe({ text: e }) {
});
}
// src/core/text-lang.ts
-var Dfe = /[぀-ヿㇰ-ㇿヲ-゚]/, Ofe = /[㐀-鿿豈-﫿]/, kfe = /[A-Za-z]/;
-function $I(e) {
+var Tfe = /[぀-ヿㇰ-ㇿヲ-゚]/, Efe = /[㐀-鿿豈-﫿]/, Dfe = /[A-Za-z]/;
+function tL(e) {
let t = String(e ?? "");
- if (Dfe.test(t)) return "ja";
- if (!Ofe.test(t) && kfe.test(t)) return "en";
+ if (Tfe.test(t)) return "ja";
+ if (!Efe.test(t) && Dfe.test(t)) return "en";
}
-var Afe = (e) => {
- let t = $I(e);
+var Ofe = (e) => {
+ let t = tL(e);
return t ? ` lang="${t}"` : "";
-}, jfe = /\.(?:mp4|mkv|avi|wmv|mov|m4v|webm|ts|m2ts|mts|mpg|mpeg|flv|rm|rmvb|iso)$/i, Mfe = (e, t = e?.name) => {
+}, kfe = /\.(?:mp4|mkv|avi|wmv|mov|m4v|webm|ts|m2ts|mts|mpg|mpeg|flv|rm|rmvb|iso)$/i, Afe = (e, t = e?.name) => {
let n = String(t || "").trim();
- return e?.is_jav ? n.replace(jfe, "") : n;
-}, Nfe = (e) => /[぀-ヿ㐀-鿿]/.test(String(e || "")), Pfe = (e) => {
+ return e?.is_jav ? n.replace(kfe, "") : n;
+}, jfe = (e) => /[぀-ヿ㐀-鿿]/.test(String(e || "")), Mfe = (e) => {
let t = [e?.catalog_title, e?.original_title].map((e) => String(e || "").trim()).filter(Boolean);
- return t.find(Nfe) || t[0] || "";
+ return t.find(jfe) || t[0] || "";
};
-function eL(e, t = e?.name) {
- let n = Mfe(e, t), r = String(e?.code || "").trim().toUpperCase();
+function nL(e, t = e?.name) {
+ let n = Afe(e, t), r = String(e?.code || "").trim().toUpperCase();
if (!e?.is_jav || !r) return {
code: "",
title: n
};
- let i = String(e?.display_code || r).trim().toUpperCase(), a = n.toUpperCase(), o = a === r || a === i || a.startsWith(r) && /^[\s._\-[\]]/.test(n.slice(r.length)) || a.startsWith(i) && /^[\s._\-[\]]/.test(n.slice(i.length)), s = a.startsWith(i) ? i.length : r.length, c = (o ? n.slice(s) : n).replace(/^[\s._-]+/, "").trim(), l = Pfe(e), u = Object.prototype.hasOwnProperty.call(e || {}, "display_title") ? String(e.display_title || "").trim() : c, d = l || u, f = Array.isArray(e?.edition_badges) ? e.edition_badges.filter((e) => [
+ let i = String(e?.display_code || r).trim().toUpperCase(), a = n.toUpperCase(), o = a === r || a === i || a.startsWith(r) && /^[\s._\-[\]]/.test(n.slice(r.length)) || a.startsWith(i) && /^[\s._\-[\]]/.test(n.slice(i.length)), s = a.startsWith(i) ? i.length : r.length, c = (o ? n.slice(s) : n).replace(/^[\s._-]+/, "").trim(), l = Mfe(e), u = Object.prototype.hasOwnProperty.call(e || {}, "display_title") ? String(e.display_title || "").trim() : c, d = l || u, f = Array.isArray(e?.edition_badges) ? e.edition_badges.filter((e) => [
"中字",
"无码",
"无码破解"
@@ -37243,23 +37243,23 @@ function eL(e, t = e?.name) {
badges: f
};
}
-var tL = (e, t = e?.name) => {
- let { code: n, title: r, badges: i = [] } = eL(e, t);
+var rL = (e, t = e?.name) => {
+ let { code: n, title: r, badges: i = [] } = nL(e, t);
return n ? [
n,
...i,
r
].filter(Boolean).join(" ") : r;
};
-function nL(e, t = e?.name) {
- let { code: n, title: r, badges: i = [] } = eL(e, t);
+function iL(e, t = e?.name) {
+ let { code: n, title: r, badges: i = [] } = nL(e, t);
if (!n) return z(r);
let a = i.map((e) => `<small class="javedition ${e === "中字" ? "subtitle" : e === "无码" ? "uncensored" : e === "无码破解" ? "cracked" : "quality"}">${z(e)}</small>`).join("");
- return `<span class="ui-javidentity"><strong class="ui-javcode">${z(n)}</strong>${a}</span>${r ? ` <span class="ui-javtitle"${Afe(r)}>${z(r)}</span>` : ""}`;
+ return `<span class="ui-javidentity"><strong class="ui-javcode">${z(n)}</strong>${a}</span>${r ? ` <span class="ui-javtitle"${Ofe(r)}>${z(r)}</span>` : ""}`;
}
// src/react/activity/tasks.ts
-var rL = "/api/tasks", iL = ["tasks"];
-function Ffe(e, t) {
+var aL = "/api/tasks", oL = ["tasks"];
+function Nfe(e, t) {
let n = 0, r = 0, i = 0, a = 0;
for (let o of t) for (let [t, s] of Object.entries(e?.[String(o.id)] || {})) n += s, (t === "pending" || t === "running") && (r += s), (t === "failed" || t === "interrupted") && (i += s), t === "cancelled" && (a += s);
return {
@@ -37270,7 +37270,7 @@ function Ffe(e, t) {
settled: n - r
};
}
-function Ife(e) {
+function Pfe(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
let e = t.get(n.task_key);
@@ -37281,11 +37281,11 @@ function Ife(e) {
}
return [...t.values()];
}
-var Lfe = (e, t) => B(`${rL}?${new URLSearchParams({
+var Ffe = (e, t) => B(`${aL}?${new URLSearchParams({
before_finished_at: e.finished_at || "",
before_id: String(e.id)
})}`, t);
-function Rfe(...e) {
+function Ife(...e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) for (let e of n) t.has(e.id) || t.set(e.id, e);
return [...t.values()].sort((e, t) => {
@@ -37293,26 +37293,26 @@ function Rfe(...e) {
return n === r ? t.id - e.id : n < r ? 1 : -1;
});
}
-var zfe = 2e3, Bfe = 1e4, aL = (e) => e?.running?.length ? zfe : Bfe, oL = (e) => B(rL, e), Vfe = (e, t, n) => V(`${rL}/${e}/control`, { action: t }, "POST", n);
-async function Hfe(e) {
+var Lfe = 2e3, Rfe = 1e4, sL = (e) => e?.running?.length ? Lfe : Rfe, cL = (e) => B(aL, e), zfe = (e, t, n) => V(`${aL}/${e}/control`, { action: t }, "POST", n);
+async function Bfe(e) {
await H.fetchQuery({
- queryKey: iL,
- queryFn: () => oL(e)
+ queryKey: oL,
+ queryFn: () => cL(e)
});
}
-var Ufe = {
+var Vfe = {
manual: "手动",
scheduled: "定时",
startup: "启动",
cli: "命令行"
-}, Wfe = {
+}, Hfe = {
pending: "排队中",
running: "进行中",
succeeded: "已完成",
failed: "失败",
cancelled: "已取消",
interrupted: "意外中断"
-}, Gfe = (e) => Wfe[e] || e, sL = {
+}, Ufe = (e) => Hfe[e] || e, lL = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@ -37389,7 +37389,7 @@ var Ufe = {
without_code: "未识别番号",
incomplete: "资料或封面未取得",
result: "结果"
-}, Kfe = [
+}, Wfe = [
"gone_count",
"unclear_count",
"source_failed",
@@ -37411,14 +37411,14 @@ var Ufe = {
"paused_count",
"miss",
"incomplete"
-], qfe = ["face_match_unavailable"], cL = (e) => e.result_summary?.ok === !1 || !!e.result_summary?.error || qfe.some((t) => e.result_summary?.[t] === !0) || Kfe.some((t) => Number(e.result_summary?.[t]) > 0);
-function Jfe(e) {
+], Gfe = ["face_match_unavailable"], uL = (e) => e.result_summary?.ok === !1 || !!e.result_summary?.error || Gfe.some((t) => e.result_summary?.[t] === !0) || Wfe.some((t) => Number(e.result_summary?.[t]) > 0);
+function Kfe(e) {
let t = e.result_summary?.issues;
return Array.isArray(t) ? t.filter((e) => !!e && typeof e == "object" && typeof e.error == "string" && typeof e.label == "string") : [];
}
-var lL = /* @__PURE__ */ new Set(["library-processing"]);
-function Yfe(e, t = !0) {
- if (!cL(e) && e.status !== "failed" || lL.has(e.task_key) && !t) return null;
+var dL = /* @__PURE__ */ new Set(["library-processing"]);
+function qfe(e, t = !0) {
+ if (!uL(e) && e.status !== "failed" || dL.has(e.task_key) && !t) return null;
let n = {
"link-check": ["/data-cleanup#link-manager", "查看有问题的链接"],
"link-prune": ["/data-cleanup#link-manager", "查看有问题的链接"],
@@ -37436,19 +37436,19 @@ function Yfe(e, t = !0) {
label: n[1]
} : null;
}
-function Xfe(e) {
+function Jfe(e) {
let t = e.result_summary?.asset_id, n = e.result_summary?.name;
return typeof t == "number" && Number.isInteger(t) && t > 0 && typeof n == "string" && n ? {
href: `/assets/${t}`,
label: n
} : null;
}
-function Zfe(e) {
+function Yfe(e) {
let t = /* @__PURE__ */ new Map();
- for (let n of e) lL.has(n.task_key) && !n.followup_key && n.id > (t.get(n.task_key) ?? 0) && t.set(n.task_key, n.id);
+ for (let n of e) dL.has(n.task_key) && !n.followup_key && n.id > (t.get(n.task_key) ?? 0) && t.set(n.task_key, n.id);
return new Set(t.values());
}
-function Qfe(e) {
+function Xfe(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
if (!n.followup_key || n.parent_run_id == null) continue;
@@ -37457,7 +37457,7 @@ function Qfe(e) {
}
return t;
}
-function $fe(e, t) {
+function Zfe(e, t) {
let n = [], r = /* @__PURE__ */ new Map();
for (let i of e) {
if (!t(i)) {
@@ -37479,12 +37479,12 @@ function $fe(e, t) {
}
return n;
}
-var epe = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !cL(e) && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), uL = (e) => e.status === "pending" || e.status === "running";
-function tpe(e) {
+var Qfe = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !uL(e) && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), fL = (e) => e.status === "pending" || e.status === "running";
+function $fe(e) {
let t = `${e.task_label}:`, n = e.progress_label || "", r = String(e.result_summary?.name || "") || (n.startsWith(t) ? n.slice(t.length) : n === e.task_label ? "" : n), i = e.progress_total || 0, { name: a, ...o } = e.result_summary || {};
- return [r, pL(e.error) || cpe(o) || (uL(e) && i > 0 ? `${fL(e.progress_current, i)} 项` : "")].filter(Boolean).join(" · ");
+ return [r, hL(e.error) || ope(o) || (fL(e) && i > 0 ? `${mL(e.progress_current, i)} 项` : "")].filter(Boolean).join(" · ");
}
-function dL(e) {
+function pL(e) {
if (typeof e != "number" || !Number.isFinite(e) || e < 0) return "";
let t = Math.floor(e);
if (t < 60) return `${t} 秒`;
@@ -37493,19 +37493,19 @@ function dL(e) {
let r = Math.floor(n / 60);
return r < 48 ? `${r} 小时 ${n % 60} 分` : `${Math.floor(r / 24).toLocaleString()} 天 ${r % 24} 小时`;
}
-function fL(e, t) {
+function mL(e, t) {
let n = Math.max(0, Number(t) || 0);
return `${Math.min(n, Math.max(0, Number(e) || 0)).toLocaleString()} / ${n.toLocaleString()}`;
}
-function npe(e) {
+function epe(e) {
let t = String(e || "").split(/\r?\n/).map((e) => e.trim()).filter(Boolean);
return t.length ? /^Traceback \(most recent call last\)/.test(t[0]) ? t[t.length - 1] : t[0] : "";
}
-function pL(e) {
- let t = npe(e), n = t.match(/^(?:[\w.]*Error|Exception):\s*(.*)$/);
+function hL(e) {
+ let t = epe(e), n = t.match(/^(?:[\w.]*Error|Exception):\s*(.*)$/);
return n ? bn(n[1]) : t;
}
-var rpe = {
+var tpe = {
partial: "处理已结束,部分项目需处理",
complete: "处理完成",
interrupted: "处理已中断",
@@ -37523,11 +37523,11 @@ var rpe = {
三站都没对上她: "三个来源均未找到与该人物相符的资料页",
已有身份: "已有创作者分类",
已变: "资料已被其他操作修改,本次未保存"
-}, mL = {
+}, gL = {
avwikidb: "AVWikiDB",
javdb: "JavDB",
"minnano-av": "みんなのAV"
-}, ipe = {
+}, npe = {
like: "标记喜欢",
seen: "标记看过",
later: "加入稍后看",
@@ -37538,8 +37538,8 @@ var rpe = {
"dismiss-junk": "确认不是垃圾",
"reconsider-junk": "重新判定垃圾",
region: "判定产地"
-}, ape = (e) => rpe[e] || e.replace(/(avwikidb|javdb|minnano-av) (绑定|写入)/gi, (e, t, n) => n === "绑定" ? `已关联 ${mL[t.toLowerCase()]} 资料页` : `已保存来自 ${mL[t.toLowerCase()]} 的资料`);
-function hL(e) {
+}, rpe = (e) => tpe[e] || e.replace(/(avwikidb|javdb|minnano-av) (绑定|写入)/gi, (e, t, n) => n === "绑定" ? `已关联 ${gL[t.toLowerCase()]} 资料页` : `已保存来自 ${gL[t.toLowerCase()]} 的资料`);
+function _L(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -37549,7 +37549,7 @@ function hL(e) {
minute: "2-digit"
});
}
-var ope = /* @__PURE__ */ new Set([
+var ipe = /* @__PURE__ */ new Set([
"blocked_by",
"status",
"run_id",
@@ -37558,20 +37558,20 @@ var ope = /* @__PURE__ */ new Set([
"completed_at",
"finished_at"
]);
-function gL(e) {
- let t = spe(e);
+function vL(e) {
+ let t = ape(e);
return e?.face_match_unavailable === !0 && !t.some((e) => /不可用|未生效/.test(e)) && t.push("人脸模型不可用,未做人脸核对"), t;
}
-function spe(e) {
- return Object.entries(e || {}).filter(([e, t]) => !ope.has(e) && (e in sL || e === "outcome" || e === "followups" || e === "error") && (typeof t == "number" || typeof t == "string") && String(t) !== "" && (t !== 0 || e === "checked" || e === "total")).map(([e, t]) => e === "followups" ? `已安排 ${Number(t).toLocaleString()} 项补充任务` : e === "error" ? pL(String(t)) : e === "outcome" || e === "result" ? ape(String(t)) : e === "cache_bytes" || e === "bytes_reclaimed" ? `${sL[e]} ${Yn(Number(t))}` : e === "operation" ? `操作:${ipe[String(t)] || "批量操作"}` : `${sL[e]} ${typeof t == "number" ? t.toLocaleString() : t}`);
+function ape(e) {
+ return Object.entries(e || {}).filter(([e, t]) => !ipe.has(e) && (e in lL || e === "outcome" || e === "followups" || e === "error") && (typeof t == "number" || typeof t == "string") && String(t) !== "" && (t !== 0 || e === "checked" || e === "total")).map(([e, t]) => e === "followups" ? `已安排 ${Number(t).toLocaleString()} 项补充任务` : e === "error" ? hL(String(t)) : e === "outcome" || e === "result" ? rpe(String(t)) : e === "cache_bytes" || e === "bytes_reclaimed" ? `${lL[e]} ${Yn(Number(t))}` : e === "operation" ? `操作:${npe[String(t)] || "批量操作"}` : `${lL[e]} ${typeof t == "number" ? t.toLocaleString() : t}`);
}
-var cpe = (e) => gL(e).join(" · ");
+var ope = (e) => vL(e).join(" · ");
// src/react/use-entity-names.ts
-function _L() {
+function yL() {
return (0, F.useSyncExternalStore)(Jt, qt, qt);
}
// src/react/components/async-text.tsx
-function vL({ text: e, busy: t, placeholder: n }) {
+function bL({ text: e, busy: t, placeholder: n }) {
let r = (0, F.useRef)(null), i = (0, F.useRef)(e), a = e ?? i.current;
return (0, F.useLayoutEffect)(() => {
e === void 0 ? a === void 0 && uc(r.current) : i.current = e;
@@ -37592,7 +37592,7 @@ function vL({ text: e, busy: t, placeholder: n }) {
});
}
// src/react/boardui/components/base/buttons/icon-button.tsx
-var yL = qI({
+var xL = YI({
base: "relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg bg-background-primary-default text-foreground-icon-primary border border-border-button-default shadow-xs select-none cursor-pointer transition-[background-color,border-color,box-shadow,color] duration-150 ease outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring hover:bg-background-primary-hover hover:border-border-button-hover active:bg-background-primary-active active:border-border-button-active disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:border-border-button-default disabled:text-icon-button-disabled-foreground disabled:opacity-60 disabled:shadow-none",
size: {
medium: "size-9",
@@ -37603,20 +37603,20 @@ var yL = qI({
small: "size-4 shrink-0"
}
});
-function bL({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+function SL({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
ref: i,
type: r,
- className: q(yL.base, yL.size[t], n),
+ className: q(xL.base, xL.size[t], n),
...a,
children: /* @__PURE__ */ (0, I.jsx)(e, {
- className: yL.icon[t],
+ className: xL.icon[t],
"aria-hidden": !0
})
});
}
// src/react/components/glass-drift.tsx
-function xL() {
+function CL() {
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-glass-drift": "",
"aria-hidden": "true",
@@ -37630,7 +37630,7 @@ function xL() {
});
}
// src/react/components/use-stuck.ts
-function SL(e) {
+function wL(e) {
(0, F.useEffect)(() => {
let t = e.current;
if (!t) return;
@@ -37647,7 +37647,7 @@ function SL(e) {
}, [e]);
}
// src/react/components/use-horizontal-scroller.ts
-function CL(e, t = !0) {
+function TL(e, t = !0) {
let [n, r] = (0, F.useState)(null), i = (0, F.useCallback)((t) => {
r(t), typeof e == "function" ? e(t) : e && (e.current = t);
}, [e]);
@@ -37661,17 +37661,17 @@ function CL(e, t = !0) {
}, [n, t]), i;
}
// src/react/components/filter-glass.tsx
-var lpe = ({ className: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var spe = ({ className: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
className: e,
dangerouslySetInnerHTML: { __html: zs("正在处理") }
});
-function wL({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsx)(bL, {
+function EL({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress: i, ...a }) {
+ return /* @__PURE__ */ (0, I.jsx)(SL, {
...a,
"data-filter-action": "",
size: "small",
- icon: n && r === "spinner" ? lpe : t,
+ icon: n && r === "spinner" ? spe : t,
"aria-label": e,
title: a.title || e,
"aria-busy": n || void 0,
@@ -37681,9 +37681,9 @@ function wL({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress
}
});
}
-function upe({ title: e, children: t }) {
+function cpe({ title: e, children: t }) {
let n = (0, F.useRef)(null);
- return SL(n), /* @__PURE__ */ (0, I.jsxs)("div", {
+ return wL(n), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: n,
role: "group",
"aria-label": e,
@@ -37696,13 +37696,13 @@ function upe({ title: e, children: t }) {
children: e
}),
t,
- /* @__PURE__ */ (0, I.jsx)(xL, {})
+ /* @__PURE__ */ (0, I.jsx)(CL, {})
]
});
}
-function TL({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
- let d = (0, F.useRef)(null), f = CL(), p = CL(u);
- return SL(d), /* @__PURE__ */ (0, I.jsxs)("div", {
+function DL({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
+ let d = (0, F.useRef)(null), f = TL(), p = TL(u);
+ return wL(d), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: d,
role: "group",
"aria-label": e,
@@ -37727,27 +37727,27 @@ function TL({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassNa
className: q("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
children: r
}),
- /* @__PURE__ */ (0, I.jsx)(xL, {})
+ /* @__PURE__ */ (0, I.jsx)(CL, {})
]
});
}
-var dpe = "flex h-8 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
-function EL({ children: e, pressed: t, onPress: n, className: r, ...i }) {
+var lpe = "flex h-8 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
+function OL({ children: e, pressed: t, onPress: n, className: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
...i,
"aria-pressed": t,
- className: q(dpe, r),
+ className: q(lpe, r),
onClick: n,
children: e
});
}
-var fpe = "h-8 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
-function DL({ children: e, onPress: t, busy: n = !1 }) {
+var upe = "h-8 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
+function kL({ children: e, onPress: t, busy: n = !1 }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glass-pill": "",
- className: fpe,
+ className: upe,
"aria-busy": n || void 0,
"aria-disabled": n || void 0,
onClick: () => {
@@ -37757,13 +37757,13 @@ function DL({ children: e, onPress: t, busy: n = !1 }) {
});
}
// src/react/components/use-view-glide.ts
-var OL = (e, t) => [
+var AL = (e, t) => [
"x",
"y",
"w",
"h"
].every((n) => e[n] === t[n]);
-function kL(e, t, n) {
+function jL(e, t, n) {
if (!t.contains(e)) return null;
let r = 0, i = 0;
for (let n = e; n && n !== t; n = n.offsetParent) r += n.offsetLeft, i += n.offsetTop;
@@ -37787,17 +37787,17 @@ function kL(e, t, n) {
h: e.offsetHeight
};
}
-function AL(e, t, n, r, { axis: i = "x" } = {}) {
+function ML(e, t, n, r, { axis: i = "x" } = {}) {
let a = (0, F.useRef)(null), o = (0, F.useCallback)((r, o) => {
let s = e.current, c = t.current, l = s?.parentElement;
if (!s) return;
- let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? kL(u, l, i) : null;
+ let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? jL(u, l, i) : null;
if (!d || !d.w || !d.h) {
Uc(s), s.hidden = !0, a.current = null;
return;
}
let f = s.hidden ? null : a.current;
- s.hidden = !1, a.current = d, !(o && f && OL(f, d)) && Vc(s, o ? f : null, d, i);
+ s.hidden = !1, a.current = d, !(o && f && AL(f, d)) && Vc(s, o ? f : null, d, i);
}, [
e,
t,
@@ -37818,8 +37818,8 @@ function AL(e, t, n, r, { axis: i = "x" } = {}) {
passive: !0
}), addEventListener("resize", c, { passive: !0 });
let l = new ResizeObserver(() => {
- let e = t.current, o = e?.offsetWidth ? e.querySelector(n) : null, s = o && r ? kL(o, r, i) : null, l = a.current;
- s && l && OL(s, l) || c();
+ let e = t.current, o = e?.offsetWidth ? e.querySelector(n) : null, s = o && r ? jL(o, r, i) : null, l = a.current;
+ s && l && AL(s, l) || c();
}), u = t.current;
if (u && r) {
l.observe(u);
@@ -37850,7 +37850,7 @@ function AL(e, t, n, r, { axis: i = "x" } = {}) {
};
}
// src/react/boardui/components/base/buttons/button.tsx
-var jL = qI({
+var NL = YI({
base: "inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden font-sans select-none cursor-pointer button-press-motion outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring disabled:cursor-not-allowed aria-disabled:cursor-not-allowed",
size: {
medium: "h-9 rounded-2lg p-2 text-body-medium",
@@ -37883,52 +37883,52 @@ function J({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadi
return /* @__PURE__ */ (0, I.jsxs)("button", {
ref: c,
type: s,
- className: q(jL.base, jL.size[t], jL.variant[e], n && jL.iconOnlySize[t], o),
+ className: q(NL.base, NL.size[t], NL.variant[e], n && NL.iconOnlySize[t], o),
...l,
children: [
r ? /* @__PURE__ */ (0, I.jsx)(r, {
- className: jL.icon[t],
+ className: NL.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, I.jsx)("span", {
- className: jL.label[t],
+ className: NL.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, I.jsx)(i, {
- className: jL.icon[t],
+ className: NL.icon[t],
"aria-hidden": !0
}) : null
]
});
}
-function ML({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
+function PL({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
return /* @__PURE__ */ (0, I.jsxs)("a", {
ref: s,
- className: q(jL.base, jL.size[t], jL.variant[e], n && jL.iconOnlySize[t], o),
+ className: q(NL.base, NL.size[t], NL.variant[e], n && NL.iconOnlySize[t], o),
...c,
children: [
r ? /* @__PURE__ */ (0, I.jsx)(r, {
- className: jL.icon[t],
+ className: NL.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, I.jsx)("span", {
- className: jL.label[t],
+ className: NL.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, I.jsx)(i, {
- className: jL.icon[t],
+ className: NL.icon[t],
"aria-hidden": !0
}) : null
]
});
}
// node_modules/react-aria-components/dist/private/utils.mjs
-var NL = Symbol("default");
-function PL({ values: e, children: t }) {
+var FL = Symbol("default");
+function IL({ values: e, children: t }) {
for (let [n, r] of e) t = /*#__PURE__*/ F.createElement(n.Provider, { value: r }, t);
return t;
}
-function FL(e) {
+function LL(e) {
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
return (0, F.useMemo)(() => {
let e, l, u;
@@ -37962,11 +37962,11 @@ function FL(e) {
c
]);
}
-function IL(e, t) {
+function RL(e, t) {
let n = (0, F.useContext)(e);
if (t === null) return null;
if (n && typeof n == "object" && "slots" in n && n.slots) {
- let e = t || NL;
+ let e = t || FL;
if (!n.slots[e]) {
let e = new Intl.ListFormat().format(Object.keys(n.slots).map((e) => `"${e}"`)), r = t ? `Invalid slot "${t}".` : "A slot prop is required.";
throw Error(`${r} Valid slot names are ${e}.`);
@@ -37975,8 +37975,8 @@ function IL(e, t) {
}
return n;
}
-function LL(e, t, n) {
- let { ref: r, ...i } = IL(n, e.slot) || {}, a = QC((0, F.useMemo)(() => UC(t, r), [t, r])), o = K(i, e);
+function zL(e, t, n) {
+ let { ref: r, ...i } = RL(n, e.slot) || {}, a = ew((0, F.useMemo)(() => GC(t, r), [t, r])), o = K(i, e);
return "style" in i && i.style && "style" in e && e.style && (o.style = typeof i.style == "function" || typeof e.style == "function" ? (t) => {
let n = typeof i.style == "function" ? i.style(t) : i.style, r = {
...t.defaultStyle,
@@ -37994,42 +37994,42 @@ function LL(e, t, n) {
...e.style
}), [o, a];
}
-function RL(e = !0) {
+function BL(e = !0) {
let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(!1), i = (0, F.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return VS(() => {
+ return US(() => {
r.current || n(!1);
}, []), [i, t];
}
-function zL(e) {
+function VL(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function ppe(e, t, n) {
- let { render: r, ...i } = t, a = (0, F.useRef)(null), o = (0, F.useMemo)(() => UC(n, a), [n, a]);
- VS(() => {}, [e, r]);
+function dpe(e, t, n) {
+ let { render: r, ...i } = t, a = (0, F.useRef)(null), o = (0, F.useMemo)(() => GC(n, a), [n, a]);
+ US(() => {}, [e, r]);
let s = {
...i,
ref: o
};
return r ? r(s, void 0) : /*#__PURE__*/ F.createElement(e, s);
}
-var BL = {}, VL = new Proxy({}, { get(e, t) {
+var HL = {}, UL = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = BL[t];
- return n || (n = /*#__PURE__*/ (0, F.forwardRef)(ppe.bind(null, t)), BL[t] = n), n;
-} }), HL = /*#__PURE__*/ (0, F.createContext)(null), UL = /*#__PURE__*/ (0, F.createContext)(null), WL = /*#__PURE__*/ (0, F.createContext)(null), GL = {
+ let n = HL[t];
+ return n || (n = /*#__PURE__*/ (0, F.forwardRef)(dpe.bind(null, t)), HL[t] = n), n;
+} }), WL = /*#__PURE__*/ (0, F.createContext)(null), GL = /*#__PURE__*/ (0, F.createContext)(null), KL = /*#__PURE__*/ (0, F.createContext)(null), qL = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return KL(e, null, t);
+ return JL(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return KL(e, t, n);
+ return JL(e, t, n);
}
};
-function KL(e, t, n) {
- return CS({
+function JL(e, t, n) {
+ return TS({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
children(t) {
@@ -38039,11 +38039,11 @@ function KL(e, t, n) {
type: "item",
key: t.key,
dropPosition: "before"
- }), r, mpe(e, t, n));
+ }), r, fpe(e, t, n));
}
});
}
-function mpe(e, t, n) {
+function fpe(e, t, n) {
let r = t.key, i = e.getKeyAfter(r), a = i == null ? null : e.getItem(i);
for (; a != null && a.type !== "item";) i = e.getKeyAfter(a.key), a = i == null ? null : e.getItem(i);
let o = t.nextKey == null ? null : e.getItem(t.nextKey);
@@ -38062,24 +38062,24 @@ function mpe(e, t, n) {
}
return s;
}
-var qL = /*#__PURE__*/ (0, F.createContext)(GL);
-function JL(e) {
+var YL = /*#__PURE__*/ (0, F.createContext)(qL);
+function XL(e) {
return (0, F.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
}
// node_modules/react-aria-components/dist/private/Label.mjs
-var YL = /*#__PURE__*/ (0, F.createContext)({}), XL = /*#__PURE__*/ rw(function(e, t) {
- [e, t] = LL(e, t, YL);
- let { elementType: n = "label", ...r } = e, i = VL[n];
+var ZL = /*#__PURE__*/ (0, F.createContext)({}), QL = /*#__PURE__*/ aw(function(e, t) {
+ [e, t] = zL(e, t, ZL);
+ let { elementType: n = "label", ...r } = e, i = UL[n];
return /*#__PURE__*/ F.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
});
-}), hpe = /*#__PURE__*/ (0, F.createContext)(null), ZL = /*#__PURE__*/ (0, F.createContext)({}), QL = /*#__PURE__*/ rw(function(e, t) {
- [e, t] = LL(e, t, ZL);
- let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Foe(e, t);
- i = _pe(i, r);
- let { focusProps: o, isFocused: s, isFocusVisible: c } = jD(e), { hoverProps: l, isHovered: u } = FD({
+}), ppe = /*#__PURE__*/ (0, F.createContext)(null), $L = /*#__PURE__*/ (0, F.createContext)({}), eR = /*#__PURE__*/ aw(function(e, t) {
+ [e, t] = zL(e, t, $L);
+ let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Noe(e, t);
+ i = hpe(i, r);
+ let { focusProps: o, isFocused: s, isFocusVisible: c } = ND(e), { hoverProps: l, isHovered: u } = LD({
...e,
isDisabled: e.isDisabled || r
}), d = {
@@ -38089,24 +38089,24 @@ var YL = /*#__PURE__*/ (0, F.createContext)({}), XL = /*#__PURE__*/ rw(function(
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = FL({
+ }, f = LL({
...e,
values: d,
defaultClassName: "react-aria-Button"
- }), p = VC(i.id), m = VC(), h = i["aria-labelledby"];
+ }), p = UC(i.id), m = UC(), h = i["aria-labelledby"];
r && (h ? h = `${h} ${m}` : i["aria-label"] && (h = `${p} ${m}`));
let g = (0, F.useRef)(r);
(0, F.useEffect)(() => {
let e = { "aria-labelledby": h || p };
- (!g.current && s && r || g.current && s && !r) && MT(e, "assertive"), g.current = r;
+ (!g.current && s && r || g.current && s && !r) && PT(e, "assertive"), g.current = r;
}, [
r,
s,
h,
p
]);
- let _ = Gw(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ F.createElement(VL.button, {
+ let _ = qw(e, { global: !0 });
+ return delete _.onClick, /*#__PURE__*/ F.createElement(UL.button, {
...K(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
@@ -38120,61 +38120,61 @@ var YL = /*#__PURE__*/ (0, F.createContext)({}), XL = /*#__PURE__*/ rw(function(
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ F.createElement(hpe.Provider, { value: { id: m } }, f.children));
-}), gpe = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function _pe(e, t) {
+ }, /*#__PURE__*/ F.createElement(ppe.Provider, { value: { id: m } }, f.children));
+}), mpe = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function hpe(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !gpe.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !mpe.test(t) && (e[t] = void 0);
e.href = void 0, e.target = void 0;
}
return e;
}
// node_modules/react-aria-components/dist/private/Heading.mjs
-var $L = /*#__PURE__*/ (0, F.createContext)({}), eR = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = LL(e, t, $L);
- let { children: n, level: r = 3, className: i, ...a } = e, o = VL[`h${r}`];
+var tR = /*#__PURE__*/ (0, F.createContext)({}), nR = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = zL(e, t, tR);
+ let { children: n, level: r = 3, className: i, ...a } = e, o = UL[`h${r}`];
return /*#__PURE__*/ F.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), tR = /*#__PURE__*/ (0, F.createContext)({}), vpe = /*#__PURE__*/ rw(function(e, t) {
- [e, t] = LL(e, t, tR);
- let { elementType: n = "span", ...r } = e, i = VL[n];
+}), rR = /*#__PURE__*/ (0, F.createContext)({}), gpe = /*#__PURE__*/ aw(function(e, t) {
+ [e, t] = zL(e, t, rR);
+ let { elementType: n = "span", ...r } = e, i = UL[n];
return /*#__PURE__*/ F.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
});
-}), nR = /*#__PURE__*/ (0, F.createContext)(null), rR = /*#__PURE__*/ (0, F.createContext)(null), iR = /*#__PURE__*/ (0, F.createContext)(null), aR = /*#__PURE__*/ (0, F.createContext)(null), ype = /*#__PURE__*/ (0, F.createContext)(null), oR = /*#__PURE__*/ (0, F.createContext)(null);
-function bpe(e, t) {
- let { validationBehavior: n } = IL(rR) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useContext)(ype), a = QC((0, F.useMemo)(() => UC(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...zL(e),
+}), iR = /*#__PURE__*/ (0, F.createContext)(null), aR = /*#__PURE__*/ (0, F.createContext)(null), oR = /*#__PURE__*/ (0, F.createContext)(null), sR = /*#__PURE__*/ (0, F.createContext)(null), _pe = /*#__PURE__*/ (0, F.createContext)(null), cR = /*#__PURE__*/ (0, F.createContext)(null);
+function vpe(e, t) {
+ let { validationBehavior: n } = RL(aR) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useContext)(_pe), a = ew((0, F.useMemo)(() => GC(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...VL(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? ise(o, i, a) : $T(o, iE(e), a), a];
+ return [i ? nse(o, i, a) : tE(o, oE(e), a), a];
}
-var xpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+var ype = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = LL(r, t, iR);
- let [i, a] = bpe(e, n);
- return /*#__PURE__*/ F.createElement(oR.Provider, { value: {
+ [e, t] = zL(r, t, oR);
+ let [i, a] = vpe(e, n);
+ return /*#__PURE__*/ F.createElement(cR.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ F.createElement(Spe, {
+ } }, /*#__PURE__*/ F.createElement(bpe, {
...e,
ref: t
}));
-}), Spe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, F.useContext)(oR), { isFocused: p, isFocusVisible: m, focusProps: h } = jD(), g = a || o, { hoverProps: _, isHovered: v } = FD({
+}), bpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, F.useContext)(cR), { isFocused: p, isFocusVisible: m, focusProps: h } = ND(), g = a || o, { hoverProps: _, isHovered: v } = LD({
...e,
isDisabled: g
- }), y = FL({
+ }), y = LL({
...e,
defaultClassName: u,
values: {
@@ -38189,8 +38189,8 @@ var xpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
isInvalid: c,
isRequired: f || !1
}
- }), b = Gw(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(VL.label, {
+ }), b = qw(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(UL.label, {
...K(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -38204,20 +38204,20 @@ var xpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": f || void 0
- }, /*#__PURE__*/ F.createElement(pE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(hE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
...K(r, h),
ref: l
})), y.children);
-}), sR = /*#__PURE__*/ (0, F.createContext)({}), cR = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = LL(e, t, sR);
+}), lR = /*#__PURE__*/ (0, F.createContext)({}), uR = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = zL(e, t, lR);
let { isDisabled: n, isInvalid: r, isReadOnly: i, onHoverStart: a, onHoverChange: o, onHoverEnd: s, ...c } = e;
n ??= !!e["aria-disabled"] && e["aria-disabled"] !== "false", r ??= !!e["aria-invalid"] && e["aria-invalid"] !== "false";
- let { hoverProps: l, isHovered: u } = FD({
+ let { hoverProps: l, isHovered: u } = LD({
onHoverStart: a,
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = jD({ within: !0 }), m = FL({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = ND({ within: !0 }), m = LL({
...e,
values: {
isHovered: u,
@@ -38228,7 +38228,7 @@ var xpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ F.createElement(VL.div, {
+ return /*#__PURE__*/ F.createElement(UL.div, {
...K(c, p, l),
...m,
ref: t,
@@ -38241,18 +38241,18 @@ var xpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), lR = /*#__PURE__*/ (0, F.createContext)({}), Cpe = (e) => {
+}), dR = /*#__PURE__*/ (0, F.createContext)({}), xpe = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, wpe = /*#__PURE__*/ rw(function(e, t) {
- [e, t] = LL(e, t, lR);
- let { hoverProps: n, isHovered: r } = FD({
+}, Spe = /*#__PURE__*/ aw(function(e, t) {
+ [e, t] = zL(e, t, dR);
+ let { hoverProps: n, isHovered: r } = LD({
...e,
isDisabled: e.disabled
- }), { isFocused: i, isFocusVisible: a, focusProps: o } = jD({
+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = ND({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = FL({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = LL({
...e,
values: {
isHovered: r,
@@ -38263,8 +38263,8 @@ var xpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ F.createElement(VL.input, {
- ...K(Cpe(e), o, n),
+ return /*#__PURE__*/ F.createElement(UL.input, {
+ ...K(xpe(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -38273,24 +38273,24 @@ var xpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), Tpe = 0, Epe = 100, Dpe = 1;
-function Ope(e) {
- let { isDisabled: t = !1, minValue: n = Tpe, maxValue: r = Epe, numberFormatter: i, step: a = Dpe, orientation: o = "horizontal" } = e, s = (0, F.useMemo)(() => {
+}), Cpe = 0, wpe = 100, Tpe = 1;
+function Epe(e) {
+ let { isDisabled: t = !1, minValue: n = Cpe, maxValue: r = wpe, numberFormatter: i, step: a = Tpe, orientation: o = "horizontal" } = e, s = (0, F.useMemo)(() => {
let e = (r - n) / 10;
- return e = sE(e, 0, e + a, a), Math.max(e, a);
+ return e = lE(e, 0, e + a, a), Math.max(e, a);
}, [
a,
r,
n
- ]), c = (0, F.useCallback)((e) => e?.map((t, i) => sE(t, i === 0 ? n : e[i - 1], i === e.length - 1 ? r : e[i + 1], a)), [
+ ]), c = (0, F.useCallback)((e) => e?.map((t, i) => lE(t, i === 0 ? n : e[i - 1], i === e.length - 1 ? r : e[i + 1], a)), [
n,
r,
a
- ]), l = (0, F.useMemo)(() => c(dR(e.value)), [e.value, c]), u = (0, F.useMemo)(() => c(dR(e.defaultValue) ?? [n]), [
+ ]), l = (0, F.useMemo)(() => c(pR(e.value)), [e.value, c]), u = (0, F.useMemo)(() => c(pR(e.defaultValue) ?? [n]), [
e.defaultValue,
n,
c
- ]), d = fR(e.value, e.defaultValue, e.onChange), f = fR(e.value, e.defaultValue, e.onChangeEnd), [p, m] = rE(l, u, d), [h] = (0, F.useState)(p), [g, _] = (0, F.useState)(Array(p.length).fill(!1)), v = (0, F.useRef)(Array(p.length).fill(!0)), [y, b] = (0, F.useState)(void 0), x = (0, F.useRef)(p), S = (0, F.useRef)(g), C = (e) => {
+ ]), d = mR(e.value, e.defaultValue, e.onChange), f = mR(e.value, e.defaultValue, e.onChangeEnd), [p, m] = aE(l, u, d), [h] = (0, F.useState)(p), [g, _] = (0, F.useState)(Array(p.length).fill(!1)), v = (0, F.useRef)(Array(p.length).fill(!0)), [y, b] = (0, F.useState)(void 0), x = (0, F.useRef)(p), S = (0, F.useRef)(g), C = (e) => {
x.current = e, m(e);
}, w = (e) => {
S.current = e, _(e);
@@ -38313,15 +38313,15 @@ function Ope(e) {
function A(e, n) {
if (t || !O(e)) return;
let r = E(e), i = D(e);
- n = sE(n, r, i, a);
- let o = uR(x.current, e, n);
+ n = lE(n, r, i, a);
+ let o = fR(x.current, e, n);
C(o);
}
function j(e, n) {
if (t || !O(e)) return;
n && (x.current = p);
let r = S.current[e];
- S.current = uR(S.current, e, n), w(S.current), f && r && !S.current.some(Boolean) && f(x.current);
+ S.current = fR(S.current, e, n), w(S.current), f && r && !S.current.some(Boolean) && f(x.current);
}
let M = (0, F.useRef)(null);
function ee(e = p) {
@@ -38342,15 +38342,15 @@ function Ope(e) {
return Math.round((e - n) / a) * a + n;
}
function P(e) {
- return aE(te(e * (r - n) + n), n, r);
+ return sE(te(e * (r - n) + n), n, r);
}
function ne(e, t = 1) {
let i = Math.max(t, a);
- A(e, sE(p[e] + i, n, r, a));
+ A(e, lE(p[e] + i, n, r, a));
}
function re(e, t = 1) {
let i = Math.max(t, a);
- A(e, sE(p[e] - i, n, r, a));
+ A(e, lE(p[e] - i, n, r, a));
}
return {
values: p,
@@ -38379,31 +38379,31 @@ function Ope(e) {
isDisabled: t
};
}
-function uR(e, t, n) {
+function fR(e, t, n) {
return e[t] === n ? e : [
...e.slice(0, t),
n,
...e.slice(t + 1)
];
}
-function dR(e) {
+function pR(e) {
if (e != null) return Array.isArray(e) ? e : [e];
}
-function fR(e, t, n) {
+function mR(e, t, n) {
return (r) => {
typeof e == "number" || typeof t == "number" ? n?.(r[0]) : n?.(r);
};
}
// node_modules/react-aria-components/dist/private/Slider.mjs
-var kpe = /*#__PURE__*/ (0, F.createContext)(null), pR = /*#__PURE__*/ (0, F.createContext)(null), mR = /*#__PURE__*/ (0, F.createContext)(null), Ape = /*#__PURE__*/ (0, F.createContext)(null), jpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = LL(e, t, kpe);
- let n = (0, F.useRef)(null), r = lse(e.formatOptions), i = Ope({
+var Dpe = /*#__PURE__*/ (0, F.createContext)(null), hR = /*#__PURE__*/ (0, F.createContext)(null), gR = /*#__PURE__*/ (0, F.createContext)(null), Ope = /*#__PURE__*/ (0, F.createContext)(null), kpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = zL(e, t, Dpe);
+ let n = (0, F.useRef)(null), r = sse(e.formatOptions), i = Epe({
...e,
numberFormatter: r
- }), [a, o] = RL(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = use({
+ }), [a, o] = BL(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = cse({
...e,
label: o
- }, i, n), d = FL({
+ }, i, n), d = LL({
...e,
values: {
orientation: i.orientation,
@@ -38411,32 +38411,32 @@ var kpe = /*#__PURE__*/ (0, F.createContext)(null), pR = /*#__PURE__*/ (0, F.cre
state: i
},
defaultClassName: "react-aria-Slider"
- }), f = Gw(e, { global: !0 });
- return delete f.id, /*#__PURE__*/ F.createElement(PL, { values: [
- [pR, i],
- [mR, {
+ }), f = qw(e, { global: !0 });
+ return delete f.id, /*#__PURE__*/ F.createElement(IL, { values: [
+ [hR, i],
+ [gR, {
...c,
ref: n
}],
- [Ape, u],
- [YL, {
+ [Ope, u],
+ [ZL, {
...l,
ref: a
}]
- ] }, /*#__PURE__*/ F.createElement(VL.div, {
+ ] }, /*#__PURE__*/ F.createElement(UL.div, {
...K(f, d, s),
ref: t,
slot: e.slot || void 0,
"data-orientation": i.orientation,
"data-disabled": i.isDisabled || void 0
}));
-}), Mpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = LL(e, t, mR);
- let n = (0, F.useContext)(pR), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = FD({
+}), Ape = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = zL(e, t, gR);
+ let n = (0, F.useContext)(hR), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = LD({
onHoverStart: r,
onHoverEnd: i,
onHoverChange: a
- }), l = FL({
+ }), l = LL({
...e,
defaultClassName: "react-aria-SliderTrack",
values: {
@@ -38446,7 +38446,7 @@ var kpe = /*#__PURE__*/ (0, F.createContext)(null), pR = /*#__PURE__*/ (0, F.cre
state: n
}
});
- return /*#__PURE__*/ F.createElement(VL.div, {
+ return /*#__PURE__*/ F.createElement(UL.div, {
...K(o, s),
...l,
ref: t,
@@ -38454,14 +38454,14 @@ var kpe = /*#__PURE__*/ (0, F.createContext)(null), pR = /*#__PURE__*/ (0, F.cre
"data-orientation": n.orientation || void 0,
"data-disabled": n.isDisabled || void 0
});
-}), Npe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { inputRef: n = null } = e, r = (0, F.useContext)(pR), { ref: i } = IL(mR), { index: a = 0 } = e, o = (0, F.useRef)(null), s = n || o, [c, l] = RL(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = dse({
+}), jpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { inputRef: n = null } = e, r = (0, F.useContext)(hR), { ref: i } = RL(gR), { index: a = 0 } = e, o = (0, F.useRef)(null), s = n || o, [c, l] = BL(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = lse({
...e,
index: a,
trackRef: i,
inputRef: s,
label: l
- }, r), { focusProps: g, isFocusVisible: _ } = jD(), { hoverProps: v, isHovered: y } = FD(e), b = FL({
+ }, r), { focusProps: g, isFocusVisible: _ } = ND(), { hoverProps: v, isHovered: y } = LD(e), b = LL({
...e,
defaultClassName: "react-aria-SliderThumb",
values: {
@@ -38472,8 +38472,8 @@ var kpe = /*#__PURE__*/ (0, F.createContext)(null), pR = /*#__PURE__*/ (0, F.cre
isFocusVisible: _,
isDisabled: h
}
- }), x = Gw(e, { global: !0 });
- return delete x.id, /*#__PURE__*/ F.createElement(VL.div, {
+ }), x = qw(e, { global: !0 });
+ return delete x.id, /*#__PURE__*/ F.createElement(UL.div, {
...K(x, u, v),
...b,
ref: t,
@@ -38486,330 +38486,330 @@ var kpe = /*#__PURE__*/ (0, F.createContext)(null), pR = /*#__PURE__*/ (0, F.cre
"data-focused": m || void 0,
"data-focus-visible": _ || void 0,
"data-disabled": h || void 0
- }, /*#__PURE__*/ F.createElement(pE, null, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(hE, null, /*#__PURE__*/ F.createElement("input", {
ref: s,
...K(d, g)
- })), /*#__PURE__*/ F.createElement(PL, { values: [[YL, {
+ })), /*#__PURE__*/ F.createElement(IL, { values: [[ZL, {
...f,
ref: c
}]] }, b.children));
-}), hR = {};
-hR = {
+}), _R = {};
+_R = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
tableResizer: "أداة تغيير الحجم"
};
// node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var gR = {};
-gR = {
+var vR = {};
+vR = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
tableResizer: "Преоразмерител"
};
// node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var _R = {};
-_R = {
+var yR = {};
+yR = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
tableResizer: "Změna velikosti"
};
// node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var vR = {};
-vR = {
+var bR = {};
+bR = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
tableResizer: "Størrelsesændring"
};
// node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var yR = {};
-yR = {
+var xR = {};
+xR = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
tableResizer: "Größenanpassung"
};
// node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var bR = {};
-bR = {
+var SR = {};
+SR = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
tableResizer: "Αλλαγή μεγέθους"
};
// node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var xR = {};
-xR = {
+var CR = {};
+CR = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
colorSwatchPicker: "Color swatches"
};
// node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var SR = {};
-SR = {
+var wR = {};
+wR = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
tableResizer: "Cambiador de tamaño"
};
// node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var CR = {};
-CR = {
+var TR = {};
+TR = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
tableResizer: "Suuruse muutja"
};
// node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var wR = {};
-wR = {
+var ER = {};
+ER = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
tableResizer: "Koon muuttaja"
};
// node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var TR = {};
-TR = {
+var DR = {};
+DR = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
tableResizer: "Redimensionneur"
};
// node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var ER = {};
-ER = {
+var OR = {};
+OR = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
tableResizer: "שינוי גודל"
};
// node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var DR = {};
-DR = {
+var kR = {};
+kR = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
tableResizer: "Promjena veličine"
};
// node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var OR = {};
-OR = {
+var AR = {};
+AR = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
tableResizer: "Átméretező"
};
// node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var kR = {};
-kR = {
+var jR = {};
+jR = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
tableResizer: "Ridimensionamento"
};
// node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var AR = {};
-AR = {
+var MR = {};
+MR = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
tableResizer: "サイズ変更ツール"
};
// node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var jR = {};
-jR = {
+var NR = {};
+NR = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
tableResizer: "크기 조정기"
};
// node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var MR = {};
-MR = {
+var PR = {};
+PR = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
tableResizer: "Dydžio keitiklis"
};
// node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var NR = {};
-NR = {
+var FR = {};
+FR = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
tableResizer: "Izmēra mainītājs"
};
// node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var PR = {};
-PR = {
+var IR = {};
+IR = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
tableResizer: "Størrelsesendrer"
};
// node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var FR = {};
-FR = {
+var LR = {};
+LR = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
tableResizer: "Resizer"
};
// node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var IR = {};
-IR = {
+var RR = {};
+RR = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
tableResizer: "Zmiana rozmiaru"
};
// node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var LR = {};
-LR = {
+var zR = {};
+zR = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
tableResizer: "Redimensionador"
};
// node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var RR = {};
-RR = {
+var BR = {};
+BR = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
tableResizer: "Redimensionador"
};
// node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var zR = {};
-zR = {
+var VR = {};
+VR = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
tableResizer: "Instrument de redimensionare"
};
// node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var BR = {};
-BR = {
+var HR = {};
+HR = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
tableResizer: "Средство изменения размера"
};
// node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var VR = {};
-VR = {
+var UR = {};
+UR = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
tableResizer: "Nástroj na zmenu veľkosti"
};
// node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var HR = {};
-HR = {
+var WR = {};
+WR = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
tableResizer: "Spreminjanje velikosti"
};
// node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var UR = {};
-UR = {
+var GR = {};
+GR = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
tableResizer: "Promena veličine"
};
// node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var WR = {};
-WR = {
+var KR = {};
+KR = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
tableResizer: "Storleksändrare"
};
// node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var GR = {};
-GR = {
+var qR = {};
+qR = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
tableResizer: "Yeniden boyutlandırıcı"
};
// node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var KR = {};
-KR = {
+var JR = {};
+JR = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
tableResizer: "Засіб змінення розміру"
};
// node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var qR = {};
-qR = {
+var YR = {};
+YR = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
tableResizer: "尺寸调整器"
};
// node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var JR = {};
-JR = {
+var XR = {};
+XR = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
tableResizer: "大小調整器"
};
// node_modules/react-aria-components/dist/private/intlStrings.mjs
-var YR = {};
-YR = {
- "ar-AE": hR,
- "bg-BG": gR,
- "cs-CZ": _R,
- "da-DK": vR,
- "de-DE": yR,
- "el-GR": bR,
- "en-US": xR,
- "es-ES": SR,
- "et-EE": CR,
- "fi-FI": wR,
- "fr-FR": TR,
- "he-IL": ER,
- "hr-HR": DR,
- "hu-HU": OR,
- "it-IT": kR,
- "ja-JP": AR,
- "ko-KR": jR,
- "lt-LT": MR,
- "lv-LV": NR,
- "nb-NO": PR,
- "nl-NL": FR,
- "pl-PL": IR,
- "pt-BR": LR,
- "pt-PT": RR,
- "ro-RO": zR,
- "ru-RU": BR,
- "sk-SK": VR,
- "sl-SI": HR,
- "sr-SP": UR,
- "sv-SE": WR,
- "tr-TR": GR,
- "uk-UA": KR,
- "zh-CN": qR,
- "zh-TW": JR
+var ZR = {};
+ZR = {
+ "ar-AE": _R,
+ "bg-BG": vR,
+ "cs-CZ": yR,
+ "da-DK": bR,
+ "de-DE": xR,
+ "el-GR": SR,
+ "en-US": CR,
+ "es-ES": wR,
+ "et-EE": TR,
+ "fi-FI": ER,
+ "fr-FR": DR,
+ "he-IL": OR,
+ "hr-HR": kR,
+ "hu-HU": AR,
+ "it-IT": jR,
+ "ja-JP": MR,
+ "ko-KR": NR,
+ "lt-LT": PR,
+ "lv-LV": FR,
+ "nb-NO": IR,
+ "nl-NL": LR,
+ "pl-PL": RR,
+ "pt-BR": zR,
+ "pt-PT": BR,
+ "ro-RO": VR,
+ "ru-RU": HR,
+ "sk-SK": UR,
+ "sl-SI": WR,
+ "sr-SP": GR,
+ "sv-SE": KR,
+ "tr-TR": qR,
+ "uk-UA": JR,
+ "zh-CN": YR,
+ "zh-TW": XR
};
// node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var XR = /*#__PURE__*/ (0, F.createContext)({}), ZR = /*#__PURE__*/ (0, F.createContext)(null), Ppe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { render: n } = (0, F.useContext)(ZR);
+var QR = /*#__PURE__*/ (0, F.createContext)({}), $R = /*#__PURE__*/ (0, F.createContext)(null), Mpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { render: n } = (0, F.useContext)($R);
return /*#__PURE__*/ F.createElement(F.Fragment, null, n(e, t));
});
-function QR(e, t) {
+function ez(e, t) {
let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, F.useCallback)((e) => {
- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ F.createElement(Ppe, { target: e });
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ F.createElement(Mpe, { target: e });
}, [
t?.target,
r,
@@ -38817,7 +38817,7 @@ function QR(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function $R(e, t, n) {
+function tz(e, t, n) {
let r = e.focusedKey, i = null;
if (t?.isVirtualDragging?.() && n?.target?.type === "item" && (i = n.target.key, n.target.dropPosition === "after")) {
let e = n.collection.getKeyAfter(i), t = null;
@@ -38838,13 +38838,13 @@ function $R(e, t, n) {
return (0, F.useMemo)(() => new Set([r, i].filter((e) => e != null)), [r, i]);
}
// node_modules/react-aria-components/dist/private/Header.mjs
-var ez = /*#__PURE__*/ (0, F.createContext)({}), Fpe = /*#__PURE__*/ (0, F.createContext)(null);
-function tz(e) {
+var nz = /*#__PURE__*/ (0, F.createContext)({}), Npe = /*#__PURE__*/ (0, F.createContext)(null);
+function rz(e) {
let t = (0, F.useRef)({});
- return /*#__PURE__*/ F.createElement(Fpe.Provider, { value: t }, e.children);
+ return /*#__PURE__*/ F.createElement(Npe.Provider, { value: t }, e.children);
}
// node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var nz = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), rz = /*#__PURE__*/ (0, F.createContext)({}), Ipe = /*#__PURE__*/ dw(class extends hS {
+var iz = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), az = /*#__PURE__*/ (0, F.createContext)({}), Ppe = /*#__PURE__*/ pw(class extends _S {
static {
this.type = "separator";
}
@@ -38857,14 +38857,14 @@ var nz = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), rz = /*#__PURE_
return null;
}
}, function(e, t) {
- [e, t] = LL(e, t, rz);
+ [e, t] = zL(e, t, az);
let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";
c === "hr" && r === "vertical" && (c = "div");
- let l = VL[c], { separatorProps: u } = gce({
+ let l = UL[c], { separatorProps: u } = hce({
...s,
elementType: n,
orientation: r
- }), d = Gw(e, { global: !0 });
+ }), d = qw(e, { global: !0 });
return /*#__PURE__*/ F.createElement(l, {
render: e.render,
...K(d, u),
@@ -38875,12 +38875,12 @@ var nz = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), rz = /*#__PURE_
});
});
// node_modules/react-aria/dist/private/utils/inertValue.mjs
-function iz(e) {
+function oz(e) {
let t = F.version.split(".");
return parseInt(t[0], 10) >= 19 ? e : e ? "true" : void 0;
}
// node_modules/react-stately/dist/private/list/ListCollection.mjs
-var az = class {
+var sz = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -38924,19 +38924,19 @@ var az = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, oz = class e extends Set {
+}, cz = class e extends Set {
constructor(t, n, r) {
super(t), t instanceof e ? (this.anchorKey = n ?? t.anchorKey, this.currentKey = r ?? t.currentKey) : (this.anchorKey = n ?? null, this.currentKey = r ?? null);
}
};
// node_modules/react-stately/dist/private/selection/useMultipleSelectionState.mjs
-function Lpe(e, t) {
+function Fpe(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function sz(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, F.useRef)(!1), [, s] = (0, F.useState)(!1), c = (0, F.useRef)(null), l = (0, F.useRef)(null), [, u] = (0, F.useState)(null), [d, f] = rE((0, F.useMemo)(() => cz(e.selectedKeys), [e.selectedKeys]), (0, F.useMemo)(() => cz(e.defaultSelectedKeys, new oz()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, F.useState)(i);
+function lz(e) {
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, F.useRef)(!1), [, s] = (0, F.useState)(!1), c = (0, F.useRef)(null), l = (0, F.useRef)(null), [, u] = (0, F.useState)(null), [d, f] = aE((0, F.useMemo)(() => uz(e.selectedKeys), [e.selectedKeys]), (0, F.useMemo)(() => uz(e.defaultSelectedKeys, new cz()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, F.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
let g = (0, F.useRef)(i);
return (0, F.useEffect)(() => {
@@ -38963,17 +38963,17 @@ function sz(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !Lpe(e, d)) && f(e);
+ (r || !Fpe(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
-function cz(e, t) {
- return e ? e === "all" ? "all" : new oz(e) : t;
+function uz(e, t) {
+ return e ? e === "all" ? "all" : new cz(e) : t;
}
// node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var lz = class e {
+var dz = class e {
constructor(e, t, n) {
this.collection = e, this.state = t, this.allowsCellSelection = n?.allowsCellSelection ?? !1, this._isSelectAll = null, this.layoutDelegate = n?.layoutDelegate || null, this.fullCollection = n?.fullCollection || null;
}
@@ -39029,7 +39029,7 @@ var lz = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && yD(this.collection, n, e) < 0) && (e = n);
+ (!e || n && xD(this.collection, n, e) < 0) && (e = n);
}
return e?.key ?? null;
}
@@ -39037,7 +39037,7 @@ var lz = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && yD(this.collection, n, e) > 0) && (e = n);
+ (!e || n && xD(this.collection, n, e) > 0) && (e = n);
}
return e?.key ?? null;
}
@@ -39056,10 +39056,10 @@ var lz = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new oz([t], t, t);
+ if (this.state.selectedKeys === "all") n = new cz([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new oz(e, r, t);
+ n = new cz(e, r, t);
for (let i of this.getKeyRange(r, e.currentKey ?? t)) n.delete(i);
for (let e of this.getKeyRange(t, r)) this.canSelectItem(e) && n.add(e);
}
@@ -39067,7 +39067,7 @@ var lz = class e {
}
getKeyRange(e, t) {
let n = this.collection.getItem(e), r = this.collection.getItem(t);
- return n && r ? yD(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
+ return n && r ? xD(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
}
getKeyRangeInternal(e, t) {
if (this.layoutDelegate?.getKeyRange) return this.layoutDelegate.getKeyRange(e, t);
@@ -39093,19 +39093,19 @@ var lz = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new oz(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new cz(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
n.has(t) ? n.delete(t) : this.canSelectItem(t) && (n.add(t), n.anchorKey = t, n.currentKey = t), !(this.disallowEmptySelection && n.size === 0) && this.state.setSelectedKeys(n);
}
replaceSelection(e) {
if (this.selectionMode === "none") return;
let t = this.getKey(e);
if (t == null) return;
- let n = this.canSelectItem(t) ? new oz([t], t, t) : new oz();
+ let n = this.canSelectItem(t) ? new cz([t], t, t) : new cz();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new oz();
+ let t = new cz();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -39117,7 +39117,7 @@ var lz = class e {
for (; r != null;) {
if (this.canSelectItemIn(r, e)) {
let i = e.getItem(r);
- i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(gD(hD(i, e))?.key ?? null);
+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(vD(_D(i, e))?.key ?? null);
}
r = e.getKeyAfter(r);
}
@@ -39128,7 +39128,7 @@ var lz = class e {
!this.isSelectAll && this.selectionMode === "multiple" && this.state.setSelectedKeys("all");
}
clearSelection() {
- !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new oz());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new cz());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -39169,9 +39169,9 @@ var lz = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, Rpe = class {
+}, Ipe = class {
build(e, t) {
- return this.context = t, uz(() => this.iterateCollection(e));
+ return this.context = t, fz(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
@@ -39253,10 +39253,10 @@ var lz = class e {
...a,
key: l,
index: s,
- wrapper: zpe(e.wrapper, a.wrapper)
+ wrapper: Lpe(e.wrapper, a.wrapper)
}, this.getChildState(t, a), n ? `${n}${i.key}` : i.key, r)];
for (let t of u) {
- if (t.value = a.value ?? e.value ?? null, t.value && this.cache.set(t.value, t), e.type && t.type !== e.type) throw Error(`Unsupported type <${dz(t.type)}> in <${dz(r?.type ?? "unknown parent type")}>. Only <${dz(e.type)}> is supported.`);
+ if (t.value = a.value ?? e.value ?? null, t.value && this.cache.set(t.value, t), e.type && t.type !== e.type) throw Error(`Unsupported type <${pz(t.type)}> in <${pz(r?.type ?? "unknown parent type")}>. Only <${pz(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -39278,7 +39278,7 @@ var lz = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: uz(function* () {
+ childNodes: fz(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -39297,7 +39297,7 @@ var lz = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function uz(e) {
+function fz(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -39305,17 +39305,17 @@ function uz(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function zpe(e, t) {
+function Lpe(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function dz(e) {
+function pz(e) {
return e[0].toUpperCase() + e.slice(1);
}
// node_modules/react-stately/dist/private/collections/useCollection.mjs
-function fz(e, t, n) {
- let r = (0, F.useMemo)(() => new Rpe(), []), { children: i, items: a, collection: o } = e;
+function mz(e, t, n) {
+ let r = (0, F.useMemo)(() => new Ipe(), []), { children: i, items: a, collection: o } = e;
return (0, F.useMemo)(() => o || t(r.build({
children: i,
items: a
@@ -39329,27 +39329,27 @@ function fz(e, t, n) {
]);
}
// node_modules/react-stately/dist/private/list/useListState.mjs
-function pz(e) {
- let { filter: t, layoutDelegate: n } = e, r = sz(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = fz(e, (0, F.useCallback)((e) => t ? new az(t(e)) : new az(e), [t]), (0, F.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, F.useMemo)(() => new lz(a, r, { layoutDelegate: n }), [
+function hz(e) {
+ let { filter: t, layoutDelegate: n } = e, r = lz(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = mz(e, (0, F.useCallback)((e) => t ? new sz(t(e)) : new sz(e), [t]), (0, F.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, F.useMemo)(() => new dz(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return mz(a, o), {
+ return gz(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
-function Bpe(e, t) {
+function Rpe(e, t) {
let n = (0, F.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return mz(n, r), {
+ return gz(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function mz(e, t) {
+function gz(e, t) {
let n = (0, F.useRef)(null);
(0, F.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
@@ -39376,15 +39376,15 @@ function mz(e, t) {
}, [e, t]);
}
// node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function hz(e, t) {
- let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, F.useRef)(null), s = kw((e) => {
+function _z(e, t) {
+ let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, F.useRef)(null), s = jw((e) => {
for (let t of e) t.isIntersecting && r && r();
});
- VS(() => {
+ US(() => {
if (t.current) {
let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;
o.current = new IntersectionObserver(s, {
- root: FT(t?.current),
+ root: LT(t?.current),
rootMargin: n
}), o.current.observe(t.current);
}
@@ -39399,42 +39399,42 @@ function hz(e, t) {
]);
}
// node_modules/react-aria-components/dist/private/ListBox.mjs
-var gz = /*#__PURE__*/ (0, F.createContext)(null), _z = /*#__PURE__*/ (0, F.createContext)(null), Vpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = LL(e, t, gz);
- let n = (0, F.useContext)(_z);
- return n ? /*#__PURE__*/ F.createElement(vz, {
+var vz = /*#__PURE__*/ (0, F.createContext)(null), yz = /*#__PURE__*/ (0, F.createContext)(null), zpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = zL(e, t, vz);
+ let n = (0, F.useContext)(yz);
+ return n ? /*#__PURE__*/ F.createElement(bz, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ F.createElement(cw, { content: /*#__PURE__*/ F.createElement(hw, e) }, (n) => /*#__PURE__*/ F.createElement(Hpe, {
+ }) : /*#__PURE__*/ F.createElement(uw, { content: /*#__PURE__*/ F.createElement(_w, e) }, (n) => /*#__PURE__*/ F.createElement(Bpe, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function Hpe({ props: e, listBoxRef: t, collection: n }) {
+function Bpe({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, F.useContext)(qL), i = pz({
+ let { layoutDelegate: r } = (0, F.useContext)(YL), i = hz({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ F.createElement(vz, {
+ return /*#__PURE__*/ F.createElement(bz, {
state: i,
props: e,
listBoxRef: t
});
}
-function vz({ state: e, props: t, listBoxRef: n }) {
- [t, n] = LL(t, n, HL);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Bpe(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Lw(), { disabledBehavior: p, disabledKeys: m } = l, h = wD({
+function bz({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = zL(t, n, WL);
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Rpe(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = zw(), { disabledBehavior: p, disabledKeys: m } = l, h = ED({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, F.useContext)(qL), b = (0, F.useMemo)(() => t.keyboardDelegate || new EE({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, F.useContext)(YL), b = (0, F.useMemo)(() => t.keyboardDelegate || new OE({
collection: c,
collator: h,
ref: n,
@@ -39455,7 +39455,7 @@ function vz({ state: e, props: t, listBoxRef: n }) {
t.keyboardDelegate,
i,
_
- ]), { listBoxProps: x } = Rse({
+ ]), { listBoxProps: x } = Ise({
...t,
shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,
keyboardDelegate: b,
@@ -39487,7 +39487,7 @@ function vz({ state: e, props: t, listBoxRef: n }) {
dropTargetDelegate: e
}, C, n), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: O, isFocused: k, isFocusVisible: A } = jD(), j = s.collection.size === 0, M = {
+ let { focusProps: O, isFocused: k, isFocusVisible: A } = ND(), j = s.collection.size === 0, M = {
isDropTarget: T,
isEmpty: j,
isFocused: k,
@@ -39495,7 +39495,7 @@ function vz({ state: e, props: t, listBoxRef: n }) {
layout: t.layout || "stack",
orientation: a,
state: s
- }, ee = FL({
+ }, ee = LL({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
@@ -39505,8 +39505,8 @@ function vz({ state: e, props: t, listBoxRef: n }) {
role: "option",
style: { display: "contents" }
}, t.renderEmptyState(M)));
- let te = Gw(t, { global: !0 });
- return /*#__PURE__*/ F.createElement(hT, null, /*#__PURE__*/ F.createElement(VL.div, {
+ let te = qw(t, { global: !0 });
+ return /*#__PURE__*/ F.createElement(_T, null, /*#__PURE__*/ F.createElement(UL.div, {
...K(te, ee, x, O, w?.collectionProps),
ref: n,
slot: t.slot || void 0,
@@ -39517,60 +39517,60 @@ function vz({ state: e, props: t, listBoxRef: n }) {
"data-focus-visible": A || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ F.createElement(PL, { values: [
- [gz, t],
- [_z, s],
- [XR, {
+ }, /*#__PURE__*/ F.createElement(IL, { values: [
+ [vz, t],
+ [yz, s],
+ [QR, {
dragAndDropHooks: r,
dragState: S,
dropState: C
}],
- [rz, { elementType: "div" }],
- [ZR, { render: Gpe }],
- [WL, {
+ [az, { elementType: "div" }],
+ [$R, { render: Upe }],
+ [KL, {
name: "ListBoxSection",
- render: Upe
+ render: Vpe
}]
- ] }, /*#__PURE__*/ F.createElement(tz, null, /*#__PURE__*/ F.createElement(y, {
+ ] }, /*#__PURE__*/ F.createElement(rz, null, /*#__PURE__*/ F.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: $R(l, r, C),
- renderDropIndicator: QR(r, C)
+ persistedKeys: tz(l, r, C),
+ renderDropIndicator: ez(r, C)
}))), N, E));
}
-function Upe(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, F.useContext)(_z), { dragAndDropHooks: a, dropState: o } = (0, F.useContext)(XR), { CollectionBranch: s } = (0, F.useContext)(qL), [c, l] = RL(), { headingProps: u, groupProps: d } = zse({
+function Vpe(e, t, n, r = "react-aria-ListBoxSection") {
+ let i = (0, F.useContext)(yz), { dragAndDropHooks: a, dropState: o } = (0, F.useContext)(QR), { CollectionBranch: s } = (0, F.useContext)(YL), [c, l] = BL(), { headingProps: u, groupProps: d } = Lse({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = FL({
+ }), f = LL({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
- }), p = Gw(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ F.createElement(VL.section, {
+ }), p = qw(e, { global: !0 });
+ return delete p.id, /*#__PURE__*/ F.createElement(UL.section, {
...K(p, f, d),
ref: t
- }, /*#__PURE__*/ F.createElement(ez.Provider, { value: {
+ }, /*#__PURE__*/ F.createElement(nz.Provider, { value: {
...u,
ref: c
} }, /*#__PURE__*/ F.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: QR(a, o)
+ renderDropIndicator: ez(a, o)
})));
}
-var Wpe = /*#__PURE__*/ dw(vS, function(e, t, n) {
- let r = QC(t), i = (0, F.useContext)(_z), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(XR), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Bse({
+var Hpe = /*#__PURE__*/ pw(bS, function(e, t, n) {
+ let r = ew(t), i = (0, F.useContext)(yz), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(QR), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Rse({
key: n.key,
"aria-label": e?.["aria-label"]
- }, i, r), { hoverProps: p, isHovered: m } = FD({
+ }, i, r), { hoverProps: p, isHovered: m } = LD({
isDisabled: !f.allowsSelection && !f.hasAction && !c,
onHoverStart: n.props.onHoverStart,
onHoverChange: n.props.onHoverChange,
onHoverEnd: n.props.onHoverEnd
- }), { keyboardProps: h } = ZC(e), { focusProps: g } = qC(e), _ = null;
+ }), { keyboardProps: h } = $C(e), { focusProps: g } = YC(e), _ = null;
o && a && (_ = a.useDraggableItem({
key: n.key,
hasAction: f.hasAction
@@ -39581,7 +39581,7 @@ var Wpe = /*#__PURE__*/ dw(vS, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), b = FL({
+ let y = o && o.isDragging(n.key), b = LL({
...e,
id: void 0,
children: e.children,
@@ -39599,7 +39599,7 @@ var Wpe = /*#__PURE__*/ dw(vS, function(e, t, n) {
(0, F.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let x = e.href ? VL.a : VL.div, S = Gw(e, { global: !0 });
+ let x = e.href ? UL.a : UL.div, S = qw(e, { global: !0 });
return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ F.createElement(x, {
...K(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
@@ -39613,29 +39613,29 @@ var Wpe = /*#__PURE__*/ dw(vS, function(e, t, n) {
"data-dragging": y || void 0,
"data-drop-target": v?.isDropTarget || void 0,
"data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode
- }, /*#__PURE__*/ F.createElement(PL, { values: [[tR, { slots: {
- [NL]: u,
+ }, /*#__PURE__*/ F.createElement(IL, { values: [[rR, { slots: {
+ [FL]: u,
label: u,
description: d
- } }], [nz, { isSelected: f.isSelected }]] }, b.children));
+ } }], [iz, { isSelected: f.isSelected }]] }, b.children));
});
-function Gpe(e, t) {
- t = QC(t);
- let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(XR), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ F.createElement(qpe, {
+function Upe(e, t) {
+ t = ew(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(QR), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ return a ? null : /*#__PURE__*/ F.createElement(Gpe, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function Kpe(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = FL({
+function Wpe(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = LL({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(VL.div, {
+ return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(UL.div, {
...n,
...a,
role: "option",
@@ -39643,10 +39643,10 @@ function Kpe(e, t) {
"data-drop-target": r || void 0
}));
}
-var qpe = /*#__PURE__*/ (0, F.forwardRef)(Kpe);
-dw(_S, function(e, t, n) {
- let r = (0, F.useContext)(_z), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
- hz((0, F.useMemo)(() => ({
+var Gpe = /*#__PURE__*/ (0, F.forwardRef)(Wpe);
+pw(yS, function(e, t, n) {
+ let r = (0, F.useContext)(yz), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
+ _z((0, F.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -39656,7 +39656,7 @@ dw(_S, function(e, t, n) {
o,
r?.collection
]), c);
- let l = FL({
+ let l = LL({
...s,
id: void 0,
children: n.rendered,
@@ -39669,7 +39669,7 @@ dw(_S, function(e, t, n) {
width: 0,
height: 0
},
- inert: iz(!0)
+ inert: oz(!0)
}, /*#__PURE__*/ F.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -39678,18 +39678,18 @@ dw(_S, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(VL.div, {
- ...K(Gw(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(UL.div, {
+ ...K(qw(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
ref: t
}, l.children)));
});
// node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var Jpe = /*#__PURE__*/ (0, F.createContext)({ placement: "bottom" });
+var Kpe = /*#__PURE__*/ (0, F.createContext)({ placement: "bottom" });
// node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function yz(e) {
- let [t, n] = rE(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, F.useState)(null);
+function xz(e) {
+ let [t, n] = aE(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, F.useState)(null);
return {
isOpen: t,
setOpen: n,
@@ -39707,15 +39707,15 @@ function yz(e) {
};
}
// node_modules/react-aria/dist/private/utils/animation.mjs
-function bz(e, t = !0, n) {
+function Sz(e, t = !0, n) {
let [r, i] = (0, F.useState)(!0), a = r && t;
- return VS(() => {
- if (!t && e.current) return LC(AS(e.current, "opacity", "0"), AS(e.current, "clip", "rect(0 0 0 0)"), AS(e.current, "clip-path", "inset(50%)"), AS(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
- }, [e, t]), VS(() => {
+ return US(() => {
+ if (!t && e.current) return zC(MS(e.current, "opacity", "0"), MS(e.current, "clip", "rect(0 0 0 0)"), MS(e.current, "clip-path", "inset(50%)"), MS(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
+ }, [e, t]), US(() => {
if (a && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, a]), Sz(e, a, n, (0, F.useCallback)(() => i(!1), [])), a;
+ }, [e, a]), wz(e, a, n, (0, F.useCallback)(() => i(!1), [])), a;
}
-function xz(e, t, n) {
+function Cz(e, t, n) {
let [r, i] = (0, F.useState)(t ? "open" : "closed");
switch (r) {
case "open":
@@ -39725,13 +39725,13 @@ function xz(e, t, n) {
case "exiting": t && i("open");
}
let a = r === "exiting";
- return Sz(e, a, n, (0, F.useCallback)(() => {
+ return wz(e, a, n, (0, F.useCallback)(() => {
i((e) => e === "exiting" ? "closed" : e);
}, [])), a;
}
-function Sz(e, t, n, r) {
- let i = (0, F.useRef)(null), a = kw(n);
- VS(() => {
+function wz(e, t, n, r) {
+ let i = (0, F.useRef)(null), a = jw(n);
+ US(() => {
if (t && e.current && i.current !== t) {
if (i.current = t, !("getAnimations" in e.current)) {
r();
@@ -39756,9 +39756,9 @@ function Sz(e, t, n, r) {
]);
}
// node_modules/react-aria-components/dist/private/Popover.mjs
-var Cz = /*#__PURE__*/ (0, F.createContext)(null), wz = /*#__PURE__*/ (0, F.createContext)(null), Tz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = LL(e, t, Cz);
- let n = (0, F.useContext)(Lz), r = yz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = xz(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = iw(), { direction: c } = Lw();
+var Tz = /*#__PURE__*/ (0, F.createContext)(null), Ez = /*#__PURE__*/ (0, F.createContext)(null), Dz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = zL(e, t, Tz);
+ let n = (0, F.useContext)(zz), r = xz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Cz(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = ow(), { direction: c } = zw();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -39769,7 +39769,7 @@ var Cz = /*#__PURE__*/ (0, F.createContext)(null), wz = /*#__PURE__*/ (0, F.crea
defaultChildren: null
})), /*#__PURE__*/ F.createElement(F.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ F.createElement(Ype, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ F.createElement(qpe, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -39778,13 +39778,13 @@ var Cz = /*#__PURE__*/ (0, F.createContext)(null), wz = /*#__PURE__*/ (0, F.crea
dir: c
});
});
-function Ype({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useContext)(wz), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, F.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = dce({
+function qpe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
+ let a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useContext)(Ez), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, F.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = lce({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), g = i.popoverRef, _ = bz(g, !!m && l), v = i.isEntering || !i.shouldSkipAnimation && _ || !1, y = FL({
+ }, e), g = i.popoverRef, _ = Sz(g, !!m && l), v = i.isEntering || !i.shouldSkipAnimation && _ || !1, y = LL({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -39794,10 +39794,10 @@ function Ype({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
isExiting: t
}
}), b = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [x, S] = (0, F.useState)(i.trigger === "PreviewTrigger");
- VS(() => {
+ US(() => {
g.current && S(b && !g.current.querySelector("[role=dialog]"));
}, [g, b]), (0, F.useEffect)(() => {
- x && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || TC() !== "pointer") && g.current && !FS(g.current) && IC(g.current);
+ x && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || DC() !== "pointer") && g.current && !LS(g.current) && RC(g.current);
}, [
x,
g,
@@ -39805,12 +39805,12 @@ function Ype({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
]);
let C = (0, F.useMemo)(() => {
let e = y.children;
- for (let t of [Cz, ...r ?? []]) e = /*#__PURE__*/ F.createElement(t.Provider, { value: null }, e);
+ for (let t of [Tz, ...r ?? []]) e = /*#__PURE__*/ F.createElement(t.Provider, { value: null }, e);
return e;
}, [y.children, r]), [w, T] = (0, F.useState)(null), E = (0, F.useCallback)(() => {
i.triggerRef.current && T(i.triggerRef.current.getBoundingClientRect().width + "px");
}, [i.triggerRef]);
- VS(E, [E]), NO({
+ US(E, [E]), FO({
ref: y.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: E
});
@@ -39820,9 +39820,9 @@ function Ype({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
...y.style,
"--trigger-width": y.style?.["--trigger-width"] || w
};
- VS(() => Sk(() => u(!0)), []);
- let O = /*#__PURE__*/ F.createElement(VL.div, {
- ...K(Gw(i, { global: !0 }), d),
+ US(() => wk(() => u(!0)), []);
+ let O = /*#__PURE__*/ F.createElement(UL.div, {
+ ...K(qw(i, { global: !0 }), d),
...y,
id: x ? i.id : void 0,
role: x ? "dialog" : void 0,
@@ -39837,17 +39837,17 @@ function Ype({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"data-placement": m,
"data-entering": v || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ F.createElement(hk, { onDismiss: e.close }), /*#__PURE__*/ F.createElement(Jpe.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ F.createElement(_k, { onDismiss: e.close }), /*#__PURE__*/ F.createElement(Kpe.Provider, { value: {
...p,
placement: m,
ref: a
- } }, C), /*#__PURE__*/ F.createElement(hk, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ F.createElement(kD, {
+ } }, C), /*#__PURE__*/ F.createElement(_k, { onDismiss: e.close }));
+ return c ? /*#__PURE__*/ F.createElement(jD, {
...i,
shouldContainFocus: x && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n ?? s?.current ?? void 0
- }, O) : /*#__PURE__*/ F.createElement(kD, {
+ }, O) : /*#__PURE__*/ F.createElement(jD, {
...i,
shouldContainFocus: x && i.trigger !== "PreviewTrigger",
isExiting: t,
@@ -39862,13 +39862,13 @@ function Ype({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}), /*#__PURE__*/ F.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ F.createElement(wz.Provider, { value: o }, O)));
+ }, /*#__PURE__*/ F.createElement(Ez.Provider, { value: o }, O)));
}
// node_modules/react-aria-components/dist/private/Keyboard.mjs
-var Xpe = /*#__PURE__*/ (0, F.createContext)({});
+var Jpe = /*#__PURE__*/ (0, F.createContext)({});
// node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs
-function Ez(e) {
- let t = yz(e), [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)([]), o = () => {
+function Oz(e) {
+ let t = xz(e), [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)([]), o = () => {
a([]), t.close();
}, s = (e, t) => {
a((n) => t > n.length ? n : [...n.slice(0, t), e]);
@@ -39893,7 +39893,7 @@ function Ez(e) {
};
}
// node_modules/react-stately/dist/private/tree/TreeCollection.mjs
-var Zpe = class {
+var Ype = class {
constructor(e, { expandedKeys: t } = {}) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e, t ||= /* @__PURE__ */ new Set();
let n = (e) => {
@@ -39936,8 +39936,8 @@ var Zpe = class {
}
};
// node_modules/react-stately/dist/private/tree/useTreeState.mjs
-function Dz(e) {
- let { onExpandedChange: t } = e, [n, r] = rE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = sz(e), a = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = fz(e, (0, F.useCallback)((e) => new Zpe(e, { expandedKeys: n }), [n]), null);
+function kz(e) {
+ let { onExpandedChange: t } = e, [n, r] = aE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = lz(e), a = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = mz(e, (0, F.useCallback)((e) => new Ype(e, { expandedKeys: n }), [n]), null);
return (0, F.useEffect)(() => {
i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);
}, [o, i.focusedKey]), {
@@ -39945,31 +39945,31 @@ function Dz(e) {
expandedKeys: n,
disabledKeys: a,
toggleKey: (e) => {
- r(Qpe(n, e));
+ r(Xpe(n, e));
},
setExpandedKeys: r,
- selectionManager: new lz(o, i)
+ selectionManager: new dz(o, i)
};
}
-function Qpe(e, t) {
+function Xpe(e, t) {
let n = new Set(e);
return n.has(t) ? n.delete(t) : n.add(t), n;
}
// node_modules/react-aria-components/dist/private/Menu.mjs
-var Oz = /*#__PURE__*/ (0, F.createContext)(null), kz = /*#__PURE__*/ (0, F.createContext)(null), Az = /*#__PURE__*/ (0, F.createContext)(null), jz = /*#__PURE__*/ (0, F.createContext)(null);
-function $pe(e) {
- let t = Ez(e), n = (0, F.useRef)(null), { menuTriggerProps: r, menuProps: i } = uD({
+var Az = /*#__PURE__*/ (0, F.createContext)(null), jz = /*#__PURE__*/ (0, F.createContext)(null), Mz = /*#__PURE__*/ (0, F.createContext)(null), Nz = /*#__PURE__*/ (0, F.createContext)(null);
+function Zpe(e) {
+ let t = Oz(e), n = (0, F.useRef)(null), { menuTriggerProps: r, menuProps: i } = fD({
...e,
type: "menu"
}, t, n), a = (0, F.useRef)(null);
- return iw() ? null : /*#__PURE__*/ F.createElement(PL, { values: [
- [Oz, {
+ return ow() ? null : /*#__PURE__*/ F.createElement(IL, { values: [
+ [Az, {
...i,
ref: a
}],
- [Lz, t],
- [Az, t],
- [Cz, {
+ [zz, t],
+ [Mz, t],
+ [Tz, {
trigger: "MenuTrigger",
triggerRef: n,
scrollRef: a,
@@ -39977,14 +39977,14 @@ function $pe(e) {
"aria-labelledby": i["aria-labelledby"],
offset: e.trigger === "contextMenu" ? 0 : void 0
}]
- ] }, /*#__PURE__*/ F.createElement(Cse, {
+ ] }, /*#__PURE__*/ F.createElement(xse, {
...r,
ref: n,
isPressed: t.isOpen
}, e.children));
}
-var eme = /*#__PURE__*/ (0, F.createContext)(null);
-(class extends hS {
+var Qpe = /*#__PURE__*/ (0, F.createContext)(null);
+(class extends _S {
static {
this.type = "submenutrigger";
}
@@ -39997,24 +39997,24 @@ var eme = /*#__PURE__*/ (0, F.createContext)(null);
return null;
}
});
-var tme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return [e, t] = LL(e, t, Oz), /*#__PURE__*/ F.createElement(cw, { content: /*#__PURE__*/ F.createElement(hw, e) }, (n) => /*#__PURE__*/ F.createElement(nme, {
+var $pe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ return [e, t] = zL(e, t, Az), /*#__PURE__*/ F.createElement(uw, { content: /*#__PURE__*/ F.createElement(_w, e) }, (n) => /*#__PURE__*/ F.createElement(eme, {
props: e,
collection: n,
menuRef: t
}));
});
-function nme({ props: e, collection: t, menuRef: n }) {
- [e, n] = LL(e, n, HL);
- let { filter: r, ...i } = e, a = (0, F.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = Dz({
+function eme({ props: e, collection: t, menuRef: n }) {
+ [e, n] = zL(e, n, WL);
+ let { filter: r, ...i } = e, a = (0, F.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = kz({
...e,
collection: a,
children: void 0
- }), s = (0, F.useContext)(Az), { isVirtualized: c, CollectionRoot: l } = (0, F.useContext)(qL), { menuProps: u } = Vse({
+ }), s = (0, F.useContext)(Mz), { isVirtualized: c, CollectionRoot: l } = (0, F.useContext)(YL), { menuProps: u } = zse({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
- }, o, n), d = FL({
+ }, o, n), d = LL({
...e,
children: void 0,
defaultClassName: "react-aria-Menu",
@@ -40024,36 +40024,36 @@ function nme({ props: e, collection: t, menuRef: n }) {
role: "menuitem",
style: { display: "contents" }
}, e.renderEmptyState()));
- let p = Gw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(hT, null, /*#__PURE__*/ F.createElement(VL.div, {
+ let p = qw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(_T, null, /*#__PURE__*/ F.createElement(UL.div, {
...K(p, d, u),
ref: n,
slot: e.slot || void 0,
"data-empty": o.collection.size === 0 || void 0,
onScroll: e.onScroll
- }, /*#__PURE__*/ F.createElement(PL, { values: [
- [kz, o],
- [rz, { elementType: "div" }],
- [WL, {
+ }, /*#__PURE__*/ F.createElement(IL, { values: [
+ [jz, o],
+ [az, { elementType: "div" }],
+ [KL, {
name: "MenuSection",
- render: Mz
+ render: Pz
}],
- [eme, {
+ [Qpe, {
parentMenuRef: n,
shouldUseVirtualFocus: i?.shouldUseVirtualFocus
}],
- [Pz, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
- [HL, null],
- [UL, null],
- [jz, o.selectionManager],
- [Az, s ?? Ez({})]
- ] }, /*#__PURE__*/ F.createElement(tz, null, /*#__PURE__*/ F.createElement(l, {
+ [Iz, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [WL, null],
+ [GL, null],
+ [Nz, o.selectionManager],
+ [Mz, s ?? Oz({})]
+ ] }, /*#__PURE__*/ F.createElement(rz, null, /*#__PURE__*/ F.createElement(l, {
collection: o.collection,
- persistedKeys: JL(o.selectionManager.focusedKey),
+ persistedKeys: XL(o.selectionManager.focusedKey),
scrollRef: n
}))), f));
}
-var rme = class extends lz {
+var tme = class extends dz {
constructor(e, t) {
super(e.collection, t), this.parent = e;
}
@@ -40073,11 +40073,11 @@ var rme = class extends lz {
return this.parent.childFocusStrategy;
}
};
-function Mz(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, F.useContext)(kz), { CollectionBranch: a } = (0, F.useContext)(qL), [o, s] = RL(), { headingProps: c, groupProps: l } = Use({
+function Pz(e, t, n, r = "react-aria-MenuSection") {
+ let i = (0, F.useContext)(jz), { CollectionBranch: a } = (0, F.useContext)(YL), [o, s] = BL(), { headingProps: c, groupProps: l } = Vse({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
- }), u = FL({
+ }), u = LL({
...e,
id: void 0,
children: void 0,
@@ -40085,31 +40085,31 @@ function Mz(e, t, n, r = "react-aria-MenuSection") {
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, F.useContext)(jz), f = sz(e), p = e.selectionMode == null ? d : new rme(d, f), m = IL(Pz)?.shouldCloseOnSelect, h = Gw(e, { global: !0 });
- return delete h.id, /*#__PURE__*/ F.createElement(VL.section, {
+ }), d = (0, F.useContext)(Nz), f = lz(e), p = e.selectionMode == null ? d : new tme(d, f), m = RL(Iz)?.shouldCloseOnSelect, h = qw(e, { global: !0 });
+ return delete h.id, /*#__PURE__*/ F.createElement(UL.section, {
...K(h, u, l),
ref: t
- }, /*#__PURE__*/ F.createElement(PL, { values: [
- [ez, {
+ }, /*#__PURE__*/ F.createElement(IL, { values: [
+ [nz, {
...c,
ref: o
}],
- [jz, p],
- [Pz, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
+ [Nz, p],
+ [Iz, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
] }, /*#__PURE__*/ F.createElement(a, {
collection: i.collection,
parent: n
})));
}
-var Nz = /*#__PURE__*/ fw(tae, Mz), Pz = /*#__PURE__*/ (0, F.createContext)(null), Fz = /*#__PURE__*/ dw(vS, function(e, t, n) {
- [e, t] = LL(e, t, Pz);
- let r = IL(Pz)?.id, i = (0, F.useContext)(kz), a = QC(t), o = (0, F.useContext)(jz), { isVirtualized: s } = (0, F.useContext)(qL), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Hse({
+var Fz = /*#__PURE__*/ mw($ie, Pz), Iz = /*#__PURE__*/ (0, F.createContext)(null), Lz = /*#__PURE__*/ pw(bS, function(e, t, n) {
+ [e, t] = zL(e, t, Iz);
+ let r = RL(Iz)?.id, i = (0, F.useContext)(jz), a = ew(t), o = (0, F.useContext)(Nz), { isVirtualized: s } = (0, F.useContext)(YL), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Bse({
...e,
id: r,
key: n.key,
selectionManager: o,
isVirtualized: s
- }, i, a), { hoverProps: p, isHovered: m } = FD({ isDisabled: f.isDisabled }), h = FL({
+ }, i, a), { hoverProps: p, isHovered: m } = LD({ isDisabled: f.isDisabled }), h = LL({
...e,
id: void 0,
children: n.rendered,
@@ -40123,7 +40123,7 @@ var Nz = /*#__PURE__*/ fw(tae, Mz), Pz = /*#__PURE__*/ (0, F.createContext)(null
hasSubmenu: !!e["aria-haspopup"],
isOpen: e["aria-expanded"] === "true"
}
- }), g = e.href ? VL.a : VL.div, _ = Gw(e, { global: !0 });
+ }), g = e.href ? UL.a : UL.div, _ = qw(e, { global: !0 });
return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(g, {
...K(_, h, c, p),
ref: a,
@@ -40136,19 +40136,19 @@ var Nz = /*#__PURE__*/ fw(tae, Mz), Pz = /*#__PURE__*/ (0, F.createContext)(null
"data-selection-mode": o.selectionMode === "none" ? void 0 : o.selectionMode,
"data-has-submenu": !!e["aria-haspopup"] || void 0,
"data-open": e["aria-expanded"] === "true" || void 0
- }, /*#__PURE__*/ F.createElement(PL, { values: [
- [tR, { slots: {
- [NL]: l,
+ }, /*#__PURE__*/ F.createElement(IL, { values: [
+ [rR, { slots: {
+ [FL]: l,
label: l,
description: u
} }],
- [Xpe, d],
- [nz, { isSelected: f.isSelected }]
+ [Jpe, d],
+ [iz, { isSelected: f.isSelected }]
] }, h.children));
});
-dw(_S, function(e, t, n) {
- let r = (0, F.useContext)(kz), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
- hz((0, F.useMemo)(() => ({
+pw(yS, function(e, t, n) {
+ let r = (0, F.useContext)(jz), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
+ _z((0, F.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -40158,7 +40158,7 @@ dw(_S, function(e, t, n) {
o,
r?.collection
]), c);
- let l = FL({
+ let l = LL({
...s,
id: void 0,
children: n.rendered,
@@ -40171,7 +40171,7 @@ dw(_S, function(e, t, n) {
width: 0,
height: 0
},
- inert: iz(!0)
+ inert: oz(!0)
}, /*#__PURE__*/ F.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -40180,89 +40180,89 @@ dw(_S, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(VL.div, {
- ...K(Gw(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(UL.div, {
+ ...K(qw(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "menuitem",
ref: t
}, l.children)));
});
// node_modules/react-aria-components/dist/private/Dialog.mjs
-var Iz = /*#__PURE__*/ (0, F.createContext)(null), Lz = /*#__PURE__*/ (0, F.createContext)(null), Rz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+var Rz = /*#__PURE__*/ (0, F.createContext)(null), zz = /*#__PURE__*/ (0, F.createContext)(null), Bz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = LL(e, t, Iz);
- let { dialogProps: r, titleProps: i, contentProps: a } = Tse({
+ [e, t] = zL(e, t, Rz);
+ let { dialogProps: r, titleProps: i, contentProps: a } = Cse({
...e,
"aria-labelledby": n
- }, t), o = (0, F.useContext)(Lz);
+ }, t), o = (0, F.useContext)(zz);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = FL({
+ let s = LL({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
- }), c = Gw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(VL.section, {
+ }), c = qw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(UL.section, {
...K(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ F.createElement(PL, { values: [
- [$L, { slots: {
- [NL]: {},
+ }, /*#__PURE__*/ F.createElement(IL, { values: [
+ [tR, { slots: {
+ [FL]: {},
title: {
...i,
level: 2
}
} }],
- [tR, { slots: {
- [NL]: {},
+ [rR, { slots: {
+ [FL]: {},
description: a
} }],
- [ZL, { slots: {
- [NL]: {},
+ [$L, { slots: {
+ [FL]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
-}), zz = typeof document < "u" && window.visualViewport;
-function ime() {
- let e = lC(), t = (0, F.useRef)(null), [n, r] = (0, F.useState)(() => e ? {
+}), Vz = typeof document < "u" && window.visualViewport;
+function nme() {
+ let e = dC(), t = (0, F.useRef)(null), [n, r] = (0, F.useState)(() => e ? {
width: 0,
height: 0
- } : Bz());
+ } : Hz());
return (0, F.useEffect)(() => {
let e = (e) => {
r((t) => e.width === t.width && e.height === t.height ? t : e);
}, n = () => {
- zz && zz.scale > 1 || e(Bz());
+ Vz && Vz.scale > 1 || e(Hz());
}, i = (n) => {
- zz && zz.scale > 1 || Ew(G(n)) && (t.current = Sk((t) => {
+ Vz && Vz.scale > 1 || Ow(G(n)) && (t.current = wk((t) => {
t || e({
width: document.documentElement.clientWidth,
height: document.documentElement.clientHeight
});
}));
};
- return e(Bz()), ZS() && QS() && window.addEventListener("blur", i, !0), zz ? zz.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
- t.current?.(), ZS() && QS() && window.removeEventListener("blur", i, !0), zz ? zz.removeEventListener("resize", n) : window.removeEventListener("resize", n);
+ return e(Hz()), $S() && eC() && window.addEventListener("blur", i, !0), Vz ? Vz.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
+ t.current?.(), $S() && eC() && window.removeEventListener("blur", i, !0), Vz ? Vz.removeEventListener("resize", n) : window.removeEventListener("resize", n);
};
}, []), n;
}
-function Bz() {
+function Hz() {
return {
- width: zz ? Math.min(zz.width * zz.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: zz ? zz.height * zz.scale : document.documentElement.clientHeight
+ width: Vz ? Math.min(Vz.width * Vz.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: Vz ? Vz.height * Vz.scale : document.documentElement.clientHeight
};
}
// node_modules/react-aria-components/dist/private/Modal.mjs
-var ame = /*#__PURE__*/ (0, F.createContext)(null), Vz = /*#__PURE__*/ (0, F.createContext)(null), ome = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- if ((0, F.useContext)(Vz)) return /*#__PURE__*/ F.createElement(Uz, {
+var rme = /*#__PURE__*/ (0, F.createContext)(null), Uz = /*#__PURE__*/ (0, F.createContext)(null), ime = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ if ((0, F.useContext)(Uz)) return /*#__PURE__*/ F.createElement(Gz, {
...e,
modalRef: t
}, e.children);
let { isDismissable: n, isKeyboardDismissDisabled: r, isOpen: i, defaultOpen: a, onOpenChange: o, children: s, isEntering: c, isExiting: l, UNSTABLE_portalContainer: u, shouldCloseOnInteractOutside: d, ...f } = e;
- return /*#__PURE__*/ F.createElement(Hz, {
+ return /*#__PURE__*/ F.createElement(Wz, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -40272,15 +40272,15 @@ var ame = /*#__PURE__*/ (0, F.createContext)(null), Vz = /*#__PURE__*/ (0, F.cre
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ F.createElement(Uz, {
+ }, /*#__PURE__*/ F.createElement(Gz, {
...f,
modalRef: t
}, s));
});
-function sme(e, t) {
- [e, t] = LL(e, t, ame);
- let n = (0, F.useContext)(Lz), r = yz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = QC(t), o = (0, F.useRef)(null), s = xz(a, i.isOpen, e.onExit), c = (0, F.useRef)(null), l = xz(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = lC();
- return !i.isOpen && !u || d ? null : /*#__PURE__*/ F.createElement(cme, {
+function ame(e, t) {
+ [e, t] = zL(e, t, rme);
+ let n = (0, F.useContext)(zz), r = xz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = ew(t), o = (0, F.useRef)(null), s = Cz(a, i.isOpen, e.onExit), c = (0, F.useRef)(null), l = Cz(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = dC();
+ return !i.isOpen && !u || d ? null : /*#__PURE__*/ F.createElement(ome, {
...e,
state: i,
isExiting: u,
@@ -40289,12 +40289,12 @@ function sme(e, t) {
onExitRef: c
});
}
-var Hz = /*#__PURE__*/ (0, F.forwardRef)(sme);
-function cme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
- let r = n.modalRef, { state: i } = n, [a, o] = (0, F.useState)(!1), s = bz(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = ece({
+var Wz = /*#__PURE__*/ (0, F.forwardRef)(ame);
+function ome({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
+ let r = n.modalRef, { state: i } = n, [a, o] = (0, F.useState)(!1), s = Sz(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = Qse({
...n,
isEntering: c
- }, i, r), d = (0, F.useContext)(Iz), f = t ? lme(d, { isEntering: c }) : d, p = FL({
+ }, i, r), d = (0, F.useContext)(Rz), f = t ? sme(d, { isEntering: c }) : d, p = LL({
...n,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -40302,9 +40302,9 @@ function cme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
isExiting: n.isExiting,
state: i
}
- }), m = ime(), h, g;
+ }), m = nme(), h, g;
if (typeof document < "u") {
- let e = PT(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
+ let e = IT(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
h = e.scrollWidth - t, g = e.scrollHeight - n;
}
let _ = {
@@ -40314,18 +40314,18 @@ function cme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
"--page-width": h === void 0 ? void 0 : h + "px",
"--page-height": g === void 0 ? void 0 : g + "px"
};
- return VS(() => Sk(() => o(!0)), []), /*#__PURE__*/ F.createElement(kD, {
+ return US(() => wk(() => o(!0)), []), /*#__PURE__*/ F.createElement(jD, {
isExiting: n.isExiting,
portalContainer: e
- }, /*#__PURE__*/ F.createElement(VL.div, {
- ...K(Gw(n, { global: !0 }), u),
+ }, /*#__PURE__*/ F.createElement(UL.div, {
+ ...K(qw(n, { global: !0 }), u),
...p,
style: _,
ref: n.overlayRef,
"data-entering": s || void 0,
"data-exiting": n.isExiting || void 0
- }, /*#__PURE__*/ F.createElement(PL, { values: [
- [Vz, {
+ }, /*#__PURE__*/ F.createElement(IL, { values: [
+ [Uz, {
modalProps: l,
modalRef: r,
isExiting: n.isExiting,
@@ -40333,11 +40333,11 @@ function cme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
isOpen: a,
isDismissable: n.isDismissable
}],
- [Lz, i],
- [Iz, f]
+ [zz, i],
+ [Rz, f]
] }, p.children)));
}
-function lme(e, t) {
+function sme(e, t) {
if (e && "slots" in e && e.slots) {
let n = {};
for (let r in e.slots) n[r] = {
@@ -40354,8 +40354,8 @@ function lme(e, t) {
...t
};
}
-function Uz(e) {
- let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, F.useContext)(Vz), s = (0, F.useContext)(Lz), c = QC((0, F.useMemo)(() => UC(e.modalRef, n), [e.modalRef, n])), l = bz(c, o, e.onEnter), u = FL({
+function Gz(e) {
+ let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, F.useContext)(Uz), s = (0, F.useContext)(zz), c = ew((0, F.useMemo)(() => GC(e.modalRef, n), [e.modalRef, n])), l = Sz(c, o, e.onEnter), u = LL({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -40364,20 +40364,20 @@ function Uz(e) {
state: s
}
});
- return VS(() => {
+ return US(() => {
i && (i.current = e.onExit);
- }), /*#__PURE__*/ F.createElement(VL.div, {
- ...K(Gw(e, { global: !0 }), t),
+ }), /*#__PURE__*/ F.createElement(UL.div, {
+ ...K(qw(e, { global: !0 }), t),
...u,
ref: c,
"data-entering": l || void 0,
"data-exiting": r || void 0
- }, a && /*#__PURE__*/ F.createElement(hk, { onDismiss: s.close }), u.children);
+ }, a && /*#__PURE__*/ F.createElement(_k, { onDismiss: s.close }), u.children);
}
// node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
-var ume = Math.round(Math.random() * 1e10), dme = 0;
-function fme(e) {
- let t = (0, F.useMemo)(() => e.name || `radio-group-${ume}-${++dme}`, [e.name]), [n, r] = rE(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, F.useState)(n), [a, o] = (0, F.useState)(null), s = JT({
+var cme = Math.round(Math.random() * 1e10), lme = 0;
+function ume(e) {
+ let t = (0, F.useMemo)(() => e.name || `radio-group-${cme}-${++lme}`, [e.name]), [n, r] = aE(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, F.useState)(n), [a, o] = (0, F.useState)(null), s = XT({
...e,
value: n
}), c = (t) => {
@@ -40399,16 +40399,16 @@ function fme(e) {
};
}
// node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var pme = /*#__PURE__*/ (0, F.createContext)(null), mme = /*#__PURE__*/ (0, F.createContext)(null), Wz = /*#__PURE__*/ (0, F.createContext)(null), Gz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = LL(e, t, pme);
- let { validationBehavior: n } = IL(rR) || {}, r = e.validationBehavior ?? n ?? "native", i = fme({
+var dme = /*#__PURE__*/ (0, F.createContext)(null), fme = /*#__PURE__*/ (0, F.createContext)(null), Kz = /*#__PURE__*/ (0, F.createContext)(null), qz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = zL(e, t, dme);
+ let { validationBehavior: n } = RL(aR) || {}, r = e.validationBehavior ?? n ?? "native", i = ume({
...e,
validationBehavior: r
- }), [a, o] = RL(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = pce({
+ }), [a, o] = BL(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = dce({
...e,
label: o,
validationBehavior: r
- }, i), f = FL({
+ }, i), f = LL({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -40419,8 +40419,8 @@ var pme = /*#__PURE__*/ (0, F.createContext)(null), mme = /*#__PURE__*/ (0, F.cr
state: i
},
defaultClassName: "react-aria-RadioGroup"
- }), p = Gw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(VL.div, {
+ }), p = qw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(UL.div, {
...K(p, f, s),
ref: t,
slot: e.slot || void 0,
@@ -40429,39 +40429,39 @@ var pme = /*#__PURE__*/ (0, F.createContext)(null), mme = /*#__PURE__*/ (0, F.cr
"data-disabled": i.isDisabled || void 0,
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
- }, /*#__PURE__*/ F.createElement(PL, { values: [
- [Wz, i],
- [YL, {
+ }, /*#__PURE__*/ F.createElement(IL, { values: [
+ [Kz, i],
+ [ZL, {
...c,
ref: a,
elementType: "span"
}],
- [tR, { slots: {
+ [rR, { slots: {
description: l,
errorMessage: u
} }],
- [nR, d]
- ] }, /*#__PURE__*/ F.createElement(tz, null, f.children)));
-}), Kz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [iR, d]
+ ] }, /*#__PURE__*/ F.createElement(rz, null, f.children)));
+}), Jz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = LL(r, t, mme);
- let i = F.useContext(Wz), a = QC((0, F.useMemo)(() => UC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = fce({
- ...zL(e),
+ [e, t] = zL(r, t, fme);
+ let i = F.useContext(Kz), a = ew((0, F.useMemo)(() => GC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = uce({
+ ...VL(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ F.createElement(qz.Provider, { value: {
+ return /*#__PURE__*/ F.createElement(Yz.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ F.createElement(hme, {
+ } }, /*#__PURE__*/ F.createElement(pme, {
...e,
ref: t
}));
-}), qz = /*#__PURE__*/ (0, F.createContext)(null), hme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, F.useContext)(qz), l = F.useContext(Wz), { isFocused: u, isFocusVisible: d, focusProps: f } = jD(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = FD({
+}), Yz = /*#__PURE__*/ (0, F.createContext)(null), pme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, F.useContext)(Yz), l = F.useContext(Kz), { isFocused: u, isFocusVisible: d, focusProps: f } = ND(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = LD({
...e,
isDisabled: p
- }), g = FL({
+ }), g = LL({
...e,
defaultClassName: s,
values: {
@@ -40475,8 +40475,8 @@ var pme = /*#__PURE__*/ (0, F.createContext)(null), mme = /*#__PURE__*/ (0, F.cr
isInvalid: l.isInvalid,
isRequired: l.isRequired
}
- }), _ = Gw(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(VL.label, {
+ }), _ = qw(e, { global: !0 });
+ return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(UL.label, {
...K(_, n, m, g),
ref: t,
"data-selected": i || void 0,
@@ -40488,18 +40488,18 @@ var pme = /*#__PURE__*/ (0, F.createContext)(null), mme = /*#__PURE__*/ (0, F.cr
"data-readonly": l.isReadOnly || void 0,
"data-invalid": l.isInvalid || void 0,
"data-required": l.isRequired || void 0
- }, /*#__PURE__*/ F.createElement(pE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(hE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
...K(r, f),
ref: c
})), g.children);
});
// node_modules/react-stately/dist/private/select/useSelectState.mjs
-function gme(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = yz(e), [i, a] = (0, F.useState)(null), o = (0, F.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+function mme(e) {
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = xz(e), [i, a] = (0, F.useState)(null), o = (0, F.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
- ]), [s, c] = rE((0, F.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
+ ]), [s, c] = aE((0, F.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
e.value,
e.selectedKey,
t
@@ -40511,12 +40511,12 @@ function gme(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = pz({
+ }, d = hz({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, F.useMemo)(() => _me(l), [l]),
+ selectedKeys: (0, F.useMemo)(() => hme(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -40526,7 +40526,7 @@ function gme(e) {
n && r.close(), m.commitValidation();
}
}
- }), f = d.selectionManager.firstSelectedKey, p = (0, F.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = JT({
+ }), f = d.selectionManager.firstSelectedKey, p = (0, F.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = XT({
...e,
value: Array.isArray(l) && l.length === 0 ? null : l
}), [h, g] = (0, F.useState)(!1), [_] = (0, F.useState)(l);
@@ -40553,15 +40553,15 @@ function gme(e) {
setFocused: g
};
}
-function _me(e) {
+function hme(e) {
if (e !== void 0) return e === null ? [] : Array.isArray(e) ? e : [e];
}
// node_modules/react-aria-components/dist/private/Select.mjs
-function vme(e) {
+function gme(e) {
return e && e.__esModule ? e.default : e;
}
-var Jz = /*#__PURE__*/ (0, F.createContext)(null), Yz = /*#__PURE__*/ (0, F.createContext)(null), yme = /*#__PURE__*/ rw(function(e, t) {
- [e, t] = LL(e, t, Jz);
+var Xz = /*#__PURE__*/ (0, F.createContext)(null), Zz = /*#__PURE__*/ (0, F.createContext)(null), _me = /*#__PURE__*/ aw(function(e, t) {
+ [e, t] = zL(e, t, Xz);
let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, F.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
@@ -40576,24 +40576,24 @@ var Jz = /*#__PURE__*/ (0, F.createContext)(null), Yz = /*#__PURE__*/ (0, F.crea
i,
a
]);
- return /*#__PURE__*/ F.createElement(cw, { content: o }, (n) => /*#__PURE__*/ F.createElement(xme, {
+ return /*#__PURE__*/ F.createElement(uw, { content: o }, (n) => /*#__PURE__*/ F.createElement(yme, {
props: e,
collection: n,
selectRef: t
}));
-}), bme = [
- YL,
+}), vme = [
ZL,
- tR
+ $L,
+ rR
];
-function xme({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = IL(rR) || {}, i = e.validationBehavior ?? r ?? "native", a = gme({
+function yme({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = RL(aR) || {}, i = e.validationBehavior ?? r ?? "native", a = mme({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = jD({ within: !0 }), c = (0, F.useRef)(null), [l, u] = RL(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = qk({
- ...zL(e),
+ }), { isFocusVisible: o, focusProps: s } = ND({ within: !0 }), c = (0, F.useRef)(null), [l, u] = BL(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = fce({
+ ...VL(e),
label: u,
validationBehavior: i
}, a, c), y = (0, F.useMemo)(() => ({
@@ -40610,48 +40610,48 @@ function xme({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
v.isInvalid,
e.isRequired
- ]), b = FL({
+ ]), b = LL({
...e,
values: y,
defaultClassName: "react-aria-Select"
- }), x = Gw(e, { global: !0 });
+ }), x = qw(e, { global: !0 });
delete x.id;
let S = (0, F.useRef)(null);
- return /*#__PURE__*/ F.createElement(PL, { values: [
- [Jz, e],
- [Yz, a],
- [Xz, p],
- [YL, {
+ return /*#__PURE__*/ F.createElement(IL, { values: [
+ [Xz, e],
+ [Zz, a],
+ [Qz, p],
+ [ZL, {
...d,
ref: l,
elementType: "span"
}],
- [ZL, {
+ [$L, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [Lz, a],
- [Cz, {
+ [zz, a],
+ [Tz, {
trigger: "Select",
triggerRef: c,
scrollRef: S,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: bme
+ clearContexts: vme
}],
- [gz, {
+ [vz, {
...m,
ref: S
}],
- [_z, a],
- [tR, { slots: {
+ [yz, a],
+ [rR, { slots: {
description: h,
errorMessage: g
} }],
- [nR, v]
- ] }, /*#__PURE__*/ F.createElement(VL.div, {
+ [iR, v]
+ ] }, /*#__PURE__*/ F.createElement(UL.div, {
...K(x, b, s),
ref: t,
slot: e.slot || void 0,
@@ -40661,14 +40661,14 @@ function xme({ props: e, selectRef: t, collection: n }) {
"data-disabled": e.isDisabled || void 0,
"data-invalid": v.isInvalid || void 0,
"data-required": e.isRequired || void 0
- }, b.children, /*#__PURE__*/ F.createElement(hce, {
+ }, b.children, /*#__PURE__*/ F.createElement(mce, {
..._,
autoComplete: e.autoComplete
})));
}
-for (var Xz = /*#__PURE__*/ (0, F.createContext)(null), Sme = /*#__PURE__*/ rw(function(e, t) {
- [e, t] = LL(e, t, Xz);
- let n = (0, F.useContext)(Yz), { placeholder: r } = IL(Jz), i = n.selectedItems.map((e) => {
+for (var Qz = /*#__PURE__*/ (0, F.createContext)(null), bme = /*#__PURE__*/ aw(function(e, t) {
+ [e, t] = zL(e, t, Qz);
+ let n = (0, F.useContext)(Zz), { placeholder: r } = RL(Xz), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -40680,7 +40680,7 @@ for (var Xz = /*#__PURE__*/ (0, F.createContext)(null), Sme = /*#__PURE__*/ rw(f
selectionMode: "single",
selectionBehavior: "toggle"
})), t;
- }), a = Ese(), o = (0, F.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, F.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
+ }), a = wse(), o = (0, F.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, F.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
s,
a,
o
@@ -40695,7 +40695,7 @@ for (var Xz = /*#__PURE__*/ (0, F.createContext)(null), Sme = /*#__PURE__*/ rw(f
a,
o,
i
- ]), u = Uw(vme(YR), "react-aria-components"), d = FL({
+ ]), u = Gw(gme(ZR), "react-aria-components"), d = LL({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -40706,33 +40706,33 @@ for (var Xz = /*#__PURE__*/ (0, F.createContext)(null), Sme = /*#__PURE__*/ rw(f
isPlaceholder: n.selectedItems.length === 0,
state: n
}
- }), f = Gw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(VL.span, {
+ }), f = qw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(UL.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ F.createElement(tR.Provider, { value: void 0 }, d.children));
-}), Cme = /*#__PURE__*/ (0, F.createContext)(null), Zz = /*#__PURE__*/ (0, F.createContext)(null), wme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ }, /*#__PURE__*/ F.createElement(rR.Provider, { value: void 0 }, d.children));
+}), xme = /*#__PURE__*/ (0, F.createContext)(null), $z = /*#__PURE__*/ (0, F.createContext)(null), Sme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = LL(r, t, Cme);
- let i = QC((0, F.useMemo)(() => UC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = iE(e), o = _ce({
- ...zL(e),
+ [e, t] = zL(r, t, xme);
+ let i = ew((0, F.useMemo)(() => GC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = oE(e), o = gce({
+ ...VL(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ F.createElement(PL, { values: [[Zz, a], [Qz, {
+ return /*#__PURE__*/ F.createElement(IL, { values: [[$z, a], [eB, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ F.createElement(Tme, {
+ }]] }, /*#__PURE__*/ F.createElement(Cme, {
...e,
ref: t
}));
-}), Qz = /*#__PURE__*/ (0, F.createContext)(null), Tme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, F.useContext)(Qz), { isFocused: f, isFocusVisible: p, focusProps: m } = jD(), h = a || o, g = (0, F.useContext)(Zz), { hoverProps: _, isHovered: v } = FD({
+}), eB = /*#__PURE__*/ (0, F.createContext)(null), Cme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, F.useContext)(eB), { isFocused: f, isFocusVisible: p, focusProps: m } = ND(), h = a || o, g = (0, F.useContext)($z), { hoverProps: _, isHovered: v } = LD({
...e,
isDisabled: h
- }), y = FL({
+ }), y = LL({
...e,
defaultClassName: u,
values: {
@@ -40747,8 +40747,8 @@ for (var Xz = /*#__PURE__*/ (0, F.createContext)(null), Sme = /*#__PURE__*/ rw(f
isRequired: d || !1,
state: g
}
- }), b = Gw(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(VL.label, {
+ }), b = qw(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(UL.label, {
...K(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -40761,11 +40761,11 @@ for (var Xz = /*#__PURE__*/ (0, F.createContext)(null), Sme = /*#__PURE__*/ rw(f
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": d || void 0
- }, /*#__PURE__*/ F.createElement(pE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(hE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
...K(r, m),
ref: l
})), y.children);
-}), $z = 10, eB = 5, tB = class {
+}), tB = 10, nB = 5, rB = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@ -40775,7 +40775,7 @@ for (var Xz = /*#__PURE__*/ (0, F.createContext)(null), Sme = /*#__PURE__*/ rw(f
}
resolveDropTarget(e, t, n, r) {
let i = this.pointerTracking, a = n - i.lastY, o = t - i.lastX, s = i.yDirection, c = i.xDirection;
- if (Math.abs(a) > eB && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > $z && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
+ if (Math.abs(a) > nB && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > tB && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
let t = this.state.collection.getKeyBefore(e.key);
for (; t != null;) {
let e = this.state.collection.getItem(t);
@@ -40854,11 +40854,11 @@ for (var Xz = /*#__PURE__*/ (0, F.createContext)(null), Sme = /*#__PURE__*/ rw(f
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > eB && i) {
+ if (Math.abs(r - c.lastSwitchY) > nB && i) {
let t = c.preferredTargetIndex || 0;
i === "down" && t === 0 ? c.preferredTargetIndex = e.length - 1 : i === "up" && t === e.length - 1 && (c.preferredTargetIndex = 0), o.xDirection = null;
}
- if (l > $z && a) {
+ if (l > tB && a) {
let t = c.preferredTargetIndex || 0;
a === "left" ? this.direction === "ltr" ? t < e.length - 1 && (c.preferredTargetIndex = t + 1, c.lastSwitchX = n) : t > 0 && (c.preferredTargetIndex = t - 1, c.lastSwitchX = n) : a === "right" && (this.direction === "ltr" ? t > 0 && (c.preferredTargetIndex = t - 1, c.lastSwitchX = n) : t < e.length - 1 && (c.preferredTargetIndex = t + 1, c.lastSwitchX = n)), o.yDirection = null;
}
@@ -40873,7 +40873,7 @@ for (var Xz = /*#__PURE__*/ (0, F.createContext)(null), Sme = /*#__PURE__*/ rw(f
boundaryContext: null
};
}
-}, Eme = class {
+}, wme = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
let t = (r) => {
@@ -40943,8 +40943,8 @@ for (var Xz = /*#__PURE__*/ (0, F.createContext)(null), Sme = /*#__PURE__*/ rw(f
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, nB = "row-header-column-" + Math.random().toString(36).slice(2), rB = "row-header-column-" + Math.random().toString(36).slice(2); nB === rB;) rB = "row-header-column-" + Math.random().toString(36).slice(2);
-function iB(e, t) {
+}, iB = "row-header-column-" + Math.random().toString(36).slice(2), aB = "row-header-column-" + Math.random().toString(36).slice(2); iB === aB;) aB = "row-header-column-" + Math.random().toString(36).slice(2);
+function oB(e, t) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@ -41028,13 +41028,13 @@ function iB(e, t) {
textValue: ""
}));
}
-var Dme = class extends Eme {
+var Tme = class extends wme {
constructor(e, t, n) {
let r = /* @__PURE__ */ new Set(), i = null, a = [];
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: nB,
+ key: iB,
value: null,
textValue: "",
level: 0,
@@ -41049,7 +41049,7 @@ var Dme = class extends Eme {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: rB,
+ key: aB,
value: null,
textValue: "",
level: 0,
@@ -41076,7 +41076,7 @@ var Dme = class extends Eme {
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = iB(s, a);
+ let l = oB(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@ -41102,10 +41102,10 @@ var Dme = class extends Eme {
return this.keyMap.get(e)?.nextKey ?? null;
}
getFirstKey() {
- return gD(this.body.childNodes)?.key ?? null;
+ return vD(this.body.childNodes)?.key ?? null;
}
getLastKey() {
- return vD(this.body.childNodes)?.key ?? null;
+ return bD(this.body.childNodes)?.key ?? null;
}
getItem(e) {
return e === this.body.key ? this.body : this.keyMap.get(e) ?? null;
@@ -41136,15 +41136,15 @@ var Dme = class extends Eme {
}
};
// node_modules/react-stately/dist/private/table/TableUtils.mjs
-function Ome(e) {
+function Eme(e) {
return e != null && (!isNaN(e) || String(e).match(/^(\d+)(?=%$)/) !== null);
}
-function kme(e) {
+function Dme(e) {
if (!e || typeof e == "number") return 1;
let t = e.match(/^(.+)(?=fr$)/);
return t ? parseFloat(t[0]) : 1;
}
-function aB(e, t) {
+function sB(e, t) {
if (typeof e == "string") {
let n = e.match(/^(\d+)(?=%$)/);
if (!n) throw Error("Only percentages or numbers are supported for static column widths");
@@ -41152,19 +41152,19 @@ function aB(e, t) {
}
return e;
}
-function oB(e, t) {
- return e == null ? 2 ** 53 - 1 : aB(e, t);
+function cB(e, t) {
+ return e == null ? 2 ** 53 - 1 : sB(e, t);
}
-function sB(e, t) {
- return e == null ? 0 : aB(e, t);
+function lB(e, t) {
+ return e == null ? 0 : sB(e, t);
}
-function Ame(e, t, n, r, i) {
+function Ome(e, t, n, r, i) {
let a = e, o = Math.floor(e), s = e - o > 0;
e = o;
let c = !1, l = t.map((t, a) => {
let o = n.get(t.key) == null ? t.width ?? t.defaultWidth ?? r?.(a) ?? "1fr" : n.get(t.key) ?? "1fr", s = !1, l = 0, u = 0, d = 0;
- Ome(o) ? (l = aB(o, e), s = !0) : (u = kme(o), u <= 0 && (s = !0));
- let f = sB(t.minWidth ?? i?.(a) ?? 0, e), p = oB(t.maxWidth, e), m = Math.max(f, Math.min(l, p));
+ Eme(o) ? (l = sB(o, e), s = !0) : (u = Dme(o), u <= 0 && (s = !0));
+ let f = lB(t.minWidth ?? i?.(a) ?? 0, e), p = cB(t.maxWidth, e), m = Math.max(f, Math.min(l, p));
return s ? d = m : l > m && (s = !0, d = m), s || (c = !0), {
frozen: s,
baseSize: l,
@@ -41198,14 +41198,14 @@ function Ame(e, t, n, r, i) {
i === 0 || Math.sign(i) === Math.sign(e.violation) ? e.frozen = !0 : e.frozen || (c = !0);
});
}
- let u = jme(l);
+ let u = kme(l);
if (s && u.length > 0) {
let e = a.toString().split(".")[1], t = u[u.length - 1].toString();
u[u.length - 1] = Number(t + "." + e);
}
return u;
}
-function jme(e) {
+function kme(e) {
let t = 0, n = 0, r = [];
return e.forEach(function(e) {
let i = e.targetMainSize, a = Math.round(i + t) - n;
@@ -41213,7 +41213,7 @@ function jme(e) {
}), r;
}
// node_modules/react-stately/dist/private/table/TableColumnLayout.mjs
-var Mme = class {
+var Ame = class {
constructor(e) {
this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), this.getDefaultWidth = e?.getDefaultWidth ?? (() => "1fr"), this.getDefaultMinWidth = e?.getDefaultMinWidth ?? (() => 75);
}
@@ -41242,18 +41242,18 @@ var Mme = class {
}), o;
}
buildColumnWidths(e, t, n) {
- return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), Ame(e, t.columns.map((e) => ({
+ return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), Ome(e, t.columns.map((e) => ({
...e.props,
key: e.key
})), n, (e) => this.getDefaultWidth(t.columns[e]), (e) => this.getDefaultMinWidth(t.columns[e])).forEach((n, r) => {
let i = t.columns[r].key, a = t.columns[r];
- this.columnWidths.set(i, n), this.columnMinWidths.set(i, sB(a.props.minWidth ?? this.getDefaultMinWidth(a), e)), this.columnMaxWidths.set(i, oB(a.props.maxWidth, e));
+ this.columnWidths.set(i, n), this.columnMinWidths.set(i, lB(a.props.minWidth ?? this.getDefaultMinWidth(a), e)), this.columnMaxWidths.set(i, cB(a.props.maxWidth, e));
}), this.columnWidths;
}
};
// node_modules/react-stately/dist/private/table/useTableColumnResizeState.mjs
-function Nme(e, t) {
- let { getDefaultWidth: n, getDefaultMinWidth: r, tableWidth: i = 0 } = e, [a, o] = (0, F.useState)(null), s = (0, F.useMemo)(() => new Mme({
+function jme(e, t) {
+ let { getDefaultWidth: n, getDefaultMinWidth: r, tableWidth: i = 0 } = e, [a, o] = (0, F.useState)(null), s = (0, F.useMemo)(() => new Ame({
getDefaultWidth: n,
getDefaultMinWidth: r
}), [n, r]), [c, l] = (0, F.useMemo)(() => s.splitColumnsIntoControlledAndUncontrolled(t.collection.columns), [t.collection.columns, s]), [u, d] = (0, F.useState)(() => s.getInitialUncontrolledWidths(l)), [f, p] = (0, F.useState)(t.collection.columns);
@@ -41304,19 +41304,19 @@ function Nme(e, t) {
]);
}
// node_modules/react-stately/dist/private/grid/useGridState.mjs
-function Pme(e) {
- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || sz(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
+function Mme(e) {
+ let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || lz(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
r.setFocusedKey = (e, r) => {
if (n === "cell" && e != null) {
let n = t.getItem(e);
if (n?.type === "item") {
- let i = hD(n, t);
- e = r === "last" ? vD(i)?.key ?? null : gD(i)?.key ?? null;
+ let i = _D(n, t);
+ e = r === "last" ? bD(i)?.key ?? null : vD(i)?.key ?? null;
}
}
a(e, r);
};
- let o = (0, F.useMemo)(() => new lz(t, r), [t, r]), s = (0, F.useRef)(null);
+ let o = (0, F.useMemo)(() => new dz(t, r), [t, r]), s = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
if (r.focusedKey != null && s.current && !t.getItem(r.focusedKey)) {
let e = s.current.getItem(r.focusedKey), n = e?.parentKey != null && (e.type === "cell" || e.type === "rowheader" || e.type === "column") ? s.current.getItem(e.parentKey) : e;
@@ -41336,7 +41336,7 @@ function Pme(e) {
}
}
if (u) {
- let i = u.hasChildNodes ? [...hD(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
+ let i = u.hasChildNodes ? [..._D(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
r.setFocusedKey(a);
} else r.setFocusedKey(null);
}
@@ -41354,11 +41354,11 @@ function Pme(e) {
};
}
// node_modules/react-stately/dist/private/table/useTableState.mjs
-var Fme = {
+var Nme = {
ascending: "descending",
descending: "ascending"
};
-function Ime(e) {
+function Pme(e) {
let [t, n] = (0, F.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, F.useMemo)(() => ({
showSelectionCheckboxes: i && r !== "none",
showDragButtons: a,
@@ -41369,11 +41369,11 @@ function Ime(e) {
i,
r,
a
- ]), c = fz(e, (0, F.useCallback)((e) => new Dme(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = Pme({
+ ]), c = mz(e, (0, F.useCallback)((e) => new Tme(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = Mme({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
- }), [d, f] = rE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ }), [d, f] = aE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
return {
collection: c,
disabledKeys: l,
@@ -41385,7 +41385,7 @@ function Ime(e) {
sort(t, n) {
e.onSortChange?.({
column: t,
- direction: n ?? (e.sortDescriptor?.column === t ? Fme[e.sortDescriptor.direction] : "ascending")
+ direction: n ?? (e.sortDescriptor?.column === t ? Nme[e.sortDescriptor.direction] : "ascending")
});
},
expandedKeys: d,
@@ -41398,7 +41398,7 @@ function Ime(e) {
treeColumn: o
};
}
-function Lme(e, t) {
+function Fme(e, t) {
let n = (0, F.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
return {
...e,
@@ -41407,10 +41407,10 @@ function Lme(e, t) {
};
}
// node_modules/react-aria-components/dist/private/Table.mjs
-function Rme(e) {
+function Ime(e) {
return e && e.__esModule ? e.default : e;
}
-var zme = class extends yS {
+var Lme = class extends xS {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -41425,7 +41425,7 @@ var zme = class extends yS {
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new gB(-2);
+ return new vB(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@ -41451,7 +41451,7 @@ var zme = class extends yS {
for (let t of this.getChildren(e.key)) n(t);
};
for (let e of this.getChildren(this.head.key)) n(e);
- if (this.headerRows = iB(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw Error("A table must have at least one Column with the isRowHeader prop set to true");
+ if (this.headerRows = oB(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw Error("A table must have at least one Column with the isRowHeader prop set to true");
}
get columnCount() {
return this.columns.length;
@@ -41532,28 +41532,28 @@ var zme = class extends yS {
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new fB(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
+ super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new mB(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, cB = /*#__PURE__*/ (0, F.createContext)(null), Bme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let n = QC(t), r = (0, F.useRef)(null), i = (0, F.useRef)(null), [a, o] = (0, F.useState)(0);
- VS(() => {
+}, uB = /*#__PURE__*/ (0, F.createContext)(null), Rme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let n = ew(t), r = (0, F.useRef)(null), i = (0, F.useRef)(null), [a, o] = (0, F.useState)(0);
+ US(() => {
let e = r.current;
- for (; e && e !== n.current && !PT(e);) e = e.parentElement;
+ for (; e && e !== n.current && !IT(e);) e = e.parentElement;
i.current = e;
- }, [n]), NO({
+ }, [n]), FO({
ref: i,
box: "border-box",
onResize() {
o(i.current?.clientWidth ?? 0);
}
- }), VS(() => {
+ }), US(() => {
o(i.current?.clientWidth ?? 0);
}, []);
let s = (0, F.useMemo)(() => ({
tableRef: r,
scrollRef: i,
tableWidth: a,
- useTableColumnResizeState: Nme,
+ useTableColumnResizeState: jme,
onResizeStart: e.onResizeStart,
onResize: e.onResize,
onResizeEnd: e.onResizeEnd
@@ -41564,17 +41564,17 @@ var zme = class extends yS {
e.onResize,
e.onResizeEnd
]);
- return /*#__PURE__*/ F.createElement(VL.div, {
+ return /*#__PURE__*/ F.createElement(UL.div, {
render: e.render,
- ...Gw(e, { global: !0 }),
+ ...qw(e, { global: !0 }),
ref: n,
className: e.className || "react-aria-ResizableTableContainer",
style: e.style,
onScroll: e.onScroll
- }, /*#__PURE__*/ F.createElement(cB.Provider, { value: s }, e.children));
-}), Vme = /*#__PURE__*/ (0, F.createContext)(null), lB = /*#__PURE__*/ (0, F.createContext)(null), uB = /*#__PURE__*/ (0, F.createContext)(null), Hme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = LL(e, t, Vme);
- let n = sz(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, F.useMemo)(() => ({
+ }, /*#__PURE__*/ F.createElement(uB.Provider, { value: s }, e.children));
+}), zme = /*#__PURE__*/ (0, F.createContext)(null), dB = /*#__PURE__*/ (0, F.createContext)(null), fB = /*#__PURE__*/ (0, F.createContext)(null), Bme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = zL(e, t, zme);
+ let n = lz(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, F.useMemo)(() => ({
selectionBehavior: i === "none" ? null : r,
selectionMode: i,
disallowEmptySelection: a,
@@ -41584,26 +41584,26 @@ var zme = class extends yS {
i,
a,
o
- ]), c = /*#__PURE__*/ F.createElement(Gme.Provider, { value: s }, /*#__PURE__*/ F.createElement(hw, e));
- return /*#__PURE__*/ F.createElement(cw, {
+ ]), c = /*#__PURE__*/ F.createElement(Ume.Provider, { value: s }, /*#__PURE__*/ F.createElement(_w, e));
+ return /*#__PURE__*/ F.createElement(uw, {
content: c,
- createCollection: () => new zme()
- }, (r) => /*#__PURE__*/ F.createElement(Wme, {
+ createCollection: () => new Lme()
+ }, (r) => /*#__PURE__*/ F.createElement(Hme, {
props: e,
forwardedRef: t,
selectionState: n,
collection: r
}));
-}), Ume = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(qL);
- return n ? /*#__PURE__*/ F.createElement(VL.div, {
+}), Vme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(YL);
+ return n ? /*#__PURE__*/ F.createElement(UL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(VL.table, {
+ }) : /*#__PURE__*/ F.createElement(UL.table, {
...e,
ref: t
});
-}), dB = {
+}), pB = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -41613,26 +41613,26 @@ var zme = class extends yS {
rtl: "ArrowRight"
}
};
-function Wme({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
- [e, t] = LL(e, t, HL);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, F.useContext)(cB);
- t = QC((0, F.useMemo)(() => UC(t, c?.tableRef), [t, c?.tableRef]));
- let [l, u] = rE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+function Hme({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
+ [e, t] = zL(e, t, WL);
+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, F.useContext)(uB);
+ t = ew((0, F.useMemo)(() => GC(t, c?.tableRef), [t, c?.tableRef]));
+ let [l, u] = aE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
r = (0, F.useMemo)(() => r.withExpandedKeys(l), [r, l]);
- let d = Ime({
+ let d = Pme({
...s,
collection: r,
children: void 0,
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = Lme(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, F.useContext)(qL), { dragAndDropHooks: _ } = e, { gridProps: v } = Sce({
+ }), f = Fme(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, F.useContext)(YL), { dragAndDropHooks: _ } = e, { gridProps: v } = bce({
...s,
layoutDelegate: m,
isVirtualized: p
}, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;
(0, F.useRef)(b), (0, F.useRef)(x), (0, F.useEffect)(() => {}, [b, x]);
- let S, C, w, T = !1, E = null, D = (0, F.useRef)(null), { direction: O } = Lw(), [k] = (0, F.useState)(() => new tB());
+ let S, C, w, T = !1, E = null, D = (0, F.useRef)(null), { direction: O } = zw(), [k] = (0, F.useState)(() => new rB());
if (b && _) {
S = _.useDraggableCollectionState({
collection: f.collection,
@@ -41647,7 +41647,7 @@ function Wme({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
collection: f.collection,
selectionManager: y
});
- let e = new EE({
+ let e = new OE({
collection: f.collection,
disabledKeys: y.disabledKeys,
disabledBehavior: y.disabledBehavior,
@@ -41667,12 +41667,12 @@ function Wme({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
let t = C?.target;
if (t && t.type === "item" && t.dropPosition === "on") {
let n = d.collection.getItem(t.key);
- (e.key === dB.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === dB.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
+ (e.key === pB.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === pB.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
}
}
}, C, t), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: A, isFocused: j, isFocusVisible: M } = jD(), ee = FL({
+ let { focusProps: A, isFocused: j, isFocusVisible: M } = ND(), ee = LL({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
@@ -41688,19 +41688,19 @@ function Wme({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
tableLayout: "fixed",
width: "min-content"
}));
- let ne = Gw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(PL, { values: [
- [lB, f],
- [uB, P],
- [XR, {
+ let ne = qw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(IL, { values: [
+ [dB, f],
+ [fB, P],
+ [QR, {
dragAndDropHooks: _,
dragState: S,
dropState: C
}],
- [ZR, { render: the }],
- [HL, null],
- [UL, null]
- ] }, /*#__PURE__*/ F.createElement(hT, null, /*#__PURE__*/ F.createElement(Ume, {
+ [$R, { render: $me }],
+ [WL, null],
+ [GL, null]
+ ] }, /*#__PURE__*/ F.createElement(_T, null, /*#__PURE__*/ F.createElement(Vme, {
...K(ne, ee, v, A, w?.collectionProps),
style: te,
ref: t,
@@ -41710,55 +41710,55 @@ function Wme({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
"data-drop-target": T || void 0,
"data-focused": j || void 0,
"data-focus-visible": M || void 0
- }, /*#__PURE__*/ F.createElement(tz, null, /*#__PURE__*/ F.createElement(g, {
+ }, /*#__PURE__*/ F.createElement(rz, null, /*#__PURE__*/ F.createElement(g, {
collection: f.collection,
scrollRef: c?.scrollRef ?? t,
- persistedKeys: $R(y, _, C)
+ persistedKeys: tz(y, _, C)
})))), E);
}
-var Gme = /*#__PURE__*/ (0, F.createContext)(null), fB = class extends hS {
+var Ume = /*#__PURE__*/ (0, F.createContext)(null), mB = class extends _S {
static {
this.type = "tableheader";
}
-}, Kme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(qL);
- return n ? /*#__PURE__*/ F.createElement(VL.div, {
+}, Wme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(YL);
+ return n ? /*#__PURE__*/ F.createElement(UL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(VL.thead, {
+ }) : /*#__PURE__*/ F.createElement(UL.thead, {
...e,
ref: t
});
-}), pB = /*#__PURE__*/ fw(fB, (e, t) => {
- let n = (0, F.useContext)(lB).collection, r = CS({
+}), hB = /*#__PURE__*/ mw(mB, (e, t) => {
+ let n = (0, F.useContext)(dB).collection, r = TS({
items: n.headerRows,
children: (0, F.useCallback)((e) => {
switch (e.type) {
- case "headerrow": return /*#__PURE__*/ F.createElement(Jme, { item: e });
+ case "headerrow": return /*#__PURE__*/ F.createElement(Kme, { item: e });
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = BA(), { hoverProps: a, isHovered: o } = FD({
+ }), { rowGroupProps: i } = HA(), { hoverProps: a, isHovered: o } = LD({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), s = FL({
+ }), s = LL({
...e,
children: void 0,
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
- return /*#__PURE__*/ F.createElement(Kme, {
- ...K(Gw(e, { global: !0 }), i, a),
+ return /*#__PURE__*/ F.createElement(Wme, {
+ ...K(qw(e, { global: !0 }), i, a),
...s,
ref: t,
"data-hovered": o || void 0
}, r);
-}, (e) => /*#__PURE__*/ F.createElement(hw, {
+}, (e) => /*#__PURE__*/ F.createElement(_w, {
dependencies: e.dependencies,
items: e.columns
-}, e.children)), qme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(qL);
+}, e.children)), Gme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(YL);
return n ? /*#__PURE__*/ F.createElement("div", {
...e,
ref: t
@@ -41767,41 +41767,41 @@ var Gme = /*#__PURE__*/ (0, F.createContext)(null), fB = class extends hS {
ref: t
});
});
-function Jme({ item: e }) {
- let t = (0, F.useRef)(null), n = (0, F.useContext)(lB), { isVirtualized: r, CollectionBranch: i } = (0, F.useContext)(qL), { rowProps: a } = Oce({
+function Kme({ item: e }) {
+ let t = (0, F.useRef)(null), n = (0, F.useContext)(dB), { isVirtualized: r, CollectionBranch: i } = (0, F.useContext)(YL), { rowProps: a } = Ece({
node: e,
isVirtualized: r
- }, n, t), { checkboxProps: o } = Fce(n);
- return /*#__PURE__*/ F.createElement(qme, {
+ }, n, t), { checkboxProps: o } = Nce(n);
+ return /*#__PURE__*/ F.createElement(Gme, {
...a,
ref: t
- }, /*#__PURE__*/ F.createElement(PL, { values: [[iR, { slots: { selection: o } }], [aR, { slots: { selection: o } }]] }, /*#__PURE__*/ F.createElement(i, {
+ }, /*#__PURE__*/ F.createElement(IL, { values: [[oR, { slots: { selection: o } }], [sR, { slots: { selection: o } }]] }, /*#__PURE__*/ F.createElement(i, {
collection: n.collection,
parent: e
})));
}
-var Yme = class extends hS {
+var qme = class extends _S {
static {
this.type = "column";
}
-}, Xme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(qL);
- return n ? /*#__PURE__*/ F.createElement(VL.div, {
+}, Jme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(YL);
+ return n ? /*#__PURE__*/ F.createElement(UL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(VL.th, {
+ }) : /*#__PURE__*/ F.createElement(UL.th, {
...e,
ref: t
});
-}), mB = /*#__PURE__*/ dw(Yme, (e, t, n) => {
- let r = QC(t), i = (0, F.useContext)(lB), { isVirtualized: a } = (0, F.useContext)(qL), { columnHeaderProps: o, isPressed: s } = Tce({
+}), gB = /*#__PURE__*/ pw(qme, (e, t, n) => {
+ let r = ew(t), i = (0, F.useContext)(dB), { isVirtualized: a } = (0, F.useContext)(YL), { columnHeaderProps: o, isPressed: s } = Cce({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = jD(), d = (0, F.useContext)(uB), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = ND(), d = (0, F.useContext)(fB), f = !1;
d && (f = d.resizingColumn === n.key);
- let { hoverProps: p, isHovered: m } = FD({ isDisabled: !e.allowsSorting }), h = FL({
+ let { hoverProps: p, isHovered: m } = LD({ isDisabled: !e.allowsSorting }), h = LL({
...e,
id: void 0,
children: n.rendered,
@@ -41827,8 +41827,8 @@ var Yme = class extends hS {
...g,
width: d.getColumnWidth(n.key)
});
- let _ = Gw(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ F.createElement(Xme, {
+ let _ = qw(e, { global: !0 });
+ return delete _.id, /*#__PURE__*/ F.createElement(Jme, {
...K(_, o, u, p),
...h,
style: g,
@@ -41840,29 +41840,29 @@ var Yme = class extends hS {
"data-resizing": f || void 0,
"data-allows-sorting": n.props.allowsSorting || void 0,
"data-sort-direction": i.sortDescriptor?.column === n.key ? i.sortDescriptor.direction : void 0
- }, /*#__PURE__*/ F.createElement(PL, { values: [[hB, {
+ }, /*#__PURE__*/ F.createElement(IL, { values: [[_B, {
column: n,
triggerRef: r
- }], [qL, GL]] }, h.children));
-}), hB = /*#__PURE__*/ (0, F.createContext)(null), Zme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let n = (0, F.useContext)(uB);
+ }], [YL, qL]] }, h.children));
+}), _B = /*#__PURE__*/ (0, F.createContext)(null), Yme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let n = (0, F.useContext)(fB);
if (!n) throw Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
- let r = Uw(Rme(YR), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: o } = (0, F.useContext)(cB), { column: s, triggerRef: c } = (0, F.useContext)(hB), l = (0, F.useRef)(null), { resizerProps: u, inputProps: d, isResizing: f, isMouseResizing: p } = Dce({
+ let r = Gw(Ime(ZR), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: o } = (0, F.useContext)(uB), { column: s, triggerRef: c } = (0, F.useContext)(_B), l = (0, F.useRef)(null), { resizerProps: u, inputProps: d, isResizing: f, isMouseResizing: p } = Tce({
column: s,
"aria-label": e["aria-label"] || r.format("tableResizer"),
onResizeStart: i,
onResize: a,
onResizeEnd: o,
triggerRef: c
- }, n, l), { focusProps: m, isFocused: h, isFocusVisible: g } = jD(), { hoverProps: _, isHovered: v } = FD(e), y = n.getColumnMinWidth(s.key) >= n.getColumnWidth(s.key), b = n.getColumnMaxWidth(s.key) <= n.getColumnWidth(s.key), { direction: x } = Lw(), S = "both";
+ }, n, l), { focusProps: m, isFocused: h, isFocusVisible: g } = ND(), { hoverProps: _, isHovered: v } = LD(e), y = n.getColumnMinWidth(s.key) >= n.getColumnWidth(s.key), b = n.getColumnMaxWidth(s.key) <= n.getColumnWidth(s.key), { direction: x } = zw(), S = "both";
S = y ? x === "rtl" ? "right" : "left" : b ? x === "rtl" ? "left" : "right" : "both";
- let C = QC(t), [w, T] = (0, F.useState)("");
+ let C = ew(t), [w, T] = (0, F.useState)("");
(0, F.useEffect)(() => {
if (!C.current) return;
let e = window.getComputedStyle(C.current);
T(e.cursor);
}, [C, S]);
- let E = FL({
+ let E = LL({
...e,
defaultClassName: "react-aria-ColumnResizer",
values: {
@@ -41872,8 +41872,8 @@ var Yme = class extends hS {
isHovered: v,
resizableDirection: S
}
- }), D = Gw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(VL.div, {
+ }), D = qw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(UL.div, {
ref: C,
role: "presentation",
...K(D, E, u, _),
@@ -41896,24 +41896,24 @@ var Yme = class extends hS {
},
"data-testid": "cursor-overlay"
}), document.body));
-}), gB = class extends gS {
+}), vB = class extends vS {
static {
this.type = "tablebody";
}
-}, Qme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(qL);
- return n ? /*#__PURE__*/ F.createElement(VL.div, {
+}, Xme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(YL);
+ return n ? /*#__PURE__*/ F.createElement(UL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(VL.tbody, {
+ }) : /*#__PURE__*/ F.createElement(UL.tbody, {
...e,
ref: t
});
-}), _B = /*#__PURE__*/ fw(gB, (e, t, n) => {
- let r = (0, F.useContext)(lB), { isVirtualized: i } = (0, F.useContext)(qL), a = r.collection, { CollectionBranch: o } = (0, F.useContext)(qL), { dragAndDropHooks: s, dropState: c } = (0, F.useContext)(XR), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
+}), yB = /*#__PURE__*/ mw(vB, (e, t, n) => {
+ let r = (0, F.useContext)(dB), { isVirtualized: i } = (0, F.useContext)(YL), a = r.collection, { CollectionBranch: o } = (0, F.useContext)(YL), { dragAndDropHooks: s, dropState: c } = (0, F.useContext)(QR), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
- }, p = FL({
+ }, p = LL({
...e,
id: void 0,
children: void 0,
@@ -41922,33 +41922,33 @@ var Yme = class extends hS {
}), m, h = a.columnCount;
if (d && e.renderEmptyState && r) {
let t = {}, n = {}, r = {};
- i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ F.createElement(yB, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ F.createElement(xB, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ F.createElement(xB, {
+ }, /*#__PURE__*/ F.createElement(CB, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = BA(), _ = Gw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(Qme, {
+ let { rowGroupProps: g } = HA(), _ = qw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(Xme, {
...K(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ F.createElement(ohe, null), /*#__PURE__*/ F.createElement(o, {
+ }, l && /*#__PURE__*/ F.createElement(ihe, null), /*#__PURE__*/ F.createElement(o, {
collection: a,
parent: n,
- renderDropIndicator: QR(s, c)
+ renderDropIndicator: ez(s, c)
}), m);
});
-(class extends gS {
+(class extends vS {
static {
this.type = "tablefooter";
}
});
-var vB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), $me = class extends hS {
+var bB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Zme = class extends _S {
static {
this.type = "item";
}
@@ -41960,31 +41960,31 @@ var vB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), $m
}
return null;
}
-}, yB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(qL);
- return n ? /*#__PURE__*/ F.createElement(VL.div, {
+}, xB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(YL);
+ return n ? /*#__PURE__*/ F.createElement(UL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(VL.tr, {
+ }) : /*#__PURE__*/ F.createElement(UL.tr, {
...e,
ref: t
});
-}), bB = /*#__PURE__*/ fw($me, (e, t, n) => {
- let r = QC(t), i = (0, F.useContext)(lB), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(XR), { isVirtualized: c, CollectionBranch: l } = (0, F.useContext)(qL), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = jce({
+}), SB = /*#__PURE__*/ mw(Zme, (e, t, n) => {
+ let r = ew(t), i = (0, F.useContext)(dB), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(QR), { isVirtualized: c, CollectionBranch: l } = (0, F.useContext)(YL), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = kce({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
- }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = jD(), { isFocusVisible: _, focusProps: v } = jD({ within: !0 }), { hoverProps: y, isHovered: b } = FD({
+ }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = ND(), { isFocusVisible: _, focusProps: v } = ND({ within: !0 }), { hoverProps: y, isHovered: b } = LD({
isDisabled: !p.allowsSelection && !p.hasAction && !u,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { checkboxProps: x } = Pce({ key: n.key }, i), S;
+ }), { checkboxProps: x } = Mce({ key: n.key }, i), S;
o && a && (S = a.useDraggableItem({
key: n.key,
hasDragButton: !0
}, o));
- let C, w = (0, F.useRef)(null), { visuallyHiddenProps: T } = fE();
+ let C, w = (0, F.useRef)(null), { visuallyHiddenProps: T } = mE();
s && a && (C = a.useDropIndicator({ target: {
type: "item",
key: n.key,
@@ -41994,7 +41994,7 @@ var vB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), $m
(0, F.useEffect)(() => {
o && E.current;
}, []);
- let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = FL({
+ let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = LL({
...k,
id: void 0,
defaultClassName: "react-aria-Row",
@@ -42015,11 +42015,11 @@ var vB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), $m
isExpanded: j,
level: n.level + 1
}
- }), ee = Gw(e, { global: !0 });
- return delete ee.id, delete ee.onClick, /*#__PURE__*/ F.createElement(F.Fragment, null, C && !C.isHidden && /*#__PURE__*/ F.createElement(yB, {
+ }), ee = qw(e, { global: !0 });
+ return delete ee.id, delete ee.onClick, /*#__PURE__*/ F.createElement(F.Fragment, null, C && !C.isHidden && /*#__PURE__*/ F.createElement(xB, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ F.createElement(xB, {
+ }, /*#__PURE__*/ F.createElement(CB, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
@@ -42028,7 +42028,7 @@ var vB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), $m
...T,
...C.dropIndicatorProps,
ref: w
- }))), /*#__PURE__*/ F.createElement(yB, {
+ }))), /*#__PURE__*/ F.createElement(xB, {
...K(ee, M, d, g, y, S?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
@@ -42044,17 +42044,17 @@ var vB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), $m
"data-expanded": j || void 0,
"data-has-child-items": A || void 0,
"data-level": n.level + 1
- }, /*#__PURE__*/ F.createElement(PL, { values: [
- [iR, { slots: {
- [NL]: {},
+ }, /*#__PURE__*/ F.createElement(IL, { values: [
+ [oR, { slots: {
+ [FL]: {},
selection: x
} }],
- [aR, { slots: {
- [NL]: {},
+ [sR, { slots: {
+ [FL]: {},
selection: x
} }],
- [ZL, { slots: {
- [NL]: {},
+ [$L, { slots: {
+ [FL]: {},
chevron: f,
drag: {
...S?.dragButtonProps,
@@ -42062,8 +42062,8 @@ var vB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), $m
style: { pointerEvents: "none" }
}
} }],
- [nz, { isSelected: p.isSelected }],
- [vB, { isFocusVisibleWithinRow: _ }]
+ [iz, { isSelected: p.isSelected }],
+ [bB, { isFocusVisibleWithinRow: _ }]
] }, /*#__PURE__*/ F.createElement(l, {
collection: i.collection,
parent: n
@@ -42071,34 +42071,34 @@ var vB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), $m
}, (e) => {
if (e.id == null && typeof e.children == "function") throw Error("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");
let t = [e.value].concat(e.dependencies);
- return /*#__PURE__*/ F.createElement(hw, {
+ return /*#__PURE__*/ F.createElement(_w, {
dependencies: t,
items: e.columns,
idScope: e.id
}, e.children);
-}), ehe = class extends hS {
+}), Qme = class extends _S {
static {
this.type = "cell";
}
-}, xB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(qL);
- return n ? /*#__PURE__*/ F.createElement(VL.div, {
+}, CB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(YL);
+ return n ? /*#__PURE__*/ F.createElement(UL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(VL.td, {
+ }) : /*#__PURE__*/ F.createElement(UL.td, {
...e,
ref: t
});
-}), SB = /*#__PURE__*/ dw(ehe, (e, t, n) => {
- let r = QC(t), i = (0, F.useContext)(lB), { dragState: a } = (0, F.useContext)(XR), { isVirtualized: o } = (0, F.useContext)(qL);
+}), wB = /*#__PURE__*/ pw(Qme, (e, t, n) => {
+ let r = ew(t), i = (0, F.useContext)(dB), { dragState: a } = (0, F.useContext)(QR), { isVirtualized: o } = (0, F.useContext)(YL);
n.column = i.collection.columns[n.index];
- let { gridCellProps: s, isPressed: c } = Cce({
+ let { gridCellProps: s, isPressed: c } = xce({
node: n,
shouldSelectOnPressUp: !!a,
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = jD(), { hoverProps: f, isHovered: p } = FD({}), { isFocusVisibleWithinRow: m } = (0, F.useContext)(vB), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = FL({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = ND(), { hoverProps: f, isHovered: p } = LD({}), { isFocusVisibleWithinRow: m } = (0, F.useContext)(bB), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = LL({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -42117,8 +42117,8 @@ var vB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), $m
level: _.level + 1,
isTreeColumn: n.column.key === i.treeColumn
}
- }), S = Gw(e, { global: !0 });
- return delete S.id, /*#__PURE__*/ F.createElement(xB, {
+ }), S = qw(e, { global: !0 });
+ return delete S.id, /*#__PURE__*/ F.createElement(CB, {
...K(S, x, s, d, f),
ref: r,
"data-focused": l || void 0,
@@ -42132,14 +42132,14 @@ var vB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), $m
"data-level": _.level + 1,
"data-tree-column": n.column.key === i.treeColumn || void 0,
"data-disabled": b || void 0
- }, /*#__PURE__*/ F.createElement(qL.Provider, { value: GL }, x.children));
+ }, /*#__PURE__*/ F.createElement(YL.Provider, { value: qL }, x.children));
});
-function the(e, t) {
- t = QC(t);
- let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(XR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+function $me(e, t) {
+ t = ew(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(QR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
if (o) return null;
let c = r && e.target.type === "item" ? (r.collection.getItem(e.target.key)?.level || 0) + 1 : 1;
- return /*#__PURE__*/ F.createElement(ahe, {
+ return /*#__PURE__*/ F.createElement(rhe, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -42148,40 +42148,40 @@ function the(e, t) {
ref: t
});
}
-var nhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(qL);
- return n ? /*#__PURE__*/ F.createElement(VL.div, {
+var ehe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(YL);
+ return n ? /*#__PURE__*/ F.createElement(UL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(VL.tr, {
+ }) : /*#__PURE__*/ F.createElement(UL.tr, {
...e,
ref: t
});
-}), rhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(qL);
- return n ? /*#__PURE__*/ F.createElement(VL.div, {
+}), the = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(YL);
+ return n ? /*#__PURE__*/ F.createElement(UL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(VL.td, {
+ }) : /*#__PURE__*/ F.createElement(UL.td, {
...e,
ref: t
});
});
-function ihe(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, F.useContext)(lB), { visuallyHiddenProps: c } = fE(), l = FL({
+function nhe(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, F.useContext)(dB), { visuallyHiddenProps: c } = mE(), l = LL({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ F.createElement(nhe, {
- ...Gw(e, { global: !0 }),
+ return /*#__PURE__*/ F.createElement(ehe, {
+ ...qw(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ F.createElement(rhe, {
+ }, /*#__PURE__*/ F.createElement(the, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
@@ -42192,14 +42192,14 @@ function ihe(e, t) {
ref: i
}), l.children));
}
-var ahe = /*#__PURE__*/ (0, F.forwardRef)(ihe);
-function ohe() {
- let e = (0, F.useContext)(lB), { dragAndDropHooks: t, dropState: n } = (0, F.useContext)(XR), r = (0, F.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = fE();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ F.createElement(yB, {
+var rhe = /*#__PURE__*/ (0, F.forwardRef)(nhe);
+function ihe() {
+ let e = (0, F.useContext)(dB), { dragAndDropHooks: t, dropState: n } = (0, F.useContext)(QR), r = (0, F.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = mE();
+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ F.createElement(xB, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ F.createElement(xB, {
+ }, /*#__PURE__*/ F.createElement(CB, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
@@ -42210,9 +42210,9 @@ function ohe() {
ref: r
})));
}
-dw(_S, function(e, t, n) {
- let r = (0, F.useContext)(lB), { isVirtualized: i } = (0, F.useContext)(qL), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, F.useRef)(null);
- hz((0, F.useMemo)(() => ({
+pw(yS, function(e, t, n) {
+ let r = (0, F.useContext)(dB), { isVirtualized: i } = (0, F.useContext)(YL), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, F.useRef)(null);
+ _z((0, F.useMemo)(() => ({
onLoadMore: o,
collection: r?.collection,
sentinelRef: u,
@@ -42222,7 +42222,7 @@ dw(_S, function(e, t, n) {
s,
r?.collection
]), u);
- let d = FL({
+ let d = LL({
...c,
id: void 0,
children: n.rendered,
@@ -42230,10 +42230,10 @@ dw(_S, function(e, t, n) {
defaultStyle: { "--table-row-level": n.level + 1 },
values: void 0
}), f = {}, p = {}, m = {};
- return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(yB, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(xB, {
style: { height: 0 },
- inert: iz(!0)
- }, /*#__PURE__*/ F.createElement(xB, { style: {
+ inert: oz(!0)
+ }, /*#__PURE__*/ F.createElement(CB, { style: {
padding: 0,
border: 0
} }, /*#__PURE__*/ F.createElement("div", {
@@ -42244,22 +42244,22 @@ dw(_S, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ F.createElement(yB, {
- ...K(Gw(e, { global: !0 }), f),
+ }))), a && d.children && /*#__PURE__*/ F.createElement(xB, {
+ ...K(qw(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ F.createElement(xB, {
+ }, /*#__PURE__*/ F.createElement(CB, {
role: "rowheader",
...p,
style: m
}, d.children)));
});
// node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
-function she(e) {
- let [t, n] = rE(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, F.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = pz({
+function ahe(e) {
+ let [t, n] = aE(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, F.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = hz({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -42281,24 +42281,24 @@ function she(e) {
};
}
// node_modules/react-stately/dist/private/tabs/useTabListState.mjs
-function che(e) {
- let t = she({
+function ohe(e) {
+ let t = ahe({
...e,
onSelectionChange: e.onSelectionChange ? (t) => {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? CB(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ defaultSelectedKey: e.defaultSelectedKey ?? TB(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
}), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, F.useRef)(i);
return (0, F.useEffect)(() => {
let o = i;
- e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = CB(r, t.disabledKeys), o != null && n.setSelectedKeys([o])), (o != null && n.focusedKey == null || !n.isFocused && o !== a.current) && n.setFocusedKey(o), a.current = o;
+ e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = TB(r, t.disabledKeys), o != null && n.setSelectedKeys([o])), (o != null && n.focusedKey == null || !n.isFocused && o !== a.current) && n.setFocusedKey(o), a.current = o;
}), {
...t,
isDisabled: e.isDisabled || !1
};
}
-function CB(e, t) {
+function TB(e, t) {
let n = null;
if (e) {
for (n = e.getFirstKey(); n != null && (t.has(n) || e.getItem(n)?.props?.isDisabled) && n !== e.getLastKey();) n = e.getKeyAfter(n);
@@ -42307,24 +42307,24 @@ function CB(e, t) {
return n;
}
// node_modules/react-aria-components/dist/private/Tabs.mjs
-var wB = /*#__PURE__*/ (0, F.createContext)(null), TB = /*#__PURE__*/ (0, F.createContext)(null), lhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = LL(e, t, wB);
+var EB = /*#__PURE__*/ (0, F.createContext)(null), DB = /*#__PURE__*/ (0, F.createContext)(null), she = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = zL(e, t, EB);
let { children: n, orientation: r = "horizontal" } = e;
return n = (0, F.useMemo)(() => typeof n == "function" ? n({
orientation: r,
defaultChildren: null
- }) : n, [n, r]), /*#__PURE__*/ F.createElement(cw, { content: n }, (n) => /*#__PURE__*/ F.createElement(uhe, {
+ }) : n, [n, r]), /*#__PURE__*/ F.createElement(uw, { content: n }, (n) => /*#__PURE__*/ F.createElement(che, {
props: e,
collection: n,
tabsRef: t
}));
});
-function uhe({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = che({
+function che({ props: e, tabsRef: t, collection: n }) {
+ let { orientation: r = "horizontal" } = e, i = ohe({
...e,
collection: n,
children: void 0
- }), { focusProps: a, isFocused: o, isFocusVisible: s } = jD({ within: !0 }), c = (0, F.useMemo)(() => ({
+ }), { focusProps: a, isFocused: o, isFocusVisible: s } = ND({ within: !0 }), c = (0, F.useMemo)(() => ({
orientation: r,
isFocusWithin: o,
isFocusVisible: s
@@ -42332,12 +42332,12 @@ function uhe({ props: e, tabsRef: t, collection: n }) {
r,
o,
s
- ]), l = FL({
+ ]), l = LL({
...e,
defaultClassName: "react-aria-Tabs",
values: c
- }), u = Gw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(VL.div, {
+ }), u = qw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(UL.div, {
...K(u, l, a),
ref: t,
slot: e.slot || void 0,
@@ -42345,20 +42345,20 @@ function uhe({ props: e, tabsRef: t, collection: n }) {
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ F.createElement(PL, { values: [[wB, e], [TB, i]] }, l.children));
+ }, /*#__PURE__*/ F.createElement(IL, { values: [[EB, e], [DB, i]] }, l.children));
}
-var EB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return (0, F.useContext)(TB) ? /*#__PURE__*/ F.createElement(dhe, {
+var OB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ return (0, F.useContext)(DB) ? /*#__PURE__*/ F.createElement(lhe, {
props: e,
forwardedRef: t
- }) : /*#__PURE__*/ F.createElement(hw, e);
+ }) : /*#__PURE__*/ F.createElement(_w, e);
});
-function dhe({ props: e, forwardedRef: t }) {
- let n = (0, F.useContext)(TB), { CollectionRoot: r } = (0, F.useContext)(qL), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = IL(wB), o = QC(t), { tabListProps: s } = Rce({
+function lhe({ props: e, forwardedRef: t }) {
+ let n = (0, F.useContext)(DB), { CollectionRoot: r } = (0, F.useContext)(YL), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = RL(EB), o = ew(t), { tabListProps: s } = Ice({
...e,
orientation: i,
keyboardActivation: a
- }, n, o), c = FL({
+ }, n, o), c = LL({
...e,
children: null,
defaultClassName: "react-aria-TabList",
@@ -42366,30 +42366,30 @@ function dhe({ props: e, forwardedRef: t }) {
orientation: i,
state: n
}
- }), l = Gw(e, { global: !0 });
- return delete l.id, /*#__PURE__*/ F.createElement(VL.div, {
+ }), l = qw(e, { global: !0 });
+ return delete l.id, /*#__PURE__*/ F.createElement(UL.div, {
...K(l, c, s),
ref: o,
"data-orientation": i || void 0
- }, /*#__PURE__*/ F.createElement(tz, null, /*#__PURE__*/ F.createElement(r, {
+ }, /*#__PURE__*/ F.createElement(rz, null, /*#__PURE__*/ F.createElement(r, {
collection: n.collection,
- persistedKeys: JL(n.selectionManager.focusedKey)
+ persistedKeys: XL(n.selectionManager.focusedKey)
})));
}
-var fhe = /*#__PURE__*/ dw(class extends hS {
+var uhe = /*#__PURE__*/ pw(class extends _S {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, F.useContext)(TB), i = QC(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Ice({
+ let r = (0, F.useContext)(DB), i = ew(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Pce({
key: n.key,
...e
- }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = jD(), { hoverProps: f, isHovered: p } = FD({
+ }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = ND(), { hoverProps: f, isHovered: p } = LD({
isDisabled: s,
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
onHoverChange: e.onHoverChange
- }), m = FL({
+ }), m = LL({
...e,
id: void 0,
children: n.rendered,
@@ -42402,7 +42402,7 @@ var fhe = /*#__PURE__*/ dw(class extends hS {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? VL.a : VL.div, g = Gw(e, { global: !0 });
+ }), h = n.props.href ? UL.a : UL.div, g = qw(e, { global: !0 });
return delete g.id, delete g.onClick, /*#__PURE__*/ F.createElement(h, {
...K(g, m, a, l, f),
ref: i,
@@ -42412,54 +42412,54 @@ var fhe = /*#__PURE__*/ dw(class extends hS {
"data-focus-visible": d || void 0,
"data-pressed": c || void 0,
"data-hovered": p || void 0
- }, /*#__PURE__*/ F.createElement(nz.Provider, { value: { isSelected: o } }, m.children));
-}), phe = /*#__PURE__*/ rw(function(e, t) {
- let n = (0, F.useContext)(TB), r = QC(t), i = n.selectedKey === e.id, [a, o] = (0, F.useState)(n.selectedKey == null ? null : i);
+ }, /*#__PURE__*/ F.createElement(iz.Provider, { value: { isSelected: o } }, m.children));
+}), dhe = /*#__PURE__*/ aw(function(e, t) {
+ let n = (0, F.useContext)(DB), r = ew(t), i = n.selectedKey === e.id, [a, o] = (0, F.useState)(n.selectedKey == null ? null : i);
a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);
- let s = xz(r, i);
- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ F.createElement(mhe, {
+ let s = Cz(r, i);
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ F.createElement(fhe, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
isExiting: s
});
});
-function mhe(e) {
- let t = (0, F.useContext)(TB), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = zce(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = jD(), d = t.selectedKey === e.id, f = bz(r) && !i, p = FL({
+function fhe(e) {
+ let t = (0, F.useContext)(DB), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Lce(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = ND(), d = t.selectedKey === e.id, f = Sz(r) && !i, p = LL({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
isFocused: l,
isFocusVisible: u,
- isInert: iz(!d),
+ isInert: oz(!d),
isEntering: f,
isExiting: a,
state: t
}
- }), m = Gw(o, { global: !0 });
+ }), m = qw(o, { global: !0 });
delete m.id;
let h = d ? K(m, s, c, p) : K(m, p);
- return /*#__PURE__*/ F.createElement(VL.div, {
+ return /*#__PURE__*/ F.createElement(UL.div, {
...h,
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
- inert: iz(!d || e.inert),
+ inert: oz(!d || e.inert),
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ F.createElement(PL, { values: [[wB, null], [TB, null]] }, /*#__PURE__*/ F.createElement(qL.Provider, { value: GL }, p.children)));
+ }, /*#__PURE__*/ F.createElement(IL, { values: [[EB, null], [DB, null]] }, /*#__PURE__*/ F.createElement(YL.Provider, { value: qL }, p.children)));
}
// node_modules/react-aria-components/dist/private/TextArea.mjs
-var DB = /*#__PURE__*/ (0, F.createContext)({}), hhe = (e) => {
+var kB = /*#__PURE__*/ (0, F.createContext)({}), phe = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, ghe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = LL(e, t, DB);
- let { hoverProps: n, isHovered: r } = FD(e), { isFocused: i, isFocusVisible: a, focusProps: o } = jD({
+}, mhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = zL(e, t, kB);
+ let { hoverProps: n, isHovered: r } = LD(e), { isFocused: i, isFocusVisible: a, focusProps: o } = ND({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = FL({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = LL({
...e,
values: {
isHovered: r,
@@ -42470,8 +42470,8 @@ var DB = /*#__PURE__*/ (0, F.createContext)({}), hhe = (e) => {
},
defaultClassName: "react-aria-TextArea"
});
- return /*#__PURE__*/ F.createElement(VL.textarea, {
- ...K(hhe(e), o, n),
+ return /*#__PURE__*/ F.createElement(UL.textarea, {
+ ...K(phe(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -42480,18 +42480,18 @@ var DB = /*#__PURE__*/ (0, F.createContext)({}), hhe = (e) => {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), _he = /*#__PURE__*/ (0, F.createContext)(null), vhe = /*#__PURE__*/ rw(function(e, t) {
- [e, t] = LL(e, t, _he);
- let { validationBehavior: n } = IL(rR) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useRef)(null);
- [e, i] = LL(e, i, UL);
- let [a, o] = RL(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, F.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = cse({
- ...zL(e),
+}), hhe = /*#__PURE__*/ (0, F.createContext)(null), ghe = /*#__PURE__*/ aw(function(e, t) {
+ [e, t] = zL(e, t, hhe);
+ let { validationBehavior: n } = RL(aR) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useRef)(null);
+ [e, i] = zL(e, i, GL);
+ let [a, o] = BL(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, F.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = ose({
+ ...VL(e),
inputElementType: s,
label: o,
validationBehavior: r
}, i), m = (0, F.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
- }, [i]), h = FL({
+ }, [i]), h = LL({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -42500,8 +42500,8 @@ var DB = /*#__PURE__*/ (0, F.createContext)({}), hhe = (e) => {
isRequired: e.isRequired || !1
},
defaultClassName: "react-aria-TextField"
- }), g = Gw(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ F.createElement(VL.div, {
+ }), g = qw(e, { global: !0 });
+ return delete g.id, /*#__PURE__*/ F.createElement(UL.div, {
...g,
...h,
ref: t,
@@ -42510,31 +42510,31 @@ var DB = /*#__PURE__*/ (0, F.createContext)({}), hhe = (e) => {
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ F.createElement(PL, { values: [
- [YL, {
+ }, /*#__PURE__*/ F.createElement(IL, { values: [
+ [ZL, {
...l,
ref: a
}],
- [lR, {
+ [dR, {
...u,
ref: m
}],
- [DB, {
+ [kB, {
...u,
ref: m
}],
- [sR, {
+ [lR, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [tR, { slots: {
+ [rR, { slots: {
description: d,
errorMessage: f
} }],
- [nR, p]
+ [iR, p]
] }, h.children));
-}), yhe = class e extends yS {
+}), _he = class e extends xS {
withExpandedKeys(t, n) {
let r = this.clone();
return r.expandedKeys = n, e.cloneAncestorSections(n, t, r), e.cloneAncestorSections(t, n, r), r.frozen = this.frozen, r;
@@ -42606,16 +42606,16 @@ var DB = /*#__PURE__*/ (0, F.createContext)({}), hhe = (e) => {
constructor(...e) {
super(...e), this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, bhe = /*#__PURE__*/ (0, F.createContext)(null), OB = /*#__PURE__*/ (0, F.createContext)(null), xhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return [e, t] = LL(e, t, bhe), /*#__PURE__*/ F.createElement(cw, {
- content: /*#__PURE__*/ F.createElement(hw, e),
- createCollection: () => new yhe()
- }, (n) => /*#__PURE__*/ F.createElement(She, {
+}, vhe = /*#__PURE__*/ (0, F.createContext)(null), AB = /*#__PURE__*/ (0, F.createContext)(null), yhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ return [e, t] = zL(e, t, vhe), /*#__PURE__*/ F.createElement(uw, {
+ content: /*#__PURE__*/ F.createElement(_w, e),
+ createCollection: () => new _he()
+ }, (n) => /*#__PURE__*/ F.createElement(bhe, {
props: e,
collection: n,
treeRef: t
}));
-}), kB = {
+}), jB = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -42625,17 +42625,17 @@ var DB = /*#__PURE__*/ (0, F.createContext)({}), hhe = (e) => {
rtl: "ArrowRight"
}
};
-function She({ props: e, collection: t, treeRef: n }) {
- let { dragAndDropHooks: r } = e, { direction: i } = Lw(), a = wD({
+function bhe({ props: e, collection: t, treeRef: n }) {
+ let { dragAndDropHooks: r } = e, { direction: i } = zw(), a = ED({
usage: "search",
sensitivity: "base"
}), o = !!r?.useDraggableCollectionState, s = !!r?.useDroppableCollectionState, c = (0, F.useRef)(o), l = (0, F.useRef)(s);
(0, F.useEffect)(() => {
c.current !== o && console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."), l.current !== s && console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.");
}, [o, s]);
- let { selectionMode: u = "none", expandedKeys: d, defaultExpandedKeys: f, onExpandedChange: p, disabledBehavior: m = "all" } = e, { CollectionRoot: h, isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v } = (0, F.useContext)(qL), [y, b] = rE(d ? new Set(d) : void 0, f ? new Set(f) : /* @__PURE__ */ new Set(), p), [x, S] = (0, F.useState)(t), [C, w] = (0, F.useState)(y), [T, E] = (0, F.useState)(() => t.withExpandedKeys(C, y));
- khe(C, y) && t === x || (E(t.withExpandedKeys(C, y)), S(t), w(y));
- let D = Dz({
+ let { selectionMode: u = "none", expandedKeys: d, defaultExpandedKeys: f, onExpandedChange: p, disabledBehavior: m = "all" } = e, { CollectionRoot: h, isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v } = (0, F.useContext)(YL), [y, b] = aE(d ? new Set(d) : void 0, f ? new Set(f) : /* @__PURE__ */ new Set(), p), [x, S] = (0, F.useState)(t), [C, w] = (0, F.useState)(y), [T, E] = (0, F.useState)(() => t.withExpandedKeys(C, y));
+ Dhe(C, y) && t === x || (E(t.withExpandedKeys(C, y)), S(t), w(y));
+ let D = kz({
...e,
selectionMode: u,
expandedKeys: y,
@@ -42643,7 +42643,7 @@ function She({ props: e, collection: t, treeRef: n }) {
collection: T,
children: void 0,
disabledBehavior: m
- }), { gridProps: O } = Bce({
+ }), { gridProps: O } = Rce({
...e,
isVirtualized: g,
layoutDelegate: _
@@ -42657,7 +42657,7 @@ function She({ props: e, collection: t, treeRef: n }) {
let e = r.DragPreview;
ee = r.renderDragPreview ? /*#__PURE__*/ F.createElement(e, { ref: N }, r.renderDragPreview) : null;
}
- let [te] = (0, F.useState)(() => new tB());
+ let [te] = (0, F.useState)(() => new rB());
if (s && r) {
A = r.useDroppableCollectionState({
collection: D.collection,
@@ -42665,7 +42665,7 @@ function She({ props: e, collection: t, treeRef: n }) {
});
let e = r.dropTargetDelegate || v || new r.ListDropTargetDelegate(D.collection, n, { direction: i });
te.setup(e, D, i);
- let t = new EE({
+ let t = new OE({
collection: D.collection,
collator: a,
ref: n,
@@ -42687,12 +42687,12 @@ function She({ props: e, collection: t, treeRef: n }) {
let t = A?.target;
if (t && t.type === "item" && t.dropPosition === "on") {
let n = D.collection.getItem(t.key);
- (e.key === kB.expand[i] && n?.hasChildNodes && !D.expandedKeys.has(t.key) || e.key === kB.collapse[i] && n?.hasChildNodes && D.expandedKeys.has(t.key)) && D.toggleKey(t.key);
+ (e.key === jB.expand[i] && n?.hasChildNodes && !D.expandedKeys.has(t.key) || e.key === jB.collapse[i] && n?.hasChildNodes && D.expandedKeys.has(t.key)) && D.toggleKey(t.key);
}
}
}, A, n), M = A.isDropTarget({ type: "root" });
}
- let P = !(!o || k?.isDisabled), { focusProps: ne, isFocused: re, isFocusVisible: I } = jD(), ie = {
+ let P = !(!o || k?.isDisabled), { focusProps: ne, isFocused: re, isFocusVisible: I } = ND(), ie = {
isEmpty: D.collection.size === 0,
isFocused: re,
isFocusVisible: I,
@@ -42700,7 +42700,7 @@ function She({ props: e, collection: t, treeRef: n }) {
selectionMode: D.selectionManager.selectionMode,
allowsDragging: !!P,
state: D
- }, ae = FL({
+ }, ae = LL({
...e,
children: void 0,
defaultClassName: "react-aria-Tree",
@@ -42717,8 +42717,8 @@ function She({ props: e, collection: t, treeRef: n }) {
style: { display: "contents" }
}, r));
}
- let se = Gw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(hT, null, /*#__PURE__*/ F.createElement(VL.div, {
+ let se = qw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(_T, null, /*#__PURE__*/ F.createElement(UL.div, {
...K(se, ae, O, ne, j?.collectionProps),
ref: n,
slot: e.slot || void 0,
@@ -42728,54 +42728,54 @@ function She({ props: e, collection: t, treeRef: n }) {
"data-focus-visible": I || void 0,
"data-selection-mode": D.selectionManager.selectionMode === "none" ? void 0 : D.selectionManager.selectionMode,
"data-allows-dragging": !!P || void 0
- }, /*#__PURE__*/ F.createElement(PL, { values: [
- [OB, D],
- [XR, {
+ }, /*#__PURE__*/ F.createElement(IL, { values: [
+ [AB, D],
+ [QR, {
dragAndDropHooks: r,
dragState: k,
dropState: A
}],
- [ZR, { render: The }]
- ] }, s && /*#__PURE__*/ F.createElement(Ohe, null), /*#__PURE__*/ F.createElement(tz, null, /*#__PURE__*/ F.createElement(h, {
+ [$R, { render: Che }]
+ ] }, s && /*#__PURE__*/ F.createElement(Ehe, null), /*#__PURE__*/ F.createElement(rz, null, /*#__PURE__*/ F.createElement(h, {
collection: D.collection,
- persistedKeys: $R(D.selectionManager, r, A),
+ persistedKeys: tz(D.selectionManager, r, A),
scrollRef: n,
- renderDropIndicator: QR(r, A)
+ renderDropIndicator: ez(r, A)
}))), oe)), ee);
}
-var Che = /*#__PURE__*/ dw(class extends hS {
+var xhe = /*#__PURE__*/ pw(class extends _S {
static {
this.type = "content";
}
}, function(e) {
- let t = (0, F.useContext)(AB), n = FL({
+ let t = (0, F.useContext)(MB), n = LL({
children: e.children,
values: t
});
- return /*#__PURE__*/ F.createElement(qL.Provider, { value: GL }, n.children);
-}), AB = /*#__PURE__*/ (0, F.createContext)(null), whe = /*#__PURE__*/ fw(class extends hS {
+ return /*#__PURE__*/ F.createElement(YL.Provider, { value: qL }, n.children);
+}), MB = /*#__PURE__*/ (0, F.createContext)(null), She = /*#__PURE__*/ mw(class extends _S {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, F.useContext)(OB);
- t = QC(t);
- let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, F.useContext)(XR), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = wj({
+ let r = (0, F.useContext)(AB);
+ t = ew(t);
+ let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, F.useContext)(QR), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = Ej({
node: n,
shouldSelectOnPressUp: !!a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, r, t), p = c["aria-expanded"] === !0, m = e.hasChildItems || [...r.collection.getChildren(n.key)].length > 1, h = c["aria-level"] || 1, { hoverProps: g, isHovered: _ } = FD({
+ }, r, t), p = c["aria-expanded"] === !0, m = e.hasChildItems || [...r.collection.getChildren(n.key)].length > 1, h = c["aria-level"] || 1, { hoverProps: g, isHovered: _ } = LD({
isDisabled: !f.allowsSelection && !f.hasAction && !s,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { isFocusVisible: v, focusProps: y } = jD(), { isFocusVisible: b, focusProps: x } = jD({ within: !0 }), { checkboxProps: S } = Lse({ key: n.key }, r), C = null;
+ }), { isFocusVisible: v, focusProps: y } = ND(), { isFocusVisible: b, focusProps: x } = ND({ within: !0 }), { checkboxProps: S } = Fse({ key: n.key }, r), C = null;
a && i && (C = i.useDraggableItem({
key: n.key,
hasDragButton: !0
}, a));
- let w = null, T = (0, F.useRef)(null), E = (0, F.useRef)(null), D = (0, F.useRef)(null), { visuallyHiddenProps: O } = fE();
+ let w = null, T = (0, F.useRef)(null), E = (0, F.useRef)(null), D = (0, F.useRef)(null), { visuallyHiddenProps: O } = mE();
o && i && (w = i.useDropIndicator({
target: {
type: "item",
@@ -42814,7 +42814,7 @@ var Che = /*#__PURE__*/ dw(class extends hS {
A,
M,
j
- ]), N = FL({
+ ]), N = LL({
...e,
id: void 0,
children: n.rendered,
@@ -42831,7 +42831,7 @@ var Che = /*#__PURE__*/ dw(class extends hS {
(0, F.useEffect)(() => {
a && te.current;
}, []);
- let P = CS({
+ let P = TS({
items: r.collection.getChildren(n.key),
children: (e) => {
switch (e.type) {
@@ -42841,7 +42841,7 @@ var Che = /*#__PURE__*/ dw(class extends hS {
default: throw Error("Unsupported element type in TreeRow: " + e.type);
}
}
- }), ne = VC(), re = Gw(e, { global: !0 });
+ }), ne = UC(), re = qw(e, { global: !0 });
return delete re.id, delete re.onClick, /*#__PURE__*/ F.createElement(F.Fragment, null, w && !w.isHidden && /*#__PURE__*/ F.createElement("div", {
role: "row",
"aria-level": c["aria-level"],
@@ -42864,7 +42864,7 @@ var Che = /*#__PURE__*/ dw(class extends hS {
"aria-labelledby": `${ne} ${c.id}`,
tabIndex: -1,
ref: D
- }))), /*#__PURE__*/ F.createElement(VL.div, {
+ }))), /*#__PURE__*/ F.createElement(UL.div, {
...K(re, c, y, g, x, C?.dragProps),
...N,
ref: t,
@@ -42884,17 +42884,17 @@ var Che = /*#__PURE__*/ dw(class extends hS {
}, /*#__PURE__*/ F.createElement("div", {
...l,
style: { display: "contents" }
- }, /*#__PURE__*/ F.createElement(PL, { values: [
- [iR, { slots: {
- [NL]: {},
+ }, /*#__PURE__*/ F.createElement(IL, { values: [
+ [oR, { slots: {
+ [FL]: {},
selection: S
} }],
- [aR, { slots: {
- [NL]: {},
+ [sR, { slots: {
+ [FL]: {},
selection: S
} }],
- [ZL, { slots: {
- [NL]: {},
+ [$L, { slots: {
+ [FL]: {},
chevron: {
...u,
ref: T
@@ -42905,13 +42905,13 @@ var Che = /*#__PURE__*/ dw(class extends hS {
style: { pointerEvents: "none" }
}
} }],
- [AB, { ...ee }],
- [nz, { isSelected: f.isSelected }]
+ [MB, { ...ee }],
+ [iz, { isSelected: f.isSelected }]
] }, P))));
});
-dw(_S, function(e, t, n) {
- let { isVirtualized: r } = (0, F.useContext)(qL), i = (0, F.useContext)(OB), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, F.useRef)(null);
- hz((0, F.useMemo)(() => ({
+pw(yS, function(e, t, n) {
+ let { isVirtualized: r } = (0, F.useContext)(YL), i = (0, F.useContext)(AB), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, F.useRef)(null);
+ _z((0, F.useMemo)(() => ({
onLoadMore: o,
collection: i?.collection,
sentinelRef: l,
@@ -42920,11 +42920,11 @@ dw(_S, function(e, t, n) {
o,
s,
i?.collection
- ]), l), t = QC(t);
- let { rowProps: u, gridCellProps: d } = wj({ node: n }, i, t), f = u["aria-level"] || 1, p = {
+ ]), l), t = ew(t);
+ let { rowProps: u, gridCellProps: d } = Ej({ node: n }, i, t), f = u["aria-level"] || 1, p = {
role: "row",
"aria-level": u["aria-level"]
- }, m = FL({
+ }, m = LL({
...c,
id: void 0,
children: n.rendered,
@@ -42937,7 +42937,7 @@ dw(_S, function(e, t, n) {
width: 0,
height: 0
},
- inert: iz(!0)
+ inert: oz(!0)
}, /*#__PURE__*/ F.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: l,
@@ -42946,9 +42946,9 @@ dw(_S, function(e, t, n) {
height: 1,
width: 1
}
- })), a && m.children && /*#__PURE__*/ F.createElement(VL.div, {
+ })), a && m.children && /*#__PURE__*/ F.createElement(UL.div, {
ref: t,
- ...K(Gw(e), p),
+ ...K(qw(e), p),
...m,
"data-level": f
}, /*#__PURE__*/ F.createElement("div", {
@@ -42956,12 +42956,12 @@ dw(_S, function(e, t, n) {
style: h
}, m.children)));
});
-function The(e, t) {
- t = QC(t);
- let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(XR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+function Che(e, t) {
+ t = ew(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(QR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
if (o) return null;
let c = r && e.target.type === "item" ? (r.collection.getItem(e.target.key)?.level || 0) + 1 : 1;
- return /*#__PURE__*/ F.createElement(Dhe, {
+ return /*#__PURE__*/ F.createElement(The, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -42970,8 +42970,8 @@ function The(e, t) {
level: c
});
}
-function Ehe(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = fE(), c = FL({
+function whe(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = mE(), c = LL({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: {
@@ -42980,7 +42980,7 @@ function Ehe(e, t) {
},
values: { isDropTarget: r }
});
- return /*#__PURE__*/ F.createElement(VL.div, {
+ return /*#__PURE__*/ F.createElement(UL.div, {
...c,
role: "row",
"aria-level": a,
@@ -42993,9 +42993,9 @@ function Ehe(e, t) {
ref: i
}), c.children));
}
-var Dhe = /*#__PURE__*/ (0, F.forwardRef)(Ehe);
-function Ohe() {
- let { dragAndDropHooks: e, dropState: t } = (0, F.useContext)(XR), n = (0, F.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = fE();
+var The = /*#__PURE__*/ (0, F.forwardRef)(whe);
+function Ehe() {
+ let { dragAndDropHooks: e, dropState: t } = (0, F.useContext)(QR), n = (0, F.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = mE();
return !i && r["aria-hidden"] ? null : /*#__PURE__*/ F.createElement("div", {
role: "row",
"aria-hidden": r["aria-hidden"],
@@ -43007,13 +43007,13 @@ function Ohe() {
ref: n
})));
}
-function khe(e, t) {
+function Dhe(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
// node_modules/@remixicon/react/index.mjs
-var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+var Ohe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43021,7 +43021,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43029,7 +43029,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), jB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), NB = ({ 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,
@@ -43037,7 +43037,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), MB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), PB = ({ 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,
@@ -43045,7 +43045,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), NB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), FB = ({ 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,
@@ -43053,7 +43053,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), Mhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43061,7 +43061,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), Nhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43069,7 +43069,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), PB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), IB = ({ 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,
@@ -43077,7 +43077,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 12H5V21H3V12ZM19 8H21V21H19V8ZM11 2H13V21H11V2Z" })), FB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 12H5V21H3V12ZM19 8H21V21H19V8ZM11 2H13V21H11V2Z" })), LB = ({ 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,
@@ -43085,7 +43085,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5 2H19C19.5523 2 20 2.44772 20 3V22.1433C20 22.4194 19.7761 22.6434 19.5 22.6434C19.4061 22.6434 19.314 22.6168 19.2344 22.5669L12 18.0313L4.76559 22.5669C4.53163 22.7136 4.22306 22.6429 4.07637 22.4089C4.02647 22.3293 4 22.2373 4 22.1433V3C4 2.44772 4.44772 2 5 2ZM18 4H6V19.4324L12 15.6707L18 19.4324V4Z" })), Phe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M5 2H19C19.5523 2 20 2.44772 20 3V22.1433C20 22.4194 19.7761 22.6434 19.5 22.6434C19.4061 22.6434 19.314 22.6168 19.2344 22.5669L12 18.0313L4.76559 22.5669C4.53163 22.7136 4.22306 22.6429 4.07637 22.4089C4.02647 22.3293 4 22.2373 4 22.1433V3C4 2.44772 4.44772 2 5 2ZM18 4H6V19.4324L12 15.6707L18 19.4324V4Z" })), Mhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43093,7 +43093,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M21 19H23V21H1V19H3V4C3 3.44772 3.44772 3 4 3H14C14.5523 3 15 3.44772 15 4V19H19V11H17V9H20C20.5523 9 21 9.44772 21 10V19ZM5 5V19H13V5H5ZM7 11H11V13H7V11ZM7 7H11V9H7V7Z" })), Fhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M21 19H23V21H1V19H3V4C3 3.44772 3.44772 3 4 3H14C14.5523 3 15 3.44772 15 4V19H19V11H17V9H20C20.5523 9 21 9.44772 21 10V19ZM5 5V19H13V5H5ZM7 11H11V13H7V11ZM7 7H11V9H7V7Z" })), Nhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43101,7 +43101,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z" })), Ihe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z" })), Phe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43109,7 +43109,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M7.29117 20.8242L2 22L3.17581 16.7088C2.42544 15.3056 2 13.7025 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C10.2975 22 8.6944 21.5746 7.29117 20.8242ZM7.58075 18.711L8.23428 19.0605C9.38248 19.6745 10.6655 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 13.3345 4.32549 14.6175 4.93949 15.7657L5.28896 16.4192L4.63416 19.3658L7.58075 18.711Z" })), Lhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M7.29117 20.8242L2 22L3.17581 16.7088C2.42544 15.3056 2 13.7025 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C10.2975 22 8.6944 21.5746 7.29117 20.8242ZM7.58075 18.711L8.23428 19.0605C9.38248 19.6745 10.6655 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 13.3345 4.32549 14.6175 4.93949 15.7657L5.28896 16.4192L4.63416 19.3658L7.58075 18.711Z" })), Fhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43117,7 +43117,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), Rhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), Ihe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43125,7 +43125,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z" })), zhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z" })), Lhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43133,7 +43133,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z" })), IB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z" })), RB = ({ 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,
@@ -43141,7 +43141,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), LB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), zB = ({ 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,
@@ -43149,7 +43149,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), Bhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), Rhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43157,7 +43157,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 2C15.866 2 19 5.13401 19 9C19 9.11351 18.9973 9.22639 18.992 9.33857C21.3265 10.16 23 12.3846 23 15C23 18.3137 20.3137 21 17 21H7C3.68629 21 1 18.3137 1 15C1 12.3846 2.67346 10.16 5.00804 9.33857C5.0027 9.22639 5 9.11351 5 9C5 5.13401 8.13401 2 12 2ZM12 4C9.23858 4 7 6.23858 7 9C7 9.08147 7.00193 9.16263 7.00578 9.24344L7.07662 10.7309L5.67183 11.2252C4.0844 11.7837 3 13.2889 3 15C3 17.2091 4.79086 19 7 19H17C19.2091 19 21 17.2091 21 15C21 12.79 19.21 11 17 11C15.233 11 13.7337 12.1457 13.2042 13.7347L11.3064 13.1021C12.1005 10.7185 14.35 9 17 9C17 6.23858 14.7614 4 12 4Z" })), RB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 2C15.866 2 19 5.13401 19 9C19 9.11351 18.9973 9.22639 18.992 9.33857C21.3265 10.16 23 12.3846 23 15C23 18.3137 20.3137 21 17 21H7C3.68629 21 1 18.3137 1 15C1 12.3846 2.67346 10.16 5.00804 9.33857C5.0027 9.22639 5 9.11351 5 9C5 5.13401 8.13401 2 12 2ZM12 4C9.23858 4 7 6.23858 7 9C7 9.08147 7.00193 9.16263 7.00578 9.24344L7.07662 10.7309L5.67183 11.2252C4.0844 11.7837 3 13.2889 3 15C3 17.2091 4.79086 19 7 19H17C19.2091 19 21 17.2091 21 15C21 12.79 19.21 11 17 11C15.233 11 13.7337 12.1457 13.2042 13.7347L11.3064 13.1021C12.1005 10.7185 14.35 9 17 9C17 6.23858 14.7614 4 12 4Z" })), BB = ({ 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,
@@ -43165,7 +43165,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM16.5 7.5L14 14L7.5 16.5L10 10L16.5 7.5ZM12 13C12.5523 13 13 12.5523 13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13Z" })), Vhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM16.5 7.5L14 14L7.5 16.5L10 10L16.5 7.5ZM12 13C12.5523 13 13 12.5523 13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13Z" })), zhe = ({ 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,
@@ -43173,7 +43173,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), zB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), VB = ({ 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,
@@ -43181,7 +43181,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), Hhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), Bhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43189,7 +43189,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), Uhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), Vhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43197,7 +43197,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M13 13V18.585L14.8284 16.7574L16.2426 18.1716L12 22.4142L7.75736 18.1716L9.17157 16.7574L11 18.585V13H13ZM12 2C15.5934 2 18.5544 4.70761 18.9541 8.19395C21.2858 8.83154 23 10.9656 23 13.5C23 16.3688 20.8036 18.7246 18.0006 18.9776L18.0009 16.9644C19.6966 16.7214 21 15.2629 21 13.5C21 11.567 19.433 10 17.5 10C17.2912 10 17.0867 10.0183 16.8887 10.054C16.9616 9.7142 17 9.36158 17 9C17 6.23858 14.7614 4 12 4C9.23858 4 7 6.23858 7 9C7 9.36158 7.03838 9.7142 7.11205 10.0533C6.91331 10.0183 6.70879 10 6.5 10C4.567 10 3 11.567 3 13.5C3 15.2003 4.21241 16.6174 5.81986 16.934L6.00005 16.9646L6.00039 18.9776C3.19696 18.7252 1 16.3692 1 13.5C1 10.9656 2.71424 8.83154 5.04648 8.19411C5.44561 4.70761 8.40661 2 12 2Z" })), BB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M13 13V18.585L14.8284 16.7574L16.2426 18.1716L12 22.4142L7.75736 18.1716L9.17157 16.7574L11 18.585V13H13ZM12 2C15.5934 2 18.5544 4.70761 18.9541 8.19395C21.2858 8.83154 23 10.9656 23 13.5C23 16.3688 20.8036 18.7246 18.0006 18.9776L18.0009 16.9644C19.6966 16.7214 21 15.2629 21 13.5C21 11.567 19.433 10 17.5 10C17.2912 10 17.0867 10.0183 16.8887 10.054C16.9616 9.7142 17 9.36158 17 9C17 6.23858 14.7614 4 12 4C9.23858 4 7 6.23858 7 9C7 9.36158 7.03838 9.7142 7.11205 10.0533C6.91331 10.0183 6.70879 10 6.5 10C4.567 10 3 11.567 3 13.5C3 15.2003 4.21241 16.6174 5.81986 16.934L6.00005 16.9646L6.00039 18.9776C3.19696 18.7252 1 16.3692 1 13.5C1 10.9656 2.71424 8.83154 5.04648 8.19411C5.44561 4.70761 8.40661 2 12 2Z" })), HB = ({ 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,
@@ -43205,7 +43205,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M1 14.5C1 12.1716 2.22429 10.1291 4.06426 8.9812C4.56469 5.044 7.92686 2 12 2C16.0731 2 19.4353 5.044 19.9357 8.9812C21.7757 10.1291 23 12.1716 23 14.5C23 17.9216 20.3562 20.7257 17 20.9811L7 21C3.64378 20.7257 1 17.9216 1 14.5ZM16.8483 18.9868C19.1817 18.8093 21 16.8561 21 14.5C21 12.927 20.1884 11.4962 18.8771 10.6781L18.0714 10.1754L17.9517 9.23338C17.5735 6.25803 15.0288 4 12 4C8.97116 4 6.42647 6.25803 6.0483 9.23338L5.92856 10.1754L5.12288 10.6781C3.81156 11.4962 3 12.927 3 14.5C3 16.8561 4.81833 18.8093 7.1517 18.9868L7.325 19H16.675L16.8483 18.9868ZM13 12H16L12 17L8 12H11V8H13V12Z" })), Whe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M1 14.5C1 12.1716 2.22429 10.1291 4.06426 8.9812C4.56469 5.044 7.92686 2 12 2C16.0731 2 19.4353 5.044 19.9357 8.9812C21.7757 10.1291 23 12.1716 23 14.5C23 17.9216 20.3562 20.7257 17 20.9811L7 21C3.64378 20.7257 1 17.9216 1 14.5ZM16.8483 18.9868C19.1817 18.8093 21 16.8561 21 14.5C21 12.927 20.1884 11.4962 18.8771 10.6781L18.0714 10.1754L17.9517 9.23338C17.5735 6.25803 15.0288 4 12 4C8.97116 4 6.42647 6.25803 6.0483 9.23338L5.92856 10.1754L5.12288 10.6781C3.81156 11.4962 3 12.927 3 14.5C3 16.8561 4.81833 18.8093 7.1517 18.9868L7.325 19H16.675L16.8483 18.9868ZM13 12H16L12 17L8 12H11V8H13V12Z" })), Hhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43213,7 +43213,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), VB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), UB = ({ 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,
@@ -43221,7 +43221,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), HB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), WB = ({ 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,
@@ -43229,7 +43229,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), Ghe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), Uhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43237,7 +43237,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z" })), Khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z" })), Whe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43245,7 +43245,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M9 2.00318V2H19.9978C20.5513 2 21 2.45531 21 2.9918V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5501 3 20.9932V8L9 2.00318ZM5.82918 8H9V4.83086L5.82918 8ZM11 4V9C11 9.55228 10.5523 10 10 10H5V20H19V4H11Z" })), qhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M9 2.00318V2H19.9978C20.5513 2 21 2.45531 21 2.9918V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5501 3 20.9932V8L9 2.00318ZM5.82918 8H9V4.83086L5.82918 8ZM11 4V9C11 9.55228 10.5523 10 10 10H5V20H19V4H11Z" })), Ghe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43253,7 +43253,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H13V17H8V15Z" })), Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H13V17H8V15Z" })), Khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43261,7 +43261,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H16V17H8V15Z" })), Yhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H16V17H8V15Z" })), qhe = ({ 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,
@@ -43269,7 +43269,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M15 4H5V20H19V8H15V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H16L20.9997 7L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918ZM13.529 14.4464C11.9951 15.3524 9.98633 15.1464 8.66839 13.8284C7.1063 12.2663 7.1063 9.73367 8.66839 8.17157C10.2305 6.60948 12.7631 6.60948 14.3252 8.17157C15.6432 9.48951 15.8492 11.4983 14.9432 13.0322L17.1537 15.2426L15.7395 16.6569L13.529 14.4464ZM12.911 12.4142C13.6921 11.6332 13.6921 10.3668 12.911 9.58579C12.13 8.80474 10.8637 8.80474 10.0826 9.58579C9.30156 10.3668 9.30156 11.6332 10.0826 12.4142C10.8637 13.1953 12.13 13.1953 12.911 12.4142Z" })), UB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M15 4H5V20H19V8H15V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H16L20.9997 7L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918ZM13.529 14.4464C11.9951 15.3524 9.98633 15.1464 8.66839 13.8284C7.1063 12.2663 7.1063 9.73367 8.66839 8.17157C10.2305 6.60948 12.7631 6.60948 14.3252 8.17157C15.6432 9.48951 15.8492 11.4983 14.9432 13.0322L17.1537 15.2426L15.7395 16.6569L13.529 14.4464ZM12.911 12.4142C13.6921 11.6332 13.6921 10.3668 12.911 9.58579C12.13 8.80474 10.8637 8.80474 10.0826 9.58579C9.30156 10.3668 9.30156 11.6332 10.0826 12.4142C10.8637 13.1953 12.13 13.1953 12.911 12.4142Z" })), GB = ({ 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,
@@ -43277,7 +43277,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M2 3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918C2.44405 21 2 20.5551 2 20.0066V3.9934ZM8 5V19H16V5H8ZM4 5V7H6V5H4ZM18 5V7H20V5H18ZM4 9V11H6V9H4ZM18 9V11H20V9H18ZM4 13V15H6V13H4ZM18 13V15H20V13H18ZM4 17V19H6V17H4ZM18 17V19H20V17H18Z" })), Xhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M2 3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918C2.44405 21 2 20.5551 2 20.0066V3.9934ZM8 5V19H16V5H8ZM4 5V7H6V5H4ZM18 5V7H20V5H18ZM4 9V11H6V9H4ZM18 9V11H20V9H18ZM4 13V15H6V13H4ZM18 13V15H20V13H18ZM4 17V19H6V17H4ZM18 17V19H20V17H18Z" })), Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43285,7 +43285,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), WB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), KB = ({ 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,
@@ -43293,7 +43293,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 7V19H20V7H4Z" })), GB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 7V19H20V7H4Z" })), qB = ({ 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,
@@ -43301,7 +43301,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 5V19H20V7H11.5858L9.58579 5H4ZM12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5Z" })), KB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4 5V19H20V7H11.5858L9.58579 5H4ZM12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5Z" })), JB = ({ 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,
@@ -43309,7 +43309,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 21C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5H20C20.5523 5 21 5.44772 21 6V9H19V7H11.5858L9.58579 5H4V16.998L5.5 11H22.5L20.1894 20.2425C20.0781 20.6877 19.6781 21 19.2192 21H3ZM19.9384 13H7.06155L5.56155 19H18.4384L19.9384 13Z" })), Zhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 21C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5H20C20.5523 5 21 5.44772 21 6V9H19V7H11.5858L9.58579 5H4V16.998L5.5 11H22.5L20.1894 20.2425C20.0781 20.6877 19.6781 21 19.2192 21H3ZM19.9384 13H7.06155L5.56155 19H18.4384L19.9384 13Z" })), Yhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43317,7 +43317,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 5V19H20V7H11.5858L9.58579 5H4ZM8.59114 13.8089C8.52934 13.5486 8.49663 13.277 8.49663 12.9978C8.49663 12.7186 8.52933 12.4471 8.59112 12.1868L7.59998 11.6146L8.59949 9.88335L9.59133 10.456C9.98424 10.0843 10.4633 9.80275 10.9954 9.64438V8.5H12.9944V9.64438C13.5265 9.80274 14.0056 10.0843 14.3985 10.4559L15.3904 9.88325L16.39 11.6145L15.3987 12.1867C15.4605 12.447 15.4932 12.7186 15.4932 12.9978C15.4932 13.277 15.4605 13.5485 15.3987 13.8088L16.39 14.3811L15.3905 16.1123L14.3986 15.5396C14.0057 15.9113 13.5266 16.1928 12.9945 16.3512V17.4956H10.9955V16.3513C10.4634 16.1929 9.98434 15.9114 9.59141 15.5397L8.59954 16.1124L7.59998 14.3812L8.59114 13.8089ZM11.9949 14.4971C12.8229 14.4971 13.4942 13.8258 13.4942 12.9978C13.4942 12.1698 12.8229 11.4985 11.9949 11.4985C11.1669 11.4985 10.4957 12.1698 10.4957 12.9978C10.4957 13.8258 11.1669 14.4971 11.9949 14.4971Z" })), qB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 5V19H20V7H11.5858L9.58579 5H4ZM8.59114 13.8089C8.52934 13.5486 8.49663 13.277 8.49663 12.9978C8.49663 12.7186 8.52933 12.4471 8.59112 12.1868L7.59998 11.6146L8.59949 9.88335L9.59133 10.456C9.98424 10.0843 10.4633 9.80275 10.9954 9.64438V8.5H12.9944V9.64438C13.5265 9.80274 14.0056 10.0843 14.3985 10.4559L15.3904 9.88325L16.39 11.6145L15.3987 12.1867C15.4605 12.447 15.4932 12.7186 15.4932 12.9978C15.4932 13.277 15.4605 13.5485 15.3987 13.8088L16.39 14.3811L15.3905 16.1123L14.3986 15.5396C14.0057 15.9113 13.5266 16.1928 12.9945 16.3512V17.4956H10.9955V16.3513C10.4634 16.1929 9.98434 15.9114 9.59141 15.5397L8.59954 16.1124L7.59998 14.3812L8.59114 13.8089ZM11.9949 14.4971C12.8229 14.4971 13.4942 13.8258 13.4942 12.9978C13.4942 12.1698 12.8229 11.4985 11.9949 11.4985C11.1669 11.4985 10.4957 12.1698 10.4957 12.9978C10.4957 13.8258 11.1669 14.4971 11.9949 14.4971Z" })), YB = ({ 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,
@@ -43325,7 +43325,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), JB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), XB = ({ 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,
@@ -43333,7 +43333,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), Qhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), Xhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43341,7 +43341,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M16.5 3C19.5376 3 22 5.5 22 9C22 16 14.5 20 12 21.5C9.5 20 2 16 2 9C2 5.5 4.5 3 7.5 3C9.35997 3 11 4 12 5C13 4 14.64 3 16.5 3ZM12.9339 18.6038C13.8155 18.0485 14.61 17.4955 15.3549 16.9029C18.3337 14.533 20 11.9435 20 9C20 6.64076 18.463 5 16.5 5C15.4241 5 14.2593 5.56911 13.4142 6.41421L12 7.82843L10.5858 6.41421C9.74068 5.56911 8.5759 5 7.5 5C5.55906 5 4 6.6565 4 9C4 11.9435 5.66627 14.533 8.64514 16.9029C9.39 17.4955 10.1845 18.0485 11.0661 18.6038C11.3646 18.7919 11.6611 18.9729 12 19.1752C12.3389 18.9729 12.6354 18.7919 12.9339 18.6038Z" })), $he = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M16.5 3C19.5376 3 22 5.5 22 9C22 16 14.5 20 12 21.5C9.5 20 2 16 2 9C2 5.5 4.5 3 7.5 3C9.35997 3 11 4 12 5C13 4 14.64 3 16.5 3ZM12.9339 18.6038C13.8155 18.0485 14.61 17.4955 15.3549 16.9029C18.3337 14.533 20 11.9435 20 9C20 6.64076 18.463 5 16.5 5C15.4241 5 14.2593 5.56911 13.4142 6.41421L12 7.82843L10.5858 6.41421C9.74068 5.56911 8.5759 5 7.5 5C5.55906 5 4 6.6565 4 9C4 11.9435 5.66627 14.533 8.64514 16.9029C9.39 17.4955 10.1845 18.0485 11.0661 18.6038C11.3646 18.7919 11.6611 18.9729 12 19.1752C12.3389 18.9729 12.6354 18.7919 12.9339 18.6038Z" })), Zhe = ({ 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,
@@ -43349,7 +43349,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), ege = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), Qhe = ({ 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,
@@ -43357,7 +43357,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5 11.1005L7 9.1005L12.5 14.6005L16 11.1005L19 14.1005V5H5V11.1005ZM5 13.9289V19H8.1005L11.0858 16.0147L7 11.9289L5 13.9289ZM10.9289 19H19V16.9289L16 13.9289L10.9289 19ZM4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3ZM15.5 10C14.6716 10 14 9.32843 14 8.5C14 7.67157 14.6716 7 15.5 7C16.3284 7 17 7.67157 17 8.5C17 9.32843 16.3284 10 15.5 10Z" })), YB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M5 11.1005L7 9.1005L12.5 14.6005L16 11.1005L19 14.1005V5H5V11.1005ZM5 13.9289V19H8.1005L11.0858 16.0147L7 11.9289L5 13.9289ZM10.9289 19H19V16.9289L16 13.9289L10.9289 19ZM4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3ZM15.5 10C14.6716 10 14 9.32843 14 8.5C14 7.67157 14.6716 7 15.5 7C16.3284 7 17 7.67157 17 8.5C17 9.32843 16.3284 10 15.5 10Z" })), ZB = ({ 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,
@@ -43365,7 +43365,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), tge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), $he = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43373,7 +43373,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), nge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), 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,
@@ -43381,7 +43381,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), 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,
@@ -43389,7 +43389,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), XB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), QB = ({ 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,
@@ -43397,7 +43397,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), ige = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), 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,
@@ -43405,7 +43405,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z" })), age = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z" })), 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,
@@ -43413,7 +43413,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M13.0607 8.11097L14.4749 9.52518C17.2086 12.2589 17.2086 16.691 14.4749 19.4247L14.1214 19.7782C11.3877 22.5119 6.95555 22.5119 4.22188 19.7782C1.48821 17.0446 1.48821 12.6124 4.22188 9.87874L5.6361 11.293C3.68348 13.2456 3.68348 16.4114 5.6361 18.364C7.58872 20.3166 10.7545 20.3166 12.7072 18.364L13.0607 18.0105C15.0133 16.0578 15.0133 12.892 13.0607 10.9394L11.6465 9.52518L13.0607 8.11097ZM19.7782 14.1214L18.364 12.7072C20.3166 10.7545 20.3166 7.58872 18.364 5.6361C16.4114 3.68348 13.2456 3.68348 11.293 5.6361L10.9394 5.98965C8.98678 7.94227 8.98678 11.1081 10.9394 13.0607L12.3536 14.4749L10.9394 15.8891L9.52518 14.4749C6.79151 11.7413 6.79151 7.30911 9.52518 4.57544L9.87874 4.22188C12.6124 1.48821 17.0446 1.48821 19.7782 4.22188C22.5119 6.95555 22.5119 11.3877 19.7782 14.1214Z" })), oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M13.0607 8.11097L14.4749 9.52518C17.2086 12.2589 17.2086 16.691 14.4749 19.4247L14.1214 19.7782C11.3877 22.5119 6.95555 22.5119 4.22188 19.7782C1.48821 17.0446 1.48821 12.6124 4.22188 9.87874L5.6361 11.293C3.68348 13.2456 3.68348 16.4114 5.6361 18.364C7.58872 20.3166 10.7545 20.3166 12.7072 18.364L13.0607 18.0105C15.0133 16.0578 15.0133 12.892 13.0607 10.9394L11.6465 9.52518L13.0607 8.11097ZM19.7782 14.1214L18.364 12.7072C20.3166 10.7545 20.3166 7.58872 18.364 5.6361C16.4114 3.68348 13.2456 3.68348 11.293 5.6361L10.9394 5.98965C8.98678 7.94227 8.98678 11.1081 10.9394 13.0607L12.3536 14.4749L10.9394 15.8891L9.52518 14.4749C6.79151 11.7413 6.79151 7.30911 9.52518 4.57544L9.87874 4.22188C12.6124 1.48821 17.0446 1.48821 19.7782 4.22188C22.5119 6.95555 22.5119 11.3877 19.7782 14.1214Z" })), 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,
@@ -43421,7 +43421,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M8 4H21V6H8V4ZM4.5 6.5C3.67157 6.5 3 5.82843 3 5C3 4.17157 3.67157 3.5 4.5 3.5C5.32843 3.5 6 4.17157 6 5C6 5.82843 5.32843 6.5 4.5 6.5ZM4.5 13.5C3.67157 13.5 3 12.8284 3 12C3 11.1716 3.67157 10.5 4.5 10.5C5.32843 10.5 6 11.1716 6 12C6 12.8284 5.32843 13.5 4.5 13.5ZM4.5 20.4C3.67157 20.4 3 19.7284 3 18.9C3 18.0716 3.67157 17.4 4.5 17.4C5.32843 17.4 6 18.0716 6 18.9C6 19.7284 5.32843 20.4 4.5 20.4ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z" })), ZB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M8 4H21V6H8V4ZM4.5 6.5C3.67157 6.5 3 5.82843 3 5C3 4.17157 3.67157 3.5 4.5 3.5C5.32843 3.5 6 4.17157 6 5C6 5.82843 5.32843 6.5 4.5 6.5ZM4.5 13.5C3.67157 13.5 3 12.8284 3 12C3 11.1716 3.67157 10.5 4.5 10.5C5.32843 10.5 6 11.1716 6 12C6 12.8284 5.32843 13.5 4.5 13.5ZM4.5 20.4C3.67157 20.4 3 19.7284 3 18.9C3 18.0716 3.67157 17.4 4.5 17.4C5.32843 17.4 6 18.0716 6 18.9C6 19.7284 5.32843 20.4 4.5 20.4ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z" })), $B = ({ 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,
@@ -43429,7 +43429,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 2C17.5222 2 22 5.97778 22 10.8889C22 13.9556 19.5111 16.4444 16.4444 16.4444H14.4778C13.5556 16.4444 12.8111 17.1889 12.8111 18.1111C12.8111 18.5333 12.9778 18.9222 13.2333 19.2111C13.5 19.5111 13.6667 19.9 13.6667 20.3333C13.6667 21.2556 12.9 22 12 22C6.47778 22 2 17.5222 2 12C2 6.47778 6.47778 2 12 2ZM10.8111 18.1111C10.8111 16.0843 12.451 14.4444 14.4778 14.4444H16.4444C18.4065 14.4444 20 12.851 20 10.8889C20 7.1392 16.4677 4 12 4C7.58235 4 4 7.58235 4 12C4 16.19 7.2226 19.6285 11.324 19.9718C10.9948 19.4168 10.8111 18.7761 10.8111 18.1111ZM7.5 12C6.67157 12 6 11.3284 6 10.5C6 9.67157 6.67157 9 7.5 9C8.32843 9 9 9.67157 9 10.5C9 11.3284 8.32843 12 7.5 12ZM16.5 12C15.6716 12 15 11.3284 15 10.5C15 9.67157 15.6716 9 16.5 9C17.3284 9 18 9.67157 18 10.5C18 11.3284 17.3284 12 16.5 12ZM12 9C11.1716 9 10.5 8.32843 10.5 7.5C10.5 6.67157 11.1716 6 12 6C12.8284 6 13.5 6.67157 13.5 7.5C13.5 8.32843 12.8284 9 12 9Z" })), QB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 2C17.5222 2 22 5.97778 22 10.8889C22 13.9556 19.5111 16.4444 16.4444 16.4444H14.4778C13.5556 16.4444 12.8111 17.1889 12.8111 18.1111C12.8111 18.5333 12.9778 18.9222 13.2333 19.2111C13.5 19.5111 13.6667 19.9 13.6667 20.3333C13.6667 21.2556 12.9 22 12 22C6.47778 22 2 17.5222 2 12C2 6.47778 6.47778 2 12 2ZM10.8111 18.1111C10.8111 16.0843 12.451 14.4444 14.4778 14.4444H16.4444C18.4065 14.4444 20 12.851 20 10.8889C20 7.1392 16.4677 4 12 4C7.58235 4 4 7.58235 4 12C4 16.19 7.2226 19.6285 11.324 19.9718C10.9948 19.4168 10.8111 18.7761 10.8111 18.1111ZM7.5 12C6.67157 12 6 11.3284 6 10.5C6 9.67157 6.67157 9 7.5 9C8.32843 9 9 9.67157 9 10.5C9 11.3284 8.32843 12 7.5 12ZM16.5 12C15.6716 12 15 11.3284 15 10.5C15 9.67157 15.6716 9 16.5 9C17.3284 9 18 9.67157 18 10.5C18 11.3284 17.3284 12 16.5 12ZM12 9C11.1716 9 10.5 8.32843 10.5 7.5C10.5 6.67157 11.1716 6 12 6C12.8284 6 13.5 6.67157 13.5 7.5C13.5 8.32843 12.8284 9 12 9Z" })), eV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43437,7 +43437,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })), $B = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })), tV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43445,7 +43445,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM10.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" })), eV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM10.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" })), nV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43453,7 +43453,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), tV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), rV = ({ 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,
@@ -43461,7 +43461,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z" })), sge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z" })), 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,
@@ -43469,7 +43469,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M9 7.53861L15 21.5386L18.6594 13H23V11H17.3406L15 16.4614L9 2.46143L5.3406 11H1V13H6.6594L9 7.53861Z" })), nV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M9 7.53861L15 21.5386L18.6594 13H23V11H17.3406L15 16.4614L9 2.46143L5.3406 11H1V13H6.6594L9 7.53861Z" })), iV = ({ 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,
@@ -43477,7 +43477,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), cge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), 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,
@@ -43485,7 +43485,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4.99958 12.9999C4.99958 7.91198 7.90222 3.5636 11.9996 1.81799C16.0969 3.5636 18.9996 7.91198 18.9996 12.9999C18.9996 13.8229 18.9236 14.6264 18.779 15.4027L20.7194 17.2353C20.8845 17.3913 20.9238 17.6389 20.815 17.8383L18.3196 22.4133C18.1873 22.6557 17.8836 22.7451 17.6412 22.6128C17.5993 22.59 17.5608 22.5612 17.5271 22.5274L15.2925 20.2928C15.1049 20.1053 14.8506 19.9999 14.5854 19.9999H9.41379C9.14857 19.9999 8.89422 20.1053 8.70668 20.2928L6.47209 22.5274C6.27683 22.7227 5.96025 22.7227 5.76498 22.5274C5.73122 22.4937 5.70246 22.4552 5.67959 22.4133L3.18412 17.8383C3.07537 17.6389 3.11464 17.3913 3.27975 17.2353L5.22014 15.4027C5.07551 14.6264 4.99958 13.8229 4.99958 12.9999ZM6.47542 19.6957L7.29247 18.8786C7.85508 18.316 8.61814 17.9999 9.41379 17.9999H14.5854C15.381 17.9999 16.1441 18.316 16.7067 18.8786L17.5237 19.6957L18.5056 17.8955L17.4058 16.8568C16.9117 16.3901 16.6884 15.7045 16.8128 15.0364C16.9366 14.3722 16.9996 13.6911 16.9996 12.9999C16.9996 9.13037 15.0045 5.69965 11.9996 4.04033C8.99462 5.69965 6.99958 9.13037 6.99958 12.9999C6.99958 13.6911 7.06255 14.3722 7.18631 15.0364C7.31078 15.7045 7.08746 16.3901 6.59338 16.8568L5.49353 17.8955L6.47542 19.6957ZM11.9996 12.9999C10.895 12.9999 9.99958 12.1045 9.99958 10.9999C9.99958 9.89537 10.895 8.99994 11.9996 8.99994C13.1041 8.99994 13.9996 9.89537 13.9996 10.9999C13.9996 12.1045 13.1041 12.9999 11.9996 12.9999Z" })), lge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4.99958 12.9999C4.99958 7.91198 7.90222 3.5636 11.9996 1.81799C16.0969 3.5636 18.9996 7.91198 18.9996 12.9999C18.9996 13.8229 18.9236 14.6264 18.779 15.4027L20.7194 17.2353C20.8845 17.3913 20.9238 17.6389 20.815 17.8383L18.3196 22.4133C18.1873 22.6557 17.8836 22.7451 17.6412 22.6128C17.5993 22.59 17.5608 22.5612 17.5271 22.5274L15.2925 20.2928C15.1049 20.1053 14.8506 19.9999 14.5854 19.9999H9.41379C9.14857 19.9999 8.89422 20.1053 8.70668 20.2928L6.47209 22.5274C6.27683 22.7227 5.96025 22.7227 5.76498 22.5274C5.73122 22.4937 5.70246 22.4552 5.67959 22.4133L3.18412 17.8383C3.07537 17.6389 3.11464 17.3913 3.27975 17.2353L5.22014 15.4027C5.07551 14.6264 4.99958 13.8229 4.99958 12.9999ZM6.47542 19.6957L7.29247 18.8786C7.85508 18.316 8.61814 17.9999 9.41379 17.9999H14.5854C15.381 17.9999 16.1441 18.316 16.7067 18.8786L17.5237 19.6957L18.5056 17.8955L17.4058 16.8568C16.9117 16.3901 16.6884 15.7045 16.8128 15.0364C16.9366 14.3722 16.9996 13.6911 16.9996 12.9999C16.9996 9.13037 15.0045 5.69965 11.9996 4.04033C8.99462 5.69965 6.99958 9.13037 6.99958 12.9999C6.99958 13.6911 7.06255 14.3722 7.18631 15.0364C7.31078 15.7045 7.08746 16.3901 6.59338 16.8568L5.49353 17.8955L6.47542 19.6957ZM11.9996 12.9999C10.895 12.9999 9.99958 12.1045 9.99958 10.9999C9.99958 9.89537 10.895 8.99994 11.9996 8.99994C13.1041 8.99994 13.9996 9.89537 13.9996 10.9999C13.9996 12.1045 13.1041 12.9999 11.9996 12.9999Z" })), 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,
@@ -43493,7 +43493,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 15V8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5V15.5C13 16.8807 14.1193 18 15.5 18C16.8807 18 18 16.8807 18 15.5V8.82929C16.8348 8.41746 16 7.30622 16 6C16 4.34315 17.3431 3 19 3C20.6569 3 22 4.34315 22 6C22 7.30622 21.1652 8.41746 20 8.82929V15.5C20 17.9853 17.9853 20 15.5 20C13.0147 20 11 17.9853 11 15.5V8.5C11 7.11929 9.88071 6 8.5 6C7.11929 6 6 7.11929 6 8.5V15H9L5 20L1 15H4ZM19 7C19.5523 7 20 6.55228 20 6C20 5.44772 19.5523 5 19 5C18.4477 5 18 5.44772 18 6C18 6.55228 18.4477 7 19 7Z" })), rV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4 15V8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5V15.5C13 16.8807 14.1193 18 15.5 18C16.8807 18 18 16.8807 18 15.5V8.82929C16.8348 8.41746 16 7.30622 16 6C16 4.34315 17.3431 3 19 3C20.6569 3 22 4.34315 22 6C22 7.30622 21.1652 8.41746 20 8.82929V15.5C20 17.9853 17.9853 20 15.5 20C13.0147 20 11 17.9853 11 15.5V8.5C11 7.11929 9.88071 6 8.5 6C7.11929 6 6 7.11929 6 8.5V15H9L5 20L1 15H4ZM19 7C19.5523 7 20 6.55228 20 6C20 5.44772 19.5523 5 19 5C18.4477 5 18 5.44772 18 6C18 6.55228 18.4477 7 19 7Z" })), aV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43501,7 +43501,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), iV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), oV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43509,7 +43509,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), aV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), sV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43517,7 +43517,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3.33946 17.0002C2.90721 16.2515 2.58277 15.4702 2.36133 14.6741C3.3338 14.1779 3.99972 13.1668 3.99972 12.0002C3.99972 10.8345 3.3348 9.824 2.36353 9.32741C2.81025 7.71651 3.65857 6.21627 4.86474 4.99001C5.7807 5.58416 6.98935 5.65534 7.99972 5.072C9.01009 4.48866 9.55277 3.40635 9.4962 2.31604C11.1613 1.8846 12.8847 1.90004 14.5031 2.31862C14.4475 3.40806 14.9901 4.48912 15.9997 5.072C17.0101 5.65532 18.2187 5.58416 19.1346 4.99007C19.7133 5.57986 20.2277 6.25151 20.66 7.00021C21.0922 7.7489 21.4167 8.53025 21.6381 9.32628C20.6656 9.82247 19.9997 10.8336 19.9997 12.0002C19.9997 13.166 20.6646 14.1764 21.6359 14.673C21.1892 16.2839 20.3409 17.7841 19.1347 19.0104C18.2187 18.4163 17.0101 18.3451 15.9997 18.9284C14.9893 19.5117 14.4467 20.5941 14.5032 21.6844C12.8382 22.1158 11.1148 22.1004 9.49633 21.6818C9.55191 20.5923 9.00929 19.5113 7.99972 18.9284C6.98938 18.3451 5.78079 18.4162 4.86484 19.0103C4.28617 18.4205 3.77172 17.7489 3.33946 17.0002ZM8.99972 17.1964C10.0911 17.8265 10.8749 18.8227 11.2503 19.9659C11.7486 20.0133 12.2502 20.014 12.7486 19.9675C13.1238 18.8237 13.9078 17.8268 14.9997 17.1964C16.0916 16.5659 17.347 16.3855 18.5252 16.6324C18.8146 16.224 19.0648 15.7892 19.2729 15.334C18.4706 14.4373 17.9997 13.2604 17.9997 12.0002C17.9997 10.74 18.4706 9.5632 19.2729 8.6665C19.1688 8.4405 19.0538 8.21822 18.9279 8.00021C18.802 7.78219 18.667 7.57148 18.5233 7.36842C17.3457 7.61476 16.0911 7.43414 14.9997 6.80405C13.9083 6.17395 13.1246 5.17768 12.7491 4.03455C12.2509 3.98714 11.7492 3.98646 11.2509 4.03292C10.8756 5.17671 10.0916 6.17364 8.99972 6.80405C7.9078 7.43447 6.65245 7.61494 5.47428 7.36803C5.18485 7.77641 4.93463 8.21117 4.72656 8.66637C5.52881 9.56311 5.99972 10.74 5.99972 12.0002C5.99972 13.2604 5.52883 14.4372 4.72656 15.3339C4.83067 15.5599 4.94564 15.7822 5.07152 16.0002C5.19739 16.2182 5.3324 16.4289 5.47612 16.632C6.65377 16.3857 7.90838 16.5663 8.99972 17.1964ZM11.9997 15.0002C10.3429 15.0002 8.99972 13.6571 8.99972 12.0002C8.99972 10.3434 10.3429 9.00021 11.9997 9.00021C13.6566 9.00021 14.9997 10.3434 14.9997 12.0002C14.9997 13.6571 13.6566 15.0002 11.9997 15.0002ZM11.9997 13.0002C12.552 13.0002 12.9997 12.5525 12.9997 12.0002C12.9997 11.4479 12.552 11.0002 11.9997 11.0002C11.4474 11.0002 10.9997 11.4479 10.9997 12.0002C10.9997 12.5525 11.4474 13.0002 11.9997 13.0002Z" })), uge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3.33946 17.0002C2.90721 16.2515 2.58277 15.4702 2.36133 14.6741C3.3338 14.1779 3.99972 13.1668 3.99972 12.0002C3.99972 10.8345 3.3348 9.824 2.36353 9.32741C2.81025 7.71651 3.65857 6.21627 4.86474 4.99001C5.7807 5.58416 6.98935 5.65534 7.99972 5.072C9.01009 4.48866 9.55277 3.40635 9.4962 2.31604C11.1613 1.8846 12.8847 1.90004 14.5031 2.31862C14.4475 3.40806 14.9901 4.48912 15.9997 5.072C17.0101 5.65532 18.2187 5.58416 19.1346 4.99007C19.7133 5.57986 20.2277 6.25151 20.66 7.00021C21.0922 7.7489 21.4167 8.53025 21.6381 9.32628C20.6656 9.82247 19.9997 10.8336 19.9997 12.0002C19.9997 13.166 20.6646 14.1764 21.6359 14.673C21.1892 16.2839 20.3409 17.7841 19.1347 19.0104C18.2187 18.4163 17.0101 18.3451 15.9997 18.9284C14.9893 19.5117 14.4467 20.5941 14.5032 21.6844C12.8382 22.1158 11.1148 22.1004 9.49633 21.6818C9.55191 20.5923 9.00929 19.5113 7.99972 18.9284C6.98938 18.3451 5.78079 18.4162 4.86484 19.0103C4.28617 18.4205 3.77172 17.7489 3.33946 17.0002ZM8.99972 17.1964C10.0911 17.8265 10.8749 18.8227 11.2503 19.9659C11.7486 20.0133 12.2502 20.014 12.7486 19.9675C13.1238 18.8237 13.9078 17.8268 14.9997 17.1964C16.0916 16.5659 17.347 16.3855 18.5252 16.6324C18.8146 16.224 19.0648 15.7892 19.2729 15.334C18.4706 14.4373 17.9997 13.2604 17.9997 12.0002C17.9997 10.74 18.4706 9.5632 19.2729 8.6665C19.1688 8.4405 19.0538 8.21822 18.9279 8.00021C18.802 7.78219 18.667 7.57148 18.5233 7.36842C17.3457 7.61476 16.0911 7.43414 14.9997 6.80405C13.9083 6.17395 13.1246 5.17768 12.7491 4.03455C12.2509 3.98714 11.7492 3.98646 11.2509 4.03292C10.8756 5.17671 10.0916 6.17364 8.99972 6.80405C7.9078 7.43447 6.65245 7.61494 5.47428 7.36803C5.18485 7.77641 4.93463 8.21117 4.72656 8.66637C5.52881 9.56311 5.99972 10.74 5.99972 12.0002C5.99972 13.2604 5.52883 14.4372 4.72656 15.3339C4.83067 15.5599 4.94564 15.7822 5.07152 16.0002C5.19739 16.2182 5.3324 16.4289 5.47612 16.632C6.65377 16.3857 7.90838 16.5663 8.99972 17.1964ZM11.9997 15.0002C10.3429 15.0002 8.99972 13.6571 8.99972 12.0002C8.99972 10.3434 10.3429 9.00021 11.9997 9.00021C13.6566 9.00021 14.9997 10.3434 14.9997 12.0002C14.9997 13.6571 13.6566 15.0002 11.9997 15.0002ZM11.9997 13.0002C12.552 13.0002 12.9997 12.5525 12.9997 12.0002C12.9997 11.4479 12.552 11.0002 11.9997 11.0002C11.4474 11.0002 10.9997 11.4479 10.9997 12.0002C10.9997 12.5525 11.4474 13.0002 11.9997 13.0002Z" })), cge = ({ 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,
@@ -43525,7 +43525,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM8 5H4V19H8V5ZM10 5V19H20V5H10Z" })), oV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM8 5H4V19H8V5ZM10 5V19H20V5H10Z" })), cV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43533,7 +43533,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M7 4V20H17V4H7ZM6 2H18C18.5523 2 19 2.44772 19 3V21C19 21.5523 18.5523 22 18 22H6C5.44772 22 5 21.5523 5 21V3C5 2.44772 5.44772 2 6 2ZM12 17C12.5523 17 13 17.4477 13 18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18C11 17.4477 11.4477 17 12 17Z" })), dge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M7 4V20H17V4H7ZM6 2H18C18.5523 2 19 2.44772 19 3V21C19 21.5523 18.5523 22 18 22H6C5.44772 22 5 21.5523 5 21V3C5 2.44772 5.44772 2 6 2ZM12 17C12.5523 17 13 17.4477 13 18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18C11 17.4477 11.4477 17 12 17Z" })), lge = ({ 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,
@@ -43541,7 +43541,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12.0006 18.26L4.94715 22.2082L6.52248 14.2799L0.587891 8.7918L8.61493 7.84006L12.0006 0.5L15.3862 7.84006L23.4132 8.7918L17.4787 14.2799L19.054 22.2082L12.0006 18.26ZM12.0006 15.968L16.2473 18.3451L15.2988 13.5717L18.8719 10.2674L14.039 9.69434L12.0006 5.27502L9.96214 9.69434L5.12921 10.2674L8.70231 13.5717L7.75383 18.3451L12.0006 15.968Z" })), sV = ({ 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" })), lV = ({ 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,
@@ -43549,7 +43549,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: 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" })), fge = ({ 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" })), uge = ({ 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,
@@ -43557,7 +43557,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), pge = ({ 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" })), dge = ({ 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,
@@ -43565,7 +43565,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M19 4H5V20H19V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H19.9997C20.5519 2 20.9996 2.44772 20.9997 3L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918ZM11.2929 13.1213L15.5355 8.87868L16.9497 10.2929L11.2929 15.9497L7.40381 12.0607L8.81802 10.6464L11.2929 13.1213Z" })), mge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M19 4H5V20H19V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H19.9997C20.5519 2 20.9996 2.44772 20.9997 3L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918ZM11.2929 13.1213L15.5355 8.87868L16.9497 10.2929L11.2929 15.9497L7.40381 12.0607L8.81802 10.6464L11.2929 13.1213Z" })), fge = ({ 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,
@@ -43573,7 +43573,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), hge = ({ 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" })), pge = ({ 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,
@@ -43581,7 +43581,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), cV = ({ 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" })), uV = ({ 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,
@@ -43589,7 +43589,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: 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" })), gge = ({ 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" })), mge = ({ 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,
@@ -43597,7 +43597,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), lV = ({ 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" })), dV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43605,7 +43605,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: 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" })), uV = ({ 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" })), fV = ({ 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,
@@ -43613,7 +43613,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), dV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), pV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43621,7 +43621,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), _ge = ({ 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" })), hge = ({ 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,
@@ -43629,7 +43629,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), fV = ({ 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" })), 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,
@@ -43637,7 +43637,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: 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" })), vge = ({ 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" })), gge = ({ 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,
@@ -43647,8 +43647,8 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
className: "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 pV({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsxs)(XL, {
+function hV({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, I.jsxs)(QL, {
"data-label": "true",
...a,
className: q("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
@@ -43659,7 +43659,7 @@ function pV({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, I.jsx)(tge, {
+ n && /* @__PURE__ */ (0, I.jsx)($he, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -43667,23 +43667,23 @@ function pV({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
});
}
// src/react/boardui/components/base/input/hint-text.tsx
-function mV({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, I.jsx)(vpe, {
+function gV({ isInvalid: e = !1, className: t, ...n }) {
+ return /* @__PURE__ */ (0, I.jsx)(gpe, {
slot: e ? "errorMessage" : "description",
...n,
className: q("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
});
}
// src/react/boardui/components/base/input/input.tsx
-var hV = (0, F.createContext)({});
-function gV({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsx)(hV.Provider, {
+var _V = (0, F.createContext)({});
+function vV({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, I.jsx)(_V.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, I.jsx)(vhe, {
+ children: /* @__PURE__ */ (0, I.jsx)(ghe, {
...a,
"data-input-size": e,
className: q("group flex h-max w-full flex-col items-start gap-1", r),
@@ -43691,8 +43691,8 @@ function gV({ size: e = "medium", fieldClassName: t, inputClassName: n, classNam
})
});
}
-gV.displayName = "TextField";
-var _V = qI({
+vV.displayName = "TextField";
+var yV = YI({
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",
@@ -43707,44 +43707,44 @@ var _V = qI({
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 vV({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, F.useContext)(hV), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, I.jsx)(cR, {
+function bV({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, F.useContext)(_V), u = e ?? l.size ?? "medium", d = r != null;
+ return /* @__PURE__ */ (0, I.jsx)(uR, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => q(_V.field, d ? _V.fieldWithAddonSize[u] : _V.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(yV.field, d ? yV.fieldWithAddonSize[u] : yV.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: _V.content,
+ className: yV.content,
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
- className: _V.leftSection,
+ className: yV.leftSection,
children: [d ? r : t ? /* @__PURE__ */ (0, I.jsx)(t, {
- className: _V.icon,
+ className: yV.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, I.jsx)(wpe, {
+ }) : null, /* @__PURE__ */ (0, I.jsx)(Spe, {
ref: o,
...c,
- className: q(_V.input, l.inputClassName, a)
+ className: q(yV.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, I.jsx)(n, {
- className: _V.icon,
+ className: yV.icon,
"aria-hidden": !0
}) : null]
})
});
}
-vV.displayName = "InputBase";
-function yV({ 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)(gV, {
+bV.displayName = "InputBase";
+function xV({ 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)(vV, {
...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)(pV, {
+ e && /* @__PURE__ */ (0, I.jsx)(hV, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, I.jsx)(vV, {
+ /* @__PURE__ */ (0, I.jsx)(bV, {
ref: c,
groupRef: l,
placeholder: r,
@@ -43753,25 +43753,25 @@ function yV({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, I.jsx)(mV, {
+ t && /* @__PURE__ */ (0, I.jsx)(gV, {
isInvalid: d,
children: t
})
] })
});
}
-yV.displayName = "Input";
+xV.displayName = "Input";
// src/react/components/modal-frame.tsx
-var yge = {
+var _ge = {
"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 bV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfaceClassName: a = "" }) {
- let { isFocusVisible: o } = OC();
- return /* @__PURE__ */ (0, I.jsx)(Hz, {
+function SV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfaceClassName: a = "" }) {
+ let { isFocusVisible: o } = AC();
+ return /* @__PURE__ */ (0, I.jsx)(Wz, {
isOpen: e,
onOpenChange: t,
isDismissable: !0,
@@ -43779,11 +43779,11 @@ function bV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfa
"data-modal-kind": n,
"data-motion-instant": o || void 0,
className: "fixed inset-0 z-dialog flex items-center justify-center bg-scrim p-4",
- children: /* @__PURE__ */ (0, I.jsx)(ome, {
+ children: /* @__PURE__ */ (0, I.jsx)(ime, {
"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", yge[n], a),
- children: /* @__PURE__ */ (0, I.jsx)(Rz, {
+ className: q("flex max-h-full w-full flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown", _ge[n], a),
+ children: /* @__PURE__ */ (0, I.jsx)(Bz, {
"aria-label": r,
className: "flex min-h-0 flex-col overflow-y-auto overscroll-contain outline-none",
children: i
@@ -43791,7 +43791,7 @@ function bV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfa
})
});
}
-function xV({ children: e }) {
+function CV({ 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",
@@ -43799,7 +43799,7 @@ function xV({ children: e }) {
});
}
// src/react/components/note.tsx
-function SV({ tone: e, title: t, action: n, extra: r, children: i, actionLayout: a = "inline", className: o }) {
+function wV({ tone: e, title: t, action: n, extra: r, children: i, actionLayout: a = "inline", className: o }) {
let s = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-note-layout": "",
className: q("flex gap-3", a === "inline" ? "flex-wrap items-center justify-between" : "flex-col items-start"),
@@ -43847,11 +43847,11 @@ function SV({ tone: e, title: t, action: n, extra: r, children: i, actionLayout:
}
}
// src/react/components/empty-state.tsx
-var bge = {
+var vge = {
standard: "min-h-80 px-6 py-12",
compact: "min-h-60 px-4 py-6"
};
-function xge({ target: e, children: t }) {
+function yge({ target: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "secondary",
@@ -43859,11 +43859,11 @@ function xge({ target: e, children: t }) {
children: t
});
}
-function CV({ icon: e, title: t, actions: n, children: r, size: i = "standard" }) {
+function TV({ 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: `col-span-full flex w-full 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 ${bge[i]}`,
+ className: `col-span-full flex w-full 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 ${vge[i]}`,
children: [
/* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
@@ -43889,9 +43889,9 @@ function CV({ icon: e, title: t, actions: n, children: r, size: i = "standard" }
});
}
// src/react/components/sprite-glyph.tsx
-var wV = /* @__PURE__ */ new Map();
-function TV(e) {
- let t = wV.get(e);
+var EV = /* @__PURE__ */ new Map();
+function DV(e) {
+ let t = EV.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,
@@ -43907,10 +43907,10 @@ function TV(e) {
className: `shrink-0 stroke-current stroke-2 ${t ?? "size-4"}`,
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
- return i.displayName = `SpriteGlyph(${e})`, wV.set(e, i), i;
+ return i.displayName = `SpriteGlyph(${e})`, EV.set(e, i), i;
}
// src/react/components/settings-dialog-close.tsx
-function EV({ label: e, id: t, onPress: n }) {
+function OV({ label: e, id: t, onPress: n }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
id: t,
@@ -43925,60 +43925,60 @@ function EV({ label: e, id: t, onPress: n }) {
});
}
// src/react/settings/busy-props.ts
-function DV(e) {
+function kV(e) {
return e ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
}
// src/react/library-shortcuts/library-shortcuts.ts
-var OV = ["library-shortcuts"], kV = "/api/library-shortcuts";
-function AV(e = !0) {
+var AV = ["library-shortcuts"], jV = "/api/library-shortcuts";
+function MV(e = !0) {
return Pt({
- queryKey: OV,
- queryFn: ({ signal: e }) => B(kV, e),
+ queryKey: AV,
+ queryFn: ({ signal: e }) => B(jV, e),
enabled: e,
refetchOnMount: e ? "always" : !1
});
}
-function jV() {
+function NV() {
return Ft({
- mutationKey: OV,
- mutationFn: (e) => V(kV, e),
+ mutationKey: AV,
+ mutationFn: (e) => V(jV, e),
onSuccess: (e, t) => {
- H.setQueryData(OV, e), t.action === "favorite" && t.scope === "online" && (H.invalidateQueries({ queryKey: ["follow", "tags"] }), H.invalidateQueries({ queryKey: ["tag-management"] }));
+ H.setQueryData(AV, e), t.action === "favorite" && t.scope === "online" && (H.invalidateQueries({ queryKey: ["follow", "tags"] }), H.invalidateQueries({ queryKey: ["tag-management"] }));
}
});
}
-function MV(e, t) {
+function PV(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 Sge(e) {
+function bge(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 NV = TV("star"), Cge = TV("bookmark-plus"), PV = TV("chevron-right"), FV = {
+var FV = DV("star"), xge = DV("bookmark-plus"), IV = DV("chevron-right"), LV = {
performer: "艺人",
creator: "创作者",
studio: "片商与厂牌",
series: "系列",
agency: "事务所",
tag: "标签"
-}, IV = {
- all: TV("star"),
- performer: TV("user-round"),
- creator: TV("user-round"),
- studio: TV("clapperboard"),
- series: TV("film"),
- agency: TV("briefcase"),
- tag: TV("tags"),
- filters: TV("list-filter")
-}, LV = [
+}, RV = {
+ all: DV("star"),
+ performer: DV("user-round"),
+ creator: DV("user-round"),
+ studio: DV("clapperboard"),
+ series: DV("film"),
+ agency: DV("briefcase"),
+ tag: DV("tags"),
+ filters: DV("list-filter")
+}, zV = [
["all", "全部"],
- ...Object.entries(FV),
+ ...Object.entries(LV),
["filters", "保存的筛选"]
];
-function RV({ label: e, children: t, ...n }) {
+function BV({ label: e, children: t, ...n }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
...n,
@@ -43988,20 +43988,20 @@ function RV({ label: e, children: t, ...n }) {
children: t
});
}
-function zV({ item: e }) {
- return /* @__PURE__ */ (0, I.jsx)(wge, { item: e }, `${e.scope || "local"}:${e.kind}:${e.tag_id || e.entity_id}:${e.name}`);
+function VV({ item: e }) {
+ return /* @__PURE__ */ (0, I.jsx)(Sge, { item: e }, `${e.scope || "local"}:${e.kind}:${e.tag_id || e.entity_id}:${e.name}`);
}
-function wge({ item: e }) {
- _L();
- let t = AV(!1), n = (0, F.useRef)(t.data), r = jV(), i = t.data && t.data !== n.current ? MV(t.data.favorites || [], e) : e.favorite ?? (t.data ? MV(t.data.favorites || [], e) : !1);
+function Sge({ item: e }) {
+ yL();
+ let t = MV(!1), n = (0, F.useRef)(t.data), r = NV(), i = t.data && t.data !== n.current ? PV(t.data.favorites || [], e) : e.favorite ?? (t.data ? PV(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)(RV, {
+ /* @__PURE__ */ (0, I.jsx)(BV, {
"data-favorite": "",
"aria-pressed": !!i,
label: `${i ? "取消收藏" : "收藏"}${tn(e.kind, e.name, e.entity_id)}`,
- ...DV(r.isPending),
+ ...kV(r.isPending),
onClick: () => {
r.isPending || r.mutate({
action: "favorite",
@@ -44012,9 +44012,9 @@ function wge({ item: e }) {
children: r.isPending ? /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
dangerouslySetInnerHTML: { __html: zs("") }
- }) : /* @__PURE__ */ (0, I.jsx)(NV, {})
+ }) : /* @__PURE__ */ (0, I.jsx)(FV, {})
}),
- r.isError ? /* @__PURE__ */ (0, I.jsx)(SV, {
+ r.isError ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "error",
children: cr(r.error)
}) : null,
@@ -44028,38 +44028,38 @@ function wge({ item: e }) {
]
});
}
-function BV({ currentHref: e, kind: t }) {
+function HV({ 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)(wL, {
+ children: /* @__PURE__ */ (0, I.jsx)(EL, {
"data-shortcuts-trigger": "",
label: "我的收藏",
- icon: NV,
+ icon: FV,
"aria-haspopup": "dialog",
"aria-expanded": n,
onPress: () => r(!0)
})
- }), /* @__PURE__ */ (0, I.jsx)(bV, {
+ }), /* @__PURE__ */ (0, I.jsx)(SV, {
isOpen: n,
onOpenChange: r,
width: "collections",
label: "我的收藏",
- children: n ? /* @__PURE__ */ (0, I.jsx)(Tge, {
+ children: n ? /* @__PURE__ */ (0, I.jsx)(Cge, {
currentHref: e,
kind: t,
close: () => r(!1)
}) : null
})] });
}
-function Tge({ currentHref: e, kind: t, close: n }) {
- _L();
- let r = AV(), i = jV(), [a, o] = (0, F.useState)(""), [s, c] = (0, F.useState)(t || "all"), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(""), p = (0, F.useId)(), [m, h] = (0, F.useState)(() => matchMedia("(max-width: 760px)").matches);
+function Cge({ currentHref: e, kind: t, close: n }) {
+ yL();
+ let r = MV(), i = NV(), [a, o] = (0, F.useState)(""), [s, c] = (0, F.useState)(t || "all"), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(""), p = (0, F.useId)(), [m, h] = (0, F.useState)(() => matchMedia("(max-width: 760px)").matches);
(0, F.useEffect)(() => {
let e = matchMedia("(max-width: 760px)"), t = () => h(e.matches);
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
}, []);
- let g = (0, F.useRef)(null), _ = (0, F.useRef)(null), v = (0, F.useRef)(s), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = AL(y, g, "[role=\"tab\"][aria-selected=\"true\"]", s, { axis: "y" });
+ let g = (0, F.useRef)(null), _ = (0, F.useRef)(null), v = (0, F.useRef)(s), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = ML(y, g, "[role=\"tab\"][aria-selected=\"true\"]", s, { axis: "y" });
(0, F.useLayoutEffect)(() => {
b.current && (x.current = Lo(b.current) || null);
}, []), (0, F.useLayoutEffect)(() => {
@@ -44072,7 +44072,7 @@ function Tge({ currentHref: e, kind: t, close: n }) {
}, [s]), (0, F.useLayoutEffect)(() => {
x.current?.();
});
- let C = LV.find(([e]) => e === s)?.[1] || "全部", w = (e) => {
+ let C = zV.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;
@@ -44095,7 +44095,7 @@ function Tge({ 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)(EV, {
+ }), /* @__PURE__ */ (0, I.jsx)(OV, {
label: "关闭我的收藏",
onPress: n
})]
@@ -44125,8 +44125,8 @@ function Tge({ currentHref: e, kind: t, close: n }) {
role: "presentation",
children: "我的收藏"
}),
- LV.map(([e, t]) => {
- let n = IV[e] || NV, r = e === "filters" ? E?.filters.length || 0 : (E?.favorites || []).filter((t) => e === "all" || t.kind === e).length;
+ zV.map(([e, t]) => {
+ let n = RV[e] || FV, 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",
@@ -44158,17 +44158,17 @@ function Tge({ currentHref: e, kind: t, close: n }) {
href: "/flagged",
onClick: n,
children: [
- /* @__PURE__ */ (0, I.jsx)(NV, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, I.jsx)(FV, { "aria-hidden": !0 }),
"已标记",
- /* @__PURE__ */ (0, I.jsx)(PV, { "aria-hidden": !0 })
+ /* @__PURE__ */ (0, I.jsx)(IV, { "aria-hidden": !0 })
]
}), /* @__PURE__ */ (0, I.jsxs)("a", {
href: "/watch-later",
onClick: n,
children: [
- /* @__PURE__ */ (0, I.jsx)(Cge, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, I.jsx)(xge, { "aria-hidden": !0 }),
"稍后看",
- /* @__PURE__ */ (0, I.jsx)(PV, { "aria-hidden": !0 })
+ /* @__PURE__ */ (0, I.jsx)(IV, { "aria-hidden": !0 })
]
})]
})]
@@ -44187,7 +44187,7 @@ function Tge({ 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)(SV, {
+ r.isError ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -44196,16 +44196,16 @@ function Tge({ currentHref: e, kind: t, close: n }) {
}),
children: cr(r.error)
}) : null,
- i.isError ? /* @__PURE__ */ (0, I.jsx)(SV, {
+ i.isError ? /* @__PURE__ */ (0, I.jsx)(wV, {
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)(CV, {
+ E.filters.length ? null : /* @__PURE__ */ (0, I.jsx)(TV, {
size: "compact",
- icon: TV("list-filter"),
+ icon: DV("list-filter"),
title: "还没有保存的筛选",
- actions: /* @__PURE__ */ (0, I.jsx)(ML, {
+ actions: /* @__PURE__ */ (0, I.jsx)(PL, {
size: "small",
href: "/",
onClick: n,
@@ -44224,7 +44224,7 @@ function Tge({ currentHref: e, kind: t, close: n }) {
variant: "secondary",
size: "small",
"aria-label": `删除筛选${e.name}`,
- ...DV(i.isPending),
+ ...kV(i.isPending),
onClick: () => {
i.isPending || i.mutate({
action: "delete_filter",
@@ -44239,7 +44239,7 @@ function Tge({ currentHref: e, kind: t, close: n }) {
className: "flex flex-col gap-3",
"aria-label": "保存当前筛选",
children: [
- /* @__PURE__ */ (0, I.jsx)(yV, {
+ /* @__PURE__ */ (0, I.jsx)(xV, {
label: "筛选名称",
value: a,
onChange: o,
@@ -44248,7 +44248,7 @@ function Tge({ currentHref: e, kind: t, close: n }) {
/* @__PURE__ */ (0, I.jsx)(J, {
type: "submit",
disabled: !a.trim(),
- ...DV(i.isPending),
+ ...kV(i.isPending),
children: "保存当前筛选"
}),
d ? /* @__PURE__ */ (0, I.jsx)("span", {
@@ -44259,16 +44259,16 @@ function Tge({ currentHref: e, kind: t, close: n }) {
]
}) : null
] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(yV, {
+ /* @__PURE__ */ (0, I.jsx)(xV, {
"aria-label": "搜索收藏",
placeholder: "搜索收藏",
- leadingIcon: TV("search"),
+ leadingIcon: DV("search"),
value: l,
onChange: u
}),
- O.length ? null : /* @__PURE__ */ (0, I.jsx)(CV, {
+ O.length ? null : /* @__PURE__ */ (0, I.jsx)(TV, {
size: "compact",
- icon: NV,
+ icon: FV,
title: l ? "没有匹配的收藏" : E.favorites.length ? "还没有此类收藏" : "还没有收藏",
actions: l ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
@@ -44278,7 +44278,7 @@ function Tge({ currentHref: e, kind: t, close: n }) {
size: "small",
onClick: () => c("all"),
children: "查看全部收藏"
- }) : /* @__PURE__ */ (0, I.jsx)(ML, {
+ }) : /* @__PURE__ */ (0, I.jsx)(PL, {
size: "small",
href: "/",
onClick: n,
@@ -44292,25 +44292,25 @@ function Tge({ 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: Sge(e),
+ href: bge(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)(Ege, { item: e }, e.image_url), /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(wge, { 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" ? "在线标签" : FV[e.kind]
+ children: e.scope === "online" ? "在线标签" : LV[e.kind]
})]
})]
}), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
"aria-label": `取消收藏${tn(e.kind, e.name, e.entity_id)}`,
- ...DV(i.isPending),
+ ...kV(i.isPending),
onClick: () => {
i.isPending || i.mutate({
action: "favorite",
@@ -44328,8 +44328,8 @@ function Tge({ currentHref: e, kind: t, close: n }) {
]
});
}
-function Ege({ item: e }) {
- let t = IV[e.kind] || NV;
+function wge({ item: e }) {
+ let t = RV[e.kind] || FV;
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-shortcuts-avatar": "",
title: e.image_label || e.name,
@@ -44347,11 +44347,11 @@ function Ege({ item: e }) {
});
}
// src/react/components/board-navigation-link.tsx
-function Dge(e) {
+function Tge(e) {
return /* @__PURE__ */ (0, I.jsx)("a", { ...e });
}
// src/react/boardui/components/foundations/icons/chevrons.tsx
-function Oge(e) {
+function Ege(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -44365,7 +44365,7 @@ function Oge(e) {
})
});
}
-function kge(e) {
+function Dge(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 12 12",
fill: "none",
@@ -44379,7 +44379,7 @@ function kge(e) {
})
});
}
-function VV(e) {
+function UV(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
fill: "none",
@@ -44392,7 +44392,7 @@ function VV(e) {
});
}
// src/react/boardui/components/base/breadcrumb/breadcrumb.tsx
-function Age({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r }) {
+function Oge({ 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,
@@ -44400,14 +44400,14 @@ function Age({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r
className: 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)(kge, {
+ children: i.map((e, t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [t > 0 && /* @__PURE__ */ (0, I.jsx)(Dge, {
className: "size-3 shrink-0 text-text-tertiary",
"aria-hidden": !0
}), e] }, e.key ?? t))
})
});
}
-function HV({ children: e, icon: t, href: n, onClick: r, current: i = !1, className: a }) {
+function WV({ 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
@@ -44420,7 +44420,7 @@ function HV({ children: e, icon: t, href: n, onClick: r, current: i = !1, classN
let 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)(Dge, {
+ children: n ? /* @__PURE__ */ (0, I.jsx)(Tge, {
href: n,
className: s,
children: o
@@ -44433,14 +44433,14 @@ function HV({ children: e, icon: t, href: n, onClick: r, current: i = !1, classN
});
}
// src/react/boardui/components/foundations/direction/direction.tsx
-function UV() {
- return Lw().direction;
+function GV() {
+ return zw().direction;
}
// src/react/boardui/components/base/dropdown/menu-styles.ts
-var WV = "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", jge = "w-[266px]", Mge = "flex w-full flex-col gap-1 outline-none", GV = "flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left text-text-primary outline-none transition-colors", KV = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
+var KV = "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", kge = "w-[266px]", Age = "flex w-full flex-col gap-1 outline-none", qV = "flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left text-text-primary outline-none transition-colors", JV = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
// src/react/boardui/components/base/tree-view/tree-view.tsx
-function Nge({ size: e = "md", showGuides: t = !0, selectionMode: n = "single", renderEmptyState: r = () => "No items.", className: i, onKeyDownCapture: a, ref: o, ...s }) {
- let c = UV(), l = (0, F.useContext)(qL), u = l === GL && !s.dragAndDropHooks ? JV : l;
+function jge({ size: e = "md", showGuides: t = !0, selectionMode: n = "single", renderEmptyState: r = () => "No items.", className: i, onKeyDownCapture: a, ref: o, ...s }) {
+ let c = GV(), l = (0, F.useContext)(YL), u = l === qL && !s.dragAndDropHooks ? XV : l;
return /* @__PURE__ */ (0, I.jsx)("div", {
className: "contents",
onKeyDownCapture: (e) => {
@@ -44457,23 +44457,23 @@ function Nge({ size: e = "md", showGuides: t = !0, selectionMode: n = "single",
}
}
},
- children: /* @__PURE__ */ (0, I.jsx)(qL.Provider, {
+ children: /* @__PURE__ */ (0, I.jsx)(YL.Provider, {
value: u,
- children: /* @__PURE__ */ (0, I.jsx)(xhe, {
+ children: /* @__PURE__ */ (0, I.jsx)(yhe, {
...s,
ref: o,
selectionMode: n,
"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 === JV ? "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 === XV ? "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 qV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassName: i, trailingContent: a, children: o, className: s, style: c, ref: l, ...u }) {
- let d = UV();
- return /* @__PURE__ */ (0, I.jsxs)(whe, {
+function YV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassName: i, trailingContent: a, children: o, className: s, style: c, ref: l, ...u }) {
+ let d = GV();
+ return /* @__PURE__ */ (0, I.jsxs)(She, {
...u,
ref: l,
textValue: t,
@@ -44482,10 +44482,10 @@ function qV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
...typeof c == "function" ? c(e) : c
}),
className: (e) => q("relative flex min-h-9 min-w-0 cursor-pointer items-center gap-2 rounded-xl pe-2 text-body-regular text-text-primary outline-none", "transition-[background-color,color,box-shadow] duration-150 motion-reduce:transition-none", "group-data-[size=sm]/tree-view:min-h-8 group-data-[size=sm]/tree-view:text-body-2-regular", (e.isHovered || e.isPressed || e.isFocusVisible) && !e.isDisabled && "bg-dropdown-item-hover-background", e.isSelected && "bg-dropdown-item-hover-background", e.isFocusVisible && "ring-2 ring-inset ring-border-focus-ring", e.isDisabled && "cursor-default text-text-placeholder", typeof s == "function" ? s(e) : s),
- children: [/* @__PURE__ */ (0, I.jsx)(Che, { children: ({ hasChildItems: t, isExpanded: o, isDisabled: s, level: c, state: l, id: u }) => {
- let f = n === null ? null : o && r ? r : n ?? (t ? o ? KB : WB : Khe);
+ children: [/* @__PURE__ */ (0, I.jsx)(xhe, { children: ({ hasChildItems: t, isExpanded: o, isDisabled: s, level: c, state: l, id: u }) => {
+ let f = n === null ? null : o && r ? r : n ?? (t ? o ? JB : KB : Whe);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(Fge, {
+ /* @__PURE__ */ (0, I.jsx)(Nge, {
state: l,
id: u,
level: c,
@@ -44495,11 +44495,11 @@ function qV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
- children: [t ? /* @__PURE__ */ (0, I.jsx)(QL, {
+ children: [t ? /* @__PURE__ */ (0, I.jsx)(eR, {
slot: "chevron",
isDisabled: s,
className: "flex size-5 shrink-0 cursor-pointer items-center justify-center rounded-md text-foreground-icon-tertiary outline-none transition-colors hover:text-foreground-icon-primary data-[focus-visible]:ring-2 data-[focus-visible]:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, I.jsx)(NB, {
+ children: /* @__PURE__ */ (0, I.jsx)(FB, {
"aria-hidden": !0,
className: q("size-4 opacity-50 transition-transform duration-150 motion-reduce:transition-none", o ? "rotate-90" : d === "rtl" && "rotate-180")
})
@@ -44523,24 +44523,24 @@ function qV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
} }), o]
});
}
-var JV = {
- ...GL,
- CollectionRoot: Pge
+var XV = {
+ ...qL,
+ CollectionRoot: Mge
};
-function Pge({ collection: e, ...t }) {
- let n = (0, F.useContext)(OB);
- return n ? /* @__PURE__ */ (0, I.jsx)(Mx, {
+function Mge({ collection: e, ...t }) {
+ let n = (0, F.useContext)(AB);
+ return n ? /* @__PURE__ */ (0, I.jsx)(Px, {
initial: !1,
- children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, I.jsx)(Ige, {
+ children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, I.jsx)(Pge, {
state: n,
children: e.render?.(e)
}, e.key))
- }) : /* @__PURE__ */ (0, I.jsx)(GL.CollectionRoot, {
+ }) : /* @__PURE__ */ (0, I.jsx)(qL.CollectionRoot, {
collection: e,
...t
});
}
-function Fge({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction: a }) {
+function Nge({ 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;
@@ -44599,9 +44599,9 @@ function Fge({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction
]
});
}
-function Ige({ state: e, children: t }) {
- let n = kx(), r = nS(), [i, a] = (0, F.useState)(e);
- return n && i !== e && a(e), /* @__PURE__ */ (0, I.jsx)(mS.div, {
+function Pge({ state: e, children: t }) {
+ let n = jx(), r = iS(), [i, a] = (0, F.useState)(e);
+ return n && i !== e && a(e), /* @__PURE__ */ (0, I.jsx)(gS.div, {
role: "presentation",
className: "relative min-w-0 shrink-0 overflow-hidden",
"data-tree-view-exiting": !n || void 0,
@@ -44640,14 +44640,14 @@ function Ige({ state: e, children: t }) {
1
]
},
- children: /* @__PURE__ */ (0, I.jsx)(OB.Provider, {
+ children: /* @__PURE__ */ (0, I.jsx)(AB.Provider, {
value: n ? e : i,
children: t
})
});
}
// src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var YV = {
+var ZV = {
md: {
box: "size-4",
glyph: "size-4",
@@ -44661,8 +44661,8 @@ var YV = {
gap: "gap-1.5"
}
};
-function XV({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = YV[t], c = n || r, l = o && !a;
+function QV({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = ZV[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"),
@@ -44688,13 +44688,13 @@ function XV({ state: e, size: t = "md" }) {
});
}
// src/react/boardui/components/base/checkbox/checkbox.tsx
-function ZV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = YV[n];
- return /* @__PURE__ */ (0, I.jsx)(xpe, {
+function $V({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = ZV[n];
+ return /* @__PURE__ */ (0, I.jsx)(ype, {
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)(XV, {
+ children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(QV, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, I.jsx)("span", {
@@ -44704,7 +44704,7 @@ function ZV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
});
}
// src/react/components/overlay-scrollbar.ts
-function QV() {
+function eH() {
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 ? {
@@ -44716,43 +44716,43 @@ function QV() {
}, []), e;
}
// src/react/providers.tsx
-var $V = null;
-function Lge() {
- return $V?.isConnected || ($V = document.createElement("div"), $V.className = "peach-react", $V.dataset.reactOverlays = "", document.body.append($V)), $V;
+var tH = null;
+function Fge() {
+ return tH?.isConnected || (tH = document.createElement("div"), tH.className = "peach-react", tH.dataset.reactOverlays = "", document.body.append(tH)), tH;
}
-function eH({ children: e }) {
+function nH({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)(oe, {
client: H,
- children: /* @__PURE__ */ (0, I.jsx)(qre, {
+ children: /* @__PURE__ */ (0, I.jsx)(Gre, {
reducedMotion: "user",
- children: /* @__PURE__ */ (0, I.jsx)(ED, {
- getContainer: Lge,
+ children: /* @__PURE__ */ (0, I.jsx)(OD, {
+ getContainer: Fge,
children: e
})
})
});
}
// node_modules/sonner/dist/index.mjs
-function Rge(e) {
+function Ige(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 zge = (e) => {
+var Lge = (e) => {
switch (e) {
- case "success": return Hge;
- case "info": return Wge;
- case "warning": return Uge;
- case "error": return Gge;
+ case "success": return Bge;
+ case "info": return Hge;
+ case "warning": return Vge;
+ case "error": return Uge;
default: return null;
}
-}, Bge = Array(12).fill(0), Vge = ({ visible: e, className: t }) => /*#__PURE__*/ F.createElement("div", {
+}, Rge = Array(12).fill(0), zge = ({ 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" }, Bge.map((e, t) => /*#__PURE__*/ F.createElement("div", {
+}, /*#__PURE__*/ F.createElement("div", { className: "sonner-spinner" }, Rge.map((e, t) => /*#__PURE__*/ F.createElement("div", {
className: "sonner-loading-bar",
key: `spinner-bar-${t}`
-})))), Hge = /*#__PURE__*/ F.createElement("svg", {
+})))), Bge = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -44763,7 +44763,7 @@ var zge = (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"
-})), Uge = /*#__PURE__*/ F.createElement("svg", {
+})), Vge = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
fill: "currentColor",
@@ -44774,7 +44774,7 @@ var zge = (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"
-})), Wge = /*#__PURE__*/ F.createElement("svg", {
+})), Hge = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -44785,7 +44785,7 @@ var zge = (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"
-})), Gge = /*#__PURE__*/ F.createElement("svg", {
+})), Uge = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -44796,7 +44796,7 @@ var zge = (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"
-})), Kge = /*#__PURE__*/ F.createElement("svg", {
+})), Wge = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "12",
height: "12",
@@ -44817,7 +44817,7 @@ var zge = (e) => {
y1: "6",
x2: "18",
y2: "18"
-})), qge = () => {
+})), Gge = () => {
let [e, t] = F.useState(document.hidden);
return F.useEffect(() => {
let e = () => {
@@ -44825,7 +44825,7 @@ var zge = (e) => {
};
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
}, []), e;
-}, Jge = 1, Yge = 100, tH = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : Jge++, nH = new class {
+}, Kge = 1, qge = 100, rH = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : Kge++, iH = new class {
constructor() {
this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
let t = this.subscribers.indexOf(e);
@@ -44835,10 +44835,10 @@ var zge = (e) => {
}, this.addToast = (e) => {
this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();
}, this.trimHistory = () => {
- let e = this.toasts.length - Yge;
+ let e = this.toasts.length - qge;
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 = tH(e), i = this.pendingDismissals.get(r);
+ let { message: t, ...n } = e, r = rH(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({
@@ -44913,7 +44913,7 @@ var zge = (e) => {
type: "default",
message: e
});
- else if (Zge(e) && !e.ok) {
+ else if (Yge(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({
@@ -44957,7 +44957,7 @@ var zge = (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 = tH(t);
+ let n = rH(t);
return this.create({
...t,
jsx: e(n),
@@ -44966,34 +44966,34 @@ var zge = (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();
}
-}(), Xge = (e, t) => nH.message(e, t), Zge = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", rH = Object.assign(Xge, {
- success: nH.success,
- info: nH.info,
- warning: nH.warning,
- error: nH.error,
- custom: nH.custom,
- message: nH.message,
- promise: nH.promise,
- dismiss: nH.dismiss,
- loading: nH.loading
+}(), Jge = (e, t) => iH.message(e, t), Yge = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", aH = Object.assign(Jge, {
+ success: iH.success,
+ info: iH.info,
+ warning: iH.warning,
+ error: iH.error,
+ custom: iH.custom,
+ message: iH.message,
+ promise: iH.promise,
+ dismiss: iH.dismiss,
+ loading: iH.loading
}, {
- getHistory: () => nH.toasts,
- getToasts: () => nH.getActiveToasts()
+ getHistory: () => iH.toasts,
+ getToasts: () => iH.getActiveToasts()
});
-Rge("[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 iH(e) {
+Ige("[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 oH(e) {
return e.label !== void 0;
}
-var Qge = 3, $ge = "24px", e_e = "16px", aH = 4e3, t_e = 356, n_e = 14, r_e = 45, i_e = 200;
-function oH(...e) {
+var Xge = 3, Zge = "24px", Qge = "16px", sH = 4e3, $ge = 356, e_e = 14, t_e = 45, n_e = 200;
+function cH(...e) {
return e.filter(Boolean).join(" ");
}
-function a_e(e) {
+function r_e(e) {
let [t, n] = e.split("-"), r = [];
return t && r.push(t), n && r.push(n), r;
}
-var o_e = (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 || aH), 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 || aH, [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 = qge(), ke = F.useMemo(() => e.swipeDirections ?? a_e(b), [e.swipeDirections, b]), Ae = n.invert || t, je = pe === "loading";
+var i_e = (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 || sH), 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 || sH, [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 = Gge(), ke = F.useMemo(() => e.swipeDirections ?? r_e(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(() => {
@@ -45034,7 +45034,7 @@ var o_e = (e) => {
let Me = F.useCallback(() => {
ee(!0), ae(Se.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
d(n);
- }, i_e);
+ }, n_e);
}, [
n,
d,
@@ -45065,18 +45065,18 @@ var o_e = (e) => {
}, [Me, n.delete]);
function Ne() {
return w?.loading ? /*#__PURE__*/ F.createElement("div", {
- className: oH(C?.loader, n?.classNames?.loader, "sonner-loader"),
+ className: cH(C?.loader, n?.classNames?.loader, "sonner-loader"),
"data-visible": pe === "loading"
- }, w.loading) : /*#__PURE__*/ F.createElement(Vge, {
- className: oH(C?.loader, n?.classNames?.loader),
+ }, w.loading) : /*#__PURE__*/ F.createElement(zge, {
+ className: cH(C?.loader, n?.classNames?.loader),
visible: pe === "loading"
});
}
- let Pe = n.icon || w?.[pe] || zge(pe);
+ let Pe = n.icon || w?.[pe] || Lge(pe);
return /*#__PURE__*/ F.createElement("li", {
tabIndex: 0,
ref: ue,
- className: oH(_, ge, C?.toast, n?.classNames?.toast, C?.[me], n?.classNames?.[me]),
+ className: cH(_, 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),
@@ -45119,7 +45119,7 @@ var o_e = (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) >= r_e || 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) >= t_e || 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);
@@ -45158,46 +45158,46 @@ var o_e = (e) => {
onClick: je || !he ? () => {} : () => {
Me(), n.onDismiss == null || n.onDismiss.call(n, n);
},
- className: oH(C?.closeButton, n?.classNames?.closeButton)
- }, w?.close ?? Kge) : null, (pe || n.icon || n.promise) && n.icon !== null && (w?.[pe] !== null || n.icon) ? /*#__PURE__*/ F.createElement("div", {
+ className: cH(C?.closeButton, n?.classNames?.closeButton)
+ }, w?.close ?? Wge) : null, (pe || n.icon || n.promise) && n.icon !== null && (w?.[pe] !== null || n.icon) ? /*#__PURE__*/ F.createElement("div", {
"data-icon": "",
- className: oH(C?.icon, n?.classNames?.icon)
+ className: cH(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: oH(C?.content, n?.classNames?.content)
+ className: cH(C?.content, n?.classNames?.content)
}, /*#__PURE__*/ F.createElement("div", {
"data-title": "",
- className: oH(C?.title, n?.classNames?.title)
+ className: cH(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: oH(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 && iH(n.cancel) ? /*#__PURE__*/ F.createElement("button", {
+ className: cH(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 && oH(n.cancel) ? /*#__PURE__*/ F.createElement("button", {
"data-button": !0,
"data-cancel": !0,
style: n.cancelButtonStyle || h,
onClick: (e) => {
- iH(n.cancel) && he && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Me());
+ oH(n.cancel) && he && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Me());
},
- className: oH(C?.cancelButton, n?.classNames?.cancelButton)
- }, n.cancel.label) : null, /*#__PURE__*/ F.isValidElement(n.action) ? n.action : n.action && iH(n.action) ? /*#__PURE__*/ F.createElement("button", {
+ className: cH(C?.cancelButton, n?.classNames?.cancelButton)
+ }, n.cancel.label) : null, /*#__PURE__*/ F.isValidElement(n.action) ? n.action : n.action && oH(n.action) ? /*#__PURE__*/ F.createElement("button", {
"data-button": !0,
"data-action": !0,
style: n.actionButtonStyle || g,
onClick: (e) => {
- iH(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && Me());
+ oH(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && Me());
},
- className: oH(C?.actionButton, n?.classNames?.actionButton)
+ className: cH(C?.actionButton, n?.classNames?.actionButton)
}, n.action.label) : null);
};
-function sH() {
+function lH() {
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 s_e(e, t) {
+function a_e(e, t) {
let n = {};
return [e, t].forEach((e, t) => {
- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? e_e : $ge;
+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? Qge : Zge;
function o(e) {
[
"top",
@@ -45218,11 +45218,11 @@ function s_e(e, t) {
}) : o(a);
}), n;
}
-var cH = /*#__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 = Qge, toastOptions: g, dir: _ = sH(), gap: v = n_e, 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 || nH.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
+var uH = /*#__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 = Xge, toastOptions: g, dir: _ = lH(), gap: v = e_e, 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 || iH.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
}, []);
- return F.useEffect(() => nH.subscribe((e) => {
+ return F.useEffect(() => iH.subscribe((e) => {
e.dismiss ? requestAnimationFrame(() => {
C((t) => t.map((t) => t.id === e.id ? {
...t,
@@ -45291,7 +45291,7 @@ var cH = /*#__PURE__*/ F.forwardRef(function(e, t) {
let [i, a] = t.split("-");
return w.length ? /*#__PURE__*/ F.createElement("ol", {
key: t,
- dir: _ === "auto" ? sH() : _,
+ dir: _ === "auto" ? lH() : _,
tabIndex: -1,
ref: N,
className: c,
@@ -45301,10 +45301,10 @@ var cH = /*#__PURE__*/ F.forwardRef(function(e, t) {
"data-x-position": a,
style: {
"--front-toast-height": `${E[0]?.height || 0}px`,
- "--width": `${t_e}px`,
+ "--width": `${$ge}px`,
"--gap": `${v}px`,
...m,
- ...s_e(l, u)
+ ...a_e(l, u)
},
onBlur: (e) => {
ne.current && !e.currentTarget.contains(e.relatedTarget) && (ne.current = !1, P.current &&= (P.current.focus({ preventScroll: !0 }), null));
@@ -45322,7 +45322,7 @@ var cH = /*#__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(o_e, {
+ }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ F.createElement(i_e, {
key: n.id,
icons: y,
index: i,
@@ -45352,35 +45352,35 @@ var cH = /*#__PURE__*/ F.forwardRef(function(e, t) {
swipeDirections: e.swipeDirections
}))) : null;
}));
-}), lH = "/api/library-processing", uH = ["library-processing"], c_e = (e, t, n) => {
+}), dH = "/api/library-processing", fH = ["library-processing"], o_e = (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(`${lH}?${r}`, t);
-}, l_e = {
+ 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(`${dH}?${r}`, t);
+}, s_e = {
fetching_cover: "封面",
querying_metadata: "资料"
};
-function dH(e) {
+function pH(e) {
if (e?.status !== "running" || e.current_asset_id == null) return null;
- let t = l_e[e.current_action || ""];
+ let t = s_e[e.current_action || ""];
return !t || (e.waited_seconds || 0) < 120 ? null : {
what: t,
source: e.current_source
};
}
-function fH({ what: e, source: t }) {
+function mH({ what: e, source: t }) {
return `${`${t?.label ? `${t.label} ` : "外部来源"}迟迟没有返回${e}`}。可以先跳过这部,任务结束后再重试。`;
}
-var pH = (e) => !!e && [
+var hH = (e) => !!e && [
"running",
"pausing",
"paused",
"stopping"
-].includes(e.status), mH = (e) => e?.status === "failed" && e.outcome === "partial", hH = "已入库的视频可在全部内容中浏览,未完成项可单独重试。", gH = "/?loc=&thumb=0";
-function _H(e) {
- if (!pH(e)) return "";
+].includes(e.status), gH = (e) => e?.status === "failed" && e.outcome === "partial", _H = "已入库的视频可在全部内容中浏览,未完成项可单独重试。", vH = "/?loc=&thumb=0";
+function yH(e) {
+ if (!hH(e)) return "";
if (e.status === "stopping") return "正在取消,等待当前步骤退出;已取得的结果会保留";
if (e.status === "paused") return "已暂停,继续后更新预估";
if (e.status === "pausing") return "正在暂停,当前步骤结束后暂停";
@@ -45391,30 +45391,30 @@ function _H(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 vH = (e) => B(lH, e);
-async function yH(e) {
+var bH = (e) => B(dH, e);
+async function xH(e) {
await H.fetchQuery({
- queryKey: uH,
- queryFn: () => vH(e)
+ queryKey: fH,
+ queryFn: () => bH(e)
});
}
-var u_e = 2e3, d_e = 1e4, bH = "连接中断,正在重新读取处理进度", f_e = {
+var c_e = 2e3, l_e = 1e4, SH = "连接中断,正在重新读取处理进度", u_e = {
manual: "在网页发起",
scheduled: "定时发起",
startup: "服务启动时自动发起",
cli: "由命令行或托盘发起"
};
-function p_e(e, t) {
+function d_e(e, t) {
return `保存后 Peach 会重新启动。${e.trigger === "cli" ? "这个任务由命令行或托盘发起,在独立进程里运行,不受重启影响。" : e.status === "paused" ? "已暂停的任务会保持暂停,重启后点继续即可接着处理。" : "正在进行的任务会随重启中断,重启后从中断处继续。"}${t ? "勾选的「保存后扫描并补全资料」会排在当前任务之后。" : ""}`;
}
-function m_e(e) {
- let t = f_e[e.trigger || ""];
+function f_e(e) {
+ let t = u_e[e.trigger || ""];
return `当前的扫描与采集任务${t ? `(${t})` : ""}还没结束,等它完成或取消后再开始新的同步`;
}
-function xH(e, t) {
- return pH(e) ? u_e : t ? d_e : !1;
+function CH(e, t) {
+ return hH(e) ? c_e : t ? l_e : !1;
}
-var h_e = {
+var p_e = {
scanning_files: "扫描文件",
reading_local: "检查配套文件",
reading_local_cover: "读取配套图片",
@@ -45423,25 +45423,25 @@ var h_e = {
skipped: "已跳过",
generating_preview: "生成视频预览",
writing_candidates: "保存待确认资料"
-}, SH = {
+}, wH = {
querying_metadata: "没有资料",
fetching_cover: "没有封面"
};
-function g_e(e) {
- let t = Object.entries(e).filter(([e, t]) => SH[e] && t > 0).map(([e, t]) => `${SH[e]} ${t.toLocaleString()} 部`);
+function m_e(e) {
+ let t = Object.entries(e).filter(([e, t]) => wH[e] && t > 0).map(([e, t]) => `${wH[e]} ${t.toLocaleString()} 部`);
return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
}
-function __e(e) {
+function h_e(e) {
if (e.status === "paused") return "已暂停";
if (e.status === "pausing") return "正在暂停";
- let t = h_e[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${dL(e.waited_seconds)}` : "";
+ let t = p_e[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${pL(e.waited_seconds)}` : "";
return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;
}
-function v_e(e) {
- let t = e.total ? `${fL(e.checked, e.total)} 项` : e.current_action === "scanning_files" || e.stage === "扫描文件" ? `已发现 ${(e.scanned || 0).toLocaleString()} 个文件` : "";
- return __e(e) + (t ? ` · ${t}` : "");
+function g_e(e) {
+ let t = e.total ? `${mL(e.checked, e.total)} 项` : e.current_action === "scanning_files" || e.stage === "扫描文件" ? `已发现 ${(e.scanned || 0).toLocaleString()} 个文件` : "";
+ return h_e(e) + (t ? ` · ${t}` : "");
}
-function y_e(e) {
+function __e(e) {
let t = e.issue_preview || [];
return t.length ? {
label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,
@@ -45455,22 +45455,22 @@ function y_e(e) {
log: e.issues_log || ""
} : null;
}
-var CH = "peach.library-processing.announced", b_e = 120;
-function wH(e) {
+var TH = "peach.library-processing.announced", v_e = 120;
+function EH(e) {
let t = e.completed_at == null ? Infinity : Date.now() / 1e3 - e.completed_at;
- return !!e.job_id && t >= 0 && t < b_e;
+ return !!e.job_id && t >= 0 && t < v_e;
}
-function x_e(e, t, n) {
- if (e.status === "complete" && (n || wH(e))) {
+function y_e(e, t, n) {
+ if (e.status === "complete" && (n || EH(e))) {
try {
- if (e.job_id && localStorage.getItem(CH) === e.job_id) return;
- e.job_id && localStorage.setItem(CH, e.job_id);
+ if (e.job_id && localStorage.getItem(TH) === e.job_id) return;
+ e.job_id && localStorage.setItem(TH, 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 TH = qI({
+var DH = YI({
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",
@@ -45487,15 +45487,15 @@ var TH = qI({
secondary: "text-text-secondary active:text-text-primary disabled:text-text-tertiary aria-disabled:text-text-tertiary"
}
});
-function EH({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = q(TH.base, TH.size[t], TH.variant[e], a), l = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
+function OH({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = q(DH.base, DH.size[t], DH.variant[e], a), l = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
n ? /* @__PURE__ */ (0, I.jsx)(n, {
- className: TH.icon[t],
+ className: DH.icon[t],
"aria-hidden": !0
}) : null,
i != null && /* @__PURE__ */ (0, I.jsx)("span", { children: i }),
r ? /* @__PURE__ */ (0, I.jsx)(r, {
- className: TH.icon[t],
+ className: DH.icon[t],
"aria-hidden": !0
}) : null
] });
@@ -45521,7 +45521,7 @@ function EH({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
});
}
// src/react/settings/use-action.ts
-function DH(e = "") {
+function kH(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) {
@@ -45546,10 +45546,10 @@ function DH(e = "") {
};
}
// src/react/library-processing/slow-item.tsx
-function OH({ state: e }) {
- let t = DH(), n = (e) => {
- t.busy || t.run(e.action, (t) => V(lH, e, "POST", t), (e) => {
- H.setQueryData(uH, e), H.invalidateQueries({ queryKey: uH });
+function AH({ state: e }) {
+ let t = kH(), n = (e) => {
+ t.busy || t.run(e.action, (t) => V(dH, e, "POST", t), (e) => {
+ H.setQueryData(fH, e), H.invalidateQueries({ queryKey: fH });
});
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -45561,7 +45561,7 @@ function OH({ state: e }) {
size: "small",
variant: "secondary",
disabled: e.skip_requested,
- ...DV(t.busy === "skip_current"),
+ ...kV(t.busy === "skip_current"),
onClick: () => {
e.job_id && e.current_asset_id != null && n({
action: "skip_current",
@@ -45585,37 +45585,37 @@ function OH({ state: e }) {
]
});
}
-function S_e({ state: e, slow: t }) {
- return /* @__PURE__ */ (0, I.jsx)(SV, {
+function b_e({ state: e, slow: t }) {
+ return /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "warning",
- action: /* @__PURE__ */ (0, I.jsx)(OH, { state: e }),
- children: fH(t)
+ action: /* @__PURE__ */ (0, I.jsx)(AH, { state: e }),
+ children: mH(t)
});
}
-function C_e({ state: e, slow: t }) {
+function x_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: fH(t)
- }), /* @__PURE__ */ (0, I.jsx)(OH, { state: e })]
+ children: mH(t)
+ }), /* @__PURE__ */ (0, I.jsx)(AH, { state: e })]
});
}
// src/react/components/use-moving-surface.ts
-var w_e = {
+var S_e = {
selection: {
- type: Mg,
+ type: Pg,
duration: .16,
bounce: 0
},
hover: {
- type: Mg,
+ type: Pg,
duration: .08,
bounce: 0
}
};
-function kH(e) {
+function jH(e) {
let [t, n] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
if (!t) return;
@@ -45636,7 +45636,7 @@ function kH(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 = eae(n, { transform: [r, E] }, w_e[e]);
+ l = Qie(n, { transform: [r, E] }, S_e[e]);
} else n.style.transform = E;
s = h, c = w, t.dataset.surfaceReady = "";
}, m = (t) => {
@@ -45672,24 +45672,24 @@ function kH(e) {
}, [t, e]), n;
}
// src/react/components/menu-dialog.tsx
-function AH(e) {
- let t = kH("hover");
- return /* @__PURE__ */ (0, I.jsx)(Rz, {
+function MH(e) {
+ let t = jH("hover");
+ return /* @__PURE__ */ (0, I.jsx)(Bz, {
...e,
ref: t
});
}
// src/react/library-processing/processing-effort.tsx
-var jH = [
+var NH = [
"low",
"standard",
"high"
-], MH = [
+], PH = [
"低占用",
"标准",
"全速"
-], NH = TV("snail"), PH = TV("zap");
-function FH({ className: e }) {
+], FH = DV("snail"), IH = DV("zap");
+function LH({ className: e }) {
return /* @__PURE__ */ (0, I.jsxs)("svg", {
className: `processing-effort-double ${e ?? ""}`,
"aria-hidden": "true",
@@ -45720,12 +45720,12 @@ function FH({ className: e }) {
]
});
}
-var T_e = [
- NH,
- PH,
- FH
+var C_e = [
+ FH,
+ IH,
+ LH
];
-function E_e({ animate: e }) {
+function w_e({ animate: e }) {
let [t, n] = (0, F.useState)(document.hidden);
return (0, F.useEffect)(() => {
let e = () => n(document.hidden);
@@ -45757,8 +45757,8 @@ function E_e({ animate: e }) {
} }, t))]
});
}
-function IH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
- let i = Math.max(0, jH.indexOf(e)), [a, o] = (0, F.useState)(i);
+function RH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
+ let i = Math.max(0, NH.indexOf(e)), [a, o] = (0, F.useState)(i);
return (0, F.useEffect)(() => {
t || o(i);
}, [i, t]), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -45769,7 +45769,7 @@ function IH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "text-text-tertiary",
children: "处理强度 "
- }), MH[a]]
+ }), PH[a]]
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "processing-effort-scale text-caption-1-regular text-text-tertiary",
@@ -45777,19 +45777,19 @@ function IH({ 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)(NH, {}), "最慢"]
+ children: [/* @__PURE__ */ (0, I.jsx)(FH, {}), "最慢"]
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-selected": a === 1 || void 0,
- children: [/* @__PURE__ */ (0, I.jsx)(PH, {}), "标准"]
+ children: [/* @__PURE__ */ (0, I.jsx)(IH, {}), "标准"]
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-selected": a === 2 || void 0,
- children: [/* @__PURE__ */ (0, I.jsx)(FH, {}), "最快"]
+ children: [/* @__PURE__ */ (0, I.jsx)(LH, {}), "最快"]
})
]
}),
- /* @__PURE__ */ (0, I.jsxs)(jpe, {
+ /* @__PURE__ */ (0, I.jsxs)(kpe, {
"aria-label": "处理速度",
minValue: 0,
maxValue: 2,
@@ -45798,10 +45798,10 @@ function IH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
isDisabled: t,
onChange: o,
onChangeEnd: (e) => {
- e !== i && n(jH[e]);
+ e !== i && n(NH[e]);
},
className: "processing-effort-slider",
- children: [/* @__PURE__ */ (0, I.jsx)(XL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(QL, {
className: "processing-effort-label",
children: "处理速度"
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -45821,11 +45821,11 @@ function IH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
/* @__PURE__ */ (0, I.jsx)("i", {})
]
}),
- a === 2 ? /* @__PURE__ */ (0, I.jsx)(E_e, { animate: r }) : null,
- /* @__PURE__ */ (0, I.jsx)(Mpe, {
+ a === 2 ? /* @__PURE__ */ (0, I.jsx)(w_e, { animate: r }) : null,
+ /* @__PURE__ */ (0, I.jsx)(Ape, {
className: "processing-effort-hit",
- children: /* @__PURE__ */ (0, I.jsx)(Npe, {
- "aria-label": MH[a],
+ children: /* @__PURE__ */ (0, I.jsx)(jpe, {
+ "aria-label": PH[a],
className: "processing-effort-thumb"
})
})
@@ -45839,8 +45839,8 @@ function IH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
]
});
}
-function D_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, jH.indexOf(e));
+function T_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, NH.indexOf(e));
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "processing-effort-trigger",
"data-speed": e,
@@ -45848,28 +45848,28 @@ function D_e({ value: e, busy: t, onChange: n, animate: r = !0 }) {
ref: i,
size: "small",
variant: "secondary",
- "aria-label": `处理速度:${MH[s]}`,
+ "aria-label": `处理速度:${PH[s]}`,
"aria-haspopup": "dialog",
"aria-expanded": a,
"aria-disabled": t,
- leadingIcon: T_e[s],
- trailingIcon: jB,
+ leadingIcon: C_e[s],
+ trailingIcon: NB,
onClick: () => {
t || o(!a);
},
- children: MH[s]
+ children: PH[s]
})
- }), /* @__PURE__ */ (0, I.jsx)(Tz, {
+ }), /* @__PURE__ */ (0, I.jsx)(Dz, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "top start",
offset: 8,
- className: WV,
- children: /* @__PURE__ */ (0, I.jsx)(AH, {
+ className: KV,
+ children: /* @__PURE__ */ (0, I.jsx)(MH, {
"aria-label": "处理速度",
className: "outline-none",
- children: /* @__PURE__ */ (0, I.jsx)(IH, {
+ children: /* @__PURE__ */ (0, I.jsx)(RH, {
value: e,
busy: t,
onChange: n,
@@ -45879,10 +45879,10 @@ function D_e({ value: e, busy: t, onChange: n, animate: r = !0 }) {
})] });
}
// src/react/library-processing/processing-controls.tsx
-function LH({ state: e, disabled: t = !1 }) {
- let n = DH(), r = (0, F.useRef)(!1), i = pH(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(lH, e, "POST", t), (e) => {
- H.setQueryData(uH, e), H.invalidateQueries({ queryKey: uH });
+function zH({ state: e, disabled: t = !1 }) {
+ let n = kH(), r = (0, F.useRef)(!1), i = hH(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(dH, e, "POST", t), (e) => {
+ H.setQueryData(fH, e), H.invalidateQueries({ queryKey: fH });
});
}, l = () => {
let i = e.job_id;
@@ -45906,7 +45906,7 @@ function LH({ state: e, disabled: t = !1 }) {
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)(D_e, {
+ /* @__PURE__ */ (0, I.jsx)(T_e, {
value: e.speed_mode || "standard",
busy: t || !!n.busy || a,
animate: e.status !== "paused" && e.status !== "pausing",
@@ -45920,11 +45920,11 @@ function LH({ state: e, disabled: t = !1 }) {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: e.status === "paused" ? eV : QB,
+ leadingIcon: e.status === "paused" ? nV : eV,
"aria-label": o,
title: o,
disabled: t || !e.job_id || e.status === "pausing" || a,
- ...DV(n.busy === "pause" || n.busy === "resume"),
+ ...kV(n.busy === "pause" || n.busy === "resume"),
onClick: () => {
e.job_id && c({
action: e.status === "paused" ? "resume" : "pause",
@@ -45936,11 +45936,11 @@ function LH({ state: e, disabled: t = !1 }) {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: sV,
+ leadingIcon: lV,
"aria-label": s,
title: s,
disabled: t || !e.job_id || a,
- ...DV(n.busy === "cancel"),
+ ...kV(n.busy === "cancel"),
onClick: l
}) : null
]
@@ -45952,11 +45952,11 @@ function LH({ state: e, disabled: t = !1 }) {
});
}
// src/react/library-processing/use-library-processing.ts
-function RH({ toast: e, mode: t, monitor: n }) {
+function BH({ toast: e, mode: t, monitor: n }) {
let r = t === "notice" || !!n, i = Pt({
- queryKey: uH,
- queryFn: ({ signal: e }) => vH(e),
- refetchInterval: (e) => xH(e.state.data, r)
+ queryKey: fH,
+ queryFn: ({ signal: e }) => bH(e),
+ refetchInterval: (e) => CH(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;
@@ -45967,8 +45967,8 @@ function RH({ toast: e, mode: t, monitor: n }) {
"pausing",
"paused",
"stopping"
- ].includes(n) && !pH(c);
- r && o(c), (r || t === "notice") && x_e(c, e, r);
+ ].includes(n) && !hH(c);
+ r && o(c), (r || t === "notice") && y_e(c, e, r);
}, [
c,
t,
@@ -45980,38 +45980,38 @@ function RH({ toast: e, mode: t, monitor: n }) {
};
}
// src/react/components/card.tsx
-var O_e = "min-w-0", k_e = {
+var E_e = "min-w-0", D_e = {
filled: "bg-background-secondary-default",
outlined: "border border-separator-border bg-background-primary-default",
raised: "bg-background-primary-default"
-}, A_e = {
+}, O_e = {
default: "rounded-2xl shadow-card",
chart: "rounded-2-5xl",
surface: "rounded-surface",
plain: "rounded-2xl"
-}, j_e = {
+}, k_e = {
line: "border border-border-button-default",
soft: "border border-separator-border",
error: "outline-1 -outline-offset-1 outline-border-error-default"
-}, M_e = {
+}, A_e = {
none: "",
default: "p-5"
-}, N_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", P_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 zH(e = {}) {
+}, j_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", M_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 VH(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 [
- O_e,
- k_e[t],
- A_e[s],
- M_e[n],
- a ? j_e[a] : "",
- r ? N_e : "",
- i ? P_e : "",
+ E_e,
+ D_e[t],
+ O_e[s],
+ A_e[n],
+ a ? k_e[a] : "",
+ r ? j_e : "",
+ i ? M_e : "",
o ?? ""
].filter(Boolean).join(" ");
}
// src/react/components/loading-dots.tsx
-function BH({ label: e }) {
+function HH({ 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",
@@ -46030,21 +46030,21 @@ function BH({ label: e }) {
});
}
// src/react/components/progress.tsx
-var VH = 100, F_e = .4;
-function HH({ 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 * VH;
+var UH = 100, N_e = .4;
+function WH({ 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 * UH;
return /* @__PURE__ */ (0, I.jsxs)("svg", {
role: "progressbar",
"aria-label": e,
"aria-valuemin": 0,
"aria-valuemax": i,
"aria-valuenow": a(t),
- viewBox: `0 0 ${VH} 1`,
+ viewBox: `0 0 ${UH} 1`,
preserveAspectRatio: "none",
className: "h-1.5 w-full overflow-hidden rounded-full",
children: [
/* @__PURE__ */ (0, I.jsx)("rect", {
- width: VH,
+ width: UH,
height: 1,
className: "fill-background-tertiary-default"
}),
@@ -46055,7 +46055,7 @@ function HH({ label: e, value: t, max: n = 100, stops: r = [] }) {
}),
r.map((e) => /* @__PURE__ */ (0, I.jsx)("rect", {
x: o(e),
- width: F_e,
+ width: N_e,
height: 1,
className: "fill-background-secondary-default"
}, e))
@@ -46063,26 +46063,26 @@ function HH({ label: e, value: t, max: n = 100, stops: r = [] }) {
});
}
// src/react/components/task-progress.tsx
-function UH({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
+function GH({ 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" : zH({
+ className: r ? "flex flex-col gap-1.5" : VH({
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)(HH, {
+ children: n && n > 0 ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(WH, {
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)(BH, { label: e })
+ })] }) : /* @__PURE__ */ (0, I.jsx)(HH, { label: e })
});
}
// src/react/library-processing/processing-line.tsx
-function WH(e) {
+function KH(e) {
let [t, n] = (0, F.useState)({
snapshot: e,
seconds: 0
@@ -46098,17 +46098,17 @@ function WH(e) {
return () => window.clearInterval(r);
}, [e, i]);
let a = i && t.snapshot === e ? t.seconds : 0;
- return v_e(a ? {
+ return g_e(a ? {
...e,
waited_seconds: r + a
} : e);
}
-function I_e({ state: e }) {
- return WH(e);
+function P_e({ state: e }) {
+ return KH(e);
}
-function L_e({ state: e }) {
- let t = WH(e);
- return /* @__PURE__ */ (0, I.jsx)(UH, {
+function F_e({ state: e }) {
+ let t = KH(e);
+ return /* @__PURE__ */ (0, I.jsx)(GH, {
embedded: !0,
label: t,
value: Math.min(e.checked || 0, e.total || 0),
@@ -46116,7 +46116,7 @@ function L_e({ state: e }) {
});
}
// src/react/components/collapse-region.tsx
-function GH({ open: e, children: t, ...n }) {
+function qH({ open: e, children: t, ...n }) {
let r = (0, F.useRef)(null), i = (0, F.useRef)(!1);
return (0, F.useLayoutEffect)(() => {
let t = r.current;
@@ -46127,7 +46127,7 @@ function GH({ open: e, children: t, ...n }) {
children: t
});
}
-function KH(e) {
+function JH(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
...e,
"aria-hidden": !0,
@@ -46142,19 +46142,19 @@ function KH(e) {
});
}
// src/react/boardui/components/application/settings/settings-rows.tsx
-function qH({ className: e, children: t }) {
+function YH({ 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 JH({ className: e, children: t }) {
+function XH({ 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 R_e({ label: e, description: t, children: n }) {
+function I_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", {
@@ -46170,7 +46170,7 @@ function R_e({ label: e, description: t, children: n }) {
});
}
// src/react/settings/section.tsx
-function z_e({ title: e, guide: t, icon: n, id: r, aside: i, onSubmit: a, children: o }) {
+function L_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]
@@ -46178,12 +46178,12 @@ function z_e({ title: e, guide: t, icon: n, id: r, aside: i, onSubmit: a, childr
className: "flex w-full flex-wrap items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, I.jsx)("div", {
className: "min-w-40 flex-1",
- children: /* @__PURE__ */ (0, I.jsx)(JH, { children: s })
+ children: /* @__PURE__ */ (0, I.jsx)(XH, { children: s })
}), /* @__PURE__ */ (0, I.jsx)("div", {
className: "flex min-w-0 max-w-full",
children: i
})]
- }) : /* @__PURE__ */ (0, I.jsx)(JH, { children: s }), /* @__PURE__ */ (0, I.jsx)(qH, { children: o })] });
+ }) : /* @__PURE__ */ (0, I.jsx)(XH, { children: s }), /* @__PURE__ */ (0, I.jsx)(YH, { children: o })] });
return a ? /* @__PURE__ */ (0, I.jsx)("form", {
id: r,
"data-guide-target": t,
@@ -46200,13 +46200,13 @@ function z_e({ title: e, guide: t, icon: n, id: r, aside: i, onSubmit: a, childr
children: c
});
}
-function B_e({ children: e }) {
+function R_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 z_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
@@ -46215,7 +46215,7 @@ function V_e({ divided: e = !1, children: t }) {
children: t
});
}
-function H_e({ label: e, html: t }) {
+function B_e({ label: e, html: t }) {
let [n] = (0, F.useState)(t);
return /* @__PURE__ */ (0, I.jsx)("div", {
className: "contents",
@@ -46225,7 +46225,7 @@ function H_e({ label: e, html: t }) {
dangerouslySetInnerHTML: { __html: n }
});
}
-function U_e({ status: e, children: t }) {
+function V_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", {
@@ -46234,34 +46234,34 @@ function U_e({ status: e, children: t }) {
}) : null, t]
});
}
-function YH({ role: e, children: t }) {
+function ZH({ role: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function XH({ children: e }) {
+function QH({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function ZH({ children: e }) {
+function $H({ 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)(EH, {
+function H_e({ href: e, children: t, leadingIcon: n }) {
+ return /* @__PURE__ */ (0, I.jsx)(OH, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
size: "small",
leadingIcon: n,
- trailingIcon: VB,
+ trailingIcon: UB,
className: "min-w-0 max-w-full",
children: /* @__PURE__ */ (0, I.jsx)("span", {
className: "min-w-0 whitespace-normal break-all",
@@ -46269,22 +46269,22 @@ function W_e({ href: e, children: t, leadingIcon: n }) {
})
});
}
-function G_e() {
- return /* @__PURE__ */ (0, I.jsx)(EH, {
+function U_e() {
+ return /* @__PURE__ */ (0, I.jsx)(OH, {
href: "/tasks",
size: "small",
- trailingIcon: MB,
+ trailingIcon: PB,
className: "self-start",
children: "在任务中心查看进度"
});
}
-function K_e({ children: e }) {
+function W_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 G_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", {
@@ -46296,7 +46296,7 @@ function q_e({ term: e, children: t }) {
})]
});
}
-function QH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing: i = !1, onOpenChange: a, contentClassName: o }) {
+function eU({ 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));
@@ -46312,12 +46312,12 @@ function QH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing:
},
className: `${i ? "w-full" : "w-fit"} flex cursor-pointer list-none items-center gap-1 rounded-sm text-body-2-medium text-text-secondary outline-none select-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
children: [
- i ? null : /* @__PURE__ */ (0, I.jsx)(NB, {
+ i ? null : /* @__PURE__ */ (0, I.jsx)(FB, {
"aria-hidden": !0,
className: d ? "size-(--icon-inline) shrink-0 rotate-90 transition-transform" : "size-(--icon-inline) shrink-0 transition-transform"
}),
e,
- i ? /* @__PURE__ */ (0, I.jsx)(NB, {
+ i ? /* @__PURE__ */ (0, I.jsx)(FB, {
"aria-hidden": !0,
className: d ? "ml-auto size-(--icon-inline) shrink-0 -rotate-90 transition-transform" : "ml-auto size-(--icon-inline) shrink-0 rotate-90 transition-transform"
}) : null
@@ -46333,7 +46333,7 @@ function QH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing:
})]
});
}
-function J_e({ name: e }) {
+function K_e({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
"aria-hidden": !0,
"data-source-mark": e,
@@ -46343,34 +46343,34 @@ function J_e({ name: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function $H({ mark: e }) {
+function tU({ 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)(K_e, { name: e });
}
// src/react/components/source-label.tsx
-var eU = (e) => e.startsWith("clouddrive:") ? e.split(":")[1] : e, Y_e = Object.fromEntries(Object.entries(gs).map(([e, t]) => [e, function({ className: e }) {
+var nU = (e) => e.startsWith("clouddrive:") ? e.split(":")[1] : e, q_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)($H, { mark: t })
+ children: /* @__PURE__ */ (0, I.jsx)(tU, { mark: t })
});
}]));
-function X_e({ className: e }) {
+function J_e({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
className: e,
- children: /* @__PURE__ */ (0, I.jsx)($H, { mark: "database" })
+ children: /* @__PURE__ */ (0, I.jsx)(tU, { mark: "database" })
});
}
-var tU = (e) => Y_e[eU(e)] ?? X_e;
-function Z_e({ site: e, label: t }) {
+var rU = (e) => q_e[nU(e)] ?? J_e;
+function Y_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)($H, { mark: "globe" }) : /* @__PURE__ */ (0, I.jsx)("img", {
+ children: [n || !i ? /* @__PURE__ */ (0, I.jsx)(tU, { mark: "globe" }) : /* @__PURE__ */ (0, I.jsx)("img", {
src: i,
alt: "",
className: "size-(--icon-inline) shrink-0 object-contain",
@@ -46378,24 +46378,24 @@ function Z_e({ site: e, label: t }) {
}), /* @__PURE__ */ (0, I.jsx)("span", { children: t })]
});
}
-function nU({ source: e, label: t }) {
- let n = eU(e);
+function iU({ source: e, label: t }) {
+ let n = nU(e);
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, I.jsx)($H, { mark: gs[n] || (n === "local" ? "hard-drive" : "database") }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(tU, { 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 rU = (e) => Yn(e).replace(/\s/g, ""), iU = (e) => e >= 1024 ** 2 && e < 1024 ** 3 ? `${Number((e / 1024 ** 2).toFixed(1))}MB` : rU(e), Q_e = (e, t) => {
- if (e === t) return rU(t);
+var aU = (e) => Yn(e).replace(/\s/g, ""), oU = (e) => e >= 1024 ** 2 && e < 1024 ** 3 ? `${Number((e / 1024 ** 2).toFixed(1))}MB` : aU(e), X_e = (e, t) => {
+ if (e === t) return aU(t);
let [n, r] = Yn(e).split(" "), [i, a] = Yn(t).split(" ");
- return r === a ? `${n}-${i}${a}` : `${rU(e)}-${rU(t)}`;
-}, aU = (e, t, n) => e === void 0 ? Q_e(t, n) : `${e > 0 ? "约 " : ""}${rU(e)}`;
-function oU({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDetailsChange: i }) {
- let a = QV(), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = r ?? o;
+ return r === a ? `${n}-${i}${a}` : `${aU(e)}-${aU(t)}`;
+}, sU = (e, t, n) => e === void 0 ? X_e(t, n) : `${e > 0 ? "约 " : ""}${aU(e)}`;
+function cU({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDetailsChange: i }) {
+ let a = eH(), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = r ?? o;
if (!e) return null;
let u = (e) => e.toLocaleString("zh-CN"), d = !!e.workload || !(!e.inventory || e.inventory.complete) || !!(e.unknown_files && e.inventory?.complete !== !1) || !!e.inventory?.errors;
return /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -46432,7 +46432,7 @@ function oU({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
children: "部分目录无法读取,数量和预估不完整"
}) : null
]
- }), /* @__PURE__ */ (0, I.jsx)(GH, {
+ }), /* @__PURE__ */ (0, I.jsx)(qH, {
open: !n,
"data-processing-estimate": "",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -46446,25 +46446,25 @@ function oU({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
children: [
/* @__PURE__ */ (0, I.jsxs)("p", {
className: "inline-flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, I.jsx)(qB, {
+ children: [/* @__PURE__ */ (0, I.jsx)(YB, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
}), e.inventory && !e.inventory.complete ? "已识别流量" : "预计流量"]
}),
/* @__PURE__ */ (0, I.jsx)("p", {
className: "text-title-3-semibold text-text-primary",
- children: aU(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)
+ children: sU(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)
}),
/* @__PURE__ */ (0, I.jsxs)("p", { children: [
e.unknown_route_estimated_bytes ? "已确认代理" : "代理",
" ",
- aU(e.metered_estimated_bytes, e.metered_estimated_min_bytes, e.metered_estimated_max_bytes)
+ sU(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 ? "约 " : "", rU(e.used_bytes)] }),
+ /* @__PURE__ */ (0, I.jsxs)("span", { children: [e.partial ? "约 " : "", aU(e.used_bytes)] }),
" · 代理 ",
- rU(e.metered_used_bytes)
+ aU(e.metered_used_bytes)
] })
]
}), e.disk ? /* @__PURE__ */ (0, I.jsxs)("section", {
@@ -46473,25 +46473,25 @@ function oU({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
children: [
/* @__PURE__ */ (0, I.jsxs)("p", {
className: "inline-flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, I.jsx)(fV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(mV, {
"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: ["约 ", rU(e.disk.estimated_bytes)]
+ children: ["约 ", aU(e.disk.estimated_bytes)]
}),
- e.disk.temporary_bytes > 0 ? /* @__PURE__ */ (0, I.jsxs)("p", { children: ["抽帧临时文件约 ", iU(e.disk.temporary_bytes)] }) : null,
+ e.disk.temporary_bytes > 0 ? /* @__PURE__ */ (0, I.jsxs)("p", { children: ["抽帧临时文件约 ", oU(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 ? "未取得" : rU(e.free_bytes)
+ e.free_bytes == null ? "未取得" : aU(e.free_bytes)
] }), e.can_fit === !1 ? /* @__PURE__ */ (0, I.jsxs)("p", {
role: "status",
- children: ["空间不足,还差 ", rU(e.shortfall_bytes || 0)]
+ children: ["空间不足,还差 ", aU(e.shortfall_bytes || 0)]
}) : null]
}, e.path)),
e.disk.cache_unknown ? /* @__PURE__ */ (0, I.jsx)("p", {
@@ -46507,7 +46507,7 @@ function oU({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
className: "self-start",
"aria-expanded": l,
"aria-controls": c,
- trailingIcon: l ? Nhe : jB,
+ trailingIcon: l ? jhe : NB,
onClick: () => {
s(!l), i?.(!l);
},
@@ -46526,12 +46526,12 @@ function oU({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 items-start justify-between gap-2",
- children: [e.root ? /* @__PURE__ */ (0, I.jsx)(nU, {
+ children: [e.root ? /* @__PURE__ */ (0, I.jsx)(iU, {
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)($H, { mark: "globe" }), e.label]
+ children: [/* @__PURE__ */ (0, I.jsx)(tU, { mark: "globe" }), e.label]
}), /* @__PURE__ */ (0, I.jsx)("span", {
className: "shrink-0",
children: e.connection === "system" ? "跟随系统" : e.connection === "unknown" ? "连接待确认" : e.metered ? "代理" : "直连"
@@ -46553,7 +46553,7 @@ function oU({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
"待补资料 ",
u(e.workload.pending_jav_titles),
" 部 · 平均约 ",
- iU(e.workload.metadata_average_bytes || 0),
+ oU(e.workload.metadata_average_bytes || 0),
"/部"
]
}) : null,
@@ -46563,8 +46563,8 @@ function oU({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
"已用",
e.unobserved.length ? "约" : "",
" ",
- rU(e.used_bytes)
- ] }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["预计 ", aU(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)] })]
+ aU(e.used_bytes)
+ ] }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["预计 ", sU(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)] })]
})
]
}, e.key))
@@ -46577,15 +46577,15 @@ function oU({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
});
}
// src/react/library-processing/library-processing-notice.tsx
-var sU = "peach.library-processing.collapsed";
-function cU(e) {
+var lU = "peach.library-processing.collapsed";
+function uU(e) {
try {
- return !e || sessionStorage.getItem(sU) !== e;
+ return !e || sessionStorage.getItem(lU) !== e;
} catch {
return !0;
}
}
-function $_e({ value: e, max: t }) {
+function Z_e({ value: e, max: t }) {
let n = Math.max(0, Math.min(100, e / t * 100));
return /* @__PURE__ */ (0, I.jsxs)("svg", {
role: "progressbar",
@@ -46615,17 +46615,17 @@ function $_e({ value: e, max: t }) {
})]
});
}
-function lU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
- let [i, a] = (0, F.useState)(() => cU(e?.job_id)), [o, s] = (0, F.useState)(!1), c = (0, F.useRef)(!1), l = (0, F.useRef)(0), u = i && !o, d = (0, F.useRef)(u);
+function dU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
+ let [i, a] = (0, F.useState)(() => uU(e?.job_id)), [o, s] = (0, F.useState)(!1), c = (0, F.useRef)(!1), l = (0, F.useRef)(0), u = i && !o, d = (0, F.useRef)(u);
d.current = u;
- let f = (0, F.useId)(), [p, m] = (0, F.useState)(!1), h = (0, F.useRef)(null), g = !t && mH(e), _ = e?.status === "failed" && !g, v = pH(e);
+ let f = (0, F.useId)(), [p, m] = (0, F.useState)(!1), h = (0, F.useRef)(null), g = !t && gH(e), _ = e?.status === "failed" && !g, v = hH(e);
(0, F.useEffect)(() => {
- a(cU(e?.job_id)), m(!1);
+ a(uU(e?.job_id)), m(!1);
}, [e?.job_id]);
let y = () => {
if (!(o && (c.current = !0, s(!1), i))) {
try {
- i && e?.job_id ? sessionStorage.setItem(sU, e.job_id) : sessionStorage.removeItem(sU);
+ i && e?.job_id ? sessionStorage.setItem(lU, e.job_id) : sessionStorage.removeItem(lU);
} catch {}
i && m(!1), a(!i);
}
@@ -46655,7 +46655,7 @@ function lU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
r = !0, o.disconnect(), u.disconnect(), window.removeEventListener("resize", a), t.style.removeProperty("--processing-toast-space");
};
}, [n]), e?.archived && !t || !t && !v && !_ && !g) return null;
- let b = t ? null : dH(e), x = !!t || !!e?.stalled || g || !!b, S = g ? "处理已结束,部分项目需处理" : _ ? "扫描与采集已中断" : e?.status === "paused" ? "扫描与采集已暂停" : "扫描与采集";
+ let b = t ? null : pH(e), x = !!t || !!e?.stalled || g || !!b, S = g ? "处理已结束,部分项目需处理" : _ ? "扫描与采集已中断" : e?.status === "paused" ? "扫描与采集已暂停" : "扫描与采集";
return /* @__PURE__ */ (0, I.jsxs)("aside", {
ref: h,
"data-processing-dock": "",
@@ -46669,13 +46669,13 @@ function lU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
children: [
- v && e?.total ? /* @__PURE__ */ (0, I.jsx)($_e, {
+ v && e?.total ? /* @__PURE__ */ (0, I.jsx)(Z_e, {
value: e.checked || 0,
max: e.total
- }) : _ || x ? /* @__PURE__ */ (0, I.jsx)(Whe, {
+ }) : _ || x ? /* @__PURE__ */ (0, I.jsx)(Hhe, {
"aria-hidden": !0,
className: "size-5 shrink-0"
- }) : /* @__PURE__ */ (0, I.jsx)(nge, {
+ }) : /* @__PURE__ */ (0, I.jsx)(ege, {
"aria-hidden": !0,
className: "size-5 shrink-0"
}),
@@ -46687,14 +46687,14 @@ function lU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
}), v ? /* @__PURE__ */ (0, I.jsx)("p", {
"data-processing-eta": "",
className: "text-caption-1-regular text-text-secondary tabular-nums wrap-anywhere",
- children: _H(e)
+ children: yH(e)
}) : null]
}),
/* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: KH,
+ leadingIcon: JH,
"data-processing-toggle": "",
"data-collapse-upward": "",
"aria-label": u ? "收起任务详情" : "展开任务详情",
@@ -46706,24 +46706,24 @@ function lU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: LB,
+ leadingIcon: zB,
"aria-label": "隐藏任务提示",
onClick: r
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(oU, {
+ /* @__PURE__ */ (0, I.jsx)(cU, {
traffic: e?.traffic,
compact: !u,
detailsOpen: p,
onDetailsChange: m
}),
- b ? /* @__PURE__ */ (0, I.jsx)(C_e, {
+ b ? /* @__PURE__ */ (0, I.jsx)(x_e, {
state: e,
slow: b
}) : null
]
- }), /* @__PURE__ */ (0, I.jsx)(GH, {
+ }), /* @__PURE__ */ (0, I.jsx)(qH, {
id: f,
open: u,
"data-processing-body": "",
@@ -46740,14 +46740,14 @@ function lU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
"aria-current": e.status === "current" ? "step" : void 0,
className: q("flex min-h-8 items-center gap-2 text-body-2-regular", e.status === "current" ? "text-text-primary" : "text-text-tertiary"),
children: [
- e.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(Rhe, {
+ e.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(Ihe, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
- }) : /* @__PURE__ */ (0, I.jsx)(zhe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(Lhe, {
"aria-hidden": !0,
className: q("size-(--icon-inline) shrink-0", e.status === "current" && "text-border-focus-ring")
}),
- /* @__PURE__ */ (0, I.jsx)(pE, { children: e.status === "complete" ? "已完成:" : e.status === "current" ? "当前:" : "待处理:" }),
+ /* @__PURE__ */ (0, I.jsx)(hE, { children: e.status === "complete" ? "已完成:" : e.status === "current" ? "当前:" : "待处理:" }),
e.status === "complete" ? /* @__PURE__ */ (0, I.jsx)("s", {
className: "wrap-anywhere",
children: e.label
@@ -46760,11 +46760,11 @@ function lU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
}) : null,
/* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular wrap-anywhere",
- children: t || (_ || g ? e?.error || "请查看并处理未完成项" : /* @__PURE__ */ (0, I.jsx)(I_e, { state: e }))
+ children: t || (_ || g ? e?.error || "请查看并处理未完成项" : /* @__PURE__ */ (0, I.jsx)(P_e, { state: e }))
}),
g ? /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular wrap-anywhere",
- children: hH
+ children: _H
}) : null,
v && e?.stage && !e.steps?.length ? /* @__PURE__ */ (0, I.jsxs)("p", {
className: "text-caption-1-regular text-text-tertiary",
@@ -46778,20 +46778,20 @@ function lU({ 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)(EH, {
+ /* @__PURE__ */ (0, I.jsx)(OH, {
href: "/data-cleanup#libraryProcessing",
variant: "secondary",
size: "small",
- trailingIcon: MB,
+ trailingIcon: PB,
children: t || _ || g ? "打开扫描与采集" : "任务详情"
}),
- g ? /* @__PURE__ */ (0, I.jsx)(EH, {
- href: gH,
+ g ? /* @__PURE__ */ (0, I.jsx)(OH, {
+ href: vH,
size: "small",
- trailingIcon: MB,
+ trailingIcon: PB,
children: "查看全部内容"
}) : null,
- v ? /* @__PURE__ */ (0, I.jsx)(LH, {
+ v ? /* @__PURE__ */ (0, I.jsx)(zH, {
state: e,
disabled: !!t
}) : null
@@ -46801,67 +46801,67 @@ function lU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
})]
});
}
-function eve(e) {
- let { job: t } = RH(e);
- return /* @__PURE__ */ (0, I.jsx)(lU, {
+function Q_e(e) {
+ let { job: t } = BH(e);
+ return /* @__PURE__ */ (0, I.jsx)(dU, {
state: t.data,
- problem: t.isError ? t.data ? bH : cr(t.error) : ""
+ problem: t.isError ? t.data ? SH : cr(t.error) : ""
});
}
// src/react/library-processing/processing-notice-visibility.ts
-var uU = "peach.library-processing.visibility", dU = /* @__PURE__ */ new Set(), fU = "";
-function tve() {
+var fU = "peach.library-processing.visibility", pU = /* @__PURE__ */ new Set(), mU = "";
+function $_e() {
try {
- return sessionStorage.getItem(uU) || "";
+ return sessionStorage.getItem(fU) || "";
} catch {
- return fU;
+ return mU;
}
}
-function nve(e) {
- return dU.add(e), () => {
- dU.delete(e);
+function eve(e) {
+ return pU.add(e), () => {
+ pU.delete(e);
};
}
-function pU(e, t) {
- fU = `${t ? "shown" : "hidden"}:${e}`;
+function hU(e, t) {
+ mU = `${t ? "shown" : "hidden"}:${e}`;
try {
- sessionStorage.setItem(uU, fU);
+ sessionStorage.setItem(fU, mU);
} catch {}
- dU.forEach((e) => e());
+ pU.forEach((e) => e());
}
-function mU(e) {
- let t = (0, F.useSyncExternalStore)(nve, tve, () => "");
+function gU(e) {
+ let t = (0, F.useSyncExternalStore)(eve, $_e, () => "");
return {
hidden: t === `hidden:${e}`,
requested: t === `shown:${e}`
};
}
// src/react/library-processing/library-processing-dock.tsx
-var hU = "peach-library-processing";
-function rve({ toast: e }) {
- let { job: t, settled: n } = RH({
+var _U = "peach-library-processing";
+function tve({ toast: e }) {
+ let { job: t, settled: n } = BH({
toast: e,
mode: "notice"
- }), r = (0, F.useRef)(!1), i = t.data, a = i?.job_id || "unavailable", { hidden: o, requested: s } = mU(a), c = t.isError ? i ? bH : cr(t.error) : "";
+ }), r = (0, F.useRef)(!1), i = t.data, a = i?.job_id || "unavailable", { hidden: o, requested: s } = gU(a), c = t.isError ? i ? SH : cr(t.error) : "";
return (0, F.useEffect)(() => {
- let e = pH(i), t = i?.status === "failed" && (n?.job_id === i.job_id || wH(i));
- o || i?.archived && !c || !e && !c && !t && !(s && i?.status === "failed") ? (r.current && rH.dismiss(hU), r.current = !1) : (rH.custom(() => /* @__PURE__ */ (0, I.jsx)("div", {
+ let e = hH(i), t = i?.status === "failed" && (n?.job_id === i.job_id || EH(i));
+ o || i?.archived && !c || !e && !c && !t && !(s && i?.status === "failed") ? (r.current && aH.dismiss(_U), r.current = !1) : (aH.custom(() => /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, I.jsx)(lU, {
+ children: /* @__PURE__ */ (0, I.jsx)(dU, {
state: i,
problem: c,
measure: !0,
- onHide: () => pU(a, !1)
+ onHide: () => hU(a, !1)
})
}), {
- id: hU,
+ id: _U,
toasterId: "processing",
duration: Infinity,
dismissible: !1,
closeButton: !1,
className: "processing-task-toast",
onDismiss: () => {
- pU(a, !1), r.current = !1;
+ hU(a, !1), r.current = !1;
}
}), r.current = !0);
}, [
@@ -46872,19 +46872,19 @@ function rve({ toast: e }) {
o,
s
]), (0, F.useEffect)(() => () => {
- r.current && rH.dismiss(hU), r.current = !1;
+ r.current && aH.dismiss(_U), r.current = !1;
}, []), null;
}
// src/react/network-banner.tsx
-var ive = ["network-status"], ave = "Peach 连不上外网,资料采集、关注更新和在线来源暂不可用;本机媒体照常浏览和播放。";
-function ove(e) {
+var nve = ["network-status"], rve = "Peach 连不上外网,资料采集、关注更新和在线来源暂不可用;本机媒体照常浏览和播放。";
+function ive(e) {
return e?.state === "online" ? 12e4 : 3e4;
}
-function sve() {
+function ave() {
let e = Pt({
- queryKey: ive,
+ queryKey: nve,
queryFn: ({ signal: e }) => B("/api/network-status", e),
- refetchInterval: (e) => ove(e.state.data),
+ refetchInterval: (e) => ive(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", {
@@ -46895,38 +46895,38 @@ 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: rve })] }), /* @__PURE__ */ (0, I.jsx)("a", {
href: "/settings/network#peachProxy",
children: "检查 Peach 代理"
})]
}), t);
}
// src/react/components/segmented.tsx
-function cve(e) {
- let t = CL(kH("selection"));
- return /* @__PURE__ */ (0, I.jsx)(EB, {
+function ove(e) {
+ let t = TL(jH("selection"));
+ return /* @__PURE__ */ (0, I.jsx)(OB, {
...e,
ref: t
});
}
-function gU(e) {
- let t = CL(kH("selection"));
- return /* @__PURE__ */ (0, I.jsx)(Gz, {
+function vU(e) {
+ let t = TL(jH("selection"));
+ return /* @__PURE__ */ (0, I.jsx)(qz, {
...e,
ref: t
});
}
-var _U = "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", vU = "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", yU = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", bU = "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)", xU = [
+var yU = "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", sve = "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", xU = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", SU = "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)", CU = [
["library", "馆藏"],
["releases", "新作"],
["discover", "发现"],
["wants", "想要"]
-], SU = (e) => xU.some(([t]) => t === e) ? e : "library", CU = (e) => SU(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;
-function uve(e) {
+], wU = (e) => CU.some(([t]) => t === e) ? e : "library", TU = (e) => wU(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;
+function cve(e) {
let t = new URLSearchParams(e);
return t.delete("tab"), t.set("jav", "1"), "/?" + t;
}
-function dve(e) {
+function lve(e) {
let t = new URLSearchParams(location.search);
for (let [n, r] of Object.entries(e)) r ? t.set(n, r) : t.delete(n);
Ep(location.pathname + (t.size ? `?${t}` : ""), {
@@ -46935,24 +46935,24 @@ function dve(e) {
});
}
// src/onboarding/guide-catalog.ts
-var wU = (e, t, n, r, i, a) => ({
+var EU = (e, t, n, r, i, a) => ({
id: e,
title: t,
body: n,
route: r,
target: i,
scope: a
-}), TU = (e, t, n, r, i) => wU(e, t, n, r, i), EU = [
+}), DU = (e, t, n, r, i) => EU(e, t, n, r, i), OU = [
{
id: "basics",
kind: "interface",
title: "认识界面",
summary: "4 步认识搜索、导航、作品详情和设置。",
steps: [
- TU("search", "搜索馆藏", "输入作品名、番号、艺人、厂牌或标签。搜索结果来自已经入库的内容。", "/", "#q, #searchBtn"),
- TU("navigation", "切换浏览入口", "在侧栏按人物、厂牌和标签浏览。手机上用导航按钮展开侧栏;入口与顺序可以在设置里调整。", "/", "#filterBtn, [data-sidebar-nav]"),
- TU("cards", "打开作品详情", "选择作品查看资料、版本和播放入口。首次扫描尚未入库时,可以先继续认识导航。", "/", "[data-media-grid] > [data-id], [data-catalog-row], [data-media-empty]"),
- TU("preferences", "调整自己的界面", "侧栏底部的设置包含显示与播放偏好;手机上先展开侧栏。媒体目录、网络和后台服务放在其中的 Peach 配置入口。", "/", "#settingsBtn, #filterBtn")
+ DU("search", "搜索馆藏", "输入作品名、番号、艺人、厂牌或标签。搜索结果来自已经入库的内容。", "/", "#q, #searchBtn"),
+ DU("navigation", "切换浏览入口", "在侧栏按人物、厂牌和标签浏览。手机上用导航按钮展开侧栏;入口与顺序可以在设置里调整。", "/", "#filterBtn, [data-sidebar-nav]"),
+ DU("cards", "打开作品详情", "选择作品查看资料、版本和播放入口。首次扫描尚未入库时,可以先继续认识导航。", "/", "[data-media-grid] > [data-id], [data-catalog-row], [data-media-empty]"),
+ DU("preferences", "调整自己的界面", "侧栏底部的设置包含显示与播放偏好;手机上先展开侧栏。媒体目录、网络和后台服务放在其中的 Peach 配置入口。", "/", "#settingsBtn, #filterBtn")
]
},
{
@@ -46961,23 +46961,23 @@ var wU = (e, t, n, r, i, a) => ({
title: "找到并播放",
summary: "搜索、筛选、详情、版本、字幕和播放器。",
steps: [
- TU("library", "选择媒体库", "导航顶部可以切换全部媒体库或某个媒体库;手机上先展开侧栏。媒体库把不同目录组织成一组。", "/", "#brandHome, #filterBtn"),
- TU("search", "按关键词找内容", "输入作品、番号或人物名称,结合筛选与排序定位内容。搜索记录数量可在搜索与推荐中设置。", "/", "#q, #searchBtn"),
- TU("filter", "筛选与清除", "多个筛选条件会共同缩小结果。找不到内容时先检查媒体库和筛选条件。", "/", "[data-catalog-frame]"),
+ DU("library", "选择媒体库", "导航顶部可以切换全部媒体库或某个媒体库;手机上先展开侧栏。媒体库把不同目录组织成一组。", "/", "#brandHome, #filterBtn"),
+ DU("search", "按关键词找内容", "输入作品、番号或人物名称,结合筛选与排序定位内容。搜索记录数量可在搜索与推荐中设置。", "/", "#q, #searchBtn"),
+ DU("filter", "筛选与清除", "多个筛选条件会共同缩小结果。找不到内容时先检查媒体库和筛选条件。", "/", "[data-catalog-frame]"),
{
- ...wU("detail", "作品详情", "这里显示当前作品的标题和源文件工具。评分、人物和标签在下方;有分卷或版本的作品可从馆藏卡片进入相应队列。", "/", "[data-item-title]"),
+ ...EU("detail", "作品详情", "这里显示当前作品的标题和源文件工具。评分、人物和标签在下方;有分卷或版本的作品可从馆藏卡片进入相应队列。", "/", "[data-item-title]"),
surface: "detail"
},
{
- ...wU("player", "播放器控件", "底部控制条提供播放、进度、音量和全屏。右侧齿轮打开播放速度、字幕、画面旋转和清晰度等选项。", "/", "#stage .vjs-control-bar"),
+ ...EU("player", "播放器控件", "底部控制条提供播放、进度、音量和全屏。右侧齿轮打开播放速度、字幕、画面旋转和清晰度等选项。", "/", "#stage .vjs-control-bar"),
surface: "player"
},
{
- ...wU("subtitles", "字幕与播放选项", "从播放器齿轮菜单进入字幕,可以选择已有字幕、加载本地字幕文件或搜索字幕;播放速度和清晰度也在这个菜单中。", "/", "#stage [data-player-subtitles]"),
+ ...EU("subtitles", "字幕与播放选项", "从播放器齿轮菜单进入字幕,可以选择已有字幕、加载本地字幕文件或搜索字幕;播放速度和清晰度也在这个菜单中。", "/", "#stage [data-player-subtitles]"),
surface: "subtitles"
},
{
- ...wU("external", "外部播放器", "在这里选择本地播放器、M3U 播放列表或网络播放地址,再点打开。另一台设备需要能访问当前 Peach 地址。", "/", "#stage [data-local-playback-row]"),
+ ...EU("external", "外部播放器", "在这里选择本地播放器、M3U 播放列表或网络播放地址,再点打开。另一台设备需要能访问当前 Peach 地址。", "/", "#stage [data-local-playback-row]"),
surface: "detail"
}
]
@@ -46989,15 +46989,15 @@ var wU = (e, t, n, r, i, a) => ({
summary: "评分、标记、播放列表与当前播放队列。",
steps: [
{
- ...TU("marks", "评分", "点击星星给作品评分;下方的喜欢、稍后看和加入播放列表用于保存感兴趣的内容。", "/", "#stage [data-item-rating]"),
+ ...DU("marks", "评分", "点击星星给作品评分;下方的喜欢、稍后看和加入播放列表用于保存感兴趣的内容。", "/", "#stage [data-item-rating]"),
surface: "detail"
},
{
- ...TU("mark-actions", "标记与加入列表", "喜欢影响口味推荐,稍后看便于回找;加入播放列表可把作品整理到自己的列表。", "/", "#stage [data-item-feedback]"),
+ ...DU("mark-actions", "标记与加入列表", "喜欢影响口味推荐,稍后看便于回找;加入播放列表可把作品整理到自己的列表。", "/", "#stage [data-item-feedback]"),
surface: "detail"
},
- TU("lists", "建立播放列表", "在这里输入名称,创建自己的播放列表。之后从作品详情的加入播放列表按钮添加内容。", "/playlists", "[data-playlist-create]"),
- TU("queue", "从列表开始播放", "选择一张播放列表卡片进入队列,查看和调整播放顺序。没有列表时先创建,再加入作品。", "/playlists", "[data-playlist-card]")
+ DU("lists", "建立播放列表", "在这里输入名称,创建自己的播放列表。之后从作品详情的加入播放列表按钮添加内容。", "/playlists", "[data-playlist-create]"),
+ DU("queue", "从列表开始播放", "选择一张播放列表卡片进入队列,查看和调整播放顺序。没有列表时先创建,再加入作品。", "/playlists", "[data-playlist-card]")
]
},
{
@@ -47006,10 +47006,10 @@ var wU = (e, t, n, r, i, a) => ({
title: "按人物与主题浏览",
summary: "从人物、厂牌和标签继续发现相关馆藏。",
steps: [
- TU("people", "艺人与创作者", "选择人物卡片进入资料页,查看相关作品、照片与已连接的来源。上方可以切换艺人、卖家与在线人物。", "/performers", "[data-index-body] [data-index-cell], [data-index-body] [data-empty-state]"),
- TU("studios", "厂牌", "选择厂牌卡片集中查看作品。资料页中的作品仍会受到当前媒体库范围影响。", "/studios", "[data-index-body] [data-index-cell], [data-index-body] [data-empty-state]"),
- TU("tags", "标签与主题", "选择标签继续浏览相关馆藏;本地与在线使用不同的标签词表。", "/tags", "[data-index-body] [data-alpha-tag], [data-index-body] [data-tag-chip], [data-index-body] [data-empty-state]"),
- TU("manage-tags", "管理标签", "铅笔按钮打开标签管理,用于整理标签名称和关系;再次点击返回浏览。", "/tags", "[data-tag-mode]")
+ DU("people", "艺人与创作者", "选择人物卡片进入资料页,查看相关作品、照片与已连接的来源。上方可以切换艺人、卖家与在线人物。", "/performers", "[data-index-body] [data-index-cell], [data-index-body] [data-empty-state]"),
+ DU("studios", "厂牌", "选择厂牌卡片集中查看作品。资料页中的作品仍会受到当前媒体库范围影响。", "/studios", "[data-index-body] [data-index-cell], [data-index-body] [data-empty-state]"),
+ DU("tags", "标签与主题", "选择标签继续浏览相关馆藏;本地与在线使用不同的标签词表。", "/tags", "[data-index-body] [data-alpha-tag], [data-index-body] [data-tag-chip], [data-index-body] [data-empty-state]"),
+ DU("manage-tags", "管理标签", "铅笔按钮打开标签管理,用于整理标签名称和关系;再次点击返回浏览。", "/tags", "[data-tag-mode]")
]
},
{
@@ -47018,10 +47018,10 @@ var wU = (e, t, n, r, i, a) => ({
title: "JAV 与追新",
summary: "馆藏、新作、想要清单与高清版。",
steps: [
- TU("library", "JAV 馆藏", "按番号、出演者和厂牌查找已入库的作品,可以选择官方封面或预览图。", CU("library"), "[data-catalog-frame]"),
- TU("new", "发现推荐", "发现页按口味推荐作品。在这里切换馆藏或外部内容,并按标签筛选。", CU("discover"), "[data-jav-filter] [data-catalog-views]"),
- TU("wants", "查看想要清单", "喜欢的外部作品可以加入想要清单;在这里切换馆藏、发现与想要。", CU("discover"), "[aria-label=\"JAV 分区\"]"),
- TU("quality", "高清版", "待升级卡片列出当前版本信息和判定原因,可以查看版本或查找资源;没有目标时这里显示空状态。", "/quality-goals", "[data-goal-id], #main [data-empty-state]")
+ DU("library", "JAV 馆藏", "按番号、出演者和厂牌查找已入库的作品,可以选择官方封面或预览图。", TU("library"), "[data-catalog-frame]"),
+ DU("new", "发现推荐", "发现页按口味推荐作品。在这里切换馆藏或外部内容,并按标签筛选。", TU("discover"), "[data-jav-filter] [data-catalog-views]"),
+ DU("wants", "查看想要清单", "喜欢的外部作品可以加入想要清单;在这里切换馆藏、发现与想要。", TU("discover"), "[aria-label=\"JAV 分区\"]"),
+ DU("quality", "高清版", "待升级卡片列出当前版本信息和判定原因,可以查看版本或查找资源;没有目标时这里显示空状态。", "/quality-goals", "[data-goal-id], #main [data-empty-state]")
]
},
{
@@ -47030,9 +47030,9 @@ var wU = (e, t, n, r, i, a) => ({
title: "关注创作者",
summary: "多来源更新、同作品合并和来源状态。",
steps: [
- TU("feed", "集中看关注更新", "来自不同来源的创作者更新汇集在这里,选择一项更新查看内容;尚未关注来源时,按空状态中的入口添加。", "/follow", "[data-follow-item], [data-follow-empty] [data-empty-state]"),
- TU("sources", "管理关注来源", "从列表查看启用状态、采集结果和失败原因;切换到添加区域,添加创作者或订阅来源。", "/subscriptions", "[aria-label=\"关注管理区域\"]"),
- TU("credentials", "按需配置凭据", "部分来源需要登录凭据;先确认要启用的来源,再展开对应站点,填写其要求的信息。", "/settings/subscriptions", "[data-guide-target=\"credentials\"]")
+ DU("feed", "集中看关注更新", "来自不同来源的创作者更新汇集在这里,选择一项更新查看内容;尚未关注来源时,按空状态中的入口添加。", "/follow", "[data-follow-item], [data-follow-empty] [data-empty-state]"),
+ DU("sources", "管理关注来源", "从列表查看启用状态、采集结果和失败原因;切换到添加区域,添加创作者或订阅来源。", "/subscriptions", "[aria-label=\"关注管理区域\"]"),
+ DU("credentials", "按需配置凭据", "部分来源需要登录凭据;先确认要启用的来源,再展开对应站点,填写其要求的信息。", "/settings/subscriptions", "[data-guide-target=\"credentials\"]")
]
},
{
@@ -47041,9 +47041,9 @@ var wU = (e, t, n, r, i, a) => ({
title: "专注观看",
summary: "播放墙、沉浸模式与详情小窗。",
steps: [
- TU("wall", "播放墙", "播放墙提供多画面观看入口。结束导览后点击进入,再选择要播放的内容。", "/", "#wallBtn"),
- TU("immerse", "沉浸模式", "沉浸模式适合连续观看。点击入口会进入观看流程,请在准备好播放时使用。", "/", "#immerseBtn"),
- TU("mini", "离开详情后继续看", "开启小窗播放后,离开详情可以继续观看。自动播放、小窗和快进步长都在浏览与播放设置中。", "/settings/playback", "#miniplayerSetting")
+ DU("wall", "播放墙", "播放墙提供多画面观看入口。结束导览后点击进入,再选择要播放的内容。", "/", "#wallBtn"),
+ DU("immerse", "沉浸模式", "沉浸模式适合连续观看。点击入口会进入观看流程,请在准备好播放时使用。", "/", "#immerseBtn"),
+ DU("mini", "离开详情后继续看", "开启小窗播放后,离开详情可以继续观看。自动播放、小窗和快进步长都在浏览与播放设置中。", "/settings/playback", "#miniplayerSetting")
]
},
{
@@ -47052,11 +47052,11 @@ var wU = (e, t, n, r, i, a) => ({
title: "整理与维护",
summary: "扫描、补资料、复核、文件整理与回收站。",
steps: [
- TU("scan", "扫描与补资料", "在媒体库处理区域选择扫描和资料处理范围。读取策略取决于媒体库配置;导览不会启动任务。", "/data-cleanup", "#libraryProcessing"),
- TU("review", "人工复核", "先按分类找到待复核资料,再查看项目的来源和证据后作决定。", "/review", "[aria-labelledby=\"reviewcategories\"]"),
- TU("organize", "文件整理", "文件整理先查看预览,确认命名与目标目录再执行。资料整理和真实文件操作有不同的影响范围。", "/data-cleanup", "[data-cleanup-organize]"),
- TU("trash", "回收站", "查看已移入回收站的作品,按需要恢复或处理。永久删除前认真核对确认框中的范围。", "/trash", "[data-media-grid] > [data-id], [data-catalog-row], [data-media-empty]"),
- TU("tasks", "任务与失败原因", "任务记录显示处理状态;展开记录查看详情与失败原因。还没有任务时,这里会说明哪些操作会留下记录。", "/tasks", "[data-run-id], #main [data-empty-state]")
+ DU("scan", "扫描与补资料", "在媒体库处理区域选择扫描和资料处理范围。读取策略取决于媒体库配置;导览不会启动任务。", "/data-cleanup", "#libraryProcessing"),
+ DU("review", "人工复核", "先按分类找到待复核资料,再查看项目的来源和证据后作决定。", "/review", "[aria-labelledby=\"reviewcategories\"]"),
+ DU("organize", "文件整理", "文件整理先查看预览,确认命名与目标目录再执行。资料整理和真实文件操作有不同的影响范围。", "/data-cleanup", "[data-cleanup-organize]"),
+ DU("trash", "回收站", "查看已移入回收站的作品,按需要恢复或处理。永久删除前认真核对确认框中的范围。", "/trash", "[data-media-grid] > [data-id], [data-catalog-row], [data-media-empty]"),
+ DU("tasks", "任务与失败原因", "任务记录显示处理状态;展开记录查看详情与失败原因。还没有任务时,这里会说明哪些操作会留下记录。", "/tasks", "[data-run-id], #main [data-empty-state]")
]
},
{
@@ -47065,10 +47065,10 @@ var wU = (e, t, n, r, i, a) => ({
title: "了解自己的馆藏",
summary: "统计、口味,以及浏览历史和书签来源。",
steps: [
- TU("stats", "馆藏统计", "选择统计视图查看馆藏、存储和观看情况,各视图中的入口可继续查看相关作品。", "/stats", "[aria-label=\"统计视图\"]"),
- TU("taste", "口味与记录", "在这里切换浏览器记录与 Peach 观看评价,分析各自的口味。", "/taste", "[aria-label=\"口味分析的数据来源\"]"),
- TU("import", "取得浏览历史与书签", "读取浏览器记录需要在运行 Peach 的电脑操作;更多方式菜单可以导入历史或书签文件,适合其它设备。", "/taste", "[data-guide-target=\"history-import\"]"),
- TU("history", "管理记录来源", "已取得的记录来源集中列在这里,可以停用本机浏览器读取或移除已导入的数据源;导览不会修改这些记录。", "/taste", "section[aria-label=\"数据源\"]")
+ DU("stats", "馆藏统计", "选择统计视图查看馆藏、存储和观看情况,各视图中的入口可继续查看相关作品。", "/stats", "[aria-label=\"统计视图\"]"),
+ DU("taste", "口味与记录", "在这里切换浏览器记录与 Peach 观看评价,分析各自的口味。", "/taste", "[aria-label=\"口味分析的数据来源\"]"),
+ DU("import", "取得浏览历史与书签", "读取浏览器记录需要在运行 Peach 的电脑操作;更多方式菜单可以导入历史或书签文件,适合其它设备。", "/taste", "[data-guide-target=\"history-import\"]"),
+ DU("history", "管理记录来源", "已取得的记录来源集中列在这里,可以停用本机浏览器读取或移除已导入的数据源;导览不会修改这些记录。", "/taste", "section[aria-label=\"数据源\"]")
]
},
{
@@ -47077,9 +47077,9 @@ var wU = (e, t, n, r, i, a) => ({
title: "从外部加入内容",
summary: "云下载、目录映射与浏览器添加。",
steps: [
- TU("downloads", "配置下载渠道", "先连接支持的渠道,再指定云端目标目录与本地媒体目录。下载完成后按目录规则入库。", "/settings/downloads", "[data-guide-target=\"download\"]"),
- TU("search", "搜索资源", "资源搜索使用配置的索引器。查到结果后还需要你主动选择下载。", "/settings/subscriptions", "[data-guide-target=\"indexers\"]"),
- TU("browser", "浏览器添加 JAV", "用户脚本与 Peach 配对后可从浏览器添加作品。专用令牌、默认渠道和开关在下载渠道里管理。", "/settings/downloads", "[data-guide-target=\"browser\"]")
+ DU("downloads", "配置下载渠道", "先连接支持的渠道,再指定云端目标目录与本地媒体目录。下载完成后按目录规则入库。", "/settings/downloads", "[data-guide-target=\"download\"]"),
+ DU("search", "搜索资源", "资源搜索使用配置的索引器。查到结果后还需要你主动选择下载。", "/settings/subscriptions", "[data-guide-target=\"indexers\"]"),
+ DU("browser", "浏览器添加 JAV", "用户脚本与 Peach 配对后可从浏览器添加作品。专用令牌、默认渠道和开关在下载渠道里管理。", "/settings/downloads", "[data-guide-target=\"browser\"]")
]
},
{
@@ -47088,18 +47088,18 @@ var wU = (e, t, n, r, i, a) => ({
title: "手机与其他设备",
summary: "访问地址、密码、局域网和公网入口。",
steps: [
- TU("address", "找到访问地址", "同一局域网的设备使用 Peach 的局域网地址。仅本机访问时,其它设备无法连接。", "/settings/network", "[data-guide-target=\"port\"]"),
- TU("password", "访问密码", "能连接到 Peach 的设备按访问密码登录。显示偏好与访问权限是不同的设置。", "/settings/network", "[data-guide-target=\"access\"]"),
- TU("tunnel", "需要时启用公网入口", "Cloudflare 公网入口适合离开局域网后访问,需要按实际部署配置连接信息。", "/settings/network", "[data-guide-target=\"tunnel\"]")
+ DU("address", "找到访问地址", "同一局域网的设备使用 Peach 的局域网地址。仅本机访问时,其它设备无法连接。", "/settings/network", "[data-guide-target=\"port\"]"),
+ DU("password", "访问密码", "能连接到 Peach 的设备按访问密码登录。显示偏好与访问权限是不同的设置。", "/settings/network", "[data-guide-target=\"access\"]"),
+ DU("tunnel", "需要时启用公网入口", "Cloudflare 公网入口适合离开局域网后访问,需要按实际部署配置连接信息。", "/settings/network", "[data-guide-target=\"tunnel\"]")
]
}
-], fve = "当前浏览器 · 修改后自动保存", DU = "跟随馆藏 · 修改后自动保存", OU = "运行 Peach 的电脑 · 确认后保存配置", kU = (e, t, n = fve) => t.map(([t, r, i, a, o]) => wU(t, r, i, `/settings/${e}`, a || `[data-guide-target="${t}"]`, o || n)), AU = [
+], uve = "当前浏览器 · 修改后自动保存", kU = "跟随馆藏 · 修改后自动保存", AU = "运行 Peach 的电脑 · 确认后保存配置", jU = (e, t, n = uve) => t.map(([t, r, i, a, o]) => EU(t, r, i, `/settings/${e}`, a || `[data-guide-target="${t}"]`, o || n)), MU = [
{
id: "appearance",
kind: "settings",
title: Ef.appearance,
summary: "主题、光晕与导航入口。",
- steps: kU("appearance", [
+ steps: jU("appearance", [
[
"theme",
"主题",
@@ -47129,7 +47129,7 @@ var wU = (e, t, n, r, i, a) => ({
"导航入口与顺序",
"把常用入口放到侧栏,拖动调整顺序。",
"[data-sidebar-setting]",
- DU
+ kU
]
])
},
@@ -47138,7 +47138,7 @@ var wU = (e, t, n, r, i, a) => ({
kind: "settings",
title: Ef.playback,
summary: "列表呈现、悬停预览与播放行为。",
- steps: kU("playback", [
+ steps: jU("playback", [
[
"batch",
"每批作品",
@@ -47194,13 +47194,13 @@ var wU = (e, t, n, r, i, a) => ({
kind: "settings",
title: Ef.jav,
summary: "封面与新作筛选。",
- steps: kU("jav", [
+ steps: jU("jav", [
[
"names",
"女优名称",
"选择中文或日文名称;偏好跟随馆藏,其他设备读取同一份设置。",
"#performerNameLanguageSetting",
- DU
+ kU
],
[
"image",
@@ -47225,21 +47225,21 @@ var wU = (e, t, n, r, i, a) => ({
"隐藏大合集",
"过滤新作中的大合集,只影响新作展示,馆藏仍可查找。",
"#feedHideGroupSetting",
- DU
+ kU
],
[
"solo-compilations",
"隐藏单人合集",
"过滤新作中的单人合集,只影响新作展示,馆藏仍可查找。",
"#feedHideSoloSetting",
- DU
+ kU
],
[
"excerpts",
"隐藏切片",
"过滤新作中的切片,只影响新作展示,馆藏仍可查找。",
"#feedHideExcerptSetting",
- DU
+ kU
]
])
},
@@ -47248,12 +47248,12 @@ var wU = (e, t, n, r, i, a) => ({
kind: "settings",
title: Ef.search,
summary: "搜索记录、推荐数量与口味入口。",
- steps: [...kU("search", [[
+ steps: [...jU("search", [[
"history",
"搜索记录",
"设置保留的搜索记录上限,0 表示不记录。",
"#searchHistoryLimitSetting"
- ]], DU), ...kU("search", [[
+ ]], kU), ...jU("search", [[
"related",
"相关推荐数量",
"决定详情中显示多少项相关推荐。口味和记录来源在口味页面管理。",
@@ -47265,7 +47265,7 @@ var wU = (e, t, n, r, i, a) => ({
kind: "settings",
title: Ef.content,
summary: "SFW 模式与画面显示。",
- steps: kU("content", [[
+ steps: jU("content", [[
"sfw",
"SFW 模式",
"隐藏敏感画面并停止悬停预览,适合需要遮挡画面的环境。访问控制请另设访问密码。",
@@ -47277,7 +47277,7 @@ var wU = (e, t, n, r, i, a) => ({
kind: "settings",
title: Df.library,
summary: "媒体库、目录、读取与处理方式。",
- steps: kU("library", [
+ steps: jU("library", [
[
"media",
"媒体库名称与外观",
@@ -47328,14 +47328,14 @@ var wU = (e, t, n, r, i, a) => ({
"视频预览",
"生成视频预览会读取视频并产生缓存。时间轴预览的开关与采集间隔控制本机磁盘缩略图;抽帧解码方式决定生成预览使用的解码器。修改后自动保存,并受媒体库处理方式与读取策略约束。"
]
- ], OU)
+ ], AU)
},
{
id: "subscriptions",
kind: "settings",
title: Df.subscriptions,
summary: "资料来源、关注、索引器与站点入口。",
- steps: kU("subscriptions", [
+ steps: jU("subscriptions", [
[
"sources",
"采集来源与登录状态",
@@ -47362,14 +47362,14 @@ var wU = (e, t, n, r, i, a) => ({
"作品资料站点",
"配置资料站点和镜像入口,用于打开相关作品页面。地址和登录凭据分别管理。"
]
- ], OU)
+ ], AU)
},
{
id: "downloads",
kind: "settings",
title: Df.downloads,
summary: "云下载目录、账号与浏览器配对。",
- steps: kU("downloads", [
+ steps: jU("downloads", [
[
"download",
"云下载",
@@ -47385,14 +47385,14 @@ var wU = (e, t, n, r, i, a) => ({
"浏览器添加 JAV",
"安装用户脚本并配对 Peach。默认渠道决定提交到哪里;启用开关控制功能,专用令牌可更新或关闭,脚本检测帮助确认配对。"
]
- ], OU)
+ ], AU)
},
{
id: "network",
kind: "settings",
title: Df.network,
summary: "访问端口、代理、密码和公网入口。",
- steps: kU("network", [
+ steps: jU("network", [
[
"port",
"访问地址与端口",
@@ -47413,14 +47413,14 @@ var wU = (e, t, n, r, i, a) => ({
"Cloudflare 公网入口",
"临时链接用于临时连接,命名隧道使用主机名与隧道令牌。连接状态显示是否已可用,按需要启用。"
]
- ], OU)
+ ], AU)
},
{
id: "app-maintenance",
kind: "settings",
title: Df.maintenance,
summary: "更新、存储、数据选择与应用维护。",
- steps: kU("maintenance", [
+ steps: jU("maintenance", [
[
"updates",
"检查更新",
@@ -47461,14 +47461,14 @@ var wU = (e, t, n, r, i, a) => ({
"卸载 Peach",
"卸载移除程序;完全卸载还移除设置、资料库、记录、凭据和缓存。执行前核对页面列出的数据目录与确认内容。"
]
- ], OU)
+ ], AU)
},
{
id: "diagnostics",
kind: "settings",
title: Df.diagnostics,
summary: "遇到问题时查看检查项与诊断报告。",
- steps: kU("diagnostics", [
+ steps: jU("diagnostics", [
[
"attention",
"需要关注的检查项",
@@ -47493,7 +47493,7 @@ var wU = (e, t, n, r, i, a) => ({
]
], "只读检查 · 重新检查与下载由你主动执行")
}
-], pve = {
+], dve = {
glow: [
["配色预设", "一次应用一组配色和参数,适合先挑选整体外观。"],
["强度", "控制光晕的明亮程度;太抢眼时降低。"],
@@ -47600,8 +47600,8 @@ var wU = (e, t, n, r, i, a) => ({
["上传预览", "查看本次会包含的内容,再决定是否启用明细上传。"]
]
};
-for (let e of AU) for (let t of e.steps) t.details = pve[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 jU = [...EU, ...AU], mve = [
+for (let e of MU) for (let t of e.steps) t.details = dve[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 NU = [...OU, ...MU], fve = [
{
id: "browse",
kind: "interface",
@@ -47679,35 +47679,35 @@ var jU = [...EU, ...AU], mve = [
]
}
];
-function hve(e) {
- return e === "/" ? EU[0] : AU.find((t) => t.steps[0]?.route === e) || EU.find((t) => t.id !== "basics" && t.steps.some((t) => t.route === e)) || EU[0];
+function pve(e) {
+ return e === "/" ? OU[0] : MU.find((t) => t.steps[0]?.route === e) || OU.find((t) => t.id !== "basics" && t.steps.some((t) => t.route === e)) || OU[0];
}
// src/onboarding/guide-state.ts
-var gve = () => ({
+var mve = () => ({
version: 1,
campaign: "",
invited: !1,
completed: !1,
chapters: {}
});
-function MU(e, t) {
+function PU(e, t) {
let n = e.chapters[t.id]?.read || [];
return t.steps.every((e) => n.includes(e.id));
}
-function _ve(e, t) {
+function hve(e, t) {
let n = e.chapters[t.id];
- return !n || MU(e, t) ? 0 : n.next < t.steps.length ? n.next : t.steps.findIndex((e) => !n.read.includes(e.id));
+ return !n || PU(e, t) ? 0 : n.next < t.steps.length ? n.next : t.steps.findIndex((e) => !n.read.includes(e.id));
}
-function vve() {
+function gve() {
return B("/api/tutorial-progress");
}
-function yve(e, t) {
+function _ve(e, t) {
return V("/api/tutorial-progress", {
campaign: e,
...t
});
}
-function bve(e, t, n, r, i) {
+function vve(e, t, n, r, i) {
let a = e.chapters[t] || {
next: 0,
read: [],
@@ -47725,68 +47725,68 @@ function bve(e, t, n, r, i) {
}
};
}
-var NU = null, PU = /* @__PURE__ */ new Set();
-function FU(e = {}) {
- PU.size || (NU = e);
- for (let t of PU) t(e);
+var FU = null, IU = /* @__PURE__ */ new Set();
+function LU(e = {}) {
+ IU.size || (FU = e);
+ for (let t of IU) t(e);
}
-function xve(e) {
- if (PU.add(e), NU) {
- let t = NU;
- NU = null, queueMicrotask(() => {
- PU.has(e) && e(t);
+function yve(e) {
+ if (IU.add(e), FU) {
+ let t = FU;
+ FU = null, queueMicrotask(() => {
+ IU.has(e) && e(t);
});
}
return () => {
- PU.delete(e);
+ IU.delete(e);
};
}
// src/react/onboarding/guide-directory.tsx
-var Sve = {
- browse: iV,
- collect: FB,
- watch: $B,
- manage: GB,
- experience: ZB,
- discovery: rV,
- storage: zB,
- system: aV
-}, Cve = {
- basics: RB,
- "find-play": iV,
- entities: lV,
- jav: UB,
- save: FB,
- follow: rV,
- insights: PB,
- viewing: $B,
- devices: oV,
- external: BB,
- maintenance: cV,
- appearance: ZB,
- playback: $B,
- content: HB,
- "search-settings": iV,
- "jav-settings": UB,
- subscriptions: rV,
- library: zB,
- downloads: BB,
- network: oV,
- "app-maintenance": cV,
- diagnostics: sge
+var bve = {
+ browse: oV,
+ collect: LB,
+ watch: tV,
+ manage: qB,
+ experience: $B,
+ discovery: aV,
+ storage: VB,
+ system: sV
+}, xve = {
+ basics: BB,
+ "find-play": oV,
+ entities: dV,
+ jav: GB,
+ save: LB,
+ follow: aV,
+ insights: IB,
+ viewing: tV,
+ devices: cV,
+ external: HB,
+ maintenance: uV,
+ appearance: $B,
+ playback: tV,
+ content: WB,
+ "search-settings": oV,
+ "jav-settings": GB,
+ subscriptions: aV,
+ library: VB,
+ downloads: HB,
+ network: cV,
+ "app-maintenance": uV,
+ diagnostics: age
};
-function wve({ chapter: e, className: t = "size-5" }) {
- let n = Cve[e] || RB;
+function Sve({ chapter: e, className: t = "size-5" }) {
+ let n = xve[e] || BB;
return /* @__PURE__ */ (0, I.jsx)(n, {
"aria-hidden": !0,
className: q(t, "shrink-0")
});
}
-function IU({ icon: e, title: t, description: n, children: r, completed: i = !1 }) {
+function RU({ 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: zH({
+ className: VH({
radius: "plain",
className: "flex flex-col gap-4"
}),
@@ -47815,8 +47815,8 @@ function IU({ icon: e, title: t, description: n, children: r, completed: i = !1
})]
});
}
-function LU({ chapter: e, progress: t, loading: n, start: r }) {
- let i = MU(t, e), a = !i && !!t.chapters[e.id];
+function zU({ chapter: e, progress: t, loading: n, start: r }) {
+ let i = PU(t, e), a = !i && !!t.chapters[e.id];
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
disabled: n,
@@ -47826,7 +47826,7 @@ function LU({ chapter: e, progress: t, loading: n, start: r }) {
children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "peach-guide-topic-icon",
- children: /* @__PURE__ */ (0, I.jsx)(wve, { chapter: e.id })
+ children: /* @__PURE__ */ (0, I.jsx)(Sve, { chapter: e.id })
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex min-w-0 flex-1 flex-col gap-1",
@@ -47838,7 +47838,7 @@ function LU({ chapter: e, progress: t, loading: n, start: r }) {
children: e.summary
})]
}),
- i ? /* @__PURE__ */ (0, I.jsx)(RU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
+ i ? /* @__PURE__ */ (0, I.jsx)(BU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
className: "shrink-0 text-caption-1-regular tabular-nums text-text-secondary",
children: [
a ? "继续 · " : "",
@@ -47846,17 +47846,17 @@ function LU({ chapter: e, progress: t, loading: n, start: r }) {
" 步"
]
}),
- /* @__PURE__ */ (0, I.jsx)(NB, {
+ /* @__PURE__ */ (0, I.jsx)(FB, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0 text-text-secondary"
})
]
});
}
-function RU() {
+function BU() {
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)(IB, {
+ children: [/* @__PURE__ */ (0, I.jsx)(RB, {
"aria-hidden": !0,
className: "size-4"
}), /* @__PURE__ */ (0, I.jsx)("span", {
@@ -47865,17 +47865,17 @@ function RU() {
})]
});
}
-function Tve({ kind: e, query: t, setQuery: n, context: r, progress: i, loading: a, start: o }) {
- let [s, c] = (0, F.useState)(null), l = jU.find((t) => t.id === (e === "interface" ? "basics" : "appearance")), u = MU(i, l), d = !u && !!i.chapters[l.id], f = t.trim().toLowerCase(), p = jU.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 Cve({ kind: e, query: t, setQuery: n, context: r, progress: i, loading: a, start: o }) {
+ let [s, c] = (0, F.useState)(null), l = NU.find((t) => t.id === (e === "interface" ? "basics" : "appearance")), u = PU(i, l), d = !u && !!i.chapters[l.id], f = t.trim().toLowerCase(), p = NU.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)(IU, {
+ /* @__PURE__ */ (0, I.jsxs)(RU, {
completed: u,
- icon: e === "interface" ? RB : aV,
+ icon: e === "interface" ? BB : sV,
title: e === "interface" ? "先认识 Peach" : "按习惯调整 Peach",
description: e === "interface" ? "先用 4 步认识常用入口,其余功能用到时再看。" : "先了解外观与导航,其余设置按需要查看。",
- children: [u ? /* @__PURE__ */ (0, I.jsx)(RU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [u ? /* @__PURE__ */ (0, I.jsx)(BU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
className: "text-body-2-regular text-text-secondary",
children: [l.steps.length, " 步 · 随时可以退出"]
}), /* @__PURE__ */ (0, I.jsx)(J, {
@@ -47888,26 +47888,26 @@ function Tve({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:
})
})]
}),
- /* @__PURE__ */ (0, I.jsx)(gV, {
+ /* @__PURE__ */ (0, I.jsx)(vV, {
"aria-label": "搜索教程",
value: t,
onChange: n,
- children: /* @__PURE__ */ (0, I.jsx)(vV, {
+ children: /* @__PURE__ */ (0, I.jsx)(bV, {
type: "search",
placeholder: e === "settings" ? "搜索设置名称或用途" : "搜索功能或页面",
- leadingIcon: iV
+ leadingIcon: oV
})
}),
f ? p.length ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-guide-chapters",
- children: p.map((e) => /* @__PURE__ */ (0, I.jsx)(LU, {
+ children: p.map((e) => /* @__PURE__ */ (0, I.jsx)(zU, {
chapter: e,
progress: i,
loading: a,
start: o
}, e.id))
- }) : /* @__PURE__ */ (0, I.jsx)(CV, {
- icon: iV,
+ }) : /* @__PURE__ */ (0, I.jsx)(TV, {
+ icon: oV,
title: "没有匹配的教程",
size: "compact",
children: "试试功能名或设置名称。"
@@ -47925,12 +47925,12 @@ function Tve({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:
}) : null]
}), /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-guide-topics",
- children: mve.filter((t) => t.kind === e).map((e) => {
- let t = Sve[e.id];
+ children: fve.filter((t) => t.kind === e).map((e) => {
+ let t = bve[e.id];
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-guide-topic": e.id,
className: "peach-guide-topic",
- children: /* @__PURE__ */ (0, I.jsx)(QH, {
+ children: /* @__PURE__ */ (0, I.jsx)(eU, {
trailing: !0,
isOpen: s === e.id,
onOpenChange: (t) => c(t ? e.id : null),
@@ -47955,8 +47955,8 @@ function Tve({ 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)(LU, {
- chapter: jU.find((t) => t.id === e),
+ children: e.chapters.map((e) => /* @__PURE__ */ (0, I.jsx)(zU, {
+ chapter: NU.find((t) => t.id === e),
progress: i,
loading: a,
start: o
@@ -47970,14 +47970,14 @@ function Tve({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:
});
}
// src/onboarding/guide-entry.ts
-var zU = "侧栏收起时,先点左上角的导航按钮。", BU = (...e) => ({
+var VU = "侧栏收起时,先点左上角的导航按钮。", HU = (...e) => ({
path: ["侧栏", ...e],
- hint: zU
-}), VU = (e) => ({
+ hint: VU
+}), UU = (e) => ({
path: ["侧栏底部的设置", e],
- hint: zU
+ hint: VU
});
-function Eve(e) {
+function wve(e) {
if (e.surface) return e.id === "external" ? { path: [
"作品卡片",
"作品详情",
@@ -47995,7 +47995,7 @@ function Eve(e) {
let [t = "/", n = ""] = e.route.split("#")[0].split("?"), r = t.split("/")[2];
if (t.startsWith("/settings/")) {
let e = Ef[r];
- if (e) return VU(e);
+ if (e) return UU(e);
let t = Df[r];
if (t) return {
path: [
@@ -48003,11 +48003,11 @@ function Eve(e) {
"Peach 配置",
t
],
- hint: zU
+ hint: VU
};
}
let i = new URLSearchParams(n);
- if (t === "/jav" || i.get("jav") === "1") return BU("JAV", xU.find(([e]) => e === (i.get("tab") || "library"))?.[1] || xU[0][1]);
+ if (t === "/jav" || i.get("jav") === "1") return HU("JAV", CU.find(([e]) => e === (i.get("tab") || "library"))?.[1] || CU[0][1]);
if (t === "/") {
switch (e.id) {
case "search": return {
@@ -48017,9 +48017,9 @@ function Eve(e) {
case "navigation": return { path: ["左上角导航按钮", "侧栏中的浏览入口"] };
case "library": return {
path: ["侧栏顶部", "媒体库选择器"],
- hint: zU
+ hint: VU
};
- case "preferences": return VU(Ef.appearance);
+ case "preferences": return UU(Ef.appearance);
case "wall": return { path: ["页面顶部", "播放墙按钮"] };
case "immerse": return { path: ["页面顶部", "沉浸模式按钮"] };
case "cards":
@@ -48041,22 +48041,22 @@ function Eve(e) {
hint: "来源、时长等更多筛选位于侧栏。"
};
}
- return BU("首页");
+ return HU("首页");
}
if ([
"/review",
"/quality-goals",
"/trash"
- ].includes(t)) return BU("管理", Zf["/data-cleanup"].title, t === "/trash" ? "回收站" : Zf[t].title);
+ ].includes(t)) return HU("管理", Zf["/data-cleanup"].title, t === "/trash" ? "回收站" : Zf[t].title);
let a = Zf[t];
if (a?.nav && a.title) {
- let e = BU(a.title);
+ let e = HU(a.title);
return t === "/playlists" && (e.hint = "若侧栏没有播放列表,到设置 → 外观与导航 → 导航入口与顺序添加;手机上先展开侧栏。"), e;
}
- if (a?.section && a.title) return BU("管理", a.title);
+ if (a?.section && a.title) return HU("管理", a.title);
}
// src/react/onboarding/guide-help.tsx
-function Dve({ details: e }) {
+function Tve({ 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", {
@@ -48071,24 +48071,24 @@ function Dve({ details: e }) {
}, e))
}) : null;
}
-function Ove({ chapter: e }) {
- let t = jU.find((t) => t.id === e);
+function Eve({ chapter: e }) {
+ let t = NU.find((t) => t.id === e);
return t ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "text-body-2-regular text-text-secondary",
- children: /* @__PURE__ */ (0, I.jsxs)(QH, {
+ children: /* @__PURE__ */ (0, I.jsxs)(eU, {
summary: "了解这些设置",
children: [/* @__PURE__ */ (0, I.jsx)("p", { children: t.summary }), /* @__PURE__ */ (0, I.jsx)("div", { children: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- onClick: () => FU({ chapter: e }),
+ onClick: () => LU({ chapter: e }),
children: "逐步了解这个分区"
}) })]
})
}) : null;
}
// src/react/onboarding/guide-popover.tsx
-function kve({ step: e, position: t, total: n, missing: r, next: i, previous: a, close: o, invitation: s }) {
- let c = QV(), l = Eve(e);
+function Dve({ step: e, position: t, total: n, missing: r, next: i, previous: a, close: o, invitation: s }) {
+ let c = eH(), l = wve(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "peach-guide-popover-content",
onPointerDown: (e) => e.stopPropagation(),
@@ -48099,7 +48099,7 @@ function kve({ 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)(EV, {
+ }), /* @__PURE__ */ (0, I.jsx)(OV, {
label: s ? "关闭教程提示" : "结束导览",
onPress: o
})]
@@ -48116,7 +48116,7 @@ function kve({ step: e, position: t, total: n, missing: r, next: i, previous: a,
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex items-center gap-2 text-body-2-medium text-text-secondary",
- children: [/* @__PURE__ */ (0, I.jsx)(lge, {
+ children: [/* @__PURE__ */ (0, I.jsx)(sge, {
className: "size-4 shrink-0",
"aria-hidden": "true"
}), "打开方式"]
@@ -48125,7 +48125,7 @@ function kve({ step: e, position: t, total: n, missing: r, next: i, previous: a,
className: "flex flex-wrap items-center gap-x-1 gap-y-1 text-body-2-medium text-text-primary",
children: l.path.map((e, t) => /* @__PURE__ */ (0, I.jsxs)("li", {
className: "inline-flex items-center gap-1",
- children: [t ? /* @__PURE__ */ (0, I.jsx)(NB, {
+ children: [t ? /* @__PURE__ */ (0, I.jsx)(FB, {
className: "size-4 shrink-0 text-text-secondary",
"aria-hidden": "true"
}) : null, /* @__PURE__ */ (0, I.jsx)("span", { children: e })]
@@ -48146,15 +48146,15 @@ function kve({ 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)(QH, {
+ e.details?.length ? /* @__PURE__ */ (0, I.jsx)(eU, {
summary: "更多说明",
- children: /* @__PURE__ */ (0, I.jsx)(Dve, { details: e.details })
+ children: /* @__PURE__ */ (0, I.jsx)(Tve, { 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)(SV, {
+ r ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "neutral",
children: e.surface ? "尚未取得可演示的视频或对应控件。请先添加视频,或跳过后稍后重看。" : "当前页面未显示这个入口,可能尚无内容、没有配置权限或仍在加载。可以跳过,稍后重看。"
}) : null
@@ -48208,14 +48208,14 @@ function kve({ step: e, position: t, total: n, missing: r, next: i, previous: a,
]
});
}
-function HU(e, t, n) {
+function WU(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)(kve, { ...n }))), () => i.unmount();
+ return (0, Lt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(Dve, { ...n }))), () => i.unmount();
}
// src/react/onboarding/tutorial-center.tsx
-function Ave({ go: e }) {
+function Ove({ 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();
@@ -48229,8 +48229,8 @@ function Ave({ go: e }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, I.jsxs)(IU, {
- icon: cge,
+ /* @__PURE__ */ (0, I.jsxs)(RU, {
+ icon: oge,
title: "从第一份收藏开始",
description: "连接媒体目录,查看入库结果,再打开馆藏。",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
@@ -48241,7 +48241,7 @@ function Ave({ go: e }) {
children: "连接媒体目录"
})]
}),
- r ? /* @__PURE__ */ (0, I.jsx)(SV, {
+ r ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -48257,7 +48257,7 @@ function Ave({ go: e }) {
/* @__PURE__ */ (0, I.jsxs)("li", { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "peach-guide-topic-icon",
- children: /* @__PURE__ */ (0, I.jsx)(GB, {
+ children: /* @__PURE__ */ (0, I.jsx)(qB, {
"aria-hidden": !0,
className: "size-5"
})
@@ -48276,7 +48276,7 @@ function Ave({ go: e }) {
/* @__PURE__ */ (0, I.jsxs)("li", { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "peach-guide-topic-icon",
- children: /* @__PURE__ */ (0, I.jsx)(vge, {
+ children: /* @__PURE__ */ (0, I.jsx)(gge, {
"aria-hidden": !0,
className: "size-5"
})
@@ -48295,7 +48295,7 @@ function Ave({ go: e }) {
/* @__PURE__ */ (0, I.jsxs)("li", { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "peach-guide-topic-icon",
- children: /* @__PURE__ */ (0, I.jsx)($B, {
+ children: /* @__PURE__ */ (0, I.jsx)(tV, {
"aria-hidden": !0,
className: "size-5"
})
@@ -48313,7 +48313,7 @@ function Ave({ go: e }) {
] })
]
}),
- /* @__PURE__ */ (0, I.jsx)(QH, {
+ /* @__PURE__ */ (0, I.jsx)(eU, {
summary: "更多接入方式",
children: /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-guide-routes",
@@ -48322,31 +48322,31 @@ function Ave({ go: e }) {
title: "关注创作者",
description: l ? "当前启用来源的必要凭据已具备。" : s.length ? "已有关注来源,请检查必要凭据。" : "添加想持续追踪的创作者与来源。",
path: "/subscriptions",
- icon: rV
+ icon: aV
},
{
title: "口味与记录",
description: t?.taste.history_sources ? `已导入 ${t.taste.history_sources} 份浏览器历史。` : "按需要导入浏览历史或书签。",
path: "/taste",
- icon: PB
+ icon: IB
},
{
title: "云下载与浏览器添加",
description: "连接渠道、设置目标目录,按需要配对用户脚本。",
path: "/settings/downloads",
- icon: BB
+ icon: HB
},
{
title: "手机访问",
description: "查看访问范围、地址与密码。",
path: "/settings/network",
- icon: oV
+ icon: cV
},
...u ? [{
title: "人工复核",
description: `当前有 ${u.toLocaleString()} 条待复核资料。`,
path: "/review",
- icon: IB
+ icon: RB
}] : []
].map(({ title: t, description: n, path: r, icon: i }) => /* @__PURE__ */ (0, I.jsxs)("div", { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
@@ -48373,16 +48373,16 @@ function Ave({ go: e }) {
]
});
}
-var UU = "tutorial-sync";
-function jve({ actions: e }) {
- let [t, n] = (0, F.useState)(!1), [r, i] = (0, F.useState)(!1), [a, o] = (0, F.useState)("interface"), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(gve), [d, f] = (0, F.useState)(!1), [p, m] = (0, F.useState)(""), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(!1), y = QV(), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = (0, F.useRef)(0), C = (0, F.useRef)(l);
+var GU = "tutorial-sync";
+function kve({ 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)(mve), [d, f] = (0, F.useState)(!1), [p, m] = (0, F.useState)(""), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(!1), y = eH(), 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 vve();
+ let n = await gve();
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;
@@ -48392,7 +48392,7 @@ function jve({ actions: e }) {
let n = ++j.current;
A.current += 1, k.current = k.current.then(async () => {
try {
- let r = await yve(e.campaign, t);
+ let r = await _ve(e.campaign, t);
M.current && n === j.current && ee(r);
} catch {
M.current && (m("教程进度未保存到本机账本,其他设备尚未同步。请重新读取后继续。"), n === j.current && await N(!1));
@@ -48402,8 +48402,8 @@ function jve({ actions: e }) {
});
}, P = (0, F.useRef)(N);
P.current = N, (0, F.useEffect)(() => {
- !p || t ? rH.dismiss(UU) : rH.error(p, {
- id: UU,
+ !p || t ? aH.dismiss(GU) : aH.error(p, {
+ id: GU,
toasterId: "receipts",
duration: Infinity,
action: {
@@ -48414,7 +48414,7 @@ function jve({ actions: e }) {
}
});
}, [p, t]), (0, F.useEffect)(() => () => {
- rH.dismiss(UU);
+ aH.dismiss(GU);
}, []), (0, F.useEffect)(() => {
if (!d && !p) return;
let e = document.getElementById("tutorialBtn");
@@ -48435,7 +48435,7 @@ function jve({ actions: e }) {
let i = !1, a = null;
return import("./peach-app.guide-driver-BZX0VpRC.js").then(({ createGuideSession: t }) => {
i || (a = t({
- mountPopover: HU,
+ mountPopover: WU,
invitation: !0,
navigate: e.navigate,
previous: () => {},
@@ -48474,12 +48474,12 @@ function jve({ actions: e }) {
D.current = !1;
});
document.addEventListener("input", e), document.addEventListener("change", e);
- let r = xve((e) => {
+ let r = yve((e) => {
(async () => {
let t = document.activeElement;
if (await k.current, !M.current || !await N() || e.invitation) return;
ie(), T.current = t, g(""), c("");
- let r = jU.find((t) => t.id === e.chapter);
+ let r = NU.find((t) => t.id === e.chapter);
e.reopen ? (i(!1), te({
...C.current,
invited: !0,
@@ -48508,11 +48508,11 @@ function jve({ actions: e }) {
g("请先关闭当前详情或对话框,再开始导览。");
return;
}
- if (t.steps.some((e) => e.surface) && n8()?.miniplayerActive()) {
+ if (t.steps.some((e) => e.surface) && l8()?.miniplayerActive()) {
g("请先关闭正在播放的小窗,再开始播放器导览。");
return;
}
- let i = r ? _ve(C.current, t) : 0;
+ let i = r ? hve(C.current, t) : 0;
if (D.current && t.steps.some((e) => e.route && e.route !== location.pathname)) {
g("当前配置表单有编辑内容。请先处理表单,再开启需要切换页面的章节。");
return;
@@ -48546,7 +48546,7 @@ function jve({ actions: e }) {
}), b.current?.show(t.steps[w.current], w.current, t.steps.length);
};
b.current = r({
- mountPopover: HU,
+ mountPopover: WU,
navigate: e.navigate,
close: () => {
ie(!0), o(t.kind);
@@ -48557,18 +48557,18 @@ function jve({ actions: e }) {
},
next: async (e = !1) => {
let n = w.current + 1;
- if (te(bve(C.current, t.id, t.steps[w.current].id, n, e), {
+ if (te(vve(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" && MU(C.current, t) && te({
+ if (t.id === "basics" && PU(C.current, t) && te({
...C.current,
completed: !0
}, { action: "complete" }), await k.current, a !== S.current) return;
- ie(!0), o(t.kind), g(MU(C.current, t) ? t.id === "basics" ? C.current.completed ? "快速导览已完成,所有设备的教程入口都会收起。以后可到设置 → Peach 配置 → 应用与维护 → 新手教程重新打开,其余内容按需查看。" : "导览已结束,但完成状态未保存。请重新读取教程状态后再试。" : "这段导览已完成。需要时再了解其他功能。" : "本章已结束,未显示的步骤尚未完成,可以稍后继续。");
+ ie(!0), o(t.kind), g(PU(C.current, t) ? t.id === "basics" ? C.current.completed ? "快速导览已完成,所有设备的教程入口都会收起。以后可到设置 → Peach 配置 → 应用与维护 → 新手教程重新打开,其余内容按需查看。" : "导览已结束,但完成状态未保存。请重新读取教程状态后再试。" : "这段导览已完成。需要时再了解其他功能。" : "本章已结束,未显示的步骤尚未完成,可以稍后继续。");
} else w.current = n, l();
}
}), l();
@@ -48581,8 +48581,8 @@ function jve({ actions: e }) {
O.current = (e, t) => {
se(e, t);
};
- let ce = hve(location.pathname);
- return (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: /* @__PURE__ */ (0, I.jsxs)(bV, {
+ let ce = pve(location.pathname);
+ return (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: /* @__PURE__ */ (0, I.jsxs)(SV, {
isOpen: t,
onOpenChange: (e) => {
e || ae();
@@ -48597,18 +48597,18 @@ function jve({ actions: e }) {
id: "guideTitle",
className: "text-title-2-medium text-text-primary",
children: "新手教程"
- }), /* @__PURE__ */ (0, I.jsx)(EV, {
+ }), /* @__PURE__ */ (0, I.jsx)(OV, {
label: "关闭新手教程",
onPress: ae
})]
}),
/* @__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)(gU, {
+ children: /* @__PURE__ */ (0, I.jsx)(vU, {
"aria-label": "教程路径",
name: "guide-path",
orientation: "horizontal",
- className: _U,
+ className: yU,
value: a,
onChange: (e) => {
o(e), c(""), g("");
@@ -48617,9 +48617,9 @@ function jve({ actions: e }) {
["start", "开始使用"],
["interface", "界面导览"],
["settings", "设置导览"]
- ].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Kz, {
+ ].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Jz, {
value: e,
- className: vU,
+ className: bU,
children: t
}, e))
})
@@ -48630,7 +48630,7 @@ function jve({ actions: e }) {
ref: y,
className: "peach-guide-body",
children: [
- p ? /* @__PURE__ */ (0, I.jsx)(SV, {
+ p ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "error",
className: "mb-4",
action: /* @__PURE__ */ (0, I.jsx)(J, {
@@ -48642,12 +48642,12 @@ function jve({ actions: e }) {
}),
children: p
}) : null,
- h ? /* @__PURE__ */ (0, I.jsx)(SV, {
+ h ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "neutral",
className: "mb-4",
children: h
}) : null,
- a === "start" ? /* @__PURE__ */ (0, I.jsx)(Ave, { go: oe }) : /* @__PURE__ */ (0, I.jsx)(Tve, {
+ a === "start" ? /* @__PURE__ */ (0, I.jsx)(Ove, { go: oe }) : /* @__PURE__ */ (0, I.jsx)(Cve, {
kind: a,
query: s,
setQuery: c,
@@ -48665,15 +48665,15 @@ function jve({ actions: e }) {
}) }), document.body);
}
// src/react/client-updates.tsx
-var Mve = 12e4, Nve = 15e3, WU = () => document.visibilityState !== "hidden", GU = /* @__PURE__ */ new Set([
+var Ave = 12e4, jve = 15e3, KU = () => document.visibilityState !== "hidden", qU = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
"preparing",
"restarting",
"installing"
-]), KU = "/settings/maintenance#releaseUpdates";
-function Pve() {
+]), JU = "/settings/maintenance#releaseUpdates";
+function Mve() {
try {
let e = JSON.parse(document.getElementById("peach-client-runtime")?.textContent || "null");
return typeof e?.version == "string" && typeof e?.build_id == "string" ? {
@@ -48684,23 +48684,23 @@ function Pve() {
return null;
}
}
-function qU() {
- let e = (0, F.useRef)(Pve()), [t, n] = (0, F.useState)(null);
+function YU() {
+ let e = (0, F.useRef)(Mve()), [t, n] = (0, F.useState)(null);
return (0, F.useEffect)(() => {
let t = !1, r, i, a = async () => {
- if (t || !WU()) return;
+ if (t || !KU()) return;
let o = new AbortController();
i = o;
- let s = setTimeout(() => o.abort(), Nve);
+ let s = setTimeout(() => o.abort(), jve);
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 && WU() && (r = setTimeout(a, Mve)));
+ clearTimeout(s), i === o && (i = void 0, !t && KU() && (r = setTimeout(a, Ave)));
}
}, o = () => {
- clearTimeout(r), i?.abort(), i = void 0, WU() && a();
+ clearTimeout(r), i?.abort(), i = void 0, KU() && 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);
@@ -48710,12 +48710,12 @@ function qU() {
refresh: !!t && !!e.current && (t.runtime.version !== e.current.version || t.runtime.build_id !== e.current.build_id)
};
}
-function Fve({ navigate: e }) {
- let { snapshot: t, refresh: n } = qU(), [r, i] = (0, F.useState)(""), a = document.querySelector("[data-network-banner]");
+function Nve({ navigate: e }) {
+ let { snapshot: t, refresh: n } = YU(), [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" : GU.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" : qU.has(s.state) ? "preparing" : o.state === "available" && o.latest_version ? "available" : null;
if (!l) return null;
- let u = (s.state === "ready" || GU.has(s.state)) && s.version || o.latest_version, d = JSON.stringify(l === "refresh" ? [
+ let u = (s.state === "ready" || qU.has(s.state)) && s.version || o.latest_version, d = JSON.stringify(l === "refresh" ? [
l,
c.version,
c.build_id
@@ -48738,22 +48738,22 @@ function Fve({ navigate: e }) {
children: [" Peach ", u]
}) : null] })] }), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex-wrap",
- children: [l === "refresh" ? /* @__PURE__ */ (0, I.jsx)(EH, {
+ children: [l === "refresh" ? /* @__PURE__ */ (0, I.jsx)(OH, {
variant: "secondary",
size: "small",
onClick: () => window.location.reload(),
"data-copy-key": "clientUpdates.refresh.action",
children: "刷新页面"
- }) : /* @__PURE__ */ (0, I.jsx)(EH, {
+ }) : /* @__PURE__ */ (0, I.jsx)(OH, {
variant: "secondary",
size: "small",
- href: KU,
+ href: JU,
onClick: (t) => {
- t.button !== 0 || t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || (t.preventDefault(), e(KU));
+ t.button !== 0 || t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || (t.preventDefault(), e(JU));
},
"data-copy-key": `clientUpdates.${l}.action`,
children: l === "preparing" ? "查看进度" : "查看更新"
- }), /* @__PURE__ */ (0, I.jsx)(EH, {
+ }), /* @__PURE__ */ (0, I.jsx)(OH, {
variant: "secondary",
size: "small",
onClick: () => i(d),
@@ -48764,8 +48764,8 @@ function Fve({ navigate: e }) {
}, d), a);
}
// src/react/router/pages/settings.tsx
-function Ive() {
- let e = (0, F.useContext)(iG), { pathname: t } = Qd();
+function Pve() {
+ let e = (0, F.useContext)(oG), { pathname: t } = Qd();
return (0, F.useEffect)(() => {
e?.openSettings?.(jf(t));
}, [e, t]), (0, F.useEffect)(() => () => {
@@ -48775,7 +48775,7 @@ function Ive() {
}, [e]), null;
}
// src/junk-queue.ts
-var JU = [
+var XU = [
[
"",
"全部",
@@ -48811,40 +48811,40 @@ var JU = [
"其它",
"hard-drive"
]
-], Lve = (e) => JU.find(([t]) => t === e)?.[0] ?? "";
-function YU(e) {
+], Fve = (e) => XU.find(([t]) => t === e)?.[0] ?? "";
+function ZU(e) {
let t = new URLSearchParams(e);
return {
- kind: Lve(t.get("type")),
+ kind: Fve(t.get("type")),
view: t.get("view") === "dismissed" ? "dismissed" : "pending"
};
}
-function XU(e = "", t = "pending") {
+function QU(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 ZU(e) {
+function $U(e) {
return e === "dismissed" ? {
view: "pending",
label: "返回待判断",
glyph: "rotate-ccw",
- href: XU("", "pending")
+ href: QU("", "pending")
} : {
view: "dismissed",
label: "已排除",
glyph: "eye-off",
- href: XU("", "dismissed")
+ href: QU("", "dismissed")
};
}
-var QU = (e) => e === "dismissed" ? "已排除" : "待判断", $U = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
-function Rve({ kind: e, view: t }) {
- let n = JU.map(([n, r, i]) => `<a href="${XU(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${$U(i)}${z(r)}</a>`).join(""), r = ZU(t);
- return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${Fs(QU(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\"" : ""}>${$U(r.glyph)}${r.label}</a></nav></div></div></div>`;
+var eW = (e) => e === "dismissed" ? "已排除" : "待判断", tW = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
+function Ive({ kind: e, view: t }) {
+ let n = XU.map(([n, r, i]) => `<a href="${QU(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${tW(i)}${z(r)}</a>`).join(""), r = $U(t);
+ return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${Fs(eW(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\"" : ""}>${tW(r.glyph)}${r.label}</a></nav></div></div></div>`;
}
// src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function zve(e, t, n) {
+function Lve(e, t, n) {
(0, F.useEffect)(() => {
if (!e) return;
let r = (e) => {
@@ -48858,7 +48858,7 @@ function zve(e, t, n) {
n
]);
}
-function Bve(e, t) {
+function Rve(e, t) {
let n = (0, F.useRef)(!1);
return (0, F.useEffect)(() => {
if (!e) return;
@@ -48871,33 +48871,33 @@ function Bve(e, t) {
}, [e, t]), (e) => e && n.current ? (n.current = !1, !1) : !0;
}
// src/react/boardui/components/base/select/select.tsx
-var eW = (0, F.createContext)("md");
-function tW({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+var nW = (0, F.createContext)("md");
+function rW({ 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);
- zve(d, () => f(!1), [l, u]);
- let p = Bve(d, l);
- return /* @__PURE__ */ (0, I.jsx)(yme, {
+ Lve(d, () => f(!1), [l, u]);
+ let p = Rve(d, l);
+ return /* @__PURE__ */ (0, I.jsx)(_me, {
ref: s,
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
className: q("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)(QL, {
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)(eR, {
ref: l,
className: q("flex w-full cursor-pointer items-center justify-between rounded-2lg", "border border-border-button-default bg-background-primary-default shadow-xs", "text-text-primary", "transition-[background-color,border-color,box-shadow,padding,font-size] duration-200 ease", "hover:bg-background-primary-hover hover:border-border-button-hover", "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring", "disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:text-text-tertiary disabled:shadow-none", r === "sm" ? "gap-1 px-[7px] py-1 text-body-2-medium" : "gap-1.5 px-2.5 py-2 text-body-medium", t),
- children: [/* @__PURE__ */ (0, I.jsx)(Sme, {
+ children: [/* @__PURE__ */ (0, I.jsx)(bme, {
className: q("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, I.jsx)(Oge, { 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)(Tz, {
+ }), /* @__PURE__ */ (0, I.jsx)(Ege, { 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)(Dz, {
ref: u,
isNonModal: !0,
offset: 4,
- className: q(jge, WV, "p-2", n),
- children: /* @__PURE__ */ (0, I.jsx)(Vpe, {
+ className: q(kge, KV, "p-2", n),
+ children: /* @__PURE__ */ (0, I.jsx)(zpe, {
items: a,
- className: q(Mge, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, I.jsx)(eW.Provider, {
+ className: q(Age, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, I.jsx)(nW.Provider, {
value: r,
children: i
})
@@ -48905,16 +48905,16 @@ function tW({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function nW({ className: e, children: t, ...n }) {
- let r = (0, F.useContext)(eW);
- return /* @__PURE__ */ (0, I.jsx)(Wpe, {
+function iW({ className: e, children: t, ...n }) {
+ let r = (0, F.useContext)(nW);
+ return /* @__PURE__ */ (0, I.jsx)(Hpe, {
...n,
- className: (t) => q(GV, 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(qV, 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 rW = qI({
+var aW = YI({
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",
@@ -48933,15 +48933,15 @@ var rW = qI({
soft: "bg-background-secondary-default text-text-secondary"
}
});
-function iW({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
+function oW({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
ref: r,
- className: q(rW.base, rW.variant[e], rW.color[t], n),
+ className: q(aW.base, aW.variant[e], aW.color[t], n),
...i
});
}
// src/react/components/art-slot.tsx
-function aW({ artwork: e, identity: t = e.html, relayout: n }) {
+function sW({ artwork: e, identity: t = e.html, relayout: n }) {
let [r, i] = (0, F.useState)({
identity: t,
artwork: e
@@ -48960,7 +48960,7 @@ function aW({ artwork: e, identity: t = e.html, relayout: n }) {
});
}
// src/react/activity/downloads-panel.tsx
-var oW = "/api/downloads", sW = ["downloads"], Vve = "/api/downloads/cancel", Hve = "/api/downloads/postprocess", cW = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, Uve = {
+var cW = "/api/downloads", lW = ["downloads"], zve = "/api/downloads/cancel", Bve = "/api/downloads/postprocess", uW = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, Vve = {
ingested: "lime",
failed: "rose",
cancelled: "neutral",
@@ -48969,21 +48969,21 @@ var oW = "/api/downloads", sW = ["downloads"], Vve = "/api/downloads/cancel", Hv
remote_done: "lime",
landed: "lime",
submitted: "neutral"
-}, lW = (e) => {
- let t = e.display_code || e.code || "", { title: n } = eL({
+}, dW = (e) => {
+ let t = e.display_code || e.code || "", { title: n } = nL({
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}`;
-}, uW = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "", Wve = (e) => (e.postprocess_detail || "").replace("正片已绑定", "已确认主视频对应的作品").replace("整理跳过:", "未整理文件:");
-function Gve() {
+}, fW = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "", Hve = (e) => (e.postprocess_detail || "").replace("正片已绑定", "已确认主视频对应的作品").replace("整理跳过:", "未整理文件:");
+function Uve() {
let e = (0, F.useId)(), t = It({
- queryKey: [...sW, "pages"],
+ queryKey: [...lW, "pages"],
initialPageParam: null,
- queryFn: ({ signal: e, pageParam: t }) => B(`${oW}?limit=20${t === null ? "" : `&before_id=${t}`}`, e),
+ queryFn: ({ signal: e, pageParam: t }) => B(`${cW}?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) => cW(e) === 5e3) ? 5e3 : 3e4
+ refetchInterval: (e) => e.state.data?.pages.some((e) => uW(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",
@@ -48995,14 +48995,14 @@ function Gve() {
className: "text-title-2-medium text-text-primary",
children: "云下载"
}),
- t.error ? /* @__PURE__ */ (0, I.jsx)(SV, {
+ t.error ? /* @__PURE__ */ (0, I.jsx)(wV, {
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)(Kve, {
+ children: r.map((e) => /* @__PURE__ */ (0, I.jsx)(Wve, {
task: e,
writable: n[0]?.available ?? !1
}, e.id))
@@ -49010,9 +49010,9 @@ function Gve() {
t.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: jB,
+ leadingIcon: NB,
className: "self-start",
- ...DV(t.isFetchingNextPage),
+ ...kV(t.isFetchingNextPage),
onClick: () => {
t.isFetching || t.fetchNextPage();
},
@@ -49021,16 +49021,16 @@ function Gve() {
]
});
}
-function Kve({ task: e, writable: t }) {
- _L();
- let n = ae(), r = DH(), [i, a] = (0, F.useState)(!1), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = uW(e) || (e.cancellable && e.failure_detail ? `稍后自动重试 · ${e.failure_detail}` : ""), u = e.artwork, d = u?.performer_entities || [], f = e.state === "ingested" && e.asset_id ? `/assets/${e.asset_id}` : void 0, p = e.state === "failed" || e.postprocess_state === "failed", m = [
+function Wve({ task: e, writable: t }) {
+ yL();
+ let n = ae(), r = kH(), [i, a] = (0, F.useState)(!1), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = fW(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,
- hL(e.submitted_at)
+ _L(e.submitted_at)
].filter(Boolean).join(" · "), h = () => {
- n.invalidateQueries({ queryKey: sW });
+ n.invalidateQueries({ queryKey: lW });
}, g = () => {
- r.run("cancel", (t) => V(Vve, { id: e.id }, "POST", t), h);
+ r.run("cancel", (t) => V(zve, { id: e.id }, "POST", t), h);
}, _ = () => {
let t = {
magnet: e.source_uri,
@@ -49040,16 +49040,16 @@ function Kve({ task: e, writable: t }) {
title: e.title,
origin: e.origin
};
- r.run("resubmit", (e) => V(oW, t, "POST", e), h);
+ r.run("resubmit", (e) => V(cW, t, "POST", e), h);
}, v = () => {
navigator.clipboard.writeText(e.source_uri).then(() => a(!0), () => a(!1));
}, y = () => {
- r.run("postprocess", (t) => V(Hve, { id: e.id }, "POST", t), h);
+ r.run("postprocess", (t) => V(Bve, { id: e.id }, "POST", t), h);
};
return /* @__PURE__ */ (0, I.jsxs)("li", {
"data-download-state": e.state,
"data-download-id": e.id,
- className: zH({
+ className: VH({
padding: "none",
bordered: p ? "error" : void 0,
className: "flex flex-col"
@@ -49060,14 +49060,14 @@ function Kve({ task: e, writable: t }) {
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-download-cover": "",
"data-media-pic": "",
- style: { "--card-ratio": String(_M) },
+ style: { "--card-ratio": String(yM) },
className: "w-20 shrink-0 self-start text-caption-1-regular text-text-secondary sm:w-32",
children: [
u?.has_cover ? null : /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-nopic": "",
children: "无封面"
}),
- u?.has_cover ? /* @__PURE__ */ (0, I.jsx)(aW, {
+ u?.has_cover ? /* @__PURE__ */ (0, I.jsx)(sW, {
artwork: {
kind: "cover",
html: xo(u, "big")
@@ -49077,7 +49077,7 @@ function Kve({ task: e, writable: t }) {
f ? /* @__PURE__ */ (0, I.jsx)("a", {
"data-download-cover-link": "",
href: f,
- "aria-label": `打开作品详情:${lW(e)}`,
+ "aria-label": `打开作品详情:${dW(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
]
@@ -49088,19 +49088,19 @@ function Kve({ 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: lW(e),
+ title: dW(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: lW(e)
- }) : lW(e)
+ children: dW(e)
+ }) : dW(e)
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex shrink-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(iW, {
- color: Uve[e.state] ?? "neutral",
+ children: [/* @__PURE__ */ (0, I.jsx)(oW, {
+ color: Vve[e.state] ?? "neutral",
children: e.state_label
- }), e.state === "ingested" ? /* @__PURE__ */ (0, I.jsx)(iW, {
+ }), e.state === "ingested" ? /* @__PURE__ */ (0, I.jsx)(oW, {
color: e.postprocess_state === "complete" ? "lime" : e.postprocess_state === "failed" ? "rose" : e.postprocess_state === "running" ? "blue" : "neutral",
children: e.postprocess_label
}) : null]
@@ -49110,7 +49110,7 @@ function Kve({ 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)(nU, {
+ children: /* @__PURE__ */ (0, I.jsx)(iU, {
source: e.provider,
label: e.provider_label
})
@@ -49137,7 +49137,7 @@ function Kve({ 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)(HH, {
+ e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, I.jsx)(WH, {
label: "远端下载进度",
value: Math.round(e.progress * 100),
max: 100
@@ -49147,7 +49147,7 @@ function Kve({ task: e, writable: t }) {
title: e.ledger_path,
children: e.ledger_path
}) : null,
- r.error ? /* @__PURE__ */ (0, I.jsx)(XH, { children: r.error }) : null,
+ r.error ? /* @__PURE__ */ (0, I.jsx)(QH, { 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",
@@ -49172,21 +49172,21 @@ function Kve({ task: e, writable: t }) {
e.cancellable ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...DV(r.busy === "cancel"),
+ ...kV(r.busy === "cancel"),
onClick: g,
children: "取消"
}) : null,
e.resubmittable ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...DV(r.busy === "resubmit"),
+ ...kV(r.busy === "resubmit"),
onClick: _,
children: "重新提交"
}) : null,
e.postprocess_retryable ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...DV(r.busy === "postprocess"),
+ ...kV(r.busy === "postprocess"),
onClick: y,
children: "重试入库后整理"
}) : null
@@ -49201,33 +49201,33 @@ function Kve({ 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: lW(e)
+ children: dW(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 || Wve(e)
+ children: l || Hve(e)
})
}) : null
]
});
}
// src/react/activity/work-code.ts
-var dW = (e) => (e || "").toUpperCase().replace(/[^A-Z0-9]/g, ""), fW = (e, t) => !!dW(e) && dW(e) === dW(t);
+var pW = (e) => (e || "").toUpperCase().replace(/[^A-Z0-9]/g, ""), mW = (e, t) => !!pW(e) && pW(e) === pW(t);
// src/react/activity/resource-search.tsx
-function qve({ className: e }) {
+function Gve({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
className: e,
"aria-hidden": !0,
dangerouslySetInnerHTML: { __html: zs("") }
});
}
-function Jve(e) {
+function Kve(e) {
return ["中字", "中文字幕"].includes(e?.trim() ?? "") ? "chinese" : ["无码", "无码破解"].includes(e?.trim() ?? "") ? "uncensored" : "quality";
}
-function Yve({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
- let [a, o] = (0, F.useState)(e), [s, c] = (0, F.useState)(() => Jve(t)), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(""), [p, m] = (0, F.useState)(null), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(""), y = DH(), b = (0, F.useRef)(null);
+function qve({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
+ let [a, o] = (0, F.useState)(e), [s, c] = (0, F.useState)(() => Kve(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 = kH(), b = (0, F.useRef)(null);
(0, F.useEffect)(() => () => b.current?.abort(), []);
let x = () => {
if (!a.trim() || y.busy) return;
@@ -49243,7 +49243,7 @@ function Yve({ 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) => fW(e.code, t));
+ let r = (n.items || []).find((e) => mW(e.code, t));
i(r ? {
code: r.code,
title: String(r.catalog_title || r.name || ""),
@@ -49264,18 +49264,18 @@ function Yve({ 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)(YH, { children: [
+ t ? /* @__PURE__ */ (0, I.jsxs)(ZH, { children: [
"版本目标:",
t,
"。可在下方调整搜索优先项;完整度与水印需要逐条复核。"
] }) : null,
- /* @__PURE__ */ (0, I.jsx)(yV, {
+ /* @__PURE__ */ (0, I.jsx)(xV, {
label: "按番号查找资源",
value: a,
maxLength: 80,
placeholder: "输入番号,按回车搜索",
enterKeyHint: "search",
- leadingIcon: y.busy ? qve : iV,
+ leadingIcon: y.busy ? Gve : oV,
isReadOnly: !!y.busy,
"aria-busy": !!y.busy,
onChange: o,
@@ -49285,7 +49285,7 @@ function Yve({ 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)(ZH, { children: "优先寻找" }), /* @__PURE__ */ (0, I.jsxs)(tW, {
+ children: [/* @__PURE__ */ (0, I.jsx)($H, { children: "优先寻找" }), /* @__PURE__ */ (0, I.jsxs)(rW, {
"aria-label": "优先寻找",
selectedKey: s,
isDisabled: !!y.busy,
@@ -49293,15 +49293,15 @@ function Yve({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
e !== null && c(String(e));
},
children: [
- /* @__PURE__ */ (0, I.jsx)(nW, {
+ /* @__PURE__ */ (0, I.jsx)(iW, {
id: "quality",
children: "高清"
}),
- /* @__PURE__ */ (0, I.jsx)(nW, {
+ /* @__PURE__ */ (0, I.jsx)(iW, {
id: "chinese",
children: "中字"
}),
- /* @__PURE__ */ (0, I.jsx)(nW, {
+ /* @__PURE__ */ (0, I.jsx)(iW, {
id: "uncensored",
children: "无码"
})
@@ -49310,32 +49310,32 @@ function Yve({ 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)(yV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(xV, {
label: "最小体积(GiB)",
inputMode: "decimal",
value: l,
onChange: u
- }), /* @__PURE__ */ (0, I.jsx)(yV, {
+ }), /* @__PURE__ */ (0, I.jsx)(xV, {
label: "最大体积(GiB)",
inputMode: "decimal",
value: d,
onChange: f
})]
}),
- y.busy ? /* @__PURE__ */ (0, I.jsx)(YH, {
+ y.busy ? /* @__PURE__ */ (0, I.jsx)(ZH, {
role: "status",
children: "正在搜索资源"
}) : null,
- y.error ? /* @__PURE__ */ (0, I.jsx)(XH, { children: y.error }) : null,
- p?.error ? /* @__PURE__ */ (0, I.jsx)(YH, {
+ y.error ? /* @__PURE__ */ (0, I.jsx)(QH, { children: y.error }) : null,
+ p?.error ? /* @__PURE__ */ (0, I.jsx)(ZH, {
role: "status",
children: p.error
}) : null,
- p?.state === "ready" && !p.items.length ? /* @__PURE__ */ (0, I.jsx)(YH, {
+ p?.state === "ready" && !p.items.length ? /* @__PURE__ */ (0, I.jsx)(ZH, {
role: "status",
children: "没有符合条件的资源。"
}) : null,
- p?.warnings.map((e) => /* @__PURE__ */ (0, I.jsx)(YH, { children: e }, e)),
+ p?.warnings.map((e) => /* @__PURE__ */ (0, I.jsx)(ZH, { 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", {
@@ -49345,7 +49345,7 @@ function Yve({ 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)(YH, { children: [
+ /* @__PURE__ */ (0, I.jsx)(ZH, { children: [
e.size > 0 ? `${(e.size / 1024 ** 3).toFixed(2)} GiB` : "体积未取得",
e.seeders >= 0 ? `${e.seeders} 个做种` : "做种未取得",
e.resolution ? `${e.resolution}p` : "",
@@ -49369,19 +49369,19 @@ function Yve({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
});
}
// src/react/activity/cloud-download-dialog.tsx
-var Xve = {
+var Jve = {
submitted: "已提交离线下载,进度在任务中心",
adopted: "这个磁力已有任务,没有重复提交",
adopted_remote: "网盘中已有相同的下载任务,Peach 已开始跟踪进度"
};
-function pW({ prefill: e, close: t, receipt: n, provider: r }) {
- return /* @__PURE__ */ (0, I.jsx)(bV, {
+function hW({ prefill: e, close: t, receipt: n, provider: r }) {
+ return /* @__PURE__ */ (0, I.jsx)(SV, {
isOpen: !!e,
onOpenChange: (e) => {
e || t();
},
width: "form",
- children: e ? /* @__PURE__ */ (0, I.jsx)(Zve, {
+ children: e ? /* @__PURE__ */ (0, I.jsx)(Yve, {
prefill: e,
close: t,
receipt: n,
@@ -49389,26 +49389,26 @@ function pW({ prefill: e, close: t, receipt: n, provider: r }) {
}) : null
});
}
-function Zve({ prefill: e, close: t, receipt: n, provider: r }) {
+function Yve({ prefill: e, close: t, receipt: n, provider: r }) {
let i = Pt({
- queryKey: sW,
- queryFn: ({ signal: e }) => B(`${oW}?limit=50`, e),
- refetchInterval: (e) => cW(e.state.data)
+ queryKey: lW,
+ queryFn: ({ signal: e }) => B(`${cW}?limit=50`, e),
+ refetchInterval: (e) => uW(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)(eR, {
+ children: [/* @__PURE__ */ (0, I.jsx)(nR, {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "查找资源"
}), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: LB,
+ leadingIcon: zB,
"aria-label": "关闭资源面板",
onClick: t
})]
});
- return a ? /* @__PURE__ */ (0, I.jsx)(Qve, {
+ return a ? /* @__PURE__ */ (0, I.jsx)(Xve, {
header: o,
snapshot: a,
prefill: e,
@@ -49421,7 +49421,7 @@ function Zve({ 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)(SV, {
+ children: i.error ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "error",
children: cr(i.error)
}) : null
@@ -49437,8 +49437,8 @@ function Zve({ prefill: e, close: t, receipt: n, provider: r }) {
]
});
}
-function Qve({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {
- let o = ae(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, F.useState)(c?.key || ""), [d, f] = (0, F.useState)(""), [p, m] = (0, F.useState)(n.code ?? ""), [h, g] = (0, F.useState)(c?.target || ""), [_, v] = (0, F.useState)(n.code ? n : null), [y, b] = (0, F.useState)(""), x = t.available && s.some((e) => e.key === l), S = DH(), C = (0, F.useRef)(null), w = (e) => {
+function Xve({ 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 = kH(), C = (0, F.useRef)(null), w = (e) => {
u(e), g(s.find((t) => t.key === e)?.target ?? "");
};
return /* @__PURE__ */ (0, I.jsxs)("form", {
@@ -49454,14 +49454,14 @@ function Qve({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
title: _?.title,
origin: _?.origin
};
- b(""), S.run("submit", (e) => V(oW, t, "POST", e), (e) => {
- o.invalidateQueries({ queryKey: sW });
- let t = Xve[e.outcome];
+ b(""), S.run("submit", (e) => V(cW, t, "POST", e), (e) => {
+ o.invalidateQueries({ queryKey: lW });
+ let t = Jve[e.outcome];
if (e.ok && t) {
i(t), r();
return;
}
- let n = uW(e.task);
+ let n = fW(e.task);
b(e.outcome === "refused" ? "这个资源被判为违规,不再提交。" : n ? `提交没有成功:${n}` : "提交没有成功。");
});
},
@@ -49485,7 +49485,7 @@ function Qve({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
children: [/* @__PURE__ */ (0, I.jsx)("p", {
className: "break-words text-body-medium text-text-primary",
children: _ ? [_.code, _.title].filter(Boolean).join(" · ") : "作品资料未取得"
- }), _ ? /* @__PURE__ */ (0, I.jsx)(YH, { children: [
+ }), _ ? /* @__PURE__ */ (0, I.jsx)(ZH, { children: [
_.performers,
_.studio,
_.release_date,
@@ -49493,22 +49493,22 @@ function Qve({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
].filter(Boolean).join(" · ") }) : null]
})]
}) : null,
- /* @__PURE__ */ (0, I.jsx)(Yve, {
+ /* @__PURE__ */ (0, I.jsx)(qve, {
initialCode: n.code ?? "",
reason: n.searchReason,
onSearch: (e) => {
- fW(e, _?.code) || (v(fW(e, n.code) ? n : null), f("")), m(e);
+ mW(e, _?.code) || (v(mW(e, n.code) ? n : null), f("")), m(e);
},
- onWork: (e) => v((t) => e ? fW(t?.code, e.code) ? {
+ onWork: (e) => v((t) => e ? mW(t?.code, e.code) ? {
...t,
...e,
origin: t?.origin || e.origin
- } : e : fW(t?.code, n.code) ? t : null),
+ } : e : mW(t?.code, n.code) ? t : null),
choose: (e, t) => {
f(e), m(t), C.current?.focus();
}
}),
- /* @__PURE__ */ (0, I.jsx)(yV, {
+ /* @__PURE__ */ (0, I.jsx)(xV, {
ref: C,
label: "磁力链接",
placeholder: "magnet:?xt=urn:btih:…",
@@ -49520,38 +49520,38 @@ function Qve({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-1",
children: [
- /* @__PURE__ */ (0, I.jsx)(ZH, { children: "下载到" }),
- /* @__PURE__ */ (0, I.jsx)(tW, {
+ /* @__PURE__ */ (0, I.jsx)($H, { children: "下载到" }),
+ /* @__PURE__ */ (0, I.jsx)(rW, {
"aria-label": "下载到",
selectedKey: l || null,
isDisabled: !s.length,
onSelectionChange: (e) => {
e !== null && w(String(e));
},
- children: s.map((e) => /* @__PURE__ */ (0, I.jsx)(nW, {
+ children: s.map((e) => /* @__PURE__ */ (0, I.jsx)(iW, {
id: e.key,
textValue: e.label,
- children: /* @__PURE__ */ (0, I.jsx)(nU, {
+ children: /* @__PURE__ */ (0, I.jsx)(iU, {
source: e.key,
label: e.label
})
}, e.key))
}),
- l === "115" ? /* @__PURE__ */ (0, I.jsx)(YH, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
+ l === "115" ? /* @__PURE__ */ (0, I.jsx)(ZH, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
]
}),
- t.available ? null : /* @__PURE__ */ (0, I.jsx)(SV, {
+ t.available ? null : /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "neutral",
children: "云下载只在允许修改数据库的设备上可用。"
}),
- s.length ? null : /* @__PURE__ */ (0, I.jsxs)(SV, {
+ s.length ? null : /* @__PURE__ */ (0, I.jsxs)(wV, {
tone: "neutral",
children: ["尚未配置下载渠道。", /* @__PURE__ */ (0, I.jsx)("a", {
href: "/settings/library?section=%E4%B8%8B%E8%BD%BD%E6%B8%A0%E9%81%93",
children: "下载渠道设置"
})]
}),
- /* @__PURE__ */ (0, I.jsx)(yV, {
+ /* @__PURE__ */ (0, I.jsx)(xV, {
label: "目标目录",
placeholder: "/云下载",
autoComplete: "off",
@@ -49559,17 +49559,17 @@ function Qve({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
value: h,
onChange: g
}),
- n.code ? null : /* @__PURE__ */ (0, I.jsx)(yV, {
+ n.code ? null : /* @__PURE__ */ (0, I.jsx)(xV, {
label: "番号",
placeholder: "可不填",
autoComplete: "off",
maxLength: 60,
value: p,
onChange: (e) => {
- m(e), fW(e, _?.code) || v(null);
+ m(e), mW(e, _?.code) || v(null);
}
}),
- y || S.error ? /* @__PURE__ */ (0, I.jsx)(XH, { children: y || S.error }) : null
+ y || S.error ? /* @__PURE__ */ (0, I.jsx)(QH, { children: y || S.error }) : null
]
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -49581,7 +49581,7 @@ function Qve({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
}), /* @__PURE__ */ (0, I.jsx)(J, {
type: "submit",
disabled: !d.trim() || !x,
- ...DV(S.busy === "submit"),
+ ...kV(S.busy === "submit"),
children: "提交下载"
})]
})
@@ -49589,18 +49589,18 @@ function Qve({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
});
}
// src/react/wants/wants.ts
-var mW = "/api/wants", hW = ["wants"], $ve = (e) => [
+var gW = "/api/wants", _W = ["wants"], Zve = (e) => [
"wants",
"follow",
e
-], eye = [
+], Qve = [
["searching", "待找"],
["unreleased", "未发售"],
["given_up", "暂时放弃"],
["acquired", "已入库"]
-], gW = (e) => B(mW, e);
-function tye(e, t) {
- H.setQueryData(hW, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {
+], vW = (e) => B(gW, e);
+function $ve(e, t) {
+ H.setQueryData(_W, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {
...n,
items: n.items.map((n) => n.id === e ? {
...n,
@@ -49608,39 +49608,50 @@ function tye(e, t) {
} : n)
} : n);
}
-var nye = (e, t) => B(`${mW}?follow=${encodeURIComponent(e)}`, t), _W = (e, t) => V(mW, {
+var eye = (e, t) => B(`${gW}?follow=${encodeURIComponent(e)}`, t), yW = (e, t) => V(gW, {
action: "add",
...e
-}, "POST", t), vW = (e, t) => V(mW, {
+}, "POST", t), bW = (e, t) => V(gW, {
action: "remove",
ids: e
-}, "POST", t), rye = (e, t) => V(mW, {
+}, "POST", t), tye = (e, t) => V(gW, {
action: "reset",
ids: e
-}, "POST", t), yW = () => H.invalidateQueries({ queryKey: hW }), bW = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
-function xW(e) {
+}, "POST", t), xW = () => H.invalidateQueries({ queryKey: _W }), SW = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
+function CW(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 SW = (e, t = "taste", n = "desc") => [
- "jav-discoveries",
- e,
- t,
- n
-];
-function CW(e, t, n = {}) {
- let r = new URLSearchParams({
- scope: e,
- limit: "100",
- sort: n.sort || "taste",
- direction: n.direction || "desc"
- });
- 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);
-}
+// src/react/jav/discovery-sorts.ts
var wW = [
+ [
+ "taste",
+ "口味",
+ "按口味匹配排序"
+ ],
+ [
+ "release_date",
+ Lj[1],
+ "按发行日期排序"
+ ],
+ [
+ "source_score",
+ "来源评分",
+ "按来源评分排序"
+ ],
+ [
+ "duration",
+ "时长",
+ "按时长排序"
+ ],
+ [
+ "code",
+ "番号",
+ "按番号排序"
+ ]
+], TW = [
[
"release_date",
- Fj[1],
+ Lj[1],
"按发行日期排序"
],
[
@@ -49664,7 +49675,50 @@ var wW = [
"按口味匹配排序"
]
];
-function TW(e) {
+function EW(e) {
+ return typeof e == "number" && Number.isFinite(e) ? e.toFixed(3) : "—";
+}
+function DW(e) {
+ if (typeof e != "number" || !Number.isFinite(e)) return {
+ score: "—",
+ label: "资料未取得",
+ color: "neutral"
+ };
+ let t = Math.round(Math.max(0, Math.min(1, e)) * 100);
+ return {
+ score: String(t),
+ ...t >= 75 ? {
+ label: "强烈推荐",
+ color: "lime"
+ } : t >= 50 ? {
+ label: "推荐",
+ color: "blue"
+ } : t >= 25 ? {
+ label: "值得看看",
+ color: "yellow"
+ } : {
+ label: "探索",
+ color: "neutral"
+ }
+ };
+}
+// src/react/jav/jav.ts
+var OW = (e, t = "taste", n = "desc") => [
+ "jav-discoveries",
+ e,
+ t,
+ n
+];
+function kW(e, t, n = {}) {
+ let r = new URLSearchParams({
+ scope: e,
+ limit: "100",
+ sort: n.sort || "taste",
+ direction: n.direction || "desc"
+ });
+ 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 AW(e) {
let t = new URLSearchParams(e), n = t.get("sort"), r = t.get("seed") || "";
return {
page: Math.max(1, Math.floor(Number(t.get("page"))) || 1),
@@ -49672,12 +49726,12 @@ function TW(e) {
studio: t.get("studio") || "",
tag: t.get("tag") || "",
q: (t.get("q") || "").trim(),
- sort: n === "random" && r ? "random" : wW.find(([e]) => e === n)?.[0] || "release_date",
+ sort: n === "random" && r ? "random" : TW.find(([e]) => e === n)?.[0] || "release_date",
dir: t.get("dir") === "asc" ? "asc" : "desc",
seed: r
};
}
-var EW = (e) => [
+var jW = (e) => [
"jav-releases",
e.page,
e.performer,
@@ -49688,7 +49742,7 @@ var EW = (e) => [
e.dir,
e.seed
];
-function DW(e, t, n = "") {
+function MW(e, t, n = "") {
let r = new URLSearchParams({
page: String(e.page),
size: "24",
@@ -49704,7 +49758,7 @@ function DW(e, t, n = "") {
]) e[t] && r.set(t, e[t]);
return n && r.set("metadata_job_id", n), B(`/api/jav/releases?${r}`, t);
}
-function OW(e, t, n) {
+function NW(e, t, n) {
let r = Co({
...e,
is_jav: !0
@@ -49713,40 +49767,40 @@ function OW(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 kW(e, t) {
+async function PW(e, t) {
if (e === "wants") await H.ensureQueryData({
- queryKey: hW,
- queryFn: () => gW(t),
+ queryKey: _W,
+ queryFn: () => vW(t),
staleTime: 3e4,
revalidateIfStale: !0
});
else if (e === "discover") await H.ensureQueryData({
- queryKey: SW("external"),
- queryFn: () => CW("external", t),
+ queryKey: OW("external"),
+ queryFn: () => kW("external", t),
staleTime: 3e4,
revalidateIfStale: !0
});
else if (e === "releases") {
- let e = TW(location.search);
+ let e = AW(location.search);
await H.ensureQueryData({
- queryKey: EW(e),
- queryFn: () => DW(e, t),
+ queryKey: jW(e),
+ queryFn: () => MW(e, t),
staleTime: 3e4,
revalidateIfStale: !0
});
}
}
// src/react/components/board-tabs.tsx
-function AW({ value: e }) {
+function FW({ 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 jW = "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 MW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5" }) {
- let a = (0, F.useRef)(null), o = CL(a);
+var IW = "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 LW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5" }) {
+ let a = (0, F.useRef)(null), o = TL(a);
return (0, F.useLayoutEffect)(() => {
let e = a.current;
e && (() => {
@@ -49755,7 +49809,7 @@ function MW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
let n = t.offsetLeft, r = n + t.offsetWidth;
n < e.scrollLeft ? e.scrollLeft = n : r > e.scrollLeft + e.clientWidth && (e.scrollLeft = r - e.clientWidth);
})();
- }, [t]), /* @__PURE__ */ (0, I.jsx)(YI, {
+ }, [t]), /* @__PURE__ */ (0, I.jsx)(ZI, {
ref: o,
role: "tablist",
"aria-label": n,
@@ -49770,7 +49824,7 @@ function MW({ 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 ? TV(e.symbol) : null, i = e.value === t;
+ let n = e.symbol ? DV(e.symbol) : null, i = e.value === t;
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
role: "tab",
@@ -49779,7 +49833,7 @@ function MW({ 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: jW,
+ className: IW,
onClick: () => {
i || r(e.value);
},
@@ -49789,59 +49843,64 @@ function MW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
});
}
// src/react/jav/jav-header.tsx
-function NW({ tab: e, navigate: t, find: n }) {
+function RW({ tab: e, navigate: t, find: n, search: r }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex w-full flex-col gap-4",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
- className: "flex flex-wrap items-center justify-between gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)("h2", {
- "data-page-title": "",
- className: "text-display-4-medium text-text-primary max-board-narrow:text-title-1-medium",
- children: "JAV"
- }), /* @__PURE__ */ (0, I.jsx)(J, {
- variant: "primary",
- onClick: n,
- children: "查找资源"
- })]
- }), /* @__PURE__ */ (0, I.jsx)(MW, {
- tabs: xU.map(([e, t]) => ({
+ className: "flex min-w-0 flex-wrap items-center gap-3 max-board-narrow:gap-x-2",
+ children: [
+ /* @__PURE__ */ (0, I.jsx)("h2", {
+ "data-page-title": "",
+ className: "text-display-4-medium text-text-primary max-board-narrow:text-title-1-medium",
+ children: "JAV"
+ }),
+ r,
+ /* @__PURE__ */ (0, I.jsx)(J, {
+ variant: "primary",
+ className: r ? "flex-none" : "ml-auto flex-none",
+ onClick: n,
+ children: "查找资源"
+ })
+ ]
+ }), /* @__PURE__ */ (0, I.jsx)(LW, {
+ tabs: CU.map(([e, t]) => ({
value: e,
label: t
})),
value: e,
label: "JAV 分区",
className: "",
- onChange: (e) => t(CU(e))
+ onChange: (e) => t(TU(e))
})]
});
}
-function PW({ navigate: e, receipt: t }) {
+function zW({ navigate: e, receipt: t }) {
let [n, r] = (0, F.useState)(null);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(NW, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(RW, {
tab: "library",
navigate: e,
find: () => r({})
- }), /* @__PURE__ */ (0, I.jsx)(pW, {
+ }), /* @__PURE__ */ (0, I.jsx)(hW, {
prefill: n,
close: () => r(null),
receipt: t
})] });
}
// src/react/router/pages/catalog.tsx
-var FW = () => uu, IW = W.navigation.seq, LW = W.navigation.openEpoch, RW = W.navigation.location.pathname, zW = {
- seq: IW,
+var BW = () => uu, VW = W.navigation.seq, HW = W.navigation.openEpoch, UW = W.navigation.location.pathname, WW = {
+ seq: VW,
claimed: !0,
- from: RW
+ from: UW
};
W.listen((e) => {
- zW = {
+ WW = {
seq: e.seq,
- claimed: e.openEpoch === LW,
- from: RW
- }, LW = e.openEpoch, RW = e.location.pathname;
+ claimed: e.openEpoch === HW,
+ from: UW
+ }, HW = e.openEpoch, UW = e.location.pathname;
});
-var BW = !1;
-function VW(e) {
+var GW = !1;
+function KW(e) {
let { seq: t, openEpoch: n, location: r } = W.navigation, i = Rf(r.pathname), a = Op() ?? r, o = U ?? {};
return {
seq: t,
@@ -49853,7 +49912,7 @@ function VW(e) {
opened: e
};
}
-function HW(e, t, n, r) {
+function qW(e, t, n, r) {
let i = { ...U }, a = om("catalog");
if (a) return { ...a };
if (e === "/trash") return {
@@ -49865,7 +49924,7 @@ function HW(e, t, n, r) {
state: "trash",
q: ""
};
- let o = new URLSearchParams(t), { defaultSort: s, defaultSortDirection: c } = cM().value;
+ let o = new URLSearchParams(t), { defaultSort: s, defaultSortDirection: c } = uM().value;
return {
...i,
loc: o.get("loc") ?? r.defaultLoc(),
@@ -49879,7 +49938,7 @@ function HW(e, t, n, r) {
dur_max: o.get("dur_max") || "",
orient: o.get("orient") || "",
state: On[e] || o.get("state") || "",
- ...Uj(o.get("sort"), o.get("dir"), s, c),
+ ...Gj(o.get("sort"), o.get("dir"), s, c),
seed: o.get("seed") || (n ? rr() : i.seed || rr()),
q: o.get("q") || "",
jav: o.get("jav") || "",
@@ -49890,14 +49949,14 @@ function HW(e, t, n, r) {
folder_recursive: o.get("folder_recursive") === "0" ? "0" : ""
};
}
-function UW(e) {
+function JW(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 WW(e, t) {
- let n = { ...e }, r = VW(n.opened);
+function YW(e, t) {
+ let n = { ...e }, r = KW(n.opened);
Object.assign(e, r);
let i = t.catalog;
if (!i || r.opens === 0) return;
@@ -49909,39 +49968,39 @@ function WW(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;
- UW(() => i.load());
+ JW(() => i.load());
return;
}
- r.epoch !== n.epoch && (a = W.navigation.action === "POP" && zW.from !== "/");
+ r.epoch !== n.epoch && (a = W.navigation.action === "POP" && WW.from !== "/");
}
let { pathname: o, search: s } = W.navigation.location;
if (o === "/" && new URLSearchParams(s).get("state") === "ads") {
- let { kind: e, view: t } = YU(s);
- BW = !0, Ep(XU(e, t), { replace: !0 });
+ let { kind: e, view: t } = ZU(s);
+ GW = !0, Ep(QU(e, t), { replace: !0 });
return;
}
- let c = BW;
- BW = !1, a &&= o === "/" && !sm(), e.opened = !0, yu({ state: HW(o, s, a, i) }), UW(() => i.open(o, {
+ let c = GW;
+ GW = !1, a &&= o === "/" && !sm(), e.opened = !0, yu({ state: qW(o, s, a, i) }), JW(() => i.open(o, {
entering: a,
retitle: c
}));
}
-function GW() {
- let e = (0, F.useContext)(iG), t = rG(), n = (0, F.useSyncExternalStore)(xu, FW), r = Qd(), i = (0, F.useRef)(null), a = (0, F.useRef)({
+function XW() {
+ let e = (0, F.useContext)(oG), t = aG(), n = (0, F.useSyncExternalStore)(xu, BW), 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 = VW(!Rf(W.navigation.location.pathname));
- return !t.covered && t.opens > 0 && (BW || zW.seq === IW ? t.opens = -1 : zW.claimed ? t.seq = -1 : t.epoch = -1), i.current = t, () => {
+ let t = KW(!Rf(W.navigation.location.pathname));
+ return !t.covered && t.opens > 0 && (GW || WW.seq === VW ? t.opens = -1 : WW.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 && WW(i.current, e);
+ t.queued = !1, t.mounted && i.current && YW(i.current, e);
}));
}, [
t,
@@ -49950,7 +50009,7 @@ function GW() {
e
]), null;
}
-function KW() {
+function ZW() {
let { pathname: e } = Qd();
return (0, F.useLayoutEffect)(() => {
if (e !== "/wall") return;
@@ -49963,19 +50022,19 @@ function KW() {
e.inert = n[t] || !1;
});
};
- }, [e]), Rf(e) && !Lf(e) ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(GW, {}, e === "/junk-files" ? "/junk-files" : "/"), An(e) ? /* @__PURE__ */ (0, I.jsx)(lG, {}) : null] });
+ }, [e]), Rf(e) && !Lf(e) ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(XW, {}, e === "/junk-files" ? "/junk-files" : "/"), An(e) ? /* @__PURE__ */ (0, I.jsx)(dG, {}) : null] });
}
-function qW() {
- let e = (0, F.useContext)(iG), t = document.getElementById("javLibraryHeader");
- return t && e ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(PW, {
+function QW() {
+ let e = (0, F.useContext)(oG), t = document.getElementById("javLibraryHeader");
+ return t && e ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(zW, {
navigate: e.navigate,
receipt: (t) => e.receipt(t)
}), t) : null;
}
// src/react/router/pages/overlay.tsx
-var JW = () => uu, YW = () => du;
-function XW() {
- let e = (0, F.useContext)(iG), t = (0, F.useSyncExternalStore)(xu, YW), n = (0, F.useSyncExternalStore)(xu, JW);
+var $W = () => uu, eG = () => du;
+function tG() {
+ let e = (0, F.useContext)(oG), t = (0, F.useSyncExternalStore)(xu, eG), n = (0, F.useSyncExternalStore)(xu, $W);
return (0, F.useEffect)(() => {
if (!t || !n) return;
let r = !0;
@@ -49990,8 +50049,8 @@ function XW() {
e
]), null;
}
-function ZW(e, t = !1) {
- let n = (0, F.useSyncExternalStore)(xu, JW), r = (0, F.useRef)(void 0);
+function nG(e, t = !1) {
+ let n = (0, F.useSyncExternalStore)(xu, $W), 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";
@@ -50010,11 +50069,11 @@ function ZW(e, t = !1) {
}));
}, [n]);
}
-function QW() {
- let e = (0, F.useContext)(iG), t = (0, F.useRef)(e);
+function rG() {
+ let e = (0, F.useContext)(oG), t = (0, F.useRef)(e);
return (0, F.useLayoutEffect)(() => {
t.current = e;
- }, [e]), ZW((t) => {
+ }, [e]), nG((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)(() => () => {
@@ -50023,8 +50082,8 @@ function QW() {
});
}, []), null;
}
-function $W({ path: e }) {
- rG();
+function nye({ path: e }) {
+ aG();
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,
@@ -50036,24 +50095,24 @@ function $W({ path: e }) {
seq: n,
navigationSeq: n,
settings: !1
- }), /* @__PURE__ */ (0, I.jsx)(QW, {}, `${e} ${o.current.seq}`);
+ }), /* @__PURE__ */ (0, I.jsx)(rG, {}, `${e} ${o.current.seq}`);
}
-function eG() {
- let e = (0, F.useContext)(iG);
- return ZW(() => {
+function rye() {
+ let e = (0, F.useContext)(oG);
+ return nG(() => {
e?.follow?.ground();
}), null;
}
-function tG() {
- return /* @__PURE__ */ (0, I.jsx)(eG, {}, rG());
+function iye() {
+ return /* @__PURE__ */ (0, I.jsx)(rye, {}, aG());
}
// src/react/router/router.tsx
-var nG = (0, F.createContext)(0), rG = () => (0, F.useContext)(nG), iG = (0, F.createContext)(null);
-function iye({ children: e }) {
+var iG = (0, F.createContext)(0), aG = () => (0, F.useContext)(iG), oG = (0, F.createContext)(null);
+function aye({ 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)(nG.Provider, {
+ })), []), /* @__PURE__ */ (0, I.jsx)(iG.Provider, {
value: t.openEpoch,
children: /* @__PURE__ */ (0, I.jsx)(Cf, {
location: t.location,
@@ -50063,34 +50122,34 @@ function iye({ children: e }) {
})
});
}
-function aye({ target: e }) {
+function oye({ target: e }) {
let t = ef();
return (0, F.useLayoutEffect)(() => {
e.current = t;
}), null;
}
-function oye(e, t, n) {
+function sye(e, t, n) {
let r = new URL(e, window.location.href);
- M6(r.pathname) ? n(`${r.pathname}${r.search}${r.hash}`) : t.navigate(e);
+ z6(r.pathname) ? n(`${r.pathname}${r.search}${r.hash}`) : t.navigate(e);
}
-function sye() {
- let e = (0, F.useContext)(iG), [t, n] = (0, F.useState)(lp), r = (0, F.useRef)(null);
+function cye() {
+ let e = (0, F.useContext)(oG), [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 && oye(t, e, r.current);
+ e && r.current && sye(t, e, r.current);
}, [e]);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(aye, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, I.jsx)(cye, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(oye, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, I.jsx)(lye, {
entry: t,
- children: /* @__PURE__ */ (0, I.jsx)(lye, {
+ children: /* @__PURE__ */ (0, I.jsx)(uye, {
entry: t,
actions: e,
go: i
})
}, t.revision)) : null] });
}
-var cye = class extends F.Component {
+var lye = class extends F.Component {
state = { failed: !1 };
static getDerivedStateFromError() {
return { failed: !0 };
@@ -50101,48 +50160,48 @@ var cye = class extends F.Component {
render() {
return this.state.failed ? null : this.props.children;
}
-}, lye = (0, F.memo)(function({ entry: e, actions: t, go: n }) {
- return K6(e.path) ? (0, Lt.createPortal)(AFe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
+}, uye = (0, F.memo)(function({ entry: e, actions: t, go: n }) {
+ return $6(e.path) ? (0, Lt.createPortal)(PFe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
});
-function uye({ children: e }) {
+function dye({ children: e }) {
let t = Qd();
- rG();
+ aG();
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(j6).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(EFe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Sf, {
+ Object.entries(AFe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Sf, {
path: e,
element: t.element
}, e)),
- Object.entries(N6).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)),
- Object.entries(I6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Sf, {
+ Object.entries(U6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Sf, {
path: e,
element: t.element
}, e)),
- Object.entries(R6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Sf, {
+ Object.entries(G6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Sf, {
path: e,
element: t.element
}, e)),
- G6.map((e) => /* @__PURE__ */ (0, I.jsx)(Sf, {
+ Q6.map((e) => /* @__PURE__ */ (0, I.jsx)(Sf, {
path: e,
- element: z6["/"].element
+ element: K6["/"].element
}, e)),
- Object.entries(DFe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Sf, {
+ Object.entries(jFe).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)(tG, {}) : z6["/"].element
+ element: e === "/works/:code" ? null : e === "/posts/:id" ? /* @__PURE__ */ (0, I.jsx)(iye, {}) : K6["/"].element
}, e)),
kf.map((e) => /* @__PURE__ */ (0, I.jsx)(Sf, {
path: e,
@@ -50158,7 +50217,7 @@ function uye({ children: e }) {
location: r ?? t,
children: [Pf.map((e) => /* @__PURE__ */ (0, I.jsx)(Sf, {
path: e,
- element: /* @__PURE__ */ (0, I.jsx)($W, { path: e })
+ element: /* @__PURE__ */ (0, I.jsx)(nye, { path: e })
}, e)), /* @__PURE__ */ (0, I.jsx)(Sf, {
path: "*",
element: null
@@ -50166,38 +50225,38 @@ function uye({ children: e }) {
}),
/* @__PURE__ */ (0, I.jsxs)(wf, { children: [kf.map((e) => /* @__PURE__ */ (0, I.jsx)(Sf, {
path: e,
- element: /* @__PURE__ */ (0, I.jsx)(Ive, {})
+ element: /* @__PURE__ */ (0, I.jsx)(Pve, {})
}, e)), /* @__PURE__ */ (0, I.jsx)(Sf, {
path: "*",
element: null
})] })
] });
}
-function dye({ children: e, actions: t = null, background: n, processing: r = !1 }) {
- return /* @__PURE__ */ (0, I.jsxs)(eH, { children: [n, /* @__PURE__ */ (0, I.jsx)(iG.Provider, {
+function fye({ children: e, actions: t = null, background: n, processing: r = !1 }) {
+ return /* @__PURE__ */ (0, I.jsxs)(nH, { children: [n, /* @__PURE__ */ (0, I.jsx)(oG.Provider, {
value: t,
- children: /* @__PURE__ */ (0, I.jsxs)(iye, { children: [
- /* @__PURE__ */ (0, I.jsx)(sye, {}),
- /* @__PURE__ */ (0, I.jsx)(qW, {}),
- /* @__PURE__ */ (0, I.jsx)(XW, {}),
- 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)(Fve, { navigate: t.navigate }) : null,
- r && t ? /* @__PURE__ */ (0, I.jsx)(jve, { actions: t }) : null,
- /* @__PURE__ */ (0, I.jsx)(uye, { children: e })
+ children: /* @__PURE__ */ (0, I.jsxs)(aye, { children: [
+ /* @__PURE__ */ (0, I.jsx)(cye, {}),
+ /* @__PURE__ */ (0, I.jsx)(QW, {}),
+ /* @__PURE__ */ (0, I.jsx)(tG, {}),
+ r && t ? /* @__PURE__ */ (0, I.jsx)(tve, { toast: t.toast }) : null,
+ r && t ? /* @__PURE__ */ (0, I.jsx)(ave, {}) : null,
+ r && t ? /* @__PURE__ */ (0, I.jsx)(Nve, { navigate: t.navigate }) : null,
+ r && t ? /* @__PURE__ */ (0, I.jsx)(kve, { actions: t }) : null,
+ /* @__PURE__ */ (0, I.jsx)(dye, { children: e })
] })
})] });
}
-var fye = { onCaughtError: (e) => {
+var pye = { onCaughtError: (e) => {
globalThis.reportError?.(e);
-} }, aG = {
+} }, sG = {
category: "个人分类",
creator: "创作者/账号",
performer: "人物",
seller: "卖家",
studio: "厂牌"
};
-function oG(e, t = "", n = "") {
+function cG(e, t = "", n = "") {
let r = new URLSearchParams({
...e,
folder: t,
@@ -50209,14 +50268,14 @@ function oG(e, t = "", n = "") {
queryFn: ({ signal: e }) => B(`/api/folders?${r}`, e)
};
}
-function sG(e, t) {
+function lG(e, t) {
let n = new URLSearchParams(e.search);
for (let [e, r] of Object.entries(t)) r ? n.set(e, r) : n.delete(e);
return e.pathname + (n.size ? `?${n}` : "");
}
// src/react/catalog-folders/folder-rule-dialog.tsx
-function pye({ folder: e, rule: t, revision: n, close: r }) {
- let i = (0, F.useContext)(iG), a = DH(), [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 mye({ folder: e, rule: t, revision: n, close: r }) {
+ let i = (0, F.useContext)(oG), a = kH(), [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,
@@ -50245,7 +50304,7 @@ function pye({ 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)(bV, {
+ return g ? null : /* @__PURE__ */ (0, I.jsx)(SV, {
isOpen: !0,
onOpenChange: (e) => {
!e && !w && r();
@@ -50259,7 +50318,7 @@ function pye({ folder: e, rule: t, revision: n, close: r }) {
className: "flex items-start justify-between gap-4 border-b border-separator-border p-5",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "min-w-0",
- children: [/* @__PURE__ */ (0, I.jsx)(eR, {
+ children: [/* @__PURE__ */ (0, I.jsx)(nR, {
slot: "title",
className: "text-title-2-medium",
children: "设置目录用途"
@@ -50267,7 +50326,7 @@ function pye({ 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)(EV, {
+ }), /* @__PURE__ */ (0, I.jsx)(OV, {
label: "关闭目录用途",
onPress: () => {
w || r();
@@ -50279,20 +50338,20 @@ function pye({ 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)(pV, { children: "这个文件夹用于" }), /* @__PURE__ */ (0, I.jsx)(tW, {
+ children: [/* @__PURE__ */ (0, I.jsx)(hV, { children: "这个文件夹用于" }), /* @__PURE__ */ (0, I.jsx)(rW, {
"aria-label": "这个文件夹用于",
selectedKey: o,
isDisabled: w,
onSelectionChange: (e) => {
s(e), y();
},
- children: Object.entries(aG).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(nW, {
+ children: Object.entries(sG).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(iW, {
id: e,
children: t
}, e))
})]
}),
- o === "category" ? null : /* @__PURE__ */ (0, I.jsx)(yV, {
+ o === "category" ? null : /* @__PURE__ */ (0, I.jsx)(xV, {
label: "关联名称",
value: c,
onChange: (e) => {
@@ -50303,7 +50362,7 @@ function pye({ folder: e, rule: t, revision: n, close: r }) {
isDisabled: w,
isRequired: !0
}),
- /* @__PURE__ */ (0, I.jsx)(ZV, {
+ /* @__PURE__ */ (0, I.jsx)($V, {
isSelected: u,
isDisabled: w,
onChange: (e) => {
@@ -50311,7 +50370,7 @@ function pye({ folder: e, rule: t, revision: n, close: r }) {
},
children: "应用到子文件夹"
}),
- /* @__PURE__ */ (0, I.jsx)(ZV, {
+ /* @__PURE__ */ (0, I.jsx)($V, {
isSelected: f,
isDisabled: w,
onChange: (e) => {
@@ -50348,9 +50407,9 @@ function pye({ folder: e, rule: t, revision: n, close: r }) {
children: e.name
}, e.id))
}) : null,
- m.conflicts.length ? /* @__PURE__ */ (0, I.jsx)(SV, {
+ m.conflicts.length ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "warning",
- extra: /* @__PURE__ */ (0, I.jsx)(QH, {
+ extra: /* @__PURE__ */ (0, I.jsx)(eU, {
summary: "查看归属冲突",
children: /* @__PURE__ */ (0, I.jsx)("ul", {
className: "mt-2 flex flex-col gap-2",
@@ -50368,7 +50427,7 @@ function pye({ folder: e, rule: t, revision: n, close: r }) {
}) : null
]
}) : null,
- a.error ? /* @__PURE__ */ (0, I.jsx)(SV, {
+ a.error ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "error",
children: a.error
}) : null
@@ -50383,7 +50442,7 @@ function pye({ folder: e, rule: t, revision: n, close: r }) {
onClick: () => {
w || C();
},
- ...DV(a.busy === "remove"),
+ ...kV(a.busy === "remove"),
children: "移除规则"
}) : null,
/* @__PURE__ */ (0, I.jsx)(J, {
@@ -50395,13 +50454,13 @@ function pye({ folder: e, rule: t, revision: n, close: r }) {
}),
m ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "primary",
- ...DV(a.busy === "save"),
+ ...kV(a.busy === "save"),
onClick: S,
children: T("save", "正在保存") || "保存目录用途"
}) : /* @__PURE__ */ (0, I.jsx)(J, {
variant: "primary",
disabled: o !== "category" && !c.trim(),
- ...DV(a.busy === "preview"),
+ ...kV(a.busy === "preview"),
onClick: () => {
x();
},
@@ -50414,7 +50473,7 @@ function pye({ folder: e, rule: t, revision: n, close: r }) {
});
}
// src/react/catalog-folders/use-folder-sticky-offset.ts
-function mye(e, t) {
+function hye(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 = () => {
@@ -50437,34 +50496,34 @@ function mye(e, t) {
}, [e, t]);
}
// src/react/catalog-folders/catalog-folders-page.tsx
-function cG() {
- return Zd() ? /* @__PURE__ */ (0, I.jsx)(hye, {}) : null;
+function uG() {
+ return Zd() ? /* @__PURE__ */ (0, I.jsx)(gye, {}) : null;
}
-function hye() {
- let e = Qd(), t = (0, F.useContext)(iG);
+function gye() {
+ let e = Qd(), t = (0, F.useContext)(oG);
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)(bL, {
+ return /* @__PURE__ */ (0, I.jsx)(SL, {
size: "small",
"data-folder-mode-toggle": "",
"aria-label": "文件夹模式",
title: "文件夹模式",
"aria-pressed": r,
- icon: WB,
- onClick: () => t?.navigate(sG(e, r ? {
+ icon: KB,
+ onClick: () => t?.navigate(lG(e, r ? {
browse: null,
folder: null,
folder_recursive: null
} : { browse: "folders" }))
});
}
-function gye({ children: e, enabled: t }) {
- return Zd() ? /* @__PURE__ */ (0, I.jsx)(_ye, {
+function _ye({ children: e, enabled: t }) {
+ return Zd() ? /* @__PURE__ */ (0, I.jsx)(vye, {
enabled: t,
children: e
}) : /* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: e });
}
-function _ye({ children: e, enabled: t }) {
+function vye({ 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",
@@ -50484,7 +50543,7 @@ function _ye({ children: e, enabled: t }) {
hidden: !c
}), e]
}),
- n && i ? /* @__PURE__ */ (0, I.jsx)(lG, {
+ n && i ? /* @__PURE__ */ (0, I.jsx)(dG, {
treeTarget: n,
headerTarget: i,
enabled: t
@@ -50492,14 +50551,14 @@ function _ye({ children: e, enabled: t }) {
]
});
}
-function lG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
- let r = Qd(), i = (0, F.useContext)(iG), a = new URLSearchParams(r.search), o = n && (a.get("browse") === "folders" || !!a.get("folder")), s = {
+function dG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
+ let r = Qd(), i = (0, F.useContext)(oG), a = new URLSearchParams(r.search), o = n && (a.get("browse") === "folders" || !!a.get("folder")), s = {
loc: a.get("loc") ?? "",
library: a.get("library") ?? ""
};
- mye(o, e);
+ hye(o, e);
let c = a.get("folder") || "", l = Pt({
- ...oG(s, c),
+ ...cG(s, c),
enabled: o
}), [u, d] = (0, F.useState)(!1), [f, p] = (0, F.useState)(!1), m = e ?? document.getElementById("catalogFoldersTree"), h = t ?? document.getElementById("catalogFolderHeader");
if ((0, F.useLayoutEffect)(() => (m && (m.hidden = !o), h && (h.hidden = !o), e || document.body.toggleAttribute("data-folder-browse", o), () => {
@@ -50513,11 +50572,11 @@ function lG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
d(!1), p(!1);
}, [c, o]), !o || !m || !h || !i) return null;
let g = (e) => {
- d(!1), i.navigate(sG(r, {
+ d(!1), i.navigate(lG(r, {
browse: "folders",
folder: e
}));
- }, _ = l.data, v = /* @__PURE__ */ (0, I.jsx)(yye, {
+ }, _ = l.data, v = /* @__PURE__ */ (0, I.jsx)(bye, {
scope: s,
selected: c,
current: _,
@@ -50534,21 +50593,21 @@ function lG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "folder-drawer-trigger",
- children: /* @__PURE__ */ (0, I.jsx)(bL, {
+ children: /* @__PURE__ */ (0, I.jsx)(SL, {
"aria-label": "打开文件夹目录",
- icon: uge,
+ icon: cge,
size: "small",
onClick: () => d(!0)
})
}),
- /* @__PURE__ */ (0, I.jsxs)(Age, {
+ /* @__PURE__ */ (0, I.jsxs)(Oge, {
"aria-label": "文件夹路径",
- children: [/* @__PURE__ */ (0, I.jsx)(HV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(WV, {
current: !c,
onClick: () => g(""),
- icon: WB,
+ icon: KB,
children: "全部文件夹"
- }), _?.ancestors.map((e, t) => /* @__PURE__ */ (0, I.jsx)(HV, {
+ }), _?.ancestors.map((e, t) => /* @__PURE__ */ (0, I.jsx)(WV, {
current: t === _.ancestors.length - 1,
onClick: () => g(e.id),
children: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -50558,15 +50617,15 @@ function lG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
})
}, e.id))]
}),
- _?.selected ? /* @__PURE__ */ (0, I.jsx)(bL, {
+ _?.selected ? /* @__PURE__ */ (0, I.jsx)(SL, {
"aria-label": "设置目录用途",
- icon: Zhe,
+ icon: Yhe,
size: "small",
onClick: () => p(!0)
}) : null
]
}),
- l.error && !u ? /* @__PURE__ */ (0, I.jsx)(SV, {
+ l.error && !u ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -50578,7 +50637,7 @@ function lG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}),
children: cr(l.error)
}) : null,
- _?.conflicts?.length ? /* @__PURE__ */ (0, I.jsxs)(SV, {
+ _?.conflicts?.length ? /* @__PURE__ */ (0, I.jsxs)(wV, {
tone: "warning",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -50590,14 +50649,14 @@ function lG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}) : null,
_?.selected ? /* @__PURE__ */ (0, I.jsxs)("div", {
className: "folder-scope-row",
- children: [/* @__PURE__ */ (0, I.jsx)(ZV, {
+ children: [/* @__PURE__ */ (0, I.jsx)($V, {
size: "sm",
isSelected: a.get("folder_recursive") !== "0",
- onChange: (e) => i.navigate(sG(r, { folder_recursive: e ? null : "0" })),
+ onChange: (e) => i.navigate(lG(r, { folder_recursive: e ? null : "0" })),
children: "包含子文件夹"
}), /* @__PURE__ */ (0, I.jsx)("span", {
className: "text-caption-1-regular text-text-tertiary",
- children: _.rule ? `${aG[_.rule.purpose]}${_.rule.name ? ` · ${_.rule.name}` : ""}` : "个人分类"
+ children: _.rule ? `${sG[_.rule.purpose]}${_.rule.name ? ` · ${_.rule.name}` : ""}` : "个人分类"
})]
}) : null,
l.isPending ? /* @__PURE__ */ (0, I.jsx)("div", {
@@ -50607,13 +50666,13 @@ function lG({ 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)(vye, {
+ _?.children.length ? /* @__PURE__ */ (0, I.jsx)(yye, {
nodes: _.children,
go: g
}, c) : null
]
}), h),
- /* @__PURE__ */ (0, I.jsxs)(bV, {
+ /* @__PURE__ */ (0, I.jsxs)(SV, {
isOpen: u,
onOpenChange: d,
width: "form",
@@ -50623,7 +50682,7 @@ function lG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: [/* @__PURE__ */ (0, I.jsx)("h2", {
className: "text-title-2-medium",
children: "文件夹"
- }), /* @__PURE__ */ (0, I.jsx)(EV, {
+ }), /* @__PURE__ */ (0, I.jsx)(OV, {
label: "关闭文件夹目录",
onPress: () => d(!1)
})]
@@ -50632,7 +50691,7 @@ function lG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: u ? v : null
})]
}),
- f && _?.selected ? /* @__PURE__ */ (0, I.jsx)(pye, {
+ f && _?.selected ? /* @__PURE__ */ (0, I.jsx)(mye, {
folder: _.selected,
rule: _.rule,
revision: _.rules_revision,
@@ -50640,7 +50699,7 @@ function lG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}, _.selected.id) : null
] });
}
-function vye({ nodes: e, go: t }) {
+function yye({ 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",
@@ -50651,7 +50710,7 @@ function vye({ nodes: e, go: t }) {
children: a.map((e) => /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: WB,
+ leadingIcon: KB,
onClick: () => t(e.id),
children: /* @__PURE__ */ (0, I.jsx)("span", {
className: "truncate",
@@ -50668,28 +50727,28 @@ function vye({ nodes: e, go: t }) {
}) : null]
});
}
-function yye({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
- let a = Pt(oG(e)), [o, s] = (0, F.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, F.useState)(""), u = (0, F.useDeferredValue)(c), d = Pt({
- ...oG(e, "", u),
+function bye({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
+ let a = Pt(cG(e)), [o, s] = (0, F.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, F.useState)(""), u = (0, F.useDeferredValue)(c), d = Pt({
+ ...cG(e, "", u),
enabled: !!u.trim()
- }), f = QV();
+ }), f = eH();
(0, F.useEffect)(() => {
n?.ancestors.length && s((e) => /* @__PURE__ */ new Set([...e, ...n.ancestors.filter((e) => e.has_children).map((e) => e.id)]));
}, [n?.ancestors]);
- let p = [...o].map(String), m = Mt({ queries: p.map((t) => oG(e, t)) }), h = /* @__PURE__ */ new Map();
+ let p = [...o].map(String), m = Mt({ queries: p.map((t) => cG(e, t)) }), h = /* @__PURE__ */ new Map();
m.forEach((e, t) => {
e.data && h.set(p[t], e.data.children);
}), n?.selected && h.set(n.selected.id, n.children);
let g = (e) => {
let t = h.get(e.id);
- return /* @__PURE__ */ (0, I.jsx)(qV, {
+ return /* @__PURE__ */ (0, I.jsx)(YV, {
id: e.id,
label: e.name,
- icon: WB,
- expandedIcon: KB,
+ icon: KB,
+ expandedIcon: JB,
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)(qV, {
+ children: e.has_children ? t ? t.map(g) : /* @__PURE__ */ (0, I.jsx)(YV, {
id: `${e.id}:loading`,
label: "正在读取文件夹",
isDisabled: !0
@@ -50705,15 +50764,15 @@ function yye({ 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)(yV, {
+ /* @__PURE__ */ (0, I.jsx)(xV, {
"aria-label": "查找文件夹",
placeholder: "查找文件夹",
- leadingIcon: iV,
+ leadingIcon: oV,
value: c,
onChange: l,
size: "small"
}),
- v ? /* @__PURE__ */ (0, I.jsx)(SV, {
+ v ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -50748,20 +50807,20 @@ function yye({ 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)(SV, {
+ }) : d.error ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "error",
children: cr(d.error)
}) : d.data?.matches.length ? d.data.matches.map((e) => /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: WB,
+ leadingIcon: KB,
onClick: () => {
l(""), r(e.id);
},
children: e.name
- }, e.id)) : /* @__PURE__ */ (0, I.jsx)(CV, {
+ }, e.id)) : /* @__PURE__ */ (0, I.jsx)(TV, {
size: "compact",
- icon: iV,
+ icon: oV,
title: "没有匹配的文件夹",
actions: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
@@ -50770,7 +50829,7 @@ function yye({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
}),
children: "换个目录名称试试。"
})
- }) : a.data?.roots.length ? /* @__PURE__ */ (0, I.jsx)(Nge, {
+ }) : a.data?.roots.length ? /* @__PURE__ */ (0, I.jsx)(jge, {
"aria-label": "媒体目录",
size: "sm",
expandedKeys: o,
@@ -50778,11 +50837,11 @@ function yye({ 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)(CV, {
+ }) : /* @__PURE__ */ (0, I.jsx)(TV, {
size: "compact",
- icon: WB,
+ icon: KB,
title: "尚未添加媒体目录",
- actions: /* @__PURE__ */ (0, I.jsx)(ML, {
+ actions: /* @__PURE__ */ (0, I.jsx)(PL, {
size: "small",
href: "/settings/library",
children: "添加媒体"
@@ -50795,63 +50854,63 @@ function yye({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
});
}
// src/react/catalog-grid/catalog-view.ts
-var uG = "peach.catalog-view.v1", dG = /* @__PURE__ */ new Set(), fG = "cards";
-function pG() {
+var fG = "peach.catalog-view.v1", pG = /* @__PURE__ */ new Set(), mG = "cards";
+function hG() {
try {
- return localStorage.getItem(uG) === "list" ? "list" : "cards";
+ return localStorage.getItem(fG) === "list" ? "list" : "cards";
} catch {
- return fG;
+ return mG;
}
}
-function bye(e) {
- fG = e === "list" ? "list" : "cards";
+function xye(e) {
+ mG = e === "list" ? "list" : "cards";
try {
- localStorage.setItem(uG, fG);
+ localStorage.setItem(fG, mG);
} catch {}
- dG.forEach((e) => e());
+ pG.forEach((e) => e());
}
-function xye(e) {
- dG.add(e);
+function Sye(e) {
+ pG.add(e);
let t = (t) => {
- (t.key === uG || t.key === null) && e();
+ (t.key === fG || t.key === null) && e();
};
return addEventListener("storage", t), () => {
- dG.delete(e), removeEventListener("storage", t);
+ pG.delete(e), removeEventListener("storage", t);
};
}
-var mG = () => (0, F.useSyncExternalStore)(xye, pG, () => "cards");
+var gG = () => (0, F.useSyncExternalStore)(Sye, hG, () => "cards");
// src/react/catalog-grid/catalog-view-toggle.tsx
-function hG() {
- let e = mG();
- return /* @__PURE__ */ (0, I.jsxs)(Gz, {
+function _G() {
+ let e = gG();
+ return /* @__PURE__ */ (0, I.jsxs)(qz, {
"aria-label": "馆藏显示方式",
orientation: "horizontal",
value: e,
- onChange: bye,
+ onChange: xye,
"data-entity-layout": "",
- className: yU,
- children: [/* @__PURE__ */ (0, I.jsx)(Kz, {
+ className: xU,
+ children: [/* @__PURE__ */ (0, I.jsx)(Jz, {
value: "cards",
"aria-label": "卡片",
- className: bU,
+ className: SU,
"data-glass-segment": "",
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: "卡片",
className: "pointer-events-none contents",
- children: /* @__PURE__ */ (0, I.jsx)(XB, {
+ children: /* @__PURE__ */ (0, I.jsx)(QB, {
"aria-hidden": "true",
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, I.jsx)(Kz, {
+ }), /* @__PURE__ */ (0, I.jsx)(Jz, {
value: "list",
"aria-label": "列表",
- className: bU,
+ className: SU,
"data-glass-segment": "",
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: "列表",
className: "pointer-events-none contents",
- children: /* @__PURE__ */ (0, I.jsx)(oge, {
+ children: /* @__PURE__ */ (0, I.jsx)(ige, {
"aria-hidden": "true",
className: "size-4"
})
@@ -50860,8 +50919,8 @@ function hG() {
});
}
// src/react/components/icon-swap.tsx
-function gG({ a: e, b: t, state: n, className: r }) {
- let { isFocusVisible: i } = OC();
+function vG({ a: e, b: t, state: n, className: r }) {
+ let { isFocusVisible: i } = AC();
return /* @__PURE__ */ (0, I.jsxs)("span", {
"aria-hidden": !0,
className: `iconswap ${r || ""}`,
@@ -50877,114 +50936,114 @@ function gG({ a: e, b: t, state: n, className: r }) {
})]
});
}
-function _G({ className: e }) {
- return /* @__PURE__ */ (0, I.jsx)(gG, {
- a: Mhe,
- b: jhe,
+function yG({ className: e }) {
+ return /* @__PURE__ */ (0, I.jsx)(vG, {
+ a: Ahe,
+ b: khe,
className: e
});
}
// src/react/follow-feed/follow-marks.ts
-var vG = (e) => typeof e == "string" ? e : "", yG = (e) => e.aliases;
-function bG(e, t = "") {
+var bG = (e) => typeof e == "string" ? e : "", xG = (e) => e.aliases;
+function SG(e, t = "") {
let n = qi(e);
return n ? `<img data-follow-site-icon="" src="${n}" alt="${z(t)}"${t ? ` title="${z(t)}"` : ""} loading="lazy" data-drop="self">` : "";
}
-function xG(e, t = "") {
+function CG(e, t = "") {
let n = z(oi(t || e)), r = qi(e);
return r ? `<img data-follow-site-icon="" src="${r}" alt="" loading="lazy" data-drop="initial" data-initial="${n}" data-drop-class="follow-site-initial">` : `<span class="follow-site-initial" aria-hidden="true">${n}</span>`;
}
-var SG = (e) => vG(e.title).trim() || "未命名内容", CG = (e, t) => ai(e, yG(t));
-function wG(e) {
+var wG = (e) => bG(e.title).trim() || "未命名内容", TG = (e, t) => ai(e, xG(t));
+function EG(e) {
let t = e.filter((e) => e.entity_id && e.entity_name);
if (new Set(t.map((e) => e.entity_id)).size !== 1) return "";
- let n = t[0], r = vG(n.entity_name);
+ let n = t[0], r = bG(n.entity_name);
return cn("creator", r, n.entity_id), r;
}
-function TG(e, t) {
+function DG(e, t) {
let { src: n, fallback: r } = si(e), i = oi(t);
if (!n) return `<span class="favatar none" title="没有可用头像">${z(i)}</span>`;
let a = r ? ` data-fallbacks="${z(r)}"` : "";
return `<img class="favatar" src="${z(n)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="initial"${a} data-initial="${z(i)}" data-drop-class="favatar none">`;
}
-function EG(e, t, n) {
- let r = yG(n), i = e.credit, a = i?.poster;
+function OG(e, t, n) {
+ let r = xG(n), i = e.credit, a = i?.poster;
if (!a) {
let n = ai(t, r);
return {
- author: n || vG(e.author) || vG(e.source_label) || "创作者未取得",
- avatar: TG(t, n),
+ author: n || bG(e.author) || bG(e.source_label) || "创作者未取得",
+ avatar: DG(t, n),
credited: "",
- entityName: wG(t)
+ entityName: EG(t)
};
}
let o = (e) => String(e || "").toLowerCase().replace(/[^a-z0-9]/g, ""), s = n.sources.find((e) => o(e.ref) === o(a)), c = s?.author_key ? n.sources.filter((e) => e.author_key === s.author_key) : s ? [s] : [], l = c.length && ai(c, r) || a;
return {
author: l,
- avatar: TG(c, l),
+ avatar: DG(c, l),
credited: i.credited || "",
- entityName: wG(c)
+ entityName: EG(c)
};
}
-function DG(e, t = e.primary) {
+function kG(e, t = e.primary) {
let n = [], r = (e, t) => `<small class="javedition" data-follow-edition="${e}">${t}</small>`;
e.primary.variant_kind === "wip" ? n.push(r("wip", "WIP")) : e.has_wip && n.push(r("has-wip", "含 WIP"));
- let i = vG(e.primary.version);
+ let i = bG(e.primary.version);
i && n.push(r("version", z(i)));
- let a = vG(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
+ let a = bG(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
return o && n.push(r(a, o)), n.join("");
}
-function OG(e, t = e.primary) {
+function AG(e, t = e.primary) {
let n = new Map([
e.primary,
...e.variants,
...e.duplicates
].filter((e) => e.provider !== t.provider).map((e) => [e.provider, e.provider_label || e.provider]));
if (!n.size) return "";
- let r = [...n].map(([e, t]) => bG(e, t) || `<span>${z(t)}</span>`).join("");
+ let r = [...n].map(([e, t]) => SG(e, t) || `<span>${z(t)}</span>`).join("");
return `<span data-follow-seealso="" title="另见 ${z([...n.values()].join("、"))}"><span data-follow-seealso-label="">另见</span> ${r}</span>`;
}
-function kG(e, t) {
- let n = vG(e.media_error);
+function jG(e, t) {
+ let n = bG(e.media_error);
return n ? `媒体未取得:${n}` : e.media_needs_credential && !t.credentials.has(e.provider) ? e.playable ? "部分媒体未取得:需要 F95 登录会话解析" : "媒体未取得:需要 F95 登录会话解析" : "";
}
-var Sye = 864e5, Cye = (e, t) => {
+var Cye = 864e5, wye = (e, t) => {
let n = new Date(/[Zz]|[+-]\d\d:?\d\d$/.test(e) ? e : `${e}Z`).getTime();
- return Number.isFinite(n) && n - t > Sye;
+ return Number.isFinite(n) && n - t > Cye;
};
-function AG(e, t) {
- let n = vG(e.published_at);
+function MG(e, t) {
+ let n = bG(e.published_at);
if (!n) return null;
let r = e.published_precision === "approximate", i = Sr(n);
return {
prefix: r ? "约 " : "",
full: r ? i.slice(0, 10) : i,
- suffix: Cye(n, t) ? " · 晚于现在" : ""
+ suffix: wye(n, t) ? " · 晚于现在" : ""
};
}
-function jG(e, t = Date.now()) {
- let n = AG(e, t);
+function NG(e, t = Date.now()) {
+ let n = MG(e, t);
return n ? `${n.prefix}${n.full}${n.suffix}` : "时间未取得";
}
-function wye(e, t = Date.now()) {
- let n = AG(e, t);
+function Tye(e, t = Date.now()) {
+ let n = MG(e, t);
if (!n) return "时间未取得";
if (!/^\d{4}-/.test(n.full)) return `${n.prefix}${n.full}${n.suffix}`;
let r = n.full.startsWith(String(new Date(t).getFullYear())) ? n.full.slice(5, 10) : n.full.slice(0, 10);
return `${n.prefix}${r}${n.suffix}`;
}
-var MG = /* @__PURE__ */ new Set(), NG = [], PG = null;
-function FG() {
- if (PG = null, !NG.length) return;
- let e = NG.splice(0, 200);
+var PG = /* @__PURE__ */ new Set(), FG = [], IG = null;
+function LG() {
+ if (IG = null, !FG.length) return;
+ let e = FG.splice(0, 200);
wn("/api/follow/image-dims", {
method: "POST",
body: JSON.stringify({ entries: e })
- }).catch(() => {}), NG.length && (PG = setTimeout(FG, 800));
+ }).catch(() => {}), FG.length && (IG = setTimeout(LG, 800));
}
-function Tye(e, t, n, r) {
+function Eye(e, t, n, r) {
let i = `${e}:${t ?? ""}`;
- MG.has(i) || (MG.add(i), NG.push(t === null ? {
+ PG.has(i) || (PG.add(i), FG.push(t === null ? {
item: e,
width: n,
height: r
@@ -50993,25 +51052,25 @@ function Tye(e, t, n, r) {
width: n,
height: r,
media: t
- }), PG ||= setTimeout(FG, 800));
+ }), IG ||= setTimeout(LG, 800));
}
// src/react/entity-filter/entity-filter.ts
-var Eye = (e) => e === "videos", IG = () => /* @__PURE__ */ (0, I.jsx)("span", {
+var Dye = (e) => e === "videos", RG = () => /* @__PURE__ */ (0, I.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), Dye = TV("shuffle"), Oye = TV("arrow-up"), kye = TV("arrow-down");
-function Aye(e) {
- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Eye(t), u = t === "online" ? e.online : null, d = l || !!u, f = u ? u.status : r, p = u ? u.statuses.map(([e, t]) => ({
+}), Oye = DV("shuffle"), kye = DV("arrow-up"), Aye = DV("arrow-down");
+function jye(e) {
+ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Dye(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 = AL(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), S = AL(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 = AL(C, w, "[data-media-view][aria-pressed=\"true\"]", `${t}:${u?.media}:${!!T}`);
+ })) : i, m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (0, F.useRef)(null), _ = (0, F.useRef)(null), v = (0, F.useRef)(null), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = ML(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), S = ML(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 = ML(C, w, "[data-media-view][aria-pressed=\"true\"]", `${t}:${u?.media}:${!!T}`);
return (0, F.useEffect)(() => {
c.wireDrag(y.current), c.wireScroller(v.current), c.wireDrag(b.current);
- }, [c]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(LG, {
+ }, [c]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(zG, {
items: o,
hidden: !l,
actions: s
- }), /* @__PURE__ */ (0, I.jsx)(TL, {
+ }), /* @__PURE__ */ (0, I.jsx)(DL, {
label: "筛选与排序",
topLabel: "媒体与标签",
attrs: {
@@ -51040,19 +51099,19 @@ function Aye(e) {
})
] }),
top: !n && !d ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Pye, {
+ n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Fye, {
keys: n,
view: t,
row: _,
glide: S,
onView: s.setView
- }), d ? /* @__PURE__ */ (0, I.jsx)(IG, {}) : null] }) : null,
- T ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Mye, {
+ }), d ? /* @__PURE__ */ (0, I.jsx)(RG, {}) : null] }) : null,
+ T ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Nye, {
head: T,
row: w,
glide: E,
onMedia: s.onlineMedia
- }), /* @__PURE__ */ (0, I.jsx)(IG, {})] }) : null,
+ }), /* @__PURE__ */ (0, I.jsx)(RG, {})] }) : null,
/* @__PURE__ */ (0, I.jsxs)("div", {
ref: v,
"data-entity-scroll": "",
@@ -51073,11 +51132,11 @@ function Aye(e) {
f !== e.k && (u ? s.onlineStatus(e.k) : s.setState(e.k));
},
children: e.label
- }, e.k)), !u || u.providers.length || u.tags.length ? /* @__PURE__ */ (0, I.jsx)(IG, {}) : null]
+ }, e.k)), !u || u.providers.length || u.tags.length ? /* @__PURE__ */ (0, I.jsx)(RG, {}) : null]
}), /* @__PURE__ */ (0, I.jsx)("div", {
ref: y,
"data-entity-tags": "",
- children: l ? a.map((e) => /* @__PURE__ */ (0, I.jsxs)(EL, {
+ children: l ? a.map((e) => /* @__PURE__ */ (0, I.jsxs)(OL, {
"data-entity-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -51086,17 +51145,17 @@ function Aye(e) {
"data-count-badge": e.k,
children: e.n.toLocaleString()
})]
- }, e.k)) : u ? /* @__PURE__ */ (0, I.jsx)(Nye, {
+ }, e.k)) : u ? /* @__PURE__ */ (0, I.jsx)(Pye, {
head: u,
actions: s
}) : null
})]
})
] }),
- bottom: /* @__PURE__ */ (0, I.jsx)(Fye, { ...e })
+ bottom: /* @__PURE__ */ (0, I.jsx)(Iye, { ...e })
})] });
}
-var jye = [[
+var Mye = [[
"videos",
"视频",
"play",
@@ -51107,7 +51166,7 @@ var jye = [[
"pics",
"image"
]];
-function Mye({ head: e, row: t, glide: n, onMedia: r }) {
+function Nye({ head: e, row: t, glide: n, onMedia: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
ref: t,
role: "group",
@@ -51115,7 +51174,7 @@ function Mye({ head: e, row: t, glide: n, onMedia: r }) {
"data-entity-media": "",
"data-online-media": "",
onPointerLeave: n.leave,
- children: jye.map(([t, i, a, o]) => {
+ children: Mye.map(([t, i, a, o]) => {
let s = `${i} ${Math.max(0, e.mediaCounts?.[t] || 0).toLocaleString()}`;
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -51133,7 +51192,7 @@ function Mye({ head: e, row: t, glide: n, onMedia: r }) {
})
});
}
-function Nye({ head: e, actions: t }) {
+function Pye({ head: e, actions: t }) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
e.providers.map(([n, r]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -51143,10 +51202,10 @@ function Nye({ head: e, actions: t }) {
title: r,
"aria-label": `来源:${r}`,
onClick: () => t.onlineProvider(n),
- dangerouslySetInnerHTML: { __html: bG(n) }
+ dangerouslySetInnerHTML: { __html: SG(n) }
}, n)),
- e.providers.length && e.tags.length ? /* @__PURE__ */ (0, I.jsx)(IG, {}) : null,
- e.tags.map((e) => /* @__PURE__ */ (0, I.jsxs)(EL, {
+ e.providers.length && e.tags.length ? /* @__PURE__ */ (0, I.jsx)(RG, {}) : null,
+ e.tags.map((e) => /* @__PURE__ */ (0, I.jsxs)(OL, {
"data-follow-tag": e.k,
"data-entity-press": "",
"data-tag-cat": `r34-${e.cat}`,
@@ -51159,7 +51218,7 @@ function Nye({ head: e, actions: t }) {
}, e.k))
] });
}
-function Pye({ keys: e, view: t, row: n, glide: r, onView: i }) {
+function Fye({ keys: e, view: t, row: n, glide: r, onView: i }) {
let a = [];
return e.people && a.push({
value: "people",
@@ -51207,7 +51266,7 @@ function Pye({ keys: e, view: t, row: n, glide: r, onView: i }) {
})
});
}
-function LG({ items: e, hidden: t, actions: n }) {
+function zG({ items: e, hidden: t, actions: n }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-entity-combo": "",
hidden: t,
@@ -51227,7 +51286,7 @@ function LG({ items: e, hidden: t, actions: n }) {
})] }) : null
});
}
-function Fye(e) {
+function Iye(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", {
@@ -51239,30 +51298,30 @@ function Fye(e) {
dangerouslySetInnerHTML: { __html: R("chevron-left") }
}), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部照片" })]
}) : null,
- /* @__PURE__ */ (0, I.jsx)(Iye, {
+ /* @__PURE__ */ (0, I.jsx)(Lye, {
text: n,
busy: r
}),
- /* @__PURE__ */ (0, I.jsx)(BV, { currentHref: () => location.pathname + location.search }),
- t === "videos" && i ? /* @__PURE__ */ (0, I.jsx)(Lye, {
+ /* @__PURE__ */ (0, I.jsx)(HV, { currentHref: () => location.pathname + location.search }),
+ t === "videos" && i ? /* @__PURE__ */ (0, I.jsx)(Rye, {
head: i,
actions: o
}) : null,
- t === "photos" && a ? /* @__PURE__ */ (0, I.jsx)(zye, {
+ t === "photos" && a ? /* @__PURE__ */ (0, I.jsx)(Bye, {
head: a,
actions: o,
helpers: s
}) : null,
- t === "online" && e.online ? /* @__PURE__ */ (0, I.jsx)(Rye, {
+ t === "online" && e.online ? /* @__PURE__ */ (0, I.jsx)(zye, {
head: e.online,
actions: o
}) : null
] });
}
-function Iye({ text: e, busy: t }) {
+function Lye({ text: e, busy: t }) {
return /* @__PURE__ */ (0, I.jsx)("h3", {
"data-entity-readout": "",
- children: /* @__PURE__ */ (0, I.jsx)(vL, {
+ children: /* @__PURE__ */ (0, I.jsx)(bL, {
text: t ? void 0 : e,
busy: t,
placeholder: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -51273,22 +51332,22 @@ function Iye({ text: e, busy: t }) {
})
});
}
-function RG({ name: e, label: t, value: n, options: r, onChange: i }) {
- return /* @__PURE__ */ (0, I.jsx)(Gz, {
+function BG({ name: e, label: t, value: n, options: r, onChange: i }) {
+ return /* @__PURE__ */ (0, I.jsx)(qz, {
name: e,
"aria-label": t,
orientation: "horizontal",
value: n,
onChange: i,
"data-entity-layout": "",
- className: yU,
+ className: xU,
children: r.map(([e, t, n]) => {
- let r = TV(n);
- return /* @__PURE__ */ (0, I.jsx)(Kz, {
+ let r = DV(n);
+ return /* @__PURE__ */ (0, I.jsx)(Jz, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: bU,
+ className: SU,
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: t,
className: "contents",
@@ -51298,38 +51357,38 @@ function RG({ name: e, label: t, value: n, options: r, onChange: i }) {
})
});
}
-function zG({ onPress: e, busy: t = !1 }) {
- return /* @__PURE__ */ (0, I.jsx)(wL, {
+function VG({ onPress: e, busy: t = !1 }) {
+ return /* @__PURE__ */ (0, I.jsx)(EL, {
"data-entity-batch": "",
label: "换一批",
busy: t,
busyStyle: "strand",
- icon: Dye,
+ icon: Oye,
onPress: e
});
}
-function Lye({ head: e, actions: t }) {
- let n = mG();
+function Rye({ head: e, actions: t }) {
+ let n = gG();
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(zG, { onPress: () => void t.reshuffle() }),
- e.jav && n === "cards" ? /* @__PURE__ */ (0, I.jsx)(RG, {
+ /* @__PURE__ */ (0, I.jsx)(VG, { onPress: () => void t.reshuffle() }),
+ e.jav && n === "cards" ? /* @__PURE__ */ (0, I.jsx)(BG, {
label: "JAV 卡片版式",
value: e.jav.layout,
options: e.jav.options,
onChange: t.setJavLayout
}) : null,
- /* @__PURE__ */ (0, I.jsx)(hG, {}),
- /* @__PURE__ */ (0, I.jsx)(cG, {}),
- /* @__PURE__ */ (0, I.jsx)(BG, {
+ /* @__PURE__ */ (0, I.jsx)(_G, {}),
+ /* @__PURE__ */ (0, I.jsx)(uG, {}),
+ /* @__PURE__ */ (0, I.jsx)(HG, {
sorts: e.sorts,
onSort: t.setSort
})
]
});
}
-function BG({ sorts: e, onSort: t }) {
+function HG({ sorts: e, onSort: t }) {
return /* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-entity-sort": e.key,
@@ -51337,20 +51396,20 @@ function BG({ sorts: e, onSort: t }) {
"aria-pressed": e.pressed,
"aria-label": e.ariaLabel || void 0,
onClick: () => t(e.key),
- children: [e.label, e.pressed && e.dir ? /* @__PURE__ */ (0, I.jsx)(gG, {
- a: Oye,
- b: kye,
+ children: [e.label, e.pressed && e.dir ? /* @__PURE__ */ (0, I.jsx)(vG, {
+ a: kye,
+ b: Aye,
state: e.dir === "asc" ? "a" : "b",
className: "size-(--icon-inline)"
}) : null]
}, e.key)) });
}
-function Rye({ head: e, actions: t }) {
+function zye({ head: e, actions: t }) {
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(zG, { onPress: t.onlineShuffle }),
- e.media === "images" ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(RG, {
+ /* @__PURE__ */ (0, I.jsx)(VG, { onPress: t.onlineShuffle }),
+ e.media === "images" ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(BG, {
label: "图片布局",
value: e.photoLayout,
options: e.photoLayouts,
@@ -51370,27 +51429,27 @@ function Rye({ head: e, actions: t }) {
dangerouslySetInnerHTML: { __html: R("captions-off") }
})]
})] }) : null,
- /* @__PURE__ */ (0, I.jsx)(BG, {
+ /* @__PURE__ */ (0, I.jsx)(HG, {
sorts: e.sorts,
onSort: t.onlineSort
})
]
});
}
-function zye({ head: e, actions: t, helpers: n }) {
+function Bye({ head: e, actions: t, helpers: n }) {
let [r, i] = (0, F.useState)(!1), a = (0, F.useRef)(null), o = e.back ? n.sourceToolsHtml(e.setId) : "";
return (0, F.useEffect)(() => {
a.current && o && n.wireSourceTools(a.current);
}, [n, o]), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- e.shuffle ? /* @__PURE__ */ (0, I.jsx)(zG, {
+ e.shuffle ? /* @__PURE__ */ (0, I.jsx)(VG, {
onPress: () => {
i(!0), t.reshuffle().finally(() => i(!1));
},
busy: r
}) : null,
- /* @__PURE__ */ (0, I.jsx)(RG, {
+ /* @__PURE__ */ (0, I.jsx)(BG, {
label: "图片布局",
value: e.layout,
options: e.layouts,
@@ -51405,8 +51464,8 @@ function zye({ head: e, actions: t, helpers: n }) {
});
}
// src/react/catalog-filter/catalog-filter.ts
-var Bye = "peach.catalog.tiers.v1";
-function VG() {
+var Vye = "peach.catalog.tiers.v1";
+function UG() {
try {
let e = JSON.parse(localStorage.getItem("peach.catalog.tiers.v1") || "{}");
return {
@@ -51420,40 +51479,40 @@ function VG() {
};
}
}
-function Vye(e) {
+function Hye(e) {
try {
let t = JSON.stringify({
performers: e.performers,
studios: e.studios
});
- localStorage.getItem("peach.catalog.tiers.v1") !== t && localStorage.setItem(Bye, t);
+ localStorage.getItem("peach.catalog.tiers.v1") !== t && localStorage.setItem(Vye, t);
} catch {}
}
// src/react/catalog-filter/catalog-filter-page.tsx
-function Hye(e) {
- let t = !e.tiers, n = Yye(e.comboHost);
+function Uye(e) {
+ let t = !e.tiers, n = Xye(e.comboHost);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-catalog-root": "",
"data-loading": t || void 0,
"data-refreshing": e.refreshing || void 0,
className: "contents",
children: [
- n ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(LG, {
+ n ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(zG, {
items: e.combo,
hidden: e.comboHidden,
actions: e.actions
}), n) : null,
- /* @__PURE__ */ (0, I.jsx)(Gye, { ...e }),
- e.offscreen ? null : /* @__PURE__ */ (0, I.jsx)(Uye, { ...e })
+ /* @__PURE__ */ (0, I.jsx)(Kye, { ...e }),
+ e.offscreen ? null : /* @__PURE__ */ (0, I.jsx)(Wye, { ...e })
]
});
}
-function Uye(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 = AL(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
+function Wye(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 = ML(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
(0, F.useEffect)(() => {
n.wireDrag(o.current), n.wireScroller(a.current), n.wireDrag(s.current);
}, [n]);
- let d = !e.tiers, f = UG(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
+ let d = !e.tiers, f = GG(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
return (0, F.useLayoutEffect)(() => {
if (d) {
l(!1);
@@ -51477,7 +51536,7 @@ function Uye(e) {
e.sorts
]), (0, F.useLayoutEffect)(() => {
Zs(o.current, "tagbar");
- }, [f]), /* @__PURE__ */ (0, I.jsx)(TL, {
+ }, [f]), /* @__PURE__ */ (0, I.jsx)(DL, {
label: "筛选与排序",
topLabel: "视图与标签",
attrs: {
@@ -51521,23 +51580,23 @@ function Uye(e) {
}), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: o,
"data-catalog-tags": "",
- children: [e.empty || d ? /* @__PURE__ */ (0, I.jsx)(HG, { kind: "tag" }) : null, f.map((n) => /* @__PURE__ */ (0, I.jsx)(Wye, {
+ children: [e.empty || d ? /* @__PURE__ */ (0, I.jsx)(WG, { kind: "tag" }) : null, f.map((n) => /* @__PURE__ */ (0, I.jsx)(Gye, {
tag: n,
pending: e.tiersPending,
onPress: t.toggleTag
}, n.k))]
})]
}),
- bottom: e.trash ? null : /* @__PURE__ */ (0, I.jsx)(qye, { ...e })
+ bottom: e.trash ? null : /* @__PURE__ */ (0, I.jsx)(Jye, { ...e })
});
}
-function Wye({ tag: e, pending: t, onPress: n }) {
- return /* @__PURE__ */ (0, I.jsxs)(EL, {
+function Gye({ tag: e, pending: t, onPress: n }) {
+ return /* @__PURE__ */ (0, I.jsxs)(OL, {
"data-catalog-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
onPress: () => n(e.k),
- children: [/* @__PURE__ */ (0, I.jsx)(vL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(bL, {
text: e.label,
busy: t
}), e.n == null ? null : /* @__PURE__ */ (0, I.jsx)("span", {
@@ -51546,15 +51605,15 @@ function Wye({ tag: e, pending: t, onPress: n }) {
})]
});
}
-function Gye(e) {
- _L();
+function Kye(e) {
+ yL();
let { actions: t, helpers: n } = e, r = e.tiers ?? {
key: "",
performers: [],
studios: []
- }, i = !e.tiers, a = e.empty || i, o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useCallback)((e) => () => t.moreTops(e), [t]), l = UG(o, r.performers, r.key, 24, a ? void 0 : c("performers")), u = UG(s, r.studios, r.key, 24, a ? void 0 : c("studios")), d = (0, F.useMemo)(() => i ? VG() : null, [i]), f = d ? d.performers : e.empty || r.performers.length > 0, p = d ? d.studios : e.empty || r.studios.length > 0;
+ }, i = !e.tiers, a = e.empty || i, o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useCallback)((e) => () => t.moreTops(e), [t]), l = GG(o, r.performers, r.key, 24, a ? void 0 : c("performers")), u = GG(s, r.studios, r.key, 24, a ? void 0 : c("studios")), d = (0, F.useMemo)(() => i ? UG() : 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 || Vye({
+ i || Hye({
performers: f,
studios: p
});
@@ -51575,7 +51634,7 @@ function Gye(e) {
children: [f ? /* @__PURE__ */ (0, I.jsx)("div", {
ref: o,
"data-catalog-tier": "performers",
- children: a ? /* @__PURE__ */ (0, I.jsx)(HG, { kind: "performer" }) : l.map((n) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: a ? /* @__PURE__ */ (0, I.jsx)(WG, { kind: "performer" }) : l.map((n) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-tier-performer": "",
"data-entity-kind": "performer",
@@ -51586,7 +51645,7 @@ function Gye(e) {
dangerouslySetInnerHTML: { __html: n.ringHtml }
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-tier-name": "",
- children: /* @__PURE__ */ (0, I.jsx)(vL, {
+ children: /* @__PURE__ */ (0, I.jsx)(bL, {
text: tn("performer", n.name),
busy: e.tiersPending
})
@@ -51595,13 +51654,13 @@ function Gye(e) {
}) : null, p ? /* @__PURE__ */ (0, I.jsx)("div", {
ref: s,
"data-catalog-tier": "studios",
- children: a ? /* @__PURE__ */ (0, I.jsx)(HG, { kind: "studio" }) : u.map((n) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: a ? /* @__PURE__ */ (0, I.jsx)(WG, { kind: "studio" }) : u.map((n) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-tier-studio": "",
"data-entity-kind": "studio",
"data-entity-name": n.name,
onClick: () => t.openEntity("studio", n.name),
- children: [/* @__PURE__ */ (0, I.jsx)(Kye, { studio: n }), /* @__PURE__ */ (0, I.jsx)(vL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(qye, { studio: n }), /* @__PURE__ */ (0, I.jsx)(bL, {
text: n.name,
busy: e.tiersPending
})]
@@ -51609,7 +51668,7 @@ function Gye(e) {
}) : null]
});
}
-function Kye({ studio: e }) {
+function qye({ studio: e }) {
let [t, n] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-tier-mark": "",
@@ -51627,7 +51686,7 @@ function Kye({ studio: e }) {
}) : e.fallback
});
}
-function HG({ kind: e }) {
+function WG({ kind: e }) {
let t = Array.from({ length: 64 }, (e, t) => t);
return e === "tag" ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-catalog-placeholder": "tag",
@@ -51643,43 +51702,43 @@ function HG({ kind: e }) {
children: [/* @__PURE__ */ (0, I.jsx)("span", {}), /* @__PURE__ */ (0, I.jsx)("span", { children: "\xA0" })]
}, t)) });
}
-function qye({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
- let a = mG(), [o, s] = (0, F.useState)(!1);
+function Jye({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
+ let a = gG(), [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)(Jye, { count: e }), /* @__PURE__ */ (0, I.jsx)(BV, { currentHref: i.currentHref })]
+ children: [/* @__PURE__ */ (0, I.jsx)(Yye, { count: e }), /* @__PURE__ */ (0, I.jsx)(HV, { currentHref: i.currentHref })]
}), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(zG, {
+ /* @__PURE__ */ (0, I.jsx)(VG, {
onPress: () => {
s(!0), i.reshuffle().finally(() => s(!1));
},
busy: o || t
}),
- n && a === "cards" ? /* @__PURE__ */ (0, I.jsx)(RG, {
+ n && a === "cards" ? /* @__PURE__ */ (0, I.jsx)(BG, {
name: n.name,
label: n.label,
value: n.value,
options: n.options,
onChange: i.setLayout
}, n.name) : null,
- /* @__PURE__ */ (0, I.jsx)(hG, {}),
- /* @__PURE__ */ (0, I.jsx)(cG, {}),
- /* @__PURE__ */ (0, I.jsx)(BG, {
+ /* @__PURE__ */ (0, I.jsx)(_G, {}),
+ /* @__PURE__ */ (0, I.jsx)(uG, {}),
+ /* @__PURE__ */ (0, I.jsx)(HG, {
sorts: r,
onSort: i.setSort
})
]
})] });
}
-function Jye({ count: e }) {
+function Yye({ count: e }) {
let t = e ? `${e.total.toLocaleString()} 个符合 · 显示 ${e.shown.toLocaleString()}` : e === !1 ? "" : void 0;
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-catalog-readout": "",
"data-count-readout": "",
role: "status",
- children: /* @__PURE__ */ (0, I.jsx)(vL, {
+ children: /* @__PURE__ */ (0, I.jsx)(bL, {
text: t,
busy: e === null,
placeholder: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -51690,7 +51749,7 @@ function Jye({ count: e }) {
})
});
}
-function Yye(e) {
+function Xye(e) {
let [t, n] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
if (!e) return;
@@ -51700,7 +51759,7 @@ function Yye(e) {
};
}, [e]), t;
}
-function UG(e, t, n, r, i) {
+function GG(e, t, n, r, i) {
let a = () => ({
key: n,
limit: r,
@@ -51743,8 +51802,8 @@ function UG(e, t, n, r, i) {
}), l.slice(0, c.limit);
}
// src/react/components/grid-reveal.tsx
-var WG = "100% 0px";
-function Xye(e, t) {
+var KG = "100% 0px";
+function Zye(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);
@@ -51770,7 +51829,7 @@ function Xye(e, t) {
fading: n === "fade"
};
}
-function GG({ message: e, onRetry: t }) {
+function qG({ message: e, onRetry: t }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-media-error": "",
onClick: (e) => {
@@ -51783,7 +51842,7 @@ function GG({ message: e, onRetry: t }) {
});
}
// src/react/components/skeleton-content.tsx
-function KG({ pending: e, skeletonHtml: t, children: n }) {
+function JG({ pending: e, skeletonHtml: t, children: n }) {
let r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = t();
return (0, F.useLayoutEffect)(() => {
e || (r.current = n);
@@ -51807,63 +51866,63 @@ function KG({ pending: e, skeletonHtml: t, children: n }) {
});
}
// src/library-catalog.ts
-var qG = "peach.library-colors.v1", JG = null, YG = /* @__PURE__ */ new Set();
-function Zye() {
+var YG = "peach.library-colors.v1", XG = null, ZG = /* @__PURE__ */ new Set();
+function Qye() {
try {
- let e = JSON.parse(localStorage.getItem(qG) || "{}");
+ let e = JSON.parse(localStorage.getItem(YG) || "{}");
return e && typeof e == "object" ? e : {};
} catch {
return {};
}
}
-function XG(e) {
- JG = e;
+function QG(e) {
+ XG = e;
try {
- localStorage.setItem(qG, JSON.stringify(Object.fromEntries(e.filter((e) => e.color).map((e) => [e.id, e.color]))));
+ localStorage.setItem(YG, JSON.stringify(Object.fromEntries(e.filter((e) => e.color).map((e) => [e.id, e.color]))));
} catch {}
- YG.forEach((t) => t(e));
+ ZG.forEach((t) => t(e));
}
-function ZG() {
- return JG;
+function $G() {
+ return XG;
}
-function Qye(e) {
- return YG.add(e), () => {
- YG.delete(e);
+function $ye(e) {
+ return ZG.add(e), () => {
+ ZG.delete(e);
};
}
// src/react/components/library-tint.ts
-var QG = /* @__PURE__ */ new Map(), $G = !1, eK = /* @__PURE__ */ new Set();
-function $ye(e) {
+var eK = /* @__PURE__ */ new Map(), tK = !1, nK = /* @__PURE__ */ new Set();
+function ebe(e) {
let t = document.createElement("span");
t.setAttribute("data-accent-ball", e), t.hidden = !0, document.body.append(t);
let n = getComputedStyle(t).getPropertyValue("--color-accent-500").trim();
return t.remove(), n;
}
-function tK(e) {
- QG = e;
+function rK(e) {
+ eK = e;
let t = document.getElementById("peach-library-tints");
- t || (t = document.createElement("style"), t.id = "peach-library-tints", document.head.append(t)), t.textContent = [...QG.values()].filter((e) => e.color).map((e) => `[data-library="${CSS.escape(e.id)}"]{--library-color:${$ye(e.color)}}`).join("\n");
+ t || (t = document.createElement("style"), t.id = "peach-library-tints", document.head.append(t)), t.textContent = [...eK.values()].filter((e) => e.color).map((e) => `[data-library="${CSS.escape(e.id)}"]{--library-color:${ebe(e.color)}}`).join("\n");
}
-function nK(e) {
- tK(e), eK.forEach((e) => e());
+function iK(e) {
+ rK(e), nK.forEach((e) => e());
}
-var rK = (e) => new Map(e.map((e) => [e.id, {
+var aK = (e) => new Map(e.map((e) => [e.id, {
id: e.id,
name: e.name,
icon: gs[e.icon || ""] || e.icon || "database",
location: e.roots?.[0]?.location || "",
color: e.color || ""
-}])), iK = !1;
-function ebe() {
- if (iK) return;
- iK = !0, Qye((e) => nK(rK(e)));
- let e = ZG();
+}])), oK = !1;
+function tbe() {
+ if (oK) return;
+ oK = !0, $ye((e) => iK(aK(e)));
+ let e = $G();
if (e) {
- tK(rK(e));
+ rK(aK(e));
return;
}
- let t = Object.entries(Zye()).filter(([, e]) => e);
- t.length && tK(new Map(t.map(([e, t]) => [e, {
+ let t = Object.entries(Qye()).filter(([, e]) => e);
+ t.length && rK(new Map(t.map(([e, t]) => [e, {
id: e,
name: "",
icon: "database",
@@ -51871,64 +51930,64 @@ function ebe() {
color: t
}])));
}
-function tbe() {
- $G || ZG() || ($G = !0, B("/api/libraries").then((e) => XG(e.libraries || [])).catch(() => {
- $G = !1;
+function nbe() {
+ tK || $G() || (tK = !0, B("/api/libraries").then((e) => QG(e.libraries || [])).catch(() => {
+ tK = !1;
}));
}
-function nbe(e, t) {
- let n = QG.get(e) ?? {
+function rbe(e, t) {
+ let n = eK.get(e) ?? {
id: e,
name: "",
icon: "database",
location: "",
color: ""
};
- nK(new Map([...QG, [e, {
+ iK(new Map([...eK, [e, {
...n,
color: t
}]]));
}
-function rbe(e) {
- return eK.add(e), () => {
- eK.delete(e);
+function ibe(e) {
+ return nK.add(e), () => {
+ nK.delete(e);
};
}
-function aK({ names: e = !1 } = {}) {
- return ebe(), e && tbe(), (0, F.useSyncExternalStore)(rbe, () => QG, () => QG);
+function sK({ names: e = !1 } = {}) {
+ return tbe(), e && nbe(), (0, F.useSyncExternalStore)(ibe, () => eK, () => eK);
}
// src/react/components/row-click.ts
-var ibe = "a,button,input,select,textarea,label,[role=\"checkbox\"],[role=\"switch\"],[role=\"button\"],[role=\"link\"],[role=\"menu\"]";
-function oK(e, t) {
+var abe = "a,button,input,select,textarea,label,[role=\"checkbox\"],[role=\"switch\"],[role=\"button\"],[role=\"link\"],[role=\"menu\"]";
+function cK(e, t) {
let n = e.target;
if (!(n instanceof Element) || !t.contains(n)) return !1;
- let r = n.closest(ibe);
+ let r = n.closest(abe);
return !r || !t.contains(r) || r === t;
}
-function sK(e) {
+function lK(e) {
e.shiftKey && e.preventDefault();
}
// src/react/components/media-card.tsx
-var cK = 9 / 16, lK = "未命名视频";
-function uK({ name: e }) {
+var uK = 9 / 16, dK = "未命名视频";
+function fK({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-var abe = {
+var obe = {
image: "图片",
audio: "音频",
archive: "压缩包",
other: "其它文件"
-}, obe = {
+}, sbe = {
manual: "手动",
junk: "垃圾",
duplicate: "重复",
missing: "文件缺失"
};
-function sbe(e) {
+function cbe(e) {
if (Number(e.duration) < 0) return {
key: "unavailable",
label: "探查错误"
@@ -51956,16 +52015,16 @@ function sbe(e) {
label: "尚未探查"
};
}
-function dK({ item: e }) {
+function pK({ item: e }) {
if (e.disposal !== "trash") return null;
- let t = e.disposal_reason && obe[e.disposal_reason] || "原因未记录";
+ let t = e.disposal_reason && sbe[e.disposal_reason] || "原因未记录";
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-disposal-reason": "",
title: `归入原因:${t}`,
children: t
});
}
-function fK({ item: e, actions: t }) {
+function mK({ item: e, actions: t }) {
let [n, r] = (0, F.useState)(!1), [i, a] = (0, F.useState)(""), o = e.disposal === "trash" ? "restore" : "dispose", s = o === "restore" ? "还原" : "移入回收站";
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -51984,10 +52043,10 @@ function fK({ item: e, actions: t }) {
children: i
}) : null] });
}
-function pK(e, t, n) {
- return t === "short" ? cK : DM(n);
+function hK(e, t, n) {
+ return t === "short" ? uK : kM(n);
}
-function mK(e) {
+function gK(e) {
let { kind: t, name: n, coStarred: r, performers: i, refs: a, total: o } = ko(e), s = i[0] || "", c = mo(e);
return {
avatar: r ? /* @__PURE__ */ (0, I.jsx)("div", {
@@ -52019,7 +52078,7 @@ function mK(e) {
"data-entity-kind": "performer",
"data-entity-name": s,
title: tn("performer", s),
- children: [/* @__PURE__ */ (0, I.jsx)(uK, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: tn("performer", s) })]
+ children: [/* @__PURE__ */ (0, I.jsx)(fK, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: tn("performer", s) })]
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-who-more": "",
children: `等 ${o} 人`
@@ -52029,16 +52088,16 @@ function mK(e) {
"data-entity-kind": t,
"data-entity-name": n,
title: tn(t, n),
- children: [/* @__PURE__ */ (0, I.jsx)(uK, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: tn(t, n) })]
+ children: [/* @__PURE__ */ (0, I.jsx)(fK, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: tn(t, n) })]
}) : /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-media-who": "",
"data-open-unowned": "",
- children: [/* @__PURE__ */ (0, I.jsx)(uK, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
+ children: [/* @__PURE__ */ (0, I.jsx)(fK, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
})
};
}
-function cbe() {
+function lbe() {
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-media-preview": "",
@@ -52057,7 +52116,7 @@ function cbe() {
})]
});
}
-function lbe({ item: e, actions: t, on: n, onChange: r }) {
+function ube({ item: e, actions: t, on: n, onChange: r }) {
let [i, a] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-media-later": "",
@@ -52072,11 +52131,11 @@ function lbe({ item: e, actions: t, on: n, onChange: r }) {
},
"aria-busy": i || void 0,
"aria-disabled": i || void 0,
- children: /* @__PURE__ */ (0, I.jsx)(uK, { name: n ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, I.jsx)(fK, { name: n ? "check" : "bookmark-plus" })
})
});
}
-function ube({ reason: e }) {
+function dbe({ 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,
@@ -52090,15 +52149,15 @@ function ube({ reason: e }) {
e.stopPropagation(), r(!0);
},
children: e
- }), /* @__PURE__ */ (0, I.jsx)(Tz, {
+ }), /* @__PURE__ */ (0, I.jsx)(Dz, {
triggerRef: t,
isOpen: n,
onOpenChange: r,
placement: "top",
offset: 8,
containerPadding: 12,
- className: WV,
- children: /* @__PURE__ */ (0, I.jsx)(Rz, {
+ className: KV,
+ children: /* @__PURE__ */ (0, I.jsx)(Bz, {
"data-media-reason-dialog": "",
"aria-label": "推荐理由",
className: "w-64 max-w-full p-2 text-body-regular whitespace-normal break-words text-text-primary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
@@ -52106,18 +52165,18 @@ function ube({ reason: e }) {
})
})] });
}
-function hK(e, t) {
+function _K(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 dbe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c, grouped: l = !0 }) {
- _L();
- let u = (0, F.useRef)(null), [d, f] = (0, F.useState)(null), p = d?.id === e.id ? d.on : !!e.watch_later, m = aK(), h = e.library_id && m.get(e.library_id)?.color ? e.library_id : void 0, g = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), _ = (0, F.useRef)(e);
+function fbe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c, grouped: l = !0 }) {
+ yL();
+ let u = (0, F.useRef)(null), [d, f] = (0, F.useState)(null), p = d?.id === e.id ? d.on : !!e.watch_later, m = sK(), 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 === cK && !!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() || lK, A = o.titleHtml(e, O).trim() || z(lK), j = y?.total_size ?? e.size, M = y?.total_duration ?? e.duration, ee = Number(M) > 0 ? null : sbe(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 } = mK(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 = hK(e, t, n), w = S ? n.size : "small", T = C === uK && !!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() || dK, A = o.titleHtml(e, O).trim() || z(dK), j = y?.total_size ?? e.size, M = y?.total_duration ?? e.duration, ee = Number(M) > 0 ? null : cbe(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 } = gK(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;
@@ -52144,10 +52203,10 @@ function dbe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
l && r.contains(l) ? s.toggleTag(l.dataset.tag || "") : c(e, r);
}, ie = /* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-pic": "",
- "data-pic-portrait": C === cK ? "" : void 0,
+ "data-pic-portrait": C === uK ? "" : void 0,
style: { "--card-ratio": String(C) },
children: [
- E.html ? /* @__PURE__ */ (0, I.jsx)(aW, {
+ E.html ? /* @__PURE__ */ (0, I.jsx)(sW, {
artwork: E,
identity: D,
relayout: (e) => Cl(e, w)
@@ -52161,11 +52220,11 @@ function dbe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
}),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, I.jsx)(uK, { name: "check" })
+ children: /* @__PURE__ */ (0, I.jsx)(fK, { name: "check" })
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, I.jsx)(uK, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, I.jsx)(fK, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]
}),
y && !b ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-group": "",
@@ -52181,7 +52240,7 @@ function dbe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
"data-copy-key": ee ? `media.duration.${ee.key}` : void 0,
children: ee ? ee.label : qn(M)
}),
- !i && e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)(fK, {
+ !i && e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)(mK, {
item: e,
actions: s
}) : null,
@@ -52197,22 +52256,22 @@ function dbe({ 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)(cbe, {}),
+ /* @__PURE__ */ (0, I.jsx)(lbe, {}),
p || g.length ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-status": "",
children: [p ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-status": "later",
title: "稍后看",
"aria-label": "稍后看",
- children: /* @__PURE__ */ (0, I.jsx)(uK, { name: "bookmark" })
+ children: /* @__PURE__ */ (0, I.jsx)(fK, { name: "bookmark" })
}) : null, g.length ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-status": "flagged",
title: `已标记:${g.join("、")}`,
"aria-label": `已标记:${g.join("、")}`,
- children: /* @__PURE__ */ (0, I.jsx)(uK, { name: "heart" })
+ children: /* @__PURE__ */ (0, I.jsx)(fK, { name: "heart" })
}) : null]
}) : null,
- i ? null : /* @__PURE__ */ (0, I.jsx)(lbe, {
+ i ? null : /* @__PURE__ */ (0, I.jsx)(ube, {
item: e,
actions: s,
on: p,
@@ -52227,27 +52286,27 @@ function dbe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), hK(u.current, -a);
+ e.stopPropagation(), _K(u.current, -a);
},
title: `后退 ${a} 秒`,
"aria-label": `后退 ${a} 秒`,
- children: /* @__PURE__ */ (0, I.jsx)(uK, { name: "rotate-ccw" })
+ children: /* @__PURE__ */ (0, I.jsx)(fK, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), hK(u.current, a);
+ e.stopPropagation(), _K(u.current, a);
},
title: `前进 ${a} 秒`,
"aria-label": `前进 ${a} 秒`,
- children: /* @__PURE__ */ (0, I.jsx)(uK, { name: "rotate-cw" })
+ children: /* @__PURE__ */ (0, I.jsx)(fK, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-open": "",
title: "打开详情",
"aria-label": "打开详情",
- children: /* @__PURE__ */ (0, I.jsx)(uK, { name: "expand" })
+ children: /* @__PURE__ */ (0, I.jsx)(fK, { name: "expand" })
})
]
})
@@ -52267,7 +52326,7 @@ function dbe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
"data-pending-delete": e.disposal === "trash" ? "" : void 0,
"data-selected": r ? "" : void 0,
onClick: re,
- onMouseDown: sK,
+ onMouseDown: lK,
children: [
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -52309,15 +52368,15 @@ function dbe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
"data-media-release": "",
dateTime: e.release_date,
title: e.release_date,
- children: [/* @__PURE__ */ (0, I.jsx)(uK, { name: "calendar" }), e.release_date]
+ children: [/* @__PURE__ */ (0, I.jsx)(fK, { name: "calendar" }), e.release_date]
}) : null, /* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-size": "",
- children: [/* @__PURE__ */ (0, I.jsx)(uK, { name: "hard-drive" }), Number(j) > 0 ? Yn(Number(j)) : "大小未知"]
+ children: [/* @__PURE__ */ (0, I.jsx)(fK, { name: "hard-drive" }), Number(j) > 0 ? Yn(Number(j)) : "大小未知"]
})]
})
]
}),
- t === "next" ? e.why ? /* @__PURE__ */ (0, I.jsx)(ube, { reason: e.why }) : null : ne.length || e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)("div", {
+ t === "next" ? e.why ? /* @__PURE__ */ (0, I.jsx)(dbe, { 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",
@@ -52327,15 +52386,15 @@ function dbe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
children: o.tagLabel(t)
}, t))
}) : null,
- /* @__PURE__ */ (0, I.jsx)(dK, { item: e })
+ /* @__PURE__ */ (0, I.jsx)(pK, { item: e })
]
})]
})
]
});
}
-function fbe({ 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") ? "网址快捷方式" : abe[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";
+function pbe({ 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") ? "网址快捷方式" : obe[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";
return /* @__PURE__ */ (0, I.jsxs)("article", {
ref: o,
"data-media-card": "",
@@ -52347,14 +52406,14 @@ function fbe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
onClick: (t) => {
o.current && (n || t.shiftKey || t.ctrlKey || t.metaKey ? (t.preventDefault(), i.toggleSelection(e.id, t.shiftKey)) : a(e, o.current));
},
- onMouseDown: sK,
+ onMouseDown: lK,
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-pic": "",
style: { "--card-ratio": "1.7777777777777777" },
children: [
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, I.jsx)(uK, { name: u }), /* @__PURE__ */ (0, I.jsx)("b", { children: l })]
+ children: [/* @__PURE__ */ (0, I.jsx)(fK, { name: u }), /* @__PURE__ */ (0, I.jsx)("b", { children: l })]
}),
s ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-art": "thumb",
@@ -52366,13 +52425,13 @@ function fbe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
}),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, I.jsx)(uK, { name: "check" })
+ children: /* @__PURE__ */ (0, I.jsx)(fK, { name: "check" })
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, I.jsx)(uK, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, I.jsx)(fK, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]
}),
- n ? null : /* @__PURE__ */ (0, I.jsx)(fK, {
+ n ? null : /* @__PURE__ */ (0, I.jsx)(mK, {
item: e,
actions: i
})
@@ -52383,7 +52442,7 @@ function fbe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
"data-media-avatar": "",
"data-media-kind-glyph": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(uK, { name: u })
+ children: /* @__PURE__ */ (0, I.jsx)(fK, { name: u })
}), /* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-text": "",
children: [
@@ -52411,29 +52470,29 @@ function fbe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
]
}),
e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)("div", { "data-media-tags": "" }) : null,
- /* @__PURE__ */ (0, I.jsx)(dK, { item: e })
+ /* @__PURE__ */ (0, I.jsx)(pK, { item: e })
]
})]
})]
});
}
-function pbe(e) {
- return e.variant === "resource" ? /* @__PURE__ */ (0, I.jsx)(fbe, { ...e }) : /* @__PURE__ */ (0, I.jsx)(dbe, { ...e });
+function mbe(e) {
+ return e.variant === "resource" ? /* @__PURE__ */ (0, I.jsx)(pbe, { ...e }) : /* @__PURE__ */ (0, I.jsx)(fbe, { ...e });
}
-var gK = (0, F.memo)(pbe), mbe = 1100, hbe = 340, gbe = 5e3;
-function _be(e, t, n) {
+var vK = (0, F.memo)(mbe), hbe = 1100, gbe = 340, _be = 5e3;
+function vbe(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, gbe);
+ }, s = () => o(!1), c = setTimeout(s, _be);
t.cancels.add(s), i.onerror = s, i.onload = () => {
i.naturalWidth ? typeof i.decode == "function" ? i.decode().then(() => o(!0), s) : o(!0) : o(!1);
}, i.src = e;
});
}
-function _K({ load: e, canFlip: t, referrerPolicy: n }) {
+function yK({ load: e, canFlip: t, referrerPolicy: n }) {
let [r, i] = (0, F.useState)([]), [a, o] = (0, F.useState)(0), [s, c] = (0, F.useState)(null), l = (0, F.useRef)({
live: !1,
generation: 0,
@@ -52475,11 +52534,11 @@ function _K({ load: e, canFlip: t, referrerPolicy: n }) {
return;
}
if (!r() || !u.current.canFlip() || a.length < 2) return;
- let s = await Promise.all(a.map((t) => _be(t, e, n)));
+ let s = await Promise.all(a.map((t) => vbe(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, mbe);
+ p(), e.cycle = setInterval(p, hbe);
}));
};
return (0, F.useEffect)(() => d, [d]), {
@@ -52488,7 +52547,7 @@ function _K({ 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(hbe, () => {
+ e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(gbe, () => {
e.armed = null, m();
});
},
@@ -52498,8 +52557,8 @@ function _K({ load: e, canFlip: t, referrerPolicy: n }) {
};
}
// src/react/components/mix-card.tsx
-var vK = TV("play");
-function vbe({ src: e }) {
+var bK = DV("play");
+function ybe({ src: e }) {
let [t, n] = (0, F.useState)(!1);
return t ? null : /* @__PURE__ */ (0, I.jsx)("img", {
"data-mix-poster": "",
@@ -52512,8 +52571,8 @@ function vbe({ src: e }) {
className: "absolute inset-0 block size-full object-contain"
});
}
-var yK = "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 ybe({ faces: e, fallback: t, onOpenEntity: n }) {
+var xK = "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 bbe({ 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", {
@@ -52521,18 +52580,18 @@ function ybe({ faces: e, fallback: t, onOpenEntity: n }) {
title: `打开资料页:${e.name}`,
"aria-label": `打开资料页:${e.name}`,
onClick: () => n(e.kind, e.name),
- className: `${yK} cursor-pointer outline-none`,
+ className: `${xK} cursor-pointer outline-none`,
dangerouslySetInnerHTML: { __html: go(e.name, e, Xa(e.name), e.kind) }
}, `${e.kind}:${e.id}`))
}) : /* @__PURE__ */ (0, I.jsx)("span", {
"data-mix-initial": "",
"aria-hidden": !0,
- className: `${yK} mt-0.5`,
+ className: `${xK} mt-0.5`,
children: t
});
}
-function bK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, onOpenEntity: s, onOpen: c, openLabel: l, menu: u, ratio: d, artwork: f, artworkIdentity: p, relayoutArt: m, faceHtml: h, badge: g, glyph: _, wholeCard: v, ...y }) {
- let b = _K({
+function SK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, onOpenEntity: s, onOpen: c, openLabel: l, menu: u, ratio: d, artwork: f, artworkIdentity: p, relayoutArt: m, faceHtml: h, badge: g, glyph: _, wholeCard: v, ...y }) {
+ let b = yK({
load: i,
canFlip: a
}), x = (0, F.useRef)(b.onPointerLeave);
@@ -52559,11 +52618,11 @@ function bK({ 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)(aW, {
+ f?.html ? /* @__PURE__ */ (0, I.jsx)(sW, {
artwork: f,
identity: p,
relayout: m
- }) : r ? /* @__PURE__ */ (0, I.jsx)(vbe, { src: r }, r) : /* @__PURE__ */ (0, I.jsx)("span", {
+ }) : r ? /* @__PURE__ */ (0, I.jsx)(ybe, { src: r }, r) : /* @__PURE__ */ (0, I.jsx)("span", {
className: "text-caption-1-regular tracking-caps text-text-secondary uppercase",
children: "无预览"
}),
@@ -52593,7 +52652,7 @@ function bK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-mix-badge": "",
className: "absolute right-2.25 bottom-2.25 z-6 flex min-h-7 items-center gap-1.5 rounded-2lg px-2.25 py-1 text-caption-1-semibold text-text-white",
- children: [/* @__PURE__ */ (0, I.jsx)(vK, {
+ children: [/* @__PURE__ */ (0, I.jsx)(bK, {
"aria-hidden": !0,
className: "size-(--icon-inline)"
}), g ?? `${n.toLocaleString()} 个视频`]
@@ -52606,8 +52665,8 @@ function bK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
_ ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-mix-glyph": "",
"aria-hidden": !0,
- children: /* @__PURE__ */ (0, I.jsx)(vK, {})
- }) : /* @__PURE__ */ (0, I.jsx)(ybe, {
+ children: /* @__PURE__ */ (0, I.jsx)(bK, {})
+ }) : /* @__PURE__ */ (0, I.jsx)(bbe, {
faces: o,
fallback: $n(e),
onOpenEntity: s
@@ -52630,7 +52689,7 @@ function bK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
});
}
// src/react/video-wall/folia/blockReflows.ts
-var bbe = [
+var xbe = [
[
[
{
@@ -56191,7 +56250,7 @@ var bbe = [
}
]
]
-], xK = [
+], CK = [
[
{
x: 0,
@@ -56488,89 +56547,89 @@ var bbe = [
rows: 2
}
]
-], SK = (e) => e.map((e) => ({
+], wK = (e) => e.map((e) => ({
...e,
x: 12 - e.x - e.cols
-})), CK = (e) => e.map((e) => ({
+})), TK = (e) => e.map((e) => ({
...e,
y: 8 - e.y - e.rows
-})), wK = [
+})), EK = [
(e) => e,
- SK,
- CK,
- (e) => SK(CK(e))
-], TK = xK.flatMap((e) => wK.map((t) => t(e))), xbe = bbe.flatMap((e) => wK.map((t) => e.map(t)));
-TK.length;
-var Sbe = (e, t) => {
+ wK,
+ TK,
+ (e) => wK(TK(e))
+], DK = CK.flatMap((e) => EK.map((t) => t(e))), Sbe = xbe.flatMap((e) => EK.map((t) => e.map(t)));
+DK.length;
+var Cbe = (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;
-}, EK = (e, t) => {
- let n = xK.length;
- return ((e + t * 2) % n + n) % n * wK.length + Sbe(e, t) % wK.length;
-}, Cbe = (e, t) => TK[EK(e, t)], wbe = (e, t, n) => n < 0 || n >= 12 ? null : xbe[EK(e, t)][n], DK = 103.36, OK = 6.08, kK = 12 * DK, AK = 8 * DK, jK = 12, MK = (e, t) => (e % t + t) % t, Tbe = (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 NK(e, t) {
- let n = Math.max(1, Math.ceil(e / jK)), r = t ? 3 : Math.min(3, n);
+}, OK = (e, t) => {
+ let n = CK.length;
+ return ((e + t * 2) % n + n) % n * EK.length + Cbe(e, t) % EK.length;
+}, wbe = (e, t) => DK[OK(e, t)], Tbe = (e, t, n) => n < 0 || n >= 12 ? null : Sbe[OK(e, t)][n], kK = 103.36, AK = 6.08, jK = 12 * kK, MK = 8 * kK, NK = 12, PK = (e, t) => (e % t + t) % t, Ebe = (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 FK(e, t) {
+ let n = Math.max(1, Math.ceil(e / NK)), r = t ? 3 : Math.min(3, n);
return {
columns: r,
- width: r * kK,
- height: Math.ceil(n / r) * AK
+ width: r * jK,
+ height: Math.ceil(n / r) * MK
};
}
-function PK(e, t, n) {
- let { x: r, y: i, cols: a, rows: o } = Cbe(e, t)[n];
+function IK(e, t, n) {
+ let { x: r, y: i, cols: a, rows: o } = wbe(e, t)[n];
return {
- x: e * kK + r * DK,
- y: t * AK + i * DK,
- width: a * DK - OK,
- height: o * DK - OK
+ x: e * jK + r * kK,
+ y: t * MK + i * kK,
+ width: a * kK - AK,
+ height: o * kK - AK
};
}
-function Ebe(e) {
+function Dbe(e) {
return (!e.medium || e.medium === "video") && !!e.has_cover && !!(e.cover_key || e.code);
}
-function FK(e, t, n) {
+function LK(e, t, n) {
if (!e) return null;
let [r, i, a] = n.split(":").map(Number);
if (![
r,
i,
a
- ].every(Number.isInteger) || a < 0 || a >= jK) return null;
- let o = NK(e, t), s = o.height / AK;
+ ].every(Number.isInteger) || a < 0 || a >= NK) return null;
+ let o = FK(e, t), s = o.height / MK;
if (t && (r < 0 || r >= o.columns || i < 0 || i >= s)) return null;
- let c = t ? r : MK(r, o.columns), l = ((t ? i : MK(i, s)) * o.columns + c) * jK + a;
+ let c = t ? r : PK(r, o.columns), l = ((t ? i : PK(i, s)) * o.columns + c) * NK + a;
return t && l >= e ? null : {
- ...PK(r, i, a),
+ ...IK(r, i, a),
index: l % e,
key: n
};
}
-function Dbe(e, t) {
+function Obe(e, t) {
if (t < 0 || t >= e) return null;
- let n = Math.floor(t / jK);
- return FK(e, !0, `${n % 3}:${Math.floor(n / 3)}:${t % jK}`);
+ let n = Math.floor(t / NK);
+ return LK(e, !0, `${n % 3}:${Math.floor(n / 3)}:${t % NK}`);
}
-function IK(e, t, n) {
- let [r, i, a] = n.key.split(":").map(Number), o = wbe(r, i, a);
+function RK(e, t, n) {
+ let [r, i, a] = n.key.split(":").map(Number), o = Tbe(r, i, a);
return new Map((o || []).map((e, t) => [`${r}:${i}:${t}`, {
- x: r * kK + e.x * DK,
- y: i * AK + e.y * DK,
- width: e.cols * DK - OK,
- height: e.rows * DK - OK
+ x: r * jK + e.x * kK,
+ y: i * MK + e.y * kK,
+ width: e.cols * kK - AK,
+ height: e.rows * kK - AK
}]));
}
-function Obe(e) {
+function kbe(e) {
let t = 0, n = 0;
for (let r = Math.max(0, e - 36); r < e; r += 1) {
- let e = Math.floor(r / jK), i = PK(e % 3, Math.floor(e / 3), r % jK);
+ let e = Math.floor(r / NK), i = IK(e % 3, Math.floor(e / 3), r % NK);
t = Math.max(t, i.x + i.width), n = Math.max(n, i.y + i.height);
}
return {
- width: e >= 36 ? 3 * kK - OK : t,
+ width: e >= 36 ? 3 * jK - AK : t,
height: n
};
}
-function kbe(e, t, n, r) {
+function Abe(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 {
@@ -56579,22 +56638,22 @@ function kbe(e, t, n, r) {
y: i(e.y, n.height, t.height)
};
}
-function Abe(e, t, n, r) {
+function jbe(e, t, n, r) {
if (!e || !r.width || !r.height) return [];
let i = 180 / n.scale, a = {
x: -n.x / n.scale - i,
y: -n.y / n.scale - i,
width: r.width / n.scale + i * 2,
height: r.height / n.scale + i * 2
- }, o = NK(e, t), s = o.height / AK, c = [];
- for (let n = Math.floor(a.y / AK); n <= Math.floor((a.y + a.height) / AK); n += 1) for (let r = Math.floor(a.x / kK); r <= Math.floor((a.x + a.width) / kK); r += 1) {
+ }, o = FK(e, t), s = o.height / MK, c = [];
+ for (let n = Math.floor(a.y / MK); n <= Math.floor((a.y + a.height) / MK); n += 1) for (let r = Math.floor(a.x / jK); r <= Math.floor((a.x + a.width) / jK); r += 1) {
if (t && (r < 0 || r >= o.columns || n < 0 || n >= s)) continue;
- let i = t ? r : MK(r, o.columns), l = t ? n : MK(n, s);
- for (let s = 0; s < jK; s += 1) {
- let u = (l * o.columns + i) * jK + s;
+ let i = t ? r : PK(r, o.columns), l = t ? n : PK(n, s);
+ for (let s = 0; s < NK; s += 1) {
+ let u = (l * o.columns + i) * NK + s;
if (t && u >= e) continue;
- let d = PK(r, n, s);
- Tbe(d, a) && c.push({
+ let d = IK(r, n, s);
+ Ebe(d, a) && c.push({
...d,
index: u % e,
key: `${r}:${n}:${s}`
@@ -56603,7 +56662,7 @@ function Abe(e, t, n, r) {
}
return c;
}
-var jbe = class {
+var Mbe = class {
positions = /* @__PURE__ */ new Map();
used = /* @__PURE__ */ new Set();
cursor = 0;
@@ -56615,7 +56674,7 @@ var jbe = class {
this.cursor = e;
}
tile(e, t) {
- let n = this.positions.get(e), r = n === void 0 ? null : FK(t, !1, e);
+ let n = this.positions.get(e), r = n === void 0 ? null : LK(t, !1, e);
return r ? {
...r,
index: n
@@ -56645,7 +56704,7 @@ var jbe = class {
let e = 0;
for (let t of this.positions.keys()) e = Math.max(e, Number(t.split(":")[0]));
return {
- x: (e + 2) * kK,
+ x: (e + 2) * jK,
y: 0
};
}
@@ -56658,10 +56717,10 @@ var jbe = class {
c < i && (r = s, i = c);
}
if (r) return r;
- let a = this.fresh(), o = `${Math.round(a.x / kK)}:0:0`;
+ let a = this.fresh(), o = `${Math.round(a.x / jK)}:0:0`;
return this.positions.set(o, t), this.used.add(t), this.tile(o, e);
}
-}, LK = [
+}, zK = [
"q",
"performer",
"series",
@@ -56676,16 +56735,16 @@ var jbe = class {
"dur_max",
"region"
];
-function Mbe(e = {}) {
- return LK.some((t) => !!e[t]);
+function Nbe(e = {}) {
+ return zK.some((t) => !!e[t]);
}
// src/react/video-wall/use-wall-camera.ts
-var RK = {
+var BK = {
x: 16,
y: 16,
scale: 1
};
-function Nbe(e, t, n = RK, r = !1) {
+function Pbe(e, t, n = BK, r = !1) {
let i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)({
width: 0,
height: 0
@@ -56705,7 +56764,7 @@ function Nbe(e, t, n = RK, 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 = kbe(e, o.current, Obe(r), c && !f && !n);
+ let { count: r, finite: c, focused: f } = d.current, p = Abe(e, o.current, kbe(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));
@@ -56776,7 +56835,7 @@ function Nbe(e, t, n = RK, r = !1) {
x: o.current.width / 2 - (e.x + e.width / 2) * i,
y: o.current.height / 2 - (e.y + e.height / 2) * i
};
- !t || v() ? _(a, !0, n) : p.current = pS(0, 1, {
+ !t || v() ? _(a, !0, n) : p.current = hS(0, 1, {
duration: .42,
ease: [
.22,
@@ -56805,7 +56864,7 @@ function Nbe(e, t, n = RK, r = !1) {
},
snapshot: () => ({ ...s.current }),
reset: () => {
- g(), _({ ...RK }, !0);
+ g(), _({ ...BK }, !0);
},
pan: (e, t) => {
g(), _({
@@ -56866,16 +56925,16 @@ function Nbe(e, t, n = RK, r = !1) {
};
}
// src/react/video-wall/wall-motion.ts
-var Pbe = {
+var Fbe = {
type: "spring",
stiffness: 300,
damping: 34
-}, Fbe = {
+}, Ibe = {
delay: .14,
duration: .24
};
// src/react/video-wall/use-wall-playback.ts
-function Ibe(e, t, n) {
+function Lbe(e, t, n) {
let [r, i] = (0, F.useState)({
paused: !0,
time: 0,
@@ -56916,15 +56975,15 @@ function Ibe(e, t, n) {
};
}
// src/react/video-wall/wall-controls.tsx
-function Lbe({ 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 = nS(), x = Ibe(t, n, v), S = x.duration || Number(e.duration) || 0, C = r || i, w = !t || x.paused, T = async () => {
+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 = iS(), x = Lbe(t, n, v), S = x.duration || Number(e.duration) || 0, C = r || i, w = !t || x.paused, T = async () => {
if (!(C || a && !s)) try {
t === e.id ? await x.toggle() : await f();
} catch (e) {
y(bn(e));
}
};
- return /* @__PURE__ */ (0, I.jsxs)(mS.div, {
+ return /* @__PURE__ */ (0, I.jsxs)(gS.div, {
"data-wall-focus-actions": "",
initial: !b && {
opacity: 0,
@@ -56934,7 +56993,7 @@ function Lbe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
opacity: 1,
transform: "translateY(0px)"
},
- transition: b ? { duration: 0 } : Fbe,
+ transition: b ? { duration: 0 } : Ibe,
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-wall-control-row": "",
children: [
@@ -56942,7 +57001,7 @@ function Lbe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
type: "button",
"data-wall-play": "",
"data-wall-pause": w ? void 0 : "",
- ...DV(C),
+ ...kV(C),
"aria-label": r ? "正在打开" : i ? "正在读取版本" : w ? "播放" : "暂停",
title: w ? "播放" : "暂停",
onClick: () => void T(),
@@ -56992,7 +57051,7 @@ function Lbe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
- ...DV(d),
+ ...kV(d),
"aria-label": u ? "移出稍后看" : "稍后看",
title: "稍后看",
"aria-pressed": u,
@@ -57038,7 +57097,7 @@ function Lbe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
});
}
// src/react/components/mix-queue.tsx
-function zK({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
+function VK({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
let c = (0, F.useRef)(null), l = (0, F.useCallback)((e) => {
c.current = e, typeof a == "function" ? a(e) : a && (a.current = e);
}, [a]);
@@ -57074,7 +57133,7 @@ function zK({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a,
})]
});
}
-function BK({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
+function HK({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
let s = /* @__PURE__ */ (0, I.jsx)("span", {
"data-mix-item-text": "",
children: a
@@ -57097,7 +57156,7 @@ function BK({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }
}), r]
});
}
-var Rbe = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {
+var zbe = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {
"data-mix-group-label": "",
children: [
e,
@@ -57106,28 +57165,28 @@ var Rbe = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {
]
});
// src/react/video-wall/wall-queue.tsx
-function zbe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {
+function Bbe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-wall-queue": "",
id: "wall-queue",
- children: /* @__PURE__ */ (0, I.jsx)(zK, {
+ children: /* @__PURE__ */ (0, I.jsx)(VK, {
kind: n,
title: n === "parts" ? "分卷" : n === "editions" ? "版本" : "作品",
summary: `${e.length} 个视频`,
onClose: a,
- children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)(BK, {
+ children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)(HK, {
current: e.id === t,
"data-wall-source": e.id,
"aria-label": [
e.edition_label,
- e.part_label ? WP(e.part_label) : "",
+ e.part_label ? KP(e.part_label) : "",
r(e)
].filter(Boolean).join(" · "),
onClick: () => i(e),
- pic: /* @__PURE__ */ (0, I.jsx)(aW, { artwork: wo(e, "small", !0, "cover") }),
+ pic: /* @__PURE__ */ (0, I.jsx)(sW, { 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 ? WP(e.part_label) : "",
+ e.part_label ? KP(e.part_label) : "",
qn(e.duration)
].filter(Boolean).join(" · ") })]
}, e.id))
@@ -57135,7 +57194,7 @@ function zbe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a })
});
}
// src/react/video-wall/wall-route.ts
-function Bbe(e = `${location.pathname}${location.search}`, t = {}) {
+function Vbe(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",
@@ -57150,17 +57209,17 @@ function Bbe(e = `${location.pathname}${location.search}`, t = {}) {
}
return s.set("returnTo", `${n.pathname}${n.search}`), `/wall?${s}`;
}
-function VK(e = `${location.pathname}${location.search}`) {
+function UK(e = `${location.pathname}${location.search}`) {
let t = new URL(e, location.origin).searchParams;
- for (let e of LK) t.delete(e);
+ for (let e of zK) t.delete(e);
return t.delete("tag_match"), `/wall${t.size ? `?${t}` : ""}`;
}
-function HK() {
+function WK() {
let e = new URLSearchParams(W.navigation.location.search).get("returnTo") || "/";
W.replace(e.startsWith("/") && !e.startsWith("//") && !e.startsWith("/wall") ? e : "/");
}
// src/react/video-wall/video-wall.tsx
-var UK = /* @__PURE__ */ new Map(), WK = (0, F.memo)(function({ item: e, image: t, big: n = !1, ratio: r = 1 }) {
+var GK = /* @__PURE__ */ new Map(), KK = (0, F.memo)(function({ item: e, image: t, big: n = !1, ratio: r = 1 }) {
let i = wo(!e.is_jav && t === "thumbnail" && e.has_thumb ? {
...e,
has_cover: !1
@@ -57173,7 +57232,7 @@ var UK = /* @__PURE__ */ new Map(), WK = (0, F.memo)(function({ item: e, image:
ref: a,
"data-media-pic": "",
style: { "--card-ratio": String(r) },
- children: /* @__PURE__ */ (0, I.jsx)(aW, {
+ children: /* @__PURE__ */ (0, I.jsx)(sW, {
artwork: i,
relayout: (e) => e.querySelectorAll("img.cover").forEach((e) => {
e.complete && e.naturalWidth && ll(e, r);
@@ -57181,31 +57240,31 @@ var UK = /* @__PURE__ */ new Map(), WK = (0, F.memo)(function({ item: e, image:
})
});
});
-function Vbe({ 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 Hbe({ 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 = UK.get(f);
+ let e = GK.get(f);
return e && (i || t || e.pool === p) ? e : void 0;
- }), [h] = (0, F.useState)(() => m?.exploration || new jbe()), 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 Mbe()), g = (0, F.useRef)(!1), [_, v] = (0, F.useState)(null), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = (0, F.useRef)(null), C = (0, F.useRef)(null), [w, T] = (0, F.useState)(() => e.find((e) => e.id === m?.selectedId) || null), [E, D] = (0, F.useState)(m?.selectedKey || ""), [O, k] = (0, F.useState)(m?.sourceId || null), [A, j] = (0, F.useState)(!1), M = w?.edition_group ? {
kind: "editions",
seedId: w.edition_group.seed_id
} : w?.part_group ? {
kind: "parts",
seedId: w.part_group.seed_id
} : null, ee = Pt({
- queryKey: CP(M || {
+ queryKey: TP(M || {
kind: "parts",
seedId: 0
}),
enabled: !!M,
- queryFn: ({ signal: e }) => MP(M, {
+ queryFn: ({ signal: e }) => PP(M, {
tagLabel: u.tagLabel,
mixRelated: async () => []
}, e)
- }), N = M ? ee.data : void 0, te = N?.items.find((e) => e.id === FP(N, O || w?.id || null)) || w, P = Nbe(e.length, t && !!e.length, m?.camera || {
+ }), N = M ? ee.data : void 0, te = N?.items.find((e) => e.id === LP(N, O || w?.id || null)) || w, P = Pbe(e.length, t && !!e.length, m?.camera || {
x: 0,
y: 0,
scale: innerWidth < 640 ? .68 : 1
- }, !!w), ne = nS(), [re, ie] = (0, F.useState)(!!m);
+ }, !!w), ne = iS(), [re, ie] = (0, F.useState)(!!m);
(0, F.useEffect)(() => {
if (!e.length || re || ne) return;
let t = setTimeout(() => ie(!0), 1100);
@@ -57239,17 +57298,17 @@ function Vbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
pool: p
};
let je = () => {
- ke.current && (UK.delete(f), UK.set(f, {
+ ke.current && (GK.delete(f), GK.set(f, {
...Ae.current,
camera: P.snapshot(),
exploration: h
- }), UK.size > 8 && UK.delete(UK.keys().next().value));
+ }), GK.size > 8 && GK.delete(GK.keys().next().value));
};
(0, F.useLayoutEffect)(je);
- let Me = Abe(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 = jbe(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 ? FK(e.length, !0, E) : h.tile(E, e.length)), Fe = Pe ? IK(e.length, t, Pe) : /* @__PURE__ */ new Map();
+ })) : t ? Me : h.assign(Me, e.length, n), Pe = w && (t ? LK(e.length, !0, E) : h.tile(E, e.length)), Fe = Pe ? RK(e.length, t, Pe) : /* @__PURE__ */ new Map();
Pe && !Ne.some((e) => e.key === Pe.key) && Ne.push(Pe);
let Ie = (e = !1) => {
C.current?.abort(), C.current = null, S.current?.(e), S.current = null, se(null), de(!1);
@@ -57288,7 +57347,7 @@ function Vbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
w?.id !== n.id && Ie(!1), De.current = {
key: r.key,
id: n.id
- }, pe(""), le(null), T(n), D(r.key), k(null), j(!1), xe(!1), P.reveal(IK(e.length, t, r).get(r.key) || r, i, !0), i || requestAnimationFrame(() => y.current?.querySelector("[data-wall-play]")?.focus({ preventScroll: !0 }));
+ }, pe(""), le(null), T(n), D(r.key), k(null), j(!1), xe(!1), P.reveal(RK(e.length, t, r).get(r.key) || r, i, !0), i || requestAnimationFrame(() => y.current?.querySelector("[data-wall-play]")?.focus({ preventScroll: !0 }));
}, ze = () => {
te && y.current && (je(), Ie(!0), l.wallDetails?.(te, y.current.querySelector("[data-wall-focus]") || y.current));
}, Be = async (e = te) => {
@@ -57310,7 +57369,7 @@ function Vbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
C.current === t && de(!1);
}
}, Ve = () => {
- let e = IP(N || null, oe || 0);
+ let e = RP(N || null, oe || 0);
e && (k(e.id), Be(e));
};
(0, F.useEffect)(() => {
@@ -57332,7 +57391,7 @@ function Vbe({ 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 ? Dbe(e.length, i) : h.nearest(e.length, i, a);
+ }, o = t ? Obe(e.length, i) : h.nearest(e.length, i, a);
o && (Re(n, o), le(n.id));
}, Ge = async () => {
if (!(r || g.current)) {
@@ -57424,7 +57483,7 @@ function Vbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
/* @__PURE__ */ (0, I.jsx)("div", {
"data-wall-focus-backdrop": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(WK, {
+ children: /* @__PURE__ */ (0, I.jsx)(KK, {
item: w,
image: Te,
big: !0
@@ -57432,7 +57491,7 @@ function Vbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
/* @__PURE__ */ (0, I.jsx)("div", {
"data-wall-scene": "",
- children: /* @__PURE__ */ (0, I.jsx)(WK, {
+ children: /* @__PURE__ */ (0, I.jsx)(KK, {
item: w,
image: Te,
big: !0
@@ -57461,7 +57520,7 @@ function Vbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
Xe.code ? /* @__PURE__ */ (0, I.jsx)("strong", { children: Ye(Xe).startsWith(Xe.code) ? Ye(Xe).slice(Xe.code.length).trim() : Ye(Xe) }) : null,
/* @__PURE__ */ (0, I.jsx)("span", { children: Xe.performers?.join(" · ") || Xe.creator || "未归属" }),
- N ? /* @__PURE__ */ (0, I.jsx)("small", { children: [Xe.edition_label, Xe.part_label ? WP(Xe.part_label) : ""].filter(Boolean).join(" · ") }) : null
+ N ? /* @__PURE__ */ (0, I.jsx)("small", { children: [Xe.edition_label, Xe.part_label ? KP(Xe.part_label) : ""].filter(Boolean).join(" · ") }) : null
]
}),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -57478,7 +57537,7 @@ function Vbe({ 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)(SV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(wV, {
tone: "error",
children: fe || bn(ee.error)
}), ee.error && !N ? /* @__PURE__ */ (0, I.jsx)(J, {
@@ -57488,7 +57547,7 @@ function Vbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
children: "立即重试"
}) : null]
}) : null,
- /* @__PURE__ */ (0, I.jsx)(Lbe, {
+ /* @__PURE__ */ (0, I.jsx)(Rbe, {
item: Xe,
playing: oe,
frame: b,
@@ -57510,7 +57569,7 @@ function Vbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
ended: Ve,
error: pe
}),
- A ? /* @__PURE__ */ (0, I.jsx)(zbe, {
+ A ? /* @__PURE__ */ (0, I.jsx)(Bbe, {
items: He,
activeId: Xe.id,
kind: N?.kind || "wall",
@@ -57526,7 +57585,7 @@ function Vbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
"data-refreshing": _ !== null || void 0,
hidden: Ce,
onKeyDown: (e) => {
- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), e.stopPropagation(), A ? j(!1) : w ? Le() : be ? xe(!1) : HK());
+ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), e.stopPropagation(), A ? j(!1) : w ? Le() : be ? xe(!1) : WK());
},
children: [
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -57534,7 +57593,7 @@ function Vbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
"data-wall-back": "",
"aria-label": "退出播放墙",
title: "返回",
- onClick: HK,
+ onClick: WK,
children: /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -57552,7 +57611,7 @@ function Vbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}), /* @__PURE__ */ (0, I.jsx)("p", { children: "当前仅显示筛选结果" })] }), /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "ghost",
- onClick: () => W.push(VK()),
+ onClick: () => W.push(UK()),
children: "清除筛选"
})]
}) : null,
@@ -57578,18 +57637,18 @@ function Vbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
defaultValue: new URLSearchParams(location.search).get("q") || ""
})]
}),
- /* @__PURE__ */ (0, I.jsxs)(gU, {
+ /* @__PURE__ */ (0, I.jsxs)(vU, {
"aria-label": "播放墙图片",
value: Te,
onChange: Ee,
- className: _U,
- children: [/* @__PURE__ */ (0, I.jsx)(Kz, {
+ className: yU,
+ children: [/* @__PURE__ */ (0, I.jsx)(Jz, {
value: "cover",
- className: vU,
+ className: bU,
children: "封面"
- }), /* @__PURE__ */ (0, I.jsx)(Kz, {
+ }), /* @__PURE__ */ (0, I.jsx)(Jz, {
value: "thumbnail",
- className: vU,
+ className: bU,
children: "缩略图"
})]
}),
@@ -57661,7 +57720,7 @@ function Vbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}
}, t.key);
let n = e[t.index], r = !!w && t.key === E, i = Fe.get(t.key) || t, a = !re && !r, o = a ? Math.min(.34, (Math.max(0, t.x + P.view.camera.x / P.view.camera.scale) + Math.max(0, t.y + P.view.camera.y / P.view.camera.scale)) / 103.36 * .03) : 0;
- return /* @__PURE__ */ (0, I.jsx)(mS.article, {
+ return /* @__PURE__ */ (0, I.jsx)(gS.article, {
layout: !0,
layoutDependency: `${i.x}:${i.y}:${i.width}:${i.height}`,
"data-wall-tile": t.key,
@@ -57682,7 +57741,7 @@ function Vbe({ 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: Pbe,
+ layout: Fbe,
transform: a ? {
type: "spring",
stiffness: 360,
@@ -57715,7 +57774,7 @@ function Vbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
!r && ["Enter", " "].includes(e.key) && (e.preventDefault(), Re(n, t, !1));
},
children: r ? Ze : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(WK, {
+ /* @__PURE__ */ (0, I.jsx)(KK, {
item: n,
image: Te,
ratio: i.width / i.height
@@ -57741,7 +57800,7 @@ function Vbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
style: { "--wall-progress": `${Math.min(100, Number(n.leave_ratio) * 100)}%` },
"aria-label": "观看进度"
}) : null,
- /* @__PURE__ */ (0, I.jsx)(mS.span, {
+ /* @__PURE__ */ (0, I.jsx)(gS.span, {
"data-wall-dim": "",
animate: { opacity: w ? .65 : 0 },
transition: { duration: ne ? 0 : .24 }
@@ -57753,7 +57812,7 @@ function Vbe({ 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)(SV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(wV, {
tone: "error",
children: a
}), /* @__PURE__ */ (0, I.jsx)(J, {
@@ -57780,7 +57839,7 @@ function Vbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}) : null,
!t && (n || e.length > 0) ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-wall-refresh": "",
- children: /* @__PURE__ */ (0, I.jsx)(zG, {
+ children: /* @__PURE__ */ (0, I.jsx)(VG, {
busy: r,
onPress: () => void qe()
})
@@ -57790,20 +57849,20 @@ function Vbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
children: /* @__PURE__ */ (0, I.jsxs)(J, {
size: "small",
variant: "secondary",
- ...DV(r),
+ ...kV(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)(SV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(wV, {
tone: "error",
children: me
}), /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "ghost",
- ...DV(r),
+ ...kV(r),
onClick: () => void Ge(),
children: "立即重试"
})]
@@ -57826,7 +57885,7 @@ function Vbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
return (0, Lt.createPortal)(Qe, Se);
}
// src/catalog-onboarding.ts
-var GK = [
+var qK = [
"loc",
"creator",
"performer",
@@ -57845,19 +57904,19 @@ var GK = [
"jav",
"thumb"
];
-function Hbe(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 [
- ...GK,
+ ...qK,
"q",
"category",
"cat"
]) t.searchParams.delete(e);
return t.searchParams.set("thumb", "0"), t.pathname + (t.search ? t.search : "") + t.hash;
}
-async function Ube(e, t) {
+async function Wbe(e, t) {
let n = new URLSearchParams();
- for (let t of GK) e[t] && n.set(t, e[t]);
+ for (let t of qK) e[t] && n.set(t, e[t]);
let [r, i] = await Promise.all([t("/api/facets?" + n), t("/api/items?" + n + "&limit=5")]), a = [...new Set([
...r.creators || [],
...r.tagperformers || [],
@@ -57868,9 +57927,9 @@ async function Ube(e, t) {
return r.set("q", e), r.set("limit", "1"), (await t("/api/items?" + r)).total > 0 ? e : "";
}))).filter(Boolean);
}
-function KK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
+function JK({ 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(Hbe()) : "/?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: "标签",
@@ -57888,12 +57947,12 @@ function KK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable:
return Us("play", "还没有视频", "添加媒体目录或关注来源,开始建立你的馆藏。", { actions: a + o });
}
// src/react/video-wall/wall-empty.ts
-function Wbe({ libraryEmpty: e, matches: t, hasMore: n, catalogEmpty: r }) {
- return e ? r || KK() : 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="${VK()}">清除筛选</a>` });
+function Gbe({ libraryEmpty: e, matches: t, hasMore: n, catalogEmpty: r }) {
+ return e ? r || JK() : 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="${UK()}">清除筛选</a>` });
}
// src/react/library-processing/processing-actions.tsx
-function qK({ label: e, maintenance: t = !1, children: n }) {
- let r = kH("hover");
+function YK({ label: e, maintenance: t = !1, children: n }) {
+ let r = jH("hover");
return /* @__PURE__ */ (0, I.jsx)("div", {
ref: r,
role: "group",
@@ -57903,13 +57962,13 @@ function qK({ label: e, maintenance: t = !1, children: n }) {
children: n
});
}
-function JK({ option: e, metadataOnly: t, onRun: n }) {
+function XK({ option: e, metadataOnly: t, onRun: n }) {
let r = t && e.command.stage === "previews", i = r || e.disabled;
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
disabled: i,
title: r ? "请先在媒体库设置中开启视频预览生成" : void 0,
- className: q(GV, i ? "cursor-not-allowed opacity-50" : KV, "text-body-2-medium"),
+ className: q(qV, i ? "cursor-not-allowed opacity-50" : JV, "text-body-2-medium"),
onClick: () => n(e.command),
children: /* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex min-w-0 flex-col gap-1",
@@ -57920,12 +57979,12 @@ function JK({ option: e, metadataOnly: t, onRun: n }) {
})
});
}
-function Gbe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
+function Kbe({ 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 c_e(e, t.signal, a);
+ let o = await o_e(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(() => {
@@ -57950,7 +58009,7 @@ function Gbe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
}),
/* @__PURE__ */ (0, I.jsx)("div", {
className: "flex justify-center",
- children: /* @__PURE__ */ (0, I.jsx)(IH, {
+ children: /* @__PURE__ */ (0, I.jsx)(RH, {
value: a,
busy: i,
onChange: (e) => {
@@ -57958,7 +58017,7 @@ function Gbe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
}
})
}),
- s ? /* @__PURE__ */ (0, I.jsx)(oU, {
+ s ? /* @__PURE__ */ (0, I.jsx)(cU, {
traffic: s,
initial: !0
}) : null,
@@ -57970,7 +58029,7 @@ function Gbe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
]
});
}
-function YK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, speedMode: i = "standard", pendingCount: a = 0, onRun: o, onOccupied: s }) {
+function ZK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, speedMode: i = "standard", pendingCount: a = 0, onRun: o, onOccupied: s }) {
let c = (0, F.useRef)(null), l = (0, F.useRef)(null), [u, d] = (0, F.useState)(null), f = (0, F.useRef)(i);
(0, F.useEffect)(() => () => l.current?.close(), []);
let [p, m] = (0, F.useState)(!1), h = {
@@ -58018,7 +58077,7 @@ function YK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
description: "为已入库的本地视频生成九宫格",
command: { stage: "previews" }
}
- ], v = e || t, y = e ? DV(!0) : t ? { "aria-disabled": !0 } : {}, b = (a) => {
+ ], v = e || t, y = e ? kV(!0) : t ? { "aria-disabled": !0 } : {}, b = (a) => {
if (e) return;
if (t) {
s?.();
@@ -58053,7 +58112,7 @@ function YK({ 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)(Gbe, {
+ u ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Kbe, {
command: u.command,
dialog: u.dialog,
speed: i,
@@ -58062,11 +58121,11 @@ function YK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
f.current = e;
}
}), u.host) : null,
- u ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(EH, {
+ u ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(OH, {
href: "/settings/library",
size: "small",
variant: "primary",
- trailingIcon: MB,
+ trailingIcon: PB,
disabled: v,
onClick: (e) => {
u.dialog.confirmButton.getAttribute("aria-busy") === "true" ? e.preventDefault() : u.dialog.close();
@@ -58084,7 +58143,7 @@ function YK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
}), /* @__PURE__ */ (0, I.jsx)(J, {
ref: c,
iconOnly: !0,
- leadingIcon: jB,
+ leadingIcon: NB,
"aria-label": "更多同步方式",
"aria-haspopup": "dialog",
"aria-expanded": p,
@@ -58094,27 +58153,27 @@ function YK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
}
})]
}),
- /* @__PURE__ */ (0, I.jsx)(Tz, {
+ /* @__PURE__ */ (0, I.jsx)(Dz, {
triggerRef: c,
isOpen: p,
onOpenChange: m,
placement: "bottom end",
offset: 4,
- className: WV,
- children: /* @__PURE__ */ (0, I.jsxs)(Rz, {
+ className: KV,
+ children: /* @__PURE__ */ (0, I.jsxs)(Bz, {
"aria-label": "同步方式",
className: "flex w-80 flex-col gap-1 outline-none",
- children: [n ? /* @__PURE__ */ (0, I.jsxs)(qK, {
+ children: [n ? /* @__PURE__ */ (0, I.jsxs)(YK, {
label: "日常同步",
children: [/* @__PURE__ */ (0, I.jsx)("p", {
className: "px-2 py-1 text-caption-1-medium text-text-secondary",
children: "日常同步"
- }), g.map((e) => /* @__PURE__ */ (0, I.jsx)(JK, {
+ }), g.map((e) => /* @__PURE__ */ (0, I.jsx)(XK, {
option: e,
metadataOnly: r,
onRun: b
}, e.label))]
- }) : null, /* @__PURE__ */ (0, I.jsxs)(qK, {
+ }) : null, /* @__PURE__ */ (0, I.jsxs)(YK, {
label: n ? "全库维护" : "补全方式",
maintenance: n,
children: [n ? /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -58126,7 +58185,7 @@ function YK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
className: "text-caption-1-regular text-text-secondary",
children: "检查全部文件,复用已有资料和预览"
})]
- }) : null, _.map((e) => /* @__PURE__ */ (0, I.jsx)(JK, {
+ }) : null, _.map((e) => /* @__PURE__ */ (0, I.jsx)(XK, {
option: e,
metadataOnly: r,
onRun: b
@@ -58137,48 +58196,48 @@ function YK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
] });
}
// src/react/library-processing/library-completion.tsx
-function XK(e, t) {
+function QK(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 ZK({ assetIds: e, onComplete: t, className: n = "mb-4" }) {
- return e.length ? /* @__PURE__ */ (0, I.jsx)(Kbe, {
+function $K({ assetIds: e, onComplete: t, className: n = "mb-4" }) {
+ return e.length ? /* @__PURE__ */ (0, I.jsx)(qbe, {
assetIds: e,
onComplete: t,
className: n
}) : null;
}
-function Kbe({ assetIds: e, onComplete: t, className: n }) {
+function qbe({ assetIds: e, onComplete: t, className: n }) {
let r = Pt({
- queryKey: uH,
- queryFn: ({ signal: e }) => vH(e),
- refetchInterval: (e) => xH(e.state.data, !0)
+ queryKey: fH,
+ queryFn: ({ signal: e }) => bH(e),
+ refetchInterval: (e) => CH(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(lH, {
+ mutationFn: (t) => V(dH, {
...t,
asset_ids: e
}),
onSuccess: (e) => {
- a(e.job_id || null), H.setQueryData(uH, e), H.invalidateQueries({ queryKey: uH });
+ a(e.job_id || null), H.setQueryData(fH, e), H.invalidateQueries({ queryKey: fH });
}
}), u = r.data;
(0, F.useEffect)(() => {
- u && i && u.job_id === i && !pH(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 && !hH(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 || pH(u), f = l.error ? cr(l.error) : r.error ? bH : i && u?.job_id === i && u.status === "failed" ? u.error || "补全未完成" : "", p = f || (l.isPending ? "正在启动补全…" : o || `这批影片中有 ${e.length.toLocaleString()} 部暂无预览,${pH(u) ? "当前任务结束后可单独补全。" : "可补全资料与图片。"}`);
+ let d = l.isPending || hH(u), f = l.error ? cr(l.error) : r.error ? SH : i && u?.job_id === i && u.status === "failed" ? u.error || "补全未完成" : "", p = f || (l.isPending ? "正在启动补全…" : o || `这批影片中有 ${e.length.toLocaleString()} 部暂无预览,${hH(u) ? "当前任务结束后可单独补全。" : "可补全资料与图片。"}`);
return /* @__PURE__ */ (0, I.jsx)("section", {
"aria-label": "补全预览",
"aria-live": "polite",
"data-library-completion": "",
className: q("@container", n),
- children: /* @__PURE__ */ (0, I.jsxs)(SV, {
+ children: /* @__PURE__ */ (0, I.jsxs)(wV, {
tone: f ? "warning" : "neutral",
action: /* @__PURE__ */ (0, I.jsx)("div", {
className: "flex flex-wrap items-center gap-2",
- children: /* @__PURE__ */ (0, I.jsx)(YK, {
+ children: /* @__PURE__ */ (0, I.jsx)(ZK, {
busy: d,
metadataOnly: u?.metadata_only,
onRun: (e) => {
@@ -58189,10 +58248,10 @@ function Kbe({ assetIds: e, onComplete: t, className: n }) {
children: [
p,
" ",
- /* @__PURE__ */ (0, I.jsx)(EH, {
+ /* @__PURE__ */ (0, I.jsx)(OH, {
href: "/data-cleanup#libraryProcessing",
size: "small",
- trailingIcon: MB,
+ trailingIcon: PB,
children: f ? "打开扫描与采集" : "查看处理详情"
})
]
@@ -58200,31 +58259,31 @@ function Kbe({ assetIds: e, onComplete: t, className: n }) {
});
}
// node_modules/@tanstack/react-table/dist/FlexRender.js
-function qbe(e) {
- return Jbe(e) || typeof e == "function" || Ybe(e);
-}
function Jbe(e) {
+ return Ybe(e) || typeof e == "function" || Xbe(e);
+}
+function Ybe(e) {
return typeof e == "function" && (() => {
let t = Object.getPrototypeOf(e);
return t.prototype && t.prototype.isReactComponent;
})();
}
-function Ybe(e) {
+function Xbe(e) {
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
}
-function QK(e, t) {
- return e == null ? null : qbe(e) ? /* @__PURE__ */ F.createElement(e, t) : e;
+function eq(e, t) {
+ return e == null ? null : Jbe(e) ? /* @__PURE__ */ F.createElement(e, t) : e;
}
-function Xbe(e) {
+function Zbe(e) {
if ("cell" in e && e.cell) {
let t = e.cell, n = t.column.columnDef, r = t, i = n;
- return r.getIsAggregated?.() ? QK(i.aggregatedCell ?? n.cell, t.getContext()) : r.getIsPlaceholder?.() ? null : QK(n.cell, t.getContext());
+ return r.getIsAggregated?.() ? eq(i.aggregatedCell ?? n.cell, t.getContext()) : r.getIsPlaceholder?.() ? null : eq(n.cell, t.getContext());
}
- return "header" in e && e.header ? QK(e.header.column.columnDef.header, e.header.getContext()) : "footer" in e && e.footer ? QK(e.footer.column.columnDef.footer, e.footer.getContext()) : null;
+ return "header" in e && e.header ? eq(e.header.column.columnDef.header, e.header.getContext()) : "footer" in e && e.footer ? eq(e.footer.column.columnDef.footer, e.footer.getContext()) : null;
}
// node_modules/@tanstack/store/dist/alien.js
/* @__NO_SIDE_EFFECTS__ */
-function Zbe({ update: e, notify: t, unwatched: n }) {
+function Qbe({ update: e, notify: t, unwatched: n }) {
return {
link: r,
unlink: i,
@@ -58341,7 +58400,7 @@ function Zbe({ update: e, notify: t, unwatched: n }) {
}
}
// node_modules/@tanstack/store/dist/atom.js
-function Qbe(e, t, n) {
+function $be(e, t, n) {
let r = typeof e == "object", i = r ? e : void 0;
return {
next: (r ? e.next : e)?.bind(i),
@@ -58349,38 +58408,38 @@ function Qbe(e, t, n) {
complete: (r ? e.complete : n)?.bind(i)
};
}
-var $K = [], eq = 0, { link: tq, unlink: $be, propagate: exe, checkDirty: nq, shallowPropagate: rq } = /* @__PURE__ */ Zbe({
+var tq = [], nq = 0, { link: rq, unlink: exe, propagate: txe, checkDirty: iq, shallowPropagate: aq } = /* @__PURE__ */ Qbe({
update(e) {
return e._update();
},
notify(e) {
- $K[aq++] = e, e.flags &= -3;
+ tq[sq++] = e, e.flags &= -3;
},
unwatched(e) {
- e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = 17, cq(e));
+ e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = 17, uq(e));
}
-}), iq = 0, aq = 0, oq, sq = 0;
-function txe(e) {
+}), oq = 0, sq = 0, cq, lq = 0;
+function nxe(e) {
try {
- ++sq, e();
+ ++lq, e();
} finally {
- --sq || lq();
+ --lq || dq();
}
}
-function cq(e) {
+function uq(e) {
let t = e.depsTail, n = t === void 0 ? e.deps : t.nextDep;
- for (; n !== void 0;) n = $be(n, e);
+ for (; n !== void 0;) n = exe(n, e);
}
-function lq() {
- if (!(sq > 0)) {
- for (; iq < aq;) {
- let e = $K[iq];
- $K[iq++] = void 0, e.notify();
+function dq() {
+ if (!(lq > 0)) {
+ for (; oq < sq;) {
+ let e = tq[oq];
+ tq[oq++] = void 0, e.notify();
}
- iq = 0, aq = 0;
+ oq = 0, sq = 0;
}
}
-function nxe(e, t) {
+function rxe(e, t) {
let n = typeof e == "function", r = e, i = {
_snapshot: n ? void 0 : e,
subs: void 0,
@@ -58389,53 +58448,53 @@ function nxe(e, t) {
depsTail: void 0,
flags: +!n,
get() {
- return oq !== void 0 && tq(i, oq, eq), i._snapshot;
+ return cq !== void 0 && rq(i, cq, nq), i._snapshot;
},
subscribe(e) {
- let t = Qbe(e), n = { current: !1 }, r = rxe(() => {
- i.get(), n.current ? (oq = void 0, t.next?.(i._snapshot)) : n.current = !0;
+ let t = $be(e), n = { current: !1 }, r = ixe(() => {
+ i.get(), n.current ? (cq = void 0, t.next?.(i._snapshot)) : n.current = !0;
});
return { unsubscribe: () => {
r.stop();
} };
},
_update(e) {
- let a = oq, o = t?.compare ?? Object.is;
- if (n) oq = i, ++eq, i.depsTail = void 0;
+ let a = cq, o = t?.compare ?? Object.is;
+ if (n) cq = i, ++nq, i.depsTail = void 0;
else if (e === void 0) return !1;
n && (i.flags = 5);
try {
let t = i._snapshot, a = typeof e == "function" ? e(t) : e === void 0 && n ? r(t) : e;
return t === void 0 || !o(t, a) ? (i._snapshot = a, !0) : !1;
} finally {
- oq = a, n && (i.flags &= -5), cq(i);
+ cq = a, n && (i.flags &= -5), uq(i);
}
}
};
return n ? (i.flags = 17, i.get = function() {
let e = i.flags;
- if (e & 16 || e & 32 && nq(i.deps, i)) {
+ if (e & 16 || e & 32 && iq(i.deps, i)) {
if (i._update()) {
let e = i.subs;
- e !== void 0 && rq(e);
+ e !== void 0 && aq(e);
}
} else e & 32 && (i.flags = e & -33);
- return oq !== void 0 && tq(i, oq, eq), i._snapshot;
+ return cq !== void 0 && rq(i, cq, nq), i._snapshot;
}) : i.set = function(e) {
if (i._update(e)) {
let e = i.subs;
- e !== void 0 && (exe(e), rq(e), lq());
+ e !== void 0 && (txe(e), aq(e), dq());
}
}, i;
}
-function rxe(e) {
+function ixe(e) {
let t = () => {
- let t = oq;
- oq = n, ++eq, n.depsTail = void 0, n.flags = 6;
+ let t = cq;
+ cq = n, ++nq, n.depsTail = void 0, n.flags = 6;
try {
return e();
} finally {
- oq = t, n.flags &= -5, cq(n);
+ cq = t, n.flags &= -5, uq(n);
}
}, n = {
deps: void 0,
@@ -58445,16 +58504,16 @@ function rxe(e) {
flags: 6,
notify() {
let e = this.flags;
- e & 16 || e & 32 && nq(this.deps, this) ? t() : this.flags = 2;
+ e & 16 || e & 32 && iq(this.deps, this) ? t() : this.flags = 2;
},
stop() {
- this.flags = 0, this.depsTail = void 0, cq(this);
+ this.flags = 0, this.depsTail = void 0, uq(this);
}
};
return t(), n;
}
// node_modules/@tanstack/store/dist/shallow.js
-function uq(e, t) {
+function fq(e, t) {
if (Object.is(e, t)) return !0;
if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
if (e instanceof Map && t instanceof Map) {
@@ -58468,17 +58527,17 @@ function uq(e, t) {
return !0;
}
if (e instanceof Date && t instanceof Date) return e.getTime() === t.getTime();
- let n = dq(e);
- if (n.length !== dq(t).length) return !1;
+ let n = pq(e);
+ if (n.length !== pq(t).length) return !1;
for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !Object.is(e[n[r]], t[n[r]])) return !1;
return !0;
}
-function dq(e) {
+function pq(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 ixe = /* @__PURE__ */ o(((e) => {
- var t = A(), n = aw();
+var axe = /* @__PURE__ */ o(((e) => {
+ var t = A(), n = sw();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
}
@@ -58522,33 +58581,33 @@ var ixe = /* @__PURE__ */ o(((e) => {
f.hasValue = !0, f.value = p;
}, [p]), l(p), p;
};
-})), fq = /* @__PURE__ */ o(((e, t) => {
- t.exports = ixe();
-})), axe = fq();
-function oxe(e, t) {
+})), mq = /* @__PURE__ */ o(((e, t) => {
+ t.exports = axe();
+})), oxe = mq();
+function sxe(e, t) {
return e === t;
}
-function pq(e, t = (e) => e, n) {
- let r = n?.compare ?? oxe, i = (0, F.useCallback)((t) => {
+function hq(e, t = (e) => e, n) {
+ let r = n?.compare ?? sxe, i = (0, F.useCallback)((t) => {
let { unsubscribe: n } = e.subscribe(t);
return n;
}, [e]), a = (0, F.useCallback)(() => e.get(), [e]);
- return (0, axe.useSyncExternalStoreWithSelector)(i, a, a, t, r);
+ return (0, oxe.useSyncExternalStoreWithSelector)(i, a, a, t, r);
}
// node_modules/@tanstack/react-table/dist/Subscribe.js
-function sxe(e) {
- let t = pq(e.source, e.selector, { compare: uq });
+function cxe(e) {
+ let t = hq(e.source, e.selector, { compare: fq });
return typeof e.children == "function" ? e.children(t) : e.children;
}
// node_modules/@tanstack/table-core/dist/core/reactivity/coreReactivityFeature.utils.js
-function cxe(e) {
+function lxe(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 lxe(e) {
+function uxe(e) {
let { createAtom: t, batch: n } = e, r = t(0);
return {
createOptionsStore: !1,
@@ -58578,7 +58637,7 @@ function lxe(e) {
}
};
}
-function uxe(e, t = Object.is) {
+function dxe(e, t = Object.is) {
let n = !1, r;
return {
get: e.get,
@@ -58591,28 +58650,28 @@ function uxe(e, t = Object.is) {
};
}
// node_modules/@tanstack/react-table/dist/reactivity.js
-function dxe() {
- return lxe({
- createAtom: nxe,
- batch: txe
+function fxe() {
+ return uxe({
+ createAtom: rxe,
+ batch: nxe
});
}
// node_modules/@tanstack/table-core/dist/utils.js
-function mq(e, t) {
+function gq(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function hq(e) {
- if (Array.isArray(e)) return e.map(hq);
+function _q(e) {
+ if (Array.isArray(e)) return e.map(_q);
if (e && typeof e == "object") {
let t = Object.getPrototypeOf(e);
if (t !== Object.prototype && t !== null) return e;
- let n = t === null ? _q() : {}, r = Object.keys(e);
+ let n = t === null ? yq() : {}, r = Object.keys(e);
for (let t = 0; t < r.length; t++) {
let i = r[t];
Object.defineProperty(n, i, {
configurable: !0,
enumerable: !0,
- value: hq(e[i]),
+ value: _q(e[i]),
writable: !0
});
}
@@ -58620,7 +58679,7 @@ function hq(e) {
}
return e;
}
-function gq(e, t) {
+function vq(e, t) {
let n = Object.keys(t), r = e;
for (let e = 0; e < n.length; e++) {
let i = n[e];
@@ -58628,53 +58687,53 @@ function gq(e, t) {
}
return e;
}
-function _q() {
+function yq() {
return Object.create(null);
}
-function vq(e, t) {
+function bq(e, t) {
return Object.prototype.hasOwnProperty.call(e, t);
}
-function yq(e, t) {
+function xq(e, t) {
return (n) => {
- (t.options.atoms?.[e] ?? t.baseAtoms[e]).set((e) => mq(n, e));
+ (t.options.atoms?.[e] ?? t.baseAtoms[e]).set((e) => gq(n, e));
};
}
-function bq(e) {
+function Sq(e) {
if (typeof e != "object" || !e) return !1;
if (Array.isArray(e)) return !0;
let t = Object.getPrototypeOf(e);
return t === Object.prototype || t === null;
}
-function xq(e) {
+function Cq(e) {
return Reflect.ownKeys(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
}
-var fxe = 3;
-function pxe(e, t) {
- return Sq(e, t, fxe);
+var pxe = 3;
+function mxe(e, t) {
+ return wq(e, t, pxe);
}
-function Sq(e, t, n) {
+function wq(e, t, n) {
if (Object.is(e, t)) return !0;
- if (n <= 0 || !bq(e) || !bq(t) || (Array.isArray(e) || Array.isArray(t)) && (!Array.isArray(e) || !Array.isArray(t) || e.length !== t.length)) return !1;
- let r = xq(e), i = xq(t);
+ if (n <= 0 || !Sq(e) || !Sq(t) || (Array.isArray(e) || Array.isArray(t)) && (!Array.isArray(e) || !Array.isArray(t) || e.length !== t.length)) return !1;
+ let r = Cq(e), i = Cq(t);
if (r.length !== i.length) return !1;
let a = e, o = t;
for (let e = 0; e < r.length; e++) {
let i = r[e];
- if (!Object.prototype.propertyIsEnumerable.call(t, i) || !Sq(a[i], o[i], n - 1)) return !1;
+ if (!Object.prototype.propertyIsEnumerable.call(t, i) || !wq(a[i], o[i], n - 1)) return !1;
}
return !0;
}
-function Cq(e, t, n, r = pxe) {
+function Tq(e, t, n, r = mxe) {
let i = `on${t.charAt(0).toUpperCase()}${t.slice(1)}Change`, a = e.options[i];
a && a((e) => {
- let t = mq(n, e);
+ let t = gq(n, e);
return r(e, t) ? e : t;
});
}
-function mxe(e) {
+function hxe(e) {
return e instanceof Function;
}
-function hxe(e, t) {
+function gxe(e, t) {
let n = [], r = (e) => {
e.forEach((e) => {
n.push(e);
@@ -58684,7 +58743,7 @@ function hxe(e, t) {
};
return r(e), n;
}
-var gxe = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {
+var _xe = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {
let o = [], s;
return (c) => {
i?.();
@@ -58698,23 +58757,23 @@ var gxe = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCo
return n?.(u), u && (o = l, a?.(), s = e(...l ?? []), r?.(s)), s;
};
};
-function wq(e) {
+function Eq(e) {
let t = !1;
return () => {
t ? e() : t = !0;
};
}
-function Tq({ feature: e, fnName: t, objectId: n, onAfterUpdate: r, table: i, ...a }) {
+function Dq({ feature: e, fnName: t, objectId: n, onAfterUpdate: r, table: i, ...a }) {
let o = { onAfterUpdate: r ? () => {
let { schedule: e, untrack: t } = i._reactivity;
e(() => t(() => r()));
} : void 0 };
- return gxe({
+ return _xe({
...a,
...o
});
}
-function Eq(e, t = "_") {
+function Oq(e, t = "_") {
let [n, r] = e.replace(t, " ").split(" ");
return {
fnKey: r,
@@ -58722,10 +58781,10 @@ function Eq(e, t = "_") {
parentName: n
};
}
-function Dq(e, t, n) {
+function kq(e, t, n) {
for (let [r, { fn: i, memoDeps: a }] of Object.entries(n)) {
- let { fnKey: n, fnName: o } = Eq(r);
- t[n] = a ? Tq({
+ let { fnKey: n, fnName: o } = Oq(r);
+ t[n] = a ? Dq({
memoDeps: a,
fn: i,
fnName: o,
@@ -58734,15 +58793,15 @@ function Dq(e, t, n) {
}) : i;
}
}
-function Oq(e, t, n, r) {
+function Aq(e, t, n, r) {
for (let [i, { fn: a, memoDeps: o }] of Object.entries(r)) {
- let { fnKey: r, fnName: s } = Eq(i);
+ let { fnKey: r, fnName: s } = Oq(i);
if (o) {
let i = `_memo_${r}`;
t[r] = function(...t) {
if (!this[i]) {
let t = this;
- this[i] = Tq({
+ this[i] = Dq({
memoDeps: (e) => o(t, e),
fn: (...e) => a(t, ...e),
fnName: s,
@@ -58758,17 +58817,17 @@ function Oq(e, t, n, r) {
};
}
}
-function kq(e, t, n, ...r) {
+function jq(e, t, n, ...r) {
return e[t]?.(...r) ?? n(e, ...r);
}
// node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.utils.js
-function _xe(e) {
+function vxe(e) {
return e.row.getValue(e.column.id);
}
-function vxe(e) {
+function yxe(e) {
return e.getValue() ?? e.table.options.renderFallbackValue;
}
-function yxe(e) {
+function bxe(e) {
return {
table: e.table,
column: e.column,
@@ -58779,18 +58838,18 @@ function yxe(e) {
};
}
// node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.js
-var bxe = { assignCellPrototype: (e, t) => {
- Oq("coreCellsFeature", e, t, {
- cell_getValue: { fn: (e) => _xe(e) },
- cell_renderValue: { fn: (e) => vxe(e) },
+var xxe = { assignCellPrototype: (e, t) => {
+ Aq("coreCellsFeature", e, t, {
+ cell_getValue: { fn: (e) => vxe(e) },
+ cell_renderValue: { fn: (e) => yxe(e) },
cell_getContext: {
- fn: (e) => yxe(e),
+ fn: (e) => bxe(e),
memoDeps: (e) => [e]
}
});
} };
// node_modules/@tanstack/table-core/dist/core/columns/constructColumn.js
-function xxe(e) {
+function Sxe(e) {
if (!e._columnPrototype) {
e._columnPrototype = { table: e };
let t = Object.values(e._features);
@@ -58798,7 +58857,7 @@ function xxe(e) {
}
return e._columnPrototype;
}
-function Sxe(e, t, n, r) {
+function Cxe(e, t, n, r) {
let i = {
...e.getDefaultColumnDef(),
...t
@@ -58818,53 +58877,53 @@ function Sxe(e, t, n, r) {
} else c = (e) => e[i.accessorKey];
}
if (!s) throw Error();
- let l = xxe(e), u = Object.create(l);
+ let l = Sxe(e), u = Object.create(l);
u.accessorFn = c, u.columnDef = i, u.columns = [], u.depth = n, u.id = `${String(s)}`, u.parent = r;
let d = e._columnInstanceInitFns;
for (let e = 0; e < d.length; e++) d[e](u);
return u;
}
// node_modules/@tanstack/table-core/dist/core/featureStubs.js
-function Aq(e) {
+function Mq(e) {
return e.getIsVisible?.() ?? !0;
}
-function Cxe(e) {
+function wxe(e) {
return e.getVisibleLeafColumns?.() ?? e.getAllLeafColumns();
}
-function jq(e, t) {
+function Nq(e, t) {
let n = e, r = t;
return n.getOrderColumnsFn?.()(r) ?? n._orderGroupedColumns?.(r) ?? t;
}
-function Mq(e, t, n, r) {
+function Pq(e, t, n, r) {
return e._orderByColumnPinning?.(t, n, r) ?? t;
}
-function Nq(e, t) {
+function Fq(e, t) {
return e._expandRows?.(t) ?? t;
}
-function wxe(e) {
+function Txe(e) {
e.autoResetExpanded?.();
}
-function Pq(e) {
+function Iq(e) {
e.autoResetPageIndex?.();
}
-function Txe(e) {
+function Exe(e) {
e.autoResetSorting?.();
}
-function Exe(e) {
+function Dxe(e) {
e.autoResetCellSelection?.();
}
// node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.utils.js
-function Dxe(e) {
+function Oxe(e) {
return [e, ...e.columns.flatMap((e) => e.getFlatColumns())];
}
-function Oxe(e) {
+function kxe(e) {
if (e.columns.length) {
let t = e.columns.flatMap((e) => e.getLeafColumns());
- return jq(e.table, t);
+ return Nq(e.table, t);
}
return [e];
}
-function kxe(e) {
+function Axe(e) {
return {
header: (e) => {
let t = e.header.column.columnDef;
@@ -58875,53 +58934,53 @@ function kxe(e) {
...e.options.defaultColumn
};
}
-function Fq(e, t, n, r = 0) {
+function Lq(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 = Sxe(e, o, r, n), c = o;
- s.columns = c.columns ? Fq(e, c.columns, s, r + 1) : [], i[a] = s;
+ let o = t[a], s = Cxe(e, o, r, n), c = o;
+ s.columns = c.columns ? Lq(e, c.columns, s, r + 1) : [], i[a] = s;
}
return i;
}
-function Axe(e) {
- return Fq(e, e.options.columns);
-}
function jxe(e) {
- return e.getAllColumns().flatMap((e) => e.getFlatColumns());
+ return Lq(e, e.options.columns);
}
function Mxe(e) {
- let t = _q(), n = e.getAllFlatColumns();
+ return e.getAllColumns().flatMap((e) => e.getFlatColumns());
+}
+function Nxe(e) {
+ let t = yq(), n = e.getAllFlatColumns();
for (let e = 0; e < n.length; e++) {
let r = n[e];
t[r.id] = r;
}
return t;
}
-function Nxe(e) {
- return jq(e, e.getAllColumns().flatMap((e) => e.getLeafColumns()));
-}
function Pxe(e) {
- let t = _q(), n = e.getAllLeafColumns();
+ return Nq(e, e.getAllColumns().flatMap((e) => e.getLeafColumns()));
+}
+function Fxe(e) {
+ let t = yq(), n = e.getAllLeafColumns();
for (let e = 0; e < n.length; e++) {
let r = n[e];
t[r.id] = r;
}
return t;
}
-function Fxe(e, t) {
+function Ixe(e, t) {
return e.getAllFlatColumnsById()[t];
}
// node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.js
-var Ixe = {
+var Lxe = {
assignColumnPrototype: (e, t) => {
- Oq("coreColumnsFeature", e, t, {
+ Aq("coreColumnsFeature", e, t, {
column_getFlatColumns: {
- fn: (e) => Dxe(e),
+ fn: (e) => Oxe(e),
memoDeps: (e) => [e.table.options.columns]
},
column_getLeafColumns: {
- fn: (e) => Oxe(e),
+ fn: (e) => kxe(e),
memoDeps: (e) => [
e.table.atoms.columnOrder?.get(),
e.table.atoms.grouping?.get(),
@@ -58932,25 +58991,25 @@ var Ixe = {
});
},
constructTableAPIs: (e) => {
- Dq("coreColumnsFeature", e, {
+ kq("coreColumnsFeature", e, {
table_getDefaultColumnDef: {
- fn: () => kxe(e),
+ fn: () => Axe(e),
memoDeps: () => [e.options.defaultColumn]
},
table_getAllColumns: {
- fn: () => Axe(e),
+ fn: () => jxe(e),
memoDeps: () => [e.options.columns]
},
table_getAllFlatColumns: {
- fn: () => jxe(e),
+ fn: () => Mxe(e),
memoDeps: () => [e.options.columns]
},
table_getAllFlatColumnsById: {
- fn: () => Mxe(e),
+ fn: () => Nxe(e),
memoDeps: () => [e.options.columns]
},
table_getAllLeafColumns: {
- fn: () => Nxe(e),
+ fn: () => Pxe(e),
memoDeps: () => [
e.atoms.columnOrder?.get(),
e.atoms.grouping?.get(),
@@ -58959,15 +59018,15 @@ var Ixe = {
]
},
table_getAllLeafColumnsById: {
- fn: () => Pxe(e),
+ fn: () => Fxe(e),
memoDeps: () => [e.getAllLeafColumns()]
},
- table_getColumn: { fn: (t) => Fxe(e, t) }
+ table_getColumn: { fn: (t) => Ixe(e, t) }
});
}
};
// node_modules/@tanstack/table-core/dist/core/headers/constructHeader.js
-function Lxe(e) {
+function Rxe(e) {
if (!e._headerPrototype) {
e._headerPrototype = { table: e };
let t = Object.values(e._features);
@@ -58975,38 +59034,38 @@ function Lxe(e) {
}
return e._headerPrototype;
}
-function Iq(e, t, n) {
- let r = Lxe(e), i = Object.create(r);
+function Rq(e, t, n) {
+ let r = Rxe(e), i = Object.create(r);
i.colSpan = 0, i.column = t, i.depth = n.depth, i.headerGroup = null, i.id = n.id ?? t.id, i.index = n.index, i.isPlaceholder = !!n.isPlaceholder, i.placeholderId = n.placeholderId, i.rowSpan = 0, i.subHeaders = [];
let a = e._headerInstanceInitFns;
for (let e = 0; e < a.length; e++) a[e](i);
return i;
}
// node_modules/@tanstack/table-core/dist/core/headers/buildHeaderGroups.js
-function Lq(e, t = 1) {
+function zq(e, t = 1) {
let n = t;
for (let r = 0; r < e.length; r++) {
let i = e[r];
- Aq(i) && i.columns.length && (n = Math.max(n, Lq(i.columns, t + 1)));
+ Mq(i) && i.columns.length && (n = Math.max(n, zq(i.columns, t + 1)));
}
return n;
}
-function Rxe(e, t) {
+function zxe(e, t) {
return e ? `${e}_${t}` : String(t);
}
-function zxe(e, t, n, r) {
+function Bxe(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 Bxe(e, t) {
+function Vxe(e, t) {
let n = 0;
for (let r = 0; r < e.length; r++) e[r].column === t && n++;
return n;
}
-function Rq(e, t, n, r, i, a) {
+function Bq(e, t, n, r, i, a) {
let o = {
depth: t,
- id: Rxe(r, t),
+ id: zxe(r, t),
headers: []
}, s = [];
for (let i = 0; i < e.length; i++) {
@@ -59014,10 +59073,10 @@ function Rq(e, t, n, r, i, a) {
let a = e[i], c = s[s.length - 1], l = a.column.depth === o.depth, u, d = !1;
if (l && a.column.parent ? u = a.column.parent : (u = a.column, d = !0), c && c.column === u) c.subHeaders.push(a);
else {
- let e = Iq(n, u, {
- id: zxe(r, t, u.id, a.id),
+ let e = Rq(n, u, {
+ id: Bxe(r, t, u.id, a.id),
isPlaceholder: d,
- placeholderId: d ? String(Bxe(s, u)) : void 0,
+ placeholderId: d ? String(Vxe(s, u)) : void 0,
depth: t,
index: s.length
});
@@ -59026,18 +59085,18 @@ function Rq(e, t, n, r, i, a) {
o.headers.push(a), a.headerGroup = o;
}
for (let e = 0; e < a.length; e++) a[e](o);
- i.push(o), t > 0 && Rq(s, t - 1, n, r, i, a);
+ i.push(o), t > 0 && Bq(s, t - 1, n, r, i, a);
}
-function zq(e) {
+function Vq(e) {
for (let t = 0; t < e.length; t++) {
let n = e[t];
- if (!Aq(n.column)) continue;
+ if (!Mq(n.column)) continue;
let r = 0;
if (n.subHeaders.length) {
- zq(n.subHeaders);
+ Vq(n.subHeaders);
for (let e = 0; e < n.subHeaders.length; e++) {
let t = n.subHeaders[e];
- Aq(t.column) && (r += t.colSpan);
+ Mq(t.column) && (r += t.colSpan);
}
} else r = 1;
if (n.colSpan = r, n.isPlaceholder && n.subHeaders.length === 1 && n.subHeaders[0].column === n.column) {
@@ -59047,37 +59106,37 @@ function zq(e) {
} else n.rowSpan = 1;
}
}
-function Vxe(e, t, n, r) {
- let i = Lq(e), a = [], o = n._headerGroupInstanceInitFns, s = Array(t.length);
- for (let e = 0; e < t.length; e++) e in t && (s[e] = Iq(n, t[e], {
+function Hxe(e, t, n, r) {
+ let i = zq(e), a = [], o = n._headerGroupInstanceInitFns, s = Array(t.length);
+ for (let e = 0; e < t.length; e++) e in t && (s[e] = Rq(n, t[e], {
depth: i,
index: e
}));
- return Rq(s, i - 1, n, r, a, o), a.reverse(), zq(a[0]?.headers ?? []), a;
+ return Bq(s, i - 1, n, r, a, o), a.reverse(), Vq(a[0]?.headers ?? []), a;
}
// node_modules/@tanstack/table-core/dist/core/headers/coreHeadersFeature.utils.js
-function Bq(e, t) {
- for (let n = 0; n < e.subHeaders.length; n++) Bq(e.subHeaders[n], t);
+function Hq(e, t) {
+ for (let n = 0; n < e.subHeaders.length; n++) Hq(e.subHeaders[n], t);
t.push(e);
}
-function Hxe(e) {
+function Uxe(e) {
let t = [];
- return Bq(e, t), t;
+ return Hq(e, t), t;
}
-function Uxe(e) {
+function Wxe(e) {
return {
column: e.column,
header: e,
table: e.column.table
};
}
-function Wxe(e) {
- return Vxe(e.getAllColumns(), Mq(e, Cxe(e), (e) => e.id), e);
-}
function Gxe(e) {
- return [...e.getHeaderGroups()].reverse();
+ return Hxe(e.getAllColumns(), Pq(e, wxe(e), (e) => e.id), e);
}
function Kxe(e) {
+ return [...e.getHeaderGroups()].reverse();
+}
+function qxe(e) {
let t = e.getHeaderGroups(), n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e].headers;
@@ -59085,7 +59144,7 @@ function Kxe(e) {
}
return n;
}
-function qxe(e) {
+function Jxe(e) {
let t = e.getHeaderGroups()[0]?.headers ?? [], n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e].getLeafHeaders();
@@ -59094,23 +59153,23 @@ function qxe(e) {
return n;
}
// node_modules/@tanstack/table-core/dist/core/headers/coreHeadersFeature.js
-var Jxe = {
+var Yxe = {
assignHeaderPrototype: (e, t) => {
- Oq("coreHeadersFeature", e, t, {
+ Aq("coreHeadersFeature", e, t, {
header_getLeafHeaders: {
- fn: (e) => Hxe(e),
+ fn: (e) => Uxe(e),
memoDeps: (e) => [e.column.table.options.columns]
},
header_getContext: {
- fn: (e) => Uxe(e),
+ fn: (e) => Wxe(e),
memoDeps: (e) => [e.column.table.options.columns]
}
});
},
constructTableAPIs: (e) => {
- Dq("coreHeadersFeature", e, {
+ kq("coreHeadersFeature", e, {
table_getHeaderGroups: {
- fn: () => Wxe(e),
+ fn: () => Gxe(e),
memoDeps: () => [
e.options.columns,
e.atoms.columnOrder?.get(),
@@ -59121,22 +59180,22 @@ var Jxe = {
]
},
table_getFooterGroups: {
- fn: () => Gxe(e),
+ fn: () => Kxe(e),
memoDeps: () => [e.getHeaderGroups()]
},
table_getFlatHeaders: {
- fn: () => Kxe(e),
+ fn: () => qxe(e),
memoDeps: () => [e.getHeaderGroups()]
},
table_getLeafHeaders: {
- fn: () => qxe(e),
+ fn: () => Jxe(e),
memoDeps: () => [e.getHeaderGroups()]
}
});
}
};
// node_modules/@tanstack/table-core/dist/core/rows/constructRow.js
-function Yxe(e) {
+function Xxe(e) {
if (!e._rowPrototype) {
e._rowPrototype = { table: e };
let t = Object.values(e._features);
@@ -59144,98 +59203,98 @@ function Yxe(e) {
}
return e._rowPrototype;
}
-var Xxe = (e, t, n, r, i, a, o) => {
- let s = Yxe(e), c = Object.create(s);
- c._displayIndexCache = -1, c._uniqueValuesCache = _q(), c._valuesCache = _q(), c.depth = i, c.id = t, c.index = r, c.original = n, c.parentId = o, c.subRows = a ?? [];
+var Zxe = (e, t, n, r, i, a, o) => {
+ let s = Xxe(e), c = Object.create(s);
+ c._displayIndexCache = -1, c._uniqueValuesCache = yq(), c._valuesCache = yq(), 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 Zxe() {
- return (e) => Tq({
+function Qxe() {
+ return (e) => Dq({
feature: "coreRowModelsFeature",
table: e,
fnName: "table.getCoreRowModel",
memoDeps: () => [e.options.data],
- fn: () => Qxe(e, e.options.data),
- onAfterUpdate: wq(() => {
- wxe(e), Pq(e), Txe(e), Exe(e);
+ fn: () => $xe(e, e.options.data),
+ onAfterUpdate: Eq(() => {
+ Txe(e), Iq(e), Exe(e), Dxe(e);
})
});
}
-function Vq(e, t, n, r = 0, i) {
+function Uq(e, t, n, r = 0, i) {
let a = [];
for (let o = 0; o < n.length; o++) {
- let s = n[o], c = Xxe(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 = Vq(e, t, c.originalSubRows, r + 1, c)));
+ let s = n[o], c = Zxe(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 = Uq(e, t, c.originalSubRows, r + 1, c)));
}
return a;
}
-function Qxe(e, t) {
+function $xe(e, t) {
let n = {
rows: [],
flatRows: [],
- rowsById: _q()
+ rowsById: yq()
};
- return n.rows = Vq(e, n, t), n;
+ return n.rows = Uq(e, n, t), n;
}
// node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.utils.js
-function $xe(e) {
- return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = e.options.features.coreRowModel?.(e) ?? Zxe()(e)), e._rowModels.coreRowModel();
-}
function eSe(e) {
- return e.getCoreRowModel();
+ return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = e.options.features.coreRowModel?.(e) ?? Qxe()(e)), e._rowModels.coreRowModel();
}
function tSe(e) {
- return e._rowModels.filteredRowModel || (e._rowModels.filteredRowModel = e.options.features.filteredRowModel?.(e)), e.options.manualFiltering || !e._rowModels.filteredRowModel ? e.getPreFilteredRowModel() : e._rowModels.filteredRowModel();
+ return e.getCoreRowModel();
}
function nSe(e) {
- return e.getFilteredRowModel();
+ return e._rowModels.filteredRowModel || (e._rowModels.filteredRowModel = e.options.features.filteredRowModel?.(e)), e.options.manualFiltering || !e._rowModels.filteredRowModel ? e.getPreFilteredRowModel() : e._rowModels.filteredRowModel();
}
function rSe(e) {
- return e._rowModels.groupedRowModel || (e._rowModels.groupedRowModel = e.options.features.groupedRowModel?.(e)), e.options.manualGrouping || !e._rowModels.groupedRowModel ? e.getPreGroupedRowModel() : e._rowModels.groupedRowModel();
+ return e.getFilteredRowModel();
}
function iSe(e) {
- return e.getGroupedRowModel();
+ return e._rowModels.groupedRowModel || (e._rowModels.groupedRowModel = e.options.features.groupedRowModel?.(e)), e.options.manualGrouping || !e._rowModels.groupedRowModel ? e.getPreGroupedRowModel() : e._rowModels.groupedRowModel();
}
function aSe(e) {
- return e._rowModels.sortedRowModel || (e._rowModels.sortedRowModel = e.options.features.sortedRowModel?.(e)), e.options.manualSorting || !e._rowModels.sortedRowModel ? e.getPreSortedRowModel() : e._rowModels.sortedRowModel();
+ return e.getGroupedRowModel();
}
function oSe(e) {
- return e.getSortedRowModel();
+ return e._rowModels.sortedRowModel || (e._rowModels.sortedRowModel = e.options.features.sortedRowModel?.(e)), e.options.manualSorting || !e._rowModels.sortedRowModel ? e.getPreSortedRowModel() : e._rowModels.sortedRowModel();
}
function sSe(e) {
- return e._rowModels.expandedRowModel || (e._rowModels.expandedRowModel = e.options.features.expandedRowModel?.(e)), e.options.manualExpanding || !e._rowModels.expandedRowModel ? e.getPreExpandedRowModel() : e._rowModels.expandedRowModel();
+ return e.getSortedRowModel();
}
function cSe(e) {
- return e.getExpandedRowModel();
+ return e._rowModels.expandedRowModel || (e._rowModels.expandedRowModel = e.options.features.expandedRowModel?.(e)), e.options.manualExpanding || !e._rowModels.expandedRowModel ? e.getPreExpandedRowModel() : e._rowModels.expandedRowModel();
}
function lSe(e) {
- return e._rowModels.paginatedRowModel || (e._rowModels.paginatedRowModel = e.options.features.paginatedRowModel?.(e)), e.options.manualPagination || !e._rowModels.paginatedRowModel ? e.getPrePaginatedRowModel() : e._rowModels.paginatedRowModel();
+ return e.getExpandedRowModel();
}
function uSe(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 dSe(e) {
return e.getPaginatedRowModel();
}
// node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.js
-var dSe = { constructTableAPIs: (e) => {
- Dq("coreRowModelsFeature", e, {
- table_getCoreRowModel: { fn: () => $xe(e) },
- table_getPreFilteredRowModel: { fn: () => eSe(e) },
- table_getFilteredRowModel: { fn: () => tSe(e) },
- table_getPreGroupedRowModel: { fn: () => nSe(e) },
- table_getGroupedRowModel: { fn: () => rSe(e) },
- table_getPreSortedRowModel: { fn: () => iSe(e) },
- table_getSortedRowModel: { fn: () => aSe(e) },
- table_getPreExpandedRowModel: { fn: () => oSe(e) },
- table_getExpandedRowModel: { fn: () => sSe(e) },
- table_getPrePaginatedRowModel: { fn: () => cSe(e) },
- table_getPaginatedRowModel: { fn: () => lSe(e) },
- table_getRowModel: { fn: () => uSe(e) }
+var fSe = { constructTableAPIs: (e) => {
+ kq("coreRowModelsFeature", e, {
+ table_getCoreRowModel: { fn: () => eSe(e) },
+ table_getPreFilteredRowModel: { fn: () => tSe(e) },
+ table_getFilteredRowModel: { fn: () => nSe(e) },
+ table_getPreGroupedRowModel: { fn: () => rSe(e) },
+ table_getGroupedRowModel: { fn: () => iSe(e) },
+ table_getPreSortedRowModel: { fn: () => aSe(e) },
+ table_getSortedRowModel: { fn: () => oSe(e) },
+ table_getPreExpandedRowModel: { fn: () => sSe(e) },
+ table_getExpandedRowModel: { fn: () => cSe(e) },
+ table_getPrePaginatedRowModel: { fn: () => lSe(e) },
+ table_getPaginatedRowModel: { fn: () => uSe(e) },
+ table_getRowModel: { fn: () => dSe(e) }
});
} };
// node_modules/@tanstack/table-core/dist/core/cells/constructCell.js
-function fSe(e) {
+function pSe(e) {
if (!e._cellPrototype) {
e._cellPrototype = { table: e };
let t = Object.values(e._features);
@@ -59243,48 +59302,48 @@ function fSe(e) {
}
return e._cellPrototype;
}
-function pSe(e, t, n) {
- let r = fSe(n), i = Object.create(r);
+function mSe(e, t, n) {
+ let r = pSe(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 mSe(e) {
+function hSe(e) {
let t = e.table.getRowsInDisplayOrder(), n = e._displayIndexCache;
return t[n] === e ? n : -1;
}
-function hSe(e) {
- let t = e.getPrePaginatedRowModel(), n = e.options.paginateExpandedRows === !1 ? Nq(e, t).rows : t.rows;
+function gSe(e) {
+ let t = e.getPrePaginatedRowModel(), n = e.options.paginateExpandedRows === !1 ? Fq(e, t).rows : t.rows;
for (let e = 0; e < n.length; e++) n[e]._displayIndexCache = e;
return n;
}
-function gSe(e, t) {
- if (vq(e._valuesCache, t)) return e._valuesCache[t];
+function _Se(e, t) {
+ if (bq(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 _Se(e, t) {
- if (vq(e._uniqueValuesCache, t)) return e._uniqueValuesCache[t];
+function vSe(e, t) {
+ if (bq(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 vSe(e, t) {
+function ySe(e, t) {
return e.getValue(t) ?? e.table.options.renderFallbackValue;
}
-function ySe(e) {
- return hxe(e.subRows, (e) => e.subRows);
-}
function bSe(e) {
+ return gxe(e.subRows, (e) => e.subRows);
+}
+function xSe(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 xSe(e) {
+function SSe(e) {
if (e.parentId) return e.table.getCoreRowModel().rowsById[e.parentId] ?? e.table.getRow(e.parentId, !0);
}
-function SSe(e) {
+function CSe(e) {
let t = [], n = e;
for (;;) {
let e = n.getParentRow();
@@ -59293,77 +59352,77 @@ function SSe(e) {
}
return t.reverse();
}
-function CSe(e) {
+function wSe(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 = pSe(a, e, e.table), n.set(a, o)), r[i] = o;
+ o || (o = mSe(a, e, e.table), n.set(a, o)), r[i] = o;
}
return r;
}
-function wSe(e) {
- let t = _q(), n = e.getAllCells();
+function TSe(e) {
+ let t = yq(), n = e.getAllCells();
for (let e = 0; e < n.length; e++) {
let r = n[e];
t[r.column.id] = r;
}
return t;
}
-function TSe(e, t, n, r) {
+function ESe(e, t, n, r) {
return t.options.getRowId?.(e, n, r) ?? (r ? `${r.id}.${n}` : String(n));
}
-function ESe(e, t, n) {
+function DSe(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 DSe = {
+var OSe = {
assignRowPrototype: (e, t) => {
- Oq("coreRowsFeature", e, t, {
- row_getDisplayIndex: { fn: (e) => mSe(e) },
+ Aq("coreRowsFeature", e, t, {
+ row_getDisplayIndex: { fn: (e) => hSe(e) },
row_getAllCellsByColumnId: {
- fn: (e) => wSe(e),
+ fn: (e) => TSe(e),
memoDeps: (e) => [e.getAllCells()]
},
row_getAllCells: {
- fn: (e) => CSe(e),
+ fn: (e) => wSe(e),
memoDeps: (e) => [e.table.getAllLeafColumns()]
},
row_getLeafRows: {
- fn: (e) => ySe(e),
+ fn: (e) => bSe(e),
memoDeps: (e) => [e.subRows]
},
- row_getParentRow: { fn: (e) => xSe(e) },
- row_getParentRows: { fn: (e) => SSe(e) },
- row_getUniqueValues: { fn: (e, t) => _Se(e, t) },
- row_getValue: { fn: (e, t) => gSe(e, t) },
- row_renderValue: { fn: (e, t) => vSe(e, t) }
+ row_getParentRow: { fn: (e) => SSe(e) },
+ row_getParentRows: { fn: (e) => CSe(e) },
+ row_getUniqueValues: { fn: (e, t) => vSe(e, t) },
+ row_getValue: { fn: (e, t) => _Se(e, t) },
+ row_renderValue: { fn: (e, t) => ySe(e, t) }
});
},
constructTableAPIs: (e) => {
- Dq("coreRowsFeature", e, {
+ kq("coreRowsFeature", e, {
table_getRowsInDisplayOrder: {
- fn: () => hSe(e),
+ fn: () => gSe(e),
memoDeps: () => [
e.getPrePaginatedRowModel().rows,
e.options.paginateExpandedRows,
e.options.paginateExpandedRows === !1 ? e.atoms.expanded?.get() : void 0
]
},
- table_getRowId: { fn: (t, n, r) => TSe(t, e, n, r) },
- table_getRow: { fn: (t, n) => ESe(e, t, n) },
+ table_getRowId: { fn: (t, n, r) => ESe(t, e, n, r) },
+ table_getRow: { fn: (t, n) => DSe(e, t, n) },
table_getMaxSubRowDepth: {
- fn: () => bSe(e),
+ fn: () => xSe(e),
memoDeps: () => [e.getCoreRowModel()]
}
});
}
};
// node_modules/@tanstack/table-core/dist/core/table/coreTablesFeature.utils.js
-function Hq(e, t, n = (e, t) => e === t) {
+function Wq(e, t, n = (e, t) => e === t) {
let r = t === void 0 ? e.options.state : t;
e._reactivity.batch(() => {
if (r) for (let t in r) {
@@ -59374,13 +59433,13 @@ function Hq(e, t, n = (e, t) => e === t) {
}
});
}
-function Uq(e, t, n = (e, t) => e === t) {
+function Gq(e, t, n = (e, t) => e === t) {
e._reactivity.batch(() => {
- Hq(e, t, n), e._reactivity.commit?.();
+ Wq(e, t, n), e._reactivity.commit?.();
});
}
-function OSe(e) {
- let t = hq(e.initialState);
+function kSe(e) {
+ let t = _q(e.initialState);
e._reactivity.batch(() => {
let n = Object.keys(t);
for (let r = 0; r < n.length; r++) {
@@ -59391,7 +59450,7 @@ function OSe(e) {
let n = Object.values(e._features);
for (let t = 0; t < n.length; t++) n[t].resetTableInstanceData?.(e);
}
-function kSe(e, t) {
+function ASe(e, t) {
let { features: n, atoms: r, initialState: i } = e.options;
if (!e.options.mergeOptions) return {
...e.options,
@@ -59423,26 +59482,26 @@ function kSe(e, t) {
}
});
}
-function Wq(e, t, n) {
- let r = kSe(e, mq(t, e.options));
- e.optionsStore ? e.optionsStore.set(() => r) : e.options = r, n?.syncExternalState !== !1 && Uq(e, r.state ?? null);
+function Kq(e, t, n) {
+ let r = ASe(e, gq(t, e.options));
+ e.optionsStore ? e.optionsStore.set(() => r) : e.options = r, n?.syncExternalState !== !1 && Gq(e, r.state ?? null);
}
// node_modules/@tanstack/table-core/dist/core/coreFeatures.js
-var ASe = {
- coreCellsFeature: bxe,
- coreColumnsFeature: Ixe,
- coreHeadersFeature: Jxe,
- coreRowModelsFeature: dSe,
- coreRowsFeature: DSe,
+var jSe = {
+ coreCellsFeature: xxe,
+ coreColumnsFeature: Lxe,
+ coreHeadersFeature: Yxe,
+ coreRowModelsFeature: fSe,
+ coreRowsFeature: OSe,
coreTablesFeature: { constructTableAPIs: (e) => {
- Dq("coreTablesFeature", e, {
- table_reset: { fn: () => OSe(e) },
- table_setOptions: { fn: (t) => Wq(e, t) }
+ kq("coreTablesFeature", e, {
+ table_reset: { fn: () => kSe(e) },
+ table_setOptions: { fn: (t) => Kq(e, t) }
});
} }
};
// node_modules/@tanstack/table-core/dist/helpers/columnHelper.js
-function Gq() {
+function qq() {
return {
accessor: (e, t) => typeof e == "function" ? {
...t,
@@ -59457,21 +59516,21 @@ function Gq() {
};
}
// node_modules/@tanstack/table-core/dist/helpers/tableFeatures.js
-function Kq(e) {
+function Jq(e) {
return e;
}
// node_modules/@tanstack/table-core/dist/core/table/constructTable.js
-function jSe(e, t = {}) {
+function MSe(e, t = {}) {
return Object.values(e).forEach((e) => {
t = e.getInitialState?.(t) ?? t;
- }), hq(t);
+ }), _q(t);
}
-function MSe(e) {
+function NSe(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: {
- ...ASe,
+ ...jSe,
..._
},
_headerGroupInstanceInitFns: [],
@@ -59509,7 +59568,7 @@ function MSe(e) {
set(e) {
v.optionsStore.set(() => e);
}
- })) : v.options = b, v.initialState = jSe(v._features, v.options.initialState);
+ })) : v.options = b, v.initialState = MSe(v._features, v.options.initialState);
let x = Object.keys(v.initialState);
for (let e = 0; e < x.length; e++) {
let n = x[e];
@@ -59517,14 +59576,14 @@ function MSe(e) {
let e = v.options, t = e.atoms?.[n], r = t ? t.get() : v.baseAtoms[n].get();
if (t) return r;
let i = e.state;
- if (i && vq(i, n)) {
+ if (i && bq(i, n)) {
let e = i[n];
return e === void 0 ? v.initialState[n] : e;
}
return r;
}, { debugName: `table/atoms/${n}` });
}
- Hq(v), v.store = cxe(t.createReadonlyAtom(() => {
+ Wq(v), v.store = lxe(t.createReadonlyAtom(() => {
let e = {};
for (let t = 0; t < x.length; t++) {
let n = x[t];
@@ -59532,7 +59591,7 @@ function MSe(e) {
}
return e;
}, {
- compare: uq,
+ compare: fq,
debugName: "table/store"
}));
for (let e = 0; e < y.length; e++) {
@@ -59542,107 +59601,107 @@ function MSe(e) {
return v;
}
// node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.utils.js
-function NSe() {
- return _q();
+function PSe() {
+ return yq();
}
-function qq(e, t) {
- Yq(e) && Zq(e.table, (n) => {
- let r = Object.assign(_q(), n), i = t ?? !kq(e, "getIsVisible", Jq), a = e.getLeafColumns();
+function Yq(e, t) {
+ Zq(e) && $q(e.table, (n) => {
+ let r = Object.assign(yq(), n), i = t ?? !jq(e, "getIsVisible", Xq), a = e.getLeafColumns();
for (let e = 0; e < a.length; e++) {
let t = a[e];
- Yq(t) && (r[t.id] = i);
+ Zq(t) && (r[t.id] = i);
}
return r;
});
}
-function Jq(e) {
+function Xq(e) {
let t = e.table.atoms.columnVisibility?.get();
if (!t) return !0;
let n = e.columns;
- return n.length ? n.some((e) => kq(e, "getIsVisible", Jq)) : (vq(t, e.id) ? t[e.id] : void 0) ?? !0;
+ return n.length ? n.some((e) => jq(e, "getIsVisible", Xq)) : (bq(t, e.id) ? t[e.id] : void 0) ?? !0;
}
-function Yq(e) {
+function Zq(e) {
return (e.columnDef.enableHiding ?? !0) && (e.table.options.enableHiding ?? !0);
}
-function PSe(e) {
+function FSe(e) {
return (t) => {
- qq(e, t.target.checked);
+ Yq(e, t.target.checked);
};
}
-function FSe(e) {
+function ISe(e) {
let t = e.getAllCells(), n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e];
- kq(r.column, "getIsVisible", Jq) && n.push(r);
+ jq(r.column, "getIsVisible", Xq) && n.push(r);
}
- return Mq(e.table, n, (e) => e.column.id, () => kq(e, "getVisibleCellsByColumnId", Xq));
+ return Pq(e.table, n, (e) => e.column.id, () => jq(e, "getVisibleCellsByColumnId", Qq));
}
-function Xq(e) {
- let t = _q(), n = e.getAllCells();
+function Qq(e) {
+ let t = yq(), n = e.getAllCells();
for (let e = 0; e < n.length; e++) {
let r = n[e];
- kq(r.column, "getIsVisible", Jq) && (t[r.column.id] = r);
+ jq(r.column, "getIsVisible", Xq) && (t[r.column.id] = r);
}
return t;
}
-function ISe(e) {
- return e.getAllFlatColumns().filter((e) => kq(e, "getIsVisible", Jq));
-}
function LSe(e) {
- return e.getAllLeafColumns().filter((e) => kq(e, "getIsVisible", Jq));
+ return e.getAllFlatColumns().filter((e) => jq(e, "getIsVisible", Xq));
}
-function Zq(e, t) {
- Cq(e, "columnVisibility", t);
+function RSe(e) {
+ return e.getAllLeafColumns().filter((e) => jq(e, "getIsVisible", Xq));
}
-function RSe(e, t) {
- Zq(e, t ? _q() : Object.assign(_q(), hq(e.initialState.columnVisibility ?? {})));
+function $q(e, t) {
+ Tq(e, "columnVisibility", t);
}
-function Qq(e, t) {
- t ??= !$q(e);
- let n = _q(), r = e.getAllLeafColumns();
+function zSe(e, t) {
+ $q(e, t ? yq() : Object.assign(yq(), _q(e.initialState.columnVisibility ?? {})));
+}
+function eJ(e, t) {
+ t ??= !tJ(e);
+ let n = yq(), r = e.getAllLeafColumns();
for (let e = 0; e < r.length; e++) {
let i = r[e];
- n[i.id] = t || !Yq(i);
+ n[i.id] = t || !Zq(i);
}
- Zq(e, n);
-}
-function $q(e) {
- return !e.getAllLeafColumns().some((e) => !kq(e, "getIsVisible", Jq));
+ $q(e, n);
}
-function zSe(e) {
- return e.getAllLeafColumns().some((e) => kq(e, "getIsVisible", Jq));
+function tJ(e) {
+ return !e.getAllLeafColumns().some((e) => !jq(e, "getIsVisible", Xq));
}
function BSe(e) {
+ return e.getAllLeafColumns().some((e) => jq(e, "getIsVisible", Xq));
+}
+function VSe(e) {
return (t) => {
- Qq(e, t.target.checked);
+ eJ(e, t.target.checked);
};
}
// node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.js
-var eJ = {
+var nJ = {
getInitialState: (e) => ({
- columnVisibility: NSe(),
+ columnVisibility: PSe(),
...e
}),
- getDefaultTableOptions: (e) => ({ onColumnVisibilityChange: yq("columnVisibility", e) }),
+ getDefaultTableOptions: (e) => ({ onColumnVisibilityChange: xq("columnVisibility", e) }),
assignColumnPrototype: (e, t) => {
- Oq("columnVisibilityFeature", e, t, {
+ Aq("columnVisibilityFeature", e, t, {
column_getIsVisible: {
- fn: (e) => Jq(e),
+ fn: (e) => Xq(e),
memoDeps: (e) => [
t.options.columns,
t.atoms.columnVisibility?.get(),
e.columns
]
},
- column_getCanHide: { fn: (e) => Yq(e) },
- column_getToggleVisibilityHandler: { fn: (e) => PSe(e) },
- column_toggleVisibility: { fn: (e, t) => qq(e, t) }
+ column_getCanHide: { fn: (e) => Zq(e) },
+ column_getToggleVisibilityHandler: { fn: (e) => FSe(e) },
+ column_toggleVisibility: { fn: (e, t) => Yq(e, t) }
});
},
assignRowPrototype: (e, t) => {
- Oq("columnVisibilityFeature", e, t, {
+ Aq("columnVisibilityFeature", e, t, {
row_getVisibleCells: {
- fn: (e) => FSe(e),
+ fn: (e) => ISe(e),
memoDeps: (e) => [
e.getAllCells(),
t.atoms.columnPinning?.get(),
@@ -59650,15 +59709,15 @@ var eJ = {
]
},
row_getVisibleCellsByColumnId: {
- fn: (e) => Xq(e),
+ fn: (e) => Qq(e),
memoDeps: (e) => [e.getAllCells(), t.atoms.columnVisibility?.get()]
}
});
},
constructTableAPIs: (e) => {
- Dq("columnVisibilityFeature", e, {
+ kq("columnVisibilityFeature", e, {
table_getVisibleFlatColumns: {
- fn: () => ISe(e),
+ fn: () => LSe(e),
memoDeps: () => [
e.atoms.columnVisibility?.get(),
e.atoms.columnOrder?.get(),
@@ -59668,7 +59727,7 @@ var eJ = {
]
},
table_getVisibleLeafColumns: {
- fn: () => LSe(e),
+ fn: () => RSe(e),
memoDeps: () => [
e.atoms.columnVisibility?.get(),
e.atoms.columnOrder?.get(),
@@ -59677,51 +59736,51 @@ var eJ = {
e.options.groupedColumnMode
]
},
- table_setColumnVisibility: { fn: (t) => Zq(e, t) },
- table_resetColumnVisibility: { fn: (t) => RSe(e, t) },
- table_toggleAllColumnsVisible: { fn: (t) => Qq(e, t) },
- table_getIsAllColumnsVisible: { fn: () => $q(e) },
- table_getIsSomeColumnsVisible: { fn: () => zSe(e) },
- table_getToggleAllColumnsVisibilityHandler: { fn: () => BSe(e) }
+ table_setColumnVisibility: { fn: (t) => $q(e, t) },
+ table_resetColumnVisibility: { fn: (t) => zSe(e, t) },
+ table_toggleAllColumnsVisible: { fn: (t) => eJ(e, t) },
+ table_getIsAllColumnsVisible: { fn: () => tJ(e) },
+ table_getIsSomeColumnsVisible: { fn: () => BSe(e) },
+ table_getToggleAllColumnsVisibilityHandler: { fn: () => VSe(e) }
});
}
-}, tJ = 0, nJ = 10;
-function rJ() {
+}, rJ = 0, iJ = 10;
+function aJ() {
return {
- pageIndex: tJ,
- pageSize: nJ
+ pageIndex: rJ,
+ pageSize: iJ
};
}
-function VSe(e) {
+function HSe(e) {
if (e.options.autoResetAll ?? e.options.autoResetPageIndex ?? !e.options.manualPagination) {
- if ((e.atoms.pagination?.get()?.pageIndex ?? tJ) === tJ) return;
- oJ(e, !0);
+ if ((e.atoms.pagination?.get()?.pageIndex ?? rJ) === rJ) return;
+ cJ(e, !0);
}
}
-function iJ(e, t) {
- Cq(e, "pagination", t);
+function oJ(e, t) {
+ Tq(e, "pagination", t);
}
-function HSe(e, t) {
- iJ(e, t ? rJ() : hq(e.initialState.pagination ?? rJ()));
+function USe(e, t) {
+ oJ(e, t ? aJ() : _q(e.initialState.pagination ?? aJ()));
}
-function aJ(e, t) {
- iJ(e, (n) => {
- let r = mq(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
+function sJ(e, t) {
+ oJ(e, (n) => {
+ let r = gq(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
return r = Math.max(0, Math.min(r, i)), {
...n,
pageIndex: r
};
});
}
-function oJ(e, t) {
- aJ(e, t ? tJ : e.initialState.pagination?.pageIndex ?? tJ);
+function cJ(e, t) {
+ sJ(e, t ? rJ : e.initialState.pagination?.pageIndex ?? rJ);
}
-function USe(e, t) {
- sJ(e, t ? nJ : e.initialState.pagination?.pageSize ?? nJ);
+function WSe(e, t) {
+ lJ(e, t ? iJ : e.initialState.pagination?.pageSize ?? iJ);
}
-function sJ(e, t) {
- iJ(e, (e) => {
- let n = Math.max(1, mq(t, e.pageSize)), r = e.pageSize === Infinity ? 0 : e.pageSize * e.pageIndex, i = n === Infinity ? 0 : Math.floor(r / n);
+function lJ(e, t) {
+ oJ(e, (e) => {
+ let n = Math.max(1, gq(t, e.pageSize)), r = e.pageSize === Infinity ? 0 : e.pageSize * e.pageIndex, i = n === Infinity ? 0 : Math.floor(r / n);
return {
...e,
pageIndex: i,
@@ -59729,231 +59788,231 @@ function sJ(e, t) {
};
});
}
-function WSe(e) {
- let t = cJ(e), n = [];
- return t && t > 0 && (n = [...Array(t)].fill(null).map((e, t) => t)), n;
-}
function GSe(e) {
- return (e.atoms.pagination?.get()?.pageIndex ?? 0) > 0;
+ let t = uJ(e), n = [];
+ return t && t > 0 && (n = [...Array(t)].fill(null).map((e, t) => t)), n;
}
function KSe(e) {
- let t = e.atoms.pagination?.get()?.pageIndex ?? tJ, n = cJ(e);
- return n === -1 || n !== 0 && t < n - 1;
+ return (e.atoms.pagination?.get()?.pageIndex ?? 0) > 0;
}
function qSe(e) {
- let t = e.atoms.pagination?.get()?.pageIndex ?? tJ, n = cJ(e);
- return Number.isFinite(n) && n > 0 && t < n - 1;
+ let t = e.atoms.pagination?.get()?.pageIndex ?? rJ, n = uJ(e);
+ return n === -1 || n !== 0 && t < n - 1;
}
function JSe(e) {
- return aJ(e, (e) => e - 1);
+ let t = e.atoms.pagination?.get()?.pageIndex ?? rJ, n = uJ(e);
+ return Number.isFinite(n) && n > 0 && t < n - 1;
}
function YSe(e) {
- return aJ(e, (e) => e + 1);
+ return sJ(e, (e) => e - 1);
}
function XSe(e) {
- return aJ(e, 0);
+ return sJ(e, (e) => e + 1);
}
function ZSe(e) {
- let t = cJ(e);
- if (!(!Number.isFinite(t) || t <= 0)) return aJ(e, t - 1);
+ return sJ(e, 0);
+}
+function QSe(e) {
+ let t = uJ(e);
+ if (!(!Number.isFinite(t) || t <= 0)) return sJ(e, t - 1);
}
-function cJ(e) {
+function uJ(e) {
let t = e.options.pageCount;
if (t != null) return t;
- let n = lJ(e), r = e.atoms.pagination?.get()?.pageSize ?? nJ;
+ let n = dJ(e), r = e.atoms.pagination?.get()?.pageSize ?? iJ;
return r === Infinity && Number.isFinite(n) && n > 0 ? 1 : Math.ceil(n / r);
}
-function lJ(e) {
+function dJ(e) {
return e.options.rowCount ?? e.getPrePaginatedRowModel().rows.length;
}
// node_modules/@tanstack/table-core/dist/features/row-pagination/rowPaginationFeature.js
-var uJ = {
+var fJ = {
getInitialState: (e) => ({
...e,
pagination: {
- ...rJ(),
+ ...aJ(),
...e.pagination
}
}),
- getDefaultTableOptions: (e) => ({ onPaginationChange: yq("pagination", e) }),
+ getDefaultTableOptions: (e) => ({ onPaginationChange: xq("pagination", e) }),
constructTableAPIs: (e) => {
- Dq("rowPaginationFeature", e, {
- table_autoResetPageIndex: { fn: () => VSe(e) },
- table_setPagination: { fn: (t) => iJ(e, t) },
- table_resetPagination: { fn: (t) => HSe(e, t) },
- table_setPageIndex: { fn: (t) => aJ(e, t) },
- table_resetPageIndex: { fn: (t) => oJ(e, t) },
- table_setPageSize: { fn: (t) => sJ(e, t) },
- table_getPageCount: { fn: () => cJ(e) },
- table_resetPageSize: { fn: (t) => USe(e, t) },
- table_getPageOptions: { fn: () => WSe(e) },
- table_getCanPreviousPage: { fn: () => GSe(e) },
- table_getCanNextPage: { fn: () => KSe(e) },
- table_getCanLastPage: { fn: () => qSe(e) },
- table_previousPage: { fn: () => JSe(e) },
- table_nextPage: { fn: () => YSe(e) },
- table_firstPage: { fn: () => XSe(e) },
- table_lastPage: { fn: () => ZSe(e) },
- table_getRowCount: { fn: () => lJ(e) }
+ kq("rowPaginationFeature", e, {
+ table_autoResetPageIndex: { fn: () => HSe(e) },
+ table_setPagination: { fn: (t) => oJ(e, t) },
+ table_resetPagination: { fn: (t) => USe(e, t) },
+ table_setPageIndex: { fn: (t) => sJ(e, t) },
+ table_resetPageIndex: { fn: (t) => cJ(e, t) },
+ table_setPageSize: { fn: (t) => lJ(e, t) },
+ table_getPageCount: { fn: () => uJ(e) },
+ table_resetPageSize: { fn: (t) => WSe(e, t) },
+ table_getPageOptions: { fn: () => GSe(e) },
+ table_getCanPreviousPage: { fn: () => KSe(e) },
+ table_getCanNextPage: { fn: () => qSe(e) },
+ table_getCanLastPage: { fn: () => JSe(e) },
+ table_previousPage: { fn: () => YSe(e) },
+ table_nextPage: { fn: () => XSe(e) },
+ table_firstPage: { fn: () => ZSe(e) },
+ table_lastPage: { fn: () => QSe(e) },
+ table_getRowCount: { fn: () => dJ(e) }
});
}
};
// node_modules/@tanstack/table-core/dist/features/row-selection/rowSelectionFeature.utils.js
-function QSe() {
- return _q();
+function $Se() {
+ return yq();
}
-function dJ(e, t) {
+function pJ(e, t) {
e.options.onRowSelectionChange?.(t);
}
-function $Se(e, t) {
- e._lastSelectedRowId = null, dJ(e, t ? _q() : Object.assign(_q(), hq(e.initialState.rowSelection ?? {})));
+function eCe(e, t) {
+ e._lastSelectedRowId = null, pJ(e, t ? yq() : Object.assign(yq(), _q(e.initialState.rowSelection ?? {})));
}
-function fJ(e, t, n) {
- e._lastSelectedRowId = null, dJ(e, (r) => {
- if (t = t === void 0 ? !kq(e, "getIsAllRowsSelected", hJ) : t, n?.deselectAll && !t) return _q();
- let i = Object.assign(_q(), r), a = e.getPreGroupedRowModel().flatRows;
+function mJ(e, t, n) {
+ e._lastSelectedRowId = null, pJ(e, (r) => {
+ if (t = t === void 0 ? !jq(e, "getIsAllRowsSelected", _J) : t, n?.deselectAll && !t) return yq();
+ let i = Object.assign(yq(), r), a = e.getPreGroupedRowModel().flatRows;
if (t) {
let e = /* @__PURE__ */ new Map();
a.forEach((t) => {
- TJ(t, e) && (i[t.id] = !0);
+ DJ(t, e) && (i[t.id] = !0);
});
} else a.forEach((e) => {
- xJ(e) && delete i[e.id];
+ CJ(e) && delete i[e.id];
});
return i;
});
}
-function pJ(e, t, n) {
- e._lastSelectedRowId = null, dJ(e, (r) => {
- let i = t === void 0 ? !kq(e, "getIsAllPageRowsSelected", gJ) : t;
- if (n?.deselectAll && !i) return _q();
- let a = Object.assign(_q(), r);
+function hJ(e, t, n) {
+ e._lastSelectedRowId = null, pJ(e, (r) => {
+ let i = t === void 0 ? !jq(e, "getIsAllPageRowsSelected", vJ) : t;
+ if (n?.deselectAll && !i) return yq();
+ let a = Object.assign(yq(), r);
return e.getRowModel().rows.forEach((t) => {
- wJ(a, t.id, i, !0, e, !0);
+ EJ(a, t.id, i, !0, e, !0);
}), a;
});
}
-function eCe(e) {
+function tCe(e) {
return e.getCoreRowModel();
}
-function tCe(e) {
+function nCe(e) {
let t = e.getCoreRowModel();
- return kq(e, "getIsSomeRowsSelected", _J) ? OJ(t, e) : {
+ return jq(e, "getIsSomeRowsSelected", yJ) ? AJ(t, e) : {
rows: [],
flatRows: [],
- rowsById: _q()
+ rowsById: yq()
};
}
-function nCe(e) {
+function rCe(e) {
let t = e.getFilteredRowModel();
- return kq(e, "getIsSomeRowsSelected", _J) ? OJ(t, e) : {
+ return jq(e, "getIsSomeRowsSelected", yJ) ? AJ(t, e) : {
rows: [],
flatRows: [],
- rowsById: _q()
+ rowsById: yq()
};
}
-function rCe(e) {
+function iCe(e) {
let t = e.getSortedRowModel();
- return kq(e, "getIsSomeRowsSelected", _J) ? OJ(t, e) : {
+ return jq(e, "getIsSomeRowsSelected", yJ) ? AJ(t, e) : {
rows: [],
flatRows: [],
- rowsById: _q()
+ rowsById: yq()
};
}
-function mJ(e) {
+function gJ(e) {
return Object.keys(e.atoms.rowSelection?.get() ?? {});
}
-function hJ(e) {
+function _J(e) {
let t = e.getFilteredRowModel().flatRows, n = e.atoms.rowSelection?.get() ?? {}, r = !!(t.length && Object.keys(n).length);
if (r) {
let e = /* @__PURE__ */ new Map();
- t.some((t) => !kJ(t, n) && TJ(t, e)) && (r = !1);
+ t.some((t) => !jJ(t, n) && DJ(t, e)) && (r = !1);
}
return r;
}
-function gJ(e) {
+function vJ(e) {
let t = e.getPaginatedRowModel().flatRows, n = e.atoms.rowSelection?.get() ?? {}, r = /* @__PURE__ */ new Map(), i = !1;
for (let e = 0; e < t.length; e++) {
let a = t[e];
- if (kJ(a, n)) !i && TJ(a, r) && (i = !0);
- else if (TJ(a, r)) return !1;
+ if (jJ(a, n)) !i && DJ(a, r) && (i = !0);
+ else if (DJ(a, r)) return !1;
}
return i;
}
-function _J(e) {
- return kq(e, "getSelectedRowIds", mJ).length > 0;
-}
-function iCe(e) {
- return e.getPaginatedRowModel().flatRows.filter((e) => xJ(e)).some((e) => yJ(e) || kq(e, "getIsSomeSelected", bJ));
+function yJ(e) {
+ return jq(e, "getSelectedRowIds", gJ).length > 0;
}
function aCe(e) {
+ return e.getPaginatedRowModel().flatRows.filter((e) => CJ(e)).some((e) => xJ(e) || jq(e, "getIsSomeSelected", SJ));
+}
+function oCe(e) {
return (t) => {
- fJ(e, t.target.checked);
+ mJ(e, t.target.checked);
};
}
-function oCe(e) {
+function sCe(e) {
return (t) => {
- pJ(e, t.target.checked);
+ hJ(e, t.target.checked);
};
}
-function vJ(e, t, n) {
- let r = yJ(e);
- dJ(e.table, (i) => {
+function bJ(e, t, n) {
+ let r = xJ(e);
+ pJ(e.table, (i) => {
t = t === void 0 ? !r : t;
- let a = Object.assign(_q(), i);
- return wJ(a, e.id, t, (n?.selectChildren ?? !0) && CJ(e), e.table), !t && n?.deselectParents && EJ(a, e), a;
+ let a = Object.assign(yq(), i);
+ return EJ(a, e.id, t, (n?.selectChildren ?? !0) && TJ(e), e.table), !t && n?.deselectParents && OJ(a, e), a;
});
}
-function yJ(e) {
- return kJ(e, e.table.atoms.rowSelection?.get() ?? {});
+function xJ(e) {
+ return jJ(e, e.table.atoms.rowSelection?.get() ?? {});
}
-function bJ(e) {
- return AJ(e) === "some";
+function SJ(e) {
+ return MJ(e) === "some";
}
-function sCe(e) {
- return AJ(e) === "all";
+function cCe(e) {
+ return MJ(e) === "all";
}
-function xJ(e) {
+function CJ(e) {
let t = e.table.options;
return typeof t.enableRowSelection == "function" ? t.enableRowSelection(e) : t.enableRowSelection ?? !0;
}
-function SJ(e) {
+function wJ(e) {
let t = e.table.options;
return typeof t.enableSubRowSelection == "function" ? t.enableSubRowSelection(e) : t.enableSubRowSelection ?? !0;
}
-function CJ(e) {
+function TJ(e) {
let t = e.table.options;
return typeof t.enableMultiRowSelection == "function" ? t.enableMultiRowSelection(e) : t.enableMultiRowSelection ?? !0;
}
-function cCe(e, t) {
- let n = xJ(e);
+function lCe(e, t) {
+ let n = CJ(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 && CJ(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1) && lCe(e, s, o, t) || vJ(e, o, t), a._lastSelectedRowId = e.id;
+ a.options.enableRowRangeSelection !== !1 && s !== null && TJ(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1) && uCe(e, s, o, t) || bJ(e, o, t), a._lastSelectedRowId = e.id;
};
}
-function lCe(e, t, n, r) {
+function uCe(e, t, n, r) {
let i = r?.selectChildren ?? !0, a = e.table, o = a.getRowsInDisplayOrder(), s = a.getPrePaginatedRowModel().rowsById[t] ?? a.getCoreRowModel().rowsById[t];
if (!s) return !1;
let c = s.getDisplayIndex(), l = e.getDisplayIndex(), u = o[c], d = o[l];
- if (c < 0 || l < 0 || c >= o.length || l >= o.length || u?.id !== s.id || d?.id !== e.id || !CJ(s) || !CJ(e)) return !1;
+ if (c < 0 || l < 0 || c >= o.length || l >= o.length || u?.id !== s.id || d?.id !== e.id || !TJ(s) || !TJ(e)) return !1;
let f = Math.min(c, l), p = Math.max(c, l);
- return dJ(a, (e) => {
- let t = Object.assign(_q(), e);
+ return pJ(a, (e) => {
+ let t = Object.assign(yq(), e);
for (let e = f; e <= p; e++) {
let s = o[e];
- xJ(s) && CJ(s) && (wJ(t, s.id, n, i, a), !n && r?.deselectParents && EJ(t, s));
+ CJ(s) && TJ(s) && (EJ(t, s.id, n, i, a), !n && r?.deselectParents && OJ(t, s));
}
return t;
}), !0;
}
-function wJ(e, t, n, r, i, a) {
+function EJ(e, t, n, r, i, a) {
let o = i.getRow(t, !0);
- n ? (CJ(o) || Object.keys(e).forEach((t) => delete e[t]), xJ(o) && (e[t] = !0)) : (!a || xJ(o)) && delete e[t], r && o.subRows.length && SJ(o) && o.subRows.forEach((t) => wJ(e, t.id, n, r, i, a));
+ n ? (TJ(o) || Object.keys(e).forEach((t) => delete e[t]), CJ(o) && (e[t] = !0)) : (!a || CJ(o)) && delete e[t], r && o.subRows.length && wJ(o) && o.subRows.forEach((t) => EJ(e, t.id, n, r, i, a));
}
-function TJ(e, t) {
- if (!xJ(e)) return !1;
+function DJ(e, t) {
+ if (!CJ(e)) return !1;
let n = e.table;
if (n.options.enableSubRowSelection === !0) return !0;
let r = e.parentId;
@@ -59969,7 +60028,7 @@ function TJ(e, t) {
}
o.push(c);
let r = a[c] ?? n.getRow(c, !0);
- if (!SJ(r)) {
+ if (!wJ(r)) {
s = !1;
break;
}
@@ -59977,50 +60036,50 @@ function TJ(e, t) {
}
return o.forEach((e) => t.set(e, s)), s;
}
-function EJ(e, t) {
+function OJ(e, t) {
let n = t.table.getCoreRowModel().rowsById, r = t.parentId;
for (; r !== void 0;) delete e[r], r = (n[r] ?? t.table.getRow(r, !0)).parentId;
}
-function DJ(e, t, n, r) {
+function kJ(e, t, n, r) {
let i = [];
for (let a = 0; a < e.length; a++) {
- let o = e[a], s = kJ(o, t);
+ let o = e[a], s = jJ(o, t);
if (s && (n.push(o), r[o.id] = o), o.subRows.length) {
- let e = DJ(o.subRows, t, n, r);
+ let e = kJ(o.subRows, t, n, r);
if (s) {
let t = Object.create(Object.getPrototypeOf(o));
- gq(t, o), t.subRows = e, i.push(t);
+ vq(t, o), t.subRows = e, i.push(t);
}
} else s && i.push(o);
}
return i;
}
-function OJ(e, t) {
- let n = [], r = _q(), i = t.atoms.rowSelection?.get() ?? {};
+function AJ(e, t) {
+ let n = [], r = yq(), i = t.atoms.rowSelection?.get() ?? {};
return {
- rows: DJ(e.rows, i, n, r),
+ rows: kJ(e.rows, i, n, r),
flatRows: n,
rowsById: r
};
}
-function kJ(e, t) {
- return !!(vq(t, e.id) && t[e.id]);
+function jJ(e, t) {
+ return !!(bq(t, e.id) && t[e.id]);
}
-function AJ(e) {
+function MJ(e) {
if (!e.subRows.length) return !1;
let t = e.table.atoms.rowSelection?.get() ?? {}, n = !1, r = !0, i = !1;
for (let a = 0; a < e.subRows.length; a++) {
let o = e.subRows[a];
if (n && !r) break;
- if (xJ(o) && (i = !0, kJ(o, t) ? n = !0 : r = !1), o.subRows.length) {
- let e = AJ(o);
+ if (CJ(o) && (i = !0, jJ(o, t) ? n = !0 : r = !1), o.subRows.length) {
+ let e = MJ(o);
e === "all" ? (n = !0, i = !0) : e === "some" ? (n = !0, r = !1, i = !0) : r = !1;
}
}
return i ? r ? "all" : n ? "some" : !1 : !1;
}
// node_modules/@tanstack/table-core/dist/features/row-selection/rowSelectionFeature.js
-var jJ = {
+var NJ = {
initTableInstanceData: (e) => {
e._lastSelectedRowId = null;
},
@@ -60028,11 +60087,11 @@ var jJ = {
e._lastSelectedRowId = null;
},
getInitialState: (e) => ({
- rowSelection: QSe(),
+ rowSelection: $Se(),
...e
}),
getDefaultTableOptions: (e) => ({
- onRowSelectionChange: yq("rowSelection", e),
+ onRowSelectionChange: xq("rowSelection", e),
enableRowSelection: !0,
enableMultiRowSelection: !0,
enableRowRangeSelection: !0,
@@ -60043,11 +60102,11 @@ var jJ = {
}
}),
assignRowPrototype: (e, t) => {
- Oq("rowSelectionFeature", e, t, {
- row_toggleSelected: { fn: (e, t, n) => vJ(e, t, n) },
- row_getIsSelected: { fn: (e) => yJ(e) },
+ Aq("rowSelectionFeature", e, t, {
+ row_toggleSelected: { fn: (e, t, n) => bJ(e, t, n) },
+ row_getIsSelected: { fn: (e) => xJ(e) },
row_getIsSomeSelected: {
- fn: (e) => bJ(e),
+ fn: (e) => SJ(e),
memoDeps: (e) => [
e.subRows,
e.table.atoms.rowSelection?.get(),
@@ -60055,44 +60114,44 @@ var jJ = {
]
},
row_getIsAllSubRowsSelected: {
- fn: (e) => sCe(e),
+ fn: (e) => cCe(e),
memoDeps: (e) => [
e.subRows,
e.table.atoms.rowSelection?.get(),
e.table.options.enableRowSelection
]
},
- row_getCanSelect: { fn: (e) => xJ(e) },
- row_getCanSelectSubRows: { fn: (e) => SJ(e) },
- row_getCanMultiSelect: { fn: (e) => CJ(e) },
- row_getToggleSelectedHandler: { fn: (e, t) => cCe(e, t) }
+ row_getCanSelect: { fn: (e) => CJ(e) },
+ row_getCanSelectSubRows: { fn: (e) => wJ(e) },
+ row_getCanMultiSelect: { fn: (e) => TJ(e) },
+ row_getToggleSelectedHandler: { fn: (e, t) => lCe(e, t) }
});
},
constructTableAPIs: (e) => {
- Dq("rowSelectionFeature", e, {
- table_setRowSelection: { fn: (t) => dJ(e, t) },
- table_resetRowSelection: { fn: (t) => $Se(e, t) },
- table_toggleAllRowsSelected: { fn: (t, n) => fJ(e, t, n) },
- table_toggleAllPageRowsSelected: { fn: (t, n) => pJ(e, t, n) },
- table_getPreSelectedRowModel: { fn: () => eCe(e) },
+ kq("rowSelectionFeature", e, {
+ table_setRowSelection: { fn: (t) => pJ(e, t) },
+ table_resetRowSelection: { fn: (t) => eCe(e, t) },
+ table_toggleAllRowsSelected: { fn: (t, n) => mJ(e, t, n) },
+ table_toggleAllPageRowsSelected: { fn: (t, n) => hJ(e, t, n) },
+ table_getPreSelectedRowModel: { fn: () => tCe(e) },
table_getSelectedRowModel: {
- fn: () => tCe(e),
+ fn: () => nCe(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getCoreRowModel()]
},
table_getFilteredSelectedRowModel: {
- fn: () => nCe(e),
+ fn: () => rCe(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getFilteredRowModel()]
},
table_getGroupedSelectedRowModel: {
- fn: () => rCe(e),
+ fn: () => iCe(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getSortedRowModel()]
},
table_getSelectedRowIds: {
- fn: () => mJ(e),
+ fn: () => gJ(e),
memoDeps: () => [e.atoms.rowSelection?.get()]
},
table_getIsAllRowsSelected: {
- fn: () => hJ(e),
+ fn: () => _J(e),
memoDeps: () => [
e.atoms.rowSelection?.get(),
e.getFilteredRowModel(),
@@ -60101,7 +60160,7 @@ var jJ = {
]
},
table_getIsAllPageRowsSelected: {
- fn: () => gJ(e),
+ fn: () => vJ(e),
memoDeps: () => [
e.atoms.rowSelection?.get(),
e.getPaginatedRowModel(),
@@ -60110,48 +60169,48 @@ var jJ = {
]
},
table_getIsSomeRowsSelected: {
- fn: () => _J(e),
+ fn: () => yJ(e),
memoDeps: () => [e.atoms.rowSelection?.get()]
},
table_getIsSomePageRowsSelected: {
- fn: () => iCe(e),
+ fn: () => aCe(e),
memoDeps: () => [
e.atoms.rowSelection?.get(),
e.getPaginatedRowModel(),
e.options.enableRowSelection
]
},
- table_getToggleAllRowsSelectedHandler: { fn: () => aCe(e) },
- table_getToggleAllPageRowsSelectedHandler: { fn: () => oCe(e) }
+ table_getToggleAllRowsSelectedHandler: { fn: () => oCe(e) },
+ table_getToggleAllPageRowsSelectedHandler: { fn: () => sCe(e) }
});
}
-}, uCe = /([0-9]+)/gm;
+}, dCe = /([0-9]+)/gm;
/* @__NO_SIDE_EFFECTS__ */
-function dCe(e) {
+function fCe(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 MJ = /* @__PURE__ */ dCe({ sort: (e, t) => fCe(e, t) });
-function fCe(e, t) {
+var PJ = /* @__PURE__ */ fCe({ sort: (e, t) => pCe(e, t) });
+function pCe(e, t) {
return e === t ? 0 : e > t ? 1 : -1;
}
// node_modules/@tanstack/table-core/dist/features/row-sorting/rowSortingFeature.utils.js
-function pCe() {
+function mCe() {
return [];
}
-function NJ(e, t) {
- Cq(e, "sorting", t);
+function FJ(e, t) {
+ Tq(e, "sorting", t);
}
-function PJ(e, t) {
- NJ(e, t ? [] : hq(e.initialState.sorting ?? []));
+function IJ(e, t) {
+ FJ(e, t ? [] : _q(e.initialState.sorting ?? []));
}
-function mCe(e) {
- e.atoms.sorting && (e.options.autoResetAll ?? e.options.autoResetSorting ?? !1) && PJ(e);
+function hCe(e) {
+ e.atoms.sorting && (e.options.autoResetAll ?? e.options.autoResetSorting ?? !1) && IJ(e);
}
-function FJ(e) {
+function LJ(e) {
let t = e.table._rowModelFns.sortFns, n = e.table.getFilteredRowModel().flatRows.slice(0, 10), r, i = !1;
for (let t = 0; t < n.length; t++) {
let a = n[t].getValue(e.id);
@@ -60159,7 +60218,7 @@ function FJ(e) {
r = "datetime";
break;
}
- if (typeof a == "string" && (i = !0, a.split(uCe).length > 1)) {
+ if (typeof a == "string" && (i = !0, a.split(dCe).length > 1)) {
r = "alphanumeric";
break;
}
@@ -60168,9 +60227,9 @@ function FJ(e) {
let e = t?.[r];
if (e || r === "alphanumeric" && (e = t?.text), e) return e;
}
- return MJ;
+ return PJ;
}
-function IJ(e) {
+function RJ(e) {
let t = e.table.getFilteredRowModel().flatRows.slice(0, 10);
for (let n = 0; n < t.length; n++) {
let r = t[n].getValue(e.id);
@@ -60178,14 +60237,14 @@ function IJ(e) {
}
return "desc";
}
-function LJ(e) {
+function zJ(e) {
let t = e.table._rowModelFns.sortFns;
- return mxe(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? FJ(e) : t?.[e.columnDef.sortFn] ?? MJ;
+ return hxe(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? LJ(e) : t?.[e.columnDef.sortFn] ?? PJ;
}
-function RJ(e, t, n) {
- let r = BJ(e, n && HJ(e)), i = t !== void 0;
- NJ(e.table, (a) => {
- let o = a.findIndex((t) => t.id === e.id), s = o === -1 ? void 0 : a[o], c = [], l, u = i ? t : r === "desc", d = !!(a.length && HJ(e) && n);
+function BJ(e, t, n) {
+ let r = HJ(e, n && WJ(e)), i = t !== void 0;
+ FJ(e.table, (a) => {
+ let o = a.findIndex((t) => t.id === e.id), s = o === -1 ? void 0 : a[o], c = [], l, u = i ? t : r === "desc", d = !!(a.length && WJ(e) && n);
return l = d ? s ? "toggle" : "add" : s ? "toggle" : "replace", l === "toggle" && (i || r || (l = "remove")), l === "add" ? (c = [...a, {
id: e.id,
desc: u
@@ -60201,40 +60260,40 @@ function RJ(e, t, n) {
}], c;
});
}
-function zJ(e) {
- return e.columnDef.sortDescFirst ?? e.table.options.sortDescFirst ?? IJ(e) === "desc" ? "desc" : "asc";
+function VJ(e) {
+ return e.columnDef.sortDescFirst ?? e.table.options.sortDescFirst ?? RJ(e) === "desc" ? "desc" : "asc";
}
-function BJ(e, t) {
- let n = zJ(e), r = UJ(e);
+function HJ(e, t) {
+ let n = VJ(e), r = GJ(e);
return r ? r !== n && (e.table.options.enableSortingRemoval ?? !0) && (!t || (e.table.options.enableMultiRemove ?? !0)) ? !1 : r === "desc" ? "asc" : "desc" : n;
}
-function VJ(e) {
+function UJ(e) {
return (e.columnDef.enableSorting ?? !0) && (e.table.options.enableSorting ?? !0) && !!e.accessorFn;
}
-function HJ(e) {
+function WJ(e) {
return e.columnDef.enableMultiSort ?? e.table.options.enableMultiSort ?? !!e.accessorFn;
}
-function UJ(e) {
+function GJ(e) {
let t = e.table.atoms.sorting?.get()?.find((t) => t.id === e.id);
return t ? t.desc ? "desc" : "asc" : !1;
}
-function hCe(e) {
- return e.table.atoms.sorting?.get()?.findIndex((t) => t.id === e.id) ?? -1;
-}
function gCe(e) {
- NJ(e.table, (t) => t.length ? t.filter((t) => t.id !== e.id) : []);
+ return e.table.atoms.sorting?.get()?.findIndex((t) => t.id === e.id) ?? -1;
}
function _Ce(e) {
- let t = VJ(e);
+ FJ(e.table, (t) => t.length ? t.filter((t) => t.id !== e.id) : []);
+}
+function vCe(e) {
+ let t = UJ(e);
return (n) => {
- t && RJ(e, void 0, HJ(e) ? e.table.options.isMultiSortEvent?.(n) : !1);
+ t && BJ(e, void 0, WJ(e) ? e.table.options.isMultiSortEvent?.(n) : !1);
};
}
// node_modules/@tanstack/table-core/dist/features/row-sorting/rowSortingFeature.js
-var WJ = {
+var KJ = {
getInitialState(e) {
return {
- sorting: pCe(),
+ sorting: mCe(),
...e
};
},
@@ -60247,58 +60306,58 @@ var WJ = {
getDefaultTableOptions(e) {
return {
autoResetSorting: !1,
- onSortingChange: yq("sorting", e),
+ onSortingChange: xq("sorting", e),
isMultiSortEvent: (e) => e.shiftKey
};
},
assignColumnPrototype(e, t) {
- Oq("rowSortingFeature", e, t, {
- column_getAutoSortFn: { fn: (e) => FJ(e) },
- column_getAutoSortDir: { fn: (e) => IJ(e) },
- column_getSortFn: { fn: (e) => LJ(e) },
- column_toggleSorting: { fn: (e, t, n) => RJ(e, t, n) },
- column_getFirstSortDir: { fn: (e) => zJ(e) },
- column_getNextSortingOrder: { fn: (e, t) => BJ(e, t) },
- column_getCanSort: { fn: (e) => VJ(e) },
- column_getCanMultiSort: { fn: (e) => HJ(e) },
- column_getIsSorted: { fn: (e) => UJ(e) },
- column_getSortIndex: { fn: (e) => hCe(e) },
- column_clearSorting: { fn: (e) => gCe(e) },
- column_getToggleSortingHandler: { fn: (e) => _Ce(e) }
+ Aq("rowSortingFeature", e, t, {
+ column_getAutoSortFn: { fn: (e) => LJ(e) },
+ column_getAutoSortDir: { fn: (e) => RJ(e) },
+ column_getSortFn: { fn: (e) => zJ(e) },
+ column_toggleSorting: { fn: (e, t, n) => BJ(e, t, n) },
+ column_getFirstSortDir: { fn: (e) => VJ(e) },
+ column_getNextSortingOrder: { fn: (e, t) => HJ(e, t) },
+ column_getCanSort: { fn: (e) => UJ(e) },
+ column_getCanMultiSort: { fn: (e) => WJ(e) },
+ column_getIsSorted: { fn: (e) => GJ(e) },
+ column_getSortIndex: { fn: (e) => gCe(e) },
+ column_clearSorting: { fn: (e) => _Ce(e) },
+ column_getToggleSortingHandler: { fn: (e) => vCe(e) }
});
},
constructTableAPIs(e) {
- Dq("rowSortingFeature", e, {
- table_autoResetSorting: { fn: () => mCe(e) },
- table_setSorting: { fn: (t) => NJ(e, t) },
- table_resetSorting: { fn: (t) => PJ(e, t) }
+ kq("rowSortingFeature", e, {
+ table_autoResetSorting: { fn: () => hCe(e) },
+ table_setSorting: { fn: (t) => FJ(e, t) },
+ table_resetSorting: { fn: (t) => IJ(e, t) }
});
}
-}, vCe = typeof window > "u" ? F.useEffect : F.useLayoutEffect;
-function GJ(e, t) {
+}, yCe = typeof window > "u" ? F.useEffect : F.useLayoutEffect;
+function qJ(e, t) {
let [{ table: n, rootSource: r }] = (0, F.useState)(() => {
- let t = MSe({
+ let t = NSe({
...e,
features: {
- coreReactivityFeature: dxe(),
+ coreReactivityFeature: fxe(),
...e.features
}
});
- return t.Subscribe = ((e) => sxe({
+ return t.Subscribe = ((e) => cxe({
...e,
source: e.source ?? t.store
- })), t.FlexRender = Xbe, {
+ })), t.FlexRender = Zbe, {
table: t,
- rootSource: uxe(t.store, uq)
+ rootSource: dxe(t.store, fq)
};
}), i = n;
- Wq(i, (t) => ({
+ Kq(i, (t) => ({
...t,
...e
}), { syncExternalState: !1 });
- let a = i.options.state, o = r.get(), s = pq(r, t, { compare: uq });
- return vCe(() => {
- r.markCommitted(o), Uq(i, a ?? null, uq);
+ let a = i.options.state, o = r.get(), s = hq(r, t, { compare: fq });
+ return yCe(() => {
+ r.markCommitted(o), Gq(i, a ?? null, fq);
}), (0, F.useMemo)(() => ({
...n,
options: e,
@@ -60310,10 +60369,10 @@ function GJ(e, t) {
]);
}
// src/react/boardui/components/base/table/table.tsx
-function KJ({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
+function JJ({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
className: q("w-full overflow-x-auto", n),
- children: /* @__PURE__ */ (0, I.jsx)(Hme, {
+ children: /* @__PURE__ */ (0, I.jsx)(Bme, {
ref: r,
...i,
className: q("bui-table", e === "sm" && "bui-table-sm", t)
@@ -60321,7 +60380,7 @@ function KJ({ size: e = "md", className: t, containerClassName: n, ref: r, ...i
});
}
// src/react/catalog-grid/catalog-table-columns.ts
-var qJ = "peach.catalog-column-widths.v1", JJ = "peach.catalog-column-visibility.v1", yCe = {
+var YJ = "peach.catalog-column-widths.v1", XJ = "peach.catalog-column-visibility.v1", bCe = {
select: {
width: 48,
min: 48,
@@ -60387,13 +60446,13 @@ var qJ = "peach.catalog-column-widths.v1", JJ = "peach.catalog-column-visibility
min: 144,
max: 560
}
-}, bCe = {
+}, xCe = {
code: !1,
o: !1,
new: !1,
played: !1,
release: !1
-}, xCe = {
+}, SCe = {
select: "选择",
name: "作品",
dur: "时长",
@@ -60407,7 +60466,7 @@ var qJ = "peach.catalog-column-widths.v1", JJ = "peach.catalog-column-visibility
release: "发行时间",
code: "番号",
tags: "标签"
-}, YJ = [
+}, ZJ = [
"select",
"name",
"tags",
@@ -60423,13 +60482,13 @@ var qJ = "peach.catalog-column-widths.v1", JJ = "peach.catalog-column-visibility
"release"
].map((e) => ({
id: e,
- label: xCe[e],
- ...yCe[e],
+ label: SCe[e],
+ ...bCe[e],
flex: e === "name",
required: e === "select" || e === "name",
- visible: bCe[e] !== !1
+ visible: xCe[e] !== !1
}));
-function XJ(e) {
+function QJ(e) {
try {
let t = JSON.parse(localStorage.getItem(e) || "{}");
return t && typeof t == "object" && !Array.isArray(t) ? t : {};
@@ -60437,9 +60496,9 @@ function XJ(e) {
return {};
}
}
-function SCe() {
- let e = XJ(qJ), t = XJ(JJ);
- return YJ.filter((e) => e.id !== "select" && (e.required || (typeof t[e.id] == "boolean" ? t[e.id] === !0 : e.visible))).map((t) => {
+function CCe() {
+ let e = QJ(YJ), t = QJ(XJ);
+ return ZJ.filter((e) => e.id !== "select" && (e.required || (typeof t[e.id] == "boolean" ? t[e.id] === !0 : e.visible))).map((t) => {
let n = e[t.id], r = typeof n == "number" && Number.isFinite(n) && !(t.flex && n === t.width);
return {
id: t.id,
@@ -60450,37 +60509,37 @@ function SCe() {
});
}
// src/react/library-processing/completion-row.ts
-var ZJ = "peach.catalog.completion-row";
-function QJ() {
+var $J = "peach.catalog.completion-row";
+function eY() {
try {
- return localStorage.getItem(ZJ) === "1";
+ return localStorage.getItem($J) === "1";
} catch {
return !1;
}
}
-function CCe(e) {
+function wCe(e) {
try {
- e ? localStorage.setItem(ZJ, "1") : localStorage.removeItem(ZJ);
+ e ? localStorage.setItem($J, "1") : localStorage.removeItem($J);
} catch {}
}
-var wCe = "<i data-completion-skeleton class=\"skeleton-sheen\"></i>";
+var TCe = "<i data-completion-skeleton class=\"skeleton-sheen\"></i>";
// src/catalog-content-skeleton.ts
-function $J(e) {
+function tY(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 TCe(e) {
- let t = SCe(), 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>${$J(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>` + (QJ() ? wCe : "") + `<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 ECe(e) {
+ let t = CCe(), 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>${tY(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>` + (eY() ? TCe : "") + `<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 eY(e, t) {
- return pG() === "list" ? TCe(e) : nc(e, {
+function nY(e, t) {
+ return hG() === "list" ? ECe(e) : nc(e, {
variant: "cards",
className: "catalog-skeleton postercard-skeleton",
cardRatio: t
});
}
// src/react/components/data-table-frame.tsx
-function tY({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
+function rY({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
let i = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
let e = i.current?.querySelector(".overflow-x-auto") ?? null;
@@ -60494,9 +60553,9 @@ function tY({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
let t = e.target;
if (!(t instanceof Element)) return;
let r = t.closest("[role=\"row\"][data-key]");
- r && oK(e, r) && n(r.dataset.key);
+ r && cK(e, r) && n(r.dataset.key);
} : void 0,
- children: r ? /* @__PURE__ */ (0, I.jsx)(Bme, {
+ children: r ? /* @__PURE__ */ (0, I.jsx)(Rme, {
className: "relative min-w-0",
onResize: r.resize,
onResizeEnd: r.save,
@@ -60505,8 +60564,8 @@ function tY({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
});
}
// src/react/components/select.tsx
-function nY({ prefix: e, renderValue: t, size: n, ...r }) {
- if (e == null) return /* @__PURE__ */ (0, I.jsx)(tW, {
+function iY({ prefix: e, renderValue: t, size: n, ...r }) {
+ if (e == null) return /* @__PURE__ */ (0, I.jsx)(rW, {
...r,
size: n,
renderValue: t
@@ -60516,14 +60575,14 @@ function nY({ 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)(tW, {
+ return /* @__PURE__ */ (0, I.jsx)(rW, {
...r,
size: n,
renderValue: a
});
}
// src/react/components/table-pagination.tsx
-function rY({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
+function aY({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
return t <= 1 ? null : /* @__PURE__ */ (0, I.jsxs)("nav", {
"aria-label": r,
"data-pagination-layout": "",
@@ -60562,11 +60621,11 @@ function rY({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
});
}
// src/react/components/table-controls.tsx
-function iY({ label: e, options: t, sorting: n, onChange: r }) {
+function oY({ label: e, options: t, sorting: n, onChange: r }) {
let i = n[0];
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex flex-none items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsxs)(nY, {
+ children: [/* @__PURE__ */ (0, I.jsxs)(iY, {
"aria-label": `${e}排序`,
prefix: "排序",
selectedKey: i?.id ?? "default",
@@ -60576,10 +60635,10 @@ function iY({ label: e, options: t, sorting: n, onChange: r }) {
desc: i?.desc ?? !1
}]);
},
- children: [/* @__PURE__ */ (0, I.jsx)(nW, {
+ children: [/* @__PURE__ */ (0, I.jsx)(iW, {
id: "default",
children: "默认顺序"
- }), t.map((e) => /* @__PURE__ */ (0, I.jsx)(nW, {
+ }), t.map((e) => /* @__PURE__ */ (0, I.jsx)(iW, {
id: e.id,
children: e.label
}, e.id))]
@@ -60587,7 +60646,7 @@ function iY({ label: e, options: t, sorting: n, onChange: r }) {
variant: "secondary",
iconOnly: !0,
disabled: !i,
- leadingIcon: _G,
+ leadingIcon: yG,
"data-icon-state": i?.desc ? "b" : "a",
"aria-label": `${e}改为${i?.desc ? "升序" : "降序"}`,
onClick: () => {
@@ -60599,7 +60658,7 @@ function iY({ label: e, options: t, sorting: n, onChange: r }) {
})]
});
}
-function aY({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记录", pageUnit: a = "条", pageSizes: o = [
+function sY({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记录", pageUnit: a = "条", pageSizes: o = [
10,
20,
50,
@@ -60614,7 +60673,7 @@ function aY({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记
children: `${l.toLocaleString()}–${u.toLocaleString()} / ${t.toLocaleString()} ${i}`
}), /* @__PURE__ */ (0, I.jsxs)("div", {
"data-toolbar-actions": "",
- children: [/* @__PURE__ */ (0, I.jsx)(nY, {
+ children: [/* @__PURE__ */ (0, I.jsx)(iY, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(n.pageSize),
@@ -60624,11 +60683,11 @@ function aY({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记
pageSize: Number(e)
});
},
- children: o.map((e) => /* @__PURE__ */ (0, I.jsx)(nW, {
+ children: o.map((e) => /* @__PURE__ */ (0, I.jsx)(iW, {
id: String(e),
children: `每页 ${e} ${a}`
}, e))
- }), /* @__PURE__ */ (0, I.jsx)(rY, {
+ }), /* @__PURE__ */ (0, I.jsx)(aY, {
label: `${e}分页`,
page: c + 1,
pages: s,
@@ -60641,7 +60700,7 @@ function aY({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记
});
}
// src/react/components/table-column-preferences.ts
-function oY(e) {
+function cY(e) {
try {
let t = JSON.parse(localStorage.getItem(e) || "{}");
return t && typeof t == "object" && !Array.isArray(t) ? t : {};
@@ -60649,17 +60708,17 @@ function oY(e) {
return {};
}
}
-function sY(e, t) {
+function lY(e, t) {
try {
localStorage.setItem(e, JSON.stringify(t));
} catch {}
}
-function ECe(e, t) {
+function DCe(e, t) {
let n = (e) => Object.fromEntries(Object.entries(t).map(([t, n]) => {
let r = e[t];
return [t, typeof r == "number" && Number.isFinite(r) ? Math.max(n.min, Math.min(n.max, r)) : n.flex ? "1fr" : n.width];
})), [r, i] = (0, F.useState)(() => {
- let r = oY(e);
+ let r = cY(e);
for (let [e, n] of Object.entries(t)) n.flex && r[e] === n.width && delete r[e];
return n(r);
});
@@ -60676,7 +60735,7 @@ function ECe(e, t) {
...r,
...Object.fromEntries(t)
});
- i(a), sY(e, a);
+ i(a), lY(e, a);
},
reset: () => {
i(n({}));
@@ -60686,26 +60745,26 @@ function ECe(e, t) {
}
};
}
-function DCe(e, t, n, r = {}) {
+function OCe(e, t, n, r = {}) {
let i = (e) => ({
...r,
...Object.fromEntries(t.filter((t) => !n.includes(t) && typeof e[t] == "boolean").map((t) => [t, e[t] === !0]))
- }), [a, o] = (0, F.useState)(() => i(oY(e)));
+ }), [a, o] = (0, F.useState)(() => i(cY(e)));
return {
visibility: a,
change: (t) => {
let n = i(typeof t == "function" ? t(a) : t);
- o(n), sY(e, n);
+ o(n), lY(e, n);
}
};
}
-function cY(e, t, n) {
+function uY(e, t, n) {
let r = (0, F.useMemo)(() => Object.fromEntries(t.map((e) => [e.id, {
width: e.width ?? 180,
min: e.min ?? 96,
max: e.max ?? (e.flex ? 2e3 : 800),
flex: e.flex
- }])), [t]), i = ECe(n?.widths ?? `peach.table.${e}.widths.v1`, r), a = DCe(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 = DCe(n?.widths ?? `peach.table.${e}.widths.v1`, r), a = OCe(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,
@@ -60724,15 +60783,15 @@ function cY(e, t, n) {
};
}
// src/react/catalog-grid/catalog-column-widths.ts
-function OCe() {
- return cY("catalog", YJ, {
- widths: qJ,
- visibility: JJ
+function kCe() {
+ return uY("catalog", ZJ, {
+ widths: YJ,
+ visibility: XJ
});
}
// src/react/components/rating-stars.tsx
-var lY = TV("star");
-function uY({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
+var dY = DV("star");
+function fY({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
let i = Math.max(0, Math.min(5, e)), a = Math.round(i);
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-rating-stars": "",
@@ -60755,25 +60814,25 @@ function uY({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
onClick: () => {
n || t(e);
},
- children: n === e ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: zs("正在保存评分") } }) : /* @__PURE__ */ (0, I.jsx)(lY, {})
+ children: n === e ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: zs("正在保存评分") } }) : /* @__PURE__ */ (0, I.jsx)(dY, {})
}, e) : /* @__PURE__ */ (0, I.jsx)("span", {
"data-rate": e,
"data-on": String(i >= e),
children: /* @__PURE__ */ (0, I.jsxs)("span", {
"data-rating-icon": "",
- children: [/* @__PURE__ */ (0, I.jsx)(lY, {}), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(dY, {}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-rating-fill": "",
style: { width: `${Math.max(0, Math.min(1, i - e + 1)) * 100}%` },
- children: /* @__PURE__ */ (0, I.jsx)(lY, {})
+ children: /* @__PURE__ */ (0, I.jsx)(dY, {})
})]
})
}, e))
});
}
// src/react/catalog-grid/catalog-table-controls.tsx
-function kCe({ item: e, actions: t }) {
- let { rating: n } = e, r = DH(), i = (0, F.useRef)(0), a = bP(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {
- _P(e.id, { rating: t }), H.setQueryData(["item", e.id], (e) => e && {
+function ACe({ item: e, actions: t }) {
+ let { rating: n } = e, r = kH(), i = (0, F.useRef)(0), a = SP(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {
+ yP(e.id, { rating: t }), H.setQueryData(["item", e.id], (e) => e && {
...e,
rating: t
});
@@ -60785,11 +60844,11 @@ function kCe({ item: e, actions: t }) {
role: "group",
"aria-label": o,
title: o,
- children: [/* @__PURE__ */ (0, I.jsx)(uY, {
+ children: [/* @__PURE__ */ (0, I.jsx)(fY, {
value: a,
onRate: c,
busyStar: r.busy ? Number(r.busy) : void 0
- }), r.error ? /* @__PURE__ */ (0, I.jsx)(SV, {
+ }), r.error ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -60802,7 +60861,7 @@ function kCe({ item: e, actions: t }) {
}) : null]
});
}
-function dY(e) {
+function pY(e) {
if (e == null || e === "") return "—";
let t = String(e);
if (/^\d{4}-\d{2}-\d{2}$/.test(t)) return t;
@@ -60817,7 +60876,7 @@ function dY(e) {
});
}
// src/react/components/selection-actions.tsx
-function fY({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {
+function mY({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-selection-actions": "",
"data-action-layout": t,
@@ -60829,10 +60888,10 @@ function fY({ 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)(EH, {
+ }, e.label) : /* @__PURE__ */ (0, I.jsx)(OH, {
size: "small",
href: e.href,
- trailingIcon: MB,
+ trailingIcon: PB,
className: t === "inline" ? "shrink-0" : "w-full",
disabled: e.disabled,
onClick: r,
@@ -60841,15 +60900,15 @@ function fY({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {
});
}
// src/react/components/selection-popover.tsx
-function pY({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i, actions: a, actionLayout: o = "inline", empty: s = "暂无可选项" }) {
- let c = (0, F.useRef)(null), [l, u] = (0, F.useState)(!1), d = /* @__PURE__ */ (0, I.jsx)(fY, {
+function hY({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i, actions: a, actionLayout: o = "inline", empty: s = "暂无可选项" }) {
+ let c = (0, F.useRef)(null), [l, u] = (0, F.useState)(!1), d = /* @__PURE__ */ (0, I.jsx)(mY, {
actions: a,
layout: o,
onNavigate: () => u(!1)
}, "actions"), f = /* @__PURE__ */ (0, I.jsx)("div", {
"data-selection-options": "",
className: "flex min-w-0 flex-col gap-1",
- children: r.length ? r.map((e) => /* @__PURE__ */ (0, I.jsx)(ZV, {
+ children: r.length ? r.map((e) => /* @__PURE__ */ (0, I.jsx)($V, {
isSelected: e.selected,
className: "min-w-0 [&>span:last-child]:min-w-0 [&>span:last-child]:wrap-anywhere",
isDisabled: e.disabled,
@@ -60869,14 +60928,14 @@ function pY({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i,
"aria-label": t,
onClick: () => u(!0),
children: t
- }), /* @__PURE__ */ (0, I.jsx)(Tz, {
+ }), /* @__PURE__ */ (0, I.jsx)(Dz, {
triggerRef: c,
isOpen: l,
onOpenChange: u,
placement: "bottom end",
offset: 4,
- className: q(WV, "w-max overscroll-contain"),
- children: ({ placement: t }) => /* @__PURE__ */ (0, I.jsx)(AH, {
+ className: q(KV, "w-max overscroll-contain"),
+ children: ({ placement: t }) => /* @__PURE__ */ (0, I.jsx)(MH, {
"aria-label": e,
"data-selection-placement": t ?? "bottom",
className: "flex w-max max-w-full flex-col gap-2 outline-none",
@@ -60885,13 +60944,13 @@ function pY({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i,
})] });
}
// src/react/components/table-column-controls.tsx
-function mY({ preferences: e, label: t = "表格" }) {
+function gY({ preferences: e, label: t = "表格" }) {
let n = e.columns.filter((e) => !e.required);
return /* @__PURE__ */ (0, I.jsxs)("div", {
role: "group",
"aria-label": `${t}列设置`,
className: "flex flex-none gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(pY, {
+ children: [/* @__PURE__ */ (0, I.jsx)(hY, {
label: `${t}显示列`,
triggerLabel: "显示列",
actionLayout: "fullWidth",
@@ -60919,39 +60978,39 @@ function mY({ preferences: e, label: t = "表格" }) {
})]
});
}
-function hY({ preferences: e, id: t }) {
+function _Y({ preferences: e, id: t }) {
let n = e.columns.find((e) => e.id === t);
- return e.canResize(t) ? /* @__PURE__ */ (0, I.jsx)(Zme, { "aria-label": `调整${n.label}列宽` }) : null;
+ return e.canResize(t) ? /* @__PURE__ */ (0, I.jsx)(Yme, { "aria-label": `调整${n.label}列宽` }) : null;
}
// src/react/components/table-selection-header.tsx
-function gY(e, t) {
+function vY(e, t) {
let n = (t ? e.getPaginatedRowModel() : e.getFilteredRowModel()).flatRows.filter((e) => e.getCanSelect()), r = n.filter((e) => e.getIsSelected()).length;
return {
all: n.length > 0 && r === n.length,
some: r > 0 && r < n.length
};
}
-function _Y({ table: e, label: t, page: n = !1, disabled: r = !1 }) {
- let { all: i, some: a } = gY(e, n);
- return /* @__PURE__ */ (0, I.jsx)(ZV, {
+function yY({ table: e, label: t, page: n = !1, disabled: r = !1 }) {
+ let { all: i, some: a } = vY(e, n);
+ return /* @__PURE__ */ (0, I.jsx)($V, {
slot: null,
"aria-label": t,
isDisabled: r,
isSelected: i,
isIndeterminate: a,
onChange: () => {
- let t = !gY(e, n).all;
+ let t = !vY(e, n).all;
n ? e.toggleAllPageRowsSelected(t) : e.toggleAllRowsSelected(t);
}
});
}
// src/react/catalog-grid/catalog-list-page.tsx
-var ACe = Kq({
- rowSortingFeature: WJ,
- rowSelectionFeature: jJ,
- rowPaginationFeature: uJ,
- columnVisibilityFeature: eJ
-}), jCe = [
+var jCe = Jq({
+ rowSortingFeature: KJ,
+ rowSelectionFeature: NJ,
+ rowPaginationFeature: fJ,
+ columnVisibilityFeature: nJ
+}), MCe = [
{
id: "name",
label: "名称"
@@ -60988,12 +61047,12 @@ var ACe = Kq({
id: "played",
label: "观看时间"
}
-], vY = /* @__PURE__ */ new Map();
-function MCe(e) {
- let t = OCe(), n = aK(), r = pP(e.filters || {}, !1), [i] = (0, F.useState)(() => {
+], bY = /* @__PURE__ */ new Map();
+function NCe(e) {
+ let t = kCe(), n = sK(), r = hP(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)(() => vY.get(i) || {
+ }), [a, o] = (0, F.useState)(() => bY.get(i) || {
sorting: [],
pagination: {
pageIndex: 0,
@@ -61001,7 +61060,7 @@ function MCe(e) {
}
}), { sorting: s, pagination: c } = a;
(0, F.useEffect)(() => {
- vY.set(i, a);
+ bY.set(i, a);
}, [i, a]);
let l = c.pageIndex * c.pageSize, u = s[0], d = Pt({
queryKey: [
@@ -61027,9 +61086,9 @@ function MCe(e) {
let i = new URLSearchParams(r);
return i.set("offset", String(l)), i.set("limit", String(n.limit)), i.delete("count"), n.sort && i.set("sort", n.sort), n.dir && i.set("dir", n.dir), B(`/api/items?${i}`, t);
}
- }), f = d.data?.items || [], p = Number(d.data?.total || 0), m = e.filters?.state === "trash" ? [] : XK(f, e.layout.javImage), [h] = (0, F.useState)(QJ);
+ }), f = d.data?.items || [], p = Number(d.data?.total || 0), m = e.filters?.state === "trash" ? [] : QK(f, e.layout.javImage), [h] = (0, F.useState)(eY);
(0, F.useEffect)(() => {
- d.data && !d.isPlaceholderData && CCe(m.length > 0);
+ d.data && !d.isPlaceholderData && wCe(m.length > 0);
}, [
d.data,
d.isPlaceholderData,
@@ -61061,19 +61120,19 @@ function MCe(e) {
p,
c.pageIndex
]);
- let g = e.selectMode ? Object.fromEntries([...e.selected].map((e) => [String(e), !0])) : {}, _ = GJ({
- features: ACe,
+ let g = e.selectMode ? Object.fromEntries([...e.selected].map((e) => [String(e), !0])) : {}, _ = qJ({
+ features: jCe,
columns: (0, F.useMemo)(() => {
- let t = Gq();
+ let t = qq();
return t.columns([
t.display({
id: "select",
- header: ({ table: e }) => /* @__PURE__ */ (0, I.jsx)(_Y, {
+ header: ({ table: e }) => /* @__PURE__ */ (0, I.jsx)(yY, {
table: e,
label: "全选本页作品",
disabled: d.isPlaceholderData
}),
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(ZV, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)($V, {
slot: null,
"aria-label": `选择 ${e.helpers.displayName(t.original, t.original.name || "")}`,
isDisabled: d.isPlaceholderData,
@@ -61085,7 +61144,7 @@ function MCe(e) {
id: "name",
header: "作品",
enableSorting: !0,
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(NCe, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(PCe, {
item: t.original,
props: e,
disabled: d.isPlaceholderData
@@ -61142,7 +61201,7 @@ function MCe(e) {
id: "rating",
header: "评分",
enableSorting: !0,
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(kCe, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(ACe, {
item: t.original,
actions: e.actions
})
@@ -61163,13 +61222,13 @@ function MCe(e) {
id: "played",
header: "观看时间",
enableSorting: !0,
- cell: ({ row: e }) => dY(e.original.last_played)
+ cell: ({ row: e }) => pY(e.original.last_played)
}),
t.accessor((e) => e.first_seen, {
id: "new",
header: "入库时间",
enableSorting: !0,
- cell: ({ row: e }) => dY(e.original.first_seen)
+ cell: ({ row: e }) => pY(e.original.first_seen)
}),
t.accessor((e) => e.release_date, {
id: "release",
@@ -61229,9 +61288,9 @@ function MCe(e) {
"aria-label": "作品列表工具栏",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-toolbar-actions": "",
- children: [/* @__PURE__ */ (0, I.jsx)(mY, { preferences: t }), /* @__PURE__ */ (0, I.jsx)(iY, {
+ children: [/* @__PURE__ */ (0, I.jsx)(gY, { preferences: t }), /* @__PURE__ */ (0, I.jsx)(oY, {
label: "作品列表",
- options: jCe,
+ options: MCe,
sorting: s,
onChange: (e) => _.setSorting(e)
})]
@@ -61241,21 +61300,21 @@ function MCe(e) {
"data-completion-skeleton": "",
"aria-hidden": "true",
className: "skeleton-sheen"
- }) : null : /* @__PURE__ */ (0, I.jsx)(ZK, {
+ }) : null : /* @__PURE__ */ (0, I.jsx)($K, {
className: "",
assetIds: m
}),
- d.isError ? /* @__PURE__ */ (0, I.jsx)(GG, {
+ d.isError ? /* @__PURE__ */ (0, I.jsx)(qG, {
message: bn(d.error),
onRetry: () => void d.refetch()
}) : null,
- /* @__PURE__ */ (0, I.jsx)(tY, {
+ /* @__PURE__ */ (0, I.jsx)(rY, {
follow: !0,
preferences: t,
onRowClick: e.selectMode ? (t) => {
d.isPlaceholderData || e.actions.toggleSelection(Number(t), !1);
} : void 0,
- children: /* @__PURE__ */ (0, I.jsxs)(KJ, {
+ children: /* @__PURE__ */ (0, I.jsxs)(JJ, {
"aria-label": "作品列表",
size: "sm",
sortDescriptor: u ? {
@@ -61266,48 +61325,48 @@ function MCe(e) {
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, I.jsxs)(pB, { children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(mB, {
+ children: [/* @__PURE__ */ (0, I.jsxs)(hB, { children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(gB, {
id: e.id,
isRowHeader: e.id === "name",
allowsSorting: e.column.getCanSort(),
...t.columnProps(e.id),
children: ({ sortDirection: n }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex items-center gap-0.5",
- children: [QK(e.column.columnDef.header, e.getContext()), e.column.getCanSort() ? /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [eq(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)(VV, {})
+ children: /* @__PURE__ */ (0, I.jsx)(UV, {})
}) : null]
- }), /* @__PURE__ */ (0, I.jsx)(hY, {
+ }), /* @__PURE__ */ (0, I.jsx)(_Y, {
preferences: t,
id: e.id
})] })
- }, e.id)), /* @__PURE__ */ (0, I.jsx)(mB, {
+ }, e.id)), /* @__PURE__ */ (0, I.jsx)(gB, {
id: "remaining-space",
"aria-label": "行空白区域",
"data-table-space": "",
width: t.spaceWidth,
minWidth: 0
- })] }), /* @__PURE__ */ (0, I.jsx)(_B, {
+ })] }), /* @__PURE__ */ (0, I.jsx)(yB, {
renderEmptyState: () => d.isError ? "作品列表未取得" : "没有符合的作品",
- children: d.isPending ? Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, I.jsxs)(bB, {
+ children: d.isPending ? Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, I.jsxs)(SB, {
id: `skeleton-${t}`,
"data-list-skeleton-row": "",
"aria-hidden": "true",
- children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(SB, { children: /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: $J(e.id) } }) }, e.id)), /* @__PURE__ */ (0, I.jsx)(SB, { "data-table-space": "" })]
- }, `skeleton-${t}`)) : _.getRowModel().rows.map((e) => /* @__PURE__ */ (0, I.jsxs)(bB, {
+ children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(wB, { children: /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: tY(e.id) } }) }, e.id)), /* @__PURE__ */ (0, I.jsx)(wB, { "data-table-space": "" })]
+ }, `skeleton-${t}`)) : _.getRowModel().rows.map((e) => /* @__PURE__ */ (0, I.jsxs)(SB, {
id: e.id,
"data-catalog-row": "",
"data-id": e.original.id,
"data-guide-video": (!e.original.medium || e.original.medium === "video") && e.original.location !== "online" && !String(e.original.name || "").toLowerCase().endsWith(".iso") ? "" : void 0,
"data-library": n.get(e.original.library_id || "")?.color ? e.original.library_id : void 0,
"data-board-selected": e.getIsSelected() || void 0,
- children: [e.getVisibleCells().map((e) => /* @__PURE__ */ (0, I.jsx)(SB, { children: QK(e.column.columnDef.cell, e.getContext()) }, e.id)), /* @__PURE__ */ (0, I.jsx)(SB, { "data-table-space": "" })]
+ children: [e.getVisibleCells().map((e) => /* @__PURE__ */ (0, I.jsx)(wB, { children: eq(e.column.columnDef.cell, e.getContext()) }, e.id)), /* @__PURE__ */ (0, I.jsx)(wB, { "data-table-space": "" })]
}, e.id))
})]
})
}),
- d.data ? /* @__PURE__ */ (0, I.jsx)(aY, {
+ d.data ? /* @__PURE__ */ (0, I.jsx)(sY, {
label: "作品列表",
total: p,
pagination: c,
@@ -61318,10 +61377,10 @@ function MCe(e) {
]
});
}
-function NCe({ item: e, props: t, disabled: n }) {
+function PCe({ 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() || "未命名作品";
- _L();
- let { avatar: l, who: u } = mK(e), d = !i && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, f = aK({ names: !0 }), p = e.library_id ? f.get(e.library_id) : void 0, m = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), h = (e) => /* @__PURE__ */ (0, I.jsx)("svg", {
+ yL();
+ let { avatar: l, who: u } = gK(e), d = !i && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, f = sK({ names: !0 }), p = e.library_id ? f.get(e.library_id) : void 0, m = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), h = (e) => /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
@@ -61346,7 +61405,7 @@ function NCe({ item: e, props: t, disabled: n }) {
children: /* @__PURE__ */ (0, I.jsxs)("span", {
"data-list-picture": "",
children: [
- r.html ? /* @__PURE__ */ (0, I.jsx)(aW, {
+ r.html ? /* @__PURE__ */ (0, I.jsx)(sW, {
artwork: r,
relayout: (e) => Cl(e, "small")
}) : /* @__PURE__ */ (0, I.jsx)("span", { children: "无预览" }),
@@ -61401,7 +61460,7 @@ function NCe({ 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)($H, { mark: p.icon }), p.name]
+ children: [/* @__PURE__ */ (0, I.jsx)(tU, { mark: p.icon }), p.name]
}) : null, u]
})]
})
@@ -61409,22 +61468,22 @@ function NCe({ item: e, props: t, disabled: n }) {
});
}
// src/react/catalog-grid/catalog-grid-page.tsx
-function yY(e) {
- let t = mG();
- if (e.mode === "items") return /* @__PURE__ */ (0, I.jsx)(FCe, { ...e });
- let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${pP(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
- if (t === "list" && !e.wall) return /* @__PURE__ */ (0, I.jsx)(MCe, { ...e }, n);
+function xY(e) {
+ let t = gG();
+ if (e.mode === "items") return /* @__PURE__ */ (0, I.jsx)(ICe, { ...e });
+ let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${hP(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
+ if (t === "list" && !e.wall) return /* @__PURE__ */ (0, I.jsx)(NCe, { ...e }, n);
let r = e.mode === "entity" ? "entity" : `catalog:${!!e.wall}`;
- return /* @__PURE__ */ (0, I.jsx)(ICe, { ...e }, r);
+ return /* @__PURE__ */ (0, I.jsx)(LCe, { ...e }, r);
}
-function PCe({ name: e }) {
+function FCe({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function bY({ children: e, selectMode: t }) {
+function SY({ children: e, selectMode: t }) {
let n = (0, F.useRef)(null), [r, i] = (0, F.useState)(!1);
return (0, F.useLayoutEffect)(() => {
let e = n.current;
@@ -61440,8 +61499,8 @@ function bY({ children: e, selectMode: t }) {
children: e
});
}
-function FCe(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)(gK, {
+function ICe(e) {
+ let { actions: t } = e, n = (0, F.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, I.jsx)(vK, {
item: i,
variant: r,
layout: e.layout,
@@ -61455,13 +61514,13 @@ function FCe(e) {
return r === "next" ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-media-next-row": "",
children: i
- }) : /* @__PURE__ */ (0, I.jsx)(bY, {
+ }) : /* @__PURE__ */ (0, I.jsx)(SY, {
selectMode: e.selectMode,
children: i
});
}
-function ICe(e) {
- let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Tue(e) : wue(e), [s] = (0, F.useState)(() => e.wall ? mP(o.queryKey) : void 0), c = JSON.stringify(o.queryKey), l = (0, F.useMemo)(() => e.restoreNavigation ? mP(o.queryKey) : void 0, [c, e.restoreNavigation]) || s || (i && e.initial ? {
+function LCe(e) {
+ let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Cue(e) : Sue(e), [s] = (0, F.useState)(() => e.wall ? gP(o.queryKey) : void 0), c = JSON.stringify(o.queryKey), l = (0, F.useMemo)(() => e.restoreNavigation ? gP(o.queryKey) : void 0, [c, e.restoreNavigation]) || s || (i && e.initial ? {
pages: [{
...e.initial,
items: e.initial.items || [],
@@ -61487,7 +61546,7 @@ function ICe(e) {
u.isPlaceholderData,
e.revision
]);
- let { tiles: f, pageStarts: p } = (0, F.useMemo)(() => Due(u.data?.pages || [], {
+ let { tiles: f, pageStarts: p } = (0, F.useMemo)(() => Tue(u.data?.pages || [], {
collapse: e.groupCollapse !== !1,
mix: !!e.mix && !a,
javImage: r.javImage
@@ -61497,7 +61556,7 @@ function ICe(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 || Mbe(e.filters), _ = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, v = f.flatMap((e) => e.kind === "card" && Ebe(e.item) ? [e.item] : []), y = a ? [] : XK(f.flatMap((e) => e.kind === "card" ? [e.item] : []), r.javImage), b = (0, F.useRef)(null), x = LCe(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 || Nbe(e.filters), _ = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, v = f.flatMap((e) => e.kind === "card" && Dbe(e.item) ? [e.item] : []), y = a ? [] : QK(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);
(0, F.useLayoutEffect)(() => {
if (!u.data || u.isPlaceholderData) return;
let t = !0;
@@ -61525,12 +61584,12 @@ function ICe(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)(zCe, {
+ }, [u.fetchNextPage]), D = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)(BCe, {
seed: i.seed,
layout: r,
helpers: t,
actions: n
- }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, I.jsx)(gK, {
+ }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, I.jsx)(vK, {
item: i.item,
grouped: e.groupCollapse !== !1,
variant: a && i.item.medium && i.item.medium !== "video" ? "resource" : "grid",
@@ -61542,8 +61601,8 @@ function ICe(e) {
actions: n,
onOpen: a ? w : C
}, i.item.id), O = () => {
- if (_ && e.wall) return /* @__PURE__ */ (0, I.jsx)(Vbe, {
- sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${pP(e.filters || {}, !!e.excludeVertical)}`,
+ if (_ && e.wall) return /* @__PURE__ */ (0, I.jsx)(Hbe, {
+ sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${hP(e.filters || {}, !!e.excludeVertical)}`,
items: v,
finite: g,
hasMore: !!u.hasNextPage,
@@ -61551,7 +61610,7 @@ function ICe(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 ? Wbe({
+ emptyHtml: u.data && !v.length ? Gbe({
libraryEmpty: !!u.data.pages[0]?.libraryEmpty,
matches: h,
hasMore: !!u.hasNextPage,
@@ -61566,7 +61625,7 @@ function ICe(e) {
javImage: r.javImage
}, g ? "finite" : "explore");
if (u.isPending) return null;
- if (!u.data) return /* @__PURE__ */ (0, I.jsx)(GG, {
+ if (!u.data) return /* @__PURE__ */ (0, I.jsx)(qG, {
message: bn(u.error),
onRetry: () => void u.refetch()
});
@@ -61583,12 +61642,12 @@ function ICe(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: Aue(f, x).map((t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(bY, { children: t.tiles.map(D) }), t.strip ? /* @__PURE__ */ (0, I.jsx)(RCe, {
+ children: Oue(f, x).map((t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(SY, { children: t.tiles.map(D) }), t.strip ? /* @__PURE__ */ (0, I.jsx)(zCe, {
cut: t.strip,
props: e,
onOpen: T
}) : null] }, t.start))
- }), u.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(xY, {
+ }), u.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(CY, {
entity: i,
load: E,
enabled: () => !u.isPlaceholderData && e.canLoadMore?.() !== !1
@@ -61598,14 +61657,14 @@ function ICe(e) {
ref: b,
"data-media-body": "",
"aria-busy": u.isFetching && !u.isFetchingNextPage,
- children: [/* @__PURE__ */ (0, I.jsx)(ZK, { assetIds: y }), e.wall ? O() : /* @__PURE__ */ (0, I.jsx)(KG, {
+ children: [/* @__PURE__ */ (0, I.jsx)($K, { assetIds: y }), e.wall ? O() : /* @__PURE__ */ (0, I.jsx)(JG, {
pending: u.isPending,
skeletonHtml: e.skeletonHtml,
children: O()
})]
});
}
-function xY({ entity: e, load: t, enabled: n, children: r }) {
+function CY({ entity: e, load: t, enabled: n, children: r }) {
let i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(!1), s = (0, F.useRef)(!1), [c, l] = (0, F.useState)({
busy: !1,
error: ""
@@ -61647,7 +61706,7 @@ function xY({ entity: e, load: t, enabled: n, children: r }) {
if (!e) return;
let t = new IntersectionObserver((e) => {
e.some((e) => e.isIntersecting) && d(!1);
- }, { rootMargin: WG });
+ }, { rootMargin: KG });
return a.current = t, t.observe(e), () => {
t.disconnect(), a.current = null;
};
@@ -61670,18 +61729,18 @@ function xY({ entity: e, load: t, enabled: n, children: r }) {
hidden: !!c.error,
onClick: () => void d(!0),
dangerouslySetInnerHTML: { __html: Vs(Bs) }
- }), c.error ? /* @__PURE__ */ (0, I.jsx)(GG, {
+ }), c.error ? /* @__PURE__ */ (0, I.jsx)(qG, {
message: c.error,
onRetry: () => void d(!0)
}) : null] });
}
-function LCe(e, t, n, r, i) {
- let a = ["catalog-short-layout", pP(e.filters || {}, !!e.excludeVertical)], o = `${a[1]}:${e.revision}`, s = () => {
+function RCe(e, t, n, r, i) {
+ let a = ["catalog-short-layout", hP(e.filters || {}, !!e.excludeVertical)], o = `${a[1]}:${e.revision}`, s = () => {
let t = e.restoreNavigation ? H.getQueryData(a) : void 0, n = {
parts: /* @__PURE__ */ new Set(),
editions: /* @__PURE__ */ new Set()
};
- return t && hP(t.cuts.flatMap((e) => e.items), n, e.groupCollapse !== !1), {
+ return t && _P(t.cuts.flatMap((e) => e.items), n, e.groupCollapse !== !1), {
stamp: o,
cuts: t?.cuts || [],
offset: t?.offset || 0,
@@ -61707,7 +61766,7 @@ function LCe(e, t, n, r, i) {
let r = new AbortController();
p.controllers.push(r);
let i = n - 1;
- B(`/api/items?${kue(e.filters || {}, p.offset)}`, r.signal).then((e) => {
+ B(`/api/items?${Due(e.filters || {}, p.offset)}`, r.signal).then((e) => {
if (c.current !== p || r.signal.aborted) return;
let t = e.items || [];
t.length ? f({
@@ -61721,9 +61780,9 @@ function LCe(e, t, n, r, i) {
}, [t, p]), (0, F.useLayoutEffect)(() => {
if (!d || d.stamp !== o) return;
f(null);
- let t = m.reduce((e, t) => Math.max(e, t.at), 0), s = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), c = s?.[s.length - 1], l = c ? Math.max(1, getComputedStyle(c).gridTemplateColumns.split(" ").length) : 1, h = Math.max(0, (r[d.page] ?? 0) - t), g = Oue(n.length - t, h, l);
+ let t = m.reduce((e, t) => Math.max(e, t.at), 0), s = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), c = s?.[s.length - 1], l = c ? Math.max(1, getComputedStyle(c).gridTemplateColumns.split(" ").length) : 1, h = Math.max(0, (r[d.page] ?? 0) - t), g = Eue(n.length - t, h, l);
if (!g.length) return;
- let _ = hP(d.items, p.groups, e.groupCollapse !== !1);
+ let _ = _P(d.items, p.groups, e.groupCollapse !== !1);
if (p.offset = d.more ? p.offset + 18 : 0, !_.length) return;
let v = t + (g[Math.floor(Math.random() * g.length)] ?? 0), y = [...m, {
at: v,
@@ -61740,7 +61799,7 @@ function LCe(e, t, n, r, i) {
});
}, [d]), m;
}
-function RCe({ cut: e, props: t, onOpen: n }) {
+function zCe({ cut: e, props: t, onOpen: n }) {
let r = (0, F.useRef)(null), { wireDrag: i } = t;
return (0, F.useEffect)(() => {
r.current && i(r.current);
@@ -61756,12 +61815,12 @@ function RCe({ cut: e, props: t, onOpen: n }) {
type: "button",
"data-shorts-enter": "",
onClick: () => t.actions.openShorts(),
- children: [/* @__PURE__ */ (0, I.jsx)(PCe, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "进入沉浸模式" })]
+ children: [/* @__PURE__ */ (0, I.jsx)(FCe, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "进入沉浸模式" })]
})
] }), /* @__PURE__ */ (0, I.jsx)("div", {
ref: r,
"data-shorts-row": "",
- children: e.items.map((e) => /* @__PURE__ */ (0, I.jsx)(gK, {
+ children: e.items.map((e) => /* @__PURE__ */ (0, I.jsx)(vK, {
item: e,
variant: "short",
layout: t.layout,
@@ -61776,17 +61835,17 @@ function RCe({ cut: e, props: t, onOpen: n }) {
})]
});
}
-function SY(e, t, n) {
+function wY(e, t, n) {
return To(e, t.active && e.is_jav ? t.size : "small", n, t.javImage);
}
-function zCe({ seed: e, layout: t, helpers: n, actions: r }) {
+function BCe({ seed: e, layout: t, helpers: n, actions: r }) {
let i = (0, F.useRef)(/* @__PURE__ */ new Map()), a = (0, F.useRef)(t);
a.current = t;
let o = jo(e, n.tagLabel), s = (0, F.useCallback)(async () => {
- let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => gP(e, t.javImage)).slice(0, 9);
- return i.current = new Map(n.map((e) => [String(e.id), SY(e, t, !0).html])), n.map((e) => String(e.id));
- }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = SY(e, t, !1);
- return /* @__PURE__ */ (0, I.jsx)(bK, {
+ let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => vP(e, t.javImage)).slice(0, 9);
+ return i.current = new Map(n.map((e) => [String(e.id), wY(e, t, !0).html])), n.map((e) => String(e.id));
+ }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = wY(e, t, !1);
+ return /* @__PURE__ */ (0, I.jsx)(SK, {
"data-mix-seed": String(e.id),
name: `Mix · ${o}`,
caption: `${n.displayName(e, e.name || "")}及相似作品`,
@@ -61796,12 +61855,12 @@ function zCe({ seed: e, layout: t, helpers: n, actions: r }) {
wholeCard: !0,
poster: null,
artwork: l,
- artworkIdentity: c === "small" ? l.html : SY(e, {
+ artworkIdentity: c === "small" ? l.html : wY(e, {
...t,
size: "small"
}, !1).html,
relayoutArt: (e) => Cl(e, c),
- ratio: pK(e, "grid", t),
+ ratio: hK(e, "grid", t),
flipImages: s,
faceHtml: (e) => i.current.get(e) || "",
canFlip: r.canFlip,
@@ -61812,37 +61871,37 @@ function zCe({ seed: e, layout: t, helpers: n, actions: r }) {
});
}
// src/react/media-sources.ts
-async function CY(e) {
+async function TY(e) {
await H.fetchQuery({
queryKey: vr,
queryFn: () => yr(e)
});
}
-var BCe = (e) => (e?.sources ?? []).filter((e) => _n.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), VCe = "/api/duplicates?limit=120", wY = ["duplicates"], TY = "/api/batch", EY = (e) => B(VCe, e), HCe = /[\s\-_.()[\]【】/\\]/;
-function UCe(e) {
+var VCe = (e) => (e?.sources ?? []).filter((e) => _n.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), HCe = "/api/duplicates?limit=120", EY = ["duplicates"], DY = "/api/batch", OY = (e) => B(HCe, e), UCe = /[\s\-_.()[\]【】/\\]/;
+function WCe(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 && !HCe.test(n[r - 1]);) --r;
+ for (; r > 0 && !UCe.test(n[r - 1]);) --r;
return r >= 8 ? n.slice(0, r) : "";
}
-var WCe = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;
-async function GCe(e) {
+var GCe = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;
+async function KCe(e) {
await Promise.all([H.fetchQuery({
- queryKey: wY,
- queryFn: () => EY(e)
- }), CY(e)]);
+ queryKey: EY,
+ queryFn: () => OY(e)
+ }), TY(e)]);
}
-var KCe = {
+var qCe = {
largest: "最大的一个",
longest: "最长的一个",
115: "115(没有则留最大)",
pikpak: "PikPak(没有则留最大)",
all: "零个文件"
-}, qCe = (e, t) => t.filter((t) => e.some((e) => e.location === t)), DY = (e, t) => qCe(e, t).filter((t) => e.some((e) => e.location !== t)), JCe = (e, t) => t.filter((t) => e.some((e) => DY(e.files, [t]).length));
-function YCe(e, t) {
+}, JCe = (e, t) => t.filter((t) => e.some((e) => e.location === t)), kY = (e, t) => JCe(e, t).filter((t) => e.some((e) => e.location !== t)), YCe = (e, t) => t.filter((t) => e.some((e) => kY(e.files, [t]).length));
+function XCe(e, t) {
let n = [];
for (let r of e) {
if (t === "all") {
@@ -61861,19 +61920,19 @@ function YCe(e, t) {
}
return n;
}
-function XCe(e, t) {
+function ZCe(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 ZCe(e, t) {
- for (let n = 0; n < e.length; n += 200) await V(TY, {
+async function QCe(e, t) {
+ for (let n = 0; n < e.length; n += 200) await V(DY, {
ids: e.slice(n, n + 200),
operation: t,
...t === "dispose" ? { disposal_reason: "duplicate" } : {}
});
}
// src/react/media-repair/media-repair.ts
-var OY = "/api/media-repair", kY = ["media-repair"], AY = ["media-repair", "libraries"], QCe = {
+var AY = "/api/media-repair", jY = ["media-repair"], MY = ["media-repair", "libraries"], $Ce = {
status: "idle",
library: "",
stage: "",
@@ -61885,39 +61944,39 @@ var OY = "/api/media-repair", kY = ["media-repair"], AY = ["media-repair", "libr
missing_tool: 0,
skipped: 0,
message: ""
-}, jY = (e) => B(OY, e), MY = async (e) => (await B("/api/libraries", e)).libraries || [];
-async function $Ce(e) {
+}, NY = (e) => B(AY, e), PY = async (e) => (await B("/api/libraries", e)).libraries || [];
+async function ewe(e) {
await Promise.all([H.fetchQuery({
- queryKey: kY,
- queryFn: () => jY(e)
+ queryKey: jY,
+ queryFn: () => NY(e)
}), H.fetchQuery({
- queryKey: AY,
- queryFn: () => MY(e)
+ queryKey: MY,
+ queryFn: () => PY(e)
})]);
}
-var NY = (e) => Number(e).toLocaleString();
-function ewe(e) {
+var FY = (e) => Number(e).toLocaleString();
+function twe(e) {
if (e.status === "running") {
- let t = e.total ? `${NY(Math.min(e.checked || 0, e.total))} / ${NY(e.total)}` : "准备中";
+ let t = e.total ? `${FY(Math.min(e.checked || 0, e.total))} / ${FY(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${NY(e.repaired)} 部,${NY(e.failed)} 部修不了` : `修好 ${NY(e.repaired)} 部` : "";
+ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${FY(e.repaired)} 部,${FY(e.failed)} 部修不了` : `修好 ${FY(e.repaired)} 部` : "";
}
-var twe = (e) => `${NY(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, nwe = "/api/quality-goals?limit=200", PY = ["quality-goals"], FY = (e) => B(nwe, e);
-async function rwe(e) {
+var nwe = (e) => `${FY(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, rwe = "/api/quality-goals?limit=200", IY = ["quality-goals"], LY = (e) => B(rwe, e);
+async function iwe(e) {
await H.fetchQuery({
- queryKey: PY,
- queryFn: () => FY(e)
+ queryKey: IY,
+ queryFn: () => LY(e)
});
}
-var iwe = (e) => e.has_cover ? co(e) : `/poster?id=${e.id}&c=4`;
+var awe = (e) => e.has_cover ? co(e) : `/poster?id=${e.id}&c=4`;
// src/selection.ts
-function IY(e, t, n, r, i, a = i || !e.has(r)) {
+function RY(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 awe = "/api/review", owe = "/api/review/decision", swe = "/api/review/genre", LY = ["review"], RY = {
+var owe = "/api/review", swe = "/api/review/decision", cwe = "/api/review/genre", zY = ["review"], BY = {
metadata_fields: "元数据字段",
creator_tags: "创作者标签",
studio_logos: "厂牌 Logo",
@@ -61927,40 +61986,40 @@ var awe = "/api/review", owe = "/api/review/decision", swe = "/api/review/genre"
fc2_markings: "FC2 评论标记",
fc2_similarity: "FC2 跨号相似",
video_endcards: "片尾/出处证据"
-}, cwe = Object.keys(RY), lwe = "metadata_fields", zY = (e) => typeof e == "string" && Object.hasOwn(RY, e), uwe = {
+}, lwe = Object.keys(BY), uwe = "metadata_fields", VY = (e) => typeof e == "string" && Object.hasOwn(BY, e), dwe = {
creator_tags: "creator",
western_identity: "creator"
-}, BY = [
+}, HY = [
"pending",
"later",
"ignored"
-], VY = {
+], UY = {
pending: "待处理",
later: "稍后处理",
ignored: "已忽略"
-}, dwe = {
+}, fwe = {
approved: "已通过",
rejected: "已忽略",
skipped: "稍后处理"
-}, HY = (e) => e === "later" || e === "ignored" ? e : "pending", UY = (e, t) => t === "pending" ? {
+}, WY = (e) => e === "later" || e === "ignored" ? e : "pending", GY = (e, t) => t === "pending" ? {
sections: e.sections,
counts: e.counts
} : e.queues[t];
-function fwe(e, t) {
+function pwe(e, t) {
return {
...e,
- ...t(UY(e, "pending")),
+ ...t(GY(e, "pending")),
queues: {
later: t(e.queues.later),
ignored: t(e.queues.ignored)
}
};
}
-function pwe(e, t) {
+function mwe(e, t) {
let n = [["candidates", t ? "按来源数量" : "不分组"]];
return e.some((e) => e.source || e.candidates?.some((e) => e.source)) && n.push(["source", "按来源"]), e.some((e) => e.field) && n.push(["field", "按字段"]), n;
}
-function WY(e, t) {
+function KY(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e) {
let e, i;
@@ -61977,10 +62036,10 @@ function WY(e, t) {
}
return [...n.values()];
}
-function mwe(e, t, n) {
- return n && WY(e, t).find((e) => e.key === n)?.rows || e;
+function hwe(e, t, n) {
+ return n && KY(e, t).find((e) => e.key === n)?.rows || e;
}
-function hwe(e, t) {
+function gwe(e, t) {
let n = hr(e.length, 20), r = gr(t, n);
return {
page: r,
@@ -61988,32 +62047,32 @@ function hwe(e, t) {
rows: e.slice((r - 1) * 20, r * 20)
};
}
-function gwe(e) {
+function _we(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 _we(e, t, n, r, i, a) {
- return IY(e, t, n, r, i, a);
+function vwe(e, t, n, r, i, a) {
+ return RY(e, t, n, r, i, a);
}
-function vwe(e, t) {
+function ywe(e, t) {
return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";
}
-function GY(e, t) {
+function qY(e, t) {
return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);
}
-var KY = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
-function ywe(e, t) {
- let n = GY(e, t), r = KY(e, t);
+var JY = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
+function bwe(e, t) {
+ let n = qY(e, t), r = JY(e, t);
return r ? `${n} · ${r}` : n;
}
-var bwe = (e) => e.reason || e.evidence || e.note || e.decision_note || "", xwe = (e) => String(e.tags || "").split("|").filter(Boolean), Swe = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
-function Cwe(e) {
+var xwe = (e) => e.reason || e.evidence || e.note || e.decision_note || "", Swe = (e) => String(e.tags || "").split("|").filter(Boolean), Cwe = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
+function wwe(e) {
let t = e.candidates || [];
return {
candidateKey: t.length === 1 ? t[0].candidate_key : "",
assets: (e.preview_assets || []).map((e) => e.id)
};
}
-function wwe(e, t, n, r) {
+function Twe(e, t, n, r) {
let i = !!t.asset_path && t.asset_mutation_revision != null;
return {
category: e,
@@ -62029,22 +62088,22 @@ function wwe(e, t, n, r) {
...i ? { expected_revision: t.asset_mutation_revision } : {}
};
}
-var Twe = (e) => ({
+var Ewe = (e) => ({
approved: "已通过资料",
rejected: "已忽略资料",
skipped: "已移至稍后处理",
restore: "已恢复待处理"
})[e];
-async function qY(e) {
- let t = await B(awe, e);
- for (let e of ["later", "ignored"]) if (!t.queues?.[e]?.sections || !t.queues[e].counts) throw Error(`${VY[e]}状态未取得,请刷新或更新写入端`);
+async function YY(e) {
+ let t = await B(owe, e);
+ for (let e of ["later", "ignored"]) if (!t.queues?.[e]?.sections || !t.queues[e].counts) throw Error(`${UY[e]}状态未取得,请刷新或更新写入端`);
return t;
}
-async function Ewe(e) {
- let t = await V(owe, e);
+async function Dwe(e) {
+ let t = await V(swe, e);
if (t.ok && t.asset_revisions) {
let e = t.asset_revisions;
- H.setQueryData(LY, (t) => t && fwe(t, (t) => ({
+ H.setQueryData(zY, (t) => t && pwe(t, (t) => ({
...t,
sections: {
...t.sections,
@@ -62060,33 +62119,33 @@ async function Ewe(e) {
}
return t;
}
-function Dwe(e, t) {
- let n = H.getQueryData(LY);
- return n && BY.flatMap((t) => UY(n, t).sections[e] || []).find((e) => e.item_key === t.item_key) || t;
+function Owe(e, t) {
+ let n = H.getQueryData(zY);
+ return n && HY.flatMap((t) => GY(n, t).sections[e] || []).find((e) => e.item_key === t.item_key) || t;
}
-var Owe = (e, t) => V(swe, {
+var kwe = (e, t) => V(cwe, {
genre: e,
tag: t
});
-async function kwe(e) {
+async function Awe(e) {
await H.fetchQuery({
- queryKey: LY,
- queryFn: () => qY(e)
+ queryKey: zY,
+ queryFn: () => YY(e)
});
}
-function Awe(e, t, n) {
+function jwe(e, t, n) {
let r = new Set(t);
- r.size && H.setQueryData(LY, (t) => {
+ r.size && H.setQueryData(zY, (t) => {
if (!t) return t;
- let i = BY.flatMap((n) => UY(t, n).sections[e] || []).filter((e) => r.has(e.item_key));
+ let i = HY.flatMap((n) => GY(t, n).sections[e] || []).filter((e) => r.has(e.item_key));
if (!i.length) return t;
let a = {
skipped: "later",
rejected: "ignored",
restore: "pending",
approved: null
- }[n], o = Object.fromEntries(BY.map((o) => {
- let s = UY(t, o), c = (s.sections[e] || []).filter((e) => !r.has(e.item_key)), l = a === o ? [...c, ...i.map((e) => ({
+ }[n], o = Object.fromEntries(HY.map((o) => {
+ let s = GY(t, o), c = (s.sections[e] || []).filter((e) => !r.has(e.item_key)), l = a === o ? [...c, ...i.map((e) => ({
...e,
decision: n === "restore" ? "pending" : n,
decision_note: ""
@@ -62113,272 +62172,272 @@ function Awe(e, t, n) {
};
});
}
-var jwe = () => H.invalidateQueries({
- queryKey: LY,
+var Mwe = () => H.invalidateQueries({
+ queryKey: zY,
exact: !0
});
-function Mwe(e, t) {
+function Nwe(e, t) {
return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${Sr(e.fetched_at)} 的缓存` : e?.error || t;
}
// src/react/data-cleanup/links.ts
-var Nwe = "/api/links", JY = "/api/links/check", YY = "/api/links/prune", XY = ["links"], ZY = ["links", "check"], QY = ["links", "prune"], Pwe = {
+var Pwe = "/api/links", XY = "/api/links/check", ZY = "/api/links/prune", QY = ["links"], $Y = ["links", "check"], eX = ["links", "prune"], Fwe = {
official: "官网/事务所",
social: "社交账号",
catalog: "作品资料站",
source_reference: "资料出处"
};
-async function $Y(e) {
+async function tX(e) {
let t = await e;
if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");
return t;
}
-var eX = (e) => B(Nwe, e), tX = (e) => V(JY, { status_only: !0 }, "POST", e), Fwe = ({ retry: e, checkId: t }) => $Y(V(JY, e ? {
+var nX = (e) => B(Pwe, e), rX = (e) => V(XY, { status_only: !0 }, "POST", e), Iwe = ({ retry: e, checkId: t }) => tX(V(XY, e ? {
retry: e,
check_id: t
-} : { restart: !0 })), nX = (e) => B(YY, e), Iwe = ({ checkId: e, ids: t }) => $Y(V(YY, {
+} : { restart: !0 })), iX = (e) => B(ZY, e), Lwe = ({ checkId: e, ids: t }) => tX(V(ZY, {
confirm: !0,
check_id: e,
background: !0,
...t ? { ids: t } : {}
-})), rX = (e) => Number(e || 0).toLocaleString(), Lwe = (e) => `已删除 ${rX(e.removed)} 条;${e.marked ? `已隐退女优的 ${rX(e.marked)} 条留作不可点的记录;` : ""}保留 ${rX(e.recovered)} 条未确认失效的链接。`;
-function Rwe(e) {
+})), aX = (e) => Number(e || 0).toLocaleString(), Rwe = (e) => `已删除 ${aX(e.removed)} 条;${e.marked ? `已隐退女优的 ${aX(e.marked)} 条留作不可点的记录;` : ""}保留 ${aX(e.recovered)} 条未确认失效的链接。`;
+function zwe(e) {
let t = e.scope === "retry";
- return e.total ? `${t ? "已重验" : "已检查"} ${rX(e.checked)} / ${rX(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
+ return e.total ? `${t ? "已重验" : "已检查"} ${aX(e.checked)} / ${aX(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
}
// src/configuration-endpoints.ts
-var iX = "/api/configuration", aX = "/api/pick-folder", oX = "/api/settings", sX = "/api/follow/schedule", cX = "/api/feeds/schedule", lX = "/api/thumbnail-jobs", uX = ["settings"], dX = ["follow-schedule"], fX = ["feed-schedule"], pX = ["thumbnail-jobs"], mX = "/api/media-processing", zwe = ["media-processing"], Bwe = (e) => B(mX, e), hX = (e) => B(oX, e), Vwe = (e) => B(sX, e), Hwe = (e) => B(cX, e), Uwe = (e) => B(lX, e);
-function Wwe(e = H) {
+var oX = "/api/configuration", sX = "/api/pick-folder", cX = "/api/settings", lX = "/api/follow/schedule", uX = "/api/feeds/schedule", dX = "/api/thumbnail-jobs", fX = ["settings"], pX = ["follow-schedule"], mX = ["feed-schedule"], hX = ["thumbnail-jobs"], gX = "/api/media-processing", Bwe = ["media-processing"], Vwe = (e) => B(gX, e), _X = (e) => B(cX, e), Hwe = (e) => B(lX, e), Uwe = (e) => B(uX, e), Wwe = (e) => B(dX, e);
+function Gwe(e = H) {
return e.fetchQuery({
- queryKey: uX,
- queryFn: ({ signal: e }) => hX(e),
+ queryKey: fX,
+ queryFn: ({ signal: e }) => _X(e),
staleTime: 0
}).catch(() => null);
}
-function gX() {
+function vX() {
return Ft({
- mutationFn: (e) => V(oX, e),
- onSuccess: (e) => H.setQueryData(uX, e)
+ mutationFn: (e) => V(cX, e),
+ onSuccess: (e) => H.setQueryData(fX, e)
});
}
-function Gwe() {
+function Kwe() {
return Ft({
- mutationFn: (e) => V(sX, {
+ mutationFn: (e) => V(lX, {
enabled: e > 0,
interval_minutes: e || 60
}),
- onSuccess: (e) => H.setQueryData(dX, e)
+ onSuccess: (e) => H.setQueryData(pX, e)
});
}
-var Kwe = {
+var qwe = {
follow: {
- url: `${sX}/run`,
- key: dX
+ url: `${lX}/run`,
+ key: pX
},
feed: {
- url: `${cX}/run`,
- key: fX
+ url: `${uX}/run`,
+ key: mX
}
};
-function qwe(e) {
- let { url: t, key: n } = Kwe[e];
+function Jwe(e) {
+ let { url: t, key: n } = qwe[e];
return Ft({
mutationFn: () => V(t, {}),
onSuccess: (e) => H.setQueryData(n, e)
});
}
-var Jwe = (e) => e?.running ? 3e3 : !1;
-function Ywe() {
+var Ywe = (e) => e?.running ? 3e3 : !1;
+function Xwe() {
return Ft({
- mutationFn: (e) => V(lX, { mode: e }),
- onSuccess: (e) => H.setQueryData(pX, e)
+ mutationFn: (e) => V(dX, { mode: e }),
+ onSuccess: (e) => H.setQueryData(hX, e)
});
}
// src/react/data-cleanup/organize.ts
-var Xwe = "/api/organize", Zwe = "/api/organize/preview", Qwe = "/api/organize/apply", $we = "/api/organize/rollback", _X = ["organize"], eTe = "/api/organize/example", tTe = (e, t, n) => B(`${eTe}?${new URLSearchParams({
+var Zwe = "/api/organize", Qwe = "/api/organize/preview", $we = "/api/organize/apply", eTe = "/api/organize/rollback", yX = ["organize"], tTe = "/api/organize/example", nTe = (e, t, n) => B(`${tTe}?${new URLSearchParams({
file_template: e,
dir_template: t
-})}`, n), vX = (e) => B(Xwe, e);
-async function nTe(e) {
+})}`, n), bX = (e) => B(Zwe, e);
+async function rTe(e) {
await H.fetchQuery({
- queryKey: _X,
- queryFn: () => vX(e)
+ queryKey: yX,
+ queryFn: () => bX(e)
});
}
-var rTe = (e) => V(Zwe, e), iTe = (e) => V(aX, { initial: e }), aTe = (e) => e.kind === "apply" ? V(Qwe, {
+var iTe = (e) => V(Qwe, e), aTe = (e) => V(sX, { initial: e }), oTe = (e) => e.kind === "apply" ? V($we, {
...e.request,
confirm: !0
-}) : V($we, { confirm: !0 });
-async function oTe(e) {
- H.setQueryData(_X, (t) => t && {
+}) : V(eTe, { confirm: !0 });
+async function sTe(e) {
+ H.setQueryData(yX, (t) => t && {
...t,
templates: e
});
try {
- await V(oX, { organizeTemplates: e });
+ await V(cX, { organizeTemplates: e });
} catch {}
}
-var sTe = (e, t) => e && {
+var cTe = (e, t) => e && {
...e,
...t
-}, cTe = /目录模板|分隔符|盘符|`\.`/;
-function lTe(e) {
+}, lTe = /目录模板|分隔符|盘符|`\.`/;
+function uTe(e) {
let t = String(e || "");
return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);
}
-var yX = (e) => Number(e || 0).toLocaleString();
-function uTe(e) {
- let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${yX(t)}`).join(" · ");
- return Number(e.counts?.change || 0) ? `${yX(e.counts.change)} 个文件会改名或移动,${yX(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
-}
+var xX = (e) => Number(e || 0).toLocaleString();
function dTe(e) {
+ let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${xX(t)}`).join(" · ");
+ return Number(e.counts?.change || 0) ? `${xX(e.counts.change)} 个文件会改名或移动,${xX(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
+}
+function fTe(e) {
let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);
return {
- text: t ? `已退回 ${yX(r)} 个文件${n ? `,${yX(n)} 行未能退回` : ""}。` : `已整理 ${yX(r)} 个文件${n ? `,${yX(n)} 行未能处理` : ""}。`,
+ text: t ? `已退回 ${xX(r)} 个文件${n ? `,${xX(n)} 行未能退回` : ""}。` : `已整理 ${xX(r)} 个文件${n ? `,${xX(n)} 行未能处理` : ""}。`,
failed: n,
rollback: t
};
}
// src/react/data-cleanup/orphan-records.ts
-var fTe = "/api/orphan-records", pTe = "/api/orphan-records/attach", bX = ["orphan-records"], mTe = [
+var pTe = "/api/orphan-records", mTe = "/api/orphan-records/attach", SX = ["orphan-records"], hTe = [
["asset_preference", "喜欢与理由"],
["watch_queue", "稍后看"],
["playlist_item", "播放列表"],
["asset_quality_goal", "寻找更好版本"],
["activity_event", "观看历史"],
["asset_tag_preference", "隐藏标签"]
-], xX = (e) => B(fTe, e), hTe = (e, t) => V(pTe, {
+], CX = (e) => B(pTe, e), gTe = (e, t) => V(mTe, {
id: e,
target: t
-}), gTe = (e) => V(TY, {
+}), _Te = (e) => V(DY, {
ids: Array.isArray(e) ? e : [e],
operation: "delete"
-}), _Te = (e) => [
+}), vTe = (e) => [
e.rating ? `评分 ${e.rating}` : "",
e.play_count ? `播放 ${Number(e.play_count).toLocaleString()} 次` : e.last_played ? "播放过" : "",
e.o_count ? `高潮 ${Number(e.o_count).toLocaleString()} 次` : ""
-], vTe = (e) => [...mTe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ..._Te(e)].filter(Boolean).join(" · "), yTe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", bTe = (e) => [e.name, yTe(e.duration)].filter(Boolean).join(" · "), SX = "/api/resource-sync/scan", CX = "/api/resource-sync/apply", wX = ["resource-sync", "scan"], TX = ["resource-sync", "apply"], EX = (e) => V(SX, {
+], yTe = (e) => [...hTe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...vTe(e)].filter(Boolean).join(" · "), bTe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", xTe = (e) => [e.name, bTe(e.duration)].filter(Boolean).join(" · "), wX = "/api/resource-sync/scan", TX = "/api/resource-sync/apply", EX = ["resource-sync", "scan"], DX = ["resource-sync", "apply"], OX = (e) => V(wX, {
background: !0,
status_only: !0
-}, "POST", e), xTe = () => V(SX, {
+}, "POST", e), STe = () => V(wX, {
background: !0,
restart: !0
-}), DX = (e) => B(CX, e), STe = (e) => V(CX, {
+}), kX = (e) => B(TX, e), CTe = (e) => V(TX, {
confirm: !0,
clean_cache: !0,
scan_id: e,
background: !0
-}), OX = (e) => (e?.sources ?? []).some((e) => gn.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
-async function CTe(e) {
- OX(H.getQueryData(vr)) && await Promise.all([H.fetchQuery({
- queryKey: wX,
- queryFn: () => EX(e)
+}), AX = (e) => (e?.sources ?? []).some((e) => gn.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
+async function wTe(e) {
+ AX(H.getQueryData(vr)) && await Promise.all([H.fetchQuery({
+ queryKey: EX,
+ queryFn: () => OX(e)
}), H.fetchQuery({
- queryKey: TX,
- queryFn: () => DX(e)
+ queryKey: DX,
+ queryFn: () => kX(e)
})]);
}
-var wTe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), kX = (e) => Number(e || 0).toLocaleString(), TTe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", AX = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), jX = (e) => e.vanish ? `${kX(e.vanish)} 条作品记录的文件已丢失,个人记录保留,可在「文件已丢失的记录」中转移个人记录或删除记录。` : "", MX = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", ETe = (e) => `将永久删除文件已不在盘上的 ${kX(AX(e))} 条记录和 ${kX(e.empty)} 个空文件夹,并清理 ${kX(e.cache?.files)} 个闲置缓存。${MX(e)}${jX(e)}`, DTe = (e) => `将永久删除文件已不在盘上的 ${kX(AX(e))} 条记录(含回收站里的)、${kX(e.empty)} 个空文件夹,并清理 ${kX(e.cache?.files)} 个闲置缓存。来源根目录保留。${MX(e)}${jX(e)}`, OTe = (e) => e.online ? [
- `找不到文件 · 共 ${kX(e.total)} 项`,
- e.vanish ? `${kX(e.vanish)} 项带个人记录` : "",
- e.empty ? `空文件夹 ${kX(e.empty)} 个` : ""
-].filter(Boolean).join(" · ") : `馆藏中有 ${kX(e.total)} 项`;
-function NX(e) {
+var TTe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), jX = (e) => Number(e || 0).toLocaleString(), ETe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", MX = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), NX = (e) => e.vanish ? `${jX(e.vanish)} 条作品记录的文件已丢失,个人记录保留,可在「文件已丢失的记录」中转移个人记录或删除记录。` : "", PX = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", DTe = (e) => `将永久删除文件已不在盘上的 ${jX(MX(e))} 条记录和 ${jX(e.empty)} 个空文件夹,并清理 ${jX(e.cache?.files)} 个闲置缓存。${PX(e)}${NX(e)}`, OTe = (e) => `将永久删除文件已不在盘上的 ${jX(MX(e))} 条记录(含回收站里的)、${jX(e.empty)} 个空文件夹,并清理 ${jX(e.cache?.files)} 个闲置缓存。来源根目录保留。${PX(e)}${NX(e)}`, kTe = (e) => e.online ? [
+ `找不到文件 · 共 ${jX(e.total)} 项`,
+ e.vanish ? `${jX(e.vanish)} 项带个人记录` : "",
+ e.empty ? `空文件夹 ${jX(e.empty)} 个` : ""
+].filter(Boolean).join(" · ") : `馆藏中有 ${jX(e.total)} 项`;
+function FX(e) {
let t = e.blocked ?? [], n = Number(e.dir_errors || 0), r = e.cache_blocked ?? [], i = Number(e.purged || 0) + Number(e.vanished || 0) + Number(e.reattached || 0) + Number(e.dirs_removed || 0) + Number(e.cache_removed || 0), a = t.length + n + r.length, o = t.slice(0, 3).map((e) => `「${e.name}」`).join("、") + (t.length > 3 ? " 等" : "");
return {
done: i,
left: a,
rest: [
- t.length ? `${kX(t.length)} 条记录没有删除(${o})` : "",
- n ? `${kX(n)} 个文件夹没有删除` : "",
- r.length ? `${kX(r.length)} 个缓存没有清理` : ""
+ t.length ? `${jX(t.length)} 条记录没有删除(${o})` : "",
+ n ? `${jX(n)} 个文件夹没有删除` : "",
+ r.length ? `${jX(r.length)} 个缓存没有清理` : ""
].filter(Boolean).join(",")
};
}
-var kTe = (e, t) => {
- let { rest: n } = NX(e), r = `已永久删除 ${kX(e.purged)} 条失效记录和 ${kX(e.dirs_removed)} 个空文件夹,清理 ${kX(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${kX(e.vanished)} 条作品记录已标为文件丢失,可在「文件已丢失的记录」中处理。` : "") + (e.reattached ? `${kX(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
+var ATe = (e, t) => {
+ let { rest: n } = FX(e), r = `已永久删除 ${jX(e.purged)} 条失效记录和 ${jX(e.dirs_removed)} 个空文件夹,清理 ${jX(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${jX(e.vanished)} 条作品记录已标为文件丢失,可在「文件已丢失的记录」中处理。` : "") + (e.reattached ? `${jX(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
return n ? `${r}${n},重新检查后可再试。` : r;
-}, PX = ["performer-delete-candidates"], FX = (e) => B("/api/performer/delete-candidates", e), ATe = (e, t) => B(`/api/performer/delete-plan?${new URLSearchParams({ ids: e.join(",") })}`, t), jTe = (e) => V("/api/performer/delete", {
+}, IX = ["performer-delete-candidates"], LX = (e) => B("/api/performer/delete-candidates", e), jTe = (e, t) => B(`/api/performer/delete-plan?${new URLSearchParams({ ids: e.join(",") })}`, t), MTe = (e) => V("/api/performer/delete", {
entity_ids: e.entity_ids,
plan: e.plan
-}), MTe = "/api/review?counts=1", IX = ["review", "counts"], NTe = "/api/ads?limit=1", LX = ["junk-summary"], RX = "/api/items?state=trash&limit=1", zX = ["trash-summary"], PTe = [
+}), NTe = "/api/review?counts=1", RX = ["review", "counts"], PTe = "/api/ads?limit=1", zX = ["junk-summary"], BX = "/api/items?state=trash&limit=1", VX = ["trash-summary"], FTe = [
["video", "视频"],
["image", "图片"],
["archive", "压缩包"],
["audio", "音频"],
["url", "网址"],
["other", "其它"]
-], BX = (e) => B(MTe, e), VX = (e) => B(NTe, e), HX = (e) => {
+], HX = (e) => B(NTe, e), UX = (e) => B(PTe, e), WX = (e) => {
let t = sessionStorage.getItem("peach.library");
- return B(t ? `${RX}&library=${encodeURIComponent(t)}` : RX, e);
-}, UX = (e) => Number(e || 0).toLocaleString();
-function FTe(e) {
- let t = RY, 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 B(t ? `${BX}&library=${encodeURIComponent(t)}` : BX, e);
+}, GX = (e) => Number(e || 0).toLocaleString();
+function ITe(e) {
+ let t = BY, 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 ITe(e) {
+function LTe(e) {
if (!e) return "";
- let t = PTe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${UX(e.counts[t])}`);
- return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${UX(e.dismissed_total)}`), t.join(" · ");
-}
-var LTe = [
- [IX, ({ signal: e }) => BX(e)],
- [PY, ({ signal: e }) => FY(e)],
- [zX, ({ signal: e }) => HX(e)],
- [LX, ({ signal: e }) => VX(e)],
- [wY, ({ signal: e }) => EY(e)]
+ let t = FTe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${GX(e.counts[t])}`);
+ return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${GX(e.dismissed_total)}`), t.join(" · ");
+}
+var RTe = [
+ [RX, ({ signal: e }) => HX(e)],
+ [IY, ({ signal: e }) => LY(e)],
+ [VX, ({ signal: e }) => WX(e)],
+ [zX, ({ signal: e }) => UX(e)],
+ [EY, ({ signal: e }) => OY(e)]
];
-async function RTe(e) {
- for (let [t, n] of LTe) H.prefetchQuery({
+async function zTe(e) {
+ for (let [t, n] of RTe) H.prefetchQuery({
queryKey: t,
queryFn: () => n({ signal: e })
});
- await yH(e);
+ await xH(e);
}
-async function zTe(e, t) {
+async function BTe(e, t) {
switch (e) {
case "organize":
- await nTe(t);
+ await rTe(t);
break;
case "media-repair":
- await $Ce(t);
+ await ewe(t);
break;
case "resource-sync":
- await CY(t), await CTe(t);
+ await TY(t), await wTe(t);
break;
case "orphan-records":
await H.prefetchQuery({
- queryKey: bX,
- queryFn: () => xX(t)
+ queryKey: SX,
+ queryFn: () => CX(t)
});
break;
case "batch-delete":
await H.prefetchQuery({
- queryKey: PX,
- queryFn: () => FX(t)
+ queryKey: IX,
+ queryFn: () => LX(t)
});
break;
case "links": await Promise.all([
H.prefetchQuery({
- queryKey: XY,
- queryFn: () => eX(t)
+ queryKey: QY,
+ queryFn: () => nX(t)
}),
H.prefetchQuery({
- queryKey: ZY,
- queryFn: () => tX(t)
+ queryKey: $Y,
+ queryFn: () => rX(t)
}),
H.prefetchQuery({
- queryKey: QY,
- queryFn: () => nX(t)
+ queryKey: eX,
+ queryFn: () => iX(t)
})
]);
}
}
// src/react/feed-new/feed-new.ts
-var WX = (e) => ["feed-new", e ?? "home"], BTe = 8, VTe = 1500;
-function HTe(e, t, n) {
+var KX = (e) => ["feed-new", e ?? "home"], VTe = 8, HTe = 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) => {
@@ -62389,33 +62448,33 @@ function HTe(e, t, n) {
setTimeout(e, n);
})]);
}
-async function UTe(e, t, n) {
- let r = new URLSearchParams({ limit: String(cM().value.feedLimit) });
+async function WTe(e, t, n) {
+ let r = new URLSearchParams({ limit: String(uM().value.feedLimit) });
e && r.set("entity", String(e));
let i = await wn(`/api/feeds/discoveries?${r}`).catch(() => null), a = i && !i.error ? i : null, o = a?.items || [], s = t(a, e ? "" : "/jav?tab=releases");
- return n && o.length && await HTe(s, BTe, VTe), {
+ return n && o.length && await UTe(s, VTe, HTe), {
items: o,
html: s,
fetching: o.some((e) => e.cover_fetching && !e.has_cover)
};
}
-var GX = (e, t, n = !1) => ({
- queryKey: WX(e),
- queryFn: () => UTe(e, t, n),
+var qX = (e, t, n = !1) => ({
+ queryKey: KX(e),
+ queryFn: () => WTe(e, t, n),
staleTime: Infinity,
refetchInterval: (e) => e.state.data?.fetching ? 2e3 : !1
-}), KX = (e, t) => wn("/api/feeds/discovery", {
+}), JX = (e, t) => wn("/api/feeds/discovery", {
method: "POST",
body: JSON.stringify({
action: t,
ids: [e]
})
}).then(() => void 0, () => void 0);
-async function WTe(e) {
- H.removeQueries({ queryKey: WX(null) }), await H.fetchQuery(GX(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
+async function GTe(e) {
+ H.removeQueries({ queryKey: KX(null) }), await H.fetchQuery(qX(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
}
// src/react/entity-page/entity-page.ts
-var qX = [
+var YX = [
"loc",
"creator",
"tag",
@@ -62429,52 +62488,52 @@ var qX = [
"browse",
"folder",
"folder_recursive"
-], JX = {
+], XX = {
media: "videos",
set: 0
-}, YX = (e, t) => [
+}, ZX = (e, t) => [
"entity",
e,
t
-], GTe = (e, t, n, r) => [
+], KTe = (e, t, n, r) => [
"entity-items",
e,
t,
n,
r
-], XX = (e, t, n, r) => [
+], QX = (e, t, n, r) => [
"entity-photos",
e,
t,
n,
r
-], ZX = (e) => String(e || "").split(",").filter(Boolean), KTe = (e, t) => ZX(e).includes(t);
-function QX(e, t, n, r, i = 0) {
+], $X = (e) => String(e || "").split(",").filter(Boolean), qTe = (e, t) => $X(e).includes(t);
+function eZ(e, t, n, r, i = 0) {
let a = new URLSearchParams();
- a.set(e, t), e === "tag" && (a.set("tag", [.../* @__PURE__ */ new Set([t, ...ZX(n.tag)])].join(",")), a.set("tag_match", "all")), a.set("limit", "48"), a.set("offset", String(i)), a.set("sort", n.sort || "new"), n.dir && a.set("dir", n.dir), n.sort === "seed" && a.set("seed", r.seed), i && a.set("count", "0");
- for (let t of qX) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
+ a.set(e, t), e === "tag" && (a.set("tag", [.../* @__PURE__ */ new Set([t, ...$X(n.tag)])].join(",")), a.set("tag_match", "all")), a.set("limit", "48"), a.set("offset", String(i)), a.set("sort", n.sort || "new"), n.dir && a.set("dir", n.dir), n.sort === "seed" && a.set("seed", r.seed), i && a.set("count", "0");
+ for (let t of YX) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
return r.jav && a.set("jav", "1"), a;
}
-async function $X(e, t, n, r, i, a, o) {
- let s = QX(e, t, n, r, i);
+async function tZ(e, t, n, r, i, a, o) {
+ let s = eZ(e, t, n, r, i);
return o && (s.set("limit", String(o.limit)), s.delete("count"), o.sort && s.set("sort", o.sort), o.dir && s.set("dir", o.dir)), await wn(`/api/items?${s}`, a ? { signal: a } : {});
}
-var eZ = (e) => {
+var nZ = (e) => {
let t = {
jav: e.jav,
seed: e.seed
- }, n = QX(e.kind, e.name, e.filters, t).toString();
+ }, n = eZ(e.kind, e.name, e.filters, t).toString();
return {
- queryKey: GTe(e.kind, e.name, n, e.revision),
- queryFn: ({ signal: n }) => $X(e.kind, e.name, e.filters, t, 0, n),
+ queryKey: KTe(e.kind, e.name, n, e.revision),
+ queryFn: ({ signal: n }) => tZ(e.kind, e.name, e.filters, t, 0, n),
staleTime: Infinity
};
-}, tZ = (e, t) => ({
- queryKey: YX(e, t),
+}, rZ = (e, t) => ({
+ queryKey: ZX(e, t),
queryFn: ({ signal: n }) => wn(`/api/entity?kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`, { signal: n }),
staleTime: Infinity
});
-function qTe(e, t, n, r, i, a) {
+function JTe(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)}` : ""}`;
@@ -62483,10 +62542,10 @@ function qTe(e, t, n, r, i, a) {
let s = r ? `&seed=${encodeURIComponent(r)}` : "";
return n ? `/api/photo-set?id=${n}&limit=120${s}` : r ? `/api/photos?${o}&limit=120${s}` : `/api/photos?${o}`;
}
-var nZ = (e, t, n, r) => ({
- queryKey: XX(e, t, n, r),
+var iZ = (e, t, n, r) => ({
+ queryKey: QX(e, t, n, r),
queryFn: async ({ pageParam: i }) => {
- let a = await wn(qTe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
+ let a = await wn(JTe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
if (i) throw e;
return { error: String(e) };
});
@@ -62499,8 +62558,8 @@ var nZ = (e, t, n, r) => ({
seed: t[0]?.seed || ""
} : void 0,
staleTime: Infinity
-}), rZ = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
-async function JTe(e) {
+}), aZ = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
+async function YTe(e) {
let { kind: t, name: n } = e;
if (!e.restoreNavigation) for (let e of [
"entity",
@@ -62511,25 +62570,25 @@ async function JTe(e) {
t,
n
] });
- e.resolvedEntity?.id && H.setQueryData(YX(t, n), e.resolvedEntity), await Promise.all([
- H.fetchQuery(tZ(t, n)).then((t) => !t || t.error || !t.id ? null : (e.restoreNavigation || H.removeQueries({ queryKey: WX(Number(t.id)) }), H.fetchQuery(GX(Number(t.id), e.helpers.feedRowHtml, !0)))),
- H.fetchQuery(eZ(e)),
- H.fetchInfiniteQuery(nZ(t, n, 0, "")),
- e.media.media === "photos" && e.media.set ? H.fetchInfiniteQuery(nZ(t, n, e.media.set, "")) : null
+ e.resolvedEntity?.id && H.setQueryData(ZX(t, n), e.resolvedEntity), await Promise.all([
+ H.fetchQuery(rZ(t, n)).then((t) => !t || t.error || !t.id ? null : (e.restoreNavigation || H.removeQueries({ queryKey: KX(Number(t.id)) }), H.fetchQuery(qX(Number(t.id), e.helpers.feedRowHtml, !0)))),
+ H.fetchQuery(nZ(e)),
+ H.fetchInfiniteQuery(iZ(t, n, 0, "")),
+ e.media.media === "photos" && e.media.set ? H.fetchInfiniteQuery(iZ(t, n, e.media.set, "")) : null
]);
}
// src/identity-filter.ts
-var iZ = [
+var oZ = [
["all", "全部"],
["japanese_av", "女优"],
["amateur", "素人"],
["western", "西方"],
["blogger", "网黄博主"],
["animation", "动画作者"]
-], aZ = "mb-4 flex flex-wrap gap-2";
-function YTe(e) {
- let t = iZ.some(([t]) => t === e) ? e : "all";
- return `<div class="peach-react"><div aria-label="身份分类" class="${aZ}">${iZ.map(([e, n]) => Ds({
+], sZ = "mb-4 flex flex-wrap gap-2";
+function XTe(e) {
+ let t = oZ.some(([t]) => t === e) ? e : "all";
+ return `<div class="peach-react"><div aria-label="身份分类" class="${sZ}">${oZ.map(([e, n]) => Ds({
variant: e === t ? "primary" : "secondary",
size: "small",
label: n,
@@ -62537,45 +62596,45 @@ function YTe(e) {
})).join("")}</div></div>`;
}
// src/react/follow/online-vocab.ts
-var XTe = "/api/follow/authors", ZTe = "/api/follow/tags", QTe = (e) => [
+var ZTe = "/api/follow/authors", QTe = "/api/follow/tags", $Te = (e) => [
"follow",
"authors",
e
-], $Te = (e, t) => [
+], eEe = (e, t) => [
"follow",
"tags",
e,
t
];
-function eEe(e, t, n) {
+function tEe(e, t, n) {
let r = new URLSearchParams({
limit: String(t),
offset: String(n)
});
- return e && r.set("q", e), `${XTe}?${r}`;
+ return e && r.set("q", e), `${ZTe}?${r}`;
}
-function tEe(e, t, n, r) {
+function nEe(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), `${ZTe}?${i}`;
+ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${QTe}?${i}`;
}
-var nEe = (e, t, n, r) => B(eEe(e, t, n), r), rEe = (e, t, n, r, i) => B(tEe(e, t, n, r), i), iEe = "/api/index", oZ = {
+var rEe = (e, t, n, r) => B(tEe(e, t, n), r), iEe = (e, t, n, r, i) => B(nEe(e, t, n, r), i), aEe = "/api/index", cZ = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所",
series: "系列",
tags: "标签"
-}, aEe = {
+}, oEe = {
performers: "performer",
creators: "creator",
studios: "studio",
agencies: "agency",
series: "series"
-}, sZ = [
+}, lZ = [
["all", "全部"],
["meta", "影片属性"],
["relationship", "人物关系"],
@@ -62585,31 +62644,31 @@ var nEe = (e, t, n, r) => B(eEe(e, t, n), r), rEe = (e, t, n, r, i) => B(tEe(e,
["story", "故事剧情"],
["position", "性交体位"],
["general", "其他内容"]
-], cZ = [
+], uZ = [
["all", "全部"],
["general", "通用"],
["artist", "创作者"],
["character", "角色"],
["copyright", "作品"],
["metadata", "元数据"]
-], lZ = {
+], dZ = {
people: 120,
tags: 100
-}, uZ = (e) => e !== "tags", dZ = (e) => e === "studios" || e === "agencies";
-function fZ(e) {
- if (e.kind === "creators" && e.category === "animation") return fZ({
+}, fZ = (e) => e !== "tags", pZ = (e) => e === "studios" || e === "agencies";
+function mZ(e) {
+ if (e.kind === "creators" && e.category === "animation") return mZ({
...e,
kind: "performers",
scope: "local"
});
- let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (e.kind === "tags" ? t === "online" ? cZ : sZ : e.kind === "performers" && t === "local" ? iZ : []).some(([t]) => t === e.category);
+ let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (e.kind === "tags" ? t === "online" ? uZ : lZ : e.kind === "performers" && t === "local" ? oZ : []).some(([t]) => t === e.category);
return {
...e,
scope: t,
category: n ? e.category : "all"
};
}
-function pZ(e) {
+function hZ(e) {
let { kind: t, q: n, scope: r, category: i } = e;
return t === "tags" ? r === "online" ? {
what: "online-tags",
@@ -62629,50 +62688,50 @@ function pZ(e) {
...i && i !== "all" ? { category: i } : {}
};
}
-var mZ = (e, t, n = "all") => [
+var gZ = (e, t, n = "all") => [
"index",
e,
t,
...e === "tags" || n !== "all" ? [n] : []
];
-function hZ(e, t, n, r, i) {
+function _Z(e, t, n, r, i) {
let a = new URLSearchParams({
kind: e,
limit: String(r),
offset: String(i)
});
- return t && a.set("q", t), n !== "all" && a.set("category", n), `${iEe}?${a}`;
+ return t && a.set("q", t), n !== "all" && a.set("category", n), `${aEe}?${a}`;
}
-function gZ(e, t = lZ.tags) {
- let n = e.what === "people" || e.what === "online-authors" ? lZ.people : t, r = {
+function vZ(e, t = dZ.tags) {
+ let n = e.what === "people" || e.what === "online-authors" ? dZ.people : t, r = {
initialPageParam: 0,
getNextPageParam: (e, t) => e.has_more ? t.reduce((e, t) => e + t.items.length, 0) : void 0
};
switch (e.what) {
case "people": return {
...r,
- queryKey: mZ(e.kind, e.q, e.category || "all"),
- queryFn: ({ pageParam: t, signal: r }) => B(hZ(e.kind, e.q, e.category || "all", n, t), r)
+ queryKey: gZ(e.kind, e.q, e.category || "all"),
+ queryFn: ({ pageParam: t, signal: r }) => B(_Z(e.kind, e.q, e.category || "all", n, t), r)
};
case "tags": return {
...r,
- queryKey: mZ("tags", e.q, e.category),
- queryFn: ({ pageParam: t, signal: r }) => B(hZ("tags", e.q, e.category, n, t), r)
+ queryKey: gZ("tags", e.q, e.category),
+ queryFn: ({ pageParam: t, signal: r }) => B(_Z("tags", e.q, e.category, n, t), r)
};
case "online-authors": return {
...r,
- queryKey: QTe(e.q),
- queryFn: ({ pageParam: t, signal: r }) => nEe(e.q, n, t, r)
+ queryKey: $Te(e.q),
+ queryFn: ({ pageParam: t, signal: r }) => rEe(e.q, n, t, r)
};
case "online-tags": return {
...r,
- queryKey: $Te(e.q, e.category),
- queryFn: ({ pageParam: t, signal: r }) => rEe(e.q, e.category, n, t, r)
+ queryKey: eEe(e.q, e.category),
+ queryFn: ({ pageParam: t, signal: r }) => iEe(e.q, e.category, n, t, r)
};
}
}
-async function oEe(e, t) {
- let n = gZ(pZ(fZ(e)));
+async function sEe(e, t) {
+ let n = vZ(hZ(mZ(e)));
await H.fetchInfiniteQuery({
queryKey: n.queryKey,
queryFn: ({ pageParam: e }) => n.queryFn({
@@ -62684,20 +62743,20 @@ async function oEe(e, t) {
staleTime: Infinity
});
}
-var sEe = (e) => e ? e.pages.flatMap((e) => e.items) : [], cEe = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, _Z = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", lEe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, uEe = {
+var cEe = (e) => e ? e.pages.flatMap((e) => e.items) : [], lEe = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, yZ = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", uEe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, dEe = {
numeric: !0,
sensitivity: "base"
};
-function vZ(e, t) {
+function bZ(e, t) {
let n = /* @__PURE__ */ new Map();
- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", uEe))) {
+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", dEe))) {
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]);
}
return [...n].sort(([e], [t]) => e.localeCompare(t, "zh-CN"));
}
// src/react/index/index-people.tsx
-function yZ({ html: e, face: t, company: n, big: r }) {
+function xZ({ html: e, face: t, company: n, big: r }) {
let i = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
t ? i.current?.style.setProperty("--face", t) : i.current?.style.removeProperty("--face");
@@ -62709,18 +62768,18 @@ function yZ({ html: e, face: t, company: n, big: r }) {
dangerouslySetInnerHTML: { __html: e }
});
}
-var dEe = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", fEe = TV("rss");
-function bZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a, ...o }) {
+var fEe = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", pEe = DV("rss");
+function SZ({ 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: zH({
+ className: VH({
radius: "plain",
padding: "none",
interactive: !0,
- className: `${dEe} ${n ? "items-stretch text-left" : "items-center text-center"}`
+ className: `${fEe} ${n ? "items-stretch text-left" : "items-center text-center"}`
}),
children: [
r,
@@ -62729,10 +62788,10 @@ function bZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a
role: "img",
"aria-label": "已订阅新作",
className: "index-feed-mark absolute top-4 right-4 z-2 inline-flex",
- children: /* @__PURE__ */ (0, I.jsx)(iW, {
+ children: /* @__PURE__ */ (0, I.jsx)(oW, {
variant: "caption",
color: "soft",
- children: /* @__PURE__ */ (0, I.jsx)(fEe, {})
+ children: /* @__PURE__ */ (0, I.jsx)(pEe, {})
})
}) : null,
/* @__PURE__ */ (0, I.jsx)("span", {
@@ -62748,9 +62807,9 @@ function bZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a
]
});
}
-function xZ({ kind: e, items: t, layout: n, props: r }) {
- let i = dZ(e) || e === "series";
- _L();
+function CZ({ kind: e, items: t, layout: n, props: r }) {
+ let i = pZ(e) || e === "series";
+ yL();
let a = n === "big";
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-index-grid": "",
@@ -62758,16 +62817,16 @@ function xZ({ 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 || aEe[e], o = r.personAvatar(t, n, a);
- return /* @__PURE__ */ (0, I.jsx)(bZ, {
+ let n = t.entity_kind || oEe[e], o = r.personAvatar(t, n, a);
+ return /* @__PURE__ */ (0, I.jsx)(SZ, {
"data-k": t.k,
"data-kind": n,
name: tn(n, t.k, t.entity_id),
- readout: `${lEe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
+ readout: `${uEe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
big: a,
following: t.following,
onPress: () => r.openEntity(n, t.k),
- children: /* @__PURE__ */ (0, I.jsx)(yZ, {
+ children: /* @__PURE__ */ (0, I.jsx)(xZ, {
html: o.html,
face: o.face,
company: i,
@@ -62777,15 +62836,15 @@ function xZ({ kind: e, items: t, layout: n, props: r }) {
})
});
}
-function pEe({ items: e, layout: t, props: n }) {
- _L();
+function mEe({ items: e, layout: t, props: n }) {
+ yL();
let r = t === "big";
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-index-grid": "",
"data-layout": t,
"data-cells": "people",
className: "index-grid-person gap-3",
- children: e.map((e) => /* @__PURE__ */ (0, I.jsx)(bZ, {
+ children: e.map((e) => /* @__PURE__ */ (0, I.jsx)(SZ, {
"data-follow-author": e.key,
"data-kind": "performer",
name: tn("creator", e.k, e.entity_id),
@@ -62794,7 +62853,7 @@ function pEe({ items: e, layout: t, props: n }) {
onPress: () => {
e.entity_id ? n.openEntity("creator", e.k) : e.held_by ? n.openEntity("creator", e.held_by) : n.openFollowAuthor(e.key);
},
- children: /* @__PURE__ */ (0, I.jsx)(yZ, {
+ children: /* @__PURE__ */ (0, I.jsx)(xZ, {
html: n.authorAvatar(e),
company: !1,
big: r
@@ -62803,8 +62862,8 @@ function pEe({ items: e, layout: t, props: n }) {
});
}
// src/board-tooltip.ts
-var SZ = (e) => e.replace(/\s+/g, " ").trim();
-function CZ(e) {
+var wZ = (e) => e.replace(/\s+/g, " ").trim();
+function TZ(e) {
let t = document.createTreeWalker(e, NodeFilter.SHOW_TEXT), n = "", r;
for (; r = t.nextNode();) {
let e = r.parentElement;
@@ -62812,12 +62871,12 @@ function CZ(e) {
let t = document.createRange();
t.selectNodeContents(r), [...t.getClientRects()].some((e) => e.width > 0 && e.height > 0) && getComputedStyle(e).visibility === "visible" && (n += r.textContent);
}
- return SZ(n);
+ return wZ(n);
}
-function wZ(e) {
+function EZ(e) {
let t = e.getBoundingClientRect();
if (t.width && t.height) {
- if (e.matches("a") && CZ(e) && !TZ(e)) {
+ if (e.matches("a") && TZ(e) && !DZ(e)) {
let t = document.createRange();
t.selectNodeContents(e);
let n = t.getBoundingClientRect();
@@ -62830,7 +62889,7 @@ function wZ(e) {
let r = Math.min(...n.map((e) => e.left)), i = Math.min(...n.map((e) => e.top));
return new DOMRect(r, i, Math.max(...n.map((e) => e.right)) - r, Math.max(...n.map((e) => e.bottom)) - i);
}
-function TZ(e) {
+function DZ(e) {
if (e.matches(".middle-truncated") || e.querySelector(".middle-truncated") || [e, ...e.querySelectorAll("*")].some((e) => e.clientWidth > 0 && (e.scrollWidth > e.clientWidth + 1 || e.scrollHeight > e.clientHeight + 1))) return !0;
let t = document.createRange();
t.selectNodeContents(e);
@@ -62841,19 +62900,19 @@ function TZ(e) {
}
return !1;
}
-function mEe() {
+function hEe() {
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) => {
- let n = wZ(t), r = e.getBoundingClientRect();
+ let n = EZ(t), r = e.getBoundingClientRect();
n && (e.style.left = `${Math.max(8, Math.min(innerWidth - r.width - 8, n.left + (n.width - r.width) / 2))}px`, e.style.top = `${n.top >= r.height + 16 ? n.top - r.height - 8 : Math.min(innerHeight - r.height - 8, n.bottom + 8)}px`);
}, u = () => {
clearTimeout(a), !c() && (clearTimeout(i), e.matches(":popover-open") && e.hidePopover(), e.hidden = !0, e.removeAttribute("data-copy-key"), t && (t.hasAttribute("title") || (t.title = n), r === null ? t.removeAttribute("aria-describedby") : t.setAttribute("aria-describedby", r)), t = null);
}, d = (a, o) => {
if (c() || !(a instanceof Element)) return;
let d = a.closest("[title]");
- (!t?.contains(a) || d && !d.contains(t)) && d && !d.closest(".vjs-control") && d.title.trim() && (u(), t = d, n = d.title, r = d.getAttribute("aria-describedby"), d.removeAttribute("title"), (CZ(d) !== SZ(n) || TZ(d)) && (i = setTimeout(() => {
- if (t !== d || !d.isConnected || !wZ(d)) return;
+ (!t?.contains(a) || d && !d.contains(t)) && d && !d.closest(".vjs-control") && d.title.trim() && (u(), t = d, n = d.title, r = d.getAttribute("aria-describedby"), d.removeAttribute("title"), (TZ(d) !== wZ(n) || DZ(d)) && (i = setTimeout(() => {
+ if (t !== d || !d.isConnected || !EZ(d)) return;
(d.closest("dialog[open]") ?? document.body).append(e), e.textContent = n;
let i = d.getAttribute("data-tooltip-copy-key");
i ? e.setAttribute("data-copy-key", i) : e.removeAttribute("data-copy-key"), e.style.pointerEvents = s() ? "auto" : "", e.hidden = !1, e.showPopover(), l(d), d.setAttribute("aria-describedby", [r, e.id].filter(Boolean).join(" "));
@@ -62878,32 +62937,32 @@ function mEe() {
e.key === "Escape" && !c() && u();
}), document.addEventListener("scroll", (n) => {
if (!t || !us(n, t)) return;
- let r = wZ(t);
+ let r = EZ(t);
t.matches(":focus-visible") && r && r.bottom > 0 && r.top < innerHeight ? e.matches(":popover-open") && l(t) : u();
}, !0), window.addEventListener("resize", u);
}
// src/board-controls.ts
-function EZ(e) {
+function OZ(e) {
let t = Number(e.min) || 0, n = Number(e.max) || 100, r = Number(e.value), i = n > t ? Math.max(0, Math.min(100, (r - t) / (n - t) * 100)) : 0;
e.style.setProperty("--board-range-value", `${i}%`);
}
-var DZ = /* @__PURE__ */ new WeakSet();
-function hEe() {
- if (DZ.has(document)) return;
- DZ.add(document);
+var kZ = /* @__PURE__ */ new WeakSet();
+function gEe() {
+ if (kZ.has(document)) return;
+ kZ.add(document);
let e = (e) => {
- e.querySelectorAll("input[type=range]").forEach(EZ), _Ee(e), gEe(e);
+ e.querySelectorAll("input[type=range]").forEach(OZ), vEe(e), _Ee(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]") && EZ(t), e(t));
+ for (let n of t) for (let t of n.addedNodes) t instanceof Element && (t.matches("input[type=range]") && OZ(t), e(t));
}).observe(document.body, {
subtree: !0,
childList: !0
}), document.addEventListener("input", (e) => {
- e.target instanceof HTMLInputElement && e.target.type === "range" && EZ(e.target);
- }), mEe();
+ e.target instanceof HTMLInputElement && e.target.type === "range" && OZ(e.target);
+ }), hEe();
}
-function gEe(e) {
+function _Ee(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;
@@ -62927,15 +62986,15 @@ function gEe(e) {
r.observe(e);
});
}
-var OZ = /* @__PURE__ */ new Map();
-function _Ee(e) {
+var AZ = /* @__PURE__ */ new Map();
+function vEe(e) {
let t = ".iconswitch,.insightswitch,.follow-workspace-switch", n = [...e.querySelectorAll(t)];
e instanceof HTMLElement && e.matches(t) && n.push(e), n.forEach((e) => {
if (e.hasAttribute("data-board-segments") || e.closest("[data-skeleton]")) return;
e.dataset.boardSegments = "true";
let t = document.createElement("span");
t.className = "board-segment-thumb", t.setAttribute("aria-hidden", "true"), e.prepend(t);
- let n = e.className + (e.getAttribute("aria-label") ?? ""), r = OZ.get(n) ?? null, i = () => {
+ let n = e.className + (e.getAttribute("aria-label") ?? ""), r = AZ.get(n) ?? null, i = () => {
let i = e.querySelector("label:has(input:checked),button[aria-selected=true]");
if (!i || !i.offsetWidth) return;
let a = {
@@ -62944,7 +63003,7 @@ function _Ee(e) {
w: i.offsetWidth,
h: i.offsetHeight
};
- Vc(t, r, a, "x"), r = a, OZ.set(n, a);
+ Vc(t, r, a, "x"), r = a, AZ.set(n, a);
};
e.addEventListener("change", i);
let a = new MutationObserver(i);
@@ -62960,8 +63019,8 @@ function _Ee(e) {
});
}
// src/react/photo-lightbox/photo-lightbox.ts
-var kZ = "/vendor/swiper/14.4.0/", AZ = null, vEe = () => AZ ??= Promise.all([new Promise((e, t) => {
- let n = `${kZ}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
+var jZ = "/vendor/swiper/14.4.0/", MZ = null, yEe = () => MZ ??= Promise.all([new Promise((e, t) => {
+ let n = `${jZ}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
if (r?.sheet) {
e();
return;
@@ -62975,11 +63034,11 @@ var kZ = "/vendor/swiper/14.4.0/", AZ = null, vEe = () => AZ ??= Promise.all([ne
return;
}
let r = document.createElement("script");
- r.src = `${kZ}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);
+ r.src = `${jZ}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);
})]).then(([, e]) => e).catch((e) => {
- throw AZ = null, e;
+ throw MZ = null, e;
});
-function yEe(e, t, n) {
+function bEe(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);
@@ -63000,46 +63059,46 @@ function yEe(e, t, n) {
}
};
}
-var jZ = (e) => {
+var NZ = (e) => {
let t = Number(e) || 0;
return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : Yn(t)).replace(" ", "\xA0") : "大小未知";
-}, bEe = (e) => e.asset?.name || e.name || "未命名图片";
-function xEe(e, t) {
+}, xEe = (e) => e.asset?.name || e.name || "未命名图片";
+function SEe(e, t) {
let n = e.asset;
- if (n) return [tr[n.location ?? ""] || n.location || "来源未知", jZ(n.size)].join(" · ");
+ if (n) return [tr[n.location ?? ""] || n.location || "来源未知", NZ(n.size)].join(" · ");
let r = t?.[0] && t[1] ? `${t[0]} × ${t[1]}` : "";
return [
e.source || "在线图片",
r,
- e.size ? jZ(e.size) : ""
+ e.size ? NZ(e.size) : ""
].filter(Boolean).join(" · ");
}
// src/react/photo-lightbox/photo-lightbox-dialog.tsx
-var MZ = null, NZ = null, SEe = 0;
-function CEe() {
- return NZ && MZ?.isConnected || (NZ?.unmount(), MZ = document.createElement("div"), MZ.className = "peach-react", MZ.dataset.photoLightboxHost = "", document.body.append(MZ), NZ = (0, Rt.createRoot)(MZ)), NZ;
+var PZ = null, FZ = null, CEe = 0;
+function wEe() {
+ return FZ && PZ?.isConnected || (FZ?.unmount(), PZ = document.createElement("div"), PZ.className = "peach-react", PZ.dataset.photoLightboxHost = "", document.body.append(PZ), FZ = (0, Rt.createRoot)(PZ)), FZ;
}
-async function PZ(e, t, n) {
+async function IZ(e, t, n) {
if (!t.length || e < 0 || e >= t.length) return;
let r;
try {
- r = await vEe();
+ r = await yEe();
} catch {
window.open(t[e].src, "_blank", "noopener");
return;
}
- let i = CEe();
- (0, Lt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(wEe, {
+ let i = wEe();
+ (0, Lt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(TEe, {
slides: t,
index: e,
Swiper: r,
host: n ?? null
- }, ++SEe)));
+ }, ++CEe)));
}
-function FZ() {
- NZ && (0, Lt.flushSync)(() => NZ.render(null));
+function LZ() {
+ FZ && (0, Lt.flushSync)(() => FZ.render(null));
}
-function wEe({ slides: e, index: t, Swiper: n, host: r }) {
+function TEe({ 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: ""
@@ -63082,7 +63141,7 @@ function wEe({ slides: e, index: t, Swiper: n, host: r }) {
v(this.activeIndex), i(this.activeIndex);
} }
});
- i(t, 0), h.current = yEe(e, a, b);
+ i(t, 0), h.current = bEe(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();
};
@@ -63099,13 +63158,13 @@ function wEe({ slides: e, index: t, Swiper: n, host: r }) {
});
y.observe(e);
let x = (e) => {
- e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), g.current?.isOpen() ? g.current.dismiss(!0) : FZ());
+ e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), g.current?.isOpen() ? g.current.dismiss(!0) : LZ());
};
return document.addEventListener("keydown", x, !0), () => {
document.removeEventListener("keydown", x, !0), _(), y.disconnect(), a.destroy(!0, !0), r.destroy(!0, !0), h.current = null, g.current = null, e.close(), document.body.classList.remove("photolight-open");
};
}, []), (0, F.useLayoutEffect)(() => {
- m.current && EZ(m.current);
+ m.current && OZ(m.current);
}, [y]);
let j = e[_], M = j.asset ?? null, ee = async (e) => {
if (!M || !r || e.getAttribute("aria-busy") === "true") return;
@@ -63136,18 +63195,18 @@ function wEe({ slides: e, index: t, Swiper: n, host: r }) {
"data-photo-lightbox": "",
"data-has-strip": i ? "" : void 0,
onCancel: (e) => {
- e.preventDefault(), FZ();
+ e.preventDefault(), LZ();
},
onClick: (e) => {
let t = e.target;
- g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && FZ();
+ g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && LZ();
},
children: [
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-photo-close": "",
"aria-label": "关闭",
- onClick: FZ,
+ onClick: LZ,
dangerouslySetInnerHTML: { __html: R("x") }
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -63283,10 +63342,10 @@ function wEe({ slides: e, index: t, Swiper: n, host: r }) {
id: `${a}-title`,
"data-middle-truncate": "",
tabIndex: -1,
- children: bEe(j)
+ children: xEe(j)
}, _), /* @__PURE__ */ (0, I.jsx)("span", {
"data-photo-detail-meta": "",
- children: xEe(j, x[_])
+ children: SEe(j, x[_])
})]
}),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -63324,41 +63383,41 @@ function wEe({ slides: e, index: t, Swiper: n, host: r }) {
});
}
// src/react/entity-body/entity-body-page.tsx
-function TEe(e) {
- return e.view === "people" && e.roster ? /* @__PURE__ */ (0, I.jsx)(EEe, {
+function EEe(e) {
+ return e.view === "people" && e.roster ? /* @__PURE__ */ (0, I.jsx)(DEe, {
roster: e.roster,
props: e
- }) : e.view === "videos" ? /* @__PURE__ */ (0, I.jsx)(DEe, { ...e }) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, I.jsx)(kEe, {
+ }) : e.view === "videos" ? /* @__PURE__ */ (0, I.jsx)(OEe, { ...e }) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, I.jsx)(jEe, {
photos: e.photos,
props: e
}, e.photos.revision) : null;
}
-var IZ = lZ.people;
-function EEe({ roster: e, props: t }) {
+var RZ = dZ.people;
+function DEe({ roster: e, props: t }) {
let { helpers: n, actions: r } = t, i = (0, F.useMemo)(() => ({
personAvatar: n.personAvatar,
openEntity: r.openEntity
- }), [n, r]), [a, o] = (0, F.useState)(IZ), s = (0, F.useMemo)(() => e.people.slice(0, a), [e.people, a]), c = (0, F.useCallback)(async () => {
- o((e) => e + IZ);
+ }), [n, r]), [a, o] = (0, F.useState)(RZ), s = (0, F.useMemo)(() => e.people.slice(0, a), [e.people, a]), c = (0, F.useCallback)(async () => {
+ o((e) => e + RZ);
}, []);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(xZ, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(CZ, {
kind: e.kind,
items: s,
layout: e.layout,
props: i
- }), a < e.people.length ? /* @__PURE__ */ (0, I.jsx)(xY, {
+ }), a < e.people.length ? /* @__PURE__ */ (0, I.jsx)(CY, {
entity: !0,
load: c,
enabled: () => !0
}, a) : null] });
}
-function DEe(e) {
+function OEe(e) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-entity-grid": "",
- children: /* @__PURE__ */ (0, I.jsx)(KG, {
+ children: /* @__PURE__ */ (0, I.jsx)(JG, {
pending: !e.items,
skeletonHtml: e.skeletonHtml,
- children: e.items ? /* @__PURE__ */ (0, I.jsx)(yY, {
+ children: e.items ? /* @__PURE__ */ (0, I.jsx)(xY, {
mode: "entity",
entityKey: e.listScope || `${e.kind}:${e.name}`,
revision: e.revision,
@@ -63380,33 +63439,33 @@ function DEe(e) {
})
});
}
-var OEe = (e) => Array.from({ length: e.n }, (t, n) => ({
+var kEe = (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 || "官方样张"
-})), LZ = (e) => e.sample === !0, RZ = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, zZ = (e) => LZ(e) ? `/sample-thumb?${RZ(e)}` : `/photo-thumb?id=${e.id}`, BZ = (e) => LZ(e) ? {
- src: `/sample-image?${RZ(e)}`,
- thumb: zZ(e),
+})), zZ = (e) => e.sample === !0, BZ = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, VZ = (e) => zZ(e) ? `/sample-thumb?${BZ(e)}` : `/photo-thumb?id=${e.id}`, AEe = (e) => zZ(e) ? {
+ src: `/sample-image?${BZ(e)}`,
+ thumb: VZ(e),
name: e.name,
asset: null,
source: e.source
} : {
src: `/photo?id=${e.id}`,
- thumb: zZ(e),
+ thumb: VZ(e),
name: e.name || "",
asset: e
};
-function kEe({ photos: e, props: t }) {
- let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, F.useMemo)(() => [...e.codeSets.flatMap(OEe), ...e.items], [e]), [s, c] = (0, F.useState)(() => /* @__PURE__ */ new Set()), l = (0, F.useCallback)((e) => c((t) => {
+function jEe({ photos: e, props: t }) {
+ let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, F.useMemo)(() => [...e.codeSets.flatMap(kEe), ...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) => {
- PZ(e, o.map(BZ), { revealSource: i.revealSource });
- }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, I.jsx)(AEe, {
+ IZ(e, o.map(AEe), { revealSource: i.revealSource });
+ }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, I.jsx)(MEe, {
item: e,
index: t,
lost: s.has(t),
@@ -63424,7 +63483,7 @@ function kEe({ photos: e, props: t }) {
};
}), h = p;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(VZ, {
+ m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(HZ, {
label: e.code,
title: e.name,
meta: [
@@ -63436,7 +63495,7 @@ function kEe({ photos: e, props: t }) {
...f,
children: o.slice(t, t + e.n).map((e, n) => d(e, t + n))
})] }, e.code)),
- m.length && e.total ? /* @__PURE__ */ (0, I.jsx)(VZ, {
+ m.length && e.total ? /* @__PURE__ */ (0, I.jsx)(HZ, {
label: "本地图片",
meta: `${e.total.toLocaleString()} 张`
}) : null,
@@ -63445,14 +63504,14 @@ function kEe({ photos: e, props: t }) {
"data-local-wall": "",
children: e.items.map((e, t) => s.has(h + t) ? null : d(e, h + t))
}),
- e.hasMore ? /* @__PURE__ */ (0, I.jsx)(xY, {
+ e.hasMore ? /* @__PURE__ */ (0, I.jsx)(CY, {
entity: !0,
load: i.loadMorePhotos,
enabled: () => a?.() !== !1
}, e.items.length) : null
] });
}
-function VZ({ label: e, title: t, meta: n }) {
+function HZ({ label: e, title: t, meta: n }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-photo-group": "",
children: [
@@ -63469,7 +63528,7 @@ function VZ({ label: e, title: t, meta: n }) {
]
});
}
-function AEe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
+function MEe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
let a = e.name ?? "";
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -63478,7 +63537,7 @@ function AEe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
title: a,
onClick: () => i(t),
children: n ? null : /* @__PURE__ */ (0, I.jsx)("img", {
- src: zZ(e),
+ src: VZ(e),
alt: a,
loading: "lazy",
decoding: "async",
@@ -63488,9 +63547,9 @@ function AEe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
});
}
// src/react/background-job.ts
-var jEe = 2e3, MEe = (e) => e, NEe = (e, t) => t;
-function HZ(e) {
- let { queryKey: t, jobOf: n = MEe, withJob: r = NEe, idlePollMs: i } = e, [a, o] = (0, F.useState)(!1), [s, c] = (0, F.useState)(null), l = (0, F.useRef)(e);
+var NEe = 2e3, PEe = (e) => e, FEe = (e, t) => t;
+function UZ(e) {
+ let { queryKey: t, jobOf: n = PEe, withJob: r = FEe, 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;
});
@@ -63499,7 +63558,7 @@ function HZ(e) {
queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),
refetchInterval: (e) => {
let t = e.state.data;
- return t !== void 0 && n(t)?.status === "running" ? jEe : i ?? !1;
+ return t !== void 0 && n(t)?.status === "running" ? NEe : i ?? !1;
}
}), d = Ft({
mutationFn: (e) => l.current.start(e),
@@ -63523,13 +63582,13 @@ function HZ(e) {
};
}
// src/react/follow-feed/follow-check.ts
-var UZ = (e) => [...new Set(e)].filter((e) => Number.isSafeInteger(e) && e > 0);
-function PEe(e, t) {
- return t ? UZ(e.filter((e) => e.author_key === t || t.startsWith("entity:") && String(e.entity_id) === t.slice(7)).map((e) => e.id)) : [];
+var WZ = (e) => [...new Set(e)].filter((e) => Number.isSafeInteger(e) && e > 0);
+function IEe(e, t) {
+ return t ? WZ(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 FEe({ sources: e, report: t }) {
- let n = UZ(e), [r, i] = (0, F.useState)(""), { running: a, start: o } = HZ({
+function LEe({ sources: e, report: t }) {
+ let n = WZ(e), [r, i] = (0, F.useState)(""), { running: a, start: o } = UZ({
queryKey: Rr,
queryFn: ({ signal: e }) => _i(e),
start: (e) => bi(e),
@@ -63543,20 +63602,20 @@ function FEe({ sources: e, report: t }) {
children: [/* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
disabled: !n.length,
- ...DV(s),
+ ...kV(s),
onClick: () => {
n.length && !s && (i(""), o.mutate(n));
},
children: "检查更新"
- }), r ? /* @__PURE__ */ (0, I.jsx)(SV, {
+ }), r ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "error",
children: r
}) : null]
});
}
// src/react/follow-feed/follow-card.tsx
-var IEe = (e) => Number(e) > 0;
-function WZ({ name: e, actions: t, children: n, ...r }) {
+var REe = (e) => Number(e) > 0;
+function GZ({ name: e, actions: t, children: n, ...r }) {
return /* @__PURE__ */ (0, I.jsx)("a", {
...r,
href: Nn("creator", e),
@@ -63566,15 +63625,15 @@ function WZ({ name: e, actions: t, children: n, ...r }) {
children: n
});
}
-var GZ = ({ provider: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var KZ = ({ provider: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-nothumb": "",
- dangerouslySetInnerHTML: { __html: xG(e) }
+ dangerouslySetInnerHTML: { __html: CG(e) }
});
-function LEe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a, retryKey: o }) {
+function zEe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a, retryKey: o }) {
let [s, c] = (0, F.useState)(!1), [l, u] = (0, F.useState)(!1), [d, f] = (0, F.useState)(null);
return (0, F.useEffect)(() => {
c(!1);
- }, [o]), s ? /* @__PURE__ */ (0, I.jsx)(GZ, { provider: i }) : /* @__PURE__ */ (0, I.jsx)("img", {
+ }, [o]), s ? /* @__PURE__ */ (0, I.jsx)(KZ, { provider: i }) : /* @__PURE__ */ (0, I.jsx)("img", {
src: l ? t : e,
alt: "",
loading: "lazy",
@@ -63593,8 +63652,8 @@ function LEe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a
} : void 0
});
}
-function REe(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) => Tye(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 BEe(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) => Eye(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,
@@ -63602,7 +63661,7 @@ function REe(e) {
limit: 9
}), S = (0, F.useRef)(x.faces);
S.current = x.faces;
- let C = _K({
+ let C = yK({
load: async () => S.current,
canFlip: () => S.current.length > 1 && l.canFlip(),
referrerPolicy: "no-referrer"
@@ -63610,7 +63669,7 @@ function REe(e) {
w.current = C.onPointerLeave;
let T = (0, F.useCallback)((e) => {
e && (e._stopHover = () => w.current());
- }, []), E = EG(u, n, i), D = SG(u), O = u.resource_provider || u.provider, k = (u.tags || []).slice(0, 3), A = kG(u, i), j = OG(t, u), M = u.status === "saved", ee = (e) => {
+ }, []), E = OG(u, n, i), D = wG(u), O = u.resource_provider || u.provider, k = (u.tags || []).slice(0, 3), A = jG(u, i), j = AG(t, u), M = u.status === "saved", ee = (e) => {
e.target.closest("[data-media-tag]") || (l.toggleSelection && (o || e.shiftKey || e.ctrlKey || e.metaKey) ? (e.preventDefault(), l.toggleSelection(u.id, e.shiftKey)) : l.openDetail(u.id));
}, N = (e, t) => {
e.stopPropagation(), t();
@@ -63625,7 +63684,7 @@ function REe(e) {
"data-collection": x.isMix ? "" : void 0,
"data-selected": a ? "" : void 0,
onClick: ee,
- onMouseDown: sK,
+ onMouseDown: lK,
onMouseEnter: C.onPointerEnter,
onMouseLeave: C.onPointerLeave,
children: [
@@ -63639,7 +63698,7 @@ function REe(e) {
}), /* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-pic": "",
children: [
- p ? /* @__PURE__ */ (0, I.jsx)(LEe, {
+ p ? /* @__PURE__ */ (0, I.jsx)(zEe, {
src: p,
fallback: m,
width: _?.width,
@@ -63647,7 +63706,7 @@ function REe(e) {
provider: O,
onLearn: v,
retryKey: e.retryKey
- }, p) : /* @__PURE__ */ (0, I.jsx)(GZ, { provider: O }),
+ }, p) : /* @__PURE__ */ (0, I.jsx)(KZ, { provider: O }),
x.faces.length > 1 ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-mix-faces": "",
hidden: !C.faces.length,
@@ -63667,7 +63726,7 @@ function REe(e) {
"data-media-badge": "",
title: u.provider_label || u.provider,
"aria-label": `来源:${u.provider_label || u.provider}`,
- dangerouslySetInnerHTML: { __html: xG(u.provider, u.provider_label) }
+ dangerouslySetInnerHTML: { __html: CG(u.provider, u.provider_label) }
}), j ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-badges": "",
dangerouslySetInnerHTML: { __html: j }
@@ -63680,7 +63739,7 @@ function REe(e) {
},
dangerouslySetInnerHTML: { __html: R("check") }
}) : null,
- IEe(u.duration) ? /* @__PURE__ */ (0, I.jsx)("span", {
+ REe(u.duration) ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-duration": "",
children: qn(u.duration)
}) : null,
@@ -63752,7 +63811,7 @@ function REe(e) {
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-meta": "",
children: [
- E.entityName ? /* @__PURE__ */ (0, I.jsx)(WZ, {
+ E.entityName ? /* @__PURE__ */ (0, I.jsx)(GZ, {
name: E.entityName,
actions: l,
"data-media-avatar": "",
@@ -63771,12 +63830,12 @@ function REe(e) {
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-media-title": "",
- dangerouslySetInnerHTML: { __html: DG(t, u) + z(D) }
+ dangerouslySetInnerHTML: { __html: kG(t, u) + z(D) }
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-follow-byline": "",
children: [
- E.entityName ? /* @__PURE__ */ (0, I.jsx)(WZ, {
+ E.entityName ? /* @__PURE__ */ (0, I.jsx)(GZ, {
name: E.entityName,
actions: l,
"data-follow-author": "",
@@ -63789,8 +63848,8 @@ function REe(e) {
}),
/* @__PURE__ */ (0, I.jsx)("time", {
dateTime: u.published_at || "",
- title: jG(u),
- children: wye(u)
+ title: NG(u),
+ children: Tye(u)
}),
E.credited ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-credit": "",
@@ -63825,9 +63884,9 @@ function REe(e) {
]
});
}
-var KZ = (0, F.memo)(REe);
+var qZ = (0, F.memo)(BEe);
// src/react/components/use-masonry-grid.ts
-function zEe(e, t) {
+function VEe(e, t) {
let n = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
let t = n.current;
@@ -63862,37 +63921,37 @@ function zEe(e, t) {
}, [e, t]), n;
}
// src/react/follow-manage/manage-route.ts
-var qZ = [
+var JZ = [
["list", "关注列表"],
["add", "添加关注"],
["tags", "标签管理"]
-], JZ = qZ.map(([e]) => e);
-function YZ(e) {
+], YZ = JZ.map(([e]) => e);
+function XZ(e) {
let t = new URLSearchParams(e), n = t.get("tab");
return {
- tab: JZ.find((e) => e === n) || "list",
+ tab: YZ.find((e) => e === n) || "list",
page: Math.max(1, Math.floor(Number(t.get("page"))) || 1),
sort: t.get("sort") || "",
dir: t.get("dir") || ""
};
}
-function XZ(e) {
+function ZZ(e) {
let t = new URLSearchParams();
return e.tab !== "list" && t.set("tab", e.tab), e.page > 1 && t.set("page", String(e.page)), e.sort && t.set("sort", e.sort), e.dir && t.set("dir", e.dir), "/subscriptions" + (t.size ? `?${t}` : "");
}
-function ZZ(e, t) {
- return !t && new URLSearchParams(e).get("tab") === "wants" ? "/jav?tab=wants" : !t && new URLSearchParams(e).get("tab") === "source" ? "/settings/library?section=%E6%9D%A5%E6%BA%90%E4%B8%8E%E8%AE%A2%E9%98%85" : XZ({
- tab: t || YZ(e).tab,
+function QZ(e, t) {
+ return !t && new URLSearchParams(e).get("tab") === "wants" ? "/jav?tab=wants" : !t && new URLSearchParams(e).get("tab") === "source" ? "/settings/library?section=%E6%9D%A5%E6%BA%90%E4%B8%8E%E8%AE%A2%E9%98%85" : ZZ({
+ tab: t || XZ(e).tab,
page: 1,
sort: "",
dir: ""
});
}
// src/react/follow-feed/follow-feed-page.tsx
-var QZ = () => /* @__PURE__ */ (0, I.jsx)("span", {
+var $Z = () => /* @__PURE__ */ (0, I.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), BEe = TV("settings"), $Z = TV("chevron-down"), VEe = TV("history"), HEe = TV("arrow-up"), UEe = TV("arrow-down"), WEe = [[
+}), HEe = DV("settings"), eQ = DV("chevron-down"), UEe = DV("history"), WEe = DV("arrow-up"), GEe = DV("arrow-down"), KEe = [[
"fixed",
"固定比例",
"layout-grid"
@@ -63901,7 +63960,7 @@ var QZ = () => /* @__PURE__ */ (0, I.jsx)("span", {
"瀑布流",
"columns-2"
]];
-function GEe(e, t, n) {
+function qEe(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) => {
@@ -63949,7 +64008,7 @@ function GEe(e, t, n) {
n
]);
}
-function KEe(e) {
+function JEe(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)
@@ -63957,7 +64016,7 @@ function KEe(e) {
sources: s?.sources || [],
aliases: s?.author_aliases || [],
credentials: c
- }), [s, c]), u = GEe(s, t, n), d = a.isPending || a.isPlaceholderData, f = !d && !!s;
+ }), [s, c]), u = qEe(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 });
}, [
@@ -63991,10 +64050,10 @@ function KEe(e) {
p,
i
]);
- let m = JEe(e, !!s);
+ let m = XEe(e, !!s);
if (!s) return a.isError ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-follow-feed": "",
- children: [/* @__PURE__ */ (0, I.jsx)(eQ, {}), /* @__PURE__ */ (0, I.jsx)(GG, {
+ children: [/* @__PURE__ */ (0, I.jsx)(tQ, {}), /* @__PURE__ */ (0, I.jsx)(qG, {
message: bn(a.error),
onRetry: () => void a.refetch()
})]
@@ -64007,7 +64066,7 @@ function KEe(e) {
author: u.author,
provider: u.provider
}, {
- authors: new Map([...u.authorSources].map(([e, t]) => [e, CG(t, l)])),
+ authors: new Map([...u.authorSources].map(([e, t]) => [e, TG(t, l)])),
providers: u.providers,
works: u.workNames
}), _ = t.status ? u.counts[t.status] || 0 : u.allCount, v = u.sources.some((e) => e.can_backfill);
@@ -64016,7 +64075,7 @@ function KEe(e) {
ref: m.host,
"data-follow-progress": ""
}, m.generation),
- !m.busy && m.report ? /* @__PURE__ */ (0, I.jsx)(SV, {
+ !m.busy && m.report ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "neutral",
title: "检查结果",
children: m.report
@@ -64025,7 +64084,7 @@ function KEe(e) {
"data-follow-feed": "",
"data-select-mode": e.selectMode ? "" : void 0,
children: [
- /* @__PURE__ */ (0, I.jsx)(eQ, { children: u.sources.length ? /* @__PURE__ */ (0, I.jsx)(J, {
+ /* @__PURE__ */ (0, I.jsx)(tQ, { children: u.sources.length ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "primary",
"data-follow-recheck": "",
"aria-label": "检查每个来源的更新",
@@ -64036,20 +64095,20 @@ function KEe(e) {
dangerouslySetInnerHTML: { __html: zs("检查中") }
}) : "检查更新"
}) : null }),
- /* @__PURE__ */ (0, I.jsx)(YEe, {
+ /* @__PURE__ */ (0, I.jsx)(ZEe, {
facets: u,
pressed: u.author,
context: l,
props: e,
onPick: (e) => h({ author: u.author === e ? "" : e })
}),
- /* @__PURE__ */ (0, I.jsx)(XEe, {
+ /* @__PURE__ */ (0, I.jsx)(QEe, {
rows: u.workRows,
pressed: t.work,
props: e,
onPick: (e) => h({ work: t.work === e ? "" : e })
}),
- /* @__PURE__ */ (0, I.jsx)(ZEe, {
+ /* @__PURE__ */ (0, I.jsx)($Ee, {
facets: u,
view: t,
total: _,
@@ -64057,7 +64116,7 @@ function KEe(e) {
props: e,
route: h
}),
- /* @__PURE__ */ (0, I.jsx)(QEe, {
+ /* @__PURE__ */ (0, I.jsx)(eDe, {
conditions: g,
onDrop: (e) => i.route(Ta(t, e)),
onClear: () => h({
@@ -64069,8 +64128,8 @@ function KEe(e) {
durMax: 0
})
}),
- u.broken.length ? /* @__PURE__ */ (0, I.jsx)($Ee, { count: u.broken.length }) : null,
- /* @__PURE__ */ (0, I.jsx)(eDe, {
+ u.broken.length ? /* @__PURE__ */ (0, I.jsx)(tDe, { count: u.broken.length }) : null,
+ /* @__PURE__ */ (0, I.jsx)(nDe, {
retryKey: a.dataUpdatedAt,
pending: d,
facets: u,
@@ -64093,14 +64152,14 @@ function KEe(e) {
"data-follow-pagination": "",
children: [s.has_more ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-page-action": "",
- children: s.groups.length < 500 ? /* @__PURE__ */ (0, I.jsxs)(xY, {
+ children: s.groups.length < 500 ? /* @__PURE__ */ (0, I.jsxs)(CY, {
entity: !0,
enabled: () => !m.busyRef.current,
load: async () => {
await a.fetchNextPage({ throwOnError: !0 });
},
- children: [/* @__PURE__ */ (0, I.jsx)($Z, { className: "size-(--icon-inline)" }), "加载更多"]
- }, a.data?.pages.length) : /* @__PURE__ */ (0, I.jsx)(qEe, {
+ children: [/* @__PURE__ */ (0, I.jsx)(eQ, { className: "size-(--icon-inline)" }), "加载更多"]
+ }, a.data?.pages.length) : /* @__PURE__ */ (0, I.jsx)(YEe, {
busy: a.isFetchingNextPage,
error: a.isFetchNextPageError ? bn(a.error) : "",
load: () => {
@@ -64111,7 +64170,7 @@ function KEe(e) {
"data-follow-page-action": "",
children: [/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- leadingIcon: m.olderBusy ? void 0 : VEe,
+ leadingIcon: m.olderBusy ? void 0 : UEe,
"data-follow-older": "",
"aria-busy": m.busy || void 0,
onClick: () => void m.start(!0),
@@ -64129,7 +64188,7 @@ function KEe(e) {
})
] });
}
-function eQ({ children: e }) {
+function tQ({ children: e }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-follow-head": "",
children: [/* @__PURE__ */ (0, I.jsx)("h2", {
@@ -64137,30 +64196,30 @@ function eQ({ children: e }) {
children: "关注"
}), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-follow-head-actions": "",
- children: [/* @__PURE__ */ (0, I.jsx)(ML, {
+ children: [/* @__PURE__ */ (0, I.jsx)(PL, {
variant: "secondary",
- leadingIcon: BEe,
+ leadingIcon: HEe,
"data-follow-manage": "",
- href: tQ(),
+ href: nQ(),
children: "管理关注"
}), e]
})]
});
}
-function qEe({ busy: e, error: t, load: n }) {
+function YEe({ busy: e, error: t, load: n }) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-entity-more": "",
"aria-busy": e || void 0,
"aria-disabled": e || void 0,
onClick: n,
- children: [/* @__PURE__ */ (0, I.jsx)($Z, { className: "size-(--icon-inline)" }), "加载更多"]
- }), t ? /* @__PURE__ */ (0, I.jsx)(GG, {
+ children: [/* @__PURE__ */ (0, I.jsx)(eQ, { className: "size-(--icon-inline)" }), "加载更多"]
+ }), t ? /* @__PURE__ */ (0, I.jsx)(qG, {
message: t,
onRetry: n
}) : null] });
}
-function JEe(e, t) {
+function XEe(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
@@ -64222,12 +64281,12 @@ function JEe(e, t) {
olderBusy: c === "older" || f && o
};
}
-function YEe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
+function ZEe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
let a = (0, F.useRef)(null);
(0, F.useEffect)(() => {
r.helpers.wireDrag(a.current);
}, [r.helpers]);
- let o = (t) => CG(e.authorSources.get(t) || [], n);
+ let o = (t) => TG(e.authorSources.get(t) || [], n);
return e.authorOrder.length ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-authors-bar": "",
children: /* @__PURE__ */ (0, I.jsx)("div", {
@@ -64235,14 +64294,14 @@ function YEe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
"data-follow-authors": "",
"aria-label": "创作者",
children: e.authorOrder.map((n) => {
- let a = e.authorSources.get(n) || [], s = wG(a), c = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ let a = e.authorSources.get(n) || [], s = EG(a), c = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-ring": "",
- dangerouslySetInnerHTML: { __html: TG(a, o(n)) }
+ dangerouslySetInnerHTML: { __html: DG(a, o(n)) }
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-name": "",
children: o(n)
})] });
- return s ? /* @__PURE__ */ (0, I.jsx)(WZ, {
+ return s ? /* @__PURE__ */ (0, I.jsx)(GZ, {
name: s,
actions: r.actions,
"data-follow-author": n,
@@ -64259,7 +64318,7 @@ function YEe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
})
}) : null;
}
-function XEe({ rows: e, pressed: t, props: n, onPick: r }) {
+function QEe({ rows: e, pressed: t, props: n, onPick: r }) {
let i = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
n.helpers.wireDrag(i.current);
@@ -64280,13 +64339,13 @@ function XEe({ rows: e, pressed: t, props: n, onPick: r }) {
}, e[0]))
}) : null;
}
-function ZEe({ 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 = AL(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = AL(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
+function $Ee({ 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 = ML(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = ML(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
(0, F.useEffect)(() => {
o.wireDrag(f.current), o.wireDrag(p.current), o.wireScroller(p.current);
}, [o]);
let _ = [...e.providers], v = _.length + e.tagRows.length > 0, y = t.media === "images";
- return /* @__PURE__ */ (0, I.jsx)(TL, {
+ return /* @__PURE__ */ (0, I.jsx)(DL, {
label: "筛选与排序",
topLabel: m ? "媒体与关注筛选" : "关注筛选",
attrs: {
@@ -64338,7 +64397,7 @@ function ZEe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: R(i) }
}, e);
})
- }), /* @__PURE__ */ (0, I.jsx)(QZ, {})] }) : null, /* @__PURE__ */ (0, I.jsxs)("div", {
+ }), /* @__PURE__ */ (0, I.jsx)($Z, {})] }) : null, /* @__PURE__ */ (0, I.jsxs)("div", {
ref: f,
"data-entity-scroll": "",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -64358,7 +64417,7 @@ function ZEe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
t.status !== e && a({ status: e });
},
children: n
- }, e)), v ? /* @__PURE__ */ (0, I.jsx)(QZ, {}) : null]
+ }, e)), v ? /* @__PURE__ */ (0, I.jsx)($Z, {}) : null]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: p,
"data-entity-tags": "",
@@ -64371,10 +64430,10 @@ function ZEe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
title: n,
"aria-label": `来源:${n}`,
onClick: () => a({ provider: e.provider === t ? "" : t }),
- dangerouslySetInnerHTML: { __html: xG(t, n) }
+ dangerouslySetInnerHTML: { __html: CG(t, n) }
}, t)),
- _.length && e.tagRows.length ? /* @__PURE__ */ (0, I.jsx)(QZ, {}) : null,
- e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, I.jsxs)(EL, {
+ _.length && e.tagRows.length ? /* @__PURE__ */ (0, I.jsx)($Z, {}) : null,
+ e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, I.jsxs)(OL, {
"data-follow-tag": n,
"data-entity-press": "",
"data-tag-cat": `r34-${Ea(e.groups, n)}`,
@@ -64392,23 +64451,23 @@ function ZEe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
/* @__PURE__ */ (0, I.jsx)("h3", {
"data-entity-readout": "",
"data-follow-readout": "",
- children: /* @__PURE__ */ (0, I.jsx)(vL, {
+ children: /* @__PURE__ */ (0, I.jsx)(bL, {
text: `${n.toLocaleString()} 项更新 · 显示 ${e.visible.length.toLocaleString()}`,
busy: r
})
}),
- /* @__PURE__ */ (0, I.jsx)(BV, {
+ /* @__PURE__ */ (0, I.jsx)(HV, {
currentHref: () => location.pathname + location.search,
kind: "creator"
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(zG, { onPress: s.shuffle }),
- y ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(RG, {
+ /* @__PURE__ */ (0, I.jsx)(VG, { onPress: s.shuffle }),
+ y ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(BG, {
label: "图片布局",
value: i.photoLayout,
- options: WEe,
+ options: KEe,
onChange: (e) => s.setPhotoLayout(e === "fixed" ? "fixed" : "masonry")
}), /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
@@ -64438,9 +64497,9 @@ function ZEe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
let n = xa(e, t.sort, t.dir);
n && a(n);
},
- children: [n, r ? /* @__PURE__ */ (0, I.jsx)(gG, {
- a: HEe,
- b: UEe,
+ children: [n, r ? /* @__PURE__ */ (0, I.jsx)(vG, {
+ a: WEe,
+ b: GEe,
state: t.dir === "asc" ? "a" : "b",
className: "size-(--icon-inline)"
}) : null]
@@ -64451,7 +64510,7 @@ function ZEe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
] })
});
}
-function QEe({ conditions: e, onDrop: t, onClear: n }) {
+function eDe({ conditions: e, onDrop: t, onClear: n }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-entity-combo": "",
"data-follow-combo": "",
@@ -64476,21 +64535,21 @@ function QEe({ conditions: e, onDrop: t, onClear: n }) {
})] }) : null
});
}
-function $Ee({ count: e }) {
+function tDe({ 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(tQ())}" data-follow-manage>管理关注</a>看原因。</span></div>` }
+ dangerouslySetInnerHTML: { __html: `<div class="geist-note geist-note-error fwarn" role="alert">${R("alert")}<span>${e} 个来源上次检查失败,去<a class="flink" href="${z(nQ())}" data-follow-manage>管理关注</a>看原因。</span></div>` }
});
}
-var tQ = () => ZZ(window.location.search);
-function eDe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a, checkAction: o }) {
+var nQ = () => QZ(window.location.search);
+function nDe({ 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)(KG, {
+ children: /* @__PURE__ */ (0, I.jsx)(JG, {
pending: e,
skeletonHtml: () => c.listSkeletonHtml(s.media),
- children: e ? null : /* @__PURE__ */ (0, I.jsx)(tDe, {
+ children: e ? null : /* @__PURE__ */ (0, I.jsx)(rDe, {
facets: t,
data: n,
context: r,
@@ -64502,29 +64561,29 @@ function eDe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a
})
});
}
-function tDe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a, checkAction: o }) {
- let { view: s, actions: c } = r, l = rQ(r), u = i ? {
+function rDe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a, checkAction: o }) {
+ let { view: s, actions: c } = r, l = iQ(r), u = i ? {
"data-size": r.photoSize,
"data-layout": r.photoLayout,
"data-images-only": String(r.imagesOnly)
- } : {}, d = zEe(i && r.photoLayout === "masonry", `${r.photoSize}:${e.visible.map((e) => e.primary.id).join(",")}`), f;
+ } : {}, d = VEe(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)(KZ, {
+ return /* @__PURE__ */ (0, I.jsx)(qZ, {
group: t,
authorSources: o,
media: s.media,
retryKey: a,
context: n,
- selected: r.selected.has(nQ(t, s)),
+ selected: r.selected.has(rQ(t, s)),
selectMode: r.selectMode,
- busy: l.busy.get(nQ(t, s)) || "",
- failure: l.failures.get(nQ(t, s)) || "",
+ busy: l.busy.get(rQ(t, s)) || "",
+ failure: l.failures.get(rQ(t, s)) || "",
actions: c,
onStatus: l.status,
onSave: l.save
}, `${u}:${s.media}`);
- }) : /* @__PURE__ */ (0, I.jsx)(nDe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(iDe, {
data: t,
filtered: !!(s.status || e.author || e.provider || s.work || s.tags.length || s.durMin || s.durMax),
checkAction: o,
@@ -64547,22 +64606,22 @@ function tDe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a,
children: f
});
}
-function nQ(e, t) {
+function rQ(e, t) {
return ha(e, t.media).id;
}
-function nDe({ data: e, filtered: t, clear: n, checkAction: r }) {
+function iDe({ 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)(CV, {
- icon: TV(i ? "search-x" : "rss"),
+ children: /* @__PURE__ */ (0, I.jsx)(TV, {
+ icon: DV(i ? "search-x" : "rss"),
title: i ? "当前筛选下没有更新" : a ? "还没有更新" : "还没有关注任何来源",
actions: i ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
onClick: n,
children: "清除筛选"
- }) : a ? r : /* @__PURE__ */ (0, I.jsx)(ML, {
+ }) : a ? r : /* @__PURE__ */ (0, I.jsx)(PL, {
size: "small",
href: "/subscriptions?tab=add",
children: "添加关注"
@@ -64571,12 +64630,12 @@ function nDe({ data: e, filtered: t, clear: n, checkAction: r }) {
})
});
}
-var rDe = {
+var aDe = {
new: "已恢复未看",
seen: "已标记已看",
ignored: "已忽略"
};
-function rQ(e) {
+function iQ(e) {
let { view: t, revision: n, actions: r } = e, [i, a] = (0, F.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, F.useState)(() => /* @__PURE__ */ new Map()), c = na(t, n).queryKey, l = (e, t, n) => n((n) => {
let r = new Map(n);
return t ? r.set(e, t) : r.delete(e), r;
@@ -64599,7 +64658,7 @@ function rQ(e) {
to: t
}),
onSuccess: (e, { id: t, to: n, was: i }) => {
- u(t, n), d(), r.toast(rDe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
+ u(t, n), d(), r.toast(aDe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
await V(jr, {
item: t,
to: i
@@ -64644,9 +64703,9 @@ function rQ(e) {
};
}
// src/react/entity-body/entity-online.tsx
-function iDe(e) {
+function oDe(e) {
let { result: t, data: n, media: r, helpers: i } = e, a = t.isPending || t.isPlaceholderData;
- return !n && t.isError ? /* @__PURE__ */ (0, I.jsx)(GG, {
+ return !n && t.isError ? /* @__PURE__ */ (0, I.jsx)(qG, {
message: bn(t.error),
onRetry: () => {
t.refetch();
@@ -64654,13 +64713,13 @@ function iDe(e) {
}) : /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-list-body": "",
"data-entity-online": "",
- children: /* @__PURE__ */ (0, I.jsxs)(KG, {
+ children: /* @__PURE__ */ (0, I.jsxs)(JG, {
pending: a,
skeletonHtml: () => i.listSkeletonHtml(r),
- children: [a || !n ? null : /* @__PURE__ */ (0, I.jsx)(aDe, {
+ children: [a || !n ? null : /* @__PURE__ */ (0, I.jsx)(sDe, {
...e,
data: n
- }), !a && n?.has_more ? /* @__PURE__ */ (0, I.jsx)(xY, {
+ }), !a && n?.has_more ? /* @__PURE__ */ (0, I.jsx)(CY, {
entity: !0,
enabled: () => e.canLoadMore?.() !== !1,
load: async () => {
@@ -64670,8 +64729,8 @@ function iDe(e) {
})
});
}
-function aDe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c, clearFilters: l }) {
- let u = rQ({
+function sDe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c, clearFilters: l }) {
+ let u = iQ({
view: e,
revision: 0,
actions: c
@@ -64689,7 +64748,7 @@ function aDe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,
"data-images-only": String(s)
} : {}, m = r.length ? r.map((e) => {
let n = ha(e, t).id, r = d.byId.get(e.primary?.source_id)?.author_key;
- return /* @__PURE__ */ (0, I.jsx)(KZ, {
+ return /* @__PURE__ */ (0, I.jsx)(qZ, {
group: e,
authorSources: r && d.byAuthor.get(r) || [],
media: t,
@@ -64702,11 +64761,11 @@ function aDe({ 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)(oDe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(cDe, {
searched: !!(n.groups || []).length || !!(e.status || e.provider || e.tags.length || e.durMin || e.durMax),
clear: l,
actions: c,
- sources: PEe(n.sources || [], e.author)
+ sources: IEe(n.sources || [], e.author)
});
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-list": "",
@@ -64715,21 +64774,21 @@ function aDe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,
children: m
});
}
-function oDe({ searched: e, clear: t, actions: n, sources: r }) {
+function cDe({ searched: e, clear: t, actions: n, sources: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-empty": "",
className: "contents",
- children: /* @__PURE__ */ (0, I.jsx)(CV, {
- icon: TV(e ? "search-x" : "rss"),
+ children: /* @__PURE__ */ (0, I.jsx)(TV, {
+ icon: DV(e ? "search-x" : "rss"),
title: e ? "当前筛选下没有更新" : "还没有抓到更新",
actions: e ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
onClick: t,
children: "清除筛选"
- }) : r.length ? /* @__PURE__ */ (0, I.jsx)(FEe, {
+ }) : r.length ? /* @__PURE__ */ (0, I.jsx)(LEe, {
sources: r,
report: n.checkReport
- }) : /* @__PURE__ */ (0, I.jsx)(ML, {
+ }) : /* @__PURE__ */ (0, I.jsx)(PL, {
size: "small",
href: "/subscriptions?tab=add",
children: "添加关注"
@@ -64738,7 +64797,7 @@ function oDe({ searched: e, clear: t, actions: n, sources: r }) {
})
});
}
-function iQ(e) {
+function aQ(e) {
return {
x0: 0,
y0: 0,
@@ -64746,7 +64805,7 @@ function iQ(e) {
y1: e.height
};
}
-function aQ(e) {
+function oQ(e) {
return {
x0: Math.round(e.x0),
y0: Math.round(e.y0),
@@ -64754,40 +64813,40 @@ function aQ(e) {
y1: Math.round(e.y1)
};
}
-function oQ(e) {
+function sQ(e) {
return !!e && Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0;
}
-function sQ(e, t) {
- if (!oQ(e)) return {
+function cQ(e, t) {
+ if (!sQ(e)) return {
x0: 0,
y0: 0,
x1: 0,
y1: 0
};
- if (t == null || !(t > 0)) return iQ(e);
+ if (t == null || !(t > 0)) return aQ(e);
let n = e.width, r = n / t;
r > e.height && (r = e.height, n = r * t);
let i = (e.width - n) / 2, a = (e.height - r) / 2;
- return aQ({
+ return oQ({
x0: i,
y0: a,
x1: i + n,
y1: a + r
});
}
-function sDe(e, t) {
- if (!oQ(e) || !(t > 0)) return iQ(e);
+function lDe(e, t) {
+ if (!sQ(e) || !(t > 0)) return aQ(e);
let n = Math.min(e.width, e.height * t);
- return aQ({
+ return oQ({
x0: e.width - n,
y0: 0,
x1: e.width,
y1: e.height
});
}
-function cDe(e, t, n) {
- if (!oQ(t) || !(n > 0)) return iQ(t);
- let r = cQ(e, t), i = sQ({
+function uDe(e, t, n) {
+ if (!sQ(t) || !(n > 0)) return aQ(t);
+ let r = lQ(e, t), i = cQ({
width: r.x1 - r.x0,
height: r.y1 - r.y0
}, n);
@@ -64798,8 +64857,8 @@ function cDe(e, t, n) {
y1: r.y0 + i.y1
};
}
-function cQ(e, t, n = null, r = "width") {
- if (!oQ(t)) return {
+function lQ(e, t, n = null, r = "width") {
+ if (!sQ(t)) return {
x0: 0,
y0: 0,
x1: 0,
@@ -64808,43 +64867,43 @@ function cQ(e, t, n = null, r = "width") {
let i = Math.min(16, t.width, t.height), a = Math.max(i, Math.min(e.x1 - e.x0, t.width)), o = Math.max(i, Math.min(e.y1 - e.y0, t.height));
n != null && n > 0 && (r === "width" ? (o = a / n, o > t.height && (o = t.height, a = o * n)) : (a = o * n, a > t.width && (a = t.width, o = a / n)), a > t.width && (a = t.width, o = a / n));
let s = Math.max(0, Math.min(e.x0, t.width - a)), c = Math.max(0, Math.min(e.y0, t.height - o));
- return aQ({
+ return oQ({
x0: s,
y0: c,
x1: s + a,
y1: c + o
});
}
-function lQ(e, t, n, r) {
+function uQ(e, t, n, r) {
let i = e.x1 - e.x0, a = e.y1 - e.y0, o = Math.max(0, Math.min(e.x0 + t, r.width - i)), s = Math.max(0, Math.min(e.y0 + n, r.height - a));
- return aQ({
+ return oQ({
x0: o,
y0: s,
x1: o + i,
y1: s + a
});
}
-function uQ(e, t, n, r = null) {
- if (!oQ(n) || !(t > 0)) return e;
+function dQ(e, t, n, r = null) {
+ if (!sQ(n) || !(t > 0)) return e;
let i = (e.x0 + e.x1) / 2, a = (e.y0 + e.y1) / 2, o = (e.x1 - e.x0) * t, s = (e.y1 - e.y0) * t;
- return cQ({
+ return lQ({
x0: i - o / 2,
y0: a - s / 2,
x1: i + o / 2,
y1: a + s / 2
}, n, r);
}
-function lDe(e, t, n, r, i = null) {
+function dDe(e, t, n, r, i = null) {
let a = {
x0: e.x0,
y0: e.y0,
x1: Math.max(e.x0 + 1, t),
y1: Math.max(e.y0 + 1, n)
};
- return cQ(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
+ return lQ(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
}
-function uDe(e, t) {
- return oQ(t) ? {
+function fDe(e, t) {
+ return sQ(t) ? {
left: e.x0 / t.width * 100,
top: e.y0 / t.height * 100,
width: (e.x1 - e.x0) / t.width * 100,
@@ -64856,8 +64915,8 @@ function uDe(e, t) {
height: 0
};
}
-function dDe(e, t) {
- if (!oQ(t)) return {
+function pDe(e, t) {
+ if (!sQ(t)) return {
size: "cover",
position: "50% 50%"
};
@@ -64867,7 +64926,7 @@ function dDe(e, t) {
position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`
};
}
-function fDe(e, t) {
+function mDe(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}%`,
@@ -64876,15 +64935,15 @@ function fDe(e, t) {
height: `${t.height / r * 100}%`
};
}
-function dQ(e, t, n) {
+function fQ(e, t, n) {
return t > 0 ? e * n / t : 0;
}
-function pDe(e, t) {
+function hDe(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 mDe = .02, fQ = 1.08;
-function pQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
+var gDe = .02, pQ = 1.08;
+function mQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
let s = (0, F.useRef)(null), c = (0, F.useRef)(null), [l, u] = (0, F.useState)(!1), [d, f] = (0, F.useState)(null);
(0, F.useEffect)(() => {
u(!1);
@@ -64903,8 +64962,8 @@ function pQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
dx: 0,
dy: 0
} : {
- dx: dQ(e, n.clientWidth, r.width),
- dy: dQ(t, n.clientHeight, r.height)
+ dx: fQ(e, n.clientWidth, r.width),
+ dy: fQ(t, n.clientHeight, r.height)
};
}, [r]);
function m(e) {
@@ -64921,22 +64980,22 @@ function pQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
let n = c.current, a = s.current;
if (!n || !a || !r) return;
let o = p(e.clientX - n.x, e.clientY - n.y);
- n.mode === "move" ? i(lQ(n.box, o.dx, o.dy, r)) : i(lDe(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(uQ(n.box, o.dx, o.dy, r)) : i(dDe(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) * mDe), o = {
+ let a = Math.max(1, (n.x1 - n.x0) * gDe), o = {
ArrowLeft: [-a, 0],
ArrowRight: [a, 0],
ArrowUp: [0, -a],
ArrowDown: [0, a]
};
- o[e.key] ? (e.preventDefault(), i(lQ(n, o[e.key][0], o[e.key][1], r))) : (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(uQ(n, e.key === "-" ? 1 / fQ : fQ, r, t)));
+ o[e.key] ? (e.preventDefault(), i(uQ(n, o[e.key][0], o[e.key][1], r))) : (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(dQ(n, e.key === "-" ? 1 / pQ : pQ, r, t)));
}
- let v = n && r ? uDe(cQ(n, r, t), r) : null, y = v ? pDe(v, d) : !1, b = v ? {
+ let v = n && r ? fDe(lQ(n, r, t), r) : null, y = v ? hDe(v, d) : !1, b = v ? {
"--crop-l": `${v.left}%`,
"--crop-t": `${v.top}%`,
"--crop-w": `${v.width}%`,
@@ -64955,7 +65014,7 @@ function pQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
draggable: !1,
onLoad: (e) => {
let t = e.currentTarget;
- oQ({
+ sQ({
width: t.naturalWidth,
height: t.naturalHeight
}) && a({
@@ -64994,7 +65053,7 @@ function pQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
onPointerCancel: g,
onKeyDown: _,
onWheel: (e) => {
- n && r && i(uQ(n, e.deltaY > 0 ? fQ : 1 / fQ, r, t));
+ n && r && i(dQ(n, e.deltaY > 0 ? pQ : 1 / pQ, r, t));
},
className: "absolute left-(--crop-l) top-(--crop-t) h-(--crop-h) w-(--crop-w) cursor-move touch-none outline-none ring-2 ring-border-focus-ring ring-inset focus-visible:ring-4",
children: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -65016,13 +65075,13 @@ function pQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
});
}
// src/react/avatar-picker/avatar-picker.ts
-var hDe = "/api/avatar-choices", mQ = "/api/avatar-pick", gDe = "/api/avatar-code-cover", hQ = "/api/avatar-frame", _De = "/avatar-choice", gQ = (e, t) => [
+var _De = "/api/avatar-choices", hQ = "/api/avatar-pick", vDe = "/api/avatar-code-cover", gQ = "/api/avatar-frame", yDe = "/avatar-choice", _Q = (e, t) => [
"avatar-choices",
e,
t
-], _Q = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, vQ = (e, t, n, r = "") => `${_De}${_Q(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), yQ = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", vDe = (e, t, n) => B(hDe + _Q(e, t), n), yDe = (e) => V(gDe, { code: e });
-async function bDe(e, t, n) {
- let r = await V(hQ, {
+], vQ = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, yQ = (e, t, n, r = "") => `${yDe}${vQ(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), bQ = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", bDe = (e, t, n) => B(_De + vQ(e, t), n), xDe = (e) => V(vDe, { code: e });
+async function SDe(e, t, n) {
+ let r = await V(gQ, {
kind: e,
id: t,
ref: n.ref
@@ -65035,12 +65094,12 @@ async function bDe(e, t, n) {
bases: r.bases
};
}
-var xDe = (e, t, n) => V(hQ, {
+var CDe = (e, t, n) => V(gQ, {
kind: e,
id: t,
url: n
-}), SDe = (e, t, n) => bQ(`${hQ}${_Q(e, t)}&name=${encodeURIComponent(n.name)}`, n);
-async function bQ(e, t) {
+}), wDe = (e, t, n) => xQ(`${gQ}${vQ(e, t)}&name=${encodeURIComponent(n.name)}`, n);
+async function xQ(e, t) {
let n = await fetch(e, {
method: "POST",
credentials: "same-origin",
@@ -65049,17 +65108,17 @@ async function bQ(e, t) {
if (n.ok) return r;
throw new or(r?.error || `请求失败(${n.status})`, n.status, r);
}
-function xQ(e, t, n) {
+function SQ(e, t, n) {
let r = t.width === e.width && t.height === e.height;
- return e.focus && r ? cDe(e.focus, t, n) : sQ(t, n);
+ return e.focus && r ? uDe(e.focus, t, n) : cQ(t, n);
}
-var CDe = (e) => e.crop && oQ({
+var TDe = (e) => e.crop && sQ({
width: e.width,
height: e.height
});
-async function wDe(e, t, n) {
+async function EDe(e, t, n) {
if (!("file" in n)) {
- await V(mQ, {
+ await V(hQ, {
kind: e,
id: t,
...n
@@ -65072,19 +65131,19 @@ async function wDe(e, t, n) {
i.x1,
i.y1
].join(",")}` : "";
- await bQ(`${mQ}${_Q(e, t)}&name=${encodeURIComponent(r.name)}${a}`, r);
+ await xQ(`${hQ}${vQ(e, t)}&name=${encodeURIComponent(r.name)}${a}`, r);
}
-var SQ = 2;
-function TDe(e, t) {
+var CQ = 2;
+function DDe(e, t) {
if (!t) return e;
let n = t.matched_names.filter((t) => t !== e);
- return n.length ? `${e}:图库里按${`「${n.slice(0, SQ).join("」「")}」`}${n.length > SQ ? `等 ${n.length.toLocaleString()} 个名字` : ""}找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:还没有备选图片,可输入番号、图片地址或从本机选择。`;
+ return n.length ? `${e}:图库里按${`「${n.slice(0, CQ).join("」「")}」`}${n.length > CQ ? `等 ${n.length.toLocaleString()} 个名字` : ""}找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:还没有备选图片,可输入番号、图片地址或从本机选择。`;
}
-var EDe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
-function DDe(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 ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${EDe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
+var ODe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
+function kDe(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 ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${ODe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
}
-var CQ = (e) => e.cast > 1, ODe = (e) => CQ(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, kDe = {
+var wQ = (e) => e.cast > 1, ADe = (e) => wQ(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, jDe = {
gfriends: "图库",
history: "用过的",
asset: "作品画面",
@@ -65094,7 +65153,7 @@ var CQ = (e) => e.cast > 1, ODe = (e) => CQ(e) ? `${e.label}:${e.cast.toLocale
social: "社媒头像",
online: "在线作品"
};
-function ADe(e) {
+function MDe(e) {
if (e.startsWith("follow:")) {
let t = e.split(":")[2];
return t === "cover" ? "作品封面" : `内容图片 ${Number(t.replace("image", "") || 0) + 1}`;
@@ -65105,19 +65164,19 @@ function ADe(e) {
let n = Number(t.replace("cell", ""));
return Number.isFinite(n) ? `第 ${n + 1} 格` : t;
}
-var jDe = (e) => `${kDe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (CQ(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), MDe = 8, NDe = 3 / 4;
-async function PDe(e, t, n) {
+var NDe = (e) => `${jDe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (wQ(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), PDe = 8, FDe = 3 / 4;
+async function IDe(e, t, n) {
switch (n.via) {
- case "choice": return { choice: await bDe(e, t, n.choice) };
- case "code": return { choice: await yDe(n.code) };
- case "url": return { choice: await xDe(e, t, n.url) };
+ case "choice": return { choice: await SDe(e, t, n.choice) };
+ case "code": return { choice: await xDe(n.code) };
+ case "url": return { choice: await CDe(e, t, n.url) };
case "file": return {
- choice: await SDe(e, t, n.file),
+ choice: await wDe(e, t, n.file),
file: n.file
};
}
}
-function FDe({ kind: e, entityId: t, name: n, onPicked: r }) {
+function LDe({ 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",
@@ -65127,17 +65186,17 @@ function FDe({ kind: e, entityId: t, name: n, onPicked: r }) {
"aria-label": `更换${n}的头像`,
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-full border border-border-button-default bg-background-primary-default text-foreground-icon-primary shadow-xs outline-none ring-2 ring-background-full transition-colors hover:border-border-button-hover hover:bg-background-primary-hover/60 dark:hover:bg-background-primary-hover focus-visible:ring-border-focus-ring active:bg-background-primary-active",
- children: /* @__PURE__ */ (0, I.jsx)(Ahe, {
+ children: /* @__PURE__ */ (0, I.jsx)(Ohe, {
"aria-hidden": !0,
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, I.jsx)(bV, {
+ }), /* @__PURE__ */ (0, I.jsx)(SV, {
isOpen: i,
onOpenChange: a,
width: "avatar-picker",
label: "更换头像",
- children: /* @__PURE__ */ (0, I.jsx)(IDe, {
+ children: /* @__PURE__ */ (0, I.jsx)(RDe, {
kind: e,
entityId: t,
name: n,
@@ -65146,24 +65205,24 @@ function FDe({ kind: e, entityId: t, name: n, onPicked: r }) {
})
})] });
}
-function IDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, F.useRef)(null), o = QV(), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(null), p = gQ(e, t), m = (0, F.useRef)(!1), h = Pt({
+function RDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
+ let a = (0, F.useRef)(null), o = eH(), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(null), p = _Q(e, t), m = (0, F.useRef)(!1), h = Pt({
queryKey: p,
- queryFn: ({ signal: n }) => vDe(e, t, n),
+ queryFn: ({ signal: n }) => bDe(e, t, n),
retryOnMount: !0,
refetchOnMount: (e) => e.state.data?.index_stale ? "always" : !1,
refetchInterval: (e) => e.state.data?.index_refreshing && !e.state.error ? 1e3 : !1
});
(0, F.useEffect)(() => () => {
- m.current && H.removeQueries({ queryKey: gQ(e, t) });
+ m.current && H.removeQueries({ queryKey: _Q(e, t) });
}, [e, t]);
let g = Ft({
- mutationFn: (n) => wDe(e, t, n),
+ mutationFn: (n) => EDe(e, t, n),
onSuccess: () => {
m.current = !0, i(), r();
}
}), _ = Ft({
- mutationFn: (n) => PDe(e, t, n),
+ mutationFn: (n) => IDe(e, t, n),
onMutate: () => {
g.reset();
},
@@ -65184,39 +65243,39 @@ function IDe({ 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 ? "" : DDe(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 ? "" : kDe(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)(xV, { children: /* @__PURE__ */ (0, I.jsx)(uV, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, I.jsx)(CV, { children: /* @__PURE__ */ (0, I.jsx)(fV, { className: "size-6" }) }),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(eR, {
+ children: [/* @__PURE__ */ (0, I.jsx)(nR, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: d ? "框出头像那一块" : "更换头像"
- }), !d && S.length ? /* @__PURE__ */ (0, I.jsxs)(iW, {
+ }), !d && S.length ? /* @__PURE__ */ (0, I.jsxs)(oW, {
color: "soft",
children: [S.length.toLocaleString(), " 张可选"]
}) : null]
}),
/* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: d ? ODe(d.choice) : TDe(n, x)
+ children: d ? ADe(d.choice) : DDe(n, x)
}),
- T ? /* @__PURE__ */ (0, I.jsx)(SV, {
+ T ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "neutral",
children: T
}) : null,
- C ? /* @__PURE__ */ (0, I.jsx)(SV, {
+ C ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "error",
action: E ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...DV(h.isFetching),
+ ...kV(h.isFetching),
onClick: () => {
h.isFetching || h.refetch();
},
@@ -65226,14 +65285,14 @@ function IDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(bL, {
- icon: LB,
+ /* @__PURE__ */ (0, I.jsx)(SL, {
+ icon: zB,
size: "small",
"aria-label": "关闭",
onClick: i
})
]
- }), d ? /* @__PURE__ */ (0, I.jsx)(RDe, {
+ }), d ? /* @__PURE__ */ (0, I.jsx)(BDe, {
kind: e,
entityId: t,
choice: d.choice,
@@ -65253,7 +65312,7 @@ function IDe({ 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: MDe }, (e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: h.isPending ? Array.from({ length: PDe }, (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",
@@ -65266,8 +65325,8 @@ function IDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
role: "option",
"data-avatar-choice": !0,
"aria-selected": n.current,
- title: jDe(n),
- ...DV(w),
+ title: NDe(n),
+ ...kV(w),
onClick: () => {
w || (n.crop ? (g.reset(), _.reset(), f({ choice: n })) : _.mutate({
via: "choice",
@@ -65276,8 +65335,8 @@ function IDe({ 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)(LDe, {
- src: vQ(e, t, n.ref, yQ(n, n.ref)),
+ /* @__PURE__ */ (0, I.jsx)(zDe, {
+ src: yQ(e, t, n.ref, bQ(n, n.ref)),
choice: n
}),
/* @__PURE__ */ (0, I.jsx)("span", {
@@ -65286,15 +65345,15 @@ function IDe({ 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)(iW, {
+ children: /* @__PURE__ */ (0, I.jsx)(oW, {
variant: "caption",
color: "gray",
children: "在用"
})
}) : null,
- CQ(n) ? /* @__PURE__ */ (0, I.jsx)("span", {
+ wQ(n) ? /* @__PURE__ */ (0, I.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, I.jsxs)(iW, {
+ children: /* @__PURE__ */ (0, I.jsxs)(oW, {
variant: "caption",
color: "gray",
children: [n.cast.toLocaleString(), " 人"]
@@ -65316,7 +65375,7 @@ function IDe({ 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)(yV, {
+ children: /* @__PURE__ */ (0, I.jsx)(xV, {
"aria-label": "番号",
placeholder: "番号,如 ABW-232",
value: l,
@@ -65326,7 +65385,7 @@ function IDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
type: "submit",
variant: "secondary",
disabled: !l.trim(),
- ...DV(v("code")),
+ ...kV(v("code")),
children: "取封面来框"
})]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -65335,7 +65394,7 @@ function IDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
onClick: () => a.current?.click(),
- ...DV(v("file")),
+ ...kV(v("file")),
children: "从本机选图片"
}),
/* @__PURE__ */ (0, I.jsx)("input", {
@@ -65355,7 +65414,7 @@ function IDe({ 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)(yV, {
+ children: /* @__PURE__ */ (0, I.jsx)(xV, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
@@ -65365,7 +65424,7 @@ function IDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
disabled: !s.trim(),
- ...DV(v("url")),
+ ...kV(v("url")),
onClick: () => {
w || _.mutate({
via: "url",
@@ -65379,7 +65438,7 @@ function IDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
})]
})] })] });
}
-function LDe({ src: e, choice: t }) {
+function zDe({ 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);
@@ -65387,7 +65446,7 @@ function LDe({ src: e, choice: t }) {
let s = {
width: t.width,
height: t.height
- }, c = CDe(t) ? fDe(xQ(t, s, NDe), s) : null, l = r || a ? !0 : void 0;
+ }, c = TDe(t) ? mDe(SQ(t, s, FDe), 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",
@@ -65413,23 +65472,23 @@ function LDe({ src: e, choice: t }) {
})]
});
}
-function RDe({ 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 = yQ(n, s), m = vQ(e, t, s, p), h = QV();
+function BDe({ 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 = bQ(n, s), m = yQ(e, t, s, p), h = eH();
function g(e) {
c(e), u(null), f(null);
}
- let _ = d && l ? dDe(d, l) : null;
+ let _ = d && l ? pDe(d, l) : null;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
ref: h,
className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",
- children: [m ? /* @__PURE__ */ (0, I.jsx)(pQ, {
+ children: [m ? /* @__PURE__ */ (0, I.jsx)(mQ, {
src: m,
aspect: 1,
box: d,
size: l,
label: `${n.label} 的头像取景框`,
onSize: (e) => {
- u(e), oQ(e) && f(s === n.ref ? xQ(n, e, 1) : sQ(e, 1));
+ u(e), sQ(e) && f(s === n.ref ? SQ(n, e, 1) : cQ(e, 1));
},
onBox: f
}) : null, o.length > 1 ? /* @__PURE__ */ (0, I.jsx)("div", {
@@ -65443,7 +65502,7 @@ function RDe({ 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: ADe(e)
+ children: MDe(e)
}, e))
}) : null]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -65463,12 +65522,12 @@ function RDe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
onClick: i,
- ...DV(r),
+ ...kV(r),
children: "返回备选图片"
}),
n.crop ? null : /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...DV(r),
+ ...kV(r),
onClick: () => {
r || a(null);
},
@@ -65476,7 +65535,7 @@ function RDe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
}),
/* @__PURE__ */ (0, I.jsx)(J, {
disabled: !d || !l,
- ...DV(r),
+ ...kV(r),
onClick: () => {
d && !r && a({
ref: s,
@@ -65491,17 +65550,17 @@ function RDe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
})] });
}
// src/react/components/source-picture.tsx
-var wQ = (e, t, n = 0) => `/jav-image?code=${encodeURIComponent(e)}&image=${encodeURIComponent(t)}${n ? `&attempt=${n}` : ""}`;
-function TQ({ title: e, detail: t, busy: n, onRetry: r }) {
+var TQ = (e, t, n = 0) => `/jav-image?code=${encodeURIComponent(e)}&image=${encodeURIComponent(t)}${n ? `&attempt=${n}` : ""}`;
+function EQ({ title: e, detail: t, busy: n, onRetry: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-jav-picture-wait": "",
- children: /* @__PURE__ */ (0, I.jsx)(CV, {
+ children: /* @__PURE__ */ (0, I.jsx)(TV, {
size: "compact",
- icon: YB,
+ icon: ZB,
title: e,
actions: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
- ...DV(!!n),
+ ...kV(!!n),
onClick: r,
children: "立即重试"
}),
@@ -65509,9 +65568,9 @@ function TQ({ title: e, detail: t, busy: n, onRetry: r }) {
})
});
}
-function zDe({ code: e }) {
- let t = DH(), [n, r] = (0, F.useState)("");
- return /* @__PURE__ */ (0, I.jsx)(TQ, {
+function VDe({ code: e }) {
+ let t = kH(), [n, r] = (0, F.useState)("");
+ return /* @__PURE__ */ (0, I.jsx)(EQ, {
title: "封面未取得",
detail: t.error || n,
busy: !!t.busy,
@@ -65526,8 +65585,8 @@ function zDe({ code: e }) {
}
});
}
-function EQ({ item: e, image: t, thumbnail: n = !1 }) {
- let [r, i] = (0, F.useState)(0), [a, o] = (0, F.useState)(null), [s, c] = (0, F.useState)(""), l = (0, F.useRef)(null), u = t === "cover" && e.has_cover, d = !u && (t !== "cover" || e.source_image), f = n ? "" : t === "cover" ? `${e.code} 封面` : `${e.code} 预览 ${Number(t) + 1}`, p = d ? wQ(e.code, t, r) : u ? co(e, !0) : e.cover_url || "";
+function DQ({ item: e, image: t, thumbnail: n = !1 }) {
+ let [r, i] = (0, F.useState)(0), [a, o] = (0, F.useState)(null), [s, c] = (0, F.useState)(""), l = (0, F.useRef)(null), u = t === "cover" && e.has_cover, d = !u && (t !== "cover" || e.source_image), f = n ? "" : t === "cover" ? `${e.code} 封面` : `${e.code} 预览 ${Number(t) + 1}`, p = d ? TQ(e.code, t, r) : u ? co(e, !0) : e.cover_url || "";
if ((0, F.useLayoutEffect)(() => {
let e = l.current;
e?.complete && e.naturalWidth > 0 && o({
@@ -65544,8 +65603,8 @@ function EQ({ item: e, image: t, thumbnail: n = !1 }) {
src: p,
alt: f
})
- }) : n ? /* @__PURE__ */ (0, I.jsx)("span", { children: "封面未取得" }) : /* @__PURE__ */ (0, I.jsx)(zDe, { code: e.code });
- if (s === p) return n ? /* @__PURE__ */ (0, I.jsx)("span", { children: "预览未取得" }) : /* @__PURE__ */ (0, I.jsx)(TQ, {
+ }) : n ? /* @__PURE__ */ (0, I.jsx)("span", { children: "封面未取得" }) : /* @__PURE__ */ (0, I.jsx)(VDe, { code: e.code });
+ if (s === p) return n ? /* @__PURE__ */ (0, I.jsx)("span", { children: "预览未取得" }) : /* @__PURE__ */ (0, I.jsx)(EQ, {
title: "图片未取得",
onRetry: () => i((e) => e + 1)
});
@@ -65594,8 +65653,8 @@ function EQ({ item: e, image: t, thumbnail: n = !1 }) {
] });
}
// src/react/components/source-avatar.tsx
-function DQ({ code: e, person: t, detail: n = !1 }) {
- _L();
+function OQ({ code: e, person: t, detail: n = !1 }) {
+ yL();
let r = (0, F.useRef)(null), [i, a] = (0, F.useState)(n || typeof IntersectionObserver > "u");
(0, F.useEffect)(() => {
if (!r.current || i) return;
@@ -65609,7 +65668,7 @@ function DQ({ code: e, person: t, detail: n = !1 }) {
"data-source-initial": "",
children: $n(tn("performer", t.name))
}), i && t.source_actor_id ? /* @__PURE__ */ (0, I.jsx)("img", {
- src: wQ(e, `actor:${t.source_actor_id}`),
+ src: TQ(e, `actor:${t.source_actor_id}`),
alt: "",
"data-drop": "self"
}) : null] });
@@ -65619,8 +65678,8 @@ function DQ({ code: e, person: t, detail: n = !1 }) {
}) : o;
}
// src/react/feed-new/feed-new-row.tsx
-function OQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
- let a = (0, F.useContext)(iG), o = (0, F.useRef)(null), [s, c] = (0, F.useState)([]), l = e?.items.length ? e.html : "";
+function kQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
+ let a = (0, F.useContext)(oG), 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);
}, [
@@ -65652,7 +65711,7 @@ function OQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
u(e);
},
dangerouslySetInnerHTML: { __html: l }
- }), s.map((e, t) => (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(DQ, {
+ }), s.map((e, t) => (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(OQ, {
code: e.dataset.code,
person: {
name: e.dataset.name,
@@ -65661,7 +65720,7 @@ function OQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
}), e, `${l.length}:${t}`))] }) : null;
}
// src/react/entity-hero/glyph.tsx
-function kQ({ name: e }) {
+function AQ({ name: e }) {
let { wide: t, viewBox: n } = Sn(e);
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: n,
@@ -65671,20 +65730,20 @@ function kQ({ name: e }) {
});
}
// src/react/entity-hero/hero-pop.tsx
-function AQ(e, t) {
+function jQ(e, t) {
t.style.removeProperty("max-height");
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect();
t.style.left = `${Math.max(8, Math.min(innerWidth - r.width - 8, n.left))}px`;
let i = n.bottom + 8, a = innerHeight - 8 - i, o = n.top - 16, s = r.height <= a || r.height > o && a >= o, c = Math.max(0, s ? a : o);
r.height > c && (t.style.maxHeight = `${c}px`), t.style.top = `${s ? i : n.top - 8 - Math.min(r.height, c)}px`;
}
-var jQ = (e) => !!e?.isConnected && e.matches(":popover-open");
-function MQ(e, t, n, r) {
+var MQ = (e) => !!e?.isConnected && e.matches(":popover-open");
+function NQ(e, t, n, r) {
let i = (0, F.useRef)(r);
i.current = r, (0, F.useEffect)(() => {
if (!e) return;
let r = () => {
- t.current && jQ(n.current) ? AQ(t.current, n.current) : i.current();
+ t.current && MQ(n.current) ? jQ(t.current, n.current) : i.current();
};
return addEventListener("scroll", r, {
capture: !0,
@@ -65698,17 +65757,17 @@ function MQ(e, t, n, r) {
n
]);
}
-function NQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
+function PQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
let o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(!1), u = (0, F.useRef)(!1), d = (0, F.useRef)(0), f = () => {
- clearTimeout(d.current), u.current = !1, jQ(s.current) && s.current.hidePopover(), l(!1);
+ clearTimeout(d.current), u.current = !1, MQ(s.current) && s.current.hidePopover(), l(!1);
}, p = () => {
- clearTimeout(d.current), s.current && o.current && !jQ(s.current) && (s.current.showPopover(), AQ(o.current, s.current), l(!0));
+ clearTimeout(d.current), s.current && o.current && !MQ(s.current) && (s.current.showPopover(), jQ(o.current, s.current), l(!0));
}, m = () => {
clearTimeout(d.current), d.current = window.setTimeout(() => {
u.current || o.current?.matches(":hover,:focus-visible") || s.current?.matches(":hover") || f();
}, 150);
};
- return MQ(c, o, s, f), (0, F.useEffect)(() => {
+ return NQ(c, o, s, f), (0, F.useEffect)(() => {
if (!c) return;
let e = (e) => {
let t = e.target;
@@ -65734,7 +65793,7 @@ function NQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
u.current ? f() : (p(), u.current = !0);
},
onKeyDown: (e) => {
- e.key === "Escape" && jQ(s.current) && (e.preventDefault(), f());
+ e.key === "Escape" && MQ(s.current) && (e.preventDefault(), f());
},
children: ["+", t]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -65752,16 +65811,16 @@ function NQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
}), a]
})] });
}
-function BDe({ following: e, busy: t, onToggle: n, tip: r }) {
+function HDe({ 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 = () => {
- jQ(o.current) && o.current.hidePopover(), c(!1);
+ MQ(o.current) && o.current.hidePopover(), c(!1);
}, d = () => {
- !l.current && o.current && i.current && !jQ(o.current) && (o.current.showPopover(), AQ(i.current, o.current), c(!0));
+ !l.current && o.current && i.current && !MQ(o.current) && (o.current.showPopover(), jQ(i.current, o.current), c(!0));
}, f = () => {
l.current = !1, u();
};
- return MQ(s, i, o, () => c(!1)), (0, F.useEffect)(() => {
- i.current && jQ(o.current) && AQ(i.current, o.current);
+ return NQ(s, i, o, () => c(!1)), (0, F.useEffect)(() => {
+ i.current && MQ(o.current) && jQ(i.current, o.current);
}, [r]), /* @__PURE__ */ (0, I.jsxs)("label", {
ref: i,
"data-entry-feed": "",
@@ -65770,7 +65829,7 @@ function BDe({ following: e, busy: t, onToggle: n, tip: r }) {
a.current?.matches(":focus-visible") || f();
},
children: [
- /* @__PURE__ */ (0, I.jsx)(kQ, { name: "rss" }),
+ /* @__PURE__ */ (0, I.jsx)(AQ, { name: "rss" }),
/* @__PURE__ */ (0, I.jsx)("input", {
ref: a,
type: "checkbox",
@@ -65804,29 +65863,29 @@ function BDe({ following: e, busy: t, onToggle: n, tip: r }) {
});
}
// src/react/entity-hero/name-picker.tsx
-function VDe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
+function UDe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let [i, a] = (0, F.useState)(!1), o = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
o.current?.setAttribute("title", "名字与别名");
- }, []), /* @__PURE__ */ (0, I.jsxs)($pe, {
+ }, []), /* @__PURE__ */ (0, I.jsxs)(Zpe, {
isOpen: i,
onOpenChange: a,
- children: [/* @__PURE__ */ (0, I.jsx)(QL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(eR, {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
- children: /* @__PURE__ */ (0, I.jsx)(kQ, { name: "chevron-down" })
- }), /* @__PURE__ */ (0, I.jsx)(Tz, {
+ children: /* @__PURE__ */ (0, I.jsx)(AQ, { name: "chevron-down" })
+ }), /* @__PURE__ */ (0, I.jsx)(Dz, {
placement: "bottom start",
offset: 8,
containerPadding: 8,
- className: WV,
+ className: KV,
"data-namepick-menu": "",
- children: /* @__PURE__ */ (0, I.jsxs)(tme, {
+ children: /* @__PURE__ */ (0, I.jsxs)($pe, {
"aria-label": "名字与别名",
"data-namepick-list": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(Nz, {
+ /* @__PURE__ */ (0, I.jsx)(Fz, {
selectionMode: "single",
disallowEmptySelection: !0,
selectedKeys: [e],
@@ -65834,34 +65893,34 @@ function VDe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let r = [...t][0];
r && r !== e && n(r);
},
- children: t.map((e) => /* @__PURE__ */ (0, I.jsxs)(Fz, {
+ children: t.map((e) => /* @__PURE__ */ (0, I.jsxs)(Lz, {
id: e.value,
textValue: e.label,
"data-namepick-name": e.value,
- children: [/* @__PURE__ */ (0, I.jsx)(kQ, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.label })]
+ children: [/* @__PURE__ */ (0, I.jsx)(AQ, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.label })]
}, e.value))
}),
- /* @__PURE__ */ (0, I.jsx)(Ipe, { "data-namepick-rule": "" }),
- /* @__PURE__ */ (0, I.jsx)(Nz, { children: /* @__PURE__ */ (0, I.jsxs)(Fz, {
+ /* @__PURE__ */ (0, I.jsx)(Ppe, { "data-namepick-rule": "" }),
+ /* @__PURE__ */ (0, I.jsx)(Fz, { children: /* @__PURE__ */ (0, I.jsxs)(Lz, {
id: "alias",
textValue: "添加别名",
"data-namepick-alias": "",
onAction: r,
- children: [/* @__PURE__ */ (0, I.jsx)(kQ, { name: "plus" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "添加别名…" })]
+ children: [/* @__PURE__ */ (0, I.jsx)(AQ, { name: "plus" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "添加别名…" })]
}) })
]
})
})]
});
}
-var HDe = (e) => e === "studio" || e === "agency", PQ = (e) => e === "performer" || e === "creator", UDe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
-function WDe(e, t = "zh-CN") {
+var WDe = (e) => e === "studio" || e === "agency", FQ = (e) => e === "performer" || e === "creator", GDe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
+function KDe(e, t = "zh-CN") {
return e.name_display ? e.name_display.choices[t] : [e.canonical_name, ...e.aliases || []].filter((e, t, n) => e && n.indexOf(e) === t).map((e) => ({
value: e,
label: e
}));
}
-function FQ(e) {
+function IQ(e) {
if (e.agency) return {
name: e.agency.canonical_name,
linked: !0,
@@ -65873,13 +65932,13 @@ function FQ(e) {
linked: !1
} : null;
}
-function IQ(e, t) {
+function LQ(e, t) {
let n = Gn(e, "performer"), r = Hn(t);
return r && [e.label, n].map(Hn).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";
}
-var LQ = (e) => ({ site: Rn(e) });
-function GDe(e, t) {
- let n = FQ(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
+var RQ = (e) => ({ site: Rn(e) });
+function qDe(e, t) {
+ let n = IQ(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
type: "icon",
url: e.url,
title: e.label,
@@ -65889,7 +65948,7 @@ function GDe(e, t) {
let t = e.retired_year ? `已于 ${e.retired_year} 年隐退` : "链接已失效";
return {
type: "gone",
- title: `${IQ(e, n)} · ${t}`
+ title: `${LQ(e, n)} · ${t}`
};
}
let r = e.url || "";
@@ -65897,11 +65956,11 @@ function GDe(e, t) {
type: "private",
label: e.label || e.hostname || "已记录"
};
- if (PQ(t) && e.link_kind !== "social") return {
+ if (FQ(t) && e.link_kind !== "social") return {
type: "icon",
url: r,
- title: IQ(e, n),
- mark: LQ(e)
+ title: LQ(e, n),
+ mark: RQ(e)
};
if (e.link_kind === "social") {
let t = Vn(r);
@@ -65909,7 +65968,7 @@ function GDe(e, t) {
type: "icon",
url: r,
title: e.label || "",
- mark: t ? { brand: t } : LQ(e)
+ mark: t ? { brand: t } : RQ(e)
};
}
return {
@@ -65917,12 +65976,12 @@ function GDe(e, t) {
url: r,
title: e.label || "",
text: Gn(e, t, i),
- mark: LQ(e)
+ mark: RQ(e)
};
});
- return [...r, ...KDe(a)];
+ return [...r, ...JDe(a)];
}
-function KDe(e) {
+function JDe(e) {
let t = e.filter((e) => e.type === "private");
return t.length < 2 ? e : [...e.filter((e) => e.type !== "private"), {
type: "private",
@@ -65930,8 +65989,8 @@ function KDe(e) {
sources: t.map((e) => e.label)
}];
}
-var RQ = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
-function qDe(e) {
+var zQ = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
+function YDe(e) {
return [
[
"legal_name",
@@ -65987,7 +66046,7 @@ function qDe(e) {
}]
}] : []);
}
-function JDe(e) {
+function XDe(e) {
if (!e) return [];
let t = [];
e.birth_date && t.push({
@@ -66044,14 +66103,14 @@ function JDe(e) {
tags: e.tags
}), t;
}
-function zQ(e, t = 4) {
+function BQ(e, t = 4) {
let n = e.length > t + 1 ? t : e.length;
return {
shown: e.slice(0, n),
rest: e.length - n
};
}
-function YDe(e) {
+function ZDe(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 ? {
@@ -66061,7 +66120,7 @@ function YDe(e) {
} : null;
}
// src/react/entity-hero/entity-hero-page.tsx
-function XDe(e) {
+function QDe(e) {
return ho({
id: e.id,
hasImage: e.has_image,
@@ -66072,9 +66131,9 @@ function XDe(e) {
standIn: e.avatar_stand_in
});
}
-function ZDe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
- _L();
- let s = tn(e, n.canonical_name, Number(n.id)), c = nn(e, n.canonical_name, Number(n.id)), l = PQ(e), u = HDe(e), d = l ? JDe(n.profile) : u ? qDe(n.company_profile) : [], f = GDe(n, e), p = RQ(n), m = e === "agency" ? [] : n.related_performers || [], h = (0, F.useRef)(null), g = (0, F.useRef)(null);
+function $De({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
+ yL();
+ let s = tn(e, n.canonical_name, Number(n.id)), c = nn(e, n.canonical_name, Number(n.id)), l = FQ(e), u = WDe(e), d = l ? XDe(n.profile) : u ? YDe(n.company_profile) : [], f = qDe(n, e), p = zQ(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)(() => {
@@ -66087,7 +66146,7 @@ function ZDe({ 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)(QDe, {
+ children: [/* @__PURE__ */ (0, I.jsx)(eOe, {
kind: e,
name: s,
helpers: o,
@@ -66095,7 +66154,7 @@ function ZDe({ 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)(FDe, {
+ children: /* @__PURE__ */ (0, I.jsx)(LDe, {
kind: e,
entityId: Number(n.id),
name: s || t,
@@ -66110,17 +66169,17 @@ function ZDe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
"data-entity-title": "",
children: [
/* @__PURE__ */ (0, I.jsx)("h2", {
- lang: $I(s),
+ lang: tL(s),
title: c || void 0,
children: s
}),
- e === "tag" ? null : /* @__PURE__ */ (0, I.jsx)(VDe, {
+ e === "tag" ? null : /* @__PURE__ */ (0, I.jsx)(UDe, {
current: n.canonical_name,
- choices: WDe(n, Yt()),
+ choices: KDe(n, Yt()),
onChoose: a.chooseName,
onAddAlias: a.addAlias
}),
- n.id ? /* @__PURE__ */ (0, I.jsx)(zV, { item: {
+ n.id ? /* @__PURE__ */ (0, I.jsx)(VV, { item: {
entity_id: Number(n.id),
kind: e,
name: n.canonical_name || t,
@@ -66134,7 +66193,7 @@ function ZDe({ 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)($De, {
+ /* @__PURE__ */ (0, I.jsx)(tOe, {
kind: e,
entity: n,
actions: a
@@ -66155,14 +66214,14 @@ function ZDe({ 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)(aOe, { link: e }, t))
+ children: f.map((e, t) => /* @__PURE__ */ (0, I.jsx)(sOe, { link: e }, t))
}) : null,
- p.length || n.feed ? /* @__PURE__ */ (0, I.jsx)(oOe, {
+ p.length || n.feed ? /* @__PURE__ */ (0, I.jsx)(cOe, {
entity: n,
actions: a,
helpers: o
}) : null,
- n.follow?.held.length ? /* @__PURE__ */ (0, I.jsx)(nOe, {
+ n.follow?.held.length ? /* @__PURE__ */ (0, I.jsx)(iOe, {
follow: n.follow,
displayName: s,
actions: a
@@ -66171,11 +66230,11 @@ function ZDe({ 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)(rOe, {
+ children: d.map((e) => /* @__PURE__ */ (0, I.jsx)(aOe, {
glyph: e.glyph,
label: e.label,
clip: e.clip,
- children: e.tags ? /* @__PURE__ */ (0, I.jsx)(iOe, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: e.tags ? /* @__PURE__ */ (0, I.jsx)(oOe, { 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))
@@ -66194,7 +66253,7 @@ function ZDe({ 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>${XDe(e)}` }
+ dangerouslySetInnerHTML: { __html: `<span>${z($n(tn("performer", e.k, e.id)))}</span>${QDe(e)}` }
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-hero-costar-name": "",
children: tn("performer", e.k, e.id)
@@ -66202,14 +66261,14 @@ function ZDe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
}, e.k))
})
}) : null]
- }), i ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(OQ, {
+ }), i ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(kQ, {
feedNew: r,
host: i,
wire: o.wireFeedRow,
act: (e, t) => a.feedAction(e, t)
}), i) : null] });
}
-function QDe({ kind: e, name: t, helpers: n, people: r, company: i }) {
+function eOe({ 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]");
@@ -66223,8 +66282,8 @@ function QDe({ kind: e, name: t, helpers: n, people: r, company: i }) {
dangerouslySetInnerHTML: { __html: o }
});
}
-function $De({ kind: e, entity: t, actions: n }) {
- let r = FQ(t), i = (e, t) => (r) => {
+function tOe({ kind: e, entity: t, actions: n }) {
+ let r = IQ(t), i = (e, t) => (r) => {
r.preventDefault(), n.openEntity(e, t);
}, a = r ? r.linked ? /* @__PURE__ */ (0, I.jsx)("a", {
href: Nn("agency", r.name, r.id),
@@ -66233,44 +66292,44 @@ function $De({ 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 = YDe(e);
+ let e = t.name_display?.groups[Yt()] ?? t.name_groups, r = ZDe(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-entity-alias": "meta",
children: [
- /* @__PURE__ */ (0, I.jsx)(BQ, { entity: t }),
+ /* @__PURE__ */ (0, I.jsx)(VQ, { entity: t }),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, I.jsx)(kQ, { name: "film" }), /* @__PURE__ */ (0, I.jsx)("span", { children: o })]
+ children: [/* @__PURE__ */ (0, I.jsx)(AQ, { name: "film" }), /* @__PURE__ */ (0, I.jsx)("span", { children: o })]
}),
- t.follow?.key ? /* @__PURE__ */ (0, I.jsx)(tOe, {
+ t.follow?.key ? /* @__PURE__ */ (0, I.jsx)(rOe, {
follow: t.follow,
actions: n
}) : null,
a ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, I.jsx)(kQ, { name: "briefcase" }), /* @__PURE__ */ (0, I.jsx)("span", { children: a })]
+ children: [/* @__PURE__ */ (0, I.jsx)(AQ, { name: "briefcase" }), /* @__PURE__ */ (0, I.jsx)("span", { children: a })]
}) : null,
r ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-meta-item": "names",
children: [
- /* @__PURE__ */ (0, I.jsx)(kQ, { name: "id-card" }),
+ /* @__PURE__ */ (0, I.jsx)(AQ, { name: "id-card" }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: r.names.map((e, t) => /* @__PURE__ */ (0, I.jsx)("span", {
- lang: $I(e),
+ lang: tL(e),
children: e
}, t))
}),
- r.rest > 0 ? /* @__PURE__ */ (0, I.jsx)(NQ, {
+ r.rest > 0 ? /* @__PURE__ */ (0, I.jsx)(PQ, {
id: "entityAliasPop",
hook: "alias",
rest: r.rest,
label: `另外 ${r.rest.toLocaleString()} 个别名`,
heading: `${r.total.toLocaleString()} 个别名`,
- children: /* @__PURE__ */ (0, I.jsx)("dl", { children: (e?.groups || []).map((e, t) => /* @__PURE__ */ (0, I.jsx)(VQ, {
+ children: /* @__PURE__ */ (0, I.jsx)("dl", { children: (e?.groups || []).map((e, t) => /* @__PURE__ */ (0, I.jsx)(HQ, {
label: e.label,
names: e.names
}, t)) })
@@ -66292,61 +66351,61 @@ function $De({ kind: e, entity: t, actions: n }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-entity-alias": "meta",
children: [
- e === "creator" ? /* @__PURE__ */ (0, I.jsx)(BQ, { entity: t }) : null,
+ e === "creator" ? /* @__PURE__ */ (0, I.jsx)(VQ, { entity: t }) : null,
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, I.jsx)(kQ, { name: "film" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [o, c] })]
+ children: [/* @__PURE__ */ (0, I.jsx)(AQ, { name: "film" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [o, c] })]
}),
a ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, I.jsx)(kQ, { name: "briefcase" }), /* @__PURE__ */ (0, I.jsx)("span", { children: a })]
+ children: [/* @__PURE__ */ (0, I.jsx)(AQ, { name: "briefcase" }), /* @__PURE__ */ (0, I.jsx)("span", { children: a })]
}) : null,
l ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "",
title: "片商",
- children: [/* @__PURE__ */ (0, I.jsx)(kQ, { name: "clapperboard" }), /* @__PURE__ */ (0, I.jsx)("a", {
+ children: [/* @__PURE__ */ (0, I.jsx)(AQ, { name: "clapperboard" }), /* @__PURE__ */ (0, I.jsx)("a", {
href: Nn("studio", l.name, l.id),
"data-studio-link": l.name,
onClick: i("studio", l.name),
children: l.name
})]
}) : null,
- s.length ? /* @__PURE__ */ (0, I.jsx)(eOe, { aliases: s }) : null
+ s.length ? /* @__PURE__ */ (0, I.jsx)(nOe, { aliases: s }) : null
]
});
}
-function eOe({ aliases: e }) {
- let { shown: t, rest: n } = zQ(e, 3);
+function nOe({ aliases: e }) {
+ let { shown: t, rest: n } = BQ(e, 3);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-meta-item": "names",
"data-company-names": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(kQ, { name: "id-card" }),
+ /* @__PURE__ */ (0, I.jsx)(AQ, { name: "id-card" }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: t.map((e, t) => /* @__PURE__ */ (0, I.jsx)("span", { children: e }, t))
}),
- n ? /* @__PURE__ */ (0, I.jsx)(NQ, {
+ n ? /* @__PURE__ */ (0, I.jsx)(PQ, {
id: "entityAliasPop",
hook: "alias",
rest: n,
label: `另外 ${n.toLocaleString()} 个别名`,
heading: `${e.length.toLocaleString()} 个别名`,
- children: /* @__PURE__ */ (0, I.jsx)("dl", { children: /* @__PURE__ */ (0, I.jsx)(VQ, { names: e.map((e) => ({ name: e })) }) })
+ children: /* @__PURE__ */ (0, I.jsx)("dl", { children: /* @__PURE__ */ (0, I.jsx)(HQ, { names: e.map((e) => ({ name: e })) }) })
}) : null
]
});
}
-function tOe({ follow: e, actions: t }) {
+function rOe({ follow: e, actions: t }) {
let n = e.providers.join(" · ");
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "",
"data-entity-follow": "",
title: n ? `关注 · ${n}` : "关注",
- children: [/* @__PURE__ */ (0, I.jsx)(kQ, { name: "rss" }), /* @__PURE__ */ (0, I.jsxs)("a", {
+ children: [/* @__PURE__ */ (0, I.jsx)(AQ, { name: "rss" }), /* @__PURE__ */ (0, I.jsxs)("a", {
href: "?media=online",
onClick: (n) => {
n.preventDefault(), t.openFollowAuthor(e.key);
@@ -66355,7 +66414,7 @@ function tOe({ follow: e, actions: t }) {
})]
});
}
-function nOe({ follow: e, displayName: t, actions: n }) {
+function iOe({ follow: e, displayName: t, actions: n }) {
let [r, i] = (0, F.useState)(""), a = async (e, t) => {
if (!r) {
i(e);
@@ -66369,12 +66428,12 @@ function nOe({ 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)(SV, {
+ children: e.held.map((e) => /* @__PURE__ */ (0, I.jsxs)(wV, {
tone: "info",
title: `关注里有同名作者 ${e.name}`,
action: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
- ...DV(r === e.key),
+ ...kV(r === e.key),
onClick: () => {
a(e.key, e.name);
},
@@ -66389,37 +66448,37 @@ function nOe({ follow: e, displayName: t, actions: n }) {
}, e.key))
});
}
-function BQ({ entity: e }) {
+function VQ({ entity: e }) {
return e.identity_labels?.length ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "classification",
"data-identity-classification": "",
- children: [/* @__PURE__ */ (0, I.jsx)(kQ, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.identity_labels.join(" · ") })]
+ children: [/* @__PURE__ */ (0, I.jsx)(AQ, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.identity_labels.join(" · ") })]
}) : null;
}
-function VQ({ label: e, names: t }) {
+function HQ({ label: e, names: t }) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e ? /* @__PURE__ */ (0, I.jsx)("dt", { children: e }) : null, /* @__PURE__ */ (0, I.jsx)("dd", {
"data-wide": e ? void 0 : "",
children: t.map((e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
"data-pop-name": "",
- lang: $I(e.name),
+ lang: tL(e.name),
children: [e.name, e.reading ? /* @__PURE__ */ (0, I.jsx)("small", { children: e.reading }) : null]
}, t))
})] });
}
-function rOe({ 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)(kQ, { name: e }), t] }), /* @__PURE__ */ (0, I.jsx)("dd", {
+function aOe({ 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)(AQ, { 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 iOe({ tags: e }) {
- let { shown: t, rest: n } = zQ(e);
+function oOe({ tags: e }) {
+ let { shown: t, rest: n } = BQ(e);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, I.jsx)("span", {
"data-fact-tag": "",
title: e,
children: e
- }, e)), n ? /* @__PURE__ */ (0, I.jsx)(NQ, {
+ }, e)), n ? /* @__PURE__ */ (0, I.jsx)(PQ, {
id: "entityTagPop",
hook: "fact",
rest: n,
@@ -66435,10 +66494,10 @@ function iOe({ tags: e }) {
})
}) : null] });
}
-function HQ({ mark: e }) {
+function UQ({ mark: e }) {
if ("brand" in e) return /* @__PURE__ */ (0, I.jsx)("span", {
"data-link-icon": "brand",
- children: /* @__PURE__ */ (0, I.jsx)(kQ, { name: e.brand })
+ children: /* @__PURE__ */ (0, I.jsx)(AQ, { name: e.brand })
});
let t = R("globe") + ("site" in e ? `<img src="${z(e.site)}" alt="" width="20" height="20" loading="lazy" decoding="async" referrerpolicy="no-referrer" data-drop="self">` : "");
return /* @__PURE__ */ (0, I.jsx)("span", {
@@ -66446,7 +66505,7 @@ function HQ({ mark: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-function aOe({ link: e }) {
+function sOe({ link: e }) {
switch (e.type) {
case "icon": return /* @__PURE__ */ (0, I.jsx)("a", {
"data-link": "icon",
@@ -66455,19 +66514,19 @@ function aOe({ link: e }) {
rel: "noopener noreferrer",
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, I.jsx)(HQ, { mark: e.mark })
+ children: /* @__PURE__ */ (0, I.jsx)(UQ, { mark: e.mark })
});
case "gone": return /* @__PURE__ */ (0, I.jsx)("span", {
"data-link": "gone",
tabIndex: 0,
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, I.jsx)(HQ, { mark: { globe: !0 } })
+ children: /* @__PURE__ */ (0, I.jsx)(UQ, { mark: { globe: !0 } })
});
case "private": return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-link": "private",
title: e.sources ? e.sources.join("\n") : e.label,
- children: [/* @__PURE__ */ (0, I.jsx)(HQ, { mark: { globe: !0 } }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(UQ, { mark: { globe: !0 } }), /* @__PURE__ */ (0, I.jsx)("span", {
"data-link-label": "",
children: e.sources ? e.label : `来源 · ${e.label}`
})]
@@ -66479,7 +66538,7 @@ function aOe({ link: e }) {
rel: "noopener noreferrer",
title: e.title,
children: [
- /* @__PURE__ */ (0, I.jsx)(HQ, { mark: e.mark }),
+ /* @__PURE__ */ (0, I.jsx)(UQ, { mark: e.mark }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-link-label": "",
children: e.text
@@ -66494,7 +66553,7 @@ function aOe({ link: e }) {
});
}
}
-function oOe({ entity: e, actions: t, helpers: n }) {
+function cOe({ 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);
@@ -66512,33 +66571,33 @@ function oOe({ entity: e, actions: t, helpers: n }) {
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-entry-marks": "",
- children: [RQ(e).map((e, t) => /* @__PURE__ */ (0, I.jsxs)("a", {
+ children: [zQ(e).map((e, t) => /* @__PURE__ */ (0, I.jsxs)("a", {
"data-entry-mark": "",
href: e.url,
target: "_blank",
rel: "noopener noreferrer",
title: e.label,
"aria-label": e.label,
- children: [e.mark ? /* @__PURE__ */ (0, I.jsx)(kQ, { name: e.mark }) : /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [e.mark ? /* @__PURE__ */ (0, I.jsx)(AQ, { name: e.mark }) : /* @__PURE__ */ (0, I.jsxs)("span", {
"data-missav-mark": "",
children: [/* @__PURE__ */ (0, I.jsx)("span", { children: "MISS" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "AV" })]
}), e.ordinal ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-entry-ordinal": "",
children: e.ordinal
}) : null]
- }, t)), e.feed ? /* @__PURE__ */ (0, I.jsx)(BDe, {
+ }, t)), e.feed ? /* @__PURE__ */ (0, I.jsx)(HDe, {
following: r,
busy: a,
onToggle: (e) => {
l(e);
},
- tip: UDe(r)
+ tip: GDe(r)
}) : null]
});
}
// src/react/entity-page/use-entity-online.ts
-var sOe = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;
-function cOe(e, t, n) {
+var lOe = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;
+function uOe(e, t, n) {
let [r, i] = (0, F.useState)(() => ga(e));
r.author !== e && i(ga(e));
let [a, o] = (0, F.useState)({
@@ -66617,7 +66676,7 @@ function cOe(e, t, n) {
onlineMedia: (e) => c(e),
onlineShuffle: () => T({
sort: $i,
- seed: sOe()
+ seed: lOe()
}),
onlineImagesOnly: (e) => n.setImagesOnly(e),
onlineStatus: (e) => T({ status: e }),
@@ -66647,8 +66706,8 @@ function cOe(e, t, n) {
};
}
// src/react/entity-page/entity-page-view.tsx
-function lOe(e) {
- let { kind: t, name: n } = e, r = Pt(tZ(t, n)), i = !!r.data?.error, a = r.data?.canonical_name, o = r.data?.redirect ?? (a && a !== n ? {
+function dOe(e) {
+ let { kind: t, name: n } = e, r = Pt(rZ(t, n)), i = !!r.data?.error, a = r.data?.canonical_name, o = r.data?.redirect ?? (a && a !== n ? {
kind: t,
name: a
} : void 0), { actions: s } = e;
@@ -66666,17 +66725,17 @@ function lOe(e) {
s,
o?.kind,
o?.name
- ]), r.isError ? /* @__PURE__ */ (0, I.jsx)(GG, {
+ ]), r.isError ? /* @__PURE__ */ (0, I.jsx)(qG, {
message: cr(r.error),
onRetry: () => {
r.refetch();
}
- }) : !r.data || i || o ? null : /* @__PURE__ */ (0, I.jsx)(fOe, {
+ }) : !r.data || i || o ? null : /* @__PURE__ */ (0, I.jsx)(mOe, {
...e,
entity: r.data
});
}
-function UQ(e) {
+function WQ(e) {
let [t, n] = (0, F.useState)({
key: e,
n: 1
@@ -66688,22 +66747,22 @@ function UQ(e) {
};
return n(r), r.n;
}
-var uOe = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
-function dOe(e, t) {
+var fOe = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
+function pOe(e, t) {
return `照片 · ${[e.total || !t ? `${(e.total || 0).toLocaleString()} 张` : "", t ? `样张 ${(e.sample_total || 0).toLocaleString()} 张 · ${t.toLocaleString()} 部作品` : ""].filter(Boolean).join(" · ")}`;
}
-function fOe(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(nZ(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 || rZ(p).length > 0, g = t === "creator" && r.follow?.key || "", _ = !!g && !r.asset_count, v = a.media === "photos" && h ? a : (a.media === "online" || _) && g ? {
+function mOe(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(iZ(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 || aZ(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
- } : JX, [y, b] = (0, F.useState)("people"), x = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [S, C] = (0, F.useState)(x);
+ } : XX, [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 = cOe(g, w === "online", {
+ let w = l && y === "people" && u.length ? "people" : v.media, T = uOe(g, w === "online", {
photoLayout: e.photoLayout,
photoLayouts: e.photoLayouts,
imagesOnly: e.followImagesOnly,
setImagesOnly: e.follow.actions.setImagesOnly
- }), E = w === "photos" || w === "online" && T.media === "images", [D, O] = (0, F.useState)(0), k = eZ(e), A = Pt(k), j = UQ(JSON.stringify([k.queryKey, D])), [M] = (0, F.useState)(() => (t === "performer" || t === "studio") && (e.jav || (A.data?.items || []).some((e) => e.is_jav)));
+ }), E = w === "photos" || w === "online" && T.media === "images", [D, O] = (0, F.useState)(0), k = nZ(e), A = Pt(k), j = WQ(JSON.stringify([k.queryKey, D])), [M] = (0, F.useState)(() => (t === "performer" || t === "studio") && (e.jav || (A.data?.items || []).some((e) => e.is_jav)));
(0, F.useLayoutEffect)(() => {
s.javContext(M);
}, [s, M]);
@@ -66713,26 +66772,26 @@ function fOe(e) {
}, [e.layout, M]), N = {
jav: e.jav,
seed: e.seed
- }, te = (0, F.useCallback)((e, r, a) => $X(t, n, i, N, e, r, a), [j]), [P, ne] = (0, F.useState)({}), re = v.set, ie = P[re] || "", ae = It({
- ...nZ(t, n, re, ie),
+ }, te = (0, F.useCallback)((e, r, a) => tZ(t, n, i, N, e, r, a), [j]), [P, ne] = (0, F.useState)({}), re = v.set, ie = P[re] || "", ae = It({
+ ...iZ(t, n, re, ie),
enabled: w === "photos"
- }), oe = ae.data?.pages[0], se = UQ(JSON.stringify(XX(t, n, re, ie))), ce = (0, F.useMemo)(() => {
+ }), oe = ae.data?.pages[0], se = WQ(JSON.stringify(QX(t, n, re, ie))), ce = (0, F.useMemo)(() => {
let e = ae.data?.pages;
if (!e?.[0] || e[0].error) return null;
let t = e[0];
return {
revision: se,
- codeSets: t.id ? [] : rZ(t),
+ codeSets: t.id ? [] : aZ(t),
items: e.flatMap((e) => e.items || []),
total: t.total || 0,
hasMore: !!e[e.length - 1]?.has_more
};
}, [ae.data, se]), le = ae.refetch, ue = ae.fetchNextPage, de = Pt({
- ...GX(d, o.feedRowHtml),
+ ...qX(d, o.feedRowHtml),
enabled: !!d
}), fe = (0, F.useRef)(e.feedRevision);
(0, F.useEffect)(() => {
- fe.current !== e.feedRevision && (fe.current = e.feedRevision, H.invalidateQueries({ queryKey: WX(d) }));
+ fe.current !== e.feedRevision && (fe.current = e.feedRevision, H.invalidateQueries({ queryKey: KX(d) }));
}, [d, e.feedRevision]);
let pe = !!A.data;
(0, F.useEffect)(() => {
@@ -66766,7 +66825,7 @@ function fOe(e) {
me.current = !1;
}, []);
let he = (0, F.useCallback)(async () => {
- await H.invalidateQueries({ queryKey: ["entity-route"] }), await H.invalidateQueries({ queryKey: YX(t, n) }), await H.invalidateQueries({ queryKey: [
+ await H.invalidateQueries({ queryKey: ["entity-route"] }), await H.invalidateQueries({ queryKey: ZX(t, n) }), await H.invalidateQueries({ queryKey: [
"entity-items",
t,
n
@@ -66800,7 +66859,7 @@ function fOe(e) {
enabled: e
})
}),
- onSuccess: (e, r) => H.setQueryData(YX(t, n), (e) => e && {
+ onSuccess: (e, r) => H.setQueryData(ZX(t, n), (e) => e && {
...e,
feed: {
...e.feed,
@@ -66854,10 +66913,10 @@ function fOe(e) {
let e = await wn("/api/feeds/check").catch(() => null);
if (!e || e.status !== "running") break;
}
- me.current && await H.invalidateQueries({ queryKey: WX(d) });
+ me.current && await H.invalidateQueries({ queryKey: KX(d) });
})();
},
- feedAction: KX,
+ feedAction: JX,
avatarPicked: () => {
s.avatarChanged(), he().then(() => {
me.current && O((e) => e + 1);
@@ -66905,19 +66964,19 @@ function fOe(e) {
(e !== w || v.set) && (b(e === "people" ? "people" : "videos"), s.route(i, e === "photos" || e === "online" ? {
media: e,
set: 0
- } : JX));
+ } : XX));
},
setState: (e) => s.route({
...i,
state: e
- }, JX),
+ }, XX),
toggleTag: s.toggleTag,
clearFilter: s.clearFilter,
clearAll: s.clearAll,
setSort: s.setSort,
reshuffle: async () => {
if (w !== "photos") {
- let r = s.reshuffleVideos(), a = eZ({
+ let r = s.reshuffleVideos(), a = nZ({
kind: t,
name: n,
filters: {
@@ -66931,7 +66990,7 @@ function fOe(e) {
await H.fetchQuery(a).catch(() => null);
return;
}
- let r = uOe(), a = await H.fetchInfiniteQuery(nZ(t, n, re, r)).catch(() => null);
+ let r = fOe(), a = await H.fetchInfiniteQuery(iZ(t, n, re, r)).catch(() => null);
me.current && a?.pages[0] && !a.pages[0].error && ne((e) => ({
...e,
[re]: r
@@ -66966,7 +67025,7 @@ function fOe(e) {
k: e.k,
label: Pl(e.k),
n: e.n,
- selected: KTe(i.tag, e.k)
+ selected: qTe(i.tag, e.k)
})), Te = [
u.length,
!_,
@@ -67001,14 +67060,14 @@ function fOe(e) {
creator: "",
studio: "",
owner: ""
- }, JX), Ne = "", Pe = !1;
+ }, XX), Ne = "", Pe = !1;
if (w === "people") Ne = `${t === "studio" ? "厂牌" : "艺人"} · ${u.length.toLocaleString()}`;
else if (w === "online") Pe = T.busy, Ne = `在线 · ${(T.total ?? r.follow?.n ?? 0).toLocaleString()} 项更新`;
else if (w === "videos") {
Pe = !A.data;
- let e = ZX(i.tag).length;
+ let e = $X(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()} 张` : dOe(oe, rZ(oe).length) : Pe = ae.isPending;
+ } else oe && !oe.error ? Ne = De ? `${oe.title} · ${(oe.total || 0).toLocaleString()} 张` : pOe(oe, aZ(oe).length) : Pe = ae.isPending;
let Fe = (0, F.useMemo)(() => ({
...e.card.actions,
loadMorePhotos: async () => {
@@ -67025,7 +67084,7 @@ function fOe(e) {
u
]);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(ZDe, {
+ /* @__PURE__ */ (0, I.jsx)($De, {
kind: t,
name: n,
entity: r,
@@ -67035,7 +67094,7 @@ function fOe(e) {
actions: be,
helpers: xe
}, D),
- (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Aye, {
+ (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(jye, {
kind: t,
name: n,
view: w,
@@ -67052,9 +67111,9 @@ function fOe(e) {
actions: Se,
helpers: Ce
}), c.filter),
- (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(gye, {
+ (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(_ye, {
enabled: w === "videos",
- children: w === "online" ? /* @__PURE__ */ (0, I.jsx)(iDe, {
+ children: w === "online" ? /* @__PURE__ */ (0, I.jsx)(oDe, {
view: T.view,
media: T.media,
result: T.result,
@@ -67068,16 +67127,16 @@ function fOe(e) {
actions: e.follow.actions,
canLoadMore: e.canLoadMore,
clearFilters: T.clearFilters
- }) : w === "videos" && A.isError ? /* @__PURE__ */ (0, I.jsx)(GG, {
+ }) : w === "videos" && A.isError ? /* @__PURE__ */ (0, I.jsx)(qG, {
message: cr(A.error),
onRetry: () => {
A.refetch();
}
- }) : je ? /* @__PURE__ */ (0, I.jsx)(pOe, {
+ }) : je ? /* @__PURE__ */ (0, I.jsx)(hOe, {
filtered: Ae,
onShowAll: Me,
onOnline: g ? () => Se.setView("online") : void 0
- }) : /* @__PURE__ */ (0, I.jsx)(TEe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(EEe, {
kind: t,
name: n,
view: w,
@@ -67110,9 +67169,9 @@ function fOe(e) {
}), c.body)
] });
}
-function pOe({ filtered: e, onShowAll: t, onOnline: n }) {
- return e ? /* @__PURE__ */ (0, I.jsx)(CV, {
- icon: TV("search"),
+function hOe({ filtered: e, onShowAll: t, onOnline: n }) {
+ return e ? /* @__PURE__ */ (0, I.jsx)(TV, {
+ icon: DV("search"),
title: "没有符合条件的视频",
actions: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
@@ -67120,14 +67179,14 @@ function pOe({ filtered: e, onShowAll: t, onOnline: n }) {
children: "清除筛选"
}),
children: "清除筛选后查看名下全部视频。"
- }) : /* @__PURE__ */ (0, I.jsx)(CV, {
- icon: TV("film"),
+ }) : /* @__PURE__ */ (0, I.jsx)(TV, {
+ icon: DV("film"),
title: "还没有视频",
actions: n ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
onClick: n,
children: "查看在线作品"
- }) : /* @__PURE__ */ (0, I.jsx)(ML, {
+ }) : /* @__PURE__ */ (0, I.jsx)(PL, {
size: "small",
href: "/",
children: "浏览馆藏"
@@ -67136,30 +67195,30 @@ function pOe({ filtered: e, onShowAll: t, onOnline: n }) {
});
}
// src/react/diagnostics/diagnostics.ts
-var WQ = ["diagnostics"], GQ = (e) => B("/api/diagnostics", e);
-async function mOe(e) {
+var GQ = ["diagnostics"], KQ = (e) => B("/api/diagnostics", e);
+async function gOe(e) {
await H.fetchQuery({
- queryKey: WQ,
- queryFn: () => GQ(e),
+ queryKey: GQ,
+ queryFn: () => KQ(e),
staleTime: 1e4
});
}
// src/react/feed-new/feed-new-page.tsx
-function hOe({ host: e, revision: t, helpers: n, actions: r }) {
- let i = Pt(GX(null, n.feedRowHtml)), a = (0, F.useRef)(t);
+function _Oe({ host: e, revision: t, helpers: n, actions: r }) {
+ let i = Pt(qX(null, n.feedRowHtml)), a = (0, F.useRef)(t);
return (0, F.useEffect)(() => {
- a.current !== t && (a.current = t, H.invalidateQueries({ queryKey: WX(null) }));
- }, [t]), (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(OQ, {
+ a.current !== t && (a.current = t, H.invalidateQueries({ queryKey: KX(null) }));
+ }, [t]), (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(kQ, {
feedNew: i.data ?? null,
host: e,
wire: n.wireFeedRow,
- act: KX,
+ act: JX,
settled: r.settled
}), e);
}
// src/react/index/index-search.tsx
-var gOe = TV("search");
-function KQ({ label: e, value: t, onQuery: n }) {
+var vOe = DV("search");
+function qQ({ label: e, value: t, onQuery: n }) {
let [r, i] = (0, F.useState)(t), a = (0, F.useRef)(!1), o = (0, F.useRef)(void 0);
(0, F.useEffect)(() => {
clearTimeout(o.current), i(t);
@@ -67176,15 +67235,15 @@ function KQ({ label: e, value: t, onQuery: n }) {
onCompositionEnd: (e) => {
a.current = !1, s(e.target.value);
},
- children: /* @__PURE__ */ (0, I.jsx)(gV, {
+ children: /* @__PURE__ */ (0, I.jsx)(vV, {
"aria-label": e,
value: r,
onChange: (e) => {
i(e), a.current || s(e);
},
- children: /* @__PURE__ */ (0, I.jsx)(vV, {
+ children: /* @__PURE__ */ (0, I.jsx)(bV, {
type: "search",
- leadingIcon: gOe,
+ leadingIcon: vOe,
spellCheck: !1,
autoComplete: "off",
enterKeyHint: "search",
@@ -67196,7 +67255,7 @@ function KQ({ label: e, value: t, onQuery: n }) {
});
}
// src/react/index/tag-pagination.ts
-function qQ(e) {
+function JQ(e) {
let [t, n] = (0, F.useState)({
filter: e,
pageIndex: 0,
@@ -67213,7 +67272,7 @@ function qQ(e) {
}), [e])
};
}
-function JQ(e, t, n) {
+function YQ(e, t, n) {
let { pageIndex: r, pageSize: i } = t;
(0, F.useEffect)(() => {
if (e === void 0) return;
@@ -67230,11 +67289,11 @@ function JQ(e, t, n) {
]);
}
// src/react/index/index-tags.tsx
-var YQ = () => /* @__PURE__ */ (0, I.jsx)("span", {
+var XQ = () => /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
"data-tag-dot": "",
className: "size-1.75 flex-none rounded-full"
-}), XQ = TV("pencil"), ZQ = (e, t) => ({
+}), ZQ = DV("pencil"), QQ = (e, t) => ({
kind: "tag",
name: e.k,
favorite: e.favorite,
@@ -67243,7 +67302,7 @@ var YQ = () => /* @__PURE__ */ (0, I.jsx)("span", {
tag_id: e.id || e.k
} : { entity_id: e.entity_id }
});
-function _Oe({ tag: e, actions: t }) {
+function yOe({ 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",
@@ -67252,13 +67311,13 @@ function _Oe({ tag: e, actions: t }) {
type: "button",
"data-alpha-tag": "",
"data-k": e.k,
- "data-tag-cat": _Z(t.online, e.cat),
+ "data-tag-cat": yZ(t.online, e.cat),
"aria-pressed": n,
title: e.label,
onClick: () => t.press(e.k),
className: "flex h-9 min-w-0 flex-1 cursor-pointer items-center gap-2.25 rounded-lg px-2.5 text-left text-body-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: [
- /* @__PURE__ */ (0, I.jsx)(YQ, {}),
+ /* @__PURE__ */ (0, I.jsx)(XQ, {}),
/* @__PURE__ */ (0, I.jsx)("span", {
className: "min-w-0 flex-1 truncate",
children: e.label
@@ -67269,32 +67328,32 @@ function _Oe({ tag: e, actions: t }) {
})
]
}),
- t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(zV, { item: ZQ(e, t.online) }),
- t.edit ? /* @__PURE__ */ (0, I.jsx)(RV, {
+ t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(VV, { item: QQ(e, t.online) }),
+ t.edit ? /* @__PURE__ */ (0, I.jsx)(BV, {
label: `编辑标签 ${e.label}`,
onClick: () => t.edit?.(e.k),
- children: /* @__PURE__ */ (0, I.jsx)(XQ, {})
+ children: /* @__PURE__ */ (0, I.jsx)(ZQ, {})
}) : null
]
});
}
-function QQ({ groups: e, actions: t }) {
+function $Q({ groups: e, actions: t }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-alphabet": "",
className: "flex flex-col gap-4",
children: e.map(([e, n], r) => /* @__PURE__ */ (0, I.jsxs)("section", {
"data-alpha-group": r,
- className: zH({
+ className: VH({
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)(AW, { value: n.length })]
+ children: [e, /* @__PURE__ */ (0, I.jsx)(FW, { 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)(_Oe, {
+ children: n.map((e) => /* @__PURE__ */ (0, I.jsx)(yOe, {
tag: e,
actions: t
}, e.k))
@@ -67302,26 +67361,26 @@ function QQ({ groups: e, actions: t }) {
}, e))
});
}
-var vOe = "\xA0";
-function $Q({ tags: e, actions: t }) {
+var bOe = "\xA0";
+function e$({ tags: e, actions: t }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-tag-cloud": "",
className: "flex flex-wrap gap-1.75",
children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)("span", {
"data-tag-token": "",
- "data-tag-cat": _Z(t.online, e.cat),
+ "data-tag-cat": yZ(t.online, e.cat),
className: "inline-flex max-w-full min-w-0 items-center gap-1 rounded-lg border p-1",
children: [/* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-tag-chip": "",
"data-k": e.k,
- "data-tag-cat": _Z(t.online, e.cat),
+ "data-tag-cat": yZ(t.online, e.cat),
"aria-pressed": t.picked.has(e.k),
onClick: () => t.press(e.k),
className: "inline-flex max-w-full min-w-0 cursor-pointer items-center rounded-lg px-2 py-0.5 text-body-2-regular text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "min-w-0 truncate",
- children: e.label + vOe
+ children: e.label + bOe
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-tag-n": "",
className: "text-caption-1-regular opacity-60",
@@ -67330,16 +67389,16 @@ function $Q({ 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)(zV, { item: ZQ(e, t.online) }), t.edit ? /* @__PURE__ */ (0, I.jsx)(RV, {
+ children: [t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(VV, { item: QQ(e, t.online) }), t.edit ? /* @__PURE__ */ (0, I.jsx)(BV, {
label: `编辑标签 ${e.label}`,
onClick: () => t.edit?.(e.k),
- children: /* @__PURE__ */ (0, I.jsx)(XQ, {})
+ children: /* @__PURE__ */ (0, I.jsx)(ZQ, {})
}) : null]
}) : null]
}, e.k))
});
}
-var yOe = [[
+var xOe = [[
"cloud",
"标签云",
"tags"
@@ -67348,34 +67407,34 @@ var yOe = [[
"字母表",
"text-aa"
]];
-function e$({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c, status: l, actions: u }) {
- let d = CL();
- return /* @__PURE__ */ (0, I.jsx)(TL, {
+function t$({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c, status: l, actions: u }) {
+ let d = TL();
+ return /* @__PURE__ */ (0, I.jsx)(DL, {
label: "标签筛选",
topLabel: "标签类型",
top: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [l ? /* @__PURE__ */ (0, I.jsxs)("div", {
role: "group",
"aria-label": "标签状态",
className: "flex flex-none items-center gap-1.75 border-r border-(--glass-low) pr-3",
- children: [[[!1, "使用中"], [!0, "已隐藏"]].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(EL, {
+ children: [[[!1, "使用中"], [!0, "已隐藏"]].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(OL, {
"data-tag-pill": "",
"data-tag-cat": "all",
pressed: !l.blocked && l.hidden === e,
onPress: () => l.onChange(!!e),
children: t
- }, String(e))), l.onBlocked ? /* @__PURE__ */ (0, I.jsx)(EL, {
+ }, String(e))), l.onBlocked ? /* @__PURE__ */ (0, I.jsx)(OL, {
"data-tag-pill": "",
"data-tag-cat": "all",
pressed: !!l.blocked,
onPress: l.onBlocked,
children: "已屏蔽内容"
}) : null]
- }) : null, e.map(([e, r]) => /* @__PURE__ */ (0, I.jsxs)(EL, {
+ }) : null, e.map(([e, r]) => /* @__PURE__ */ (0, I.jsxs)(OL, {
"data-tag-pill": "",
- "data-tag-cat": e === "all" ? "all" : _Z(n, e),
+ "data-tag-cat": e === "all" ? "all" : yZ(n, e),
pressed: t === e,
onPress: () => o(e),
- children: [/* @__PURE__ */ (0, I.jsx)(YQ, {}), r]
+ children: [/* @__PURE__ */ (0, I.jsx)(XQ, {}), r]
}, e))] }),
bottom: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
@@ -67396,19 +67455,19 @@ function e$({ categories: e, category: t, online: n, readout: r, letters: i, vie
children: e
}, e))
}) : null,
- /* @__PURE__ */ (0, I.jsx)(Gz, {
+ /* @__PURE__ */ (0, I.jsx)(qz, {
"aria-label": "标签视图",
orientation: "horizontal",
value: a,
onChange: (e) => c(e),
- className: `ml-auto ${yU}`,
- children: yOe.map(([e, t, n]) => {
- let r = TV(n);
- return /* @__PURE__ */ (0, I.jsx)(Kz, {
+ className: `ml-auto ${xU}`,
+ children: xOe.map(([e, t, n]) => {
+ let r = DV(n);
+ return /* @__PURE__ */ (0, I.jsx)(Jz, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: bU,
+ className: SU,
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: t,
className: "contents",
@@ -67420,13 +67479,13 @@ function e$({ categories: e, category: t, online: n, readout: r, letters: i, vie
] })
});
}
-function bOe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
- return /* @__PURE__ */ (0, I.jsxs)(Oj, {
+function SOe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
+ return /* @__PURE__ */ (0, I.jsxs)(Aj, {
visible: e > 0,
label: "所选标签操作",
count: `已选 ${e.toLocaleString()} 个标签`,
children: [
- /* @__PURE__ */ (0, I.jsx)(ZV, {
+ /* @__PURE__ */ (0, I.jsx)($V, {
isSelected: t === "any",
onChange: (e) => n(e ? "any" : "all"),
children: /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -67457,74 +67516,74 @@ function bOe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
});
}
// src/react/toaster.tsx
-var t$ = (e, t) => /* @__PURE__ */ (0, I.jsx)("span", {
+var n$ = (e, t) => /* @__PURE__ */ (0, I.jsx)("span", {
"data-toast-glyph": t ? "draw" : "still",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: e }
-}), n$ = null, r$ = { "--floating-radius": "var(--radius-2xl)" }, i$ = (e) => `max(${e}px, var(--selection-dock-space, 0px), var(--miniplayer-space, 0px))`;
-function a$() {
- let e = n$;
- n$ = null, e?.root.unmount();
-}
-var o$ = (e, t) => {
- if (n$?.host === e) return;
- a$();
+}), r$ = null, i$ = { "--floating-radius": "var(--radius-2xl)" }, a$ = (e) => `max(${e}px, var(--selection-dock-space, 0px), var(--miniplayer-space, 0px))`;
+function o$() {
+ let e = r$;
+ r$ = null, e?.root.unmount();
+}
+var s$ = (e, t) => {
+ if (r$?.host === e) return;
+ o$();
let n = (0, Rt.createRoot)(e);
- n$ = {
+ r$ = {
host: e,
root: n
- }, n.render(/* @__PURE__ */ (0, I.jsxs)(eH, { children: [/* @__PURE__ */ (0, I.jsx)(cH, {
+ }, n.render(/* @__PURE__ */ (0, I.jsxs)(nH, { children: [/* @__PURE__ */ (0, I.jsx)(uH, {
id: "receipts",
position: "bottom-right",
closeButton: !0,
gap: 8,
style: {
- ...r$,
+ ...i$,
"--width": "min(560px, calc(100vw - 48px))"
},
offset: {
right: 24,
- bottom: `calc(${i$(24)} + var(--processing-toast-space, 0px))`
+ bottom: `calc(${a$(24)} + var(--processing-toast-space, 0px))`
},
mobileOffset: {
right: 16,
left: 16,
- bottom: `calc(${i$(16)} + var(--processing-toast-space, 0px))`
+ bottom: `calc(${a$(16)} + var(--processing-toast-space, 0px))`
},
toastOptions: { closeButtonAriaLabel: "关闭提示" },
containerAriaLabel: "通知",
icons: {
- success: t$(t.success, !0),
- error: t$(t.error, !1)
+ success: n$(t.success, !0),
+ error: n$(t.error, !1)
}
- }), /* @__PURE__ */ (0, I.jsx)(cH, {
+ }), /* @__PURE__ */ (0, I.jsx)(uH, {
id: "processing",
position: "bottom-right",
gap: 8,
expand: !0,
style: {
- ...r$,
+ ...i$,
"--width": "min(400px, calc(100vw - 32px))"
},
offset: {
right: 24,
- bottom: i$(24)
+ bottom: a$(24)
},
mobileOffset: {
right: 16,
left: 16,
- bottom: i$(16)
+ bottom: a$(16)
},
toastOptions: { closeButtonAriaLabel: "关闭任务提示" },
containerAriaLabel: "后台任务"
})] }));
-}, xOe = 6e3, s$ = (e, t) => {
+}, COe = 6e3, c$ = (e, t) => {
if (!String(t.html ?? "").trim()) return;
- let n = t.alert ? rH.error : rH.success, r = t.action;
+ let n = t.alert ? aH.error : aH.success, r = t.action;
n(/* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {
id: e,
toasterId: "receipts",
- duration: t.timeout > 0 ? t.timeout : xOe,
+ duration: t.timeout > 0 ? t.timeout : COe,
action: r ? {
label: r.label,
onClick: (e) => {
@@ -67532,7 +67591,7 @@ var o$ = (e, t) => {
}
} : void 0
});
-}, c$ = (e) => e.id ?? e.entity_id, l$ = {
+}, l$ = (e) => e.id ?? e.entity_id, u$ = {
rename: "重命名标签",
merge: "合并标签",
hide: "隐藏标签",
@@ -67540,26 +67599,26 @@ var o$ = (e, t) => {
repair: "整理重复标签",
block: "屏蔽内容",
unblock: "恢复内容"
-}, u$ = (e, t) => V("/api/tag-management/preview", e, "POST", t);
-async function d$(e, t, n) {
+}, d$ = (e, t) => V("/api/tag-management/preview", e, "POST", t);
+async function f$(e, t, n) {
if (n?.aborted) return !1;
let r = t.tags.map((e) => `「${e.k}」`).join("、"), i = e.operation === "merge" || e.operation === "repair" ? `合并 ${t.tags.length} 个标签,涉及 ${t.assets} 个资源,重叠关联 ${t.overlap} 个。旧名称保留为别名。此操作无法直接撤销。` : e.operation === "rename" ? `${r}将更名为「${t.name || e.name}」,涉及 ${t.assets} 个资源。旧名称保留为别名。` : e.operation === "block" ? `屏蔽带有${r}任一标签的内容及其其它版本,涉及 ${t.assets} 个资源。可在「已屏蔽内容」中恢复。` : e.operation === "unblock" ? `解除${r}的内容屏蔽,涉及 ${t.assets} 个资源。` : `${e.operation === "hide" ? "隐藏" : "恢复"} ${t.tags.length} 个标签,涉及 ${t.assets} 个资源。${e.operation === "hide" ? "可在“已隐藏”中恢复。" : ""}`;
return !(await ol({
- title: l$[e.operation],
+ title: u$[e.operation],
body: i,
- confirmLabel: l$[e.operation],
+ confirmLabel: u$[e.operation],
onConfirm: () => V("/api/tag-management", {
...e,
token: t.token
}, "POST", n)
- })).confirmed || n?.aborted ? !1 : (await H.invalidateQueries(), s$(`tag-management-${Date.now()}`, {
- html: `已${l$[e.operation]}`,
+ })).confirmed || n?.aborted ? !1 : (await H.invalidateQueries(), c$(`tag-management-${Date.now()}`, {
+ html: `已${u$[e.operation]}`,
alert: !1,
timeout: 6e3,
action: null
}), !0);
}
-function f$({ operation: e, selected: t, close: n, done: r, scope: i = "local" }) {
+function p$({ operation: e, selected: t, close: n, done: r, scope: i = "local" }) {
let a = (0, F.useRef)({
operation: e,
selected: t,
@@ -67568,24 +67627,24 @@ function f$({ operation: e, selected: t, close: n, done: r, scope: i = "local" }
scope: i
}), o = (0, F.useRef)({
name: t[0]?.k || "",
- target_id: t[0] ? c$(t[0]) : 0
+ target_id: t[0] ? l$(t[0]) : 0
}), [s, c] = (0, F.useState)(null);
return (0, F.useEffect)(() => {
let e = new AbortController(), t = a.current, n = il({
- title: l$[t.operation],
+ title: u$[t.operation],
confirmLabel: "预览影响范围",
confirmDisabled: !0,
body: "<div class=\"peach-react\" data-tag-editor-fields></div>",
onConfirm: async () => {
let n = {
operation: t.operation,
- ids: t.selected.map(c$),
+ ids: t.selected.map(l$),
...t.scope === "online" ? { scope: t.scope } : {},
...t.operation === "rename" ? { name: o.current.name.trim() } : { target_id: o.current.target_id }
};
return {
command: n,
- plan: await u$(n, e.signal)
+ plan: await d$(n, e.signal)
};
}
});
@@ -67596,14 +67655,14 @@ function f$({ operation: e, selected: t, close: n, done: r, scope: i = "local" }
if (!e.signal.aborted) {
if (n.confirmed) {
let r = n.result;
- await d$(r.command, r.plan, e.signal) && t.done();
+ await f$(r.command, r.plan, e.signal) && t.done();
}
e.signal.aborted || t.close();
}
}), () => {
e.abort(), n.close();
};
- }, []), s ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(SOe, {
+ }, []), s ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(wOe, {
operation: a.current.operation,
selected: a.current.selected,
dialog: s.dialog,
@@ -67612,8 +67671,8 @@ function f$({ operation: e, selected: t, close: n, done: r, scope: i = "local" }
}
}), s.host) : null;
}
-function SOe({ operation: e, selected: t, dialog: n, update: r }) {
- let [i, a] = (0, F.useState)(t[0]?.k || ""), [o, s] = (0, F.useState)(t[0] ? c$(t[0]) : 0);
+function wOe({ operation: e, selected: t, dialog: n, update: r }) {
+ let [i, a] = (0, F.useState)(t[0]?.k || ""), [o, s] = (0, F.useState)(t[0] ? l$(t[0]) : 0);
return (0, F.useEffect)(() => {
r({
name: i,
@@ -67626,28 +67685,28 @@ function SOe({ operation: e, selected: t, dialog: n, update: r }) {
e,
t,
r
- ]), e === "rename" ? /* @__PURE__ */ (0, I.jsx)(yV, {
+ ]), e === "rename" ? /* @__PURE__ */ (0, I.jsx)(xV, {
autoFocus: !0,
"aria-label": "标签名称",
value: i,
onChange: a,
maxLength: 80
- }) : /* @__PURE__ */ (0, I.jsx)(nY, {
+ }) : /* @__PURE__ */ (0, I.jsx)(iY, {
"aria-label": "保留的标签",
prefix: "保留",
selectedKey: String(o),
onSelectionChange: (e) => {
- let n = t.find((t) => String(c$(t)) === String(e));
- n && s(c$(n));
+ let n = t.find((t) => String(l$(t)) === String(e));
+ n && s(l$(n));
},
- children: t.map((e) => /* @__PURE__ */ (0, I.jsx)(nW, {
- id: String(c$(e)),
+ children: t.map((e) => /* @__PURE__ */ (0, I.jsx)(iW, {
+ id: String(l$(e)),
children: e.k
- }, c$(e)))
+ }, l$(e)))
});
}
// src/react/index/tag-manager.tsx
-function p$({ search: e, category: t = "all", view: n = "cloud", onCategory: r, onView: i, onJump: a, scope: o = "local" }) {
+function m$({ search: e, category: t = "all", view: n = "cloud", onCategory: r, onView: i, onJump: a, scope: o = "local" }) {
let s = o === "online", c = (0, F.useRef)(null), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(t), [p, m] = (0, F.useState)(n), h = r ? t : d, g = i ? n : p, _ = e ?? l, [v, y] = (0, F.useState)(!1), [b, x] = (0, F.useState)(!1), S = JSON.stringify([
o,
_,
@@ -67655,7 +67714,7 @@ function p$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
g,
v,
b
- ]), { pagination: C, onChange: w } = qQ(S), T = new URLSearchParams({
+ ]), { pagination: C, onChange: w } = JQ(S), T = new URLSearchParams({
limit: String(C.pageSize),
offset: String(C.pageIndex * C.pageSize),
q: _,
@@ -67672,25 +67731,25 @@ function p$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
],
queryFn: ({ signal: e }) => B(`/api/tag-management?${T}`, e)
});
- JQ(E.data?.total, C, w);
+ YQ(E.data?.total, C, w);
let [D, O] = (0, F.useState)(/* @__PURE__ */ new Map());
(0, F.useEffect)(() => {
O(/* @__PURE__ */ new Map());
}, [S]);
- let k = new Set(D.keys()), [A, j] = (0, F.useState)(null), M = DH(), ee = E.data?.items || [], N = ee, te = (s ? cZ : sZ).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 = kH(), ee = E.data?.items || [], N = ee, te = (s ? uZ : lZ).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" ? vZ(P, (e) => e) : [], re = [...D.values()], ie = (e) => {
+ })), ne = g === "alphabet" ? bZ(P, (e) => e) : [], re = [...D.values()], ie = (e) => {
M.run(e.operation, async (t) => {
let n = s ? {
...e,
scope: o
} : e;
- return d$(n, await u$(n, t), t);
+ return f$(n, await d$(n, t), t);
}, (e) => {
e && O(/* @__PURE__ */ new Map());
});
- }, ae = re.map(c$), oe = {
+ }, ae = re.map(l$), oe = {
online: s,
favorites: s,
picked: k,
@@ -67711,13 +67770,13 @@ function p$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
children: [
e === void 0 ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "mb-4 flex",
- children: /* @__PURE__ */ (0, I.jsx)(KQ, {
+ children: /* @__PURE__ */ (0, I.jsx)(qQ, {
label: "过滤标签",
value: l,
onQuery: u
})
}) : null,
- /* @__PURE__ */ (0, I.jsx)(e$, {
+ /* @__PURE__ */ (0, I.jsx)(t$, {
categories: te,
category: h,
online: s,
@@ -67745,7 +67804,7 @@ function p$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
} } : {}
},
actions: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- E.data?.duplicate_groups.length ? /* @__PURE__ */ (0, I.jsx)(DL, {
+ E.data?.duplicate_groups.length ? /* @__PURE__ */ (0, I.jsx)(kL, {
busy: M.busy === "repair",
onPress: () => ie({
operation: "repair",
@@ -67753,11 +67812,11 @@ function p$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
}),
children: "整理重复标签"
}) : null,
- N.length ? /* @__PURE__ */ (0, I.jsx)(DL, {
+ N.length ? /* @__PURE__ */ (0, I.jsx)(kL, {
onPress: () => O((e) => new Map([...e, ...N.map((e) => [e.k, e])])),
children: "选择本页"
}) : null,
- k.size ? /* @__PURE__ */ (0, I.jsx)(DL, {
+ k.size ? /* @__PURE__ */ (0, I.jsx)(kL, {
onPress: () => O(/* @__PURE__ */ new Map()),
children: "清空选择"
}) : null
@@ -67766,7 +67825,7 @@ function p$({ 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)(SV, {
+ }) } }) : E.isError ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -67774,19 +67833,19 @@ function p$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
children: "立即重试"
}),
children: "无法读取标签"
- }) : N.length ? g === "alphabet" ? /* @__PURE__ */ (0, I.jsx)(QQ, {
+ }) : N.length ? g === "alphabet" ? /* @__PURE__ */ (0, I.jsx)($Q, {
groups: ne,
actions: oe
- }) : /* @__PURE__ */ (0, I.jsx)($Q, {
+ }) : /* @__PURE__ */ (0, I.jsx)(e$, {
tags: P,
actions: oe
- }) : /* @__PURE__ */ (0, I.jsx)(SV, {
+ }) : /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "neutral",
children: "没有符合条件的标签。"
}),
E.data ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "mt-5",
- children: /* @__PURE__ */ (0, I.jsx)(aY, {
+ children: /* @__PURE__ */ (0, I.jsx)(sY, {
label: "标签管理",
total: E.data.total,
pagination: C,
@@ -67796,11 +67855,11 @@ function p$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
pageSizes: $s
})
}) : null,
- M.error ? /* @__PURE__ */ (0, I.jsx)(SV, {
+ M.error ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "error",
children: M.error
}) : null,
- /* @__PURE__ */ (0, I.jsxs)(Oj, {
+ /* @__PURE__ */ (0, I.jsxs)(Aj, {
label: "标签管理操作",
count: `已选 ${k.size} 个标签`,
visible: k.size > 0,
@@ -67822,7 +67881,7 @@ function p$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...DV(!!M.busy),
+ ...kV(!!M.busy),
onClick: () => ie({
operation: v ? "restore" : "hide",
ids: ae
@@ -67832,7 +67891,7 @@ function p$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
s ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...DV(!!M.busy),
+ ...kV(!!M.busy),
onClick: () => ie({
operation: b ? "unblock" : "block",
ids: ae
@@ -67841,7 +67900,7 @@ function p$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
}) : null
]
}),
- A ? /* @__PURE__ */ (0, I.jsx)(f$, {
+ A ? /* @__PURE__ */ (0, I.jsx)(p$, {
operation: A,
selected: re,
scope: o,
@@ -67852,7 +67911,7 @@ function p$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
});
}
// src/react/index/index-page.tsx
-var COe = [
+var TOe = [
{
value: "studios",
label: "厂牌",
@@ -67868,7 +67927,7 @@ var COe = [
label: "系列",
symbol: "list"
}
-], wOe = [{
+], EOe = [{
value: "local",
label: "本地",
symbol: "hard-drive"
@@ -67876,7 +67935,7 @@ var COe = [
value: "online",
label: "在线",
symbol: "rss"
-}], TOe = [
+}], DOe = [
{
value: "performers",
label: "艺人",
@@ -67892,7 +67951,7 @@ var COe = [
label: "在线",
symbol: "rss"
}
-], EOe = {
+], OOe = {
people: [[
"big",
"大图 · 竖幅头像",
@@ -67921,20 +67980,20 @@ var COe = [
"layout-grid"
]]
};
-function DOe({ kind: e, layout: t, onChange: n }) {
- return /* @__PURE__ */ (0, I.jsx)(gU, {
- "aria-label": `${oZ[e]}索引版式`,
+function kOe({ kind: e, layout: t, onChange: n }) {
+ return /* @__PURE__ */ (0, I.jsx)(vU, {
+ "aria-label": `${cZ[e]}索引版式`,
orientation: "horizontal",
value: t,
onChange: (e) => n(e),
"data-index-layout": "",
- className: `flex-none ${_U}`,
- children: EOe[e === "series" ? "series" : dZ(e) ? "company" : "people"].map(([e, t, n]) => {
- let r = TV(n);
- return /* @__PURE__ */ (0, I.jsx)(Kz, {
+ className: `flex-none ${yU}`,
+ children: OOe[e === "series" ? "series" : pZ(e) ? "company" : "people"].map(([e, t, n]) => {
+ let r = DV(n);
+ return /* @__PURE__ */ (0, I.jsx)(Jz, {
value: e,
"aria-label": t,
- className: lve,
+ className: sve,
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: t,
className: "contents",
@@ -67944,8 +68003,8 @@ function DOe({ kind: e, layout: t, onChange: n }) {
})
});
}
-function OOe(e) {
- let [t, n] = (0, F.useState)(!1), [r, i] = (0, F.useState)(() => fZ({
+function AOe(e) {
+ let [t, n] = (0, F.useState)(!1), [r, i] = (0, F.useState)(() => mZ({
kind: e.kind,
q: e.q,
scope: e.scope,
@@ -67958,8 +68017,8 @@ function OOe(e) {
e.view,
e.category
]), [o, s] = (0, F.useState)(a);
- a !== o && (s(a), i(fZ(e)));
- let [c, l] = (0, F.useState)(e.layout), [u, d] = (0, F.useState)(/* @__PURE__ */ new Set()), [f, p] = (0, F.useState)("any"), m = (0, F.useRef)(null), { kind: h, q: g, scope: _, view: v, category: y } = r, b = oZ[h], x = h === "tags" && _ === "online", S = h === "performers" && _ === "online";
+ a !== o && (s(a), i(mZ(e)));
+ let [c, l] = (0, F.useState)(e.layout), [u, d] = (0, F.useState)(/* @__PURE__ */ new Set()), [f, p] = (0, F.useState)("any"), m = (0, F.useRef)(null), { kind: h, q: g, scope: _, view: v, category: y } = r, b = cZ[h], x = h === "tags" && _ === "online", S = h === "performers" && _ === "online";
(0, F.useEffect)(() => {
if (r.kind === e.kind && r.scope === e.scope && r.category === e.category) return;
let t = !0;
@@ -67978,7 +68037,7 @@ function OOe(e) {
...t
};
i(o), e.route(o, { replace: a });
- }, { pagination: w, onChange: T } = qQ(JSON.stringify(r)), E = gZ(pZ(r), w.pageSize), D = It({
+ }, { pagination: w, onChange: T } = JQ(JSON.stringify(r)), E = vZ(hZ(r), w.pageSize), D = It({
queryKey: h === "tags" && (w.pageIndex || w.pageSize !== 100) ? [
...E.queryKey,
"page",
@@ -67993,7 +68052,7 @@ function OOe(e) {
getNextPageParam: h === "tags" ? () => void 0 : E.getNextPageParam,
enabled: !(t && h === "tags"),
placeholderData: ke
- }), O = sEe(D.data), k = D.isPending || D.isPlaceholderData, A = !!D.hasNextPage && !D.isPlaceholderData, j = D.data?.pages[0]?.total;
+ }), O = cEe(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 });
}, [
@@ -68001,8 +68060,8 @@ function OOe(e) {
D.isPending,
D.isPlaceholderData,
r
- ]), JQ(h === "tags" && !D.isPlaceholderData ? j : void 0, w, T);
- let M = h === "tags" ? D.isPending || D.isError ? "" : `${(j ?? O.length).toLocaleString()} 个标签` : cEe(O.length, !!D.hasNextPage), ee = `${h}:${_}:${g}`, N = (0, F.useRef)(null), te = D.data?.pages[0]?.categories;
+ ]), YQ(h === "tags" && !D.isPlaceholderData ? j : void 0, w, T);
+ let M = h === "tags" ? D.isPending || D.isError ? "" : `${(j ?? O.length).toLocaleString()} 个标签` : lEe(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
@@ -68018,15 +68077,15 @@ function OOe(e) {
O,
h,
x
- ]), ae = (0, F.useMemo)(() => h === "tags" && v === "alphabet" ? vZ(ie, (t) => x ? t : e.tagLabel(t)) : [], [
+ ]), ae = (0, F.useMemo)(() => h === "tags" && v === "alphabet" ? bZ(ie, (t) => x ? t : e.tagLabel(t)) : [], [
ie,
v,
h,
x
]), oe = (t) => {
l(t), e.savePreference({ layout: t });
- }, se = h === "tags" ? /* @__PURE__ */ (0, I.jsx)(MW, {
- tabs: wOe,
+ }, se = h === "tags" ? /* @__PURE__ */ (0, I.jsx)(LW, {
+ tabs: EOe,
value: _,
label: "词表",
onChange: (e) => {
@@ -68036,8 +68095,8 @@ function OOe(e) {
view: e === "online" ? "alphabet" : v
});
}
- }) : dZ(h) || h === "series" ? /* @__PURE__ */ (0, I.jsx)(MW, {
- tabs: COe,
+ }) : pZ(h) || h === "series" ? /* @__PURE__ */ (0, I.jsx)(LW, {
+ tabs: TOe,
value: h,
label: "资料类型",
onChange: (e) => C({ kind: e })
@@ -68046,7 +68105,7 @@ function OOe(e) {
let n = new Set(e);
return n.delete(t) || n.add(t), n;
}) : ie.find((e) => e.k === t)?.entity_id ? e.openEntity("tag", t) : e.showTags([t], "all");
- }, le = (x ? cZ : sZ).filter(re);
+ }, le = (x ? uZ : lZ).filter(re);
return /* @__PURE__ */ (0, I.jsxs)("div", {
ref: m,
"data-index-page": h,
@@ -68061,10 +68120,10 @@ function OOe(e) {
className: "flex flex-none items-center text-display-4-medium whitespace-nowrap text-text-primary max-board-narrow:text-title-1-medium",
children: b
}),
- uZ(h) ? /* @__PURE__ */ (0, I.jsx)("span", {
+ fZ(h) ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-index-count": "",
className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums max-board-narrow:order-1 max-board-narrow:basis-full",
- children: /* @__PURE__ */ (0, I.jsx)(vL, {
+ children: /* @__PURE__ */ (0, I.jsx)(bL, {
text: k ? void 0 : D.isError ? "" : M,
busy: k,
placeholder: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -68073,18 +68132,18 @@ function OOe(e) {
})
})
}) : null,
- uZ(h) ? /* @__PURE__ */ (0, I.jsx)(DOe, {
+ fZ(h) ? /* @__PURE__ */ (0, I.jsx)(kOe, {
kind: h,
layout: c,
onChange: oe
}) : null,
- /* @__PURE__ */ (0, I.jsx)(BV, { kind: h === "tags" ? "tag" : h === "series" ? "series" : h === "studios" ? "studio" : h === "agencies" ? "agency" : h === "creators" ? "creator" : "performer" }),
+ /* @__PURE__ */ (0, I.jsx)(HV, { 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: TV("pencil"),
+ leadingIcon: DV("pencil"),
"aria-label": t ? "返回标签浏览" : "管理标签",
title: t ? "返回标签浏览" : "管理标签",
"aria-pressed": t,
@@ -68092,7 +68151,7 @@ function OOe(e) {
e.exitSelectMode(), d(/* @__PURE__ */ new Set()), n(!t);
}
}) : null,
- /* @__PURE__ */ (0, I.jsx)(KQ, {
+ /* @__PURE__ */ (0, I.jsx)(qQ, {
label: `过滤${b}`,
value: g,
onQuery: (e) => {
@@ -68101,8 +68160,8 @@ function OOe(e) {
})
]
}),
- h === "performers" || h === "creators" ? /* @__PURE__ */ (0, I.jsx)(MW, {
- tabs: TOe,
+ h === "performers" || h === "creators" ? /* @__PURE__ */ (0, I.jsx)(LW, {
+ tabs: DOe,
value: S ? "online" : h,
label: "人物名册",
onChange: (t) => {
@@ -68114,7 +68173,7 @@ function OOe(e) {
}
}) : null,
se,
- t && h === "tags" ? /* @__PURE__ */ (0, I.jsx)(p$, {
+ t && h === "tags" ? /* @__PURE__ */ (0, I.jsx)(m$, {
scope: _,
search: g,
category: y,
@@ -68128,8 +68187,8 @@ function OOe(e) {
}, _) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
h === "performers" && _ === "local" ? /* @__PURE__ */ (0, I.jsx)("div", {
"aria-label": "身份分类",
- className: aZ,
- children: iZ.filter((e) => e[0] === y || re(e)).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(J, {
+ className: sZ,
+ children: oZ.filter((e) => e[0] === y || re(e)).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(J, {
variant: y === e ? "primary" : "secondary",
size: "small",
"aria-pressed": y === e,
@@ -68137,7 +68196,7 @@ function OOe(e) {
children: t
}, e))
}) : null,
- h === "tags" ? /* @__PURE__ */ (0, I.jsx)(e$, {
+ h === "tags" ? /* @__PURE__ */ (0, I.jsx)(t$, {
categories: le,
category: y,
online: x,
@@ -68153,7 +68212,7 @@ function OOe(e) {
}) : null,
/* @__PURE__ */ (0, I.jsx)("div", {
"data-index-body": "",
- children: /* @__PURE__ */ (0, I.jsx)(KG, {
+ children: /* @__PURE__ */ (0, I.jsx)(JG, {
pending: k,
skeletonHtml: () => h === "tags" ? ec({
mode: v,
@@ -68165,8 +68224,8 @@ function OOe(e) {
}),
children: (() => {
if (k) return null;
- if (D.isError) return /* @__PURE__ */ (0, I.jsx)(CV, {
- icon: TV("alert"),
+ if (D.isError) return /* @__PURE__ */ (0, I.jsx)(TV, {
+ icon: DV("alert"),
title: `没能读取${b}`,
actions: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -68175,7 +68234,7 @@ function OOe(e) {
}),
children: bn(D.error)
});
- if (!O.length) return /* @__PURE__ */ (0, I.jsx)(AOe, {
+ if (!O.length) return /* @__PURE__ */ (0, I.jsx)(MOe, {
kind: h,
filtered: !!g || y !== "all",
online: x || S,
@@ -68184,12 +68243,12 @@ function OOe(e) {
category: "all"
})
});
- if (S) return /* @__PURE__ */ (0, I.jsx)(pEe, {
+ if (S) return /* @__PURE__ */ (0, I.jsx)(mEe, {
items: O,
layout: c,
props: e
});
- if (uZ(h)) return /* @__PURE__ */ (0, I.jsx)(xZ, {
+ if (fZ(h)) return /* @__PURE__ */ (0, I.jsx)(CZ, {
kind: h,
items: O,
layout: c,
@@ -68200,10 +68259,10 @@ function OOe(e) {
picked: u,
press: ce
};
- return v === "alphabet" ? /* @__PURE__ */ (0, I.jsx)(QQ, {
+ return v === "alphabet" ? /* @__PURE__ */ (0, I.jsx)($Q, {
groups: ae,
actions: t
- }) : /* @__PURE__ */ (0, I.jsx)($Q, {
+ }) : /* @__PURE__ */ (0, I.jsx)(e$, {
tags: ie,
actions: t
});
@@ -68212,7 +68271,7 @@ function OOe(e) {
}),
h === "tags" && !k && !D.isError ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "mt-5",
- children: /* @__PURE__ */ (0, I.jsx)(aY, {
+ children: /* @__PURE__ */ (0, I.jsx)(sY, {
label: "标签",
total: j ?? O.length,
pagination: w,
@@ -68237,7 +68296,7 @@ function OOe(e) {
}) : null, "载入更多"]
})
}) : null,
- h === "tags" && !x && e.selectMode ? /* @__PURE__ */ (0, I.jsx)(bOe, {
+ h === "tags" && !x && e.selectMode ? /* @__PURE__ */ (0, I.jsx)(SOe, {
count: u.size,
match: f,
onMatch: p,
@@ -68251,7 +68310,7 @@ function OOe(e) {
]
});
}
-var kOe = {
+var jOe = {
tags: "标签",
performers: "艺人",
creators: "卖家",
@@ -68259,9 +68318,9 @@ var kOe = {
agencies: "事务所",
series: "系列"
};
-function AOe({ kind: e, filtered: t, online: n, onClear: r }) {
- if (t) return /* @__PURE__ */ (0, I.jsx)(CV, {
- icon: TV("search"),
+function MOe({ kind: e, filtered: t, online: n, onClear: r }) {
+ if (t) return /* @__PURE__ */ (0, I.jsx)(TV, {
+ icon: DV("search"),
title: "没有符合条件的内容",
actions: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
@@ -68270,16 +68329,16 @@ function AOe({ kind: e, filtered: t, online: n, onClear: r }) {
}),
children: "清除筛选或搜索条件后查看全部内容。"
});
- let i = n && e === "performers" ? "创作者" : kOe[e], a = /* @__PURE__ */ (0, I.jsx)(ML, {
+ let i = n && e === "performers" ? "创作者" : jOe[e], a = /* @__PURE__ */ (0, I.jsx)(PL, {
size: "small",
variant: n ? "primary" : "secondary",
href: "/subscriptions?tab=add",
children: "添加关注"
});
- return /* @__PURE__ */ (0, I.jsx)(CV, {
- icon: TV(e === "tags" ? "tags" : "user-round"),
+ return /* @__PURE__ */ (0, I.jsx)(TV, {
+ icon: DV(e === "tags" ? "tags" : "user-round"),
title: `还没有${i}`,
- actions: n ? a : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(ML, {
+ actions: n ? a : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(PL, {
size: "small",
href: "/settings/library",
children: "添加媒体"
@@ -68287,15 +68346,15 @@ function AOe({ kind: e, filtered: t, online: n, onClear: r }) {
children: n ? `添加关注来源并获取内容后,这里会显示来源上的${i}。` : "添加内容并补充资料后,这里会显示对应信息。"
});
}
-var m$ = {
+var h$ = {
video: ["视频", "play"],
image: ["图片", "pics"],
archive: ["压缩包", "file-archive"],
audio: ["音频", "file-audio"],
url: ["网址快捷方式", "globe"],
other: ["其它文件", "hard-drive"]
-}, jOe = (e) => m$[e.junk_kind || "other"] || m$.other;
-function MOe(e) {
+}, NOe = (e) => h$[e.junk_kind || "other"] || h$.other;
+function POe(e) {
return e === "dismissed" ? {
operation: "reconsider-junk",
label: "重新判断",
@@ -68306,40 +68365,40 @@ function MOe(e) {
glyph: "check"
};
}
-var h$ = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), NOe = (e, t) => [
+var g$ = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), FOe = (e, t) => [
"junk-queue",
e.view,
e.kind,
t
];
-function POe({ kind: e, view: t }) {
+function IOe({ kind: e, view: t }) {
let n = new URLSearchParams({
limit: "200",
status: t
});
return e && n.set("kind", e), n.toString();
}
-async function FOe(e, t) {
- let n = await B(`/api/ads?${POe(e)}`, t);
+async function LOe(e, t) {
+ let n = await B(`/api/ads?${IOe(e)}`, t);
return {
...n,
items: n.items || []
};
}
// src/react/junk-queue/junk-card.tsx
-function g$({ name: e }) {
+function _$({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-var _$ = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
-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] = jOe(e), m = String(e.name || ""), h = MOe(t), g = d === "video" ? `/thumb?id=${e.id}&c=4` : d === "image" ? `/photo-thumb?id=${e.id}` : "", _ = d === "video" || d === "image", v = (t) => {
- t.target.closest("[data-junk-actions]") || _$(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
+var v$ = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
+function ROe({ 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] = NOe(e), m = String(e.name || ""), h = POe(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]") || v$(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
}, y = (t) => {
- t.stopPropagation(), _$(r, t) ? (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey)) : o.current && a.open(e, o.current);
+ t.stopPropagation(), v$(r, t) ? (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey)) : o.current && a.open(e, o.current);
}, b = (t) => {
t.preventDefault(), t.stopPropagation(), s !== "reveal" && (c("reveal"), u(""), a.reveal(e).then(u, () => {}).finally(() => c("")));
}, x = (t) => (n) => {
@@ -68370,7 +68429,7 @@ function IOe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"data-junk-kind": d,
"data-selected": n ? "" : void 0,
onClick: v,
- onMouseDown: sK,
+ onMouseDown: lK,
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-pic": "",
@@ -68378,7 +68437,7 @@ function IOe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
children: [
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, I.jsx)(g$, { name: p }), /* @__PURE__ */ (0, I.jsx)("b", { children: f })]
+ children: [/* @__PURE__ */ (0, I.jsx)(_$, { name: p }), /* @__PURE__ */ (0, I.jsx)("b", { children: f })]
}),
g ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-art": "thumb",
@@ -68390,7 +68449,7 @@ function IOe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
}),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, I.jsx)(g$, { name: "check" })
+ children: /* @__PURE__ */ (0, I.jsx)(_$, { name: "check" })
})
]
}),
@@ -68427,7 +68486,7 @@ function IOe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
children: [s === "reveal" ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-junk-spinner": "",
dangerouslySetInnerHTML: { __html: zs("正在定位") }
- }) : /* @__PURE__ */ (0, I.jsx)(g$, { name: "folder-open" }), /* @__PURE__ */ (0, I.jsx)("span", {
+ }) : /* @__PURE__ */ (0, I.jsx)(_$, { name: "folder-open" }), /* @__PURE__ */ (0, I.jsx)("span", {
"data-junk-label": "",
children: "打开位置"
})]
@@ -68439,7 +68498,7 @@ function IOe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"aria-label": h.label,
...S(h.operation),
onClick: x(h.operation),
- children: [/* @__PURE__ */ (0, I.jsx)(g$, { name: h.glyph }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(_$, { name: h.glyph }), /* @__PURE__ */ (0, I.jsx)("span", {
"data-junk-label": "",
children: h.label
})]
@@ -68451,7 +68510,7 @@ function IOe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"aria-label": "移入回收站",
...S("dispose"),
onClick: x("dispose"),
- children: [/* @__PURE__ */ (0, I.jsx)(g$, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(_$, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("span", {
"data-junk-label": "",
children: "移入回收站"
})]
@@ -68466,9 +68525,9 @@ function IOe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
]
});
}
-var LOe = (0, F.memo)(IOe);
+var zOe = (0, F.memo)(ROe);
// src/react/components/collection-summary.tsx
-function v$({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
+function y$({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-collection-summary": "",
className: `${i ? "" : "mb-5 "}flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5
@@ -68494,31 +68553,31 @@ function v$({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !
});
}
// src/react/junk-queue/junk-count.tsx
-function y$({ name: e }) {
+function b$({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function b$({ scope: e, count: t }) {
+function x$({ scope: e, count: t }) {
return t ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [" ", /* @__PURE__ */ (0, I.jsx)("span", {
"data-count-badge": `junk:${e}`,
children: t.toLocaleString()
})] }) : null;
}
-function ROe({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = QV(), a = (0, F.useRef)(null), { kind: o, view: s } = e, c = AL(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? JU.map(([e]) => h$(t, e)).join(",") : ""}`), l = ZU(s), u = (e) => {
+function BOe({ route: e, page: t, failed: n, onNavigate: r }) {
+ let i = eH(), a = (0, F.useRef)(null), { kind: o, view: s } = e, c = ML(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? XU.map(([e]) => g$(t, e)).join(",") : ""}`), l = $U(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") || XU()));
+ !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || QU()));
}, d = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-junk-count": "",
children: [/* @__PURE__ */ (0, I.jsx)("div", {
"data-junk-summary": "",
"aria-live": "polite",
- children: /* @__PURE__ */ (0, I.jsx)(v$, {
- label: QU(s),
+ children: /* @__PURE__ */ (0, I.jsx)(y$, {
+ label: eW(s),
figure: d,
pending: !t && !n,
flush: !0
@@ -68538,17 +68597,17 @@ function ROe({ route: e, page: t, failed: n, onNavigate: r }) {
onClick: u,
onPointerLeave: c.leave,
children: [
- JU.map(([e, n, r]) => /* @__PURE__ */ (0, I.jsxs)("a", {
- href: XU(e, s),
+ XU.map(([e, n, r]) => /* @__PURE__ */ (0, I.jsxs)("a", {
+ href: QU(e, s),
"data-junk-kind-link": e,
"aria-current": e === o ? "page" : void 0,
onPointerEnter: c.hover,
children: [
- /* @__PURE__ */ (0, I.jsx)(y$, { name: r }),
+ /* @__PURE__ */ (0, I.jsx)(b$, { name: r }),
n,
- /* @__PURE__ */ (0, I.jsx)(b$, {
+ /* @__PURE__ */ (0, I.jsx)(x$, {
scope: e,
- count: t ? h$(t, e) : 0
+ count: t ? g$(t, e) : 0
})
]
}, e || "all")),
@@ -68562,9 +68621,9 @@ function ROe({ route: e, page: t, failed: n, onNavigate: r }) {
"aria-current": s === "dismissed" ? "page" : void 0,
onPointerEnter: s === "dismissed" ? void 0 : c.hover,
children: [
- /* @__PURE__ */ (0, I.jsx)(y$, { name: l.glyph }),
+ /* @__PURE__ */ (0, I.jsx)(b$, { name: l.glyph }),
l.label,
- /* @__PURE__ */ (0, I.jsx)(b$, {
+ /* @__PURE__ */ (0, I.jsx)(x$, {
scope: "dismissed",
count: Number(t?.dismissed_total || 0)
})
@@ -68576,33 +68635,33 @@ function ROe({ route: e, page: t, failed: n, onNavigate: r }) {
});
}
// src/react/junk-queue/junk-queue-page.tsx
-var zOe = TV("check"), BOe = (e, t) => e[1] === t.view && e[2] === t.kind;
-function VOe(e) {
+var VOe = DV("check"), HOe = (e, t) => e[1] === t.view && e[2] === t.kind;
+function UOe(e) {
let t = {
kind: e.kind,
view: e.view
}, n = Pt({
- queryKey: NOe(t, e.revision),
- queryFn: ({ signal: e }) => FOe(t, e),
- placeholderData: (e, n) => n && BOe(n.queryKey, t) ? e : void 0
+ queryKey: FOe(t, e.revision),
+ queryFn: ({ signal: e }) => LOe(t, e),
+ placeholderData: (e, n) => n && HOe(n.queryKey, t) ? e : void 0
});
(0, F.useEffect)(() => {
n.isFetching || e.settled?.(e.revision);
}, [n.isFetching, e.revision]);
- let r = HOe(e.countRow), i = n.isPending;
+ let r = WOe(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)(ROe, {
+ let { navigate: a } = e.actions, o = r ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(BOe, {
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)(UOe, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [o, /* @__PURE__ */ (0, I.jsx)(GOe, {
props: e,
data: n.data,
pending: i,
@@ -68610,7 +68669,7 @@ function VOe(e) {
retry: () => void n.refetch()
}, `${t.view}:${t.kind}`)] });
}
-function HOe(e) {
+function WOe(e) {
let [t, n] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
if (!e) return;
@@ -68620,8 +68679,8 @@ function HOe(e) {
};
}, [e]), t;
}
-function UOe({ props: e, data: t, pending: n, error: r, retry: i }) {
- let a = Xye(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 GOe({ props: e, data: t, pending: n, error: r, retry: i }) {
+ let a = Zye(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", {
@@ -68629,16 +68688,16 @@ function UOe({ props: e, data: t, pending: n, error: r, retry: i }) {
"data-grid-reveal": a.fading ? "" : void 0,
children: [a.layer, (() => {
if (n) return null;
- if (!t) return /* @__PURE__ */ (0, I.jsx)(GG, {
+ if (!t) return /* @__PURE__ */ (0, I.jsx)(qG, {
message: bn(r),
onRetry: i
});
if (!l.length) {
let t = e.view === "dismissed";
- return /* @__PURE__ */ (0, I.jsx)(CV, {
- icon: zOe,
+ return /* @__PURE__ */ (0, I.jsx)(TV, {
+ icon: VOe,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
- actions: t ? /* @__PURE__ */ (0, I.jsx)(ML, {
+ actions: t ? /* @__PURE__ */ (0, I.jsx)(PL, {
size: "small",
href: "/junk-files",
children: "查看待判断"
@@ -68651,7 +68710,7 @@ function UOe({ 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)(LOe, {
+ children: u.map((t) => /* @__PURE__ */ (0, I.jsx)(zOe, {
item: t,
view: e.view,
selected: e.selected.has(t.id),
@@ -68660,7 +68719,7 @@ function UOe({ props: e, data: t, pending: n, error: r, retry: i }) {
actions: e.actions
}, t.id))
}),
- u.length < l.length ? /* @__PURE__ */ (0, I.jsx)(WOe, { onMore: f }, s) : null,
+ u.length < l.length ? /* @__PURE__ */ (0, I.jsx)(KOe, { 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",
@@ -68670,14 +68729,14 @@ function UOe({ props: e, data: t, pending: n, error: r, retry: i }) {
})()]
});
}
-function WOe({ onMore: e }) {
+function KOe({ onMore: e }) {
let t = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
let n = t.current;
if (!n || typeof IntersectionObserver > "u") return;
let r = new IntersectionObserver((t) => {
t.some((e) => e.isIntersecting) && e();
- }, { rootMargin: WG });
+ }, { rootMargin: KG });
return r.observe(n), () => r.disconnect();
}, [e]), /* @__PURE__ */ (0, I.jsx)("div", {
ref: t,
@@ -68687,22 +68746,22 @@ function WOe({ onMore: e }) {
});
}
// src/react/components/fieldset-layout.ts
-var GOe = zH({
+var qOe = VH({
padding: "none",
className: "overflow-hidden"
-}), x$ = {
+}), S$ = {
split: "min-w-0 p-6",
stack: "flex min-h-30 min-w-0 flex-1 flex-col px-5 pt-5 pb-4 max-cleanup-tight:min-h-0 max-cleanup-tight:p-4.5"
-}, S$ = {
+}, C$ = {
split: "flex flex-wrap items-center justify-end gap-2 self-stretch p-6 max-[1001px]:justify-start max-[1001px]:pt-0",
stack: "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t border-border-button-default bg-card-footer px-5 py-3 max-cleanup-tight:px-4.5"
};
-function C$(e) {
- return `${GOe} ${e === "split" ? "fieldset-split" : "flex flex-col"}`;
+function w$(e) {
+ return `${qOe} ${e === "split" ? "fieldset-split" : "flex flex-col"}`;
}
// src/react/data-cleanup/cleanup-entry.ts
-var w$ = "inline-grid w-full grid-cols-2 gap-3 max-cleanup-tight:grid-cols-1", T$ = {
- face: zH({
+var T$ = "inline-grid w-full grid-cols-2 gap-3 max-cleanup-tight:grid-cols-1", E$ = {
+ face: VH({
padding: "none",
radius: "plain",
interactive: !0,
@@ -68714,34 +68773,34 @@ var w$ = "inline-grid w-full grid-cols-2 gap-3 max-cleanup-tight:grid-cols-1", T
summary: "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"
-}, KOe = [
+}, JOe = [
"text-chart-6",
"text-chart-5",
"text-chart-7",
"text-chart-8"
-], qOe = [
+], YOe = [
"bg-chart-6/10",
"bg-chart-5/10",
"bg-chart-7/10",
"bg-chart-8/10"
];
-function JOe(e = {}) {
- return `${zH({
+function XOe(e = {}) {
+ return `${VH({
...e,
padding: "none"
})} flex flex-col overflow-hidden pt-4 text-left`;
}
-var YOe = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", XOe = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
-function E$({ interactive: e = !1 } = {}) {
- return zH({
+var ZOe = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", QOe = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
+function D$({ interactive: e = !1 } = {}) {
+ return VH({
padding: "none",
radius: "plain",
interactive: e,
className: "flex min-h-33 flex-col gap-2 p-4 text-left"
});
}
-var D$ = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
-function ZOe({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
+var O$ = "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 }) {
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",
@@ -68774,13 +68833,13 @@ function ZOe({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMet
})
] });
}
-function QOe({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
+function eke({ 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 ${KOe[n % 4]} ${qOe[n % 4]}`,
+ className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${JOe[n % 4]} ${YOe[n % 4]}`,
children: /* @__PURE__ */ (0, I.jsx)(t, {
"aria-hidden": !0,
className: "size-4"
@@ -68801,96 +68860,96 @@ function QOe({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
] });
}
// src/management.ts
-var O$ = "发现新文件,补全新增及未完成影片的资料和预览。需要检查全部影片时,使用全库维护。", k$ = "部分视频文件可能播放卡顿、打不开,修复缺时间戳表和缺索引的问题。", A$ = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", j$ = "disabled data-skeleton-action", $Oe = "aria-disabled=\"true\"", M$ = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, N$ = (e, t, n) => `<div class="${x$[n]}"><div class="flex flex-col gap-2">
+var k$ = "发现新文件,补全新增及未完成影片的资料和预览。需要检查全部影片时,使用全库维护。", A$ = "部分视频文件可能播放卡顿、打不开,修复缺时间戳表和缺索引的问题。", j$ = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", M$ = "disabled data-skeleton-action", tke = "aria-disabled=\"true\"", N$ = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, P$ = (e, t, n) => `<div class="${S$[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 eke() {
- return M$(`<section aria-label="扫描与采集" class="${C$("stack")}" data-cleanup-task data-cleanup-processing>
- ${N$("扫描与采集", O$, "stack")}
- <footer class="${S$.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({
+function nke() {
+ return N$(`<section aria-label="扫描与采集" class="${w$("stack")}" data-cleanup-task data-cleanup-processing>
+ ${P$("扫描与采集", k$, "stack")}
+ <footer class="${C$.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({
label: "同步新增文件",
- attrs: j$
+ attrs: M$
})}${Ds({
glyph: "chevron-down",
- attrs: `${j$} aria-label="更多同步方式"`
+ attrs: `${M$} aria-label="更多同步方式"`
})}</span></footer>
</section>`);
}
-function tke() {
- return M$(`<section aria-label="媒体修复" class="${C$("split")}" data-cleanup-task data-cleanup-processing>
- ${N$("媒体修复", k$, "split")}
- <footer class="${S$.split}">${ks(A$, {
+function rke() {
+ return N$(`<section aria-label="媒体修复" class="${w$("split")}" data-cleanup-task data-cleanup-processing>
+ ${P$("媒体修复", A$, "split")}
+ <footer class="${C$.split}">${ks(j$, {
className: "w-48",
- attrs: $Oe
+ attrs: tke
})}${Ds({
label: "开始修复",
- attrs: j$
+ attrs: M$
})}</footer>
</section>`);
}
-function nke() {
- let e = (e, t, n, r = "") => `<div class="${T$.face}"><span class="${T$.icon}">${ws(t, "size-5")}</span><span class="${T$.body}"><span class="${T$.title}">${e}</span><span class="${T$.summary}">${n}</span>${r ? `<span class="${T$.detail}">${r}</span>` : ""}</span>${ws("chevron-right", T$.arrow)}</div>`, t = (e, t) => `<div class="${E$()}"><span class="flex min-w-0 items-center gap-2 text-body-medium text-text-secondary"><i class="flex size-8 shrink-0 items-center justify-center rounded-md bg-background-primary-default text-text-primary">${ws(t, "size-4")}</i><span>${e}</span></span><strong class="block text-title-1-medium tabular-nums text-text-primary">${A$}</strong><span class="block min-h-4 text-caption-1-regular text-text-tertiary">${A$}</span></div>`, n = (e) => `<h2 class="text-title-2-medium! m-0! text-text-primary">${e}</h2>`, r = (t) => qf.filter((e) => e.key === "batch-delete" === t).map((t) => e(t.title, t.icon, t.description)).join("");
+function ike() {
+ let e = (e, t, n, r = "") => `<div class="${E$.face}"><span class="${E$.icon}">${ws(t, "size-5")}</span><span class="${E$.body}"><span class="${E$.title}">${e}</span><span class="${E$.summary}">${n}</span>${r ? `<span class="${E$.detail}">${r}</span>` : ""}</span>${ws("chevron-right", E$.arrow)}</div>`, t = (e, t) => `<div class="${D$()}"><span class="flex min-w-0 items-center gap-2 text-body-medium text-text-secondary"><i class="flex size-8 shrink-0 items-center justify-center rounded-md bg-background-primary-default text-text-primary">${ws(t, "size-4")}</i><span>${e}</span></span><strong class="block text-title-1-medium tabular-nums text-text-primary">${j$}</strong><span class="block min-h-4 text-caption-1-regular text-text-tertiary">${j$}</span></div>`, n = (e) => `<h2 class="text-title-2-medium! m-0! text-text-primary">${e}</h2>`, r = (t) => qf.filter((e) => e.key === "batch-delete" === t).map((t) => e(t.title, t.icon, t.description)).join("");
return `<div class="peach-react" data-skeleton="cleanup" aria-busy="true" role="status" aria-label="正在读取数据管理状态"><div aria-hidden="true" inert class="mx-auto flex w-full max-w-board flex-col gap-8">
- <section class="flex flex-col gap-4">${n("待处理事项")}<div class="${D$}">${[
+ <section class="flex flex-col gap-4">${n("待处理事项")}<div class="${O$}">${[
["人工复核", "square-check-big"],
["重复文件", "file-stack"],
["垃圾文件", "file-archive"],
["高清版", "sparkles"],
["回收站", "trash"]
].map(([e, n]) => t(e, n)).join("")}</div></section>
- <div id="libraryProcessing" class="scroll-mt-20">${eke()}</div>
- <section class="flex flex-col gap-4">${n("整理与维护")}<div class="${w$}">${r(!1)}</div></section>
- <section class="flex flex-col gap-4">${n("清理与删除")}<div class="${w$}">${r(!0)}</div></section>
+ <div id="libraryProcessing" class="scroll-mt-20">${nke()}</div>
+ <section class="flex flex-col gap-4">${n("整理与维护")}<div class="${T$}">${r(!1)}</div></section>
+ <section class="flex flex-col gap-4">${n("清理与删除")}<div class="${T$}">${r(!0)}</div></section>
</div></div>`;
}
// src/react/components/fieldset.tsx
-var rke = zH({
+var ake = VH({
padding: "none",
radius: "surface",
className: "overflow-hidden"
-}), ike = "border-t border-border-button-default p-4 first:border-t-0";
-function ake({ id: e, children: t }) {
+}), oke = "border-t border-border-button-default p-4 first:border-t-0";
+function ske({ id: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)("h2", {
id: e,
className: "text-title-2-medium! m-0! text-text-primary",
children: t
});
}
-function P$({ id: e, gap: t = "none", children: n }) {
+function F$({ id: e, gap: t = "none", children: n }) {
return /* @__PURE__ */ (0, I.jsx)("h3", {
id: e,
className: `text-title-2-medium text-text-primary ${t === "medium" ? "mb-3" : t === "small" ? "mb-2" : ""}`,
children: n
});
}
-function F$({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
+function I$({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
return /* @__PURE__ */ (0, I.jsxs)("section", {
id: r,
"aria-label": t,
"aria-labelledby": n,
...o,
- className: C$(e),
+ className: w$(e),
children: [/* @__PURE__ */ (0, I.jsx)("div", {
- className: x$[e],
+ className: S$[e],
children: a
}), i ? /* @__PURE__ */ (0, I.jsx)("footer", {
- className: S$[e],
+ className: C$[e],
children: i
}) : null]
});
}
// src/react/components/name-link.tsx
-function I$({ className: e, ...t }) {
+function L$({ className: e, ...t }) {
return /* @__PURE__ */ (0, I.jsx)("a", {
...t,
className: q("text-body-2-medium underline-offset-4 hover:underline", e)
});
}
// src/react/components/issue-row.tsx
-function L$({ title: e, href: t, children: n }) {
+function R$({ title: e, href: t, children: n }) {
return /* @__PURE__ */ (0, I.jsxs)("li", {
className: "flex min-w-0 flex-col gap-1 border-b border-current/15 py-2 pr-6 wrap-anywhere first:pt-0 last:border-b-0 last:pb-0",
- children: [t ? /* @__PURE__ */ (0, I.jsx)(I$, {
+ children: [t ? /* @__PURE__ */ (0, I.jsx)(L$, {
href: t,
children: e
}) : /* @__PURE__ */ (0, I.jsx)("span", {
@@ -68900,23 +68959,23 @@ function L$({ title: e, href: t, children: n }) {
});
}
// src/react/components/status-label.tsx
-var oke = {
+var cke = {
success: "lime",
progress: "blue",
warning: "yellow",
error: "rose",
neutral: "neutral"
};
-function R$({ tone: e = "neutral", ...t }) {
- return /* @__PURE__ */ (0, I.jsx)(iW, {
+function z$({ tone: e = "neutral", ...t }) {
+ return /* @__PURE__ */ (0, I.jsx)(oW, {
"data-status-tone": e,
variant: "caption",
- color: oke[e],
+ color: cke[e],
...t
});
}
// src/react/components/path-line.tsx
-function ske({ className: e }) {
+function lke({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -68929,8 +68988,8 @@ function ske({ className: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-folder-open" })
});
}
-var cke = "打开文件管理器失败,请重试";
-function z$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {
+var uke = "打开文件管理器失败,请重试";
+function B$({ 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)(() => () => {
l.current = !1;
@@ -68941,7 +69000,7 @@ function z$({ 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 : cke);
+ l.current && c(e instanceof or ? e.message : uke);
} finally {
l.current && o(!1);
}
@@ -68956,12 +69015,12 @@ function z$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {
children: [t, e]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex shrink-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(bL, {
- icon: ske,
+ children: [/* @__PURE__ */ (0, I.jsx)(SL, {
+ icon: lke,
size: "small",
"aria-label": "在资源管理器中显示",
onClick: () => void u(),
- ...DV(a)
+ ...kV(a)
}), r]
})]
}), s ? /* @__PURE__ */ (0, I.jsx)("p", {
@@ -68971,7 +69030,7 @@ function z$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {
});
}
// src/react/library-processing/issue-export.ts
-async function lke(e, t) {
+async function dke(e, t) {
if (!e.job_id) throw Error("请先选择有问题记录的任务");
let n = [], r = 1, i = "";
for (let a = 0; a < r; a += 200) {
@@ -68994,69 +69053,69 @@ async function lke(e, t) {
rows: n
}, null, 2);
}
-function uke(e, t) {
+function fke(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 dke = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", fke = (e) => {
+var pke = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", mke = (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(",")}。`;
-}, pke = (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} 部视频预览。` : "") + fke(e);
-function mke({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = y_e(e), o = DH(), s = DH(), [c, l] = (0, F.useState)(""), u = pH(e), d = e.status === "failed" && !!e.retryable_asset_ids?.length, f = g_e(e.notes || {}), p = !!t || !e.archived && e.status === "failed", m = !t && !e.archived && mH(e), h = p || !e.archived && !u && (!!f || !!e.issue_count), g = !u && !!e.job_id && !e.archived, _ = e.issues_log || "", v = dH(e), y = QV(), b = (t) => void s.run(t ? "archive" : "unarchive", (n) => V(lH, {
+}, hke = (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} 部视频预览。` : "") + mke(e);
+function gke({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
+ let a = __e(e), o = kH(), s = kH(), [c, l] = (0, F.useState)(""), u = hH(e), d = e.status === "failed" && !!e.retryable_asset_ids?.length, f = m_e(e.notes || {}), p = !!t || !e.archived && e.status === "failed", m = !t && !e.archived && gH(e), h = p || !e.archived && !u && (!!f || !!e.issue_count), g = !u && !!e.job_id && !e.archived, _ = e.issues_log || "", v = pH(e), y = eH(), b = (t) => void s.run(t ? "archive" : "unarchive", (n) => V(dH, {
action: t ? "archive" : "unarchive",
job_id: e.job_id
}, "POST", n), (n) => {
- H.setQueryData(uH, n), l(t ? e.job_id : "");
+ H.setQueryData(fH, n), l(t ? e.job_id : "");
}), x = e.issue_count && !u ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...DV(!!o.busy),
- onClick: () => void o.run("export", (t) => lke(e, t), (t) => {
- uke(e.job_id, t), i("已导出问题清单");
+ ...kV(!!o.busy),
+ onClick: () => void o.run("export", (t) => dke(e, t), (t) => {
+ fke(e.job_id, t), i("已导出问题清单");
}),
children: "导出完整问题清单"
}) : null, S = p ? [
t || e.error || "处理未完成,请重试",
- m ? hH : "",
+ m ? _H : "",
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)(S_e, {
+ v ? /* @__PURE__ */ (0, I.jsx)(b_e, {
state: e,
slow: v
- }) : e.status === "running" && e.stalled ? /* @__PURE__ */ (0, I.jsx)(SV, {
+ }) : e.status === "running" && e.stalled ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "warning",
title: "处理较慢",
- children: dke
+ children: pke
}) : null,
- n?.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(SV, {
+ n?.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "success",
title: "处理完成",
- children: pke(n)
+ children: hke(n)
}) : null,
- (n ?? e).status === "cancelled" && !e.archived ? /* @__PURE__ */ (0, I.jsx)(SV, {
+ (n ?? e).status === "cancelled" && !e.archived ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "neutral",
title: "已取消上次任务",
children: "已取得的资料和预览已保留,这一轮不会自动继续,需要时重新同步。"
}) : null,
- h ? /* @__PURE__ */ (0, I.jsx)(SV, {
+ h ? /* @__PURE__ */ (0, I.jsx)(wV, {
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)(EH, {
- href: gH,
+ m ? /* @__PURE__ */ (0, I.jsx)(OH, {
+ href: vH,
size: "small",
- trailingIcon: MB,
+ trailingIcon: PB,
children: "查看全部内容"
}) : null,
d ? /* @__PURE__ */ (0, I.jsx)(J, {
@@ -69070,7 +69129,7 @@ function mke({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
variant: "secondary",
size: "small",
"aria-label": "归档提示",
- ...DV(!!s.busy),
+ ...kV(!!s.busy),
onClick: () => b(!0),
children: "归档"
}) : null
@@ -69078,7 +69137,7 @@ function mke({ 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)(QH, {
+ children: /* @__PURE__ */ (0, I.jsx)(eU, {
summary: a.label,
contentClassName: "gap-0",
children: /* @__PURE__ */ (0, I.jsx)("div", {
@@ -69086,7 +69145,7 @@ function mke({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
children: /* @__PURE__ */ (0, I.jsx)("ul", {
ref: y,
className: "max-h-96 overflow-y-auto",
- children: a.items.map((e) => /* @__PURE__ */ (0, I.jsxs)(L$, {
+ children: a.items.map((e) => /* @__PURE__ */ (0, I.jsxs)(R$, {
title: e.label,
href: e.href,
children: [/* @__PURE__ */ (0, I.jsx)("span", {
@@ -69102,7 +69161,7 @@ function mke({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
})
}) : null, _ ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "-mx-3 mt-3 border-t border-current/20 px-3 pt-3 text-text-secondary",
- children: /* @__PURE__ */ (0, I.jsx)(z$, {
+ children: /* @__PURE__ */ (0, I.jsx)(B$, {
path: _,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -69115,70 +69174,70 @@ function mke({ 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)(SV, {
+ e.archived && c === e.job_id && !t ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...DV(!!s.busy),
+ ...kV(!!s.busy),
onClick: () => b(!1),
children: "撤销"
}),
children: "已归档上一趟的问题提示,完整记录仍保留。"
}) : null,
- o.error || s.error ? /* @__PURE__ */ (0, I.jsx)(SV, {
+ o.error || s.error ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "warning",
children: o.error || s.error
}) : null
]
});
}
-function B$(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = RH(e), o = Ft({
- mutationFn: (e) => V(lH, e),
+function V$(e) {
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = BH(e), o = Ft({
+ mutationFn: (e) => V(dH, e),
onSuccess: (e) => {
- a(), H.setQueryData(uH, e), H.invalidateQueries({ queryKey: uH });
+ a(), H.setQueryData(fH, e), H.invalidateQueries({ queryKey: fH });
}
});
(0, F.useEffect)(() => {
i && n?.();
}, [i, n]);
- let s = r.data ?? { status: "idle" }, c = s.job_id || "unavailable", { hidden: l } = mU(c), u = o.error ? cr(o.error) : r.isError ? r.data ? bH : cr(r.error) : "", d = o.isPending || pH(s), f = async (e) => {
+ let s = r.data ?? { status: "idle" }, c = s.job_id || "unavailable", { hidden: l } = gU(c), u = o.error ? cr(o.error) : r.isError ? r.data ? SH : cr(r.error) : "", d = o.isPending || hH(s), f = async (e) => {
d || (o.reset(), await o.mutateAsync(e));
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, I.jsx)(F$, {
+ children: [/* @__PURE__ */ (0, I.jsx)(I$, {
layout: "stack",
label: "扫描与采集",
footer: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(EH, {
+ /* @__PURE__ */ (0, I.jsx)(OH, {
href: "/sources",
size: "small",
- trailingIcon: MB,
+ trailingIcon: PB,
children: "来源和凭证"
}),
- /* @__PURE__ */ (0, I.jsx)(EH, {
+ /* @__PURE__ */ (0, I.jsx)(OH, {
href: "/settings/diagnostics",
size: "small",
- trailingIcon: MB,
+ trailingIcon: PB,
children: "诊断与日志"
}),
- s.candidates ? /* @__PURE__ */ (0, I.jsx)(EH, {
+ s.candidates ? /* @__PURE__ */ (0, I.jsx)(OH, {
href: "/review",
size: "small",
- trailingIcon: MB,
+ trailingIcon: PB,
children: "复核资料"
}) : null,
- /* @__PURE__ */ (0, I.jsx)(YK, {
+ /* @__PURE__ */ (0, I.jsx)(ZK, {
scan: !0,
busy: o.isPending,
- occupied: pH(s),
+ occupied: hH(s),
metadataOnly: s?.metadata_only,
speedMode: s.speed_mode,
pendingCount: s.new_asset_count,
onRun: f,
- onOccupied: () => t(m_e(s))
+ onOccupied: () => t(f_e(s))
})
] }),
children: /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -69188,7 +69247,7 @@ function B$(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)(P$, { children: "扫描与采集" }), s.new_asset_count ? /* @__PURE__ */ (0, I.jsx)(iW, {
+ children: [/* @__PURE__ */ (0, I.jsx)(F$, { children: "扫描与采集" }), s.new_asset_count ? /* @__PURE__ */ (0, I.jsx)(oW, {
variant: "caption",
color: "blue",
children: /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -69196,31 +69255,31 @@ function B$(e) {
children: [s.new_asset_count.toLocaleString(), " 部待补全"]
})
}) : null]
- }), l && (pH(s) || s.status === "failed" || r.isError) ? /* @__PURE__ */ (0, I.jsx)(J, {
+ }), l && (hH(s) || s.status === "failed" || r.isError) ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- onClick: () => pU(c, !0),
+ onClick: () => hU(c, !0),
children: "显示进度浮窗"
}) : null]
}),
/* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: O$
+ children: k$
}),
s.status === "paused" && !s.total ? /* @__PURE__ */ (0, I.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, I.jsx)(R$, { children: "已暂停" })
- }) : pH(s) ? /* @__PURE__ */ (0, I.jsx)(L_e, { state: s }) : null,
- pH(s) ? /* @__PURE__ */ (0, I.jsx)("p", {
+ children: /* @__PURE__ */ (0, I.jsx)(z$, { children: "已暂停" })
+ }) : hH(s) ? /* @__PURE__ */ (0, I.jsx)(F_e, { state: s }) : null,
+ hH(s) ? /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular text-text-secondary tabular-nums",
"data-processing-eta": "",
- children: _H(s)
+ children: yH(s)
}) : null,
- pH(s) ? /* @__PURE__ */ (0, I.jsx)(oU, { traffic: s.traffic }) : null,
- pH(s) ? /* @__PURE__ */ (0, I.jsx)(LH, { state: s }) : null
+ hH(s) ? /* @__PURE__ */ (0, I.jsx)(cU, { traffic: s.traffic }) : null,
+ hH(s) ? /* @__PURE__ */ (0, I.jsx)(zH, { state: s }) : null
]
})
- }), /* @__PURE__ */ (0, I.jsx)(mke, {
+ }), /* @__PURE__ */ (0, I.jsx)(gke, {
state: s,
problem: u,
settled: i,
@@ -69235,32 +69294,32 @@ function B$(e) {
});
}
// src/react/playlists/playlists.ts
-var hke = "/api/playlists", V$ = "/api/playlist", H$ = ["playlists"], U$ = (e) => B(hke, e);
-async function gke(e) {
+var _ke = "/api/playlists", H$ = "/api/playlist", U$ = ["playlists"], W$ = (e) => B(_ke, e);
+async function vke(e) {
await H.fetchQuery({
- queryKey: H$,
- queryFn: () => U$(e),
+ queryKey: U$,
+ queryFn: () => W$(e),
staleTime: 0
});
}
-var _ke = () => H.invalidateQueries({
- queryKey: H$,
+var yke = () => H.invalidateQueries({
+ queryKey: U$,
exact: !0
-}), vke = (e) => e.current_asset_id || e.preview_asset_id || null, yke = (e) => `/poster?id=${e}&c=4`, bke = (e) => V(V$, {
+}), bke = (e) => e.current_asset_id || e.preview_asset_id || null, xke = (e) => `/poster?id=${e}&c=4`, Ske = (e) => V(H$, {
action: "create",
name: e,
asset_ids: []
-}), xke = (e, t) => V(V$, {
+}), Cke = (e, t) => V(H$, {
action: "rename",
id: e,
name: t
-}), Ske = (e) => V(V$, {
+}), wke = (e) => V(H$, {
action: "delete",
id: e
-}), Cke = (e) => B(`${V$}?id=${e}`).catch(() => null);
-function wke(e) {
+}), Tke = (e) => B(`${H$}?id=${e}`).catch(() => null);
+function Eke(e) {
let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
- return V(V$, {
+ return V(H$, {
action: "create",
name: e.name,
asset_ids: t,
@@ -69269,13 +69328,9 @@ function wke(e) {
});
}
// src/react/scraping/custom-source-data.ts
-var W$ = "/api/custom-metadata", G$ = ["custom-metadata"], K$ = (e) => B(W$, e), Tke = "/api/scraping", Eke = "/api/scraping/settings", Dke = "/api/scraping/check", q$ = "/api/scraping/cover", Oke = "/api/scraping/amane-bridge", kke = "/api/scraping/amane-bridge/check", Ake = "/api/scraping/amane-bridge/rebuild", J$ = ["scraping"], Y$ = ["scraping", "cover"], X$ = ["scraping", "amane-bridge"], jke = 262144, Z$ = (e) => B(Tke, e), Q$ = (e) => B(q$, e), $$ = (e) => B(Oke, e);
-async function Mke(e) {
+var G$ = "/api/custom-metadata", K$ = ["custom-metadata"], q$ = (e) => B(G$, e), Dke = "/api/scraping", Oke = "/api/scraping/settings", kke = "/api/scraping/check", J$ = "/api/scraping/cover", Ake = "/api/scraping/amane-bridge", jke = "/api/scraping/amane-bridge/check", Mke = "/api/scraping/amane-bridge/rebuild", Y$ = ["scraping"], X$ = ["scraping", "cover"], Z$ = ["scraping", "amane-bridge"], Nke = 262144, Q$ = (e) => B(Dke, e), $$ = (e) => B(J$, e), e1 = (e) => B(Ake, e);
+async function Pke(e) {
await Promise.all([
- H.fetchQuery({
- queryKey: J$,
- queryFn: () => Z$(e)
- }),
H.fetchQuery({
queryKey: Y$,
queryFn: () => Q$(e)
@@ -69285,36 +69340,40 @@ async function Mke(e) {
queryFn: () => $$(e)
}),
H.fetchQuery({
- queryKey: G$,
- queryFn: () => K$(e)
+ queryKey: Z$,
+ queryFn: () => e1(e)
+ }),
+ H.fetchQuery({
+ queryKey: K$,
+ queryFn: () => q$(e)
})
]);
}
-function Nke(e, t) {
+function Fke(e, t) {
return `${t}${e.label === "来源页面" ? "" : " 高清图片"}:${e.ok ? "可连接" : "不能连接"}` + (e.width ? ` · ${e.width} × ${e.height}` : "") + (e.elapsed_s === void 0 ? "" : ` · ${e.elapsed_s.toFixed(2)} 秒`) + (e.message ? `。${e.message}` : "");
}
// src/react/search/search.ts
-var e1 = /* @__PURE__ */ new Set([
+var t1 = /* @__PURE__ */ new Set([
"performer",
"creator",
"studio",
"agency",
"series"
-]), t1 = /* @__PURE__ */ new Set([
+]), n1 = /* @__PURE__ */ new Set([
"asset",
"jav",
"post",
"photo",
"release"
-]), n1 = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
-function Pke({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o, recommendations: s = [] }) {
+]), r1 = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
+function Ike({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o, recommendations: s = [] }) {
let c = 0, l = [], u = (e) => {
let t = {
...e,
index: c++
};
return l.push(t), t;
- }, d = t.filter((t) => !e || n1(t).includes(n1(e)));
+ }, d = t.filter((t) => !e || r1(t).includes(r1(e)));
if (!e) {
if (s.length) {
let e = s.map((e) => ({
@@ -69335,8 +69394,8 @@ function Pke({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
value: e
}))
} : null,
- left: e.filter((e) => !t1.has(e.kind)),
- right: e.filter((e) => t1.has(e.kind)),
+ left: e.filter((e) => !n1.has(e.kind)),
+ right: e.filter((e) => n1.has(e.kind)),
empty: !1,
options: l
};
@@ -69386,7 +69445,7 @@ function Pke({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
options: n,
more: r
};
- }, g = m.filter((e) => !t1.has(e.kind)).map(h), _ = m.filter((e) => t1.has(e.kind)).map(h), v = f && !m.some((e) => e.items.length);
+ }, g = m.filter((e) => !n1.has(e.kind)).map(h), _ = m.filter((e) => n1.has(e.kind)).map(h), v = f && !m.some((e) => e.items.length);
return {
tabs: f && a.length > 1 ? [...a] : null,
recent: p,
@@ -69396,16 +69455,16 @@ function Pke({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
options: l
};
}
-function Fke(e, t, n = Math.random) {
+function Lke(e, t, n = Math.random) {
let r = [...e];
for (let e = r.length - 1; e > 0; --e) {
let t = Math.floor(n() * (e + 1));
[r[e], r[t]] = [r[t], r[e]];
}
- return r.filter((e) => !t.some((t) => n1(t) === n1(e))).slice(0, 5);
+ return r.filter((e) => !t.some((t) => r1(t) === r1(e))).slice(0, 5);
}
// src/react/search/search-page.tsx
-var Ike = () => ({
+var Rke = () => ({
dismissed: !1,
history: [],
pool: [],
@@ -69424,7 +69483,7 @@ var Ike = () => ({
active: -1,
reveal: !1,
rewind: !1
-}), r1 = (e) => Pke({
+}), i1 = (e) => Ike({
query: e.query,
history: e.history,
picks: e.picks,
@@ -69433,18 +69492,18 @@ var Ike = () => ({
tabs: e.tabs,
kind: e.kind,
recommendations: e.recommendations
-}), Lke = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), i1 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
+}), zke = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), a1 = ({ 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 Bke(e) {
let t = (0, F.useRef)(e);
t.current = e;
let n = (0, F.useRef)(null);
- n.current ??= Ike();
+ 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 ??= zke(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
+ o.current ??= Vke(() => 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 = () => {
@@ -69459,7 +69518,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 = r1(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, I.jsx)(Vke, {
+ let c = i1(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, I.jsx)(Uke, {
entry: t,
active: t.index === r.active,
helpers: e.helpers,
@@ -69472,7 +69531,7 @@ function Rke(e) {
children: [
/* @__PURE__ */ (0, I.jsxs)("h3", { children: [e.label, e.href ? /* @__PURE__ */ (0, I.jsx)("a", {
href: e.href,
- onMouseDown: a1,
+ onMouseDown: o1,
onClick: (t) => {
t.ctrlKey || t.metaKey || t.shiftKey || t.altKey || (t.preventDefault(), s.openPath(e.href));
},
@@ -69491,7 +69550,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)(Bke, {
+ c.tabs ? /* @__PURE__ */ (0, I.jsx)(Hke, {
tabs: c.tabs,
kind: r.kind,
onPick: s.pickKind,
@@ -69518,7 +69577,7 @@ function Rke(e) {
]
});
}
-function zke(e, t, n, r) {
+function Vke(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 () => {
@@ -69529,7 +69588,7 @@ function zke(e, t, n, r) {
t.history = Array.isArray(e.items) ? e.items.map(String) : [];
} catch {}
}, l = (t) => {
- t && e().historyLimit && (s([t, ...o().filter((e) => n1(e) !== n1(t))]), V("/api/search-history", { query: t }).catch(() => null));
+ t && e().historyLimit && (s([t, ...o().filter((e) => r1(e) !== r1(t))]), V("/api/search-history", { query: t }).catch(() => null));
}, u = async () => {
let n = ++t.poolRequest;
t.pool = [];
@@ -69576,9 +69635,9 @@ function zke(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 ? [] : Fke(t.pool, o()), t.active = -1;
+ t.query = i().value.trim(), t.picks = t.query ? [] : Lke(t.pool, o()), t.active = -1;
let a = n();
- a && (Lke(r1(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
+ a && (zke(i1(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
}, g = () => {
t.active = -1, t.kind = "", clearTimeout(t.timer);
let e = i().value.trim();
@@ -69590,7 +69649,7 @@ function zke(e, t, n, r) {
n && e !== t.kind && (t.kind = e, clearTimeout(t.timer), h(), t.rewind = !0, f(n, e).then(() => {
a() && t.kind === e && h();
}));
- }, v = () => p() ? r1(t).options : [], y = (e) => {
+ }, v = () => p() ? i1(t).options : [], y = (e) => {
let n = v();
return n.length ? (t.active = (t.active + e + n.length) % n.length, t.reveal = !0, r(), !0) : !1;
}, b = (t, n) => {
@@ -69599,7 +69658,7 @@ function zke(e, t, n, r) {
}, x = (t, n) => {
i().blur(), l(n), e().actions.openEntity(t, n);
}, S = (t) => {
- t.type === "suggest" && t.item.followMedia && t.item.id && e().actions.openFollow ? (i().blur(), e().actions.openFollow(t.item.id, t.item.followMedia, t.item.mediaIndex ?? null)) : t.type === "suggest" && t.item.href ? C(t.item.href) : t.type === "more" ? (b(!1, !0), i().blur()) : t.type === "suggest" && t.kind === "asset" && t.item.id != null ? (i().blur(), e().actions.openItem(t.item.id)) : t.type === "suggest" && e1.has(t.kind) ? x(t.kind, t.value) : (i().value = t.value, b(!1, !0));
+ t.type === "suggest" && t.item.followMedia && t.item.id && e().actions.openFollow ? (i().blur(), e().actions.openFollow(t.item.id, t.item.followMedia, t.item.mediaIndex ?? null)) : t.type === "suggest" && t.item.href ? C(t.item.href) : t.type === "more" ? (b(!1, !0), i().blur()) : t.type === "suggest" && t.kind === "asset" && t.item.id != null ? (i().blur(), e().actions.openItem(t.item.id)) : t.type === "suggest" && t1.has(t.kind) ? x(t.kind, t.value) : (i().value = t.value, b(!1, !0));
}, C = (t) => {
m(), i().blur(), e().actions.openPath?.(t);
};
@@ -69645,13 +69704,13 @@ function zke(e, t, n, r) {
await V("/api/search-history", {
operation: "remove",
query: e
- }).catch(() => null), s(o().filter((t) => n1(t) !== n1(e))), t.active = -1, r();
+ }).catch(() => null), s(o().filter((t) => r1(t) !== r1(e))), t.active = -1, r();
},
pickKind: _,
openPath: C
};
}
-function Bke({ tabs: e, kind: t, onPick: n, wire: r }) {
+function Hke({ tabs: e, kind: t, onPick: n, wire: r }) {
let i = (0, F.useRef)(null);
(0, F.useLayoutEffect)(() => {
r(i.current);
@@ -69665,9 +69724,9 @@ function Bke({ 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)(AW, { value: i }) : null]
+ children: [r, i ? /* @__PURE__ */ (0, I.jsx)(FW, { value: i }) : null]
}, e || "all");
- return /* @__PURE__ */ (0, I.jsxs)(YI, {
+ return /* @__PURE__ */ (0, I.jsxs)(ZI, {
ref: i,
"data-search-tabs": "",
"data-pill-nav": "",
@@ -69676,9 +69735,9 @@ function Bke({ tabs: e, kind: t, onPick: n, wire: r }) {
children: [a("", "全部"), e.map((e) => a(e.kind, e.label, e.total))]
});
}
-var a1 = (e) => e.preventDefault();
-function Vke({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
- _L();
+var o1 = (e) => e.preventDefault();
+function Uke({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
+ yL();
let o = {
"data-search-value": e.value,
"data-active": t ? "" : void 0,
@@ -69690,33 +69749,33 @@ function Vke({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
type: "button",
"data-search-option": "more",
...o,
- onMouseDown: a1,
+ onMouseDown: o1,
children: [
"查看全部 ",
e.total.toLocaleString(),
" 个视频",
- /* @__PURE__ */ (0, I.jsx)(i1, { name: "chevron-right" })
+ /* @__PURE__ */ (0, I.jsx)(a1, { name: "chevron-right" })
]
});
if (e.type !== "suggest") return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-search-option": "",
...o,
children: [
- /* @__PURE__ */ (0, I.jsx)(i1, { name: e.type === "history" ? "history" : "sparkles" }),
+ /* @__PURE__ */ (0, I.jsx)(a1, { name: e.type === "history" ? "history" : "sparkles" }),
/* @__PURE__ */ (0, I.jsx)("span", { children: e.value }),
e.type === "history" ? /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-remove-history": e.value,
"aria-label": `删除历史 ${e.value}`,
- onMouseDown: a1,
+ onMouseDown: o1,
onClick: (t) => {
t.stopPropagation(), a(e.value);
},
- children: /* @__PURE__ */ (0, I.jsx)(i1, { name: "x" })
+ children: /* @__PURE__ */ (0, I.jsx)(a1, { name: "x" })
}) : null
]
});
- let { item: s, kind: c } = e, l = e1.has(c) ? c : void 0;
+ let { item: s, kind: c } = e, l = t1.has(c) ? c : void 0;
if ([
"asset",
"jav",
@@ -69730,8 +69789,8 @@ function Vke({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-search-option": "work",
"data-open-item": c === "asset" ? s.id : void 0,
...o,
- onMouseDown: a1,
- children: [/* @__PURE__ */ (0, I.jsx)(o1, {
+ onMouseDown: o1,
+ children: [/* @__PURE__ */ (0, I.jsx)(s1, {
card: s.card,
helpers: n
}), /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -69756,9 +69815,9 @@ function Vke({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-search-option": "person",
"data-open-entity": l,
...o,
- onMouseDown: a1,
+ onMouseDown: o1,
children: [
- /* @__PURE__ */ (0, I.jsx)(s1, {
+ /* @__PURE__ */ (0, I.jsx)(c1, {
item: s,
kind: c
}),
@@ -69781,11 +69840,11 @@ function Vke({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
type: "button",
"data-open-work": e.id,
"aria-label": `打开 ${e.code || s.value}`,
- onMouseDown: a1,
+ onMouseDown: o1,
onClick: (t) => {
t.stopPropagation(), i(e);
},
- children: /* @__PURE__ */ (0, I.jsx)(o1, {
+ children: /* @__PURE__ */ (0, I.jsx)(s1, {
card: e,
helpers: n
})
@@ -69799,7 +69858,7 @@ function Vke({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-open-entity": l,
...o,
children: [
- c === "studio" || c === "agency" ? /* @__PURE__ */ (0, I.jsx)(s1, {
+ c === "studio" || c === "agency" ? /* @__PURE__ */ (0, I.jsx)(c1, {
item: s,
kind: c
}) : null,
@@ -69812,13 +69871,13 @@ function Vke({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
]
});
}
-function o1({ card: e, helpers: t }) {
+function s1({ card: e, helpers: t }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-search-pic": "",
dangerouslySetInnerHTML: { __html: t.coverHtml(e) }
});
}
-function s1({ item: e, kind: t }) {
+function c1({ item: e, kind: t }) {
if (e.avatarHtml) return /* @__PURE__ */ (0, I.jsx)("span", {
"data-search-face": "",
dangerouslySetInnerHTML: { __html: e.avatarHtml }
@@ -69837,24 +69896,24 @@ function s1({ item: e, kind: t }) {
});
}
// src/react/settings/configuration.ts
-var c1 = ["configuration"], l1 = (e) => B(iX, e);
-async function Hke(e) {
+var l1 = ["configuration"], u1 = (e) => B(oX, e);
+async function Wke(e) {
await H.fetchQuery({
- queryKey: c1,
- queryFn: () => l1(e)
+ queryKey: l1,
+ queryFn: () => u1(e)
});
}
// src/react/settings-panel/legacy-controls.tsx
-var u1 = (e) => e.map(([e, t, n]) => n ? [
+var d1 = (e) => e.map(([e, t, n]) => n ? [
e,
t,
n
] : [e, t]);
-function d1({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant: o, text: s = !1, epoch: c, onChoose: l }) {
+function f1({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant: o, text: s = !1, epoch: c, onChoose: l }) {
let u = (0, F.useRef)(null), d = (0, F.useRef)(null), f = (0, F.useRef)(l);
return f.current = l, (0, F.useLayoutEffect)(() => {
let e = u.current;
- e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = Xc(t, n, u1(r), i, {
+ e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = Xc(t, n, d1(r), i, {
attr: a,
className: o,
text: s
@@ -69872,13 +69931,13 @@ function d1({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant:
ref: u
});
}
-function f1({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a = !1, hidden: o, describedBy: s, epoch: c, onPick: l, decorate: u }) {
+function p1({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a = !1, hidden: o, describedBy: s, epoch: c, onPick: l, decorate: u }) {
let d = (0, F.useRef)(null), f = (0, F.useRef)(null), p = (0, F.useRef)(-1), m = (0, F.useRef)(l);
return m.current = l, (0, F.useLayoutEffect)(() => {
let e = d.current;
if (!e) return;
if (p.current !== c || !f.current) {
- e.innerHTML = ps(u1(n), r, { label: t });
+ e.innerHTML = ps(d1(n), r, { label: t });
let i = ms(e.firstElementChild);
i.addEventListener("change", () => m.current(i.value)), f.current = i, p.current = c;
}
@@ -69891,7 +69950,7 @@ function f1({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a =
"aria-describedby": s
});
}
-function Uke({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
+function Gke({ 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
@@ -69925,7 +69984,7 @@ function Uke({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSet
});
}
// src/react/settings-panel/glow-settings.tsx
-var Wke = [
+var Kke = [
[
"strength",
"强度",
@@ -69952,8 +70011,8 @@ var Wke = [
100
]
];
-function Gke({ host: e, spot: t, index: n, glow: r }) {
- let i = $ce[n], a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = QV(), [l, u] = (0, F.useState)("all");
+function qke({ host: e, spot: t, index: n, glow: r }) {
+ let i = Zce[n], a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = eH(), [l, u] = (0, F.useState)("all");
(0, F.useLayoutEffect)(() => {
let [e, t, n] = [
a.current,
@@ -69966,7 +70025,7 @@ function Gke({ host: e, spot: t, index: n, glow: r }) {
}, []);
let d = r[t].color, f = (n) => {
let r = e.store.value.homeGlow;
- r[t].color = eM(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), as(), o.current?.focus();
+ r[t].color = nM(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), as(), o.current?.focus();
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-glow-stop": t,
@@ -69991,7 +70050,7 @@ function Gke({ host: e, spot: t, index: n, glow: r }) {
children: d
})]
}),
- /* @__PURE__ */ (0, I.jsx)(qF, { name: "chevron-down" })
+ /* @__PURE__ */ (0, I.jsx)(YF, { name: "chevron-down" })
]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "popmenu",
@@ -70003,7 +70062,7 @@ function Gke({ host: e, spot: t, index: n, glow: r }) {
"data-glow-pills": "",
role: "group",
"aria-label": "色系",
- children: nle.map(([e, t]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: ele.map(([e, t]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glow-pill": e,
"aria-pressed": e === l,
@@ -70017,7 +70076,7 @@ function Gke({ host: e, spot: t, index: n, glow: r }) {
"data-glow-palette": "",
role: "radiogroup",
"aria-label": `${i}颜色`,
- children: rle.map(([e, t, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: tle.map(([e, t, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
role: "radio",
"aria-checked": n === d,
@@ -70034,8 +70093,8 @@ function Gke({ host: e, spot: t, index: n, glow: r }) {
})]
});
}
-function Kke({ host: e }) {
- let t = e.store.value.homeGlow, n = qj(t.preset);
+function Jke({ host: e }) {
+ let t = e.store.value.homeGlow, n = Yj(t.preset);
return /* @__PURE__ */ (0, I.jsxs)("section", {
"data-glow-setting": "",
id: "homeGlowControls",
@@ -70054,10 +70113,10 @@ function Kke({ host: e }) {
"data-glow-current": "",
children: ["当前配色", /* @__PURE__ */ (0, I.jsx)("b", {
"data-glow-preset-name": "",
- children: ele(t.preset)
+ children: Qce(t.preset)
})]
}),
- /* @__PURE__ */ (0, I.jsx)(WM, {
+ /* @__PURE__ */ (0, I.jsx)(KM, {
store: e.store,
label: "光晕配色"
}),
@@ -70068,7 +70127,7 @@ function Kke({ host: e }) {
}),
/* @__PURE__ */ (0, I.jsx)("div", {
"data-glow-fields": "",
- children: Wke.map(([r, i, a]) => /* @__PURE__ */ (0, I.jsx)(Uke, {
+ children: Kke.map(([r, i, a]) => /* @__PURE__ */ (0, I.jsx)(Gke, {
field: r,
label: i,
max: a,
@@ -70089,7 +70148,7 @@ function Kke({ host: e }) {
className: "geist-button",
"data-glow-reset": "",
onClick: () => {
- e.store.value.homeGlow = nM(null), e.store.save(), e.changed("glow");
+ e.store.value.homeGlow = iM(null), e.store.save(), e.changed("glow");
},
children: "恢复默认"
})
@@ -70108,7 +70167,7 @@ function Kke({ host: e }) {
"data-glow-colour-card": "",
children: /* @__PURE__ */ (0, I.jsx)("div", {
"data-glow-stops": "",
- children: Wj.map((n, r) => /* @__PURE__ */ (0, I.jsx)(Gke, {
+ children: Kj.map((n, r) => /* @__PURE__ */ (0, I.jsx)(qke, {
host: e,
spot: n,
index: r,
@@ -70120,7 +70179,7 @@ function Kke({ host: e }) {
});
}
// src/react/settings-panel/number-setting.tsx
-var qke = {
+var Yke = {
batchSizeSetting: {
min: 1,
max: 200,
@@ -70167,22 +70226,22 @@ var qke = {
optional: !0,
fallback: 60
}
-}, p1 = (e) => `peach.number.${e}`;
-function m1(e, t) {
+}, m1 = (e) => `peach.number.${e}`;
+function h1(e, t) {
if (t !== "分钟" || !Number.isInteger(e) || e < 1440) return "";
let n = e / 1440;
return Number.isInteger(n) ? `${n.toLocaleString()} 天` : `约 ${n.toFixed(1)} 天`;
}
-function h1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
- let a = qke[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, F.useRef)(0);
- d.current ||= Nj(Number(localStorage.getItem(p1(e))), o, s, n && n > 0 ? n : l);
+function g1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
+ let a = Yke[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, F.useRef)(0);
+ d.current ||= Fj(Number(localStorage.getItem(m1(e))), o, s, n && n > 0 ? n : l);
let [f, p] = (0, F.useState)(n ?? 0), [m, h] = (0, F.useState)(String(n && n > 0 ? n : d.current)), [g, _] = (0, F.useState)(""), v = (0, F.useRef)(null), y = (0, F.useRef)(i);
y.current = i, (0, F.useLayoutEffect)(() => {
n !== null && (p(n), n > 0 && h(String(n)));
}, [n]);
let b = () => {
let t = v.current;
- t && (!t.value || !t.checkValidity() ? (t.setAttribute("aria-invalid", "true"), _(`请输入 ${o}–${s} 的整数(${c})`)) : (t.removeAttribute("aria-invalid"), _(""), d.current = Number(t.value), localStorage.setItem(p1(e), String(d.current)), y.current(d.current)));
+ t && (!t.value || !t.checkValidity() ? (t.setAttribute("aria-invalid", "true"), _(`请输入 ${o}–${s} 的整数(${c})`)) : (t.removeAttribute("aria-invalid"), _(""), d.current = Number(t.value), localStorage.setItem(m1(e), String(d.current)), y.current(d.current)));
}, x = (0, F.useRef)(b);
x.current = b, (0, F.useEffect)(() => {
let e = v.current;
@@ -70192,7 +70251,7 @@ function h1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
}, []);
let S = f > 0, C = () => {
let t = v.current;
- t?.removeAttribute("aria-invalid"), _(""), S ? (t && t.value && t.checkValidity() && (d.current = Number(t.value)), localStorage.setItem(p1(e), String(d.current)), p(0), y.current(0)) : (p(d.current), h(String(d.current)), y.current(d.current));
+ t?.removeAttribute("aria-invalid"), _(""), S ? (t && t.value && t.checkValidity() && (d.current = Number(t.value)), localStorage.setItem(m1(e), String(d.current)), p(0), y.current(0)) : (p(d.current), h(String(d.current)), y.current(d.current));
}, w = r || n === null;
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-number-setting": "",
@@ -70229,7 +70288,7 @@ function h1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
}
}), /* @__PURE__ */ (0, I.jsxs)("span", {
"aria-hidden": "true",
- children: [c, m1(Number(m), c) ? ` · ${m1(Number(m), c)}` : ""]
+ children: [c, h1(Number(m), c) ? ` · ${h1(Number(m), c)}` : ""]
})]
}), /* @__PURE__ */ (0, I.jsx)("small", {
id: `${e}-error`,
@@ -70242,13 +70301,13 @@ function h1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
});
}
// src/react/sidebar/sidebar-order.ts
-function g1(e) {
- let { mutate: t } = gX();
+function _1(e) {
+ let { mutate: t } = vX();
return (0, F.useCallback)((n) => {
e.value.sidebarOrder = n, e.save(), t({ sidebarOrder: n }, { onError: () => {} });
}, [e, t]);
}
-function _1(e, t, n, r) {
+function v1(e, t, n, r) {
if (t === n) return null;
let i = [...e], a = i.indexOf(t);
if (a < 0) return null;
@@ -70257,17 +70316,17 @@ function _1(e, t, n, r) {
return o < 0 ? null : (i.splice(o + +!!r, 0, t), i);
}
// src/react/settings-panel/sidebar-order.tsx
-var Jke = "__home__", v1 = (e) => e === "" ? Jke : e;
-function Yke({ host: e }) {
- let t = g1(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 = _1(n, e, r, i);
+var Xke = "__home__", y1 = (e) => e === "" ? Xke : e;
+function Zke({ host: e }) {
+ let t = _1(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 = v1(n, e, r, i);
a && t(a);
}, _ = (e, r) => {
let i = n.indexOf(e), a = i + r;
if (i < 0 || a < 0 || a >= n.length) return;
let o = [...n];
[o[i], o[a]] = [o[a], o[i]], t(o);
- }, v = a.find(([e]) => v1(e) === o) ?? a[0], y = () => {
+ }, v = a.find(([e]) => y1(e) === o) ?? a[0], y = () => {
h.current && cs(h.current), l(!1);
}, b = () => {
let e = h.current;
@@ -70288,7 +70347,7 @@ function Yke({ host: e }) {
}, C = (e) => ({
draggable: !0,
onDragStart: (t) => {
- d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", v1(e));
+ d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", y1(e));
},
onDragOver: (t) => {
if (u === null || u === e) return;
@@ -70320,9 +70379,9 @@ function Yke({ host: e }) {
/* @__PURE__ */ (0, I.jsx)("i", {
"data-sidebar-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(qF, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, I.jsx)(YF, { name: "grip-vertical" })
}),
- /* @__PURE__ */ (0, I.jsx)(qF, { name: a ?? "" }),
+ /* @__PURE__ */ (0, I.jsx)(YF, { name: a ?? "" }),
/* @__PURE__ */ (0, I.jsx)("b", { children: r })
]
}), /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -70336,7 +70395,7 @@ function Yke({ host: e }) {
title: "上移",
disabled: o === 0,
onClick: () => _(e, -1),
- children: /* @__PURE__ */ (0, I.jsx)(qF, { name: "chevron-up" })
+ children: /* @__PURE__ */ (0, I.jsx)(YF, { name: "chevron-up" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -70346,7 +70405,7 @@ function Yke({ host: e }) {
title: "下移",
disabled: o === i.length - 1,
onClick: () => _(e, 1),
- children: /* @__PURE__ */ (0, I.jsx)(qF, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, I.jsx)(YF, { name: "chevron-down" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -70358,11 +70417,11 @@ function Yke({ host: e }) {
onClick: () => {
n.length > 1 && t(n.filter((t) => t !== e));
},
- children: /* @__PURE__ */ (0, I.jsx)(qF, { name: "eye-off" })
+ children: /* @__PURE__ */ (0, I.jsx)(YF, { name: "eye-off" })
})
]
})]
- }, v1(e))), /* @__PURE__ */ (0, I.jsxs)("div", {
+ }, y1(e))), /* @__PURE__ */ (0, I.jsxs)("div", {
"data-sidebar-add-row": "",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-sidebar-add-picker": "",
@@ -70378,13 +70437,13 @@ function Yke({ host: e }) {
ref: m,
onClick: b,
children: v ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(qF, { name: v[2] ?? "" }),
+ /* @__PURE__ */ (0, I.jsx)(YF, { name: v[2] ?? "" }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-sidebar-add-label": "",
children: v[1]
}),
- /* @__PURE__ */ (0, I.jsx)(qF, { name: "chevron-down" })
- ] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(qF, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部页面都已显示" })] })
+ /* @__PURE__ */ (0, I.jsx)(YF, { name: "chevron-down" })
+ ] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(YF, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部页面都已显示" })] })
}), a.length ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "popmenu",
"data-sidebar-add-menu": "",
@@ -70395,15 +70454,15 @@ function Yke({ host: e }) {
children: a.map(([e, t, n]) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
role: "option",
- "data-sidebar-add-option": v1(e),
+ "data-sidebar-add-option": y1(e),
"aria-selected": v?.[0] === e,
tabIndex: v?.[0] === e ? 0 : -1,
onKeyDown: x,
onClick: () => {
- s(v1(e)), y(), m.current?.focus();
+ s(y1(e)), y(), m.current?.focus();
},
- children: [/* @__PURE__ */ (0, I.jsx)(qF, { name: n ?? "" }), /* @__PURE__ */ (0, I.jsx)("span", { children: t })]
- }, v1(e)))
+ children: [/* @__PURE__ */ (0, I.jsx)(YF, { name: n ?? "" }), /* @__PURE__ */ (0, I.jsx)("span", { children: t })]
+ }, y1(e)))
}) : null]
}), /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -70419,13 +70478,13 @@ function Yke({ host: e }) {
});
}
// src/react/settings-panel/settings-panel.tsx
-var y1 = [
+var b1 = [
["外观与导航", "ri-palette-line"],
["浏览与播放", "ri-play-circle-line"],
["JAV 与新作", "jav"],
["搜索与推荐", "ri-search-line"],
["内容显示", "ri-shield-check-line"]
-], Xke = [
+], Qke = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -70434,7 +70493,7 @@ var y1 = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], Zke = [["desc", "降序"], ["asc", "升序"]], Qke = [[
+], $ke = [["desc", "降序"], ["asc", "升序"]], eAe = [[
"cover",
"官方封面",
""
@@ -70442,7 +70501,7 @@ var y1 = [
"thumbnail",
"预览图",
""
-]], $ke = [
+]], tAe = [
[
"feedHideGroupSetting",
"feedHideGroupCompilations",
@@ -70461,88 +70520,88 @@ var y1 = [
"切片",
"隐藏切片"
]
-], eAe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", b1 = null, x1 = {
+], nAe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", x1 = null, S1 = {
open: !1,
closing: !1,
epoch: 0,
tab: 0,
configurable: null
-}, S1 = 0, C1 = null, w1 = /* @__PURE__ */ new Set();
-function tAe(e) {
- return w1.add(e), () => {
- w1.delete(e);
+}, C1 = 0, w1 = null, T1 = /* @__PURE__ */ new Set();
+function rAe(e) {
+ return T1.add(e), () => {
+ T1.delete(e);
};
}
-function nAe() {
- for (let e of [...w1]) e();
+function iAe() {
+ for (let e of [...T1]) e();
}
-function T1(e) {
- x1 = {
- ...x1,
+function E1(e) {
+ S1 = {
+ ...S1,
...e
- }, (0, Lt.flushSync)(nAe);
+ }, (0, Lt.flushSync)(iAe);
}
-async function rAe(e) {
- let t = x1.epoch, n = await e.configurable();
- x1.open && x1.epoch === t && T1({ configurable: n });
+async function aAe(e) {
+ let t = S1.epoch, n = await e.configurable();
+ S1.open && S1.epoch === t && E1({ configurable: n });
}
-function iAe(e = "") {
- let t = b1;
+function oAe(e = "") {
+ let t = x1;
if (!t) return;
- let n = y1.findIndex(([t]) => t === e);
- if (x1.open && !x1.closing) {
- n >= 0 && n !== x1.tab && T1({ tab: n });
+ let n = b1.findIndex(([t]) => t === e);
+ if (S1.open && !S1.closing) {
+ n >= 0 && n !== S1.tab && E1({ tab: n });
return;
}
- as(), S1 += 1, C1 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
- let r = Wwe();
- T1({
+ as(), C1 += 1, w1 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
+ let r = Gwe();
+ E1({
open: !0,
closing: !1,
configurable: null,
- epoch: x1.epoch + 1,
- tab: n >= 0 ? n : x1.tab
+ epoch: S1.epoch + 1,
+ tab: n >= 0 ? n : S1.tab
}), r.then((e) => {
e && t.syncRemote(e);
- }), rAe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
+ }), aAe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
}
-function E1(e = !0) {
- if (!x1.open || x1.closing) return;
- let t = ++S1;
- e && b1?.closed?.(), T1({ closing: !0 });
+function D1(e = !0) {
+ if (!S1.open || S1.closing) return;
+ let t = ++C1;
+ e && x1?.closed?.(), E1({ closing: !0 });
let n = () => {
- t === S1 && x1.closing && (T1({
+ t === C1 && S1.closing && (E1({
open: !1,
closing: !1
- }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), C1 instanceof HTMLElement && document.contains(C1) && C1.focus(), C1 = null);
+ }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), w1 instanceof HTMLElement && document.contains(w1) && w1.focus(), w1 = null);
};
matchMedia("(prefers-reduced-motion: reduce)").matches ? queueMicrotask(n) : (document.querySelector("#settingsPanel > [data-settings-card]")?.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 380));
}
-var aAe = {
- open: iAe,
- close: E1,
- isOpen: () => x1.open,
+var sAe = {
+ open: oAe,
+ close: D1,
+ isOpen: () => S1.open,
reveal: (e) => queueMicrotask(() => document.querySelector(e)?.scrollIntoView({ block: "nearest" }))
};
-function oAe(e) {
- return b1 = e, aAe;
+function cAe(e) {
+ return x1 = e, sAe;
}
-function sAe() {
- let e = (0, F.useSyncExternalStore)(tAe, () => x1);
- return b1 ? /* @__PURE__ */ (0, I.jsx)(uAe, {
- host: b1,
+function lAe() {
+ let e = (0, F.useSyncExternalStore)(rAe, () => S1);
+ return x1 ? /* @__PURE__ */ (0, I.jsx)(fAe, {
+ host: x1,
view: e
}) : null;
}
-function cAe(e) {
+function uAe(e) {
if (e.key !== "Tab") return;
- let t = [...e.currentTarget.querySelectorAll(eAe)].filter((e) => e.getClientRects().length > 0);
+ let t = [...e.currentTarget.querySelectorAll(nAe)].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 D1 = (e) => `settings-tab-${e}`, O1 = (e) => `settings-group-${e}`;
-function lAe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect: i }) {
+var O1 = (e) => `settings-tab-${e}`, k1 = (e) => `settings-group-${e}`;
+function dAe({ 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;
@@ -70570,7 +70629,7 @@ function lAe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
c.current = e, d.current(l.current[e], t);
}, [e, t]);
let f = (e, t) => {
- let n = y1.length, r = t;
+ let n = b1.length, r = t;
if (e.key === "ArrowRight" || e.key === "ArrowDown") r = (t + 1) % n;
else if (e.key === "ArrowLeft" || e.key === "ArrowUp") r = (t + n - 1) % n;
else if (e.key === "Home") r = 0;
@@ -70599,11 +70658,11 @@ function lAe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
role: "presentation",
children: "设置"
}),
- y1.map(([t, n], r) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ b1.map(([t, n], r) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
role: "tab",
- id: D1(r),
- "aria-controls": O1(r),
+ id: O1(r),
+ "aria-controls": k1(r),
"aria-selected": r === e,
tabIndex: r === e ? 0 : -1,
ref: (e) => {
@@ -70614,7 +70673,7 @@ function lAe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
onPointerEnter: (e) => {
e.pointerType !== "touch" && u(e.currentTarget, !0);
},
- children: [n === "jav" ? /* @__PURE__ */ (0, I.jsx)(qF, { name: n }) : /* @__PURE__ */ (0, I.jsx)(Mde, { name: n }), t]
+ children: [n === "jav" ? /* @__PURE__ */ (0, I.jsx)(YF, { name: n }) : /* @__PURE__ */ (0, I.jsx)(Ade, { name: n }), t]
}, t)),
/* @__PURE__ */ (0, I.jsx)("div", {
"data-settings-service": "",
@@ -70625,26 +70684,26 @@ function lAe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
onClick: r,
title: n === !1 ? "请在运行 Peach 的设备上打开 Peach 配置" : void 0,
children: [
- /* @__PURE__ */ (0, I.jsx)(qF, { name: "folder-cog" }),
+ /* @__PURE__ */ (0, I.jsx)(YF, { name: "folder-cog" }),
"Peach 配置",
- /* @__PURE__ */ (0, I.jsx)(qF, { name: "chevron-right" })
+ /* @__PURE__ */ (0, I.jsx)(YF, { name: "chevron-right" })
]
})
})
]
});
}
-function k1({ index: e, tab: t, children: n, cards: r = !1 }) {
+function A1({ index: e, tab: t, children: n, cards: r = !1 }) {
return /* @__PURE__ */ (0, I.jsxs)("section", {
"data-setting-group": "",
"data-setting-layout": r ? "cards" : void 0,
- id: O1(e),
+ id: k1(e),
role: "tabpanel",
- "aria-labelledby": D1(e),
+ "aria-labelledby": O1(e),
hidden: e !== t,
children: [
- /* @__PURE__ */ (0, I.jsx)("h3", { children: y1[e][0] }),
- /* @__PURE__ */ (0, I.jsx)(Ove, { chapter: [
+ /* @__PURE__ */ (0, I.jsx)("h3", { children: b1[e][0] }),
+ /* @__PURE__ */ (0, I.jsx)(Eve, { chapter: [
"appearance",
"playback",
"jav-settings",
@@ -70655,7 +70714,7 @@ function k1({ index: e, tab: t, children: n, cards: r = !1 }) {
]
});
}
-function A1({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {
+function j1({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {
return /* @__PURE__ */ (0, I.jsxs)("label", {
"data-setting-row": "",
children: [/* @__PURE__ */ (0, I.jsxs)("span", { children: [/* @__PURE__ */ (0, I.jsx)("b", { children: t }), n ? /* @__PURE__ */ (0, I.jsx)("small", {
@@ -70672,7 +70731,7 @@ function A1({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Se
})]
});
}
-function j1({ title: e, description: t, kind: n, children: r }) {
+function M1({ title: e, description: t, kind: n, children: r }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-setting-row": "",
"data-setting-sort": n === "sort" ? "" : void 0,
@@ -70680,7 +70739,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 uAe({ host: e, view: t }) {
+function fAe({ 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];
@@ -70701,7 +70760,7 @@ function uAe({ host: e, view: t }) {
s.current?.();
});
let d = t.epoch, f = (t) => {
- t !== x1.tab && (T1({ tab: t }), e.selectSection?.(y1[t][0]));
+ t !== S1.tab && (E1({ tab: t }), e.selectSection?.(b1[t][0]));
}, p = () => e.store.save();
return /* @__PURE__ */ (0, I.jsx)("section", {
"data-settings-panel": "",
@@ -70712,9 +70771,9 @@ function uAe({ host: e, view: t }) {
"aria-labelledby": "settingsTitle",
"data-closing": t.closing ? "" : void 0,
ref: r,
- onKeyDown: cAe,
+ onKeyDown: uAe,
onClick: (e) => {
- e.target === e.currentTarget && E1();
+ e.target === e.currentTarget && D1();
},
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-settings-card": "",
@@ -70725,27 +70784,27 @@ function uAe({ host: e, view: t }) {
ref: a,
children: [/* @__PURE__ */ (0, I.jsx)("h2", {
id: "settingsTitle",
- children: y1[t.tab][0]
- }), /* @__PURE__ */ (0, I.jsx)(EV, {
+ children: b1[t.tab][0]
+ }), /* @__PURE__ */ (0, I.jsx)(OV, {
id: "settingsClose",
label: "关闭设置",
- onPress: () => E1()
+ onPress: () => D1()
})]
}),
- /* @__PURE__ */ (0, I.jsx)(lAe, {
+ /* @__PURE__ */ (0, I.jsx)(dAe, {
tab: t.tab,
epoch: d,
configurable: t.configurable,
onSelect: f,
openConfiguration: () => {
- E1(!1), e.openConfiguration();
+ D1(!1), e.openConfiguration();
}
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-settings-scroll": "",
ref: o,
children: [
- /* @__PURE__ */ (0, I.jsxs)(k1, {
+ /* @__PURE__ */ (0, I.jsxs)(A1, {
index: 0,
tab: t.tab,
cards: !0,
@@ -70753,9 +70812,9 @@ function uAe({ host: e, view: t }) {
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-setting-card": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(j1, {
+ /* @__PURE__ */ (0, I.jsx)(M1, {
title: "主题",
- children: /* @__PURE__ */ (0, I.jsx)(d1, {
+ children: /* @__PURE__ */ (0, I.jsx)(f1, {
id: "themeSetting",
name: "theme",
legend: "主题",
@@ -70783,7 +70842,7 @@ function uAe({ host: e, view: t }) {
onChange: (t) => e.setHighContrast(t.target.checked)
})]
}),
- /* @__PURE__ */ (0, I.jsx)(A1, {
+ /* @__PURE__ */ (0, I.jsx)(j1, {
id: "uiSoundsSetting",
title: "界面音效",
checked: n.uiSounds,
@@ -70791,7 +70850,7 @@ function uAe({ host: e, view: t }) {
n.uiSounds = t, p(), e.changed("uiSounds");
}
}),
- /* @__PURE__ */ (0, I.jsx)(A1, {
+ /* @__PURE__ */ (0, I.jsx)(j1, {
id: "homeGlowSetting",
title: "侧栏光晕",
checked: n.homeGlow.on,
@@ -70801,7 +70860,7 @@ function uAe({ host: e, view: t }) {
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(Kke, { host: e }),
+ /* @__PURE__ */ (0, I.jsx)(Jke, { host: e }),
/* @__PURE__ */ (0, I.jsxs)("section", {
"data-setting-block": "",
"aria-labelledby": "sidebarOrderTitle",
@@ -70813,35 +70872,35 @@ function uAe({ host: e, view: t }) {
"data-setting-card": "",
children: /* @__PURE__ */ (0, I.jsx)("section", {
"data-sidebar-setting": "",
- children: /* @__PURE__ */ (0, I.jsx)(Yke, { host: e })
+ children: /* @__PURE__ */ (0, I.jsx)(Zke, { host: e })
})
})]
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(fAe, {
+ /* @__PURE__ */ (0, I.jsx)(mAe, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, I.jsx)(pAe, {
+ /* @__PURE__ */ (0, I.jsx)(hAe, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, I.jsxs)(k1, {
+ /* @__PURE__ */ (0, I.jsxs)(A1, {
index: 3,
tab: t.tab,
children: [
- /* @__PURE__ */ (0, I.jsx)(_Ae, {
+ /* @__PURE__ */ (0, I.jsx)(yAe, {
host: e,
epoch: d
}),
- /* @__PURE__ */ (0, I.jsx)(j1, {
+ /* @__PURE__ */ (0, I.jsx)(M1, {
title: "相关推荐数量",
children: /* @__PURE__ */ (0, I.jsx)("div", {
id: "relatedLimitSetting",
- children: /* @__PURE__ */ (0, I.jsx)(h1, {
+ children: /* @__PURE__ */ (0, I.jsx)(g1, {
id: "relatedLimitSetting",
label: "相关推荐数量",
value: n.relatedLimit,
@@ -70851,24 +70910,24 @@ function uAe({ host: e, view: t }) {
}, d)
})
}),
- /* @__PURE__ */ (0, I.jsx)(j1, {
+ /* @__PURE__ */ (0, I.jsx)(M1, {
title: "口味与记录",
children: /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, I.jsx)(ML, {
+ children: /* @__PURE__ */ (0, I.jsx)(PL, {
variant: "secondary",
href: "/taste",
- onClick: () => E1(!1),
+ onClick: () => D1(!1),
children: "打开口味与记录"
})
})
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(k1, {
+ /* @__PURE__ */ (0, I.jsx)(A1, {
index: 4,
tab: t.tab,
- children: /* @__PURE__ */ (0, I.jsx)(A1, {
+ children: /* @__PURE__ */ (0, I.jsx)(j1, {
id: "censorSetting",
title: "SFW 模式",
describedBy: "sfwDescription",
@@ -70883,7 +70942,7 @@ function uAe({ host: e, view: t }) {
})
});
}
-function dAe(e, t) {
+function pAe(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", {
@@ -70893,9 +70952,9 @@ function dAe(e, t) {
let r = n.querySelector("[data-sort-direction-label]");
r && (r.textContent = t ? "升序" : "降序");
}
-function fAe({ host: e, tab: t, epoch: n }) {
+function mAe({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save(), a = r.defaultSort === "seed", o = r.defaultSortDirection === "asc";
- return /* @__PURE__ */ (0, I.jsxs)(k1, {
+ return /* @__PURE__ */ (0, I.jsxs)(A1, {
index: 1,
tab: t,
children: [
@@ -70903,11 +70962,11 @@ function fAe({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "作品列表"
}),
- /* @__PURE__ */ (0, I.jsx)(j1, {
+ /* @__PURE__ */ (0, I.jsx)(M1, {
title: "每批加载作品",
children: /* @__PURE__ */ (0, I.jsx)("div", {
id: "batchSizeSetting",
- children: /* @__PURE__ */ (0, I.jsx)(h1, {
+ children: /* @__PURE__ */ (0, I.jsx)(g1, {
id: "batchSizeSetting",
label: "每批作品",
value: r.batchSize,
@@ -70917,24 +70976,24 @@ function fAe({ host: e, tab: t, epoch: n }) {
}, n)
})
}),
- /* @__PURE__ */ (0, I.jsx)(j1, {
+ /* @__PURE__ */ (0, I.jsx)(M1, {
title: "默认排序",
kind: "sort",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-setting-sort-controls": "",
- children: [/* @__PURE__ */ (0, I.jsx)(f1, {
+ children: [/* @__PURE__ */ (0, I.jsx)(p1, {
id: "defaultSortSetting",
label: "默认排序",
- options: Xke,
+ options: Qke,
value: r.defaultSort,
epoch: n,
onPick: (t) => {
r.defaultSort = t, i(), e.changed("defaultSort");
}
- }), /* @__PURE__ */ (0, I.jsx)(f1, {
+ }), /* @__PURE__ */ (0, I.jsx)(p1, {
id: "defaultSortDirectionSetting",
label: "默认排序方向",
- options: Zke,
+ options: $ke,
value: o ? "asc" : "desc",
hidden: a,
disabled: a,
@@ -70942,13 +71001,13 @@ function fAe({ host: e, tab: t, epoch: n }) {
onPick: (t) => {
r.defaultSortDirection = t, i(), e.changed("sortDirection");
},
- decorate: (e) => dAe(e, o)
+ decorate: (e) => pAe(e, o)
})]
})
}),
- /* @__PURE__ */ (0, I.jsx)(j1, {
+ /* @__PURE__ */ (0, I.jsx)(M1, {
title: "视频卡片大小",
- children: /* @__PURE__ */ (0, I.jsx)(d1, {
+ children: /* @__PURE__ */ (0, I.jsx)(f1, {
id: "javSizeSetting",
name: "video-size",
legend: "视频卡片大小",
@@ -70974,16 +71033,16 @@ function fAe({ host: e, tab: t, epoch: n }) {
}
})]
}),
- /* @__PURE__ */ (0, I.jsx)(j1, {
+ /* @__PURE__ */ (0, I.jsx)(M1, {
title: "悬停预览延迟",
children: /* @__PURE__ */ (0, I.jsx)("div", {
id: "hoverDelaySetting",
- children: /* @__PURE__ */ (0, I.jsx)(h1, {
+ children: /* @__PURE__ */ (0, I.jsx)(g1, {
id: "hoverDelaySetting",
label: "悬停预览延迟",
value: r.hoverDelaySeconds,
onApply: (t) => {
- r.hoverDelaySeconds = Nj(t, 0, 60, 5), i(), e.changed("hoverDelay");
+ r.hoverDelaySeconds = Fj(t, 0, 60, 5), i(), e.changed("hoverDelay");
}
}, n)
})
@@ -70992,16 +71051,16 @@ function fAe({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "播放"
}),
- /* @__PURE__ */ (0, I.jsx)(gAe, {
+ /* @__PURE__ */ (0, I.jsx)(vAe, {
host: e,
epoch: n
})
]
});
}
-function pAe({ host: e, tab: t, epoch: n }) {
+function hAe({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save();
- return /* @__PURE__ */ (0, I.jsxs)(k1, {
+ return /* @__PURE__ */ (0, I.jsxs)(A1, {
index: 2,
tab: t,
children: [
@@ -71009,17 +71068,17 @@ function pAe({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "作品显示"
}),
- /* @__PURE__ */ (0, I.jsx)(mAe, {
+ /* @__PURE__ */ (0, I.jsx)(gAe, {
host: e,
epoch: n
}),
- /* @__PURE__ */ (0, I.jsx)(j1, {
+ /* @__PURE__ */ (0, I.jsx)(M1, {
title: "默认图片",
- children: /* @__PURE__ */ (0, I.jsx)(d1, {
+ children: /* @__PURE__ */ (0, I.jsx)(f1, {
id: "javImageSetting",
name: "jav-image",
legend: "默认图片",
- options: Qke,
+ options: eAe,
value: r.javImage,
attr: "data-jav-image-choice",
variant: "javimageswitch",
@@ -71034,21 +71093,21 @@ function pAe({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "新作显示"
}),
- /* @__PURE__ */ (0, I.jsx)(j1, {
+ /* @__PURE__ */ (0, I.jsx)(M1, {
title: "显示数量",
children: /* @__PURE__ */ (0, I.jsx)("div", {
id: "feedLimitSetting",
- children: /* @__PURE__ */ (0, I.jsx)(h1, {
+ children: /* @__PURE__ */ (0, I.jsx)(g1, {
id: "feedLimitSetting",
label: "新作显示数量",
value: r.feedLimit,
onApply: (t) => {
- r.feedLimit = Nj(t, 1, 100, 12), i(), e.changed("feedLimit");
+ r.feedLimit = Fj(t, 1, 100, 12), i(), e.changed("feedLimit");
}
}, n)
})
}),
- /* @__PURE__ */ (0, I.jsx)(A1, {
+ /* @__PURE__ */ (0, I.jsx)(j1, {
id: "feedAutoScrollSetting",
title: "自动滚动",
checked: r.feedAutoScroll,
@@ -71056,7 +71115,7 @@ function pAe({ host: e, tab: t, epoch: n }) {
r.feedAutoScroll = t, i(), e.changed("feedAutoScroll");
}
}),
- $ke.map(([t, n, r, i]) => /* @__PURE__ */ (0, I.jsx)(hAe, {
+ tAe.map(([t, n, r, i]) => /* @__PURE__ */ (0, I.jsx)(_Ae, {
host: e,
id: t,
settingKey: n,
@@ -71066,19 +71125,19 @@ function pAe({ host: e, tab: t, epoch: n }) {
]
});
}
-function mAe({ host: e, epoch: t }) {
+function gAe({ host: e, epoch: t }) {
let n = Pt({
- queryKey: uX,
- queryFn: ({ signal: e }) => hX(e),
+ queryKey: fX,
+ queryFn: ({ signal: e }) => _X(e),
staleTime: 0
- }), r = gX(), [i, a] = (0, F.useState)(null), o = n.data?.performerNameLanguage;
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(j1, {
+ }), r = vX(), [i, a] = (0, F.useState)(null), o = n.data?.performerNameLanguage;
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(M1, {
title: "女优名称",
description: /* @__PURE__ */ (0, I.jsx)("small", {
"data-copy-key": "performer-name-language-help",
children: "名称与别名只显示所选语言的写法;缺少对应时保留当前名称。偏好保存在数据库,其他设备读取同一份设置。"
}),
- children: /* @__PURE__ */ (0, I.jsx)(f1, {
+ children: /* @__PURE__ */ (0, I.jsx)(p1, {
id: "performerNameLanguageSetting",
label: "女优名称",
epoch: t,
@@ -71096,13 +71155,13 @@ function mAe({ host: e, epoch: t }) {
}));
}
})
- }), n.isError ? /* @__PURE__ */ (0, I.jsx)(SV, {
+ }), n.isError ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "error",
children: "未取得数据库中的名称偏好,请重新打开设置。"
}) : null] });
}
-function hAe({ host: e, id: t, settingKey: n, label: r, title: i }) {
- let a = gX(), [o, s] = (0, F.useState)(null), c = (0, F.useRef)(null), l = e.store.value, u = (t) => {
+function _Ae({ host: e, id: t, settingKey: n, label: r, title: i }) {
+ let a = vX(), [o, s] = (0, F.useState)(null), c = (0, F.useRef)(null), l = e.store.value, u = (t) => {
s(t), qc(c.current), a.mutate({ [n]: t }, {
onSuccess: (i) => {
l[n] = i[n] === !0, e.store.save(), e.changed("feedCompilations"), e.receipt(t ? `新作已收起${r}` : `新作已列出${r}`);
@@ -71126,10 +71185,10 @@ function hAe({ host: e, id: t, settingKey: n, label: r, title: i }) {
})]
});
}
-function gAe({ host: e, epoch: t }) {
+function vAe({ 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)(A1, {
+ /* @__PURE__ */ (0, I.jsx)(j1, {
id: "detailAutoplaySetting",
title: "打开详情自动播放",
checked: n.detailAutoplay,
@@ -71137,7 +71196,7 @@ function gAe({ host: e, epoch: t }) {
n.detailAutoplay = e, r();
}
}),
- /* @__PURE__ */ (0, I.jsx)(A1, {
+ /* @__PURE__ */ (0, I.jsx)(j1, {
id: "miniplayerSetting",
title: "离开详情后小窗播放",
checked: n.miniplayer,
@@ -71145,11 +71204,11 @@ function gAe({ host: e, epoch: t }) {
n.miniplayer = t, r(), e.changed("miniplayer");
}
}),
- /* @__PURE__ */ (0, I.jsx)(j1, {
+ /* @__PURE__ */ (0, I.jsx)(M1, {
title: "快进 / 快退步长",
children: /* @__PURE__ */ (0, I.jsx)("div", {
id: "seekSecondsSetting",
- children: /* @__PURE__ */ (0, I.jsx)(h1, {
+ children: /* @__PURE__ */ (0, I.jsx)(g1, {
id: "seekSecondsSetting",
label: "快进 / 快退",
value: n.seekSeconds,
@@ -71161,25 +71220,25 @@ function gAe({ host: e, epoch: t }) {
})
] });
}
-function _Ae({ host: e, epoch: t }) {
- let n = e.store.value, r = gX();
- return /* @__PURE__ */ (0, I.jsx)(j1, {
+function yAe({ host: e, epoch: t }) {
+ let n = e.store.value, r = vX();
+ return /* @__PURE__ */ (0, I.jsx)(M1, {
title: "搜索记录数量",
children: /* @__PURE__ */ (0, I.jsx)("div", {
id: "searchHistoryLimitSetting",
- children: /* @__PURE__ */ (0, I.jsx)(h1, {
+ children: /* @__PURE__ */ (0, I.jsx)(g1, {
id: "searchHistoryLimitSetting",
label: "搜索记录",
value: n.searchHistoryLimit,
onApply: (t) => {
- n.searchHistoryLimit = Nj(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
+ n.searchHistoryLimit = Fj(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
}
}, t)
})
});
}
// src/react/sidebar/use-sidebar-reorder.ts
-function vAe(e, t, n, r) {
+function bAe(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,
@@ -71214,7 +71273,7 @@ function vAe(e, t, n, r) {
let m = (t) => {
let n = c.current;
if (!n || (c.current = null, !n.started)) return;
- let r = d.current.picked, i = n.keys.filter((e) => e !== n.key), o = t ? r.slot : null, l = o === null || o === r.origin ? null : _1(d.current.order, n.key, i[Math.min(o, i.length - 1)], o === i.length);
+ let r = d.current.picked, i = n.keys.filter((e) => e !== n.key), o = t ? r.slot : null, l = o === null || o === r.origin ? null : v1(d.current.order, n.key, i[Math.min(o, i.length - 1)], o === i.length);
p(), e.current.style.minHeight = n.minHeight, document.body.style.cursor = n.cursor, n.node.style.removeProperty("--sidebar-drag-x"), n.node.style.removeProperty("--sidebar-drag-y"), u.current = !0, (0, Lt.flushSync)(() => {
a(null), l && d.current.commit(l), s(l ? `${n.node.ariaLabel},已移动到第 ${o + 1} 项` : t && o === r.origin ? "顺序未变" : "已取消排序");
}), d.current.settled();
@@ -71276,7 +71335,7 @@ function vAe(e, t, n, r) {
e.preventDefault();
let a = f().map((e) => e.dataset.nav), o = a.indexOf(i), c = e.key === "ArrowDown", l = a[o + (c ? 1 : -1)];
if (l === void 0) return;
- let u = _1(t, i, l, c);
+ let u = v1(t, i, l, c);
u && (p(), (0, Lt.flushSync)(() => n(u)), s(`${e.currentTarget.ariaLabel},已移动到第 ${o + (c ? 2 : 0)} 项`), r());
}, v = i ? f().filter((e) => e.dataset.nav !== i.key) : [], y = !!i && i.slot !== null && i.slot !== i.origin;
return {
@@ -71315,68 +71374,68 @@ function vAe(e, t, n, r) {
};
}
// src/react/sidebar/sidebar-island.tsx
-var M1 = "__home__", yAe = {
+var N1 = "__home__", xAe = {
creator: 26,
tag: 30,
tech: 16
-}, N1 = 180, P1 = null, F1 = {
+}, P1 = 180, F1 = null, I1 = {
props: {
content: null,
filters: {},
latest: null
},
epoch: 0
-}, I1 = /* @__PURE__ */ new Set();
-function bAe(e) {
- return I1.add(e), () => {
- I1.delete(e);
+}, L1 = /* @__PURE__ */ new Set();
+function SAe(e) {
+ return L1.add(e), () => {
+ L1.delete(e);
};
}
-function L1() {
- for (let e of [...I1]) e();
+function R1() {
+ for (let e of [...L1]) e();
}
-var xAe = {
+var CAe = {
render(e) {
- F1 = {
- ...F1,
+ I1 = {
+ ...I1,
props: e
- }, (0, Lt.flushSync)(L1);
+ }, (0, Lt.flushSync)(R1);
},
navChanged() {
- F1 = {
- ...F1,
- epoch: F1.epoch + 1
- }, (0, Lt.flushSync)(L1);
+ I1 = {
+ ...I1,
+ epoch: I1.epoch + 1
+ }, (0, Lt.flushSync)(R1);
}
};
-function SAe(e) {
- return P1 = e, F1 = {
- ...F1,
+function wAe(e) {
+ return F1 = e, I1 = {
+ ...I1,
props: {
content: null,
filters: {},
latest: null
}
- }, xAe;
+ }, CAe;
}
-function CAe() {
- let e = (0, F.useSyncExternalStore)(bAe, () => F1);
- return P1 ? /* @__PURE__ */ (0, I.jsx)(wAe, {
- host: P1,
+function TAe() {
+ let e = (0, F.useSyncExternalStore)(SAe, () => I1);
+ return F1 ? /* @__PURE__ */ (0, I.jsx)(EAe, {
+ host: F1,
props: e.props,
epoch: e.epoch
}) : null;
}
-function wAe({ host: e, props: t, epoch: n }) {
+function EAe({ 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)(TAe, {
+ /* @__PURE__ */ (0, I.jsx)(DAe, {
host: e,
epoch: n,
version: r
}),
- t.content ? /* @__PURE__ */ (0, I.jsx)(DAe, {
+ t.content ? /* @__PURE__ */ (0, I.jsx)(kAe, {
host: e,
content: t.content,
filters: t.filters,
@@ -71384,8 +71443,8 @@ function wAe({ host: e, props: t, epoch: n }) {
}) : null
] });
}
-function TAe({ host: e, epoch: t, version: n }) {
- let r = g1(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 = AL(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || M1 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
+function DAe({ host: e, epoch: t, version: n }) {
+ let r = _1(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 = ML(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || N1 : "").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());
[
@@ -71404,7 +71463,7 @@ function TAe({ host: e, epoch: t, version: n }) {
i.disconnect(), cancelAnimationFrame(a), document.removeEventListener("board:sidebar", o);
};
}, [e, d]);
- let f = vAe(c, i, r, () => requestAnimationFrame(d)), p = e.scroll.parentElement;
+ let f = bAe(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,
@@ -71440,8 +71499,8 @@ function TAe({ host: e, epoch: t, version: n }) {
alt: "",
decoding: "async",
draggable: !1
- }) : /* @__PURE__ */ (0, I.jsx)(qF, { name: r }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
- }, t || M1);
+ }) : /* @__PURE__ */ (0, I.jsx)(YF, { name: r }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
+ }, t || N1);
}),
f.hint ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-sidebar-drop-line": "",
@@ -71462,8 +71521,8 @@ function TAe({ host: e, epoch: t, version: n }) {
ref: l
}), p) : null] });
}
-var R1 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
-function EAe(e) {
+var z1 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
+function OAe(e) {
if (!e) return null;
let t = /* @__PURE__ */ new Map(), n = [
["loc", e.locations],
@@ -71477,7 +71536,7 @@ function EAe(e) {
for (let [e, r] of n) for (let n of r) t.set(`${e}\n${n.value}`, n.n ?? 0);
return t;
}
-function DAe({ host: e, content: t, filters: n, latest: r }) {
+function kAe({ 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");
@@ -71486,8 +71545,8 @@ function DAe({ host: e, content: t, filters: n, latest: r }) {
i,
t.kind
]);
- let a = t.kind === "catalog" ? OAe(e, t.facets, n, r, i) : kAe(e, t, n), o = 0;
- return a.map((e) => e && /* @__PURE__ */ (0, I.jsx)(AAe, {
+ let a = t.kind === "catalog" ? AAe(e, t.facets, n, r, i) : jAe(e, t, n), o = 0;
+ return a.map((e) => e && /* @__PURE__ */ (0, I.jsx)(MAe, {
title: e.title,
kind: e.kind,
active: e.active,
@@ -71496,11 +71555,11 @@ function DAe({ host: e, content: t, filters: n, latest: r }) {
children: e.body
}, e.title));
}
-function OAe(e, t, n, r, i) {
- let a = EAe(r), o = (t, r, i) => {
+function AAe(e, t, n, r, i) {
+ let a = OAe(r), o = (t, r, i) => {
if (!t.length) return null;
- let o = R1(n, r);
- return /* @__PURE__ */ (0, I.jsx)(V1, {
+ let o = z1(n, r);
+ return /* @__PURE__ */ (0, I.jsx)(H1, {
rows: t,
filterKey: r,
multi: i,
@@ -71510,7 +71569,7 @@ function OAe(e, t, n, r, i) {
});
}, s = (t, s, c, l, u, d) => {
if (!c.length) return null;
- let f = R1(n, l), p = c.some((e) => f.includes(e.value));
+ let f = z1(n, l), p = c.some((e) => f.includes(e.value));
if (!d) return {
title: t,
kind: s,
@@ -71522,12 +71581,12 @@ function OAe(e, t, n, r, i) {
title: t,
kind: s,
active: p,
- body: /* @__PURE__ */ (0, I.jsx)(MAe, {
+ body: /* @__PURE__ */ (0, I.jsx)(PAe, {
epoch: i,
title: t,
rows: c,
latest: m ?? null,
- limit: yAe[d],
+ limit: xAe[d],
filterKey: l,
selected: f,
counts: a,
@@ -71542,7 +71601,7 @@ function OAe(e, t, n, r, i) {
title: "时长",
kind: "meta",
active: !1,
- body: /* @__PURE__ */ (0, I.jsx)(W1, {
+ body: /* @__PURE__ */ (0, I.jsx)(G1, {
host: e,
filters: n
})
@@ -71557,7 +71616,7 @@ function OAe(e, t, n, r, i) {
title: "关注标签",
kind: "online",
active: !1,
- body: /* @__PURE__ */ (0, I.jsx)(H1, {
+ body: /* @__PURE__ */ (0, I.jsx)(U1, {
rows: t.followTags,
host: e,
selected: null,
@@ -71566,14 +71625,14 @@ function OAe(e, t, n, r, i) {
} : null
];
}
-function kAe(e, t, n) {
- let r = t.providers || [], i = R1(n, "provider"), a = new Set(t.selected);
+function jAe(e, t, n) {
+ let r = t.providers || [], i = z1(n, "provider"), a = new Set(t.selected);
return [
r.length ? {
title: "来源",
kind: "src",
active: r.some((e) => i.includes(e.value)),
- body: /* @__PURE__ */ (0, I.jsx)(V1, {
+ body: /* @__PURE__ */ (0, I.jsx)(H1, {
rows: r,
filterKey: "provider",
multi: !1,
@@ -71587,7 +71646,7 @@ function kAe(e, t, n) {
title: "时长",
kind: "meta",
active: !1,
- body: /* @__PURE__ */ (0, I.jsx)(W1, {
+ body: /* @__PURE__ */ (0, I.jsx)(G1, {
host: e,
filters: n,
commit: e.setFollowDuration
@@ -71597,7 +71656,7 @@ function kAe(e, t, n) {
title: "内容标签",
kind: "online",
active: t.tags.some((e) => a.has(e.value)),
- body: /* @__PURE__ */ (0, I.jsx)(H1, {
+ body: /* @__PURE__ */ (0, I.jsx)(U1, {
rows: t.tags,
host: e,
selected: a,
@@ -71606,19 +71665,19 @@ function kAe(e, t, n) {
} : null
];
}
-function z1(e, t) {
+function B1(e, t) {
let n = null;
try {
n = sessionStorage.getItem(`peach.sidebar.group.${e}`);
} catch {}
return n === null ? t : n === "open";
}
-function AAe({ 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)(() => z1(e, n)), u = (0, F.useRef)(!1);
+function MAe({ 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)(() => B1(e, n)), u = (0, F.useRef)(!1);
(0, F.useLayoutEffect)(() => {
let t = o.current, r = s.current;
if (!t || !r) return;
- let i = u.current ? z1(e, n) : c;
+ let i = u.current ? B1(e, n) : c;
u.current = !0, t.open !== i && (t.open = i, r.inert = !i, r.style.height = "", r.classList.contains("ui-fcollapse") && r.classList.toggle("ui-fcollapse-settled", i), l(i));
}, [i]);
let d = (t) => {
@@ -71639,7 +71698,7 @@ function AAe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
"aria-expanded": c,
"aria-controls": f,
onClick: d,
- children: [/* @__PURE__ */ (0, I.jsx)(qF, { name: "chevron-right" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, I.jsx)(YF, { name: "chevron-right" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e })]
}), /* @__PURE__ */ (0, I.jsx)("div", {
ref: s,
"data-sidebar-collapse": "",
@@ -71650,7 +71709,7 @@ function AAe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
children: /* @__PURE__ */ (0, I.jsx)("div", {
"data-sidebar-body": "",
id: `sidebar-group-${encodeURIComponent(e)}`,
- children: /* @__PURE__ */ (0, I.jsx)(B1.Provider, {
+ children: /* @__PURE__ */ (0, I.jsx)(V1.Provider, {
value: d,
children: a
})
@@ -71659,15 +71718,15 @@ function AAe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
})]
});
}
-var B1 = (0, F.createContext)(() => {});
-function jAe({ dot: e }) {
- return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, I.jsx)(qF, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, I.jsx)("img", {
+var V1 = (0, F.createContext)(() => {});
+function NAe({ dot: e }) {
+ return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, I.jsx)(YF, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, I.jsx)("img", {
"data-sidebar-source-icon": "",
src: e.src,
alt: ""
}) : /* @__PURE__ */ (0, I.jsx)("i", { "data-sidebar-cost": e.cost }) : null;
}
-function V1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a, onToggle: o = a.toggleChip }) {
+function H1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a, onToggle: o = a.toggleChip }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-sidebar-chips": "",
children: e.map((e) => {
@@ -71684,7 +71743,7 @@ function V1({ 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)(jAe, { dot: e.dot }),
+ /* @__PURE__ */ (0, I.jsx)(NAe, { dot: e.dot }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-sidebar-chip-label": "",
children: e.label
@@ -71699,8 +71758,8 @@ function V1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a,
})
});
}
-function MAe({ 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)(B1), [d, f] = (0, F.useState)(null), [p, m] = (0, F.useState)(e);
+function PAe({ 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)(V1), [d, f] = (0, F.useState)(null), [p, m] = (0, F.useState)(e);
p !== e && (m(e), f(null));
let h = (0, F.useRef)(null), g = (0, F.useRef)(null), _ = !!d?.all, v = d ? d.rows : n;
return (0, F.useLayoutEffect)(() => {
@@ -71715,7 +71774,7 @@ function MAe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
e.body.classList.add("ui-fcollapse"), Uo(e.body, e.before, () => !!t?.open && !e.body.inert);
}
t(), requestAnimationFrame(t);
- }, [d, _]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(V1, {
+ }, [d, _]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(H1, {
rows: _ ? v : v.slice(0, i),
filterKey: a,
multi: !1,
@@ -71740,10 +71799,10 @@ function MAe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
all: !_
}), _ && u());
},
- children: /* @__PURE__ */ (0, I.jsx)(qF, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, I.jsx)(YF, { name: "chevron-down" })
}) : null] });
}
-function H1({ rows: e, host: t, selected: n, badges: r }) {
+function U1({ rows: e, host: t, selected: n, badges: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-sidebar-chips": "",
children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)("button", {
@@ -71765,10 +71824,10 @@ function H1({ rows: e, host: t, selected: n, badges: r }) {
}, e.value))
});
}
-var U1 = (e, t) => e ? Math.min(N1, Number(e) / 60) : t;
-function W1({ host: e, filters: t, commit: n = e.setDuration }) {
- let r = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [i, a] = (0, F.useState)(r), [o, s] = (0, F.useState)(() => [U1(t.dur_min, 0), U1(t.dur_max, N1)]), [c, l] = (0, F.useState)("max");
- i !== r && (a(r), s([U1(t.dur_min, 0), U1(t.dur_max, N1)]));
+var W1 = (e, t) => e ? Math.min(P1, Number(e) / 60) : t;
+function G1({ host: e, filters: t, commit: n = e.setDuration }) {
+ let r = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [i, a] = (0, F.useState)(r), [o, s] = (0, F.useState)(() => [W1(t.dur_min, 0), W1(t.dur_max, P1)]), [c, l] = (0, F.useState)("max");
+ i !== r && (a(r), s([W1(t.dur_min, 0), W1(t.dur_max, P1)]));
let [u, d] = o, f = (0, F.useRef)(null), p = (0, F.useRef)(null), m = (0, F.useRef)(null), h = (0, F.useRef)(o);
h.current = o;
let g = (e, t) => {
@@ -71781,11 +71840,11 @@ function W1({ host: e, filters: t, commit: n = e.setDuration }) {
}, [n]), (0, F.useLayoutEffect)(() => {
let e = f.current;
if (!e) return;
- e.style.setProperty("--lo", `${u / N1 * 100}%`), e.style.setProperty("--hi", `${d / N1 * 100}%`);
+ e.style.setProperty("--lo", `${u / P1 * 100}%`), e.style.setProperty("--hi", `${d / P1 * 100}%`);
let t = e.getBoundingClientRect();
e.querySelectorAll("[data-sidebar-range-tip]").forEach((e) => {
let n = e.dataset.rangeEnd === "max" ? d : u;
- e.style.left = `${n / N1 * 100}%`, e.style.setProperty("--range-tip-shift", "0px");
+ e.style.left = `${n / P1 * 100}%`, e.style.setProperty("--range-tip-shift", "0px");
let r = e.getBoundingClientRect(), i = r.right > t.right ? t.right - r.right : r.left < t.left ? t.left - r.left : 0;
i && e.style.setProperty("--range-tip-shift", `${Math.round(i)}px`);
});
@@ -71795,7 +71854,7 @@ function W1({ host: e, filters: t, commit: n = e.setDuration }) {
"data-range-end": e,
"data-range-active": c === e ? "" : void 0,
"aria-hidden": "true",
- children: e === "max" && t >= N1 ? "不限" : `${t} 分钟`
+ children: e === "max" && t >= P1 ? "不限" : `${t} 分钟`
});
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-sidebar-duration": "",
@@ -71810,7 +71869,7 @@ function W1({ host: e, filters: t, commit: n = e.setDuration }) {
id: "durMin",
type: "range",
min: "0",
- max: N1,
+ max: P1,
step: "5",
value: u,
"aria-label": "最短时长(分钟)",
@@ -71821,7 +71880,7 @@ function W1({ host: e, filters: t, commit: n = e.setDuration }) {
id: "durMax",
type: "range",
min: "0",
- max: N1,
+ max: P1,
step: "5",
value: d,
"aria-label": "最长时长(分钟)",
@@ -71835,7 +71894,7 @@ function W1({ host: e, filters: t, commit: n = e.setDuration }) {
});
}
// src/diagnostics-skeleton.ts
-function G1() {
+function K1() {
let e = (e) => Ds({
label: e,
variant: "secondary",
@@ -71849,11 +71908,11 @@ function G1() {
</div></div>`;
}
// src/react/settings/library-policy-copy.ts
-var K1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式只决定要不要联网补全。", NAe = [
+var q1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式只决定要不要联网补全。", FAe = [
"自动补全",
"仅使用本地资料",
"自定义"
-], PAe = [
+], IAe = [
[
"读本地 NFO 和图片",
"✓",
@@ -71884,7 +71943,7 @@ var K1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式
"—",
"可选"
]
-], FAe = "本地只有竖版海报时:自动补全会联网找完整封套(FC2 商品图除外),仅使用本地资料直接用竖版。", q1 = "一个媒体库可以有多个文件夹,作品合在一起显示,共用名称、颜色和处理方式;要分开显示或分开设置时再添加媒体库。", J1 = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", Y1 = "只填域名,留空用默认地址", IAe = [
+], LAe = "本地只有竖版海报时:自动补全会联网找完整封套(FC2 商品图除外),仅使用本地资料直接用竖版。", J1 = "一个媒体库可以有多个文件夹,作品合在一起显示,共用名称、颜色和处理方式;要分开显示或分开设置时再添加媒体库。", Y1 = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", X1 = "只填域名,留空用默认地址", RAe = [
{
provider: "coomer",
label: "Coomer",
@@ -71974,8 +72033,8 @@ var K1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式
label: "SubscribeStar",
requirement: "none"
}
-], X1 = "API 代理用于列目录和查询文件信息,数据代理用于读取视频及配套文件。保存后,同一网盘账号在 CloudDrive 中的其他读取也会使用此设置。", LAe = "peach.configuration.shape.v1";
-function Z1() {
+], Z1 = "API 代理用于列目录和查询文件信息,数据代理用于读取视频及配套文件。保存后,同一网盘账号在 CloudDrive 中的其他读取也会使用此设置。", zAe = "peach.configuration.shape.v1";
+function Q1() {
try {
let e = JSON.parse(localStorage.getItem("peach.configuration.shape.v1") || "{}");
return e && typeof e == "object" ? e : {};
@@ -71983,28 +72042,28 @@ function Z1() {
return {};
}
}
-function RAe(e, t) {
+function BAe(e, t) {
try {
- let n = Z1();
+ let n = Q1();
if (JSON.stringify(n[e]) === JSON.stringify(t)) return;
- localStorage.setItem(LAe, JSON.stringify({
+ localStorage.setItem(zAe, JSON.stringify({
...n,
[e]: t
}));
} catch {}
}
-var Q1 = (e) => Z1()[e], $1 = (e) => e === !0, e0 = (e, t) => Number.isInteger(e) && e > 0 ? Math.min(e, t) : 0, t0 = (e, t, n) => Array.isArray(e) ? e.slice(0, t).map(n) : [], n0 = "disabled data-skeleton-action", r0 = (e = "60%") => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, i0 = (e = "100%") => `<span class="skeleton ui-configuration-skeleton-input" style="width:${e}"></span>`, a0 = (e, t) => `<span class="skeleton shrink-0" style="width:${e};height:${t}"></span>`, o0 = (e = "3em") => a0(e, "24px"), s0 = () => a0("var(--icon-inline)", "var(--icon-inline)"), c0 = (e, t = "primary", n = "medium") => Ds({
+var $1 = (e) => Q1()[e], e0 = (e) => e === !0, t0 = (e, t) => Number.isInteger(e) && e > 0 ? Math.min(e, t) : 0, n0 = (e, t, n) => Array.isArray(e) ? e.slice(0, t).map(n) : [], r0 = "disabled data-skeleton-action", i0 = (e = "60%") => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, a0 = (e = "100%") => `<span class="skeleton ui-configuration-skeleton-input" style="width:${e}"></span>`, o0 = (e, t) => `<span class="skeleton shrink-0" style="width:${e};height:${t}"></span>`, s0 = (e = "3em") => o0(e, "24px"), c0 = () => o0("var(--icon-inline)", "var(--icon-inline)"), l0 = (e, t = "primary", n = "medium") => Ds({
label: e,
variant: t,
size: n,
- attrs: n0
-}), l0 = (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>`, u0 = (e, t = !1) => `<div class="flex flex-col gap-4 ${t ? "border-t border-separator-border " : ""}py-4 pr-3">${e}</div>`, zAe = (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">${s0()}${e}</span>` : e}</p>`;
+ attrs: r0
+}), u0 = (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>`, VAe = (e, t, n) => {
+ let r = `<p class="w-full px-3 text-body-2-medium text-text-secondary">${n ? `<span class="inline-flex items-center gap-1.5">${c0()}${e}</span>` : e}</p>`;
return t ? `<div class="flex w-full flex-wrap items-center justify-between gap-2"><div class="min-w-40 flex-1">${r}</div><div class="flex min-w-0 max-w-full">${t}</div></div>` : r;
-}, d0 = (e, t, n = "", { aside: r = "", status: i = "", mark: a = !1 } = {}) => `<section aria-label="${e}" class="flex w-full flex-col gap-2 wrap-anywhere">${zAe(e, r, a)}<div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}${n ? l0(n, i) : ""}</div></section>`, f0 = (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>`, p0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => f0(e, t, `<span class="skeleton ${n}"></span>`), m0 = (e, t = "", n = "4em") => f0(e, t, r0(n)), h0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, g0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, _0 = (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>${i0()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, v0 = (e) => `<div class="flex flex-col gap-1">${g0(e)}${ks(r0("8em"))}</div>`, y0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${a0("16px", "16px")}${e}</span>`, b0 = (e) => `<span class="inline-flex items-center gap-1">${s0()}${e}</span>`, x0 = (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>`, BAe = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), S0 = (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">${BAe.has(e) ? r0("100%") + r0("80%") + r0("6em") : r0("6em")}</dd></div>`).join("")}</dl>`, VAe = IAe;
-function HAe(e = Q1("credentials")) {
- let t = new Set(t0(e?.done, 64, String));
- return VAe.map((e) => {
+}, f0 = (e, t, n = "", { aside: r = "", status: i = "", mark: a = !1 } = {}) => `<section aria-label="${e}" class="flex w-full flex-col gap-2 wrap-anywhere">${VAe(e, r, a)}<div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}${n ? u0(n, i) : ""}</div></section>`, p0 = (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>`, m0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => p0(e, t, `<span class="skeleton ${n}"></span>`), h0 = (e, t = "", n = "4em") => p0(e, t, i0(n)), g0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, _0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, v0 = (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>${a0()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, y0 = (e) => `<div class="flex flex-col gap-1">${_0(e)}${ks(i0("8em"))}</div>`, b0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${o0("16px", "16px")}${e}</span>`, x0 = (e) => `<span class="inline-flex items-center gap-1">${c0()}${e}</span>`, S0 = (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>`, HAe = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), C0 = (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">${HAe.has(e) ? i0("100%") + i0("80%") + i0("6em") : i0("6em")}</dd></div>`).join("")}</dl>`, UAe = RAe;
+function WAe(e = $1("credentials")) {
+ let t = new Set(n0(e?.done, 64, String));
+ return UAe.map((e) => {
let n = t.has(e.provider);
return {
...e,
@@ -72013,190 +72072,160 @@ function HAe(e = Q1("credentials")) {
};
});
}
-function UAe(e) {
- let t = e.fields ?? [], n = e.requirement !== "none" && e.requirement !== "blocked", r = o0() + (n && !e.done ? t.map(() => o0("4.5em")).join("") : ""), i = `<span class="flex min-w-0 flex-wrap items-center gap-2">${a0("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 ? h0(z(e.why)) : ""}</div>`;
- let a = e.open ? "<div class=\"flex flex-col gap-2 pt-3\"><div class=\"flex flex-col gap-3\">" + h0(`${z(e.why ?? "")}${e.where ? " 获取凭据" : ""}`) + (e.howto ? h0(z(e.howto)) : "") + `<div class="flex w-full flex-col gap-3">${t.map((e) => _0(z(e))).join("")}</div><div class="flex flex-wrap items-center gap-2">${c0("保存配置")}</div>${x0("凭据文件")}</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>${x0(e.done ? "修改凭据" : "填写凭据", e.open)}${a}</div></div>`;
+function GAe(e) {
+ let t = e.fields ?? [], n = e.requirement !== "none" && e.requirement !== "blocked", r = s0() + (n && !e.done ? t.map(() => s0("4.5em")).join("") : ""), i = `<span class="flex min-w-0 flex-wrap items-center gap-2">${o0("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 ? g0(z(e.why)) : ""}</div>`;
+ let a = e.open ? "<div class=\"flex flex-col gap-2 pt-3\"><div class=\"flex flex-col gap-3\">" + g0(`${z(e.why ?? "")}${e.where ? " 获取凭据" : ""}`) + (e.howto ? g0(z(e.howto)) : "") + `<div class="flex w-full flex-col gap-3">${t.map((e) => v0(z(e))).join("")}</div><div class="flex flex-wrap items-center gap-2">${l0("保存配置")}</div>${S0("凭据文件")}</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>${S0(e.done ? "修改凭据" : "填写凭据", e.open)}${a}</div></div>`;
}
-function C0() {
- let e = HAe(), t = e.filter((e) => e.requirement === "required" && !e.done).length;
- return d0("来源凭据", u0(`<div class="flex flex-col gap-4">${[
+function w0() {
+ let e = WAe(), t = e.filter((e) => e.requirement === "required" && !e.done).length;
+ return f0("来源凭据", d0(`<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(UAe).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? r0("5em") : "" });
-}
-function w0() {
- let e = t0(Q1("indexers")?.open, 20, $1).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" : ""}`)}${r0("6em")}${r0("12em")}</span>` + (e ? `<div class="flex flex-col gap-2 pt-3"><div class="flex min-w-0 flex-col gap-4">${_0("名称")}${_0("Torznab 地址")}${_0("API key")}<div class="flex flex-wrap items-center gap-x-6 gap-y-2">${y0("启用")}${c0("移除", "secondary", "small")}</div></div></div>` : "") + "</div>").join("");
- return d0("资源搜索", u0(`<div class="flex min-w-0 flex-col gap-4">${x0("索引器连接帮助")}${e}</div>`), c0("添加索引器", "secondary") + c0("保存配置"));
+ ].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(GAe).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? i0("5em") : "" });
}
function T0() {
- let e = Q1("javBrowser"), t = $1(e?.enabled);
- return d0("浏览器添加 JAV", u0(`<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>${r0("4em")}</div><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-regular text-text-secondary">浏览器添加</span>${o0()}</div><p class="text-caption-1-regular text-text-secondary">${r0("70%")}</p><div class="flex flex-wrap items-center gap-2">${c0("重新检测", "secondary")}</div></div>`}${v0("浏览器添加的下载渠道")}${$1(e?.ready) ? "" : h0("请在媒体库中添加支持云下载的网盘,并配置账号与目标目录。")}${_0("Peach 地址")}</div>`), (t ? c0("关闭浏览器添加", "secondary") : "") + c0(t ? "更新渠道与令牌" : "启用并生成令牌"));
+ let e = n0($1("indexers")?.open, 20, e0).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" : ""}`)}${i0("6em")}${i0("12em")}</span>` + (e ? `<div class="flex flex-col gap-2 pt-3"><div class="flex min-w-0 flex-col gap-4">${v0("名称")}${v0("Torznab 地址")}${v0("API key")}<div class="flex flex-wrap items-center gap-x-6 gap-y-2">${b0("启用")}${l0("移除", "secondary", "small")}</div></div></div>` : "") + "</div>").join("");
+ return f0("资源搜索", d0(`<div class="flex min-w-0 flex-col gap-4">${S0("索引器连接帮助")}${e}</div>`), l0("添加索引器", "secondary") + l0("保存配置"));
}
-var E0 = (e, t) => `<div class="flex min-w-0 flex-col gap-3">${g0(e)}${ks(r0("6em"))}` + (t ? `<div class="flex flex-wrap gap-3"><div class="min-w-40 flex-1">${_0(`${e}地址`)}</div><div class="w-full sm:w-28">${_0(`${e}端口`)}</div></div>${x0("代理认证")}` : "") + "</div>";
-function D0() {
- let e = Q1("cloudProxy"), t = t0(e?.accounts, 12, (e) => Array.isArray(e) ? [$1(e[0]), $1(e[1])] : [!1, !1]), n = e0(e?.unlinked, 12), r = t.length || n ? Array.from({ length: n }, () => `<div class="flex min-w-0 flex-col gap-1">${g0(b0(r0("6em")))}${h0(r0("9em"))}</div>`).join("") + t.map(([e, t]) => `<div class="flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4">${g0(b0(r0("8em")))}${h0(r0("50%"))}${E0("数据代理", e)}${E0("API 代理", t)}<div class="flex justify-end">${c0("保存配置")}</div></div>`).join("") : h0(r0("60%"));
- return d0("CloudDrive 代理", u0(`${h0(X1)}<div class="flex min-w-0 flex-col gap-4">${r}</div>`), c0("重新读取", "secondary"));
+function E0() {
+ let e = $1("javBrowser"), t = e0(e?.enabled);
+ return f0("浏览器添加 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>${i0("4em")}</div><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-regular text-text-secondary">浏览器添加</span>${s0()}</div><p class="text-caption-1-regular text-text-secondary">${i0("70%")}</p><div class="flex flex-wrap items-center gap-2">${l0("重新检测", "secondary")}</div></div>`}${y0("浏览器添加的下载渠道")}${e0(e?.ready) ? "" : g0("请在媒体库中添加支持云下载的网盘,并配置账号与目标目录。")}${v0("Peach 地址")}</div>`), (t ? l0("关闭浏览器添加", "secondary") : "") + l0(t ? "更新渠道与令牌" : "启用并生成令牌"));
}
-var O0 = (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>`, WAe = (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">${i0()}</span>${Ds({
+var D0 = (e, t) => `<div class="flex min-w-0 flex-col gap-3">${_0(e)}${ks(i0("6em"))}` + (t ? `<div class="flex flex-wrap gap-3"><div class="min-w-40 flex-1">${v0(`${e}地址`)}</div><div class="w-full sm:w-28">${v0(`${e}端口`)}</div></div>${S0("代理认证")}` : "") + "</div>";
+function O0() {
+ let e = $1("cloudProxy"), t = n0(e?.accounts, 12, (e) => Array.isArray(e) ? [e0(e[0]), e0(e[1])] : [!1, !1]), n = t0(e?.unlinked, 12), r = t.length || n ? Array.from({ length: n }, () => `<div class="flex min-w-0 flex-col gap-1">${_0(x0(i0("6em")))}${g0(i0("9em"))}</div>`).join("") + t.map(([e, t]) => `<div class="flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4">${_0(x0(i0("8em")))}${g0(i0("50%"))}${D0("数据代理", e)}${D0("API 代理", t)}<div class="flex justify-end">${l0("保存配置")}</div></div>`).join("") : g0(i0("60%"));
+ return f0("CloudDrive 代理", d0(`${g0(Z1)}<div class="flex min-w-0 flex-col gap-4">${r}</div>`), l0("重新读取", "secondary"));
+}
+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>`, KAe = (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">${a0()}</span>${Ds({
glyph: "folder-search",
variant: "secondary",
- attrs: n0
+ attrs: r0
})}</div>
- <div class="flex flex-wrap items-end gap-2"><div class="flex w-full flex-wrap items-start gap-2">${O0("来源", ks(r0("6em")), "w-full @lg:w-60")}${O0("读取策略", ks(r0("4em")), "w-full @lg:w-32")}${e > 1 ? O0("移到媒体库", ks(r0("4em")), "w-full @lg:w-48") : ""}</div></div>
- </div>`, GAe = (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(i0("6em")), "w-full @lg:w-60")}${k0("读取策略", ks(i0("4em")), "w-full @lg:w-32")}${e > 1 ? k0("移到媒体库", ks(i0("4em")), "w-full @lg:w-48") : ""}</div></div>
+ </div>`, qAe = (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: n0
-})}${i0()}<span class="skeleton ui-configuration-skeleton-input" style="width:136px"></span>${ks(r0("4em"), { prefix: "处理方式" })}</div>
- <div data-library-folders>${WAe(t).repeat(e)}<div class="flex">${Ds({
+ attrs: r0
+})}${a0()}<span class="skeleton ui-configuration-skeleton-input" style="width:136px"></span>${ks(i0("4em"), { prefix: "处理方式" })}</div>
+ <div data-library-folders>${KAe(t).repeat(e)}<div class="flex">${Ds({
label: "添加文件夹",
variant: "secondary",
- attrs: n0
-})}</div></div></div>`, KAe = `<div data-policy-legend class="flex flex-col gap-1"><p class="text-body-2-regular text-text-secondary">${K1}</p><span class="flex items-center gap-1 text-body-2-medium text-text-secondary">三种处理方式对比</span></div>`, qAe = "<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 JAe(e = Q1("media")) {
- let t = t0(e?.folders, 12, (e) => e0(e, 50)).filter(Boolean);
+ attrs: r0
+})}</div></div></div>`, JAe = `<div data-policy-legend class="flex flex-col gap-1"><p class="text-body-2-regular text-text-secondary">${q1}</p><span class="flex items-center gap-1 text-body-2-medium text-text-secondary">三种处理方式对比</span></div>`, YAe = "<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 XAe(e = $1("media")) {
+ let t = n0(e?.folders, 12, (e) => t0(e, 50)).filter(Boolean);
return t.length ? {
folders: t,
- cloud: $1(e?.cloud)
+ cloud: e0(e?.cloud)
} : {
folders: [1],
cloud: !1
};
}
-function YAe() {
- let e = Q1("discovery"), t = $1(e?.enabled), n = t && $1(e?.cloud), r = n && $1(e?.webhook), i = `<div class="flex items-start gap-2"><span class="min-w-0 flex-1">${i0()}</span>${ks(r0("4em"), { prefix: "对应目录" })}${Ds({
+function ZAe() {
+ let e = $1("discovery"), t = e0(e?.enabled), n = t && e0(e?.cloud), r = n && e0(e?.webhook), i = `<div class="flex items-start gap-2"><span class="min-w-0 flex-1">${a0()}</span>${ks(i0("4em"), { prefix: "对应目录" })}${Ds({
glyph: "trash",
variant: "secondary",
- attrs: n0
+ attrs: r0
})}</div>`;
- return d0("自动发现新文件", u0(`<div class="flex flex-wrap items-center gap-2"><span class="text-body-regular text-text-secondary">本机监视</span>${o0()}</div>`) + p0("发现新文件后自动入库", t ? r0("10em") : "") + p0("监视本机文件夹", t && $1(e?.watchLocal) ? r0("12em") : "") + p0("接收 CloudDrive2 通知", "网盘目录有变化时由 CloudDrive2 推送过来。") + (n ? f0("Webhook 配置", r0("20em"), "") : "") + (r ? u0(x0("查看配置"), !0) : "") + (n ? u0(`<div class="flex flex-col gap-3">${g0("云端路径前缀")}<div class="flex flex-col gap-3">${i.repeat(e0(e?.prefixes, 20))}</div><div>${c0("添加前缀", "secondary")}</div></div>`, !0) : ""), (r ? c0("更换密钥", "secondary") : "") + c0("保存配置"));
-}
-var XAe = () => {
- let e = JAe();
- return d0("媒体库与目录", u0(`${KAe}<div class="flex flex-col gap-4">${e.folders.map((t) => GAe(t, e.folders.length)).join("")}</div>
- <div class="self-start">${c0("添加媒体库", "secondary")}</div>
- <p class="text-body-2-regular text-text-secondary">${q1}</p>
- ${e.cloud ? qAe : ""}<span class="text-body-medium text-text-primary">${r0("15em")}</span>`), c0("保存配置"), { status: "保存后 Peach 会重新启动。" }) + (e.cloud ? D0() : "") + YAe() + d0("番号识别规则", u0(`${r0("90%")}${r0("60%")}<span class="skeleton ui-configuration-skeleton-input" style="width:100%;height:88px"></span>`), c0("保存配置")) + d0("视频预览", p0("生成视频预览", "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。") + p0("时间轴预览", "按所选间隔抽帧,仅处理本机磁盘上的视频。", "ui-configuration-skeleton-select") + p0("抽帧解码方式", "用于生成封面、九宫格和时间轴。", "ui-configuration-skeleton-select"));
-}, ZAe = () => `<div>${c0("采集来源与登录状态", "secondary")}</div>` + C0() + d0("关注采集", f0("自动检查更新", "", "<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("订阅源拉取") + p0("首次采集范围", "新关注的来源第一次回看多久以前的内容。", "ui-configuration-skeleton-select") + m0("头像刷新", "重新获取关注创作者的头像。") + m0("favicon 刷新", "重新获取来源站点的图标。")) + w0() + d0("作品资料站点", u0(`<p class="text-body-2-regular text-text-secondary">${J1}</p>${_0(b0("JavDB 地址"), Y1)}${_0(b0("MISSAV 地址"), Y1)}`), c0("保存配置")), QAe = () => {
- let e = Q1("downloads"), t = $1(e?.pikpak), n = $1(e?.pikpakRoots) ? v0(b0("PikPak 根目录对应的媒体目录")) : `<div class="flex flex-col gap-1">${g0(b0("PikPak 根目录对应的媒体目录"))}${h0("先在「媒体库与入库」添加 PikPak 挂载文件夹。")}</div>`, r = $1(e?.cloud) ? d0("云下载", u0(_0("CloudDrive2 地址") + _0("CloudDrive2 API 令牌", "需要离线任务权限。") + ($1(e?.has115) ? _0(b0("115 目标目录"), "应位于自动入库的云端路径前缀内。") : "") + (t ? _0(b0("PikPak 目标目录"), "目录要已经存在。") + n : "") + _0("等待上限(小时)", r0("14em"))), c0("检查连接", "secondary") + c0("保存配置")) : "", i = $1(e?.pikpakLoggedIn);
- return r + (t ? d0("PikPak 账号", i ? S0(["账号", r0("4em")]) : u0(_0("账号") + _0("密码") + y0("保存密码,登录过期时自动重新登录")), i ? c0("登出", "secondary") : ($1(e?.browserLogin) ? c0("用浏览器登录", "secondary") : "") + c0("登录"), {
- aside: o0(),
+ return f0("自动发现新文件", d0(`<div class="flex flex-wrap items-center gap-2"><span class="text-body-regular text-text-secondary">本机监视</span>${s0()}</div>`) + m0("发现新文件后自动入库", t ? i0("10em") : "") + m0("监视本机文件夹", t && e0(e?.watchLocal) ? i0("12em") : "") + m0("接收 CloudDrive2 通知", "网盘目录有变化时由 CloudDrive2 推送过来。") + (n ? p0("Webhook 配置", i0("20em"), "") : "") + (r ? d0(S0("查看配置"), !0) : "") + (n ? d0(`<div class="flex flex-col gap-3">${_0("云端路径前缀")}<div class="flex flex-col gap-3">${i.repeat(t0(e?.prefixes, 20))}</div><div>${l0("添加前缀", "secondary")}</div></div>`, !0) : ""), (r ? l0("更换密钥", "secondary") : "") + l0("保存配置"));
+}
+var QAe = () => {
+ let e = XAe();
+ return f0("媒体库与目录", d0(`${JAe}<div class="flex flex-col gap-4">${e.folders.map((t) => qAe(t, e.folders.length)).join("")}</div>
+ <div class="self-start">${l0("添加媒体库", "secondary")}</div>
+ <p class="text-body-2-regular text-text-secondary">${J1}</p>
+ ${e.cloud ? YAe : ""}<span class="text-body-medium text-text-primary">${i0("15em")}</span>`), l0("保存配置"), { status: "保存后 Peach 会重新启动。" }) + (e.cloud ? O0() : "") + ZAe() + f0("番号识别规则", d0(`${i0("90%")}${i0("60%")}<span class="skeleton ui-configuration-skeleton-input" style="width:100%;height:88px"></span>`), l0("保存配置")) + f0("视频预览", m0("生成视频预览", "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。") + m0("时间轴预览", "按所选间隔抽帧,仅处理本机磁盘上的视频。", "ui-configuration-skeleton-select") + m0("抽帧解码方式", "用于生成封面、九宫格和时间轴。", "ui-configuration-skeleton-select"));
+}, $Ae = () => `<div>${l0("采集来源与登录状态", "secondary")}</div>` + w0() + f0("关注采集", p0("自动检查更新", "", "<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>") + h0("订阅源拉取") + m0("首次采集范围", "新关注的来源第一次回看多久以前的内容。", "ui-configuration-skeleton-select") + h0("头像刷新", "重新获取关注创作者的头像。") + h0("favicon 刷新", "重新获取来源站点的图标。")) + T0() + f0("作品资料站点", d0(`<p class="text-body-2-regular text-text-secondary">${Y1}</p>${v0(x0("JavDB 地址"), X1)}${v0(x0("MISSAV 地址"), X1)}`), l0("保存配置")), eje = () => {
+ let e = $1("downloads"), t = e0(e?.pikpak), n = e0(e?.pikpakRoots) ? y0(x0("PikPak 根目录对应的媒体目录")) : `<div class="flex flex-col gap-1">${_0(x0("PikPak 根目录对应的媒体目录"))}${g0("先在「媒体库与入库」添加 PikPak 挂载文件夹。")}</div>`, r = e0(e?.cloud) ? f0("云下载", d0(v0("CloudDrive2 地址") + v0("CloudDrive2 API 令牌", "需要离线任务权限。") + (e0(e?.has115) ? v0(x0("115 目标目录"), "应位于自动入库的云端路径前缀内。") : "") + (t ? v0(x0("PikPak 目标目录"), "目录要已经存在。") + n : "") + v0("等待上限(小时)", i0("14em"))), l0("检查连接", "secondary") + l0("保存配置")) : "", i = e0(e?.pikpakLoggedIn);
+ return r + (t ? f0("PikPak 账号", i ? C0(["账号", i0("4em")]) : d0(v0("账号") + v0("密码") + b0("保存密码,登录过期时自动重新登录")), i ? l0("登出", "secondary") : (e0(e?.browserLogin) ? l0("用浏览器登录", "secondary") : "") + l0("登录"), {
+ aside: s0(),
mark: !0
- }) : "") + T0();
-}, k0 = {
+ }) : "") + E0();
+}, A0 = {
legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",
locked: "访问设置无法读取,请在本机检查配置文件。",
password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"
-}, A0 = {
+}, j0 = {
quick: "临时预览用,地址随机,重启后会变。启动前要先设置访问密码。",
named: "使用你在 Cloudflare 绑定的固定域名。启动前要先设置访问密码。"
};
-function $Ae(e) {
- let t = e === "locked" ? "" : _0(e === "password" ? "新访问密码 *" : "设置访问密码 *", "至少 8 个字符。保存后其他设备需要重新登录。") + _0(e === "password" ? "确认新访问密码 *" : "确认访问密码 *");
- return (k0[e] ? h0(k0[e]) : "") + (e === "open" ? a0("100%", "64px") : "") + (e === "password" || e === "legacy" ? y0("关闭访问密码") : "") + (e === "password" ? _0("当前访问密码 *") : "") + t;
+function tje(e) {
+ let t = e === "locked" ? "" : v0(e === "password" ? "新访问密码 *" : "设置访问密码 *", "至少 8 个字符。保存后其他设备需要重新登录。") + v0(e === "password" ? "确认新访问密码 *" : "确认访问密码 *");
+ return (A0[e] ? g0(A0[e]) : "") + (e === "open" ? o0("100%", "64px") : "") + (e === "password" || e === "legacy" ? b0("关闭访问密码") : "") + (e === "password" ? v0("当前访问密码 *") : "") + t;
}
-var eje = () => {
- let e = Q1("network"), t = typeof e?.access == "string" && e.access ? e.access : "legacy", n = $1(e?.tunnelNamed), r = (n && $1(e?.tunnelNamedMode) ? h0(A0.named) + _0("公开主机名", "Cloudflare Zero Trust 里指向这台电脑的主机名。") + _0("隧道令牌", r0("16em")) : h0(A0.quick)) + ($1(e?.tunnelNote) ? a0("100%", "64px") : ""), i = e0(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">${_0([
+var nje = () => {
+ let e = $1("network"), t = typeof e?.access == "string" && e.access ? e.access : "legacy", n = e0(e?.tunnelNamed), r = (n && e0(e?.tunnelNamedMode) ? g0(j0.named) + v0("公开主机名", "Cloudflare Zero Trust 里指向这台电脑的主机名。") + v0("隧道令牌", i0("16em")) : g0(j0.quick)) + (e0(e?.tunnelNote) ? o0("100%", "64px") : ""), i = t0(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">${v0([
"本机地址",
"手机连接地址",
"备用 IP 地址"
- ][t])}</div>${c0("复制地址", "secondary")}</div>`).join("");
- return (i || $1(e?.port) ? d0("访问地址", u0(a + (i ? a0("100%", "40px") : "") + ($1(e?.networkEditable) ? `<div class="flex flex-col gap-1.5">${g0("谁可以访问")}${a0("min(100%, 20em)", "36px")}</div>` + ($1(e?.lan) ? _0("局域网访问地址") : "") : "") + ($1(e?.port) ? _0("端口") : "")), $1(e?.port) ? c0("保存配置") : "", $1(e?.port) ? { status: "保存后 Peach 会重启,并跳转到新地址。" } : {}) : "") + d0("访问密码", u0($Ae(t)), t === "locked" ? "" : c0("保存配置")) + d0("Cloudflare 公网入口", u0((n ? a0("10.5em", "36px") : "") + r), c0("启动公网入口", n ? "secondary" : "primary") + (n ? c0("保存配置") : ""), { aside: o0() }) + d0("Peach 代理", p0("连接方式", "Peach 访问外网和采集来源时使用。", "ui-configuration-skeleton-select") + ($1(e?.proxyAddress) ? u0(_0("代理地址"), !0) : ""), c0("保存配置"));
-}, tje = [
+ ][t])}</div>${l0("复制地址", "secondary")}</div>`).join("");
+ return (i || e0(e?.port) ? f0("访问地址", d0(a + (i ? o0("100%", "40px") : "") + (e0(e?.networkEditable) ? `<div class="flex flex-col gap-1.5">${_0("谁可以访问")}${o0("min(100%, 20em)", "36px")}</div>` + (e0(e?.lan) ? v0("局域网访问地址") : "") : "") + (e0(e?.port) ? v0("端口") : "")), e0(e?.port) ? l0("保存配置") : "", e0(e?.port) ? { status: "保存后 Peach 会重启,并跳转到新地址。" } : {}) : "") + f0("访问密码", d0(tje(t)), t === "locked" ? "" : l0("保存配置")) + f0("Cloudflare 公网入口", d0((n ? o0("10.5em", "36px") : "") + r), l0("启动公网入口", n ? "secondary" : "primary") + (n ? l0("保存配置") : ""), { aside: s0() }) + f0("Peach 代理", m0("连接方式", "Peach 访问外网和采集来源时使用。", "ui-configuration-skeleton-select") + (e0(e?.proxyAddress) ? d0(v0("代理地址"), !0) : ""), l0("保存配置"));
+}, rje = [
"版本",
"操作系统",
"数据目录",
"设置文件",
"日志目录"
-], nje = () => {
- let e = Q1("maintenance"), t = [
+], ije = () => {
+ let e = $1("maintenance"), t = [
"当前版本",
"安装方式",
"更新通道",
"最新版本",
"下载内容"
- ].slice(0, Math.max(4, e0(e?.releaseFacts, 5))), n = e0(e?.releaseNotes, 4), r = e0(e?.storageRows, 12), i = e0(e?.storageNotes, 3), a = t0(e?.facts, 12, (e) => z(String(e))), o = `<span class="self-start">${o0("6em")}</span>`, s = (t) => !e || $1(t), c = s(e?.reporting) ? p0("发送版本统计与错误诊断(推荐)", "上传版本、系统信息、故障类型、代码位置与发生次数。") + ($1(e?.reportingIdle) ? u0(o, !0) : "") : "", l = s(e?.sharing) ? `<div class="border-t border-separator-border">${p0("上传馆藏与口味明细", $1(e?.sharingNotice) ? r0("12em") : "")}${$1(e?.sharingIdle) ? u0(o, !0) : ""}${l0(c0("预览上传内容", "secondary"))}</div>` : "";
- return d0("检查更新", S0(t) + (n ? u0(h0(r0("50%")).repeat(n), !0) : ""), c0("检查更新"), {
- aside: o0("4em"),
- status: r0("5em")
- }) + d0("自动更新", p0("自动检查新版本") + p0("自动下载更新", "发现新版本后先下载,重启安装前会询问。") + p0("检查频率", $1(e?.autoUpdateHelp) ? r0("12em") : "", "ui-configuration-skeleton-select"), c0("保存配置")) + d0("开机自启", p0("开机后启动 Peach") + p0("只启动托盘,不打开网页", "开机后在后台运行,需要时从托盘打开页面。") + p0("在桌面创建快捷方式", $1(e?.desktopNote) ? r0("12em") : "") + ($1(e?.startupNote) ? u0(h0(r0("60%")), !0) : ""), c0("保存配置")) + d0("视频播放", p0("转码方式", "用于播放时的视频转码。", "ui-configuration-skeleton-select")) + d0("存储空间", S0(["数据目录", "所在磁盘"]) + (r ? Array.from({ length: r }, () => f0(r0("6em"), "", r0("4em"))).join("") : u0(h0("统计后显示各类数据的占用,并可清理缓存与旧备份。"), !0)) + (i ? u0(h0(r0("80%")).repeat(i), !0) : ""), c0("更改位置", "secondary") + c0(r ? "重新统计" : "统计占用")) + (c || l ? d0("数据上传", c + l) : "") + d0("运行信息", S0(a.length ? a : tje)) + `<section aria-label="新手教程" class="w-full"><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${f0("新手教程", "在所有设备上恢复右上角教程入口,保留已读进度", c0("重新打开", "secondary"))}</div></section>` + (s(e?.uninstall) ? d0("卸载 Peach", ($1(e?.uninstallHelp) ? u0(h0("卸载移除 Peach 程序本身,原始媒体文件保留。")) : "") + p0("完全卸载", "同时删除设置、本地数据库、观看记录、凭据和缓存") + u0(x0("数据目录"), !0), c0("卸载 Peach"), { status: r0("16em") }) : "");
+ ].slice(0, Math.max(4, t0(e?.releaseFacts, 5))), n = t0(e?.releaseNotes, 4), r = t0(e?.storageRows, 12), i = t0(e?.storageNotes, 3), a = n0(e?.facts, 12, (e) => z(String(e))), o = `<span class="self-start">${s0("6em")}</span>`, s = (t) => !e || e0(t), c = s(e?.reporting) ? m0("发送版本统计与错误诊断(推荐)", "上传版本、系统信息、故障类型、代码位置与发生次数。") + (e0(e?.reportingIdle) ? d0(o, !0) : "") : "", l = s(e?.sharing) ? `<div class="border-t border-separator-border">${m0("上传馆藏与口味明细", e0(e?.sharingNotice) ? i0("12em") : "")}${e0(e?.sharingIdle) ? d0(o, !0) : ""}${u0(l0("预览上传内容", "secondary"))}</div>` : "";
+ return f0("检查更新", C0(t) + (n ? d0(g0(i0("50%")).repeat(n), !0) : ""), l0("检查更新"), {
+ aside: s0("4em"),
+ status: i0("5em")
+ }) + f0("自动更新", m0("自动检查新版本") + m0("自动下载更新", "发现新版本后先下载,重启安装前会询问。") + m0("检查频率", e0(e?.autoUpdateHelp) ? i0("12em") : "", "ui-configuration-skeleton-select"), l0("保存配置")) + f0("开机自启", m0("开机后启动 Peach") + m0("只启动托盘,不打开网页", "开机后在后台运行,需要时从托盘打开页面。") + m0("在桌面创建快捷方式", e0(e?.desktopNote) ? i0("12em") : "") + (e0(e?.startupNote) ? d0(g0(i0("60%")), !0) : ""), l0("保存配置")) + f0("视频播放", m0("转码方式", "用于播放时的视频转码。", "ui-configuration-skeleton-select")) + f0("存储空间", C0(["数据目录", "所在磁盘"]) + (r ? Array.from({ length: r }, () => p0(i0("6em"), "", i0("4em"))).join("") : d0(g0("统计后显示各类数据的占用,并可清理缓存与旧备份。"), !0)) + (i ? d0(g0(i0("80%")).repeat(i), !0) : ""), l0("更改位置", "secondary") + l0(r ? "重新统计" : "统计占用")) + (c || l ? f0("数据上传", c + l) : "") + f0("运行信息", C0(a.length ? a : rje)) + `<section aria-label="新手教程" class="w-full"><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${p0("新手教程", "在所有设备上恢复右上角教程入口,保留已读进度", l0("重新打开", "secondary"))}</div></section>` + (s(e?.uninstall) ? f0("卸载 Peach", (e0(e?.uninstallHelp) ? d0(g0("卸载移除 Peach 程序本身,原始媒体文件保留。")) : "") + m0("完全卸载", "同时删除设置、本地数据库、观看记录、凭据和缓存") + d0(S0("数据目录"), !0), l0("卸载 Peach"), { status: i0("16em") }) : "");
};
-function rje(e) {
+function aje(e) {
switch (e) {
- case "系统诊断": return G1();
- case "来源与订阅": return ZAe();
- case "下载渠道": return QAe();
- case "网络与访问": return eje();
- case "应用与维护": return nje();
- default: return XAe();
+ case "系统诊断": return K1();
+ case "来源与订阅": return $Ae();
+ case "下载渠道": return eje();
+ case "网络与访问": return nje();
+ case "应用与维护": return ije();
+ default: return QAe();
}
}
-function ije(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">${rje(e)}</div></div></div>`;
+function oje(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">${aje(e)}</div></div></div>`;
}
-// src/react/jav/discovery-sorts.ts
-var j0 = [
- [
- "taste",
- "口味",
- "按口味匹配排序"
- ],
- [
- "release_date",
- Fj[1],
- "按发行日期排序"
- ],
- [
- "source_score",
- "来源评分",
- "按来源评分排序"
- ],
- [
- "duration",
- "时长",
- "按时长排序"
- ],
- [
- "code",
- "番号",
- "按番号排序"
- ]
-];
-function aje(e) {
- return typeof e == "number" && Number.isFinite(e) ? e.toFixed(3) : "—";
+// src/filter-controls-skeleton.ts
+var M0 = (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"), N0 = "inert aria-disabled=\"true\" tabindex=\"-1\" data-skeleton-control", P0 = (e, t, n) => `<span data-entity-layout="" class="${xU}" role="radiogroup" aria-label="${z(e)}">${n.map(([e, n, r]) => `<span class="${SU}" role="radio" aria-label="${z(n)}" aria-checked="${e === t}" data-glass-segment=""${e === t ? " data-selected=\"\"" : ""} ${N0}>${M0(r)}</span>`).join("")}</span>`;
+function F0(e, t, { catalog: n = !0 } = {}) {
+ let r = n ? hG() : "cards", i = new URLSearchParams(location.search), a = t && r === "cards" ? P0(t.label, t.value, t.options) : "", o = n ? `${P0("馆藏显示方式", r, [[
+ "cards",
+ "卡片",
+ "ri-layout-grid-line"
+ ], [
+ "list",
+ "列表",
+ "ri-list-unordered"
+ ]])}<button type="button" data-folder-mode-toggle="" aria-label="文件夹模式" aria-pressed="${i.get("browse") === "folders" || !!i.get("folder")}" ${N0}>${M0("ri-folder-3-line")}</button>` : "";
+ return `<span data-entity-sorts=""><button type="button" data-entity-batch="" data-filter-action="" aria-label="换一批" ${N0}>${M0("shuffle")}</button>${a}${o}${e.map((e) => `<button type="button" data-entity-sort="${z(e.key)}" aria-pressed="${e.pressed}" ${N0}>${z(e.label)}${e.dir ? M0(e.dir === "asc" ? "arrow-up" : "arrow-down") : ""}</button>`).join("")}</span>`;
}
-function oje(e) {
- if (typeof e != "number" || !Number.isFinite(e)) return {
- score: "—",
- label: "资料未取得",
- color: "neutral"
- };
- let t = Math.round(Math.max(0, Math.min(1, e)) * 100);
- return {
- score: String(t),
- ...t >= 75 ? {
- label: "强烈推荐",
- color: "lime"
- } : t >= 50 ? {
- label: "推荐",
- color: "blue"
- } : t >= 25 ? {
- label: "值得看看",
- color: "yellow"
- } : {
- label: "探索",
- color: "neutral"
- }
- };
+// src/catalog-filter-skeleton.ts
+var I0 = 64, L0 = (e) => e.replace(/[&<>"]/g, (e) => ({
+ "&": "&amp;",
+ "<": "&lt;",
+ ">": "&gt;",
+ "\"": "&quot;"
+})[e]), sje = (e) => e.repeat(I0), R0 = (e) => sje(`<span data-catalog-placeholder="${e}" aria-hidden="true"><span></span><span>&nbsp;</span></span>`);
+function cje(e, t, n) {
+ let r = e.map((e) => `<a href="${L0(e.href)}" data-catalog-view="${L0(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${L0(e.label)}</a>`).join(""), i = UG();
+ 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">${R0("performer")}</div>` : "") + (i.studios ? `<div data-catalog-tier="studios">${R0("studio")}</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(I0) + `</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 ? F0(n.sorts, n.layout) : "") + "</div></div></div></div>";
}
// src/jav-skeleton.ts
-var M0 = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, sje = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, N0 = "w-full min-w-0";
-function P0() {
+var z0 = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, lje = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, B0 = "w-full min-w-0";
+function V0() {
return [
"w-20",
"w-16",
@@ -72206,55 +72235,83 @@ function P0() {
"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 F0(e, t = yM()) {
- if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${M0("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${sje("block w-card-cover shrink-0 aspect-card-cover rounded-2lg max-sm:w-24")}<div class="flex min-w-0 flex-1 flex-col gap-3">${M0("80%")}${M0("60%")}${M0("40%")}</div></div>`).join("")}</div>`;
- let n = DM({
- ...EM({
+function H0(e, t = xM()) {
+ if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${z0("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${lje("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">${z0("80%")}${z0("60%")}${z0("40%")}</div></div>`).join("")}</div>`;
+ let n = kM({
+ ...OM({
active: !0,
home: !1,
portrait: !1
}),
size: t
});
- return `<div data-media-grid class="${N0}" 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="${B0}" 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>${M0("85%")}${M0("65%")}</div><div data-media-byline>${M0("55%")}</div>
+ <div data-media-title>${z0("85%")}${z0("65%")}</div><div data-media-byline>${z0("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 cje(e) {
- let t = e === "wants" ? "筛选想要" : "筛选推荐";
+var uje = {
+ releases: "筛选新作",
+ discover: "筛选推荐",
+ wants: "筛选想要"
+};
+function dje(e) {
+ let t = new URLSearchParams(location.search).get("q") || "", n = 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>${z0("100%")}</div>${H0(e)}` : e === "releases" ? `<section class="flex min-w-0 flex-col gap-4">${fje()}${H0(e)}</section>` : `<section class="flex min-w-0 flex-col gap-4">${pje()}${H0(e)}</section>`;
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({
+ <div class="flex w-full flex-col gap-4"><div class="flex min-w-0 flex-wrap items-center gap-3 max-board-narrow:gap-x-2"><h2 data-page-title class="text-display-4-medium text-text-primary max-board-narrow:text-title-1-medium">JAV</h2><div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Es("", t, uje[e] || "筛选")}</div>${Ds({
variant: "primary",
label: "查找资源",
attrs: "disabled data-skeleton-action"
})}</div>
- <div class="relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0">${xU.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>${M0("100%")}</div>${F0(e)}` : `<section class="flex min-w-0 flex-col gap-4">${lje()}${F0(e)}</section>`}</div></div>`;
+ <div class="relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0">${CU.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>
+ ${n}</div></div>`;
+}
+function fje() {
+ let e = new URLSearchParams(location.search), t = e.get("sort") || "release_date", n = e.get("dir") === "asc" ? "asc" : "desc", r = TW.map(([e, r, i]) => ({
+ key: e,
+ label: r,
+ ariaLabel: i,
+ pressed: e === t,
+ dir: e === t ? n : ""
+ }));
+ return `<div data-catalog-tiers="" aria-busy="true"><div data-catalog-tier="performers" data-skeleton="tiers">${R0("performer")}</div><div data-catalog-tier="studios">${R0("studio")}</div></div>
+ <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-tags>${V0()}</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>
+ ${F0(r, {
+ name: "jav-layout",
+ label: "JAV 卡片版式",
+ value: xM(),
+ options: gM
+ }, { catalog: !1 })}
+ </div>
+ </div>`;
}
-function lje() {
- 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="" ${yM() === 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>`;
+function pje() {
+ let e = (e, t) => `<button type="button" data-entity-tag="${e}" data-entity-press="" aria-pressed="${e === "external"}" class="flex h-8 flex-none items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit">${t}</button>`, t = (e, t) => `<span data-glass-segment="" ${xM() === e ? "data-selected=\"true\"" : ""} class="flex size-8 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${ws(t, "size-4")}</span>`;
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>${P0()}</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>${V0()}</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("")}
+ ${wW.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 I0 = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", L0 = (e = "60%") => `<span class="${I0} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, R0 = "disabled data-skeleton-action", z0 = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
-function uje() {
+var U0 = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", W0 = (e = "60%") => `<span class="${U0} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, G0 = "disabled data-skeleton-action", K0 = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
+function mje() {
let e = [
"馆藏视频",
"看过",
@@ -72262,27 +72319,27 @@ function uje() {
"使用空间"
].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="${I0} 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">${L0("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">${L0("6em")}</small>
- </div>`).join(""), t = (e) => `<section class="${z0}" 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">${L0("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="${U0} 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">${W0("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">${W0("6em")}</small>
+ </div>`).join(""), t = (e) => `<section class="${K0}" 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">${W0("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">${L0()}</span><b class="text-title-2-medium">${L0("3em")}</b><small class="text-caption-1-regular">${L0()}</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">${W0()}</span><b class="text-title-2-medium">${W0("3em")}</b><small class="text-caption-1-regular">${W0()}</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">数据库中的当前统计 · ${L0("12em")}</p>
+ <p class="text-caption-1-regular text-text-secondary">数据库中的当前统计 · ${W0("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="${z0}"><h3 class="text-title-2-medium">${e}</h3><div class="${I0} h-64"></div></section>`).join("")}</div>
+ ].map((e) => `<section class="${K0}"><h3 class="text-title-2-medium">${e}</h3><div class="${U0} h-64"></div></section>`).join("")}</div>
</div>
</div>
<section class="rounded-surface bg-background-secondary-default dark:bg-background-primary-default">
@@ -72291,11 +72348,11 @@ function uje() {
"最近看过",
"标签来源"
].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="${I0} 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="${U0} h-7"></div>`).join("")}</div>
</section>
</div></div>`;
}
-function dje() {
+function hje() {
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 = [
"浏览记录",
"口味维度",
@@ -72303,20 +72360,20 @@ function dje() {
"私有导出"
].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="${I0} 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">${L0("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">${L0("6em")}</small>
- </div>`).join(""), n = Array.from({ length: 6 }, () => `<div class="${I0} h-6"></div>`).join(""), r = (e) => `<section class="${z0}"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="${I0} 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="${U0} 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">${W0("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">${W0("6em")}</small>
+ </div>`).join(""), n = Array.from({ length: 6 }, () => `<div class="${U0} h-6"></div>`).join(""), r = (e) => `<section class="${K0}"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="${U0} 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: R0
+ attrs: G0
})}${Ds({
glyph: "chevron-down",
- attrs: R0
+ attrs: G0
})}</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>
@@ -72334,11 +72391,11 @@ function dje() {
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">${L0("8em")}</small></div>
+ <small class="text-caption-1-regular">${W0("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="${z0}"><h3 class="text-title-2-medium text-text-primary">创作者线索来源</h3><div class="${I0} h-72 max-sm:h-48"></div></section>
+ <section class="${K0}"><h3 class="text-title-2-medium text-text-primary">创作者线索来源</h3><div class="${U0} 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([
"标签",
@@ -72346,20 +72403,20 @@ function dje() {
"常访问网站",
"浏览线索"
])}</div>
- <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${I0} 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="${U0} h-7"></div>`).join("")}</div>
</section>
</div>
</div></div>`;
}
-function fje() {
+function gje() {
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="${I0} 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">${L0("70%")}</span>
- ${Array.from({ length: 3 }, () => `<span class="font-mono text-caption-1-regular leading-5">${L0("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">${L0("75%")}</span>
+ <span class="${U0} 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">${W0("70%")}</span>
+ ${Array.from({ length: 3 }, () => `<span class="font-mono text-caption-1-regular leading-5">${W0("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">${W0("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">${L0("5em")}</b><span class="font-mono text-caption-1-regular leading-5">${L0("8em")}</span>
+ <b class="text-title-2-medium">${W0("5em")}</b><span class="font-mono text-caption-1-regular leading-5">${W0("8em")}</span>
<span class="ml-auto flex flex-wrap gap-2 max-compact:ml-0 max-compact:w-full">${[
"留最大",
"留最长",
@@ -72368,27 +72425,27 @@ function fje() {
variant: "secondary",
size: "small",
label: e,
- attrs: R0
+ attrs: G0
})).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">${L0("4em")}</strong></div><p class="text-body-regular text-text-secondary">${L0("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">${W0("4em")}</strong></div><p class="text-body-regular text-text-secondary">${W0("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 ${R0} 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 ${G0} 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 pje() {
+function _je() {
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="${I0} 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">${L0("80%")}</h3><p class="text-body-2-regular">${L0("60%")}</p></div>
+ <div class="flex min-w-0 gap-4"><span class="${U0} 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">${W0("80%")}</h3><p class="text-body-2-regular">${W0("60%")}</p></div>
</div>
<footer class="flex justify-end">${Ds({
variant: "secondary",
size: "small",
label: "查看版本",
- attrs: R0
+ attrs: G0
})}</footer>
</li>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
@@ -72397,20 +72454,20 @@ function pje() {
</div></div>`;
}
// src/board-skeleton.ts
-var B0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, mje = () => `${B0("80%")}${B0("48%")}`, V0 = (e, t) => e.repeat(t), H0 = "disabled data-skeleton-action", U0 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, W0 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, hje = "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", G0 = () => `<div class="inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6">${[
+var q0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, vje = () => `${q0("80%")}${q0("48%")}`, J0 = (e, t) => e.repeat(t), Y0 = "disabled data-skeleton-action", X0 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, Z0 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, yje = "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", Q0 = () => `<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="${hje}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${U0("3em")}</b></div>`).join("")}</div>`, gje = (e = "") => qZ.some(([t]) => t === e) ? e : "list", K0 = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${qZ.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, q0 = (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>`, _je = ({ table: e, sort: t, dir: n }) => {
+].map((e) => `<div class="${yje}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${X0("3em")}</b></div>`).join("")}</div>`, bje = (e = "") => JZ.some(([t]) => t === e) ? e : "list", $0 = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${JZ.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, e2 = (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>`, xje = ({ 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">${U0("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">${X0("132px")}</span></span><div data-follow-toolbar-actions data-toolbar-actions>${Ds({
glyph: "refresh-cw",
label: "检查全部",
compact: !0,
- attrs: H0
+ attrs: Y0
})}<span data-follow-toolbar-controls class="contents"><span data-button-group role="group">${Ds({
variant: "ghost",
glyph: "layout-grid",
@@ -72427,42 +72484,42 @@ var B0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, mje
glyph: "chevron-up",
label: "全部收起",
compact: !0,
- attrs: H0
+ attrs: Y0
})}</span></div></div>`;
-}, J0 = () => `<span class="flex shrink-0 items-center gap-1">${Ds({
+}, t2 = () => `<span class="flex shrink-0 items-center gap-1">${Ds({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
- attrs: H0
+ attrs: Y0
})}${Ds({
variant: "secondary",
size: "small",
glyph: "trash",
- attrs: H0
-})}</span>`, vje = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${q0()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${U0("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${W0(14, 14)}</span>${W0(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">${U0("113px")}</span>${J0()}</span></div>`, Y0 = (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>${W0(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${U0("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: Y0
+})}</span>`, Sje = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${e2()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${X0("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${Z0(14, 14)}</span>${Z0(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">${X0("113px")}</span>${t2()}</span></div>`, n2 = (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>${Z0(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${X0("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: H0
-})}<span class="flex shrink-0 items-center gap-1 max-sm:mr-auto">${W0(14, 14)}${W0(14, 14)}</span><span class="flex flex-none items-center gap-2">${Ds({
+ attrs: Y0
+})}<span class="flex shrink-0 items-center gap-1 max-sm:mr-auto">${Z0(14, 14)}${Z0(14, 14)}</span><span class="flex flex-none items-center gap-2">${Ds({
variant: "secondary",
size: "small",
glyph: "check-check",
label: "全选",
- attrs: H0
+ attrs: Y0
})}${Ds({
variant: "secondary",
size: "small",
glyph: "chevron-up",
label: "收起",
- attrs: H0
-})}</span></span></div><div data-source-divider>${V0(vje(), e)}</div></section>`, yje = () => {
+ attrs: Y0
+})}</span></span></div><div data-source-divider>${J0(Sje(), e)}</div></section>`, Cje = () => {
try {
return Number(JSON.parse(localStorage.getItem("peach.settings.v1") || "{}").followPageSize) || 20;
} catch {
return 20;
}
-}, bje = [
+}, wje = [
["select", ""],
["author", "创作者"],
["source", "来源"],
@@ -72470,90 +72527,92 @@ var B0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, mje
["status", "状态"],
["checked", "上次检查"],
["actions", ""]
-], xje = {
+], Tje = {
name: "author",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, X0 = "<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>", Sje = (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>${bje.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${xje[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${X0}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${V0(`<tr>${[
- q0(),
- `<span class="flex min-w-0 items-center gap-2">${W0(32, 32, !0)}${U0("5em")}</span>`,
- U0("10em"),
- `<span class="flex items-center gap-1.5">${W0(14, 14)}${U0("4em")}</span>`,
- W0(48, 24),
- U0("113px"),
- J0()
-].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, Cje = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular text-text-secondary">${U0("111px")}</span><div data-toolbar-actions>${ks(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${W0(204, 32)}</div></div>`, wje = () => `<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">${U0("120px")}</h3>${[
+}, r2 = "<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>", Eje = (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>${wje.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${Tje[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${r2}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${J0(`<tr>${[
+ e2(),
+ `<span class="flex min-w-0 items-center gap-2">${Z0(32, 32, !0)}${X0("5em")}</span>`,
+ X0("10em"),
+ `<span class="flex items-center gap-1.5">${Z0(14, 14)}${X0("4em")}</span>`,
+ Z0(48, 24),
+ X0("113px"),
+ t2()
+].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, Dje = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular text-text-secondary">${X0("111px")}</span><div data-toolbar-actions>${ks(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${Z0(204, 32)}</div></div>`, Oje = () => `<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">${X0("120px")}</h3>${[
"72%",
"56%",
"64%",
"40%"
-].map((e) => `<span class="text-body-medium">${U0(e)}</span>`).join("")}</div>`, Tje = (e) => {
- let t = gje(e.followTab);
- if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${G0()}<div class="flex flex-col gap-6">${K0(t)}<div class="flex flex-col gap-4">${wje()}</div></div></div></div>`;
- let n = e.followLayout === "table", r = pr(e.followSort, e.followDir), i = e.followPageSize || yje(), a = n ? Sje(i, r) : `${q0("全选本页")}<div class="flex flex-col gap-3">${Y0(3)}${Y0(4)}${Y0(3)}</div>`;
- return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${G0()}<div class="flex flex-col gap-6">${K0(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"}">${_je({
+].map((e) => `<span class="text-body-medium">${X0(e)}</span>`).join("")}</div>`, kje = (e) => {
+ let t = bje(e.followTab);
+ if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${Q0()}<div class="flex flex-col gap-6">${$0(t)}<div class="flex flex-col gap-4">${Oje()}</div></div></div></div>`;
+ let n = e.followLayout === "table", r = pr(e.followSort, e.followDir), i = e.followPageSize || Cje(), a = n ? Eje(i, r) : `${e2("全选本页")}<div class="flex flex-col gap-3">${n2(3)}${n2(4)}${n2(3)}</div>`;
+ return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${Q0()}<div class="flex flex-col gap-6">${$0(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"}">${xje({
table: n,
...r
- })}${a}${Cje(n, i)}</div></div></div></div></div>`;
+ })}${a}${Dje(n, i)}</div></div></div></div></div>`;
};
-function Eje() {
- 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">${B0("85%")}${B0("65%")}${V0(mje(), 4)}</div></aside></div>`;
+function Aje() {
+ 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">${q0("85%")}${q0("65%")}${J0(vje(), 4)}</div></aside></div>`;
}
-function Dje(e, t = {}) {
+function jje(e, t = {}) {
let n = "";
- if (e === "/stats") n = uje();
- else if (e === "/jav") n = cje(new URLSearchParams(location.search).get("tab") === "wants" ? "wants" : "discover");
- else if (e === "/taste") n = dje();
- else if (e === "/subscriptions") n = Tje(t);
- else if (e.startsWith("/settings/") && e.split("/")[2] in Df) n = ije(Df[e.split("/")[2]]);
+ if (e === "/stats") n = mje();
+ else if (e === "/jav") {
+ let e = wU(new URLSearchParams(location.search).get("tab"));
+ n = dje(e === "library" ? "discover" : e);
+ } else if (e === "/taste") n = hje();
+ else if (e === "/subscriptions") n = kje(t);
+ else if (e.startsWith("/settings/") && e.split("/")[2] in Df) n = oje(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">${U0("8em")}</span><span class="text-caption-1-regular">${U0("14em")}</span>${U0("60%")}${U0("40%")}</div><div class="border-t border-separator-border px-5 py-2.5">${U0("6em")}</div></div></section>`).join("")}</div></div>`;
- else if (e === "/duplicates") n = fje();
- else if (e === "/quality-goals") n = pje();
+ ].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">${X0("8em")}</span><span class="text-caption-1-regular">${X0("14em")}</span>${X0("60%")}${X0("40%")}</div><div class="border-t border-separator-border px-5 py-2.5">${X0("6em")}</div></div></section>`).join("")}</div></div>`;
+ else if (e === "/duplicates") n = gje();
+ else if (e === "/quality-goals") n = _je();
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: H0
- })}</div></header><div class="mx-auto w-full max-w-board"><div class="ui-playlistcards card-grid-cover gap-4.5">${V0("<article class=\"playlistcard skeletoncard\"><i></i><b></b><em></em></article>", 6)}</div></div></section></div>`;
+ attrs: Y0
+ })}</div></header><div class="mx-auto w-full max-w-board"><div class="ui-playlistcards card-grid-cover gap-4.5">${J0("<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 Oje(e) {
+function Mje(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 Z0(e) {
+function i2(e) {
let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");
- return Oje(n ?? t.body);
+ return Mje(n ?? t.body);
}
-var Q0 = "[role=\"dialog\"],[role=\"listbox\"],[role=\"menu\"]";
-function kje(e) {
+var a2 = "[role=\"dialog\"],[role=\"listbox\"],[role=\"menu\"]";
+function Nje(e) {
let t = e.querySelector(":scope > [data-react-overlays]");
for (let e = t?.lastElementChild; e; e = e.previousElementSibling) {
- let t = e.matches(Q0) ? e : e.querySelector(Q0);
+ let t = e.matches(a2) ? e : e.querySelector(a2);
if (t) return t;
}
return null;
}
-function $0(e) {
+function o2(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 e2 = (e) => ["follow-item", e], Aje = (e) => `/api/follow?item=${encodeURIComponent(e)}`, jje = "/api/follow/save", Mje = "/api/follow/media/hide", t2 = class extends Error {
+var s2 = (e) => ["follow-item", e], Pje = (e) => `/api/follow?item=${encodeURIComponent(e)}`, Fje = "/api/follow/save", Ije = "/api/follow/media/hide", c2 = class extends Error {
constructor() {
super("这条关注内容已不存在");
}
};
-async function n2(e, t) {
- let n = await B(Aje(e), t);
+async function l2(e, t) {
+ let n = await B(Pje(e), t);
for (let t of n.groups || []) {
let r = ca(t).find((t) => t.id === e);
if (r) return {
@@ -72563,9 +72622,9 @@ async function n2(e, t) {
aliases: n.author_aliases || []
};
}
- throw new t2();
+ throw new c2();
}
-function Nje(e) {
+function Lje(e) {
for (let [, t] of H.getQueriesData({ queryKey: ["follow-item"] })) {
if (!t?.group) continue;
let n = ca(t.group).find((t) => t.id === e);
@@ -72576,20 +72635,20 @@ function Nje(e) {
}
return null;
}
-async function r2(e, t) {
- let n = e2(e.id), r = la(e.id), i = H.getQueryData(ra) ? null : H.fetchQuery({
+async function u2(e, t) {
+ let n = s2(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) ?? Nje(e.id);
+ } : H.getQueryData(n) ?? Lje(e.id);
a ? H.setQueryData(n, a) : await H.fetchQuery({
queryKey: n,
- queryFn: () => n2(e.id, t)
+ queryFn: () => l2(e.id, t)
}), await i;
}
-function Pje(e, t, n, r) {
+function Rje(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,
@@ -72604,32 +72663,32 @@ function Pje(e, t, n, r) {
src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""
};
}
-var Fje = (e) => ca(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), Ije = {
+var zje = (e) => ca(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), Bje = {
"gofile.io": "Gofile",
"pixeldrain.com": "Pixeldrain",
"mega.nz": "MEGA",
"mega.io": "MEGA",
"mediafire.com": "MediaFire",
"drive.google.com": "Google Drive"
-}, Lje = {
+}, Vje = {
gofile: "Gofile",
pixeldrain: "Pixeldrain",
mega: "MEGA",
mediafire: "MediaFire",
google_drive: "Google Drive"
};
-function Rje(e) {
+function Hje(e) {
try {
let t = new URL(e).hostname.replace(/^www\./, "");
- return Ije[t] || t;
+ return Bje[t] || t;
} catch {
return "外部文件页";
}
}
-function i2(e, t) {
- return Lje[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
+function d2(e, t) {
+ return Vje[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
}
-function zje(e, t, n = "") {
+function Uje(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;
@@ -72638,54 +72697,54 @@ function zje(e, t, n = "") {
title: e.is_release && t.author ? `${t.author}:${i}` : i
};
}
-var Bje = (e) => String(e.name || "").trim(), a2 = (e, t) => e.tag_types?.[t] || "unknown", Vje = /* @__PURE__ */ new Set([
+var Wje = (e) => String(e.name || "").trim(), f2 = (e, t) => e.tag_types?.[t] || "unknown", Gje = /* @__PURE__ */ new Set([
"artist",
"character",
"copyright",
"metadata",
"unknown"
]);
-function Hje(e, t) {
- let n = a2(e, t);
- return `r34-${Vje.has(n) ? n : "general"}`;
+function Kje(e, t) {
+ let n = f2(e, t);
+ return `r34-${Gje.has(n) ? n : "general"}`;
}
-var o2 = [
+var p2 = [
"copyright",
"character",
"artist",
"general",
"metadata"
];
-function Uje(e, t) {
+function qje(e, t) {
let n = e.detail_tags || e.tags || [], r = (t) => {
- let n = o2.indexOf(a2(e, t));
- return n < 0 ? o2.length : n;
+ let n = p2.indexOf(f2(e, t));
+ return n < 0 ? p2.length : n;
};
return [...n].sort((e, n) => r(e) - r(n) || t(e).localeCompare(t(n)));
}
-function s2(e, t) {
+function m2(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 Wje = (e, t) => ({
+var Jje = (e, t) => ({
sources: e.sources,
aliases: e.aliases,
credentials: t
-}), c2 = (e) => e?.size ? { size: e.size } : {};
-function Gje(e, t) {
+}), h2 = (e) => e?.size ? { size: e.size } : {};
+function Yje(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: i2(t, e),
- ...c2(t)
+ source: d2(t, e),
+ ...h2(t)
})) : r === "image" && i ? [{
src: i,
thumb: e.thumb_url || i,
name: e.title,
- source: i2(a, e),
- ...c2(a)
+ source: d2(a, e),
+ ...h2(a)
}] : e.thumb_url ? [{
src: e.thumb_url,
thumb: e.thumb_url,
@@ -72693,7 +72752,7 @@ function Gje(e, t) {
source: e.provider_label || e.provider || "在线图片"
}] : [];
}
-var Kje = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", l2 = "清理文件名中的特殊符号与乱码,也可按模板改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。", u2 = "指定路径时包含子目录,目录模板以该路径为起点。模板均留空时只清理文件名。", d2 = "点击参数插入光标处,选中文字可替换。方括号里的内容在字段为空时整段省略。", f2 = "按馆藏记录逐条查找本地磁盘与网盘上的文件,列出文件已不存在的记录、空文件夹,以及不再被引用的缓存。", p2 = "这些作品的源文件已删除,喜欢、稍后看、播放列表与观看历史仍保留。选择替代文件后,这些记录会转移到该文件,旧作品记录随之删除。", m2 = "勾选女优,永久删除她们在全部来源中的影片文件、影片资料和观看记录,包括回收站中的影片。女优档案和照片保留。共同出演的同一文件只删除一次。", h2 = "disabled data-skeleton-action", g2 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, _2 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, v2 = (e, t) => `<h3 class="text-title-2-medium text-text-primary${t ? ` ${t}` : ""}">${e}</h3>`, y2 = (e, { label: t = "", className: n = "" } = {}) => `<div data-input-size="medium" class="group flex h-max w-full flex-col items-start gap-1${n ? ` ${n}` : ""}">${t ? `<span class="flex items-center gap-0.5 text-body-medium text-text-primary">${t}</span>` : ""}<div class="relative flex w-full items-center rounded-2lg bg-background-tertiary-default text-foreground-icon-tertiary ring-2 ring-inset ring-transparent p-2"><div class="flex w-full items-center gap-2 min-w-0"><div class="flex flex-1 items-center gap-0.5 min-w-0"><span class="flex min-w-0 flex-1 items-center pl-1 font-sans text-body-regular text-text-tertiary">${e}&#8203;</span></div></div></div></div>`, qje = [
+var Xje = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", g2 = "清理文件名中的特殊符号与乱码,也可按模板改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。", _2 = "指定路径时包含子目录,目录模板以该路径为起点。模板均留空时只清理文件名。", v2 = "点击参数插入光标处,选中文字可替换。方括号里的内容在字段为空时整段省略。", y2 = "按馆藏记录逐条查找本地磁盘与网盘上的文件,列出文件已不存在的记录、空文件夹,以及不再被引用的缓存。", b2 = "这些作品的源文件已删除,喜欢、稍后看、播放列表与观看历史仍保留。选择替代文件后,这些记录会转移到该文件,旧作品记录随之删除。", x2 = "勾选女优,永久删除她们在全部来源中的影片文件、影片资料和观看记录,包括回收站中的影片。女优档案和照片保留。共同出演的同一文件只删除一次。", S2 = "disabled data-skeleton-action", C2 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, w2 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, T2 = (e, t) => `<h3 class="text-title-2-medium text-text-primary${t ? ` ${t}` : ""}">${e}</h3>`, E2 = (e, { label: t = "", className: n = "" } = {}) => `<div data-input-size="medium" class="group flex h-max w-full flex-col items-start gap-1${n ? ` ${n}` : ""}">${t ? `<span class="flex items-center gap-0.5 text-body-medium text-text-primary">${t}</span>` : ""}<div class="relative flex w-full items-center rounded-2lg bg-background-tertiary-default text-foreground-icon-tertiary ring-2 ring-inset ring-transparent p-2"><div class="flex w-full items-center gap-2 min-w-0"><div class="flex flex-1 items-center gap-0.5 min-w-0"><span class="flex min-w-0 flex-1 items-center pl-1 font-sans text-body-regular text-text-tertiary">${e}&#8203;</span></div></div></div></div>`, Zje = [
"3em",
"5em",
"5em",
@@ -72703,7 +72762,7 @@ var Kje = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", l2
"8em",
"8em",
"10em"
-], Jje = [
+], Qje = [
"5.8em",
"6.4em",
"7em",
@@ -72713,70 +72772,70 @@ var Kje = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", l2
"5.8em",
"9em",
"9em"
-], b2 = (e, t) => Ds({
+], D2 = (e, t) => Ds({
variant: e,
size: "small",
- label: g2(t)
+ label: C2(t)
});
-function Yje() {
- return `<section class="${C$("stack")}">
- <div class="${x$.stack}">${v2("整理", "mb-3")}
- <p class="text-body-regular text-text-secondary">${l2}</p>
+function $je() {
+ return `<section class="${w$("stack")}">
+ <div class="${S$.stack}">${T2("整理", "mb-3")}
+ <p class="text-body-regular text-text-secondary">${g2}</p>
<div class="mt-3 flex flex-col gap-3">
- <div class="flex min-w-0 flex-wrap items-start gap-2">${ks(g2("3em"), {
+ <div class="flex min-w-0 flex-wrap items-start gap-2">${ks(C2("3em"), {
prefix: "来源",
className: "w-fit min-w-25",
attrs: "aria-disabled=\"true\""
})}
- <div class="flex min-w-0 basis-64 flex-1 items-start gap-2">${y2("留空整理整个来源", { className: "min-w-0 flex-1" })}<button type="button" class="relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg bg-background-primary-default text-foreground-icon-primary border border-border-button-default shadow-xs size-9">${ws("folder-search", "size-5 shrink-0")}</button></div>
+ <div class="flex min-w-0 basis-64 flex-1 items-start gap-2">${E2("留空整理整个来源", { className: "min-w-0 flex-1" })}<button type="button" class="relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg bg-background-primary-default text-foreground-icon-primary border border-border-button-default shadow-xs size-9">${ws("folder-search", "size-5 shrink-0")}</button></div>
</div>
- <p class="text-caption-1-regular text-text-secondary">${u2}</p>
- ${y2(g2("12em"), { label: "文件名模板" })}${y2(g2("8em"), { label: "目录模板" })}
- <div class="flex flex-col gap-2"><p class="text-caption-1-medium text-text-secondary">套用模板</p><div class="flex flex-wrap gap-2">${qje.map((e) => b2("secondary", e)).join("")}</div></div>
- <p class="text-caption-1-regular text-text-secondary">路径示例:${g2("16em")}</p>
- <div class="flex flex-col gap-2"><p class="text-caption-1-regular text-text-secondary"><strong class="text-caption-1-semibold text-text-primary">插入参数</strong>(到文件名模板)</p><div class="flex flex-wrap gap-1">${Jje.map((e) => b2("ghost", e)).join("")}</div></div>
- <p class="text-caption-1-regular leading-4.5 text-text-secondary">${d2}</p>
+ <p class="text-caption-1-regular text-text-secondary">${_2}</p>
+ ${E2(C2("12em"), { label: "文件名模板" })}${E2(C2("8em"), { label: "目录模板" })}
+ <div class="flex flex-col gap-2"><p class="text-caption-1-medium text-text-secondary">套用模板</p><div class="flex flex-wrap gap-2">${Zje.map((e) => D2("secondary", e)).join("")}</div></div>
+ <p class="text-caption-1-regular text-text-secondary">路径示例:${C2("16em")}</p>
+ <div class="flex flex-col gap-2"><p class="text-caption-1-regular text-text-secondary"><strong class="text-caption-1-semibold text-text-primary">插入参数</strong>(到文件名模板)</p><div class="flex flex-wrap gap-1">${Qje.map((e) => D2("ghost", e)).join("")}</div></div>
+ <p class="text-caption-1-regular leading-4.5 text-text-secondary">${v2}</p>
</div>
</div>
- <footer class="${S$.stack}">${Ds({
+ <footer class="${C$.stack}">${Ds({
label: "预览",
- attrs: h2
+ attrs: S2
})}</footer>
</section>`;
}
-var Xje = () => `<section class="flex scroll-mt-20 flex-col gap-4">
- <section class="${C$("split")}"><div class="${x$.split}">${v2("资源同步", "mb-2")}
- <p class="max-w-190 text-body-2-regular leading-5 text-text-secondary">${f2}</p></div>
- <footer class="${S$.split}">${Ds({
+var eMe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
+ <section class="${w$("split")}"><div class="${S$.split}">${T2("资源同步", "mb-2")}
+ <p class="max-w-190 text-body-2-regular leading-5 text-text-secondary">${y2}</p></div>
+ <footer class="${C$.split}">${Ds({
glyph: "git-compare",
label: "检查文件",
- attrs: h2
+ attrs: S2
})}</footer></section>
-</section>`, x2 = (e, t = !1) => `<div class="flex min-w-0 flex-col gap-0.5"><span class="text-caption-1-regular leading-5 text-text-secondary">${e}</span><b class="text-title-2-semibold font-bold leading-5 tabular-nums text-text-primary">${g2("3em")}</b>${t ? `<small class="text-caption-1-regular leading-5 text-text-secondary">${g2("14em")}</small>` : ""}</div>`, Zje = () => `<section class="flex scroll-mt-20 flex-col gap-4">
- <section class="${C$("stack")}"><div class="${x$.stack}">${v2("链接管理", "mb-2")}
- <div class="link-stat-grid mt-4 gap-x-8 gap-y-3">${x2("链接总数", !0)}${[
+</section>`, O2 = (e, t = !1) => `<div class="flex min-w-0 flex-col gap-0.5"><span class="text-caption-1-regular leading-5 text-text-secondary">${e}</span><b class="text-title-2-semibold font-bold leading-5 tabular-nums text-text-primary">${C2("3em")}</b>${t ? `<small class="text-caption-1-regular leading-5 text-text-secondary">${C2("14em")}</small>` : ""}</div>`, tMe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
+ <section class="${w$("stack")}"><div class="${S$.stack}">${T2("链接管理", "mb-2")}
+ <div class="link-stat-grid mt-4 gap-x-8 gap-y-3">${O2("链接总数", !0)}${[
0,
1,
2
-].map(() => x2(g2("5em"))).join("")}</div>
+].map(() => O2(C2("5em"))).join("")}</div>
<div class="mt-4 flex min-w-0 flex-col gap-0.5"><span class="text-caption-1-regular text-text-secondary">主要站点</span><div class="flex min-w-0 flex-wrap gap-x-5 gap-y-2">${[
"7em",
"10em",
"8em"
-].map((e) => `<span class="inline-flex min-w-0 items-center gap-1.5 text-body-2-medium">${_2(16, 16)}${g2(e)}${_2(28, 24)}</span>`).join("")}</div></div></div>
- <footer class="${S$.stack}">${Ds({
+].map((e) => `<span class="inline-flex min-w-0 items-center gap-1.5 text-body-2-medium">${w2(16, 16)}${C2(e)}${w2(28, 24)}</span>`).join("")}</div></div></div>
+ <footer class="${C$.stack}">${Ds({
glyph: "link",
label: "检查死链",
- attrs: h2
+ attrs: S2
})}</footer></section>
</section>`;
-function S2({ title: e, description: t, search: n = "", columns: r, rows: i }) {
- let a = r.reduce((e, { width: t }) => e + t, 48), o = `<th style="width:48px"><span class="flex items-center gap-0.5">${q0()}</span></th>${r.map(({ label: e, width: t }, n) => `<th${n ? ` style="width:${t}px"` : ""}><span class="flex items-center gap-0.5">${e}<span data-sort-indicator>${X0}</span></span></th>`).join("")}<th data-table-space style="width:0"></th>`, s = `<tr><td>${q0()}</td>${r.map(({ cell: e }) => `<td>${e}</td>`).join("")}<td data-table-space></td></tr>`, c = n ? `<div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Es("", "", n)}</div>` : "";
- return `<div data-data-table-panel class="${zH({
+function k2({ title: e, description: t, search: n = "", columns: r, rows: i }) {
+ let a = r.reduce((e, { width: t }) => e + t, 48), o = `<th style="width:48px"><span class="flex items-center gap-0.5">${e2()}</span></th>${r.map(({ label: e, width: t }, n) => `<th${n ? ` style="width:${t}px"` : ""}><span class="flex items-center gap-0.5">${e}<span data-sort-indicator>${r2}</span></span></th>`).join("")}<th data-table-space style="width:0"></th>`, s = `<tr><td>${e2()}</td>${r.map(({ cell: e }) => `<td>${e}</td>`).join("")}<td data-table-space></td></tr>`, c = n ? `<div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Es("", "", n)}</div>` : "";
+ return `<div data-data-table-panel class="${VH({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
})}">
- <div data-responsive-toolbar><div data-toolbar-heading>${v2(e, "")}<span class="text-body-2-regular tabular-nums text-text-secondary">${g2("4em")}</span></div>
+ <div data-responsive-toolbar><div data-toolbar-heading>${T2(e, "")}<span class="text-body-2-regular tabular-nums text-text-secondary">${C2("4em")}</span></div>
<div data-toolbar-actions>${c}<div class="flex flex-none gap-2">${Ds({
variant: "secondary",
label: "显示列"
@@ -72787,38 +72846,38 @@ function S2({ title: e, description: t, search: n = "", columns: r, rows: i }) {
<span class="flex flex-none items-center gap-2">${ks("默认顺序", { prefix: "排序" })}${Ds({
variant: "secondary",
glyph: "arrow-up",
- attrs: h2
+ attrs: S2
})}</span></div></div>
<p class="text-body-2-regular text-text-secondary">${t}</p>
<div data-board-data-table data-resizable-table data-follow-table><div class="relative min-w-0"><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm" style="min-width:${a}px"><thead><tr>${o}</tr></thead><tbody>${s.repeat(i)}</tbody></table></div></div></div>
- <div data-table-pagination class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular tabular-nums text-text-secondary">${g2("8em")}</span><div data-toolbar-actions>${ks("每页 20 条", { size: "sm" })}</div></div>
+ <div data-table-pagination class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular tabular-nums text-text-secondary">${C2("8em")}</span><div data-toolbar-actions>${ks("每页 20 条", { size: "sm" })}</div></div>
</div>`;
}
-var Qje = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span class="text-body-regular">${g2(e)}</span><small class="text-caption-1-regular">${g2(t)}</small></span>`, $je = {
+var nMe = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span class="text-body-regular">${C2(e)}</span><small class="text-caption-1-regular">${C2(t)}</small></span>`, rMe = {
organize: {
label: "正在读取整理配置",
- body: Yje
+ body: $je
},
"resource-sync": {
label: "正在读取资源同步状态",
- body: Xje
+ body: eMe
},
"orphan-records": {
label: "正在读取文件已丢失的记录",
- body: () => `<section class="flex scroll-mt-20 flex-col gap-4">${S2({
+ body: () => `<section class="flex scroll-mt-20 flex-col gap-4">${k2({
title: "文件已丢失的记录",
- description: p2,
+ description: b2,
rows: 4,
columns: [
{
label: "作品",
width: 480,
- cell: `<span class="flex min-w-0 items-center gap-3"><span class="skeleton flex-none rounded-lg max-cleanup-tight:hidden" style="width:96px;height:60px"></span>${Qje("70%", "40%")}</span>`
+ cell: `<span class="flex min-w-0 items-center gap-3"><span class="skeleton flex-none rounded-lg max-cleanup-tight:hidden" style="width:96px;height:60px"></span>${nMe("70%", "40%")}</span>`
},
{
label: "个人记录",
width: 176,
- cell: g2("6em")
+ cell: C2("6em")
},
{
label: "操作",
@@ -72827,7 +72886,7 @@ var Qje = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span cl
variant: "secondary",
size: "small",
label: "删除记录",
- attrs: h2
+ attrs: S2
})
}
]
@@ -72835,50 +72894,50 @@ var Qje = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span cl
},
"media-repair": {
label: "正在读取媒体修复状态",
- body: tke
+ body: rke
},
links: {
label: "正在读取链接统计",
- body: Zje
+ body: tMe
},
"batch-delete": {
label: "正在读取女优列表",
- body: () => `<section class="flex min-w-0 scroll-mt-20 flex-col gap-3">${S2({
+ body: () => `<section class="flex min-w-0 scroll-mt-20 flex-col gap-3">${k2({
title: "批量删除",
- description: m2,
+ description: x2,
search: "搜索女优姓名或别名",
rows: 12,
columns: [
{
label: "女优",
width: 280,
- cell: `<span class="flex min-w-0 items-center gap-3">${_2(32, 32, !0)}${g2("5em")}</span>`
+ cell: `<span class="flex min-w-0 items-center gap-3">${w2(32, 32, !0)}${C2("5em")}</span>`
},
{
label: "影片",
width: 104,
- cell: g2("3em")
+ cell: C2("3em")
},
{
label: "文件",
width: 104,
- cell: g2("3em")
+ cell: C2("3em")
},
{
label: "登记大小",
width: 136,
- cell: g2("4em")
+ cell: C2("4em")
}
]
})}</section>`
}
};
-function C2(e) {
- let { label: t, body: n } = $je[e];
+function A2(e) {
+ let { label: t, body: n } = rMe[e];
return `<div class="peach-react" data-skeleton="cleanup/${e}" aria-busy="true" role="status" aria-label="${t}"><div aria-hidden="true" inert class="mx-auto flex w-full max-w-board flex-col gap-8">${n()}</div></div>`;
}
// src/management-placeholder.ts
-var w2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill: a, cardRatio: o, gridClass: s = "", gridSize: c = "" } = {}) => nc(e, {
+var j2 = (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,
@@ -72886,7 +72945,7 @@ var w2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill
...i ? { count: i } : {},
...a === void 0 ? {} : { fill: a },
...o ? { cardRatio: o } : {}
-}), eMe = [
+}), iMe = [
"元数据字段",
"创作者标签",
"厂牌 Logo",
@@ -72896,39 +72955,39 @@ var w2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill
"FC2 评论标记",
"FC2 跨号相似",
"片尾/出处证据"
-], tMe = (e = "正在读取复核队列") => `<div class="review review-workspace review-skeleton" data-skeleton="review" aria-busy="true" aria-label="${z(e)}">
+], aMe = (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>${eMe.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>${iMe.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>`, nMe = {
- "/data-cleanup": () => nke(),
- ...Object.fromEntries(qf.map((e) => [e.path, () => C2(e.key)])),
- "/resource-sync": () => C2("resource-sync"),
- "/review": () => tMe(),
+ <section class="reviewsection"><div class="reviewlist">${"<div class=\"skeletoncard\" aria-hidden=\"true\"><i></i><b></b><em></em></div>".repeat(6)}</div></section></div>`, oMe = {
+ "/data-cleanup": () => ike(),
+ ...Object.fromEntries(qf.map((e) => [e.path, () => A2(e.key)])),
+ "/resource-sync": () => A2("resource-sync"),
+ "/review": () => aMe(),
"/sources": () => `<div class="scraping-page"><p>高清图片可能要经代理才能下载,先检查连接。</p>
- ${w2("正在读取采集来源", {
+ ${j2("正在读取采集来源", {
cards: !0,
count: 4,
fill: !1,
className: "cleanup-skeleton"
})}</div>`
};
-function T2(e, { followLayout: t, followSort: n, followDir: r }) {
- return Dje(e, {
+function M2(e, { followLayout: t, followSort: n, followDir: r }) {
+ return jje(e, {
followLayout: t,
...e === "/subscriptions" ? {
followSort: n,
followDir: r
} : {}
- }) || (nMe[e] ?? (() => w2("正在读取页面")))();
+ }) || (oMe[e] ?? (() => j2("正在读取页面")))();
}
-var E2 = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";
-function D2(e, t) {
- let n = e.querySelector("[data-skeleton]")?.dataset.skeleton || "", r = E2(t);
+var N2 = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";
+function P2(e, t) {
+ let n = e.querySelector("[data-skeleton]")?.dataset.skeleton || "", r = N2(t);
r && r === n || (e.innerHTML = t, uc(e));
}
// src/react/components/related-section.tsx
-function O2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a, online: o = !1, ...s }) {
+function F2({ 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]);
@@ -72941,17 +73000,17 @@ function O2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a,
children: "接着看"
}), i ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-related-state": "",
- children: /* @__PURE__ */ (0, I.jsx)(GG, {
+ children: /* @__PURE__ */ (0, I.jsx)(qG, {
message: i,
onRetry: a || (() => {})
})
}) : r && !n ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-related-state": "",
- children: /* @__PURE__ */ (0, I.jsx)(CV, {
+ children: /* @__PURE__ */ (0, I.jsx)(TV, {
size: "compact",
- icon: dV,
+ icon: pV,
title: "暂无接着看的内容",
- actions: /* @__PURE__ */ (0, I.jsx)(ML, {
+ actions: /* @__PURE__ */ (0, I.jsx)(PL, {
size: "small",
href: o ? "/follow" : "/",
children: o ? "返回关注" : "浏览馆藏"
@@ -72967,7 +73026,7 @@ function O2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a,
});
}
// src/react/components/detail-continuation.tsx
-function k2({ queue: e, children: t, queueCards: n }) {
+function I2({ 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),
@@ -72975,7 +73034,7 @@ function k2({ queue: e, children: t, queueCards: n }) {
});
}
// src/react/components/media-carousel.tsx
-function A2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail: i }) {
+function L2({ 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]");
@@ -73055,7 +73114,7 @@ function A2({ 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)(rMe, {
+ children: e.map((e, r) => /* @__PURE__ */ (0, I.jsx)(sMe, {
item: e,
selected: r === t,
onSelect: n,
@@ -73074,7 +73133,7 @@ function A2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail
]
});
}
-function rMe({ item: e, selected: t, onSelect: n, render: r }) {
+function sMe({ 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;
@@ -73100,14 +73159,14 @@ function rMe({ item: e, selected: t, onSelect: n, render: r }) {
});
}
// src/react/follow-detail/follow-related.ts
-var iMe = (e, t, n) => [
+var cMe = (e, t, n) => [
"follow-feed",
"related",
e,
t,
n
];
-function j2(e, t, n, r) {
+function R2(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);
@@ -73122,7 +73181,7 @@ function j2(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 aMe(e, t, n, r) {
+async function lMe(e, t, n, r) {
let i = e.sources.find((t) => t.id === e.item.source_id)?.author_key || "", a = {
...ga(i),
status: "new",
@@ -73136,22 +73195,22 @@ async function aMe(e, t, n, r) {
}, t), r);
return o.push(n), n;
}, c = await s(i, 0);
- return j2(o, e, t, n).length < n && c.has_more && await s(i, (c.offset || 0) + 100), i && j2(o, e, t, n).length < n && await s("", 0), {
+ return R2(o, e, t, n).length < n && c.has_more && await s(i, (c.offset || 0) + 100), i && R2(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 M2 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var z2 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
});
-function N2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, label: a, onOpen: o, onAdd: s, onRemove: c, busyAttrs: l }) {
+function B2({ 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 = DH(), _ = (e) => {
+ }), h = m.data?.items?.filter((e) => !e.hidden && !e.blocked && (n === "online" || e.cat !== "meta")) || t, g = kH(), _ = (e) => {
g.run("rename", async (t) => {
let r = (await H.fetchQuery({
queryKey: ["tag-management", n],
@@ -73183,9 +73242,9 @@ function N2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
"data-edit-tag": e.k,
title: "修改标签名称",
"aria-label": `修改标签 ${a(e.k)}`,
- ...DV(!!g.busy),
+ ...kV(!!g.busy),
onClick: () => _(e),
- children: /* @__PURE__ */ (0, I.jsx)(M2, { name: "pencil" })
+ children: /* @__PURE__ */ (0, I.jsx)(z2, { name: "pencil" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -73194,10 +73253,10 @@ function N2({ 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)(M2, { name: "x" })
+ children: /* @__PURE__ */ (0, I.jsx)(z2, { name: "x" })
})
]
- }, e.k)), /* @__PURE__ */ (0, I.jsx)(oMe, {
+ }, e.k)), /* @__PURE__ */ (0, I.jsx)(uMe, {
tags: e,
candidates: h,
label: a,
@@ -73208,11 +73267,11 @@ function N2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
loading: m.isFetching
})]
}),
- g.error ? /* @__PURE__ */ (0, I.jsx)(SV, {
+ g.error ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "error",
children: g.error
}) : null,
- m.isError ? /* @__PURE__ */ (0, I.jsx)(SV, {
+ m.isError ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -73221,7 +73280,7 @@ function N2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
}),
children: "无法读取标签候选"
}) : null,
- u ? /* @__PURE__ */ (0, I.jsx)(f$, {
+ u ? /* @__PURE__ */ (0, I.jsx)(p$, {
operation: "rename",
selected: [u],
scope: n,
@@ -73230,8 +73289,8 @@ function N2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
}) : null
] });
}
-function oMe({ 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 = QV(), 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 uMe({ 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 = eH(), 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,
@@ -73276,7 +73335,7 @@ function oMe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
_,
t.length
]);
- let w = p ? Rue(_, t, HP()) : {
+ let w = p ? Iue(_, t, WP()) : {
recent: [],
results: [],
create: ""
@@ -73319,7 +73378,7 @@ function oMe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
"aria-pressed": i,
onClick: () => E(t, i),
children: [
- /* @__PURE__ */ (0, I.jsx)(M2, { name: i ? "check" : "tags" }),
+ /* @__PURE__ */ (0, I.jsx)(z2, { name: i ? "check" : "tags" }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-pick-name": "",
children: n(t.k)
@@ -73339,8 +73398,8 @@ function oMe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
title: "添加标签",
"aria-label": "添加标签",
"aria-expanded": p,
- ...DV(!!i),
- children: /* @__PURE__ */ (0, I.jsx)(M2, { name: "plus" })
+ ...kV(!!i),
+ children: /* @__PURE__ */ (0, I.jsx)(z2, { name: "plus" })
}), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: l,
id: "tagPicker",
@@ -73353,7 +73412,7 @@ function oMe({ 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)(M2, { name: "search" }), /* @__PURE__ */ (0, I.jsx)("input", {
+ }) : /* @__PURE__ */ (0, I.jsx)(z2, { name: "search" }), /* @__PURE__ */ (0, I.jsx)("input", {
ref: d,
id: "tagPickSearch",
maxLength: 80,
@@ -73397,7 +73456,7 @@ function oMe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
onClick: () => {
C(), r(w.create);
},
- children: [/* @__PURE__ */ (0, I.jsx)(M2, { name: "plus" }), /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(z2, { name: "plus" }), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-pick-name": "",
children: [
"新建“",
@@ -73414,8 +73473,8 @@ function oMe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
})] });
}
// src/react/follow-detail/follow-tags.tsx
-function sMe({ item: e, label: t, actions: n }) {
- let r = DH(), i = () => H.invalidateQueries({ predicate: (e) => [
+function dMe({ item: e, label: t, actions: n }) {
+ let r = kH(), i = () => H.invalidateQueries({ predicate: (e) => [
"follow-feed",
"follow",
"tag-management"
@@ -73438,7 +73497,7 @@ function sMe({ item: e, label: t, actions: n }) {
}, "POST", t);
a(n), await i();
}, () => {
- o === "add" && UP(s);
+ o === "add" && GP(s);
let r = o === "add" ? "remove" : e.custom_tags?.includes(s) ? "add" : "restore";
n.toast(o === "add" ? `已添加标签「${t(s)}」` : `已删除标签「${t(s)}」`, { undo: async () => {
let t = await V("/api/follow/tag", {
@@ -73454,10 +73513,10 @@ function sMe({ item: e, label: t, actions: n }) {
"aria-label": "内容标签",
"data-follow-tag-editor": "",
"data-follow-detail-tags": "",
- children: [/* @__PURE__ */ (0, I.jsx)(N2, {
- tags: Uje(e, t).map((t) => ({
+ children: [/* @__PURE__ */ (0, I.jsx)(B2, {
+ tags: qje(e, t).map((t) => ({
k: t,
- cat: Hje(e, t)
+ cat: Kje(e, t)
})),
scope: "online",
adding: !!r.busy,
@@ -73466,30 +73525,30 @@ function sMe({ item: e, label: t, actions: n }) {
onOpen: n.openTag,
onAdd: (e) => o("add", e),
onRemove: (e) => o("remove", e.k),
- busyAttrs: () => DV(!!r.busy)
- }), r.error ? /* @__PURE__ */ (0, I.jsx)(SV, {
+ busyAttrs: () => kV(!!r.busy)
+ }), r.error ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "error",
children: r.error
}) : null]
});
}
// src/react/follow-detail/follow-detail-page.tsx
-var P2 = (e) => Number(e) > 0, cMe = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var V2 = (e) => Number(e) > 0, fMe = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
-}), F2 = R("external-link", "ui-externalmark");
-function lMe(e) {
+}), H2 = R("external-link", "ui-externalmark");
+function pMe(e) {
let { id: t, actions: n } = e, r = Pt({
- queryKey: e2(t),
- queryFn: ({ signal: e }) => n2(t, e)
+ queryKey: s2(t),
+ queryFn: ({ signal: e }) => l2(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)(fMe, {
+ return r.data ? /* @__PURE__ */ (0, I.jsx)(gMe, {
...e,
data: r.data,
- context: Wje(r.data, a),
+ context: Jje(r.data, a),
mediaIndex: o,
onMedia: s
}) : /* @__PURE__ */ (0, I.jsx)("div", {
@@ -73498,9 +73557,9 @@ function lMe(e) {
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-media": "",
"data-follow-detail-media": "none",
- children: [/* @__PURE__ */ (0, I.jsx)(I2, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {
+ children: [/* @__PURE__ */ (0, I.jsx)(U2, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-detail-placeholder": "",
- children: r.isError ? uMe(r.error) ? /* @__PURE__ */ (0, I.jsx)(dMe, { onBack: n.close }) : /* @__PURE__ */ (0, I.jsx)(GG, {
+ children: r.isError ? mMe(r.error) ? /* @__PURE__ */ (0, I.jsx)(hMe, { onBack: n.close }) : /* @__PURE__ */ (0, I.jsx)(qG, {
message: bn(r.error),
onRetry: () => void r.refetch()
}) : null
@@ -73508,8 +73567,8 @@ function lMe(e) {
})
});
}
-var uMe = (e) => e instanceof t2 || e instanceof or && e.status === 404;
-function dMe({ onBack: e }) {
+var mMe = (e) => e instanceof c2 || e instanceof or && e.status === 404;
+function hMe({ onBack: e }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-detail-gone": "",
onClick: (t) => {
@@ -73518,7 +73577,7 @@ function dMe({ onBack: e }) {
dangerouslySetInnerHTML: { __html: Rs("这条关注内容已不存在,可能已被来源删除或已清理。", { actionLabel: "回到关注" }) }
});
}
-var I2 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
+var U2 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -73527,8 +73586,8 @@ var I2 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function fMe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
- let { item: c, group: l } = e, u = Pje(c, l, n, i), d = vMe(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, F.useState)({
+function gMe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
+ let { item: c, group: l } = e, u = Rje(c, l, n, i), d = SMe(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, F.useState)({
key: "",
kind: ""
}), h = {
@@ -73548,20 +73607,20 @@ function fMe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
c,
u.kind
]);
- let g = !u.embedded.length && u.collection ? Fje(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, I.jsx)(B2, {
+ let g = !u.embedded.length && u.collection ? zje(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, I.jsx)(q2, {
item: c,
current: u.selected.index,
helpers: o,
actions: s,
onMedia: r
- }) : u.collection ? g ? /* @__PURE__ */ (0, I.jsx)(B2, {
+ }) : u.collection ? g ? /* @__PURE__ */ (0, I.jsx)(q2, {
item: g,
current: null,
helpers: o,
actions: s,
onMedia: r,
currentId: c.id
- }) : /* @__PURE__ */ (0, I.jsx)(hMe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(yMe, {
group: u.collection,
itemId: c.id,
helpers: o,
@@ -73571,14 +73630,14 @@ function fMe({ 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)(mMe, {
+ children: [/* @__PURE__ */ (0, I.jsx)(vMe, {
item: c,
media: u,
helpers: o,
actions: s,
onMedia: r,
issues: h
- }, f), /* @__PURE__ */ (0, I.jsx)(gMe, {
+ }, f), /* @__PURE__ */ (0, I.jsx)(bMe, {
item: c,
data: e,
context: t,
@@ -73588,9 +73647,9 @@ function fMe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
helpers: o,
actions: s
})]
- }), /* @__PURE__ */ (0, I.jsx)(k2, {
+ }), /* @__PURE__ */ (0, I.jsx)(I2, {
queue: _,
- children: a > 0 ? /* @__PURE__ */ (0, I.jsx)(pMe, {
+ children: a > 0 ? /* @__PURE__ */ (0, I.jsx)(_Me, {
data: e,
media: u.kind === "image" ? "images" : u.kind === "video" ? "videos" : i,
limit: a,
@@ -73600,23 +73659,23 @@ function fMe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
}) : null
})] });
}
-function pMe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
+function _Me({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
let o = Pt({
- queryKey: iMe(e.item.id, t, n),
- queryFn: ({ signal: r }) => aMe(e, t, n, r)
- }), [s] = (0, F.useState)(() => w2("正在读取推荐", {
+ queryKey: cMe(e.item.id, t, n),
+ queryFn: ({ signal: r }) => lMe(e, t, n, r)
+ }), [s] = (0, F.useState)(() => j2("正在读取推荐", {
cards: !0,
className: "related-skeleton"
})), c = (0, F.useMemo)(() => ({
openDetail: a.openItem,
openAuthor: a.openAuthor,
canFlip: () => !1
- }), [a]), l = j2(o.data?.pages || [], e, t, n), u = o.data?.pages.at(-1)?.sources || e.sources, d = {
+ }), [a]), l = R2(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)(O2, {
+ return /* @__PURE__ */ (0, I.jsx)(F2, {
online: !0,
"data-follow-related": "",
wireDrag: i.wireDrag,
@@ -73626,11 +73685,11 @@ function pMe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }
onRetry: () => {
o.refetch();
},
- children: o.data ? l.map((e) => /* @__PURE__ */ (0, I.jsx)(KZ, {
+ children: o.data ? l.map((e) => /* @__PURE__ */ (0, I.jsx)(qZ, {
variant: "next",
group: e,
media: t,
- authorSources: s2(e.primary, u),
+ authorSources: m2(e.primary, u),
context: d,
selected: !1,
selectMode: !1,
@@ -73643,8 +73702,8 @@ function pMe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }
})
});
}
-function mMe({ 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 = Gje(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 vMe({ 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 = Yje(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);
@@ -73658,14 +73717,14 @@ function mMe({ 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)(I2, { onClose: n.close }),
+ /* @__PURE__ */ (0, I.jsx)(U2, { onClose: n.close }),
h ? null : g ? /* @__PURE__ */ (0, I.jsx)("img", {
"data-follow-detail-poster": "",
"data-zoomable": p.length ? "" : void 0,
src: v,
alt: e.title,
referrerPolicy: "no-referrer",
- onClick: p.length ? () => void PZ(Math.max(0, l), p) : void 0,
+ onClick: p.length ? () => void IZ(Math.max(0, l), p) : void 0,
onError: () => {
_ && v !== _ ? (y(_), i.thumbFallback()) : i.failed();
}
@@ -73673,10 +73732,10 @@ function mMe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
"data-follow-detail-placeholder": "",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: bG(e.resource_provider || e.provider) }
+ dangerouslySetInnerHTML: { __html: SG(e.resource_provider || e.provider) }
}), /* @__PURE__ */ (0, I.jsx)("span", { children: "没有可用预览" })]
}),
- u ? /* @__PURE__ */ (0, I.jsx)(A2, {
+ u ? /* @__PURE__ */ (0, I.jsx)(L2, {
items: c,
position: l,
onSelect: r,
@@ -73693,11 +73752,11 @@ function mMe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
]
});
}
-var L2 = ({ kind: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var W2 = ({ kind: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-nothumb": "",
dangerouslySetInnerHTML: { __html: R(e === "image" ? "image-off" : "play") }
});
-function R2({ src: e }) {
+function G2({ src: e }) {
let [t, n] = (0, F.useState)(!1);
return t ? null : /* @__PURE__ */ (0, I.jsx)("img", {
src: e,
@@ -73707,27 +73766,27 @@ function R2({ src: e }) {
onError: () => n(!0)
});
}
-function z2(e) {
+function K2(e) {
return (0, F.useCallback)((t) => {
t && e.wireDrag(t);
}, [e]);
}
-function hMe({ group: e, itemId: t, helpers: n, actions: r }) {
- let i = _a(e), a = z2(n);
- return /* @__PURE__ */ (0, I.jsx)(zK, {
+function yMe({ group: e, itemId: t, helpers: n, actions: r }) {
+ let i = _a(e), a = K2(n);
+ return /* @__PURE__ */ (0, I.jsx)(VK, {
kind: "collection",
"data-follow-queue": "",
title: "视频合集",
onClose: r.close,
listRef: a,
- summary: `${SG(e.primary)} · ${i.length} 个视频`,
+ summary: `${wG(e.primary)} · ${i.length} 个视频`,
children: i.map((n) => {
- let i = e.duplicates.includes(n), a = zje(e, n, i ? n.provider_label : ""), o = i ? bG(n.provider, n.provider_label) : "";
- return /* @__PURE__ */ (0, I.jsxs)(BK, {
+ let i = e.duplicates.includes(n), a = Uje(e, n, i ? n.provider_label : ""), o = i ? SG(n.provider, n.provider_label) : "";
+ return /* @__PURE__ */ (0, I.jsxs)(HK, {
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)(R2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(L2, { kind: "video" }), P2(n.duration) ? /* @__PURE__ */ (0, I.jsx)("i", {
+ pic: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, I.jsx)(G2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(W2, { kind: "video" }), V2(n.duration) ? /* @__PURE__ */ (0, I.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
children: qn(n.duration)
@@ -73745,15 +73804,15 @@ function hMe({ group: e, itemId: t, helpers: n, actions: r }) {
children: a.label
}), /* @__PURE__ */ (0, I.jsx)("time", {
dateTime: n.published_at || "",
- children: jG(n)
+ children: NG(n)
})]
})]
}, n.id);
})
});
}
-function B2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
- let o = e.media_items || [], s = z2(r), c = [];
+function q2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
+ let o = e.media_items || [], s = K2(r), c = [];
o.forEach((e) => {
let t = e.resource_group || "ungrouped", n = c.find((e) => e.key === t);
n || (n = {
@@ -73763,26 +73822,26 @@ function B2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, c.push(n)), n.items.push(e);
});
let l = (t) => e.id === n ? a(t.index) : i.openItem(e.id, t.index);
- return /* @__PURE__ */ (0, I.jsx)(zK, {
+ return /* @__PURE__ */ (0, I.jsx)(VK, {
kind: "media",
"data-follow-queue": "",
title: "多媒体",
onClose: i.close,
listRef: s,
- summary: `${SG(e)} · ${o.length} 个媒体`,
- children: c.map((n) => [n.label ? /* @__PURE__ */ (0, I.jsx)(Rbe, {
+ summary: `${wG(e)} · ${o.length} 个媒体`,
+ children: c.map((n) => [n.label ? /* @__PURE__ */ (0, I.jsx)(zbe, {
label: n.label,
count: n.items.length
- }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, I.jsxs)(BK, {
+ }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, I.jsxs)(HK, {
current: n.index === t,
"data-follow-media-owner": e.id,
"data-follow-media-item": n.index,
"data-media-kind": n.media_kind || "",
onClick: () => l(n),
- pic: n.thumb_url ? /* @__PURE__ */ (0, I.jsx)(R2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(L2, { kind: n.media_kind || "" }),
+ pic: n.thumb_url ? /* @__PURE__ */ (0, I.jsx)(G2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(W2, { kind: n.media_kind || "" }),
children: [/* @__PURE__ */ (0, I.jsx)("b", {
"data-middle-truncate": "",
- children: Bje(n)
+ children: Wje(n)
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-truncate-end": "",
children: n.media_kind === "image" ? "图片" : "视频"
@@ -73790,13 +73849,13 @@ function B2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, n.index))])
});
}
-function gMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {
+function bMe({ 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 = OG(d, e), p = EG(e, s2(e, t.sources), n), m = p.credited ? "" : e.author && Hn(e.author) !== Hn(p.author) ? e.author : "", h = kG(e, n), g = e.status === "saved", { busy: _ } = i, v = (e) => _.has(e) ? {
+ }, f = AG(d, e), p = OG(e, m2(e, t.sources), n), m = p.credited ? "" : e.author && Hn(e.author) !== Hn(p.author) ? e.author : "", h = jG(e, n), g = e.status === "saved", { busy: _ } = i, v = (e) => _.has(e) ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
@@ -73812,7 +73871,7 @@ function gMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-stage-title": "",
"data-follow-detail-name": "",
"data-reveal-line": "",
- dangerouslySetInnerHTML: { __html: DG(d, e) + z(SG(e)) }
+ dangerouslySetInnerHTML: { __html: kG(d, e) + z(wG(e)) }
}), e.url ? /* @__PURE__ */ (0, I.jsx)("a", {
"data-follow-origin": "",
href: e.url,
@@ -73820,7 +73879,7 @@ function gMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
rel: "noreferrer noopener",
title: "打开来源页面",
"aria-label": "打开来源页面",
- dangerouslySetInnerHTML: { __html: F2 }
+ dangerouslySetInnerHTML: { __html: H2 }
}) : null]
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -73828,8 +73887,8 @@ function gMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-stage-meta": "",
"data-reveal-line": "",
children: [
- /* @__PURE__ */ (0, I.jsx)("span", { children: jG(e) }),
- P2(e.duration) ? /* @__PURE__ */ (0, I.jsx)("span", { children: qn(e.duration) }) : null,
+ /* @__PURE__ */ (0, I.jsx)("span", { children: NG(e) }),
+ V2(e.duration) ? /* @__PURE__ */ (0, I.jsx)("span", { children: qn(e.duration) }) : null,
f ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-badges": "",
dangerouslySetInnerHTML: { __html: f }
@@ -73846,7 +73905,7 @@ function gMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
children: "创作者"
}), /* @__PURE__ */ (0, I.jsx)("div", {
"data-id-row": "",
- children: p.entityName ? /* @__PURE__ */ (0, I.jsxs)(WZ, {
+ children: p.entityName ? /* @__PURE__ */ (0, I.jsxs)(GZ, {
name: p.entityName,
actions: s,
"data-id-cell": "creator",
@@ -73878,7 +73937,7 @@ function gMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
children: [m ? /* @__PURE__ */ (0, I.jsxs)("span", { children: ["发布者 ", m] }) : null, p.credited ? /* @__PURE__ */ (0, I.jsxs)("span", { children: ["署名含 ", p.credited] }) : null]
}) : null]
}),
- e.summary ? /* @__PURE__ */ (0, I.jsx)(_Me, { text: e.summary }, e.id) : null,
+ e.summary ? /* @__PURE__ */ (0, I.jsx)(xMe, { text: e.summary }, e.id) : null,
h ? /* @__PURE__ */ (0, I.jsx)("p", {
"data-follow-media-issue": "",
children: h
@@ -73901,9 +73960,9 @@ function gMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
href: e,
target: "_blank",
rel: "noreferrer noopener",
- children: [Rje(e), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [Hje(e), /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: F2 }
+ dangerouslySetInnerHTML: { __html: H2 }
})]
}, e))
}) : null,
@@ -74003,7 +74062,7 @@ function gMe({ 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)(R2, { src: e.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(cMe, { name: "image-off" }), /* @__PURE__ */ (0, I.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]
+ children: [e.thumb_url ? /* @__PURE__ */ (0, I.jsx)(G2, { src: e.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(fMe, { name: "image-off" }), /* @__PURE__ */ (0, I.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]
}, e.index))
})]
}) : null,
@@ -74012,7 +74071,7 @@ function gMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"aria-live": "polite",
children: i.failure
}),
- /* @__PURE__ */ (0, I.jsx)(sMe, {
+ /* @__PURE__ */ (0, I.jsx)(dMe, {
item: e,
label: o.tagLabel,
actions: s
@@ -74021,7 +74080,7 @@ function gMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
})
});
}
-function _Me({ text: e }) {
+function xMe({ 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;
@@ -74034,7 +74093,7 @@ function _Me({ text: e }) {
ref: t,
"data-follow-detail-summary": "",
"data-long-text": "",
- lang: $I(e),
+ lang: tL(e),
"data-clamped": n ? void 0 : "",
children: e
}), i || n ? /* @__PURE__ */ (0, I.jsx)(J, {
@@ -74046,8 +74105,8 @@ function _Me({ text: e }) {
children: n ? "收起" : "展开"
}) : null] });
}
-function vMe(e, t, n) {
- let r = e.id, i = e2(r), [a, o] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, F.useState)(""), l = (e, t) => o((n) => {
+function SMe(e, t, n) {
+ let r = e.id, i = s2(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) => {
@@ -74066,7 +74125,7 @@ function vMe(e, t, n) {
to: e
}),
onSuccess: (e, { to: n, was: i }) => {
- u(n), c(""), n === "ignored" && yW(), t.toast(Kje(n), { undo: i === "saved" ? void 0 : async () => {
+ u(n), c(""), n === "ignored" && xW(), t.toast(Xje(n), { undo: i === "saved" ? void 0 : async () => {
await V(jr, {
item: r,
to: i
@@ -74076,7 +74135,7 @@ function vMe(e, t, n) {
onError: d,
onSettled: (e, t, { to: n }) => l(n, !1)
}), p = Ft({
- mutationFn: () => V(jje, { item: r }),
+ mutationFn: () => V(Fje, { item: r }),
onSuccess: () => {
u("saved"), c(""), t.toast("已保存到数据库");
},
@@ -74084,7 +74143,7 @@ function vMe(e, t, n) {
onSettled: () => l("save", !1)
}), m = Ft({
mutationFn: async ({ index: e, hidden: t }) => {
- await V(Mje, {
+ await V(Ije, {
item: r,
media: e,
hidden: t
@@ -74100,12 +74159,12 @@ function vMe(e, t, n) {
onError: d,
onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)
}), h = Pt({
- queryKey: $ve(r),
- queryFn: ({ signal: e }) => nye(r, e)
+ queryKey: Zve(r),
+ queryFn: ({ signal: e }) => eye(r, e)
}).data?.want ?? null, g = Ft({
- mutationFn: async (e) => (e ? await vW([e.id]) : await _W({ follow: r }), !e),
+ mutationFn: async (e) => (e ? await bW([e.id]) : await yW({ follow: r }), !e),
onSuccess: (e) => {
- c(""), t.toast(e ? "已加入想要" : "已取消想要"), yW();
+ c(""), t.toast(e ? "已加入想要" : "已取消想要"), xW();
},
onError: d,
onSettled: () => l("want", !1)
@@ -74144,8 +74203,8 @@ function vMe(e, t, n) {
};
}
// src/react/components/identity-cell.tsx
-function V2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a }) {
- _L();
+function J2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a }) {
+ yL();
let o = tn(e, t.name, t.id), s = e === "performer" || e === "creator" ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-id-face": "",
dangerouslySetInnerHTML: { __html: `<span>${z($n(o))}</span>` + ho({
@@ -74191,7 +74250,7 @@ function V2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a })
children: c
});
}
-function H2({ people: e, onOpen: t }) {
+function Y2({ 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",
@@ -74224,7 +74283,7 @@ function H2({ people: e, onOpen: t }) {
});
}
// src/react/components/folded-title.ts
-function U2(e) {
+function X2(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;
@@ -74241,9 +74300,9 @@ function U2(e) {
};
}
// src/react/item-detail/catalog-picture.tsx
-function W2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
+function Z2({ 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)(EQ, {
+ if (n && t > 0 && e.code) return /* @__PURE__ */ (0, I.jsx)(DQ, {
item: {
code: e.code,
has_cover: !1,
@@ -74257,7 +74316,7 @@ function W2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
src: c,
alt: "",
onError: () => a(c)
- }) : i === c ? /* @__PURE__ */ (0, I.jsx)(SV, {
+ }) : i === c ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -74275,34 +74334,34 @@ function W2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
}, o);
}
// src/react/jav-detail/jav-detail.ts
-var G2 = (e) => ["jav-detail", e], K2 = (e, t, n = !1) => B(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), yMe = (e, t, n, r = !1) => B(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), q2 = (e, t) => H.ensureQueryData({
- queryKey: G2(e.code),
- queryFn: () => K2(e.code, t),
+var Q2 = (e) => ["jav-detail", e], $2 = (e, t, n = !1) => B(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), CMe = (e, t, n, r = !1) => B(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), e4 = (e, t) => H.ensureQueryData({
+ queryKey: Q2(e.code),
+ queryFn: () => $2(e.code, t),
staleTime: 216e5,
revalidateIfStale: !0
});
-function bMe(e, t) {
+function wMe(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 J2 = "peach.playback-target.v1", Y2 = [["m3u", "M3U 播放列表"], ["url", "网络播放地址 / VR"]];
-function xMe() {
+var t4 = "peach.playback-target.v1", n4 = [["m3u", "M3U 播放列表"], ["url", "网络播放地址 / VR"]];
+function TMe() {
try {
- return localStorage.getItem(J2) || `local:${localStorage.getItem("peach.local-player.v1") || "default"}`;
+ return localStorage.getItem(t4) || `local:${localStorage.getItem("peach.local-player.v1") || "default"}`;
} catch {
return "local:default";
}
}
-function X2({ id: e, onOpened: t }) {
- let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(xMe), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(""), [u, d] = (0, F.useState)(0), f = DH();
+function r4({ id: e, onOpened: t }) {
+ let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(TMe), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(""), [u, d] = (0, F.useState)(0), f = kH();
(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) || Y2.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) || n4.some(([t]) => t === e) ? e : t.players.length ? `local:${t.players[0].id}` : "m3u"));
}).catch((t) => {
- e.signal.aborted || (r([]), a((e) => Y2.some(([t]) => t === e) ? e : "m3u"), l(String(t.message || t)));
+ e.signal.aborted || (r([]), a((e) => n4.some(([t]) => t === e) ? e : "m3u"), l(String(t.message || t)));
}), () => e.abort();
}, [u]);
let p = () => void f.run("open", async (t) => {
@@ -74326,29 +74385,29 @@ function X2({ id: e, onOpened: t }) {
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-local-playback-row": "",
- children: [/* @__PURE__ */ (0, I.jsx)(f1, {
+ children: [/* @__PURE__ */ (0, I.jsx)(p1, {
id: `external-player-${e}`,
label: "外部播放器",
- options: [...(n || []).map((e) => [`local:${e.id}`, e.label]), ...Y2],
+ options: [...(n || []).map((e) => [`local:${e.id}`, e.label]), ...n4],
value: i,
disabled: n === null || !!f.busy,
epoch: u * 2 + Number(n !== null),
onPick: (e) => {
a(e), s(null), f.setError("");
try {
- localStorage.setItem(J2, e);
+ localStorage.setItem(t4, e);
} catch {}
}
}), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
"aria-label": "使用外部播放器打开",
disabled: n === null,
- ...DV(f.busy === "open"),
+ ...kV(f.busy === "open"),
onClick: p,
children: "打开"
})]
}),
- f.error || c ? /* @__PURE__ */ (0, I.jsx)(XH, { children: f.error || c }) : null,
+ f.error || c ? /* @__PURE__ */ (0, I.jsx)(QH, { children: f.error || c }) : null,
c ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
disabled: !!f.busy,
@@ -74357,16 +74416,16 @@ function X2({ id: e, onOpened: t }) {
},
children: "重新检测播放器"
}) : null,
- o ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(yV, {
+ o ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(xV, {
label: "网络播放地址",
value: o.url,
isReadOnly: !0
- }), /* @__PURE__ */ (0, I.jsx)(YH, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })] }) : null
+ }), /* @__PURE__ */ (0, I.jsx)(ZH, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })] }) : null
]
});
}
// src/react/boardui/components/base/switch/switch.tsx
-var SMe = qI({
+var EMe = YI({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -74428,8 +74487,8 @@ var SMe = qI({
}
}
});
-function CMe({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = SMe[t];
+function DMe({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = EMe[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"),
@@ -74439,12 +74498,12 @@ function CMe({ state: e, size: t = "md", shape: n = "pill" }) {
})
});
}
-function Z2({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsx)(wme, {
+function i4({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
+ return /* @__PURE__ */ (0, I.jsx)(Sme, {
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)(CMe, {
+ children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(DMe, {
state: e,
size: n,
shape: r
@@ -74455,12 +74514,12 @@ function Z2({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
});
}
// src/react/cover-crop/cover-crop.ts
-var wMe = "/api/cover-crop", TMe = (e, t) => V(wMe, {
+var OMe = "/api/cover-crop", kMe = (e, t) => V(OMe, {
code: e,
box: t
});
// src/react/cover-crop/cover-crop-page.tsx
-function Q2({ className: e }) {
+function a4({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -74473,7 +74532,7 @@ function Q2({ className: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-crop" })
});
}
-function EMe({ code: e, coverUrl: t, box: n, onSaved: r }) {
+function AMe({ 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",
@@ -74483,13 +74542,13 @@ function EMe({ 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)(Q2, { className: "size-3.75" })
- }), /* @__PURE__ */ (0, I.jsx)(bV, {
+ children: /* @__PURE__ */ (0, I.jsx)(a4, { className: "size-3.75" })
+ }), /* @__PURE__ */ (0, I.jsx)(SV, {
isOpen: i,
onOpenChange: a,
width: "cover-crop",
label: "裁剪封面",
- children: /* @__PURE__ */ (0, I.jsx)(DMe, {
+ children: /* @__PURE__ */ (0, I.jsx)(jMe, {
code: e,
coverUrl: t,
box: n,
@@ -74498,9 +74557,9 @@ function EMe({ code: e, coverUrl: t, box: n, onSaved: r }) {
})
})] });
}
-function DMe({ 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 = QV(), f = Ft({
- mutationFn: (t) => TMe(e, t),
+function jMe({ 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 = eH(), f = Ft({
+ mutationFn: (t) => kMe(e, t),
onSuccess: (e) => {
i(), r(e.poster_box);
}
@@ -74512,19 +74571,19 @@ function DMe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
y0: n.y0,
x1: n.x1,
y1: n.y1
- } : sDe(e, to);
- c(cQ(t, e, null));
+ } : lDe(e, to);
+ c(lQ(t, e, null));
}
let m = f.isPending;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, I.jsx)(xV, { children: /* @__PURE__ */ (0, I.jsx)(Q2, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, I.jsx)(CV, { children: /* @__PURE__ */ (0, I.jsx)(a4, { className: "size-6" }) }),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)(eR, {
+ /* @__PURE__ */ (0, I.jsx)(nR, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: "裁剪封面"
@@ -74533,14 +74592,14 @@ function DMe({ 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)(SV, {
+ f.error ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "error",
children: cr(f.error)
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(bL, {
- icon: LB,
+ /* @__PURE__ */ (0, I.jsx)(SL, {
+ icon: zB,
size: "small",
"aria-label": "关闭",
onClick: i
@@ -74550,24 +74609,24 @@ function DMe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
/* @__PURE__ */ (0, I.jsx)("div", {
ref: d,
className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",
- children: /* @__PURE__ */ (0, I.jsx)(pQ, {
+ children: /* @__PURE__ */ (0, I.jsx)(mQ, {
src: t,
aspect: l ? to : null,
box: s,
size: a,
label: `${e} 的正封取景框`,
onSize: (e) => {
- oQ(e) && p(e);
+ sQ(e) && p(e);
},
onBox: c
})
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",
- children: [/* @__PURE__ */ (0, I.jsx)(Z2, {
+ children: [/* @__PURE__ */ (0, I.jsx)(i4, {
isSelected: l,
onChange: (e) => {
- u(e), e && s && a && c(cQ(s, a, to));
+ u(e), e && s && a && c(lQ(s, a, to));
},
children: /* @__PURE__ */ (0, I.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -74577,14 +74636,14 @@ function DMe({ 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",
- ...DV(m),
+ ...kV(m),
onClick: () => {
m || f.mutate(null);
},
children: "恢复默认"
}), /* @__PURE__ */ (0, I.jsx)(J, {
disabled: !s || !a,
- ...DV(m),
+ ...kV(m),
onClick: () => {
s && !m && f.mutate(s);
},
@@ -74595,21 +74654,21 @@ function DMe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
] });
}
// src/react/item-detail/item-detail-page.tsx
-var $2 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var o4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
-}), e4 = ({ html: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+}), s4 = ({ html: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: e }
-}), t4 = (e) => Number(e) > 0 ? Yn(Number(e)) : "大小未知";
-function OMe(e) {
+}), c4 = (e) => Number(e) > 0 ? Yn(Number(e)) : "大小未知";
+function MMe(e) {
let { queue: t, actions: n } = e, r = Pt({
- queryKey: t ? CP(t) : ["item-queue", "none"],
- queryFn: ({ signal: n }) => MP(t, e.helpers, n),
+ queryKey: t ? TP(t) : ["item-queue", "none"],
+ queryFn: ({ signal: n }) => PP(t, e.helpers, n),
enabled: !!t
- }), i = t && r.data || null, a = i ? FP(i, e.id) : t ? null : e.id, o = Pt({
- queryKey: SP(a ?? 0),
- queryFn: ({ signal: e }) => jP(a, e),
+ }), i = t && r.data || null, a = i ? LP(i, e.id) : t ? null : e.id, o = Pt({
+ queryKey: wP(a ?? 0),
+ queryFn: ({ signal: e }) => NP(a, e),
enabled: a != null
});
if (!o.data || t && !i) {
@@ -74620,9 +74679,9 @@ function OMe(e) {
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-media": "",
"data-item-media": "none",
- children: [/* @__PURE__ */ (0, I.jsx)(n4, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {
+ children: [/* @__PURE__ */ (0, I.jsx)(l4, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {
"data-item-placeholder": "",
- children: e ? /* @__PURE__ */ (0, I.jsx)(GG, {
+ children: e ? /* @__PURE__ */ (0, I.jsx)(qG, {
message: bn(e),
onRetry: () => {
r.error && r.refetch(), o.error && o.refetch();
@@ -74632,13 +74691,13 @@ function OMe(e) {
})
});
}
- return /* @__PURE__ */ (0, I.jsx)(kMe, {
+ return /* @__PURE__ */ (0, I.jsx)(NMe, {
...e,
- item: Fue(o.data, i),
+ item: Nue(o.data, i),
queue: i
}, o.data.id);
}
-var n4 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
+var l4 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -74647,23 +74706,23 @@ var n4 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function kMe(e) {
- let { item: t, queue: n, actions: r, helpers: i } = e, a = WMe(t, r, i.tagLabel), o = (0, F.useRef)(t);
+function NMe(e) {
+ let { item: t, queue: n, actions: r, helpers: i } = e, a = JMe(t, r, i.tagLabel), o = (0, F.useRef)(t);
(0, F.useLayoutEffect)(() => {
r.present(o.current, n);
}, [r]), (0, F.useEffect)(() => {
- n?.kind === "playlist" && V(wP, {
+ n?.kind === "playlist" && V(EP, {
action: "progress",
id: n.playlistId,
asset_id: t.id
}).catch(() => {});
}, []);
- let s = nP() ? "" : Gue(t, i.sourceOffline(String(t.root_id || t.location || ""))), c = IP(n, t.id);
+ let s = iP() ? "" : Uue(t, i.sourceOffline(String(t.root_id || t.location || ""))), c = RP(n, t.id);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-grid": "",
"data-with-queue": n ? "" : void 0,
"data-item-detail": "",
- children: [/* @__PURE__ */ (0, I.jsx)(AMe, {
+ children: [/* @__PURE__ */ (0, I.jsx)(PMe, {
item: t,
gate: s,
helpers: i,
@@ -74676,22 +74735,22 @@ function kMe(e) {
autoplay: !0
}, c.id);
}
- }), /* @__PURE__ */ (0, I.jsx)(FMe, {
+ }), /* @__PURE__ */ (0, I.jsx)(zMe, {
item: t,
queue: n,
write: a,
helpers: i,
actions: r
})]
- }), /* @__PURE__ */ (0, I.jsx)(k2, {
+ }), /* @__PURE__ */ (0, I.jsx)(I2, {
queueCards: n?.kind === "parts" || n?.kind === "editions" ? n.items.length : void 0,
- queue: n ? /* @__PURE__ */ (0, I.jsx)(MMe, {
+ queue: n ? /* @__PURE__ */ (0, I.jsx)(IMe, {
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)(UMe, {
+ children: e.relatedLimit > 0 && (!n || n.kind === "parts" || n.kind === "editions") ? /* @__PURE__ */ (0, I.jsx)(qMe, {
...e,
item: n ? {
...t,
@@ -74700,12 +74759,12 @@ function kMe(e) {
}) : null
})] });
}
-function AMe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {
+function PMe({ 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: G2(e.code || ""),
+ queryKey: Q2(e.code || ""),
queryFn: ({ signal: t }) => {
let n = d.current;
- return d.current = !1, K2(e.code, t, n);
+ return d.current = !1, $2(e.code, t, n);
},
staleTime: 216e5,
enabled: !!e.is_jav && !!e.code && !e.sample_images?.length
@@ -74750,7 +74809,7 @@ function AMe({ 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)(n4, { onClose: r.close }),
+ /* @__PURE__ */ (0, I.jsx)(l4, { onClose: r.close }),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-player-toolbar": "",
children: [
@@ -74760,21 +74819,21 @@ function AMe({ 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)($2, { name: l === -2 ? "image" : "play" }), l === -2 ? "查看图片" : "播放正片"]
+ children: [/* @__PURE__ */ (0, I.jsx)(o4, { 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)(W2, {
+ h ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [l === -2 ? null : /* @__PURE__ */ (0, I.jsx)(Z2, {
item: e,
image: l,
source: p.find((e) => e.index === l)?.source
- }, e.id), /* @__PURE__ */ (0, I.jsx)(A2, {
+ }, e.id), /* @__PURE__ */ (0, I.jsx)(L2, {
items: m,
position: Math.max(0, m.findIndex((e) => e.index === l)),
onSelect: g,
below: !0,
- renderThumbnail: (t) => /* @__PURE__ */ (0, I.jsx)(W2, {
+ renderThumbnail: (t) => /* @__PURE__ */ (0, I.jsx)(Z2, {
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,
@@ -74790,7 +74849,7 @@ function AMe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
className: "relative block h-12 w-20 skeleton-sheen"
}) : /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...DV(f.isFetching),
+ ...kV(f.isFetching),
title: f.data?.message || bn(f.error),
"aria-label": "立即重试样图",
onClick: () => {
@@ -74799,7 +74858,7 @@ function AMe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
children: "立即重试"
})
}) : null,
- t === "offline" ? /* @__PURE__ */ (0, I.jsx)(jMe, {
+ t === "offline" ? /* @__PURE__ */ (0, I.jsx)(FMe, {
item: e,
badge: y,
helpers: n,
@@ -74810,7 +74869,7 @@ function AMe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
children: [
/* @__PURE__ */ (0, I.jsx)("b", { children: "ISO 原盘" }),
/* @__PURE__ */ (0, I.jsx)("span", { children: "请使用支持原盘的外部播放器打开。" }),
- /* @__PURE__ */ (0, I.jsx)(X2, {
+ /* @__PURE__ */ (0, I.jsx)(r4, {
id: e.id,
onOpened: () => r.toast("已请求打开本地播放器")
}, e.id)
@@ -74820,7 +74879,7 @@ function AMe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
role: "status",
"data-item-gate": "online",
children: [
- /* @__PURE__ */ (0, I.jsx)(e4, { html: y }),
+ /* @__PURE__ */ (0, I.jsx)(s4, { html: y }),
/* @__PURE__ */ (0, I.jsx)("b", { children: "在线作品" }),
/* @__PURE__ */ (0, I.jsx)("span", { children: "这条没有对应的关注条目,媒体地址无从解析。" }),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -74835,12 +74894,12 @@ function AMe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
id: "gate",
"data-item-gate": "metered",
onClick: () => s("clicked"),
- children: [/* @__PURE__ */ (0, I.jsx)(e4, { html: y }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["点此开始拉流 · ", t4(e.size)] })]
+ children: [/* @__PURE__ */ (0, I.jsx)(s4, { html: y }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["点此开始拉流 · ", c4(e.size)] })]
}) : null
]
});
}
-function jMe({ item: e, badge: t, helpers: n, actions: r }) {
+function FMe({ 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);
@@ -74851,7 +74910,7 @@ function jMe({ item: e, badge: t, helpers: n, actions: r }) {
role: "status",
"data-item-gate": "offline",
children: [
- /* @__PURE__ */ (0, I.jsx)(e4, { html: t }),
+ /* @__PURE__ */ (0, I.jsx)(s4, { 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", {
@@ -74865,8 +74924,8 @@ function jMe({ item: e, badge: t, helpers: n, actions: r }) {
]
});
}
-function MMe({ queue: e, itemId: t, helpers: n, actions: r }) {
- let i = Vue(e), a = (0, F.useRef)(null), o = PMe(e, t, r), s = (0, F.useRef)(o);
+function IMe({ queue: e, itemId: t, helpers: n, actions: r }) {
+ let i = zue(e), a = (0, F.useRef)(null), o = RMe(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, {
@@ -74874,7 +74933,7 @@ function MMe({ 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 = NMe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)("button", {
+ }, [n, e.kind]), l = LMe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-save-mix": "",
title: "保存为播放列表",
@@ -74893,7 +74952,7 @@ function MMe({ queue: e, itemId: t, helpers: n, actions: r }) {
seedId: e.seedId,
playlistId: e.playlistId
};
- return /* @__PURE__ */ (0, I.jsx)(zK, {
+ return /* @__PURE__ */ (0, I.jsx)(VK, {
kind: e.kind,
title: i.title,
summary: i.summary,
@@ -74902,11 +74961,11 @@ function MMe({ queue: e, itemId: t, helpers: n, actions: r }) {
listRef: c,
children: e.items.map((i) => {
let a = e.kind === "editions" && i.edition_label ? /* @__PURE__ */ (0, I.jsx)("i", {
- className: `javedition ${zue[i.edition_label] || "censored"}`,
+ className: `javedition ${Lue[i.edition_label] || "censored"}`,
"data-queue-edition": "",
children: i.edition_label
- }) : null, s = e.kind === "playlist" && PP(i);
- return /* @__PURE__ */ (0, I.jsxs)(BK, {
+ }) : null, s = e.kind === "playlist" && IP(i);
+ return /* @__PURE__ */ (0, I.jsxs)(HK, {
current: i.id === t,
"data-queue-item": i.id,
row: { "data-queue-row": i.id },
@@ -74916,25 +74975,25 @@ function MMe({ 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)(e4, { html: Do(i, n.javImage()) }), /* @__PURE__ */ (0, I.jsx)("i", {
+ pic: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(s4, { 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)(e4, { html: Ao(i) }),
+ lead: /* @__PURE__ */ (0, I.jsx)(s4, { 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)($2, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, I.jsx)(o4, { 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)($2, { name: "x" })
+ children: /* @__PURE__ */ (0, I.jsx)(o4, { name: "x" })
})]
}) : null,
children: [/* @__PURE__ */ (0, I.jsxs)("span", {
@@ -74945,14 +75004,14 @@ function MMe({ queue: e, itemId: t, helpers: n, actions: r }) {
})]
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-truncate-end": "",
- children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" || e.kind === "editions" && i.part_label ? WP(i.part_label) : jo(i, n.tagLabel)
+ children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" || e.kind === "editions" && i.part_label ? KP(i.part_label) : jo(i, n.tagLabel)
})]
}, i.id);
})
});
}
-function NMe(e, t) {
- let n = Ft({ mutationFn: (t) => V(wP, {
+function LMe(e, t) {
+ let n = Ft({ mutationFn: (t) => V(EP, {
action: "create",
name: t,
asset_ids: e.items.map((e) => e.id),
@@ -74965,11 +75024,11 @@ function NMe(e, t) {
save: (e) => n.mutateAsync(e)
});
}
-function PMe(e, t, n) {
- let r = CP({
+function RMe(e, t, n) {
+ let r = TP({
kind: "playlist",
playlistId: e.playlistId
- }), i = (e) => (H.setQueryData(r, NP(e)), e), a = (t) => V(wP, {
+ }), i = (e) => (H.setQueryData(r, FP(e)), e), a = (t) => V(EP, {
id: e.playlistId,
...t
}).then((e) => e.playlist), o = Ft({
@@ -74985,8 +75044,8 @@ function PMe(e, t, n) {
return {
move: async (t, r, c) => {
if (e.kind !== "playlist") return;
- let l = Uue(s, t, r, c);
- if (Wue(l, s)) return;
+ let l = Vue(s, t, r, c);
+ if (Hue(l, s)) return;
let u = s;
await o.mutateAsync(l), n.toast("已调整播放顺序", { undo: async () => {
i(await a({
@@ -75028,7 +75087,7 @@ function PMe(e, t, n) {
}
};
}
-function FMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
+function zMe({ 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": "",
@@ -75036,7 +75095,7 @@ function FMe({ 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)(IMe, {
+ /* @__PURE__ */ (0, I.jsx)(BMe, {
item: e,
queue: t,
helpers: r,
@@ -75048,7 +75107,7 @@ function FMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-live": "polite",
children: n.sourceState
}),
- /* @__PURE__ */ (0, I.jsx)(RMe, {
+ /* @__PURE__ */ (0, I.jsx)(HMe, {
item: e,
write: n
}),
@@ -75059,7 +75118,7 @@ function FMe({ 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)($2, { name: "monitor" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [
+ children: [/* @__PURE__ */ (0, I.jsx)(o4, { name: "monitor" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [
e.width,
"×",
e.height
@@ -75067,11 +75126,11 @@ function FMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
}) : null,
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, I.jsx)($2, { name: "hard-drive" }), /* @__PURE__ */ (0, I.jsx)("span", { children: t4(e.size) })]
+ children: [/* @__PURE__ */ (0, I.jsx)(o4, { name: "hard-drive" }), /* @__PURE__ */ (0, I.jsx)("span", { children: c4(e.size) })]
}),
e.release_date ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, I.jsx)($2, { name: "calendar" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.release_date })]
+ children: [/* @__PURE__ */ (0, I.jsx)(o4, { name: "calendar" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.release_date })]
}) : null,
e.region_label ? /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
@@ -75079,32 +75138,32 @@ function FMe({ 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)($2, { name: "globe" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
+ children: [/* @__PURE__ */ (0, I.jsx)(o4, { 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)(X2, {
+ (e.medium || "video") === "video" && !a && !String(e.name || "").toLowerCase().endsWith(".iso") ? /* @__PURE__ */ (0, I.jsx)(r4, {
id: e.id,
onOpened: () => i.toast("已请求打开本地播放器")
}, e.id) : null,
- /* @__PURE__ */ (0, I.jsx)(zMe, {
+ /* @__PURE__ */ (0, I.jsx)(UMe, {
item: e,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, I.jsx)(BMe, {
+ /* @__PURE__ */ (0, I.jsx)(WMe, {
item: e,
write: n,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, I.jsx)(ZK, {
- assetIds: XK([e], r.javImage()),
+ /* @__PURE__ */ (0, I.jsx)($K, {
+ assetIds: QK([e], r.javImage()),
onComplete: () => {
- H.invalidateQueries({ queryKey: SP(e.id) });
+ H.invalidateQueries({ queryKey: wP(e.id) });
}
}),
- /* @__PURE__ */ (0, I.jsx)(VMe, { item: e }),
+ /* @__PURE__ */ (0, I.jsx)(GMe, { item: e }),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-actions": "",
"data-item-feedback": "",
@@ -75118,7 +75177,7 @@ function FMe({ 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)($2, { name: "thumbs-up" })
+ children: /* @__PURE__ */ (0, I.jsx)(o4, { name: "thumbs-up" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -75130,7 +75189,7 @@ function FMe({ 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)($2, { name: "notebook-pen" })
+ children: /* @__PURE__ */ (0, I.jsx)(o4, { name: "notebook-pen" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -75141,7 +75200,7 @@ function FMe({ 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)($2, { name: "thumbs-down" })
+ children: /* @__PURE__ */ (0, I.jsx)(o4, { name: "thumbs-down" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -75152,7 +75211,7 @@ function FMe({ 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)($2, { name: "eye" })
+ children: /* @__PURE__ */ (0, I.jsx)(o4, { name: "eye" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -75163,7 +75222,7 @@ function FMe({ 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)($2, { name: e.watch_later ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, I.jsx)(o4, { name: e.watch_later ? "check" : "bookmark-plus" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -75172,7 +75231,7 @@ function FMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-label": "加入播放列表",
title: "加入播放列表",
onClick: () => i.addToPlaylist(e),
- children: /* @__PURE__ */ (0, I.jsx)($2, { name: "playlist" })
+ children: /* @__PURE__ */ (0, I.jsx)(o4, { name: "playlist" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -75183,7 +75242,7 @@ function FMe({ 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)($2, { name: "sparkles" })
+ children: /* @__PURE__ */ (0, I.jsx)(o4, { name: "sparkles" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -75194,11 +75253,11 @@ function FMe({ 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)($2, { name: "trash" })
+ children: /* @__PURE__ */ (0, I.jsx)(o4, { name: "trash" })
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(HMe, {
+ /* @__PURE__ */ (0, I.jsx)(KMe, {
item: e,
open: s,
write: n
@@ -75209,7 +75268,7 @@ function FMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
...o("o"),
onClick: () => n.feedback("o"),
children: [
- /* @__PURE__ */ (0, I.jsx)($2, { name: "sperm" }),
+ /* @__PURE__ */ (0, I.jsx)(o4, { name: "sperm" }),
/* @__PURE__ */ (0, I.jsx)("span", { children: "记一次高潮" }),
/* @__PURE__ */ (0, I.jsx)("b", {
className: "mono",
@@ -75222,8 +75281,8 @@ function FMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
});
}
-function IMe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
- let { text: a, expanded: o, foldable: s, toggle: c } = U2(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Hue(e, t);
+function BMe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
+ let { text: a, expanded: o, foldable: s, toggle: c } = X2(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Bue(e, t);
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-item-title": "",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -75250,23 +75309,23 @@ function IMe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
"aria-label": o ? "收起标题" : "展开标题",
title: o ? "收起标题" : "展开完整标题",
onClick: c,
- children: /* @__PURE__ */ (0, I.jsx)(KH, {})
+ children: /* @__PURE__ */ (0, I.jsx)(JH, {})
}),
e.has_cover && (e.cover_key || e.code) ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-cover-crop-host": "",
- children: /* @__PURE__ */ (0, I.jsx)(EMe, {
+ children: /* @__PURE__ */ (0, I.jsx)(AMe, {
code: e.cover_key || e.code || "",
coverUrl: co(e),
box: e.poster_box || null,
onSaved: (t) => {
H.invalidateQueries({
- queryKey: SP(e.id),
+ queryKey: wP(e.id),
exact: !0
- }), vP((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
+ }), bP((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
}
})
}) : null,
- e.location === "online" ? null : /* @__PURE__ */ (0, I.jsx)(LMe, {
+ e.location === "online" ? null : /* @__PURE__ */ (0, I.jsx)(VMe, {
id: e.id,
actions: r,
onStatus: i
@@ -75276,7 +75335,7 @@ function IMe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
})
});
}
-function LMe({ id: e, actions: t, onStatus: n }) {
+function VMe({ 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 () => {
@@ -75306,18 +75365,18 @@ function LMe({ id: e, actions: t, onStatus: n }) {
"aria-disabled": !0
} : {},
onClick: () => void o(),
- children: /* @__PURE__ */ (0, I.jsx)($2, { name: "folder-sync" })
+ children: /* @__PURE__ */ (0, I.jsx)(o4, { name: "folder-sync" })
})] });
}
-function RMe({ item: e, write: t }) {
- let n = bP(e.rating);
+function HMe({ item: e, write: t }) {
+ let n = SP(e.rating);
return /* @__PURE__ */ (0, I.jsxs)("div", {
id: "detailRating",
role: "group",
"data-item-rating": "",
"aria-label": "评分",
- "data-value": yP(e.rating),
- children: [/* @__PURE__ */ (0, I.jsx)(uY, {
+ "data-value": xP(e.rating),
+ children: [/* @__PURE__ */ (0, I.jsx)(fY, {
value: n,
onRate: (e) => t.rate(e),
busyStar: [
@@ -75331,14 +75390,14 @@ function RMe({ item: e, write: t }) {
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-rating-value": "",
"aria-live": "polite",
- children: jue(e.rating)
+ children: kue(e.rating)
})]
});
}
-function zMe({ item: e, actions: t }) {
- let n = (0, F.useMemo)(() => Iue(e), [e]), [r, i] = (0, F.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
+function UMe({ item: e, actions: t }) {
+ let n = (0, F.useMemo)(() => Pue(e), [e]), [r, i] = (0, F.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
let a = e === "performer" && i >= 8 && !r;
- return /* @__PURE__ */ (0, I.jsx)(V2, {
+ return /* @__PURE__ */ (0, I.jsx)(J2, {
kind: e,
person: n,
onOpen: t.openEntity,
@@ -75370,7 +75429,7 @@ function zMe({ item: e, actions: t }) {
onClick: t.openUnowned,
children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-id-face": "",
- children: /* @__PURE__ */ (0, I.jsx)($2, { name: "user-round" })
+ children: /* @__PURE__ */ (0, I.jsx)(o4, { name: "user-round" })
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-id-name": "",
children: "未归属"
@@ -75382,7 +75441,7 @@ function zMe({ item: e, actions: t }) {
size: "small",
id: "castMore",
"data-cast-more": "",
- trailingIcon: jB,
+ trailingIcon: NB,
"aria-expanded": !1,
onClick: () => i(!0),
children: [
@@ -75401,18 +75460,18 @@ function zMe({ item: e, actions: t }) {
children: [c.length ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-identity-primary": "",
children: c
- }) : null, /* @__PURE__ */ (0, I.jsx)(H2, {
+ }) : null, /* @__PURE__ */ (0, I.jsx)(Y2, {
people: n.series,
onOpen: t.openEntity
})]
});
}
-function BMe({ item: e, write: t, helpers: n, actions: r }) {
+function WMe({ item: e, write: t, helpers: n, actions: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-item-tags": "",
- children: /* @__PURE__ */ (0, I.jsx)(N2, {
+ children: /* @__PURE__ */ (0, I.jsx)(B2, {
id: "detailTags",
- tags: Lue(e, n),
+ tags: Fue(e, n),
candidates: n.tagCandidates(),
label: n.tagLabel,
adding: [...t.busy].some((e) => e.startsWith("add:")),
@@ -75423,8 +75482,8 @@ function BMe({ item: e, write: t, helpers: n, actions: r }) {
})
});
}
-function VMe({ item: e }) {
- let t = Kue(e);
+function GMe({ item: e }) {
+ let t = Wue(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-item-trace": "",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -75458,7 +75517,7 @@ function VMe({ item: e }) {
})]
});
}
-function HMe({ item: e, open: t, write: n }) {
+function KMe({ 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();
@@ -75497,12 +75556,12 @@ function HMe({ item: e, open: t, write: n }) {
})]
});
}
-function UMe(e) {
+function qMe(e) {
let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = Pt({
- queryKey: Mue(t.id, n),
- queryFn: async ({ signal: e }) => (await B(Pue(t.id, n), e)).items || []
+ queryKey: Aue(t.id, n),
+ queryFn: async ({ signal: e }) => (await B(Mue(t.id, n), e)).items || []
}), [o] = (0, F.useState)(() => r.relatedSkeletonHtml());
- return /* @__PURE__ */ (0, I.jsx)(O2, {
+ return /* @__PURE__ */ (0, I.jsx)(F2, {
wireDrag: r.wireDrag,
busy: a.isPending,
empty: a.data?.length === 0,
@@ -75510,7 +75569,7 @@ function UMe(e) {
onRetry: () => {
a.refetch();
},
- children: a.data ? /* @__PURE__ */ (0, I.jsx)(yY, {
+ children: a.data ? /* @__PURE__ */ (0, I.jsx)(xY, {
mode: "items",
variant: "next",
items: a.data,
@@ -75523,11 +75582,11 @@ function UMe(e) {
revision: 0,
wireDrag: r.wireDrag,
skeletonHtml: () => ""
- }) : /* @__PURE__ */ (0, I.jsx)(e4, { html: o })
+ }) : /* @__PURE__ */ (0, I.jsx)(s4, { html: o })
});
}
-function WMe(e, t, n) {
- let r = e.id, i = SP(r), [a, o] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), d = (e, t) => o((n) => {
+function JMe(e, t, n) {
+ let r = e.id, i = wP(r), [a, o] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), d = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
}), f = () => H.getQueryData(i) || e, p = (e) => {
@@ -75543,7 +75602,7 @@ function WMe(e, t, n) {
rating: t.rating,
o_count: t.o_count
};
- return _P(r, n), t;
+ return yP(r, n), t;
}, m = (e, t) => V(e, {
id: r,
...t
@@ -75558,7 +75617,7 @@ function WMe(e, t, n) {
run: n
}));
}, _ = async (e, t) => {
- let n = await m(TP, t === void 0 ? { kind: e } : {
+ let n = await m(DP, t === void 0 ? { kind: e } : {
kind: e,
value: t
});
@@ -75578,21 +75637,21 @@ function WMe(e, t, n) {
"aria-disabled": !0
} : {},
rate: (e) => g(`rate:${e}`, "评分", async () => {
- let n = f().rating || 0, r = xP(n, e);
- await _("rate", r), t.toast(r ? `已评 ${bP(r)} 星` : "已取消评分", { undo: async () => {
+ let n = f().rating || 0, r = CP(n, e);
+ await _("rate", r), t.toast(r ? `已评 ${SP(r)} 星` : "已取消评分", { undo: async () => {
await _("rate", n);
} });
}),
feedback: (e) => g(e, "操作", async () => {
let n = { feedback: f().feedback || null }, r = await _(e);
- t.toast(GP(e, r), { undo: async () => {
+ t.toast(qP(e, r), { undo: async () => {
e === "o" ? await _("o-undo") : e === "dispose" ? await _("dispose") : (r.feedback && await _(r.feedback), n.feedback && await _(n.feedback)), await t.trashChanged(f().disposal || null, !0);
} }), e === "dispose" && await t.trashChanged(r.disposal || null, !1);
}),
later: () => g("later", "更新稍后看", async () => {
- let e = await m(DP, {});
+ let e = await m(kP, {});
p({ watch_later: e.watch_later }), t.toast(e.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
- p({ watch_later: (await m(DP, {})).watch_later });
+ p({ watch_later: (await m(kP, {})).watch_later });
} });
}),
quality: () => g("quality", "更新版本需求", async () => {
@@ -75602,9 +75661,9 @@ function WMe(e, t, n) {
}, n = (e) => p({
better_version: e.better_version,
better_version_reason: e.better_version_reason || ""
- }), r = await m(OP, { wanted: !e.wanted });
+ }), r = await m(AP, { wanted: !e.wanted });
n(r), t.toast(r.better_version ? "已标记寻找更好版本" : "已取消寻找更好版本", { undo: async () => {
- n(await m(OP, e));
+ n(await m(AP, e));
} });
}),
preference: ({ liked: e, reason: n }) => {
@@ -75618,7 +75677,7 @@ function WMe(e, t, n) {
});
u("保存中…");
try {
- o(await m(kP, {
+ o(await m(jP, {
liked: a,
reason: i
}));
@@ -75628,7 +75687,7 @@ function WMe(e, t, n) {
u("已保存"), setTimeout(() => u((e) => e === "已保存" ? "" : e), 1400);
let s = f();
t.toast(s.liked ? "已保存喜欢偏好" : "已取消喜欢", { undo: async () => {
- o(await m(kP, r));
+ o(await m(jP, r));
} });
});
},
@@ -75637,41 +75696,41 @@ function WMe(e, t, n) {
operation: "remove",
tag: e.k
})).ok) throw Error("标签未删除");
- p((t) => zP(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
- await m(EP, {
+ p((t) => VP(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
+ await m(OP, {
operation: "add",
tag: e.k
- }), p((t) => BP(t, e));
+ }), p((t) => HP(t, e));
} });
}),
addTag: (e) => {
let r = e.trim();
r && g(`add:${r}`, "添加标签", async () => {
- let e = await m(EP, {
+ let e = await m(OP, {
operation: "add",
tag: r
});
if (!e.ok) return;
let i = e.tag || r;
- RP(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => BP(e, {
+ BP(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => HP(e, {
k: i,
cat: "general"
- })), UP(i), t.toast(`已添加标签「${n(i)}」`, { undo: async () => {
- await m(EP, {
+ })), GP(i), t.toast(`已添加标签「${n(i)}」`, { undo: async () => {
+ await m(OP, {
operation: "remove",
tag: i
- }), p((e) => zP(e, i));
+ }), p((e) => VP(e, i));
} }));
});
}
};
}
// src/react/publication-cache.ts
-var r4 = 864e5, i4 = (e) => {
+var u4 = 864e5, d4 = (e) => {
let t = new Date(e);
return Date.UTC(t.getFullYear(), t.getMonth(), t.getDate());
};
-function a4(e) {
+function f4(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));
@@ -75679,25 +75738,25 @@ function a4(e) {
let o = new Date(Date.UTC(n, r + 2, 0)).getUTCDate();
return Date.UTC(n, r + 1, Math.min(i, o));
}
-function GMe(e, t = Date.now()) {
- let n = a4(e);
- return n !== void 0 && i4(t) > n ? Infinity : r4;
+function YMe(e, t = Date.now()) {
+ let n = f4(e);
+ return n !== void 0 && d4(t) > n ? Infinity : u4;
}
-function o4(e, t, n = Date.now()) {
- return !Number.isFinite(e) || e <= 0 || e > n ? !1 : GMe(t, n) === Infinity ? i4(e) > a4(t) : n - e < r4;
+function p4(e, t, n = Date.now()) {
+ return !Number.isFinite(e) || e <= 0 || e > n ? !1 : YMe(t, n) === Infinity ? d4(e) > f4(t) : n - e < u4;
}
// src/react/wants/resource-cache.ts
-var s4 = "peach.want-resources.v2";
-function c4(e) {
+var m4 = "peach.want-resources.v2";
+function h4(e) {
return !e.cache_stale && (e.complete === !0 || !e.warnings?.length);
}
-function l4(e, t, n) {
- return !!e && !e.cache_stale && (e.state === "error" || !c4(e) ? Date.now() - t < 6e4 : o4(t, n));
+function g4(e, t, n) {
+ return !!e && !e.cache_stale && (e.state === "error" || !h4(e) ? Date.now() - t < 6e4 : p4(t, n));
}
-function u4() {
+function _4() {
try {
- let e = JSON.parse(localStorage.getItem(s4) || "[]");
- return Array.isArray(e) ? e.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.state === "ready" && Array.isArray(e.result.items) && c4(e.result) && e.result.items.every((e) => e && [
+ let e = JSON.parse(localStorage.getItem(m4) || "[]");
+ return Array.isArray(e) ? e.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.state === "ready" && Array.isArray(e.result.items) && h4(e.result) && e.result.items.every((e) => e && [
"magnet",
"ed2k",
"url"
@@ -75706,23 +75765,23 @@ function u4() {
return [];
}
}
-function KMe(e, t) {
- let n = u4().find((t) => t.code === e);
- return n && o4(n.saved, t) ? n : void 0;
+function XMe(e, t) {
+ let n = _4().find((t) => t.code === e);
+ return n && p4(n.saved, t) ? n : void 0;
}
-function qMe(e) {
- let t = new Map(u4().map((e) => [e.code, e])), n = /* @__PURE__ */ new Map();
+function ZMe(e) {
+ let t = new Map(_4().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 && o4(e.saved, r.release_date) && n.set(r.code, e.result.items.some((e) => e.protocol === "magnet"));
+ e && p4(e.saved, r.release_date) && n.set(r.code, e.result.items.some((e) => e.protocol === "magnet"));
}
return n;
}
-function JMe(e, t) {
- if (t.state === "ready" && c4(t)) try {
- let n = u4().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
- localStorage.setItem(s4, JSON.stringify([{
+function QMe(e, t) {
+ if (t.state === "ready" && h4(t)) try {
+ let n = _4().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
+ localStorage.setItem(m4, JSON.stringify([{
code: e,
saved: Number.isFinite(r) ? r : Date.now(),
result: t
@@ -75730,15 +75789,15 @@ function JMe(e, t) {
} catch {}
}
// src/react/wants/resource-display.ts
-function YMe(e) {
+function $Me(e) {
let t = (e ?? "").trim(), n = /^([\d,]+)\s*B$/i.exec(t);
return /^[\d,.]+$/.test(t) ? "大小未知" : n ? Yn(Number(n[1].replaceAll(",", ""))) : e || "大小未知";
}
-function XMe(e) {
+function eNe(e) {
return /^更多评论.*(?:VIP|官方 App)/.test(e) ? "来源只返回了部分评论,资源链接可能不完整。" : e;
}
// src/react/wants/want-magnets.tsx
-function d4({ icon: e, children: t, title: n }) {
+function v4({ icon: e, children: t, title: n }) {
return /* @__PURE__ */ (0, I.jsxs)("span", {
title: n,
className: "inline-flex items-center gap-1",
@@ -75748,8 +75807,8 @@ function d4({ icon: e, children: t, title: n }) {
}), t]
});
}
-function f4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a, queryUrl: o }) {
- let s = (0, F.useRef)(null), [c, l] = (0, F.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, F.useState)([]), f = DH(), p = ae(), m = (0, F.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, F.useMemo)(() => KMe(h, e.release_date), [h, e.release_date]);
+function y4({ 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 = kH(), p = ae(), m = (0, F.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, F.useMemo)(() => XMe(h, e.release_date), [h, e.release_date]);
(0, F.useEffect)(() => {
if (!s.current || c) return;
let e = new IntersectionObserver((t) => {
@@ -75769,22 +75828,22 @@ function f4({ 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", JMe(h, i), i;
+ return m.current = n && i.state === "busy", QMe(h, i), i;
},
initialData: g?.result,
initialDataUpdatedAt: g?.saved,
enabled: c,
retry: !1,
- staleTime: (t) => l4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) ? Infinity : 0,
+ staleTime: (t) => g4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) ? Infinity : 0,
gcTime: 864e5,
- refetchOnMount: (t) => !l4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) && "always",
+ refetchOnMount: (t) => !g4(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) && tye(e.id, _.data.items.some((e) => e.protocol === "magnet"));
+ !o && _.data && (_.data.state === "ready" || _.data.items.length > 0) && $ve(e.id, _.data.items.some((e) => e.protocol === "magnet"));
}, [
_.data,
o,
@@ -75792,7 +75851,7 @@ function f4({ 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(oW, {
+ let n = await V(cW, {
magnet: r.uri,
provider: v.key,
target: v.target,
@@ -75803,7 +75862,7 @@ function f4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
if (!n.ok) throw Error(n.task.failure_detail || n.task.failure_label || "添加下载失败");
return n;
}, (e) => {
- d((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), p.invalidateQueries({ queryKey: sW });
+ d((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), p.invalidateQueries({ queryKey: lW });
});
}, b = (e) => {
f.run(`copy:${e.id}`, () => navigator.clipboard.writeText(e.uri), () => i("已复制链接"));
@@ -75821,39 +75880,39 @@ function f4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
}), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: nV,
- ...DV(x),
+ leadingIcon: iV,
+ ...kV(x),
onClick: () => {
x || (m.current = !0, _.refetch());
},
children: "重新查询"
})]
}),
- x ? /* @__PURE__ */ (0, I.jsx)(BH, { label: "正在查找资源链接" }) : null,
- S ? /* @__PURE__ */ (0, I.jsx)(SV, {
+ x ? /* @__PURE__ */ (0, I.jsx)(HH, { label: "正在查找资源链接" }) : null,
+ S ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "error",
title: "资源链接未取得",
children: S
}) : null,
- _.data?.warnings?.map((e) => /* @__PURE__ */ (0, I.jsx)(SV, {
+ _.data?.warnings?.map((e) => /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "neutral",
- children: XMe(e)
+ children: eNe(e)
}, e)),
- _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, I.jsx)(ML, {
+ _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, I.jsx)(PL, {
variant: "secondary",
size: "small",
className: "self-start",
- trailingIcon: VB,
+ trailingIcon: UB,
href: _.data.source_url,
target: "_blank",
rel: "noopener noreferrer",
children: "查看来源页"
}) : null,
- _.data?.state === "ready" && !_.data.items.length && !_.data.warnings?.length ? /* @__PURE__ */ (0, I.jsx)(SV, {
+ _.data?.state === "ready" && !_.data.items.length && !_.data.warnings?.length ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "neutral",
children: "暂未找到资源链接。"
}) : null,
- f.error ? /* @__PURE__ */ (0, I.jsx)(SV, {
+ f.error ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "error",
title: "操作未完成",
children: f.error
@@ -75868,7 +75927,7 @@ function f4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
className: "flex min-w-0 flex-col gap-1",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(iW, {
+ children: [/* @__PURE__ */ (0, I.jsx)(oW, {
variant: "caption",
color: e.protocol === "magnet" ? "blue" : e.protocol === "ed2k" ? "purple" : "neutral",
children: e.protocol === "magnet" ? "磁链" : e.protocol === "ed2k" ? "ED2K" : "网页链接"
@@ -75882,26 +75941,26 @@ function f4({ 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)(d4, {
- icon: ige,
+ /* @__PURE__ */ (0, I.jsx)(v4, {
+ icon: nge,
children: e.source
}),
- /* @__PURE__ */ (0, I.jsx)(d4, {
- icon: JB,
+ /* @__PURE__ */ (0, I.jsx)(v4, {
+ icon: XB,
title: e.size ? `来源大小:${e.size}` : void 0,
- children: YMe(e.size)
+ children: $Me(e.size)
}),
- e.files ? /* @__PURE__ */ (0, I.jsx)(d4, {
- icon: qhe,
+ e.files ? /* @__PURE__ */ (0, I.jsx)(v4, {
+ icon: Ghe,
children: e.files.replaceAll("個", "个")
}) : null,
- /* @__PURE__ */ (0, I.jsx)(d4, {
- icon: Fhe,
+ /* @__PURE__ */ (0, I.jsx)(v4, {
+ icon: Nhe,
title: e.source === "JavDB 评论" ? "评论日期" : "收录日期",
children: e.date ? e.date.slice(0, 10) : "日期未知"
}),
- e.attributes.filter((e) => e !== "高清").map((e) => /* @__PURE__ */ (0, I.jsx)(d4, {
- icon: tV,
+ e.attributes.filter((e) => e !== "高清").map((e) => /* @__PURE__ */ (0, I.jsx)(v4, {
+ icon: rV,
children: e
}, e))
]
@@ -75910,11 +75969,11 @@ function f4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
"data-resource-actions": "",
className: "flex flex-wrap gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)(ML, {
+ /* @__PURE__ */ (0, I.jsx)(PL, {
"data-button-link": "",
variant: "secondary",
size: "small",
- trailingIcon: VB,
+ trailingIcon: UB,
href: e.source_url,
target: "_blank",
rel: "noopener noreferrer",
@@ -75923,18 +75982,18 @@ function f4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: Ghe,
- ...DV(f.busy === `copy:${e.id}`),
+ leadingIcon: Uhe,
+ ...kV(f.busy === `copy:${e.id}`),
onClick: () => b(e),
children: "复制链接"
}),
e.protocol === "magnet" ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "primary",
size: "small",
- leadingIcon: v ? tU(v.key) : Bhe,
+ leadingIcon: v ? rU(v.key) : Rhe,
title: v ? `下载到 ${v.label}` : void 0,
disabled: t || !n?.available || !v || r,
- ...DV(f.busy === e.id),
+ ...kV(f.busy === e.id),
onClick: () => y(e),
children: r ? "已添加" : "添加下载"
}) : null
@@ -75945,7 +76004,7 @@ function f4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
children: e.slice(0, 3)
- }), e.length > 3 ? /* @__PURE__ */ (0, I.jsx)(QH, {
+ }), e.length > 3 ? /* @__PURE__ */ (0, I.jsx)(eU, {
summary: `更多资源(${e.length - 3} 条)`,
children: /* @__PURE__ */ (0, I.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
@@ -75957,10 +76016,10 @@ function f4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
});
}
// src/react/jav-detail/review-cache.ts
-var p4 = "peach.jav-reviews.v2";
-function m4() {
+var b4 = "peach.jav-reviews.v2";
+function x4() {
try {
- let e = localStorage.getItem(p4) || "[]";
+ let e = localStorage.getItem(b4) || "[]";
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")) : [];
@@ -75968,21 +76027,21 @@ function m4() {
return [];
}
}
-function ZMe(e, t) {
+function tNe(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
- }, ...m4().filter((n) => n.code !== e || n.result.page !== t.page)].slice(0, 128), i = JSON.stringify(r);
- i.length <= 2e6 && localStorage.setItem(p4, i);
+ }, ...x4().filter((n) => n.code !== e || n.result.page !== t.page)].slice(0, 128), i = JSON.stringify(r);
+ i.length <= 2e6 && localStorage.setItem(b4, i);
} catch {}
}
-function QMe(e, t) {
- let n = m4(), r = [], i = Infinity;
+function nNe(e, t) {
+ let n = x4(), r = [], i = Infinity;
for (let a = 1; a <= 8; a++) {
let o = n.find((t) => t.code === e && t.result.page === a);
- if (!o || !o4(o.saved, t) || (r.push(o.result), i = Math.min(i, o.saved), !o.result.more)) break;
+ if (!o || !p4(o.saved, t) || (r.push(o.result), i = Math.min(i, o.saved), !o.result.more)) break;
}
return r.length ? {
pages: r,
@@ -75990,16 +76049,16 @@ function QMe(e, t) {
saved: i
} : void 0;
}
-function $Me(e, t, n) {
- return e.length > 0 && e.every((e) => e.ok && !e.cache_stale && o4(Date.parse(e.checked_at || "") || t, n));
+function rNe(e, t, n) {
+ return e.length > 0 && e.every((e) => e.ok && !e.cache_stale && p4(Date.parse(e.checked_at || "") || t, n));
}
// src/react/jav-detail/jav-detail-page.tsx
-function eNe(e) {
+function iNe(e) {
let t = (0, F.useRef)(!1), n = Pt({
- queryKey: G2(e.code),
+ queryKey: Q2(e.code),
queryFn: ({ signal: n }) => {
let r = t.current;
- return t.current = !1, K2(e.code, n, r);
+ return t.current = !1, $2(e.code, n, r);
},
staleTime: 216e5
}), r = () => {
@@ -76009,21 +76068,21 @@ function eNe(e) {
"data-jav-detail": "",
"data-item-detail": "",
"data-stage-grid": "",
- children: n.data ? /* @__PURE__ */ (0, I.jsx)(tNe, {
+ children: n.data ? /* @__PURE__ */ (0, I.jsx)(aNe, {
...e,
item: n.data,
retry: r,
retrying: n.isFetching
}, e.code) : /* @__PURE__ */ (0, I.jsxs)("div", {
"data-jav-failure": "",
- children: [/* @__PURE__ */ (0, I.jsx)(h4, { close: e.actions.close }), n.error ? /* @__PURE__ */ (0, I.jsx)(GG, {
+ children: [/* @__PURE__ */ (0, I.jsx)(S4, { close: e.actions.close }), n.error ? /* @__PURE__ */ (0, I.jsx)(qG, {
message: cr(n.error),
onRetry: r
}) : null]
})
});
}
-var h4 = ({ close: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
+var S4 = ({ close: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -76032,7 +76091,7 @@ var h4 = ({ close: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function tNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a }) {
+function aNe({ 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)(() => {
@@ -76052,13 +76111,13 @@ function tNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
label: "视频预览",
video: !0
}] : []
- ], [l, u] = (0, F.useState)(null), [d, f] = (0, F.useState)(t.want_id), p = DH(), m = () => {
- p.run("want", async (e) => d ? (await vW([d], e), null) : (await _W({ code: t.code }, e)).want.id, (t) => {
- f(t), H.setQueryData(G2(e), (e) => e && {
+ ], [l, u] = (0, F.useState)(null), [d, f] = (0, F.useState)(t.want_id), p = kH(), m = () => {
+ p.run("want", async (e) => d ? (await bW([d], e), null) : (await yW({ code: t.code }, e)).want.id, (t) => {
+ f(t), H.setQueryData(Q2(e), (e) => e && {
...e,
wanted: !!t,
want_id: t
- }), n.receipt(t ? "已加入想要" : "已取消想要"), yW(), H.invalidateQueries({ queryKey: ["feed-new"] }), H.invalidateQueries({ queryKey: ["jav-discoveries"] });
+ }), n.receipt(t ? "已加入想要" : "已取消想要"), xW(), H.invalidateQueries({ queryKey: ["feed-new"] }), H.invalidateQueries({ queryKey: ["jav-discoveries"] });
});
};
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
@@ -76067,24 +76126,24 @@ function tNe({ 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)(h4, { close: n.close }),
+ /* @__PURE__ */ (0, I.jsx)(S4, { 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)(g4, { name: o === -2 ? "image" : "play" }), o === -2 ? "查看图片" : "视频预览"]
+ children: [/* @__PURE__ */ (0, I.jsx)(C4, { name: o === -2 ? "image" : "play" }), o === -2 ? "查看图片" : "视频预览"]
}) : null,
- o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, I.jsx)(iNe, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, I.jsx)(EQ, {
+ o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, I.jsx)(cNe, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, I.jsx)(DQ, {
item: t,
image: o === -1 ? "cover" : String(o)
}, t.code),
- /* @__PURE__ */ (0, I.jsx)(A2, {
+ /* @__PURE__ */ (0, I.jsx)(L2, {
items: c,
position: Math.max(0, c.findIndex((e) => e.index === o)),
onSelect: s,
below: !0,
- renderThumbnail: (e) => /* @__PURE__ */ (0, I.jsx)(EQ, {
+ renderThumbnail: (e) => /* @__PURE__ */ (0, I.jsx)(DQ, {
item: t,
image: e.index < 0 ? "cover" : String(e.index),
thumbnail: !0
@@ -76098,33 +76157,33 @@ function tNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
"data-stage-side-content": "",
"data-jav-info": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(nNe, { item: t }),
- Number(t.score) > 0 ? /* @__PURE__ */ (0, I.jsx)(v4, { score: Number(t.score) }) : null,
+ /* @__PURE__ */ (0, I.jsx)(oNe, { item: t }),
+ Number(t.score) > 0 ? /* @__PURE__ */ (0, I.jsx)(T4, { score: Number(t.score) }) : null,
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "mono",
"data-stage-meta": "",
"data-reveal-line": "",
- children: [/* @__PURE__ */ (0, I.jsx)(_4, {
+ children: [/* @__PURE__ */ (0, I.jsx)(w4, {
glyph: "calendar",
label: "发行日期",
value: t.release_date
- }), /* @__PURE__ */ (0, I.jsx)(_4, {
+ }), /* @__PURE__ */ (0, I.jsx)(w4, {
glyph: "clock",
label: "时长",
value: t.duration ? `${t.duration} 分钟` : void 0
})]
}),
- /* @__PURE__ */ (0, I.jsx)(rNe, {
+ /* @__PURE__ */ (0, I.jsx)(sNe, {
item: t,
navigate: n.navigate
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-jav-facts": "",
- children: [/* @__PURE__ */ (0, I.jsx)(_4, {
+ children: [/* @__PURE__ */ (0, I.jsx)(w4, {
glyph: "briefcase",
label: "发行商",
value: t.publisher
- }), /* @__PURE__ */ (0, I.jsx)(_4, {
+ }), /* @__PURE__ */ (0, I.jsx)(w4, {
glyph: "clapperboard",
label: "导演",
value: t.director
@@ -76153,14 +76212,14 @@ function tNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
t.summary ? /* @__PURE__ */ (0, I.jsx)("p", {
"data-jav-summary": "",
"data-long-text": "",
- lang: $I(t.summary),
+ lang: tL(t.summary),
children: t.summary
}) : null,
- t.message ? /* @__PURE__ */ (0, I.jsx)(SV, {
+ t.message ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...DV(a),
+ ...kV(a),
onClick: i,
children: "立即重试"
}),
@@ -76169,10 +76228,10 @@ function tNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-jav-actions": "",
children: [
- t.source_url ? /* @__PURE__ */ (0, I.jsx)(ML, {
+ t.source_url ? /* @__PURE__ */ (0, I.jsx)(PL, {
"data-button-link": "",
variant: "secondary",
- trailingIcon: VB,
+ trailingIcon: UB,
href: t.source_url,
target: "_blank",
rel: "noopener noreferrer",
@@ -76182,7 +76241,7 @@ function tNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
variant: "secondary",
disabled: r,
"aria-pressed": !!d,
- ...DV(!!p.busy),
+ ...kV(!!p.busy),
onClick: m,
children: d ? "取消想要" : "想要"
}),
@@ -76200,16 +76259,16 @@ function tNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
})
]
}),
- p.error ? /* @__PURE__ */ (0, I.jsx)(SV, {
+ p.error ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "error",
children: p.error
}) : null,
- /* @__PURE__ */ (0, I.jsx)(aNe, {
+ /* @__PURE__ */ (0, I.jsx)(lNe, {
code: t.code,
count: t.comments_count,
released: t.release_date
}),
- /* @__PURE__ */ (0, I.jsx)(oNe, {
+ /* @__PURE__ */ (0, I.jsx)(uNe, {
item: t,
actions: n,
readOnly: r
@@ -76217,24 +76276,24 @@ function tNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
]
})
}),
- /* @__PURE__ */ (0, I.jsx)(pW, {
+ /* @__PURE__ */ (0, I.jsx)(hW, {
prefill: l,
close: () => u(null),
receipt: n.receipt
})
] });
}
-var g4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var C4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: R(e) }
-}), _4 = ({ glyph: e, label: t, value: n }) => n ? /* @__PURE__ */ (0, I.jsxs)("span", {
+}), w4 = ({ glyph: e, label: t, value: n }) => n ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-spec-item": "",
title: t,
- children: [/* @__PURE__ */ (0, I.jsx)(g4, { name: e }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
+ children: [/* @__PURE__ */ (0, I.jsx)(C4, { name: e }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
}) : null;
-function nNe({ item: e }) {
- let { text: t, expanded: n, foldable: r, toggle: i } = U2(e.title), a = e.title === e.code ? "" : e.title;
+function oNe({ item: e }) {
+ let { text: t, expanded: n, foldable: r, toggle: i } = X2(e.title), a = e.title === e.code ? "" : e.title;
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-item-title": "",
children: [/* @__PURE__ */ (0, I.jsx)("h1", {
@@ -76250,7 +76309,7 @@ function nNe({ item: e }) {
r && !String(getSelection() || "") && i();
},
children: [/* @__PURE__ */ (0, I.jsx)("b", { children: e.code }), a ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [" ", /* @__PURE__ */ (0, I.jsx)("span", {
- lang: $I(a),
+ lang: tL(a),
children: a
})] }) : null]
})
@@ -76264,25 +76323,25 @@ function nNe({ item: e }) {
"aria-label": n ? "收起标题" : "展开标题",
title: n ? "收起标题" : "展开完整标题",
onClick: i,
- children: /* @__PURE__ */ (0, I.jsx)(KH, {})
+ children: /* @__PURE__ */ (0, I.jsx)(JH, {})
})
})]
});
}
-function v4({ score: e, review: t = !1 }) {
+function T4({ score: e, review: t = !1 }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-item-rating": "",
"data-jav-rating": "",
"data-review-rating": t ? "" : void 0,
role: "img",
"aria-label": `${t ? "评论" : "JavDB"}评分 ${e} / 5`,
- children: [/* @__PURE__ */ (0, I.jsx)(uY, { value: e }), /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(fY, { value: e }), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-rating-value": "",
children: [e.toFixed(1), " / 5"]
})]
});
}
-function rNe({ item: e, navigate: t }) {
+function sNe({ 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,
@@ -76291,14 +76350,14 @@ function rNe({ item: e, navigate: t }) {
children: r
}), /* @__PURE__ */ (0, I.jsx)("div", {
"data-id-row": "",
- children: i.map((r) => /* @__PURE__ */ (0, I.jsx)(V2, {
+ children: i.map((r) => /* @__PURE__ */ (0, I.jsx)(J2, {
kind: t,
person: {
...r,
id: r.id ?? null
},
onOpen: n,
- face: t === "performer" && !r.has_image && !r.has_avatar && r.source_avatar && r.source_actor_id ? /* @__PURE__ */ (0, I.jsx)(DQ, {
+ face: t === "performer" && !r.has_image && !r.has_avatar && r.source_avatar && r.source_actor_id ? /* @__PURE__ */ (0, I.jsx)(OQ, {
code: e.code,
person: r,
detail: !0
@@ -76315,7 +76374,7 @@ function rNe({ 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)(H2, {
+ }), /* @__PURE__ */ (0, I.jsx)(Y2, {
people: e.series_refs.map((e) => ({
...e,
id: e.id ?? null
@@ -76324,18 +76383,18 @@ function rNe({ item: e, navigate: t }) {
})]
});
}
-function iNe({ src: e }) {
+function cNe({ src: e }) {
let t = (0, F.useRef)(null), [n, r] = (0, F.useState)(!1), [i, a] = (0, F.useState)(0);
return (0, F.useLayoutEffect)(() => {
let n = t.current, i = document.createElement("video");
- return i.className = "video-js vjs-big-play-centered", i.controls = !0, i.setAttribute("playsinline", ""), i.setAttribute("aria-label", "视频预览"), n.append(i), vue(i, {
+ return i.className = "video-js vjs-big-play-centered", i.controls = !0, i.setAttribute("playsinline", ""), i.setAttribute("aria-label", "视频预览"), n.append(i), gue(i, {
src: e,
type: /\.m3u8(?:\?|$)/i.test(e) ? "application/x-mpegURL" : "video/mp4"
}, () => r(!0));
}, [e, i]), /* @__PURE__ */ (0, I.jsx)("div", {
ref: t,
"data-jav-video": "",
- children: n ? /* @__PURE__ */ (0, I.jsx)(SV, {
+ children: n ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -76348,8 +76407,8 @@ function iNe({ src: e }) {
}) : null
});
}
-function aNe({ code: e, count: t, released: n }) {
- let r = ae(), [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => QMe(e, n), [e, n]), s = (0, F.useRef)(!1), c = It({
+function lNe({ code: e, count: t, released: n }) {
+ let r = ae(), [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => nNe(e, n), [e, n]), s = (0, F.useRef)(!1), c = It({
queryKey: ["jav-reviews", e],
enabled: i,
initialPageParam: 1,
@@ -76358,12 +76417,12 @@ function aNe({ code: e, count: t, released: n }) {
pageParams: o.pageParams
} : void 0,
initialDataUpdatedAt: o?.saved,
- staleTime: (e) => $Me(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,
+ staleTime: (e) => rNe(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,
gcTime: 864e5,
refetchOnWindowFocus: !1,
queryFn: async ({ signal: t, pageParam: n }) => {
- let i = await yMe(e, n, t, s.current);
- if (ZMe(e, i), !i.ok || i.cache_stale) {
+ let i = await CMe(e, n, t, s.current);
+ if (tNe(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,
@@ -76373,7 +76432,7 @@ function aNe({ code: e, count: t, released: n }) {
}
return i;
},
- getNextPageParam: bMe
+ getNextPageParam: wMe
});
(0, F.useEffect)(() => {
c.isFetching || (s.current = !1);
@@ -76381,10 +76440,10 @@ function aNe({ 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)(QH, {
+ children: /* @__PURE__ */ (0, I.jsxs)(eU, {
trailing: !0,
summary: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(Ihe, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, I.jsx)(Phe, { "aria-hidden": !0 }),
"评论",
t > 0 ? ` · ${t}` : ""
] }),
@@ -76421,7 +76480,7 @@ function aNe({ 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)(v4, {
+ Number(e.score) > 0 ? /* @__PURE__ */ (0, I.jsx)(T4, {
score: Number(e.score),
review: !0
}) : null,
@@ -76433,28 +76492,28 @@ function aNe({ code: e, count: t, released: n }) {
]
}), /* @__PURE__ */ (0, I.jsx)("p", {
"data-long-text": "",
- lang: $I(e.content),
+ lang: tL(e.content),
children: e.content
})]
}, e.id)),
- d ? /* @__PURE__ */ (0, I.jsx)(SV, {
+ d ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...DV(c.isFetching),
+ ...kV(c.isFetching),
onClick: () => {
s.current = !0, c.refetch();
},
children: "立即重试"
}),
children: d
- }) : !c.isPending && !u.length ? /* @__PURE__ */ (0, I.jsx)(SV, {
+ }) : !c.isPending && !u.length ? /* @__PURE__ */ (0, I.jsx)(wV, {
tone: "neutral",
children: "暂无评论"
}) : null,
!d && l.length ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...DV(c.isFetching),
+ ...kV(c.isFetching),
onClick: () => {
s.current = !0, c.refetch();
},
@@ -76462,13 +76521,13 @@ function aNe({ code: e, count: t, released: n }) {
}) : null,
c.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...DV(c.isFetchingNextPage),
+ ...kV(c.isFetchingNextPage),
onClick: () => {
c.isFetchingNextPage || c.fetchNextPage();
},
children: "更多评论"
}) : null,
- !d && l.at(-1)?.page === 8 && t > u.length ? /* @__PURE__ */ (0, I.jsxs)(SV, {
+ !d && l.at(-1)?.page === 8 && t > u.length ? /* @__PURE__ */ (0, I.jsxs)(wV, {
tone: "neutral",
children: [
"已显示 ",
@@ -76480,21 +76539,21 @@ function aNe({ code: e, count: t, released: n }) {
})
});
}
-function oNe({ item: e, actions: t, readOnly: n }) {
+function uNe({ item: e, actions: t, readOnly: n }) {
let [r, i] = (0, F.useState)(!1), a = Pt({
- queryKey: sW,
+ queryKey: lW,
enabled: r,
- queryFn: ({ signal: e }) => B(`${oW}?limit=50`, e)
+ queryFn: ({ signal: e }) => B(`${cW}?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)(QH, {
+ children: /* @__PURE__ */ (0, I.jsx)(eU, {
trailing: !0,
- summary: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(g4, { name: "link" }), "资源"] }),
+ summary: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(C4, { name: "link" }), "资源"] }),
onOpenChange: (e) => {
i(e), e && c(!0);
},
- children: s ? /* @__PURE__ */ (0, I.jsx)(f4, {
+ children: s ? /* @__PURE__ */ (0, I.jsx)(y4, {
want: {
id: 0,
code: e.code,
@@ -76511,31 +76570,31 @@ function oNe({ item: e, actions: t, readOnly: n }) {
});
}
// src/react/stage/stage-player.ts
-var y4 = null, b4 = null, x4 = null, S4 = null, C4 = null, w4 = !1, T4 = 0, E4 = null, D4 = () => !1, O4 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
-function sNe(e, t) {
- y4 = e, D4 = () => t.isOpen(), E4 = () => t.requestClose(), Ple({
+var E4 = null, D4 = null, O4 = null, k4 = null, A4 = null, j4 = !1, M4 = 0, N4 = null, P4 = () => !1, F4 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
+function dNe(e, t) {
+ E4 = e, P4 = () => t.isOpen(), N4 = () => t.requestClose(), Mle({
...e.player,
stage: () => document.getElementById("stage")
- }), Fle({
- inMiniplayer: (e) => b4?.player === e,
- kind: (e) => b4?.player === e ? b4.kind : x4?.kind ?? S4?.kind ?? "item",
- expand: () => J4(),
- toMiniplayer: () => Y4()
- }), k4 || (k4 = !0, addEventListener("pagehide", () => ZN()));
-}
-var k4 = !1;
-function A4() {
- if (!y4) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
- return y4;
-}
-function j4(e) {
- S4 = e;
-}
-var cNe = () => S4;
-function M4(e, t) {
- let { kind: n, item: r, media: i = null } = t, a = O4(n, r.id, i?.index ?? null);
- if (b4 && b4.key === a) return uNe(e, b4);
- b4 && q4();
+ }), Nle({
+ inMiniplayer: (e) => D4?.player === e,
+ kind: (e) => D4?.player === e ? D4.kind : O4?.kind ?? k4?.kind ?? "item",
+ expand: () => t3(),
+ toMiniplayer: () => n3()
+ }), I4 || (I4 = !0, addEventListener("pagehide", () => $N()));
+}
+var I4 = !1;
+function L4() {
+ if (!E4) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
+ return E4;
+}
+function R4(e) {
+ k4 = e;
+}
+var fNe = () => k4;
+function z4(e, t) {
+ let { kind: n, item: r, media: i = null } = t, a = F4(n, r.id, i?.index ?? null);
+ if (D4 && D4.key === a) return mNe(e, D4);
+ D4 && e3();
let o = {
player: null,
kind: n,
@@ -76543,52 +76602,52 @@ function M4(e, t) {
mediaIndex: i?.index ?? null,
key: a
};
- x4 = o;
+ O4 = 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 = uP(s, {
+ let c = fP(s, {
kind: n,
item: r,
media: i,
autoplay: t.autoplay,
resume: t.resume ?? null,
onPlayer: (e) => {
- x4 === o && (o.player = e);
+ O4 === o && (o.player = e);
},
- handedOff: (e) => b4?.player === e
+ handedOff: (e) => D4?.player === e
});
return () => {
- let e = !!o.player && b4?.player === o.player;
- x4 === o && (x4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), ZN());
+ let e = !!o.player && D4?.player === o.player;
+ O4 === o && (O4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), $N());
};
}
-async function lNe(e, t, n) {
+async function pNe(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 A4().player.loadSourceStatus();
- if (n.throwIfAborted(), i[String(r.root_id || r.location || "")] === !1) throw Error(A4().player.offlineReason(String(r.root_id || r.location || "")));
+ let i = await L4().player.loadSourceStatus();
+ if (n.throwIfAborted(), i[String(r.root_id || r.location || "")] === !1) throw Error(L4().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 || "未归属")
};
- j4(a);
- let o = M4(t, {
+ R4(a);
+ let o = z4(t, {
kind: "item",
item: r,
autoplay: !0
}), s = !1;
return (e = !1) => {
- s || (s = !0, e && S4 === a && P4(!0), o(), S4 === a && j4(null));
+ s || (s = !0, e && k4 === a && V4(!0), o(), k4 === a && R4(null));
};
}
-function uNe(e, t) {
+function mNe(e, t) {
let { player: n } = t;
- G4(t), b4 = null, K4(), n.el().classList.remove("vjs-peach-mini"), cP(e), e.append(n.el()), eN(n);
+ Q4(t), D4 = null, $4(), n.el().classList.remove("vjs-peach-mini"), uP(e), e.append(n.el()), nN(n);
let r = {
player: n,
kind: t.kind,
@@ -76596,23 +76655,23 @@ function uNe(e, t) {
mediaIndex: t.mediaIndex,
key: t.key
};
- x4 = r;
- let i = lP(n, e);
- return tN(n), () => {
- x4 === r && (x4 = null), i(), b4?.player !== n && ($M() === n && eN(null), HN(n), ZN());
+ O4 = r;
+ let i = dP(n, e);
+ return rN(n), () => {
+ O4 === r && (O4 = null), i(), D4?.player !== n && (tN() === n && nN(null), WN(n), $N());
};
}
-var N4 = () => {
- let e = x4?.player;
+var B4 = () => {
+ let e = O4?.player;
return e && !e.isDisposed() ? e : null;
};
-function P4(e) {
- let t = w4;
- w4 = !1, b4?.pending && q4();
- let n = x4, r = n?.player, i = S4;
- if (!n || !r || r.isDisposed() || !i || !C4) return;
- let a = A4().player.settings();
- (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && mNe({
+function V4(e) {
+ let t = j4;
+ j4 = !1, D4?.pending && e3();
+ let n = O4, r = n?.player, i = k4;
+ if (!n || !r || r.isDisposed() || !i || !A4) return;
+ let a = L4().player.settings();
+ (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && vNe({
player: r,
kind: n.kind,
item: n.item,
@@ -76620,46 +76679,46 @@ function P4(e) {
key: n.key
}, i);
}
-function F4(e, t) {
- w4 = !1, b4 && (b4.kind === e && b4.item.id === t ? (b4.pending = !0, K4()) : q4());
+function H4(e, t) {
+ j4 = !1, D4 && (D4.kind === e && D4.item.id === t ? (D4.pending = !0, $4()) : e3());
}
-function I4(e) {
- C4 = e, C4 && U4();
+function U4(e) {
+ A4 = e, A4 && X4();
}
-var L4 = () => !!b4 && !b4.pending && !b4.player.isDisposed();
-function dNe() {
- return L4() ? C4?.frame.querySelector("video") ?? null : null;
+var W4 = () => !!D4 && !D4.pending && !D4.player.isDisposed();
+function hNe() {
+ return W4() ? A4?.frame.querySelector("video") ?? null : null;
}
-function fNe() {
- return D4() ? document.getElementById("stage")?.querySelector("video") ?? null : N4()?.el().querySelector("video") ?? dNe();
+function gNe() {
+ return P4() ? document.getElementById("stage")?.querySelector("video") ?? null : B4()?.el().querySelector("video") ?? hNe();
}
-function R4(e) {
- C4 && (C4.title.textContent = e.title || "", C4.sub.textContent = e.sub || "", C4.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
+function G4(e) {
+ A4 && (A4.title.textContent = e.title || "", A4.sub.textContent = e.sub || "", A4.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
}
-function z4(e = b4?.item) {
- if (!C4) return;
- let t = C4.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
- C4.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
+function K4(e = D4?.item) {
+ if (!A4) return;
+ let t = A4.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
+ A4.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
}
-function B4() {
- let e = b4?.player;
- if (!e || e.isDisposed() || !C4) return;
+function q4() {
+ let e = D4?.player;
+ if (!e || e.isDisposed() || !A4) return;
let t = e.paused();
- C4.play.setAttribute("aria-label", t ? "播放" : "暂停"), C4.play.querySelector("[data-icon-swap]") || (C4.play.innerHTML = Gs("player-pause", "player-play", t ? "b" : "a")), Ks(C4.play, t ? "b" : "a");
+ A4.play.setAttribute("aria-label", t ? "播放" : "暂停"), A4.play.querySelector("[data-icon-swap]") || (A4.play.innerHTML = Gs("player-pause", "player-play", t ? "b" : "a")), Ks(A4.play, t ? "b" : "a");
}
-function V4() {
- let e = b4?.player;
- if (!e || e.isDisposed() || !C4) return;
- let t = Kn(b4?.item.duration) || Kn(e.duration());
- C4.time.textContent = `${Jn(e.currentTime())} / ${t ? Jn(t) : "0:00"}`;
+function J4() {
+ let e = D4?.player;
+ if (!e || e.isDisposed() || !A4) return;
+ let t = Kn(D4?.item.duration) || Kn(e.duration());
+ A4.time.textContent = `${Jn(e.currentTime())} / ${t ? Jn(t) : "0:00"}`;
}
-var H4 = () => Math.max(1, Number(A4().player.settings().seekSeconds) || 10);
-function U4() {
- if (!C4 || !y4) return;
- let e = H4();
- for (let [t, n] of [[C4.back, `后退 ${e} 秒`], [C4.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
+var Y4 = () => Math.max(1, Number(L4().player.settings().seekSeconds) || 10);
+function X4() {
+ if (!A4 || !E4) return;
+ let e = Y4();
+ for (let [t, n] of [[A4.back, `后退 ${e} 秒`], [A4.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
}
-function W4(e) {
+function Z4(e) {
let t = (t, n) => {
e.player.on(t, n), e.off.push(() => {
try {
@@ -76671,17 +76730,17 @@ function W4(e) {
"play",
"pause",
"ended"
- ], B4), t([
+ ], q4), t([
"timeupdate",
"durationchange",
"loadedmetadata"
- ], V4), t("loadedmetadata", () => z4()), B4(), V4(), z4(), U4();
+ ], J4), t("loadedmetadata", () => K4()), q4(), J4(), K4(), X4();
}
-function G4(e) {
+function Q4(e) {
e.off.forEach((e) => e()), e.off = [];
}
-function pNe() {
- let e = C4?.root;
+function _Ne() {
+ let e = A4?.root;
if (!e) return;
let t = e.hidden;
if (e.hidden = !1, !t) return;
@@ -76689,8 +76748,8 @@ function pNe() {
let n = () => e.removeAttribute("data-miniplayer-enter");
e.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 500);
}
-function K4() {
- let e = C4?.root;
+function $4() {
+ let e = A4?.root;
if (e) {
e.hidden = !0;
for (let t of [
@@ -76701,73 +76760,73 @@ function K4() {
e.style.transform = "";
}
}
-function mNe(e, t) {
- if (!C4) return;
+function vNe(e, t) {
+ if (!A4) return;
let n = {
...e,
meta: t,
off: [],
pending: !1
};
- b4 = n, T4++, e.player.el().classList.add("vjs-peach-mini"), C4.frame.prepend(e.player.el()), R4(t), W4(n), pNe(), tN(e.player);
+ D4 = n, M4++, e.player.el().classList.add("vjs-peach-mini"), A4.frame.prepend(e.player.el()), G4(t), Z4(n), _Ne(), rN(e.player);
}
-function q4() {
- let e = b4;
- e && G4(e), b4 = null, T4++;
+function e3() {
+ let e = D4;
+ e && Q4(e), D4 = null, M4++;
let t = e?.player ?? null;
- t && $M() === t && eN(null), HN(t), t && ZN(), C4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), ZM(), K4();
+ t && tN() === t && nN(null), WN(t), t && $N(), A4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), $M(), $4();
}
-function J4() {
- if (!L4() || !b4) return;
- let { kind: e, item: t, mediaIndex: n } = b4;
- A4().expand(e, t.id, n);
+function t3() {
+ if (!W4() || !D4) return;
+ let { kind: e, item: t, mediaIndex: n } = D4;
+ L4().expand(e, t.id, n);
}
-function Y4() {
- L4() && !D4() ? J4() : D4() && N4() && E4 && (w4 = !0, E4());
+function n3() {
+ W4() && !P4() ? t3() : P4() && B4() && N4 && (j4 = !0, N4());
}
-function hNe() {
- let e = b4?.player;
+function yNe() {
+ let e = D4?.player;
e && !e.isDisposed() && (e.paused() ? e.play()?.catch(() => {}) : e.pause());
}
-function X4(e) {
- let t = b4?.player;
+function r3(e) {
+ let t = D4?.player;
if (!t || t.isDisposed()) return;
- let n = Kn(t.duration()) || Kn(b4?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + H4() * e);
+ let n = Kn(t.duration()) || Kn(D4?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + Y4() * e);
t.currentTime(n ? Math.min(n, r) : r);
}
-function Z4(e) {
- return !(!L4() || !e || e.part_group || e.edition_group || e.medium && e.medium !== "video" || e.cost === "metered" && e.location !== "online" || e.location === "online" && !e.follow_item_id || A4().sourceOffline(String(e.root_id || e.location || "")));
-}
-async function gNe(e) {
- if (!L4() || !b4 || !C4) return;
- let t = ++T4, n = await wn(`/api/item?id=${e}`).catch(() => null);
- if (t !== T4 || !L4() || !b4 || !C4 || !n || n.error) return;
- if (!Z4(n)) {
- A4().openItem(e);
+function i3(e) {
+ return !(!W4() || !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 || L4().sourceOffline(String(e.root_id || e.location || "")));
+}
+async function bNe(e) {
+ if (!W4() || !D4 || !A4) return;
+ let t = ++M4, n = await wn(`/api/item?id=${e}`).catch(() => null);
+ if (t !== M4 || !W4() || !D4 || !A4 || !n || n.error) return;
+ if (!i3(n)) {
+ L4().openItem(e);
return;
}
- let r = b4;
- G4(r), $M() === r.player && eN(null), HN(r.player), ZN(), C4.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
+ let r = D4;
+ Q4(r), tN() === r.player && nN(null), WN(r.player), $N(), A4.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
let i = document.createElement("video");
- i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", C4.frame.prepend(i);
+ i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", A4.frame.prepend(i);
let a = {
kind: "item",
item: n,
title: String(n.title || n.name || ""),
sub: String(n.performers?.[0] || n.creator || "未归属")
};
- R4(a), uP(i, {
+ G4(a), fP(i, {
kind: "item",
item: n,
autoplay: !0,
chrome: !1,
onPlayer: (r) => {
- if (t !== T4) {
- r && $M() === r && eN(null), HN(r);
+ if (t !== M4) {
+ r && tN() === r && nN(null), WN(r);
return;
}
if (!r) {
- q4(), A4().openItem(e);
+ e3(), L4().openItem(e);
return;
}
r.el().classList.add("vjs-peach-mini");
@@ -76776,25 +76835,25 @@ async function gNe(e) {
kind: "item",
item: n,
mediaIndex: null,
- key: O4("item", n.id, null),
+ key: F4("item", n.id, null),
meta: a,
off: [],
pending: !1
};
- b4 = i, W4(i);
+ D4 = i, Z4(i);
}
- }), z4(n);
+ }), K4(n);
}
// src/react/stage/miniplayer.tsx
-var Q4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
+var a3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
-}), _Ne = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, $4 = (e) => (t) => {
+}), xNe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, o3 = (e) => (t) => {
t.stopPropagation(), e();
-}, vNe = (0, F.memo)(function() {
+}, SNe = (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)(() => (I4({
+ return (0, F.useLayoutEffect)(() => (U4({
root: e.current,
frame: n.current,
play: r.current,
@@ -76804,7 +76863,7 @@ var Q4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
title: s.current,
sub: c.current,
info: l.current
- }), () => I4(null)), []), (0, F.useEffect)(() => xNe(e.current, t.current), []), (0, F.useEffect)(() => yNe(e.current), []), /* @__PURE__ */ (0, I.jsx)("aside", {
+ }), () => U4(null)), []), (0, F.useEffect)(() => TNe(e.current, t.current), []), (0, F.useEffect)(() => CNe(e.current), []), /* @__PURE__ */ (0, I.jsx)("aside", {
ref: e,
"data-miniplayer": "",
id: "miniplayer",
@@ -76828,24 +76887,24 @@ var Q4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
id: "miniplayerExpand",
"aria-label": "展开到详情",
"aria-keyshortcuts": "i",
- onClick: $4(J4),
- children: /* @__PURE__ */ (0, I.jsx)(Q4, { name: "maximize-2" })
+ onClick: o3(t3),
+ children: /* @__PURE__ */ (0, I.jsx)(a3, { name: "maximize-2" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-miniplayer-button": "close",
id: "miniplayerClose",
"aria-label": "关闭小窗",
- onClick: $4(q4),
- children: /* @__PURE__ */ (0, I.jsx)(Q4, { name: "x" })
+ onClick: o3(e3),
+ children: /* @__PURE__ */ (0, I.jsx)(a3, { name: "x" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
ref: a,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerBack",
- onClick: $4(() => X4(-1)),
- children: /* @__PURE__ */ (0, I.jsx)(Q4, { name: "rotate-ccw" })
+ onClick: o3(() => r3(-1)),
+ children: /* @__PURE__ */ (0, I.jsx)(a3, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
ref: r,
@@ -76854,16 +76913,16 @@ var Q4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
id: "miniplayerPlay",
"aria-label": "暂停",
"aria-keyshortcuts": "k",
- onClick: $4(hNe),
- dangerouslySetInnerHTML: _Ne
+ onClick: o3(yNe),
+ dangerouslySetInnerHTML: xNe
}),
/* @__PURE__ */ (0, I.jsx)("button", {
ref: o,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerAhead",
- onClick: $4(() => X4(1)),
- children: /* @__PURE__ */ (0, I.jsx)(Q4, { name: "rotate-cw" })
+ onClick: o3(() => r3(1)),
+ children: /* @__PURE__ */ (0, I.jsx)(a3, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, I.jsx)("span", {
ref: i,
@@ -76880,7 +76939,7 @@ var Q4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
"data-miniplayer-info": "",
id: "miniplayerInfo",
"aria-label": "展开到详情",
- onClick: () => J4(),
+ onClick: () => t3(),
children: [/* @__PURE__ */ (0, I.jsx)("span", {
ref: s,
"data-miniplayer-title": "",
@@ -76894,7 +76953,7 @@ var Q4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
})
});
});
-function yNe(e) {
+function CNe(e) {
let t = () => {
let t = e.dataset.corner || "";
!e.hidden && t.startsWith("b") && (t === "br" || innerWidth <= 600) ? document.documentElement.style.setProperty("--miniplayer-space", `${Math.ceil(e.offsetHeight + 16 + 12)}px`) : document.documentElement.style.removeProperty("--miniplayer-space");
@@ -76908,7 +76967,7 @@ function yNe(e) {
n.disconnect(), r.disconnect(), window.removeEventListener("resize", t), document.documentElement.style.removeProperty("--miniplayer-space");
};
}
-function bNe(e, t, n) {
+function wNe(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
@@ -76930,7 +76989,7 @@ function bNe(e, t, n) {
};
e.addEventListener("transitionend", u), setTimeout(u, 600);
}
-function xNe(e, t) {
+function TNe(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 = {
@@ -76956,7 +77015,7 @@ function xNe(e, t) {
} catch {}
i.moved && (e.dataset.dragged = "1", setTimeout(() => {
delete e.dataset.dragged;
- }, 0), bNe(e, i.dx, i.dy));
+ }, 0), wNe(e, i.dx, i.dy));
}, o = (t) => {
e.dataset.dragged && (t.stopPropagation(), t.preventDefault());
}, s = (e) => {
@@ -76967,57 +77026,57 @@ function xNe(e, t) {
};
}
// src/react/stage/stage.tsx
-var e3 = null, t3 = null, n3 = null, r3 = /* @__PURE__ */ new Set(), i3 = 0, a3 = null, o3 = !1, s3 = !1, c3 = () => {
+var s3 = null, c3 = null, l3 = null, u3 = /* @__PURE__ */ new Set(), d3 = 0, f3 = null, p3 = !1, m3 = !1, h3 = () => {
let e = document.getElementById("stage");
return e instanceof HTMLDialogElement ? e : null;
};
-function l3() {
- if (!e3) throw Error("舞台还没有接上宿主(configureStage)");
- return e3;
+function g3() {
+ if (!s3) throw Error("舞台还没有接上宿主(configureStage)");
+ return s3;
}
-function SNe(e) {
- return r3.add(e), () => {
- r3.delete(e);
+function ENe(e) {
+ return u3.add(e), () => {
+ u3.delete(e);
};
}
-function CNe() {
- for (let e of [...r3]) e();
+function DNe() {
+ for (let e of [...u3]) e();
}
-function u3() {
- (0, Lt.flushSync)(CNe);
+function _3() {
+ (0, Lt.flushSync)(DNe);
}
-function wNe({ view: e }) {
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e ? /* @__PURE__ */ (0, I.jsx)(TNe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, I.jsx)(vNe, {})] });
+function ONe({ view: e }) {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e ? /* @__PURE__ */ (0, I.jsx)(kNe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, I.jsx)(SNe, {})] });
}
-var d3 = () => /* @__PURE__ */ (0, I.jsx)("div", {
+var v3 = () => /* @__PURE__ */ (0, I.jsx)("div", {
"data-skeleton": "detail",
role: "status",
"aria-label": "正在读取作品详情",
- dangerouslySetInnerHTML: { __html: Eje() }
+ dangerouslySetInnerHTML: { __html: Aje() }
});
-function f3(e) {
+function y3(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 p3() {
- let e = c3(), t = e && kje(e);
+function b3() {
+ let e = h3(), t = e && Nje(e);
t ? (t.focus({ preventScroll: !0 }), t.dispatchEvent(new KeyboardEvent("keydown", {
key: "Escape",
bubbles: !0,
cancelable: !0
- }))) : m3();
+ }))) : x3();
}
-function TNe({ view: e }) {
+function kNe({ view: e }) {
let t = (0, F.useRef)(null);
(0, F.useLayoutEffect)(() => {
let e = t.current, n = (t) => {
- t.target === e && (t.preventDefault(), p3());
+ t.target === e && (t.preventDefault(), b3());
};
return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);
}, []);
- let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, I.jsx)(OMe, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, I.jsx)(eNe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, I.jsx)(lMe, { ...r.props }, r.props.id);
+ let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, I.jsx)(MMe, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, I.jsx)(iNe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, I.jsx)(pMe, { ...r.props }, r.props.id);
return /* @__PURE__ */ (0, I.jsxs)("dialog", {
ref: t,
id: "stage",
@@ -77025,27 +77084,27 @@ function TNe({ view: e }) {
"data-stage-kind": r.kind,
"aria-label": "作品详情",
onKeyDown: (e) => {
- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), p3());
+ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), b3());
},
onPointerDown: (e) => {
- s3 = f3(e);
+ m3 = y3(e);
},
onClick: (e) => {
- s3 && f3(e) && m3();
+ m3 && y3(e) && x3();
},
children: [
- n === "skeleton" ? /* @__PURE__ */ (0, I.jsx)(d3, {}, "skeleton") : null,
+ n === "skeleton" ? /* @__PURE__ */ (0, I.jsx)(v3, {}, "skeleton") : null,
n === "reveal" ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-stage-fade": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(d3, {})
+ children: /* @__PURE__ */ (0, I.jsx)(v3, {})
}, "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)(ED, {
- getContainer: () => Z0(t.current),
+ children: /* @__PURE__ */ (0, I.jsx)(OD, {
+ getContainer: () => i2(t.current),
children: i
})
})
@@ -77053,14 +77112,14 @@ function TNe({ view: e }) {
]
});
}
-function m3() {
- t3 && !o3 && (o3 = !0, t3.request.actions.close());
+function x3() {
+ c3 && !p3 && (p3 = !0, c3.request.actions.close());
}
-function h3(e, t) {
- let n = c3();
+function S3(e, t) {
+ let n = h3();
n?.toggleAttribute("data-ambient", e), n?.toggleAttribute("data-theater", t);
}
-function g3(e) {
+function C3(e) {
if (e.kind === "jav") return {
kind: "jav",
props: {
@@ -77068,30 +77127,30 @@ function g3(e) {
readOnly: e.readOnly,
actions: {
...e.actions,
- close: m3
+ close: x3
}
}
};
let t = e.resume ?? null, n = (n) => {
let r = t && (e.id == null || e.id === n) ? t : null;
return t = null, r;
- }, r = () => l3().player.settings(), i = () => t3?.request === e;
+ }, r = () => g3().player.settings(), i = () => c3?.request === e;
if (e.kind === "item") {
let { kind: t, resume: a, actions: o, ...s } = e, c = {
...o,
- close: m3,
+ close: x3,
present: (e, t) => {
let n = e.performers;
- j4({
+ R4({
kind: "item",
item: e,
title: String(e.title || e.name || ""),
sub: String(n?.[0] || e.creator || "未归属")
- }), h3(r().ambientMode, r().theaterMode), queueMicrotask(() => {
+ }), S3(r().ambientMode, r().theaterMode), queueMicrotask(() => {
i() && o.present(e, t);
});
},
- mountPlayer: (e, t, r, i) => M4(e, {
+ mountPlayer: (e, t, r, i) => z4(e, {
kind: "item",
item: t,
autoplay: i?.autoplay,
@@ -77109,18 +77168,18 @@ function g3(e) {
}
let { kind: a, resume: o, actions: s, ...c } = e, l = {
...s,
- close: m3,
+ close: x3,
present: (e, t) => {
- j4({
+ R4({
kind: "follow",
item: e,
title: e.title || "",
sub: e.author || e.source_label || ""
- }), h3(t === "video" && r().ambientMode, t === "video" && r().theaterMode), queueMicrotask(() => {
+ }), S3(t === "video" && r().ambientMode, t === "video" && r().theaterMode), queueMicrotask(() => {
i() && s.present(e, t);
});
},
- mountPlayer: (e, t, r, i) => M4(e, {
+ mountPlayer: (e, t, r, i) => z4(e, {
kind: "follow",
item: t,
media: r,
@@ -77137,106 +77196,106 @@ function g3(e) {
}
};
}
-function ENe(e, t) {
+function ANe(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"), t3?.generation === t && t3.phase === "reveal" && (t3 = {
- ...t3,
+ clearTimeout(r), n?.removeEventListener("transitionend", a), e.removeAttribute("data-stage-reveal"), e.removeAttribute("data-stage-revealing"), c3?.generation === t && c3.phase === "reveal" && (c3 = {
+ ...c3,
phase: "content"
- }, u3());
+ }, _3());
}, a = (e) => {
e.target === n && i();
};
n?.addEventListener("transitionend", a), r = window.setTimeout(i, 1e3);
}
-function _3(e) {
- let t = c3();
- return !t3 || t3.content.kind !== e || o3 || !t?.open || t.hasAttribute("data-closing") ? null : t;
+function w3(e) {
+ let t = h3();
+ return !c3 || c3.content.kind !== e || p3 || !t?.open || t.hasAttribute("data-closing") ? null : t;
}
-async function DNe(e) {
- !n3 && document.activeElement instanceof HTMLElement && document.activeElement !== document.body && (n3 = {
+async function jNe(e) {
+ !l3 && document.activeElement instanceof HTMLElement && document.activeElement !== document.body && (l3 = {
left: window.scrollX,
top: window.scrollY,
anchor: document.activeElement
});
- let t = _3(e.kind);
+ let t = w3(e.kind);
if (t) {
- await kNe(e, t);
+ await NNe(e, t);
return;
}
- t3 && v3({ miniplayer: !1 });
- let n = ++i3, r = new AbortController();
- a3 = r, o3 = !1, s3 = !1, e.kind === "jav" ? q4() : F4(e.kind, e.id ?? NaN);
- let i = g3(e);
- t3 = {
+ c3 && T3({ miniplayer: !1 });
+ let n = ++d3, r = new AbortController();
+ f3 = r, p3 = !1, m3 = !1, e.kind === "jav" ? e3() : H4(e.kind, e.id ?? NaN);
+ let i = C3(e);
+ c3 = {
generation: n,
request: e,
content: i,
phase: "skeleton"
};
- let a = i.kind === "item" ? LP(i.props, r.signal) : i.kind === "jav" ? q2(i.props, r.signal) : r2(i.props, r.signal);
- if (n !== i3 || t3?.request !== e) {
+ let a = i.kind === "item" ? zP(i.props, r.signal) : i.kind === "jav" ? e4(i.props, r.signal) : u2(i.props, r.signal);
+ if (n !== d3 || c3?.request !== e) {
await a.catch(() => {});
return;
}
- let o = ONe(i);
- t3 = {
- ...t3,
+ let o = MNe(i);
+ c3 = {
+ ...c3,
phase: o ? "content" : "skeleton"
- }, u3();
- let s = c3();
+ }, _3();
+ let s = h3();
if (!s) {
await a.catch(() => {});
return;
}
- o || uc(s), document.body.setAttribute("data-detail-open", ""), s.open || s.showModal(), $0(s);
+ o || uc(s), document.body.setAttribute("data-detail-open", ""), s.open || s.showModal(), o2(s);
try {
await a;
} catch {
if (r.signal.aborted) return;
}
- if (n !== i3 || !t3 || o) return;
+ if (n !== d3 || !c3 || o) return;
let c = !!s.querySelector(".skeleton-awaiting");
- t3 = {
- ...t3,
+ c3 = {
+ ...c3,
phase: c ? "content" : "reveal"
- }, u3(), c || ENe(s, n), Qs(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, _3(), c || ANe(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 ONe(e) {
- if (e.kind === "jav") return !!H.getQueryData(G2(e.props.code));
- if (e.kind === "follow") return !!H.getQueryData(e2(e.props.id));
- let { queue: t, id: n } = e.props, r = t ? H.getQueryData(CP(t)) : null;
+function MNe(e) {
+ if (e.kind === "jav") return !!H.getQueryData(Q2(e.props.code));
+ if (e.kind === "follow") return !!H.getQueryData(s2(e.props.id));
+ let { queue: t, id: n } = e.props, r = t ? H.getQueryData(TP(t)) : null;
if (t && !r) return !1;
- let i = r ? FP(r, n) : n;
- return i != null && !!H.getQueryData(SP(i));
+ let i = r ? LP(r, n) : n;
+ return i != null && !!H.getQueryData(wP(i));
}
-async function kNe(e, t) {
- let n = ++i3;
- a3?.abort();
+async function NNe(e, t) {
+ let n = ++d3;
+ f3?.abort();
let r = new AbortController();
- a3 = r, s3 = !1;
- let i = g3(e);
+ f3 = r, m3 = !1;
+ let i = C3(e);
try {
- i.kind === "item" ? await LP(i.props, r.signal) : i.kind === "jav" ? await q2(i.props, r.signal) : await r2(i.props, r.signal);
+ i.kind === "item" ? await zP(i.props, r.signal) : i.kind === "jav" ? await e4(i.props, r.signal) : await u2(i.props, r.signal);
} catch {
if (r.signal.aborted) return;
}
- if (n !== i3 || !t3 || _3(e.kind) !== t) return;
- e.kind === "jav" ? q4() : F4(e.kind, e.id ?? NaN), Al(t), ZM(), t3 = {
- ...t3,
+ if (n !== d3 || !c3 || w3(e.kind) !== t) return;
+ e.kind === "jav" ? e3() : H4(e.kind, e.id ?? NaN), Al(t), $M(), c3 = {
+ ...c3,
request: e,
content: i,
phase: "content"
- }, u3(), 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]");
+ }, _3(), 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 ANe() {
- $0(null);
- let e = c3();
+function PNe() {
+ o2(null);
+ let e = h3();
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();
@@ -77246,14 +77305,14 @@ function ANe() {
e.addEventListener("animationend", i), n = window.setTimeout(r, 380);
}));
}
-function v3({ miniplayer: e = !0 } = {}) {
- if (i3++, a3?.abort(), a3 = null, P4(e), !t3) return;
- let t = c3();
- t && Al(t), ZM(), $0(null), t?.open && t.close(), t3 = null, o3 = !1, s3 = !1, u3(), j4(null), document.body.removeAttribute("data-detail-open");
- let n = n3;
- n3 = null;
+function T3({ miniplayer: e = !0 } = {}) {
+ if (d3++, f3?.abort(), f3 = null, V4(e), !c3) return;
+ let t = h3();
+ t && Al(t), $M(), o2(null), t?.open && t.close(), c3 = null, p3 = !1, m3 = !1, _3(), R4(null), document.body.removeAttribute("data-detail-open");
+ let n = l3;
+ l3 = null;
let r = () => {
- !t3 && n?.anchor.isConnected && n.anchor.getClientRects().length && window.scrollTo({
+ !c3 && n?.anchor.isConnected && n.anchor.getClientRects().length && window.scrollTo({
left: n.left,
top: n.top,
behavior: "instant"
@@ -77261,80 +77320,80 @@ function v3({ miniplayer: e = !0 } = {}) {
};
r(), requestAnimationFrame(r);
}
-function jNe(e) {
- t3 && (t3 = {
- ...t3,
- content: t3.content.kind === "item" ? {
+function FNe(e) {
+ c3 && (c3 = {
+ ...c3,
+ content: c3.content.kind === "item" ? {
kind: "item",
props: {
- ...t3.content.props,
+ ...c3.content.props,
...e
}
- } : t3.content.kind === "jav" ? t3.content : {
+ } : c3.content.kind === "jav" ? c3.content : {
kind: "follow",
props: {
- ...t3.content.props,
+ ...c3.content.props,
...e.relatedLimit === void 0 ? {} : { relatedLimit: e.relatedLimit }
}
}
- }, u3());
+ }, _3());
}
-function MNe() {
- let e = cNe(), t = e?.kind === "item" ? e.item : null, n = t ? Oo(t, l3().player.settings().javImage) : "";
+function INe() {
+ let e = fNe(), t = e?.kind === "item" ? e.item : null, n = t ? Oo(t, g3().player.settings().javImage) : "";
if (!n) return;
- let r = N4();
+ let r = B4();
r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);
}
-var NNe = {
- open: DNe,
- update: jNe,
- exit: ANe,
- dispose: v3,
- requestClose: m3,
- requestEscape: p3,
- repaintPoster: MNe,
- isOpen: () => !!t3,
- showing: () => t3 && _3(t3.content.kind) ? t3.content.kind : null,
- activeVideo: () => fNe(),
- mountWallPlayer: lNe,
+var LNe = {
+ open: jNe,
+ update: FNe,
+ exit: PNe,
+ dispose: T3,
+ requestClose: x3,
+ requestEscape: b3,
+ repaintPoster: INe,
+ isOpen: () => !!c3,
+ showing: () => c3 && w3(c3.content.kind) ? c3.content.kind : null,
+ activeVideo: () => gNe(),
+ mountWallPlayer: pNe,
toggleTheater: () => {
- t3 && kN(!l3().player.settings().theaterMode);
+ c3 && jN(!g3().player.settings().theaterMode);
},
- toggleMiniplayer: () => Y4(),
- closeMiniplayer: () => q4(),
- miniplayerActive: () => L4(),
- miniplayerTakesCard: (e) => Z4(e),
+ toggleMiniplayer: () => n3(),
+ closeMiniplayer: () => e3(),
+ miniplayerActive: () => W4(),
+ miniplayerTakesCard: (e) => i3(e),
miniplayerPlay: (e) => {
- gNe(e);
+ bNe(e);
}
};
-function PNe(e) {
- return e3 = e, sNe(e, {
- isOpen: () => !!t3,
- requestClose: m3
- }), NNe;
+function RNe(e) {
+ return s3 = e, dNe(e, {
+ isOpen: () => !!c3,
+ requestClose: x3
+ }), LNe;
}
-function FNe() {
- let e = (0, F.useSyncExternalStore)(SNe, () => t3);
- return e3 ? /* @__PURE__ */ (0, I.jsx)(wNe, { view: e }) : null;
+function zNe() {
+ let e = (0, F.useSyncExternalStore)(ENe, () => c3);
+ return s3 ? /* @__PURE__ */ (0, I.jsx)(ONe, { view: e }) : null;
}
// src/react/stats/stats.ts
-var INe = "/api/stats", y3 = ["stats"], b3 = (e) => B(INe, e);
-async function LNe(e) {
+var BNe = "/api/stats", E3 = ["stats"], D3 = (e) => B(BNe, e);
+async function VNe(e) {
await H.fetchQuery({
- queryKey: y3,
- queryFn: () => b3(e)
+ queryKey: E3,
+ queryFn: () => D3(e)
});
}
-var x3 = (e) => e != null && Number.isFinite(e), RNe = (e) => x3(e) ? e.toLocaleString() : "未取得", zNe = (e, t) => x3(e) && x3(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, BNe = (e, t) => {
- let n = zNe(e, t);
- return !n && x3(e) && e > 0 && x3(t) && t > 0 ? "<1%" : `${n}%`;
-}, S3 = (e) => {
- if (!x3(e)) return "未取得";
+var O3 = (e) => e != null && Number.isFinite(e), HNe = (e) => O3(e) ? e.toLocaleString() : "未取得", UNe = (e, t) => O3(e) && O3(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, WNe = (e, t) => {
+ let n = UNe(e, t);
+ return !n && O3(e) && e > 0 && O3(t) && t > 0 ? "<1%" : `${n}%`;
+}, k3 = (e) => {
+ if (!O3(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)} 分钟`;
-}, C3 = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, w3 = (e) => (e.max_reached || 0) * 100, VNe = (e) => e.kind === "online" ? "在线直接观看" : C3(e) < w3(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", HNe = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
-function UNe(e, t = 6) {
+}, A3 = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, j3 = (e) => (e.max_reached || 0) * 100, GNe = (e) => e.kind === "online" ? "在线直接观看" : A3(e) < j3(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", KNe = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
+function qNe(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);
@@ -77344,7 +77403,7 @@ function UNe(e, t = 6) {
bytes: i.reduce((e, t) => e + (t.bytes ?? 0), 0)
}];
}
-var WNe = (e) => Math.max(1, ...e) * 1.1, GNe = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, KNe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), qNe = {
+var JNe = (e) => Math.max(1, ...e) * 1.1, YNe = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, XNe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), ZNe = {
video: "视频",
image: "图片",
illustration: "插画",
@@ -77352,18 +77411,18 @@ var WNe = (e) => Math.max(1, ...e) * 1.1, GNe = (e, t) => e > 0 ? Math.max(e, t
audio: "音频",
account: "账号",
other: "其它文件"
-}, JNe = (e) => e.map((e) => ({
- name: qNe[e.k] ?? e.k,
+}, QNe = (e) => e.map((e) => ({
+ name: ZNe[e.k] ?? e.k,
value: e.n
-})).sort((e, t) => t.value - e.value), YNe = {
+})).sort((e, t) => t.value - e.value), $Ne = {
速食: "<5 分钟",
短: "5–15 分钟",
中: "15–40 分钟",
长: ">40 分钟"
-}, T3 = (e, t = {}) => e.map((e) => ({
+}, M3 = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
-})), XNe = (e) => T3(e, YNe), ZNe = [
+})), ePe = (e) => M3(e, $Ne), tPe = [
[
1,
1,
@@ -77399,12 +77458,12 @@ var WNe = (e) => Math.max(1, ...e) * 1.1, GNe = (e, t) => e > 0 ? Math.max(e, t
Infinity,
"≥10"
]
-], QNe = (e) => ZNe.map(([t, n, r]) => ({
+], nPe = (e) => tPe.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 E3(e, t) {
+function N3(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 {
@@ -77414,7 +77473,7 @@ function E3(e, t) {
return n;
}
// node_modules/d3-array/src/min.js
-function D3(e, t) {
+function P3(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 {
@@ -77424,7 +77483,7 @@ function D3(e, t) {
return n;
}
// node_modules/d3-array/src/sum.js
-function O3(e, t) {
+function F3(e, t) {
let n = 0;
if (t === void 0) for (let t of e) (t = +t) && (n += t);
else {
@@ -77434,64 +77493,64 @@ function O3(e, t) {
return n;
}
// node_modules/d3-sankey/src/align.js
-function $Ne(e, t) {
+function rPe(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
// node_modules/d3-sankey/src/constant.js
-function k3(e) {
+function I3(e) {
return function() {
return e;
};
}
// node_modules/d3-sankey/src/sankey.js
-function A3(e, t) {
- return M3(e.source, t.source) || e.index - t.index;
+function L3(e, t) {
+ return z3(e.source, t.source) || e.index - t.index;
}
-function j3(e, t) {
- return M3(e.target, t.target) || e.index - t.index;
+function R3(e, t) {
+ return z3(e.target, t.target) || e.index - t.index;
}
-function M3(e, t) {
+function z3(e, t) {
return e.y0 - t.y0;
}
-function N3(e) {
+function B3(e) {
return e.value;
}
-function ePe(e) {
+function iPe(e) {
return e.index;
}
-function tPe(e) {
+function aPe(e) {
return e.nodes;
}
-function nPe(e) {
+function oPe(e) {
return e.links;
}
-function P3(e, t) {
+function V3(e, t) {
let n = e.get(t);
if (!n) throw Error("missing: " + t);
return n;
}
-function F3({ nodes: e }) {
+function H3({ 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 rPe() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = ePe, c = $Ne, l, u, d = tPe, f = nPe, p = 6;
+function sPe() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = iPe, c = rPe, l, u, d = aPe, f = oPe, 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), F3(e), e;
+ return h(e), g(e), _(e), v(e), x(e), H3(e), e;
}
m.update = function(e) {
- return F3(e), e;
+ return H3(e), e;
}, m.nodeId = function(e) {
- return arguments.length ? (s = typeof e == "function" ? e : k3(e), m) : s;
+ return arguments.length ? (s = typeof e == "function" ? e : I3(e), m) : s;
}, m.nodeAlign = function(e) {
- return arguments.length ? (c = typeof e == "function" ? e : k3(e), m) : c;
+ return arguments.length ? (c = typeof e == "function" ? e : I3(e), m) : c;
}, m.nodeSort = function(e) {
return arguments.length ? (l = e, m) : l;
}, m.nodeWidth = function(e) {
@@ -77499,9 +77558,9 @@ function rPe() {
}, m.nodePadding = function(e) {
return arguments.length ? (a = o = +e, m) : a;
}, m.nodes = function(e) {
- return arguments.length ? (d = typeof e == "function" ? e : k3(e), m) : d;
+ return arguments.length ? (d = typeof e == "function" ? e : I3(e), m) : d;
}, m.links = function(e) {
- return arguments.length ? (f = typeof e == "function" ? e : k3(e), m) : f;
+ return arguments.length ? (f = typeof e == "function" ? e : I3(e), m) : f;
}, m.linkSort = function(e) {
return arguments.length ? (u = e, m) : u;
}, m.size = function(i) {
@@ -77517,12 +77576,12 @@ function rPe() {
for (let [e, r] of t.entries()) {
r.index = e;
let { source: t, target: i } = r;
- typeof t != "object" && (t = r.source = P3(n, t)), typeof i != "object" && (i = r.target = P3(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
+ typeof t != "object" && (t = r.source = V3(n, t)), typeof i != "object" && (i = r.target = V3(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(O3(t.sourceLinks, N3), O3(t.targetLinks, N3)) : t.fixedValue;
+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(F3(t.sourceLinks, B3), F3(t.targetLinks, B3)) : t.fixedValue;
}
function _({ nodes: e }) {
let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;
@@ -77547,7 +77606,7 @@ function rPe() {
}
}
function y({ nodes: t }) {
- let r = E3(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
+ let r = N3(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];
@@ -77556,7 +77615,7 @@ function rPe() {
return o;
}
function b(e) {
- let n = D3(e, (e) => (r - t - (e.length - 1) * o) / O3(e, N3));
+ let n = P3(e, (e) => (r - t - (e.length - 1) * o) / F3(e, B3));
for (let i of e) {
let e = t;
for (let t of i) {
@@ -77573,7 +77632,7 @@ function rPe() {
}
function x(e) {
let n = y(e);
- o = Math.min(a, (r - t) / (E3(n, (e) => e.length) - 1)), b(n);
+ o = Math.min(a, (r - t) / (N3(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);
@@ -77592,7 +77651,7 @@ function rPe() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(M3), w(i, n);
+ l === void 0 && i.sort(z3), w(i, n);
}
}
function C(e, t, n) {
@@ -77608,7 +77667,7 @@ function rPe() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(M3), w(i, n);
+ l === void 0 && i.sort(z3), w(i, n);
}
}
function w(e, n) {
@@ -77629,12 +77688,12 @@ function rPe() {
}
function D({ sourceLinks: e, targetLinks: t }) {
if (u === void 0) {
- for (let { source: { sourceLinks: e } } of t) e.sort(j3);
- for (let { target: { targetLinks: t } } of e) t.sort(A3);
+ for (let { source: { sourceLinks: e } } of t) e.sort(R3);
+ for (let { target: { targetLinks: t } } of e) t.sort(L3);
}
}
function O(e) {
- if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(j3), n.sort(A3);
+ if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(R3), n.sort(L3);
}
function k(e, t) {
let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;
@@ -77663,15 +77722,15 @@ function rPe() {
return m;
}
// node_modules/d3-path/src/path.js
-var I3 = Math.PI, L3 = 2 * I3, R3 = 1e-6, iPe = L3 - R3;
-function z3() {
+var U3 = Math.PI, W3 = 2 * U3, G3 = 1e-6, cPe = W3 - G3;
+function K3() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
-function B3() {
- return new z3();
+function q3() {
+ return new K3();
}
-z3.prototype = B3.prototype = {
- constructor: z3,
+K3.prototype = q3.prototype = {
+ constructor: K3,
moveTo: function(e, t) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);
},
@@ -77692,11 +77751,11 @@ z3.prototype = B3.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 > R3) {
- if (!(Math.abs(u * s - c * l) > R3) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
+ else if (d > G3) {
+ if (!(Math.abs(u * s - c * l) > G3) || !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((I3 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > R3 && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
+ 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((U3 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > G3 && (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);
}
}
},
@@ -77704,7 +77763,7 @@ z3.prototype = B3.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) > R3 || Math.abs(this._y1 - l) > R3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % L3 + L3), d > iPe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > R3 && (this._ += "A" + n + "," + n + ",0," + +(d >= I3) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));
+ this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > G3 || Math.abs(this._y1 - l) > G3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % W3 + W3), d > cPe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > G3 && (this._ += "A" + n + "," + n + ",0," + +(d >= U3) + "," + 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";
@@ -77714,93 +77773,93 @@ z3.prototype = B3.prototype = {
}
};
// node_modules/d3-shape/src/constant.js
-function V3(e) {
+function J3(e) {
return function() {
return e;
};
}
// node_modules/d3-shape/src/point.js
-function aPe(e) {
+function lPe(e) {
return e[0];
}
-function oPe(e) {
+function uPe(e) {
return e[1];
}
// node_modules/d3-shape/src/array.js
-var sPe = Array.prototype.slice;
+var dPe = Array.prototype.slice;
// node_modules/d3-shape/src/link/index.js
-function cPe(e) {
+function fPe(e) {
return e.source;
}
-function lPe(e) {
+function pPe(e) {
return e.target;
}
-function uPe(e) {
- var t = cPe, n = lPe, r = aPe, i = oPe, a = null;
+function mPe(e) {
+ var t = fPe, n = pPe, r = lPe, i = uPe, a = null;
function o() {
- var o, s = sPe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
- if (a ||= o = B3(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;
+ var o, s = dPe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ if (a ||= o = q3(), 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 : V3(+e), o) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : J3(+e), o) : r;
}, o.y = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : V3(+e), o) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : J3(+e), o) : i;
}, o.context = function(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function dPe(e, t, n, r, i) {
+function hPe(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function fPe() {
- return uPe(dPe);
+function gPe() {
+ return mPe(hPe);
}
// node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function pPe(e) {
+function _Pe(e) {
return [e.source.x1, e.y0];
}
-function mPe(e) {
+function vPe(e) {
return [e.target.x0, e.y1];
}
-function hPe() {
- return fPe().source(pPe).target(mPe);
+function yPe() {
+ return gPe().source(_Pe).target(vPe);
}
// src/react/taste/taste.ts
-var gPe = "/api/taste", H3 = "/api/taste/refresh", _Pe = "/api/taste/import", U3 = "/api/taste/source", W3 = (e) => ["taste", e], vPe = ["taste", "refresh"], yPe = [
+var bPe = "/api/taste", Y3 = "/api/taste/refresh", xPe = "/api/taste/import", X3 = "/api/taste/source", Z3 = (e) => ["taste", e], SPe = ["taste", "refresh"], CPe = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], bPe = 2e3, xPe = (e) => e?.stale && !e.error ? bPe : !1, SPe = (e) => e ? new Date(e).toLocaleString("zh-CN", {
+], wPe = 2e3, TPe = (e) => e?.stale && !e.error ? wPe : !1, EPe = (e) => e ? new Date(e).toLocaleString("zh-CN", {
month: "numeric",
day: "numeric",
hour: "2-digit",
minute: "2-digit"
-}) : "—", CPe = (e, t) => V(U3, {
+}) : "—", DPe = (e, t) => V(X3, {
...e,
window: t
-}), G3 = (e, t, n = !1) => B(`${gPe}?window=${e}${n ? "&retry=1" : ""}`, t), wPe = (e) => B(H3, e);
-async function TPe(e, t) {
+}), Q3 = (e, t, n = !1) => B(`${bPe}?window=${e}${n ? "&retry=1" : ""}`, t), OPe = (e) => B(Y3, e);
+async function kPe(e, t) {
await H.fetchQuery({
- queryKey: W3(e),
- queryFn: () => G3(e, t)
+ queryKey: Z3(e),
+ queryFn: () => Q3(e, t)
});
}
-var EPe = (e) => V(H3, {
+var APe = (e) => V(Y3, {
window: e,
background: !0
-}), DPe = (e, t) => V(U3, {
+}), jPe = (e, t) => V(X3, {
operation: "remove",
source_key: e,
window: t
});
-async function OPe(e) {
- let t = await fetch(_Pe, {
+async function MPe(e) {
+ let t = await fetch(xPe, {
method: "POST",
credentials: "same-origin",
headers: {
@@ -77818,52 +77877,52 @@ async function OPe(e) {
}
return n;
}
-var kPe = 1e4, K3 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";
-function APe(e) {
+var NPe = 1e4, $3 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";
+function PPe(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"
- }) : K3(e);
+ }) : $3(e);
return `${t} · ${r(e.range_start)}–${r(e.range_end)}`;
}
-var jPe = S3, MPe = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), NPe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-function PPe(e) {
+var FPe = k3, IPe = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), LPe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+function RPe(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 FPe(e) {
- let t = e.map(NPe), n = Math.max(1, ...t);
+function zPe(e) {
+ let t = e.map(LPe), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
-var q3 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({
+var e6 = (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 IPe(e) {
- let t = q3(e, 6);
+function BPe(e) {
+ let t = e6(e, 6);
return t.length < 3 ? [] : t;
}
-var J3 = {
+var t6 = {
width: 720,
height: 435
-}, LPe = {
+}, VPe = {
source: 145,
target: 545
-}, Y3 = 30, RPe = 240;
-function X3(e, t, n) {
+}, n6 = 30, HPe = 240;
+function r6(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 zPe(e = []) {
+function UPe(e = []) {
let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);
if (!t.length) return null;
- let n = X3(t, "source", (e) => `其余 ${e.toLocaleString()} 个网站`), r = X3(t, "target", (e) => `其余 ${e.toLocaleString()} 位创作者`), i = /* @__PURE__ */ new Map();
+ let n = r6(t, "source", (e) => `其余 ${e.toLocaleString()} 个网站`), r = r6(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, {
@@ -77872,7 +77931,7 @@ function zPe(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) * Y3 + RPe), u = rPe().nodeId((e) => e.id).nodeWidth(10).nodePadding(Y3).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) * n6 + HPe), u = sPe().nodeId((e) => e.id).nodeWidth(10).nodePadding(n6).extent([[155, 16], [535, l]])({
nodes: [...o.map((e) => ({
id: `source:${e}`,
name: e,
@@ -77887,7 +77946,7 @@ function zPe(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), d = a.reduce((e, t) => e + t.value, 0), f = hPe();
+ }), d = a.reduce((e, t) => e + t.value, 0), f = yPe();
return {
nodes: u.nodes.map((e) => ({
id: e.id,
@@ -77915,17 +77974,17 @@ function zPe(e = []) {
};
}),
total: d,
- height: l + J3.height - 404
+ height: l + t6.height - 404
};
}
-var BPe = (e) => er(e, 17), Z3 = {
+var WPe = (e) => er(e, 17), i6 = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所",
series: "系列",
tags: "标签"
-}, VPe = [[
+}, GPe = [[
"big",
"大图 · 竖幅头像",
"maximize"
@@ -77933,7 +77992,7 @@ var BPe = (e) => er(e, 17), Z3 = {
"compact",
"紧凑 · 圆形头像",
"layout-grid"
-]], HPe = [[
+]], KPe = [[
"big",
"大图 · 完整标识",
"maximize"
@@ -77941,7 +78000,7 @@ var BPe = (e) => er(e, 17), Z3 = {
"compact",
"紧凑 · 圆形标识",
"layout-grid"
-]], UPe = [[
+]], qPe = [[
"big",
"大图 · 系列图片",
"maximize"
@@ -77949,7 +78008,7 @@ var BPe = (e) => er(e, 17), Z3 = {
"compact",
"紧凑 · 系列图片",
"layout-grid"
-]], WPe = [
+]], JPe = [
[
"studios",
"厂牌",
@@ -77965,7 +78024,7 @@ var BPe = (e) => er(e, 17), Z3 = {
"系列",
"file-stack"
]
-], GPe = [[
+], YPe = [[
"local",
"本地",
"hard-drive"
@@ -77973,7 +78032,7 @@ var BPe = (e) => er(e, 17), Z3 = {
"online",
"在线",
"rss"
-]], KPe = [
+]], XPe = [
[
"performers",
"艺人",
@@ -77989,7 +78048,7 @@ var BPe = (e) => er(e, 17), Z3 = {
"在线",
"rss"
]
-], qPe = [[
+], ZPe = [[
"cloud",
"标签云",
"tags"
@@ -77997,8 +78056,8 @@ var BPe = (e) => er(e, 17), Z3 = {
"alphabet",
"字母表",
"text-aa"
-]], Q3 = (e) => e === "compact" ? "compact" : "big";
-function $3(e, t) {
+]], a6 = (e) => e === "compact" ? "compact" : "big";
+function o6(e, t) {
let n = new URLSearchParams(t);
return {
kind: e,
@@ -78008,7 +78067,7 @@ function $3(e, t) {
category: n.get("category") || "all"
};
}
-var e6 = (e, t, n) => Hs(e.map(([e, t, n]) => ({
+var s6 = (e, t, n) => Hs(e.map(([e, t, n]) => ({
value: e,
label: t,
symbol: n
@@ -78016,12 +78075,12 @@ var e6 = (e, t, n) => Hs(e.map(([e, t, n]) => ({
active: t,
label: n,
className: "indextabs"
-}), JPe = (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">
+}), QPe = (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", "标签视图", qPe, e, { className: "tag-skeleton-view" })}</span></div></div></div>`;
-function YPe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
- let o = Z3[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies" || e === "series", l = s ? Xc("people-layout", o + "索引版式", e === "series" ? UPe : c ? HPe : VPe, a) : "";
+ <span class="ml-auto">${Xc("tag-view", "标签视图", ZPe, e, { className: "tag-skeleton-view" })}</span></div></div></div>`;
+function $Pe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
+ let o = i6[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies" || e === "series", l = s ? Xc("people-layout", o + "索引版式", e === "series" ? qPe : c ? KPe : GPe, 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}
@@ -78033,24 +78092,24 @@ function YPe({ 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" ? e6(GPe, n, "词表") : e === "performers" || e === "creators" ? e6(KPe, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? e6(WPe, e, "资料类型") : ""}
- ${e === "tags" ? JPe(r) : ""}
- ${e === "performers" && n !== "online" ? YTe(i) : ""}
+ ${e === "tags" ? s6(YPe, n, "词表") : e === "performers" || e === "creators" ? s6(XPe, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? s6(JPe, e, "资料类型") : ""}
+ ${e === "tags" ? QPe(r) : ""}
+ ${e === "performers" && n !== "online" ? XTe(i) : ""}
${rc({
kind: e,
layout: a,
mode: r
})}`;
}
-var XPe = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";
-function t6(e, t, n) {
- let r = YPe(t, n);
- e.querySelector("[data-skeleton]")?.dataset.skeleton !== XPe(r) && (e.innerHTML = r, uc(e));
+var eFe = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";
+function c6(e, t, n) {
+ let r = $Pe(t, n);
+ e.querySelector("[data-skeleton]")?.dataset.skeleton !== eFe(r) && (e.innerHTML = r, uc(e));
}
// src/react/router/pages/index-entity.tsx
-var ZPe = () => uu, QPe = () => Yl, n6 = () => document.getElementById("index");
-function r6(e, t, n = {}) {
- let r = (0, F.useSyncExternalStore)(xu, ZPe);
+var tFe = () => uu, nFe = () => Yl, l6 = () => document.getElementById("index");
+function u6(e, t, n = {}) {
+ let r = (0, F.useSyncExternalStore)(xu, tFe);
Qd();
let i = Rf(W.navigation.location.pathname), a = (0, F.useRef)({
mounted: !0,
@@ -78098,11 +78157,11 @@ function r6(e, t, n = {}) {
i
]);
}
-async function $Pe(e, t, n, r) {
- let i = n6();
+async function rFe(e, t, n, r) {
+ let i = l6();
if (!i) return;
- let a = `/${t}`, o = $3(t, n), s = Q3(cM().value.peopleLayout), c = !!i.querySelector("[data-index-page]") && !i.hidden;
- c || (e.surfaceChanged("index", a), t6(i, o, s), lm(r, i, { pending: !0 })), await fp(a, {
+ let a = `/${t}`, o = o6(t, n), s = a6(uM().value.peopleLayout), c = !!i.querySelector("[data-index-page]") && !i.hidden;
+ c || (e.surfaceChanged("index", a), c6(i, o, s), lm(r, i, { pending: !0 })), await fp(a, {
...o,
layout: s,
selectMode: Yl,
@@ -78113,23 +78172,23 @@ async function $Pe(e, t, n, r) {
reuse: c
}) && r() && (e.surfaceShown?.("index", a), lm(r, i));
}
-function eFe(e) {
- let t = n6(), n = t ? sp(t) : null;
+function iFe(e) {
+ let t = l6(), n = t ? sp(t) : null;
return !!t && !t.hidden && !!n && n.path === e && n.host.isConnected;
}
-function tFe({ epoch: e }) {
- let t = (0, F.useContext)(iG), n = Qd(), r = n.pathname.split("/").filter(Boolean)[0];
- return r6(e, (e, i) => {
- t && $Pe(t, r, n.search, i);
- }, { shown: () => eFe(`/${r}`) }), null;
+function aFe({ epoch: e }) {
+ let t = (0, F.useContext)(oG), n = Qd(), r = n.pathname.split("/").filter(Boolean)[0];
+ return u6(e, (e, i) => {
+ t && rFe(t, r, n.search, i);
+ }, { shown: () => iFe(`/${r}`) }), null;
}
-function nFe() {
- let e = rG(), t = (0, F.useSyncExternalStore)(xu, QPe), n = (0, F.useRef)(t);
+function oFe() {
+ let e = aG(), t = (0, F.useSyncExternalStore)(xu, nFe), n = (0, F.useRef)(t);
return (0, F.useEffect)(() => {
- n.current !== t && (n.current = t, window.location.pathname === "/tags" && mp(n6(), { selectMode: t }));
- }, [t]), /* @__PURE__ */ (0, I.jsx)(tFe, { epoch: e }, e);
+ n.current !== t && (n.current = t, window.location.pathname === "/tags" && mp(l6(), { selectMode: t }));
+ }, [t]), /* @__PURE__ */ (0, I.jsx)(aFe, { epoch: e }, e);
}
-function rFe(e) {
+function sFe(e) {
let t;
try {
t = decodeURIComponent(e);
@@ -78143,9 +78202,9 @@ function rFe(e) {
name: a
} : null;
}
-var i6 = /* @__PURE__ */ new WeakMap();
-function iFe(e) {
- let t = i6.get(e);
+var d6 = /* @__PURE__ */ new WeakMap();
+function cFe(e) {
+ let t = d6.get(e);
return t || (t = {
helpers: {
...e.grid.helpers,
@@ -78155,14 +78214,14 @@ function iFe(e) {
...e.grid.actions,
revealSource: e.revealSource
}
- }, i6.set(e, t)), t;
+ }, d6.set(e, t)), t;
}
-function a6() {
- let e = n6(), t = e ? sp(e) : null;
+function f6() {
+ let e = l6(), t = e ? sp(e) : null;
return !!t && t.path.endsWith("/*") && t.host.isConnected;
}
-async function aFe(e, t, n, r, i, a, o) {
- let s = n6();
+async function lFe(e, t, n, r, i, a, o) {
+ let s = l6();
if (!s) return;
let { segment: c, kind: l, name: u } = n;
if (!a()) return;
@@ -78185,7 +78244,7 @@ async function aFe(e, t, n, r, i, a, o) {
let g = {
...h,
hosts: m,
- card: iFe(e),
+ card: cFe(e),
resolvedEntity: o,
restoreNavigation: sm(),
actions: {
@@ -78200,16 +78259,16 @@ async function aFe(e, t, n, r, i, a, o) {
isCurrent: a,
beforePlace: () => e.surfaceChanged("entity", r),
place: (e) => (e.replaceChildren(...f), p.firstElementChild)
- }) && a() && a6() && (e.surfaceShown?.("entity", r), lm(a, m.filter));
+ }) && a() && f6() && (e.surfaceShown?.("entity", r), lm(a, m.filter));
}
-function oFe({ target: e }) {
- let t = (0, F.useContext)(iG), n = rG(), r = Qd();
- return r6(n, (n, i) => {
+function uFe({ target: e }) {
+ let t = (0, F.useContext)(oG), n = aG(), r = Qd();
+ return u6(n, (n, i) => {
let a = t?.entity;
t && a && (async () => {
- if (n || !a6()) {
+ if (n || !f6()) {
if (t.surfaceChanged("entity", r.pathname), await a.loading(e.kind, e.name, i), !i()) return;
- lm(i, n6(), { pending: !0 });
+ lm(i, l6(), { pending: !0 });
}
let o = new URLSearchParams({ kind: e.kind });
o.set(/^[0-9]+$/.test(e.name) ? "id" : "name", e.name);
@@ -78235,7 +78294,7 @@ function oFe({ 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, n6()?.querySelector("[data-entity-filter]")) : aFe(t, a, {
+ l === r.pathname ? !n && a.refresh(e.kind, c, r.search) ? lm(i, l6()?.querySelector("[data-entity-filter]")) : lFe(t, a, {
...e,
name: c
}, r.pathname, r.search, i, s) : Ep(l + r.search + r.hash, {
@@ -78243,16 +78302,16 @@ function oFe({ target: e }) {
state: W.navigation.location.state
});
})();
- }, { shown: () => a6() && !n6()?.hidden }), null;
+ }, { shown: () => f6() && !l6()?.hidden }), null;
}
-function sFe() {
- let e = rFe(Qd().pathname);
- return e ? /* @__PURE__ */ (0, I.jsx)(oFe, { target: e }, JSON.stringify([e.kind, e.name])) : null;
+function dFe() {
+ let e = sFe(Qd().pathname);
+ return e ? /* @__PURE__ */ (0, I.jsx)(uFe, { target: e }, JSON.stringify([e.kind, e.name])) : null;
}
// src/react/router/pages/follow.tsx
-var o6 = () => document.getElementById("stats"), cFe = () => gu;
-async function lFe(e, t) {
- let n = o6(), r = e.follow;
+var p6 = () => document.getElementById("stats"), fFe = () => gu;
+async function pFe(e, t) {
+ let n = p6(), r = e.follow;
if (!n || !r) return;
let i = om("follow"), a = r.refresh(i), o = r.props();
if (am("follow", {
@@ -78261,34 +78320,34 @@ async function lFe(e, t) {
revision: o.revision
}), a) return;
let s = H.getQueryData(na(o.view, o.revision).queryKey) !== void 0;
- s || (e.surfaceChanged("follow", "/follow"), D2(n, r.skeleton()), lm(t, n, { pending: !0 })), await fp("/follow", o, {
+ s || (e.surfaceChanged("follow", "/follow"), P2(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 uFe() {
- let e = o6(), t = e ? sp(e) : null;
+function mFe() {
+ let e = p6(), t = e ? sp(e) : null;
return !!e && !e.hidden && !!t && t.path === "/follow" && t.host.isConnected;
}
-function dFe() {
- let e = (0, F.useContext)(iG);
- return r6(rG(), (t, n) => {
- e && lFe(e, n);
+function hFe() {
+ let e = (0, F.useContext)(oG);
+ return u6(aG(), (t, n) => {
+ e && pFe(e, n);
}, {
- shown: uFe,
+ shown: mFe,
onCovered: () => {
W.navigation.location.pathname.startsWith("/posts/") && e?.follow?.ground();
}
}), null;
}
-function s6(e) {
+function m6(e) {
let t = e ? sp(e) : null;
return !!t && t.path === "/playlists" && t.host.isConnected;
}
-async function fFe(e, t) {
- let n = o6();
- n && (e.surfaceChanged("playlists", "/playlists"), D2(n, T2("/playlists", {
+async function gFe(e, t) {
+ let n = p6();
+ n && (e.surfaceChanged("playlists", "/playlists"), P2(n, M2("/playlists", {
followLayout: "",
followSort: "",
followDir: ""
@@ -78297,54 +78356,54 @@ async function fFe(e, t) {
isCurrent: t
}), t() && lm(t));
}
-function pFe() {
- let e = (0, F.useContext)(iG), t = (0, F.useSyncExternalStore)(xu, cFe), n = (0, F.useRef)(t);
+function _Fe() {
+ let e = (0, F.useContext)(oG), t = (0, F.useSyncExternalStore)(xu, fFe), n = (0, F.useRef)(t);
return (0, F.useEffect)(() => {
if (n.current === t) return;
n.current = t;
- let e = o6();
- s6(e) && mp(e, { revision: t });
- }, [t]), r6(rG(), (t, n) => {
- e && fFe(e, n);
+ let e = p6();
+ m6(e) && mp(e, { revision: t });
+ }, [t]), u6(aG(), (t, n) => {
+ e && gFe(e, n);
}, { shown: () => {
- let e = o6();
- return s6(e) && !e.hidden;
+ let e = p6();
+ return m6(e) && !e.hidden;
} }), null;
}
// src/react/router/pages/immerse.tsx
-function mFe() {
+function vFe() {
let e = new URLSearchParams(W.navigation.location.search).get("id");
return /^\d+$/.test(e || "") ? Number(e) : void 0;
}
-function hFe() {
- let e = (0, F.useContext)(iG);
- return ZW(() => {
- e?.openImmerse(mFe());
+function yFe() {
+ let e = (0, F.useContext)(oG);
+ return nG(() => {
+ e?.openImmerse(vFe());
}, !0), null;
}
-function gFe() {
- return /* @__PURE__ */ (0, I.jsx)(hFe, {}, rG());
+function bFe() {
+ return /* @__PURE__ */ (0, I.jsx)(yFe, {}, aG());
}
// src/react/router/pages/managed.tsx
-var _Fe = () => uu > 0, c6 = () => (0, F.useSyncExternalStore)(xu, _Fe), l6 = () => cM().value.followLayout === "table" ? "table" : "default", u6 = () => new URLSearchParams(window.location.search);
-function d6(e) {
+var xFe = () => uu > 0, h6 = () => (0, F.useSyncExternalStore)(xu, xFe), g6 = () => uM().value.followLayout === "table" ? "table" : "default", _6 = () => new URLSearchParams(window.location.search);
+function v6(e) {
return wn("/healthz", { signal: e.controller.signal }).catch((e) => {
if (Tn(e)) return null;
throw e;
});
}
-function f6(e, t) {
+function y6(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 vFe(e, t) {
+async function SFe(e, t) {
if (e === "/jav") {
- let e = await d6(t);
+ let e = await v6(t);
return t.live ? {
- tab: SU(u6().get("tab")),
+ tab: wU(_6().get("tab")),
readOnly: !!e?.ledger_read_only
} : null;
}
@@ -78355,50 +78414,50 @@ async function vFe(e, t) {
}
if (e.startsWith("/settings/")) {
window.location.hash === "#peachProxy" && yu({ configurationRequestedSection: "网络与访问" });
- let t = u6().get("section") || su || Of(e);
+ let t = _6().get("section") || su || Of(e);
return t ? { section: t } : {};
}
if (e === "/review") {
- let e = u6().get("category") || "", n = await d6(t);
+ let e = _6().get("category") || "", n = await v6(t);
return t.live ? {
- category: zY(e) ? e : "",
- queue: HY(u6().get("queue")),
- ...f6(n, "/review")
+ category: VY(e) ? e : "",
+ queue: WY(_6().get("queue")),
+ ...y6(n, "/review")
} : null;
}
if (e === "/subscriptions") {
- let e = YZ("?" + u6().toString()), n = await d6(t);
+ let e = XZ("?" + _6().toString()), n = await v6(t);
if (!t.live) return null;
- let r = cM().value;
+ let r = uM().value;
return {
...e,
pageSize: Number(r.followPageSize) || 20,
- layout: l6(),
- ...f6(n, "/subscriptions")
+ layout: g6(),
+ ...y6(n, "/subscriptions")
};
}
return {};
}
-async function yFe(e, t, n) {
+async function CFe(e, t, n) {
let r = W.navigation.seq, i = () => n.live && W.navigation.seq === r;
- if (e === "/jav" && SU(u6().get("tab")) === "library") {
- W.replace(uve(window.location.search));
+ if (e === "/jav" && wU(_6().get("tab")) === "library") {
+ W.replace(cve(window.location.search));
return;
}
- if (e === "/subscriptions" && u6().get("tab") === "wants") {
+ if (e === "/subscriptions" && _6().get("tab") === "wants") {
Ep("/jav?tab=wants", { replace: !0 });
return;
}
- if (e === "/subscriptions" && u6().get("tab") === "source") {
+ if (e === "/subscriptions" && _6().get("tab") === "source") {
Ep("/settings/subscriptions", { replace: !0 });
return;
}
let a = document.getElementById("stats");
if (!a) return;
- t.surfaceChanged("management", e), D2(a, T2(e, {
- followLayout: l6(),
- followSort: u6().get("sort") || "",
- followDir: u6().get("dir") || ""
+ t.surfaceChanged("management", e), P2(a, M2(e, {
+ followLayout: g6(),
+ followSort: _6().get("sort") || "",
+ followDir: _6().get("dir") || ""
})), lm(i, a, { pending: !0 }), e === "/taste" && (yu({ state: {
...U,
creator: "",
@@ -78414,7 +78473,7 @@ async function yFe(e, t, n) {
q: "",
jav: ""
} }), t.clearSearch());
- let o = await vFe(e, n);
+ let o = await SFe(e, n);
if (!o) return;
let s = await fp(e, o, {
container: a,
@@ -78430,19 +78489,19 @@ async function yFe(e, t, n) {
}) : lm(i);
}
}
-function p6({ path: e }) {
- let t = rG();
+function b6({ path: e }) {
+ let t = aG();
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)(bFe, {
+ return /* @__PURE__ */ (0, I.jsx)(wFe, {
path: e,
covered: r.current === null
}, `${a} ${r.current ?? "covered"}`);
}
-function bFe({ path: e, covered: t }) {
- let n = (0, F.useContext)(iG), r = c6(), i = (0, F.useRef)(null);
+function wFe({ path: e, covered: t }) {
+ let n = (0, F.useContext)(oG), r = h6(), i = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
e.startsWith("/settings/") && mp(document.getElementById("stats"), { section: Of(e) });
}, [e]), (0, F.useEffect)(() => {
@@ -78453,15 +78512,15 @@ function bFe({ path: e, covered: t }) {
controller: new AbortController()
};
i.current = a, queueMicrotask(() => {
- a.live && yFe(e, n, a);
+ a.live && CFe(e, n, a);
});
}, [r]), (0, F.useEffect)(() => () => {
let e = i.current;
e && (e.live = !1, e.controller.abort());
}, []), null;
}
-function xFe() {
- let e = c6(), t = (0, F.useRef)(!1);
+function TFe() {
+ let e = h6(), t = (0, F.useRef)(!1);
return (0, F.useEffect)(() => {
if (!e || t.current || Rf(W.navigation.location.pathname)) return;
t.current = !0;
@@ -78474,24 +78533,24 @@ function xFe() {
}, [e]), null;
}
// src/react/router/route-chunk.ts
-var m6 = [], h6 = "peach.chunkReloadAt", SFe = 3e4;
-async function CFe() {
+var x6 = [], S6 = "peach.chunkReloadAt", EFe = 3e4;
+async function DFe() {
try {
- let e = Number(sessionStorage.getItem(h6) || 0);
- if (Date.now() - e < SFe || !(await fetch("/healthz", {
+ let e = Number(sessionStorage.getItem(S6) || 0);
+ if (Date.now() - e < EFe || !(await fetch("/healthz", {
cache: "no-store",
credentials: "same-origin"
})).ok) return;
- sessionStorage.setItem(h6, String(Date.now())), location.reload();
+ sessionStorage.setItem(S6, String(Date.now())), location.reload();
} catch {}
}
-function g6(e) {
+function C6(e) {
let t = null, n = null, r = () => n ??= e().then((e) => (t = { module: e }, e), (e) => {
throw n = null, e;
});
- return m6.push(r), {
+ return x6.push(r), {
preload: () => r().catch(async (e) => {
- throw await CFe(), e;
+ throw await DFe(), e;
}),
get: () => {
if (!t) throw Error("页面代码还没装载");
@@ -78499,10 +78558,10 @@ function g6(e) {
}
};
}
-function wFe() {
+function OFe() {
let e = globalThis.requestIdleCallback;
if (typeof e != "function") return;
- let t = [...m6], n = () => {
+ let t = [...x6], n = () => {
let r = t.shift();
r && e(() => {
r().catch(() => {}).finally(n);
@@ -78511,31 +78570,31 @@ function wFe() {
document.readyState === "complete" ? n() : window.addEventListener("load", n, { once: !0 });
}
// src/react/router/managed-routes.tsx
-async function _6(e, t) {
+async function w6(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 v6 = g6(() => import("./peach-app.jav-page-ODKY3pI8.js")), y6 = g6(() => import("./peach-app.stats-page-DhNggTPt.js")), b6 = g6(() => import("./peach-app.taste-page-O5P41pRb.js")), x6 = g6(() => import("./peach-app.review-page-kd1HFP2A.js")), S6 = g6(() => import("./peach-app.data-cleanup-page-CZOBqkVd.js")), C6 = g6(() => import("./peach-app.duplicates-page-Bau8HIlx.js")), w6 = g6(() => import("./peach-app.quality-goals-page-Deoy7rhD.js")), T6 = g6(() => import("./peach-app.scraping-page-Ddbx11Bn.js")), E6 = g6(async () => {
+var T6 = C6(() => import("./peach-app.jav-page-C7oV8KHn.js")), E6 = C6(() => import("./peach-app.stats-page-DhNggTPt.js")), D6 = C6(() => import("./peach-app.taste-page-O5P41pRb.js")), O6 = C6(() => import("./peach-app.review-page-kd1HFP2A.js")), k6 = C6(() => import("./peach-app.data-cleanup-page-CZOBqkVd.js")), A6 = C6(() => import("./peach-app.duplicates-page-Bau8HIlx.js")), j6 = C6(() => import("./peach-app.quality-goals-page-Deoy7rhD.js")), M6 = C6(() => import("./peach-app.scraping-page-Ddbx11Bn.js")), N6 = C6(async () => {
let [{ ConfigurationPage: e }, { DiagnosticsPage: t }] = await Promise.all([import("./peach-app.configuration-page-BkqUJk6k.js"), import("./peach-app.diagnostics-page-yTNOV5os.js")]);
return {
ConfigurationPage: e,
DiagnosticsPage: t
};
-}), D6 = g6(() => import("./peach-app.activity-page-CDOzqSMm.js")), O6 = g6(() => import("./peach-app.follow-manage-page-Bvnaf0EO.js")), k6 = g6(() => import("./peach-app.playlists-page-Be7ygGCR.js"));
-function TFe(e, t, n) {
+}), P6 = C6(() => import("./peach-app.activity-page-CDOzqSMm.js")), F6 = C6(() => import("./peach-app.follow-manage-page-Bvnaf0EO.js")), I6 = C6(() => import("./peach-app.playlists-page-Be7ygGCR.js"));
+function kFe(e, t, n) {
if (e === "duplicates") {
n("/duplicates");
return;
}
let r = t.managePath(e);
- M6(r) ? n(r) : t.openManage(e);
+ z6(r) ? n(r) : t.openManage(e);
}
-var A6 = (e) => ({
- element: /* @__PURE__ */ (0, I.jsx)(p6, { path: e }),
- prefetch: (t, n) => _6(E6, Promise.all([Hke(n), ...e === "/settings/diagnostics" ? [mOe(n)] : []]).then(() => {})),
+var L6 = (e) => ({
+ element: /* @__PURE__ */ (0, I.jsx)(b6, { path: e }),
+ prefetch: (t, n) => w6(N6, Promise.all([Wke(n), ...e === "/settings/diagnostics" ? [gOe(n)] : []]).then(() => {})),
page: (t, n) => {
- let { ConfigurationPage: r, DiagnosticsPage: i } = E6.get();
+ let { ConfigurationPage: r, DiagnosticsPage: i } = N6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
receipt: (e) => n.receipt(e),
reopenTutorial: n.reopenTutorial,
@@ -78546,12 +78605,12 @@ var A6 = (e) => ({
})
});
}
-}), j6 = {
+}), R6 = {
...qf.reduce((e, t) => (e[t.path] = {
- element: /* @__PURE__ */ (0, I.jsx)(p6, { path: t.path }),
- prefetch: (e, n) => _6(S6, zTe(t.key, n)),
+ element: /* @__PURE__ */ (0, I.jsx)(b6, { path: t.path }),
+ prefetch: (e, n) => w6(k6, BTe(t.key, n)),
page: (e, n) => {
- let { DataCleanupToolPage: r } = S6.get();
+ let { DataCleanupToolPage: r } = k6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
tool: t.key,
failure: n.failure,
@@ -78560,10 +78619,10 @@ var A6 = (e) => ({
}
}, e), {}),
"/jav": {
- element: /* @__PURE__ */ (0, I.jsx)(p6, { path: "/jav" }),
- prefetch: (e, t) => _6(v6, kW(e.tab, t)),
+ element: /* @__PURE__ */ (0, I.jsx)(b6, { path: "/jav" }),
+ prefetch: (e, t) => w6(T6, PW(e.tab, t)),
page: (e, t) => {
- let { JavPage: n } = v6.get();
+ let { JavPage: n } = T6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
...e,
navigate: t.navigate,
@@ -78572,10 +78631,10 @@ var A6 = (e) => ({
}
},
"/stats": {
- element: /* @__PURE__ */ (0, I.jsx)(p6, { path: "/stats" }),
- prefetch: (e, t) => _6(y6, LNe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(b6, { path: "/stats" }),
+ prefetch: (e, t) => w6(E6, VNe(t)),
page: (e, t) => {
- let { StatsPage: n } = y6.get();
+ let { StatsPage: n } = E6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
tagLabel: Pl,
onTag: t.openTag
@@ -78583,10 +78642,10 @@ var A6 = (e) => ({
}
},
"/taste": {
- element: /* @__PURE__ */ (0, I.jsx)(p6, { path: "/taste" }),
- prefetch: (e, t) => _6(b6, TPe("all", t)),
+ element: /* @__PURE__ */ (0, I.jsx)(b6, { path: "/taste" }),
+ prefetch: (e, t) => w6(D6, kPe("all", t)),
page: (e, t, n) => {
- let { TastePage: r } = b6.get();
+ let { TastePage: r } = D6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
onSignal: t.openTasteSignal,
navigate: n,
@@ -78596,10 +78655,10 @@ var A6 = (e) => ({
}
},
"/review": {
- element: /* @__PURE__ */ (0, I.jsx)(p6, { path: "/review" }),
- prefetch: (e, t) => _6(x6, kwe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(b6, { path: "/review" }),
+ prefetch: (e, t) => w6(O6, Awe(t)),
page: (e, t) => {
- let { ReviewPage: n } = x6.get();
+ let { ReviewPage: n } = O6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
...e,
route: t.routeReview,
@@ -78611,23 +78670,23 @@ var A6 = (e) => ({
}
},
"/data-cleanup": {
- element: /* @__PURE__ */ (0, I.jsx)(p6, { path: "/data-cleanup" }),
- prefetch: (e, t) => _6(S6, RTe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(b6, { path: "/data-cleanup" }),
+ prefetch: (e, t) => w6(k6, zTe(t)),
page: (e, t, n) => {
- let { DataCleanupPage: r } = S6.get();
+ let { DataCleanupPage: r } = k6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
navigate: n,
failure: t.failure,
- open: (e) => TFe(e, t, n),
+ open: (e) => kFe(e, t, n),
toast: (e, { warning: n = !1 } = {}) => n ? t.toast({ text: e }, { sound: "warning" }) : t.receipt(e)
});
}
},
"/duplicates": {
- element: /* @__PURE__ */ (0, I.jsx)(p6, { path: "/duplicates" }),
- prefetch: (e, t) => _6(C6, GCe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(b6, { path: "/duplicates" }),
+ prefetch: (e, t) => w6(A6, KCe(t)),
page: (e, t) => {
- let { DuplicatesPage: n } = C6.get();
+ let { DuplicatesPage: n } = A6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
openItem: t.openItem,
failure: t.failure,
@@ -78636,46 +78695,46 @@ var A6 = (e) => ({
}
},
"/quality-goals": {
- element: /* @__PURE__ */ (0, I.jsx)(p6, { path: "/quality-goals" }),
- prefetch: (e, t) => _6(w6, rwe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(b6, { path: "/quality-goals" }),
+ prefetch: (e, t) => w6(j6, iwe(t)),
page: (e, t) => {
- let { QualityGoalsPage: n } = w6.get();
+ let { QualityGoalsPage: n } = j6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
openItem: t.openItem,
- javTitleHtml: nL,
- javDisplayName: tL,
+ javTitleHtml: iL,
+ javDisplayName: rL,
toast: (e) => t.receipt(e),
srcBadge: t.srcBadge
});
}
},
"/sources": {
- element: /* @__PURE__ */ (0, I.jsx)(p6, { path: "/sources" }),
- prefetch: (e, t) => _6(T6, Mke(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(b6, { path: "/sources" }),
+ prefetch: (e, t) => w6(M6, Pke(t)),
page: (e, t) => {
- let { ScrapingPage: n } = T6.get();
+ let { ScrapingPage: n } = M6.get();
return /* @__PURE__ */ (0, I.jsx)(n, { toast: (e) => t.toast(e) });
}
},
- "/settings/library": A6("/settings/library"),
- "/settings/subscriptions": A6("/settings/subscriptions"),
- "/settings/downloads": A6("/settings/downloads"),
- "/settings/network": A6("/settings/network"),
- "/settings/maintenance": A6("/settings/maintenance"),
- "/settings/diagnostics": A6("/settings/diagnostics"),
+ "/settings/library": L6("/settings/library"),
+ "/settings/subscriptions": L6("/settings/subscriptions"),
+ "/settings/downloads": L6("/settings/downloads"),
+ "/settings/network": L6("/settings/network"),
+ "/settings/maintenance": L6("/settings/maintenance"),
+ "/settings/diagnostics": L6("/settings/diagnostics"),
"/tasks": {
- element: /* @__PURE__ */ (0, I.jsx)(p6, { path: "/tasks" }),
- prefetch: (e, t) => _6(D6, Hfe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(b6, { path: "/tasks" }),
+ prefetch: (e, t) => w6(P6, Bfe(t)),
page: () => {
- let { ActivityPage: e } = D6.get();
+ let { ActivityPage: e } = P6.get();
return /* @__PURE__ */ (0, I.jsx)(e, {});
}
},
"/subscriptions": {
- element: /* @__PURE__ */ (0, I.jsx)(p6, { path: "/subscriptions" }),
- prefetch: (e, t) => _6(O6, Li(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(b6, { path: "/subscriptions" }),
+ prefetch: (e, t) => w6(F6, Li(t)),
page: (e, t) => {
- let { FollowManagePage: n } = O6.get();
+ let { FollowManagePage: n } = F6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
...e,
route: t.routeFollowManage,
@@ -78685,12 +78744,12 @@ var A6 = (e) => ({
});
}
}
-}, M6 = (e) => Object.hasOwn(j6, e), EFe = { "/resource-sync": { element: /* @__PURE__ */ (0, I.jsx)(xFe, {}) } }, DFe = { "/immerse": { element: /* @__PURE__ */ (0, I.jsx)(gFe, {}) } }, N6 = {
+}, z6 = (e) => Object.hasOwn(R6, e), AFe = { "/resource-sync": { element: /* @__PURE__ */ (0, I.jsx)(TFe, {}) } }, jFe = { "/immerse": { element: /* @__PURE__ */ (0, I.jsx)(bFe, {}) } }, B6 = {
"/playlists": {
- element: /* @__PURE__ */ (0, I.jsx)(pFe, {}),
- prefetch: (e, t) => _6(k6, gke(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(_Fe, {}),
+ prefetch: (e, t) => w6(I6, vke(t)),
page: (e, t) => {
- let { PlaylistsPage: n } = k6.get();
+ let { PlaylistsPage: n } = I6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
revision: e.revision,
openPlaylist: t.openPlaylist,
@@ -78701,14 +78760,14 @@ var A6 = (e) => ({
}
},
"/follow": {
- element: /* @__PURE__ */ (0, I.jsx)(dFe, {}),
+ element: /* @__PURE__ */ (0, I.jsx)(hFe, {}),
prefetch: (e, t) => aa(e, t),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(KEe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(JEe, { ...e })
}
-}, P6 = (e) => Object.hasOwn(N6, e), F6 = {
- element: /* @__PURE__ */ (0, I.jsx)(nFe, {}),
- prefetch: (e, t) => oEe(e, t),
- page: (e, t) => /* @__PURE__ */ (0, I.jsx)(OOe, {
+}, V6 = (e) => Object.hasOwn(B6, e), H6 = {
+ element: /* @__PURE__ */ (0, I.jsx)(oFe, {}),
+ prefetch: (e, t) => sEe(e, t),
+ page: (e, t) => /* @__PURE__ */ (0, I.jsx)(AOe, {
...e,
route: t.routeIndex,
savePreference: t.savePeopleLayout,
@@ -78721,82 +78780,82 @@ var A6 = (e) => ({
openFollowAuthor: t.openFollowAuthor,
openFollowTag: t.openFollowTag
})
-}, I6 = {
- "/performers": F6,
- "/creators": F6,
- "/studios": F6,
- "/agencies": F6,
- "/tags": F6,
- "/series": F6
-}, L6 = {
- element: /* @__PURE__ */ (0, I.jsx)(sFe, {}),
- prefetch: (e) => JTe(e),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(lOe, { ...e })
-}, R6 = {
- "/performers/*": L6,
- "/studios/*": L6,
- "/creators/*": L6,
- "/series/*": L6,
- "/agencies/*": L6,
- "/tags/*": L6
-}, z6 = {
+}, U6 = {
+ "/performers": H6,
+ "/creators": H6,
+ "/studios": H6,
+ "/agencies": H6,
+ "/tags": H6,
+ "/series": H6
+}, W6 = {
+ element: /* @__PURE__ */ (0, I.jsx)(dFe, {}),
+ prefetch: (e) => YTe(e),
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(dOe, { ...e })
+}, G6 = {
+ "/performers/*": W6,
+ "/studios/*": W6,
+ "/creators/*": W6,
+ "/series/*": W6,
+ "/agencies/*": W6,
+ "/tags/*": W6
+}, K6 = {
"/": {
- element: /* @__PURE__ */ (0, I.jsx)(KW, {}),
+ element: /* @__PURE__ */ (0, I.jsx)(ZW, {}),
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(yY, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(xY, { ...e })
},
"/junk-files": {
- element: /* @__PURE__ */ (0, I.jsx)(KW, {}),
+ element: /* @__PURE__ */ (0, I.jsx)(ZW, {}),
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(VOe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(UOe, { ...e })
}
-}, B6 = (e) => Object.hasOwn(z6, e), OFe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, I.jsx)(eve, { ...e }) : /* @__PURE__ */ (0, I.jsx)(B$, { ...e }), V6 = {
+}, q6 = (e) => Object.hasOwn(K6, e), MFe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, I.jsx)(Q_e, { ...e }) : /* @__PURE__ */ (0, I.jsx)(V$, { ...e }), J6 = {
"catalog-filter": {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(Hye, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(Uye, { ...e })
},
"feed-new": {
- prefetch: (e) => WTe(e),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(hOe, { ...e })
+ prefetch: (e) => GTe(e),
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(_Oe, { ...e })
},
"library-processing": {
- prefetch: (e, t) => yH(t),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(OFe, { ...e })
+ prefetch: (e, t) => xH(t),
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(MFe, { ...e })
},
search: {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(Rke, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(Bke, { ...e })
}
-}, H6 = (e) => Object.hasOwn(V6, e), U6 = {
+}, Y6 = (e) => Object.hasOwn(J6, e), X6 = {
"batch-dock": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Xce, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Jce, {})
},
"glow-picker": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Mle, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Ale, {})
},
"manage-header": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(xfe, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(yfe, {})
},
immerse: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Ede, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(wde, {})
},
"settings-panel": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(sAe, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(lAe, {})
},
sidebar: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(CAe, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(TAe, {})
},
stage: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(FNe, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(zNe, {})
}
-}, W6 = (e) => Object.hasOwn(U6, e), G6 = [
+}, Z6 = (e) => Object.hasOwn(X6, e), Q6 = [
"/",
"/wall",
"/unseen",
@@ -78806,99 +78865,99 @@ var A6 = (e) => ({
"/junk-files"
];
[
- ...Object.keys(j6),
- ...Object.keys(N6),
- ...Object.keys(I6),
...Object.keys(R6),
- ...G6
+ ...Object.keys(B6),
+ ...Object.keys(U6),
+ ...Object.keys(G6),
+ ...Q6
];
-var K6 = (e) => M6(e) || P6(e) || Object.hasOwn(I6, e) || Object.hasOwn(R6, e) || B6(e) || H6(e) || W6(e);
-function q6(e) {
- return M6(e) ? j6[e] : P6(e) ? N6[e] : B6(e) ? z6[e] : H6(e) ? V6[e] : W6(e) ? U6[e] : Object.hasOwn(I6, e) ? I6[e] : R6[e];
+var $6 = (e) => z6(e) || V6(e) || Object.hasOwn(U6, e) || Object.hasOwn(G6, e) || q6(e) || Y6(e) || Z6(e);
+function e8(e) {
+ return z6(e) ? R6[e] : V6(e) ? B6[e] : q6(e) ? K6[e] : Y6(e) ? J6[e] : Z6(e) ? X6[e] : Object.hasOwn(U6, e) ? U6[e] : G6[e];
}
-function kFe(e, t, n) {
- return K6(e) ? q6(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
+function NFe(e, t, n) {
+ return $6(e) ? e8(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
}
-function AFe(e, t, n, r) {
- return q6(e).page(t, n, r);
+function PFe(e, t, n, r) {
+ return e8(e).page(t, n, r);
}
// src/react/application-residents.ts
-var J6 = null, Y6 = null, X6 = 0, Z6 = /* @__PURE__ */ new Set();
-function jFe(e) {
- return J6 = e, Y6 && e(Y6), () => {
- J6 === e && (J6 = null);
+var t8 = null, n8 = null, r8 = 0, i8 = /* @__PURE__ */ new Set();
+function FFe(e) {
+ return t8 = e, n8 && e(n8), () => {
+ t8 === e && (t8 = null);
};
}
-function MFe(e) {
- return J6 && (Y6 = e, J6(e), op(Promise.resolve(kFe)), wFe()), Promise.resolve();
+function IFe(e) {
+ return t8 && (n8 = e, t8(e), op(Promise.resolve(NFe)), OFe()), Promise.resolve();
}
-async function Q6(e, t, n = (e) => e) {
- let r = X6;
- if (t.isConnected || Z6.add(t), !await fp(e, {}, {
+async function a8(e, t, n = (e) => e) {
+ let r = r8;
+ if (t.isConnected || i8.add(t), !await fp(e, {}, {
container: t,
resident: !0,
- isCurrent: () => !!J6 && r === X6,
+ isCurrent: () => !!t8 && r === r8,
place: () => n(t)
- }) || r !== X6 || !J6) throw new DOMException("应用已卸载", "AbortError");
-}
-function NFe() {
- X6 += 1, J6 = null, Y6 = null, $6 = null, e8 = null, r8 = null, i8 = null, o8 = null, s8 = null, l8 = null, u8 = null, f8 = null, p8 = null, h8 = null, g8 = null, v8 = null;
- for (let e of Z6) e.remove();
- Z6.clear(), a$();
-}
-var $6 = null, e8 = null;
-function t8(e) {
- return $6 ??= (async () => {
- let t = PNe(e), n = document.createElement("div");
- return n.dataset.stageHost = "", await Q6("stage", n, (e) => (document.body.append(e), e)), e8 = t, t;
- })(), $6;
-}
-var n8 = () => e8, r8 = null, i8 = null;
-function PFe(e) {
- return r8 ??= (async () => {
- let t = Tde(e), n = document.createElement("div");
- return n.dataset.immerseHost = "", await Q6("immerse", n, (e) => (document.body.append(e), e)), i8 = t, t;
- })(), r8;
-}
-var a8 = () => i8, o8 = null, s8 = null;
-function FFe(e) {
+ }) || r !== r8 || !t8) throw new DOMException("应用已卸载", "AbortError");
+}
+function LFe() {
+ r8 += 1, t8 = null, n8 = null, o8 = null, s8 = null, u8 = null, d8 = null, p8 = null, m8 = null, g8 = null, _8 = null, y8 = null, b8 = null, S8 = null, C8 = null, T8 = null;
+ for (let e of i8) e.remove();
+ i8.clear(), o$();
+}
+var o8 = null, s8 = null;
+function c8(e) {
return o8 ??= (async () => {
- let t = oAe(e), n = document.createElement("div");
- return n.dataset.settingsHost = "", await Q6("settings-panel", n, (e) => (document.body.append(e), e)), s8 = t, t;
+ let t = RNe(e), n = document.createElement("div");
+ return n.dataset.stageHost = "", await a8("stage", n, (e) => (document.body.append(e), e)), s8 = t, t;
})(), o8;
}
-var c8 = () => s8, l8 = null, u8 = null;
-function IFe(e) {
- return l8 ??= (async () => {
- let t = SAe(e);
- return await Q6("sidebar", e.scroll, (e) => (e.replaceChildren(), e)), e.attached(), u8 = t, t;
- })(), l8;
-}
-var d8 = () => u8, f8 = null, p8 = null;
-function LFe(e) {
- return f8 ??= (async () => {
- let t = bfe(e);
- return await Q6("manage-header", e.root, (e) => (e.replaceChildren(), e)), p8 = t, t;
- })(), f8;
-}
-var m8 = () => p8, h8 = null, g8 = null;
+var l8 = () => s8, u8 = null, d8 = null;
function RFe(e) {
- return h8 ??= (async () => {
- let t = Yce(e);
- return await Q6("batch-dock", e.root), g8 = t, t;
- })(), h8;
+ return u8 ??= (async () => {
+ let t = Cde(e), n = document.createElement("div");
+ return n.dataset.immerseHost = "", await a8("immerse", n, (e) => (document.body.append(e), e)), d8 = t, t;
+ })(), u8;
}
-var _8 = () => g8, v8 = null;
+var f8 = () => d8, p8 = null, m8 = null;
function zFe(e) {
- return v8 ??= (async () => {
- jle(e), await Q6("glow-picker", e.root);
- })(), v8;
-}
-function y8(e, t, n, r) {
- o$(e, t), s$(n, r);
+ return p8 ??= (async () => {
+ let t = cAe(e), n = document.createElement("div");
+ return n.dataset.settingsHost = "", await a8("settings-panel", n, (e) => (document.body.append(e), e)), m8 = t, t;
+ })(), p8;
+}
+var h8 = () => m8, g8 = null, _8 = null;
+function BFe(e) {
+ return g8 ??= (async () => {
+ let t = wAe(e);
+ return await a8("sidebar", e.scroll, (e) => (e.replaceChildren(), e)), e.attached(), _8 = t, t;
+ })(), g8;
+}
+var v8 = () => _8, y8 = null, b8 = null;
+function VFe(e) {
+ return y8 ??= (async () => {
+ let t = vfe(e);
+ return await a8("manage-header", e.root, (e) => (e.replaceChildren(), e)), b8 = t, t;
+ })(), y8;
+}
+var x8 = () => b8, S8 = null, C8 = null;
+function HFe(e) {
+ return S8 ??= (async () => {
+ let t = qce(e);
+ return await a8("batch-dock", e.root), C8 = t, t;
+ })(), S8;
+}
+var w8 = () => C8, T8 = null;
+function UFe(e) {
+ return T8 ??= (async () => {
+ kle(e), await a8("glow-picker", e.root);
+ })(), T8;
+}
+function E8(e, t, n, r) {
+ s$(e, t), c$(n, r);
}
// src/application/receipts.js
-var b8 = {
+var D8 = {
toastBody: void 0,
toastSeq: void 0,
toast: void 0,
@@ -78907,13 +78966,13 @@ var b8 = {
rollSeed: void 0,
seededSample: void 0
};
-function BFe() {
- o$(L("#toasts"), {
+function WFe() {
+ s$(L("#toasts"), {
success: R("check"),
error: R("circle-alert")
- }), b8.toastBody = (e) => e && typeof e == "object" && "html" in e ? String(e.html) : z(e && typeof e == "object" ? e.text ?? "" : e ?? ""), b8.toastSeq = 0, b8.toast = (e, { timeout: t = 6e3, warn: n = !1, action: r = null, sound: i = null } = {}) => {
- let a = `toast-${++b8.toastSeq}`, o = (e, t, n, r) => {
- Zo(i || (t ? "error" : "success")), y8(L("#toasts"), {
+ }), D8.toastBody = (e) => e && typeof e == "object" && "html" in e ? String(e.html) : z(e && typeof e == "object" ? e.text ?? "" : e ?? ""), D8.toastSeq = 0, D8.toast = (e, { timeout: t = 6e3, warn: n = !1, action: r = null, sound: i = null } = {}) => {
+ let a = `toast-${++D8.toastSeq}`, o = (e, t, n, r) => {
+ Zo(i || (t ? "error" : "success")), E8(L("#toasts"), {
success: R("check"),
error: R("circle-alert")
}, a, {
@@ -78928,10 +78987,10 @@ function BFe() {
} : null
});
};
- return o(b8.toastBody(e), n, t, r), { replaceMessage: (e, { warn: t = !1, timeout: n = 4e3 } = {}) => o(b8.toastBody(e), t, n, null) };
- }, b8.actionReceipt = (e, { undo: t = null, timeout: n = t ? 8e3 : 6e3 } = {}) => {
+ return o(D8.toastBody(e), n, t, r), { replaceMessage: (e, { warn: t = !1, timeout: n = 4e3 } = {}) => o(D8.toastBody(e), t, n, null) };
+ }, D8.actionReceipt = (e, { undo: t = null, timeout: n = t ? 8e3 : 6e3 } = {}) => {
let r = null;
- return r = b8.toast({ text: e }, {
+ return r = D8.toast({ text: e }, {
timeout: n,
action: t ? {
label: "撤销",
@@ -78944,14 +79003,14 @@ function BFe() {
}
} : null
}), r;
- }, b8.actionFailure = (e, t) => b8.toast({ text: `${e}失败:${t?.message || "请重试"}` }, { warn: !0 }), b8.rollSeed = () => rr(), b8.seededSample = (e, t, n, r = (e) => e.k) => {
+ }, D8.actionFailure = (e, t) => D8.toast({ text: `${e}失败:${t?.message || "请重试"}` }, { warn: !0 }), D8.rollSeed = () => rr(), D8.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 VFe = [
+var GFe = [
"loc",
"creator",
"studio",
@@ -78972,10 +79031,10 @@ var VFe = [
"folder",
"folder_recursive"
];
-function x8(e, t, n, r = n.defaultSort) {
- return Uj(e, t, n.defaultSort, n.defaultSortDirection, r);
+function O8(e, t, n, r = n.defaultSort) {
+ return Gj(e, t, n.defaultSort, n.defaultSortDirection, r);
}
-function HFe(e, t, n) {
+function KFe(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",
@@ -78991,7 +79050,7 @@ function HFe(e, t, n) {
region: o("region") || "",
year: o("year") || "",
state: On[r] || o("state") || "",
- ...x8(o("sort"), o("dir"), t),
+ ...O8(o("sort"), o("dir"), t),
seed: o("seed") || n(),
q: o("q") || "",
jav: o("jav") || "",
@@ -79001,18 +79060,18 @@ function HFe(e, t, n) {
folder_recursive: o("folder_recursive") === "0" ? "0" : ""
};
}
-function UFe(e, t) {
+function qFe(e, t) {
return e.split(",").filter(Boolean).filter((e) => t[e] !== !1).join(",") || e;
}
-function WFe(e) {
+function JFe(e) {
let t = Dn[e.state ?? ""] || "/", n = new URLSearchParams();
- for (let t of VFe) {
+ for (let t of GFe) {
let r = e[t];
- !r || t === "tag_match" && r === "all" || t === "dir" && r === Bj(e.sort ?? "") || n.set(t, r);
+ !r || t === "tag_match" && r === "all" || t === "dir" && r === Hj(e.sort ?? "") || n.set(t, r);
}
return !Dn[e.state ?? ""] && e.state && n.set("state", e.state), t + (n.size ? `?${n}` : "");
}
-function GFe(e, t, n) {
+function YFe(e, t, n) {
return {
loc: e.loc ?? "",
creator: "",
@@ -79028,7 +79087,7 @@ function GFe(e, t, n) {
year: "",
state: "",
sort: t.defaultSort,
- dir: Hj(t.defaultSort, t.defaultSort, t.defaultSortDirection),
+ dir: Wj(t.defaultSort, t.defaultSort, t.defaultSortDirection),
seed: n(),
q: "",
jav: "",
@@ -79038,7 +79097,7 @@ function GFe(e, t, n) {
folder_recursive: ""
};
}
-function S8(e) {
+function k8(e) {
return {
state: e,
barsContext: {
@@ -79049,7 +79108,7 @@ function S8(e) {
};
}
// src/react/catalog-grid/catalog-controller.ts
-var KFe = class {
+var XFe = class {
currentRevision = 0;
currentPage = "";
painting = null;
@@ -79094,44 +79153,44 @@ var KFe = class {
let e = [...this.waiters.values()];
this.waiters.clear(), e.forEach((e) => e());
}
-}, C8 = Infinity, w8 = 0, qFe = (e, t = w8) => [
+}, A8 = Infinity, j8 = 0, ZFe = (e, t = j8) => [
"facets",
e,
t
-], JFe = (e, t, n = w8) => [
+], QFe = (e, t, n = j8) => [
"tops",
e,
t,
n
-], YFe = (e, t = w8) => [
+], $Fe = (e, t = j8) => [
"tops",
e,
t
];
-async function T8(e) {
+async function M8(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 XFe(e, t) {
+function eIe(e, t) {
return Promise.all([H.fetchQuery({
- queryKey: qFe(e),
+ queryKey: ZFe(e),
queryFn: () => wn(`/api/facets${e ? `?${e}` : ""}`),
- staleTime: C8
+ staleTime: A8
}), H.fetchQuery({
- queryKey: JFe(t, e),
- queryFn: () => T8(t),
- staleTime: C8
+ queryKey: QFe(t, e),
+ queryFn: () => M8(t),
+ staleTime: A8
})]);
}
-function ZFe(e) {
+function tIe(e) {
return H.fetchQuery({
- queryKey: YFe(e),
- queryFn: () => T8(e),
- staleTime: C8
+ queryKey: $Fe(e),
+ queryFn: () => M8(e),
+ staleTime: A8
});
}
-function E8() {
- w8 += 1;
+function N8() {
+ j8 += 1;
let e = (e) => e.state.fetchStatus === "idle";
H.removeQueries({
queryKey: ["facets"],
@@ -79142,7 +79201,7 @@ function E8() {
});
}
// src/application/navigation-items.ts
-var D8 = [
+var P8 = [
[
"",
"首页",
@@ -79193,7 +79252,7 @@ var D8 = [
"管理",
"wrench"
]
-], O8 = [
+], F8 = [
[
"stats",
"统计",
@@ -79239,18 +79298,18 @@ var D8 = [
"Peach 配置",
"folder-cog"
]
-], k8 = [
+], I8 = [
"stats",
"taste",
"cleanup",
"follow",
"activity",
"configuration"
-], QFe = (e) => O8.filter(([t]) => k8.includes(t) && (t !== "configuration" || e)), A8 = O8.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
+], nIe = (e) => F8.filter(([t]) => I8.includes(t) && (t !== "configuration" || e)), L8 = F8.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
e === "follow" ? "follow-manage" : e === "cleanup" ? "data-cleanup" : e,
t,
n
-]]), $Fe = [...D8, ...A8], eIe = {
+]]), rIe = [...P8, ...L8], iIe = {
stats: "stats",
review: "review",
"data-cleanup": "cleanup",
@@ -79258,18 +79317,18 @@ var D8 = [
"follow-manage": "follow",
quality: "quality",
activity: "activity"
-}, j8 = [
+}, R8 = [
["0", "不限时间"],
["7", "最近 7 天"],
["30", "最近 30 天"],
["90", "最近 90 天"]
];
// src/react/index/index-controller.ts
-function M8({ kind: e, q: t, scope: n, view: r, category: i }) {
+function z8({ 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 N8(e, t, n) {
+function B8(e, t, n) {
let r = e.entity_id || e.id, i = t === "studio" || t === "agency";
return {
html: go(e.k, r ? {
@@ -79282,20 +79341,20 @@ function N8(e, t, n) {
face: vo(e.avatar_focus)
};
}
-function P8(e) {
+function V8(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 tIe(e) {
+function aIe(e) {
let t = (t) => {
e.adoptFollowView(t), e.hideIndex(), e.openPage(Oa(t));
};
return {
route(t, { replace: n = !1 } = {}) {
- e.route(M8(t), n);
+ e.route(z8(t), n);
},
- personAvatar: N8,
- authorAvatar: P8,
+ personAvatar: B8,
+ authorAvatar: V8,
openFollowAuthor(n) {
t(ka(e.followView(), n));
},
@@ -79305,7 +79364,7 @@ function tIe(e) {
};
}
// src/application/effects.ts
-var F8 = class {
+var H8 = class {
cleanups = /* @__PURE__ */ new Set();
active = !0;
disposed = !1;
@@ -79386,12 +79445,12 @@ var F8 = class {
}
if (e.length) throw AggregateError(e, "应用资源清理未全部完成");
}
-}, I8 = new F8();
-function nIe() {
- return I8.dispose(), I8 = new F8(), I8;
+}, U8 = new H8();
+function oIe() {
+ return U8.dispose(), U8 = new H8(), U8;
}
// src/application/source-action.ts
-function rIe(e) {
+function sIe(e) {
return async (t, n, { button: r = null } = {}) => {
if (r?.getAttribute("aria-busy") === "true") return;
let i = r?.innerHTML ?? "", a = r?.textContent?.trim() ?? "";
@@ -79406,36 +79465,36 @@ function rIe(e) {
};
}
// src/react/entity-page/entity-route.ts
-var L8 = () => Object.fromEntries(qX.map((e) => [e, e === "sort" ? "new" : e === "dir" ? "desc" : ""]));
-function R8(e, t) {
- let n = new URLSearchParams(e), r = L8();
- for (let e of qX) e !== "sort" && e !== "dir" && (r[e] = n.get(e) || "");
+var W8 = () => Object.fromEntries(YX.map((e) => [e, e === "sort" ? "new" : e === "dir" ? "desc" : ""]));
+function G8(e, t) {
+ let n = new URLSearchParams(e), r = W8();
+ for (let e of YX) e !== "sort" && e !== "dir" && (r[e] = n.get(e) || "");
return {
...r,
- ...Uj(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
+ ...Gj(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
};
}
-function z8(e) {
+function K8(e) {
let t = new URLSearchParams();
- for (let n of qX) !e[n] || n === "sort" && e[n] === "new" || n === "dir" && e[n] === Bj(e.sort || "") || t.set(n, e[n]);
+ for (let n of YX) !e[n] || n === "sort" && e[n] === "new" || n === "dir" && e[n] === Hj(e.sort || "") || t.set(n, e[n]);
return t.toString();
}
-function B8(e) {
+function q8(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 V8(e, t) {
- let n = new URLSearchParams(z8(e));
+function J8(e, t) {
+ let n = new URLSearchParams(K8(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 iIe(e, t, n, r) {
- let i = V8(n, r);
+function cIe(e, t, n, r) {
+ let i = J8(n, r);
return Nn(e, t) + (i ? `?${i}` : "");
}
-function aIe() {
+function lIe() {
let e = "";
return {
fresh(t, n) {
@@ -79444,22 +79503,22 @@ function aIe() {
read(t, n, r, i) {
let a = e === Nn(t, n) && !r;
e = "";
- let o = a ? L8() : { ...R8(r, i) };
+ let o = a ? W8() : { ...G8(r, i) };
return t === "creator" && (o.creator = ""), {
filters: o,
media: a ? {
media: "videos",
set: 0
- } : B8(r)
+ } : q8(r)
};
}
};
}
// src/react/entity-page/photo-surface.ts
-function oIe(e, t) {
+function uIe(e, t) {
return e.entityWall && e.entityCurrent && e.indexVisible || e.pathname === "/follow" && e.followMedia === "images" && e.statsVisible ? !0 : t();
}
-function sIe(e) {
+function dIe(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);
@@ -79481,12 +79540,12 @@ function sIe(e) {
};
}
// src/react/entity-page/entity-controller.ts
-function cIe(e, t, n) {
+function fIe(e, t, n) {
let r = (t, n, r, i = {
media: "videos",
set: 0
}, { push: a = !0 } = {}) => {
- if (a && e.route(iIe(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;
+ if (a && e.route(cIe(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;
e.releaseBodyPreviews();
let o = e.state();
return e.push({
@@ -79500,7 +79559,7 @@ function cIe(e, t, n) {
if (s) return s;
let c = () => {
let n = e.context();
- return n?.kind === t && n.name === a ? n.filters : L8();
+ return n?.kind === t && n.name === a ? n.filters : W8();
}, l = {
...n,
route: (e, n) => {
@@ -79513,7 +79572,7 @@ function cIe(e, t, n) {
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
- let n = c(), i = Vj(e, n.sort || "new", n.dir || "");
+ let n = c(), i = Uj(e, n.sort || "new", n.dir || "");
i && r(t, a, {
...n,
...i
@@ -79564,7 +79623,7 @@ function cIe(e, t, n) {
};
}
// src/react/entity-page/entity-loading.ts
-function lIe(e) {
+function pIe(e) {
return async (t, n, r) => {
e.paintSkeleton(t, n), e.resetView(), e.shapesReady(t, n) || e.waitShapes().then(() => {
r() && e.syncParts(t, n);
@@ -79574,7 +79633,7 @@ function lIe(e) {
};
}
// src/react/entity-page/entity-portrait.ts
-function uIe(e, t) {
+function mIe(e, t) {
let n = e === "studio" || e === "agency", r = t.id ? ho({
kind: e,
id: t.id,
@@ -79596,11 +79655,11 @@ function uIe(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 dIe(e) {
- let t = aIe(), n = {
+function hIe(e) {
+ let t = lIe(), n = {
...e.helpers,
- portraitImg: uIe
- }, r = cIe(e.controller, n, e.actions);
+ portraitImg: mIe
+ }, r = fIe(e.controller, n, e.actions);
return {
...r,
helpers: n,
@@ -79609,12 +79668,12 @@ function dIe(e) {
let { filters: o, media: s } = t.read(n, i, a, e.sortPreference());
return r.props(n, i, o, s);
},
- loading: lIe(e.loading),
- photos: sIe(e.photos)
+ loading: pIe(e.loading),
+ photos: dIe(e.photos)
};
}
// src/card-art/feed-identity.ts
-function fIe(e) {
+function gIe(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>`;
@@ -79622,7 +79681,7 @@ function fIe(e) {
return r.length > 1 ? `<div class="mavstack">${i}</div>` : i;
}
// src/application/feed.js
-var H8 = {
+var Y8 = {
FEED_SKELETON_CARDS: void 0,
feedNewSkeletonHtml: void 0,
entityShapes: void 0,
@@ -79638,56 +79697,56 @@ var H8 = {
feedNewActions: void 0,
HERO_WIDE_PX: void 0
};
-function U8(e) {
+function X8(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 pIe(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 = U8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? nL({
+function _Ie(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 = X8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? iL({
is_jav: !0,
code: e.code,
name: e.code,
display_title: e.title || ""
}) : z(r), a = e.code ? `<a class="feednewopen" href="/works/${encodeURIComponent(e.code)}" aria-label="打开 ${z(r)} 的作品详情"></a>` : "";
return `<article class="card feednewcard${e.read ? " isread" : ""}" data-feed-id="${e.id}">
- ${a}<div class="pic" style="--card-ratio:${_M}">${n}
+ ${a}<div class="pic" style="--card-ratio:${yM}">${n}
<div class="hovertools feednewtools">
<button type="button" data-feed-action="${e.wanted ? "unwant" : "want"}" aria-pressed="${!!e.wanted}" title="${e.wanted ? "取消想要" : "想要"}" aria-label="想要 ${z(r)}">${R("star")}</button>
<button type="button" data-feed-action="ignore" title="不想看" aria-label="不想看 ${z(r)}">${R("x")}</button>
<button type="button" data-feed-action="read" title="标为已看过" aria-label="标为已看过 ${z(r)}">${R("check")}</button></div></div>
- <div class="meta">${fIe(e)}<div class="mtext"><span class="t">${i}</span>
+ <div class="meta">${gIe(e)}<div class="mtext"><span class="t">${i}</span>
<div class="s mono">${t || (e.title ? "" : "资料还没取到")}</div></div></div></article>`;
}
-function mIe() {
+function vIe() {
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;
- H8.entityShapes = new Map([String(t.id), ...t.names].map((e) => [`${t.kind}/${Hn(e)}`, t.parts]));
+ Y8.entityShapes = new Map([String(t.id), ...t.names].map((e) => [`${t.kind}/${Hn(e)}`, t.parts]));
} catch {}
}
-async function W8() {
- let e = I8, t = await wn("/api/entity/shapes", { signal: e.signal }).catch(() => null);
- return e.isActive && t && !t.error && (H8.entityShapesComplete = !0, H8.entityShapes = new Map((t.entities || []).flatMap((e) => [String(e.id), ...e.names].map((t) => [`${e.kind}/${Hn(t)}`, e.parts]))), typeof t.home?.feed == "boolean" && K8(t.home.feed), X8(location.pathname) && q8(L("#feedNew"))), H8.entityShapes;
+async function Z8() {
+ let e = U8, t = await wn("/api/entity/shapes", { signal: e.signal }).catch(() => null);
+ return e.isActive && t && !t.error && (Y8.entityShapesComplete = !0, Y8.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" && $8(t.home.feed), r5(location.pathname) && e5(L("#feedNew"))), Y8.entityShapes;
}
-var G8 = "peach.home-feed.v1";
-function K8(e) {
+var Q8 = "peach.home-feed.v1";
+function $8(e) {
X.homeHasFeed = e;
try {
- localStorage.setItem(G8, e ? "1" : "0");
+ localStorage.setItem(Q8, e ? "1" : "0");
} catch {}
}
-function hIe() {
+function yIe() {
try {
- let e = localStorage.getItem(G8);
+ let e = localStorage.getItem(Q8);
return e === "1" || e !== "0" && null;
} catch {
return null;
}
}
-function q8(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 = H8.feedNewSkeletonHtml())));
+function e5(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 = Y8.feedNewSkeletonHtml())));
}
-function gIe(e, t) {
+function bIe(e, t) {
return !(e > 0) || !t.some((e) => !e.has_cover) ? "" : Rs(`${e} 部新作的封面连不上 DMM 图片主机,中国移动宽带常见。把 DMM / FANZA 的连接方式设成 Peach 代理,下一轮会自动重取。`, {
variant: "warning",
className: "feednetwork",
@@ -79695,55 +79754,55 @@ function gIe(e, t) {
actionHref: "/sources"
});
}
-function J8(e, t = "") {
- let n = e && !e.error && e.items || [], r = t && n.length ? `<a class="feednewall" href="${z(t)}" style="--card-ratio:${_M}">${R("chevron-right")}<span>查看全部新作</span></a>` : "";
- return gIe(e?.cover_network, n) + `<div class="feednewrow srow">${n.map(pIe).join("")}${r}</div>`;
+function t5(e, t = "") {
+ let n = e && !e.error && e.items || [], r = t && n.length ? `<a class="feednewall" href="${z(t)}" style="--card-ratio:${yM}">${R("chevron-right")}<span>查看全部新作</span></a>` : "";
+ return bIe(e?.cover_network, n) + `<div class="feednewrow srow">${n.map(_Ie).join("")}${r}</div>`;
}
-function Y8(e) {
+function n5(e) {
e && (t9(e), Z.appSettings.feedAutoScroll && Lc(e));
}
-function X8(e) {
+function r5(e) {
return An(e) && e !== "/junk-files";
}
-function _Ie() {
+function xIe() {
let e = L("#feedNew");
- cp(e) ? e.hidden = X.homeHasFeed !== !0 : (q8(e), fp("feed-new", {
+ cp(e) ? e.hidden = X.homeHasFeed !== !0 : (e5(e), fp("feed-new", {
host: e,
- revision: H8.feedRevision,
- helpers: H8.feedNewHelpers,
- actions: H8.feedNewActions
+ revision: Y8.feedRevision,
+ helpers: Y8.feedNewHelpers,
+ actions: Y8.feedNewActions
}, {
container: e,
- isCurrent: () => X8(location.pathname)
+ isCurrent: () => r5(location.pathname)
}));
}
-function Z8() {
+function i5() {
let e = L("#feedNew");
e.querySelectorAll(".feednewrow").forEach(Rc), e.hidden = !0;
}
-function Q8() {
- H8.feedRevision += 1, mp(L("#feedNew"), { revision: H8.feedRevision }), a5({ feedRevision: H8.feedRevision });
+function a5() {
+ Y8.feedRevision += 1, mp(L("#feedNew"), { revision: Y8.feedRevision }), c5({ feedRevision: Y8.feedRevision });
}
-function vIe() {
+function SIe() {
document.querySelectorAll(".feednewrow").forEach((e) => Z.appSettings.feedAutoScroll ? Lc(e) : Rc(e));
}
-var $8 = 0;
-function yIe([e]) {
- let t = e.contentRect.width >= H8.HERO_WIDE_PX;
- cancelAnimationFrame($8), $8 = requestAnimationFrame(() => {
- $8 = 0, L("#index")?.toggleAttribute("data-hero-wide", t);
+var o5 = 0;
+function CIe([e]) {
+ let t = e.contentRect.width >= Y8.HERO_WIDE_PX;
+ cancelAnimationFrame(o5), o5 = requestAnimationFrame(() => {
+ o5 = 0, L("#index")?.toggleAttribute("data-hero-wide", t);
});
}
-function bIe() {
- H8.FEED_SKELETON_CARDS = 8, H8.feedNewSkeletonHtml = () => `<div class="feednewrow srow" data-skeleton="feed/new" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${_M}"></div>
+function wIe() {
+ Y8.FEED_SKELETON_CARDS = 8, Y8.feedNewSkeletonHtml = () => `<div class="feednewrow srow" data-skeleton="feed/new" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${yM}"></div>
<div class="meta"><div class="mtext"><span class="t"><span class="skeleton"></span></span>
- <div class="s mono"><span class="skeleton">&#8203;</span></div></div></div></article>`.repeat(H8.FEED_SKELETON_CARDS)}</div>`, H8.entityShapes = null, H8.entityShapesComplete = !1, H8.hasEntityShape = (e, t) => H8.entityShapesComplete || !!H8.entityShapes?.has(`${e}/${Hn(t)}`), H8.hasEntityPart = (e, t, n) => !!t && !!H8.entityShapes?.get(`${e}/${Hn(t)}`)?.includes(n), H8.feedNewSkeletonSection = () => `<section class="feednew">${H8.feedNewSkeletonHtml()}</section>`, H8.COSTAR_SKELETON_PEOPLE = 12, H8.costarSkeletonFoot = () => `<div class="entityfoot" data-entity-foot><div class="relatedpeople" data-related-people>${"<button type=\"button\" disabled tabindex=\"-1\"><span class=\"skeleton\" data-hero-ring></span><span class=\"skeleton\" data-hero-costar-name>&#8203;</span></button>".repeat(H8.COSTAR_SKELETON_PEOPLE)}</div></div>`, H8.factsSkeleton = () => `<dl class="entityfacts" data-entity-facts>${"<dt><span class=\"skeleton\"></span></dt><dd><span class=\"skeleton\"></span></dd>".repeat(5)}</dl>`, H8.feedRevision = 0, H8.feedNewHelpers = {
- feedRowHtml: J8,
- wireFeedRow: (e) => Y8(e)
- }, H8.feedNewActions = { settled: (e) => K8(e) }, H8.HERO_WIDE_PX = 900, I8.resize(yIe).observe(L("#index"));
+ <div class="s mono"><span class="skeleton">&#8203;</span></div></div></div></article>`.repeat(Y8.FEED_SKELETON_CARDS)}</div>`, Y8.entityShapes = null, Y8.entityShapesComplete = !1, Y8.hasEntityShape = (e, t) => Y8.entityShapesComplete || !!Y8.entityShapes?.has(`${e}/${Hn(t)}`), Y8.hasEntityPart = (e, t, n) => !!t && !!Y8.entityShapes?.get(`${e}/${Hn(t)}`)?.includes(n), Y8.feedNewSkeletonSection = () => `<section class="feednew">${Y8.feedNewSkeletonHtml()}</section>`, Y8.COSTAR_SKELETON_PEOPLE = 12, Y8.costarSkeletonFoot = () => `<div class="entityfoot" data-entity-foot><div class="relatedpeople" data-related-people>${"<button type=\"button\" disabled tabindex=\"-1\"><span class=\"skeleton\" data-hero-ring></span><span class=\"skeleton\" data-hero-costar-name>&#8203;</span></button>".repeat(Y8.COSTAR_SKELETON_PEOPLE)}</div></div>`, Y8.factsSkeleton = () => `<dl class="entityfacts" data-entity-facts>${"<dt><span class=\"skeleton\"></span></dt><dd><span class=\"skeleton\"></span></dd>".repeat(5)}</dl>`, Y8.feedRevision = 0, Y8.feedNewHelpers = {
+ feedRowHtml: t5,
+ wireFeedRow: (e) => n5(e)
+ }, Y8.feedNewActions = { settled: (e) => $8(e) }, Y8.HERO_WIDE_PX = 900, U8.resize(CIe).observe(L("#index"));
}
// src/entity-skeleton.ts
-function xIe(e, t, n, r = "") {
+function TIe(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">
@@ -79756,20 +79815,6 @@ function xIe(e, t, n, r = "") {
${t}</div></div>
<div class="entitysection">${o}</div></div></section>`;
}
-// src/filter-controls-skeleton.ts
-var e5 = (e) => e.startsWith("ri-") ? `<svg class="size-4 shrink-0" viewBox="0 0 24 24" fill="currentColor" stroke="none" aria-hidden="true"><use href="#${e}"/></svg>` : ws(e, "size-4 shrink-0"), t5 = "inert aria-disabled=\"true\" tabindex=\"-1\" data-skeleton-control", n5 = (e, t, n) => `<span data-entity-layout="" class="${yU}" role="radiogroup" aria-label="${z(e)}">${n.map(([e, n, r]) => `<span class="${bU}" role="radio" aria-label="${z(n)}" aria-checked="${e === t}" data-glass-segment=""${e === t ? " data-selected=\"\"" : ""} ${t5}>${e5(r)}</span>`).join("")}</span>`;
-function r5(e, t) {
- let n = pG(), r = new URLSearchParams(location.search), i = t && n === "cards" ? n5(t.label, t.value, t.options) : "";
- return `<span data-entity-sorts=""><button type="button" data-entity-batch="" data-filter-action="" aria-label="换一批" ${t5}>${e5("shuffle")}</button>${i}${n5("馆藏显示方式", n, [[
- "cards",
- "卡片",
- "ri-layout-grid-line"
- ], [
- "list",
- "列表",
- "ri-list-unordered"
- ]])}<button type="button" data-folder-mode-toggle="" aria-label="文件夹模式" aria-pressed="${r.get("browse") === "folders" || !!r.get("folder")}" ${t5}>${e5("ri-folder-3-line")}</button>${e.map((e) => `<button type="button" data-entity-sort="${z(e.key)}" aria-pressed="${e.pressed}" ${t5}>${z(e.label)}${e.dir ? e5(e.dir === "asc" ? "arrow-up" : "arrow-down") : ""}</button>`).join("")}</span>`;
-}
// src/application/entity.js
var Y = {
ENTITY_FILTER_KEYS: void 0,
@@ -79796,16 +79841,16 @@ var Y = {
sourceToolButtons: void 0,
application: void 0
};
-function i5() {
+function s5() {
let e = sp(L("#index"));
return e && e.path.endsWith("/*") && e.host.isConnected ? e : null;
}
-function a5(e) {
+function c5(e) {
Y.entityPageCurrent() && mp(L("#index"), e);
}
-function o5() {
+function l5() {
if (Gl.type === "item") return Gl;
- let e = i5();
+ let e = s5();
if (e) {
let { kind: t, name: n, filters: r } = e.props;
return {
@@ -79817,23 +79862,23 @@ function o5() {
}
return Gl;
}
-function s5(e, t, n = t7()) {
- return mLe(n).map(([n, r]) => {
- let i = e === n, a = Vj(n, e, t);
+function u5(e, t, n = i7()) {
+ return vLe(n).map(([n, r]) => {
+ let i = e === n, a = Uj(n, e, t);
return {
key: n,
label: r,
pressed: i,
- dir: i && zj(n, t) ? t === "asc" ? "asc" : "desc" : "",
- ariaLabel: a ? `按${r}${a.dir ? zj(a.sort, a.dir) : ""}排序` : ""
+ dir: i && Vj(n, t) ? t === "asc" ? "asc" : "desc" : "",
+ ariaLabel: a ? `按${r}${a.dir ? Vj(a.sort, a.dir) : ""}排序` : ""
};
});
}
-function c5(e, t, n, r = Y.EMPTY_ENTITY_MEDIA, i = {}) {
+function d5(e, t, n, r = Y.EMPTY_ENTITY_MEDIA, i = {}) {
return Y.application.route(e, t, n, r, i);
}
-function l5() {
- return oIe({
+function f5() {
+ return uIe({
entityWall: Y.entityPageWall,
entityCurrent: Y.entityPageCurrent(),
indexVisible: !L("#index").hidden,
@@ -79842,37 +79887,37 @@ function l5() {
statsVisible: !L("#stats").hidden
}, () => [...document.querySelectorAll(".followphotowall")].some((e) => e.getClientRects().length > 0));
}
-function u5() {
+function p5() {
Y.photos.sync();
}
-function d5() {
- l5() ? wle(CM()) : IM();
+function m5() {
+ f5() ? Sle(TM()) : RM();
}
-function SIe(e) {
+function EIe(e) {
Y.photos.setSize(e);
}
-var f5 = rIe({
+var h5 = sIe({
request: (e) => wn("/api/reveal", {
method: "POST",
body: JSON.stringify({ id: e })
}),
- success: () => b8.toast({ text: "已在资源管理器中显示" }),
+ success: () => D8.toast({ text: "已在资源管理器中显示" }),
failureText: (e) => Y.sourceHint(e instanceof Error ? e.message : String(e))
});
-async function p5(e) {
+async function g5(e) {
let t = { textContent: "" };
- return await f5(e, t), t.textContent;
+ return await h5(e, t), t.textContent;
}
-async function CIe(e) {
+async function DIe(e) {
let t = { textContent: "" }, n = [];
- return await m5(e, t, (e) => {
+ return await _5(e, t, (e) => {
e.items && (n = e.items.map((e) => e.id));
}), {
text: t.textContent,
removed: n
};
}
-async function m5(e, t, n) {
+async function _5(e, t, n) {
t.textContent = "正在核对目录…";
try {
let r = await wn("/api/purge-missing", {
@@ -79885,7 +79930,7 @@ async function m5(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), b8.actionReceipt(Y.syncedText(r), { undo: e.length ? async () => {
+ n && n(r), D8.actionReceipt(Y.syncedText(r), { undo: e.length ? async () => {
await wn("/api/batch", {
method: "POST",
body: JSON.stringify({
@@ -79897,22 +79942,22 @@ async function m5(e, t, n) {
restored: e.length
});
} : null });
- } else b8.actionReceipt("目录核对完成,无需改动");
+ } else D8.actionReceipt("目录核对完成,无需改动");
} catch (e) {
- t.textContent = Y.sourceHint(e.message), b8.actionFailure("核对目录", e);
+ t.textContent = Y.sourceHint(e.message), D8.actionFailure("核对目录", e);
}
}
-function wIe(e) {
+function OIe(e) {
return `<div class="srctools">${Y.sourceToolButtons(e)}
<span class="srcstate" aria-live="polite"></span></div>`;
}
-function TIe(e, t) {
+function kIe(e, t) {
let n = e.querySelector(".srcstate");
if (!n) return;
let r = e.querySelector("[data-reveal]"), i = e.querySelector("[data-sync]");
- r && I8.handler(r, "onclick", () => f5(Number(r.dataset.reveal), n, { button: r })), i && I8.handler(i, "onclick", () => m5(Number(i.dataset.sync), n, t));
+ r && U8.handler(r, "onclick", () => h5(Number(r.dataset.reveal), n, { button: r })), i && U8.handler(i, "onclick", () => _5(Number(i.dataset.sync), n, t));
}
-async function EIe(e, t) {
+async function AIe(e, t) {
let n = il({
title: "添加别名",
description: "图库按名字查找图片,添加别名可能找到更多备选图片;也可以将别名设为统一显示的名称。",
@@ -79924,9 +79969,9 @@ async function EIe(e, t) {
confirmDisabled: !0,
onConfirm: () => t({ alias: r.value.trim() })
}), r = n.dialog.querySelector("[name=alias]");
- I8.handler(r, "oninput", () => {
+ U8.handler(r, "oninput", () => {
n.confirmButton.disabled = !r.value.trim();
- }), n.dialog.querySelectorAll("[data-alias-drop]").forEach((e) => I8.handler(e, "onclick", async () => {
+ }), n.dialog.querySelectorAll("[data-alias-drop]").forEach((e) => U8.handler(e, "onclick", async () => {
let r = e.dataset.aliasDrop;
n.close();
try {
@@ -79935,53 +79980,53 @@ async function EIe(e, t) {
remove: !0
});
} catch (e) {
- b8.actionFailure("撤销别名", e);
+ D8.actionFailure("撤销别名", e);
return;
}
- b8.actionReceipt(`已撤销别名 ${r}`, { undo: async () => {
+ D8.actionReceipt(`已撤销别名 ${r}`, { undo: async () => {
await t({ alias: r });
} });
}));
let { confirmed: i, result: a } = await n.done;
- i && (a?.added ? b8.actionReceipt(`已添加别名 ${a.alias}`, { undo: async () => {
+ i && (a?.added ? D8.actionReceipt(`已添加别名 ${a.alias}`, { undo: async () => {
await t({
alias: a.alias,
remove: !0
});
- } }) : b8.actionReceipt(`${a?.alias} 已经是这份档案中的名字`));
+ } }) : D8.actionReceipt(`${a?.alias} 已经是这份档案中的名字`));
}
-function h5(e, t) {
- let n = ["performer", "studio"].includes(e) && H8.hasEntityPart(e, t, "jav"), r = `<div data-filter-row="bottom" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><h3 data-entity-readout><span data-skeleton="count" class="relative inline-block h-3.5 w-24 rounded-md align-middle skeleton-sheen"></span></h3>${Ts()}${e === "agency" ? "" : r5(s5(U.sort, U.dir, n), n ? {
+function v5(e, t) {
+ let n = ["performer", "studio"].includes(e) && Y8.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" ? "" : F0(u5(U.sort, U.dir, n), n ? {
name: "jav-layout",
label: "JAV 卡片版式",
- value: yM(),
- options: mM
- } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${t5}>${R("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${t5}>${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}" ${t5}>${z(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = xIe(e, r, e === "agency" ? rc({
+ value: xM(),
+ options: gM
+ } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${N0}>${R("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${N0}>${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}" ${N0}>${z(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = TIe(e, r, e === "agency" ? rc({
kind: "performers",
- layout: j5.peopleIndexLayout()
- }) : eY("正在读取作品", DM(EM({
+ layout: P5.peopleIndexLayout()
+ }) : nY("正在读取作品", kM(OM({
active: n,
home: !1,
portrait: !1
}))), i);
- L("#index").firstElementChild?.dataset.skeleton === `entity/${e}` ? g5(e, t) : (L("#index").innerHTML = a, g5(e, t), uc(L("#index")));
+ L("#index").firstElementChild?.dataset.skeleton === `entity/${e}` ? y5(e, t) : (L("#index").innerHTML = a, y5(e, t), uc(L("#index")));
}
-function g5(e, t) {
+function y5(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" && H8.hasEntityPart(e, t, "costars"), () => n.querySelector(".entityhero")?.insertAdjacentHTML("beforeend", H8.costarSkeletonFoot())), r(n.querySelector(".feednew"), H8.hasEntityPart(e, t, "feed"), () => n.querySelector(".entitysection")?.insertAdjacentHTML("beforebegin", H8.feedNewSkeletonSection())), r(n.querySelector(".entityfacts"), e === "performer" && H8.hasEntityPart(e, t, "facts"), () => n.querySelector(".entityprofile")?.insertAdjacentHTML("beforeend", H8.factsSkeleton()));
+ r(n.querySelector(".entityfoot"), e !== "agency" && Y8.hasEntityPart(e, t, "costars"), () => n.querySelector(".entityhero")?.insertAdjacentHTML("beforeend", Y8.costarSkeletonFoot())), r(n.querySelector(".feednew"), Y8.hasEntityPart(e, t, "feed"), () => n.querySelector(".entitysection")?.insertAdjacentHTML("beforebegin", Y8.feedNewSkeletonSection())), r(n.querySelector(".entityfacts"), e === "performer" && Y8.hasEntityPart(e, t, "facts"), () => n.querySelector(".entityprofile")?.insertAdjacentHTML("beforeend", Y8.factsSkeleton()));
}
-function _5(e) {
- let t = jn[e] || e, n = Z3[t] || "条目", r = Z3[t] ? `<a class="geist-button primary" href="/${t}">返回${n}列表</a>` : "";
+function b5(e) {
+ let t = jn[e] || e, n = i6[t] || "条目", r = i6[t] ? `<a class="geist-button primary" href="/${t}">返回${n}列表</a>` : "";
L("#index").innerHTML = Z.emptyState("search-x", `找不到这个${n}`, "名字可能拼错了,或者已经合并到别的名字下;回列表里重新找。", { actions: r });
}
-function v5(e, t) {
+function x5(e, t) {
y9(Y.application.fresh(e, t));
}
-function DIe() {
+function jIe() {
Y.ENTITY_FILTER_KEYS = [
"loc",
"creator",
@@ -79993,40 +80038,40 @@ function DIe() {
"year",
"sort",
"dir"
- ], Y.emptyEntityFilters = L8, Y.parseEntityFilters = (e) => R8(e, {
+ ], Y.emptyEntityFilters = W8, Y.parseEntityFilters = (e) => G8(e, {
sort: Z.appSettings.defaultSort,
dir: Z.appSettings.defaultSortDirection
- }), Y.entityFilterSearch = z8, Y.cloneBarsContext = (e) => e && e.type === "entity" ? {
+ }), Y.entityFilterSearch = K8, Y.cloneBarsContext = (e) => e && e.type === "entity" ? {
...e,
filters: { ...e.filters }
} : e, Y.activeFilterState = () => {
- let e = o5();
+ let e = l5();
return e.type === "home" ? U : e.filters;
}, L("#q").value = U.q, X.rememberSearchValue();
}
-function OIe() {
- Y.entityPageView = "", Y.entityPageWall = !1, Y.entityPageRevision = 0, Y.entityPageCurrent = () => !!i5(), Y.entityPageLive = (e, t) => {
- let n = i5();
+function MIe() {
+ Y.entityPageView = "", Y.entityPageWall = !1, Y.entityPageRevision = 0, Y.entityPageCurrent = () => !!s5(), Y.entityPageLive = (e, t) => {
+ let n = s5();
return !!n && !L("#index").hidden && n.props.kind === e && n.props.name === t;
}, Y.EMPTY_ENTITY_MEDIA = {
media: "videos",
set: 0
- }, Y.parseMediaView = B8, Y.entityViewSearch = V8, Y.entityBodyCanLoadMore = () => !L("#index").hidden && L("#stats").hidden, Y.entityBodySkeleton = () => q7(), Y.entityPageHelpers = {
+ }, Y.parseMediaView = q8, Y.entityViewSearch = J8, Y.entityBodyCanLoadMore = () => !L("#index").hidden && L("#stats").hidden, Y.entityBodySkeleton = () => q7(), Y.entityPageHelpers = {
wireDrag: (e) => {
e && t9(e);
},
wireScroller: (e) => {
e && Dc(e);
},
- wireFeedRow: (e) => Y8(e),
- feedRowHtml: J8,
- receipt: (e, t) => b8.actionReceipt(e, t),
- failure: (e, t) => b8.actionFailure(e, t),
- aliasForm: (e, t) => EIe(e, t),
- sourceToolsHtml: (e) => wIe(e),
- wireSourceTools: (e, t) => TIe(e, t),
+ wireFeedRow: (e) => n5(e),
+ feedRowHtml: t5,
+ receipt: (e, t) => D8.actionReceipt(e, t),
+ failure: (e, t) => D8.actionFailure(e, t),
+ aliasForm: (e, t) => AIe(e, t),
+ sourceToolsHtml: (e) => OIe(e),
+ wireSourceTools: (e, t) => kIe(e, t),
comboItems: (e) => I7(e),
- sortKeys: (e, t, n) => s5(e, t, n)
+ sortKeys: (e, t, n) => u5(e, t, n)
}, Y.entityFollowActions = {
...$.followFeedActions,
route: () => {},
@@ -80049,11 +80094,11 @@ function OIe() {
<button type="button" data-sync="${e}" title="核对该目录:磁盘上已删除的移入 Peach 回收站,带个人记录的标为已消失"
aria-label="同步删除">${R("folder-sync")}</button>`;
}
-function kIe() {
- Y.application = dIe({
+function NIe() {
+ Y.application = hIe({
controller: {
context: () => {
- let e = o5();
+ let e = l5();
return e.type === "entity" ? e : null;
},
live: (e, t) => Y.entityPageLive(e, t),
@@ -80065,22 +80110,22 @@ function kIe() {
filters: U
} }),
releaseBodyPreviews: () => Al(L("#index [data-entity-body]")),
- push: a5,
+ push: c5,
state: () => ({
seed: String(U.seed || ""),
jav: U.jav === "1"
}),
preferences: () => ({
revision: Y.entityPageRevision,
- feedRevision: H8.feedRevision,
- photoSize: CM(),
- photoLayout: wM(),
- photoLayouts: gM,
+ feedRevision: Y8.feedRevision,
+ photoSize: TM(),
+ photoLayout: EM(),
+ photoLayouts: vM,
followImagesOnly: !!Z.appSettings.followImagesOnly,
- javLayout: yM(),
- javLayouts: mM,
+ javLayout: xM(),
+ javLayouts: gM,
states: X.VIEW_PILLS,
- peopleLayout: j5.peopleIndexLayout(),
+ peopleLayout: P5.peopleIndexLayout(),
layout: K7(),
selectMode: Yl,
selected: new Set(ql),
@@ -80095,51 +80140,51 @@ function kIe() {
}
}),
changeFilter: C7,
- rollSeed: () => b8.rollSeed(),
+ rollSeed: () => D8.rollSeed(),
writeSeed: (e) => {
U.seed = e, bu();
},
- setJavLayout: i7,
- javLayout: yM,
- setPhotoLayout: kM,
- syncPhotoWalls: u5,
- openEntity: v5,
- photoViewActive: l5,
+ setJavLayout: s7,
+ javLayout: xM,
+ setPhotoLayout: jM,
+ syncPhotoWalls: p5,
+ openEntity: x5,
+ photoViewActive: f5,
recordPainted: (e, t) => {
Y.entityPageView = e, Y.entityPageWall = t;
},
- syncDensity: d5,
- scheduleSticky: d7,
+ syncDensity: m5,
+ scheduleSticky: m7,
releasePage: () => hp(L("#index")),
- showMissing: _5,
- dropBars: E8
+ showMissing: b5,
+ dropBars: N8
},
loading: {
- shapesReady: (e, t) => H8.hasEntityShape(e, t),
- waitShapes: R5,
- paintSkeleton: h5,
+ shapesReady: (e, t) => Y8.hasEntityShape(e, t),
+ waitShapes: V5,
+ paintSkeleton: v5,
resetView: () => {
yu({ detailReturnBarsContext: null }), Y.entityPageView = "", Y.entityPageWall = !1;
},
- loadShapes: W8,
- syncParts: g5
+ loadShapes: Z8,
+ syncParts: y5
},
photos: {
preferences: () => ({
- size: CM(),
- layout: wM(),
+ size: TM(),
+ layout: EM(),
imagesOnly: !!Z.appSettings.followImagesOnly
}),
walls: () => document.querySelectorAll(".followphotowall"),
- pushEntity: a5,
+ pushEntity: c5,
pushFollow: w9,
- syncDensity: d5,
- storeSize: Sle
+ syncDensity: m5,
+ storeSize: ble
},
helpers: Y.entityPageHelpers,
actions: {
toggleTag: F7,
- openFollowAuthor: P5,
+ openFollowAuthor: L5,
javContext: (e) => yu({ entityJavLayout: !!e })
},
sortPreference: () => ({
@@ -80149,8 +80194,8 @@ function kIe() {
}), Y.photos = Y.application.photos, Y.entityPageHelpers = Y.application.helpers;
}
// src/application/playlists.js
-var y5 = { playlistWrite: void 0 };
-function AIe(e, t) {
+var S5 = { playlistWrite: void 0 };
+function PIe(e, t) {
e === "tag" ? (yu({ state: {
...U,
tag: t,
@@ -80160,17 +80205,17 @@ function AIe(e, t) {
q: "",
state: "",
orient: ""
- } }), X.clearSearchField(), Q.route(g7()), U5(), N7()) : v5(e, t);
+ } }), X.clearSearchField(), Q.route(g7()), K5(), N7()) : x5(e, t);
}
-function b5(e = "") {
+function C5(e = "") {
return `<label class="modalfield"><span>名称</span><input class="geist-input" name="name"
maxlength="80" placeholder="输入名称" value="${z(e)}"></label>`;
}
-async function jIe({ title: e, count: t, save: n }) {
+async function FIe({ title: e, count: t, save: n }) {
let r = il({
title: "保存为播放列表",
description: `这个 Mix 的 ${t} 个视频会存成一份可以继续播放的列表。`,
- body: b5(e),
+ body: C5(e),
confirmLabel: "保存为播放列表",
onConfirm: () => {
let e = r.dialog.querySelector("[name=\"name\"]").value.trim();
@@ -80180,28 +80225,28 @@ async function jIe({ title: e, count: t, save: n }) {
});
r.dialog.querySelector("[name=\"name\"]").select();
let { confirmed: i, result: a } = await r.done;
- i && (await s9(a.id, a.current_asset_id, !0), b8.actionReceipt("已保存为播放列表", { undo: async () => {
- await y5.playlistWrite({
+ i && (await s9(a.id, a.current_asset_id, !0), D8.actionReceipt("已保存为播放列表", { undo: async () => {
+ await S5.playlistWrite({
action: "delete",
id: a.id
}), y9("/playlists");
} }));
}
-async function MIe(e) {
+async function IIe(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: b5() + (t ? `<div class="picklist" role="group" aria-label="已有播放列表">${t}</div>` : Rs("还没有播放列表,填个名称就能新建一份。", { size: "small" })),
+ body: C5() + (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 y5.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 S5.playlistWrite({
action: "create",
name: t,
asset_ids: [e.id]
})).playlist : null;
- for (let t of r) await y5.playlistWrite({
+ for (let t of r) await S5.playlistWrite({
action: "add",
id: t,
asset_ids: [e.id]
@@ -80215,46 +80260,46 @@ async function MIe(e) {
let e = n.dialog.querySelector("[name=\"name\"]").value.trim();
n.confirmButton.disabled = !e && !n.dialog.querySelector("[data-pick-playlist]:checked");
};
- I8.listen(n.dialog, "input", r), I8.listen(n.dialog, "change", r);
+ U8.listen(n.dialog, "input", r), U8.listen(n.dialog, "change", r);
let { confirmed: i, result: a } = await n.done;
if (!i) return;
let o = +!!a.created + a.added.length;
- b8.actionReceipt(`已加入 ${o} 个播放列表`, { undo: async () => {
- for (let t of a.added) await y5.playlistWrite({
+ D8.actionReceipt(`已加入 ${o} 个播放列表`, { undo: async () => {
+ for (let t of a.added) await S5.playlistWrite({
action: "remove",
id: t,
asset_id: e.id
});
- a.created && await y5.playlistWrite({
+ a.created && await S5.playlistWrite({
action: "delete",
id: a.created.id
});
} });
}
-function x5() {
- Al(), a9(!1), H5();
+function w5() {
+ Al(), a9(!1), G5();
let e = sp(L("#stats"));
- e?.path !== "/playlists" || !e.host.isConnected ? yu({ pageOpens: uu + 1 }) : (V5({ manage: !1 }), yu({ playlistsRevision: gu + 1 }));
+ e?.path !== "/playlists" || !e.host.isConnected ? yu({ pageOpens: uu + 1 }) : (W5({ manage: !1 }), yu({ playlistsRevision: gu + 1 }));
}
-function NIe(e) {
+function LIe(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 S5(e) {
+function T5(e) {
yu({ configurationRequestedSection: e }), Q.navigatePath(Mf(e));
}
-function PIe() {
- y5.playlistWrite = (e) => wn("/api/playlist", {
+function RIe() {
+ S5.playlistWrite = (e) => wn("/api/playlist", {
method: "POST",
body: JSON.stringify(e)
});
}
// src/react/catalog-grid/selection-controller.ts
-function C5(e) {
+function E5(e) {
return e === "/follow" ? "follow" : e === "/junk-files" ? "junk" : "catalog";
}
-function w5(e, t, n, r, i = !1) {
+function D5(e, t, n, r, i = !1) {
return i && (e.selected.clear(), e.followSelected.clear()), {
selectMode: r,
selectSurface: r ? t.selectMode ? t.selectSurface : n : "",
@@ -80262,23 +80307,23 @@ function w5(e, t, n, r, i = !1) {
followLastSelectedId: i ? null : t.followLastSelectedId
};
}
-function T5(e, t, n, r, i, a = !1) {
- let o = n === "follow", s = IY(o ? e.followSelected : e.selected, r, o ? t.followLastSelectedId : t.lastSelectedId, i, a);
+function O5(e, t, n, r, i, a = !1) {
+ let o = n === "follow", s = RY(o ? e.followSelected : e.selected, r, o ? t.followLastSelectedId : t.lastSelectedId, i, a);
return {
- ...w5(e, t, n, !0),
+ ...D5(e, t, n, !0),
...o ? { followLastSelectedId: s } : { lastSelectedId: s }
};
}
-function FIe(e, t, n, r) {
- let i = C5(t);
+function zIe(e, t, n, r) {
+ let i = E5(t);
return {
count: (i === "follow" ? e.followSelected : e.selected).size,
context: i === "catalog" && r === "trash" ? "trash" : i,
- junkDismissed: YU(n).view === "dismissed"
+ junkDismissed: ZU(n).view === "dismissed"
};
}
// src/application/selection.js
-var E5 = {
+var k5 = {
batchDockProps: void 0,
trashCount: void 0,
currentSelectSurface: void 0,
@@ -80286,43 +80331,43 @@ var E5 = {
BATCH_RUNNERS: void 0,
coverRecheck: void 0
};
-function D5() {
+function A5() {
W7({
selected: new Set(ql),
selectMode: Yl
- }), a5({
+ }), c5({
selected: new Set(ql),
selectMode: Yl
}), w9({
selected: new Set(Jl),
selectMode: Yl
- }), E5.batchDockProps = GIe(), _8() && (_8().render(E5.batchDockProps), Z.syncGlassOptics());
+ }), k5.batchDockProps = YIe(), w8() && (w8().render(k5.batchDockProps), Z.syncGlassOptics());
}
-function O5(e, t = !1) {
- yu(w5({
+function j5(e, t = !1) {
+ yu(D5({
selected: ql,
followSelected: Jl
- }, A5(), C5(location.pathname), !!e, t)), document.body.classList.toggle("select-mode", Yl), Yl && Al(), L("#selectMode").setAttribute("aria-pressed", String(Yl)), D5();
+ }, N5(), E5(location.pathname), !!e, t)), document.body.classList.toggle("select-mode", Yl), Yl && Al(), L("#selectMode").setAttribute("aria-pressed", String(Yl)), A5();
}
-function IIe() {
- return [...F5.gridCards()].map((e) => +e.dataset.id);
+function BIe() {
+ return [...R5.gridCards()].map((e) => +e.dataset.id);
}
-function k5(e, t = !1) {
- yu(T5({
+function M5(e, t = !1) {
+ yu(O5({
selected: ql,
followSelected: Jl
- }, A5(), C5(location.pathname), IIe(), e, t)), O5(!0);
+ }, N5(), E5(location.pathname), BIe(), e, t)), j5(!0);
}
-function LIe() {
+function VIe() {
return [...document.querySelectorAll("[data-follow-list] > [data-follow-item]")].map((e) => +e.dataset.followItem);
}
-function RIe(e, t = !1) {
- yu(T5({
+function HIe(e, t = !1) {
+ yu(O5({
selected: ql,
followSelected: Jl
- }, A5(), "follow", LIe(), e, t)), O5(!0);
+ }, N5(), "follow", VIe(), e, t)), j5(!0);
}
-async function zIe(e, t) {
+async function UIe(e, t) {
let n = {
like: "喜欢",
seen: "标为看过",
@@ -80354,9 +80399,9 @@ async function zIe(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"));
- O5(!1, !0), await o7();
+ j5(!1, !0), await l7();
let r = e === "dispose" ? "restore" : e === "restore" ? "dispose" : null;
- b8.actionReceipt(`已${n[e]} ${i.length} 项`, { undo: r ? async () => {
+ D8.actionReceipt(`已${n[e]} ${i.length} 项`, { undo: r ? async () => {
if (r === "dispose" && t.restored_reasons) for (let e of [
null,
"manual",
@@ -80381,23 +80426,23 @@ async function zIe(e, t) {
operation: r
})
});
- await o7();
+ await l7();
} : null });
} catch (e) {
throw qc(t, !1), e;
} finally {
- qc(t, !1), D5();
+ qc(t, !1), A5();
}
}
});
}
-async function BIe() {
+async function WIe() {
let e = [...ql];
if (!e.length) return;
let t = il({
title: "判定产地",
description: `选中的 ${e.length} 项归为同一个产地。判定之后,刮削和自动推断不再改写产地。`,
- body: "<div class=\"chips\" role=\"group\" aria-label=\"产地\">" + E5.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=\"产地\">" + k5.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,
@@ -80417,13 +80462,13 @@ async function BIe() {
};
}
});
- t.dialog.querySelectorAll("[data-region-pick]").forEach((e) => I8.handler(e, "onclick", () => {
+ t.dialog.querySelectorAll("[data-region-pick]").forEach((e) => U8.handler(e, "onclick", () => {
t.dialog.querySelectorAll("[data-region-pick]").forEach((t) => t.setAttribute("aria-pressed", String(t === e))), t.confirmButton.disabled = !1;
}));
let { confirmed: n, result: r } = await t.done;
- n && (O5(!1, !0), await o7(), b8.actionReceipt(r.region === "none" ? `已撤回 ${e.length} 项的产地判定` : `已判为${r.label}:${e.length} 项`));
+ n && (j5(!1, !0), await l7(), D8.actionReceipt(r.region === "none" ? `已撤回 ${e.length} 项的产地判定` : `已判为${r.label}:${e.length} 项`));
}
-async function VIe(e, t) {
+async function GIe(e, t) {
let n = [...Jl];
if (!n.length) return;
let r = {
@@ -80449,16 +80494,16 @@ async function VIe(e, t) {
items: n,
to: e
})
- }), O5(!1, !0), location.pathname === "/follow" && yu({ pageOpens: uu + 1 }), b8.actionReceipt(`已${r[e]} ${n.length} 项`);
+ }), j5(!1, !0), location.pathname === "/follow" && yu({ pageOpens: uu + 1 }), D8.actionReceipt(`已${r[e]} ${n.length} 项`);
} catch (e) {
throw qc(t, !1), e;
} finally {
- qc(t, !1), D5();
+ qc(t, !1), A5();
}
}
});
}
-async function HIe(e, t) {
+async function KIe(e, t) {
let n = [...ql];
if (!n.length) return;
let r = {
@@ -80485,9 +80530,9 @@ async function HIe(e, t) {
operation: e,
...e === "dispose" ? { disposal_reason: "junk" } : {}
})
- }), O5(!1, !0), await R7();
+ }), j5(!1, !0), await R7();
let t = e === "dispose" ? "restore" : e === "dismiss-junk" ? "reconsider-junk" : e === "reconsider-junk" ? "dismiss-junk" : null;
- b8.actionReceipt(`已批量${r[e]}:${n.length} 项`, { undo: t ? async () => {
+ D8.actionReceipt(`已批量${r[e]}:${n.length} 项`, { undo: t ? async () => {
await wn("/api/batch", {
method: "POST",
body: JSON.stringify({
@@ -80499,54 +80544,54 @@ async function HIe(e, t) {
} catch (e) {
throw qc(t, !1), e;
} finally {
- qc(t, !1), D5();
+ qc(t, !1), A5();
}
}
});
}
-function UIe() {
- RFe({
+function qIe() {
+ HFe({
root: L("[data-batch-dock]"),
run: (e, t, n) => {
- E5.BATCH_RUNNERS[e]?.(t, n);
+ k5.BATCH_RUNNERS[e]?.(t, n);
}
}).then((e) => {
- e.render(E5.batchDockProps), Z.syncGlassOptics();
+ e.render(k5.batchDockProps), Z.syncGlassOptics();
}).catch(() => {});
}
-function WIe() {
- E5.batchDockProps = {
+function JIe() {
+ k5.batchDockProps = {
count: 0,
context: "catalog",
junkDismissed: !1
- }, E5.trashCount = null, E5.currentSelectSurface = () => C5(location.pathname), I8.handler(L("#selectMode"), "onclick", () => O5(!Yl, !!Yl)), E5.REGION_CHOICES = [
+ }, k5.trashCount = null, k5.currentSelectSurface = () => E5(location.pathname), U8.handler(L("#selectMode"), "onclick", () => j5(!Yl, !!Yl)), k5.REGION_CHOICES = [
["jp", "日本"],
["kr", "韩国"],
["cn", "国产"],
["west", "欧美"],
["other", "其他"],
["none", "撤回判定"]
- ], E5.BATCH_RUNNERS = {
- batch: zIe,
- region: BIe,
- follow: VIe,
- junk: HIe,
- clear: () => O5(!1, !0)
- }, I8.handler(L("#density"), "onclick", () => {
- l5() ? SIe(CM() === "big" ? "small" : "big") : Cle();
- }), IM(), Ol({
+ ], k5.BATCH_RUNNERS = {
+ batch: UIe,
+ region: WIe,
+ follow: GIe,
+ junk: KIe,
+ clear: () => j5(!1, !0)
+ }, U8.handler(L("#density"), "onclick", () => {
+ f5() ? EIe(TM() === "big" ? "small" : "big") : xle();
+ }), RM(), Ol({
selecting: () => Yl,
censored: () => $7(),
delaySeconds: () => Z.appSettings.hoverDelaySeconds
- }), I8.listen(window, "pagehide", () => Al()), I8.listen(document, "visibilitychange", () => {
+ }), U8.listen(window, "pagehide", () => Al()), U8.listen(document, "visibilitychange", () => {
document.hidden && Al();
- }), Tl(), E5.coverRecheck = 0, I8.listen(window, "resize", () => {
- Sl(L("#index")), clearTimeout(E5.coverRecheck), E5.coverRecheck = I8.delay(() => L("#index").querySelectorAll("img.cover").forEach((e) => {
+ }), Tl(), k5.coverRecheck = 0, U8.listen(window, "resize", () => {
+ Sl(L("#index")), clearTimeout(k5.coverRecheck), k5.coverRecheck = U8.delay(() => L("#index").querySelectorAll("img.cover").forEach((e) => {
e.complete && pl(e);
}), 200);
}, { passive: !0 });
}
-function A5() {
+function N5() {
return {
selectMode: Yl,
selectSurface: Ql,
@@ -80554,62 +80599,62 @@ function A5() {
followLastSelectedId: Zl
};
}
-function GIe() {
- return FIe({
+function YIe() {
+ return zIe({
selected: ql,
followSelected: Jl
}, location.pathname, location.search, U.state);
}
// src/application/index.js
-var j5 = {
+var P5 = {
peopleIndexLayout: void 0,
personAvatar: void 0
};
-function KIe() {
+function XIe() {
return Z.appSettings.followLayout === "table" ? "table" : "default";
}
-function qIe() {
- return YZ(location.search);
+function ZIe() {
+ return XZ(location.search);
}
-function JIe(e) {
- return XZ(e);
+function QIe(e) {
+ return ZZ(e);
}
-function YIe(e) {
- Q.route(JIe(e));
+function $Ie(e) {
+ Q.route(QIe(e));
}
-function XIe(e = "") {
- return ZZ(location.search, e);
+function eLe(e = "") {
+ return QZ(location.search, e);
}
-function ZIe(e) {
- return P8(e);
+function tLe(e) {
+ return V8(e);
}
-function M5(e) {
- return M8(e);
+function F5(e) {
+ return z8(e);
}
-function N5() {
+function I5() {
L("#stats").hidden = !0, L("#index").hidden = !1, B7(), X.hideCatalogCombo(), L("#count").textContent = "", L("#loadSentinel").hidden = !0;
}
-function QIe(e, t) {
+function nLe(e, t) {
yu({ state: {
...U,
state: "",
tag: e.join(","),
tag_match: t
- } }), O5(!1, !1), Q.route(g7()), U5(), h9(), N7();
+ } }), j5(!1, !1), Q.route(g7()), K5(), h9(), N7();
}
-function P5(e) {
- j5.controller.openFollowAuthor(e);
+function L5(e) {
+ P5.controller.openFollowAuthor(e);
}
-function $Ie(e) {
- j5.controller.openFollowTag(e);
+function rLe(e) {
+ P5.controller.openFollowTag(e);
}
-function eLe() {
- $.FOLLOW_MANAGE_TABS = JZ, I8.listen(document, "click", (e) => {
- e.target.closest?.("[data-empty-settings]") && S5("媒体库与入库");
- }), j5.peopleIndexLayout = () => Q3(Z.appSettings.peopleLayout), j5.personAvatar = N8;
+function iLe() {
+ $.FOLLOW_MANAGE_TABS = YZ, U8.listen(document, "click", (e) => {
+ e.target.closest?.("[data-empty-settings]") && T5("媒体库与入库");
+ }), P5.peopleIndexLayout = () => a6(Z.appSettings.peopleLayout), P5.personAvatar = B8;
}
-function tLe() {
- j5.controller = tIe({
+function aLe() {
+ P5.controller = aIe({
route: Q.route,
followView: x9,
adoptFollowView: S9,
@@ -80620,7 +80665,7 @@ function tLe() {
});
}
// src/application/loading.js
-var F5 = {
+var R5 = {
setGridCards: void 0,
gridCards: void 0,
managementPlaceholder: void 0,
@@ -80629,58 +80674,58 @@ var F5 = {
ENTITY_SHAPES_WAIT: void 0,
syncPageTitle: void 0
};
-function I5(e = "正在读取作品") {
+function z5(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 = Rve(YU(location.search)), uc(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", U && T7({
+ if (t.classList.toggle("manage-static", n), t.classList.toggle("junkcount", n), n ? (t.setAttribute("aria-busy", "true"), t.setAttribute("aria-label", e), t.innerHTML = Ive(ZU(location.search)), uc(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", U && T7({
count: null,
...O7()
})), L("#loadSentinel").hidden = !0, U7()) return;
let r = L("#grid"), i = q7(e), a = r.querySelector(".catalog-skeleton");
- (a?.dataset.skeleton !== E2(i) || Number(a.querySelector("[style]")?.style.getPropertyValue("--skeleton-card-ratio")) !== J7()) && (a ? r.innerHTML = `<div class="grid">${i}</div>` : F5.setGridCards(i), uc(L("#grid")));
+ (a?.dataset.skeleton !== N2(i) || Number(a.querySelector("[style]")?.style.getPropertyValue("--skeleton-card-ratio")) !== J7()) && (a ? r.innerHTML = `<div class="grid">${i}</div>` : R5.setGridCards(i), uc(L("#grid")));
}
-function L5() {
+function B5() {
L("#catalogFilter").style.display = "none", w7();
}
-function R5() {
+function V5() {
let e = new Promise((e) => {
- let t = F5.ENTITY_SHAPES_WAIT, n = performance.now(), r = () => {
+ let t = R5.ENTITY_SHAPES_WAIT, n = performance.now(), r = () => {
let i = performance.now();
- t -= Math.min(i - n, 50), n = i, t > 0 ? I8.delay(r, Math.min(t, 50)) : e();
+ t -= Math.min(i - n, 50), n = i, t > 0 ? U8.delay(r, Math.min(t, 50)) : e();
};
- I8.delay(r, 50);
+ U8.delay(r, 50);
});
- return Promise.race([F5.entityShapesReady ||= W8(), e]);
+ return Promise.race([R5.entityShapesReady ||= Z8(), e]);
}
-function nLe() {
+function oLe() {
let e = decodeURIComponent(location.pathname);
- if (document.body.dataset.surface = location.pathname, e === "/wall") document.body.setAttribute("data-wall-open", ""), L5();
- else if (/^\/assets\/\d+$/.test(e)) L5();
- else if (e === "/settings" || /^\/settings\/(appearance|playback|jav|search|content)$/.test(e) || e.startsWith("/posts/") || e.startsWith("/works/")) L5();
- else if (e === "/junk-files") I5("正在读取垃圾文件");
- else if (e === "/jav" && SU(new URLSearchParams(location.search).get("tab")) === "library") I5("正在读取馆藏");
+ if (document.body.dataset.surface = location.pathname, e === "/wall") document.body.setAttribute("data-wall-open", ""), B5();
+ else if (/^\/assets\/\d+$/.test(e)) B5();
+ else if (e === "/settings" || /^\/settings\/(appearance|playback|jav|search|content)$/.test(e) || e.startsWith("/posts/") || e.startsWith("/works/")) B5();
+ else if (e === "/junk-files") z5("正在读取垃圾文件");
+ else if (e === "/jav" && wU(new URLSearchParams(location.search).get("tab")) === "library") z5("正在读取馆藏");
else if (Q.managedPagePath(e)) {
- L5();
+ B5();
let t = L("#stats");
- t.hidden = !1, B7(), t.innerHTML = e.startsWith("/follow") && e !== "/subscriptions" ? $.followSkeletonHtml("正在读取关注内容") : F5.managementPlaceholder(e), uc(t);
- } else if (/^\/(performers|creators|studios|agencies|tags)$/.test(e)) L5(), N5(), t6(L("#index"), $3(e.slice(1), location.search), j5.peopleIndexLayout());
+ t.hidden = !1, B7(), t.innerHTML = e.startsWith("/follow") && e !== "/subscriptions" ? $.followSkeletonHtml("正在读取关注内容") : R5.managementPlaceholder(e), uc(t);
+ } else if (/^\/(performers|creators|studios|agencies|tags)$/.test(e)) B5(), I5(), c6(L("#index"), o6(e.slice(1), location.search), P5.peopleIndexLayout());
else if (/^\/(?:performers|creators|studios|agencies|series|tags)\//.test(e)) {
- L5(), L("#index").hidden = !1, B7();
+ B5(), L("#index").hidden = !1, B7();
let t = Mn[e.split("/")[1]], n = e.split("/").slice(2).join("/");
- (H8.hasEntityShape(t, n) ? Promise.resolve() : R5()).then(() => {
- L("#index").firstElementChild || decodeURIComponent(location.pathname) !== e || (h5(t, n), uc(L("#index")));
+ (Y8.hasEntityShape(t, n) ? Promise.resolve() : V5()).then(() => {
+ L("#index").firstElementChild || decodeURIComponent(location.pathname) !== e || (v5(t, n), uc(L("#index")));
});
- } else Q.routeMeta(e) ? I5() : (B7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0);
+ } else Q.routeMeta(e) ? z5() : (B7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0);
}
-function rLe() {
- $.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => w2(t, {
+function sLe() {
+ $.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => j2(t, {
cards: !0,
className: "follow-content-skeleton postercard-skeleton",
gridClass: e === "images" ? "followlist followphotowall" : "",
- gridSize: CM()
+ gridSize: TM()
}), $.followSkeletonHtml = (e = "正在读取关注内容") => `<div class="peach-react"><div class="follow" data-follow-feed>
<div data-follow-head><h2 data-follow-title>关注</h2></div>
<div class="tier followauthors" data-skeleton-tier="av"></div>
@@ -80688,37 +80733,37 @@ function rLe() {
<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), F5.setGridCards = (e) => tc(L("#grid"), () => {
+ ${$.followContentSkeletonHtml(void 0, e)}</div></div>`, L("#loadSentinel").innerHTML = Vs(Bs), R5.setGridCards = (e) => tc(L("#grid"), () => {
L("#grid").innerHTML = `<div class="grid">${e}</div>`;
- }), F5.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) :is([data-media-grid] > [data-media-card][data-id],[data-catalog-row][data-id])"), F5.managementPlaceholder = (e) => T2(e, {
- followLayout: KIe(),
+ }), R5.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) :is([data-media-grid] > [data-media-card][data-id],[data-catalog-row][data-id])"), R5.managementPlaceholder = (e) => M2(e, {
+ followLayout: XIe(),
...(({ sort: e, dir: t, tab: n }) => ({
followSort: e,
followDir: t,
followTab: n
- }))(qIe())
- }), F5.wantsDiscoveryBars = () => L("#catalogFilter").style.display !== "none", F5.entityShapesReady = null, F5.ENTITY_SHAPES_WAIT = 400, F5.syncPageTitle = (e) => {
+ }))(ZIe())
+ }), R5.wantsDiscoveryBars = () => L("#catalogFilter").style.display !== "none", R5.entityShapesReady = null, R5.ENTITY_SHAPES_WAIT = 400, R5.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, p9();
};
}
// src/sidebar-skeleton.ts
-var z5 = (e) => e.replace(/[&<>"']/g, (e) => ({
+var H5 = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
})[e]);
-function iLe(e, t, n) {
+function cLe(e, t, n) {
let r = new Map(t.map((e) => [e[0], e]));
return `<div data-sidebar-head=""></div><div data-sidebar-nav="">${e.map((e) => r.get(e)).filter((e) => e !== void 0).map(([e, t, r]) => {
- let i = e === "" ? "<img data-sidebar-home-logo=\"\" src=\"/peach-logo-64.png\" srcset=\"/peach-logo-64.png 64w, /peach-logo-128.png 128w\" sizes=\"24px\" width=\"24\" height=\"24\" alt=\"\" decoding=\"async\">" : `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${z5(r)}"/></svg>`;
- return `<button type="button" data-nav="${z5(e)}" aria-pressed="${n(e)}" aria-label="${z5(t)}">${i}<span>${z5(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-${H5(r)}"/></svg>`;
+ return `<button type="button" data-nav="${H5(e)}" aria-pressed="${n(e)}" aria-label="${H5(t)}">${i}<span>${H5(t)}</span></button>`;
}).join("")}</div>`;
}
// src/application/filter-scroll.js
-function aLe(e, t, n, r = !1) {
+function lLe(e, t, n, r = !1) {
if (t = Math.max(0, t), !e || !n || r || t <= 8) return {
y: t,
origin: t,
@@ -80736,7 +80781,7 @@ function aLe(e, t, n, r = !1) {
};
}
// src/application/layout.js
-var B5 = {
+var U5 = {
sidebarProps: void 0,
sidebarSurface: void 0,
sidebarCatalog: void 0,
@@ -80758,19 +80803,19 @@ var B5 = {
mobileFilterHost: void 0,
mobileFilterPath: void 0
};
-function V5({ manage: e = !0, placeholder: t = "" } = {}) {
- L("#stats").hidden = !1, L("#index").hidden = !0, B7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0, e ? Z5() : (Q5(""), h9()), t && D2(L("#stats"), t);
+function W5({ manage: e = !0, placeholder: t = "" } = {}) {
+ L("#stats").hidden = !1, L("#index").hidden = !0, B7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0, e ? e7() : (t7(""), h9()), t && P2(L("#stats"), t);
}
-function H5() {
- L("#javLibraryHeader").hidden = !0, X.hideCatalogCombo(), L5(), document.body.classList.remove("entity-open", "index-open");
+function G5() {
+ L("#javLibraryHeader").hidden = !0, X.hideCatalogCombo(), B5(), document.body.classList.remove("entity-open", "index-open");
}
-function U5() {
- L("#javLibraryHeader").hidden = !An(location.pathname) || !t7(), document.body.classList.remove("entity-open", "index-open"), hp(L("#index")), L("#stats").hidden = !0, L("#index").hidden = !0, X8(location.pathname) || (L("#feedNew").hidden = !0), L("#catalogFilter").style.display = "", w7(), Z5(), $5();
+function K5() {
+ L("#javLibraryHeader").hidden = !An(location.pathname) || !i7(), document.body.classList.remove("entity-open", "index-open"), hp(L("#index")), L("#stats").hidden = !0, L("#index").hidden = !0, r5(location.pathname) || (L("#feedNew").hidden = !0), L("#catalogFilter").style.display = "", w7(), e7(), n7();
}
-function oLe() {
- Q.route("/"), U5();
+function uLe() {
+ Q.route("/"), K5();
}
-function W5({ tags: e = [], providers: t = [], duration: n = !1 }) {
+function q5({ tags: e = [], providers: t = [], duration: n = !1 }) {
m9({
content: e.length || t.length || n ? {
kind: "follow",
@@ -80794,28 +80839,28 @@ function W5({ tags: e = [], providers: t = [], duration: n = !1 }) {
filters: $.followSidebarFilters()
});
}
-function G5(e) {
- cRe({
+function J5(e) {
+ dRe({
...x9(),
...e
}), m9({ filters: $.followSidebarFilters() });
}
-function K5() {
+function Y5() {
return matchMedia("(max-width:760px)").matches;
}
-function q5(e) {
+function X5(e) {
let t = L("#drawer"), n = !e && t.contains(document.activeElement);
- t.inert = !e && K5(), 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 && Y5(), 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 J5() {
- K5() && q5(!1);
+function Z5() {
+ Y5() && X5(!1);
}
-function sLe() {
+function dLe() {
cu === null && (yu({ runtimeConfigurable: !1 }), wn("/healthz").then((e) => {
- yu({ runtimeConfigurable: !!e.configurable }), cu && X5() && Z5();
+ yu({ runtimeConfigurable: !!e.configurable }), cu && $5() && e7();
}).catch(() => {}));
}
-function Y5(e = "", t = !1) {
+function Q5(e = "", t = !1) {
if (!t && !Af(location.pathname)) {
let t = W.navigation;
W.push(Mf(e), { settingsBackground: {
@@ -80828,20 +80873,20 @@ function Y5(e = "", t = !1) {
replace: !0,
state: W.navigation.location.state
});
- return e ||= jf(location.pathname), FFe(B5.settingsHost()).then((t) => (t.open(e), t));
+ return e ||= jf(location.pathname), zFe(U5.settingsHost()).then((t) => (t.open(e), t));
}
-function cLe() {
+function fLe() {
Af(location.pathname) && (Nf(W.navigation.location.state) ? W.go(-1) : Q.navigatePath("/", !0));
}
-function lLe() {
+function pLe() {
return {
scroll: L("#drawerScroll"),
store: Z.settingsStore,
- navCatalog: B5.NAV_CATALOG,
- navOn: c7,
- navTo: l7,
+ navCatalog: U5.NAV_CATALOG,
+ navOn: d7,
+ navTo: f7,
navToTop: () => {
- J5(), cm();
+ Z5(), cm();
},
toggleChip: (e, t, n) => C7((r) => {
if (n) {
@@ -80853,13 +80898,13 @@ function lLe() {
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]), q5(!1), y9(b9());
+ $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followFilter = "saved", $.followDurMin = $.followDurMax = 0, $.followTags = /* @__PURE__ */ new Set([e]), X5(!1), y9(b9());
},
selectFollowTag: (e) => {
- $.followTags = /* @__PURE__ */ new Set([e]), q5(!1), y9(b9());
+ $.followTags = /* @__PURE__ */ new Set([e]), X5(!1), y9(b9());
},
- selectFollowProvider: (e) => G5({ provider: $.followProviders.has(e) ? "" : e }),
- setFollowDuration: (e, t) => G5({
+ selectFollowProvider: (e) => J5({ provider: $.followProviders.has(e) ? "" : e }),
+ setFollowDuration: (e, t) => J5({
durMin: e ? e * 60 : 0,
durMax: t < 180 ? t * 60 : 0
}),
@@ -80868,111 +80913,111 @@ function lLe() {
}
};
}
-function uLe() {
+function mLe() {
let e = L("#drawerScroll"), t = [...e.querySelector("[data-sidebar-head]")?.children || []];
- e.innerHTML = iLe(Z.appSettings.sidebarOrder, B5.NAV_CATALOG, c7), e.querySelector("[data-sidebar-head]").append(...t), I8.listen(e, "click", (e) => {
- if (d8()) return;
+ e.innerHTML = cLe(Z.appSettings.sidebarOrder, U5.NAV_CATALOG, d7), e.querySelector("[data-sidebar-head]").append(...t), U8.listen(e, "click", (e) => {
+ if (v8()) return;
let t = e.target.closest?.("[data-nav]");
- t && l7(t.dataset.nav);
- }), IFe(lLe()).then((e) => e.render(B5.sidebarProps)).catch(() => {});
+ t && f7(t.dataset.nav);
+ }), BFe(pLe()).then((e) => e.render(U5.sidebarProps)).catch(() => {});
}
-async function dLe() {
- let e = I8, t = null;
+async function hLe() {
+ let e = U8, t = null;
try {
t = await wn("/api/settings", { signal: e.signal });
} catch {
return;
}
- e.isActive && lM(t, (e) => Z.settingsEffects[e]?.());
+ e.isActive && dM(t, (e) => Z.settingsEffects[e]?.());
}
-function X5() {
+function $5() {
return Q.routeMeta(decodeURIComponent(location.pathname))?.route.section || (U.state === "ads" ? "cleanup" : "");
}
-function Z5() {
- let e = X5();
- sLe(), e && L5(), L("#count").classList.toggle("no-tagbar", !!e), h9(), e !== "trash" && (E5.trashCount = null), Q5(e);
+function e7() {
+ let e = $5();
+ dLe(), e && B5(), L("#count").classList.toggle("no-tagbar", !!e), h9(), e !== "trash" && (k5.trashCount = null), t7(e);
}
-function fLe(e) {
+function gLe(e) {
return {
section: e,
path: decodeURIComponent(location.pathname),
- sections: B5.MANAGE_SECTIONS,
- menu: e ? B5.manageMenuSections() : [],
- trash: E5.trashCount
+ sections: U5.MANAGE_SECTIONS,
+ menu: e ? U5.manageMenuSections() : [],
+ trash: k5.trashCount
};
}
-function Q5(e = X5()) {
- $5();
- let t = fLe(e), n = m8();
+function t7(e = $5()) {
+ n7();
+ let t = gLe(e), n = x8();
if (n) n.render(t);
else {
- let e = Ade(t);
- e !== B5.manageHeaderSkeleton && (B5.manageHeaderSkeleton = e, B5.manageHeaderRoot().innerHTML = e);
+ let e = Ode(t);
+ e !== U5.manageHeaderSkeleton && (U5.manageHeaderSkeleton = e, U5.manageHeaderRoot().innerHTML = e);
}
- let r = UF(t)?.title || "";
- r !== B5.lastManagePageLabel && (B5.lastManagePageLabel = r, r && Qs(B5.manageHeaderRoot(), "[data-manage-title],[data-manage-lede]"));
+ let r = GF(t)?.title || "";
+ r !== U5.lastManagePageLabel && (U5.lastManagePageLabel = r, r && Qs(U5.manageHeaderRoot(), "[data-manage-title],[data-manage-lede]"));
}
-function pLe() {
- let e = B5.manageHeaderRoot();
- I8.listen(e, "click", (e) => {
- if (m8()) return;
+function _Le() {
+ let e = U5.manageHeaderRoot();
+ U8.listen(e, "click", (e) => {
+ if (x8()) return;
let t = e.target.closest?.("[data-manage]");
- if (t) e7(t.dataset.manage);
+ if (t) r7(t.dataset.manage);
else if (e.target.closest?.("[data-manage-crumb] a[href]")) {
if (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button) return;
e.preventDefault(), Q.navigatePath("/data-cleanup");
} else e.target.closest?.("[data-empty-trash]") && P7();
- }), LFe({
+ }), VFe({
root: e,
- openManage: e7,
+ openManage: r7,
openDataCleanup: () => Q.navigatePath("/data-cleanup"),
emptyTrash: P7
- }).then(() => Q5()).catch(() => {});
+ }).then(() => t7()).catch(() => {});
}
-function $5() {
+function n7() {
let e = L("#listTitle");
if (!e) return;
- let t = decodeURIComponent(location.pathname), n = !X5() && An(t) && kn[U.state] || "";
- e.hidden = !n, n && (e.textContent = n), L("#catalogPageHeading").hidden = !!X5() || !An(t) || !!n || U.jav === "1";
+ let t = decodeURIComponent(location.pathname), n = !$5() && An(t) && kn[U.state] || "";
+ e.hidden = !n, n && (e.textContent = n), L("#catalogPageHeading").hidden = !!$5() || !An(t) || !!n || U.jav === "1";
}
-function e7(e = "stats") {
+function r7(e = "stats") {
let t = Q.routePathOf("section", e);
- t ? Q.openRoutePath(t) : (U.orient = "", U.state = "ads", bu(), Q.route(XU()), U5(), h9(), N7());
+ t ? Q.openRoutePath(t) : (U.orient = "", U.state = "ads", bu(), Q.route(QU()), K5(), h9(), N7());
}
-function t7() {
+function i7() {
let e = decodeURIComponent(location.pathname);
return e === "/" ? U.jav === "1" : e.startsWith("/performers/") || e.startsWith("/studios/") ? U.jav === "1" || fu : !1;
}
-function mLe(e = t7()) {
- let t = Pj.filter(([e]) => e !== "seed");
- return e ? [Fj, ...t] : t;
+function vLe(e = i7()) {
+ let t = Ij.filter(([e]) => e !== "seed");
+ return e ? [Lj, ...t] : t;
}
-function n7() {
+function a7() {
return decodeURIComponent(location.pathname) === "/" && U.jav !== "1";
}
-function r7() {
- return bM(n7());
+function o7() {
+ return SM(a7());
}
-function hLe(e) {
- ble(e), a7(), L("#grid").hidden || Y7();
+function yLe(e) {
+ vle(e), c7(), L("#grid").hidden || Y7();
}
-function i7(e) {
- OM(e), a7(), Y7();
+function s7(e) {
+ AM(e), c7(), Y7();
}
-function a7() {
+function c7() {
document.querySelectorAll("[data-video-layout]").forEach((e) => {
- e.checked = e.value === r7();
+ e.checked = e.value === o7();
}), X.catalogFilterProps && T7({ layout: D7() });
}
-function gLe(e) {
- xle(e), a7(), Y7();
+function bLe(e) {
+ yle(e), c7(), Y7();
}
-async function o7() {
- E8(), X.mixRelatedCache.clear(), await Promise.all([s7(), N7()]);
+async function l7() {
+ N8(), X.mixRelatedCache.clear(), await Promise.all([u7(), N7()]);
}
-async function s7() {
+async function u7() {
if (Y.entityPageCurrent() && !L("#index").hidden) {
- a5({ revision: ++Y.entityPageRevision });
+ c5({ revision: ++Y.entityPageRevision });
return;
}
let e = decodeURIComponent(location.pathname);
@@ -80983,28 +81028,28 @@ async function s7() {
let t = Q.routeMeta(e);
t?.route.reload ? await t.route.reload() : await R7();
}
-function c7(e) {
- let t = decodeURIComponent(location.pathname), n = Q.routeMeta(t)?.route.nav || "", r = B5.DIRECT_MANAGE_NAV[e];
- if (r) return X5() === r;
+function d7(e) {
+ let t = decodeURIComponent(location.pathname), n = Q.routeMeta(t)?.route.nav || "", r = U5.DIRECT_MANAGE_NAV[e];
+ if (r) return $5() === r;
if (e === "manage") {
- let e = X5();
- return !!e && !Z.appSettings.sidebarOrder.some((t) => B5.DIRECT_MANAGE_NAV[t] === e);
+ let e = $5();
+ return !!e && !Z.appSettings.sidebarOrder.some((t) => U5.DIRECT_MANAGE_NAV[t] === e);
}
- return e === "jav" ? t === "/jav" || t7() : e === "shorts" ? U.orient === "竖屏" : e === "" ? t === "/" && !X5() && !U.state && !t7() && U.orient !== "竖屏" : Dn[e] ? n === e && U.orient !== "竖屏" : n ? n === e : t === "/" && U.state === e && U.orient !== "竖屏";
+ return e === "jav" ? t === "/jav" || i7() : e === "shorts" ? U.orient === "竖屏" : e === "" ? t === "/" && !$5() && !U.state && !i7() && U.orient !== "竖屏" : Dn[e] ? n === e && U.orient !== "竖屏" : n ? n === e : t === "/" && U.state === e && U.orient !== "竖屏";
}
-function l7(e) {
+function f7(e) {
let t = nm(e);
if (t === location.pathname + location.search + location.hash) return;
- if (J5(), t) {
+ if (Z5(), t) {
Q.navigatePath(t);
return;
}
- if (B5.DIRECT_MANAGE_NAV[e]) {
- e7(B5.DIRECT_MANAGE_NAV[e]);
+ if (U5.DIRECT_MANAGE_NAV[e]) {
+ r7(U5.DIRECT_MANAGE_NAV[e]);
return;
}
if (e === "manage") {
- e7();
+ r7();
return;
}
if (e === "jav") {
@@ -81018,19 +81063,19 @@ function l7(e) {
let n = Dn[e] ? null : Q.routePathOf("nav", e);
n ? Q.openRoutePath(n) : (e === "shorts" ? (U.orient = "竖屏", U.state = "") : (U.orient = "", U.state = e), bu(), Q.route(g7()), h9(), N7());
}
-function u7() {
+function p7() {
let e = decodeURIComponent(location.pathname), t = e.split("/").filter(Boolean);
- Yl && Ql !== E5.currentSelectSurface() && O5(!1, !0);
+ Yl && Ql !== k5.currentSelectSurface() && j5(!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, u5(), !i && Yl && O5(!1, !0);
+ L("#selectMode").hidden = !i, L("#density").hidden = !a, p5(), !i && Yl && j5(!1, !0);
}
-function _Le() {
+function xLe() {
let e = [...document.querySelectorAll("[data-filter-frame]")], t = e.find((e) => e.offsetParent !== null);
- (t !== B5.mobileFilterHost || location.pathname !== B5.mobileFilterPath) && (B5.mobileFilterScroll = null), B5.mobileFilterHost = t, B5.mobileFilterPath = location.pathname;
+ (t !== U5.mobileFilterHost || location.pathname !== U5.mobileFilterPath) && (U5.mobileFilterScroll = null), U5.mobileFilterHost = t, U5.mobileFilterPath = location.pathname;
let n = Math.max(0, Math.min(scrollY, document.documentElement.scrollHeight - innerHeight)), r = !!t?.querySelector(":focus-visible,input:focus,select:focus,textarea:focus,[aria-expanded=\"true\"]");
- B5.mobileFilterScroll = aLe(B5.mobileFilterScroll, n, innerWidth <= 760, r);
+ U5.mobileFilterScroll = lLe(U5.mobileFilterScroll, n, innerWidth <= 760, r);
for (let n of e) {
- let e = n === t && B5.mobileFilterScroll.free;
+ let e = n === t && U5.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);
@@ -81042,63 +81087,52 @@ function _Le() {
});
}
}
-function vLe() {
- _Le(), [".board-filter-frame", "#count"].forEach((e) => {
+function SLe() {
+ xLe(), [".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 d7() {
- B5.stickyFrame ||= I8.frame(() => {
- B5.stickyFrame = 0, vLe();
+function m7() {
+ U5.stickyFrame ||= U8.frame(() => {
+ U5.stickyFrame = 0, SLe();
});
}
-function yLe() {
+function CLe() {
$.followSidebarFilters = () => ({
provider: [...$.followProviders][0] || "",
dur_min: $.followDurMin || "",
dur_max: $.followDurMax || ""
- }), I8.handler(L("#filterBtn"), "onclick", () => q5(!L("#drawer").classList.contains("open"))), B5.SIDEBAR_ITEMS = D8, B5.MANAGE_SECTIONS = O8, B5.MANAGE_MENU_SECTIONS = k8, B5.manageMenuSections = () => QFe(cu === !0), B5.OPTIONAL_SIDEBAR_ITEMS = A8, B5.NAV_CATALOG = $Fe, B5.DIRECT_MANAGE_NAV = eIe, B5.settingsHost = () => ({
+ }), U8.handler(L("#filterBtn"), "onclick", () => X5(!L("#drawer").classList.contains("open"))), U5.SIDEBAR_ITEMS = P8, U5.MANAGE_SECTIONS = F8, U5.MANAGE_MENU_SECTIONS = I8, U5.manageMenuSections = () => nIe(cu === !0), U5.OPTIONAL_SIDEBAR_ITEMS = L8, U5.NAV_CATALOG = rIe, U5.DIRECT_MANAGE_NAV = iIe, U5.settingsHost = () => ({
selectSection: (e) => Ep(Mf(e), {
replace: !0,
state: W.navigation.location.state
}),
- closed: cLe,
+ closed: fLe,
store: Z.settingsStore,
changed: (e) => Z.settingsEffects[e]?.(),
sound: (e) => Zo(e),
- navCatalog: B5.NAV_CATALOG,
- themeOptions: hle,
- videoLayouts: mM,
- followInitialRanges: j8,
- videoLayout: () => r7(),
- setVideoLayout: gLe,
+ navCatalog: U5.NAV_CATALOG,
+ themeOptions: ple,
+ videoLayouts: gM,
+ followInitialRanges: R8,
+ videoLayout: () => o7(),
+ setVideoLayout: bLe,
censored: $7,
- setCensored: VLe,
+ setCensored: WLe,
highContrast: () => document.documentElement.classList.contains("board-high-contrast"),
- setHighContrast: HLe,
- receipt: (e) => b8.actionReceipt(e),
- failure: b8.actionFailure,
- syncRemote: (e) => lM(e, (e) => Z.settingsEffects[e]?.()),
+ setHighContrast: GLe,
+ receipt: (e) => D8.actionReceipt(e),
+ failure: D8.actionFailure,
+ syncRemote: (e) => dM(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)
- }), I8.handler(L("#settingsBtn"), "onclick", () => void Y5()), B5.lastManagePageLabel = "", B5.manageHeaderSkeleton = "", B5.manageHeaderRoot = () => L("[data-manage-header]"), window.__scrolling = !1, B5.scrollT = null, B5.stickyFrame = 0, B5.mobileFilterScroll = null, B5.mobileFilterHost = null, B5.mobileFilterPath = "", I8.listen(document, "focusin", d7), I8.listen(document, "focusout", d7), I8.listen(window, "scroll", () => {
- d7(), location.pathname === "/follow" && C9() && yu({ followScrollY: scrollY }), window.__scrolling = !0, Al(), clearTimeout(B5.scrollT), B5.scrollT = I8.delay(() => {
+ }), U8.handler(L("#settingsBtn"), "onclick", () => void Q5()), U5.lastManagePageLabel = "", U5.manageHeaderSkeleton = "", U5.manageHeaderRoot = () => L("[data-manage-header]"), window.__scrolling = !1, U5.scrollT = null, U5.stickyFrame = 0, U5.mobileFilterScroll = null, U5.mobileFilterHost = null, U5.mobileFilterPath = "", U8.listen(document, "focusin", m7), U8.listen(document, "focusout", m7), U8.listen(window, "scroll", () => {
+ m7(), location.pathname === "/follow" && C9() && yu({ followScrollY: scrollY }), window.__scrolling = !0, Al(), clearTimeout(U5.scrollT), U5.scrollT = U8.delay(() => {
window.__scrolling = !1;
}, 180);
- }, { passive: !0 }), I8.listen(window, "resize", d7, { passive: !0 }), I8.handler(L("#scrim"), "onclick", () => q5(!1));
-}
-// src/catalog-filter-skeleton.ts
-var f7 = 64, p7 = (e) => e.replace(/[&<>"]/g, (e) => ({
- "&": "&amp;",
- "<": "&lt;",
- ">": "&gt;",
- "\"": "&quot;"
-})[e]), m7 = (e) => e.repeat(f7);
-function bLe(e, t, n) {
- let r = e.map((e) => `<a href="${p7(e.href)}" data-catalog-view="${p7(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${p7(e.label)}</a>`).join(""), i = VG();
- return `<div class="peach-react"><div class="contents" data-catalog-root="" data-loading=""><div data-catalog-tiers="" aria-busy="true"${i.performers || i.studios ? "" : " hidden"}>` + (i.performers ? "<div data-catalog-tier=\"performers\" data-skeleton=\"tiers\">" + m7("<span data-catalog-placeholder=\"performer\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + "</div>" : "") + (i.studios ? "<div data-catalog-tier=\"studios\">" + m7("<span data-catalog-placeholder=\"studio\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + "</div>" : "") + `</div><div role="group" aria-label="筛选与排序" data-filter-glass="" data-glass-pane="" data-filter-frame="" data-catalog-frame="" class="sticky top-topbar z-10 mb-5.5 flex flex-col mx-4"><div role="group" aria-label="视图与标签" data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible"><div data-catalog-scroll=""><div role="group" aria-label="视图" data-catalog-views="">${r}<span data-entity-sep="" aria-hidden="true"></span></div><div data-catalog-tags=""><span data-catalog-placeholder="tag" aria-hidden="true">` + "<span></span>".repeat(f7) + `</span></div></div></div><div data-filter-row="bottom" aria-busy="true" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><span data-catalog-summary=""><span data-catalog-readout=""><span data-skeleton="count" aria-hidden="true" class="relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"></span></span>${Ts()}</span>` + (n ? r5(n.sorts, n.layout) : "") + "</div></div></div></div>";
+ }, { passive: !0 }), U8.listen(window, "resize", m7, { passive: !0 }), U8.handler(L("#scrim"), "onclick", () => X5(!1));
}
// src/application/catalog.js
var X = {
@@ -81137,43 +81171,43 @@ var X = {
junkQueueHelpers: void 0,
junkQueueActions: void 0
};
-function xLe() {
+function wLe() {
X.initialParams.has("loc") || (U.loc = h7(U.loc), bu());
}
function h7(e) {
- return UFe(e, Z.sourceOnline);
+ return qFe(e, Z.sourceOnline);
}
function g7(e = U) {
- return WFe(e);
+ return JFe(e);
}
-function SLe() {
- yu(S8(GFe(U, Z.appSettings, b8.rollSeed)));
+function TLe() {
+ yu(k8(YFe(U, Z.appSettings, D8.rollSeed)));
}
function _7(e = null) {
- SLe(), e && (Object.assign(U, e), bu()), Q.route(e ? g7() : "/"), X.clearSearchField(), a9(!1), h9(), N7();
+ TLe(), e && (Object.assign(U, e), bu()), Q.route(e ? g7() : "/"), X.clearSearchField(), a9(!1), h9(), N7();
}
-function CLe(e, t = null) {
+function ELe(e, t = null) {
let n = e.id;
- !e.medium || e.medium === "video" ? l9(n, !0, null, t) : e.medium === "image" && e.location !== "online" ? window.open("/photo?id=" + n, "_blank", "noopener") : k5(n);
+ !e.medium || e.medium === "video" ? l9(n, !0, null, t) : e.medium === "image" && e.location !== "online" ? window.open("/photo?id=" + n, "_blank", "noopener") : M5(n);
}
function v7(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 wLe(e, t) {
- n8()?.miniplayerTakesCard(e) ? n8().miniplayerPlay(e.id) : y7(e, t);
+function DLe(e, t) {
+ l8()?.miniplayerTakesCard(e) ? l8().miniplayerPlay(e.id) : y7(e, t);
}
function y7(e, t) {
- e.edition_group ? YLe(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? XLe(e.part_group.seed_id, e.id, !0, t) : l9(e.id, !0, null, t);
+ e.edition_group ? QLe(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? $Le(e.part_group.seed_id, e.id, !0, t) : l9(e.id, !0, null, t);
}
-async function TLe(e, t) {
+async function OLe(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), b8.actionReceipt(n.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
+ e.watch_later = n.watch_later, t(!!n.watch_later), D8.actionReceipt(n.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
let n = await wn("/api/watch-later", {
method: "POST",
body: JSON.stringify({ id: e.id })
@@ -81181,10 +81215,10 @@ async function TLe(e, t) {
e.watch_later = n.watch_later, t(!!n.watch_later);
} });
} catch (e) {
- b8.actionFailure("更新稍后看", e);
+ D8.actionFailure("更新稍后看", e);
}
}
-async function ELe(e, t) {
+async function kLe(e, t) {
try {
await wn("/api/batch", {
method: "POST",
@@ -81194,7 +81228,7 @@ async function ELe(e, t) {
})
}), await R7();
let n = t === "restore" ? "dispose" : "restore";
- b8.actionReceipt(t === "restore" ? "已还原" : "已移入回收站", { undo: async () => {
+ D8.actionReceipt(t === "restore" ? "已还原" : "已移入回收站", { undo: async () => {
await wn("/api/batch", {
method: "POST",
body: JSON.stringify({
@@ -81205,11 +81239,11 @@ async function ELe(e, t) {
}), await R7();
} });
} catch (e) {
- throw b8.actionFailure("操作", e), e;
+ throw D8.actionFailure("操作", e), e;
}
}
-async function DLe(e, t, n, r) {
- let i = Number(e.rating) || 0, a = xP(i, t), o = async (t, r) => {
+async function ALe(e, t, n, r) {
+ let i = Number(e.rating) || 0, a = CP(i, t), o = async (t, r) => {
let i = (await wn("/api/feedback", {
method: "POST",
body: JSON.stringify({
@@ -81223,14 +81257,14 @@ async function DLe(e, t, n, r) {
};
try {
let e = await o(a, r);
- b8.actionReceipt(e ? `已评 ${bP(e)} 星` : "已取消评分", { undo: () => o(i) });
+ D8.actionReceipt(e ? `已评 ${SP(e)} 星` : "已取消评分", { undo: () => o(i) });
} catch (e) {
- throw r?.aborted || b8.actionFailure("评分", e), e;
+ throw r?.aborted || D8.actionFailure("评分", e), e;
}
}
async function b7(e) {
let t = new URLSearchParams();
- if (t7() && t.set("jav", "1"), e.type === "entity" ? (t.set("scope_kind", e.kind), t.set("scope_name", e.name)) : e.type === "item" && t.set("id", String(e.id)), e.type === "home" && U.state && t.set("state", U.state), e.type !== "item") {
+ if (i7() && t.set("jav", "1"), e.type === "entity" ? (t.set("scope_kind", e.kind), t.set("scope_name", e.name)) : e.type === "item" && t.set("id", String(e.id)), e.type === "home" && U.state && t.set("state", U.state), e.type !== "item") {
let e = Y.activeFilterState();
[
"loc",
@@ -81252,33 +81286,33 @@ async function b7(e) {
e[n] && t.set(n, e[n]);
});
}
- return XFe(t.toString(), X.topsQueryParams(e).toString());
+ return eIe(t.toString(), X.topsQueryParams(e).toString());
}
function x7(e) {
- o5().type !== "entity" && T7({ tags: k7(e) }), m9({ filters: { ...e } }), L7();
+ l5().type !== "entity" && T7({ tags: k7(e) }), m9({ filters: { ...e } }), L7();
}
async function S7(e) {
let t = ++X.facetCountsSeq, [n] = await b7(e);
t === X.facetCountsSeq && (e.type === "home" && (n9.facets = n), m9({ latest: Q7(n, e) }));
}
function C7(e) {
- let t = o5();
+ let t = l5();
if (t.type === "entity") {
let n = { ...t.filters };
- e(n), c5(t.kind, t.name, n), x7(n), S7(o5());
+ e(n), d5(t.kind, t.name, n), x7(n), S7(l5());
} else if (t.type === "item") {
let t = Y.cloneBarsContext(Kl);
if (a9(!1), yu({ detailReturnBarsContext: null }), t && t.type === "entity") {
- e(t.filters), c5(t.kind, t.name, t.filters) ? N7() : yu({ pageOpens: uu + 1 });
+ e(t.filters), d5(t.kind, t.name, t.filters) ? N7() : yu({ pageOpens: uu + 1 });
return;
}
e(U), yu({ barsContext: {
type: "home",
filters: U
- } }), Q.route(g7()), U5(), N7();
+ } }), Q.route(g7()), K5(), N7();
} else e(U), bu(), Q.route(g7()), x7(U), S7(Gl);
}
-function OLe() {
+function jLe() {
return {
tiers: null,
tiersPending: !1,
@@ -81314,9 +81348,9 @@ function T7(e) {
...e,
offscreen: n
}, X.catalogFilterProps = {
- ...X.catalogFilterProps || OLe(),
+ ...X.catalogFilterProps || jLe(),
...e
- }, !X.catalogFilterMounting && (cp(t) ? mp(t, e) : (!t.firstChild && !n && (t.innerHTML = bLe(X.catalogViews(), X.catalogFilterProps.state, O7()), uc(t)), X.catalogFilterMounting = fp("catalog-filter", X.catalogFilterProps, {
+ }, !X.catalogFilterMounting && (cp(t) ? mp(t, e) : (!t.firstChild && !n && (t.innerHTML = cje(X.catalogViews(), X.catalogFilterProps.state, O7()), uc(t)), X.catalogFilterMounting = fp("catalog-filter", X.catalogFilterProps, {
container: t,
isCurrent: () => !0
}).then(() => mp(t, X.catalogFilterProps)).finally(() => {
@@ -81329,7 +81363,7 @@ function E7() {
let e = new URL(g7(), 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) => v5(e, t),
+ openEntity: (e, t) => x5(e, t),
setView: (e) => {
U.state = e, bu(), T7({ state: e }), Q.route(g7()), N7();
},
@@ -81341,37 +81375,37 @@ function E7() {
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
- let t = Vj(e, U.sort, U.dir);
+ let t = Uj(e, U.sort, U.dir);
t && (U.sort = t.sort, U.dir = t.dir, bu(), Z7());
},
- reshuffle: () => BLe(),
+ reshuffle: () => ULe(),
setLayout: (e) => {
- t7() ? i7(e) : hLe(e);
+ i7() ? s7(e) : yLe(e);
},
moreTops: async (e) => {
let t = X.catalogTopsPages;
if (!t) return [];
- let n = (await ZFe(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];
+ let n = (await tIe(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];
return e === "performers" ? n.map(A7) : n.map(j7);
}
};
}
function D7() {
- return t7() ? {
+ return i7() ? {
name: "jav-layout",
label: "JAV 卡片版式",
- value: yM(),
- options: mM
- } : n7() ? {
+ value: xM(),
+ options: gM
+ } : a7() ? {
name: "home-layout",
label: "首页卡片版式",
- value: r7(),
- options: mM
+ value: o7(),
+ options: gM
} : null;
}
function O7() {
return {
- sorts: s5(U.sort, U.dir),
+ sorts: u5(U.sort, U.dir),
layout: D7(),
state: U.state || "",
trash: U.state === "trash"
@@ -81404,7 +81438,7 @@ function j7(e) {
logo: e.has_logo ? fo(e.k, "icon", e.logo_version) : ""
};
}
-function kLe(e, t) {
+function MLe(e, t) {
X.barsPendingSeq = t, X.catalogFilterProps?.tiers ? T7({
tiersPending: !0,
state: e.state || ""
@@ -81420,14 +81454,14 @@ function M7(e) {
async function N7() {
let e = ++X.barsRequestSeq;
if (m9(), !Hl(location.pathname) || Gl.type === "item") return;
- let t = o5(), n = Y.activeFilterState(), r = JSON.stringify([
+ let t = l5(), n = Y.activeFilterState(), r = JSON.stringify([
t,
n,
U.state || "",
U.seed || "",
- t7()
+ i7()
]);
- kLe(n, e);
+ MLe(n, e);
let i;
try {
i = await b7(t);
@@ -81441,8 +81475,8 @@ async function N7() {
}
let s = r + "\n" + JSON.stringify([a, o]);
if (s === X.barsRendered) {
- X.barsPendingSeq = 0, T7({ tiersPending: !1 }), B5.sidebarCatalog && m9({
- content: B5.sidebarCatalog,
+ X.barsPendingSeq = 0, T7({ tiersPending: !1 }), U5.sidebarCatalog && m9({
+ content: U5.sidebarCatalog,
filters: { ...n }
});
return;
@@ -81450,13 +81484,13 @@ async function N7() {
X.barsRendered = s, t.type === "home" && (n9.facets = a);
let c = a.tags || [];
Ya(o.performers), Ya(o.studios);
- let l = t.type === "home" && !t7() && !U.state && !U.q && !a.locations.some((e) => e.n > 0);
+ let l = t.type === "home" && !i7() && !U.state && !U.q && !a.locations.some((e) => e.n > 0);
X.catalogTopsPages = {
context: t,
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 = b8.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 = D8.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),
@@ -81473,21 +81507,21 @@ async function N7() {
tagFirst: f.length + m.length,
views: X.catalogViews(),
state: n.state || ""
- }), L7(), B5.sidebarCatalog = {
+ }), L7(), U5.sidebarCatalog = {
kind: "catalog",
- key: String(++B5.sidebarContentSeq),
+ key: String(++U5.sidebarContentSeq),
facets: Q7(a, t)
}, m9({
- content: B5.sidebarCatalog,
+ content: U5.sidebarCatalog,
filters: { ...n },
latest: null
});
}
-function ALe(e, t) {
- n9.total = e, U.state === "trash" && (E5.trashCount = {
+function NLe(e, t) {
+ n9.total = e, U.state === "trash" && (k5.trashCount = {
total: n9.total,
shown: t
- }), Z5(), T7({ count: {
+ }), e7(), T7({ count: {
total: n9.total,
shown: t
} });
@@ -81502,7 +81536,7 @@ function P7() {
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"));
- b8.actionReceipt(`已永久删除 ${e.purged} 项`);
+ D8.actionReceipt(`已永久删除 ${e.purged} 项`);
} finally {
await R7();
}
@@ -81552,13 +81586,13 @@ async function R7() {
filters: U
},
detailReturnBarsContext: null
- }), a9(!1), U.state === "ads") return NLe(e);
- X.controller.page === "/junk-files" && B7(), I5(), U5();
+ }), a9(!1), U.state === "ads") return ILe(e);
+ X.controller.page === "/junk-files" && B7(), z5(), K5();
let t = V7(e);
- if (X8(location.pathname) && U.browse !== "folders") {
- if (await F5.entityShapesReady, !Q.surfaceCurrent(e)) return;
- _Ie();
- } else Z8();
+ if (r5(location.pathname) && U.browse !== "folders") {
+ if (await R5.entityShapesReady, !Q.surfaceCurrent(e)) return;
+ xIe();
+ } else i5();
return L7(), L("#count").classList.remove("manage-static", "junkcount"), t;
}
function z7(e) {
@@ -81569,10 +81603,10 @@ function B7() {
Al(e), hp(e), X.controller.clear(), e.innerHTML = "";
}
function V7(e) {
- return G7("/", MLe, e, { place: uRe });
+ return G7("/", FLe, e, { place: pRe });
}
-function jLe(e) {
- return G7("/junk-files", FLe, e);
+function PLe(e) {
+ return G7("/junk-files", RLe, e);
}
function H7() {
return !!sp(L("#grid"));
@@ -81599,29 +81633,29 @@ function G7(e, t, n, r = {}) {
}), a.settled;
}
function K7() {
- let e = n7();
- return EM({
- active: t7() || e,
+ let e = a7();
+ return OM({
+ active: i7() || e,
home: e,
portrait: U.orient === "竖屏"
});
}
function q7(e = "正在读取作品") {
- return eY(e, J7());
+ return nY(e, J7());
}
function J7() {
- return U ? DM(K7()) : 16 / 9;
+ return U ? kM(K7()) : 16 / 9;
}
function Y7() {
U7() && (Al(L("#grid")), W7({
layout: K7(),
seekSeconds: Z.appSettings.seekSeconds
- })), Y.entityPageCurrent() && (Al(L("#index [data-entity-hero]")), a5({
+ })), Y.entityPageCurrent() && (Al(L("#index [data-entity-hero]")), c5({
layout: K7(),
seekSeconds: Z.appSettings.seekSeconds
}));
}
-function MLe() {
+function FLe() {
let e = decodeURIComponent(location.pathname), t = An(e), n = U.state === "trash";
return {
mode: "catalog",
@@ -81642,23 +81676,23 @@ function MLe() {
groupCollapse: Z.appSettings.groupCollapse,
excludeVertical: t && e !== "/wall" && !U.q && !U.orient && U.browse !== "folders" || U.jav === "1",
mix: t && e !== "/wall" && !n && U.browse !== "folders",
- shorts: t && e !== "/wall" && !t7() && U.orient !== "竖屏" && !n && U.browse !== "folders",
+ shorts: t && e !== "/wall" && !i7() && U.orient !== "竖屏" && !n && U.browse !== "folders",
countRow: L("#count"),
- onCount: ALe,
+ onCount: NLe,
onCountFailed: () => T7({ count: !1 }),
- emptyHtml: ({ trash: e, libraryEmpty: t }) => e ? Z.emptyState("trash", "回收站是空的", "删掉的内容会先到这里;确认不再需要后再清空。") : KK({
- jav: t7() && !t,
+ emptyHtml: ({ trash: e, libraryEmpty: t }) => e ? Z.emptyState("trash", "回收站是空的", "删掉的内容会先到这里;确认不再需要后再清空。") : JK({
+ jav: i7() && !t,
configurable: cu,
filtered: !t
}),
canLoadMore: () => L("#stats").hidden && L("#index").hidden
};
}
-function NLe(e) {
+function ILe(e) {
let t = L("#count");
- return X.controller.page === "/junk-files" && H7() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (B7(), I5("正在读取垃圾文件")), U5(), L7(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), jLe(e);
+ return X.controller.page === "/junk-files" && H7() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (B7(), z5("正在读取垃圾文件")), K5(), L7(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), PLe(e);
}
-async function PLe(e, t) {
+async function LLe(e, t) {
let n = [e.id], r = t === "dispose", i = t === "reconsider-junk";
try {
await wn("/api/batch", {
@@ -81670,7 +81704,7 @@ async function PLe(e, t) {
})
}), await R7();
let e = r ? "restore" : i ? "dismiss-junk" : "reconsider-junk";
- b8.actionReceipt(r ? "已移入回收站" : i ? "已重新加入垃圾判断" : "已标记为不是垃圾", { undo: async () => {
+ D8.actionReceipt(r ? "已移入回收站" : i ? "已重新加入垃圾判断" : "已标记为不是垃圾", { undo: async () => {
await wn("/api/batch", {
method: "POST",
body: JSON.stringify({
@@ -81680,12 +81714,12 @@ async function PLe(e, t) {
}), await R7();
} });
} catch (e) {
- throw b8.actionFailure("操作", e), e;
+ throw D8.actionFailure("操作", e), e;
}
}
-function FLe() {
+function RLe() {
return {
- ...YU(location.search),
+ ...ZU(location.search),
helpers: X.junkQueueHelpers,
actions: X.junkQueueActions,
batchSize: Z.appSettings.batchSize,
@@ -81694,15 +81728,15 @@ function FLe() {
selected: new Set(ql),
countRow: L("#count"),
settled: z7,
- skeletonHtml: () => w2("正在读取垃圾文件", {
+ skeletonHtml: () => j2("正在读取垃圾文件", {
cards: !0,
className: "catalog-skeleton postercard-skeleton"
}),
canLoadMore: () => L("#stats").hidden && L("#index").hidden
};
}
-function ILe() {
- X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => x8(e, t, Z.appSettings, n), yu(S8(HFe(location, Z.appSettings, b8.rollSeed))), X.searchValueSnapshot = {
+function zLe() {
+ X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => O8(e, t, Z.appSettings, n), yu(k8(KFe(location, Z.appSettings, D8.rollSeed))), X.searchValueSnapshot = {
text: "",
scrollLeft: 0
}, X.cancelSearchDissolve = () => {}, X.rememberSearchValue = (e = L("#q")) => {
@@ -81723,44 +81757,44 @@ function ILe() {
};
};
}
-function LLe() {
- I8.handler(L("#wallBtn"), "onclick", () => {
- O5(!1, !0);
- let e = o5(), t = {
+function BLe() {
+ U8.handler(L("#wallBtn"), "onclick", () => {
+ j5(!1, !0);
+ let e = l5(), t = {
...Y.activeFilterState(),
- jav: t7() ? "1" : ""
+ jav: i7() ? "1" : ""
};
- e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(Bbe(void 0, t));
+ e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(Vbe(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(",");
}, X.gridHelpers = {
badgeHtml: (e, t) => Z.srcBadge(e, t),
- titleHtml: (e, t) => nL(e, t),
- displayName: (e, t) => tL(e, t),
+ titleHtml: (e, t) => iL(e, t),
+ displayName: (e, t) => rL(e, t),
tagLabel: (e) => Pl(e)
}, X.gridActions = {
wallPlayer: async (e, t, n) => {
- let r = await t8(n9.stageHost);
+ let r = await c8(n9.stageHost);
return n.throwIfAborted(), r.mountWallPlayer(e, t, n);
},
wallDetails: y7,
- open: (e, t) => wLe(e, t),
- openResource: (e, t) => n8()?.miniplayerTakesCard(e) ? n8().miniplayerPlay(e.id) : CLe(e, t),
- openShort: (e) => n8()?.miniplayerTakesCard(e) ? n8().miniplayerPlay(e.id) : f9(e.id),
+ open: (e, t) => DLe(e, t),
+ openResource: (e, t) => l8()?.miniplayerTakesCard(e) ? l8().miniplayerPlay(e.id) : ELe(e, t),
+ openShort: (e) => l8()?.miniplayerTakesCard(e) ? l8().miniplayerPlay(e.id) : f9(e.id),
openShorts: () => f9(),
- openMix: (e, t) => JLe(e, e, !0, t),
- openEntity: (e, t) => v5(e, t),
+ openMix: (e, t) => ZLe(e, e, !0, t),
+ openEntity: (e, t) => x5(e, t),
openUnowned: () => _7({ owner: "none" }),
toggleTag: (e) => {
C7((t) => {
t.tag = X.tagPressed(t.tag, e) ? "" : e;
});
},
- toggleSelection: (e, t) => k5(e, t),
- watchLater: (e, t) => TLe(e, t),
- rate: (e, t, n, r) => DLe(e, t, n, r),
- resourceOperation: (e, t) => ELe(e, t),
+ toggleSelection: (e, t) => M5(e, t),
+ watchLater: (e, t) => OLe(e, t),
+ rate: (e, t, n, r) => ALe(e, t, n, r),
+ resourceOperation: (e, t) => kLe(e, t),
mixRelated: (e) => v7(e),
canFlip: () => !Yl && !$7() && !window.__scrolling && !X.reduceMotion()
}, X.topsQueryParams = (e, t = 0) => {
@@ -81768,7 +81802,7 @@ function LLe() {
n: "60",
seed: U.seed || ""
});
- return t && n.set("page", String(t)), t7() && n.set("jav", "1"), e.type === "home" && U.state && n.set("state", U.state), e.type === "home" && U.folder && (n.set("folder", U.folder), U.folder_recursive && n.set("folder_recursive", U.folder_recursive)), n;
+ return t && n.set("page", String(t)), i7() && n.set("jav", "1"), e.type === "home" && U.state && n.set("state", U.state), e.type === "home" && U.folder && (n.set("folder", U.folder), U.folder_recursive && n.set("folder_recursive", U.folder_recursive)), n;
}, X.facetCountsSeq = 0, X.VIEW_PILLS = [
{
k: "",
@@ -81789,7 +81823,7 @@ function LLe() {
], X.catalogViews = () => X.VIEW_PILLS.map((e) => ({
...e,
href: e.k ? Dn[e.k] : "/"
- })), X.TAGS_FIRST = 26, I8.listen(L("#catalogFilter"), "click", (e) => {
+ })), X.TAGS_FIRST = 26, U8.listen(L("#catalogFilter"), "click", (e) => {
let t = e.target.closest?.("[data-catalog-view]");
t && !e.defaultPrevented && (e.preventDefault(), E7().setView(t.dataset.catalogView));
}), X.catalogOnScreen = () => L("#index").hidden && L("#stats").hidden, X.COMBO_LABELS = {
@@ -81800,27 +81834,27 @@ function LLe() {
X.catalogFilterProps && T7({ comboHidden: !0 });
};
}
-function RLe() {
+function VLe() {
X.junkQueueHelpers = { badgeHtml: (e, t) => Z.srcBadge(e, t) }, X.junkQueueActions = {
navigate: (e) => {
- Yl && O5(!1, !0), Q.route(e);
+ Yl && j5(!1, !0), Q.route(e);
},
- toggleSelection: (e, t) => k5(e, t),
+ toggleSelection: (e, t) => M5(e, t),
open: (e, t) => e.junk_kind === "image" ? window.open("/photo?id=" + e.id, "_blank", "noopener") : l9(e.id, !0, null, t),
reveal: async (e) => {
try {
return await wn("/api/reveal", {
method: "POST",
body: JSON.stringify({ id: e.id })
- }), b8.toast({ text: "已在资源管理器中显示" }), "";
+ }), D8.toast({ text: "已在资源管理器中显示" }), "";
} catch (e) {
return Y.sourceHint(e.message);
}
},
- operate: (e, t) => PLe(e, t)
+ operate: (e, t) => LLe(e, t)
};
}
-X.controller = new KFe();
+X.controller = new XFe();
// src/application/preferences.js
var Z = {
sourceOnline: void 0,
@@ -81844,7 +81878,7 @@ var Z = {
CENSOR_KEY: void 0
};
async function X7() {
- let e = I8;
+ let e = U8;
try {
let t = await xr(e.signal);
if (!e.isActive) return Z.sourceOnline;
@@ -81854,7 +81888,7 @@ async function X7() {
if (!e.isActive) return Z.sourceOnline;
Z.sourceOnline = {}, Z.sourceProblems = {};
}
- return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), xLe(), Z.sourceOnline;
+ return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), wLe(), Z.sourceOnline;
}
function Z7() {
let e = Q.surfacePath();
@@ -81865,7 +81899,7 @@ function Z7() {
state: W.navigation.location.state
}), t;
}
-function zLe(e) {
+function HLe(e) {
if (e === "local") return {
kind: "glyph",
name: "hard-drive"
@@ -81897,7 +81931,7 @@ function Q7(e, t) {
value: e.k,
label: tr[e.k] || e.k,
n: e.n ?? null,
- dot: zLe(e.k),
+ dot: HLe(e.k),
...Z.sourceOffline(e.k) ? { offline: Z.OFFLINE_HINT } : {}
})),
regions: n(e.regions),
@@ -81910,19 +81944,19 @@ function Q7(e, t) {
duration: !!e.stats?.duration
};
}
-async function BLe(e = !1) {
+async function ULe(e = !1) {
if (e && (document.hidden || !An(decodeURIComponent(location.pathname)) || n9.stageOpen() || n9.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") {
- x5();
+ w5();
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 = b8.rollSeed(), bu(), E8(), T7({ refreshing: !0 });
+ U.sort = "seed", U.dir = "", U.seed = D8.rollSeed(), bu(), N8(), T7({ refreshing: !0 });
try {
rm();
let e = Z7();
@@ -81942,47 +81976,47 @@ function $7() {
function e9(e) {
document.body.classList.toggle("censor", e), Z.settingsStore.notify();
}
-function VLe(e) {
+function WLe(e) {
localStorage.setItem(Z.CENSOR_KEY, e ? "1" : "0"), e9(e), e && Al();
}
-function HLe(e) {
+function GLe(e) {
localStorage.setItem("peach.high-contrast", String(e)), document.documentElement.classList.toggle("board-high-contrast", e), Z.settingsStore.notify();
}
function t9(e) {
return Dc(e, { drag: !0 });
}
-function ULe() {
+function KLe() {
["#nrow", "#count"].forEach((e) => t9(L(e))), document.querySelectorAll(".tier,.srow").forEach(t9);
}
-function WLe() {
+function qLe() {
let e = new URLSearchParams(location.search).get("id");
return /^\d+$/.test(e || "") ? Number(e) : void 0;
}
-function GLe() {
+function JLe() {
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 = cM(), 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(), fM(), vle(), LM(), BM(), VM(), Z.catalogLoadWaiters = [], Z.nextCatalogLoad = () => new Promise((e) => Z.catalogLoadWaiters.push(e)), Z.handOff = (e) => (Z.catalogLoadWaiters.splice(0).forEach((t) => t(e)), e), Z.settingsEffects = {
+ }, Z.offlineReason = (e) => Z.sourceProblems[e] || Z.OFFLINE_REASON[e] || "无法读取这个来源的媒体目录,请检查目录权限及挂载状态。", Z.settingsStore = uM(), Z.appSettings = Z.settingsStore.value, Xt(Z.appSettings.performerNameLanguage), Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), Xo(Z.appSettings.uiSounds), ns(), mM(), gle(), zM(), HM(), UM(), Z.catalogLoadWaiters = [], Z.nextCatalogLoad = () => new Promise((e) => Z.catalogLoadWaiters.push(e)), Z.handOff = (e) => (Z.catalogLoadWaiters.splice(0).forEach((t) => t(e)), e), Z.settingsEffects = {
performerNameLanguage: () => {
- Xt(Z.appSettings.performerNameLanguage), F5.syncPageTitle(location.href), X.barsRendered = "", N7();
+ Xt(Z.appSettings.performerNameLanguage), R5.syncPageTitle(location.href), X.barsRendered = "", N7();
},
- theme: () => fM(),
+ theme: () => mM(),
uiSounds: () => {
Xo(Z.appSettings.uiSounds), Z.appSettings.uiSounds && Zo("toggle-on");
},
- glowFrame: () => zM(),
+ glowFrame: () => VM(),
glow: () => {
- zM(), BM();
+ VM(), HM();
},
batchSize: () => {
location.pathname === "/" && R7();
},
defaultSort: () => {
- U.sort = Z.appSettings.defaultSort, U.dir = Hj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), bu(), location.pathname === "/" && Z7();
+ U.sort = Z.appSettings.defaultSort, U.dir = Wj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), bu(), location.pathname === "/" && Z7();
},
sortDirection: () => {
- U.dir = Hj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), bu(), location.pathname === "/" && Z7();
+ U.dir = Wj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), bu(), location.pathname === "/" && Z7();
},
hoverDelay: () => {
Z.appSettings.hoverDelaySeconds || document.querySelectorAll("[data-previewing],[data-longhover]").forEach((e) => {
@@ -81990,15 +82024,15 @@ function GLe() {
}), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`);
},
seekSeconds: () => Y7(),
- groupCollapse: () => s7(),
- feedAutoScroll: () => vIe(),
- feedLimit: () => Q8(),
- feedCompilations: () => Q8(),
+ groupCollapse: () => u7(),
+ feedAutoScroll: () => SIe(),
+ feedLimit: () => a5(),
+ feedCompilations: () => a5(),
miniplayer: () => {
- Z.appSettings.miniplayer || n8()?.closeMiniplayer();
+ Z.appSettings.miniplayer || l8()?.closeMiniplayer();
},
javImage: () => {
- io(document, Z.appSettings.javImage), Y7(), document.querySelectorAll("img[data-jav-image].cover").forEach(ll), qLe();
+ io(document, Z.appSettings.javImage), Y7(), document.querySelectorAll("img[data-jav-image].cover").forEach(ll), XLe();
},
searchHistoryLimit: () => mp(L("#searchMenu"), { historyLimit: Z.appSettings.searchHistoryLimit })
}, Z.syncGlassOptics = () => {}, Z.placeSidebarHead = () => {}, Z.SRCICON = {
@@ -82009,7 +82043,7 @@ function GLe() {
return `<span class="${n || "src"} ${t === "metered" ? "metered" : "free"}" title="${z(r)}" aria-label="${z(r)}">` + (Z.SRCICON[e] || "") + "</span>";
}, Z.emptyState = Us;
}
-function KLe() {
+function YLe() {
Z.CENSOR_KEY = "peach-censor", e9(localStorage.getItem(Z.CENSOR_KEY) === "1");
}
// src/application/media.js
@@ -82032,10 +82066,10 @@ function r9() {
} : null;
}
function i9() {
- return n8()?.exit() || Promise.resolve();
+ return l8()?.exit() || Promise.resolve();
}
function a9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null } = {}) {
- Q.queueOpenRequest !== r && g9(), n8()?.dispose({ miniplayer: n }), yu({
+ Q.queueOpenRequest !== r && g9(), l8()?.dispose({ miniplayer: n }), yu({
activeQueue: null,
pendingQueueRoute: null,
presentedItem: null
@@ -82043,10 +82077,10 @@ function a9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null
detailOriginAnchor: null,
detailOriginAbove: !1,
detailReturnNeedsRestore: !1
- }), d7(), e && Q.route($l || "/");
+ }), m7(), e && Q.route($l || "/");
}
-function qLe() {
- n8()?.repaintPoster();
+function XLe() {
+ l8()?.repaintPoster();
}
function o9(e, t, n, r, i = null, a = {}) {
t = +t;
@@ -82070,13 +82104,13 @@ function o9(e, t, n, r, i = null, a = {}) {
Q.requestedQueue = () => l9(n == null ? null : +n, !1, s, i, !0, e), yu({ queueOpens: du + 1 });
} else return l9(n == null ? null : +n, !1, s, i, r);
}
-function JLe(e, t = e, n = !0, r = null) {
+function ZLe(e, t = e, n = !0, r = null) {
return o9("mix", e, t, n, r);
}
-function YLe(e, t = e, n = !0, r = null) {
+function QLe(e, t = e, n = !0, r = null) {
return o9("editions", e, t, n, r);
}
-function XLe(e, t = e, n = !0, r = null) {
+function $Le(e, t = e, n = !0, r = null) {
return o9("parts", e, t, n, r);
}
function s9(e, t = null, n = !0) {
@@ -82092,8 +82126,8 @@ async function l9(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 = c9(), l = nu || !t && !c, u = Gl.type === "item" ? Kl : Y.cloneBarsContext(o5());
- t ? yu({ detailReturnPath: location.pathname + location.search }) : i || yu({ detailReturnPath: Gf() || $l }), t && Hf(), n8()?.showing() !== "item" && a9(!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 = c9(), l = nu || !t && !c, u = Gl.type === "item" ? Kl : Y.cloneBarsContext(l5());
+ t ? yu({ detailReturnPath: location.pathname + location.search }) : i || yu({ detailReturnPath: Gf() || $l }), t && Hf(), l8()?.showing() !== "item" && a9(!1, !0, {
miniplayer: !1,
preserveQueueRequest: a
}), yu({
@@ -82105,7 +82139,7 @@ async function l9(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 t8(n9.stageHost);
+ let d = await c8(n9.stageHost);
if (a?.cancelled) return;
let f = a ? {
...n9.itemDetailActions,
@@ -82132,27 +82166,27 @@ async function l9(e, t = !0, n = null, r = null, i = !1, a = null) {
selected: new Set(ql),
seekSeconds: Z.appSettings.seekSeconds,
resume: t || e == null ? null : r9()
- }), d7();
+ }), m7();
}
async function u9() {
let e = Y.cloneBarsContext(Kl), t = $l || "/", n = nu;
await i9(), a9(!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 }) : (N7(), location.pathname === "/playlists" && x5()));
+ } }), n && Q.managedPagePath(new URL(t, location.href).pathname) ? Q.navigatePath(t) : (Q.route(t), n ? yu({ pageOpens: uu + 1 }) : (N7(), location.pathname === "/playlists" && w5()));
}
async function d9(e, t = !0) {
if (t) {
yu({ detailReturnPath: location.pathname + location.search }), _9("/works/" + encodeURIComponent(e), "jav", () => d9(e, !1));
return;
}
- let n = W.navigation.seq, r = Y.cloneBarsContext(o5()), i = !c9(), a = Gf() || (i ? "/jav?tab=discover" : $l) || "/jav?tab=discover";
- n8()?.showing() !== "jav" && a9(!1, !0, { miniplayer: !1 }), yu({
+ let n = W.navigation.seq, r = Y.cloneBarsContext(l5()), i = !c9(), a = Gf() || (i ? "/jav?tab=discover" : $l) || "/jav?tab=discover";
+ l8()?.showing() !== "jav" && a9(!1, !0, { miniplayer: !1 }), yu({
detailReturnPath: a,
detailReturnBarsContext: r,
detailReturnNeedsRestore: i
}), Al();
- let [o, s] = await Promise.all([t8(n9.stageHost), B("/healthz")]);
+ let [o, s] = await Promise.all([c8(n9.stageHost), B("/healthz")]);
W.navigation.seq === n && (await o.open({
kind: "jav",
code: e,
@@ -82169,19 +82203,19 @@ async function d9(e, t = !0) {
openTag: (e) => C7((t) => {
t.tag = e;
}),
- receipt: (e) => b8.toast({ text: e })
+ receipt: (e) => D8.toast({ text: e })
}
- }), d7());
+ }), m7());
}
async function f9(e = null, t = !0) {
- t ? (n9.requestedImmerseId = e, Q.route("/immerse")) : (n8()?.closeMiniplayer(), await (await PFe(n9.immerseHost)).open(e));
+ t ? (n9.requestedImmerseId = e, Q.route("/immerse")) : (l8()?.closeMiniplayer(), await (await RFe(n9.immerseHost)).open(e));
}
-function ZLe() {
+function eRe() {
n9.total = 0, n9.facets = null, n9.stageHost = {
player: {
settings: () => Z.appSettings,
saveSettings: () => Z.saveSettings(),
- toast: (e, t) => b8.toast({ text: e }, t),
+ toast: (e, t) => D8.toast({ text: e }, t),
loadSourceStatus: () => X7(),
offlineReason: (e) => Z.offlineReason(e)
},
@@ -82190,20 +82224,20 @@ function ZLe() {
e === "follow" ? E9(t, !0, n) : l9(t, !0);
},
openItem: (e) => void l9(e)
- }, n9.stageOpen = () => !!n8()?.isOpen();
+ }, n9.stageOpen = () => !!l8()?.isOpen();
}
-function QLe() {
+function tRe() {
n9.itemDetailHelpers = {
badgeHtml: (e, t, n) => Z.srcBadge(e, t, n),
- titleHtml: (e) => nL(e),
- displayName: (e) => tL(e),
+ titleHtml: (e) => iL(e),
+ displayName: (e) => rL(e),
javImage: () => Z.appSettings.javImage,
tagLabel: (e) => Pl(e),
isDurationTag: (e) => ir.has(e),
tagCandidates: () => n9.facets && n9.facets.tags || [],
sourceOffline: (e) => Z.sourceOffline(e),
offlineReason: (e) => Z.offlineReason(e),
- relatedSkeletonHtml: () => w2("正在读取推荐", {
+ relatedSkeletonHtml: () => j2("正在读取推荐", {
cards: !0,
className: "related-skeleton"
}),
@@ -82226,7 +82260,7 @@ function QLe() {
e.kind === "follow" ? (Q.queueOpenRequest = null, yu({
pendingQueueRoute: null,
followDetailReturnPath: $l || "/"
- }), Q.route(`/posts/${e.id}`, !t, Kf("follow")), E9(e.id, !1, null, !0)) : e.kind === "item" ? l9(e.id, !0) : e.kind === "playlists" ? t || location.pathname !== "/playlists" ? y9("/playlists") : x5() : a9(!1);
+ }), Q.route(`/posts/${e.id}`, !t, Kf("follow")), E9(e.id, !1, null, !0)) : e.kind === "item" ? l9(e.id, !0) : e.kind === "playlists" ? t || location.pathname !== "/playlists" ? y9("/playlists") : w5() : a9(!1);
},
openQueueItem: (e, t, n = !0) => void o9(e.kind, e.kind === "playlist" ? e.playlistId : e.seedId, t, n, null, { autoplay: e.autoplay }),
reopen: () => {
@@ -82239,37 +82273,37 @@ function QLe() {
openSavedFollow: () => {
$.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followTags = /* @__PURE__ */ new Set(), $.followWorks = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followDurMin = $.followDurMax = 0, $.followFilter = "saved", y9(b9());
},
- openEntity: (e, t) => v5(e, t),
+ openEntity: (e, t) => x5(e, t),
openUnowned: () => _7({ owner: "none" }),
openRegion: (e) => _7({ region: e || "none" }),
openTag: (e) => C7((t) => {
t.tag = e;
}),
- addToPlaylist: (e) => MIe(e),
- saveMix: (e) => jIe(e),
+ addToPlaylist: (e) => IIe(e),
+ saveMix: (e) => FIe(e),
editPlaylist: () => y9("/playlists"),
openPlaylists: () => y9("/playlists"),
- reveal: (e) => p5(e),
- sync: (e) => CIe(e),
+ reveal: (e) => g5(e),
+ sync: (e) => DIe(e),
trashChanged: async (e, t) => {
U.state === "ads" && (t || e === "trash") && (t || (Uf(), a9(!0, !1, { miniplayer: !1 })), await R7());
},
- toast: (e, { undo: t } = {}) => b8.actionReceipt(e, { undo: t }),
- failure: (e, t) => b8.actionFailure(e, t)
+ toast: (e, { undo: t } = {}) => D8.actionReceipt(e, { undo: t }),
+ failure: (e, t) => D8.actionFailure(e, t)
}, n9.immerseHost = {
filters: () => U,
seekSeconds: () => Z.appSettings.seekSeconds,
sourceOffline: (e) => Z.sourceOffline(e),
- displayName: (e) => tL(e),
+ displayName: (e) => rL(e),
route: (e) => Q.route("/immerse?id=" + e, !0),
closed: () => _7(),
openItem: (e) => void l9(e),
- openEntity: (e, t) => v5(e, t),
+ openEntity: (e, t) => x5(e, t),
openUnowned: () => _7({ owner: "none" }),
- toast: (e, { undo: t } = {}) => b8.actionReceipt(e, { undo: t }),
- warn: (e) => b8.toast({ text: e }, { sound: "warning" }),
- failure: (e, t) => b8.actionFailure(e, t)
- }, n9.immerseOpen = () => !!a8()?.isOpen(), I8.handler(L("#immerseBtn"), "onclick", () => f9());
+ toast: (e, { undo: t } = {}) => D8.actionReceipt(e, { undo: t }),
+ warn: (e) => D8.toast({ text: e }, { sound: "warning" }),
+ failure: (e, t) => D8.actionFailure(e, t)
+ }, n9.immerseOpen = () => !!f8()?.isOpen(), U8.handler(L("#immerseBtn"), "onclick", () => f9());
}
// src/application/navigation.js
var Q = {
@@ -82292,22 +82326,22 @@ var Q = {
initialOverlayOpened: void 0
};
function p9() {
- let e = d8();
- e ? e.navChanged() : L("#drawerScroll")?.querySelectorAll("[data-nav]").forEach((e) => e.setAttribute("aria-pressed", String(c7(e.dataset.nav))));
+ let e = v8();
+ e ? e.navChanged() : L("#drawerScroll")?.querySelectorAll("[data-nav]").forEach((e) => e.setAttribute("aria-pressed", String(d7(e.dataset.nav))));
}
function m9(e = {}) {
let t = Q.surfacePath();
- t !== B5.sidebarSurface && (B5.sidebarSurface = t, B5.sidebarProps = {
- ...B5.sidebarProps,
+ t !== U5.sidebarSurface && (U5.sidebarSurface = t, U5.sidebarProps = {
+ ...U5.sidebarProps,
content: null,
latest: null
- }), B5.sidebarProps = {
- ...B5.sidebarProps,
+ }), U5.sidebarProps = {
+ ...U5.sidebarProps,
...e
- }, d8()?.render(B5.sidebarProps);
+ }, v8()?.render(U5.sidebarProps);
}
function h9() {
- m9(), p9(), u7();
+ m9(), p9(), p7();
}
function g9() {
Q.queueOpenRequest && (Q.queueOpenRequest.cancelled = !0), Q.queueOpenRequest = null, Q.requestedQueue = null, yu({ pendingQueueRoute: null });
@@ -82319,12 +82353,12 @@ function _9(e, t, n) {
}, Q.route(e, !1, Kf(t));
}
function v9() {
- Q.surfaceEpoch++, X.barsRequestSeq++, F5.syncPageTitle(location.href), m9(), Uf();
+ Q.surfaceEpoch++, X.barsRequestSeq++, R5.syncPageTitle(location.href), m9(), Uf();
}
function y9(e) {
Q.route(e), yu({ pageOpens: uu + 1 });
}
-function $Le() {
+function nRe() {
Q.routeMeta = (e) => {
let t = Qf(e);
return t ? { route: t } : null;
@@ -82332,7 +82366,7 @@ function $Le() {
let t = Qf(e);
return !!t && t.reload !== "reopen" && !Q.catalogPage(e) && !Rf(e) && e !== "/immerse";
}, Q.openRoutePath = (e) => {
- e === "/immerse" ? f9(WLe()) : e === "/follow" ? T9() : e === "/playlists" || Q.catalogPage(e) ? y9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? XIe() : e) : (O5(!1, !0), y9(M5({
+ e === "/immerse" ? f9(qLe()) : e === "/follow" ? T9() : e === "/playlists" || Q.catalogPage(e) ? y9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? eLe() : e) : (j5(!1, !0), y9(F5({
kind: e.slice(1),
q: "",
scope: "local",
@@ -82341,34 +82375,34 @@ function $Le() {
})));
};
}
-function eRe() {
+function rRe() {
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) => (X8(e) || Z8(), hp(L("#stats"), L("#index")), !An(e) && e !== "/trash" && B7(), 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) => (r5(e) || i5(), hp(L("#stats"), L("#index")), !An(e) && e !== "/trash" && B7(), 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
- }), F5.syncPageTitle(e), queueMicrotask(() => {
- u7(), $5(), m9();
+ }), R5.syncPageTitle(e), queueMicrotask(() => {
+ p7(), n7(), m9();
});
}, Q.navigatePath = (e, t = !1, n) => {
t ? W.replace(e, n) : W.push(e, n), queueMicrotask(() => {
- u7(), $5();
+ p7(), n7();
});
}, Q.requestedOverlay = null, Q.requestedQueue = null, Q.queueOpenRequest = null, Q.initialOverlayOpened = !1;
}
// src/jobs.ts
-function tRe(e, t, n) {
+function iRe(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 nRe(e, t = 0, n = 0) {
- return n > 0 ? tRe(e, t, n) : Vs(e);
+function aRe(e, t = 0, n = 0) {
+ return n > 0 ? iRe(e, t, n) : Vs(e);
}
-async function rRe(e) {
+async function oRe(e) {
let t = e.pause || ((e) => new Promise((t) => setTimeout(t, e))), n = 0;
for (; e.active();) {
let r;
@@ -82383,14 +82417,14 @@ async function rRe(e) {
await t(2e3);
}
}
-function iRe(e) {
+function sRe(e) {
let t = e.note || ((e) => Rs(e, {
label: "任务状态",
variant: "error"
- })), n = e.loading || Vs, r = e.progress || ((e, t, n) => nRe(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) => aRe(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;
- rRe({
+ oRe({
read: e.read,
active: () => !c && e.active() && a.isConnected,
keepWatching: e.watchIdle !== !1,
@@ -82439,9 +82473,9 @@ var $ = {
FOLLOW_MANAGE_TABS: void 0,
followSidebarFilters: void 0
};
-function aRe(e) {
+function cRe(e) {
let t = (e.results || []).filter((e) => !e.ok).length;
- b8.toast({ text: Vi(e) }, {
+ D8.toast({ text: Vi(e) }, {
warn: !!t,
timeout: t ? 8e3 : 6e3,
sound: t ? "warning" : "success",
@@ -82454,7 +82488,7 @@ function aRe(e) {
function b9() {
return Oa(x9());
}
-function oRe() {
+function lRe() {
return $.controller.read();
}
function x9() {
@@ -82475,17 +82509,17 @@ function x9() {
function S9(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 sRe() {
+function uRe() {
let e = sp(L("#stats"));
return e && e.path === "/follow" && e.host.isConnected ? e : null;
}
function C9() {
- return !!sRe();
+ return !!uRe();
}
function w9(e) {
C9() && mp(L("#stats"), e);
}
-function cRe(e, t = {}) {
+function dRe(e, t = {}) {
return $.controller.route(e, t);
}
function T9(e = !1) {
@@ -82498,7 +82532,7 @@ async function E9(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(), n8()?.showing() !== "follow" && a9(!1, !1, { miniplayer: !1 }), t && Q.route(`/posts/${e}`, !1, Kf("follow")), await (await t8(n9.stageHost)).open({
+ t && i && !r && yu({ followDetailReturnPath: location.pathname + location.search }), !t && !r && yu({ followDetailReturnPath: Gf() || "/follow" }), t && Hf(), l8()?.showing() !== "follow" && a9(!1, !1, { miniplayer: !1 }), t && Q.route(`/posts/${e}`, !1, Kf("follow")), await (await c8(n9.stageHost)).open({
kind: "follow",
id: e,
mediaIndex: n,
@@ -82507,18 +82541,18 @@ async function E9(e, t = !0, n = null, r = !1) {
helpers: $.followFeedHelpers,
actions: $.followDetailActions,
resume: t ? null : r9()
- }), d7();
+ }), m7();
}
-async function lRe() {
- await i9(), a9(!1, !1, { miniplayer: !1 }), Uf(), Q.route(ou || "/follow"), !(Y.entityPageView && Y.entityPageCurrent() && !L("#index").hidden) && (location.pathname === "/follow" && C9() ? (oRe(), w9({ view: x9() })) : yu({ pageOpens: uu + 1 }));
+async function fRe() {
+ await i9(), a9(!1, !1, { miniplayer: !1 }), Uf(), Q.route(ou || "/follow"), !(Y.entityPageView && Y.entityPageCurrent() && !L("#index").hidden) && (location.pathname === "/follow" && C9() ? (lRe(), w9({ view: x9() })) : yu({ pageOpens: uu + 1 }));
}
-function uRe(e) {
+function pRe(e) {
let t = document.createElement("div");
return t.className = "peach-react", tc(e, () => {
e.textContent = "", e.append(t);
}), t;
}
-function dRe() {
+function mRe() {
$.followFeedHelpers = Il({
wireDrag: (e) => {
e && t9(e);
@@ -82527,41 +82561,41 @@ function dRe() {
e && Dc(e);
},
listSkeletonHtml: (e) => $.followContentSkeletonHtml(e),
- jobProgress: iRe
+ jobProgress: sRe
}), $.followFeedActions = {
- loaded: (e) => W5(e),
+ loaded: (e) => q5(e),
openDetail: (e) => E9(e),
openAuthor: (e) => Q.navigatePath(Nn("creator", e)),
- toggleSelection: (e, t) => RIe(e, t),
+ toggleSelection: (e, t) => HIe(e, t),
setImagesOnly: (e) => {
- Z.appSettings.followImagesOnly = !!e, Z.saveSettings(), u5();
+ Z.appSettings.followImagesOnly = !!e, Z.saveSettings(), p5();
},
setPhotoLayout: (e) => {
- kM(e), u5();
+ jM(e), p5();
},
canFlip: () => !Yl && !$7() && !window.__scrolling && !X.reduceMotion(),
- toast: (e, { undo: t } = {}) => b8.actionReceipt(e, { undo: t }),
- failure: (e, t) => b8.actionFailure(e, t),
- checkReport: (e) => aRe(e)
+ toast: (e, { undo: t } = {}) => D8.actionReceipt(e, { undo: t }),
+ failure: (e, t) => D8.actionFailure(e, t),
+ checkReport: (e) => cRe(e)
}, $.followFeedShell = {
skeleton: () => $.followSkeletonHtml("正在读取关注内容"),
ground: () => {
- n8()?.showing() !== "follow" && (Al(), a9(!1), H5(), !C9() && (Q.claimSurface(Q.surfacePath()), V5({ manage: !1 }), L("#stats").querySelector(".peach-react") && hp(L("#stats")), L("#stats").replaceChildren()));
+ l8()?.showing() !== "follow" && (Al(), a9(!1), G5(), !C9() && (Q.claimSurface(Q.surfacePath()), W5({ manage: !1 }), L("#stats").querySelector(".peach-react") && hp(L("#stats")), L("#stats").replaceChildren()));
}
}, $.followDetailActions = Wl({
view: x9,
adoptView: S9,
rememberReturn: (e) => yu({ followDetailReturnPath: e }),
- close: () => void lRe(),
+ close: () => void fRe(),
open: (e, t, n) => void E9(e, !0, t, n),
- drawer: W5,
+ drawer: q5,
openAuthor: (e) => Q.navigatePath(Nn("creator", e))
}, {
- toast: (e, { undo: t } = {}) => b8.actionReceipt(e, { undo: t }),
- failure: b8.actionFailure
+ toast: (e, { undo: t } = {}) => D8.actionReceipt(e, { undo: t }),
+ failure: D8.actionFailure
});
}
-function fRe() {
+function hRe() {
$.controller = ja({
location: () => location,
view: x9,
@@ -82579,8 +82613,8 @@ function fRe() {
preferences: () => ({
selectMode: Yl,
selected: Jl,
- photoSize: CM(),
- photoLayout: wM(),
+ photoSize: TM(),
+ photoLayout: EM(),
imagesOnly: !!Z.appSettings.followImagesOnly
}),
live: C9,
@@ -82593,36 +82627,36 @@ function fRe() {
});
},
openPage: y9,
- rollSeed: () => Number(b8.rollSeed()),
+ rollSeed: () => Number(D8.rollSeed()),
enterSeed: () => Math.floor(Math.random() * 4294967295),
revealFeed: () => {
- Al(), H5(), V5({ manage: !1 });
+ Al(), G5(), W5({ manage: !1 });
},
- syncPhotoWalls: u5,
+ syncPhotoWalls: p5,
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 pRe() {
- hEe(), Yc(document), Lo(document.documentElement, { variant: "page" }), Lo(L("#drawerScroll")), I8.own(Kc()), Ua(document.body), X.homeHasFeed = hIe(), X.barsRequestSeq = 0, X.barsPendingSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, B5.sidebarProps = {
+function gRe() {
+ gEe(), Yc(document), Lo(document.documentElement, { variant: "page" }), Lo(L("#drawerScroll")), U8.own(Kc()), Ua(document.body), X.homeHasFeed = yIe(), X.barsRequestSeq = 0, X.barsPendingSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, U5.sidebarProps = {
content: null,
filters: {},
latest: null
- }, B5.sidebarSurface = "", B5.sidebarCatalog = null, B5.sidebarContentSeq = 0, $.followFilter = "", $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followTags = /* @__PURE__ */ new Set(), $.followWorks = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.FOLLOW_FEED_SORTS = [
+ }, U5.sidebarSurface = "", U5.sidebarCatalog = null, U5.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 mRe() {
- FU({ reopen: !0 });
+async function _Re() {
+ LU({ reopen: !0 });
}
-function hRe() {
+function vRe() {
let e = new URL(location.href), t = e.searchParams.get("onboarding") === "1";
- yu({ cameFromSetup: t }), I8.handler(document.getElementById("tutorialBtn"), "onclick", () => FU()), FU({ invitation: !0 }), t && e.searchParams.delete("onboarding");
+ yu({ cameFromSetup: t }), U8.handler(document.getElementById("tutorialBtn"), "onclick", () => LU()), LU({ invitation: !0 }), t && e.searchParams.delete("onboarding");
let n = e.searchParams.get("agentation");
try {
localStorage.removeItem("peach.agentation");
@@ -82633,7 +82667,7 @@ function hRe() {
}), n === "on" && import("/dev/agentation.js").catch(() => {});
}
// src/react/search/recommendations.ts
-async function gRe(e) {
+async function yRe(e) {
let t = (await Promise.allSettled([
e("/api/items?sort=rand&limit=5"),
e("/api/jav/discoveries?scope=library&limit=5"),
@@ -82657,9 +82691,9 @@ async function gRe(e) {
let t = ma(e);
for (let n of ["videos", "images"]) {
if (n === "images" ? !t.has("image") : t.size && !t.has("video")) continue;
- let r = ha(e, n), i = l.sources.find((e) => e.id === r.source_id), a = EG(r, i?.author_key ? l.sources.filter((e) => e.author_key === i.author_key) : i ? [i] : [], l), o = n === "images" ? r.media_items?.find((e) => e.media_kind === "image") : void 0;
+ let r = ha(e, n), i = l.sources.find((e) => e.id === r.source_id), a = OG(r, i?.author_key ? l.sources.filter((e) => e.author_key === i.author_key) : i ? [i] : [], l), o = n === "images" ? r.media_items?.find((e) => e.media_kind === "image") : void 0;
(n === "images" ? c : s).push({
- value: SG(r),
+ value: wG(r),
id: r.id,
who: a.author,
href: `/posts/${r.id}`,
@@ -82675,7 +82709,7 @@ async function gRe(e) {
let u = (t[4]?.items || []).map((e) => ({
value: e.k,
href: e.entity_id ? `/creators/${e.entity_id}` : `/follow?author=${encodeURIComponent(e.key)}`,
- avatarHtml: TG(l.sources.filter((t) => t.author_key === e.key), e.k),
+ avatarHtml: DG(l.sources.filter((t) => t.author_key === e.key), e.k),
subtitle: "关注中的作者"
})), d = /* @__PURE__ */ new Map();
for (let e of r) for (let t of e.performer_refs || []) t.id && !d.has(t.name) && d.set(t.name, {
@@ -82745,7 +82779,7 @@ async function gRe(e) {
];
}
// src/application/search-morph.js
-function _Re(e, t, n, r, i, a, o) {
+function bRe(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);
@@ -82770,7 +82804,7 @@ var D9 = {
function O9() {
D9.searchControl?.close();
}
-function vRe(e) {
+function xRe(e) {
let t = e ? eo({
...e,
is_jav: !!e.code
@@ -82789,36 +82823,36 @@ function A9(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(_Re(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
+ let h = t.animate(bRe(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
duration: m.duration,
easing: "linear",
fill: "both"
});
- D9.searchMorph = h, I8.handler(h, "onfinish", () => {
+ D9.searchMorph = h, U8.handler(h, "onfinish", () => {
D9.searchMorph === h && k9();
});
}
-function yRe() {
- return n9.immerseOpen() ? a8().activeVideo() : n8()?.activeVideo() || null;
+function SRe() {
+ return n9.immerseOpen() ? f8().activeVideo() : l8()?.activeVideo() || null;
}
-function bRe(e) {
+function CRe(e) {
return !!e && (e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.isContentEditable);
}
-function xRe() {
+function wRe() {
D9.searchControl = null, D9.searchActions = {
search: (e) => {
X.rememberSearchValue(), a9(!1), U.q = e, bu(), Q.route(U.jav === "1" ? g7() : U.q ? "/?q=" + encodeURIComponent(U.q) : "/", !0);
},
openItem: (e) => l9(e),
- openEntity: (e, t) => v5(e, t),
+ openEntity: (e, t) => x5(e, t),
openPath: (e) => Q.route(e, !1),
openFollow: (e, t, n) => {
$.followMediaView = t, E9(e, !0, n);
}
}, D9.searchHelpers = {
- pool: () => Ube(U, wn),
- recommendations: () => gRe(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 ? U8(e) : vRe(e)}</span>`,
+ pool: () => Wbe(U, wn),
+ recommendations: () => yRe(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 ? X8(e) : xRe(e)}</span>`,
present: (e) => ss(e),
dismiss: (e) => cs(e),
wireScroller: (e) => Dc(e),
@@ -82844,30 +82878,30 @@ function xRe() {
}, {
container: L("#searchMenu"),
isCurrent: () => !0
- }), I8.listen(L("#q"), "beforeinput", (e) => {
+ }), U8.listen(L("#q"), "beforeinput", (e) => {
e.isComposing || X.rememberSearchValue(e.currentTarget);
- }), I8.listen(L("#q"), "scroll", (e) => {
+ }), U8.listen(L("#q"), "scroll", (e) => {
e.currentTarget.value && X.rememberSearchValue(e.currentTarget);
- }), I8.listen(L("#q"), "pointerdown", (e) => {
+ }), U8.listen(L("#q"), "pointerdown", (e) => {
e.currentTarget.value && X.rememberSearchValue(e.currentTarget);
});
}
-function SRe() {
- D9.searchMorph = null, D9.searchMorphViewport = innerWidth, I8.listen.bind(I8, window)("resize", () => {
+function TRe() {
+ D9.searchMorph = null, D9.searchMorphViewport = innerWidth, U8.listen.bind(U8, window)("resize", () => {
innerWidth !== D9.searchMorphViewport && (D9.searchMorphViewport = innerWidth, k9());
- }, { passive: !0 }), I8.listen(matchMedia("(prefers-reduced-motion:reduce)"), "change", k9), I8.handler(L("#searchBtn"), "onclick", () => {
+ }, { passive: !0 }), U8.listen(matchMedia("(prefers-reduced-motion:reduce)"), "change", k9), U8.handler(L("#searchBtn"), "onclick", () => {
A9(!0), L("#q").focus({ preventScroll: !0 });
- }), I8.handler(L("#searchBack"), "onclick", () => {
+ }), U8.handler(L("#searchBack"), "onclick", () => {
A9(!1), O9(), 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 || A9(!1), O9());
};
- I8.listen(document, "pointerdown", e, !0), I8.listen(document, "focusin", e), I8.handler(L("#brandHome"), "onclick", (e) => {
+ U8.listen(document, "pointerdown", e, !0), U8.listen(document, "focusin", e), U8.handler(L("#brandHome"), "onclick", (e) => {
e.preventDefault(), _7();
- }), I8.listen(document, "keydown", (e) => {
+ }), U8.listen(document, "keydown", (e) => {
if (e.key === "Escape") {
- let t = c8();
+ let t = h8();
if (t?.isOpen()) {
t.close();
return;
@@ -82877,24 +82911,24 @@ function SRe() {
return;
}
if (n9.immerseOpen()) {
- a8().close();
+ f8().close();
return;
}
if (n9.stageOpen()) {
- e.defaultPrevented || (e.preventDefault(), n8().requestEscape());
+ e.defaultPrevented || (e.preventDefault(), l8().requestEscape());
return;
}
if (L("#drawer").classList.contains("open")) {
- q5(!1);
+ X5(!1);
return;
}
if (Yl || ql.size || Jl.size) {
- O5(!1, !0);
+ j5(!1, !0);
return;
}
return;
}
- if (bRe(e.target) || e.ctrlKey || e.metaKey || e.altKey) return;
+ if (CRe(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) {
@@ -82902,37 +82936,37 @@ function SRe() {
return;
}
}
- let t = yRe();
+ let t = SRe();
if (t) {
if (e.key === "t" || e.key === "T") {
- e.preventDefault(), n8()?.toggleTheater();
+ e.preventDefault(), l8()?.toggleTheater();
return;
}
if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
- e.preventDefault(), fP(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
+ e.preventDefault(), mP(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
return;
}
if (e.key === " " || e.key === "k" || e.key === "K") {
- e.preventDefault(), dP(t);
+ e.preventDefault(), pP(t);
return;
}
if (e.key === "m" || e.key === "M") {
- e.preventDefault(), EN(t, ".vjs-mute-control");
+ e.preventDefault(), ON(t, ".vjs-mute-control");
return;
}
if (e.key === "f" || e.key === "F") {
- e.preventDefault(), EN(t, ".vjs-fullscreen-control");
+ e.preventDefault(), ON(t, ".vjs-fullscreen-control");
return;
}
if (e.key === "i" || e.key === "I") {
- e.preventDefault(), n8()?.toggleMiniplayer();
+ e.preventDefault(), l8()?.toggleMiniplayer();
return;
}
}
});
}
// src/history/links.ts
-function CRe(e) {
+function ERe(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;
@@ -82955,23 +82989,23 @@ var j9 = {
shellActions: void 0,
routing: void 0
};
-function wRe() {
- let e = I8, t = (e) => {
+function DRe() {
+ let e = U8, t = (e) => {
e.kind === "item" ? l9(e.id, !1) : e.kind === "jav" ? d9(e.code, !1) : e.kind === "follow" ? E9(e.id, !1) : o9(e.queue, e.key, e.item, !1);
};
- if (mIe(), F5.entityShapesReady = W8(), nLe(), location.pathname === "/") {
+ if (vIe(), R5.entityShapesReady = Z8(), oLe(), location.pathname === "/") {
let e = new URLSearchParams(location.search);
!e.has("state") && e.get("jav") !== "1" && (L("#catalogPageHeading").hidden = !1);
}
- X8(decodeURIComponent(location.pathname)) && q8(L("#feedNew")), uLe(), j9.shellActions = {
- openSettings: (e) => Y5(e, !0),
- closeSettings: () => c8()?.close(!1),
+ r5(decodeURIComponent(location.pathname)) && e5(L("#feedNew")), mLe(), j9.shellActions = {
+ openSettings: (e) => Q5(e, !0),
+ closeSettings: () => h8()?.close(!1),
openItem: (e) => void l9(e),
- openEntity: (e, t) => void v5(e, t),
+ openEntity: (e, t) => void x5(e, t),
openTag: (e) => {
- oLe(), F7(e);
+ uLe(), F7(e);
},
- openTasteSignal: AIe,
+ openTasteSignal: PIe,
navigate: (e) => {
let n = new URL(e, location.href), r = Lf(n.pathname, n.search);
if (r) {
@@ -82983,37 +83017,37 @@ function wRe() {
Ap(n.hash, () => W.navigation.seq === t);
} else Q.navigatePath(e);
},
- openManage: e7,
+ openManage: r7,
managePath: (e) => Q.routePathOf("section", e) || "",
openFollow: () => T9(),
- receipt: (e, t) => b8.actionReceipt(e, t),
- toast: (e, t) => b8.toast(e, t),
- failure: b8.actionFailure,
- revealSource: p5,
- reopenTutorial: mRe,
- routeReview: NIe,
- routeFollowManage: YIe,
+ receipt: (e, t) => D8.actionReceipt(e, t),
+ toast: (e, t) => D8.toast(e, t),
+ failure: D8.actionFailure,
+ revealSource: g5,
+ reopenTutorial: _Re,
+ routeReview: LIe,
+ routeFollowManage: $Ie,
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(M5(e), t),
+ routeIndex: (e, { replace: t = !1 } = {}) => Q.route(F5(e), t),
savePeopleLayout: ({ layout: e }) => {
Z.appSettings.peopleLayout = e, Z.saveSettings();
},
- exitSelectMode: () => O5(!1, !1),
- personAvatar: (e, t, n) => j5.personAvatar(e, t, n),
- authorAvatar: (e) => ZIe(e),
- showIndexTags: QIe,
- openFollowAuthor: P5,
- openFollowTag: $Ie,
+ exitSelectMode: () => j5(!1, !1),
+ personAvatar: (e, t, n) => P5.personAvatar(e, t, n),
+ authorAvatar: (e) => tLe(e),
+ showIndexTags: nLe,
+ openFollowAuthor: L5,
+ openFollowTag: rLe,
openPlaylist: (e, t) => void s9(e, t, !0),
canFlip: () => !Yl && !$7() && !window.__scrolling && !X.reduceMotion(),
surfaceChanged: (e, t) => {
e === "entity" ? (Al(), yu({ barsContext: {
type: "home",
filters: U
- } }), U5(), document.body.classList.add("entity-open"), w7(), N5()) : e === "index" ? (Al(), document.body.classList.remove("entity-open"), Q.claimSurface(t), U5(), document.body.classList.add("index-open"), w7(), N5()) : (Al(), Q.claimSurface(t), e === "catalog" ? U5() : (H5(), V5({ manage: e === "management" })));
+ } }), K5(), document.body.classList.add("entity-open"), w7(), I5()) : e === "index" ? (Al(), document.body.classList.remove("entity-open"), Q.claimSurface(t), K5(), document.body.classList.add("index-open"), w7(), I5()) : (Al(), Q.claimSurface(t), e === "catalog" ? K5() : (G5(), W5({ manage: e === "management" })));
},
clearSearch: () => X.clearSearchField(),
openImmerse: (e) => {
@@ -83037,25 +83071,25 @@ function wRe() {
},
configurable: () => !!cu,
surfaceShown: (e) => {
- e === "index" ? (h9(), d7()) : N7();
+ e === "index" ? (h9(), m7()) : N7();
},
entity: {
missing: (e) => {
- j9.shellActions.surfaceChanged("entity", location.pathname), _5(e);
+ j9.shellActions.surfaceChanged("entity", location.pathname), b5(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 = o5();
- return i.type !== "entity" || i.kind !== e || i.name !== t || !c5(e, t, r, Y.parseMediaView(n), { push: !1 }) ? !1 : (x7(r), S7(o5()), !0);
+ let i = l5();
+ return i.type !== "entity" || i.kind !== e || i.name !== t || !d5(e, t, r, Y.parseMediaView(n), { push: !1 }) ? !1 : (x7(r), S7(l5()), !0);
}
},
follow: $.followFeedShell,
catalog: {
defaultLoc: () => h7("local,115"),
- open: (e, { entering: t = !1, retitle: n = !1 } = {}) => (n && (v9(), u7(), $5()), t && E8(), e === "/trash" ? X.clearSearchField() : (L("#q").value = U.q, X.rememberSearchValue()), h9(), N7(), Z.handOff(R7())),
+ open: (e, { entering: t = !1, retitle: n = !1 } = {}) => (n && (v9(), p7(), n7()), t && N8(), e === "/trash" ? X.clearSearchField() : (L("#q").value = U.q, X.rememberSearchValue()), h9(), N7(), Z.handOff(R7())),
load: () => Z.handOff(R7()),
fill: () => {
if (U7() || !Dp() && !L("#grid").querySelector(".catalog-skeleton")) return;
@@ -83063,27 +83097,27 @@ function wRe() {
e.removeAttribute("aria-busy"), e.removeAttribute("aria-label"), V7(Q.surfaceToken(Q.surfacePath()));
},
release: () => {
- B7(), Z8();
+ B7(), i5();
}
}
}, j9.routing = !1, e.listen(document, "click", (e) => {
- let t = CRe(e);
+ let t = ERe(e);
t && (e.preventDefault(), j9.shellActions.navigate(t));
- }), I8.own(W.listen((e) => {
+ }), U8.own(W.listen((e) => {
Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !Rf(e.location.pathname) && a9(!1), j9.routing && !e.claimed && v9();
- })), MFe(j9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), pLe(), UIe(), Z5(), Promise.all([
+ })), IFe(j9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), _Le(), qIe(), e7(), Promise.all([
X7(),
- dLe(),
- F5.entityShapesReady
+ hLe(),
+ R5.entityShapesReady
]).then(() => {
- e.isActive && (F5.wantsDiscoveryBars() && N7().catch((e) => console.error("首页横条装载失败", e)), h9(), ULe(), j9.routing = !0, yu({ pageOpens: 1 }), v9(), d7());
+ e.isActive && (R5.wantsDiscoveryBars() && N7().catch((e) => console.error("首页横条装载失败", e)), h9(), KLe(), j9.routing = !0, yu({ pageOpens: 1 }), v9(), m7());
}).catch((t) => {
e.isActive && console.error("应用启动失败", t);
});
}
// src/theme-transition.ts
var M9 = !1;
-async function TRe(e, t) {
+async function ORe(e, t) {
if (M9) return;
if (!document.startViewTransition || matchMedia("(prefers-reduced-motion: reduce)").matches) {
t();
@@ -83105,9 +83139,9 @@ async function TRe(e, t) {
}
}
// src/application/chrome.js
-function ERe() {
+function kRe() {
(() => {
- let e = I8, t = [
+ let e = U8, t = [
"#brandHome",
"#filterBtn",
"#settingsBtn"
@@ -83167,7 +83201,7 @@ function ERe() {
e.key === "Escape" && (e.stopPropagation(), u.setOpen(!1), c.focus());
}), wn("/api/libraries", { signal: e.signal }).then((t) => {
if (!e.isActive) return;
- XG(t.libraries);
+ QG(t.libraries);
let n = [[
"",
"全部媒体库",
@@ -83188,7 +83222,7 @@ function ERe() {
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), q5(!1), S5("媒体库与入库");
+ u.setOpen(!1), X5(!1), T5("媒体库与入库");
});
let d = l.querySelector(".board-library-rows");
e.listen(d, "pointerover", (e) => {
@@ -83205,18 +83239,18 @@ function ERe() {
(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" && TRe(t, () => {
- Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), fM();
+ t.getAttribute("aria-pressed") !== "true" && ORe(t, () => {
+ Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), mM();
});
- })), fM();
+ })), mM();
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(Ale(v)), zFe({
+ e.own(y.dispose), e.own(Ole(v)), UFe({
root: _,
store: Z.settingsStore,
openDetails: () => {
- e.isActive && (y.setOpen(!1), q5(!1), Y5("外观与导航").then((t) => {
+ e.isActive && (y.setOpen(!1), X5(!1), Q5("外观与导航").then((t) => {
e.isActive && t.reveal("#homeGlowControls");
}));
}
@@ -83228,17 +83262,17 @@ function ERe() {
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 = !K5();
+ let r = n.classList.contains("open"), i = !Y5();
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(I8, window)("resize", b);
+ Z.placeSidebarHead = b, b(), e.listen(document, "board:sidebar", b), e.listen.bind(U8, window)("resize", b);
let x = !1;
function S() {
x = !1, document.body.classList.toggle("board-scrolled", scrollY > 8);
}
- if (e.listen.bind(I8, window)("scroll", () => {
+ if (e.listen.bind(U8, window)("scroll", () => {
x || (x = !0, e.frame(S));
- }, { passive: !0 }), e.listen.bind(I8, window)("resize", S), S(), /Chrome|Chromium|Edg\//.test(navigator.userAgent)) {
+ }, { passive: !0 }), e.listen.bind(U8, 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");
@@ -83352,18 +83386,18 @@ function ERe() {
subtree: !0
}), y();
}
- })(), q5(!K5() && sessionStorage.getItem("board.sidebar") !== "closed");
+ })(), X5(!Y5() && sessionStorage.getItem("board.sidebar") !== "closed");
}
// src/application/initialize.js
-function DRe() {
- pRe(), $Le(), rLe(), eRe(), GLe(), BFe(), ILe(), hRe(), DIe(), ZLe(), WIe(), LLe(), bIe(), PIe(), dRe(), eLe(), OIe(), fRe(), tLe(), kIe(), yLe(), RLe(), xRe(), QLe(), SRe(), KLe(), wRe(), ERe(), I8.own(B7), I8.own(g9);
+function ARe() {
+ gRe(), nRe(), sLe(), rRe(), JLe(), WFe(), zLe(), vRe(), jIe(), eRe(), JIe(), BLe(), wIe(), RIe(), mRe(), iLe(), MIe(), hRe(), aLe(), NIe(), CLe(), VLe(), wRe(), tRe(), TRe(), YLe(), DRe(), kRe(), U8.own(B7), U8.own(g9);
}
// src/ui-kit/middle-truncate.ts
-var ORe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null, P9 = /* @__PURE__ */ new WeakMap(), F9 = /* @__PURE__ */ new Set(), I9 = 0, L9 = /* @__PURE__ */ new WeakSet(), R9 = null, z9 = null, B9 = (e) => N9 ? [...N9.segment(String(e ?? ""))].map((e) => e.segment) : Array.from(String(e ?? "")), V9 = (e, t) => {
+var jRe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null, P9 = /* @__PURE__ */ new WeakMap(), F9 = /* @__PURE__ */ new Set(), I9 = 0, L9 = /* @__PURE__ */ new WeakSet(), R9 = null, z9 = null, B9 = (e) => N9 ? [...N9.segment(String(e ?? ""))].map((e) => e.segment) : Array.from(String(e ?? "")), V9 = (e, t) => {
if (t >= e.length) return e.join("");
let n = Math.ceil(t / 2), r = Math.floor(t / 2);
- return e.slice(0, n).join("") + ORe + (r ? e.slice(-r).join("") : "");
-}, kRe = (e, t) => {
+ return e.slice(0, n).join("") + jRe + (r ? e.slice(-r).join("") : "");
+}, MRe = (e, t) => {
if (!e.length || t(e.join(""))) return e.length;
let n = 0, r = e.length - 1, i = 0;
for (; n <= r;) {
@@ -83371,21 +83405,21 @@ var ORe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
t(V9(e, a)) ? (i = a, n = a + 1) : r = a - 1;
}
return i;
-}, ARe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul} -〿＀-￯]/u, jRe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}]/u, MRe = /[\p{Script=Latin}\p{Script=Greek}\p{Script=Cyrillic}\p{Nd}]/u, NRe = /[＀-￯]/u, PRe = (e) => jRe.test(e) ? 1 : MRe.test(e) && !NRe.test(e) ? 2 : 0, FRe = (e) => {
+}, NRe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul} -〿＀-￯]/u, PRe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}]/u, FRe = /[\p{Script=Latin}\p{Script=Greek}\p{Script=Cyrillic}\p{Nd}]/u, IRe = /[＀-￯]/u, LRe = (e) => PRe.test(e) ? 1 : FRe.test(e) && !IRe.test(e) ? 2 : 0, RRe = (e) => {
let t = 0, n = 0;
for (let r of e) {
- let e = PRe(r);
+ let e = LRe(r);
n && e && n !== e && t++, n = e;
}
return t;
-}, IRe = null, LRe = (e, t) => {
- let n = getComputedStyle(e), r = (IRe ||= document.createElement("canvas")).getContext("2d");
+}, zRe = null, BRe = (e, t) => {
+ let n = getComputedStyle(e), r = (zRe ||= document.createElement("canvas")).getContext("2d");
if (!r) return () => Infinity;
r.font = n.font || `${n.fontStyle} ${n.fontWeight} ${n.fontSize} ${n.fontFamily}`;
let i = parseFloat(n.letterSpacing), a = parseFloat(n.wordSpacing), o = n.getPropertyValue("text-autospace"), s = t && o && o !== "no-autospace" ? (parseFloat(n.fontSize) || 0) / 8 : 0;
return (e) => {
let t = r.measureText(e).width;
- return Number.isFinite(i) && (t += Math.max(0, B9(e).length - 1) * i), Number.isFinite(a) && (t += (e.match(/\s/g) || []).length * a), s && (t += FRe(e) * s), t;
+ return Number.isFinite(i) && (t += Math.max(0, B9(e).length - 1) * i), Number.isFinite(a) && (t += (e.match(/\s/g) || []).length * a), s && (t += RRe(e) * s), t;
};
}, H9 = [
"font-family",
@@ -83412,7 +83446,7 @@ var ORe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
"text-autospace",
"text-spacing-trim",
"white-space-collapse"
-], U9 = null, RRe = (e) => {
+], U9 = null, VRe = (e) => {
if (!U9) {
let e = document.createElement("div");
e.setAttribute("aria-hidden", "true"), e.dataset.middleTruncateProbe = "", e.style.cssText = "position:fixed;left:0;top:0;width:0;height:0;overflow:hidden;visibility:hidden;pointer-events:none;contain:strict", U9 = {
@@ -83423,8 +83457,8 @@ var ORe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
U9.box.isConnected || document.documentElement.append(U9.box);
let t = getComputedStyle(e), n = H9.map((e) => t.getPropertyValue(e)), r = e.closest("[lang]")?.getAttribute("lang") || "", i = n.join("\n") + "\n" + r, a = U9.groups.get(i);
return a || (a = document.createElement("div"), n.forEach((e, t) => a.style.setProperty(H9[t], e)), a.lang = r, U9.box.append(a), U9.groups.set(i, a)), a;
-}, zRe = 8, BRe = (e) => {
- for (let t = 0; e.length && t < zRe; t++) {
+}, HRe = 8, URe = (e) => {
+ for (let t = 0; e.length && t < HRe; t++) {
let t = e.map((e) => e.tries.map((t) => {
let n = document.createElement("span");
return n.style.cssText = "display:block;width:max-content;text-wrap-mode:nowrap", n.textContent = V9(e.fit.parts, t), e.group.append(n), n;
@@ -83442,28 +83476,28 @@ var ORe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
])].filter((t) => t > e.fits && t < e.fails), !0;
});
}
-}, VRe = (e) => {
+}, WRe = (e) => {
let t = [];
for (let n of e) {
- let e = n.state.full, r = ARe.test(e), i = LRe(n.element, r);
- if (n.kept = kRe(n.parts, (e) => i(e) <= n.available), !r) continue;
+ let e = n.state.full, r = NRe.test(e), i = BRe(n.element, r);
+ if (n.kept = MRe(n.parts, (e) => i(e) <= n.available), !r) continue;
let a = [n.kept, n.kept + 1].filter((e) => e > 0 && e <= n.parts.length);
t.push({
fit: n,
- group: RRe(n.element),
+ group: VRe(n.element),
fits: 0,
fails: n.parts.length + 1,
tries: a
});
}
- BRe(t);
-}, HRe = (e) => {
+ URe(t);
+}, GRe = (e) => {
let t = getComputedStyle(e), n = parseFloat(t.width);
if (!Number.isFinite(n)) return e.clientWidth;
let r = t.boxSizing === "border-box" ? n - (parseFloat(t.borderLeftWidth) || 0) - (parseFloat(t.borderRightWidth) || 0) : n + (parseFloat(t.paddingLeft) || 0) + (parseFloat(t.paddingRight) || 0);
return Math.max(e.clientWidth, r + 1 / 64);
-}, URe = (e) => {
- if (e.dataset.middleTruncateWithin === void 0) return HRe(e);
+}, KRe = (e) => {
+ if (e.dataset.middleTruncateWithin === void 0) return GRe(e);
let t = e.parentElement;
if (!t) return e.clientWidth;
let n = getComputedStyle(t), r = parseFloat(n.columnGap) || 0, i = 0, a = 0;
@@ -83472,7 +83506,7 @@ var ORe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
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);
-}, WRe = () => {
+}, qRe = () => {
I9 = 0;
let e = [];
for (let t of F9) {
@@ -83480,12 +83514,12 @@ var ORe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
n && t.isConnected && e.push({
element: t,
state: n,
- available: URe(t),
+ available: KRe(t),
parts: B9(n.full),
kept: 0
});
}
- F9.clear(), VRe(e.filter((e) => e.available > 0));
+ F9.clear(), WRe(e.filter((e) => e.available > 0));
for (let { element: t, state: n, available: r, parts: i, kept: a } of e) {
let e = r > 0 ? V9(i, a) : n.full;
n.rendered = e, t.textContent !== e && (t.textContent = e);
@@ -83493,7 +83527,7 @@ var ORe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
t.classList.toggle("middle-truncated", o), t.setAttribute("aria-label", n.full), t.hasAttribute("title") && t.dataset.middleTitle !== "true" || (t.title = n.full, t.dataset.middleTitle = "true");
}
}, W9 = (e) => {
- P9.has(e) && (F9.add(e), I9 ||= requestAnimationFrame(WRe));
+ P9.has(e) && (F9.add(e), I9 ||= requestAnimationFrame(qRe));
}, G9 = (e) => {
e instanceof HTMLElement && (P9.has(e) || P9.set(e, {
full: e.textContent || "",
@@ -83504,7 +83538,7 @@ var ORe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
let t = e;
t.matches("[data-middle-truncate]") && G9(t), t.querySelectorAll("[data-middle-truncate]").forEach(G9);
};
-function GRe(e = document) {
+function JRe(e = document) {
z9?.(), L9 = /* @__PURE__ */ new WeakSet();
let t = !0;
R9 = new ResizeObserver((e) => e.forEach((e) => {
@@ -83571,7 +83605,7 @@ var q9 = [
"jav-detail",
"wants",
"index"
-], KRe = {
+], YRe = {
catalog: [
...q9,
...J9,
@@ -83592,10 +83626,10 @@ var q9 = [
"avatar-choices"
]
};
-function qRe() {
+function XRe() {
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 KRe[t] || []) e.add(n);
+ for (let t of Object.keys(r)) if (r[t] !== n[t]) for (let n of YRe[t] || []) e.add(n);
return !t && e.size && (t = (async () => {
for (; e.size;) {
let t = new Set(e);
@@ -83608,12 +83642,12 @@ function qRe() {
})), t || Promise.resolve();
};
}
-function JRe() {
+function ZRe() {
let e = Pt({
- queryKey: iL,
- queryFn: ({ signal: e }) => oL(e),
- refetchInterval: (e) => aL(e.state.data)
- }), t = (0, F.useRef)(void 0), [n] = (0, F.useState)(qRe), r = e.data?.result_versions;
+ queryKey: oL,
+ queryFn: ({ signal: e }) => cL(e),
+ refetchInterval: (e) => sL(e.state.data)
+ }), t = (0, F.useRef)(void 0), [n] = (0, F.useState)(XRe), r = e.data?.result_versions;
return (0, F.useEffect)(() => {
r && (t.current && n(t.current, r), t.current = r);
}, [r, n]), null;
@@ -83623,52 +83657,52 @@ var X9 = null;
function Z9(e) {
X9 !== e || e.owners || (X9 = null, e.effects.dispose());
}
-function YRe() {
+function QRe() {
if (!X9) {
- let e = nIe();
+ let e = oIe();
X9 = {
effects: e,
owners: 0
- }, e.own(GRe(document)), e.own(() => {
+ }, e.own(JRe(document)), e.own(() => {
Al(), H.cancelQueries();
- }), e.own(NFe), e.own(gp), e.own(as);
+ }), e.own(LFe), e.own(gp), e.own(as);
}
return X9.owners += 1, X9.effects.resume(), X9;
}
-function XRe() {
+function $Re() {
let [e, t] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
- let e = X9 === null, n = YRe(), r = jFe(t);
+ let e = X9 === null, n = QRe(), r = FFe(t);
if (e) try {
- DRe();
+ ARe();
} 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)(dye, {
+ }, []), /* @__PURE__ */ (0, I.jsx)(fye, {
actions: e,
processing: !0,
- background: e ? /* @__PURE__ */ (0, I.jsx)(JRe, {}) : null
+ background: e ? /* @__PURE__ */ (0, I.jsx)(ZRe, {}) : null
});
}
var Q9 = /* @__PURE__ */ new WeakMap();
-function ZRe(e) {
+function eze(e) {
let t = Q9.get(e);
if (t) return t;
- let n = (0, Rt.createRoot)(e, fye);
+ let n = (0, Rt.createRoot)(e, pye);
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)(XRe, {}))), n;
+ }, (0, Lt.flushSync)(() => n.render(/* @__PURE__ */ (0, I.jsx)($Re, {}))), n;
}
// src/react/bootstrap.tsx
O();
var $9 = document.getElementById("appRoot");
if (!$9) throw Error("主界面宿主缺失");
-ZRe($9);
-export { eR as $2ec61d1d4f780267$export$a8a3e93435678ff9, cR as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, Tz as $542a13ca2fa5b484$export$5b6b19405a83ff9d, ED as $72abaeab4d80592f$export$78efe591171d7d45, _B as $76d00c5a4edb230a$export$76ccd210b9029917, mB as $76d00c5a4edb230a$export$816b5d811295e6bc, bB as $76d00c5a4edb230a$export$b59bdbef9ce70de2, SB as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, pB as $76d00c5a4edb230a$export$f850895b287ef28e, phe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, fhe as $b4f18e3395fe64d7$export$3e41faf802a29e71, lhe as $b4f18e3395fe64d7$export$b2539bed5023c21c, EB as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, ghe as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, pE as $ea3928288112382f$export$439d29a4e110a164, Rz as $f2ff30fde7b014be$export$3ddf2d174ce01153, Gz as $fe21c36db05242bb$export$a98f0dcb43a68a25, Kz as $fe21c36db05242bb$export$d7b12c4107be0d61, Xhe as $l, Xj as ACCENTS, kke as AMANE_BRIDGE_CHECK_URL, X$ as AMANE_BRIDGE_KEY, Ake as AMANE_BRIDGE_REBUILD_URL, or as ApiError, aW as ArtSlot, m2 as BATCH_DELETE_TEXT, J as Button, ML as ButtonLink, rV as Bx, T$ as CLEANUP_ENTRY, w$ as CLEANUP_ENTRY_GRID, Yf as CLEANUP_HASH_REDIRECTS, qf as CLEANUP_TOOLS, _n as CLOUD_LOCATIONS, X1 as CLOUD_PROXY_HELP, Gr as COLUMN_SORT, c1 as CONFIGURATION_KEY, iX as CONFIGURATION_URL, jke as COOKIE_TEXT_LIMIT, Y$ as COVER_JOB_KEY, Ji as CREDENTIAL_STATE, G$ as CUSTOM_SOURCES_KEY, W$ as CUSTOM_SOURCES_URL, ZV as Checkbox, XV as CheckboxGlyph, VV as ChevronSortDown, iW as Chip, pW as CloudDownloadDialog, KH as CollapseChevron, GH as CollapseRegion, v$ as CollectionSummary, lwe as DEFAULT_CATEGORY, ur as DEFAULT_SORT, WQ as DIAGNOSTICS_KEY, cTe as DIRECTORY_TEMPLATE_ERROR, j0 as DISCOVERY_SORTS, sW as DOWNLOADS_KEY, oW as DOWNLOADS_URL, wY as DUPLICATES_KEY, aY as DataTableFooter, tY as DataTableFrame, iY as DataTableSort, QH as Disclosure, Gve as DownloadsPanel, Vhe as E3, uwe as ENTITY_REVIEW_KINDS, J1 as ENTRY_LINKS_HELP, Y1 as ENTRY_LINKS_HINT, YB as Ea, xge as EmptyFocusButton, CV as EmptyState, XH as ErrorText, W_e as ExternalLink, Br as FEEDS_KEY, fX as FEED_SCHEDULE_KEY, S$ as FIELDSET_FOOT, LPe as FLOW_LABEL_X, J3 as FLOW_VIEWBOX, Rr as FOLLOW_CHECK_KEY, Lr as FOLLOW_CREDENTIALS_KEY, j8 as FOLLOW_INITIAL_RANGE_OPTIONS, Ir as FOLLOW_MANAGE_KEY, qZ as FOLLOW_MANAGE_NAV, zr as FOLLOW_RESOLVE_KEY, dX as FOLLOW_SCHEDULE_KEY, q_e as Fact, K_e as FactList, ZH as FieldLabel, F$ as Fieldset, P$ as FieldsetTitle, upe as FilterGlass, TL as FilterGlassRows, wL as FilterIconButton, EL as FilterPill, U_e as Footer, eV as Gg, DL as GlassPill, sV as HN, YH as Help, mV as HintText, kPe as IDLE_POLL_MS, QCe as IDLE_REPAIR, bL as IconButton, KQ as IndexSearch, yV as Input, vV as InputBase, L$ as IssueRow, mM as JAV_LAYOUTS, N0 as JAV_RECOMMENDATION_GRID, LX as JUNK_KEY, NW as JavHeader, KCe as KEEP_LABELS, Hr as LAYOUTS, q1 as LIBRARY_FOLDER_HELP, uH as LIBRARY_PROCESSING_KEY, XY as LINKS_KEY, ZY as LINK_CHECK_KEY, Pwe as LINK_KINDS, QY as LINK_PRUNE_KEY, tr as LOC, pV as Label, B$ as LibraryProcessingCard, BV as LibraryShortcuts, EH as LinkButton, Qhe as Lo, BH as LoadingDots, Hhe as M6, zwe as MEDIA_PROCESSING_KEY, mX as MEDIA_PROCESSING_URL, kY as MEDIA_REPAIR_KEY, OY as MEDIA_REPAIR_URL, vr as MEDIA_SOURCES_KEY, gs as MEDIA_SOURCE_ICONS, hn as MEDIA_SOURCE_OPTIONS, GV as MENU_ITEM, KV as MENU_ITEM_INTERACTIVE, WV as MENU_POPOVER_SURFACE, ege as Ma, AH as MenuDialog, bK as MixCard, bV as ModalFrame, wx as MotionConfigContext, dV as NR, I$ as NameLink, SV as Note, _ge as OA, _X as ORGANIZE_KEY, d2 as ORGANIZE_PARAMETER_HINT, u2 as ORGANIZE_SCOPE_HINT, l2 as ORGANIZE_TEXT, bX as ORPHAN_RECORDS_KEY, p2 as ORPHAN_RECORDS_TEXT, QB as OV, LB as P7, PX as PERFORMER_DELETE_KEY, eye as PHASES, aX as PICK_FOLDER_URL, D$ as PLAIN_STAT_STRIP, H$ as PLAYLISTS_KEY, NAe as POLICY_COLUMNS, FAe as POLICY_COVER_NOTE, PAe as POLICY_MATRIX, K1 as POLICY_SUMMARY, rY as Pagination, z$ as PathLine, lV as Pf, YI as PillTabList, ZOe as PlainStat, HH as Progress, PY as QUALITY_GOALS_KEY, cV as RB, wW as RELEASE_SORTS, k$ as REPAIR_CARD_TEXT, AY as REPAIR_LIBRARIES_KEY, TX as RESOURCE_APPLY_KEY, wX as RESOURCE_SCAN_KEY, f2 as RESOURCE_SYNC_TEXT, rke as RESULT_PANEL, ike as RESULT_SECTION, cwe as REVIEW_CATEGORIES, IX as REVIEW_COUNTS_KEY, dwe as REVIEW_DECISION_LABELS, LY as REVIEW_KEY, RY as REVIEW_LABELS, BY as REVIEW_QUEUES, VY as REVIEW_QUEUE_LABELS, GG as RetryNote, gge as Rf, fV as Rk, B_e as Rows, Dke as SCRAPING_CHECK_URL, q$ as SCRAPING_COVER_URL, J$ as SCRAPING_KEY, Eke as SCRAPING_SETTINGS_URL, vU as SEGMENT, _U as SEGMENTED_TRACK, uX as SETTINGS_KEY, oX as SETTINGS_URL, dr as SORT_DEFAULT_DIR, lr as SORT_OPTIONS, vn as SOURCE_LABELS, y3 as STATS_KEY, YOe as STAT_STRIP, XOe as STAT_STRIP_SIX, z_e as Section, ake as SectionHeading, H_e as SectionSkeleton, gU as SegmentedRadioGroup, cve as SegmentedTabList, RG as Segments, nY as Select, tW as Select$1, f1 as SelectField, nW as SelectItem, fY as SelectionActions, Oj as SelectionDock, pY as SelectionPopover, qH as SettingsCard, R_e as SettingsRow, JH as SettingsSectionLabel, zG as Shuffle, Z_e as SiteLabel, _G as SortDirectionIcon, BG as SortKeys, DQ as SourceAvatar, nU as SourceLabel, $H as SourceMark, V_e as Stack, QOe as StatCard, R$ as StatusLabel, pge as Su, Z2 as Switch, iL as TASKS_KEY, vPe as TASTE_REFRESH_KEY, yPe as TASTE_WINDOWS, pX as THUMBNAIL_JOBS_KEY, zX as TRASH_KEY, Ufe as TRIGGER_LABELS, KJ as Table, mY as TableColumnControls, hY as TableColumnResizer, _Y as TableSelectionHeader, p$ as TagManager, G_e as TaskCenterLink, UH as TaskProgress, gV as TextField, hV as TextFieldContext, XB as Un, hW as WANTS_KEY, f4 as WantMagnets, Wg as WithPromise, VB as Wt, JB as Xc, uV as Xf, UB as Xl, HB as Xt, zB as _8, o as __commonJSMin, s as __exportAll, l as __toESM, hge as aB, Ti as addAlias, wi as addSource, _W as addWant, pS as animate, B as apiGet, V as apiSend, cM as appSettingsStore, DTe as applyConfirmText, NX as applyLeftovers, ETe as applyPlanText, kTe as applyText, fM as applyTheme, vy as asNumber, hTe as attachOrphan, si as authorAvatar, li as authorGroups, oi as authorInitial, ai as authorName, Pq as autoResetPageIndex, go as avatarInner, T3 as bandRows, lTe as baseName, ZCe as batchOperate, hue as beginPlayerGuidePreview, Nj as boundedPreference, JCe as bulkCloudPreferences, DV as busyProps, mge as cB, qMe as cachedMagnetStates, Rg as calcGeneratorVelocity, vwe as canApprove, pg as cancelFrame, bTe as candidateText, zH as cardClass, DM as cardRatio, qB as cc, Wi as checkEvidenceGap, Ui as checkFailures, Pi as checkFeeds, Rwe as checkLine, Vi as checkReceipt, Hi as checkSummary, Nke as checkText, Gi as checkedText, oK as clickedBlank, J5 as closeDrawerAfterNav, BCe as cloudLocations, D0 as cloudProxySkeleton, KC as clsx, rge as cn, sv as collectMotionValues, eJ as columnVisibilityFeature, VJ as column_getCanSort, LJ as column_getSortFn, gwe as commonReviewSources, Of as configurationSection, CPe as configureTasteBrowser, ol as confirmModal, Vfe as controlTask, gq as copyInstancePropertiesWithoutMemos, co as coverUrl, Gq as createColumnHelper, bke as createPlaylist, Yi as credentialDone, C0 as credentialsSkeleton, Dwe as currentReviewRow, q as cx, nV as dZ, wwe as decisionPayload, Twe as decisionReceipt, Cwe as defaultChoice, jTe as deletePerformerVideos, Ske as deletePlaylist, x as diagnosticHeaders, G1 as diagnosticsSkeleton, OW as discoveryArtwork, SW as discoveryKey, aje as discoveryScore, a9 as disposeStage, WCe as distinctName, zi as dropSources, fge as du, YCe as duplicateVictims, dL as elapsedText, tn as entityDisplayName, ho as entityFaceImg, Nn as entityPath, ei as errorHeadline, cr as errorMessage, z as esc, Nq as expandRowModel, jB as f1, yo as facePos, $r as feedIntervalText, $$ as fetchAmaneBridge, _i as fetchCheckJob, l1 as fetchConfiguration, Q$ as fetchCoverJob, gi as fetchCredentials, K$ as fetchCustomSources, FX as fetchDeletePerformers, ATe as fetchDeletePlan, GQ as fetchDiagnostics, CW as fetchDiscoveries, EY as fetchDuplicates, Lfe as fetchEarlier, Hwe as fetchFeedSchedule, ji as fetchFeeds, hi as fetchFollow, Vwe as fetchFollowSchedule, VX as fetchJunkSummary, vH as fetchLibraryProcessing, tX as fetchLinkCheck, nX as fetchLinkPrune, eX as fetchLinkStats, Bwe as fetchMediaProcessing, jY as fetchMediaRepair, yr as fetchMediaSources, vX as fetchOrganize, tTe as fetchOrganizeExample, xX as fetchOrphanRecords, Ai as fetchPending, U$ as fetchPlaylists, FY as fetchQualityGoals, DW as fetchReleases, MY as fetchRepairLibraries, vi as fetchResolveJob, DX as fetchResourceApply, EX as fetchResourceScan, qY as fetchReview, BX as fetchReviewCounts, hX as fetchSettings, Z$ as fetchSources, b3 as fetchStats, yi as fetchSuggestions, oL as fetchTasks, G3 as fetchTaste, wPe as fetchTasteJob, Uwe as fetchThumbnailJobs, HX as fetchTrashSummary, gW as fetchWants, mwe as filterReviewRows, $n as firstGrapheme, QK as flexRender, zPe as flowGraph, BPe as flowLabel, RNe as fmtCount, qn as fmtDur, Yn as fmtSize, Ife as foldByKind, $fe as foldRoutine, Ii as followFeedByName, Vr as followSuggestKey, tpe as followupDetail, Ffe as followupTally, fg as frame, FB as g4, rJ as getDefaultPaginationState, EM as gridLayout, ci as groupByAuthor, Qfe as groupFollowups, WY as groupReviewRows, wTe as hasChanges, OX as hasResourceRoots, cL as hasResultProblems, APe as historySpan, MB as i2, OPe as importTasteExport, w0 as indexersSkeleton, Pg as interpolate, yW as invalidateWants, uL as isActive, Qr as isBroken, Kr as isLayout, vv as isMotionValue, zY as isReviewCategory, epe as isRoutine, T0 as javBrowserSkeleton, F0 as javContentSkeleton, yM as javLayout, P0 as javTagSkeleton, ITe as junkBreakdown, Cke as keepPlaylist, ke as keepPreviousData, fi as keepSelected, x3 as known, Lhe as l7, Zfe as latestOfKind, Qn as leadingGraphemes, XNe as lengthRows, Sr as localTime, fo as logoUrl, Fi as lookupFeedActor, IB as m7, tV as mM, En as mapLimit, ki as markItem, E3 as max, JNe as mediumRows, Rfe as mergeFinished, D3 as min, Mwe as mirrorText, twe as missingToolText, DY as mixedCloudPreferences, hL as momentText, mS as motion, lv as motionValue, nn as nameFallback, He as notifyManager, Uhe as oe, dTe as organizeOutcome, Z0 as overlayHost, qr as pageSizeOf, di as pageWindow, mr as paginationRange, Ri as patchSource, W as peachHistory, W as peachHistory$1, Swe as pendingGenres, BNe as percentText, iTe as pickOrganizeFolder, E$ as plainStatClass, uTe as planSummary, S3 as playedFor, HNe as playedItemUrl, aL as pollInterval, Js as popCount, yke as posterUrl, nbe as previewLibraryColor, rTe as previewOrganize, iwe as previewUrl, Yfe as problemDestination, pH as processingActive, fL as progressText, tU as providerIcon, Lwe as pruneText, AX as purgeCount, gTe as purgeOrphan, iV as pv, dge as qE, H as queryClient, NB as r2, IPe as radarRows, GNe as radialArc, KNe as radialBarSize, WNe as radialCeiling, UNe as radialSlices, UN as randomId, PPe as rankDetail, FPe as rankShares, w3 as reachedShare, pL as readableErrorHeadline, oje as recommendationScore, Owe as recordGenre, vTe as recordsText, wke as recreatePlaylist, _ke as refreshPlaylists, Cl as relayoutCovers, TW as releaseFilters, EW as releaseKey, Bi as reloadFollowManage, jwe as reloadReview, RAe as rememberShape, oTe as rememberTemplates, Ei as removeAlias, Ni as removeFeed, Ci as removeSource, DPe as removeTasteSource, vW as removeWants, Di as renameAliasGroup, xke as renamePlaylist, Se as replaceEqualDeep, QNe as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, fq as require_with_selector, rye as resetWants, pr as resolveFollowSort, Vg as resolveStartTime, p_e as restartEffectText, vke as resumeAssetId, pwe as reviewGroupingOptions, UY as reviewQueueData, HY as reviewQueueOf, FTe as reviewSummary, hwe as reviewWindow, bwe as rowEvidence, KY as rowFieldName, uJ as rowPaginationFeature, jJ as rowSelectionFeature, WJ as rowSortingFeature, GY as rowSubject, xwe as rowTags, ywe as rowTitle, Phe as s5, Oi as saveCredential, TTe as scanLine, Jwe as schedulePollInterval, xW as searchNote, _we as selectReviewRange, pi as selectionState, Mi as setFeedEnabled, Si as setSourceEnabled, Mf as settingsPath, Awe as settleReviewRows, UCe as sharedNamePrefix, Ep as shellNavigate, y8 as showToast, zn as siteMarkUrl, wq as skipFirstRun, qI as sortCx, Yr as sortLabel, yn as sourceDefaultCost, qi as sourceIconUrl, OTe as sourceMeta, zs as spinnerHtml, Mg as spring, TV as spriteGlyph, bi as startCheck, Fwe as startLinkCheck, Iwe as startLinkPrune, aTe as startOrganize, xi as startResolve, STe as startResourceApply, xTe as startResourceScan, EPe as startTasteRefresh, JOe as statCardClass, Gfe as statusLabel, ewe as statusLine, Zr as statusText, OM as storeJavLayout, Ewe as submitDecision, gL as summaryItems, Kq as tableFeatures, Tq as tableMemo, ui as tableRows, Jfe as taskIssues, Xfe as taskSubject, K3 as tasteDate, MPe as tasteDimensions, jPe as tasteHours, W3 as tasteKey, xPe as tasteRefetchInterval, SPe as tasteTime, $I as textLang, $m as time, Jhe as tl, mi as toggleGroup, q3 as topScores, age as um, $he as uo, DH as useAction, HZ as useBackgroundJob, qU as useClientUpdates, dm as useConstant, _L as useEntityNames, CL as useHorizontalScroller, fm as useIsomorphicLayoutEffect, aK as useLibraryTints, Ft as useMutation, QV as useOverlayScrollbar, Pt as useQuery, ae as useQueryClient, nS as useReducedMotion, qwe as useRunSchedule, Gwe as useSaveFollowSchedule, gX as useSaveSettings, Ywe as useSaveThumbnailMode, GJ as useTable, cY as useTablePreferences, AL as useViewGlide, XCe as victimBytes, Yhe as vl, bW as wantName, VNe as watchNote, C3 as watchedShare, Dc as wireHorizontalScroller, sTe as withOrganizeJob, dve as writeJavQuery };
+eze($9);
+export { nR as $2ec61d1d4f780267$export$a8a3e93435678ff9, uR as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, Dz as $542a13ca2fa5b484$export$5b6b19405a83ff9d, OD as $72abaeab4d80592f$export$78efe591171d7d45, yB as $76d00c5a4edb230a$export$76ccd210b9029917, gB as $76d00c5a4edb230a$export$816b5d811295e6bc, SB as $76d00c5a4edb230a$export$b59bdbef9ce70de2, wB as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, hB as $76d00c5a4edb230a$export$f850895b287ef28e, dhe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, uhe as $b4f18e3395fe64d7$export$3e41faf802a29e71, she as $b4f18e3395fe64d7$export$b2539bed5023c21c, OB as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, mhe as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, hE as $ea3928288112382f$export$439d29a4e110a164, Bz as $f2ff30fde7b014be$export$3ddf2d174ce01153, qz as $fe21c36db05242bb$export$a98f0dcb43a68a25, Jz as $fe21c36db05242bb$export$d7b12c4107be0d61, Jhe as $l, Qj as ACCENTS, jke as AMANE_BRIDGE_CHECK_URL, Z$ as AMANE_BRIDGE_KEY, Mke as AMANE_BRIDGE_REBUILD_URL, or as ApiError, sW as ArtSlot, x2 as BATCH_DELETE_TEXT, J as Button, PL as ButtonLink, aV as Bx, E$ as CLEANUP_ENTRY, T$ as CLEANUP_ENTRY_GRID, Yf as CLEANUP_HASH_REDIRECTS, qf as CLEANUP_TOOLS, _n as CLOUD_LOCATIONS, Z1 as CLOUD_PROXY_HELP, Gr as COLUMN_SORT, l1 as CONFIGURATION_KEY, oX as CONFIGURATION_URL, Nke as COOKIE_TEXT_LIMIT, X$ as COVER_JOB_KEY, Ji as CREDENTIAL_STATE, K$ as CUSTOM_SOURCES_KEY, G$ as CUSTOM_SOURCES_URL, $V as Checkbox, QV as CheckboxGlyph, UV as ChevronSortDown, oW as Chip, hW as CloudDownloadDialog, JH as CollapseChevron, qH as CollapseRegion, y$ as CollectionSummary, uwe as DEFAULT_CATEGORY, ur as DEFAULT_SORT, GQ as DIAGNOSTICS_KEY, lTe as DIRECTORY_TEMPLATE_ERROR, wW as DISCOVERY_SORTS, lW as DOWNLOADS_KEY, cW as DOWNLOADS_URL, EY as DUPLICATES_KEY, sY as DataTableFooter, rY as DataTableFrame, oY as DataTableSort, eU as Disclosure, Uve as DownloadsPanel, zhe as E3, dwe as ENTITY_REVIEW_KINDS, Y1 as ENTRY_LINKS_HELP, X1 as ENTRY_LINKS_HINT, ZB as Ea, yge as EmptyFocusButton, TV as EmptyState, QH as ErrorText, H_e as ExternalLink, Br as FEEDS_KEY, mX as FEED_SCHEDULE_KEY, C$ as FIELDSET_FOOT, VPe as FLOW_LABEL_X, t6 as FLOW_VIEWBOX, Rr as FOLLOW_CHECK_KEY, Lr as FOLLOW_CREDENTIALS_KEY, R8 as FOLLOW_INITIAL_RANGE_OPTIONS, Ir as FOLLOW_MANAGE_KEY, JZ as FOLLOW_MANAGE_NAV, zr as FOLLOW_RESOLVE_KEY, pX as FOLLOW_SCHEDULE_KEY, G_e as Fact, W_e as FactList, $H as FieldLabel, I$ as Fieldset, F$ as FieldsetTitle, cpe as FilterGlass, DL as FilterGlassRows, EL as FilterIconButton, OL as FilterPill, V_e as Footer, nV as Gg, kL as GlassPill, lV as HN, ZH as Help, gV as HintText, NPe as IDLE_POLL_MS, $Ce as IDLE_REPAIR, SL as IconButton, qQ as IndexSearch, xV as Input, bV as InputBase, R$ as IssueRow, gM as JAV_LAYOUTS, B0 as JAV_RECOMMENDATION_GRID, zX as JUNK_KEY, RW as JavHeader, qCe as KEEP_LABELS, Hr as LAYOUTS, J1 as LIBRARY_FOLDER_HELP, fH as LIBRARY_PROCESSING_KEY, QY as LINKS_KEY, $Y as LINK_CHECK_KEY, Fwe as LINK_KINDS, eX as LINK_PRUNE_KEY, tr as LOC, hV as Label, V$ as LibraryProcessingCard, HV as LibraryShortcuts, OH as LinkButton, Xhe as Lo, HH as LoadingDots, Bhe as M6, Bwe as MEDIA_PROCESSING_KEY, gX as MEDIA_PROCESSING_URL, jY as MEDIA_REPAIR_KEY, AY as MEDIA_REPAIR_URL, vr as MEDIA_SOURCES_KEY, gs as MEDIA_SOURCE_ICONS, hn as MEDIA_SOURCE_OPTIONS, qV as MENU_ITEM, JV as MENU_ITEM_INTERACTIVE, KV as MENU_POPOVER_SURFACE, Qhe as Ma, MH as MenuDialog, SK as MixCard, SV as ModalFrame, Ex as MotionConfigContext, pV as NR, L$ as NameLink, wV as Note, hge as OA, yX as ORGANIZE_KEY, v2 as ORGANIZE_PARAMETER_HINT, _2 as ORGANIZE_SCOPE_HINT, g2 as ORGANIZE_TEXT, SX as ORPHAN_RECORDS_KEY, b2 as ORPHAN_RECORDS_TEXT, eV as OV, zB as P7, IX as PERFORMER_DELETE_KEY, Qve as PHASES, sX as PICK_FOLDER_URL, O$ as PLAIN_STAT_STRIP, U$ as PLAYLISTS_KEY, FAe as POLICY_COLUMNS, LAe as POLICY_COVER_NOTE, IAe as POLICY_MATRIX, q1 as POLICY_SUMMARY, aY as Pagination, B$ as PathLine, dV as Pf, ZI as PillTabList, $Oe as PlainStat, WH as Progress, IY as QUALITY_GOALS_KEY, uV as RB, TW as RELEASE_SORTS, A$ as REPAIR_CARD_TEXT, MY as REPAIR_LIBRARIES_KEY, DX as RESOURCE_APPLY_KEY, EX as RESOURCE_SCAN_KEY, y2 as RESOURCE_SYNC_TEXT, ake as RESULT_PANEL, oke as RESULT_SECTION, lwe as REVIEW_CATEGORIES, RX as REVIEW_COUNTS_KEY, fwe as REVIEW_DECISION_LABELS, zY as REVIEW_KEY, BY as REVIEW_LABELS, HY as REVIEW_QUEUES, UY as REVIEW_QUEUE_LABELS, qG as RetryNote, mge as Rf, mV as Rk, R_e as Rows, kke as SCRAPING_CHECK_URL, J$ as SCRAPING_COVER_URL, Y$ as SCRAPING_KEY, Oke as SCRAPING_SETTINGS_URL, bU as SEGMENT, yU as SEGMENTED_TRACK, fX as SETTINGS_KEY, cX as SETTINGS_URL, dr as SORT_DEFAULT_DIR, lr as SORT_OPTIONS, vn as SOURCE_LABELS, E3 as STATS_KEY, ZOe as STAT_STRIP, QOe as STAT_STRIP_SIX, L_e as Section, ske as SectionHeading, B_e as SectionSkeleton, vU as SegmentedRadioGroup, ove as SegmentedTabList, BG as Segments, iY as Select, rW as Select$1, p1 as SelectField, iW as SelectItem, mY as SelectionActions, Aj as SelectionDock, hY as SelectionPopover, YH as SettingsCard, I_e as SettingsRow, XH as SettingsSectionLabel, VG as Shuffle, Y_e as SiteLabel, yG as SortDirectionIcon, HG as SortKeys, OQ as SourceAvatar, iU as SourceLabel, tU as SourceMark, z_e as Stack, eke as StatCard, z$ as StatusLabel, dge as Su, i4 as Switch, oL as TASKS_KEY, SPe as TASTE_REFRESH_KEY, CPe as TASTE_WINDOWS, hX as THUMBNAIL_JOBS_KEY, VX as TRASH_KEY, Vfe as TRIGGER_LABELS, JJ as Table, gY as TableColumnControls, _Y as TableColumnResizer, yY as TableSelectionHeader, m$ as TagManager, U_e as TaskCenterLink, GH as TaskProgress, vV as TextField, _V as TextFieldContext, QB as Un, _W as WANTS_KEY, y4 as WantMagnets, Kg as WithPromise, UB as Wt, XB as Xc, fV as Xf, GB as Xl, WB as Xt, VB as _8, o as __commonJSMin, s as __exportAll, l as __toESM, pge as aB, Ti as addAlias, wi as addSource, yW as addWant, hS as animate, B as apiGet, V as apiSend, uM as appSettingsStore, OTe as applyConfirmText, FX as applyLeftovers, DTe as applyPlanText, ATe as applyText, mM as applyTheme, by as asNumber, gTe as attachOrphan, si as authorAvatar, li as authorGroups, oi as authorInitial, ai as authorName, Iq as autoResetPageIndex, go as avatarInner, M3 as bandRows, uTe as baseName, QCe as batchOperate, pue as beginPlayerGuidePreview, Fj as boundedPreference, YCe as bulkCloudPreferences, kV as busyProps, fge as cB, ZMe as cachedMagnetStates, Bg as calcGeneratorVelocity, ywe as canApprove, mg as cancelFrame, xTe as candidateText, VH as cardClass, kM as cardRatio, YB as cc, Wi as checkEvidenceGap, Ui as checkFailures, Pi as checkFeeds, zwe as checkLine, Vi as checkReceipt, Hi as checkSummary, Fke as checkText, Gi as checkedText, cK as clickedBlank, Z5 as closeDrawerAfterNav, VCe as cloudLocations, O0 as cloudProxySkeleton, JC as clsx, tge as cn, lv as collectMotionValues, nJ as columnVisibilityFeature, UJ as column_getCanSort, zJ as column_getSortFn, _we as commonReviewSources, Of as configurationSection, DPe as configureTasteBrowser, ol as confirmModal, zfe as controlTask, vq as copyInstancePropertiesWithoutMemos, co as coverUrl, qq as createColumnHelper, Ske as createPlaylist, Yi as credentialDone, w0 as credentialsSkeleton, Owe as currentReviewRow, q as cx, iV as dZ, Twe as decisionPayload, Ewe as decisionReceipt, wwe as defaultChoice, MTe as deletePerformerVideos, wke as deletePlaylist, x as diagnosticHeaders, K1 as diagnosticsSkeleton, NW as discoveryArtwork, OW as discoveryKey, EW as discoveryScore, a9 as disposeStage, GCe as distinctName, zi as dropSources, uge as du, XCe as duplicateVictims, pL as elapsedText, tn as entityDisplayName, ho as entityFaceImg, Nn as entityPath, ei as errorHeadline, cr as errorMessage, z as esc, Fq as expandRowModel, NB as f1, yo as facePos, $r as feedIntervalText, e1 as fetchAmaneBridge, _i as fetchCheckJob, u1 as fetchConfiguration, $$ as fetchCoverJob, gi as fetchCredentials, q$ as fetchCustomSources, LX as fetchDeletePerformers, jTe as fetchDeletePlan, KQ as fetchDiagnostics, kW as fetchDiscoveries, OY as fetchDuplicates, Ffe as fetchEarlier, Uwe as fetchFeedSchedule, ji as fetchFeeds, hi as fetchFollow, Hwe as fetchFollowSchedule, UX as fetchJunkSummary, bH as fetchLibraryProcessing, rX as fetchLinkCheck, iX as fetchLinkPrune, nX as fetchLinkStats, Vwe as fetchMediaProcessing, NY as fetchMediaRepair, yr as fetchMediaSources, bX as fetchOrganize, nTe as fetchOrganizeExample, CX as fetchOrphanRecords, Ai as fetchPending, W$ as fetchPlaylists, LY as fetchQualityGoals, MW as fetchReleases, PY as fetchRepairLibraries, vi as fetchResolveJob, kX as fetchResourceApply, OX as fetchResourceScan, YY as fetchReview, HX as fetchReviewCounts, _X as fetchSettings, Q$ as fetchSources, D3 as fetchStats, yi as fetchSuggestions, cL as fetchTasks, Q3 as fetchTaste, OPe as fetchTasteJob, Wwe as fetchThumbnailJobs, WX as fetchTrashSummary, vW as fetchWants, hwe as filterReviewRows, $n as firstGrapheme, eq as flexRender, UPe as flowGraph, WPe as flowLabel, HNe as fmtCount, qn as fmtDur, Yn as fmtSize, Pfe as foldByKind, Zfe as foldRoutine, Ii as followFeedByName, Vr as followSuggestKey, $fe as followupDetail, Nfe as followupTally, pg as frame, LB as g4, aJ as getDefaultPaginationState, OM as gridLayout, ci as groupByAuthor, Xfe as groupFollowups, KY as groupReviewRows, TTe as hasChanges, AX as hasResourceRoots, uL as hasResultProblems, PPe as historySpan, PB as i2, MPe as importTasteExport, T0 as indexersSkeleton, Ig as interpolate, xW as invalidateWants, fL as isActive, Qr as isBroken, Kr as isLayout, bv as isMotionValue, VY as isReviewCategory, Qfe as isRoutine, E0 as javBrowserSkeleton, H0 as javContentSkeleton, xM as javLayout, V0 as javTagSkeleton, LTe as junkBreakdown, Tke as keepPlaylist, ke as keepPreviousData, fi as keepSelected, O3 as known, Fhe as l7, Yfe as latestOfKind, Qn as leadingGraphemes, ePe as lengthRows, Sr as localTime, fo as logoUrl, Fi as lookupFeedActor, RB as m7, rV as mM, En as mapLimit, ki as markItem, N3 as max, QNe as mediumRows, Ife as mergeFinished, P3 as min, Nwe as mirrorText, nwe as missingToolText, kY as mixedCloudPreferences, _L as momentText, gS as motion, dv as motionValue, nn as nameFallback, He as notifyManager, Vhe as oe, fTe as organizeOutcome, i2 as overlayHost, qr as pageSizeOf, di as pageWindow, mr as paginationRange, Ri as patchSource, W as peachHistory, W as peachHistory$1, Cwe as pendingGenres, WNe as percentText, aTe as pickOrganizeFolder, D$ as plainStatClass, dTe as planSummary, k3 as playedFor, KNe as playedItemUrl, sL as pollInterval, Js as popCount, xke as posterUrl, rbe as previewLibraryColor, iTe as previewOrganize, awe as previewUrl, qfe as problemDestination, hH as processingActive, mL as progressText, rU as providerIcon, Rwe as pruneText, MX as purgeCount, _Te as purgeOrphan, oV as pv, lge as qE, H as queryClient, FB as r2, BPe as radarRows, YNe as radialArc, XNe as radialBarSize, JNe as radialCeiling, qNe as radialSlices, GN as randomId, RPe as rankDetail, zPe as rankShares, j3 as reachedShare, hL as readableErrorHeadline, DW as recommendationScore, kwe as recordGenre, yTe as recordsText, Eke as recreatePlaylist, yke as refreshPlaylists, Cl as relayoutCovers, AW as releaseFilters, jW as releaseKey, Bi as reloadFollowManage, Mwe as reloadReview, BAe as rememberShape, sTe as rememberTemplates, Ei as removeAlias, Ni as removeFeed, Ci as removeSource, jPe as removeTasteSource, bW as removeWants, Di as renameAliasGroup, Cke as renamePlaylist, Se as replaceEqualDeep, nPe as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, mq as require_with_selector, tye as resetWants, pr as resolveFollowSort, Ug as resolveStartTime, d_e as restartEffectText, bke as resumeAssetId, mwe as reviewGroupingOptions, GY as reviewQueueData, WY as reviewQueueOf, ITe as reviewSummary, gwe as reviewWindow, xwe as rowEvidence, JY as rowFieldName, fJ as rowPaginationFeature, NJ as rowSelectionFeature, KJ as rowSortingFeature, qY as rowSubject, Swe as rowTags, bwe as rowTitle, Mhe as s5, Oi as saveCredential, ETe as scanLine, Ywe as schedulePollInterval, CW as searchNote, vwe as selectReviewRange, pi as selectionState, Mi as setFeedEnabled, Si as setSourceEnabled, Mf as settingsPath, jwe as settleReviewRows, WCe as sharedNamePrefix, Ep as shellNavigate, E8 as showToast, zn as siteMarkUrl, Eq as skipFirstRun, YI as sortCx, Yr as sortLabel, yn as sourceDefaultCost, qi as sourceIconUrl, kTe as sourceMeta, zs as spinnerHtml, Pg as spring, DV as spriteGlyph, bi as startCheck, Iwe as startLinkCheck, Lwe as startLinkPrune, oTe as startOrganize, xi as startResolve, CTe as startResourceApply, STe as startResourceScan, APe as startTasteRefresh, XOe as statCardClass, Ufe as statusLabel, twe as statusLine, Zr as statusText, AM as storeJavLayout, Dwe as submitDecision, vL as summaryItems, Jq as tableFeatures, Dq as tableMemo, ui as tableRows, Kfe as taskIssues, Jfe as taskSubject, $3 as tasteDate, IPe as tasteDimensions, FPe as tasteHours, Z3 as tasteKey, TPe as tasteRefetchInterval, EPe as tasteTime, tL as textLang, R0 as tierPlaceholdersHtml, $m as time, Khe as tl, mi as toggleGroup, e6 as topScores, rge as um, Zhe as uo, kH as useAction, UZ as useBackgroundJob, YU as useClientUpdates, dm as useConstant, yL as useEntityNames, TL as useHorizontalScroller, fm as useIsomorphicLayoutEffect, sK as useLibraryTints, Ft as useMutation, eH as useOverlayScrollbar, Pt as useQuery, ae as useQueryClient, iS as useReducedMotion, Jwe as useRunSchedule, Kwe as useSaveFollowSchedule, vX as useSaveSettings, Xwe as useSaveThumbnailMode, qJ as useTable, uY as useTablePreferences, ML as useViewGlide, ZCe as victimBytes, qhe as vl, SW as wantName, GNe as watchNote, A3 as watchedShare, Dc as wireHorizontalScroller, cTe as withOrganizeJob, lve as writeJavQuery };
-//# debugId=ca47c035-7a3d-4441-9cfa-ad73f99e1af8
\ No newline at end of file
+//# debugId=4006446c-3b4e-43a9-ad45-5938cc7eaa09
\ No newline at end of file