Peach: Local-first video metadata scraper and media manager.
refactor(web): 作品详情与四种队列迁成 item-detail 岛,删掉壳里那一套
longmeidao8462be31c92a
diff --git a/frontend/.oxlintrc.json b/frontend/.oxlintrc.jsonindex 5cb217be2..167dc4067 100644--- a/frontend/.oxlintrc.json+++ b/frontend/.oxlintrc.json@@ -23,7 +23,15 @@"sgrid", "mixgrid", "vwrap", "closestage", "video-js", "vjs-big-play-centered", "side", "sidecontent", "stitle", "smeta","mono", "stags", "tg", "mav", "externallink", "fb", "later", "seen", "dislike", "dur","mixqueue", "mixqueuehead", "mixqueueactions", "mixlist", "mixrow", "mixitem", "current", "mixitempic", "mixitemtext",- "mixgrouplabel"] }],+ "mixgrouplabel", "mixitemhead", "mixitemmeta", "qedition", "queueedit", "queuegrip", "javedition", "censored",+ "gate", "offline", "chip", "detailtitle", "stitletext", "srctools", "detailtitletools", "srcstate", "detailtitlestate",+ "rating", "ratingstars", "star", "ratingvalue", "detailmetaitem", "regionlink",+ "detailidentity", "identityprimary", "idgroup", "idgroup-unowned", "idseries", "idlabel", "idrow", "idcell", "idface",+ "idname", "entitylink", "logo", "unownedlink", "castmore", "seriesrows", "serieslink",+ "detailtag", "tagfilter", "tagremove", "tagplus", "tagpicker", "tagpicksearch", "tagpickbody", "tagpicksection",+ "tagpickgrid", "tagpickitem", "selected", "active", "pickname", "pickcount",+ "trace", "trace-metric", "lab", "trace-real", "bar", "like", "reason", "playlistadd", "upgrade", "dispose", "obtn",+ "preference", "preference-foot", "geist-button", "primary", "savepreference", "next", "nrow"] }],"shadcn/require-static-classes": "error"}}diff --git a/frontend/e2e/item-detail.test.ts b/frontend/e2e/item-detail.test.tsnew file mode 100644index 000000000..7aef0f00c--- /dev/null+++ b/frontend/e2e/item-detail.test.ts@@ -0,0 +1,342 @@+/* 作品详情岛(`item-detail`)在真浏览器里的行为:从目录卡进出、深链、Video.js 挂在岛画的 `<video>` 上、+ * 脱盘说明、共演收起、标题折叠、评分与标签的撤销、反馈键态、四种队列、播放列表排序与移出、保存 Mix、接着看、+ * 实体页入口与手机布局。+ *+ * 桩数据见 `item-fixture.ts`;读写接口全部由桩接住,演示库账本一次都不写。 */+import assert from 'node:assert/strict';+import { after, before, describe, it } from 'node:test';++import type { Browser, Page } from 'playwright-core';++import { layout, launch, VIEWPORTS } from './harness.ts';+import { ITEM, NAMES, PLAYLIST, RELATED, openItemPage } from './item-fixture.ts';++const DESKTOP = VIEWPORTS.find((viewport) => !viewport.mobile)!;+const MOBILE = VIEWPORTS.find((viewport) => viewport.mobile)!;+const DETAIL_READY = '#stage[open] [data-item-side]';+/** 桩里的片源没有正片,播放器拿到空响应会报一条 VIDEOJS 错误;量的不是它。 */+const withoutPlayer = (problems: string[]) => problems.filter((line) => !line.includes('VIDEOJS'));+const pathIs = (page: Page, path: string) => page.waitForFunction(+ (wanted) => location.pathname === wanted, path, { timeout: 10_000 });+/** 回执栈在 body 下,舞台是模态 dialog,外面整页惰性,鼠标点不到撤销键;这里量的是撤销本身。 */+const undo = (page: Page) => page.locator('#toasts').getByRole('button', { name: '撤销' }).last().dispatchEvent('click');+const current = (page: Page) => page.locator('#stage [data-queue-item][aria-current="true"]').getAttribute('data-queue-item');+const ids = (page: Page, selector: string, attribute: string) => page.locator(selector).evaluateAll(+ (nodes, name) => nodes.map((node) => Number(node.getAttribute(name))), attribute);++describe('作品详情岛', () => {+ let browser: Browser;++ before(async () => {+ browser = await launch();+ });++ after(async () => {+ await browser.close();+ });++ it('目录点卡进详情:地址换成这一条;关掉回列表不重取', { timeout: 60_000 }, async () => {+ const opened = await openItemPage(browser, '/', DESKTOP, { ready: `#grid [data-media-card][data-id="${ITEM.plain}"]` });+ try {+ const page = opened.page;+ const listed = opened.stub.reads.get('/api/items') || 0;+ await page.locator(`#grid [data-media-card][data-id="${ITEM.plain}"] [data-media-title]`).first().click();+ await pathIs(page, `/item/${ITEM.plain}`);+ await page.locator(DETAIL_READY).waitFor();+ assert.equal(await page.evaluate(() => document.activeElement?.id), 'closeStage', '内容到了焦点不在关闭键上');+ await page.locator('#closeStage').click();+ await pathIs(page, '/');+ await page.locator('#stage[open]').waitFor({ state: 'detached', timeout: 10_000 }).catch(() => {});+ assert.equal(await page.locator('#stage[open]').count(), 0);+ await page.locator(`#grid [data-media-card][data-id="${ITEM.plain}"]`).first().waitFor();+ assert.equal(opened.stub.reads.get('/api/items') || 0, listed, '关掉详情回列表重取了一遍');+ assert.deepEqual(withoutPlayer(opened.problems), []);+ } finally {+ await opened.close();+ }+ });++ it('深链进详情:单条取这一条;关掉之后照地址补画列表', { timeout: 60_000 }, async () => {+ const opened = await openItemPage(browser, `/item/${ITEM.plain}`, DESKTOP);+ try {+ const page = opened.page;+ assert.equal(opened.stub.reads.get('/api/item'), 1);+ await page.locator('#closeStage').click();+ await pathIs(page, '/');+ await page.locator(`#grid [data-media-card][data-id="${ITEM.plain}"]`).first().waitFor({ timeout: 15_000 });+ assert.ok((opened.stub.reads.get('/api/items') || 0) >= 1, '深链关掉之后没有补取列表');+ assert.deepEqual(withoutPlayer(opened.problems), []);+ } finally {+ await opened.close();+ }+ });++ it('岛画的 `<video>` 交给壳挂上 Video.js,氛围光画布与统计角标跟它进同一块媒体区', { timeout: 60_000 }, async () => {+ const opened = await openItemPage(browser, `/item/${ITEM.plain}`, DESKTOP);+ try {+ const page = opened.page;+ await page.locator('#stage [data-item-media="video"] > .video-js video.vjs-tech').waitFor({ state: 'attached' });+ const shape = await page.evaluate(() => {+ const media = document.querySelector('#stage [data-item-media="video"]')!;+ return { id: media.querySelector(':scope > .video-js')!.id, canvas: !!media.querySelector(':scope > .ambientcanvas'),+ stats: !!media.querySelector('#playerStatsBtn'), videos: media.querySelectorAll('video').length };+ });+ assert.deepEqual(shape, { id: 'vid', canvas: true, stats: true, videos: 1 });+ assert.deepEqual(withoutPlayer(opened.problems), []);+ } finally {+ await opened.close();+ }+ });++ it('来源没挂载:说明块代替播放器,重新检测仍未挂载就换成再试', { timeout: 60_000 }, async () => {+ const opened = await openItemPage(browser, `/item/${ITEM.offline}`, DESKTOP);+ try {+ const page = opened.page;+ const gate = page.locator('#stage [data-item-gate="offline"]');+ assert.match(await gate.innerText(), /脱盘模式/);+ assert.equal(await page.locator('#stage .vjs-tech').count(), 0, '脱盘的条目挂了播放器');+ await page.locator('#offlineRetry').click();+ await page.locator('#offlineRetry', { hasText: '仍未挂载 · 再试' }).waitFor();+ assert.deepEqual(opened.problems, []);+ } finally {+ await opened.close();+ }+ });++ it('出演超过 8 位先收起,点「还有 N 位」全部展开', { timeout: 60_000 }, async () => {+ const opened = await openItemPage(browser, `/item/${ITEM.cast}`, DESKTOP);+ try {+ const page = opened.page;+ const shown = () => page.locator('#stage [data-item-identity] [data-entity-kind="performer"]:visible').count();+ assert.equal(await shown(), 8);+ assert.equal((await page.locator('#castMore').innerText()).trim(), `还有 ${NAMES.length - 8} 位`);+ await page.locator('#castMore').click();+ assert.equal(await shown(), NAMES.length);+ assert.equal(await page.locator('#castMore').count(), 0);+ assert.deepEqual(withoutPlayer(opened.problems), []);+ } finally {+ await opened.close();+ }+ });++ it('标题折成两行,真溢出才给展开键;展开键与标题文字都能展开,再点收回', { timeout: 60_000 }, async () => {+ const short = await openItemPage(browser, `/item/${ITEM.plain}`, DESKTOP);+ try {+ assert.equal(await short.page.locator('#stage [data-title-fold]').isHidden(), true);+ } finally {+ await short.close();+ }+ const opened = await openItemPage(browser, `/item/${ITEM.long}`, DESKTOP);+ try {+ const page = opened.page;+ const title = page.locator('#stage [data-detail-title]');+ const fold = page.locator('#stage [data-title-fold]');+ const lines = () => title.evaluate((node) => Math.round(node.clientHeight / parseFloat(getComputedStyle(node).lineHeight)));+ assert.equal(await fold.isVisible(), true);+ assert.equal(await lines(), 2);+ await fold.click();+ assert.equal(await fold.getAttribute('aria-label'), '收起标题');+ assert.ok(await lines() > 2, '展开之后整段标题都在');+ await title.click();+ assert.equal(await fold.getAttribute('aria-label'), '展开标题');+ assert.equal(await lines(), 2);+ assert.deepEqual(withoutPlayer(opened.problems), []);+ } finally {+ await opened.close();+ }+ });++ it('评分:点当前那一颗是撤销评分;回执的撤销写回原分', { timeout: 60_000 }, async () => {+ const opened = await openItemPage(browser, `/item/${ITEM.plain}`, DESKTOP);+ try {+ const page = opened.page;+ const value = page.locator('#detailRating .ratingvalue');+ assert.equal((await value.innerText()).trim(), '3 星');+ await page.locator('#detailRating [data-rate="3"]').click();+ await page.locator('#detailRating .ratingvalue', { hasText: '未评分' }).waitFor();+ assert.equal(await page.locator('#detailRating [data-on="true"]').count(), 0);+ await undo(page);+ await page.locator('#detailRating .ratingvalue', { hasText: '3 星' }).waitFor();+ assert.deepEqual(opened.stub.writes.filter((write) => write.url === '/api/feedback').map((write) => write.body), [+ { id: ITEM.plain, kind: 'rate', value: 0 },+ { id: ITEM.plain, kind: 'rate', value: 60 },+ ]);+ assert.deepEqual(withoutPlayer(opened.problems), []);+ } finally {+ await opened.close();+ }+ });++ it('标签:删一枚再撤销回来;从选择器新建一枚', { timeout: 60_000 }, async () => {+ const opened = await openItemPage(browser, `/item/${ITEM.plain}`, DESKTOP);+ try {+ const page = opened.page;+ const tag = (name: string) => page.locator(`#detailTags [data-tag="${name}"]`);+ await page.locator('#detailTags [data-remove-tag="剧情"]').click();+ await tag('剧情').waitFor({ state: 'detached' });+ await undo(page);+ await tag('剧情').waitFor();+ await page.locator('#tagPlus').click();+ await page.locator('#tagPicker:not([hidden])').waitFor();+ await page.locator('#tagPickSearch').fill('新建的标签');+ await page.locator('#tagPicker [data-pick="新建的标签"]', { hasText: '新建“新建的标签”' }).waitFor();+ await page.locator('#tagPickSearch').press('Enter');+ await tag('新建的标签').waitFor();+ assert.equal(await page.locator('#tagPicker').isHidden(), true, '加完标签选择器没有收起');+ assert.deepEqual(opened.stub.writes.filter((write) => write.url === '/api/item-tag').map((write) => write.body), [+ { id: ITEM.plain, operation: 'remove', tag: '剧情' },+ { id: ITEM.plain, operation: 'add', tag: '剧情' },+ { id: ITEM.plain, operation: 'add', tag: '新建的标签' },+ ]);+ assert.deepEqual(withoutPlayer(opened.problems), []);+ } finally {+ await opened.close();+ }+ });++ it('稍后看与反馈键:写完键态跟着服务端的回话变', { timeout: 60_000 }, async () => {+ const opened = await openItemPage(browser, `/item/${ITEM.plain}`, DESKTOP);+ try {+ const page = opened.page;+ await page.locator('#stageLater').click();+ await page.locator('#stageLater[aria-pressed="true"]').waitFor();+ await page.locator('#stage [data-kind="dislike"]').click();+ await page.locator('#stage [data-kind="dislike"][aria-pressed="true"]').waitFor();+ await page.locator('#stage [data-kind="seen"]').click();+ await page.locator('#stage [data-kind="seen"][aria-pressed="true"]').waitFor();+ assert.equal(await page.locator('#stage [data-kind="dislike"]').getAttribute('aria-pressed'), 'false', '看过与不合口味同时亮着');+ assert.deepEqual(opened.stub.writes.map((write) => [write.url, write.body.kind ?? null]), [+ ['/api/watch-later', null], ['/api/feedback', 'dislike'], ['/api/feedback', 'seen'],+ ]);+ assert.deepEqual(withoutPlayer(opened.problems), []);+ } finally {+ await opened.close();+ }+ });++ for (const [kind, path, next, wanted] of [+ ['Mix', `/mix/${ITEM.plain}/${ITEM.plain}`, 14, `/mix/${ITEM.plain}/14`],+ ['分卷', `/parts/${ITEM.part}/22`, 23, `/parts/${ITEM.part}/23`],+ ['版本', `/editions/${ITEM.edition}/${ITEM.edition}`, 32, `/editions/${ITEM.edition}/32`],+ ['播放列表', `/playlists/${PLAYLIST.id}/11`, 15, `/playlists/${PLAYLIST.id}/15`],+ ] as const) {+ it(`${kind}队列:深链停在给的那一条,点另一条换过去且不重取队列`, { timeout: 60_000 }, async () => {+ const opened = await openItemPage(browser, path, DESKTOP);+ try {+ const page = opened.page;+ assert.equal(await current(page), path.split('/').at(-1));+ const reads = new Map(opened.stub.reads);+ await page.locator(`#stage [data-queue-item="${next}"]`).click();+ await pathIs(page, wanted);+ await page.locator(`#stage [data-queue-item="${next}"][aria-current="true"]`).waitFor();+ await page.locator(DETAIL_READY).waitFor();+ if (kind === '分卷') assert.match(await page.locator('#stage [data-detail-title]').innerText(), /第 3 卷/);+ for (const url of ['/api/parts', '/api/editions', '/api/related']) {+ assert.equal(opened.stub.reads.get(url) || 0, reads.get(url) || 0, `同一个${kind}队列里换一条又取了 ${url}`);+ }+ if (kind === '播放列表') {+ assert.deepEqual(opened.stub.writes.filter((write) => write.body.action === 'progress').map((write) => write.body.asset_id),+ [11, next], '播放列表没有记下续播位置');+ }+ assert.deepEqual(withoutPlayer(opened.problems), []);+ } finally {+ await opened.close();+ }+ });+ }++ it('播放列表:拖动换顺序、移出一条,两者都能撤销', { timeout: 60_000 }, async () => {+ const opened = await openItemPage(browser, `/playlists/${PLAYLIST.id}/11`, DESKTOP);+ try {+ const page = opened.page;+ const order = () => ids(page, '#stage [data-queue-row]', 'data-queue-row');+ const wait = (wanted: number[]) => page.waitForFunction((want) => JSON.stringify([...document+ .querySelectorAll('#stage [data-queue-row]')].map((row) => Number(row.getAttribute('data-queue-row')))) === want,+ JSON.stringify(wanted), { timeout: 10_000 });+ assert.deepEqual(await order(), PLAYLIST.items);+ await page.locator('#stage [data-queue-row="16"]').dragTo(page.locator('#stage [data-queue-row="14"]'),+ { targetPosition: { x: 4, y: 2 } });+ await wait([11, 16, 14, 15]);+ await undo(page);+ await wait(PLAYLIST.items);+ await page.locator('#stage [data-queue-remove="15"]').click();+ await page.locator('[data-modal-confirm]').click();+ await wait([11, 14, 16]);+ await undo(page);+ await wait(PLAYLIST.items);+ assert.deepEqual(opened.stub.writes.filter((write) => write.body.action !== 'progress')+ .map((write) => [write.body.action, write.body.asset_ids ?? write.body.asset_id]), [+ ['reorder', [11, 16, 14, 15]], ['reorder', PLAYLIST.items],+ ['remove', 15], ['add', [15]], ['reorder', PLAYLIST.items],+ ]);+ assert.deepEqual(withoutPlayer(opened.problems), []);+ } finally {+ await opened.close();+ }+ });++ it('保存 Mix:确认之后转去新建的那份播放列表', { timeout: 60_000 }, async () => {+ const opened = await openItemPage(browser, `/mix/${ITEM.plain}/${ITEM.plain}`, DESKTOP);+ try {+ const page = opened.page;+ await page.locator('#stage [data-save-mix]').click();+ await page.locator('[name="name"]').fill('我的 Mix');+ await page.locator('[data-modal-confirm]').click();+ await page.waitForFunction(() => location.pathname.startsWith(`/playlists/${8}/`), undefined, { timeout: 10_000 });+ await page.locator('#stage [data-queue-row]').first().waitFor();+ assert.deepEqual(await ids(page, '#stage [data-queue-row]', 'data-queue-row'), [ITEM.plain, ...RELATED]);+ const created = opened.stub.writes.find((write) => write.body.action === 'create')!;+ assert.deepEqual(created.body, {+ action: 'create', name: '我的 Mix', asset_ids: [ITEM.plain, ...RELATED], source_kind: 'mix',+ source_seed_asset_id: ITEM.plain,+ });+ assert.deepEqual(withoutPlayer(opened.problems), []);+ } finally {+ await opened.close();+ }+ });++ it('接着看:一排卡按相关作品的顺序;点一张换到那一条', { timeout: 60_000 }, async () => {+ const opened = await openItemPage(browser, `/item/${ITEM.plain}`, DESKTOP);+ try {+ const page = opened.page;+ await page.locator('#nrow [data-media-card]').first().waitFor();+ assert.deepEqual(await ids(page, '#nrow [data-media-card]', 'data-id'), RELATED);+ await page.locator(`#nrow [data-media-card][data-id="${RELATED[0]}"] [data-media-title]`).click();+ await pathIs(page, `/item/${RELATED[0]}`);+ await page.locator(DETAIL_READY).waitFor();+ assert.deepEqual(withoutPlayer(opened.problems), []);+ } finally {+ await opened.close();+ }+ });++ it('点女优进她的实体页,舞台收起', { timeout: 60_000 }, async () => {+ const opened = await openItemPage(browser, `/item/${ITEM.plain}`, DESKTOP);+ try {+ const page = opened.page;+ await page.locator(`#stage [data-item-identity] [data-entity-kind="performer"][data-entity-name="${NAMES[0]}"]`).click();+ await pathIs(page, `/performers/${encodeURIComponent(NAMES[0]!)}`);+ await page.waitForFunction(() => !document.querySelector('#stage[open]'), undefined, { timeout: 10_000 });+ assert.equal(await page.evaluate(() => document.body.classList.contains('entity-open')), true);+ } finally {+ await opened.close();+ }+ });++ it('手机 390:详情不横向溢出,侧栏排在播放区下面', { timeout: 60_000 }, async () => {+ const opened = await openItemPage(browser, `/item/${ITEM.plain}`, MOBILE);+ try {+ const page = opened.page;+ assert.deepEqual((await layout(page)).offenders, [], '详情里有元素越出视口右边');+ const boxes = await page.evaluate(() => ({+ media: document.querySelector('#stage [data-item-media]')!.getBoundingClientRect().bottom,+ side: document.querySelector('#stage [data-item-side]')!.getBoundingClientRect().top,+ }));+ assert.ok(boxes.side >= boxes.media - 1, `侧栏不在播放区下面:${JSON.stringify(boxes)}`);+ assert.deepEqual(withoutPlayer(opened.problems), []);+ } finally {+ await opened.close();+ }+ });+});diff --git a/frontend/e2e/item-fixture.ts b/frontend/e2e/item-fixture.tsnew file mode 100644index 000000000..f7aca2e24--- /dev/null+++ b/frontend/e2e/item-fixture.ts@@ -0,0 +1,180 @@+/* 作品详情岛(`item-detail`)的桩数据:`item-detail.test.ts` 与 `design.test.ts` 共用。+ *+ * 演示库里的作品没有共演、分卷、版本和播放列表,这里按 `q_item`、`q_items`(`src/peach/web_catalog.py`)+ * 与 `w_playlist`(`src/peach/web_playlists.py`)的形状造几种形态:普通、十二位共演、在脱盘来源上、标题很长、+ * 三卷分卷、两个版次,外加一份四条的播放列表。详情读写的接口全部由桩接住,写进来的请求记在+ * `writes` 里;片源不给正片,播放器报的那一条 VIDEOJS 错误由各条自己滤掉。 */+import type { Browser, Page, Request } from 'playwright-core';++import { settle, visit, type Viewport, type Visit } from './harness.ts';++export const NAMES = ['七海ひな', '桜井まい', '白石りん', '水瀬ゆい', '藤原あや', '早川なな', '森下えみ', '高橋さき',+ '小野みお', '石原かな', '青木ゆず', '中村はる'];+const TAGS = ['剧情', '单体作品', '高画质', '中出', '巨乳', '美少女'];++type Row = Record<string, unknown> & { id: number; tags: unknown[] };+const ref = (name: string, id: number, extra: Record<string, unknown> = {}) =>+ ({ id, name, has_image: false, avatar_focus: null, ...extra });++const detail = (id: number, extra: Record<string, unknown> = {}): Row => {+ const performers = (extra.performers as string[] | undefined) || [NAMES[0]!];+ return {+ id, name: `sample_${id}.mp4`, title: `演示作品 ${id}`, is_jav: false, medium: 'video', location: 'local',+ cost: 'free', size: 1_234_567_890, duration: 3600, play_seconds: 900, play_count: 2, leave_ratio: 0.4,+ has_cover: false, has_thumb: true, has_local_poster: false, performers, performer_total: performers.length,+ performer_entities: performers.map((_, at) => ({ id: at + 1, has_image: false })), creator: '', studio: 'Peach Studio',+ feedback: null, disposal: null, watch_later: false, width: 1920, height: 1080, release_date: '2026-08-01',+ region: 'jp', region_label: '日本', region_settled: true, rating: 60, liked: false, like_reason: '', o_count: 1,+ better_version: false, better_version_reason: '', has_studio_logo: false, poster_box: null,+ tags: TAGS.map((k) => ({ k, cat: 'general', official: false })),+ entity_refs: {+ performer: performers.map((name, at) => ref(name, at + 1)),+ studio: [ref('Peach Studio', 50, { has_logo: false })], creator: [], series: [ref('夏日系列', 70)],+ },+ ...extra,+ };+};++const jav = (id: number, code: string, extra: Record<string, unknown> = {}) =>+ detail(id, { is_jav: true, code, has_cover: true, ...extra });++/** 几种形态的条目 id。 */+export const ITEM = { plain: 11, cast: 12, offline: 13, long: 17, part: 21, edition: 31 } as const;+const PART_GROUP = { key: 'p', seed_id: 21, count: 3 };+const EDITION_GROUP = { key: 'e', seed_id: 31, count: 2, editions: ['中字', '无码'] };+const DETAILS = new Map<number, Row>([+ [11, detail(11, { performers: NAMES.slice(0, 2) })],+ [12, detail(12, { performers: NAMES, title: '演示作品 12 共演十二位' })],+ [13, detail(13, { location: '115', title: '演示作品 13 在脱盘的来源上' })],+ [14, detail(14)], [15, detail(15)], [16, detail(16)],+ // 非番号作品的标题栏印的是文件名。+ [17, detail(17, { name: `演示作品 17 ${'标题很长,写满了这一条的剧情梗概、出演与拍摄地点。'.repeat(8)}.mp4` })],+ [21, jav(21, 'PCH-021', { part_group: PART_GROUP })],+ [22, jav(22, 'PCH-021', { part_group: PART_GROUP })],+ [23, jav(23, 'PCH-021', { part_group: PART_GROUP })],+ [31, jav(31, 'PCH-031', { edition_group: EDITION_GROUP })],+ [32, jav(32, 'PCH-031', { edition_group: EDITION_GROUP })],+]);++/** 列表与队列里的那一份:没有 `entity_refs`,标签只是字符串,同 `/api/items`。 */+const card = (id: number) => {+ const { entity_refs: _refs, ...rest } = DETAILS.get(id)!;+ return { ...rest, tags: (rest.tags as { k: string }[]).map((tag) => tag.k) };+};+export const CATALOG = [11, 12, 13, 14, 15, 16];+export const RELATED = [14, 15, 16, 12];+const PARTS = { title: 'PCH-021', items: [21, 22, 23].map((id, at) => ({ ...card(id), part_label: String(at + 1) })) };+const EDITIONS = { title: 'PCH-031', items: [{ ...card(31), edition_label: '中字' }, { ...card(32), edition_label: '无码' }] };+export const PLAYLIST = { id: 7, name: '周末片单', items: [11, 14, 15, 16] };++const svg = (key: string, width: number, height: number) => {+ let hash = 0;+ for (const ch of key) hash = (hash * 31 + ch.charCodeAt(0)) >>> 0;+ return `<svg xmlns="http://www.w3.org/2000/svg" width="${width}" height="${height}">`+ + `<rect width="${width}" height="${height}" fill="hsl(${hash % 360} 35% 45%)"/></svg>`;+};++export interface ItemStub {+ /** 桩收到的写请求:路径与请求体,按到达顺序。 */+ writes: { url: string; body: Record<string, unknown> }[];+ /** 各读接口被请求了几次,按路径计。 */+ reads: Map<string, number>;+}++const body = (request: Request) => JSON.parse(request.postData() || '{}') as Record<string, unknown>;++async function stub(page: Page): Promise<ItemStub> {+ const state: ItemStub = { writes: [], reads: new Map() };+ const read = (path: string) => state.reads.set(path, (state.reads.get(path) || 0) + 1);+ const playlists = new Map<number, { id: number; name: string; ids: number[]; current: number | null }>([+ [PLAYLIST.id, { id: PLAYLIST.id, name: PLAYLIST.name, ids: [...PLAYLIST.items], current: 11 }],+ ]);+ const playlistPayload = (id: number) => {+ const row = playlists.get(id)!;+ return { id: row.id, name: row.name, items: row.ids.map(card), current_asset_id: row.current };+ };+ const json = (path: string, respond: (url: URL, request: Request) => unknown) =>+ page.route((url) => url.pathname === path, (route) => {+ const request = route.request();+ if (request.method() === 'GET') read(path);+ else state.writes.push({ url: path, body: body(request) });+ return route.fulfill({ json: respond(new URL(request.url()), request) });+ });+ await json('/api/item', (url) => DETAILS.get(Number(url.searchParams.get('id'))) || { error: '这一条已不在账本里' });+ await json('/api/items', () => ({ items: CATALOG.map(card), total: CATALOG.length, has_more: false }));+ await json('/api/related', () => ({ items: RELATED.map(card) }));+ await json('/api/parts', () => PARTS);+ await json('/api/editions', () => EDITIONS);+ await json('/api/sources', () => ({ sources: [{ location: 'local', online: true }, { location: '115', online: false }] }));+ await json('/api/playlists', () => ({+ items: [...playlists.values()].map((row) => ({ id: row.id, name: row.name, item_count: row.ids.length })),+ }));+ await json('/api/playlist', (url, request) => {+ if (request.method() === 'GET') return playlistPayload(Number(url.searchParams.get('id')));+ const sent = body(request) as { action: string; id?: number; name?: string; asset_id?: number; asset_ids?: number[] };+ if (sent.action === 'create') {+ const id = Math.max(...playlists.keys()) + 1;+ playlists.set(id, { id, name: sent.name || '', ids: sent.asset_ids || [], current: null });+ return { ok: true, playlist: playlistPayload(id) };+ }+ const row = playlists.get(sent.id!)!;+ if (sent.action === 'reorder') row.ids = [...sent.asset_ids!];+ if (sent.action === 'remove') row.ids = row.ids.filter((id) => id !== sent.asset_id);+ if (sent.action === 'add') row.ids = [...row.ids, ...sent.asset_ids!.filter((id) => !row.ids.includes(id))];+ if (sent.action === 'progress') row.current = sent.asset_id!;+ if (sent.action === 'delete') { playlists.delete(row.id); return { ok: true } }+ return { ok: true, playlist: playlistPayload(row.id) };+ });+ const feedback = new Map<number, string | null>();+ await json('/api/feedback', (_url, request) => {+ const sent = body(request) as { id: number; kind: string; value?: number };+ if (sent.kind === 'rate') return { rating: sent.value || null };+ if (sent.kind === 'dislike' || sent.kind === 'seen') {+ const next = feedback.get(sent.id) === sent.kind ? null : sent.kind;+ feedback.set(sent.id, next);+ return { feedback: next, disposal: null, o_count: 1 };+ }+ return { feedback: feedback.get(sent.id) || null, disposal: sent.kind === 'dispose' ? 'trash' : null, o_count: 1 };+ });+ await json('/api/item-tag', () => ({ ok: true }));+ const later = new Set<number>();+ await json('/api/watch-later', (_url, request) => {+ const id = Number(body(request).id);+ if (later.has(id)) later.delete(id); else later.add(id);+ return { watch_later: later.has(id) };+ });+ await json('/api/quality-goal', (_url, request) => ({ better_version: !!body(request).wanted, better_version_reason: '' }));+ await json('/api/preference', (_url, request) => ({ liked: !!body(request).liked, like_reason: String(body(request).reason || '') }));+ await page.route((url) => /^\/api\/assets\/\d+\/subtitles$/.test(url.pathname),+ (route) => route.fulfill({ json: { subtitles: [] } }));+ await page.route((url) => ['/api/play', '/api/activity', '/api/stream-cancel'].includes(url.pathname),+ (route) => route.fulfill({ json: { ok: true } }));+ await page.route((url) => url.pathname === '/api/stream-plan', (route) => route.fulfill({ json: { protocol: 'direct' } }));+ await page.route((url) => url.pathname === '/stream', (route) => route.fulfill({ status: 204, body: '' }));+ await page.route((url) => ['/poster', '/cover', '/logo', '/entity-image', '/avatar'].includes(url.pathname), (route) => {+ const url = new URL(route.request().url());+ const cover = url.pathname === '/cover';+ return route.fulfill({ contentType: 'image/svg+xml', body: svg(url.search, cover ? 800 : 320, cover ? 538 : 180) });+ });+ return state;+}++export interface ItemVisit extends Visit {+ stub: ItemStub;+}++/** 打开一页:桩与设置装好之后重新载入,等到 `ready` 出现、等待态结束。 */+export async function openItemPage(browser: Browser, path: string, viewport: Viewport,+ { settings = {}, ready = '#stage[open] [data-item-side]' }: { settings?: Record<string, unknown>; ready?: string } = {},+): Promise<ItemVisit> {+ const opened = await visit(browser, '/', viewport);+ const page = opened.page;+ await page.context().addInitScript((value) => {+ localStorage.setItem('peach.settings.v1', JSON.stringify(value));+ }, { detailAutoplay: false, relatedLimit: 12, ...settings });+ const stubbed = await stub(page);+ await page.goto(new URL(path, page.url()).toString(), { waitUntil: 'load' });+ await page.locator(ready).first().waitFor({ timeout: 15_000 });+ await settle(page);+ return { ...opened, stub: stubbed };+}diff --git a/frontend/src/islands.ts b/frontend/src/islands.tsindex 89e5fa4c4..af1c6b31a 100644--- a/frontend/src/islands.ts+++ b/frontend/src/islands.ts@@ -34,7 +34,6 @@ export { junkCountSkeletonHtml, junkPath, junkRoute } from './junk-queue';* 页面自己管数据,首屏落在共用的 Query 缓存里。 */export interface IslandContracts {'catalog-grid': ReactBundle.CatalogGridProps;- 'cover-crop': ReactBundle.CoverCropProps;'data-cleanup': ReactBundle.DataCleanupProps;duplicates: ReactBundle.DuplicatesProps;'entity-body': ReactBundle.EntityBodyProps;@@ -44,6 +43,7 @@ export interface IslandContracts {'follow-feed': ReactBundle.FollowFeedProps;'follow-manage': ReactBundle.FollowManageProps;index: ReactBundle.IndexProps;+ 'item-detail': ReactBundle.ItemDetailProps;'junk-queue': ReactBundle.JunkQueueProps;'library-processing': ReactBundle.LibraryProcessingProps;playlists: ReactBundle.PlaylistsProps;@@ -68,7 +68,6 @@ interface Island {const REGISTRY: { [N in IslandName]: Island } = {'catalog-grid': { react: 'catalog-grid' },- 'cover-crop': { react: 'cover-crop' },'data-cleanup': { react: 'data-cleanup' },duplicates: { react: 'duplicates' },'entity-body': { react: 'entity-body' },@@ -78,6 +77,7 @@ const REGISTRY: { [N in IslandName]: Island } = {'follow-feed': { react: 'follow-feed' },'follow-manage': { react: 'follow-manage' },index: { react: 'index' },+ 'item-detail': { react: 'item-detail' },'junk-queue': { react: 'junk-queue' },'library-processing': { react: 'library-processing' },playlists: { react: 'playlists' },diff --git a/frontend/src/legacy/ui.d.ts b/frontend/src/legacy/ui.d.tsindex 2ae69680b..eb9e32951 100644--- a/frontend/src/legacy/ui.d.ts+++ b/frontend/src/legacy/ui.d.ts@@ -20,6 +20,9 @@ export declare function indexSkeletonHtml(options: {export declare function checkboxHtml(inputAttrs?: string): string;export declare function loadingDotsHtml(label?: string, options?: { className?: string }): string;export declare function progressHtml(label: string, value: number, max?: number, options?:{variant?:'active'|'warning'|'error';stops?:{value:number;label:string}[]}): string;+/** 全站菜单面板的开合口:进场去掉 `hidden`,退场放完 150ms 动效再藏起,之后调 `finish`。 */+export declare function presentMenu(menu: HTMLElement): void;+export declare function dismissMenu(menu: HTMLElement, finish?: () => void): void;export declare function confirmModal(options: {title: string; body: string; confirmLabel: string; cancelLabel?: string; danger?: boolean; onConfirm?: () => Promise<unknown>}): Promise<{confirmed: boolean; result?: unknown}>;export declare function selectFieldHtml(items: string[][], current: string,diff --git a/frontend/src/react/bundle.d.ts b/frontend/src/react/bundle.d.tsindex b81013359..6f9b7f611 100644--- a/frontend/src/react/bundle.d.ts+++ b/frontend/src/react/bundle.d.ts@@ -12,6 +12,7 @@ import type { EntityFilterProps } from './entity-filter/entity-filter';import type { EntityBodyProps } from './entity-body/entity-body';import type { FollowDetailProps } from './follow-detail/follow-detail';import type { FollowFeedProps } from './follow-feed/follow-feed';+import type { ItemDetailProps } from './item-detail/item-detail';export type { IndexProps };export type { CatalogGridProps };@@ -21,6 +22,7 @@ export type { EntityFilterProps };export type { EntityBodyProps };export type { FollowDetailProps };export type { FollowFeedProps };+export type { ItemDetailProps };export interface AccessState { mode: 'open' | 'password' | 'legacy' | 'locked'; revision: string }@@ -341,7 +343,7 @@ export interface CoverCropProps {coverUrl: string;/** 当前生效的取景框,没有就是 null。形状同接口的 `poster_box`。 */box: { x0: number; y0: number; x1: number; y1: number; px: number[] } | null;- /** 存好之后让宿主重画封面。遗留层传的是「重新进这一页」。 */+ /** 存好之后让宿主重画封面:作品详情重取这一条,接口给的 `poster_box` 换成新框。 */onSaved(): void;}@@ -389,7 +391,6 @@ export interface ReactPages {'catalog-grid': ReactPage<CatalogGridProps>;configuration: ReactPage<ConfigurationProps>;'configuration-summary': ReactPage<ConfigurationSummaryProps>;- 'cover-crop': ReactPage<CoverCropProps>;'data-cleanup': ReactPage<DataCleanupProps>;duplicates: ReactPage<DuplicatesProps>;'entity-body': ReactPage<EntityBodyProps>;@@ -399,6 +400,7 @@ export interface ReactPages {'follow-feed': ReactPage<FollowFeedProps>;'follow-manage': ReactPage<FollowManageProps>;index: ReactPage<IndexProps>;+ 'item-detail': ReactPage<ItemDetailProps>;'junk-queue': ReactPage<JunkQueueProps>;'library-processing': ReactPage<LibraryProcessingProps>;playlists: ReactPage<PlaylistsProps>;diff --git a/frontend/src/react/catalog-grid/catalog-grid.ts b/frontend/src/react/catalog-grid/catalog-grid.tsindex fb0cbe617..8fc1fb697 100644--- a/frontend/src/react/catalog-grid/catalog-grid.ts+++ b/frontend/src/react/catalog-grid/catalog-grid.ts@@ -9,7 +9,7 @@* - 目录每一页可见的卡够 8 张时,第 8 位插一张 Mix;种子从 Mix 位再往下隔一屏开始找,* 不会和同屏的卡撞图。* - 竖屏带每接一页出现一条,落点在这一页新增的那几行之间的行边界上随机取一个。 */-import type { QueryKey } from '@tanstack/react-query';+import type { InfiniteData, QueryKey } from '@tanstack/react-query';import { apiGet } from '../../api';import { javImageKind } from '../../jav-artwork';@@ -218,3 +218,18 @@ export function splitSections(tiles: readonly Tile[], cuts: readonly ShortsCut[]sections.push({ start, tiles: tiles.slice(start), strip: null });return sections;}++/** 每一版已缓存的目录与作品区里的同一张卡换上 `patch`(详情里评分、反馈、稍后看之后)。+ * 只改字段不增删卡:详情不知道每一版筛着哪一档,移出与否等下次取数。 */+export function replaceCatalogItem(id: number, patch: Partial<MediaItem>): void {+ queryClient.setQueriesData<InfiniteData<GridPage>>({+ queryKey: ['catalog-grid'], predicate: (query) => Array.isArray((query.state.data as InfiniteData<GridPage>)?.pages),+ }, (data) => {+ if (!data || !data.pages.some((page) => page.items.some((item) => item.id === id))) return data;+ return {+ ...data,+ pages: data.pages.map((page) => (page.items.some((item) => item.id === id)+ ? { ...page, items: page.items.map((item) => (item.id === id ? { ...item, ...patch } : item)) } : page)),+ };+ });+}diff --git a/frontend/src/react/components/mix-queue.tsx b/frontend/src/react/components/mix-queue.tsxindex b14a1fb0a..50559f79b 100644--- a/frontend/src/react/components/mix-queue.tsx+++ b/frontend/src/react/components/mix-queue.tsx@@ -34,18 +34,25 @@ export function MixQueue({ kind, title, summary, onClose, actions, listRef, chil);}-/** 队列里的一行:左边缩略图(时长角标由调用方放进 `pic`),右边两行字。 */-export function MixQueueRow({ current, pic, children, ...button }: {+/** 队列里的一行:左边缩略图(时长角标由调用方放进 `pic`),右边两行字。作品队列的字前面还有+ * 一枚署名头像(`lead`,和卡片的署名层同一套);播放列表的行尾多一组抓手与移出(`after`),+ * 拖动排序认的是行上的 `row` 属性。 */+export function MixQueueRow({ current, pic, lead, after, row, children, ...button }: {current: boolean;pic: ReactNode;+ lead?: ReactNode;+ after?: ReactNode;+ row?: Record<`data-${string}`, string | number>;children: ReactNode;} & ButtonHTMLAttributes<HTMLButtonElement> & Record<`data-${string}`, string | number>) {+ const text = <span className="mixitemtext">{children}</span>;return (- <div className="mixrow">+ <div className="mixrow" {...row}><button type="button" className={current ? 'mixitem current' : 'mixitem'} aria-current={current ? 'true' : 'false'} {...button}><span className="mixitempic">{pic}</span>- <span className="mixitemtext">{children}</span>+ {lead === undefined ? text : <span className="mixitemmeta">{lead}{text}</span>}</button>+ {after}</div>);}diff --git a/frontend/src/react/entry.tsx b/frontend/src/react/entry.tsxindex 316e5344d..7abcdffc1 100644--- a/frontend/src/react/entry.tsx+++ b/frontend/src/react/entry.tsx@@ -13,7 +13,6 @@ import { prefetchTasks } from './activity/tasks';import type * as Bundle from './bundle';import { prefetchCatalogGrid } from './catalog-grid/catalog-grid';import { CatalogGridPage } from './catalog-grid/catalog-grid-page';-import { CoverCrop } from './cover-crop/cover-crop-page';import { prefetchDataCleanup } from './data-cleanup/data-cleanup';import { DataCleanupPage } from './data-cleanup/data-cleanup-page';import { prefetchDuplicates } from './duplicates/duplicates';@@ -28,6 +27,8 @@ import { FollowFeedPage } from './follow-feed/follow-feed-page';import { prefetchFollowManage } from './follow-manage/follow-manage';import { FollowManagePage } from './follow-manage/follow-manage-page';import { prefetchIndex } from './index/index-data';+import { prefetchItemDetail } from './item-detail/item-detail';+import { ItemDetailPage } from './item-detail/item-detail-page';import { IndexPage } from './index/index-page';import { JunkQueuePage } from './junk-queue/junk-queue-page';import { prefetchLibraryProcessing } from './library-processing/library-processing';@@ -102,8 +103,6 @@ const LibraryProcessing = (props: Bundle.LibraryProcessingProps) => (export const pages: Bundle.ReactPages = {activity: { prefetch: (_props, signal) => prefetchTasks(signal), mount: mounter(ActivityPage) },'catalog-grid': { prefetch: prefetchCatalogGrid, mount: mounter(CatalogGridPage) },- /* 裁剪封面同理:详情页每进一次都挂这枚键,首屏没有要取的东西,图到点开才量。 */- 'cover-crop': { prefetch: async () => {}, mount: mounter(CoverCrop) },configuration: {prefetch: (_props, signal) => prefetchConfiguration(signal), mount: mounter(ConfigurationPage),},@@ -126,6 +125,8 @@ export const pages: Bundle.ReactPages = {/* 关注列表第一页与凭据两趟并行,挂上就是最终样子;换筛选之后的取数由页面自己的查询驱动。 */'follow-detail': { prefetch: prefetchFollowDetail, mount: mounter(FollowDetailPage) },'follow-feed': { prefetch: prefetchFollowFeed, mount: mounter(FollowFeedPage) },+ /* 队列与条目在预取里取齐,挂上就是最终样子;在线资产转关注、条目已删或队列空了都在这里改道。 */+ 'item-detail': { prefetch: prefetchItemDetail, mount: mounter(ItemDetailPage) },/* 首屏只取来源清单与凭据状态,地址栏指着「订阅源」时连它一起取。检查更新与查找那两趟后台任务的快照不在首屏里:它们常年躺着上一趟的回执,等它们只会让首屏多一个往返。 */'follow-manage': {diff --git a/frontend/src/react/item-detail/item-detail-page.tsx b/frontend/src/react/item-detail/item-detail-page.tsxnew file mode 100644index 000000000..956a2f478--- /dev/null+++ b/frontend/src/react/item-detail/item-detail-page.tsx@@ -0,0 +1,858 @@+/* 作品详情(ADR-0031):舞台里那一整块——播放区、右侧队列、侧栏与下方的「接着看」。+ *+ * 舞台(`<dialog id="stage">`)、它的进出场、小窗与 Video.js 都归壳,关注详情也在用;这里只画+ * 舞台里的内容,视频元素画好之后经 `actions.mountPlayer` 交给壳。点身份、标签、地区回列表或+ * 资料页,队列里换一条,都经壳:舞台上的播放器要先拆、地址与顶栏上下文要换。+ *+ * 写操作(评分、标签、反馈、稍后看、高清目标、偏好、播放列表排序与移出)都在岛里发,成功后+ * 把服务端回的那几个字段换进 `['item', id]`,目录网格缓存里的同一张卡一起换,不重读列表。 */+import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState, type KeyboardEvent, type ReactNode } from 'react';+import { useMutation, useQuery } from '@tanstack/react-query';+import { esc, fmtDur, fmtSize, icon, requestErrorMessage } from '@peach/legacy/core';+import { confirmModal, dismissMenu, fitSkeleton, presentMenu, spinnerHtml } from '@peach/legacy/ui';++import { apiGet, apiSend } from '../../api';+import { CatalogGridPage } from '../catalog-grid/catalog-grid-page';+import { replaceCatalogItem } from '../catalog-grid/catalog-grid';+import type { MediaItem } from '../catalog-grid/types';+import { RetryNote } from '../components/grid-reveal';+import { MixQueue, MixQueueRow } from '../components/mix-queue';+import { CoverCrop } from '../cover-crop/cover-crop-page';+import { queryClient } from '../query';+import {+ CAST_SHOWN, EDITION_TONE, FEEDBACK_URL, ITEM_TAG_URL, PLAYLIST_URL, PREFERENCE_URL, QUALITY_GOAL_URL,+ RELATED_URL, WATCH_LATER_URL, chooseItem, clampRating, detailTags, feedbackReceipt, fetchItem, fetchQueue,+ hasTag, identityGroups, itemKey, mediaGate, movedOrder, nextRating, partLabelHtml, pickerSections, playlistQueue,+ queueCopy, queueKey, ratingStars, ratingText, realWatched, recentTags, relatedKey, rememberTag, sameOrder,+ withPartLabel, withTag, withoutTag,+ type DetailEntityRef, type DetailItem, type DetailQueue, type DetailTag, type ItemDetailActions,+ type ItemDetailHelpers, type ItemDetailProps, type MediaGate, type PlaylistPayload, type QueueItem, type TagCount,+} from './item-detail';++/** 字形原样取壳那一份 `icon()`:骨架与遗留详情画的就是它,换成别的字形接管那一拍会跳。 */+const Glyph = ({ name }: { name: string }) => (+ <span className="contents" dangerouslySetInnerHTML={{ __html: icon(name) }} />+);+const Html = ({ html }: { html: string }) => <span className="contents" dangerouslySetInnerHTML={{ __html: html }} />;++export function ItemDetailPage(props: ItemDetailProps) {+ const { queue: ref, actions } = props;+ const queueResult = useQuery({+ queryKey: ref ? queueKey(ref) : ['item-queue', 'none'],+ queryFn: ({ signal }) => fetchQueue(ref!, props.helpers, signal),+ enabled: !!ref,+ });+ const queue = ref ? queueResult.data || null : null;+ const id = queue ? chooseItem(queue, props.id) : ref ? null : props.id;+ const result = useQuery({+ queryKey: itemKey(id ?? 0),+ queryFn: ({ signal }) => fetchItem(id!, signal),+ enabled: id != null,+ });+ if (!result.data || (ref && !queue)) {+ const error = result.error || queueResult.error;+ return (+ <div className="sgrid" data-item-detail="">+ <div className="vwrap" data-item-media="none">+ <CloseStage onClose={actions.close} />+ <div data-item-placeholder="">+ {error ? <RetryNote message={requestErrorMessage(error)}+ onRetry={() => { if (queueResult.error) void queueResult.refetch(); if (result.error) void result.refetch() }} /> : null}+ </div>+ </div>+ </div>+ );+ }+ return <Detail key={result.data.id} {...props} item={withPartLabel(result.data, queue)} queue={queue} />;+}++/** 关闭键。`id` 留着:Escape、点浮窗外面与壳的兜底都按 `#closeStage` 找它再点一下。 */+const CloseStage = ({ onClose }: { onClose(): void }) => (+ <button type="button" className="closestage" id="closeStage" title="关闭" aria-label="关闭" onClick={onClose}+ dangerouslySetInnerHTML={{ __html: icon('x') }} />+);++function Detail(props: ItemDetailProps & { item: DetailItem; queue: DetailQueue | null }) {+ const { item, queue, actions, helpers } = props;+ const write = useDetailWrite(item, actions, props.grid.cache, helpers.tagLabel);++ /* 画出来的是哪一条只报一次:写完换进来的是同一条的新对象,不能因此重推地址、重画顶栏。 */+ const presented = useRef(item);+ useLayoutEffect(() => { actions.present(presented.current, queue) }, [actions]);+ /* 播放列表记下续播位置:每打开一条报一次,失败不打扰(下次打开照旧从记下的那一条开始)。 */+ useEffect(() => {+ if (queue?.kind !== 'playlist') return;+ apiSend(PLAYLIST_URL, { action: 'progress', id: queue.playlistId, asset_id: item.id }).catch(() => {});+ }, []);++ const gate = mediaGate(item, helpers.sourceOffline(item.location || ''));+ return (+ <>+ <div className={queue ? 'sgrid mixgrid' : 'sgrid'} data-item-detail="">+ <MediaFrame item={item} gate={gate} helpers={helpers} actions={actions} />+ {queue ? <Queue queue={queue} itemId={item.id} helpers={helpers} actions={actions} /> : null}+ <Side item={item} queue={queue} write={write} helpers={helpers} actions={actions} />+ </div>+ {!queue && props.relatedLimit > 0 ? <Related {...props} /> : null}+ </>+ );+}++/* ── 播放区 ── */++function MediaFrame({ item, gate, helpers, actions }: {+ item: DetailItem; gate: MediaGate; helpers: ItemDetailHelpers; actions: ItemDetailActions;+}) {+ /* 计费来源先挡一层说明,点了才拉流;没挂载与在线拦截的那两种不挂播放器。 */+ const [started, setStarted] = useState<'auto' | 'clicked' | ''>(gate ? '' : 'auto');+ const videoRef = useRef<HTMLVideoElement>(null);+ const mounting = useRef(item);+ useLayoutEffect(() => {+ const node = videoRef.current;+ if (!node || !started) return;+ return actions.mountPlayer(node, mounting.current, null, started === 'clicked' ? { autoplay: true } : undefined);+ }, [actions, started]);+ const badge = helpers.badgeHtml(item.location || '', item.cost || '', 'srcbig');+ return (+ <div className="vwrap" data-item-media={gate || 'video'}>+ <CloseStage onClose={actions.close} />+ {gate === 'offline' ? <OfflineGate item={item} badge={badge} helpers={helpers} actions={actions} />+ : gate === 'online' ? (+ <div className="gate" id="onlineGate" role="status" data-item-gate="online">+ <Html html={badge} />+ <b>在线资产</b>+ <span>这条没有对应的关注条目,媒体地址无从解析。</span>+ <button className="chip" id="openSavedFollow" type="button" onClick={actions.openSavedFollow}>打开已保存关注</button>+ </div>+ ) : gate === 'metered' && !started ? (+ <div className="gate" id="gate" data-item-gate="metered" onClick={() => setStarted('clicked')}>+ <Html html={badge} />+ <span>点此开始拉流 · {fmtSize(item.size || 0)}</span>+ </div>+ ) : null}+ <video ref={videoRef} id="vid" className="video-js vjs-big-play-centered" controls playsInline+ preload={gate ? 'none' : 'metadata'} hidden={gate === 'offline' || gate === 'online' || (gate === 'metered' && !started)} />+ </div>+ );+}++function OfflineGate({ item, badge, helpers, actions }: {+ item: DetailItem; badge: string; helpers: ItemDetailHelpers; actions: ItemDetailActions;+}) {+ const [checking, setChecking] = useState(false);+ const [still, setStill] = useState(false);+ const retry = async () => {+ setChecking(true);+ const online = await actions.checkSource(item.location || '').catch(() => false);+ setChecking(false);+ if (online) actions.reopen();+ else setStill(true);+ };+ return (+ <div className="gate offline" id="offlineGate" role="status" data-item-gate="offline">+ <Html html={badge} />+ <b>脱盘模式</b>+ <span>{helpers.offlineReason(item.location || '')}</span>+ <button className="chip" id="offlineRetry" type="button" disabled={checking} onClick={() => void retry()}>+ {still ? '仍未挂载 · 再试' : '重新检测'}+ </button>+ </div>+ );+}++/* ── 队列 ── */++function Queue({ queue, itemId, helpers, actions }: {+ queue: DetailQueue; itemId: number; helpers: ItemDetailHelpers; actions: ItemDetailActions;+}) {+ const copy = queueCopy(queue);+ const list = useRef<HTMLDivElement | null>(null);+ const reorder = usePlaylistReorder(queue, itemId, actions);+ const reorderRef = useRef(reorder);+ reorderRef.current = reorder;+ const listRef = useCallback((node: HTMLDivElement | null) => {+ list.current = node;+ if (!node) return;+ helpers.wireDrag(node);+ /* 顺序直接拖:一列十几条,靠上移下移把最后一条挪到第二位要按十几次,而每一次都是一趟写库+ 加一次重绘。拖动中的行态由 `wireDragReorder` 挂在行上,行是按 id 复用的,重排之后监听还在。 */+ if (queue.kind === 'playlist') {+ helpers.wireDragReorder(node, {+ selector: '[data-queue-row]', attribute: 'data-queue-row',+ onMove: (from, target, after) => reorderRef.current.move(+from, +target, after),+ });+ }+ }, [helpers, queue.kind]);+ const saveMix = useSaveMix(queue, actions);+ const head = queue.kind === 'mix'+ ? <button type="button" data-save-mix="" title="保存为播放列表" aria-label="保存为播放列表" onClick={saveMix}+ dangerouslySetInnerHTML={{ __html: icon('playlist') }} />+ : queue.kind === 'playlist'+ ? <button type="button" data-edit-playlist="" title="编辑播放列表" aria-label="编辑播放列表" onClick={actions.editPlaylist}+ dangerouslySetInnerHTML={{ __html: icon('playlist') }} />+ : null;+ const ref = { kind: queue.kind, seedId: queue.seedId, playlistId: queue.playlistId };+ return (+ <MixQueue kind={queue.kind} title={copy.title} summary={copy.summary} onClose={actions.close} actions={head} listRef={listRef}>+ {queue.items.map((row) => {+ const edition = queue.kind === 'editions' && row.edition_label+ ? <i className={`qedition javedition ${EDITION_TONE[row.edition_label] || 'censored'}`}>{row.edition_label}</i> : null;+ return (+ <MixQueueRow key={row.id} current={row.id === itemId} data-queue-item={row.id} row={{ 'data-queue-row': row.id }}+ onClick={() => actions.openQueueItem(ref, row.id)}+ pic={<><Html html={helpers.queueThumbHtml(row)} /><i className="dur mono">{fmtDur(row.duration)}</i></>}+ lead={<Html html={helpers.queueAvatarHtml(row)} />}+ after={queue.kind === 'playlist' ? (+ <span className="queueedit">+ <i className="queuegrip" aria-hidden="true"><Glyph name="grip-vertical" /></i>+ <button type="button" data-queue-remove={row.id} title="移出播放列表" aria-label="移出播放列表"+ onClick={() => reorder.remove(row.id)}><Glyph name="x" /></button>+ </span>+ ) : null}>+ <span className="mixitemhead">{edition}<b data-middle-truncate="">{helpers.displayName(row)}</b></span>+ <span data-truncate-end="">{queue.kind === 'parts' ? `第 ${row.part_label || ''} 卷` : helpers.mixLabel(row)}</span>+ </MixQueueRow>+ );+ })}+ </MixQueue>+ );+}++/** 保存 Mix:壳弹表单(舞台是原生模态,弹层要进同一层),确认时由这里写库。 */+function useSaveMix(queue: DetailQueue, actions: ItemDetailActions) {+ const save = useMutation({+ mutationFn: (name: string) => apiSend<{ playlist: PlaylistPayload }>(PLAYLIST_URL, {+ action: 'create', name, asset_ids: queue.items.map((row) => row.id), source_kind: 'mix', source_seed_asset_id: queue.seedId,+ }).then((result) => result.playlist),+ });+ return () => actions.saveMix({ title: queue.title, count: queue.items.length, save: (name) => save.mutateAsync(name) });+}++/** 播放列表的排序与移出。两者写完都把服务端回的整份列表换进队列缓存,行原地重排,不重挂舞台;+ * 移出的正是这一条时才经壳换到下一条,列表被移空就回列表页。撤销拿的是动作之前那一份完整顺序,+ * 所以一次拖动无论跨多少行都只需按一次撤销。 */+function usePlaylistReorder(queue: DetailQueue, itemId: number, actions: ItemDetailActions) {+ const key = queueKey({ kind: 'playlist', playlistId: queue.playlistId });+ const apply = (playlist: PlaylistPayload) => {+ queryClient.setQueryData(key, playlistQueue(playlist));+ return playlist;+ };+ const write = (body: Record<string, unknown>) =>+ apiSend<{ playlist: PlaylistPayload }>(PLAYLIST_URL, { id: queue.playlistId, ...body }).then((result) => result.playlist);+ const reorder = useMutation({+ mutationFn: (ids: number[]) => write({ action: 'reorder', asset_ids: ids }),+ onSuccess: (playlist, _ids) => { apply(playlist) },+ onError: (error) => actions.failure('调整播放顺序', error),+ });+ const ids = queue.items.map((row) => row.id);+ return {+ move: async (from: number, target: number, after: boolean) => {+ if (queue.kind !== 'playlist') return;+ const next = movedOrder(ids, from, target, after);+ if (sameOrder(next, ids)) return;+ const before = ids;+ await reorder.mutateAsync(next);+ actions.toast('已调整播放顺序', { undo: async () => { apply(await write({ action: 'reorder', asset_ids: before })) } });+ },+ remove: (assetId: number) => {+ const before = ids;+ void confirmModal({+ title: '移出播放列表', body: '这个视频将从播放列表移除,视频文件保留。', confirmLabel: '移出播放列表',+ onConfirm: async () => {+ const playlist = await write({ action: 'remove', asset_id: assetId });+ /* 撤销要把它放回它那一位:`add` 只会补在末尾,所以补完再按移出之前那份顺序排一次。+ 列表被这一下清空时它已经不在页面上,撤销后带回列表页而不是空队列。 */+ actions.toast('已移出播放列表', {+ undo: async () => {+ await write({ action: 'add', asset_ids: [assetId] });+ const restored = apply(await write({ action: 'reorder', asset_ids: before }));+ if (!playlist.items.length || assetId === itemId) {+ actions.openQueueItem({ kind: 'playlist', playlistId: restored.id }, itemId, false);+ }+ },+ });+ if (!playlist.items.length) { actions.openPlaylists(); return }+ apply(playlist);+ if (assetId === itemId) {+ actions.openQueueItem({ kind: 'playlist', playlistId: playlist.id }, playlist.current_asset_id || playlist.items[0]!.id, false);+ }+ },+ });+ },+ };+}++/* ── 侧栏 ── */++function Side({ item, queue, write, helpers, actions }: {+ item: DetailItem; queue: DetailQueue | null; write: DetailWrite; helpers: ItemDetailHelpers; actions: ItemDetailActions;+}) {+ const online = item.location === 'online';+ const busy = write.busyAttrs;+ const [reasonOpen, setReasonOpen] = useState(false);+ return (+ <div className="side" data-item-side="">+ <div className="sidecontent">+ <DetailTitle item={item} queue={queue} helpers={helpers} actions={actions} onStatus={write.setSourceState} />+ {online ? null : <span className="srcstate detailtitlestate" aria-live="polite">{write.sourceState}</span>}+ <Rating item={item} write={write} />+ <div className="smeta mono" data-reveal-line="">+ <span className="detailmetaitem"><Glyph name="monitor" /><span>{item.width || '?'}×{item.height || '?'}</span></span>+ <span className="detailmetaitem"><Glyph name="hard-drive" /><span>{fmtSize(item.size || 0)}</span></span>+ {item.release_date ? <span className="detailmetaitem"><Glyph name="calendar" /><span>{item.release_date}</span></span> : null}+ {item.region_label ? (+ <button className="detailmetaitem regionlink" type="button" data-open-region={item.region || ''}+ title={item.region_settled ? '已判定的产地;打开同产地的作品' : '按番号或厂牌推断的产地,批量判定后不再变;打开同产地的作品'}+ onClick={() => actions.openRegion(item.region || '')}>+ <Glyph name="globe" /><span>{item.region_label}{item.region_settled ? '' : '(推断)'}</span>+ </button>+ ) : null}+ </div>+ <Identity item={item} helpers={helpers} actions={actions} />+ <Tags item={item} write={write} helpers={helpers} actions={actions} />+ <Trace item={item} />+ <div className="fb" data-item-feedback="">+ <button type="button" className="like" id="likeBtn" aria-label={item.liked ? '取消喜欢' : '喜欢'} title="喜欢 · 记录口味偏好"+ aria-pressed={!!item.liked} {...busy('like')} onClick={() => write.preference({ liked: !item.liked })}><Glyph name="thumbs-up" /></button>+ <button type="button" className="reason" id="preferenceToggle" aria-label="喜爱理由" title="喜爱理由" aria-expanded={reasonOpen}+ aria-controls="preferencePanel" data-has-reason={String(!!item.like_reason)}+ onClick={() => setReasonOpen((open) => !open)}><Glyph name="notebook-pen" /></button>+ <button type="button" className="dislike" data-kind="dislike" aria-label="不合口味" title="不合口味 · 降低推荐权重"+ aria-pressed={item.feedback === 'dislike'} {...busy('dislike')} onClick={() => write.feedback('dislike')}><Glyph name="thumbs-down" /></button>+ <button type="button" className="seen" data-kind="seen" aria-label="看过了" title="看过了 · 只降低近期推荐"+ aria-pressed={item.feedback === 'seen'} {...busy('seen')} onClick={() => write.feedback('seen')}><Glyph name="eye" /></button>+ <button type="button" className="later" id="stageLater" aria-label="稍后看" title="稍后看 · 加入或移出队列"+ aria-pressed={!!item.watch_later} {...busy('later')} onClick={write.later}><Glyph name={item.watch_later ? 'check' : 'bookmark-plus'} /></button>+ <button type="button" className="playlistadd" id="addPlaylist" aria-label="加入播放列表" title="加入播放列表"+ onClick={() => actions.addToPlaylist(item)}><Glyph name="playlist" /></button>+ <button type="button" className="upgrade" id="betterVersion" aria-label="寻找更好版本"+ title={item.better_version ? (item.better_version_reason || '已标记寻找更好版本') : '寻找高清、无水印或完整版'}+ aria-pressed={!!item.better_version} {...busy('quality')} onClick={write.quality}><Glyph name="sparkles" /></button>+ <button type="button" className="dispose" data-kind="dispose" aria-label="移入回收站" title="移入回收站 · 文件仍保留,可从回收站永久清除"+ aria-pressed={item.disposal === 'trash'} {...busy('dispose')} onClick={() => write.feedback('dispose')}><Glyph name="trash" /></button>+ </div>+ <Preference item={item} open={reasonOpen} write={write} />+ <button type="button" className="obtn" data-kind="o" {...busy('o')} onClick={() => write.feedback('o')}>+ <Glyph name="sperm" /><span>记一次高潮</span><b className="mono" id="oCount">{item.o_count || 0}</b>+ </button>+ </div>+ </div>+ );+}++/* 标题默认折成两行,真溢出才给展开键:折叠态下 scrollHeight 比 clientHeight 高,就是有行被裁掉了。+ 展开与收起换字形——往下多看一截是 chevron-down,收回去是 chevron-up。展开键排在那排键最前面,+ 紧挨着它管的标题。标题文字本身也接这一下:人想看全文时手本来就落在字上。选中文字那一下不算,+ 那是在复制标题。溢出不只在打开那一刻判:影院模式和普通视图之间切换时标题栏宽度差一大截。 */+function DetailTitle({ item, queue, helpers, actions, onStatus }: {+ item: DetailItem; queue: DetailQueue | null; helpers: ItemDetailHelpers; actions: ItemDetailActions;+ onStatus(text: string): void;+}) {+ const text = useRef<HTMLSpanElement>(null);+ const [expanded, setExpanded] = useState(false);+ const [foldable, setFoldable] = useState(false);+ useLayoutEffect(() => {+ const node = text.current;+ if (!node) return;+ const measure = () => { if (!node.hasAttribute('data-expanded')) setFoldable(node.scrollHeight > node.clientHeight + 1) };+ const observer = new ResizeObserver(measure);+ observer.observe(node);+ measure();+ return () => observer.disconnect();+ }, []);+ const toggle = () => setExpanded((open) => !open);+ const html = helpers.badgeHtml(item.location || '', item.cost || '', 'srcbig') + helpers.titleHtml(item) + partLabelHtml(item, queue);+ return (+ <div className="detailtitle">+ <div className="stitle" data-reveal-line="">+ <span ref={text} className="stitletext" data-detail-title="" data-expanded={expanded ? '' : undefined}+ data-foldable={foldable ? '' : undefined}+ onClick={() => { if (foldable && !String(getSelection() || '')) toggle() }}+ dangerouslySetInnerHTML={{ __html: html }} />+ <span className="srctools detailtitletools">+ <button type="button" data-title-fold="" hidden={!foldable} aria-expanded={expanded}+ aria-label={expanded ? '收起标题' : '展开标题'} title={expanded ? '收起标题' : '展开完整标题'} onClick={toggle}>+ <Glyph name={expanded ? 'chevron-up' : 'chevron-down'} />+ </button>+ {/* 取景框存的是坐标不是图片:存完重取这一条,封面地址没变,变的是接口给的 `poster_box`。 */}+ {item.has_cover && item.code ? (+ <CoverCrop code={item.code} coverUrl={`/cover?code=${encodeURIComponent(item.code)}`} box={item.poster_box || null}+ onSaved={() => void queryClient.invalidateQueries({ queryKey: itemKey(item.id), exact: true })} />+ ) : null}+ {item.location === 'online' ? null : <SourceTools id={item.id} actions={actions} onStatus={onStatus} />}+ </span>+ </div>+ </div>+ );+}++/** 定位源文件与核对目录。对账删掉的可能就是这一条,删了就没什么可停留的,直接退回列表。 */+function SourceTools({ id, actions, onStatus }: { id: number; actions: ItemDetailActions; onStatus(text: string): void }) {+ const [busy, setBusy] = useState('');+ const reveal = async () => {+ if (busy) return;+ setBusy('reveal');+ onStatus('');+ onStatus(await actions.reveal(id));+ setBusy('');+ };+ const sync = async () => {+ if (busy) return;+ setBusy('sync');+ onStatus('正在核对目录…');+ const result = await actions.sync(id);+ onStatus(result.text);+ setBusy('');+ if (result.removed.includes(id)) actions.close();+ };+ return (+ <>+ <button type="button" data-reveal={id} title="在文件管理器里打开源文件所在目录" aria-label="定位源文件"+ {...(busy === 'reveal' ? { 'aria-busy': true, 'aria-disabled': true } : {})} onClick={() => void reveal()}+ dangerouslySetInnerHTML={{ __html: busy === 'reveal' ? spinnerHtml('正在定位') : icon('folder-open') }} />+ <button type="button" data-sync={id} title="核对该目录:磁盘上已删除的,移入 Peach 回收站" aria-label="同步删除"+ {...(busy === 'sync' ? { 'aria-busy': true, 'aria-disabled': true } : {})} onClick={() => void sync()}>+ <Glyph name="folder-sync" />+ </button>+ </>+ );+}++/* 五颗星站在标题和那行规格之间:评分是对这一条作品的判断,属于身份的一部分。 */+function Rating({ item, write }: { item: DetailItem; write: DetailWrite }) {+ const on = ratingStars(item.rating);+ return (+ <div className="rating" id="detailRating" role="group" aria-label="评分" data-value={clampRating(item.rating)}>+ <div className="ratingstars">+ {[1, 2, 3, 4, 5].map((star) => (+ <button key={star} type="button" className="star" data-rate={star} data-on={String(star <= on)}+ title={star === on ? '再点一次取消评分' : `${star} 星`}+ aria-label={star === on ? `取消评分(当前 ${star} 星)` : `评为 ${star} 星`}+ {...write.busyAttrs(`rate:${star}`)} onClick={() => write.rate(star)}><Glyph name="star" /></button>+ ))}+ </div>+ <span className="ratingvalue" aria-live="polite">{ratingText(item.rating)}</span>+ </div>+ );+}++/* 身份按类别分组:标签作为组标题写在上方,同类横向排开。逐行一个名字在共演作品上会把整个侧栏+ 撑满。一个都没有时,「未归属」就是这条作品所属的那一类,和女优、厂牌并列:点进去看得到全部。 */+function Identity({ item, helpers, actions }: { item: DetailItem; helpers: ItemDetailHelpers; actions: ItemDetailActions }) {+ const groups = useMemo(() => identityGroups(item), [item]);+ const [castOpen, setCastOpen] = useState(false);+ const overflow = Math.max(0, groups.cast.length - CAST_SHOWN);+ const cell = (kind: string, ref: DetailEntityRef, index: number) => {+ const hide = kind === 'performer' && index >= CAST_SHOWN && !castOpen;+ const face = kind === 'performer'+ ? <><span>{ref.name.slice(0, 1)}</span><Html html={helpers.faceHtml(ref)} /></>+ : kind === 'studio'+ ? <><span>{ref.name.slice(0, 2)}</span>{ref.has_logo+ ? <img src={`/logo?studio=${encodeURIComponent(ref.name)}&variant=icon`} alt="" loading="lazy" data-drop="self" /> : null}</>+ : <span>{ref.name.slice(0, 1)}</span>;+ const content = <><span className="idface">{face}</span><span className="idname">{ref.name}</span></>;+ const className = `idcell${ref.id ? ' entitylink' : ''}${kind === 'studio' ? ' logo' : ''}`;+ const overflowAttrs = kind === 'performer' && index >= CAST_SHOWN ? { 'data-castoverflow': '' } : {};+ if (!ref.id) return <span key={`${kind}:${ref.name}`} className={className} title={ref.name} hidden={hide} {...overflowAttrs}>{content}</span>;+ return (+ <button key={`${kind}:${ref.name}`} type="button" className={className} data-entity-kind={kind} data-entity-name={ref.name}+ title={ref.name} hidden={hide} {...overflowAttrs} onClick={() => actions.openEntity(kind, ref.name)}>{content}</button>+ );+ };+ const group = (label: string, kind: string, list: DetailEntityRef[], extra: ReactNode = null) => (list.length ? (+ <section key={`${kind}:${label}`} className={`idgroup idgroup-${kind}`}>+ <h5 className="idlabel">{label}</h5>+ <div className="idrow">{list.map((ref, index) => cell(kind, ref, index))}{extra}</div>+ </section>+ ) : null);+ const primary = [+ groups.unowned ? (+ <section key="unowned" className="idgroup idgroup-unowned">+ <h5 className="idlabel">归属</h5>+ <div className="idrow">+ <button className="idcell unownedlink" type="button" data-open-unowned="" title="打开未归属:馆藏里没有署名人的作品"+ onClick={actions.openUnowned}>+ <span className="idface"><Glyph name="user-round" /></span><span className="idname">未归属</span>+ </button>+ </div>+ </section>+ ) : group(helpers.performerLabel(item), 'performer', groups.cast, overflow && !castOpen+ ? <button type="button" className="castmore" id="castMore" onClick={() => setCastOpen(true)}>还有 {overflow} 位</button> : null),+ group('厂牌', 'studio', groups.studios),+ group('片商', 'studio', groups.makers),+ ].filter(Boolean);+ return (+ <div className="detailidentity" data-item-identity="">+ {primary.length ? <div className="identityprimary">{primary}</div> : null}+ {group('创作者', 'creator', groups.creators)}+ {groups.series.length ? (+ <section className="idgroup idseries">+ <h5 className="idlabel">系列</h5>+ <div className="seriesrows">+ {groups.series.map((ref) => (ref.id ? (+ <button key={ref.name} type="button" className="serieslink entitylink" data-entity-kind="series" data-entity-name={ref.name}+ title={ref.name} onClick={() => actions.openEntity('series', ref.name)}><Glyph name="tags" /><span>{ref.name}</span></button>+ ) : (+ <span key={ref.name} className="serieslink" title={ref.name}><Glyph name="tags" /><span>{ref.name}</span></span>+ )))}+ </div>+ </section>+ ) : null}+ </div>+ );+}++/* ── 标签 ── */++function Tags({ item, write, helpers, actions }: {+ item: DetailItem; write: DetailWrite; helpers: ItemDetailHelpers; actions: ItemDetailActions;+}) {+ const tags = detailTags(item, helpers);+ return (+ <div className="stags" id="detailTags" data-item-tags="">+ {tags.map((tag) => (+ <span key={tag.k} className="detailtag">+ <button type="button" className="tagfilter" data-tag={tag.k} onClick={() => actions.openTag(tag.k)}>{helpers.tagLabel(tag.k)}</button>+ <button type="button" className="tagremove" data-remove-tag={tag.k} title="从此视频隐藏该标签"+ aria-label={`删除标签 ${helpers.tagLabel(tag.k)}`} {...write.busyAttrs(`tag:${tag.k}`)}+ onClick={() => write.removeTag(tag)}><Glyph name="x" /></button>+ </span>+ ))}+ <TagPicker item={item} write={write} helpers={helpers} />+ </div>+ );+}++/* 标签选择器:最近使用 + 全部(或搜索结果),上下键挑、回车加,输入的词没有完全命中就多一格+ 「新建」。开合走全站菜单那一对口(`presentMenu`/`dismissMenu`),`hidden` 由它们管。+ 选字过程中框里是半截拼音,筛选按 `term` 走、组完字才跟上,不拿「zhon」去筛。 */+function TagPicker({ item, write, helpers }: { item: DetailItem; write: DetailWrite; helpers: ItemDetailHelpers }) {+ const plus = useRef<HTMLButtonElement>(null);+ const picker = useRef<HTMLDivElement>(null);+ const search = useRef<HTMLInputElement>(null);+ const composing = useRef(false);+ const [open, setOpen] = useState(false);+ const [query, setQuery] = useState('');+ const [term, setTerm] = useState('');+ const [active, setActive] = useState(-1);+ const close = useCallback(() => {+ if (picker.current) dismissMenu(picker.current);+ setOpen(false);+ }, []);+ /* 点外面就收起。延一拍再挂:打开它的这一次 pointerdown 还在冒泡,立刻挂上会自己把自己关掉。 */+ useEffect(() => {+ if (!open) return undefined;+ const handler = (event: PointerEvent) => {+ const target = event.target as Node;+ if (!picker.current?.contains(target) && target !== plus.current) close();+ };+ const timer = setTimeout(() => document.addEventListener('pointerdown', handler, true), 0);+ return () => { clearTimeout(timer); document.removeEventListener('pointerdown', handler, true) };+ }, [open, close]);+ const sections = open ? pickerSections(term, helpers.tagCandidates(), recentTags()) : { recent: [], results: [], create: '' };+ const options = [...sections.recent, ...sections.results, ...(sections.create ? [{ k: sections.create, n: -1 }] : [])];+ const pick = (tag: TagCount, selected: boolean) => {+ close();+ if (!selected) write.addTag(tag.k);+ };+ const keydown = (event: KeyboardEvent<HTMLInputElement>) => {+ /* 选字那一下的回车是定字,不是「新建这个标签」——半截拼音会真的建成标签。 */+ if (event.nativeEvent.isComposing) return;+ if (event.key === 'Escape') { event.preventDefault(); close(); plus.current?.focus(); return }+ if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {+ event.preventDefault();+ if (!options.length) return;+ const next = (active + (event.key === 'ArrowDown' ? 1 : -1) + options.length) % options.length;+ setActive(next);+ picker.current?.querySelectorAll('[data-pick]')[next]?.scrollIntoView({ block: 'nearest' });+ return;+ }+ if (event.key === 'Enter') {+ event.preventDefault();+ const chosen = active >= 0 ? options[active] : null;+ if (chosen) pick(chosen, chosen.n !== -1 && hasTag(item, chosen.k));+ else if (query.trim()) { close(); write.addTag(query.trim()) }+ }+ };+ let index = -1;+ const button = (tag: TagCount) => {+ index += 1;+ const at = index;+ const selected = hasTag(item, tag.k);+ return (+ <button key={`${at}:${tag.k}`} type="button" className={`tagpickitem${selected ? ' selected' : ''}${at === active ? ' active' : ''}`}+ data-pick={tag.k} aria-pressed={selected} onClick={() => pick(tag, selected)}>+ <Glyph name={selected ? 'check' : 'tags'} /><span className="pickname">{helpers.tagLabel(tag.k)}</span>+ <span className="pickcount">{(tag.n || 0).toLocaleString()}</span>+ </button>+ );+ };+ return (+ <>+ <button ref={plus} type="button" className="tagplus" id="tagPlus" title="添加标签" aria-label="添加标签" aria-expanded={open}+ onClick={() => {+ if (!picker.current) return;+ presentMenu(picker.current);+ setOpen(true); setQuery(''); setTerm(''); setActive(-1);+ requestAnimationFrame(() => search.current?.focus());+ }}><Glyph name="plus" /></button>+ <div ref={picker} className="tagpicker" id="tagPicker" role="dialog" aria-label="添加标签" hidden>+ <label className="tagpicksearch">+ <Glyph name="search" />+ <input ref={search} id="tagPickSearch" maxLength={80} placeholder="搜索或输入新标签" autoComplete="off" value={query}+ onChange={(event) => { setQuery(event.target.value); setActive(-1); if (!composing.current) setTerm(event.target.value) }}+ onCompositionStart={() => { composing.current = true }}+ onCompositionEnd={(event) => { composing.current = false; setTerm(event.currentTarget.value) }} onKeyDown={keydown} />+ </label>+ <div className="tagpickbody" id="tagPickBody">+ {open && sections.recent.length ? (+ <section className="tagpicksection"><h4>最近使用</h4><div className="tagpickgrid">{sections.recent.map(button)}</div></section>+ ) : null}+ {open ? (+ <section className="tagpicksection">+ <h4>{term.trim() ? '搜索结果' : '全部标签'}</h4>+ <div className="tagpickgrid">+ {sections.results.map(button)}+ {sections.create ? (() => {+ index += 1;+ const at = index;+ return (+ <button key="create" type="button" className={`tagpickitem${at === active ? ' active' : ''}`} data-pick={sections.create}+ onClick={() => { close(); write.addTag(sections.create) }}>+ <Glyph name="plus" /><span className="pickname">新建“{sections.create}”</span>+ </button>+ );+ })() : null}+ </div>+ </section>+ ) : null}+ </div>+ </div>+ </>+ );+}++/* ── 观看轨迹 ──+ 两条读数的 id 留给壳:Video.js 挂上之后,离开位置由 `wireTelemetry` 随播放写,真实观看在每次+ 上报之后回填。这里只画初值,之后不再改它们。 */+function Trace({ item }: { item: DetailItem }) {+ const real = realWatched(item);+ return (+ <div className="trace">+ <div className="trace-metric">+ <div className="lab mono"><span>离开位置</span><span id="ratioTxt">0%</span></div>+ <div className="bar"><u id="watched" /><b id="mark" /></div>+ </div>+ <div className="trace-metric">+ <div className="lab mono trace-real"><span>真实观看</span><span id="realTxt">{real == null ? '0%' : `${real.toFixed(0)}%`}</span></div>+ {/* oxlint-disable-next-line shadcn/no-inline-styles -- 宽度是这一条看过的比例,之后由壳的遥测随上报改写 */}+ <div className="bar"><u id="realBar" style={real == null ? undefined : { width: `${real.toFixed(1)}%` }} /></div>+ </div>+ </div>+ );+}++function Preference({ item, open, write }: { item: DetailItem; open: boolean; write: DetailWrite }) {+ const [reason, setReason] = useState(item.like_reason || '');+ const field = useRef<HTMLTextAreaElement>(null);+ useEffect(() => { if (open) field.current?.focus() }, [open]);+ /* 服务端回来的理由(保存、撤销)换进输入框;正在打字时本地这一份不被覆盖,因为它只在写完才变。 */+ useEffect(() => { setReason(item.like_reason || '') }, [item.like_reason]);+ const saving = write.busy.has('preference');+ return (+ <div className="preference" id="preferencePanel" hidden={!open}>+ <textarea ref={field} id="likeReason" maxLength={2000} placeholder="为什么喜欢?" value={reason}+ onChange={(event) => setReason(event.target.value)} />+ <div className="preference-foot">+ <span id="preferenceState" aria-live="polite">{write.preferenceState}</span>+ <button type="button" className="geist-button primary savepreference" id="savePreference" title="提交喜爱理由" aria-label="提交喜爱理由"+ {...write.busyAttrs('preference')} onClick={() => write.preference({ reason })}+ dangerouslySetInnerHTML={{ __html: saving ? `${spinnerHtml('正在提交喜爱理由')}<span>提交中…</span>` : '<span>提交</span>' }} />+ </div>+ </div>+ );+}++/* ── 接着看 ──+ 这一排的卡是目录网格的 items 模式:取数在这里,卡只画。没有可接着看的就整块拿掉,不留一个+ 标题配空白。它没有滚动条,拖动与滚轮都靠壳的 `wireDrag`。 */+function Related(props: ItemDetailProps & { item: DetailItem }) {+ const { item, relatedLimit, helpers, grid } = props;+ const result = useQuery({+ queryKey: relatedKey(item.id, relatedLimit),+ queryFn: async ({ signal }) => {+ const page = await apiGet<{ items?: MediaItem[] }>(RELATED_URL(item.id, relatedLimit), signal);+ grid.cache(page.items || []);+ return page.items || [];+ },+ });+ const [skeleton] = useState(() => helpers.relatedSkeletonHtml());+ const row = useCallback((node: HTMLDivElement | null) => { if (node) { fitSkeleton(node); helpers.wireDrag(node) } }, [helpers]);+ if (result.data && !result.data.length) return null;+ return (+ <div className="next" data-item-related="">+ {/* 作用域 Preflight 把标题字重清成 inherit,同队列头按字重三档取 semibold。 */}+ <h3 className="font-semibold">接着看</h3>+ <div ref={row} className="nrow" id="nrow">+ {result.data ? (+ <CatalogGridPage mode="items" variant="next" items={result.data} helpers={grid.helpers} actions={grid.actions}+ layout={props.layout} selectMode={props.selectMode} selected={props.selected} seekSeconds={props.seekSeconds}+ revision={0} cache={grid.cache} wireDrag={helpers.wireDrag} skeletonHtml={() => ''} />+ ) : result.isError ? null : <Html html={skeleton} />}+ </div>+ </div>+ );+}++/* ── 写操作 ──+ * 每一枚键各有自己的忙态(`aria-busy` + `aria-disabled`,控件仍可聚焦,重复触发由壳的+ * `wireBusyActions` 拦住)。成功后把服务端回的那几个字段换进 `['item', id]` 与目录缓存里同一张卡;+ * 撤销也是一次真实写回,写完同样换进去。 */+type DetailWrite = ReturnType<typeof useDetailWrite>;+type Patch = Partial<DetailItem>;++function useDetailWrite(item: DetailItem, actions: ItemDetailActions, cache: (items: MediaItem[]) => void,+ label: (tag: string) => string) {+ const id = item.id;+ const key = itemKey(id);+ const [busy, setBusy] = useState<ReadonlySet<string>>(() => new Set());+ const [sourceState, setSourceState] = useState('');+ const [preferenceState, setPreferenceState] = useState('');+ const mark = (name: string, on: boolean) => setBusy((now) => {+ const next = new Set(now);+ if (on) next.add(name); else next.delete(name);+ return next;+ });+ const current = () => queryClient.getQueryData<DetailItem>(key) || item;+ const apply = (patch: Patch | ((item: DetailItem) => DetailItem)) => {+ const next = typeof patch === 'function' ? patch(current()) : { ...current(), ...patch };+ queryClient.setQueryData(key, next);+ const card = { feedback: next.feedback, disposal: next.disposal, watch_later: next.watch_later, rating: next.rating, o_count: next.o_count };+ replaceCatalogItem(id, card);+ cache([next as unknown as MediaItem]);+ return next;+ };+ const post = <T,>(url: string, body: Record<string, unknown>) => apiSend<T>(url, { id, ...body });++ type Run = { name: string; action: string; run(): Promise<void> };+ const task = useMutation({+ mutationFn: ({ run }: Run) => run(),+ onError: (error, { action }) => actions.failure(action, error),+ onSettled: (_result, _error, { name }) => mark(name, false),+ });+ const start = (name: string, action: string, run: () => Promise<void>) => {+ if (busy.has(name)) return;+ mark(name, true);+ task.mutate({ name, action, run });+ };++ type FeedbackResult = { feedback?: string | null; disposal?: string | null; o_count?: number; rating?: number | null };+ const sendFeedback = async (kind: string, value?: number) => {+ const result = await post<FeedbackResult>(FEEDBACK_URL, value === undefined ? { kind } : { kind, value });+ if (kind === 'rate') apply({ rating: result.rating ?? null });+ else apply({ feedback: result.feedback ?? undefined, disposal: result.disposal ?? undefined, o_count: result.o_count });+ return result;+ };++ return {+ busy, sourceState, setSourceState, preferenceState,+ busyAttrs: (name: string) => (busy.has(name) ? { 'aria-busy': true, 'aria-disabled': true } as const : {}),++ rate: (star: number) => start(`rate:${star}`, '评分', async () => {+ const before = current().rating || 0;+ const value = nextRating(before, star);+ await sendFeedback('rate', value);+ actions.toast(value ? `已评 ${ratingStars(value)} 星` : '已取消评分', { undo: async () => { await sendFeedback('rate', before) } });+ }),++ feedback: (kind: string) => start(kind, '操作', async () => {+ const before = { feedback: current().feedback || null };+ const result = await sendFeedback(kind);+ actions.toast(feedbackReceipt(kind, result), {+ undo: async () => {+ if (kind === 'o') await sendFeedback('o-undo');+ else if (kind === 'dispose') await sendFeedback('dispose');+ else {+ if (result.feedback) await sendFeedback(result.feedback);+ if (before.feedback) await sendFeedback(before.feedback);+ }+ await actions.trashChanged(current().disposal || null, true);+ },+ });+ if (kind === 'dispose') await actions.trashChanged(result.disposal || null, false);+ }),++ later: () => start('later', '更新稍后看', async () => {+ const result = await post<{ watch_later: boolean }>(WATCH_LATER_URL, {});+ apply({ watch_later: result.watch_later });+ actions.toast(result.watch_later ? '已加入稍后看' : '已移出稍后看', {+ undo: async () => { apply({ watch_later: (await post<{ watch_later: boolean }>(WATCH_LATER_URL, {})).watch_later }) },+ });+ }),++ quality: () => start('quality', '更新版本需求', async () => {+ const before = { wanted: !!current().better_version, reason: current().better_version_reason || '' };+ type Goal = { better_version: boolean; better_version_reason?: string };+ const paint = (goal: Goal) => apply({ better_version: goal.better_version, better_version_reason: goal.better_version_reason || '' });+ const result = await post<Goal>(QUALITY_GOAL_URL, { wanted: !before.wanted });+ paint(result);+ actions.toast(result.better_version ? '已标记寻找更好版本' : '已取消寻找更好版本', {+ undo: async () => { paint(await post<Goal>(QUALITY_GOAL_URL, before)) },+ });+ }),++ /* 喜欢与理由是同一条偏好:点喜欢键只改 `liked`,提交理由时有字就算喜欢。 */+ preference: ({ liked, reason }: { liked?: boolean; reason?: string }) => {+ const name = liked === undefined ? 'preference' : 'like';+ start(name, '保存喜欢偏好', async () => {+ const before = { liked: !!current().liked, reason: current().like_reason || '' };+ const text = reason ?? before.reason;+ const wanted = liked ?? (before.liked || text.trim().length > 0);+ type Preference = { liked: boolean; like_reason?: string };+ const paint = (result: Preference) => apply({ liked: result.liked, like_reason: result.like_reason || '' });+ setPreferenceState('保存中…');+ try {+ paint(await post<Preference>(PREFERENCE_URL, { liked: wanted, reason: text }));+ } catch (error) {+ setPreferenceState('保存失败 · 请重试');+ throw error;+ }+ setPreferenceState('已保存');+ setTimeout(() => setPreferenceState((now) => (now === '已保存' ? '' : now)), 1400);+ const saved = current();+ actions.toast(saved.liked ? '已保存喜欢偏好' : '已取消喜欢', {+ undo: async () => { paint(await post<Preference>(PREFERENCE_URL, before)) },+ });+ });+ },++ removeTag: (tag: DetailTag) => start(`tag:${tag.k}`, '删除标签', async () => {+ const result = await post<{ ok?: boolean }>(ITEM_TAG_URL, { operation: 'remove', tag: tag.k });+ if (!result.ok) throw new Error('标签未删除');+ apply((now) => withoutTag(now, tag.k));+ actions.toast(`已删除标签「${label(tag.k)}」`, {+ undo: async () => {+ await post(ITEM_TAG_URL, { operation: 'add', tag: tag.k });+ apply((now) => withTag(now, tag));+ },+ });+ }),++ addTag: (raw: string) => {+ const tag = raw.trim();+ if (!tag) return;+ start(`add:${tag}`, '添加标签', async () => {+ const result = await post<{ ok?: boolean }>(ITEM_TAG_URL, { operation: 'add', tag });+ if (!result.ok) return;+ apply((now) => withTag(now, { k: tag, cat: 'general' }));+ rememberTag(tag);+ actions.toast(`已添加标签「${label(tag)}」`, {+ undo: async () => {+ await post(ITEM_TAG_URL, { operation: 'remove', tag });+ apply((now) => withoutTag(now, tag));+ },+ });+ });+ },+ };+}diff --git a/frontend/src/react/item-detail/item-detail.ts b/frontend/src/react/item-detail/item-detail.tsnew file mode 100644index 000000000..b9d920331--- /dev/null+++ b/frontend/src/react/item-detail/item-detail.ts@@ -0,0 +1,476 @@+/* 作品详情 `/item/:id` 与四种队列(Mix、分卷、版本、播放列表)的数据与判定(ADR-0031)。+ *+ * 岛挂在舞台(`<dialog id="stage">`)里壳建好的宿主上,舞台本身、进出场、小窗与 Video.js+ * 归壳,关注详情也在用同一套。条目归岛:`/api/items` 的卡片没有 `entity_refs`、标签也只是+ * 字符串,拿来当详情只会让身份区与标签区先画一版再跳,所以一律单条取 `GET /api/item?id=`。+ *+ * 队列也归岛,按 `{kind, seedId|playlistId}` 取、键里带上它们:同一个队列里换一条走缓存,+ * 从外面重新进来(`fresh`)才重取——壳只记着此刻开的是哪一个队列,用来判这一下。 */+import type { QueryKey } from '@tanstack/react-query';+import { esc, foldName } from '@peach/legacy/core';++import { apiGet } from '../../api';+import type { MediaCardActions, MediaCardHelpers, MediaCardLayout, MediaItem } from '../catalog-grid/types';+import { queryClient } from '../query';++/* ── 接口形状(`src/peach/web_catalog.py` 的 `q_item`) ── */++/** 详情里一枚标签:`cat` 是分类,`official` 是来源站点给的。 */+export interface DetailTag { k: string; cat?: string; official?: boolean }++/** 身份区里的一个实体。扁平字段兜底来的那一格没有 `id`,只画、不能点。 */+export interface DetailEntityRef {+ id: number | null;+ name: string;+ has_image?: boolean;+ avatar_focus?: unknown;+ has_logo?: boolean;+ /** 厂牌是某家片商旗下的 label 时(ADR-0049),从近到远的上级片商链。 */+ makers?: DetailEntityRef[];+}++/** 卡片条目里声明过的那些字段。`MediaItem` 带着 `[field: string]: unknown`,直接 `Omit` 会把+ * 声明过的键一起抹掉(`keyof` 成了 `string`),先摘掉索引签名再挑。 */+type CardFields = { [K in keyof MediaItem as string extends K ? never : K]: MediaItem[K] };++/** `/api/item` 的一条。只列详情读到的字段,其余原样带着,壳的缓存要的是整条。 */+export interface DetailItem extends Omit<CardFields, 'tags'> {+ [field: string]: unknown;+ error?: string;+ title?: string;+ width?: number | null;+ height?: number | null;+ release_date?: string | null;+ region?: string | null;+ region_label?: string | null;+ region_settled?: boolean;+ rating?: number | null;+ liked?: boolean | number;+ like_reason?: string;+ o_count?: number;+ better_version?: boolean | number;+ better_version_reason?: string;+ has_studio_logo?: boolean;+ poster_box?: { x0: number; y0: number; x1: number; y1: number; px: number[] } | null;+ part_label?: string;+ tags?: DetailTag[];+ entity_refs?: Partial<Record<'performer' | 'studio' | 'creator' | 'series', DetailEntityRef[]>>;+}++/** 队列里的一条:卡片那一份,外加版次与卷标。 */+export interface QueueItem extends MediaItem { edition_label?: string; part_label?: string }++export type QueueKind = 'mix' | 'parts' | 'editions' | 'playlist';++/** 壳递进来的队列引用。`fresh` 为真表示这一下是从外面进这个队列,要重取;同一个队列里+ * 换一条时为假,读缓存。播放列表每次都重取:它的顺序和内容别处也在改。 */+export interface QueueRef { kind: QueueKind; seedId?: number; playlistId?: number; fresh?: boolean }++export interface DetailQueue {+ kind: QueueKind;+ seedId?: number;+ playlistId?: number;+ title: string;+ items: QueueItem[];+ /** 播放列表记下的续播位置。 */+ currentAssetId?: number | null;+}++/** `/api/playlist` 的写操作都回整份列表(`web_playlists.w_playlist`)。 */+export interface PlaylistPayload {+ id: number;+ name: string;+ items: QueueItem[];+ current_asset_id: number | null;+}++/* ── 取数 ── */++export const itemKey = (id: number): QueryKey => ['item', id];+export const queueKey = (ref: QueueRef): QueryKey => ['item-queue', ref.kind, ref.kind === 'playlist' ? ref.playlistId : ref.seedId];+export const relatedKey = (id: number, limit: number): QueryKey => ['item-related', id, limit];++export const ITEM_URL = (id: number) => `/api/item?id=${id}`;+export const RELATED_URL = (id: number, limit: number) => `/api/related?id=${id}&limit=${limit}`;+export const PLAYLIST_URL = '/api/playlist';+export const FEEDBACK_URL = '/api/feedback';+export const ITEM_TAG_URL = '/api/item-tag';+export const WATCH_LATER_URL = '/api/watch-later';+export const QUALITY_GOAL_URL = '/api/quality-goal';+export const PREFERENCE_URL = '/api/preference';++/** 条目已不在账本里:服务端回 `{error}`,不是一次失败的请求。 */+export class ItemGone extends Error {}++export async function fetchItem(id: number, signal?: AbortSignal): Promise<DetailItem> {+ const item = await apiGet<DetailItem>(ITEM_URL(id), signal);+ if (item.error) throw new ItemGone(item.error);+ return item;+}++interface GroupPayload { error?: string; title?: string; items?: QueueItem[] }++/** 一个队列的全部条目。Mix 是种子加上它的相关作品(相关那一份每个种子只取一次,和目录里+ * Mix 卡的悬停翻页共用);分卷与版本是同一个番号下的几个可播条目;播放列表按它自己的顺序。 */+export async function fetchQueue(ref: QueueRef, helpers: ItemDetailHelpers, signal?: AbortSignal): Promise<DetailQueue> {+ if (ref.kind === 'mix') {+ const seedId = ref.seedId!;+ const [seed, related] = await Promise.all([fetchItem(seedId, signal), helpers.mixRelated(seedId)]);+ queryClient.setQueryData(itemKey(seed.id), seed);+ return {+ kind: 'mix', seedId, title: `Mix · ${helpers.mixLabel(seed as unknown as QueueItem)}`,+ items: [seed as unknown as QueueItem, ...related.filter((item) => item.id !== seed.id)],+ };+ }+ if (ref.kind === 'playlist') {+ const playlist = await apiGet<PlaylistPayload>(`${PLAYLIST_URL}?id=${ref.playlistId}`, signal);+ return playlistQueue(playlist);+ }+ const group = await apiGet<GroupPayload>(`/api/${ref.kind}?id=${ref.seedId}`, signal);+ if (group.error || !group.items?.length) throw new Error(group.error || '这一组已不存在');+ return {+ kind: ref.kind, seedId: ref.seedId!, title: `${ref.kind === 'parts' ? '分卷' : '版本'} · ${group.title || ''}`,+ items: group.items,+ };+}++export const playlistQueue = (playlist: PlaylistPayload): DetailQueue => ({+ kind: 'playlist', playlistId: playlist.id, title: playlist.name, items: playlist.items || [],+ currentAssetId: playlist.current_asset_id,+});++/** 队列里停在哪一条。Mix 就是点的那一条;分卷与版本点的那一条不在组里(深链写错了、组变了)+ * 就退到第一条;播放列表退到它记下的续播位置。一条都没有是 null。 */+export function chooseItem(queue: DetailQueue, requested: number | null): number | null {+ if (queue.kind === 'mix') return requested;+ if (!queue.items.length) return null;+ if (requested != null && queue.items.some((item) => item.id === requested)) return requested;+ if (queue.kind === 'playlist') return queue.currentAssetId || queue.items[0]!.id;+ return queue.items[0]!.id;+}++/** 卷标只有分卷队列知道:`/api/item` 是单条口径,它答不出「这是第几卷」。不补的话标题栏里的+ * 卷号在深链进来和点开队列另一条时都不出现。 */+export function withPartLabel(item: DetailItem, queue: DetailQueue | null): DetailItem {+ if (queue?.kind !== 'parts') return item;+ const part_label = queue.items.find((part) => part.id === item.id)?.part_label || '';+ return item.part_label === part_label ? item : { ...item, part_label };+}++/** 首屏:先定队列(这一下要不要重取由壳说),再定停在哪一条,最后取那一条。要转走的几种情形+ * (在线资产转关注详情、队列取不到退回普通详情、播放列表空了回列表页、条目已不在)交给壳,+ * 壳一换舞台,这一次挂载就作废,不会画出来。 */+export async function prefetchItemDetail(props: ItemDetailProps, signal: AbortSignal): Promise<void> {+ const { queue: ref, actions } = props;+ let queue: DetailQueue | null = null;+ if (ref) {+ const key = queueKey(ref);+ try {+ const cached = ref.fresh ? undefined : queryClient.getQueryData<DetailQueue>(key);+ queue = cached || await queryClient.fetchQuery({ queryKey: key, queryFn: () => fetchQueue(ref, props.helpers, signal), staleTime: 0 });+ } catch (error) {+ if (signal.aborted) throw error;+ if (props.id != null) actions.redirect({ kind: 'item', id: props.id });+ else actions.redirect({ kind: 'gone' });+ return;+ }+ props.grid.cache(queue!.items as MediaItem[]);+ }+ const id = queue ? chooseItem(queue, props.id) : props.id;+ if (id == null) {+ actions.redirect(queue?.kind === 'playlist' ? { kind: 'playlists' } : { kind: 'gone' });+ return;+ }+ let item: DetailItem;+ try {+ item = queryClient.getQueryData<DetailItem>(itemKey(id))+ || await queryClient.fetchQuery({ queryKey: itemKey(id), queryFn: () => fetchItem(id, signal) });+ } catch (error) {+ if (error instanceof ItemGone) { actions.redirect({ kind: 'gone' }); return }+ throw error;+ }+ if (item.location === 'online' && item.follow_item_id) actions.redirect({ kind: 'follow', id: Number(item.follow_item_id) });+}++/* ── 壳递进来的那几样 ── */++/** 标签选择器的一个候选:馆藏里带这枚标签的作品数。 */+export interface TagCount { k: string; n?: number }++/** 详情里仍由遗留层拼的几段 HTML 与读数。都是全站语义契约的唯一实现,这里不另写一份。 */+export interface ItemDetailHelpers {+ /** 来源角标(遗留层 `srcBadge`);`cls` 是 `srcbig` 这类尺寸档。 */+ badgeHtml(location: string, cost: string, cls?: string): string;+ /** 番号 + 版次徽章 + 片名(遗留层 `javTitleHtml`)。 */+ titleHtml(item: DetailItem): string;+ /** 同一标题的纯文本(遗留层 `javDisplayName`)。 */+ displayName(item: QueueItem): string;+ /** 「女优」或「艺人」:番号作品叫女优。 */+ performerLabel(item: DetailItem): string;+ /** 身份格里那张实体图(遗留层 `entityFaceImg`):没装图是空串,不出 `<img>`。 */+ faceHtml(ref: DetailEntityRef): string;+ /** 队列一行的小图(遗留层 `mixFacePoster`),和目录里 Mix 卡同一份判据。 */+ queueThumbHtml(item: QueueItem): string;+ /** 队列一行的头像(遗留层 `cardIdentity(item, false).avatar`):整行是一个按钮,头像不可点。 */+ queueAvatarHtml(item: QueueItem): string;+ /** 这一条的署名(遗留层 `mixLabel`):Mix 的标题与队列一行的第二行。 */+ mixLabel(item: QueueItem): string;+ tagLabel(tag: string): string;+ /** 时长分档那几枚标签:由时长推出来的,不在详情里列。 */+ isDurationTag(tag: string): boolean;+ /** 标签选择器里的全部候选(目录的标签读数)。 */+ tagCandidates(): TagCount[];+ /** 来源此刻是不是没挂载。 */+ sourceOffline(location: string): boolean;+ offlineReason(location: string): string;+ /** 「接着看」那一排的骨架(遗留层 `pageSkeletonHtml`),和壳里别处的是同一份。 */+ relatedSkeletonHtml(): string;+ /** Mix 的相关作品,每个种子只取一次,和目录里 Mix 卡的悬停翻页共用。 */+ mixRelated(seedId: number): Promise<QueueItem[]>;+ /** 横排接上拖动滚动(遗留层 `wireDrag`)。 */+ wireDrag(el: HTMLElement): void;+ /** 播放列表那一列拖着排序(遗留层 `wireDragReorder`):拖动中的行由它挂 `dragging`、+ * `drop-before`/`drop-after`,落下时回调新位置。 */+ wireDragReorder(root: HTMLElement, options: {+ selector: string; attribute: string; onMove(from: string, target: string, after: boolean): Promise<void> | void;+ }): void;+}++/** 壳要转走的几种情形。 */+export type ItemDetailRedirect =+ | { kind: 'follow'; id: number }+ | { kind: 'item'; id: number }+ | { kind: 'playlists' }+ | { kind: 'gone' };++export interface ItemDetailActions {+ /** 关闭详情回到来处(壳的 `closeItemDetail`:退场动画、拆舞台、推回列表地址与筛选)。 */+ close(): void;+ /** 这一条画出来了:壳据此更新小窗元数据、顶栏的实体上下文、氛围光与剧场模式,队列的地址+ * 也在这时推(停在哪一条要等岛定下来)。 */+ present(item: DetailItem, queue: DetailQueue | null): void;+ redirect(to: ItemDetailRedirect): void;+ /** 队列里点另一条:舞台上的播放器要先拆、地址要换,经壳重挂。`push` 为假时不推地址。 */+ openQueueItem(queue: QueueRef, id: number, push?: boolean): void;+ /** 把岛画好的 `<video>` 交给壳挂 Video.js(片源、清晰度、海报、氛围光与遥测都在壳里);返回+ * 的清理在这块媒体区卸下时调。签名与关注详情同一个:作品详情没有「第几份媒体」,`media`+ * 传 null;`autoplay` 不给就按设置,计费拦截点开的那一下给 true。 */+ mountPlayer(video: HTMLVideoElement, item: DetailItem, media: null, options?: { autoplay?: boolean }): () => void;+ /** 盘回来了:按正常路径重开这一条,不在半路挂播放器。 */+ reopen(): void;+ /** 重新检测一个来源挂没挂上。 */+ checkSource(location: string): Promise<boolean>;+ /** 在线资产反查不到关注条目时的出口:打开关注页「已保存」那一档。 */+ openSavedFollow(): void;+ openEntity(kind: string, name: string): void;+ openUnowned(): void;+ openRegion(region: string): void;+ /** 点一枚标签:回列表只看它。 */+ openTag(tag: string): void;+ /** 加入播放列表那一屏(壳的表单弹层:舞台是 `showModal()` 开的原生 dialog,弹层要进同一层)。 */+ addToPlaylist(item: DetailItem): void;+ /** 保存 Mix 那一屏:壳弹表单,确认时调 `save(name)`;存好了壳转去那份播放列表并给撤销。 */+ saveMix(options: { title: string; count: number; save(name: string): Promise<PlaylistPayload> }): void;+ /** 编辑播放列表:去播放列表页。 */+ editPlaylist(): void;+ /** 播放列表被移空了:回播放列表页。 */+ openPlaylists(): void;+ /** 定位源文件;回的是失败原因,成功是空串(成功的回执归全站 Toast)。 */+ reveal(id: number): Promise<string>;+ /** 核对这一条所在的目录;回状态一行,外加被移入回收站的那几条。 */+ sync(id: number): Promise<{ text: string; removed: number[] }>;+ /** 目录的「垃圾文件」那一档按回收站状态列:移入回收站之后(`undo` 为假)、撤销任何一次反馈之后+ * (`undo` 为真)由壳判要不要重读列表。 */+ trashChanged(disposal: string | null, undo: boolean): Promise<void>;+ /** 操作回执;给了 `undo` 就带一颗撤销键。失败走 `failure`。 */+ toast(message: string, options?: { undo?: () => Promise<void> }): void;+ failure(action: string, error: unknown): void;+}++export interface ItemDetailProps {+ /** 点的那一条;播放列表从列表页进来时可以没有,退到续播位置。 */+ id: number | null;+ queue: QueueRef | null;+ /** 「接着看」一排取几条;0 是关掉。有队列时不出这一排。 */+ relatedLimit: number;+ helpers: ItemDetailHelpers;+ actions: ItemDetailActions;+ /** 「接着看」那一排的卡片:和目录网格同一份助手、动作与缓存。 */+ grid: { helpers: MediaCardHelpers; actions: MediaCardActions; cache(items: MediaItem[]): void };+ layout: MediaCardLayout;+ selectMode: boolean;+ selected: ReadonlySet<number>;+ seekSeconds: number;+}++/* ── 身份区 ── */++/** 出镜者超过这个数就收起:BEST 合集实测有 41 位,全铺开会把标签和反馈按钮挤出可视区。 */+export const CAST_SHOWN = 8;++export interface IdentityGroups {+ cast: DetailEntityRef[];+ studios: DetailEntityRef[];+ makers: DetailEntityRef[];+ creators: DetailEntityRef[];+ series: DetailEntityRef[];+ /** 判据和 `owner=none` 那条 SQL 一样:没有出镜者、没有创作者实体、扁平 creator 也空。厂牌和+ * 系列不算归属——两边说的必须是同一批作品,否则卡片上写着「未归属」的这条点进集合会不在里面。 */+ unowned: boolean;+}++/** 身份按类别分组,同一个名字只出现一次(先到的那一类留下)。共演作品的女优逐个列出;+ * 非规范厂牌只有扁平 `studio`,它的标识可用性单独下发在 `has_studio_logo`。 */+export function identityGroups(item: DetailItem): IdentityGroups {+ const refs = item.entity_refs || {};+ const seen = new Set<string>();+ const fresh = (ref: DetailEntityRef) => {+ const key = foldName(ref.name);+ if (!ref.name || seen.has(key)) return false;+ seen.add(key);+ return true;+ };+ const performers: DetailEntityRef[] = refs.performer?.length+ ? refs.performer : (item.performers || []).map((name) => ({ id: null, name }));+ const cast = performers.filter(fresh);+ const studioRef = refs.studio?.[0];+ const studioFallback: DetailEntityRef[] = studioRef || !item.studio+ ? [] : [{ id: null, name: item.studio, has_logo: !!item.has_studio_logo }];+ const studios = [...(refs.studio || []), ...studioFallback].filter(fresh);+ const makers = studios.flatMap((ref) => ref.makers || []).filter(fresh);+ const creators = (refs.creator || []).filter(fresh);+ const series = (refs.series || []).filter(fresh);+ return { cast, studios, makers, creators, series, unowned: !cast.length && !creators.length && !String(item.creator || '').trim() };+}++/* ── 评分 ──+ 评分落在 `asset.rating`,量纲是 0–100:这一列是 Stash 的 rating100 直接导进来的,taste_history+ 也按 rating/20 折算成 0–5 分。所以第 n 颗星送出的是 n*20,不是 n。再点当前那一颗表示撤销,+ 送 0,后端写回 NULL——「没评过」和「评了一星」在排序上必须是两件事。 */+export const RATING_STEP = 20;+export const clampRating = (value: number | null | undefined) => Math.min(Math.max(value || 0, 0), 100);+export const ratingStars = (value: number | null | undefined) => Math.round(clampRating(value) / RATING_STEP);+export const ratingText = (value: number | null | undefined) => {+ const stars = ratingStars(value);+ return stars ? `${stars} 星` : '未评分';+};+/** 点第 `star` 颗之后要送的值:点的就是当前那一颗是撤销。 */+export const nextRating = (before: number | null | undefined, star: number) => {+ const picked = star * RATING_STEP;+ return picked === (before || 0) ? 0 : picked;+};++/* ── 标签 ── */++/** 详情里列的标签:去掉时长分档,按显示名去重(改过显示名的可能与另一条同名,优先留本身就是+ * 规范显示名的那条),最多 40 枚。 */+export function detailTags(item: DetailItem, helpers: Pick<ItemDetailHelpers, 'tagLabel' | 'isDurationTag'>): DetailTag[] {+ const byDisplay = new Map<string, DetailTag>();+ (item.tags || []).filter((tag) => !helpers.isDurationTag(tag.k)).forEach((tag) => {+ const key = foldName(helpers.tagLabel(tag.k));+ const previous = byDisplay.get(key);+ if (!previous || (foldName(tag.k) === key && foldName(previous.k) !== key)) byDisplay.set(key, tag);+ });+ return [...byDisplay.values()].slice(0, 40);+}++export const hasTag = (item: DetailItem, tag: string) => (item.tags || []).some((own) => foldName(own.k) === foldName(tag));+export const withoutTag = (item: DetailItem, tag: string): DetailItem =>+ ({ ...item, tags: (item.tags || []).filter((own) => foldName(own.k) !== foldName(tag)) });+export const withTag = (item: DetailItem, tag: DetailTag): DetailItem =>+ (hasTag(item, tag.k) ? item : { ...item, tags: [...(item.tags || []), tag] });++const RECENT_TAGS = 'peach.recentTags';+export function recentTags(): string[] {+ try {+ const value = JSON.parse(localStorage.getItem(RECENT_TAGS) || '[]');+ return Array.isArray(value) ? value.map(String) : [];+ } catch {+ return [];+ }+}+export function rememberTag(tag: string): void {+ try {+ const rest = recentTags().filter((name) => foldName(name) !== foldName(tag));+ localStorage.setItem(RECENT_TAGS, JSON.stringify([tag, ...rest].slice(0, 12)));+ } catch {+ // 存储满了或被禁用:最近使用只是便利,不影响添加本身。+ }+}++export interface PickerSections { recent: TagCount[]; results: TagCount[]; create: string }++/** 标签选择器里这一刻列什么:没输入时是最近使用加全部(前 120 枚),输入了是命中的那几枚;+ * 输入的词没有完全命中的,末尾多一格「新建」。 */+export function pickerSections(query: string, candidates: readonly TagCount[], recent: readonly string[]): PickerSections {+ const q = foldName(query);+ const byName = new Map(candidates.map((tag) => [foldName(tag.k), tag]));+ const results = candidates.filter((tag) => !q || foldName(tag.k).includes(q)).slice(0, 120);+ const recentRows = q ? [] : recent.map((name) => byName.get(foldName(name)) || { k: name, n: 0 })+ .filter((tag, index, all) => all.findIndex((other) => foldName(other.k) === foldName(tag.k)) === index).slice(0, 12);+ const exact = results.some((tag) => foldName(tag.k) === q);+ return { recent: recentRows, results, create: q && !exact ? query.trim() : '' };+}++/* ── 队列 ── */++/** 版次徽章的配色跟卡片标题上的那套走。多一个 `有码`:卡片上正片不加角标是对的(没角标就是+ * 正片),但队列里两条并排时「什么都不写」等于让人自己猜哪条是哪条。 */+export const EDITION_TONE: Record<string, string> = { 中字: 'subtitle', 无码: 'uncensored', 无码破解: 'cracked', 有码: 'censored' };++const QUEUE_LABEL: Record<QueueKind, string> = { mix: 'Mix', parts: '分卷', editions: '版本', playlist: '播放列表' };++/** 队列头那两行:类别与摘要。版次队列的标题是「版本 · 番号」,而番号就印在正上方的详情标题里,+ * 标题栏又已经写着「版本」——三处说同一件事,这里只留数量。别的队列标题带真信息(播放列表名、+ * Mix 种子),不能一起砍。 */+export function queueCopy(queue: DetailQueue): { title: string; summary: string } {+ const count = queue.items.length;+ const countLabel = queue.kind === 'parts' ? `${count} 卷` : queue.kind === 'editions' ? `${count} 个版本` : `${count} 个视频`;+ return { title: QUEUE_LABEL[queue.kind], summary: queue.kind === 'editions' ? countLabel : `${queue.title} · ${countLabel}` };+}++/** 同一部片的几卷共用文件名,标题、女优、厂牌逐字相同:详情标题不写卷号的话,在队列里换一卷,+ * 右侧整栏看上去纹丝不动。卷号说的是「第几份文件」而不是版次,用中性灰。 */+export const partLabelHtml = (item: DetailItem, queue: DetailQueue | null) =>+ (queue?.kind === 'parts' && item.part_label ? `<small class="javedition partlabel">第 ${esc(item.part_label)} 卷</small>` : '');++/** 拖动之后的新顺序:`from` 挪到 `target` 的前面或后面。 */+export function movedOrder(ids: readonly number[], from: number, target: number, after: boolean): number[] {+ const rest = ids.filter((id) => id !== from);+ const at = rest.indexOf(target);+ rest.splice(at + (after ? 1 : 0), 0, from);+ return rest;+}++export const sameOrder = (a: readonly number[], b: readonly number[]) =>+ a.length === b.length && a.every((id, index) => id === b[index]);++/* ── 播放区 ── */++export type MediaGate = 'offline' | 'online' | 'metered' | '';++/** 播放区此刻挡在视频前面的是哪一种说明:来源没挂载、在线资产反查不到关注条目、计费来源要+ * 点一下才拉流。保存过的在线资产照常播(壳在取数时已经把它转去关注详情)。 */+export function mediaGate(item: DetailItem, offline: boolean): MediaGate {+ if (offline) return 'offline';+ if (item.location === 'online' && !item.follow_item_id) return 'online';+ if (item.cost === 'metered' && item.location !== 'online') return 'metered';+ return '';+}++/** 真实观看那条的初值:看过的秒数占时长。时长未知(0 或 -1 哨兵)时不画。 */+export function realWatched(item: DetailItem): number | null {+ const duration = Number(item.duration) > 0 ? Number(item.duration) : 0;+ if (!item.play_seconds || !duration) return null;+ return Math.min(Number(item.play_seconds) / duration, 1) * 100;+}++/* ── 写完之后 ── */++/** 反馈键的回执。 */+export function feedbackReceipt(kind: string, result: { feedback?: string | null; disposal?: string | null }): string {+ if (kind === 'dislike') return result.feedback === 'dislike' ? '已标记不合口味' : '已取消不合口味';+ if (kind === 'seen') return result.feedback === 'seen' ? '已标记看过' : '已取消看过';+ if (kind === 'dispose') return result.disposal === 'trash' ? '已移入回收站' : '已移出回收站';+ return '已记录一次高潮';+}diff --git a/frontend/test/islands.test.ts b/frontend/test/islands.test.tsindex 949ad9a13..64249c437 100644--- a/frontend/test/islands.test.ts+++ b/frontend/test/islands.test.ts@@ -40,7 +40,7 @@ async function until(ok: () => boolean, what: string): Promise<void> {describe('island 注册表', () => {it('登记的名字就是遗留路由能挂载的名字', () => {expect(islandNames()).toEqual([- 'catalog-grid', 'cover-crop', 'data-cleanup', 'duplicates', 'entity-body', 'entity-filter', 'entity-hero', 'follow-detail', 'follow-feed', 'follow-manage', 'index', 'junk-queue',+ 'catalog-grid', 'data-cleanup', 'duplicates', 'entity-body', 'entity-filter', 'entity-hero', 'follow-detail', 'follow-feed', 'follow-manage', 'index', 'item-detail', 'junk-queue','library-processing', 'playlists','scraping', 'quality-goals', 'review', 'configuration', 'configuration-summary', 'activity', 'stats', 'taste']);});diff --git a/frontend/test/react/item-detail.test.tsx b/frontend/test/react/item-detail.test.tsxnew file mode 100644index 000000000..7f20334c1--- /dev/null+++ b/frontend/test/react/item-detail.test.tsx@@ -0,0 +1,465 @@+/* 作品详情岛:停在队列哪一条、身份与标签怎么分组、首屏要转去哪、交给壳的是什么、写完之后缓存与回执怎么变。+ *+ * 从目录进出不重取、Video.js 接管岛画的 `<video>`、脱盘说明、四种队列、拖动排序、保存 Mix、接着看与手机+ * 布局要真浏览器,在 `frontend/e2e/item-detail.test.ts` 里量;尺寸与色板在 `e2e/design.test.ts`。 */+import { notifyManager, QueryClientProvider, type InfiniteData } from '@tanstack/react-query';+import { act } from 'react';+import { afterEach, describe, expect, it, vi, type Mock } from 'vitest';++import type { GridPage } from '../../src/react/catalog-grid/catalog-grid';+import type { MediaItem } from '../../src/react/catalog-grid/types';+import {+ chooseItem, detailTags, identityGroups, itemKey, mediaGate, movedOrder, nextRating, pickerSections, prefetchItemDetail,+ queueCopy, queueKey, ratingText, withPartLabel,+ type DetailItem, type DetailQueue, type ItemDetailActions, type ItemDetailHelpers, type ItemDetailProps, type QueueItem,+} from '../../src/react/item-detail/item-detail';+import { ItemDetailPage } from '../../src/react/item-detail/item-detail-page';+import { queryClient } from '../../src/react/query';+import { click, mount, pending, settle, type } from './render';++afterEach(() => { queryClient.clear() });+notifyManager.setScheduler((notify) => notify());++const item = (id: number, extra: Partial<DetailItem> = {}): DetailItem => ({+ id, name: `sample_${id}.mp4`, location: 'local', cost: 'free', size: 1024, duration: 3600, rating: 60,+ performers: ['七海ひな'], tags: [{ k: '剧情' }, { k: '高画质' }], ...extra,+} as DetailItem);+const row = (id: number, extra: Partial<QueueItem> = {}) => ({ id, name: `sample_${id}.mp4`, ...extra } as QueueItem);+const queue = (kind: DetailQueue['kind'], ids: number[], extra: Partial<DetailQueue> = {}): DetailQueue =>+ ({ kind, seedId: ids[0], title: '标题', items: ids.map((id) => row(id)), ...extra });++function helpers(patch: Partial<ItemDetailHelpers> = {}): ItemDetailHelpers {+ return {+ badgeHtml: () => '', titleHtml: (shown) => String(shown.name), displayName: (shown) => String(shown.name),+ performerLabel: () => '女优', faceHtml: () => '', queueThumbHtml: () => '', queueAvatarHtml: () => '', mixLabel: () => '署名',+ tagLabel: (tag) => tag, isDurationTag: (tag) => tag.startsWith('长片'), tagCandidates: () => [], sourceOffline: () => false,+ offlineReason: () => '盘没挂上', relatedSkeletonHtml: () => '', mixRelated: async () => [], wireDrag: vi.fn(),+ wireDragReorder: vi.fn(), ...patch,+ };+}++type ActionMocks = { [K in keyof ItemDetailActions]: Mock<ItemDetailActions[K]> };+function actions(): ActionMocks {+ return {+ close: vi.fn(), present: vi.fn(), redirect: vi.fn(), openQueueItem: vi.fn(), mountPlayer: vi.fn(() => vi.fn()), reopen: vi.fn(),+ checkSource: vi.fn(async () => false), openSavedFollow: vi.fn(), openEntity: vi.fn(), openUnowned: vi.fn(), openRegion: vi.fn(),+ openTag: vi.fn(), addToPlaylist: vi.fn(), saveMix: vi.fn(), editPlaylist: vi.fn(), openPlaylists: vi.fn(),+ reveal: vi.fn(async () => ''), sync: vi.fn(async () => ({ text: '', removed: [] })), trashChanged: vi.fn(async () => {}),+ toast: vi.fn(), failure: vi.fn(),+ };+}++function props(patch: Partial<ItemDetailProps> = {}): ItemDetailProps {+ return {+ id: 1, queue: null, relatedLimit: 0, helpers: helpers(), actions: actions(),+ grid: { helpers: {} as ItemDetailProps['grid']['helpers'], actions: {} as ItemDetailProps['grid']['actions'], cache: vi.fn() },+ layout: {} as ItemDetailProps['layout'], selectMode: false, selected: new Set(), seekSeconds: 10, ...patch,+ };+}++/** 假服务端:写接口按 `answer` 回话,读接口回 `reads` 里给的那一份。 */+function serve(answer: (url: string, body: Record<string, unknown>) => unknown = () => ({ ok: true }),+ reads: Record<string, unknown> = {}) {+ const fetcher = vi.fn(async (url: string, init?: RequestInit) => {+ if (init?.method === 'POST') {+ const body = JSON.parse(String(init.body));+ return { ok: true, status: 200, json: async () => answer(url, body) };+ }+ const found = Object.entries(reads).find(([prefix]) => url.startsWith(prefix));+ return found ? { ok: true, status: 200, json: async () => structuredClone(found[1]) } : { ok: false, status: 404, json: async () => ({}) };+ });+ vi.stubGlobal('fetch', fetcher);+ return fetcher;+}+const posts = (fetcher: ReturnType<typeof serve>) => fetcher.mock.calls+ .filter(([, init]) => init?.method === 'POST').map(([url, init]) => [url, JSON.parse(String(init!.body))]);++/** 条目已在缓存里(从卡片点进来、首屏已取过),直接画。 */+async function show(shown: DetailItem, patch: Partial<ItemDetailProps> = {}) {+ queryClient.setQueryData(itemKey(shown.id), shown);+ const given = props({ id: shown.id, ...patch });+ const host = await mount(<QueryClientProvider client={queryClient}><ItemDetailPage {...given} /></QueryClientProvider>);+ await settle();+ return { host, props: given, actions: given.actions as ActionMocks };+}++describe('停在队列哪一条', () => {+ it('Mix 就是点的那一条;分卷与版本点的不在组里退到第一条;播放列表退到续播位置', () => {+ expect(chooseItem(queue('mix', [1, 2]), 9)).toBe(9);+ expect(chooseItem(queue('parts', [1, 2]), 2)).toBe(2);+ expect(chooseItem(queue('editions', [1, 2]), 9)).toBe(1);+ expect(chooseItem(queue('playlist', [1, 2], { currentAssetId: 2 }), null)).toBe(2);+ expect(chooseItem(queue('playlist', [1, 2]), null)).toBe(1);+ expect(chooseItem(queue('playlist', []), null)).toBeNull();+ });++ it('卷标只从分卷队列补进标题,别的队列不动这一条', () => {+ const parts = queue('parts', [1, 2], { items: [row(1, { part_label: '1' }), row(2, { part_label: '2' })] });+ expect(withPartLabel(item(2), parts).part_label).toBe('2');+ const plain = item(2);+ expect(withPartLabel(plain, queue('mix', [2]))).toBe(plain);+ });++ it('队列头:版次队列只写数量,其余带上标题', () => {+ expect(queueCopy(queue('editions', [1, 2]))).toEqual({ title: '版本', summary: '2 个版本' });+ expect(queueCopy(queue('parts', [1, 2, 3], { title: '分卷 · PCH-021' }))).toEqual({ title: '分卷', summary: '分卷 · PCH-021 · 3 卷' });+ expect(queueCopy(queue('playlist', [1], { title: '周末片单' }))).toEqual({ title: '播放列表', summary: '周末片单 · 1 个视频' });+ });++ it('拖动之后的新顺序:挪到目标前面或后面', () => {+ expect(movedOrder([1, 2, 3, 4], 4, 2, false)).toEqual([1, 4, 2, 3]);+ expect(movedOrder([1, 2, 3, 4], 1, 3, true)).toEqual([2, 3, 1, 4]);+ });+});++describe('身份与标签', () => {+ it('同名只出一次;只有扁平厂牌时带上它的标识可用性;厂牌与系列不算归属', () => {+ const groups = identityGroups(item(1, {+ performers: ['A'], studio: 'S', has_studio_logo: true,+ entity_refs: { performer: [{ id: 1, name: 'A' }, { id: 2, name: 'a' }], series: [{ id: 3, name: 'A' }] },+ }));+ expect(groups.cast.map((ref) => ref.name)).toEqual(['A']);+ expect(groups.studios).toEqual([{ id: null, name: 'S', has_logo: true }]);+ expect(groups.series).toEqual([]);+ expect(identityGroups(item(2, { performers: [], studio: 'S', creator: '' })).unowned).toBe(true);+ expect(identityGroups(item(3, { performers: [], creator: '某人' })).unowned).toBe(false);+ });++ it('标签去掉时长分档,按显示名去重时留本身就是规范名的那条', () => {+ const tags = detailTags(item(1, { tags: [{ k: '长片-30分上' }, { k: '旧名' }, { k: '规范名' }, { k: '剧情' }] }),+ { tagLabel: (tag) => (tag === '旧名' ? '规范名' : tag), isDurationTag: (tag) => tag.startsWith('长片') });+ expect(tags.map((tag) => tag.k)).toEqual(['规范名', '剧情']);+ });++ it('标签选择器:没输入列最近使用加全部;输入的词没有完全命中才给「新建」', () => {+ const candidates = [{ k: '剧情', n: 3 }, { k: '剧情向', n: 1 }];+ expect(pickerSections('', candidates, ['剧情', '旧标签'])).toEqual({+ recent: [{ k: '剧情', n: 3 }, { k: '旧标签', n: 0 }], results: candidates, create: '',+ });+ expect(pickerSections('剧情', candidates, []).create).toBe('');+ expect(pickerSections('剧', candidates, []).create).toBe('剧');+ });++ it('评分:第 n 颗送 n×20,再点当前那一颗送 0', () => {+ expect([nextRating(60, 3), nextRating(60, 4), nextRating(null, 1)]).toEqual([0, 80, 20]);+ expect([ratingText(60), ratingText(0), ratingText(null)]).toEqual(['3 星', '未评分', '未评分']);+ });++ it('播放区挡在前面的说明:没挂载、在线资产反查不到、计费来源', () => {+ expect(mediaGate(item(1), true)).toBe('offline');+ expect(mediaGate(item(1, { location: 'online' }), false)).toBe('online');+ expect(mediaGate(item(1, { location: 'online', follow_item_id: 5 } as Partial<DetailItem>), false)).toBe('');+ expect(mediaGate(item(1, { cost: 'metered' }), false)).toBe('metered');+ expect(mediaGate(item(1), false)).toBe('');+ });+});++describe('首屏取数', () => {+ const signal = new AbortController().signal;++ it('保存过的在线资产转关注详情;条目已不在收起舞台', async () => {+ serve(undefined, { '/api/item?id=1': item(1, { location: 'online', follow_item_id: 9 } as Partial<DetailItem>),+ '/api/item?id=2': { error: 'gone' } });+ const first = props({ id: 1 });+ await prefetchItemDetail(first, signal);+ expect(first.actions.redirect).toHaveBeenCalledWith({ kind: 'follow', id: 9 });+ const second = props({ id: 2 });+ await prefetchItemDetail(second, signal);+ expect(second.actions.redirect).toHaveBeenCalledWith({ kind: 'gone' });+ });++ it('队列取不到退回普通详情;播放列表空了回列表页', async () => {+ serve(undefined, { '/api/parts?id=1': { error: '这一组已不存在' },+ '/api/playlist?id=7': { id: 7, name: '空', items: [], current_asset_id: null } });+ const parts = props({ id: 1, queue: { kind: 'parts', seedId: 1, fresh: true } });+ await prefetchItemDetail(parts, signal);+ expect(parts.actions.redirect).toHaveBeenCalledWith({ kind: 'item', id: 1 });+ const playlist = props({ id: null, queue: { kind: 'playlist', playlistId: 7, fresh: true } });+ await prefetchItemDetail(playlist, signal);+ expect(playlist.actions.redirect).toHaveBeenCalledWith({ kind: 'playlists' });+ });++ it('同一个队列里换一条读缓存,不重取;从外面进来才重取', async () => {+ const fetcher = serve(undefined, { '/api/parts?id=1': { title: 'PCH', items: [row(1), row(2)] }, '/api/item?id=2': item(2) });+ queryClient.setQueryData(queueKey({ kind: 'parts', seedId: 1 }), queue('parts', [1, 2]));+ await prefetchItemDetail(props({ id: 2, queue: { kind: 'parts', seedId: 1, fresh: false } }), signal);+ expect(fetcher.mock.calls.map(([url]) => url)).toEqual(['/api/item?id=2']);+ await prefetchItemDetail(props({ id: 2, queue: { kind: 'parts', seedId: 1, fresh: true } }), signal);+ expect(fetcher.mock.calls.map(([url]) => url)).toContain('/api/parts?id=1');+ });+});++describe('交给壳的', () => {+ it('画出来报一次 present;岛画的 `<video>` 交给 mountPlayer,不自动播就不带 autoplay', async () => {+ serve();+ const { host, actions: done } = await show(item(1));+ expect(done.present).toHaveBeenCalledTimes(1);+ const video = host.querySelector('video#vid');+ expect(done.mountPlayer).toHaveBeenCalledWith(video, expect.objectContaining({ id: 1 }), null, undefined);+ });++ it('没挂载与在线拦截不挂播放器;计费来源点了说明才挂,带 autoplay', async () => {+ serve();+ const offline = await show(item(1), { helpers: helpers({ sourceOffline: () => true }) });+ expect(offline.host.querySelector('[data-item-gate="offline"]')?.textContent).toContain('盘没挂上');+ expect(offline.actions.mountPlayer).not.toHaveBeenCalled();+ queryClient.clear();+ const metered = await show(item(2, { cost: 'metered' }));+ expect(metered.actions.mountPlayer).not.toHaveBeenCalled();+ await click(metered.host.querySelector('[data-item-gate="metered"]'));+ expect(metered.actions.mountPlayer).toHaveBeenCalledWith(expect.any(HTMLVideoElement), expect.objectContaining({ id: 2 }), null,+ { autoplay: true });+ });++ it('队列里点另一条交给壳换,带着队列引用', async () => {+ serve();+ queryClient.setQueryData(queueKey({ kind: 'mix', seedId: 1 }), queue('mix', [1, 2, 3]));+ const { host, actions: done } = await show(item(1), { queue: { kind: 'mix', seedId: 1 } });+ expect(host.querySelector('[data-queue-item="1"]')?.getAttribute('aria-current')).toBe('true');+ await click(host.querySelector('[data-queue-item="3"]'));+ expect(done.openQueueItem).toHaveBeenCalledWith({ kind: 'mix', seedId: 1, playlistId: undefined }, 3);+ });+});++describe('写完之后', () => {+ it('评分写进详情缓存与目录里同一张卡;回执的撤销送回原分', async () => {+ const fetcher = serve((_url, body) => ({ rating: body.value || null }));+ const page: InfiniteData<GridPage> = { pages: [{ items: [{ id: 1, rating: 60 } as MediaItem], offset: 0 } as GridPage], pageParams: [0] };+ queryClient.setQueryData(['catalog-grid', 'catalog', '', 0], page);+ const { host, actions: done } = await show(item(1));+ await click(host.querySelector('[data-rate="3"]'));+ await settle();+ expect(host.querySelector('.ratingvalue')?.textContent).toBe('未评分');+ expect(queryClient.getQueryData<DetailItem>(itemKey(1))?.rating).toBeNull();+ expect(queryClient.getQueryData<InfiniteData<GridPage>>(['catalog-grid', 'catalog', '', 0])?.pages[0]?.items[0]?.rating).toBeNull();+ const [message, options] = done.toast.mock.calls[0]!;+ expect(message).toBe('已取消评分');+ await options!.undo!();+ await settle();+ expect(host.querySelector('.ratingvalue')?.textContent).toBe('3 星');+ expect(posts(fetcher).map(([, body]) => body.value)).toEqual([0, 60]);+ });++ it('反馈的撤销再切一次回去,之后交给壳判垃圾文件那一档要不要重读', async () => {+ const fetcher = serve((_url, body) => ({ feedback: body.kind === 'dislike' ? 'dislike' : null, disposal: null }));+ const { host, actions: done } = await show(item(1));+ await click(host.querySelector('[data-kind="dislike"]'));+ await settle();+ expect(host.querySelector('[data-kind="dislike"]')?.getAttribute('aria-pressed')).toBe('true');+ expect(done.toast.mock.calls[0]![0]).toBe('已标记不合口味');+ await done.toast.mock.calls[0]![1]!.undo!();+ expect(posts(fetcher).map(([, body]) => body.kind)).toEqual(['dislike', 'dislike']);+ expect(done.trashChanged).toHaveBeenCalledWith(null, true);+ });++ it('移入回收站之后交给壳:这一档可能要把它从列表里拿掉', async () => {+ serve(() => ({ feedback: null, disposal: 'trash' }));+ const { host, actions: done } = await show(item(1));+ await click(host.querySelector('[data-kind="dispose"]'));+ await settle();+ expect(done.trashChanged).toHaveBeenCalledWith('trash', false);+ expect(done.toast.mock.calls[0]![0]).toBe('已移入回收站');+ });++ it('删标签写进缓存;撤销加回来', async () => {+ const fetcher = serve(() => ({ ok: true }));+ const { host, actions: done } = await show(item(1));+ await click(host.querySelector('[data-remove-tag="剧情"]'));+ await settle();+ expect(host.querySelector('[data-tag="剧情"]')).toBeNull();+ expect(done.toast.mock.calls[0]![0]).toBe('已删除标签「剧情」');+ await done.toast.mock.calls[0]![1]!.undo!();+ await settle();+ expect(host.querySelector('[data-tag="剧情"]')).not.toBeNull();+ expect(posts(fetcher).map(([, body]) => [body.operation, body.tag])).toEqual([['remove', '剧情'], ['add', '剧情']]);+ });++ it('写失败交给壳报出来,键态不变', async () => {+ vi.stubGlobal('fetch', vi.fn(async () => ({ ok: false, status: 500, json: async () => ({ detail: '写入失败' }) })));+ const { host, actions: done } = await show(item(1));+ await click(host.querySelector('#stageLater'));+ await settle();+ expect(done.failure).toHaveBeenCalledWith('更新稍后看', expect.anything());+ expect(host.querySelector('#stageLater')?.getAttribute('aria-pressed')).toBe('false');+ });++ it('寻找更好版本与记一次高潮:回执的撤销各自写回', async () => {+ const fetcher = serve((url, body) => (url === '/api/quality-goal'+ ? { better_version: !!body.wanted, better_version_reason: '' }+ : { feedback: null, disposal: null, o_count: body.kind === 'o' ? 2 : 1 }));+ const { host, actions: done } = await show(item(1, { o_count: 1 }));+ await click(host.querySelector('#betterVersion'));+ await settle();+ expect(host.querySelector('#betterVersion')?.getAttribute('aria-pressed')).toBe('true');+ expect(done.toast.mock.calls[0]![0]).toBe('已标记寻找更好版本');+ await done.toast.mock.calls[0]![1]!.undo!();+ await settle();+ expect(host.querySelector('#betterVersion')?.getAttribute('aria-pressed')).toBe('false');+ await click(host.querySelector('[data-kind="o"]'));+ await settle();+ expect(host.querySelector('#oCount')?.textContent).toBe('2');+ await done.toast.mock.calls[1]![1]!.undo!();+ await settle();+ expect(host.querySelector('#oCount')?.textContent).toBe('1');+ expect(posts(fetcher).map(([url, body]) => [url, body.wanted ?? body.kind])).toEqual([+ ['/api/quality-goal', true], ['/api/quality-goal', false], ['/api/feedback', 'o'], ['/api/feedback', 'o-undo'],+ ]);+ });++ it('喜爱理由:图标键开合理由框;提交时键上转圈,写完回执', async () => {+ const reply = pending<unknown>();+ const fetcher = vi.fn(async (_url: string, _init?: RequestInit) => ({ ok: true, status: 200, json: async () => reply.answer }));+ vi.stubGlobal('fetch', fetcher);+ const { host, actions: done } = await show(item(1));+ const panel = host.querySelector<HTMLElement>('#preferencePanel')!;+ const toggle = host.querySelector('#preferenceToggle')!;+ expect(panel.hidden).toBe(true);+ await click(toggle);+ expect(panel.hidden).toBe(false);+ expect(toggle.getAttribute('aria-expanded')).toBe('true');+ await typeText(host.querySelector('#likeReason'), '镜头好');+ await click(host.querySelector('#savePreference'));+ const save = host.querySelector('#savePreference')!;+ expect(save.getAttribute('aria-busy')).toBe('true');+ expect(save.querySelector('[role="status"]')?.getAttribute('aria-label')).toBe('正在提交喜爱理由');+ await reply.release({ liked: true, like_reason: '镜头好' });+ await settle();+ expect(save.getAttribute('aria-busy')).toBeNull();+ expect(save.textContent).toBe('提交');+ expect(done.toast.mock.calls[0]![0]).toBe('已保存喜欢偏好');+ expect(JSON.parse(String(fetcher.mock.calls[0]![1]!.body))).toEqual({ id: 1, liked: true, reason: '镜头好' });+ await click(toggle);+ expect(panel.hidden).toBe(true);+ });+});++/** 两个节点在文档里的先后:`a` 排在 `b` 前面。 */+const before = (a: Element | null, b: Element | null) =>+ !!a && !!b && !!(a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING);+const glyph = (el: Element | null | undefined) => el?.querySelector('use')?.getAttribute('href');++async function typeText(field: HTMLTextAreaElement | null, value: string) {+ if (!field) throw new Error('输入框没有画出来');+ await act(async () => {+ Object.getOwnPropertyDescriptor(HTMLTextAreaElement.prototype, 'value')!.set!.call(field, value);+ field.dispatchEvent(new Event('input', { bubbles: true }));+ });+}++describe('侧栏怎么读', () => {+ it('评分夹在标题与规格行之间,当前那一颗的读屏名说的是撤销;规格行每项前面是图标', async () => {+ serve();+ const { host } = await show(item(1, { width: 1920, height: 1080, release_date: '2026-08-01' }));+ const rating = host.querySelector('#detailRating');+ expect(before(host.querySelector('[data-detail-title]'), rating)).toBe(true);+ expect(before(rating, host.querySelector('.smeta'))).toBe(true);+ expect(host.querySelector('[data-rate="3"]')?.getAttribute('aria-label')).toBe('取消评分(当前 3 星)');+ expect(host.querySelector('[data-rate="4"]')?.getAttribute('aria-label')).toBe('评为 4 星');+ expect([...host.querySelectorAll('.smeta .detailmetaitem')].map(glyph)).toEqual(['#i-monitor', '#i-hard-drive', '#i-calendar']);+ expect(host.querySelector('.smeta')?.textContent).not.toContain('发行');+ expect(host.querySelector('#ratioTxt')?.textContent).toBe('0%');+ });++ it('身份按类分组、组标题在上;没有实体 id 的只写名字;厂牌装了标识才要 icon 变体;系列是带图标的链接', async () => {+ serve();+ const { host, actions: done } = await show(item(1, {+ performers: ['七海ひな', '桜井まい'],+ entity_refs: {+ performer: [{ id: 1, name: '七海ひな' }, { id: null, name: '桜井まい' }],+ studio: [{ id: 5, name: 'Peach Studio', has_logo: true }],+ series: [{ id: 7, name: '夏日系列' }],+ },+ } as Partial<DetailItem>));+ const groups = [...host.querySelectorAll('[data-item-identity] .idgroup')];+ expect(groups.map((group) => group.querySelector('.idlabel')?.textContent)).toEqual(['女优', '厂牌', '系列']);+ expect(host.querySelector('[data-entity-name="七海ひな"]')?.tagName).toBe('BUTTON');+ const bare = [...host.querySelectorAll('.idcell')].find((cell) => cell.textContent?.includes('桜井まい'));+ expect(bare?.tagName).toBe('SPAN');+ expect(bare?.hasAttribute('data-entity-kind')).toBe(false);+ expect(host.querySelector('.idcell.logo img')?.getAttribute('src')).toBe('/logo?studio=Peach%20Studio&variant=icon');+ const series = host.querySelector('.serieslink');+ expect(glyph(series)).toBe('#i-tags');+ await click(series);+ expect(done.openEntity).toHaveBeenCalledWith('series', '夏日系列');+ });++ it('没有署名人时,归属那一组就是「未归属」入口', async () => {+ serve();+ const { host, actions: done } = await show(item(1, { performers: [], creator: '', entity_refs: {} } as Partial<DetailItem>));+ const group = host.querySelector('.idgroup-unowned');+ expect(group?.querySelector('.idlabel')?.textContent).toBe('归属');+ await click(group?.querySelector('[data-open-unowned]'));+ expect(done.openUnowned).toHaveBeenCalled();+ });++ it('每一枚键的字形只说它旁边那件事', async () => {+ serve();+ queryClient.setQueryData(queueKey({ kind: 'mix', seedId: 1 }), queue('mix', [1, 2]));+ const mix = await show(item(1, { liked: true }), { queue: { kind: 'mix', seedId: 1 } });+ expect(glyph(mix.host.querySelector('#preferenceToggle'))).toBe('#i-notebook-pen');+ expect(mix.host.querySelector('#likeBtn')?.getAttribute('aria-label')).toBe('取消喜欢');+ expect(glyph(mix.host.querySelector('#addPlaylist'))).toBe('#i-playlist');+ expect(glyph(mix.host.querySelector('[data-save-mix]'))).toBe('#i-playlist');+ expect(glyph(mix.host.querySelector('[data-kind="o"]'))).toBe('#i-sperm');+ expect(glyph(mix.host.querySelector('[data-rate="1"]'))).toBe('#i-star');+ queryClient.clear();+ queryClient.setQueryData(queueKey({ kind: 'playlist', playlistId: 7 }), queue('playlist', [2, 3], { playlistId: 7 }));+ const playlist = await show(item(2), { queue: { kind: 'playlist', playlistId: 7 } });+ expect(glyph(playlist.host.querySelector('[data-edit-playlist]'))).toBe('#i-playlist');+ });++ it('版次队列每一行带版次徽章,按版次上色', async () => {+ serve();+ queryClient.setQueryData(queueKey({ kind: 'editions', seedId: 1 }), queue('editions', [1, 2], {+ items: [row(1, { edition_label: '中字' }), row(2, { edition_label: '无码' })],+ }));+ const { host } = await show(item(1), { queue: { kind: 'editions', seedId: 1 } });+ expect([...host.querySelectorAll('.qedition')].map((badge) => [badge.textContent, badge.className])).toEqual([+ ['中字', 'qedition javedition subtitle'], ['无码', 'qedition javedition uncensored'],+ ]);+ });++ it('接着看没有内容就整块不出现:推荐条数为 0、开着队列、取回空列表', async () => {+ serve(undefined, { '/api/related': { items: [] } });+ const off = await show(item(1), { relatedLimit: 0 });+ expect(off.host.querySelector('[data-item-related]')).toBeNull();+ queryClient.setQueryData(queueKey({ kind: 'mix', seedId: 2 }), queue('mix', [2, 3]));+ const queued = await show(item(2), { relatedLimit: 12, queue: { kind: 'mix', seedId: 2 } });+ expect(queued.host.querySelector('[data-item-related]')).toBeNull();+ const empty = await show(item(3), { relatedLimit: 12 });+ await settle();+ expect(empty.host.querySelector('[data-item-related]')).toBeNull();+ });++ it('标签选择器:组字过程中不筛;上下键挑、回车加;Escape 收起;点外面也收起', async () => {+ Element.prototype.scrollIntoView ??= () => {};+ const fetcher = serve(() => ({ ok: true }));+ const candidates = [{ k: '巨乳', n: 3 }, { k: '中出', n: 2 }];+ const { host } = await show(item(1), { helpers: helpers({ tagCandidates: () => candidates }) });+ const picker = host.querySelector<HTMLElement>('#tagPicker')!;+ const input = host.querySelector<HTMLInputElement>('#tagPickSearch')!;+ const names = () => [...picker.querySelectorAll('[data-pick]')].map((pick) => pick.getAttribute('data-pick'));+ const key = (name: string) => act(async () => { input.dispatchEvent(new KeyboardEvent('keydown', { key: name, bubbles: true })) });+ await click(host.querySelector('#tagPlus'));+ expect(picker.hidden).toBe(false);+ await act(async () => { input.dispatchEvent(new CompositionEvent('compositionstart', { bubbles: true })) });+ await type(input, 'zhon');+ expect(names()).toEqual(['巨乳', '中出']);+ await type(input, '中');+ await act(async () => { input.dispatchEvent(new CompositionEvent('compositionend', { bubbles: true })) });+ expect(names()).toEqual(['中出', '中']);+ await key('ArrowDown');+ await key('Enter');+ await settle();+ expect(picker.hidden).toBe(true);+ expect(posts(fetcher).map(([, body]) => [body.operation, body.tag])).toEqual([['add', '中出']]);+ await click(host.querySelector('#tagPlus'));+ await key('Escape');+ expect(picker.hidden).toBe(true);+ expect(document.activeElement).toBe(host.querySelector('#tagPlus'));+ await click(host.querySelector('#tagPlus'));+ await act(async () => { await new Promise((done) => setTimeout(done, 0)) });+ await act(async () => { document.body.dispatchEvent(new Event('pointerdown', { bubbles: true })) });+ expect(picker.hidden).toBe(true);+ });+});diff --git a/frontend/test/stubs/legacy-ui.ts b/frontend/test/stubs/legacy-ui.tsindex 77486607b..ba4206e2f 100644--- a/frontend/test/stubs/legacy-ui.ts+++ b/frontend/test/stubs/legacy-ui.ts@@ -22,6 +22,13 @@ export const checkboxHtml = (attrs = ''): string => `<span class="pcheck"><inputexport const progressHtml = (label: string, value: number, max = 100): string =>`<progress role="progressbar" aria-label="${label}" value="${value}" max="${max}" aria-valuenow="${value}" aria-valuemax="${max}"></progress>`;export const confirmModal = async (_options: unknown) => ({confirmed:false});+/* 菜单开合:测试环境不放动画,退场当场藏起。 */+export const presentMenu = (menu: HTMLElement): void => { menu.hidden = false };+export const dismissMenu = (menu: HTMLElement, finish?: () => void): void => {+ if (menu.hidden) return;+ menu.hidden = true;+ finish?.();+};export const MEDIA_SOURCE_ICONS: Record<string,string> = {local:'hard-drive','115':'fixture-115',pikpak:'fixture-pikpak'};export const selectOptionIconHtml = (mark?: string): string => mark ? `<i data-source-icon="${mark}"></i>` : '';diff --git a/tests/test_follow_web.py b/tests/test_follow_web.pyindex 3e5e8c307..e2e012ceb 100644--- a/tests/test_follow_web.py+++ b/tests/test_follow_web.py@@ -3189,21 +3189,22 @@ class FollowWebSourceTests(unittest.TestCase):self.assertPageContains("route(followDetailReturnPath||'/follow')")def test_follow_video_uses_the_shared_videojs_player_and_quality_control(self):- self.assertPageContains('class="video-js vjs-big-play-centered" controls playsinline preload="metadata"')- self.assertPageContains("mountDetailPlayer(item,video,appSettings.detailAutoplay,{")- self.assertPageContains("source:{src,type:media?.media_type||item.media_type||'video/mp4'}")+ # `<video class="video-js">` 由两座详情岛画、交给壳的 mountStagePlayer:+ # `frontend/e2e/follow-detail.test.ts` 与 `frontend/e2e/item-detail.test.ts`。+ self.assertPageContains("mountDetailPlayer(item,video,autoplay??appSettings.detailAutoplay,options)")+ self.assertPageContains("type:media?.media_type||item.media_type||'video/mp4'},")# 第四个参数是来源自己给的清晰度表:rule34video 把每档写成独立 mp4 字段,# videojs 的 qualityLevels 只认 HLS/DASH 的自适应轨道,看不到它们。self.assertPageContains("function mountPlayerQualityControl(player,video,fallbackHeight=0,initialSourceQualities=null)")self.assertPageContains(- "const mediaPromise=api(`/follow-qualities?id=${encodeURIComponent(item.id)}`).catch(()=>null);")+ "mediaPromise:api(`/follow-qualities?id=${encodeURIComponent(item.id)}`).catch(()=>null),")self.assertPageContains("mediaPromise","关注详情要异步补上来源档位和字节数")# 档位和字节数是同一趟回源的产物,播放器两样都从这个应答里取。self.assertPageContains("updateQualities?.(next?.qualities?.length?next.qualities:null);")self.assertPageContains("const size=Number(next?.size)||0;")- player = self.page.split("function mountFollowPlayer(", 1)[1].split(+ player = self.page.split("function mountStagePlayer(", 1)[1].split("async function openFollow(", 1)[0]self.assertNotIn("await api(`/follow-qualities", player,"清晰度回源不能挡住默认视频挂载")@@ -3213,7 +3214,7 @@ class FollowWebSourceTests(unittest.TestCase):self.assertPageContains("data-player-quality-badge")self.assertPageContains("currentTimeDisplay:true,timeDivider:true")self.assertPageContains("levels[index].enabled=selectedQuality==='auto'||selectedQuality===String(index)")- self.assertPageContains("const stopAmbient=mountPlayerAmbient(video)")+ self.assertPageContains("stopAmbient=mountPlayerAmbient(video);")self.assertPageContains("player?.one?.('dispose',stopAmbient)")self.assertPageContains("mountPlayerTheaterControl(player,root)")self.assertPageContains("wireFollowTelemetry(item,video)")@@ -3552,12 +3553,12 @@ class FollowWebSourceTests(unittest.TestCase):self.assertPageContains('.sgrid.mixgrid>.mixqueue{grid-area:queue;max-height:360px')self.assertPageContains('grid-template-areas:"media" "side" "queue"')self.assertPageContains('background:var(--detail-surface)')- self.assertPageContains("const kindLabel={mix:'Mix',parts:'分卷',editions:'版本',playlist:'播放列表'}")+ # 队列头的类别名与横向拖动归作品详情岛与 `components/mix-queue.tsx`:+ # `frontend/test/react/item-detail.test.tsx`。self.assertPageContains('.sgrid.mixgrid>.mixqueue .mixlist{display:grid;grid-auto-flow:column')self.assertPageContains('.sgrid.mixgrid>.vwrap>.gate{height:100%;aspect-ratio:auto}')self.assertPageContains('.sgrid.mixgrid>.mixqueue .mixqueuehead>div:first-child{min-width:0}')self.assertPageContains('.sgrid.mixgrid>.mixqueue .mixqueueactions{grid-column:2;grid-row:1;align-self:center}')- self.assertPageContains("wireDrag($('#stage').querySelector('.mixlist'))")# 媒体框不给视口高度的地板:里面的播放器高度由 16:9 和自己的宽度推出来,地板挂在# vh 上时两个量在窄屏上朝相反方向走,框比画面高出一大截,上下各空一片。self.assertPageLacks('min-height:min(62vh,640px)')diff --git a/tests/test_source_assertion_ratchet.py b/tests/test_source_assertion_ratchet.pyindex 5109928e1..4ddea2b43 100644--- a/tests/test_source_assertion_ratchet.py+++ b/tests/test_source_assertion_ratchet.py@@ -39,7 +39,7 @@ BASELINE: dict[str, int] = {"test_face_detect.py": 3,"test_fastapi_api.py": 4,"test_follow_assets.py": 2,- "test_follow_web.py": 195,+ "test_follow_web.py": 192,"test_frontend_build.py": 80,"test_job_status.py": 3,"test_metadata_library.py": 7,@@ -53,7 +53,7 @@ BASELINE: dict[str, int] = {"test_web_e2e.py": 2,"test_web_js.py": 1,"test_web_settings.py": 8,- "test_web_ui.py": 3639,+ "test_web_ui.py": 3516,"test_windows_update.py": 3,}diff --git a/tests/test_studio_icon_variants.py b/tests/test_studio_icon_variants.pyindex 43db726c6..c5a736aa3 100644--- a/tests/test_studio_icon_variants.py+++ b/tests/test_studio_icon_variants.py@@ -375,9 +375,9 @@ class PageSourceTests(unittest.TestCase):def test_every_small_surface_asks_for_the_icon(self):for snippet in ('/logo?studio=${encodeURIComponent(x.k)}&variant=icon',- '/logo?studio=${encodeURIComponent(item.name)}&variant=icon',):- # 小位只有这两处厂牌标识;网盘来源角标走 `MEDIA_SOURCE_ICONS` 那份站标,+ # 壳里的小位只剩这一处厂牌标识,作品详情出演区的厂牌格画在 React 岛里,由+ # `frontend/test/react/item-detail.test.tsx` 钉住;网盘来源角标走 `MEDIA_SOURCE_ICONS` 那份站标,# 不进这条链。`.entityfavicon` 的模板不写 `data-studio`,图片回退是# 声明式的,不存在按 `img.dataset.studio` 换图的第三处。「不许漏 variant」# 由下面那条按行扫描的断言守。diff --git a/tests/test_web_ui.py b/tests/test_web_ui.pyindex d0c6a7482..0b6d13372 100644--- a/tests/test_web_ui.py+++ b/tests/test_web_ui.py@@ -1184,19 +1184,7 @@ class WebUiSourceTests(unittest.TestCase):`:has(~ .star:hover)` 选中它左边的几颗——把 DOM 倒过来写也能做到同一件事,代价是 Tab 与读屏顺序跟着倒过来,五颗星从「评为 5 星」开始念。"""- self.assertPageContains("const RATING_STEP=20;")- self.assertPageContains(- """ ${it.location==='online'?'':`<span class="srcstate detailtitlestate" aria-live="polite"></span>`}- ${ratingHtml(it.rating)}- <div class="smeta mono" data-reveal-line>""")- self.assertPageContains(- "const value=picked===before?0:picked;")- self.assertPageContains(- "api('/api/feedback',{method:'POST',body:JSON.stringify({id:it.id,kind:'rate',value})})")- self.assertPageContains("{undo:()=>postRating(before)}")- # 标签是语义契约:撤销那一颗要说清它现在是几星,否则读屏只听到「星」。- self.assertPageContains(- "aria-label=\"${n===on?`取消评分(当前 ${n} 星)`:`评为 ${n} 星`}\"")+ # 位置、送出的分值、撤销与每颗星的读屏名归作品详情岛:`frontend/test/react/item-detail.test.tsx`。self.assertPageContains('<symbol id="i-star" viewBox="0 0 24 24">')self.assertPageContains('.ratingstars .star[data-on="true"] svg{fill:currentColor}')self.assertPageContains(@@ -1427,8 +1415,10 @@ class WebUiSourceTests(unittest.TestCase):Geist 的 Spinner 规格把这一条写成「等待超过约 1 秒要配上说明这次在做什么的文案」,所以判据是动词形态:进行中的说法,不是动作的名字。"""- source = (Path(__file__).resolve().parents[1] / "web/app.js").read_text(- encoding="utf-8")+ # 壳和 React 岛都调它:作品详情的喜爱理由、定位源文件的忙态画在岛里。+ root = Path(__file__).resolve().parents[1]+ source = chr(10).join(path.read_text(encoding="utf-8") for path in (+ root / "web/app.js", *sorted((root / "frontend/src").rglob("*.tsx"))))labels = re.findall(r"spinnerHtml\('([^']+)'\)", source)self.assertGreaterEqual(len(labels), 6, "调用点少得不像全站都在用")ongoing = ("正在", "中", "…")@@ -1838,13 +1828,11 @@ class WebUiSourceTests(unittest.TestCase):self.assertPageContains("const handleSearchInput=e=>{\n if(e.isComposing)return;")self.assertPageContains("$('#q').oninput=handleSearchInput;")self.assertPageContains("$('#q').addEventListener('compositionend',handleSearchInput);")- self.assertPageContains("search.oninput=e=>{if(e.isComposing)return;renderPicker()};")- self.assertPageContains("search.oncompositionend=renderPicker;")- # 顶部搜索和标签选择器的键盘处理在最前面让位给输入法。+ # 顶部搜索的键盘处理在最前面让位给输入法。作品详情的标签选择器在 React 里,+ # 同一条判据由 `frontend/test/react/item-detail.test.tsx` 验收。self.assertPageLacks("$('#q').oninput=()=>{searchActive=-1;")- self.assertPageLacks("search.oninput=renderPicker;")- self.assertEqual(self.app_js.count("if(e.isComposing)return;"), 4,- "四处:顶部搜索的输入与键盘、标签选择器的输入与键盘")+ self.assertEqual(self.app_js.count("if(e.isComposing)return;"), 2,+ "两处:顶部搜索的输入与键盘")def test_route_titles_and_settings_dialog_manage_focus(self):# 标题跟着路由表走:每一屏的标签写在自己那条记录上,不再有第二份@@ -2065,8 +2053,8 @@ class WebUiSourceTests(unittest.TestCase):传 `null` 压过默认。"""self.assertPageContains("const hint=focus===undefined?(ref&&ref.avatar_focus)||null:focus;")- # 详情页的出镜者格子不走 avatarInner,自己把取景递进去。- self.assertPageContains("{id:item.id,hasImage:item.has_image,focus:item.avatar_focus})}")+ # 详情页的出镜者格子不走 avatarInner,壳交给详情岛的那一格自己把取景递进去。+ self.assertPageContains("faceHtml:ref=>entityFaceImg({id:ref.id,hasImage:ref.has_image,focus:ref.avatar_focus}),")def test_an_unlaid_out_frame_is_waited_for_instead_of_measured_as_zero(self):"""图加载完时框还没布局,`load` 不会再来第二次。@@ -2150,8 +2138,7 @@ class WebUiSourceTests(unittest.TestCase):self.assertPageContains("const kind=ROUTE_ENTITIES[path.split('/')[1]],name=path.split('/').slice(2).join('/');")self.assertPageContains('showEntityLoading(kind,name);')self.assertPageContains('appSettings.detailAutoplay=appSettings.detailAutoplay!==false;')- self.assertPageContains('mountDetailPlayer(it,vv,appSettings.detailAutoplay)')- self.assertPageContains('mountDetailPlayer(item,video,appSettings.detailAutoplay,{')+ self.assertPageContains('mountDetailPlayer(item,video,autoplay??appSettings.detailAutoplay,options)')self.assertPageContains('class="ptoggle" type="checkbox" id="detailAutoplaySetting"')def test_local_assets_get_their_sidecar_subtitles_as_closed_text_tracks(self):@@ -2339,31 +2326,23 @@ class WebUiSourceTests(unittest.TestCase):def test_detail_identity_groups_by_kind_with_the_label_on_top(self):# 逐行一个名字在共演作品上会把整个侧栏撑满,左侧还重复一列标签。- self.assertPageContains("const idGroup=(label,kind,list,extra='')=>list.length")- self.assertPageContains('<section class="idgroup idgroup-${kind}">')- self.assertPageContains('<h5 class="idlabel">${label}</h5>')+ # 分组与组标题归作品详情岛(`frontend/test/react/item-detail.test.tsx`);出镜者那一组的+ # 标签跟着作品形态走,由壳的 performerLabel 给。self.assertPageContains(".idrow{display:flex;flex-wrap:wrap")- self.assertPageContains('<div class="identityprimary">${primaryIdentity}</div>')self.assertPageContains(".identityprimary{display:flex;flex-wrap:wrap;gap:14px 26px")self.assertPageContains(".identityprimary>.idgroup{width:max-content;max-width:100%}")- # 出镜者标签跟着作品形态走,不再写死「女优」——见 performerLabel。- self.assertPageContains("idGroup(performerLabel(it),'performer',castList,")- self.assertPageContains("idGroup('厂牌','studio',studioList)")+ self.assertPageContains("performerLabel:it=>performerLabel(it),")self.assertPageLacks("const performerName=performerRef?.name")self.assertPageLacks(".identityrow", "旧的逐行布局必须整段删掉")def test_detail_only_links_canonical_entities(self):"""旧标签可以作为显示回退,但不得伪造一个不存在的资料页。"""- self.assertPageContains("if(!item.id)return `<span class=\"idcell")- self.assertPageContains("const creatorList=(refs.creator||[])")- self.assertPageContains("const seriesList=(refs.series||[])")+ # 没有实体 id 的只画成文字、不给入口:`frontend/test/react/item-detail.test.tsx`。self.assertPageContains(".idcell:not(.entitylink):not(.unownedlink){cursor:default}")self.assertPageContains(".idcell.entitylink:hover .idface")def test_detail_series_is_a_plain_icon_link_not_a_tag_pill(self):- self.assertPageContains('class="serieslink entitylink" data-entity-kind="series"')- self.assertPageContains('<div class="seriesrows">${list.map(seriesCell).join(\'\')}</div>')- self.assertPageContains("const content=`${icon('tags')}<span>${esc(item.name)}</span>`")+ # 系列一行是带图标的链接,不是标签胶囊:`frontend/test/react/item-detail.test.tsx`。self.assertPageContains(".serieslink,.serieslink.entitylink{display:flex;width:100%")self.assertPageContains("white-space:normal;overflow-wrap:anywhere")self.assertPageContains("button.serieslink.entitylink:hover{color:var(--tungsten);text-decoration:none}")@@ -2374,12 +2353,9 @@ class WebUiSourceTests(unittest.TestCase):def test_mutating_detail_actions_share_terminal_toasts_and_undo(self):self.assertPageContains("const actionReceipt=(message,{undo=null,timeout=undo?8000:6000}={})")self.assertPageContains("action:undo?{label:'撤销'")- self.assertPageContains("if(kind==='o')await postFeedback('o-undo')")- self.assertPageContains("actionReceipt(messages[kind],{undo:async()=>")+ # 作品详情侧栏各键的回执与撤销在岛里:`frontend/test/react/item-detail.test.tsx`。+ self.assertPageContains("toast:(message,{undo}={})=>actionReceipt(message,{undo}),")self.assertPageContains("actionReceipt(r.watch_later?'已加入稍后看':'已移出稍后看'")- self.assertPageContains("actionReceipt(r.better_version?'已标记寻找更好版本':'已取消寻找更好版本'")- self.assertPageContains("actionReceipt(`已删除标签「${tagLabel(tag)}」`,{undo:async()=>")- self.assertPageContains("actionReceipt(r.liked?'已保存喜欢偏好':'已取消喜欢'")self.assertPageContains("if(kind==='o')await post('o-undo')")def test_toast_callers_declare_whether_they_pass_text_or_html(self):@@ -2479,9 +2455,10 @@ class WebUiSourceTests(unittest.TestCase):self.assertPageContains("return it.location==='online'&&it.follow_item_id")self.assertPageContains("const proxied=followStreamSource(it);")- self.assertPageContains("const onlineGated=online&&!it.follow_item_id;")- self.assertPageContains("if(it.location==='online'&&it.follow_item_id){")- self.assertPageContains('await openFollowDetail(it.follow_item_id,false,null,true)')+ # 反查得到就转关注详情、反查不到才拦:判据在作品详情岛(`frontend/test/react/item-detail.test.tsx`),+ # 壳接住转向。+ self.assertPageContains("if(to.kind==='follow'){followDetailReturnPath=detailReturnPath||'/';"+ "void openFollowDetail(to.id,false,null,true);return}")self.assertPageContains("if(location.pathname!=='/follow'){await restoreRoute();return}")self.assertPageLacks("这条内容从关注候选保存;媒体与原始页面在关注详情中查看。")@@ -2490,23 +2467,15 @@ class WebUiSourceTests(unittest.TestCase):self.assertPageContains('<symbol id="i-download"')def test_detail_like_reason_is_an_icon_disclosure_without_idle_explanation(self):- self.assertPageContains('id="preferenceToggle" aria-label="喜爱理由"')- self.assertPageContains('id="preferencePanel" hidden')- self.assertPageContains("preferenceToggle.onclick=()=>{const open=preferencePanel.hidden")- self.assertPageContains('placeholder="为什么喜欢?"')- self.assertPageContains('class="geist-button primary savepreference"')- self.assertPageContains('aria-label="提交喜爱理由"><span>提交</span></button>')- self.assertPageContains("setActionBusy(btn)")- self.assertPageContains("spinnerHtml('正在提交喜爱理由')")- self.assertPageContains("setActionBusy(btn,false);btn.innerHTML='<span>提交</span>'")+ # 图标键开合理由框、提交时的忙态:`frontend/test/react/item-detail.test.tsx`。self.assertPageContains('.preference-foot>span{margin-right:auto')self.assertPageLacks('aria-label="保存喜爱理由">${icon(\'check\')}</button>')self.assertPageLacks("仅保存在本机")self.assertPageLacks("回收站中的文件仍保留,清空回收站后才会永久删除。")def test_detail_progress_uses_only_titles_and_percentages(self):- self.assertPageContains('<span>离开位置</span><span id="ratioTxt">0%</span>')- self.assertPageContains('<span>真实观看</span><span id="realTxt">0%</span>')+ # 两条读数的标题与初值画在作品详情岛里,壳的遥测按 id 改写它们。+ self.assertPageContains("wireTelemetry(item,video,{watched:'#watched',mark:'#mark',ratio:'#ratioTxt'});")self.assertPageContains("if(t)t.textContent=(r*100).toFixed(0)+'%'")self.assertPageContains("rr.textContent=rp.toFixed(0)+'%'")self.assertPageLacks('class="ticks mono"')@@ -2706,22 +2675,14 @@ class WebUiSourceTests(unittest.TestCase):4566 部作品没有任何署名人。写成一行「归属 未归属」,标签和值念的是同一个词,读完就没有下一步;写成入口,它和女优、厂牌一样点得开、筛得出、清得掉。"""- # 详情页:和女优组同一个槽位、同一种版式,不是另起一行说明。- self.assertPageContains('<section class="idgroup idgroup-unowned">'- '<h5 class="idlabel">归属</h5>')- self.assertPageContains('<button class="idcell unownedlink" type="button" data-open-unowned')- self.assertPageContains("const unowned=!castList.length&&!creatorList.length"- "&&!(it.creator||'').trim();")- self.assertPageContains("(unowned?unownedGroup")- self.assertPageContains('<div class="detailidentity">${identityRows}</div>')+ # 详情页和女优组同一个槽位、同一种版式,不是另起一行说明:`frontend/test/react/item-detail.test.tsx`。# 卡片:署名位上的「未归属」也点得开。self.assertPageContains(':linked?`<button class="who unownedlink" type="button" data-open-unowned>''${esc(who)}</button>`')# 三个表面共用一个落点,筛选写在 state.owner 上。self.assertPageContains("function openUnowned(){")self.assertPageContains("resetHomeState();state.owner='none';")- self.assertPageContains("$('#stage').querySelectorAll('[data-open-unowned]')"- ".forEach(b=>b.onclick=()=>openUnowned());")+ self.assertPageContains("openUnowned:()=>openUnowned(),")self.assertPageContains("else openUnowned()};")self.assertPageLacks("else if(it.code){state.q=it.code","拿番号去搜只能搜回这一条自己,那不是「同类」")@@ -3123,8 +3084,9 @@ class WebUiSourceTests(unittest.TestCase):self.assertPageContains("target.classList.remove('skeleton-awaiting');")self.assertPageContains("if(container.querySelector('.skeleton-awaiting')){write();return}")self.assertPageContains(".skeleton-awaiting{visibility:hidden}")- # 独立于整页骨架的计数、详情与推荐区域也必须经过同一个门槛。- for call in ("fitSkeleton(count);", "fitSkeleton(stage);", "fitSkeleton($('#nrow'));"):+ # 独立于整页骨架的计数与详情也必须经过同一个门槛;「接着看」那一排由作品详情岛调同一个+ # `fitSkeleton`。+ for call in ("fitSkeleton(count);", "fitSkeleton(stage);"):self.assertPageContains(call)def test_unmatched_routes_do_not_leave_an_orphan_skeleton(self):@@ -3378,17 +3340,8 @@ class WebUiSourceTests(unittest.TestCase):def test_every_identity_cell_can_carry_its_own_portrait(self):# 人物格走和顶栏圆头像同一个 entityFaceImg;这一格没有代表作头像可退,# 装了实体图才出 `<img>`,否则就是首字母垫底。- self.assertPageContains("? `<span>${esc(item.name.slice(0,1))}</span>${entityFaceImg(")- self.assertPageContains("{id:item.id,hasImage:item.has_image,focus:item.avatar_focus})}")- self.assertPageContains(- '${item.has_logo?`<img src="/logo?studio=${encodeURIComponent(item.name)}&variant=icon"')-- def test_large_casts_stay_in_the_dom_behind_one_expander(self):- # 收起的格子必须留在 DOM 里,展开只是取消 hidden,不重新请求也不丢身份。- self.assertPageContains("const CAST_SHOWN=8")- self.assertPageContains("const castOverflow=Math.max(0,castList.length-CAST_SHOWN)")- self.assertPageContains("还有 ${castOverflow} 位")- self.assertPageContains("querySelectorAll('[data-castoverflow]').forEach(row=>row.hidden=false)")+ # 厂牌那一格装了标识才出 `<img>`:`frontend/test/react/item-detail.test.tsx`。+ self.assertPageContains("faceHtml:ref=>entityFaceImg({id:ref.id,hasImage:ref.has_image,focus:ref.avatar_focus}),")def test_playback_keys_reach_both_the_detail_player_and_immerse(self):# 两边的 Video.js 读的都是原生 video 元素,沉浸模式拉不到播放器脚本时还是裸 video,@@ -3526,22 +3479,18 @@ class WebUiSourceTests(unittest.TestCase):self.assertIn(needle, telemetry,f"详情遥测缺少 {needle}:离开详情后定时器还在上报")- outside = app[app.index("function bindOutsideClose("):]- outside = outside[:outside.index("\nfunction disposeStage(")]- self.assertIn("document.addEventListener('pointerdown',handler,true)", outside)- self.assertIn("document.removeEventListener('pointerdown',handler,true)", outside)- self.assertIn("onStageDispose(detach)", outside,- "浮层没被关掉就离开详情时,要有舞台销毁兜底")- self.assertPageContains("detachOutside=bindOutsideClose(plus,picker,closePicker)")+ # 标签选择器在作品详情岛里:点外面就收起的那条 document 监听随组件卸载撤掉,+ # 舞台销毁先卸岛。def test_detail_close_disposes_playback_source(self):self.assertPageContains("function disposeStage")self.assertPageContains("video.pause();video.removeAttribute('src');video.load();video.remove()")- self.assertPageContains("document.body.classList.remove('detail-open');current=null;activeQueue=null")+ self.assertPageContains("document.body.classList.remove('detail-open');activeQueue=null;pendingQueueRoute=null;")self.assertPageContains("detailOriginAnchor=null;detailOriginAbove=false;detailReturnNeedsRestore=false")self.assertPageContains("scheduleStickySurfaces();")- self.assertPageContains("const closeDetail=async()=>{const restore=cloneBarsContext(detailReturnBarsContext)")- self.assertPageContains("$('#closeStage').onclick=closeDetail")+ # 关闭键画在作品详情岛里,交回壳的 `close`。+ self.assertPageContains("close:()=>closeItemDetail(),")+ self.assertPageContains("async function closeItemDetail(){\n const restore=cloneBarsContext(detailReturnBarsContext);")self.assertPageContains("function cancelDetailStream()")self.assertPageContains("/api/stream-cancel?session=")self.assertPageContains("keepalive:true")@@ -3559,11 +3508,7 @@ class WebUiSourceTests(unittest.TestCase):# 会在同一个 flex 容器里各占一半。点击入口后再取消 hidden、移除入口并自动播放。self.assertPageContains(".vwrap>video[hidden]{display:none}")self.assertPageContains(".gate{aspect-ratio:16/9;width:100%")- # 挂播放器现在要等 video.js 到位,入口回调因此是 async。- self.assertCode(- "else if(g)g.onclick=async()=>{vv.hidden=false;g.remove();"- "const mounted=await mountDetailPlayer(it,vv,true)"- )+ # 点了说明才挂播放器并自动播放:`frontend/test/react/item-detail.test.tsx`。def test_detail_uses_pinned_videojs_and_authoritative_duration(self):self.assertPageContains('/vendor/videojs/8.24.1/video.min.js')@@ -3577,7 +3522,7 @@ class WebUiSourceTests(unittest.TestCase):海报层,开播即收,详情侧不另写一套收尾逻辑。"""self.assertPageContains("function detailPosterUrl(it){")- self.assertPageContains("const vv=$('#vid'),poster=detailPosterUrl(it);")+ self.assertPageContains("const poster=detailPosterUrl(item);\n if(poster)video.poster=poster;")self.assertPageContains("poster:options.poster||detailPosterUrl(it)")def test_detail_poster_follows_the_jav_image_preference(self):@@ -5068,7 +5013,7 @@ class WebUiSourceTests(unittest.TestCase):def test_online_assets_use_rss_and_open_the_saved_follow_surface(self):self.assertPageContains("online:icon('rss')")self.assertPageLacks("online:icon('globe')")- self.assertPageContains('id="onlineGate"')+ # 反查不到关注条目的在线资产由作品详情岛画说明块:`frontend/test/react/item-detail.test.tsx`。# 直达「已保存」这一档。筛选现在由 URL 驱动,光设全局会被 openFollow 照# URL 推回未看,所以状态必须先写进 URL 再重取。self.assertPageContains("followFilter='saved';route(followViewPath());openFollow(false)}")@@ -5115,7 +5060,6 @@ class WebUiSourceTests(unittest.TestCase):"""详情背景与滚动内容分层,在线占位、图片和合集都不会再露出半截底色。"""self.assertPageContains(".side{min-width:0;min-height:0;align-self:stretch")self.assertPageContains(".sidecontent{box-sizing:border-box;width:100%;height:100%;max-height:76vh")- self.assertPageContains('<div class="side"><div class="sidecontent">')self.assertPageContains(".sidecontent{height:auto;max-height:none}")def test_state_pages_ask_for_facets_narrowed_to_that_state(self):@@ -5391,7 +5335,8 @@ class WebUiSourceTests(unittest.TestCase):self.assertPageContains("throw new Error(requestErrorMessage(detail,response.status))")self.assertPageContains("catch(error){setActionBusy(button,false);throw error}")self.assertPageContains("actionFailure('操作',error)")- self.assertPageContains("kind==='dispose'&&r.disposal==='trash'&&state.state==='ads'")+ # 作品详情里移进回收站之后,「垃圾文件」那一档把它从列表里拿掉。+ self.assertPageContains("if(state.state!=='ads')return;\n if(!undo&&disposal!=='trash')return;")def test_junk_files_wait_on_a_structural_skeleton_not_loading_dots(self):"""垃圾文件页等的是一屏同质卡片,不是后台任务的进度。@@ -6178,19 +6123,6 @@ class WebUiSourceTests(unittest.TestCase):rule = stylesheet_source().split(".glowsetting{", 1)[1].split("}", 1)[0]self.assertIn("padding:0 10px var(--glowrow-pad) 0", rule)- def test_detail_deduplicates_identity_and_supports_tag_editing(self):- self.assertPageContains("const identitySeen=new Set()")- self.assertPageContains("data-remove-tag")- self.assertPageContains("/api/item-tag")- self.assertPageContains('class="tagplus"')-- def test_tag_picker_supports_search_recent_selection_and_keyboard(self):- self.assertPageContains('class="tagpicker"')- self.assertPageContains("peach.recentTags")- self.assertPageContains("最近使用")- self.assertPageContains("e.key==='ArrowDown'||e.key==='ArrowUp'")- self.assertPageContains("e.key==='Escape'")-def test_source_icons_are_visible_in_detail_and_list_badges(self):self.assertPageContains(".srcbig svg{stroke:currentColor;fill:none")self.assertPageContains("local:icon('hard-drive')")@@ -6567,15 +6499,14 @@ class WebUiSourceTests(unittest.TestCase):# 进场起手是 scale(.95),定位量框只能读 offsetWidth。self.assertCode("const anchor=toggle.getBoundingClientRect(),width=menu.offsetWidth;")self.assertCode("event.stopPropagation();setOpen(!open)")- # wireAnchoredMenu 之外自己开合的四个面板也从同一个口进出。+ # wireAnchoredMenu 之外自己开合的面板也从同一个口进出;作品详情的标签选择器在岛里调+ # 同一对 presentMenu/dismissMenu。self.assertPageContains("if(menu)dismissMenu(menu,()=>{menu.innerHTML=''});")self.assertPageContains("innerWidth-menu.offsetWidth-8")self.assertPageContains("function hideSearchMenu(){dismissMenu($('#searchMenu'))}")self.assertPageContains("if(menu.innerHTML)presentMenu(menu);else hideSearchMenu();")self.assertPageContains("const closeAddMenu=()=>{if(!addMenu)return;dismissMenu(addMenu);")self.assertPageContains("if(opening)presentMenu(addMenu);else dismissMenu(addMenu);")- self.assertPageContains("const closePicker=()=>{dismissMenu(picker);")- self.assertPageContains("plus.onclick=()=>{presentMenu(picker);")self.assertPageLacks("$('#searchMenu').hidden=true")def test_board_batch_three_aligns_ranks_buttons_and_the_sidebar_switcher(self):@@ -6773,14 +6704,12 @@ class WebUiSourceTests(unittest.TestCase):def test_jav_detail_keeps_official_tags_visually_neutral(self):# 「日文标题优先」这条已经改成拿真输入跑真函数验收,见# test_web_js.test_official_title_prefers_the_japanese_one。- self.assertPageContains('wrap.innerHTML=visible.map(t=>`<span class="detailtag">')+ # 官方与非官方标签画成同一种 `.detailtag`、按显示名去重:`frontend/test/react/item-detail.test.tsx`。self.assertPageLacks("<small>官方</small>")self.assertPageLacks(".detailtag.official{")# 左半边点下去是按这个标签筛选,和右边的删除键一样得有悬停反馈;# 它没有选中态,照孤立按钮的写法抬填充。self.assertPageContains(".detailtag .tagfilter:hover{background:var(--hover);color:var(--ink)}")- self.assertPageContains("const byDisplay=new Map()")- self.assertPageContains("foldName(t.k)===key&&foldName(previous.k)!==key")def test_drawer_filters_follow_entity_and_detail_context(self):self.assertPageContains('function buildDrawerNavigation()')@@ -6795,7 +6724,7 @@ class WebUiSourceTests(unittest.TestCase):self.assertPageContains("facetParams.set('scope_kind',context.kind)")self.assertPageContains("facetParams.set('scope_name',context.name)")self.assertPageContains("facetParams.set('id',String(context.id))")- self.assertPageContains("barsContext={type:'item',id:it.id,filters:returnBars?.type==='entity'")+ self.assertPageContains("barsContext={type:'item',id:item.id,filters:returnBars?.type==='entity'")self.assertPageContains("detailReturnBarsContext=returnBars")# 实体筛选走实体集合自己的更新路径;旧实现调用 load(true) 会把 #index 隐藏并重建首页。self.assertPageContains("updateEntityCollection(barsContext.kind,barsContext.name,filters,true)")@@ -7082,8 +7011,8 @@ class WebUiSourceTests(unittest.TestCase):self.assertPageContains("const load=eager?'eager':'lazy';")self.assertCode('''loading="${eager?'eager':'lazy'}"''')self.assertPageContains("const mixRelatedCache=new Map();")- self.assertPageContains(- "Promise.all([api('/api/item?id='+seedId),mixRelated(seedId)])")+ # 作品详情岛取 Mix 队列也走壳的这一份缓存。+ self.assertPageContains("mixRelated:seedId=>mixRelated(seedId),")# 队列长度不能被悬浮预取剪短:两边用同一个 limit。self.assertPageContains("api('/api/related?id='+seedId+'&limit=28')")@@ -7106,21 +7035,15 @@ class WebUiSourceTests(unittest.TestCase):def test_mix_and_persistent_playlists_share_the_routed_side_queue(self):self.assertPageContains(".mixstack::before,.mixstack::after")- self.assertPageContains("async function openMix(seedId,itemId=seedId,push=true,anchor=null)")- self.assertPageContains("route(`/mix/${seedId}/${itemId}`)")- self.assertPageContains('class="mixqueue"')- self.assertPageContains('class="mixitem ${x.id===itemId?\'current\':\'\'}"')- self.assertPageContains("data-queue-item")+ # 队列侧栏、续播位置、拖动排序与保存 Mix 归作品详情岛:`frontend/e2e/item-detail.test.ts`。+ self.assertPageContains("const QUEUE_ROUTES={mix:'/mix',parts:'/parts',editions:'/editions',playlist:'/playlists'};")+ self.assertPageContains(+ "function openMix(seedId,itemId=seedId,push=true,anchor=null){return openQueue('mix',seedId,itemId,push,anchor)}")self.assertPageContains("async function openPlaylists(push=true)")self.assertPageContains("const surface=claimSurface('/playlists')")- self.assertPageContains("async function openPlaylist(playlistId,itemId=null,push=true)")- self.assertPageContains("route(`/playlists/${playlistId}/${chosen}`)")- self.assertPageContains("action:'progress'")- self.assertPageContains("action:'reorder'")+ self.assertPageContains(+ "function openPlaylist(playlistId,itemId=null,push=true){return openQueue('playlist',playlistId,itemId,push)}")self.assertPageContains("action:'remove'")- self.assertPageContains("data-save-mix")- self.assertPageContains("source_kind:'mix'")- self.assertPageContains('id="addPlaylist"')# 一次能勾好几份列表:行前是勾选框,右下角那个保存才写库。self.assertPageContains("data-pick-playlist")self.assertPageContains("formModal({")@@ -7133,12 +7056,10 @@ class WebUiSourceTests(unittest.TestCase):self.assertPageContains("/api/trash/empty")def test_multipart_releases_use_a_distinct_group_card_and_queue(self):- self.assertPageContains("async function openParts(seedId,itemId=seedId,push=true,anchor=null)")- self.assertPageContains("api('/api/parts?id='+seedId)")- self.assertPageContains("title:`分卷 · ${group.title}`")- self.assertPageContains("route(`/parts/${seedId}/${chosen}`)")- self.assertPageContains("queue.kind==='parts'?`${queue.items.length} 卷`")- self.assertPageContains("queueContext.kind==='parts'?openParts")+ # 分卷队列的取数、卷数与队列里换一条归作品详情岛:`frontend/test/react/item-detail.test.tsx`+ # 与 `frontend/e2e/item-detail.test.ts`。+ self.assertPageContains(+ "function openParts(seedId,itemId=seedId,push=true,anchor=null){return openQueue('parts',seedId,itemId,push,anchor)}")self.assertRoute('/parts/:seed/:item', "openParts(params.seed,params.item,push)")self.assertPageLacks("Mix · ${group.title}")@@ -7174,8 +7095,9 @@ class WebUiSourceTests(unittest.TestCase):self.assertPageContains("['#tagScroll','#tagbar .filterscroll','#nrow','#count']"".forEach(s=>wireDrag($(s)))")self.assertPageContains("document.querySelectorAll('.tier,.srow').forEach(wireDrag)")- # 「接着看」每开一次详情就重建,启动时的登记落在旧节点上;推荐结果渲染完要当场再登记一次。- self.assertPageContains("wireDrag(nextRow);});")+ # 「接着看」每开一次详情就重建,启动时的登记落在旧节点上;作品详情岛画出那一排时经壳+ # 交来的 `wireDrag` 当场再登记一次。+ self.assertPageContains("wireDrag:el=>wireDrag(el),")self.assertPageContains(".nrow{display:flex;gap:11px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;")# 同一个元素宽屏不溢出、窄屏才溢出,不判溢出就会在宽屏抢走滚轮和拖动。self.assertPageContains("event.button!==0||el.scrollWidth-el.clientWidth<=1")@@ -7215,10 +7137,10 @@ class WebUiSourceTests(unittest.TestCase):self.assertPageContains(".javedition.subtitle{color:var(--ink-2)}")self.assertPageContains(".javedition.uncensored{color:var(--meter)}")self.assertPageContains(".javedition.cracked{color:var(--drop)}")- self.assertPageContains("<span class=\"stitletext\" data-detail-title>${srcBadge(it.location,it.cost,'srcbig')}"- "${javTitleHtml(it)}")+ # 作品详情的标题与队列行由壳交给详情岛的这两个函数画。+ self.assertPageContains("titleHtml:it=>javTitleHtml(it),")self.assertPageContains("$('#tokTitle').textContent=javDisplayName(it)")- self.assertPageContains("<b data-middle-truncate>${esc(javDisplayName(x))}</b>")+ self.assertPageContains("displayName:it=>javDisplayName(it),")def test_remote_hover_previews_do_not_stream_full_media(self):self.assertPageContains("if(it.location!=='local')")@@ -7287,7 +7209,7 @@ class WebUiSourceTests(unittest.TestCase):self.assertPageContains("if(stage.open)stage.append(menu);")self.assertPageContains("max-height:calc(100dvh - 32px)")self.assertPageLacks("stage.scrollIntoView(")- self.assertCode("buildBars();\n scrollItemDetailIntoView();")+ self.assertCode("if(stageIslandHost===host&&host.isConnected)scrollItemDetailIntoView();")def test_catalog_skeleton_collects_the_bottom_loading_dots(self):"""一屏只能有一段等待态:铺骨架和收哨兵是同一件事的两半。@@ -7325,9 +7247,8 @@ class WebUiSourceTests(unittest.TestCase):self.assertPageContains(".skeletondashhero{min-height:330px;grid-template-columns:minmax(260px,36%) minmax(0,1fr)}")self.assertPageContains("$('#loadSentinel').innerHTML=loadingDotsHtml('继续载入中…')")self.assertPageContains("pageSkeletonHtml('正在读取推荐',{cards:true,className:'related-skeleton'})")- # 「接着看」没有内容就整块不出现:推荐条数设为 0 时不生成,取回空列表时整块拿掉。- self.assertPageContains("${queueContext||!(appSettings.relatedLimit>0)?'':`<div class=\"next\"><h3>接着看</h3>")- self.assertPageContains("if(!d.items.length){nextRow.closest('.next')?.remove();return}")+ # 「接着看」没有内容就整块不出现(推荐条数设为 0、取回空列表、开着队列):+ # `frontend/test/react/item-detail.test.tsx`。self.assertPageLacks("'<span class=\"empty\">暂无</span>'")self.assertPageLacks("count.innerHTML=`${spinnerHtml(label)}<span>载入中…</span>`")self.assertPageLacks("function showItemDetailLoading(anchor,above)")@@ -7406,7 +7327,6 @@ class WebUiSourceTests(unittest.TestCase):"请求中的按钮必须保持可聚焦,不能再把 native disabled 和 busy 混用",)self.assertPageContains("setActionBusy(batch)")- self.assertPageContains("setActionBusy(btn)")# React 档里同一件事由 `busyProps()` 发:同样是 aria-busy 加 aria-disabled,# 按钮留在 tab 序列上。self.assertIn("{...busyProps(rowHandlers.busy)}",@@ -7690,7 +7610,6 @@ class WebUiSourceTests(unittest.TestCase):def test_climax_uses_pinned_healthicons_symbol(self):self.assertPageContains('id="i-sperm"')- self.assertPageContains("icon('sperm')")def test_settings_own_useful_experience_preferences(self):self.assertPageContains("const DEFAULT_SETTINGS={batchSize:60,defaultSort:'seed'")@@ -7715,7 +7634,7 @@ class WebUiSourceTests(unittest.TestCase):# 不各留一套。self.assertPageContains("export function wireDragReorder(root,{selector,attribute,onMove}={})")self.assertPageContains("wireDragReorder(root,{selector:'[data-sidebar-row]',attribute:'data-sidebar-row',")- self.assertPageContains("wireDragReorder(list,{selector:'[data-queue-row]',attribute:'data-queue-row',")+ self.assertPageContains("wireDragReorder:(root,options)=>wireDragReorder(root,options),")self.assertPageContains("function wireNavigationDrag(root){")self.assertPageContains("wireNavigationDrag($('#edge'))")self.assertPageContains("wireNavigationDrag($('#drawer').querySelector('.dnav'))")@@ -7897,10 +7816,8 @@ class WebUiSourceTests(unittest.TestCase):self.assertPageContains("function mountPlayerAmbient(video)")self.assertPageContains(".stage:not(.ambient-on) .ambientcanvas{display:none}")self.assertPageContains("视频 ID / 会话")- self.assertPageContains("/api/quality-goal")- self.assertPageContains('id="betterVersion"')+ # 「寻找更好版本」键与它的写入、撤销:`frontend/test/react/item-detail.test.tsx`。self.assertPageLacks("prompt('要找哪种更好版本?")- self.assertPageContains("body:JSON.stringify({id:it.id,wanted})")self.assertPageLacks('id="closeStage">收起')def test_ambient_mode_repaints_from_a_paused_frame_when_switched_back_on(self):@@ -8048,33 +7965,18 @@ class WebUiSourceTests(unittest.TestCase):被裁掉,所以那排键不行内跟在文字后面。折叠态量 scrollHeight 判溢出,没溢出就不画展开键;能折的标题文字本身也接点击,选中文字那一下不算。"""- self.assertPageContains(- '<div class="detailtitle"><div class="stitle" data-reveal-line><span class="stitletext" data-detail-title>'- '${srcBadge(it.location,it.cost,\'srcbig\')}${javTitleHtml(it)}${partLabelBadge(it,queueContext)}</span>'- '<span class="srctools detailtitletools"><button type="button" data-title-fold hidden '- 'aria-expanded="false" aria-label="展开标题" title="展开完整标题">${icon(\'chevron-down\')}</button>'- '${it.has_cover&&it.code?\'<span data-cover-crop></span>\':\'\'}'- '${it.location===\'online\'?\'\':sourceToolButtons(it.id)}</span></div></div>')+ # 标题与那排键的结构、量溢出、展开收起与点标题文字:作品详情岛,+ # `frontend/e2e/item-detail.test.ts` 在真浏览器里量。self.assertPageContains(".stitletext[data-foldable]{cursor:pointer}")- self.assertCode("titleText.toggleAttribute('data-foldable',!titleFold.hidden);")- self.assertCode("if(titleFold.hidden||String(getSelection()||''))return;")self.assertPageContains(".stitletext{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}")self.assertPageContains(".stitletext[data-expanded]{display:block;-webkit-line-clamp:unset;line-clamp:unset}")self.assertPageContains(".detailtitletools{display:flex;margin:6px 0 0;flex-wrap:nowrap}")self.assertPageContains(".detailtitletools:not(:has(button:not([hidden]))){display:none}")self.assertPageContains(".detailtitle .stitle{min-width:0;margin:0;line-height:1.75}")- self.assertCode("if(!expanded)titleFold.hidden=titleText.scrollHeight<=titleText.clientHeight+1;")- self.assertCode("titleFold.setAttribute('aria-label',expanded?'收起标题':'展开标题');")- self.assertCode("titleFold.querySelector('use').setAttribute('href',expanded?'#i-chevron-up':'#i-chevron-down');")- self.assertCode("titleFold.onclick=()=>{titleText.toggleAttribute('data-expanded');syncTitleFold()};")- # 影院模式与普通视图之间切换会改标题栏宽度,溢出要跟着重判。- self.assertCode("new ResizeObserver(syncTitleFold).observe(titleText);")def test_detail_metadata_uses_icons_instead_of_release_copy(self):- self.assertPageContains('<span class="detailmetaitem">${icon(\'monitor\')}')- self.assertPageContains('<span class="detailmetaitem">${icon(\'hard-drive\')}')- self.assertPageContains('<span class="detailmetaitem">${icon(\'calendar\')}')+ # 规格行每一项前面是图标、不写「发行」这类说明字:`frontend/test/react/item-detail.test.tsx`。self.assertPageContains('id="i-monitor"')self.assertPageContains('id="i-calendar"')self.assertPageLacks("发行 ${esc(it.release_date)}")@@ -8142,15 +8044,10 @@ class WebUiSourceTests(unittest.TestCase):"""文件名和路径保留首尾;标题、说明仍按语义使用末尾省略。"""self.assertPageContains("import { initMiddleTruncate } from './js/middle-truncate.js'")self.assertPageContains("initMiddleTruncate(document)")- for consumer in (- '<b data-middle-truncate>${esc(javDisplayName(x))}</b>',):- self.assertPageContains(consumer)- # 高清版目标页、统计页、复核页、数据管理、重复文件页、回收站资源卡、垃圾卡、图片灯箱与关注详情的多媒体队列- # 归 React 子树,由 frontend 的用例覆盖。- self.assertEqual(self.app_js.count("data-middle-truncate"), 1)+ # 用到它的面都在 React 子树:高清版目标页、统计页、复核页、数据管理、重复文件页、回收站资源卡、+ # 垃圾卡、图片灯箱与两种详情的队列行,由 frontend 的用例覆盖;壳只负责 `initMiddleTruncate`。+ self.assertEqual(self.app_js.count("data-middle-truncate"), 0)self.assertPageContains("if(element.dataset.middleTruncateWithin===undefined)return element.clientWidth;")- self.assertEqual(self.app_js.count('class="mixitemtext"'), 1)- self.assertEqual(self.app_js.count("data-truncate-end"), 1)self.assertPageContains("new Intl.Segmenter(undefined,{granularity:'grapheme'})")self.assertPageContains("resizeObserver=new ResizeObserver")self.assertPageContains("context.font=style.font||`${style.fontStyle} ${style.fontWeight} ${style.fontSize} ${style.fontFamily}`")@@ -8359,8 +8256,7 @@ class WebUiSourceTests(unittest.TestCase):"""self.assertIn("['alphabet', '字母表', 'text-aa']", self.read_react("index/index-tags.tsx"))self.assertPageContains("['playlists','播放列表','playlist'],")- self.assertPageContains('aria-label="编辑播放列表">${icon(\'playlist\')}')- self.assertPageContains('title="加入播放列表">${icon(\'playlist\')}')+ # 作品详情里编辑、加入播放列表那两枚:`frontend/test/react/item-detail.test.tsx`。# 关注管理的来源筛选归 React 之后用 Remix 的漏斗,含义还是筛选。self.assertIn("leadingIcon={RiFilter3Line}",self.read_react("follow-manage/add-source.tsx"))@@ -8395,9 +8291,9 @@ class WebUiSourceTests(unittest.TestCase):'title="换一批" aria-label="换一批">${icon(\'shuffle\')}',# 同步删除把这个目录在盘上和账本里对齐。'aria-label="同步删除">${icon(\'folder-sync\')}',- # 保存为播放列表存的是一份列表。沉浸模式入口、卡上「打开详情」与灯箱缩放条- # 两端的字形分别在 e2e 设计用例、catalog-grid.test.tsx 与 photo-lightbox.test.tsx 里核对。- 'aria-label="保存为播放列表">${icon(\'playlist\')}',+ # 保存为播放列表存的是一份列表,在作品详情岛里(item-detail.test.tsx)。沉浸模式入口、+ # 卡上「打开详情」与灯箱缩放条两端的字形分别在 e2e 设计用例、catalog-grid.test.tsx 与+ # photo-lightbox.test.tsx 里核对。):self.assertPageContains(needle)# 女优页头(ADR-0069)归 `entity-hero` island:名字下面那一行的胶片、公文包与证件由@@ -8410,9 +8306,8 @@ class WebUiSourceTests(unittest.TestCase):self.assertIn("leadingIcon={RiCheckDoubleLine}", source_list)# 本地是磁盘、在线是订阅源;标签页和艺人页共用这一对,和关注页的来源图标同一套。self.assertPageContains("const INDEX_SCOPES=[['local','本地','hard-drive'],['online','在线','rss']];")- # 「喜爱理由」开的是一个写字面板,不是喜欢开关——那个是旁边的 thumbs-up。- self.assertPageContains('data-has-reason="${!!it.like_reason}">${icon(\'notebook-pen\')}')- self.assertPageContains('aria-label="${it.liked?\'取消喜欢\':\'喜欢\'}"')+ # 「喜爱理由」开的是一个写字面板,不是喜欢开关——那个是旁边的 thumbs-up。作品详情侧栏+ # 那一排的字形由 `frontend/test/react/item-detail.test.tsx` 逐枚钉住。# 侧栏:已标记是书签,沉浸模式是一叠竖着翻的卡;`play` 留给真的起播。self.assertPageContains("['flagged','已标记','bookmark'],")self.assertPageContains("['immerse','沉浸模式','gallery-vertical-end'],")@@ -8439,7 +8334,6 @@ class WebUiSourceTests(unittest.TestCase):# 分辨率同样使用显示器。self.assertPageContains("[['system','跟随系统','monitor'],['light','浅色','sun'],['dark','深色','moon']]")- self.assertPageContains("${icon('monitor')}<span>${it.width||'?'}×${it.height||'?'}</span>")# 换下来的这几枚没有别的使用者,雪碧图里也不留。星是有使用者的那一枚:# 详情页的五星评分,写进 `asset.rating`,不与任何别的意思共用。# 厂牌索引进去是出片的那些牌子,字形因此说「拍片」而不是说「一栋楼」;@@ -8454,7 +8348,6 @@ class WebUiSourceTests(unittest.TestCase):for gone in ("i-monitor-cog", "i-volume-2", "i-sun-moon", "i-building","i-sliders-horizontal", "i-computer", "i-folder", "ri-hard-drive-line"):self.assertPageLacks(f' id="{gone}"')- self.assertPageContains("${icon('star')}</button>")self.assertPageContains('<symbol id="i-clock" viewBox="0 0 24 24">')def test_mixed_icon_sets_land_on_one_optical_grid(self):@@ -9576,7 +9469,7 @@ class WebUiSourceTests(unittest.TestCase):page = self.pageoverlay = page.split("const OVERLAY_SCROLLERS=[", 1)[1].split("].join(',')", 1)[0]self.assertIn("'.stagescroll'", overlay, "滚的那一层要登记才接得上覆盖式滚动条")- self.assertPageContains('<div class="stagescroll"><div class="sgrid ${queueContext?\'mixgrid\':\'\'}">')+ # 舞台岛的宿主就是这一层,作品详情的 `.sgrid` 与「接着看」都画在它里面。self.assertPageContains("const host=document.createElement('div');host.className='stagescroll';")board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")self.assertIn(".stage>.stagescroll{max-height:calc(100dvh - 34px);"@@ -9827,16 +9720,8 @@ class WebUiSourceTests(unittest.TestCase):点击没有 editions 分支的话会掉进播放列表分支,带着 undefined 的playlistId 去请求——点了没反应,控制台也只有一条被吞掉的失败。"""- self.assertPageContains(- "kindLabel={mix:'Mix',parts:'分卷',editions:'版本',playlist:'播放列表'}")- self.assertPageContains(":queue.kind==='editions'?`${queue.items.length} 个版本`")- self.assertPageContains(- ":queueContext.kind==='editions'?openEditions(queueContext.seedId,+b.dataset.queueItem,true)")- self.assertPageContains("const edition=queue.kind==='editions'&&x.edition_label")- self.assertPageContains(- "EDITION_TONE={'中字':'subtitle','无码':'uncensored','无码破解':'cracked','有码':'censored'}")- self.assertPageContains(- '<span class="mixitemtext"><span class="mixitemhead">${edition}<b data-middle-truncate>')+ # 标题、计数、每条的版次徽章与点击归作品详情岛:`frontend/test/react/item-detail.test.tsx`+ # 与 `frontend/e2e/item-detail.test.ts`。# 徽章和标题同一行,所以标题那一行要自己成为 flex 容器;`<i>` 默认斜体,# 徽章不是强调语气,font-style 必须写死。self.assertPageContains(@@ -9847,8 +9732,7 @@ class WebUiSourceTests(unittest.TestCase):def test_queue_thumbnails_fall_back_to_the_jav_cover(self):"""没抽过帧的条目在队列里退回番号封套,而不是一个纯黑块。"""- self.assertPageContains(- "const thumb=mixFacePoster(x,'small');")+ self.assertPageContains("queueThumbHtml:it=>mixFacePoster(it,'small'),")def test_jav_image_preference_reaches_cards_mix_and_settings(self):self.assertPageContains('id="javImageSetting"')@@ -9876,26 +9760,9 @@ class WebUiSourceTests(unittest.TestCase):标题栏不写卷号的话,点了队列里另一条,整栏看上去纹丝不动。卷号是「第几份文件」而不是版次,所以用中性灰,和无码/中字/破解三种版次色分开。"""- self.assertPageContains("const partLabelBadge=(it,queue)=>queue?.kind==='parts'&&it.part_label")- self.assertPageContains(- """? `<small class="javedition partlabel">第 ${esc(it.part_label)} 卷</small>`:'';""")- self.assertPageContains("${javTitleHtml(it)}${partLabelBadge(it,queueContext)}")+ # `/api/item` 是单条口径,答不出「这是第几卷」;作品详情岛从分卷队列补进标题,队列条目+ # 那一侧用的是同一个字段:`frontend/test/react/item-detail.test.tsx`。self.assertPageContains(".javedition.partlabel{color:var(--muted);margin-left:6px}")- # `/api/item` 是单条口径,答不出「这是第几卷」;不从队列补,标题栏就一直空着。- self.assertPageContains("if(queueContext?.kind==='parts')")- self.assertPageContains(- "it.part_label=queueContext.items.find(part=>part.id===it.id)?.part_label||'';")- # 队列条目那一侧本来就写着卷号,两处用的是同一个字段。- self.assertPageContains("queue.kind==='parts'?`第 ${esc(x.part_label)} 卷`")-- def test_the_edition_queue_head_only_states_the_count(self):- """标题栏已经写着「版本」,番号又印在正上方的详情标题里,说明只留数量。-- 别的队列标题带真信息(播放列表名、Mix 种子),不能跟着一起砍。- """- self.assertPageContains(- "const summary=queue.kind==='editions'?countLabel:`${esc(queue.title)} · ${countLabel}`")- self.assertPageContains("<h2>${kindLabel}</h2><span>${summary}</span>")def test_queue_rows_carry_the_same_signature_block_as_the_cards(self):"""队列行和「接着看」并排出现在同一屏,署名层必须是同一套 DOM。@@ -9905,8 +9772,7 @@ class WebUiSourceTests(unittest.TestCase):必须走不可点分支——嵌套 <button> 会被浏览器就地拆散。"""self.assertPageContains("function cardIdentity(it,linked=true)")- self.assertPageContains(- '<span class="mixitemmeta">${cardIdentity(x,false).avatar}<span class="mixitemtext">')+ self.assertPageContains("queueAvatarHtml:it=>cardIdentity(it,false).avatar,")self.assertPageContains("? `<button class=\"${cls} entitylink\" ${attrs}>${inner}</button>`")self.assertPageContains(": `<span class=\"${cls}\">${inner}</span>`")@@ -10050,7 +9916,7 @@ class WebUiSourceTests(unittest.TestCase):self.assertIn(loader, self._js_function(name),name + " 自己铺索引页主体,多半又抄漏了一行")# 详情页内联在目录里,两个容器都还藏着:芯片在那里继续成立,不能被一起收掉。- self.assertPageContains("if(push&&!queueContext)route('/item/'+id);")+ self.assertPageContains("if(push&&!queue)route('/item/'+id);")def test_tag_toggles_land_in_the_context_the_click_happened_in(self):"""标签开关作用在当前这一屏的筛选上,读写用同一个判据。@@ -10582,8 +10448,9 @@ class WebUiSourceTests(unittest.TestCase):self.assertPageContains("api('/api/purge-missing',{method:'POST',body:JSON.stringify({id})})")self.assertPageContains('data-reveal="${id}"')self.assertPageContains('data-sync="${id}"')- # 在线资产是 URL,没有本地文件可定位。- self.assertPageContains('${it.location===\'online\'?\'\':sourceToolButtons(it.id)}</span>')+ # 作品详情岛也只把 asset id 交给壳;在线资产是 URL,岛里不画这两枚:+ # `frontend/test/react/item-detail.test.tsx`。+ self.assertPageContains("reveal:id=>revealForIsland(id),")def test_resource_sync_is_an_anchor_on_the_data_management_page(self):"""资源同步是数据管理页上的一个锚点,扫描、清理与离线来源怎么说由diff --git a/web/app.js b/web/app.jsindex bf1e38505..bf4c1e259 100644--- a/web/app.js+++ b/web/app.js@@ -79,8 +79,9 @@ let followFilter='',followRevision=0;const FOLLOW_INITIAL_RANGE_OPTIONS=[['0','不限时间'],['7','最近 7 天'],['30','最近 30 天'],['90','最近 90 天']];let followAuthors=new Set(),followProviders=new Set(),followTags=new Set(),followWorks=new Set(),followMediaView='videos',followDetailReturnPath='/follow';-// 关注详情岛的宿主(`openFollowDetail` 建、`disposeStage` 先卸岛再拆舞台)。-let followDetailHost=null;+/* 舞台里那座详情岛的宿主与名字(`item-detail` 或 `follow-detail`):`mountStageIsland` 建,+ `disposeStage` 先卸岛再拆舞台。 */+let stageIslandHost=null,stageIslandName='';/* 看的那一页按什么排。只有这三档在每条更新上都成立:观看次数、体积那几列问的是本机文件,而这一页上的东西多数还没下载。壳只拿它核对地址栏上的 `sort`;键上的说法在岛里(`follow-feed.ts` 的 `FOLLOW_FEED_DIR_WORDS`)。 */@@ -476,8 +477,6 @@ const claimSurface=path=>{/* 目录网格同理:目录页与回收站之间它一直挂着,换筛选只是换查询;去别的页面就卸掉,那些页面接着会往 `#grid` 里写自己的东西。 */if(!isCatalogPath(path)&&path!=='/trash')clearCatalogGrid();- /* 详情页接着看那一排也是一棵网格根;换页时舞台随之清场,根先卸掉。 */- releaseNextRow();surfaceRequests?.abort();surfaceRequests=new AbortController();surfaceEpoch++;return surfaceToken(path)};@@ -1509,7 +1508,10 @@ const cloneBarsContext=context=>context&&context.type==='entity'const activeFilterState=()=>barsContext.type==='home'?state:barsContext.filters;$('#q').value=state.q;rememberSearchValue();const REP={}; // 创作者/厂牌 → 代表作 id,用来做圆头像(裁接触印相中心格,不另造图)-let total=0,facets=null,current=null,detailReturnPath='/',activeQueue=null;+/* `activeQueue` 是此刻开着的队列(`{kind, seedId|playlistId}`),只用来判「是不是同一个队列里换+ 一条」;队列的条目归详情岛。`pendingQueueRoute` 是队列地址的前缀:停在哪一条要等岛定下来,+ 画出来那一刻(`present`)才推。 */+let total=0,facets=null,detailReturnPath='/',activeQueue=null,pendingQueueRoute=null;let detailOriginAnchor=null,detailOriginAbove=false,detailReturnNeedsRestore=false;const CACHE={};const cache=items=>{items.forEach(x=>CACHE[x.id]=x);return items};@@ -1578,20 +1580,6 @@ function runStageDisposers(){const pending=[...stageDisposers];stageDisposers.clear();pending.forEach(dispose=>{try{dispose()}catch(_e){}});}-/* 浮层的「点外面就关」。document 级捕获监听不随浮层 DOM 一起消失,登记与撤销- 必须成对;关不掉的那一次由舞台销毁兜底。 */-function bindOutsideClose(anchor,inside,close){- const handler=event=>{if(!inside.contains(event.target)&&event.target!==anchor)close()};- let unregister=null;- const detach=()=>{- document.removeEventListener('pointerdown',handler,true);- if(unregister){unregister();unregister=null}- };- // 延一拍再挂:打开浮层的这一次 pointerdown 还在冒泡,立刻挂上会自己把自己关掉。- setTimeout(()=>document.addEventListener('pointerdown',handler,true),0);- unregister=onStageDispose(detach);- return detach;-}/* 详情浮窗的退场跟设置弹层同一条:`closing` 让 `board-dialog-out` 和遮罩淡出演完,再走 disposeStage。顺序不能倒过来——拆解那一步要先把舞台放回 #main 的固定槽位,之后重画列表才不会把 #stage 一起删掉,所以动画只往拆解前面插一段等待,拆解和重画@@ -1640,10 +1628,10 @@ function disposeStage(push=false,preserveInlineOrigin=false,{miniplayer=true}={}if(video._hop)clearInterval(video._hop);video.pause();video.removeAttribute('src');video.load();video.remove()});if(!toMini&&!owned)cancelDetailStream();- // 关注详情是挂在舞台里的岛:先卸根,再清舞台,别让 React 对着一块被清空的 DOM。- if(followDetailHost){unmountIsland(followDetailHost);followDetailHost=null}+ // 两个详情都是挂在舞台里的岛:先卸根,再清舞台,别让 React 对着一块被清空的 DOM。+ if(stageIslandHost){releaseHoverPreviews(stageIslandHost);unmountIsland(stageIslandHost);stageIslandHost=null;stageIslandName=''}runStageDisposers();- stage.innerHTML='';stage.hidden=true;document.body.classList.remove('detail-open');current=null;activeQueue=null;+ stage.innerHTML='';stage.hidden=true;document.body.classList.remove('detail-open');activeQueue=null;pendingQueueRoute=null;if(!preserveInlineOrigin){detailOriginAnchor=null;detailOriginAbove=false;detailReturnNeedsRestore=false;}@@ -2661,9 +2649,10 @@ function mountPlayerSubtitles(player,assetId){}/* 换「JAV 默认封面」时,开着的详情把海报位跟同一张图一起换:挂载了走 player 的海报层,脚本还在路上时改元素上的原生 poster,否则下一次开播前看到的还是旧- 那张。详情没开(current 为空)或这条没有可用的本地图时不动。 */+ 那张。开着的不是作品详情或这条没有可用的本地图时不动。 */function repaintDetailPoster(){- const poster=current?detailPosterUrl(current):'';+ const it=stageMiniplayerMeta?.kind==='item'?stageMiniplayerMeta.item:null;+ const poster=it?detailPosterUrl(it):'';if(!poster)return;if(detailPlayer&&!detailPlayer.isDisposed())detailPlayer.poster(poster);else $('#vid')?.setAttribute('poster',poster);@@ -3530,15 +3519,6 @@ function mixRelated(seedId){return mixRelatedCache.get(seedId);}const reduceMotion=()=>matchMedia('(prefers-reduced-motion:reduce)').matches;-/* 分卷组每个 seed 只取一次:同一组的分卷队列反复打开不再发第二个请求。 */-const partGroupCache=new Map();-function partGroup(seedId){- if(!partGroupCache.has(seedId))- partGroupCache.set(seedId,api('/api/parts?id='+seedId)- .then(group=>{if(group.error)throw new Error(group.error);cache(group.items);return group})- .catch(error=>{partGroupCache.delete(seedId);throw error}));- return partGroupCache.get(seedId);-}/* 一个标签是否生效、按一下变成什么,全站只有这一份判据。目录、资料页和详情页各自存着自己的筛选,谁在那里手写一次 `split(',')` 或 `=== filters.tag`,谁就会与其余几处漂开:按下态按多选算、点击按单选写,同一枚标签的显示和行为对不上。 */@@ -4573,25 +4553,24 @@ function playlistNameField(value=''){return `<label class="modalfield"><span>名称</span><input class="geist-input" name="name"maxlength="80" placeholder="输入名称" value="${esc(value)}"></label>`;}-async function saveMixAsPlaylist(mix){- if(mix?.kind!=='mix')return;+/* 保存 Mix:详情岛递来标题、条数和写库那一下(`save`),存好了转去那份播放列表并给撤销。 */+async function saveMixAsPlaylist({title,count,save}){const modal=formModal({title:'保存为播放列表',- description:`这个 Mix 的 ${mix.items.length} 个视频会存成一份可以继续播放的列表。`,- body:playlistNameField(mix.title),+ description:`这个 Mix 的 ${count} 个视频会存成一份可以继续播放的列表。`,+ body:playlistNameField(title),confirmLabel:'保存为播放列表',onConfirm:()=>{const name=modal.dialog.querySelector('[name="name"]').value.trim();if(!name)throw new Error('播放列表名称不能为空');- return playlistWrite({action:'create',name,asset_ids:mix.items.map(item=>item.id),- source_kind:'mix',source_seed_asset_id:mix.seedId});+ return save(name);}});modal.dialog.querySelector('[name="name"]').select();const {confirmed,result}=await modal.done;if(!confirmed)return;- await openPlaylist(result.playlist.id,result.playlist.current_asset_id,true);+ await openPlaylist(result.id,result.current_asset_id,true);actionReceipt('已保存为播放列表',{undo:async()=>{- await playlistWrite({action:'delete',id:result.playlist.id});await openPlaylists(true);+ await playlistWrite({action:'delete',id:result.id});await openPlaylists(true);}});}/* 一次能勾好几份列表:此前一行就是一个按钮,点下去当场写库、弹层立刻关掉,@@ -4631,37 +4610,6 @@ async function openAddToPlaylist(item){if(result.created)await playlistWrite({action:'delete',id:result.created.id});}});}-/* 顺序由拖动定:一列十几条视频,靠上移下移一格一格挪到第九位要按八次。撤销拿的是- 拖动之前那一份完整顺序,所以一次拖动无论跨多少行都只需按一次撤销。 */-async function reorderPlaylistItems(queue,ids,currentId){- if(queue?.kind!=='playlist')return;- const before=queue.items.map(item=>item.id);- if(ids.length!==before.length||ids.every((id,index)=>id===before[index]))return;- await playlistWrite({action:'reorder',id:queue.playlistId,asset_ids:ids});- await openPlaylist(queue.playlistId,currentId,false);- actionReceipt('已调整播放顺序',{undo:async()=>{- await playlistWrite({action:'reorder',id:queue.playlistId,asset_ids:before});- await openPlaylist(queue.playlistId,currentId,false);- }});-}-async function removePlaylistItem(queue,assetId,currentId){- if(queue?.kind!=='playlist')return;- const before=queue.items.map(item=>item.id);- return confirmModal({title:'移出播放列表',body:'这个视频将从播放列表移除,视频文件保留。',confirmLabel:'移出播放列表',onConfirm:async()=>{- const result=await playlistWrite({action:'remove',id:queue.playlistId,asset_id:assetId});- /* 撤销要把它放回它那一位:`add` 只会补在末尾,所以补完再按拖动前那份顺序排一次。- 列表被这一下清空时它已经不在页面上,撤销后带回列表页而不是空队列。 */- actionReceipt('已移出播放列表',{undo:async()=>{- await playlistWrite({action:'add',id:queue.playlistId,asset_ids:[assetId]});- await playlistWrite({action:'reorder',id:queue.playlistId,asset_ids:before});- await openPlaylist(queue.playlistId,currentId,false);- }});- if(!result.playlist.items.length){await openPlaylists(true);return}- const next=result.playlist.items.some(item=>item.id===currentId)?currentId:result.playlist.current_asset_id;- await openPlaylist(queue.playlistId,next,false);- }});-}-/* 播放列表页整个归 React 子树(ADR-0031):取数、卡面、新建改名删除都在 /dist/peach-ui.js 里。壳只铺骨架,交出打开队列、资料页、头像 HTML、翻页门槛与回执。已经停在这一页、岛还挂着时要求重读(顶栏「换一批」、从播放队列返回、撤销后),@@ -5105,7 +5053,7 @@ const followDetailActions={$('#stage').classList.toggle('ambient-on',kind==='video'&&appSettings.ambientMode);$('#stage').classList.toggle('theater-mode',kind==='video'&&appSettings.theaterMode);},- mountPlayer:(video,item,media)=>mountFollowPlayer(video,item,media),+ mountPlayer:(video,item,media)=>mountStagePlayer('follow',video,item,media),toast:(message,{undo}={})=>actionReceipt(message,{undo}),failure:(action,error)=>actionFailure(action,error),};@@ -5121,16 +5069,23 @@ async function openFollowDetail(id,push=true,mediaIndex=null,preserveReturn=falsif(!push)queueDetailResumeFromUrl('follow',id);disposeStage(false,false,{miniplayer:false});if(push)route(`/follow/item/${id}`);- const surface=surfaceToken(surfacePath());+ await mountStageIsland('follow-detail',{id,mediaIndex,mediaView:followMediaView,+ helpers:followFeedHelpers,actions:followDetailActions},surfaceToken(surfacePath()));+}++/* 两座详情岛进舞台的同一条路:宿主 `.stagescroll` 由壳建、岛往里画。窄屏下滚的是它,全站那条+ 覆盖式滚动条才有地方挂(轨道得是滚动容器的兄弟,而 `<dialog>` 在顶层,轨道挂到它父级上会+ 落进遮罩底下);「接着看」是 `.sgrid` 的兄弟,也得一起装进来,否则它会被裁在浮窗外面。 */+async function mountStageIsland(name,props,surface){placeItemDetail(detailOriginAnchor,detailOriginAbove);showDetailLoading();- const host=document.createElement('div');host.className='stagescroll';followDetailHost=host;- await mountIsland('follow-detail',host,{id,mediaIndex,mediaView:followMediaView,- helpers:followFeedHelpers,actions:followDetailActions},{- isCurrent:()=>surfaceCurrent(surface)&&followDetailHost===host,- /* 同 `paintStage`:骨架抬成一层淡出,标题两行跟着这一次揭示。宿主由壳建、岛往里画,- 画之前才放进舞台,骨架与内容只换一次。舞台是带着骨架开的,骨架里没有可聚焦的元素,- `showModal()` 只能把焦点给 dialog 本身;内容到了再照它的规矩交给第一个控件(关闭键)。 */+ const host=document.createElement('div');host.className='stagescroll';+ stageIslandHost=host;stageIslandName=name;+ await mountIsland(name,host,props,{+ isCurrent:()=>surfaceCurrent(surface)&&stageIslandHost===host,+ /* 同 `paintStage`:骨架抬成一层淡出,标题两行跟着这一次揭示。宿主画之前才放进舞台,骨架+ 与内容只换一次。舞台是带着骨架开的,骨架里没有可聚焦的元素,`showModal()` 只能把焦点+ 给 dialog 本身;内容到了再照它的规矩交给第一个控件(关闭键)。 */reveal:(_el,write)=>{const stage=$('#stage');revealSkeleton(stage,()=>{@@ -5140,7 +5095,7 @@ async function openFollowDetail(id,push=true,mediaIndex=null,preserveReturn=falsrevealTexts(stage,':scope>:not(.skelfade) [data-reveal-line]');}});// 滚到舞台本身,不是页面头部——就近展开的意义就在于视线不被拽走。- if(followDetailHost===host&&host.isConnected)scrollItemDetailIntoView();+ if(stageIslandHost===host&&host.isConnected)scrollItemDetailIntoView();}/* 关掉详情只是回到列表,不该重新取一遍。重取要等一个网络往返(慢),而且只会取回第一页——@@ -5155,16 +5110,34 @@ async function closeFollowDetail(){readFollowView();pushFollowFeed({view:followView()});}-/* 岛画好的 `<video>` 交到这里挂 Video.js:氛围光画布与统计角标照 JAV 详情的位置插进媒体框,- 片源是 `/follow-stream`,清晰度与字节数(`/follow-qualities`)跟默认片源并行解析——它要回源- 抓详情、再 HEAD 一次正片,不能挡住播放器挂载。返回的清理在岛卸下这块媒体区时调:换一份媒体- 只拆这一个播放器;整块舞台拆掉时 `disposeStage` 已经先处理过(进小窗或销毁),这里只补漏。 */-function mountFollowPlayer(video,item,media){+/* 两座详情岛画好的 `<video>` 交到这里挂 Video.js。氛围光画布与统计角标在挂载之前插进媒体框:+ Video.js 一包,`video` 的父级就换成它自己的那层了。+ - 作品(`item`):片源由 `mountDetailPlayer` 按来源解析,海报是本地图,第一次开播记一次播放,+ 离开位置与真实观看由 `wireTelemetry` 随播放写回侧栏。+ - 关注(`follow`):片源是 `/follow-stream`,清晰度与字节数(`/follow-qualities`)跟默认片源并行+ 解析——它要回源抓详情、再 HEAD 一次正片,不能挡住播放器挂载。+ 返回的清理在岛卸下这块媒体区时调:换一份媒体只拆这一个播放器;整块舞台拆掉时 `disposeStage`+ 已经先处理过(进小窗或销毁),这里只补漏。`autoplay` 不给就按设置。 */+function mountStagePlayer(kind,video,item,media,{autoplay}={}){video.parentElement.insertAdjacentHTML('afterbegin','<canvas class="ambientcanvas" width="32" height="18"></canvas>');video.insertAdjacentHTML('beforebegin',playerStatsOverlayHtml());- const src=`/follow-stream?id=${item.id}${media?`&media=${media.index}`:''}`;- const mediaPromise=api(`/follow-qualities?id=${encodeURIComponent(item.id)}`).catch(()=>null);- let player=null,released=false;+ let options={};+ if(kind==='follow'){+ options={+ source:{src:`/follow-stream?id=${item.id}${media?`&media=${media.index}`:''}`,type:media?.media_type||item.media_type||'video/mp4'},+ checkSourceStatus:false,size:media?.size,poster:item.thumb_url,+ mediaPromise:api(`/follow-qualities?id=${encodeURIComponent(item.id)}`).catch(()=>null),+ };+ }else{+ const poster=detailPosterUrl(item);+ if(poster)video.poster=poster;+ video.addEventListener('play',()=>{const stage=$('#stage');if(!stage.dataset.c){stage.dataset.c='1';+ api('/api/play',{method:'POST',body:JSON.stringify({id:item.id})})}});+ wireTelemetry(item,video,{watched:'#watched',mark:'#mark',ratio:'#ratioTxt'});+ }+ let player=null,released=false,stopAmbient=()=>{};+ // 进小窗时播放器不销毁,氛围采样要跟着舞台一起停,别对着已经拆掉的画布继续画。+ onStageDispose(()=>stopAmbient());const release=()=>{// 小窗接走的播放器归小窗。if(!player||miniplayerState.player===player)return;@@ -5176,20 +5149,14 @@ function mountFollowPlayer(video,item,media){}if(!player.isDisposed?.()){try{player.pause();player.dispose()}catch(_e){}}};- mountDetailPlayer(item,video,appSettings.detailAutoplay,{- source:{src,type:media?.media_type||item.media_type||'video/mp4'},- checkSourceStatus:false,- size:media?.size,- poster:item.thumb_url,- mediaPromise- }).then(mounted=>{+ mountDetailPlayer(item,video,autoplay??appSettings.detailAutoplay,options).then(mounted=>{player=mounted;// 挂载还没回来岛就换了媒体:这一个一出来就拆掉。if(released){release();return}- const stopAmbient=mountPlayerAmbient(video);+ stopAmbient=mountPlayerAmbient(video);player?.one?.('dispose',stopAmbient);video.addEventListener('emptied',stopAmbient,{once:true});- wireFollowTelemetry(item,video);+ if(kind==='follow')wireFollowTelemetry(item,video);});return ()=>{released=true;release()};}@@ -5871,6 +5838,12 @@ async function revealSource(id,status,{button=null}={}){失败的原因要回到出事的那一行旁边。`revealSource` 把原因写进 `status.textContent`,这里给它一个收字的对象读回来。 */async function revealForIsland(id){const status={textContent:''};await revealSource(id,status);return status.textContent}+/* 同上,核对目录:状态一行读回来,外加这一趟移入回收站的那几条(作品详情据此判自己还在不在)。 */+async function syncForIsland(id){+ const status={textContent:''};let removed=[];+ await syncMissing(id,status,result=>{if(result.items)removed=result.items.map(item=>item.id)});+ return {text:status.textContent,removed};+}async function syncMissing(id,status,done){status.textContent='正在核对目录…';@@ -6857,9 +6830,11 @@ function catalogCardRatio(){if(layout.portrait)return 9/16;return layout.active&&layout.size==='big'?COVER_FRONT_RATIO:16/9;}-/* 挂着卡片网格的几处:目录 `#grid`、资料页作品区、详情页的接着看。 */+/* 挂着卡片网格的几处:目录 `#grid`、资料页作品区、作品详情(接着看那一排在它里面,版式、+ 快进秒数与选择态同名递进去)。 */function gridIslandHosts(){- return [$('#grid'),entityBodyCurrent()?entityBodyHost:null,$('#nrow')].filter(host=>host&&islandMounted(host));+ return [$('#grid'),entityBodyCurrent()?entityBodyHost:null,stageIslandName==='item-detail'?stageIslandHost:null]+ .filter(host=>host&&islandMounted(host));}/* 版式、「JAV 默认封面」、快进秒数这些展示层的设置变了,只推给正挂着的网格重画,不重取。 */function repaintCatalogGrid(){@@ -7199,87 +7174,23 @@ $('#q').addEventListener('focus',()=>{Promise.all([loadSearchHistory(),loadSearcrenderSearchMenu();refreshSearchMenu()})});/* ── 就地展开播放 ── */-/* 版次徽章的配色跟卡片标题上的那套走。多一个 `有码`:卡片上正片不加角标是对的- (没角标就是正片),但队列里两条并排时「什么都不写」等于让人自己猜哪条是哪条。 */-const EDITION_TONE={'中字':'subtitle','无码':'uncensored','无码破解':'cracked','有码':'censored'};-/* 同一部片的几卷共用文件名,标题、女优、厂牌逐字相同:详情标题不写卷号的话,在队列里- 换一卷,右侧整栏看上去纹丝不动。卷号说的是「第几份文件」而不是版次,用中性灰。 */-const partLabelBadge=(it,queue)=>queue?.kind==='parts'&&it.part_label- ? `<small class="javedition partlabel">第 ${esc(it.part_label)} 卷</small>`:'';-function queueHtml(queue,itemId){- const action=queue.kind==='mix'- ? `<button data-save-mix title="保存为播放列表" aria-label="保存为播放列表">${icon('playlist')}</button>`- : queue.kind==='playlist'?`<button data-edit-playlist title="编辑播放列表" aria-label="编辑播放列表">${icon('playlist')}</button>`:'';- const countLabel=queue.kind==='parts'?`${queue.items.length} 卷`- :queue.kind==='editions'?`${queue.items.length} 个版本`:`${queue.items.length} 个视频`;- const kindLabel={mix:'Mix',parts:'分卷',editions:'版本',playlist:'播放列表'}[queue.kind]||'视频合集';- /* 版次队列的标题是「版本 · 番号」,而番号就印在正上方的详情标题里,标题栏又已经- 写着「版本」——三处说同一件事。这里只留数量。别的队列标题带真信息(播放列表名、- Mix 种子),不能一起砍。 */- const summary=queue.kind==='editions'?countLabel:`${esc(queue.title)} · ${countLabel}`;- return `<aside class="mixqueue" data-queue-kind="${esc(queue.kind)}"><div class="mixqueuehead"><div><h2>${kindLabel}</h2><span>${summary}</span></div><div class="mixqueueactions">${action}- <button data-queue-close title="关闭" aria-label="关闭">${icon('x')}</button></div></div><div class="mixlist">${queue.items.map((x,index)=>{- const thumb=mixFacePoster(x,'small');- const edition=queue.kind==='editions'&&x.edition_label- ?`<i class="qedition javedition ${EDITION_TONE[x.edition_label]||'censored'}">${esc(x.edition_label)}</i>`:'';- /* 顺序直接拖:一列十几条,靠上移下移把最后一条挪到第二位要按十几次,而每一次- 都是一趟写库加一次重绘。剩下的只有移出,它不是排序动作,留在行尾。 */- const edit=queue.kind==='playlist'?`<span class="queueedit"><i class="queuegrip" aria-hidden="true">${icon('grip-vertical')}</i><button data-queue-remove="${x.id}" title="移出播放列表" aria-label="移出播放列表">${icon('x')}</button></span>`:'';- return `<div class="mixrow" data-queue-row="${x.id}"><button class="mixitem ${x.id===itemId?'current':''}" data-queue-item="${x.id}" aria-current="${x.id===itemId?'true':'false'}">- <span class="mixitempic">${thumb}<i class="dur mono">${fmtDur(x.duration)}</i></span><span class="mixitemmeta">${cardIdentity(x,false).avatar}<span class="mixitemtext"><span class="mixitemhead">${edition}<b data-middle-truncate>${esc(javDisplayName(x))}</b></span><span data-truncate-end>${queue.kind==='parts'?`第 ${esc(x.part_label)} 卷`:esc(mixLabel(x))}</span></span></span></button>${edit}</div>`;- }).join('')}</div></aside>`;-}-async function buildMix(seedId){- const [seed,related]=await Promise.all([api('/api/item?id='+seedId),mixRelated(seedId)]);- const items=[seed,...related.filter(x=>x.id!==seed.id)];cache(items);- return {kind:'mix',seedId,title:`Mix · ${mixLabel(seed)}`,items};-}-async function openMix(seedId,itemId=seedId,push=true,anchor=null){- const previous=activeQueue?.kind==='mix'&&activeQueue.seedId===seedId?activeQueue:null;- if(push&&!previous)detailReturnPath=location.pathname+location.search;- const mix=previous||await buildMix(seedId);- await openItem(itemId,false,mix,anchor);- if(push)route(`/mix/${seedId}/${itemId}`);-}-/* 版次视图复用分卷的队列:两者都是「一个番号下的几个可播条目」,差别只在标题和- 每条的副标题。另写一套只会让队列的键盘、续播和返回路径各演化一份。 */-async function openEditions(seedId,itemId=seedId,push=true,anchor=null){- const previous=activeQueue?.kind==='editions'&&activeQueue.seedId===seedId?activeQueue:null;- if(push&&!previous)detailReturnPath=location.pathname+location.search;- let queue=previous;- if(!queue){- const group=await api('/api/editions?id='+seedId);- if(group.error){await openItem(itemId,true);return}- queue={kind:'editions',seedId,title:`版本 · ${group.title}`,items:group.items};cache(queue.items);- }- const chosen=queue.items.some(item=>item.id===itemId)?itemId:queue.items[0].id;- await openItem(chosen,false,queue,anchor);- if(push)route(`/editions/${seedId}/${chosen}`);-}-async function openParts(seedId,itemId=seedId,push=true,anchor=null){- const previous=activeQueue?.kind==='parts'&&activeQueue.seedId===seedId?activeQueue:null;- if(push&&!previous)detailReturnPath=location.pathname+location.search;- let queue=previous;- if(!queue){- let group;- try{group=await partGroup(seedId)}catch(_e){await openItem(itemId,true);return}- queue={kind:'parts',seedId,title:`分卷 · ${group.title}`,items:group.items};- }- const chosen=queue.items.some(item=>item.id===itemId)?itemId:queue.items[0].id;- await openItem(chosen,false,queue,anchor);- if(push)route(`/parts/${seedId}/${chosen}`);-}-async function openPlaylist(playlistId,itemId=null,push=true){- if(push)detailReturnPath=location.pathname+location.search;- const playlist=await api('/api/playlist?id='+playlistId);- if(!playlist.items.length){await openPlaylists(push);return}- const chosen=playlist.items.some(item=>item.id===itemId)- ? itemId:(playlist.current_asset_id||playlist.items[0].id);- const queue={kind:'playlist',playlistId,title:playlist.name,items:playlist.items};- cache(queue.items);await openItem(chosen,false,queue);- if(push)route(`/playlists/${playlistId}/${chosen}`);- api('/api/playlist',{method:'POST',body:JSON.stringify({action:'progress',id:playlistId,asset_id:chosen})}).catch(()=>{});-}+/* 四种队列的入口(Mix、分卷、版本、播放列表)。队列的条目、停在哪一条、卷标都归详情岛+ (`item-detail`),岛按 `{kind, seedId|playlistId}` 自己取;壳只判「是不是同一个队列里换一条」+ (是就读岛的缓存,不重取),并记下地址的前缀,等岛定下停在哪一条之后再推。播放列表每次都+ 重取:它的顺序和内容别处也在改。版次视图复用分卷的队列:两者都是「一个番号下的几个可播+ 条目」,差别只在标题和每条的副标题。 */+const QUEUE_ROUTES={mix:'/mix',parts:'/parts',editions:'/editions',playlist:'/playlists'};+function openQueue(kind,key,itemId,push,anchor=null){+ key=+key;+ const same=activeQueue?.kind===kind&&(kind==='playlist'?activeQueue.playlistId:activeQueue.seedId)===key;+ if(push&&(kind==='playlist'||!same))detailReturnPath=location.pathname+location.search;+ const queue=kind==='playlist'?{kind,playlistId:key,fresh:true}:{kind,seedId:key,fresh:!same};+ return openItem(itemId==null?null:+itemId,false,queue,anchor,push);+}+function openMix(seedId,itemId=seedId,push=true,anchor=null){return openQueue('mix',seedId,itemId,push,anchor)}+function openEditions(seedId,itemId=seedId,push=true,anchor=null){return openQueue('editions',seedId,itemId,push,anchor)}+function openParts(seedId,itemId=seedId,push=true,anchor=null){return openQueue('parts',seedId,itemId,push,anchor)}+function openPlaylist(playlistId,itemId=null,push=true){return openQueue('playlist',playlistId,itemId,push)}/* 关掉详情要不要重新装一遍列表,判据是「退回去有没有东西可看」。按 `#grid` 有没有子节点判会误判:直接打开 `/parts/28125/28125` 这类深链时,网格里躺着一个还没被替换掉的加载骨架,它也是子节点。于是关掉播放器后@@ -7303,23 +7214,97 @@ function fillIdleCatalog(){const count=$('#count');count.removeAttribute('aria-busy');count.removeAttribute('aria-label');void paintCatalogGrid(surfaceToken(surfacePath()));}-/* 评分落在 `asset.rating`,量纲是 0–100:这一列是 Stash 的 rating100 直接导进来的,- taste_history 也按 rating/20 折算成 0–5 分。所以第 n 颗星送出的是 n*20,不是 n。- 再点当前那一颗表示撤销,送 0,后端写回 NULL——「没评过」和「评了一星」在排序上- 必须是两件事。 */-const RATING_STEP=20;-const ratingStarCount=value=>Math.round(Math.min(Math.max(value||0,0),100)/RATING_STEP);-const ratingText=value=>{const n=ratingStarCount(value);return n?`${n} 星`:'未评分'};-const ratingStarsHtml=value=>{const on=ratingStarCount(value);- return [1,2,3,4,5].map(n=>`<button type="button" class="star" data-rate="${n}" data-on="${n<=on}"- title="${n===on?'再点一次取消评分':`${n} 星`}"- aria-label="${n===on?`取消评分(当前 ${n} 星)`:`评为 ${n} 星`}">${icon('star')}</button>`).join('')};-const ratingHtml=value=>`<div class="rating" id="detailRating" role="group" aria-label="评分" data-value="${Math.min(Math.max(value||0,0),100)}">- <div class="ratingstars">${ratingStarsHtml(value)}</div>- <span class="ratingvalue" aria-live="polite">${ratingText(value)}</span></div>`;+/* 作品详情整块归 React 岛 `item-detail`(ADR-0031):条目与队列的取数、播放区、侧栏、接着看与+ 写操作都在 /dist/peach-react.js 里。壳留舞台本身——宿主、进出场、小窗与 Video.js,关注详情+ 也在用这一套——以及来处:从哪一张卡进来、关掉回哪一份列表、顶栏换成哪条作品的上下文。+ 队列里换一条也走 `openItem`:舞台上的播放器要先拆,地址要换。 */+const itemDetailHelpers={+ badgeHtml:(location,cost,cls)=>srcBadge(location,cost,cls),+ titleHtml:it=>javTitleHtml(it),+ displayName:it=>javDisplayName(it),+ performerLabel:it=>performerLabel(it),+ // 和顶栏圆头像同一条判据:没装实体图就不出 `<img>`,取不到就是首字母垫底。+ faceHtml:ref=>entityFaceImg({id:ref.id,hasImage:ref.has_image,focus:ref.avatar_focus}),+ queueThumbHtml:it=>mixFacePoster(it,'small'),+ queueAvatarHtml:it=>cardIdentity(it,false).avatar,+ mixLabel:it=>mixLabel(it),+ tagLabel:tag=>tagLabel(tag),+ isDurationTag:tag=>DURATION_TAGS.has(tag),+ tagCandidates:()=>(facets&&facets.tags)||[],+ sourceOffline:key=>sourceOffline(key),+ offlineReason:key=>offlineReason(key),+ relatedSkeletonHtml:()=>pageSkeletonHtml('正在读取推荐',{cards:true,className:'related-skeleton'}),+ mixRelated:seedId=>mixRelated(seedId),+ wireDrag:el=>wireDrag(el),+ wireDragReorder:(root,options)=>wireDragReorder(root,options),+};+const itemDetailActions={+ close:()=>closeItemDetail(),+ /* 小窗元数据、顶栏的实体上下文、氛围光与剧场模式跟着画出来的这一条走;队列的地址也在这时+ 推,停在哪一条要等岛定下来。 */+ present:item=>{+ cache([item]);+ stageMiniplayerMeta={kind:'item',item,title:item.title||item.name||'',+ sub:(item.performers||[])[0]||item.creator||'未归属'};+ const returnBars=detailReturnBarsContext;+ barsContext={type:'item',id:item.id,filters:returnBars?.type==='entity'+ ? {...returnBars.filters}:emptyEntityFilters()};+ const stage=$('#stage');delete stage.dataset.c;+ stage.classList.toggle('ambient-on',appSettings.ambientMode);+ stage.classList.toggle('theater-mode',appSettings.theaterMode);+ if(pendingQueueRoute){route(`${pendingQueueRoute}/${item.id}`);pendingQueueRoute=null}+ buildBars();+ },+ /* 取数时发现要换去别处:保存过的在线资产转关注详情,队列取不到退回普通详情,播放列表空了+ 回列表页,条目已不在就收起舞台。壳一换舞台,岛这一次挂载就作废。 */+ redirect:to=>{+ const push=!!pendingQueueRoute;+ if(to.kind==='follow'){followDetailReturnPath=detailReturnPath||'/';void openFollowDetail(to.id,false,null,true);return}+ if(to.kind==='item'){void openItem(to.id,true);return}+ if(to.kind==='playlists'){void openPlaylists(push);return}+ disposeStage(false);+ },+ openQueueItem:(queue,id,push=true)=>void openQueue(queue.kind,queue.kind==='playlist'?queue.playlistId:queue.seedId,id,push),+ mountPlayer:(video,item,media,options)=>mountStagePlayer('item',video,item,media,options),+ // 盘回来了就按正常路径重开,不在半路挂播放器;开着的队列跟着留下。+ reopen:()=>{+ const it=stageMiniplayerMeta?.kind==='item'?stageMiniplayerMeta.item:null;+ if(!it)return;+ const queue=activeQueue;+ if(queue)void openQueue(queue.kind,queue.kind==='playlist'?queue.playlistId:queue.seedId,it.id,false);+ else void openItem(it.id,false);+ },+ checkSource:async key=>(await loadSourceStatus())[key]!==false,+ /* 直接进「已保存」这一档。openFollow(true) 会 route 回干净的 /follow 再照 URL 推导,所以状态+ 要先写进 URL,光设全局会被推回未看。 */+ openSavedFollow:()=>{+ followAuthors=new Set();followProviders=new Set();followTags=new Set();followWorks=new Set();followMediaView='videos';+ followFilter='saved';route(followViewPath());openFollow(false)},+ openEntity:(kind,name)=>openEntity(kind,name),+ openUnowned:()=>openUnowned(),+ openRegion:region=>openRegion(region),+ openTag:tag=>{commitContextFilter(filters=>{filters.tag=tag});window.scrollTo({top:0,behavior:'smooth'})},+ addToPlaylist:item=>openAddToPlaylist(item),+ saveMix:options=>saveMixAsPlaylist(options),+ editPlaylist:()=>openPlaylists(true),+ openPlaylists:()=>openPlaylists(true),+ reveal:id=>revealForIsland(id),+ sync:id=>syncForIsland(id),+ /* 「垃圾文件」那一档(`state=ads`)按回收站状态列:移进回收站的这一条要从列表里消失,撤销+ 任何一次反馈之后列表也重读一遍。别的列表不受影响。 */+ trashChanged:async(disposal,undo)=>{+ if(state.state!=='ads')return;+ if(!undo&&disposal!=='trash')return;+ if(!undo)disposeStage(true,false,{miniplayer:false});+ await loadCatalog();+ },+ toast:(message,{undo}={})=>actionReceipt(message,{undo}),+ failure:(action,error)=>actionFailure(action,error),+};-async function openItem(id,push=true,queueContext=null,anchor=null){+async function openItem(id,push=true,queue=null,anchor=null,queuePush=false){releaseHoverPreviews();+ id=id==null?null:+id;const origin=anchor?.isConnected?anchor:(detailOriginAnchor?.isConnected?detailOriginAnchor:null);const above=anchor?.isConnected? anchor.getBoundingClientRect().top+anchor.getBoundingClientRect().height/2>window.innerHeight/2@@ -7331,485 +7316,32 @@ async function openItem(id,push=true,queueContext=null,anchor=null){if(push)detailReturnPath=location.pathname+location.search;// 换详情不进小窗;小窗里正放着的那条也让位,两个播放器不同时出声。closeMiniplayer();- if(!push)queueDetailResumeFromUrl('item',id);+ if(!push&&id!=null)queueDetailResumeFromUrl('item',id);disposeStage(false,true,{miniplayer:false});detailOriginAnchor=origin;detailOriginAbove=above;detailReturnNeedsRestore=needsReturnRestore;detailReturnBarsContext=returnBars;- activeQueue=queueContext;- if(push&&!queueContext)route('/item/'+id);- const detailSurface=surfaceToken(surfacePath());- showDetailLoading();- const it=await surfaceApi(detailSurface,'/api/item?id='+id);- if(!surfaceCurrent(detailSurface))return;- if(it.error){disposeStage(false);return}- if(it.location==='online'&&it.follow_item_id){- followDetailReturnPath=detailReturnPath||'/';- await openFollowDetail(it.follow_item_id,false,null,true);- return;- }- /* 卷标只有分卷队列知道:`/api/item` 是单条口径,它答不出「这是第几卷」。不补的话- 标题栏里的卷号在深链进来和点开队列另一条时都不出现。 */- if(queueContext?.kind==='parts')- it.part_label=queueContext.items.find(part=>part.id===it.id)?.part_label||'';- current=it; CACHE[it.id]=it;- barsContext={type:'item',id:it.id,filters:returnBars?.type==='entity'- ? {...returnBars.filters}:emptyEntityFilters()};- const gated=it.cost==='metered'&&it.location!=='online';- const offline=sourceOffline(it.location);- const online=it.location==='online';- /* 保存过的在线资产照常播;只有反查不到关注条目时才拦下来说明原因。 */- const onlineGated=online&&!it.follow_item_id;- const who=(it.performers||[])[0]||it.creator||'未归属';- stageMiniplayerMeta={kind:'item',item:it,title:it.title||it.name||'',sub:who};- const refs=it.entity_refs||{},studioRef=(refs.studio||[])[0];- // 共演作品的女优逐行列出,每行带自己的头像;标签只写在第一行,其余留空保持对齐。- const performerRefs=(refs.performer||[]).length- ? refs.performer- : (it.performers||[]).map(name=>({id:null,name}));- // 身份按类别分组:标签作为组标题写在上方,同类横向排开。- // 逐行一个名字在共演作品上会把整个侧栏撑满,标签列也重复得毫无信息量。- const identitySeen=new Set();- const fresh=name=>{const key=foldName(name);- if(!name||identitySeen.has(key))return false;identitySeen.add(key);return true};- const castList=performerRefs.filter(ref=>fresh(ref.name));- // 非规范厂牌只有扁平 `studio` 字段,它的标识可用性单独下发在 `has_studio_logo`:- // 不接过来,这条路径会从「本来能取到图」退化成永远只显示首字母。- const studioFallback=studioRef?[]- :(it.studio?[{id:null,name:it.studio,has_logo:it.has_studio_logo}]:[]);- const studioList=[...(refs.studio||[]),...studioFallback].filter(ref=>fresh(ref.name));- // 厂牌是某家片商旗下的 label 时(ADR-0049),片商另起一组摆在它旁边;作品仍只挂在 label 上。- // 上级一级套一级时(ADR-0051)整条链从近到远都在这一组里。- const makerList=studioList.flatMap(ref=>ref.makers||[]).filter(maker=>fresh(maker.name));- const creatorList=(refs.creator||[]).filter(ref=>fresh(ref.name));- const seriesList=(refs.series||[]).filter(ref=>fresh(ref.name));-- // BEST 合集实测有 41 位出镜者,全铺开会把标签和反馈按钮挤出可视区。- // 前 8 位直接展示,其余默认收起但仍在 DOM 里,一次点击即可看全。- const CAST_SHOWN=8;- const castOverflow=Math.max(0,castList.length-CAST_SHOWN);- const idFace=(kind,item)=>kind==='performer'- // 和顶栏圆头像同一条判据:没装实体图就不出 `<img>`。这一格没有代表作头像可退,- // 取不到就是首字母垫底。- ? `<span>${esc(item.name.slice(0,1))}</span>${entityFaceImg(- {id:item.id,hasImage:item.has_image,focus:item.avatar_focus})}`- : kind==='studio'- // 和顶栏小圆片同一条判据:没装标识就不出 `<img>`,不再靠 404 把图摘掉。- ? `<span>${esc(item.name.slice(0,2))}</span>${item.has_logo?`<img src="/logo?studio=${encodeURIComponent(item.name)}&variant=icon" alt="" loading="lazy" data-drop="self">`:''}`- : `<span>${esc(item.name.slice(0,1))}</span>`;- const idCell=(kind,item,index)=>{- const hide=kind==='performer'&&index>=CAST_SHOWN;- const content=`<span class="idface">${idFace(kind,item)}</span><span class="idname">${esc(item.name)}</span>`;- if(!item.id)return `<span class="idcell${kind==='studio'?' logo':''}" title="${esc(item.name)}"${hide?' hidden data-castoverflow':''}>${content}</span>`;- return `<button class="idcell entitylink${kind==='studio'?' logo':''}" data-entity-kind="${kind}"- data-entity-name="${esc(item.name)}" title="${esc(item.name)}"${hide?' hidden data-castoverflow':''}>${content}</button>`;- };- const idGroup=(label,kind,list,extra='')=>list.length- ? `<section class="idgroup idgroup-${kind}"><h5 class="idlabel">${label}</h5>- <div class="idrow">${list.map((item,i)=>idCell(kind,item,i)).join('')}${extra}</div></section>`- : '';- const seriesCell=item=>{const content=`${icon('tags')}<span>${esc(item.name)}</span>`;- return item.id- ? `<button class="serieslink entitylink" data-entity-kind="series" data-entity-name="${esc(item.name)}" title="${esc(item.name)}">${content}</button>`- : `<span class="serieslink" title="${esc(item.name)}">${content}</span>`};- const seriesGroup=list=>list.length- ? `<section class="idgroup idseries"><h5 class="idlabel">系列</h5>- <div class="seriesrows">${list.map(seriesCell).join('')}</div></section>`- : '';- /* 一个都没有时,「未归属」就是这条作品所属的那一类,和女优、厂牌并列:馆藏里- 4566 条同类,点进去看得到全部。写成一行「归属 未归属」的说明文字,是把一个- 能筛的集合降级成读完就没用的字——标签和值还念的是同一个词。 */- const unownedGroup=`<section class="idgroup idgroup-unowned"><h5 class="idlabel">归属</h5>- <div class="idrow"><button class="idcell unownedlink" type="button" data-open-unowned- title="打开未归属:馆藏里没有署名人的作品">- <span class="idface">${icon('user-round')}</span><span class="idname">未归属</span></button></div></section>`;- /* 判据和 `owner=none` 那条 SQL 一样:没有出镜者、没有创作者实体、扁平 creator 也空。- 厂牌和系列不算归属,有厂牌照样是未归属——两边说的必须是同一批作品,否则卡片上- 写着「未归属」的这条点进集合会不在里面。 */- const unowned=!castList.length&&!creatorList.length&&!(it.creator||'').trim();- const primaryIdentity=- (unowned?unownedGroup- :idGroup(performerLabel(it),'performer',castList,- castOverflow?`<button class="castmore" id="castMore">还有 ${castOverflow} 位</button>`:''))- +idGroup('厂牌','studio',studioList)- +idGroup('片商','studio',makerList);- const identityRows=- (primaryIdentity?`<div class="identityprimary">${primaryIdentity}</div>`:'')- +idGroup('创作者','creator',creatorList)- +seriesGroup(seriesList);- placeItemDetail(origin,above);- $('#stage').hidden=false;document.body.classList.add('detail-open');delete $('#stage').dataset.c;- /* 浮窗里的内容统一装在 `.stagescroll` 里:窄屏下滚的是它,全站那条覆盖式滚动条才有- 地方挂(轨道得是滚动容器的兄弟,而 `<dialog>` 在顶层,轨道挂到它父级上会落进遮罩- 底下)。「接着看」是 `.sgrid` 的兄弟,也得一起装进来,否则它会被裁在浮窗外面。 */- paintStage(`<div class="stagescroll"><div class="sgrid ${queueContext?'mixgrid':''}">- <div class="vwrap"><canvas class="ambientcanvas" id="ambientCanvas" width="32" height="18"></canvas><button class="closestage" id="closeStage" title="关闭" aria-label="关闭">${icon('x')}</button>- ${playerStatsOverlayHtml()}- ${offline?`<div class="gate offline" id="offlineGate" role="status">- ${srcBadge(it.location,it.cost,'srcbig')}- <b>脱盘模式</b>- <span>${esc(offlineReason(it.location))}</span>- <button class="chip" id="offlineRetry" type="button">重新检测</button></div>- <video id="vid" class="video-js vjs-big-play-centered" controls playsinline preload="none" hidden></video>`- :onlineGated?`<div class="gate" id="onlineGate" role="status">- ${srcBadge(it.location,it.cost,'srcbig')}- <b>在线资产</b>- <span>这条没有对应的关注条目,媒体地址无从解析。</span>- <button class="chip" id="openSavedFollow" type="button">打开已保存关注</button></div>- <video id="vid" class="video-js vjs-big-play-centered" controls playsinline preload="none" hidden></video>`- :gated?`<div class="gate" id="gate">- ${srcBadge(it.location,it.cost,'srcbig')}- <span>点此开始拉流 · ${fmtSize(it.size||0)}</span></div>- <video id="vid" class="video-js vjs-big-play-centered" controls playsinline preload="none" hidden></video>`- :`<video id="vid" class="video-js vjs-big-play-centered" controls playsinline preload="metadata"></video>`}- </div>${queueContext?queueHtml(queueContext,it.id):''}- <div class="side"><div class="sidecontent">- <div class="detailtitle"><div class="stitle" data-reveal-line><span class="stitletext" data-detail-title>${srcBadge(it.location,it.cost,'srcbig')}${javTitleHtml(it)}${partLabelBadge(it,queueContext)}</span><span class="srctools detailtitletools"><button type="button" data-title-fold hidden aria-expanded="false" aria-label="展开标题" title="展开完整标题">${icon('chevron-down')}</button>${it.has_cover&&it.code?'<span data-cover-crop></span>':''}${it.location==='online'?'':sourceToolButtons(it.id)}</span></div></div>- ${it.location==='online'?'':`<span class="srcstate detailtitlestate" aria-live="polite"></span>`}- ${ratingHtml(it.rating)}- <div class="smeta mono" data-reveal-line>- <span class="detailmetaitem">${icon('monitor')}<span>${it.width||'?'}×${it.height||'?'}</span></span>- <span class="detailmetaitem">${icon('hard-drive')}<span>${fmtSize(it.size||0)}</span></span>- ${it.release_date?`<span class="detailmetaitem">${icon('calendar')}<span>${esc(it.release_date)}</span></span>`:''}- ${it.region_label?`<button class="detailmetaitem regionlink" type="button" data-open-region="${esc(it.region)}"- title="${it.region_settled?'已判定的产地;打开同产地的作品':'按番号或厂牌推断的产地,批量判定后不再变;打开同产地的作品'}"- >${icon('globe')}<span>${esc(it.region_label)}${it.region_settled?'':'(推断)'}</span></button>`:''}</div>- <div class="detailidentity">${identityRows}</div>- <div class="stags" id="detailTags"></div>- <div class="trace"><div class="trace-metric"><div class="lab mono"><span>离开位置</span><span id="ratioTxt">0%</span></div>- <div class="bar"><u id="watched"></u><b id="mark"></b></div></div>- <div class="trace-metric"><div class="lab mono trace-real"><span>真实观看</span><span id="realTxt">0%</span></div>- <div class="bar"><u id="realBar"></u></div></div>- </div>- <div class="fb">- <button class="like" id="likeBtn" aria-label="${it.liked?'取消喜欢':'喜欢'}" title="喜欢 · 记录口味偏好" aria-pressed="${!!it.liked}">${icon('thumbs-up')}</button>- <button class="reason" id="preferenceToggle" aria-label="喜爱理由" title="喜爱理由" aria-expanded="false" aria-controls="preferencePanel" data-has-reason="${!!it.like_reason}">${icon('notebook-pen')}</button>- <button class="dislike" data-kind="dislike" aria-label="不合口味" title="不合口味 · 降低推荐权重" aria-pressed="${it.feedback==='dislike'}">${icon('thumbs-down')}</button>- <button class="seen" data-kind="seen" aria-label="看过了" title="看过了 · 只降低近期推荐" aria-pressed="${it.feedback==='seen'}">${icon('eye')}</button>- <button class="later" id="stageLater" aria-label="稍后看" title="稍后看 · 加入或移出队列" aria-pressed="${!!it.watch_later}">${it.watch_later?icon('check'):icon('bookmark-plus')}</button>- <button class="playlistadd" id="addPlaylist" aria-label="加入播放列表" title="加入播放列表">${icon('playlist')}</button>- <button class="upgrade" id="betterVersion" aria-label="寻找更好版本" title="寻找高清、无水印或完整版" aria-pressed="${!!it.better_version}">${icon('sparkles')}</button>- <button class="dispose" data-kind="dispose" aria-label="移入回收站" title="移入回收站 · 文件仍保留,可从回收站永久清除" aria-pressed="${it.disposal==='trash'}">${icon('trash')}</button></div>- <div class="preference" id="preferencePanel" hidden>- <textarea id="likeReason" maxlength="2000" placeholder="为什么喜欢?">${esc(it.like_reason||'')}</textarea>- <div class="preference-foot"><span id="preferenceState" aria-live="polite"></span>- <button type="button" class="geist-button primary savepreference" id="savePreference" title="提交喜爱理由" aria-label="提交喜爱理由"><span>提交</span></button></div>- </div>- <button class="obtn" data-kind="o">${icon('sperm')}<span>记一次高潮</span><b class="mono" id="oCount">${it.o_count||0}</b></button>- </div></div></div>- ${queueContext||!(appSettings.relatedLimit>0)?'':`<div class="next"><h3>接着看</h3><div class="nrow" id="nrow">${- pageSkeletonHtml('正在读取推荐',{cards:true,className:'related-skeleton'})}</div></div>`}</div>`);- $('#stage').classList.toggle('ambient-on',appSettings.ambientMode);- $('#stage').classList.toggle('theater-mode',appSettings.theaterMode);- fitSkeleton($('#nrow'));-- const closeDetail=async()=>{const restore=cloneBarsContext(detailReturnBarsContext);- const returnPath=detailReturnPath||'/',restoreSurface=detailReturnNeedsRestore;- await stageExit();- disposeStage(false,false,{miniplayer:false});detailReturnBarsContext=null;- barsContext=restore||{type:'home',filters:state};- route(returnPath);- if(restoreSurface)await restoreRoute();- else{buildBars();if(location.pathname==='/playlists')openPlaylists(false)}};- $('#closeStage').onclick=closeDetail;- // 对账删掉的可能就是当前这条;删了就没什么可停留的,直接退回列表。- wireSourceTools($('#stage'),r=>{- if(r.items.some(x=>x.id===it.id))closeDetail();});- /* 裁剪封面挂在标题旁那排键里。取景框存的是坐标不是图片,所以存完只要把这一页- 重新画一遍:封面地址没变,变的是接口给的 `poster_box`。 */- const cropHost=$('#stage').querySelector('[data-cover-crop]');- if(cropHost)import('/dist/peach-ui.js').then(ui=>ui.mountIsland('cover-crop',cropHost,{- code:it.code||'',coverUrl:`/cover?code=${encodeURIComponent(it.code||'')}`,- box:it.poster_box||null,onSaved:()=>openItem(it.id,false,queueContext)},- {isCurrent:()=>$('#stage').contains(cropHost)}));- /* 标题默认折成两行,真溢出才给展开键:折叠态下 scrollHeight 比 clientHeight 高,就是有- 行被裁掉了。展开与收起换字形——往下多看一截是 chevron-down,收回去是 chevron-up。- 展开键排在那排键最前面,紧挨着它管的标题。标题文字本身也接这一下:人想看全文时手- 本来就落在字上。选中文字那一下不算,那是在复制标题。 */- const titleText=$('#stage').querySelector('[data-detail-title]');- const titleFold=$('#stage').querySelector('[data-title-fold]');- if(titleText&&titleFold){- const syncTitleFold=()=>{- const expanded=titleText.hasAttribute('data-expanded');- if(!expanded)titleFold.hidden=titleText.scrollHeight<=titleText.clientHeight+1;- titleText.toggleAttribute('data-foldable',!titleFold.hidden);- titleFold.setAttribute('aria-expanded',String(expanded));- titleFold.setAttribute('aria-label',expanded?'收起标题':'展开标题');- titleFold.title=expanded?'收起标题':'展开完整标题';- titleFold.querySelector('use').setAttribute('href',expanded?'#i-chevron-up':'#i-chevron-down');- };- titleFold.onclick=()=>{titleText.toggleAttribute('data-expanded');syncTitleFold()};- titleText.onclick=()=>{- if(titleFold.hidden||String(getSelection()||''))return;- titleFold.click();- };- /* 溢出不只在打开那一刻判:影院模式和普通视图之间切换时标题栏宽度差一大截,两行放得下- 的标题换到窄栏就溢出了。观察者第一次回调就是初判;节点随浮窗重画被摘掉后一起回收。 */- new ResizeObserver(syncTitleFold).observe(titleText);- }- if($('#castMore'))$('#castMore').onclick=e=>{- $('#stage').querySelectorAll('[data-castoverflow]').forEach(row=>row.hidden=false);- e.currentTarget.remove()};- $('#stage').querySelectorAll('[data-queue-close]').forEach(b=>b.onclick=closeDetail);- $('#stage').querySelectorAll('[data-queue-item]').forEach(b=>b.onclick=()=>queueContext.kind==='mix'- ?openMix(queueContext.seedId,+b.dataset.queueItem,true)- :queueContext.kind==='parts'?openParts(queueContext.seedId,+b.dataset.queueItem,true)- :queueContext.kind==='editions'?openEditions(queueContext.seedId,+b.dataset.queueItem,true)- :openPlaylist(queueContext.playlistId,+b.dataset.queueItem,true));- $('#stage').querySelectorAll('[data-save-mix]').forEach(b=>b.onclick=()=>saveMixAsPlaylist(queueContext));- $('#stage').querySelectorAll('[data-edit-playlist]').forEach(b=>b.onclick=()=>openPlaylists(true));- $('#stage').querySelectorAll('[data-queue-remove]').forEach(b=>b.onclick=()=>removePlaylistItem(queueContext,+b.dataset.queueRemove,it.id));- if(queueContext?.kind==='playlist'){- const list=$('#stage').querySelector('.mixlist');- if(list)wireDragReorder(list,{selector:'[data-queue-row]',attribute:'data-queue-row',- onMove:(from,target,after)=>{- const ids=queueContext.items.map(item=>item.id).filter(id=>id!==+from);- const at=ids.indexOf(+target);- ids.splice(at+(after?1:0),0,+from);- return reorderPlaylistItems(queueContext,ids,it.id);- }});- }- wireDrag($('#stage').querySelector('.mixlist'));- const g=$('#gate');- const onlineGate=$('#onlineGate');- $('#addPlaylist').onclick=()=>openAddToPlaylist(it);- /* 一排星只挂一个监听,重绘时整块换掉 innerHTML——五个按钮各挂一份的话,- 每次评完都要重新接线,漏接就变成「点第一次有反应,第二次没有」。 */- const paintRating=value=>{it.rating=value==null?null:value;- const box=$('#detailRating');if(!box)return;- box.dataset.value=Math.min(Math.max(value||0,0),100);- box.querySelector('.ratingstars').innerHTML=ratingStarsHtml(value);- box.querySelector('.ratingvalue').textContent=ratingText(value)};- const postRating=async value=>{- const r=await api('/api/feedback',{method:'POST',body:JSON.stringify({id:it.id,kind:'rate',value})});- paintRating(r.rating);return r};- $('#detailRating')?.addEventListener('click',async event=>{- const star=event.target.closest('.star');if(!star)return;- const before=it.rating||0,picked=+star.dataset.rate*RATING_STEP;- const value=picked===before?0:picked;- setActionBusy(star);- try{await postRating(value);- actionReceipt(value?`已评 ${value/RATING_STEP} 星`:'已取消评分',- {undo:()=>postRating(before)});- }catch(error){actionFailure('评分',error)}finally{setActionBusy(star,false)}});- const paintDetailFeedback=result=>{- Object.assign(it,{feedback:result.feedback,disposal:result.disposal,o_count:result.o_count});- const stage=$('#stage');if(!stage)return;- stage.querySelector('.dislike')?.setAttribute('aria-pressed',result.feedback==='dislike');- stage.querySelector('.seen')?.setAttribute('aria-pressed',result.feedback==='seen');- stage.querySelector('.dispose')?.setAttribute('aria-pressed',result.disposal==='trash');- if($('#oCount'))$('#oCount').textContent=result.o_count||0;- };- const postFeedback=async kind=>{- const result=await api('/api/feedback',{method:'POST',body:JSON.stringify({id:it.id,kind})});- paintDetailFeedback(result);return result;- };- $('#stage').querySelectorAll('[data-kind]').forEach(b=>b.onclick=async()=>{- const kind=b.dataset.kind;- const before={feedback:it.feedback||null,disposal:it.disposal||null,o_count:it.o_count||0};- setActionBusy(b);- try{- const r=await postFeedback(kind);- const messages={dislike:r.feedback==='dislike'?'已标记不合口味':'已取消不合口味',- seen:r.feedback==='seen'?'已标记看过':'已取消看过',- dispose:r.disposal==='trash'?'已移入回收站':'已移出回收站',o:'已记录一次高潮'};- actionReceipt(messages[kind],{undo:async()=>{- if(kind==='o')await postFeedback('o-undo');- else if(kind==='dispose')await postFeedback('dispose');- else{- if(r.feedback)await postFeedback(r.feedback);- if(before.feedback)await postFeedback(before.feedback);- }- if(state.state==='ads')await loadCatalog();- }});- if(kind==='dispose'&&r.disposal==='trash'&&state.state==='ads'){- disposeStage(true,false,{miniplayer:false});await loadCatalog();- }- }catch(error){actionFailure('操作',error)}finally{setActionBusy(b,false)}- });- const renderDetailTags=()=>{- const wrap=$('#detailTags');if(!wrap)return;- const byDisplay=new Map();- (it.tags||[]).filter(t=>!DURATION_TAGS.has(t.k)).forEach(t=>{- const key=foldName(tagLabel(t.k)),previous=byDisplay.get(key);- // 改过显示名的标签可能与另一条同名;优先保留本身就是规范显示名的那条。- if(!previous||foldName(t.k)===key&&foldName(previous.k)!==key)byDisplay.set(key,t)});- const visible=[...byDisplay.values()].slice(0,40);- wrap.innerHTML=visible.map(t=>`<span class="detailtag"><button class="tagfilter" data-tag="${esc(t.k)}">${esc(tagLabel(t.k))}</button><button class="tagremove" data-remove-tag="${esc(t.k)}" title="从此视频隐藏该标签" aria-label="删除标签 ${esc(tagLabel(t.k))}">${icon('x')}</button></span>`).join('')+- `<button class="tagplus" id="tagPlus" title="添加标签" aria-label="添加标签" aria-expanded="false">${icon('plus')}</button>- <div class="tagpicker" id="tagPicker" role="dialog" aria-label="添加标签" hidden>- <label class="tagpicksearch">${icon('search')}<input id="tagPickSearch" maxlength="80" placeholder="搜索或输入新标签" autocomplete="off"></label>- <div class="tagpickbody" id="tagPickBody"></div>- </div>`;- wrap.querySelectorAll('[data-tag]').forEach(s=>s.onclick=()=>{- commitContextFilter(filters=>{filters.tag=s.dataset.tag});- window.scrollTo({top:0,behavior:'smooth'})});- wrap.querySelectorAll('[data-remove-tag]').forEach(b=>b.onclick=async()=>{- const tag=b.dataset.removeTag;setActionBusy(b);- try{const r=await api('/api/item-tag',{method:'POST',body:JSON.stringify({id:it.id,operation:'remove',tag})});- if(!r.ok)throw new Error('标签未删除');- const old=(it.tags||[]).find(x=>foldName(x.k)===foldName(tag))||{k:tag,cat:'general'};- it.tags=(it.tags||[]).filter(x=>foldName(x.k)!==foldName(tag));renderDetailTags();- actionReceipt(`已删除标签「${tagLabel(tag)}」`,{undo:async()=>{- await api('/api/item-tag',{method:'POST',body:JSON.stringify({id:it.id,operation:'add',tag})});- if(!(it.tags||[]).some(x=>foldName(x.k)===foldName(tag)))it.tags.push(old);- renderDetailTags();- }});- }catch(error){actionFailure('删除标签',error)}finally{setActionBusy(b,false)}});- const addTag=async tag=>{tag=tag.trim();if(!tag)return;- try{const r=await api('/api/item-tag',{method:'POST',body:JSON.stringify({id:it.id,operation:'add',tag})});- if(r.ok){- if(!it.tags.some(x=>foldName(x.k)===foldName(tag)))it.tags.push({k:tag,cat:'general'});- try{const old=JSON.parse(localStorage.getItem('peach.recentTags')||'[]').filter(x=>foldName(x)!==foldName(tag));- localStorage.setItem('peach.recentTags',JSON.stringify([tag,...old].slice(0,12)))}catch(_e){}- renderDetailTags();actionReceipt(`已添加标签「${tagLabel(tag)}」`,{undo:async()=>{- await api('/api/item-tag',{method:'POST',body:JSON.stringify({id:it.id,operation:'remove',tag})});- it.tags=(it.tags||[]).filter(x=>foldName(x.k)!==foldName(tag));renderDetailTags();- }})- }}catch(error){actionFailure('添加标签',error)}- };- const plus=$('#tagPlus'),picker=$('#tagPicker'),search=$('#tagPickSearch'),body=$('#tagPickBody');- let detachOutside=null,activeIndex=-1;- const closePicker=()=>{dismissMenu(picker);plus.setAttribute('aria-expanded','false');- if(detachOutside){detachOutside();detachOutside=null}};- const candidates=()=>{const source=(facets&&facets.tags)||[],byName=new Map(source.map(x=>[foldName(x.k),x]));- let recent=[];try{recent=JSON.parse(localStorage.getItem('peach.recentTags')||'[]')}catch(_e){}- return {all:source,recent:recent.map(name=>byName.get(foldName(name))||{k:name,n:0})}};- const pickButton=x=>{const selected=(it.tags||[]).some(t=>foldName(t.k)===foldName(x.k));- return `<button class="tagpickitem${selected?' selected':''}" data-pick="${esc(x.k)}" aria-pressed="${selected}">- ${selected?icon('check'):icon('tags')}<span class="pickname">${esc(tagLabel(x.k))}</span><span class="pickcount">${(x.n||0).toLocaleString()}</span></button>`};- const renderPicker=()=>{const q=foldName(search.value),data=candidates();- const filtered=data.all.filter(x=>!q||foldName(x.k).includes(q)).slice(0,120);- const recent=q?[]:data.recent.filter((x,i,a)=>a.findIndex(y=>foldName(y.k)===foldName(x.k))===i).slice(0,12);- const exact=filtered.some(x=>foldName(x.k)===q);- body.innerHTML=(recent.length?`<section class="tagpicksection"><h4>最近使用</h4><div class="tagpickgrid">${recent.map(pickButton).join('')}</div></section>`:'')+- `<section class="tagpicksection"><h4>${q?'搜索结果':'全部标签'}</h4><div class="tagpickgrid">${filtered.map(pickButton).join('')}- ${q&&!exact?`<button class="tagpickitem" data-pick="${esc(search.value.trim())}">${icon('plus')}<span class="pickname">新建“${esc(search.value.trim())}”</span></button>`:''}</div></section>`;- activeIndex=-1;body.querySelectorAll('[data-pick]').forEach(b=>b.onclick=()=>{- const selected=b.getAttribute('aria-pressed')==='true',tag=b.dataset.pick;closePicker();if(!selected)addTag(tag)})};- search.oninput=e=>{if(e.isComposing)return;renderPicker()};- search.oncompositionend=renderPicker;- search.onkeydown=e=>{const options=[...body.querySelectorAll('[data-pick]')];- /* 选字那一下的回车是定字,不是「新建这个标签」——半截拼音会真的建成标签。 */- if(e.isComposing)return;- if(e.key==='Escape'){e.preventDefault();closePicker();plus.focus();return}- if(e.key==='ArrowDown'||e.key==='ArrowUp'){e.preventDefault();if(!options.length)return;- activeIndex=(activeIndex+(e.key==='ArrowDown'?1:-1)+options.length)%options.length;- options.forEach((b,i)=>b.classList.toggle('active',i===activeIndex));options[activeIndex].scrollIntoView({block:'nearest'});return}- if(e.key==='Enter'){e.preventDefault();if(activeIndex>=0&&options[activeIndex])options[activeIndex].click();- else if(search.value.trim()){closePicker();addTag(search.value.trim())}}};- plus.onclick=()=>{presentMenu(picker);plus.setAttribute('aria-expanded','true');renderPicker();search.focus();- detachOutside=bindOutsideClose(plus,picker,closePicker)};- };- renderDetailTags();- $('#stage').querySelectorAll('[data-entity-kind]').forEach(b=>b.onclick=()=>- openEntity(b.dataset.entityKind,b.dataset.entityName));- $('#stage').querySelectorAll('[data-open-unowned]').forEach(b=>b.onclick=()=>openUnowned());- $('#stage').querySelectorAll('[data-open-region]').forEach(b=>b.onclick=()=>openRegion(b.dataset.openRegion));- const paintLater=value=>{it.watch_later=value;const button=$('#stageLater');if(!button)return;- button.setAttribute('aria-pressed',value);button.innerHTML=value?icon('check'):icon('bookmark-plus')};- $('#stageLater').onclick=async()=>{const button=$('#stageLater');setActionBusy(button);- try{const r=await api('/api/watch-later',{method:'POST',body:JSON.stringify({id:it.id})});- paintLater(r.watch_later);actionReceipt(r.watch_later?'已加入稍后看':'已移出稍后看',{undo:async()=>{- const restored=await api('/api/watch-later',{method:'POST',body:JSON.stringify({id:it.id})});- paintLater(restored.watch_later);- }});- }catch(error){actionFailure('更新稍后看',error)}finally{setActionBusy(button,false)}};- $('#betterVersion').onclick=async()=>{const b=$('#betterVersion'),wanted=b.getAttribute('aria-pressed')!=='true';- const before={wanted:!!it.better_version,reason:it.better_version_reason||''};setActionBusy(b);- const paintQuality=r=>{it.better_version=r.better_version;it.better_version_reason=r.better_version_reason;- if(!$('#betterVersion'))return;$('#betterVersion').setAttribute('aria-pressed',String(r.better_version));- $('#betterVersion').title=r.better_version?(r.better_version_reason||'已标记寻找更好版本'):'寻找高清、无水印或完整版'};- try{const r=await api('/api/quality-goal',{method:'POST',body:JSON.stringify({id:it.id,wanted})});paintQuality(r);- actionReceipt(r.better_version?'已标记寻找更好版本':'已取消寻找更好版本',{undo:async()=>{- const restored=await api('/api/quality-goal',{method:'POST',body:JSON.stringify({id:it.id,wanted:before.wanted,reason:before.reason})});paintQuality(restored);- }});- }catch(error){actionFailure('更新版本需求',error)}finally{setActionBusy(b,false)}};- const preferenceToggle=$('#preferenceToggle'),preferencePanel=$('#preferencePanel');- preferenceToggle.onclick=()=>{const open=preferencePanel.hidden;preferencePanel.hidden=!open;- preferenceToggle.setAttribute('aria-expanded',String(open));if(open)$('#likeReason').focus()};- const savePreference=async(options={})=>{- const btn=$('#savePreference'),like=$('#likeBtn'),stateText=$('#preferenceState');- const before={liked:!!it.liked,reason:it.like_reason||''};- setActionBusy(btn);- btn.innerHTML=`${spinnerHtml('正在提交喜爱理由')}<span>提交中…</span>`;stateText.textContent='保存中…';- const reason=$('#likeReason').value;- const liked=options.liked??(like.getAttribute('aria-pressed')==='true'||reason.trim().length>0);- const paintPreference=r=>{it.liked=r.liked;it.like_reason=r.like_reason;- if(!$('#likeBtn'))return;$('#likeBtn').setAttribute('aria-pressed',r.liked);- $('#likeBtn').setAttribute('aria-label',r.liked?'取消喜欢':'喜欢');- $('#preferenceToggle').dataset.hasReason=String(!!r.like_reason);- $('#likeReason').value=r.like_reason||''};- try{const r=await api('/api/preference',{method:'POST',body:JSON.stringify({id:it.id,liked,reason})});- paintPreference(r);- stateText.textContent='已保存';setTimeout(()=>{if(stateText.textContent==='已保存')stateText.textContent=''},1400);- actionReceipt(r.liked?'已保存喜欢偏好':'已取消喜欢',{undo:async()=>{- const restored=await api('/api/preference',{method:'POST',body:JSON.stringify({id:it.id,...before})});- paintPreference(restored);- }});- }catch(e){stateText.textContent='保存失败 · 请重试';actionFailure('保存喜欢偏好',e)}finally{- setActionBusy(btn,false);btn.innerHTML='<span>提交</span>'}- };- $('#likeBtn').onclick=()=>savePreference({liked:$('#likeBtn').getAttribute('aria-pressed')!=='true'});- $('#savePreference').onclick=savePreference;- const vv=$('#vid'),poster=detailPosterUrl(it);- if(poster)vv.poster=poster;- vv.addEventListener('play',()=>{if(!$('#stage').dataset.c){$('#stage').dataset.c='1';- api('/api/play',{method:'POST',body:JSON.stringify({id:it.id})})}});- if(it.play_seconds&&realDuration(it.duration)){- const rp=Math.min(it.play_seconds/realDuration(it.duration),1)*100;- $('#realTxt').textContent=rp.toFixed(0)+'%';- $('#realBar').style.width=rp.toFixed(1)+'%';- }- wireTelemetry(it,vv,{watched:'#watched',mark:'#mark',ratio:'#ratioTxt'});- let stopAmbient=()=>{};- // 进小窗时播放器不销毁,氛围采样要在这里跟着舞台一起停,别对着已经拆掉的画布继续画。- onStageDispose(()=>stopAmbient());- const offlineGate=$('#offlineGate');- if(offlineGate){- const retry=$('#offlineRetry');- if(retry)retry.onclick=async()=>{- retry.disabled=true;- const status=await loadSourceStatus();- retry.disabled=false;- if(status[it.location]===false){retry.textContent='仍未挂载 · 再试';return}- openItem(it.id,false); // 盘回来了就按正常路径重开,不在这里半路挂播放器- };- }- else if(onlineGate){- /* 直接进「已保存」这一档。openFollow(true) 会 route 回干净的 /follow 再照 URL- 推导,所以状态要先写进 URL,光设全局会被推回未看。 */- $('#openSavedFollow').onclick=()=>{- followAuthors=new Set();followProviders=new Set();followTags=new Set();followWorks=new Set();followMediaView='videos';- followFilter='saved';route(followViewPath());openFollow(false)};- }- else if(g)g.onclick=async()=>{vv.hidden=false;g.remove();const mounted=await mountDetailPlayer(it,vv,true);stopAmbient=mountPlayerAmbient(vv);mounted?.one?.('dispose',stopAmbient)};- else{const mounted=await mountDetailPlayer(it,vv,appSettings.detailAutoplay);stopAmbient=mountPlayerAmbient(vv);mounted?.one?.('dispose',stopAmbient)}- vv.addEventListener('emptied',()=>stopAmbient(),{once:true});- buildBars();- scrollItemDetailIntoView();-- const nextRow=$('#nrow');- if(nextRow)api('/api/related?id='+it.id+'&limit='+appSettings.relatedLimit).then(d=>{- if(!nextRow.isConnected)return; cache(d.items);- /* 没有可接着看的就整块拿掉,不留一个标题配空白。 */- if(!d.items.length){nextRow.closest('.next')?.remove();return}- /* 卡片是 `catalog-grid` island 的 items 模式:壳手上已经有这一批,岛只画卡。舞台清场时- 经 `onStageDispose` 卸掉它。 */- onStageDispose(()=>releaseNextRow(nextRow));- mountIsland('catalog-grid',nextRow,{- mode:'items',variant:'next',items:d.items,helpers:gridHelpers,actions:gridActions,layout:catalogGridLayout(),- selectMode,selected:new Set(selected),seekSeconds:appSettings.seekSeconds,revision:0,- cache,wireDrag,skeletonHtml:()=>'',- },{isCurrent:()=>nextRow.isConnected}).catch(error=>console.error(error));- /* 这一排每开一次详情就重新生成,启动时那次 `wireAllDrag()` 登记的是早已不在页面上的旧节点;- 它又没有滚动条,不在这里登记,滚轮和拖动都推不动它。 */- wireDrag(nextRow);});-}-/* 卸掉接着看那一排的网格根。舞台清场、换页之前都要先做:`#stage` 整块重写之后,挂在旧节点- 上的根不卸就一直活着。 */-function releaseNextRow(row=$('#nrow')){- if(!row)return;- releaseHoverPreviews(row);unmountIsland(row);+ activeQueue=queue&&{kind:queue.kind,seedId:queue.seedId,playlistId:queue.playlistId};+ pendingQueueRoute=queue&&queuePush+ ? `${QUEUE_ROUTES[queue.kind]}/${queue.kind==='playlist'?queue.playlistId:queue.seedId}`:null;+ if(push&&!queue)route('/item/'+id);+ await mountStageIsland('item-detail',{+ id,queue,relatedLimit:appSettings.relatedLimit>0?+appSettings.relatedLimit:0,+ helpers:itemDetailHelpers,actions:itemDetailActions,+ grid:{helpers:gridHelpers,actions:gridActions,cache},+ layout:catalogGridLayout(),selectMode,selected:new Set(selected),seekSeconds:appSettings.seekSeconds,+ },surfaceToken(surfacePath()));+}+/* 关掉作品详情:退场动画、拆舞台,再把来处的地址、筛选与顶栏带回去。列表还在下面就不重画;+ 深链直接进的详情下面没有东西,这时才照地址重建。 */+async function closeItemDetail(){+ const restore=cloneBarsContext(detailReturnBarsContext);+ const returnPath=detailReturnPath||'/',restoreSurface=detailReturnNeedsRestore;+ await stageExit();+ disposeStage(false,false,{miniplayer:false});detailReturnBarsContext=null;+ barsContext=restore||{type:'home',filters:state};+ route(returnPath);+ if(restoreSurface)await restoreRoute();+ else{buildBars();if(location.pathname==='/playlists')openPlaylists(false)}}function wireTelemetry(it,v,sel){diff --git a/web/dist/peach-react.js b/web/dist/peach-react.jsindex 6c000ce79..d03814d38 100644--- a/web/dist/peach-react.js+++ b/web/dist/peach-react.js@@ -1,30 +1,30 @@import { LOC as e, brandIcon as t, entityPath as n, esc as r, fmtDur as i, fmtSize as a, foldName as o, icon as s, linkMarkUrl as c, mapLimit as l, officialLinkText as u, requestErrorMessage as d, seededRank as f, siteMarkUrl as p } from "/js/core.js";-import { MEDIA_SOURCE_ICONS as m, attachOverlayScrollbar as h, confirmModal as g, emptyStateHtml as _, fitSkeleton as v, indexSkeletonHtml as y, loadingDotsHtml as b, moveGlidePane as x, noteHtml as S, popBadges as C, popCount as w, setActionBusy as T, setCollapseOpen as E, spinnerHtml as D, wireContextCard as O } from "/js/ui-components.js";+import { MEDIA_SOURCE_ICONS as m, attachOverlayScrollbar as h, confirmModal as g, dismissMenu as _, emptyStateHtml as v, fitSkeleton as y, indexSkeletonHtml as b, loadingDotsHtml as x, moveGlidePane as S, noteHtml as C, popBadges as w, popCount as T, presentMenu as E, setActionBusy as D, setCollapseOpen as O, spinnerHtml as k, wireContextCard as A } from "/js/ui-components.js";//#region \0rolldown/runtime.js-var k = Object.create, A = Object.defineProperty, j = Object.getOwnPropertyDescriptor, M = Object.getOwnPropertyNames, N = Object.getPrototypeOf, P = Object.prototype.hasOwnProperty, ee = (e, t, n) => () => {+var j = Object.create, M = Object.defineProperty, N = Object.getOwnPropertyDescriptor, ee = Object.getOwnPropertyNames, te = Object.getPrototypeOf, P = Object.prototype.hasOwnProperty, ne = (e, t, n) => () => {if (n) throw n[0];try {return e && (t = e(e = 0)), t;} catch (e) {throw n = [e], e;}-}, F = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), te = (e, t) => {+}, F = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), re = (e, t) => {let n = {};- for (var r in e) A(n, r, {+ for (var r in e) M(n, r, {get: e[r],enumerable: !0});- return t || A(n, Symbol.toStringTag, { value: "Module" }), n;-}, ne = (e, t, n, r) => {- if (t && typeof t == "object" || typeof t == "function") for (var i = M(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !P.call(e, s) && s !== n && A(e, s, {+ return t || M(n, Symbol.toStringTag, { value: "Module" }), n;+}, ie = (e, t, n, r) => {+ if (t && typeof t == "object" || typeof t == "function") for (var i = ee(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !P.call(e, s) && s !== n && M(e, s, {get: ((e) => t[e]).bind(null, s),- enumerable: !(r = j(t, s)) || r.enumerable+ enumerable: !(r = N(t, s)) || r.enumerable});return e;-}, re = (e, t, n) => (n = e == null ? {} : k(N(e)), ne(t || !e || !e.__esModule || !P.call(e, "default") ? A(n, "default", {+}, ae = (e, t, n) => (n = e == null ? {} : j(te(e)), ie(t || !e || !e.__esModule || !P.call(e, "default") ? M(n, "default", {value: e,enumerable: !0-}) : n, e)), ie = (e) => P.call(e, "module.exports") ? e["module.exports"] : ne(A({}, "__esModule", { value: !0 }), e), ae = /* @__PURE__ */ F(((e) => {+}) : n, e)), oe = (e) => P.call(e, "module.exports") ? e["module.exports"] : ie(M({}, "__esModule", { value: !0 }), e), se = /* @__PURE__ */ F(((e) => {var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.consumer"), s = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), f = Symbol.for("react.activity"), p = Symbol.for("react.view_transition"), m = Symbol.iterator;function h(e) {return typeof e != "object" || !e ? null : (e = m && e[m] || e["@@iterator"], typeof e == "function" ? e : null);@@ -105,7 +105,7 @@ var k = Object.create, A = Object.defineProperty, j = Object.getOwnPropertyDescr}throw e;}- function P(e, r, i, a, o) {+ function ee(e, r, i, a, o) {var s = typeof e;(s === "undefined" || s === "boolean") && (e = null);var c = !1;@@ -121,30 +121,30 @@ var k = Object.create, A = Object.defineProperty, j = Object.getOwnPropertyDescrcase n:c = !0;break;- case d: return c = e._init, P(c(e._payload), r, i, a, o);+ case d: return c = e._init, ee(c(e._payload), r, i, a, o);}}- if (c) return o = o(e), c = a === "" ? "." + M(e, 0) : a, C(o) ? (i = "", c != null && (i = c.replace(j, "$&/") + "/"), P(o, r, i, "", function(e) {+ if (c) return o = o(e), c = a === "" ? "." + M(e, 0) : a, C(o) ? (i = "", c != null && (i = c.replace(j, "$&/") + "/"), ee(o, r, i, "", function(e) {return e;})) : o != null && (k(o) && (o = O(o, i + (o.key == null || e && e.key === o.key ? "" : ("" + o.key).replace(j, "$&/") + "/") + c)), r.push(o)), 1;c = 0;var l = a === "" ? "." : a + ":";- if (C(e)) for (var u = 0; u < e.length; u++) a = e[u], s = l + M(a, u), c += P(a, r, i, s, o);- else if (u = h(e), typeof u == "function") for (e = u.call(e), u = 0; !(a = e.next()).done;) a = a.value, s = l + M(a, u++), c += P(a, r, i, s, o);+ if (C(e)) for (var u = 0; u < e.length; u++) a = e[u], s = l + M(a, u), c += ee(a, r, i, s, o);+ else if (u = h(e), typeof u == "function") for (e = u.call(e), u = 0; !(a = e.next()).done;) a = a.value, s = l + M(a, u++), c += ee(a, r, i, s, o);else if (s === "object") {- if (typeof e.then == "function") return P(N(e), r, i, a, o);+ if (typeof e.then == "function") return ee(N(e), r, i, a, o);throw r = String(e), Error("Objects are not valid as a React child (found: " + (r === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : r) + "). If you meant to render a collection of children, use an array instead.");}return c;}- function ee(e, t, n) {+ function te(e, t, n) {if (e == null) return e;var r = [], i = 0;- return P(e, r, "", "", function(e) {+ return ee(e, r, "", "", function(e) {return t.call(n, e, i++);}), r;}- function F(e) {+ function P(e) {if (e._status === -1) {var t = e._result, n = t();n.then(function(t) {@@ -156,7 +156,7 @@ var k = Object.create, A = Object.defineProperty, j = Object.getOwnPropertyDescrif (e._status === 1) return e._result.default;throw e._result;}- var te = typeof reportError == "function" ? reportError : function(e) {+ var ne = typeof reportError == "function" ? reportError : function(e) {if (typeof window == "object" && typeof window.ErrorEvent == "function") {var t = new window.ErrorEvent("error", {bubbles: !0,@@ -171,14 +171,14 @@ var k = Object.create, A = Object.defineProperty, j = Object.getOwnPropertyDescr}console.error(e);};- function ne(e) {+ function F(e) {var t = T.T, n = {};n.types = t === null ? null : t.types, T.T = n;try {var r = e(), i = T.S;- i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && r.then(w, te);+ i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && r.then(w, ne);} catch (e) {- te(e);+ ne(e);} finally {t !== null && n.types !== null && (t.types = n.types), T.T = t;}@@ -188,23 +188,23 @@ var k = Object.create, A = Object.defineProperty, j = Object.getOwnPropertyDescrif (t !== null) {var n = t.types;n === null ? t.types = [e] : n.indexOf(e) === -1 && n.push(e);- } else ne(re.bind(null, e));+ } else F(re.bind(null, e));}var ie = {- map: ee,+ map: te,forEach: function(e, t, n) {- ee(e, function() {+ te(e, function() {t.apply(this, arguments);}, n);},count: function(e) {var t = 0;- return ee(e, function() {+ return te(e, function() {t++;}), t;},toArray: function(e) {- return ee(e, function(e) {+ return te(e, function(e) {return e;}) || [];},@@ -272,7 +272,7 @@ var k = Object.create, A = Object.defineProperty, j = Object.getOwnPropertyDescr_status: -1,_result: e},- _init: F+ _init: P};}, e.memo = function(e, t) {return {@@ -280,7 +280,7 @@ var k = Object.create, A = Object.defineProperty, j = Object.getOwnPropertyDescrtype: e,compare: t === void 0 ? null : t};- }, e.startTransition = ne, e.unstable_useCacheRefresh = function() {+ }, e.startTransition = F, e.unstable_useCacheRefresh = function() {return T.H.useCacheRefresh();}, e.use = function(e) {return T.H.use(e);@@ -319,9 +319,9 @@ var k = Object.create, A = Object.defineProperty, j = Object.getOwnPropertyDescr}, e.useTransition = function() {return T.H.useTransition();}, e.version = "19.3.0";-})), oe = /* @__PURE__ */ F(((e, t) => {- t.exports = ae();-})), se = /* @__PURE__ */ F(((e) => {+})), ce = /* @__PURE__ */ F(((e, t) => {+ t.exports = se();+})), le = /* @__PURE__ */ F(((e) => {var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");function r(e, n, r) {var i = null;@@ -336,25 +336,25 @@ var k = Object.create, A = Object.defineProperty, j = Object.getOwnPropertyDescr};}e.Fragment = n, e.jsx = r, e.jsxs = r;-})), ce = /* @__PURE__ */ F(((e, t) => {- t.exports = se();-})), I = /* @__PURE__ */ re(oe(), 1), L = ce(), le = I.createContext(void 0), ue = (e) => {- let t = I.useContext(le);+})), ue = /* @__PURE__ */ F(((e, t) => {+ t.exports = le();+})), I = /* @__PURE__ */ ae(ce(), 1), L = ue(), R = I.createContext(void 0), z = (e) => {+ let t = I.useContext(R);if (e) return e;if (!t) throw Error("No QueryClient set, use QueryClientProvider to set one");return t;-}, R = ({ client: e, children: t }) => (I.useEffect(() => (e.mount(), () => {+}, de = ({ client: e, children: t }) => (I.useEffect(() => (e.mount(), () => {e.unmount();-}), [e]), /* @__PURE__ */ (0, L.jsx)(le.Provider, {+}), [e]), /* @__PURE__ */ (0, L.jsx)(R.Provider, {value: e,children: t-})), z = {+})), fe = {setTimeout: (e, t) => setTimeout(e, t),clearTimeout: (e) => clearTimeout(e),setInterval: (e, t) => setInterval(e, t),clearInterval: (e) => clearInterval(e)-}, de = new class {- #e = z;+}, pe = new class {+ #e = fe;setTimeoutProvider(e) {this.#e = e;}@@ -371,31 +371,31 @@ var k = Object.create, A = Object.defineProperty, j = Object.getOwnPropertyDescrthis.#e.clearInterval(e);}}();-function fe(e) {+function me(e) {setTimeout(e, 0);}//#endregion//#region node_modules/@tanstack/query-core/build/modern/utils.js-var pe = typeof window > "u" || "Deno" in globalThis;-function me() {}-function he(e, t) {+var he = typeof window > "u" || "Deno" in globalThis;+function ge() {}+function _e(e, t) {return typeof e == "function" ? e(t) : e;}-function ge(e) {+function ve(e) {return typeof e == "number" && e >= 0 && e !== Infinity;}-function _e(e, t) {+function ye(e, t) {return Math.max(e + (t || 0) - Date.now(), 0);}-function ve(e, t) {+function be(e, t) {return typeof e == "function" ? e(t) : e;}-function ye(e, t) {+function xe(e, t) {let { type: n = "all", exact: r, fetchStatus: i, predicate: a, queryKey: o, stale: s } = e;if (o) {if (r) {- if (t.queryHash !== xe(o, t.options)) return !1;- } else if (!Ce(t.queryKey, o)) return !1;+ if (t.queryHash !== Ce(o, t.options)) return !1;+ } else if (!Te(t.queryKey, o)) return !1;}if (n !== "all") {let e = t.isActive();@@ -403,105 +403,105 @@ function ye(e, t) {}return !(typeof s == "boolean" && t.isStale() !== s || i && i !== t.state.fetchStatus || a && !a(t));}-function be(e, t) {+function Se(e, t) {let { exact: n, status: r, predicate: i, mutationKey: a } = e;if (a) {if (!t.options.mutationKey) return !1;if (n) {- if (Se(t.options.mutationKey) !== Se(a)) return !1;- } else if (!Ce(t.options.mutationKey, a)) return !1;+ if (we(t.options.mutationKey) !== we(a)) return !1;+ } else if (!Te(t.options.mutationKey, a)) return !1;}return !(r && t.state.status !== r || i && !i(t));}-function xe(e, t) {- return (t?.queryKeyHashFn || Se)(e);+function Ce(e, t) {+ return (t?.queryKeyHashFn || we)(e);}-function Se(e) {- return JSON.stringify(e, (e, t) => Oe(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);+function we(e) {+ return JSON.stringify(e, (e, t) => Ae(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);}-function Ce(e, t) {+function Te(e, t) {if (e === t) return !0;if (typeof e != typeof t) return !1;if (e && t && typeof e == "object" && typeof t == "object") {if (Array.isArray(e) && Array.isArray(t)) {if (t.length > e.length) return !1;- for (let n = 0; n < t.length; n++) if (!Ce(e[n], t[n])) return !1;+ for (let n = 0; n < t.length; n++) if (!Te(e[n], t[n])) return !1;return !0;}let n = Object.keys(t);- for (let r of n) if (!Ce(e[r], t[r])) return !1;+ for (let r of n) if (!Te(e[r], t[r])) return !1;return !0;}return !1;}-var we = Object.prototype.hasOwnProperty;-function Te(e, t, n = 0) {+var Ee = Object.prototype.hasOwnProperty;+function De(e, t, n = 0) {if (e === t) return e;if (n > 500) return t;- let r = De(e) && De(t);- if (!r && !(Oe(e) && Oe(t))) return t;+ let r = ke(e) && ke(t);+ if (!r && !(Ae(e) && Ae(t))) return t;let i = (r ? e : Object.keys(e)).length, a = r ? t : Object.keys(t), o = a.length, s = r ? Array(o) : {}, c = 0;for (let l = 0; l < o; l++) {let o = r ? l : a[l], u = e[o], d = t[o];if (u === d) {- s[o] = u, (r ? l < i : we.call(e, o)) && c++;+ s[o] = u, (r ? l < i : Ee.call(e, o)) && c++;continue;}if (u === null || d === null || typeof u != "object" || typeof d != "object") {s[o] = d;continue;}- let f = Te(u, d, n + 1);+ let f = De(u, d, n + 1);s[o] = f, f === u && c++;}return i === o && c === i ? e : s;}-function Ee(e, t) {+function Oe(e, t) {if (!t || Object.keys(e).length !== Object.keys(t).length) return !1;for (let n in e) if (e[n] !== t[n]) return !1;return !0;}-function De(e) {+function ke(e) {return Array.isArray(e) && e.length === Object.keys(e).length;}-function Oe(e) {- if (!ke(e)) return !1;+function Ae(e) {+ if (!je(e)) return !1;let t = Object.getPrototypeOf(e), n = t?.constructor;if (n === void 0) return !0;if (typeof n != "function") return !1;let r = n.prototype;- return !(!ke(r) || !r.hasOwnProperty("isPrototypeOf") || t !== Object.prototype);+ return !(!je(r) || !r.hasOwnProperty("isPrototypeOf") || t !== Object.prototype);}-function ke(e) {+function je(e) {return Object.prototype.toString.call(e) === "[object Object]";}-function Ae(e) {+function Me(e) {return new Promise((t) => {- de.setTimeout(t, e);+ pe.setTimeout(t, e);});}-function je(e, t, n) {- return typeof n.structuralSharing == "function" ? n.structuralSharing(e, t) : n.structuralSharing === !1 ? t : Te(e, t);+function Ne(e, t, n) {+ return typeof n.structuralSharing == "function" ? n.structuralSharing(e, t) : n.structuralSharing === !1 ? t : De(e, t);}-function Me(e) {+function Pe(e) {return e;}-function Ne(e, t, n = 0) {+function Fe(e, t, n = 0) {let r = [...e, t];return n && r.length > n ? r.slice(1) : r;}-function Pe(e, t, n = 0) {+function Ie(e, t, n = 0) {let r = [t, ...e];return n && r.length > n ? r.slice(0, -1) : r;}-var Fe = Symbol();-function Ie(e, t) {- return !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === Fe ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;+var Le = Symbol();+function Re(e, t) {+ return !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === Le ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;}-function Le(e, t) {+function ze(e, t) {return typeof e == "function" ? e(...t) : !!e;}-function Re(e, t, n) {+function Be(e, t, n) {let r = !1, i;return Object.defineProperty(e, "signal", {enumerable: !0,@@ -510,7 +510,7 @@ function Re(e, t, n) {}//#endregion//#region node_modules/@tanstack/query-core/build/modern/environmentManager.js-var ze = () => pe, Be = () => ze(), Ve = class {+var Ve = () => he, He = () => Ve(), Ue = class {constructor() {this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);}@@ -524,7 +524,7 @@ var ze = () => pe, Be = () => ze(), Ve = class {}onSubscribe() {}onUnsubscribe() {}-}, He = new class extends Ve {+}, We = new class extends Ue {#e;#t;#n;@@ -561,13 +561,13 @@ var ze = () => pe, Be = () => ze(), Ve = class {isFocused() {return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";}-}(), Ue = fe;-function We() {+}(), Ge = me;+function Ke() {let e = [], t = 0, n = (e) => {e();}, r = (e) => {e();- }, i = Ue, a = (r) => {+ }, i = Ge, a = (r) => {t ? e.push(r) : i(() => {n(r);});@@ -609,7 +609,7 @@ function We() {}};}-var Ge = We(), Ke = new class extends Ve {+var qe = Ke(), Je = new class extends Ue {#e = !0;#t;#n;@@ -643,32 +643,32 @@ var Ge = We(), Ke = new class extends Ve {}();//#endregion//#region node_modules/@tanstack/query-core/build/modern/retryer.js-function qe(e) {+function Ye(e) {return Math.min(1e3 * 2 ** e, 3e4);}-function Je(e) {- return (e ?? "online") !== "online" || Ke.isOnline();+function Xe(e) {+ return (e ?? "online") !== "online" || Je.isOnline();}-var Ye = class extends Error {+var Ze = class extends Error {constructor(e) {super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;}};-function Xe(e) {+function Qe(e) {let t = !1, n = 0, r, i = "pending", a, o, s = new Promise((e, t) => {a = e, o = t;});- s.catch(me);+ s.catch(ge);let c = () => i !== "pending", l = (t) => {if (!c()) {- let n = new Ye(t);+ let n = new Ze(t);h(n), e.onCancel?.(n);}}, u = () => {t = !0;}, d = () => {t = !1;- }, f = () => He.isFocused() && (e.networkMode === "always" || Ke.isOnline()) && e.canRun(), p = () => Je(e.networkMode) && e.canRun(), m = (e) => {+ }, f = () => We.isFocused() && (e.networkMode === "always" || Je.isOnline()) && e.canRun(), p = () => Xe(e.networkMode) && e.canRun(), m = (e) => {c() || (r?.(), i = "resolved", a(e));}, h = (e) => {c() || (r?.(), i = "rejected", o(e));@@ -688,12 +688,12 @@ function Xe(e) {}Promise.resolve(r).then(m).catch((r) => {if (c()) return;- let i = e.retry ?? (Be() ? 0 : 3), a = e.retryDelay ?? qe, o = typeof a == "function" ? a(n, r) : a, s = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);+ let i = e.retry ?? (He() ? 0 : 3), a = e.retryDelay ?? Ye, o = typeof a == "function" ? a(n, r) : a, s = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);if (t || !s) {h(r);return;}- n++, e.onFail?.(n, r), Ae(o).then(() => f() ? void 0 : g()).then(() => {+ n++, e.onFail?.(n, r), Me(o).then(() => f() ? void 0 : g()).then(() => {t ? h(r) : _();});});@@ -711,34 +711,34 @@ function Xe(e) {}//#endregion//#region node_modules/@tanstack/query-core/build/modern/removable.js-var Ze = class {+var $e = class {#e;destroy() {this.clearGcTimeout();}scheduleGc() {- this.clearGcTimeout(), ge(this.gcTime) && (this.#e = de.setTimeout(() => {+ this.clearGcTimeout(), ve(this.gcTime) && (this.#e = pe.setTimeout(() => {this.optionalRemove();}, this.gcTime));}updateGcTime(e) {- this.gcTime = Math.max(this.gcTime || 0, e ?? (Be() ? Infinity : 3e5));+ this.gcTime = Math.max(this.gcTime || 0, e ?? (He() ? Infinity : 3e5));}clearGcTimeout() {- this.#e !== void 0 && (de.clearTimeout(this.#e), this.#e = void 0);+ this.#e !== void 0 && (pe.clearTimeout(this.#e), this.#e = void 0);}};//#endregion//#region node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js-function Qe(e) {+function et(e) {return { onFetch: (t, n) => {let r = t.options, i = t.fetchOptions?.meta?.fetchMore?.direction, a = t.state.data?.pages || [], o = t.state.data?.pageParams || [], s = {pages: [],pageParams: []}, c = 0, l = async () => {let n = !1, l = (e) => {- Re(e, () => t.signal, () => n = !0);- }, u = Ie(t.options, t.fetchOptions), d = async (e, r, i) => {+ Be(e, () => t.signal, () => n = !0);+ }, u = Re(t.options, t.fetchOptions), d = async (e, r, i) => {if (n) return Promise.reject(t.signal.reason);if (r == null && e.pages.length) return Promise.resolve(e);let a = (() => {@@ -750,14 +750,14 @@ function Qe(e) {meta: t.options.meta};return l(e), e;- })(), o = await u(a), { maxPages: s } = t.options, c = i ? Pe : Ne;+ })(), o = await u(a), { maxPages: s } = t.options, c = i ? Ie : Fe;return {pages: c(e.pages, o, s),pageParams: c(e.pageParams, r, s)};};if (i && a.length) {- let e = i === "backward", t = e ? et : $e, n = {+ let e = i === "backward", t = e ? nt : tt, n = {pages: a,pageParams: o};@@ -765,7 +765,7 @@ function Qe(e) {} else {let t = e ?? a.length;do {- let e = c === 0 ? o[0] ?? r.initialPageParam : $e(r, s);+ let e = c === 0 ? o[0] ?? r.initialPageParam : tt(r, s);if (c > 0 && e == null) break;s = await d(s, e), c++;} while (c < t);@@ -780,22 +780,22 @@ function Qe(e) {}, n) : l;} };}-function $e(e, { pages: t, pageParams: n }) {+function tt(e, { pages: t, pageParams: n }) {let r = t.length - 1;return t.length > 0 ? e.getNextPageParam(t[r], t, n[r], n) : void 0;}-function et(e, { pages: t, pageParams: n }) {+function nt(e, { pages: t, pageParams: n }) {return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;}-function tt(e, t) {- return t ? $e(e, t) != null : !1;+function rt(e, t) {+ return t ? tt(e, t) != null : !1;}-function nt(e, t) {- return !t || !e.getPreviousPageParam ? !1 : et(e, t) != null;+function it(e, t) {+ return !t || !e.getPreviousPageParam ? !1 : nt(e, t) != null;}//#endregion//#region node_modules/@tanstack/query-core/build/modern/query.js-var rt = class extends Ze {+var at = class extends $e {#e;#t;#n;@@ -805,7 +805,7 @@ var rt = class extends Ze {#o;#s;constructor(e) {- super(), this.#s = !1, this.#o = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#i = e.client, this.#r = this.#i.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#t = ot(this.options), this.state = e.state ?? this.#t, this.scheduleGc();+ super(), this.#s = !1, this.#o = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#i = e.client, this.#r = this.#i.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#t = ct(this.options), this.state = e.state ?? this.#t, this.scheduleGc();}get meta() {return this.options.meta;@@ -821,15 +821,15 @@ var rt = class extends Ze {...this.#o,...e}, e?._type && (this.#e = e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {- let e = ot(this.options);- e.data !== void 0 && (this.setState(at(e.data, e.dataUpdatedAt)), this.#t = e);+ let e = ct(this.options);+ e.data !== void 0 && (this.setState(st(e.data, e.dataUpdatedAt)), this.#t = e);}}optionalRemove() {!this.observers.length && this.state.fetchStatus === "idle" && this.#r.remove(this);}setData(e, t) {- let n = je(this.state.data, e, this.options);+ let n = Ne(this.state.data, e, this.options);return this.#c({data: n,type: "success",@@ -845,7 +845,7 @@ var rt = class extends Ze {}cancel(e) {let t = this.#a?.promise;- return this.#a?.cancel(e), t ? t.then(me).catch(me) : Promise.resolve();+ return this.#a?.cancel(e), t ? t.then(ge).catch(ge) : Promise.resolve();}destroy() {super.destroy(), this.cancel({ silent: !0 });@@ -857,22 +857,22 @@ var rt = class extends Ze {this.destroy(), this.setState(this.resetState);}isActive() {- return this.observers.some((e) => ve(e.options.enabled, this) !== !1);+ return this.observers.some((e) => be(e.options.enabled, this) !== !1);}isDisabled() {- return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === Fe || !this.isFetched();+ return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === Le || !this.isFetched();}isFetched() {return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;}isStatic() {- return this.getObserversCount() > 0 && this.observers.some((e) => ve(e.options.staleTime, this) === "static");+ return this.getObserversCount() > 0 && this.observers.some((e) => be(e.options.staleTime, this) === "static");}isStale() {return this.getObserversCount() > 0 ? this.observers.some((e) => e.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;}isStaleByTime(e = 0) {- return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !_e(this.state.dataUpdatedAt, e);+ return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !ye(this.state.dataUpdatedAt, e);}onFocus() {this.observers.find((e) => e.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#a?.continue();@@ -916,7 +916,7 @@ var rt = class extends Ze {get: () => (this.#s = !0, n.signal)});}, i = () => {- let e = Ie(this.options, t), n = (() => {+ let e = Re(this.options, t), n = (() => {let e = {client: this.#i,queryKey: this.queryKey,@@ -936,15 +936,15 @@ var rt = class extends Ze {};return r(e), e;})();- (this.#e === "infinite" ? Qe(this.options.pages) : this.options.behavior)?.onFetch(a, this), this.#n = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== a.fetchOptions?.meta) && this.#c({+ (this.#e === "infinite" ? et(this.options.pages) : this.options.behavior)?.onFetch(a, this), this.#n = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== a.fetchOptions?.meta) && this.#c({type: "fetch",meta: a.fetchOptions?.meta});- let o = this.#a = Xe({+ let o = this.#a = Qe({initialPromise: t?.initialPromise,fn: a.fetchFn,onCancel: (e) => {- e instanceof Ye && e.revert && this.setState({+ e instanceof Ze && e.revert && this.setState({...this.#n,fetchStatus: "idle"}), n.abort();@@ -972,7 +972,7 @@ var rt = class extends Ze {if (e === void 0) throw Error(`${this.queryHash} data is undefined`);return this.setData(e), this.#r.config.onSuccess?.(e, this), this.#r.config.onSettled?.(e, this.state.error, this), e;} catch (e) {- if (e instanceof Ye) {+ if (e instanceof Ze) {if (e.silent) return this.#a.promise;if (e.revert) {if (this.state.data === void 0) throw e;@@ -1005,13 +1005,13 @@ var rt = class extends Ze {};case "fetch": return {...t,- ...it(t.data, this.options),+ ...ot(t.data, this.options),fetchMeta: e.meta ?? null};case "success":let n = {...t,- ...at(e.data, e.dataUpdatedAt),+ ...st(e.data, e.dataUpdatedAt),dataUpdateCount: t.dataUpdateCount + 1,...!e.manual && {fetchStatus: "idle",@@ -1043,7 +1043,7 @@ var rt = class extends Ze {};}};- this.state = t(this.state), Ge.batch(() => {+ this.state = t(this.state), qe.batch(() => {this.observers.slice().forEach((e) => {e.onQueryUpdate();}), this.#r.notify({@@ -1054,18 +1054,18 @@ var rt = class extends Ze {});}};-function it(e, t) {+function ot(e, t) {return {fetchFailureCount: 0,fetchFailureReason: null,- fetchStatus: Je(t.networkMode) ? "fetching" : "paused",+ fetchStatus: Xe(t.networkMode) ? "fetching" : "paused",...e === void 0 && {error: null,status: "pending"}};}-function at(e, t) {+function st(e, t) {return {data: e,dataUpdatedAt: t ?? Date.now(),@@ -1074,7 +1074,7 @@ function at(e, t) {status: "success"};}-function ot(e) {+function ct(e) {let t = typeof e.initialData == "function" ? e.initialData() : e.initialData, n = t !== void 0, r = n ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;return {data: t,@@ -1093,7 +1093,7 @@ function ot(e) {}//#endregion//#region node_modules/@tanstack/query-core/build/modern/queryObserver.js-var st = class extends Ve {+var lt = class extends Ue {#e;#t = void 0;#n = void 0;@@ -1115,36 +1115,36 @@ var st = class extends Ve {this.refetch = this.refetch.bind(this);}onSubscribe() {- this.listeners.size === 1 && (this.#t.addObserver(this), lt(this.#t, this.options) ? this.#m() : this.updateResult(), this.#y());+ this.listeners.size === 1 && (this.#t.addObserver(this), dt(this.#t, this.options) ? this.#m() : this.updateResult(), this.#y());}onUnsubscribe() {this.hasListeners() || this.destroy();}shouldFetchOnReconnect() {- return ut(this.#t, this.options, this.options.refetchOnReconnect);+ return ft(this.#t, this.options, this.options.refetchOnReconnect);}shouldFetchOnWindowFocus() {- return ut(this.#t, this.options, this.options.refetchOnWindowFocus);+ return ft(this.#t, this.options, this.options.refetchOnWindowFocus);}destroy() {this.listeners = /* @__PURE__ */ new Set(), this.#b(), this.#x(), this.#t.removeObserver(this);}setOptions(e) {let t = this.options, n = this.#t;- if (this.options = this.#e.defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof ve(this.options.enabled, this.#t) != "boolean") throw Error("Expected enabled to be a boolean or a callback that returns a boolean");- this.#S(), this.#t.setOptions(this.options), t._defaulted && !Ee(this.options, t) && this.#e.getQueryCache().notify({+ if (this.options = this.#e.defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof be(this.options.enabled, this.#t) != "boolean") throw Error("Expected enabled to be a boolean or a callback that returns a boolean");+ this.#S(), this.#t.setOptions(this.options), t._defaulted && !Oe(this.options, t) && this.#e.getQueryCache().notify({type: "observerOptionsUpdated",query: this.#t,observer: this});let r = this.hasListeners();- r && dt(this.#t, n, this.options, t) && this.#m(), this.updateResult(), r && (this.#t !== n || ve(this.options.enabled, this.#t) !== ve(t.enabled, this.#t) || ve(this.options.staleTime, this.#t) !== ve(t.staleTime, this.#t)) && this.#g();+ r && pt(this.#t, n, this.options, t) && this.#m(), this.updateResult(), r && (this.#t !== n || be(this.options.enabled, this.#t) !== be(t.enabled, this.#t) || be(this.options.staleTime, this.#t) !== be(t.staleTime, this.#t)) && this.#g();let i = this.#_();- r && (this.#t !== n || ve(this.options.enabled, this.#t) !== ve(t.enabled, this.#t) || i !== this.#f) && this.#v(i);+ r && (this.#t !== n || be(this.options.enabled, this.#t) !== be(t.enabled, this.#t) || i !== this.#f) && this.#v(i);}getOptimisticResult(e) {let t = this.#e.getQueryCache().build(this.#e, e), n = this.createResult(t, e);- return Ee(this.getCurrentResult(), n) || (this.#r = n, this.#a = this.options, this.#i = this.#t.state), n;+ return Oe(this.getCurrentResult(), n) || (this.#r = n, this.#a = this.options, this.#i = this.#t.state), n;}getCurrentResult() {return this.#r;@@ -1183,44 +1183,44 @@ var st = class extends Ve {#m(e) {this.#S();let t = this.#t.fetch(this.options, e);- return e?.throwOnError || (t = t.catch(me)), t;+ return e?.throwOnError || (t = t.catch(ge)), t;}#h(e) {- return !Be() && ve(this.options.enabled, this.#t) !== !1 && ge(e);+ return !He() && be(this.options.enabled, this.#t) !== !1 && ve(e);}#g() {this.#b();- let e = ve(this.options.staleTime, this.#t);+ let e = be(this.options.staleTime, this.#t);if (this.#r.isStale || !this.#h(e)) return;- let t = _e(this.#r.dataUpdatedAt, e) + 1;- this.#u = de.setTimeout(() => {+ let t = ye(this.#r.dataUpdatedAt, e) + 1;+ this.#u = pe.setTimeout(() => {this.#r.isStale || this.updateResult();}, t);}#_() {- return ve(this.options.refetchInterval, this.#t) ?? !1;+ return be(this.options.refetchInterval, this.#t) ?? !1;}#v(e) {- this.#x(), this.#f = e, !(this.#f === 0 || !this.#h(this.#f)) && (this.#d = de.setInterval(() => {- (this.options.refetchIntervalInBackground || He.isFocused()) && this.#m();+ this.#x(), this.#f = e, !(this.#f === 0 || !this.#h(this.#f)) && (this.#d = pe.setInterval(() => {+ (this.options.refetchIntervalInBackground || We.isFocused()) && this.#m();}, this.#f));}#y() {this.#g(), this.#v(this.#_());}#b() {- this.#u !== void 0 && (de.clearTimeout(this.#u), this.#u = void 0);+ this.#u !== void 0 && (pe.clearTimeout(this.#u), this.#u = void 0);}#x() {- this.#d !== void 0 && (de.clearInterval(this.#d), this.#d = void 0);+ this.#d !== void 0 && (pe.clearInterval(this.#d), this.#d = void 0);}createResult(e, t) {let n = this.#t, r = this.options, i = this.#r, a = this.#i, o = this.#a, s = e === n ? this.#n : e.state, { state: c } = e, l = { ...c }, u = !1, d;if (t._optimisticResults) {- let i = this.hasListeners(), a = !i && lt(e, t), o = i && dt(e, n, t, r);+ let i = this.hasListeners(), a = !i && dt(e, t), o = i && pt(e, n, t, r);(a || o) && (l = {...l,- ...it(c.data, e.options)+ ...ot(c.data, e.options)}), t._optimisticResults === "isRestoring" && (l.fetchStatus = "idle");}let { error: f, errorUpdatedAt: p, status: m } = l;@@ -1228,12 +1228,12 @@ var st = class extends Ve {let h = !1;if (t.placeholderData !== void 0 && d === void 0 && m === "pending") {let e;- i?.isPlaceholderData && t.placeholderData === o?.placeholderData ? (e = i.data, h = !0) : e = typeof t.placeholderData == "function" ? t.placeholderData(this.#l?.state.data, this.#l) : t.placeholderData, e !== void 0 && (m = "success", d = je(i?.data, e, t), u = !0);+ i?.isPlaceholderData && t.placeholderData === o?.placeholderData ? (e = i.data, h = !0) : e = typeof t.placeholderData == "function" ? t.placeholderData(this.#l?.state.data, this.#l) : t.placeholderData, e !== void 0 && (m = "success", d = Ne(i?.data, e, t), u = !0);}if (t.select && d !== void 0 && !h) {if (i && d === a?.data && t.select === this.#s) d = this.#c;else try {- this.#s = t.select, d = t.select(d), d = je(i?.data, d, t), this.#c = d, this.#o = null;+ this.#s = t.select, d = t.select(d), d = Ne(i?.data, d, t), this.#c = d, this.#o = null;} catch (e) {this.#o = e;}@@ -1263,14 +1263,14 @@ var st = class extends Ve {isPaused: l.fetchStatus === "paused",isPlaceholderData: u,isRefetchError: v && b,- isStale: ft(e, t),+ isStale: mt(e, t),refetch: this.refetch,- isEnabled: ve(t.enabled, e) !== !1+ isEnabled: be(t.enabled, e) !== !1};}updateResult() {let e = this.#r, t = this.createResult(this.#t, this.options);- if (this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#l = this.#t), Ee(t, e)) return;+ if (this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#l = this.#t), Oe(t, e)) return;this.#r = t;let n = (() => {if (!e) return !0;@@ -1282,7 +1282,7 @@ var st = class extends Ve {return this.#r[n] !== e[n] && r.has(n);});})();- Ge.batch(() => {+ qe.batch(() => {n && this.listeners.forEach((e) => {e(this.#r);}), this.#e.getQueryCache().notify({@@ -1301,28 +1301,28 @@ var st = class extends Ve {this.updateResult(), this.hasListeners() && this.#y();}};-function ct(e, t) {- return ve(t.enabled, e) !== !1 && e.state.data === void 0 && (e.state.status !== "error" || ve(t.retryOnMount, e) !== !1);+function ut(e, t) {+ return be(t.enabled, e) !== !1 && e.state.data === void 0 && (e.state.status !== "error" || be(t.retryOnMount, e) !== !1);}-function lt(e, t) {- return ct(e, t) || e.state.data !== void 0 && ut(e, t, t.refetchOnMount);+function dt(e, t) {+ return ut(e, t) || e.state.data !== void 0 && ft(e, t, t.refetchOnMount);}-function ut(e, t, n) {- if (ve(t.enabled, e) !== !1 && ve(t.staleTime, e) !== "static") {- let r = ve(n, e);- return r === "always" || r !== !1 && ft(e, t);+function ft(e, t, n) {+ if (be(t.enabled, e) !== !1 && be(t.staleTime, e) !== "static") {+ let r = be(n, e);+ return r === "always" || r !== !1 && mt(e, t);}return !1;}-function dt(e, t, n, r) {- return (e !== t || ve(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && ft(e, n);+function pt(e, t, n, r) {+ return (e !== t || be(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && mt(e, n);}-function ft(e, t) {- return ve(t.enabled, e) !== !1 && e.isStaleByTime(ve(t.staleTime, e));+function mt(e, t) {+ return be(t.enabled, e) !== !1 && e.isStaleByTime(be(t.staleTime, e));}//#endregion//#region node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.js-var pt = class extends st {+var ht = class extends lt {constructor(e, t) {super(e, t);}@@ -1353,8 +1353,8 @@ var pt = class extends st {...r,fetchNextPage: this.fetchNextPage,fetchPreviousPage: this.fetchPreviousPage,- hasNextPage: tt(t, n.data),- hasPreviousPage: nt(t, n.data),+ hasNextPage: rt(t, n.data),+ hasPreviousPage: it(t, n.data),isFetchNextPageError: l,isFetchingNextPage: u,isFetchPreviousPageError: d,@@ -1363,13 +1363,13 @@ var pt = class extends st {isRefetching: a && !u && !f};}-}, mt = class extends Ze {+}, gt = class extends $e {#e;#t;#n;#r;constructor(e) {- super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state || ht(), this.setOptions(e.options), this.scheduleGc();+ super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state || _t(), this.setOptions(e.options), this.scheduleGc();}setOptions(e) {this.options = e, this.updateGcTime(this.options.gcTime);@@ -1404,7 +1404,7 @@ var pt = class extends st {client: this.#e,meta: this.options.meta,mutationKey: this.options.mutationKey- }, r = this.#r = Xe({+ }, r = this.#r = Qe({fn: () => this.options.mutationFn ? this.options.mutationFn(e, n) : Promise.reject(/* @__PURE__ */ Error("No mutationFn found")),onFail: (e, t) => {this.#i({@@ -1520,7 +1520,7 @@ var pt = class extends st {};}};- this.state = t(this.state), Ge.batch(() => {+ this.state = t(this.state), qe.batch(() => {this.#t.forEach((t) => {t.onMutationUpdate(e);}), this.#n.notify({@@ -1531,7 +1531,7 @@ var pt = class extends st {});}};-function ht() {+function _t() {return {context: void 0,data: void 0,@@ -1546,7 +1546,7 @@ function ht() {}//#endregion//#region node_modules/@tanstack/query-core/build/modern/mutationCache.js-var gt = class extends Ve {+var vt = class extends Ue {#e;#t;#n;@@ -1554,7 +1554,7 @@ var gt = class extends Ve {super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;}build(e, t, n) {- let r = new mt({+ let r = new gt({client: e,mutationCache: this,mutationId: ++this.#n,@@ -1565,7 +1565,7 @@ var gt = class extends Ve {}add(e) {this.#e.add(e);- let t = _t(e);+ let t = yt(e);if (typeof t == "string") {let n = this.#t.get(t);n ? n.push(e) : this.#t.set(t, [e]);@@ -1577,7 +1577,7 @@ var gt = class extends Ve {}remove(e) {if (this.#e.delete(e)) {- let t = _t(e);+ let t = yt(e);if (typeof t == "string") {let n = this.#t.get(t);if (n) {@@ -1594,7 +1594,7 @@ var gt = class extends Ve {});}canRun(e) {- let t = _t(e);+ let t = yt(e);if (typeof t == "string") {let n = this.#t.get(t)?.find((e) => e.state.status === "pending");return !n || n === e;@@ -1602,11 +1602,11 @@ var gt = class extends Ve {return !0;}runNext(e) {- let t = _t(e);+ let t = yt(e);return typeof t == "string" ? (this.#t.get(t)?.find((t) => t !== e && t.state.isPaused))?.continue() ?? Promise.resolve() : Promise.resolve();}clear() {- Ge.batch(() => {+ qe.batch(() => {this.#e.forEach((e) => {this.notify({type: "removed",@@ -1623,13 +1623,13 @@ var gt = class extends Ve {exact: !0,...e};- return this.getAll().find((e) => be(t, e));+ return this.getAll().find((e) => Se(t, e));}findAll(e = {}) {- return this.getAll().filter((t) => be(e, t));+ return this.getAll().filter((t) => Se(e, t));}notify(e) {- Ge.batch(() => {+ qe.batch(() => {this.listeners.forEach((t) => {t(e);});@@ -1637,15 +1637,15 @@ var gt = class extends Ve {}resumePausedMutations() {let e = this.getAll().filter((e) => e.state.isPaused);- return Ge.batch(() => Promise.all(e.map((e) => e.continue().catch(me))));+ return qe.batch(() => Promise.all(e.map((e) => e.continue().catch(ge))));}};-function _t(e) {+function yt(e) {return e.options.scope?.id;}//#endregion//#region node_modules/@tanstack/query-core/build/modern/mutationObserver.js-var vt = class extends Ve {+var bt = class extends Ue {#e;#t = void 0;#n;@@ -1658,11 +1658,11 @@ var vt = class extends Ve {}setOptions(e) {let t = this.options;- this.options = this.#e.defaultMutationOptions(e), Ee(this.options, t) || this.#e.getMutationCache().notify({+ this.options = this.#e.defaultMutationOptions(e), Oe(this.options, t) || this.#e.getMutationCache().notify({type: "observerOptionsUpdated",mutation: this.#n,observer: this- }), t?.mutationKey && this.options.mutationKey && Se(t.mutationKey) !== Se(this.options.mutationKey) ? this.reset() : this.#n?.state.status === "pending" && this.#n.setOptions(this.options);+ }), t?.mutationKey && this.options.mutationKey && we(t.mutationKey) !== we(this.options.mutationKey) ? this.reset() : this.#n?.state.status === "pending" && this.#n.setOptions(this.options);}onSubscribe() {this.listeners.size === 1 && this.#n && (this.#n.addObserver(this), this.#i());@@ -1683,7 +1683,7 @@ var vt = class extends Ve {return this.#r = t, this.#n?.removeObserver(this), this.#n = this.#e.getMutationCache().build(this.#e, this.options), this.#n.addObserver(this), this.#n.execute(e);}#i() {- let e = this.#n?.state ?? ht();+ let e = this.#n?.state ?? _t();this.#t = {...e,isPending: e.status === "pending",@@ -1695,7 +1695,7 @@ var vt = class extends Ve {};}#a(e) {- Ge.batch(() => {+ qe.batch(() => {if (this.#r && this.hasListeners()) {let t = this.#t.variables, n = this.#t.context, r = {client: this.#e,@@ -1731,14 +1731,14 @@ var vt = class extends Ve {});});}-}, yt = class extends Ve {+}, xt = class extends Ue {#e;constructor(e = {}) {super(), this.config = e, this.#e = /* @__PURE__ */ new Map();}build(e, t, n) {- let r = t.queryKey, i = t.queryHash ?? xe(r, t), a = this.get(i);- return a || (a = new rt({+ let r = t.queryKey, i = t.queryHash ?? Ce(r, t), a = this.get(i);+ return a || (a = new at({client: e,queryKey: r,queryHash: i,@@ -1760,7 +1760,7 @@ var vt = class extends Ve {}));}clear() {- Ge.batch(() => {+ qe.batch(() => {this.getAll().forEach((e) => {this.remove(e);});@@ -1777,34 +1777,34 @@ var vt = class extends Ve {exact: !0,...e};- return this.getAll().find((e) => ye(t, e));+ return this.getAll().find((e) => xe(t, e));}findAll(e = {}) {let t = this.getAll();- return Object.keys(e).length > 0 ? t.filter((t) => ye(e, t)) : t;+ return Object.keys(e).length > 0 ? t.filter((t) => xe(e, t)) : t;}notify(e) {- Ge.batch(() => {+ qe.batch(() => {this.listeners.forEach((t) => {t(e);});});}onFocus() {- Ge.batch(() => {+ qe.batch(() => {this.getAll().forEach((e) => {e.onFocus();});});}onOnline() {- Ge.batch(() => {+ qe.batch(() => {this.getAll().forEach((e) => {e.onOnline();});});}-}, bt = class {+}, St = class {#e;#t;#n;@@ -1814,12 +1814,12 @@ var vt = class extends Ve {#o;#s;constructor(e = {}) {- this.#e = e.queryCache || new yt(), this.#t = e.mutationCache || new gt(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;+ this.#e = e.queryCache || new xt(), this.#t = e.mutationCache || new vt(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;}mount() {- this.#a++, this.#a === 1 && (this.#o = He.subscribe(async (e) => {+ this.#a++, this.#a === 1 && (this.#o = We.subscribe(async (e) => {e && (await this.resumePausedMutations(), this.#e.onFocus());- }), this.#s = Ke.subscribe(async (e) => {+ }), this.#s = Je.subscribe(async (e) => {e && (await this.resumePausedMutations(), this.#e.onOnline());}));}@@ -1844,20 +1844,20 @@ var vt = class extends Ve {}ensureQueryData(e) {let t = this.defaultQueryOptions(e), n = this.#e.build(this, t), r = n.state.data;- return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(ve(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));+ return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(be(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));}getQueriesData(e) {return this.#e.findAll(e).map(({ queryKey: e, state: t }) => [e, t.data]);}setQueryData(e, t, n) {- let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = he(t, i);+ let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = _e(t, i);if (a !== void 0) return this.#e.build(this, r).setData(a, {...n,manual: !0});}setQueriesData(e, t, n) {- return Ge.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));+ return qe.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));}getQueryState(e) {let t = this.defaultQueryOptions({ queryKey: e });@@ -1865,7 +1865,7 @@ var vt = class extends Ve {}removeQueries(e) {let t = this.#e;- Ge.batch(() => {+ qe.batch(() => {t.findAll(e).forEach((e) => {t.remove(e);});@@ -1873,7 +1873,7 @@ var vt = class extends Ve {}resetQueries(e, t) {let n = this.#e;- return Ge.batch(() => {+ return qe.batch(() => {let r = n.findAll(e), i = new Set(r);return r.forEach((e) => {e.reset();@@ -1887,11 +1887,11 @@ var vt = class extends Ve {let n = {revert: !0,...t- }, r = Ge.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));- return Promise.all(r).then(me).catch(me);+ }, r = qe.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));+ return Promise.all(r).then(ge).catch(ge);}invalidateQueries(e, t = {}) {- return Ge.batch(() => (this.#e.findAll(e).forEach((e) => {+ return qe.batch(() => (this.#e.findAll(e).forEach((e) => {e.invalidate();}), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries({...e,@@ -1902,26 +1902,26 @@ var vt = class extends Ve {let n = {...t,cancelRefetch: t.cancelRefetch ?? !0- }, r = Ge.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {+ }, r = qe.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {let t = e.fetch(void 0, n);- return n.throwOnError || (t = t.catch(me)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;+ return n.throwOnError || (t = t.catch(ge)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;}));- return Promise.all(r).then(me);+ return Promise.all(r).then(ge);}async query(e) {let t = this.defaultQueryOptions(e);t.retry === void 0 && (t.retry = !1);- let n = this.#e.build(this, t), r = n.isStaleByTime(ve(t.staleTime, n)) ? await n.fetch(t) : n.state.data, i = t.select;+ let n = this.#e.build(this, t), r = n.isStaleByTime(be(t.staleTime, n)) ? await n.fetch(t) : n.state.data, i = t.select;return i ? i(r) : r;}fetchQuery(e) {let t = this.defaultQueryOptions(e);t.retry === void 0 && (t.retry = !1);let n = this.#e.build(this, t);- return n.isStaleByTime(ve(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);+ return n.isStaleByTime(be(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);}prefetchQuery(e) {- return this.fetchQuery(e).then(me).catch(me);+ return this.fetchQuery(e).then(ge).catch(ge);}infiniteQuery(e) {return e._type = "infinite", this.query(e);@@ -1930,13 +1930,13 @@ var vt = class extends Ve {return e._type = "infinite", this.fetchQuery(e);}prefetchInfiniteQuery(e) {- return this.fetchInfiniteQuery(e).then(me).catch(me);+ return this.fetchInfiniteQuery(e).then(ge).catch(ge);}ensureInfiniteQueryData(e) {return e._type = "infinite", this.ensureQueryData(e);}resumePausedMutations() {- return Ke.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();+ return Je.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();}getQueryCache() {return this.#e;@@ -1951,7 +1951,7 @@ var vt = class extends Ve {this.#n = e;}setQueryDefaults(e, t) {- this.#r.set(Se(e), {+ this.#r.set(we(e), {queryKey: e,defaultOptions: t});@@ -1959,11 +1959,11 @@ var vt = class extends Ve {getQueryDefaults(e) {let t = [...this.#r.values()], n = {};return t.forEach((t) => {- Ce(e, t.queryKey) && Object.assign(n, t.defaultOptions);+ Te(e, t.queryKey) && Object.assign(n, t.defaultOptions);}), n;}setMutationDefaults(e, t) {- this.#i.set(Se(e), {+ this.#i.set(we(e), {mutationKey: e,defaultOptions: t});@@ -1971,7 +1971,7 @@ var vt = class extends Ve {getMutationDefaults(e) {let t = [...this.#i.values()], n = {};return t.forEach((t) => {- Ce(e, t.mutationKey) && Object.assign(n, t.defaultOptions);+ Te(e, t.mutationKey) && Object.assign(n, t.defaultOptions);}), n;}defaultQueryOptions(e) {@@ -1982,7 +1982,7 @@ var vt = class extends Ve {...e,_defaulted: !0};- return t.queryHash ||= xe(t.queryKey, t), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === Fe && (t.enabled = !1), t;+ return t.queryHash ||= Ce(t.queryKey, t), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === Le && (t.enabled = !1), t;}defaultMutationOptions(e) {return e?._defaulted ? e : {@@ -1995,11 +1995,11 @@ var vt = class extends Ve {clear() {this.#e.clear(), this.#t.clear();}-}, xt = I.createContext(!1), St = () => I.useContext(xt);-xt.Provider;+}, Ct = I.createContext(!1), wt = () => I.useContext(Ct);+Ct.Provider;//#endregion//#region node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js-function Ct() {+function Tt() {let e = !1;return {clearReset: () => {@@ -2011,34 +2011,34 @@ function Ct() {isReset: () => e};}-var wt = I.createContext(Ct()), Tt = () => I.useContext(wt), Et = (e, t, n) => {- let r = n?.state.error && typeof e.throwOnError == "function" ? Le(e.throwOnError, [n.state.error, n]) : e.throwOnError;+var Et = I.createContext(Tt()), Dt = () => I.useContext(Et), Ot = (e, t, n) => {+ let r = n?.state.error && typeof e.throwOnError == "function" ? ze(e.throwOnError, [n.state.error, n]) : e.throwOnError;(e.suspense || r) && (t.isReset() || (e.retryOnMount = !1));-}, Dt = (e) => {+}, kt = (e) => {I.useEffect(() => {e.clearReset();}, [e]);-}, Ot = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || Le(n, [e.error, r])), kt = (e) => {+}, At = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || ze(n, [e.error, r])), jt = (e) => {if (e.suspense) {let t = 1e3, n = (e) => e === "static" ? e : Math.max(e ?? t, t), r = e.staleTime;e.staleTime = typeof r == "function" ? (...e) => n(r(...e)) : n(r), typeof e.gcTime == "number" && (e.gcTime = Math.max(e.gcTime, t));}-}, At = (e, t) => e?.suspense && t.isPending, jt = (e, t, n) => t.fetchOptimistic(e).catch(() => {+}, Mt = (e, t) => e?.suspense && t.isPending, Nt = (e, t, n) => t.fetchOptimistic(e).catch(() => {n.clearReset();});//#endregion//#region node_modules/@tanstack/react-query/build/modern/useBaseQuery.js-function Mt(e, t, n) {- let r = St(), i = Tt(), a = ue(n), o = a.defaultQueryOptions(e), s = a.getQueryCache().get(o.queryHash), c = e.subscribed !== !1;- o._optimisticResults = r ? "isRestoring" : c ? "optimistic" : void 0, kt(o), Et(o, i, s), Dt(i);+function Pt(e, t, n) {+ let r = wt(), i = Dt(), a = z(n), o = a.defaultQueryOptions(e), s = a.getQueryCache().get(o.queryHash), c = e.subscribed !== !1;+ o._optimisticResults = r ? "isRestoring" : c ? "optimistic" : void 0, jt(o), Ot(o, i, s), kt(i);let [l] = I.useState(() => new t(a, o)), u = l.getOptimisticResult(o), d = !r && c;if (I.useSyncExternalStore(I.useCallback((e) => {- let t = d ? l.subscribe(Ge.batchCalls(e)) : me;+ let t = d ? l.subscribe(qe.batchCalls(e)) : ge;return l.updateResult(), t;}, [l, d]), () => l.getCurrentResult(), () => l.getCurrentResult()), I.useEffect(() => {l.setOptions(o);- }, [o, l]), At(o, u)) throw jt(o, l, i);- if (Ot({+ }, [o, l]), Mt(o, u)) throw Nt(o, l, i);+ if (At({result: u,errorResetBoundary: i,throwOnError: o.throwOnError,@@ -2049,20 +2049,20 @@ function Mt(e, t, n) {}//#endregion//#region node_modules/@tanstack/react-query/build/modern/useQuery.js-function Nt(e, t) {- return Mt(e, st, t);+function Ft(e, t) {+ return Pt(e, lt, t);}//#endregion//#region node_modules/@tanstack/react-query/build/modern/useMutation.js-function Pt(e, t) {- let n = ue(t), [r] = I.useState(() => new vt(n, e));+function It(e, t) {+ let n = z(t), [r] = I.useState(() => new bt(n, e));I.useEffect(() => {r.setOptions(e);}, [r, e]);- let i = I.useSyncExternalStore(I.useCallback((e) => r.subscribe(Ge.batchCalls(e)), [r]), () => r.getCurrentResult(), () => r.getCurrentResult()), a = I.useCallback((...e) => {- r.mutate(e[0], e[1]).catch(me);+ let i = I.useSyncExternalStore(I.useCallback((e) => r.subscribe(qe.batchCalls(e)), [r]), () => r.getCurrentResult(), () => r.getCurrentResult()), a = I.useCallback((...e) => {+ r.mutate(e[0], e[1]).catch(ge);}, [r]);- if (i.error && Le(r.options.throwOnError, [i.error])) throw i.error;+ if (i.error && ze(r.options.throwOnError, [i.error])) throw i.error;return {...i,mutate: a,@@ -2071,51 +2071,51 @@ function Pt(e, t) {}//#endregion//#region node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.js-function Ft(e, t) {- return Mt(e, pt, t);+function Lt(e, t) {+ return Pt(e, ht, t);}//#endregion//#region node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs-var It = (0, I.createContext)({});+var Rt = (0, I.createContext)({});//#endregion//#region node_modules/framer-motion/dist/es/utils/use-constant.mjs-function Lt(e) {+function zt(e) {let t = (0, I.useRef)(null);return t.current === null && (t.current = e()), t.current;}//#endregion//#region node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs-var Rt = typeof window < "u" ? I.useLayoutEffect : I.useEffect, zt = /* @__PURE__ */ (0, I.createContext)(null);+var Bt = typeof window < "u" ? I.useLayoutEffect : I.useEffect, Vt = /* @__PURE__ */ (0, I.createContext)(null);//#endregion//#region node_modules/motion-utils/dist/es/array.mjs-function Bt(e, t) {+function Ht(e, t) {e.indexOf(t) === -1 && e.push(t);}-function Vt(e, t) {+function Ut(e, t) {let n = e.indexOf(t);n > -1 && e.splice(n, 1);}//#endregion//#region node_modules/motion-utils/dist/es/clamp.mjs-var Ht = (e, t, n) => n > t ? t : n < e ? e : n, Ut = {}, Wt = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), Gt = (e) => typeof e == "object" && !!e, Kt = (e) => /^0[^.\s]+$/u.test(e);+var Wt = (e, t, n) => n > t ? t : n < e ? e : n, Gt = {}, Kt = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), qt = (e) => typeof e == "object" && !!e, Jt = (e) => /^0[^.\s]+$/u.test(e);//#endregion//#region node_modules/motion-utils/dist/es/memo.mjs/*#__NO_SIDE_EFFECTS__*/-function qt(e) {+function Yt(e) {let t;return () => (t === void 0 && (t = e()), t);}//#endregion//#region node_modules/motion-utils/dist/es/noop.mjs-var Jt = /* @__NO_SIDE_EFFECTS__ */ (e) => e, Yt = (...e) => e.reduce((e, t) => (n) => t(e(n))), Xt = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {+var Xt = /* @__NO_SIDE_EFFECTS__ */ (e) => e, Zt = (...e) => e.reduce((e, t) => (n) => t(e(n))), Qt = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {let r = t - e;return r ? (n - e) / r : 1;-}, Zt = class {+}, $t = class {constructor() {this.subscriptions = [];}add(e) {- return Bt(this.subscriptions, e), () => Vt(this.subscriptions, e);+ return Ht(this.subscriptions, e), () => Ut(this.subscriptions, e);}notify(e, t, n) {let r = this.subscriptions.length;@@ -2133,42 +2133,42 @@ var Jt = /* @__NO_SIDE_EFFECTS__ */ (e) => e, Yt = (...e) => e.reduce((e, t) =>clear() {this.subscriptions.length = 0;}-}, Qt = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, $t = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, en = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? 1e3 / t * e : 0, tn = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, nn = 1e-7, rn = 12;-function an(e, t, n, r, i) {+}, en = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, tn = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, nn = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? 1e3 / t * e : 0, rn = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, an = 1e-7, on = 12;+function sn(e, t, n, r, i) {let a, o, s = 0;do- o = t + (n - t) / 2, a = tn(o, r, i) - e, a > 0 ? n = o : t = o;- while (Math.abs(a) > nn && ++s < rn);+ o = t + (n - t) / 2, a = rn(o, r, i) - e, a > 0 ? n = o : t = o;+ while (Math.abs(a) > an && ++s < on);return o;}/*#__NO_SIDE_EFFECTS__*/-function on(e, t, n, r) {- if (e === t && n === r) return Jt;- let i = (t) => an(t, 0, 1, e, n);- return (e) => e === 0 || e === 1 ? e : tn(i(e), t, r);+function cn(e, t, n, r) {+ if (e === t && n === r) return Xt;+ let i = (t) => sn(t, 0, 1, e, n);+ return (e) => e === 0 || e === 1 ? e : rn(i(e), t, r);}//#endregion//#region node_modules/motion-utils/dist/es/easing/modifiers/mirror.mjs-var sn = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, cn = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => 1 - e(1 - t), ln = /*@__PURE__*/ on(.33, 1.53, .69, .99), un = /*@__PURE__*/ cn(ln), dn = /*@__PURE__*/ sn(un), fn = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * un(e) : .5 * (2 - 2 ** (-10 * (e - 1))), pn = (e) => 1 - Math.sin(Math.acos(e)), mn = /* @__PURE__ */ cn(pn), hn = /* @__PURE__ */ sn(pn), gn = /*@__PURE__*/ on(.42, 0, 1, 1), _n = /*@__PURE__*/ on(0, 0, .58, 1), vn = /*@__PURE__*/ on(.42, 0, .58, 1), yn = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] != "number", bn = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", xn = {- linear: Jt,- easeIn: gn,- easeInOut: vn,- easeOut: _n,- circIn: pn,- circInOut: hn,- circOut: mn,- backIn: un,- backInOut: dn,- backOut: ln,- anticipate: fn-}, Sn = (e) => typeof e == "string", Cn = (e) => {- if (/* @__PURE__ */ bn(e)) {+var ln = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, un = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => 1 - e(1 - t), dn = /*@__PURE__*/ cn(.33, 1.53, .69, .99), fn = /*@__PURE__*/ un(dn), pn = /*@__PURE__*/ ln(fn), mn = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * fn(e) : .5 * (2 - 2 ** (-10 * (e - 1))), hn = (e) => 1 - Math.sin(Math.acos(e)), gn = /* @__PURE__ */ un(hn), _n = /* @__PURE__ */ ln(hn), vn = /*@__PURE__*/ cn(.42, 0, 1, 1), yn = /*@__PURE__*/ cn(0, 0, .58, 1), bn = /*@__PURE__*/ cn(.42, 0, .58, 1), xn = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] != "number", Sn = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", Cn = {+ linear: Xt,+ easeIn: vn,+ easeInOut: bn,+ easeOut: yn,+ circIn: hn,+ circInOut: _n,+ circOut: gn,+ backIn: fn,+ backInOut: pn,+ backOut: dn,+ anticipate: mn+}, wn = (e) => typeof e == "string", Tn = (e) => {+ if (/* @__PURE__ */ Sn(e)) {e.length;let [t, n, r, i] = e;- return /* @__PURE__ */ on(t, n, r, i);+ return /* @__PURE__ */ cn(t, n, r, i);}- return Sn(e) ? (xn[e], `${e}`, xn[e]) : e;-}, wn = [+ return wn(e) ? (Cn[e], `${e}`, Cn[e]) : e;+}, En = ["setup","read","resolveKeyframes",@@ -2180,7 +2180,7 @@ var sn = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 -];//#endregion//#region node_modules/motion-dom/dist/es/frameloop/render-step.mjs-function Tn(e) {+function Dn(e) {let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = !1, i = !1, a = /* @__PURE__ */ new WeakSet(), o = {delta: 0,timestamp: 0,@@ -2211,25 +2211,25 @@ function Tn(e) {}//#endregion//#region node_modules/motion-dom/dist/es/frameloop/batcher.mjs-var En = 40;-function Dn(e, t) {+var On = 40;+function kn(e, t) {let n = !1, r = !0, i = {delta: 0,timestamp: 0,isProcessing: !1- }, a = () => n = !0, o = wn.reduce((e, t) => (e[t] = Tn(a), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {- let a = Ut.useManualTiming, o = a ? i.timestamp : performance.now();- n = !1, a || (i.delta = r ? 1e3 / 60 : Math.max(Math.min(o - i.timestamp, En), 1)), i.timestamp = o, i.isProcessing = !0, s.process(i), c.process(i), l.process(i), u.process(i), d.process(i), f.process(i), p.process(i), m.process(i), i.isProcessing = !1, n && t && (r = !1, e(h));+ }, a = () => n = !0, o = En.reduce((e, t) => (e[t] = Dn(a), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {+ let a = Gt.useManualTiming, o = a ? i.timestamp : performance.now();+ n = !1, a || (i.delta = r ? 1e3 / 60 : Math.max(Math.min(o - i.timestamp, On), 1)), i.timestamp = o, i.isProcessing = !0, s.process(i), c.process(i), l.process(i), u.process(i), d.process(i), f.process(i), p.process(i), m.process(i), i.isProcessing = !1, n && t && (r = !1, e(h));}, g = () => {n = !0, r = !0, i.isProcessing || e(h);};return {- schedule: wn.reduce((e, t) => {+ schedule: En.reduce((e, t) => {let r = o[t];return e[t] = (e, t = !1, i = !1) => (n || g(), r.schedule(e, t, i)), e;}, {}),cancel: (e) => {- for (let t = 0; t < wn.length; t++) o[wn[t]].cancel(e);+ for (let t = 0; t < En.length; t++) o[En[t]].cancel(e);},state: i,steps: o@@ -2237,59 +2237,59 @@ function Dn(e, t) {}//#endregion//#region node_modules/motion-dom/dist/es/frameloop/frame.mjs-var { schedule: On, cancel: kn, state: An, steps: jn } = /* @__PURE__ */ Dn(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Jt, !0), Mn;-function Nn() {- Mn = void 0;+var { schedule: An, cancel: jn, state: Mn, steps: Nn } = /* @__PURE__ */ kn(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Xt, !0), Pn;+function Fn() {+ Pn = void 0;}-var Pn = {- now: () => (Mn === void 0 && Pn.set(An.isProcessing || Ut.useManualTiming ? An.timestamp : performance.now()), Mn),+var In = {+ now: () => (Pn === void 0 && In.set(Mn.isProcessing || Gt.useManualTiming ? Mn.timestamp : performance.now()), Pn),set: (e) => {- Mn = e, queueMicrotask(Nn);+ Pn = e, queueMicrotask(Fn);}-}, Fn = (e) => (t) => typeof t == "string" && t.startsWith(e), In = /*@__PURE__*/ Fn("--"), Ln = /*@__PURE__*/ Fn("var(--"), Rn = (e) => Ln(e) ? zn.test(e.split("/*")[0].trim()) : !1, zn = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;-function Bn(e) {+}, Ln = (e) => (t) => typeof t == "string" && t.startsWith(e), Rn = /*@__PURE__*/ Ln("--"), zn = /*@__PURE__*/ Ln("var(--"), Bn = (e) => zn(e) ? Vn.test(e.split("/*")[0].trim()) : !1, Vn = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;+function Hn(e) {return typeof e == "string" && e.split("/*")[0].includes("var(--");}//#endregion//#region node_modules/motion-dom/dist/es/value/types/numbers/index.mjs-var Vn = {+var Un = {test: (e) => typeof e == "number",parse: parseFloat,transform: (e) => e-}, Hn = {- ...Vn,- transform: (e) => Ht(0, 1, e)-}, Un = {- ...Vn,+}, Wn = {+ ...Un,+ transform: (e) => Wt(0, 1, e)+}, Gn = {+ ...Un,default: 1-}, Wn = (e) => Math.round(e * 1e5) / 1e5, Gn = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;+}, Kn = (e) => Math.round(e * 1e5) / 1e5, qn = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;//#endregion//#region node_modules/motion-dom/dist/es/value/types/utils/is-nullish.mjs-function Kn(e) {+function Jn(e) {return e == null;}//#endregion//#region node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.mjs-var qn = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, Jn = (e, t) => (n) => !!(typeof n == "string" && qn.test(n) && n.startsWith(e) || t && !Kn(n) && Object.prototype.hasOwnProperty.call(n, t)), Yn = (e, t, n) => (r) => {+var Yn = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, Xn = (e, t) => (n) => !!(typeof n == "string" && Yn.test(n) && n.startsWith(e) || t && !Jn(n) && Object.prototype.hasOwnProperty.call(n, t)), Zn = (e, t, n) => (r) => {if (typeof r != "string") return r;- let [i, a, o, s] = r.match(Gn);+ let [i, a, o, s] = r.match(qn);return {[e]: parseFloat(i),[t]: parseFloat(a),[n]: parseFloat(o),alpha: s === void 0 ? 1 : parseFloat(s)};-}, Xn = (e) => Ht(0, 255, e), Zn = {- ...Vn,- transform: (e) => Math.round(Xn(e))-}, Qn = {- test: /*@__PURE__*/ Jn("rgb", "red"),- parse: /*@__PURE__*/ Yn("red", "green", "blue"),- transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + Zn.transform(e) + ", " + Zn.transform(t) + ", " + Zn.transform(n) + ", " + Wn(Hn.transform(r)) + ")"+}, Qn = (e) => Wt(0, 255, e), $n = {+ ...Un,+ transform: (e) => Math.round(Qn(e))+}, er = {+ test: /*@__PURE__*/ Xn("rgb", "red"),+ parse: /*@__PURE__*/ Zn("red", "green", "blue"),+ transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + $n.transform(e) + ", " + $n.transform(t) + ", " + $n.transform(n) + ", " + Kn(Wn.transform(r)) + ")"};//#endregion//#region node_modules/motion-dom/dist/es/value/types/color/hex.mjs-function $n(e) {+function tr(e) {let t = "", n = "", r = "", i = "";return e.length > 5 ? (t = e.substring(1, 3), n = e.substring(3, 5), r = e.substring(5, 7), i = e.substring(7, 9)) : (t = e.substring(1, 2), n = e.substring(2, 3), r = e.substring(3, 4), i = e.substring(4, 5), t += t, n += n, r += r, i += i), {red: parseInt(t, 16),@@ -2298,38 +2298,38 @@ function $n(e) {alpha: i ? parseInt(i, 16) / 255 : 1};}-var er = {- test: /*@__PURE__*/ Jn("#"),- parse: $n,- transform: Qn.transform-}, tr = /* @__NO_SIDE_EFFECTS__ */ (e) => ({+var nr = {+ test: /*@__PURE__*/ Xn("#"),+ parse: tr,+ transform: er.transform+}, rr = /* @__NO_SIDE_EFFECTS__ */ (e) => ({test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,parse: parseFloat,transform: (t) => `${t}${e}`-}), nr = /*@__PURE__*/ tr("deg"), rr = /*@__PURE__*/ tr("%"), B = /*@__PURE__*/ tr("px"), ir = /*@__PURE__*/ tr("vh"), ar = /*@__PURE__*/ tr("vw"), or = {- ...rr,- parse: (e) => rr.parse(e) / 100,- transform: (e) => rr.transform(e * 100)-}, sr = {- test: /*@__PURE__*/ Jn("hsl", "hue"),- parse: /*@__PURE__*/ Yn("hue", "saturation", "lightness"),- transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + rr.transform(Wn(t)) + ", " + rr.transform(Wn(n)) + ", " + Wn(Hn.transform(r)) + ")"-}, cr = {- test: (e) => Qn.test(e) || er.test(e) || sr.test(e),- parse: (e) => Qn.test(e) ? Qn.parse(e) : sr.test(e) ? sr.parse(e) : er.parse(e),- transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? Qn.transform(e) : sr.transform(e),+}), ir = /*@__PURE__*/ rr("deg"), ar = /*@__PURE__*/ rr("%"), B = /*@__PURE__*/ rr("px"), or = /*@__PURE__*/ rr("vh"), sr = /*@__PURE__*/ rr("vw"), cr = {+ ...ar,+ parse: (e) => ar.parse(e) / 100,+ transform: (e) => ar.transform(e * 100)+}, lr = {+ test: /*@__PURE__*/ Xn("hsl", "hue"),+ parse: /*@__PURE__*/ Zn("hue", "saturation", "lightness"),+ transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + ar.transform(Kn(t)) + ", " + ar.transform(Kn(n)) + ", " + Kn(Wn.transform(r)) + ")"+}, ur = {+ test: (e) => er.test(e) || nr.test(e) || lr.test(e),+ parse: (e) => er.test(e) ? er.parse(e) : lr.test(e) ? lr.parse(e) : nr.parse(e),+ transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? er.transform(e) : lr.transform(e),getAnimatableNone: (e) => {- let t = cr.parse(e);- return t.alpha = 0, cr.transform(t);+ let t = ur.parse(e);+ return t.alpha = 0, ur.transform(t);}-}, lr = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;+}, dr = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;//#endregion//#region node_modules/motion-dom/dist/es/value/types/complex/index.mjs-function ur(e) {- return isNaN(e) && typeof e == "string" && (e.match(Gn)?.length || 0) + (e.match(lr)?.length || 0) > 0;+function fr(e) {+ return isNaN(e) && typeof e == "string" && (e.match(qn)?.length || 0) + (e.match(dr)?.length || 0) > 0;}-var dr = "number", fr = "color", pr = "var", mr = "var(", hr = "${}", gr = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;-function _r(e) {+var pr = "number", mr = "color", hr = "var", gr = "var(", _r = "${}", vr = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;+function yr(e) {let t = e.toString(), n = [], r = {color: [],number: [],@@ -2337,51 +2337,51 @@ function _r(e) {}, i = [], a = 0;return {values: n,- split: t.replace(gr, (e) => (cr.test(e) ? (r.color.push(a), i.push(fr), n.push(cr.parse(e))) : e.startsWith(mr) ? (r.var.push(a), i.push(pr), n.push(e)) : (r.number.push(a), i.push(dr), n.push(parseFloat(e))), ++a, hr)).split(hr),+ split: t.replace(vr, (e) => (ur.test(e) ? (r.color.push(a), i.push(mr), n.push(ur.parse(e))) : e.startsWith(gr) ? (r.var.push(a), i.push(hr), n.push(e)) : (r.number.push(a), i.push(pr), n.push(parseFloat(e))), ++a, _r)).split(_r),indexes: r,types: i};}-function vr(e) {- return _r(e).values;+function br(e) {+ return yr(e).values;}-function yr({ split: e, types: t }) {+function xr({ split: e, types: t }) {let n = e.length;return (r) => {let i = "";for (let a = 0; a < n; a++) if (i += e[a], r[a] !== void 0) {let e = t[a];- i += e === dr ? Wn(r[a]) : e === fr ? cr.transform(r[a]) : r[a];+ i += e === pr ? Kn(r[a]) : e === mr ? ur.transform(r[a]) : r[a];}return i;};}-function br(e) {- return yr(_r(e));-}-var xr = (e) => typeof e == "number" ? 0 : cr.test(e) ? cr.getAnimatableNone(e) : e, Sr = (e, t) => typeof e == "number" ? t?.trim().endsWith("/") ? e : 0 : xr(e);-function Cr(e) {- let t = _r(e);- return yr(t)(t.values.map((e, n) => Sr(e, t.split[n])));-}-var wr = {- test: ur,- parse: vr,- createTransformer: br,- getAnimatableNone: Cr+function Sr(e) {+ return xr(yr(e));+}+var Cr = (e) => typeof e == "number" ? 0 : ur.test(e) ? ur.getAnimatableNone(e) : e, wr = (e, t) => typeof e == "number" ? t?.trim().endsWith("/") ? e : 0 : Cr(e);+function Tr(e) {+ let t = yr(e);+ return xr(t)(t.values.map((e, n) => wr(e, t.split[n])));+}+var Er = {+ test: fr,+ parse: br,+ createTransformer: Sr,+ getAnimatableNone: Tr};//#endregion//#region node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs-function Tr(e, t, n) {+function Dr(e, t, n) {return n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;}-function Er({ hue: e, saturation: t, lightness: n, alpha: r }) {+function Or({ hue: e, saturation: t, lightness: n, alpha: r }) {e /= 360, t /= 100, n /= 100;let i = 0, a = 0, o = 0;if (!t) i = a = o = n;else {let r = n < .5 ? n * (1 + t) : n + t - n * t, s = 2 * n - r;- i = Tr(s, r, e + 1 / 3), a = Tr(s, r, e), o = Tr(s, r, e - 1 / 3);+ i = Dr(s, r, e + 1 / 3), a = Dr(s, r, e), o = Dr(s, r, e - 1 / 3);}return {red: Math.round(i * 255),@@ -2392,61 +2392,61 @@ function Er({ hue: e, saturation: t, lightness: n, alpha: r }) {}//#endregion//#region node_modules/motion-dom/dist/es/utils/mix/immediate.mjs-function Dr(e, t) {+function kr(e, t) {return (n) => n > 0 ? t : e;}//#endregion//#region node_modules/motion-dom/dist/es/utils/mix/number.mjs-var Or = (e, t, n) => e + (t - e) * n, kr = (e, t, n) => {+var Ar = (e, t, n) => e + (t - e) * n, jr = (e, t, n) => {let r = e * e, i = n * (t * t - r) + r;return i < 0 ? 0 : Math.sqrt(i);-}, Ar = [+}, Mr = [+ nr,er,- Qn,- sr-], jr = (e) => Ar.find((t) => t.test(e));-function Mr(e) {- let t = jr(e);+ lr+], Nr = (e) => Mr.find((t) => t.test(e));+function Pr(e) {+ let t = Nr(e);if (`${e}`, !t) return !1;let n = t.parse(e);- return t === sr && (n = Er(n)), n;+ return t === lr && (n = Or(n)), n;}-var Nr = (e, t) => {- let n = Mr(e), r = Mr(t);- if (!n || !r) return Dr(e, t);+var Fr = (e, t) => {+ let n = Pr(e), r = Pr(t);+ if (!n || !r) return kr(e, t);let i = { ...n };- return (e) => (i.red = kr(n.red, r.red, e), i.green = kr(n.green, r.green, e), i.blue = kr(n.blue, r.blue, e), i.alpha = Or(n.alpha, r.alpha, e), Qn.transform(i));-}, Pr = /* @__PURE__ */ new Set(["none", "hidden"]);-function Fr(e, t) {- return Pr.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;+ return (e) => (i.red = jr(n.red, r.red, e), i.green = jr(n.green, r.green, e), i.blue = jr(n.blue, r.blue, e), i.alpha = Ar(n.alpha, r.alpha, e), er.transform(i));+}, Ir = /* @__PURE__ */ new Set(["none", "hidden"]);+function Lr(e, t) {+ return Ir.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;}//#endregion//#region node_modules/motion-dom/dist/es/utils/mix/complex.mjs-function Ir(e, t) {- return (n) => Or(e, t, n);+function Rr(e, t) {+ return (n) => Ar(e, t, n);}-function Lr(e) {- return typeof e == "number" ? Ir : typeof e == "string" ? Rn(e) ? Dr : cr.test(e) ? Nr : Vr : Array.isArray(e) ? Rr : typeof e == "object" ? cr.test(e) ? Nr : zr : Dr;+function zr(e) {+ return typeof e == "number" ? Rr : typeof e == "string" ? Bn(e) ? kr : ur.test(e) ? Fr : Ur : Array.isArray(e) ? Br : typeof e == "object" ? ur.test(e) ? Fr : Vr : kr;}-function Rr(e, t) {- let n = [...e], r = n.length, i = e.map((e, n) => Lr(e)(e, t[n]));+function Br(e, t) {+ let n = [...e], r = n.length, i = e.map((e, n) => zr(e)(e, t[n]));return (e) => {for (let t = 0; t < r; t++) n[t] = i[t](e);return n;};}-function zr(e, t) {+function Vr(e, t) {let n = {...e,...t}, r = {};- for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] = Lr(e[i])(e[i], t[i]));+ for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] = zr(e[i])(e[i], t[i]));return (e) => {for (let t in r) n[t] = r[t](e);return n;};}-function Br(e, t) {+function Hr(e, t) {let n = [], r = {color: 0,var: 0,@@ -2458,50 +2458,50 @@ function Br(e, t) {}return n;}-var Vr = (e, t) => {- let n = wr.createTransformer(t), r = _r(e), i = _r(t);- return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? Pr.has(e) && !i.values.length || Pr.has(t) && !r.values.length ? Fr(e, t) : Yt(Rr(Br(r, i), i.values), n) : (`${e}${t}`, Dr(e, t));+var Ur = (e, t) => {+ let n = Er.createTransformer(t), r = yr(e), i = yr(t);+ return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? Ir.has(e) && !i.values.length || Ir.has(t) && !r.values.length ? Lr(e, t) : Zt(Br(Hr(r, i), i.values), n) : (`${e}${t}`, kr(e, t));};//#endregion//#region node_modules/motion-dom/dist/es/utils/mix/index.mjs-function Hr(e, t, n) {- return typeof e == "number" && typeof t == "number" && typeof n == "number" ? Or(e, t, n) : Lr(e)(e, t);+function Wr(e, t, n) {+ return typeof e == "number" && typeof t == "number" && typeof n == "number" ? Ar(e, t, n) : zr(e)(e, t);}//#endregion//#region node_modules/motion-dom/dist/es/animation/drivers/frame.mjs-var Ur = (e) => {+var Gr = (e) => {let t = ({ timestamp: t }) => e(t);return {- start: (e = !0) => On.update(t, e),- stop: () => kn(t),- now: () => An.isProcessing ? An.timestamp : Pn.now()+ start: (e = !0) => An.update(t, e),+ stop: () => jn(t),+ now: () => Mn.isProcessing ? Mn.timestamp : In.now()};-}, Wr = (e, t, n = 10) => {+}, Kr = (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)})`;-}, Gr = 2e4;-function Kr(e) {+}, qr = 2e4;+function Jr(e) {let t = 0, n = e.next(t);for (; !n.done && t < 2e4;) t += 50, n = e.next(t);return t >= 2e4 ? Infinity : t;}//#endregion//#region node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs-function qr(e, t = 100, n) {+function Yr(e, t = 100, n) {let r = n({...e,keyframes: [0, t]- }), i = Math.min(Kr(r), Gr);+ }), i = Math.min(Jr(r), qr);return {type: "keyframes",ease: (e) => r.next(i * e).value / t,- duration: /* @__PURE__ */ $t(i)+ duration: /* @__PURE__ */ tn(i)};}//#endregion//#region node_modules/motion-dom/dist/es/animation/generators/spring.mjs-var Jr = {+var Xr = {stiffness: 100,damping: 10,mass: 1,@@ -2522,31 +2522,31 @@ var Jr = {minDamping: .05,maxDamping: 1};-function Yr(e, t) {+function Zr(e, t) {return e * Math.sqrt(1 - t * t);}-var Xr = 12;-function Zr(e, t, n) {+var Qr = 12;+function $r(e, t, n) {let r = n;- for (let n = 1; n < Xr; n++) r -= e(r) / t(r);+ for (let n = 1; n < Qr; n++) r -= e(r) / t(r);return r;}-var Qr = .001;-function $r({ duration: e = Jr.duration, bounce: t = Jr.bounce, velocity: n = Jr.velocity, mass: r = Jr.mass }) {+var ei = .001;+function ti({ duration: e = Xr.duration, bounce: t = Xr.bounce, velocity: n = Xr.velocity, mass: r = Xr.mass }) {let i, a;- Jr.maxDuration;+ Xr.maxDuration;let o = 1 - t;- o = Ht(Jr.minDamping, Jr.maxDamping, o), e = Ht(Jr.minDuration, Jr.maxDuration, /* @__PURE__ */ $t(e)), o < 1 ? (i = (t) => {- let r = t * o, i = r * e, a = r - n, s = Yr(t, o), c = Math.exp(-i);- return Qr - a / s * c;+ o = Wt(Xr.minDamping, Xr.maxDamping, o), e = Wt(Xr.minDuration, Xr.maxDuration, /* @__PURE__ */ tn(e)), o < 1 ? (i = (t) => {+ let r = t * o, i = r * e, a = r - n, s = Zr(t, o), c = Math.exp(-i);+ return ei - a / s * c;}, a = (t) => {- let r = t * o * e, a = r * n + n, s = o ** 2 * t ** 2 * e, c = Math.exp(-r), l = Yr(t ** 2, o);- return (-i(t) + Qr > 0 ? -1 : 1) * ((a - s) * c) / l;+ let r = t * o * e, a = r * n + n, s = o ** 2 * t ** 2 * e, c = Math.exp(-r), l = Zr(t ** 2, o);+ return (-i(t) + ei > 0 ? -1 : 1) * ((a - s) * c) / l;}) : (i = (t) => -.001 + Math.exp(-t * e) * ((t - n) * e + 1), a = (t) => Math.exp(-t * e) * ((n - t) * (e * e)));- let s = 5 / e, c = Zr(i, a, s);- if (e = /* @__PURE__ */ Qt(e), isNaN(c)) return {- stiffness: Jr.stiffness,- damping: Jr.damping,+ let s = 5 / e, c = $r(i, a, s);+ if (e = /* @__PURE__ */ en(e), isNaN(c)) return {+ stiffness: Xr.stiffness,+ damping: Xr.damping,duration: e};{@@ -2558,47 +2558,47 @@ function $r({ duration: e = Jr.duration, bounce: t = Jr.bounce, velocity: n = Jr};}}-var ei = ["duration", "bounce"], ti = [+var ni = ["duration", "bounce"], ri = ["stiffness","damping","mass"];-function ni(e, t) {+function ii(e, t) {return t.some((t) => e[t] !== void 0);}-function ri(e) {+function ai(e) {let t = {- velocity: Jr.velocity,- stiffness: Jr.stiffness,- damping: Jr.damping,- mass: Jr.mass,+ velocity: Xr.velocity,+ stiffness: Xr.stiffness,+ damping: Xr.damping,+ mass: Xr.mass,isResolvedFromDuration: !1,...e};- if (!ni(e, ti) && ni(e, ei)) {+ if (!ii(e, ri) && ii(e, ni)) {if (t.velocity = 0, e.visualDuration) {- let n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, a = 2 * Ht(.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);+ let n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, a = 2 * Wt(.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);t = {...t,- mass: Jr.mass,+ mass: Xr.mass,stiffness: i,damping: a};} else {- let n = $r({+ let n = ti({...e,velocity: 0});t = {...t,...n,- mass: Jr.mass+ mass: Xr.mass}, t.isResolvedFromDuration = !0;}}return t;}-function ii(e = Jr.visualDuration, t = Jr.bounce) {+function oi(e = Xr.visualDuration, t = Xr.bounce) {let n = typeof e == "object" ? e : {visualDuration: e,keyframes: [0, 1],@@ -2606,13 +2606,13 @@ function ii(e = Jr.visualDuration, t = Jr.bounce) {}, { restSpeed: r, restDelta: i } = n, a = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], s = {done: !1,value: a- }, { stiffness: c, damping: l, mass: u, duration: d, velocity: f, isResolvedFromDuration: p } = ri({+ }, { stiffness: c, damping: l, mass: u, duration: d, velocity: f, isResolvedFromDuration: p } = ai({...n,- velocity: -/* @__PURE__ */ $t(n.velocity || 0)- }), m = f || 0, h = l / (2 * Math.sqrt(c * u)), g = o - a, _ = /* @__PURE__ */ $t(Math.sqrt(c / u)), v = Math.abs(g) < 5;- r ||= v ? Jr.restSpeed.granular : Jr.restSpeed.default, i ||= v ? Jr.restDelta.granular : Jr.restDelta.default;+ velocity: -/* @__PURE__ */ tn(n.velocity || 0)+ }), m = f || 0, h = l / (2 * Math.sqrt(c * u)), g = o - a, _ = /* @__PURE__ */ tn(Math.sqrt(c / u)), v = Math.abs(g) < 5;+ r ||= v ? Xr.restSpeed.granular : Xr.restSpeed.default, i ||= v ? Xr.restDelta.granular : Xr.restDelta.default;let y, b, x, S, C, w;- if (h < 1) x = Yr(_, h), S = (m + h * _ * g) / x, y = (e) => {+ if (h < 1) x = Zr(_, h), S = (m + h * _ * g) / x, y = (e) => {let t = Math.exp(-h * _ * e);return o - t * (S * Math.sin(x * e) + g * Math.cos(x * e));}, C = h * _ * S + g * x, w = h * _ * g - S * x, b = (e) => Math.exp(-h * _ * e) * (C * Math.sin(x * e) + w * Math.cos(x * e));@@ -2634,42 +2634,42 @@ function ii(e = Jr.visualDuration, t = Jr.bounce) {}let T = {calculatedDuration: p && d || null,- velocity: (e) => /* @__PURE__ */ Qt(b(e)),+ velocity: (e) => /* @__PURE__ */ en(b(e)),next: (e) => {if (!p && h < 1) {- let t = Math.exp(-h * _ * e), n = Math.sin(x * e), a = Math.cos(x * e), c = o - t * (S * n + g * a), l = /* @__PURE__ */ Qt(t * (C * n + w * a));+ let t = Math.exp(-h * _ * e), n = Math.sin(x * e), a = Math.cos(x * e), c = o - t * (S * n + g * a), l = /* @__PURE__ */ en(t * (C * n + w * a));return s.done = Math.abs(l) <= r && Math.abs(o - c) <= i, s.value = s.done ? o : c, s;}let t = y(e);if (p) s.done = e >= d;else {- let n = /* @__PURE__ */ Qt(b(e));+ let n = /* @__PURE__ */ en(b(e));s.done = Math.abs(n) <= r && Math.abs(o - t) <= i;}return s.value = s.done ? o : t, s;},toString: () => {- let e = Math.min(Kr(T), Gr), t = Wr((t) => T.next(e * t).value, e, 30);+ let e = Math.min(Jr(T), qr), t = Kr((t) => T.next(e * t).value, e, 30);return e + "ms " + t;},toTransition: () => {}};return T;}-ii.applyToOptions = (e) => {- let t = qr(e, 100, ii);- return e.ease = t.ease, e.duration = /* @__PURE__ */ Qt(t.duration), e.type = "keyframes", e;+oi.applyToOptions = (e) => {+ let t = Yr(e, 100, oi);+ return e.ease = t.ease, e.duration = /* @__PURE__ */ en(t.duration), e.type = "keyframes", e;};//#endregion//#region node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs-var ai = 5;-function oi(e, t, n) {- let r = Math.max(t - ai, 0);- return /* @__PURE__ */ en(n - e(r), t - r);+var si = 5;+function ci(e, t, n) {+ let r = Math.max(t - si, 0);+ return /* @__PURE__ */ nn(n - e(r), t - r);}//#endregion//#region node_modules/motion-dom/dist/es/animation/generators/inertia.mjs-function si({ 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 li({ 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@@ -2679,9 +2679,9 @@ function si({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32let t = v(e), n = y(e);f.done = Math.abs(t) <= l, f.value = f.done ? _ : n;}, x, S, C = (e) => {- p(f.value) && (x = e, S = ii({+ p(f.value) && (x = e, S = oi({keyframes: [f.value, m(f.value)],- velocity: oi(y, e, f.value),+ velocity: ci(y, e, f.value),damping: i,stiffness: a,restDelta: l,@@ -2698,59 +2698,59 @@ function si({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32}//#endregion//#region node_modules/motion-dom/dist/es/utils/interpolate.mjs-function ci(e, t, n) {- let r = [], i = n || Ut.mix || Hr, a = e.length - 1;+function ui(e, t, n) {+ let r = [], i = n || Gt.mix || Wr, a = e.length - 1;for (let n = 0; n < a; n++) {let a = i(e[n], e[n + 1]);- t && (a = Yt(Array.isArray(t) ? t[n] || Jt : t, a)), r.push(a);+ t && (a = Zt(Array.isArray(t) ? t[n] || Xt : t, a)), r.push(a);}return r;}-function li(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {+function di(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {let a = e.length;if (t.length, 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 = ci(t, r, i), c = s.length, l = (n) => {+ let s = ui(t, r, i), c = s.length, l = (n) => {if (o && n < e[0]) return t[0];let r = 0;if (c > 1) for (; r < e.length - 2 && !(n < e[r + 1]); r++);- let i = /* @__PURE__ */ Xt(e[r], e[r + 1], n);+ let i = /* @__PURE__ */ Qt(e[r], e[r + 1], n);return s[r](i);};- return n ? (t) => l(Ht(e[0], e[a - 1], t)) : l;+ return n ? (t) => l(Wt(e[0], e[a - 1], t)) : l;}//#endregion//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs-function ui(e, t) {+function fi(e, t) {let n = e[e.length - 1];for (let r = 1; r <= t; r++) {- let i = /* @__PURE__ */ Xt(0, t, r);- e.push(Or(n, 1, i));+ let i = /* @__PURE__ */ Qt(0, t, r);+ e.push(Ar(n, 1, i));}}//#endregion//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs-function di(e) {+function pi(e) {let t = [0];- return ui(t, e.length - 1), t;+ return fi(t, e.length - 1), t;}//#endregion//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs-function fi(e, t) {+function mi(e, t) {return e.map((e) => e * t);}//#endregion//#region node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs-function pi(e, t) {- return e.map(() => t || vn).splice(0, e.length - 1);+function hi(e, t) {+ return e.map(() => t || bn).splice(0, e.length - 1);}-function mi({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {- let i = /* @__PURE__ */ yn(r) ? r.map(Cn) : Cn(r), a = {+function gi({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {+ let i = /* @__PURE__ */ xn(r) ? r.map(Tn) : Tn(r), a = {done: !1,value: t[0]- }, o = li(fi(n && n.length === t.length ? n : di(t), e), t, { ease: Array.isArray(i) ? i : pi(t, i) });+ }, o = di(mi(n && n.length === t.length ? n : pi(t), e), t, { ease: Array.isArray(i) ? i : hi(t, i) });return {calculatedDuration: e,next: (t) => (a.value = o(t), a.done = t >= e, a)@@ -2758,26 +2758,26 @@ function mi({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }}//#endregion//#region node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs-var hi = (e) => e !== null;-function gi(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {- let a = e.filter(hi), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;+var _i = (e) => e !== null;+function vi(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {+ let a = e.filter(_i), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;return !o || r === void 0 ? a[o] : r;}//#endregion//#region node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs-var _i = {- decay: si,- inertia: si,- tween: mi,- keyframes: mi,- spring: ii+var yi = {+ decay: li,+ inertia: li,+ tween: gi,+ keyframes: gi,+ spring: oi};-function vi(e) {- typeof e.type == "string" && (e.type = _i[e.type]);+function bi(e) {+ typeof e.type == "string" && (e.type = yi[e.type]);}//#endregion//#region node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs-var yi = class {+var xi = class {constructor() {this.updateFinished();}@@ -2795,21 +2795,21 @@ var yi = class {then(e, t) {return this.finished.then(e, t);}-}, bi = (e) => e / 100, xi = class extends yi {+}, Si = (e) => e / 100, Ci = class extends xi {constructor(e) {super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.delayState = {done: !1,value: void 0}, this.stop = () => {let { motionValue: e } = this.options;- e && e.updatedAt !== Pn.now() && this.tick(Pn.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());+ e && e.updatedAt !== In.now() && this.tick(In.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());}, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause();}initAnimation() {let { options: e } = this;- vi(e);- let { type: t = mi, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || mi;- s !== mi && typeof o[0] != "number" && (this.mixKeyframes = Yt(bi, Hr(o[0], o[1])), o = [0, 100]);+ bi(e);+ let { type: t = gi, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || gi;+ s !== gi && typeof o[0] != "number" && (this.mixKeyframes = Zt(Si, Wr(o[0], o[1])), o = [0, 100]);let c = s({...e,keyframes: o@@ -2818,7 +2818,7 @@ var yi = class {...e,keyframes: [...o].reverse(),velocity: -a- })), c.calculatedDuration === null && (c.calculatedDuration = Kr(c));+ })), c.calculatedDuration === null && (c.calculatedDuration = Jr(c));let { calculatedDuration: l } = c;this.calculatedDuration = l, this.resolvedDuration = l + r, this.totalDuration = this.resolvedDuration * (n + 1) - r, this.generator = c;}@@ -2836,54 +2836,54 @@ var yi = class {let v = this.currentTime, y = n;if (u) {let e = Math.min(this.currentTime, r) / o, t = Math.floor(e), n = e % 1;- !n && e >= 1 && (n = 1), n === 1 && t--, t = Math.min(t, u + 1), t % 2 && (d === "reverse" ? (n = 1 - n, f && (n -= f / o)) : d === "mirror" && (y = a)), v = Ht(0, 1, n) * o;+ !n && e >= 1 && (n = 1), n === 1 && t--, t = Math.min(t, u + 1), t % 2 && (d === "reverse" ? (n = 1 - n, f && (n -= f / o)) : d === "mirror" && (y = a)), v = Wt(0, 1, n) * o;}let b;_ ? (this.delayState.value = l[0], b = this.delayState) : b = y.next(v), i && !_ && (b.value = i(b.value));let { done: x } = b;!_ && s !== null && (x = this.playbackSpeed >= 0 ? this.currentTime >= r : this.currentTime <= 0);let S = this.holdTime === null && (this.state === "finished" || this.state === "running" && x);- return S && p !== si && (b.value = gi(l, this.options, h, this.speed)), m && m(b.value), S && this.finish(), b;+ return S && p !== li && (b.value = vi(l, this.options, h, this.speed)), m && m(b.value), S && this.finish(), b;}then(e, t) {return this.finished.then(e, t);}get duration() {- return /* @__PURE__ */ $t(this.calculatedDuration);+ return /* @__PURE__ */ tn(this.calculatedDuration);}get iterationDuration() {let { delay: e = 0 } = this.options || {};- return this.duration + /* @__PURE__ */ $t(e);+ return this.duration + /* @__PURE__ */ tn(e);}get time() {- return /* @__PURE__ */ $t(this.currentTime);+ return /* @__PURE__ */ tn(this.currentTime);}set time(e) {- e = /* @__PURE__ */ Qt(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = e, this.tick(e));+ e = /* @__PURE__ */ en(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() {let e = this.currentTime;if (e <= 0) return this.options.velocity || 0;if (this.generator.velocity) return this.generator.velocity(e);let t = this.generator.next(e).value;- return oi((e) => this.generator.next(e).value, e, t);+ return ci((e) => this.generator.next(e).value, e, t);}get speed() {return this.playbackSpeed;}set speed(e) {let t = this.playbackSpeed !== e;- t && this.driver && this.updateTime(Pn.now()), this.playbackSpeed = e, t && this.driver && (this.time = /* @__PURE__ */ $t(this.currentTime));+ t && this.driver && this.updateTime(In.now()), this.playbackSpeed = e, t && this.driver && (this.time = /* @__PURE__ */ tn(this.currentTime));}play() {if (this.isStopped) return;- let { driver: e = Ur, startTime: t } = this.options;+ let { driver: e = Gr, 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 ?? n : this.startTime = n - this.holdTime, this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();}pause() {- this.state = "paused", this.updateTime(Pn.now()), this.holdTime = this.currentTime;+ this.state = "paused", this.updateTime(In.now()), this.holdTime = this.currentTime;}complete() {this.state !== "running" && this.play(), this.state = "finished", this.holdTime = null;@@ -2909,12 +2909,12 @@ var yi = class {};//#endregion//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs-function Si(e) {+function wi(e) {for (let t = 1; t < e.length; t++) e[t] ?? (e[t] = e[t - 1]);}//#endregion//#region node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs-var Ci = (e) => e * 180 / Math.PI, wi = (e) => Ei(Ci(Math.atan2(e[1], e[0]))), Ti = {+var Ti = (e) => e * 180 / Math.PI, Ei = (e) => Oi(Ti(Math.atan2(e[1], e[0]))), Di = {x: 4,y: 5,translateX: 4,@@ -2922,54 +2922,54 @@ var Ci = (e) => e * 180 / Math.PI, wi = (e) => Ei(Ci(Math.atan2(e[1], e[0]))), TscaleX: 0,scaleY: 3,scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,- rotate: wi,- rotateZ: wi,- skewX: (e) => Ci(Math.atan(e[1])),- skewY: (e) => Ci(Math.atan(e[2])),+ rotate: Ei,+ rotateZ: Ei,+ skewX: (e) => Ti(Math.atan(e[1])),+ skewY: (e) => Ti(Math.atan(e[2])),skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2-}, Ei = (e) => (e %= 360, e < 0 && (e += 360), e), Di = wi, Oi = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), ki = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), Ai = {+}, Oi = (e) => (e %= 360, e < 0 && (e += 360), e), ki = Ei, Ai = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), ji = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), Mi = {x: 12,y: 13,z: 14,translateX: 12,translateY: 13,translateZ: 14,- scaleX: Oi,- scaleY: ki,- scale: (e) => (Oi(e) + ki(e)) / 2,- rotateX: (e) => Ei(Ci(Math.atan2(e[6], e[5]))),- rotateY: (e) => Ei(Ci(Math.atan2(-e[2], e[0]))),- rotateZ: Di,- rotate: Di,- skewX: (e) => Ci(Math.atan(e[4])),- skewY: (e) => Ci(Math.atan(e[1])),+ scaleX: Ai,+ scaleY: ji,+ scale: (e) => (Ai(e) + ji(e)) / 2,+ rotateX: (e) => Oi(Ti(Math.atan2(e[6], e[5]))),+ rotateY: (e) => Oi(Ti(Math.atan2(-e[2], e[0]))),+ rotateZ: ki,+ rotate: ki,+ skewX: (e) => Ti(Math.atan(e[4])),+ skewY: (e) => Ti(Math.atan(e[1])),skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2};-function ji(e) {+function Ni(e) {return +!!e.includes("scale");}-function Mi(e, t) {- if (!e || e === "none") return ji(t);+function Pi(e, t) {+ if (!e || e === "none") return Ni(t);let n = e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u), r, i;- if (n) r = Ai, i = n;+ if (n) r = Mi, i = n;else {let t = e.match(/^matrix\(([-\d.e\s,]+)\)$/u);- r = Ti, i = t;+ r = Di, i = t;}- if (!i) return ji(t);- let a = r[t], o = i[1].split(",").map(Pi);+ if (!i) return Ni(t);+ let a = r[t], o = i[1].split(",").map(Ii);return typeof a == "function" ? a(o) : o[a];}-var Ni = (e, t) => {+var Fi = (e, t) => {let { transform: n = "none" } = getComputedStyle(e);- return Mi(n, t);+ return Pi(n, t);};-function Pi(e) {+function Ii(e) {return parseFloat(e.trim());}//#endregion//#region node_modules/motion-dom/dist/es/render/utils/keys-transform.mjs-var Fi = [+var Li = ["transformPerspective","x","y",@@ -2987,19 +2987,19 @@ var Fi = ["skew","skewX","skewY"-], Ii = /* @__PURE__ */ new Set([...Fi, "pathRotation"]), Li = (e) => e === Vn || e === B, Ri = /* @__PURE__ */ new Set([+], Ri = /* @__PURE__ */ new Set([...Li, "pathRotation"]), zi = (e) => e === Un || e === B, Bi = /* @__PURE__ */ new Set(["x","y","z"-]), zi = Fi.filter((e) => !Ri.has(e));-function Bi(e) {+]), Vi = Li.filter((e) => !Bi.has(e));+function Hi(e) {let t = [];- return zi.forEach((n) => {+ return Vi.forEach((n) => {let r = e.getValue(n);r !== void 0 && (t.push([n, r.get()]), r.set(+!!n.startsWith("scale")));}), t;}-var Vi = {+var Ui = {width: ({ x: e }, { paddingLeft: t = "0", paddingRight: n = "0", boxSizing: r }) => {let i = e.max - e.min;return r === "border-box" ? i : i - parseFloat(t) - parseFloat(n);@@ -3012,18 +3012,18 @@ var Vi = {left: (e, { left: t }) => parseFloat(t),bottom: ({ y: e }, { top: t }) => parseFloat(t) + (e.max - e.min),right: ({ x: e }, { left: t }) => parseFloat(t) + (e.max - e.min),- x: (e, { transform: t }) => Mi(t, "x"),- y: (e, { transform: t }) => Mi(t, "y")+ x: (e, { transform: t }) => Pi(t, "x"),+ y: (e, { transform: t }) => Pi(t, "y")};-Vi.translateX = Vi.x, Vi.translateY = Vi.y;+Ui.translateX = Ui.x, Ui.translateY = Ui.y;//#endregion//#region node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs-var Hi = /* @__PURE__ */ new Set(), Ui = !1, Wi = !1, Gi = !1;-function Ki() {- if (Wi) {- let e = Array.from(Hi).filter((e) => e.needsMeasurement), t = new Set(e.map((e) => e.element)), n = /* @__PURE__ */ new Map();+var Wi = /* @__PURE__ */ new Set(), Gi = !1, Ki = !1, qi = !1;+function Ji() {+ if (Ki) {+ let e = Array.from(Wi).filter((e) => e.needsMeasurement), t = new Set(e.map((e) => e.element)), n = /* @__PURE__ */ new Map();t.forEach((e) => {- let t = Bi(e);+ let t = Hi(e);t.length && (n.set(e, t), e.render());}), e.forEach((e) => e.measureInitialState()), t.forEach((e) => {e.render();@@ -3035,22 +3035,22 @@ function Ki() {e.suspendedScrollY !== void 0 && window.scrollTo(0, e.suspendedScrollY);});}- Wi = !1, Ui = !1, Hi.forEach((e) => e.complete(Gi)), Hi.clear();+ Ki = !1, Gi = !1, Wi.forEach((e) => e.complete(qi)), Wi.clear();}-function qi() {- Hi.forEach((e) => {- e.readKeyframes(), e.needsMeasurement && (Wi = !0);+function Yi() {+ Wi.forEach((e) => {+ e.readKeyframes(), e.needsMeasurement && (Ki = !0);});}-function Ji() {- Gi = !0, qi(), Ki(), Gi = !1;+function Xi() {+ qi = !0, Yi(), Ji(), qi = !1;}-var Yi = class {+var Zi = 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 ? (Hi.add(this), Ui || (Ui = !0, On.read(qi), On.resolveKeyframes(Ki))) : (this.readKeyframes(), this.complete());+ this.state = "scheduled", this.isAsync ? (Wi.add(this), Gi || (Gi = !0, An.read(Yi), An.resolveKeyframes(Ji))) : (this.readKeyframes(), this.complete());}readKeyframes() {let { unresolvedKeyframes: e, name: t, element: n, motionValue: r } = this;@@ -3063,70 +3063,70 @@ var Yi = class {}e[0] === void 0 && (e[0] = a), r && i === void 0 && r.set(e[0]);}- Si(e);+ wi(e);}setFinalKeyframe() {}measureInitialState() {}renderEndStyles() {}measureEndState() {}complete(e = !1) {- this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), Hi.delete(this);+ this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), Wi.delete(this);}cancel() {- this.state === "scheduled" && (Hi.delete(this), this.state = "pending");+ this.state === "scheduled" && (Wi.delete(this), this.state = "pending");}resume() {this.state === "pending" && this.scheduleResolve();}-}, Xi = (e) => e.startsWith("--");+}, Qi = (e) => e.startsWith("--");//#endregion//#region node_modules/motion-dom/dist/es/render/dom/style-set.mjs-function Zi(e, t, n) {- Xi(t) ? e.style.setProperty(t, n) : e.style[t] = n;+function $i(e, t, n) {+ Qi(t) ? e.style.setProperty(t, n) : e.style[t] = n;}//#endregion//#region node_modules/motion-dom/dist/es/utils/supports/flags.mjs-var Qi = {};+var ea = {};//#endregion//#region node_modules/motion-dom/dist/es/utils/supports/memo.mjs-function $i(e, t) {- let n = /* @__PURE__ */ qt(e);- return () => Qi[t] ?? n();+function ta(e, t) {+ let n = /* @__PURE__ */ Yt(e);+ return () => ea[t] ?? n();}//#endregion//#region node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs-var ea = /* @__PURE__ */ $i(() => window.ScrollTimeline !== void 0, "scrollTimeline"), ta = /*@__PURE__*/ $i(() => {+var na = /* @__PURE__ */ ta(() => window.ScrollTimeline !== void 0, "scrollTimeline"), ra = /*@__PURE__*/ ta(() => {try {document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });} catch {return !1;}return !0;-}, "linearEasing"), na = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, ra = {+}, "linearEasing"), ia = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, aa = {linear: "linear",ease: "ease",easeIn: "ease-in",easeOut: "ease-out",easeInOut: "ease-in-out",- circIn: /*@__PURE__*/ na([+ circIn: /*@__PURE__*/ ia([0,.65,.55,1]),- circOut: /*@__PURE__*/ na([+ circOut: /*@__PURE__*/ ia([.55,0,1,.45]),- backIn: /*@__PURE__*/ na([+ backIn: /*@__PURE__*/ ia([.31,.01,.66,-.59]),- backOut: /*@__PURE__*/ na([+ backOut: /*@__PURE__*/ ia([.33,1.53,.69,@@ -3135,15 +3135,15 @@ var ea = /* @__PURE__ */ $i(() => window.ScrollTimeline !== void 0, "scrollTimel};//#endregion//#region node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs-function ia(e, t) {- if (e) return typeof e == "function" ? ta() ? Wr(e, t) : "ease-out" : /* @__PURE__ */ bn(e) ? na(e) : Array.isArray(e) ? e.map((e) => ia(e, t) || ra.easeOut) : ra[e];+function oa(e, t) {+ if (e) return typeof e == "function" ? ra() ? Kr(e, t) : "ease-out" : /* @__PURE__ */ Sn(e) ? ia(e) : Array.isArray(e) ? e.map((e) => oa(e, t) || aa.easeOut) : aa[e];}//#endregion//#region node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs-function aa(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {+function sa(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 = ia(s, i);+ let d = oa(s, i);Array.isArray(d) && (u.easing = d);let f = {delay: r,@@ -3157,26 +3157,26 @@ function aa(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatTyp}//#endregion//#region node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs-function oa(e) {+function ca(e) {return typeof e == "function" && "applyToOptions" in e;}//#endregion//#region node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs-function sa({ type: e, ...t }) {- return oa(e) && ta() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);+function la({ type: e, ...t }) {+ return ca(e) && ra() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);}//#endregion//#region node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs-var ca = class extends yi {+var ua = class extends xi {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, e.type;- let c = sa(e);- this.animation = aa(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {+ let c = la(e);+ this.animation = sa(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {if (this.finishedTime = this.time, !i) {- let e = gi(r, this.options, o, this.speed);- this.updateMotionValue && this.updateMotionValue(e), Zi(t, n, e), this.animation.cancel();+ let e = vi(r, this.options, o, this.speed);+ this.updateMotionValue && this.updateMotionValue(e), $i(t, n, e), this.animation.cancel();}s?.(), this.notifyFinished();};@@ -3207,18 +3207,18 @@ var ca = class extends yi {}get duration() {let e = this.animation.effect?.getComputedTiming?.().duration || 0;- return /* @__PURE__ */ $t(Number(e));+ return /* @__PURE__ */ tn(Number(e));}get iterationDuration() {let { delay: e = 0 } = this.options || {};- return this.duration + /* @__PURE__ */ $t(e);+ return this.duration + /* @__PURE__ */ tn(e);}get time() {- return /* @__PURE__ */ $t(Number(this.animation.currentTime) || 0);+ return /* @__PURE__ */ tn(Number(this.animation.currentTime) || 0);}set time(e) {let t = this.finishedTime !== null;- this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ Qt(e), t && this.animation.pause();+ this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ en(e), t && this.animation.pause();}get speed() {return this.animation.playbackRate;@@ -3236,24 +3236,24 @@ var ca = class extends yi {this.manualStartTime = this.animation.startTime = e;}attachTimeline({ timeline: e, rangeStart: t, rangeEnd: n, observe: r }) {- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && ea() ? (this.animation.timeline = e, t && (this.animation.rangeStart = t), n && (this.animation.rangeEnd = n), Jt) : r(this);+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && na() ? (this.animation.timeline = e, t && (this.animation.rangeStart = t), n && (this.animation.rangeEnd = n), Xt) : r(this);}-}, la = {- anticipate: fn,- backInOut: dn,- circInOut: hn+}, da = {+ anticipate: mn,+ backInOut: pn,+ circInOut: _n};-function ua(e) {- return e in la;+function fa(e) {+ return e in da;}-function da(e) {- typeof e.ease == "string" && ua(e.ease) && (e.ease = la[e.ease]);+function pa(e) {+ typeof e.ease == "string" && fa(e.ease) && (e.ease = da[e.ease]);}//#endregion//#region node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.mjs-var fa = 10, pa = class extends ca {+var ma = 10, ha = class extends ua {constructor(e) {- da(e), vi(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;+ pa(e), bi(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;}updateMotionValue(e) {let { motionValue: t, onUpdate: n, onComplete: r, element: i, ...a } = this.options;@@ -3262,48 +3262,48 @@ var fa = 10, pa = class extends ca {t.set(e);return;}- let o = new xi({+ let o = new Ci({...a,autoplay: !1- }), s = Math.max(fa, Pn.now() - this.startTime), c = Ht(0, fa, s - fa), l = o.sample(s).value, { name: u } = this.options;- i && u && Zi(i, u, l), t.setWithVelocity(o.sample(Math.max(0, s - c)).value, l, c), o.stop();+ }), s = Math.max(ma, In.now() - this.startTime), c = Wt(0, ma, s - ma), l = o.sample(s).value, { name: u } = this.options;+ i && u && $i(i, u, l), t.setWithVelocity(o.sample(Math.max(0, s - c)).value, l, c), o.stop();}-}, ma = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (wr.test(e) || e === "0") && !e.startsWith("url("));+}, ga = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (Er.test(e) || e === "0") && !e.startsWith("url("));//#endregion//#region node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs-function ha(e) {+function _a(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 ga(e, t, n, r) {+function va(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 = ma(i, t), s = ma(a, t);- return `${t}${i}${a}${o ? a : i}`, !o || !s ? !1 : ha(e) || (n === "spring" || oa(n)) && r;+ let a = e[e.length - 1], o = ga(i, t), s = ga(a, t);+ return `${t}${i}${a}${o ? a : i}`, !o || !s ? !1 : _a(e) || (n === "spring" || ca(n)) && r;}//#endregion//#region node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs-function _a(e) {+function ya(e) {e.duration = 0, e.type = "keyframes";}//#endregion//#region node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.mjs-var va = /* @__PURE__ */ new Set([+var ba = /* @__PURE__ */ new Set(["opacity","clipPath","filter","transform","backgroundColor"-]), ya = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;-function ba(e) {- for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && ya.test(e[t])) return !0;+]), xa = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;+function Sa(e) {+ for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && xa.test(e[t])) return !0;return !1;}//#endregion//#region node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs-var xa = /* @__PURE__ */ new Set([+var Ca = /* @__PURE__ */ new Set(["color","backgroundColor","outlineColor",@@ -3314,20 +3314,20 @@ var xa = /* @__PURE__ */ new Set(["borderRightColor","borderBottomColor","borderLeftColor"-]), Sa = /*@__PURE__*/ qt(() => Object.hasOwnProperty.call(Element.prototype, "animate"));-function Ca(e) {+]), wa = /*@__PURE__*/ Yt(() => Object.hasOwnProperty.call(Element.prototype, "animate"));+function Ta(e) {let { motionValue: t, name: n, repeatDelay: r, repeatType: i, damping: a, type: o, keyframes: s } = e, c = t?.owner?.current;if (!(c instanceof HTMLElement) && !(c instanceof SVGElement)) return !1;let { onUpdate: l, transformTemplate: u } = t.owner.getProps();- return Sa() && n && (va.has(n) || xa.has(n) && ba(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia";+ return wa() && n && (ba.has(n) || Ca.has(n) && Sa(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia";}//#endregion//#region node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs-var wa = 40, Ta = class extends yi {+var Ea = 40, Da = class extends xi {constructor({ autoplay: e = !0, delay: t = 0, type: n = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: a = "loop", keyframes: o, name: s, motionValue: c, element: l, ...u }) {super(), this.stop = () => {this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();- }, this.createdAt = Pn.now();+ }, this.createdAt = In.now();let d = {autoplay: e,delay: t,@@ -3339,33 +3339,33 @@ var wa = 40, Ta = class extends yi {motionValue: c,element: l,...u- }, f = l?.KeyframeResolver || Yi;+ }, f = l?.KeyframeResolver || Zi;this.keyframeResolver = new f(o, (e, t, n) => this.onKeyframesResolved(e, t, d, !n), s, c, l), 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 = Pn.now();+ this.resolvedAt = In.now();let u = !0;- ga(e, i, a, o) || (u = !1, (Ut.instantAnimations || !s) && l?.(gi(e, n, t)), e[0] = e[e.length - 1], _a(n), n.repeat = 0);+ va(e, i, a, o) || (u = !1, (Gt.instantAnimations || !s) && l?.(vi(e, n, t)), e[0] = e[e.length - 1], ya(n), n.repeat = 0);let d = {- startTime: r ? this.resolvedAt && this.resolvedAt - this.createdAt > wa ? this.resolvedAt : this.createdAt : void 0,+ startTime: r ? this.resolvedAt && this.resolvedAt - this.createdAt > Ea ? this.resolvedAt : this.createdAt : void 0,finalKeyframe: t,...n,keyframes: e- }, f = u && !c && Ca(d), p = d.motionValue?.owner?.current, m;+ }, f = u && !c && Ta(d), p = d.motionValue?.owner?.current, m;if (f) try {- m = new pa({+ m = new ha({...d,element: p});} catch {- m = new xi(d);+ m = new Ci(d);}- else m = new xi(d);+ else m = new Ci(d);m.finished.then(() => {this.notifyFinished();- }).catch(Jt), this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;+ }).catch(Xt), this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;}get finished() {return this._animation ? this.animation.finished : this._finished;@@ -3374,7 +3374,7 @@ var wa = 40, Ta = class extends yi {return this.finished.finally(e).then(() => {});}get animation() {- return this._animation || (this.keyframeResolver?.resume(), Ji()), this._animation;+ return this._animation || (this.keyframeResolver?.resume(), Xi()), this._animation;}get duration() {return this.animation.duration;@@ -3418,21 +3418,21 @@ var wa = 40, Ta = class extends yi {};//#endregion//#region node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs-function Ea(e, t, n, r = 0, i = 1) {+function Oa(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;}//#endregion//#region node_modules/motion-dom/dist/es/value/index.mjs-var Da = 30, Oa = (e) => !isNaN(parseFloat(e)), ka = { current: void 0 }, Aa = class {+var ka = 30, Aa = (e) => !isNaN(parseFloat(e)), ja = { current: void 0 }, Ma = class {constructor(e, t = {}) {this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (e) => {- let t = Pn.now();+ let t = In.now();if (this.updatedAt !== t && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(e), this.current !== this.prev && (this.events.change?.notify(this.current), this.dependents)) for (let e of this.dependents) e.dirty();}, this.hasAnimated = !1, this.setCurrent(e), this.owner = t.owner;}setCurrent(e) {- this.current = e, this.updatedAt = Pn.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Oa(this.current));+ this.current = e, this.updatedAt = In.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Aa(this.current));}setPrevFrameValue(e = this.current) {this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;@@ -3441,10 +3441,10 @@ var Da = 30, Oa = (e) => !isNaN(parseFloat(e)), ka = { current: void 0 }, Aa = creturn this.on("change", e);}on(e, t) {- this.events[e] || (this.events[e] = new Zt());+ this.events[e] || (this.events[e] = new $t());let n = this.events[e].add(t);return e === "change" ? () => {- n(), On.read(() => {+ n(), An.read(() => {this.events.change.getSize() || this.stop();});} : n;@@ -3474,16 +3474,16 @@ var Da = 30, Oa = (e) => !isNaN(parseFloat(e)), ka = { current: void 0 }, Aa = cthis.dependents && this.dependents.delete(e);}get() {- return ka.current && ka.current.push(this), this.current;+ return ja.current && ja.current.push(this), this.current;}getPrevious() {return this.prev;}getVelocity() {- let e = Pn.now();- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > Da) return 0;- let t = Math.min(this.updatedAt - this.prevUpdatedAt, Da);- return /* @__PURE__ */ en(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);+ let e = In.now();+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > ka) return 0;+ let t = Math.min(this.updatedAt - this.prevUpdatedAt, ka);+ return /* @__PURE__ */ nn(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);}start(e) {return this.stop(), new Promise((t) => {@@ -3505,12 +3505,12 @@ var Da = 30, Oa = (e) => !isNaN(parseFloat(e)), ka = { current: void 0 }, Aa = cthis.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();}};-function ja(e, t) {- return new Aa(e, t);+function Na(e, t) {+ return new Ma(e, t);}//#endregion//#region node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs-function Ma(e, t) {+function Pa(e, t) {if (e?.inherit && t) {let { inherit: n, ...r } = e;return {@@ -3522,26 +3522,26 @@ function Ma(e, t) {}//#endregion//#region node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs-function Na(e, t) {+function Fa(e, t) {let n = e?.[t] ?? e?.default ?? e;- return n === e ? n : Ma(n, e);+ return n === e ? n : Pa(n, e);}//#endregion//#region node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs-var Pa = {+var Ia = {type: "spring",stiffness: 500,damping: 25,restSpeed: 10-}, Fa = (e) => ({+}, La = (e) => ({type: "spring",stiffness: 550,damping: e === 0 ? 2 * Math.sqrt(550) : 30,restSpeed: 10-}), Ia = {+}), Ra = {type: "keyframes",duration: .8-}, La = {+}, za = {type: "keyframes",ease: [.25,@@ -3550,7 +3550,7 @@ var Pa = {1],duration: .3-}, Ra = (e, { keyframes: t }) => t.length > 2 ? Ia : Ii.has(e) ? e.startsWith("scale") ? Fa(t[1]) : Pa : La, za = /* @__PURE__ */ new Set([+}, Ba = (e, { keyframes: t }) => t.length > 2 ? Ra : Ri.has(e) ? e.startsWith("scale") ? La(t[1]) : Ia : za, Va = /* @__PURE__ */ new Set(["when","delay","delayChildren",@@ -3562,15 +3562,15 @@ var Pa = {"from","elapsed"]);-function Ba(e) {- for (let t in e) if (!za.has(t)) return !0;+function Ha(e) {+ for (let t in e) if (!Va.has(t)) return !0;return !1;}//#endregion//#region node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs-var Va = (e, t, n, r = {}, i, a) => (o) => {- let s = Na(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;- l -= /* @__PURE__ */ Qt(c);+var Ua = (e, t, n, r = {}, i, a) => (o) => {+ let s = Fa(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;+ l -= /* @__PURE__ */ en(c);let u = {keyframes: Array.isArray(n) ? n : [null, n],ease: "easeOut",@@ -3587,160 +3587,160 @@ var Va = (e, t, n, r = {}, i, a) => (o) => {motionValue: t,element: a ? void 0 : i};- Ba(s) || Object.assign(u, Ra(e, u)), u.duration &&= /* @__PURE__ */ Qt(u.duration), u.repeatDelay &&= /* @__PURE__ */ Qt(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);+ Ha(s) || Object.assign(u, Ba(e, u)), u.duration &&= /* @__PURE__ */ en(u.duration), u.repeatDelay &&= /* @__PURE__ */ en(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);let d = !1;- if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (_a(u), u.delay === 0 && (d = !0)), (Ut.instantAnimations || Ut.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, _a(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {- let e = gi(u.keyframes, s);+ if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (ya(u), u.delay === 0 && (d = !0)), (Gt.instantAnimations || Gt.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, ya(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {+ let e = vi(u.keyframes, s);if (e !== void 0) {- On.update(() => {+ An.update(() => {u.onUpdate(e), u.onComplete();});return;}}- return s.isSync ? new xi(u) : new Ta(u);-}, Ha = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;-function Ua(e) {- let t = Ha.exec(e);+ return s.isSync ? new Ci(u) : new Da(u);+}, Wa = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;+function Ga(e) {+ let t = Wa.exec(e);if (!t) return [,];let [, n, r, i] = t;return [`--${n ?? r}`, i];}-function Wa(e, t, n = 1) {+function Ka(e, t, n = 1) {`${e}`;- let [r, i] = Ua(e);+ let [r, i] = Ga(e);if (!r) return;let a = window.getComputedStyle(t).getPropertyValue(r);if (a) {let e = a.trim();- return Wt(e) ? parseFloat(e) : e;+ return Kt(e) ? parseFloat(e) : e;}- return Rn(i) ? Wa(i, t, n + 1) : i;+ return Bn(i) ? Ka(i, t, n + 1) : i;}//#endregion//#region node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs-function Ga(e) {+function qa(e) {let t = [{}, {}];return e?.values.forEach((e, n) => {t[0][n] = e.get(), t[1][n] = e.getVelocity();}), t;}-function Ka(e, t, n, r) {+function Ja(e, t, n, r) {if (typeof t == "function") {- let [i, a] = Ga(r);+ let [i, a] = qa(r);t = t(n === void 0 ? e.custom : n, i, a);}if (typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function") {- let [i, a] = Ga(r);+ let [i, a] = qa(r);t = t(n === void 0 ? e.custom : n, i, a);}return t;}//#endregion//#region node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs-function qa(e, t, n) {+function Ya(e, t, n) {let r = e.getProps();- return Ka(r, t, n === void 0 ? r.custom : n, e);+ return Ja(r, t, n === void 0 ? r.custom : n, e);}//#endregion//#region node_modules/motion-dom/dist/es/render/utils/keys-position.mjs-var Ja = /* @__PURE__ */ new Set([+var Xa = /* @__PURE__ */ new Set(["width","height","top","left","right","bottom",- ...Fi-]), Ya = (e) => Array.isArray(e);+ ...Li+]), Za = (e) => Array.isArray(e);//#endregion//#region node_modules/motion-dom/dist/es/render/utils/setters.mjs-function Xa(e, t, n) {- e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, ja(n));+function Qa(e, t, n) {+ e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, Na(n));}-function Za(e) {- return Ya(e) ? e[e.length - 1] || 0 : e;+function $a(e) {+ return Za(e) ? e[e.length - 1] || 0 : e;}-function Qa(e, t) {- let { transitionEnd: n = {}, transition: r = {}, ...i } = qa(e, t) || {};+function eo(e, t) {+ let { transitionEnd: n = {}, transition: r = {}, ...i } = Ya(e, t) || {};i = {...i,...n};- for (let t in i) Xa(e, t, Za(i[t]));+ for (let t in i) Qa(e, t, $a(i[t]));}//#endregion//#region node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs-var $a = (e) => !!(e && e.getVelocity);+var to = (e) => !!(e && e.getVelocity);//#endregion//#region node_modules/motion-dom/dist/es/value/will-change/is.mjs-function eo(e) {- return !!($a(e) && e.add);+function no(e) {+ return !!(to(e) && e.add);}//#endregion//#region node_modules/motion-dom/dist/es/value/will-change/add-will-change.mjs-function to(e, t) {+function ro(e, t) {let n = e.getValue("willChange");- if (eo(n)) return n.add(t);- if (!n && Ut.WillChange) {- let n = new Ut.WillChange("auto");+ if (no(n)) return n.add(t);+ if (!n && Gt.WillChange) {+ let n = new Gt.WillChange("auto");e.addValue("willChange", n), n.add(t);}}//#endregion//#region node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.mjs-function no(e) {+function io(e) {return e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);}-var ro = "data-" + no("framerAppearId");+var ao = "data-" + io("framerAppearId");//#endregion//#region node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.mjs-function io(e) {- return e.props[ro];+function oo(e) {+ return e.props[ao];}//#endregion//#region node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs-function ao({ protectedKeys: e, needsAnimating: t }, n) {+function so({ protectedKeys: e, needsAnimating: t }, n) {let r = e.hasOwnProperty(n) && t[n] !== !0;return t[n] = !1, r;}-function oo(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {+function co(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {let { transition: a, transitionEnd: o, ...s } = t, c = e.getDefaultTransition();- a = a ? Ma(a, c) : c;+ a = a ? Pa(a, c) : c;let l = a?.reduceMotion, u = a?.skipAnimations;r && (a = r);let d = [], f = i && e.animationState && e.animationState.getState()[i], p = a?.path;p && 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 && ao(f, t)) continue;+ if (i === void 0 || f && so(f, t)) continue;let o = {delay: n,- ...Na(a || {}, t)+ ...Fa(a || {}, t)};u && (o.skipAnimations = !0);let c = r.get();if (c !== void 0 && !r.isAnimating() && !Array.isArray(i) && i === c && !o.velocity) {- On.update(() => r.set(i));+ An.update(() => r.set(i));continue;}let p = !1;if (window.MotionHandoffAnimation) {- let n = io(e);+ let n = oo(e);if (n) {- let e = window.MotionHandoffAnimation(n, t, On);+ let e = window.MotionHandoffAnimation(n, t, An);e !== null && (o.startTime = e, p = !0);}}- to(e, t);+ ro(e, t);let m = l ?? e.shouldReduceMotion;- r.start(Va(t, r, i, m && Ja.has(t) ? { type: !1 } : o, e, p));+ r.start(Ua(t, r, i, m && Xa.has(t) ? { type: !1 } : o, e, p));let h = r.animation;h && d.push(h);}if (o) {- let t = () => On.update(() => {- o && Qa(e, o);+ let t = () => An.update(() => {+ o && eo(e, o);});d.length ? Promise.all(d).then(t) : t();}@@ -3748,12 +3748,12 @@ function oo(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {}//#endregion//#region node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs-function so(e, t, n = {}) {- let r = qa(e, t, n.type === "exit" ? e.presenceContext?.custom : void 0), { transition: i = e.getDefaultTransition() || {} } = r || {};+function lo(e, t, n = {}) {+ let r = Ya(e, t, n.type === "exit" ? e.presenceContext?.custom : void 0), { transition: i = e.getDefaultTransition() || {} } = r || {};n.transitionOverride && (i = n.transitionOverride);- let a = r ? () => Promise.all(oo(e, r, n)) : () => Promise.resolve(), o = e.variantChildren && e.variantChildren.size ? (r = 0) => {+ let a = r ? () => Promise.all(co(e, r, n)) : () => Promise.resolve(), o = e.variantChildren && e.variantChildren.size ? (r = 0) => {let { delayChildren: a = 0, staggerChildren: o, staggerDirection: s } = i;- return co(e, t, r, a, o, s, n);+ return uo(e, t, r, a, o, s, n);} : () => Promise.resolve(), { when: s } = i;if (s) {let [e, t] = s === "beforeChildren" ? [a, o] : [o, a];@@ -3761,26 +3761,26 @@ function so(e, t, n = {}) {}return Promise.all([a(), o(n.delay)]);}-function co(e, t, n = 0, r = 0, i = 0, a = 1, o) {+function uo(e, t, n = 0, r = 0, i = 0, a = 1, o) {let s = [];- for (let c of e.variantChildren) c.notify("AnimationStart", t), s.push(so(c, t, {+ for (let c of e.variantChildren) c.notify("AnimationStart", t), s.push(lo(c, t, {...o,- delay: n + (typeof r == "function" ? 0 : r) + Ea(e.variantChildren, c, r, i, a)+ delay: n + (typeof r == "function" ? 0 : r) + Oa(e.variantChildren, c, r, i, a)}).then(() => c.notify("AnimationComplete", t)));return Promise.all(s);}//#endregion//#region node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs-function lo(e, t, n = {}) {+function fo(e, t, n = {}) {e.notify("AnimationStart", t);let r;if (Array.isArray(t)) {- let i = t.map((t) => so(e, t, n));+ let i = t.map((t) => lo(e, t, n));r = Promise.all(i);- } else if (typeof t == "string") r = so(e, t, n);+ } else if (typeof t == "string") r = lo(e, t, n);else {- let i = typeof t == "function" ? qa(e, t, n.custom) : t;- r = Promise.all(oo(e, i, n));+ let i = typeof t == "function" ? Ya(e, t, n.custom) : t;+ r = Promise.all(co(e, i, n));}return r.then(() => {e.notify("AnimationComplete", t);@@ -3788,58 +3788,58 @@ function lo(e, t, n = {}) {}//#endregion//#region node_modules/motion-dom/dist/es/value/types/auto.mjs-var uo = {+var po = {test: (e) => e === "auto",parse: (e) => e-}, fo = (e) => (t) => t.test(e), po = [- Vn,+}, mo = (e) => (t) => t.test(e), ho = [+ Un,B,- rr,- nr,ar,ir,- uo-], mo = (e) => po.find(fo(e));+ sr,+ or,+ po+], go = (e) => ho.find(mo(e));//#endregion//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs-function ho(e) {- return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || Kt(e);+function _o(e) {+ return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || Jt(e);}//#endregion//#region node_modules/motion-dom/dist/es/value/types/complex/filter.mjs-var go = /* @__PURE__ */ new Set([+var vo = /* @__PURE__ */ new Set(["brightness","contrast","saturate","opacity"]);-function _o(e) {+function yo(e) {let [t, n] = e.slice(0, -1).split("(");if (t === "drop-shadow") return e;- let [r] = n.match(Gn) || [];+ let [r] = n.match(qn) || [];if (!r) return e;- let i = n.replace(r, ""), a = +!!go.has(t);+ let i = n.replace(r, ""), a = +!!vo.has(t);return r !== n && (a *= 100), t + "(" + a + i + ")";}-var vo = /\b([a-z-]*)\(.*?\)/gu, yo = {- ...wr,+var bo = /\b([a-z-]*)\(.*?\)/gu, xo = {+ ...Er,getAnimatableNone: (e) => {- let t = e.match(vo);- return t ? t.map(_o).join(" ") : e;+ let t = e.match(bo);+ return t ? t.map(yo).join(" ") : e;}-}, bo = {- ...wr,+}, So = {+ ...Er,getAnimatableNone: (e) => {- let t = wr.parse(e);- return wr.createTransformer(e)(t.map((e) => typeof e == "number" ? 0 : typeof e == "object" ? {+ let t = Er.parse(e);+ return Er.createTransformer(e)(t.map((e) => typeof e == "number" ? 0 : typeof e == "object" ? {...e,alpha: 1} : e));}-}, xo = {- ...Vn,+}, Co = {+ ...Un,transform: Math.round-}, So = {+}, wo = {borderWidth: B,borderTopWidth: B,borderRightWidth: B,@@ -3890,18 +3890,18 @@ var vo = /\b([a-z-]*)\(.*?\)/gu, yo = {fontSize: B,backgroundPositionX: B,backgroundPositionY: B,- rotate: nr,- pathRotation: nr,- rotateX: nr,- rotateY: nr,- rotateZ: nr,- scale: Un,- scaleX: Un,- scaleY: Un,- scaleZ: Un,- skew: nr,- skewX: nr,- skewY: nr,+ rotate: ir,+ pathRotation: ir,+ rotateX: ir,+ rotateY: ir,+ rotateZ: ir,+ scale: Gn,+ scaleX: Gn,+ scaleY: Gn,+ scaleZ: Gn,+ skew: ir,+ skewX: ir,+ skewY: ir,distance: B,translateX: B,translateY: B,@@ -3911,53 +3911,53 @@ var vo = /\b([a-z-]*)\(.*?\)/gu, yo = {z: B,perspective: B,transformPerspective: B,- opacity: Hn,- originX: or,- originY: or,+ opacity: Wn,+ originX: cr,+ originY: cr,originZ: B,- zIndex: xo,- fillOpacity: Hn,- strokeOpacity: Hn,- numOctaves: xo-}, Co = {- ...So,- color: cr,- backgroundColor: cr,- outlineColor: cr,- fill: cr,- stroke: cr,- borderColor: cr,- borderTopColor: cr,- borderRightColor: cr,- borderBottomColor: cr,- borderLeftColor: cr,- filter: yo,- WebkitFilter: yo,- mask: bo,- WebkitMask: bo-}, wo = (e) => Co[e], To = /*@__PURE__*/ new Set([yo, bo]);-function Eo(e, t) {- let n = wo(e);- return To.has(n) || (n = wr), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;+ zIndex: Co,+ fillOpacity: Wn,+ strokeOpacity: Wn,+ numOctaves: Co+}, To = {+ ...wo,+ color: ur,+ backgroundColor: ur,+ outlineColor: ur,+ fill: ur,+ stroke: ur,+ borderColor: ur,+ borderTopColor: ur,+ borderRightColor: ur,+ borderBottomColor: ur,+ borderLeftColor: ur,+ filter: xo,+ WebkitFilter: xo,+ mask: So,+ WebkitMask: So+}, Eo = (e) => To[e], Do = /*@__PURE__*/ new Set([xo, So]);+function Oo(e, t) {+ let n = Eo(e);+ return Do.has(n) || (n = Er), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;}//#endregion//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs-var Do = /* @__PURE__ */ new Set([+var ko = /* @__PURE__ */ new Set(["auto","none","0"]);-function Oo(e, t, n) {+function Ao(e, t, n) {let r = 0, i;for (; r < e.length && !i;) {let t = e[r];- typeof t == "string" && !Do.has(t) && _r(t).values.length && (i = e[r]), r++;+ typeof t == "string" && !ko.has(t) && yr(t).values.length && (i = e[r]), r++;}- if (i && n) for (let r of t) e[r] = Eo(n, i);+ if (i && n) for (let r of t) e[r] = Oo(n, i);}//#endregion//#region node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs-var ko = class extends Yi {+var jo = class extends Zi {constructor(e, t, n, r, i) {super(e, t, n, r, i, !0);}@@ -3967,34 +3967,34 @@ var ko = class extends Yi {super.readKeyframes();for (let n = 0; n < e.length; n++) {let r = e[n];- if (typeof r == "string" && (r = r.trim(), Rn(r))) {- let i = Wa(r, t.current);+ if (typeof r == "string" && (r = r.trim(), Bn(r))) {+ let i = Ka(r, t.current);i !== void 0 && (e[n] = i), n === e.length - 1 && (this.finalKeyframe = r);}}- if (this.resolveNoneKeyframes(), !Ja.has(n) || e.length !== 2) return;- let [r, i] = e, a = mo(r), o = mo(i);- if (Bn(r) !== Bn(i) && Vi[n]) {+ if (this.resolveNoneKeyframes(), !Xa.has(n) || e.length !== 2) return;+ let [r, i] = e, a = go(r), o = go(i);+ if (Hn(r) !== Hn(i) && Ui[n]) {this.needsMeasurement = !0;return;}if (a !== o) {- if (Li(a) && Li(o)) for (let t = 0; t < e.length; t++) {+ if (zi(a) && zi(o)) for (let t = 0; t < e.length; t++) {let n = e[t];typeof n == "string" && (e[t] = parseFloat(n));}- else Vi[n] && (this.needsMeasurement = !0);+ else Ui[n] && (this.needsMeasurement = !0);}}resolveNoneKeyframes() {let { unresolvedKeyframes: e, name: t } = this, n = [];- for (let t = 0; t < e.length; t++) (e[t] === null || ho(e[t])) && n.push(t);- n.length && Oo(e, n, t);+ for (let t = 0; t < e.length; t++) (e[t] === null || _o(e[t])) && n.push(t);+ n.length && Ao(e, n, t);}measureInitialState() {let { element: e, unresolvedKeyframes: t, name: n } = this;if (!e || !e.current) return;- n === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = Vi[n](e.measureViewportBox(), window.getComputedStyle(e.current)), t[0] = this.measuredOrigin;+ n === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = Ui[n](e.measureViewportBox(), window.getComputedStyle(e.current)), t[0] = this.measuredOrigin;let r = t[t.length - 1];r !== void 0 && e.getValue(n, r).jump(r, !1);}@@ -4004,11 +4004,11 @@ var ko = class extends Yi {let r = e.getValue(t);r && r.jump(this.measuredOrigin, !1);let i = n.length - 1, a = n[i];- n[i] = Vi[t](e.measureViewportBox(), window.getComputedStyle(e.current)), a !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = a), this.removedTransforms?.length && this.removedTransforms.forEach(([t, n]) => {+ n[i] = Ui[t](e.measureViewportBox(), window.getComputedStyle(e.current)), a !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = a), this.removedTransforms?.length && this.removedTransforms.forEach(([t, n]) => {e.getValue(t).set(n);}), this.resolveNoneKeyframes();}-}, Ao = [+}, Mo = ["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius",@@ -4016,7 +4016,7 @@ var ko = class extends Yi {];//#endregion//#region node_modules/motion-dom/dist/es/utils/resolve-elements.mjs-function jo(e, t, n) {+function No(e, t, n) {if (e == null) return [];if (e instanceof EventTarget) return [e];if (typeof e == "string") {@@ -4029,34 +4029,34 @@ function jo(e, t, n) {}//#endregion//#region node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs-var Mo = (e, t) => t && typeof e == "number" ? t.transform(e) : e;+var Po = (e, t) => t && typeof e == "number" ? t.transform(e) : e;//#endregion//#region node_modules/motion-dom/dist/es/utils/is-html-element.mjs-function No(e) {- return Gt(e) && "offsetHeight" in e && !("ownerSVGElement" in e);+function Fo(e) {+ return qt(e) && "offsetHeight" in e && !("ownerSVGElement" in e);}//#endregion//#region node_modules/motion-dom/dist/es/frameloop/microtask.mjs-var { schedule: Po, cancel: Fo } = /* @__PURE__ */ Dn(queueMicrotask, !1), Io = {+var { schedule: Io, cancel: Lo } = /* @__PURE__ */ kn(queueMicrotask, !1), Ro = {x: !1,y: !1};-function Lo() {- return Io.x || Io.y;+function zo() {+ return Ro.x || Ro.y;}//#endregion//#region node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs-function Ro(e) {- return e === "x" || e === "y" ? Io[e] ? null : (Io[e] = !0, () => {- Io[e] = !1;- }) : Io.x || Io.y ? null : (Io.x = Io.y = !0, () => {- Io.x = Io.y = !1;+function Bo(e) {+ return e === "x" || e === "y" ? Ro[e] ? null : (Ro[e] = !0, () => {+ Ro[e] = !1;+ }) : Ro.x || Ro.y ? null : (Ro.x = Ro.y = !0, () => {+ Ro.x = Ro.y = !1;});}//#endregion//#region node_modules/motion-dom/dist/es/gestures/utils/setup.mjs-function zo(e, t) {- let n = jo(e), r = new AbortController();+function Vo(e, t) {+ let n = No(e), r = new AbortController();return [n,{@@ -4069,11 +4069,11 @@ function zo(e, t) {}//#endregion//#region node_modules/motion-dom/dist/es/gestures/hover.mjs-function Bo(e) {- return !(e.pointerType === "touch" || Lo());+function Ho(e) {+ return !(e.pointerType === "touch" || zo());}-function Vo(e, t, n = {}) {- let [r, i, a] = zo(e, n);+function Uo(e, t, n = {}) {+ let [r, i, a] = Vo(e, n);return r.forEach((e) => {let n = !1, r = !1, a, o = () => {e.removeEventListener("pointerleave", u);@@ -4093,7 +4093,7 @@ function Vo(e, t, n = {}) {}};e.addEventListener("pointerenter", (n) => {- if (!Bo(n)) return;+ if (!Ho(n)) return;r = !1;let o = t(e, n);typeof o == "function" && (a = o, e.addEventListener("pointerleave", u, i));@@ -4102,124 +4102,124 @@ function Vo(e, t, n = {}) {}//#endregion//#region node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs-var Ho = (e, t) => t ? e === t || Ho(e, t.parentElement) : !1, Uo = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, Wo = /* @__PURE__ */ new Set([+var Wo = (e, t) => t ? e === t || Wo(e, t.parentElement) : !1, Go = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, Ko = /* @__PURE__ */ new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);-function Go(e) {- return Wo.has(e.tagName) || e.isContentEditable === !0;+function qo(e) {+ return Ko.has(e.tagName) || e.isContentEditable === !0;}-var Ko = /* @__PURE__ */ new Set([+var Jo = /* @__PURE__ */ new Set(["INPUT","SELECT","TEXTAREA"]);-function qo(e) {- return Ko.has(e.tagName) || e.isContentEditable === !0;+function Yo(e) {+ return Jo.has(e.tagName) || e.isContentEditable === !0;}//#endregion//#region node_modules/motion-dom/dist/es/gestures/press/utils/state.mjs-var Jo = /* @__PURE__ */ new WeakSet();+var Xo = /* @__PURE__ */ new WeakSet();//#endregion//#region node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs-function Yo(e) {+function Zo(e) {return (t) => {t.key === "Enter" && e(t);};}-function Xo(e, t) {+function Qo(e, t) {e.dispatchEvent(new PointerEvent("pointer" + t, {isPrimary: !0,bubbles: !0}));}-var Zo = (e, t) => {+var $o = (e, t) => {let n = e.currentTarget;if (!n) return;- let r = Yo(() => {- if (Jo.has(n)) return;- Xo(n, "down");- let e = Yo(() => {- Xo(n, "up");+ let r = Zo(() => {+ if (Xo.has(n)) return;+ Qo(n, "down");+ let e = Zo(() => {+ Qo(n, "up");});- n.addEventListener("keyup", e, t), n.addEventListener("blur", () => Xo(n, "cancel"), t);+ n.addEventListener("keyup", e, t), n.addEventListener("blur", () => Qo(n, "cancel"), t);});n.addEventListener("keydown", r, t), n.addEventListener("blur", () => n.removeEventListener("keydown", r), t);};//#endregion//#region node_modules/motion-dom/dist/es/gestures/press/index.mjs-function Qo(e) {- return Uo(e) && !Lo();+function es(e) {+ return Go(e) && !zo();}-var $o = /* @__PURE__ */ new WeakSet();-function es(e, t, n = {}) {- let [r, i, a] = zo(e, n), o = (e) => {+var ts = /* @__PURE__ */ new WeakSet();+function ns(e, t, n = {}) {+ let [r, i, a] = Vo(e, n), o = (e) => {let r = e.currentTarget;- if (!Qo(e) || $o.has(e)) return;- Jo.add(r), n.stopPropagation && $o.add(e);+ if (!es(e) || ts.has(e)) return;+ Xo.add(r), n.stopPropagation && ts.add(e);let a = t(r, e), o = {...i,capture: !0}, s = (e, t) => {- window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), Jo.has(r) && Jo.delete(r), Qo(e) && typeof a == "function" && a(e, { success: t });+ window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), Xo.has(r) && Xo.delete(r), es(e) && typeof a == "function" && a(e, { success: t });}, c = (e) => {- s(e, r === window || r === document || n.useGlobalTarget || Ho(r, e.target));+ s(e, r === window || r === document || n.useGlobalTarget || Wo(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), No(e) && (e.addEventListener("focus", (e) => Zo(e, i)), !Go(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));+ (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), Fo(e) && (e.addEventListener("focus", (e) => $o(e, i)), !qo(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));}), a;}//#endregion//#region node_modules/motion-dom/dist/es/utils/is-svg-element.mjs-function ts(e) {- return Gt(e) && "ownerSVGElement" in e;+function rs(e) {+ return qt(e) && "ownerSVGElement" in e;}//#endregion//#region node_modules/motion-dom/dist/es/resize/handle-element.mjs-var ns = /* @__PURE__ */ new WeakMap(), rs, is = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : ts(r) && "getBBox" in r ? r.getBBox()[t] : r[n], as = /*@__PURE__*/ is("inline", "width", "offsetWidth"), os = /*@__PURE__*/ is("block", "height", "offsetHeight");-function ss({ target: e, borderBoxSize: t }) {- ns.get(e)?.forEach((n) => {+var is = /* @__PURE__ */ new WeakMap(), as, os = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : rs(r) && "getBBox" in r ? r.getBBox()[t] : r[n], ss = /*@__PURE__*/ os("inline", "width", "offsetWidth"), cs = /*@__PURE__*/ os("block", "height", "offsetHeight");+function ls({ target: e, borderBoxSize: t }) {+ is.get(e)?.forEach((n) => {n(e, {get width() {- return as(e, t);+ return ss(e, t);},get height() {- return os(e, t);+ return cs(e, t);}});});}-function cs(e) {- e.forEach(ss);+function us(e) {+ e.forEach(ls);}-function ls() {- typeof ResizeObserver > "u" || (rs = new ResizeObserver(cs));+function ds() {+ typeof ResizeObserver > "u" || (as = new ResizeObserver(us));}-function us(e, t) {- rs || ls();- let n = jo(e);+function fs(e, t) {+ as || ds();+ let n = No(e);return n.forEach((e) => {- let n = ns.get(e);- n || (n = /* @__PURE__ */ new Set(), ns.set(e, n)), n.add(t), rs?.observe(e);+ let n = is.get(e);+ n || (n = /* @__PURE__ */ new Set(), is.set(e, n)), n.add(t), as?.observe(e);}), () => {n.forEach((e) => {- let n = ns.get(e);- n?.delete(t), n?.size || rs?.unobserve(e);+ let n = is.get(e);+ n?.delete(t), n?.size || as?.unobserve(e);});};}//#endregion//#region node_modules/motion-dom/dist/es/resize/handle-window.mjs-var ds = /* @__PURE__ */ new Set(), fs;-function ps() {- fs = () => {+var ps = /* @__PURE__ */ new Set(), ms;+function hs() {+ ms = () => {let e = {get width() {return window.innerWidth;@@ -4228,49 +4228,49 @@ function ps() {return window.innerHeight;}};- ds.forEach((t) => t(e));- }, window.addEventListener("resize", fs);+ ps.forEach((t) => t(e));+ }, window.addEventListener("resize", ms);}-function ms(e) {- return ds.add(e), fs || ps(), () => {- ds.delete(e), !ds.size && typeof fs == "function" && (window.removeEventListener("resize", fs), fs = void 0);+function gs(e) {+ return ps.add(e), ms || hs(), () => {+ ps.delete(e), !ps.size && typeof ms == "function" && (window.removeEventListener("resize", ms), ms = void 0);};}//#endregion//#region node_modules/motion-dom/dist/es/resize/index.mjs-function hs(e, t) {- return typeof e == "function" ? ms(e) : us(e, t);+function _s(e, t) {+ return typeof e == "function" ? gs(e) : fs(e, t);}//#endregion//#region node_modules/motion-dom/dist/es/stats/buffer.mjs-var gs = {+var vs = {value: null,addProjectionMetrics: null};//#endregion//#region node_modules/motion-dom/dist/es/utils/is-svg-svg-element.mjs-function _s(e) {- return ts(e) && e.tagName === "svg";+function ys(e) {+ return rs(e) && e.tagName === "svg";}//#endregion//#region node_modules/motion-dom/dist/es/utils/transform.mjs-function vs(...e) {- let t = !Array.isArray(e[0]), n = t ? 0 : -1, r = e[0 + n], i = e[1 + n], a = e[2 + n], o = e[3 + n], s = li(i, a, o);+function bs(...e) {+ let t = !Array.isArray(e[0]), n = t ? 0 : -1, r = e[0 + n], i = e[1 + n], a = e[2 + n], o = e[3 + n], s = di(i, a, o);return t ? s(r) : s;}//#endregion//#region node_modules/motion-dom/dist/es/value/follow-value.mjs-function ys(e, t, n = {}) {+function xs(e, t, n = {}) {let r = e.get(), i = null, a = r, o, s = typeof r == "string" ? r.replace(/[\d.-]/g, "") : void 0, c = () => {i &&= (i.stop(), null), e.animation = void 0;}, l = () => {- let t = xs(e.get()), r = xs(a);+ let t = Cs(e.get()), r = Cs(a);if (t === r) {c();return;}let s = i ? i.getGeneratorVelocity() : e.getVelocity();- c(), i = new xi({+ c(), i = new Ci({keyframes: [t, r],velocity: s,type: "spring",@@ -4285,10 +4285,10 @@ function ys(e, t, n = {}) {});};if (e.attach((e, t) => {- a = e, o = (e) => t(bs(e, s)), On.postRender(u);- }, c), $a(t)) {+ a = e, o = (e) => t(Ss(e, s)), An.postRender(u);+ }, c), to(t)) {let r = n.skipInitialAnimation === !0, i = t.on("change", (t) => {- r ? (r = !1, e.jump(bs(t, s), !1)) : e.set(bs(t, s));+ r ? (r = !1, e.jump(Ss(t, s), !1)) : e.set(Ss(t, s));}), a = e.on("destroy", i);return () => {i(), a();@@ -4296,46 +4296,46 @@ function ys(e, t, n = {}) {}return c;}-function bs(e, t) {+function Ss(e, t) {return t ? e + t : e;}-function xs(e) {+function Cs(e) {return typeof e == "number" ? e : parseFloat(e);}//#endregion//#region node_modules/motion-dom/dist/es/value/types/utils/find.mjs-var Ss = [- ...po,- cr,- wr-], Cs = (e) => Ss.find(fo(e)), ws = () => ({+var ws = [+ ...ho,+ ur,+ Er+], Ts = (e) => ws.find(mo(e)), Es = () => ({translate: 0,scale: 1,origin: 0,originPoint: 0-}), Ts = () => ({- x: ws(),- y: ws()-}), Es = () => ({- min: 0,- max: 0}), Ds = () => ({x: Es(),y: Es()-}), Os = /* @__PURE__ */ new WeakMap();+}), Os = () => ({+ min: 0,+ max: 0+}), ks = () => ({+ x: Os(),+ y: Os()+}), As = /* @__PURE__ */ new WeakMap();//#endregion//#region node_modules/motion-dom/dist/es/render/utils/is-animation-controls.mjs-function ks(e) {+function js(e) {return typeof e == "object" && !!e && typeof e.start == "function";}//#endregion//#region node_modules/motion-dom/dist/es/render/utils/is-variant-label.mjs-function As(e) {+function Ms(e) {return typeof e == "string" || Array.isArray(e);}//#endregion//#region node_modules/motion-dom/dist/es/render/utils/variant-props.mjs-var js = [+var Ns = ["animate","whileInView","whileFocus",@@ -4343,29 +4343,29 @@ var js = ["whileTap","whileDrag","exit"-], Ms = ["initial", ...js];+], Ps = ["initial", ...Ns];//#endregion//#region node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs-function Ns(e) {- return ks(e.animate) || Ms.some((t) => As(e[t]));+function Fs(e) {+ return js(e.animate) || Ps.some((t) => Ms(e[t]));}-function Ps(e) {- return !!(Ns(e) || e.variants);+function Is(e) {+ return !!(Fs(e) || e.variants);}//#endregion//#region node_modules/motion-dom/dist/es/render/utils/motion-values.mjs-function Fs(e, t, n) {+function Ls(e, t, n) {for (let r in t) {let i = t[r], a = n[r];- if ($a(i)) e.addValue(r, i);- else if ($a(a)) e.addValue(r, ja(i, { owner: e }));+ if (to(i)) e.addValue(r, i);+ else if (to(a)) e.addValue(r, Na(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, ja(t === void 0 ? i : t, { owner: e }));+ e.addValue(r, Na(t === void 0 ? i : t, { owner: e }));}}}@@ -4374,18 +4374,18 @@ function Fs(e, t, n) {}//#endregion//#region node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.mjs-var Is = { current: null }, Ls = { current: !1 }, Rs = typeof window < "u";-function zs() {- if (Ls.current = !0, Rs) {+var Rs = { current: null }, zs = { current: !1 }, Bs = typeof window < "u";+function Vs() {+ if (zs.current = !0, Bs) {if (window.matchMedia) {- let e = window.matchMedia("(prefers-reduced-motion)"), t = () => Is.current = e.matches;+ let e = window.matchMedia("(prefers-reduced-motion)"), t = () => Rs.current = e.matches;e.addEventListener("change", t), t();- } else Is.current = !1;+ } else Rs.current = !1;}}//#endregion//#region node_modules/motion-dom/dist/es/render/VisualElement.mjs-var Bs = [+var Hs = ["AnimationStart","AnimationComplete","Update",@@ -4393,38 +4393,38 @@ var Bs = ["LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"-], Vs = {};-function Hs(e) {- Vs = e;+], Us = {};+function Ws(e) {+ Us = e;}-function Us() {- return Vs;+function Gs() {+ return Us;}-var Ws = class {+var Ks = 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 = Yi, 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 = Zi, 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 = Pn.now();- this.renderScheduledAt < e && (this.renderScheduledAt = e, On.render(this.render, !1, !0));+ let e = In.now();+ this.renderScheduledAt < e && (this.renderScheduledAt = e, An.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 = Ns(t), this.isVariantNode = Ps(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 = Fs(t), this.isVariantNode = Is(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 && $a(t) && t.set(c[e]);+ c[e] !== void 0 && to(t) && t.set(c[e]);}}mount(e) {if (this.hasBeenMounted) for (let e in this.initialValues) this.values.get(e)?.jump(this.initialValues[e]), this.latestValues[e] = this.initialValues[e];- this.current = e, Os.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (Ls.current || zs(), this.shouldReduceMotion = Is.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;+ this.current = e, As.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (zs.current || Vs(), this.shouldReduceMotion = Rs.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;}unmount() {- this.projection && this.projection.unmount(), kn(this.notifyUpdate), kn(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);+ this.projection && this.projection.unmount(), jn(this.notifyUpdate), jn(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && 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];@@ -4439,24 +4439,24 @@ var Ws = class {this.children.delete(e), this.enteringChildren && this.enteringChildren.delete(e);}bindToMotionValue(e, t) {- if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), t.accelerate && va.has(e) && this.current instanceof HTMLElement) {- let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new ca({+ if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), t.accelerate && ba.has(e) && this.current instanceof HTMLElement) {+ let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new ua({element: this.current,name: e,keyframes: r,times: i,ease: a,- duration: /* @__PURE__ */ Qt(o)+ duration: /* @__PURE__ */ en(o)}), c = n(s);this.valueSubscriptions.set(e, () => {c(), s.cancel();});return;}- let n = Ii.has(e);+ let n = Ri.has(e);n && this.onBindTransform && this.onBindTransform();let r = t.on("change", (t) => {- this.latestValues[e] = t, this.props.onUpdate && On.preRender(this.notifyUpdate), n && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();+ this.latestValues[e] = t, this.props.onUpdate && An.preRender(this.notifyUpdate), n && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();}), i;typeof window < "u" && window.MotionCheckAppearSync && (i = window.MotionCheckAppearSync(this, e, t)), this.valueSubscriptions.set(e, () => {r(), i && i();@@ -4467,8 +4467,8 @@ var Ws = class {}updateFeatures() {let e = "animation";- for (e in Vs) {- let t = Vs[e];+ for (e in Us) {+ let t = Us[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]) {@@ -4481,7 +4481,7 @@ var Ws = class {this.build(this.renderState, this.latestValues, this.props);}measureViewportBox() {- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : Ds();+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : ks();}getStaticValue(e) {return this.latestValues[e];@@ -4491,13 +4491,13 @@ var Ws = class {}update(e, t) {(e.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;- for (let t = 0; t < Bs.length; t++) {- let n = Bs[t];+ for (let t = 0; t < Hs.length; t++) {+ let n = Hs[t];this.propEventSubscriptions[n] && (this.propEventSubscriptions[n](), delete this.propEventSubscriptions[n]);let r = e["on" + n];r && (this.propEventSubscriptions[n] = this.on(n, r));}- this.prevMotionValues = Fs(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();+ this.prevMotionValues = Ls(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();}getProps() {return this.props;@@ -4533,11 +4533,11 @@ var Ws = class {getValue(e, t) {if (this.props.values && this.props.values[e]) return this.props.values[e];let n = this.values.get(e);- return n === void 0 && t !== void 0 && (n = ja(t === null ? void 0 : t, { owner: this }), this.addValue(e, n)), n;+ return n === void 0 && t !== void 0 && (n = Na(t === null ? void 0 : t, { 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" && (Wt(n) || Kt(n)) ? n = parseFloat(n) : !Cs(n) && wr.test(t) && (n = Eo(e, t)), this.setBaseTarget(e, $a(n) ? n.get() : n)), $a(n) ? n.get() : n;+ return n != null && (typeof n == "string" && (Kt(n) || Jt(n)) ? n = parseFloat(n) : !Ts(n) && Er.test(t) && (n = Oo(e, t)), this.setBaseTarget(e, to(n) ? n.get() : n)), to(n) ? n.get() : n;}setBaseTarget(e, t) {this.baseTarget[e] = t;@@ -4545,25 +4545,25 @@ var Ws = class {getBaseTarget(e) {let { initial: t } = this.props, n;if (typeof t == "string" || typeof t == "object") {- let r = Ka(this.props, t, this.presenceContext?.custom);+ let r = Ja(this.props, t, this.presenceContext?.custom);r && (n = r[e]);}if (t && n !== void 0) return n;let r = this.getBaseTargetFromProps(this.props, e);- return r !== void 0 && !$a(r) ? r : this.initialValues[e] !== void 0 && n === void 0 ? void 0 : this.baseTarget[e];+ return r !== void 0 && !to(r) ? r : this.initialValues[e] !== void 0 && n === void 0 ? void 0 : this.baseTarget[e];}on(e, t) {- return this.events[e] || (this.events[e] = new Zt()), this.events[e].add(t);+ return this.events[e] || (this.events[e] = new $t()), this.events[e].add(t);}notify(e, ...t) {this.events[e] && this.events[e].notify(...t);}scheduleRenderMicrotask() {- Po.render(this.render);+ Io.render(this.render);}-}, Gs = class extends Ws {+}, qs = class extends Ks {constructor() {- super(...arguments), this.KeyframeResolver = ko;+ super(...arguments), this.KeyframeResolver = jo;}sortInstanceNodePosition(e, t) {return e.compareDocumentPosition(t) & 2 ? 1 : -1;@@ -4578,11 +4578,11 @@ var Ws = class {handleChildMotionValue() {this.childSubscription && (this.childSubscription(), delete this.childSubscription);let { children: e } = this.props;- $a(e) && (this.childSubscription = e.on("change", (e) => {+ to(e) && (this.childSubscription = e.on("change", (e) => {this.current && (this.current.textContent = `${e}`);}));}-}, Ks = class {+}, Js = class {constructor(e) {this.isMounted = !1, this.node = e;}@@ -4590,7 +4590,7 @@ var Ws = class {};//#endregion//#region node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs-function qs({ top: e, left: t, right: n, bottom: r }) {+function Ys({ top: e, left: t, right: n, bottom: r }) {return {x: {min: t,@@ -4602,7 +4602,7 @@ function qs({ top: e, left: t, right: n, bottom: r }) {}};}-function Js({ x: e, y: t }) {+function Xs({ x: e, y: t }) {return {top: t.min,right: e.max,@@ -4610,7 +4610,7 @@ function Js({ x: e, y: t }) {left: e.min};}-function Ys(e, t) {+function Zs(e, t) {if (!t) return e;let n = t({x: e.left,@@ -4628,37 +4628,37 @@ function Ys(e, t) {}//#endregion//#region node_modules/motion-dom/dist/es/projection/utils/has-transform.mjs-function Xs(e) {+function Qs(e) {return e === void 0 || e === 1;}-function Zs({ scale: e, scaleX: t, scaleY: n }) {- return !Xs(e) || !Xs(t) || !Xs(n);+function $s({ scale: e, scaleX: t, scaleY: n }) {+ return !Qs(e) || !Qs(t) || !Qs(n);}-function Qs(e) {- return Zs(e) || $s(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY;+function ec(e) {+ return $s(e) || tc(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY;}-function $s(e) {- return ec(e.x) || ec(e.y);+function tc(e) {+ return nc(e.x) || nc(e.y);}-function ec(e) {+function nc(e) {return e && e !== "0%";}//#endregion//#region node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs-function tc(e, t, n) {+function rc(e, t, n) {return n + t * (e - n);}-function nc(e, t, n, r, i) {- return i !== void 0 && (e = tc(e, i, r)), tc(e, n, r) + t;+function ic(e, t, n, r, i) {+ return i !== void 0 && (e = rc(e, i, r)), rc(e, n, r) + t;}-function rc(e, t = 0, n = 1, r, i) {- e.min = nc(e.min, t, n, r, i), e.max = nc(e.max, t, n, r, i);+function ac(e, t = 0, n = 1, r, i) {+ e.min = ic(e.min, t, n, r, i), e.max = ic(e.max, t, n, r, i);}-function ic(e, { x: t, y: n }) {- rc(e.x, t.translate, t.scale, t.originPoint), rc(e.y, n.translate, n.scale, n.originPoint);+function oc(e, { x: t, y: n }) {+ ac(e.x, t.translate, t.scale, t.originPoint), ac(e.y, n.translate, n.scale, n.originPoint);}-var ac = .999999999999, oc = 1.0000000000001;-function sc(e, t, n, r = !1) {+var sc = .999999999999, cc = 1.0000000000001;+function lc(e, t, n, r = !1) {let i = n.length;if (!i) return;t.x = t.y = 1;@@ -4666,44 +4666,44 @@ function sc(e, t, n, r = !1) {for (let s = 0; s < i; s++) {a = n[s], o = a.projectionDelta;let { visualElement: i } = a.options;- i && i.props.style && i.props.style.display === "contents" || (r && a.options.layoutScroll && a.scroll && a !== a.root && (cc(e.x, -a.scroll.offset.x), cc(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, ic(e, o)), r && Qs(a.latestValues) && dc(e, a.latestValues, a.layout?.layoutBox));+ i && i.props.style && i.props.style.display === "contents" || (r && a.options.layoutScroll && a.scroll && a !== a.root && (uc(e.x, -a.scroll.offset.x), uc(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, oc(e, o)), r && ec(a.latestValues) && pc(e, a.latestValues, a.layout?.layoutBox));}- t.x < oc && t.x > ac && (t.x = 1), t.y < oc && t.y > ac && (t.y = 1);+ t.x < cc && t.x > sc && (t.x = 1), t.y < cc && t.y > sc && (t.y = 1);}-function cc(e, t) {+function uc(e, t) {e.min += t, e.max += t;}-function lc(e, t, n, r, i = .5) {- rc(e, t, n, Or(e.min, e.max, i), r);+function dc(e, t, n, r, i = .5) {+ ac(e, t, n, Ar(e.min, e.max, i), r);}-function uc(e, t) {+function fc(e, t) {return typeof e == "string" ? parseFloat(e) / 100 * (t.max - t.min) : e;}-function dc(e, t, n) {+function pc(e, t, n) {let r = n ?? e;- lc(e.x, uc(t.x, r.x), t.scaleX, t.scale, t.originX), lc(e.y, uc(t.y, r.y), t.scaleY, t.scale, t.originY);+ dc(e.x, fc(t.x, r.x), t.scaleX, t.scale, t.originX), dc(e.y, fc(t.y, r.y), t.scaleY, t.scale, t.originY);}//#endregion//#region node_modules/motion-dom/dist/es/projection/utils/measure.mjs-function fc(e, t) {- return qs(Ys(e.getBoundingClientRect(), t));+function mc(e, t) {+ return Ys(Zs(e.getBoundingClientRect(), t));}-function pc(e, t, n) {- let r = fc(e, n), { scroll: i } = t;- return i && (cc(r.x, i.offset.x), cc(r.y, i.offset.y)), r;+function hc(e, t, n) {+ let r = mc(e, n), { scroll: i } = t;+ return i && (uc(r.x, i.offset.x), uc(r.y, i.offset.y)), r;}//#endregion//#region node_modules/motion-dom/dist/es/render/html/utils/build-transform.mjs-var mc = {+var gc = {x: "translateX",y: "translateY",z: "translateZ",transformPerspective: "perspective"-}, hc = Fi.length;-function gc(e, t, n) {+}, _c = Li.length;+function vc(e, t, n) {let r = "", i = !0;- for (let a = 0; a < hc; a++) {- let o = Fi[a], s = e[o];+ for (let a = 0; a < _c; a++) {+ let o = Li[a], s = e[o];if (s === void 0) continue;let c = !0;if (typeof s == "number") c = s === +!!o.startsWith("scale");@@ -4712,154 +4712,154 @@ function gc(e, t, n) {c = o.startsWith("scale") ? e === 1 : e === 0;}if (!c || n) {- let e = Mo(s, So[o]);+ let e = Po(s, wo[o]);if (!c) {i = !1;- let t = mc[o] || o;+ let t = gc[o] || o;r += `${t}(${e}) `;}n && (t[o] = e);}}let a = e.pathRotation;- return a && (i = !1, r += `rotate(${Mo(a, So.pathRotation)}) `), r = r.trim(), n ? r = n(t, i ? "" : r) : i && (r = "none"), r;+ return a && (i = !1, r += `rotate(${Po(a, wo.pathRotation)}) `), r = r.trim(), n ? r = n(t, i ? "" : r) : i && (r = "none"), r;}//#endregion//#region node_modules/motion-dom/dist/es/render/html/utils/build-styles.mjs-function _c(e, t, n) {+function yc(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 (Ii.has(e)) {+ if (Ri.has(e)) {o = !0;continue;}- if (In(e)) {+ if (Rn(e)) {i[e] = n;continue;}{- let t = Mo(n, So[e]);+ let t = Po(n, wo[e]);e.startsWith("origin") ? (s = !0, a[e] = t) : r[e] = t;}}- if (t.transform || (o || n ? r.transform = gc(t, e.transform, n) : r.transform &&= "none"), s) {+ if (t.transform || (o || n ? r.transform = vc(t, e.transform, n) : r.transform &&= "none"), s) {let { originX: e = "50%", originY: t = "50%", originZ: n = 0 } = a;r.transformOrigin = `${e} ${t} ${n}`;}}//#endregion//#region node_modules/motion-dom/dist/es/render/html/utils/render.mjs-function vc(e, { style: t, vars: n }, r, i) {+function bc(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]);}//#endregion//#region node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.mjs-function yc(e, t) {+function xc(e, t) {return t.max === t.min ? 0 : e / (t.max - t.min) * 100;}-var bc = { correct: (e, t) => {+var Sc = { correct: (e, t) => {if (!t.target) return e;if (typeof e == "string") {if (B.test(e)) e = parseFloat(e);else return e;}- return `${yc(e, t.target.x)}% ${yc(e, t.target.y)}%`;-} }, xc = { correct: (e, { treeScale: t, projectionDelta: n }) => {- let r = e, i = wr.parse(e);+ return `${xc(e, t.target.x)}% ${xc(e, t.target.y)}%`;+} }, Cc = { correct: (e, { treeScale: t, projectionDelta: n }) => {+ let r = e, i = Er.parse(e);if (i.length > 5) return r;- let a = wr.createTransformer(e), o = typeof i[0] == "number" ? 0 : 1, s = n.x.scale * t.x, c = n.y.scale * t.y;+ let a = Er.createTransformer(e), o = typeof i[0] == "number" ? 0 : 1, s = n.x.scale * t.x, c = n.y.scale * t.y;i[0 + o] /= s, i[1 + o] /= c;- let l = Or(s, c, .5);+ let l = Ar(s, c, .5);return typeof i[2 + o] == "number" && (i[2 + o] /= l), typeof i[3 + o] == "number" && (i[3 + o] /= l), a(i);-} }, Sc = {+} }, wc = {borderRadius: {- ...bc,- applyTo: [...Ao]+ ...Sc,+ applyTo: [...Mo]},- borderTopLeftRadius: bc,- borderTopRightRadius: bc,- borderBottomLeftRadius: bc,- borderBottomRightRadius: bc,- boxShadow: xc+ borderTopLeftRadius: Sc,+ borderTopRightRadius: Sc,+ borderBottomLeftRadius: Sc,+ borderBottomRightRadius: Sc,+ boxShadow: Cc};//#endregion//#region node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs-function Cc(e, { layout: t, layoutId: n }) {- return Ii.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!Sc[e] || e === "opacity");+function Tc(e, { layout: t, layoutId: n }) {+ return Ri.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!wc[e] || e === "opacity");}//#endregion//#region node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs-function wc(e, t, n) {+function Ec(e, t, n) {let r = e.style, i = t?.style, a = {};if (!r) return a;- for (let t in r) ($a(r[t]) || i && $a(i[t]) || Cc(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);+ for (let t in r) (to(r[t]) || i && to(i[t]) || Tc(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);return a;}//#endregion//#region node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.mjs-function Tc(e) {+function Dc(e) {return window.getComputedStyle(e);}-var Ec = class extends Gs {+var Oc = class extends qs {constructor() {- super(...arguments), this.type = "html", this.renderInstance = vc;+ super(...arguments), this.type = "html", this.renderInstance = bc;}mount(e) {e.style, super.mount(e);}readValueFromInstance(e, t) {- if (Ii.has(t)) return this.projection?.isProjecting ? ji(t) : Ni(e, t);+ if (Ri.has(t)) return this.projection?.isProjecting ? Ni(t) : Fi(e, t);{- let n = Tc(e), r = (In(t) ? n.getPropertyValue(t) : n[t]) || 0;+ let n = Dc(e), r = (Rn(t) ? n.getPropertyValue(t) : n[t]) || 0;return typeof r == "string" ? r.trim() : r;}}measureInstanceViewportBox(e, { transformPagePoint: t }) {- return fc(e, t);+ return mc(e, t);}build(e, t, n) {- _c(e, t, n.transformTemplate);+ yc(e, t, n.transformTemplate);}scrapeMotionValuesFromProps(e, t, n) {- return wc(e, t, n);+ return Ec(e, t, n);}-}, Dc = {+}, kc = {offset: "stroke-dashoffset",array: "stroke-dasharray"-}, Oc = {+}, Ac = {offset: "strokeDashoffset",array: "strokeDasharray"};-function kc(e, t, n = 1, r = 0, i = !0) {+function jc(e, t, n = 1, r = 0, i = !0) {e.pathLength = 1;- let a = i ? Dc : Oc;+ let a = i ? kc : Ac;e[a.offset] = `${-r}`, e[a.array] = `${t} ${n}`;}//#endregion//#region node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs-var Ac = [+var Mc = ["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];-function jc(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {- if (_c(e, s, l), c) {+function Nc(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {+ if (yc(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;d.transform && (f.transform = d.transform, delete d.transform), (f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete d.transformBox);- for (let e of Ac) d[e] !== void 0 && (f[e] = d[e], delete d[e]);- t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && kc(d, i, a, o, !1);+ for (let e of Mc) d[e] !== void 0 && (f[e] = d[e], delete d[e]);+ t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && jc(d, i, a, o, !1);}//#endregion//#region node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.mjs-var Mc = /* @__PURE__ */ new Set([+var Pc = /* @__PURE__ */ new Set(["baseFrequency","diffuseConstant","kernelMatrix",@@ -4883,68 +4883,68 @@ var Mc = /* @__PURE__ */ new Set(["startOffset","textLength","lengthAdjust"-]), Nc = (e) => typeof e == "string" && e.toLowerCase() === "svg";+]), Fc = (e) => typeof e == "string" && e.toLowerCase() === "svg";//#endregion//#region node_modules/motion-dom/dist/es/render/svg/utils/render.mjs-function Pc(e, t, n, r) {- vc(e, t, void 0, r);- for (let n in t.attrs) e.setAttribute(Mc.has(n) ? n : no(n), t.attrs[n]);+function Ic(e, t, n, r) {+ bc(e, t, void 0, r);+ for (let n in t.attrs) e.setAttribute(Pc.has(n) ? n : io(n), t.attrs[n]);}//#endregion//#region node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs-function Fc(e, t, n) {- let r = wc(e, t, n);- for (let n in e) if ($a(e[n]) || $a(t[n])) {- let t = Fi.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);+function Lc(e, t, n) {+ let r = Ec(e, t, n);+ for (let n in e) if (to(e[n]) || to(t[n])) {+ let t = Li.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);r[t] = e[n];}return r;}//#endregion//#region node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs-var Ic = class extends Gs {+var Rc = class extends qs {constructor() {- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = Ds;+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = ks;}getBaseTargetFromProps(e, t) {return e[t];}readValueFromInstance(e, t) {- if (Ii.has(t)) {- let e = wo(t);+ if (Ri.has(t)) {+ let e = Eo(t);return e && e.default || 0;}- return t = Mc.has(t) ? t : no(t), e.getAttribute(t);+ return t = Pc.has(t) ? t : io(t), e.getAttribute(t);}scrapeMotionValuesFromProps(e, t, n) {- return Fc(e, t, n);+ return Lc(e, t, n);}build(e, t, n) {- jc(e, t, this.isSVGTag, n.transformTemplate, n.style);+ Nc(e, t, this.isSVGTag, n.transformTemplate, n.style);}renderInstance(e, t, n, r) {- Pc(e, t, n, r);+ Ic(e, t, n, r);}mount(e) {- this.isSVGTag = Nc(e.tagName), super.mount(e);+ this.isSVGTag = Fc(e.tagName), super.mount(e);}-}, Lc = Ms.length;-function Rc(e) {+}, zc = Ps.length;+function Bc(e) {if (!e) return;if (!e.isControllingVariants) {- let t = e.parent && Rc(e.parent) || {};+ let t = e.parent && Bc(e.parent) || {};return e.props.initial !== void 0 && (t.initial = e.props.initial), t;}let t = {};- for (let n = 0; n < Lc; n++) {- let r = Ms[n], i = e.props[r];- (As(i) || i === !1) && (t[r] = i);+ for (let n = 0; n < zc; n++) {+ let r = Ps[n], i = e.props[r];+ (Ms(i) || i === !1) && (t[r] = i);}return t;}//#endregion//#region node_modules/motion-dom/dist/es/render/utils/shallow-compare.mjs-function zc(e, t) {+function Vc(e, t) {if (!Array.isArray(t)) return !1;let n = t.length;if (n !== e.length) return !1;@@ -4953,13 +4953,13 @@ function zc(e, t) {}//#endregion//#region node_modules/motion-dom/dist/es/render/utils/animation-state.mjs-var Bc = [...js].reverse(), Vc = js.length;-function Hc(e) {- return (t) => Promise.all(t.map(({ animation: t, options: n }) => lo(e, t, n)));+var Hc = [...Ns].reverse(), Uc = Ns.length;+function Wc(e) {+ return (t) => Promise.all(t.map(({ animation: t, options: n }) => fo(e, t, n)));}-function Uc(e) {- let t = Hc(e), n = Kc(), r = !0, i = !1, a = (t) => (n, r) => {- let i = qa(e, r, t === "exit" ? e.presenceContext?.custom : void 0);+function Gc(e) {+ let t = Wc(e), n = Jc(), r = !0, i = !1, a = (t) => (n, r) => {+ let i = Ya(e, r, t === "exit" ? e.presenceContext?.custom : void 0);if (i) {let { transition: e, transitionEnd: t, ...r } = i;n = {@@ -4974,12 +4974,12 @@ function Uc(e) {t = n(e);}function s(o) {- let { props: s } = e, c = Rc(e.parent) || {}, l = [], u = /* @__PURE__ */ new Set(), d = {}, f = Infinity;- for (let t = 0; t < Vc; t++) {- let p = Bc[t], m = n[p], h = s[p] === void 0 ? c[p] : s[p], g = As(h), _ = p === o ? m.isActive : null;+ let { props: s } = e, c = Bc(e.parent) || {}, l = [], u = /* @__PURE__ */ new Set(), d = {}, f = Infinity;+ for (let t = 0; t < Uc; t++) {+ let p = Hc[t], m = n[p], h = s[p] === void 0 ? c[p] : s[p], g = Ms(h), _ = p === o ? m.isActive : null;_ === !1 && (f = t);let v = h === c[p] && h !== s[p] && g;- if (v && (r || i) && e.manuallyAnimateOnMount && (v = !1), m.protectedKeys = { ...d }, !m.isActive && _ === null || !h && !m.prevProp || ks(h) || typeof h == "boolean") continue;+ if (v && (r || i) && e.manuallyAnimateOnMount && (v = !1), m.protectedKeys = { ...d }, !m.isActive && _ === null || !h && !m.prevProp || js(h) || typeof h == "boolean") continue;if (p === "exit" && m.isActive && _ !== !0) {m.prevResolvedValues && (d = {...d,@@ -4987,7 +4987,7 @@ function Uc(e) {});continue;}- let y = Wc(m.prevProp, h), b = y || p === o && m.isActive && !v && g || t > f && g, x = !1, S = Array.isArray(h) ? h : [h], C = S.reduce(a(p), {});+ let y = Kc(m.prevProp, h), b = y || p === o && m.isActive && !v && g || t > f && g, x = !1, S = Array.isArray(h) ? h : [h], C = S.reduce(a(p), {});_ === !1 && (C = {});let { prevResolvedValues: w = {} } = m, T = {...w,@@ -5001,7 +5001,7 @@ function Uc(e) {let t = C[e], n = w[e];if (d.hasOwnProperty(e)) continue;let r = !1;- r = Ya(t) && Ya(n) ? !zc(t, n) || y : t !== n, r ? t == null ? u.add(e) : E(e) : t !== void 0 && u.has(e) ? E(e) : m.protectedKeys[e] = !0;+ r = Za(t) && Za(n) ? !Vc(t, n) || y : t !== n, r ? t == null ? u.add(e) : E(e) : t !== void 0 && u.has(e) ? E(e) : m.protectedKeys[e] = !0;}m.prevProp = h, m.prevResolvedValues = C, m.isActive && (d = {...d,@@ -5011,10 +5011,10 @@ function Uc(e) {b && (!D || x) && l.push(...S.map((t) => {let n = { type: p };if (typeof t == "string" && (r || i) && !D && e.manuallyAnimateOnMount && e.parent) {- let { parent: r } = e, i = qa(r, t);+ let { parent: r } = e, i = Ya(r, t);if (r.enteringChildren && i) {let { delayChildren: t } = i.transition || {};- n.delay = Ea(r.enteringChildren, e, t);+ n.delay = Oa(r.enteringChildren, e, t);}}return {@@ -5026,7 +5026,7 @@ function Uc(e) {if (u.size) {let t = {};if (typeof s.initial != "boolean") {- let n = qa(e, Array.isArray(s.initial) ? s.initial[0] : s.initial);+ let n = Ya(e, Array.isArray(s.initial) ? s.initial[0] : s.initial);n && n.transition && (t.transition = n.transition);}u.forEach((n) => {@@ -5050,14 +5050,14 @@ function Uc(e) {setAnimateFunction: o,getState: () => n,reset: () => {- n = Kc(), i = !0;+ n = Jc(), i = !0;}};}-function Wc(e, t) {- return typeof t == "string" ? t !== e : Array.isArray(t) ? !zc(t, e) : !1;+function Kc(e, t) {+ return typeof t == "string" ? t !== e : Array.isArray(t) ? !Vc(t, e) : !1;}-function Gc(e = !1) {+function qc(e = !1) {return {isActive: e,protectedKeys: {},@@ -5065,115 +5065,115 @@ function Gc(e = !1) {prevResolvedValues: {}};}-function Kc() {+function Jc() {return {- animate: Gc(!0),- whileInView: Gc(),- whileHover: Gc(),- whileTap: Gc(),- whileDrag: Gc(),- whileFocus: Gc(),- exit: Gc()+ animate: qc(!0),+ whileInView: qc(),+ whileHover: qc(),+ whileTap: qc(),+ whileDrag: qc(),+ whileFocus: qc(),+ exit: qc()};}//#endregion//#region node_modules/motion-dom/dist/es/projection/geometry/copy.mjs-function qc(e, t) {+function Yc(e, t) {e.min = t.min, e.max = t.max;}-function Jc(e, t) {- qc(e.x, t.x), qc(e.y, t.y);+function Xc(e, t) {+ Yc(e.x, t.x), Yc(e.y, t.y);}-function Yc(e, t) {+function Zc(e, t) {e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;}//#endregion//#region node_modules/motion-dom/dist/es/projection/geometry/delta-calc.mjs-var Xc = .9999, Zc = 1.0001, Qc = -.01, $c = .01;-function el(e) {+var Qc = .9999, $c = 1.0001, el = -.01, tl = .01;+function nl(e) {return e.max - e.min;}-function tl(e, t, n) {+function rl(e, t, n) {return Math.abs(e - t) <= n;}-function nl(e, t, n, r = .5) {- e.origin = r, e.originPoint = Or(t.min, t.max, e.origin), e.scale = el(n) / el(t), e.translate = Or(n.min, n.max, e.origin) - e.originPoint, (e.scale >= Xc && e.scale <= Zc || isNaN(e.scale)) && (e.scale = 1), (e.translate >= Qc && e.translate <= $c || isNaN(e.translate)) && (e.translate = 0);-}-function rl(e, t, n, r) {- nl(e.x, t.x, n.x, r ? r.originX : void 0), nl(e.y, t.y, n.y, r ? r.originY : void 0);-}-function il(e, t, n, r = 0) {- e.min = (r ? Or(n.min, n.max, r) : n.min) + t.min, e.max = e.min + el(t);+function il(e, t, n, r = .5) {+ e.origin = r, e.originPoint = Ar(t.min, t.max, e.origin), e.scale = nl(n) / nl(t), e.translate = Ar(n.min, n.max, e.origin) - e.originPoint, (e.scale >= Qc && e.scale <= $c || isNaN(e.scale)) && (e.scale = 1), (e.translate >= el && e.translate <= tl || isNaN(e.translate)) && (e.translate = 0);}function al(e, t, n, r) {- il(e.x, t.x, n.x, r?.x), il(e.y, t.y, n.y, r?.y);+ il(e.x, t.x, n.x, r ? r.originX : void 0), il(e.y, t.y, n.y, r ? r.originY : void 0);}function ol(e, t, n, r = 0) {- let i = r ? Or(n.min, n.max, r) : n.min;- e.min = t.min - i, e.max = e.min + el(t);+ e.min = (r ? Ar(n.min, n.max, r) : n.min) + t.min, e.max = e.min + nl(t);}function sl(e, t, n, r) {ol(e.x, t.x, n.x, r?.x), ol(e.y, t.y, n.y, r?.y);}+function cl(e, t, n, r = 0) {+ let i = r ? Ar(n.min, n.max, r) : n.min;+ e.min = t.min - i, e.max = e.min + nl(t);+}+function ll(e, t, n, r) {+ cl(e.x, t.x, n.x, r?.x), cl(e.y, t.y, n.y, r?.y);+}//#endregion//#region node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs-function cl(e, t, n, r, i) {- return e -= t, e = tc(e, 1 / n, r), i !== void 0 && (e = tc(e, 1 / i, r)), e;+function ul(e, t, n, r, i) {+ return e -= t, e = rc(e, 1 / n, r), i !== void 0 && (e = rc(e, 1 / i, r)), e;}-function ll(e, t = 0, n = 1, r = .5, i, a = e, o = e) {- if (rr.test(t) && (t = parseFloat(t), t = Or(o.min, o.max, t / 100) - o.min), typeof t != "number") return;- let s = Or(a.min, a.max, r);- e === a && (s -= t), e.min = cl(e.min, t, n, s, i), e.max = cl(e.max, t, n, s, i);+function dl(e, t = 0, n = 1, r = .5, i, a = e, o = e) {+ if (ar.test(t) && (t = parseFloat(t), t = Ar(o.min, o.max, t / 100) - o.min), typeof t != "number") return;+ let s = Ar(a.min, a.max, r);+ e === a && (s -= t), e.min = ul(e.min, t, n, s, i), e.max = ul(e.max, t, n, s, i);}-function ul(e, t, [n, r, i], a, o) {- ll(e, t[n], t[r], t[i], t.scale, a, o);+function fl(e, t, [n, r, i], a, o) {+ dl(e, t[n], t[r], t[i], t.scale, a, o);}-var dl = [+var pl = ["x","scaleX","originX"-], fl = [+], ml = ["y","scaleY","originY"];-function pl(e, t, n, r) {- ul(e.x, t, dl, n ? n.x : void 0, r ? r.x : void 0), ul(e.y, t, fl, n ? n.y : void 0, r ? r.y : void 0);+function hl(e, t, n, r) {+ fl(e.x, t, pl, n ? n.x : void 0, r ? r.x : void 0), fl(e.y, t, ml, n ? n.y : void 0, r ? r.y : void 0);}//#endregion//#region node_modules/motion-dom/dist/es/projection/geometry/utils.mjs-function ml(e) {+function gl(e) {return e.translate === 0 && e.scale === 1;}-function hl(e) {- return ml(e.x) && ml(e.y);-}-function gl(e, t) {- return e.min === t.min && e.max === t.max;-}-function _l(e, t) {- return gl(e.x, t.x) && gl(e.y, t.y);+function _l(e) {+ return gl(e.x) && gl(e.y);}function vl(e, t) {- return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max);+ return e.min === t.min && e.max === t.max;}function yl(e, t) {return vl(e.x, t.x) && vl(e.y, t.y);}-function bl(e) {- return el(e.x) / el(e.y);+function bl(e, t) {+ return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max);}function xl(e, t) {+ return bl(e.x, t.x) && bl(e.y, t.y);+}+function Sl(e) {+ return nl(e.x) / nl(e.y);+}+function Cl(e, t) {return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;}//#endregion//#region node_modules/motion-dom/dist/es/projection/utils/each-axis.mjs-function Sl(e) {+function wl(e) {return [e("x"), e("y")];}//#endregion//#region node_modules/motion-dom/dist/es/projection/styles/transform.mjs-function Cl(e, t, n) {+function Tl(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, rotate: t, pathRotation: i, rotateX: a, rotateY: o, skewX: s, skewY: c } = n;@@ -5184,81 +5184,81 @@ function Cl(e, t, n) {}//#endregion//#region node_modules/motion-dom/dist/es/projection/animation/mix-values.mjs-var wl = Ao.length, Tl = (e) => typeof e == "string" ? parseFloat(e) : e, El = (e) => typeof e == "number" || B.test(e);-function Dl(e, t, n, r, i, a) {- i ? (e.opacity = Or(0, n.opacity ?? 1, kl(r)), e.opacityExit = Or(t.opacity ?? 1, 0, Al(r))) : a && (e.opacity = Or(t.opacity ?? 1, n.opacity ?? 1, r));- for (let i = 0; i < wl; i++) {- let a = Ao[i], o = Ol(t, a), s = Ol(n, a);- (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || El(o) === El(s) ? (e[a] = Math.max(Or(Tl(o), Tl(s), r), 0), (rr.test(s) || rr.test(o)) && (e[a] += "%")) : e[a] = s);+var El = Mo.length, Dl = (e) => typeof e == "string" ? parseFloat(e) : e, Ol = (e) => typeof e == "number" || B.test(e);+function kl(e, t, n, r, i, a) {+ i ? (e.opacity = Ar(0, n.opacity ?? 1, jl(r)), e.opacityExit = Ar(t.opacity ?? 1, 0, Ml(r))) : a && (e.opacity = Ar(t.opacity ?? 1, n.opacity ?? 1, r));+ for (let i = 0; i < El; i++) {+ let a = Mo[i], o = Al(t, a), s = Al(n, a);+ (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || Ol(o) === Ol(s) ? (e[a] = Math.max(Ar(Dl(o), Dl(s), r), 0), (ar.test(s) || ar.test(o)) && (e[a] += "%")) : e[a] = s);}- (t.rotate || n.rotate) && (e.rotate = Or(t.rotate || 0, n.rotate || 0, r));+ (t.rotate || n.rotate) && (e.rotate = Ar(t.rotate || 0, n.rotate || 0, r));}-function Ol(e, t) {+function Al(e, t) {return e[t] === void 0 ? e.borderRadius : e[t];}-var kl = /*@__PURE__*/ jl(0, .5, mn), Al = /*@__PURE__*/ jl(.5, .95, Jt);-function jl(e, t, n) {- return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ Xt(e, t, r));+var jl = /*@__PURE__*/ Nl(0, .5, gn), Ml = /*@__PURE__*/ Nl(.5, .95, Xt);+function Nl(e, t, n) {+ return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ Qt(e, t, r));}//#endregion//#region node_modules/motion-dom/dist/es/animation/animate/single-value.mjs-function Ml(e, t, n) {- let r = $a(e) ? e : ja(e);- return r.start(Va("", r, t, n)), r.animation;+function Pl(e, t, n) {+ let r = to(e) ? e : Na(e);+ return r.start(Ua("", r, t, n)), r.animation;}//#endregion//#region node_modules/motion-dom/dist/es/events/add-dom-event.mjs-function Nl(e, t, n, r = { passive: !0 }) {+function Fl(e, t, n, r = { passive: !0 }) {return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);}//#endregion//#region node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.mjs-var Pl = (e, t) => e.depth - t.depth, Fl = class {+var Il = (e, t) => e.depth - t.depth, Ll = class {constructor() {this.children = [], this.isDirty = !1;}add(e) {- Bt(this.children, e), this.isDirty = !0;+ Ht(this.children, e), this.isDirty = !0;}remove(e) {- Vt(this.children, e), this.isDirty = !0;+ Ut(this.children, e), this.isDirty = !0;}forEach(e) {- this.isDirty && this.children.sort(Pl), this.isDirty = !1, this.children.forEach(e);+ this.isDirty && this.children.sort(Il), this.isDirty = !1, this.children.forEach(e);}};//#endregion//#region node_modules/motion-dom/dist/es/utils/delay.mjs-function Il(e, t) {- let n = Pn.now(), r = ({ timestamp: i }) => {+function Rl(e, t) {+ let n = In.now(), r = ({ timestamp: i }) => {let a = i - n;- a >= t && (kn(r), e(a - t));+ a >= t && (jn(r), e(a - t));};- return On.setup(r, !0), () => kn(r);+ return An.setup(r, !0), () => jn(r);}//#endregion//#region node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs-function Ll(e) {- return $a(e) ? e.get() : e;+function zl(e) {+ return to(e) ? e.get() : e;}//#endregion//#region node_modules/motion-dom/dist/es/projection/shared/stack.mjs-var Rl = class {+var Bl = class {constructor() {this.members = [];}add(e) {- Bt(this.members, e);+ Ht(this.members, e);for (let t = this.members.length - 1; t >= 0; t--) {let n = this.members[t];if (n === e || n === this.lead || n === this.prevLead) continue;let r = n.instance;- (!r || r.isConnected === !1) && !n.snapshot && (Vt(this.members, n), n.unmount());+ (!r || r.isConnected === !1) && !n.snapshot && (Ut(this.members, n), n.unmount());}e.scheduleRender();}remove(e) {- if (Vt(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {+ if (Ut(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {let e = this.members[this.members.length - 1];e && this.promote(e);}@@ -5289,51 +5289,51 @@ var Rl = class {removeLeadSnapshot() {this.lead?.snapshot && (this.lead.snapshot = void 0);}-}, zl = {+}, Vl = {hasAnimatedSinceResize: !0,hasEverUpdated: !1-}, Bl = {+}, Hl = {nodes: 0,calculatedTargetDeltas: 0,calculatedProjections: 0-}, Vl = [+}, Ul = ["","X","Y","Z"-], Hl = 1e3, Ul = 0;-function Wl(e, t, n, r) {+], Wl = 1e3, Gl = 0;+function Kl(e, t, n, r) {let { latestValues: i } = t;i[e] && (n[e] = i[e], t.setStaticValue(e, 0), r && (r[e] = 0));}-function Gl(e) {+function ql(e) {if (e.hasCheckedOptimisedAppear = !0, e.root === e) return;let { visualElement: t } = e.options;if (!t) return;- let n = io(t);+ let n = oo(t);if (window.MotionHasOptimisedAnimation(n, "transform")) {let { layout: t, layoutId: r } = e.options;- window.MotionCancelOptimisedAnimation(n, "transform", On, !(t || r));+ window.MotionCancelOptimisedAnimation(n, "transform", An, !(t || r));}let { parent: r } = e;- r && !r.hasCheckedOptimisedAppear && Gl(r);+ r && !r.hasCheckedOptimisedAppear && ql(r);}-function Kl({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {+function Jl({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {return class {constructor(e = {}, n = t?.()) {- this.id = Ul++, 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 = Gl++, 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.layoutVersion = 0, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());}, this.updateProjection = () => {- this.projectionUpdateScheduled = !1, gs.value && (Bl.nodes = Bl.calculatedTargetDeltas = Bl.calculatedProjections = 0), this.nodes.forEach(Yl), this.nodes.forEach(iu), this.nodes.forEach(au), this.nodes.forEach(Xl), gs.addProjectionMetrics && gs.addProjectionMetrics(Bl);+ this.projectionUpdateScheduled = !1, vs.value && (Hl.nodes = Hl.calculatedTargetDeltas = Hl.calculatedProjections = 0), this.nodes.forEach(Zl), this.nodes.forEach(ou), this.nodes.forEach(su), this.nodes.forEach(Ql), vs.addProjectionMetrics && vs.addProjectionMetrics(Hl);}, this.resolvedRelativeTargetAt = 0, this.linkedParentVersion = 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 Fl());+ this.root === this && (this.nodes = new Ll());}addEventListener(e, t) {- return this.eventHandlers.has(e) || this.eventHandlers.set(e, new Zt()), this.eventHandlers.get(e).add(t);+ return this.eventHandlers.has(e) || this.eventHandlers.set(e, new $t()), this.eventHandlers.get(e).add(t);}notifyListeners(e, ...t) {let n = this.eventHandlers.get(e);@@ -5344,15 +5344,15 @@ function Kl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check}mount(t) {if (this.instance) return;- this.isSVG = ts(t) && !_s(t), this.instance = t;+ this.isSVG = rs(t) && !ys(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 && this.parent.children.add(this), this.root.hasTreeAnimated && (r || n) && (this.isLayoutDirty = !0), e) {let n, r = 0, i = () => this.root.updateBlockedByResize = !1;- On.read(() => {+ An.read(() => {r = window.innerWidth;}), e(t, () => {let e = window.innerWidth;- e !== r && (r = e, this.root.updateBlockedByResize = !0, n && n(), n = Il(i, 250), zl.hasAnimatedSinceResize && (zl.hasAnimatedSinceResize = !1, this.nodes.forEach(ru)));+ e !== r && (r = e, this.root.updateBlockedByResize = !0, n && n(), n = Rl(i, 250), Vl.hasAnimatedSinceResize && (Vl.hasAnimatedSinceResize = !1, this.nodes.forEach(au)));});}n && this.root.registerSharedNode(n, this), this.options.animate !== !1 && i && (n || r) && this.addEventListener("didUpdate", ({ delta: e, hasLayoutChanged: t, hasRelativeLayoutChanged: n, layout: r }) => {@@ -5360,23 +5360,23 @@ function Kl({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkthis.target = void 0, this.relativeTarget = void 0;return;}- let a = this.options.transition || i.getDefaultTransition() || fu, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = i.getProps(), c = !this.targetLayout || !yl(this.targetLayout, r), l = !t && n;+ let a = this.options.transition || i.getDefaultTransition() || mu, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = i.getProps(), c = !this.targetLayout || !xl(this.targetLayout, r), l = !t && n;if (this.options.layoutRoot || this.resumeFrom || l || t && (c || !this.currentAnimation)) {this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);let t = {- ...Na(a, "layout"),+ ...Fa(a, "layout"),onPlay: o,onComplete: s};(i.shouldReduceMotion || this.options.layoutRoot) && (t.delay = 0, t.type = !1), this.startAnimation(t), this.setAnimationOrigin(e, l, t.path);- } else t || ru(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();+ } else t || au(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();this.targetLayout = r;});}unmount() {this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);let e = this.getStack();- e && e.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), kn(this.updateProjection);+ e && e.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), jn(this.updateProjection);}blockUpdate() {this.updateManuallyBlocked = !0;@@ -5391,7 +5391,7 @@ function Kl({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkreturn this.isAnimationBlocked || this.parent && this.parent.isTreeAnimationBlocked() || !1;}startUpdate() {- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(ou), this.animationId++);+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(cu), this.animationId++);}getTransformTemplate() {let { visualElement: e } = this.options;@@ -5402,7 +5402,7 @@ function Kl({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkthis.options.onExitComplete && this.options.onExitComplete();return;}- if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && Gl(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;+ if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && ql(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;this.isLayoutDirty = !0;for (let e = 0; e < this.path.length; e++) {let t = this.path[e];@@ -5416,39 +5416,39 @@ function Kl({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkupdate() {if (this.updateScheduled = !1, this.isUpdateBlocked()) {let e = this.updateBlockedByResize;- this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach($l), this.nodes.forEach(Ql);+ this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(tu), this.nodes.forEach(eu);return;}if (this.animationId <= this.animationCommitId) {- this.nodes.forEach(eu);+ this.nodes.forEach(nu);return;}- this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(tu), this.nodes.forEach(nu), this.nodes.forEach(ql), this.nodes.forEach(Jl)) : this.nodes.forEach(eu), this.clearAllSnapshots();- let e = Pn.now();- An.delta = Ht(0, 1e3 / 60, e - An.timestamp), An.timestamp = e, An.isProcessing = !0, jn.update.process(An), jn.preRender.process(An), jn.render.process(An), An.isProcessing = !1;+ this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(ru), this.nodes.forEach(iu), this.nodes.forEach(Yl), this.nodes.forEach(Xl)) : this.nodes.forEach(nu), this.clearAllSnapshots();+ let e = In.now();+ Mn.delta = Wt(0, 1e3 / 60, e - Mn.timestamp), Mn.timestamp = e, Mn.isProcessing = !0, Nn.update.process(Mn), Nn.preRender.process(Mn), Nn.render.process(Mn), Mn.isProcessing = !1;}didUpdate() {- this.updateScheduled || (this.updateScheduled = !0, Po.read(this.scheduleUpdate));+ this.updateScheduled || (this.updateScheduled = !0, Io.read(this.scheduleUpdate));}clearAllSnapshots() {- this.nodes.forEach(Zl), this.sharedNodes.forEach(su);+ this.nodes.forEach($l), this.sharedNodes.forEach(lu);}scheduleUpdateProjection() {- this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, On.preRender(this.updateProjection, !1, !0));+ this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, An.preRender(this.updateProjection, !1, !0));}scheduleCheckAfterUnmount() {- On.postRender(() => {+ An.postRender(() => {this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();});}updateSnapshot() {- this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !el(this.snapshot.measuredBox.x) && !el(this.snapshot.measuredBox.y) && (this.snapshot = void 0));+ this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !nl(this.snapshot.measuredBox.x) && !nl(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.layoutVersion++, this.layoutCorrected ||= Ds(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);+ this.layout = this.measure(!1), this.layoutVersion++, this.layoutCorrected ||= ks(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);let { visualElement: t } = this.options;t && t.notify("LayoutMeasure", this.layout.layoutBox, e ? e.layoutBox : void 0);}@@ -5467,12 +5467,12 @@ function Kl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check}resetTransform() {if (!i) return;- let e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, t = this.projectionDelta && !hl(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;- e && this.instance && (t || Qs(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());+ let e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, t = this.projectionDelta && !_l(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;+ e && this.instance && (t || ec(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)), gu(n), {+ return e && (n = this.removeTransform(n)), vu(n), {animationId: this.root.animationId,measuredBox: t,layoutBox: n,@@ -5482,42 +5482,42 @@ function Kl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check}measurePageBox() {let { visualElement: e } = this.options;- if (!e) return Ds();+ if (!e) return ks();let t = e.measureViewportBox();- if (!(this.scroll?.wasRoot || this.path.some(vu))) {+ if (!(this.scroll?.wasRoot || this.path.some(bu))) {let { scroll: e } = this.root;- e && (cc(t.x, e.offset.x), cc(t.y, e.offset.y));+ e && (uc(t.x, e.offset.x), uc(t.y, e.offset.y));}return t;}removeElementScroll(e) {- let t = Ds();- if (Jc(t, e), this.scroll?.wasRoot) return t;+ let t = ks();+ if (Xc(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 && Jc(t, e), cc(t.x, i.offset.x), cc(t.y, i.offset.y));+ r !== this.root && i && a.layoutScroll && (i.wasRoot && Xc(t, e), uc(t.x, i.offset.x), uc(t.y, i.offset.y));}return t;}applyTransform(e, t = !1, n) {- let r = n || Ds();- Jc(r, e);+ let r = n || ks();+ Xc(r, e);for (let e = 0; e < this.path.length; e++) {let n = this.path[e];- !t && n.options.layoutScroll && n.scroll && n !== n.root && (cc(r.x, -n.scroll.offset.x), cc(r.y, -n.scroll.offset.y)), Qs(n.latestValues) && dc(r, n.latestValues, n.layout?.layoutBox);+ !t && n.options.layoutScroll && n.scroll && n !== n.root && (uc(r.x, -n.scroll.offset.x), uc(r.y, -n.scroll.offset.y)), ec(n.latestValues) && pc(r, n.latestValues, n.layout?.layoutBox);}- return Qs(this.latestValues) && dc(r, this.latestValues, this.layout?.layoutBox), r;+ return ec(this.latestValues) && pc(r, this.latestValues, this.layout?.layoutBox), r;}removeTransform(e) {- let t = Ds();- Jc(t, e);+ let t = ks();+ Xc(t, e);for (let e = 0; e < this.path.length; e++) {let n = this.path[e];- if (!Qs(n.latestValues)) continue;+ if (!ec(n.latestValues)) continue;let r;- n.instance && (Zs(n.latestValues) && n.updateSnapshot(), r = Ds(), Jc(r, n.measurePageBox())), pl(t, n.latestValues, n.snapshot?.layoutBox, r);+ n.instance && ($s(n.latestValues) && n.updateSnapshot(), r = ks(), Xc(r, n.measurePageBox())), hl(t, n.latestValues, n.snapshot?.layoutBox, r);}- return Qs(this.latestValues) && pl(t, this.latestValues), t;+ return ec(this.latestValues) && hl(t, this.latestValues), t;}setTargetDelta(e) {this.targetDelta = e, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;@@ -5533,7 +5533,7 @@ function Kl({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkthis.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;}forceRelativeParentToResolveTarget() {- this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== An.timestamp && this.relativeParent.resolveTargetDelta(!0);+ this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== Mn.timestamp && this.relativeParent.resolveTargetDelta(!0);}resolveTargetDelta(e = !1) {let t = this.getLead();@@ -5542,36 +5542,36 @@ function Kl({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkif (!(e || n && this.isSharedProjectionDirty || this.isProjectionDirty || this.parent?.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize)) return;let { layout: r, layoutId: i } = this.options;if (!this.layout || !(r || i)) return;- this.resolvedRelativeTargetAt = An.timestamp;+ this.resolvedRelativeTargetAt = Mn.timestamp;let a = this.getClosestProjectingParent();- a && this.linkedParentVersion !== a.layoutVersion && !a.options.layoutRoot && this.removeRelativeTarget(), !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 = Ds(), this.targetWithTransforms = Ds()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), al(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : Jc(this.target, this.layout.layoutBox), ic(this.target, this.targetDelta)) : Jc(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && !!a.resumingFrom == !!this.resumingFrom && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), gs.value && Bl.calculatedTargetDeltas++);+ a && this.linkedParentVersion !== a.layoutVersion && !a.options.layoutRoot && this.removeRelativeTarget(), !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 = ks(), this.targetWithTransforms = ks()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), sl(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : Xc(this.target, this.layout.layoutBox), oc(this.target, this.targetDelta)) : Xc(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && !!a.resumingFrom == !!this.resumingFrom && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), vs.value && Hl.calculatedTargetDeltas++);}getClosestProjectingParent() {- if (!(!this.parent || Zs(this.parent.latestValues) || $s(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();+ if (!(!this.parent || $s(this.parent.latestValues) || tc(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.linkedParentVersion = e.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = Ds(), this.relativeTargetOrigin = Ds(), sl(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), Jc(this.relativeTarget, this.relativeTargetOrigin);+ this.relativeParent = e, this.linkedParentVersion = e.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = ks(), this.relativeTargetOrigin = ks(), ll(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), Xc(this.relativeTarget, this.relativeTargetOrigin);}removeRelativeTarget() {this.relativeParent = this.relativeTarget = void 0;}calcProjection() {let e = this.getLead(), t = !!this.resumingFrom || this !== e, n = !0;- if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === An.timestamp && (n = !1), n) return;+ if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === Mn.timestamp && (n = !1), n) return;let { layout: r, layoutId: i } = this.options;if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(r || i)) return;- Jc(this.layoutCorrected, this.layout.layoutBox);+ Xc(this.layoutCorrected, this.layout.layoutBox);let a = this.treeScale.x, o = this.treeScale.y;- sc(this.layoutCorrected, this.treeScale, this.path, t), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = Ds());+ lc(this.layoutCorrected, this.treeScale, this.path, t), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = ks());let { target: s } = e;if (!s) {this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());return;}- !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Yc(this.prevProjectionDelta.x, this.projectionDelta.x), Yc(this.prevProjectionDelta.y, this.projectionDelta.y)), rl(this.projectionDelta, this.layoutCorrected, s, this.latestValues), (this.treeScale.x !== a || this.treeScale.y !== o || !xl(this.projectionDelta.x, this.prevProjectionDelta.x) || !xl(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), gs.value && Bl.calculatedProjections++;+ !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Zc(this.prevProjectionDelta.x, this.projectionDelta.x), Zc(this.prevProjectionDelta.y, this.projectionDelta.y)), al(this.projectionDelta, this.layoutCorrected, s, this.latestValues), (this.treeScale.x !== a || this.treeScale.y !== o || !Cl(this.projectionDelta.x, this.prevProjectionDelta.x) || !Cl(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), vs.value && Hl.calculatedProjections++;}hide() {this.isVisible = !1;@@ -5587,22 +5587,22 @@ function Kl({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkthis.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);}createProjectionDeltas() {- this.prevProjectionDelta = Ts(), this.projectionDelta = Ts(), this.projectionDeltaWithTransform = Ts();+ this.prevProjectionDelta = Ds(), this.projectionDelta = Ds(), this.projectionDeltaWithTransform = Ds();}setAnimationOrigin(e, t = !1, n) {- let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = Ts();+ let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = Ds();(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !t;- let s = Ds(), c = (r ? r.source : void 0) !== (this.layout ? this.layout.source : void 0), l = this.getStack(), u = !l || l.members.length <= 1, d = !!(c && !u && this.options.crossfade === !0 && !this.path.some(du));+ let s = ks(), c = (r ? r.source : void 0) !== (this.layout ? this.layout.source : void 0), l = this.getStack(), u = !l || l.members.length <= 1, d = !!(c && !u && this.options.crossfade === !0 && !this.path.some(pu));this.animationProgress = 0;let f, p = n?.interpolateProjection(e);this.mixTargetDelta = (t) => {let n = t / 1e3, r = p?.(n);- r ? (o.x.translate = r.x, o.x.scale = Or(e.x.scale, 1, n), o.x.origin = e.x.origin, o.x.originPoint = e.x.originPoint, o.y.translate = r.y, o.y.scale = Or(e.y.scale, 1, n), o.y.origin = e.y.origin, o.y.originPoint = e.y.originPoint) : (cu(o.x, e.x, n), cu(o.y, e.y, n)), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (sl(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), uu(this.relativeTarget, this.relativeTargetOrigin, s, n), f && _l(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= Ds(), Jc(f, this.relativeTarget)), c && (this.animationValues = a, Dl(a, i, this.latestValues, n, d, u)), r && r.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;+ r ? (o.x.translate = r.x, o.x.scale = Ar(e.x.scale, 1, n), o.x.origin = e.x.origin, o.x.originPoint = e.x.originPoint, o.y.translate = r.y, o.y.scale = Ar(e.y.scale, 1, n), o.y.origin = e.y.origin, o.y.originPoint = e.y.originPoint) : (uu(o.x, e.x, n), uu(o.y, e.y, n)), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ll(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), fu(this.relativeTarget, this.relativeTargetOrigin, s, n), f && yl(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= ks(), Xc(f, this.relativeTarget)), c && (this.animationValues = a, kl(a, i, this.latestValues, n, d, u)), r && 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 &&= (kn(this.pendingAnimation), void 0), this.pendingAnimation = On.update(() => {- zl.hasAnimatedSinceResize = !0, this.motionValue ||= ja(0), this.motionValue.jump(0, !1), this.currentAnimation = Ml(this.motionValue, [0, 1e3], {+ this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (jn(this.pendingAnimation), void 0), this.pendingAnimation = An.update(() => {+ Vl.hasAnimatedSinceResize = !0, this.motionValue ||= Na(0), this.motionValue.jump(0, !1), this.currentAnimation = Pl(this.motionValue, [0, 1e3], {...e,velocity: 0,isSync: !0,@@ -5621,23 +5621,23 @@ function Kl({ attachResizeListener: e, defaultParent: t, measureScroll: n, checke && e.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");}finishAnimation() {- this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Hl), this.currentAnimation.stop()), this.completeAnimation();+ this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Wl), this.currentAnimation.stop()), this.completeAnimation();}applyTransformsToTarget() {let e = this.getLead(), { targetWithTransforms: t, target: n, layout: r, latestValues: i } = e;if (!(!t || !n || !r)) {- if (this !== e && this.layout && r && _u(this.options.animationType, this.layout.layoutBox, r.layoutBox)) {- n = this.target || Ds();- let t = el(this.layout.layoutBox.x);+ if (this !== e && this.layout && r && yu(this.options.animationType, this.layout.layoutBox, r.layoutBox)) {+ n = this.target || ks();+ let t = nl(this.layout.layoutBox.x);n.x.min = e.target.x.min, n.x.max = n.x.min + t;- let r = el(this.layout.layoutBox.y);+ let r = nl(this.layout.layoutBox.y);n.y.min = e.target.y.min, n.y.max = n.y.min + r;}- Jc(t, n), dc(t, i), rl(this.projectionDeltaWithTransform, this.layoutCorrected, t, i);+ Xc(t, n), pc(t, i), al(this.projectionDeltaWithTransform, this.layoutCorrected, t, i);}}registerSharedNode(e, t) {- this.sharedNodes.has(e) || this.sharedNodes.set(e, new Rl()), this.sharedNodes.get(e).add(t);+ this.sharedNodes.has(e) || this.sharedNodes.set(e, new Bl()), this.sharedNodes.get(e).add(t);let n = t.options.initialPromotionConfig;t.promote({transition: n ? n.transition : void 0,@@ -5674,8 +5674,8 @@ function Kl({ attachResizeListener: e, defaultParent: t, measureScroll: n, checklet t = !1, { latestValues: n } = e;if ((n.z || n.rotate || n.rotateX || n.rotateY || n.rotateZ || n.skewX || n.skewY) && (t = !0), !t) return;let r = {};- n.z && Wl("z", e, r, this.animationValues);- for (let t = 0; t < Vl.length; t++) Wl(`rotate${Vl[t]}`, e, r, this.animationValues), Wl(`skew${Vl[t]}`, e, r, this.animationValues);+ n.z && Kl("z", e, r, this.animationValues);+ for (let t = 0; t < Ul.length; t++) Kl(`rotate${Ul[t]}`, e, r, this.animationValues), Kl(`skew${Ul[t]}`, e, r, this.animationValues);e.render();for (let t in r) e.setStaticValue(t, r[t]), this.animationValues && (this.animationValues[t] = r[t]);e.scheduleRender();@@ -5688,71 +5688,71 @@ function Kl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check}let n = this.getTransformTemplate();if (this.needsReset) {- this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = Ll(t?.pointerEvents) || "", e.transform = n ? n(this.latestValues, "") : "none";+ this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = zl(t?.pointerEvents) || "", e.transform = n ? n(this.latestValues, "") : "none";return;}let r = this.getLead();if (!this.projectionDelta || !this.layout || !r.target) {- this.options.layoutId && (e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = Ll(t?.pointerEvents) || ""), this.hasProjected && !Qs(this.latestValues) && (e.transform = n ? n({}, "") : "none", this.hasProjected = !1);+ this.options.layoutId && (e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = zl(t?.pointerEvents) || ""), this.hasProjected && !ec(this.latestValues) && (e.transform = n ? n({}, "") : "none", this.hasProjected = !1);return;}e.visibility = "";let i = r.animationValues || r.latestValues;this.applyTransformsToTarget();- let a = Cl(this.projectionDeltaWithTransform, this.treeScale, i);+ let a = Tl(this.projectionDeltaWithTransform, this.treeScale, i);n && (a = n(i, a)), e.transform = a;let { x: o, y: s } = this.projectionDelta;e.transformOrigin = `${o.origin * 100}% ${s.origin * 100}% 0`, e.opacity = r.animationValues ? r === this ? i.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : i.opacityExit : r === this ? i.opacity === void 0 ? "" : i.opacity : i.opacityExit === void 0 ? 0 : i.opacityExit;- for (let t in Sc) {+ for (let t in wc) {if (i[t] === void 0) continue;- let { correct: n, applyTo: o, isCSSVariable: s } = Sc[t], c = a === "none" ? i[t] : n(i[t], r);+ let { correct: n, applyTo: o, isCSSVariable: s } = wc[t], c = a === "none" ? i[t] : n(i[t], r);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 = r === this ? Ll(t?.pointerEvents) || "" : "none");+ this.options.layoutId && (e.pointerEvents = r === this ? zl(t?.pointerEvents) || "" : "none");}clearSnapshot() {this.resumeFrom = this.snapshot = void 0;}resetTree() {- this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(Ql), this.root.sharedNodes.clear();+ this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(eu), this.root.sharedNodes.clear();}};}-function ql(e) {+function Yl(e) {e.updateLayout();}-function Jl(e) {+function Xl(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;- if (i === "size") Sl((e) => {- let r = a ? t.measuredBox[e] : t.layoutBox[e], i = el(r);+ if (i === "size") wl((e) => {+ let r = a ? t.measuredBox[e] : t.layoutBox[e], i = nl(r);r.min = n[e].min, r.max = r.min + i;});else if (i === "x" || i === "y") {let e = i === "x" ? "y" : "x";- qc(a ? t.measuredBox[e] : t.layoutBox[e], n[e]);- } else _u(i, t.layoutBox, n) && Sl((r) => {- let i = a ? t.measuredBox[r] : t.layoutBox[r], o = el(n[r]);+ Yc(a ? t.measuredBox[e] : t.layoutBox[e], n[e]);+ } else yu(i, t.layoutBox, n) && wl((r) => {+ let i = a ? t.measuredBox[r] : t.layoutBox[r], o = nl(n[r]);i.max = i.min + o, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[r].max = e.relativeTarget[r].min + o);});- let o = Ts();- rl(o, n, t.layoutBox);- let s = Ts();- a ? rl(s, e.applyTransform(r, !0), t.measuredBox) : rl(s, n, t.layoutBox);- let c = !hl(o), l = !1;+ let o = Ds();+ al(o, n, t.layoutBox);+ let s = Ds();+ a ? al(s, e.applyTransform(r, !0), t.measuredBox) : al(s, n, t.layoutBox);+ let c = !_l(o), l = !1;if (!e.resumeFrom) {let r = e.getClosestProjectingParent();if (r && !r.resumeFrom) {let { snapshot: i, layout: a } = r;if (i && a) {- let o = e.options.layoutAnchor || void 0, s = Ds();- sl(s, t.layoutBox, i.layoutBox, o);- let c = Ds();- sl(c, n, a.layoutBox, o), yl(s, c) || (l = !0), r.options.layoutRoot && (e.relativeTarget = c, e.relativeTargetOrigin = s, e.relativeParent = r);+ let o = e.options.layoutAnchor || void 0, s = ks();+ ll(s, t.layoutBox, i.layoutBox, o);+ let c = ks();+ ll(c, n, a.layoutBox, o), xl(s, c) || (l = !0), r.options.layoutRoot && (e.relativeTarget = c, e.relativeTargetOrigin = s, e.relativeParent = r);}}}@@ -5770,59 +5770,59 @@ function Jl(e) {}e.options.transition = void 0;}-function Yl(e) {- gs.value && Bl.nodes++, 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 Zl(e) {+ vs.value && Hl.nodes++, 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 Xl(e) {+function Ql(e) {e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;}-function Zl(e) {+function $l(e) {e.clearSnapshot();}-function Ql(e) {+function eu(e) {e.clearMeasurements();}-function $l(e) {+function tu(e) {e.isLayoutDirty = !0, e.updateLayout();}-function eu(e) {+function nu(e) {e.isLayoutDirty = !1;}-function tu(e) {+function ru(e) {e.isAnimationBlocked && e.layout && !e.isLayoutDirty && (e.snapshot = e.layout, e.isLayoutDirty = !0);}-function nu(e) {+function iu(e) {let { visualElement: t } = e.options;t && t.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();}-function ru(e) {+function au(e) {e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;}-function iu(e) {+function ou(e) {e.resolveTargetDelta();}-function au(e) {+function su(e) {e.calcProjection();}-function ou(e) {+function cu(e) {e.resetSkewAndRotation();}-function su(e) {+function lu(e) {e.removeLeadSnapshot();}-function cu(e, t, n) {- e.translate = Or(t.translate, 0, n), e.scale = Or(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;+function uu(e, t, n) {+ e.translate = Ar(t.translate, 0, n), e.scale = Ar(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;}-function lu(e, t, n, r) {- e.min = Or(t.min, n.min, r), e.max = Or(t.max, n.max, r);+function du(e, t, n, r) {+ e.min = Ar(t.min, n.min, r), e.max = Ar(t.max, n.max, r);}-function uu(e, t, n, r) {- lu(e.x, t.x, n.x, r), lu(e.y, t.y, n.y, r);+function fu(e, t, n, r) {+ du(e.x, t.x, n.x, r), du(e.y, t.y, n.y, r);}-function du(e) {+function pu(e) {return e.animationValues && e.animationValues.opacityExit !== void 0;}-var fu = {+var mu = {duration: .45,ease: [.4,@@ -5830,53 +5830,53 @@ var fu = {.1,1]-}, pu = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), mu = pu("applewebkit/") && !pu("chrome/") ? Math.round : Jt;-function hu(e) {- e.min = mu(e.min), e.max = mu(e.max);+}, hu = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), gu = hu("applewebkit/") && !hu("chrome/") ? Math.round : Xt;+function _u(e) {+ e.min = gu(e.min), e.max = gu(e.max);}-function gu(e) {- hu(e.x), hu(e.y);+function vu(e) {+ _u(e.x), _u(e.y);}-function _u(e, t, n) {- return e === "position" || e === "preserve-aspect" && !tl(bl(t), bl(n), .2);+function yu(e, t, n) {+ return e === "position" || e === "preserve-aspect" && !rl(Sl(t), Sl(n), .2);}-function vu(e) {+function bu(e) {return e !== e.root && e.scroll?.wasRoot;}//#endregion//#region node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs-var yu = Kl({- attachResizeListener: (e, t) => Nl(e, "resize", t),+var xu = Jl({+ attachResizeListener: (e, t) => Fl(e, "resize", t),measureScroll: () => ({x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,y: document.documentElement.scrollTop || document.body?.scrollTop || 0}),checkIsScrollRoot: () => !0-}), bu = { current: void 0 }, xu = Kl({+}), Su = { current: void 0 }, Cu = Jl({measureScroll: (e) => ({x: e.scrollLeft,y: e.scrollTop}),defaultParent: () => {- if (!bu.current) {- let e = new yu({});- e.mount(window), e.setOptions({ layoutScroll: !0 }), bu.current = e;+ if (!Su.current) {+ let e = new xu({});+ e.mount(window), e.setOptions({ layoutScroll: !0 }), Su.current = e;}- return bu.current;+ return Su.current;},resetTransform: (e, t) => {e.style.transform = t === void 0 ? "none" : t;},checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed"-}), Su = (0, I.createContext)({+}), wu = (0, I.createContext)({transformPagePoint: (e) => e,isStatic: !1,reducedMotion: "never"});//#endregion//#region node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs-function Cu(e = !0) {- let t = (0, I.useContext)(zt);+function Tu(e = !0) {+ let t = (0, I.useContext)(Vt);if (t === null) return [!0, null];let { isPresent: n, onExitComplete: r, register: i } = t, a = (0, I.useId)();(0, I.useEffect)(() => {@@ -5891,7 +5891,7 @@ function Cu(e = !0) {}//#endregion//#region node_modules/framer-motion/dist/es/context/LazyContext.mjs-var wu = (0, I.createContext)({ strict: !1 }), Tu = {+var Eu = (0, I.createContext)({ strict: !1 }), Du = {animation: ["animate","variants",@@ -5928,98 +5928,98 @@ var wu = (0, I.createContext)({ strict: !1 }), Tu = {"onViewportLeave"],layout: ["layout", "layoutId"]-}, Eu = !1;-function Du() {- if (Eu) return;+}, Ou = !1;+function ku() {+ if (Ou) return;let e = {};- for (let t in Tu) e[t] = { isEnabled: (e) => Tu[t].some((t) => !!e[t]) };- Hs(e), Eu = !0;+ for (let t in Du) e[t] = { isEnabled: (e) => Du[t].some((t) => !!e[t]) };+ Ws(e), Ou = !0;}-function Ou() {- return Du(), Us();+function Au() {+ return ku(), Gs();}//#endregion//#region node_modules/framer-motion/dist/es/motion/features/load-features.mjs-function ku(e) {- let t = Ou();+function ju(e) {+ let t = Au();for (let n in e) t[n] = {...t[n],...e[n]};- Hs(t);+ Ws(t);}//#endregion//#region node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs-var Au = /* @__PURE__ */ new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.variants.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 ju(e) {- return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || Au.has(e);+var Mu = /* @__PURE__ */ new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.variants.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 Nu(e) {+ return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || Mu.has(e);}//#endregion//#region __vite-optional-peer-dep:@emotion/is-prop-valid:framer-motion-var Mu = /* @__PURE__ */ te({ default: () => Nu }), Nu, Pu = ee((() => {- throw Nu = {}, Error("Could not resolve \"@emotion/is-prop-valid\" imported by \"framer-motion\". Is it installed?");-})), Fu = (e) => !ju(e);-function Iu(e) {- typeof e == "function" && (Fu = (t) => t.startsWith("on") ? !ju(t) : e(t));+var Pu = /* @__PURE__ */ re({ default: () => Fu }), Fu, Iu = ne((() => {+ throw Fu = {}, Error("Could not resolve \"@emotion/is-prop-valid\" imported by \"framer-motion\". Is it installed?");+})), Lu = (e) => !Nu(e);+function Ru(e) {+ typeof e == "function" && (Lu = (t) => t.startsWith("on") ? !Nu(t) : e(t));}try {- Iu((Pu(), ie(Mu)).default);+ Ru((Iu(), oe(Pu)).default);} catch {}-function Lu(e, t, n) {+function zu(e, t, n) {let r = {};- for (let i in e) (i !== "values" || typeof e.values != "object") && ($a(e[i]) || (Fu(i) || n === !0 && ju(i) || !t && !ju(i) || e.draggable && i.startsWith("onDrag")) && (r[i] = e[i]));+ for (let i in e) (i !== "values" || typeof e.values != "object") && (to(e[i]) || (Lu(i) || n === !0 && Nu(i) || !t && !Nu(i) || e.draggable && i.startsWith("onDrag")) && (r[i] = e[i]));return r;}//#endregion//#region node_modules/framer-motion/dist/es/components/MotionConfig/index.mjs-function Ru({ children: e, isValidProp: t, ...n }) {- t && Iu(t);- let r = (0, I.useContext)(Su);+function Bu({ children: e, isValidProp: t, ...n }) {+ t && Ru(t);+ let r = (0, I.useContext)(wu);n = {...r,...n- }, n.transition = Ma(n.transition, r.transition), n.isStatic = Lt(() => n.isStatic);+ }, n.transition = Pa(n.transition, r.transition), n.isStatic = zt(() => n.isStatic);let i = (0, I.useMemo)(() => n, [JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion,n.skipAnimations]);- return (0, L.jsx)(Su.Provider, {+ return (0, L.jsx)(wu.Provider, {value: i,children: e});}//#endregion//#region node_modules/framer-motion/dist/es/context/MotionContext/index.mjs-var zu = /* @__PURE__ */ (0, I.createContext)({});+var Vu = /* @__PURE__ */ (0, I.createContext)({});//#endregion//#region node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs-function Bu(e, t) {- if (Ns(e)) {+function Hu(e, t) {+ if (Fs(e)) {let { initial: t, animate: n } = e;return {- initial: t === !1 || As(t) ? t : void 0,- animate: As(n) ? n : void 0+ initial: t === !1 || Ms(t) ? t : void 0,+ animate: Ms(n) ? n : void 0};}return e.inherit === !1 ? {} : t;}//#endregion//#region node_modules/framer-motion/dist/es/context/MotionContext/create.mjs-function Vu(e) {- let { initial: t, animate: n } = Bu(e, (0, I.useContext)(zu));+function Uu(e) {+ let { initial: t, animate: n } = Hu(e, (0, I.useContext)(Vu));return (0, I.useMemo)(() => ({initial: t,animate: n- }), [Hu(t), Hu(n)]);+ }), [Wu(t), Wu(n)]);}-function Hu(e) {+function Wu(e) {return Array.isArray(e) ? e.join(" ") : e;}//#endregion//#region node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs-var Uu = () => ({+var Gu = () => ({style: {},transform: {},transformOrigin: {},@@ -6027,42 +6027,42 @@ var Uu = () => ({});//#endregion//#region node_modules/framer-motion/dist/es/render/html/use-props.mjs-function Wu(e, t, n) {- for (let r in t) !$a(t[r]) && !Cc(r, n) && (e[r] = t[r]);+function Ku(e, t, n) {+ for (let r in t) !to(t[r]) && !Tc(r, n) && (e[r] = t[r]);}-function Gu({ transformTemplate: e }, t) {+function qu({ transformTemplate: e }, t) {return (0, I.useMemo)(() => {- let n = Uu();- return _c(n, t, e), Object.assign({}, n.vars, n.style);+ let n = Gu();+ return yc(n, t, e), Object.assign({}, n.vars, n.style);}, [t]);}-function Ku(e, t) {+function Ju(e, t) {let n = e.style || {}, r = {};- return Wu(r, n, e), Object.assign(r, Gu(e, t)), r;+ return Ku(r, n, e), Object.assign(r, qu(e, t)), r;}-function qu(e, t) {- let n = {}, r = Ku(e, t);+function Yu(e, t) {+ let n = {}, r = Ju(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;}//#endregion//#region node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs-var Ju = () => ({- ...Uu(),+var Xu = () => ({+ ...Gu(),attrs: {}});//#endregion//#region node_modules/framer-motion/dist/es/render/svg/use-props.mjs-function Yu(e, t, n, r) {+function Zu(e, t, n, r) {let i = (0, I.useMemo)(() => {- let n = Ju();- return jc(n, t, Nc(r), e.transformTemplate, e.style), {+ let n = Xu();+ return Nc(n, t, Fc(r), e.transformTemplate, e.style), {...n.attrs,style: { ...n.style }};}, [t]);if (e.style) {let t = {};- Wu(t, e.style, e), i.style = {+ Ku(t, e.style, e), i.style = {...t,...i.style};@@ -6071,7 +6071,7 @@ function Yu(e, t, n, r) {}//#endregion//#region node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs-var Xu = [+var Qu = ["animate","circle","defs",@@ -6100,17 +6100,17 @@ var Xu = [];//#endregion//#region node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs-function Zu(e) {- return typeof e != "string" || e.includes("-") ? !1 : !!(Xu.indexOf(e) > -1 || /[A-Z]/u.test(e));+function $u(e) {+ return typeof e != "string" || e.includes("-") ? !1 : !!(Qu.indexOf(e) > -1 || /[A-Z]/u.test(e));}//#endregion//#region node_modules/framer-motion/dist/es/render/dom/use-render.mjs-function Qu(e, t, n, { latestValues: r }, i, a = !1, o) {- let s = (o ?? Zu(e) ? Yu : qu)(t, r, i, e), c = Lu(t, typeof e == "string", a), l = e === I.Fragment ? {} : {+function ed(e, t, n, { latestValues: r }, i, a = !1, o) {+ let s = (o ?? $u(e) ? Zu : Yu)(t, r, i, e), c = zu(t, typeof e == "string", a), l = e === I.Fragment ? {} : {...c,...s,ref: n- }, { children: u } = t, d = (0, I.useMemo)(() => $a(u) ? u.get() : u, [u]);+ }, { children: u } = t, d = (0, I.useMemo)(() => to(u) ? u.get() : u, [u]);return (0, I.createElement)(e, {...l,children: d@@ -6118,24 +6118,24 @@ function Qu(e, t, n, { latestValues: r }, i, a = !1, o) {}//#endregion//#region node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs-function $u({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {+function td({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {return {- latestValues: ed(n, r, i, e),+ latestValues: nd(n, r, i, e),renderState: t()};}-function ed(e, t, n, r) {+function nd(e, t, n, r) {let i = {}, a = r(e, {});- for (let e in a) i[e] = Ll(a[e]);- let { initial: o, animate: s } = e, c = Ns(e), l = Ps(e);+ for (let e in a) i[e] = zl(a[e]);+ let { initial: o, animate: s } = e, c = Fs(e), l = Is(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" && !ks(d)) {+ if (d && typeof d != "boolean" && !js(d)) {let t = Array.isArray(d) ? d : [d];for (let n = 0; n < t.length; n++) {- let r = Ka(e, t[n]);+ let r = Ja(e, t[n]);if (r) {let { transitionEnd: e, transition: t, ...n } = r;for (let e in n) {@@ -6152,19 +6152,19 @@ function ed(e, t, n, r) {}return i;}-var td = (e) => (t, n) => {- let r = (0, I.useContext)(zu), i = (0, I.useContext)(zt), a = () => $u(e, t, r, i);- return n ? a() : Lt(a);-}, nd = /*@__PURE__*/ td({- scrapeMotionValuesFromProps: wc,- createRenderState: Uu-}), rd = /*@__PURE__*/ td({- scrapeMotionValuesFromProps: Fc,- createRenderState: Ju-}), id = Symbol.for("motionComponentSymbol");+var rd = (e) => (t, n) => {+ let r = (0, I.useContext)(Vu), i = (0, I.useContext)(Vt), a = () => td(e, t, r, i);+ return n ? a() : zt(a);+}, id = /*@__PURE__*/ rd({+ scrapeMotionValuesFromProps: Ec,+ createRenderState: Gu+}), ad = /*@__PURE__*/ rd({+ scrapeMotionValuesFromProps: Lc,+ createRenderState: Xu+}), od = Symbol.for("motionComponentSymbol");//#endregion//#region node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs-function ad(e, t, n) {+function sd(e, t, n) {let r = (0, I.useRef)(n);(0, I.useInsertionEffect)(() => {r.current = n;@@ -6183,16 +6183,16 @@ function ad(e, t, n) {}//#endregion//#region node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs-var od = (0, I.createContext)({});+var cd = (0, I.createContext)({});//#endregion//#region node_modules/framer-motion/dist/es/utils/is-ref-object.mjs-function sd(e) {+function ld(e) {return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");}//#endregion//#region node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs-function cd(e, t, n, r, i, a) {- let { visualElement: o } = (0, I.useContext)(zu), s = (0, I.useContext)(wu), c = (0, I.useContext)(zt), l = (0, I.useContext)(Su), u = l.reducedMotion, d = l.skipAnimations, f = (0, I.useRef)(null), p = (0, I.useRef)(!1);+function ud(e, t, n, r, i, a) {+ let { visualElement: o } = (0, I.useContext)(Vu), s = (0, I.useContext)(Eu), c = (0, I.useContext)(Vt), l = (0, I.useContext)(wu), u = l.reducedMotion, d = l.skipAnimations, f = (0, I.useRef)(null), p = (0, I.useRef)(!1);r ||= s.renderer, !f.current && r && (f.current = r(e, {visualState: t,parent: o,@@ -6203,14 +6203,14 @@ function cd(e, t, n, r, i, a) {skipAnimations: d,isSVG: a}), p.current && f.current && (f.current.manuallyAnimateOnMount = !0));- let m = f.current, h = (0, I.useContext)(od);- m && !m.projection && i && (m.type === "html" || m.type === "svg") && ld(f.current, n, i, h);+ let m = f.current, h = (0, I.useContext)(cd);+ m && !m.projection && i && (m.type === "html" || m.type === "svg") && dd(f.current, n, i, h);let g = (0, I.useRef)(!1);(0, I.useInsertionEffect)(() => {m && g.current && m.update(n, c);});- let _ = n[ro], v = (0, I.useRef)(!!_ && typeof window < "u" && !window.MotionHandoffIsComplete?.(_) && window.MotionHasOptimisedAnimation?.(_));- return Rt(() => {+ let _ = n[ao], v = (0, I.useRef)(!!_ && typeof window < "u" && !window.MotionHandoffIsComplete?.(_) && window.MotionHasOptimisedAnimation?.(_));+ return Bt(() => {p.current = !0, m && (g.current = !0, window.MotionIsMounted = !0, m.updateFeatures(), m.scheduleRenderMicrotask(), v.current && m.animationState && m.animationState.animateChanges());}), (0, I.useEffect)(() => {m && (!v.current && m.animationState && m.animationState.animateChanges(), v.current &&= (queueMicrotask(() => {@@ -6218,12 +6218,12 @@ function cd(e, t, n, r, i, a) {}), !1), m.enteringChildren = void 0);}), m;}-function ld(e, t, n, r) {+function dd(e, t, n, r) {let { layoutId: i, layout: a, drag: o, dragConstraints: s, layoutScroll: c, layoutRoot: l, layoutAnchor: u, layoutCrossfade: d } = t;- e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : ud(e.parent)), e.projection.setOptions({+ e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : fd(e.parent)), e.projection.setOptions({layoutId: i,layout: a,- alwaysMeasureLayout: !!o || s && sd(s),+ alwaysMeasureLayout: !!o || s && ld(s),visualElement: e,animationType: typeof a == "string" ? a : "both",initialPromotionConfig: r,@@ -6233,46 +6233,46 @@ function ld(e, t, n, r) {layoutAnchor: u});}-function ud(e) {- if (e) return e.options.allowProjection === !1 ? ud(e.parent) : e.projection;+function fd(e) {+ if (e) return e.options.allowProjection === !1 ? fd(e.parent) : e.projection;}//#endregion//#region node_modules/framer-motion/dist/es/motion/index.mjs-function dd(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {- r && ku(r);- let a = n ? n === "svg" : Zu(e), o = a ? rd : nd;+function pd(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {+ r && ju(r);+ let a = n ? n === "svg" : $u(e), o = a ? ad : id;function s(n, s) {let c, l = {- ...(0, I.useContext)(Su),+ ...(0, I.useContext)(wu),...n,- layoutId: fd(n)- }, { isStatic: u } = l, d = Vu(n), f = o(n, u);+ layoutId: md(n)+ }, { isStatic: u } = l, d = Uu(n), f = o(n, u);if (!u && typeof window < "u") {- pd(l, r);- let t = md(l);- c = t.MeasureLayout, d.visualElement = cd(e, f, l, i, t.ProjectionNode, a);+ hd(l, r);+ let t = gd(l);+ c = t.MeasureLayout, d.visualElement = ud(e, f, l, i, t.ProjectionNode, a);}- return (0, L.jsxs)(zu.Provider, {+ return (0, L.jsxs)(Vu.Provider, {value: d,children: [c && d.visualElement ? (0, L.jsx)(c, {visualElement: d.visualElement,...l- }) : null, Qu(e, n, ad(f, d.visualElement, s), f, u, t, a)]+ }) : null, ed(e, n, sd(f, d.visualElement, s), f, u, t, a)]});}s.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;let c = (0, I.forwardRef)(s);- return c[id] = e, c;+ return c[od] = e, c;}-function fd({ layoutId: e }) {- let t = (0, I.useContext)(It).id;+function md({ layoutId: e }) {+ let t = (0, I.useContext)(Rt).id;return t && e !== void 0 ? t + "-" + e : e;}-function pd(e, t) {- (0, I.useContext)(wu).strict;+function hd(e, t) {+ (0, I.useContext)(Eu).strict;}-function md(e) {- let { drag: t, layout: n } = Ou();+function gd(e) {+ let { drag: t, layout: n } = Au();if (!t && !n) return {};let r = {...t,@@ -6285,20 +6285,20 @@ function md(e) {}//#endregion//#region node_modules/framer-motion/dist/es/render/components/create-proxy.mjs-function hd(e, t) {- if (typeof Proxy > "u") return dd;- let n = /* @__PURE__ */ new Map(), r = (n, r) => dd(n, r, e, t);- return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, dd(a, void 0, e, t)), n.get(a)) });+function _d(e, t) {+ if (typeof Proxy > "u") return pd;+ let n = /* @__PURE__ */ new Map(), r = (n, r) => pd(n, r, e, t);+ return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, pd(a, void 0, e, t)), n.get(a)) });}//#endregion//#region node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs-var gd = (e, t) => t.isSVG ?? Zu(e) ? new Ic(t) : new Ec(t, { allowProjection: e !== I.Fragment }), _d = class extends Ks {+var vd = (e, t) => t.isSVG ?? $u(e) ? new Rc(t) : new Oc(t, { allowProjection: e !== I.Fragment }), yd = class extends Js {constructor(e) {- super(e), e.animationState ||= Uc(e);+ super(e), e.animationState ||= Gc(e);}updateAnimationControlsSubscription() {let { animate: e } = this.node.getProps();- ks(e) && (this.unmountControls = e.subscribe(this.node));+ js(e) && (this.unmountControls = e.subscribe(this.node));}mount() {this.updateAnimationControlsSubscription();@@ -6310,11 +6310,11 @@ var gd = (e, t) => t.isSVG ?? Zu(e) ? new Ic(t) : new Ec(t, { allowProjection: eunmount() {this.node.animationState.reset(), this.unmountControls?.();}-}, vd = 0, yd = {- animation: { Feature: _d },- exit: { Feature: class extends Ks {+}, bd = 0, xd = {+ animation: { Feature: yd },+ exit: { Feature: class extends Js {constructor() {- super(...arguments), this.id = vd++, this.isExitComplete = !1;+ super(...arguments), this.id = bd++, this.isExitComplete = !1;}update() {if (!this.node.presenceContext) return;@@ -6324,7 +6324,7 @@ var gd = (e, t) => t.isSVG ?? Zu(e) ? new Ic(t) : new Ec(t, { allowProjection: eif (this.isExitComplete) {let { initial: e, custom: t } = this.node.getProps();if (typeof e == "string" || typeof e == "object" && e && !Array.isArray(e)) {- let n = qa(this.node, e, t);+ let n = Ya(this.node, e, t);if (n) {let { transition: e, transitionEnd: t, ...r } = n;for (let e in r) this.node.getValue(e)?.jump(r[e]);@@ -6349,28 +6349,28 @@ var gd = (e, t) => t.isSVG ?? Zu(e) ? new Ic(t) : new Ec(t, { allowProjection: e};//#endregion//#region node_modules/framer-motion/dist/es/events/event-info.mjs-function bd(e) {+function Sd(e) {return { point: {x: e.pageX,y: e.pageY} };}-var xd = (e) => (t) => Uo(t) && e(t, bd(t));+var Cd = (e) => (t) => Go(t) && e(t, Sd(t));//#endregion//#region node_modules/framer-motion/dist/es/events/add-pointer-event.mjs-function Sd(e, t, n, r) {- return Nl(e, t, xd(n), r);+function wd(e, t, n, r) {+ return Fl(e, t, Cd(n), r);}//#endregion//#region node_modules/framer-motion/dist/es/utils/get-context-window.mjs-var Cd = ({ current: e }) => e ? e.ownerDocument.defaultView : null, wd = (e, t) => Math.abs(e - t);-function Td(e, t) {- let n = wd(e.x, t.x), r = wd(e.y, t.y);+var Td = ({ current: e }) => e ? e.ownerDocument.defaultView : null, Ed = (e, t) => Math.abs(e - t);+function Dd(e, t) {+ let n = Ed(e.x, t.x), r = Ed(e.y, t.y);return Math.sqrt(n ** 2 + r ** 2);}//#endregion//#region node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs-var Ed = /*#__PURE__*/ new Set(["auto", "scroll"]), Dd = class {+var Od = /*#__PURE__*/ new Set(["auto", "scroll"]), kd = 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.removeScrollListeners = null, this.onElementScroll = (e) => {this.handleScroll(e.target);@@ -6378,13 +6378,13 @@ var Ed = /*#__PURE__*/ new Set(["auto", "scroll"]), Dd = class {this.handleScroll(window);}, this.updatePoint = () => {if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;- this.lastRawMoveEventInfo && (this.lastMoveEventInfo = Od(this.lastRawMoveEventInfo, this.transformPagePoint));- let e = Ad(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = Td(e.offset, {+ this.lastRawMoveEventInfo && (this.lastMoveEventInfo = Ad(this.lastRawMoveEventInfo, this.transformPagePoint));+ let e = Md(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = Dd(e.offset, {x: 0,y: 0}) >= this.distanceThreshold;if (!t && !n) return;- let { point: r } = e, { timestamp: i } = An;+ let { point: r } = e, { timestamp: i } = Mn;this.history.push({...r,timestamp: i@@ -6392,33 +6392,33 @@ var Ed = /*#__PURE__*/ new Set(["auto", "scroll"]), Dd = class {let { onStart: a, onMove: o } = this.handlers;t || (a && a(this.lastMoveEvent, e), this.startEvent = this.lastMoveEvent), o && o(this.lastMoveEvent, e);}, this.handlePointerMove = (e, t) => {- this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = Od(t, this.transformPagePoint), On.update(this.updatePoint, !0);+ this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = Ad(t, this.transformPagePoint), An.update(this.updatePoint, !0);}, this.handlePointerUp = (e, t) => {this.end();let { onEnd: n, onSessionEnd: r, resumeAnimation: i } = this.handlers;if ((this.dragSnapToOrigin || !this.startEvent) && i && i(), !(this.lastMoveEvent && this.lastMoveEventInfo)) return;- let a = Ad(e.type === "pointercancel" ? this.lastMoveEventInfo : Od(t, this.transformPagePoint), this.history);+ let a = Md(e.type === "pointercancel" ? this.lastMoveEventInfo : Ad(t, this.transformPagePoint), this.history);this.startEvent && n && n(e, a), r && r(e, a);- }, !Uo(e)) return;+ }, !Go(e)) return;this.dragSnapToOrigin = i, this.handlers = t, this.transformPagePoint = n, this.distanceThreshold = a, this.contextWindow = r || window;- let s = Od(bd(e), this.transformPagePoint), { point: c } = s, { timestamp: l } = An;+ let s = Ad(Sd(e), this.transformPagePoint), { point: c } = s, { timestamp: l } = Mn;this.history = [{...c,timestamp: l}];let { onSessionStart: u } = t;- u && u(e, Ad(s, this.history));+ u && u(e, Md(s, this.history));let d = {passive: !0,capture: !0};- this.removeListeners = Yt(Sd(this.contextWindow, "pointermove", this.handlePointerMove, d), Sd(this.contextWindow, "pointerup", this.handlePointerUp, d), Sd(this.contextWindow, "pointercancel", this.handlePointerUp, d)), o && this.startScrollTracking(o);+ this.removeListeners = Zt(wd(this.contextWindow, "pointermove", this.handlePointerMove, d), wd(this.contextWindow, "pointerup", this.handlePointerUp, d), wd(this.contextWindow, "pointercancel", this.handlePointerUp, d)), o && this.startScrollTracking(o);}startScrollTracking(e) {let t = e.parentElement;for (; t;) {let e = getComputedStyle(t);- (Ed.has(e.overflowX) || Ed.has(e.overflowY)) && this.scrollPositions.set(t, {+ (Od.has(e.overflowX) || Od.has(e.overflowY)) && this.scrollPositions.set(t, {x: t.scrollLeft,y: t.scrollTop}), t = t.parentElement;@@ -6443,51 +6443,51 @@ var Ed = /*#__PURE__*/ new Set(["auto", "scroll"]), Dd = class {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), On.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), An.update(this.updatePoint, !0));}updateHandlers(e) {this.handlers = e;}end() {- this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), kn(this.updatePoint);+ this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), jn(this.updatePoint);}};-function Od(e, t) {+function Ad(e, t) {return t ? { point: t(e.point) } : e;}-function kd(e, t) {+function jd(e, t) {return {x: e.x - t.x,y: e.y - t.y};}-function Ad({ point: e }, t) {+function Md({ point: e }, t) {return {point: e,- delta: kd(e, Md(t)),- offset: kd(e, jd(t)),- velocity: Nd(t, .1)+ delta: jd(e, Pd(t)),+ offset: jd(e, Nd(t)),+ velocity: Fd(t, .1)};}-function jd(e) {+function Nd(e) {return e[0];}-function Md(e) {+function Pd(e) {return e[e.length - 1];}-function Nd(e, t) {+function Fd(e, t) {if (e.length < 2) return {x: 0,y: 0};- let n = e.length - 1, r = null, i = Md(e);- for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ Qt(t)));) n--;+ let n = e.length - 1, r = null, i = Pd(e);+ for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ en(t)));) n--;if (!r) return {x: 0,y: 0};- r === e[0] && e.length > 2 && i.timestamp - r.timestamp > /* @__PURE__ */ Qt(t) * 2 && (r = e[1]);- let a = /* @__PURE__ */ $t(i.timestamp - r.timestamp);+ r === e[0] && e.length > 2 && i.timestamp - r.timestamp > /* @__PURE__ */ en(t) * 2 && (r = e[1]);+ let a = /* @__PURE__ */ tn(i.timestamp - r.timestamp);if (a === 0) return {x: 0,y: 0@@ -6500,86 +6500,86 @@ function Nd(e, t) {}//#endregion//#region node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs-function Pd(e, { min: t, max: n }, r) {- return t !== void 0 && e < t ? e = r ? Or(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? Or(n, e, r.max) : Math.min(e, n)), e;+function Id(e, { min: t, max: n }, r) {+ return t !== void 0 && e < t ? e = r ? Ar(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? Ar(n, e, r.max) : Math.min(e, n)), e;}-function Fd(e, t, n) {+function Ld(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 Id(e, { top: t, left: n, bottom: r, right: i }) {+function Rd(e, { top: t, left: n, bottom: r, right: i }) {return {- x: Fd(e.x, n, i),- y: Fd(e.y, t, r)+ x: Ld(e.x, n, i),+ y: Ld(e.y, t, r)};}-function Ld(e, t) {+function zd(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 Rd(e, t) {+function Bd(e, t) {return {- x: Ld(e.x, t.x),- y: Ld(e.y, t.y)+ x: zd(e.x, t.x),+ y: zd(e.y, t.y)};}-function zd(e, t) {- let n = .5, r = el(e), i = el(t);- return i > r ? n = /* @__PURE__ */ Xt(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ Xt(e.min, e.max - i, t.min)), Ht(0, 1, n);+function Vd(e, t) {+ let n = .5, r = nl(e), i = nl(t);+ return i > r ? n = /* @__PURE__ */ Qt(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ Qt(e.min, e.max - i, t.min)), Wt(0, 1, n);}-function Bd(e, t) {+function Hd(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 Vd = .35;-function Hd(e = Vd) {- return e === !1 ? e = 0 : e === !0 && (e = Vd), {- x: Ud(e, "left", "right"),- y: Ud(e, "top", "bottom")+var Ud = .35;+function Wd(e = Ud) {+ return e === !1 ? e = 0 : e === !0 && (e = Ud), {+ x: Gd(e, "left", "right"),+ y: Gd(e, "top", "bottom")};}-function Ud(e, t, n) {+function Gd(e, t, n) {return {- min: Wd(e, t),- max: Wd(e, n)+ min: Kd(e, t),+ max: Kd(e, n)};}-function Wd(e, t) {+function Kd(e, t) {return typeof e == "number" ? e : e[t] || 0;}//#endregion//#region node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs-var Gd = /* @__PURE__ */ new WeakMap(), Kd = class {+var qd = /* @__PURE__ */ new WeakMap(), Jd = class {constructor(e) {this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = {x: 0,y: 0- }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = Ds(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e;+ }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = ks(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e;}start(e, { snapToCursor: t = !1, distanceThreshold: n } = {}) {let { presenceContext: r } = this.visualElement;if (r && r.isPresent === !1) return;let i = (e) => {- t && this.snapToCursor(bd(e).point), this.stopAnimation();+ t && this.snapToCursor(Sd(e).point), this.stopAnimation();}, a = (e, t) => {let { drag: n, dragPropagation: r, onDragStart: i } = this.getProps();- if (n && !r && (this.openDragLock && this.openDragLock(), this.openDragLock = Ro(n), !this.openDragLock)) return;- this.latestPointerEvent = e, this.latestPanInfo = t, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), Sl((e) => {+ if (n && !r && (this.openDragLock && this.openDragLock(), this.openDragLock = Bo(n), !this.openDragLock)) return;+ this.latestPointerEvent = e, this.latestPanInfo = t, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), wl((e) => {let t = this.getAxisMotionValue(e).get() || 0;- if (rr.test(t)) {+ if (ar.test(t)) {let { projection: n } = this.visualElement;if (n && n.layout) {let r = n.layout.layoutBox[e];- r && (t = el(r) * (parseFloat(t) / 100));+ r && (t = nl(r) * (parseFloat(t) / 100));}}this.originPoint[e] = t;- }), i && On.update(() => i(e, t), !1, !0), to(this.visualElement, "transform");+ }), i && An.update(() => i(e, t), !1, !0), ro(this.visualElement, "transform");let { animationState: a } = this.visualElement;a && a.setActive("whileDrag", !0);}, o = (e, t) => {@@ -6588,10 +6588,10 @@ var Gd = /* @__PURE__ */ new WeakMap(), Kd = class {if (!n && !this.openDragLock) return;let { offset: o } = t;if (r && this.currentDirection === null) {- this.currentDirection = Xd(o), this.currentDirection !== null && i && i(this.currentDirection);+ this.currentDirection = Qd(o), this.currentDirection !== null && i && i(this.currentDirection);return;}- this.updateAxis("x", t.point, o), this.updateAxis("y", t.point, o), this.visualElement.render(), a && On.update(() => a(e, t), !1, !0);+ this.updateAxis("x", t.point, o), this.updateAxis("y", t.point, o), this.visualElement.render(), a && An.update(() => a(e, t), !1, !0);}, s = (e, t) => {this.latestPointerEvent = e, this.latestPanInfo = t, this.stop(e, t), this.latestPointerEvent = null, this.latestPanInfo = null;}, c = () => {@@ -6601,7 +6601,7 @@ var Gd = /* @__PURE__ */ new WeakMap(), Kd = class {y: 0});}, { dragSnapToOrigin: l } = this.getProps();- this.panSession = new Dd(e, {+ this.panSession = new kd(e, {onSessionStart: i,onStart: a,onMove: o,@@ -6611,7 +6611,7 @@ var Gd = /* @__PURE__ */ new WeakMap(), Kd = class {transformPagePoint: this.visualElement.getTransformPagePoint(),dragSnapToOrigin: l,distanceThreshold: n,- contextWindow: Cd(this.visualElement),+ contextWindow: Td(this.visualElement),element: this.visualElement.current});}@@ -6621,7 +6621,7 @@ var Gd = /* @__PURE__ */ new WeakMap(), Kd = class {let { velocity: a } = r;this.startAnimation(a);let { onDragEnd: o } = this.getProps();- o && On.postRender(() => o(n, r));+ o && An.postRender(() => o(n, r));}cancel() {this.isDragging = !1;@@ -6635,32 +6635,32 @@ var Gd = /* @__PURE__ */ new WeakMap(), Kd = class {}updateAxis(e, t, n) {let { drag: r } = this.getProps();- if (!n || !Yd(e, r, this.currentDirection)) return;+ if (!n || !Zd(e, r, this.currentDirection)) return;let i = this.getAxisMotionValue(e), a = this.originPoint[e] + n[e];- this.constraints && this.constraints[e] && (a = Pd(a, this.constraints[e], this.elastic[e])), i.set(a);+ this.constraints && this.constraints[e] && (a = Id(a, this.constraints[e], this.elastic[e])), i.set(a);}resolveConstraints() {let { dragConstraints: e, dragElastic: t } = this.getProps(), n = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : this.visualElement.projection?.layout, r = this.constraints;- e && sd(e) ? this.constraints ||= this.resolveRefConstraints() : this.constraints = e && n ? Id(n.layoutBox, e) : !1, this.elastic = Hd(t), r !== this.constraints && !sd(e) && n && this.constraints && !this.hasMutatedConstraints && Sl((e) => {- this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = Bd(n.layoutBox[e], this.constraints[e]));+ e && ld(e) ? this.constraints ||= this.resolveRefConstraints() : this.constraints = e && n ? Rd(n.layoutBox, e) : !1, this.elastic = Wd(t), r !== this.constraints && !ld(e) && n && this.constraints && !this.hasMutatedConstraints && wl((e) => {+ this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = Hd(n.layoutBox[e], this.constraints[e]));});}resolveRefConstraints() {let { dragConstraints: e, onMeasureDragConstraints: t } = this.getProps();- if (!e || !sd(e)) return !1;+ if (!e || !ld(e)) return !1;let n = e.current, { projection: r } = this.visualElement;if (!r || !r.layout) return !1;r.root && (r.root.scroll = void 0, r.root.updateScroll());- let i = pc(n, r.root, this.visualElement.getTransformPagePoint()), a = Rd(r.layout.layoutBox, i);+ let i = hc(n, r.root, this.visualElement.getTransformPagePoint()), a = Bd(r.layout.layoutBox, i);if (t) {- let e = t(Js(a));- this.hasMutatedConstraints = !!e, e && (a = qs(e));+ let e = t(Xs(a));+ this.hasMutatedConstraints = !!e, e && (a = Ys(e));}return a;}startAnimation(e) {- let { drag: t, dragMomentum: n, dragElastic: r, dragTransition: i, dragSnapToOrigin: a, onDragTransitionEnd: o } = this.getProps(), s = this.constraints || {}, c = Sl((o) => {- if (!Yd(o, t, this.currentDirection)) return;+ let { drag: t, dragMomentum: n, dragElastic: r, dragTransition: i, dragSnapToOrigin: a, onDragTransitionEnd: o } = this.getProps(), s = this.constraints || {}, c = wl((o) => {+ if (!Zd(o, t, this.currentDirection)) return;let c = s && s[o] || {};(a === !0 || a === o) && (c = {min: 0,@@ -6683,65 +6683,65 @@ var Gd = /* @__PURE__ */ new WeakMap(), Kd = class {}startAxisValueAnimation(e, t) {let n = this.getAxisMotionValue(e);- return to(this.visualElement, e), n.start(Va(e, n, 0, t, this.visualElement, !1));+ return ro(this.visualElement, e), n.start(Ua(e, n, 0, t, this.visualElement, !1));}stopAnimation() {- Sl((e) => this.getAxisMotionValue(e).stop());+ wl((e) => this.getAxisMotionValue(e).stop());}getAxisMotionValue(e) {let t = `_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t] || this.visualElement.getValue(e, this.visualElement.latestValues[e] ?? 0);}snapToCursor(e) {- Sl((t) => {+ wl((t) => {let { drag: n } = this.getProps();- if (!Yd(t, n, this.currentDirection)) return;+ if (!Zd(t, n, this.currentDirection)) return;let { projection: r } = this.visualElement, i = this.getAxisMotionValue(t);if (r && r.layout) {let { min: n, max: a } = r.layout.layoutBox[t], o = i.get() || 0;- i.set(e[t] - Or(n, a, .5) + o);+ i.set(e[t] - Ar(n, a, .5) + o);}});}scalePositionWithinConstraints() {if (!this.visualElement.current) return;let { drag: e, dragConstraints: t } = this.getProps(), { projection: n } = this.visualElement;- if (!sd(t) || !n || !this.constraints) return;+ if (!ld(t) || !n || !this.constraints) return;this.stopAnimation();let r = {x: 0,y: 0};- Sl((e) => {+ wl((e) => {let t = this.getAxisMotionValue(e);if (t && this.constraints !== !1) {let n = t.get();- r[e] = zd({+ r[e] = Vd({min: n,max: n}, this.constraints[e]);}});let { transformTemplate: i } = this.visualElement.getProps();- this.visualElement.current.style.transform = i ? i({}, "") : "none", n.root && n.root.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), Sl((t) => {- if (!Yd(t, e, null)) return;+ this.visualElement.current.style.transform = i ? i({}, "") : "none", n.root && n.root.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), wl((t) => {+ if (!Zd(t, e, null)) return;let n = this.getAxisMotionValue(t), { min: i, max: a } = this.constraints[t];- n.set(Or(i, a, r[t]));+ n.set(Ar(i, a, r[t]));}), this.visualElement.render();}addListeners() {if (!this.visualElement.current) return;- Gd.set(this.visualElement, this);- let e = this.visualElement.current, t = Sd(e, "pointerdown", (t) => {- let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && qo(i);+ qd.set(this.visualElement, this);+ let e = this.visualElement.current, t = wd(e, "pointerdown", (t) => {+ let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && Yo(i);n && r && !a && this.start(t);}), n, r = () => {let { dragConstraints: t } = this.getProps();- sd(t) && t.current && (this.constraints = this.resolveRefConstraints(), n ||= Jd(e, t.current, () => this.scalePositionWithinConstraints()));+ ld(t) && t.current && (this.constraints = this.resolveRefConstraints(), n ||= Xd(e, t.current, () => this.scalePositionWithinConstraints()));}, { projection: i } = this.visualElement, a = i.addEventListener("measure", r);- i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), On.read(r);- let o = Nl(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {- this.isDragging && t && (Sl((t) => {+ i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), An.read(r);+ let o = Fl(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {+ this.isDragging && t && (wl((t) => {let n = this.getAxisMotionValue(t);n && (this.originPoint[t] += e[t].translate, n.set(n.get() + e[t].translate));}), this.visualElement.render());@@ -6751,7 +6751,7 @@ var Gd = /* @__PURE__ */ new WeakMap(), Kd = class {};}getProps() {- let e = this.visualElement.getProps(), { drag: t = !1, dragDirectionLock: n = !1, dragPropagation: r = !1, dragConstraints: i = !1, dragElastic: a = Vd, dragMomentum: o = !0 } = e;+ let e = this.visualElement.getProps(), { drag: t = !1, dragDirectionLock: n = !1, dragPropagation: r = !1, dragConstraints: i = !1, dragElastic: a = Ud, dragMomentum: o = !0 } = e;return {...e,drag: t,@@ -6763,7 +6763,7 @@ var Gd = /* @__PURE__ */ new WeakMap(), Kd = class {};}};-function qd(e) {+function Yd(e) {let t = !0;return () => {if (t) {@@ -6773,28 +6773,28 @@ function qd(e) {e();};}-function Jd(e, t, n) {- let r = hs(e, qd(n)), i = hs(t, qd(n));+function Xd(e, t, n) {+ let r = _s(e, Yd(n)), i = _s(t, Yd(n));return () => {r(), i();};}-function Yd(e, t, n) {+function Zd(e, t, n) {return (t === !0 || t === e) && (n === null || n === e);}-function Xd(e, t = 10) {+function Qd(e, t = 10) {let n = null;return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;}//#endregion//#region node_modules/framer-motion/dist/es/gestures/drag/index.mjs-var Zd = class extends Ks {+var $d = class extends Js {constructor(e) {- super(e), this.removeGroupControls = Jt, this.removeListeners = Jt, this.controls = new Kd(e);+ super(e), this.removeGroupControls = Xt, this.removeListeners = Xt, this.controls = new Jd(e);}mount() {let { dragControls: e } = this.node.getProps();- e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || Jt;+ e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || Xt;}update() {let { dragControls: e } = this.node.getProps(), { dragControls: t } = this.node.prevProps || {};@@ -6803,31 +6803,31 @@ var Zd = class extends Ks {unmount() {this.removeGroupControls(), this.removeListeners(), this.controls.isDragging || this.controls.endPanSession();}-}, Qd = (e) => (t, n) => {- e && On.update(() => e(t, n), !1, !0);-}, $d = class extends Ks {+}, ef = (e) => (t, n) => {+ e && An.update(() => e(t, n), !1, !0);+}, tf = class extends Js {constructor() {- super(...arguments), this.removePointerDownListener = Jt;+ super(...arguments), this.removePointerDownListener = Xt;}onPointerDown(e) {- this.session = new Dd(e, this.createPanHandlers(), {+ this.session = new kd(e, this.createPanHandlers(), {transformPagePoint: this.node.getTransformPagePoint(),- contextWindow: Cd(this.node)+ contextWindow: Td(this.node)});}createPanHandlers() {let { onPanSessionStart: e, onPanStart: t, onPan: n, onPanEnd: r } = this.node.getProps();return {- onSessionStart: Qd(e),- onStart: Qd(t),- onMove: Qd(n),+ onSessionStart: ef(e),+ onStart: ef(t),+ onMove: ef(n),onEnd: (e, t) => {- delete this.session, r && On.postRender(() => r(e, t));+ delete this.session, r && An.postRender(() => r(e, t));}};}mount() {- this.removePointerDownListener = Sd(this.node.current, "pointerdown", (e) => this.onPointerDown(e));+ this.removePointerDownListener = wd(this.node.current, "pointerdown", (e) => this.onPointerDown(e));}update() {this.session && this.session.updateHandlers(this.createPanHandlers());@@ -6835,36 +6835,36 @@ var Zd = class extends Ks {unmount() {this.removePointerDownListener(), this.session && this.session.end();}-}, ef = !1, tf = class extends I.Component {+}, nf = !1, rf = class extends I.Component {componentDidMount() {let { visualElement: e, layoutGroup: t, switchLayoutGroup: n, layoutId: r } = this.props, { projection: i } = e;- i && (t.group && t.group.add(i), n && n.register && r && n.register(i), ef && i.root.didUpdate(), i.addEventListener("animationComplete", () => {+ i && (t.group && t.group.add(i), n && n.register && r && n.register(i), nf && i.root.didUpdate(), i.addEventListener("animationComplete", () => {this.safeToRemove();}), i.setOptions({...i.options,layoutDependency: this.props.layoutDependency,onExitComplete: () => this.safeToRemove()- })), zl.hasEverUpdated = !0;+ })), Vl.hasEverUpdated = !0;}getSnapshotBeforeUpdate(e) {let { layoutDependency: t, visualElement: n, drag: r, isPresent: i } = this.props, { projection: a } = n;return a ? (a.isPresent = i, e.layoutDependency !== t && a.setOptions({...a.options,layoutDependency: t- }), ef = !0, r || e.layoutDependency !== t || t === void 0 || e.isPresent !== i ? a.willUpdate() : this.safeToRemove(), e.isPresent !== i && (i ? a.promote() : a.relegate() || On.postRender(() => {+ }), nf = !0, r || e.layoutDependency !== t || t === void 0 || e.isPresent !== i ? a.willUpdate() : this.safeToRemove(), e.isPresent !== i && (i ? a.promote() : a.relegate() || An.postRender(() => {let e = a.getStack();(!e || !e.members.length) && this.safeToRemove();})), null) : null;}componentDidUpdate() {let { visualElement: e, layoutAnchor: t } = this.props, { projection: n } = e;- n && (n.options.layoutAnchor = t, n.root.didUpdate(), Po.postRender(() => {+ n && (n.options.layoutAnchor = t, n.root.didUpdate(), Io.postRender(() => {!n.currentAnimation && n.isLead() && this.safeToRemove();}));}componentWillUnmount() {let { visualElement: e, layoutGroup: t, switchLayoutGroup: n } = this.props, { projection: r } = e;- ef = !0, r && (r.scheduleCheckAfterUnmount(), t && t.group && t.group.remove(r), n && n.deregister && n.deregister(r));+ nf = !0, r && (r.scheduleCheckAfterUnmount(), t && t.group && t.group.remove(r), n && n.deregister && n.deregister(r));}safeToRemove() {let { safeToRemove: e } = this.props;@@ -6874,41 +6874,41 @@ var Zd = class extends Ks {return null;}};-function nf(e) {- let [t, n] = Cu(), r = (0, I.useContext)(It);- return (0, L.jsx)(tf, {+function af(e) {+ let [t, n] = Tu(), r = (0, I.useContext)(Rt);+ return (0, L.jsx)(rf, {...e,layoutGroup: r,- switchLayoutGroup: (0, I.useContext)(od),+ switchLayoutGroup: (0, I.useContext)(cd),isPresent: t,safeToRemove: n});}//#endregion//#region node_modules/framer-motion/dist/es/motion/features/drag.mjs-var rf = {- pan: { Feature: $d },+var of = {+ pan: { Feature: tf },drag: {- Feature: Zd,- ProjectionNode: xu,- MeasureLayout: nf+ Feature: $d,+ ProjectionNode: Cu,+ MeasureLayout: af}};//#endregion//#region node_modules/framer-motion/dist/es/gestures/hover.mjs-function af(e, t, n) {+function sf(e, t, n) {let { props: r } = e;e.animationState && r.whileHover && e.animationState.setActive("whileHover", n === "Start");let i = r["onHover" + n];- i && On.postRender(() => i(t, bd(t)));+ i && An.postRender(() => i(t, Sd(t)));}-var of = class extends Ks {+var cf = class extends Js {mount() {let { current: e } = this.node;- e && (this.unmount = Vo(e, (e, t) => (af(this.node, t, "Start"), (e) => af(this.node, e, "End"))));+ e && (this.unmount = Uo(e, (e, t) => (sf(this.node, t, "Start"), (e) => sf(this.node, e, "End"))));}unmount() {}-}, sf = class extends Ks {+}, lf = class extends Js {constructor() {super(...arguments), this.isActive = !1;}@@ -6925,57 +6925,57 @@ var of = class extends Ks {!this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);}mount() {- this.unmount = Yt(Nl(this.node.current, "focus", () => this.onFocus()), Nl(this.node.current, "blur", () => this.onBlur()));+ this.unmount = Zt(Fl(this.node.current, "focus", () => this.onFocus()), Fl(this.node.current, "blur", () => this.onBlur()));}unmount() {}};//#endregion//#region node_modules/framer-motion/dist/es/gestures/press.mjs-function cf(e, t, n) {+function uf(e, t, n) {let { props: r } = e;if (e.current instanceof HTMLButtonElement && e.current.disabled) return;e.animationState && r.whileTap && e.animationState.setActive("whileTap", n === "Start");let i = r["onTap" + (n === "End" ? "" : n)];- i && On.postRender(() => i(t, bd(t)));+ i && An.postRender(() => i(t, Sd(t)));}-var lf = class extends Ks {+var df = class extends Js {mount() {let { current: e } = this.node;if (!e) return;let { globalTapTarget: t, propagate: n } = this.node.props;- this.unmount = es(e, (e, t) => (cf(this.node, t, "Start"), (e, { success: t }) => cf(this.node, e, t ? "End" : "Cancel")), {+ this.unmount = ns(e, (e, t) => (uf(this.node, t, "Start"), (e, { success: t }) => uf(this.node, e, t ? "End" : "Cancel")), {useGlobalTarget: t,stopPropagation: n?.tap === !1});}unmount() {}-}, uf = /* @__PURE__ */ new WeakMap(), df = /* @__PURE__ */ new WeakMap(), ff = (e) => {- let t = uf.get(e.target);+}, ff = /* @__PURE__ */ new WeakMap(), pf = /* @__PURE__ */ new WeakMap(), mf = (e) => {+ let t = ff.get(e.target);t && t(e);-}, pf = (e) => {- e.forEach(ff);+}, hf = (e) => {+ e.forEach(mf);};-function mf({ root: e, ...t }) {+function gf({ root: e, ...t }) {let n = e || document;- df.has(n) || df.set(n, {});- let r = df.get(n), i = JSON.stringify(t);- return r[i] || (r[i] = new IntersectionObserver(pf, {+ pf.has(n) || pf.set(n, {});+ let r = pf.get(n), i = JSON.stringify(t);+ return r[i] || (r[i] = new IntersectionObserver(hf, {root: e,...t})), r[i];}-function hf(e, t, n) {- let r = mf(t);- return uf.set(e, n), r.observe(e), () => {- uf.delete(e), r.unobserve(e);+function _f(e, t, n) {+ let r = gf(t);+ return ff.set(e, n), r.observe(e), () => {+ ff.delete(e), r.unobserve(e);};}//#endregion//#region node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs-var gf = {+var vf = {some: 0,all: 1-}, _f = class extends Ks {+}, yf = class extends Js {constructor() {super(...arguments), this.hasEnteredView = !1, this.isInView = !1;}@@ -6984,7 +6984,7 @@ var gf = {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 : gf[r]+ threshold: typeof r == "number" ? r : vf[r]}, o = (e) => {let { isIntersecting: t } = e;if (this.isInView === t || (this.isInView = t, i && !t && this.hasEnteredView)) return;@@ -6992,7 +6992,7 @@ var gf = {let { onViewportEnter: n, onViewportLeave: r } = this.node.getProps(), a = t ? n : r;a && a(e);};- this.stopObserver = hf(this.node.current, a, o);+ this.stopObserver = _f(this.node.current, a, o);}mount() {this.startObserver();@@ -7004,34 +7004,34 @@ var gf = {"amount","margin","root"- ].some(vf(e, t)) && this.startObserver();+ ].some(bf(e, t)) && this.startObserver();}unmount() {this.stopObserver?.(), this.hasEnteredView = !1, this.isInView = !1;}};-function vf({ viewport: e = {} }, { viewport: t = {} } = {}) {+function bf({ viewport: e = {} }, { viewport: t = {} } = {}) {return (n) => e[n] !== t[n];}//#endregion//#region node_modules/framer-motion/dist/es/motion/features/gestures.mjs-var yf = {- inView: { Feature: _f },- tap: { Feature: lf },- focus: { Feature: sf },- hover: { Feature: of }-}, bf = { layout: {- ProjectionNode: xu,- MeasureLayout: nf-} }, xf = /*@__PURE__*/ hd({- ...yd,- ...yf,- ...rf,- ...bf-}, gd);+var xf = {+ inView: { Feature: yf },+ tap: { Feature: df },+ focus: { Feature: lf },+ hover: { Feature: cf }+}, Sf = { layout: {+ ProjectionNode: Cu,+ MeasureLayout: af+} }, Cf = /*@__PURE__*/ _d({+ ...xd,+ ...xf,+ ...of,+ ...Sf+}, vd);//#endregion//#region node_modules/framer-motion/dist/es/utils/use-motion-value-event.mjs-function Sf(e, t, n) {+function wf(e, t, n) {(0, I.useInsertionEffect)(() => e.on(t, n), [e,t,@@ -7040,8 +7040,8 @@ function Sf(e, t, n) {}//#endregion//#region node_modules/framer-motion/dist/es/value/use-motion-value.mjs-function Cf(e) {- let t = Lt(() => ja(e)), { isStatic: n } = (0, I.useContext)(Su);+function Tf(e) {+ let t = zt(() => Na(e)), { isStatic: n } = (0, I.useContext)(wu);if (n) {let [, n] = (0, I.useState)(e);(0, I.useEffect)(() => t.on("change", n), []);@@ -7050,28 +7050,28 @@ function Cf(e) {}//#endregion//#region node_modules/framer-motion/dist/es/value/use-combine-values.mjs-function wf(e, t) {- let n = Cf(t()), r = () => n.set(t());- return r(), Rt(() => {- let t = () => On.preRender(r, !1, !0), n = e.map((e) => e.on("change", t));+function Ef(e, t) {+ let n = Tf(t()), r = () => n.set(t());+ return r(), Bt(() => {+ let t = () => An.preRender(r, !1, !0), n = e.map((e) => e.on("change", t));return () => {- n.forEach((e) => e()), kn(r);+ n.forEach((e) => e()), jn(r);};}), n;}//#endregion//#region node_modules/framer-motion/dist/es/value/use-computed.mjs-function Tf(e) {- ka.current = [], e();- let t = wf(ka.current, e);- return ka.current = void 0, t;+function Df(e) {+ ja.current = [], e();+ let t = Ef(ja.current, e);+ return ja.current = void 0, t;}//#endregion//#region node_modules/framer-motion/dist/es/value/use-transform.mjs-function Ef(e, t, n, r) {- if (typeof e == "function") return Tf(e);- if (n !== void 0 && !Array.isArray(n) && typeof t != "function") return Of(e, t, n, r);- let i = typeof t == "function" ? t : vs(t, n, r), a = Array.isArray(e) ? Df(e, i) : Df([e], ([e]) => i(e)), o = Array.isArray(e) ? void 0 : e.accelerate;+function Of(e, t, n, r) {+ if (typeof e == "function") return Df(e);+ if (n !== void 0 && !Array.isArray(n) && typeof t != "function") return Af(e, t, n, r);+ let i = typeof t == "function" ? t : bs(t, n, r), a = Array.isArray(e) ? kf(e, i) : kf([e], ([e]) => i(e)), o = Array.isArray(e) ? void 0 : e.accelerate;return o && !o.isTransformed && typeof t != "function" && Array.isArray(n) && r?.clamp !== !1 && (a.accelerate = {...o,times: t,@@ -7080,46 +7080,46 @@ function Ef(e, t, n, r) {...r?.ease ? { ease: r.ease } : {}}), a;}-function Df(e, t) {- let n = Lt(() => []);- return wf(e, () => {+function kf(e, t) {+ let n = zt(() => []);+ return Ef(e, () => {n.length = 0;let r = e.length;for (let t = 0; t < r; t++) n[t] = e[t].get();return t(n);});}-function Of(e, t, n, r) {- let i = Lt(() => Object.keys(n)), a = Lt(() => ({}));- for (let o of i) a[o] = Ef(e, t, n[o], r);+function Af(e, t, n, r) {+ let i = zt(() => Object.keys(n)), a = zt(() => ({}));+ for (let o of i) a[o] = Of(e, t, n[o], r);return a;}//#endregion//#region node_modules/framer-motion/dist/es/value/use-follow-value.mjs-function kf(e, t = {}) {- let { isStatic: n } = (0, I.useContext)(Su), r = () => $a(e) ? e.get() : e;- if (n) return Ef(r);- let i = Cf(r());- return (0, I.useInsertionEffect)(() => ys(i, e, t), [i, JSON.stringify(t)]), i;+function jf(e, t = {}) {+ let { isStatic: n } = (0, I.useContext)(wu), r = () => to(e) ? e.get() : e;+ if (n) return Of(r);+ let i = Tf(r());+ return (0, I.useInsertionEffect)(() => xs(i, e, t), [i, JSON.stringify(t)]), i;}//#endregion//#region node_modules/framer-motion/dist/es/value/use-spring.mjs-function Af(e, t = {}) {- return kf(e, {+function Mf(e, t = {}) {+ return jf(e, {type: "spring",...t});}//#endregion//#region node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs-function jf() {- !Ls.current && zs();- let [e] = (0, I.useState)(Is.current);+function Nf() {+ !zs.current && Vs();+ let [e] = (0, I.useState)(Rs.current);return e;}//#endregion//#region node_modules/motion/dist/es/react.mjs-var Mf = xf, Nf = class {+var Pf = Cf, Ff = 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;}@@ -7134,22 +7134,22 @@ var Mf = xf, Nf = class {let r = this.clone();return t.addDescendants(r, e), r;}-}, Pf = class extends Nf {+}, If = class extends Ff {filter(e, t, n) {- let [r, i] = zf(e, t, this.firstChildKey, n), a = this.clone();+ let [r, i] = Vf(e, t, this.firstChildKey, n), a = this.clone();return a.firstChildKey = r, a.lastChildKey = i, a;}};-(class extends Nf {+(class extends Ff {static {this.type = "header";}});-var Ff = class extends Nf {+var Lf = class extends Ff {static {this.type = "loader";}-}, If = class extends Pf {+}, Rf = class extends If {static {this.type = "item";}@@ -7160,7 +7160,7 @@ var Ff = class extends Nf {}return null;}-}, Lf = class extends Pf {+}, zf = class extends If {static {this.type = "section";}@@ -7172,7 +7172,7 @@ var Ff = class extends Nf {}return null;}-}, Rf = class {+}, Bf = class {get size() {return this.itemCount;}@@ -7247,14 +7247,14 @@ var Ff = class extends Nf {this.firstKey = e, this.lastKey = t, this.frozen = !n;}filter(e) {- let t = new this.constructor(), [n, r] = zf(this, t, this.firstKey, e);+ let t = new this.constructor(), [n, r] = Vf(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 zf(e, t, n, r) {+function Vf(e, t, n, r) {if (n == null) return [null, null];let i = null, a = null, o = e.getItem(n);for (; o != null;) {@@ -7269,7 +7269,7 @@ function zf(e, t, n, r) {}//#endregion//#region node_modules/react-aria/dist/private/collections/Document.mjs-var Bf = class {+var Hf = class {constructor(e) {this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = e;}@@ -7350,7 +7350,7 @@ var Bf = class {for (; e && e.isHidden;) e = e.previousSibling;return e;}-}, Vf = class e extends Bf {+}, Uf = class e extends Hf {constructor(e, t) {super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.isHidden = !1, this.node = null;}@@ -7401,7 +7401,7 @@ var Bf = class {setAttribute() {}setAttributeNS() {}removeAttribute() {}-}, Hf = class extends Bf {+}, Wf = class extends Hf {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.nextCollection = null, this.subscriptions = /* @__PURE__ */ new Set(), this.queuedRender = !1, this.inSubscription = !1, this.collection = e, this.nextCollection = e;}@@ -7409,7 +7409,7 @@ var Bf = class {return !0;}createElement(e) {- return new Vf(e, this);+ return new Uf(e, this);}getMutableCollection() {return this.nextCollection ||= this.collection.clone(), this.nextCollection;@@ -7431,8 +7431,8 @@ var Bf = class {return this.inSubscription ? this.collection : (this.queuedRender = !1, this.updateCollection(), this.collection);}updateCollection() {- for (let e of this.dirtyNodes) e instanceof Vf && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();- for (let e of this.dirtyNodes) e instanceof Vf ? (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 Uf && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();+ for (let e of this.dirtyNodes) e instanceof Uf ? (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() {@@ -7451,13 +7451,13 @@ var Bf = class {};//#endregion//#region node_modules/react-aria/dist/private/collections/useCachedChildren.mjs-function Uf(e) {+function Gf(e) {let { children: t, items: n, idScope: r, addIdAndValue: i, dependencies: a = [] } = e, o = (0, I.useMemo)(() => void 0, [t]), s = (0, I.useMemo)(() => /* @__PURE__ */ new WeakMap(), [...a, o]);return (0, I.useMemo)(() => {if (n && typeof t == "function") {let e = [];for (let a of n) {- let n = Wf(a) ? a : null, o = n ? s.get(n) : null;+ let n = Kf(a) ? a : null, o = n ? s.get(n) : null;if (!o) {o = t(a);let c = o.props.id ?? a?.key ?? a?.id;@@ -7482,7 +7482,7 @@ function Uf(e) {i]);}-function Wf(e) {+function Kf(e) {switch (typeof e) {case "object": return e != null;case "function":@@ -7492,26 +7492,26 @@ function Wf(e) {}//#endregion//#region node_modules/react-aria/dist/private/utils/focusWithoutScrolling.mjs-function Gf(e) {- if (qf()) e.focus({ preventScroll: !0 });+function qf(e) {+ if (Yf()) e.focus({ preventScroll: !0 });else {- let t = Jf(e);- e.focus(), Yf(t);+ let t = Xf(e);+ e.focus(), Zf(t);}}-var Kf = null;-function qf() {- if (Kf == null) {- Kf = !1;+var Jf = null;+function Yf() {+ if (Jf == null) {+ Jf = !1;try {document.createElement("div").focus({ get preventScroll() {- return Kf = !0, !0;+ return Jf = !0, !0;} });} catch {}}- return Kf;+ return Jf;}-function Jf(e) {+function Xf(e) {let t = e.parentNode, n = [], r = document.scrollingElement || document.documentElement;for (; t instanceof HTMLElement && t !== r;) (t.offsetHeight < t.scrollHeight || t.offsetWidth < t.scrollWidth) && n.push({element: t,@@ -7524,25 +7524,25 @@ function Jf(e) {scrollLeft: r.scrollLeft}), n;}-function Yf(e) {+function Zf(e) {for (let { element: t, scrollTop: n, scrollLeft: r } of e) t.scrollTop = n, t.scrollLeft = r;}//#endregion//#region node_modules/react-aria/dist/private/utils/domHelpers.mjs-var Xf = (e) => $f(e) ? e.document : ep(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), Zf = (e) => Xf(e)?.defaultView ?? (typeof window < "u" ? window : void 0);-function Qf(e) {+var Qf = (e) => tp(e) ? e.document : np(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), $f = (e) => Qf(e)?.defaultView ?? (typeof window < "u" ? window : void 0);+function ep(e) {return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";}-function $f(e) {+function tp(e) {return typeof e == "object" && !!e && "window" in e && e.window === e;}-function ep(e) {- return Qf(e) && e.nodeType === 9;+function np(e) {+ return ep(e) && e.nodeType === 9;}-function tp(e) {- return Qf(e) && e.nodeType === 11 && "host" in e;+function rp(e) {+ return ep(e) && e.nodeType === 11 && "host" in e;}-function np(e, t, n, r) {+function ip(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);@@ -7550,7 +7550,7 @@ function np(e, t, n, r) {for (let e of i) e.removeEventListener(t, n, r);};}-function rp(e, t, n, r) {+function ap(e, t, n, r) {if (e == null) return () => {};let i = [], a = Array.isArray(e) ? e : [e];for (let e of a) {@@ -7565,73 +7565,73 @@ function rp(e, t, n, r) {}//#endregion//#region node_modules/react-stately/dist/private/flags/flags.mjs-var ip = !1;-function ap() {- return ip;+var op = !1;+function sp() {+ return op;}//#endregion//#region node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.mjs-function op(e, t) {- if (!ap()) return t && e ? e.contains(t) : !1;+function cp(e, t) {+ if (!sp()) 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 : tp(n) ? n.host : n.parentNode;+ n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : rp(n) ? n.host : n.parentNode;}return !1;}-var sp = (e = document) => {- if (!ap()) return e.activeElement;+var lp = (e = document) => {+ if (!sp()) return e.activeElement;let t = e.activeElement;for (; t && "shadowRoot" in t && t.shadowRoot?.activeElement;) t = t.shadowRoot.activeElement;return t;};function V(e) {- if (ap() && e.target instanceof Element && e.target.shadowRoot) {+ if (sp() && 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 cp(e, t) {+function up(e, t) {if (t === null) return [];- t ??= Zf(e);+ t ??= $f(e);let n = [t];- if (!ap() || !e || e === t) return n;+ if (!sp() || !e || e === t) return n;let r = "getRootNode" in t ? t.getRootNode() : null, i = e.getRootNode() ?? null;- for (; tp(i) && i !== r;) n.push(i), i = i.host.getRootNode();+ for (; rp(i) && i !== r;) n.push(i), i = i.host.getRootNode();return n;}-function lp(e) {+function dp(e) {if (!e) return !1;- let t = e.getRootNode(), n = Zf(e);+ let t = e.getRootNode(), n = $f(e);if (!(t instanceof n.Document || t instanceof n.ShadowRoot)) return !1;let r = t.activeElement;return r != null && e.contains(r);}//#endregion//#region node_modules/react-aria/dist/private/utils/isElementVisible.mjs-var up = typeof Element < "u" && "checkVisibility" in Element.prototype;-function dp(e) {- let t = Zf(e);+var fp = typeof Element < "u" && "checkVisibility" in Element.prototype;+function pp(e) {+ let t = $f(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 } = Zf(e), { display: n, visibility: r } = t(e);+ let { getComputedStyle: t } = $f(e), { display: n, visibility: r } = t(e);i = n !== "none" && r !== "hidden" && r !== "collapse";}return i;}-function fp(e, t) {+function mp(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 pp(e, t) {- return up ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && dp(e) && fp(e, t) && (!e.parentElement || pp(e.parentElement, e));+function hp(e, t) {+ return fp ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && pp(e) && mp(e, t) && (!e.parentElement || hp(e.parentElement, e));}//#endregion//#region node_modules/react-aria/dist/private/utils/isFocusable.mjs-var mp = [+var gp = ["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])",@@ -7646,41 +7646,41 @@ var mp = ["video[controls]","[contenteditable]:not([contenteditable^=\"false\"])","permission"-], hp = mp.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";-mp.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");-var gp = mp.join(":not([hidden]):not([tabindex=\"-1\"]),");-function _p(e, t) {- return e.matches(hp) && !yp(e) && (t?.skipVisibilityCheck || pp(e));+], _p = gp.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";+gp.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");+var vp = gp.join(":not([hidden]):not([tabindex=\"-1\"]),");+function yp(e, t) {+ return e.matches(_p) && !xp(e) && (t?.skipVisibilityCheck || hp(e));}-function vp(e) {- return e.matches(gp) && pp(e) && !yp(e);+function bp(e) {+ return e.matches(vp) && hp(e) && !xp(e);}-function yp(e) {+function xp(e) {let t = e;for (; t != null;) {- if (t instanceof Zf(t).HTMLElement && t.inert) return !0;+ if (t instanceof $f(t).HTMLElement && t.inert) return !0;t = t.parentElement;}return !1;}//#endregion//#region node_modules/react-aria/dist/private/utils/useLayoutEffect.mjs-var bp = typeof document < "u" ? I.useLayoutEffect : () => {};+var Sp = typeof document < "u" ? I.useLayoutEffect : () => {};//#endregion//#region node_modules/react-aria/dist/private/interactions/utils.mjs-function xp(e) {+function Cp(e) {let t = e;return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {}, t;}-function Sp(e, t) {+function wp(e, t) {Object.defineProperty(e, "target", { value: t }), Object.defineProperty(e, "currentTarget", { value: t });}-function Cp(e) {+function Tp(e) {let t = (0, I.useRef)({isFocused: !1,observer: null});- return bp(() => {+ return Sp(() => {let e = t.current;return () => {e.observer &&= (e.observer.disconnect(), null);@@ -7692,14 +7692,14 @@ function Cp(e) {let n = r;n.addEventListener("focusout", (r) => {if (t.current.isFocused = !1, n.disabled) {- let t = xp(r);+ let t = Cp(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 === sp() ? null : sp();+ let e = n === lp() ? null : lp();n.dispatchEvent(new FocusEvent("blur", { relatedTarget: e })), n.dispatchEvent(new FocusEvent("focusout", {bubbles: !0,relatedTarget: e@@ -7712,87 +7712,87 @@ function Cp(e) {}}, [e]);}-var wp = !1;-function Tp(e) {- for (; e && !_p(e, { skipVisibilityCheck: !0 });) e = e.parentElement;- let t = sp(Zf(e).document);+var Ep = !1;+function Dp(e) {+ for (; e && !yp(e, { skipVisibilityCheck: !0 });) e = e.parentElement;+ let t = lp($f(e).document);if (!t || t === e) return;- let n = e?.getRootNode(), r = n != null && tp(n) ? n : Zf(e), i = (t) => t === e || t != null && op(e, t), a = (e) => e === t || t != null && e != null && op(t, e);- wp = !0;+ let n = e?.getRootNode(), r = n != null && rp(n) ? n : $f(e), i = (t) => t === e || t != null && cp(e, t), a = (e) => e === t || t != null && e != null && cp(t, e);+ Ep = !0;let o = !1, s = (e) => {(a(V(e)) || o) && e.stopImmediatePropagation();}, c = (n) => {- (a(V(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, Gf(t), d()));+ (a(V(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, qf(t), d()));}, l = (e) => {(i(V(e)) || o) && e.stopImmediatePropagation();}, u = (e) => {- (i(V(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, Gf(t), d()));+ (i(V(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, qf(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), wp = !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), Ep = !1, o = !1;}, f = requestAnimationFrame(d);return d;}//#endregion//#region node_modules/react-aria/dist/private/utils/platform.mjs-function Ep(e) {+function Op(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 Dp(e) {+function kp(e) {return typeof window < "u" && window.navigator != null && e.test(window.navigator.userAgentData?.platform || window.navigator.platform);}-function Op(e) {+function Ap(e) {let t = null;return () => (t ??= e(), t);}-var kp = Op(function() {- return Dp(/^Mac/i);-}), Ap = Op(function() {- return Dp(/^iPhone/i);-}), jp = Op(function() {- return Dp(/^iPad/i) || kp() && navigator.maxTouchPoints > 1;-}), Mp = Op(function() {- return Ap() || jp();-}), Np = Op(function() {- return kp() || Mp();-}), Pp = Op(function() {- return Ep(/AppleWebKit/i) && (Mp() || !Fp());-}), Fp = Op(function() {- return Ep(/Chrome|CriOS|CrMo/i);-}), Ip = Op(function() {- return Ep(/Android/i);-}), Lp = Op(function() {- return Ep(/(Firefox|FxiOS)/i);+var jp = Ap(function() {+ return kp(/^Mac/i);+}), Mp = Ap(function() {+ return kp(/^iPhone/i);+}), Np = Ap(function() {+ return kp(/^iPad/i) || jp() && navigator.maxTouchPoints > 1;+}), Pp = Ap(function() {+ return Mp() || Np();+}), Fp = Ap(function() {+ return jp() || Pp();+}), Ip = Ap(function() {+ return Op(/AppleWebKit/i) && (Pp() || !Lp());+}), Lp = Ap(function() {+ return Op(/Chrome|CriOS|CrMo/i);+}), Rp = Ap(function() {+ return Op(/Android/i);+}), zp = Ap(function() {+ return Op(/(Firefox|FxiOS)/i);});//#endregion//#region node_modules/react-aria/dist/private/utils/isVirtualEvent.mjs-function Rp(e) {- return e.pointerType === "" && e.isTrusted ? !0 : Ip() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;+function Bp(e) {+ return e.pointerType === "" && e.isTrusted ? !0 : Rp() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;}-function zp(e) {- return !Ip() && e.width === 0 && e.height === 0 || Ip() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";+function Vp(e) {+ return !Rp() && e.width === 0 && e.height === 0 || Rp() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";}//#endregion//#region node_modules/react-aria/dist/private/utils/openLink.mjs-var Bp = /*#__PURE__*/ (0, I.createContext)({+var Hp = /*#__PURE__*/ (0, I.createContext)({isNative: !0,- open: Gp,+ open: qp,useHref: (e) => e});-function Vp() {- return (0, I.useContext)(Bp);+function Up() {+ return (0, I.useContext)(Hp);}-function Hp(e, t) {+function Wp(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 Up(e, t, n = !0) {+function Gp(e, t, n = !0) {let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t;- !Pp() && Lp() && window.event?.type?.startsWith("key") && e.target === "_blank" && (kp() ? r = !0 : i = !0);- let s = Pp() && kp() && !jp() ? new KeyboardEvent("keydown", {+ !Ip() && zp() && window.event?.type?.startsWith("key") && e.target === "_blank" && (jp() ? r = !0 : i = !0);+ let s = Ip() && jp() && !Np() ? new KeyboardEvent("keydown", {keyIdentifier: "Enter",metaKey: r,ctrlKey: i,@@ -7807,21 +7807,21 @@ function Up(e, t, n = !0) {bubbles: !0,cancelable: !0});- Up.isOpening = n, Gf(e), e.dispatchEvent(s), Up.isOpening = !1;+ Gp.isOpening = n, qf(e), e.dispatchEvent(s), Gp.isOpening = !1;}-Up.isOpening = !1;-function Wp(e, t) {+Gp.isOpening = !1;+function Kp(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 Gp(e, t) {- Wp(e, (e) => Up(e, t));+function qp(e, t) {+ Kp(e, (e) => Gp(e, t));}-function Kp(e) {- let t = Vp().useHref(e.href ?? "");+function Jp(e) {+ let t = Up().useHref(e.href ?? "");return {"data-href": e.href ? t : void 0,"data-target": e.target,@@ -7831,8 +7831,8 @@ function Kp(e) {"data-referrer-policy": e.referrerPolicy};}-function qp(e) {- let t = Vp().useHref(e?.href ?? ""), n = {};+function Yp(e) {+ let t = Up().useHref(e?.href ?? ""), n = {};if (e) for (let r of ["href","target",@@ -7843,138 +7843,138 @@ function qp(e) {]) r in e && e[r] !== void 0 && (n[r] = r === "href" ? t : e[r]);return n;}-function Jp(e, t, n, r) {- !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && Hp(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));+function Xp(e, t, n, r) {+ !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && Wp(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));}//#endregion//#region node_modules/react-aria/dist/private/ssr/SSRProvider.mjs-var Yp = {+var Zp = {prefix: String(Math.round(Math.random() * 1e10)),current: 0-}, Xp = /*#__PURE__*/ I.createContext(Yp), Zp = /*#__PURE__*/ I.createContext(!1);+}, Qp = /*#__PURE__*/ I.createContext(Zp), $p = /*#__PURE__*/ I.createContext(!1);typeof window < "u" && window.document && window.document.createElement;-var Qp = /* @__PURE__ */ new WeakMap();-function $p(e = !1) {- let t = (0, I.useContext)(Xp), n = (0, I.useRef)(null);+var em = /* @__PURE__ */ new WeakMap();+function tm(e = !1) {+ let t = (0, I.useContext)(Qp), n = (0, I.useRef)(null);if (n.current === null && !e) {let e = I.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if (e) {- let n = Qp.get(e);- n == null ? Qp.set(e, {+ let n = em.get(e);+ n == null ? em.set(e, {id: t.current,state: e.memoizedState- }) : e.memoizedState !== n.state && (t.current = n.id, Qp.delete(e));+ }) : e.memoizedState !== n.state && (t.current = n.id, em.delete(e));}n.current = ++t.current;}return n.current;}-function em(e) {- let t = (0, I.useContext)(Xp), n = $p(!!e), r = `react-aria${t.prefix}`;+function nm(e) {+ let t = (0, I.useContext)(Qp), n = tm(!!e), r = `react-aria${t.prefix}`;return e || `${r}-${n}`;}-function tm(e) {- let t = I.useId(), [n] = (0, I.useState)(om()), r = n ? "react-aria" : `react-aria${Yp.prefix}`;+function rm(e) {+ let t = I.useId(), [n] = (0, I.useState)(cm()), r = n ? "react-aria" : `react-aria${Zp.prefix}`;return e || `${r}-${t}`;}-var nm = typeof I.useId == "function" ? tm : em;-function rm() {+var im = typeof I.useId == "function" ? rm : nm;+function am() {return !1;}-function im() {+function om() {return !0;}-function am(e) {+function sm(e) {return () => {};}-function om() {- return typeof I.useSyncExternalStore == "function" ? I.useSyncExternalStore(am, rm, im) : (0, I.useContext)(Zp);+function cm() {+ return typeof I.useSyncExternalStore == "function" ? I.useSyncExternalStore(sm, am, om) : (0, I.useContext)($p);}//#endregion//#region node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs-var sm = null, cm = /* @__PURE__ */ new Set(), lm = /* @__PURE__ */ new Map(), um = !1, dm = !1, fm = {+var lm = null, um = /* @__PURE__ */ new Set(), dm = /* @__PURE__ */ new Map(), fm = !1, pm = !1, mm = {Tab: !0,Escape: !0};-function pm(e, t) {- for (let n of cm) n(e, t);-}-function mm(e) {- return !(e.metaKey || !kp() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");-}-function hm(e) {- um = !0, !Up.isOpening && mm(e) && (sm = "keyboard", pm("keyboard", e));+function hm(e, t) {+ for (let n of um) n(e, t);}function gm(e) {- sm = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (um = !0, pm("pointer", e));+ return !(e.metaKey || !jp() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");}function _m(e) {- !Up.isOpening && Rp(e) && (um = !0, sm = "virtual");+ fm = !0, !Gp.isOpening && gm(e) && (lm = "keyboard", hm("keyboard", e));}function vm(e) {- if (wp) return;- let t = V(e), n = Zf(t), r = Xf(t);+ lm = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (fm = !0, hm("pointer", e));+}+function ym(e) {+ !Gp.isOpening && Bp(e) && (fm = !0, lm = "virtual");+}+function bm(e) {+ if (Ep) return;+ let t = V(e), n = $f(t), r = Qf(t);if (t === n) {- dm = !0;+ pm = !0;return;}- t === r || !e.isTrusted || (!um && !dm && (sm = "virtual", pm("virtual", e)), um = !1, dm = !1);+ t === r || !e.isTrusted || (!fm && !pm && (lm = "virtual", hm("virtual", e)), fm = !1, pm = !1);}-function ym() {- wp || (um = !1, dm = !0);+function xm() {+ Ep || (fm = !1, pm = !0);}-function bm(e) {+function Sm(e) {if (typeof window > "u" || typeof document > "u") return;- let t = Zf(e), n = Xf(e);- if (lm.get(t)) return;+ let t = $f(e), n = Qf(e);+ if (dm.get(t)) return;let r = t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype, "focus", {configurable: !0,writable: !0,value: function() {- um = !0, r.apply(this, arguments);+ fm = !0, r.apply(this, arguments);}- }), n.addEventListener("keydown", hm, !0), n.addEventListener("keyup", hm, !0), n.addEventListener("click", _m, !0), t.addEventListener("focus", vm, !0), t.addEventListener("blur", ym, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", gm, !0), n.addEventListener("pointermove", gm, !0), n.addEventListener("pointerup", gm, !0)), t.addEventListener("beforeunload", () => {- xm(e);- }, { once: !0 }), lm.set(t, { focus: r });+ }), n.addEventListener("keydown", _m, !0), n.addEventListener("keyup", _m, !0), n.addEventListener("click", ym, !0), t.addEventListener("focus", bm, !0), t.addEventListener("blur", xm, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", vm, !0), n.addEventListener("pointermove", vm, !0), n.addEventListener("pointerup", vm, !0)), t.addEventListener("beforeunload", () => {+ Cm(e);+ }, { once: !0 }), dm.set(t, { focus: r });}-var xm = (e, t) => {- let n = Zf(e), r = Xf(e);- t && r.removeEventListener("DOMContentLoaded", t), lm.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {+var Cm = (e, t) => {+ let n = $f(e), r = Qf(e);+ t && r.removeEventListener("DOMContentLoaded", t), dm.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {configurable: !0,writable: !0,- value: lm.get(n).focus- }), r.removeEventListener("keydown", hm, !0), r.removeEventListener("keyup", hm, !0), r.removeEventListener("click", _m, !0), n.removeEventListener("focus", vm, !0), n.removeEventListener("blur", ym, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", gm, !0), r.removeEventListener("pointermove", gm, !0), r.removeEventListener("pointerup", gm, !0)), lm.delete(n));+ value: dm.get(n).focus+ }), r.removeEventListener("keydown", _m, !0), r.removeEventListener("keyup", _m, !0), r.removeEventListener("click", ym, !0), n.removeEventListener("focus", bm, !0), n.removeEventListener("blur", xm, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", vm, !0), r.removeEventListener("pointermove", vm, !0), r.removeEventListener("pointerup", vm, !0)), dm.delete(n));};-function Sm(e) {- let t = Xf(e), n;+function wm(e) {+ let t = Qf(e), n;return t.readyState === "loading" ? (n = () => {- bm(e);- }, t.addEventListener("DOMContentLoaded", n)) : bm(e), () => xm(e, n);+ Sm(e);+ }, t.addEventListener("DOMContentLoaded", n)) : Sm(e), () => Cm(e, n);}-typeof document < "u" && Sm();-function Cm() {- return sm !== "pointer";+typeof document < "u" && wm();+function Tm() {+ return lm !== "pointer";}-function wm() {- return sm;+function Em() {+ return lm;}-function Tm(e) {- sm = e, pm(e, null);+function Dm(e) {+ lm = e, hm(e, null);}-function Em() {- bm();- let [e, t] = (0, I.useState)(sm);+function Om() {+ Sm();+ let [e, t] = (0, I.useState)(lm);return (0, I.useEffect)(() => {let e = () => {- t(sm);+ t(lm);};- return cm.add(e), () => {- cm.delete(e);+ return um.add(e), () => {+ um.delete(e);};- }, []), om() ? null : e;+ }, []), cm() ? null : e;}-var Dm = /* @__PURE__ */ new Set([+var km = /* @__PURE__ */ new Set(["checkbox","radio","range",@@ -7985,25 +7985,25 @@ var Dm = /* @__PURE__ */ new Set(["submit","reset"]);-function Om(e, t, n) {- let r = n ? V(n) : void 0, i = Xf(r), a = Zf(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 = sp(i);- return e = e || u instanceof o && !Dm.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !fm[n.key]);+function Am(e, t, n) {+ let r = n ? V(n) : void 0, i = Qf(r), a = $f(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 = lp(i);+ return e = e || u instanceof o && !km.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !mm[n.key]);}-function km(e, t, n) {- bm(), (0, I.useEffect)(() => {+function jm(e, t, n) {+ Sm(), (0, I.useEffect)(() => {if (n?.enabled === !1) return;let t = (t, r) => {- Om(!!n?.isTextInput, t, r) && e(Cm());+ Am(!!n?.isTextInput, t, r) && e(Tm());};- return cm.add(t), () => {- cm.delete(t);+ return um.add(t), () => {+ um.delete(t);};}, t);}//#endregion//#region node_modules/react-aria/dist/private/utils/runAfterTransition.mjs-var Am = /* @__PURE__ */ new Map(), jm = /* @__PURE__ */ new Set();-function Mm() {+var Mm = /* @__PURE__ */ new Map(), Nm = /* @__PURE__ */ new Set();+function Pm() {if (typeof window > "u") return;function e(e) {return "propertyName" in e;@@ -8011,51 +8011,51 @@ function Mm() {let t = (t) => {let r = V(t);if (!e(t) || !r) return;- let i = Am.get(r);- i || (i = /* @__PURE__ */ new Set(), Am.set(r, i), r.addEventListener("transitioncancel", n, { once: !0 })), i.add(t.propertyName);+ let i = Mm.get(r);+ i || (i = /* @__PURE__ */ new Set(), Mm.set(r, i), r.addEventListener("transitioncancel", n, { once: !0 })), i.add(t.propertyName);}, n = (t) => {let r = V(t);if (!e(t) || !r) return;- let i = Am.get(r);- if (i && (i.delete(t.propertyName), i.size === 0 && (r.removeEventListener("transitioncancel", n), Am.delete(r)), Am.size === 0)) {- for (let e of jm) e();- jm.clear();+ let i = Mm.get(r);+ if (i && (i.delete(t.propertyName), i.size === 0 && (r.removeEventListener("transitioncancel", n), Mm.delete(r)), Mm.size === 0)) {+ for (let e of Nm) e();+ Nm.clear();}};document.body.addEventListener("transitionrun", t), document.body.addEventListener("transitionend", n);}-typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", Mm) : Mm());-function Nm() {- for (let [e] of Am) "isConnected" in e && !e.isConnected && Am.delete(e);+typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", Pm) : Pm());+function Fm() {+ for (let [e] of Mm) "isConnected" in e && !e.isConnected && Mm.delete(e);}-function Pm(e) {+function Im(e) {requestAnimationFrame(() => {- Nm(), Am.size === 0 ? e() : jm.add(e);+ Fm(), Mm.size === 0 ? e() : Nm.add(e);});}//#endregion//#region node_modules/react-aria/dist/private/interactions/focusSafely.mjs-function Fm(e) {+function Lm(e) {if (!e.isConnected) return;- let t = Xf(e);- if (wm() === "virtual") {- let n = sp(t);- Pm(() => {- let r = sp(t);- (r === n || r === t.body) && e.isConnected && Gf(e);+ let t = Qf(e);+ if (Em() === "virtual") {+ let n = lp(t);+ Im(() => {+ let r = lp(t);+ (r === n || r === t.body) && e.isConnected && qf(e);});- } else Gf(e);+ } else qf(e);}//#endregion//#region node_modules/react-aria/dist/private/utils/chain.mjs-function Im(...e) {+function Rm(...e) {return (...t) => {for (let n of e) typeof n == "function" && n(...t);};}//#endregion//#region node_modules/react-aria/dist/private/utils/useValueEffect.mjs-function Lm(e) {+function zm(e) {let [t, n] = (0, I.useState)(e), r = (0, I.useRef)(t), i = (0, I.useRef)(null), a = (0, I.useRef)(() => {if (!i.current) return;let e = i.current.next();@@ -8065,7 +8065,7 @@ function Lm(e) {}r.current === e.value ? a.current() : n(e.value);});- return bp(() => {+ return Sp(() => {r.current = t, i.current && a.current();}), [t, (0, I.useCallback)((e) => {i.current = e(r.current), a.current();@@ -8073,21 +8073,21 @@ function Lm(e) {}//#endregion//#region node_modules/react-aria/dist/private/utils/useId.mjs-var Rm = !!(typeof window < "u" && window.document && window.document.createElement), zm = /* @__PURE__ */ new Map(), Bm;-typeof FinalizationRegistry < "u" && (Bm = new FinalizationRegistry((e) => {- zm.delete(e);+var Bm = !!(typeof window < "u" && window.document && window.document.createElement), Vm = /* @__PURE__ */ new Map(), Hm;+typeof FinalizationRegistry < "u" && (Hm = new FinalizationRegistry((e) => {+ Vm.delete(e);}));-var Vm = /* @__PURE__ */ new WeakMap();-function Hm(e) {- let [t, n] = (0, I.useState)(e), r = (0, I.useRef)(null), i = nm(t), a = (0, I.useRef)(null), o = Vm.get(a);- if (Bm && o !== i && (o != null && Bm.unregister(a), Bm.register(a, i, a), Vm.set(a, i)), Rm) {- let e = zm.get(i);- e && !e.includes(r) ? e.push(r) : zm.set(i, [r]);- }- return bp(() => {+var Um = /* @__PURE__ */ new WeakMap();+function Wm(e) {+ let [t, n] = (0, I.useState)(e), r = (0, I.useRef)(null), i = im(t), a = (0, I.useRef)(null), o = Um.get(a);+ if (Hm && o !== i && (o != null && Hm.unregister(a), Hm.register(a, i, a), Um.set(a, i)), Bm) {+ let e = Vm.get(i);+ e && !e.includes(r) ? e.push(r) : Vm.set(i, [r]);+ }+ return Sp(() => {let e = i;return () => {- Bm && (Bm.unregister(a), Vm.delete(a)), zm.delete(e);+ Hm && (Hm.unregister(a), Um.delete(a)), Vm.delete(e);};}, [i]), (0, I.useEffect)(() => {let e = r.current;@@ -8096,20 +8096,20 @@ function Hm(e) {};}), i;}-function Um(e, t) {+function Gm(e, t) {if (e === t) return e;- let n = zm.get(e);+ let n = Vm.get(e);if (n) return n.forEach((e) => e.current = t), t;- let r = zm.get(t);+ let r = Vm.get(t);return r ? (r.forEach((t) => t.current = e), e) : t;}-function Wm(e = []) {- let t = Hm(), [n, r] = Lm(t), i = (0, I.useCallback)(() => {+function Km(e = []) {+ let t = Wm(), [n, r] = zm(t), i = (0, I.useCallback)(() => {r(function* () {yield t, yield document.getElementById(t) ? t : void 0;});}, [t, r]);- return bp(i, [+ return Sp(i, [t,i,...e@@ -8117,38 +8117,38 @@ function Wm(e = []) {}//#endregion//#region node_modules/react-aria/dist/private/utils/mergeRefs.mjs-function Gm(...e) {+function qm(...e) {return e.length === 1 && e[0] ? e[0] : (t) => {let n = !1, r = e.map((e) => {- let r = Km(e, t);+ let r = Jm(e, t);return n ||= typeof r == "function", r;});if (n) return () => {r.forEach((t, n) => {- typeof t == "function" ? t() : Km(e[n], null);+ typeof t == "function" ? t() : Jm(e[n], null);});};};}-function Km(e, t) {+function Jm(e, t) {if (typeof e == "function") return e(t);e != null && (e.current = t);}//#endregion//#region node_modules/clsx/dist/clsx.mjs-function qm(e) {+function Ym(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 = qm(e[t])) && (r && (r += " "), r += n);+ for (t = 0; t < i; t++) e[t] && (n = Ym(e[t])) && (r && (r += " "), r += n);} else for (n in e) e[n] && (r && (r += " "), r += n);}return r;}-function Jm() {- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = qm(e)) && (r && (r += " "), r += t);+function Xm() {+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Ym(e)) && (r && (r += " "), r += t);return r;}//#endregion@@ -8159,18 +8159,18 @@ function H(...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] = Im(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = Jm(n, i) : e === "id" && n && i ? t.id = Um(n, i) : e === "ref" && n && i ? t.ref = Gm(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] = Rm(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = Xm(n, i) : e === "id" && n && i ? t.id = Gm(n, i) : e === "ref" && n && i ? t.ref = qm(n, i) : t[e] = i === void 0 ? n : i;}}return t;}//#endregion//#region node_modules/react-aria/dist/private/interactions/useFocus.mjs-function Ym(e) {+function Zm(e) {let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, I.useCallback)((e) => {if (V(e) === e.currentTarget) return r && r(e), i && i(!1), !0;- }, [r, i]), o = Cp(a), s = (0, I.useCallback)((e) => {- let t = V(e), r = Xf(t), a = r ? sp(r) : sp();+ }, [r, i]), o = Tp(a), s = (0, I.useCallback)((e) => {+ let t = V(e), r = Qf(t), a = r ? lp(r) : lp();t === e.currentTarget && t === a && (n && n(e), i && i(!0), o(e));}, [i,@@ -8184,7 +8184,7 @@ function Ym(e) {}//#endregion//#region node_modules/react-aria/dist/private/interactions/createEventHandler.mjs-function Xm(e) {+function Qm(e) {if (e) return (t) => {let n = !0;e({@@ -8209,33 +8209,33 @@ function Xm(e) {}//#endregion//#region node_modules/react-aria/dist/private/interactions/createKeyboardShortcutHandler.mjs-var Zm = /* @__PURE__ */ new Set([+var $m = /* @__PURE__ */ new Set(["shift","alt","control","meta","mod"-]), Qm = [+]), eh = ["Alt","Control","Meta","Shift"];-function $m(e) {+function th(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(kp() ? "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(jp() ? "Meta" : "Control"), t;}-function eh(e) {+function nh(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 th(e) {- return Qm.filter((t) => e.has(t));+function rh(e) {+ return eh.filter((t) => e.has(t));}-function nh(e) {+function ih(e) {let t = e.split("+").reduce((e, t) => {let n = t.toLowerCase();- return Zm.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 $m.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,@@ -8247,10 +8247,10 @@ function nh(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 rh(e) {+function ah(e) {return e.toLowerCase();}-var ih = {+var oh = {space: " ",esc: "escape",del: "delete",@@ -8262,26 +8262,26 @@ var ih = {pageup: "pageup",pagedown: "pagedown"};-function ah(e) {- let t = rh(e);- return ih[t] ?? t;+function sh(e) {+ let t = ah(e);+ return oh[t] ?? t;}-function oh(e) {- let t = th($m(e)), n = ah(e.key);+function ch(e) {+ let t = rh(th(e)), n = sh(e.key);return t.length > 0 ? `${t.join("+")}+${n}` : n;}-function sh(e) {- let t = th(eh(e)), n = rh(e.key);+function lh(e) {+ let t = rh(nh(e)), n = ah(e.key);return (t.length > 0 ? `${t.join("+")}+` : "") + n;}-function ch(e) {+function uh(e) {let t = /* @__PURE__ */ new Map();for (let [n, r] of Object.entries(e)) {- let e = nh(n);- t.set(oh(e), r);+ let e = ih(n);+ t.set(ch(e), r);}return (e) => {- let n = sh(e), r = t.get(n), i = r?.(e);+ let n = lh(e), r = t.get(n), i = r?.(e);i === void 0 && r !== void 0 ? i = {shouldContinuePropagation: !1,shouldPreventDefault: !0@@ -8293,11 +8293,11 @@ function ch(e) {}//#endregion//#region node_modules/react-aria/dist/private/interactions/useKeyboard.mjs-function lh(e) {+function dh(e) {let { shortcuts: t, allowRepeats: n = !1, allowComposing: r = !1 } = e, i, a;if (t) {- let o = ch(t), s = Xm((e) => {- if (!op(e.currentTarget, V(e))) {+ let o = uh(t), s = Qm((e) => {+ if (!cp(e.currentTarget, V(e))) {e.continuePropagation();return;}@@ -8306,8 +8306,8 @@ function lh(e) {return;}o(e);- }), c = Xm((e) => {- if (!op(e.currentTarget, V(e))) {+ }), c = Qm((e) => {+ if (!cp(e.currentTarget, V(e))) {e.continuePropagation();return;}@@ -8317,8 +8317,8 @@ function lh(e) {}e.continuePropagation();});- i = e.onKeyDown ? Im(e.onKeyDown, s) : s, a = e.onKeyUp ? Im(e.onKeyUp, c) : c;- } else i = Xm(e.onKeyDown), a = Xm(e.onKeyUp);+ i = e.onKeyDown ? Rm(e.onKeyDown, s) : s, a = e.onKeyUp ? Rm(e.onKeyUp, c) : c;+ } else i = Qm(e.onKeyDown), a = Qm(e.onKeyUp);return { keyboardProps: e.isDisabled ? {} : {onKeyDown: i,onKeyUp: a@@ -8326,7 +8326,7 @@ function lh(e) {}//#endregion//#region node_modules/react-aria/dist/private/utils/useObjectRef.mjs-function uh(e) {+function fh(e) {let t = (0, I.useRef)(null), n = (0, I.useRef)(void 0), r = (0, I.useCallback)((t) => {if (typeof e == "function") {let n = e, r = n(t);@@ -8349,8 +8349,8 @@ function uh(e) {}//#endregion//#region node_modules/react-aria/dist/private/utils/useSyncRef.mjs-function dh(e, t) {- bp(() => {+function ph(e, t) {+ Sp(() => {if (e && e.ref && t) return e.ref.current = t.current, () => {e.ref && (e.ref.current = null);};@@ -8358,17 +8358,17 @@ function dh(e, t) {}//#endregion//#region node_modules/react-aria/dist/private/interactions/useFocusable.mjs-var fh = /*#__PURE__*/ I.createContext(null);-function ph(e) {- let t = (0, I.useContext)(fh) || {};- dh(t, e);+var mh = /*#__PURE__*/ I.createContext(null);+function hh(e) {+ let t = (0, I.useContext)(mh) || {};+ ph(t, e);let { ref: n, ...r } = t;return r;}-function mh(e, t) {- let { focusProps: n } = Ym(e), { keyboardProps: r } = lh(e), i = H(n, r), a = ph(t), o = e.isDisabled ? {} : a, s = (0, I.useRef)(e.autoFocus);+function gh(e, t) {+ let { focusProps: n } = Zm(e), { keyboardProps: r } = dh(e), i = H(n, r), a = hh(t), o = e.isDisabled ? {} : a, s = (0, I.useRef)(e.autoFocus);(0, I.useEffect)(() => {- s.current && t.current && Fm(t.current), s.current = !1;+ s.current && t.current && Lm(t.current), s.current = !1;}, [t]);let c = e.excludeFromTabOrder ? -1 : 0;return e.isDisabled && (c = void 0), { focusableProps: H({@@ -8403,23 +8403,23 @@ typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.preturn this.content.insertBefore(e, t);}}));-var hh = /*#__PURE__*/ (0, I.createContext)(!1);-function gh(e) {- if ((0, I.useContext)(hh)) return /*#__PURE__*/ I.createElement(I.Fragment, null, e.children);- let t = /*#__PURE__*/ I.createElement(hh.Provider, { value: !0 }, e.children);+var _h = /*#__PURE__*/ (0, I.createContext)(!1);+function vh(e) {+ if ((0, I.useContext)(_h)) return /*#__PURE__*/ I.createElement(I.Fragment, null, e.children);+ let t = /*#__PURE__*/ I.createElement(_h.Provider, { value: !0 }, e.children);return /*#__PURE__*/ I.createElement("template", null, t);}-function _h(e) {- let t = (t, n) => (0, I.useContext)(hh) ? null : e(t, n);+function yh(e) {+ let t = (t, n) => (0, I.useContext)(_h) ? null : e(t, n);return t.displayName = e.displayName || e.name, (0, I.forwardRef)(t);}-function vh() {- return (0, I.useContext)(hh);+function bh() {+ return (0, I.useContext)(_h);}//#endregion//#region node_modules/react-dom/cjs/react-dom.production.js-var yh = /* @__PURE__ */ F(((e) => {- var t = oe();+var xh = /* @__PURE__ */ F(((e) => {+ var t = ce();function n(e) {var t = "https://react.dev/errors/" + e;if (1 < arguments.length) {@@ -8546,7 +8546,7 @@ var yh = /* @__PURE__ */ F(((e) => {}, e.useFormStatus = function() {return l.H.useHostTransitionStatus();}, e.version = "19.3.0";-})), bh = /* @__PURE__ */ F(((e, t) => {+})), Sh = /* @__PURE__ */ F(((e, t) => {function n() {if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) try {__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n);@@ -8554,9 +8554,9 @@ var yh = /* @__PURE__ */ F(((e) => {console.error(e);}}- n(), t.exports = yh();-})), xh = /* @__PURE__ */ F(((e) => {- var t = oe();+ n(), t.exports = xh();+})), Ch = /* @__PURE__ */ F(((e) => {+ var t = ce();function n(e, t) {return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;}@@ -8593,47 +8593,47 @@ var yh = /* @__PURE__ */ F(((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;-})), Sh = /* @__PURE__ */ F(((e, t) => {- t.exports = xh();-})), Ch = /* @__PURE__ */ re(bh(), 1), wh = Sh(), Th = /*#__PURE__*/ (0, I.createContext)(!1), Eh = /*#__PURE__*/ (0, I.createContext)(null);-function Dh(e) {- if ((0, I.useContext)(Eh)) return e.content;- let { collection: t, document: n } = jh(e.createCollection);- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(gh, null, /*#__PURE__*/ I.createElement(Eh.Provider, { value: n }, e.content)), /*#__PURE__*/ I.createElement(Oh, {+})), wh = /* @__PURE__ */ F(((e, t) => {+ t.exports = Ch();+})), Th = /* @__PURE__ */ ae(Sh(), 1), Eh = wh(), Dh = /*#__PURE__*/ (0, I.createContext)(!1), Oh = /*#__PURE__*/ (0, I.createContext)(null);+function kh(e) {+ if ((0, I.useContext)(Oh)) return e.content;+ let { collection: t, document: n } = Nh(e.createCollection);+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(vh, null, /*#__PURE__*/ I.createElement(Oh.Provider, { value: n }, e.content)), /*#__PURE__*/ I.createElement(Ah, {render: e.children,collection: t}));}-function Oh({ collection: e, render: t }) {+function Ah({ collection: e, render: t }) {return t(e);}-function kh(e, t, n) {- let r = om(), i = (0, I.useRef)(r);+function jh(e, t, n) {+ let r = cm(), i = (0, I.useRef)(r);i.current = r;let a = (0, I.useCallback)(() => i.current ? n() : t(), [t, n]);- return (0, wh.useSyncExternalStore)(e, a);+ return (0, Eh.useSyncExternalStore)(e, a);}-var Ah = typeof I.useSyncExternalStore == "function" ? I.useSyncExternalStore : kh;-function jh(e) {- let [t] = (0, I.useState)(() => new Hf(e?.() || new Rf()));+var Mh = typeof I.useSyncExternalStore == "function" ? I.useSyncExternalStore : jh;+function Nh(e) {+ let [t] = (0, I.useState)(() => new Wf(e?.() || new Bf()));return {- collection: Ah((0, I.useCallback)((e) => t.subscribe(e), [t]), (0, I.useCallback)(() => {+ collection: Mh((0, I.useCallback)((e) => t.subscribe(e), [t]), (0, I.useCallback)(() => {let e = t.getCollection();return t.isSSR && t.resetAfterSSR(), e;}, [t]), (0, I.useCallback)(() => (t.isSSR = !0, t.getCollection()), [t])),document: t};}-var Mh = /*#__PURE__*/ (0, I.createContext)(null);-function Nh(e) {- return class extends Nf {+var Ph = /*#__PURE__*/ (0, I.createContext)(null);+function Fh(e) {+ return class extends Ff {static {this.type = e;}};}-function Ph(e, t, n, r, i, a) {- typeof e == "string" && (e = Nh(e));+function Ih(e, t, n, r, i, a) {+ typeof e == "string" && (e = Fh(e));let o = (0, I.useCallback)((i) => {i?.setProps(t, n, e, r, a);}, [@@ -8642,81 +8642,81 @@ function Ph(e, t, n, r, i, a) {r,a,e- ]), s = (0, I.useContext)(Mh);+ ]), s = (0, I.useContext)(Ph);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__*/ I.createElement(Mh.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__*/ I.createElement(Ph.Provider, { value: o }, i) : null;}return /*#__PURE__*/ I.createElement(e.type, { ref: o }, i);}-function Fh(e, t) {+function Lh(e, t) {let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, I.forwardRef)((r, i) => {- let a = (0, I.useContext)(fh);- if (!(0, I.useContext)(Th)) {+ let a = (0, I.useContext)(mh);+ if (!(0, I.useContext)(Dh)) {if (t.length >= 3) throw Error(t.name + " cannot be rendered outside a collection.");return t(r, i);}- return Ph(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ I.createElement(fh.Provider, { value: a }, /*#__PURE__*/ I.createElement(n, { node: e })));+ return Ih(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ I.createElement(mh.Provider, { value: a }, /*#__PURE__*/ I.createElement(n, { node: e })));});return r.displayName = t.name, r;}-function Ih(e, t, n = Lh) {- let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, I.forwardRef)((t, i) => Ph(e, t, i, null, n(t), (e) => /*#__PURE__*/ I.createElement(r, { node: e })) ?? /*#__PURE__*/ I.createElement(I.Fragment, null));+function Rh(e, t, n = zh) {+ let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, I.forwardRef)((t, i) => Ih(e, t, i, null, n(t), (e) => /*#__PURE__*/ I.createElement(r, { node: e })) ?? /*#__PURE__*/ I.createElement(I.Fragment, null));return i.displayName = t.name, i;}-function Lh(e) {- return Uf({+function zh(e) {+ return Gf({...e,addIdAndValue: !0});}-var Rh = /*#__PURE__*/ (0, I.createContext)(null);-function zh(e) {- let t = (0, I.useContext)(Rh), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = Lh({+var Bh = /*#__PURE__*/ (0, I.createContext)(null);+function Vh(e) {+ let t = (0, I.useContext)(Bh), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = zh({...e,idScope: r,dependencies: n});- return (0, I.useContext)(Eh) && (i = /*#__PURE__*/ I.createElement(Bh, null, i)), t = (0, I.useMemo)(() => ({+ return (0, I.useContext)(Oh) && (i = /*#__PURE__*/ I.createElement(Hh, null, i)), t = (0, I.useMemo)(() => ({dependencies: n,idScope: r- }), [r, ...n]), /*#__PURE__*/ I.createElement(Rh.Provider, { value: t }, i);+ }), [r, ...n]), /*#__PURE__*/ I.createElement(Bh.Provider, { value: t }, i);}-function Bh({ children: e }) {- let t = (0, I.useContext)(Eh), n = (0, I.useMemo)(() => /*#__PURE__*/ I.createElement(Eh.Provider, { value: null }, /*#__PURE__*/ I.createElement(Th.Provider, { value: !0 }, e)), [e]);- return om() ? /*#__PURE__*/ I.createElement(Mh.Provider, { value: t }, n) : /*#__PURE__*/ (0, Ch.createPortal)(n, t);+function Hh({ children: e }) {+ let t = (0, I.useContext)(Oh), n = (0, I.useMemo)(() => /*#__PURE__*/ I.createElement(Oh.Provider, { value: null }, /*#__PURE__*/ I.createElement(Dh.Provider, { value: !0 }, e)), [e]);+ return cm() ? /*#__PURE__*/ I.createElement(Ph.Provider, { value: t }, n) : /*#__PURE__*/ (0, Th.createPortal)(n, t);}//#endregion//#region node_modules/react-aria/dist/private/utils/constants.mjs-var Vh = "react-aria-clear-focus", Hh = "react-aria-focus";+var Uh = "react-aria-clear-focus", Wh = "react-aria-focus";//#endregion//#region node_modules/react-aria/dist/private/focus/virtualFocus.mjs-function Uh(e) {- let t = Kh(Xf(e));- t !== e && (t && Wh(t, e), e && Gh(e, t));+function Gh(e) {+ let t = Jh(Qf(e));+ t !== e && (t && Kh(t, e), e && qh(e, t));}-function Wh(e, t) {+function Kh(e, t) {e.dispatchEvent(new FocusEvent("blur", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusout", {bubbles: !0,relatedTarget: t}));}-function Gh(e, t) {+function qh(e, t) {e.dispatchEvent(new FocusEvent("focus", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusin", {bubbles: !0,relatedTarget: t}));}-function Kh(e) {- let t = sp(e), n = t?.getAttribute("aria-activedescendant");+function Jh(e) {+ let t = lp(e), n = t?.getAttribute("aria-activedescendant");return n && e.getElementById(n) || t;}//#endregion//#region node_modules/react-aria/dist/private/utils/keyboard.mjs-function qh(e) {- return kp() ? e.metaKey : e.ctrlKey;+function Yh(e) {+ return jp() ? e.metaKey : e.ctrlKey;}-var Jh = /* @__PURE__ */ new Set([+var Xh = /* @__PURE__ */ new Set(["checkbox","radio","range",@@ -8727,15 +8727,15 @@ var Jh = /* @__PURE__ */ new Set(["submit","reset"]);-function Yh(e) {- return e instanceof HTMLInputElement && !Jh.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;+function Zh(e) {+ return e instanceof HTMLInputElement && !Xh.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;}//#endregion//#region node_modules/react-aria/dist/private/utils/useEffectEvent.mjs-var Xh = I.useInsertionEffect ?? bp;-function Zh(e) {+var Qh = I.useInsertionEffect ?? Sp;+function $h(e) {let t = (0, I.useRef)(null);- return Xh(() => {+ return Qh(() => {t.current = e;}, [e]), (0, I.useCallback)((...e) => {let n = t.current;@@ -8744,10 +8744,10 @@ function Zh(e) {}//#endregion//#region node_modules/react-aria/dist/private/utils/useEvent.mjs-function Qh(e, t, n, r) {- let i = Zh(n), a = n == null;+function eg(e, t, n, r) {+ let i = $h(n), a = n == null;(0, I.useEffect)(() => {- if (!(a || e.current == null)) return np(e.current, t, i, r);+ if (!(a || e.current == null)) return ip(e.current, t, i, r);}, [e,t,@@ -8757,9 +8757,9 @@ function Qh(e, t, n, r) {}//#endregion//#region node_modules/react-aria/dist/private/utils/useLabels.mjs-function $h(e, t) {+function tg(e, t) {let { id: n, "aria-label": r, "aria-labelledby": i } = e;- return n = Hm(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 = Wm(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@@ -8767,7 +8767,7 @@ function $h(e, t) {}//#endregion//#region node_modules/react-aria/dist/private/i18n/utils.mjs-var eg = /* @__PURE__ */ new Set([+var ng = /* @__PURE__ */ new Set(["Arab","Syrc","Samr",@@ -8778,7 +8778,7 @@ var eg = /* @__PURE__ */ new Set(["Adlm","Rohg","Hebr"-]), tg = /* @__PURE__ */ new Set([+]), rg = /* @__PURE__ */ new Set(["ae","ar","arc",@@ -8799,20 +8799,20 @@ var eg = /* @__PURE__ */ new Set(["ur","yi"]);-function ng(e) {+function ig(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 eg.has(t.script);+ if (t.script) return ng.has(t.script);}let t = e.split("-")[0];- return tg.has(t);+ return rg.has(t);}//#endregion//#region node_modules/react-aria/dist/private/i18n/useDefaultLocale.mjs-var rg = Symbol.for("react-aria.i18n.locale");-function ig() {- let e = typeof window < "u" && window[rg] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";+var ag = Symbol.for("react-aria.i18n.locale");+function og() {+ let e = typeof window < "u" && window[ag] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";try {Intl.DateTimeFormat.supportedLocalesOf([e]);} catch {@@ -8820,33 +8820,33 @@ function ig() {}return {locale: e,- direction: ng(e) ? "rtl" : "ltr"+ direction: ig(e) ? "rtl" : "ltr"};}-var ag = ig(), og = /* @__PURE__ */ new Set();-function sg() {- ag = ig();- for (let e of og) e(ag);+var sg = og(), cg = /* @__PURE__ */ new Set();+function lg() {+ sg = og();+ for (let e of cg) e(sg);}function eee() {- let e = om(), [t, n] = (0, I.useState)(ag);- return (0, I.useEffect)(() => (og.size === 0 && window.addEventListener("languagechange", sg), og.add(n), () => {- og.delete(n), og.size === 0 && window.removeEventListener("languagechange", sg);+ let e = cm(), [t, n] = (0, I.useState)(sg);+ return (0, I.useEffect)(() => (cg.size === 0 && window.addEventListener("languagechange", lg), cg.add(n), () => {+ cg.delete(n), cg.size === 0 && window.removeEventListener("languagechange", lg);}), []), e ? {- locale: typeof window < "u" && window[rg] || "en-US",+ locale: typeof window < "u" && window[ag] || "en-US",direction: "ltr"} : t;}//#endregion//#region node_modules/react-aria/dist/private/i18n/I18nProvider.mjs-var cg = /*#__PURE__*/ I.createContext(null);-function lg() {+var tee = /*#__PURE__*/ I.createContext(null);+function ug() {let e = eee();- return (0, I.useContext)(cg) || e;+ return (0, I.useContext)(tee) || e;}//#endregion//#region node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.mjs-var tee = Symbol.for("react-aria.i18n.locale"), nee = Symbol.for("react-aria.i18n.strings"), ug = void 0, dg = class e {+var dg = Symbol.for("react-aria.i18n.locale"), fg = Symbol.for("react-aria.i18n.strings"), pg = void 0, mg = class e {constructor(e, t = "en-US") {this.strings = Object.fromEntries(Object.entries(e).filter(([, e]) => e)), this.defaultLocale = t;}@@ -8857,39 +8857,39 @@ var tee = Symbol.for("react-aria.i18n.locale"), nee = Symbol.for("react-aria.i18}getStringsForLocale(e) {let t = this.strings[e];- return t || (t = ree(e, this.strings, this.defaultLocale), this.strings[e] = t), t;+ return t || (t = nee(e, this.strings, this.defaultLocale), this.strings[e] = t), t;}static getGlobalDictionaryForPackage(t) {if (typeof window > "u") return null;- let n = window[tee];- if (ug === void 0) {- let t = window[nee];+ let n = window[dg];+ if (pg === void 0) {+ let t = window[fg];if (!t) return null;- ug = {};- for (let r in t) ug[r] = new e({ [n]: t[r] }, n);+ pg = {};+ for (let r in t) pg[r] = new e({ [n]: t[r] }, n);}- let r = ug?.[t];+ let r = pg?.[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 ree(e, t, n = "en-US") {+function nee(e, t, n = "en-US") {if (t[e]) return t[e];- let r = iee(e), i = aee(e);+ let r = hg(e), i = gg(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 iee(e) {+function hg(e) {return Intl.Locale ? new Intl.Locale(e).language : e.split("-")[0];}-function aee(e) {+function gg(e) {if (Intl.Locale) return new Intl.Locale(e).script;}//#endregion//#region node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.mjs-var fg = /* @__PURE__ */ new Map(), pg = /* @__PURE__ */ new Map(), oee = class {+var _g = /* @__PURE__ */ new Map(), vg = /* @__PURE__ */ new Map(), ree = class {constructor(e, t) {this.locale = e, this.strings = t;}@@ -8900,37 +8900,37 @@ var fg = /* @__PURE__ */ new Map(), pg = /* @__PURE__ */ new Map(), oee = classplural(e, t, n = "cardinal") {let r = t["=" + e];if (r) return typeof r == "function" ? r() : r;- let i = this.locale + ":" + n, a = fg.get(i);- return a || (a = new Intl.PluralRules(this.locale, { type: n }), fg.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;+ let i = this.locale + ":" + n, a = _g.get(i);+ return a || (a = new Intl.PluralRules(this.locale, { type: n }), _g.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;}number(e) {- let t = pg.get(this.locale);- return t || (t = new Intl.NumberFormat(this.locale), pg.set(this.locale, t)), t.format(e);+ let t = vg.get(this.locale);+ return t || (t = new Intl.NumberFormat(this.locale), vg.set(this.locale, t)), t.format(e);}select(e, t) {let n = e[t] || e.other;return typeof n == "function" ? n() : n;}-}, mg = /* @__PURE__ */ new WeakMap();-function see(e) {- let t = mg.get(e);- return t || (t = new dg(e), mg.set(e, t)), t;+}, yg = /* @__PURE__ */ new WeakMap();+function iee(e) {+ let t = yg.get(e);+ return t || (t = new mg(e), yg.set(e, t)), t;}-function cee(e, t) {- return t && dg.getGlobalDictionaryForPackage(t) || see(e);+function aee(e, t) {+ return t && mg.getGlobalDictionaryForPackage(t) || iee(e);}-function hg(e, t) {- let { locale: n } = lg(), r = cee(e, t);- return (0, I.useMemo)(() => new oee(n, r), [n, r]);+function bg(e, t) {+ let { locale: n } = ug(), r = aee(e, t);+ return (0, I.useMemo)(() => new ree(n, r), [n, r]);}//#endregion//#region node_modules/react-aria/dist/private/utils/filterDOMProps.mjs-var lee = /* @__PURE__ */ new Set(["id"]), uee = /* @__PURE__ */ new Set([+var oee = /* @__PURE__ */ new Set(["id"]), see = /* @__PURE__ */ new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"-]), dee = /* @__PURE__ */ new Set([+]), cee = /* @__PURE__ */ new Set(["href","hrefLang","target",@@ -8938,71 +8938,71 @@ var lee = /* @__PURE__ */ new Set(["id"]), uee = /* @__PURE__ */ new Set(["download","ping","referrerPolicy"-]), fee = /* @__PURE__ */ new Set([+]), lee = /* @__PURE__ */ new Set(["dir","lang","hidden","inert","translate"-]), gg = /* @__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(".")), pee = /^(data-.*)$/;-function _g(e, t = {}) {+]), xg = /* @__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(".")), uee = /^(data-.*)$/;+function Sg(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) && (lee.has(t) || n && uee.has(t) || r && dee.has(t) || i && fee.has(t) || a && (gg.has(t) || t.endsWith("Capture") && gg.has(t.slice(0, -7))) || o?.has(t) || pee.test(t)) && (s[t] = e[t]);+ for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (oee.has(t) || n && see.has(t) || r && cee.has(t) || i && lee.has(t) || a && (xg.has(t) || t.endsWith("Capture") && xg.has(t.slice(0, -7))) || o?.has(t) || uee.test(t)) && (s[t] = e[t]);return s;}//#endregion//#region node_modules/react-aria/dist/private/interactions/textSelection.mjs-var vg = "default", yg = "", bg = /* @__PURE__ */ new WeakMap();-function mee(e) {- if (Mp() && Pp()) {- if (vg === "default") {- let t = Xf(e);- yg = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";- }- vg = "disabled";+var Cg = "default", wg = "", Tg = /* @__PURE__ */ new WeakMap();+function dee(e) {+ if (Pp() && Ip()) {+ if (Cg === "default") {+ let t = Qf(e);+ wg = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";+ }+ Cg = "disabled";} else if (e instanceof HTMLElement || e instanceof SVGElement) {let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";- bg.set(e, e.style[t]), e.style[t] = "none";+ Tg.set(e, e.style[t]), e.style[t] = "none";}}-function xg(e) {- if (Mp() && Pp()) {- if (vg !== "disabled") return;- vg = "restoring", setTimeout(() => {- Pm(() => {- if (vg === "restoring") {- let t = Xf(e);- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = yg || ""), yg = "", vg = "default";+function Eg(e) {+ if (Pp() && Ip()) {+ if (Cg !== "disabled") return;+ Cg = "restoring", setTimeout(() => {+ Im(() => {+ if (Cg === "restoring") {+ let t = Qf(e);+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = wg || ""), wg = "", Cg = "default";}});}, 300);- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && bg.has(e)) {- let t = bg.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";- e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), bg.delete(e);+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && Tg.has(e)) {+ let t = Tg.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";+ e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), Tg.delete(e);}}//#endregion//#region node_modules/react-aria/dist/private/utils/getMetaValue.mjs-function hee(e, t) {- let n = Zf(t), r = Xf(t);+function fee(e, t) {+ let n = $f(t), r = Qf(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;}//#endregion//#region node_modules/react-aria/dist/private/utils/getNonce.mjs-var Sg = /* @__PURE__ */ new WeakMap();-function Cg(e) {- let t = Xf(e), n = Sg.get(t);- return n ??= hee("csp-nonce", t), n !== void 0 && Sg.set(t, n), n;+var Dg = /* @__PURE__ */ new WeakMap();+function Og(e) {+ let t = Qf(e), n = Dg.get(t);+ return n ??= fee("csp-nonce", t), n !== void 0 && Dg.set(t, n), n;}//#endregion//#region node_modules/react-aria/dist/private/interactions/context.mjs-var wg = I.createContext({ register: () => {} });-wg.displayName = "PressResponderContext";+var kg = I.createContext({ register: () => {} });+kg.displayName = "PressResponderContext";//#endregion//#region node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs-function Tg() {+function Ag() {let e = (0, I.useRef)(/* @__PURE__ */ new Map()), t = (0, I.useCallback)((t, n, r, i) => {let a = i?.once ? (...t) => {e.current.delete(r), r(...t);@@ -9029,15 +9029,15 @@ function Tg() {}//#endregion//#region node_modules/react-aria/dist/private/interactions/usePress.mjs-function gee(e) {- let t = (0, I.useContext)(wg);+function pee(e) {+ let t = (0, I.useContext)(kg);if (t) {let { register: n, ref: r, ...i } = t;e = H(i, e), n();}- return dh(t, e.ref), e;+ return ph(t, e.ref), e;}-var Eg = class {+var jg = class {#e;constructor(e, t, n, r) {this.#e = !0;@@ -9050,9 +9050,9 @@ var Eg = class {get shouldStopPropagation() {return this.#e;}-}, Dg = Symbol("linkClicked"), Og = "react-aria-pressable-style", kg = "data-react-aria-pressable";-function Ag(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 } = gee(e), [m, h] = (0, I.useState)(!1), g = (0, I.useRef)({+}, Mg = Symbol("linkClicked"), Ng = "react-aria-pressable-style", Pg = "data-react-aria-pressable";+function Fg(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 } = pee(e), [m, h] = (0, I.useState)(!1), g = (0, I.useRef)({isPressed: !1,ignoreEmulatedMouseEvents: !1,didFirePressStart: !1,@@ -9062,12 +9062,12 @@ function Ag(e) {isOverTarget: !1,pointerType: null,disposables: []- }), { addGlobalListener: _, removeAllGlobalListeners: v } = Tg(), y = (0, I.useCallback)((e, t) => {+ }), { addGlobalListener: _, removeAllGlobalListeners: v } = Ag(), y = (0, I.useCallback)((e, t) => {let i = g.current;if (s || i.didFirePressStart) return !1;let a = !0;if (i.isTriggeringEvent = !0, r) {- let n = new Eg("pressstart", t, e);+ let n = new jg("pressstart", t, e);r(n), a = n.shouldStopPropagation;}return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;@@ -9081,11 +9081,11 @@ function Ag(e) {o.didFirePressStart = !1, o.isTriggeringEvent = !0;let c = !0;if (i) {- let t = new Eg("pressend", r, e);+ let t = new jg("pressend", r, e);i(t), c = t.shouldStopPropagation;}if (n && n(!1), h(!1), t && a && !s) {- let n = new Eg("press", r, e);+ let n = new jg("press", r, e);t(n), c &&= n.shouldStopPropagation;}return o.isTriggeringEvent = !1, c;@@ -9094,19 +9094,19 @@ function Ag(e) {i,n,t- ]), x = Zh(b), S = Zh((0, I.useCallback)((e, t) => {+ ]), x = $h(b), S = $h((0, I.useCallback)((e, t) => {let n = g.current;if (s) return !1;if (a) {n.isTriggeringEvent = !0;- let r = new Eg("pressup", t, e);+ let r = new jg("pressup", t, e);return a(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;}return !0;}, [s, a])), C = (0, I.useCallback)((e) => {let t = g.current;if (t.isPressed && t.target) {- t.didFirePressStart && t.pointerType != null && b(Ng(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || xg(t.target);+ t.didFirePressStart && t.pointerType != null && b(Rg(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || Eg(t.target);for (let e of t.disposables) e();t.disposables = [];}@@ -9114,7 +9114,7 @@ function Ag(e) {d,v,b- ]), w = Zh(C);+ ]), w = $h(C);(0, I.useEffect)(() => {s && g.current.isPressed && w({currentTarget: g.current.target,@@ -9131,39 +9131,39 @@ function Ag(e) {}, [s, o]), D = (0, I.useCallback)((e, t) => {if (!s && o) {let n = new MouseEvent("click", e);- Sp(n, t), o(xp(n));+ wp(n, t), o(Cp(n));}}, [s, o]), O = (0, I.useMemo)(() => {let e = g.current, t = {onKeyDown(t) {- if (Mg(t.nativeEvent, t.currentTarget) && op(t.currentTarget, V(t))) {- Fg(V(t), t.key) && t.preventDefault();+ if (Lg(t.nativeEvent, t.currentTarget) && cp(t.currentTarget, V(t))) {+ Bg(V(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;- _(Xf(t.currentTarget), "keyup", Im((t) => {- Mg(t, i) && !t.repeat && op(i, V(t)) && e.target && S(Ng(e.target, t), "keyboard");- }, n), !0), r && t.stopPropagation(), t.metaKey && kp() && e.metaKeyEvents?.set(t.key, t.nativeEvent);+ _(Qf(t.currentTarget), "keyup", Rm((t) => {+ Lg(t, i) && !t.repeat && cp(i, V(t)) && e.target && S(Rg(e.target, t), "keyboard");+ }, n), !0), r && t.stopPropagation(), t.metaKey && jp() && e.metaKeyEvents?.set(t.key, t.nativeEvent);} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());},onClick(t) {- if (!(t && !op(t.currentTarget, V(t))) && t && t.button === 0 && !e.isTriggeringEvent && !Up.isOpening) {+ if (!(t && !cp(t.currentTarget, V(t))) && t && t.button === 0 && !e.isTriggeringEvent && !Gp.isOpening) {let n = !0;- if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || Rp(t.nativeEvent))) {+ if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || Bp(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(Ng(t.currentTarget, t), r), a = x(Ng(t.currentTarget, t), r, !0);+ let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(Rg(t.currentTarget, t), r), a = x(Rg(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 && Mg(t, e.target)) {- Fg(V(t), t.key) && t.preventDefault();- let n = V(t), r = op(e.target, n);- x(Ng(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && jg(e.target) && op(e.target, n) && !t[Dg] && (t[Dg] = !0, Up(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);+ if (e.isPressed && e.target && Lg(t, e.target)) {+ Bg(V(t), t.key) && t.preventDefault();+ let n = V(t), r = cp(e.target, n);+ x(Rg(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && Ig(e.target) && cp(e.target, n) && !t[Mg] && (t[Mg] = !0, Gp(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;@@ -9172,39 +9172,39 @@ function Ag(e) {};if (typeof PointerEvent < "u") {t.onPointerDown = (t) => {- if (t.button !== 0 || !op(t.currentTarget, V(t))) return;- if (zp(t.nativeEvent)) {+ if (t.button !== 0 || !cp(t.currentTarget, V(t))) return;+ if (Vp(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 || mee(e.target), i = y(t, e.pointerType);+ e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || dee(e.target), i = y(t, e.pointerType);let a = V(t);- "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(Xf(t.currentTarget), "pointerup", n, !1), _(Xf(t.currentTarget), "pointercancel", r, !1);+ "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(Qf(t.currentTarget), "pointerup", n, !1), _(Qf(t.currentTarget), "pointercancel", r, !1);}i && t.stopPropagation();}, t.onMouseDown = (t) => {- if (op(t.currentTarget, V(t)) && t.button === 0) {+ if (cp(t.currentTarget, V(t)) && t.button === 0) {if (l) {- let n = Tp(t.target);+ let n = Dp(t.target);n && e.disposables.push(n);}t.stopPropagation();}}, t.onPointerUp = (t) => {- !op(t.currentTarget, V(t)) || e.pointerType === "virtual" || t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);+ !cp(t.currentTarget, V(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(Ng(e.target, t), e.pointerType));+ t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(Rg(e.target, t), e.pointerType));}, t.onPointerLeave = (t) => {- t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(Ng(e.target, t), e.pointerType, !1), T(t));+ t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(Rg(e.target, t), e.pointerType, !1), T(t));};let n = (t) => {if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {- if (op(e.target, V(t)) && e.pointerType != null) {+ if (cp(e.target, V(t)) && e.pointerType != null) {let n = !1, r = setTimeout(() => {- e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (Gf(e.target), e.target.click()));+ e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (qf(e.target), e.target.click()));}, 80);_(t.currentTarget, "click", () => n = !0, !0), e.disposables.push(() => clearTimeout(r));} else w(t);@@ -9214,7 +9214,7 @@ function Ag(e) {w(e);};t.onDragStart = (e) => {- op(e.currentTarget, V(e)) && w(e);+ cp(e.currentTarget, V(e)) && w(e);};}return t;@@ -9231,14 +9231,14 @@ function Ag(e) {]);return (0, I.useEffect)(() => {if (!f) return;- let e = Xf(f.current);- if (!e || !e.head || e.getElementById(Og)) return;+ let e = Qf(f.current);+ if (!e || !e.head || e.getElementById(Ng)) return;let t = e.createElement("style");- t.id = Og;- let n = Cg(e);+ t.id = Ng;+ let n = Og(e);n && (t.nonce = n), t.textContent = `@layer {- [${kg}] {+ [${Pg}] {touch-action: pan-x pan-y pinch-zoom;}}@@ -9246,23 +9246,23 @@ function Ag(e) {}, [f]), (0, I.useEffect)(() => {let e = g.current;return () => {- d || xg(e.target ?? void 0);+ d || Eg(e.target ?? void 0);for (let t of e.disposables) t();e.disposables = [];};}, [d]), {isPressed: c || m,- pressProps: H(p, O, { [kg]: !0 })+ pressProps: H(p, O, { [Pg]: !0 })};}-function jg(e) {+function Ig(e) {return e.tagName === "A" && e.hasAttribute("href");}-function Mg(e, t) {+function Lg(e, t) {let { key: n, code: r } = e, i = t, a = i.getAttribute("role");- return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof Zf(i).HTMLInputElement && !Lg(i, n) || i instanceof Zf(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && jg(i)) && n !== "Enter");+ return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof $f(i).HTMLInputElement && !Hg(i, n) || i instanceof $f(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && Ig(i)) && n !== "Enter");}-function Ng(e, t) {+function Rg(e, t) {let n = t.clientX, r = t.clientY;return {currentTarget: e,@@ -9275,13 +9275,13 @@ function Ng(e, t) {key: t.key};}-function Pg(e) {- return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !jg(e);+function zg(e) {+ return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !Ig(e);}-function Fg(e, t) {- return kp() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !Lg(e, t) : Pg(e);+function Bg(e, t) {+ return jp() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !Hg(e, t) : zg(e);}-var Ig = /* @__PURE__ */ new Set([+var Vg = /* @__PURE__ */ new Set(["checkbox","radio","range",@@ -9292,12 +9292,12 @@ var Ig = /* @__PURE__ */ new Set(["submit","reset"]);-function Lg(e, t) {- return e.type === "checkbox" || e.type === "radio" ? t === " " : Ig.has(e.type);+function Hg(e, t) {+ return e.type === "checkbox" || e.type === "radio" ? t === " " : Vg.has(e.type);}//#endregion//#region node_modules/react-aria/dist/private/button/useButton.mjs-function Rg(e, t) {+function Ug(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,@@ -9319,7 +9319,7 @@ function Rg(e, t) {"aria-disabled": !r || n === "input" ? void 0 : r,rel: n === "a" ? m : void 0};- let { pressProps: _, isPressed: v } = Ag({+ let { pressProps: _, isPressed: v } = Fg({onPressStart: a,onPressEnd: o,onPressChange: c,@@ -9329,9 +9329,9 @@ function Rg(e, t) {isDisabled: r,preventFocusOnPress: l,ref: t- }), { focusableProps: y } = mh(e, t);+ }), { focusableProps: y } = gh(e, t);u && (y.tabIndex = r ? -1 : y.tabIndex);- let b = H(y, _, _g(e, { labelable: !0 }));+ let b = H(y, _, Sg(e, { labelable: !0 }));return {isPressed: v,buttonProps: H(g, b, {@@ -9346,7 +9346,7 @@ function Rg(e, t) {}//#endregion//#region node_modules/react-aria/dist/private/utils/shadowdom/ShadowTreeWalker.mjs-var zg = class {+var Wg = class {constructor(e, t, n, r) {this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (e) => {if (e.nodeType === Node.ELEMENT_NODE) {@@ -9371,7 +9371,7 @@ var zg = class {return this._currentNode;}set currentNode(e) {- if (!op(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");+ if (!cp(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 });@@ -9385,7 +9385,7 @@ var zg = class {}firstChild() {let e = this.currentNode, t = this.nextNode();- return op(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);+ return cp(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);}lastChild() {let e = this._walkerStack[0].lastChild();@@ -9449,45 +9449,45 @@ var zg = class {return null;}};-function Bg(e, t, n, r) {- return ap() ? new zg(e, t, n, r) : e.createTreeWalker(t, n, r);+function Gg(e, t, n, r) {+ return sp() ? new Wg(e, t, n, r) : e.createTreeWalker(t, n, r);}//#endregion//#region node_modules/react-aria/dist/private/focus/FocusScope.mjs-var Vg = /*#__PURE__*/ I.createContext(null), Hg = "react-aria-focus-scope-restore", Ug = null;-function Wg(e) {- let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, I.useRef)(null), o = (0, I.useRef)(null), s = (0, I.useRef)([]), { parentNode: c } = (0, I.useContext)(Vg) || {}, l = (0, I.useMemo)(() => new f_({ scopeRef: s }), [s]);- bp(() => {- let e = c || p_.root;- if (p_.getTreeNode(e.scopeRef) && Ug && !t_(Ug, e.scopeRef)) {- let t = p_.getTreeNode(Ug);+var Kg = /*#__PURE__*/ I.createContext(null), qg = "react-aria-focus-scope-restore", Jg = null;+function Yg(e) {+ let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, I.useRef)(null), o = (0, I.useRef)(null), s = (0, I.useRef)([]), { parentNode: c } = (0, I.useContext)(Kg) || {}, l = (0, I.useMemo)(() => new u_({ scopeRef: s }), [s]);+ Sp(() => {+ let e = c || d_.root;+ if (d_.getTreeNode(e.scopeRef) && Jg && !t_(Jg, e.scopeRef)) {+ let t = d_.getTreeNode(Jg);t && (e = t);}- e.addChild(l), p_.addNode(l);- }, [l, c]), bp(() => {- let e = p_.getTreeNode(s);+ e.addChild(l), d_.addNode(l);+ }, [l, c]), Sp(() => {+ let e = d_.getTreeNode(s);e && (e.contain = !!n);- }, [n]), bp(() => {+ }, [n]), Sp(() => {let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();- for (; e && e !== o.current;) t.push(e), e.addEventListener(Hg, n), e = e.nextSibling;+ for (; e && e !== o.current;) t.push(e), e.addEventListener(qg, n), e = e.nextSibling;return s.current = t, () => {- for (let e of t) e.removeEventListener(Hg, n);+ for (let e of t) e.removeEventListener(qg, n);};- }, [t]), o_(s, r, n), Xg(s, n), c_(s, r, n), a_(s, i), (0, I.useEffect)(() => {- let e = sp(Xf(s.current ? s.current[0] : void 0)), t = null;- if (Qg(e, s.current)) {- for (let n of p_.traverse()) n.scopeRef && Qg(e, n.scopeRef.current) && (t = n);- t === p_.getTreeNode(s) && (Ug = t.scopeRef);- }- }, [s]), bp(() => () => {- let e = p_.getTreeNode(s)?.parent?.scopeRef ?? null;- (s === Ug || t_(s, Ug)) && (!e || p_.getTreeNode(e)) && (Ug = e), p_.removeTreeNode(s);+ }, [t]), bee(s, r, n), _ee(s, n), o_(s, r, n), yee(s, i), (0, I.useEffect)(() => {+ let e = lp(Qf(s.current ? s.current[0] : void 0)), t = null;+ if ($g(e, s.current)) {+ for (let n of d_.traverse()) n.scopeRef && $g(e, n.scopeRef.current) && (t = n);+ t === d_.getTreeNode(s) && (Jg = t.scopeRef);+ }+ }, [s]), Sp(() => () => {+ let e = d_.getTreeNode(s)?.parent?.scopeRef ?? null;+ (s === Jg || t_(s, Jg)) && (!e || d_.getTreeNode(e)) && (Jg = e), d_.removeTreeNode(s);}, [s]);- let u = (0, I.useMemo)(() => Gg(s), []), d = (0, I.useMemo)(() => ({+ let u = (0, I.useMemo)(() => mee(s), []), d = (0, I.useMemo)(() => ({focusManager: u,parentNode: l}), [l, u]);- return /*#__PURE__*/ I.createElement(Vg.Provider, { value: d }, /*#__PURE__*/ I.createElement("span", {+ return /*#__PURE__*/ I.createElement(Kg.Provider, { value: d }, /*#__PURE__*/ I.createElement("span", {"data-focus-scope-start": !0,hidden: !0,ref: a@@ -9497,28 +9497,28 @@ function Wg(e) {ref: o}));}-function Gg(e) {+function mee(e) {return {focusNext(t = {}) {- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || sp(Xf(n[0] ?? void 0)), c = n[0].previousElementSibling, l = u_(Kg(n), {+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || lp(Qf(n[0] ?? void 0)), c = n[0].previousElementSibling, l = c_(Xg(n), {tabbable: i,accept: o}, n);- l.currentNode = Qg(s, n) ? s : c;+ l.currentNode = $g(s, n) ? s : c;let u = l.nextNode();return !u && a && (l.currentNode = c, u = l.nextNode()), u && n_(u, !0), u;},focusPrevious(t = {}) {- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || sp(Xf(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = u_(Kg(n), {+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || lp(Qf(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = c_(Xg(n), {tabbable: i,accept: o}, n);- l.currentNode = Qg(s, n) ? s : c;+ l.currentNode = $g(s, n) ? s : c;let u = l.previousNode();return !u && a && (l.currentNode = c, u = l.previousNode()), u && n_(u, !0), u;},focusFirst(t = {}) {- let n = e.current, { tabbable: r, accept: i } = t, a = u_(Kg(n), {+ let n = e.current, { tabbable: r, accept: i } = t, a = c_(Xg(n), {tabbable: r,accept: i}, n);@@ -9527,7 +9527,7 @@ function Gg(e) {return o && n_(o, !0), o;},focusLast(t = {}) {- let n = e.current, { tabbable: r, accept: i } = t, a = u_(Kg(n), {+ let n = e.current, { tabbable: r, accept: i } = t, a = c_(Xg(n), {tabbable: r,accept: i}, n);@@ -9537,79 +9537,79 @@ function Gg(e) {}};}-function Kg(e) {+function Xg(e) {return e[0].parentElement;}-function qg(e) {- let t = p_.getTreeNode(Ug);+function Zg(e) {+ let t = d_.getTreeNode(Jg);for (; t && t.scopeRef !== e;) {if (t.contain) return !1;t = t.parent;}return !0;}-function Jg(e) {- if (!e.form) return Array.from(Xf(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);- let t = e.form.elements.namedItem(e.name), n = Zf(e);+function hee(e) {+ if (!e.form) return Array.from(Qf(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);+ let t = e.form.elements.namedItem(e.name), n = $f(e);return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];}-function Yg(e) {+function gee(e) {if (e.checked) return !0;- let t = Jg(e);+ let t = hee(e);return t.length > 0 && !t.some((e) => e.checked);}-function Xg(e, t) {+function _ee(e, t) {let n = (0, I.useRef)(void 0), r = (0, I.useRef)(void 0);- bp(() => {+ Sp(() => {let i = e.current;if (!t) {r.current &&= (cancelAnimationFrame(r.current), void 0);return;}- let a = Xf(i ? i[0] : void 0), o = (t) => {- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !qg(e) || t.isComposing) return;- let n = sp(a), r = e.current;- if (!r || !Qg(n, r)) return;- let i = u_(Kg(r), { tabbable: !0 }, r);+ let a = Qf(i ? i[0] : void 0), o = (t) => {+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Zg(e) || t.isComposing) return;+ let n = lp(a), r = e.current;+ if (!r || !$g(n, r)) return;+ let i = c_(Xg(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 && (n_(o, !0), o instanceof Zf(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 && (n_(o, !0), o instanceof $f(o).HTMLInputElement && o.select());}, s = (t) => {- (!Ug || t_(Ug, e)) && Qg(V(t), e.current) ? (Ug = e, n.current = V(t)) : qg(e) && !$g(V(t), e) ? n.current ? n_(n.current) : Ug && Ug.current && i_(Ug.current) : qg(e) && (n.current = V(t));+ (!Jg || t_(Jg, e)) && $g(V(t), e.current) ? (Jg = e, n.current = V(t)) : Zg(e) && !e_(V(t), e) ? n.current ? n_(n.current) : Jg && Jg.current && i_(Jg.current) : Zg(e) && (n.current = V(t));}, c = (t) => {r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {- let r = wm(), i = (r === "virtual" || r === null) && Ip() && Fp(), o = sp(a);- if (!i && o && qg(e) && !$g(o, e)) {- Ug = e;+ let r = Em(), i = (r === "virtual" || r === null) && Rp() && Lp(), o = lp(a);+ if (!i && o && Zg(e) && !e_(o, e)) {+ Jg = e;let r = V(t);- r && r.isConnected ? (n.current = r, n_(n.current)) : Ug.current && i_(Ug.current);+ r && r.isConnected ? (n.current = r, n_(n.current)) : Jg.current && i_(Jg.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]), bp(() => () => {+ }, [e, t]), Sp(() => () => {r.current && cancelAnimationFrame(r.current);}, [r]);}-function Zg(e) {- return $g(e);+function Qg(e) {+ return e_(e);}-function Qg(e, t) {- return !e || !t ? !1 : t.some((t) => op(t, e));+function $g(e, t) {+ return !e || !t ? !1 : t.some((t) => cp(t, e));}-function $g(e, t = null) {+function e_(e, t = null) {if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;- for (let { scopeRef: n } of p_.traverse(p_.getTreeNode(t))) if (n && Qg(e, n.current)) return !0;+ for (let { scopeRef: n } of d_.traverse(d_.getTreeNode(t))) if (n && $g(e, n.current)) return !0;return !1;}-function e_(e) {- return $g(e, Ug);+function vee(e) {+ return e_(e, Jg);}function t_(e, t) {- let n = p_.getTreeNode(t)?.parent;+ let n = d_.getTreeNode(t)?.parent;for (; n;) {if (n.scopeRef === e) return !0;n = n.parent;@@ -9618,33 +9618,33 @@ function t_(e, t) {}function n_(e, t = !1) {if (e != null && !t) try {- Fm(e);+ Lm(e);} catch {}else if (e != null) try {e.focus();} catch {}}function r_(e, t = !0) {- let n = e[0].previousElementSibling, r = Kg(e), i = u_(r, { tabbable: t }, e);+ let n = e[0].previousElementSibling, r = Xg(e), i = c_(r, { tabbable: t }, e);i.currentNode = n;let a = i.nextNode();- return t && !a && (r = Kg(e), i = u_(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;+ return t && !a && (r = Xg(e), i = c_(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;}function i_(e, t = !0) {n_(r_(e, t));}-function a_(e, t) {+function yee(e, t) {let n = I.useRef(t);(0, I.useEffect)(() => {- n.current && (Ug = e, !Qg(sp(Xf(e.current ? e.current[0] : void 0)), Ug.current) && e.current && i_(e.current)), n.current = !1;+ n.current && (Jg = e, !$g(lp(Qf(e.current ? e.current[0] : void 0)), Jg.current) && e.current && i_(e.current)), n.current = !1;}, [e]);}-function o_(e, t, n) {- bp(() => {+function bee(e, t, n) {+ Sp(() => {if (t || n) return;- let r = e.current, i = Xf(r ? r[0] : void 0), a = (t) => {+ let r = e.current, i = Qf(r ? r[0] : void 0), a = (t) => {let n = V(t);- Qg(n, e.current) ? Ug = e : Zg(n) || (Ug = null);+ $g(n, e.current) ? Jg = e : Qg(n) || (Jg = 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));@@ -9655,43 +9655,43 @@ function o_(e, t, n) {n]);}-function s_(e) {- let t = p_.getTreeNode(Ug);+function a_(e) {+ let t = d_.getTreeNode(Jg);for (; t && t.scopeRef !== e;) {if (t.nodeToRestore) return !1;t = t.parent;}return t?.scopeRef === e;}-function c_(e, t, n) {- let r = (0, I.useRef)(typeof document < "u" ? sp(Xf(e.current ? e.current[0] : void 0)) : null);- bp(() => {- let r = e.current, i = Xf(r ? r[0] : void 0);+function o_(e, t, n) {+ let r = (0, I.useRef)(typeof document < "u" ? lp(Qf(e.current ? e.current[0] : void 0)) : null);+ Sp(() => {+ let r = e.current, i = Qf(r ? r[0] : void 0);if (!t || n) return;let a = () => {- (!Ug || t_(Ug, e)) && Qg(sp(i), e.current) && (Ug = e);+ (!Jg || t_(Jg, e)) && $g(lp(i), e.current) && (Jg = 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]), bp(() => {- let r = Xf(e.current ? e.current[0] : void 0);+ }, [e, n]), Sp(() => {+ let r = Qf(e.current ? e.current[0] : void 0);if (!t) return;let i = (t) => {- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !qg(e) || t.isComposing) return;+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Zg(e) || t.isComposing) return;let n = r.activeElement;- if (!$g(n, e) || !s_(e)) return;- let i = p_.getTreeNode(e);+ if (!e_(n, e) || !a_(e)) return;+ let i = d_.getTreeNode(e);if (!i) return;- let a = i.nodeToRestore, o = u_(r.body, { tabbable: !0 });+ let a = i.nodeToRestore, o = c_(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 || !$g(s, e)) && a) {+ if ((!a || !a.isConnected || a === r.body) && (a = void 0, i.nodeToRestore = void 0), (!s || !e_(s, e)) && a) {o.currentNode = a;dos = t.shiftKey ? o.previousNode() : o.nextNode();- while ($g(s, e));- t.preventDefault(), t.stopPropagation(), s ? n_(s, !0) : Zg(a) ? n_(a, !0) : n.blur();+ while (e_(s, e));+ t.preventDefault(), t.stopPropagation(), s ? n_(s, !0) : Qg(a) ? n_(a, !0) : n.blur();}};return n || r.addEventListener("keydown", i, !0), () => {@@ -9701,31 +9701,31 @@ function c_(e, t, n) {e,t,n- ]), bp(() => {- let n = Xf(e.current ? e.current[0] : void 0);+ ]), Sp(() => {+ let n = Qf(e.current ? e.current[0] : void 0);if (!t) return;- let i = p_.getTreeNode(e);+ let i = d_.getTreeNode(e);if (i) return i.nodeToRestore = r.current ?? void 0, () => {- let r = p_.getTreeNode(e);+ let r = d_.getTreeNode(e);if (!r) return;- let i = r.nodeToRestore, a = sp(n);- if (t && i && (a && $g(a, e) || a === n.body && s_(e))) {- let t = p_.clone();+ let i = r.nodeToRestore, a = lp(n);+ if (t && i && (a && e_(a, e) || a === n.body && a_(e))) {+ let t = d_.clone();requestAnimationFrame(() => {if (n.activeElement === n.body) {let n = t.getTreeNode(e);for (; n;) {if (n.nodeToRestore && n.nodeToRestore.isConnected) {- l_(n.nodeToRestore);+ s_(n.nodeToRestore);return;}n = n.parent;}for (n = t.getTreeNode(e); n;) {- if (n.scopeRef && n.scopeRef.current && p_.getTreeNode(n.scopeRef)) {+ if (n.scopeRef && n.scopeRef.current && d_.getTreeNode(n.scopeRef)) {let e = r_(n.scopeRef.current, !0);if (e) {- l_(e);+ s_(e);return;}}@@ -9737,21 +9737,21 @@ function c_(e, t, n) {};}, [e, t]);}-function l_(e) {- e.dispatchEvent(new CustomEvent(Hg, {+function s_(e) {+ e.dispatchEvent(new CustomEvent(qg, {bubbles: !0,cancelable: !0})) && n_(e);}-function u_(e, t, n) {- let r = t?.tabbable ? vp : _p, i = Xf(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = Bg(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {- return op(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Yg(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || Qg(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;+function c_(e, t, n) {+ let r = t?.tabbable ? bp : yp, i = Qf(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = Gg(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {+ return cp(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!gee(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || $g(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;} });return t?.from && (a.currentNode = t.from), a;}-var d_ = class e {+var l_ = class e {constructor() {- this.fastMap = /* @__PURE__ */ new Map(), this.root = new f_({ scopeRef: null }), this.fastMap.set(null, this.root);+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new u_({ scopeRef: null }), this.fastMap.set(null, this.root);}get size() {return this.fastMap.size;@@ -9762,7 +9762,7 @@ var d_ = class e {addTreeNode(e, t, n) {let r = this.fastMap.get(t ?? null);if (!r) return;- let i = new f_({ scopeRef: e });+ let i = new u_({ scopeRef: e });r.addChild(i), i.parent = r, this.fastMap.set(e, i), n && (i.nodeToRestore = n);}addNode(e) {@@ -9773,7 +9773,7 @@ var d_ = 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 && Qg(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 && $g(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);}@@ -9785,7 +9785,7 @@ var d_ = class e {for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);return t;}-}, f_ = class {+}, u_ = class {constructor(e) {this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;}@@ -9795,13 +9795,13 @@ var d_ = class e {removeChild(e) {this.children.delete(e), e.parent = void 0;}-}, p_ = new d_(), m_ = 7e3, h_ = null;-function g_(e, t = "assertive", n = m_) {- h_ ? h_.announce(e, t, n) : (h_ = new __(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? h_.announce(e, t, n) : setTimeout(() => {- h_?.isAttached() && h_?.announce(e, t, n);+}, d_ = new l_(), f_ = 7e3, p_ = null;+function m_(e, t = "assertive", n = f_) {+ p_ ? p_.announce(e, t, n) : (p_ = new xee(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? p_.announce(e, t, n) : setTimeout(() => {+ p_?.isAttached() && p_?.announce(e, t, n);}, 100));}-var __ = class {+var xee = 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,@@ -9826,7 +9826,7 @@ var __ = class {destroy() {this.node &&= (document.body.removeChild(this.node), null);}- announce(e, t = "assertive", n = m_) {+ announce(e, t = "assertive", n = f_) {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(() => {@@ -9839,8 +9839,8 @@ var __ = class {};//#endregion//#region node_modules/react-aria/dist/private/utils/useUpdateEffect.mjs-function v_(e, t) {- let n = (0, I.useRef)(!0), r = (0, I.useRef)(null), i = Zh(e);+function h_(e, t) {+ let n = (0, I.useRef)(!0), r = (0, I.useRef)(null), i = $h(e);(0, I.useEffect)(() => (n.current = !0, () => {n.current = !1;}), []), (0, I.useEffect)(() => {@@ -9850,39 +9850,39 @@ function v_(e, t) {}//#endregion//#region node_modules/react-aria/dist/private/utils/isScrollable.mjs-function y_(e, t) {+function g_(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;}//#endregion//#region node_modules/react-aria/dist/private/utils/getScrollParent.mjs-function b_(e, t) {+function __(e, t) {let n = e;- for (y_(n, t) && (n = n.parentElement); n && !y_(n, t);) n = n.parentElement;+ for (g_(n, t) && (n = n.parentElement); n && !g_(n, t);) n = n.parentElement;return n || document.scrollingElement || document.documentElement;}//#endregion//#region node_modules/react-aria/dist/private/utils/getScrollParents.mjs-function x_(e, t) {+function v_(e, t) {let n = [], r = document.scrollingElement || document.documentElement;- for (; e && (y_(e, t) && n.push(e), e !== r);) e = e.parentElement;+ for (; e && (g_(e, t) && n.push(e), e !== r);) e = e.parentElement;return n;}//#endregion//#region node_modules/react-aria/dist/private/utils/scrollIntoView.mjs-function S_(e, t, n = {}) {- e !== t && _ee(e, t, t.getBoundingClientRect(), n);-}-function _ee(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, N = e === d ? 0 : D + O, P = e === d ? 0 : T + E, ee = e === d ? 0 : e.offsetWidth - e.clientWidth - N, F = e === d ? 0 : e.offsetHeight - e.clientHeight - P, te = p + (f ? 0 : T) + x, ne = m - (f ? 0 : E) - S - F, re = h + (f ? 0 : D) + C, ie = g - (f ? 0 : O) - w;- Mp() && Pp() || u.direction === "ltr" ? ie -= ee : u.direction === "rtl" && (re += ee);- let ae = k < te || A > ne, oe = j < re || M > ie;- if (ae && i === "start") o += k - te;- else if (ae && i === "center") o += (k + A) / 2 - (te + ne) / 2;- else if (ae && i === "end") o += A - ne;+function y_(e, t, n = {}) {+ e !== t && See(e, t, t.getBoundingClientRect(), n);+}+function See(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, N = e === d ? 0 : D + O, ee = e === d ? 0 : T + E, te = e === d ? 0 : e.offsetWidth - e.clientWidth - N, P = e === d ? 0 : e.offsetHeight - e.clientHeight - ee, ne = p + (f ? 0 : T) + x, F = m - (f ? 0 : E) - S - P, re = h + (f ? 0 : D) + C, ie = g - (f ? 0 : O) - w;+ Pp() && Ip() || u.direction === "ltr" ? ie -= te : u.direction === "rtl" && (re += te);+ let ae = k < ne || A > F, oe = j < re || M > ie;+ if (ae && i === "start") o += k - ne;+ else if (ae && i === "center") o += (k + A) / 2 - (ne + F) / 2;+ else if (ae && i === "end") o += A - F;else if (ae && i === "nearest") {- let e = k - te, t = A - ne;+ let e = k - ne, t = A - F;o += Math.abs(e) <= Math.abs(t) ? e : t;}if (oe && a === "start") s += j - re;@@ -9897,7 +9897,7 @@ function _ee(e, t, n, r = {}) {top: o});}-function C_(e, t = {}) {+function b_(e, t = {}) {let { containingElement: n } = t;if (e && e.isConnected) {let t = document.scrollingElement || document.documentElement;@@ -9910,47 +9910,47 @@ function C_(e, t = {}) {inline: "center"}), e.scrollIntoView?.({ block: "nearest" }));} else {- let { left: t, top: r } = e.getBoundingClientRect(), i = x_(e, !0);- for (let t of i) S_(t, e);+ let { left: t, top: r } = e.getBoundingClientRect(), i = v_(e, !0);+ for (let t of i) y_(t, e);let { left: a, top: o } = e.getBoundingClientRect();if (Math.abs(t - a) > 1 || Math.abs(r - o) > 1) {- i = n ? x_(n, !0) : [];- for (let e of i) S_(e, n, {+ i = n ? v_(n, !0) : [];+ for (let e of i) y_(e, n, {block: "center",inline: "center"});- for (let t of x_(e, !0)) S_(t, e);+ for (let t of v_(e, !0)) y_(t, e);}}}}//#endregion//#region node_modules/react-aria/dist/private/utils/useDescription.mjs-var vee = 0, w_ = /* @__PURE__ */ new Map();-function T_(e) {+var Cee = 0, x_ = /* @__PURE__ */ new Map();+function S_(e) {let [t, n] = (0, I.useState)();- return bp(() => {+ return Sp(() => {if (!e) return;- let t = w_.get(e);+ let t = x_.get(e);if (t) n(t.element.id);else {- let r = `react-aria-description-${vee++}`;+ let r = `react-aria-description-${Cee++}`;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- }, w_.set(e, t);+ }, x_.set(e, t);}return t.refCount++, () => {- t && --t.refCount === 0 && (t.element.remove(), w_.delete(e));+ t && --t.refCount === 0 && (t.element.remove(), x_.delete(e));};}, [e]), { "aria-describedby": e ? t : void 0 };}//#endregion//#region node_modules/react-aria/dist/private/utils/useFormReset.mjs-function E_(e, t, n) {- let r = Zh((e) => {+function C_(e, t, n) {+ let r = $h((e) => {n && !e.defaultPrevented && n(t);});(0, I.useEffect)(() => {@@ -9962,21 +9962,21 @@ function E_(e, t, n) {}//#endregion//#region node_modules/react-aria/dist/private/form/useFormValidation.mjs-function D_(e, t, n) {+function w_(e, t, n) {let { validationBehavior: r, focus: i } = e;- bp(() => {+ Sp(() => {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(bee(n.current));+ n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(Tee(n.current));}});- let a = (0, I.useRef)(!1), o = Zh(() => {+ let a = (0, I.useRef)(!1), o = $h(() => {a.current || t.resetValidation();- }), s = Zh((e) => {+ }), s = $h((e) => {t.displayValidation.isInvalid || t.commitValidation();let r = n?.current?.form;- !e.defaultPrevented && n && r && xee(r) === n.current && (i ? i() : n.current?.focus(), Tm("keyboard")), e.preventDefault();- }), c = Zh(() => {+ !e.defaultPrevented && n && r && Eee(r) === n.current && (i ? i() : n.current?.focus(), Dm("keyboard")), e.preventDefault();+ }), c = $h(() => {t.commitValidation();});(0, I.useEffect)(() => {@@ -9990,7 +9990,7 @@ function D_(e, t, n) {};}, [n, r]);}-function yee(e) {+function wee(e) {let t = e.validity;return {badInput: t.badInput,@@ -10006,14 +10006,14 @@ function yee(e) {valid: t.valid};}-function bee(e) {+function Tee(e) {return {isInvalid: !e.validity.valid,- validationDetails: yee(e),+ validationDetails: wee(e),validationErrors: e.validationMessage ? [e.validationMessage] : []};}-function xee(e) {+function Eee(e) {for (let t = 0; t < e.elements.length; t++) {let n = e.elements[t];if (n.validity?.valid === !1) return n;@@ -10022,16 +10022,16 @@ function xee(e) {}//#endregion//#region node_modules/react-aria/dist/private/utils/useSlot.mjs-function See(e = !0) {+function Dee(e = !0) {let [t, n] = (0, I.useState)(e), r = (0, I.useRef)(!1), i = (0, I.useCallback)((e) => {r.current = !0, n(!!e);}, []);- return bp(() => {+ return Sp(() => {r.current || n(!1);}, []), [i, t];}-function O_(e = !0) {- let t = Hm(), [n, r] = See(e);+function T_(e = !0) {+ let t = Wm(), [n, r] = Dee(e);return {id: r ? t : void 0,ref: n@@ -10039,7 +10039,7 @@ function O_(e = !0) {}//#endregion//#region node_modules/react-stately/dist/private/form/useFormValidationState.mjs-var k_ = {+var E_ = {badInput: !1,customError: !1,patternMismatch: !1,@@ -10051,18 +10051,18 @@ var k_ = {typeMismatch: !1,valueMissing: !1,valid: !0-}, A_ = {- ...k_,+}, D_ = {+ ...E_,customError: !0,valid: !1-}, j_ = {+}, O_ = {isInvalid: !1,- validationDetails: k_,+ validationDetails: E_,validationErrors: []-}, Cee = (0, I.createContext)({}), M_ = "__reactAriaFormValidationState";-function N_(e) {+}, Oee = (0, I.createContext)({}), k_ = "__reactAriaFormValidationState";+function A_(e) {if (e.__reactAriaFormValidationState) {- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[M_];+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[k_];return {realtimeValidation: t,displayValidation: n,@@ -10071,71 +10071,71 @@ function N_(e) {commitValidation: a};}- return wee(e);+ return kee(e);}-function wee(e) {+function kee(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: A_- }, l = (0, I.useMemo)(() => !o || i == null ? null : F_(Tee(o, i)), [o, i]);+ validationDetails: D_+ }, l = (0, I.useMemo)(() => !o || i == null ? null : M_(Aee(o, i)), [o, i]);a?.validationDetails.valid && (a = void 0);- let u = (0, I.useContext)(Cee), d = (0, I.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => P_(u[e])) : P_(u[r]) : [], [u, r]), [f, p] = (0, I.useState)(u), [m, h] = (0, I.useState)(!1);+ let u = (0, I.useContext)(Oee), d = (0, I.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => j_(u[e])) : j_(u[r]) : [], [u, r]), [f, p] = (0, I.useState)(u), [m, h] = (0, I.useState)(!1);u !== f && (p(u), h(!1));- let g = (0, I.useMemo)(() => F_(m ? [] : d), [m, d]), _ = (0, I.useRef)(j_), [v, y] = (0, I.useState)(j_), b = (0, I.useRef)(j_), x = () => {+ let g = (0, I.useMemo)(() => M_(m ? [] : d), [m, d]), _ = (0, I.useRef)(O_), [v, y] = (0, I.useState)(O_), b = (0, I.useRef)(O_), x = () => {if (!S) return;C(!1);let e = l || a || _.current;- I_(e, b.current) || (b.current = e, y(e));+ N_(e, b.current) || (b.current = e, y(e));}, [S, C] = (0, I.useState)(!1);return (0, I.useEffect)(x), {- realtimeValidation: c || g || l || a || j_,+ realtimeValidation: c || g || l || a || O_,displayValidation: s === "native" ? c || g || v : c || g || l || a || v,updateValidation(e) {- s === "aria" && !I_(v, e) ? y(e) : _.current = e;+ s === "aria" && !N_(v, e) ? y(e) : _.current = e;},resetValidation() {- let e = j_;- I_(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);+ let e = O_;+ N_(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);},commitValidation() {s === "native" && C(!0), h(!0);}};}-function P_(e) {+function j_(e) {return e ? Array.isArray(e) ? e : [e] : [];}-function Tee(e, t) {+function Aee(e, t) {if (typeof e == "function") {let n = e(t);- if (n && typeof n != "boolean") return P_(n);+ if (n && typeof n != "boolean") return j_(n);}return [];}-function F_(e) {+function M_(e) {return e.length ? {isInvalid: !0,validationErrors: e,- validationDetails: A_+ validationDetails: D_} : null;}-function I_(e, t) {+function N_(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);}//#endregion//#region node_modules/react-aria/dist/private/toggle/useToggle.mjs-function L_(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 = N_({+function P_(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 = A_({...e,value: t.isSelected}), { isInvalid: x, validationErrors: S, validationDetails: C } = b.displayValidation;- D_(e, b, n);+ w_(e, b, n);let w = (e) => {e.stopPropagation(), t.setSelected(V(e).checked);- }, { pressProps: T, isPressed: E } = Ag({+ }, { pressProps: T, isPressed: E } = Fg({onPressStart: m,onPressEnd: h,onPressChange: g,@@ -10143,7 +10143,7 @@ function L_(e, t, n) {onPressUp: v,onClick: y,isDisabled: r- }), [D, O] = (0, I.useState)(!1), { pressProps: k } = Ag({+ }), [D, O] = (0, I.useState)(!1), { pressProps: k } = Fg({onPressStart(e) {if (e.pointerType === "keyboard" || e.pointerType === "virtual") {e.continuePropagation();@@ -10172,13 +10172,13 @@ function L_(e, t, n) {return;}_?.(r), t.toggle(), n.current?.focus();- let { [M_]: i } = e, { commitValidation: a } = i || b;+ let { [k_]: i } = e, { commitValidation: a } = i || b;a();},isDisabled: r || i- }), { focusableProps: A } = mh(e, n), j = H(T, A), M = _g(e, { labelable: !0 });- E_(n, t.defaultSelected, t.setSelected);- let N = O_(), P = O_();+ }), { focusableProps: A } = gh(e, n), j = H(T, A), M = Sg(e, { labelable: !0 });+ C_(n, t.defaultSelected, t.setSelected);+ let N = T_(), ee = T_();return {labelProps: H(k, { onClick: (e) => e.preventDefault() }),inputProps: H(M, {@@ -10191,7 +10191,7 @@ function L_(e, t, n) {"aria-readonly": i || void 0,"aria-describedby": [N.id,- P.id,+ ee.id,p].filter(Boolean).join(" ") || void 0,onChange: w,@@ -10203,7 +10203,7 @@ function L_(e, t, n) {...j}),descriptionProps: N,- errorMessageProps: P,+ errorMessageProps: ee,isSelected: t.isSelected,isPressed: E || D,isDisabled: r,@@ -10215,8 +10215,8 @@ function L_(e, t, n) {}//#endregion//#region node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs-function R_(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 } = L_(e, t, n), { isIndeterminate: m } = e;+function F_(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 } = P_(e, t, n), { isIndeterminate: m } = e;return (0, I.useEffect)(() => {n.current && (n.current.indeterminate = !!m);}), {@@ -10235,18 +10235,18 @@ function R_(e, t, n) {}//#endregion//#region node_modules/react-aria/dist/private/checkbox/utils.mjs-var Eee = /* @__PURE__ */ new WeakMap();+var jee = /* @__PURE__ */ new WeakMap();//#endregion//#region node_modules/react-aria/dist/private/label/useLabel.mjs-function z_(e) {+function I_(e) {let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;- t = Hm(t);- let o = Hm(), s = {};+ t = Wm(t);+ let o = Wm(), s = {};n && (r = r ? `${o} ${r}` : o, s = {id: o,htmlFor: a === "label" ? t : void 0});- let c = $h({+ let c = tg({id: t,"aria-label": i,"aria-labelledby": r@@ -10258,13 +10258,13 @@ function z_(e) {}//#endregion//#region node_modules/react-aria/dist/private/label/useField.mjs-function B_(e) {- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = z_(e), s = Wm([+function L_(e) {+ let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = I_(e), s = Km([!!t,!!n,r,i- ]), c = Wm([+ ]), c = Km([!!t,!!n,r,@@ -10283,26 +10283,26 @@ function B_(e) {}//#endregion//#region node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs-function V_(e) {- let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, I.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = Tg(), c = (0, I.useCallback)((e) => {- op(e.currentTarget, V(e)) && a.current.isFocusWithin && !op(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));+function R_(e) {+ let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, I.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = Ag(), c = (0, I.useCallback)((e) => {+ cp(e.currentTarget, V(e)) && a.current.isFocusWithin && !cp(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));}, [n,i,a,s- ]), l = Cp(c), u = (0, I.useCallback)((e) => {- if (!op(e.currentTarget, V(e))) return;- let t = V(e), n = Xf(t), s = sp(n);+ ]), l = Tp(c), u = (0, I.useCallback)((e) => {+ if (!cp(e.currentTarget, V(e))) return;+ let t = V(e), n = Qf(t), s = lp(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 = V(e);- if (a.current.isFocusWithin && !op(t, r)) {+ if (a.current.isFocusWithin && !cp(t, r)) {let e = new n.defaultView.FocusEvent("blur", { relatedTarget: r });- Sp(e, t);- let i = xp(e);+ wp(e, t);+ let i = Cp(e);c(i);}}, { capture: !0 });@@ -10324,14 +10324,14 @@ function V_(e) {}//#endregion//#region node_modules/react-stately/dist/private/utils/useControlledState.mjs-var Dee = typeof document < "u" ? I.useInsertionEffect ?? I.useLayoutEffect : () => {};-function H_(e, t, n) {+var z_ = typeof document < "u" ? I.useInsertionEffect ?? I.useLayoutEffect : () => {};+function B_(e, t, n) {let [r, i] = (0, I.useState)(e || t), a = (0, I.useRef)(r), o = (0, I.useRef)(e !== void 0), s = e !== void 0;(0, I.useEffect)(() => {o.current, o.current = s;}, [s]);let c = s ? e : r;- Dee(() => {+ z_(() => {a.current = c;});let [, l] = (0, I.useReducer)(() => ({}), {});@@ -10342,8 +10342,8 @@ function H_(e, t, n) {}//#endregion//#region node_modules/react-stately/dist/private/toggle/useToggleState.mjs-function U_(e = {}) {- let { isReadOnly: t } = e, [n, r] = H_(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, I.useState)(n);+function V_(e = {}) {+ let { isReadOnly: t } = e, [n, r] = B_(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, I.useState)(n);function a(e) {t || r(e);}@@ -10359,26 +10359,26 @@ function U_(e = {}) {}//#endregion//#region node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs-function Oee(e, t, n) {- let r = U_({+function H_(e, t, n) {+ let r = V_({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 } = Eee.get(t);+ }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = jee.get(t);c = e.validationBehavior ?? c;- let { realtimeValidation: l } = N_({+ let { realtimeValidation: l } = A_({...e,value: r.isSelected,name: void 0,validationBehavior: "aria"- }), u = (0, I.useRef)(j_), d = () => {+ }), u = (0, I.useRef)(O_), d = () => {t.setInvalid(e.value, l.isInvalid ? l : u.current);};(0, I.useEffect)(d);- let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = R_({+ let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = F_({...e,isReadOnly: e.isReadOnly || t.isReadOnly,isDisabled: e.isDisabled || t.isDisabled,@@ -10386,7 +10386,7 @@ function Oee(e, t, n) {form: e.form || a,isRequired: e.isRequired ?? t.isRequired,validationBehavior: c,- [M_]: {+ [k_]: {realtimeValidation: f,displayValidation: p,resetValidation: t.resetValidation,@@ -10410,12 +10410,12 @@ function Oee(e, t, n) {}//#endregion//#region node_modules/react-stately/dist/private/utils/number.mjs-function W_(e, t = -Infinity, n = Infinity) {+function U_(e, t = -Infinity, n = Infinity) {return Math.min(Math.max(e, t), n);}//#endregion//#region node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs-var G_ = {+var W_ = {border: 0,clip: "rect(0 0 0 0)",clipPath: "inset(50%)",@@ -10427,38 +10427,38 @@ var G_ = {width: "1px",whiteSpace: "nowrap"};-function K_(e = {}) {- let { style: t, isFocusable: n } = e, [r, i] = (0, I.useState)(!1), { focusWithinProps: a } = V_({+function G_(e = {}) {+ let { style: t, isFocusable: n } = e, [r, i] = (0, I.useState)(!1), { focusWithinProps: a } = R_({isDisabled: !n,onFocusWithinChange: (e) => i(e)}), o = (0, I.useMemo)(() => r ? t : t ? {- ...G_,+ ...W_,...t- } : G_, [r]);+ } : W_, [r]);return { visuallyHiddenProps: {...a,style: o} };}-function q_(e) {- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = K_(e);+function K_(e) {+ let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = G_(e);return /*#__PURE__*/ I.createElement(n, H(a, o), t);}//#endregion//#region node_modules/react-aria/dist/private/textfield/useTextField.mjs-function kee(e, t) {- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = H_(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = mh(e, t), d = N_({+function q_(e, t) {+ let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = B_(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = gh(e, t), d = A_({...e,value: c- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = B_({+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = L_({...e,isInvalid: f,errorMessage: e.errorMessage || p- }), y = _g(e, { labelable: !0 }), b = {+ }), y = Sg(e, { labelable: !0 }), b = {type: o,pattern: e.pattern}, [x] = (0, I.useState)(c);- return E_(t, e.defaultValue ?? x, l), D_(e, d, t), {+ return C_(t, e.defaultValue ?? x, l), w_(e, d, t), {labelProps: h,inputProps: H(y, n === "input" ? b : void 0, {disabled: r,@@ -10505,42 +10505,42 @@ function kee(e, t) {}//#endregion//#region node_modules/react-aria/dist/private/overlays/ariaHideOutside.mjs-var Aee = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;-function J_(e) {+var J_ = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;+function Y_(e) {return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;}-var Y_ = /* @__PURE__ */ new WeakMap(), X_ = [];-function Z_(e, t) {- let n = Zf(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Aee, 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 X_ = /* @__PURE__ */ new WeakMap(), Z_ = [];+function Q_(e, t) {+ let n = $f(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && J_, 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 (ap()) {+ if (sp()) {let t = i.getRootNode();for (let n of e) {let e = n.getRootNode();- for (; tp(e) && e !== t;) u.add(e), e = e.host.getRootNode();+ for (; rp(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 (op(e, t)) return NodeFilter.FILTER_SKIP;+ for (let t of o) if (cp(e, t)) return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT;- }, n = Bg(Xf(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);+ }, n = Gg(Qf(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 = Y_.get(e) ?? 0;- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), Y_.set(e, t + 1));+ let t = X_.get(e) ?? 0;+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), X_.set(e, t + 1));};- X_.length && X_[X_.length - 1].disconnect(), d(i);+ Z_.length && Z_[Z_.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) => op(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && J_(e) ? o.add(e) : e instanceof Element && d(e);- if (ap()) {+ if (t.target.isConnected && ![...o, ...s].some((e) => cp(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && Y_(e) ? o.add(e) : e instanceof Element && d(e);+ if (sp()) {for (let e of u) if (!e.isConnected) {p.disconnect();break;@@ -10553,11 +10553,11 @@ function Z_(e, t) {subtree: !0});let m = /* @__PURE__ */ new Set();- if (ap()) for (let e of u) {+ if (sp()) 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) => op(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && J_(e) ? o.add(e) : e instanceof Element && d(e);- if (ap()) {+ if (t.target.isConnected && ![...o, ...s].some((e) => cp(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && Y_(e) ? o.add(e) : e instanceof Element && d(e);+ if (sp()) {for (let e of u) if (!e.isConnected) {p.disconnect();break;@@ -10583,59 +10583,59 @@ function Z_(e, t) {p.disconnect();}};- return X_.push(h), () => {- if (p.disconnect(), ap()) for (let e of m) e.disconnect();+ return Z_.push(h), () => {+ if (p.disconnect(), sp()) for (let e of m) e.disconnect();for (let e of s) {- let t = Y_.get(e);- t != null && (t === 1 ? (l(e, !1), Y_.delete(e)) : Y_.set(e, t - 1));+ let t = X_.get(e);+ t != null && (t === 1 ? (l(e, !1), X_.delete(e)) : X_.set(e, t - 1));}- h === X_[X_.length - 1] ? (X_.pop(), X_.length && X_[X_.length - 1].observe()) : X_.splice(X_.indexOf(h), 1);+ h === Z_[Z_.length - 1] ? (Z_.pop(), Z_.length && Z_[Z_.length - 1].observe()) : Z_.splice(Z_.indexOf(h), 1);};}-function jee(e) {- let t = X_[X_.length - 1];+function Mee(e) {+ let t = Z_[Z_.length - 1];if (t && !t.visibleNodes.has(e)) return t.visibleNodes.add(e), () => {t.visibleNodes.delete(e);};}//#endregion//#region node_modules/react-aria/dist/private/listbox/utils.mjs-var Q_ = /* @__PURE__ */ new WeakMap();-function Mee(e) {+var $_ = /* @__PURE__ */ new WeakMap();+function Nee(e) {return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;}-function Nee(e, t) {- let n = Q_.get(e);+function Pee(e, t) {+ let n = $_.get(e);if (!n) throw Error("Unknown list");- return `${n.id}-option-${Mee(t)}`;+ return `${n.id}-option-${Nee(t)}`;}//#endregion//#region node_modules/react-aria/dist/private/selection/utils.mjs-function $_(e) {- return Np() ? e.altKey : e.ctrlKey;+function ev(e) {+ return Fp() ? e.altKey : e.ctrlKey;}-function ev(e, t) {+function tv(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 tv = /* @__PURE__ */ new WeakMap();-function Pee(e) {- let t = Hm();- return tv.set(e, t), t;-}+var nv = /* @__PURE__ */ new WeakMap();function Fee(e) {- return tv.get(e);+ let t = Wm();+ return nv.set(e, t), t;+}+function Iee(e) {+ return nv.get(e);}//#endregion//#region node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs-var nv = class {+var rv = class {constructor(e) {this.ref = e;}getItemRect(e) {let t = this.ref.current;if (!t) return null;- let n = e == null ? null : ev(this.ref, e);+ let n = e == null ? null : tv(this.ref, e);if (!n) return null;let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();return {@@ -10661,12 +10661,12 @@ var nv = class {height: e?.clientHeight ?? 0};}-}, rv = class {+}, iv = 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 nv(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 nv(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 rv(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 rv(this.ref);this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);}isDisabled(e) {@@ -10706,14 +10706,14 @@ var nv = class {return e.x === t.x || e.y !== t.y;}isReversed(e) {- let t = this.getNextKey(e), n = ev(this.ref, e);+ let t = this.getNextKey(e), n = tv(this.ref, e);if (t != null) {- let e = ev(this.ref, t);+ let e = tv(this.ref, t);return !n || !e ? !1 : n.getBoundingClientRect().top > e.getBoundingClientRect().top;}let r = this.getPreviousKey(e);if (r != null) {- let e = ev(this.ref, r);+ let e = tv(this.ref, r);return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;}return !1;@@ -10747,7 +10747,7 @@ var nv = class {let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);if (!n) return null;let r = this.isReversed(e);- if (t && !y_(t)) return this.getFirstKey();+ if (t && !g_(t)) return this.getFirstKey();let i = e;if (this.orientation === "horizontal") {let e = Math.max(0, n.x + n.width - this.layoutDelegate.getVisibleRect().width);@@ -10762,7 +10762,7 @@ var nv = class {let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);if (!n) return null;let r = this.isReversed(e);- if (t && !y_(t)) return this.getLastKey();+ if (t && !g_(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);@@ -10785,184 +10785,184 @@ var nv = class {}return null;}-}, iv = {};-iv = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };+}, av = {};+av = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };//#endregion//#region node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs-var av = {};-av = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };+var ov = {};+ov = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };//#endregion//#region node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs-var ov = {};-ov = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };+var sv = {};+sv = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };//#endregion//#region node_modules/react-aria/dist/private/intl/menu/da-DK.mjs-var sv = {};-sv = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };+var cv = {};+cv = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };//#endregion//#region node_modules/react-aria/dist/private/intl/menu/de-DE.mjs-var cv = {};-cv = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };+var lv = {};+lv = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };//#endregion//#region node_modules/react-aria/dist/private/intl/menu/el-GR.mjs-var lv = {};-lv = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };+var uv = {};+uv = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };//#endregion//#region node_modules/react-aria/dist/private/intl/menu/en-US.mjs-var uv = {};-uv = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };+var dv = {};+dv = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };//#endregion//#region node_modules/react-aria/dist/private/intl/menu/es-ES.mjs-var dv = {};-dv = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };+var fv = {};+fv = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };//#endregion//#region node_modules/react-aria/dist/private/intl/menu/et-EE.mjs-var fv = {};-fv = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };+var pv = {};+pv = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };//#endregion//#region node_modules/react-aria/dist/private/intl/menu/fi-FI.mjs-var pv = {};-pv = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };+var mv = {};+mv = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };//#endregion//#region node_modules/react-aria/dist/private/intl/menu/fr-FR.mjs-var mv = {};-mv = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };+var hv = {};+hv = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };//#endregion//#region node_modules/react-aria/dist/private/intl/menu/he-IL.mjs-var hv = {};-hv = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };+var gv = {};+gv = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };//#endregion//#region node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs-var gv = {};-gv = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };+var _v = {};+_v = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };//#endregion//#region node_modules/react-aria/dist/private/intl/menu/hu-HU.mjs-var _v = {};-_v = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };+var vv = {};+vv = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };//#endregion//#region node_modules/react-aria/dist/private/intl/menu/it-IT.mjs-var vv = {};-vv = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };+var yv = {};+yv = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };//#endregion//#region node_modules/react-aria/dist/private/intl/menu/ja-JP.mjs-var yv = {};-yv = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };+var bv = {};+bv = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };//#endregion//#region node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs-var bv = {};-bv = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };+var xv = {};+xv = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };//#endregion//#region node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs-var xv = {};-xv = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };+var Sv = {};+Sv = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };//#endregion//#region node_modules/react-aria/dist/private/intl/menu/lv-LV.mjs-var Sv = {};-Sv = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };+var Cv = {};+Cv = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };//#endregion//#region node_modules/react-aria/dist/private/intl/menu/nb-NO.mjs-var Cv = {};-Cv = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };+var wv = {};+wv = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };//#endregion//#region node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs-var wv = {};-wv = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };+var Tv = {};+Tv = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };//#endregion//#region node_modules/react-aria/dist/private/intl/menu/pl-PL.mjs-var Tv = {};-Tv = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };+var Ev = {};+Ev = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };//#endregion//#region node_modules/react-aria/dist/private/intl/menu/pt-BR.mjs-var Ev = {};-Ev = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };+var Dv = {};+Dv = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };//#endregion//#region node_modules/react-aria/dist/private/intl/menu/pt-PT.mjs-var Dv = {};-Dv = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };+var Ov = {};+Ov = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };//#endregion//#region node_modules/react-aria/dist/private/intl/menu/ro-RO.mjs-var Ov = {};-Ov = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };+var kv = {};+kv = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };//#endregion//#region node_modules/react-aria/dist/private/intl/menu/ru-RU.mjs-var kv = {};-kv = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };+var Av = {};+Av = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };//#endregion//#region node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs-var Av = {};-Av = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };+var jv = {};+jv = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };//#endregion//#region node_modules/react-aria/dist/private/intl/menu/sl-SI.mjs-var jv = {};-jv = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };+var Mv = {};+Mv = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };//#endregion//#region node_modules/react-aria/dist/private/intl/menu/sr-SP.mjs-var Mv = {};-Mv = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };+var Nv = {};+Nv = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };//#endregion//#region node_modules/react-aria/dist/private/intl/menu/sv-SE.mjs-var Nv = {};-Nv = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };+var Pv = {};+Pv = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };//#endregion//#region node_modules/react-aria/dist/private/intl/menu/tr-TR.mjs-var Pv = {};-Pv = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };+var Fv = {};+Fv = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };//#endregion//#region node_modules/react-aria/dist/private/intl/menu/uk-UA.mjs-var Fv = {};-Fv = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };+var Iv = {};+Iv = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };//#endregion//#region node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs-var Iv = {};-Iv = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };+var Lv = {};+Lv = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };//#endregion//#region node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs-var Lv = {};-Lv = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };+var Rv = {};+Rv = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };//#endregion//#region node_modules/react-aria/dist/private/menu/intlStrings.mjs-var Rv = {};-Rv = {- "ar-AE": iv,- "bg-BG": av,- "cs-CZ": ov,- "da-DK": sv,- "de-DE": cv,- "el-GR": lv,- "en-US": uv,- "es-ES": dv,- "et-EE": fv,- "fi-FI": pv,- "fr-FR": mv,- "he-IL": hv,- "hr-HR": gv,- "hu-HU": _v,- "it-IT": vv,- "ja-JP": yv,- "ko-KR": bv,- "lt-LT": xv,- "lv-LV": Sv,- "nb-NO": Cv,- "nl-NL": wv,- "pl-PL": Tv,- "pt-BR": Ev,- "pt-PT": Dv,- "ro-RO": Ov,- "ru-RU": kv,- "sk-SK": Av,- "sl-SI": jv,- "sr-SP": Mv,- "sv-SE": Nv,- "tr-TR": Pv,- "uk-UA": Fv,- "zh-CN": Iv,- "zh-TW": Lv+var zv = {};+zv = {+ "ar-AE": av,+ "bg-BG": ov,+ "cs-CZ": sv,+ "da-DK": cv,+ "de-DE": lv,+ "el-GR": uv,+ "en-US": dv,+ "es-ES": fv,+ "et-EE": pv,+ "fi-FI": mv,+ "fr-FR": hv,+ "he-IL": gv,+ "hr-HR": _v,+ "hu-HU": vv,+ "it-IT": yv,+ "ja-JP": bv,+ "ko-KR": xv,+ "lt-LT": Sv,+ "lv-LV": Cv,+ "nb-NO": wv,+ "nl-NL": Tv,+ "pl-PL": Ev,+ "pt-BR": Dv,+ "pt-PT": Ov,+ "ro-RO": kv,+ "ru-RU": Av,+ "sk-SK": jv,+ "sl-SI": Mv,+ "sr-SP": Nv,+ "sv-SE": Pv,+ "tr-TR": Fv,+ "uk-UA": Iv,+ "zh-CN": Lv,+ "zh-TW": Rv};//#endregion//#region node_modules/react-aria/dist/private/interactions/useLongPress.mjs-var Iee = 500;-function zv(e) {- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = Iee, accessibilityDescription: s } = e, c = (0, I.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = Tg(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = Ag({+var Bv = 500;+function Vv(e) {+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = Bv, accessibilityDescription: s } = e, c = (0, I.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = Ag(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = Fg({isDisabled: t,onPressStart(e) {if (e.continuePropagation(), d(e)) {@@ -10970,12 +10970,12 @@ function zv(e) {...e,type: "longpressstart"}), c.current = setTimeout(() => {- e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), Xf(e.target).activeElement !== e.target && Gf(e.target), a && a({+ e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), Qf(e.target).activeElement !== e.target && qf(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 = Zf(e.target);+ let t = $f(e.target);l(t, "pointerup", () => {setTimeout(() => {u();@@ -10990,12 +10990,12 @@ function zv(e) {});}});- return { longPressProps: H(f, T_(a && !t ? s : void 0)) };+ return { longPressProps: H(f, S_(a && !t ? s : void 0)) };}//#endregion//#region node_modules/react-aria/dist/private/interactions/useContextMenu.mjs-function Lee(e) {- let { onContextMenu: t } = e, n = (0, I.useRef)(!1), { longPressProps: r } = zv({+function Hv(e) {+ let { onContextMenu: t } = e, n = (0, I.useRef)(!1), { longPressProps: r } = Vv({onLongPressStart() {n.current = !1;},@@ -11007,7 +11007,7 @@ function Lee(e) {});}});- return t ? { contextMenuProps: H(Mp() ? r : {}, {+ return t ? { contextMenuProps: H(Pp() ? r : {}, {onContextMenu(e) {e.stopPropagation(), e.preventDefault(), n.current = !0;let r = e.currentTarget.getBoundingClientRect();@@ -11018,7 +11018,7 @@ function Lee(e) {});},onKeyDown(e) {- if (kp() && e.ctrlKey && e.key === "Enter") {+ if (jp() && e.ctrlKey && e.key === "Enter") {n.current = !1;let r = e.currentTarget;e.stopPropagation(), setTimeout(() => {@@ -11038,13 +11038,13 @@ function Lee(e) {}//#endregion//#region node_modules/react-aria/dist/private/overlays/useCloseOnScroll.mjs-var Bv = /* @__PURE__ */ new WeakMap();-function Ree(e) {+var Uv = /* @__PURE__ */ new WeakMap();+function Wv(e) {let { triggerRef: t, isOpen: n, onClose: r } = e;- (0, I.useEffect)(() => !n || r === null ? void 0 : np(cp(t.current), "scroll", (e) => {+ (0, I.useEffect)(() => !n || r === null ? void 0 : ip(up(t.current), "scroll", (e) => {let n = V(e);- if (!t.current || n instanceof Node && !op(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;- let i = r || Bv.get(t.current);+ if (!t.current || n instanceof Node && !cp(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;+ let i = r || Uv.get(t.current);i && i();}, !0), [n,@@ -11054,14 +11054,14 @@ function Ree(e) {}//#endregion//#region node_modules/react-aria/dist/private/overlays/useOverlayTrigger.mjs-function zee(e, t, n) {+function Gv(e, t, n) {let { type: r } = e, { isOpen: i } = t;(0, I.useEffect)(() => {- n && n.current && Bv.set(n.current, t.close);+ n && n.current && Uv.set(n.current, t.close);});let a;r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");- let o = Hm();+ let o = Wm();return {triggerProps: {"aria-haspopup": a,@@ -11074,14 +11074,14 @@ function zee(e, t, n) {}//#endregion//#region node_modules/react-aria/dist/private/menu/useMenuTrigger.mjs-function Bee(e) {+function Lee(e) {return e && e.__esModule ? e.default : e;}-function Vv(e, t, n) {- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = Hm(), { triggerProps: s, overlayProps: c } = zee({ type: r }, t, n), l = (e, n, r = "first") => {+function Kv(e, t, n) {+ let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = Wm(), { triggerProps: s, overlayProps: c } = Gv({ type: r }, t, n), l = (e, n, r = "first") => {if (!e || n.isDefaultPrevented()) return !1;t.toggle(r);- }, { keyboardProps: u } = lh({+ }, { keyboardProps: u } = dh({isDisabled: i,shortcuts: {Enter: (e) => l(a !== "longPress", e, "first"),@@ -11093,7 +11093,7 @@ function Vv(e, t, n) {"Alt+ArrowDown": (e) => l(!0, e, "first"),"Alt+ArrowUp": (e) => l(!0, e, "last")}- }), d = hg(Bee(Rv), "@react-aria/menu"), { longPressProps: f } = zv({+ }), d = bg(Lee(zv), "@react-aria/menu"), { longPressProps: f } = Vv({isDisabled: i || a !== "longPress",accessibilityDescription: d.format("longPressMessage"),onLongPressStart() {@@ -11105,14 +11105,14 @@ function Vv(e, t, n) {}), p = {preventFocusOnPress: !0,onPressStart(e) {- e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (Gf(e.target), t.open(e.pointerType === "virtual" ? "first" : null));+ e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (qf(e.target), t.open(e.pointerType === "virtual" ? "first" : null));},onPress(e) {- e.pointerType === "touch" && !i && (Gf(e.target), t.toggle());+ e.pointerType === "touch" && !i && (qf(e.target), t.toggle());}};delete s.onPress;- let { contextMenuProps: m } = Lee({ onContextMenu(e) {+ let { contextMenuProps: m } = Hv({ onContextMenu(e) {let n = e.target.getBoundingClientRect();t.setPoint({x: n.x + e.x,@@ -11157,8 +11157,8 @@ function Vv(e, t, n) {}//#endregion//#region node_modules/react-aria/dist/private/selection/useTypeSelect.mjs-var Hv = 1e3;-function Uv(e) {+var qv = 1e3;+function Jv(e) {let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, I.useRef)({search: "",timeout: void 0@@ -11177,12 +11177,12 @@ function Uv(e) {}clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {i.current.search = "";- }, Hv);+ }, qv);}} : void 0,onKeyDown: t.getKeyForSearch ? (e) => {- let a = Vee(e.key);- if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !op(e.currentTarget, V(e)) || i.current.search.length === 0 && a === " ")) {+ let a = Ree(e.key);+ if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !cp(e.currentTarget, V(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();@@ -11193,34 +11193,34 @@ function Uv(e) {}clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {i.current.search = "";- }, Hv);+ }, qv);}} : void 0} };}-function Vee(e) {+function Ree(e) {return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";}//#endregion//#region node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs-function Wv(e, t) {+function Yv(e, t) {let n = (0, I.useRef)(!0), r = (0, I.useRef)(null);- bp(() => (n.current = !0, () => {+ Sp(() => (n.current = !0, () => {n.current = !1;- }), []), bp(() => {+ }), []), Sp(() => {n.current ? n.current = !1 : (!r.current || t.some((e, t) => !Object.is(e, r[t]))) && e(), r.current = t;}, t);}//#endregion//#region node_modules/react-aria/dist/private/selection/useSelectableCollection.mjs-function Gv(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 } = lg(), _ = Vp(), v = (e, n, i) => {+function Xv(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 } = ug(), _ = Up(), v = (e, n, i) => {if (n != null) {- if (t.isLink(n) && m === "selection" && l && !$_(e)) {- (0, Ch.flushSync)(() => {+ if (t.isLink(n) && m === "selection" && l && !ev(e)) {+ (0, Th.flushSync)(() => {t.setFocusedKey(n, i);});- let a = ev(r, n), o = t.getItemProps(n);+ let a = tv(r, n), o = t.getItemProps(n);if (a) {_.open(a, e, o.href, o.routerOptions);return;@@ -11232,7 +11232,7 @@ function Gv(e) {t.extendSelection(n);return;}- if (l && !$_(e)) {+ if (l && !ev(e)) {t.replaceSelection(n);return;}@@ -11259,9 +11259,9 @@ function Gv(e) {}, x = (e) => {if (n.getFirstKey) {if (t.focusedKey === null && e.shiftKey) return !1;- let r = n.getFirstKey(t.focusedKey, qh(e));+ let r = n.getFirstKey(t.focusedKey, Yh(e));if (t.setFocusedKey(r), r != null) {- if (qh(e) && e.shiftKey && t.selectionMode === "multiple") {+ if (Yh(e) && e.shiftKey && t.selectionMode === "multiple") {t.extendSelection(r);return;}@@ -11293,9 +11293,9 @@ function Gv(e) {}, w = (e) => {if (n.getLastKey) {if (t.focusedKey === null && e.shiftKey) return !1;- let r = n.getLastKey(t.focusedKey, qh(e));+ let r = n.getLastKey(t.focusedKey, Yh(e));if (t.setFocusedKey(r), r != null) {- if (qh(e) && e.shiftKey && t.selectionMode === "multiple") {+ if (Yh(e) && e.shiftKey && t.selectionMode === "multiple") {t.extendSelection(r);return;}@@ -11332,12 +11332,12 @@ function Gv(e) {return !1;}, k = () => {if (!f && r.current) {- let e = u_(r.current, { tabbable: !0 }), t, n;+ let e = c_(r.current, { tabbable: !0 }), t, n;don = e.lastChild(), n && (t = n);while (n);- let i = sp();- t && (!lp(t) || i && !vp(i)) && Gf(t);+ let i = lp();+ t && (!dp(t) || i && !bp(i)) && qf(t);}return {shouldContinuePropagation: !0,@@ -11347,11 +11347,11 @@ function Gv(e) {shouldContinuePropagation: !0,shouldPreventDefault: !1}), j = (e, t) => ({- [kp() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,+ [jp() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,[e + "+Shift"]: t,- [kp() ? e + "+Alt" : e + "+Control"]: t,+ [jp() ? e + "+Alt" : e + "+Control"]: t,[e]: t- }), { keyboardProps: M } = lh({+ }), { keyboardProps: M } = dh({shortcuts: {...j("ArrowDown", y),...j("ArrowUp", b),@@ -11361,30 +11361,30 @@ function Gv(e) {...j("PageUp", E)},allowRepeats: !0- }), { keyboardProps: N } = lh({ shortcuts: {+ }), { keyboardProps: N } = dh({ shortcuts: {...j("Home", x),...j("End", w),"Mod+A": D,Escape: O,Tab: k,"Tab+Shift": A- } }), P = (0, I.useRef)({+ } }), ee = (0, I.useRef)({top: 0,left: 0});- Qh(p, "scroll", () => {- P.current = {+ eg(p, "scroll", () => {+ ee.current = {top: p.current?.scrollTop ?? 0,left: p.current?.scrollLeft ?? 0};});- let ee = (e) => {+ let te = (e) => {if (t.isFocused) {- op(e.currentTarget, V(e)) || t.setFocused(!1);+ cp(e.currentTarget, V(e)) || t.setFocused(!1);return;}- if (!op(e.currentTarget, V(e))) return;- let i = wm();+ if (!cp(e.currentTarget, V(e))) return;+ let i = Em();t.setFocused(!0);let a = (e) => {e != null && (t.setFocusedKey(e), l && !t.isSelected(e) && t.replaceSelection(e));@@ -11393,29 +11393,29 @@ function Gv(e) {else if (t.focusedKey == null) {let r = e.relatedTarget;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 = P.current.top, p.current.scrollLeft = P.current.left);+ } else p.current && (p.current.scrollTop = ee.current.top, p.current.scrollLeft = ee.current.left);if (t.focusedKey != null && p.current) {- let e = ev(r, t.focusedKey);- e instanceof HTMLElement && (!lp(e) && !d && Gf(e), (i === "keyboard" || h && i === "virtual") && C_(e, { containingElement: r.current }));+ let e = tv(r, t.focusedKey);+ e instanceof HTMLElement && (!dp(e) && !d && qf(e), (i === "keyboard" || h && i === "virtual") && b_(e, { containingElement: r.current }));}- }, F = (e) => {- op(e.currentTarget, e.relatedTarget) || t.setFocused(!1);- }, te = (0, I.useRef)(!1);- Qh(r, Hh, d ? (e) => {+ }, P = (e) => {+ cp(e.currentTarget, e.relatedTarget) || t.setFocused(!1);+ }, ne = (0, I.useRef)(!1);+ eg(r, Wh, d ? (e) => {let { detail: n } = e;- e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (te.current = !0);+ e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (ne.current = !0);} : void 0);- let ne = n.getFirstKey?.() ?? null;- Wv(() => {- if (te.current) {- if (ne == null) {- let e = sp();- Uh(r.current), Gh(e, null), t.collection.size > 0 && (te.current = !1);- } else t.setFocusedKey(ne), te.current = !1;- }- }, [ne, t.collection.size]), Wv(() => {- t.collection.size > 0 && (te.current = !1);- }, [t.focusedKey]), Qh(r, Vh, d ? (e) => {+ let F = n.getFirstKey?.() ?? null;+ Yv(() => {+ if (ne.current) {+ if (F == null) {+ let e = lp();+ Gh(r.current), qh(e, null), t.collection.size > 0 && (ne.current = !1);+ } else t.setFocusedKey(F), ne.current = !1;+ }+ }, [F, t.collection.size]), Yv(() => {+ t.collection.size > 0 && (ne.current = !1);+ }, [t.focusedKey]), eg(r, Uh, d ? (e) => {e.stopPropagation(), t.setFocused(!1), e.detail?.clearFocusKey && t.setFocusedKey(null);} : void 0);let re = (0, I.useRef)(i), ie = (0, I.useRef)(!1);@@ -11430,53 +11430,53 @@ function Gv(e) {break;}}- t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && Fm(r.current), t.collection.size > 0 && (re.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 && Lm(r.current), t.collection.size > 0 && (re.current = !1, ie.current = !0);}});let ae = (0, I.useRef)(t.focusedKey), oe = (0, I.useRef)(null);(0, I.useEffect)(() => {if (t.isFocused && t.focusedKey != null && (t.focusedKey !== ae.current || ie.current) && p.current && r.current) {- let e = wm(), n = ev(r, t.focusedKey);+ let e = Em(), n = tv(r, t.focusedKey);if (!(n instanceof HTMLElement)) return;(e === "keyboard" || ie.current) && (oe.current && cancelAnimationFrame(oe.current), oe.current = requestAnimationFrame(() => {- p.current && (S_(p.current, n), e !== "virtual" && C_(n, { containingElement: r.current }));+ p.current && (y_(p.current, n), e !== "virtual" && b_(n, { containingElement: r.current }));}));}- !d && t.isFocused && t.focusedKey == null && ae.current != null && r.current && Fm(r.current), ae.current = t.focusedKey, ie.current = !1;+ !d && t.isFocused && t.focusedKey == null && ae.current != null && r.current && Lm(r.current), ae.current = t.focusedKey, ie.current = !1;}), (0, I.useEffect)(() => () => {oe.current && cancelAnimationFrame(oe.current);- }, []), Qh(r, "react-aria-focus-scope-restore", (e) => {+ }, []), eg(r, "react-aria-focus-scope-restore", (e) => {e.preventDefault(), t.setFocused(!0);});let se = {...H(N, M),- onFocus: ee,- onBlur: F,+ onFocus: te,+ onBlur: P,onMouseDown(e) {p.current === V(e) && e.preventDefault();}- }, { typeSelectProps: ce } = Uv({+ }, { typeSelectProps: ce } = Jv({keyboardDelegate: n,selectionManager: t});u || (se = H(ce, se));- let L;- d || (L = t.focusedKey == null ? 0 : -1);- let le = Pee(t.collection);+ let le;+ d || (le = t.focusedKey == null ? 0 : -1);+ let ue = Fee(t.collection);return { collectionProps: H(se, {- tabIndex: L,- "data-collection": le+ tabIndex: le,+ "data-collection": ue}) };}//#endregion//#region node_modules/react-stately/dist/private/collections/getChildNodes.mjs-function Kv(e, t) {+function Zv(e, t) {return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;}-function qv(e) {- return Jv(e, 0);+function Qv(e) {+ return $v(e, 0);}-function Jv(e, t) {+function $v(e, t) {if (t < 0) return;let n = 0;for (let r of e) {@@ -11484,112 +11484,112 @@ function Jv(e, t) {n++;}}-function Yv(e) {+function ey(e) {let t;for (let n of e) t = n;return t;}-function Xv(e, t, n) {+function ty(e, t, n) {if (t.parentKey === n.parentKey) return t.index - n.index;- let r = [...Zv(e, t), t], i = [...Zv(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);+ let r = [...ny(e, t), t], i = [...ny(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 Zv(e, t) {+function ny(e, t) {let n = [], r = t;for (; r?.parentKey != null;) r = e.getItem(r.parentKey), r && n.unshift(r);return n;}//#endregion//#region node_modules/react-stately/dist/private/collections/getItemCount.mjs-var Qv = /* @__PURE__ */ new WeakMap();-function $v(e) {- let t = Qv.get(e);+var ry = /* @__PURE__ */ new WeakMap();+function iy(e) {+ let t = ry.get(e);if (t != null) return t;let n = 0, r = (t) => {- for (let i of t) i.type === "section" ? r(Kv(i, e)) : i.type === "item" && n++;+ for (let i of t) i.type === "section" ? r(Zv(i, e)) : i.type === "item" && n++;};- return r(e), Qv.set(e, n), n;+ return r(e), ry.set(e, n), n;}//#endregion//#region node_modules/react-aria/dist/private/i18n/useCollator.mjs-var ey = /* @__PURE__ */ new Map();-function ty(e) {- let { locale: t } = lg(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");- if (ey.has(n)) return ey.get(n);+var ay = /* @__PURE__ */ new Map();+function oy(e) {+ let { locale: t } = ug(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");+ if (ay.has(n)) return ay.get(n);let r = new Intl.Collator(t, e);- return ey.set(n, r), r;+ return ay.set(n, r), r;}//#endregion//#region node_modules/react-aria/dist/private/interactions/PressResponder.mjs-var Hee = /*#__PURE__*/ I.forwardRef(({ children: e, ...t }, n) => {- let r = (0, I.useRef)(!1), i = (0, I.useContext)(wg), a = H(i || {}, {+var zee = /*#__PURE__*/ I.forwardRef(({ children: e, ...t }, n) => {+ let r = (0, I.useRef)(!1), i = (0, I.useContext)(kg), a = H(i || {}, {...t,register() {r.current = !0, i && i.register();}});- return a.ref = uh(n || i?.ref), dh(i, a.ref), (0, I.useEffect)(() => {+ return a.ref = fh(n || i?.ref), ph(i, a.ref), (0, I.useEffect)(() => {r.current ||= !0;- }, []), /*#__PURE__*/ I.createElement(wg.Provider, { value: a }, e);+ }, []), /*#__PURE__*/ I.createElement(kg.Provider, { value: a }, e);});-function Uee({ children: e }) {+function Bee({ children: e }) {let t = (0, I.useMemo)(() => ({ register: () => {} }), []);- return /*#__PURE__*/ I.createElement(wg.Provider, { value: t }, e);+ return /*#__PURE__*/ I.createElement(kg.Provider, { value: t }, e);}//#endregion//#region node_modules/react-aria/dist/private/overlays/PortalProvider.mjs-var ny = /*#__PURE__*/ (0, I.createContext)({});-function ry(e) {- let { getContainer: t } = e, { getContainer: n } = iy();- return /*#__PURE__*/ I.createElement(ny.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);+var sy = /*#__PURE__*/ (0, I.createContext)({});+function cy(e) {+ let { getContainer: t } = e, { getContainer: n } = ly();+ return /*#__PURE__*/ I.createElement(sy.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);}-function iy() {- return (0, I.useContext)(ny) ?? {};+function ly() {+ return (0, I.useContext)(sy) ?? {};}//#endregion//#region node_modules/react-aria/dist/private/overlays/Overlay.mjs-var ay = /*#__PURE__*/ I.createContext(null);-function oy(e) {- let t = om(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, I.useState)(!1), o = (0, I.useMemo)(() => ({+var uy = /*#__PURE__*/ I.createContext(null);+function dy(e) {+ let t = cm(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, I.useState)(!1), o = (0, I.useMemo)(() => ({contain: i,setContain: a- }), [i, a]), { getContainer: s } = iy();+ }), [i, a]), { getContainer: s } = ly();if (!e.portalContainer && s && (n = s()), !n) return null;let c = e.children;- return e.disableFocusManagement || (c = /*#__PURE__*/ I.createElement(Wg, {+ return e.disableFocusManagement || (c = /*#__PURE__*/ I.createElement(Yg, {restoreFocus: !0,contain: (e.shouldContainFocus || i) && !r- }, c)), c = /*#__PURE__*/ I.createElement(ay.Provider, { value: o }, /*#__PURE__*/ I.createElement(Uee, null, /*#__PURE__*/ I.createElement(fh.Provider, { value: null }, c))), /*#__PURE__*/ Ch.createPortal(c, n);+ }, c)), c = /*#__PURE__*/ I.createElement(uy.Provider, { value: o }, /*#__PURE__*/ I.createElement(Bee, null, /*#__PURE__*/ I.createElement(mh.Provider, { value: null }, c))), /*#__PURE__*/ Th.createPortal(c, n);}-function sy() {- let e = (0, I.useContext)(ay)?.setContain;- bp(() => {+function fy() {+ let e = (0, I.useContext)(uy)?.setContain;+ Sp(() => {e?.(!0);}, [e]);}//#endregion//#region node_modules/react-aria/dist/private/dialog/useDialog.mjs-function Wee(e, t) {- let { role: n = "dialog" } = e, r = Wm();+function Vee(e, t) {+ let { role: n = "dialog" } = e, r = Km();r = e["aria-label"] ? void 0 : r;- let i = Wm();+ let i = Km();i = n === "alertdialog" && !e["aria-describedby"] ? i : void 0;let a = (0, I.useRef)(!1);(0, I.useEffect)(() => {- if (t.current && !lp(t.current)) {- Fm(t.current);+ if (t.current && !dp(t.current)) {+ Lm(t.current);let e = setTimeout(() => {- (sp() === t.current || sp() === document.body) && (a.current = !0, t.current && (t.current.blur(), Fm(t.current)), a.current = !1);+ (lp() === t.current || lp() === document.body) && (a.current = !0, t.current && (t.current.blur(), Lm(t.current)), a.current = !1);}, 500);return () => {clearTimeout(e);};}- }, [t]), sy(), (0, I.useRef)(!1), (0, I.useEffect)(() => {});+ }, [t]), fy(), (0, I.useRef)(!1), (0, I.useEffect)(() => {});let o = e["aria-describedby"] ?? i;return {dialogProps: {- ..._g(e, { labelable: !0 }),+ ...Sg(e, { labelable: !0 }),role: n,tabIndex: -1,"aria-labelledby": e["aria-labelledby"] ?? r,@@ -11604,23 +11604,23 @@ function Wee(e, t) {}//#endregion//#region node_modules/react-aria/dist/private/focus/useFocusRing.mjs-function cy(e = {}) {+function py(e = {}) {let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, I.useRef)({isFocused: !1,- isFocusVisible: t || Cm()+ isFocusVisible: t || Tm()}), [a, o] = (0, I.useState)(!1), [s, c] = (0, I.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, I.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, I.useCallback)((e) => {- i.current.isFocused = e, i.current.isFocusVisible = Cm(), o(e), l();+ i.current.isFocused = e, i.current.isFocusVisible = Tm(), o(e), l();}, [l]);- km((e) => {+ jm((e) => {i.current.isFocusVisible = e, l();}, [n, a], {enabled: a,isTextInput: n});- let { focusProps: d } = Ym({+ let { focusProps: d } = Zm({isDisabled: r,onFocusChange: u- }), { focusWithinProps: f } = V_({+ }), { focusWithinProps: f } = R_({isDisabled: !r,onFocusWithinChange: u});@@ -11632,42 +11632,42 @@ function cy(e = {}) {}//#endregion//#region node_modules/react-aria/dist/private/i18n/useListFormatter.mjs-function Gee(e = {}) {- let { locale: t } = lg();+function Hee(e = {}) {+ let { locale: t } = ug();return (0, I.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);}//#endregion//#region node_modules/react-aria/dist/private/interactions/useHover.mjs-var ly = !1, uy = 0;-function Kee() {- ly = !0, setTimeout(() => {- ly = !1;+var my = !1, hy = 0;+function Uee() {+ my = !0, setTimeout(() => {+ my = !1;}, 500);}-function dy(e) {- e.pointerType === "touch" && Kee();+function gy(e) {+ e.pointerType === "touch" && Uee();}-function qee() {- let e = Xf(null);- if (e !== void 0) return uy === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", dy), uy++, () => {- uy--, !(uy > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", dy);+function Wee() {+ let e = Qf(null);+ if (e !== void 0) return hy === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", gy), hy++, () => {+ hy--, !(hy > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", gy);};}-function fy(e) {+function _y(e) {let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, I.useState)(!1), s = (0, I.useRef)({isHovered: !1,ignoreEmulatedMouseEvents: !1,pointerType: "",target: null}).current;- (0, I.useEffect)(qee, []);- let { addGlobalListener: c, removeAllGlobalListeners: l } = Tg(), { hoverProps: u, triggerHoverEnd: d } = (0, I.useMemo)(() => {+ (0, I.useEffect)(Wee, []);+ let { addGlobalListener: c, removeAllGlobalListeners: l } = Ag(), { hoverProps: u, triggerHoverEnd: d } = (0, I.useMemo)(() => {let e = (e, r) => {- if (s.pointerType = r, i || r === "touch" || s.isHovered || !op(e.currentTarget, V(e))) return;+ if (s.pointerType = r, i || r === "touch" || s.isHovered || !cp(e.currentTarget, V(e))) return;s.isHovered = !0;let l = e.currentTarget;- s.target = l, c(Xf(V(e)), "pointerover", (e) => {- s.isHovered && s.target && !op(s.target, V(e)) && a(e, e.pointerType);+ s.target = l, c(Qf(V(e)), "pointerover", (e) => {+ s.isHovered && s.target && !cp(s.target, V(e)) && a(e, e.pointerType);}, { capture: !0 }), t && t({type: "hoverstart",target: l,@@ -11682,9 +11682,9 @@ function fy(e) {}), n && n(!1), o(!1));}, u = {};return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {- ly && t.pointerType === "mouse" || e(t, t.pointerType);+ my && t.pointerType === "mouse" || e(t, t.pointerType);}, u.onPointerLeave = (e) => {- !i && op(e.currentTarget, V(e)) && a(e, e.pointerType);+ !i && cp(e.currentTarget, V(e)) && a(e, e.pointerType);}), {hoverProps: u,triggerHoverEnd: a@@ -11707,22 +11707,22 @@ function fy(e) {}//#endregion//#region node_modules/react-aria/dist/private/interactions/useInteractOutside.mjs-function Jee(e) {+function Gee(e) {let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, I.useRef)({isPointerDown: !1,ignoreEmulatedMouseEvents: !1- }), o = Zh((e) => {- n && py(e, t) && (i && i(e), a.current.isPointerDown = !0);- }), s = Zh((e) => {+ }), o = $h((e) => {+ n && vy(e, t) && (i && i(e), a.current.isPointerDown = !0);+ }), s = $h((e) => {n && n(e);});(0, I.useEffect)(() => {let e = a.current;if (r) return;- let n = t.current, i = Xf(n);+ let n = t.current, i = Qf(n);if (typeof PointerEvent < "u") {let n = (n) => {- e.isPointerDown && py(n, t) && s(n), e.isPointerDown = !1;+ e.isPointerDown && vy(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);@@ -11730,19 +11730,19 @@ function Jee(e) {}}, [t, r]);}-function py(e, t) {+function vy(e, t) {if (e.button > 0) return !1;let n = V(e);if (n) {let e = n.ownerDocument;- if (!e || !op(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;+ if (!e || !cp(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;}return t.current ? !e.composedPath().includes(t.current) : !1;}//#endregion//#region node_modules/react-aria/dist/private/intl/grid/ar-AE.mjs-var my = {};-my = {+var yy = {};+yy = {deselectedItem: (e) => `${e.item} \u{63A}\u{64A}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,longPressToSelect: "اضغط مطولًا للدخول إلى وضع التحديد.",select: "تحديد",@@ -11756,8 +11756,8 @@ my = {};//#endregion//#region node_modules/react-aria/dist/private/intl/grid/bg-BG.mjs-var hy = {};-hy = {+var by = {};+by = {deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{435} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`,longPressToSelect: "Натиснете и задръжте за да влезете в избирателен режим.",select: "Изберете",@@ -11771,8 +11771,8 @@ hy = {};//#endregion//#region node_modules/react-aria/dist/private/intl/grid/cs-CZ.mjs-var gy = {};-gy = {+var xy = {};+xy = {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",@@ -11786,8 +11786,8 @@ gy = {};//#endregion//#region node_modules/react-aria/dist/private/intl/grid/da-DK.mjs-var _y = {};-_y = {+var Sy = {};+Sy = {deselectedItem: (e) => `${e.item} ikke valgt.`,longPressToSelect: "Lav et langt tryk for at aktivere valgtilstand.",select: "Vælg",@@ -11801,8 +11801,8 @@ _y = {};//#endregion//#region node_modules/react-aria/dist/private/intl/grid/de-DE.mjs-var vy = {};-vy = {+var Cy = {};+Cy = {deselectedItem: (e) => `${e.item} nicht ausgew\xe4hlt.`,longPressToSelect: "Gedrückt halten, um Auswahlmodus zu öffnen.",select: "Auswählen",@@ -11816,8 +11816,8 @@ vy = {};//#endregion//#region node_modules/react-aria/dist/private/intl/grid/el-GR.mjs-var yy = {};-yy = {+var wy = {};+wy = {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: "Επιλογή",@@ -11831,8 +11831,8 @@ yy = {};//#endregion//#region node_modules/react-aria/dist/private/intl/grid/en-US.mjs-var by = {};-by = {+var Ty = {};+Ty = {deselectedItem: (e) => `${e.item} not selected.`,select: "Select",selectedCount: (e, t) => `${t.plural(e.count, {@@ -11846,8 +11846,8 @@ by = {};//#endregion//#region node_modules/react-aria/dist/private/intl/grid/es-ES.mjs-var xy = {};-xy = {+var Ey = {};+Ey = {deselectedItem: (e) => `${e.item} no seleccionado.`,longPressToSelect: "Mantenga pulsado para abrir el modo de selección.",select: "Seleccionar",@@ -11861,8 +11861,8 @@ xy = {};//#endregion//#region node_modules/react-aria/dist/private/intl/grid/et-EE.mjs-var Sy = {};-Sy = {+var Dy = {};+Dy = {deselectedItem: (e) => `${e.item} pole valitud.`,longPressToSelect: "Valikurežiimi sisenemiseks vajutage pikalt.",select: "Vali",@@ -11876,8 +11876,8 @@ Sy = {};//#endregion//#region node_modules/react-aria/dist/private/intl/grid/fi-FI.mjs-var Cy = {};-Cy = {+var Oy = {};+Oy = {deselectedItem: (e) => `Kohdetta ${e.item} ei valittu.`,longPressToSelect: "Siirry valintatilaan painamalla pitkään.",select: "Valitse",@@ -11891,8 +11891,8 @@ Cy = {};//#endregion//#region node_modules/react-aria/dist/private/intl/grid/fr-FR.mjs-var wy = {};-wy = {+var ky = {};+ky = {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",@@ -11906,8 +11906,8 @@ wy = {};//#endregion//#region node_modules/react-aria/dist/private/intl/grid/he-IL.mjs-var Ty = {};-Ty = {+var Ay = {};+Ay = {deselectedItem: (e) => `${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,longPressToSelect: "הקשה ארוכה לכניסה למצב בחירה.",select: "בחר",@@ -11921,8 +11921,8 @@ Ty = {};//#endregion//#region node_modules/react-aria/dist/private/intl/grid/hr-HR.mjs-var Ey = {};-Ey = {+var jy = {};+jy = {deselectedItem: (e) => `Stavka ${e.item} nije odabrana.`,longPressToSelect: "Dugo pritisnite za ulazak u način odabira.",select: "Odaberite",@@ -11936,8 +11936,8 @@ Ey = {};//#endregion//#region node_modules/react-aria/dist/private/intl/grid/hu-HU.mjs-var Dy = {};-Dy = {+var My = {};+My = {deselectedItem: (e) => `${e.item} nincs kijel\xf6lve.`,longPressToSelect: "Nyomja hosszan a kijelöléshez.",select: "Kijelölés",@@ -11951,8 +11951,8 @@ Dy = {};//#endregion//#region node_modules/react-aria/dist/private/intl/grid/it-IT.mjs-var Oy = {};-Oy = {+var Ny = {};+Ny = {deselectedItem: (e) => `${e.item} non selezionato.`,longPressToSelect: "Premi a lungo per passare alla modalità di selezione.",select: "Seleziona",@@ -11966,8 +11966,8 @@ Oy = {};//#endregion//#region node_modules/react-aria/dist/private/intl/grid/ja-JP.mjs-var ky = {};-ky = {+var Py = {};+Py = {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: "選択",@@ -11981,8 +11981,8 @@ ky = {};//#endregion//#region node_modules/react-aria/dist/private/intl/grid/ko-KR.mjs-var Ay = {};-Ay = {+var Fy = {};+Fy = {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: "선택",@@ -11996,8 +11996,8 @@ Ay = {};//#endregion//#region node_modules/react-aria/dist/private/intl/grid/lt-LT.mjs-var jy = {};-jy = {+var Iy = {};+Iy = {deselectedItem: (e) => `${e.item} nepasirinkta.`,longPressToSelect: "Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",select: "Pasirinkti",@@ -12011,8 +12011,8 @@ jy = {};//#endregion//#region node_modules/react-aria/dist/private/intl/grid/lv-LV.mjs-var My = {};-My = {+var Ly = {};+Ly = {deselectedItem: (e) => `Vienums ${e.item} nav atlas\u{12B}ts.`,longPressToSelect: "Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",select: "Atlasīt",@@ -12026,8 +12026,8 @@ My = {};//#endregion//#region node_modules/react-aria/dist/private/intl/grid/nb-NO.mjs-var Ny = {};-Ny = {+var Ry = {};+Ry = {deselectedItem: (e) => `${e.item} er ikke valgt.`,longPressToSelect: "Bruk et langt trykk for å gå inn i valgmodus.",select: "Velg",@@ -12041,8 +12041,8 @@ Ny = {};//#endregion//#region node_modules/react-aria/dist/private/intl/grid/nl-NL.mjs-var Py = {};-Py = {+var zy = {};+zy = {deselectedItem: (e) => `${e.item} niet geselecteerd.`,longPressToSelect: "Druk lang om de selectiemodus te openen.",select: "Selecteren",@@ -12056,8 +12056,8 @@ Py = {};//#endregion//#region node_modules/react-aria/dist/private/intl/grid/pl-PL.mjs-var Fy = {};-Fy = {+var By = {};+By = {deselectedItem: (e) => `Nie zaznaczono ${e.item}.`,longPressToSelect: "Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",select: "Zaznacz",@@ -12071,8 +12071,8 @@ Fy = {};//#endregion//#region node_modules/react-aria/dist/private/intl/grid/pt-BR.mjs-var Iy = {};-Iy = {+var Vy = {};+Vy = {deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,longPressToSelect: "Mantenha pressionado para entrar no modo de seleção.",select: "Selecionar",@@ -12086,8 +12086,8 @@ Iy = {};//#endregion//#region node_modules/react-aria/dist/private/intl/grid/pt-PT.mjs-var Ly = {};-Ly = {+var Hy = {};+Hy = {deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,longPressToSelect: "Prima continuamente para entrar no modo de seleção.",select: "Selecionar",@@ -12101,8 +12101,8 @@ Ly = {};//#endregion//#region node_modules/react-aria/dist/private/intl/grid/ro-RO.mjs-var Ry = {};-Ry = {+var Uy = {};+Uy = {deselectedItem: (e) => `${e.item} neselectat.`,longPressToSelect: "Apăsați lung pentru a intra în modul de selectare.",select: "Selectare",@@ -12116,8 +12116,8 @@ Ry = {};//#endregion//#region node_modules/react-aria/dist/private/intl/grid/ru-RU.mjs-var zy = {};-zy = {+var Wy = {};+Wy = {deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,longPressToSelect: "Нажмите и удерживайте для входа в режим выбора.",select: "Выбрать",@@ -12131,8 +12131,8 @@ zy = {};//#endregion//#region node_modules/react-aria/dist/private/intl/grid/sk-SK.mjs-var By = {};-By = {+var Gy = {};+Gy = {deselectedItem: (e) => `Nevybrat\xe9 polo\u{17E}ky: ${e.item}.`,longPressToSelect: "Dlhším stlačením prejdite do režimu výberu.",select: "Vybrať",@@ -12146,8 +12146,8 @@ By = {};//#endregion//#region node_modules/react-aria/dist/private/intl/grid/sl-SI.mjs-var Vy = {};-Vy = {+var Ky = {};+Ky = {deselectedItem: (e) => `Element ${e.item} ni izbran.`,longPressToSelect: "Za izbirni način pritisnite in dlje časa držite.",select: "Izberite",@@ -12161,8 +12161,8 @@ Vy = {};//#endregion//#region node_modules/react-aria/dist/private/intl/grid/sr-SP.mjs-var Hy = {};-Hy = {+var qy = {};+qy = {deselectedItem: (e) => `${e.item} nije izabrano.`,longPressToSelect: "Dugo pritisnite za ulazak u režim biranja.",select: "Izaberite",@@ -12176,8 +12176,8 @@ Hy = {};//#endregion//#region node_modules/react-aria/dist/private/intl/grid/sv-SE.mjs-var Uy = {};-Uy = {+var Jy = {};+Jy = {deselectedItem: (e) => `${e.item} ej markerat.`,longPressToSelect: "Tryck länge när du vill öppna väljarläge.",select: "Markera",@@ -12191,8 +12191,8 @@ Uy = {};//#endregion//#region node_modules/react-aria/dist/private/intl/grid/tr-TR.mjs-var Wy = {};-Wy = {+var Yy = {};+Yy = {deselectedItem: (e) => `${e.item} se\xe7ilmedi.`,longPressToSelect: "Seçim moduna girmek için uzun basın.",select: "Seç",@@ -12206,8 +12206,8 @@ Wy = {};//#endregion//#region node_modules/react-aria/dist/private/intl/grid/uk-UA.mjs-var Gy = {};-Gy = {+var Xy = {};+Xy = {deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,longPressToSelect: "Виконайте довге натиснення, щоб перейти в режим вибору.",select: "Вибрати",@@ -12221,8 +12221,8 @@ Gy = {};//#endregion//#region node_modules/react-aria/dist/private/intl/grid/zh-CN.mjs-var Ky = {};-Ky = {+var Zy = {};+Zy = {deselectedItem: (e) => `\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,longPressToSelect: "长按以进入选择模式。",select: "选择",@@ -12236,8 +12236,8 @@ Ky = {};//#endregion//#region node_modules/react-aria/dist/private/intl/grid/zh-TW.mjs-var qy = {};-qy = {+var Qy = {};+Qy = {deselectedItem: (e) => `\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,longPressToSelect: "長按以進入選擇模式。",select: "選取",@@ -12251,55 +12251,55 @@ qy = {};//#endregion//#region node_modules/react-aria/dist/private/grid/intlStrings.mjs-var Jy = {};-Jy = {- "ar-AE": my,- "bg-BG": hy,- "cs-CZ": gy,- "da-DK": _y,- "de-DE": vy,- "el-GR": yy,- "en-US": by,- "es-ES": xy,- "et-EE": Sy,- "fi-FI": Cy,- "fr-FR": wy,- "he-IL": Ty,- "hr-HR": Ey,- "hu-HU": Dy,- "it-IT": Oy,- "ja-JP": ky,- "ko-KR": Ay,- "lt-LT": jy,- "lv-LV": My,- "nb-NO": Ny,- "nl-NL": Py,- "pl-PL": Fy,- "pt-BR": Iy,- "pt-PT": Ly,- "ro-RO": Ry,- "ru-RU": zy,- "sk-SK": By,- "sl-SI": Vy,- "sr-SP": Hy,- "sv-SE": Uy,- "tr-TR": Wy,- "uk-UA": Gy,- "zh-CN": Ky,- "zh-TW": qy+var $y = {};+$y = {+ "ar-AE": yy,+ "bg-BG": by,+ "cs-CZ": xy,+ "da-DK": Sy,+ "de-DE": Cy,+ "el-GR": wy,+ "en-US": Ty,+ "es-ES": Ey,+ "et-EE": Dy,+ "fi-FI": Oy,+ "fr-FR": ky,+ "he-IL": Ay,+ "hr-HR": jy,+ "hu-HU": My,+ "it-IT": Ny,+ "ja-JP": Py,+ "ko-KR": Fy,+ "lt-LT": Iy,+ "lv-LV": Ly,+ "nb-NO": Ry,+ "nl-NL": zy,+ "pl-PL": By,+ "pt-BR": Vy,+ "pt-PT": Hy,+ "ro-RO": Uy,+ "ru-RU": Wy,+ "sk-SK": Gy,+ "sl-SI": Ky,+ "sr-SP": qy,+ "sv-SE": Jy,+ "tr-TR": Yy,+ "uk-UA": Xy,+ "zh-CN": Zy,+ "zh-TW": Qy};//#endregion//#region node_modules/react-aria/dist/private/grid/useGridSelectionAnnouncement.mjs-function Yee(e) {+function Kee(e) {return e && e.__esModule ? e.default : e;}-function Xee(e, t) {- let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = hg(Yee(Jy), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, I.useRef)(i), o = (0, I.useCallback)(() => {+function qee(e, t) {+ let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = bg(Kee($y), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, I.useRef)(i), o = (0, I.useCallback)(() => {if (!t.selectionManager.isFocused || i === a.current) {a.current = i;return;}- let e = Yy(i, a.current), o = Yy(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];+ let e = eb(i, a.current), o = eb(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)) {@@ -12319,7 +12319,7 @@ function Xee(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 && g_(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 && m_(c.join(" ")), a.current = i;}, [i,t.selectionManager.selectedKeys,@@ -12330,7 +12330,7 @@ function Xee(e, t) {n,r]);- v_(() => {+ h_(() => {if (t.selectionManager.isFocused) o();else {let e = requestAnimationFrame(o);@@ -12338,7 +12338,7 @@ function Xee(e, t) {}}, [i, t.selectionManager.isFocused]);}-function Yy(e, t) {+function eb(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);@@ -12346,13 +12346,13 @@ function Yy(e, t) {}//#endregion//#region node_modules/react-aria/dist/private/focus/useHasTabbableChild.mjs-function Xy(e, t) {+function tb(e, t) {let n = t?.isDisabled, [r, i] = (0, I.useState)(!1);- return bp(() => {+ return Sp(() => {if (e?.current && !n) {let t = () => {if (e.current) {- let t = u_(e.current, { tabbable: !0 });+ let t = c_(e.current, { tabbable: !0 });i(!!t.nextNode());}};@@ -12371,12 +12371,12 @@ function Xy(e, t) {}//#endregion//#region node_modules/react-aria/dist/private/grid/useHighlightSelectionDescription.mjs-function Zee(e) {+function Jee(e) {return e && e.__esModule ? e.default : e;}-function Qee(e) {- let t = hg(Zee(Jy), "@react-aria/grid"), n = Em(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;- return T_((0, I.useMemo)(() => {+function Yee(e) {+ let t = bg(Jee($y), "@react-aria/grid"), n = Om(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;+ return S_((0, I.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;}, [@@ -12389,11 +12389,11 @@ function Qee(e) {}//#endregion//#region node_modules/react-aria/dist/private/selection/useSelectableList.mjs-function Zy(e) {- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = ty({+function nb(e) {+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = oy({usage: "search",sensitivity: "base"- }), l = t.disabledBehavior, u = (0, I.useMemo)(() => a || new rv({+ }), l = t.disabledBehavior, u = (0, I.useMemo)(() => a || new iv({collection: n,disabledKeys: r,disabledBehavior: l,@@ -12410,7 +12410,7 @@ function Zy(e) {c,l,s- ]), { collectionProps: d } = Gv({+ ]), { collectionProps: d } = Xv({...e,ref: i,selectionManager: t,@@ -12420,11 +12420,11 @@ function Zy(e) {}//#endregion//#region node_modules/react-aria/dist/private/selection/useSelectableItem.mjs-function Qy(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 = Vp();- t = Hm(t);+function rb(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 = Up();+ t = Wm(t);let p = (e) => {- if (e.pointerType === "keyboard" && $_(e)) n.toggleSelection(r);+ if (e.pointerType === "keyboard" && ev(e)) n.toggleSelection(r);else {if (n.selectionMode === "none") return;if (n.isLink(r)) {@@ -12435,11 +12435,11 @@ function Qy(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 && (qh(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 && (Yh(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);}};(0, I.useEffect)(() => {- r === n.focusedKey && n.isFocused && (o ? Uh(i.current) : s ? s() : sp() !== i.current && i.current && Fm(i.current));+ r === n.focusedKey && n.isFocused && (o ? Gh(i.current) : s ? s() : lp() !== i.current && i.current && Lm(i.current));}, [i,r,@@ -12467,22 +12467,22 @@ function Qy(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 || eb(e.key)) && p(e);+ C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || ab(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" && !$y(e.key)) return;+ if (e.pointerType === "keyboard" && !ib(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 || eb(e.key))) && p(e);+ C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || ab(e.key))) && p(e);}, k.onPress = (e) => {- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && $y(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 && ib(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));});- let A = Fee(n.collection);+ let A = Iee(n.collection);if (m["data-collection"] = A, m["data-key"] = r, k.preventFocusOnPress = o, o && (k = H(k, {onPressStart(e) {e.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));@@ -12497,50 +12497,50 @@ function Qy(e) {"onPress","onPressUp","onClick"- ]) D[e] && (k[e] = Im(k[e], D[e]));- let { pressProps: j, isPressed: M } = Ag(k), N = x ? (e) => {+ ]) D[e] && (k[e] = Rm(k[e], D[e]));+ let { pressProps: j, isPressed: M } = Fg(k), N = x ? (e) => {C.current === "mouse" && (e.stopPropagation(), e.preventDefault(), O(e));- } : void 0, { longPressProps: P } = zv({+ } : void 0, { longPressProps: ee } = Vv({isDisabled: !w,onLongPress(e) {e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));}- }), ee = (e) => {+ }), te = (e) => {C.current === "touch" && T.current && e.preventDefault();- }, F = d !== "none" && n.isLink(r) ? (e) => {- Up.isOpening || e.preventDefault();- } : void 0, te = H(m, v || b || o && !c ? j : {}, w ? P : {}, {+ }, P = d !== "none" && n.isLink(r) ? (e) => {+ Gp.isOpening || e.preventDefault();+ } : void 0, ne = H(m, v || b || o && !c ? j : {}, w ? ee : {}, {onDoubleClick: N,- onDragStartCapture: ee,- onClick: F,+ onDragStartCapture: te,+ onClick: P,id: t- }, o ? { onMouseDown: (e) => e.preventDefault() } : void 0), ne = (e) => {+ }, o ? { onMouseDown: (e) => e.preventDefault() } : void 0), F = (e) => {let t = e;for (; t && t !== i.current;) {let e = t.getAttribute("data-collection");if (e != null) return e !== A;t = t.parentElement;}- return vp(e);- }, re = te.onPointerDown;- te.onPointerDown = (e) => {+ return bp(e);+ }, re = ne.onPointerDown;+ ne.onPointerDown = (e) => {let t = V(e);- if (t && t !== i.current && ne(t)) {+ if (t && t !== i.current && F(t)) {e.stopPropagation();return;}re?.(e);};- let ie = te.onMouseDown;- return te.onMouseDown = (e) => {+ let ie = ne.onMouseDown;+ return ne.onMouseDown = (e) => {let t = V(e);- if (t && t !== i.current && ne(t)) {+ if (t && t !== i.current && F(t)) {e.stopPropagation();return;}ie?.(e);}, {- itemProps: te,+ itemProps: ne,isPressed: M,isSelected: n.isSelected(r),isFocused: n.isFocused && n.focusedKey === r,@@ -12549,22 +12549,22 @@ function Qy(e) {hasAction: S};}-function $y(e) {+function ib(e) {return e === "Enter";}-function eb(e) {+function ab(e) {return e === " ";}//#endregion//#region node_modules/react-aria/dist/private/grid/useGridSelectionCheckbox.mjs-function $ee(e) {+function Xee(e) {return e && e.__esModule ? e.default : e;}-function ete(e, t) {- let { key: n } = e, r = t.selectionManager, i = Hm(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);+function Zee(e, t) {+ let { key: n } = e, r = t.selectionManager, i = Wm(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);return { checkboxProps: {id: i,- "aria-label": hg($ee(Jy), "@react-aria/grid").format("select"),+ "aria-label": bg(Xee($y), "@react-aria/grid").format("select"),isSelected: o,isDisabled: a,onChange: () => r.toggleSelection(n)@@ -12572,22 +12572,22 @@ function ete(e, t) {}//#endregion//#region node_modules/react-aria/dist/private/listbox/useListBox.mjs-function tte(e, t, n) {- let r = _g(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");+function Qee(e, t, n) {+ let r = Sg(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 } = Zy({+ let { listProps: s } = nb({...e,ref: n,selectionManager: t.selectionManager,collection: t.collection,disabledKeys: t.disabledKeys,linkBehavior: o- }), { focusWithinProps: c } = V_({+ }), { focusWithinProps: c } = R_({onFocusWithin: e.onFocus,onBlurWithin: e.onBlur,onFocusWithinChange: e.onFocusChange- }), l = Hm(e.id);- Q_.set(t, {+ }), l = Wm(e.id);+ $_.set(t, {id: l,shouldUseVirtualFocus: e.shouldUseVirtualFocus,shouldSelectOnPressUp: e.shouldSelectOnPressUp,@@ -12597,7 +12597,7 @@ function tte(e, t, n) {linkBehavior: o,UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior});- let { labelProps: u, fieldProps: d } = z_({+ let { labelProps: u, fieldProps: d } = I_({...e,id: l,labelElementType: "span"@@ -12613,8 +12613,8 @@ function tte(e, t, n) {}//#endregion//#region node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs-function nte(e) {- let { heading: t, "aria-label": n } = e, r = Hm();+function $ee(e) {+ let { heading: t, "aria-label": n } = e, r = Wm();return {itemProps: { role: "presentation" },headingProps: t ? {@@ -12633,8 +12633,8 @@ function nte(e) {}//#endregion//#region node_modules/react-aria/dist/private/listbox/useOption.mjs-function rte(e, t, n) {- let { key: r } = e, i = Q_.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 = Wm(), f = Wm(), p = {+function ete(e, t, n) {+ let { key: r } = e, i = $_.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 = Km(), f = Km(), p = {role: "option","aria-disabled": a || void 0,"aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,@@ -12644,9 +12644,9 @@ function rte(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"] = $v(t.collection);+ p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = iy(t.collection);}- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Nee(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = Qy({+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Pee(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = rb({selectionManager: t.selectionManager,key: r,ref: n,@@ -12655,18 +12655,18 @@ function rte(e, t, n) {isVirtualized: u,shouldUseVirtualFocus: l,isDisabled: a,- onAction: h || m?.props?.onAction ? Im(m?.props?.onAction, h) : void 0,+ onAction: h || m?.props?.onAction ? Rm(m?.props?.onAction, h) : void 0,linkBehavior: i?.linkBehavior,UNSTABLE_itemBehavior: i?.UNSTABLE_itemBehavior,id: g- }), { hoverProps: S } = fy({+ }), { hoverProps: S } = _y({isDisabled: a || !c,onHoverStart() {- Cm() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));+ Tm() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));}- }), C = _g(m?.props);+ }), C = Sg(m?.props);delete C.id;- let w = qp(m?.props);+ let w = Yp(m?.props);return {optionProps: {...p,@@ -12676,7 +12676,7 @@ function rte(e, t, n) {labelProps: { id: d },descriptionProps: { id: f },isFocused: y,- isFocusVisible: y && t.selectionManager.isFocused && Cm(),+ isFocusVisible: y && t.selectionManager.isFocused && Tm(),isSelected: o,isDisabled: a,isPressed: v,@@ -12686,13 +12686,13 @@ function rte(e, t, n) {}//#endregion//#region node_modules/react-aria/dist/private/menu/utils.mjs-var tb = /* @__PURE__ */ new WeakMap();+var ob = /* @__PURE__ */ new WeakMap();//#endregion//#region node_modules/react-aria/dist/private/menu/useMenu.mjs-function ite(e, t, n) {+function tte(e, t, n) {let { shouldFocusWrap: r = !0, onKeyDown: i, onKeyUp: a, ...o } = e;!e["aria-label"] && e["aria-labelledby"];- let s = _g(e, { labelable: !0 }), { listProps: c } = Zy({+ let s = Sg(e, { labelable: !0 }), { listProps: c } = nb({...o,ref: n,selectionManager: t.selectionManager,@@ -12701,7 +12701,7 @@ function ite(e, t, n) {shouldFocusWrap: r,linkBehavior: "override"});- return tb.set(t, {+ return ob.set(t, {onClose: e.onClose,onAction: e.onAction,shouldUseVirtualFocus: e.shouldUseVirtualFocus@@ -12718,42 +12718,42 @@ function ite(e, t, n) {}//#endregion//#region node_modules/react-aria/dist/private/menu/useMenuItem.mjs-function ate(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 = tb.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = Vp(), M = () => {+function nte(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 = ob.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = Up(), M = () => {if (!w && (k?.props?.onAction ? k.props.onAction() : e.onAction && e.onAction(i), O.onAction)) {let e = O.onAction;e(i, k?.value);}}, N = "menuitem";w || (C.selectionMode === "single" ? N = "menuitemradio" : C.selectionMode === "multiple" && (N = "menuitemcheckbox"));- let P = Wm(), ee = Wm(), F = Wm(), te = {+ let ee = Km(), te = Km(), P = Km(), ne = {id: r,"aria-disabled": E || void 0,role: N,"aria-label": e["aria-label"],- "aria-labelledby": P,+ "aria-labelledby": ee,"aria-describedby": [e["aria-describedby"],- ee,- F+ te,+ P].filter(Boolean).join(" ") || void 0,"aria-controls": e["aria-controls"],"aria-haspopup": c,"aria-expanded": e["aria-expanded"]};- if (C.selectionMode !== "none" && !w && (te["aria-checked"] = D), s) {+ if (C.selectionMode !== "none" && !w && (ne["aria-checked"] = D), s) {let e = Number(k?.index);- te["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, te["aria-setsize"] = $v(t.collection);+ ne["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, ne["aria-setsize"] = iy(t.collection);}- let ne = (0, I.useRef)(!1), re = (e) => {- f?.(e), ne.current = e;+ let F = (0, I.useRef)(!1), re = (e) => {+ f?.(e), F.current = e;}, ie = (0, I.useRef)(null), ae = (e) => {- e.pointerType !== "keyboard" && (ie.current = { pointerType: e.pointerType }), e.pointerType === "mouse" && (ne.current || e.target.click()), u?.(e);+ e.pointerType !== "keyboard" && (ie.current = { pointerType: e.pointerType }), e.pointerType === "mouse" && (F.current || e.target.click()), u?.(e);}, oe = (e) => {- m?.(e), M(), Jp(e, j, k.props.href, k?.props.routerOptions);+ m?.(e), M(), Xp(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 } = Qy({+ }, { itemProps: se, isFocused: ce } = rb({id: r,selectionManager: C,key: i,@@ -12762,27 +12762,27 @@ function ate(e, t, n) {allowsDifferentPressOrigin: !0,linkBehavior: "none",shouldUseVirtualFocus: O.shouldUseVirtualFocus- }), { pressProps: L, isPressed: le } = Ag({+ }), { pressProps: le, isPressed: ue } = Fg({onPressStart: l,onPress: d,onPressUp: ae,onPressChange: re,onPressEnd: p,isDisabled: E- }), { hoverProps: ue } = fy({+ }), { hoverProps: L } = _y({isDisabled: E,onHoverStart(e) {- !Cm() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);+ !Tm() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);},onHoverChange: g,onHoverEnd: _- }), { keyboardProps: R } = lh({+ }), { keyboardProps: R } = dh({shortcuts: {" ": (e) => {ie.current = {pointerType: "keyboard",key: " "- }, V(e).click(), Tm("keyboard");+ }, V(e).click(), Dm("keyboard");},Enter: (e) => {ie.current = {@@ -12791,10 +12791,10 @@ function ate(e, t, n) {};let t = V(e);if (t.tagName !== "A") {- t.click(), Tm("keyboard");+ t.click(), Dm("keyboard");return;}- return Tm("keyboard"), {+ return Dm("keyboard"), {shouldPreventDefault: !1,shouldContinuePropagation: !1};@@ -12802,37 +12802,37 @@ function ate(e, t, n) {},onKeyDown: v,onKeyUp: y- }), { focusableProps: z } = mh({+ }), { focusableProps: z } = gh({onBlur: S,onFocus: b,onFocusChange: x- }, n), de = _g(k?.props);+ }, n), de = Sg(k?.props);delete de.id;- let fe = qp(k?.props);+ let fe = Yp(k?.props);return {menuItemProps: {- ...te,+ ...ne,...H(de, fe, w ? {onFocus: se.onFocus,"data-collection": se["data-collection"],"data-key": se["data-key"]- } : se, L, ue, R, z, O.shouldUseVirtualFocus || w ? { onMouseDown: (e) => e.preventDefault() } : void 0, E ? void 0 : { onClick: oe }),+ } : se, le, L, R, z, O.shouldUseVirtualFocus || w ? { onMouseDown: (e) => e.preventDefault() } : void 0, E ? void 0 : { onClick: oe }),tabIndex: se.tabIndex != null && T && !O.shouldUseVirtualFocus ? -1 : se.tabIndex},- labelProps: { id: P },- descriptionProps: { id: ee },- keyboardShortcutProps: { id: F },+ labelProps: { id: ee },+ descriptionProps: { id: te },+ keyboardShortcutProps: { id: P },isFocused: ce,- isFocusVisible: ce && C.isFocused && Cm() && !T,+ isFocusVisible: ce && C.isFocused && Tm() && !T,isSelected: D,- isPressed: le,+ isPressed: ue,isDisabled: E};}//#endregion//#region node_modules/react-aria/dist/private/menu/useMenuSection.mjs-function ote(e) {- let { heading: t, "aria-label": n } = e, r = Hm();+function rte(e) {+ let { heading: t, "aria-label": n } = e, r = Wm();return {itemProps: { role: "presentation" },headingProps: t ? {@@ -12848,15 +12848,15 @@ function ote(e) {}//#endregion//#region node_modules/react-aria/dist/private/utils/useResizeObserver.mjs-function ste() {+function ite() {return window.ResizeObserver !== void 0;}-function nb(e) {- let { ref: t, box: n, onResize: r } = e, i = Zh(r);+function sb(e) {+ let { ref: t, box: n, onResize: r } = e, i = $h(r);(0, I.useEffect)(() => {let e = t?.current;if (e) {- if (ste()) {+ if (ite()) {let t = new window.ResizeObserver((e) => {e.length && i();});@@ -12872,189 +12872,189 @@ function nb(e) {}//#endregion//#region node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs-var rb = {};-rb = { dismiss: "تجاهل" };+var cb = {};+cb = { dismiss: "تجاهل" };//#endregion//#region node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs-var ib = {};-ib = { dismiss: "Отхвърляне" };+var lb = {};+lb = { dismiss: "Отхвърляне" };//#endregion//#region node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs-var ab = {};-ab = { dismiss: "Odstranit" };+var ub = {};+ub = { dismiss: "Odstranit" };//#endregion//#region node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs-var ob = {};-ob = { dismiss: "Luk" };+var db = {};+db = { dismiss: "Luk" };//#endregion//#region node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs-var sb = {};-sb = { dismiss: "Schließen" };+var fb = {};+fb = { dismiss: "Schließen" };//#endregion//#region node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs-var cb = {};-cb = { dismiss: "Απόρριψη" };+var pb = {};+pb = { dismiss: "Απόρριψη" };//#endregion//#region node_modules/react-aria/dist/private/intl/overlays/en-US.mjs-var lb = {};-lb = { dismiss: "Dismiss" };+var mb = {};+mb = { dismiss: "Dismiss" };//#endregion//#region node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs-var ub = {};-ub = { dismiss: "Descartar" };+var hb = {};+hb = { dismiss: "Descartar" };//#endregion//#region node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs-var db = {};-db = { dismiss: "Lõpeta" };+var gb = {};+gb = { dismiss: "Lõpeta" };//#endregion//#region node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs-var fb = {};-fb = { dismiss: "Hylkää" };+var _b = {};+_b = { dismiss: "Hylkää" };//#endregion//#region node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs-var pb = {};-pb = { dismiss: "Rejeter" };+var vb = {};+vb = { dismiss: "Rejeter" };//#endregion//#region node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs-var mb = {};-mb = { dismiss: "התעלם" };+var yb = {};+yb = { dismiss: "התעלם" };//#endregion//#region node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs-var hb = {};-hb = { dismiss: "Odbaci" };+var bb = {};+bb = { dismiss: "Odbaci" };//#endregion//#region node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs-var gb = {};-gb = { dismiss: "Elutasítás" };+var xb = {};+xb = { dismiss: "Elutasítás" };//#endregion//#region node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs-var _b = {};-_b = { dismiss: "Ignora" };+var Sb = {};+Sb = { dismiss: "Ignora" };//#endregion//#region node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs-var vb = {};-vb = { dismiss: "閉じる" };+var Cb = {};+Cb = { dismiss: "閉じる" };//#endregion//#region node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs-var yb = {};-yb = { dismiss: "무시" };+var wb = {};+wb = { dismiss: "무시" };//#endregion//#region node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs-var bb = {};-bb = { dismiss: "Atmesti" };+var Tb = {};+Tb = { dismiss: "Atmesti" };//#endregion//#region node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs-var xb = {};-xb = { dismiss: "Nerādīt" };+var Eb = {};+Eb = { dismiss: "Nerādīt" };//#endregion//#region node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs-var Sb = {};-Sb = { dismiss: "Lukk" };+var Db = {};+Db = { dismiss: "Lukk" };//#endregion//#region node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs-var Cb = {};-Cb = { dismiss: "Negeren" };+var Ob = {};+Ob = { dismiss: "Negeren" };//#endregion//#region node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs-var wb = {};-wb = { dismiss: "Zignoruj" };+var kb = {};+kb = { dismiss: "Zignoruj" };//#endregion//#region node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs-var Tb = {};-Tb = { dismiss: "Descartar" };+var Ab = {};+Ab = { dismiss: "Descartar" };//#endregion//#region node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs-var Eb = {};-Eb = { dismiss: "Dispensar" };+var jb = {};+jb = { dismiss: "Dispensar" };//#endregion//#region node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs-var Db = {};-Db = { dismiss: "Revocare" };+var Mb = {};+Mb = { dismiss: "Revocare" };//#endregion//#region node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs-var Ob = {};-Ob = { dismiss: "Пропустить" };+var Nb = {};+Nb = { dismiss: "Пропустить" };//#endregion//#region node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs-var kb = {};-kb = { dismiss: "Zrušiť" };+var Pb = {};+Pb = { dismiss: "Zrušiť" };//#endregion//#region node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs-var Ab = {};-Ab = { dismiss: "Opusti" };+var Fb = {};+Fb = { dismiss: "Opusti" };//#endregion//#region node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs-var jb = {};-jb = { dismiss: "Odbaci" };+var Ib = {};+Ib = { dismiss: "Odbaci" };//#endregion//#region node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs-var Mb = {};-Mb = { dismiss: "Avvisa" };+var Lb = {};+Lb = { dismiss: "Avvisa" };//#endregion//#region node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs-var Nb = {};-Nb = { dismiss: "Kapat" };+var Rb = {};+Rb = { dismiss: "Kapat" };//#endregion//#region node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs-var Pb = {};-Pb = { dismiss: "Скасувати" };+var zb = {};+zb = { dismiss: "Скасувати" };//#endregion//#region node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs-var Fb = {};-Fb = { dismiss: "取消" };+var Bb = {};+Bb = { dismiss: "取消" };//#endregion//#region node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs-var Ib = {};-Ib = { dismiss: "關閉" };+var Vb = {};+Vb = { dismiss: "關閉" };//#endregion//#region node_modules/react-aria/dist/private/overlays/intlStrings.mjs-var Lb = {};-Lb = {- "ar-AE": rb,- "bg-BG": ib,- "cs-CZ": ab,- "da-DK": ob,- "de-DE": sb,- "el-GR": cb,- "en-US": lb,- "es-ES": ub,- "et-EE": db,- "fi-FI": fb,- "fr-FR": pb,- "he-IL": mb,- "hr-HR": hb,- "hu-HU": gb,- "it-IT": _b,- "ja-JP": vb,- "ko-KR": yb,- "lt-LT": bb,- "lv-LV": xb,- "nb-NO": Sb,- "nl-NL": Cb,- "pl-PL": wb,- "pt-BR": Tb,- "pt-PT": Eb,- "ro-RO": Db,- "ru-RU": Ob,- "sk-SK": kb,- "sl-SI": Ab,- "sr-SP": jb,- "sv-SE": Mb,- "tr-TR": Nb,- "uk-UA": Pb,- "zh-CN": Fb,- "zh-TW": Ib+var Hb = {};+Hb = {+ "ar-AE": cb,+ "bg-BG": lb,+ "cs-CZ": ub,+ "da-DK": db,+ "de-DE": fb,+ "el-GR": pb,+ "en-US": mb,+ "es-ES": hb,+ "et-EE": gb,+ "fi-FI": _b,+ "fr-FR": vb,+ "he-IL": yb,+ "hr-HR": bb,+ "hu-HU": xb,+ "it-IT": Sb,+ "ja-JP": Cb,+ "ko-KR": wb,+ "lt-LT": Tb,+ "lv-LV": Eb,+ "nb-NO": Db,+ "nl-NL": Ob,+ "pl-PL": kb,+ "pt-BR": Ab,+ "pt-PT": jb,+ "ro-RO": Mb,+ "ru-RU": Nb,+ "sk-SK": Pb,+ "sl-SI": Fb,+ "sr-SP": Ib,+ "sv-SE": Lb,+ "tr-TR": Rb,+ "uk-UA": zb,+ "zh-CN": Bb,+ "zh-TW": Vb};//#endregion//#region node_modules/react-aria/dist/private/overlays/DismissButton.mjs-function cte(e) {+function Ub(e) {return e && e.__esModule ? e.default : e;}-function Rb(e) {- let { onDismiss: t, ...n } = e, r = $h(n, hg(cte(Lb), "@react-aria/overlays").format("dismiss")), i = () => {+function Wb(e) {+ let { onDismiss: t, ...n } = e, r = tg(n, bg(Ub(Hb), "@react-aria/overlays").format("dismiss")), i = () => {t && t();};- return /*#__PURE__*/ I.createElement(q_, null, /*#__PURE__*/ I.createElement("button", {+ return /*#__PURE__*/ I.createElement(K_, null, /*#__PURE__*/ I.createElement("button", {...r,tabIndex: -1,onClick: i,@@ -13066,38 +13066,38 @@ function Rb(e) {}//#endregion//#region node_modules/react-aria/dist/private/overlays/useOverlay.mjs-var zb = [];-function Bb(e, t) {+var Gb = [];+function Kb(e, t) {let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, I.useRef)(void 0);(0, I.useEffect)(() => {- if (i && !zb.includes(t)) return zb.push(t), () => {- let e = zb.indexOf(t);- e >= 0 && zb.splice(e, 1);+ if (i && !Gb.includes(t)) return Gb.push(t), () => {+ let e = Gb.indexOf(t);+ e >= 0 && Gb.splice(e, 1);};}, [i, t]);let l = () => {- zb[zb.length - 1] === t && n && n();+ Gb[Gb.length - 1] === t && n && n();}, u = (e) => {- let n = zb[zb.length - 1];+ let n = Gb[Gb.length - 1];c.current = n, (!s || s(V(e))) && n === t && e.stopPropagation();}, d = (e) => {- (!s || s(V(e))) && (zb[zb.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;- }, { keyboardProps: f } = lh({ shortcuts: { Escape: () => {+ (!s || s(V(e))) && (Gb[Gb.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;+ }, { keyboardProps: f } = dh({ shortcuts: { Escape: () => {if (!o) {l();return;}return !1;} } });- Jee({+ Gee({ref: t,onInteractOutside: a && i ? d : void 0,onInteractOutsideStart: u});- let { focusWithinProps: p } = V_({+ let { focusWithinProps: p } = R_({isDisabled: !r,onBlurWithin: (e) => {- !e.relatedTarget || e_(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();+ !e.relatedTarget || vee(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();}});return {@@ -13110,26 +13110,26 @@ function Bb(e, t) {}//#endregion//#region node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs-var Vb = typeof document < "u" && window.visualViewport, Hb = 0, Ub;-function Wb(e = {}) {+var qb = typeof document < "u" && window.visualViewport, Jb = 0, Yb;+function Xb(e = {}) {let { isDisabled: t } = e;- bp(() => {- if (!t) return Hb++, Hb === 1 && (Ub = Mp() && Pp() ? ute() : lte()), () => {- Hb--, Hb === 0 && Ub();+ Sp(() => {+ if (!t) return Jb++, Jb === 1 && (Yb = Pp() && Ip() ? Qb() : Zb()), () => {+ Jb--, Jb === 0 && Yb();};}, [t]);}-function lte() {+function Zb() {let e = window.innerWidth - document.documentElement.clientWidth;- return Im(e > 0 && ("scrollbarGutter" in document.documentElement.style ? rp(document.documentElement, "scrollbar-gutter", "stable") : rp(document.documentElement, "padding-right", `${e}px`)), rp(document.documentElement, "overflow", "hidden"));+ return Rm(e > 0 && ("scrollbarGutter" in document.documentElement.style ? ap(document.documentElement, "scrollbar-gutter", "stable") : ap(document.documentElement, "padding-right", `${e}px`)), ap(document.documentElement, "overflow", "hidden"));}-function ute() {- let e = rp(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {+function Qb() {+ let e = ap(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {let r = V(e);- t = y_(r) ? r : b_(r, !0), n = !1;+ t = g_(r) ? r : __(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 = Cg();+ }, i = document.createElement("style"), a = Og();a && (i.nonce = a), i.textContent = "@layer {\n * {\n overscroll-behavior: contain;\n }\n}", document.head.prepend(i);let o = (e) => {if (!(e.touches.length === 2 || n)) {@@ -13141,26 +13141,26 @@ function ute() {}}, s = (e) => {let t = V(e), n = e.relatedTarget;- n && Yh(n) ? (n.focus({ preventScroll: !0 }), Gb(n, Yh(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });+ n && Zh(n) ? (n.focus({ preventScroll: !0 }), $b(n, Zh(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });}, c = HTMLElement.prototype.focus;Reflect.defineProperty(HTMLElement.prototype, "focus", {configurable: !0,writable: !0,value: function(e) {- let t = sp(), n = t != null && Yh(t);+ let t = lp(), n = t != null && Zh(t);c.call(this, {...e,preventScroll: !0- }), (!e || !e.preventScroll) && Gb(this, n);+ }), (!e || !e.preventScroll) && $b(this, n);}});- let l = Im(np(document, "touchstart", r, {+ let l = Rm(ip(document, "touchstart", r, {passive: !1,capture: !0- }), np(document, "touchmove", o, {+ }), ip(document, "touchmove", o, {passive: !1,capture: !0- }), np(document, "blur", s, !0));+ }), ip(document, "blur", s, !0));return () => {e(), l(), i.remove(), Reflect.defineProperty(HTMLElement.prototype, "focus", {configurable: !0,@@ -13169,18 +13169,18 @@ function ute() {});};}-function Gb(e, t) {- t || !Vb ? Kb(e) : Vb.addEventListener("resize", () => Kb(e), { once: !0 });+function $b(e, t) {+ t || !qb ? ex(e) : qb.addEventListener("resize", () => ex(e), { once: !0 });}-function Kb(e) {+function ex(e) {let t = document.scrollingElement || document.documentElement, n = e;for (; n && n !== t;) {- let e = b_(n);+ let e = __(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;- Vb && (n = Math.min(n, Vb.offsetTop + Vb.height));+ qb && (n = Math.min(n, qb.offsetTop + qb.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)),@@ -13193,14 +13193,14 @@ function Kb(e) {}//#endregion//#region node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs-function dte(e, t, n) {- let { overlayProps: r, underlayProps: i } = Bb({+function tx(e, t, n) {+ let { overlayProps: r, underlayProps: i } = Kb({...e,isOpen: t.isOpen,onClose: t.close}, n);- return Wb({ isDisabled: !t.isOpen }), sy(), (0, I.useEffect)(() => {- if (t.isOpen && n.current) return Z_([n.current], { shouldUseInert: !0 });+ return Xb({ isDisabled: !t.isOpen }), fy(), (0, I.useEffect)(() => {+ if (t.isOpen && n.current) return Q_([n.current], { shouldUseInert: !0 });}, [t.isOpen, n]), {modalProps: H(r),underlayProps: i@@ -13208,33 +13208,33 @@ function dte(e, t, n) {}//#endregion//#region node_modules/react-aria/dist/private/overlays/calculatePosition.mjs-var qb = {+var nx = {top: "top",bottom: "top",left: "left",right: "left"-}, Jb = {+}, rx = {top: "bottom",bottom: "top",left: "right",right: "left"-}, fte = {+}, ix = {top: "left",left: "top"-}, Yb = {+}, ax = {top: "height",left: "width"-}, Xb = {+}, ox = {width: "totalWidth",height: "totalHeight"-}, Zb = {}, pte = () => typeof document < "u" ? window.visualViewport : null;-function Qb(e, t) {+}, sx = {}, cx = () => typeof document < "u" ? window.visualViewport : null;+function lx(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} = ix(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;- return Pp() && (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} = hx(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;+ return Ip() && (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,@@ -13244,7 +13244,7 @@ function Qb(e, t) {left: s};}-function mte(e) {+function ate(e) {return {top: e.scrollTop,left: e.scrollLeft,@@ -13252,11 +13252,11 @@ function mte(e) {height: e.scrollHeight};}-function $b(e, t, n, r, i, a, o) {- let s = i.scroll[e] ?? 0, c = r[Yb[e]], l = o[e] + r.scroll[qb[e]] + a, u = o[e] + r.scroll[qb[e]] + c - a, d = t - s + r.scroll[qb[e]] + o[e] - r[qb[e]], f = t - s + n + r.scroll[qb[e]] + o[e] - r[qb[e]];+function ux(e, t, n, r, i, a, o) {+ let s = i.scroll[e] ?? 0, c = r[ax[e]], l = o[e] + r.scroll[nx[e]] + a, u = o[e] + r.scroll[nx[e]] + c - a, d = t - s + r.scroll[nx[e]] + o[e] - r[nx[e]], f = t - s + n + r.scroll[nx[e]] + o[e] - r[nx[e]];return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;}-function hte(e) {+function ote(e) {let t = window.getComputedStyle(e);return {top: parseInt(t.marginTop, 10) || 0,@@ -13265,58 +13265,58 @@ function hte(e) {right: parseInt(t.marginRight, 10) || 0};}-function ex(e) {- if (Zb[e]) return Zb[e];- let [t, n] = e.split(" "), r = qb[t] || "right", i = fte[r];- qb[n] || (n = "center");- let a = Yb[r], o = Yb[i];- return Zb[e] = {+function dx(e) {+ if (sx[e]) return sx[e];+ let [t, n] = e.split(" "), r = nx[t] || "right", i = ix[r];+ nx[n] || (n = "center");+ let a = ax[r], o = ax[i];+ return sx[e] = {placement: t,crossPlacement: n,axis: r,crossAxis: i,size: a,crossSize: o- }, Zb[e];+ }, sx[e];}-function tx(e, t, n, r, i, a, o, s, c, l, u) {+function fx(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] = W_(_[m], v, y), d === p) {- let t = s ? u[h] : u[Xb[h]];- _[Jb[p]] = Math.floor(t - e[p] + i);+ if (_[m] = U_(_[m], v, y), d === p) {+ let t = s ? u[h] : u[ox[h]];+ _[rx[p]] = Math.floor(t - e[p] + i);} else _[p] = Math.floor(e[p] + e[h] + i);return _;}-function gte(e, t, n, r, i, a, o, s, c, l, u) {- let d = (e.top == null ? c[Xb.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {+function ste(e, t, n, r, i, a, o, s, c, l, u) {+ let d = (e.top == null ? c[ox.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 nx(e, t, n, r, i, a, o, s) {+function px(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[Jb[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[Jb[l]] - i);+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[rx[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[rx[l]] - i);}-function _te(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {- let v = ex(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = tx(t, s, n, v, u, d, l, f, m, h, c), T = u, E = nx(s, l, t, i, a + u, v, c, g);+function cte(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {+ let v = dx(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = fx(t, s, n, v, u, d, l, f, m, h, c), T = u, E = px(s, l, t, i, a + u, v, c, g);if (o && n[y] > E) {- let e = ex(`${Jb[S]} ${C}`), r = tx(t, s, n, e, u, d, l, f, m, h, c);- nx(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);+ let e = dx(`${rx[S]} ${C}`), r = fx(t, s, n, e, u, d, l, f, m, h, c);+ px(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 = $b(b, w[b], n[x], s, c, a, l);+ let O = ux(b, w[b], n[x], s, c, a, l);w[b] += O;- let k = gte(w, s, l, f, i, a, n.height, D, c, g, _);- p && p < k && (k = p), n.height = Math.min(n.height, k), w = tx(t, s, n, v, T, d, l, f, m, h, c), O = $b(b, w[b], n[x], s, c, a, l), w[b] += O;- let A = {}, j = t[b] - w[b] - i[qb[b]], M = j + .5 * t[x], N = m / 2 + h, P = qb[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), ee = n[x] - P - m / 2 - h;- A[b] = W_(W_(M, t[b] + m / 2 - (w[b] + i[qb[b]]), t[b] + t[x] - m / 2 - (w[b] + i[qb[b]])), N, ee), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);- let F = S === "left" || S === "top" ? n[y] : 0, te = {- x: S === "top" || S === "bottom" ? j : F,- y: S === "left" || S === "right" ? j : F+ let k = ste(w, s, l, f, i, a, n.height, D, c, g, _);+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = fx(t, s, n, v, T, d, l, f, m, h, c), O = ux(b, w[b], n[x], s, c, a, l), w[b] += O;+ let A = {}, j = t[b] - w[b] - i[nx[b]], M = j + .5 * t[x], N = m / 2 + h, ee = nx[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - ee - m / 2 - h;+ A[b] = U_(U_(M, t[b] + m / 2 - (w[b] + i[nx[b]]), t[b] + t[x] - m / 2 - (w[b] + i[nx[b]])), N, 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};return {position: w,@@ -13324,20 +13324,20 @@ function _te(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {arrowOffsetLeft: A.left,arrowOffsetTop: A.top,placement: S,- triggerAnchorPoint: te+ triggerAnchorPoint: ne};}-function vte(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 = pte(), h = r instanceof HTMLElement ? yte(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? ix(n, !1, p) : ax(n, h, !1, p);+function lte(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 = cx(), h = r instanceof HTMLElement ? ute(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? hx(n, !1, p) : gx(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 = ix(r, !0), x = hte(r);+ let b = hx(r, !0), x = ote(r);b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);- let S = mte(i), C = Qb(s, m), w = Qb(h, m), T;+ let S = ate(i), C = lx(s, m), w = lx(h, m), T;if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {- let e = rx(h, !1);+ let e = mx(h, !1);T = {top: -(e.top - C.top),left: -(e.left - C.left),@@ -13349,11 +13349,11 @@ function vte(e) {left: 0,width: 0,height: 0- } : ax(s, h, !1);- let E = op(s, h);- return _te(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);+ } : gx(s, h, !1);+ let E = cp(s, h);+ return cte(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);}-function rx(e, t) {+function mx(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,@@ -13362,8 +13362,8 @@ function rx(e, t) {height: a};}-function ix(e, t, n) {- let { top: r, left: i, width: a, height: o } = n || rx(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;+function hx(e, t, n) {+ let { top: r, left: i, width: a, height: o } = n || mx(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;return {top: r + s - l,left: i + c - u,@@ -13371,30 +13371,30 @@ function ix(e, t, n) {height: o};}-function ax(e, t, n, r) {+function gx(e, t, n, r) {let i = window.getComputedStyle(e), a;- if (i.position === "fixed") a = r || rx(e, n);+ if (i.position === "fixed") a = r || mx(e, n);else {- a = ix(e, n, r);- let i = ix(t, n), o = window.getComputedStyle(t);+ a = hx(e, n, r);+ let i = hx(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 yte(e) {+function ute(e) {let t = e.offsetParent;- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !ox(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !ox(t);) t = t.parentElement;+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !_x(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !_x(t);) t = t.parentElement;return t || document.documentElement;}-function ox(e) {+function _x(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";}//#endregion//#region node_modules/react-aria/dist/private/overlays/useOverlayPosition.mjs-var sx = typeof document < "u" ? window.visualViewport : null;-function bte(e) {- let { direction: t } = lg(), { 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, I.useState)(null), x = [+var vx = typeof document < "u" ? window.visualViewport : null;+function dte(e) {+ let { direction: t } = ug(), { 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, I.useState)(null), x = [p,s,i.current,@@ -13411,15 +13411,15 @@ function bte(e) {g,_,n- ], S = (0, I.useRef)(sx?.scale);+ ], S = (0, I.useRef)(vx?.scale);(0, I.useEffect)(() => {- m && (S.current = sx?.scale);+ m && (S.current = vx?.scale);}, [m]);let C = (0, I.useCallback)(() => {- if (p === !1 || !m || !i.current || !r.current || !u || sx?.scale !== S.current) return;+ if (p === !1 || !m || !i.current || !r.current || !u || vx?.scale !== S.current) return;let e = null;- if (o.current && lp(o.current)) {- let t = sp()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();+ if (o.current && dp(o.current)) {+ let t = lp()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();e = {type: "top",offset: (t?.top ?? 0) - n.top@@ -13427,8 +13427,8 @@ function bte(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 = vte({- placement: Ste(s, t),+ let y = lte({+ placement: pte(s, t),overlayNode: i.current,targetNode: r.current,scrollNode: o.current || i.current,@@ -13438,28 +13438,28 @@ function bte(e) {offset: d,crossOffset: f,maxHeight: g,- arrowSize: n ?? (a?.current ? rx(a.current, !0).width : 0),+ arrowSize: n ?? (a?.current ? mx(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 = sp();+ let x = lp();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);- bp(C, x), xte(C), nb({+ Sp(C, x), fte(C), sb({ref: i,onResize: C- }), nb({+ }), sb({ref: r,onResize: C});let w = (0, I.useRef)(!1);- bp(() => {+ Sp(() => {let e, t = () => {w.current = !0, clearTimeout(e), e = setTimeout(() => {w.current = !1;@@ -13467,16 +13467,16 @@ function bte(e) {}, n = () => {w.current && t();};- sx?.addEventListener("resize", t), sx?.addEventListener("scroll", n);- let r = np(cp(window), "scroll", n);+ vx?.addEventListener("resize", t), vx?.addEventListener("scroll", n);+ let r = ip(up(window), "scroll", n);return () => {- sx?.removeEventListener("resize", t), sx?.removeEventListener("scroll", n), r();+ vx?.removeEventListener("resize", t), vx?.removeEventListener("scroll", n), r();};}, [C]);let T = (0, I.useCallback)(() => {w.current || h?.();}, [h, w]);- return Ree({+ return Wv({triggerRef: r,isOpen: m,onClose: h && T@@ -13502,25 +13502,25 @@ function bte(e) {updatePosition: C};}-function xte(e) {- bp(() => (window.addEventListener("resize", e, !1), () => {+function fte(e) {+ Sp(() => (window.addEventListener("resize", e, !1), () => {window.removeEventListener("resize", e, !1);}), [e]);}-function Ste(e, t) {+function pte(e, t) {return t === "rtl" ? e.replace("start", "right").replace("end", "left") : e.replace("start", "left").replace("end", "right");}//#endregion//#region node_modules/react-aria/dist/private/overlays/usePopover.mjs-function Cte(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 } = Bb({+function mte(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 } = Kb({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 } = bte({+ }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = dte({...c,targetRef: n,overlayRef: r,@@ -13528,15 +13528,15 @@ function Cte(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)});- Wb({ isDisabled: a || !t.isOpen }), (0, I.useEffect)(() => {- if (t.isOpen && r.current) return a ? jee(i?.current ?? r.current) : Z_([i?.current ?? r.current], { shouldUseInert: !0 });+ Xb({ isDisabled: a || !t.isOpen }), (0, I.useEffect)(() => {+ if (t.isOpen && r.current) return a ? Mee(i?.current ?? r.current) : Q_([i?.current ?? r.current], { shouldUseInert: !0 });}, [a,t.isOpen,r,i]);- let { focusWithinProps: g } = V_(e);+ let { focusWithinProps: g } = R_(e);return {popoverProps: H(u, f, g),arrowProps: p,@@ -13547,13 +13547,13 @@ function Cte(e, t) {}//#endregion//#region node_modules/react-aria/dist/private/radio/utils.mjs-var cx = /* @__PURE__ */ new WeakMap();+var yx = /* @__PURE__ */ new WeakMap();//#endregion//#region node_modules/react-aria/dist/private/radio/useRadio.mjs-function wte(e, t, n) {+function hte(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: _ } = Ag({+ }, { pressProps: g, isPressed: _ } = Fg({onPressStart: s,onPressEnd: c,onPressChange: l,@@ -13561,7 +13561,7 @@ function wte(e, t, n) {onPressUp: d,onClick: f,isDisabled: p- }), { pressProps: v, isPressed: y } = Ag({+ }), { pressProps: v, isPressed: y } = Fg({onPressStart: s,onPressEnd: c,onPressChange: l,@@ -13571,11 +13571,11 @@ function wte(e, t, n) {onPress(e) {u?.(e), t.setSelectedValue(r), n.current?.focus();}- }), { focusableProps: b } = mh(H(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = H(g, b), S = _g(e, { labelable: !0 }), C = -1;+ }), { focusableProps: b } = gh(H(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = H(g, b), S = Sg(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 } = cx.get(t);- E_(n, t.defaultSelectedValue, t.setSelectedValue), D_({ validationBehavior: O }, t, n);- let k = O_();+ let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = yx.get(t);+ C_(n, t.defaultSelectedValue, t.setSelectedValue), w_({ validationBehavior: O }, t, n);+ let k = T_();return {labelProps: H(v, (0, I.useMemo)(() => ({onClick: (e) => e.preventDefault(),@@ -13607,13 +13607,13 @@ function wte(e, t, n) {}//#endregion//#region node_modules/react-aria/dist/private/radio/useRadioGroup.mjs-function Tte(e, t) {- let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = lg(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = B_({+function gte(e, t) {+ let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = ug(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = L_({...e,labelElementType: "span",isInvalid: t.isInvalid,errorMessage: e.errorMessage || d- }), _ = _g(e, { labelable: !0 }), { focusWithinProps: v } = V_({+ }), _ = Sg(e, { labelable: !0 }), { focusWithinProps: v } = R_({onBlurWithin(n) {e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);},@@ -13621,13 +13621,13 @@ function Tte(e, t) {onFocusWithinChange: e.onFocusChange});function y(e, n) {- let r = u_(n.currentTarget, {+ let r = c_(n.currentTarget, {from: V(n),- accept: (e) => e instanceof Zf(e).HTMLInputElement && e.type === "radio"+ accept: (e) => e instanceof $f(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 } = lh({+ let { keyboardProps: b } = dh({shortcuts: {ArrowRight: (e) => y(l === "rtl" && s !== "vertical" ? "prev" : "next", e),ArrowLeft: (e) => y(l === "rtl" && s !== "vertical" ? "next" : "prev", e),@@ -13635,8 +13635,8 @@ function Tte(e, t) {ArrowUp: (e) => y("prev", e)},allowRepeats: !0- }), x = Hm(n);- return cx.set(t, {+ }), x = Wm(n);+ return yx.set(t, {name: x,form: r,descriptionId: h.id,@@ -13665,21 +13665,21 @@ function Tte(e, t) {}//#endregion//#region node_modules/react-aria/dist/private/select/useSelect.mjs-var lx = /* @__PURE__ */ new WeakMap();-function Ete(e, t, n) {- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = ty({+var bx = /* @__PURE__ */ new WeakMap();+function _te(e, t, n) {+ let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = oy({usage: "search",sensitivity: "base"- }), u = (0, I.useMemo)(() => r || new rv(t.collection, t.disabledKeys, n, l), [+ }), u = (0, I.useMemo)(() => r || new iv(t.collection, t.disabledKeys, n, l), [r,t.collection,t.disabledKeys,l,n- ]), { menuTriggerProps: d, menuProps: f } = Vv({+ ]), { menuTriggerProps: d, menuProps: f } = Kv({isDisabled: i,type: "listbox"- }, t, n), { keyboardProps: p } = lh({+ }, t, n), { keyboardProps: p } = dh({shortcuts: {ArrowLeft: () => {if (t.selectionManager.selectionMode === "multiple") return !1;@@ -13695,21 +13695,21 @@ function Ete(e, t, n) {allowRepeats: !0,onKeyDown: e.onKeyDown,onKeyUp: e.onKeyUp- }), { typeSelectProps: m } = Uv({+ }), { typeSelectProps: m } = Jv({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 } = B_({+ }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = L_({...e,labelElementType: "span",isInvalid: h,errorMessage: e.errorMessage || g});t.selectionManager.selectionMode === "multiple" && (m = {});- let S = _g(e, { labelable: !0 }), C = H(m, d, y), w = Hm();- return lx.set(t, {+ let S = Sg(e, { labelable: !0 }), C = H(m, d, y), w = Wm();+ return bx.set(t, {isDisabled: i,isRequired: a,name: o,@@ -13719,13 +13719,13 @@ function Ete(e, t, n) {labelProps: {...v,onClick: () => {- e.isDisabled || (n.current?.focus(), Tm("keyboard"));+ e.isDisabled || (n.current?.focus(), Dm("keyboard"));}},triggerProps: H(S, {...C,isDisabled: i,- onKeyDown: Im(C.onKeyDown, p.onKeyDown),+ onKeyDown: Rm(C.onKeyDown, p.onKeyDown),onKeyUp: p.onKeyUp,"aria-labelledby": [w,@@ -13749,7 +13749,7 @@ function Ete(e, t, n) {disallowEmptySelection: !0,linkBehavior: "selection",onBlur: (n) => {- op(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));+ cp(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(" ")},@@ -13770,13 +13770,13 @@ function Ete(e, t, n) {}//#endregion//#region node_modules/react-aria/dist/private/select/HiddenSelect.mjs-function Dte(e, t, n) {- let r = lx.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = K_({ style: {+function vte(e, t, n) {+ let r = bx.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = G_({ style: {position: "fixed",top: 0,left: 0} });- E_(e.selectRef, t.defaultValue, t.setValue), D_({+ C_(e.selectRef, t.defaultValue, t.setValue), w_({validationBehavior: c,focus: () => n.current?.focus()}, t, e.selectRef);@@ -13806,8 +13806,8 @@ function Dte(e, t, n) {}};}-function Ote(e) {- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, I.useRef)(null), c = (0, I.useRef)(null), { containerProps: l, selectProps: u } = Dte({+function yte(e) {+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, I.useRef)(null), c = (0, I.useRef)(null), { containerProps: l, selectProps: u } = vte({...e,selectRef: t.collection.size <= 300 ? s : c}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];@@ -13831,7 +13831,7 @@ function Ote(e) {value: e ?? ""})))));if (i) {- let { validationBehavior: e } = lx.get(t) || {};+ let { validationBehavior: e } = bx.get(t) || {};d.length === 0 && (d = [null]);let n = d.map((t, n) => {let r = {@@ -13862,8 +13862,8 @@ function Ote(e) {}//#endregion//#region node_modules/react-aria/dist/private/separator/useSeparator.mjs-function kte(e) {- let t = _g(e, { labelable: !0 }), n;+function bte(e) {+ let t = Sg(e, { labelable: !0 }), n;return e.orientation === "vertical" && (n = "vertical"), e.elementType === "hr" ? { separatorProps: t } : { separatorProps: {...t,role: "separator",@@ -13872,8 +13872,8 @@ function kte(e) {}//#endregion//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs-function Ate(e, t, n) {- let { labelProps: r, inputProps: i, isSelected: a, ...o } = L_(e, t, n);+function xte(e, t, n) {+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = P_(e, t, n);return {labelProps: r,inputProps: {@@ -13887,10 +13887,10 @@ function Ate(e, t, n) {}//#endregion//#region node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs-var ux = class {+var xx = 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 jte(e.layout) : new nv(e.ref)), this.focusMode = e.focusMode ?? "row";+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new Ste(e.layout) : new rv(e.ref)), this.focusMode = e.focusMode ?? "row";}isCell(e) {return e.type === "cell";@@ -13926,7 +13926,7 @@ var ux = class {let n = this.collection.getItem(e);if (!n) return null;let r = 0;- for (let e of Kv(n, this.collection)) {+ for (let e of Zv(n, this.collection)) {if (e.colSpan && e.colSpan + r > t || (e.colSpan && (r = r + e.colSpan - 1), r === t)) return e.key ?? null;r++;}@@ -13960,13 +13960,13 @@ var ux = class {let t = this.collection.getItem(e);if (!t) return null;if (this.isRow(t)) {- let e = Kv(t, this.collection);- return (this.direction === "rtl" ? Yv(e)?.key : qv(e)?.key) ?? null;+ let e = Zv(t, this.collection);+ return (this.direction === "rtl" ? ey(e)?.key : Qv(e)?.key) ?? null;}if (this.isCell(t) && t.parentKey != null) {let n = this.collection.getItem(t.parentKey);if (!n) return null;- let r = Kv(n, this.collection), i = (this.direction === "rtl" ? Jv(r, t.index - 1) : Jv(r, t.index + 1)) ?? null;+ let r = Zv(n, this.collection), i = (this.direction === "rtl" ? $v(r, t.index - 1) : $v(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;@@ -13975,13 +13975,13 @@ var ux = class {let t = this.collection.getItem(e);if (!t) return null;if (this.isRow(t)) {- let e = Kv(t, this.collection);- return (this.direction === "rtl" ? qv(e)?.key : Yv(e)?.key) ?? null;+ let e = Zv(t, this.collection);+ return (this.direction === "rtl" ? Qv(e)?.key : ey(e)?.key) ?? null;}if (this.isCell(t) && t.parentKey != null) {let n = this.collection.getItem(t.parentKey);if (!n) return null;- let r = Kv(n, this.collection), i = (this.direction === "rtl" ? Jv(r, t.index + 1) : Jv(r, t.index - 1)) ?? null;+ let r = Zv(n, this.collection), i = (this.direction === "rtl" ? $v(r, t.index + 1) : $v(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;@@ -13992,13 +13992,13 @@ var ux = 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 ? qv(Kv(e, this.collection))?.key ?? null : null;+ return e ? Qv(Zv(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 = qv(Kv(e, this.collection))?.key ?? null;+ n = Qv(Zv(e, this.collection))?.key ?? null;}return n;}@@ -14008,13 +14008,13 @@ var ux = 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 ? Yv(Kv(e, this.collection))?.key ?? null : null;+ return e ? ey(Zv(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 = Yv(Kv(e, this.collection))?.key ?? null;+ n = ey(Zv(e, this.collection))?.key ?? null;}return n;}@@ -14050,13 +14050,13 @@ var ux = 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" ? qv(Kv(t, this.collection))?.key ?? null : t.key;+ if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? Qv(Zv(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;}-}, jte = class {+}, Ste = class {constructor(e) {this.layout = e;}@@ -14069,16 +14069,16 @@ var ux = class {getVisibleRect() {return this.layout.virtualizer.visibleRect;}-}, dx = /* @__PURE__ */ new WeakMap();+}, Sx = /* @__PURE__ */ new WeakMap();//#endregion//#region node_modules/react-aria/dist/private/grid/useGrid.mjs-function Mte(e, t, n) {+function Cte(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 = ty({+ let h = oy({usage: "search",sensitivity: "base"- }), { direction: g } = lg(), _ = t.selectionManager.disabledBehavior, v = (0, I.useMemo)(() => a || new ux({+ }), { direction: g } = ug(), _ = t.selectionManager.disabledBehavior, v = (0, I.useMemo)(() => a || new xx({collection: t.collection,disabledKeys: t.disabledKeys,disabledBehavior: _,@@ -14095,7 +14095,7 @@ function Mte(e, t, n) {g,h,o- ]), { collectionProps: y } = Gv({+ ]), { collectionProps: y } = Xv({ref: n,selectionManager: m,keyboardDelegate: v,@@ -14103,8 +14103,8 @@ function Mte(e, t, n) {scrollRef: s,disallowTypeAhead: i,escapeKeyBehavior: d- }), b = Hm(e.id);- dx.set(t, {+ }), b = Wm(e.id);+ Sx.set(t, {keyboardDelegate: v,actions: {onRowAction: l,@@ -14113,48 +14113,48 @@ function Mte(e, t, n) {shouldSelectOnPressUp: f,keyboardNavigationBehavior: p});- let x = Qee({+ let x = Yee({selectionManager: m,hasItemActions: !!(l || u)- }), S = _g(e, { labelable: !0 }), C = (0, I.useCallback)((e) => {+ }), S = Sg(e, { labelable: !0 }), C = (0, I.useCallback)((e) => {if (m.isFocused) {- op(e.currentTarget, V(e)) || m.setFocused(!1);+ cp(e.currentTarget, V(e)) || m.setFocused(!1);return;}- op(e.currentTarget, V(e)) && m.setFocused(!0);+ cp(e.currentTarget, V(e)) && m.setFocused(!0);}, [m]), w = (0, I.useMemo)(() => ({onBlur: y.onBlur,onFocus: C- }), [C, y.onBlur]), T = Xy(n, { isDisabled: t.collection.size !== 0 }), E = H(S, {+ }), [C, y.onBlur]), T = tb(n, { isDisabled: t.collection.size !== 0 }), E = H(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), Xee({ getRowText: c }, t), { gridProps: E };+ return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), qee({ getRowText: c }, t), { gridProps: E };}//#endregion//#region node_modules/react-aria/dist/private/table/utils.mjs-var fx = /* @__PURE__ */ new WeakMap();-function px(e) {+var Cx = /* @__PURE__ */ new WeakMap();+function wx(e) {return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;}-function Nte(e, t) {- let n = fx.get(e);+function wte(e, t) {+ let n = Cx.get(e);if (!n) throw Error("Unknown grid");- return `${n}-${px(t)}`;+ return `${n}-${wx(t)}`;}-function mx(e, t, n) {- let r = fx.get(e);+function Tx(e, t, n) {+ let r = Cx.get(e);if (!r) throw Error("Unknown grid");- return `${r}-${px(t)}-${px(n)}`;+ return `${r}-${wx(t)}-${wx(n)}`;}-function hx(e, t) {- return [...e.collection.rowHeaderColumnKeys].map((n) => mx(e, t, n)).join(" ");+function Ex(e, t) {+ return [...e.collection.rowHeaderColumnKeys].map((n) => Tx(e, t, n)).join(" ");}//#endregion//#region node_modules/react-aria/dist/private/intl/table/ar-AE.mjs-var gx = {};-gx = {+var Dx = {};+Dx = {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: "طي",@@ -14169,8 +14169,8 @@ gx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/bg-BG.mjs-var _x = {};-_x = {+var Ox = {};+Ox = {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: "Свиване",@@ -14185,8 +14185,8 @@ _x = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs-var vx = {};-vx = {+var kx = {};+kx = {ascending: "vzestupně",ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,collapse: "Sbalit",@@ -14201,8 +14201,8 @@ vx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/da-DK.mjs-var yx = {};-yx = {+var Ax = {};+Ax = {ascending: "stigende",ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,collapse: "Skjul",@@ -14217,8 +14217,8 @@ yx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/de-DE.mjs-var bx = {};-bx = {+var jx = {};+jx = {ascending: "aufsteigend",ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,collapse: "Reduzieren",@@ -14233,8 +14233,8 @@ bx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/el-GR.mjs-var xx = {};-xx = {+var Mx = {};+Mx = {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: "Σύμπτυξη",@@ -14249,8 +14249,8 @@ xx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/en-US.mjs-var Sx = {};-Sx = {+var Nx = {};+Nx = {select: "Select",selectAll: "Select All",sortable: "sortable column",@@ -14265,8 +14265,8 @@ Sx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/es-ES.mjs-var Cx = {};-Cx = {+var Px = {};+Px = {ascending: "ascendente",ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,collapse: "Contraer",@@ -14281,8 +14281,8 @@ Cx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/et-EE.mjs-var wx = {};-wx = {+var Fx = {};+Fx = {ascending: "tõusev järjestus",ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,collapse: "Ahenda",@@ -14297,8 +14297,8 @@ wx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/fi-FI.mjs-var Tx = {};-Tx = {+var Ix = {};+Ix = {ascending: "nouseva",ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,collapse: "Pienennä",@@ -14313,8 +14313,8 @@ Tx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/fr-FR.mjs-var Ex = {};-Ex = {+var Lx = {};+Lx = {ascending: "croissant",ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,collapse: "Réduire",@@ -14329,8 +14329,8 @@ Ex = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/he-IL.mjs-var Dx = {};-Dx = {+var Rx = {};+Rx = {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: "כווץ",@@ -14345,8 +14345,8 @@ Dx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/hr-HR.mjs-var Ox = {};-Ox = {+var zx = {};+zx = {ascending: "rastući",ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,collapse: "Sažmi",@@ -14361,8 +14361,8 @@ Ox = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/hu-HU.mjs-var kx = {};-kx = {+var Bx = {};+Bx = {ascending: "növekvő",ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,collapse: "Összecsukás",@@ -14377,8 +14377,8 @@ kx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/it-IT.mjs-var Ax = {};-Ax = {+var Vx = {};+Vx = {ascending: "crescente",ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,collapse: "Comprimi",@@ -14393,8 +14393,8 @@ Ax = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/ja-JP.mjs-var jx = {};-jx = {+var Hx = {};+Hx = {ascending: "昇順",ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,collapse: "折りたたむ",@@ -14409,8 +14409,8 @@ jx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/ko-KR.mjs-var Mx = {};-Mx = {+var Ux = {};+Ux = {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: "접기",@@ -14425,8 +14425,8 @@ Mx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/lt-LT.mjs-var Nx = {};-Nx = {+var Wx = {};+Wx = {ascending: "didėjančia tvarka",ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,collapse: "Sutraukti",@@ -14441,8 +14441,8 @@ Nx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/lv-LV.mjs-var Px = {};-Px = {+var Gx = {};+Gx = {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",@@ -14457,8 +14457,8 @@ Px = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/nb-NO.mjs-var Fx = {};-Fx = {+var Kx = {};+Kx = {ascending: "stigende",ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,collapse: "Skjul",@@ -14473,8 +14473,8 @@ Fx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/nl-NL.mjs-var Ix = {};-Ix = {+var qx = {};+qx = {ascending: "oplopend",ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,collapse: "Samenvouwen",@@ -14489,8 +14489,8 @@ Ix = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/pl-PL.mjs-var Lx = {};-Lx = {+var Jx = {};+Jx = {ascending: "rosnąco",ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,collapse: "Zwiń",@@ -14505,8 +14505,8 @@ Lx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/pt-BR.mjs-var Rx = {};-Rx = {+var Yx = {};+Yx = {ascending: "crescente",ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,collapse: "Recolher",@@ -14521,8 +14521,8 @@ Rx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/pt-PT.mjs-var zx = {};-zx = {+var Xx = {};+Xx = {ascending: "ascendente",ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,collapse: "Colapsar",@@ -14537,8 +14537,8 @@ zx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/ro-RO.mjs-var Bx = {};-Bx = {+var Zx = {};+Zx = {ascending: "crescătoare",ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,collapse: "Restrângeți",@@ -14553,8 +14553,8 @@ Bx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/ru-RU.mjs-var Vx = {};-Vx = {+var Qx = {};+Qx = {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: "Свернуть",@@ -14569,8 +14569,8 @@ Vx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/sk-SK.mjs-var Hx = {};-Hx = {+var $x = {};+$x = {ascending: "vzostupne",ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,collapse: "Zbaliť",@@ -14585,8 +14585,8 @@ Hx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/sl-SI.mjs-var Ux = {};-Ux = {+var eS = {};+eS = {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",@@ -14601,8 +14601,8 @@ Ux = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/sr-SP.mjs-var Wx = {};-Wx = {+var tS = {};+tS = {ascending: "rastući",ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,collapse: "Skupi",@@ -14617,8 +14617,8 @@ Wx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/sv-SE.mjs-var Gx = {};-Gx = {+var nS = {};+nS = {ascending: "stigande",ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,collapse: "Dölj",@@ -14633,8 +14633,8 @@ Gx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/tr-TR.mjs-var Kx = {};-Kx = {+var rS = {};+rS = {ascending: "artan sırada",ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,collapse: "Daralt",@@ -14649,8 +14649,8 @@ Kx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/uk-UA.mjs-var qx = {};-qx = {+var iS = {};+iS = {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: "Згорнути",@@ -14665,8 +14665,8 @@ qx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/zh-CN.mjs-var Jx = {};-Jx = {+var aS = {};+aS = {ascending: "升序",ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,collapse: "折叠",@@ -14681,8 +14681,8 @@ Jx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/zh-TW.mjs-var Yx = {};-Yx = {+var oS = {};+oS = {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: "收合",@@ -14697,46 +14697,46 @@ Yx = {};//#endregion//#region node_modules/react-aria/dist/private/table/intlStrings.mjs-var Xx = {};-Xx = {- "ar-AE": gx,- "bg-BG": _x,- "cs-CZ": vx,- "da-DK": yx,- "de-DE": bx,- "el-GR": xx,- "en-US": Sx,- "es-ES": Cx,- "et-EE": wx,- "fi-FI": Tx,- "fr-FR": Ex,- "he-IL": Dx,- "hr-HR": Ox,- "hu-HU": kx,- "it-IT": Ax,- "ja-JP": jx,- "ko-KR": Mx,- "lt-LT": Nx,- "lv-LV": Px,- "nb-NO": Fx,- "nl-NL": Ix,- "pl-PL": Lx,- "pt-BR": Rx,- "pt-PT": zx,- "ro-RO": Bx,- "ru-RU": Vx,- "sk-SK": Hx,- "sl-SI": Ux,- "sr-SP": Wx,- "sv-SE": Gx,- "tr-TR": Kx,- "uk-UA": qx,- "zh-CN": Jx,- "zh-TW": Yx+var sS = {};+sS = {+ "ar-AE": Dx,+ "bg-BG": Ox,+ "cs-CZ": kx,+ "da-DK": Ax,+ "de-DE": jx,+ "el-GR": Mx,+ "en-US": Nx,+ "es-ES": Px,+ "et-EE": Fx,+ "fi-FI": Ix,+ "fr-FR": Lx,+ "he-IL": Rx,+ "hr-HR": zx,+ "hu-HU": Bx,+ "it-IT": Vx,+ "ja-JP": Hx,+ "ko-KR": Ux,+ "lt-LT": Wx,+ "lv-LV": Gx,+ "nb-NO": Kx,+ "nl-NL": qx,+ "pl-PL": Jx,+ "pt-BR": Yx,+ "pt-PT": Xx,+ "ro-RO": Zx,+ "ru-RU": Qx,+ "sk-SK": $x,+ "sl-SI": eS,+ "sr-SP": tS,+ "sv-SE": nS,+ "tr-TR": rS,+ "uk-UA": iS,+ "zh-CN": aS,+ "zh-TW": oS};//#endregion//#region node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs-var Pte = class extends ux {+var Tte = class extends xx {isCell(e) {return e.type === "cell" || e.type === "rowheader" || e.type === "column";}@@ -14744,7 +14744,7 @@ var Pte = class extends ux {let n = this.collection.getItem(e);if (!n) return null;if (n.type === "column") {- let e = qv(Kv(n, this.collection));+ let e = Qv(Zv(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);@@ -14765,13 +14765,13 @@ var Pte = class extends ux {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 Kv(n, this.collection)) if (e.type === "column") return e.key;+ for (let e of Zv(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 = [...Kv(n, this.collection)];+ let n = this.collection.headerRows[e.level], r = [...Zv(n, this.collection)];for (let e = r.length - 1; e >= 0; e--) {let t = r[e];if (t.type === "column") return t.key;@@ -14800,7 +14800,7 @@ var Pte = class extends ux {let t = o.textValue.slice(0, e.length);if (this.collator.compare(t, e) === 0) return o.key;}- for (let r of Kv(o, this.collection)) {+ for (let r of Zv(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);@@ -14814,14 +14814,14 @@ var Pte = class extends ux {};//#endregion//#region node_modules/react-aria/dist/private/table/useTable.mjs-function Fte(e) {+function Ete(e) {return e && e.__esModule ? e.default : e;}-function Ite(e, t, n) {- let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = ty({+function Dte(e, t, n) {+ let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = oy({usage: "search",sensitivity: "base"- }), { direction: c } = lg(), l = t.selectionManager.disabledBehavior, u = (0, I.useMemo)(() => r || new Pte({+ }), { direction: c } = ug(), l = t.selectionManager.disabledBehavior, u = (0, I.useMemo)(() => r || new Tte({collection: t.collection,disabledKeys: t.disabledKeys,disabledBehavior: l,@@ -14840,43 +14840,43 @@ function Ite(e, t, n) {s,a,o- ]), d = Hm(e.id);- fx.set(t, d);- let { gridProps: f } = Mte({+ ]), d = Wm(e.id);+ Cx.set(t, d);+ let { gridProps: f } = Cte({...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 = hg(Fte(Xx), "@react-aria/table"), g = (0, I.useMemo)(() => {+ let { column: p, direction: m } = t.sortDescriptor || {}, h = bg(Ete(sS), "@react-aria/table"), g = (0, I.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- ]), _ = T_(g);- return v_(() => {- g && g_(g, "assertive", 500);+ ]), _ = S_(g);+ return h_(() => {+ g && m_(g, "assertive", 500);}, [g]), { gridProps: H(f, _, { "aria-describedby": [_["aria-describedby"], f["aria-describedby"]].filter(Boolean).join(" ") }) };}//#endregion//#region node_modules/react-aria/dist/private/grid/useGridCell.mjs-function Zx(e, t, n) {- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = lg(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = dx.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, I.useRef)(null), h = () => {+function cS(e, t, n) {+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = ug(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = Sx.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, I.useRef)(null), h = () => {if (n.current) {- let e = u_(n.current);+ let e = c_(n.current);if (p === "child") {- if (lp(n.current) && n.current !== sp(Xf(n.current))) return;- let r = t.selectionManager.childFocusStrategy === "last" ? Qx(e) : e.firstChild();+ if (dp(n.current) && n.current !== lp(Qf(n.current))) return;+ let r = t.selectionManager.childFocusStrategy === "last" ? lS(e) : e.firstChild();if (r) {- Fm(r);+ Lm(r);return;}}- (m.current != null && r.key !== m.current || !lp(n.current)) && Fm(n.current);+ (m.current != null && r.key !== m.current || !dp(n.current)) && Lm(n.current);}- }, { itemProps: g, isPressed: _ } = Qy({+ }, { itemProps: g, isPressed: _ } = rb({selectionManager: t.selectionManager,key: r.key,ref: n,@@ -14888,47 +14888,47 @@ function Zx(e, t, n) {}), v = H(g, {role: "gridcell",onKeyDownCapture: f !== "tab" || o ? (e) => {- let i = sp(Xf(n.current));- if (!op(e.currentTarget, V(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;- let a = u_(n.current);+ let i = lp(Qf(n.current));+ if (!cp(e.currentTarget, V(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;+ let a = c_(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) Fm(t), C_(t, { containingElement: b_(n.current) });+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) Lm(t), b_(t, { containingElement: __(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" ? (Fm(n.current), C_(n.current, { containingElement: b_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : Qx(a), t && (Fm(t), C_(t, { containingElement: b_(n.current) })));+ p === "cell" && l === "rtl" ? (Lm(n.current), b_(n.current, { containingElement: __(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : lS(a), t && (Lm(t), b_(t, { containingElement: __(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) Fm(t), C_(t, { containingElement: b_(n.current) });+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) Lm(t), b_(t, { containingElement: __(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" ? (Fm(n.current), C_(n.current, { containingElement: b_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? Qx(a) : a.firstChild(), t && (Fm(t), C_(t, { containingElement: b_(n.current) })));+ p === "cell" && l === "ltr" ? (Lm(n.current), b_(n.current, { containingElement: __(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? lS(a) : a.firstChild(), t && (Lm(t), b_(t, { containingElement: __(n.current) })));}break;}case "ArrowUp":- case "ArrowDown": !e.altKey && op(n.current, V(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));+ case "ArrowDown": !e.altKey && cp(n.current, V(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));}} : void 0,onKeyDown: f === "tab" ? (e) => {- let r = sp(Xf(n.current));- if (!(!op(e.currentTarget, V(e)) || t.isKeyboardNavigationDisabled || !n.current || !r)) {+ let r = lp(Qf(n.current));+ if (!(!cp(e.currentTarget, V(e)) || t.isKeyboardNavigationDisabled || !n.current || !r)) {if (f === "tab" && V(e) !== n.current && e.key !== "Tab") {e.stopPropagation();return;}if (e.key === "Tab" && f === "tab") {- let t = u_(n.current, { tabbable: !0 });+ let t = c_(n.current, { tabbable: !0 });t.currentNode = r, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();}}@@ -14938,11 +14938,11 @@ function Zx(e, t, n) {colSpan: i ? void 0 : r.colSpan,onFocus: (e) => {if (m.current = r.key, V(e) !== n.current) {- Cm() || t.selectionManager.setFocusedKey(r.key);+ Tm() || t.selectionManager.setFocusedKey(r.key);return;}- p === "child" && e.relatedTarget && op(n.current, e.relatedTarget) || requestAnimationFrame(() => {- p === "child" && sp(Xf(n.current)) === n.current && h();+ p === "child" && e.relatedTarget && cp(n.current, e.relatedTarget) || requestAnimationFrame(() => {+ p === "child" && lp(Qf(n.current)) === n.current && h();});},...p === "child" && f === "tab" ? { tabIndex: -1 } : {}@@ -14957,7 +14957,7 @@ function Zx(e, t, n) {isPressed: _};}-function Qx(e) {+function lS(e) {let t = null, n = null;don = e.lastChild(), n && (t = n);@@ -14966,33 +14966,33 @@ function Qx(e) {}//#endregion//#region node_modules/react-aria/dist/private/table/useTableCell.mjs-function Lte(e, t, n) {- let { gridCellProps: r, isPressed: i } = Zx(e, t, n), a = e.node.column?.key;- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = mx(t, e.node.parentKey, a)), {+function Ote(e, t, n) {+ let { gridCellProps: r, isPressed: i } = cS(e, t, n), a = e.node.column?.key;+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = Tx(t, e.node.parentKey, a)), {gridCellProps: r,isPressed: i};}//#endregion//#region node_modules/react-aria/dist/private/table/useTableColumnHeader.mjs-function Rte(e) {+function kte(e) {return e && e.__esModule ? e.default : e;}-function zte(e, t, n) {- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = Zx({+function Ate(e, t, n) {+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = cS({focusMode: "child",...e- }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = Ag({+ }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = Fg({isDisabled: !i || o,onPress() {t.sort(r.key);},ref: n- }), { focusableProps: l } = mh({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;- r.props.allowsSorting && !Ip() && (u = d ? f : "none");- let p = hg(Rte(Xx), "@react-aria/table"), m;- i && (m = `${p.format("sortable")}`, d && f && Ip() && (m = `${m}, ${p.format(f)}`));- let h = T_(m), g = t.collection.size === 0;+ }), { focusableProps: l } = gh({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;+ r.props.allowsSorting && !Rp() && (u = d ? f : "none");+ let p = bg(kte(sS), "@react-aria/table"), m;+ i && (m = `${p.format("sortable")}`, d && f && Rp() && (m = `${m}, ${p.format(f)}`));+ let h = S_(m), g = t.collection.size === 0;return (0, I.useEffect)(() => {g && t.selectionManager.focusedKey === r.key && t.selectionManager.setFocusedKey(null);}, [@@ -15003,7 +15003,7 @@ function zte(e, t, n) {columnHeaderProps: {...H(l, a, s, h, g ? { tabIndex: -1 } : null),role: "columnheader",- id: Nte(t, r.key),+ id: wte(t, r.key),"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,"aria-sort": u},@@ -15012,20 +15012,20 @@ function zte(e, t, n) {}//#endregion//#region node_modules/react-aria/dist/private/table/useTableHeaderRow.mjs-function Bte(e, t, n) {+function jte(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 };}//#endregion//#region node_modules/react-aria/dist/private/grid/useGridRow.mjs-function Vte(e, t, n) {- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = dx.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = Qy({+function Mte(e, t, n) {+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = Sx.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = rb({selectionManager: t.selectionManager,key: r.key,ref: n,isVirtualized: i,shouldSelectOnPressUp: c || a,- onAction: l || r?.props?.onAction ? Im(r?.props?.onAction, l) : void 0,+ onAction: l || r?.props?.onAction ? Rm(r?.props?.onAction, l) : void 0,isDisabled: t.collection.size === 0}), f = t.selectionManager.isSelected(r.key), p = {role: "row",@@ -15040,10 +15040,10 @@ function Vte(e, t, n) {}//#endregion//#region node_modules/react-aria/dist/private/table/useTableRow.mjs-function Hte(e) {+function Nte(e) {return e && e.__esModule ? e.default : e;}-var $x = {+var uS = {expand: {ltr: "ArrowRight",rtl: "ArrowLeft"@@ -15053,21 +15053,21 @@ var $x = {rtl: "ArrowRight"}};-function Ute(e, t, n) {- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Vte(e, t, n), { direction: s } = lg();+function Pte(e, t, n) {+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Mte(e, t, n), { direction: s } = ug();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 = hg(Hte(Xx), "@react-aria/table"), u = $h({+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = bg(Nte(sS), "@react-aria/table"), u = tg({"aria-label": c ? l.format("collapse") : l.format("expand"),- "aria-labelledby": hx(t, r.key)+ "aria-labelledby": Ex(t, r.key)}), d = {}, f = {};if (t.treeColumn != null) {let e = t.collection.getItem(r.key);if (e != null) {- let n = eS(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 = eS(t.collection, a);+ let n = dS(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 = dS(t.collection, a);for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);d = {onKeyDown: (n) => {- n.key === $x.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === $x.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 === uS.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === uS.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,@@ -15085,45 +15085,45 @@ function Ute(e, t, n) {};}}- let p = Kp(r.props), m = o.hasAction ? p : {};+ let p = Jp(r.props), m = o.hasAction ? p : {};return {rowProps: {...H(a, d, m),- "aria-labelledby": hx(t, r.key)+ "aria-labelledby": Ex(t, r.key)},expandButtonProps: f,...o};}-function eS(e, t) {+function dS(e, t) {return "lastChildKey" in t ? t.lastChildKey == null ? null : e.getItem(t.lastChildKey) : Array.from(t.childNodes).findLast((e) => e.parentKey === t.key);}//#endregion//#region node_modules/react-aria/dist/private/grid/useGridRowGroup.mjs-function Wte() {+function Fte() {return { rowGroupProps: { role: "rowgroup" } };}//#endregion//#region node_modules/react-aria/dist/private/table/useTableRowGroup.mjs-function tS() {- return Wte();+function fS() {+ return Fte();}//#endregion//#region node_modules/react-aria/dist/private/table/useTableSelectionCheckbox.mjs-function Gte(e) {+function Ite(e) {return e && e.__esModule ? e.default : e;}-function Kte(e, t) {- let { key: n } = e, { checkboxProps: r } = ete(e, t);+function Lte(e, t) {+ let { key: n } = e, { checkboxProps: r } = Zee(e, t);return { checkboxProps: {...r,- "aria-labelledby": `${r.id} ${hx(t, n)}`+ "aria-labelledby": `${r.id} ${Ex(t, n)}`} };}-function qte(e) {+function Rte(e) {let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;return { checkboxProps: {- "aria-label": hg(Gte(Xx), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),+ "aria-label": bg(Ite(sS), "@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,@@ -15132,23 +15132,23 @@ function qte(e) {}//#endregion//#region node_modules/react-aria/dist/private/tabs/utils.mjs-var nS = /* @__PURE__ */ new WeakMap();-function rS(e, t, n) {- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${nS.get(e)}-${n}-${t}`) : "";+var pS = /* @__PURE__ */ new WeakMap();+function mS(e, t, n) {+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${pS.get(e)}-${n}-${t}`) : "";}//#endregion//#region node_modules/react-aria/dist/private/tabs/useTab.mjs-function Jte(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 } = Qy({+function hS(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 } = rb({selectionManager: o,key: r,ref: n,isDisabled: l,shouldSelectOnPressUp: a ?? u?.props.href != null,linkBehavior: "selection"- }), p = rS(t, r, "tab"), m = rS(t, r, "tabpanel"), { tabIndex: h } = d, g = _g(u?.props, { labelable: !0 });+ }), p = mS(t, r, "tab"), m = mS(t, r, "tabpanel"), { tabIndex: h } = d, g = Sg(u?.props, { labelable: !0 });delete g.id;- let _ = qp(u?.props), { focusableProps: v } = mh({+ let _ = Yp(u?.props), { focusableProps: v } = gh({...u?.props,isDisabled: l}, n);@@ -15168,7 +15168,7 @@ function Jte(e, t, n) {}//#endregion//#region node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs-var Yte = class {+var gS = class {constructor(e, t, n, r = /* @__PURE__ */ new Set()) {this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";}@@ -15212,11 +15212,11 @@ var Yte = class {};//#endregion//#region node_modules/react-aria/dist/private/tabs/useTabList.mjs-function Xte(e, t, n) {- let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = lg(), { collectionProps: l } = Gv({+function _S(e, t, n) {+ let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = ug(), { collectionProps: l } = Xv({ref: n,selectionManager: o,- keyboardDelegate: (0, I.useMemo)(() => new Yte(a, c, r, s), [+ keyboardDelegate: (0, I.useMemo)(() => new gS(a, c, r, s), [a,s,r,@@ -15226,9 +15226,9 @@ function Xte(e, t, n) {disallowEmptySelection: !0,scrollRef: n,linkBehavior: "selection"- }), u = Hm();- return nS.set(t, u), { tabListProps: {- ...H(l, $h({+ }), u = Wm();+ return pS.set(t, u), { tabListProps: {+ ...H(l, tg({...e,id: u})),@@ -15239,12 +15239,12 @@ function Xte(e, t, n) {}//#endregion//#region node_modules/react-aria/dist/private/tabs/useTabPanel.mjs-function Zte(e, t, n) {- let r = Xy(n) ? void 0 : 0, i = rS(t, e.id ?? t?.selectedKey, "tabpanel");- return { tabPanelProps: H($h({+function vS(e, t, n) {+ let r = tb(n) ? void 0 : 0, i = mS(t, e.id ?? t?.selectedKey, "tabpanel");+ return { tabPanelProps: H(tg({...e,id: i,- "aria-labelledby": rS(t, t?.selectedKey, "tab")+ "aria-labelledby": mS(t, t?.selectedKey, "tab")}), {tabIndex: r,role: "tabpanel",@@ -15254,7 +15254,7 @@ function Zte(e, t, n) {}//#endregion//#region node_modules/scheduler/cjs/scheduler.production.js-var Qte = /* @__PURE__ */ F(((e) => {+var yS = /* @__PURE__ */ F(((e) => {function t(e, t) {var n = e.length;e.push(t);@@ -15453,10 +15453,10 @@ var Qte = /* @__PURE__ */ F(((e) => {}};};-})), $te = /* @__PURE__ */ F(((e, t) => {- t.exports = Qte();-})), ene = /* @__PURE__ */ F(((e) => {- var t = $te(), n = oe(), r = bh();+})), bS = /* @__PURE__ */ F(((e, t) => {+ t.exports = yS();+})), xS = /* @__PURE__ */ F(((e) => {+ var t = bS(), n = ce(), r = Sh();function i(e) {var t = "https://react.dev/errors/" + e;if (1 < arguments.length) {@@ -15626,22 +15626,22 @@ var Qte = /* @__PURE__ */ F(((e) => {}return null;}- var w = Object.assign, T = Symbol.for("react.element"), E = Symbol.for("react.transitional.element"), D = Symbol.for("react.portal"), O = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), j = Symbol.for("react.consumer"), M = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), ee = Symbol.for("react.suspense_list"), F = Symbol.for("react.memo"), te = Symbol.for("react.lazy"), ne = Symbol.for("react.activity"), re = Symbol.for("react.legacy_hidden"), ie = Symbol.for("react.memo_cache_sentinel"), ae = Symbol.for("react.view_transition"), se = Symbol.for("react.recoverable"), ce = Symbol.iterator;- function I(e) {- return typeof e != "object" || !e ? null : (e = ce && e[ce] || e["@@iterator"], typeof e == "function" ? e : null);- }- var L = Symbol.for("react.client.reference");+ var w = Object.assign, T = Symbol.for("react.element"), E = Symbol.for("react.transitional.element"), D = Symbol.for("react.portal"), O = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), j = Symbol.for("react.consumer"), M = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), ee = Symbol.for("react.suspense"), te = Symbol.for("react.suspense_list"), P = Symbol.for("react.memo"), ne = Symbol.for("react.lazy"), F = Symbol.for("react.activity"), re = Symbol.for("react.legacy_hidden"), ie = Symbol.for("react.memo_cache_sentinel"), ae = Symbol.for("react.view_transition"), oe = Symbol.for("react.recoverable"), se = Symbol.iterator;function le(e) {+ return typeof e != "object" || !e ? null : (e = se && e[se] || e["@@iterator"], typeof e == "function" ? e : null);+ }+ var ue = Symbol.for("react.client.reference");+ function I(e) {if (e == null) return null;- if (typeof e == "function") return e.$$typeof === L ? null : e.displayName || e.name || null;+ if (typeof e == "function") return e.$$typeof === ue ? null : e.displayName || e.name || null;if (typeof e == "string") return e;switch (e) {case O: return "Fragment";case A: return "Profiler";case k: return "StrictMode";- case P: return "Suspense";- case ee: return "SuspenseList";- case ne: return "Activity";+ case ee: return "Suspense";+ case te: return "SuspenseList";+ case F: return "Activity";case ae: return "ViewTransition";}if (typeof e == "object") switch (e.$$typeof) {@@ -15651,16 +15651,16 @@ var Qte = /* @__PURE__ */ F(((e) => {case N:var t = e.render;return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;- case F: return t = e.displayName || null, t === null ? le(e.type) || "Memo" : t;- case te:+ case P: return t = e.displayName || null, t === null ? I(e.type) || "Memo" : t;+ case ne:t = e._payload, e = e._init;try {- return le(e(t));+ return I(e(t));} catch {}}return null;}- var ue = Array.isArray, R = n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, z = r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, de = {+ var L = Array.isArray, R = n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, z = r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, de = {pending: !1,data: null,method: null,@@ -16235,7 +16235,7 @@ var Qte = /* @__PURE__ */ F(((e) => {if (t == null) {if (r != null) {if (n != null) throw Error(i(92));- if (ue(r)) {+ if (L(r)) {if (1 < r.length) throw Error(i(93));r = r[0];}@@ -16621,7 +16621,7 @@ var Qte = /* @__PURE__ */ F(((e) => {twist: 0,pointerType: 0,isPrimary: 0- })), rr = Fn(w({}, In, { submitter: 0 })), B = Fn(w({}, Rn, {+ })), rr = Fn(w({}, In, { submitter: 0 })), ir = Fn(w({}, Rn, {touches: 0,targetTouches: 0,changedTouches: 0,@@ -16630,11 +16630,11 @@ var Qte = /* @__PURE__ */ F(((e) => {ctrlKey: 0,shiftKey: 0,getModifierState: er- })), ir = Fn(w({}, In, {+ })), ar = Fn(w({}, In, {propertyName: 0,elapsedTime: 0,pseudoElement: 0- })), ar = Fn(w({}, Un, {+ })), B = Fn(w({}, Un, {deltaX: function(e) {return "deltaX" in e ? e.deltaX : "wheelDeltaX" in e ? -e.wheelDeltaX : 0;},@@ -16981,14 +16981,14 @@ var Qte = /* @__PURE__ */ F(((e) => {if (r = e, typeof r == "function") Ai(r) && (s = 1);else if (typeof r == "string") s = nh(e, n, _e.current) ? 26 : e === "html" || e === "head" || e === "body" ? 27 : 5;else a: switch (r) {- case ne: return e = ki(31, n, t, a), e.elementType = ne, e.lanes = o, e;+ case F: return e = ki(31, n, t, a), e.elementType = F, e.lanes = o, e;case O: return Pi(n.children, a, o, t);case k:s = 8, a |= 24;break;case A: return e = ki(12, n, t, a | 2), e.elementType = A, e.lanes = o, e;- case P: return e = ki(13, n, t, a), e.elementType = P, e.lanes = o, e;- case ee: return e = ki(19, n, t, a), e.elementType = ee, e.lanes = o, e;+ case ee: return e = ki(13, n, t, a), e.elementType = ee, e.lanes = o, e;+ case te: return e = ki(19, n, t, a), e.elementType = te, e.lanes = o, e;case re:case ae: return e = a | 32, e = ki(30, n, t, e), e.elementType = ae, e.lanes = o, e.stateNode = {autoName: null,@@ -17007,10 +17007,10 @@ var Qte = /* @__PURE__ */ F(((e) => {case N:s = 11;break a;- case F:+ case P:s = 14;break a;- case te:+ case ne:s = 16, r = null;break a;}@@ -17115,7 +17115,7 @@ var Qte = /* @__PURE__ */ F(((e) => {break;case "textarea": Zf("invalid", t), sn(t, r.value, r.defaultValue, r.children);}- n = r.children, typeof n != "string" && typeof n != "number" && typeof n != "bigint" || t.textContent === "" + n || !0 === r.suppressHydrationWarning || lp(t.textContent, n) ? (r.popover != null && (Zf("beforetoggle", t), Zf("toggle", t)), r.onScroll != null && Zf("scroll", t), r.onScrollEnd != null && Zf("scrollend", t), r.onClick != null && (t.onclick = gn), t = !0) : t = !1, t || oa(e, !0);+ n = r.children, typeof n != "string" && typeof n != "number" && typeof n != "bigint" || t.textContent === "" + n || !0 === r.suppressHydrationWarning || V(t.textContent, n) ? (r.popover != null && (Zf("beforetoggle", t), Zf("toggle", t)), r.onScroll != null && Zf("scroll", t), r.onScrollEnd != null && Zf("scrollend", t), r.onClick != null && (t.onclick = gn), t = !0) : t = !1, t || oa(e, !0);}function ca(e) {for (ea = e.return; ea;) switch (ea.tag) {@@ -17459,7 +17459,7 @@ var Qte = /* @__PURE__ */ F(((e) => {}function l(e, t, n, r) {var i = n.type;- return i === O ? (e = d(e, t, n.props.children, r, n.key), oo(e, n), e) : t !== null && (t.elementType === i || typeof i == "object" && i && i.$$typeof === te && $a(i) === t.type) ? (t = a(t, n.props), oo(t, n), t.return = e, t) : (t = Ni(n.type, n.key, n.props, null, e.mode, r), oo(t, n), t.return = e, t);+ return i === O ? (e = d(e, t, n.props.children, r, n.key), oo(e, n), e) : t !== null && (t.elementType === i || typeof i == "object" && i && i.$$typeof === ne && $a(i) === t.type) ? (t = a(t, n.props), oo(t, n), t.return = e, t) : (t = Ni(n.type, n.key, n.props, null, e.mode, r), oo(t, n), t.return = e, t);}function u(e, t, n, r) {return t === null || t.tag !== 4 || t.stateNode.containerInfo !== n.containerInfo || t.stateNode.implementation !== n.implementation ? (t = Li(n, e.mode, r), t.return = e, t) : (t = a(t, n.children || []), t.return = e, t);@@ -17473,9 +17473,9 @@ var Qte = /* @__PURE__ */ F(((e) => {switch (t.$$typeof) {case E: return n = Ni(t.type, t.key, t.props, null, e.mode, n), oo(n, t), n.return = e, n;case D: return t = Li(t, e.mode, n), t.return = e, t;- case te: return t = $a(t), f(e, t, n);+ case ne: return t = $a(t), f(e, t, n);}- if (ue(t) || I(t)) return t = Pi(t, e.mode, n, null), t.return = e, t;+ if (L(t) || le(t)) return t = Pi(t, e.mode, n, null), t.return = e, t;if (typeof t.then == "function") return f(e, ao(t), n);if (t.$$typeof === M) return f(e, wa(e, t), n);so(e, t);@@ -17489,9 +17489,9 @@ var Qte = /* @__PURE__ */ F(((e) => {switch (n.$$typeof) {case E: return n.key === i ? l(e, t, n, r) : null;case D: return n.key === i ? u(e, t, n, r) : null;- case te: return n = $a(n), p(e, t, n, r);+ case ne: return n = $a(n), p(e, t, n, r);}- if (ue(n) || I(n)) return i === null ? d(e, t, n, r, null) : null;+ if (L(n) || le(n)) return i === null ? d(e, t, n, r, null) : null;if (typeof n.then == "function") return p(e, t, ao(n), r);if (n.$$typeof === M) return p(e, t, wa(e, n), r);so(e, n);@@ -17504,9 +17504,9 @@ var Qte = /* @__PURE__ */ F(((e) => {switch (r.$$typeof) {case E: return e = e.get(r.key === null ? n : r.key) || null, l(t, e, r, i);case D: return e = e.get(r.key === null ? n : r.key) || null, u(t, e, r, i);- case te: return r = $a(r), m(e, t, n, r, i);+ case ne: return r = $a(r), m(e, t, n, r, i);}- if (ue(r) || I(r)) return e = e.get(n) || null, d(t, e, r, i, null);+ if (L(r) || le(r)) return e = e.get(n) || null, d(t, e, r, i, null);if (typeof r.then == "function") return m(e, t, n, ao(r), i);if (r.$$typeof === M) return m(e, t, n, wa(t, r), i);so(t, r);@@ -17566,7 +17566,7 @@ var Qte = /* @__PURE__ */ F(((e) => {n(e, r.sibling), c = a(r, o.props.children), oo(c, o), c.return = e, e = c;break a;}- } else if (r.elementType === l || typeof l == "object" && l && l.$$typeof === te && $a(l) === r.type) {+ } else if (r.elementType === l || typeof l == "object" && l && l.$$typeof === ne && $a(l) === r.type) {n(e, r.sibling), c = a(r, o.props), oo(c, o), c.return = e, e = c;break a;}@@ -17594,11 +17594,11 @@ var Qte = /* @__PURE__ */ F(((e) => {c = Li(o, e.mode, c), c.return = e, e = c;}return s(e);- case te: return o = $a(o), _(e, r, o, c);+ case ne: return o = $a(o), _(e, r, o, c);}- if (ue(o)) return h(e, r, o, c);- if (I(o)) {- if (l = I(o), typeof l != "function") throw Error(i(150));+ if (L(o)) return h(e, r, o, c);+ if (le(o)) {+ if (l = le(o), typeof l != "function") throw Error(i(150));return o = l.call(o), g(e, r, o, c);}if (typeof o.then == "function") return _(e, r, ao(o), c);@@ -17920,7 +17920,7 @@ var Qte = /* @__PURE__ */ F(((e) => {function us(e) {if (typeof e == "object" && e) {if (typeof e.then == "function") return ls(e);- if (e.$$typeof === se) return;+ if (e.$$typeof === oe) return;if (e.$$typeof === M) return Ca(e);}throw Error(i(438, String(e)));@@ -19220,7 +19220,7 @@ var Qte = /* @__PURE__ */ F(((e) => {t.tag = 11, t = Ic(null, t, e, r, n);break a;}- if (a === F) {+ if (a === P) {t.tag = 14, t = Lc(null, t, e, r, n);break a;}@@ -19229,7 +19229,7 @@ var Qte = /* @__PURE__ */ F(((e) => {break a;}}- throw t = le(e) || e, Error(i(306, t, ""));+ throw t = I(e) || e, Error(i(306, t, ""));}}return t;@@ -19447,7 +19447,7 @@ var Qte = /* @__PURE__ */ F(((e) => {case 27:case 5: r = a.memoizedProps;}- e[yt] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || lp(e.nodeValue, n)), e || oa(t, !0);+ e[yt] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || V(e.nodeValue, n)), e || oa(t, !0);} else e = yp(e).createTextNode(r), e[yt] = t, t.stateNode = e;}return yl(t), null;@@ -20344,8 +20344,8 @@ var Qte = /* @__PURE__ */ F(((e) => {e.stateNode = t;}} else ou || th(o, e.type, e.stateNode);- } else e.stateNode = Ym(o, n, e.memoizedProps);- } else a === n ? n === null && e.stateNode !== null && Fl(e, e.memoizedProps, r.memoizedProps) : (a === null ? (t = r.stateNode, t === null || su || t.parentNode.removeChild(t)) : a.count--, n === null ? ou || th(o, e.type, e.stateNode) : Ym(o, n, e.memoizedProps));+ } else e.stateNode = Xm(o, n, e.memoizedProps);+ } else a === n ? n === null && e.stateNode !== null && Fl(e, e.memoizedProps, r.memoizedProps) : (a === null ? (t = r.stateNode, t === null || su || t.parentNode.removeChild(t)) : a.count--, n === null ? ou || th(o, e.type, e.stateNode) : Xm(o, n, e.memoizedProps));}break;case 27:@@ -21680,7 +21680,7 @@ var Qte = /* @__PURE__ */ F(((e) => {case "touchend":case "touchmove":case "touchstart":- l = B;+ l = ir;break;case ri:case ii:@@ -21688,14 +21688,14 @@ var Qte = /* @__PURE__ */ F(((e) => {l = qn;break;case li:- l = ir;+ l = ar;break;case "scroll":case "scrollend":l = zn;break;case "wheel":- l = ar;+ l = B;break;case "copy":case "cut":@@ -21830,12 +21830,12 @@ var Qte = /* @__PURE__ */ F(((e) => {listeners: o});}- var sp = /\r\n?/g, V = /\u0000|\uFFFD/g;- function cp(e) {- return (typeof e == "string" ? e : "" + e).replace(sp, "\n").replace(V, "");+ var sp = /\r\n?/g, cp = /\u0000|\uFFFD/g;+ function lp(e) {+ return (typeof e == "string" ? e : "" + e).replace(sp, "\n").replace(cp, "");}- function lp(e, t) {- return t = cp(t), cp(e) === t;+ function V(e, t) {+ return t = lp(t), lp(e) === t;}function up(e, t, n, r, a, o) {switch (n) {@@ -23073,7 +23073,7 @@ var Qte = /* @__PURE__ */ F(((e) => {rel: "preload",href: t === "image" && n && n.imageSrcSet ? void 0 : e,as: t- }, n), Om.set(a, e), r.querySelector(i) !== null || t === "style" && r.querySelector(Gm(a)) || t === "script" && r.querySelector(H(a))))) {+ }, n), Om.set(a, e), r.querySelector(i) !== null || t === "style" && r.querySelector(Gm(a)) || t === "script" && r.querySelector(Ym(a))))) {var o = r.createElement("link");fp(o, "link", e), t === "style" && (o[Dt] = !0, o.onload = o.onerror = function() {Pt(o);@@ -23104,7 +23104,7 @@ var Qte = /* @__PURE__ */ F(((e) => {case "serviceworker":case "sharedworker":case "worker":- case "script": if (n.querySelector(H(a))) return;+ case "script": if (n.querySelector(Ym(a))) return;}r = n.createElement("link"), fp(r, "link", e), Nt(r), n.head.appendChild(r);}@@ -23136,7 +23136,7 @@ var Qte = /* @__PURE__ */ F(((e) => {s.loading |= 1;}), c.addEventListener("error", function() {s.loading |= 2;- }), s.loading |= 4, Xm(o, t, r);+ }), s.loading |= 4, H(o, t, r);}o = {type: "stylesheet",@@ -23152,7 +23152,7 @@ var Qte = /* @__PURE__ */ F(((e) => {var n = Pm;if (n && e) {var r = Mt(n).hoistableScripts, i = Jm(e), a = r.get(i);- a || (a = n.querySelector(H(i)), a || (e = w({+ a || (a = n.querySelector(Ym(i)), a || (e = w({src: e,async: !0}, t), (t = Om.get(i)) && Qm(e, t), a = n.createElement("script"), Nt(a), fp(a, "link", e), n.head.appendChild(a)), a = {@@ -23168,7 +23168,7 @@ var Qte = /* @__PURE__ */ F(((e) => {var n = Pm;if (n && e) {var r = Mt(n).hoistableScripts, i = Jm(e), a = r.get(i);- a || (a = n.querySelector(H(i)), a || (e = w({+ a || (a = n.querySelector(Ym(i)), a || (e = w({src: e,async: !0,type: "module"@@ -23265,10 +23265,10 @@ var Qte = /* @__PURE__ */ F(((e) => {function Jm(e) {return "[src=\"" + en(e) + "\"]";}- function H(e) {+ function Ym(e) {return "script[async]" + e;}- function Ym(e, t, n) {+ function Xm(e, t, n) {if (t.count++, t.instance === null) switch (t.type) {case "style":var r = e.querySelector("style[data-href~=\"" + en(n.href) + "\"]");@@ -23279,7 +23279,7 @@ var Qte = /* @__PURE__ */ F(((e) => {href: null,precedence: null});- return r = (e.ownerDocument || e).createElement("style"), Nt(r), fp(r, "style", a), Xm(r, n.precedence, e), t.instance = r;+ return r = (e.ownerDocument || e).createElement("style"), Nt(r), fp(r, "style", a), H(r, n.precedence, e), t.instance = r;case "stylesheet":a = Wm(n.href);var o = e.querySelector(Gm(a));@@ -23288,15 +23288,15 @@ var Qte = /* @__PURE__ */ F(((e) => {var s = o;return s._p = new Promise(function(e, t) {s.onload = e, s.onerror = t;- }), fp(o, "link", r), t.state.loading |= 4, Xm(o, n.precedence, e), t.instance = o;- case "script": return o = Jm(n.src), (a = e.querySelector(H(o))) ? (t.instance = a, Nt(a), a) : (r = n, (a = Om.get(o)) && (r = w({}, n), Qm(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), Nt(a), fp(a, "link", r), e.head.appendChild(a), t.instance = a);+ }), fp(o, "link", r), t.state.loading |= 4, H(o, n.precedence, e), t.instance = o;+ case "script": return o = Jm(n.src), (a = e.querySelector(Ym(o))) ? (t.instance = a, Nt(a), a) : (r = n, (a = Om.get(o)) && (r = w({}, n), Qm(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), Nt(a), fp(a, "link", r), e.head.appendChild(a), t.instance = a);case "void": return null;default: throw Error(i(443, t.type));}- else t.type === "stylesheet" && !(t.state.loading & 4) && (r = t.instance, t.state.loading |= 4, Xm(r, n.precedence, e));+ else t.type === "stylesheet" && !(t.state.loading & 4) && (r = t.instance, t.state.loading |= 4, H(r, n.precedence, e));return t.instance;}- function Xm(e, t, n) {+ function H(e, t, n) {for (var r = n.querySelectorAll("link[rel=\"stylesheet\"][data-precedence],style[data-precedence]"), i = r.length ? r[r.length - 1] : null, a = i, o = 0; o < r.length; o++) {var s = r[o];if (s.dataset.precedence === t) a = s;@@ -23454,17 +23454,17 @@ var Qte = /* @__PURE__ */ F(((e) => {function yh(e) {return e ? (e = Di, e) : Di;}- function xh(e, t, n, r, i, a) {+ function bh(e, t, n, r, i, a) {i = yh(i), r.context === null ? r.context = i : r.pendingContext = i, r = ho(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (r.callback = a), n = go(e, r, t), n !== null && (Hd(n, e, t), _o(n, e, t));}- function Sh(e, t) {+ function xh(e, t) {if (e = e.memoizedState, e !== null && e.dehydrated !== null) {var n = e.retryLane;e.retryLane = n !== 0 && n < t ? n : t;}}function Ch(e, t) {- Sh(e, t), (e = e.alternate) && Sh(e, t);+ xh(e, t), (e = e.alternate) && xh(e, t);}function wh(e) {if (e.tag === 13 || e.tag === 31) {@@ -23817,13 +23817,13 @@ var Qte = /* @__PURE__ */ F(((e) => {var t = this._internalRoot;if (t === null) throw Error(i(409));var n = t.current;- xh(n, zd(), e, t, null, null);+ bh(n, zd(), e, t, null, null);}, tg.prototype.unmount = eg.prototype.unmount = function() {var e = this._internalRoot;if (e !== null) {this._internalRoot = null;var t = e.containerInfo;- xh(e.current, 2, null, e, null, null), qd(), t[xt] = null;+ bh(e.current, 2, null, e, null, null), qd(), t[xt] = null;}};function tg(e) {@@ -23866,7 +23866,7 @@ var Qte = /* @__PURE__ */ F(((e) => {var n = !1, r = "", o = wc, s = Tc, c = Ec;return t != null && (!0 === t.unstable_strictMode && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onUncaughtError !== void 0 && (o = t.onUncaughtError), t.onCaughtError !== void 0 && (s = t.onCaughtError), t.onRecoverableError !== void 0 && (c = t.onRecoverableError)), t = vh(e, 1, !1, null, null, n, r, null, o, s, c, $h), e[xt] = t.current, ep(e), new eg(t);};-})), iS = (/* @__PURE__ */ F(((e, t) => {+})), SS = (/* @__PURE__ */ F(((e, t) => {function n() {if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) try {__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n);@@ -23874,8 +23874,8 @@ var Qte = /* @__PURE__ */ F(((e) => {console.error(e);}}- n(), t.exports = ene();-})))(), tne = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+ n(), t.exports = xS();+})))(), CS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -23883,7 +23883,7 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), nne = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+}, I.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), wS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -23891,7 +23891,7 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.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" })), aS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+}, I.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" })), TS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -23899,7 +23899,7 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.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" })), oS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+}, I.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" })), ES = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -23907,7 +23907,7 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.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" })), sS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+}, I.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" })), DS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -23915,7 +23915,7 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.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" })), rne = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+}, I.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" })), OS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -23923,7 +23923,7 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.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" })), cS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+}, I.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" })), kS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -23931,7 +23931,7 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), lS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+}, I.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), AS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -23939,7 +23939,7 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.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" })), ine = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+}, I.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" })), jS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -23947,7 +23947,7 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.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" })), uS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+}, I.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" })), MS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -23955,7 +23955,7 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.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" })), dS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+}, I.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" })), NS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -23963,7 +23963,7 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.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" })), fS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+}, I.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" })), PS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -23971,7 +23971,7 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.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" })), pS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+}, I.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" })), FS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -23979,7 +23979,7 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.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" })), ane = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+}, I.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" })), IS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -23987,7 +23987,7 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.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" })), mS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+}, I.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" })), LS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -23995,7 +23995,7 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.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" })), hS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+}, I.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" })), RS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -24003,7 +24003,7 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.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" })), gS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+}, I.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" })), zS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -24011,7 +24011,7 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), _S = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+}, I.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), BS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -24019,7 +24019,7 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.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" })), vS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+}, I.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" })), VS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -24027,7 +24027,7 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.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" })), yS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+}, I.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" })), HS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -24035,7 +24035,7 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.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" })), bS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+}, I.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" })), US = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -24043,7 +24043,7 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.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" })), xS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+}, I.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" })), WS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -24051,7 +24051,7 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.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" })), SS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+}, I.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" })), GS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -24059,7 +24059,7 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.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" })), CS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+}, I.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" })), KS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -24067,7 +24067,7 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.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" })), wS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+}, I.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" })), qS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -24075,7 +24075,7 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.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" })), TS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+}, I.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" })), JS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -24083,7 +24083,7 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.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" })), ES = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+}, I.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" })), YS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -24091,7 +24091,7 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.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" })), DS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+}, I.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" })), XS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -24099,7 +24099,7 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.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" })), OS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+}, I.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" })), ZS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -24107,7 +24107,7 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.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" })), kS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+}, I.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" })), QS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -24115,7 +24115,7 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.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" })), AS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+}, I.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" })), $S = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -24123,7 +24123,7 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.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" })), jS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+}, I.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" })), eC = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -24131,7 +24131,7 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.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" })), MS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+}, I.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" })), tC = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -24139,7 +24139,7 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.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" })), NS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+}, I.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" })), nC = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -24147,7 +24147,7 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), PS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+}, I.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), rC = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -24155,7 +24155,7 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.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" })), FS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+}, I.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" })), iC = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -24163,7 +24163,7 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.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" })), IS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {+}, I.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" })), aC = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -24171,100 +24171,100 @@ var Qte = /* @__PURE__ */ F(((e) => {fill: e,...r,className: "remixicon " + (n || "")-}, I.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" })), LS = (e, t) => {+}, I.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" })), oC = (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;-}, RS = (e, t) => ({+}, sC = (e, t) => ({classGroupId: e,validator: t-}), zS = (e = /* @__PURE__ */ new Map(), t = null, n) => ({+}), cC = (e = /* @__PURE__ */ new Map(), t = null, n) => ({nextPart: e,validators: t,classGroupId: n-}), BS = "-", VS = [], HS = "arbitrary..", US = (e) => {- let t = KS(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;+}), lC = "-", uC = [], zte = "arbitrary..", Bte = (e) => {+ let t = Hte(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;return {getClassGroupId: (e) => {- if (e.startsWith("[") && e.endsWith("]")) return GS(e);- let n = e.split(BS);- return WS(n, +(n[0] === "" && n.length > 1), t);+ if (e.startsWith("[") && e.endsWith("]")) return Vte(e);+ let n = e.split(lC);+ return dC(n, +(n[0] === "" && n.length > 1), t);},getConflictingClassGroupIds: (e, t) => {if (t) {let t = r[e], i = n[e];- return t ? i ? LS(i, t) : t : i || VS;+ return t ? i ? oC(i, t) : t : i || uC;}- return n[e] || VS;+ return n[e] || uC;}};-}, WS = (e, t, n) => {+}, dC = (e, t, n) => {if (e.length - t === 0) return n.classGroupId;let r = e[t], i = n.nextPart.get(r);if (i) {- let n = WS(e, t + 1, i);+ let n = dC(e, t + 1, i);if (n) return n;}let a = n.validators;if (a === null) return;- let o = t === 0 ? e.join(BS) : e.slice(t).join(BS), s = a.length;+ let o = t === 0 ? e.join(lC) : e.slice(t).join(lC), s = a.length;for (let e = 0; e < s; e++) {let t = a[e];if (t.validator(o)) return t.classGroupId;}-}, GS = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {+}, Vte = (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 ? HS + r : void 0;-})(), KS = (e) => {+ return r ? zte + r : void 0;+})(), Hte = (e) => {let { theme: t, classGroups: n } = e;- return qS(n, t);-}, qS = (e, t) => {- let n = zS();+ return Ute(n, t);+}, Ute = (e, t) => {+ let n = cC();for (let r in e) {let i = e[r];- JS(i, n, r, t);+ fC(i, n, r, t);}return n;-}, JS = (e, t, n, r) => {+}, fC = (e, t, n, r) => {let i = e.length;for (let a = 0; a < i; a++) {let i = e[a];- YS(i, t, n, r);+ Wte(i, t, n, r);}-}, YS = (e, t, n, r) => {+}, Wte = (e, t, n, r) => {if (typeof e == "string") {- XS(e, t, n);+ Gte(e, t, n);return;}if (typeof e == "function") {- ZS(e, t, n, r);+ Kte(e, t, n, r);return;}- QS(e, t, n, r);-}, XS = (e, t, n) => {- let r = e === "" ? t : $S(t, e);+ qte(e, t, n, r);+}, Gte = (e, t, n) => {+ let r = e === "" ? t : pC(t, e);r.classGroupId = n;-}, ZS = (e, t, n, r) => {- if (eC(e)) {- JS(e(r), t, n, r);+}, Kte = (e, t, n, r) => {+ if (Jte(e)) {+ fC(e(r), t, n, r);return;}- t.validators === null && (t.validators = []), t.validators.push(RS(n, e));-}, QS = (e, t, n, r) => {+ t.validators === null && (t.validators = []), t.validators.push(sC(n, e));+}, qte = (e, t, n, r) => {let i = Object.entries(e), a = i.length;for (let e = 0; e < a; e++) {let [a, o] = i[e];- JS(o, $S(t, a), n, r);+ fC(o, pC(t, a), n, r);}-}, $S = (e, t) => {- let n = e, r = t.split(BS), i = r.length;+}, pC = (e, t) => {+ let n = e, r = t.split(lC), i = r.length;for (let e = 0; e < i; e++) {let t = r[e], i = n.nextPart.get(t);- i || (i = zS(), n.nextPart.set(t, i)), n = i;+ i || (i = cC(), n.nextPart.set(t, i)), n = i;}return n;-}, eC = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, tC = (e) => {+}, Jte = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Yte = (e) => {if (e < 1) return {get: () => void 0,set: () => {}@@ -24282,19 +24282,19 @@ var Qte = /* @__PURE__ */ F(((e) => {e in n ? n[e] = t : i(e, t);}};-}, nC = "!", rC = ":", iC = [], aC = (e, t, n, r, i) => ({+}, mC = "!", hC = ":", Xte = [], gC = (e, t, n, r, i) => ({modifiers: e,hasImportantModifier: t,baseClassName: n,maybePostfixModifierPosition: r,isExternal: i-}), oC = (e) => {+}), Zte = (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 === rC) {+ if (o === hC) {t.push(e.slice(i, s)), i = s + 1;continue;}@@ -24306,13 +24306,13 @@ var Qte = /* @__PURE__ */ F(((e) => {o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;}let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;- s.endsWith(nC) ? (c = s.slice(0, -1), l = !0) : s.startsWith(nC) && (c = s.slice(1), l = !0);+ s.endsWith(mC) ? (c = s.slice(0, -1), l = !0) : s.startsWith(mC) && (c = s.slice(1), l = !0);let u = a && a > i ? a - i : void 0;- return aC(t, l, c, u);+ return gC(t, l, c, u);};if (t) {- let e = t + rC, n = r;- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : aC(iC, !1, t, void 0, !0);+ let e = t + hC, n = r;+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : gC(Xte, !1, t, void 0, !0);}if (n) {let e = r;@@ -24322,7 +24322,7 @@ var Qte = /* @__PURE__ */ F(((e) => {});}return r;-}, sC = (e) => {+}, Qte = (e) => {let t = /* @__PURE__ */ new Map();return e.orderSensitiveModifiers.forEach((e, n) => {t.set(e, 1e6 + n);@@ -24334,18 +24334,18 @@ var Qte = /* @__PURE__ */ F(((e) => {}return r.length > 0 && (r.sort(), n.push(...r)), n;};-}, cC = (e) => ({- cache: tC(e.cacheSize),- parseClassName: oC(e),- sortModifiers: sC(e),- postfixLookupClassGroupIds: lC(e),- ...US(e)-}), lC = (e) => {+}, $te = (e) => ({+ cache: Yte(e.cacheSize),+ parseClassName: Zte(e),+ sortModifiers: Qte(e),+ postfixLookupClassGroupIds: ene(e),+ ...Bte(e)+}), ene = (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;-}, uC = /\s+/, dC = (e, t) => {- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(uC), l = "";+}, tne = /\s+/, nne = (e, t) => {+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(tne), 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) {@@ -24369,7 +24369,7 @@ var Qte = /* @__PURE__ */ F(((e) => {}h = !1;}- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + nC : _, y = v + g;+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + mC : _, y = v + g;if (s.indexOf(y) > -1) continue;s.push(y);let b = i(g, h);@@ -24380,34 +24380,34 @@ var Qte = /* @__PURE__ */ F(((e) => {l = t + (l.length > 0 ? " " + l : l);}return l;-}, fC = (...e) => {+}, rne = (...e) => {let t = 0, n, r, i = "";- for (; t < e.length;) (n = e[t++]) && (r = pC(n)) && (i && (i += " "), i += r);+ for (; t < e.length;) (n = e[t++]) && (r = _C(n)) && (i && (i += " "), i += r);return i;-}, pC = (e) => {+}, _C = (e) => {if (typeof e == "string") return e;let t, n = "";- for (let r = 0; r < e.length; r++) e[r] && (t = pC(e[r])) && (n && (n += " "), n += t);+ for (let r = 0; r < e.length; r++) e[r] && (t = _C(e[r])) && (n && (n += " "), n += t);return n;-}, mC = (e, ...t) => {- let n, r, i, a, o = (o) => (n = cC(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {+}, vC = (e, ...t) => {+ let n, r, i, a, o = (o) => (n = $te(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 = dC(e, n);+ let a = nne(e, n);return i(e, a), a;};- return a = o, (...e) => a(fC(...e));-}, hC = [], gC = (e) => {- let t = (t) => t[e] || hC;+ return a = o, (...e) => a(rne(...e));+}, ine = [], yC = (e) => {+ let t = (t) => t[e] || ine;return t.isThemeGetter = !0, t.themeKey = e, t;-}, _C = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, vC = /^\((?:(\w[\w-]*):)?(.+)\)$/i, yC = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, bC = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, xC = /\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$/, SC = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, CC = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, wC = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, TC = (e) => yC.test(e), EC = (e) => !!e && !Number.isNaN(Number(e)), DC = (e) => !!e && Number.isInteger(Number(e)), OC = (e) => e.endsWith("%") && EC(e.slice(0, -1)), kC = (e) => bC.test(e), AC = () => !0, jC = (e) => xC.test(e) && !SC.test(e), MC = () => !1, NC = (e) => CC.test(e), PC = (e) => wC.test(e), FC = (e) => !U(e) && !W(e), IC = (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)), LC = (e) => QC(e, nw, MC), U = (e) => _C.test(e), RC = (e) => QC(e, rw, jC), zC = (e) => QC(e, iw, EC), BC = (e) => QC(e, ow, AC), VC = (e) => QC(e, aw, MC), HC = (e) => QC(e, ew, MC), UC = (e) => QC(e, tw, PC), WC = (e) => QC(e, sw, NC), W = (e) => vC.test(e), GC = (e) => $C(e, rw), KC = (e) => $C(e, aw), qC = (e) => $C(e, ew), JC = (e) => $C(e, nw), YC = (e) => $C(e, tw), XC = (e) => $C(e, sw, !0), ZC = (e) => $C(e, ow, !0), QC = (e, t, n) => {- let r = _C.exec(e);+}, bC = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, xC = /^\((?:(\w[\w-]*):)?(.+)\)$/i, ane = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, one = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, sne = /\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$/, cne = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, lne = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, une = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, SC = (e) => ane.test(e), CC = (e) => !!e && !Number.isNaN(Number(e)), wC = (e) => !!e && Number.isInteger(Number(e)), TC = (e) => e.endsWith("%") && CC(e.slice(0, -1)), EC = (e) => one.test(e), DC = () => !0, dne = (e) => sne.test(e) && !cne.test(e), OC = () => !1, fne = (e) => lne.test(e), pne = (e) => une.test(e), mne = (e) => !U(e) && !W(e), hne = (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)), gne = (e) => IC(e, BC, OC), U = (e) => bC.test(e), kC = (e) => IC(e, VC, dne), AC = (e) => IC(e, wne, CC), _ne = (e) => IC(e, UC, DC), vne = (e) => IC(e, HC, OC), jC = (e) => IC(e, RC, OC), yne = (e) => IC(e, zC, pne), MC = (e) => IC(e, WC, fne), W = (e) => xC.test(e), NC = (e) => LC(e, VC), bne = (e) => LC(e, HC), PC = (e) => LC(e, RC), xne = (e) => LC(e, BC), Sne = (e) => LC(e, zC), FC = (e) => LC(e, WC, !0), Cne = (e) => LC(e, UC, !0), IC = (e, t, n) => {+ let r = bC.exec(e);return r ? r[1] ? t(r[1]) : n(r[2]) : !1;-}, $C = (e, t, n = !1) => {- let r = vC.exec(e);+}, LC = (e, t, n = !1) => {+ let r = xC.exec(e);return r ? r[1] ? t(r[1]) : n : !1;-}, ew = (e) => e === "position" || e === "percentage", tw = (e) => e === "image" || e === "url", nw = (e) => e === "length" || e === "size" || e === "bg-size", rw = (e) => e === "length", iw = (e) => e === "number", aw = (e) => e === "family-name", ow = (e) => e === "number" || e === "weight", sw = (e) => e === "shadow", cw = () => {- let e = gC("color"), t = gC("font"), n = gC("text"), r = gC("font-weight"), i = gC("tracking"), a = gC("leading"), o = gC("breakpoint"), s = gC("container"), c = gC("spacing"), l = gC("radius"), u = gC("shadow"), d = gC("inset-shadow"), f = gC("text-shadow"), p = gC("drop-shadow"), m = gC("blur"), h = gC("perspective"), g = gC("aspect"), _ = gC("ease"), v = gC("animate"), y = () => [+}, RC = (e) => e === "position" || e === "percentage", zC = (e) => e === "image" || e === "url", BC = (e) => e === "length" || e === "size" || e === "bg-size", VC = (e) => e === "length", wne = (e) => e === "number", HC = (e) => e === "family-name", UC = (e) => e === "number" || e === "weight", WC = (e) => e === "shadow", GC = () => {+ let e = yC("color"), t = yC("font"), n = yC("text"), r = yC("font-weight"), i = yC("tracking"), a = yC("leading"), o = yC("breakpoint"), s = yC("container"), c = yC("spacing"), l = yC("radius"), u = yC("shadow"), d = yC("inset-shadow"), f = yC("text-shadow"), p = yC("drop-shadow"), m = yC("blur"), h = yC("perspective"), g = yC("aspect"), _ = yC("ease"), v = yC("animate"), y = () => ["auto","avoid","all",@@ -24449,12 +24449,12 @@ var Qte = /* @__PURE__ */ F(((e) => {U,c], T = () => [- TC,+ SC,"full","auto",...w()], E = () => [- DC,+ wC,"none","subgrid",W,@@ -24463,15 +24463,15 @@ var Qte = /* @__PURE__ */ F(((e) => {"auto",{ span: ["full",- DC,+ wC,W,U] },- DC,+ wC,W,U], O = () => [- DC,+ wC,"auto",W,U@@ -24501,7 +24501,7 @@ var Qte = /* @__PURE__ */ F(((e) => {"center-safe","end-safe"], M = () => ["auto", ...w()], N = () => [- TC,+ SC,"auto","full","dvw",@@ -24514,9 +24514,9 @@ var Qte = /* @__PURE__ */ F(((e) => {"max","fit",...w()- ], P = () => [+ ], ee = () => [s,- TC,+ SC,"screen","full","dvw",@@ -24526,8 +24526,8 @@ var Qte = /* @__PURE__ */ F(((e) => {"max","fit",...w()- ], ee = () => [- TC,+ ], te = () => [+ SC,"screen","full","lh",@@ -24538,16 +24538,16 @@ var Qte = /* @__PURE__ */ F(((e) => {"max","fit",...w()- ], F = () => [+ ], P = () => [e,W,U- ], te = () => [+ ], ne = () => [...b(),- qC,- HC,+ PC,+ jC,{ position: [W, U] }- ], ne = () => ["no-repeat", { repeat: [+ ], F = () => ["no-repeat", { repeat: ["","x","y",@@ -24557,13 +24557,13 @@ var Qte = /* @__PURE__ */ F(((e) => {"auto","cover","contain",- JC,- LC,+ xne,+ gne,{ size: [W, U] }], ie = () => [- OC,- GC,- RC+ TC,+ NC,+ kC], ae = () => ["","none",@@ -24573,9 +24573,9 @@ var Qte = /* @__PURE__ */ F(((e) => {U], oe = () => ["",- EC,- GC,- RC+ CC,+ NC,+ kC], se = () => ["solid","dashed",@@ -24598,33 +24598,33 @@ var Qte = /* @__PURE__ */ F(((e) => {"saturation","color","luminosity"- ], I = () => [- EC,- OC,- qC,- HC- ], L = () => [+ ], le = () => [+ CC,+ TC,+ PC,+ jC+ ], ue = () => ["","none",m,W,U- ], le = () => [+ ], I = () => ["none",- EC,+ CC,W,U- ], ue = () => [+ ], L = () => ["none",- EC,+ CC,W,U], R = () => [- EC,+ CC,W,U], z = () => [- TC,+ SC,"full",...w()];@@ -24638,17 +24638,17 @@ var Qte = /* @__PURE__ */ F(((e) => {"bounce"],aspect: ["video"],- blur: [kC],- breakpoint: [kC],- color: [AC],- container: [kC],- "drop-shadow": [kC],+ blur: [EC],+ breakpoint: [EC],+ color: [DC],+ container: [EC],+ "drop-shadow": [EC],ease: ["in","out","in-out"],- font: [FC],+ font: [mne],"font-weight": ["thin","extralight",@@ -24660,7 +24660,7 @@ var Qte = /* @__PURE__ */ F(((e) => {"extrabold","black"],- "inset-shadow": [kC],+ "inset-shadow": [EC],leading: ["none","tight",@@ -24677,11 +24677,11 @@ var Qte = /* @__PURE__ */ F(((e) => {"distant","none"],- radius: [kC],- shadow: [kC],- spacing: ["px", EC],- text: [kC],- "text-shadow": [kC],+ radius: [EC],+ shadow: [EC],+ spacing: ["px", CC],+ text: [EC],+ "text-shadow": [EC],tracking: ["tighter","tight",@@ -24695,7 +24695,7 @@ var Qte = /* @__PURE__ */ F(((e) => {aspect: [{ aspect: ["auto","square",- TC,+ SC,U,W,g@@ -24708,9 +24708,9 @@ var Qte = /* @__PURE__ */ F(((e) => {W,U] }],- "container-named": [IC],+ "container-named": [hne],columns: [{ columns: [- EC,+ CC,"auto",U,W,@@ -24810,13 +24810,13 @@ var Qte = /* @__PURE__ */ F(((e) => {"collapse"],z: [{ z: [- DC,+ wC,"auto",W,U] }],basis: [{ basis: [- TC,+ SC,"full","auto",s,@@ -24834,8 +24834,8 @@ var Qte = /* @__PURE__ */ F(((e) => {"wrap-reverse"] }],flex: [{ flex: [- EC,- TC,+ CC,+ SC,"auto","initial","none",@@ -24843,18 +24843,18 @@ var Qte = /* @__PURE__ */ F(((e) => {] }],grow: [{ grow: ["",- EC,+ CC,W,U] }],shrink: [{ shrink: ["",- EC,+ CC,W,U] }],order: [{ order: [- DC,+ wC,"first","last","none",@@ -24921,12 +24921,12 @@ var Qte = /* @__PURE__ */ F(((e) => {"space-y": [{ "space-y": w() }],"space-y-reverse": ["space-y-reverse"],size: [{ size: N() }],- "inline-size": [{ inline: ["auto", ...P()] }],- "min-inline-size": [{ "min-inline": ["auto", ...P()] }],- "max-inline-size": [{ "max-inline": ["none", ...P()] }],- "block-size": [{ block: ["auto", ...ee()] }],- "min-block-size": [{ "min-block": ["auto", ...ee()] }],- "max-block-size": [{ "max-block": ["none", ...ee()] }],+ "inline-size": [{ inline: ["auto", ...ee()] }],+ "min-inline-size": [{ "min-inline": ["auto", ...ee()] }],+ "max-inline-size": [{ "max-inline": ["none", ...ee()] }],+ "block-size": [{ block: ["auto", ...te()] }],+ "min-block-size": [{ "min-block": ["auto", ...te()] }],+ "max-block-size": [{ "max-block": ["none", ...te()] }],w: [{ w: [s,"screen",@@ -24966,15 +24966,15 @@ var Qte = /* @__PURE__ */ F(((e) => {"font-size": [{ text: ["base",n,- GC,- RC+ NC,+ kC] }],"font-smoothing": ["antialiased", "subpixel-antialiased"],"font-style": ["italic", "not-italic"],"font-weight": [{ font: [r,- ZC,- BC+ Cne,+ _ne] }],"font-stretch": [{ "font-stretch": ["ultra-condensed",@@ -24986,12 +24986,12 @@ var Qte = /* @__PURE__ */ F(((e) => {"expanded","extra-expanded","ultra-expanded",- OC,+ TC,U] }],"font-family": [{ font: [- KC,- VC,+ bne,+ vne,t] }],"font-features": [{ "font-features": [U] }],@@ -25007,10 +25007,10 @@ var Qte = /* @__PURE__ */ F(((e) => {U] }],"line-clamp": [{ "line-clamp": [- EC,+ CC,"none",W,- zC+ AC] }],leading: [{ leading: ["none",@@ -25038,8 +25038,8 @@ var Qte = /* @__PURE__ */ F(((e) => {"start","end"] }],- "placeholder-color": [{ placeholder: F() }],- "text-color": [{ text: F() }],+ "placeholder-color": [{ placeholder: P() }],+ "text-color": [{ text: P() }],"text-decoration": ["underline","overline",@@ -25048,15 +25048,15 @@ var Qte = /* @__PURE__ */ F(((e) => {],"text-decoration-style": [{ decoration: [...se(), "wavy"] }],"text-decoration-thickness": [{ decoration: [- EC,+ CC,"from-font","auto",W,- RC+ kC] }],- "text-decoration-color": [{ decoration: F() }],+ "text-decoration-color": [{ decoration: P() }],"underline-offset": [{ "underline-offset": [- EC,+ CC,"auto",W,U@@ -25080,7 +25080,7 @@ var Qte = /* @__PURE__ */ F(((e) => {] }],indent: [{ indent: w() }],"tab-size": [{ tab: [- DC,+ wC,W,U] }],@@ -25141,8 +25141,8 @@ var Qte = /* @__PURE__ */ F(((e) => {"padding","content"] }],- "bg-position": [{ bg: te() }],- "bg-repeat": [{ bg: ne() }],+ "bg-position": [{ bg: ne() }],+ "bg-repeat": [{ bg: F() }],"bg-size": [{ bg: re() }],"bg-image": [{ bg: ["none",@@ -25158,7 +25158,7 @@ var Qte = /* @__PURE__ */ F(((e) => {"l","tl"] },- DC,+ wC,W,U],@@ -25169,21 +25169,21 @@ var Qte = /* @__PURE__ */ F(((e) => {],conic: ["",- DC,+ wC,W,U]},- YC,- UC+ Sne,+ yne] }],- "bg-color": [{ bg: F() }],+ "bg-color": [{ bg: P() }],"gradient-from-pos": [{ from: ie() }],"gradient-via-pos": [{ via: ie() }],"gradient-to-pos": [{ to: ie() }],- "gradient-from": [{ from: F() }],- "gradient-via": [{ via: F() }],- "gradient-to": [{ to: F() }],+ "gradient-from": [{ from: P() }],+ "gradient-via": [{ via: P() }],+ "gradient-to": [{ to: P() }],rounded: [{ rounded: ae() }],"rounded-s": [{ "rounded-s": ae() }],"rounded-e": [{ "rounded-e": ae() }],@@ -25224,67 +25224,67 @@ var Qte = /* @__PURE__ */ F(((e) => {"hidden","none"] }],- "border-color": [{ border: F() }],- "border-color-x": [{ "border-x": F() }],- "border-color-y": [{ "border-y": F() }],- "border-color-s": [{ "border-s": F() }],- "border-color-e": [{ "border-e": F() }],- "border-color-bs": [{ "border-bs": F() }],- "border-color-be": [{ "border-be": F() }],- "border-color-t": [{ "border-t": F() }],- "border-color-r": [{ "border-r": F() }],- "border-color-b": [{ "border-b": F() }],- "border-color-l": [{ "border-l": F() }],- "divide-color": [{ divide: F() }],+ "border-color": [{ border: P() }],+ "border-color-x": [{ "border-x": P() }],+ "border-color-y": [{ "border-y": P() }],+ "border-color-s": [{ "border-s": P() }],+ "border-color-e": [{ "border-e": P() }],+ "border-color-bs": [{ "border-bs": P() }],+ "border-color-be": [{ "border-be": P() }],+ "border-color-t": [{ "border-t": P() }],+ "border-color-r": [{ "border-r": P() }],+ "border-color-b": [{ "border-b": P() }],+ "border-color-l": [{ "border-l": P() }],+ "divide-color": [{ divide: P() }],"outline-style": [{ outline: [...se(),"none","hidden"] }],"outline-offset": [{ "outline-offset": [- EC,+ CC,W,U] }],"outline-w": [{ outline: ["",- EC,- GC,- RC+ CC,+ NC,+ kC] }],- "outline-color": [{ outline: F() }],+ "outline-color": [{ outline: P() }],shadow: [{ shadow: ["","inner","none",u,- XC,- WC+ FC,+ MC] }],- "shadow-color": [{ shadow: F() }],+ "shadow-color": [{ shadow: P() }],"inset-shadow": [{ "inset-shadow": ["none",d,- XC,- WC+ FC,+ MC] }],- "inset-shadow-color": [{ "inset-shadow": F() }],+ "inset-shadow-color": [{ "inset-shadow": P() }],"ring-w": [{ ring: oe() }],"ring-w-inset": ["ring-inset"],- "ring-color": [{ ring: F() }],- "ring-offset-w": [{ "ring-offset": [EC, RC] }],- "ring-offset-color": [{ "ring-offset": F() }],+ "ring-color": [{ ring: P() }],+ "ring-offset-w": [{ "ring-offset": [CC, kC] }],+ "ring-offset-color": [{ "ring-offset": P() }],"inset-ring-w": [{ "inset-ring": oe() }],- "inset-ring-color": [{ "inset-ring": F() }],+ "inset-ring-color": [{ "inset-ring": P() }],"text-shadow": [{ "text-shadow": ["none",f,- XC,- WC+ FC,+ MC] }],- "text-shadow-color": [{ "text-shadow": F() }],+ "text-shadow-color": [{ "text-shadow": P() }],opacity: [{ opacity: [- EC,+ CC,W,U] }],@@ -25308,51 +25308,51 @@ var Qte = /* @__PURE__ */ F(((e) => {"intersect","exclude"] }],- "mask-image-linear-pos": [{ "mask-linear": [EC] }],- "mask-image-linear-from-pos": [{ "mask-linear-from": I() }],- "mask-image-linear-to-pos": [{ "mask-linear-to": I() }],- "mask-image-linear-from-color": [{ "mask-linear-from": F() }],- "mask-image-linear-to-color": [{ "mask-linear-to": F() }],- "mask-image-t-from-pos": [{ "mask-t-from": I() }],- "mask-image-t-to-pos": [{ "mask-t-to": I() }],- "mask-image-t-from-color": [{ "mask-t-from": F() }],- "mask-image-t-to-color": [{ "mask-t-to": F() }],- "mask-image-r-from-pos": [{ "mask-r-from": I() }],- "mask-image-r-to-pos": [{ "mask-r-to": I() }],- "mask-image-r-from-color": [{ "mask-r-from": F() }],- "mask-image-r-to-color": [{ "mask-r-to": F() }],- "mask-image-b-from-pos": [{ "mask-b-from": I() }],- "mask-image-b-to-pos": [{ "mask-b-to": I() }],- "mask-image-b-from-color": [{ "mask-b-from": F() }],- "mask-image-b-to-color": [{ "mask-b-to": F() }],- "mask-image-l-from-pos": [{ "mask-l-from": I() }],- "mask-image-l-to-pos": [{ "mask-l-to": I() }],- "mask-image-l-from-color": [{ "mask-l-from": F() }],- "mask-image-l-to-color": [{ "mask-l-to": F() }],- "mask-image-x-from-pos": [{ "mask-x-from": I() }],- "mask-image-x-to-pos": [{ "mask-x-to": I() }],- "mask-image-x-from-color": [{ "mask-x-from": F() }],- "mask-image-x-to-color": [{ "mask-x-to": F() }],- "mask-image-y-from-pos": [{ "mask-y-from": I() }],- "mask-image-y-to-pos": [{ "mask-y-to": I() }],- "mask-image-y-from-color": [{ "mask-y-from": F() }],- "mask-image-y-to-color": [{ "mask-y-to": F() }],+ "mask-image-linear-pos": [{ "mask-linear": [CC] }],+ "mask-image-linear-from-pos": [{ "mask-linear-from": le() }],+ "mask-image-linear-to-pos": [{ "mask-linear-to": le() }],+ "mask-image-linear-from-color": [{ "mask-linear-from": P() }],+ "mask-image-linear-to-color": [{ "mask-linear-to": P() }],+ "mask-image-t-from-pos": [{ "mask-t-from": le() }],+ "mask-image-t-to-pos": [{ "mask-t-to": le() }],+ "mask-image-t-from-color": [{ "mask-t-from": P() }],+ "mask-image-t-to-color": [{ "mask-t-to": P() }],+ "mask-image-r-from-pos": [{ "mask-r-from": le() }],+ "mask-image-r-to-pos": [{ "mask-r-to": le() }],+ "mask-image-r-from-color": [{ "mask-r-from": P() }],+ "mask-image-r-to-color": [{ "mask-r-to": P() }],+ "mask-image-b-from-pos": [{ "mask-b-from": le() }],+ "mask-image-b-to-pos": [{ "mask-b-to": le() }],+ "mask-image-b-from-color": [{ "mask-b-from": P() }],+ "mask-image-b-to-color": [{ "mask-b-to": P() }],+ "mask-image-l-from-pos": [{ "mask-l-from": le() }],+ "mask-image-l-to-pos": [{ "mask-l-to": le() }],+ "mask-image-l-from-color": [{ "mask-l-from": P() }],+ "mask-image-l-to-color": [{ "mask-l-to": P() }],+ "mask-image-x-from-pos": [{ "mask-x-from": le() }],+ "mask-image-x-to-pos": [{ "mask-x-to": le() }],+ "mask-image-x-from-color": [{ "mask-x-from": P() }],+ "mask-image-x-to-color": [{ "mask-x-to": P() }],+ "mask-image-y-from-pos": [{ "mask-y-from": le() }],+ "mask-image-y-to-pos": [{ "mask-y-to": le() }],+ "mask-image-y-from-color": [{ "mask-y-from": P() }],+ "mask-image-y-to-color": [{ "mask-y-to": P() }],"mask-image-radial": [{ "mask-radial": [W, U] }],- "mask-image-radial-from-pos": [{ "mask-radial-from": I() }],- "mask-image-radial-to-pos": [{ "mask-radial-to": I() }],- "mask-image-radial-from-color": [{ "mask-radial-from": F() }],- "mask-image-radial-to-color": [{ "mask-radial-to": F() }],+ "mask-image-radial-from-pos": [{ "mask-radial-from": le() }],+ "mask-image-radial-to-pos": [{ "mask-radial-to": le() }],+ "mask-image-radial-from-color": [{ "mask-radial-from": P() }],+ "mask-image-radial-to-color": [{ "mask-radial-to": P() }],"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],"mask-image-radial-size": [{ "mask-radial": [{closest: ["side", "corner"],farthest: ["side", "corner"]}] }],"mask-image-radial-pos": [{ "mask-radial-at": b() }],- "mask-image-conic-pos": [{ "mask-conic": [EC] }],- "mask-image-conic-from-pos": [{ "mask-conic-from": I() }],- "mask-image-conic-to-pos": [{ "mask-conic-to": I() }],- "mask-image-conic-from-color": [{ "mask-conic-from": F() }],- "mask-image-conic-to-color": [{ "mask-conic-to": F() }],+ "mask-image-conic-pos": [{ "mask-conic": [CC] }],+ "mask-image-conic-from-pos": [{ "mask-conic-from": le() }],+ "mask-image-conic-to-pos": [{ "mask-conic-to": le() }],+ "mask-image-conic-from-color": [{ "mask-conic-from": P() }],+ "mask-image-conic-to-color": [{ "mask-conic-to": P() }],"mask-mode": [{ mask: ["alpha","luminance",@@ -25366,8 +25366,8 @@ var Qte = /* @__PURE__ */ F(((e) => {"stroke","view"] }],- "mask-position": [{ mask: te() }],- "mask-repeat": [{ mask: ne() }],+ "mask-position": [{ mask: ne() }],+ "mask-repeat": [{ mask: F() }],"mask-size": [{ mask: re() }],"mask-type": [{ "mask-type": ["alpha", "luminance"] }],"mask-image": [{ mask: [@@ -25381,14 +25381,14 @@ var Qte = /* @__PURE__ */ F(((e) => {W,U] }],- blur: [{ blur: L() }],+ blur: [{ blur: ue() }],brightness: [{ brightness: [- EC,+ CC,W,U] }],contrast: [{ contrast: [- EC,+ CC,W,U] }],@@ -25396,35 +25396,35 @@ var Qte = /* @__PURE__ */ F(((e) => {"","none",p,- XC,- WC+ FC,+ MC] }],- "drop-shadow-color": [{ "drop-shadow": F() }],+ "drop-shadow-color": [{ "drop-shadow": P() }],grayscale: [{ grayscale: ["",- EC,+ CC,W,U] }],"hue-rotate": [{ "hue-rotate": [- EC,+ CC,W,U] }],invert: [{ invert: ["",- EC,+ CC,W,U] }],saturate: [{ saturate: [- EC,+ CC,W,U] }],sepia: [{ sepia: ["",- EC,+ CC,W,U] }],@@ -25434,47 +25434,47 @@ var Qte = /* @__PURE__ */ F(((e) => {W,U] }],- "backdrop-blur": [{ "backdrop-blur": L() }],+ "backdrop-blur": [{ "backdrop-blur": ue() }],"backdrop-brightness": [{ "backdrop-brightness": [- EC,+ CC,W,U] }],"backdrop-contrast": [{ "backdrop-contrast": [- EC,+ CC,W,U] }],"backdrop-grayscale": [{ "backdrop-grayscale": ["",- EC,+ CC,W,U] }],"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [- EC,+ CC,W,U] }],"backdrop-invert": [{ "backdrop-invert": ["",- EC,+ CC,W,U] }],"backdrop-opacity": [{ "backdrop-opacity": [- EC,+ CC,W,U] }],"backdrop-saturate": [{ "backdrop-saturate": [- EC,+ CC,W,U] }],"backdrop-sepia": [{ "backdrop-sepia": ["",- EC,+ CC,W,U] }],@@ -25497,7 +25497,7 @@ var Qte = /* @__PURE__ */ F(((e) => {] }],"transition-behavior": [{ transition: ["normal", "discrete"] }],duration: [{ duration: [- EC,+ CC,"initial",W,U@@ -25510,7 +25510,7 @@ var Qte = /* @__PURE__ */ F(((e) => {U] }],delay: [{ delay: [- EC,+ CC,W,U] }],@@ -25527,14 +25527,14 @@ var Qte = /* @__PURE__ */ F(((e) => {U] }],"perspective-origin": [{ "perspective-origin": x() }],- rotate: [{ rotate: le() }],- "rotate-x": [{ "rotate-x": le() }],- "rotate-y": [{ "rotate-y": le() }],- "rotate-z": [{ "rotate-z": le() }],- scale: [{ scale: ue() }],- "scale-x": [{ "scale-x": ue() }],- "scale-y": [{ "scale-y": ue() }],- "scale-z": [{ "scale-z": ue() }],+ rotate: [{ rotate: I() }],+ "rotate-x": [{ "rotate-x": I() }],+ "rotate-y": [{ "rotate-y": I() }],+ "rotate-z": [{ "rotate-z": I() }],+ scale: [{ scale: L() }],+ "scale-x": [{ "scale-x": L() }],+ "scale-y": [{ "scale-y": L() }],+ "scale-z": [{ "scale-z": L() }],"scale-3d": ["scale-3d"],skew: [{ skew: R() }],"skew-x": [{ "skew-x": R() }],@@ -25555,13 +25555,13 @@ var Qte = /* @__PURE__ */ F(((e) => {"translate-z": [{ "translate-z": z() }],"translate-none": ["translate-none"],zoom: [{ zoom: [- DC,+ wC,W,U] }],- accent: [{ accent: F() }],+ accent: [{ accent: P() }],appearance: [{ appearance: ["none", "auto"] }],- "caret-color": [{ caret: F() }],+ "caret-color": [{ caret: P() }],"color-scheme": [{ scheme: ["normal","dark",@@ -25619,8 +25619,8 @@ var Qte = /* @__PURE__ */ F(((e) => {"x"] }],"scroll-behavior": [{ scroll: ["auto", "smooth"] }],- "scrollbar-thumb-color": [{ "scrollbar-thumb": F() }],- "scrollbar-track-color": [{ "scrollbar-track": F() }],+ "scrollbar-thumb-color": [{ "scrollbar-thumb": P() }],+ "scrollbar-track-color": [{ "scrollbar-track": P() }],"scrollbar-gutter": [{ "scrollbar-gutter": ["auto","stable",@@ -25697,14 +25697,14 @@ var Qte = /* @__PURE__ */ F(((e) => {W,U] }],- fill: [{ fill: ["none", ...F()] }],+ fill: [{ fill: ["none", ...P()] }],"stroke-w": [{ stroke: [- EC,- GC,- RC,- zC+ CC,+ NC,+ kC,+ AC] }],- stroke: [{ stroke: ["none", ...F()] }],+ stroke: [{ stroke: ["none", ...P()] }],"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]},conflictingClassGroups: {@@ -25960,16 +25960,16 @@ var Qte = /* @__PURE__ */ F(((e) => {"selection"]};-}, lw = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (uw(e, "cacheSize", t), uw(e, "prefix", n), uw(e, "experimentalParseClassName", r), dw(e.theme, a.theme), dw(e.classGroups, a.classGroups), dw(e.conflictingClassGroups, a.conflictingClassGroups), dw(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), uw(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), uw(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), fw(e.theme, i.theme), fw(e.classGroups, i.classGroups), fw(e.conflictingClassGroups, i.conflictingClassGroups), fw(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), pw(e, i, "postfixLookupClassGroups"), pw(e, i, "orderSensitiveModifiers"), e), uw = (e, t, n) => {+}, Tne = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (KC(e, "cacheSize", t), KC(e, "prefix", n), KC(e, "experimentalParseClassName", r), qC(e.theme, a.theme), qC(e.classGroups, a.classGroups), qC(e.conflictingClassGroups, a.conflictingClassGroups), qC(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), KC(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), KC(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), JC(e.theme, i.theme), JC(e.classGroups, i.classGroups), JC(e.conflictingClassGroups, i.conflictingClassGroups), JC(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), YC(e, i, "postfixLookupClassGroups"), YC(e, i, "orderSensitiveModifiers"), e), KC = (e, t, n) => {n !== void 0 && (e[t] = n);-}, dw = (e, t) => {- if (t) for (let n in t) uw(e, n, t[n]);-}, fw = (e, t) => {- if (t) for (let n in t) pw(e, t, n);-}, pw = (e, t, n) => {+}, qC = (e, t) => {+ if (t) for (let n in t) KC(e, n, t[n]);+}, JC = (e, t) => {+ if (t) for (let n in t) YC(e, t, n);+}, YC = (e, t, n) => {let r = t[n];r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);-}, mw = (e, ...t) => typeof e == "function" ? mC(cw, e, ...t) : mC(() => lw(cw(), e), ...t), hw = [+}, Ene = (e, ...t) => typeof e == "function" ? vC(GC, e, ...t) : vC(() => Tne(GC(), e), ...t), Dne = ["large-title","display-1","display-2",@@ -25983,18 +25983,18 @@ var Qte = /* @__PURE__ */ F(((e) => {"body-2","caption-1","caption-2"-], gw = [+], One = ["regular","medium","semibold","bold"-], _w = mw({ extend: { classGroups: { "font-size": [{ text: hw.flatMap((e) => gw.map((t) => `${e}-${t}`)) }] } } });-function vw(e) {+], XC = Ene({ extend: { classGroups: { "font-size": [{ text: Dne.flatMap((e) => One.map((t) => `${e}-${t}`)) }] } } });+function ZC(e) {return e;}//#endregion//#region src/react/boardui/components/base/badges/chip.tsx-var yw = vw({+var QC = ZC({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",@@ -26013,16 +26013,16 @@ var yw = vw({soft: "bg-background-secondary-default text-text-secondary"}});-function bw({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {+function $C({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {return /* @__PURE__ */ (0, L.jsx)("span", {ref: r,- className: _w(yw.base, yw.variant[e], yw.color[t], n),+ className: XC(QC.base, QC.variant[e], QC.color[t], n),...i});}//#endregion//#region src/react/boardui/components/base/buttons/button.tsx-var xw = vw({+var ew = ZC({base: ["inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden","font-sans select-none cursor-pointer",@@ -26081,40 +26081,40 @@ function G({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadireturn /* @__PURE__ */ (0, L.jsxs)("button", {ref: c,type: s,- className: _w(xw.base, xw.size[t], xw.variant[e], n && xw.iconOnlySize[t], o),+ className: XC(ew.base, ew.size[t], ew.variant[e], n && ew.iconOnlySize[t], o),...l,children: [r ? /* @__PURE__ */ (0, L.jsx)(r, {- className: xw.icon[t],+ className: ew.icon[t],"aria-hidden": !0}) : null,!n && a != null && /* @__PURE__ */ (0, L.jsx)("span", {- className: xw.label[t],+ className: ew.label[t],children: a}),!n && i ? /* @__PURE__ */ (0, L.jsx)(i, {- className: xw.icon[t],+ className: ew.icon[t],"aria-hidden": !0}) : null]});}-function Sw({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {+function tw({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {return /* @__PURE__ */ (0, L.jsxs)("a", {ref: s,- className: _w(xw.base, xw.size[t], xw.variant[e], n && xw.iconOnlySize[t], o),+ className: XC(ew.base, ew.size[t], ew.variant[e], n && ew.iconOnlySize[t], o),...c,children: [r ? /* @__PURE__ */ (0, L.jsx)(r, {- className: xw.icon[t],+ className: ew.icon[t],"aria-hidden": !0}) : null,!n && a != null && /* @__PURE__ */ (0, L.jsx)("span", {- className: xw.label[t],+ className: ew.label[t],children: a}),!n && i ? /* @__PURE__ */ (0, L.jsx)(i, {- className: xw.icon[t],+ className: ew.icon[t],"aria-hidden": !0}) : null]@@ -26122,13 +26122,13 @@ function Sw({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, lead}//#endregion//#region src/api.ts-var Cw = class extends Error {+var nw = class extends Error {status;body;constructor(e, t, n = null) {super(d(e, t)), this.name = "ApiError", this.status = t, this.body = n;}-}, ww = (e) => {+}, rw = (e) => {if (!e || typeof e != "object") return "";let t = e;for (let e of [@@ -26141,7 +26141,7 @@ var Cw = class extends Error {}return "";}, K = (e) => d(e);-async function Tw(e, t) {+async function iw(e, t) {let n = await fetch(e, {headers: { Accept: "application/json" },credentials: "same-origin",@@ -26150,7 +26150,7 @@ async function Tw(e, t) {try {r = await n.json();} catch {}- if (!n.ok) throw new Cw(ww(r) || `请求失败(${n.status})`, n.status);+ if (!n.ok) throw new nw(rw(r) || `请求失败(${n.status})`, n.status);return r;}async function q(e, t, n = "POST", r) {@@ -26167,52 +26167,52 @@ async function q(e, t, n = "POST", r) {try {a = await i.json();} catch {}- if (!i.ok) throw new Cw(ww(a) || `请求失败(${i.status})`, i.status, a);+ if (!i.ok) throw new nw(rw(a) || `请求失败(${i.status})`, i.status, a);return a;}//#endregion//#region src/react/components/card.tsx-var Ew = "min-w-0", Dw = {+var kne = "min-w-0", Ane = {filled: "bg-background-secondary-default",outlined: "border border-separator-border bg-background-primary-default",raised: "bg-background-primary-default"-}, Ow = {+}, jne = {default: "rounded-2xl shadow-card",chart: "rounded-2-5xl",surface: "rounded-surface",plain: "rounded-2xl"-}, kw = {+}, Mne = {line: "border border-border-button-default",soft: "border border-separator-border"-}, Aw = {+}, Nne = {none: "",default: "p-5"-}, jw = "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", Mw = "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 Nw(e = {}) {+}, Pne = "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", Fne = "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 aw(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 [- Ew,- Dw[t],- Ow[s],- Aw[n],- a ? kw[a] : "",- r ? jw : "",- i ? Mw : "",+ kne,+ Ane[t],+ jne[s],+ Nne[n],+ a ? Mne[a] : "",+ r ? Pne : "",+ i ? Fne : "",o ?? ""].filter(Boolean).join(" ");}//#endregion//#region src/react/components/empty-state.tsx-var Pw = {+var Ine = {page: "min-h-80 justify-center rounded-floating border border-separator-border bg-background-secondary-default px-6 py-12",plain: "px-6 py-12",inset: "min-h-40 justify-center rounded-xl bg-background-secondary-default px-4 py-4"};-function Fw({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {+function ow({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {let a = i === "page";return /* @__PURE__ */ (0, L.jsxs)("div", {"data-empty-state": "",- className: `flex flex-col items-center gap-2 text-center ${Pw[i]}`,+ className: `flex flex-col items-center gap-2 text-center ${Ine[i]}`,children: [a ? /* @__PURE__ */ (0, L.jsx)("span", {"aria-hidden": !0,@@ -26242,7 +26242,7 @@ function Fw({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {}//#endregion//#region src/react/components/loading-dots.tsx-function Iw({ label: e, inline: t = !1 }) {+function sw({ label: e, inline: t = !1 }) {let n = /* @__PURE__ */ (0, L.jsxs)("span", {"aria-hidden": !0,className: "inline-flex items-center gap-1",@@ -26308,7 +26308,7 @@ function J({ tone: e, title: t, action: n, extra: r, children: i }) {}//#endregion//#region src/react/components/page.tsx-function Lw({ children: e }) {+function cw({ children: e }) {return /* @__PURE__ */ (0, L.jsx)("div", {className: "mx-auto flex w-full max-w-board flex-col gap-8",children: e@@ -26316,21 +26316,21 @@ function Lw({ children: e }) {}//#endregion//#region src/react/components/progress.tsx-var Rw = 100, one = .4;-function zw({ label: e, value: t, max: n = 100, stops: r = [] }) {- let i = n > 0 ? n : 1, a = (e) => Math.min(Math.max(e, 0), i) / i * Rw;+var lw = 100, Lne = .4;+function uw({ label: e, value: t, max: n = 100, stops: r = [] }) {+ let i = n > 0 ? n : 1, a = (e) => Math.min(Math.max(e, 0), i) / i * lw;return /* @__PURE__ */ (0, L.jsxs)("svg", {role: "progressbar","aria-label": e,"aria-valuemin": 0,"aria-valuemax": n,"aria-valuenow": t,- viewBox: `0 0 ${Rw} 1`,+ viewBox: `0 0 ${lw} 1`,preserveAspectRatio: "none",className: "h-1.5 w-full overflow-hidden rounded-full",children: [/* @__PURE__ */ (0, L.jsx)("rect", {- width: Rw,+ width: lw,height: 1,className: "fill-background-tertiary-default"}),@@ -26341,7 +26341,7 @@ function zw({ label: e, value: t, max: n = 100, stops: r = [] }) {}),r.map((e) => /* @__PURE__ */ (0, L.jsx)("rect", {x: a(e),- width: one,+ width: Lne,height: 1,className: "fill-background-secondary-default"}, e))@@ -26350,7 +26350,7 @@ function zw({ label: e, value: t, max: n = 100, stops: r = [] }) {}//#endregion//#region src/react/settings/use-action.ts-function Bw(e = "") {+function dw(e = "") {let t = (0, I.useRef)(null), [n, r] = (0, I.useState)(""), [i, a] = (0, I.useState)(e);(0, I.useEffect)(() => () => t.current?.abort(), []);async function o(e, n, i, o) {@@ -26382,17 +26382,17 @@ function Y(e) {}//#endregion//#region src/react/query.ts-var X = new bt({ defaultOptions: { queries: {+var X = new St({ defaultOptions: { queries: {networkMode: "always",retry: 0,refetchOnWindowFocus: !1,refetchOnMount: !1,retryOnMount: !1-} } }), Vw = "/api/tasks", Hw = ["tasks"], sne = (e, t) => Tw(`${Vw}?${new URLSearchParams({+} } }), fw = "/api/tasks", pw = ["tasks"], Rne = (e, t) => iw(`${fw}?${new URLSearchParams({before_finished_at: e.finished_at || "",before_id: String(e.id)})}`, t);-function Uw(...e) {+function mw(...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) => {@@ -26400,26 +26400,26 @@ function Uw(...e) {return n === r ? t.id - e.id : n < r ? 1 : -1;});}-var cne = 2e3, lne = 1e4, une = (e) => e?.running.length ? cne : lne, Ww = (e) => Tw(Vw, e);-async function dne(e) {+var zne = 2e3, Bne = 1e4, Vne = (e) => e?.running.length ? zne : Bne, hw = (e) => iw(fw, e);+async function Hne(e) {await X.fetchQuery({- queryKey: Hw,- queryFn: () => Ww(e)+ queryKey: pw,+ queryFn: () => hw(e)});}-var Gw = {+var gw = {manual: "手动",scheduled: "定时",startup: "启动",cli: "命令行"-}, fne = {+}, Une = {pending: "排队中",running: "进行中",succeeded: "已完成",failed: "失败",cancelled: "已取消",interrupted: "被打断"-}, pne = (e) => fne[e] || e, mne = {+}, Wne = (e) => Une[e] || e, Gne = {checked: "已检查",total: "总数",scanned: "已扫描",@@ -26449,7 +26449,7 @@ var Gw = {source: "来源",cover_network: "封面连不上图片主机"};-function hne(e) {+function Kne(e) {let t = /* @__PURE__ */ new Map();for (let n of e) {if (!n.followup_key || n.parent_run_id == null) continue;@@ -26458,7 +26458,7 @@ function hne(e) {}return t;}-function gne(e, t) {+function qne(e, t) {let n = [], r = /* @__PURE__ */ new Map();for (let i of e) {if (!t(i)) {@@ -26480,19 +26480,19 @@ function gne(e, t) {}return n;}-var _ne = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), Kw = (e) => e.status === "pending" || e.status === "running";-function vne(e) {+var Jne = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), _w = (e) => e.status === "pending" || e.status === "running";+function Yne(e) {let t = `${e.task_label}:`, n = e.progress_label || "", r = n.startsWith(t) ? n.slice(t.length) : n === e.task_label ? "" : n, i = e.progress_total || 0;- return [r, e.error || Yw(e.result_summary) || (Kw(e) && i > 0 ? `${e.progress_current || 0} / ${i} 项` : "")].filter(Boolean).join(" · ");+ return [r, e.error || bw(e.result_summary) || (_w(e) && i > 0 ? `${e.progress_current || 0} / ${i} 项` : "")].filter(Boolean).join(" · ");}-function qw(e) {+function vw(e) {if (typeof e != "number" || !Number.isFinite(e) || e < 0) return "";let t = Math.floor(e);if (t < 60) return `${t} 秒`;let n = Math.floor(t / 60);return n < 60 ? `${n} 分 ${t % 60} 秒` : `${Math.floor(n / 60)} 小时 ${n % 60} 分`;}-function Jw(e) {+function yw(e) {if (!e) return "";let t = new Date(e);return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {@@ -26502,7 +26502,7 @@ function Jw(e) {minute: "2-digit"});}-var yne = /* @__PURE__ */ new Set([+var Xne = /* @__PURE__ */ new Set(["blocked_by","status","run_id",@@ -26511,28 +26511,28 @@ var yne = /* @__PURE__ */ new Set(["completed_at","finished_at"]);-function Yw(e) {- return Object.entries(e || {}).filter(([e, t]) => !yne.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${mne[e] || e} ${t}`).join(" · ");+function bw(e) {+ return Object.entries(e || {}).filter(([e, t]) => !Xne.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${Gne[e] || e} ${t}`).join(" · ");}//#endregion//#region src/react/activity/activity-page.tsx-var bne = {+var Zne = {succeeded: "lime",failed: "rose",cancelled: "yellow",interrupted: "yellow"};-function Xw({ status: e }) {- return /* @__PURE__ */ (0, L.jsx)(bw, {- color: bne[e] ?? "neutral",- children: pne(e)+function xw({ status: e }) {+ return /* @__PURE__ */ (0, L.jsx)($C, {+ color: Zne[e] ?? "neutral",+ children: Wne(e)});}-function xne({ rows: e }) {+function Qne({ rows: e }) {return /* @__PURE__ */ (0, L.jsx)("ul", {className: "flex min-w-0 flex-col",children: e.map((e) => {- let t = vne(e);+ let t = Yne(e);return /* @__PURE__ */ (0, L.jsxs)("li", {"data-status": e.status,"data-followup-key": e.followup_key,@@ -26542,7 +26542,7 @@ function xne({ rows: e }) {className: "min-w-0 break-words text-caption-1-regular text-text-primary",children: e.task_label}),- /* @__PURE__ */ (0, L.jsx)(Xw, { status: e.status }),+ /* @__PURE__ */ (0, L.jsx)(xw, { status: e.status }),t ? /* @__PURE__ */ (0, L.jsx)("span", {className: "min-w-0 break-words text-caption-1-regular text-text-secondary",children: t@@ -26552,12 +26552,12 @@ function xne({ rows: e }) {})});}-function Zw({ run: e, meta: t, children: n, footer: r, followups: i }) {+function Sw({ run: e, meta: t, children: n, footer: r, followups: i }) {return /* @__PURE__ */ (0, L.jsxs)("li", {"data-status": e.status,"data-task-key": e.task_key,"data-run-id": e.id,- className: Nw({+ className: aw({padding: "none",bordered: "line",className: e.status === "failed" ? "flex flex-col border-border-error-default" : "flex flex-col"@@ -26571,7 +26571,7 @@ function Zw({ run: e, meta: t, children: n, footer: r, followups: i }) {children: [/* @__PURE__ */ (0, L.jsx)("strong", {className: "min-w-0 break-words text-title-1-medium text-text-primary",children: e.task_label- }), /* @__PURE__ */ (0, L.jsx)(Xw, { status: e.status })]+ }), /* @__PURE__ */ (0, L.jsx)(xw, { status: e.status })]}),/* @__PURE__ */ (0, L.jsx)("p", {className: "text-caption-1-regular text-text-secondary",@@ -26580,7 +26580,7 @@ function Zw({ run: e, meta: t, children: n, footer: r, followups: i }) {n]}),- i?.length ? /* @__PURE__ */ (0, L.jsx)(xne, { rows: i }) : null,+ i?.length ? /* @__PURE__ */ (0, L.jsx)(Qne, { rows: i }) : null,r ? /* @__PURE__ */ (0, L.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, L.jsx)("p", {@@ -26591,15 +26591,15 @@ function Zw({ run: e, meta: t, children: n, footer: r, followups: i }) {]});}-function Sne({ run: e, followups: t }) {- let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = qw(e.elapsed_seconds), o = [Gw[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");- return /* @__PURE__ */ (0, L.jsx)(Zw, {+function $ne({ run: e, followups: t }) {+ let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = vw(e.elapsed_seconds), o = [gw[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");+ return /* @__PURE__ */ (0, L.jsx)(Sw, {run: e,meta: o,followups: t,children: n > 0 ? /* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-col gap-1.5",- children: [/* @__PURE__ */ (0, L.jsx)(zw, {+ children: [/* @__PURE__ */ (0, L.jsx)(uw, {label: i,value: r,max: n@@ -26614,20 +26614,20 @@ function Sne({ run: e, followups: t }) {" 项"]})]- }) : /* @__PURE__ */ (0, L.jsx)(Iw, { label: i })+ }) : /* @__PURE__ */ (0, L.jsx)(sw, { label: i })});}-function Qw({ run: e, followups: t, runs: n }) {- let r = Yw(e.result_summary), i = qw(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [- Gw[e.trigger] || e.trigger,+function Cw({ run: e, followups: t, runs: n }) {+ let r = bw(e.result_summary), i = vw(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [+ gw[e.trigger] || e.trigger,`近 ${n.length} 轮`,- `${Jw(a.finished_at)} – ${Jw(e.finished_at)}`+ `${yw(a.finished_at)} – ${yw(e.finished_at)}`] : [- Gw[e.trigger] || e.trigger,- Jw(e.finished_at),+ gw[e.trigger] || e.trigger,+ yw(e.finished_at),i && `用时 ${i}`]).filter(Boolean).join(" · ");- return /* @__PURE__ */ (0, L.jsx)(Zw, {+ return /* @__PURE__ */ (0, L.jsx)(Sw, {run: e,meta: o,footer: e.error,@@ -26638,7 +26638,7 @@ function Qw({ run: e, followups: t, runs: n }) {}) : null});}-function $w({ title: e, children: t }) {+function ww({ title: e, children: t }) {let n = (0, I.useId)();return /* @__PURE__ */ (0, L.jsxs)("section", {"aria-labelledby": n,@@ -26650,41 +26650,41 @@ function $w({ title: e, children: t }) {}), t]});}-function eT({ live: e = !1, children: t }) {+function Tw({ live: e = !1, children: t }) {return /* @__PURE__ */ (0, L.jsx)("ul", {"aria-live": e ? "polite" : void 0,className: "flex min-w-0 flex-col gap-3",children: t});}-function Cne(e) {- let t = Nt({- queryKey: Hw,- queryFn: ({ signal: e }) => Ww(e),- refetchInterval: (e) => une(e.state.data)+function ere(e) {+ let t = Ft({+ queryKey: pw,+ queryFn: ({ signal: e }) => hw(e),+ refetchInterval: (e) => Vne(e.state.data)}), n = t.data, r = n?.finished, [i, a] = (0, I.useState)([]), [o, s] = (0, I.useState)(!1), [c, l] = (0, I.useState)(r);- r !== c && (l(r), i.length && c && a(Uw(i, c)));- let u = Pt({- mutationFn: ({ oldest: e }) => sne(e),+ r !== c && (l(r), i.length && c && a(mw(i, c)));+ let u = It({+ mutationFn: ({ oldest: e }) => Rne(e),onSuccess: (e, { shown: t }) => {- a((n) => Uw(n, t, e.finished || [])), s(!!e.finished_has_more);+ a((n) => mw(n, t, e.finished || [])), s(!!e.finished_has_more);}}), d = t.error ? K(t.error) : "";- if (!n) return /* @__PURE__ */ (0, L.jsx)(Lw, { children: /* @__PURE__ */ (0, L.jsx)(J, {+ if (!n) return /* @__PURE__ */ (0, L.jsx)(cw, { children: /* @__PURE__ */ (0, L.jsx)(J, {tone: "error",children: d || "读取任务中心失败"}) });- let f = Uw(n.finished || [], i), p = [+ let f = mw(n.finished || [], i), p = [...n.running || [],...n.skipped || [],...f- ], m = hne(p), h = new Set(p.map((e) => e.id)), g = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && h.has(e.parent_run_id))), _ = g(f), v = _[_.length - 1], y = !!v && (i.length ? o : !!n.finished_has_more), b = () => {+ ], m = Kne(p), h = new Set(p.map((e) => e.id)), g = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && h.has(e.parent_run_id))), _ = g(f), v = _[_.length - 1], y = !!v && (i.length ? o : !!n.finished_has_more), b = () => {!u.isPending && v && u.mutate({oldest: v,shown: f});- }, x = _.filter((e) => m.get(e.id)?.some(Kw)), S = g(n.running || []), C = g(n.skipped || []), w = _.filter((e) => !x.includes(e) && !C.some((t) => t.id === e.id)), T = gne(w, (e) => _ne(e) && !m.get(e.id)?.length), E = !S.length && !x.length && !C.length && !w.length;- return /* @__PURE__ */ (0, L.jsxs)(Lw, { children: [+ }, x = _.filter((e) => m.get(e.id)?.some(_w)), S = g(n.running || []), C = g(n.skipped || []), w = _.filter((e) => !x.includes(e) && !C.some((t) => t.id === e.id)), T = qne(w, (e) => Jne(e) && !m.get(e.id)?.length), E = !S.length && !x.length && !C.length && !w.length;+ return /* @__PURE__ */ (0, L.jsxs)(cw, { children: [d ? /* @__PURE__ */ (0, L.jsx)(J, {tone: "error",children: d@@ -26693,20 +26693,20 @@ function Cne(e) {tone: "warning",children: n.message || "账本上还没有任务中心的表"}) : null,- E ? /* @__PURE__ */ (0, L.jsx)(Fw, {+ E ? /* @__PURE__ */ (0, L.jsx)(ow, {shell: "plain",- icon: yS,+ icon: HS,title: "还没有任务记录",children: "扫描、追更检查、批量操作和命令行批处理跑起来之后,这里会显示它们的进度与结果。"}) : /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [- /* @__PURE__ */ (0, L.jsx)($w, {+ /* @__PURE__ */ (0, L.jsx)(ww, {title: "正在进行",- children: S.length || x.length ? /* @__PURE__ */ (0, L.jsxs)(eT, {+ children: S.length || x.length ? /* @__PURE__ */ (0, L.jsxs)(Tw, {live: !0,- children: [S.map((e) => /* @__PURE__ */ (0, L.jsx)(Sne, {+ children: [S.map((e) => /* @__PURE__ */ (0, L.jsx)($ne, {run: e,followups: m.get(e.id)- }, e.id)), x.map((e) => /* @__PURE__ */ (0, L.jsx)(Qw, {+ }, e.id)), x.map((e) => /* @__PURE__ */ (0, L.jsx)(Cw, {run: e,followups: m.get(e.id)}, e.id))]@@ -26715,17 +26715,17 @@ function Cne(e) {children: "没有任务在跑。"})}),- C.length ? /* @__PURE__ */ (0, L.jsx)($w, {+ C.length ? /* @__PURE__ */ (0, L.jsx)(ww, {title: "被挡下的",- children: /* @__PURE__ */ (0, L.jsx)(eT, { children: C.map((e) => /* @__PURE__ */ (0, L.jsx)(Qw, {+ children: /* @__PURE__ */ (0, L.jsx)(Tw, { children: C.map((e) => /* @__PURE__ */ (0, L.jsx)(Cw, {run: e,followups: m.get(e.id)}, e.id)) })}) : null,- w.length || y ? /* @__PURE__ */ (0, L.jsxs)($w, {+ w.length || y ? /* @__PURE__ */ (0, L.jsxs)(ww, {title: "最近完成",children: [- w.length ? /* @__PURE__ */ (0, L.jsx)(eT, { children: T.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, L.jsx)(Qw, {+ w.length ? /* @__PURE__ */ (0, L.jsx)(Tw, { children: T.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, L.jsx)(Cw, {run: e,runs: t,followups: m.get(e.id)@@ -26737,7 +26737,7 @@ function Cne(e) {y ? /* @__PURE__ */ (0, L.jsx)(G, {variant: "secondary",size: "small",- leadingIcon: aS,+ leadingIcon: TS,className: "self-start",...Y(u.isPending),onClick: b,@@ -26750,56 +26750,56 @@ function Cne(e) {}//#endregion//#region src/jav-artwork.ts-function wne(e) {+function tre(e) {return e === "thumbnail" ? "thumbnail" : "cover";}-function tT(e, t) {- return e.is_jav && e.code && e.has_cover && (wne(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";+function Ew(e, t) {+ return e.is_jav && e.code && e.has_cover && (tre(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";}-function nT(e, t) {+function Dw(e, t) {let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));return t && n.set("exclude_vertical", "1"), n.toString();}-var Tne = (e, t) => [+var nre = (e, t) => ["catalog-grid","catalog",e,t-], Ene = (e, t) => [+], rre = (e, t) => ["catalog-grid","entity",e,t];-async function Dne(e, t, n, r, i) {+async function ire(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 Tw(`/api/items?${a}`, i), s = {+ let o = await iw(`/api/items?${a}`, i), s = {...o,items: o.items || [],offset: t};- return !t && !s.items.length && !r && (s.libraryEmpty = (await Tw("/api/items?limit=1&thumb=0", i)).total === 0), s;+ return !t && !s.items.length && !r && (s.libraryEmpty = (await iw("/api/items?limit=1&thumb=0", i)).total === 0), s;}-var One = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, kne = (e, t) => {+var are = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, ore = (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 rT(e) {- let t = nT(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";+function Ow(e) {+ let t = Dw(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";return {- queryKey: Tne(t, e.revision || 0),+ queryKey: nre(t, e.revision || 0),queryFn: async ({ pageParam: i, signal: a }) => {- let o = await Dne(t, i, n, r, a);+ let o = await ire(t, i, n, r, a);return e.cache(o.items), o;},initialPageParam: 0,- getNextPageParam: One(n)+ getNextPageParam: are(n)};}-function Ane(e) {+function sre(e) {return {- queryKey: Ene(e.entityKey || "", e.revision || 0),+ queryKey: rre(e.entityKey || "", e.revision || 0),queryFn: async ({ pageParam: t, signal: n }) => {if (!e.fetchPage) return {items: [],@@ -26814,12 +26814,12 @@ function Ane(e) {};},initialPageParam: 0,- getNextPageParam: kne+ getNextPageParam: ore};}-async function jne(e, t) {+async function cre(e, t) {if (e.mode !== "catalog") return;- let n = rT(e);+ let n = Ow(e);await X.fetchInfiniteQuery({...n,queryFn: ({ pageParam: e }) => n.queryFn({@@ -26828,7 +26828,7 @@ async function jne(e, t) {})});}-function Mne(e, t, n) {+function lre(e, t, n) {return n ? e.filter((e) => {let n = e.part_group?.key;if (n) {@@ -26843,28 +26843,28 @@ function Mne(e, t, n) {return !0;}) : [...e];}-var iT = (e, t) => !!e && !!tT(e, t);-function Nne(e, t) {+var kw = (e, t) => !!e && !!Ew(e, t);+function ure(e, t) {let n = (e.performers || [])[0];return (e.is_jav && n ? n : e.creator) || n || e.studio || e.code || t((e.tags || [])[0] || "") || "为你推荐";}-function Pne(e, t) {- let n = (e) => iT(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) => iT(e, t)) || e[e.length - 1];+function dre(e, t) {+ let n = (e) => kw(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) => kw(e, t)) || e[e.length - 1];}-function Fne(e, { collapse: t, mix: n, javImage: r }) {+function fre(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 = Mne(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({+ let e = lre(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 = Pne(e, r);+ let t = dre(e, r);t && l.splice(7, 0, {kind: "mix",seed: t@@ -26877,16 +26877,16 @@ function Fne(e, { collapse: t, mix: n, javImage: r }) {pageStarts: s};}-function Ine(e, t, n) {+function pre(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 Lne(e, t) {+function mre(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 Rne(e, t) {+function hre(e, t) {let n = [...t].sort((e, t) => e.at - t.at), r = [], i = 0;for (let t of n) r.push({start: i,@@ -26899,12 +26899,27 @@ function Rne(e, t) {strip: null}), r;}+function gre(e, t) {+ X.setQueriesData({+ queryKey: ["catalog-grid"],+ predicate: (e) => Array.isArray(e.state.data?.pages)+ }, (n) => !n || !n.pages.some((t) => t.items.some((t) => t.id === e)) ? n : {+ ...n,+ pages: n.pages.map((n) => n.items.some((t) => t.id === e) ? {+ ...n,+ items: n.items.map((n) => n.id === e ? {+ ...n,+ ...t+ } : n)+ } : n)+ });+}//#endregion//#region src/react/components/grid-reveal.tsx-function aT(e, t) {+function Aw(e, t) {let [n, r] = (0, I.useState)(e ? "skeleton" : "none"), [i] = (0, I.useState)(() => e ? t() : ""), a = (0, I.useRef)(null);return (0, I.useLayoutEffect)(() => {- a.current && v(a.current);+ a.current && y(a.current);}, []), (0, I.useLayoutEffect)(() => {if (e || n !== "skeleton") return;let t = !!a.current && !a.current.querySelector(".skeleton-awaiting");@@ -26927,13 +26942,13 @@ function aT(e, t) {fading: n === "fade"};}-function oT({ message: e, onRetry: t }) {+function jw({ message: e, onRetry: t }) {return /* @__PURE__ */ (0, L.jsx)("div", {"data-media-error": "",onClick: (e) => {e.target.closest("[data-note-action]") && t();},- dangerouslySetInnerHTML: { __html: S(e, {+ dangerouslySetInnerHTML: { __html: C(e, {variant: "error",actionLabel: "重试"}) }@@ -26941,21 +26956,21 @@ function oT({ message: e, onRetry: t }) {}//#endregion//#region src/react/catalog-grid/artwork.ts-var sT = {+var Mw = {kind: "",html: ""};-function cT(e, t, n, i, a) {- let o = tT(e, i);- if (!o) return sT;+function Nw(e, t, n, i, a) {+ let o = Ew(e, i);+ if (!o) return Mw;let s = e.has_cover && e.code ? `/cover?code=${encodeURIComponent(e.code)}&thumb=1` : "", c = e.has_thumb || e.has_local_poster ? `/poster?id=${e.id}&c=4` : "", l = a(e, t, n), u = (l.match(/ data-(?:c[xy]|posterbox)="[^"]*"/g) || []).join(""), d = o === "cover" ? l : `<img class="poster" src="${c}" alt="" loading="${n ? "eager" : "lazy"}"${u}>`;return {kind: o === "cover" ? "cover" : "thumb",html: d.replace("<img ", `<img data-jav-image="${e.id}" data-jav-cover="${r(s)}" data-jav-thumb="${r(c)}" data-jav-image-layout="${t}" `)};}-function lT(e, t, n, i, a) {- if (e.is_jav) return cT(e, t, n, i, a);+function Pw(e, t, n, i, a) {+ if (e.is_jav) return Nw(e, t, n, i, a);let o = n ? "eager" : "lazy";return e.follow_thumb_url ? {kind: "thumb",@@ -26963,11 +26978,11 @@ function lT(e, t, n, i, a) {} : e.has_thumb || e.has_local_poster ? {kind: "thumb",html: `<img class="poster" src="/poster?id=${e.id}&c=4" alt="" loading="${o}">`- } : sT;+ } : Mw;}//#endregion//#region src/react/components/art-slot.tsx-function uT({ artwork: e, identity: t = e.html, relayout: n }) {+function Fw({ artwork: e, identity: t = e.html, relayout: n }) {let [r, i] = (0, I.useState)({identity: t,artwork: e@@ -26987,25 +27002,25 @@ function uT({ artwork: e, identity: t = e.html, relayout: n }) {}//#endregion//#region src/react/components/media-card.tsx-var dT = .75, zne = 9 / 16;-function fT({ name: e }) {+var Iw = .75, _re = 9 / 16;+function Lw({ name: e }) {return /* @__PURE__ */ (0, L.jsx)("svg", {viewBox: "0 0 24 24","aria-hidden": "true",children: /* @__PURE__ */ (0, L.jsx)("use", { href: `#i-${e}` })});}-var Bne = {+var vre = {image: "图片",audio: "音频",archive: "压缩包",other: "其它文件"-}, Vne = (e) => e.is_jav ? "女优" : "艺人";-function Hne(e, t, n) {- return t === "short" || n.portrait ? zne : n.active && e.is_jav && n.size === "big" ? dT : 16 / 9;+}, yre = (e) => e.is_jav ? "女优" : "艺人";+function bre(e, t, n) {+ return t === "short" || n.portrait ? _re : n.active && e.is_jav && n.size === "big" ? Iw : 16 / 9;}-function Une(e, t) {- let n = e.performers || [], r = e.performer_entities || [], i = n[0] || "", a = e.is_jav && i ? "" : e.creator || "", o = a ? "creator" : i ? "performer" : "", s = a || i || "未归属", c = n.length > 1 && !a, l = Vne(e);+function xre(e, t) {+ let n = e.performers || [], r = e.performer_entities || [], i = n[0] || "", a = e.is_jav && i ? "" : e.creator || "", o = a ? "creator" : i ? "performer" : "", s = a || i || "未归属", c = n.length > 1 && !a, l = yre(e);return {avatar: c ? /* @__PURE__ */ (0, L.jsx)("div", {"data-media-avatars": "",@@ -27051,7 +27066,7 @@ function Une(e, t) {})};}-function Wne() {+function Sre() {return /* @__PURE__ */ (0, L.jsxs)("button", {type: "button","data-media-preview": "",@@ -27070,7 +27085,7 @@ function Wne() {})]});}-function Gne({ item: e, actions: t }) {+function Cre({ item: e, actions: t }) {let [n, r] = (0, I.useState)(null), [i, a] = (0, I.useState)(!1), o = n?.id === e.id ? n.on : !!e.watch_later;return /* @__PURE__ */ (0, L.jsx)("div", {"data-media-later": "",@@ -27088,15 +27103,15 @@ function Gne({ item: e, actions: t }) {},"aria-busy": i || void 0,"aria-disabled": i || void 0,- children: /* @__PURE__ */ (0, L.jsx)(fT, { name: o ? "check" : "bookmark-plus" })+ children: /* @__PURE__ */ (0, L.jsx)(Lw, { name: o ? "check" : "bookmark-plus" })})});}-function pT(e, t) {+function Rw(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 Kne({ item: e, variant: t, layout: n, selected: r, selectMode: o, seekSeconds: s, helpers: c, actions: l, onOpen: u }) {+function wre({ item: e, variant: t, layout: n, selected: r, selectMode: o, seekSeconds: s, helpers: c, actions: l, onOpen: u }) {let d = (0, I.useRef)(null), f = (0, I.useRef)({item: e,helpers: c@@ -27108,7 +27123,7 @@ function Kne({ item: e, variant: t, layout: n, selected: r, selectMode: o, seekSlet p = (0, I.useCallback)((e) => {let { item: t, helpers: n } = f.current;d.current && d.current !== e && n.releaseHover(d.current), d.current = e, e && (!t.medium || t.medium === "video") && n.wireHover(e, t);- }, []), m = e.part_group || null, h = e.edition_group || null, g = !!(m || h), _ = n.active && e.is_jav ? n.size : "small", v = lT(e, _, !1, n.javImage, c.coverHtml), y = _ === "small" ? v.html : lT(e, "small", !1, n.javImage, c.coverHtml).html, b = m?.title || e.name || "", x = c.displayName(e, b), S = m?.total_size ?? e.size, C = m?.total_duration ?? e.duration, w = !m && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: T, who: E } = Une(e, c), D = (e.follow_tags || e.tags || []).slice(0, 3), O = [+ }, []), m = e.part_group || null, h = e.edition_group || null, g = !!(m || h), _ = n.active && e.is_jav ? n.size : "small", v = Pw(e, _, !1, n.javImage, c.coverHtml), y = _ === "small" ? v.html : Pw(e, "small", !1, n.javImage, c.coverHtml).html, b = m?.title || e.name || "", x = c.displayName(e, b), S = m?.total_size ?? e.size, C = m?.total_duration ?? e.duration, w = !m && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: T, who: E } = xre(e, c), D = (e.follow_tags || e.tags || []).slice(0, 3), O = [e.feedback === "dislike" && "dislike",e.feedback === "seen" && "seen",e.disposal === "trash" && "dispose",@@ -27142,9 +27157,9 @@ function Kne({ item: e, variant: t, layout: n, selected: r, selectMode: o, seekSu(e, r);}, A = /* @__PURE__ */ (0, L.jsxs)("div", {"data-media-pic": "",- style: { "--card-ratio": String(Hne(e, t, n)) },+ style: { "--card-ratio": String(bre(e, t, n)) },children: [- v.html ? /* @__PURE__ */ (0, L.jsx)(uT, {+ v.html ? /* @__PURE__ */ (0, L.jsx)(Fw, {artwork: v,identity: y,relayout: (e) => c.relayoutArt(e, _)@@ -27158,11 +27173,11 @@ function Kne({ item: e, variant: t, layout: n, selected: r, selectMode: o, seekS}),/* @__PURE__ */ (0, L.jsx)("span", {"data-media-check": "",- children: /* @__PURE__ */ (0, L.jsx)(fT, { name: "check" })+ children: /* @__PURE__ */ (0, L.jsx)(Lw, { name: "check" })}),/* @__PURE__ */ (0, L.jsxs)("span", {"data-media-trash-mark": "",- children: [/* @__PURE__ */ (0, L.jsx)(fT, { name: "trash" }), /* @__PURE__ */ (0, L.jsx)("b", { children: "回收站" })]+ children: [/* @__PURE__ */ (0, L.jsx)(Lw, { name: "trash" }), /* @__PURE__ */ (0, L.jsx)("b", { children: "回收站" })]}),m ? /* @__PURE__ */ (0, L.jsx)("span", {"data-media-group": "",@@ -27189,8 +27204,8 @@ function Kne({ item: e, variant: t, layout: n, selected: r, selectMode: o, seekS"data-media-scrub": "",children: /* @__PURE__ */ (0, L.jsx)("i", { style: { "--media-fill": `${Math.round(e.leave_ratio * 100)}%` } })}),- /* @__PURE__ */ (0, L.jsx)(Wne, {}),- /* @__PURE__ */ (0, L.jsx)(Gne, {+ /* @__PURE__ */ (0, L.jsx)(Sre, {}),+ /* @__PURE__ */ (0, L.jsx)(Cre, {item: e,actions: l}),@@ -27200,27 +27215,27 @@ function Kne({ item: e, variant: t, layout: n, selected: r, selectMode: o, seekS/* @__PURE__ */ (0, L.jsx)("button", {type: "button",onClick: (e) => {- e.stopPropagation(), pT(d.current, -s);+ e.stopPropagation(), Rw(d.current, -s);},title: `后退 ${s} 秒`,"aria-label": `后退 ${s} 秒`,- children: /* @__PURE__ */ (0, L.jsx)(fT, { name: "rotate-ccw" })+ children: /* @__PURE__ */ (0, L.jsx)(Lw, { name: "rotate-ccw" })}),/* @__PURE__ */ (0, L.jsx)("button", {type: "button",onClick: (e) => {- e.stopPropagation(), pT(d.current, s);+ e.stopPropagation(), Rw(d.current, s);},title: `前进 ${s} 秒`,"aria-label": `前进 ${s} 秒`,- children: /* @__PURE__ */ (0, L.jsx)(fT, { name: "rotate-cw" })+ children: /* @__PURE__ */ (0, L.jsx)(Lw, { name: "rotate-cw" })}),/* @__PURE__ */ (0, L.jsx)("button", {type: "button","data-open": "",title: "打开详情","aria-label": "打开详情",- children: /* @__PURE__ */ (0, L.jsx)(fT, { name: "expand" })+ children: /* @__PURE__ */ (0, L.jsx)(Lw, { name: "expand" })})]})@@ -27296,8 +27311,8 @@ function Kne({ item: e, variant: t, layout: n, selected: r, selectMode: o, seekS]});}-function qne({ item: e, selected: t, selectMode: n, helpers: i, actions: o, onOpen: s }) {- let c = (0, I.useRef)(null), [l, u] = (0, I.useState)(!1), d = e.medium === "image" && e.location !== "online", f = String(e.name || ""), p = f.toLowerCase().endsWith(".url") ? "网址快捷方式" : Bne[e.medium || ""] || "其它文件", m = d ? "pics" : p === "网址快捷方式" ? "globe" : "hard-drive", h = e.disposal === "trash" ? "restore" : "dispose", g = h === "restore" ? "还原" : "移入回收站", _ = (t) => {+function Tre({ item: e, selected: t, selectMode: n, helpers: i, actions: o, onOpen: s }) {+ let c = (0, I.useRef)(null), [l, u] = (0, I.useState)(!1), d = e.medium === "image" && e.location !== "online", f = String(e.name || ""), p = f.toLowerCase().endsWith(".url") ? "网址快捷方式" : vre[e.medium || ""] || "其它文件", m = d ? "pics" : p === "网址快捷方式" ? "globe" : "hard-drive", h = e.disposal === "trash" ? "restore" : "dispose", g = h === "restore" ? "还原" : "移入回收站", _ = (t) => {t.preventDefault(), t.stopPropagation(), !l && (u(!0), o.resourceOperation(e, h).catch(() => {}).finally(() => u(!1)));}, v = (t) => {if (c.current) {@@ -27323,7 +27338,7 @@ function qne({ item: e, selected: t, selectMode: n, helpers: i, actions: o, onOpchildren: [/* @__PURE__ */ (0, L.jsxs)("span", {"data-media-glyph": "",- children: [/* @__PURE__ */ (0, L.jsx)(fT, { name: m }), /* @__PURE__ */ (0, L.jsx)("b", { children: p })]+ children: [/* @__PURE__ */ (0, L.jsx)(Lw, { name: m }), /* @__PURE__ */ (0, L.jsx)("b", { children: p })]}),d ? /* @__PURE__ */ (0, L.jsx)("span", {"data-media-art": "thumb",@@ -27335,11 +27350,11 @@ function qne({ item: e, selected: t, selectMode: n, helpers: i, actions: o, onOp}),/* @__PURE__ */ (0, L.jsx)("span", {"data-media-check": "",- children: /* @__PURE__ */ (0, L.jsx)(fT, { name: "check" })+ children: /* @__PURE__ */ (0, L.jsx)(Lw, { name: "check" })}),/* @__PURE__ */ (0, L.jsxs)("span", {"data-media-trash-mark": "",- children: [/* @__PURE__ */ (0, L.jsx)(fT, { name: "trash" }), /* @__PURE__ */ (0, L.jsx)("b", { children: "回收站" })]+ children: [/* @__PURE__ */ (0, L.jsx)(Lw, { name: "trash" }), /* @__PURE__ */ (0, L.jsx)("b", { children: "回收站" })]}),/* @__PURE__ */ (0, L.jsx)("button", {type: "button",@@ -27349,7 +27364,7 @@ function qne({ item: e, selected: t, selectMode: n, helpers: i, actions: o, onOponClick: _,"aria-busy": l || void 0,"aria-disabled": l || void 0,- children: l ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("span", { dangerouslySetInnerHTML: { __html: D(h === "restore" ? "正在还原" : "正在移入回收站") } }), /* @__PURE__ */ (0, L.jsx)("span", { children: y })] }) : /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(fT, { name: h === "restore" ? "rotate-ccw" : "trash" }), /* @__PURE__ */ (0, L.jsx)("span", { children: g })] })+ children: l ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("span", { dangerouslySetInnerHTML: { __html: k(h === "restore" ? "正在还原" : "正在移入回收站") } }), /* @__PURE__ */ (0, L.jsx)("span", { children: y })] }) : /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Lw, { name: h === "restore" ? "rotate-ccw" : "trash" }), /* @__PURE__ */ (0, L.jsx)("span", { children: g })] })})]}), /* @__PURE__ */ (0, L.jsxs)("div", {@@ -27358,7 +27373,7 @@ function qne({ item: e, selected: t, selectMode: n, helpers: i, actions: o, onOp"data-media-avatar": "","data-media-kind-glyph": "","aria-hidden": "true",- children: /* @__PURE__ */ (0, L.jsx)(fT, { name: m })+ children: /* @__PURE__ */ (0, L.jsx)(Lw, { name: m })}), /* @__PURE__ */ (0, L.jsxs)("div", {"data-media-text": "",children: [/* @__PURE__ */ (0, L.jsx)("span", {@@ -27387,14 +27402,14 @@ function qne({ item: e, selected: t, selectMode: n, helpers: i, actions: o, onOp})]});}-function Jne(e) {- return e.variant === "resource" ? /* @__PURE__ */ (0, L.jsx)(qne, { ...e }) : /* @__PURE__ */ (0, L.jsx)(Kne, { ...e });+function Ere(e) {+ return e.variant === "resource" ? /* @__PURE__ */ (0, L.jsx)(Tre, { ...e }) : /* @__PURE__ */ (0, L.jsx)(wre, { ...e });}-var mT = (0, I.memo)(Jne), Yne = { "text-aa": 1.435 }, hT = /* @__PURE__ */ new Map();-function gT(e) {- let t = hT.get(e);+var zw = (0, I.memo)(Ere), Dre = { "text-aa": 1.435 }, Bw = /* @__PURE__ */ new Map();+function Vw(e) {+ let t = Bw.get(e);if (t) return t;- let n = Yne[e], r = n ? ({ className: t }) => /* @__PURE__ */ (0, L.jsx)("svg", {+ let n = Dre[e], r = n ? ({ className: t }) => /* @__PURE__ */ (0, L.jsx)("svg", {"aria-hidden": !0,viewBox: `0 0 ${(24 * n).toFixed(2)} 24`,className: `shrink-0 fill-current ${t ?? "h-4 w-auto"}`,@@ -27408,18 +27423,18 @@ function gT(e) {className: `shrink-0 stroke-current stroke-2 ${t ?? "size-4"}`,children: /* @__PURE__ */ (0, L.jsx)("use", { href: `#i-${e}` })});- return r.displayName = `SpriteGlyph(${e})`, hT.set(e, r), r;+ return r.displayName = `SpriteGlyph(${e})`, Bw.set(e, r), r;}//#endregion//#region src/react/components/use-stack-flip.ts-var Xne = 1100, Zne = 340, Qne = 5e3;-function $ne(e, t, n) {+var Ore = 1100, kre = 340, Hw = 5e3;+function Uw(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, Qne);+ }, s = () => o(!1), c = setTimeout(s, Hw);t.cancels.add(s), i.onerror = s, i.onload = () => {if (!i.naturalWidth) {o(!1);@@ -27429,7 +27444,7 @@ function $ne(e, t, n) {}, i.src = e;});}-function _T({ load: e, canFlip: t, referrerPolicy: n }) {+function Ww({ load: e, canFlip: t, referrerPolicy: n }) {let [r, i] = (0, I.useState)([]), [a, o] = (0, I.useState)(0), [s, c] = (0, I.useState)(null), l = (0, I.useRef)({live: !1,generation: 0,@@ -27471,11 +27486,11 @@ function _T({ load: e, canFlip: t, referrerPolicy: n }) {return;}if (!r() || !u.current.canFlip() || a.length < 2) return;- let s = await Promise.all(a.map((t) => $ne(t, e, n)));+ let s = await Promise.all(a.map((t) => Uw(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, Xne);+ p(), e.cycle = setInterval(p, Ore);}));};return (0, I.useEffect)(() => d, [d]), {@@ -27484,7 +27499,7 @@ function _T({ 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(Zne, () => {+ e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(kre, () => {e.armed = null, m();});},@@ -27495,8 +27510,8 @@ function _T({ load: e, canFlip: t, referrerPolicy: n }) {}//#endregion//#region src/react/components/mix-card.tsx-var vT = gT("play");-function ere({ src: e }) {+var Gw = Vw("play");+function Kw({ src: e }) {let [t, n] = (0, I.useState)(!1);return t ? null : /* @__PURE__ */ (0, L.jsx)("img", {"data-mix-poster": "",@@ -27507,8 +27522,8 @@ function ere({ src: e }) {className: "absolute inset-0 block size-full object-contain"});}-var yT = "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 tre({ faces: e, fallback: t, faceAvatar: n, onOpenEntity: r }) {+var qw = "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 Jw({ faces: e, fallback: t, faceAvatar: n, onOpenEntity: r }) {return e.length ? /* @__PURE__ */ (0, L.jsx)("div", {"data-mix-avatars": "",children: e.slice(0, 5).map((e) => /* @__PURE__ */ (0, L.jsx)("button", {@@ -27516,18 +27531,18 @@ function tre({ faces: e, fallback: t, faceAvatar: n, onOpenEntity: r }) {title: `打开资料页:${e.name}`,"aria-label": `打开资料页:${e.name}`,onClick: () => r(e.kind, e.name),- className: `${yT} cursor-pointer outline-none`,+ className: `${qw} cursor-pointer outline-none`,dangerouslySetInnerHTML: { __html: n(e) }}, `${e.kind}:${e.id}`))}) : /* @__PURE__ */ (0, L.jsx)("span", {"data-mix-initial": "","aria-hidden": !0,- className: `${yT} mt-0.5`,+ className: `${qw} mt-0.5`,children: t});}-function bT({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, faceAvatar: s, onOpenEntity: c, onOpen: l, openLabel: u, menu: d, ratio: f, artwork: p, artworkIdentity: m, relayoutArt: h, faceHtml: g, badge: _, glyph: v, wholeCard: y, ...b }) {- let x = _T({+function Yw({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, faceAvatar: s, onOpenEntity: c, onOpen: l, openLabel: u, menu: d, ratio: f, artwork: p, artworkIdentity: m, relayoutArt: h, faceHtml: g, badge: _, glyph: v, wholeCard: y, ...b }) {+ let x = Ww({load: i,canFlip: a}), S = (0, I.useRef)(x.onPointerLeave);@@ -27554,11 +27569,11 @@ function bT({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:style: f === void 0 ? void 0 : { "--card-ratio": String(f) },className: "relative z-1 flex aspect-video items-center justify-center overflow-hidden rounded-surface",children: [- p?.html ? /* @__PURE__ */ (0, L.jsx)(uT, {+ p?.html ? /* @__PURE__ */ (0, L.jsx)(Fw, {artwork: p,identity: m,relayout: h- }) : r ? /* @__PURE__ */ (0, L.jsx)(ere, { src: r }, r) : /* @__PURE__ */ (0, L.jsx)("span", {+ }) : r ? /* @__PURE__ */ (0, L.jsx)(Kw, { src: r }, r) : /* @__PURE__ */ (0, L.jsx)("span", {className: "text-caption-1-regular tracking-caps text-text-secondary uppercase",children: "无预览"}),@@ -27588,7 +27603,7 @@ function bT({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:/* @__PURE__ */ (0, L.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, L.jsx)(vT, {+ children: [/* @__PURE__ */ (0, L.jsx)(Gw, {"aria-hidden": !0,className: "size-3.75"}), _ ?? `${n} 个视频`]@@ -27601,8 +27616,8 @@ function bT({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:v ? /* @__PURE__ */ (0, L.jsx)("span", {"data-mix-glyph": "","aria-hidden": !0,- children: /* @__PURE__ */ (0, L.jsx)(vT, {})- }) : /* @__PURE__ */ (0, L.jsx)(tre, {+ children: /* @__PURE__ */ (0, L.jsx)(Gw, {})+ }) : /* @__PURE__ */ (0, L.jsx)(Jw, {faces: o,fallback: e.slice(0, 1),faceAvatar: s,@@ -27627,21 +27642,21 @@ function bT({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:}//#endregion//#region src/react/catalog-grid/catalog-grid-page.tsx-var xT = "";-function ST(e) {- if (e.mode === "items") return /* @__PURE__ */ (0, L.jsx)(rre, { ...e });- let t = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${nT(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;- return /* @__PURE__ */ (0, L.jsx)(ire, { ...e }, t);+var Xw = "";+function Zw(e) {+ if (e.mode === "items") return /* @__PURE__ */ (0, L.jsx)($w, { ...e });+ let t = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${Dw(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;+ return /* @__PURE__ */ (0, L.jsx)(eT, { ...e }, t);}-function nre({ name: e }) {+function Qw({ name: e }) {return /* @__PURE__ */ (0, L.jsx)("svg", {viewBox: "0 0 24 24","aria-hidden": "true",children: /* @__PURE__ */ (0, L.jsx)("use", { href: `#i-${e}` })});}-function rre(e) {- let { actions: t } = e, n = (0, I.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, L.jsx)(mT, {+function $w(e) {+ let { actions: t } = e, n = (0, I.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, L.jsx)(zw, {item: i,variant: r,layout: e.layout,@@ -27661,15 +27676,15 @@ function rre(e) {children: i});}-function ire(e) {- let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Ane(e) : rT(e), s = i && e.initial ? {+function eT(e) {+ let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? sre(e) : Ow(e), s = i && e.initial ? {pages: [{...e.initial,items: e.initial.items || [],offset: 0}],pageParams: [0]- } : void 0, c = Ft({+ } : void 0, c = Lt({queryKey: o.queryKey,queryFn: ({ pageParam: e, signal: t }) => o.queryFn({pageParam: e,@@ -27682,7 +27697,7 @@ function ire(e) {(0, I.useEffect)(() => {c.isPending || l.current || (l.current = !0, e.settled?.(e.revision));}, [c.isPending]);- let { tiles: u, pageStarts: f } = (0, I.useMemo)(() => Fne(c.data?.pages || [], {+ let { tiles: u, pageStarts: f } = (0, I.useMemo)(() => fre(c.data?.pages || [], {collapse: e.groupCollapse !== !1,mix: !!e.mix && !a,javImage: r.javImage@@ -27692,14 +27707,14 @@ function ire(e) {e.mix,a,r.javImage- ]), p = u.reduce((e, t) => e + +(t.kind === "card"), 0), m = Number(c.data?.pages[0]?.total || 0), h = aT(c.isPending, e.skeletonHtml), g = (0, I.useRef)(null), _ = are(e, c.data, u, f, g);+ ]), p = u.reduce((e, t) => e + +(t.kind === "card"), 0), m = Number(c.data?.pages[0]?.total || 0), h = Aw(c.isPending, e.skeletonHtml), g = (0, I.useRef)(null), _ = nT(e, c.data, u, f, g);(0, I.useLayoutEffect)(() => {if (!c.data) return;e.onCount?.(m, p);let t = a ? null : e.countRow?.querySelector("[data-count-readout]");if (!t) return;let n = `${m.toLocaleString()} 个符合 · 显示 ${p}`;- xT && (t.dataset.popCount = xT), xT = n, w(t, n);+ Xw && (t.dataset.popCount = Xw), Xw = n, T(t, n);}, [c.data,m,@@ -27708,12 +27723,12 @@ function ire(e) {let v = (0, I.useCallback)((e, t) => n.open(e, t), [n]), y = (0, I.useCallback)((e, t) => n.openResource(e, t), [n]), b = (0, I.useCallback)((e) => n.openShort(e), [n]), x = (0, I.useCallback)(async () => {let e = await c.fetchNextPage({ cancelRefetch: !1 });if (e.isFetchNextPageError) throw e.error;- }, [c.fetchNextPage]), S = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, L.jsx)(sre, {+ }, [c.fetchNextPage]), S = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, L.jsx)(aT, {seed: i.seed,layout: r,helpers: t,actions: n- }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, L.jsx)(mT, {+ }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, L.jsx)(zw, {item: i.item,variant: a && i.item.medium && i.item.medium !== "video" ? "resource" : "grid",layout: r,@@ -27730,7 +27745,7 @@ function ire(e) {"data-grid-reveal": h.fading ? "" : void 0,children: [h.layer, (() => {if (c.isPending) return null;- if (!c.data) return /* @__PURE__ */ (0, L.jsx)(oT, {+ if (!c.data) return /* @__PURE__ */ (0, L.jsx)(jw, {message: d(c.error),onRetry: () => void c.refetch()});@@ -27747,15 +27762,15 @@ function ire(e) {return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("div", {"data-media-sections": "","data-select-mode": e.selectMode ? "" : void 0,- children: Rne(u, _).map((t) => /* @__PURE__ */ (0, L.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("div", {+ children: hre(u, _).map((t) => /* @__PURE__ */ (0, L.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("div", {"data-media-grid": "",children: t.tiles.map(S)- }), t.strip ? /* @__PURE__ */ (0, L.jsx)(ore, {+ }), t.strip ? /* @__PURE__ */ (0, L.jsx)(rT, {cut: t.strip,props: e,onOpen: b}) : null] }, t.start))- }), c.hasNextPage ? /* @__PURE__ */ (0, L.jsx)(CT, {+ }), c.hasNextPage ? /* @__PURE__ */ (0, L.jsx)(tT, {entity: i,load: x,enabled: () => e.canLoadMore?.() !== !1@@ -27763,7 +27778,7 @@ function ire(e) {})()]});}-function CT({ entity: e, load: t, enabled: n, children: r }) {+function tT({ entity: e, load: t, enabled: n, children: r }) {let i = (0, I.useRef)(null), a = (0, I.useRef)(!1), o = (0, I.useRef)(!1), [s, c] = (0, I.useState)({busy: !1,error: ""@@ -27823,13 +27838,13 @@ function CT({ entity: e, load: t, enabled: n, children: r }) {"data-load-more": "",...p,onClick: () => void u(!0),- dangerouslySetInnerHTML: { __html: b("继续载入中…") }- }), s.error ? /* @__PURE__ */ (0, L.jsx)(oT, {+ dangerouslySetInnerHTML: { __html: x("继续载入中…") }+ }), s.error ? /* @__PURE__ */ (0, L.jsx)(jw, {message: s.error,onRetry: () => void u(!0)}) : null] });}-function are(e, t, n, r, i) {+function nT(e, t, n, r, i) {let [a, o] = (0, I.useState)([]), [s, c] = (0, I.useState)(null), l = (0, I.useRef)(0), u = (0, I.useRef)(0), d = (0, I.useRef)([]);return (0, I.useEffect)(() => () => d.current.forEach((e) => e.abort()), []), (0, I.useEffect)(() => {let n = t?.pages.length || 0;@@ -27838,7 +27853,7 @@ function are(e, t, n, r, i) {let r = new AbortController();d.current.push(r);let i = n - 1;- Tw(`/api/items?${Lne(e.filters || {}, l.current)}`, r.signal).then((t) => {+ iw(`/api/items?${mre(e.filters || {}, l.current)}`, r.signal).then((t) => {let n = t.items || [];if (!n.length) {l.current = 0;@@ -27854,7 +27869,7 @@ function are(e, t, n, r, i) {}, [t]), (0, I.useLayoutEffect)(() => {if (!s) return;c(null);- let e = a.reduce((e, t) => Math.max(e, t.at), 0), t = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), u = t?.[t.length - 1], d = u ? Math.max(1, getComputedStyle(u).gridTemplateColumns.split(" ").length) : 1, f = Math.max(0, (r[s.page] ?? 0) - e), p = Ine(n.length - e, f, d);+ let e = a.reduce((e, t) => Math.max(e, t.at), 0), t = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), u = t?.[t.length - 1], d = u ? Math.max(1, getComputedStyle(u).gridTemplateColumns.split(" ").length) : 1, f = Math.max(0, (r[s.page] ?? 0) - e), p = pre(n.length - e, f, d);if (!p.length) return;let m = e + (p[Math.floor(Math.random() * p.length)] ?? 0);l.current = s.more ? l.current + 18 : 0, o((e) => [...e, {@@ -27864,7 +27879,7 @@ function are(e, t, n, r, i) {}]);}, [s]), a;}-function ore({ cut: e, props: t, onOpen: n }) {+function rT({ cut: e, props: t, onOpen: n }) {let r = (0, I.useRef)(null), { wireDrag: i } = t;return (0, I.useEffect)(() => {r.current && i(r.current);@@ -27880,12 +27895,12 @@ function ore({ cut: e, props: t, onOpen: n }) {type: "button","data-shorts-enter": "",onClick: () => t.actions.openShorts(),- children: [/* @__PURE__ */ (0, L.jsx)(nre, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, L.jsx)("span", { children: "进入沉浸模式" })]+ children: [/* @__PURE__ */ (0, L.jsx)(Qw, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, L.jsx)("span", { children: "进入沉浸模式" })]})] }), /* @__PURE__ */ (0, L.jsx)("div", {ref: r,"data-shorts-row": "",- children: e.items.map((e) => /* @__PURE__ */ (0, L.jsx)(mT, {+ children: e.items.map((e) => /* @__PURE__ */ (0, L.jsx)(zw, {item: e,variant: "short",layout: t.layout,@@ -27899,9 +27914,9 @@ function ore({ cut: e, props: t, onOpen: n }) {})]});}-function wT(e, t, n, r) {+function iT(e, t, n, r) {let i = t.active && !!e.is_jav;- return e.is_jav ? cT(e, i ? t.size : "small", n, t.javImage, r.coverHtml) : !e.has_thumb && !e.has_local_poster ? {+ return e.is_jav ? Nw(e, i ? t.size : "small", n, t.javImage, r.coverHtml) : !e.has_thumb && !e.has_local_poster ? {kind: "",html: ""} : {@@ -27909,18 +27924,18 @@ function wT(e, t, n, r) {html: `<img class="poster" src="/poster?id=${e.id}&c=4" alt="" loading="${n ? "eager" : "lazy"}">`};}-function sre({ seed: e, layout: t, helpers: n, actions: r }) {+function aT({ seed: e, layout: t, helpers: n, actions: r }) {let i = (0, I.useRef)(/* @__PURE__ */ new Map()), a = (0, I.useRef)(t);a.current = t;- let o = Nne(e, n.tagLabel), s = (0, I.useCallback)(async () => {- let t = a.current, o = [e, ...await r.mixRelated(e.id)].filter((e) => iT(e, t.javImage)).slice(0, 9);- return i.current = new Map(o.map((e) => [String(e.id), wT(e, t, !0, n).html])), o.map((e) => String(e.id));+ let o = ure(e, n.tagLabel), s = (0, I.useCallback)(async () => {+ let t = a.current, o = [e, ...await r.mixRelated(e.id)].filter((e) => kw(e, t.javImage)).slice(0, 9);+ return i.current = new Map(o.map((e) => [String(e.id), iT(e, t, !0, n).html])), o.map((e) => String(e.id));}, [e,r,n- ]), c = t.active && !!e.is_jav, l = c ? t.size : "small", u = wT(e, t, !1, n);- return /* @__PURE__ */ (0, L.jsx)(bT, {+ ]), c = t.active && !!e.is_jav, l = c ? t.size : "small", u = iT(e, t, !1, n);+ return /* @__PURE__ */ (0, L.jsx)(Yw, {"data-mix-seed": String(e.id),name: `Mix · ${o}`,caption: `${n.displayName(e, e.name || "")}及相似作品`,@@ -27930,12 +27945,12 @@ function sre({ seed: e, layout: t, helpers: n, actions: r }) {wholeCard: !0,poster: null,artwork: u,- artworkIdentity: l === "small" ? u.html : wT(e, {+ artworkIdentity: l === "small" ? u.html : iT(e, {...t,size: "small"}, !1, n).html,relayoutArt: (e) => n.relayoutArt(e, l),- ratio: c && t.size === "big" ? dT : 16 / 9,+ ratio: c && t.size === "big" ? Iw : 16 / 9,flipImages: s,faceHtml: (e) => i.current.get(e) || "",canFlip: r.canFlip,@@ -27947,13 +27962,591 @@ function sre({ seed: e, layout: t, helpers: n, actions: r }) {});}//#endregion+//#region src/react/media-sources.ts+var oT = "/api/sources", sT = ["media-sources"], cT = (e) => iw(oT, e);+async function lT(e) {+ await X.fetchQuery({+ queryKey: sT,+ queryFn: () => cT(e)+ });+}+var uT = [+ "local",+ "115",+ "pikpak"+], dT = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), fT = "/api/duplicates?limit=120", pT = ["duplicates"], mT = "/api/batch", hT = (e) => iw(fT, e);+async function gT(e) {+ await Promise.all([X.fetchQuery({+ queryKey: pT,+ queryFn: () => hT(e)+ }), lT(e)]);+}+var _T = {+ largest: "最大的一个",+ longest: "最长的一个",+ 115: "115(没有则留最大)",+ pikpak: "PikPak(没有则留最大)",+ all: "零个文件"+}, vT = (e, t) => t.filter((t) => e.some((e) => e.location === t)), yT = (e, t) => vT(e, t).filter((t) => e.some((e) => e.location !== t)), bT = (e, t) => t.filter((t) => e.some((e) => yT(e.files, [t]).length));+function xT(e, t) {+ let n = [];+ for (let r of e) {+ if (t === "all") {+ for (let e of r.files) n.push(e.id);+ continue;+ }+ let e;+ if (t === "largest" || t === "longest") {+ let n = t === "longest" ? "is_longest" : "is_largest";+ e = r.files.find((e) => e[n]) ?? r.files[0];+ } else {+ let n = r.files.filter((e) => e.location === t), i = n.length ? n : r.files;+ e = i.reduce((e, t) => (t.size || 0) > (e.size || 0) ? t : e, i[0]);+ }+ for (let t of r.files) t.id !== e?.id && n.push(t.id);+ }+ return n;+}+function ST(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 CT(e, t) {+ for (let n = 0; n < e.length; n += 200) await q(mT, {+ ids: e.slice(n, n + 200),+ operation: t+ });+}+//#endregion+//#region src/react/library-processing/library-processing.ts+var wT = "/api/library-processing", TT = ["library-processing"], ET = (e) => iw(wT, e);+async function DT(e) {+ await X.fetchQuery({+ queryKey: TT,+ queryFn: () => ET(e)+ });+}+var OT = 2e3, kT = 1e4, AT = "连接中断,正在重新读取处理进度";+function jT(e, t) {+ return e?.status === "running" ? OT : t ? kT : !1;+}+var MT = {+ reading_local: "读取本地资料",+ querying_metadata: "查询外部资料",+ fetching_cover: "采集缺失封面",+ writing_candidates: "保存资料候选"+}, NT = {+ querying_metadata: "没有资料",+ fetching_cover: "没有封面"+};+function PT(e) {+ let t = Object.entries(e).filter(([e, t]) => NT[e] && t > 0).map(([e, t]) => `${NT[e]} ${t} 部`);+ return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";+}+function FT(e) {+ let t = MT[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";+ return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;+}+function IT(e) {+ let t = e.issue_preview || [];+ return t.length ? {+ label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,+ items: t.map((e, t) => ({+ key: `${e.asset_id ?? "source"}-${t}`,+ label: e.title || (e.asset_id ? `视频 ${e.asset_id}` : "媒体来源"),+ href: e.asset_id ? `/item/${e.asset_id}` : "",+ note: e.message,+ hint: e.path || ""+ })),+ log: e.issues_log || ""+ } : null;+}+var LT = "peach.library-processing.announced", RT = 120;+function zT(e, t, n) {+ if (e.status !== "complete") return;+ let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < RT;+ if (!(!n && !r)) {+ try {+ if (e.job_id && localStorage.getItem(LT) === e.job_id) return;+ e.job_id && localStorage.setItem(LT, e.job_id);+ } catch {}+ t(`扫描与资料采集已完成:识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条`);+ }+}+//#endregion+//#region src/react/media-repair/media-repair.ts+var BT = "/api/media-repair", VT = ["media-repair"], HT = ["media-repair", "libraries"], UT = {+ status: "idle",+ library: "",+ stage: "",+ checked: 0,+ total: 0,+ found: 0,+ repaired: 0,+ failed: 0,+ missing_tool: 0,+ skipped: 0,+ message: ""+}, WT = (e) => iw(BT, e), GT = async (e) => (await iw("/api/libraries", e)).libraries || [];+async function KT(e) {+ await Promise.all([X.fetchQuery({+ queryKey: VT,+ queryFn: () => WT(e)+ }), X.fetchQuery({+ queryKey: HT,+ queryFn: () => GT(e)+ })]);+}+var qT = (e) => Number(e).toLocaleString();+function JT(e) {+ if (e.status === "running") {+ let t = e.total ? `${qT(e.checked)} / ${qT(e.total)}` : "准备中";+ return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;+ }+ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${qT(e.repaired)} 部,${qT(e.failed)} 部修不了` : `修好 ${qT(e.repaired)} 部` : "";+}+var YT = (e) => `${qT(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, XT = "/api/quality-goals?limit=200", ZT = ["quality-goals"], QT = (e) => iw(XT, e);+async function $T(e) {+ await X.fetchQuery({+ queryKey: ZT,+ queryFn: () => QT(e)+ });+}+var eE = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;+function tE(e, t, n = 1) {+ let r = (e, t) => Array.from({ length: t - e + 1 }, (t, n) => e + n);+ if (n * 2 + 5 >= t) return r(1, t);+ let i = Math.max(e - n, 1), a = Math.min(e + n, t), o = i > 2, s = a < t - 2;+ return !o && s ? [+ ...r(1, 3 + 2 * n),+ "…",+ t+ ] : o && !s ? [+ 1,+ "…",+ ...r(t - (2 + 2 * n), t)+ ] : [+ 1,+ "…",+ ...r(i, a),+ "…",+ t+ ];+}+function nE(e, t) {+ return Math.max(1, Math.ceil(e / t));+}+function rE(e, t) {+ return Math.min(Math.max(1, Math.floor(e) || 1), t);+}+//#endregion+//#region src/selection.ts+function iE(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;+}+//#endregion+//#region src/react/time.ts+function aE(e) {+ if (!e) return "";+ let t = /[Zz]|[+-]\d\d:?\d\d$/.test(e) ? e : `${e}Z`, n = new Date(t);+ if (Number.isNaN(n.getTime())) return String(e).replace("T", " ").slice(0, 16);+ let r = (e) => String(e).padStart(2, "0");+ return `${n.getFullYear()}-${r(n.getMonth() + 1)}-${r(n.getDate())} ${r(n.getHours())}:${r(n.getMinutes())}`;+}+//#endregion+//#region src/react/review/review.ts+var oE = "/api/review", sE = "/api/review/decision", cE = "/api/review/genre", lE = ["review"], uE = {+ metadata_fields: "元数据字段",+ creator_tags: "创作者标签",+ studio_logos: "厂牌 Logo",+ performer_avatars: "女优头像",+ western_identity: "西方身份回配",+ code_creators: "番号目录存疑",+ fc2_markings: "FC2 评论标记",+ fc2_similarity: "FC2 跨号相似",+ video_endcards: "片尾/出处证据"+}, dE = Object.keys(uE), fE = "metadata_fields", pE = (e) => typeof e == "string" && Object.hasOwn(uE, e), mE = {+ creator_tags: "creator",+ western_identity: "creator"+};+function hE(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 gE(e, t) {+ let n = /* @__PURE__ */ new Map();+ for (let r of e) {+ let e, i;+ if (t === "field") e = r.field || "__unspecified_field", i = r.field_label || r.field || "未标注字段";+ else if (t === "source") {+ let t = [...new Set((r.candidates?.map((e) => e.source || "") || [r.source || ""]).filter(Boolean))].sort();+ e = JSON.stringify(t), i = t.join(" / ") || "未标注来源";+ } else e = r.candidates ? r.candidates.length === 1 ? "single" : "multiple" : "pending", i = e === "single" ? "单一候选" : e === "multiple" ? "需选择来源" : "待复核";+ n.has(e) || n.set(e, {+ key: e,+ title: i,+ rows: []+ }), n.get(e).rows.push(r);+ }+ return [...n.values()];+}+function _E(e, t, n) {+ return n && gE(e, t).find((e) => e.key === n)?.rows || e;+}+function vE(e, t) {+ let n = nE(e.length, 20), r = rE(t, n);+ return {+ page: r,+ pages: n,+ rows: e.slice((r - 1) * 20, r * 20)+ };+}+function yE(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 bE(e, t, n, r, i, a) {+ return iE(e, t, n, r, i, a);+}+function xE(e, t) {+ return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";+}+function SE(e, t) {+ return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);+}+var CE = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";+function wE(e, t) {+ let n = SE(e, t), r = CE(e, t);+ return r ? `${n} · ${r}` : n;+}+var TE = (e) => e.reason || e.evidence || e.note || e.decision_note || "", EE = (e) => String(e.tags || "").split("|").filter(Boolean), DE = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];+function OE(e) {+ let t = e.candidates || [];+ return {+ candidateKey: t.length === 1 ? t[0].candidate_key : "",+ assets: (e.preview_assets || []).map((e) => e.id)+ };+}+function kE(e, t, n, r) {+ let i = !!t.asset_path && t.asset_mutation_revision != null;+ return {+ category: e,+ item_key: t.item_key,+ status: n,+ candidate_key: r.candidateKey,+ creator: t.creator,+ tags: t.tags,+ studio: t.studio,+ entity_id: t.entity_id,+ avatar_url: t.avatar_url,+ selected_ids: r.assets,+ ...i ? { expected_revision: t.asset_mutation_revision } : {}+ };+}+var AE = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", jE = (e) => iw(oE, e), ME = (e) => q(sE, e), NE = (e, t) => q(cE, {+ genre: e,+ tag: t+});+async function PE(e) {+ await X.fetchQuery({+ queryKey: lE,+ queryFn: () => jE(e)+ });+}+function FE(e, t) {+ let n = new Set(t);+ n.size && X.setQueryData(lE, (t) => {+ if (!t) return t;+ let r = t.sections[e] || [], i = r.filter((e) => !n.has(String(e.item_key)));+ return i.length === r.length ? t : {+ ...t,+ sections: {+ ...t.sections,+ [e]: i+ },+ counts: {+ ...t.counts,+ [e]: Math.max(0, (t.counts[e] ?? r.length) - (r.length - i.length))+ }+ };+ });+}+var IE = () => X.invalidateQueries({+ queryKey: lE,+ exact: !0+});+function LE(e, t) {+ return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${aE(e.fetched_at)} 的缓存` : e?.error || t;+}+//#endregion+//#region src/react/data-cleanup/links.ts+var RE = "/api/links", zE = "/api/links/check", BE = "/api/links/prune", VE = ["links"], HE = ["links", "check"], UE = ["links", "prune"], WE = {+ official: "官网/事务所",+ social: "社交账号",+ catalog: "作品资料站",+ source_reference: "资料出处"+};+async function GE(e) {+ let t = await e;+ if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");+ return t;+}+var KE = (e) => iw(RE, e), qE = (e) => q(zE, { status_only: !0 }, "POST", e), Are = ({ retry: e, checkId: t }) => GE(q(zE, e ? {+ retry: e,+ check_id: t+} : { restart: !0 })), JE = (e) => iw(BE, e), jre = (e) => GE(q(BE, {+ confirm: !0,+ check_id: e,+ background: !0+})), YE = (e) => Number(e || 0).toLocaleString(), Mre = (e) => `已删除 ${YE(e.removed)} 条;${e.marked ? `已隐退女优的 ${YE(e.marked)} 条留作不可点的记录;` : ""}保留 ${YE(e.recovered)} 条未确认失效的链接。`;+function Nre(e) {+ let t = e.scope === "retry";+ return e.total ? `${t ? "已重验" : "已检查"} ${YE(e.checked)} / ${YE(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";+}+//#endregion+//#region src/react/data-cleanup/organize.ts+var Pre = "/api/organize", Fre = "/api/organize/preview", Ire = "/api/organize/apply", Lre = "/api/organize/rollback", Rre = "/api/settings", XE = ["organize"], ZE = (e) => iw(Pre, e);+async function zre(e) {+ await X.fetchQuery({+ queryKey: XE,+ queryFn: () => ZE(e)+ });+}+var Bre = (e) => q(Fre, e), Vre = (e) => e.kind === "apply" ? q(Ire, {+ ...e.request,+ confirm: !0+}) : q(Lre, { confirm: !0 });+async function Hre(e) {+ X.setQueryData(XE, (t) => t && {+ ...t,+ templates: e+ });+ try {+ await q(Rre, { organizeTemplates: e });+ } catch {}+}+var Ure = (e, t) => e && {+ ...e,+ ...t+}, Wre = /目录模板|分隔符|盘符|`\.`/;+function QE(e) {+ let t = String(e || "");+ return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);+}+var $E = (e) => Number(e || 0).toLocaleString();+function Gre(e) {+ let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${$E(t)}`).join(" · ");+ return Number(e.counts?.change || 0) ? `${$E(e.counts.change)} 个文件会改名或移动,${$E(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;+}+function eD(e) {+ let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);+ return {+ text: t ? `已退回 ${$E(r)} 个文件${n ? `,${$E(n)} 行未能退回` : ""}。` : `已整理 ${$E(r)} 个文件${n ? `,${$E(n)} 行未能处理` : ""}。`,+ failed: n,+ rollback: t+ };+}+//#endregion+//#region src/react/data-cleanup/resource-sync.ts+var tD = "/api/resource-sync/scan", nD = "/api/resource-sync/apply", rD = ["resource-sync", "scan"], iD = ["resource-sync", "apply"], aD = (e) => q(tD, {+ background: !0,+ status_only: !0+}, "POST", e), Kre = () => q(tD, {+ background: !0,+ restart: !0+}), oD = (e) => iw(nD, e), qre = (e) => q(nD, {+ confirm: !0,+ clean_cache: !0,+ scan_id: e,+ background: !0+}), sD = (e) => (e?.sources ?? []).some((e) => uT.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);+async function Jre(e) {+ sD(X.getQueryData(sT)) && await Promise.all([X.fetchQuery({+ queryKey: rD,+ queryFn: () => aD(e)+ }), X.fetchQuery({+ queryKey: iD,+ queryFn: () => oD(e)+ })]);+}+var Yre = (e) => !!(e?.missing || e?.empty || e?.cache?.files), Xre = {+ local: "本地磁盘",+ 115: "115",+ pikpak: "PikPak"+}, cD = (e) => Number(e || 0).toLocaleString(), Zre = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", Qre = (e) => `将永久删除文件已不在盘上的 ${cD(e.missing)} 条记录和 ${cD(e.empty)} 个空文件夹,并清理 ${cD(e.cache?.files)} 个闲置缓存。这一步不可撤销。`, $re = (e) => `将永久删除文件已不在盘上的 ${cD(e.missing)} 条记录(含回收站里的)、${cD(e.empty)} 个空文件夹,并清理 ${cD(e.cache?.files)} 个闲置缓存。来源根目录保留。这一步不可撤销。`, eie = (e) => e.online ? [+ `找不到文件 · 共 ${cD(e.total)} 项`,+ e.empty ? `空文件夹 ${cD(e.empty)} 个` : "",+ e.unreadable ? `${cD(e.unreadable)} 个目录读取失败,已跳过` : ""+].filter(Boolean).join(" · ") : `馆藏中有 ${cD(e.total)} 项`;+function lD(e) {+ let t = e.blocked ?? [], n = Number(e.dir_errors || 0), r = e.cache_blocked ?? [], i = Number(e.purged || 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 ? `${cD(t.length)} 条记录没有删除(${o})` : "",+ n ? `${cD(n)} 个文件夹没有删除` : "",+ r.length ? `${cD(r.length)} 个缓存没有清理` : ""+ ].filter(Boolean).join(",")+ };+}+var tie = (e, t) => {+ let { rest: n } = lD(e), r = `已永久删除 ${cD(e.purged)} 条失效记录和 ${cD(e.dirs_removed)} 个空文件夹,清理 ${cD(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。`;+ return n ? `${r}${n},重新检查后可再试。` : r;+}, nie = "/api/review?counts=1", uD = ["review", "counts"], rie = "/api/ads?limit=1", dD = ["junk-summary"], fD = "/api/items?state=trash&limit=1", pD = ["trash-summary"], iie = [+ ["video", "视频"],+ ["image", "图片"],+ ["archive", "压缩包"],+ ["audio", "音频"],+ ["url", "网址"],+ ["other", "其它"]+], mD = (e) => iw(nie, e), hD = (e) => iw(rie, e), gD = (e) => {+ let t = sessionStorage.getItem("peach.library");+ return iw(t ? `${fD}&library=${encodeURIComponent(t)}` : fD, e);+}, _D = (e) => Number(e || 0).toLocaleString();+function aie(e) {+ let t = uE, 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 oie(e) {+ if (!e) return "";+ let t = iie.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${_D(e.counts[t])}`);+ return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${_D(e.dismissed_total)}`), t.join(" · ");+}+var sie = [+ [uD, ({ signal: e }) => mD(e)],+ [ZT, ({ signal: e }) => QT(e)],+ [pD, ({ signal: e }) => gD(e)],+ [VE, ({ signal: e }) => KE(e)],+ [HE, ({ signal: e }) => qE(e)],+ [UE, ({ signal: e }) => JE(e)]+];+async function cie(e) {+ let t = location.hash === "#resource-sync", n = sie.map(([n, r]) => {+ if (t) return X.fetchQuery({+ queryKey: n,+ queryFn: () => r({ signal: e })+ }).catch(() => void 0);+ X.getQueryState(n) && X.prefetchQuery({+ queryKey: n,+ queryFn: r+ });+ });+ await Promise.all([+ ...n,+ X.fetchQuery({+ queryKey: dD,+ queryFn: () => hD(e)+ }),+ X.fetchQuery({+ queryKey: pT,+ queryFn: () => hT(e)+ }),+ lT(e).then(() => Jre(e)),+ DT(e),+ KT(e),+ zre(e)+ ]);+}+//#endregion+//#region src/react/components/stat-card.tsx+var lie = [+ "text-chart-6",+ "text-chart-5",+ "text-chart-7",+ "text-chart-8"+], uie = [+ "bg-chart-6/10",+ "bg-chart-5/10",+ "bg-chart-7/10",+ "bg-chart-8/10"+];+function vD(e = {}) {+ return `${aw({+ ...e,+ padding: "none"+ })} flex flex-col overflow-hidden pt-4 text-left`;+}+var yD = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", die = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";+function bD({ interactive: e = !1 } = {}) {+ return aw({+ padding: "none",+ radius: "plain",+ interactive: e,+ className: "flex min-h-33 flex-col gap-2 p-4 text-left"+ });+}+var fie = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";+function xD({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {+ return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [+ /* @__PURE__ */ (0, L.jsxs)("span", {+ className: "flex min-w-0 items-center gap-2 text-body-medium text-text-secondary",+ children: [+ t || n ? /* @__PURE__ */ (0, L.jsx)("i", {+ "aria-hidden": !0,+ className: "flex size-8 shrink-0 items-center justify-center rounded-md bg-background-primary-default text-text-primary",+ children: t ? /* @__PURE__ */ (0, L.jsx)(t, {+ "aria-hidden": !0,+ className: "size-4"+ }) : n+ }) : null,+ /* @__PURE__ */ (0, L.jsx)("span", {+ className: "min-w-0 truncate",+ children: e+ }),+ r ? /* @__PURE__ */ (0, L.jsx)("span", {+ className: "ml-auto shrink-0 text-caption-1-regular",+ children: r+ }) : null+ ]+ }),+ /* @__PURE__ */ (0, L.jsx)("strong", {+ className: "block text-title-1-medium tabular-nums text-text-primary",+ children: i+ }),+ /* @__PURE__ */ (0, L.jsx)("span", {+ className: `block min-h-4 text-caption-1-regular text-text-tertiary ${o ? "" : "truncate"}`,+ children: a+ })+ ] });+}+function SD({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {+ return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [+ /* @__PURE__ */ (0, L.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, L.jsx)("i", {+ "aria-hidden": !0,+ className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${lie[n % 4]} ${uie[n % 4]}`,+ children: /* @__PURE__ */ (0, L.jsx)(t, {+ "aria-hidden": !0,+ className: "size-4"+ })+ }) : null, /* @__PURE__ */ (0, L.jsx)("span", {+ className: "min-w-0 truncate",+ children: e+ })]+ }),+ /* @__PURE__ */ (0, L.jsx)("b", {+ className: "px-4 pt-3 pb-4 text-title-1-medium tabular-nums text-text-primary max-sm:px-3 max-sm:pb-3",+ children: r+ }),+ /* @__PURE__ */ (0, L.jsx)("small", {+ className: "mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular text-text-secondary max-sm:px-3 max-sm:py-2",+ children: i+ })+ ] });+}+//#endregion//#region node_modules/react-aria-components/dist/private/utils.mjs-var TT = Symbol("default");-function ET({ values: e, children: t }) {+var CD = Symbol("default");+function wD({ values: e, children: t }) {for (let [n, r] of e) t = /*#__PURE__*/ I.createElement(n.Provider, { value: r }, t);return t;}-function DT(e) {+function TD(e) {let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;return (0, I.useMemo)(() => {let e, l, u;@@ -27987,11 +28580,11 @@ function DT(e) {c]);}-function OT(e, t) {+function ED(e, t) {let n = (0, I.useContext)(e);if (t === null) return null;if (n && typeof n == "object" && "slots" in n && n.slots) {- let e = t || TT;+ let e = t || CD;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}.`);@@ -28000,8 +28593,8 @@ function OT(e, t) {}return n;}-function kT(e, t, n) {- let { ref: r, ...i } = OT(n, e.slot) || {}, a = uh((0, I.useMemo)(() => Gm(t, r), [t, r])), o = H(i, e);+function DD(e, t, n) {+ let { ref: r, ...i } = ED(n, e.slot) || {}, a = fh((0, I.useMemo)(() => qm(t, r), [t, r])), o = H(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,@@ -28019,42 +28612,42 @@ function kT(e, t, n) {...e.style}), [o, a];}-function AT(e = !0) {+function OD(e = !0) {let [t, n] = (0, I.useState)(e), r = (0, I.useRef)(!1), i = (0, I.useCallback)((e) => {r.current = !0, n(!!e);}, []);- return bp(() => {+ return Sp(() => {r.current || n(!1);}, []), [i, t];}-function jT(e) {+function kD(e) {let t = /^(data-.*)$/, n = {};for (let r in e) t.test(r) || (n[r] = e[r]);return n;}-function cre(e, t, n) {- let { render: r, ...i } = t, a = (0, I.useRef)(null), o = (0, I.useMemo)(() => Gm(n, a), [n, a]);- bp(() => {}, [e, r]);+function pie(e, t, n) {+ let { render: r, ...i } = t, a = (0, I.useRef)(null), o = (0, I.useMemo)(() => qm(n, a), [n, a]);+ Sp(() => {}, [e, r]);let s = {...i,ref: o};return r ? r(s, void 0) : /*#__PURE__*/ I.createElement(e, s);}-var MT = {}, NT = new Proxy({}, { get(e, t) {+var AD = {}, jD = new Proxy({}, { get(e, t) {if (typeof t != "string") return;- let n = MT[t];- return n || (n = /*#__PURE__*/ (0, I.forwardRef)(cre.bind(null, t)), MT[t] = n), n;-} }), PT = /*#__PURE__*/ (0, I.createContext)(null), FT = /*#__PURE__*/ (0, I.createContext)(null), IT = /*#__PURE__*/ (0, I.createContext)(null), LT = {+ let n = AD[t];+ return n || (n = /*#__PURE__*/ (0, I.forwardRef)(pie.bind(null, t)), AD[t] = n), n;+} }), MD = /*#__PURE__*/ (0, I.createContext)(null), ND = /*#__PURE__*/ (0, I.createContext)(null), PD = /*#__PURE__*/ (0, I.createContext)(null), FD = {CollectionRoot({ collection: e, renderDropIndicator: t }) {- return RT(e, null, t);+ return ID(e, null, t);},CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {- return RT(e, t, n);+ return ID(e, t, n);}};-function RT(e, t, n) {- return Uf({+function ID(e, t, n) {+ return Gf({items: t ? e.getChildren(t.key) : e,dependencies: [n],children(t) {@@ -28064,11 +28657,11 @@ function RT(e, t, n) {type: "item",key: t.key,dropPosition: "before"- }), r, lre(e, t, n));+ }), r, mie(e, t, n));}});}-function lre(e, t, n) {+function mie(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);@@ -28087,25 +28680,25 @@ function lre(e, t, n) {}return s;}-var zT = /*#__PURE__*/ (0, I.createContext)(LT);-function BT(e) {+var LD = /*#__PURE__*/ (0, I.createContext)(FD);+function RD(e) {return (0, I.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);}//#endregion//#region node_modules/react-aria-components/dist/private/Label.mjs-var VT = /*#__PURE__*/ (0, I.createContext)({}), ure = /*#__PURE__*/ _h(function(e, t) {- [e, t] = kT(e, t, VT);- let { elementType: n = "label", ...r } = e, i = NT[n];+var zD = /*#__PURE__*/ (0, I.createContext)({}), hie = /*#__PURE__*/ yh(function(e, t) {+ [e, t] = DD(e, t, zD);+ let { elementType: n = "label", ...r } = e, i = jD[n];return /*#__PURE__*/ I.createElement(i, {className: "react-aria-Label",...r,ref: t});-}), dre = /*#__PURE__*/ (0, I.createContext)(null), HT = /*#__PURE__*/ (0, I.createContext)({}), UT = /*#__PURE__*/ _h(function(e, t) {- [e, t] = kT(e, t, HT);- let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Rg(e, t);- i = pre(i, r);- let { focusProps: o, isFocused: s, isFocusVisible: c } = cy(e), { hoverProps: l, isHovered: u } = fy({+}), gie = /*#__PURE__*/ (0, I.createContext)(null), BD = /*#__PURE__*/ (0, I.createContext)({}), VD = /*#__PURE__*/ yh(function(e, t) {+ [e, t] = DD(e, t, BD);+ let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Ug(e, t);+ i = vie(i, r);+ let { focusProps: o, isFocused: s, isFocusVisible: c } = py(e), { hoverProps: l, isHovered: u } = _y({...e,isDisabled: e.isDisabled || r}), d = {@@ -28115,24 +28708,24 @@ var VT = /*#__PURE__*/ (0, I.createContext)({}), ure = /*#__PURE__*/ _h(functionisFocusVisible: c,isDisabled: e.isDisabled || !1,isPending: r ?? !1- }, f = DT({+ }, f = TD({...e,values: d,defaultClassName: "react-aria-Button"- }), p = Hm(i.id), m = Hm(), h = i["aria-labelledby"];+ }), p = Wm(i.id), m = Wm(), h = i["aria-labelledby"];r && (h ? h = `${h} ${m}` : i["aria-label"] && (h = `${p} ${m}`));let g = (0, I.useRef)(r);(0, I.useEffect)(() => {let e = { "aria-labelledby": h || p };- (!g.current && s && r || g.current && s && !r) && g_(e, "assertive"), g.current = r;+ (!g.current && s && r || g.current && s && !r) && m_(e, "assertive"), g.current = r;}, [r,s,h,p]);- let _ = _g(e, { global: !0 });- return delete _.onClick, /*#__PURE__*/ I.createElement(NT.button, {+ let _ = Sg(e, { global: !0 });+ return delete _.onClick, /*#__PURE__*/ I.createElement(jD.button, {...H(_, f, i, o, l),type: i.type === "submit" && r ? "button" : i.type,id: p,@@ -28146,62 +28739,62 @@ var VT = /*#__PURE__*/ (0, I.createContext)({}), ure = /*#__PURE__*/ _h(function"data-focused": s || void 0,"data-pending": r || void 0,"data-focus-visible": c || void 0- }, /*#__PURE__*/ I.createElement(dre.Provider, { value: { id: m } }, f.children));-}), fre = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;-function pre(e, t) {+ }, /*#__PURE__*/ I.createElement(gie.Provider, { value: { id: m } }, f.children));+}), _ie = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;+function vie(e, t) {if (t) {- for (let t in e) t.startsWith("on") && !fre.test(t) && (e[t] = void 0);+ for (let t in e) t.startsWith("on") && !_ie.test(t) && (e[t] = void 0);e.href = void 0, e.target = void 0;}return e;}//#endregion//#region node_modules/react-aria-components/dist/private/Heading.mjs-var WT = /*#__PURE__*/ (0, I.createContext)({}), GT = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {- [e, t] = kT(e, t, WT);- let { children: n, level: r = 3, className: i, ...a } = e, o = NT[`h${r}`];+var HD = /*#__PURE__*/ (0, I.createContext)({}), UD = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {+ [e, t] = DD(e, t, HD);+ let { children: n, level: r = 3, className: i, ...a } = e, o = jD[`h${r}`];return /*#__PURE__*/ I.createElement(o, {...a,ref: t,className: i ?? "react-aria-Heading"}, n);-}), KT = /*#__PURE__*/ (0, I.createContext)({}), mre = /*#__PURE__*/ _h(function(e, t) {- [e, t] = kT(e, t, KT);- let { elementType: n = "span", ...r } = e, i = NT[n];+}), WD = /*#__PURE__*/ (0, I.createContext)({}), yie = /*#__PURE__*/ yh(function(e, t) {+ [e, t] = DD(e, t, WD);+ let { elementType: n = "span", ...r } = e, i = jD[n];return /*#__PURE__*/ I.createElement(i, {className: "react-aria-Text",...r,ref: t});-}), qT = /*#__PURE__*/ (0, I.createContext)(null), JT = /*#__PURE__*/ (0, I.createContext)(null), YT = /*#__PURE__*/ (0, I.createContext)(null), XT = /*#__PURE__*/ (0, I.createContext)(null), hre = /*#__PURE__*/ (0, I.createContext)(null), ZT = /*#__PURE__*/ (0, I.createContext)(null);-function gre(e, t) {- let { validationBehavior: n } = OT(JT) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, I.useContext)(hre), a = uh((0, I.useMemo)(() => Gm(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {- ...jT(e),+}), GD = /*#__PURE__*/ (0, I.createContext)(null), KD = /*#__PURE__*/ (0, I.createContext)(null), qD = /*#__PURE__*/ (0, I.createContext)(null), JD = /*#__PURE__*/ (0, I.createContext)(null), bie = /*#__PURE__*/ (0, I.createContext)(null), YD = /*#__PURE__*/ (0, I.createContext)(null);+function xie(e, t) {+ let { validationBehavior: n } = ED(KD) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, I.useContext)(bie), a = fh((0, I.useMemo)(() => qm(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {+ ...kD(e),children: typeof e.children == "function" || e.children,value: e.value,validationBehavior: r};- return [i ? Oee(o, i, a) : R_(o, U_(e), a), a];+ return [i ? H_(o, i, a) : F_(o, V_(e), a), a];}-var _re = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {+var Sie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {let { inputRef: n = null, ...r } = e;- [e, t] = kT(r, t, YT);- let [i, a] = gre(e, n);- return /*#__PURE__*/ I.createElement(ZT.Provider, { value: {+ [e, t] = DD(r, t, qD);+ let [i, a] = xie(e, n);+ return /*#__PURE__*/ I.createElement(YD.Provider, { value: {...i,inputRef: a,defaultClassName: "react-aria-Checkbox",isIndeterminate: e.isIndeterminate,isRequired: e.isRequired- } }, /*#__PURE__*/ I.createElement(vre, {+ } }, /*#__PURE__*/ I.createElement(Cie, {...e,ref: t}));-}), vre = /*#__PURE__*/ (0, I.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, I.useContext)(ZT), { isFocused: p, isFocusVisible: m, focusProps: h } = cy(), g = a || o, { hoverProps: _, isHovered: v } = fy({+}), Cie = /*#__PURE__*/ (0, I.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, I.useContext)(YD), { isFocused: p, isFocusVisible: m, focusProps: h } = py(), g = a || o, { hoverProps: _, isHovered: v } = _y({...e,isDisabled: g- }), y = DT({+ }), y = TD({...e,defaultClassName: u,values: {@@ -28216,8 +28809,8 @@ var _re = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {isInvalid: c,isRequired: f || !1}- }), b = _g(e, { global: !0 });- return delete b.id, delete b.onClick, /*#__PURE__*/ I.createElement(NT.label, {+ }), b = Sg(e, { global: !0 });+ return delete b.id, delete b.onClick, /*#__PURE__*/ I.createElement(jD.label, {...H(b, n, _, y),ref: t,slot: e.slot || void 0,@@ -28231,20 +28824,20 @@ var _re = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {"data-readonly": o || void 0,"data-invalid": c || void 0,"data-required": f || void 0- }, /*#__PURE__*/ I.createElement(q_, { elementType: "span" }, /*#__PURE__*/ I.createElement("input", {+ }, /*#__PURE__*/ I.createElement(K_, { elementType: "span" }, /*#__PURE__*/ I.createElement("input", {...H(r, h),ref: l})), y.children);-}), QT = /*#__PURE__*/ (0, I.createContext)({}), yre = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {- [e, t] = kT(e, t, QT);+}), XD = /*#__PURE__*/ (0, I.createContext)({}), wie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {+ [e, t] = DD(e, t, XD);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 } = fy({+ let { hoverProps: l, isHovered: u } = _y({onHoverStart: a,onHoverChange: o,onHoverEnd: s,isDisabled: n- }), { isFocused: d, isFocusVisible: f, focusProps: p } = cy({ within: !0 }), m = DT({+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = py({ within: !0 }), m = TD({...e,values: {isHovered: u,@@ -28255,7 +28848,7 @@ var _re = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {},defaultClassName: "react-aria-Group"});- return /*#__PURE__*/ I.createElement(NT.div, {+ return /*#__PURE__*/ I.createElement(jD.div, {...H(c, p, l),...m,ref: t,@@ -28268,18 +28861,18 @@ var _re = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {"data-invalid": r || void 0,"data-readonly": i || void 0}, m.children);-}), $T = /*#__PURE__*/ (0, I.createContext)({}), bre = (e) => {+}), ZD = /*#__PURE__*/ (0, I.createContext)({}), Tie = (e) => {let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;return i;-}, xre = /*#__PURE__*/ _h(function(e, t) {- [e, t] = kT(e, t, $T);- let { hoverProps: n, isHovered: r } = fy({+}, Eie = /*#__PURE__*/ yh(function(e, t) {+ [e, t] = DD(e, t, ZD);+ let { hoverProps: n, isHovered: r } = _y({...e,isDisabled: e.disabled- }), { isFocused: i, isFocusVisible: a, focusProps: o } = cy({+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = py({isTextInput: !0,autoFocus: e.autoFocus- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = DT({+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = TD({...e,values: {isHovered: r,@@ -28290,8 +28883,8 @@ var _re = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {},defaultClassName: "react-aria-Input"});- return /*#__PURE__*/ I.createElement(NT.input, {- ...H(bre(e), o, n),+ return /*#__PURE__*/ I.createElement(jD.input, {+ ...H(Tie(e), o, n),...c,ref: t,"data-focused": i || void 0,@@ -28300,8 +28893,8 @@ var _re = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {"data-focus-visible": a || void 0,"data-invalid": s || void 0});-}), eE = {};-eE = {+}), QD = {};+QD = {colorSwatchPicker: "تغييرات الألوان",dropzoneLabel: "DropZone",selectPlaceholder: "حدد عنصرًا",@@ -28309,8 +28902,8 @@ eE = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/bg-BG.mjs-var tE = {};-tE = {+var $D = {};+$D = {colorSwatchPicker: "Цветови мостри",dropzoneLabel: "DropZone",selectPlaceholder: "Изберете предмет",@@ -28318,8 +28911,8 @@ tE = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs-var nE = {};-nE = {+var eO = {};+eO = {colorSwatchPicker: "Vzorky barev",dropzoneLabel: "Místo pro přetažení",selectPlaceholder: "Vyberte položku",@@ -28327,8 +28920,8 @@ nE = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/da-DK.mjs-var rE = {};-rE = {+var tO = {};+tO = {colorSwatchPicker: "Farveprøver",dropzoneLabel: "DropZone",selectPlaceholder: "Vælg et element",@@ -28336,8 +28929,8 @@ rE = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/de-DE.mjs-var iE = {};-iE = {+var nO = {};+nO = {colorSwatchPicker: "Farbfelder",dropzoneLabel: "Ablegebereich",selectPlaceholder: "Element wählen",@@ -28345,8 +28938,8 @@ iE = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/el-GR.mjs-var aE = {};-aE = {+var rO = {};+rO = {colorSwatchPicker: "Χρωματικά δείγματα",dropzoneLabel: "DropZone",selectPlaceholder: "Επιλέξτε ένα αντικείμενο",@@ -28354,8 +28947,8 @@ aE = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/en-US.mjs-var oE = {};-oE = {+var iO = {};+iO = {selectPlaceholder: "Select an item",tableResizer: "Resizer",dropzoneLabel: "DropZone",@@ -28363,8 +28956,8 @@ oE = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/es-ES.mjs-var sE = {};-sE = {+var aO = {};+aO = {colorSwatchPicker: "Muestras de colores",dropzoneLabel: "DropZone",selectPlaceholder: "Seleccionar un artículo",@@ -28372,8 +28965,8 @@ sE = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/et-EE.mjs-var cE = {};-cE = {+var oO = {};+oO = {colorSwatchPicker: "Värvinäidised",dropzoneLabel: "DropZone",selectPlaceholder: "Valige üksus",@@ -28381,8 +28974,8 @@ cE = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/fi-FI.mjs-var lE = {};-lE = {+var sO = {};+sO = {colorSwatchPicker: "Värimallit",dropzoneLabel: "DropZone",selectPlaceholder: "Valitse kohde",@@ -28390,8 +28983,8 @@ lE = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/fr-FR.mjs-var uE = {};-uE = {+var cO = {};+cO = {colorSwatchPicker: "Échantillons de couleurs",dropzoneLabel: "DropZone",selectPlaceholder: "Sélectionner un élément",@@ -28399,8 +28992,8 @@ uE = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/he-IL.mjs-var dE = {};-dE = {+var lO = {};+lO = {colorSwatchPicker: "דוגמיות צבע",dropzoneLabel: "DropZone",selectPlaceholder: "בחר פריט",@@ -28408,8 +29001,8 @@ dE = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/hr-HR.mjs-var fE = {};-fE = {+var uO = {};+uO = {colorSwatchPicker: "Uzorci boja",dropzoneLabel: "Zona spuštanja",selectPlaceholder: "Odaberite stavku",@@ -28417,8 +29010,8 @@ fE = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/hu-HU.mjs-var pE = {};-pE = {+var dO = {};+dO = {colorSwatchPicker: "Színtárak",dropzoneLabel: "DropZone",selectPlaceholder: "Válasszon ki egy elemet",@@ -28426,8 +29019,8 @@ pE = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/it-IT.mjs-var mE = {};-mE = {+var fO = {};+fO = {colorSwatchPicker: "Campioni di colore",dropzoneLabel: "Zona di rilascio",selectPlaceholder: "Seleziona un elemento",@@ -28435,8 +29028,8 @@ mE = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/ja-JP.mjs-var hE = {};-hE = {+var pO = {};+pO = {colorSwatchPicker: "カラースウォッチ",dropzoneLabel: "ドロップゾーン",selectPlaceholder: "項目を選択",@@ -28444,8 +29037,8 @@ hE = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/ko-KR.mjs-var gE = {};-gE = {+var mO = {};+mO = {colorSwatchPicker: "색상 견본",dropzoneLabel: "드롭 영역",selectPlaceholder: "항목 선택",@@ -28453,8 +29046,8 @@ gE = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/lt-LT.mjs-var _E = {};-_E = {+var hO = {};+hO = {colorSwatchPicker: "Spalvų pavyzdžiai",dropzoneLabel: "„DropZone“",selectPlaceholder: "Pasirinkite elementą",@@ -28462,8 +29055,8 @@ _E = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/lv-LV.mjs-var vE = {};-vE = {+var gO = {};+gO = {colorSwatchPicker: "Krāsu paraugi",dropzoneLabel: "DropZone",selectPlaceholder: "Izvēlēties vienumu",@@ -28471,8 +29064,8 @@ vE = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/nb-NO.mjs-var yE = {};-yE = {+var _O = {};+_O = {colorSwatchPicker: "Fargekart",dropzoneLabel: "Droppsone",selectPlaceholder: "Velg et element",@@ -28480,8 +29073,8 @@ yE = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/nl-NL.mjs-var bE = {};-bE = {+var vO = {};+vO = {colorSwatchPicker: "kleurstalen",dropzoneLabel: "DropZone",selectPlaceholder: "Selecteer een item",@@ -28489,8 +29082,8 @@ bE = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/pl-PL.mjs-var xE = {};-xE = {+var yO = {};+yO = {colorSwatchPicker: "Próbki kolorów",dropzoneLabel: "Strefa upuszczania",selectPlaceholder: "Wybierz element",@@ -28498,8 +29091,8 @@ xE = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/pt-BR.mjs-var SE = {};-SE = {+var bO = {};+bO = {colorSwatchPicker: "Amostras de cores",dropzoneLabel: "DropZone",selectPlaceholder: "Selecione um item",@@ -28507,8 +29100,8 @@ SE = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/pt-PT.mjs-var CE = {};-CE = {+var xO = {};+xO = {colorSwatchPicker: "Amostras de cores",dropzoneLabel: "DropZone",selectPlaceholder: "Selecione um item",@@ -28516,8 +29109,8 @@ CE = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/ro-RO.mjs-var wE = {};-wE = {+var SO = {};+SO = {colorSwatchPicker: "Specimene de culoare",dropzoneLabel: "Zonă de plasare",selectPlaceholder: "Selectați un element",@@ -28525,8 +29118,8 @@ wE = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/ru-RU.mjs-var TE = {};-TE = {+var CO = {};+CO = {colorSwatchPicker: "Цветовые образцы",dropzoneLabel: "DropZone",selectPlaceholder: "Выберите элемент",@@ -28534,8 +29127,8 @@ TE = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/sk-SK.mjs-var EE = {};-EE = {+var wO = {};+wO = {colorSwatchPicker: "Vzorkovníky farieb",dropzoneLabel: "DropZone",selectPlaceholder: "Vyberte položku",@@ -28543,8 +29136,8 @@ EE = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/sl-SI.mjs-var DE = {};-DE = {+var TO = {};+TO = {colorSwatchPicker: "Barvne palete",dropzoneLabel: "DropZone",selectPlaceholder: "Izberite element",@@ -28552,8 +29145,8 @@ DE = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/sr-SP.mjs-var OE = {};-OE = {+var EO = {};+EO = {colorSwatchPicker: "Uzorci boje",dropzoneLabel: "DropZone",selectPlaceholder: "Izaberite stavku",@@ -28561,8 +29154,8 @@ OE = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/sv-SE.mjs-var kE = {};-kE = {+var DO = {};+DO = {colorSwatchPicker: "Färgrutor",dropzoneLabel: "DropZone",selectPlaceholder: "Välj en artikel",@@ -28570,8 +29163,8 @@ kE = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/tr-TR.mjs-var AE = {};-AE = {+var OO = {};+OO = {colorSwatchPicker: "Renk örnekleri",dropzoneLabel: "Bırakma Bölgesi",selectPlaceholder: "Bir öğe seçin",@@ -28579,8 +29172,8 @@ AE = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/uk-UA.mjs-var jE = {};-jE = {+var kO = {};+kO = {colorSwatchPicker: "Зразки кольорів",dropzoneLabel: "DropZone",selectPlaceholder: "Виберіть елемент",@@ -28588,8 +29181,8 @@ jE = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/zh-CN.mjs-var ME = {};-ME = {+var AO = {};+AO = {colorSwatchPicker: "颜色色板",dropzoneLabel: "放置区域",selectPlaceholder: "选择一个项目",@@ -28597,8 +29190,8 @@ ME = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/zh-TW.mjs-var NE = {};-NE = {+var jO = {};+jO = {colorSwatchPicker: "色票",dropzoneLabel: "放置區",selectPlaceholder: "選取項目",@@ -28606,52 +29199,52 @@ NE = {};//#endregion//#region node_modules/react-aria-components/dist/private/intlStrings.mjs-var PE = {};-PE = {- "ar-AE": eE,- "bg-BG": tE,- "cs-CZ": nE,- "da-DK": rE,- "de-DE": iE,- "el-GR": aE,- "en-US": oE,- "es-ES": sE,- "et-EE": cE,- "fi-FI": lE,- "fr-FR": uE,- "he-IL": dE,- "hr-HR": fE,- "hu-HU": pE,- "it-IT": mE,- "ja-JP": hE,- "ko-KR": gE,- "lt-LT": _E,- "lv-LV": vE,- "nb-NO": yE,- "nl-NL": bE,- "pl-PL": xE,- "pt-BR": SE,- "pt-PT": CE,- "ro-RO": wE,- "ru-RU": TE,- "sk-SK": EE,- "sl-SI": DE,- "sr-SP": OE,- "sv-SE": kE,- "tr-TR": AE,- "uk-UA": jE,- "zh-CN": ME,- "zh-TW": NE+var MO = {};+MO = {+ "ar-AE": QD,+ "bg-BG": $D,+ "cs-CZ": eO,+ "da-DK": tO,+ "de-DE": nO,+ "el-GR": rO,+ "en-US": iO,+ "es-ES": aO,+ "et-EE": oO,+ "fi-FI": sO,+ "fr-FR": cO,+ "he-IL": lO,+ "hr-HR": uO,+ "hu-HU": dO,+ "it-IT": fO,+ "ja-JP": pO,+ "ko-KR": mO,+ "lt-LT": hO,+ "lv-LV": gO,+ "nb-NO": _O,+ "nl-NL": vO,+ "pl-PL": yO,+ "pt-BR": bO,+ "pt-PT": xO,+ "ro-RO": SO,+ "ru-RU": CO,+ "sk-SK": wO,+ "sl-SI": TO,+ "sr-SP": EO,+ "sv-SE": DO,+ "tr-TR": OO,+ "uk-UA": kO,+ "zh-CN": AO,+ "zh-TW": jO};//#endregion//#region node_modules/react-aria-components/dist/private/DragAndDrop.mjs-var FE = /*#__PURE__*/ (0, I.createContext)({}), IE = /*#__PURE__*/ (0, I.createContext)(null), Sre = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {- let { render: n } = (0, I.useContext)(IE);+var NO = /*#__PURE__*/ (0, I.createContext)({}), PO = /*#__PURE__*/ (0, I.createContext)(null), Die = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {+ let { render: n } = (0, I.useContext)(PO);return /*#__PURE__*/ I.createElement(I.Fragment, null, n(e, t));});-function LE(e, t) {+function FO(e, t) {let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, I.useCallback)((e) => {- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ I.createElement(Sre, { target: e });+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ I.createElement(Die, { target: e });}, [t?.target,r,@@ -28659,7 +29252,7 @@ function LE(e, t) {]);return e?.useDropIndicator ? i : void 0;}-function RE(e, t, n) {+function IO(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;@@ -28682,14 +29275,14 @@ function RE(e, t, n) {}//#endregion//#region node_modules/react-aria-components/dist/private/Header.mjs-var zE = /*#__PURE__*/ (0, I.createContext)({}), Cre = /*#__PURE__*/ (0, I.createContext)(null);-function BE(e) {+var LO = /*#__PURE__*/ (0, I.createContext)({}), Oie = /*#__PURE__*/ (0, I.createContext)(null);+function RO(e) {let t = (0, I.useRef)({});- return /*#__PURE__*/ I.createElement(Cre.Provider, { value: t }, e.children);+ return /*#__PURE__*/ I.createElement(Oie.Provider, { value: t }, e.children);}//#endregion//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs-var VE = /*#__PURE__*/ (0, I.createContext)({ isSelected: !1 }), HE = /*#__PURE__*/ (0, I.createContext)({}), wre = /*#__PURE__*/ Fh(class extends Nf {+var zO = /*#__PURE__*/ (0, I.createContext)({ isSelected: !1 }), BO = /*#__PURE__*/ (0, I.createContext)({}), kie = /*#__PURE__*/ Lh(class extends Ff {static {this.type = "separator";}@@ -28702,14 +29295,14 @@ var VE = /*#__PURE__*/ (0, I.createContext)({ isSelected: !1 }), HE = /*#__PURE_return null;}}, function(e, t) {- [e, t] = kT(e, t, HE);+ [e, t] = DD(e, t, BO);let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";c === "hr" && r === "vertical" && (c = "div");- let l = NT[c], { separatorProps: u } = kte({+ let l = jD[c], { separatorProps: u } = bte({...s,elementType: n,orientation: r- }), d = _g(e, { global: !0 });+ }), d = Sg(e, { global: !0 });return /*#__PURE__*/ I.createElement(l, {render: e.render,...H(d, u),@@ -28721,13 +29314,13 @@ var VE = /*#__PURE__*/ (0, I.createContext)({ isSelected: !1 }), HE = /*#__PURE_});//#endregion//#region node_modules/react-aria/dist/private/utils/inertValue.mjs-function UE(e) {+function VO(e) {let t = I.version.split(".");return parseInt(t[0], 10) >= 19 ? e : e ? "true" : void 0;}//#endregion//#region node_modules/react-stately/dist/private/list/ListCollection.mjs-var WE = class {+var HO = class {constructor(e) {this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;let t = (e) => {@@ -28771,20 +29364,20 @@ var WE = class {getChildren(e) {return this.keyMap.get(e)?.childNodes || [];}-}, GE = class e extends Set {+}, UO = 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);}};//#endregion//#region node_modules/react-stately/dist/private/selection/useMultipleSelectionState.mjs-function Tre(e, t) {+function Aie(e, t) {if (e.size !== t.size) return !1;for (let n of e) if (!t.has(n)) return !1;return !0;}-function KE(e) {- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, I.useRef)(!1), [, s] = (0, I.useState)(!1), c = (0, I.useRef)(null), l = (0, I.useRef)(null), [, u] = (0, I.useState)(null), [d, f] = H_((0, I.useMemo)(() => qE(e.selectedKeys), [e.selectedKeys]), (0, I.useMemo)(() => qE(e.defaultSelectedKeys, new GE()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, I.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, I.useState)(i);+function WO(e) {+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, I.useRef)(!1), [, s] = (0, I.useState)(!1), c = (0, I.useRef)(null), l = (0, I.useRef)(null), [, u] = (0, I.useState)(null), [d, f] = B_((0, I.useMemo)(() => GO(e.selectedKeys), [e.selectedKeys]), (0, I.useMemo)(() => GO(e.defaultSelectedKeys, new UO()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, I.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, I.useState)(i);i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");let g = (0, I.useRef)(i);return (0, I.useEffect)(() => {@@ -28811,18 +29404,18 @@ function KE(e) {},selectedKeys: d,setSelectedKeys(e) {- (r || !Tre(e, d)) && f(e);+ (r || !Aie(e, d)) && f(e);},disabledKeys: p,disabledBehavior: a};}-function qE(e, t) {- return e ? e === "all" ? "all" : new GE(e) : t;+function GO(e, t) {+ return e ? e === "all" ? "all" : new UO(e) : t;}//#endregion//#region node_modules/react-stately/dist/private/selection/SelectionManager.mjs-var JE = class e {+var KO = 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;}@@ -28878,7 +29471,7 @@ var JE = class e {let e = null;for (let t of this.state.selectedKeys) {let n = this.collection.getItem(t);- (!e || n && Xv(this.collection, n, e) < 0) && (e = n);+ (!e || n && ty(this.collection, n, e) < 0) && (e = n);}return e?.key ?? null;}@@ -28886,7 +29479,7 @@ var JE = class e {let e = null;for (let t of this.state.selectedKeys) {let n = this.collection.getItem(t);- (!e || n && Xv(this.collection, n, e) > 0) && (e = n);+ (!e || n && ty(this.collection, n, e) > 0) && (e = n);}return e?.key ?? null;}@@ -28905,10 +29498,10 @@ var JE = class e {let t = this.getKey(e);if (t == null) return;let n;- if (this.state.selectedKeys === "all") n = new GE([t], t, t);+ if (this.state.selectedKeys === "all") n = new UO([t], t, t);else {let e = this.state.selectedKeys, r = e.anchorKey ?? t;- n = new GE(e, r, t);+ n = new UO(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);}@@ -28916,7 +29509,7 @@ var JE = class e {}getKeyRange(e, t) {let n = this.collection.getItem(e), r = this.collection.getItem(t);- return n && r ? Xv(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];+ return n && r ? ty(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);@@ -28942,19 +29535,19 @@ var JE = class e {}let t = this.getKey(e);if (t == null) return;- let n = new GE(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);+ let n = new UO(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 GE([t], t, t) : new GE();+ let n = this.canSelectItem(t) ? new UO([t], t, t) : new UO();this.state.setSelectedKeys(n);}setSelectedKeys(e) {if (this.selectionMode === "none") return;- let t = new GE();+ let t = new UO();for (let n of e) {let e = this.getKey(n);if (e != null && (t.add(e), this.selectionMode === "single")) break;@@ -28966,7 +29559,7 @@ var JE = 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(qv(Kv(i, e))?.key ?? null);+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(Qv(Zv(i, e))?.key ?? null);}r = e.getKeyAfter(r);}@@ -28977,7 +29570,7 @@ var JE = 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 GE());+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new UO());}toggleSelectAll() {this.isSelectAll ? this.clearSelection() : this.selectAll();@@ -29018,9 +29611,9 @@ var JE = class e {fullCollection: this.fullCollection ?? this.collection});}-}, Ere = class {+}, jie = class {build(e, t) {- return this.context = t, YE(() => this.iterateCollection(e));+ return this.context = t, qO(() => this.iterateCollection(e));}*iterateCollection(e) {let { children: t, items: n } = e;@@ -29102,10 +29695,10 @@ var JE = class e {...a,key: l,index: s,- wrapper: Dre(e.wrapper, a.wrapper)+ wrapper: Mie(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 <${XE(t.type)}> in <${XE(r?.type ?? "unknown parent type")}>. Only <${XE(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 <${JO(t.type)}> in <${JO(r?.type ?? "unknown parent type")}>. Only <${JO(e.type)}> is supported.`);s++, yield t;}c = o.next(u);@@ -29127,7 +29720,7 @@ var JE = class e {wrapper: e.wrapper,shouldInvalidate: e.shouldInvalidate,hasChildNodes: e.hasChildNodes || !1,- childNodes: YE(function* () {+ childNodes: qO(function* () {if (!e.hasChildNodes || !e.childNodes) return;let n = 0;for (let r of e.childNodes()) {@@ -29146,7 +29739,7 @@ var JE = class e {this.cache = /* @__PURE__ */ new WeakMap();}};-function YE(e) {+function qO(e) {let t = [], n = null;return { *[Symbol.iterator]() {for (let e of t) yield e;@@ -29154,18 +29747,18 @@ function YE(e) {for (let e of n) t.push(e), yield e;} };}-function Dre(e, t) {+function Mie(e, t) {if (e && t) return (n) => e(t(n));if (e) return e;if (t) return t;}-function XE(e) {+function JO(e) {return e[0].toUpperCase() + e.slice(1);}//#endregion//#region node_modules/react-stately/dist/private/collections/useCollection.mjs-function ZE(e, t, n) {- let r = (0, I.useMemo)(() => new Ere(), []), { children: i, items: a, collection: o } = e;+function YO(e, t, n) {+ let r = (0, I.useMemo)(() => new jie(), []), { children: i, items: a, collection: o } = e;return (0, I.useMemo)(() => o || t(r.build({children: i,items: a@@ -29180,27 +29773,27 @@ function ZE(e, t, n) {}//#endregion//#region node_modules/react-stately/dist/private/list/useListState.mjs-function QE(e) {- let { filter: t, layoutDelegate: n } = e, r = KE(e), i = (0, I.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = ZE(e, (0, I.useCallback)((e) => t ? new WE(t(e)) : new WE(e), [t]), (0, I.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, I.useMemo)(() => new JE(a, r, { layoutDelegate: n }), [+function XO(e) {+ let { filter: t, layoutDelegate: n } = e, r = WO(e), i = (0, I.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = YO(e, (0, I.useCallback)((e) => t ? new HO(t(e)) : new HO(e), [t]), (0, I.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, I.useMemo)(() => new KO(a, r, { layoutDelegate: n }), [a,r,n]);- return $E(a, o), {+ return ZO(a, o), {collection: a,disabledKeys: i,selectionManager: o};}-function Ore(e, t) {+function Nie(e, t) {let n = (0, I.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);- return $E(n, r), {+ return ZO(n, r), {collection: n,selectionManager: r,disabledKeys: e.disabledKeys};}-function $E(e, t) {+function ZO(e, t) {let n = (0, I.useRef)(null);(0, I.useEffect)(() => {if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {@@ -29228,15 +29821,15 @@ function $E(e, t) {}//#endregion//#region node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs-function eD(e, t) {- let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, I.useRef)(null), s = Zh((e) => {+function QO(e, t) {+ let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, I.useRef)(null), s = $h((e) => {for (let t of e) t.isIntersecting && r && r();});- bp(() => {+ Sp(() => {if (t.current) {let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;o.current = new IntersectionObserver(s, {- root: b_(t?.current),+ root: __(t?.current),rootMargin: n}), o.current.observe(t.current);}@@ -29252,42 +29845,42 @@ function eD(e, t) {}//#endregion//#region node_modules/react-aria-components/dist/private/ListBox.mjs-var tD = /*#__PURE__*/ (0, I.createContext)(null), nD = /*#__PURE__*/ (0, I.createContext)(null), kre = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {- [e, t] = kT(e, t, tD);- let n = (0, I.useContext)(nD);- return n ? /*#__PURE__*/ I.createElement(rD, {+var $O = /*#__PURE__*/ (0, I.createContext)(null), ek = /*#__PURE__*/ (0, I.createContext)(null), Pie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {+ [e, t] = DD(e, t, $O);+ let n = (0, I.useContext)(ek);+ return n ? /*#__PURE__*/ I.createElement(tk, {state: n,props: e,listBoxRef: t- }) : /*#__PURE__*/ I.createElement(Dh, { content: /*#__PURE__*/ I.createElement(zh, e) }, (n) => /*#__PURE__*/ I.createElement(Are, {+ }) : /*#__PURE__*/ I.createElement(kh, { content: /*#__PURE__*/ I.createElement(Vh, e) }, (n) => /*#__PURE__*/ I.createElement(Fie, {props: e,listBoxRef: t,collection: n}));});-function Are({ props: e, listBoxRef: t, collection: n }) {+function Fie({ props: e, listBoxRef: t, collection: n }) {e = {...e,collection: n,children: null,items: null};- let { layoutDelegate: r } = (0, I.useContext)(zT), i = QE({+ let { layoutDelegate: r } = (0, I.useContext)(LD), i = XO({...e,layoutDelegate: r});- return /*#__PURE__*/ I.createElement(rD, {+ return /*#__PURE__*/ I.createElement(tk, {state: i,props: e,listBoxRef: t});}-function rD({ state: e, props: t, listBoxRef: n }) {- [t, n] = kT(t, n, PT);- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Ore(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = lg(), { disabledBehavior: p, disabledKeys: m } = l, h = ty({+function tk({ state: e, props: t, listBoxRef: n }) {+ [t, n] = DD(t, n, MD);+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Nie(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = ug(), { disabledBehavior: p, disabledKeys: m } = l, h = oy({usage: "search",sensitivity: "base"- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, I.useContext)(zT), b = (0, I.useMemo)(() => t.keyboardDelegate || new rv({+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, I.useContext)(LD), b = (0, I.useMemo)(() => t.keyboardDelegate || new iv({collection: c,collator: h,ref: n,@@ -29308,7 +29901,7 @@ function rD({ state: e, props: t, listBoxRef: n }) {t.keyboardDelegate,i,_- ]), { listBoxProps: x } = tte({+ ]), { listBoxProps: x } = Qee({...t,shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,keyboardDelegate: b,@@ -29340,7 +29933,7 @@ function rD({ state: e, props: t, listBoxRef: n }) {dropTargetDelegate: e}, C, n), T = C.isDropTarget({ type: "root" });}- let { focusProps: O, isFocused: k, isFocusVisible: A } = cy(), j = s.collection.size === 0, M = {+ let { focusProps: O, isFocused: k, isFocusVisible: A } = py(), j = s.collection.size === 0, M = {isDropTarget: T,isEmpty: j,isFocused: k,@@ -29348,19 +29941,19 @@ function rD({ state: e, props: t, listBoxRef: n }) {layout: t.layout || "stack",orientation: a,state: s- }, N = DT({+ }, N = TD({...t,children: void 0,defaultClassName: "react-aria-ListBox",values: M- }), P = null;- j && t.renderEmptyState && (P = /*#__PURE__*/ I.createElement("div", {+ }), ee = null;+ j && t.renderEmptyState && (ee = /*#__PURE__*/ I.createElement("div", {role: "option",style: { display: "contents" }}, t.renderEmptyState(M)));- let ee = _g(t, { global: !0 });- return /*#__PURE__*/ I.createElement(Wg, null, /*#__PURE__*/ I.createElement(NT.div, {- ...H(ee, N, x, O, w?.collectionProps),+ let te = Sg(t, { global: !0 });+ return /*#__PURE__*/ I.createElement(Yg, null, /*#__PURE__*/ I.createElement(jD.div, {+ ...H(te, N, x, O, w?.collectionProps),ref: n,slot: t.slot || void 0,onScroll: t.onScroll,@@ -29370,60 +29963,60 @@ function rD({ state: e, props: t, listBoxRef: n }) {"data-focus-visible": A || void 0,"data-layout": t.layout || "stack","data-orientation": a- }, /*#__PURE__*/ I.createElement(ET, { values: [- [tD, t],- [nD, s],- [FE, {+ }, /*#__PURE__*/ I.createElement(wD, { values: [+ [$O, t],+ [ek, s],+ [NO, {dragAndDropHooks: r,dragState: S,dropState: C}],- [HE, { elementType: "div" }],- [IE, { render: Nre }],- [IT, {+ [BO, { elementType: "div" }],+ [PO, { render: Rie }],+ [PD, {name: "ListBoxSection",- render: jre+ render: Iie}]- ] }, /*#__PURE__*/ I.createElement(BE, null, /*#__PURE__*/ I.createElement(y, {+ ] }, /*#__PURE__*/ I.createElement(RO, null, /*#__PURE__*/ I.createElement(y, {collection: c,scrollRef: n,- persistedKeys: RE(l, r, C),- renderDropIndicator: LE(r, C)- }))), P, E));+ persistedKeys: IO(l, r, C),+ renderDropIndicator: FO(r, C)+ }))), ee, E));}-function jre(e, t, n, r = "react-aria-ListBoxSection") {- let i = (0, I.useContext)(nD), { dragAndDropHooks: a, dropState: o } = (0, I.useContext)(FE), { CollectionBranch: s } = (0, I.useContext)(zT), [c, l] = AT(), { headingProps: u, groupProps: d } = nte({+function Iie(e, t, n, r = "react-aria-ListBoxSection") {+ let i = (0, I.useContext)(ek), { dragAndDropHooks: a, dropState: o } = (0, I.useContext)(NO), { CollectionBranch: s } = (0, I.useContext)(LD), [c, l] = OD(), { headingProps: u, groupProps: d } = $ee({heading: l,"aria-label": e["aria-label"] ?? void 0- }), f = DT({+ }), f = TD({...e,id: void 0,children: void 0,defaultClassName: r,values: void 0- }), p = _g(e, { global: !0 });- return delete p.id, /*#__PURE__*/ I.createElement(NT.section, {+ }), p = Sg(e, { global: !0 });+ return delete p.id, /*#__PURE__*/ I.createElement(jD.section, {...H(p, f, d),ref: t- }, /*#__PURE__*/ I.createElement(zE.Provider, { value: {+ }, /*#__PURE__*/ I.createElement(LO.Provider, { value: {...u,ref: c} }, /*#__PURE__*/ I.createElement(s, {collection: i.collection,parent: n,- renderDropIndicator: LE(a, o)+ renderDropIndicator: FO(a, o)})));}-var Mre = /*#__PURE__*/ Fh(If, function(e, t, n) {- let r = uh(t), i = (0, I.useContext)(nD), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, I.useContext)(FE), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = rte({+var Lie = /*#__PURE__*/ Lh(Rf, function(e, t, n) {+ let r = fh(t), i = (0, I.useContext)(ek), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, I.useContext)(NO), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = ete({key: n.key,"aria-label": e?.["aria-label"]- }, i, r), { hoverProps: p, isHovered: m } = fy({+ }, i, r), { hoverProps: p, isHovered: m } = _y({isDisabled: !f.allowsSelection && !f.hasAction && !c,onHoverStart: n.props.onHoverStart,onHoverChange: n.props.onHoverChange,onHoverEnd: n.props.onHoverEnd- }), { keyboardProps: h } = lh(e), { focusProps: g } = Ym(e), _ = null;+ }), { keyboardProps: h } = dh(e), { focusProps: g } = Zm(e), _ = null;o && a && (_ = a.useDraggableItem({key: n.key,hasAction: f.hasAction@@ -29434,7 +30027,7 @@ var Mre = /*#__PURE__*/ Fh(If, function(e, t, n) {key: n.key,dropPosition: "on"} }, s, r));- let y = o && o.isDragging(n.key), b = DT({+ let y = o && o.isDragging(n.key), b = TD({...e,id: void 0,children: e.children,@@ -29452,7 +30045,7 @@ var Mre = /*#__PURE__*/ Fh(If, function(e, t, n) {(0, I.useEffect)(() => {n.textValue;}, [n.textValue]);- let x = e.href ? NT.a : NT.div, S = _g(e, { global: !0 });+ let x = e.href ? jD.a : jD.div, S = Sg(e, { global: !0 });return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ I.createElement(x, {...H(S, b, l, p, h, g, _?.dragProps, v?.dropProps),ref: r,@@ -29466,29 +30059,29 @@ var Mre = /*#__PURE__*/ Fh(If, 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__*/ I.createElement(ET, { values: [[KT, { slots: {- [TT]: u,+ }, /*#__PURE__*/ I.createElement(wD, { values: [[WD, { slots: {+ [CD]: u,label: u,description: d- } }], [VE, { isSelected: f.isSelected }]] }, b.children));+ } }], [zO, { isSelected: f.isSelected }]] }, b.children));});-function Nre(e, t) {- t = uh(t);- let { dragAndDropHooks: n, dropState: r } = (0, I.useContext)(FE), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);- return a ? null : /*#__PURE__*/ I.createElement(Fre, {+function Rie(e, t) {+ t = fh(t);+ let { dragAndDropHooks: n, dropState: r } = (0, I.useContext)(NO), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);+ return a ? null : /*#__PURE__*/ I.createElement(Bie, {...e,dropIndicatorProps: i,isDropTarget: o,ref: t});}-function Pre(e, t) {- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = DT({+function zie(e, t) {+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = TD({...i,defaultClassName: "react-aria-DropIndicator",values: { isDropTarget: r }});- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(NT.div, {+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(jD.div, {...n,...a,role: "option",@@ -29496,10 +30089,10 @@ function Pre(e, t) {"data-drop-target": r || void 0}));}-var Fre = /*#__PURE__*/ (0, I.forwardRef)(Pre);-Fh(Ff, function(e, t, n) {- let r = (0, I.useContext)(nD), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, I.useRef)(null);- eD((0, I.useMemo)(() => ({+var Bie = /*#__PURE__*/ (0, I.forwardRef)(zie);+Lh(Lf, function(e, t, n) {+ let r = (0, I.useContext)(ek), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, I.useRef)(null);+ QO((0, I.useMemo)(() => ({onLoadMore: a,collection: r?.collection,sentinelRef: c,@@ -29509,7 +30102,7 @@ Fh(Ff, function(e, t, n) {o,r?.collection]), c);- let l = DT({+ let l = TD({...s,id: void 0,children: n.rendered,@@ -29522,7 +30115,7 @@ Fh(Ff, function(e, t, n) {width: 0,height: 0},- inert: UE(!0)+ inert: VO(!0)}, /*#__PURE__*/ I.createElement("div", {"data-testid": "loadMoreSentinel",ref: c,@@ -29531,8 +30124,8 @@ Fh(Ff, function(e, t, n) {height: 1,width: 1}- })), i && l.children && /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(NT.div, {- ...H(_g(e, { global: !0 }), { tabIndex: -1 }),+ })), i && l.children && /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(jD.div, {+ ...H(Sg(e, { global: !0 }), { tabIndex: -1 }),...l,role: "option",ref: t@@ -29540,11 +30133,11 @@ Fh(Ff, function(e, t, n) {});//#endregion//#region node_modules/react-aria-components/dist/private/OverlayArrow.mjs-var Ire = /*#__PURE__*/ (0, I.createContext)({ placement: "bottom" });+var Vie = /*#__PURE__*/ (0, I.createContext)({ placement: "bottom" });//#endregion//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs-function iD(e) {- let [t, n] = H_(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, I.useState)(null);+function nk(e) {+ let [t, n] = B_(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, I.useState)(null);return {isOpen: t,setOpen: n,@@ -29563,13 +30156,13 @@ function iD(e) {}//#endregion//#region node_modules/react-aria/dist/private/utils/animation.mjs-function aD(e, t = !0) {+function rk(e, t = !0) {let [n, r] = (0, I.useState)(!0), i = n && t;- return bp(() => {+ return Sp(() => {if (i && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();- }, [e, i]), sD(e, i, (0, I.useCallback)(() => r(!1), [])), i;+ }, [e, i]), ak(e, i, (0, I.useCallback)(() => r(!1), [])), i;}-function oD(e, t) {+function ik(e, t) {let [n, r] = (0, I.useState)(t ? "open" : "closed");switch (n) {case "open":@@ -29579,12 +30172,12 @@ function oD(e, t) {case "exiting": t && r("open");}let i = n === "exiting";- return sD(e, i, (0, I.useCallback)(() => {+ return ak(e, i, (0, I.useCallback)(() => {r((e) => e === "exiting" ? "closed" : e);}, [])), i;}-function sD(e, t, n) {- bp(() => {+function ak(e, t, n) {+ Sp(() => {if (t && e.current) {if (!("getAnimations" in e.current)) {n();@@ -29597,7 +30190,7 @@ function sD(e, t, n) {}let r = !1;return Promise.allSettled(t.map((e) => e.finished)).then(() => {- r || (0, Ch.flushSync)(() => {+ r || (0, Th.flushSync)(() => {n();});}), () => {@@ -29612,9 +30205,9 @@ function sD(e, t, n) {}//#endregion//#region node_modules/react-aria-components/dist/private/Popover.mjs-var cD = /*#__PURE__*/ (0, I.createContext)(null), lD = /*#__PURE__*/ (0, I.createContext)(null), uD = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {- [e, t] = kT(e, t, cD);- let n = (0, I.useContext)(bD), r = iD(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = oD(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = vh(), { direction: c } = lg();+var ok = /*#__PURE__*/ (0, I.createContext)(null), sk = /*#__PURE__*/ (0, I.createContext)(null), ck = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {+ [e, t] = DD(e, t, ok);+ let n = (0, I.useContext)(vk), r = nk(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = ik(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = bh(), { direction: c } = ug();if (s) {let t = e.children;return typeof t == "function" && (t = t({@@ -29625,7 +30218,7 @@ var cD = /*#__PURE__*/ (0, I.createContext)(null), lD = /*#__PURE__*/ (0, I.creadefaultChildren: null})), /*#__PURE__*/ I.createElement(I.Fragment, null, t);}- return i && !i.isOpen && !o ? null : /*#__PURE__*/ I.createElement(Lre, {+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ I.createElement(Hie, {...e,triggerRef: e.triggerRef,state: i,@@ -29634,13 +30227,13 @@ var cD = /*#__PURE__*/ (0, I.createContext)(null), lD = /*#__PURE__*/ (0, I.creadir: c});});-function Lre({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {- let a = (0, I.useRef)(null), o = (0, I.useRef)(null), s = (0, I.useContext)(lD), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = Cte({+function Hie({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {+ let a = (0, I.useRef)(null), o = (0, I.useRef)(null), s = (0, I.useContext)(sk), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = mte({...i,offset: i.offset ?? 8,arrowRef: a,groupRef: c ? s : o- }, e), m = i.popoverRef, h = aD(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = DT({+ }, e), m = i.popoverRef, h = rk(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = TD({...i,defaultClassName: "react-aria-Popover",values: {@@ -29650,10 +30243,10 @@ function Lre({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContextisExiting: t}}), v = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [y, b] = (0, I.useState)(i.trigger === "PreviewTrigger");- bp(() => {+ Sp(() => {m.current && b(v && !m.current.querySelector("[role=dialog]"));}, [m, v]), (0, I.useEffect)(() => {- y && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || wm() !== "pointer") && m.current && !lp(m.current) && Fm(m.current);+ y && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || Em() !== "pointer") && m.current && !dp(m.current) && Lm(m.current);}, [y,m,@@ -29666,7 +30259,7 @@ function Lre({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext}, [_.children, r]), [S, C] = (0, I.useState)(null), w = (0, I.useCallback)(() => {i.triggerRef.current && C(i.triggerRef.current.getBoundingClientRect().width + "px");}, [i.triggerRef]);- bp(w, [w]), nb({+ Sp(w, [w]), sb({ref: _.style?.["--trigger-width"] ? void 0 : i.triggerRef,onResize: w});@@ -29675,8 +30268,8 @@ function Lre({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext"--trigger-anchor-point": p ? `${p.x}px ${p.y}px` : void 0,..._.style,"--trigger-width": _.style?.["--trigger-width"] || S- }, E = /*#__PURE__*/ I.createElement(NT.div, {- ...H(_g(i, { global: !0 }), l),+ }, E = /*#__PURE__*/ I.createElement(jD.div, {+ ...H(Sg(i, { global: !0 }), l),..._,id: y ? i.id : void 0,role: y ? "dialog" : void 0,@@ -29691,17 +30284,17 @@ function Lre({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext"data-placement": f,"data-entering": g || void 0,"data-exiting": t || void 0- }, !i.isNonModal && /*#__PURE__*/ I.createElement(Rb, { onDismiss: e.close }), /*#__PURE__*/ I.createElement(Ire.Provider, { value: {+ }, !i.isNonModal && /*#__PURE__*/ I.createElement(Wb, { onDismiss: e.close }), /*#__PURE__*/ I.createElement(Vie.Provider, { value: {...d,placement: f,ref: a- } }, x), /*#__PURE__*/ I.createElement(Rb, { onDismiss: e.close }));- return c ? /*#__PURE__*/ I.createElement(oy, {+ } }, x), /*#__PURE__*/ I.createElement(Wb, { onDismiss: e.close }));+ return c ? /*#__PURE__*/ I.createElement(dy, {...i,shouldContainFocus: y && i.trigger !== "PreviewTrigger",isExiting: t,portalContainer: n ?? s?.current ?? void 0- }, E) : /*#__PURE__*/ I.createElement(oy, {+ }, E) : /*#__PURE__*/ I.createElement(dy, {...i,shouldContainFocus: y && i.trigger !== "PreviewTrigger",isExiting: t,@@ -29716,15 +30309,15 @@ function Lre({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext}), /*#__PURE__*/ I.createElement("div", {ref: o,style: { display: "contents" }- }, /*#__PURE__*/ I.createElement(lD.Provider, { value: o }, E)));+ }, /*#__PURE__*/ I.createElement(sk.Provider, { value: o }, E)));}//#endregion//#region node_modules/react-aria-components/dist/private/Keyboard.mjs-var Rre = /*#__PURE__*/ (0, I.createContext)({});+var Uie = /*#__PURE__*/ (0, I.createContext)({});//#endregion//#region node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs-function dD(e) {- let t = iD(e), [n, r] = (0, I.useState)(null), [i, a] = (0, I.useState)([]), o = () => {+function lk(e) {+ let t = nk(e), [n, r] = (0, I.useState)(null), [i, a] = (0, I.useState)([]), o = () => {a([]), t.close();}, s = (e, t) => {a((n) => t > n.length ? n : [...n.slice(0, t), e]);@@ -29750,7 +30343,7 @@ function dD(e) {}//#endregion//#region node_modules/react-stately/dist/private/tree/TreeCollection.mjs-var zre = class {+var Wie = 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) => {@@ -29794,8 +30387,8 @@ var zre = class {};//#endregion//#region node_modules/react-stately/dist/private/tree/useTreeState.mjs-function Bre(e) {- let { onExpandedChange: t } = e, [n, r] = H_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = KE(e), a = (0, I.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = ZE(e, (0, I.useCallback)((e) => new zre(e, { expandedKeys: n }), [n]), null);+function Gie(e) {+ let { onExpandedChange: t } = e, [n, r] = B_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = WO(e), a = (0, I.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = YO(e, (0, I.useCallback)((e) => new Wie(e, { expandedKeys: n }), [n]), null);return (0, I.useEffect)(() => {i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);}, [o, i.focusedKey]), {@@ -29803,32 +30396,32 @@ function Bre(e) {expandedKeys: n,disabledKeys: a,toggleKey: (e) => {- r(Vre(n, e));+ r(Kie(n, e));},setExpandedKeys: r,- selectionManager: new JE(o, i)+ selectionManager: new KO(o, i)};}-function Vre(e, t) {+function Kie(e, t) {let n = new Set(e);return n.has(t) ? n.delete(t) : n.add(t), n;}//#endregion//#region node_modules/react-aria-components/dist/private/Menu.mjs-var fD = /*#__PURE__*/ (0, I.createContext)(null), pD = /*#__PURE__*/ (0, I.createContext)(null), mD = /*#__PURE__*/ (0, I.createContext)(null), hD = /*#__PURE__*/ (0, I.createContext)(null);-function Hre(e) {- let t = dD(e), n = (0, I.useRef)(null), { menuTriggerProps: r, menuProps: i } = Vv({+var uk = /*#__PURE__*/ (0, I.createContext)(null), dk = /*#__PURE__*/ (0, I.createContext)(null), fk = /*#__PURE__*/ (0, I.createContext)(null), pk = /*#__PURE__*/ (0, I.createContext)(null);+function qie(e) {+ let t = lk(e), n = (0, I.useRef)(null), { menuTriggerProps: r, menuProps: i } = Kv({...e,type: "menu"}, t, n), a = (0, I.useRef)(null);- return vh() ? null : /*#__PURE__*/ I.createElement(ET, { values: [- [fD, {+ return bh() ? null : /*#__PURE__*/ I.createElement(wD, { values: [+ [uk, {...i,ref: a}],- [bD, t],- [mD, t],- [cD, {+ [vk, t],+ [fk, t],+ [ok, {trigger: "MenuTrigger",triggerRef: n,scrollRef: a,@@ -29836,14 +30429,14 @@ function Hre(e) {"aria-labelledby": i["aria-labelledby"],offset: e.trigger === "contextMenu" ? 0 : void 0}]- ] }, /*#__PURE__*/ I.createElement(Hee, {+ ] }, /*#__PURE__*/ I.createElement(zee, {...r,ref: n,isPressed: t.isOpen}, e.children));}-var Ure = /*#__PURE__*/ (0, I.createContext)(null);-(class extends Nf {+var Jie = /*#__PURE__*/ (0, I.createContext)(null);+(class extends Ff {static {this.type = "submenutrigger";}@@ -29856,24 +30449,24 @@ var Ure = /*#__PURE__*/ (0, I.createContext)(null);return null;}});-var Wre = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {- return [e, t] = kT(e, t, fD), /*#__PURE__*/ I.createElement(Dh, { content: /*#__PURE__*/ I.createElement(zh, e) }, (n) => /*#__PURE__*/ I.createElement(Gre, {+var Yie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {+ return [e, t] = DD(e, t, uk), /*#__PURE__*/ I.createElement(kh, { content: /*#__PURE__*/ I.createElement(Vh, e) }, (n) => /*#__PURE__*/ I.createElement(Xie, {props: e,collection: n,menuRef: t}));});-function Gre({ props: e, collection: t, menuRef: n }) {- [e, n] = kT(e, n, PT);- let { filter: r, ...i } = e, a = (0, I.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = Bre({+function Xie({ props: e, collection: t, menuRef: n }) {+ [e, n] = DD(e, n, MD);+ let { filter: r, ...i } = e, a = (0, I.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = Gie({...e,collection: a,children: void 0- }), s = (0, I.useContext)(mD), { isVirtualized: c, CollectionRoot: l } = (0, I.useContext)(zT), { menuProps: u } = ite({+ }), s = (0, I.useContext)(fk), { isVirtualized: c, CollectionRoot: l } = (0, I.useContext)(LD), { menuProps: u } = tte({...e,isVirtualized: c,onClose: e.onClose || s?.close- }, o, n), d = DT({+ }, o, n), d = TD({...e,children: void 0,defaultClassName: "react-aria-Menu",@@ -29883,36 +30476,36 @@ function Gre({ props: e, collection: t, menuRef: n }) {role: "menuitem",style: { display: "contents" }}, e.renderEmptyState()));- let p = _g(e, { global: !0 });- return /*#__PURE__*/ I.createElement(Wg, null, /*#__PURE__*/ I.createElement(NT.div, {+ let p = Sg(e, { global: !0 });+ return /*#__PURE__*/ I.createElement(Yg, null, /*#__PURE__*/ I.createElement(jD.div, {...H(p, d, u),ref: n,slot: e.slot || void 0,"data-empty": o.collection.size === 0 || void 0,onScroll: e.onScroll- }, /*#__PURE__*/ I.createElement(ET, { values: [- [pD, o],- [HE, { elementType: "div" }],- [IT, {+ }, /*#__PURE__*/ I.createElement(wD, { values: [+ [dk, o],+ [BO, { elementType: "div" }],+ [PD, {name: "MenuSection",- render: gD+ render: mk}],- [Ure, {+ [Jie, {parentMenuRef: n,shouldUseVirtualFocus: i?.shouldUseVirtualFocus}],- [vD, { shouldCloseOnSelect: e.shouldCloseOnSelect }],- [PT, null],- [FT, null],- [hD, o.selectionManager],- [mD, s ?? dD({})]- ] }, /*#__PURE__*/ I.createElement(BE, null, /*#__PURE__*/ I.createElement(l, {+ [gk, { shouldCloseOnSelect: e.shouldCloseOnSelect }],+ [MD, null],+ [ND, null],+ [pk, o.selectionManager],+ [fk, s ?? lk({})]+ ] }, /*#__PURE__*/ I.createElement(RO, null, /*#__PURE__*/ I.createElement(l, {collection: o.collection,- persistedKeys: BT(o.selectionManager.focusedKey),+ persistedKeys: RD(o.selectionManager.focusedKey),scrollRef: n}))), f));}-var Kre = class extends JE {+var Zie = class extends KO {constructor(e, t) {super(e.collection, t), this.parent = e;}@@ -29932,11 +30525,11 @@ var Kre = class extends JE {return this.parent.childFocusStrategy;}};-function gD(e, t, n, r = "react-aria-MenuSection") {- let i = (0, I.useContext)(pD), { CollectionBranch: a } = (0, I.useContext)(zT), [o, s] = AT(), { headingProps: c, groupProps: l } = ote({+function mk(e, t, n, r = "react-aria-MenuSection") {+ let i = (0, I.useContext)(dk), { CollectionBranch: a } = (0, I.useContext)(LD), [o, s] = OD(), { headingProps: c, groupProps: l } = rte({heading: s,"aria-label": n.props["aria-label"] ?? void 0- }), u = DT({+ }), u = TD({...e,id: void 0,children: void 0,@@ -29944,31 +30537,31 @@ function gD(e, t, n, r = "react-aria-MenuSection") {className: n.props?.className,style: n.props?.style,values: void 0- }), d = (0, I.useContext)(hD), f = KE(e), p = e.selectionMode == null ? d : new Kre(d, f), m = OT(vD)?.shouldCloseOnSelect, h = _g(e, { global: !0 });- return delete h.id, /*#__PURE__*/ I.createElement(NT.section, {+ }), d = (0, I.useContext)(pk), f = WO(e), p = e.selectionMode == null ? d : new Zie(d, f), m = ED(gk)?.shouldCloseOnSelect, h = Sg(e, { global: !0 });+ return delete h.id, /*#__PURE__*/ I.createElement(jD.section, {...H(h, u, l),ref: t- }, /*#__PURE__*/ I.createElement(ET, { values: [- [zE, {+ }, /*#__PURE__*/ I.createElement(wD, { values: [+ [LO, {...c,ref: o}],- [hD, p],- [vD, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]+ [pk, p],+ [gk, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]] }, /*#__PURE__*/ I.createElement(a, {collection: i.collection,parent: n})));}-var _D = /*#__PURE__*/ Ih(Lf, gD), vD = /*#__PURE__*/ (0, I.createContext)(null), yD = /*#__PURE__*/ Fh(If, function(e, t, n) {- [e, t] = kT(e, t, vD);- let r = OT(vD)?.id, i = (0, I.useContext)(pD), a = uh(t), o = (0, I.useContext)(hD), { isVirtualized: s } = (0, I.useContext)(zT), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = ate({+var hk = /*#__PURE__*/ Rh(zf, mk), gk = /*#__PURE__*/ (0, I.createContext)(null), _k = /*#__PURE__*/ Lh(Rf, function(e, t, n) {+ [e, t] = DD(e, t, gk);+ let r = ED(gk)?.id, i = (0, I.useContext)(dk), a = fh(t), o = (0, I.useContext)(pk), { isVirtualized: s } = (0, I.useContext)(LD), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = nte({...e,id: r,key: n.key,selectionManager: o,isVirtualized: s- }, i, a), { hoverProps: p, isHovered: m } = fy({ isDisabled: f.isDisabled }), h = DT({+ }, i, a), { hoverProps: p, isHovered: m } = _y({ isDisabled: f.isDisabled }), h = TD({...e,id: void 0,children: n.rendered,@@ -29982,7 +30575,7 @@ var _D = /*#__PURE__*/ Ih(Lf, gD), vD = /*#__PURE__*/ (0, I.createContext)(null)hasSubmenu: !!e["aria-haspopup"],isOpen: e["aria-expanded"] === "true"}- }), g = e.href ? NT.a : NT.div, _ = _g(e, { global: !0 });+ }), g = e.href ? jD.a : jD.div, _ = Sg(e, { global: !0 });return delete _.id, delete _.onClick, /*#__PURE__*/ I.createElement(g, {...H(_, h, c, p),ref: a,@@ -29995,19 +30588,19 @@ var _D = /*#__PURE__*/ Ih(Lf, gD), vD = /*#__PURE__*/ (0, I.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__*/ I.createElement(ET, { values: [- [KT, { slots: {- [TT]: l,+ }, /*#__PURE__*/ I.createElement(wD, { values: [+ [WD, { slots: {+ [CD]: l,label: l,description: u} }],- [Rre, d],- [VE, { isSelected: f.isSelected }]+ [Uie, d],+ [zO, { isSelected: f.isSelected }]] }, h.children));});-Fh(Ff, function(e, t, n) {- let r = (0, I.useContext)(pD), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, I.useRef)(null);- eD((0, I.useMemo)(() => ({+Lh(Lf, function(e, t, n) {+ let r = (0, I.useContext)(dk), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, I.useRef)(null);+ QO((0, I.useMemo)(() => ({onLoadMore: a,collection: r?.collection,sentinelRef: c,@@ -30017,7 +30610,7 @@ Fh(Ff, function(e, t, n) {o,r?.collection]), c);- let l = DT({+ let l = TD({...s,id: void 0,children: n.rendered,@@ -30030,7 +30623,7 @@ Fh(Ff, function(e, t, n) {width: 0,height: 0},- inert: UE(!0)+ inert: VO(!0)}, /*#__PURE__*/ I.createElement("div", {"data-testid": "loadMoreSentinel",ref: c,@@ -30039,8 +30632,8 @@ Fh(Ff, function(e, t, n) {height: 1,width: 1}- })), i && l.children && /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(NT.div, {- ...H(_g(e, { global: !0 }), { tabIndex: -1 }),+ })), i && l.children && /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(jD.div, {+ ...H(Sg(e, { global: !0 }), { tabIndex: -1 }),...l,role: "menuitem",ref: t@@ -30048,83 +30641,83 @@ Fh(Ff, function(e, t, n) {});//#endregion//#region node_modules/react-aria-components/dist/private/Dialog.mjs-var qre = /*#__PURE__*/ (0, I.createContext)(null), bD = /*#__PURE__*/ (0, I.createContext)(null), xD = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {+var Qie = /*#__PURE__*/ (0, I.createContext)(null), vk = /*#__PURE__*/ (0, I.createContext)(null), yk = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {let n = e["aria-labelledby"];- [e, t] = kT(e, t, qre);- let { dialogProps: r, titleProps: i, contentProps: a } = Wee({+ [e, t] = DD(e, t, Qie);+ let { dialogProps: r, titleProps: i, contentProps: a } = Vee({...e,"aria-labelledby": n- }, t), o = (0, I.useContext)(bD);+ }, t), o = (0, I.useContext)(vk);!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);- let s = DT({+ let s = TD({defaultClassName: "react-aria-Dialog",className: e.className,style: e.style,children: e.children,values: { close: o?.close || (() => {}) }- }), c = _g(e, { global: !0 });- return /*#__PURE__*/ I.createElement(NT.section, {+ }), c = Sg(e, { global: !0 });+ return /*#__PURE__*/ I.createElement(jD.section, {...H(c, s, r),render: e.render,ref: t,slot: e.slot || void 0- }, /*#__PURE__*/ I.createElement(ET, { values: [- [WT, { slots: {- [TT]: {},+ }, /*#__PURE__*/ I.createElement(wD, { values: [+ [HD, { slots: {+ [CD]: {},title: {...i,level: 2}} }],- [KT, { slots: {- [TT]: {},+ [WD, { slots: {+ [CD]: {},description: a} }],- [HT, { slots: {- [TT]: {},+ [BD, { slots: {+ [CD]: {},close: { onPress: () => o?.close() }} }]] }, s.children));-}), SD = typeof document < "u" && window.visualViewport;-function Jre() {- let e = om(), [t, n] = (0, I.useState)(() => e ? {+}), bk = typeof document < "u" && window.visualViewport;+function $ie() {+ let e = cm(), [t, n] = (0, I.useState)(() => e ? {width: 0,height: 0- } : CD());+ } : xk());return (0, I.useEffect)(() => {let e = (e) => {n((t) => e.width === t.width && e.height === t.height ? t : e);}, t = () => {- SD && SD.scale > 1 || e(CD());+ bk && bk.scale > 1 || e(xk());}, r, i = (t) => {- SD && SD.scale > 1 || Yh(V(t)) && (r = requestAnimationFrame(() => {- let t = sp();- (!t || !Yh(t)) && e({+ bk && bk.scale > 1 || Zh(V(t)) && (r = requestAnimationFrame(() => {+ let t = lp();+ (!t || !Zh(t)) && e({width: document.documentElement.clientWidth,height: document.documentElement.clientHeight});}));};- return e(CD()), Mp() && Pp() && window.addEventListener("blur", i, !0), SD ? SD.addEventListener("resize", t) : window.addEventListener("resize", t), () => {- cancelAnimationFrame(r), Mp() && Pp() && window.removeEventListener("blur", i, !0), SD ? SD.removeEventListener("resize", t) : window.removeEventListener("resize", t);+ return e(xk()), Pp() && Ip() && window.addEventListener("blur", i, !0), bk ? bk.addEventListener("resize", t) : window.addEventListener("resize", t), () => {+ cancelAnimationFrame(r), Pp() && Ip() && window.removeEventListener("blur", i, !0), bk ? bk.removeEventListener("resize", t) : window.removeEventListener("resize", t);};}, []), t;}-function CD() {+function xk() {return {- width: SD ? Math.min(SD.width * SD.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,- height: SD ? SD.height * SD.scale : document.documentElement.clientHeight+ width: bk ? Math.min(bk.width * bk.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,+ height: bk ? bk.height * bk.scale : document.documentElement.clientHeight};}//#endregion//#region node_modules/react-aria-components/dist/private/Modal.mjs-var Yre = /*#__PURE__*/ (0, I.createContext)(null), wD = /*#__PURE__*/ (0, I.createContext)(null), Xre = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {- if ((0, I.useContext)(wD)) return /*#__PURE__*/ I.createElement(ED, {+var eae = /*#__PURE__*/ (0, I.createContext)(null), Sk = /*#__PURE__*/ (0, I.createContext)(null), tae = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {+ if ((0, I.useContext)(Sk)) return /*#__PURE__*/ I.createElement(wk, {...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__*/ I.createElement(TD, {+ return /*#__PURE__*/ I.createElement(Ck, {isDismissable: n,isKeyboardDismissDisabled: r,isOpen: i,@@ -30134,15 +30727,15 @@ var Yre = /*#__PURE__*/ (0, I.createContext)(null), wD = /*#__PURE__*/ (0, I.creisExiting: l,UNSTABLE_portalContainer: u,shouldCloseOnInteractOutside: d- }, /*#__PURE__*/ I.createElement(ED, {+ }, /*#__PURE__*/ I.createElement(wk, {...f,modalRef: t}, s));});-function Zre(e, t) {- [e, t] = kT(e, t, Yre);- let n = (0, I.useContext)(bD), r = iD(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = uh(t), o = (0, I.useRef)(null), s = oD(a, i.isOpen), c = oD(o, i.isOpen), l = s || c || e.isExiting || !1, u = om();- return !i.isOpen && !l || u ? null : /*#__PURE__*/ I.createElement(Qre, {+function nae(e, t) {+ [e, t] = DD(e, t, eae);+ let n = (0, I.useContext)(vk), r = nk(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = fh(t), o = (0, I.useRef)(null), s = ik(a, i.isOpen), c = ik(o, i.isOpen), l = s || c || e.isExiting || !1, u = cm();+ return !i.isOpen && !l || u ? null : /*#__PURE__*/ I.createElement(rae, {...e,state: i,isExiting: l,@@ -30150,9 +30743,9 @@ function Zre(e, t) {modalRef: o});}-var TD = /*#__PURE__*/ (0, I.forwardRef)(Zre);-function Qre({ UNSTABLE_portalContainer: e, ...t }) {- let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = dte(t, r, n), o = aD(t.overlayRef) || t.isEntering || !1, s = DT({+var Ck = /*#__PURE__*/ (0, I.forwardRef)(nae);+function rae({ UNSTABLE_portalContainer: e, ...t }) {+ let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = tx(t, r, n), o = rk(t.overlayRef) || t.isEntering || !1, s = TD({...t,defaultClassName: "react-aria-ModalOverlay",values: {@@ -30160,9 +30753,9 @@ function Qre({ UNSTABLE_portalContainer: e, ...t }) {isExiting: t.isExiting,state: r}- }), c = Jre(), l, u;+ }), c = $ie(), l, u;if (typeof document < "u") {- let e = y_(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;+ let e = g_(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;l = e.scrollWidth - t, u = e.scrollHeight - n;}let d = {@@ -30172,25 +30765,25 @@ function Qre({ UNSTABLE_portalContainer: e, ...t }) {"--page-width": l === void 0 ? void 0 : l + "px","--page-height": u === void 0 ? void 0 : u + "px"};- return /*#__PURE__*/ I.createElement(oy, {+ return /*#__PURE__*/ I.createElement(dy, {isExiting: t.isExiting,portalContainer: e- }, /*#__PURE__*/ I.createElement(NT.div, {- ...H(_g(t, { global: !0 }), a),+ }, /*#__PURE__*/ I.createElement(jD.div, {+ ...H(Sg(t, { global: !0 }), a),...s,style: d,ref: t.overlayRef,"data-entering": o || void 0,"data-exiting": t.isExiting || void 0- }, /*#__PURE__*/ I.createElement(ET, { values: [[wD, {+ }, /*#__PURE__*/ I.createElement(wD, { values: [[Sk, {modalProps: i,modalRef: n,isExiting: t.isExiting,isDismissable: t.isDismissable- }], [bD, r]] }, s.children)));+ }], [vk, r]] }, s.children)));}-function ED(e) {- let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, I.useContext)(wD), a = (0, I.useContext)(bD), o = uh((0, I.useMemo)(() => Gm(e.modalRef, n), [e.modalRef, n])), s = aD(o), c = DT({+function wk(e) {+ let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, I.useContext)(Sk), a = (0, I.useContext)(vk), o = fh((0, I.useMemo)(() => qm(e.modalRef, n), [e.modalRef, n])), s = rk(o), c = TD({...e,defaultClassName: "react-aria-Modal",values: {@@ -30199,19 +30792,19 @@ function ED(e) {state: a}});- return /*#__PURE__*/ I.createElement(NT.div, {- ...H(_g(e, { global: !0 }), t),+ return /*#__PURE__*/ I.createElement(jD.div, {+ ...H(Sg(e, { global: !0 }), t),...c,ref: o,"data-entering": s || void 0,"data-exiting": r || void 0- }, i && /*#__PURE__*/ I.createElement(Rb, { onDismiss: a.close }), c.children);+ }, i && /*#__PURE__*/ I.createElement(Wb, { onDismiss: a.close }), c.children);}//#endregion//#region node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs-var $re = Math.round(Math.random() * 1e10), eie = 0;-function tie(e) {- let t = (0, I.useMemo)(() => e.name || `radio-group-${$re}-${++eie}`, [e.name]), [n, r] = H_(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, I.useState)(n), [a, o] = (0, I.useState)(null), s = N_({+var iae = Math.round(Math.random() * 1e10), aae = 0;+function oae(e) {+ let t = (0, I.useMemo)(() => e.name || `radio-group-${iae}-${++aae}`, [e.name]), [n, r] = B_(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, I.useState)(n), [a, o] = (0, I.useState)(null), s = A_({...e,value: n}), c = (t) => {@@ -30234,16 +30827,16 @@ function tie(e) {}//#endregion//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs-var nie = /*#__PURE__*/ (0, I.createContext)(null), rie = /*#__PURE__*/ (0, I.createContext)(null), DD = /*#__PURE__*/ (0, I.createContext)(null), OD = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {- [e, t] = kT(e, t, nie);- let { validationBehavior: n } = OT(JT) || {}, r = e.validationBehavior ?? n ?? "native", i = tie({+var sae = /*#__PURE__*/ (0, I.createContext)(null), cae = /*#__PURE__*/ (0, I.createContext)(null), Tk = /*#__PURE__*/ (0, I.createContext)(null), Ek = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {+ [e, t] = DD(e, t, sae);+ let { validationBehavior: n } = ED(KD) || {}, r = e.validationBehavior ?? n ?? "native", i = oae({...e,validationBehavior: r- }), [a, o] = AT(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Tte({+ }), [a, o] = OD(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = gte({...e,label: o,validationBehavior: r- }, i), f = DT({+ }, i), f = TD({...e,values: {orientation: e.orientation || "vertical",@@ -30254,8 +30847,8 @@ var nie = /*#__PURE__*/ (0, I.createContext)(null), rie = /*#__PURE__*/ (0, I.crstate: i},defaultClassName: "react-aria-RadioGroup"- }), p = _g(e, { global: !0 });- return /*#__PURE__*/ I.createElement(NT.div, {+ }), p = Sg(e, { global: !0 });+ return /*#__PURE__*/ I.createElement(jD.div, {...H(p, f, s),ref: t,slot: e.slot || void 0,@@ -30264,39 +30857,39 @@ var nie = /*#__PURE__*/ (0, I.createContext)(null), rie = /*#__PURE__*/ (0, I.cr"data-disabled": i.isDisabled || void 0,"data-readonly": i.isReadOnly || void 0,"data-required": i.isRequired || void 0- }, /*#__PURE__*/ I.createElement(ET, { values: [- [DD, i],- [VT, {+ }, /*#__PURE__*/ I.createElement(wD, { values: [+ [Tk, i],+ [zD, {...c,ref: a,elementType: "span"}],- [KT, { slots: {+ [WD, { slots: {description: l,errorMessage: u} }],- [qT, d]- ] }, /*#__PURE__*/ I.createElement(BE, null, f.children)));-}), kD = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {+ [GD, d]+ ] }, /*#__PURE__*/ I.createElement(RO, null, f.children)));+}), Dk = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {let { inputRef: n = null, ...r } = e;- [e, t] = kT(r, t, rie);- let i = I.useContext(DD), a = uh((0, I.useMemo)(() => Gm(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = wte({- ...jT(e),+ [e, t] = DD(r, t, cae);+ let i = I.useContext(Tk), a = fh((0, I.useMemo)(() => qm(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = hte({+ ...kD(e),children: typeof e.children == "function" || e.children}, i, a);- return /*#__PURE__*/ I.createElement(AD.Provider, { value: {+ return /*#__PURE__*/ I.createElement(Ok.Provider, { value: {...o,inputRef: a,defaultClassName: "react-aria-Radio"- } }, /*#__PURE__*/ I.createElement(iie, {+ } }, /*#__PURE__*/ I.createElement(lae, {...e,ref: t}));-}), AD = /*#__PURE__*/ (0, I.createContext)(null), iie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, I.useContext)(AD), l = I.useContext(DD), { isFocused: u, isFocusVisible: d, focusProps: f } = cy(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = fy({+}), Ok = /*#__PURE__*/ (0, I.createContext)(null), lae = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, I.useContext)(Ok), l = I.useContext(Tk), { isFocused: u, isFocusVisible: d, focusProps: f } = py(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = _y({...e,isDisabled: p- }), g = DT({+ }), g = TD({...e,defaultClassName: s,values: {@@ -30310,8 +30903,8 @@ var nie = /*#__PURE__*/ (0, I.createContext)(null), rie = /*#__PURE__*/ (0, I.crisInvalid: l.isInvalid,isRequired: l.isRequired}- }), _ = _g(e, { global: !0 });- return delete _.id, delete _.onClick, /*#__PURE__*/ I.createElement(NT.label, {+ }), _ = Sg(e, { global: !0 });+ return delete _.id, delete _.onClick, /*#__PURE__*/ I.createElement(jD.label, {...H(_, n, m, g),ref: t,"data-selected": i || void 0,@@ -30323,19 +30916,19 @@ var nie = /*#__PURE__*/ (0, I.createContext)(null), rie = /*#__PURE__*/ (0, I.cr"data-readonly": l.isReadOnly || void 0,"data-invalid": l.isInvalid || void 0,"data-required": l.isRequired || void 0- }, /*#__PURE__*/ I.createElement(q_, { elementType: "span" }, /*#__PURE__*/ I.createElement("input", {+ }, /*#__PURE__*/ I.createElement(K_, { elementType: "span" }, /*#__PURE__*/ I.createElement("input", {...H(r, f),ref: c})), g.children);});//#endregion//#region node_modules/react-stately/dist/private/select/useSelectState.mjs-function aie(e) {- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = iD(e), [i, a] = (0, I.useState)(null), o = (0, I.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [+function uae(e) {+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = nk(e), [i, a] = (0, I.useState)(null), o = (0, I.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [e.defaultValue,e.defaultSelectedKey,t- ]), [s, c] = H_((0, I.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [+ ]), [s, c] = B_((0, I.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [e.value,e.selectedKey,t@@ -30347,12 +30940,12 @@ function aie(e) {let e = [];Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);}- }, d = QE({+ }, d = XO({...e,selectionMode: t,disallowEmptySelection: t === "single",allowDuplicateSelectionEvents: !0,- selectedKeys: (0, I.useMemo)(() => oie(l), [l]),+ selectedKeys: (0, I.useMemo)(() => dae(l), [l]),onSelectionChange: (e) => {if (e !== "all") {if (t === "single") {@@ -30362,7 +30955,7 @@ function aie(e) {n && r.close(), m.commitValidation();}}- }), f = d.selectionManager.firstSelectedKey, p = (0, I.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = N_({+ }), f = d.selectionManager.firstSelectedKey, p = (0, I.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = A_({...e,value: Array.isArray(l) && l.length === 0 ? null : l}), [h, g] = (0, I.useState)(!1), [_] = (0, I.useState)(l);@@ -30389,16 +30982,16 @@ function aie(e) {setFocused: g};}-function oie(e) {+function dae(e) {if (e !== void 0) return e === null ? [] : Array.isArray(e) ? e : [e];}//#endregion//#region node_modules/react-aria-components/dist/private/Select.mjs-function sie(e) {+function fae(e) {return e && e.__esModule ? e.default : e;}-var jD = /*#__PURE__*/ (0, I.createContext)(null), MD = /*#__PURE__*/ (0, I.createContext)(null), cie = /*#__PURE__*/ _h(function(e, t) {- [e, t] = kT(e, t, jD);+var kk = /*#__PURE__*/ (0, I.createContext)(null), Ak = /*#__PURE__*/ (0, I.createContext)(null), pae = /*#__PURE__*/ yh(function(e, t) {+ [e, t] = DD(e, t, kk);let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, I.useMemo)(() => typeof n == "function" ? n({isOpen: !1,isDisabled: r,@@ -30413,24 +31006,24 @@ var jD = /*#__PURE__*/ (0, I.createContext)(null), MD = /*#__PURE__*/ (0, I.creai,a]);- return /*#__PURE__*/ I.createElement(Dh, { content: o }, (n) => /*#__PURE__*/ I.createElement(uie, {+ return /*#__PURE__*/ I.createElement(kh, { content: o }, (n) => /*#__PURE__*/ I.createElement(hae, {props: e,collection: n,selectRef: t}));-}), lie = [- VT,- HT,- KT+}), mae = [+ zD,+ BD,+ WD];-function uie({ props: e, selectRef: t, collection: n }) {- let { validationBehavior: r } = OT(JT) || {}, i = e.validationBehavior ?? r ?? "native", a = aie({+function hae({ props: e, selectRef: t, collection: n }) {+ let { validationBehavior: r } = ED(KD) || {}, i = e.validationBehavior ?? r ?? "native", a = uae({...e,collection: n,children: void 0,validationBehavior: i- }), { isFocusVisible: o, focusProps: s } = cy({ within: !0 }), c = (0, I.useRef)(null), [l, u] = AT(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Ete({- ...jT(e),+ }), { isFocusVisible: o, focusProps: s } = py({ within: !0 }), c = (0, I.useRef)(null), [l, u] = OD(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = _te({+ ...kD(e),label: u,validationBehavior: i}, a, c), y = (0, I.useMemo)(() => ({@@ -30447,48 +31040,48 @@ function uie({ props: e, selectRef: t, collection: n }) {e.isDisabled,v.isInvalid,e.isRequired- ]), b = DT({+ ]), b = TD({...e,values: y,defaultClassName: "react-aria-Select"- }), x = _g(e, { global: !0 });+ }), x = Sg(e, { global: !0 });delete x.id;let S = (0, I.useRef)(null);- return /*#__PURE__*/ I.createElement(ET, { values: [- [jD, e],- [MD, a],- [ND, p],- [VT, {+ return /*#__PURE__*/ I.createElement(wD, { values: [+ [kk, e],+ [Ak, a],+ [jk, p],+ [zD, {...d,ref: l,elementType: "span"}],- [HT, {+ [BD, {...f,ref: c,isPressed: a.isOpen,autoFocus: e.autoFocus}],- [bD, a],- [cD, {+ [vk, a],+ [ok, {trigger: "Select",triggerRef: c,scrollRef: S,placement: "bottom start","aria-labelledby": m["aria-labelledby"],- clearContexts: lie+ clearContexts: mae}],- [tD, {+ [$O, {...m,ref: S}],- [nD, a],- [KT, { slots: {+ [ek, a],+ [WD, { slots: {description: h,errorMessage: g} }],- [qT, v]- ] }, /*#__PURE__*/ I.createElement(NT.div, {+ [GD, v]+ ] }, /*#__PURE__*/ I.createElement(jD.div, {...H(x, b, s),ref: t,slot: e.slot || void 0,@@ -30498,14 +31091,14 @@ function uie({ 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__*/ I.createElement(Ote, {+ }, b.children, /*#__PURE__*/ I.createElement(yte, {..._,autoComplete: e.autoComplete})));}-for (var ND = /*#__PURE__*/ (0, I.createContext)(null), die = /*#__PURE__*/ _h(function(e, t) {- [e, t] = kT(e, t, ND);- let n = (0, I.useContext)(MD), { placeholder: r } = OT(jD), i = n.selectedItems.map((e) => {+for (var jk = /*#__PURE__*/ (0, I.createContext)(null), gae = /*#__PURE__*/ yh(function(e, t) {+ [e, t] = DD(e, t, jk);+ let n = (0, I.useContext)(Ak), { placeholder: r } = ED(kk), i = n.selectedItems.map((e) => {let t = e.props?.children;return typeof t == "function" && (t = t({isHovered: !1,@@ -30517,7 +31110,7 @@ for (var ND = /*#__PURE__*/ (0, I.createContext)(null), die = /*#__PURE__*/ _h(fselectionMode: "single",selectionBehavior: "toggle"})), t;- }), a = Gee(), o = (0, I.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, I.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [+ }), a = Hee(), o = (0, I.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, I.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [s,a,o@@ -30532,7 +31125,7 @@ for (var ND = /*#__PURE__*/ (0, I.createContext)(null), die = /*#__PURE__*/ _h(fa,o,i- ]), u = hg(sie(PE), "react-aria-components"), d = DT({+ ]), u = bg(fae(MO), "react-aria-components"), d = TD({...e,defaultChildren: l ?? r ?? u.format("selectPlaceholder"),defaultClassName: "react-aria-SelectValue",@@ -30543,33 +31136,33 @@ for (var ND = /*#__PURE__*/ (0, I.createContext)(null), die = /*#__PURE__*/ _h(fisPlaceholder: n.selectedItems.length === 0,state: n}- }), f = _g(e, { global: !0 });- return /*#__PURE__*/ I.createElement(NT.span, {+ }), f = Sg(e, { global: !0 });+ return /*#__PURE__*/ I.createElement(jD.span, {ref: t,...f,...d,"data-placeholder": n.selectedItems.length === 0 || void 0- }, /*#__PURE__*/ I.createElement(KT.Provider, { value: void 0 }, d.children));-}), fie = /*#__PURE__*/ (0, I.createContext)(null), PD = /*#__PURE__*/ (0, I.createContext)(null), pie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {+ }, /*#__PURE__*/ I.createElement(WD.Provider, { value: void 0 }, d.children));+}), _ae = /*#__PURE__*/ (0, I.createContext)(null), Mk = /*#__PURE__*/ (0, I.createContext)(null), vae = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {let { inputRef: n = null, ...r } = e;- [e, t] = kT(r, t, fie);- let i = uh((0, I.useMemo)(() => Gm(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = U_(e), o = Ate({- ...jT(e),+ [e, t] = DD(r, t, _ae);+ let i = fh((0, I.useMemo)(() => qm(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = V_(e), o = xte({+ ...kD(e),children: typeof e.children == "function" || e.children}, a, i);- return /*#__PURE__*/ I.createElement(ET, { values: [[PD, a], [FD, {+ return /*#__PURE__*/ I.createElement(wD, { values: [[Mk, a], [Nk, {...o,inputRef: i,defaultClassName: "react-aria-Switch"- }]] }, /*#__PURE__*/ I.createElement(mie, {+ }]] }, /*#__PURE__*/ I.createElement(yae, {...e,ref: t}));-}), FD = /*#__PURE__*/ (0, I.createContext)(null), mie = /*#__PURE__*/ (0, I.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, I.useContext)(FD), { isFocused: f, isFocusVisible: p, focusProps: m } = cy(), h = a || o, g = (0, I.useContext)(PD), { hoverProps: _, isHovered: v } = fy({+}), Nk = /*#__PURE__*/ (0, I.createContext)(null), yae = /*#__PURE__*/ (0, I.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, I.useContext)(Nk), { isFocused: f, isFocusVisible: p, focusProps: m } = py(), h = a || o, g = (0, I.useContext)(Mk), { hoverProps: _, isHovered: v } = _y({...e,isDisabled: h- }), y = DT({+ }), y = TD({...e,defaultClassName: u,values: {@@ -30584,8 +31177,8 @@ for (var ND = /*#__PURE__*/ (0, I.createContext)(null), die = /*#__PURE__*/ _h(fisRequired: d || !1,state: g}- }), b = _g(e, { global: !0 });- return delete b.id, delete b.onClick, /*#__PURE__*/ I.createElement(NT.label, {+ }), b = Sg(e, { global: !0 });+ return delete b.id, delete b.onClick, /*#__PURE__*/ I.createElement(jD.label, {...H(b, n, _, y),ref: t,slot: e.slot || void 0,@@ -30598,11 +31191,11 @@ for (var ND = /*#__PURE__*/ (0, I.createContext)(null), die = /*#__PURE__*/ _h(f"data-readonly": o || void 0,"data-invalid": c || void 0,"data-required": d || void 0- }, /*#__PURE__*/ I.createElement(q_, { elementType: "span" }, /*#__PURE__*/ I.createElement("input", {+ }, /*#__PURE__*/ I.createElement(K_, { elementType: "span" }, /*#__PURE__*/ I.createElement("input", {...H(r, m),ref: l})), y.children);-}), ID = 10, LD = 5, hie = class {+}), Pk = 10, Fk = 5, bae = class {setup(e, t, n) {this.delegate = e, this.state = t, this.direction = n;}@@ -30612,7 +31205,7 @@ for (var ND = /*#__PURE__*/ (0, I.createContext)(null), die = /*#__PURE__*/ _h(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) > LD && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > ID && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {+ if (Math.abs(a) > Fk && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > Pk && (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);@@ -30691,11 +31284,11 @@ for (var ND = /*#__PURE__*/ (0, I.createContext)(null), die = /*#__PURE__*/ _h(flastSwitchX: n});let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);- if (Math.abs(r - c.lastSwitchY) > LD && i) {+ if (Math.abs(r - c.lastSwitchY) > Fk && 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 > ID && a) {+ if (l > Pk && 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;}@@ -30710,7 +31303,7 @@ for (var ND = /*#__PURE__*/ (0, I.createContext)(null), die = /*#__PURE__*/ _h(fboundaryContext: null};}-}, gie = class {+}, xae = class {constructor(e) {this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];let t = (r) => {@@ -30780,8 +31373,8 @@ for (var ND = /*#__PURE__*/ (0, I.createContext)(null), die = /*#__PURE__*/ _h(fgetChildren(e) {return this.keyMap.get(e)?.childNodes || [];}-}, RD = "row-header-column-" + Math.random().toString(36).slice(2), zD = "row-header-column-" + Math.random().toString(36).slice(2); RD === zD;) zD = "row-header-column-" + Math.random().toString(36).slice(2);-function BD(e, t) {+}, Ik = "row-header-column-" + Math.random().toString(36).slice(2), Lk = "row-header-column-" + Math.random().toString(36).slice(2); Ik === Lk;) Lk = "row-header-column-" + Math.random().toString(36).slice(2);+function Rk(e, t) {if (t.length === 0) return [];let n = [], r = /* @__PURE__ */ new Map();for (let i of t) {@@ -30865,13 +31458,13 @@ function BD(e, t) {textValue: ""}));}-var _ie = class extends gie {+var Sae = class extends xae {constructor(e, t, n) {let r = /* @__PURE__ */ new Set(), i = null, a = [];if (n?.showSelectionCheckboxes) {let e = {type: "column",- key: RD,+ key: Ik,value: null,textValue: "",level: 0,@@ -30886,7 +31479,7 @@ var _ie = class extends gie {if (n?.showDragButtons) {let e = {type: "column",- key: zD,+ key: Lk,value: null,textValue: "",level: 0,@@ -30913,7 +31506,7 @@ var _ie = class extends gie {for (let t of e.childNodes) c(t);};for (let t of e) c(t);- let l = BD(s, a);+ let l = Rk(s, a);if (l.forEach((e, t) => o.splice(t, 0, e)), super({columnCount: a.length,items: o,@@ -30939,10 +31532,10 @@ var _ie = class extends gie {return this.keyMap.get(e)?.nextKey ?? null;}getFirstKey() {- return qv(this.body.childNodes)?.key ?? null;+ return Qv(this.body.childNodes)?.key ?? null;}getLastKey() {- return Yv(this.body.childNodes)?.key ?? null;+ return ey(this.body.childNodes)?.key ?? null;}getItem(e) {return e === this.body.key ? this.body : this.keyMap.get(e) ?? null;@@ -30974,19 +31567,19 @@ var _ie = class extends gie {};//#endregion//#region node_modules/react-stately/dist/private/grid/useGridState.mjs-function vie(e) {- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || KE(e), i = (0, I.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;+function Cae(e) {+ let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || WO(e), i = (0, I.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 = Kv(n, t);- e = r === "last" ? Yv(i)?.key ?? null : qv(i)?.key ?? null;+ let i = Zv(n, t);+ e = r === "last" ? ey(i)?.key ?? null : Qv(i)?.key ?? null;}}a(e, r);};- let o = (0, I.useMemo)(() => new JE(t, r), [t, r]), s = (0, I.useRef)(null);+ let o = (0, I.useMemo)(() => new KO(t, r), [t, r]), s = (0, I.useRef)(null);return (0, I.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;@@ -31006,7 +31599,7 @@ function vie(e) {}}if (u) {- let i = u.hasChildNodes ? [...Kv(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;+ let i = u.hasChildNodes ? [...Zv(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);}@@ -31025,11 +31618,11 @@ function vie(e) {}//#endregion//#region node_modules/react-stately/dist/private/table/useTableState.mjs-var yie = {+var wae = {ascending: "descending",descending: "ascending"};-function bie(e) {+function Tae(e) {let [t, n] = (0, I.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, I.useMemo)(() => ({showSelectionCheckboxes: i && r !== "none",showDragButtons: a,@@ -31040,11 +31633,11 @@ function bie(e) {i,r,a- ]), c = ZE(e, (0, I.useCallback)((e) => new _ie(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = vie({+ ]), c = YO(e, (0, I.useCallback)((e) => new Sae(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = Cae({...e,collection: c,disabledBehavior: e.disabledBehavior || "selection"- }), [d, f] = H_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);+ }), [d, f] = B_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);return {collection: c,disabledKeys: l,@@ -31056,7 +31649,7 @@ function bie(e) {sort(t, n) {e.onSortChange?.({column: t,- direction: n ?? (e.sortDescriptor?.column === t ? yie[e.sortDescriptor.direction] : "ascending")+ direction: n ?? (e.sortDescriptor?.column === t ? wae[e.sortDescriptor.direction] : "ascending")});},expandedKeys: d,@@ -31069,7 +31662,7 @@ function bie(e) {treeColumn: o};}-function xie(e, t) {+function Eae(e, t) {let n = (0, I.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);return {...e,@@ -31079,7 +31672,7 @@ function xie(e, t) {}//#endregion//#region node_modules/react-aria-components/dist/private/Table.mjs-var Sie = class extends Rf {+var Dae = class extends Bf {withExpandedKeys(e) {let t = this.clone();return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;@@ -31094,7 +31687,7 @@ var Sie = class extends Rf {}get body() {for (let e of this) if (e.type === "tablebody") return e;- return new qD(-2);+ return new Gk(-2);}commit(e, t, n = !1) {this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];@@ -31120,7 +31713,7 @@ var Sie = class extends Rf {for (let t of this.getChildren(e.key)) n(t);};for (let e of this.getChildren(this.head.key)) n(e);- if (this.headerRows = BD(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 = Rk(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;@@ -31201,11 +31794,11 @@ var Sie = class extends Rf {return r.join(" ");}constructor(...e) {- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new WD(-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 Hk(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();}-}, Cie = /*#__PURE__*/ (0, I.createContext)(null), wie = /*#__PURE__*/ (0, I.createContext)(null), VD = /*#__PURE__*/ (0, I.createContext)(null), HD = /*#__PURE__*/ (0, I.createContext)(null), Tie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {- [e, t] = kT(e, t, wie);- let n = KE(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, I.useMemo)(() => ({+}, Oae = /*#__PURE__*/ (0, I.createContext)(null), kae = /*#__PURE__*/ (0, I.createContext)(null), zk = /*#__PURE__*/ (0, I.createContext)(null), Bk = /*#__PURE__*/ (0, I.createContext)(null), Aae = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {+ [e, t] = DD(e, t, kae);+ let n = WO(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, I.useMemo)(() => ({selectionBehavior: i === "none" ? null : r,selectionMode: i,disallowEmptySelection: a,@@ -31215,26 +31808,26 @@ var Sie = class extends Rf {i,a,o- ]), c = /*#__PURE__*/ I.createElement(Oie.Provider, { value: s }, /*#__PURE__*/ I.createElement(zh, e));- return /*#__PURE__*/ I.createElement(Dh, {+ ]), c = /*#__PURE__*/ I.createElement(Nae.Provider, { value: s }, /*#__PURE__*/ I.createElement(Vh, e));+ return /*#__PURE__*/ I.createElement(kh, {content: c,- createCollection: () => new Sie()- }, (r) => /*#__PURE__*/ I.createElement(Die, {+ createCollection: () => new Dae()+ }, (r) => /*#__PURE__*/ I.createElement(Mae, {props: e,forwardedRef: t,selectionState: n,collection: r}));-}), Eie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {- let { isVirtualized: n } = (0, I.useContext)(zT);- return n ? /*#__PURE__*/ I.createElement(NT.div, {+}), jae = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {+ let { isVirtualized: n } = (0, I.useContext)(LD);+ return n ? /*#__PURE__*/ I.createElement(jD.div, {...e,ref: t- }) : /*#__PURE__*/ I.createElement(NT.table, {+ }) : /*#__PURE__*/ I.createElement(jD.table, {...e,ref: t});-}), UD = {+}), Vk = {expand: {ltr: "ArrowRight",rtl: "ArrowLeft"@@ -31244,26 +31837,26 @@ var Sie = class extends Rf {rtl: "ArrowRight"}};-function Die({ props: e, forwardedRef: t, selectionState: n, collection: r }) {- [e, t] = kT(e, t, PT);- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, I.useContext)(Cie);- t = uh((0, I.useMemo)(() => Gm(t, c?.tableRef), [t, c?.tableRef]));- let [l, u] = H_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);+function Mae({ props: e, forwardedRef: t, selectionState: n, collection: r }) {+ [e, t] = DD(e, t, MD);+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, I.useContext)(Oae);+ t = fh((0, I.useMemo)(() => qm(t, c?.tableRef), [t, c?.tableRef]));+ let [l, u] = B_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);r = (0, I.useMemo)(() => r.withExpandedKeys(l), [r, l]);- let d = bie({+ let d = Tae({...s,collection: r,children: void 0,UNSAFE_selectionState: n,expandedKeys: l,onExpandedChange: u- }), f = xie(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, I.useContext)(zT), { dragAndDropHooks: _ } = e, { gridProps: v } = Ite({+ }), f = Eae(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, I.useContext)(LD), { dragAndDropHooks: _ } = e, { gridProps: v } = Dte({...s,layoutDelegate: m,isVirtualized: p}, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;(0, I.useRef)(b), (0, I.useRef)(x), (0, I.useEffect)(() => {}, [b, x]);- let S, C, w, T = !1, E = null, D = (0, I.useRef)(null), { direction: O } = lg(), [k] = (0, I.useState)(() => new hie());+ let S, C, w, T = !1, E = null, D = (0, I.useRef)(null), { direction: O } = ug(), [k] = (0, I.useState)(() => new bae());if (b && _) {S = _.useDraggableCollectionState({collection: f.collection,@@ -31278,7 +31871,7 @@ function Die({ props: e, forwardedRef: t, selectionState: n, collection: r }) {collection: f.collection,selectionManager: y});- let e = new rv({+ let e = new iv({collection: f.collection,disabledKeys: y.disabledKeys,disabledBehavior: y.disabledBehavior,@@ -31298,12 +31891,12 @@ function Die({ 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 === UD.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === UD.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);+ (e.key === Vk.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === Vk.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 } = cy(), N = DT({+ let { focusProps: A, isFocused: j, isFocusVisible: M } = py(), N = TD({...e,children: void 0,defaultClassName: "react-aria-Table",@@ -31313,83 +31906,83 @@ function Die({ props: e, forwardedRef: t, selectionState: n, collection: r }) {isFocusVisible: M,state: f}- }), P = !!(b && !S?.isDisabled), ee = N.style, F = null;- c && (F = c.useTableColumnResizeState({ tableWidth: c.tableWidth }, f), p || (ee = {- ...ee,+ }), ee = !!(b && !S?.isDisabled), te = N.style, P = null;+ c && (P = c.useTableColumnResizeState({ tableWidth: c.tableWidth }, f), p || (te = {+ ...te,tableLayout: "fixed",width: "min-content"}));- let te = _g(e, { global: !0 });- return /*#__PURE__*/ I.createElement(ET, { values: [- [VD, f],- [HD, F],- [FE, {+ let ne = Sg(e, { global: !0 });+ return /*#__PURE__*/ I.createElement(wD, { values: [+ [zk, f],+ [Bk, P],+ [NO, {dragAndDropHooks: _,dragState: S,dropState: C}],- [IE, { render: Rie }],- [PT, null],- [FT, null]- ] }, /*#__PURE__*/ I.createElement(Wg, null, /*#__PURE__*/ I.createElement(Eie, {- ...H(te, N, v, A, w?.collectionProps),- style: ee,+ [PO, { render: Uae }],+ [MD, null],+ [ND, null]+ ] }, /*#__PURE__*/ I.createElement(Yg, null, /*#__PURE__*/ I.createElement(jae, {+ ...H(ne, N, v, A, w?.collectionProps),+ style: te,ref: t,slot: e.slot || void 0,onScroll: e.onScroll,- "data-allows-dragging": P || void 0,+ "data-allows-dragging": ee || void 0,"data-drop-target": T || void 0,"data-focused": j || void 0,"data-focus-visible": M || void 0- }, /*#__PURE__*/ I.createElement(BE, null, /*#__PURE__*/ I.createElement(g, {+ }, /*#__PURE__*/ I.createElement(RO, null, /*#__PURE__*/ I.createElement(g, {collection: f.collection,scrollRef: c?.scrollRef ?? t,- persistedKeys: RE(y, _, C)+ persistedKeys: IO(y, _, C)})))), E);}-var Oie = /*#__PURE__*/ (0, I.createContext)(null), WD = class extends Nf {+var Nae = /*#__PURE__*/ (0, I.createContext)(null), Hk = class extends Ff {static {this.type = "tableheader";}-}, kie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {- let { isVirtualized: n } = (0, I.useContext)(zT);- return n ? /*#__PURE__*/ I.createElement(NT.div, {+}, Pae = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {+ let { isVirtualized: n } = (0, I.useContext)(LD);+ return n ? /*#__PURE__*/ I.createElement(jD.div, {...e,ref: t- }) : /*#__PURE__*/ I.createElement(NT.thead, {+ }) : /*#__PURE__*/ I.createElement(jD.thead, {...e,ref: t});-}), GD = /*#__PURE__*/ Ih(WD, (e, t) => {- let n = (0, I.useContext)(VD).collection, r = Uf({+}), Uk = /*#__PURE__*/ Rh(Hk, (e, t) => {+ let n = (0, I.useContext)(zk).collection, r = Gf({items: n.headerRows,children: (0, I.useCallback)((e) => {switch (e.type) {- case "headerrow": return /*#__PURE__*/ I.createElement(jie, { item: e });+ case "headerrow": return /*#__PURE__*/ I.createElement(Iae, { item: e });default: throw Error("Unsupported node type in TableHeader: " + e.type);}}, [])- }), { rowGroupProps: i } = tS(), { hoverProps: a, isHovered: o } = fy({+ }), { rowGroupProps: i } = fS(), { hoverProps: a, isHovered: o } = _y({onHoverStart: e.onHoverStart,onHoverChange: e.onHoverChange,onHoverEnd: e.onHoverEnd- }), s = DT({+ }), s = TD({...e,children: void 0,defaultClassName: "react-aria-TableHeader",values: { isHovered: o }});- return /*#__PURE__*/ I.createElement(kie, {- ...H(_g(e, { global: !0 }), i, a),+ return /*#__PURE__*/ I.createElement(Pae, {+ ...H(Sg(e, { global: !0 }), i, a),...s,ref: t,"data-hovered": o || void 0}, r);-}, (e) => /*#__PURE__*/ I.createElement(zh, {+}, (e) => /*#__PURE__*/ I.createElement(Vh, {dependencies: e.dependencies,items: e.columns-}, e.children)), Aie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {- let { isVirtualized: n } = (0, I.useContext)(zT);+}, e.children)), Fae = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {+ let { isVirtualized: n } = (0, I.useContext)(LD);return n ? /*#__PURE__*/ I.createElement("div", {...e,ref: t@@ -31398,41 +31991,41 @@ var Oie = /*#__PURE__*/ (0, I.createContext)(null), WD = class extends Nf {ref: t});});-function jie({ item: e }) {- let t = (0, I.useRef)(null), n = (0, I.useContext)(VD), { isVirtualized: r, CollectionBranch: i } = (0, I.useContext)(zT), { rowProps: a } = Bte({+function Iae({ item: e }) {+ let t = (0, I.useRef)(null), n = (0, I.useContext)(zk), { isVirtualized: r, CollectionBranch: i } = (0, I.useContext)(LD), { rowProps: a } = jte({node: e,isVirtualized: r- }, n, t), { checkboxProps: o } = qte(n);- return /*#__PURE__*/ I.createElement(Aie, {+ }, n, t), { checkboxProps: o } = Rte(n);+ return /*#__PURE__*/ I.createElement(Fae, {...a,ref: t- }, /*#__PURE__*/ I.createElement(ET, { values: [[YT, { slots: { selection: o } }], [XT, { slots: { selection: o } }]] }, /*#__PURE__*/ I.createElement(i, {+ }, /*#__PURE__*/ I.createElement(wD, { values: [[qD, { slots: { selection: o } }], [JD, { slots: { selection: o } }]] }, /*#__PURE__*/ I.createElement(i, {collection: n.collection,parent: e})));}-var Mie = class extends Nf {+var Lae = class extends Ff {static {this.type = "column";}-}, Nie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {- let { isVirtualized: n } = (0, I.useContext)(zT);- return n ? /*#__PURE__*/ I.createElement(NT.div, {+}, Rae = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {+ let { isVirtualized: n } = (0, I.useContext)(LD);+ return n ? /*#__PURE__*/ I.createElement(jD.div, {...e,ref: t- }) : /*#__PURE__*/ I.createElement(NT.th, {+ }) : /*#__PURE__*/ I.createElement(jD.th, {...e,ref: t});-}), KD = /*#__PURE__*/ Fh(Mie, (e, t, n) => {- let r = uh(t), i = (0, I.useContext)(VD), { isVirtualized: a } = (0, I.useContext)(zT), { columnHeaderProps: o, isPressed: s } = zte({+}), Wk = /*#__PURE__*/ Lh(Lae, (e, t, n) => {+ let r = fh(t), i = (0, I.useContext)(zk), { isVirtualized: a } = (0, I.useContext)(LD), { columnHeaderProps: o, isPressed: s } = Ate({node: n,isVirtualized: a,focusMode: e.focusMode,allowsArrowNavigation: e.allowsArrowNavigation- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = cy(), d = (0, I.useContext)(HD), f = !1;+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = py(), d = (0, I.useContext)(Bk), f = !1;d && (f = d.resizingColumn === n.key);- let { hoverProps: p, isHovered: m } = fy({ isDisabled: !e.allowsSorting }), h = DT({+ let { hoverProps: p, isHovered: m } = _y({ isDisabled: !e.allowsSorting }), h = TD({...e,id: void 0,children: n.rendered,@@ -31458,8 +32051,8 @@ var Mie = class extends Nf {...g,width: d.getColumnWidth(n.key)});- let _ = _g(e, { global: !0 });- return delete _.id, /*#__PURE__*/ I.createElement(Nie, {+ let _ = Sg(e, { global: !0 });+ return delete _.id, /*#__PURE__*/ I.createElement(Rae, {...H(_, o, u, p),...h,style: g,@@ -31471,28 +32064,28 @@ var Mie = class extends Nf {"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__*/ I.createElement(ET, { values: [[Pie, {+ }, /*#__PURE__*/ I.createElement(wD, { values: [[zae, {column: n,triggerRef: r- }], [zT, LT]] }, h.children));-}), Pie = /*#__PURE__*/ (0, I.createContext)(null), qD = class extends Pf {+ }], [LD, FD]] }, h.children));+}), zae = /*#__PURE__*/ (0, I.createContext)(null), Gk = class extends If {static {this.type = "tablebody";}-}, Fie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {- let { isVirtualized: n } = (0, I.useContext)(zT);- return n ? /*#__PURE__*/ I.createElement(NT.div, {+}, Bae = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {+ let { isVirtualized: n } = (0, I.useContext)(LD);+ return n ? /*#__PURE__*/ I.createElement(jD.div, {...e,ref: t- }) : /*#__PURE__*/ I.createElement(NT.tbody, {+ }) : /*#__PURE__*/ I.createElement(jD.tbody, {...e,ref: t});-}), JD = /*#__PURE__*/ Ih(qD, (e, t, n) => {- let r = (0, I.useContext)(VD), { isVirtualized: i } = (0, I.useContext)(zT), a = r.collection, { CollectionBranch: o } = (0, I.useContext)(zT), { dragAndDropHooks: s, dropState: c } = (0, I.useContext)(FE), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {+}), Kk = /*#__PURE__*/ Rh(Gk, (e, t, n) => {+ let r = (0, I.useContext)(zk), { isVirtualized: i } = (0, I.useContext)(LD), a = r.collection, { CollectionBranch: o } = (0, I.useContext)(LD), { dragAndDropHooks: s, dropState: c } = (0, I.useContext)(NO), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {isDropTarget: u,isEmpty: d- }, p = DT({+ }, p = TD({...e,id: void 0,children: void 0,@@ -31501,33 +32094,33 @@ var Mie = class extends Nf {}), 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__*/ I.createElement(XD, {+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ I.createElement(Jk, {role: "row",...t,style: r- }, /*#__PURE__*/ I.createElement(QD, {+ }, /*#__PURE__*/ I.createElement(Xk, {role: "rowheader",...n,style: r}, e.renderEmptyState(f)));}- let { rowGroupProps: g } = tS(), _ = _g(e, { global: !0 });- return /*#__PURE__*/ I.createElement(Fie, {+ let { rowGroupProps: g } = fS(), _ = Sg(e, { global: !0 });+ return /*#__PURE__*/ I.createElement(Bae, {...H(_, p, g),ref: t,"data-empty": d || void 0- }, l && /*#__PURE__*/ I.createElement(Uie, null), /*#__PURE__*/ I.createElement(o, {+ }, l && /*#__PURE__*/ I.createElement(Jae, null), /*#__PURE__*/ I.createElement(o, {collection: a,parent: n,- renderDropIndicator: LE(s, c)+ renderDropIndicator: FO(s, c)}), m);});-(class extends Pf {+(class extends If {static {this.type = "tablefooter";}});-var YD = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Iie = class extends Nf {+var qk = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Vae = class extends Ff {static {this.type = "item";}@@ -31539,31 +32132,31 @@ var YD = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Ii}return null;}-}, XD = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {- let { isVirtualized: n } = (0, I.useContext)(zT);- return n ? /*#__PURE__*/ I.createElement(NT.div, {+}, Jk = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {+ let { isVirtualized: n } = (0, I.useContext)(LD);+ return n ? /*#__PURE__*/ I.createElement(jD.div, {...e,ref: t- }) : /*#__PURE__*/ I.createElement(NT.tr, {+ }) : /*#__PURE__*/ I.createElement(jD.tr, {...e,ref: t});-}), ZD = /*#__PURE__*/ Ih(Iie, (e, t, n) => {- let r = uh(t), i = (0, I.useContext)(VD), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, I.useContext)(FE), { isVirtualized: c, CollectionBranch: l } = (0, I.useContext)(zT), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Ute({+}), Yk = /*#__PURE__*/ Rh(Vae, (e, t, n) => {+ let r = fh(t), i = (0, I.useContext)(zk), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, I.useContext)(NO), { isVirtualized: c, CollectionBranch: l } = (0, I.useContext)(LD), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Pte({node: n,shouldSelectOnPressUp: !!o,isVirtualized: c- }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = cy(), { isFocusVisible: _, focusProps: v } = cy({ within: !0 }), { hoverProps: y, isHovered: b } = fy({+ }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = py(), { isFocusVisible: _, focusProps: v } = py({ within: !0 }), { hoverProps: y, isHovered: b } = _y({isDisabled: !p.allowsSelection && !p.hasAction && !u,onHoverStart: e.onHoverStart,onHoverChange: e.onHoverChange,onHoverEnd: e.onHoverEnd- }), { checkboxProps: x } = Kte({ key: n.key }, i), S;+ }), { checkboxProps: x } = Lte({ key: n.key }, i), S;o && a && (S = a.useDraggableItem({key: n.key,hasDragButton: !0}, o));- let C, w = (0, I.useRef)(null), { visuallyHiddenProps: T } = K_();+ let C, w = (0, I.useRef)(null), { visuallyHiddenProps: T } = G_();s && a && (C = a.useDropIndicator({ target: {type: "item",key: n.key,@@ -31573,7 +32166,7 @@ var YD = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Ii(0, I.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 = DT({+ 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 = TD({...k,id: void 0,defaultClassName: "react-aria-Row",@@ -31594,11 +32187,11 @@ var YD = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), IiisExpanded: j,level: n.level + 1}- }), N = _g(e, { global: !0 });- return delete N.id, delete N.onClick, /*#__PURE__*/ I.createElement(I.Fragment, null, C && !C.isHidden && /*#__PURE__*/ I.createElement(XD, {+ }), N = Sg(e, { global: !0 });+ return delete N.id, delete N.onClick, /*#__PURE__*/ I.createElement(I.Fragment, null, C && !C.isHidden && /*#__PURE__*/ I.createElement(Jk, {role: "row",style: { height: 0 }- }, /*#__PURE__*/ I.createElement(QD, {+ }, /*#__PURE__*/ I.createElement(Xk, {role: "gridcell",colSpan: i.collection.columnCount,style: { padding: 0 }@@ -31607,7 +32200,7 @@ var YD = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Ii...T,...C.dropIndicatorProps,ref: w- }))), /*#__PURE__*/ I.createElement(XD, {+ }))), /*#__PURE__*/ I.createElement(Jk, {...H(N, M, d, g, y, S?.dragProps, v),ref: r,"data-disabled": p.isDisabled || void 0,@@ -31623,17 +32216,17 @@ var YD = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Ii"data-expanded": j || void 0,"data-has-child-items": A || void 0,"data-level": n.level + 1- }, /*#__PURE__*/ I.createElement(ET, { values: [- [YT, { slots: {- [TT]: {},+ }, /*#__PURE__*/ I.createElement(wD, { values: [+ [qD, { slots: {+ [CD]: {},selection: x} }],- [XT, { slots: {- [TT]: {},+ [JD, { slots: {+ [CD]: {},selection: x} }],- [HT, { slots: {- [TT]: {},+ [BD, { slots: {+ [CD]: {},chevron: f,drag: {...S?.dragButtonProps,@@ -31641,8 +32234,8 @@ var YD = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Iistyle: { pointerEvents: "none" }}} }],- [VE, { isSelected: p.isSelected }],- [YD, { isFocusVisibleWithinRow: _ }]+ [zO, { isSelected: p.isSelected }],+ [qk, { isFocusVisibleWithinRow: _ }]] }, /*#__PURE__*/ I.createElement(l, {collection: i.collection,parent: n@@ -31650,34 +32243,34 @@ var YD = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Ii}, (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__*/ I.createElement(zh, {+ return /*#__PURE__*/ I.createElement(Vh, {dependencies: t,items: e.columns,idScope: e.id}, e.children);-}), Lie = class extends Nf {+}), Hae = class extends Ff {static {this.type = "cell";}-}, QD = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {- let { isVirtualized: n } = (0, I.useContext)(zT);- return n ? /*#__PURE__*/ I.createElement(NT.div, {+}, Xk = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {+ let { isVirtualized: n } = (0, I.useContext)(LD);+ return n ? /*#__PURE__*/ I.createElement(jD.div, {...e,ref: t- }) : /*#__PURE__*/ I.createElement(NT.td, {+ }) : /*#__PURE__*/ I.createElement(jD.td, {...e,ref: t});-}), $D = /*#__PURE__*/ Fh(Lie, (e, t, n) => {- let r = uh(t), i = (0, I.useContext)(VD), { dragState: a } = (0, I.useContext)(FE), { isVirtualized: o } = (0, I.useContext)(zT);+}), Zk = /*#__PURE__*/ Lh(Hae, (e, t, n) => {+ let r = fh(t), i = (0, I.useContext)(zk), { dragState: a } = (0, I.useContext)(NO), { isVirtualized: o } = (0, I.useContext)(LD);n.column = i.collection.columns[n.index];- let { gridCellProps: s, isPressed: c } = Lte({+ let { gridCellProps: s, isPressed: c } = Ote({node: n,shouldSelectOnPressUp: !!a,isVirtualized: o,focusMode: e.focusMode,allowsArrowNavigation: e.allowsArrowNavigation- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = cy(), { hoverProps: f, isHovered: p } = fy({}), { isFocusVisibleWithinRow: m } = (0, I.useContext)(YD), 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 = DT({+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = py(), { hoverProps: f, isHovered: p } = _y({}), { isFocusVisibleWithinRow: m } = (0, I.useContext)(qk), 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 = TD({...e,id: void 0,defaultClassName: "react-aria-Cell",@@ -31696,8 +32289,8 @@ var YD = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Iilevel: _.level + 1,isTreeColumn: n.column.key === i.treeColumn}- }), S = _g(e, { global: !0 });- return delete S.id, /*#__PURE__*/ I.createElement(QD, {+ }), S = Sg(e, { global: !0 });+ return delete S.id, /*#__PURE__*/ I.createElement(Xk, {...H(S, x, s, d, f),ref: r,"data-focused": l || void 0,@@ -31711,14 +32304,14 @@ var YD = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Ii"data-level": _.level + 1,"data-tree-column": n.column.key === i.treeColumn || void 0,"data-disabled": b || void 0- }, /*#__PURE__*/ I.createElement(zT.Provider, { value: LT }, x.children));+ }, /*#__PURE__*/ I.createElement(LD.Provider, { value: FD }, x.children));});-function Rie(e, t) {- t = uh(t);- let { dragAndDropHooks: n, dropState: r } = (0, I.useContext)(FE), i = (0, I.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);+function Uae(e, t) {+ t = fh(t);+ let { dragAndDropHooks: n, dropState: r } = (0, I.useContext)(NO), i = (0, I.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__*/ I.createElement(Hie, {+ return /*#__PURE__*/ I.createElement(qae, {...e,dropIndicatorProps: a,isDropTarget: s,@@ -31727,40 +32320,40 @@ function Rie(e, t) {ref: t});}-var zie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {- let { isVirtualized: n } = (0, I.useContext)(zT);- return n ? /*#__PURE__*/ I.createElement(NT.div, {+var Wae = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {+ let { isVirtualized: n } = (0, I.useContext)(LD);+ return n ? /*#__PURE__*/ I.createElement(jD.div, {...e,ref: t- }) : /*#__PURE__*/ I.createElement(NT.tr, {+ }) : /*#__PURE__*/ I.createElement(jD.tr, {...e,ref: t});-}), Bie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {- let { isVirtualized: n } = (0, I.useContext)(zT);- return n ? /*#__PURE__*/ I.createElement(NT.div, {+}), Gae = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {+ let { isVirtualized: n } = (0, I.useContext)(LD);+ return n ? /*#__PURE__*/ I.createElement(jD.div, {...e,ref: t- }) : /*#__PURE__*/ I.createElement(NT.td, {+ }) : /*#__PURE__*/ I.createElement(jD.td, {...e,ref: t});});-function Vie(e, t) {- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, I.useContext)(VD), { visuallyHiddenProps: c } = K_(), l = DT({+function Kae(e, t) {+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, I.useContext)(zk), { visuallyHiddenProps: c } = G_(), l = TD({...o,defaultClassName: "react-aria-DropIndicator",defaultStyle: { "--table-row-level": a + 1 },values: { isDropTarget: r }});- return /*#__PURE__*/ I.createElement(zie, {- ..._g(e, { global: !0 }),+ return /*#__PURE__*/ I.createElement(Wae, {+ ...Sg(e, { global: !0 }),...l,role: "row",ref: t,"data-drop-target": r || void 0,"aria-level": a- }, /*#__PURE__*/ I.createElement(Bie, {+ }, /*#__PURE__*/ I.createElement(Gae, {role: "gridcell",colSpan: s.collection.columnCount,style: { padding: 0 }@@ -31771,14 +32364,14 @@ function Vie(e, t) {ref: i}), l.children));}-var Hie = /*#__PURE__*/ (0, I.forwardRef)(Vie);-function Uie() {- let e = (0, I.useContext)(VD), { dragAndDropHooks: t, dropState: n } = (0, I.useContext)(FE), r = (0, I.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = K_();- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ I.createElement(XD, {+var qae = /*#__PURE__*/ (0, I.forwardRef)(Kae);+function Jae() {+ let e = (0, I.useContext)(zk), { dragAndDropHooks: t, dropState: n } = (0, I.useContext)(NO), r = (0, I.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = G_();+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ I.createElement(Jk, {role: "row","aria-hidden": i["aria-hidden"],style: { height: 0 }- }, /*#__PURE__*/ I.createElement(QD, {+ }, /*#__PURE__*/ I.createElement(Xk, {role: "gridcell",colSpan: e.collection.columnCount,style: { padding: 0 }@@ -31789,9 +32382,9 @@ function Uie() {ref: r})));}-Fh(Ff, function(e, t, n) {- let r = (0, I.useContext)(VD), { isVirtualized: i } = (0, I.useContext)(zT), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, I.useRef)(null);- eD((0, I.useMemo)(() => ({+Lh(Lf, function(e, t, n) {+ let r = (0, I.useContext)(zk), { isVirtualized: i } = (0, I.useContext)(LD), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, I.useRef)(null);+ QO((0, I.useMemo)(() => ({onLoadMore: o,collection: r?.collection,sentinelRef: u,@@ -31801,7 +32394,7 @@ Fh(Ff, function(e, t, n) {s,r?.collection]), u);- let d = DT({+ let d = TD({...c,id: void 0,children: n.rendered,@@ -31809,10 +32402,10 @@ Fh(Ff, 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__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(XD, {+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(Jk, {style: { height: 0 },- inert: UE(!0)- }, /*#__PURE__*/ I.createElement(QD, { style: {+ inert: VO(!0)+ }, /*#__PURE__*/ I.createElement(Xk, { style: {padding: 0,border: 0} }, /*#__PURE__*/ I.createElement("div", {@@ -31823,14 +32416,14 @@ Fh(Ff, function(e, t, n) {height: 1,width: 1}- }))), a && d.children && /*#__PURE__*/ I.createElement(XD, {- ...H(_g(e, { global: !0 }), f),+ }))), a && d.children && /*#__PURE__*/ I.createElement(Jk, {+ ...H(Sg(e, { global: !0 }), f),...d,role: "row",ref: t,"aria-level": n.level + 1,"data-level": n.level + 1- }, /*#__PURE__*/ I.createElement(QD, {+ }, /*#__PURE__*/ I.createElement(Xk, {role: "rowheader",...p,style: m@@ -31838,8 +32431,8 @@ Fh(Ff, function(e, t, n) {});//#endregion//#region node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs-function Wie(e) {- let [t, n] = H_(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, I.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = QE({+function Yae(e) {+ let [t, n] = B_(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, I.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = XO({...e,selectionMode: "single",disallowEmptySelection: !0,@@ -31862,24 +32455,24 @@ function Wie(e) {}//#endregion//#region node_modules/react-stately/dist/private/tabs/useTabListState.mjs-function Gie(e) {- let t = Wie({+function Xae(e) {+ let t = Yae({...e,onSelectionChange: e.onSelectionChange ? (t) => {t != null && e.onSelectionChange?.(t);} : void 0,suppressTextValueWarning: !0,- defaultSelectedKey: e.defaultSelectedKey ?? eO(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0+ defaultSelectedKey: e.defaultSelectedKey ?? Qk(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0}), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, I.useRef)(i);return (0, I.useEffect)(() => {let o = i;- e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = eO(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 = Qk(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 eO(e, t) {+function Qk(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);@@ -31889,24 +32482,24 @@ function eO(e, t) {}//#endregion//#region node_modules/react-aria-components/dist/private/Tabs.mjs-var tO = /*#__PURE__*/ (0, I.createContext)(null), nO = /*#__PURE__*/ (0, I.createContext)(null), rO = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {- [e, t] = kT(e, t, tO);+var $k = /*#__PURE__*/ (0, I.createContext)(null), eA = /*#__PURE__*/ (0, I.createContext)(null), tA = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {+ [e, t] = DD(e, t, $k);let { children: n, orientation: r = "horizontal" } = e;return n = (0, I.useMemo)(() => typeof n == "function" ? n({orientation: r,defaultChildren: null- }) : n, [n, r]), /*#__PURE__*/ I.createElement(Dh, { content: n }, (n) => /*#__PURE__*/ I.createElement(Kie, {+ }) : n, [n, r]), /*#__PURE__*/ I.createElement(kh, { content: n }, (n) => /*#__PURE__*/ I.createElement(Zae, {props: e,collection: n,tabsRef: t}));});-function Kie({ props: e, tabsRef: t, collection: n }) {- let { orientation: r = "horizontal" } = e, i = Gie({+function Zae({ props: e, tabsRef: t, collection: n }) {+ let { orientation: r = "horizontal" } = e, i = Xae({...e,collection: n,children: void 0- }), { focusProps: a, isFocused: o, isFocusVisible: s } = cy({ within: !0 }), c = (0, I.useMemo)(() => ({+ }), { focusProps: a, isFocused: o, isFocusVisible: s } = py({ within: !0 }), c = (0, I.useMemo)(() => ({orientation: r,isFocusWithin: o,isFocusVisible: s@@ -31914,12 +32507,12 @@ function Kie({ props: e, tabsRef: t, collection: n }) {r,o,s- ]), l = DT({+ ]), l = TD({...e,defaultClassName: "react-aria-Tabs",values: c- }), u = _g(e, { global: !0 });- return /*#__PURE__*/ I.createElement(NT.div, {+ }), u = Sg(e, { global: !0 });+ return /*#__PURE__*/ I.createElement(jD.div, {...H(u, l, a),ref: t,slot: e.slot || void 0,@@ -31927,20 +32520,20 @@ function Kie({ props: e, tabsRef: t, collection: n }) {"data-orientation": r,"data-focus-visible": s || void 0,"data-disabled": i.isDisabled || void 0- }, /*#__PURE__*/ I.createElement(ET, { values: [[tO, e], [nO, i]] }, l.children));+ }, /*#__PURE__*/ I.createElement(wD, { values: [[$k, e], [eA, i]] }, l.children));}-var iO = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {- return (0, I.useContext)(nO) ? /*#__PURE__*/ I.createElement(qie, {+var nA = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {+ return (0, I.useContext)(eA) ? /*#__PURE__*/ I.createElement(Qae, {props: e,forwardedRef: t- }) : /*#__PURE__*/ I.createElement(zh, e);+ }) : /*#__PURE__*/ I.createElement(Vh, e);});-function qie({ props: e, forwardedRef: t }) {- let n = (0, I.useContext)(nO), { CollectionRoot: r } = (0, I.useContext)(zT), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = OT(tO), o = uh(t), { tabListProps: s } = Xte({+function Qae({ props: e, forwardedRef: t }) {+ let n = (0, I.useContext)(eA), { CollectionRoot: r } = (0, I.useContext)(LD), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = ED($k), o = fh(t), { tabListProps: s } = _S({...e,orientation: i,keyboardActivation: a- }, n, o), c = DT({+ }, n, o), c = TD({...e,children: null,defaultClassName: "react-aria-TabList",@@ -31948,30 +32541,30 @@ function qie({ props: e, forwardedRef: t }) {orientation: i,state: n}- }), l = _g(e, { global: !0 });- return delete l.id, /*#__PURE__*/ I.createElement(NT.div, {+ }), l = Sg(e, { global: !0 });+ return delete l.id, /*#__PURE__*/ I.createElement(jD.div, {...H(l, c, s),ref: o,"data-orientation": i || void 0- }, /*#__PURE__*/ I.createElement(BE, null, /*#__PURE__*/ I.createElement(r, {+ }, /*#__PURE__*/ I.createElement(RO, null, /*#__PURE__*/ I.createElement(r, {collection: n.collection,- persistedKeys: BT(n.selectionManager.focusedKey)+ persistedKeys: RD(n.selectionManager.focusedKey)})));}-var aO = /*#__PURE__*/ Fh(class extends Nf {+var rA = /*#__PURE__*/ Lh(class extends Ff {static {this.type = "item";}}, (e, t, n) => {- let r = (0, I.useContext)(nO), i = uh(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Jte({+ let r = (0, I.useContext)(eA), i = fh(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = hS({key: n.key,...e- }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = cy(), { hoverProps: f, isHovered: p } = fy({+ }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = py(), { hoverProps: f, isHovered: p } = _y({isDisabled: s,onHoverStart: e.onHoverStart,onHoverEnd: e.onHoverEnd,onHoverChange: e.onHoverChange- }), m = DT({+ }), m = TD({...e,id: void 0,children: n.rendered,@@ -31984,7 +32577,7 @@ var aO = /*#__PURE__*/ Fh(class extends Nf {isPressed: c,isHovered: p}- }), h = n.props.href ? NT.a : NT.div, g = _g(e, { global: !0 });+ }), h = n.props.href ? jD.a : jD.div, g = Sg(e, { global: !0 });return delete g.id, delete g.onClick, /*#__PURE__*/ I.createElement(h, {...H(g, m, a, l, f),ref: i,@@ -31994,58 +32587,58 @@ var aO = /*#__PURE__*/ Fh(class extends Nf {"data-focus-visible": d || void 0,"data-pressed": c || void 0,"data-hovered": p || void 0- }, /*#__PURE__*/ I.createElement(VE.Provider, { value: { isSelected: o } }, m.children));-}), oO = /*#__PURE__*/ _h(function(e, t) {- let n = (0, I.useContext)(nO), r = uh(t), i = n.selectedKey === e.id, [a, o] = (0, I.useState)(n.selectedKey == null ? null : i);+ }, /*#__PURE__*/ I.createElement(zO.Provider, { value: { isSelected: o } }, m.children));+}), iA = /*#__PURE__*/ yh(function(e, t) {+ let n = (0, I.useContext)(eA), r = fh(t), i = n.selectedKey === e.id, [a, o] = (0, I.useState)(n.selectedKey == null ? null : i);a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);- let s = oD(r, i);- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ I.createElement(Jie, {+ let s = ik(r, i);+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ I.createElement($ae, {...e,tabPanelRef: r,isInitiallySelected: a || !1,isExiting: s});});-function Jie(e) {- let t = (0, I.useContext)(nO), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Zte(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = cy(), d = t.selectedKey === e.id, f = aD(r) && !i, p = DT({+function $ae(e) {+ let t = (0, I.useContext)(eA), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = vS(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = py(), d = t.selectedKey === e.id, f = rk(r) && !i, p = TD({...e,defaultClassName: "react-aria-TabPanel",values: {isFocused: l,isFocusVisible: u,- isInert: UE(!d),+ isInert: VO(!d),isEntering: f,isExiting: a,state: t}- }), m = _g(o, { global: !0 });+ }), m = Sg(o, { global: !0 });delete m.id;let h = d ? H(m, s, c, p) : H(m, p);- return /*#__PURE__*/ I.createElement(NT.div, {+ return /*#__PURE__*/ I.createElement(jD.div, {...h,ref: r,"data-focused": l || void 0,"data-focus-visible": u || void 0,- inert: UE(!d || e.inert),+ inert: VO(!d || e.inert),"data-inert": d ? void 0 : "true","data-entering": f || void 0,"data-exiting": a || void 0- }, /*#__PURE__*/ I.createElement(ET, { values: [[tO, null], [nO, null]] }, /*#__PURE__*/ I.createElement(zT.Provider, { value: LT }, p.children)));+ }, /*#__PURE__*/ I.createElement(wD, { values: [[$k, null], [eA, null]] }, /*#__PURE__*/ I.createElement(LD.Provider, { value: FD }, p.children)));}//#endregion//#region node_modules/react-aria-components/dist/private/TextArea.mjs-var Yie = /*#__PURE__*/ (0, I.createContext)({}), Xie = /*#__PURE__*/ (0, I.createContext)(null), Zie = /*#__PURE__*/ _h(function(e, t) {- [e, t] = kT(e, t, Xie);- let { validationBehavior: n } = OT(JT) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, I.useRef)(null);- [e, i] = kT(e, i, FT);- let [a, o] = AT(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, I.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = kee({- ...jT(e),+var eoe = /*#__PURE__*/ (0, I.createContext)({}), toe = /*#__PURE__*/ (0, I.createContext)(null), noe = /*#__PURE__*/ yh(function(e, t) {+ [e, t] = DD(e, t, toe);+ let { validationBehavior: n } = ED(KD) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, I.useRef)(null);+ [e, i] = DD(e, i, ND);+ let [a, o] = OD(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, I.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = q_({+ ...kD(e),inputElementType: s,label: o,validationBehavior: r}, i), m = (0, I.useCallback)((e) => {i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");- }, [i]), h = DT({+ }, [i]), h = TD({...e,values: {isDisabled: e.isDisabled || !1,@@ -32054,8 +32647,8 @@ var Yie = /*#__PURE__*/ (0, I.createContext)({}), Xie = /*#__PURE__*/ (0, I.creaisRequired: e.isRequired || !1},defaultClassName: "react-aria-TextField"- }), g = _g(e, { global: !0 });- return delete g.id, /*#__PURE__*/ I.createElement(NT.div, {+ }), g = Sg(e, { global: !0 });+ return delete g.id, /*#__PURE__*/ I.createElement(jD.div, {...g,...h,ref: t,@@ -32064,31 +32657,173 @@ var Yie = /*#__PURE__*/ (0, I.createContext)({}), Xie = /*#__PURE__*/ (0, I.crea"data-invalid": p.isInvalid || void 0,"data-readonly": e.isReadOnly || void 0,"data-required": e.isRequired || void 0- }, /*#__PURE__*/ I.createElement(ET, { values: [- [VT, {+ }, /*#__PURE__*/ I.createElement(wD, { values: [+ [zD, {...l,ref: a}],- [$T, {+ [ZD, {...u,ref: m}],- [Yie, {+ [eoe, {...u,ref: m}],- [QT, {+ [XD, {role: "presentation",isInvalid: p.isInvalid,isDisabled: e.isDisabled || !1}],- [KT, { slots: {+ [WD, { slots: {description: d,errorMessage: f} }],- [qT, p]+ [GD, p]] }, h.children));-}), sO = vw({+}), aA = ZC({+ 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"+ ].join(" "),+ size: {+ medium: "text-body-medium",+ small: "text-body-medium",+ xs: "text-caption-1-semibold"+ },+ icon: {+ medium: "size-5 shrink-0",+ small: "size-[18px] shrink-0",+ xs: "size-3.5 shrink-0"+ },+ variant: {+ primary: ["text-accent-600 active:text-accent-800", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" "),+ secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")+ }+});+function oA({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {+ let c = XC(aA.base, aA.size[t], aA.variant[e], a), l = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [+ n ? /* @__PURE__ */ (0, L.jsx)(n, {+ className: aA.icon[t],+ "aria-hidden": !0+ }) : null,+ i != null && /* @__PURE__ */ (0, L.jsx)("span", { children: i }),+ r ? /* @__PURE__ */ (0, L.jsx)(r, {+ className: aA.icon[t],+ "aria-hidden": !0+ }) : null+ ] });+ if (s.href !== void 0) {+ let { ref: e, href: t, ...n } = s;+ return /* @__PURE__ */ (0, L.jsx)("a", {+ ref: e,+ href: o ? void 0 : t,+ "aria-disabled": o || void 0,+ className: c,+ ...n,+ children: l+ });+ }+ let { ref: u, type: d = "button", ...f } = s;+ return /* @__PURE__ */ (0, L.jsx)("button", {+ ref: u,+ type: d,+ disabled: o,+ className: c,+ ...f,+ children: l+ });+}+//#endregion+//#region src/react/boardui/components/base/dropdown/menu-styles.ts+var sA = [+ "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"+].join(" "), roe = "w-[266px]", ioe = "flex w-full flex-col gap-1 outline-none", cA = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), lA = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";+({+ medium: "h-9 rounded-2lg p-2 text-body-medium",+ small: "h-8 rounded-lg px-2 py-1.5 text-body-medium"+}).medium;+//#endregion+//#region src/management.ts+var aoe = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", ooe = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", soe = aw({+ padding: "none",+ bordered: "line",+ className: "overflow-hidden"+}), coe = {+ 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"+}, loe = {+ 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"+}, uoe = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", doe = {+ neutral: "border-border-button-default bg-card-footer",+ error: "border-border-error-default bg-background-tertiary-error"+}, foe = aw({+ padding: "none",+ radius: "surface",+ bordered: "line",+ className: "overflow-hidden"+}), uA = "border-t border-border-button-default p-4 first:border-t-0";+function dA({ tone: e = "neutral", status: t, children: n }) {+ return /* @__PURE__ */ (0, L.jsxs)("div", {+ className: `${uoe} ${doe[e]}`,+ children: [t ? /* @__PURE__ */ (0, L.jsx)("p", {+ className: `mr-auto min-w-0 text-caption-1-regular ${e === "error" ? "text-text-error-primary" : "text-text-secondary"}`,+ children: t+ }) : null, n]+ });+}+function fA({ id: e, children: t }) {+ return /* @__PURE__ */ (0, L.jsx)("h2", {+ id: e,+ className: "text-title-2-medium! m-0! text-text-primary",+ children: t+ });+}+function pA({ id: e, gap: t = "none", children: n }) {+ return /* @__PURE__ */ (0, L.jsx)("h3", {+ id: e,+ className: `text-title-2-medium text-text-primary ${t === "medium" ? "mb-3" : t === "small" ? "mb-2" : ""}`,+ children: n+ });+}+function mA({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {+ return /* @__PURE__ */ (0, L.jsxs)("section", {+ id: r,+ "aria-label": t,+ "aria-labelledby": n,+ ...o,+ className: `${soe} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,+ children: [/* @__PURE__ */ (0, L.jsx)("div", {+ className: coe[e],+ children: a+ }), i ? /* @__PURE__ */ (0, L.jsx)("footer", {+ className: loe[e],+ children: i+ }) : null]+ });+}+//#endregion+//#region src/react/components/overlay-scrollbar.ts+function hA() {+ let e = (0, I.useRef)(null);+ return (0, I.useEffect)(() => {+ h(e.current);+ }), e;+}+//#endregion+//#region src/react/boardui/components/base/buttons/icon-button.tsx+var gA = ZC({base: ["relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg","bg-background-primary-default text-foreground-icon-primary",@@ -32109,4289 +32844,3019 @@ var Yie = /*#__PURE__*/ (0, I.createContext)({}), Xie = /*#__PURE__*/ (0, I.creasmall: "size-4 shrink-0"}});-function cO({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {+function _A({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {return /* @__PURE__ */ (0, L.jsx)("button", {ref: i,type: r,- className: _w(sO.base, sO.size[t], n),+ className: XC(gA.base, gA.size[t], n),...a,children: /* @__PURE__ */ (0, L.jsx)(e, {- className: sO.icon[t],+ className: gA.icon[t],"aria-hidden": !0})});}//#endregion-//#region src/react/boardui/components/base/switch/switch.tsx-var Qie = vw({- sm: {- track: "h-4 w-7",- trackRadius: {- pill: "rounded-full",- rectangle: "rounded-[3px]"- },- onShadow: "shadow-[inset_0_1px_0_0_rgb(255_255_255/0.25),inset_0_0_0_0.5px_var(--color-accent-500)]",- thumb: "size-3",- thumbRadius: {- pill: "rounded-full",- rectangle: "rounded-[1px]"- },- offset: "left-0.5 top-0.5",- travel: "translate-x-3",- chip: "size-[5px] border-[0.25px] shadow-[0_2px_2px_0_rgb(0_0_0/0.03)]",- chipRadius: {- pill: "rounded-full",- rectangle: "rounded-[0.5px]"- }- },- md: {- track: "h-6 w-[42px]",- trackRadius: {- pill: "rounded-full",- rectangle: "rounded-[4.5px]"- },- onShadow: "shadow-[inset_0_1.5px_0_0_rgb(255_255_255/0.25),inset_0_0_0_0.75px_var(--color-accent-500)]",- thumb: "size-[18px]",- thumbRadius: {- pill: "rounded-full",- rectangle: "rounded-[1.5px]"- },- offset: "left-[3px] top-[3px]",- travel: "translate-x-[18px]",- chip: "size-[7.5px] border-[0.375px] shadow-[0_3px_3px_0_rgb(0_0_0/0.03)]",- chipRadius: {- pill: "rounded-full",- rectangle: "rounded-[0.75px]"- }- },- lg: {- track: "h-8 w-14",- trackRadius: {- pill: "rounded-full",- rectangle: "rounded-md"- },- onShadow: "shadow-checkbox-selected",- thumb: "size-6",- thumbRadius: {- pill: "rounded-full",- rectangle: "rounded-xs"- },- offset: "left-1 top-1",- travel: "translate-x-6",- chip: "size-[10px] border-[0.5px] shadow-[0_4px_4px_0_rgb(0_0_0/0.03)]",- chipRadius: {- pill: "rounded-full",- rectangle: "rounded-[1px]"- }- }-});-function $ie({ state: e, size: t = "md", shape: n = "pill" }) {- let r = Qie[t];- return /* @__PURE__ */ (0, L.jsx)("span", {+//#region src/react/components/path-line.tsx+function poe({ className: e }) {+ return /* @__PURE__ */ (0, L.jsx)("svg", {"aria-hidden": !0,- className: _w("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? _w("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),- children: /* @__PURE__ */ (0, L.jsx)("span", {- className: _w("absolute flex items-center justify-center", "bg-linear-to-b from-control-indicator-background from-[43.837%] to-control-indicator-background-subtle", "shadow-[0_3px_3px_0_rgb(0_0_0/0.03),0_0.75px_0_0_rgb(0_0_0/0.05)]", "transition-transform duration-200 ease", r.thumb, r.thumbRadius[n], r.offset, e.isSelected && r.travel),- children: /* @__PURE__ */ (0, L.jsx)("span", { className: _w("border-solid bg-linear-to-t from-[43.837%]", r.chip, r.chipRadius[n], e.isSelected ? "border-accent-600 from-switch-on-chip-start to-switch-on-chip-end" : "border-border-button-default/50 from-switch-off-chip-start to-switch-off-chip-end") })- })- });-}-function lO({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {- return /* @__PURE__ */ (0, L.jsx)(pie, {- ref: i,- ...a,- className: (t) => _w("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, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)($ie, {- state: e,- size: n,- shape: r- }), t != null && t !== !1 && /* @__PURE__ */ (0, L.jsx)("span", {- className: "text-body-medium text-text-primary",- children: t- })] })+ viewBox: "0 0 24 24",+ fill: "none",+ stroke: "currentColor",+ strokeWidth: 2,+ strokeLinecap: "round",+ strokeLinejoin: "round",+ className: e,+ children: /* @__PURE__ */ (0, L.jsx)("use", { href: "#i-folder-open" })});}-function uO(e) {- return {- x0: 0,- y0: 0,- x1: e.width,- y1: e.height+var moe = "打开文件管理器失败,请重试";+function vA({ path: e, prefix: t, className: n, onRevealed: r }) {+ let [i, a] = (0, I.useState)(!1), [o, s] = (0, I.useState)(""), c = (0, I.useRef)(!0);+ (0, I.useEffect)(() => () => {+ c.current = !1;+ }, []);+ let l = async () => {+ if (!i) {+ a(!0), s("");+ try {+ await q("/api/reveal", { path: e }), r?.("已在资源管理器中显示");+ } catch (e) {+ c.current && s(e instanceof nw ? e.message : moe);+ } finally {+ c.current && a(!1);+ }+ }};+ return /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "flex flex-col gap-1",+ children: [/* @__PURE__ */ (0, L.jsxs)("div", {+ className: "flex items-center justify-between gap-2",+ children: [/* @__PURE__ */ (0, L.jsxs)("p", {+ className: XC("min-w-0 break-all", n),+ children: [t, e]+ }), /* @__PURE__ */ (0, L.jsx)(_A, {+ icon: poe,+ size: "small",+ className: "shrink-0",+ "aria-label": "在资源管理器中显示",+ onClick: () => void l(),+ ...Y(i)+ })]+ }), o ? /* @__PURE__ */ (0, L.jsx)("p", {+ className: "text-caption-1-regular text-text-error-primary",+ children: o+ }) : null]+ });}-function dO(e) {- return {- x0: Math.round(e.x0),- y0: Math.round(e.y0),- x1: Math.round(e.x1),- y1: Math.round(e.y1)- };+//#endregion+//#region src/react/boardui/components/application/settings/settings-rows.tsx+function yA({ className: e, children: t }) {+ return /* @__PURE__ */ (0, L.jsx)("div", {+ className: XC("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),+ children: t+ });}-function fO(e) {- return !!e && Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0;+function bA({ className: e, children: t }) {+ return /* @__PURE__ */ (0, L.jsx)("p", {+ className: XC("w-full px-3 text-body-2-medium text-text-secondary", e),+ children: t+ });}-function pO(e, t) {- if (!fO(e)) return {- x0: 0,- y0: 0,- x1: 0,- y1: 0- };- if (t == null || !(t > 0)) return uO(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 dO({- x0: i,- y0: a,- x1: i + n,- y1: a + r+function xA({ label: e, description: t, children: n }) {+ return /* @__PURE__ */ (0, L.jsxs)("div", {+ className: XC("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, L.jsxs)("div", {+ className: "flex min-w-0 flex-col",+ children: [/* @__PURE__ */ (0, L.jsx)("p", {+ className: "text-body-regular text-text-primary",+ children: e+ }), t && /* @__PURE__ */ (0, L.jsx)("p", {+ className: "text-body-2-regular text-text-secondary",+ children: t+ })]+ }), n]});}-function eae(e, t) {- if (!fO(e) || !(t > 0)) return uO(e);- let n = Math.min(e.width, e.height * t);- return dO({- x0: e.width - n,- y0: 0,- x1: e.width,- y1: e.height+//#endregion+//#region src/react/settings/section.tsx+function SA({ title: e, id: t, aside: n, onSubmit: r, children: i }) {+ let a = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [n ? /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "flex w-full flex-wrap items-center justify-between gap-2",+ children: [/* @__PURE__ */ (0, L.jsx)("div", {+ className: "min-w-0 flex-1",+ children: /* @__PURE__ */ (0, L.jsx)(bA, { children: e })+ }), n]+ }) : /* @__PURE__ */ (0, L.jsx)(bA, { children: e }), /* @__PURE__ */ (0, L.jsx)(yA, { children: i })] });+ return r ? /* @__PURE__ */ (0, L.jsx)("form", {+ id: t,+ "aria-label": e,+ noValidate: !0,+ onSubmit: r,+ className: "flex w-full flex-col gap-2",+ children: a+ }) : /* @__PURE__ */ (0, L.jsx)("section", {+ id: t,+ "aria-label": e,+ className: "flex w-full flex-col gap-2",+ children: a});}-function tae(e, t, n) {- if (!fO(t) || !(n > 0)) return uO(t);- let r = mO(e, t), i = pO({- width: r.x1 - r.x0,- height: r.y1 - r.y0- }, n);- return {- x0: r.x0 + i.x0,- y0: r.y0 + i.y0,- x1: r.x0 + i.x1,- y1: r.y0 + i.y1- };+function CA({ children: e }) {+ return /* @__PURE__ */ (0, L.jsx)("div", {+ className: "flex flex-col",+ children: e+ });}-function mO(e, t, n = null, r = "width") {- if (!fO(t)) return {- x0: 0,- y0: 0,- x1: 0,- y1: 0- };- 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 dO({- x0: s,- y0: c,- x1: s + a,- y1: c + o+function wA({ divided: e = !1, children: t }) {+ return e ? /* @__PURE__ */ (0, L.jsx)("div", {+ className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3",+ children: t+ }) : /* @__PURE__ */ (0, L.jsx)("div", {+ className: "flex flex-col gap-4 py-4 pr-3",+ children: t});}-function hO(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 dO({- x0: o,- y0: s,- x1: o + i,- y1: s + a+function TA({ status: e, children: t }) {+ return /* @__PURE__ */ (0, L.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",+ children: [e ? /* @__PURE__ */ (0, L.jsx)("div", {+ className: "mr-auto min-w-0 text-body-2-regular text-text-secondary",+ children: e+ }) : null, t]});}-function gO(e, t, n, r = null) {- if (!fO(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 mO({- x0: i - o / 2,- y0: a - s / 2,- x1: i + o / 2,- y1: a + s / 2- }, n, r);+function EA({ role: e, children: t }) {+ return /* @__PURE__ */ (0, L.jsx)("p", {+ role: e,+ className: "text-body-2-regular text-text-secondary",+ children: t+ });}-function nae(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 mO(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");+function DA({ children: e }) {+ return /* @__PURE__ */ (0, L.jsx)("p", {+ role: "alert",+ className: "text-body-2-regular text-text-error-primary",+ children: e+ });}-function rae(e, t) {- return fO(t) ? {- left: e.x0 / t.width * 100,- top: e.y0 / t.height * 100,- width: (e.x1 - e.x0) / t.width * 100,- height: (e.y1 - e.y0) / t.height * 100- } : {- left: 0,- top: 0,- width: 0,- height: 0- };+function OA({ children: e }) {+ return /* @__PURE__ */ (0, L.jsx)("p", {+ className: "text-body-medium text-text-primary",+ children: e+ });}-function iae(e, t) {- if (!fO(t)) return {- size: "cover",- position: "50% 50%"- };- let n = Math.max(1, e.x1 - e.x0), r = Math.max(1, e.y1 - e.y0), i = (e, t, n) => t - n > 0 ? e / (t - n) * 100 : 0;- return {- size: `${t.width / n * 100}% ${t.height / r * 100}%`,- position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`- };+function kA({ href: e, children: t }) {+ return /* @__PURE__ */ (0, L.jsx)(oA, {+ href: e,+ target: "_blank",+ rel: "noopener noreferrer",+ size: "small",+ trailingIcon: LS,+ children: t+ });}-function aae(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}%`,- top: `${-e.y0 / r * 100}%`,- width: `${t.width / n * 100}%`,- height: `${t.height / r * 100}%`- };+function AA({ children: e }) {+ return /* @__PURE__ */ (0, L.jsx)("dl", {+ className: "flex flex-col",+ children: e+ });}-function _O(e, t, n) {- return t > 0 ? e * n / t : 0;+function jA({ term: e, children: t }) {+ return /* @__PURE__ */ (0, L.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, L.jsx)("dt", {+ className: "flex shrink-0 items-center gap-2 text-body-regular text-text-secondary",+ children: e+ }), /* @__PURE__ */ (0, L.jsx)("dd", {+ className: "flex min-w-0 flex-wrap items-center justify-end gap-2 text-right text-body-regular break-all text-text-primary",+ children: t+ })]+ });}-//#endregion-//#region src/react/components/modal-frame.tsx-var oae = {- "avatar-picker": "max-w-avatar-picker",- "cover-crop": "max-w-cover-crop",- form: "max-w-form-modal"-};-function vO({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {- return /* @__PURE__ */ (0, L.jsx)(TD, {- isOpen: e,- onOpenChange: t,- isDismissable: !0,- className: "fixed inset-0 z-dialog flex items-center justify-center bg-scrim p-4",- children: /* @__PURE__ */ (0, L.jsx)(Xre, {- className: `flex max-h-full w-full ${oae[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,- children: /* @__PURE__ */ (0, L.jsx)(xD, {- "aria-label": r,- className: "flex min-h-0 flex-col outline-none",- children: i+function MA({ summary: e, defaultOpen: t = !1, children: n }) {+ let r = (0, I.useId)(), i = (0, I.useRef)(null), a = (0, I.useRef)(null), o = (0, I.useRef)(!1), [s, c] = (0, I.useState)(t);+ return /* @__PURE__ */ (0, L.jsxs)("details", {+ ref: (e) => {+ i.current = e, e && t && !o.current && (o.current = !0, e.open = !0);+ },+ children: [/* @__PURE__ */ (0, L.jsxs)("summary", {+ "aria-expanded": s,+ "aria-controls": r,+ onClick: (e) => {+ e.preventDefault(), !(!i.current || !a.current) && (O(i.current, a.current, !s), c(!s));+ },+ className: "flex w-fit 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: [/* @__PURE__ */ (0, L.jsx)(DS, {+ "aria-hidden": !0,+ className: s ? "size-4 shrink-0 rotate-90 transition-transform" : "size-4 shrink-0 transition-transform"+ }), e]+ }), /* @__PURE__ */ (0, L.jsx)("div", {+ ref: a,+ id: r,+ inert: !s,+ children: /* @__PURE__ */ (0, L.jsx)("div", {+ className: "flex flex-col gap-2 pt-3",+ children: n})- })+ })]});}-function yO({ children: e }) {- return /* @__PURE__ */ (0, L.jsx)("span", {+function NA({ name: e }) {+ return /* @__PURE__ */ (0, L.jsx)("svg", {"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",- children: e+ viewBox: "0 0 24 24",+ fill: "none",+ className: "size-4 shrink-0 stroke-current stroke-2",+ children: /* @__PURE__ */ (0, L.jsx)("use", { href: `#i-${e}` })});}-//#endregion-//#region src/react/components/overlay-host.ts-function sae(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 cae(e) {- let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");- return sae(n ?? t.body);+function PA({ mark: e }) {+ return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, L.jsx)("img", {+ src: e,+ alt: "",+ width: 16,+ height: 16,+ className: "size-4 shrink-0"+ }) : /* @__PURE__ */ (0, L.jsx)(NA, { name: e });}//#endregion-//#region src/react/components/overlay-scrollbar.ts-function bO() {- let e = (0, I.useRef)(null);+//#region src/react/library-processing/use-library-processing.ts+function FA({ toast: e, mode: t, monitor: n }) {+ let r = t === "notice" || !!n, i = Ft({+ queryKey: TT,+ queryFn: ({ signal: e }) => ET(e),+ refetchInterval: (e) => jT(e.state.data, r)+ }), [a, o] = (0, I.useState)(null), s = (0, I.useRef)(void 0), c = i.data;return (0, I.useEffect)(() => {- h(e.current);- }), e;+ if (!c) return;+ let n = s.current;+ s.current = c.status;+ let r = n === "running" && c.status !== "running";+ r && o(c), (r || t === "notice") && zT(c, e, r);+ }, [+ c,+ t,+ e+ ]), {+ job: i,+ settled: a,+ forget: () => o(null)+ };}//#endregion-//#region src/react/crop/crop-frame.tsx-var lae = .02, xO = 1.08;-function SO({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {- let s = (0, I.useRef)(null), c = (0, I.useRef)(null), [l, u] = (0, I.useState)(!1);- (0, I.useEffect)(() => {- u(!1);- }, [e]);- let d = (0, I.useCallback)((e, t) => {- let n = s.current;- return !n || !r ? {- dx: 0,- dy: 0- } : {- dx: _O(e, n.clientWidth, r.width),- dy: _O(t, n.clientHeight, r.height)- };- }, [r]);- function f(e) {- return (t) => {- !n || !r || t.button !== 0 || (t.preventDefault(), t.stopPropagation(), t.currentTarget.setPointerCapture(t.pointerId), c.current = {- mode: e,- x: t.clientX,- y: t.clientY,- box: n- });- };- }- function p(e) {- let n = c.current, a = s.current;- if (!n || !a || !r) return;- let o = d(e.clientX - n.x, e.clientY - n.y);- if (n.mode === "move") {- i(hO(n.box, o.dx, o.dy, r));- return;- }- i(nae(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 m(e) {- c.current && (c.current = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId));- }- function h(e) {- if (!n || !r) return;- let a = Math.max(1, (n.x1 - n.x0) * lae), o = {- ArrowLeft: [-a, 0],- ArrowRight: [a, 0],- ArrowUp: [0, -a],- ArrowDown: [0, a]- };- if (o[e.key]) {- e.preventDefault(), i(hO(n, o[e.key][0], o[e.key][1], r));- return;- }- (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(gO(n, e.key === "-" ? 1 / xO : xO, r, t)));+//#region src/react/library-processing/library-processing-card.tsx+var IA = [+ {+ label: "扫描并补全资料",+ icon: PS,+ command: {}+ },+ {+ label: "只扫描",+ icon: VS,+ command: { stage: "scan" }+ },+ {+ label: "只采集",+ icon: BS,+ command: { stage: "collect" }}- let g = n && r ? rae(mO(n, r, t), r) : null, _ = g ? {- "--crop-l": `${g.left}%`,- "--crop-t": `${g.top}%`,- "--crop-w": `${g.width}%`,- "--crop-h": `${g.height}%`,- "--crop-r": `${g.left + g.width}%`,- "--crop-b": `${g.top + g.height}%`- } : void 0;+], LA = XC(cA, lA, "text-body-2-medium"), RA = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", zA = (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(",")}。`;+}, BA = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + zA(e);+function VA({ busy: e, onRun: t }) {+ let n = (0, I.useRef)(null), [r, i] = (0, I.useState)(!1), a = (n) => {+ e || (i(!1), t(n));+ };+ return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("span", {+ "data-button-group": !0,+ "data-split-button": !0,+ "data-variant": "primary",+ children: [/* @__PURE__ */ (0, L.jsx)(G, {+ leadingIcon: PS,+ onClick: () => a({}),+ ...Y(e),+ children: "扫描并补全资料"+ }), /* @__PURE__ */ (0, L.jsx)(G, {+ ref: n,+ iconOnly: !0,+ leadingIcon: TS,+ "aria-label": "更多扫描与采集方式",+ "aria-haspopup": "dialog",+ "aria-expanded": r,+ ...Y(e),+ onClick: () => {+ e || i(!0);+ }+ })]+ }), /* @__PURE__ */ (0, L.jsx)(ck, {+ triggerRef: n,+ isOpen: r,+ onOpenChange: i,+ placement: "bottom end",+ offset: 4,+ className: sA,+ children: /* @__PURE__ */ (0, L.jsx)(yk, {+ "aria-label": "更多扫描与采集方式",+ className: "flex w-52 flex-col gap-1 outline-none",+ children: IA.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, L.jsxs)("button", {+ type: "button",+ className: LA,+ onClick: () => a(n),+ children: [/* @__PURE__ */ (0, L.jsx)(t, {+ "aria-hidden": !0,+ className: "size-4 shrink-0"+ }), e]+ }, e))+ })+ })] });+}+function HA({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {+ let a = IT(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = PT(e.notes || {}), c = hA();return /* @__PURE__ */ (0, L.jsxs)("div", {- className: "relative inline-block max-w-full select-none",- style: _,+ "aria-live": "polite",+ className: "flex flex-col gap-4 empty:hidden",children: [- /* @__PURE__ */ (0, L.jsx)("img", {- ref: s,- src: e,- alt: "",- draggable: !1,- onLoad: (e) => {- let t = e.currentTarget;- fO({- width: t.naturalWidth,- height: t.naturalHeight- }) && a({- width: t.naturalWidth,- height: t.naturalHeight- });- },- onError: () => u(!0),- className: "block max-h-crop-frame max-w-full object-contain"- }),- l || !g ? null : /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [- /* @__PURE__ */ (0, L.jsx)("div", {- "aria-hidden": !0,- className: "pointer-events-none absolute inset-x-0 top-0 h-(--crop-t) bg-scrim"- }),- /* @__PURE__ */ (0, L.jsx)("div", {- "aria-hidden": !0,- className: "pointer-events-none absolute inset-x-0 bottom-0 top-(--crop-b) bg-scrim"- }),- /* @__PURE__ */ (0, L.jsx)("div", {- "aria-hidden": !0,- className: "pointer-events-none absolute left-0 top-(--crop-t) h-(--crop-h) w-(--crop-l) bg-scrim"- }),- /* @__PURE__ */ (0, L.jsx)("div", {- "aria-hidden": !0,- className: "pointer-events-none absolute right-0 left-(--crop-r) top-(--crop-t) h-(--crop-h) bg-scrim"- }),- /* @__PURE__ */ (0, L.jsx)("div", {- role: "group",- tabIndex: 0,- "aria-label": o,- "data-crop-box": !0,- onPointerDown: f("move"),- onPointerMove: p,- onPointerUp: m,- onPointerCancel: m,- onKeyDown: h,- onWheel: (e) => {- !n || !r || i(gO(n, e.deltaY > 0 ? xO : 1 / xO, 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, L.jsx)("span", {- "data-crop-handle": !0,- onPointerDown: f("resize"),- onPointerMove: p,- onPointerUp: m,- onPointerCancel: m,- className: "absolute -right-1.5 -bottom-1.5 size-3 cursor-nwse-resize touch-none rounded-xs border border-separator-border bg-background-full"+ e.status === "running" && e.stalled ? /* @__PURE__ */ (0, L.jsx)(J, {+ tone: "warning",+ title: "处理较慢",+ children: RA+ }) : null,+ t || e.status === "failed" ? /* @__PURE__ */ (0, L.jsx)(J, {+ tone: "error",+ action: o ? /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "primary",+ size: "small",+ onClick: r,+ children: "重试未完成项"+ }) : null,+ extra: a ? /* @__PURE__ */ (0, L.jsx)("div", {+ className: "mt-1.5 border-t border-current/20 pt-1.5",+ children: /* @__PURE__ */ (0, L.jsxs)(MA, {+ summary: a.label,+ children: [/* @__PURE__ */ (0, L.jsx)("div", {+ className: "relative",+ children: /* @__PURE__ */ (0, L.jsx)("ul", {+ ref: c,+ className: "max-h-96 overflow-y-auto pr-3",+ children: a.items.map((e) => /* @__PURE__ */ (0, L.jsxs)("li", {+ className: "flex flex-col gap-0.5 border-b border-current/15 py-2 first:pt-1 last:border-b-0 last:pb-1",+ children: [+ e.href ? /* @__PURE__ */ (0, L.jsx)("a", {+ href: e.href,+ className: "text-body-2-medium underline-offset-4 hover:underline",+ children: e.label+ }) : /* @__PURE__ */ (0, L.jsx)("span", {+ className: "text-body-2-medium",+ children: e.label+ }),+ /* @__PURE__ */ (0, L.jsx)("span", {+ className: "text-caption-1-regular",+ children: e.note+ }),+ e.hint ? /* @__PURE__ */ (0, L.jsx)("code", {+ className: "text-caption-1-regular break-all",+ children: e.hint+ }) : null+ ]+ }, e.key))+ })+ }), a.log ? /* @__PURE__ */ (0, L.jsx)("div", {+ className: "mt-2 border-t border-current/20 pt-2 text-text-secondary",+ children: /* @__PURE__ */ (0, L.jsx)(vA, {+ path: a.log,+ prefix: "完整记录:",+ className: "text-caption-1-regular",+ onRevealed: i+ })+ }) : null]})- })- ] }),- l ? /* @__PURE__ */ (0, L.jsx)("p", {- className: "p-4 text-body-2-regular text-text-secondary",- children: "这张图读不出来,换一张再框。"+ }) : null,+ children: t || e.error || "处理未完成,请重试"+ }) : null,+ n?.status === "complete" ? /* @__PURE__ */ (0, L.jsx)(J, {+ tone: "success",+ title: "处理完成",+ children: BA(n)+ }) : null,+ e.status !== "running" && s ? /* @__PURE__ */ (0, L.jsx)(J, {+ tone: "neutral",+ extra: e.issues_log ? /* @__PURE__ */ (0, L.jsx)("div", {+ className: "mt-1.5 border-t border-current/20 pt-1.5 text-text-secondary",+ children: /* @__PURE__ */ (0, L.jsx)(vA, {+ path: e.issues_log,+ prefix: "完整记录:",+ className: "text-caption-1-regular",+ onRevealed: i+ })+ }) : null,+ children: s}) : null]});}-//#endregion-//#region src/react/cover-crop/cover-crop.ts-var uae = "/api/cover-crop", dae = (e, t) => q(uae, {- code: e,- box: t-}), CO = .704;-function wO({ className: e }) {- return /* @__PURE__ */ (0, L.jsx)("svg", {- "aria-hidden": !0,- viewBox: "0 0 24 24",- fill: "none",- stroke: "currentColor",- strokeWidth: 2,- strokeLinecap: "round",- strokeLinejoin: "round",- className: e,- children: /* @__PURE__ */ (0, L.jsx)("use", { href: "#i-crop" })- });-}-function fae({ code: e, coverUrl: t, box: n, onSaved: r }) {- let [i, a] = (0, I.useState)(!1), o = (0, I.useRef)(null);- return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("button", {- ref: o,- type: "button",- "aria-haspopup": "dialog",- "data-cover-crop": !0,- "aria-label": `裁剪 ${e} 的封面`,- 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, L.jsx)(wO, { className: "size-3.75" })- }), /* @__PURE__ */ (0, L.jsx)(ry, {- getContainer: () => cae(o.current),- children: /* @__PURE__ */ (0, L.jsx)(vO, {- isOpen: i,- onOpenChange: a,- width: "cover-crop",- label: "裁剪封面",- children: /* @__PURE__ */ (0, L.jsx)(pae, {- code: e,- coverUrl: t,- box: n,- onSaved: r,- close: () => a(!1)- })- })- })] });-}-function pae({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {- let [a, o] = (0, I.useState)(null), [s, c] = (0, I.useState)(null), [l, u] = (0, I.useState)(!0), d = bO(), f = Pt({- mutationFn: (t) => dae(e, t),- onSuccess: () => {- i(), r();+function UA(e) {+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = FA(e), o = It({+ mutationFn: (e) => q(wT, e),+ onSuccess: (e) => {+ a(), X.setQueryData(TT, e), X.invalidateQueries({ queryKey: TT });}});- function p(e) {- o(e);- let t = n && n.px?.[0] === e.width && n.px?.[1] === e.height ? {- x0: n.x0,- y0: n.y0,- x1: n.x1,- y1: n.y1- } : eae(e, CO);- c(mO(t, e, null));- }- let m = f.isPending;- return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [- /* @__PURE__ */ (0, L.jsxs)("div", {- className: "flex shrink-0 items-start gap-4 p-5",- children: [- /* @__PURE__ */ (0, L.jsx)(yO, { children: /* @__PURE__ */ (0, L.jsx)(wO, { className: "size-6" }) }),- /* @__PURE__ */ (0, L.jsxs)("div", {- className: "flex min-w-0 flex-1 flex-col gap-2",- children: [- /* @__PURE__ */ (0, L.jsx)(GT, {- slot: "title",- className: "text-title-3-semibold text-text-primary",- children: "裁剪封面"- }),- /* @__PURE__ */ (0, L.jsxs)("p", {- className: "text-body-2-regular text-text-secondary",- children: [e, ":框出正封那一块,封面原图不动。拖动方框移动,滚轮或角上那枚方块改大小。"]- }),- f.error ? /* @__PURE__ */ (0, L.jsx)(J, {- tone: "error",- children: K(f.error)- }) : null- ]+ (0, I.useEffect)(() => {+ i && n?.();+ }, [i, n]);+ let s = r.data ?? { status: "idle" }, c = o.error ? K(o.error) : r.isError ? r.data ? AT : K(r.error) : "", l = o.isPending || s.status === "running", u = FT(s), d = (e) => {+ l || (o.reset(), o.mutate(e));+ };+ return /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "flex flex-col gap-4",+ children: [/* @__PURE__ */ (0, L.jsx)(mA, {+ layout: "split",+ label: "扫描与采集",+ footer: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [+ /* @__PURE__ */ (0, L.jsx)(oA, {+ href: "/scraping",+ size: "small",+ trailingIcon: ES,+ children: "来源和凭证"}),- /* @__PURE__ */ (0, L.jsx)(cO, {- icon: uS,+ s.candidates ? /* @__PURE__ */ (0, L.jsx)(oA, {+ href: "/review",size: "small",- "aria-label": "关闭",- onClick: i+ trailingIcon: ES,+ children: "复核资料"+ }) : null,+ /* @__PURE__ */ (0, L.jsx)(VA, {+ busy: l,+ onRun: d})- ]- }),- /* @__PURE__ */ (0, L.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, L.jsx)(SO, {- src: t,- aspect: l ? CO : null,- box: s,- size: a,- label: `${e} 的正封取景框`,- onSize: (e) => {- fO(e) && p(e);- },- onBox: c+ ] }),+ children: /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "flex flex-col gap-2",+ children: [+ /* @__PURE__ */ (0, L.jsx)(pA, { children: "扫描与采集" }),+ /* @__PURE__ */ (0, L.jsx)("p", {+ className: "text-body-2-regular text-text-secondary",+ children: aoe+ }),+ s.status === "running" ? /* @__PURE__ */ (0, L.jsx)("div", {+ className: "flex flex-col gap-1.5",+ children: s.total ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(uw, {+ label: u,+ value: s.checked || 0,+ max: s.total+ }), /* @__PURE__ */ (0, L.jsxs)("p", {+ className: "text-caption-1-regular text-text-secondary",+ children: [+ u,+ " · ",+ s.checked || 0,+ " / ",+ s.total,+ " 个视频"+ ]+ })] }) : /* @__PURE__ */ (0, L.jsx)(sw, { label: u })+ }) : null+ ]})- }),- /* @__PURE__ */ (0, L.jsxs)("div", {- className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",- children: [/* @__PURE__ */ (0, L.jsx)(lO, {- isSelected: l,- onChange: (e) => {- u(e), e && s && a && c(mO(s, a, CO));- },- children: /* @__PURE__ */ (0, L.jsx)("span", {- className: "text-body-2-regular text-text-secondary",- children: "锁定正封比例"- })- }), /* @__PURE__ */ (0, L.jsxs)("div", {- className: "flex flex-1 flex-wrap items-center justify-end gap-3",- children: [/* @__PURE__ */ (0, L.jsx)(G, {- variant: "secondary",- ...Y(m),- onClick: () => {- m || f.mutate(null);- },- children: "恢复默认"- }), /* @__PURE__ */ (0, L.jsx)(G, {- disabled: !s || !a,- ...Y(m),- onClick: () => {- s && !m && f.mutate(s);- },- children: "用这一块"- })]- })]- })- ] });+ }), /* @__PURE__ */ (0, L.jsx)(HA, {+ state: s,+ problem: c,+ settled: i,+ onRetry: () => {+ !s.job_id || !s.retryable_asset_ids?.length || d({+ job_id: s.job_id,+ retry: s.retryable_asset_ids+ });+ },+ toast: t+ })]+ });}//#endregion-//#region src/react/media-sources.ts-var mae = "/api/sources", TO = ["media-sources"], EO = (e) => Tw(mae, e);-async function DO(e) {- await X.fetchQuery({- queryKey: TO,- queryFn: () => EO(e)+//#region src/react/boardui/components/foundations/icons/chevrons.tsx+function WA(e) {+ return /* @__PURE__ */ (0, L.jsx)("svg", {+ viewBox: "0 0 16 16",+ fill: "none",+ "aria-hidden": !0,+ ...e,+ children: /* @__PURE__ */ (0, L.jsx)("path", {+ d: "M4 7L7.29289 10.2929C7.68342 10.6834 8.31658 10.6834 8.70711 10.2929L12 7",+ stroke: "currentColor",+ strokeWidth: "2",+ strokeLinecap: "round"+ })});}-var hae = [- "local",- "115",- "pikpak"-], gae = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), _ae = "/api/duplicates?limit=120", OO = ["duplicates"], vae = "/api/batch", kO = (e) => Tw(_ae, e);-async function yae(e) {- await Promise.all([X.fetchQuery({- queryKey: OO,- queryFn: () => kO(e)- }), DO(e)]);-}-var AO = {- largest: "最大的一个",- longest: "最长的一个",- 115: "115(没有则留最大)",- pikpak: "PikPak(没有则留最大)",- all: "零个文件"-}, bae = (e, t) => t.filter((t) => e.some((e) => e.location === t)), jO = (e, t) => bae(e, t).filter((t) => e.some((e) => e.location !== t)), xae = (e, t) => t.filter((t) => e.some((e) => jO(e.files, [t]).length));-function Sae(e, t) {- let n = [];- for (let r of e) {- if (t === "all") {- for (let e of r.files) n.push(e.id);- continue;- }- let e;- if (t === "largest" || t === "longest") {- let n = t === "longest" ? "is_longest" : "is_largest";- e = r.files.find((e) => e[n]) ?? r.files[0];- } else {- let n = r.files.filter((e) => e.location === t), i = n.length ? n : r.files;- e = i.reduce((e, t) => (t.size || 0) > (e.size || 0) ? t : e, i[0]);- }- for (let t of r.files) t.id !== e?.id && n.push(t.id);- }- return n;+function GA(e) {+ return /* @__PURE__ */ (0, L.jsx)("svg", {+ viewBox: "0 0 24 24",+ fill: "none",+ "aria-hidden": !0,+ ...e,+ children: /* @__PURE__ */ (0, L.jsx)("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"+ })+ });}-function Cae(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);+//#endregion+//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts+function KA(e, t, n) {+ (0, I.useEffect)(() => {+ if (!e) return;+ let r = (e) => {+ let r = e.target;+ n.some((e) => e.current?.contains(r)) || t();+ };+ return document.addEventListener("pointerdown", r, !0), () => document.removeEventListener("pointerdown", r, !0);+ }, [+ e,+ t,+ n+ ]);}-async function MO(e, t) {- for (let n = 0; n < e.length; n += 200) await q(vae, {- ids: e.slice(n, n + 200),- operation: t- });+function qA(e, t) {+ let n = (0, I.useRef)(!1);+ return (0, I.useEffect)(() => {+ if (!e) return;+ let r = (e) => {+ t.current?.contains(e.target) && (n.current = !0, setTimeout(() => {+ n.current = !1;+ }, 400));+ };+ return document.addEventListener("pointerdown", r, !0), () => document.removeEventListener("pointerdown", r, !0);+ }, [e, t]), (e) => e && n.current ? (n.current = !1, !1) : !0;}//#endregion-//#region src/react/library-processing/library-processing.ts-var NO = "/api/library-processing", PO = ["library-processing"], FO = (e) => Tw(NO, e);-async function IO(e) {- await X.fetchQuery({- queryKey: PO,- queryFn: () => FO(e)+//#region src/react/boardui/components/base/select/select.tsx+var JA = (0, I.createContext)("md");+function YA({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {+ let l = (0, I.useRef)(null), u = (0, I.useRef)(null), [d, f] = (0, I.useState)(!1);+ KA(d, () => f(!1), [l, u]);+ let p = qA(d, l);+ return /* @__PURE__ */ (0, L.jsx)(pae, {+ ref: s,+ ...c,+ isOpen: d,+ onOpenChange: (e) => p(e) && f(e),+ className: XC("group flex flex-col", e),+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)(VD, {+ ref: l,+ className: XC("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, L.jsx)(gae, {+ className: XC("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),+ children: o+ }), /* @__PURE__ */ (0, L.jsx)(WA, { className: XC("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]+ }), /* @__PURE__ */ (0, L.jsx)(ck, {+ ref: u,+ isNonModal: !0,+ offset: 4,+ className: XC(roe, sA, "p-2", n),+ children: /* @__PURE__ */ (0, L.jsx)(Pie, {+ items: a,+ className: XC(ioe, "max-h-[240px] overflow-auto"),+ children: /* @__PURE__ */ (0, L.jsx)(JA.Provider, {+ value: r,+ children: i+ })+ })+ })] })});}-var wae = 2e3, Tae = 1e4, LO = "连接中断,正在重新读取处理进度";-function Eae(e, t) {- return e?.status === "running" ? wae : t ? Tae : !1;-}-var Dae = {- reading_local: "读取本地资料",- querying_metadata: "查询外部资料",- fetching_cover: "采集缺失封面",- writing_candidates: "保存资料候选"-}, RO = {- querying_metadata: "没有资料",- fetching_cover: "没有封面"-};-function Oae(e) {- let t = Object.entries(e).filter(([e, t]) => RO[e] && t > 0).map(([e, t]) => `${RO[e]} ${t} 部`);- return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";-}-function zO(e) {- let t = Dae[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";- return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;-}-function kae(e) {- let t = e.issue_preview || [];- return t.length ? {- label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,- items: t.map((e, t) => ({- key: `${e.asset_id ?? "source"}-${t}`,- label: e.title || (e.asset_id ? `视频 ${e.asset_id}` : "媒体来源"),- href: e.asset_id ? `/item/${e.asset_id}` : "",- note: e.message,- hint: e.path || ""- })),- log: e.issues_log || ""- } : null;-}-var BO = "peach.library-processing.announced", Aae = 120;-function jae(e, t, n) {- if (e.status !== "complete") return;- let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < Aae;- if (!(!n && !r)) {- try {- if (e.job_id && localStorage.getItem(BO) === e.job_id) return;- e.job_id && localStorage.setItem(BO, e.job_id);- } catch {}- t(`扫描与资料采集已完成:识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条`);- }+function XA({ className: e, children: t, ...n }) {+ let r = (0, I.useContext)(JA);+ return /* @__PURE__ */ (0, L.jsx)(Lie, {+ ...n,+ className: (t) => XC(cA, 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+ });}//#endregion-//#region src/react/media-repair/media-repair.ts-var VO = "/api/media-repair", HO = ["media-repair"], UO = ["media-repair", "libraries"], Mae = {- status: "idle",- library: "",- stage: "",- checked: 0,- total: 0,- found: 0,- repaired: 0,- failed: 0,- missing_tool: 0,- skipped: 0,- message: ""-}, WO = (e) => Tw(VO, e), GO = async (e) => (await Tw("/api/libraries", e)).libraries || [];-async function Nae(e) {- await Promise.all([X.fetchQuery({- queryKey: HO,- queryFn: () => WO(e)- }), X.fetchQuery({- queryKey: UO,- queryFn: () => GO(e)- })]);-}-var KO = (e) => Number(e).toLocaleString();-function qO(e) {- if (e.status === "running") {- let t = e.total ? `${KO(e.checked)} / ${KO(e.total)}` : "准备中";- return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;- }- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${KO(e.repaired)} 部,${KO(e.failed)} 部修不了` : `修好 ${KO(e.repaired)} 部` : "";-}-var Pae = (e) => `${KO(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, Fae = "/api/quality-goals?limit=200", JO = ["quality-goals"], YO = (e) => Tw(Fae, e);-async function XO(e) {- await X.fetchQuery({- queryKey: JO,- queryFn: () => YO(e)+//#region src/react/background-job.ts+var ZA = 2e3, QA = (e) => e, $A = (e, t) => t;+function ej(e) {+ let { queryKey: t, jobOf: n = QA, withJob: r = $A, idlePollMs: i } = e, [a, o] = (0, I.useState)(!1), [s, c] = (0, I.useState)(null), l = (0, I.useRef)(e);+ (0, I.useEffect)(() => {+ l.current = e;});-}-var ZO = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;-function QO(e, t, n = 1) {- let r = (e, t) => Array.from({ length: t - e + 1 }, (t, n) => e + n);- if (n * 2 + 5 >= t) return r(1, t);- let i = Math.max(e - n, 1), a = Math.min(e + n, t), o = i > 2, s = a < t - 2;- return !o && s ? [- ...r(1, 3 + 2 * n),- "…",- t- ] : o && !s ? [- 1,- "…",- ...r(t - (2 + 2 * n), t)- ] : [- 1,- "…",- ...r(i, a),- "…",- t- ];-}-function $O(e, t) {- return Math.max(1, Math.ceil(e / t));-}-function ek(e, t) {- return Math.min(Math.max(1, Math.floor(e) || 1), t);-}-//#endregion-//#region src/selection.ts-function Iae(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;-}-//#endregion-//#region src/react/time.ts-function tk(e) {- if (!e) return "";- let t = /[Zz]|[+-]\d\d:?\d\d$/.test(e) ? e : `${e}Z`, n = new Date(t);- if (Number.isNaN(n.getTime())) return String(e).replace("T", " ").slice(0, 16);- let r = (e) => String(e).padStart(2, "0");- return `${n.getFullYear()}-${r(n.getMonth() + 1)}-${r(n.getDate())} ${r(n.getHours())}:${r(n.getMinutes())}`;-}-//#endregion-//#region src/react/review/review.ts-var Lae = "/api/review", Rae = "/api/review/decision", zae = "/api/review/genre", nk = ["review"], rk = {- metadata_fields: "元数据字段",- creator_tags: "创作者标签",- studio_logos: "厂牌 Logo",- performer_avatars: "女优头像",- western_identity: "西方身份回配",- code_creators: "番号目录存疑",- fc2_markings: "FC2 评论标记",- fc2_similarity: "FC2 跨号相似",- video_endcards: "片尾/出处证据"-}, Bae = Object.keys(rk), Vae = "metadata_fields", ik = (e) => typeof e == "string" && Object.hasOwn(rk, e), Hae = {- creator_tags: "creator",- western_identity: "creator"-};-function ak(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 ok(e, t) {- let n = /* @__PURE__ */ new Map();- for (let r of e) {- let e, i;- if (t === "field") e = r.field || "__unspecified_field", i = r.field_label || r.field || "未标注字段";- else if (t === "source") {- let t = [...new Set((r.candidates?.map((e) => e.source || "") || [r.source || ""]).filter(Boolean))].sort();- e = JSON.stringify(t), i = t.join(" / ") || "未标注来源";- } else e = r.candidates ? r.candidates.length === 1 ? "single" : "multiple" : "pending", i = e === "single" ? "单一候选" : e === "multiple" ? "需选择来源" : "待复核";- n.has(e) || n.set(e, {- key: e,- title: i,- rows: []- }), n.get(e).rows.push(r);- }- return [...n.values()];-}-function sk(e, t, n) {- return n && ok(e, t).find((e) => e.key === n)?.rows || e;-}-function ck(e, t) {- let n = $O(e.length, 20), r = ek(t, n);- return {- page: r,- pages: n,- rows: e.slice((r - 1) * 20, r * 20)- };-}-function lk(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 uk(e, t, n, r, i, a) {- return Iae(e, t, n, r, i, a);-}-function dk(e, t) {- return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";-}-function fk(e, t) {- return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);-}-var pk = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";-function mk(e, t) {- let n = fk(e, t), r = pk(e, t);- return r ? `${n} · ${r}` : n;-}-var hk = (e) => e.reason || e.evidence || e.note || e.decision_note || "", gk = (e) => String(e.tags || "").split("|").filter(Boolean), _k = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];-function Uae(e) {- let t = e.candidates || [];- return {- candidateKey: t.length === 1 ? t[0].candidate_key : "",- assets: (e.preview_assets || []).map((e) => e.id)- };-}-function vk(e, t, n, r) {- let i = !!t.asset_path && t.asset_mutation_revision != null;- return {- category: e,- item_key: t.item_key,- status: n,- candidate_key: r.candidateKey,- creator: t.creator,- tags: t.tags,- studio: t.studio,- entity_id: t.entity_id,- avatar_url: t.avatar_url,- selected_ids: r.assets,- ...i ? { expected_revision: t.asset_mutation_revision } : {}+ let u = Ft({+ queryKey: t,+ queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),+ refetchInterval: (e) => {+ let t = e.state.data;+ return t !== void 0 && n(t)?.status === "running" ? ZA : i ?? !1;+ }+ }), d = It({+ mutationFn: (e) => l.current.start(e),+ onSuccess: (e) => {+ o(!0), c(null), l.current.onStarted?.(e), X.setQueryData(t, (t) => r(t, e)), X.invalidateQueries({+ queryKey: t,+ exact: !0+ });+ },+ onError: (e) => l.current.onError?.(e)+ }), f = u.data === void 0 ? void 0 : n(u.data), p = f?.status === "running";+ return (0, I.useEffect)(() => {+ if (f) {+ if (f.status === "running") {+ a || o(!0);+ return;+ }+ a && (o(!1), c(f), l.current.onFinish?.(f));+ }+ }, [f, a]), {+ query: u,+ job: f,+ running: p,+ outcome: s,+ start: d,+ dismiss: () => c(null)};}-var Wae = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", yk = (e) => Tw(Lae, e), bk = (e) => q(Rae, e), Gae = (e, t) => q(zae, {- genre: e,- tag: t-});-async function Kae(e) {- await X.fetchQuery({- queryKey: nk,- queryFn: () => yk(e)- });-}-function xk(e, t) {- let n = new Set(t);- n.size && X.setQueryData(nk, (t) => {- if (!t) return t;- let r = t.sections[e] || [], i = r.filter((e) => !n.has(String(e.item_key)));- return i.length === r.length ? t : {- ...t,- sections: {- ...t.sections,- [e]: i- },- counts: {- ...t.counts,- [e]: Math.max(0, (t.counts[e] ?? r.length) - (r.length - i.length))- }- };+//#endregion+//#region src/react/media-repair/media-repair-card.tsx+var tj = (e) => m[e] || e, nj = (e) => X.setQueryData(VT, e);+function rj() {+ let e = Ft({+ queryKey: VT,+ queryFn: ({ signal: e }) => WT(e),+ refetchInterval: (e) => e.state.data?.status === "running" && ZA+ }), t = Ft({+ queryKey: HT,+ queryFn: ({ signal: e }) => GT(e)+ }), [n, r] = (0, I.useState)(""), i = dw(), a = e.data ?? UT, o = t.data ?? [], s = a.status === "running", c = o.find((e) => e.id === (s ? a.library : n)) ?? o.find((e) => e.id === a.library) ?? o[0], l = () => {+ c && g({+ title: `修复媒体库「${c.name}」`,+ body: "缺时间戳表的片子另存一份修好的头,原文件不动;缺索引的片子重建后替换原文件,坏原件改名成同目录的隐藏文件(.文件名.peach-original)留着。" + (c.metered ? "这个库在计费来源上,每修一部都要把片子完整拉一遍。" : ""),+ confirmLabel: "修复媒体库",+ onConfirm: async () => nj(await q(BT, {+ library: c.id,+ restart: !0+ }))+ });+ }, u = () => void i.run("stop", (e) => q(BT, { stop: !0 }, "POST", e), nj), d = JT(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");+ return /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "flex flex-col gap-4",+ children: [/* @__PURE__ */ (0, L.jsx)(mA, {+ layout: "split",+ label: "媒体修复",+ footer: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(YA, {+ "aria-label": "媒体库",+ className: "w-48",+ selectedKey: c?.id ?? null,+ isDisabled: s || !o.length,+ onSelectionChange: (e) => {+ e !== null && r(String(e));+ },+ children: o.map((e) => /* @__PURE__ */ (0, L.jsxs)(XA, {+ id: e.id,+ textValue: e.name,+ children: [/* @__PURE__ */ (0, L.jsx)(PA, { mark: tj(e.icon) }), e.name]+ }, e.id))+ }), s ? /* @__PURE__ */ (0, L.jsx)(G, {+ onClick: u,+ ...Y(i.busy === "stop"),+ children: "停止"+ }) : /* @__PURE__ */ (0, L.jsx)(G, {+ onClick: l,+ disabled: !c,+ children: "开始修复"+ })] }),+ children: /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "flex flex-col gap-2",+ children: [+ /* @__PURE__ */ (0, L.jsx)(pA, { children: "媒体修复" }),+ /* @__PURE__ */ (0, L.jsx)("p", {+ className: "text-body-2-regular text-text-secondary",+ children: ooe+ }),+ s && a.total ? /* @__PURE__ */ (0, L.jsx)(uw, {+ label: "修复进度",+ value: a.checked,+ max: a.total+ }) : null,+ d ? /* @__PURE__ */ (0, L.jsx)("p", {+ role: "status",+ className: "text-caption-1-regular text-text-secondary",+ children: d+ }) : null+ ]+ })+ }), /* @__PURE__ */ (0, L.jsxs)("div", {+ "aria-live": "polite",+ className: "flex flex-col gap-4 empty:hidden",+ children: [+ f && !a.repaired && !a.failed ? /* @__PURE__ */ (0, L.jsx)(J, {+ tone: "info",+ title: "没有要修的",+ children: "这个库里的片子都能直接播。"+ }) : null,+ f && a.missing_tool ? /* @__PURE__ */ (0, L.jsx)(J, {+ tone: "warning",+ title: "缺少 untrunc",+ children: YT(a)+ }) : null,+ p ? /* @__PURE__ */ (0, L.jsx)(J, {+ tone: "error",+ children: p+ }) : null+ ]+ })]});}-var qae = () => X.invalidateQueries({- queryKey: nk,- exact: !0-});-function Jae(e, t) {- return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${tk(e.fetched_at)} 的缓存` : e?.error || t;-}//#endregion-//#region src/react/data-cleanup/links.ts-var Yae = "/api/links", Sk = "/api/links/check", Ck = "/api/links/prune", wk = ["links"], Tk = ["links", "check"], Ek = ["links", "prune"], Dk = {- official: "官网/事务所",- social: "社交账号",- catalog: "作品资料站",- source_reference: "资料出处"+//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx+var ij = {+ md: {+ box: "size-4",+ glyph: "size-4",+ label: "text-body-medium",+ gap: "gap-2"+ },+ sm: {+ box: "size-3.5",+ glyph: "size-3.5",+ label: "text-body-2-medium",+ gap: "gap-1.5"+ }};-async function Ok(e) {- let t = await e;- if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");- return t;-}-var kk = (e) => Tw(Yae, e), Ak = (e) => q(Sk, { status_only: !0 }, "POST", e), Xae = ({ retry: e, checkId: t }) => Ok(q(Sk, e ? {- retry: e,- check_id: t-} : { restart: !0 })), jk = (e) => Tw(Ck, e), Zae = (e) => Ok(q(Ck, {- confirm: !0,- check_id: e,- background: !0-})), Mk = (e) => Number(e || 0).toLocaleString(), Qae = (e) => `已删除 ${Mk(e.removed)} 条;${e.marked ? `已隐退女优的 ${Mk(e.marked)} 条留作不可点的记录;` : ""}保留 ${Mk(e.recovered)} 条未确认失效的链接。`;-function $ae(e) {- let t = e.scope === "retry";- return e.total ? `${t ? "已重验" : "已检查"} ${Mk(e.checked)} / ${Mk(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";+function aj({ state: e, size: t = "md" }) {+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = ij[t], c = n || r, l = o && !a;+ return /* @__PURE__ */ (0, L.jsx)("span", {+ "aria-hidden": !0,+ className: XC("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? XC("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : XC("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),+ children: /* @__PURE__ */ (0, L.jsx)("svg", {+ viewBox: "0 0 16 16",+ fill: "none",+ className: s.glyph,+ children: r ? /* @__PURE__ */ (0, L.jsx)("path", {+ d: "M4.5 8H8H11.5",+ stroke: "white",+ strokeWidth: "2",+ strokeLinecap: "round"+ }) : n ? /* @__PURE__ */ (0, L.jsx)("path", {+ d: "M4 7.7002L6.64645 10.3466C6.84171 10.5419 7.15829 10.5419 7.35355 10.3466L12 5.7002",+ stroke: "white",+ strokeWidth: "2",+ strokeLinecap: "round",+ strokeLinejoin: "round",+ pathLength: 1,+ className: "animate-check-draw"+ }) : null+ })+ });}//#endregion-//#region src/react/data-cleanup/organize.ts-var eoe = "/api/organize", toe = "/api/organize/preview", noe = "/api/organize/apply", roe = "/api/organize/rollback", Nk = "/api/settings", Pk = ["organize"], Fk = (e) => Tw(eoe, e);-async function Ik(e) {- await X.fetchQuery({- queryKey: Pk,- queryFn: () => Fk(e)+//#region src/react/boardui/components/base/checkbox/checkbox.tsx+function oj({ className: e, children: t, size: n = "md", ref: r, ...i }) {+ let a = ij[n];+ return /* @__PURE__ */ (0, L.jsx)(Sie, {+ ref: r,+ ...i,+ className: (t) => XC("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, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(aj, {+ state: e,+ size: n+ }), t != null && /* @__PURE__ */ (0, L.jsx)("span", {+ className: XC(a.label, "text-text-primary"),+ children: t+ })] })});}-var Lk = (e) => q(toe, e), Rk = (e) => e.kind === "apply" ? q(noe, {- ...e.request,- confirm: !0-}) : q(roe, { confirm: !0 });-async function zk(e) {- X.setQueryData(Pk, (t) => t && {- ...t,- templates: e+//#endregion+//#region src/react/boardui/components/base/table/table.tsx+function sj({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {+ return /* @__PURE__ */ (0, L.jsx)("div", {+ className: XC("w-full overflow-x-auto", n),+ children: /* @__PURE__ */ (0, L.jsx)(Aae, {+ ref: r,+ ...i,+ className: XC("bui-table", e === "sm" && "bui-table-sm", t)+ })});- try {- await q(Nk, { organizeTemplates: e });- } catch {}-}-var Bk = (e, t) => e && {- ...e,- ...t-}, Vk = /目录模板|分隔符|盘符|`\.`/;-function Hk(e) {- let t = String(e || "");- return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);-}-var Uk = (e) => Number(e || 0).toLocaleString();-function Wk(e) {- let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${Uk(t)}`).join(" · ");- return Number(e.counts?.change || 0) ? `${Uk(e.counts.change)} 个文件会改名或移动,${Uk(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;-}-function Gk(e) {- let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);- return {- text: t ? `已退回 ${Uk(r)} 个文件${n ? `,${Uk(n)} 行未能退回` : ""}。` : `已整理 ${Uk(r)} 个文件${n ? `,${Uk(n)} 行未能处理` : ""}。`,- failed: n,- rollback: t- };}//#endregion-//#region src/react/data-cleanup/resource-sync.ts-var Kk = "/api/resource-sync/scan", qk = "/api/resource-sync/apply", Jk = ["resource-sync", "scan"], Yk = ["resource-sync", "apply"], Xk = (e) => q(Kk, {- background: !0,- status_only: !0-}, "POST", e), Zk = () => q(Kk, {- background: !0,- restart: !0-}), Qk = (e) => Tw(qk, e), $k = (e) => q(qk, {- confirm: !0,- clean_cache: !0,- scan_id: e,- background: !0-}), eA = (e) => (e?.sources ?? []).some((e) => hae.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);-async function tA(e) {- eA(X.getQueryData(TO)) && await Promise.all([X.fetchQuery({- queryKey: Jk,- queryFn: () => Xk(e)- }), X.fetchQuery({- queryKey: Yk,- queryFn: () => Qk(e)- })]);-}-var nA = (e) => !!(e?.missing || e?.empty || e?.cache?.files), rA = {- local: "本地磁盘",- 115: "115",- pikpak: "PikPak"-}, iA = (e) => Number(e || 0).toLocaleString(), aA = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", oA = (e) => `将永久删除文件已不在盘上的 ${iA(e.missing)} 条记录和 ${iA(e.empty)} 个空文件夹,并清理 ${iA(e.cache?.files)} 个闲置缓存。这一步不可撤销。`, ioe = (e) => `将永久删除文件已不在盘上的 ${iA(e.missing)} 条记录(含回收站里的)、${iA(e.empty)} 个空文件夹,并清理 ${iA(e.cache?.files)} 个闲置缓存。来源根目录保留。这一步不可撤销。`, aoe = (e) => e.online ? [- `找不到文件 · 共 ${iA(e.total)} 项`,- e.empty ? `空文件夹 ${iA(e.empty)} 个` : "",- e.unreadable ? `${iA(e.unreadable)} 个目录读取失败,已跳过` : ""-].filter(Boolean).join(" · ") : `馆藏中有 ${iA(e.total)} 项`;-function sA(e) {- let t = e.blocked ?? [], n = Number(e.dir_errors || 0), r = e.cache_blocked ?? [], i = Number(e.purged || 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 ? `${iA(t.length)} 条记录没有删除(${o})` : "",- n ? `${iA(n)} 个文件夹没有删除` : "",- r.length ? `${iA(r.length)} 个缓存没有清理` : ""- ].filter(Boolean).join(",")- };-}-var ooe = (e, t) => {- let { rest: n } = sA(e), r = `已永久删除 ${iA(e.purged)} 条失效记录和 ${iA(e.dirs_removed)} 个空文件夹,清理 ${iA(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。`;- return n ? `${r}${n},重新检查后可再试。` : r;-}, soe = "/api/review?counts=1", cA = ["review", "counts"], coe = "/api/ads?limit=1", lA = ["junk-summary"], uA = "/api/items?state=trash&limit=1", dA = ["trash-summary"], loe = [- ["video", "视频"],- ["image", "图片"],- ["archive", "压缩包"],- ["audio", "音频"],- ["url", "网址"],- ["other", "其它"]-], fA = (e) => Tw(soe, e), pA = (e) => Tw(coe, e), mA = (e) => {- let t = sessionStorage.getItem("peach.library");- return Tw(t ? `${uA}&library=${encodeURIComponent(t)}` : uA, e);-}, hA = (e) => Number(e || 0).toLocaleString();-function uoe(e) {- let t = rk, 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(" · ")- };+//#region src/react/components/row-click.ts+var cj = [+ "a",+ "button",+ "input",+ "select",+ "textarea",+ "label",+ "[role=\"checkbox\"]",+ "[role=\"switch\"]",+ "[role=\"button\"]",+ "[role=\"link\"]",+ "[role=\"menu\"]"+].join(",");+function lj(e, t) {+ let n = e.target;+ if (!(n instanceof Element) || !t.contains(n)) return !1;+ let r = n.closest(cj);+ return !r || !t.contains(r) || r === t;}-function doe(e) {- if (!e) return "";- let t = loe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${hA(e.counts[t])}`);- return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${hA(e.dismissed_total)}`), t.join(" · ");-}-var foe = [- [cA, ({ signal: e }) => fA(e)],- [JO, ({ signal: e }) => YO(e)],- [dA, ({ signal: e }) => mA(e)],- [wk, ({ signal: e }) => kk(e)],- [Tk, ({ signal: e }) => Ak(e)],- [Ek, ({ signal: e }) => jk(e)]-];-async function poe(e) {- let t = location.hash === "#resource-sync", n = foe.map(([n, r]) => {- if (t) return X.fetchQuery({- queryKey: n,- queryFn: () => r({ signal: e })- }).catch(() => void 0);- X.getQueryState(n) && X.prefetchQuery({- queryKey: n,- queryFn: r- });+//#endregion+//#region src/react/components/data-table-frame.tsx+function uj({ children: e, follow: t = !1, onRowClick: n }) {+ return /* @__PURE__ */ (0, L.jsx)("div", {+ "data-board-data-table": !0,+ "data-follow-table": t || void 0,+ onClick: n ? (e) => {+ let t = e.target;+ if (!(t instanceof Element)) return;+ let r = t.closest("[role=\"row\"][data-key]");+ r && lj(e, r) && n(r.dataset.key);+ } : void 0,+ children: e});- await Promise.all([- ...n,- X.fetchQuery({- queryKey: lA,- queryFn: () => pA(e)- }),- X.fetchQuery({- queryKey: OO,- queryFn: () => kO(e)- }),- DO(e).then(() => tA(e)),- IO(e),- Nae(e),- Ik(e)- ]);}//#endregion-//#region src/react/components/stat-card.tsx-var moe = [- "text-chart-6",- "text-chart-5",- "text-chart-7",- "text-chart-8"-], hoe = [- "bg-chart-6/10",- "bg-chart-5/10",- "bg-chart-7/10",- "bg-chart-8/10"-];-function gA(e = {}) {- return `${Nw({- ...e,- padding: "none"- })} flex flex-col overflow-hidden pt-4 text-left`;-}-var _A = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", goe = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";-function vA({ interactive: e = !1 } = {}) {- return Nw({- padding: "none",- radius: "plain",- interactive: e,- className: "flex min-h-33 flex-col gap-2 p-4 text-left"+//#region src/react/data-cleanup/link-manager.tsx+var dj = Vw("unlink"), fj = Vw("rotate-cw"), pj = "站点返回 404 或 410,确认这个地址不存在。", mj = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", hj = "删除前会逐条重验一次;此操作不可撤销。", gj = "暂时无法读取进度,正在重新连接…", _j = (e) => Number(e || 0).toLocaleString();+function vj({ label: e, value: t, note: n }) {+ return /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "flex min-w-0 flex-col gap-0.5",+ children: [+ /* @__PURE__ */ (0, L.jsx)("span", {+ className: "text-caption-1-regular leading-5 text-text-secondary",+ children: e+ }),+ /* @__PURE__ */ (0, L.jsx)("b", {+ className: "text-title-2-semibold font-bold leading-5 tabular-nums text-text-primary",+ children: t+ }),+ n ? /* @__PURE__ */ (0, L.jsx)("small", {+ className: "text-caption-1-regular leading-5 text-text-secondary",+ children: n+ }) : null+ ]});}-var _oe = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";-function yA({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {- return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [- /* @__PURE__ */ (0, L.jsxs)("span", {- className: "flex min-w-0 items-center gap-2 text-body-medium text-text-secondary",- children: [- t || n ? /* @__PURE__ */ (0, L.jsx)("i", {- "aria-hidden": !0,- className: "flex size-8 shrink-0 items-center justify-center rounded-md bg-background-primary-default text-text-primary",- children: t ? /* @__PURE__ */ (0, L.jsx)(t, {- "aria-hidden": !0,- className: "size-4"- }) : n- }) : null,- /* @__PURE__ */ (0, L.jsx)("span", {- className: "min-w-0 truncate",- children: e- }),- r ? /* @__PURE__ */ (0, L.jsx)("span", {- className: "ml-auto shrink-0 text-caption-1-regular",- children: r- }) : null- ]- }),- /* @__PURE__ */ (0, L.jsx)("strong", {- className: "block text-title-1-medium tabular-nums text-text-primary",- children: i- }),- /* @__PURE__ */ (0, L.jsx)("span", {- className: `block min-h-4 text-caption-1-regular text-text-tertiary ${o ? "" : "truncate"}`,- children: a- })- ] });-}-function bA({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {- return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [- /* @__PURE__ */ (0, L.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, L.jsx)("i", {- "aria-hidden": !0,- className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${moe[n % 4]} ${hoe[n % 4]}`,- children: /* @__PURE__ */ (0, L.jsx)(t, {- "aria-hidden": !0,- className: "size-4"- })- }) : null, /* @__PURE__ */ (0, L.jsx)("span", {- className: "min-w-0 truncate",- children: e- })]- }),- /* @__PURE__ */ (0, L.jsx)("b", {- className: "px-4 pt-3 pb-4 text-title-1-medium tabular-nums text-text-primary max-sm:px-3 max-sm:pb-3",- children: r- }),- /* @__PURE__ */ (0, L.jsx)("small", {- className: "mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular text-text-secondary max-sm:px-3 max-sm:py-2",- children: i- })- ] });-}-//#endregion-//#region src/react/boardui/components/base/buttons/link-button.tsx-var xA = vw({- 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"- ].join(" "),- size: {- medium: "text-body-medium",- small: "text-body-medium",- xs: "text-caption-1-semibold"- },- icon: {- medium: "size-5 shrink-0",- small: "size-[18px] shrink-0",- xs: "size-3.5 shrink-0"- },- variant: {- primary: ["text-accent-600 active:text-accent-800", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" "),- secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")- }-});-function SA({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {- let c = _w(xA.base, xA.size[t], xA.variant[e], a), l = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [- n ? /* @__PURE__ */ (0, L.jsx)(n, {- className: xA.icon[t],- "aria-hidden": !0- }) : null,- i != null && /* @__PURE__ */ (0, L.jsx)("span", { children: i }),- r ? /* @__PURE__ */ (0, L.jsx)(r, {- className: xA.icon[t],- "aria-hidden": !0- }) : null- ] });- if (s.href !== void 0) {- let { ref: e, href: t, ...n } = s;- return /* @__PURE__ */ (0, L.jsx)("a", {- ref: e,- href: o ? void 0 : t,- "aria-disabled": o || void 0,- className: c,- ...n,- children: l- });- }- let { ref: u, type: d = "button", ...f } = s;- return /* @__PURE__ */ (0, L.jsx)("button", {- ref: u,- type: d,- disabled: o,- className: c,- ...f,- children: l- });-}-//#endregion-//#region src/react/boardui/components/base/dropdown/menu-styles.ts-var CA = [- "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"-].join(" "), voe = "w-[266px]", yoe = "flex w-full flex-col gap-1 outline-none", wA = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), TA = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";-({- medium: "h-9 rounded-2lg p-2 text-body-medium",- small: "h-8 rounded-lg px-2 py-1.5 text-body-medium"-}).medium;-//#endregion-//#region src/management.ts-var boe = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", xoe = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", Soe = Nw({- padding: "none",- bordered: "line",- className: "overflow-hidden"-}), Coe = {- 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"-}, woe = {- 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"-}, Toe = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", Eoe = {- neutral: "border-border-button-default bg-card-footer",- error: "border-border-error-default bg-background-tertiary-error"-}, Doe = Nw({- padding: "none",- radius: "surface",- bordered: "line",- className: "overflow-hidden"-}), EA = "border-t border-border-button-default p-4 first:border-t-0";-function DA({ tone: e = "neutral", status: t, children: n }) {+function yj({ title: e, items: t, hint: n, picked: r, onPick: i, children: a }) {+ if (!t.length) return null;+ let o = r ?? [], s = o.length > 0 && o.length === t.length;return /* @__PURE__ */ (0, L.jsxs)("div", {- className: `${Toe} ${Eoe[e]}`,- children: [t ? /* @__PURE__ */ (0, L.jsx)("p", {- className: `mr-auto min-w-0 text-caption-1-regular ${e === "error" ? "text-text-error-primary" : "text-text-secondary"}`,- children: t- }) : null, n]+ className: uA,+ children: [+ /* @__PURE__ */ (0, L.jsxs)("h4", {+ className: "mb-1 text-body-semibold text-text-primary",+ children: [e, /* @__PURE__ */ (0, L.jsx)("b", {+ className: "ml-1.5 font-semibold tabular-nums text-text-secondary",+ children: t.length+ })]+ }),+ /* @__PURE__ */ (0, L.jsx)("p", {+ className: "mb-3 text-caption-1-regular text-text-secondary",+ children: n+ }),+ /* @__PURE__ */ (0, L.jsx)(uj, { children: /* @__PURE__ */ (0, L.jsxs)(sj, {+ "aria-label": e,+ size: "sm",+ children: [/* @__PURE__ */ (0, L.jsxs)(Uk, { children: [+ i ? /* @__PURE__ */ (0, L.jsx)(Wk, {+ id: "pick",+ children: /* @__PURE__ */ (0, L.jsx)(oj, {+ slot: null,+ "aria-label": "全选本次未访问成功的链接",+ isSelected: s,+ isIndeterminate: o.length > 0 && !s,+ onChange: (e) => i(e ? t.map((e) => e.id) : [])+ })+ }) : null,+ /* @__PURE__ */ (0, L.jsx)(Wk, {+ id: "entity",+ isRowHeader: !0,+ children: "所属"+ }),+ /* @__PURE__ */ (0, L.jsx)(Wk, {+ id: "kind",+ children: "类型"+ }),+ /* @__PURE__ */ (0, L.jsx)(Wk, {+ id: "label",+ children: "标签"+ }),+ /* @__PURE__ */ (0, L.jsx)(Wk, {+ id: "note",+ children: "结果"+ }),+ /* @__PURE__ */ (0, L.jsx)(Wk, {+ id: "url",+ children: "地址"+ })+ ] }), /* @__PURE__ */ (0, L.jsx)(Kk, { children: t.map((e) => /* @__PURE__ */ (0, L.jsxs)(Yk, {+ id: e.id,+ children: [+ i ? /* @__PURE__ */ (0, L.jsx)(Zk, { children: /* @__PURE__ */ (0, L.jsx)(oj, {+ slot: null,+ "aria-label": `选择 ${e.entity} 的${e.label || e.url}`,+ isSelected: o.includes(e.id),+ onChange: (t) => i(t ? [...o, e.id] : o.filter((t) => t !== e.id))+ }) }) : null,+ /* @__PURE__ */ (0, L.jsx)(Zk, { children: e.entity }),+ /* @__PURE__ */ (0, L.jsx)(Zk, { children: WE[e.link_kind] || e.link_kind }),+ /* @__PURE__ */ (0, L.jsx)(Zk, { children: e.label || "" }),+ /* @__PURE__ */ (0, L.jsx)(Zk, { children: /* @__PURE__ */ (0, L.jsx)("span", {+ className: "tabular-nums text-text-error-primary",+ children: e.note+ }) }),+ /* @__PURE__ */ (0, L.jsx)(Zk, { children: /* @__PURE__ */ (0, L.jsxs)("a", {+ href: e.url,+ target: "_blank",+ rel: "noreferrer",+ title: e.url,+ className: "flex max-w-90 min-w-0 items-center gap-1 text-text-secondary hover:text-text-primary",+ children: [/* @__PURE__ */ (0, L.jsx)("span", {+ "data-middle-truncate": !0,+ className: "min-w-0 truncate",+ children: e.url+ }), /* @__PURE__ */ (0, L.jsx)(LS, {+ "aria-hidden": !0,+ className: "size-3.5 shrink-0"+ })]+ }) })+ ]+ }, e.id)) })]+ }) }),+ a+ ]});}-function OA({ id: e, children: t }) {- return /* @__PURE__ */ (0, L.jsx)("h2", {- id: e,- className: "text-title-2-medium! m-0! text-text-primary",- children: t+function bj({ line: e, value: t, total: n }) {+ return /* @__PURE__ */ (0, L.jsx)("div", {+ className: `${uA} flex flex-col gap-1.5`,+ children: n ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(uw, {+ label: e,+ value: t || 0,+ max: n+ }), /* @__PURE__ */ (0, L.jsx)("p", {+ className: "text-caption-1-regular text-text-secondary",+ children: e+ })] }) : /* @__PURE__ */ (0, L.jsx)(sw, { label: e })});}-function kA({ id: e, gap: t = "none", children: n }) {- return /* @__PURE__ */ (0, L.jsx)("h3", {- id: e,- className: `text-title-2-medium text-text-primary ${t === "medium" ? "mb-3" : t === "small" ? "mb-2" : ""}`,- children: n+function xj() {+ let e = Ft({+ queryKey: VE,+ queryFn: ({ signal: e }) => KE(e)+ }), [t, n] = (0, I.useState)([]), r = ej({+ queryKey: UE,+ queryFn: ({ signal: e }) => JE(e),+ start: jre,+ onFinish: () => {+ X.invalidateQueries({+ queryKey: VE,+ exact: !0+ }), X.invalidateQueries({+ queryKey: HE,+ exact: !0+ });+ }+ }), i = ej({+ queryKey: HE,+ queryFn: ({ signal: e }) => qE(e),+ start: Are,+ onStarted: () => {+ r.dismiss(), n([]);+ }+ }), a = i.job, o = a?.check_id ?? "";+ (0, I.useEffect)(() => {+ n([]);+ }, [o]);+ let s = i.running || i.start.isPending, c = r.running || r.start.isPending, l = a?.status === "complete", u = a?.gone ?? [], d = a?.unclear ?? [], f = l ? d : [], p = e.data, m = (p?.top_hosts ?? []).slice(0, 3).map(([e, t]) => `${e} ${t}`).join(" · "), h = (e) => {+ s || e && !e.length || i.start.mutate(e ? {+ retry: e,+ checkId: o+ } : {});+ }, _ = () => {+ c || !u.length || g({+ title: "删除失效链接",+ body: `将删除 ${u.length} 条失效链接。删除前会再次检查,删除后无法恢复。`,+ confirmLabel: "删除失效链接",+ danger: !0,+ onConfirm: () => r.start.mutateAsync(o)+ });+ }, v = r.outcome, y = i.start.error ?? r.start.error, b = null;+ if (v?.status === "failed") b = /* @__PURE__ */ (0, L.jsx)(J, {+ tone: "error",+ title: "任务失败",+ children: v.error || "任务失败"});-}-function AA({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {+ else if (v) b = /* @__PURE__ */ (0, L.jsx)(J, {+ tone: "success",+ title: "完成",+ children: Mre(v)+ });+ else if (y) b = /* @__PURE__ */ (0, L.jsx)(J, {+ tone: "error",+ title: "检查失败",+ children: K(y)+ });+ else if (i.query.isError && a) b = /* @__PURE__ */ (0, L.jsx)(J, {+ tone: "neutral",+ title: "任务状态",+ children: gj+ });+ else if (a?.status === "failed") b = /* @__PURE__ */ (0, L.jsx)(J, {+ tone: "error",+ title: "检查失败",+ children: a.error || "检查失败"+ });+ else if (a && a.status !== "idle") {+ let e = t.length ? `重试选中的 ${t.length} 条` : "重试选中的链接";+ b = /* @__PURE__ */ (0, L.jsxs)("div", {+ className: foe,+ children: [+ a.status === "running" ? /* @__PURE__ */ (0, L.jsx)(bj, {+ line: Nre(a),+ value: a.checked,+ total: a.total+ }) : null,+ c ? /* @__PURE__ */ (0, L.jsx)(bj, {+ line: r.job?.message || "正在重验并删除失效链接…",+ value: r.job?.checked,+ total: r.job?.total+ }) : null,+ /* @__PURE__ */ (0, L.jsx)(yj, {+ title: "地址已失效",+ items: u,+ hint: pj+ }),+ /* @__PURE__ */ (0, L.jsx)(yj, {+ title: "本次未访问成功",+ items: d,+ hint: mj,+ picked: f.length ? t : void 0,+ onPick: f.length ? n : void 0,+ children: f.length ? /* @__PURE__ */ (0, L.jsx)("div", {+ className: "-mx-4 mt-3 -mb-4",+ children: /* @__PURE__ */ (0, L.jsxs)(dA, { children: [/* @__PURE__ */ (0, L.jsx)(G, {+ leadingIcon: fj,+ disabled: !t.length,+ ...Y(s),+ onClick: () => h(t),+ children: e+ }), /* @__PURE__ */ (0, L.jsx)(G, {+ leadingIcon: fj,+ ...Y(s),+ onClick: () => h(f.map((e) => e.id)),+ children: `全部重试(${f.length})`+ })] })+ }) : null+ }),+ l && u.length ? /* @__PURE__ */ (0, L.jsx)(dA, {+ tone: "error",+ status: hj,+ children: /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "danger",+ ...Y(c),+ onClick: _,+ children: `删除 ${u.length} 条失效链接`+ })+ }) : null,+ l && !u.length && !d.length ? /* @__PURE__ */ (0, L.jsx)("p", {+ className: `${uA} text-body-regular text-notification-success-foreground`,+ children: "全部链接均可访问。"+ }) : null+ ]+ });+ }return /* @__PURE__ */ (0, L.jsxs)("section", {- id: r,- "aria-label": t,- "aria-labelledby": n,- ...o,- className: `${Soe} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,- children: [/* @__PURE__ */ (0, L.jsx)("div", {- className: Coe[e],- children: a- }), i ? /* @__PURE__ */ (0, L.jsx)("footer", {- className: woe[e],- children: i- }) : null]+ id: "link-manager",+ "aria-labelledby": "link-manager-title",+ className: "flex scroll-mt-20 flex-col gap-4",+ children: [+ /* @__PURE__ */ (0, L.jsx)(fA, {+ id: "link-manager-title",+ children: "链接管理"+ }),+ /* @__PURE__ */ (0, L.jsxs)(mA, {+ layout: "split",+ labelledBy: "link-manager-box",+ footer: /* @__PURE__ */ (0, L.jsx)(G, {+ leadingIcon: dj,+ ...Y(s),+ onClick: () => h(),+ children: s ? "检查中" : l ? "重新检查" : "检查死链"+ }),+ children: [/* @__PURE__ */ (0, L.jsx)(pA, {+ id: "link-manager-box",+ gap: "small",+ children: "站外链接"+ }), e.isError ? /* @__PURE__ */ (0, L.jsx)(J, {+ tone: "error",+ title: "读取失败",+ children: K(e.error)+ }) : p ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("div", {+ className: "link-stat-grid mt-4 gap-x-8 gap-y-3",+ children: [/* @__PURE__ */ (0, L.jsx)(vj, {+ label: "链接总数",+ value: _j(p.total),+ note: `分布在 ${_j(p.entities)} 个女优、厂牌与系列`+ }), Object.entries(p.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(vj, {+ label: WE[e] || e,+ value: _j(t)+ }, e))]+ }), m ? /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "mt-4 flex min-w-0 flex-col gap-0.5",+ children: [/* @__PURE__ */ (0, L.jsx)("span", {+ className: "text-caption-1-regular text-text-secondary",+ children: "主要站点"+ }), /* @__PURE__ */ (0, L.jsx)("b", {+ className: "text-body-2-medium break-words text-text-primary",+ children: m+ })]+ }) : null] }) : null]+ }),+ /* @__PURE__ */ (0, L.jsx)("div", {+ "aria-live": "polite",+ className: "empty:hidden",+ children: b+ })+ ]});}//#endregion-//#region src/react/components/path-line.tsx-function Ooe({ className: e }) {- return /* @__PURE__ */ (0, L.jsx)("svg", {- "aria-hidden": !0,- viewBox: "0 0 24 24",- fill: "none",- stroke: "currentColor",- strokeWidth: 2,- strokeLinecap: "round",- strokeLinejoin: "round",- className: e,- children: /* @__PURE__ */ (0, L.jsx)("use", { href: "#i-folder-open" })+//#region src/react/boardui/components/base/input/label.tsx+function Sj({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {+ return /* @__PURE__ */ (0, L.jsxs)(hie, {+ "data-label": "true",+ ...a,+ className: XC("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),+ children: [+ i,+ e && /* @__PURE__ */ (0, L.jsx)("span", {+ "aria-hidden": "true",+ className: "text-body-medium text-text-error-primary",+ children: "*"+ }),+ n && /* @__PURE__ */ (0, L.jsx)(WS, {+ className: "size-4 shrink-0 text-foreground-icon-quaternary",+ "aria-hidden": !0+ })+ ]});}-var koe = "打开文件管理器失败,请重试";-function jA({ path: e, prefix: t, className: n, onRevealed: r }) {- let [i, a] = (0, I.useState)(!1), [o, s] = (0, I.useState)(""), c = (0, I.useRef)(!0);- (0, I.useEffect)(() => () => {- c.current = !1;- }, []);- let l = async () => {- if (!i) {- a(!0), s("");- try {- await q("/api/reveal", { path: e }), r?.("已在资源管理器中显示");- } catch (e) {- c.current && s(e instanceof Cw ? e.message : koe);- } finally {- c.current && a(!1);- }- }- };- return /* @__PURE__ */ (0, L.jsxs)("div", {- className: "flex flex-col gap-1",- children: [/* @__PURE__ */ (0, L.jsxs)("div", {- className: "flex items-center justify-between gap-2",- children: [/* @__PURE__ */ (0, L.jsxs)("p", {- className: _w("min-w-0 break-all", n),- children: [t, e]- }), /* @__PURE__ */ (0, L.jsx)(cO, {- icon: Ooe,- size: "small",- className: "shrink-0",- "aria-label": "在资源管理器中显示",- onClick: () => void l(),- ...Y(i)- })]- }), o ? /* @__PURE__ */ (0, L.jsx)("p", {- className: "text-caption-1-regular text-text-error-primary",- children: o- }) : null]+//#endregion+//#region src/react/boardui/components/base/input/hint-text.tsx+function Cj({ isInvalid: e = !1, className: t, ...n }) {+ return /* @__PURE__ */ (0, L.jsx)(yie, {+ slot: e ? "errorMessage" : "description",+ ...n,+ className: XC("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)});}//#endregion-//#region src/react/boardui/components/application/settings/settings-rows.tsx-function Aoe({ className: e, children: t }) {- return /* @__PURE__ */ (0, L.jsx)("div", {- className: _w("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),- children: t+//#region src/react/boardui/components/base/input/input.tsx+var wj = (0, I.createContext)({});+function Tj({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {+ return /* @__PURE__ */ (0, L.jsx)(wj.Provider, {+ value: {+ size: e,+ fieldClassName: t,+ inputClassName: n+ },+ children: /* @__PURE__ */ (0, L.jsx)(noe, {+ ...a,+ "data-input-size": e,+ className: XC("group flex h-max w-full flex-col items-start gap-1", r),+ children: i+ })});}-function MA({ className: e, children: t }) {- return /* @__PURE__ */ (0, L.jsx)("p", {- className: _w("w-full px-3 text-body-2-medium text-text-secondary", e),- children: t+Tj.displayName = "TextField";+var Ej = ZC({+ 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"+ ].join(" "),+ fieldSize: {+ medium: "p-2",+ small: "h-8 px-1.5 py-2"+ },+ fieldWithAddonSize: {+ medium: "h-9 pl-1 pr-2 py-2",+ small: "h-8 pl-1 pr-1.5 py-2"+ },+ content: "flex w-full items-center gap-2 min-w-0",+ leftSection: "flex flex-1 items-center gap-0.5 min-w-0",+ 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"+ ].join(" "),+ icon: "size-5 shrink-0"+});+function Dj({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {+ let l = (0, I.useContext)(wj), u = e ?? l.size ?? "medium", d = r != null;+ return /* @__PURE__ */ (0, L.jsx)(wie, {+ ref: s,+ className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => XC(Ej.field, d ? Ej.fieldWithAddonSize[u] : Ej.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, L.jsxs)("div", {+ className: Ej.content,+ children: [/* @__PURE__ */ (0, L.jsxs)("div", {+ className: Ej.leftSection,+ children: [d ? r : t ? /* @__PURE__ */ (0, L.jsx)(t, {+ className: Ej.icon,+ "aria-hidden": !0+ }) : null, /* @__PURE__ */ (0, L.jsx)(Eie, {+ ref: o,+ ...c,+ className: XC(Ej.input, l.inputClassName, a)+ })]+ }), n ? /* @__PURE__ */ (0, L.jsx)(n, {+ className: Ej.icon,+ "aria-hidden": !0+ }) : null]+ })});}-function NA({ label: e, description: t, children: n }) {- return /* @__PURE__ */ (0, L.jsxs)("div", {- className: _w("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, L.jsxs)("div", {- className: "flex min-w-0 flex-col",- children: [/* @__PURE__ */ (0, L.jsx)("p", {- className: "text-body-regular text-text-primary",+Dj.displayName = "InputBase";+function Oj({ 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, L.jsx)(Tj, {+ ...d,+ className: u,+ "aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),+ children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [+ e && /* @__PURE__ */ (0, L.jsx)(Sj, {+ isRequired: u,+ isInvalid: d,+ tooltip: n,children: e- }), t && /* @__PURE__ */ (0, L.jsx)("p", {- className: "text-body-2-regular text-text-secondary",+ }),+ /* @__PURE__ */ (0, L.jsx)(Dj, {+ ref: c,+ groupRef: l,+ placeholder: r,+ leadingIcon: i,+ trailingIcon: a,+ leadingAddon: o,+ fieldClassName: s+ }),+ t && /* @__PURE__ */ (0, L.jsx)(Cj, {+ isInvalid: d,children: t- })]- }), n]+ })+ ] })});}+Oj.displayName = "Input";//#endregion-//#region src/react/settings/section.tsx-function PA({ title: e, id: t, aside: n, onSubmit: r, children: i }) {- let a = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [n ? /* @__PURE__ */ (0, L.jsxs)("div", {- className: "flex w-full flex-wrap items-center justify-between gap-2",- children: [/* @__PURE__ */ (0, L.jsx)("div", {- className: "min-w-0 flex-1",- children: /* @__PURE__ */ (0, L.jsx)(MA, { children: e })- }), n]- }) : /* @__PURE__ */ (0, L.jsx)(MA, { children: e }), /* @__PURE__ */ (0, L.jsx)(Aoe, { children: i })] });- return r ? /* @__PURE__ */ (0, L.jsx)("form", {- id: t,- "aria-label": e,- noValidate: !0,- onSubmit: r,- className: "flex w-full flex-col gap-2",- children: a- }) : /* @__PURE__ */ (0, L.jsx)("section", {- id: t,- "aria-label": e,- className: "flex w-full flex-col gap-2",- children: a- });-}-function FA({ children: e }) {- return /* @__PURE__ */ (0, L.jsx)("div", {- className: "flex flex-col",- children: e- });-}-function IA({ divided: e = !1, children: t }) {- return e ? /* @__PURE__ */ (0, L.jsx)("div", {- className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3",- children: t- }) : /* @__PURE__ */ (0, L.jsx)("div", {- className: "flex flex-col gap-4 py-4 pr-3",- children: t- });+//#region src/react/data-cleanup/organize-card.tsx+var kj = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, Aj = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", jj = 8;+function Mj({ plan: e }) {+ return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("ol", {+ className: "mt-2 flex min-w-0 flex-col gap-1",+ children: e.rows.slice(0, jj).map((e) => /* @__PURE__ */ (0, L.jsxs)("li", {+ className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",+ children: [+ /* @__PURE__ */ (0, L.jsx)("span", {+ "data-middle-truncate": !0,+ title: e.current_path,+ className: "min-w-0 truncate",+ children: QE(e.current_path)+ }),+ /* @__PURE__ */ (0, L.jsx)("span", {+ "aria-hidden": !0,+ children: "→"+ }),+ /* @__PURE__ */ (0, L.jsx)("span", {+ "data-middle-truncate": !0,+ title: e.target_path,+ className: "min-w-0 truncate text-text-primary",+ children: QE(e.target_path)+ })+ ]+ }, e.current_path))+ }), e.truncated ? /* @__PURE__ */ (0, L.jsx)("p", {+ className: "text-caption-1-regular text-text-secondary",+ children: "只列出前 8 行,完整计划在计划 CSV 里。"+ }) : null] });}-function LA({ status: e, children: t }) {- return /* @__PURE__ */ (0, L.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",- children: [e ? /* @__PURE__ */ (0, L.jsx)("div", {- className: "mr-auto min-w-0 text-body-2-regular text-text-secondary",+function Nj({ toast: t, failure: n }) {+ let r = Ft({+ queryKey: XE,+ queryFn: ({ signal: e }) => ZE(e)+ }), i = r.data, a = i?.locations ?? [], [o, s] = (0, I.useState)(""), c = a.some((e) => e.location === o) ? o : a[0]?.location ?? "", l = i?.templates?.[c], [u, d] = (0, I.useState)(null), f = u?.location === c ? u : {+ location: c,+ file: l?.file ?? "",+ dir: l?.dir ?? ""+ }, p = (e) => d({+ ...f,+ ...e+ }), [h, _] = (0, I.useState)(null), v = (0, I.useRef)(null), y = (0, I.useRef)(null), b = () => ({+ location: c,+ file_template: f.file.trim(),+ dir_template: f.dir.trim()+ }), x = It({+ mutationFn: Bre,+ onSuccess: (e, t) => void Hre({+ ...i?.templates ?? {},+ [t.location]: {+ file: t.file_template,+ dir: t.dir_template+ }+ }),+ onError: (e) => {+ let t = Wre.test(K(e)) ? "dir" : "file";+ _(t), (t === "dir" ? y : v).current?.focus();+ }+ }), S = ej({+ queryKey: XE,+ queryFn: ({ signal: e }) => ZE(e),+ start: Vre,+ jobOf: (e) => e,+ withJob: Ure,+ onStarted: () => x.reset(),+ onFinish: (e) => {+ if (X.invalidateQueries({+ queryKey: XE,+ exact: !0+ }), e.status !== "complete") return;+ let { text: r, failed: i } = eD(e);+ i ? n("按模板整理", /* @__PURE__ */ Error(`${i} 行未能处理`)) : t(r.replace(/。$/, ""));+ }+ }), C = S.running || S.start.isPending, w = x.data, T = Number(w?.counts?.change || 0), E = e[c] || c, D = (i?.placeholders ?? []).map((e) => `{${e.key}} ${e.label}`).join(" · "), O = () => {+ x.isPending || !c || (_(null), x.mutate(b()));+ }, k = () => void g({+ title: "按模板整理文件",+ body: kj(E),+ confirmLabel: "整理文件",+ onConfirm: () => S.start.mutateAsync({+ kind: "apply",+ request: b()+ })+ }), A = () => void g({+ title: "回滚上一批整理",+ body: Aj,+ confirmLabel: "回滚整理",+ onConfirm: () => S.start.mutateAsync({ kind: "rollback" })+ }), j = null, M = S.job, N = S.outcome;+ if (M?.status === "running") {+ let e = M.message || M.stage || "正在整理文件…";+ j = M.total ? /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "flex flex-col gap-1.5",+ children: [/* @__PURE__ */ (0, L.jsx)(uw, {+ label: e,+ value: M.checked || 0,+ max: M.total+ }), /* @__PURE__ */ (0, L.jsx)("p", {+ className: "text-caption-1-regular text-text-secondary",+ children: e+ })]+ }) : /* @__PURE__ */ (0, L.jsx)(sw, { label: e });+ } else if (N?.status === "failed") j = /* @__PURE__ */ (0, L.jsx)(J, {+ tone: "error",+ title: "任务失败",+ children: N.error || "任务失败"+ });+ else if (N) {+ let { text: e, failed: t } = eD(N);+ j = /* @__PURE__ */ (0, L.jsx)(J, {+ tone: t ? "warning" : "success",+ title: t ? "部分完成" : "整理结果",children: e- }) : null, t]+ });+ } else S.start.isError ? j = /* @__PURE__ */ (0, L.jsx)(J, {+ tone: "error",+ title: "整理失败",+ children: K(S.start.error)+ }) : x.isPending ? j = /* @__PURE__ */ (0, L.jsx)(sw, { label: "正在按模板算计划…" }) : x.isError ? j = /* @__PURE__ */ (0, L.jsx)(J, {+ tone: "error",+ title: "模板不可用",+ children: K(x.error)+ }) : w && (j = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(J, {+ tone: "neutral",+ title: "预览结果",+ children: Gre(w)+ }), T ? /* @__PURE__ */ (0, L.jsx)(Mj, { plan: w }) : null] }));+ return /* @__PURE__ */ (0, L.jsxs)(mA, {+ layout: "stack",+ id: "organize",+ labelledBy: "cleanup-organize-title",+ attributes: { "data-cleanup-organize": "" },+ footer: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [+ /* @__PURE__ */ (0, L.jsx)(G, {+ disabled: !a.length,+ ...Y(x.isPending),+ onClick: O,+ children: "预览"+ }),+ T && !C && !S.outcome ? /* @__PURE__ */ (0, L.jsx)(G, {+ onClick: k,+ children: "执行整理"+ }) : null,+ i?.last_batch ? /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "secondary",+ ...Y(C),+ onClick: A,+ children: "回滚上一批"+ }) : null+ ] }),+ children: [+ /* @__PURE__ */ (0, L.jsx)(pA, {+ id: "cleanup-organize-title",+ gap: "medium",+ children: "整理"+ }),+ /* @__PURE__ */ (0, L.jsx)("p", {+ className: "text-body-regular text-text-secondary",+ children: "按模板给文件改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。"+ }),+ r.isError ? /* @__PURE__ */ (0, L.jsx)("div", {+ className: "mt-3",+ children: /* @__PURE__ */ (0, L.jsx)(J, {+ tone: "error",+ title: "读取失败",+ children: K(r.error)+ })+ }) : null,+ /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "mt-3 flex flex-col gap-3",+ children: [+ a.length ? /* @__PURE__ */ (0, L.jsx)(YA, {+ "aria-label": "整理哪个来源",+ className: "w-fit min-w-25",+ selectedKey: c || null,+ onSelectionChange: (e) => {+ e !== null && (s(String(e)), _(null), x.reset());+ },+ children: a.map((t) => /* @__PURE__ */ (0, L.jsxs)(XA, {+ id: t.location,+ textValue: e[t.location] || t.location,+ children: [/* @__PURE__ */ (0, L.jsx)(PA, { mark: m[t.location] || "database" }), e[t.location] || t.location]+ }, t.location))+ }) : null,+ /* @__PURE__ */ (0, L.jsx)(Oj, {+ label: "文件名模板",+ placeholder: "{number}[ {title}]",+ value: f.file,+ ref: v,+ spellCheck: "false",+ isInvalid: h === "file",+ onChange: (e) => {+ p({ file: e }), _(null);+ }+ }),+ /* @__PURE__ */ (0, L.jsx)(Oj, {+ label: "目录模板",+ placeholder: "留空表示原地改名",+ value: f.dir,+ ref: y,+ spellCheck: "false",+ isInvalid: h === "dir",+ onChange: (e) => {+ p({ dir: e }), _(null);+ }+ }),+ i?.presets?.length ? /* @__PURE__ */ (0, L.jsx)("div", {+ className: "flex flex-wrap gap-2",+ children: i.presets.map((e) => /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "secondary",+ onClick: () => {+ p({+ file: e.file,+ dir: e.dir+ }), _(null);+ },+ children: e.label+ }, e.label))+ }) : null,+ /* @__PURE__ */ (0, L.jsx)("p", {+ className: "text-caption-1-regular leading-4.5 text-text-secondary",+ children: `${D};方括号里的内容在字段为空时整段省略。`+ })+ ]+ }),+ /* @__PURE__ */ (0, L.jsx)("div", {+ "aria-live": "polite",+ className: "mt-3 flex flex-col gap-2 empty:hidden",+ children: j+ })+ ]});}-function RA({ role: e, children: t }) {- return /* @__PURE__ */ (0, L.jsx)("p", {- role: e,- className: "text-body-2-regular text-text-secondary",- children: t- });+//#endregion+//#region src/react/data-cleanup/resource-sync-card.tsx+var Pj = Vw("git-compare"), Fj = Vw("rotate-cw"), Ij = "暂时无法读取进度,正在重新连接…", Lj = "清理失效条目", Rj = "inline-grid w-full grid-flow-col auto-cols-fr gap-4 max-plain-stat-pair:grid-flow-row max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1", zj = (e) => Number(e || 0).toLocaleString();+function Bj({ scan: e }) {+ let t = e.cache ?? {+ files: 0,+ bytes: 0+ };+ return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("div", {+ className: Rj,+ children: (e.sources ?? []).map((e) => /* @__PURE__ */ (0, L.jsx)("article", {+ className: bD(),+ children: /* @__PURE__ */ (0, L.jsx)(xD, {+ label: Xre[e.location] || "媒体来源",+ mark: /* @__PURE__ */ (0, L.jsx)(PA, { mark: m[e.location] ?? "database" }),+ aside: /* @__PURE__ */ (0, L.jsx)("span", {+ className: e.online ? "text-notification-success-foreground" : "text-text-error-primary",+ children: e.online ? "可访问" : "离线,已跳过"+ }),+ figure: e.online ? `${zj(e.missing)} 项` : "—",+ meta: eie(e),+ wrapMeta: !0+ })+ }, e.location))+ }), /* @__PURE__ */ (0, L.jsxs)("div", {+ className: Rj,+ children: [+ /* @__PURE__ */ (0, L.jsx)("article", {+ className: bD(),+ children: /* @__PURE__ */ (0, L.jsx)(xD, {+ label: "待永久删除",+ figure: `${zj(e.missing)} 项`,+ meta: "文件已不在盘上,含回收站"+ })+ }),+ /* @__PURE__ */ (0, L.jsx)("article", {+ className: bD(),+ children: /* @__PURE__ */ (0, L.jsx)(xD, {+ label: "空文件夹",+ figure: `${zj(e.empty)} 个`,+ meta: "保留来源根目录"+ })+ }),+ /* @__PURE__ */ (0, L.jsx)("article", {+ className: bD(),+ children: /* @__PURE__ */ (0, L.jsx)(xD, {+ label: "可清理的缓存",+ figure: `${zj(t.files)} 个`,+ meta: t.files ? a(t.bytes) : ""+ })+ })+ ]+ })] });}-function zA({ children: e }) {- return /* @__PURE__ */ (0, L.jsx)("p", {- role: "alert",- className: "text-body-2-regular text-text-error-primary",- children: e+function Vj({ toast: e }) {+ let t = ej({+ queryKey: iD,+ queryFn: ({ signal: e }) => oD(e),+ start: qre,+ onFinish: (t) => {+ if (X.invalidateQueries({+ queryKey: pD,+ exact: !0+ }), X.invalidateQueries({+ queryKey: rD,+ exact: !0+ }), t.status !== "complete") return;+ let { done: n, left: r } = lD(t);+ r ? e(`已完成 ${zj(n)} 项,${zj(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");+ }+ }), n = ej({+ queryKey: rD,+ queryFn: ({ signal: e }) => aD(e),+ start: Kre,+ onStarted: () => t.dismiss()+ }), r = n.job, i = n.running || n.start.isPending, o = t.running || t.start.isPending, s = r?.status === "complete" || r?.status === "failed", c = i ? "扫描中" : s ? "重新扫描" : "检查文件", l = (e) => void g({+ title: Lj,+ body: $re(e),+ confirmLabel: Lj,+ danger: !0,+ onConfirm: () => t.start.mutateAsync(e.scan_id || "")+ }), u = t.outcome, d = (e) => {+ let t = lD(e).left > 0;+ return /* @__PURE__ */ (0, L.jsx)(J, {+ tone: t ? "warning" : "success",+ title: t ? "部分完成" : "清理结果",+ children: tie(e, a)+ });+ }, f = null;+ if (u?.status === "failed") f = /* @__PURE__ */ (0, L.jsx)(J, {+ tone: "error",+ title: "任务失败",+ children: u.error || "任务失败"});-}-function BA({ children: e }) {- return /* @__PURE__ */ (0, L.jsx)("p", {- className: "text-body-medium text-text-primary",- children: e+ else if (u) f = d(u);+ else if (t.running) f = /* @__PURE__ */ (0, L.jsx)(sw, { label: t.job?.message || "正在复核并清理失效条目…" });+ else if (n.start.isError) f = /* @__PURE__ */ (0, L.jsx)(J, {+ tone: "error",+ title: "扫描失败",+ children: K(n.start.error)});-}-function VA({ href: e, children: t }) {- return /* @__PURE__ */ (0, L.jsx)(SA, {- href: e,- target: "_blank",- rel: "noopener noreferrer",- size: "small",- trailingIcon: mS,- children: t+ else if (n.query.isError && r) f = /* @__PURE__ */ (0, L.jsx)(J, {+ tone: "neutral",+ title: "任务状态",+ children: Ij});-}-function HA({ children: e }) {- return /* @__PURE__ */ (0, L.jsx)("dl", {- className: "flex flex-col",- children: e+ else if (r?.status === "running") {+ let e = Zre(r);+ f = /* @__PURE__ */ (0, L.jsx)("div", {+ className: "flex flex-col gap-1.5 rounded-2lg border border-separator-border px-4 py-3.5",+ children: r.total_sources ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(uw, {+ label: e,+ value: r.completed_sources || 0,+ max: r.total_sources+ }), /* @__PURE__ */ (0, L.jsx)("p", {+ className: "text-caption-1-regular text-text-secondary",+ children: e+ })] }) : /* @__PURE__ */ (0, L.jsx)(sw, { label: "正在检查本地磁盘和网盘…" })+ });+ } else if (r?.status === "failed") f = /* @__PURE__ */ (0, L.jsx)(J, {+ tone: "error",+ title: "扫描失败",+ children: r.error || "后台扫描失败"});-}-function UA({ term: e, children: t }) {- return /* @__PURE__ */ (0, L.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, L.jsx)("dt", {- className: "flex shrink-0 items-center gap-2 text-body-regular text-text-secondary",- children: e- }), /* @__PURE__ */ (0, L.jsx)("dd", {- className: "flex min-w-0 flex-wrap items-center justify-end gap-2 text-right text-body-regular break-all text-text-primary",- children: t- })]+ else if (r?.status === "complete" && r.applied) f = t.job?.status === "complete" ? d(t.job) : /* @__PURE__ */ (0, L.jsx)(J, {+ tone: "neutral",+ title: "清理结果",+ children: "这次检查的结果已经清理,重新扫描可再核对。"});-}-function WA({ summary: e, defaultOpen: t = !1, children: n }) {- let r = (0, I.useId)(), i = (0, I.useRef)(null), a = (0, I.useRef)(null), o = (0, I.useRef)(!1), [s, c] = (0, I.useState)(t);- return /* @__PURE__ */ (0, L.jsxs)("details", {- ref: (e) => {- i.current = e, e && t && !o.current && (o.current = !0, e.open = !0);- },- children: [/* @__PURE__ */ (0, L.jsxs)("summary", {- "aria-expanded": s,- "aria-controls": r,- onClick: (e) => {- e.preventDefault(), !(!i.current || !a.current) && (E(i.current, a.current, !s), c(!s));- },- className: "flex w-fit 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: [/* @__PURE__ */ (0, L.jsx)(sS, {- "aria-hidden": !0,- className: s ? "size-4 shrink-0 rotate-90 transition-transform" : "size-4 shrink-0 transition-transform"- }), e]- }), /* @__PURE__ */ (0, L.jsx)("div", {- ref: a,- id: r,- inert: !s,- children: /* @__PURE__ */ (0, L.jsx)("div", {- className: "flex flex-col gap-2 pt-3",- children: n+ else if (r?.status === "complete") {+ let e = Yre(r);+ f = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [+ /* @__PURE__ */ (0, L.jsx)(Bj, { scan: r }),+ e ? /* @__PURE__ */ (0, L.jsx)(J, {+ tone: "neutral",+ title: "清理内容",+ children: Qre(r)+ }) : null,+ /* @__PURE__ */ (0, L.jsx)("div", {+ className: "flex flex-wrap items-center justify-end gap-2",+ children: e ? /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "danger",+ ...Y(o),+ onClick: () => l(r),+ children: o ? "正在复核并清理…" : Lj+ }) : /* @__PURE__ */ (0, L.jsx)("p", {+ className: "mr-auto text-body-regular text-notification-success-foreground",+ children: "已检查可访问的来源,没有待清理的记录、空文件夹或缓存。"+ })})- })]- });-}-function GA({ name: e }) {- return /* @__PURE__ */ (0, L.jsx)("svg", {- "aria-hidden": !0,- viewBox: "0 0 24 24",- fill: "none",- className: "size-4 shrink-0 stroke-current stroke-2",- children: /* @__PURE__ */ (0, L.jsx)("use", { href: `#i-${e}` })+ ] });+ }+ return t.start.isError && !u && (f = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [f, /* @__PURE__ */ (0, L.jsx)(J, {+ tone: "error",+ title: "清理失败",+ children: K(t.start.error)+ })] })), /* @__PURE__ */ (0, L.jsxs)("section", {+ id: "resource-sync",+ "aria-labelledby": "resource-sync-title",+ className: "flex scroll-mt-20 flex-col gap-4",+ children: [+ /* @__PURE__ */ (0, L.jsx)(fA, {+ id: "resource-sync-title",+ children: "资源同步"+ }),+ /* @__PURE__ */ (0, L.jsxs)(mA, {+ layout: "split",+ labelledBy: "resource-sync-box",+ footer: /* @__PURE__ */ (0, L.jsx)(G, {+ "data-resource-scan": !0,+ leadingIcon: s && !i ? Fj : Pj,+ ...Y(i),+ onClick: () => {+ i || n.start.mutate();+ },+ children: c+ }),+ children: [/* @__PURE__ */ (0, L.jsx)(pA, {+ id: "resource-sync-box",+ gap: "small",+ children: "文件与记录核对"+ }), /* @__PURE__ */ (0, L.jsx)("p", {+ className: "max-w-190 text-body-2-regular leading-5 text-text-secondary",+ children: "按馆藏记录逐条查找本地磁盘与网盘上的文件,列出文件已不存在的记录、空文件夹,以及不再被引用的缓存。"+ })]+ }),+ /* @__PURE__ */ (0, L.jsx)("div", {+ "aria-live": "polite",+ className: "flex flex-col gap-4 empty:hidden",+ children: f+ })+ ]});}-function KA({ mark: e }) {- return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, L.jsx)("img", {- src: e,- alt: "",- width: 16,- height: 16,- className: "size-4 shrink-0"- }) : /* @__PURE__ */ (0, L.jsx)(GA, { name: e });-}//#endregion-//#region src/react/library-processing/use-library-processing.ts-function qA({ toast: e, mode: t, monitor: n }) {- let r = t === "notice" || !!n, i = Nt({- queryKey: PO,- queryFn: ({ signal: e }) => FO(e),- refetchInterval: (e) => Eae(e.state.data, r)- }), [a, o] = (0, I.useState)(null), s = (0, I.useRef)(void 0), c = i.data;- return (0, I.useEffect)(() => {- if (!c) return;- let n = s.current;- s.current = c.status;- let r = n === "running" && c.status !== "running";- r && o(c), (r || t === "notice") && jae(c, e, r);- }, [- c,- t,- e- ]), {- job: i,- settled: a,- forget: () => o(null)- };+//#region src/react/data-cleanup/data-cleanup-page.tsx+function Hj(e, t) {+ return e.data === void 0 ? { figure: e.isError ? "读取失败" : "—" } : t(e.data);}-//#endregion-//#region src/react/library-processing/library-processing-card.tsx-var JA = [- {- label: "扫描并补全资料",- icon: fS,- command: {}- },- {- label: "只扫描",- icon: vS,- command: { stage: "scan" }- },- {- label: "只采集",- icon: _S,- command: { stage: "collect" }- }-], YA = _w(wA, TA, "text-body-2-medium"), XA = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", ZA = (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(",")}。`;-}, QA = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + ZA(e);-function $A({ busy: e, onRun: t }) {- let n = (0, I.useRef)(null), [r, i] = (0, I.useState)(!1), a = (n) => {- e || (i(!1), t(n));- };- return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("span", {- "data-button-group": !0,- "data-split-button": !0,- "data-variant": "primary",- children: [/* @__PURE__ */ (0, L.jsx)(G, {- leadingIcon: fS,- onClick: () => a({}),- ...Y(e),- children: "扫描并补全资料"- }), /* @__PURE__ */ (0, L.jsx)(G, {- ref: n,- iconOnly: !0,- leadingIcon: aS,- "aria-label": "更多扫描与采集方式",- "aria-haspopup": "dialog",- "aria-expanded": r,- ...Y(e),- onClick: () => {- e || i(!0);- }- })]- }), /* @__PURE__ */ (0, L.jsx)(uD, {- triggerRef: n,- isOpen: r,- onOpenChange: i,- placement: "bottom end",- offset: 4,- className: CA,+function Uj({ section: e, label: t, icon: n, value: r, open: i }) {+ return /* @__PURE__ */ (0, L.jsx)("button", {+ type: "button",+ className: bD({ interactive: !0 }),+ "data-cleanup-go": e,+ onClick: () => i(e),children: /* @__PURE__ */ (0, L.jsx)(xD, {- "aria-label": "更多扫描与采集方式",- className: "flex w-52 flex-col gap-1 outline-none",- children: JA.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, L.jsxs)("button", {- type: "button",- className: YA,- onClick: () => a(n),- children: [/* @__PURE__ */ (0, L.jsx)(t, {- "aria-hidden": !0,- className: "size-4 shrink-0"- }), e]- }, e))+ label: t,+ icon: n,+ figure: r.figure,+ meta: r.meta})- })] });+ });}-function ej({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {- let a = kae(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = Oae(e.notes || {}), c = bO();- return /* @__PURE__ */ (0, L.jsxs)("div", {- "aria-live": "polite",- className: "flex flex-col gap-4 empty:hidden",- children: [- e.status === "running" && e.stalled ? /* @__PURE__ */ (0, L.jsx)(J, {- tone: "warning",- title: "处理较慢",- children: XA- }) : null,- t || e.status === "failed" ? /* @__PURE__ */ (0, L.jsx)(J, {- tone: "error",- action: o ? /* @__PURE__ */ (0, L.jsx)(G, {- variant: "primary",- size: "small",- onClick: r,- children: "重试未完成项"- }) : null,- extra: a ? /* @__PURE__ */ (0, L.jsx)("div", {- className: "mt-1.5 border-t border-current/20 pt-1.5",- children: /* @__PURE__ */ (0, L.jsxs)(WA, {- summary: a.label,- children: [/* @__PURE__ */ (0, L.jsx)("div", {- className: "relative",- children: /* @__PURE__ */ (0, L.jsx)("ul", {- ref: c,- className: "max-h-96 overflow-y-auto pr-3",- children: a.items.map((e) => /* @__PURE__ */ (0, L.jsxs)("li", {- className: "flex flex-col gap-0.5 border-b border-current/15 py-2 first:pt-1 last:border-b-0 last:pb-1",- children: [- e.href ? /* @__PURE__ */ (0, L.jsx)("a", {- href: e.href,- className: "text-body-2-medium underline-offset-4 hover:underline",- children: e.label- }) : /* @__PURE__ */ (0, L.jsx)("span", {- className: "text-body-2-medium",- children: e.label- }),- /* @__PURE__ */ (0, L.jsx)("span", {- className: "text-caption-1-regular",- children: e.note- }),- e.hint ? /* @__PURE__ */ (0, L.jsx)("code", {- className: "text-caption-1-regular break-all",- children: e.hint- }) : null- ]- }, e.key))- })- }), a.log ? /* @__PURE__ */ (0, L.jsx)("div", {- className: "mt-2 border-t border-current/20 pt-2 text-text-secondary",- children: /* @__PURE__ */ (0, L.jsx)(jA, {- path: a.log,- prefix: "完整记录:",- className: "text-caption-1-regular",- onRevealed: i- })- }) : null]- })- }) : null,- children: t || e.error || "处理未完成,请重试"- }) : null,- n?.status === "complete" ? /* @__PURE__ */ (0, L.jsx)(J, {- tone: "success",- title: "处理完成",- children: QA(n)- }) : null,- e.status !== "running" && s ? /* @__PURE__ */ (0, L.jsx)(J, {- tone: "neutral",- extra: e.issues_log ? /* @__PURE__ */ (0, L.jsx)("div", {- className: "mt-1.5 border-t border-current/20 pt-1.5 text-text-secondary",- children: /* @__PURE__ */ (0, L.jsx)(jA, {- path: e.issues_log,- prefix: "完整记录:",- className: "text-caption-1-regular",- onRevealed: i- })- }) : null,- children: s- }) : null- ]- });-}-function tj(e) {- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = qA(e), o = Pt({- mutationFn: (e) => q(NO, e),- onSuccess: (e) => {- a(), X.setQueryData(PO, e), X.invalidateQueries({ queryKey: PO });- }+var Wj = Vw("square-check-big"), Gj = Vw("sparkles"), Kj = Vw("file-stack"), qj = Vw("file-archive"), Jj = Vw("trash"), Yj = [+ uD,+ ZT,+ pT+], Xj = () => {+ for (let e of Yj) X.invalidateQueries({+ queryKey: e,+ exact: !0});- (0, I.useEffect)(() => {- i && n?.();- }, [i, n]);- let s = r.data ?? { status: "idle" }, c = o.error ? K(o.error) : r.isError ? r.data ? LO : K(r.error) : "", l = o.isPending || s.status === "running", u = zO(s), d = (e) => {- l || (o.reset(), o.mutate(e));- };- return /* @__PURE__ */ (0, L.jsxs)("div", {- className: "flex flex-col gap-4",- children: [/* @__PURE__ */ (0, L.jsx)(AA, {- layout: "split",- label: "扫描与采集",- footer: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [- /* @__PURE__ */ (0, L.jsx)(SA, {- href: "/scraping",- size: "small",- trailingIcon: oS,- children: "来源和凭证"+};+function Zj({ toast: e, failure: t, open: n }) {+ let r = Ft({+ queryKey: uD,+ queryFn: ({ signal: e }) => mD(e)+ }), i = Ft({+ queryKey: ZT,+ queryFn: ({ signal: e }) => QT(e)+ }), o = Ft({+ queryKey: pT,+ queryFn: ({ signal: e }) => hT(e)+ }), s = Ft({+ queryKey: dD,+ queryFn: ({ signal: e }) => hD(e)+ }), c = Ft({+ queryKey: pD,+ queryFn: ({ signal: e }) => gD(e)+ }), l = Ft({+ queryKey: sT,+ queryFn: ({ signal: e }) => cT(e)+ }), u = (t) => e(t);+ return /* @__PURE__ */ (0, L.jsxs)(cw, { children: [+ /* @__PURE__ */ (0, L.jsxs)("div", {+ className: fie,+ children: [+ /* @__PURE__ */ (0, L.jsx)(Uj, {+ section: "review",+ label: "人工复核",+ icon: Wj,+ open: n,+ value: Hj(r, aie)}),- s.candidates ? /* @__PURE__ */ (0, L.jsx)(SA, {- href: "/review",- size: "small",- trailingIcon: oS,- children: "复核资料"- }) : null,- /* @__PURE__ */ (0, L.jsx)($A, {- busy: l,- onRun: d+ /* @__PURE__ */ (0, L.jsx)(Uj, {+ section: "quality",+ label: "高清版",+ icon: Gj,+ open: n,+ value: Hj(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))+ }),+ /* @__PURE__ */ (0, L.jsx)(Uj, {+ section: "duplicates",+ label: "重复文件",+ icon: Kj,+ open: n,+ value: Hj(o, (e) => Number(e.total || 0) ? {+ figure: `${Number(e.total).toLocaleString()} 组 · ${Number(e.files || 0).toLocaleString()} 个文件`,+ meta: `可回收 ${a(e.reclaimable || 0)}`+ } : { figure: "没有重复内容" })+ }),+ /* @__PURE__ */ (0, L.jsx)(Uj, {+ section: "ads",+ label: "垃圾文件",+ icon: qj,+ open: n,+ value: Hj(s, (e) => ({+ figure: `${Number(e.pending_total || 0).toLocaleString()} 个待判断`,+ meta: oie(e)+ }))+ }),+ /* @__PURE__ */ (0, L.jsx)(Uj, {+ section: "trash",+ label: "回收站",+ icon: Jj,+ open: n,+ value: Hj(c, (e) => ({+ figure: `${Number(e.total || 0).toLocaleString()} 项在回收站`,+ meta: e.total ? `占用 ${a(e.bytes || 0)}` : ""+ }))})- ] }),- children: /* @__PURE__ */ (0, L.jsxs)("div", {- className: "flex flex-col gap-2",- children: [- /* @__PURE__ */ (0, L.jsx)(kA, { children: "扫描与采集" }),- /* @__PURE__ */ (0, L.jsx)("p", {- className: "text-body-2-regular text-text-secondary",- children: boe- }),- s.status === "running" ? /* @__PURE__ */ (0, L.jsx)("div", {- className: "flex flex-col gap-1.5",- children: s.total ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(zw, {- label: u,- value: s.checked || 0,- max: s.total- }), /* @__PURE__ */ (0, L.jsxs)("p", {- className: "text-caption-1-regular text-text-secondary",- children: [- u,- " · ",- s.checked || 0,- " / ",- s.total,- " 个视频"- ]- })] }) : /* @__PURE__ */ (0, L.jsx)(Iw, { label: u })- }) : null- ]- })- }), /* @__PURE__ */ (0, L.jsx)(ej, {- state: s,- problem: c,- settled: i,- onRetry: () => {- !s.job_id || !s.retryable_asset_ids?.length || d({- job_id: s.job_id,- retry: s.retryable_asset_ids- });- },- toast: t- })]- });+ ]+ }),+ /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "flex flex-col gap-4 max-cleanup-tight:gap-3",+ children: [+ /* @__PURE__ */ (0, L.jsx)("div", {+ id: "libraryProcessing",+ className: "scroll-mt-20",+ children: /* @__PURE__ */ (0, L.jsx)(UA, {+ toast: u,+ monitor: !0,+ onComplete: Xj+ })+ }),+ /* @__PURE__ */ (0, L.jsx)("div", {+ id: "mediaRepair",+ children: /* @__PURE__ */ (0, L.jsx)(rj, {})+ }),+ /* @__PURE__ */ (0, L.jsx)(Nj, {+ toast: u,+ failure: t+ })+ ]+ }),+ /* @__PURE__ */ (0, L.jsx)(xj, {}),+ sD(l.data) ? /* @__PURE__ */ (0, L.jsx)(Vj, { toast: e }) : null+ ] });}//#endregion-//#region src/react/boardui/components/foundations/icons/chevrons.tsx-function nj(e) {- return /* @__PURE__ */ (0, L.jsx)("svg", {- viewBox: "0 0 16 16",- fill: "none",- "aria-hidden": !0,- ...e,- children: /* @__PURE__ */ (0, L.jsx)("path", {- d: "M4 7L7.29289 10.2929C7.68342 10.6834 8.31658 10.6834 8.70711 10.2929L12 7",- stroke: "currentColor",- strokeWidth: "2",- strokeLinecap: "round"- })- });-}-function rj(e) {- return /* @__PURE__ */ (0, L.jsx)("svg", {- viewBox: "0 0 24 24",- fill: "none",- "aria-hidden": !0,- ...e,- children: /* @__PURE__ */ (0, L.jsx)("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"- })+//#region src/react/components/collection-summary.tsx+function Qj({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {+ return /* @__PURE__ */ (0, L.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+ max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4+ dark:bg-background-primary-default`,+ children: [/* @__PURE__ */ (0, L.jsxs)("div", {+ className: "flex min-w-0 flex-col gap-2",+ children: [/* @__PURE__ */ (0, L.jsx)("span", {+ className: "text-body-regular text-text-secondary",+ children: e+ }), /* @__PURE__ */ (0, L.jsx)("strong", {+ className: "text-display-4-medium tabular-nums text-text-primary",+ children: r ? /* @__PURE__ */ (0, L.jsx)("span", {+ "data-skeleton": "count",+ "aria-hidden": !0,+ className: "relative inline-block h-8 w-24 rounded-2lg align-middle skeleton-sheen"+ }) : t+ })]+ }), n ? /* @__PURE__ */ (0, L.jsx)("p", {+ className: "text-body-regular text-text-secondary",+ children: n+ }) : null]});}//#endregion-//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts-function ij(e, t, n) {+//#region src/react/components/use-stuck.ts+function $j(e) {(0, I.useEffect)(() => {- if (!e) return;- let r = (e) => {- let r = e.target;- n.some((e) => e.current?.contains(r)) || t();+ let t = e.current;+ if (!t) return;+ let n = 0, r = () => {+ n = 0;+ let e = parseFloat(getComputedStyle(t).top), r = window.scrollY > 0 && Number.isFinite(e) && t.getBoundingClientRect().top <= e + 1;+ t.toggleAttribute("data-stuck", r);+ }, i = () => {+ n ||= requestAnimationFrame(r);};- return document.addEventListener("pointerdown", r, !0), () => document.removeEventListener("pointerdown", r, !0);- }, [- e,- t,- n- ]);-}-function aj(e, t) {- let n = (0, I.useRef)(!1);- return (0, I.useEffect)(() => {- if (!e) return;- let r = (e) => {- t.current?.contains(e.target) && (n.current = !0, setTimeout(() => {- n.current = !1;- }, 400));+ return r(), addEventListener("scroll", i, { passive: !0 }), addEventListener("resize", i), () => {+ cancelAnimationFrame(n), removeEventListener("scroll", i), removeEventListener("resize", i);};- return document.addEventListener("pointerdown", r, !0), () => document.removeEventListener("pointerdown", r, !0);- }, [e, t]), (e) => e && n.current ? (n.current = !1, !1) : !0;-}-//#endregion-//#region src/react/boardui/components/base/select/select.tsx-var oj = (0, I.createContext)("md");-function sj({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {- let l = (0, I.useRef)(null), u = (0, I.useRef)(null), [d, f] = (0, I.useState)(!1);- ij(d, () => f(!1), [l, u]);- let p = aj(d, l);- return /* @__PURE__ */ (0, L.jsx)(cie, {- ref: s,- ...c,- isOpen: d,- onOpenChange: (e) => p(e) && f(e),- className: _w("group flex flex-col", e),- children: ({ isOpen: e }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)(UT, {- ref: l,- className: _w("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, L.jsx)(die, {- className: _w("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),- children: o- }), /* @__PURE__ */ (0, L.jsx)(nj, { className: _w("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]- }), /* @__PURE__ */ (0, L.jsx)(uD, {- ref: u,- isNonModal: !0,- offset: 4,- className: _w(voe, CA, "p-2", n),- children: /* @__PURE__ */ (0, L.jsx)(kre, {- items: a,- className: _w(yoe, "max-h-[240px] overflow-auto"),- children: /* @__PURE__ */ (0, L.jsx)(oj.Provider, {- value: r,- children: i- })- })- })] })- });-}-function cj({ className: e, children: t, ...n }) {- let r = (0, I.useContext)(oj);- return /* @__PURE__ */ (0, L.jsx)(Mre, {- ...n,- className: (t) => _w(wA, 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- });+ }, [e]);}//#endregion-//#region src/react/background-job.ts-var lj = 2e3, uj = (e) => e, dj = (e, t) => t;-function fj(e) {- let { queryKey: t, jobOf: n = uj, withJob: r = dj, idlePollMs: i } = e, [a, o] = (0, I.useState)(!1), [s, c] = (0, I.useState)(null), l = (0, I.useRef)(e);- (0, I.useEffect)(() => {- l.current = e;+//#region src/react/components/filter-glass.tsx+function eM({ title: e, children: t }) {+ let n = (0, I.useRef)(null);+ return $j(n), /* @__PURE__ */ (0, L.jsxs)("div", {+ ref: n,+ role: "group",+ "aria-label": e,+ "data-filter-glass": !0,+ "data-glass-pane": "",+ className: "sticky top-topbar z-10 mb-5.5 flex flex-wrap items-center gap-x-2.5 gap-y-2 px-4 py-2.5",+ children: [/* @__PURE__ */ (0, L.jsx)("h3", {+ className: "mr-1 text-body-medium",+ children: e+ }), t]});- let u = Nt({- queryKey: t,- queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),- refetchInterval: (e) => {- let t = e.state.data;- return t !== void 0 && n(t)?.status === "running" ? lj : i ?? !1;- }- }), d = Pt({- mutationFn: (e) => l.current.start(e),- onSuccess: (e) => {- o(!0), c(null), l.current.onStarted?.(e), X.setQueryData(t, (t) => r(t, e)), X.invalidateQueries({- queryKey: t,- exact: !0- });- },- onError: (e) => l.current.onError?.(e)- }), f = u.data === void 0 ? void 0 : n(u.data), p = f?.status === "running";- return (0, I.useEffect)(() => {- if (f) {- if (f.status === "running") {- a || o(!0);- return;- }- a && (o(!1), c(f), l.current.onFinish?.(f));- }- }, [f, a]), {- query: u,- job: f,- running: p,- outcome: s,- start: d,- dismiss: () => c(null)- };}-//#endregion-//#region src/react/media-repair/media-repair-card.tsx-var pj = (e) => m[e] || e, mj = (e) => X.setQueryData(HO, e);-function hj() {- let e = Nt({- queryKey: HO,- queryFn: ({ signal: e }) => WO(e),- refetchInterval: (e) => e.state.data?.status === "running" && lj- }), t = Nt({- queryKey: UO,- queryFn: ({ signal: e }) => GO(e)- }), [n, r] = (0, I.useState)(""), i = Bw(), a = e.data ?? Mae, o = t.data ?? [], s = a.status === "running", c = o.find((e) => e.id === (s ? a.library : n)) ?? o.find((e) => e.id === a.library) ?? o[0], l = () => {- c && g({- title: `修复媒体库「${c.name}」`,- body: "缺时间戳表的片子另存一份修好的头,原文件不动;缺索引的片子重建后替换原文件,坏原件改名成同目录的隐藏文件(.文件名.peach-original)留着。" + (c.metered ? "这个库在计费来源上,每修一部都要把片子完整拉一遍。" : ""),- confirmLabel: "修复媒体库",- onConfirm: async () => mj(await q(VO, {- library: c.id,- restart: !0- }))- });- }, u = () => void i.run("stop", (e) => q(VO, { stop: !0 }, "POST", e), mj), d = qO(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");- return /* @__PURE__ */ (0, L.jsxs)("div", {- className: "flex flex-col gap-4",- children: [/* @__PURE__ */ (0, L.jsx)(AA, {- layout: "split",- label: "媒体修复",- footer: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(sj, {- "aria-label": "媒体库",- className: "w-48",- selectedKey: c?.id ?? null,- isDisabled: s || !o.length,- onSelectionChange: (e) => {- e !== null && r(String(e));- },- children: o.map((e) => /* @__PURE__ */ (0, L.jsxs)(cj, {- id: e.id,- textValue: e.name,- children: [/* @__PURE__ */ (0, L.jsx)(KA, { mark: pj(e.icon) }), e.name]- }, e.id))- }), s ? /* @__PURE__ */ (0, L.jsx)(G, {- onClick: u,- ...Y(i.busy === "stop"),- children: "停止"- }) : /* @__PURE__ */ (0, L.jsx)(G, {- onClick: l,- disabled: !c,- children: "开始修复"- })] }),- children: /* @__PURE__ */ (0, L.jsxs)("div", {- className: "flex flex-col gap-2",- children: [- /* @__PURE__ */ (0, L.jsx)(kA, { children: "媒体修复" }),- /* @__PURE__ */ (0, L.jsx)("p", {- className: "text-body-2-regular text-text-secondary",- children: xoe- }),- s && a.total ? /* @__PURE__ */ (0, L.jsx)(zw, {- label: "修复进度",- value: a.checked,- max: a.total- }) : null,- d ? /* @__PURE__ */ (0, L.jsx)("p", {- role: "status",- className: "text-caption-1-regular text-text-secondary",- children: d- }) : null- ]+function tM({ 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, I.useRef)(null);+ return $j(d), /* @__PURE__ */ (0, L.jsxs)("div", {+ ref: d,+ role: "group",+ "aria-label": e,+ "data-filter-glass": !0,+ "data-glass-pane": "",+ ...c,+ className: XC("sticky top-topbar z-10 mb-5.5 flex flex-col", i),+ children: [+ s,+ /* @__PURE__ */ (0, L.jsx)("div", {+ role: "group",+ "aria-label": t,+ "data-filter-row": "top",+ className: XC("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),+ children: n+ }),+ /* @__PURE__ */ (0, L.jsx)("div", {+ ref: u,+ "data-filter-row": "bottom",+ "aria-busy": l || void 0,+ className: XC("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),+ children: r})- }), /* @__PURE__ */ (0, L.jsxs)("div", {- "aria-live": "polite",- className: "flex flex-col gap-4 empty:hidden",- children: [- f && !a.repaired && !a.failed ? /* @__PURE__ */ (0, L.jsx)(J, {- tone: "info",- title: "没有要修的",- children: "这个库里的片子都能直接播。"- }) : null,- f && a.missing_tool ? /* @__PURE__ */ (0, L.jsx)(J, {- tone: "warning",- title: "缺少 untrunc",- children: Pae(a)- }) : null,- p ? /* @__PURE__ */ (0, L.jsx)(J, {- tone: "error",- children: p- }) : null- ]- })]- });-}-//#endregion-//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx-var gj = {- md: {- box: "size-4",- glyph: "size-4",- label: "text-body-medium",- gap: "gap-2"- },- sm: {- box: "size-3.5",- glyph: "size-3.5",- label: "text-body-2-medium",- gap: "gap-1.5"- }-};-function _j({ state: e, size: t = "md" }) {- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = gj[t], c = n || r, l = o && !a;- return /* @__PURE__ */ (0, L.jsx)("span", {- "aria-hidden": !0,- className: _w("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? _w("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : _w("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),- children: /* @__PURE__ */ (0, L.jsx)("svg", {- viewBox: "0 0 16 16",- fill: "none",- className: s.glyph,- children: r ? /* @__PURE__ */ (0, L.jsx)("path", {- d: "M4.5 8H8H11.5",- stroke: "white",- strokeWidth: "2",- strokeLinecap: "round"- }) : n ? /* @__PURE__ */ (0, L.jsx)("path", {- d: "M4 7.7002L6.64645 10.3466C6.84171 10.5419 7.15829 10.5419 7.35355 10.3466L12 5.7002",- stroke: "white",- strokeWidth: "2",- strokeLinecap: "round",- strokeLinejoin: "round",- pathLength: 1,- className: "animate-check-draw"- }) : null- })+ ]});}-//#endregion-//#region src/react/boardui/components/base/checkbox/checkbox.tsx-function vj({ className: e, children: t, size: n = "md", ref: r, ...i }) {- let a = gj[n];- return /* @__PURE__ */ (0, L.jsx)(_re, {- ref: r,+var nM = "flex h-7.5 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 rM({ children: e, pressed: t, onPress: n, className: r, ...i }) {+ return /* @__PURE__ */ (0, L.jsx)("button", {+ type: "button",...i,- className: (t) => _w("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, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(_j, {- state: e,- size: n- }), t != null && /* @__PURE__ */ (0, L.jsx)("span", {- className: _w(a.label, "text-text-primary"),- children: t- })] })+ "aria-pressed": t,+ className: XC(nM, r),+ onClick: n,+ children: e});}-//#endregion-//#region src/react/boardui/components/base/table/table.tsx-function yj({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {- return /* @__PURE__ */ (0, L.jsx)("div", {- className: _w("w-full overflow-x-auto", n),- children: /* @__PURE__ */ (0, L.jsx)(Tie, {- ref: r,- ...i,- className: _w("bui-table", e === "sm" && "bui-table-sm", t)- })+var iM = "h-7.5 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none hover:border-(--glass-rim) hover:bg-(--glass-pick-fill) focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";+function aM({ children: e, onPress: t, busy: n = !1 }) {+ return /* @__PURE__ */ (0, L.jsx)("button", {+ type: "button",+ className: iM,+ "aria-busy": n || void 0,+ "aria-disabled": n || void 0,+ onClick: () => {+ n || t();+ },+ children: e});}//#endregion-//#region src/react/components/row-click.ts-var bj = [- "a",- "button",- "input",- "select",- "textarea",- "label",- "[role=\"checkbox\"]",- "[role=\"switch\"]",- "[role=\"button\"]",- "[role=\"link\"]",- "[role=\"menu\"]"-].join(",");-function xj(e, t) {- let n = e.target;- if (!(n instanceof Element) || !t.contains(n)) return !1;- let r = n.closest(bj);- return !r || !t.contains(r) || r === t;-}-//#endregion-//#region src/react/components/data-table-frame.tsx-function Sj({ children: e, follow: t = !1, onRowClick: n }) {- return /* @__PURE__ */ (0, L.jsx)("div", {- "data-board-data-table": !0,- "data-follow-table": t || void 0,- onClick: n ? (e) => {- let t = e.target;- if (!(t instanceof Element)) return;- let r = t.closest("[role=\"row\"][data-key]");- r && xj(e, r) && n(r.dataset.key);- } : void 0,- children: e+//#region src/react/duplicates/duplicates-page.tsx+var oM = Vw("play"), sM = Vw("file-stack"), cM = aw({+ padding: "none",+ radius: "surface",+ className: "mb-6 overflow-hidden dark:bg-background-primary-default"+}), lM = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", uM = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", dM = "font-mono text-caption-1-regular leading-5 text-text-secondary", fM = () => {+ X.invalidateQueries({+ queryKey: pT,+ exact: !0+ }), X.invalidateQueries({+ queryKey: pD,+ exact: !0+ });+};+function pM(e) {+ return e.identical ? /* @__PURE__ */ (0, L.jsx)("span", {+ className: `${uM} text-(--keep)`,+ children: "sha1 一致"+ }) : /* @__PURE__ */ (0, L.jsx)("span", {+ className: `${uM} text-text-secondary`,+ children: e.evidence === "same_code_short_copy" ? "同番号短版本" : "时长推断"});}-//#endregion-//#region src/react/data-cleanup/link-manager.tsx-var Cj = gT("unlink"), wj = gT("rotate-cw"), Tj = "站点返回 404 或 410,确认这个地址不存在。", Ej = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", Dj = "删除前会逐条重验一次;此操作不可撤销。", Oj = "暂时无法读取进度,正在重新连接…", kj = (e) => Number(e || 0).toLocaleString();-function Aj({ label: e, value: t, note: n }) {+function mM({ file: t, openItem: n }) {+ let r = () => n(t.id);return /* @__PURE__ */ (0, L.jsxs)("div", {- className: "flex min-w-0 flex-col gap-0.5",+ className: "duplicate-row items-center gap-3 border-t border-separator-border px-5 py-4 max-compact:p-4",children: [- /* @__PURE__ */ (0, L.jsx)("span", {- className: "text-caption-1-regular leading-5 text-text-secondary",- children: e+ /* @__PURE__ */ (0, L.jsxs)("button", {+ type: "button",+ onClick: r,+ "aria-label": `预览 ${t.name}`,+ className: "relative row-span-2 inline-grid aspect-16/10 w-full cursor-pointer place-items-center overflow-hidden rounded-2lg bg-background-tertiary-default text-text-secondary",+ children: [/* @__PURE__ */ (0, L.jsx)(oM, {+ "aria-hidden": !0,+ className: "size-6"+ }), /* @__PURE__ */ (0, L.jsx)("img", {+ src: `/thumb?id=${t.id}&c=4`,+ alt: "",+ loading: "lazy",+ onError: (e) => e.currentTarget.remove(),+ className: "absolute inset-0 size-full object-contain"+ })]}),- /* @__PURE__ */ (0, L.jsx)("b", {- className: "text-title-2-semibold font-bold leading-5 tabular-nums text-text-primary",- children: t+ /* @__PURE__ */ (0, L.jsxs)("span", {+ className: "flex min-w-0 items-center gap-2 max-duplicate-narrow:col-start-2 max-duplicate-narrow:-col-end-1",+ children: [/* @__PURE__ */ (0, L.jsx)("button", {+ type: "button",+ onClick: r,+ title: t.name,+ "data-middle-truncate": !0,+ "data-middle-truncate-within": !0,+ className: "min-w-0 shrink cursor-pointer truncate text-left text-body-regular hover:text-text-secondary",+ children: t.name+ }), t.is_largest || t.is_longest ? /* @__PURE__ */ (0, L.jsxs)("span", {+ className: "flex flex-none gap-1",+ children: [t.is_largest ? /* @__PURE__ */ (0, L.jsx)("i", {+ className: `${lM} not-italic bg-background-primary-hover text-text-secondary`,+ children: "最大"+ }) : null, t.is_longest ? /* @__PURE__ */ (0, L.jsx)("i", {+ className: `${lM} not-italic bg-(--keep)/22 text-(--keep)`,+ children: "最长"+ }) : null]+ }) : null]}),- n ? /* @__PURE__ */ (0, L.jsx)("small", {- className: "text-caption-1-regular leading-5 text-text-secondary",- children: n- }) : null- ]- });-}-function jj({ title: e, items: t, hint: n, picked: r, onPick: i, children: a }) {- if (!t.length) return null;- let o = r ?? [], s = o.length > 0 && o.length === t.length;- return /* @__PURE__ */ (0, L.jsxs)("div", {- className: EA,- children: [- /* @__PURE__ */ (0, L.jsxs)("h4", {- className: "mb-1 text-body-semibold text-text-primary",- children: [e, /* @__PURE__ */ (0, L.jsx)("b", {- className: "ml-1.5 font-semibold tabular-nums text-text-secondary",- children: t.length+ /* @__PURE__ */ (0, L.jsxs)("span", {+ className: `${dM} flex min-w-0 items-center gap-1.5`,+ children: [/* @__PURE__ */ (0, L.jsx)(PA, { mark: m[t.location] || "database" }), /* @__PURE__ */ (0, L.jsx)("span", {+ className: "whitespace-nowrap",+ children: e[t.location] || t.location || t.drive})]}),- /* @__PURE__ */ (0, L.jsx)("p", {- className: "mb-3 text-caption-1-regular text-text-secondary",- children: n+ /* @__PURE__ */ (0, L.jsx)("span", {+ className: dM,+ children: a(t.size || 0)}),- /* @__PURE__ */ (0, L.jsx)(Sj, { children: /* @__PURE__ */ (0, L.jsxs)(yj, {- "aria-label": e,- size: "sm",- children: [/* @__PURE__ */ (0, L.jsxs)(GD, { children: [- i ? /* @__PURE__ */ (0, L.jsx)(KD, {- id: "pick",- children: /* @__PURE__ */ (0, L.jsx)(vj, {- slot: null,- "aria-label": "全选本次未访问成功的链接",- isSelected: s,- isIndeterminate: o.length > 0 && !s,- onChange: (e) => i(e ? t.map((e) => e.id) : [])- })- }) : null,- /* @__PURE__ */ (0, L.jsx)(KD, {- id: "entity",- isRowHeader: !0,- children: "所属"- }),- /* @__PURE__ */ (0, L.jsx)(KD, {- id: "kind",- children: "类型"- }),- /* @__PURE__ */ (0, L.jsx)(KD, {- id: "label",- children: "标签"- }),- /* @__PURE__ */ (0, L.jsx)(KD, {- id: "note",- children: "结果"- }),- /* @__PURE__ */ (0, L.jsx)(KD, {- id: "url",- children: "地址"- })- ] }), /* @__PURE__ */ (0, L.jsx)(JD, { children: t.map((e) => /* @__PURE__ */ (0, L.jsxs)(ZD, {- id: e.id,- children: [- i ? /* @__PURE__ */ (0, L.jsx)($D, { children: /* @__PURE__ */ (0, L.jsx)(vj, {- slot: null,- "aria-label": `选择 ${e.entity} 的${e.label || e.url}`,- isSelected: o.includes(e.id),- onChange: (t) => i(t ? [...o, e.id] : o.filter((t) => t !== e.id))- }) }) : null,- /* @__PURE__ */ (0, L.jsx)($D, { children: e.entity }),- /* @__PURE__ */ (0, L.jsx)($D, { children: Dk[e.link_kind] || e.link_kind }),- /* @__PURE__ */ (0, L.jsx)($D, { children: e.label || "" }),- /* @__PURE__ */ (0, L.jsx)($D, { children: /* @__PURE__ */ (0, L.jsx)("span", {- className: "tabular-nums text-text-error-primary",- children: e.note- }) }),- /* @__PURE__ */ (0, L.jsx)($D, { children: /* @__PURE__ */ (0, L.jsxs)("a", {- href: e.url,- target: "_blank",- rel: "noreferrer",- title: e.url,- className: "flex max-w-90 min-w-0 items-center gap-1 text-text-secondary hover:text-text-primary",- children: [/* @__PURE__ */ (0, L.jsx)("span", {- "data-middle-truncate": !0,- className: "min-w-0 truncate",- children: e.url- }), /* @__PURE__ */ (0, L.jsx)(mS, {- "aria-hidden": !0,- className: "size-3.5 shrink-0"- })]- }) })- ]- }, e.id)) })]- }) }),- a+ /* @__PURE__ */ (0, L.jsx)("span", {+ className: dM,+ children: i(t.duration)+ }),+ /* @__PURE__ */ (0, L.jsx)("span", {+ "data-middle-truncate": !0,+ title: t.path ?? "",+ className: `${dM} col-start-2 -col-end-1 min-w-0 truncate pt-0.5 max-duplicate-narrow:col-span-full`,+ children: t.path ?? ""+ })]});}-function Mj({ line: e, value: t, total: n }) {- return /* @__PURE__ */ (0, L.jsx)("div", {- className: `${EA} flex flex-col gap-1.5`,- children: n ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(zw, {- label: e,- value: t || 0,- max: n- }), /* @__PURE__ */ (0, L.jsx)("p", {- className: "text-caption-1-regular text-text-secondary",- children: e- })] }) : /* @__PURE__ */ (0, L.jsx)(Iw, { label: e })- });-}-function Nj() {- let e = Nt({- queryKey: wk,- queryFn: ({ signal: e }) => kk(e)- }), [t, n] = (0, I.useState)([]), r = fj({- queryKey: Ek,- queryFn: ({ signal: e }) => jk(e),- start: Zae,- onFinish: () => {- X.invalidateQueries({- queryKey: wk,- exact: !0- }), X.invalidateQueries({- queryKey: Tk,- exact: !0- });- }- }), i = fj({- queryKey: Tk,- queryFn: ({ signal: e }) => Ak(e),- start: Xae,- onStarted: () => {- r.dismiss(), n([]);- }- }), a = i.job, o = a?.check_id ?? "";- (0, I.useEffect)(() => {- n([]);- }, [o]);- let s = i.running || i.start.isPending, c = r.running || r.start.isPending, l = a?.status === "complete", u = a?.gone ?? [], d = a?.unclear ?? [], f = l ? d : [], p = e.data, m = (p?.top_hosts ?? []).slice(0, 3).map(([e, t]) => `${e} ${t}`).join(" · "), h = (e) => {- s || e && !e.length || i.start.mutate(e ? {- retry: e,- checkId: o- } : {});- }, _ = () => {- c || !u.length || g({- title: "删除失效链接",- body: `将删除 ${u.length} 条失效链接。删除前会再次检查,删除后无法恢复。`,- confirmLabel: "删除失效链接",- danger: !0,- onConfirm: () => r.start.mutateAsync(o)- });- }, v = r.outcome, y = i.start.error ?? r.start.error, b = null;- if (v?.status === "failed") b = /* @__PURE__ */ (0, L.jsx)(J, {- tone: "error",- title: "任务失败",- children: v.error || "任务失败"- });- else if (v) b = /* @__PURE__ */ (0, L.jsx)(J, {- tone: "success",- title: "完成",- children: Qae(v)- });- else if (y) b = /* @__PURE__ */ (0, L.jsx)(J, {- tone: "error",- title: "检查失败",- children: K(y)- });- else if (i.query.isError && a) b = /* @__PURE__ */ (0, L.jsx)(J, {- tone: "neutral",- title: "任务状态",- children: Oj- });- else if (a?.status === "failed") b = /* @__PURE__ */ (0, L.jsx)(J, {- tone: "error",- title: "检查失败",- children: a.error || "检查失败"+function hM({ openItem: t, toast: n, failure: r }) {+ let i = Ft({+ queryKey: pT,+ queryFn: ({ signal: e }) => hT(e)+ }), o = Ft({+ queryKey: sT,+ queryFn: ({ signal: e }) => cT(e)+ }), [s, c] = (0, I.useState)(""), l = It({+ mutationFn: (e) => CT(e, "dispose"),+ onSuccess: (e, t) => {+ fM(), n(`已把 ${t.length} 项移入回收站`, { undo: async () => {+ try {+ await CT(t, "restore");+ } catch (e) {+ r("撤销移入回收站", e);+ } finally {+ fM();+ }+ } });+ },+ onSettled: () => c("")+ }), u = i.data;+ if (!u) return /* @__PURE__ */ (0, L.jsx)("div", {+ className: "mx-auto w-full max-w-board",+ children: /* @__PURE__ */ (0, L.jsx)(J, {+ tone: "error",+ title: "读取失败",+ children: i.error ? K(i.error) : "读取重复文件失败"+ })});- else if (a && a.status !== "idle") {- let e = t.length ? `重试选中的 ${t.length} 条` : "重试选中的链接";- b = /* @__PURE__ */ (0, L.jsxs)("div", {- className: Doe,- children: [- a.status === "running" ? /* @__PURE__ */ (0, L.jsx)(Mj, {- line: $ae(a),- value: a.checked,- total: a.total- }) : null,- c ? /* @__PURE__ */ (0, L.jsx)(Mj, {- line: r.job?.message || "正在重验并删除失效链接…",- value: r.job?.checked,- total: r.job?.total- }) : null,- /* @__PURE__ */ (0, L.jsx)(jj, {- title: "地址已失效",- items: u,- hint: Tj- }),- /* @__PURE__ */ (0, L.jsx)(jj, {- title: "本次未访问成功",- items: d,- hint: Ej,- picked: f.length ? t : void 0,- onPick: f.length ? n : void 0,- children: f.length ? /* @__PURE__ */ (0, L.jsx)("div", {- className: "-mx-4 mt-3 -mb-4",- children: /* @__PURE__ */ (0, L.jsxs)(DA, { children: [/* @__PURE__ */ (0, L.jsx)(G, {- leadingIcon: wj,- disabled: !t.length,- ...Y(s),- onClick: () => h(t),- children: e- }), /* @__PURE__ */ (0, L.jsx)(G, {- leadingIcon: wj,- ...Y(s),- onClick: () => h(f.map((e) => e.id)),- children: `全部重试(${f.length})`- })] })- }) : null- }),- l && u.length ? /* @__PURE__ */ (0, L.jsx)(DA, {- tone: "error",- status: Dj,- children: /* @__PURE__ */ (0, L.jsx)(G, {- variant: "danger",- ...Y(c),- onClick: _,- children: `删除 ${u.length} 条失效链接`- })- }) : null,- l && !u.length && !d.length ? /* @__PURE__ */ (0, L.jsx)("p", {- className: `${EA} text-body-regular text-notification-success-foreground`,- children: "全部链接均可访问。"- }) : null- ]+ let d = u.groups ?? [], f = dT(o.data), p = ({ groups: e, keep: t, key: n }) => {+ if (l.isPending) return;+ let r = xT(e, t);+ r.length && g({+ title: "移入回收站",+ body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${_T[t] ?? _T.largest}。文件共 ${a(ST(e, r))},记录可从回收站还原。`,+ confirmLabel: "移入回收站",+ onConfirm: () => (c(n), l.mutateAsync(r))});- }- return /* @__PURE__ */ (0, L.jsxs)("section", {- id: "link-manager",- "aria-labelledby": "link-manager-title",- className: "flex scroll-mt-20 flex-col gap-4",+ }, m = (e) => Y(s === e && l.isPending);+ return /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "mx-auto w-full max-w-board pb-10.5",children: [- /* @__PURE__ */ (0, L.jsx)(OA, {- id: "link-manager-title",- children: "链接管理"+ /* @__PURE__ */ (0, L.jsx)(Qj, {+ label: "重复内容",+ figure: `${Number(u.total || 0).toLocaleString()} 组`,+ detail: `${u.files} 个文件 · 可回收 ${a(u.reclaimable)}`}),- /* @__PURE__ */ (0, L.jsxs)(AA, {- layout: "split",- labelledBy: "link-manager-box",- footer: /* @__PURE__ */ (0, L.jsx)(G, {- leadingIcon: Cj,- ...Y(s),- onClick: () => h(),- children: s ? "检查中" : l ? "重新检查" : "检查死链"- }),- children: [/* @__PURE__ */ (0, L.jsx)(kA, {- id: "link-manager-box",- gap: "small",- children: "站外链接"- }), e.isError ? /* @__PURE__ */ (0, L.jsx)(J, {+ d.length ? /* @__PURE__ */ (0, L.jsxs)(eM, {+ title: "批量保留",+ children: [+ /* @__PURE__ */ (0, L.jsx)(aM, {+ busy: s === "all:largest",+ onPress: () => p({+ groups: d,+ keep: "largest",+ key: "all:largest"+ }),+ children: "全部保留最大"+ }),+ /* @__PURE__ */ (0, L.jsx)(aM, {+ busy: s === "all:longest",+ onPress: () => p({+ groups: d,+ keep: "longest",+ key: "all:longest"+ }),+ children: "全部保留最长"+ }),+ bT(d, f).map((t) => /* @__PURE__ */ (0, L.jsx)(aM, {+ busy: s === `all:${t}`,+ onPress: () => p({+ groups: d,+ keep: t,+ key: `all:${t}`+ }),+ children: `全部优先 ${e[t] || t}`+ }, t))+ ]+ }) : null,+ l.isError ? /* @__PURE__ */ (0, L.jsx)("div", {+ className: "mb-5",+ children: /* @__PURE__ */ (0, L.jsx)(J, {tone: "error",- title: "读取失败",- children: K(e.error)- }) : p ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("div", {- className: "link-stat-grid mt-4 gap-x-8 gap-y-3",- children: [/* @__PURE__ */ (0, L.jsx)(Aj, {- label: "链接总数",- value: kj(p.total),- note: `分布在 ${kj(p.entities)} 个女优、厂牌与系列`- }), Object.entries(p.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Aj, {- label: Dk[e] || e,- value: kj(t)- }, e))]- }), m ? /* @__PURE__ */ (0, L.jsxs)("div", {- className: "mt-4 flex min-w-0 flex-col gap-0.5",- children: [/* @__PURE__ */ (0, L.jsx)("span", {- className: "text-caption-1-regular text-text-secondary",- children: "主要站点"- }), /* @__PURE__ */ (0, L.jsx)("b", {- className: "text-body-2-medium break-words text-text-primary",- children: m- })]- }) : null] }) : null]- }),- /* @__PURE__ */ (0, L.jsx)("div", {- "aria-live": "polite",- className: "empty:hidden",- children: b+ title: "移入回收站失败",+ children: K(l.error)+ })+ }) : null,+ d.length ? d.map((n, r) => {+ let i = [n], o = (e) => `${r}:${e}`;+ return /* @__PURE__ */ (0, L.jsxs)("section", {+ "aria-label": n.code,+ className: cM,+ children: [/* @__PURE__ */ (0, L.jsxs)("div", {+ className: "flex flex-wrap items-center gap-3 bg-background-tertiary-default p-5 max-compact:p-4 dark:bg-background-secondary-default",+ children: [+ /* @__PURE__ */ (0, L.jsx)("b", {+ className: "text-title-2-medium text-text-primary",+ children: n.code+ }),+ /* @__PURE__ */ (0, L.jsx)("span", {+ className: "font-mono text-caption-1-regular leading-5 text-text-primary",+ children: `${n.count} 个 · 可回收 ${a(n.reclaimable)}`+ }),+ pM(n),+ n.cross_drive ? /* @__PURE__ */ (0, L.jsx)("span", {+ className: `${uM} text-text-secondary`,+ children: `跨盘 ${n.drives.join(" ")}`+ }) : null,+ /* @__PURE__ */ (0, L.jsxs)("span", {+ className: "ml-auto flex flex-wrap gap-2 max-compact:ml-0 max-compact:w-full",+ children: [+ /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "secondary",+ size: "small",+ ...m(o("largest")),+ onClick: () => p({+ groups: i,+ keep: "largest",+ key: o("largest")+ }),+ children: "留最大"+ }),+ /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "secondary",+ size: "small",+ ...m(o("longest")),+ onClick: () => p({+ groups: i,+ keep: "longest",+ key: o("longest")+ }),+ children: "留最长"+ }),+ yT(n.files, f).map((t) => /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "secondary",+ size: "small",+ ...m(o(t)),+ onClick: () => p({+ groups: i,+ keep: t,+ key: o(t)+ }),+ children: `留 ${e[t] || t}`+ }, t)),+ /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "danger",+ size: "small",+ ...m(o("all")),+ onClick: () => p({+ groups: i,+ keep: "all",+ key: o("all")+ }),+ children: "整组回收"+ })+ ]+ })+ ]+ }), /* @__PURE__ */ (0, L.jsx)("div", { children: n.files.map((e) => /* @__PURE__ */ (0, L.jsx)(mM, {+ file: e,+ openItem: t+ }, e.id)) })]+ }, `${n.code}-${r}`);+ }) : /* @__PURE__ */ (0, L.jsx)(ow, {+ icon: sM,+ title: "没有找到重复文件",+ children: "所有来源之间没有检测到内容相同的文件。扫描新来源后,这里会自动更新。"})]});}//#endregion-//#region src/react/boardui/components/base/input/label.tsx-function Pj({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {- return /* @__PURE__ */ (0, L.jsxs)(ure, {- "data-label": "true",- ...a,- className: _w("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),- children: [- i,- e && /* @__PURE__ */ (0, L.jsx)("span", {- "aria-hidden": "true",- className: "text-body-medium text-text-error-primary",- children: "*"- }),- n && /* @__PURE__ */ (0, L.jsx)(xS, {- className: "size-4 shrink-0 text-foreground-icon-quaternary",- "aria-hidden": !0- })- ]+//#region src/react/follow/online-vocab.ts+var gM = "/api/follow/authors", _M = "/api/follow/tags", vM = (e) => [+ "follow",+ "authors",+ e+], yM = (e, t) => [+ "follow",+ "tags",+ e,+ t+];+function bM(e, t, n) {+ let r = new URLSearchParams({+ limit: String(t),+ offset: String(n)});+ return e && r.set("q", e), `${gM}?${r}`;}-//#endregion-//#region src/react/boardui/components/base/input/hint-text.tsx-function Fj({ isInvalid: e = !1, className: t, ...n }) {- return /* @__PURE__ */ (0, L.jsx)(mre, {- slot: e ? "errorMessage" : "description",- ...n,- className: _w("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)+function xM(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), `${_M}?${i}`;}-//#endregion-//#region src/react/boardui/components/base/input/input.tsx-var Ij = (0, I.createContext)({});-function Lj({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {- return /* @__PURE__ */ (0, L.jsx)(Ij.Provider, {- value: {- size: e,- fieldClassName: t,- inputClassName: n- },- children: /* @__PURE__ */ (0, L.jsx)(Zie, {- ...a,- "data-input-size": e,- className: _w("group flex h-max w-full flex-col items-start gap-1", r),- children: i- })+var SM = (e, t, n, r) => iw(bM(e, t, n), r), CM = (e, t, n, r, i) => iw(xM(e, t, n, r), i), wM = "/api/index", TM = {+ performers: "艺人",+ creators: "创作者",+ studios: "厂牌",+ agencies: "事务所",+ tags: "标签"+}, EM = {+ performers: "performer",+ creators: "creator",+ studios: "studio",+ agencies: "agency"+}, DM = [+ ["all", "全部"],+ ["meta", "影片属性"],+ ["relationship", "人物关系"],+ ["role", "角色设定"],+ ["appearance", "外貌身材"],+ ["scene", "情境场所"],+ ["story", "故事剧情"],+ ["position", "性交体位"],+ ["general", "其他内容"]+], OM = [+ ["all", "全部"],+ ["general", "通用"],+ ["artist", "创作者"],+ ["character", "角色"],+ ["copyright", "作品"],+ ["metadata", "元数据"]+], kM = {+ people: 120,+ tags: 180+}, AM = (e) => e !== "tags", jM = (e) => e === "studios" || e === "agencies";+function MM(e) {+ let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (t === "online" ? OM : DM).some(([t]) => t === e.category);+ return {+ ...e,+ scope: t,+ category: e.kind === "tags" && n ? e.category : "all"+ };+}+function NM(e) {+ let { kind: t, q: n, scope: r, category: i } = e;+ return t === "tags" ? r === "online" ? {+ what: "online-tags",+ q: n,+ category: i+ } : {+ what: "tags",+ q: n,+ category: i+ } : t === "performers" && r === "online" ? {+ what: "online-authors",+ q: n+ } : {+ what: "people",+ kind: t,+ q: n+ };+}+var PM = (e, t, n = "all") => [+ "index",+ e,+ t,+ ...e === "tags" ? [n] : []+];+function FM(e, t, n, r, i) {+ let a = new URLSearchParams({+ kind: e,+ limit: String(r),+ offset: String(i)});+ return t && a.set("q", t), e === "tags" && n !== "all" && a.set("category", n), `${wM}?${a}`;}-Lj.displayName = "TextField";-var Rj = vw({- 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"- ].join(" "),- fieldSize: {- medium: "p-2",- small: "h-8 px-1.5 py-2"- },- fieldWithAddonSize: {- medium: "h-9 pl-1 pr-2 py-2",- small: "h-8 pl-1 pr-1.5 py-2"- },- content: "flex w-full items-center gap-2 min-w-0",- leftSection: "flex flex-1 items-center gap-0.5 min-w-0",- 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"- ].join(" "),- icon: "size-5 shrink-0"-});-function zj({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {- let l = (0, I.useContext)(Ij), u = e ?? l.size ?? "medium", d = r != null;- return /* @__PURE__ */ (0, L.jsx)(yre, {- ref: s,- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => _w(Rj.field, d ? Rj.fieldWithAddonSize[u] : Rj.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, L.jsxs)("div", {- className: Rj.content,- children: [/* @__PURE__ */ (0, L.jsxs)("div", {- className: Rj.leftSection,- children: [d ? r : t ? /* @__PURE__ */ (0, L.jsx)(t, {- className: Rj.icon,- "aria-hidden": !0- }) : null, /* @__PURE__ */ (0, L.jsx)(xre, {- ref: o,- ...c,- className: _w(Rj.input, l.inputClassName, a)- })]- }), n ? /* @__PURE__ */ (0, L.jsx)(n, {- className: Rj.icon,- "aria-hidden": !0- }) : null]- })- });+function IM(e) {+ let t = e.what === "people" || e.what === "online-authors" ? kM.people : kM.tags, n = {+ 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 {+ ...n,+ queryKey: PM(e.kind, e.q),+ queryFn: ({ pageParam: n, signal: r }) => iw(FM(e.kind, e.q, "all", t, n), r)+ };+ case "tags": return {+ ...n,+ queryKey: PM("tags", e.q, e.category),+ queryFn: ({ pageParam: n, signal: r }) => iw(FM("tags", e.q, e.category, t, n), r)+ };+ case "online-authors": return {+ ...n,+ queryKey: vM(e.q),+ queryFn: ({ pageParam: n, signal: r }) => SM(e.q, t, n, r)+ };+ case "online-tags": return {+ ...n,+ queryKey: yM(e.q, e.category),+ queryFn: ({ pageParam: n, signal: r }) => CM(e.q, e.category, t, n, r)+ };+ }}-zj.displayName = "InputBase";-function Bj({ 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, L.jsx)(Lj, {- ...d,- className: u,- "aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),- children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [- e && /* @__PURE__ */ (0, L.jsx)(Pj, {- isRequired: u,- isInvalid: d,- tooltip: n,- children: e- }),- /* @__PURE__ */ (0, L.jsx)(zj, {- ref: c,- groupRef: l,- placeholder: r,- leadingIcon: i,- trailingIcon: a,- leadingAddon: o,- fieldClassName: s- }),- t && /* @__PURE__ */ (0, L.jsx)(Fj, {- isInvalid: d,- children: t- })- ] })+async function LM(e, t) {+ let n = IM(NM(MM(e)));+ X.removeQueries({+ queryKey: n.queryKey,+ exact: !0+ }), await X.fetchInfiniteQuery({+ queryKey: n.queryKey,+ queryFn: ({ pageParam: e }) => n.queryFn({+ pageParam: e,+ signal: t+ }),+ initialPageParam: 0,+ getNextPageParam: n.getNextPageParam});}-Bj.displayName = "Input";+var RM = (e) => e ? e.pages.flatMap((e) => e.items) : [], zM = (e, t) => `${e}${t ? "+" : ""} 项`, BM = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", VM = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), HM = {+ numeric: !0,+ sensitivity: "base"+};+function UM(e, t) {+ let n = /* @__PURE__ */ new Map();+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", HM))) {+ let e = t(r.k).normalize("NFKC").trim().charAt(0).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"));+}//#endregion-//#region src/react/data-cleanup/organize-card.tsx-var Vj = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, Hj = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", Uj = 8;-function Wj({ plan: e }) {- return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("ol", {- className: "mt-2 flex min-w-0 flex-col gap-1",- children: e.rows.slice(0, Uj).map((e) => /* @__PURE__ */ (0, L.jsxs)("li", {- className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",- children: [- /* @__PURE__ */ (0, L.jsx)("span", {- "data-middle-truncate": !0,- title: e.current_path,- className: "min-w-0 truncate",- children: Hk(e.current_path)- }),- /* @__PURE__ */ (0, L.jsx)("span", {- "aria-hidden": !0,- children: "→"- }),- /* @__PURE__ */ (0, L.jsx)("span", {- "data-middle-truncate": !0,- title: e.target_path,- className: "min-w-0 truncate text-text-primary",- children: Hk(e.target_path)- })- ]- }, e.current_path))- }), e.truncated ? /* @__PURE__ */ (0, L.jsx)("p", {- className: "text-caption-1-regular text-text-secondary",- children: "只列出前 8 行,完整计划在计划 CSV 里。"- }) : null] });+//#region src/react/index/index-people.tsx+function WM({ html: e, face: t, company: n, big: r }) {+ let i = (0, I.useRef)(null);+ return (0, I.useLayoutEffect)(() => {+ t ? i.current?.style.setProperty("--face", t) : i.current?.style.removeProperty("--face");+ }, [t]), /* @__PURE__ */ (0, L.jsx)("span", {+ ref: i,+ "data-person-ring": "",+ "data-fit-native": n ? "mark" : "portrait",+ className: `relative inline-grid flex-none place-items-center self-center overflow-hidden text-title-1-regular ${r ? n ? "aspect-square w-full rounded-2lg" : "aspect-3/4 w-full rounded-2lg" : "size-17.5 rounded-full"} [&_img]:absolute [&_img]:inset-0 [&_img]:block [&_img]:size-full [&_img]:max-w-none [&_img]:object-cover [&_img]:object-(--face)`,+ dangerouslySetInnerHTML: { __html: e }+ });}-function Gj({ toast: t, failure: n }) {- let r = Nt({- queryKey: Pk,- queryFn: ({ signal: e }) => Fk(e)- }), i = r.data, a = i?.locations ?? [], [o, s] = (0, I.useState)(""), c = a.some((e) => e.location === o) ? o : a[0]?.location ?? "", l = i?.templates?.[c], [u, d] = (0, I.useState)(null), f = u?.location === c ? u : {- location: c,- file: l?.file ?? "",- dir: l?.dir ?? ""- }, p = (e) => d({- ...f,- ...e- }), [h, _] = (0, I.useState)(null), v = (0, I.useRef)(null), y = (0, I.useRef)(null), b = () => ({- location: c,- file_template: f.file.trim(),- dir_template: f.dir.trim()- }), x = Pt({- mutationFn: Lk,- onSuccess: (e, t) => void zk({- ...i?.templates ?? {},- [t.location]: {- file: t.file_template,- dir: t.dir_template- }+var GM = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";+function KM({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {+ return /* @__PURE__ */ (0, L.jsxs)("button", {+ type: "button",+ ...a,+ "data-index-cell": "",+ onClick: i,+ className: aw({+ radius: "plain",+ padding: "none",+ interactive: !0,+ className: `${GM} ${n ? "items-stretch text-left" : "items-center text-center"}`}),- onError: (e) => {- let t = Vk.test(K(e)) ? "dir" : "file";- _(t), (t === "dir" ? y : v).current?.focus();- }- }), S = fj({- queryKey: Pk,- queryFn: ({ signal: e }) => Fk(e),- start: Rk,- jobOf: (e) => e,- withJob: Bk,- onStarted: () => x.reset(),- onFinish: (e) => {- if (X.invalidateQueries({- queryKey: Pk,- exact: !0- }), e.status !== "complete") return;- let { text: r, failed: i } = Gk(e);- i ? n("按模板整理", /* @__PURE__ */ Error(`${i} 行未能处理`)) : t(r.replace(/。$/, ""));- }- }), C = S.running || S.start.isPending, w = x.data, T = Number(w?.counts?.change || 0), E = e[c] || c, D = (i?.placeholders ?? []).map((e) => `{${e.key}} ${e.label}`).join(" · "), O = () => {- x.isPending || !c || (_(null), x.mutate(b()));- }, k = () => void g({- title: "按模板整理文件",- body: Vj(E),- confirmLabel: "整理文件",- onConfirm: () => S.start.mutateAsync({- kind: "apply",- request: b()- })- }), A = () => void g({- title: "回滚上一批整理",- body: Hj,- confirmLabel: "回滚整理",- onConfirm: () => S.start.mutateAsync({ kind: "rollback" })- }), j = null, M = S.job, N = S.outcome;- if (M?.status === "running") {- let e = M.message || M.stage || "正在整理文件…";- j = M.total ? /* @__PURE__ */ (0, L.jsxs)("div", {- className: "flex flex-col gap-1.5",- children: [/* @__PURE__ */ (0, L.jsx)(zw, {- label: e,- value: M.checked || 0,- max: M.total- }), /* @__PURE__ */ (0, L.jsx)("p", {- className: "text-caption-1-regular text-text-secondary",- children: e- })]- }) : /* @__PURE__ */ (0, L.jsx)(Iw, { label: e });- } else if (N?.status === "failed") j = /* @__PURE__ */ (0, L.jsx)(J, {- tone: "error",- title: "任务失败",- children: N.error || "任务失败"- });- else if (N) {- let { text: e, failed: t } = Gk(N);- j = /* @__PURE__ */ (0, L.jsx)(J, {- tone: t ? "warning" : "success",- title: t ? "部分完成" : "整理结果",- children: e- });- } else S.start.isError ? j = /* @__PURE__ */ (0, L.jsx)(J, {- tone: "error",- title: "整理失败",- children: K(S.start.error)- }) : x.isPending ? j = /* @__PURE__ */ (0, L.jsx)(Iw, { label: "正在按模板算计划…" }) : x.isError ? j = /* @__PURE__ */ (0, L.jsx)(J, {- tone: "error",- title: "模板不可用",- children: K(x.error)- }) : w && (j = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(J, {- tone: "neutral",- title: "预览结果",- children: Wk(w)- }), T ? /* @__PURE__ */ (0, L.jsx)(Wj, { plan: w }) : null] }));- return /* @__PURE__ */ (0, L.jsxs)(AA, {- layout: "stack",- id: "organize",- labelledBy: "cleanup-organize-title",- attributes: { "data-cleanup-organize": "" },- footer: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [- /* @__PURE__ */ (0, L.jsx)(G, {- disabled: !a.length,- ...Y(x.isPending),- onClick: O,- children: "预览"- }),- T && !C && !S.outcome ? /* @__PURE__ */ (0, L.jsx)(G, {- onClick: k,- children: "执行整理"- }) : null,- i?.last_batch ? /* @__PURE__ */ (0, L.jsx)(G, {- variant: "secondary",- ...Y(C),- onClick: A,- children: "回滚上一批"- }) : null- ] }),children: [- /* @__PURE__ */ (0, L.jsx)(kA, {- id: "cleanup-organize-title",- gap: "medium",- children: "整理"- }),- /* @__PURE__ */ (0, L.jsx)("p", {- className: "text-body-regular text-text-secondary",- children: "按模板给文件改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。"- }),- r.isError ? /* @__PURE__ */ (0, L.jsx)("div", {- className: "mt-3",- children: /* @__PURE__ */ (0, L.jsx)(J, {- tone: "error",- title: "读取失败",- children: K(r.error)- })- }) : null,- /* @__PURE__ */ (0, L.jsxs)("div", {- className: "mt-3 flex flex-col gap-3",- children: [- a.length ? /* @__PURE__ */ (0, L.jsx)(sj, {- "aria-label": "整理哪个来源",- className: "w-fit min-w-25",- selectedKey: c || null,- onSelectionChange: (e) => {- e !== null && (s(String(e)), _(null), x.reset());- },- children: a.map((t) => /* @__PURE__ */ (0, L.jsxs)(cj, {- id: t.location,- textValue: e[t.location] || t.location,- children: [/* @__PURE__ */ (0, L.jsx)(KA, { mark: m[t.location] || "database" }), e[t.location] || t.location]- }, t.location))- }) : null,- /* @__PURE__ */ (0, L.jsx)(Bj, {- label: "文件名模板",- placeholder: "{number}[ {title}]",- value: f.file,- ref: v,- spellCheck: "false",- isInvalid: h === "file",- onChange: (e) => {- p({ file: e }), _(null);- }- }),- /* @__PURE__ */ (0, L.jsx)(Bj, {- label: "目录模板",- placeholder: "留空表示原地改名",- value: f.dir,- ref: y,- spellCheck: "false",- isInvalid: h === "dir",- onChange: (e) => {- p({ dir: e }), _(null);- }- }),- i?.presets?.length ? /* @__PURE__ */ (0, L.jsx)("div", {- className: "flex flex-wrap gap-2",- children: i.presets.map((e) => /* @__PURE__ */ (0, L.jsx)(G, {- variant: "secondary",- onClick: () => {- p({- file: e.file,- dir: e.dir- }), _(null);- },- children: e.label- }, e.label))- }) : null,- /* @__PURE__ */ (0, L.jsx)("p", {- className: "text-caption-1-regular leading-4.5 text-text-secondary",- children: `${D};方括号里的内容在字段为空时整段省略。`- })- ]+ r,+ /* @__PURE__ */ (0, L.jsx)("span", {+ "data-index-name": "",+ className: "text-body-medium break-all text-text-primary",+ children: e}),- /* @__PURE__ */ (0, L.jsx)("div", {- "aria-live": "polite",- className: "mt-3 flex flex-col gap-2 empty:hidden",- children: j+ /* @__PURE__ */ (0, L.jsx)("span", {+ "data-index-readout": "",+ className: "text-caption-1-regular",+ children: t})]});}-//#endregion-//#region src/react/data-cleanup/resource-sync-card.tsx-var Kj = gT("git-compare"), qj = gT("rotate-cw"), Jj = "暂时无法读取进度,正在重新连接…", Yj = "清理失效条目", Xj = "inline-grid w-full grid-flow-col auto-cols-fr gap-4 max-plain-stat-pair:grid-flow-row max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1", Zj = (e) => Number(e || 0).toLocaleString();-function Qj({ scan: e }) {- let t = e.cache ?? {- files: 0,- bytes: 0- };- return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("div", {- className: Xj,- children: (e.sources ?? []).map((e) => /* @__PURE__ */ (0, L.jsx)("article", {- className: vA(),- children: /* @__PURE__ */ (0, L.jsx)(yA, {- label: rA[e.location] || "媒体来源",- mark: /* @__PURE__ */ (0, L.jsx)(KA, { mark: m[e.location] ?? "database" }),- aside: /* @__PURE__ */ (0, L.jsx)("span", {- className: e.online ? "text-notification-success-foreground" : "text-text-error-primary",- children: e.online ? "可访问" : "离线,已跳过"- }),- figure: e.online ? `${Zj(e.missing)} 项` : "—",- meta: aoe(e),- wrapMeta: !0- })- }, e.location))- }), /* @__PURE__ */ (0, L.jsxs)("div", {- className: Xj,- children: [- /* @__PURE__ */ (0, L.jsx)("article", {- className: vA(),- children: /* @__PURE__ */ (0, L.jsx)(yA, {- label: "待永久删除",- figure: `${Zj(e.missing)} 项`,- meta: "文件已不在盘上,含回收站"- })- }),- /* @__PURE__ */ (0, L.jsx)("article", {- className: vA(),- children: /* @__PURE__ */ (0, L.jsx)(yA, {- label: "空文件夹",- figure: `${Zj(e.empty)} 个`,- meta: "保留来源根目录"- })- }),- /* @__PURE__ */ (0, L.jsx)("article", {- className: vA(),- children: /* @__PURE__ */ (0, L.jsx)(yA, {- label: "可清理的缓存",- figure: `${Zj(t.files)} 个`,- meta: t.files ? a(t.bytes) : ""+function qM({ kind: e, items: t, layout: n, props: r }) {+ let i = EM[e], a = jM(e), o = n === "big";+ return /* @__PURE__ */ (0, L.jsx)("div", {+ "data-index-grid": "",+ "data-layout": n,+ "data-cells": a ? "company" : "people",+ className: `${a ? "index-grid-company" : "index-grid-person"} gap-3`,+ children: t.map((t) => {+ let n = r.personAvatar(t, i, o);+ return /* @__PURE__ */ (0, L.jsx)(KM, {+ "data-k": t.k,+ "data-kind": i,+ name: t.k,+ readout: VM(e, t),+ big: o,+ onPress: () => r.openEntity(i, t.k),+ children: /* @__PURE__ */ (0, L.jsx)(WM, {+ html: n.html,+ face: n.face,+ company: a,+ big: o})- })- ]- })] });-}-function joe({ toast: e }) {- let t = fj({- queryKey: Yk,- queryFn: ({ signal: e }) => Qk(e),- start: $k,- onFinish: (t) => {- if (X.invalidateQueries({- queryKey: dA,- exact: !0- }), X.invalidateQueries({- queryKey: Jk,- exact: !0- }), t.status !== "complete") return;- let { done: n, left: r } = sA(t);- r ? e(`已完成 ${Zj(n)} 项,${Zj(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");- }- }), n = fj({- queryKey: Jk,- queryFn: ({ signal: e }) => Xk(e),- start: Zk,- onStarted: () => t.dismiss()- }), r = n.job, i = n.running || n.start.isPending, o = t.running || t.start.isPending, s = r?.status === "complete" || r?.status === "failed", c = i ? "扫描中" : s ? "重新扫描" : "检查文件", l = (e) => void g({- title: Yj,- body: ioe(e),- confirmLabel: Yj,- danger: !0,- onConfirm: () => t.start.mutateAsync(e.scan_id || "")- }), u = t.outcome, d = (e) => {- let t = sA(e).left > 0;- return /* @__PURE__ */ (0, L.jsx)(J, {- tone: t ? "warning" : "success",- title: t ? "部分完成" : "清理结果",- children: ooe(e, a)- });- }, f = null;- if (u?.status === "failed") f = /* @__PURE__ */ (0, L.jsx)(J, {- tone: "error",- title: "任务失败",- children: u.error || "任务失败"- });- else if (u) f = d(u);- else if (t.running) f = /* @__PURE__ */ (0, L.jsx)(Iw, { label: t.job?.message || "正在复核并清理失效条目…" });- else if (n.start.isError) f = /* @__PURE__ */ (0, L.jsx)(J, {- tone: "error",- title: "扫描失败",- children: K(n.start.error)- });- else if (n.query.isError && r) f = /* @__PURE__ */ (0, L.jsx)(J, {- tone: "neutral",- title: "任务状态",- children: Jj- });- else if (r?.status === "running") {- let e = aA(r);- f = /* @__PURE__ */ (0, L.jsx)("div", {- className: "flex flex-col gap-1.5 rounded-2lg border border-separator-border px-4 py-3.5",- children: r.total_sources ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(zw, {- label: e,- value: r.completed_sources || 0,- max: r.total_sources- }), /* @__PURE__ */ (0, L.jsx)("p", {- className: "text-caption-1-regular text-text-secondary",- children: e- })] }) : /* @__PURE__ */ (0, L.jsx)(Iw, { label: "正在检查本地磁盘和网盘…" })- });- } else if (r?.status === "failed") f = /* @__PURE__ */ (0, L.jsx)(J, {- tone: "error",- title: "扫描失败",- children: r.error || "后台扫描失败"- });- else if (r?.status === "complete" && r.applied) f = t.job?.status === "complete" ? d(t.job) : /* @__PURE__ */ (0, L.jsx)(J, {- tone: "neutral",- title: "清理结果",- children: "这次检查的结果已经清理,重新扫描可再核对。"+ }, t.k);+ })});- else if (r?.status === "complete") {- let e = nA(r);- f = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [- /* @__PURE__ */ (0, L.jsx)(Qj, { scan: r }),- e ? /* @__PURE__ */ (0, L.jsx)(J, {- tone: "neutral",- title: "清理内容",- children: oA(r)- }) : null,- /* @__PURE__ */ (0, L.jsx)("div", {- className: "flex flex-wrap items-center justify-end gap-2",- children: e ? /* @__PURE__ */ (0, L.jsx)(G, {- variant: "danger",- ...Y(o),- onClick: () => l(r),- children: o ? "正在复核并清理…" : Yj- }) : /* @__PURE__ */ (0, L.jsx)("p", {- className: "mr-auto text-body-regular text-notification-success-foreground",- children: "已检查可访问的来源,没有待清理的记录、空文件夹或缓存。"- })- })- ] });- }- return t.start.isError && !u && (f = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [f, /* @__PURE__ */ (0, L.jsx)(J, {- tone: "error",- title: "清理失败",- children: K(t.start.error)- })] })), /* @__PURE__ */ (0, L.jsxs)("section", {- id: "resource-sync",- "aria-labelledby": "resource-sync-title",- className: "flex scroll-mt-20 flex-col gap-4",- children: [- /* @__PURE__ */ (0, L.jsx)(OA, {- id: "resource-sync-title",- children: "资源同步"- }),- /* @__PURE__ */ (0, L.jsxs)(AA, {- layout: "split",- labelledBy: "resource-sync-box",- footer: /* @__PURE__ */ (0, L.jsx)(G, {- "data-resource-scan": !0,- leadingIcon: s && !i ? qj : Kj,- ...Y(i),- onClick: () => {- i || n.start.mutate();- },- children: c- }),- children: [/* @__PURE__ */ (0, L.jsx)(kA, {- id: "resource-sync-box",- gap: "small",- children: "文件与记录核对"- }), /* @__PURE__ */ (0, L.jsx)("p", {- className: "max-w-190 text-body-2-regular leading-5 text-text-secondary",- children: "按馆藏记录逐条查找本地磁盘与网盘上的文件,列出文件已不存在的记录、空文件夹,以及不再被引用的缓存。"- })]- }),- /* @__PURE__ */ (0, L.jsx)("div", {- "aria-live": "polite",- className: "flex flex-col gap-4 empty:hidden",- children: f+}+function JM({ items: e, layout: t, props: n }) {+ let r = t === "big";+ return /* @__PURE__ */ (0, L.jsx)("div", {+ "data-index-grid": "",+ "data-layout": t,+ "data-cells": "people",+ className: "index-grid-person gap-3",+ children: e.map((e) => /* @__PURE__ */ (0, L.jsx)(KM, {+ "data-follow-author": e.key,+ "data-kind": "performer",+ name: e.k,+ readout: `${e.n.toLocaleString()} 项更新`,+ big: r,+ onPress: () => n.openFollowAuthor(e.key),+ children: /* @__PURE__ */ (0, L.jsx)(WM, {+ html: n.authorAvatar(e),+ company: !1,+ big: r})- ]+ }, e.key))});}//#endregion-//#region src/react/data-cleanup/data-cleanup-page.tsx-function $j(e, t) {- return e.data === void 0 ? { figure: e.isError ? "读取失败" : "—" } : t(e.data);-}-function eM({ section: e, label: t, icon: n, value: r, open: i }) {- return /* @__PURE__ */ (0, L.jsx)("button", {- type: "button",- className: vA({ interactive: !0 }),- "data-cleanup-go": e,- onClick: () => i(e),- children: /* @__PURE__ */ (0, L.jsx)(yA, {- label: t,- icon: n,- figure: r.figure,- meta: r.meta- })- });-}-var Moe = gT("square-check-big"), Noe = gT("sparkles"), Poe = gT("file-stack"), Foe = gT("file-archive"), Ioe = gT("trash"), Loe = [- cA,- JO,- OO-], Roe = () => {- for (let e of Loe) X.invalidateQueries({- queryKey: e,- exact: !0- });-};-function zoe({ toast: e, failure: t, open: n }) {- let r = Nt({- queryKey: cA,- queryFn: ({ signal: e }) => fA(e)- }), i = Nt({- queryKey: JO,- queryFn: ({ signal: e }) => YO(e)- }), o = Nt({- queryKey: OO,- queryFn: ({ signal: e }) => kO(e)- }), s = Nt({- queryKey: lA,- queryFn: ({ signal: e }) => pA(e)- }), c = Nt({- queryKey: dA,- queryFn: ({ signal: e }) => mA(e)- }), l = Nt({- queryKey: TO,- queryFn: ({ signal: e }) => EO(e)- }), u = (t) => e(t);- return /* @__PURE__ */ (0, L.jsxs)(Lw, { children: [- /* @__PURE__ */ (0, L.jsxs)("div", {- className: _oe,- children: [- /* @__PURE__ */ (0, L.jsx)(eM, {- section: "review",- label: "人工复核",- icon: Moe,- open: n,- value: $j(r, uoe)- }),- /* @__PURE__ */ (0, L.jsx)(eM, {- section: "quality",- label: "高清版",- icon: Noe,- open: n,- value: $j(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))- }),- /* @__PURE__ */ (0, L.jsx)(eM, {- section: "duplicates",- label: "重复文件",- icon: Poe,- open: n,- value: $j(o, (e) => Number(e.total || 0) ? {- figure: `${Number(e.total).toLocaleString()} 组 · ${Number(e.files || 0).toLocaleString()} 个文件`,- meta: `可回收 ${a(e.reclaimable || 0)}`- } : { figure: "没有重复内容" })- }),- /* @__PURE__ */ (0, L.jsx)(eM, {- section: "ads",- label: "垃圾文件",- icon: Foe,- open: n,- value: $j(s, (e) => ({- figure: `${Number(e.pending_total || 0).toLocaleString()} 个待判断`,- meta: doe(e)- }))- }),- /* @__PURE__ */ (0, L.jsx)(eM, {- section: "trash",- label: "回收站",- icon: Ioe,- open: n,- value: $j(c, (e) => ({- figure: `${Number(e.total || 0).toLocaleString()} 项在回收站`,- meta: e.total ? `占用 ${a(e.bytes || 0)}` : ""- }))- })- ]- }),- /* @__PURE__ */ (0, L.jsxs)("div", {- className: "flex flex-col gap-4 max-cleanup-tight:gap-3",- children: [- /* @__PURE__ */ (0, L.jsx)("div", {- id: "libraryProcessing",- className: "scroll-mt-20",- children: /* @__PURE__ */ (0, L.jsx)(tj, {- toast: u,- monitor: !0,- onComplete: Roe- })- }),- /* @__PURE__ */ (0, L.jsx)("div", {- id: "mediaRepair",- children: /* @__PURE__ */ (0, L.jsx)(hj, {})- }),- /* @__PURE__ */ (0, L.jsx)(Gj, {- toast: u,- failure: t- })- ]- }),- /* @__PURE__ */ (0, L.jsx)(Nj, {}),- eA(l.data) ? /* @__PURE__ */ (0, L.jsx)(joe, { toast: e }) : null- ] });+//#region src/board-controls.ts+function YM(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}%`);+ let a = e.closest(".dual-range");+ if (!a) return;+ let o = e.id === "durMax" ? "max" : "min", s = a.querySelector(`[data-range-end="${o}"]`);+ s || (s = document.createElement("output"), s.className = "board-range-tip", s.dataset.rangeEnd = o, s.setAttribute("aria-hidden", "true"), a.append(s)), s.textContent = r >= n && o === "max" ? "不限" : `${r} 分钟`, s.style.left = `${i}%`, s.style.setProperty("--range-tip-shift", "0px");+ let c = a.getBoundingClientRect(), l = s.getBoundingClientRect(), u = l.right > c.right ? c.right - l.right : l.left < c.left ? c.left - l.left : 0;+ u && s.style.setProperty("--range-tip-shift", `${Math.round(u)}px`), a.querySelectorAll(".board-range-tip").forEach((e) => e.toggleAttribute("data-range-active", e === s));}//#endregion-//#region src/react/components/collection-summary.tsx-function tM({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {- return /* @__PURE__ */ (0, L.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- max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4- dark:bg-background-primary-default`,- children: [/* @__PURE__ */ (0, L.jsxs)("div", {- className: "flex min-w-0 flex-col gap-2",- children: [/* @__PURE__ */ (0, L.jsx)("span", {- className: "text-body-regular text-text-secondary",- children: e- }), /* @__PURE__ */ (0, L.jsx)("strong", {- className: "text-display-4-medium tabular-nums text-text-primary",- children: r ? /* @__PURE__ */ (0, L.jsx)("span", {- "data-skeleton": "count",- "aria-hidden": !0,- className: "relative inline-block h-8 w-24 rounded-2lg align-middle skeleton-sheen"- }) : t- })]- }), n ? /* @__PURE__ */ (0, L.jsx)("p", {- className: "text-body-regular text-text-secondary",- children: n- }) : null]- });+//#region src/react/photo-lightbox/photo-lightbox.ts+var XM = "/vendor/swiper/14.2.0/", ZM = null, QM = () => ZM ??= Promise.all([new Promise((e, t) => {+ let n = `${XM}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);+ if (r?.sheet) {+ e();+ return;+ }+ let i = r ?? document.createElement("link");+ i.rel = "stylesheet", i.href = n, i.addEventListener("load", () => e(), { once: !0 }), i.addEventListener("error", () => t(/* @__PURE__ */ Error("swiper styles unavailable")), { once: !0 }), r || document.head.append(i);+}), new Promise((e, t) => {+ let n = window.Swiper;+ if (n) {+ e(n);+ return;+ }+ let r = document.createElement("script");+ r.src = `${XM}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 ZM = null, e;+});+function $M(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);+ }, o = (i) => {+ if (t.destroyed || !e.isConnected) return;+ let o = a(), s = i === "fit" ? o : Math.min(400, Math.max(10, Number(i) || o));+ r = i === "fit" ? "fit" : s, n(Math.round(s));+ let c = s / o;+ Math.abs(c - 1) < .001 ? t.zoom.out() : t.zoom.in(c);+ }, s = () => requestAnimationFrame(() => o("fit"));+ return t.on("slideChange", s), t.on("zoomChange", (e, t) => {+ t && n(Math.round(a() * t));+ }), s(), {+ apply: o,+ resize: () => o(r),+ loaded: (e) => {+ e === i() && o(r);+ }+ };}-//#endregion-//#region src/react/components/use-stuck.ts-function nM(e) {- (0, I.useEffect)(() => {- let t = e.current;- if (!t) return;- let n = 0, r = () => {- n = 0;- let e = parseFloat(getComputedStyle(t).top), r = window.scrollY > 0 && Number.isFinite(e) && t.getBoundingClientRect().top <= e + 1;- t.toggleAttribute("data-stuck", r);- }, i = () => {- n ||= requestAnimationFrame(r);- };- return r(), addEventListener("scroll", i, { passive: !0 }), addEventListener("resize", i), () => {- cancelAnimationFrame(n), removeEventListener("scroll", i), removeEventListener("resize", i);- };- }, [e]);+var eN = (e) => {+ let t = Number(e) || 0;+ return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : a(t)).replace(" ", "\xA0") : "大小未知";+}, tN = (e) => e.asset?.name || e.name || "未命名图片";+function nN(t, n) {+ let r = t.asset;+ if (r) return [e[r.location ?? ""] || r.location || "来源未知", eN(r.size)].join(" · ");+ let i = (t.total ?? 0) > 1 ? `第 ${t.position} / ${t.total} 张` : "", a = n?.[0] && n[1] ? `${n[0]} × ${n[1]}` : "";+ return [+ t.source || "在线图片",+ i,+ a,+ t.size ? eN(t.size) : ""+ ].filter(Boolean).join(" · ");}//#endregion-//#region src/react/components/filter-glass.tsx-function Boe({ title: e, children: t }) {- let n = (0, I.useRef)(null);- return nM(n), /* @__PURE__ */ (0, L.jsxs)("div", {- ref: n,- role: "group",- "aria-label": e,- "data-filter-glass": !0,- "data-glass-pane": "",- className: "sticky top-topbar z-10 mb-5.5 flex flex-wrap items-center gap-x-2.5 gap-y-2 px-4 py-2.5",- children: [/* @__PURE__ */ (0, L.jsx)("h3", {- className: "mr-1 text-body-medium",- children: e- }), t]- });-}-function rM({ 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, I.useRef)(null);- return nM(d), /* @__PURE__ */ (0, L.jsxs)("div", {- ref: d,- role: "group",- "aria-label": e,- "data-filter-glass": !0,- "data-glass-pane": "",- ...c,- className: _w("sticky top-topbar z-10 mb-5.5 flex flex-col", i),- children: [- s,- /* @__PURE__ */ (0, L.jsx)("div", {- role: "group",- "aria-label": t,- "data-filter-row": "top",- className: _w("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),- children: n- }),- /* @__PURE__ */ (0, L.jsx)("div", {- ref: u,- "data-filter-row": "bottom",- "aria-busy": l || void 0,- className: _w("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),- children: r- })- ]- });+//#region src/react/photo-lightbox/photo-lightbox-dialog.tsx+var rN = null, iN = null, aN = 0;+function oN() {+ return (!iN || !rN?.isConnected) && (iN?.unmount(), rN = document.createElement("div"), rN.className = "peach-react", rN.dataset.photoLightboxHost = "", document.body.append(rN), iN = (0, SS.createRoot)(rN)), iN;}-var Voe = "flex h-7.5 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 iM({ children: e, pressed: t, onPress: n, className: r, ...i }) {- return /* @__PURE__ */ (0, L.jsx)("button", {- type: "button",- ...i,- "aria-pressed": t,- className: _w(Voe, r),- onClick: n,- children: e- });+async function sN(e, t, n) {+ if (!t.length || e < 0 || e >= t.length) return;+ let r;+ try {+ r = await QM();+ } catch {+ window.open(t[e].src, "_blank", "noopener");+ return;+ }+ let i = oN();+ (0, Th.flushSync)(() => i.render(/* @__PURE__ */ (0, L.jsx)(lN, {+ slides: t,+ index: e,+ Swiper: r,+ host: n ?? null+ }, ++aN)));}-var Hoe = "h-7.5 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none hover:border-(--glass-rim) hover:bg-(--glass-pick-fill) focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";-function aM({ children: e, onPress: t, busy: n = !1 }) {- return /* @__PURE__ */ (0, L.jsx)("button", {- type: "button",- className: Hoe,- "aria-busy": n || void 0,- "aria-disabled": n || void 0,- onClick: () => {- n || t();- },- children: e- });+function cN() {+ iN && (0, Th.flushSync)(() => iN.render(null));}-//#endregion-//#region src/react/duplicates/duplicates-page.tsx-var Uoe = gT("play"), Woe = gT("file-stack"), Goe = Nw({- padding: "none",- radius: "surface",- className: "mb-6 overflow-hidden dark:bg-background-primary-default"-}), oM = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", sM = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", cM = "font-mono text-caption-1-regular leading-5 text-text-secondary", lM = () => {- X.invalidateQueries({- queryKey: OO,- exact: !0- }), X.invalidateQueries({- queryKey: dA,- exact: !0- });-};-function Koe(e) {- return e.identical ? /* @__PURE__ */ (0, L.jsx)("span", {- className: `${sM} text-(--keep)`,- children: "sha1 一致"- }) : /* @__PURE__ */ (0, L.jsx)("span", {- className: `${sM} text-text-secondary`,- children: e.evidence === "same_code_short_copy" ? "同番号短版本" : "时长推断"+function lN({ slides: e, index: t, Swiper: n, host: r }) {+ let i = e.length > 1, a = (0, I.useId)(), o = (0, I.useRef)(null), c = (0, I.useRef)(null), l = (0, I.useRef)(null), u = (0, I.useRef)(null), d = (0, I.useRef)(null), f = (0, I.useRef)(null), p = (0, I.useRef)(null), m = (0, I.useRef)(null), h = (0, I.useRef)(null), g = (0, I.useRef)(null), _ = (0, I.useRef)(null), [v, y] = (0, I.useState)(t), [b, x] = (0, I.useState)(100), [S, C] = (0, I.useState)({}), [w, T] = (0, I.useState)(() => /* @__PURE__ */ new Set()), [E, O] = (0, I.useState)(!1), [j, M] = (0, I.useState)({+ at: t,+ text: ""});-}-function qoe({ file: t, openItem: n }) {- let r = () => n(t.id);- return /* @__PURE__ */ (0, L.jsxs)("div", {- className: "duplicate-row items-center gap-3 border-t border-separator-border px-5 py-4 max-compact:p-4",+ (0, I.useLayoutEffect)(() => {+ let e = o.current;+ e.showModal(), document.body.classList.add("photolight-open");+ let r = new n(l.current, {+ slidesPerView: "auto",+ spaceBetween: 8,+ freeMode: !0,+ watchSlidesProgress: !0,+ centeredSlides: !0,+ slideToClickedSlide: !0+ }), i = (e, t = 200) => r.slideTo(e, t), a = new n(c.current, {+ initialSlide: t,+ zoom: {+ minRatio: .01,+ maxRatio: 100+ },+ keyboard: { enabled: !0 },+ lazyPreloadPrevNext: 1,+ mousewheel: {+ enabled: !0,+ forceToAxis: !1+ },+ thumbs: { swiper: r },+ pagination: {+ el: u.current,+ clickable: !0,+ dynamicBullets: !0,+ dynamicMainBullets: 3,+ renderBullet: (e, t) => `<button type="button" class="${t}" aria-label="查看第 ${e + 1} 张图片"></button>`+ },+ navigation: {+ prevEl: d.current,+ nextEl: f.current+ },+ on: { slideChange() {+ y(this.activeIndex), i(this.activeIndex);+ } }+ });+ i(t, 0), g.current = $M(e, a, x);+ let s = A(e, p.current, m.current), h = (e = !1) => {+ s.hide(), p.current?.setAttribute("aria-expanded", "false"), e && p.current && document.contains(p.current) && p.current.focus();+ };+ _.current = {+ dismiss: h,+ dismissOutside: (e) => {+ let t = e instanceof Node ? e : null;+ return !s.isOpen() || p.current.contains(t) || m.current.contains(t) ? !1 : (h(), !0);+ },+ isOpen: s.isOpen+ };+ let v = new ResizeObserver(() => {+ a.update(), r.update(), g.current?.resize();+ });+ v.observe(e);+ let b = (e) => {+ e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), _.current?.isOpen() ? _.current.dismiss(!0) : cN());+ };+ return document.addEventListener("keydown", b, !0), () => {+ document.removeEventListener("keydown", b, !0), h(), v.disconnect(), a.destroy(!0, !0), r.destroy(!0, !0), g.current = null, _.current = null, e.close(), document.body.classList.remove("photolight-open");+ };+ }, []), (0, I.useLayoutEffect)(() => {+ h.current && YM(h.current);+ }, [b]);+ let N = e[v], ee = N.asset ?? null, te = async (e) => {+ if (!ee || !r || e.getAttribute("aria-busy") === "true") return;+ let t = v;+ D(e), O(!0), M({+ at: t,+ text: ""+ });+ try {+ M({+ at: t,+ text: await r.revealSource(ee.id)+ });+ } finally {+ D(e, !1), O(!1);+ }+ }, P = (e, t) => {+ t.naturalWidth && t.naturalHeight && !S[e] && C((n) => ({+ ...n,+ [e]: [t.naturalWidth, t.naturalHeight]+ })), g.current?.loaded(t);+ }, ne = (t) => {+ w.has(t) || !e[t].thumb || e[t].thumb === e[t].src || T((e) => new Set(e).add(t));+ }, F = (e) => g.current?.apply(e);+ return /* @__PURE__ */ (0, L.jsxs)("dialog", {+ ref: o,+ "aria-label": "图片浏览",+ "data-photo-lightbox": "",+ "data-has-strip": i ? "" : void 0,+ onCancel: (e) => {+ e.preventDefault(), cN();+ },+ onClick: (e) => {+ let t = e.target;+ _.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && cN();+ },children: [- /* @__PURE__ */ (0, L.jsxs)("button", {+ /* @__PURE__ */ (0, L.jsx)("button", {type: "button",- onClick: r,- "aria-label": `预览 ${t.name}`,- className: "relative row-span-2 inline-grid aspect-16/10 w-full cursor-pointer place-items-center overflow-hidden rounded-2lg bg-background-tertiary-default text-text-secondary",- children: [/* @__PURE__ */ (0, L.jsx)(Uoe, {- "aria-hidden": !0,- className: "size-6"- }), /* @__PURE__ */ (0, L.jsx)("img", {- src: `/thumb?id=${t.id}&c=4`,- alt: "",- loading: "lazy",- onError: (e) => e.currentTarget.remove(),- className: "absolute inset-0 size-full object-contain"- })]- }),- /* @__PURE__ */ (0, L.jsxs)("span", {- className: "flex min-w-0 items-center gap-2 max-duplicate-narrow:col-start-2 max-duplicate-narrow:-col-end-1",- children: [/* @__PURE__ */ (0, L.jsx)("button", {- type: "button",- onClick: r,- title: t.name,- "data-middle-truncate": !0,- "data-middle-truncate-within": !0,- className: "min-w-0 shrink cursor-pointer truncate text-left text-body-regular hover:text-text-secondary",- children: t.name- }), t.is_largest || t.is_longest ? /* @__PURE__ */ (0, L.jsxs)("span", {- className: "flex flex-none gap-1",- children: [t.is_largest ? /* @__PURE__ */ (0, L.jsx)("i", {- className: `${oM} not-italic bg-background-primary-hover text-text-secondary`,- children: "最大"- }) : null, t.is_longest ? /* @__PURE__ */ (0, L.jsx)("i", {- className: `${oM} not-italic bg-(--keep)/22 text-(--keep)`,- children: "最长"- }) : null]- }) : null]+ "data-photo-close": "",+ "aria-label": "关闭",+ onClick: cN,+ dangerouslySetInnerHTML: { __html: s("x") }}),- /* @__PURE__ */ (0, L.jsxs)("span", {- className: `${cM} flex min-w-0 items-center gap-1.5`,- children: [/* @__PURE__ */ (0, L.jsx)(KA, { mark: m[t.location] || "database" }), /* @__PURE__ */ (0, L.jsx)("span", {- className: "whitespace-nowrap",- children: e[t.location] || t.location || t.drive- })]+ /* @__PURE__ */ (0, L.jsxs)("div", {+ ref: c,+ className: "swiper",+ "data-photo-main": "",+ role: "region",+ "aria-roledescription": "轮播",+ "aria-label": "图片浏览",+ children: [+ /* @__PURE__ */ (0, L.jsx)("div", {+ className: "swiper-wrapper",+ children: e.map((e, t) => /* @__PURE__ */ (0, L.jsx)("div", {+ className: "swiper-slide",+ children: /* @__PURE__ */ (0, L.jsx)("div", {+ className: "swiper-zoom-container",+ children: /* @__PURE__ */ (0, L.jsx)("img", {+ src: w.has(t) ? e.thumb : e.src,+ alt: e.name ?? "",+ loading: "lazy",+ referrerPolicy: "no-referrer",+ onLoad: (e) => P(t, e.currentTarget),+ onError: () => ne(t)+ })+ })+ }, t))+ }),+ /* @__PURE__ */ (0, L.jsx)("button", {+ ref: d,+ type: "button",+ "data-photo-nav": "back",+ "aria-label": "上一张",+ dangerouslySetInnerHTML: { __html: s("chevron-left") }+ }),+ /* @__PURE__ */ (0, L.jsx)("button", {+ ref: f,+ type: "button",+ "data-photo-nav": "fwd",+ "aria-label": "下一张",+ dangerouslySetInnerHTML: { __html: s("chevron-left") }+ })+ ]}),- /* @__PURE__ */ (0, L.jsx)("span", {- className: cM,- children: a(t.size || 0)+ /* @__PURE__ */ (0, L.jsxs)("div", {+ "data-photo-bar": "",+ children: [+ /* @__PURE__ */ (0, L.jsx)("button", {+ ref: p,+ type: "button",+ "data-photo-detail-toggle": "",+ "aria-expanded": "false",+ "aria-controls": a,+ "aria-haspopup": "dialog",+ "aria-label": "图片详情",+ title: "图片详情",+ dangerouslySetInnerHTML: { __html: s("info") }+ }),+ /* @__PURE__ */ (0, L.jsxs)("div", { children: [/* @__PURE__ */ (0, L.jsx)("div", {+ "data-photo-count": "",+ "aria-live": "polite",+ children: `${v + 1} / ${e.length}`+ }), i ? /* @__PURE__ */ (0, L.jsx)("div", {+ ref: u,+ "data-photo-pagination": "",+ "aria-label": "选择图片"+ }) : null] }),+ /* @__PURE__ */ (0, L.jsxs)("div", {+ "data-photo-zoom": "",+ children: [+ /* @__PURE__ */ (0, L.jsx)("button", {+ type: "button",+ "data-zoom-step": "-1",+ "aria-label": "缩小",+ onClick: () => F(b - 10),+ dangerouslySetInnerHTML: { __html: s("zoom-out") }+ }),+ /* @__PURE__ */ (0, L.jsx)("input", {+ ref: h,+ type: "range",+ min: 10,+ max: 400,+ step: "1",+ value: b,+ "aria-label": "缩放",+ onChange: (e) => F(Number(e.currentTarget.value))+ }),+ /* @__PURE__ */ (0, L.jsx)("button", {+ type: "button",+ "data-zoom-step": "1",+ "aria-label": "放大",+ onClick: () => F(b + 10),+ dangerouslySetInnerHTML: { __html: s("zoom-in") }+ }),+ /* @__PURE__ */ (0, L.jsx)("b", {+ "data-photo-zoom-readout": "",+ children: `${b}%`+ }),+ /* @__PURE__ */ (0, L.jsx)("button", {+ type: "button",+ "data-photo-scale": "fit",+ "aria-label": "适应窗口",+ title: "适应窗口",+ onClick: () => F("fit"),+ dangerouslySetInnerHTML: { __html: s("maximize") }+ }),+ /* @__PURE__ */ (0, L.jsx)("button", {+ type: "button",+ "data-photo-scale": "original",+ "aria-label": "原大小",+ title: "原大小",+ onClick: () => F(100),+ children: "1:1"+ })+ ]+ })+ ]}),- /* @__PURE__ */ (0, L.jsx)("span", {- className: cM,- children: i(t.duration)+ /* @__PURE__ */ (0, L.jsxs)("section", {+ ref: m,+ id: a,+ "data-photo-detail": "",+ role: "dialog",+ "aria-modal": "false",+ "aria-labelledby": `${a}-title`,+ hidden: !0,+ children: [+ /* @__PURE__ */ (0, L.jsxs)("div", {+ "data-photo-detail-copy": "",+ children: [/* @__PURE__ */ (0, L.jsx)("h2", {+ id: `${a}-title`,+ "data-middle-truncate": "",+ tabIndex: -1,+ children: tN(N)+ }, v), /* @__PURE__ */ (0, L.jsx)("span", {+ "data-photo-detail-meta": "",+ children: nN(N, S[v])+ })]+ }),+ /* @__PURE__ */ (0, L.jsx)("button", {+ type: "button",+ "data-photo-reveal": "",+ hidden: !ee || !r,+ onClick: (e) => void te(e.currentTarget),+ dangerouslySetInnerHTML: { __html: (E ? k("正在定位") : s("folder-open")) + "<span>在资源管理器中显示</span>" }+ }),+ /* @__PURE__ */ (0, L.jsx)("span", {+ "data-photo-status": "",+ "aria-live": "polite",+ children: j.at === v ? j.text : ""+ })+ ]}),- /* @__PURE__ */ (0, L.jsx)("span", {- "data-middle-truncate": !0,- title: t.path ?? "",- className: `${cM} col-start-2 -col-end-1 min-w-0 truncate pt-0.5 max-duplicate-narrow:col-span-full`,- children: t.path ?? ""- })- ]- });-}-function Joe({ openItem: t, toast: n, failure: r }) {- let i = Nt({- queryKey: OO,- queryFn: ({ signal: e }) => kO(e)- }), o = Nt({- queryKey: TO,- queryFn: ({ signal: e }) => EO(e)- }), [s, c] = (0, I.useState)(""), l = Pt({- mutationFn: (e) => MO(e, "dispose"),- onSuccess: (e, t) => {- lM(), n(`已把 ${t.length} 项移入回收站`, { undo: async () => {- try {- await MO(t, "restore");- } catch (e) {- r("撤销移入回收站", e);- } finally {- lM();- }- } });- },- onSettled: () => c("")- }), u = i.data;- if (!u) return /* @__PURE__ */ (0, L.jsx)("div", {- className: "mx-auto w-full max-w-board",- children: /* @__PURE__ */ (0, L.jsx)(J, {- tone: "error",- title: "读取失败",- children: i.error ? K(i.error) : "读取重复文件失败"- })- });- let d = u.groups ?? [], f = gae(o.data), p = ({ groups: e, keep: t, key: n }) => {- if (l.isPending) return;- let r = Sae(e, t);- r.length && g({- title: "移入回收站",- body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${AO[t] ?? AO.largest}。文件共 ${a(Cae(e, r))},记录可从回收站还原。`,- confirmLabel: "移入回收站",- onConfirm: () => (c(n), l.mutateAsync(r))- });- }, m = (e) => Y(s === e && l.isPending);- return /* @__PURE__ */ (0, L.jsxs)("div", {- className: "mx-auto w-full max-w-board pb-10.5",- children: [- /* @__PURE__ */ (0, L.jsx)(tM, {- label: "重复内容",- figure: `${Number(u.total || 0).toLocaleString()} 组`,- detail: `${u.files} 个文件 · 可回收 ${a(u.reclaimable)}`- }),- d.length ? /* @__PURE__ */ (0, L.jsxs)(Boe, {- title: "批量保留",- children: [- /* @__PURE__ */ (0, L.jsx)(aM, {- busy: s === "all:largest",- onPress: () => p({- groups: d,- keep: "largest",- key: "all:largest"- }),- children: "全部保留最大"- }),- /* @__PURE__ */ (0, L.jsx)(aM, {- busy: s === "all:longest",- onPress: () => p({- groups: d,- keep: "longest",- key: "all:longest"- }),- children: "全部保留最长"- }),- xae(d, f).map((t) => /* @__PURE__ */ (0, L.jsx)(aM, {- busy: s === `all:${t}`,- onPress: () => p({- groups: d,- keep: t,- key: `all:${t}`- }),- children: `全部优先 ${e[t] || t}`- }, t))- ]- }) : null,- l.isError ? /* @__PURE__ */ (0, L.jsx)("div", {- className: "mb-5",- children: /* @__PURE__ */ (0, L.jsx)(J, {- tone: "error",- title: "移入回收站失败",- children: K(l.error)- })- }) : null,- d.length ? d.map((n, r) => {- let i = [n], o = (e) => `${r}:${e}`;- return /* @__PURE__ */ (0, L.jsxs)("section", {- "aria-label": n.code,- className: Goe,- children: [/* @__PURE__ */ (0, L.jsxs)("div", {- className: "flex flex-wrap items-center gap-3 bg-background-tertiary-default p-5 max-compact:p-4 dark:bg-background-secondary-default",- children: [- /* @__PURE__ */ (0, L.jsx)("b", {- className: "text-title-2-medium text-text-primary",- children: n.code- }),- /* @__PURE__ */ (0, L.jsx)("span", {- className: "font-mono text-caption-1-regular leading-5 text-text-primary",- children: `${n.count} 个 · 可回收 ${a(n.reclaimable)}`- }),- Koe(n),- n.cross_drive ? /* @__PURE__ */ (0, L.jsx)("span", {- className: `${sM} text-text-secondary`,- children: `跨盘 ${n.drives.join(" ")}`- }) : null,- /* @__PURE__ */ (0, L.jsxs)("span", {- className: "ml-auto flex flex-wrap gap-2 max-compact:ml-0 max-compact:w-full",- children: [- /* @__PURE__ */ (0, L.jsx)(G, {- variant: "secondary",- size: "small",- ...m(o("largest")),- onClick: () => p({- groups: i,- keep: "largest",- key: o("largest")- }),- children: "留最大"- }),- /* @__PURE__ */ (0, L.jsx)(G, {- variant: "secondary",- size: "small",- ...m(o("longest")),- onClick: () => p({- groups: i,- keep: "longest",- key: o("longest")- }),- children: "留最长"- }),- jO(n.files, f).map((t) => /* @__PURE__ */ (0, L.jsx)(G, {- variant: "secondary",- size: "small",- ...m(o(t)),- onClick: () => p({- groups: i,- keep: t,- key: o(t)- }),- children: `留 ${e[t] || t}`- }, t)),- /* @__PURE__ */ (0, L.jsx)(G, {- variant: "danger",- size: "small",- ...m(o("all")),- onClick: () => p({- groups: i,- keep: "all",- key: o("all")- }),- children: "整组回收"- })- ]- })- ]- }), /* @__PURE__ */ (0, L.jsx)("div", { children: n.files.map((e) => /* @__PURE__ */ (0, L.jsx)(qoe, {- file: e,- openItem: t- }, e.id)) })]- }, `${n.code}-${r}`);- }) : /* @__PURE__ */ (0, L.jsx)(Fw, {- icon: Woe,- title: "没有找到重复文件",- children: "所有来源之间没有检测到内容相同的文件。扫描新来源后,这里会自动更新。"+ /* @__PURE__ */ (0, L.jsx)("div", {+ ref: l,+ className: "swiper",+ "data-photo-strip": "",+ children: /* @__PURE__ */ (0, L.jsx)("div", {+ className: "swiper-wrapper",+ children: e.map((e, t) => /* @__PURE__ */ (0, L.jsx)("div", {+ className: "swiper-slide",+ children: /* @__PURE__ */ (0, L.jsx)("img", {+ src: e.thumb,+ alt: "",+ loading: "lazy",+ referrerPolicy: "no-referrer"+ })+ }, t))+ })})]});}//#endregion-//#region src/react/follow/online-vocab.ts-var Yoe = "/api/follow/authors", Xoe = "/api/follow/tags", Zoe = (e) => [- "follow",- "authors",- e-], Qoe = (e, t) => [- "follow",- "tags",- e,- t-];-function $oe(e, t, n) {- let r = new URLSearchParams({- limit: String(t),- offset: String(n)- });- return e && r.set("q", e), `${Yoe}?${r}`;+//#region src/react/entity-body/entity-body-page.tsx+function uN(e) {+ return e.view === "people" && e.roster ? /* @__PURE__ */ (0, L.jsx)(dN, {+ roster: e.roster,+ props: e+ }) : e.view === "videos" ? /* @__PURE__ */ (0, L.jsx)(fN, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, L.jsx)(vN, {+ photos: e.photos,+ props: e+ }, e.photos.revision) : null;}-function ese(e, t, n, r) {- let i = new URLSearchParams({- types: "all",- limit: String(n),- offset: String(r)+function dN({ roster: e, props: t }) {+ let { helpers: n, actions: r } = t, i = (0, I.useMemo)(() => ({+ personAvatar: n.personAvatar,+ openEntity: r.openEntity+ }), [n, r]);+ return /* @__PURE__ */ (0, L.jsx)(qM, {+ kind: e.kind,+ items: e.people,+ layout: e.layout,+ props: i});- return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${Xoe}?${i}`;-}-var tse = (e, t, n, r) => Tw($oe(e, t, n), r), nse = (e, t, n, r, i) => Tw(ese(e, t, n, r), i), rse = "/api/index", uM = {- performers: "艺人",- creators: "创作者",- studios: "厂牌",- agencies: "事务所",- tags: "标签"-}, ise = {- performers: "performer",- creators: "creator",- studios: "studio",- agencies: "agency"-}, dM = [- ["all", "全部"],- ["meta", "影片属性"],- ["relationship", "人物关系"],- ["role", "角色设定"],- ["appearance", "外貌身材"],- ["scene", "情境场所"],- ["story", "故事剧情"],- ["position", "性交体位"],- ["general", "其他内容"]-], fM = [- ["all", "全部"],- ["general", "通用"],- ["artist", "创作者"],- ["character", "角色"],- ["copyright", "作品"],- ["metadata", "元数据"]-], pM = {- people: 120,- tags: 180-}, mM = (e) => e !== "tags", hM = (e) => e === "studios" || e === "agencies";-function gM(e) {- let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (t === "online" ? fM : dM).some(([t]) => t === e.category);- return {- ...e,- scope: t,- category: e.kind === "tags" && n ? e.category : "all"- };-}-function _M(e) {- let { kind: t, q: n, scope: r, category: i } = e;- return t === "tags" ? r === "online" ? {- what: "online-tags",- q: n,- category: i- } : {- what: "tags",- q: n,- category: i- } : t === "performers" && r === "online" ? {- what: "online-authors",- q: n- } : {- what: "people",- kind: t,- q: n- };}-var vM = (e, t, n = "all") => [- "index",- e,- t,- ...e === "tags" ? [n] : []-];-function yM(e, t, n, r, i) {- let a = new URLSearchParams({- kind: e,- limit: String(r),- offset: String(i)+function fN(e) {+ let t = Aw(!e.items, e.skeletonHtml);+ return /* @__PURE__ */ (0, L.jsxs)("div", {+ "data-entity-grid": "",+ "data-grid-reveal": t.fading ? "" : void 0,+ children: [t.layer, e.items ? /* @__PURE__ */ (0, L.jsx)(Zw, {+ mode: "entity",+ entityKey: `${e.kind}:${e.name}`,+ revision: e.revision,+ initial: e.items,+ fetchPage: e.fetchPage,+ helpers: e.helpers,+ actions: e.actions,+ layout: e.layout,+ selectMode: e.selectMode,+ selected: e.selected,+ seekSeconds: e.seekSeconds,+ cache: e.cache,+ wireDrag: e.wireDrag,+ skeletonHtml: e.skeletonHtml,+ groupCollapse: e.groupCollapse,+ canLoadMore: e.canLoadMore+ }) : null]});- return t && a.set("q", t), e === "tags" && n !== "all" && a.set("category", n), `${rse}?${a}`;}-function bM(e) {- let t = e.what === "people" || e.what === "online-authors" ? pM.people : pM.tags, n = {- 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 {- ...n,- queryKey: vM(e.kind, e.q),- queryFn: ({ pageParam: n, signal: r }) => Tw(yM(e.kind, e.q, "all", t, n), r)- };- case "tags": return {- ...n,- queryKey: vM("tags", e.q, e.category),- queryFn: ({ pageParam: n, signal: r }) => Tw(yM("tags", e.q, e.category, t, n), r)- };- case "online-authors": return {- ...n,- queryKey: Zoe(e.q),- queryFn: ({ pageParam: n, signal: r }) => tse(e.q, t, n, r)- };- case "online-tags": return {- ...n,- queryKey: Qoe(e.q, e.category),- queryFn: ({ pageParam: n, signal: r }) => nse(e.q, e.category, t, n, r)+var pN = (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 || "官方样张"+})), mN = (e) => e.sample === !0, hN = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, gN = (e) => mN(e) ? `/sample-thumb?${hN(e)}` : `/photo-thumb?id=${e.id}`, _N = (e) => mN(e) ? {+ src: `/sample-image?${hN(e)}`,+ thumb: gN(e),+ name: e.name,+ asset: null,+ source: e.source,+ position: e.position,+ total: e.total+} : {+ src: `/photo?id=${e.id}`,+ thumb: gN(e),+ name: e.name || "",+ asset: e+};+function vN({ photos: e, props: t }) {+ let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, I.useMemo)(() => [...e.codeSets.flatMap(pN), ...e.items], [e]), [s, c] = (0, I.useState)(() => /* @__PURE__ */ new Set()), l = (0, I.useCallback)((e) => c((t) => {+ if (t.has(e)) return t;+ let n = new Set(t);+ return n.add(e), n;+ }), []), u = (0, I.useCallback)((e) => {+ sN(e, o.map(_N), { revealSource: i.revealSource });+ }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, L.jsx)(bN, {+ item: e,+ index: t,+ lost: s.has(t),+ onLose: l,+ onOpen: u+ }, t), f = {+ "data-photo-wall": "",+ "data-size": n,+ "data-layout": r+ }, p = 0, m = e.codeSets.map((e) => {+ let t = p;+ return p += e.n, {+ set: e,+ from: t};- }-}-async function ase(e, t) {- let n = bM(_M(gM(e)));- X.removeQueries({- queryKey: n.queryKey,- exact: !0- }), await X.fetchInfiniteQuery({- queryKey: n.queryKey,- queryFn: ({ pageParam: e }) => n.queryFn({- pageParam: e,- signal: t+ }), h = p;+ return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [+ m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, L.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(yN, {+ label: e.code,+ title: e.name,+ meta: [+ `${e.site_label || "官方"} 样张`,+ e.release_date,+ `${e.n} 张`+ ].filter(Boolean).join(" · ")+ }), /* @__PURE__ */ (0, L.jsx)("div", {+ ...f,+ children: o.slice(t, t + e.n).map((e, n) => d(e, t + n))+ })] }, e.code)),+ m.length && e.total ? /* @__PURE__ */ (0, L.jsx)(yN, {+ label: "本地图片",+ meta: `${e.total.toLocaleString()} 张`+ }) : null,+ /* @__PURE__ */ (0, L.jsx)("div", {+ ...f,+ "data-local-wall": "",+ children: e.items.map((e, t) => s.has(h + t) ? null : d(e, h + t))}),- initialPageParam: 0,- getNextPageParam: n.getNextPageParam- });-}-var ose = (e) => e ? e.pages.flatMap((e) => e.items) : [], sse = (e, t) => `${e}${t ? "+" : ""} 项`, xM = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", cse = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), lse = {- numeric: !0,- sensitivity: "base"-};-function use(e, t) {- let n = /* @__PURE__ */ new Map();- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", lse))) {- let e = t(r.k).normalize("NFKC").trim().charAt(0).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"));-}-//#endregion-//#region src/react/index/index-people.tsx-function SM({ html: e, face: t, company: n, big: r }) {- let i = (0, I.useRef)(null);- return (0, I.useLayoutEffect)(() => {- t ? i.current?.style.setProperty("--face", t) : i.current?.style.removeProperty("--face");- }, [t]), /* @__PURE__ */ (0, L.jsx)("span", {- ref: i,- "data-person-ring": "",- "data-fit-native": n ? "mark" : "portrait",- className: `relative inline-grid flex-none place-items-center self-center overflow-hidden text-title-1-regular ${r ? n ? "aspect-square w-full rounded-2lg" : "aspect-3/4 w-full rounded-2lg" : "size-17.5 rounded-full"} [&_img]:absolute [&_img]:inset-0 [&_img]:block [&_img]:size-full [&_img]:max-w-none [&_img]:object-cover [&_img]:object-(--face)`,- dangerouslySetInnerHTML: { __html: e }- });+ e.hasMore ? /* @__PURE__ */ (0, L.jsx)(tT, {+ entity: !0,+ load: i.loadMorePhotos,+ enabled: () => a?.() !== !1+ }, e.items.length) : null+ ] });}-var dse = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";-function CM({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {- return /* @__PURE__ */ (0, L.jsxs)("button", {- type: "button",- ...a,- "data-index-cell": "",- onClick: i,- className: Nw({- radius: "plain",- padding: "none",- interactive: !0,- className: `${dse} ${n ? "items-stretch text-left" : "items-center text-center"}`- }),+function yN({ label: e, title: t, meta: n }) {+ return /* @__PURE__ */ (0, L.jsxs)("div", {+ "data-photo-group": "",children: [- r,- /* @__PURE__ */ (0, L.jsx)("span", {- "data-index-name": "",- className: "text-body-medium break-all text-text-primary",- children: e- }),- /* @__PURE__ */ (0, L.jsx)("span", {- "data-index-readout": "",- className: "text-caption-1-regular",+ /* @__PURE__ */ (0, L.jsx)("b", { children: e }),+ t ? /* @__PURE__ */ (0, L.jsx)("span", {+ "data-photo-group-title": "",+ title: t,children: t+ }) : null,+ /* @__PURE__ */ (0, L.jsx)("span", {+ "data-photo-group-meta": "",+ children: n})]});}-function wM({ kind: e, items: t, layout: n, props: r }) {- let i = ise[e], a = hM(e), o = n === "big";- return /* @__PURE__ */ (0, L.jsx)("div", {- "data-index-grid": "",- "data-layout": n,- "data-cells": a ? "company" : "people",- className: `${a ? "index-grid-company" : "index-grid-person"} gap-3`,- children: t.map((t) => {- let n = r.personAvatar(t, i, o);- return /* @__PURE__ */ (0, L.jsx)(CM, {- "data-k": t.k,- "data-kind": i,- name: t.k,- readout: cse(e, t),- big: o,- onPress: () => r.openEntity(i, t.k),- children: /* @__PURE__ */ (0, L.jsx)(SM, {- html: n.html,- face: n.face,- company: a,- big: o- })- }, t.k);+function bN({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {+ let a = e.name ?? "";+ return /* @__PURE__ */ (0, L.jsx)("button", {+ type: "button",+ "data-photo-cell": "",+ "data-photo-index": t,+ title: a,+ onClick: () => i(t),+ children: n ? null : /* @__PURE__ */ (0, L.jsx)("img", {+ src: gN(e),+ alt: a,+ loading: "lazy",+ decoding: "async",+ fetchPriority: "low",+ onError: () => r(t)})});}-function fse({ items: e, layout: t, props: n }) {- let r = t === "big";- return /* @__PURE__ */ (0, L.jsx)("div", {- "data-index-grid": "",- "data-layout": t,- "data-cells": "people",- className: "index-grid-person gap-3",- children: e.map((e) => /* @__PURE__ */ (0, L.jsx)(CM, {- "data-follow-author": e.key,- "data-kind": "performer",- name: e.k,- readout: `${e.n.toLocaleString()} 项更新`,- big: r,- onPress: () => n.openFollowAuthor(e.key),- children: /* @__PURE__ */ (0, L.jsx)(SM, {- html: n.authorAvatar(e),- company: !1,- big: r- })- }, e.key))- });-}//#endregion-//#region src/board-controls.ts-function pse(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}%`);- let a = e.closest(".dual-range");- if (!a) return;- let o = e.id === "durMax" ? "max" : "min", s = a.querySelector(`[data-range-end="${o}"]`);- s || (s = document.createElement("output"), s.className = "board-range-tip", s.dataset.rangeEnd = o, s.setAttribute("aria-hidden", "true"), a.append(s)), s.textContent = r >= n && o === "max" ? "不限" : `${r} 分钟`, s.style.left = `${i}%`, s.style.setProperty("--range-tip-shift", "0px");- let c = a.getBoundingClientRect(), l = s.getBoundingClientRect(), u = l.right > c.right ? c.right - l.right : l.left < c.left ? c.left - l.left : 0;- u && s.style.setProperty("--range-tip-shift", `${Math.round(u)}px`), a.querySelectorAll(".board-range-tip").forEach((e) => e.toggleAttribute("data-range-active", e === s));-}+//#region src/react/components/segmented.tsx+var xN = "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", SN = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 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-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", CN = "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-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", wN = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", TN = "flex size-7.5 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)";//#endregion-//#region src/react/photo-lightbox/photo-lightbox.ts-var TM = "/vendor/swiper/14.2.0/", EM = null, mse = () => EM ??= Promise.all([new Promise((e, t) => {- let n = `${TM}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);- if (r?.sheet) {- e();- return;- }- let i = r ?? document.createElement("link");- i.rel = "stylesheet", i.href = n, i.addEventListener("load", () => e(), { once: !0 }), i.addEventListener("error", () => t(/* @__PURE__ */ Error("swiper styles unavailable")), { once: !0 }), r || document.head.append(i);-}), new Promise((e, t) => {- let n = window.Swiper;- if (n) {- e(n);- return;+//#region src/react/components/use-view-glide.ts+function EN(e, t) {+ if (!t.contains(e)) return null;+ let n = 0, r = 0;+ for (let i = e; i && i !== t; i = i.offsetParent) n += i.offsetLeft, r += i.offsetTop;+ let i = e.getBoundingClientRect();+ for (let a = e.parentElement; a && a !== t; a = a.parentElement) if (n -= a.scrollLeft, r -= a.scrollTop, a.scrollWidth > a.clientWidth && getComputedStyle(a).overflowX !== "visible") {+ let e = a.getBoundingClientRect();+ if (i.right <= e.left || i.left >= e.right) return null;}- let r = document.createElement("script");- r.src = `${TM}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 EM = null, e;-});-function hse(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);- }, o = (i) => {- if (t.destroyed || !e.isConnected) return;- let o = a(), s = i === "fit" ? o : Math.min(400, Math.max(10, Number(i) || o));- r = i === "fit" ? "fit" : s, n(Math.round(s));- let c = s / o;- Math.abs(c - 1) < .001 ? t.zoom.out() : t.zoom.in(c);- }, s = () => requestAnimationFrame(() => o("fit"));- return t.on("slideChange", s), t.on("zoomChange", (e, t) => {- t && n(Math.round(a() * t));- }), s(), {- apply: o,- resize: () => o(r),- loaded: (e) => {- e === i() && o(r);- }+ return {+ x: n,+ y: r,+ w: e.offsetWidth,+ h: e.offsetHeight};}-var DM = (e) => {- let t = Number(e) || 0;- return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : a(t)).replace(" ", "\xA0") : "大小未知";-}, gse = (e) => e.asset?.name || e.name || "未命名图片";-function _se(t, n) {- let r = t.asset;- if (r) return [e[r.location ?? ""] || r.location || "来源未知", DM(r.size)].join(" · ");- let i = (t.total ?? 0) > 1 ? `第 ${t.position} / ${t.total} 张` : "", a = n?.[0] && n[1] ? `${n[0]} × ${n[1]}` : "";- return [- t.source || "在线图片",- i,- a,- t.size ? DM(t.size) : ""- ].filter(Boolean).join(" · ");-}-//#endregion-//#region src/react/photo-lightbox/photo-lightbox-dialog.tsx-var OM = null, kM = null, vse = 0;-function yse() {- return (!kM || !OM?.isConnected) && (kM?.unmount(), OM = document.createElement("div"), OM.className = "peach-react", OM.dataset.photoLightboxHost = "", document.body.append(OM), kM = (0, iS.createRoot)(OM)), kM;-}-async function AM(e, t, n) {- if (!t.length || e < 0 || e >= t.length) return;- let r;- try {- r = await mse();- } catch {- window.open(t[e].src, "_blank", "noopener");- return;- }- let i = yse();- (0, Ch.flushSync)(() => i.render(/* @__PURE__ */ (0, L.jsx)(bse, {- slides: t,- index: e,- Swiper: r,- host: n ?? null- }, ++vse)));-}-function jM() {- kM && (0, Ch.flushSync)(() => kM.render(null));-}-function bse({ slides: e, index: t, Swiper: n, host: r }) {- let i = e.length > 1, a = (0, I.useId)(), o = (0, I.useRef)(null), c = (0, I.useRef)(null), l = (0, I.useRef)(null), u = (0, I.useRef)(null), d = (0, I.useRef)(null), f = (0, I.useRef)(null), p = (0, I.useRef)(null), m = (0, I.useRef)(null), h = (0, I.useRef)(null), g = (0, I.useRef)(null), _ = (0, I.useRef)(null), [v, y] = (0, I.useState)(t), [b, x] = (0, I.useState)(100), [S, C] = (0, I.useState)({}), [w, E] = (0, I.useState)(() => /* @__PURE__ */ new Set()), [k, A] = (0, I.useState)(!1), [j, M] = (0, I.useState)({- at: t,- text: ""- });- (0, I.useLayoutEffect)(() => {- let e = o.current;- e.showModal(), document.body.classList.add("photolight-open");- let r = new n(l.current, {- slidesPerView: "auto",- spaceBetween: 8,- freeMode: !0,- watchSlidesProgress: !0,- centeredSlides: !0,- slideToClickedSlide: !0- }), i = (e, t = 200) => r.slideTo(e, t), a = new n(c.current, {- initialSlide: t,- zoom: {- minRatio: .01,- maxRatio: 100- },- keyboard: { enabled: !0 },- lazyPreloadPrevNext: 1,- mousewheel: {- enabled: !0,- forceToAxis: !1- },- thumbs: { swiper: r },- pagination: {- el: u.current,- clickable: !0,- dynamicBullets: !0,- dynamicMainBullets: 3,- renderBullet: (e, t) => `<button type="button" class="${t}" aria-label="查看第 ${e + 1} 张图片"></button>`- },- navigation: {- prevEl: d.current,- nextEl: f.current- },- on: { slideChange() {- y(this.activeIndex), i(this.activeIndex);- } }- });- i(t, 0), g.current = hse(e, a, x);- let s = O(e, p.current, m.current), h = (e = !1) => {- s.hide(), p.current?.setAttribute("aria-expanded", "false"), e && p.current && document.contains(p.current) && p.current.focus();- };- _.current = {- dismiss: h,- dismissOutside: (e) => {- let t = e instanceof Node ? e : null;- return !s.isOpen() || p.current.contains(t) || m.current.contains(t) ? !1 : (h(), !0);- },- isOpen: s.isOpen- };- let v = new ResizeObserver(() => {- a.update(), r.update(), g.current?.resize();- });- v.observe(e);- let b = (e) => {- e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), _.current?.isOpen() ? _.current.dismiss(!0) : jM());- };- return document.addEventListener("keydown", b, !0), () => {- document.removeEventListener("keydown", b, !0), h(), v.disconnect(), a.destroy(!0, !0), r.destroy(!0, !0), g.current = null, _.current = null, e.close(), document.body.classList.remove("photolight-open");- };- }, []), (0, I.useLayoutEffect)(() => {- h.current && pse(h.current);- }, [b]);- let N = e[v], P = N.asset ?? null, ee = async (e) => {- if (!P || !r || e.getAttribute("aria-busy") === "true") return;- let t = v;- T(e), A(!0), M({- at: t,- text: ""- });- try {- M({- at: t,- text: await r.revealSource(P.id)- });- } finally {- T(e, !1), A(!1);- }- }, F = (e, t) => {- t.naturalWidth && t.naturalHeight && !S[e] && C((n) => ({- ...n,- [e]: [t.naturalWidth, t.naturalHeight]- })), g.current?.loaded(t);- }, te = (t) => {- w.has(t) || !e[t].thumb || e[t].thumb === e[t].src || E((e) => new Set(e).add(t));- }, ne = (e) => g.current?.apply(e);- return /* @__PURE__ */ (0, L.jsxs)("dialog", {- ref: o,- "aria-label": "图片浏览",- "data-photo-lightbox": "",- "data-has-strip": i ? "" : void 0,- onCancel: (e) => {- e.preventDefault(), jM();- },- onClick: (e) => {- let t = e.target;- _.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && jM();- },- children: [- /* @__PURE__ */ (0, L.jsx)("button", {- type: "button",- "data-photo-close": "",- "aria-label": "关闭",- onClick: jM,- dangerouslySetInnerHTML: { __html: s("x") }- }),- /* @__PURE__ */ (0, L.jsxs)("div", {- ref: c,- className: "swiper",- "data-photo-main": "",- role: "region",- "aria-roledescription": "轮播",- "aria-label": "图片浏览",- children: [- /* @__PURE__ */ (0, L.jsx)("div", {- className: "swiper-wrapper",- children: e.map((e, t) => /* @__PURE__ */ (0, L.jsx)("div", {- className: "swiper-slide",- children: /* @__PURE__ */ (0, L.jsx)("div", {- className: "swiper-zoom-container",- children: /* @__PURE__ */ (0, L.jsx)("img", {- src: w.has(t) ? e.thumb : e.src,- alt: e.name ?? "",- loading: "lazy",- referrerPolicy: "no-referrer",- onLoad: (e) => F(t, e.currentTarget),- onError: () => te(t)- })- })- }, t))- }),- /* @__PURE__ */ (0, L.jsx)("button", {- ref: d,- type: "button",- "data-photo-nav": "back",- "aria-label": "上一张",- dangerouslySetInnerHTML: { __html: s("chevron-left") }- }),- /* @__PURE__ */ (0, L.jsx)("button", {- ref: f,- type: "button",- "data-photo-nav": "fwd",- "aria-label": "下一张",- dangerouslySetInnerHTML: { __html: s("chevron-left") }- })- ]- }),- /* @__PURE__ */ (0, L.jsxs)("div", {- "data-photo-bar": "",- children: [- /* @__PURE__ */ (0, L.jsx)("button", {- ref: p,- type: "button",- "data-photo-detail-toggle": "",- "aria-expanded": "false",- "aria-controls": a,- "aria-haspopup": "dialog",- "aria-label": "图片详情",- title: "图片详情",- dangerouslySetInnerHTML: { __html: s("info") }- }),- /* @__PURE__ */ (0, L.jsxs)("div", { children: [/* @__PURE__ */ (0, L.jsx)("div", {- "data-photo-count": "",- "aria-live": "polite",- children: `${v + 1} / ${e.length}`- }), i ? /* @__PURE__ */ (0, L.jsx)("div", {- ref: u,- "data-photo-pagination": "",- "aria-label": "选择图片"- }) : null] }),- /* @__PURE__ */ (0, L.jsxs)("div", {- "data-photo-zoom": "",- children: [- /* @__PURE__ */ (0, L.jsx)("button", {- type: "button",- "data-zoom-step": "-1",- "aria-label": "缩小",- onClick: () => ne(b - 10),- dangerouslySetInnerHTML: { __html: s("zoom-out") }- }),- /* @__PURE__ */ (0, L.jsx)("input", {- ref: h,- type: "range",- min: 10,- max: 400,- step: "1",- value: b,- "aria-label": "缩放",- onChange: (e) => ne(Number(e.currentTarget.value))- }),- /* @__PURE__ */ (0, L.jsx)("button", {- type: "button",- "data-zoom-step": "1",- "aria-label": "放大",- onClick: () => ne(b + 10),- dangerouslySetInnerHTML: { __html: s("zoom-in") }- }),- /* @__PURE__ */ (0, L.jsx)("b", {- "data-photo-zoom-readout": "",- children: `${b}%`- }),- /* @__PURE__ */ (0, L.jsx)("button", {- type: "button",- "data-photo-scale": "fit",- "aria-label": "适应窗口",- title: "适应窗口",- onClick: () => ne("fit"),- dangerouslySetInnerHTML: { __html: s("maximize") }- }),- /* @__PURE__ */ (0, L.jsx)("button", {- type: "button",- "data-photo-scale": "original",- "aria-label": "原大小",- title: "原大小",- onClick: () => ne(100),- children: "1:1"- })- ]- })- ]- }),- /* @__PURE__ */ (0, L.jsxs)("section", {- ref: m,- id: a,- "data-photo-detail": "",- role: "dialog",- "aria-modal": "false",- "aria-labelledby": `${a}-title`,- hidden: !0,- children: [- /* @__PURE__ */ (0, L.jsxs)("div", {- "data-photo-detail-copy": "",- children: [/* @__PURE__ */ (0, L.jsx)("h2", {- id: `${a}-title`,- "data-middle-truncate": "",- tabIndex: -1,- children: gse(N)- }, v), /* @__PURE__ */ (0, L.jsx)("span", {- "data-photo-detail-meta": "",- children: _se(N, S[v])- })]- }),- /* @__PURE__ */ (0, L.jsx)("button", {- type: "button",- "data-photo-reveal": "",- hidden: !P || !r,- onClick: (e) => void ee(e.currentTarget),- dangerouslySetInnerHTML: { __html: (k ? D("正在定位") : s("folder-open")) + "<span>在资源管理器中显示</span>" }- }),- /* @__PURE__ */ (0, L.jsx)("span", {- "data-photo-status": "",- "aria-live": "polite",- children: j.at === v ? j.text : ""- })- ]- }),- /* @__PURE__ */ (0, L.jsx)("div", {- ref: l,- className: "swiper",- "data-photo-strip": "",- children: /* @__PURE__ */ (0, L.jsx)("div", {- className: "swiper-wrapper",- children: e.map((e, t) => /* @__PURE__ */ (0, L.jsx)("div", {- className: "swiper-slide",- children: /* @__PURE__ */ (0, L.jsx)("img", {- src: e.thumb,- alt: "",- loading: "lazy",- referrerPolicy: "no-referrer"- })- }, t))- })- })- ]- });-}-//#endregion-//#region src/react/entity-body/entity-body-page.tsx-function xse(e) {- return e.view === "people" && e.roster ? /* @__PURE__ */ (0, L.jsx)(Sse, {- roster: e.roster,- props: e- }) : e.view === "videos" ? /* @__PURE__ */ (0, L.jsx)(Cse, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, L.jsx)(Ese, {- photos: e.photos,- props: e- }, e.photos.revision) : null;-}-function Sse({ roster: e, props: t }) {- let { helpers: n, actions: r } = t, i = (0, I.useMemo)(() => ({- personAvatar: n.personAvatar,- openEntity: r.openEntity- }), [n, r]);- return /* @__PURE__ */ (0, L.jsx)(wM, {- kind: e.kind,- items: e.people,- layout: e.layout,- props: i- });-}-function Cse(e) {- let t = aT(!e.items, e.skeletonHtml);- return /* @__PURE__ */ (0, L.jsxs)("div", {- "data-entity-grid": "",- "data-grid-reveal": t.fading ? "" : void 0,- children: [t.layer, e.items ? /* @__PURE__ */ (0, L.jsx)(ST, {- mode: "entity",- entityKey: `${e.kind}:${e.name}`,- revision: e.revision,- initial: e.items,- fetchPage: e.fetchPage,- helpers: e.helpers,- actions: e.actions,- layout: e.layout,- selectMode: e.selectMode,- selected: e.selected,- seekSeconds: e.seekSeconds,- cache: e.cache,- wireDrag: e.wireDrag,- skeletonHtml: e.skeletonHtml,- groupCollapse: e.groupCollapse,- canLoadMore: e.canLoadMore- }) : null]- });-}-var wse = (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 || "官方样张"-})), MM = (e) => e.sample === !0, NM = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, PM = (e) => MM(e) ? `/sample-thumb?${NM(e)}` : `/photo-thumb?id=${e.id}`, Tse = (e) => MM(e) ? {- src: `/sample-image?${NM(e)}`,- thumb: PM(e),- name: e.name,- asset: null,- source: e.source,- position: e.position,- total: e.total-} : {- src: `/photo?id=${e.id}`,- thumb: PM(e),- name: e.name || "",- asset: e-};-function Ese({ photos: e, props: t }) {- let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, I.useMemo)(() => [...e.codeSets.flatMap(wse), ...e.items], [e]), [s, c] = (0, I.useState)(() => /* @__PURE__ */ new Set()), l = (0, I.useCallback)((e) => c((t) => {- if (t.has(e)) return t;- let n = new Set(t);- return n.add(e), n;- }), []), u = (0, I.useCallback)((e) => {- AM(e, o.map(Tse), { revealSource: i.revealSource });- }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, L.jsx)(Dse, {- item: e,- index: t,- lost: s.has(t),- onLose: l,- onOpen: u- }, t), f = {- "data-photo-wall": "",- "data-size": n,- "data-layout": r- }, p = 0, m = e.codeSets.map((e) => {- let t = p;- return p += e.n, {- set: e,- from: t- };- }), h = p;- return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [- m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, L.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(FM, {- label: e.code,- title: e.name,- meta: [- `${e.site_label || "官方"} 样张`,- e.release_date,- `${e.n} 张`- ].filter(Boolean).join(" · ")- }), /* @__PURE__ */ (0, L.jsx)("div", {- ...f,- children: o.slice(t, t + e.n).map((e, n) => d(e, t + n))- })] }, e.code)),- m.length && e.total ? /* @__PURE__ */ (0, L.jsx)(FM, {- label: "本地图片",- meta: `${e.total.toLocaleString()} 张`- }) : null,- /* @__PURE__ */ (0, L.jsx)("div", {- ...f,- "data-local-wall": "",- children: e.items.map((e, t) => s.has(h + t) ? null : d(e, h + t))- }),- e.hasMore ? /* @__PURE__ */ (0, L.jsx)(CT, {- entity: !0,- load: i.loadMorePhotos,- enabled: () => a?.() !== !1- }, e.items.length) : null- ] });-}-function FM({ label: e, title: t, meta: n }) {- return /* @__PURE__ */ (0, L.jsxs)("div", {- "data-photo-group": "",- children: [- /* @__PURE__ */ (0, L.jsx)("b", { children: e }),- t ? /* @__PURE__ */ (0, L.jsx)("span", {- "data-photo-group-title": "",- title: t,- children: t- }) : null,- /* @__PURE__ */ (0, L.jsx)("span", {- "data-photo-group-meta": "",- children: n- })- ]- });-}-function Dse({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {- let a = e.name ?? "";- return /* @__PURE__ */ (0, L.jsx)("button", {- type: "button",- "data-photo-cell": "",- "data-photo-index": t,- title: a,- onClick: () => i(t),- children: n ? null : /* @__PURE__ */ (0, L.jsx)("img", {- src: PM(e),- alt: a,- loading: "lazy",- decoding: "async",- fetchPriority: "low",- onError: () => r(t)- })- });-}-//#endregion-//#region src/react/components/segmented.tsx-var IM = "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", LM = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 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-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", Ose = "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-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", RM = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", zM = "flex size-7.5 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)";-//#endregion-//#region src/react/components/use-view-glide.ts-function kse(e, t) {- if (!t.contains(e)) return null;- let n = 0, r = 0;- for (let i = e; i && i !== t; i = i.offsetParent) n += i.offsetLeft, r += i.offsetTop;- let i = e.getBoundingClientRect();- for (let a = e.parentElement; a && a !== t; a = a.parentElement) if (n -= a.scrollLeft, r -= a.scrollTop, a.scrollWidth > a.clientWidth && getComputedStyle(a).overflowX !== "visible") {- let e = a.getBoundingClientRect();- if (i.right <= e.left || i.left >= e.right) return null;- }- return {- x: n,- y: r,- w: e.offsetWidth,- h: e.offsetHeight- };-}-function BM(e, t, n, r) {+function DN(e, t, n, r) {let i = (0, I.useRef)(null), a = (0, I.useCallback)((r, a) => {let o = e.current, s = t.current, c = o?.parentElement;if (!o) return;- let l = s && s.offsetWidth ? r ?? s.querySelector(n) : null, u = l && c ? kse(l, c) : null;+ let l = s && s.offsetWidth ? r ?? s.querySelector(n) : null, u = l && c ? EN(l, c) : null;if (!u || !u.w) {o.hidden = !0;return;}let d = o.hidden ? null : i.current;- o.hidden = !1, i.current = u, x(o, a ? d : null, u, "x");+ o.hidden = !1, i.current = u, S(o, a ? d : null, u, "x");}, [e,t,@@ -36423,19 +35888,19 @@ function BM(e, t, n, r) {}//#endregion//#region src/react/entity-filter/entity-filter.ts-var Ase = (e) => e === "videos", VM = () => /* @__PURE__ */ (0, L.jsx)("span", {+var ON = (e) => e === "videos", kN = () => /* @__PURE__ */ (0, L.jsx)("span", {"data-entity-sep": "","aria-hidden": "true"});-function jse(e) {- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Ase(t), u = (0, I.useRef)(null), d = (0, I.useRef)(null), f = (0, I.useRef)(null), p = (0, I.useRef)(null), m = (0, I.useRef)(null), h = (0, I.useRef)(null), g = (0, I.useRef)(null), _ = BM(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = BM(d, p, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`);+function AN(e) {+ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = ON(t), u = (0, I.useRef)(null), d = (0, I.useRef)(null), f = (0, I.useRef)(null), p = (0, I.useRef)(null), m = (0, I.useRef)(null), h = (0, I.useRef)(null), g = (0, I.useRef)(null), _ = DN(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = DN(d, p, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`);return (0, I.useEffect)(() => {c.wireDrag(h.current), c.wireScroller(m.current), c.wireDrag(g.current);- }, [c]), /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Nse, {+ }, [c]), /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(MN, {items: o,hidden: !l,actions: s- }), /* @__PURE__ */ (0, L.jsx)(rM, {+ }), /* @__PURE__ */ (0, L.jsx)(tM, {label: "筛选与排序",topLabel: "媒体与标签",attrs: {@@ -36455,13 +35920,13 @@ function jse(e) {"data-view-glide": "round","aria-hidden": "true"})] }),- top: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [n ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Mse, {+ top: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [n ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(jN, {keys: n,view: t,row: p,glide: v,onView: s.setView- }), l ? /* @__PURE__ */ (0, L.jsx)(VM, {}) : null] }) : null, /* @__PURE__ */ (0, L.jsxs)("div", {+ }), l ? /* @__PURE__ */ (0, L.jsx)(kN, {}) : null] }) : null, /* @__PURE__ */ (0, L.jsxs)("div", {ref: m,"data-entity-scroll": "",children: [/* @__PURE__ */ (0, L.jsxs)("div", {@@ -36481,11 +35946,11 @@ function jse(e) {r !== e.k && s.setState(e.k);},children: e.label- }, e.k)), /* @__PURE__ */ (0, L.jsx)(VM, {})]+ }, e.k)), /* @__PURE__ */ (0, L.jsx)(kN, {})]}), /* @__PURE__ */ (0, L.jsx)("div", {ref: h,"data-entity-tags": "",- children: l ? a.map((e) => /* @__PURE__ */ (0, L.jsxs)(iM, {+ children: l ? a.map((e) => /* @__PURE__ */ (0, L.jsxs)(rM, {"data-entity-tag": e.k,"data-entity-press": "",pressed: e.selected,@@ -36497,10 +35962,10 @@ function jse(e) {}, e.k)) : null})]})] }),- bottom: /* @__PURE__ */ (0, L.jsx)(Pse, { ...e })+ bottom: /* @__PURE__ */ (0, L.jsx)(NN, { ...e })})] });}-function Mse({ keys: e, view: t, row: n, glide: r, onView: i }) {+function jN({ keys: e, view: t, row: n, glide: r, onView: i }) {let a = [];return e.people && a.push({value: "people",@@ -36542,7 +36007,7 @@ function Mse({ keys: e, view: t, row: n, glide: r, onView: i }) {})});}-function Nse({ items: e, hidden: t, actions: n }) {+function MN({ items: e, hidden: t, actions: n }) {return /* @__PURE__ */ (0, L.jsx)("div", {"data-entity-combo": "",hidden: t,@@ -36562,7 +36027,7 @@ function Nse({ items: e, hidden: t, actions: n }) {})] }) : null});}-function Pse(e) {+function NN(e) {let { view: t, readout: n, busy: r, video: i, photo: a, actions: o, helpers: c } = e;return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [t === "photos" && a?.back ? /* @__PURE__ */ (0, L.jsxs)("button", {@@ -36574,22 +36039,22 @@ function Pse(e) {dangerouslySetInnerHTML: { __html: s("chevron-left") }}), /* @__PURE__ */ (0, L.jsx)("span", { children: "全部照片" })]}) : null,- /* @__PURE__ */ (0, L.jsx)(Fse, {+ /* @__PURE__ */ (0, L.jsx)(PN, {text: n,busy: r}),- t === "videos" && i ? /* @__PURE__ */ (0, L.jsx)(Ise, {+ t === "videos" && i ? /* @__PURE__ */ (0, L.jsx)(LN, {head: i,actions: o}) : null,- t === "photos" && a ? /* @__PURE__ */ (0, L.jsx)(Lse, {+ t === "photos" && a ? /* @__PURE__ */ (0, L.jsx)(RN, {head: a,actions: o,helpers: c}) : null] });}-function Fse({ text: e, busy: t }) {+function PN({ text: e, busy: t }) {return /* @__PURE__ */ (0, L.jsx)("h3", {"data-entity-readout": "",children: t ? /* @__PURE__ */ (0, L.jsx)("span", {@@ -36599,21 +36064,21 @@ function Fse({ text: e, busy: t }) {}) : e});}-function HM({ label: e, value: t, options: n, onChange: r }) {- return /* @__PURE__ */ (0, L.jsx)(OD, {+function FN({ label: e, value: t, options: n, onChange: r }) {+ return /* @__PURE__ */ (0, L.jsx)(Ek, {"aria-label": e,orientation: "horizontal",value: t,onChange: r,"data-entity-layout": "",- className: RM,+ className: wN,children: n.map(([e, t, n]) => {- let r = gT(n);- return /* @__PURE__ */ (0, L.jsx)(kD, {+ let r = Vw(n);+ return /* @__PURE__ */ (0, L.jsx)(Dk, {value: e,"aria-label": t,"data-glass-segment": "",- className: zM,+ className: TN,children: /* @__PURE__ */ (0, L.jsx)("span", {title: t,className: "contents",@@ -36623,7 +36088,7 @@ function HM({ label: e, value: t, options: n, onChange: r }) {})});}-function UM({ onPress: e, busy: t = !1 }) {+function IN({ onPress: e, busy: t = !1 }) {return /* @__PURE__ */ (0, L.jsx)("button", {type: "button","data-entity-batch": "",@@ -36634,22 +36099,22 @@ function UM({ onPress: e, busy: t = !1 }) {onClick: () => {t || e();},- dangerouslySetInnerHTML: { __html: t ? D("正在换一批") : s("shuffle") }+ dangerouslySetInnerHTML: { __html: t ? k("正在换一批") : s("shuffle") }});}-function Ise({ head: e, actions: t }) {+function LN({ head: e, actions: t }) {return /* @__PURE__ */ (0, L.jsxs)("span", {"data-entity-sorts": "",children: [- /* @__PURE__ */ (0, L.jsx)(UM, { onPress: () => void t.reshuffle() }),- e.jav ? /* @__PURE__ */ (0, L.jsx)(HM, {+ /* @__PURE__ */ (0, L.jsx)(IN, { onPress: () => void t.reshuffle() }),+ e.jav ? /* @__PURE__ */ (0, L.jsx)(FN, {label: "JAV 卡片版式",value: e.jav.layout,options: e.jav.options,onChange: t.setJavLayout}) : null,e.sorts.map((e) => {- let n = gT(e.dir === "asc" ? "arrow-up" : "arrow-down");+ let n = Vw(e.dir === "asc" ? "arrow-up" : "arrow-down");return /* @__PURE__ */ (0, L.jsxs)("button", {type: "button","data-entity-sort": e.key,@@ -36663,20 +36128,20 @@ function Ise({ head: e, actions: t }) {]});}-function Lse({ head: e, actions: t, helpers: n }) {+function RN({ head: e, actions: t, helpers: n }) {let [r, i] = (0, I.useState)(!1), a = (0, I.useRef)(null), o = e.back ? n.sourceToolsHtml(e.setId) : "";return (0, I.useEffect)(() => {a.current && o && n.wireSourceTools(a.current);}, [n, o]), /* @__PURE__ */ (0, L.jsxs)("span", {"data-entity-sorts": "",children: [- e.shuffle ? /* @__PURE__ */ (0, L.jsx)(UM, {+ e.shuffle ? /* @__PURE__ */ (0, L.jsx)(IN, {onPress: () => {i(!0), t.reshuffle().finally(() => i(!1));},busy: r}) : null,- /* @__PURE__ */ (0, L.jsx)(HM, {+ /* @__PURE__ */ (0, L.jsx)(FN, {label: "图片布局",value: e.layout,options: e.layouts,@@ -36690,65 +36155,369 @@ function Lse({ head: e, actions: t, helpers: n }) {]});}-//#endregion-//#region src/react/avatar-picker/avatar-picker.ts-var Rse = "/api/avatar-choices", WM = "/api/avatar-pick", zse = "/api/avatar-code-cover", Bse = "/avatar-choice", GM = (e, t) => [- "avatar-choices",- e,- t-], KM = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, qM = (e, t, n) => `${Bse}${KM(e, t)}&ref=${encodeURIComponent(n)}`, Vse = (e, t, n) => Tw(Rse + KM(e, t), n), Hse = (e) => q(zse, { code: e });-function JM(e, t, n) {- let r = t.width === e.width && t.height === e.height;- return e.focus && r ? tae(e.focus, t, n) : pO(t, n);+function zN(e) {+ return {+ x0: 0,+ y0: 0,+ x1: e.width,+ y1: e.height+ };}-var Use = (e) => e.crop && fO({- width: e.width,- height: e.height-});-async function Wse(e, t, n) {- if (!("file" in n)) {- await q(WM, {- kind: e,- id: t,- ...n- });- return;- }- let r = n.file, i = await fetch(`${WM}${KM(e, t)}&name=${encodeURIComponent(r.name)}`, {- method: "POST",- credentials: "same-origin",- body: r+function BN(e) {+ return {+ x0: Math.round(e.x0),+ y0: Math.round(e.y0),+ x1: Math.round(e.x1),+ y1: Math.round(e.y1)+ };+}+function VN(e) {+ return !!e && Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0;+}+function HN(e, t) {+ if (!VN(e)) return {+ x0: 0,+ y0: 0,+ x1: 0,+ y1: 0+ };+ if (t == null || !(t > 0)) return zN(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 BN({+ x0: i,+ y0: a,+ x1: i + n,+ y1: a + r});- if (i.ok) return;- let a = await i.json().catch(() => null);- throw new Cw(a?.error || `请求失败(${i.status})`, i.status, a);}-function Gse(e, t) {- if (!t) return e;- let n = t.matched_names.filter((t) => t !== e);- return n.length ? `${e}:图库里按「${n.join("」「")}」找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:图库里没有这个名字,用下面两种方式换。`;+function UN(e, t) {+ if (!VN(e) || !(t > 0)) return zN(e);+ let n = Math.min(e.width, e.height * t);+ return BN({+ x0: e.width - n,+ y0: 0,+ x1: e.width,+ y1: e.height+ });}-var Kse = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;-function qse(e) {- return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${Kse(e.index_age_hours)}没更新,新收的人像这里还查不到。`;+function WN(e, t, n) {+ if (!VN(t) || !(n > 0)) return zN(t);+ let r = GN(e, t), i = HN({+ width: r.x1 - r.x0,+ height: r.y1 - r.y0+ }, n);+ return {+ x0: r.x0 + i.x0,+ y0: r.y0 + i.y0,+ x1: r.x0 + i.x1,+ y1: r.y0 + i.y1+ };}-var YM = (e) => e.cast > 1, Jse = (e) => YM(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, Yse = {- gfriends: "图库",- history: "用过的",- asset: "作品画面",- code: "番号封面"-};-function Xse(e) {- if (e.startsWith("cover:")) return "封面";- let t = e.split(":")[2] || "";- if (t === "cover") return "封面";- let n = Number(t.replace("cell", ""));- return Number.isFinite(n) ? `第 ${n + 1} 格` : t;+function GN(e, t, n = null, r = "width") {+ if (!VN(t)) return {+ x0: 0,+ y0: 0,+ x1: 0,+ y1: 0+ };+ 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 BN({+ x0: s,+ y0: c,+ x1: s + a,+ y1: c + o+ });}-var Zse = (e) => `${Yse[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (YM(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), Qse = 8, $se = 3 / 4;-function ece({ kind: e, entityId: t, name: n, onPicked: r }) {- let [i, a] = (0, I.useState)(!1);- return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("span", {+function KN(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 BN({+ x0: o,+ y0: s,+ x1: o + i,+ y1: s + a+ });+}+function qN(e, t, n, r = null) {+ if (!VN(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 GN({+ x0: i - o / 2,+ y0: a - s / 2,+ x1: i + o / 2,+ y1: a + s / 2+ }, n, r);+}+function JN(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 GN(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");+}+function YN(e, t) {+ return VN(t) ? {+ left: e.x0 / t.width * 100,+ top: e.y0 / t.height * 100,+ width: (e.x1 - e.x0) / t.width * 100,+ height: (e.y1 - e.y0) / t.height * 100+ } : {+ left: 0,+ top: 0,+ width: 0,+ height: 0+ };+}+function XN(e, t) {+ if (!VN(t)) return {+ size: "cover",+ position: "50% 50%"+ };+ let n = Math.max(1, e.x1 - e.x0), r = Math.max(1, e.y1 - e.y0), i = (e, t, n) => t - n > 0 ? e / (t - n) * 100 : 0;+ return {+ size: `${t.width / n * 100}% ${t.height / r * 100}%`,+ position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`+ };+}+function ZN(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}%`,+ top: `${-e.y0 / r * 100}%`,+ width: `${t.width / n * 100}%`,+ height: `${t.height / r * 100}%`+ };+}+function QN(e, t, n) {+ return t > 0 ? e * n / t : 0;+}+//#endregion+//#region src/react/components/modal-frame.tsx+var $N = {+ "avatar-picker": "max-w-avatar-picker",+ "cover-crop": "max-w-cover-crop",+ form: "max-w-form-modal"+};+function eP({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {+ return /* @__PURE__ */ (0, L.jsx)(Ck, {+ isOpen: e,+ onOpenChange: t,+ isDismissable: !0,+ className: "fixed inset-0 z-dialog flex items-center justify-center bg-scrim p-4",+ children: /* @__PURE__ */ (0, L.jsx)(tae, {+ className: `flex max-h-full w-full ${$N[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,+ children: /* @__PURE__ */ (0, L.jsx)(yk, {+ "aria-label": r,+ className: "flex min-h-0 flex-col outline-none",+ children: i+ })+ })+ });+}+function tP({ children: e }) {+ return /* @__PURE__ */ (0, L.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",+ children: e+ });+}+//#endregion+//#region src/react/crop/crop-frame.tsx+var nP = .02, rP = 1.08;+function iP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {+ let s = (0, I.useRef)(null), c = (0, I.useRef)(null), [l, u] = (0, I.useState)(!1);+ (0, I.useEffect)(() => {+ u(!1);+ }, [e]);+ let d = (0, I.useCallback)((e, t) => {+ let n = s.current;+ return !n || !r ? {+ dx: 0,+ dy: 0+ } : {+ dx: QN(e, n.clientWidth, r.width),+ dy: QN(t, n.clientHeight, r.height)+ };+ }, [r]);+ function f(e) {+ return (t) => {+ !n || !r || t.button !== 0 || (t.preventDefault(), t.stopPropagation(), t.currentTarget.setPointerCapture(t.pointerId), c.current = {+ mode: e,+ x: t.clientX,+ y: t.clientY,+ box: n+ });+ };+ }+ function p(e) {+ let n = c.current, a = s.current;+ if (!n || !a || !r) return;+ let o = d(e.clientX - n.x, e.clientY - n.y);+ if (n.mode === "move") {+ i(KN(n.box, o.dx, o.dy, r));+ return;+ }+ i(JN(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 m(e) {+ c.current && (c.current = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId));+ }+ function h(e) {+ if (!n || !r) return;+ let a = Math.max(1, (n.x1 - n.x0) * nP), o = {+ ArrowLeft: [-a, 0],+ ArrowRight: [a, 0],+ ArrowUp: [0, -a],+ ArrowDown: [0, a]+ };+ if (o[e.key]) {+ e.preventDefault(), i(KN(n, o[e.key][0], o[e.key][1], r));+ return;+ }+ (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(qN(n, e.key === "-" ? 1 / rP : rP, r, t)));+ }+ let g = n && r ? YN(GN(n, r, t), r) : null, _ = g ? {+ "--crop-l": `${g.left}%`,+ "--crop-t": `${g.top}%`,+ "--crop-w": `${g.width}%`,+ "--crop-h": `${g.height}%`,+ "--crop-r": `${g.left + g.width}%`,+ "--crop-b": `${g.top + g.height}%`+ } : void 0;+ return /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "relative inline-block max-w-full select-none",+ style: _,+ children: [+ /* @__PURE__ */ (0, L.jsx)("img", {+ ref: s,+ src: e,+ alt: "",+ draggable: !1,+ onLoad: (e) => {+ let t = e.currentTarget;+ VN({+ width: t.naturalWidth,+ height: t.naturalHeight+ }) && a({+ width: t.naturalWidth,+ height: t.naturalHeight+ });+ },+ onError: () => u(!0),+ className: "block max-h-crop-frame max-w-full object-contain"+ }),+ l || !g ? null : /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [+ /* @__PURE__ */ (0, L.jsx)("div", {+ "aria-hidden": !0,+ className: "pointer-events-none absolute inset-x-0 top-0 h-(--crop-t) bg-scrim"+ }),+ /* @__PURE__ */ (0, L.jsx)("div", {+ "aria-hidden": !0,+ className: "pointer-events-none absolute inset-x-0 bottom-0 top-(--crop-b) bg-scrim"+ }),+ /* @__PURE__ */ (0, L.jsx)("div", {+ "aria-hidden": !0,+ className: "pointer-events-none absolute left-0 top-(--crop-t) h-(--crop-h) w-(--crop-l) bg-scrim"+ }),+ /* @__PURE__ */ (0, L.jsx)("div", {+ "aria-hidden": !0,+ className: "pointer-events-none absolute right-0 left-(--crop-r) top-(--crop-t) h-(--crop-h) bg-scrim"+ }),+ /* @__PURE__ */ (0, L.jsx)("div", {+ role: "group",+ tabIndex: 0,+ "aria-label": o,+ "data-crop-box": !0,+ onPointerDown: f("move"),+ onPointerMove: p,+ onPointerUp: m,+ onPointerCancel: m,+ onKeyDown: h,+ onWheel: (e) => {+ !n || !r || i(qN(n, e.deltaY > 0 ? rP : 1 / rP, 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, L.jsx)("span", {+ "data-crop-handle": !0,+ onPointerDown: f("resize"),+ onPointerMove: p,+ onPointerUp: m,+ onPointerCancel: m,+ className: "absolute -right-1.5 -bottom-1.5 size-3 cursor-nwse-resize touch-none rounded-xs border border-separator-border bg-background-full"+ })+ })+ ] }),+ l ? /* @__PURE__ */ (0, L.jsx)("p", {+ className: "p-4 text-body-2-regular text-text-secondary",+ children: "这张图读不出来,换一张再框。"+ }) : null+ ]+ });+}+//#endregion+//#region src/react/avatar-picker/avatar-picker.ts+var aP = "/api/avatar-choices", oP = "/api/avatar-pick", sP = "/api/avatar-code-cover", cP = "/avatar-choice", lP = (e, t) => [+ "avatar-choices",+ e,+ t+], uP = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, dP = (e, t, n) => `${cP}${uP(e, t)}&ref=${encodeURIComponent(n)}`, fP = (e, t, n) => iw(aP + uP(e, t), n), pP = (e) => q(sP, { code: e });+function mP(e, t, n) {+ let r = t.width === e.width && t.height === e.height;+ return e.focus && r ? WN(e.focus, t, n) : HN(t, n);+}+var hP = (e) => e.crop && VN({+ width: e.width,+ height: e.height+});+async function gP(e, t, n) {+ if (!("file" in n)) {+ await q(oP, {+ kind: e,+ id: t,+ ...n+ });+ return;+ }+ let r = n.file, i = await fetch(`${oP}${uP(e, t)}&name=${encodeURIComponent(r.name)}`, {+ method: "POST",+ credentials: "same-origin",+ body: r+ });+ if (i.ok) return;+ let a = await i.json().catch(() => null);+ throw new nw(a?.error || `请求失败(${i.status})`, i.status, a);+}+function _P(e, t) {+ if (!t) return e;+ let n = t.matched_names.filter((t) => t !== e);+ return n.length ? `${e}:图库里按「${n.join("」「")}」找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:图库里没有这个名字,用下面两种方式换。`;+}+var vP = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;+function yP(e) {+ return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${vP(e.index_age_hours)}没更新,新收的人像这里还查不到。`;+}+var bP = (e) => e.cast > 1, xP = (e) => bP(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, SP = {+ gfriends: "图库",+ history: "用过的",+ asset: "作品画面",+ code: "番号封面"+};+function CP(e) {+ if (e.startsWith("cover:")) return "封面";+ let t = e.split(":")[2] || "";+ if (t === "cover") return "封面";+ let n = Number(t.replace("cell", ""));+ return Number.isFinite(n) ? `第 ${n + 1} 格` : t;+}+var wP = (e) => `${SP[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (bP(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), TP = 8, EP = 3 / 4;+function DP({ kind: e, entityId: t, name: n, onPicked: r }) {+ let [i, a] = (0, I.useState)(!1);+ return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("span", {className: "absolute right-1 bottom-1 z-10",children: /* @__PURE__ */ (0, L.jsx)("button", {type: "button",@@ -36756,17 +36525,17 @@ function ece({ 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, L.jsx)(tne, {+ children: /* @__PURE__ */ (0, L.jsx)(CS, {"aria-hidden": !0,className: "size-4"})})- }), /* @__PURE__ */ (0, L.jsx)(vO, {+ }), /* @__PURE__ */ (0, L.jsx)(eP, {isOpen: i,onOpenChange: a,width: "avatar-picker",label: "更换头像",- children: /* @__PURE__ */ (0, L.jsx)(tce, {+ children: /* @__PURE__ */ (0, L.jsx)(OP, {kind: e,entityId: t,name: n,@@ -36775,50 +36544,50 @@ function ece({ kind: e, entityId: t, name: n, onPicked: r }) {})})] });}-function tce({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {- let a = (0, I.useRef)(null), o = bO(), [s, c] = (0, I.useState)(""), [l, u] = (0, I.useState)(""), [d, f] = (0, I.useState)(""), [p, m] = (0, I.useState)(null), h = GM(e, t), g = (0, I.useRef)(!1), _ = Nt({+function OP({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {+ let a = (0, I.useRef)(null), o = hA(), [s, c] = (0, I.useState)(""), [l, u] = (0, I.useState)(""), [d, f] = (0, I.useState)(""), [p, m] = (0, I.useState)(null), h = lP(e, t), g = (0, I.useRef)(!1), _ = Ft({queryKey: h,- queryFn: ({ signal: n }) => Vse(e, t, n),+ queryFn: ({ signal: n }) => fP(e, t, n),retryOnMount: !0});(0, I.useEffect)(() => () => {- g.current && X.removeQueries({ queryKey: GM(e, t) });+ g.current && X.removeQueries({ queryKey: lP(e, t) });}, [e, t]);- let v = Pt({- mutationFn: (n) => Wse(e, t, n),+ let v = It({+ mutationFn: (n) => gP(e, t, n),onSuccess: () => {g.current = !0, i(), r();}- }), y = Pt({- mutationFn: (e) => Hse(e),+ }), y = It({+ mutationFn: (e) => pP(e),onSuccess: (e) => m(e)});function b(e) {let t = e.currentTarget, n = t.files?.[0];t.value = "", f(""), n && v.mutate({ file: n });}- let x = _.data, S = x?.choices ?? [], C = d || (v.error ? K(v.error) : "") || (!p && y.error ? K(y.error) : "") || (_.error ? K(_.error) : ""), w = v.isPending || y.isPending, T = p ? "" : qse(x);+ let x = _.data, S = x?.choices ?? [], C = d || (v.error ? K(v.error) : "") || (!p && y.error ? K(y.error) : "") || (_.error ? K(_.error) : ""), w = v.isPending || y.isPending, T = p ? "" : yP(x);return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("div", {className: "flex shrink-0 items-start gap-4 p-5",children: [- /* @__PURE__ */ (0, L.jsx)(yO, { children: /* @__PURE__ */ (0, L.jsx)(PS, { className: "size-6" }) }),+ /* @__PURE__ */ (0, L.jsx)(tP, { children: /* @__PURE__ */ (0, L.jsx)(rC, { className: "size-6" }) }),/* @__PURE__ */ (0, L.jsxs)("div", {className: "flex min-w-0 flex-1 flex-col gap-2",children: [/* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-wrap items-center gap-2",- children: [/* @__PURE__ */ (0, L.jsx)(GT, {+ children: [/* @__PURE__ */ (0, L.jsx)(UD, {slot: "title",className: "text-title-3-semibold text-text-primary",children: p ? "框出头像那一块" : "更换头像"- }), !p && S.length ? /* @__PURE__ */ (0, L.jsxs)(bw, {+ }), !p && S.length ? /* @__PURE__ */ (0, L.jsxs)($C, {color: "soft",children: [S.length, " 张可选"]}) : null]}),/* @__PURE__ */ (0, L.jsx)("p", {className: "text-body-2-regular text-text-secondary",- children: p ? Jse(p) : Gse(n, x)+ children: p ? xP(p) : _P(n, x)}),T ? /* @__PURE__ */ (0, L.jsx)(J, {tone: "neutral",@@ -36830,14 +36599,14 @@ function tce({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {}) : null]}),- /* @__PURE__ */ (0, L.jsx)(cO, {- icon: uS,+ /* @__PURE__ */ (0, L.jsx)(_A, {+ icon: MS,size: "small","aria-label": "关闭",onClick: i})]- }), p ? /* @__PURE__ */ (0, L.jsx)(rce, {+ }), p ? /* @__PURE__ */ (0, L.jsx)(AP, {kind: e,entityId: t,choice: p,@@ -36860,7 +36629,7 @@ function tce({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {"aria-busy": _.isPending || void 0,"data-skeleton": _.isPending ? "avatar-choices" : void 0,className: "inline-grid grid-cols-3 content-start gap-2 sm:grid-cols-4",- children: _.isPending ? Array.from({ length: Qse }, (e, t) => /* @__PURE__ */ (0, L.jsxs)("span", {+ children: _.isPending ? Array.from({ length: TP }, (e, t) => /* @__PURE__ */ (0, L.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",@@ -36873,15 +36642,15 @@ function tce({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {role: "option","data-avatar-choice": !0,"aria-selected": n.current,- title: Zse(n),+ title: wP(n),...Y(w),onClick: () => {w || (n.crop ? m(n) : v.mutate({ ref: n.ref }));},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, L.jsx)(nce, {- src: qM(e, t, n.ref),+ /* @__PURE__ */ (0, L.jsx)(kP, {+ src: dP(e, t, n.ref),choice: n}),/* @__PURE__ */ (0, L.jsx)("span", {@@ -36890,15 +36659,15 @@ function tce({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {}),n.current ? /* @__PURE__ */ (0, L.jsx)("span", {className: "absolute top-1 left-1",- children: /* @__PURE__ */ (0, L.jsx)(bw, {+ children: /* @__PURE__ */ (0, L.jsx)($C, {variant: "caption",color: "gray",children: "在用"})}) : null,- YM(n) ? /* @__PURE__ */ (0, L.jsx)("span", {+ bP(n) ? /* @__PURE__ */ (0, L.jsx)("span", {className: "absolute top-1 right-1",- children: /* @__PURE__ */ (0, L.jsxs)(bw, {+ children: /* @__PURE__ */ (0, L.jsxs)($C, {variant: "caption",color: "gray",children: [n.cast, " 人"]@@ -36917,7 +36686,7 @@ function tce({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {},children: [/* @__PURE__ */ (0, L.jsx)("div", {className: "min-w-0 flex-1",- children: /* @__PURE__ */ (0, L.jsx)(Bj, {+ children: /* @__PURE__ */ (0, L.jsx)(Oj, {"aria-label": "番号",placeholder: "番号,如 ABW-232",value: l,@@ -36952,7 +36721,7 @@ function tce({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {className: "flex min-w-0 flex-1 items-center gap-2",children: [/* @__PURE__ */ (0, L.jsx)("div", {className: "min-w-0 flex-1",- children: /* @__PURE__ */ (0, L.jsx)(Bj, {+ children: /* @__PURE__ */ (0, L.jsx)(Oj, {type: "url","aria-label": "图片地址",placeholder: "https://…",@@ -36972,7 +36741,7 @@ function tce({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {})]})] })] });}-function nce({ src: e, choice: t }) {+function kP({ src: e, choice: t }) {let n = (0, I.useRef)(null), [r, i] = (0, I.useState)(!1);(0, I.useEffect)(() => {n.current?.complete && n.current.naturalWidth && i(!0);@@ -36980,7 +36749,7 @@ function nce({ src: e, choice: t }) {let a = {width: t.width,height: t.height- }, o = Use(t) ? aae(JM(t, a, $se), a) : null, s = r ? !0 : void 0;+ }, o = hP(t) ? ZN(mP(t, a, EP), a) : null, s = r ? !0 : void 0;return /* @__PURE__ */ (0, L.jsxs)("span", {className: "relative block w-full aspect-avatar-choice overflow-hidden",children: [/* @__PURE__ */ (0, L.jsx)("img", {@@ -37005,23 +36774,23 @@ function nce({ src: e, choice: t }) {})]});}-function rce({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {- let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, I.useState)(o[0]), [l, u] = (0, I.useState)(null), [d, f] = (0, I.useState)(null), p = qM(e, t, s), m = bO();+function AP({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {+ let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, I.useState)(o[0]), [l, u] = (0, I.useState)(null), [d, f] = (0, I.useState)(null), p = dP(e, t, s), m = hA();function h(e) {c(e), u(null), f(null);}- let g = d && l ? iae(d, l) : null;+ let g = d && l ? XN(d, l) : null;return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("div", {ref: m,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, L.jsx)(SO, {+ children: [/* @__PURE__ */ (0, L.jsx)(iP, {src: p,aspect: 1,box: d,size: l,label: `${n.label} 的头像取景框`,onSize: (e) => {- u(e), fO(e) && f(s === n.ref ? JM(n, e, 1) : pO(e, 1));+ u(e), VN(e) && f(s === n.ref ? mP(n, e, 1) : HN(e, 1));},onBox: f}), o.length > 1 ? /* @__PURE__ */ (0, L.jsx)("div", {@@ -37035,7 +36804,7 @@ function rce({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })"data-crop-base": !0,onClick: () => h(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: Xse(e)+ children: CP(e)}, e))}) : null]}), /* @__PURE__ */ (0, L.jsxs)("div", {@@ -37069,12 +36838,12 @@ function rce({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })}//#endregion//#region src/react/entity-hero/glyph.tsx-var ice = {+var jP = {"text-aa": 1.435,"mark-javdb": 326 / 111};-function XM({ name: e }) {- let t = ice[e];+function MP({ name: e }) {+ let t = jP[e];return /* @__PURE__ */ (0, L.jsx)("svg", {viewBox: t ? `0 0 ${(24 * t).toFixed(2)} 24` : "0 0 24 24","aria-hidden": "true",@@ -37084,19 +36853,19 @@ function XM({ name: e }) {}//#endregion//#region src/react/entity-hero/hero-pop.tsx-function ZM(e, t) {+function NP(e, t) {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;t.style.top = `${i + r.height <= innerHeight - 8 ? i : Math.max(8, n.top - r.height - 8)}px`;}-var QM = (e) => !!e?.isConnected && e.matches(":popover-open");-function $M(e, t, n, r) {+var PP = (e) => !!e?.isConnected && e.matches(":popover-open");+function FP(e, t, n, r) {let i = (0, I.useRef)(r);i.current = r, (0, I.useEffect)(() => {if (!e) return;let r = () => {- t.current && QM(n.current) ? ZM(t.current, n.current) : i.current();+ t.current && PP(n.current) ? NP(t.current, n.current) : i.current();};return addEventListener("scroll", r, {capture: !0,@@ -37110,17 +36879,17 @@ function $M(e, t, n, r) {n]);}-function eN({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {+function IP({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {let o = (0, I.useRef)(null), s = (0, I.useRef)(null), [c, l] = (0, I.useState)(!1), u = (0, I.useRef)(!1), d = (0, I.useRef)(0), f = () => {- clearTimeout(d.current), u.current = !1, QM(s.current) && s.current.hidePopover(), l(!1);+ clearTimeout(d.current), u.current = !1, PP(s.current) && s.current.hidePopover(), l(!1);}, p = () => {- clearTimeout(d.current), !(!s.current || !o.current || QM(s.current)) && (s.current.showPopover(), ZM(o.current, s.current), l(!0));+ clearTimeout(d.current), !(!s.current || !o.current || PP(s.current)) && (s.current.showPopover(), NP(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 $M(c, o, s, f), (0, I.useEffect)(() => {+ return FP(c, o, s, f), (0, I.useEffect)(() => {if (!c) return;let e = (e) => {let t = e.target;@@ -37146,7 +36915,7 @@ function eN({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {u.current ? f() : (p(), u.current = !0);},onKeyDown: (e) => {- e.key === "Escape" && QM(s.current) && (e.preventDefault(), f());+ e.key === "Escape" && PP(s.current) && (e.preventDefault(), f());},children: ["+", t]}), /* @__PURE__ */ (0, L.jsxs)("div", {@@ -37164,16 +36933,16 @@ function eN({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {}), a]})] });}-function ace({ following: e, busy: t, onToggle: n, tip: r }) {+function LP({ following: e, busy: t, onToggle: n, tip: r }) {let i = (0, I.useRef)(null), a = (0, I.useRef)(null), o = (0, I.useRef)(null), [s, c] = (0, I.useState)(!1), l = (0, I.useRef)(!1), u = () => {- QM(o.current) && o.current.hidePopover(), c(!1);+ PP(o.current) && o.current.hidePopover(), c(!1);}, d = () => {- l.current || !o.current || !i.current || QM(o.current) || (o.current.showPopover(), ZM(i.current, o.current), c(!0));+ l.current || !o.current || !i.current || PP(o.current) || (o.current.showPopover(), NP(i.current, o.current), c(!0));}, f = () => {l.current = !1, u();};- return $M(s, i, o, () => c(!1)), (0, I.useEffect)(() => {- i.current && QM(o.current) && ZM(i.current, o.current);+ return FP(s, i, o, () => c(!1)), (0, I.useEffect)(() => {+ i.current && PP(o.current) && NP(i.current, o.current);}, [r]), /* @__PURE__ */ (0, L.jsxs)("label", {ref: i,"data-entry-feed": "",@@ -37182,7 +36951,7 @@ function ace({ following: e, busy: t, onToggle: n, tip: r }) {a.current?.matches(":focus-visible") || f();},children: [- /* @__PURE__ */ (0, L.jsx)(XM, { name: "rss" }),+ /* @__PURE__ */ (0, L.jsx)(MP, { name: "rss" }),/* @__PURE__ */ (0, L.jsx)("input", {ref: a,type: "checkbox",@@ -37217,29 +36986,29 @@ function ace({ following: e, busy: t, onToggle: n, tip: r }) {}//#endregion//#region src/react/entity-hero/name-picker.tsx-function oce({ current: e, choices: t, onChoose: n, onAddAlias: r }) {+function RP({ current: e, choices: t, onChoose: n, onAddAlias: r }) {let [i, a] = (0, I.useState)(!1), o = (0, I.useRef)(null);return (0, I.useEffect)(() => {o.current?.setAttribute("title", "名字与别名");- }, []), /* @__PURE__ */ (0, L.jsxs)(Hre, {+ }, []), /* @__PURE__ */ (0, L.jsxs)(qie, {isOpen: i,onOpenChange: a,- children: [/* @__PURE__ */ (0, L.jsx)(UT, {+ children: [/* @__PURE__ */ (0, L.jsx)(VD, {ref: o,"data-namepick-toggle": "","aria-label": "名字与别名",- children: /* @__PURE__ */ (0, L.jsx)(XM, { name: "chevron-down" })- }), /* @__PURE__ */ (0, L.jsx)(uD, {+ children: /* @__PURE__ */ (0, L.jsx)(MP, { name: "chevron-down" })+ }), /* @__PURE__ */ (0, L.jsx)(ck, {placement: "bottom start",offset: 8,containerPadding: 8,- className: CA,+ className: sA,"data-namepick-menu": "",- children: /* @__PURE__ */ (0, L.jsxs)(Wre, {+ children: /* @__PURE__ */ (0, L.jsxs)(Yie, {"aria-label": "名字与别名","data-namepick-list": "",children: [- /* @__PURE__ */ (0, L.jsx)(_D, {+ /* @__PURE__ */ (0, L.jsx)(hk, {selectionMode: "single",disallowEmptySelection: !0,selectedKeys: [e],@@ -37247,31 +37016,31 @@ function oce({ current: e, choices: t, onChoose: n, onAddAlias: r }) {let r = [...t][0];r && r !== e && n(r);},- children: t.map((e) => /* @__PURE__ */ (0, L.jsxs)(yD, {+ children: t.map((e) => /* @__PURE__ */ (0, L.jsxs)(_k, {id: e,textValue: e,"data-namepick-name": e,- children: [/* @__PURE__ */ (0, L.jsx)(XM, { name: "check" }), /* @__PURE__ */ (0, L.jsx)("span", { children: e })]+ children: [/* @__PURE__ */ (0, L.jsx)(MP, { name: "check" }), /* @__PURE__ */ (0, L.jsx)("span", { children: e })]}, e))}),- /* @__PURE__ */ (0, L.jsx)(wre, { "data-namepick-rule": "" }),- /* @__PURE__ */ (0, L.jsx)(_D, { children: /* @__PURE__ */ (0, L.jsxs)(yD, {+ /* @__PURE__ */ (0, L.jsx)(kie, { "data-namepick-rule": "" }),+ /* @__PURE__ */ (0, L.jsx)(hk, { children: /* @__PURE__ */ (0, L.jsxs)(_k, {id: "alias",textValue: "添加别名","data-namepick-alias": "",onAction: r,- children: [/* @__PURE__ */ (0, L.jsx)(XM, { name: "plus" }), /* @__PURE__ */ (0, L.jsx)("span", { children: "添加别名…" })]+ children: [/* @__PURE__ */ (0, L.jsx)(MP, { name: "plus" }), /* @__PURE__ */ (0, L.jsx)("span", { children: "添加别名…" })]}) })]})})]});}-var sce = (e) => e === "studio" || e === "agency", cce = (e) => e === "performer" || e === "creator", lce = (e) => e ? "已订阅新作:库里还没有的新片排在资料卡下面。再点一下取消订阅。" : "订阅新作:定时去 JavDB 查这位有没有出新片,库里还没有的排在资料卡下面。";-function uce(e) {+var zP = (e) => e === "studio" || e === "agency", BP = (e) => e === "performer" || e === "creator", VP = (e) => e ? "已订阅新作:库里还没有的新片排在资料卡下面。再点一下取消订阅。" : "订阅新作:定时去 JavDB 查这位有没有出新片,库里还没有的排在资料卡下面。";+function HP(e) {return [e.canonical_name, ...e.aliases || []].filter((e, t, n) => e && n.indexOf(e) === t);}-function tN(e) {+function UP(e) {if (e.agency) return {name: e.agency.canonical_name,linked: !0@@ -37282,13 +37051,13 @@ function tN(e) {linked: !1} : null;}-function nN(e, t) {+function WP(e, t) {let n = u(e, "performer"), r = o(t);return r && [e.label, n].map(o).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";}-var rN = (e) => ({ site: c(e) });-function dce(e, n) {- let r = tN(e)?.name || "", i = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({+var GP = (e) => ({ site: c(e) });+function hoe(e, n) {+ let r = UP(e)?.name || "", i = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({type: "icon",url: e.url,title: e.label,@@ -37298,7 +37067,7 @@ function dce(e, n) {let t = e.retired_year ? `已于 ${e.retired_year} 年隐退` : "链接已失效";return {type: "gone",- title: `${nN(e, r)} · ${t}`+ title: `${WP(e, r)} · ${t}`};}let i = e.url || "";@@ -37309,8 +37078,8 @@ function dce(e, n) {if (n === "performer" && e.link_kind !== "social") return {type: "icon",url: i,- title: nN(e, r),- mark: rN(e)+ title: WP(e, r),+ mark: GP(e)};if (e.link_kind === "social") {let n = t(i);@@ -37318,7 +37087,7 @@ function dce(e, n) {type: "icon",url: i,title: e.label || "",- mark: n ? { brand: n } : rN(e)+ mark: n ? { brand: n } : GP(e)};}return {@@ -37326,13 +37095,13 @@ function dce(e, n) {url: i,title: e.label || "",text: u(e, n, a),- mark: rN(e)+ mark: GP(e)};});return [...i, ...o];}-var iN = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");-function fce(e) {+var KP = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");+function goe(e) {if (!e) return [];let t = [];e.birth_date && t.push({@@ -37389,14 +37158,14 @@ function fce(e) {tags: e.tags}), t;}-function pce(e) {+function _oe(e) {let t = e.length > 5 ? 4 : e.length;return {shown: e.slice(0, t),rest: e.length - t};}-function mce(e) {+function voe(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 ? {@@ -37407,8 +37176,8 @@ function mce(e) {}//#endregion//#region src/react/entity-hero/entity-hero-page.tsx-function hce({ kind: e, name: t, entity: n, feedNew: i, feedHost: a, actions: o, helpers: s }) {- let c = cce(e), l = sce(e), u = e === "performer" ? fce(n.profile) : [], d = dce(n, e), f = iN(n), p = e === "agency" ? [] : n.related_performers || [], m = (0, I.useRef)(null), h = (0, I.useRef)(null);+function yoe({ kind: e, name: t, entity: n, feedNew: i, feedHost: a, actions: o, helpers: s }) {+ let c = BP(e), l = zP(e), u = e === "performer" ? goe(n.profile) : [], d = hoe(n, e), f = KP(n), p = e === "agency" ? [] : n.related_performers || [], m = (0, I.useRef)(null), h = (0, I.useRef)(null);return (0, I.useEffect)(() => {s.wireScroller(m.current);}, [s, d.length]), (0, I.useEffect)(() => {@@ -37421,7 +37190,7 @@ function hce({ kind: e, name: t, entity: n, feedNew: i, feedHost: a, actions: o,children: [/* @__PURE__ */ (0, L.jsxs)("div", {"data-entity-portrait-wrap": "",- children: [/* @__PURE__ */ (0, L.jsx)(gce, {+ children: [/* @__PURE__ */ (0, L.jsx)(boe, {kind: e,name: t,helpers: s,@@ -37429,7 +37198,7 @@ function hce({ kind: e, name: t, entity: n, feedNew: i, feedHost: a, actions: o,company: l}), c && n.id ? /* @__PURE__ */ (0, L.jsx)("span", {"data-avatar-picker": "",- children: /* @__PURE__ */ (0, L.jsx)(ece, {+ children: /* @__PURE__ */ (0, L.jsx)(DP, {kind: e,entityId: Number(n.id),name: n.canonical_name || t,@@ -37442,14 +37211,14 @@ function hce({ kind: e, name: t, entity: n, feedNew: i, feedHost: a, actions: o,children: [/* @__PURE__ */ (0, L.jsxs)("div", {"data-entity-title": "",- children: [/* @__PURE__ */ (0, L.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, L.jsx)(oce, {+ children: [/* @__PURE__ */ (0, L.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, L.jsx)(RP, {current: n.canonical_name,- choices: uce(n),+ choices: HP(n),onChoose: o.chooseName,onAddAlias: o.addAlias})]}),- /* @__PURE__ */ (0, L.jsx)(_ce, {+ /* @__PURE__ */ (0, L.jsx)(xoe, {kind: e,entity: n,actions: o@@ -37457,9 +37226,9 @@ function hce({ kind: e, name: t, entity: n, feedNew: i, feedHost: a, actions: o,d.length ? /* @__PURE__ */ (0, L.jsx)("div", {ref: m,"data-entity-links": "",- children: d.map((e, t) => /* @__PURE__ */ (0, L.jsx)(xce, { link: e }, t))+ children: d.map((e, t) => /* @__PURE__ */ (0, L.jsx)(Toe, { link: e }, t))}) : null,- f.length || n.feed ? /* @__PURE__ */ (0, L.jsx)(Sce, {+ f.length || n.feed ? /* @__PURE__ */ (0, L.jsx)(Eoe, {entity: n,actions: o,helpers: s@@ -37468,11 +37237,11 @@ function hce({ kind: e, name: t, entity: n, feedNew: i, feedHost: a, actions: o,}),u.length ? /* @__PURE__ */ (0, L.jsx)("dl", {"data-entity-facts": "",- children: u.map((e) => /* @__PURE__ */ (0, L.jsx)(yce, {+ children: u.map((e) => /* @__PURE__ */ (0, L.jsx)(Coe, {glyph: e.glyph,label: e.label,clip: e.clip,- children: e.tags ? /* @__PURE__ */ (0, L.jsx)(bce, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, L.jsxs)("span", {+ children: e.tags ? /* @__PURE__ */ (0, L.jsx)(woe, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, L.jsxs)("span", {"data-fact-tone": e.tone === "plain" ? void 0 : e.tone,children: [t ? " " : "", e.text]}, t))@@ -37499,14 +37268,14 @@ function hce({ kind: e, name: t, entity: n, feedNew: i, feedHost: a, actions: o,}, e.k))})}) : null]- }), a ? (0, Ch.createPortal)(/* @__PURE__ */ (0, L.jsx)(Cce, {+ }), a ? (0, Th.createPortal)(/* @__PURE__ */ (0, L.jsx)(Doe, {feedNew: i,host: a,actions: o,helpers: s}), a) : null] });}-function gce({ kind: e, name: t, helpers: n, people: i, company: a }) {+function boe({ kind: e, name: t, helpers: n, people: i, company: a }) {let [o] = (0, I.useState)(() => `${n.portraitImg()}<span>${r(t.slice(0, 1))}</span>`);return /* @__PURE__ */ (0, L.jsx)("div", {"data-entity-portrait": i ? "round" : "square",@@ -37515,8 +37284,8 @@ function gce({ kind: e, name: t, helpers: n, people: i, company: a }) {dangerouslySetInnerHTML: { __html: o }});}-function _ce({ kind: e, entity: t, actions: r }) {- let i = tN(t), a = (e, t) => (n) => {+function xoe({ kind: e, entity: t, actions: r }) {+ let i = UP(t), a = (e, t) => (n) => {n.preventDefault(), r.openEntity(e, t);}, o = i ? i.linked ? /* @__PURE__ */ (0, L.jsx)("a", {href: n("agency", i.name),@@ -37525,36 +37294,36 @@ function _ce({ kind: e, entity: t, actions: r }) {children: i.name}) : i.name : null, s = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("b", { children: t.asset_count.toLocaleString() }), " 个视频"] });if (e === "performer") {- let e = mce(t.name_groups);+ let e = voe(t.name_groups);return /* @__PURE__ */ (0, L.jsxs)("div", {"data-entity-alias": "meta",children: [/* @__PURE__ */ (0, L.jsxs)("span", {"data-meta-item": "",title: "视频",- children: [/* @__PURE__ */ (0, L.jsx)(XM, { name: "film" }), /* @__PURE__ */ (0, L.jsx)("span", { children: s })]+ children: [/* @__PURE__ */ (0, L.jsx)(MP, { name: "film" }), /* @__PURE__ */ (0, L.jsx)("span", { children: s })]}),o ? /* @__PURE__ */ (0, L.jsxs)("span", {"data-meta-item": "",title: "事务所",- children: [/* @__PURE__ */ (0, L.jsx)(XM, { name: "briefcase" }), /* @__PURE__ */ (0, L.jsx)("span", { children: o })]+ children: [/* @__PURE__ */ (0, L.jsx)(MP, { name: "briefcase" }), /* @__PURE__ */ (0, L.jsx)("span", { children: o })]}) : null,e ? /* @__PURE__ */ (0, L.jsxs)("div", {"data-meta-item": "names",children: [- /* @__PURE__ */ (0, L.jsx)(XM, { name: "id-card" }),+ /* @__PURE__ */ (0, L.jsx)(MP, { name: "id-card" }),/* @__PURE__ */ (0, L.jsx)("span", {"data-alias-names": "",title: "别名",children: e.names.map((e, t) => /* @__PURE__ */ (0, L.jsx)("span", { children: e }, t))}),- e.rest > 0 ? /* @__PURE__ */ (0, L.jsx)(eN, {+ e.rest > 0 ? /* @__PURE__ */ (0, L.jsx)(IP, {id: "entityAliasPop",hook: "alias",rest: e.rest,label: `另外 ${e.rest} 个别名`,heading: `${e.total} 个别名`,- children: /* @__PURE__ */ (0, L.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, L.jsx)(vce, {+ children: /* @__PURE__ */ (0, L.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, L.jsx)(Soe, {label: e.label,names: e.names}, t)) })@@ -37589,25 +37358,25 @@ function _ce({ kind: e, entity: t, actions: r }) {]});}-function vce({ label: e, names: t }) {+function Soe({ label: e, names: t }) {return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [e ? /* @__PURE__ */ (0, L.jsx)("dt", { children: e }) : null, /* @__PURE__ */ (0, L.jsx)("dd", {"data-wide": e ? void 0 : "",children: t.map((e, t) => /* @__PURE__ */ (0, L.jsxs)("span", { children: [e.name, e.reading ? /* @__PURE__ */ (0, L.jsx)("small", { children: e.reading }) : null] }, t))})] });}-function yce({ glyph: e, label: t, clip: n, children: r }) {- return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("dt", { children: [/* @__PURE__ */ (0, L.jsx)(XM, { name: e }), t] }), /* @__PURE__ */ (0, L.jsx)("dd", {+function Coe({ glyph: e, label: t, clip: n, children: r }) {+ return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("dt", { children: [/* @__PURE__ */ (0, L.jsx)(MP, { name: e }), t] }), /* @__PURE__ */ (0, L.jsx)("dd", {"data-fact": e === "tags" ? "tags" : n ? "clip" : e === "calendar-range" ? "num" : void 0,title: n,children: r})] });}-function bce({ tags: e }) {- let { shown: t, rest: n } = pce(e);+function woe({ tags: e }) {+ let { shown: t, rest: n } = _oe(e);return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, L.jsx)("span", {"data-fact-tag": "",children: e- }, e)), n ? /* @__PURE__ */ (0, L.jsx)(eN, {+ }, e)), n ? /* @__PURE__ */ (0, L.jsx)(IP, {id: "entityTagPop",hook: "fact",rest: n,@@ -37622,10 +37391,10 @@ function bce({ tags: e }) {})}) : null] });}-function aN({ mark: e }) {+function qP({ mark: e }) {if ("brand" in e) return /* @__PURE__ */ (0, L.jsx)("span", {"data-link-icon": "brand",- children: /* @__PURE__ */ (0, L.jsx)(XM, { name: e.brand })+ children: /* @__PURE__ */ (0, L.jsx)(MP, { name: e.brand })});let t = s("globe") + ("site" in e ? `<img src="${r(e.site)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : "");return /* @__PURE__ */ (0, L.jsx)("span", {@@ -37633,7 +37402,7 @@ function aN({ mark: e }) {dangerouslySetInnerHTML: { __html: t }});}-function xce({ link: e }) {+function Toe({ link: e }) {switch (e.type) {case "icon": return /* @__PURE__ */ (0, L.jsx)("a", {"data-link": "icon",@@ -37642,19 +37411,19 @@ function xce({ link: e }) {rel: "noreferrer",title: e.title,"aria-label": e.title,- children: /* @__PURE__ */ (0, L.jsx)(aN, { mark: e.mark })+ children: /* @__PURE__ */ (0, L.jsx)(qP, { mark: e.mark })});case "gone": return /* @__PURE__ */ (0, L.jsx)("span", {"data-link": "gone",tabIndex: 0,title: e.title,"aria-label": e.title,- children: /* @__PURE__ */ (0, L.jsx)(aN, { mark: { globe: !0 } })+ children: /* @__PURE__ */ (0, L.jsx)(qP, { mark: { globe: !0 } })});case "private": return /* @__PURE__ */ (0, L.jsxs)("span", {"data-link": "private",title: "私人馆藏来源记录,不直接打开下载页",- children: [/* @__PURE__ */ (0, L.jsx)(aN, { mark: { globe: !0 } }), /* @__PURE__ */ (0, L.jsxs)("span", {+ children: [/* @__PURE__ */ (0, L.jsx)(qP, { mark: { globe: !0 } }), /* @__PURE__ */ (0, L.jsxs)("span", {"data-link-label": "",children: ["来源 · ", e.label]})]@@ -37665,14 +37434,14 @@ function xce({ link: e }) {target: "_blank",rel: "noreferrer",title: e.title,- children: [/* @__PURE__ */ (0, L.jsx)(aN, { mark: e.mark }), /* @__PURE__ */ (0, L.jsx)("span", {+ children: [/* @__PURE__ */ (0, L.jsx)(qP, { mark: e.mark }), /* @__PURE__ */ (0, L.jsx)("span", {"data-link-label": "",children: e.text})]});}}-function Sce({ entity: e, actions: t, helpers: n }) {+function Eoe({ entity: e, actions: t, helpers: n }) {let [r, i] = (0, I.useState)(!!e.feed?.following), [a, o] = (0, I.useState)(!1), s = (0, I.useRef)(!1), c = async (e) => {if (s.current) return !1;s.current = !0, o(!0);@@ -37690,31 +37459,31 @@ function Sce({ entity: e, actions: t, helpers: n }) {};return /* @__PURE__ */ (0, L.jsxs)("div", {"data-entry-marks": "",- children: [iN(e).map((e, t) => /* @__PURE__ */ (0, L.jsxs)("a", {+ children: [KP(e).map((e, t) => /* @__PURE__ */ (0, L.jsxs)("a", {"data-entry-mark": "",href: e.url,target: "_blank",rel: "noreferrer",title: e.label,"aria-label": e.label,- children: [e.mark ? /* @__PURE__ */ (0, L.jsx)(XM, { name: e.mark }) : /* @__PURE__ */ (0, L.jsxs)("span", {+ children: [e.mark ? /* @__PURE__ */ (0, L.jsx)(MP, { name: e.mark }) : /* @__PURE__ */ (0, L.jsxs)("span", {"data-missav-mark": "",children: [/* @__PURE__ */ (0, L.jsx)("span", { children: "MISS" }), /* @__PURE__ */ (0, L.jsx)("span", { children: "AV" })]}), e.ordinal ? /* @__PURE__ */ (0, L.jsx)("span", {"data-entry-ordinal": "",children: e.ordinal}) : null]- }, t)), e.feed ? /* @__PURE__ */ (0, L.jsx)(ace, {+ }, t)), e.feed ? /* @__PURE__ */ (0, L.jsx)(LP, {following: r,busy: a,onToggle: (e) => {l(e);},- tip: lce(r)+ tip: VP(r)}) : null]});}-function Cce({ feedNew: e, host: t, actions: n, helpers: r }) {+function Doe({ feedNew: e, host: t, actions: n, helpers: r }) {let i = (0, I.useRef)(null), a = e?.items.length ? e.html : "";(0, I.useLayoutEffect)(() => {t.removeAttribute("aria-busy"), t.hidden = !a;@@ -37738,7 +37507,7 @@ function Cce({ feedNew: e, host: t, actions: n, helpers: r }) {}//#endregion//#region src/follow-sort.ts-var oN = [+var JP = [["checked", "检查时间"],["added", "添加时间"],["name", "创作者名称"],@@ -37746,7 +37515,7 @@ var oN = [["source", "来源名称"],["provider", "站点"],["status", "状态"]-], wce = "checked", sN = {+], Ooe = "checked", YP = {checked: "desc",added: "desc",name: "asc",@@ -37754,32 +37523,32 @@ var oN = [source: "asc",provider: "asc",status: "asc"-}, Tce = (e) => oN.some(([t]) => t === e);-function cN(e, t) {- let n = Tce(e) ? e : wce;+}, koe = (e) => JP.some(([t]) => t === e);+function XP(e, t) {+ let n = koe(e) ? e : Ooe;return {sort: n,- dir: t === "asc" || t === "desc" ? t : sN[n]+ dir: t === "asc" || t === "desc" ? t : YP[n]};}//#endregion//#region src/react/follow-manage/follow-manage.ts-var lN = "/api/follow", uN = "/api/follow/credentials", dN = "/api/follow/check", fN = "/api/follow/source", pN = "/api/follow/resolve", Ece = "/api/follow/suggest", mN = "/api/follow/author-alias", Dce = "/api/follow/credential", hN = "/api/follow/status", Oce = "/api/feeds", gN = "/api/feeds/source", kce = "/api/feeds/check", Ace = "/api/feeds/lookup", _N = ["follow-manage"], vN = ["follow-manage", "credentials"], jce = ["follow-manage", "check"], Mce = ["follow-manage", "resolve"], yN = ["follow-manage", "feeds"], Nce = (e) => [+var ZP = "/api/follow", QP = "/api/follow/credentials", $P = "/api/follow/check", eF = "/api/follow/source", tF = "/api/follow/resolve", Aoe = "/api/follow/suggest", nF = "/api/follow/author-alias", joe = "/api/follow/credential", rF = "/api/follow/status", Moe = "/api/feeds", iF = "/api/feeds/source", Noe = "/api/feeds/check", Poe = "/api/feeds/lookup", aF = ["follow-manage"], oF = ["follow-manage", "credentials"], Foe = ["follow-manage", "check"], Ioe = ["follow-manage", "resolve"], sF = ["follow-manage", "feeds"], Loe = (e) => ["follow-manage","suggest",e-], bN = [["default", "默认视图"], ["table", "表格视图"]], xN = [+], cF = [["default", "默认视图"], ["table", "表格视图"]], lF = [10,20,50,100-], Pce = Object.fromEntries(oN), SN = {+], Roe = Object.fromEntries(JP), uF = {author: "name",source: "source",provider: "provider",status: "status",checked: "checked"-}, Fce = (e) => bN.some(([t]) => t === e), Ice = (e) => xN.includes(Number(e)) ? Number(e) : 20, Lce = {+}, zoe = (e) => cF.some(([t]) => t === e), Boe = (e) => lF.includes(Number(e)) ? Number(e) : 20, Voe = {checked: ["从近到远", "从远到近"],added: ["从近到远", "从远到近"],name: ["倒序", "正序"],@@ -37787,25 +37556,25 @@ var lN = "/api/follow", uN = "/api/follow/credentials", dN = "/api/follow/check"source: ["倒序", "正序"],provider: ["倒序", "正序"],status: ["倒序", "正序"]-}, Rce = (e, t) => `按${Pce[e]}${Lce[e][t === "asc" ? 0 : 1]}排序`;-function CN(e) {+}, Hoe = (e, t) => `按${Roe[e]}${Voe[e][t === "asc" ? 0 : 1]}排序`;+function dF(e) {let t = e.last_status;return t === "error" || t === "unauthorized" ? 0 : e.enabled ? t === "ok" ? 3 : 2 : 1;}-function wN(e) {+function Uoe(e) {return e.history_exhausted ? "没有更多" : e.enabled ? e.last_status === "ok" ? "正常" : e.last_status === "error" || e.last_status === "unauthorized" ? "检查失败" : "未检查" : "已暂停";}-var TN = (e) => e.last_status === "error" || e.last_status === "unauthorized", EN = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), DN = {- source: EN,- provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || EN(e, t),- status: (e, t) => CN(e) - CN(t) || EN(e, t)-}, ON = (e) => Date.parse(e || "") || 0, kN = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();-function AN(e, t = []) {+var fF = (e) => e.last_status === "error" || e.last_status === "unauthorized", pF = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), mF = {+ source: pF,+ provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || pF(e, t),+ status: (e, t) => dF(e) - dF(t) || pF(e, t)+}, hF = (e) => Date.parse(e || "") || 0, gF = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();+function _F(e, t = []) {if (!e.length) return "";- let n = (e) => String(e.author_name || "").trim() || kN(e.label), r = e.find((e) => e.entity_name);+ let n = (e) => String(e.author_name || "").trim() || gF(e.label), r = e.find((e) => e.entity_name);if (r) return r.entity_name;let i = t.find((t) => `name:${t.canonical_key}` === e[0]?.author_key);- if (i) return kN(i.canonical_name);+ if (i) return gF(i.canonical_name);let a = e.find((e) => e.official_avatar_url);if (a && n(a)) return n(a);let o = e.map(n).filter(Boolean);@@ -37813,18 +37582,18 @@ function AN(e, t = []) {let s = (e) => (e.match(/[A-Z]/g) || []).length;return o.reduce((e, t) => s(t) > s(e) ? t : e, o[0]);}-function jN(e) {+function Woe(e) {let t = e.trim().match(/[A-Za-z0-9]/);return (t ? t[0] : Array.from(e.trim())[0] || "?").toUpperCase();}-function MN(e) {+function Goe(e) {let t = e.find((e) => e.official_avatar_url), n = e.find((e) => e.avatar_url), r = t?.official_avatar_url || n?.avatar_url || "";return {src: r,fallback: t && n && n.avatar_url !== r && n.avatar_url || ""};}-function NN(e) {+function vF(e) {let t = [], n = /* @__PURE__ */ new Map();for (let r of e) {let e = r.author_key || `source:${r.id}`;@@ -37832,32 +37601,32 @@ function NN(e) {}return t.map((e) => n.get(e));}-function PN(e, t, n, r = []) {- let i = NN(e), a = n === sN[t] ? 1 : -1, o = (e) => AN(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = DN[t];+function Koe(e, t, n, r = []) {+ let i = vF(e), a = n === YP[t] ? 1 : -1, o = (e) => _F(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = mF[t];if (c) {for (let e of i) e.sort((e, t) => a * c(e, t));return i.sort((e, t) => a * c(e[0], t[0]) || s(e, t));}- let l = (e) => Math.max(...e.map((e) => ON(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => ON(e.created_at)));+ let l = (e) => Math.max(...e.map((e) => hF(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => hF(e.created_at)));return i.sort((e, n) => t === "name" ? a * s(e, n) : t === "sources" ? a * (n.length - e.length) || s(e, n) : t === "added" ? a * (u(n) - u(e)) || s(e, n) : a * (l(n) - l(e)) || s(e, n));}-function FN(e, t, n, r = []) {+function qoe(e, t, n, r = []) {let i = e.flatMap((e) => {- let t = AN(e, r);+ let t = _F(e, r);return e.map((n) => ({source: n,group: e,author: t}));- }), a = DN[t];+ }), a = mF[t];if (a) {- let e = n === sN[t] ? 1 : -1;+ let e = n === YP[t] ? 1 : -1;i.sort((t, n) => e * a(t.source, n.source));}return i;}-function IN(e, t, n) {- let r = $O(e, t), i = ek(n, r), a = (i - 1) * t;+function Joe(e, t, n) {+ let r = nE(e, t), i = rE(n, r), a = (i - 1) * t;return {page: i,pages: r,@@ -37866,91 +37635,91 @@ function IN(e, t, n) {end: Math.min(a + t, e)};}-function LN(e, t) {+function Yoe(e, t) {let n = new Set(t.map((e) => e.id));return new Set([...e].filter((e) => n.has(e)));}-function RN(e, t) {+function yF(e, t) {let n = t.filter((t) => e.has(t)).length;return {all: t.length > 0 && n === t.length,some: n > 0 && n < t.length};}-function zN(e, t, n) {+function bF(e, t, n) {let r = new Set(e);for (let e of t) n ? r.add(e) : r.delete(e);return r;}-var BN = (e) => Tw(`${lN}?summary=1`, e), VN = (e) => Tw(uN, e), HN = (e) => Tw(dN, e), UN = (e) => Tw(pN, e), WN = (e, t) => Tw(`${Ece}?q=${encodeURIComponent(e)}`, t), GN = (e) => q(dN, {+var xF = (e) => iw(`${ZP}?summary=1`, e), SF = (e) => iw(QP, e), Xoe = (e) => iw($P, e), Zoe = (e) => iw(tF, e), Qoe = (e, t) => iw(`${Aoe}?q=${encodeURIComponent(e)}`, t), CF = (e) => q($P, {...e?.length ? { sources: e } : {},background: !0-}), KN = (e) => q(pN, {+}), $oe = (e) => q(tF, {lines: e,background: !0-}), qN = (e, t) => q(fN, {+}), wF = (e, t) => q(eF, {action: "enabled",id: e,enabled: t-}), JN = (e) => q(fN, {+}), TF = (e) => q(eF, {action: "remove",id: e-}), YN = (e) => q(fN, {+}), ese = (e) => q(eF, {action: "add",url: e.url,label: e.label,author: e.author || "",aliases: e.aliases || [],defer_check: !0-}), XN = (e, t) => q(mN, {+}), EF = (e, t) => q(nF, {action: "add",canonical: e,alias: t-}), ZN = (e) => q(mN, {+}), tse = (e) => q(nF, {action: "remove",alias: e-}), QN = (e, t) => q(Dce, {+}), nse = (e, t) => q(joe, {provider: e,values: t-}), $N = (e, t) => q(hN, {+}), rse = (e, t) => q(rF, {item: e,to: t-}), eP = () => Tw(`${lN}?status=new&limit=1000`);-async function tP(e) {- let t = await Tw(Oce, e);+}), ise = () => iw(`${ZP}?status=new&limit=1000`);+async function DF(e) {+ let t = await iw(Moe, e);if (!Array.isArray(t?.sources)) throw Error("没有读到订阅源");return t;}-var nP = (e, t, n) => q(gN, {+var OF = (e, t, n) => q(iF, {action: "enabled",id: e,enabled: t-}, "POST", n), rP = (e, t) => q(gN, {+}, "POST", n), kF = (e, t) => q(iF, {action: "remove",id: e-}, "POST", t), iP = (e, t) => q(kce, t?.length ? { sources: t } : { all: !0 }, "POST", e), aP = (e, t) => Tw(`${Ace}?q=${encodeURIComponent(e)}`, t), oP = (e, t, n) => q(gN, {+}, "POST", t), AF = (e, t) => q(Noe, t?.length ? { sources: t } : { all: !0 }, "POST", e), ase = (e, t) => iw(`${Poe}?q=${encodeURIComponent(e)}`, t), ose = (e, t, n) => q(iF, {action: "follow-name",name: e,ids: t}, "POST", n);-async function sP(e, t = "") {+async function sse(e, t = "") {await Promise.all([X.fetchQuery({- queryKey: _N,- queryFn: () => BN(e)+ queryKey: aF,+ queryFn: () => xF(e)}),X.fetchQuery({- queryKey: vN,- queryFn: () => VN(e)+ queryKey: oF,+ queryFn: () => SF(e)}),t === "feeds" ? X.fetchQuery({- queryKey: yN,- queryFn: () => tP(e)+ queryKey: sF,+ queryFn: () => DF(e)}) : null]);}-function cP(e, t) {- X.setQueryData(_N, (n) => n && {+function jF(e, t) {+ X.setQueryData(aF, (n) => n && {...n,sources: n.sources.map((n) => n.id === e ? {...n,@@ -37958,24 +37727,24 @@ function cP(e, t) {} : n)});}-function lP(e) {+function MF(e) {let t = new Set(e);- X.setQueryData(_N, (e) => e && {+ X.setQueryData(aF, (e) => e && {...e,sources: e.sources.filter((e) => !t.has(e.id))});}-var uP = () => X.invalidateQueries({- queryKey: _N,+var NF = () => X.invalidateQueries({+ queryKey: aF,exact: !0});-function dP(e) {+function cse(e) {let t = e.results || [], n = (e) => t.reduce((t, n) => t + (e(n) || 0), 0), r = n((e) => e.added), i = n((e) => e.updated), a = n((e) => e.skipped_compilations), o = n((e) => e.skipped) - a, s = n((e) => e.history_skipped), c = n((e) => e.probed), l = t.filter((e) => e.ok && !e.added && !e.updated).length, u = t.filter((e) => !e.ok).length, d = [];r && d.push(`新增 ${r} 条`), i && d.push(`更新 ${i} 条`), o && d.push(`跳过 ${o} 条无资源`), a && d.push(`排除 ${a} 个超大合集`), s && d.push(`跳过 ${s} 条超出首次采集范围的历史内容`), c && d.push(`回查 ${c} 条`), l && d.push(`${l} 个来源没有更新`), d.length || d.push("没有任何更新");let f = t.filter((e) => e.exhausted).length;return f && d.push(`${f} 个没有更多内容`), u && d.push(`${u} 个失败`), `检查了 ${t.length} 个来源:${d.join(" · ")}`;}-var fP = (e) => (e?.results || []).filter((e) => !e.ok), pP = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", mP = (e) => e.last_checked_at ? tk(e.last_checked_at) : "未检查", hP = /* @__PURE__ */ new Set([+var lse = (e) => (e?.results || []).filter((e) => !e.ok), use = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", PF = (e) => e.last_checked_at ? aE(e.last_checked_at) : "未检查", dse = /* @__PURE__ */ new Set(["fanbox","patreon","subscribestar",@@ -37988,50 +37757,50 @@ var fP = (e) => (e?.results || []).filter((e) => !e.ok), pP = (e) => (e?.results"gofile","f95zone","simpcity"-]), gP = (e) => hP.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", _P = {+]), fse = (e) => dse.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", pse = {required: "需要",optional: "可选",none: "不需要",blocked: "接不进来"-}, vP = (e) => !!e.present && !e.missing.length, yP = [+}, FF = (e) => !!e.present && !e.missing.length, mse = [["", "全部"],["new", "未看"],["saved", "已保存"],["ignored", "已忽略"]-], bP = [+], hse = [["new", "更新时间"],["hot", "热度"],["dur", "时长"]-], xP = {+], IF = {new: ["从新到旧", "从旧到新"],hot: ["从高到低", "从低到高"],dur: ["从长到短", "从短到长"]};-function SP(e, t) {+function LF(e, t) {let n = (e) => encodeURIComponent(e.join(","));return `/api/follow?limit=300&offset=${t}` + (e.status ? `&status=${e.status}` : "") + (e.author ? `&author=${n([e.author])}` : "") + (e.provider ? `&provider=${n([e.provider])}` : "") + (e.tags.length ? `&tag=${n(e.tags)}` : "") + (e.work ? `&work=${n([e.work])}` : "") + (e.sort === "new" ? "" : `&sort=${e.sort}`) + (e.sort === "rand" ? `&seed=${e.seed}` : "") + (e.dir === "desc" ? "" : `&dir=${e.dir}`);}-function CP(e, t) {+function RF(e, t) {return {queryKey: ["follow-feed",- SP(e, 0),+ LF(e, 0),t],- queryFn: ({ pageParam: t, signal: n }) => Tw(SP(e, t), n),+ queryFn: ({ pageParam: t, signal: n }) => iw(LF(e, t), n),initialPageParam: 0,getNextPageParam: (e) => e.has_more ? (e.offset || 0) + 300 : void 0,- placeholderData: Me+ placeholderData: Pe};}-var wP = ["follow-feed", "credentials"], TP = (e) => Tw(uN, e).catch(() => ({ providers: [] }));-async function EP(e, t) {- let n = CP(e.view, e.revision);+var zF = ["follow-feed", "credentials"], BF = (e) => iw(QP, e).catch(() => ({ providers: [] }));+async function gse(e, t) {+ let n = RF(e.view, e.revision);X.removeQueries({queryKey: n.queryKey,exact: !0}), X.removeQueries({- queryKey: wP,+ queryKey: zF,exact: !0}), await Promise.all([X.fetchInfiniteQuery({queryKey: n.queryKey,@@ -38042,11 +37811,11 @@ async function EP(e, t) {initialPageParam: 0,getNextPageParam: n.getNextPageParam}), X.fetchQuery({- queryKey: wP,- queryFn: () => TP(t)+ queryKey: zF,+ queryFn: () => BF(t)})]);}-function DP(e) {+function VF(e) {if (!e?.pages.length) return null;let t = e.pages, n = t[t.length - 1];return {@@ -38055,10 +37824,10 @@ function DP(e) {groups: t.flatMap((e) => e.groups || [])};}-function OP(e, t, n) {+function HF(e, t, n) {return [...e].sort((e, r) => f(n, t(e)) - f(n, t(r)) || String(t(e)).localeCompare(String(t(r))));}-function kP(e) {+function UF(e) {let t = /* @__PURE__ */ new Set();return [e.primary,@@ -38066,12 +37835,12 @@ function kP(e) {...e.duplicates].filter((e) => !e || t.has(e.id) ? !1 : (t.add(e.id), !0));}-function AP(e) {+function _se(e) {for (let [, t] of X.getQueriesData({ queryKey: ["follow-feed"] })) {if (!Array.isArray(t?.pages) || !t.pages.length) continue;let n = t.pages[t.pages.length - 1];for (let r of t.pages) for (let t of r.groups || []) {- let r = kP(t).find((t) => t.id === e);+ let r = UF(t).find((t) => t.id === e);if (r) return {item: r,group: t,@@ -38082,7 +37851,7 @@ function AP(e) {}return null;}-function jP(e) {+function vse(e) {X.setQueriesData({queryKey: ["follow-feed"],predicate: (e) => Array.isArray(e.state.data?.pages)@@ -38092,7 +37861,7 @@ function jP(e) {...t,groups: (t.groups || []).map((t) => {let n = (t) => t.id === e.id ? e : t;- return kP(t).some((t) => t.id === e.id) ? {+ return UF(t).some((t) => t.id === e.id) ? {...t,primary: n(t.primary),variants: t.variants.map(n),@@ -38102,39 +37871,39 @@ function jP(e) {}))});}-function MP(e, t) {+function yse(e, t) {X.setQueriesData({queryKey: ["follow-feed"],predicate: (e) => Array.isArray(e.state.data?.pages)- }, (n) => n && UP(n, null, e, t));+ }, (n) => n && ZF(n, null, e, t));}-function NP(e) {- return kP(e).sort((e, t) => (Date.parse(t.published_at || "") || 0) - (Date.parse(e.published_at || "") || 0) || (+t.id || 0) - (+e.id || 0));+function WF(e) {+ return UF(e).sort((e, t) => (Date.parse(t.published_at || "") || 0) - (Date.parse(e.published_at || "") || 0) || (+t.id || 0) - (+e.id || 0));}-function PP(e) {+function GF(e) {let t = /* @__PURE__ */ new Set(), n = e.media_items || [];return n.length ? n.forEach((e) => {(e.media_kind === "image" || e.media_kind === "video") && t.add(e.media_kind);}) : (e.media_kind === "image" || e.media_kind === "video") && t.add(e.media_kind), t;}-function FP(e) {+function KF(e) {let t = /* @__PURE__ */ new Set();- return kP(e).forEach((e) => PP(e).forEach((e) => t.add(e))), t;+ return UF(e).forEach((e) => GF(e).forEach((e) => t.add(e))), t;}-function IP(e, t) {+function qF(e, t) {let n = t === "images" ? "image" : "video";- return NP(e).find((e) => PP(e).has(n)) || e.primary;+ return WF(e).find((e) => GF(e).has(n)) || e.primary;}-function LP(e) {- return NP(e).filter((e) => e.playable && e.media_kind === "video");+function JF(e) {+ return WF(e).filter((e) => e.playable && e.media_kind === "video");}-var RP = {+var YF = {video: "个视频",image: "张图片",mixed: "个媒体"};-function zP({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r = !1, limit: i = 9 } = {}) {- let a = n?.media || 0, o = n?.copies || 0, s = n?.kind || "", c = a > 1 ? `${a} ${RP[s] || RP.mixed}` : o > 1 ? `${o} 个来源` : "", l = s === "image" || s !== "video" && r ? "pics" : "play", u = /* @__PURE__ */ new Set([t ?? e]), d = e ? [e] : [];+function bse({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r = !1, limit: i = 9 } = {}) {+ let a = n?.media || 0, o = n?.copies || 0, s = n?.kind || "", c = a > 1 ? `${a} ${YF[s] || YF.mixed}` : o > 1 ? `${o} 个来源` : "", l = s === "image" || s !== "video" && r ? "pics" : "play", u = /* @__PURE__ */ new Set([t ?? e]), d = e ? [e] : [];for (let t of n?.faces || []) r && t.media_kind !== "image" || !t.thumb_url || t.thumb_url === e || u.has(t.face) || (u.add(t.face), d.push(t.thumb_url));return {isMix: !!c,@@ -38143,14 +37912,14 @@ function zP({ cover: e = "", coverFace: t = null, stack: n = null, imageView: rfaces: d.length > 1 ? d.slice(0, i) : []};}-function BP(e) {+function xse(e) {let t = e.filter((e) => e.can_backfill).map((e) => (e.backfill_page || 0) + 1);if (!t.length) return "";let n = Math.max(...t), r = Math.min(...t);return n <= 1 ? "每个来源都只抓了第 1 页" : r === n ? `每个来源都抓到第 ${n} 页` : `已抓到第 ${r}–${n} 页`;}-function VP(e, t, n) {- return e === t ? xP[e] ? {+function XF(e, t, n) {+ return e === t ? IF[e] ? {sort: e,dir: n === "asc" ? "desc" : "asc"} : null : {@@ -38158,13 +37927,13 @@ function VP(e, t, n) {dir: "desc"};}-function HP(e, t, n, r) {- let i = VP(e, n, r);+function Sse(e, t, n, r) {+ let i = XF(e, n, r);if (!i) return "";- let a = xP[i.sort];+ let a = IF[i.sort];return `按${t}${a ? a[+(i.dir === "asc")] : ""}排序`;}-function UP(e, t, n, r) {+function ZF(e, t, n, r) {let i = "", a = e.pages.map((e) => ({...e,groups: (e.groups || []).flatMap((e) => {@@ -38194,7 +37963,7 @@ function UP(e, t, n, r) {})};}-function WP(e, t) {+function Cse(e, t) {let n = [];return e.author && n.push({kind: "创作者",@@ -38214,7 +37983,7 @@ function WP(e, t) {label: e})), n;}-function GP(e, t) {+function wse(e, t) {return t.kind === "创作者" ? {...e,author: ""@@ -38229,7 +37998,7 @@ function GP(e, t) {tags: e.tags.filter((e) => e !== t.key)};}-function KP(e, t) {+function Tse(e, t) {for (let n of e) {let e = n.primary?.tag_types?.[t];if (e) return e;@@ -38238,11 +38007,11 @@ function KP(e, t) {}//#endregion//#region src/react/follow-detail/follow-detail.ts-var qP = (e) => ["follow-item", e], JP = (e) => `/api/follow?item=${encodeURIComponent(e)}`, YP = "/api/follow/save", XP = "/api/follow/media/hide";-async function ZP(e, t) {- let n = await Tw(JP(e), t);+var QF = (e) => ["follow-item", e], Ese = (e) => `/api/follow?item=${encodeURIComponent(e)}`, Dse = "/api/follow/save", Ose = "/api/follow/media/hide";+async function $F(e, t) {+ let n = await iw(Ese(e), t);for (let t of n.groups || []) {- let r = kP(t).find((t) => t.id === e);+ let r = UF(t).find((t) => t.id === e);if (r) return {item: r,group: t,@@ -38252,21 +38021,21 @@ async function ZP(e, t) {}throw Error("这条关注内容已不存在");}-async function QP(e, t) {- let n = qP(e.id), r = AP(e.id), i = X.getQueryData(wP) ? null : X.fetchQuery({- queryKey: wP,- queryFn: () => TP(t)+async function kse(e, t) {+ let n = QF(e.id), r = _se(e.id), i = X.getQueryData(zF) ? null : X.fetchQuery({+ queryKey: zF,+ queryFn: () => BF(t)});r ? X.setQueryData(n, {...r,item: r.item}) : await X.fetchQuery({queryKey: n,- queryFn: () => ZP(e.id, t)+ queryFn: () => $F(e.id, t)}), await i;}-function $P(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 && LP(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);+function Ase(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 && JF(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,selected: s,@@ -38280,32 +38049,32 @@ function $P(e, t, n, r) {src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""};}-var eF = (e) => kP(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), tF = {+var jse = (e) => UF(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), Mse = {"gofile.io": "Gofile","pixeldrain.com": "Pixeldrain","mega.nz": "MEGA","mega.io": "MEGA","mediafire.com": "MediaFire","drive.google.com": "Google Drive"-}, nF = {+}, Nse = {gofile: "Gofile",pixeldrain: "Pixeldrain",mega: "MEGA",mediafire: "MediaFire",google_drive: "Google Drive"};-function rF(e) {+function Pse(e) {try {let t = new URL(e).hostname.replace(/^www\./, "");- return tF[t] || t;+ return Mse[t] || t;} catch {return "外部文件页";}}-function iF(e, t) {- return nF[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";+function eI(e, t) {+ return Nse[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";}-function aF(e, t, n = "") {+function Fse(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;@@ -38314,56 +38083,56 @@ function aF(e, t, n = "") {title: e.is_release && t.author ? `${t.author}:${i}` : i};}-var oF = (e) => String(e.name || "").trim(), sF = (e, t) => e.tag_types?.[t] || "unknown", cF = /* @__PURE__ */ new Set([+var Ise = (e) => String(e.name || "").trim(), tI = (e, t) => e.tag_types?.[t] || "unknown", Lse = /* @__PURE__ */ new Set(["artist","character","copyright","metadata","unknown"]);-function lF(e, t) {- let n = sF(e, t);- return `r34-${cF.has(n) ? n : "general"}`;+function Rse(e, t) {+ let n = tI(e, t);+ return `r34-${Lse.has(n) ? n : "general"}`;}-var uF = [+var nI = ["copyright","character","artist","general","metadata"];-function dF(e, t) {+function zse(e, t) {let n = e.detail_tags || e.tags || [], r = (t) => {- let n = uF.indexOf(sF(e, t));- return n < 0 ? uF.length : n;+ let n = nI.indexOf(tI(e, t));+ return n < 0 ? nI.length : n;};return [...n].sort((e, n) => r(e) - r(n) || t(e).localeCompare(t(n)));}-function fF(e, t) {+function Bse(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 pF = (e, t) => ({+var Vse = (e, t) => ({sources: e.sources,aliases: e.aliases,credentials: t-}), mF = (e) => e?.size ? { size: e.size } : {};-function hF(e, t) {+}), rI = (e) => e?.size ? { size: e.size } : {};+function Hse(e, t) {let { images: n, kind: r, src: i, selected: a } = t;return n.length ? n.map((t, r) => ({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: iF(t, e),- ...mF(t),+ source: eI(t, e),+ ...rI(t),position: r + 1,total: n.length})) : r === "image" && i ? [{src: i,thumb: e.thumb_url || i,name: e.title,- source: iF(a, e),- ...mF(a),+ source: eI(a, e),+ ...rI(a),position: 1,total: 1}] : e.thumb_url ? [{@@ -38375,10 +38144,10 @@ function hF(e, t) {total: 1}] : [];}-var gF = (e) => e === "seen" ? "已标记看过" : "已更新关注状态";+var Use = (e) => e === "seen" ? "已标记看过" : "已更新关注状态";//#endregion//#region src/react/components/mix-queue.tsx-function _F({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...c }) {+function iI({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...c }) {return /* @__PURE__ */ (0, L.jsxs)("aside", {className: "mixqueue","data-queue-kind": e,@@ -38406,47 +38175,52 @@ function _F({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a,})]});}-function vF({ current: e, pic: t, children: n, ...r }) {- return /* @__PURE__ */ (0, L.jsx)("div", {+function aI({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {+ let s = /* @__PURE__ */ (0, L.jsx)("span", {+ className: "mixitemtext",+ children: a+ });+ return /* @__PURE__ */ (0, L.jsxs)("div", {className: "mixrow",- children: /* @__PURE__ */ (0, L.jsxs)("button", {+ ...i,+ children: [/* @__PURE__ */ (0, L.jsxs)("button", {type: "button",className: e ? "mixitem current" : "mixitem","aria-current": e ? "true" : "false",- ...r,+ ...o,children: [/* @__PURE__ */ (0, L.jsx)("span", {className: "mixitempic",children: t- }), /* @__PURE__ */ (0, L.jsx)("span", {- className: "mixitemtext",- children: n+ }), n === void 0 ? s : /* @__PURE__ */ (0, L.jsxs)("span", {+ className: "mixitemmeta",+ children: [n, s]})]- })+ }), r]});}-var yF = ({ label: e, count: t }) => /* @__PURE__ */ (0, L.jsxs)("h3", {+var Wse = ({ label: e, count: t }) => /* @__PURE__ */ (0, L.jsxs)("h3", {className: "mixgrouplabel",children: [e," ",/* @__PURE__ */ (0, L.jsx)("span", { children: t })]-}), bF = (e) => Number(e) > 0, xF = ({ name: e }) => /* @__PURE__ */ (0, L.jsx)("span", {+}), oI = (e) => Number(e) > 0, Gse = ({ name: e }) => /* @__PURE__ */ (0, L.jsx)("span", {className: "contents",dangerouslySetInnerHTML: { __html: s(e) }-}), SF = s("external-link", "externalmark");-function CF(e) {- let { id: t, actions: n } = e, r = Nt({- queryKey: qP(t),- queryFn: ({ signal: e }) => ZP(t, e)- }), i = Nt({- queryKey: wP,- queryFn: ({ signal: e }) => TP(e)+}), sI = s("external-link", "externalmark");+function Kse(e) {+ let { id: t, actions: n } = e, r = Ft({+ queryKey: QF(t),+ queryFn: ({ signal: e }) => $F(t, e)+ }), i = Ft({+ queryKey: zF,+ queryFn: ({ signal: e }) => BF(e)}), a = (0, I.useMemo)(() => new Set((i.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [i.data]), [o, s] = (0, I.useState)(e.mediaIndex);- return r.data ? /* @__PURE__ */ (0, L.jsx)(TF, {+ return r.data ? /* @__PURE__ */ (0, L.jsx)(qse, {...e,data: r.data,- context: pF(r.data, a),+ context: Vse(r.data, a),mediaIndex: o,onMedia: s}) : /* @__PURE__ */ (0, L.jsx)("div", {@@ -38455,9 +38229,9 @@ function CF(e) {children: /* @__PURE__ */ (0, L.jsxs)("div", {className: "vwrap","data-follow-detail-media": "none",- children: [/* @__PURE__ */ (0, L.jsx)(wF, { onClose: n.close }), /* @__PURE__ */ (0, L.jsx)("div", {+ children: [/* @__PURE__ */ (0, L.jsx)(cI, { onClose: n.close }), /* @__PURE__ */ (0, L.jsx)("div", {"data-follow-detail-placeholder": "",- children: r.isError ? /* @__PURE__ */ (0, L.jsx)(oT, {+ children: r.isError ? /* @__PURE__ */ (0, L.jsx)(jw, {message: d(r.error),onRetry: () => void r.refetch()}) : null@@ -38465,7 +38239,7 @@ function CF(e) {})});}-var wF = ({ onClose: e }) => /* @__PURE__ */ (0, L.jsx)("button", {+var cI = ({ onClose: e }) => /* @__PURE__ */ (0, L.jsx)("button", {type: "button",className: "closestage",id: "closeStage",@@ -38474,8 +38248,8 @@ var wF = ({ onClose: e }) => /* @__PURE__ */ (0, L.jsx)("button", {onClick: e,dangerouslySetInnerHTML: { __html: s("x") }});-function TF({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, helpers: a, actions: o }) {- let { item: s, group: c } = e, l = $P(s, c, n, i), u = NF(s, o, r), d = `${s.id}:${l.selected?.index ?? ""}`, [f, p] = (0, I.useState)({+function qse({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, helpers: a, actions: o }) {+ let { item: s, group: c } = e, l = Ase(s, c, n, i), u = Zse(s, o, r), d = `${s.id}:${l.selected?.index ?? ""}`, [f, p] = (0, I.useState)({key: "",kind: ""}), m = {@@ -38495,20 +38269,20 @@ function TF({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, helps,l.kind]);- let h = !l.embedded.length && l.collection ? eF(l.collection) : void 0, g = l.embeddedQueue ? /* @__PURE__ */ (0, L.jsx)(jF, {+ let h = !l.embedded.length && l.collection ? jse(l.collection) : void 0, g = l.embeddedQueue ? /* @__PURE__ */ (0, L.jsx)(fI, {item: s,current: l.selected.index,helpers: a,actions: o,onMedia: r- }) : l.collection ? h ? /* @__PURE__ */ (0, L.jsx)(jF, {+ }) : l.collection ? h ? /* @__PURE__ */ (0, L.jsx)(fI, {item: h,current: null,helpers: a,actions: o,onMedia: r,currentId: s.id- }) : /* @__PURE__ */ (0, L.jsx)(AF, {+ }) : /* @__PURE__ */ (0, L.jsx)(Yse, {group: l.collection,itemId: s.id,helpers: a,@@ -38518,7 +38292,7 @@ function TF({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, helpclassName: g ? "sgrid mixgrid" : "sgrid","data-follow-detail": "",children: [- /* @__PURE__ */ (0, L.jsx)(EF, {+ /* @__PURE__ */ (0, L.jsx)(Jse, {item: s,media: l,helpers: a,@@ -38527,7 +38301,7 @@ function TF({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, helpissues: m}, d),g,- /* @__PURE__ */ (0, L.jsx)(MF, {+ /* @__PURE__ */ (0, L.jsx)(Xse, {item: s,data: e,context: t,@@ -38540,8 +38314,8 @@ function TF({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, help]});}-function EF({ item: e, media: t, helpers: n, actions: r, onMedia: i, issues: a }) {- let { kind: o, selected: c, src: l, images: u, position: d, carousel: f, frameRatio: p } = t, m = (0, I.useRef)(null), [h, g] = (0, I.useState)(null), _ = hF(e, t), v = c?.thumb_url || e.thumb_url || "", y = e.playable && o === "video", b = e.playable && o === "image" ? l : e.thumb_url || "", x = e.playable && o === "image" && v && v !== l ? v : "", [S, C] = (0, I.useState)(b), w = (0, I.useRef)(null), T = (0, I.useRef)({+function Jse({ item: e, media: t, helpers: n, actions: r, onMedia: i, issues: a }) {+ let { kind: o, selected: c, src: l, images: u, position: d, carousel: f, frameRatio: p } = t, m = (0, I.useRef)(null), [h, g] = (0, I.useState)(null), _ = Hse(e, t), v = c?.thumb_url || e.thumb_url || "", y = e.playable && o === "video", b = e.playable && o === "image" ? l : e.thumb_url || "", x = e.playable && o === "image" && v && v !== l ? v : "", [S, C] = (0, I.useState)(b), w = (0, I.useRef)(null), T = (0, I.useRef)({item: e,selected: c});@@ -38571,7 +38345,7 @@ function EF({ item: e, media: t, helpers: n, actions: r, onMedia: i, issues: a }"--follow-image-arrow-inset": h === null ? void 0 : `${h}px`},children: [- /* @__PURE__ */ (0, L.jsx)(wF, { onClose: r.close }),+ /* @__PURE__ */ (0, L.jsx)(cI, { onClose: r.close }),y ? /* @__PURE__ */ (0, L.jsx)("video", {ref: w,className: "video-js vjs-big-play-centered",@@ -38586,7 +38360,7 @@ function EF({ item: e, media: t, helpers: n, actions: r, onMedia: i, issues: a }src: S,alt: e.title,referrerPolicy: "no-referrer",- onClick: _.length ? () => void AM(Math.max(0, d), _) : void 0,+ onClick: _.length ? () => void sN(Math.max(0, d), _) : void 0,onError: () => {if (x && S !== x) {C(x), a.thumbFallback();@@ -38637,11 +38411,11 @@ function EF({ item: e, media: t, helpers: n, actions: r, onMedia: i, issues: a }]});}-var DF = ({ kind: e }) => /* @__PURE__ */ (0, L.jsx)("span", {+var lI = ({ kind: e }) => /* @__PURE__ */ (0, L.jsx)("span", {"data-follow-nothumb": "",dangerouslySetInnerHTML: { __html: s(e === "image" ? "image-off" : "play") }});-function OF({ src: e }) {+function uI({ src: e }) {let [t, n] = (0, I.useState)(!1);return t ? null : /* @__PURE__ */ (0, L.jsx)("img", {src: e,@@ -38651,14 +38425,14 @@ function OF({ src: e }) {onError: () => n(!0)});}-function kF(e) {+function dI(e) {return (0, I.useCallback)((t) => {t && e.wireDrag(t);}, [e]);}-function AF({ group: e, itemId: t, helpers: n, actions: r }) {- let a = LP(e), o = kF(n);- return /* @__PURE__ */ (0, L.jsx)(_F, {+function Yse({ group: e, itemId: t, helpers: n, actions: r }) {+ let a = JF(e), o = dI(n);+ return /* @__PURE__ */ (0, L.jsx)(iI, {kind: "collection","data-follow-queue": "",title: "视频合集",@@ -38666,12 +38440,12 @@ function AF({ group: e, itemId: t, helpers: n, actions: r }) {listRef: o,summary: `${e.primary.title || "未命名合集"} · ${a.length} 个视频`,children: a.map((a) => {- let o = e.duplicates.includes(a), s = aF(e, a, o ? a.provider_label : ""), c = o ? n.sourceIcon(a.provider, a.provider_label) : "";- return /* @__PURE__ */ (0, L.jsxs)(vF, {+ let o = e.duplicates.includes(a), s = Fse(e, a, o ? a.provider_label : ""), c = o ? n.sourceIcon(a.provider, a.provider_label) : "";+ return /* @__PURE__ */ (0, L.jsxs)(aI, {current: a.id === t,"data-follow-queue-item": a.id,onClick: () => r.openItem(a.id),- pic: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [a.thumb_url ? /* @__PURE__ */ (0, L.jsx)(OF, { src: a.thumb_url }) : /* @__PURE__ */ (0, L.jsx)(DF, { kind: "video" }), bF(a.duration) ? /* @__PURE__ */ (0, L.jsx)("i", {+ pic: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [a.thumb_url ? /* @__PURE__ */ (0, L.jsx)(uI, { src: a.thumb_url }) : /* @__PURE__ */ (0, L.jsx)(lI, { kind: "video" }), oI(a.duration) ? /* @__PURE__ */ (0, L.jsx)("i", {className: "dur mono",children: i(a.duration)}) : null] }),@@ -38695,8 +38469,8 @@ function AF({ group: e, itemId: t, helpers: n, actions: r }) {})});}-function jF({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {- let o = e.media_items || [], s = kF(r), c = [];+function fI({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {+ let o = e.media_items || [], s = dI(r), c = [];o.forEach((e) => {let t = e.resource_group || "ungrouped", n = c.find((e) => e.key === t);n || (n = {@@ -38706,26 +38480,26 @@ function jF({ 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, L.jsx)(_F, {+ return /* @__PURE__ */ (0, L.jsx)(iI, {kind: "media","data-follow-queue": "",title: "多媒体",onClose: i.close,listRef: s,summary: `${e.title || "未命名内容"} · ${o.length} 个媒体`,- children: c.map((n) => [n.label ? /* @__PURE__ */ (0, L.jsx)(yF, {+ children: c.map((n) => [n.label ? /* @__PURE__ */ (0, L.jsx)(Wse, {label: n.label,count: n.items.length- }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, L.jsxs)(vF, {+ }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, L.jsxs)(aI, {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, L.jsx)(OF, { src: n.thumb_url }) : /* @__PURE__ */ (0, L.jsx)(DF, { kind: n.media_kind || "" }),+ pic: n.thumb_url ? /* @__PURE__ */ (0, L.jsx)(uI, { src: n.thumb_url }) : /* @__PURE__ */ (0, L.jsx)(lI, { kind: n.media_kind || "" }),children: [/* @__PURE__ */ (0, L.jsx)("b", {"data-middle-truncate": "",- children: oF(n)+ children: Ise(n)}), /* @__PURE__ */ (0, L.jsx)("span", {"data-truncate-end": "",children: n.media_kind === "image" ? "图片" : "视频"@@ -38733,13 +38507,13 @@ function jF({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,}, n.index))])});}-function MF({ item: e, data: t, context: n, media: a, write: c, issue: l, helpers: u, actions: d }) {+function Xse({ item: e, data: t, context: n, media: a, write: c, issue: l, helpers: u, actions: d }) {let { kind: f, selected: p, src: m } = a, h = {primary: e,variants: [],duplicates: [],has_wip: e.variant_kind === "wip"- }, g = u.badges(h, e), _ = u.identity(e, fF(e, t.sources), n), v = _.credited ? "" : e.author && o(e.author) !== o(_.author) ? e.author : "", y = u.mediaIssue(e, n), b = dF(e, u.tagLabel), x = e.status === "saved", { busy: S } = c, C = (e) => S.has(e) ? {+ }, g = u.badges(h, e), _ = u.identity(e, Bse(e, t.sources), n), v = _.credited ? "" : e.author && o(e.author) !== o(_.author) ? e.author : "", y = u.mediaIssue(e, n), b = zse(e, u.tagLabel), x = e.status === "saved", { busy: S } = c, C = (e) => S.has(e) ? {"aria-busy": !0,"aria-disabled": !0} : {};@@ -38764,7 +38538,7 @@ function MF({ item: e, data: t, context: n, media: a, write: c, issue: l, helperrel: "noreferrer noopener",title: "打开来源页面","aria-label": "打开来源页面",- dangerouslySetInnerHTML: { __html: SF }+ dangerouslySetInnerHTML: { __html: sI }}) : null]}),/* @__PURE__ */ (0, L.jsxs)("div", {@@ -38784,7 +38558,7 @@ function MF({ item: e, data: t, context: n, media: a, write: c, issue: l, helper"data-reveal-line": "",children: [/* @__PURE__ */ (0, L.jsx)("span", { children: u.when(e) }),- bF(e.duration) ? /* @__PURE__ */ (0, L.jsx)("span", { children: i(e.duration) }) : null,+ oI(e.duration) ? /* @__PURE__ */ (0, L.jsx)("span", { children: i(e.duration) }) : null,g ? /* @__PURE__ */ (0, L.jsx)("span", {"data-follow-badges": "",dangerouslySetInnerHTML: { __html: g }@@ -38818,9 +38592,9 @@ function MF({ item: e, data: t, context: n, media: a, write: c, issue: l, helperhref: e,target: "_blank",rel: "noreferrer noopener",- children: [rF(e), /* @__PURE__ */ (0, L.jsx)("span", {+ children: [Pse(e), /* @__PURE__ */ (0, L.jsx)("span", {className: "contents",- dangerouslySetInnerHTML: { __html: SF }+ dangerouslySetInnerHTML: { __html: sI }})]}, e))}) : null,@@ -38908,7 +38682,7 @@ function MF({ item: e, data: t, context: n, media: a, write: c, issue: l, helper"aria-label": `恢复显示 ${e.name || ""}`,...C(`restore:${e.index}`),onClick: () => c.restore(e.index),- children: [e.thumb_url ? /* @__PURE__ */ (0, L.jsx)(OF, { src: e.thumb_url }) : /* @__PURE__ */ (0, L.jsx)(xF, { name: "image-off" }), /* @__PURE__ */ (0, L.jsx)("i", { dangerouslySetInnerHTML: { __html: s("rotate-ccw") } })]+ children: [e.thumb_url ? /* @__PURE__ */ (0, L.jsx)(uI, { src: e.thumb_url }) : /* @__PURE__ */ (0, L.jsx)(Gse, { name: "image-off" }), /* @__PURE__ */ (0, L.jsx)("i", { dangerouslySetInnerHTML: { __html: s("rotate-ccw") } })]}, e.index))})]}) : null,@@ -38923,7 +38697,7 @@ function MF({ item: e, data: t, context: n, media: a, write: c, issue: l, helperchildren: b.map((t) => /* @__PURE__ */ (0, L.jsx)("button", {type: "button",className: "tg",- "data-tag-cat": lF(e, t),+ "data-tag-cat": Rse(e, t),"data-follow-tag": t,onClick: () => d.openTag(t),children: u.tagLabel(t)@@ -38933,8 +38707,8 @@ function MF({ item: e, data: t, context: n, media: a, write: c, issue: l, helper})});}-function NF(e, t, n) {- let r = e.id, i = qP(r), [a, o] = (0, I.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, I.useState)(""), l = (e, t) => o((n) => {+function Zse(e, t, n) {+ let r = e.id, i = QF(r), [a, o] = (0, I.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, I.useState)(""), l = (e, t) => o((n) => {let r = new Set(n);return t ? r.add(e) : r.delete(e), r;}), u = (e) => {@@ -38944,17 +38718,17 @@ function NF(e, t, n) {...t.item,status: e}- }), MP(r, e);+ }), yse(r, e);}, f = (e) => {c(d(e) || "操作失败"), t.failure("更新关注状态", e);- }, p = Pt({- mutationFn: ({ to: e }) => q(hN, {+ }, p = It({+ mutationFn: ({ to: e }) => q(rF, {item: r,to: e}),onSuccess: (e, { to: n, was: i }) => {- u(n), c(""), t.toast(gF(n), { undo: i === "saved" ? void 0 : async () => {- await q(hN, {+ u(n), c(""), t.toast(Use(n), { undo: i === "saved" ? void 0 : async () => {+ await q(rF, {item: r,to: i}), u(i);@@ -38962,16 +38736,16 @@ function NF(e, t, n) {},onError: f,onSettled: (e, t, { to: n }) => l(n, !1)- }), m = Pt({- mutationFn: () => q(YP, { item: r }),+ }), m = It({+ mutationFn: () => q(Dse, { item: r }),onSuccess: () => {u("saved"), c(""), t.toast("已保存到账本");},onError: f,onSettled: () => l("save", !1)- }), h = Pt({+ }), h = It({mutationFn: async ({ index: e, hidden: t }) => {- await q(XP, {+ await q(Ose, {item: r,media: e,hidden: t@@ -38982,7 +38756,7 @@ function NF(e, t, n) {},onSuccess: (e, { hidden: r, next: a }) => {let o = X.getQueryData(i);- o && jP(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");+ o && vse(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");},onError: f,onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)@@ -39018,18 +38792,18 @@ function NF(e, t, n) {}//#endregion//#region src/sidebar.ts-function PF(e) {+function Qse(e) {let t = /* @__PURE__ */ new Map();for (let n of e) for (let e of new Set(n.tags || [])) t.set(e, (t.get(e) || 0) + 1);return [...t].sort((e, t) => t[1] - e[1]).slice(0, 30);}//#endregion//#region src/react/follow-feed/follow-card.tsx-var FF = (e) => Number(e) > 0;-function IF(e) {+var $se = (e) => Number(e) > 0;+function ece(e) {return /^\d{4}-/.test(e) ? e.startsWith(String((/* @__PURE__ */ new Date()).getFullYear())) ? e.slice(5, 10) : e.slice(0, 10) : e;}-function LF({ src: e, width: t, height: n, onLearn: r }) {+function tce({ src: e, width: t, height: n, onLearn: r }) {let [i, a] = (0, I.useState)(!1);return i ? null : /* @__PURE__ */ (0, L.jsx)("img", {src: e,@@ -39045,8 +38819,8 @@ function LF({ src: e, width: t, height: n, onLearn: r }) {} : void 0});}-function RF(e) {- let { group: t, authorSources: n, media: a, context: o, selected: c, selectMode: l, busy: u, failure: d, helpers: f, actions: p } = e, m = IP(t, a), h = a === "images", g = h ? (m.media_items || []).find((e) => e.media_kind === "image") : void 0, _ = g?.thumb_url || m.thumb_url || "", v = g && g.thumb_url === _ ? g : null, y = !v || _ === m.thumb_url, b = h ? [v, y ? m : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, x = h && !b && _ ? (e, t) => f.learnDims(m.id, v ? v.index : null, e, t) : void 0, S = a === "videos" ? LP(t) : [], C = (m.media_items || []).length > 1 ? m.id : S[0]?.id || m.id, w = zP({+function nce(e) {+ let { group: t, authorSources: n, media: a, context: o, selected: c, selectMode: l, busy: u, failure: d, helpers: f, actions: p } = e, m = qF(t, a), h = a === "images", g = h ? (m.media_items || []).find((e) => e.media_kind === "image") : void 0, _ = g?.thumb_url || m.thumb_url || "", v = g && g.thumb_url === _ ? g : null, y = !v || _ === m.thumb_url, b = h ? [v, y ? m : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, x = h && !b && _ ? (e, t) => f.learnDims(m.id, v ? v.index : null, e, t) : void 0, S = a === "videos" ? JF(t) : [], C = (m.media_items || []).length > 1 ? m.id : S[0]?.id || m.id, w = bse({cover: _,coverFace: (g?.thumb_url ? g : m).face,stack: t.stack,@@ -39054,7 +38828,7 @@ function RF(e) {limit: 9}), T = (0, I.useRef)(w.faces);T.current = w.faces;- let E = _T({+ let E = Ww({load: async () => T.current,canFlip: () => T.current.length > 1 && p.canFlip(),referrerPolicy: "no-referrer"@@ -39062,7 +38836,7 @@ function RF(e) {D.current = E.onPointerLeave;let O = (0, I.useCallback)((e) => {e && (e._stopHover = () => D.current());- }, []), k = f.identity(m, n, o), A = f.when(m), j = (m.tags || []).slice(0, 3), M = f.mediaIssue(m, o), N = f.badges(t, m), P = m.status === "saved", ee = (e) => {+ }, []), k = f.identity(m, n, o), A = f.when(m), j = (m.tags || []).slice(0, 3), M = f.mediaIssue(m, o), N = f.badges(t, m), ee = m.status === "saved", te = (e) => {if (!e.target.closest("[data-media-tag]")) {if (l || e.shiftKey || e.ctrlKey || e.metaKey) {e.preventDefault(), p.toggleSelection(m.id, e.shiftKey);@@ -39070,7 +38844,7 @@ function RF(e) {}p.openDetail(m.id);}- }, F = (e, t) => {+ }, P = (e, t) => {e.stopPropagation(), t();};return /* @__PURE__ */ (0, L.jsxs)("article", {@@ -39081,7 +38855,7 @@ function RF(e) {"data-follow-image": h ? "" : void 0,"data-collection": w.isMix ? "" : void 0,"data-selected": c ? "" : void 0,- onClick: ee,+ onClick: te,onMouseEnter: E.onPointerEnter,onMouseLeave: E.onPointerLeave,children: [@@ -39096,7 +38870,7 @@ function RF(e) {"data-follow-open": "","aria-label": `打开 ${m.title} 详情`}),- _ ? /* @__PURE__ */ (0, L.jsx)(LF, {+ _ ? /* @__PURE__ */ (0, L.jsx)(tce, {src: _,width: b?.width,height: b?.height,@@ -39131,7 +38905,7 @@ function RF(e) {},dangerouslySetInnerHTML: { __html: s("check") }}),- FF(m.duration) ? /* @__PURE__ */ (0, L.jsx)("span", {+ $se(m.duration) ? /* @__PURE__ */ (0, L.jsx)("span", {"data-media-duration": "",children: i(m.duration)}) : null,@@ -39140,7 +38914,7 @@ function RF(e) {children: [w.isMix ? /* @__PURE__ */ (0, L.jsxs)("button", {type: "button","data-follow-collection": C,- onClick: (e) => F(e, () => p.openDetail(C)),+ onClick: (e) => P(e, () => p.openDetail(C)),children: [/* @__PURE__ */ (0, L.jsx)("span", {className: "contents",dangerouslySetInnerHTML: { __html: s(w.glyph) }@@ -39151,13 +38925,13 @@ function RF(e) {/* @__PURE__ */ (0, L.jsx)("button", {type: "button","data-follow-save": m.id,- title: P ? "已保存" : "保存到账本",- "aria-label": P ? "已保存" : "保存到账本",- disabled: P,+ title: ee ? "已保存" : "保存到账本",+ "aria-label": ee ? "已保存" : "保存到账本",+ disabled: ee,"aria-busy": u === "save" || void 0,"aria-disabled": u === "save" || void 0,- onClick: (t) => F(t, () => e.onSave(m.id)),- dangerouslySetInnerHTML: { __html: s(P ? "check" : "bookmark-plus") }+ onClick: (t) => P(t, () => e.onSave(m.id)),+ dangerouslySetInnerHTML: { __html: s(ee ? "check" : "bookmark-plus") }}),/* @__PURE__ */ (0, L.jsx)("button", {type: "button",@@ -39168,7 +38942,7 @@ function RF(e) {disabled: m.status === "seen","aria-busy": u === "seen" || void 0,"aria-disabled": u === "seen" || void 0,- onClick: (t) => F(t, () => e.onStatus(m.id, "seen")),+ onClick: (t) => P(t, () => e.onStatus(m.id, "seen")),dangerouslySetInnerHTML: { __html: s("eye") }}),/* @__PURE__ */ (0, L.jsx)("button", {@@ -39180,7 +38954,7 @@ function RF(e) {disabled: m.status === "ignored","aria-busy": u === "ignored" || void 0,"aria-disabled": u === "ignored" || void 0,- onClick: (t) => F(t, () => e.onStatus(m.id, "ignored")),+ onClick: (t) => P(t, () => e.onStatus(m.id, "ignored")),dangerouslySetInnerHTML: { __html: s("eye-off") }}),m.status === "seen" || m.status === "ignored" ? /* @__PURE__ */ (0, L.jsx)("button", {@@ -39191,7 +38965,7 @@ function RF(e) {"aria-label": "恢复未看","aria-busy": u === "new" || void 0,"aria-disabled": u === "new" || void 0,- onClick: (t) => F(t, () => e.onStatus(m.id, "new")),+ onClick: (t) => P(t, () => e.onStatus(m.id, "new")),dangerouslySetInnerHTML: { __html: s("rotate-ccw") }}) : null]@@ -39224,7 +38998,7 @@ function RF(e) {}), /* @__PURE__ */ (0, L.jsx)("time", {dateTime: m.published_at || "",title: A,- children: IF(A)+ children: ece(A)})]}),k.credited ? /* @__PURE__ */ (0, L.jsx)("div", {@@ -39260,10 +39034,10 @@ function RF(e) {]});}-var zF = (0, I.memo)(RF), BF = () => /* @__PURE__ */ (0, L.jsx)("span", {+var rce = (0, I.memo)(nce), pI = () => /* @__PURE__ */ (0, L.jsx)("span", {"data-entity-sep": "","aria-hidden": "true"-}), VF = gT("settings"), HF = gT("chevron-down"), UF = gT("history"), WF = [[+}), ice = Vw("settings"), ace = Vw("chevron-down"), oce = Vw("history"), sce = [["fixed","固定比例","layout-grid"@@ -39272,19 +39046,19 @@ var zF = (0, I.memo)(RF), BF = () => /* @__PURE__ */ (0, L.jsx)("span", {"瀑布流","columns-2"]];-function GF(e, t, n) {+function cce(e, t, n) {return (0, I.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) => {e.author_key && (d.has(e.author_key) || d.set(e.author_key, []), d.get(e.author_key).push(e));});- let f = OP([...d.keys()].filter((e) => s.has(e)), (e) => e, n), p = OP(o.works || [], (e) => e[0], n).slice(0, 24);+ let f = HF([...d.keys()].filter((e) => s.has(e)), (e) => e, n), p = HF(o.works || [], (e) => e[0], n).slice(0, 24);t.work && !p.some((e) => e[0] === t.work) && p.push([t.work,t.work,0]);- let m = Object.values(i).reduce((e, t) => e + (Number(t) || 0), 0), h = OP([...u], (e) => e[0], n).slice(0, 20);+ let m = Object.values(i).reduce((e, t) => e + (Number(t) || 0), 0), h = HF([...u], (e) => e[0], n).slice(0, 20);t.tags.forEach((e) => {h.some(([t]) => t === e) || h.push([e, u.get(e) || m]);});@@ -39292,7 +39066,7 @@ function GF(e, t, n) {videos: 0,images: 0};- r.forEach((e) => FP(e).forEach((e) => {+ r.forEach((e) => KF(e).forEach((e) => {g[e === "image" ? "images" : "videos"] += 1;}));let _ = t.media === "images" ? "image" : "video";@@ -39307,7 +39081,7 @@ function GF(e, t, n) {workRows: p,allCount: m,mediaCounts: g,- visible: r.filter((e) => FP(e).has(_)),+ visible: r.filter((e) => KF(e).has(_)),author: d.has(t.author) && s.has(t.author) ? t.author : "",provider: l.has(t.provider) ? t.provider : "",workNames: new Map((o.works || []).map((e) => [e[0], e[1]])),@@ -39320,15 +39094,15 @@ function GF(e, t, n) {n]);}-function KF(e) {- let { view: t, seed: n, revision: r, helpers: i, actions: a } = e, o = CP(t, r), s = Ft(o), c = Nt({- queryKey: wP,- queryFn: ({ signal: e }) => TP(e)- }), l = (0, I.useMemo)(() => DP(s.data), [s.data]), u = (0, I.useMemo)(() => new Set((c.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [c.data]), f = (0, I.useMemo)(() => ({+function lce(e) {+ let { view: t, seed: n, revision: r, helpers: i, actions: a } = e, o = RF(t, r), s = Lt(o), c = Ft({+ queryKey: zF,+ queryFn: ({ signal: e }) => BF(e)+ }), l = (0, I.useMemo)(() => VF(s.data), [s.data]), u = (0, I.useMemo)(() => new Set((c.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [c.data]), f = (0, I.useMemo)(() => ({sources: l?.sources || [],aliases: l?.author_aliases || [],credentials: u- }), [l, u]), p = GF(l, t, n), m = s.isPending || s.isPlaceholderData, h = !m && !!l, g = (0, I.useMemo)(() => PF(p.visible.flatMap(kP).map((e) => ({ tags: e.tags || [] }))), [p.visible]);+ }), [l, u]), p = cce(l, t, n), m = s.isPending || s.isPlaceholderData, h = !m && !!l, g = (0, I.useMemo)(() => Qse(p.visible.flatMap(UF).map((e) => ({ tags: e.tags || [] }))), [p.visible]);(0, I.useEffect)(() => {h && a.loaded(g);}, [@@ -39336,15 +39110,15 @@ function KF(e) {g,a]);- let _ = qF(e, !!l);- if (!l) return s.isError ? /* @__PURE__ */ (0, L.jsx)(oT, {+ let _ = uce(e, !!l);+ if (!l) return s.isError ? /* @__PURE__ */ (0, L.jsx)(jw, {message: d(s.error),onRetry: () => void s.refetch()}) : null;let v = (e) => a.route({...t,...e- }), y = WP({+ }), y = Cse({...t,author: p.author,provider: p.provider@@ -39369,7 +39143,7 @@ function KF(e) {"data-follow-head-actions": "",children: [/* @__PURE__ */ (0, L.jsx)(G, {variant: "secondary",- leadingIcon: VF,+ leadingIcon: ice,"data-follow-manage": "",onClick: a.openManage,children: "管理关注"@@ -39381,25 +39155,25 @@ function KF(e) {onClick: () => void _.start(!1),children: _.starting === "check" ? /* @__PURE__ */ (0, L.jsx)("span", {className: "contents",- dangerouslySetInnerHTML: { __html: D("检查中") }+ dangerouslySetInnerHTML: { __html: k("检查中") }}) : "检查更新"}) : null]})]}),- /* @__PURE__ */ (0, L.jsx)(JF, {+ /* @__PURE__ */ (0, L.jsx)(dce, {facets: p,pressed: p.author,context: f,props: e,onPick: (e) => v({ author: p.author === e ? "" : e })}),- /* @__PURE__ */ (0, L.jsx)(YF, {+ /* @__PURE__ */ (0, L.jsx)(fce, {rows: p.workRows,pressed: t.work,props: e,onPick: (e) => v({ work: t.work === e ? "" : e })}),- /* @__PURE__ */ (0, L.jsx)(XF, {+ /* @__PURE__ */ (0, L.jsx)(pce, {facets: p,view: t,total: b,@@ -39407,9 +39181,9 @@ function KF(e) {props: e,route: v}),- /* @__PURE__ */ (0, L.jsx)(ZF, {+ /* @__PURE__ */ (0, L.jsx)(mce, {conditions: y,- onDrop: (e) => a.route(GP(t, e)),+ onDrop: (e) => a.route(wse(t, e)),onClear: () => v({author: "",provider: "",@@ -39417,11 +39191,11 @@ function KF(e) {tags: []})}),- p.broken.length ? /* @__PURE__ */ (0, L.jsx)(QF, {+ p.broken.length ? /* @__PURE__ */ (0, L.jsx)(hce, {count: p.broken.length,onManage: a.openManage}) : null,- /* @__PURE__ */ (0, L.jsx)($F, {+ /* @__PURE__ */ (0, L.jsx)(gce, {pending: m,facets: p,data: l,@@ -39432,36 +39206,36 @@ function KF(e) {"data-follow-pagination": "",children: [l.has_more ? /* @__PURE__ */ (0, L.jsx)("span", {"data-follow-page-action": "",- children: /* @__PURE__ */ (0, L.jsxs)(CT, {+ children: /* @__PURE__ */ (0, L.jsxs)(tT, {entity: !0,enabled: () => !_.busyRef.current,load: async () => {await s.fetchNextPage({ throwOnError: !0 });},- children: [/* @__PURE__ */ (0, L.jsx)(HF, { className: "size-3.5" }), "加载更多"]+ children: [/* @__PURE__ */ (0, L.jsx)(ace, { className: "size-3.5" }), "加载更多"]}, s.data?.pages.length)}) : null, x ? /* @__PURE__ */ (0, L.jsxs)("span", {"data-follow-page-action": "",children: [/* @__PURE__ */ (0, L.jsx)(G, {variant: "secondary",- leadingIcon: _.olderBusy ? void 0 : UF,+ leadingIcon: _.olderBusy ? void 0 : oce,"data-follow-older": "","aria-busy": _.busy || void 0,onClick: () => void _.start(!0),children: _.olderBusy ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("span", {className: "contents",- dangerouslySetInnerHTML: { __html: D("抓取中") }+ dangerouslySetInnerHTML: { __html: k("抓取中") }}), /* @__PURE__ */ (0, L.jsx)("span", { children: "抓取中…" })] }) : "抓更早的一页"}), /* @__PURE__ */ (0, L.jsx)("span", {"data-follow-backfill": "",- children: BP(p.sources)+ children: xse(p.sources)})]}) : null]}) : null]})] });}-function qF(e, t) {+function uce(e, t) {let { helpers: n, actions: r } = e, [i, a] = (0, I.useState)(0), [o, s] = (0, I.useState)(!1), [c, l] = (0, I.useState)(""), [u, f] = (0, I.useState)(!1), p = (0, I.useRef)(!1), m = (0, I.useRef)(null), h = (0, I.useRef)({helpers: n,actions: r@@ -39476,7 +39250,7 @@ function qF(e, t) {return h.current.helpers.jobProgress({host: e,active: () => t,- read: (e) => Tw(dN, e),+ read: (e) => iw($P, e),busy: (e) => {t && (p.current = e, s(e));},@@ -39501,7 +39275,7 @@ function qF(e, t) {p.current = !0, l(e ? "older" : "check");let t = !1;try {- let n = await q(dN, e ? {+ let n = await q($P, e ? {older: !0,background: !0} : { background: !0 });@@ -39519,7 +39293,7 @@ function qF(e, t) {olderBusy: c === "older" || u && o};}-function JF({ facets: e, pressed: t, context: n, props: r, onPick: i }) {+function dce({ facets: e, pressed: t, context: n, props: r, onPick: i }) {let a = (0, I.useRef)(null);return (0, I.useEffect)(() => {r.helpers.wireDrag(a.current);@@ -39545,7 +39319,7 @@ function JF({ facets: e, pressed: t, context: n, props: r, onPick: i }) {})}) : null;}-function YF({ rows: e, pressed: t, props: n, onPick: r }) {+function fce({ rows: e, pressed: t, props: n, onPick: r }) {let i = (0, I.useRef)(null);return (0, I.useEffect)(() => {n.helpers.wireDrag(i.current);@@ -39566,13 +39340,13 @@ function YF({ rows: e, pressed: t, props: n, onPick: r }) {}, e[0]))}) : null;}-function XF({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {- let { helpers: o, actions: c } = i, l = (0, I.useRef)(null), u = (0, I.useRef)(null), d = (0, I.useRef)(null), f = (0, I.useRef)(null), p = (0, I.useRef)(null), m = (0, I.useRef)(null), h = !!e.mediaCounts.images || t.media === "images", g = BM(l, d, "[data-follow-filter][aria-pressed=\"true\"]", t.status), _ = BM(u, f, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${h}`);+function pce({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {+ let { helpers: o, actions: c } = i, l = (0, I.useRef)(null), u = (0, I.useRef)(null), d = (0, I.useRef)(null), f = (0, I.useRef)(null), p = (0, I.useRef)(null), m = (0, I.useRef)(null), h = !!e.mediaCounts.images || t.media === "images", g = DN(l, d, "[data-follow-filter][aria-pressed=\"true\"]", t.status), _ = DN(u, f, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${h}`);(0, I.useEffect)(() => {o.wireDrag(p.current), o.wireDrag(m.current), o.wireScroller(m.current);}, [o]);let v = [...e.providers], y = v.length + e.tagRows.length > 0, b = t.media === "images";- return /* @__PURE__ */ (0, L.jsx)(rM, {+ return /* @__PURE__ */ (0, L.jsx)(tM, {label: "筛选与排序",topLabel: h ? "媒体与关注筛选" : "关注筛选",attrs: {@@ -39624,7 +39398,7 @@ function XF({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {dangerouslySetInnerHTML: { __html: s(i) }}, e);})- }), /* @__PURE__ */ (0, L.jsx)(BF, {})] }) : null, /* @__PURE__ */ (0, L.jsxs)("div", {+ }), /* @__PURE__ */ (0, L.jsx)(pI, {})] }) : null, /* @__PURE__ */ (0, L.jsxs)("div", {ref: p,"data-entity-scroll": "",children: [/* @__PURE__ */ (0, L.jsxs)("div", {@@ -39633,7 +39407,7 @@ function XF({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {"aria-label": "状态","data-entity-states": "",onPointerLeave: g.leave,- children: [yP.map(([e, n]) => /* @__PURE__ */ (0, L.jsx)("button", {+ children: [mse.map(([e, n]) => /* @__PURE__ */ (0, L.jsx)("button", {type: "button","data-entity-state": e,"data-follow-filter": e,@@ -39644,7 +39418,7 @@ function XF({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {t.status !== e && a({ status: e });},children: n- }, e)), y ? /* @__PURE__ */ (0, L.jsx)(BF, {}) : null]+ }, e)), y ? /* @__PURE__ */ (0, L.jsx)(pI, {}) : null]}), /* @__PURE__ */ (0, L.jsxs)("div", {ref: m,"data-entity-tags": "",@@ -39659,11 +39433,11 @@ function XF({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {onClick: () => a({ provider: e.provider === t ? "" : t }),dangerouslySetInnerHTML: { __html: o.sourceIcon(t) }}, t)),- v.length && e.tagRows.length ? /* @__PURE__ */ (0, L.jsx)(BF, {}) : null,- e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, L.jsxs)(iM, {+ v.length && e.tagRows.length ? /* @__PURE__ */ (0, L.jsx)(pI, {}) : null,+ e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, L.jsxs)(rM, {"data-follow-tag": n,"data-entity-press": "",- "data-tag-cat": `r34-${KP(e.groups, n)}`,+ "data-tag-cat": `r34-${Tse(e.groups, n)}`,pressed: t.tags.includes(n),onPress: () => a({ tags: t.tags.includes(n) ? t.tags.filter((e) => e !== n) : [...t.tags, n] }),children: [o.tagLabel(n), r ? /* @__PURE__ */ (0, L.jsx)("span", {@@ -39681,11 +39455,11 @@ function XF({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {}), /* @__PURE__ */ (0, L.jsxs)("span", {"data-entity-sorts": "",children: [- /* @__PURE__ */ (0, L.jsx)(UM, { onPress: c.shuffle }),- b ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(HM, {+ /* @__PURE__ */ (0, L.jsx)(IN, { onPress: c.shuffle }),+ b ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(FN, {label: "图片布局",value: i.photoLayout,- options: WF,+ options: sce,onChange: (e) => c.setPhotoLayout(e === "fixed" ? "fixed" : "masonry")}), /* @__PURE__ */ (0, L.jsxs)("button", {type: "button",@@ -39702,17 +39476,17 @@ function XF({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {dangerouslySetInnerHTML: { __html: s("captions-off") }})]})] }) : null,- bP.map(([e, n]) => {- let r = t.sort === e, i = gT(t.dir === "asc" ? "arrow-up" : "arrow-down");+ hse.map(([e, n]) => {+ let r = t.sort === e, i = Vw(t.dir === "asc" ? "arrow-up" : "arrow-down");return /* @__PURE__ */ (0, L.jsxs)("button", {type: "button","data-entity-sort": e,"data-follow-sort": e,"data-entity-press": "","aria-pressed": r,- "aria-label": HP(e, n, t.sort, t.dir) || void 0,+ "aria-label": Sse(e, n, t.sort, t.dir) || void 0,onClick: () => {- let n = VP(e, t.sort, t.dir);+ let n = XF(e, t.sort, t.dir);n && a(n);},children: [n, r ? /* @__PURE__ */ (0, L.jsx)(i, { className: "size-3.5" }) : null]@@ -39722,7 +39496,7 @@ function XF({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {})] })});}-function ZF({ conditions: e, onDrop: t, onClear: n }) {+function mce({ conditions: e, onDrop: t, onClear: n }) {return /* @__PURE__ */ (0, L.jsx)("div", {"data-entity-combo": "","data-follow-combo": "",@@ -39747,7 +39521,7 @@ function ZF({ conditions: e, onDrop: t, onClear: n }) {})] }) : null});}-function QF({ count: e, onManage: t }) {+function hce({ count: e, onManage: t }) {return /* @__PURE__ */ (0, L.jsx)("div", {"data-follow-broken": "",onClick: (e) => {@@ -39756,12 +39530,12 @@ function QF({ count: e, onManage: t }) {dangerouslySetInnerHTML: { __html: `<div class="geist-note geist-note-error fwarn" role="alert">${s("alert")}<span>${e} 个来源上次检查失败,去<button type="button" class="flink" data-follow-manage>管理关注</button>看原因。</span></div>` }});}-function $F({ pending: e, facets: t, data: n, context: r, props: i }) {- let { view: a, helpers: o } = i, s = a.media === "images", c = aT(e, () => o.listSkeletonHtml(a.media));+function gce({ pending: e, facets: t, data: n, context: r, props: i }) {+ let { view: a, helpers: o } = i, s = a.media === "images", c = Aw(e, () => o.listSkeletonHtml(a.media));return /* @__PURE__ */ (0, L.jsxs)("div", {"data-follow-list-body": "","data-grid-reveal": c.fading ? "" : void 0,- children: [c.layer, e ? null : /* @__PURE__ */ (0, L.jsx)(eI, {+ children: [c.layer, e ? null : /* @__PURE__ */ (0, L.jsx)(_ce, {facets: t,data: n,context: r,@@ -39770,76 +39544,76 @@ function $F({ pending: e, facets: t, data: n, context: r, props: i }) {})]});}-function eI({ facets: e, data: t, context: n, props: r, images: i }) {- let { view: a, helpers: o, actions: s } = r, c = iI(r), l = i ? {+function _ce({ facets: e, data: t, context: n, props: r, images: i }) {+ let { view: a, helpers: o, actions: s } = r, c = bce(r), l = i ? {"data-size": r.photoSize,"data-layout": r.photoLayout,"data-images-only": String(r.imagesOnly)} : {}, u;return u = e.visible.length ? e.visible.map((t) => {let i = e.byId.get(t.primary?.source_id), l = i?.author_key && e.authorSources.get(i.author_key) || [], u = t.primary.id;- return /* @__PURE__ */ (0, L.jsx)(zF, {+ return /* @__PURE__ */ (0, L.jsx)(rce, {group: t,authorSources: l,media: a.media,context: n,- selected: r.selected.has(tI(t, a)),+ selected: r.selected.has(mI(t, a)),selectMode: r.selectMode,- busy: c.busy.get(tI(t, a)) || "",- failure: c.failures.get(tI(t, a)) || "",+ busy: c.busy.get(mI(t, a)) || "",+ failure: c.failures.get(mI(t, a)) || "",helpers: o,actions: s,onStatus: c.status,onSave: c.save}, `${u}:${a.media}`);- }) : /* @__PURE__ */ (0, L.jsx)(nI, { data: t }), /* @__PURE__ */ (0, L.jsx)("div", {+ }) : /* @__PURE__ */ (0, L.jsx)(vce, { data: t }), /* @__PURE__ */ (0, L.jsx)("div", {"data-follow-list": "","data-follow-wall": i ? "" : void 0,...l,children: u});}-function tI(e, t) {- return IP(e, t.media).id;+function mI(e, t) {+ return qF(e, t.media).id;}-function nI({ data: e }) {- let t = (e.groups || []).length ? _("search-x", "当前筛选下没有更新", "切换媒体类型、创作者、来源或标签后再试。") : (e.sources || []).length ? _("rss", "没有符合条件的更新", "切换状态或来源筛选后再试。") : _("rss", "还没有关注任何来源", "添加创作者或订阅来源后,更新会集中显示在这里。", { actions: "<a class=\"geist-button primary\" href=\"/follow-manage?tab=add\">添加关注</a>" });+function vce({ data: e }) {+ let t = (e.groups || []).length ? v("search-x", "当前筛选下没有更新", "切换媒体类型、创作者、来源或标签后再试。") : (e.sources || []).length ? v("rss", "没有符合条件的更新", "切换状态或来源筛选后再试。") : v("rss", "还没有关注任何来源", "添加创作者或订阅来源后,更新会集中显示在这里。", { actions: "<a class=\"geist-button primary\" href=\"/follow-manage?tab=add\">添加关注</a>" });return /* @__PURE__ */ (0, L.jsx)("div", {"data-follow-empty": "",className: "contents",dangerouslySetInnerHTML: { __html: t }});}-var rI = {+var yce = {new: "已恢复未看",seen: "已标记已看",ignored: "已忽略"};-function iI(e) {- let { view: t, revision: n, actions: r } = e, [i, a] = (0, I.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, I.useState)(() => /* @__PURE__ */ new Map()), c = CP(t, n).queryKey, l = (e, t, n) => n((n) => {+function bce(e) {+ let { view: t, revision: n, actions: r } = e, [i, a] = (0, I.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, I.useState)(() => /* @__PURE__ */ new Map()), c = RF(t, n).queryKey, l = (e, t, n) => n((n) => {let r = new Map(n);return t ? r.set(e, t) : r.delete(e), r;}), u = (e, n) => {- X.setQueryData(c, (r) => r && UP(r, t, e, n));+ X.setQueryData(c, (r) => r && ZF(r, t, e, n));}, f = () => void X.invalidateQueries({queryKey: c,exact: !0}), p = (e) => {- let t = DP(X.getQueryData(c));+ let t = VF(X.getQueryData(c));for (let n of t?.groups || []) for (let t of [n.primary,...n.variants,...n.duplicates]) if (t.id === e) return t.status;return "new";- }, m = Pt({- mutationFn: ({ id: e, to: t }) => q(hN, {+ }, m = It({+ mutationFn: ({ id: e, to: t }) => q(rF, {item: e,to: t}),onSuccess: (e, { id: t, to: n, was: i }) => {- u(t, n), f(), r.toast(rI[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {- await q(hN, {+ u(t, n), f(), r.toast(yce[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {+ await q(rF, {item: t,to: i}), u(t, i), f();@@ -39849,7 +39623,7 @@ function iI(e) {l(t, d(e), s), r.failure("更新关注状态", e);},onSettled: (e, t, { id: n }) => l(n, "", a)- }), h = Pt({+ }), h = It({mutationFn: (e) => q("/api/follow/save", { item: e }),onSuccess: (e, t) => {u(t, "saved"), f(), r.toast("已保存到账本");@@ -39884,8 +39658,8 @@ function iI(e) {}//#endregion//#region src/react/follow-manage/source-view.tsx-function aI({ provider: e, label: t }) {- let n = gP(e), [r, i] = (0, I.useState)(!1);+function hI({ provider: e, label: t }) {+ let n = fse(e), [r, i] = (0, I.useState)(!1);return !n || r ? t ? /* @__PURE__ */ (0, L.jsx)(L.Fragment, { children: t }) : null : /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("img", {src: n,alt: "",@@ -39894,10 +39668,10 @@ function aI({ provider: e, label: t }) {loading: "lazy",onError: () => i(!0),className: "size-3.5 shrink-0 rounded-sm object-contain"- }), t ? /* @__PURE__ */ (0, L.jsx)(q_, { children: t }) : null] });+ }), t ? /* @__PURE__ */ (0, L.jsx)(K_, { children: t }) : null] });}-function oI({ group: e, name: t }) {- let { src: n, fallback: r } = MN(e), [i, a] = (0, I.useState)(0), o = [n, r].filter(Boolean)[i];+function gI({ group: e, name: t }) {+ let { src: n, fallback: r } = Goe(e), [i, a] = (0, I.useState)(0), o = [n, r].filter(Boolean)[i];return o ? /* @__PURE__ */ (0, L.jsx)("img", {src: o,alt: "",@@ -39910,18 +39684,18 @@ function oI({ group: e, name: t }) {}) : /* @__PURE__ */ (0, L.jsx)("span", {title: "没有可用头像",className: "inline-grid size-8 shrink-0 place-items-center rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary",- children: jN(t)+ children: Woe(t)});}-function sI({ source: e }) {- let t = TN(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";- return /* @__PURE__ */ (0, L.jsx)(bw, {+function _I({ source: e }) {+ let t = fF(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";+ return /* @__PURE__ */ (0, L.jsx)($C, {variant: "caption",color: t,- children: wN(e)+ children: Uoe(e)});}-function cI({ source: e }) {+function vI({ source: e }) {return /* @__PURE__ */ (0, L.jsx)("a", {href: e.url,target: "_blank",@@ -39933,11 +39707,11 @@ function cI({ source: e }) {}//#endregion//#region src/react/follow-manage/add-source.tsx-var lI = _w(wA, TA, "text-body-2-medium"), uI = "粘贴来源链接,或输入创作者名、id…", dI = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", fI = "识别中…", zce = "站内没有查到来源", pI = (e, t) => `${e}:${t.url}`;-function Bce({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {+var yI = XC(cA, lA, "text-body-2-medium"), xce = "粘贴来源链接,或输入创作者名、id…", Sce = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", Cce = "识别中…", wce = "站内没有查到来源", bI = (e, t) => `${e}:${t.url}`;+function Tce({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {return (0, I.useEffect)(() => {t.current?.querySelector("[aria-current=\"true\"]")?.scrollIntoView({ block: "nearest" });- }, [t, r]), /* @__PURE__ */ (0, L.jsxs)(uD, {+ }, [t, r]), /* @__PURE__ */ (0, L.jsxs)(ck, {ref: t,triggerRef: e,isOpen: !0,@@ -39949,17 +39723,17 @@ function Bce({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onCplacement: "bottom start",offset: 4,"aria-label": "来源建议",- className: _w(CA, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),+ className: XC(sA, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),children: [i && !n.length ? /* @__PURE__ */ (0, L.jsx)("div", {className: "px-2 py-1.5",- children: /* @__PURE__ */ (0, L.jsx)(Iw, { label: "正在查找建议" })+ children: /* @__PURE__ */ (0, L.jsx)(sw, { label: "正在查找建议" })}) : null, n.map((e, t) => /* @__PURE__ */ (0, L.jsxs)(I.Fragment, { children: [e.group === n[t - 1]?.group ? null : /* @__PURE__ */ (0, L.jsx)("div", {className: "px-2 pt-1 text-caption-1-regular text-text-tertiary",children: e.group}), /* @__PURE__ */ (0, L.jsxs)("button", {type: "button","aria-current": t === r ? "true" : void 0,- className: t === r ? _w(lI, "bg-background-secondary-default") : lI,+ className: t === r ? XC(yI, "bg-background-secondary-default") : yI,onMouseDown: (e) => e.preventDefault(),onClick: () => a(e.value),children: [@@ -39979,7 +39753,7 @@ function Bce({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC})] }, `${e.group}-${e.value}`))]});}-function Vce({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {+function Ece({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {let i = (0, I.useRef)(null), [a, o] = (0, I.useState)(!1), s = (e.providers || []).filter((e) => e.followable), c = s.filter((e) => !t.has(e.provider_label)).length, l = c === s.length ? "全部来源" : `${c}/${s.length} 个来源`, u = (e, r) => {let i = new Set(t);r ? i.delete(e) : i.add(e), n(i);@@ -39987,20 +39761,20 @@ function Vce({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(G, {ref: i,variant: "secondary",- leadingIcon: gS,+ leadingIcon: zS,"aria-haspopup": "dialog","aria-expanded": a,"aria-label": l,onClick: () => o(!0),children: l- }), /* @__PURE__ */ (0, L.jsx)(uD, {+ }), /* @__PURE__ */ (0, L.jsx)(ck, {triggerRef: i,isOpen: a,onOpenChange: o,placement: "bottom end",offset: 4,- className: CA,- children: /* @__PURE__ */ (0, L.jsxs)(xD, {+ className: sA,+ children: /* @__PURE__ */ (0, L.jsxs)(yk, {"aria-label": "来源筛选",className: "flex w-64 flex-col gap-1 outline-none",children: [s.length ? /* @__PURE__ */ (0, L.jsxs)("div", {@@ -40016,16 +39790,16 @@ function Vce({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {onClick: () => n(new Set(s.map((e) => e.provider_label))),children: "全不选"})]- }) : /* @__PURE__ */ (0, L.jsx)(RA, { children: "暂无可用来源" }), s.map((e) => {+ }) : /* @__PURE__ */ (0, L.jsx)(EA, { children: "暂无可用来源" }), s.map((e) => {let n = e.requirement === "required" && (!e.present || (e.missing || []).length > 0);return /* @__PURE__ */ (0, L.jsxs)("div", {className: "flex items-center gap-2",- children: [/* @__PURE__ */ (0, L.jsx)(vj, {+ children: [/* @__PURE__ */ (0, L.jsx)(oj, {isSelected: !t.has(e.provider_label),onChange: (t) => u(e.provider_label, t),children: /* @__PURE__ */ (0, L.jsxs)("span", {className: "flex min-w-0 items-center gap-1.5",- children: [/* @__PURE__ */ (0, L.jsx)(aI, { provider: e.provider }), e.provider_label]+ children: [/* @__PURE__ */ (0, L.jsx)(hI, { provider: e.provider }), e.provider_label]})}), n ? /* @__PURE__ */ (0, L.jsx)(G, {variant: "ghost",@@ -40041,7 +39815,7 @@ function Vce({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {})})] });}-function Hce({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {+function Dce({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {if (e.kind === "error") return /* @__PURE__ */ (0, L.jsx)(J, {tone: "error",title: e.line,@@ -40049,7 +39823,7 @@ function Hce({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {});let a = (e.candidates || []).filter((e) => !n.has(e.provider_label || "")), o = Object.entries(e.failures || {});return /* @__PURE__ */ (0, L.jsxs)("div", {- className: Nw({+ className: aw({padding: "none",className: "flex flex-col gap-2 p-4"}),@@ -40059,15 +39833,15 @@ function Hce({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {children: e.line}),a.length ? a.map((e) => {- let n = pI(t, e);- return /* @__PURE__ */ (0, L.jsx)(vj, {+ let n = bI(t, e);+ return /* @__PURE__ */ (0, L.jsx)(oj, {isSelected: !e.known && !r.has(n),isDisabled: e.known,onChange: (e) => i(n, e),children: /* @__PURE__ */ (0, L.jsxs)("span", {className: "flex min-w-0 flex-wrap items-center gap-1.5",children: [- /* @__PURE__ */ (0, L.jsx)(aI, { provider: e.provider }),+ /* @__PURE__ */ (0, L.jsx)(hI, { provider: e.provider }),/* @__PURE__ */ (0, L.jsx)("b", {className: "text-body-medium",children: e.provider_label@@ -40083,22 +39857,22 @@ function Hce({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {]})}, n);- }) : /* @__PURE__ */ (0, L.jsx)(RA, { children: zce }),+ }) : /* @__PURE__ */ (0, L.jsx)(EA, { children: wce }),(e.external_searches || []).map((e) => /* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-wrap items-center gap-2",children: [/* @__PURE__ */ (0, L.jsx)("small", {className: "text-caption-1-regular text-text-secondary",children: e.evidence- }), /* @__PURE__ */ (0, L.jsx)(VA, {+ }), /* @__PURE__ */ (0, L.jsx)(kA, {href: e.url,children: `${e.label}:${e.query}`})]}, e.url)),- o.length ? /* @__PURE__ */ (0, L.jsx)(RA, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null+ o.length ? /* @__PURE__ */ (0, L.jsx)(EA, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null]});}-function Uce({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {+function Oce({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {let [a, o] = (0, I.useState)(""), [s, c] = (0, I.useState)(""), [l, u] = (0, I.useState)(""), [d, f] = (0, I.useState)(!1), [p, m] = (0, I.useState)(null), [h, g] = (0, I.useState)(-1), _ = (0, I.useRef)(null), v = (0, I.useRef)(null), [y, b] = (0, I.useState)(/* @__PURE__ */ new Set()), [x, S] = (0, I.useState)(/* @__PURE__ */ new Set()), [C, w] = (0, I.useState)(""), [T, E] = (0, I.useState)(0);(0, I.useEffect)(() => {let e = a.trim();@@ -40109,38 +39883,38 @@ function Uce({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:let t = setTimeout(() => u(e), 250);return () => clearTimeout(t);}, [a]);- let D = Nt({- queryKey: Nce(l),- queryFn: ({ signal: e }) => WN(l, e),+ let D = Ft({+ queryKey: Loe(l),+ queryFn: ({ signal: e }) => Qoe(l, e),enabled: l.length > 0 && d}), O = (0, I.useMemo)(() => (D.data?.groups || []).flatMap((e) => e.items.map((t) => ({value: t.value,matched: t.matched || "",n: t.n || 0,group: e.label- }))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = fj({- queryKey: Mce,- queryFn: ({ signal: e }) => UN(e),- start: (e) => KN([e]),+ }))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = ej({+ queryKey: Ioe,+ queryFn: ({ signal: e }) => Zoe(e),+ start: (e) => $oe([e]),onStarted: () => S(/* @__PURE__ */ new Set()),onError: (e) => w(K(e)),onFinish: (e) => {e.status === "failed" && w(e.error || "查找失败");}- }), P = (e) => {+ }), ee = (e) => {let t = e.trim();!t || A || M.isPending || (w(""), g(-1), c(t), o(""), u(""), M.mutate(t));- }, ee = D.isFetching, F = d && p !== a && (O.length > 0 || ee), te = () => {+ }, te = D.isFetching, P = d && p !== a && (O.length > 0 || te), ne = () => {g(-1), m(a);- }, ne = (e) => {+ }, F = (e) => {if (!e.nativeEvent.isComposing) {- if (e.key === "Escape" && F) {- te();+ if (e.key === "Escape" && P) {+ ne();return;}if (e.key === "ArrowDown" || e.key === "ArrowUp") {if (!O.length) return;- if (e.preventDefault(), !F) {+ if (e.preventDefault(), !P) {m(null);return;}@@ -40151,18 +39925,18 @@ function Uce({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:});return;}- e.key === "Enter" && (e.preventDefault(), P(O[h]?.value || a));+ e.key === "Enter" && (e.preventDefault(), ee(O[h]?.value || a));}}, re = j?.results || [], ie = re.flatMap((e, t) => (e.candidates || []).filter((e) => !e.known && !y.has(e.provider_label || "")).map((e) => ({candidate: e,- key: pI(t, e)- })).filter((e) => !x.has(e.key))), ae = Pt({+ key: bI(t, e)+ })).filter((e) => !x.has(e.key))), ae = It({mutationFn: async (e) => {let t = [], n = [];E(0);for (let r of e) {try {- let e = await YN(r.candidate);+ let e = await ese(r.candidate);n.push(e.source);} catch (e) {t.push(`${r.candidate.label}:${K(e)}`);@@ -40170,7 +39944,7 @@ function Uce({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:E((e) => e + 1);}if (n.length) try {- await GN(n);+ await CF(n);} catch (e) {t.push(K(e));}@@ -40180,7 +39954,7 @@ function Uce({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:};},onSuccess: (e) => {- if (uP(), e.failures.length) {+ if (NF(), e.failures.length) {w(e.failures.join(";"));return;}@@ -40189,7 +39963,7 @@ function Uce({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:onError: (e) => w(K(e))}), oe = e.suggestions || [], se = !s.includes("/");return /* @__PURE__ */ (0, L.jsxs)("div", {- className: Nw({+ className: aw({padding: "none",className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"}),@@ -40209,25 +39983,25 @@ function Uce({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:let t = e.relatedTarget;!e.currentTarget.contains(t) && !v.current?.contains(t) && f(!1);},- children: [/* @__PURE__ */ (0, L.jsx)(Bj, {+ children: [/* @__PURE__ */ (0, L.jsx)(Oj, {"aria-label": "来源链接、名字或 id",- placeholder: uI,+ placeholder: xce,value: a,- leadingIcon: kS,+ leadingIcon: QS,isDisabled: n,onChange: o,- onKeyDown: ne- }), F ? /* @__PURE__ */ (0, L.jsx)(Bce, {+ onKeyDown: F+ }), P ? /* @__PURE__ */ (0, L.jsx)(Tce, {field: _,menu: v,options: O,active: h,- busy: ee,- onPick: P,- onClose: te+ busy: te,+ onPick: ee,+ onClose: ne}) : null]}),- /* @__PURE__ */ (0, L.jsx)(Vce, {+ /* @__PURE__ */ (0, L.jsx)(Ece, {credentials: t,hidden: y,onHidden: b,@@ -40237,7 +40011,7 @@ function Uce({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:variant: "primary",disabled: n || !a.trim(),...Y(A || M.isPending),- onClick: () => P(a),+ onClick: () => ee(a),children: "查找"})]@@ -40245,11 +40019,11 @@ function Uce({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:/* @__PURE__ */ (0, L.jsxs)("div", {"aria-live": "polite",className: "flex flex-col gap-3 empty:hidden",- children: [A || M.isPending ? k?.total ? /* @__PURE__ */ (0, L.jsx)(zw, {+ children: [A || M.isPending ? k?.total ? /* @__PURE__ */ (0, L.jsx)(uw, {label: k.message || `查找中:${k.checked || 0}/${k.total}`,value: k.checked || 0,max: k.total- }) : /* @__PURE__ */ (0, L.jsx)(Iw, { label: se ? dI : fI }) : null, C ? /* @__PURE__ */ (0, L.jsx)(J, {+ }) : /* @__PURE__ */ (0, L.jsx)(sw, { label: se ? Sce : Cce }) : null, C ? /* @__PURE__ */ (0, L.jsx)(J, {tone: "error",title: "这一次没有完成",children: C@@ -40258,8 +40032,8 @@ function Uce({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:re.length ? /* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-col gap-3",children: [- /* @__PURE__ */ (0, L.jsx)(BA, { children: "查找结果" }),- re.map((e, t) => /* @__PURE__ */ (0, L.jsx)(Hce, {+ /* @__PURE__ */ (0, L.jsx)(OA, { children: "查找结果" }),+ re.map((e, t) => /* @__PURE__ */ (0, L.jsx)(Dce, {row: e,at: t,hidden: y,@@ -40305,7 +40079,7 @@ function Uce({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:size: "small",disabled: n,title: `浏览历史里出现 ${e.visits} 次${e.origin ? ` · ${e.origin}` : ""}`,- onClick: () => P(e.name),+ onClick: () => ee(e.name),children: e.name}, e.name))]}) : null@@ -40314,16 +40088,16 @@ function Uce({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:}//#endregion//#region src/react/follow-manage/alias-manager.tsx-var Wce = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, mI = (e) => e.alias;-function Gce(e, t, n) {+var kce = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, xI = (e) => e.alias;+function Ace(e, t, n) {let r = n ? `name:${n}` : "", i = r ? e.find((e) => e.author_key === r) : e.find((e) => e.author_name === t || e.entity_name === t);return i ? e.filter((e) => e.author_key === i.author_key) : [];}-function hI({ sources: e, name: t, canonicalKey: n }) {+function SI({ sources: e, name: t, canonicalKey: n }) {return /* @__PURE__ */ (0, L.jsxs)("span", {className: "flex items-center gap-2",- children: [/* @__PURE__ */ (0, L.jsx)(oI, {- group: Gce(e, t, n),+ children: [/* @__PURE__ */ (0, L.jsx)(gI, {+ group: Ace(e, t, n),name: t}), /* @__PURE__ */ (0, L.jsx)("b", {className: "text-body-medium",@@ -40331,15 +40105,15 @@ function hI({ sources: e, name: t, canonicalKey: n }) {})]});}-function Kce({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {- let [a, o] = (0, I.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, I.useState)(""), [l, u] = (0, I.useState)(""), [d, f] = (0, I.useState)(""), p = Pt({+function jce({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {+ let [a, o] = (0, I.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, I.useState)(""), [l, u] = (0, I.useState)(""), [d, f] = (0, I.useState)(""), p = It({mutationFn: async (e) => {let t = 0;for (let n of e) {try {- await XN(n.canonical, n.alias);+ await EF(n.canonical, n.alias);} catch (n) {- throw t && uP(), Error(`${K(n)}(还有 ${e.length - t} 组没有合并)`);+ throw t && NF(), Error(`${K(n)}(还有 ${e.length - t} 组没有合并)`);}t += 1;}@@ -40349,19 +40123,19 @@ function Kce({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i};},onSuccess: (e) => {- c(""), o(/* @__PURE__ */ new Set()), uP(), i(`已合并 ${e.done} 组创作者别名`);+ c(""), o(/* @__PURE__ */ new Set()), NF(), i(`已合并 ${e.done} 组创作者别名`);},onError: (e) => c(K(e))- }), m = Pt({- mutationFn: (e) => XN(e.canonical, e.alias),+ }), m = It({+ mutationFn: (e) => EF(e.canonical, e.alias),onSuccess: () => {- c(""), u(""), f(""), uP(), i("已保存创作者别名");+ c(""), u(""), f(""), NF(), i("已保存创作者别名");},onError: (e) => c(K(e))- }), h = Pt({- mutationFn: (e) => ZN(e),+ }), h = It({+ mutationFn: (e) => tse(e),onSuccess: () => {- c(""), uP(), i("已移除创作者别名");+ c(""), NF(), i("已移除创作者别名");},onError: (e) => c(K(e))}), _ = (e, t) => {@@ -40371,9 +40145,9 @@ function Kce({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: iconfirmLabel: t ? "合并全部别名" : "合并所选别名",onConfirm: () => p.mutateAsync(e)});- }, v = t.filter((e) => a.has(mI(e))), y = t.length > 0 && v.length === t.length, b = Y(p.isPending);+ }, v = t.filter((e) => a.has(xI(e))), y = t.length > 0 && v.length === t.length, b = Y(p.isPending);return /* @__PURE__ */ (0, L.jsxs)("div", {- className: Nw({+ className: aw({padding: "none",className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"}),@@ -40384,10 +40158,10 @@ function Kce({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i}),/* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-col gap-2",- children: [/* @__PURE__ */ (0, L.jsx)(BA, { children: "手动添加别名" }), /* @__PURE__ */ (0, L.jsxs)("div", {+ children: [/* @__PURE__ */ (0, L.jsx)(OA, { children: "手动添加别名" }), /* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-wrap items-end gap-2",children: [- /* @__PURE__ */ (0, L.jsx)(Bj, {+ /* @__PURE__ */ (0, L.jsx)(Oj, {"aria-label": "规范创作者名",placeholder: "规范创作者名",value: l,@@ -40395,7 +40169,7 @@ function Kce({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: iisDisabled: r,className: "w-56"}),- /* @__PURE__ */ (0, L.jsx)(Bj, {+ /* @__PURE__ */ (0, L.jsx)(Oj, {"aria-label": "平台别名",placeholder: "平台别名",value: d,@@ -40416,13 +40190,13 @@ function Kce({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i]})]}),- s ? /* @__PURE__ */ (0, L.jsx)(zA, { children: s }) : null,+ s ? /* @__PURE__ */ (0, L.jsx)(DA, { children: s }) : null,t.length ? /* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-col gap-2",children: [/* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-wrap items-center gap-2",children: [- /* @__PURE__ */ (0, L.jsx)(BA, { children: "待合并" }),+ /* @__PURE__ */ (0, L.jsx)(OA, { children: "待合并" }),/* @__PURE__ */ (0, L.jsx)("span", {className: "mr-auto text-body-2-regular text-text-secondary",children: `${t.length} 组`@@ -40444,44 +40218,44 @@ function Kce({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: ichildren: `全部合并(${t.length})`})]- }), /* @__PURE__ */ (0, L.jsx)(Sj, { children: /* @__PURE__ */ (0, L.jsxs)(yj, {+ }), /* @__PURE__ */ (0, L.jsx)(uj, { children: /* @__PURE__ */ (0, L.jsxs)(sj, {"aria-label": "待合并创作者别名",size: "sm",- children: [/* @__PURE__ */ (0, L.jsxs)(GD, { children: [- /* @__PURE__ */ (0, L.jsx)(KD, {+ children: [/* @__PURE__ */ (0, L.jsxs)(Uk, { children: [+ /* @__PURE__ */ (0, L.jsx)(Wk, {id: "select",- children: /* @__PURE__ */ (0, L.jsx)(vj, {+ children: /* @__PURE__ */ (0, L.jsx)(oj, {slot: null,isSelected: y,isIndeterminate: v.length > 0 && !y,"aria-label": "全选待合并别名",- onChange: (e) => o(e ? new Set(t.map(mI)) : /* @__PURE__ */ new Set())+ onChange: (e) => o(e ? new Set(t.map(xI)) : /* @__PURE__ */ new Set())})}),- /* @__PURE__ */ (0, L.jsx)(KD, {+ /* @__PURE__ */ (0, L.jsx)(Wk, {id: "canonical",children: "规范创作者"}),- /* @__PURE__ */ (0, L.jsx)(KD, {+ /* @__PURE__ */ (0, L.jsx)(Wk, {id: "alias",isRowHeader: !0,children: "平台别名"}),- /* @__PURE__ */ (0, L.jsx)(KD, {+ /* @__PURE__ */ (0, L.jsx)(Wk, {id: "evidence",children: "依据"}),- /* @__PURE__ */ (0, L.jsx)(KD, {+ /* @__PURE__ */ (0, L.jsx)(Wk, {id: "actions",children: "操作"})- ] }), /* @__PURE__ */ (0, L.jsx)(JD, { children: t.map((e) => {- let t = mI(e);- return /* @__PURE__ */ (0, L.jsxs)(ZD, {+ ] }), /* @__PURE__ */ (0, L.jsx)(Kk, { children: t.map((e) => {+ let t = xI(e);+ return /* @__PURE__ */ (0, L.jsxs)(Yk, {id: t,"data-board-selected": a.has(t) || void 0,children: [- /* @__PURE__ */ (0, L.jsx)($D, { children: /* @__PURE__ */ (0, L.jsx)(vj, {+ /* @__PURE__ */ (0, L.jsx)(Zk, { children: /* @__PURE__ */ (0, L.jsx)(oj, {slot: null,isSelected: a.has(t),"aria-label": `选择别名 ${e.alias},归入 ${e.canonical}`,@@ -40490,16 +40264,16 @@ function Kce({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: ie ? n.add(t) : n.delete(t), o(n);}}) }),- /* @__PURE__ */ (0, L.jsx)($D, { children: /* @__PURE__ */ (0, L.jsx)(hI, {+ /* @__PURE__ */ (0, L.jsx)(Zk, { children: /* @__PURE__ */ (0, L.jsx)(SI, {sources: n,name: e.canonical}) }),- /* @__PURE__ */ (0, L.jsx)($D, { children: e.alias }),- /* @__PURE__ */ (0, L.jsx)($D, { children: /* @__PURE__ */ (0, L.jsx)("span", {+ /* @__PURE__ */ (0, L.jsx)(Zk, { children: e.alias }),+ /* @__PURE__ */ (0, L.jsx)(Zk, { children: /* @__PURE__ */ (0, L.jsx)("span", {className: "text-body-2-regular text-text-secondary",children: e.evidence}) }),- /* @__PURE__ */ (0, L.jsx)($D, { children: /* @__PURE__ */ (0, L.jsx)(G, {+ /* @__PURE__ */ (0, L.jsx)(Zk, { children: /* @__PURE__ */ (0, L.jsx)(G, {variant: "secondary",size: "small",disabled: r,@@ -40516,27 +40290,27 @@ function Kce({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: iclassName: "flex flex-col gap-2",children: [/* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-wrap items-center gap-2",- children: [/* @__PURE__ */ (0, L.jsx)(BA, { children: "已保存别名" }), /* @__PURE__ */ (0, L.jsx)("span", {+ children: [/* @__PURE__ */ (0, L.jsx)(OA, { children: "已保存别名" }), /* @__PURE__ */ (0, L.jsx)("span", {className: "text-body-2-regular text-text-secondary",children: `${e.length} 组`})]- }), e.length ? /* @__PURE__ */ (0, L.jsx)(Sj, { children: /* @__PURE__ */ (0, L.jsxs)(yj, {+ }), e.length ? /* @__PURE__ */ (0, L.jsx)(uj, { children: /* @__PURE__ */ (0, L.jsxs)(sj, {"aria-label": "已保存创作者别名",size: "sm",- children: [/* @__PURE__ */ (0, L.jsxs)(GD, { children: [/* @__PURE__ */ (0, L.jsx)(KD, {+ children: [/* @__PURE__ */ (0, L.jsxs)(Uk, { children: [/* @__PURE__ */ (0, L.jsx)(Wk, {id: "canonical",isRowHeader: !0,children: "规范创作者"- }), /* @__PURE__ */ (0, L.jsx)(KD, {+ }), /* @__PURE__ */ (0, L.jsx)(Wk, {id: "aliases",children: "平台别名"- })] }), /* @__PURE__ */ (0, L.jsx)(JD, { children: e.map((e) => /* @__PURE__ */ (0, L.jsxs)(ZD, {+ })] }), /* @__PURE__ */ (0, L.jsx)(Kk, { children: e.map((e) => /* @__PURE__ */ (0, L.jsxs)(Yk, {id: e.canonical_key,- children: [/* @__PURE__ */ (0, L.jsx)($D, { children: /* @__PURE__ */ (0, L.jsx)(hI, {+ children: [/* @__PURE__ */ (0, L.jsx)(Zk, { children: /* @__PURE__ */ (0, L.jsx)(SI, {sources: n,name: e.canonical_name,canonicalKey: e.canonical_key- }) }), /* @__PURE__ */ (0, L.jsx)($D, { children: /* @__PURE__ */ (0, L.jsx)("span", {+ }) }), /* @__PURE__ */ (0, L.jsx)(Zk, { children: /* @__PURE__ */ (0, L.jsx)("span", {className: "flex flex-wrap items-center gap-1.5",children: e.aliases.map((e) => /* @__PURE__ */ (0, L.jsxs)("span", {className: "inline-flex items-center gap-1 rounded-md bg-background-secondary-default px-1.5 py-1 text-caption-1-medium text-text-secondary",@@ -40544,13 +40318,13 @@ function Kce({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: ivariant: "ghost",size: "xs",iconOnly: !0,- leadingIcon: uS,+ leadingIcon: MS,"aria-label": `移除别名 ${e.name}`,disabled: r,...Y(h.isPending),onClick: () => void g({title: "移除创作者别名",- body: Wce(e.name),+ body: kce(e.name),confirmLabel: "移除创作者别名",onConfirm: () => h.mutateAsync(e.name)})@@ -40558,9 +40332,9 @@ function Kce({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i}, e.key))}) })]}, e.canonical_key)) })]- }) }) : /* @__PURE__ */ (0, L.jsx)(Fw, {+ }) }) : /* @__PURE__ */ (0, L.jsx)(ow, {shell: "plain",- icon: PS,+ icon: rC,title: "还没有保存创作者别名",children: "填写规范创作者名和平台别名以添加。"})]@@ -40570,33 +40344,33 @@ function Kce({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i}//#endregion//#region src/react/follow-manage/credentials.tsx-var qce = "这些账号信息存在哪里", Jce = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", Yce = "将清除这个来源在本机和共享副本中的登录凭据。", Xce = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";-function Zce(e, t) {+var Mce = "这些账号信息存在哪里", Nce = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", Pce = "将清除这个来源在本机和共享副本中的登录凭据。", Fce = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";+function Ice(e, t) {return (e.shared_fields || []).includes(t) ? "来自共享,留空表示不改" : e.fields.includes(t) ? "已保存,留空表示不改" : "未填写";}-function Qce({ row: e }) {- if (vP(e)) return /* @__PURE__ */ (0, L.jsx)(bw, {+function Lce({ row: e }) {+ if (FF(e)) return /* @__PURE__ */ (0, L.jsx)($C, {variant: "caption",color: "lime",children: "已配置"});let t = e.requirement === "required" ? "yellow" : e.requirement === "blocked" ? "rose" : "neutral";- return /* @__PURE__ */ (0, L.jsx)(bw, {+ return /* @__PURE__ */ (0, L.jsx)($C, {variant: "caption",color: t,- children: _P[e.requirement] || ""+ children: pse[e.requirement] || ""});}-function $ce({ row: e, readOnly: t, toast: n }) {- let [r, i] = (0, I.useState)({}), [a, o] = (0, I.useState)(""), s = vP(e), c = Pt({- mutationFn: (t) => QN(e.provider, t),+function Rce({ row: e, readOnly: t, toast: n }) {+ let [r, i] = (0, I.useState)({}), [a, o] = (0, I.useState)(""), s = FF(e), c = It({+ mutationFn: (t) => nse(e.provider, t),onSuccess: (e, t) => {if (e.note) {o(e.note);return;}o(""), i({}), X.invalidateQueries({- queryKey: vN,+ queryKey: oF,exact: !0}), n(Object.keys(t).length ? "已保存来源凭据" : "已清除来源凭据");},@@ -40612,17 +40386,17 @@ function $ce({ row: e, readOnly: t, toast: n }) {return /* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-col gap-3",children: [- /* @__PURE__ */ (0, L.jsxs)(RA, { children: [e.why, e.where ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [" ", /* @__PURE__ */ (0, L.jsx)(VA, {+ /* @__PURE__ */ (0, L.jsxs)(EA, { children: [e.why, e.where ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [" ", /* @__PURE__ */ (0, L.jsx)(kA, {href: e.where,children: "去取"})] }) : null] }),- e.howto ? /* @__PURE__ */ (0, L.jsx)(RA, { children: e.howto }) : null,+ e.howto ? /* @__PURE__ */ (0, L.jsx)(EA, { children: e.howto }) : null,/* @__PURE__ */ (0, L.jsx)("div", {className: "flex flex-wrap items-end gap-3",- children: (e.needs || []).map((n) => /* @__PURE__ */ (0, L.jsx)(Bj, {+ children: (e.needs || []).map((n) => /* @__PURE__ */ (0, L.jsx)(Oj, {type: "password",label: n,- placeholder: Zce(e, n),+ placeholder: Ice(e, n),autoComplete: "off",spellCheck: "false",isDisabled: t,@@ -40650,7 +40424,7 @@ function $ce({ row: e, readOnly: t, toast: n }) {...Y(c.isPending),onClick: () => void g({title: "清除来源凭据",- body: Yce,+ body: Pce,confirmLabel: "清除来源凭据",danger: !0,onConfirm: () => c.mutateAsync({})@@ -40658,9 +40432,9 @@ function $ce({ row: e, readOnly: t, toast: n }) {children: "清除"}) : null]}),- a ? /* @__PURE__ */ (0, L.jsx)(zA, { children: a }) : null,- (e.shared_fields || []).length ? /* @__PURE__ */ (0, L.jsx)(RA, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,- e.path ? /* @__PURE__ */ (0, L.jsx)(jA, {+ a ? /* @__PURE__ */ (0, L.jsx)(DA, { children: a }) : null,+ (e.shared_fields || []).length ? /* @__PURE__ */ (0, L.jsx)(EA, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,+ e.path ? /* @__PURE__ */ (0, L.jsx)(vA, {path: e.path,className: "font-mono text-caption-1-regular text-text-tertiary",onRevealed: n@@ -40668,25 +40442,25 @@ function $ce({ row: e, readOnly: t, toast: n }) {e.world_readable ? /* @__PURE__ */ (0, L.jsx)(J, {tone: "error",title: "凭据文件权限过宽",- children: Xce+ children: Fce}) : null]});}-function ele({ row: e, readOnly: t, toast: n }) {+function zce({ row: e, readOnly: t, toast: n }) {let r = /* @__PURE__ */ (0, L.jsxs)("span", {className: "flex min-w-0 items-center gap-2",children: [/* @__PURE__ */ (0, L.jsx)("span", {className: "inline-flex size-3.5 shrink-0 items-center justify-center",- children: /* @__PURE__ */ (0, L.jsx)(aI, { provider: e.provider })+ children: /* @__PURE__ */ (0, L.jsx)(hI, { provider: e.provider })}),/* @__PURE__ */ (0, L.jsx)("b", {className: "text-body-medium text-text-primary",children: e.provider_label}),- /* @__PURE__ */ (0, L.jsx)(Qce, { row: e }),- e.missing.length ? /* @__PURE__ */ (0, L.jsx)(bw, {+ /* @__PURE__ */ (0, L.jsx)(Lce, { row: e }),+ e.missing.length ? /* @__PURE__ */ (0, L.jsx)($C, {variant: "caption",color: "rose",children: `缺 ${e.missing.join("、")}`@@ -40695,13 +40469,13 @@ function ele({ row: e, readOnly: t, toast: n }) {});return e.requirement === "none" || e.requirement === "blocked" ? /* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-wrap items-center gap-3 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4",- children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, L.jsx)(RA, { children: e.why }) : null]+ children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, L.jsx)(EA, { children: e.why }) : null]}) : /* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-col gap-2 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4",- children: [r, /* @__PURE__ */ (0, L.jsx)(WA, {- summary: vP(e) ? "修改凭据" : "填写凭据",- defaultOpen: e.requirement === "required" && !vP(e),- children: /* @__PURE__ */ (0, L.jsx)($ce, {+ children: [r, /* @__PURE__ */ (0, L.jsx)(MA, {+ summary: FF(e) ? "修改凭据" : "填写凭据",+ defaultOpen: e.requirement === "required" && !FF(e),+ children: /* @__PURE__ */ (0, L.jsx)(Rce, {row: e,readOnly: t,toast: n@@ -40709,10 +40483,10 @@ function ele({ row: e, readOnly: t, toast: n }) {})]});}-function tle({ data: e, readOnly: t, toast: n }) {- let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !vP(e));+function Bce({ data: e, readOnly: t, toast: n }) {+ let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !FF(e));return r.length ? /* @__PURE__ */ (0, L.jsxs)("div", {- className: Nw({+ className: aw({padding: "none",className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"}),@@ -40728,11 +40502,11 @@ function tle({ data: e, readOnly: t, toast: n }) {}) : null]}),/* @__PURE__ */ (0, L.jsx)("div", {- className: Nw({+ className: aw({padding: "none",className: "flex flex-col overflow-hidden"}),- children: r.map((e) => /* @__PURE__ */ (0, L.jsx)(ele, {+ children: r.map((e) => /* @__PURE__ */ (0, L.jsx)(zce, {row: e,readOnly: t,toast: n@@ -40743,13 +40517,13 @@ function tle({ data: e, readOnly: t, toast: n }) {children: [/* @__PURE__ */ (0, L.jsx)("b", {className: "text-body-medium text-text-primary",- children: qce+ children: Mce}),/* @__PURE__ */ (0, L.jsx)("span", {className: "text-body-2-regular text-text-secondary",- children: Jce+ children: Nce}),- /* @__PURE__ */ (0, L.jsx)(jA, {+ /* @__PURE__ */ (0, L.jsx)(vA, {path: e.root,prefix: "凭据文件在 ",className: "text-body-2-regular text-text-secondary",@@ -40758,16 +40532,16 @@ function tle({ data: e, readOnly: t, toast: n }) {]})]- }) : /* @__PURE__ */ (0, L.jsx)(Fw, {+ }) : /* @__PURE__ */ (0, L.jsx)(ow, {shell: "plain",- icon: CS,+ icon: KS,title: "没有可配置的来源",children: "已接入的站点及其凭据状态会显示在这里。"});}//#endregion//#region node_modules/@tanstack/table-core/build/lib/index.mjs-function gI() {+function CI() {return {accessor: (e, t) => typeof e == "function" ? {...t,@@ -40780,24 +40554,24 @@ function gI() {group: (e) => e};}-function _I(e, t) {+function wI(e, t) {return typeof e == "function" ? e(t) : e;}-function vI(e, t) {+function TI(e, t) {return (n) => {t.setState((t) => ({...t,- [e]: _I(n, t[e])+ [e]: wI(n, t[e])}));};}-function yI(e) {+function EI(e) {return e instanceof Function;}-function nle(e) {+function Vce(e) {return Array.isArray(e) && e.every((e) => typeof e == "number");}-function rle(e, t) {+function Hce(e, t) {let n = [], r = (e) => {e.forEach((e) => {n.push(e);@@ -40807,7 +40581,7 @@ function rle(e, t) {};return r(e), n;}-function bI(e, t, n) {+function DI(e, t, n) {let r = [], i;return (a) => {let o;@@ -40829,21 +40603,21 @@ function bI(e, t, n) {return i;};}-function xI(e, t, n, r) {+function OI(e, t, n, r) {return {debug: () => e?.debugAll ?? e[t],key: !1,onChange: r};}-function ile(e, t, n, r) {+function Uce(e, t, n, r) {let i = {id: `${t.id}_${n.id}`,row: t,column: n,getValue: () => t.getValue(r),renderValue: () => i.getValue() ?? e.options.renderFallbackValue,- getContext: bI(() => [+ getContext: DI(() => [e,n,t,@@ -40855,13 +40629,13 @@ function ile(e, t, n, r) {cell: r,getValue: r.getValue,renderValue: r.renderValue- }), xI(e.options, "debugCells", "cell.getContext"))+ }), OI(e.options, "debugCells", "cell.getContext"))};return e._features.forEach((r) => {r.createCell == null || r.createCell(i, n, t, e);}, {}), i;}-function ale(e, t, n, r) {+function Wce(e, t, n, r) {let i = {...e._getDefaultColumnDef(),...t@@ -40878,17 +40652,17 @@ function ale(e, t, n, r) {depth: n,columnDef: i,columns: [],- getFlatColumns: bI(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], xI(e.options, "debugColumns", "column.getFlatColumns")),- getLeafColumns: bI(() => [e._getOrderColumnsFn()], (e) => {+ getFlatColumns: DI(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], OI(e.options, "debugColumns", "column.getFlatColumns")),+ getLeafColumns: DI(() => [e._getOrderColumnsFn()], (e) => {var t;return (t = c.columns) != null && t.length ? e(c.columns.flatMap((e) => e.getLeafColumns())) : [c];- }, xI(e.options, "debugColumns", "column.getLeafColumns"))+ }, OI(e.options, "debugColumns", "column.getLeafColumns"))};for (let t of e._features) t.createColumn == null || t.createColumn(c, e);return c;}-var SI = "debugHeaders";-function CI(e, t, n) {+var kI = "debugHeaders";+function AI(e, t, n) {let r = {id: n.id ?? t.id,column: t,@@ -40916,42 +40690,42 @@ function CI(e, t, n) {t.createHeader == null || t.createHeader(r, e);}), r;}-var ole = { createTable: (e) => {- e.getHeaderGroups = bI(() => [+var Gce = { createTable: (e) => {+ e.getHeaderGroups = DI(() => [e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right], (t, n, r, i) => {let a = r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], o = i?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], s = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id)));- return wI(t, [+ return jI(t, [...a,...s,...o], e);- }, xI(e.options, SI, "getHeaderGroups")), e.getCenterHeaderGroups = bI(() => [+ }, OI(e.options, kI, "getHeaderGroups")), e.getCenterHeaderGroups = DI(() => [e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right- ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), wI(t, n, e, "center")), xI(e.options, SI, "getCenterHeaderGroups")), e.getLeftHeaderGroups = bI(() => [+ ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), jI(t, n, e, "center")), OI(e.options, kI, "getCenterHeaderGroups")), e.getLeftHeaderGroups = DI(() => [e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left- ], (t, n, r) => wI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), xI(e.options, SI, "getLeftHeaderGroups")), e.getRightHeaderGroups = bI(() => [+ ], (t, n, r) => jI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), OI(e.options, kI, "getLeftHeaderGroups")), e.getRightHeaderGroups = DI(() => [e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right- ], (t, n, r) => wI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), xI(e.options, SI, "getRightHeaderGroups")), e.getFooterGroups = bI(() => [e.getHeaderGroups()], (e) => [...e].reverse(), xI(e.options, SI, "getFooterGroups")), e.getLeftFooterGroups = bI(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), xI(e.options, SI, "getLeftFooterGroups")), e.getCenterFooterGroups = bI(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), xI(e.options, SI, "getCenterFooterGroups")), e.getRightFooterGroups = bI(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), xI(e.options, SI, "getRightFooterGroups")), e.getFlatHeaders = bI(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), xI(e.options, SI, "getFlatHeaders")), e.getLeftFlatHeaders = bI(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), xI(e.options, SI, "getLeftFlatHeaders")), e.getCenterFlatHeaders = bI(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), xI(e.options, SI, "getCenterFlatHeaders")), e.getRightFlatHeaders = bI(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), xI(e.options, SI, "getRightFlatHeaders")), e.getCenterLeafHeaders = bI(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {+ ], (t, n, r) => jI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), OI(e.options, kI, "getRightHeaderGroups")), e.getFooterGroups = DI(() => [e.getHeaderGroups()], (e) => [...e].reverse(), OI(e.options, kI, "getFooterGroups")), e.getLeftFooterGroups = DI(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), OI(e.options, kI, "getLeftFooterGroups")), e.getCenterFooterGroups = DI(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), OI(e.options, kI, "getCenterFooterGroups")), e.getRightFooterGroups = DI(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), OI(e.options, kI, "getRightFooterGroups")), e.getFlatHeaders = DI(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), OI(e.options, kI, "getFlatHeaders")), e.getLeftFlatHeaders = DI(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), OI(e.options, kI, "getLeftFlatHeaders")), e.getCenterFlatHeaders = DI(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), OI(e.options, kI, "getCenterFlatHeaders")), e.getRightFlatHeaders = DI(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), OI(e.options, kI, "getRightFlatHeaders")), e.getCenterLeafHeaders = DI(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {var t;return !((t = e.subHeaders) != null && t.length);- }), xI(e.options, SI, "getCenterLeafHeaders")), e.getLeftLeafHeaders = bI(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {+ }), OI(e.options, kI, "getCenterLeafHeaders")), e.getLeftLeafHeaders = DI(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {var t;return !((t = e.subHeaders) != null && t.length);- }), xI(e.options, SI, "getLeftLeafHeaders")), e.getRightLeafHeaders = bI(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {+ }), OI(e.options, kI, "getLeftLeafHeaders")), e.getRightLeafHeaders = DI(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {var t;return !((t = e.subHeaders) != null && t.length);- }), xI(e.options, SI, "getRightLeafHeaders")), e.getLeafHeaders = bI(() => [+ }), OI(e.options, kI, "getRightLeafHeaders")), e.getLeafHeaders = DI(() => [e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()@@ -40959,9 +40733,9 @@ var ole = { createTable: (e) => {...e[0]?.headers ?? [],...t[0]?.headers ?? [],...n[0]?.headers ?? []- ].map((e) => e.getLeafHeaders()).flat(), xI(e.options, SI, "getLeafHeaders"));+ ].map((e) => e.getLeafHeaders()).flat(), OI(e.options, kI, "getLeafHeaders"));} };-function wI(e, t, n, r) {+function jI(e, t, n, r) {let i = 0, a = function(e, t) {t === void 0 && (t = 1), i = Math.max(i, t), e.filter((e) => e.getIsVisible()).forEach((e) => {var n;@@ -40979,7 +40753,7 @@ function wI(e, t, n, r) {let o = [...a].reverse()[0], s = e.column.depth === i.depth, c, l = !1;if (s && e.column.parent ? c = e.column.parent : (c = e.column, l = !0), o && o?.column === c) o.subHeaders.push(e);else {- let i = CI(n, c, {+ let i = AI(n, c, {id: [r,t,@@ -40996,7 +40770,7 @@ function wI(e, t, n, r) {i.headers.push(e), e.headerGroup = i;}), o.push(i), t > 0 && s(a, t - 1);};- s(t.map((e, t) => CI(n, e, {+ s(t.map((e, t) => AI(n, e, {depth: i,index: t})), i - 1), o.reverse();@@ -41014,7 +40788,7 @@ function wI(e, t, n, r) {});return c(o[0]?.headers ?? []), o;}-var sle = (e, t, n, r, i, a, o) => {+var Kce = (e, t, n, r, i, a, o) => {let s = {id: t,index: r,@@ -41035,7 +40809,7 @@ var sle = (e, t, n, r, i, a, o) => {},renderValue: (t) => s.getValue(t) ?? e.options.renderFallbackValue,subRows: a ?? [],- getLeafRows: () => rle(s.subRows, (e) => e.subRows),+ getLeafRows: () => Hce(s.subRows, (e) => e.subRows),getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,getParentRows: () => {let e = [], t = s;@@ -41046,95 +40820,95 @@ var sle = (e, t, n, r, i, a, o) => {}return e.reverse();},- getAllCells: bI(() => [e.getAllLeafColumns()], (t) => t.map((t) => ile(e, s, t, t.id)), xI(e.options, "debugRows", "getAllCells")),- _getAllCellsByColumnId: bI(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), xI(e.options, "debugRows", "getAllCellsByColumnId"))+ getAllCells: DI(() => [e.getAllLeafColumns()], (t) => t.map((t) => Uce(e, s, t, t.id)), OI(e.options, "debugRows", "getAllCells")),+ _getAllCellsByColumnId: DI(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), OI(e.options, "debugRows", "getAllCellsByColumnId"))};for (let t = 0; t < e._features.length; t++) {let n = e._features[t];n == null || n.createRow == null || n.createRow(s, e);}return s;-}, cle = { createColumn: (e, t) => {+}, qce = { createColumn: (e, t) => {e._getFacetedRowModel = t.options.getFacetedRowModel && t.options.getFacetedRowModel(t, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : t.getPreFilteredRowModel(), e._getFacetedUniqueValues = t.options.getFacetedUniqueValues && t.options.getFacetedUniqueValues(t, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = t.options.getFacetedMinMaxValues && t.options.getFacetedMinMaxValues(t, e.id), e.getFacetedMinMaxValues = () => {if (e._getFacetedMinMaxValues) return e._getFacetedMinMaxValues();};-} }, TI = (e, t, n) => {+} }, MI = (e, t, n) => {var r, i;let a = n == null || (r = n.toString()) == null ? void 0 : r.toLowerCase();return !!((i = e.getValue(t)) != null && (i = i.toString()) != null && (i = i.toLowerCase()) != null && i.includes(a));};-TI.autoRemove = (e) => FI(e);-var EI = (e, t, n) => {+MI.autoRemove = (e) => HI(e);+var NI = (e, t, n) => {var r;return !!((r = e.getValue(t)) != null && (r = r.toString()) != null && r.includes(n));};-EI.autoRemove = (e) => FI(e);-var DI = (e, t, n) => {+NI.autoRemove = (e) => HI(e);+var PI = (e, t, n) => {var r;return ((r = e.getValue(t)) == null || (r = r.toString()) == null ? void 0 : r.toLowerCase()) === n?.toLowerCase();};-DI.autoRemove = (e) => FI(e);-var OI = (e, t, n) => e.getValue(t)?.includes(n);-OI.autoRemove = (e) => FI(e);-var kI = (e, t, n) => !n.some((n) => {+PI.autoRemove = (e) => HI(e);+var FI = (e, t, n) => e.getValue(t)?.includes(n);+FI.autoRemove = (e) => HI(e);+var II = (e, t, n) => !n.some((n) => {var r;return !((r = e.getValue(t)) != null && r.includes(n));});-kI.autoRemove = (e) => FI(e) || !(e != null && e.length);-var AI = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));-AI.autoRemove = (e) => FI(e) || !(e != null && e.length);-var jI = (e, t, n) => e.getValue(t) === n;-jI.autoRemove = (e) => FI(e);-var MI = (e, t, n) => e.getValue(t) == n;-MI.autoRemove = (e) => FI(e);-var NI = (e, t, n) => {+II.autoRemove = (e) => HI(e) || !(e != null && e.length);+var LI = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));+LI.autoRemove = (e) => HI(e) || !(e != null && e.length);+var RI = (e, t, n) => e.getValue(t) === n;+RI.autoRemove = (e) => HI(e);+var zI = (e, t, n) => e.getValue(t) == n;+zI.autoRemove = (e) => HI(e);+var BI = (e, t, n) => {let [r, i] = n, a = e.getValue(t);return a >= r && a <= i;};-NI.resolveFilterValue = (e) => {+BI.resolveFilterValue = (e) => {let [t, n] = e, r = typeof t == "number" ? t : parseFloat(t), i = typeof n == "number" ? n : parseFloat(n), a = t === null || Number.isNaN(r) ? -Infinity : r, o = n === null || Number.isNaN(i) ? Infinity : i;if (a > o) {let e = a;a = o, o = e;}return [a, o];-}, NI.autoRemove = (e) => FI(e) || FI(e[0]) && FI(e[1]);-var PI = {- includesString: TI,- includesStringSensitive: EI,- equalsString: DI,- arrIncludes: OI,- arrIncludesAll: kI,- arrIncludesSome: AI,- equals: jI,- weakEquals: MI,- inNumberRange: NI+}, BI.autoRemove = (e) => HI(e) || HI(e[0]) && HI(e[1]);+var VI = {+ includesString: MI,+ includesStringSensitive: NI,+ equalsString: PI,+ arrIncludes: FI,+ arrIncludesAll: II,+ arrIncludesSome: LI,+ equals: RI,+ weakEquals: zI,+ inNumberRange: BI};-function FI(e) {+function HI(e) {return e == null || e === "";}-var lle = {+var Jce = {getDefaultColumnDef: () => ({ filterFn: "auto" }),getInitialState: (e) => ({columnFilters: [],...e}),getDefaultOptions: (e) => ({- onColumnFiltersChange: vI("columnFilters", e),+ onColumnFiltersChange: TI("columnFilters", e),filterFromLeafRows: !1,maxLeafRowFilterDepth: 100}),createColumn: (e, t) => {e.getAutoFilterFn = () => {let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);- return typeof n == "string" ? PI.includesString : typeof n == "number" ? PI.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? PI.equals : Array.isArray(n) ? PI.arrIncludes : PI.weakEquals;- }, e.getFilterFn = () => yI(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? PI[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {+ return typeof n == "string" ? VI.includesString : typeof n == "number" ? VI.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? VI.equals : Array.isArray(n) ? VI.arrIncludes : VI.weakEquals;+ }, e.getFilterFn = () => EI(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? VI[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {var n;return (n = t.getState().columnFilters) == null || (n = n.find((t) => t.id === e.id)) == null ? void 0 : n.value;}, e.getFilterIndex = () => t.getState().columnFilters?.findIndex((t) => t.id === e.id) ?? -1, e.setFilterValue = (n) => {t.setColumnFilters((t) => {- let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = _I(n, i ? i.value : void 0);- if (II(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];+ let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = wI(n, i ? i.value : void 0);+ if (UI(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];let o = {id: e.id,value: a@@ -41149,19 +40923,19 @@ var lle = {createTable: (e) => {e.setColumnFilters = (t) => {let n = e.getAllLeafColumns();- e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => _I(t, e)?.filter((e) => {+ e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => wI(t, e)?.filter((e) => {let t = n.find((t) => t.id === e.id);- return !(t && II(t.getFilterFn(), e.value, t));+ return !(t && UI(t.getFilterFn(), e.value, t));}));}, e.resetColumnFilters = (t) => {e.setColumnFilters(t ? [] : e.initialState?.columnFilters ?? []);}, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());}};-function II(e, t, n) {+function UI(e, t, n) {return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || t === void 0 || typeof t == "string" && !t;}-var LI = {+var WI = {sum: (e, t, n) => n.reduce((t, n) => {let r = n.getValue(e);return t + (typeof r == "number" ? r : 0);@@ -41197,7 +40971,7 @@ var LI = {median: (e, t) => {if (!t.length) return;let n = t.map((t) => t.getValue(e));- if (!nle(n)) return;+ if (!Vce(n)) return;if (n.length === 1) return n[0];let r = Math.floor(n.length / 2), i = n.sort((e, t) => e - t);return n.length % 2 == 0 ? (i[r - 1] + i[r]) / 2 : i[r];@@ -41205,7 +40979,7 @@ var LI = {unique: (e, t) => Array.from(new Set(t.map((t) => t.getValue(e))).values()),uniqueCount: (e, t) => new Set(t.map((t) => t.getValue(e))).size,count: (e, t) => t.length-}, ule = {+}, Yce = {getDefaultColumnDef: () => ({aggregatedCell: (e) => {var t;@@ -41218,7 +40992,7 @@ var LI = {...e}),getDefaultOptions: (e) => ({- onGroupingChange: vI("grouping", e),+ onGroupingChange: TI("grouping", e),groupedColumnMode: "reorder"}),createColumn: (e, t) => {@@ -41231,11 +41005,11 @@ var LI = {};}, e.getAutoAggregationFn = () => {let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);- if (typeof n == "number") return LI.sum;- if (Object.prototype.toString.call(n) === "[object Date]") return LI.extent;+ if (typeof n == "number") return WI.sum;+ if (Object.prototype.toString.call(n) === "[object Date]") return WI.extent;}, e.getAggregationFn = () => {if (!e) throw Error();- return yI(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? LI[e.columnDef.aggregationFn];+ return EI(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? WI[e.columnDef.aggregationFn];};},createTable: (e) => {@@ -41257,27 +41031,27 @@ var LI = {};}};-function dle(e, t, n) {+function Xce(e, t, n) {if (!(t != null && t.length) || !n) return e;let r = e.filter((e) => !t.includes(e.id));return n === "remove" ? r : [...t.map((t) => e.find((e) => e.id === t)).filter(Boolean), ...r];}-var fle = {+var Zce = {getInitialState: (e) => ({columnOrder: [],...e}),- getDefaultOptions: (e) => ({ onColumnOrderChange: vI("columnOrder", e) }),+ getDefaultOptions: (e) => ({ onColumnOrderChange: TI("columnOrder", e) }),createColumn: (e, t) => {- e.getIndex = bI((e) => [UI(t, e)], (t) => t.findIndex((t) => t.id === e.id), xI(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => UI(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {- let r = UI(t, n);+ e.getIndex = DI((e) => [XI(t, e)], (t) => t.findIndex((t) => t.id === e.id), OI(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => XI(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {+ let r = XI(t, n);return r[r.length - 1]?.id === e.id;};},createTable: (e) => {e.setColumnOrder = (t) => e.options.onColumnOrderChange == null ? void 0 : e.options.onColumnOrderChange(t), e.resetColumnOrder = (t) => {e.setColumnOrder(t ? [] : e.initialState.columnOrder ?? []);- }, e._getOrderColumnsFn = bI(() => [+ }, e._getOrderColumnsFn = DI(() => [e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode@@ -41292,18 +41066,18 @@ var fle = {}i = [...i, ...n];}- return dle(i, t, n);- }, xI(e.options, "debugTable", "_getOrderColumnsFn"));+ return Xce(i, t, n);+ }, OI(e.options, "debugTable", "_getOrderColumnsFn"));}-}, RI = () => ({+}, GI = () => ({left: [],right: []-}), ple = {+}), Qce = {getInitialState: (e) => ({- columnPinning: RI(),+ columnPinning: GI(),...e}),- getDefaultOptions: (e) => ({ onColumnPinningChange: vI("columnPinning", e) }),+ getDefaultOptions: (e) => ({ onColumnPinningChange: TI("columnPinning", e) }),createColumn: (e, t) => {e.pin = (n) => {let r = e.getLeafColumns().map((e) => e.id).filter(Boolean);@@ -41327,75 +41101,75 @@ var fle = {};},createRow: (e, t) => {- e.getCenterVisibleCells = bI(() => [+ e.getCenterVisibleCells = DI(() => [e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right], (e, t, n) => {let r = [...t ?? [], ...n ?? []];return e.filter((e) => !r.includes(e.column.id));- }, xI(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = bI(() => [e._getAllVisibleCells(), t.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({+ }, OI(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = DI(() => [e._getAllVisibleCells(), t.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({...e,position: "left"- })), xI(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = bI(() => [e._getAllVisibleCells(), t.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({+ })), OI(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = DI(() => [e._getAllVisibleCells(), t.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({...e,position: "right"- })), xI(t.options, "debugRows", "getRightVisibleCells"));+ })), OI(t.options, "debugRows", "getRightVisibleCells"));},createTable: (e) => {- e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? RI() : e.initialState?.columnPinning ?? RI()), e.getIsSomeColumnsPinned = (t) => {+ e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? GI() : e.initialState?.columnPinning ?? GI()), e.getIsSomeColumnsPinned = (t) => {let n = e.getState().columnPinning;return t ? !!n[t]?.length : !!(n.left?.length || n.right?.length);- }, e.getLeftLeafColumns = bI(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), xI(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = bI(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), xI(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = bI(() => [+ }, e.getLeftLeafColumns = DI(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), OI(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = DI(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), OI(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = DI(() => [e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right], (e, t, n) => {let r = [...t ?? [], ...n ?? []];return e.filter((e) => !r.includes(e.id));- }, xI(e.options, "debugColumns", "getCenterLeafColumns"));+ }, OI(e.options, "debugColumns", "getCenterLeafColumns"));}};-function mle(e) {+function $ce(e) {return e || (typeof document < "u" ? document : null);}-var zI = {+var KI = {size: 150,minSize: 20,maxSize: 2 ** 53 - 1-}, BI = () => ({+}, qI = () => ({startOffset: null,startSize: null,deltaOffset: null,deltaPercentage: null,isResizingColumn: !1,columnSizingStart: []-}), hle = {- getDefaultColumnDef: () => zI,+}), ele = {+ getDefaultColumnDef: () => KI,getInitialState: (e) => ({columnSizing: {},- columnSizingInfo: BI(),+ columnSizingInfo: qI(),...e}),getDefaultOptions: (e) => ({columnResizeMode: "onEnd",columnResizeDirection: "ltr",- onColumnSizingChange: vI("columnSizing", e),- onColumnSizingInfoChange: vI("columnSizingInfo", e)+ onColumnSizingChange: TI("columnSizing", e),+ onColumnSizingInfoChange: TI("columnSizingInfo", e)}),createColumn: (e, t) => {e.getSize = () => {let n = t.getState().columnSizing[e.id];- return Math.min(Math.max(e.columnDef.minSize ?? zI.minSize, n ?? e.columnDef.size ?? zI.size), e.columnDef.maxSize ?? zI.maxSize);- }, e.getStart = bI((e) => [+ return Math.min(Math.max(e.columnDef.minSize ?? KI.minSize, n ?? e.columnDef.size ?? KI.size), e.columnDef.maxSize ?? KI.maxSize);+ }, e.getStart = DI((e) => [e,- UI(t, e),+ XI(t, e),t.getState().columnSizing- ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), xI(t.options, "debugColumns", "getStart")), e.getAfter = bI((e) => [+ ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), OI(t.options, "debugColumns", "getStart")), e.getAfter = DI((e) => [e,- UI(t, e),+ XI(t, e),t.getState().columnSizing- ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), xI(t.options, "debugColumns", "getAfter")), e.resetSize = () => {+ ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), OI(t.options, "debugColumns", "getAfter")), e.resetSize = () => {t.setColumnSizing((t) => {let { [e.id]: n, ...r } = t;return r;@@ -41417,8 +41191,8 @@ var zI = {}, e.getResizeHandler = (n) => {let r = t.getColumn(e.column.id), i = r?.getCanResize();return (a) => {- if (!r || !i || (a.persist == null || a.persist(), HI(a) && a.touches && a.touches.length > 1)) return;- let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = HI(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {+ if (!r || !i || (a.persist == null || a.persist(), YI(a) && a.touches && a.touches.length > 1)) return;+ let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = YI(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {typeof n == "number" && (t.setColumnSizingInfo((e) => {let r = t.options.columnResizeDirection === "rtl" ? -1 : 1, i = (n - (e?.startOffset ?? 0)) * r, a = Math.max(i / (e?.startSize ?? 0), -.999999);return e.columnSizingStart.forEach((e) => {@@ -41443,7 +41217,7 @@ var zI = {deltaPercentage: null,columnSizingStart: []}));- }, p = mle(n), m = {+ }, p = $ce(n), m = {moveHandler: (e) => d(e.clientX),upHandler: (e) => {p?.removeEventListener("mousemove", m.moveHandler), p?.removeEventListener("mouseup", m.upHandler), f(e.clientX);@@ -41453,8 +41227,8 @@ var zI = {upHandler: (e) => {p?.removeEventListener("touchmove", h.moveHandler), p?.removeEventListener("touchend", h.upHandler), e.cancelable && (e.preventDefault(), e.stopPropagation()), f(e.touches[0]?.clientX);}- }, g = gle() ? { passive: !1 } : !1;- HI(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({+ }, g = tle() ? { passive: !1 } : !1;+ YI(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({...e,startOffset: c,startSize: o,@@ -41470,12 +41244,12 @@ var zI = {e.setColumnSizing = (t) => e.options.onColumnSizingChange == null ? void 0 : e.options.onColumnSizingChange(t), e.setColumnSizingInfo = (t) => e.options.onColumnSizingInfoChange == null ? void 0 : e.options.onColumnSizingInfoChange(t), e.resetColumnSizing = (t) => {e.setColumnSizing(t ? {} : e.initialState.columnSizing ?? {});}, e.resetHeaderSizeInfo = (t) => {- e.setColumnSizingInfo(t ? BI() : e.initialState.columnSizingInfo ?? BI());+ e.setColumnSizingInfo(t ? qI() : e.initialState.columnSizingInfo ?? qI());}, e.getTotalSize = () => e.getHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getLeftTotalSize = () => e.getLeftHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getCenterTotalSize = () => e.getCenterHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getRightTotalSize = () => e.getRightHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0;}-}, VI = null;-function gle() {- if (typeof VI == "boolean") return VI;+}, JI = null;+function tle() {+ if (typeof JI == "boolean") return JI;let e = !1;try {let t = { get passive() {@@ -41485,17 +41259,17 @@ function gle() {} catch {e = !1;}- return VI = e, VI;+ return JI = e, JI;}-function HI(e) {+function YI(e) {return e.type === "touchstart";}-var _le = {+var nle = {getInitialState: (e) => ({columnVisibility: {},...e}),- getDefaultOptions: (e) => ({ onColumnVisibilityChange: vI("columnVisibility", e) }),+ getDefaultOptions: (e) => ({ onColumnVisibilityChange: TI("columnVisibility", e) }),createColumn: (e, t) => {e.toggleVisibility = (n) => {e.getCanHide() && t.setColumnVisibility((t) => ({@@ -41510,7 +41284,7 @@ var _le = {};},createRow: (e, t) => {- e._getAllVisibleCells = bI(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), xI(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = bI(() => [+ e._getAllVisibleCells = DI(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), OI(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = DI(() => [e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()@@ -41518,10 +41292,10 @@ var _le = {...e,...t,...n- ], xI(t.options, "debugRows", "getVisibleCells"));+ ], OI(t.options, "debugRows", "getVisibleCells"));},createTable: (e) => {- let t = (t, n) => bI(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), xI(e.options, "debugColumns", t));+ let t = (t, n) => DI(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), OI(e.options, "debugColumns", t));e.getVisibleFlatColumns = t("getVisibleFlatColumns", () => e.getAllFlatColumns()), e.getVisibleLeafColumns = t("getVisibleLeafColumns", () => e.getAllLeafColumns()), e.getLeftVisibleLeafColumns = t("getLeftVisibleLeafColumns", () => e.getLeftLeafColumns()), e.getRightVisibleLeafColumns = t("getRightVisibleLeafColumns", () => e.getRightLeafColumns()), e.getCenterVisibleLeafColumns = t("getCenterVisibleLeafColumns", () => e.getCenterLeafColumns()), e.setColumnVisibility = (t) => e.options.onColumnVisibilityChange == null ? void 0 : e.options.onColumnVisibilityChange(t), e.resetColumnVisibility = (t) => {e.setColumnVisibility(t ? {} : e.initialState.columnVisibility ?? {});}, e.toggleAllColumnsVisible = (t) => {@@ -41534,20 +41308,20 @@ var _le = {};}};-function UI(e, t) {+function XI(e, t) {return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();}-var vle = { createTable: (e) => {+var rle = { createTable: (e) => {e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {if (e._getGlobalFacetedMinMaxValues) return e._getGlobalFacetedMinMaxValues();};-} }, yle = {+} }, ile = {getInitialState: (e) => ({globalFilter: void 0,...e}),getDefaultOptions: (e) => ({- onGlobalFilterChange: vI("globalFilter", e),+ onGlobalFilterChange: TI("globalFilter", e),globalFilterFn: "auto",getColumnCanGlobalFilter: (t) => {var n;@@ -41559,22 +41333,22 @@ var vle = { createTable: (e) => {e.getCanGlobalFilter = () => (e.columnDef.enableGlobalFilter ?? !0) && (t.options.enableGlobalFilter ?? !0) && (t.options.enableFilters ?? !0) && ((t.options.getColumnCanGlobalFilter == null ? void 0 : t.options.getColumnCanGlobalFilter(e)) ?? !0) && !!e.accessorFn;},createTable: (e) => {- e.getGlobalAutoFilterFn = () => PI.includesString, e.getGlobalFilterFn = () => {+ e.getGlobalAutoFilterFn = () => VI.includesString, e.getGlobalFilterFn = () => {let { globalFilterFn: t } = e.options;- return yI(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? PI[t];+ return EI(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? VI[t];}, e.setGlobalFilter = (t) => {e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(t);}, e.resetGlobalFilter = (t) => {e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter);};}-}, ble = {+}, ale = {getInitialState: (e) => ({expanded: {},...e}),getDefaultOptions: (e) => ({- onExpandedChange: vI("expanded", e),+ onExpandedChange: TI("expanded", e),paginateExpandedRows: !0}),createTable: (e) => {@@ -41645,18 +41419,18 @@ var vle = { createTable: (e) => {};};}-}, WI = 0, GI = 10, KI = () => ({- pageIndex: WI,- pageSize: GI-}), xle = {+}, ZI = 0, QI = 10, $I = () => ({+ pageIndex: ZI,+ pageSize: QI+}), ole = {getInitialState: (e) => ({...e,pagination: {- ...KI(),+ ...$I(),...e?.pagination}}),- getDefaultOptions: (e) => ({ onPaginationChange: vI("pagination", e) }),+ getDefaultOptions: (e) => ({ onPaginationChange: TI("pagination", e) }),createTable: (e) => {let t = !1, n = !1;e._autoResetPageIndex = () => {@@ -41672,11 +41446,11 @@ var vle = { createTable: (e) => {e.resetPageIndex(), n = !1;});}- }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => _I(t, e)), e.resetPagination = (t) => {- e.setPagination(t ? KI() : e.initialState.pagination ?? KI());+ }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => wI(t, e)), e.resetPagination = (t) => {+ e.setPagination(t ? $I() : e.initialState.pagination ?? $I());}, e.setPageIndex = (t) => {e.setPagination((n) => {- let r = _I(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;+ let r = wI(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@@ -41684,13 +41458,13 @@ var vle = { createTable: (e) => {});}, e.resetPageIndex = (t) => {var n;- e.setPageIndex(t ? WI : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? WI);+ e.setPageIndex(t ? ZI : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? ZI);}, e.resetPageSize = (t) => {var n;- e.setPageSize(t ? GI : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? GI);+ e.setPageSize(t ? QI : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? QI);}, e.setPageSize = (t) => {e.setPagination((e) => {- let n = Math.max(1, _I(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);+ let n = Math.max(1, wI(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);return {...e,pageIndex: i,@@ -41698,28 +41472,28 @@ var vle = { createTable: (e) => {};});}, e.setPageCount = (t) => e.setPagination((n) => {- let r = _I(t, e.options.pageCount ?? -1);+ let r = wI(t, e.options.pageCount ?? -1);return typeof r == "number" && (r = Math.max(-1, r)), {...n,pageCount: r};- }), e.getPageOptions = bI(() => [e.getPageCount()], (e) => {+ }), e.getPageOptions = DI(() => [e.getPageCount()], (e) => {let t = [];return e && e > 0 && (t = [...Array(e)].fill(null).map((e, t) => t)), t;- }, xI(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {+ }, OI(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {let { pageIndex: t } = e.getState().pagination, n = e.getPageCount();return n === -1 || n !== 0 && t < n - 1;}, e.previousPage = () => e.setPageIndex((e) => e - 1), e.nextPage = () => e.setPageIndex((e) => e + 1), e.firstPage = () => e.setPageIndex(0), e.lastPage = () => e.setPageIndex(e.getPageCount() - 1), e.getPrePaginationRowModel = () => e.getExpandedRowModel(), e.getPaginationRowModel = () => (!e._getPaginationRowModel && e.options.getPaginationRowModel && (e._getPaginationRowModel = e.options.getPaginationRowModel(e)), e.options.manualPagination || !e._getPaginationRowModel ? e.getPrePaginationRowModel() : e._getPaginationRowModel()), e.getPageCount = () => e.options.pageCount ?? Math.ceil(e.getRowCount() / e.getState().pagination.pageSize), e.getRowCount = () => e.options.rowCount ?? e.getPrePaginationRowModel().rows.length;}-}, qI = () => ({+}, eL = () => ({top: [],bottom: []-}), Sle = {+}), sle = {getInitialState: (e) => ({- rowPinning: qI(),+ rowPinning: eL(),...e}),- getDefaultOptions: (e) => ({ onRowPinningChange: vI("rowPinning", e) }),+ getDefaultOptions: (e) => ({ onRowPinningChange: TI("rowPinning", e) }),createRow: (e, t) => {e.pin = (n, r, i) => {let a = r ? e.getLeafRows().map((e) => {@@ -41758,7 +41532,7 @@ var vle = { createTable: (e) => {};},createTable: (e) => {- e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? qI() : e.initialState?.rowPinning ?? qI()), e.getIsSomeRowsPinned = (t) => {+ e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? eL() : e.initialState?.rowPinning ?? eL()), e.getIsSomeRowsPinned = (t) => {let n = e.getState().rowPinning;return t ? !!n[t]?.length : !!(n.top?.length || n.bottom?.length);}, e._getPinnedRows = (t, n, r) => (e.options.keepPinnedRows ?? !0 ? (n ?? []).map((t) => {@@ -41767,22 +41541,22 @@ var vle = { createTable: (e) => {}) : (n ?? []).map((e) => t.find((t) => t.id === e))).filter(Boolean).map((e) => ({...e,position: r- })), e.getTopRows = bI(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), xI(e.options, "debugRows", "getTopRows")), e.getBottomRows = bI(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), xI(e.options, "debugRows", "getBottomRows")), e.getCenterRows = bI(() => [+ })), e.getTopRows = DI(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), OI(e.options, "debugRows", "getTopRows")), e.getBottomRows = DI(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), OI(e.options, "debugRows", "getBottomRows")), e.getCenterRows = DI(() => [e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom], (e, t, n) => {let r = /* @__PURE__ */ new Set([...t ?? [], ...n ?? []]);return e.filter((e) => !r.has(e.id));- }, xI(e.options, "debugRows", "getCenterRows"));+ }, OI(e.options, "debugRows", "getCenterRows"));}-}, Cle = {+}, cle = {getInitialState: (e) => ({rowSelection: {},...e}),getDefaultOptions: (e) => ({- onRowSelectionChange: vI("rowSelection", e),+ onRowSelectionChange: TI("rowSelection", e),enableRowSelection: !0,enableMultiRowSelection: !0,enableSubRowSelection: !0@@ -41801,21 +41575,21 @@ var vle = { createTable: (e) => {}, e.toggleAllPageRowsSelected = (t) => e.setRowSelection((n) => {let r = t === void 0 ? !e.getIsAllPageRowsSelected() : t, i = { ...n };return e.getRowModel().rows.forEach((t) => {- JI(i, t.id, r, !0, e);+ tL(i, t.id, r, !0, e);}), i;- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = bI(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? YI(e, n) : {+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = DI(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? nL(e, n) : {rows: [],flatRows: [],rowsById: {}- }, xI(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = bI(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? YI(e, n) : {+ }, OI(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = DI(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? nL(e, n) : {rows: [],flatRows: [],rowsById: {}- }, xI(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = bI(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? YI(e, n) : {+ }, OI(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = DI(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? nL(e, n) : {rows: [],flatRows: [],rowsById: {}- }, xI(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {+ }, OI(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {let t = e.getFilteredRowModel().flatRows, { rowSelection: n } = e.getState(), r = !!(t.length && Object.keys(n).length);return r && t.some((e) => e.getCanSelect() && !n[e.id]) && (r = !1), r;}, e.getIsAllPageRowsSelected = () => {@@ -41839,17 +41613,17 @@ var vle = { createTable: (e) => {t.setRowSelection((a) => {if (n = n === void 0 ? !i : n, e.getCanSelect() && i === n) return a;let o = { ...a };- return JI(o, e.id, n, r?.selectChildren ?? !0, t), o;+ return tL(o, e.id, n, r?.selectChildren ?? !0, t), o;});}, e.getIsSelected = () => {let { rowSelection: n } = t.getState();- return XI(e, n);+ return rL(e, n);}, e.getIsSomeSelected = () => {let { rowSelection: n } = t.getState();- return ZI(e, n) === "some";+ return iL(e, n) === "some";}, e.getIsAllSubRowsSelected = () => {let { rowSelection: n } = t.getState();- return ZI(e, n) === "all";+ return iL(e, n) === "all";}, e.getCanSelect = () => typeof t.options.enableRowSelection == "function" ? t.options.enableRowSelection(e) : t.options.enableRowSelection ?? !0, e.getCanSelectSubRows = () => typeof t.options.enableSubRowSelection == "function" ? t.options.enableSubRowSelection(e) : t.options.enableSubRowSelection ?? !0, e.getCanMultiSelect = () => typeof t.options.enableMultiRowSelection == "function" ? t.options.enableMultiRowSelection(e) : t.options.enableMultiRowSelection ?? !0, e.getToggleSelectedHandler = () => {let t = e.getCanSelect();return (n) => {@@ -41857,1779 +41631,3392 @@ var vle = { createTable: (e) => {};};}-}, JI = (e, t, n, r, i) => {- var a;- let o = i.getRow(t, !0);- n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => JI(e, t.id, n, r, i));-};-function YI(e, t) {- let n = e.getState().rowSelection, r = [], i = {}, a = function(e, t) {- return e.map((e) => {- var t;- let o = XI(e, n);- if (o && (r.push(e), i[e.id] = e), (t = e.subRows) != null && t.length && (e = {- ...e,- subRows: a(e.subRows)- }), o) return e;- }).filter(Boolean);- };+}, tL = (e, t, n, r, i) => {+ var a;+ let o = i.getRow(t, !0);+ n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => tL(e, t.id, n, r, i));+};+function nL(e, t) {+ let n = e.getState().rowSelection, r = [], i = {}, a = function(e, t) {+ return e.map((e) => {+ var t;+ let o = rL(e, n);+ if (o && (r.push(e), i[e.id] = e), (t = e.subRows) != null && t.length && (e = {+ ...e,+ subRows: a(e.subRows)+ }), o) return e;+ }).filter(Boolean);+ };+ return {+ rows: a(t.rows),+ flatRows: r,+ rowsById: i+ };+}+function rL(e, t) {+ return t[e.id] ?? !1;+}+function iL(e, t, n) {+ var r;+ if (!((r = e.subRows) != null && r.length)) return !1;+ let i = !0, a = !1;+ return e.subRows.forEach((e) => {+ if (!(a && !i) && (e.getCanSelect() && (rL(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {+ let n = iL(e, t);+ n === "all" ? a = !0 : (n === "some" && (a = !0), i = !1);+ }+ }), i ? "all" : a ? "some" : !1;+}+var aL = /([0-9]+)/gm, lle = (e, t, n) => cL(sL(e.getValue(n)).toLowerCase(), sL(t.getValue(n)).toLowerCase()), ule = (e, t, n) => cL(sL(e.getValue(n)), sL(t.getValue(n))), dle = (e, t, n) => oL(sL(e.getValue(n)).toLowerCase(), sL(t.getValue(n)).toLowerCase()), fle = (e, t, n) => oL(sL(e.getValue(n)), sL(t.getValue(n))), ple = (e, t, n) => {+ let r = e.getValue(n), i = t.getValue(n);+ return r > i ? 1 : r < i ? -1 : 0;+}, mle = (e, t, n) => oL(e.getValue(n), t.getValue(n));+function oL(e, t) {+ return e === t ? 0 : e > t ? 1 : -1;+}+function sL(e) {+ return typeof e == "number" ? isNaN(e) || e === Infinity || e === -Infinity ? "" : String(e) : typeof e == "string" ? e : "";+}+function cL(e, t) {+ let n = e.split(aL).filter(Boolean), r = t.split(aL).filter(Boolean);+ for (; n.length && r.length;) {+ let e = n.shift(), t = r.shift(), i = parseInt(e, 10), a = parseInt(t, 10), o = [i, a].sort();+ if (isNaN(o[0])) {+ if (e > t) return 1;+ if (t > e) return -1;+ continue;+ }+ if (isNaN(o[1])) return isNaN(i) ? -1 : 1;+ if (i > a) return 1;+ if (a > i) return -1;+ }+ return n.length - r.length;+}+var lL = {+ alphanumeric: lle,+ alphanumericCaseSensitive: ule,+ text: dle,+ textCaseSensitive: fle,+ datetime: ple,+ basic: mle+}, hle = [+ Gce,+ nle,+ Zce,+ Qce,+ qce,+ Jce,+ rle,+ ile,+ {+ getInitialState: (e) => ({+ sorting: [],+ ...e+ }),+ getDefaultColumnDef: () => ({+ sortingFn: "auto",+ sortUndefined: 1+ }),+ getDefaultOptions: (e) => ({+ onSortingChange: TI("sorting", e),+ isMultiSortEvent: (e) => e.shiftKey+ }),+ createColumn: (e, t) => {+ e.getAutoSortingFn = () => {+ let n = t.getFilteredRowModel().flatRows.slice(10), r = !1;+ for (let t of n) {+ let n = t?.getValue(e.id);+ if (Object.prototype.toString.call(n) === "[object Date]") return lL.datetime;+ if (typeof n == "string" && (r = !0, n.split(aL).length > 1)) return lL.alphanumeric;+ }+ return r ? lL.text : lL.basic;+ }, e.getAutoSortDir = () => typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id) == "string" ? "asc" : "desc", e.getSortingFn = () => {+ if (!e) throw Error();+ return EI(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? lL[e.columnDef.sortingFn];+ }, e.toggleSorting = (n, r) => {+ let i = e.getNextSortingOrder(), a = n != null;+ t.setSorting((o) => {+ let s = o?.find((t) => t.id === e.id), c = o?.findIndex((t) => t.id === e.id), l = [], u, d = a ? n : i === "desc";+ return u = o != null && o.length && e.getCanMultiSort() && r ? s ? "toggle" : "add" : o != null && o.length && c !== o.length - 1 ? "replace" : s ? "toggle" : "replace", u === "toggle" && (a || i || (u = "remove")), u === "add" ? (l = [...o, {+ id: e.id,+ desc: d+ }], l.splice(0, l.length - (t.options.maxMultiSortColCount ?? 2 ** 53 - 1))) : l = u === "toggle" ? o.map((t) => t.id === e.id ? {+ ...t,+ desc: d+ } : t) : u === "remove" ? o.filter((t) => t.id !== e.id) : [{+ id: e.id,+ desc: d+ }], l;+ });+ }, e.getFirstSortDir = () => e.columnDef.sortDescFirst ?? t.options.sortDescFirst ?? e.getAutoSortDir() === "desc" ? "desc" : "asc", e.getNextSortingOrder = (n) => {+ let r = e.getFirstSortDir(), i = e.getIsSorted();+ return i ? i !== r && (t.options.enableSortingRemoval ?? !0) && (!n || (t.options.enableMultiRemove ?? !0)) ? !1 : i === "desc" ? "asc" : "desc" : r;+ }, e.getCanSort = () => (e.columnDef.enableSorting ?? !0) && (t.options.enableSorting ?? !0) && !!e.accessorFn, e.getCanMultiSort = () => e.columnDef.enableMultiSort ?? t.options.enableMultiSort ?? !!e.accessorFn, e.getIsSorted = () => {+ let n = t.getState().sorting?.find((t) => t.id === e.id);+ return n ? n.desc ? "desc" : "asc" : !1;+ }, e.getSortIndex = () => t.getState().sorting?.findIndex((t) => t.id === e.id) ?? -1, e.clearSorting = () => {+ t.setSorting((t) => t != null && t.length ? t.filter((t) => t.id !== e.id) : []);+ }, e.getToggleSortingHandler = () => {+ let n = e.getCanSort();+ return (r) => {+ n && (r.persist == null || r.persist(), e.toggleSorting == null || e.toggleSorting(void 0, e.getCanMultiSort() ? t.options.isMultiSortEvent == null ? void 0 : t.options.isMultiSortEvent(r) : !1));+ };+ };+ },+ createTable: (e) => {+ e.setSorting = (t) => e.options.onSortingChange == null ? void 0 : e.options.onSortingChange(t), e.resetSorting = (t) => {+ e.setSorting(t ? [] : e.initialState?.sorting ?? []);+ }, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());+ }+ },+ Yce,+ ale,+ ole,+ sle,+ cle,+ ele+];+function gle(e) {+ let t = [...hle, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {+ ...r,+ ...e+ }, a = { ...e.initialState ?? {} };+ n._features.forEach((e) => {+ a = (e.getInitialState == null ? void 0 : e.getInitialState(a)) ?? a;+ });+ let o = [], s = !1, c = {+ _features: t,+ options: {+ ...r,+ ...e+ },+ initialState: a,+ _queue: (e) => {+ o.push(e), s || (s = !0, Promise.resolve().then(() => {+ for (; o.length;) o.shift()();+ s = !1;+ }).catch((e) => setTimeout(() => {+ throw e;+ })));+ },+ reset: () => {+ n.setState(n.initialState);+ },+ setOptions: (e) => {+ let t = wI(e, n.options);+ n.options = i(t);+ },+ getState: () => n.options.state,+ setState: (e) => {+ n.options.onStateChange == null || n.options.onStateChange(e);+ },+ _getRowId: (e, t, r) => (n.options.getRowId == null ? void 0 : n.options.getRowId(e, t, r)) ?? `${r ? [r.id, t].join(".") : t}`,+ getCoreRowModel: () => (n._getCoreRowModel ||= n.options.getCoreRowModel(n), n._getCoreRowModel()),+ getRowModel: () => n.getPaginationRowModel(),+ getRow: (e, t) => {+ let r = (t ? n.getPrePaginationRowModel() : n.getRowModel()).rowsById[e];+ if (!r && (r = n.getCoreRowModel().rowsById[e], !r)) throw Error();+ return r;+ },+ _getDefaultColumnDef: DI(() => [n.options.defaultColumn], (e) => (e ??= {}, {+ header: (e) => {+ let t = e.header.column.columnDef;+ return t.accessorKey ? t.accessorKey : t.accessorFn ? t.id : null;+ },+ cell: (e) => {+ var t;+ return ((t = e.renderValue()) == null || t.toString == null ? void 0 : t.toString()) ?? null;+ },+ ...n._features.reduce((e, t) => Object.assign(e, t.getDefaultColumnDef == null ? void 0 : t.getDefaultColumnDef()), {}),+ ...e+ }), OI(e, "debugColumns", "_getDefaultColumnDef")),+ _getColumnDefs: () => n.options.columns,+ getAllColumns: DI(() => [n._getColumnDefs()], (e) => {+ let t = function(e, r, i) {+ return i === void 0 && (i = 0), e.map((e) => {+ let a = Wce(n, e, i, r), o = e;+ return a.columns = o.columns ? t(o.columns, a, i + 1) : [], a;+ });+ };+ return t(e);+ }, OI(e, "debugColumns", "getAllColumns")),+ getAllFlatColumns: DI(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), OI(e, "debugColumns", "getAllFlatColumns")),+ _getAllFlatColumnsById: DI(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), OI(e, "debugColumns", "getAllFlatColumnsById")),+ getAllLeafColumns: DI(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), OI(e, "debugColumns", "getAllLeafColumns")),+ getColumn: (e) => n._getAllFlatColumnsById()[e]+ };+ Object.assign(n, c);+ for (let e = 0; e < n._features.length; e++) {+ let t = n._features[e];+ t == null || t.createTable == null || t.createTable(n);+ }+ return n;+}+function uL() {+ return (e) => DI(() => [e.options.data], (t) => {+ let n = {+ rows: [],+ flatRows: [],+ rowsById: {}+ }, r = function(t, i, a) {+ i === void 0 && (i = 0);+ let o = [];+ for (let c = 0; c < t.length; c++) {+ let l = Kce(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);+ if (n.flatRows.push(l), n.rowsById[l.id] = l, o.push(l), e.options.getSubRows) {+ var s;+ l.originalSubRows = e.options.getSubRows(t[c], c), (s = l.originalSubRows) != null && s.length && (l.subRows = r(l.originalSubRows, i + 1, l));+ }+ }+ return o;+ };+ return n.rows = r(t), n;+ }, OI(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));+}+function _le(e) {+ let t = [], n = (e) => {+ var r;+ t.push(e), (r = e.subRows) != null && r.length && e.getIsExpanded() && e.subRows.forEach(n);+ };+ return e.rows.forEach(n), {+ rows: t,+ flatRows: e.flatRows,+ rowsById: e.rowsById+ };+}+function vle(e) {+ return (e) => DI(() => [+ e.getState().pagination,+ e.getPrePaginationRowModel(),+ e.options.paginateExpandedRows ? void 0 : e.getState().expanded+ ], (t, n) => {+ if (!n.rows.length) return n;+ let { pageSize: r, pageIndex: i } = t, { rows: a, flatRows: o, rowsById: s } = n, c = r * i, l = c + r;+ a = a.slice(c, l);+ let u;+ u = e.options.paginateExpandedRows ? {+ rows: a,+ flatRows: o,+ rowsById: s+ } : _le({+ rows: a,+ flatRows: o,+ rowsById: s+ }), u.flatRows = [];+ let d = (e) => {+ u.flatRows.push(e), e.subRows.length && e.subRows.forEach(d);+ };+ return u.rows.forEach(d), u;+ }, OI(e.options, "debugTable", "getPaginationRowModel"));+}+//#endregion+//#region node_modules/@tanstack/react-table/build/lib/index.mjs+function dL(e, t) {+ return e ? yle(e) ? /*#__PURE__*/ I.createElement(e, t) : e : null;+}+function yle(e) {+ return ble(e) || typeof e == "function" || xle(e);+}+function ble(e) {+ return typeof e == "function" && (() => {+ let t = Object.getPrototypeOf(e);+ return t.prototype && t.prototype.isReactComponent;+ })();+}+function xle(e) {+ return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);+}+function fL(e) {+ let t = {+ state: {},+ onStateChange: () => {},+ renderFallbackValue: null,+ ...e+ }, [n] = I.useState(() => ({ current: gle(t) })), [r, i] = I.useState(() => n.current.initialState);+ return n.current.setOptions((t) => ({+ ...t,+ ...e,+ state: {+ ...r,+ ...e.state+ },+ onStateChange: (t) => {+ i(t), e.onStateChange == null || e.onStateChange(t);+ }+ })), n.current;+}+//#endregion+//#region src/react/boardui/components/base/switch/switch.tsx+var Sle = ZC({+ sm: {+ track: "h-4 w-7",+ trackRadius: {+ pill: "rounded-full",+ rectangle: "rounded-[3px]"+ },+ onShadow: "shadow-[inset_0_1px_0_0_rgb(255_255_255/0.25),inset_0_0_0_0.5px_var(--color-accent-500)]",+ thumb: "size-3",+ thumbRadius: {+ pill: "rounded-full",+ rectangle: "rounded-[1px]"+ },+ offset: "left-0.5 top-0.5",+ travel: "translate-x-3",+ chip: "size-[5px] border-[0.25px] shadow-[0_2px_2px_0_rgb(0_0_0/0.03)]",+ chipRadius: {+ pill: "rounded-full",+ rectangle: "rounded-[0.5px]"+ }+ },+ md: {+ track: "h-6 w-[42px]",+ trackRadius: {+ pill: "rounded-full",+ rectangle: "rounded-[4.5px]"+ },+ onShadow: "shadow-[inset_0_1.5px_0_0_rgb(255_255_255/0.25),inset_0_0_0_0.75px_var(--color-accent-500)]",+ thumb: "size-[18px]",+ thumbRadius: {+ pill: "rounded-full",+ rectangle: "rounded-[1.5px]"+ },+ offset: "left-[3px] top-[3px]",+ travel: "translate-x-[18px]",+ chip: "size-[7.5px] border-[0.375px] shadow-[0_3px_3px_0_rgb(0_0_0/0.03)]",+ chipRadius: {+ pill: "rounded-full",+ rectangle: "rounded-[0.75px]"+ }+ },+ lg: {+ track: "h-8 w-14",+ trackRadius: {+ pill: "rounded-full",+ rectangle: "rounded-md"+ },+ onShadow: "shadow-checkbox-selected",+ thumb: "size-6",+ thumbRadius: {+ pill: "rounded-full",+ rectangle: "rounded-xs"+ },+ offset: "left-1 top-1",+ travel: "translate-x-6",+ chip: "size-[10px] border-[0.5px] shadow-[0_4px_4px_0_rgb(0_0_0/0.03)]",+ chipRadius: {+ pill: "rounded-full",+ rectangle: "rounded-[1px]"+ }+ }+});+function Cle({ state: e, size: t = "md", shape: n = "pill" }) {+ let r = Sle[t];+ return /* @__PURE__ */ (0, L.jsx)("span", {+ "aria-hidden": !0,+ className: XC("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? XC("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),+ children: /* @__PURE__ */ (0, L.jsx)("span", {+ className: XC("absolute flex items-center justify-center", "bg-linear-to-b from-control-indicator-background from-[43.837%] to-control-indicator-background-subtle", "shadow-[0_3px_3px_0_rgb(0_0_0/0.03),0_0.75px_0_0_rgb(0_0_0/0.05)]", "transition-transform duration-200 ease", r.thumb, r.thumbRadius[n], r.offset, e.isSelected && r.travel),+ children: /* @__PURE__ */ (0, L.jsx)("span", { className: XC("border-solid bg-linear-to-t from-[43.837%]", r.chip, r.chipRadius[n], e.isSelected ? "border-accent-600 from-switch-on-chip-start to-switch-on-chip-end" : "border-border-button-default/50 from-switch-off-chip-start to-switch-off-chip-end") })+ })+ });+}+function pL({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {+ return /* @__PURE__ */ (0, L.jsx)(vae, {+ ref: i,+ ...a,+ className: (t) => XC("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, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Cle, {+ state: e,+ size: n,+ shape: r+ }), t != null && t !== !1 && /* @__PURE__ */ (0, L.jsx)("span", {+ className: "text-body-medium text-text-primary",+ children: t+ })] })+ });+}+//#endregion+//#region src/react/components/legacy-avatar.ts+var mL = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover";+//#endregion+//#region src/react/components/selection-dock.tsx+function hL({ children: e, count: t, label: n }) {+ return /* @__PURE__ */ (0, L.jsxs)("div", {+ role: "group",+ "aria-label": n,+ "data-selection-dock": !0,+ "data-glass-pane": "",+ children: [/* @__PURE__ */ (0, L.jsx)("span", {+ role: "status",+ className: "px-2 text-body-2-regular whitespace-nowrap text-text-primary",+ children: t+ }), e]+ });+}+//#endregion+//#region src/react/follow-manage/add-feed.tsx+var wle = "输入女优名,到 JavDB 找她的演员页";+function Tle(e, t) {+ let n = /* @__PURE__ */ new Map();+ for (let r of e.candidates) t.has(r.id) && r.held_by && n.set(r.held_by.id, r.held_by.name);+ if (n.size > 1) return {+ text: `所勾的卡分属账本里不同的人:${[...n.values()].join("、")},先去合并再订`,+ blocked: !0+ };+ let [r] = n.values();+ return r ? {+ text: `会登记到「${r}」名下`,+ blocked: !1+ } : e.known ? {+ text: `会登记到账本里的「${e.known.name}」名下`,+ blocked: !1+ } : {+ text: `账本里还没有「${e.q}」,会新建一位`,+ blocked: !1+ };+}+function Ele({ card: e, picked: t, onPick: n }) {+ return /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "flex flex-wrap items-center gap-2",+ children: [/* @__PURE__ */ (0, L.jsx)(oj, {+ isSelected: t,+ onChange: n,+ children: /* @__PURE__ */ (0, L.jsxs)("span", {+ className: "flex min-w-0 flex-wrap items-center gap-1.5",+ children: [+ /* @__PURE__ */ (0, L.jsx)("span", {+ className: "min-w-0 break-words",+ children: e.names.join("、")+ }),+ e.record ? /* @__PURE__ */ (0, L.jsx)($C, {+ variant: "caption",+ color: "neutral",+ children: e.record+ }) : null,+ e.held_by ? /* @__PURE__ */ (0, L.jsx)("small", {+ className: "text-caption-1-regular text-text-secondary",+ children: `已在「${e.held_by.name}」名下`+ }) : null+ ]+ })+ }), /* @__PURE__ */ (0, L.jsx)(kA, {+ href: e.url,+ children: e.id+ })]+ });+}+function Dle({ readOnly: e, toast: t, onAdded: n }) {+ let [r, i] = (0, I.useState)(""), [a, o] = (0, I.useState)(null), [s, c] = (0, I.useState)(/* @__PURE__ */ new Set()), l = dw(), u = () => {+ let t = r.trim();+ !t || e || l.run("lookup", (e) => ase(t, e), (e) => {+ o(e), c(new Set(e.suggested));+ });+ }, d = (e) => {+ e.key === "Enter" && !e.nativeEvent.isComposing && (e.preventDefault(), u());+ }, f = () => {+ o(null), c(/* @__PURE__ */ new Set()), l.setError("");+ }, p = () => {+ a && l.run("follow", (e) => ose(a.q, [...s], e), (e) => {+ t(e.created ? `已新建「${e.entity_name}」并订阅她的新作` : `已订阅「${e.entity_name}」的新作`), i(""), f(), n();+ });+ }, m = a ? Tle(a, s) : null;+ return /* @__PURE__ */ (0, L.jsxs)("div", {+ className: aw({+ padding: "none",+ className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"+ }),+ children: [+ /* @__PURE__ */ (0, L.jsx)("h3", {+ className: "text-title-2-medium text-text-primary",+ children: "添加 JAV 订阅"+ }),+ /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "flex flex-wrap items-end gap-2",+ children: [/* @__PURE__ */ (0, L.jsx)("div", {+ className: "min-w-64 grow",+ children: /* @__PURE__ */ (0, L.jsx)(Oj, {+ "aria-label": "女优名",+ placeholder: wle,+ value: r,+ leadingIcon: QS,+ isDisabled: e,+ onChange: i,+ onKeyDown: d+ })+ }), /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "primary",+ disabled: e || !r.trim(),+ ...Y(l.busy === "lookup"),+ onClick: u,+ children: "查找"+ })]+ }),+ l.error ? /* @__PURE__ */ (0, L.jsx)(J, {+ tone: "error",+ title: "这一次没有完成",+ children: l.error+ }) : null,+ a ? /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "flex flex-col gap-3",+ children: [+ /* @__PURE__ */ (0, L.jsx)(OA, { children: "JavDB 上的演员卡" }),+ a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, L.jsx)(Ele, {+ card: e,+ picked: s.has(e.id),+ onPick: (t) => c((n) => {+ let r = new Set(n);+ return t ? r.add(e.id) : r.delete(e.id), r;+ })+ }, e.id)) : /* @__PURE__ */ (0, L.jsx)(EA, { children: "JavDB 上没有搜到这个名字。" }),+ a.candidates.length ? /* @__PURE__ */ (0, L.jsx)(EA, {+ role: "status",+ children: s.size ? m.text : "勾选她的演员卡;有碼与無碼两条记录都是她的话,两张都勾。"+ }) : null,+ /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "flex flex-wrap items-center gap-2",+ children: [a.candidates.length ? /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "primary",+ size: "small",+ disabled: e || !s.size || m.blocked,+ ...Y(l.busy === "follow"),+ onClick: p,+ children: `添加订阅(${s.size})`+ }) : null, /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "secondary",+ size: "small",+ onClick: f,+ children: "关闭"+ })]+ })+ ]+ }) : null+ ]+ });+}+//#endregion+//#region src/react/follow-manage/feed-sources.tsx+var Ole = {+ select: "选择",+ name: "名称",+ kind: "类型",+ origin: "来源",+ status: "状态",+ interval: "频率",+ fetched: "上次拉取",+ fresh: "上次新增",+ actions: "操作"+}, kle = /* @__PURE__ */ new Set(["select", "actions"]), gL = () => X.invalidateQueries({+ queryKey: sF,+ exact: !0+}), _L = (e) => e.name || e.url, Ale = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;+function jle(e) {+ try {+ return new URL(e).hostname.replace(/^www\./, "");+ } catch {+ return e;+ }+}+function Mle({ source: e }) {+ return e.last_error ? /* @__PURE__ */ (0, L.jsx)($C, {+ variant: "caption",+ color: "rose",+ children: "拉取失败"+ }) : e.enabled ? /* @__PURE__ */ (0, L.jsx)($C, {+ variant: "caption",+ color: "lime",+ children: "正常"+ }) : /* @__PURE__ */ (0, L.jsx)($C, {+ variant: "caption",+ color: "neutral",+ children: "已暂停"+ });+}+function Nle({ source: e, avatarInner: t }) {+ let n = e.entity_id ? {+ id: e.entity_id,+ has_image: !!e.has_image,+ avatar_focus: e.avatar_focus+ } : null;+ return /* @__PURE__ */ (0, L.jsx)("span", {+ "aria-hidden": !0,+ className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary ${mL}`,+ dangerouslySetInnerHTML: { __html: t(_L(e), n, null, "performer") }+ });+}+var Ple = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";+function Fle(e) {+ let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();+ for (let { entity_id: r } of e) r !== null && (t.has(r) ? n.add(r) : t.add(r));+ return n;+}+function vL(e, t) {+ let n = e.length === 1 ? e[0] : null;+ return g({+ title: n ? "移除订阅源" : `移除 ${e.length} 条订阅源`,+ body: n ? `将移除订阅源「${_L(n)}」,之后不再拉取它的新作;已经拉到的新作保留。` : "将移除所选订阅源,之后不再拉取它们的新作;已经拉到的新作保留。",+ confirmLabel: n ? "移除订阅源" : "移除所选订阅源",+ danger: !0,+ onConfirm: t+ });+}+function Ile({ readOnly: e, toast: t, avatarInner: n }) {+ let r = Ft({+ queryKey: sF,+ queryFn: ({ signal: e }) => DF(e)+ }), i = dw(), a = r.data, o = (0, I.useMemo)(() => a?.sources ?? [], [a]), [s, c] = (0, I.useState)(/* @__PURE__ */ new Set());+ (0, I.useEffect)(() => {+ c((e) => {+ let t = new Set(o.map((e) => e.id)), n = new Set([...e].filter((e) => t.has(e)));+ return n.size === e.size ? e : n;+ });+ }, [o]);+ let u = It({+ mutationFn: async (e) => {+ let t = await l(e.ids, 4, async (t) => {+ e.action === "remove" ? await kF(t) : await OF(t, e.action === "enabled");+ });+ return {+ ...e,+ results: t+ };+ },+ onSuccess: (e) => {+ let n = e.results.filter((e) => !e.ok), r = e.ids.length - n.length;+ if (c(/* @__PURE__ */ new Set()), gL(), e.action === "remove" && r && t(`已移除 ${r} 条订阅源`), n.length) {+ let e = n[0];+ i.setError(`${n.length} 条没有写入:${e.ok ? "" : K(e.error)}`);+ }+ },+ onError: (e) => i.setError(K(e))+ }), d = (0, I.useMemo)(() => Fle(o), [o]), f = (0, I.useRef)({+ readOnly: e,+ avatarInner: n,+ shared: d,+ busy: null,+ toggle: () => {},+ fetch: () => {},+ remove: () => {}+ });+ f.current = {+ readOnly: e,+ avatarInner: n,+ shared: d,+ busy: i.busy,+ toggle: (e, t) => void i.run(`enabled-${e.id}`, (n) => OF(e.id, t, n), () => void gL()),+ fetch: (e) => void i.run(`check-${e.id}`, (t) => AF(t, [e.id]), () => void gL()),+ remove: (e) => void vL([e], async () => {+ await kF(e.id), t(`已移除订阅源「${_L(e)}」`), gL();+ })+ };+ let p = (0, I.useMemo)(() => {+ let e = CI(), t = (e) => () => Ole[e] || e;+ return [+ e.display({+ id: "select",+ header: t("select"),+ cell: (e) => /* @__PURE__ */ (0, L.jsx)(oj, {+ slot: null,+ isSelected: e.row.getIsSelected(),+ onChange: (t) => e.row.toggleSelected(t),+ "aria-label": `选择 ${_L(e.row.original)}`+ })+ }),+ e.accessor(_L, {+ id: "name",+ header: t("name"),+ cell: (e) => {+ let t = Ple(e.row.original, f.current.shared);+ return /* @__PURE__ */ (0, L.jsxs)("span", {+ className: "flex items-center gap-2 whitespace-nowrap text-body-medium text-text-primary",+ children: [+ /* @__PURE__ */ (0, L.jsx)(Nle, {+ source: e.row.original,+ avatarInner: f.current.avatarInner+ }),+ e.getValue(),+ t ? /* @__PURE__ */ (0, L.jsx)("span", {+ className: "text-body-2-regular text-text-secondary",+ title: `站上这一页挂在「${t}」名下`,+ children: t+ }) : null+ ]+ });+ }+ }),+ e.accessor((e) => e.kind_label, {+ id: "kind",+ header: t("kind"),+ cell: (e) => /* @__PURE__ */ (0, L.jsx)("span", {+ className: "whitespace-nowrap",+ children: e.getValue()+ })+ }),+ e.accessor((e) => e.url, {+ id: "origin",+ header: t("origin"),+ cell: (e) => /* @__PURE__ */ (0, L.jsx)("a", {+ href: e.getValue(),+ target: "_blank",+ rel: "noreferrer noopener",+ title: "打开来源页面",+ className: "text-text-primary underline-offset-2 hover:underline",+ children: jle(e.getValue())+ })+ }),+ e.display({+ id: "status",+ header: t("status"),+ cell: (e) => /* @__PURE__ */ (0, L.jsx)(Mle, { source: e.row.original })+ }),+ e.accessor((e) => Ale(e.interval_minutes), {+ id: "interval",+ header: t("interval"),+ cell: (e) => /* @__PURE__ */ (0, L.jsx)("span", {+ className: "whitespace-nowrap",+ children: e.getValue()+ })+ }),+ e.accessor((e) => e.last_fetched_at ? aE(e.last_fetched_at) : "还没拉过", {+ id: "fetched",+ header: t("fetched"),+ cell: (e) => /* @__PURE__ */ (0, L.jsx)("span", {+ className: "whitespace-nowrap tabular-nums",+ children: e.getValue()+ })+ }),+ e.accessor((e) => e.last_new_count, {+ id: "fresh",+ header: t("fresh"),+ cell: (e) => /* @__PURE__ */ (0, L.jsx)("span", {+ className: "whitespace-nowrap tabular-nums",+ children: `${e.getValue()} 条`+ })+ }),+ e.display({+ id: "actions",+ header: t("actions"),+ cell: (e) => /* @__PURE__ */ (0, L.jsxs)("span", {+ className: "flex items-center gap-1",+ children: [+ /* @__PURE__ */ (0, L.jsx)(pL, {+ "aria-label": `启用 ${_L(e.row.original)}`,+ isSelected: e.row.original.enabled,+ isDisabled: f.current.readOnly,+ onChange: (t) => f.current.toggle(e.row.original, t)+ }),+ /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "secondary",+ size: "xs",+ iconOnly: !0,+ leadingIcon: XS,+ "aria-label": `拉取 ${_L(e.row.original)}`,+ disabled: f.current.readOnly,+ ...Y(f.current.busy === `check-${e.row.original.id}`),+ onClick: () => f.current.fetch(e.row.original)+ }),+ /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "secondary",+ size: "xs",+ iconOnly: !0,+ leadingIcon: FS,+ "aria-label": `移除 ${_L(e.row.original)}`,+ disabled: f.current.readOnly,+ onClick: () => f.current.remove(e.row.original)+ })+ ]+ })+ })+ ];+ }, []), m = (0, I.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), h = fL({+ data: o,+ columns: p,+ getRowId: (e) => String(e.id),+ state: { rowSelection: m },+ enableRowSelection: !0,+ onRowSelectionChange: (e) => {+ let t = typeof e == "function" ? e(m) : e;+ c(new Set(Object.entries(t).filter(([, e]) => e).map(([e]) => Number(e))));+ },+ getCoreRowModel: uL()+ });+ if (!a) return r.error ? /* @__PURE__ */ (0, L.jsx)(J, {+ tone: "error",+ title: "打不开订阅源",+ children: K(r.error)+ }) : /* @__PURE__ */ (0, L.jsx)(EA, { children: "正在读订阅源。" });+ let g = () => void i.run("check", (e) => AF(e), () => void gL()), _ = (e) => c((t) => {+ let n = new Set(t);+ return n.has(e) ? n.delete(e) : n.add(e), n;+ }), v = o.filter((e) => s.has(e.id)), y = o.filter((e) => e.last_error);+ return /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "flex flex-col gap-3",+ children: [+ /* @__PURE__ */ (0, L.jsx)(Dle, {+ readOnly: e,+ toast: t,+ onAdded: () => void gL()+ }),+ /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "flex flex-wrap items-center justify-between gap-3",+ children: [/* @__PURE__ */ (0, L.jsx)(EA, {+ role: "status",+ children: a.unread ? `有 ${a.unread} 条新作还没看` : "新作都看过了"+ }), /* @__PURE__ */ (0, L.jsx)(G, {+ onClick: g,+ disabled: e,+ ...Y(i.busy === "check"),+ children: "立即拉取"+ })]+ }),+ y.length || i.error ? /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "flex flex-col gap-3",+ children: [y.map((e) => /* @__PURE__ */ (0, L.jsx)(J, {+ tone: "error",+ title: `${_L(e)} 拉取失败`,+ children: e.last_error+ }, e.id)), i.error ? /* @__PURE__ */ (0, L.jsx)(DA, { children: i.error }) : null]+ }) : null,+ v.length ? /* @__PURE__ */ (0, L.jsxs)(hL, {+ label: "订阅源批量操作",+ count: `已选 ${v.length} 条订阅源`,+ children: [+ /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "secondary",+ size: "small",+ disabled: e,+ ...Y(u.isPending),+ onClick: () => u.mutate({+ ids: v.map((e) => e.id),+ action: "enabled"+ }),+ children: "启用"+ }),+ /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "secondary",+ size: "small",+ disabled: e,+ ...Y(u.isPending),+ onClick: () => u.mutate({+ ids: v.map((e) => e.id),+ action: "paused"+ }),+ children: "暂停"+ }),+ /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "danger",+ size: "small",+ disabled: e,+ ...Y(u.isPending),+ onClick: () => void vL(v, () => u.mutateAsync({+ ids: v.map((e) => e.id),+ action: "remove"+ })),+ children: "移除"+ }),+ /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "ghost",+ size: "small",+ onClick: () => c(/* @__PURE__ */ new Set()),+ children: "取消选择"+ })+ ]+ }) : null,+ o.length ? /* @__PURE__ */ (0, L.jsx)(uj, {+ onRowClick: (e) => _(Number(e)),+ children: /* @__PURE__ */ (0, L.jsxs)(sj, {+ "aria-label": "JAV 订阅源",+ size: "sm",+ children: [/* @__PURE__ */ (0, L.jsx)(Uk, { children: h.getHeaderGroups()[0].headers.map((e) => {+ let t = dL(e.column.columnDef.header, e.getContext());+ return /* @__PURE__ */ (0, L.jsx)(Wk, {+ id: e.id,+ isRowHeader: e.column.id === "name",+ children: kle.has(e.column.id) ? /* @__PURE__ */ (0, L.jsx)(K_, { children: t }) : t+ }, e.id);+ }) }), /* @__PURE__ */ (0, L.jsx)(Kk, { children: h.getRowModel().rows.map((e) => /* @__PURE__ */ (0, L.jsx)(Yk, {+ id: e.id,+ "data-follow-selected": e.getIsSelected() || void 0,+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, L.jsx)(Zk, { children: dL(e.column.columnDef.cell, e.getContext()) }, e.id))+ }, e.id)) })]+ })+ }) : /* @__PURE__ */ (0, L.jsx)(ow, {+ icon: ZS,+ title: "还没有订阅源",+ shell: "plain",+ children: "在上面按女优名添加,或在人物页点「订阅新作」。"+ })+ ]+ });+}+//#endregion+//#region src/react/follow-manage/source-list.tsx+var Lle = Object.fromEntries(Object.entries(uF).map(([e, t]) => [t, e])), yL = 740;+function Rle() {+ let [e, t] = (0, I.useState)(!1), n = (0, I.useRef)(null), r = (0, I.useCallback)((e) => {+ if (n.current?.disconnect(), !e) {+ n.current = null;+ return;+ }+ let r = new ResizeObserver(() => t(e.clientWidth < yL));+ r.observe(e), n.current = r, t(e.clientWidth < yL);+ }, []);+ return (0, I.useEffect)(() => () => n.current?.disconnect(), []), [r, e];+}+var zle = {+ select: "选择",+ author: "创作者",+ source: "来源",+ provider: "站点",+ status: "状态",+ checked: "上次检查",+ actions: "操作"+};+function Ble({ page: e, pages: t, onPage: n }) {+ return t <= 1 ? null : /* @__PURE__ */ (0, L.jsxs)("nav", {+ "aria-label": "关注列表分页",+ className: "flex flex-wrap items-center justify-center gap-2",+ children: [+ /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "secondary",+ size: "small",+ disabled: e <= 1,+ onClick: () => n(e - 1),+ children: "上一页"+ }),+ /* @__PURE__ */ (0, L.jsx)("ul", {+ className: "flex flex-wrap items-center gap-1",+ children: tE(e, t).map((t, r) => /* @__PURE__ */ (0, L.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, L.jsx)("span", {+ "aria-hidden": !0,+ className: "px-1 text-body-2-regular text-text-tertiary",+ children: "…"+ }) : /* @__PURE__ */ (0, L.jsx)(G, {+ variant: t === e ? "secondary" : "ghost",+ size: "small",+ "aria-label": `第 ${t} 页`,+ "aria-current": t === e ? "page" : void 0,+ onClick: () => n(Number(t)),+ children: t+ }) }, t === "…" ? `dots-${r}` : t))+ }),+ /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "secondary",+ size: "small",+ disabled: e >= t,+ onClick: () => n(e + 1),+ children: "下一页"+ })+ ]+ });+}+function Vle({ source: e, selected: t, onToggle: n, handlers: r }) {+ return /* @__PURE__ */ (0, L.jsxs)("div", {+ "data-selected": t || void 0,+ className: "flex min-h-16 flex-wrap items-center gap-3 px-2 py-3",+ onClick: (e) => {+ lj(e, e.currentTarget) && n(!t);+ },+ children: [+ /* @__PURE__ */ (0, L.jsx)(oj, {+ isSelected: t,+ onChange: n,+ "aria-label": `选择 ${e.label}`+ }),+ /* @__PURE__ */ (0, L.jsxs)("span", {+ className: "flex min-w-0 grow flex-col gap-0.5",+ children: [/* @__PURE__ */ (0, L.jsx)(vI, { source: e }), e.last_error ? /* @__PURE__ */ (0, L.jsx)("small", {+ className: "text-caption-1-regular text-text-error-primary",+ children: e.last_error+ }) : null]+ }),+ /* @__PURE__ */ (0, L.jsx)("span", {+ className: "flex shrink-0 items-center gap-1.5 text-body-2-regular text-text-secondary",+ title: e.provider_label,+ children: /* @__PURE__ */ (0, L.jsx)(hI, {+ provider: e.provider,+ label: e.provider_label+ })+ }),+ /* @__PURE__ */ (0, L.jsx)(_I, { source: e }),+ /* @__PURE__ */ (0, L.jsx)("span", {+ className: "shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary",+ children: PF(e)+ }),+ /* @__PURE__ */ (0, L.jsx)(pL, {+ "aria-label": `启用 ${e.label}`,+ isSelected: e.enabled,+ isDisabled: r.readOnly,+ onChange: (t) => r.toggle(e, t)+ }),+ /* @__PURE__ */ (0, L.jsxs)("span", {+ className: "flex shrink-0 items-center gap-1",+ children: [/* @__PURE__ */ (0, L.jsx)(G, {+ variant: "secondary",+ size: "small",+ iconOnly: !0,+ leadingIcon: XS,+ "aria-label": `检查 ${e.label} 的更新`,+ disabled: !e.enabled || r.readOnly,+ ...Y(r.busy),+ onClick: () => r.check([e.id])+ }), /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "secondary",+ size: "small",+ iconOnly: !0,+ leadingIcon: FS,+ "aria-label": `移除 ${e.label}`,+ disabled: r.readOnly,+ onClick: () => r.remove(e)+ })]+ })+ ]+ });+}+function Hle({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, onToggleGroup: o, onToggle: s }) {+ let c = e.map((e) => e.id), l = e.filter((e) => e.enabled).map((e) => e.id), u = e.filter(fF).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = yF(r, c);+ return /* @__PURE__ */ (0, L.jsxs)("section", {+ "aria-label": `${t} 的关注来源`,+ className: aw({+ variant: "raised",+ padding: "none",+ className: "flex flex-col overflow-hidden p-2"+ }),+ children: [/* @__PURE__ */ (0, L.jsxs)("div", {+ "data-follow-author-header": !0,+ "data-open": n || void 0,+ className: "flex flex-wrap items-center gap-3 px-2 py-2.5",+ children: [+ /* @__PURE__ */ (0, L.jsx)(gI, {+ group: e,+ name: t+ }),+ /* @__PURE__ */ (0, L.jsx)("b", {+ className: "min-w-0 grow text-body-medium break-words text-text-primary",+ children: t+ }),+ /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "secondary",+ size: "small",+ iconOnly: !0,+ leadingIcon: XS,+ "aria-label": `检查 ${t} 的全部来源`,+ disabled: !l.length || i.readOnly,+ ...Y(i.busy),+ onClick: () => i.check(l)+ }),+ /* @__PURE__ */ (0, L.jsxs)("span", {+ className: "flex shrink-0 items-center gap-1",+ title: d,+ children: [e.map((e) => /* @__PURE__ */ (0, L.jsx)(hI, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, L.jsx)(K_, { children: `来源:${d}` })]+ }),+ u ? /* @__PURE__ */ (0, L.jsx)("span", {+ className: "shrink-0 text-body-2-regular text-text-error-primary",+ children: `${u} 个失败`+ }) : null,+ /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "secondary",+ size: "small",+ leadingIcon: AS,+ "aria-pressed": p.all ? "true" : p.some ? "mixed" : "false",+ "aria-label": `${p.all ? "取消全选" : "全选"} ${t} 的来源`,+ onClick: () => o(!p.all),+ children: p.all ? "取消全选" : "全选"+ }),+ /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "secondary",+ size: "small",+ "aria-expanded": n,+ "aria-controls": f,+ leadingIcon: n ? kS : TS,+ "aria-label": `${n ? "收起" : "展开"} ${t} 的来源`,+ onClick: () => a(!n),+ children: n ? "收起" : "展开"+ })+ ]+ }), /* @__PURE__ */ (0, L.jsx)("div", {+ id: f,+ hidden: !n,+ "data-source-divider": !0,+ children: e.map((e) => /* @__PURE__ */ (0, L.jsx)(Vle, {+ source: e,+ handlers: i,+ selected: r.has(e.id),+ onToggle: (t) => s(e.id, t)+ }, e.id))+ })]+ });+}+function Ule(e) {+ let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: u, onPage: d, onLayout: f, onPageSize: p, onSelected: m, toast: h, openFollow: _ } = e, v = t.sources, y = (0, I.useMemo)(() => t.author_aliases || [], [t.author_aliases]), b = t.counts || {}, [x, S] = (0, I.useState)(/* @__PURE__ */ new Set()), [C, w] = Rle(), [T, E] = (0, I.useState)(""), D = (0, I.useMemo)(() => Koe(v, n, r, y), [+ v,+ n,+ r,+ y+ ]), O = (0, I.useMemo)(() => qoe(D, n, r, y), [+ D,+ n,+ r,+ y+ ]), { job: k, running: A, outcome: j, start: M } = ej({+ queryKey: Foe,+ queryFn: ({ signal: e }) => Xoe(e),+ start: (e) => CF(e),+ onError: (e) => E(K(e)),+ onFinish: (e) => {+ NF(), h(e.status === "failed" ? e.error || "检查失败" : cse(e));+ }+ }), N = (e) => {+ A || M.isPending || (E(""), M.mutate(e));+ }, ee = (e, t) => m(bF(s, [e], t)), te = (e, t) => m(bF(s, e, t)), P = It({+ mutationFn: (e) => TF(e),+ onSuccess: (e, t) => {+ MF([t]), m(bF(s, [t], !1)), h("已取消关注来源");+ },+ onError: (e) => E(K(e))+ }), ne = It({+ mutationFn: (e) => wF(e.id, e.enabled),+ onSuccess: (e, t) => {+ jF(t.id, { enabled: t.enabled }), E("");+ },+ onError: (e) => E(K(e))+ }), F = (e) => void g({+ title: "取消关注来源",+ body: "将移除这个来源及已抓取的条目,媒体文件保留。",+ confirmLabel: "取消关注来源",+ danger: !0,+ onConfirm: () => P.mutateAsync(e.id)+ }), re = It({+ mutationFn: async (e) => {+ let t = await l(e.ids, 4, async (t) => {+ e.action === "remove" ? await TF(t) : await wF(t, e.action === "enabled");+ });+ return {+ ...e,+ done: e.ids.filter((e, n) => t[n]?.ok),+ results: t+ };+ },+ onSuccess: (e) => {+ if (e.action === "remove") MF(e.done);+ else for (let t of e.done) jF(t, { enabled: e.action === "enabled" });+ m(bF(s, e.done, !1));+ let t = e.results.filter((e) => !e.ok);+ if (t.length) {+ E(`${t.length}/${e.ids.length} 个来源未更新:${K(t[0]?.error)}`);+ return;+ }+ E("");+ let n = e.action === "remove" ? "删除" : e.action === "enabled" ? "启用" : "暂停";+ h(`已${n} ${e.done.length} 个关注来源`);+ },+ onError: (e) => E(K(e))+ }), ie = It({+ mutationFn: async (e) => {+ let t = ((await ise()).groups || []).flatMap((e) => [+ e.primary,+ ...e.variants,+ ...e.duplicates+ ]).filter((e) => e.status === "new").map((e) => e.id);+ return {+ ids: t,+ failed: (await l(t, 6, (t) => rse(t, e))).filter((e) => !e.ok)+ };+ },+ onSuccess: (e) => {+ if (NF(), e.failed.length) {+ E(`批量更新 ${e.failed.length}/${e.ids.length} 项未完成`);+ return;+ }+ E(""), h(`已批量标记 ${e.ids.length} 项`);+ },+ onError: (e) => E(K(e))+ }), ae = (e, t) => ne.mutate({+ id: e.id,+ enabled: t+ }), oe = (0, I.useRef)({+ check: N,+ toggle: ae,+ remove: F,+ busy: !1,+ readOnly: c+ });+ oe.current = {+ check: N,+ toggle: ae,+ remove: F,+ busy: A || M.isPending,+ readOnly: c+ };+ let se = oe.current, ce = (0, I.useMemo)(() => {+ let e = CI(), t = (e) => () => zle[e] || e;+ return [+ e.display({+ id: "select",+ header: t("select"),+ cell: (e) => /* @__PURE__ */ (0, L.jsx)(oj, {+ slot: null,+ isSelected: e.row.getIsSelected(),+ onChange: (t) => e.row.toggleSelected(t),+ "aria-label": `选择 ${e.row.original.source.label}`+ })+ }),+ e.accessor((e) => e.author, {+ id: "author",+ header: t("author"),+ cell: (e) => /* @__PURE__ */ (0, L.jsxs)("span", {+ className: "flex min-w-0 items-center gap-2",+ children: [/* @__PURE__ */ (0, L.jsx)(gI, {+ group: e.row.original.group,+ name: e.row.original.author+ }), /* @__PURE__ */ (0, L.jsx)("span", {+ className: "min-w-0 break-words",+ children: e.row.original.author+ })]+ })+ }),+ e.accessor((e) => e.source.label, {+ id: "source",+ header: t("source"),+ cell: (e) => /* @__PURE__ */ (0, L.jsxs)("span", {+ className: "flex min-w-0 flex-col gap-0.5",+ children: [/* @__PURE__ */ (0, L.jsx)(vI, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, L.jsx)("small", {+ className: "text-caption-1-regular text-text-error-primary",+ children: e.row.original.source.last_error+ }) : null]+ })+ }),+ e.accessor((e) => e.source.provider_label, {+ id: "provider",+ header: t("provider"),+ cell: (e) => /* @__PURE__ */ (0, L.jsxs)("span", {+ className: "flex items-center gap-1.5",+ children: [/* @__PURE__ */ (0, L.jsx)(hI, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]+ })+ }),+ e.display({+ id: "status",+ header: t("status"),+ cell: (e) => /* @__PURE__ */ (0, L.jsx)(_I, { source: e.row.original.source })+ }),+ e.accessor((e) => e.source.last_checked_at || "", {+ id: "checked",+ header: t("checked"),+ cell: (e) => PF(e.row.original.source)+ }),+ e.display({+ id: "actions",+ header: t("actions"),+ cell: (e) => /* @__PURE__ */ (0, L.jsxs)("span", {+ className: "flex items-center gap-1",+ children: [+ /* @__PURE__ */ (0, L.jsx)(pL, {+ "aria-label": `启用 ${e.row.original.source.label}`,+ isSelected: e.row.original.source.enabled,+ isDisabled: se.readOnly,+ onChange: (t) => oe.current.toggle(e.row.original.source, t)+ }),+ /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "secondary",+ size: "small",+ iconOnly: !0,+ leadingIcon: XS,+ "aria-label": `检查 ${e.row.original.source.label} 的更新`,+ disabled: !e.row.original.source.enabled || se.readOnly,+ ...Y(se.busy),+ onClick: () => oe.current.check([e.row.original.source.id])+ }),+ /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "secondary",+ size: "small",+ iconOnly: !0,+ leadingIcon: FS,+ "aria-label": `移除 ${e.row.original.source.label}`,+ disabled: se.readOnly,+ onClick: () => oe.current.remove(e.row.original.source)+ })+ ]+ })+ })+ ];+ }, [se]), le = (0, I.useMemo)(() => {+ let e = Lle[n];+ return e ? [{+ id: e,+ desc: r === "desc"+ }] : [];+ }, [n, r]), ue = (0, I.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), R = a === "table", z = Joe(R ? O.length : D.length, o, i), de = fL({+ data: O,+ columns: ce,+ getRowId: (e) => String(e.source.id),+ state: {+ sorting: le,+ rowSelection: ue,+ pagination: {+ pageIndex: z.page - 1,+ pageSize: o+ }+ },+ manualSorting: !0,+ enableRowSelection: !0,+ onSortingChange: (e) => {+ let t = (typeof e == "function" ? e(le) : e)[0];+ if (!t) return;+ let n = uF[t.id];+ n && u(n, t.desc ? "desc" : "asc");+ },+ onRowSelectionChange: (e) => {+ let t = typeof e == "function" ? e(ue) : e;+ m(new Set(Object.entries(t).filter(([, e]) => e).map(([e]) => Number(e))));+ },+ onPaginationChange: (e) => {+ let t = {+ pageIndex: z.page - 1,+ pageSize: o+ }, n = typeof e == "function" ? e(t) : e;+ n.pageSize === o ? n.pageIndex !== t.pageIndex && d(n.pageIndex + 1) : p(n.pageSize);+ },+ getCoreRowModel: uL(),+ getPaginationRowModel: vle()+ }), fe = de.getRowModel().rows, pe = R ? fe.map((e) => e.original.source.id) : D.slice(z.start, z.end).flatMap((e) => e.map((e) => e.id)), me = yF(s, pe), he = [...s], ge = lse(j), _e = use(j), ve = D.length > 0 && x.size >= D.length;+ return v.length ? /* @__PURE__ */ (0, L.jsxs)("div", {+ className: aw({+ padding: "none",+ className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"+ }),+ children: [+ /* @__PURE__ */ (0, L.jsxs)("div", {+ ref: C,+ className: "flex flex-wrap items-center gap-2",+ children: [+ /* @__PURE__ */ (0, L.jsx)("h3", {+ className: "mr-auto text-title-2-medium text-text-primary",+ children: "关注列表"+ }),+ /* @__PURE__ */ (0, L.jsx)("span", {+ className: "text-body-2-regular text-text-secondary",+ children: `${v.length} 个来源${b.new ? ` · ${b.new} 条未看` : ""}`+ }),+ /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "primary",+ leadingIcon: XS,+ disabled: c,+ "aria-label": "检查全部",+ iconOnly: w,+ ...Y(se.busy),+ onClick: () => N([]),+ children: "检查全部"+ }),+ /* @__PURE__ */ (0, L.jsxs)("span", {+ "data-button-group": !0,+ role: "group",+ "aria-label": "关注列表版式",+ children: [/* @__PURE__ */ (0, L.jsx)(G, {+ variant: "ghost",+ iconOnly: !0,+ leadingIcon: qS,+ "aria-label": cF[0][1],+ "aria-pressed": !R,+ onClick: () => f("default")+ }), /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "ghost",+ iconOnly: !0,+ leadingIcon: $S,+ "aria-label": cF[1][1],+ "aria-pressed": R,+ onClick: () => f("table")+ })]+ }),+ /* @__PURE__ */ (0, L.jsx)(YA, {+ "aria-label": "关注列表排序",+ selectedKey: n,+ onSelectionChange: (e) => {+ if (e === null) return;+ let t = String(e);+ u(t, YP[t]);+ },+ children: JP.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(XA, {+ id: e,+ children: t+ }, e))+ }),+ /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "secondary",+ iconOnly: !0,+ leadingIcon: r === "asc" ? OS : wS,+ "aria-label": Hoe(n, r),+ onClick: () => u(n, r === "asc" ? "desc" : "asc")+ }),+ R ? null : /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "secondary",+ iconOnly: w,+ leadingIcon: ve ? TS : kS,+ "aria-label": ve ? "全部展开" : "全部收起",+ onClick: () => S(ve ? /* @__PURE__ */ new Set() : new Set(D.map((e) => String(e[0].author_key || e[0].id)))),+ children: ve ? "全部展开" : "全部收起"+ })+ ]+ }),+ /* @__PURE__ */ (0, L.jsxs)("div", {+ "aria-live": "polite",+ className: "flex flex-col gap-3 empty:hidden",+ children: [+ A ? k?.total ? /* @__PURE__ */ (0, L.jsx)(uw, {+ label: k.message || `${k.older ? "抓取历史" : "检查更新"}:已完成 ${k.checked || 0}/${k.total} 个来源`,+ value: k.checked || 0,+ max: k.total+ }) : /* @__PURE__ */ (0, L.jsx)(sw, { label: k?.message || "正在准备检查任务" }) : null,+ T ? /* @__PURE__ */ (0, L.jsx)(J, {+ tone: "error",+ title: "操作未完成",+ children: T+ }) : null,+ ge.length ? /* @__PURE__ */ (0, L.jsx)(J, {+ tone: "error",+ title: `${ge.length} 个来源检查失败`,+ extra: /* @__PURE__ */ (0, L.jsx)("ul", {+ className: "flex flex-col gap-0.5 text-body-2-regular",+ children: ge.map((e, t) => /* @__PURE__ */ (0, L.jsx)("li", { children: `${e.provider_label || e.provider || ""} ${e.author || e.label || e.ref || ""}:${e.error || "未说明原因"}` }, `${e.provider || ""}-${e.ref || t}`))+ }),+ children: "这些来源这一轮没有取到更新。"+ }) : null,+ _e ? /* @__PURE__ */ (0, L.jsx)(J, {+ tone: "warning",+ children: `候选已入库,但这一次的原始响应没有留档:${_e}`+ }) : null+ ]+ }),+ he.length ? /* @__PURE__ */ (0, L.jsxs)(hL, {+ label: "关注来源批量操作",+ count: `已选 ${he.length} 个来源`,+ children: [+ /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "secondary",+ size: "small",+ disabled: c,+ ...Y(se.busy),+ onClick: () => N(he),+ children: "检查所选"+ }),+ /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "secondary",+ size: "small",+ disabled: c,+ ...Y(re.isPending),+ onClick: () => re.mutate({+ ids: he,+ action: "enabled"+ }),+ children: "启用"+ }),+ /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "secondary",+ size: "small",+ disabled: c,+ ...Y(re.isPending),+ onClick: () => re.mutate({+ ids: he,+ action: "paused"+ }),+ children: "暂停"+ }),+ /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "danger",+ size: "small",+ disabled: c,+ ...Y(re.isPending),+ onClick: () => void g({+ title: `删除 ${he.length} 个关注来源`,+ body: "将移除所选关注来源及其已抓取条目,媒体文件保留。",+ confirmLabel: "删除所选来源",+ danger: !0,+ onConfirm: () => re.mutateAsync({+ ids: he,+ action: "remove"+ })+ }),+ children: "删除"+ }),+ /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "ghost",+ size: "small",+ onClick: () => m(/* @__PURE__ */ new Set()),+ children: "取消选择"+ })+ ]+ }) : null,+ R ? /* @__PURE__ */ (0, L.jsx)(uj, {+ follow: !0,+ onRowClick: (e) => ee(Number(e), !s.has(Number(e))),+ children: /* @__PURE__ */ (0, L.jsxs)(sj, {+ "aria-label": "关注来源",+ size: "sm",+ sortDescriptor: le[0] ? {+ column: le[0].id,+ direction: le[0].desc ? "descending" : "ascending"+ } : void 0,+ onSortChange: (e) => de.setSorting([{+ id: String(e.column),+ desc: e.direction === "descending"+ }]),+ children: [/* @__PURE__ */ (0, L.jsx)(Uk, { children: de.getHeaderGroups()[0].headers.map((e) => {+ let t = e.column.id in uF, n = dL(e.column.columnDef.header, e.getContext());+ return /* @__PURE__ */ (0, L.jsx)(Wk, {+ id: e.id,+ allowsSorting: t,+ isRowHeader: e.column.id === "source",+ children: ({ sortDirection: e }) => t ? /* @__PURE__ */ (0, L.jsxs)("span", {+ className: "flex items-center gap-0.5",+ children: [n, /* @__PURE__ */ (0, L.jsx)("span", {+ "data-sort-indicator": !0,+ "data-direction": e || void 0,+ children: /* @__PURE__ */ (0, L.jsx)(GA, {})+ })]+ }) : /* @__PURE__ */ (0, L.jsx)(K_, { children: n })+ }, e.id);+ }) }), /* @__PURE__ */ (0, L.jsx)(Kk, {+ renderEmptyState: () => "这一页没有来源",+ children: fe.map((e) => /* @__PURE__ */ (0, L.jsx)(Yk, {+ id: e.id,+ "data-follow-selected": e.getIsSelected() || void 0,+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, L.jsx)(Zk, { children: dL(e.column.columnDef.cell, e.getContext()) }, e.id))+ }, e.id))+ })]+ })+ }) : /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(oj, {+ isSelected: me.all,+ isIndeterminate: me.some,+ onChange: (e) => te(pe, e),+ "aria-label": "全选本页来源",+ children: "全选本页"+ }), /* @__PURE__ */ (0, L.jsx)("div", {+ className: "flex flex-col gap-3",+ children: D.slice(z.start, z.end).map((e) => {+ let t = String(e[0].author_key || e[0].id);+ return /* @__PURE__ */ (0, L.jsx)(Hle, {+ group: e,+ name: _F(e, y),+ handlers: se,+ selected: s,+ open: !x.has(t),+ onOpen: (e) => {+ let n = new Set(x);+ e ? n.delete(t) : n.add(t), S(n);+ },+ onToggleGroup: (t) => te(e.map((e) => e.id), t),+ onToggle: ee+ }, t);+ })+ })] }),+ /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "flex flex-wrap items-center justify-between gap-3",+ children: [+ /* @__PURE__ */ (0, L.jsx)("span", {+ className: "text-body-2-regular text-text-secondary",+ children: `${z.start + 1}–${z.end} / ${z.total} ${R ? "个来源" : "位创作者"}`+ }),+ /* @__PURE__ */ (0, L.jsx)(YA, {+ "aria-label": "每页显示数量",+ size: "sm",+ selectedKey: String(o),+ onSelectionChange: (e) => {+ e !== null && de.setPageSize(Number(e));+ },+ children: lF.map((e) => /* @__PURE__ */ (0, L.jsx)(XA, {+ id: String(e),+ children: `每页 ${e} ${R ? "条" : "位"}`+ }, e))+ }),+ /* @__PURE__ */ (0, L.jsx)(Ble, {+ page: z.page,+ pages: z.pages,+ onPage: (e) => de.setPageIndex(e - 1)+ })+ ]+ }),+ b.new ? /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "-mx-6 -mb-5 flex flex-wrap items-center gap-2 border-t border-separator-border rounded-b-2xl bg-card-footer px-6 py-4 max-sm:-mx-4 max-sm:px-4",+ children: [+ /* @__PURE__ */ (0, L.jsx)("span", {+ className: "mr-auto text-body-2-regular text-text-secondary",+ children: `未看 ${b.new} · 已看 ${b.seen || 0} · 已保存 ${b.saved || 0} · 已忽略 ${b.ignored || 0}`+ }),+ /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "secondary",+ size: "small",+ onClick: _,+ children: "去看更新"+ }),+ /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "secondary",+ size: "small",+ disabled: c,+ ...Y(ie.isPending),+ onClick: () => void g({+ title: "标记已看",+ body: "将把当前未看作品标记为已看。",+ confirmLabel: "标记已看",+ onConfirm: () => ie.mutateAsync("seen")+ }),+ children: "全部标记已看"+ }),+ /* @__PURE__ */ (0, L.jsx)(G, {+ variant: "secondary",+ size: "small",+ disabled: c,+ ...Y(ie.isPending),+ onClick: () => void g({+ title: "标记已忽略",+ body: "将把当前未看作品标记为已忽略。",+ confirmLabel: "标记已忽略",+ onConfirm: () => ie.mutateAsync("ignored")+ }),+ children: "全部忽略"+ })+ ]+ }) : null+ ]+ }) : /* @__PURE__ */ (0, L.jsx)(ow, {+ shell: "plain",+ icon: ZS,+ title: "还没有关注来源",+ actions: /* @__PURE__ */ (0, L.jsx)(tw, {+ variant: "primary",+ size: "small",+ href: "/follow-manage?tab=add",+ children: "添加关注"+ }),+ children: "关注来源及其检查状态会显示在这里。"+ });+}+//#endregion+//#region src/react/follow-manage/follow-manage-page.tsx+var bL = [+ ["list", "关注列表"],+ ["add", "添加关注"],+ ["feeds", "JAV 订阅源"],+ ["source", "来源和凭证"]+], xL = (e) => bL.some(([t]) => t === e);+function SL({ term: e, figure: t, unit: n }) {+ return /* @__PURE__ */ (0, L.jsxs)("div", {+ className: aw({+ padding: "none",+ className: "flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4"+ }),+ children: [/* @__PURE__ */ (0, L.jsx)("span", {+ className: "text-body-medium text-text-secondary",+ children: e+ }), /* @__PURE__ */ (0, L.jsxs)("b", {+ className: "text-title-1-medium tabular-nums text-text-primary",+ children: [t, /* @__PURE__ */ (0, L.jsx)("small", {+ className: "text-body-2-regular text-text-secondary",+ children: ` ${n}`+ })]+ })]+ });+}+function Wle(e) {+ let { route: t, savePreference: n, toast: r, openFollow: i, readOnly: a, readOnlyMessage: o, writerUrl: s } = e, [c, l] = (0, I.useState)(xL(e.tab) ? e.tab : "list"), [u, d] = (0, I.useState)(Math.max(1, Math.floor(e.page) || 1)), [f, p] = (0, I.useState)(() => XP(e.sort, e.dir).sort), [m, h] = (0, I.useState)(() => XP(e.sort, e.dir).dir), [g, _] = (0, I.useState)(zoe(e.layout) ? e.layout : "default"), [v, y] = (0, I.useState)(Boe(e.pageSize)), [b, x] = (0, I.useState)(/* @__PURE__ */ new Set()), S = Ft({+ queryKey: aF,+ queryFn: ({ signal: e }) => xF(e)+ }), C = Ft({+ queryKey: oF,+ queryFn: ({ signal: e }) => SF(e)+ }), w = Ft({+ queryKey: sF,+ queryFn: ({ signal: e }) => DF(e)+ }), T = S.data || { sources: [] }, E = C.data || {+ root: "",+ providers: []+ }, D = T.sources;+ (0, I.useEffect)(() => {+ x((e) => {+ let t = Yoe(e, D);+ return t.size === e.size ? e : t;+ });+ }, [D]);+ let O = (e) => {+ let n = e.sort ?? f, r = e.dir ?? m;+ t({+ tab: e.tab ?? c,+ page: e.page ?? u,+ sort: n === "checked" ? "" : n,+ dir: r === YP[n] ? "" : r+ });+ }, k = vF(D), A = D.filter(fF).length, j = D.filter((e) => e.enabled).length, M = (E.providers || []).filter((e) => e.requirement === "required" && !FF(e)).length, N = new Set((w.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;+ return /* @__PURE__ */ (0, L.jsxs)(cw, { children: [+ a ? /* @__PURE__ */ (0, L.jsx)(J, {+ tone: "warning",+ title: "本机只能浏览",+ extra: s ? /* @__PURE__ */ (0, L.jsx)("p", {+ className: "text-body-2-regular",+ children: /* @__PURE__ */ (0, L.jsx)("a", {+ href: s,+ className: "text-text-primary underline underline-offset-2",+ children: "前往写入端管理关注"+ })+ }) : void 0,+ children: o+ }) : null,+ /* @__PURE__ */ (0, L.jsxs)("div", {+ className: die,+ "aria-label": "关注概览",+ children: [+ /* @__PURE__ */ (0, L.jsx)(SL, {+ term: "关注创作者",+ figure: k.length,+ unit: "位"+ }),+ /* @__PURE__ */ (0, L.jsx)(SL, {+ term: "启用来源",+ figure: j,+ unit: `/ ${D.length}`+ }),+ /* @__PURE__ */ (0, L.jsx)(SL, {+ term: "检查失败",+ figure: A,+ unit: "个来源"+ }),+ /* @__PURE__ */ (0, L.jsx)(SL, {+ term: "未看更新",+ figure: T.counts?.new || 0,+ unit: "条"+ }),+ /* @__PURE__ */ (0, L.jsx)(SL, {+ term: "JAV 订阅",+ figure: N,+ unit: "位"+ }),+ /* @__PURE__ */ (0, L.jsx)(SL, {+ term: "未看新作",+ figure: w.data?.unread || 0,+ unit: "条"+ })+ ]+ }),+ /* @__PURE__ */ (0, L.jsxs)(tA, {+ selectedKey: c,+ onSelectionChange: (e) => {+ let t = String(e);+ xL(t) && (l(t), O({ tab: t }));+ },+ className: "flex flex-col gap-6",+ children: [+ /* @__PURE__ */ (0, L.jsx)(nA, {+ "aria-label": "关注管理区域",+ className: xN,+ children: bL.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(rA, {+ id: e,+ className: SN,+ children: e === "source" && M ? `${t}(${M})` : t+ }, e))+ }),+ /* @__PURE__ */ (0, L.jsx)(iA, {+ id: "list",+ className: "flex flex-col gap-4",+ children: /* @__PURE__ */ (0, L.jsx)(Ule, {+ data: T,+ sort: f,+ dir: m,+ page: u,+ layout: g,+ pageSize: v,+ selected: b,+ readOnly: a,+ toast: r,+ openFollow: i,+ onSort: (e, t) => {+ p(e), h(t), d(1), O({+ sort: e,+ dir: t,+ page: 1+ });+ },+ onPage: (e) => {+ d(e), O({ page: e });+ },+ onSelected: x,+ onLayout: (e) => {+ _(e), d(1), n({ layout: e }), O({ page: 1 });+ },+ onPageSize: (e) => {+ y(e), d(1), n({ pageSize: e }), O({ page: 1 });+ }+ })+ }),+ /* @__PURE__ */ (0, L.jsxs)(iA, {+ id: "add",+ className: "flex flex-col gap-8",+ children: [/* @__PURE__ */ (0, L.jsx)(Oce, {+ data: T,+ credentials: E,+ readOnly: a,+ toast: r,+ openCredentials: () => {+ l("source"), O({ tab: "source" });+ }+ }), /* @__PURE__ */ (0, L.jsx)(jce, {+ groups: T.author_aliases || [],+ readOnly: a,+ toast: r,+ suggestions: T.alias_suggestions || [],+ sources: T.sources+ })]+ }),+ /* @__PURE__ */ (0, L.jsx)(iA, {+ id: "feeds",+ className: "flex flex-col gap-4",+ children: /* @__PURE__ */ (0, L.jsx)(Ile, {+ readOnly: a,+ toast: r,+ avatarInner: e.avatarInner+ })+ }),+ /* @__PURE__ */ (0, L.jsx)(iA, {+ id: "source",+ className: "flex flex-col gap-4",+ children: /* @__PURE__ */ (0, L.jsx)(Bce, {+ data: E,+ readOnly: a,+ toast: r+ })+ })+ ]+ })+ ] });+}+//#endregion+//#region src/react/item-detail/item-detail.ts+var CL = (e) => ["item", e], wL = (e) => [+ "item-queue",+ e.kind,+ e.kind === "playlist" ? e.playlistId : e.seedId+], Gle = (e, t) => [+ "item-related",+ e,+ t+], Kle = (e) => `/api/item?id=${e}`, qle = (e, t) => `/api/related?id=${e}&limit=${t}`, TL = "/api/playlist", Jle = "/api/feedback", EL = "/api/item-tag", DL = "/api/watch-later", OL = "/api/quality-goal", kL = "/api/preference", AL = class extends Error {};+async function jL(e, t) {+ let n = await iw(Kle(e), t);+ if (n.error) throw new AL(n.error);+ return n;+}+async function ML(e, t, n) {+ if (e.kind === "mix") {+ let r = e.seedId, [i, a] = await Promise.all([jL(r, n), t.mixRelated(r)]);+ return X.setQueryData(CL(i.id), i), {+ kind: "mix",+ seedId: r,+ title: `Mix · ${t.mixLabel(i)}`,+ items: [i, ...a.filter((e) => e.id !== i.id)]+ };+ }+ if (e.kind === "playlist") return NL(await iw(`${TL}?id=${e.playlistId}`, n));+ let r = await iw(`/api/${e.kind}?id=${e.seedId}`, n);+ if (r.error || !r.items?.length) throw Error(r.error || "这一组已不存在");return {- rows: a(t.rows),- flatRows: r,- rowsById: i+ kind: e.kind,+ seedId: e.seedId,+ title: `${e.kind === "parts" ? "分卷" : "版本"} · ${r.title || ""}`,+ items: r.items};}-function XI(e, t) {- return t[e.id] ?? !1;-}-function ZI(e, t, n) {- var r;- if (!((r = e.subRows) != null && r.length)) return !1;- let i = !0, a = !1;- return e.subRows.forEach((e) => {- if (!(a && !i) && (e.getCanSelect() && (XI(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {- let n = ZI(e, t);- n === "all" ? a = !0 : (n === "some" && (a = !0), i = !1);- }- }), i ? "all" : a ? "some" : !1;-}-var QI = /([0-9]+)/gm, wle = (e, t, n) => tL(eL(e.getValue(n)).toLowerCase(), eL(t.getValue(n)).toLowerCase()), Tle = (e, t, n) => tL(eL(e.getValue(n)), eL(t.getValue(n))), Ele = (e, t, n) => $I(eL(e.getValue(n)).toLowerCase(), eL(t.getValue(n)).toLowerCase()), Dle = (e, t, n) => $I(eL(e.getValue(n)), eL(t.getValue(n))), Ole = (e, t, n) => {- let r = e.getValue(n), i = t.getValue(n);- return r > i ? 1 : r < i ? -1 : 0;-}, kle = (e, t, n) => $I(e.getValue(n), t.getValue(n));-function $I(e, t) {- return e === t ? 0 : e > t ? 1 : -1;+var NL = (e) => ({+ kind: "playlist",+ playlistId: e.id,+ title: e.name,+ items: e.items || [],+ currentAssetId: e.current_asset_id+});+function PL(e, t) {+ return e.kind === "mix" ? t : e.items.length ? t != null && e.items.some((e) => e.id === t) ? t : e.kind === "playlist" && e.currentAssetId || e.items[0].id : null;}-function eL(e) {- return typeof e == "number" ? isNaN(e) || e === Infinity || e === -Infinity ? "" : String(e) : typeof e == "string" ? e : "";+function Yle(e, t) {+ if (t?.kind !== "parts") return e;+ let n = t.items.find((t) => t.id === e.id)?.part_label || "";+ return e.part_label === n ? e : {+ ...e,+ part_label: n+ };}-function tL(e, t) {- let n = e.split(QI).filter(Boolean), r = t.split(QI).filter(Boolean);- for (; n.length && r.length;) {- let e = n.shift(), t = r.shift(), i = parseInt(e, 10), a = parseInt(t, 10), o = [i, a].sort();- if (isNaN(o[0])) {- if (e > t) return 1;- if (t > e) return -1;- continue;+async function Xle(e, t) {+ let { queue: n, actions: r } = e, i = null;+ if (n) {+ let a = wL(n);+ try {+ i = (n.fresh ? void 0 : X.getQueryData(a)) || await X.fetchQuery({+ queryKey: a,+ queryFn: () => ML(n, e.helpers, t),+ staleTime: 0+ });+ } catch (n) {+ if (t.aborted) throw n;+ e.id == null ? r.redirect({ kind: "gone" }) : r.redirect({+ kind: "item",+ id: e.id+ });+ return;}- if (isNaN(o[1])) return isNaN(i) ? -1 : 1;- if (i > a) return 1;- if (a > i) return -1;+ e.grid.cache(i.items);}- return n.length - r.length;-}-var nL = {- alphanumeric: wle,- alphanumericCaseSensitive: Tle,- text: Ele,- textCaseSensitive: Dle,- datetime: Ole,- basic: kle-}, Ale = [- ole,- _le,- fle,- ple,- cle,- lle,- vle,- yle,- {- getInitialState: (e) => ({- sorting: [],- ...e- }),- getDefaultColumnDef: () => ({- sortingFn: "auto",- sortUndefined: 1- }),- getDefaultOptions: (e) => ({- onSortingChange: vI("sorting", e),- isMultiSortEvent: (e) => e.shiftKey- }),- createColumn: (e, t) => {- e.getAutoSortingFn = () => {- let n = t.getFilteredRowModel().flatRows.slice(10), r = !1;- for (let t of n) {- let n = t?.getValue(e.id);- if (Object.prototype.toString.call(n) === "[object Date]") return nL.datetime;- if (typeof n == "string" && (r = !0, n.split(QI).length > 1)) return nL.alphanumeric;- }- return r ? nL.text : nL.basic;- }, e.getAutoSortDir = () => typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id) == "string" ? "asc" : "desc", e.getSortingFn = () => {- if (!e) throw Error();- return yI(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? nL[e.columnDef.sortingFn];- }, e.toggleSorting = (n, r) => {- let i = e.getNextSortingOrder(), a = n != null;- t.setSorting((o) => {- let s = o?.find((t) => t.id === e.id), c = o?.findIndex((t) => t.id === e.id), l = [], u, d = a ? n : i === "desc";- return u = o != null && o.length && e.getCanMultiSort() && r ? s ? "toggle" : "add" : o != null && o.length && c !== o.length - 1 ? "replace" : s ? "toggle" : "replace", u === "toggle" && (a || i || (u = "remove")), u === "add" ? (l = [...o, {- id: e.id,- desc: d- }], l.splice(0, l.length - (t.options.maxMultiSortColCount ?? 2 ** 53 - 1))) : l = u === "toggle" ? o.map((t) => t.id === e.id ? {- ...t,- desc: d- } : t) : u === "remove" ? o.filter((t) => t.id !== e.id) : [{- id: e.id,- desc: d- }], l;- });- }, e.getFirstSortDir = () => e.columnDef.sortDescFirst ?? t.options.sortDescFirst ?? e.getAutoSortDir() === "desc" ? "desc" : "asc", e.getNextSortingOrder = (n) => {- let r = e.getFirstSortDir(), i = e.getIsSorted();- return i ? i !== r && (t.options.enableSortingRemoval ?? !0) && (!n || (t.options.enableMultiRemove ?? !0)) ? !1 : i === "desc" ? "asc" : "desc" : r;- }, e.getCanSort = () => (e.columnDef.enableSorting ?? !0) && (t.options.enableSorting ?? !0) && !!e.accessorFn, e.getCanMultiSort = () => e.columnDef.enableMultiSort ?? t.options.enableMultiSort ?? !!e.accessorFn, e.getIsSorted = () => {- let n = t.getState().sorting?.find((t) => t.id === e.id);- return n ? n.desc ? "desc" : "asc" : !1;- }, e.getSortIndex = () => t.getState().sorting?.findIndex((t) => t.id === e.id) ?? -1, e.clearSorting = () => {- t.setSorting((t) => t != null && t.length ? t.filter((t) => t.id !== e.id) : []);- }, e.getToggleSortingHandler = () => {- let n = e.getCanSort();- return (r) => {- n && (r.persist == null || r.persist(), e.toggleSorting == null || e.toggleSorting(void 0, e.getCanMultiSort() ? t.options.isMultiSortEvent == null ? void 0 : t.options.isMultiSortEvent(r) : !1));- };- };- },- createTable: (e) => {- e.setSorting = (t) => e.options.onSortingChange == null ? void 0 : e.options.onSortingChange(t), e.resetSorting = (t) => {- e.setSorting(t ? [] : e.initialState?.sorting ?? []);- }, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());+ let a = i ? PL(i, e.id) : e.id;+ if (a == null) {+ r.redirect(i?.kind === "playlist" ? { kind: "playlists" } : { kind: "gone" });+ return;+ }+ let o;+ try {+ o = X.getQueryData(CL(a)) || await X.fetchQuery({+ queryKey: CL(a),+ queryFn: () => jL(a, t)+ });+ } catch (e) {+ if (e instanceof AL) {+ r.redirect({ kind: "gone" });+ return;}- },- ule,- ble,- xle,- Sle,- Cle,- hle-];-function jle(e) {- let t = [...Ale, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {- ...r,- ...e- }, a = { ...e.initialState ?? {} };- n._features.forEach((e) => {- a = (e.getInitialState == null ? void 0 : e.getInitialState(a)) ?? a;- });- let o = [], s = !1, c = {- _features: t,- options: {- ...r,- ...e- },- initialState: a,- _queue: (e) => {- o.push(e), s || (s = !0, Promise.resolve().then(() => {- for (; o.length;) o.shift()();- s = !1;- }).catch((e) => setTimeout(() => {- throw e;- })));- },- reset: () => {- n.setState(n.initialState);- },- setOptions: (e) => {- let t = _I(e, n.options);- n.options = i(t);- },- getState: () => n.options.state,- setState: (e) => {- n.options.onStateChange == null || n.options.onStateChange(e);- },- _getRowId: (e, t, r) => (n.options.getRowId == null ? void 0 : n.options.getRowId(e, t, r)) ?? `${r ? [r.id, t].join(".") : t}`,- getCoreRowModel: () => (n._getCoreRowModel ||= n.options.getCoreRowModel(n), n._getCoreRowModel()),- getRowModel: () => n.getPaginationRowModel(),- getRow: (e, t) => {- let r = (t ? n.getPrePaginationRowModel() : n.getRowModel()).rowsById[e];- if (!r && (r = n.getCoreRowModel().rowsById[e], !r)) throw Error();- return r;- },- _getDefaultColumnDef: bI(() => [n.options.defaultColumn], (e) => (e ??= {}, {- header: (e) => {- let t = e.header.column.columnDef;- return t.accessorKey ? t.accessorKey : t.accessorFn ? t.id : null;- },- cell: (e) => {- var t;- return ((t = e.renderValue()) == null || t.toString == null ? void 0 : t.toString()) ?? null;- },- ...n._features.reduce((e, t) => Object.assign(e, t.getDefaultColumnDef == null ? void 0 : t.getDefaultColumnDef()), {}),- ...e- }), xI(e, "debugColumns", "_getDefaultColumnDef")),- _getColumnDefs: () => n.options.columns,- getAllColumns: bI(() => [n._getColumnDefs()], (e) => {- let t = function(e, r, i) {- return i === void 0 && (i = 0), e.map((e) => {- let a = ale(n, e, i, r), o = e;- return a.columns = o.columns ? t(o.columns, a, i + 1) : [], a;- });- };- return t(e);- }, xI(e, "debugColumns", "getAllColumns")),- getAllFlatColumns: bI(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), xI(e, "debugColumns", "getAllFlatColumns")),- _getAllFlatColumnsById: bI(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), xI(e, "debugColumns", "getAllFlatColumnsById")),- getAllLeafColumns: bI(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), xI(e, "debugColumns", "getAllLeafColumns")),- getColumn: (e) => n._getAllFlatColumnsById()[e]- };- Object.assign(n, c);- for (let e = 0; e < n._features.length; e++) {- let t = n._features[e];- t == null || t.createTable == null || t.createTable(n);+ throw e;}- return n;-}-function rL() {- return (e) => bI(() => [e.options.data], (t) => {- let n = {- rows: [],- flatRows: [],- rowsById: {}- }, r = function(t, i, a) {- i === void 0 && (i = 0);- let o = [];- for (let c = 0; c < t.length; c++) {- let l = sle(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);- if (n.flatRows.push(l), n.rowsById[l.id] = l, o.push(l), e.options.getSubRows) {- var s;- l.originalSubRows = e.options.getSubRows(t[c], c), (s = l.originalSubRows) != null && s.length && (l.subRows = r(l.originalSubRows, i + 1, l));- }- }- return o;- };- return n.rows = r(t), n;- }, xI(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));-}-function Mle(e) {- let t = [], n = (e) => {- var r;- t.push(e), (r = e.subRows) != null && r.length && e.getIsExpanded() && e.subRows.forEach(n);- };- return e.rows.forEach(n), {- rows: t,- flatRows: e.flatRows,- rowsById: e.rowsById+ o.location === "online" && o.follow_item_id && r.redirect({+ kind: "follow",+ id: Number(o.follow_item_id)+ });+}+function Zle(e) {+ let t = e.entity_refs || {}, n = /* @__PURE__ */ new Set(), r = (e) => {+ let t = o(e.name);+ return !e.name || n.has(t) ? !1 : (n.add(t), !0);+ }, i = (t.performer?.length ? t.performer : (e.performers || []).map((e) => ({+ id: null,+ name: e+ }))).filter(r), a = t.studio?.[0] || !e.studio ? [] : [{+ id: null,+ name: e.studio,+ has_logo: !!e.has_studio_logo+ }], s = [...t.studio || [], ...a].filter(r), c = s.flatMap((e) => e.makers || []).filter(r), l = (t.creator || []).filter(r);+ return {+ cast: i,+ studios: s,+ makers: c,+ creators: l,+ series: (t.series || []).filter(r),+ unowned: !i.length && !l.length && !String(e.creator || "").trim()};}-function Nle(e) {- return (e) => bI(() => [- e.getState().pagination,- e.getPrePaginationRowModel(),- e.options.paginateExpandedRows ? void 0 : e.getState().expanded- ], (t, n) => {- if (!n.rows.length) return n;- let { pageSize: r, pageIndex: i } = t, { rows: a, flatRows: o, rowsById: s } = n, c = r * i, l = c + r;- a = a.slice(c, l);- let u;- u = e.options.paginateExpandedRows ? {- rows: a,- flatRows: o,- rowsById: s- } : Mle({- rows: a,- flatRows: o,- rowsById: s- }), u.flatRows = [];- let d = (e) => {- u.flatRows.push(e), e.subRows.length && e.subRows.forEach(d);- };- return u.rows.forEach(d), u;- }, xI(e.options, "debugTable", "getPaginationRowModel"));-}-//#endregion-//#region node_modules/@tanstack/react-table/build/lib/index.mjs-function iL(e, t) {- return e ? Ple(e) ? /*#__PURE__*/ I.createElement(e, t) : e : null;+var FL = (e) => Math.min(Math.max(e || 0, 0), 100), IL = (e) => Math.round(FL(e) / 20), Qle = (e) => {+ let t = IL(e);+ return t ? `${t} 星` : "未评分";+}, $le = (e, t) => {+ let n = t * 20;+ return n === (e || 0) ? 0 : n;+};+function eue(e, t) {+ let n = /* @__PURE__ */ new Map();+ return (e.tags || []).filter((e) => !t.isDurationTag(e.k)).forEach((e) => {+ let r = o(t.tagLabel(e.k)), i = n.get(r);+ (!i || o(e.k) === r && o(i.k) !== r) && n.set(r, e);+ }), [...n.values()].slice(0, 40);}-function Ple(e) {- return Fle(e) || typeof e == "function" || Ile(e);+var LL = (e, t) => (e.tags || []).some((e) => o(e.k) === o(t)), RL = (e, t) => ({+ ...e,+ tags: (e.tags || []).filter((e) => o(e.k) !== o(t))+}), zL = (e, t) => LL(e, t.k) ? e : {+ ...e,+ tags: [...e.tags || [], t]+}, BL = "peach.recentTags";+function VL() {+ try {+ let e = JSON.parse(localStorage.getItem(BL) || "[]");+ return Array.isArray(e) ? e.map(String) : [];+ } catch {+ return [];+ }}-function Fle(e) {- return typeof e == "function" && (() => {- let t = Object.getPrototypeOf(e);- return t.prototype && t.prototype.isReactComponent;- })();+function tue(e) {+ try {+ let t = VL().filter((t) => o(t) !== o(e));+ localStorage.setItem(BL, JSON.stringify([e, ...t].slice(0, 12)));+ } catch {}}-function Ile(e) {- return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);+function nue(e, t, n) {+ let r = o(e), i = new Map(t.map((e) => [o(e.k), e])), a = t.filter((e) => !r || o(e.k).includes(r)).slice(0, 120), s = r ? [] : n.map((e) => i.get(o(e)) || {+ k: e,+ n: 0+ }).filter((e, t, n) => n.findIndex((t) => o(t.k) === o(e.k)) === t).slice(0, 12), c = a.some((e) => o(e.k) === r);+ return {+ recent: s,+ results: a,+ create: r && !c ? e.trim() : ""+ };}-function aL(e) {- let t = {- state: {},- onStateChange: () => {},- renderFallbackValue: null,- ...e- }, [n] = I.useState(() => ({ current: jle(t) })), [r, i] = I.useState(() => n.current.initialState);- return n.current.setOptions((t) => ({- ...t,- ...e,- state: {- ...r,- ...e.state- },- onStateChange: (t) => {- i(t), e.onStateChange == null || e.onStateChange(t);- }- })), n.current;+var rue = {+ 中字: "subtitle",+ 无码: "uncensored",+ 无码破解: "cracked",+ 有码: "censored"+}, iue = {+ mix: "Mix",+ parts: "分卷",+ editions: "版本",+ playlist: "播放列表"+};+function aue(e) {+ let t = e.items.length, n = e.kind === "parts" ? `${t} 卷` : e.kind === "editions" ? `${t} 个版本` : `${t} 个视频`;+ return {+ title: iue[e.kind],+ summary: e.kind === "editions" ? n : `${e.title} · ${n}`+ };}-//#endregion-//#region src/react/components/legacy-avatar.ts-var oL = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover";-//#endregion-//#region src/react/components/selection-dock.tsx-function sL({ children: e, count: t, label: n }) {- return /* @__PURE__ */ (0, L.jsxs)("div", {- role: "group",- "aria-label": n,- "data-selection-dock": !0,- "data-glass-pane": "",- children: [/* @__PURE__ */ (0, L.jsx)("span", {- role: "status",- className: "px-2 text-body-2-regular whitespace-nowrap text-text-primary",- children: t- }), e]- });+var oue = (e, t) => t?.kind === "parts" && e.part_label ? `<small class="javedition partlabel">第 ${r(e.part_label)} 卷</small>` : "";+function sue(e, t, n, r) {+ let i = e.filter((e) => e !== t), a = i.indexOf(n);+ return i.splice(a + +!!r, 0, t), i;}-//#endregion-//#region src/react/follow-manage/add-feed.tsx-var Lle = "输入女优名,到 JavDB 找她的演员页";-function Rle(e, t) {- let n = /* @__PURE__ */ new Map();- for (let r of e.candidates) t.has(r.id) && r.held_by && n.set(r.held_by.id, r.held_by.name);- if (n.size > 1) return {- text: `所勾的卡分属账本里不同的人:${[...n.values()].join("、")},先去合并再订`,- blocked: !0- };- let [r] = n.values();- return r ? {- text: `会登记到「${r}」名下`,- blocked: !1- } : e.known ? {- text: `会登记到账本里的「${e.known.name}」名下`,- blocked: !1- } : {- text: `账本里还没有「${e.q}」,会新建一位`,- blocked: !1- };+var cue = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);+function lue(e, t) {+ return t ? "offline" : e.location === "online" && !e.follow_item_id ? "online" : e.cost === "metered" && e.location !== "online" ? "metered" : "";}-function zle({ card: e, picked: t, onPick: n }) {- return /* @__PURE__ */ (0, L.jsxs)("div", {- className: "flex flex-wrap items-center gap-2",- children: [/* @__PURE__ */ (0, L.jsx)(vj, {- isSelected: t,- onChange: n,- children: /* @__PURE__ */ (0, L.jsxs)("span", {- className: "flex min-w-0 flex-wrap items-center gap-1.5",- children: [- /* @__PURE__ */ (0, L.jsx)("span", {- className: "min-w-0 break-words",- children: e.names.join("、")- }),- e.record ? /* @__PURE__ */ (0, L.jsx)(bw, {- variant: "caption",- color: "neutral",- children: e.record- }) : null,- e.held_by ? /* @__PURE__ */ (0, L.jsx)("small", {- className: "text-caption-1-regular text-text-secondary",- children: `已在「${e.held_by.name}」名下`- }) : null- ]- })- }), /* @__PURE__ */ (0, L.jsx)(VA, {- href: e.url,- children: e.id- })]- });+function uue(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 Ble({ readOnly: e, toast: t, onAdded: n }) {- let [r, i] = (0, I.useState)(""), [a, o] = (0, I.useState)(null), [s, c] = (0, I.useState)(/* @__PURE__ */ new Set()), l = Bw(), u = () => {- let t = r.trim();- !t || e || l.run("lookup", (e) => aP(t, e), (e) => {- o(e), c(new Set(e.suggested));- });- }, d = (e) => {- e.key === "Enter" && !e.nativeEvent.isComposing && (e.preventDefault(), u());- }, f = () => {- o(null), c(/* @__PURE__ */ new Set()), l.setError("");- }, p = () => {- a && l.run("follow", (e) => oP(a.q, [...s], e), (e) => {- t(e.created ? `已新建「${e.entity_name}」并订阅她的新作` : `已订阅「${e.entity_name}」的新作`), i(""), f(), n();- });- }, m = a ? Rle(a, s) : null;- return /* @__PURE__ */ (0, L.jsxs)("div", {- className: Nw({- padding: "none",- className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"- }),- children: [- /* @__PURE__ */ (0, L.jsx)("h3", {- className: "text-title-2-medium text-text-primary",- children: "添加 JAV 订阅"- }),- /* @__PURE__ */ (0, L.jsxs)("div", {- className: "flex flex-wrap items-end gap-2",- children: [/* @__PURE__ */ (0, L.jsx)("div", {- className: "min-w-64 grow",- children: /* @__PURE__ */ (0, L.jsx)(Bj, {- "aria-label": "女优名",- placeholder: Lle,- value: r,- leadingIcon: kS,- isDisabled: e,- onChange: i,- onKeyDown: d- })- }), /* @__PURE__ */ (0, L.jsx)(G, {- variant: "primary",- disabled: e || !r.trim(),- ...Y(l.busy === "lookup"),- onClick: u,- children: "查找"- })]- }),- l.error ? /* @__PURE__ */ (0, L.jsx)(J, {- tone: "error",- title: "这一次没有完成",- children: l.error- }) : null,- a ? /* @__PURE__ */ (0, L.jsxs)("div", {- className: "flex flex-col gap-3",- children: [- /* @__PURE__ */ (0, L.jsx)(BA, { children: "JavDB 上的演员卡" }),- a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, L.jsx)(zle, {- card: e,- picked: s.has(e.id),- onPick: (t) => c((n) => {- let r = new Set(n);- return t ? r.add(e.id) : r.delete(e.id), r;- })- }, e.id)) : /* @__PURE__ */ (0, L.jsx)(RA, { children: "JavDB 上没有搜到这个名字。" }),- a.candidates.length ? /* @__PURE__ */ (0, L.jsx)(RA, {- role: "status",- children: s.size ? m.text : "勾选她的演员卡;有碼与無碼两条记录都是她的话,两张都勾。"- }) : null,- /* @__PURE__ */ (0, L.jsxs)("div", {- className: "flex flex-wrap items-center gap-2",- children: [a.candidates.length ? /* @__PURE__ */ (0, L.jsx)(G, {- variant: "primary",- size: "small",- disabled: e || !s.size || m.blocked,- ...Y(l.busy === "follow"),- onClick: p,- children: `添加订阅(${s.size})`- }) : null, /* @__PURE__ */ (0, L.jsx)(G, {- variant: "secondary",- size: "small",- onClick: f,- children: "关闭"- })]- })- ]- }) : null- ]- });+function due(e, t) {+ return e === "dislike" ? t.feedback === "dislike" ? "已标记不合口味" : "已取消不合口味" : e === "seen" ? t.feedback === "seen" ? "已标记看过" : "已取消看过" : e === "dispose" ? t.disposal === "trash" ? "已移入回收站" : "已移出回收站" : "已记录一次高潮";}//#endregion-//#region src/react/follow-manage/feed-sources.tsx-var Vle = {- select: "选择",- name: "名称",- kind: "类型",- origin: "来源",- status: "状态",- interval: "频率",- fetched: "上次拉取",- fresh: "上次新增",- actions: "操作"-}, Hle = /* @__PURE__ */ new Set(["select", "actions"]), cL = () => X.invalidateQueries({- queryKey: yN,- exact: !0-}), lL = (e) => e.name || e.url, Ule = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;-function Wle(e) {- try {- return new URL(e).hostname.replace(/^www\./, "");- } catch {- return e;- }+//#region src/react/components/overlay-host.ts+function fue(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 Gle({ source: e }) {- return e.last_error ? /* @__PURE__ */ (0, L.jsx)(bw, {- variant: "caption",- color: "rose",- children: "拉取失败"- }) : e.enabled ? /* @__PURE__ */ (0, L.jsx)(bw, {- variant: "caption",- color: "lime",- children: "正常"- }) : /* @__PURE__ */ (0, L.jsx)(bw, {- variant: "caption",- color: "neutral",- children: "已暂停"- });+function pue(e) {+ let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");+ return fue(n ?? t.body);}-function Kle({ source: e, avatarInner: t }) {- let n = e.entity_id ? {- id: e.entity_id,- has_image: !!e.has_image,- avatar_focus: e.avatar_focus- } : null;- return /* @__PURE__ */ (0, L.jsx)("span", {+//#endregion+//#region src/react/cover-crop/cover-crop.ts+var mue = "/api/cover-crop", hue = (e, t) => q(mue, {+ code: e,+ box: t+}), HL = .704;+function UL({ className: e }) {+ return /* @__PURE__ */ (0, L.jsx)("svg", {"aria-hidden": !0,- className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary ${oL}`,- dangerouslySetInnerHTML: { __html: t(lL(e), n, null, "performer") }+ viewBox: "0 0 24 24",+ fill: "none",+ stroke: "currentColor",+ strokeWidth: 2,+ strokeLinecap: "round",+ strokeLinejoin: "round",+ className: e,+ children: /* @__PURE__ */ (0, L.jsx)("use", { href: "#i-crop" })});}-var qle = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";-function Jle(e) {- let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();- for (let { entity_id: r } of e) r !== null && (t.has(r) ? n.add(r) : t.add(r));- return n;-}-function uL(e, t) {- let n = e.length === 1 ? e[0] : null;- return g({- title: n ? "移除订阅源" : `移除 ${e.length} 条订阅源`,- body: n ? `将移除订阅源「${lL(n)}」,之后不再拉取它的新作;已经拉到的新作保留。` : "将移除所选订阅源,之后不再拉取它们的新作;已经拉到的新作保留。",- confirmLabel: n ? "移除订阅源" : "移除所选订阅源",- danger: !0,- onConfirm: t- });+function gue({ code: e, coverUrl: t, box: n, onSaved: r }) {+ let [i, a] = (0, I.useState)(!1), o = (0, I.useRef)(null);+ return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("button", {+ ref: o,+ type: "button",+ "aria-haspopup": "dialog",+ "data-cover-crop": !0,+ "aria-label": `裁剪 ${e} 的封面`,+ 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, L.jsx)(UL, { className: "size-3.75" })+ }), /* @__PURE__ */ (0, L.jsx)(cy, {+ getContainer: () => pue(o.current),+ children: /* @__PURE__ */ (0, L.jsx)(eP, {+ isOpen: i,+ onOpenChange: a,+ width: "cover-crop",+ label: "裁剪封面",+ children: /* @__PURE__ */ (0, L.jsx)(_ue, {+ code: e,+ coverUrl: t,+ box: n,+ onSaved: r,+ close: () => a(!1)+ })+ })+ })] });}-function Yle({ readOnly: e, toast: t, avatarInner: n }) {- let r = Nt({- queryKey: yN,- queryFn: ({ signal: e }) => tP(e)- }), i = Bw(), a = r.data, o = (0, I.useMemo)(() => a?.sources ?? [], [a]), [s, c] = (0, I.useState)(/* @__PURE__ */ new Set());- (0, I.useEffect)(() => {- c((e) => {- let t = new Set(o.map((e) => e.id)), n = new Set([...e].filter((e) => t.has(e)));- return n.size === e.size ? e : n;- });- }, [o]);- let u = Pt({- mutationFn: async (e) => {- let t = await l(e.ids, 4, async (t) => {- e.action === "remove" ? await rP(t) : await nP(t, e.action === "enabled");- });- return {- ...e,- results: t- };- },- onSuccess: (e) => {- let n = e.results.filter((e) => !e.ok), r = e.ids.length - n.length;- if (c(/* @__PURE__ */ new Set()), cL(), e.action === "remove" && r && t(`已移除 ${r} 条订阅源`), n.length) {- let e = n[0];- i.setError(`${n.length} 条没有写入:${e.ok ? "" : K(e.error)}`);- }- },- onError: (e) => i.setError(K(e))- }), d = (0, I.useMemo)(() => Jle(o), [o]), f = (0, I.useRef)({- readOnly: e,- avatarInner: n,- shared: d,- busy: null,- toggle: () => {},- fetch: () => {},- remove: () => {}+function _ue({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {+ let [a, o] = (0, I.useState)(null), [s, c] = (0, I.useState)(null), [l, u] = (0, I.useState)(!0), d = hA(), f = It({+ mutationFn: (t) => hue(e, t),+ onSuccess: () => {+ i(), r();+ }});- f.current = {- readOnly: e,- avatarInner: n,- shared: d,- busy: i.busy,- toggle: (e, t) => void i.run(`enabled-${e.id}`, (n) => nP(e.id, t, n), () => void cL()),- fetch: (e) => void i.run(`check-${e.id}`, (t) => iP(t, [e.id]), () => void cL()),- remove: (e) => void uL([e], async () => {- await rP(e.id), t(`已移除订阅源「${lL(e)}」`), cL();- })- };- let p = (0, I.useMemo)(() => {- let e = gI(), t = (e) => () => Vle[e] || e;- return [- e.display({- id: "select",- header: t("select"),- cell: (e) => /* @__PURE__ */ (0, L.jsx)(vj, {- slot: null,- isSelected: e.row.getIsSelected(),- onChange: (t) => e.row.toggleSelected(t),- "aria-label": `选择 ${lL(e.row.original)}`- })- }),- e.accessor(lL, {- id: "name",- header: t("name"),- cell: (e) => {- let t = qle(e.row.original, f.current.shared);- return /* @__PURE__ */ (0, L.jsxs)("span", {- className: "flex items-center gap-2 whitespace-nowrap text-body-medium text-text-primary",- children: [- /* @__PURE__ */ (0, L.jsx)(Kle, {- source: e.row.original,- avatarInner: f.current.avatarInner- }),- e.getValue(),- t ? /* @__PURE__ */ (0, L.jsx)("span", {- className: "text-body-2-regular text-text-secondary",- title: `站上这一页挂在「${t}」名下`,- children: t- }) : null- ]- });- }- }),- e.accessor((e) => e.kind_label, {- id: "kind",- header: t("kind"),- cell: (e) => /* @__PURE__ */ (0, L.jsx)("span", {- className: "whitespace-nowrap",- children: e.getValue()- })- }),- e.accessor((e) => e.url, {- id: "origin",- header: t("origin"),- cell: (e) => /* @__PURE__ */ (0, L.jsx)("a", {- href: e.getValue(),- target: "_blank",- rel: "noreferrer noopener",- title: "打开来源页面",- className: "text-text-primary underline-offset-2 hover:underline",- children: Wle(e.getValue())- })- }),- e.display({- id: "status",- header: t("status"),- cell: (e) => /* @__PURE__ */ (0, L.jsx)(Gle, { source: e.row.original })- }),- e.accessor((e) => Ule(e.interval_minutes), {- id: "interval",- header: t("interval"),- cell: (e) => /* @__PURE__ */ (0, L.jsx)("span", {- className: "whitespace-nowrap",- children: e.getValue()- })- }),- e.accessor((e) => e.last_fetched_at ? tk(e.last_fetched_at) : "还没拉过", {- id: "fetched",- header: t("fetched"),- cell: (e) => /* @__PURE__ */ (0, L.jsx)("span", {- className: "whitespace-nowrap tabular-nums",- children: e.getValue()- })- }),- e.accessor((e) => e.last_new_count, {- id: "fresh",- header: t("fresh"),- cell: (e) => /* @__PURE__ */ (0, L.jsx)("span", {- className: "whitespace-nowrap tabular-nums",- children: `${e.getValue()} 条`- })- }),- e.display({- id: "actions",- header: t("actions"),- cell: (e) => /* @__PURE__ */ (0, L.jsxs)("span", {- className: "flex items-center gap-1",+ function p(e) {+ o(e);+ let t = n && n.px?.[0] === e.width && n.px?.[1] === e.height ? {+ x0: n.x0,+ y0: n.y0,+ x1: n.x1,+ y1: n.y1+ } : UN(e, HL);+ c(GN(t, e, null));+ }+ let m = f.isPending;+ return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [+ /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "flex shrink-0 items-start gap-4 p-5",+ children: [+ /* @__PURE__ */ (0, L.jsx)(tP, { children: /* @__PURE__ */ (0, L.jsx)(UL, { className: "size-6" }) }),+ /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "flex min-w-0 flex-1 flex-col gap-2",children: [- /* @__PURE__ */ (0, L.jsx)(lO, {- "aria-label": `启用 ${lL(e.row.original)}`,- isSelected: e.row.original.enabled,- isDisabled: f.current.readOnly,- onChange: (t) => f.current.toggle(e.row.original, t)+ /* @__PURE__ */ (0, L.jsx)(UD, {+ slot: "title",+ className: "text-title-3-semibold text-text-primary",+ children: "裁剪封面"}),- /* @__PURE__ */ (0, L.jsx)(G, {- variant: "secondary",- size: "xs",- iconOnly: !0,- leadingIcon: DS,- "aria-label": `拉取 ${lL(e.row.original)}`,- disabled: f.current.readOnly,- ...Y(f.current.busy === `check-${e.row.original.id}`),- onClick: () => f.current.fetch(e.row.original)+ /* @__PURE__ */ (0, L.jsxs)("p", {+ className: "text-body-2-regular text-text-secondary",+ children: [e, ":框出正封那一块,封面原图不动。拖动方框移动,滚轮或角上那枚方块改大小。"]}),- /* @__PURE__ */ (0, L.jsx)(G, {- variant: "secondary",- size: "xs",- iconOnly: !0,- leadingIcon: pS,- "aria-label": `移除 ${lL(e.row.original)}`,- disabled: f.current.readOnly,- onClick: () => f.current.remove(e.row.original)- })+ f.error ? /* @__PURE__ */ (0, L.jsx)(J, {+ tone: "error",+ children: K(f.error)+ }) : null]+ }),+ /* @__PURE__ */ (0, L.jsx)(_A, {+ icon: MS,+ size: "small",+ "aria-label": "关闭",+ onClick: i})+ ]+ }),+ /* @__PURE__ */ (0, L.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, L.jsx)(iP, {+ src: t,+ aspect: l ? HL : null,+ box: s,+ size: a,+ label: `${e} 的正封取景框`,+ onSize: (e) => {+ VN(e) && p(e);+ },+ onBox: c})- ];- }, []), m = (0, I.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), h = aL({- data: o,- columns: p,- getRowId: (e) => String(e.id),- state: { rowSelection: m },- enableRowSelection: !0,- onRowSelectionChange: (e) => {- let t = typeof e == "function" ? e(m) : e;- c(new Set(Object.entries(t).filter(([, e]) => e).map(([e]) => Number(e))));- },- getCoreRowModel: rL()- });- if (!a) return r.error ? /* @__PURE__ */ (0, L.jsx)(J, {- tone: "error",- title: "打不开订阅源",- children: K(r.error)- }) : /* @__PURE__ */ (0, L.jsx)(RA, { children: "正在读订阅源。" });- let g = () => void i.run("check", (e) => iP(e), () => void cL()), _ = (e) => c((t) => {- let n = new Set(t);- return n.has(e) ? n.delete(e) : n.add(e), n;- }), v = o.filter((e) => s.has(e.id)), y = o.filter((e) => e.last_error);- return /* @__PURE__ */ (0, L.jsxs)("div", {- className: "flex flex-col gap-3",- children: [- /* @__PURE__ */ (0, L.jsx)(Ble, {- readOnly: e,- toast: t,- onAdded: () => void cL()- }),- /* @__PURE__ */ (0, L.jsxs)("div", {- className: "flex flex-wrap items-center justify-between gap-3",- children: [/* @__PURE__ */ (0, L.jsx)(RA, {- role: "status",- children: a.unread ? `有 ${a.unread} 条新作还没看` : "新作都看过了"+ }),+ /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",+ children: [/* @__PURE__ */ (0, L.jsx)(pL, {+ isSelected: l,+ onChange: (e) => {+ u(e), e && s && a && c(GN(s, a, HL));+ },+ children: /* @__PURE__ */ (0, L.jsx)("span", {+ className: "text-body-2-regular text-text-secondary",+ children: "锁定正封比例"+ })+ }), /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "flex flex-1 flex-wrap items-center justify-end gap-3",+ children: [/* @__PURE__ */ (0, L.jsx)(G, {+ variant: "secondary",+ ...Y(m),+ onClick: () => {+ m || f.mutate(null);+ },+ children: "恢复默认"}), /* @__PURE__ */ (0, L.jsx)(G, {- onClick: g,- disabled: e,- ...Y(i.busy === "check"),- children: "立即拉取"+ disabled: !s || !a,+ ...Y(m),+ onClick: () => {+ s && !m && f.mutate(s);+ },+ children: "用这一块"+ })]+ })]+ })+ ] });+}+//#endregion+//#region src/react/item-detail/item-detail-page.tsx+var WL = ({ name: e }) => /* @__PURE__ */ (0, L.jsx)("span", {+ className: "contents",+ dangerouslySetInnerHTML: { __html: s(e) }+}), GL = ({ html: e }) => /* @__PURE__ */ (0, L.jsx)("span", {+ className: "contents",+ dangerouslySetInnerHTML: { __html: e }+});+function vue(e) {+ let { queue: t, actions: n } = e, r = Ft({+ queryKey: t ? wL(t) : ["item-queue", "none"],+ queryFn: ({ signal: n }) => ML(t, e.helpers, n),+ enabled: !!t+ }), i = t && r.data || null, a = i ? PL(i, e.id) : t ? null : e.id, o = Ft({+ queryKey: CL(a ?? 0),+ queryFn: ({ signal: e }) => jL(a, e),+ enabled: a != null+ });+ if (!o.data || t && !i) {+ let e = o.error || r.error;+ return /* @__PURE__ */ (0, L.jsx)("div", {+ className: "sgrid",+ "data-item-detail": "",+ children: /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "vwrap",+ "data-item-media": "none",+ children: [/* @__PURE__ */ (0, L.jsx)(KL, { onClose: n.close }), /* @__PURE__ */ (0, L.jsx)("div", {+ "data-item-placeholder": "",+ children: e ? /* @__PURE__ */ (0, L.jsx)(jw, {+ message: d(e),+ onRetry: () => {+ r.error && r.refetch(), o.error && o.refetch();+ }+ }) : null})]+ })+ });+ }+ return /* @__PURE__ */ (0, L.jsx)(yue, {+ ...e,+ item: Yle(o.data, i),+ queue: i+ }, o.data.id);+}+var KL = ({ onClose: e }) => /* @__PURE__ */ (0, L.jsx)("button", {+ type: "button",+ className: "closestage",+ id: "closeStage",+ title: "关闭",+ "aria-label": "关闭",+ onClick: e,+ dangerouslySetInnerHTML: { __html: s("x") }+});+function yue(e) {+ let { item: t, queue: n, actions: r, helpers: i } = e, a = Fue(t, r, e.grid.cache, i.tagLabel), o = (0, I.useRef)(t);+ (0, I.useLayoutEffect)(() => {+ r.present(o.current, n);+ }, [r]), (0, I.useEffect)(() => {+ n?.kind === "playlist" && q(TL, {+ action: "progress",+ id: n.playlistId,+ asset_id: t.id+ }).catch(() => {});+ }, []);+ let s = lue(t, i.sourceOffline(t.location || ""));+ return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("div", {+ className: n ? "sgrid mixgrid" : "sgrid",+ "data-item-detail": "",+ children: [+ /* @__PURE__ */ (0, L.jsx)(bue, {+ item: t,+ gate: s,+ helpers: i,+ actions: r}),- y.length || i.error ? /* @__PURE__ */ (0, L.jsxs)("div", {- className: "flex flex-col gap-3",- children: [y.map((e) => /* @__PURE__ */ (0, L.jsx)(J, {- tone: "error",- title: `${lL(e)} 拉取失败`,- children: e.last_error- }, e.id)), i.error ? /* @__PURE__ */ (0, L.jsx)(zA, { children: i.error }) : null]+ n ? /* @__PURE__ */ (0, L.jsx)(Sue, {+ queue: n,+ itemId: t.id,+ helpers: i,+ actions: r}) : null,- v.length ? /* @__PURE__ */ (0, L.jsxs)(sL, {- label: "订阅源批量操作",- count: `已选 ${v.length} 条订阅源`,+ /* @__PURE__ */ (0, L.jsx)(Tue, {+ item: t,+ queue: n,+ write: a,+ helpers: i,+ actions: r+ })+ ]+ }), !n && e.relatedLimit > 0 ? /* @__PURE__ */ (0, L.jsx)(Pue, { ...e }) : null] });+}+function bue({ item: e, gate: t, helpers: n, actions: r }) {+ let [i, o] = (0, I.useState)(t ? "" : "auto"), s = (0, I.useRef)(null), c = (0, I.useRef)(e);+ (0, I.useLayoutEffect)(() => {+ let e = s.current;+ if (!(!e || !i)) return r.mountPlayer(e, c.current, null, i === "clicked" ? { autoplay: !0 } : void 0);+ }, [r, i]);+ let l = n.badgeHtml(e.location || "", e.cost || "", "srcbig");+ return /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "vwrap",+ "data-item-media": t || "video",+ children: [+ /* @__PURE__ */ (0, L.jsx)(KL, { onClose: r.close }),+ t === "offline" ? /* @__PURE__ */ (0, L.jsx)(xue, {+ item: e,+ badge: l,+ helpers: n,+ actions: r+ }) : t === "online" ? /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "gate",+ id: "onlineGate",+ role: "status",+ "data-item-gate": "online",children: [- /* @__PURE__ */ (0, L.jsx)(G, {- variant: "secondary",- size: "small",- disabled: e,- ...Y(u.isPending),- onClick: () => u.mutate({- ids: v.map((e) => e.id),- action: "enabled"- }),- children: "启用"- }),- /* @__PURE__ */ (0, L.jsx)(G, {- variant: "secondary",- size: "small",- disabled: e,- ...Y(u.isPending),- onClick: () => u.mutate({- ids: v.map((e) => e.id),- action: "paused"- }),- children: "暂停"- }),- /* @__PURE__ */ (0, L.jsx)(G, {- variant: "danger",- size: "small",- disabled: e,- ...Y(u.isPending),- onClick: () => void uL(v, () => u.mutateAsync({- ids: v.map((e) => e.id),- action: "remove"- })),- children: "移除"- }),- /* @__PURE__ */ (0, L.jsx)(G, {- variant: "ghost",- size: "small",- onClick: () => c(/* @__PURE__ */ new Set()),- children: "取消选择"+ /* @__PURE__ */ (0, L.jsx)(GL, { html: l }),+ /* @__PURE__ */ (0, L.jsx)("b", { children: "在线资产" }),+ /* @__PURE__ */ (0, L.jsx)("span", { children: "这条没有对应的关注条目,媒体地址无从解析。" }),+ /* @__PURE__ */ (0, L.jsx)("button", {+ className: "chip",+ id: "openSavedFollow",+ type: "button",+ onClick: r.openSavedFollow,+ children: "打开已保存关注"})]+ }) : t === "metered" && !i ? /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "gate",+ id: "gate",+ "data-item-gate": "metered",+ onClick: () => o("clicked"),+ children: [/* @__PURE__ */ (0, L.jsx)(GL, { html: l }), /* @__PURE__ */ (0, L.jsxs)("span", { children: ["点此开始拉流 · ", a(e.size || 0)] })]}) : null,- o.length ? /* @__PURE__ */ (0, L.jsx)(Sj, {- onRowClick: (e) => _(Number(e)),- children: /* @__PURE__ */ (0, L.jsxs)(yj, {- "aria-label": "JAV 订阅源",- size: "sm",- children: [/* @__PURE__ */ (0, L.jsx)(GD, { children: h.getHeaderGroups()[0].headers.map((e) => {- let t = iL(e.column.columnDef.header, e.getContext());- return /* @__PURE__ */ (0, L.jsx)(KD, {- id: e.id,- isRowHeader: e.column.id === "name",- children: Hle.has(e.column.id) ? /* @__PURE__ */ (0, L.jsx)(q_, { children: t }) : t- }, e.id);- }) }), /* @__PURE__ */ (0, L.jsx)(JD, { children: h.getRowModel().rows.map((e) => /* @__PURE__ */ (0, L.jsx)(ZD, {- id: e.id,- "data-follow-selected": e.getIsSelected() || void 0,- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, L.jsx)($D, { children: iL(e.column.columnDef.cell, e.getContext()) }, e.id))- }, e.id)) })]- })- }) : /* @__PURE__ */ (0, L.jsx)(Fw, {- icon: OS,- title: "还没有订阅源",- shell: "plain",- children: "在上面按女优名添加,或在人物页点「订阅新作」。"+ /* @__PURE__ */ (0, L.jsx)("video", {+ ref: s,+ id: "vid",+ className: "video-js vjs-big-play-centered",+ controls: !0,+ playsInline: !0,+ preload: t ? "none" : "metadata",+ hidden: t === "offline" || t === "online" || t === "metered" && !i})]});}-//#endregion-//#region src/react/follow-manage/source-list.tsx-var Xle = Object.fromEntries(Object.entries(SN).map(([e, t]) => [t, e])), dL = 740;-function Zle() {- let [e, t] = (0, I.useState)(!1), n = (0, I.useRef)(null), r = (0, I.useCallback)((e) => {- if (n.current?.disconnect(), !e) {- n.current = null;- return;- }- let r = new ResizeObserver(() => t(e.clientWidth < dL));- r.observe(e), n.current = r, t(e.clientWidth < dL);- }, []);- return (0, I.useEffect)(() => () => n.current?.disconnect(), []), [r, e];-}-var Qle = {- select: "选择",- author: "创作者",- source: "来源",- provider: "站点",- status: "状态",- checked: "上次检查",- actions: "操作"-};-function $le({ page: e, pages: t, onPage: n }) {- return t <= 1 ? null : /* @__PURE__ */ (0, L.jsxs)("nav", {- "aria-label": "关注列表分页",- className: "flex flex-wrap items-center justify-center gap-2",+function xue({ item: e, badge: t, helpers: n, actions: r }) {+ let [i, a] = (0, I.useState)(!1), [o, s] = (0, I.useState)(!1), c = async () => {+ a(!0);+ let t = await r.checkSource(e.location || "").catch(() => !1);+ a(!1), t ? r.reopen() : s(!0);+ };+ return /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "gate offline",+ id: "offlineGate",+ role: "status",+ "data-item-gate": "offline",children: [- /* @__PURE__ */ (0, L.jsx)(G, {- variant: "secondary",- size: "small",- disabled: e <= 1,- onClick: () => n(e - 1),- children: "上一页"- }),- /* @__PURE__ */ (0, L.jsx)("ul", {- className: "flex flex-wrap items-center gap-1",- children: QO(e, t).map((t, r) => /* @__PURE__ */ (0, L.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, L.jsx)("span", {- "aria-hidden": !0,- className: "px-1 text-body-2-regular text-text-tertiary",- children: "…"- }) : /* @__PURE__ */ (0, L.jsx)(G, {- variant: t === e ? "secondary" : "ghost",- size: "small",- "aria-label": `第 ${t} 页`,- "aria-current": t === e ? "page" : void 0,- onClick: () => n(Number(t)),- children: t- }) }, t === "…" ? `dots-${r}` : t))- }),- /* @__PURE__ */ (0, L.jsx)(G, {- variant: "secondary",- size: "small",- disabled: e >= t,- onClick: () => n(e + 1),- children: "下一页"+ /* @__PURE__ */ (0, L.jsx)(GL, { html: t }),+ /* @__PURE__ */ (0, L.jsx)("b", { children: "脱盘模式" }),+ /* @__PURE__ */ (0, L.jsx)("span", { children: n.offlineReason(e.location || "") }),+ /* @__PURE__ */ (0, L.jsx)("button", {+ className: "chip",+ id: "offlineRetry",+ type: "button",+ disabled: i,+ onClick: () => void c(),+ children: o ? "仍未挂载 · 再试" : "重新检测"})]});}-function eue({ source: e, selected: t, onToggle: n, handlers: r }) {- return /* @__PURE__ */ (0, L.jsxs)("div", {- "data-selected": t || void 0,- className: "flex min-h-16 flex-wrap items-center gap-3 px-2 py-3",- onClick: (e) => {- xj(e, e.currentTarget) && n(!t);- },- children: [- /* @__PURE__ */ (0, L.jsx)(vj, {- isSelected: t,- onChange: n,- "aria-label": `选择 ${e.label}`- }),- /* @__PURE__ */ (0, L.jsxs)("span", {- className: "flex min-w-0 grow flex-col gap-0.5",- children: [/* @__PURE__ */ (0, L.jsx)(cI, { source: e }), e.last_error ? /* @__PURE__ */ (0, L.jsx)("small", {- className: "text-caption-1-regular text-text-error-primary",- children: e.last_error- }) : null]- }),- /* @__PURE__ */ (0, L.jsx)("span", {- className: "flex shrink-0 items-center gap-1.5 text-body-2-regular text-text-secondary",- title: e.provider_label,- children: /* @__PURE__ */ (0, L.jsx)(aI, {- provider: e.provider,- label: e.provider_label- })- }),- /* @__PURE__ */ (0, L.jsx)(sI, { source: e }),- /* @__PURE__ */ (0, L.jsx)("span", {- className: "shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary",- children: mP(e)- }),- /* @__PURE__ */ (0, L.jsx)(lO, {- "aria-label": `启用 ${e.label}`,- isSelected: e.enabled,- isDisabled: r.readOnly,- onChange: (t) => r.toggle(e, t)- }),- /* @__PURE__ */ (0, L.jsxs)("span", {- className: "flex shrink-0 items-center gap-1",- children: [/* @__PURE__ */ (0, L.jsx)(G, {- variant: "secondary",- size: "small",- iconOnly: !0,- leadingIcon: DS,- "aria-label": `检查 ${e.label} 的更新`,- disabled: !e.enabled || r.readOnly,- ...Y(r.busy),- onClick: () => r.check([e.id])- }), /* @__PURE__ */ (0, L.jsx)(G, {- variant: "secondary",- size: "small",- iconOnly: !0,- leadingIcon: pS,- "aria-label": `移除 ${e.label}`,- disabled: r.readOnly,- onClick: () => r.remove(e)+function Sue({ queue: e, itemId: t, helpers: n, actions: r }) {+ let a = aue(e), o = (0, I.useRef)(null), c = wue(e, t, r), l = (0, I.useRef)(c);+ l.current = c;+ let u = (0, I.useCallback)((t) => {+ o.current = t, t && (n.wireDrag(t), e.kind === "playlist" && n.wireDragReorder(t, {+ selector: "[data-queue-row]",+ attribute: "data-queue-row",+ onMove: (e, t, n) => l.current.move(+e, +t, n)+ }));+ }, [n, e.kind]), d = Cue(e, r), f = e.kind === "mix" ? /* @__PURE__ */ (0, L.jsx)("button", {+ type: "button",+ "data-save-mix": "",+ title: "保存为播放列表",+ "aria-label": "保存为播放列表",+ onClick: d,+ dangerouslySetInnerHTML: { __html: s("playlist") }+ }) : e.kind === "playlist" ? /* @__PURE__ */ (0, L.jsx)("button", {+ type: "button",+ "data-edit-playlist": "",+ title: "编辑播放列表",+ "aria-label": "编辑播放列表",+ onClick: r.editPlaylist,+ dangerouslySetInnerHTML: { __html: s("playlist") }+ }) : null, p = {+ kind: e.kind,+ seedId: e.seedId,+ playlistId: e.playlistId+ };+ return /* @__PURE__ */ (0, L.jsx)(iI, {+ kind: e.kind,+ title: a.title,+ summary: a.summary,+ onClose: r.close,+ actions: f,+ listRef: u,+ children: e.items.map((a) => {+ let o = e.kind === "editions" && a.edition_label ? /* @__PURE__ */ (0, L.jsx)("i", {+ className: `qedition javedition ${rue[a.edition_label] || "censored"}`,+ children: a.edition_label+ }) : null;+ return /* @__PURE__ */ (0, L.jsxs)(aI, {+ current: a.id === t,+ "data-queue-item": a.id,+ row: { "data-queue-row": a.id },+ onClick: () => r.openQueueItem(p, a.id),+ pic: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(GL, { html: n.queueThumbHtml(a) }), /* @__PURE__ */ (0, L.jsx)("i", {+ className: "dur mono",+ children: i(a.duration)+ })] }),+ lead: /* @__PURE__ */ (0, L.jsx)(GL, { html: n.queueAvatarHtml(a) }),+ after: e.kind === "playlist" ? /* @__PURE__ */ (0, L.jsxs)("span", {+ className: "queueedit",+ children: [/* @__PURE__ */ (0, L.jsx)("i", {+ className: "queuegrip",+ "aria-hidden": "true",+ children: /* @__PURE__ */ (0, L.jsx)(WL, { name: "grip-vertical" })+ }), /* @__PURE__ */ (0, L.jsx)("button", {+ type: "button",+ "data-queue-remove": a.id,+ title: "移出播放列表",+ "aria-label": "移出播放列表",+ onClick: () => c.remove(a.id),+ children: /* @__PURE__ */ (0, L.jsx)(WL, { name: "x" })+ })]+ }) : null,+ children: [/* @__PURE__ */ (0, L.jsxs)("span", {+ className: "mixitemhead",+ children: [o, /* @__PURE__ */ (0, L.jsx)("b", {+ "data-middle-truncate": "",+ children: n.displayName(a)+ })]+ }), /* @__PURE__ */ (0, L.jsx)("span", {+ "data-truncate-end": "",+ children: e.kind === "parts" ? `第 ${a.part_label || ""} 卷` : n.mixLabel(a)})]- })- ]+ }, a.id);+ })});}-function tue({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, onToggleGroup: o, onToggle: s }) {- let c = e.map((e) => e.id), l = e.filter((e) => e.enabled).map((e) => e.id), u = e.filter(TN).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = RN(r, c);- return /* @__PURE__ */ (0, L.jsxs)("section", {- "aria-label": `${t} 的关注来源`,- className: Nw({- variant: "raised",- padding: "none",- className: "flex flex-col overflow-hidden p-2"- }),- children: [/* @__PURE__ */ (0, L.jsxs)("div", {- "data-follow-author-header": !0,- "data-open": n || void 0,- className: "flex flex-wrap items-center gap-3 px-2 py-2.5",- children: [- /* @__PURE__ */ (0, L.jsx)(oI, {- group: e,- name: t- }),- /* @__PURE__ */ (0, L.jsx)("b", {- className: "min-w-0 grow text-body-medium break-words text-text-primary",- children: t- }),- /* @__PURE__ */ (0, L.jsx)(G, {- variant: "secondary",- size: "small",- iconOnly: !0,- leadingIcon: DS,- "aria-label": `检查 ${t} 的全部来源`,- disabled: !l.length || i.readOnly,- ...Y(i.busy),- onClick: () => i.check(l)- }),- /* @__PURE__ */ (0, L.jsxs)("span", {- className: "flex shrink-0 items-center gap-1",- title: d,- children: [e.map((e) => /* @__PURE__ */ (0, L.jsx)(aI, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, L.jsx)(q_, { children: `来源:${d}` })]- }),- u ? /* @__PURE__ */ (0, L.jsx)("span", {- className: "shrink-0 text-body-2-regular text-text-error-primary",- children: `${u} 个失败`- }) : null,- /* @__PURE__ */ (0, L.jsx)(G, {- variant: "secondary",- size: "small",- leadingIcon: lS,- "aria-pressed": p.all ? "true" : p.some ? "mixed" : "false",- "aria-label": `${p.all ? "取消全选" : "全选"} ${t} 的来源`,- onClick: () => o(!p.all),- children: p.all ? "取消全选" : "全选"- }),- /* @__PURE__ */ (0, L.jsx)(G, {- variant: "secondary",- size: "small",- "aria-expanded": n,- "aria-controls": f,- leadingIcon: n ? cS : aS,- "aria-label": `${n ? "收起" : "展开"} ${t} 的来源`,- onClick: () => a(!n),- children: n ? "收起" : "展开"- })- ]- }), /* @__PURE__ */ (0, L.jsx)("div", {- id: f,- hidden: !n,- "data-source-divider": !0,- children: e.map((e) => /* @__PURE__ */ (0, L.jsx)(eue, {- source: e,- handlers: i,- selected: r.has(e.id),- onToggle: (t) => s(e.id, t)- }, e.id))- })]+function Cue(e, t) {+ let n = It({ mutationFn: (t) => q(TL, {+ action: "create",+ name: t,+ asset_ids: e.items.map((e) => e.id),+ source_kind: "mix",+ source_seed_asset_id: e.seedId+ }).then((e) => e.playlist) });+ return () => t.saveMix({+ title: e.title,+ count: e.items.length,+ save: (e) => n.mutateAsync(e)});}-function nue(e) {- let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: u, onPage: d, onLayout: f, onPageSize: p, onSelected: m, toast: h, openFollow: _ } = e, v = t.sources, y = (0, I.useMemo)(() => t.author_aliases || [], [t.author_aliases]), b = t.counts || {}, [x, S] = (0, I.useState)(/* @__PURE__ */ new Set()), [C, w] = Zle(), [T, E] = (0, I.useState)(""), D = (0, I.useMemo)(() => PN(v, n, r, y), [- v,- n,- r,- y- ]), O = (0, I.useMemo)(() => FN(D, n, r, y), [- D,- n,- r,- y- ]), { job: k, running: A, outcome: j, start: M } = fj({- queryKey: jce,- queryFn: ({ signal: e }) => HN(e),- start: (e) => GN(e),- onError: (e) => E(K(e)),- onFinish: (e) => {- uP(), h(e.status === "failed" ? e.error || "检查失败" : dP(e));- }- }), N = (e) => {- A || M.isPending || (E(""), M.mutate(e));- }, P = (e, t) => m(zN(s, [e], t)), ee = (e, t) => m(zN(s, e, t)), F = Pt({- mutationFn: (e) => JN(e),+function wue(e, t, n) {+ let r = wL({+ kind: "playlist",+ playlistId: e.playlistId+ }), i = (e) => (X.setQueryData(r, NL(e)), e), a = (t) => q(TL, {+ id: e.playlistId,+ ...t+ }).then((e) => e.playlist), o = It({+ mutationFn: (e) => a({+ action: "reorder",+ asset_ids: e+ }),onSuccess: (e, t) => {- lP([t]), m(zN(s, [t], !1)), h("已取消关注来源");+ i(e);},- onError: (e) => E(K(e))- }), te = Pt({- mutationFn: (e) => qN(e.id, e.enabled),- onSuccess: (e, t) => {- cP(t.id, { enabled: t.enabled }), E("");+ onError: (e) => n.failure("调整播放顺序", e)+ }), s = e.items.map((e) => e.id);+ return {+ move: async (t, r, c) => {+ if (e.kind !== "playlist") return;+ let l = sue(s, t, r, c);+ if (cue(l, s)) return;+ let u = s;+ await o.mutateAsync(l), n.toast("已调整播放顺序", { undo: async () => {+ i(await a({+ action: "reorder",+ asset_ids: u+ }));+ } });},- onError: (e) => E(K(e))- }), ne = (e) => void g({- title: "取消关注来源",- body: "将移除这个来源及已抓取的条目,媒体文件保留。",- confirmLabel: "取消关注来源",- danger: !0,- onConfirm: () => F.mutateAsync(e.id)- }), re = Pt({- mutationFn: async (e) => {- let t = await l(e.ids, 4, async (t) => {- e.action === "remove" ? await JN(t) : await qN(t, e.action === "enabled");+ remove: (e) => {+ let r = s;+ g({+ title: "移出播放列表",+ body: "这个视频将从播放列表移除,视频文件保留。",+ confirmLabel: "移出播放列表",+ onConfirm: async () => {+ let o = await a({+ action: "remove",+ asset_id: e+ });+ if (n.toast("已移出播放列表", { undo: async () => {+ await a({+ action: "add",+ asset_ids: [e]+ });+ let s = i(await a({+ action: "reorder",+ asset_ids: r+ }));+ (!o.items.length || e === t) && n.openQueueItem({+ kind: "playlist",+ playlistId: s.id+ }, t, !1);+ } }), !o.items.length) {+ n.openPlaylists();+ return;+ }+ i(o), e === t && n.openQueueItem({+ kind: "playlist",+ playlistId: o.id+ }, o.current_asset_id || o.items[0].id, !1);+ }});- return {- ...e,- done: e.ids.filter((e, n) => t[n]?.ok),- results: t- };- },- onSuccess: (e) => {- if (e.action === "remove") lP(e.done);- else for (let t of e.done) cP(t, { enabled: e.action === "enabled" });- m(zN(s, e.done, !1));- let t = e.results.filter((e) => !e.ok);- if (t.length) {- E(`${t.length}/${e.ids.length} 个来源未更新:${K(t[0]?.error)}`);- return;- }- E("");- let n = e.action === "remove" ? "删除" : e.action === "enabled" ? "启用" : "暂停";- h(`已${n} ${e.done.length} 个关注来源`);- },- onError: (e) => E(K(e))- }), ie = Pt({- mutationFn: async (e) => {- let t = ((await eP()).groups || []).flatMap((e) => [- e.primary,- ...e.variants,- ...e.duplicates- ]).filter((e) => e.status === "new").map((e) => e.id);- return {- ids: t,- failed: (await l(t, 6, (t) => $N(t, e))).filter((e) => !e.ok)- };- },- onSuccess: (e) => {- if (uP(), e.failed.length) {- E(`批量更新 ${e.failed.length}/${e.ids.length} 项未完成`);- return;- }- E(""), h(`已批量标记 ${e.ids.length} 项`);- },- onError: (e) => E(K(e))- }), ae = (e, t) => te.mutate({- id: e.id,- enabled: t- }), oe = (0, I.useRef)({- check: N,- toggle: ae,- remove: ne,- busy: !1,- readOnly: c- });- oe.current = {- check: N,- toggle: ae,- remove: ne,- busy: A || M.isPending,- readOnly: c+ }};- let se = oe.current, ce = (0, I.useMemo)(() => {- let e = gI(), t = (e) => () => Qle[e] || e;- return [- e.display({- id: "select",- header: t("select"),- cell: (e) => /* @__PURE__ */ (0, L.jsx)(vj, {- slot: null,- isSelected: e.row.getIsSelected(),- onChange: (t) => e.row.toggleSelected(t),- "aria-label": `选择 ${e.row.original.source.label}`- })- }),- e.accessor((e) => e.author, {- id: "author",- header: t("author"),- cell: (e) => /* @__PURE__ */ (0, L.jsxs)("span", {- className: "flex min-w-0 items-center gap-2",- children: [/* @__PURE__ */ (0, L.jsx)(oI, {- group: e.row.original.group,- name: e.row.original.author- }), /* @__PURE__ */ (0, L.jsx)("span", {- className: "min-w-0 break-words",- children: e.row.original.author- })]- })- }),- e.accessor((e) => e.source.label, {- id: "source",- header: t("source"),- cell: (e) => /* @__PURE__ */ (0, L.jsxs)("span", {- className: "flex min-w-0 flex-col gap-0.5",- children: [/* @__PURE__ */ (0, L.jsx)(cI, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, L.jsx)("small", {- className: "text-caption-1-regular text-text-error-primary",- children: e.row.original.source.last_error- }) : null]- })- }),- e.accessor((e) => e.source.provider_label, {- id: "provider",- header: t("provider"),- cell: (e) => /* @__PURE__ */ (0, L.jsxs)("span", {- className: "flex items-center gap-1.5",- children: [/* @__PURE__ */ (0, L.jsx)(aI, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]- })- }),- e.display({- id: "status",- header: t("status"),- cell: (e) => /* @__PURE__ */ (0, L.jsx)(sI, { source: e.row.original.source })- }),- e.accessor((e) => e.source.last_checked_at || "", {- id: "checked",- header: t("checked"),- cell: (e) => mP(e.row.original.source)- }),- e.display({- id: "actions",- header: t("actions"),- cell: (e) => /* @__PURE__ */ (0, L.jsxs)("span", {- className: "flex items-center gap-1",+}+function Tue({ item: e, queue: t, write: n, helpers: r, actions: i }) {+ let o = e.location === "online", s = n.busyAttrs, [c, l] = (0, I.useState)(!1);+ return /* @__PURE__ */ (0, L.jsx)("div", {+ className: "side",+ "data-item-side": "",+ children: /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "sidecontent",+ children: [+ /* @__PURE__ */ (0, L.jsx)(Eue, {+ item: e,+ queue: t,+ helpers: r,+ actions: i,+ onStatus: n.setSourceState+ }),+ o ? null : /* @__PURE__ */ (0, L.jsx)("span", {+ className: "srcstate detailtitlestate",+ "aria-live": "polite",+ children: n.sourceState+ }),+ /* @__PURE__ */ (0, L.jsx)(Oue, {+ item: e,+ write: n+ }),+ /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "smeta mono",+ "data-reveal-line": "",children: [- /* @__PURE__ */ (0, L.jsx)(lO, {- "aria-label": `启用 ${e.row.original.source.label}`,- isSelected: e.row.original.source.enabled,- isDisabled: se.readOnly,- onChange: (t) => oe.current.toggle(e.row.original.source, t)+ /* @__PURE__ */ (0, L.jsxs)("span", {+ className: "detailmetaitem",+ children: [/* @__PURE__ */ (0, L.jsx)(WL, { name: "monitor" }), /* @__PURE__ */ (0, L.jsxs)("span", { children: [+ e.width || "?",+ "×",+ e.height || "?"+ ] })]}),- /* @__PURE__ */ (0, L.jsx)(G, {- variant: "secondary",- size: "small",- iconOnly: !0,- leadingIcon: DS,- "aria-label": `检查 ${e.row.original.source.label} 的更新`,- disabled: !e.row.original.source.enabled || se.readOnly,- ...Y(se.busy),- onClick: () => oe.current.check([e.row.original.source.id])+ /* @__PURE__ */ (0, L.jsxs)("span", {+ className: "detailmetaitem",+ children: [/* @__PURE__ */ (0, L.jsx)(WL, { name: "hard-drive" }), /* @__PURE__ */ (0, L.jsx)("span", { children: a(e.size || 0) })]}),- /* @__PURE__ */ (0, L.jsx)(G, {- variant: "secondary",- size: "small",- iconOnly: !0,- leadingIcon: pS,- "aria-label": `移除 ${e.row.original.source.label}`,- disabled: se.readOnly,- onClick: () => oe.current.remove(e.row.original.source)- })+ e.release_date ? /* @__PURE__ */ (0, L.jsxs)("span", {+ className: "detailmetaitem",+ children: [/* @__PURE__ */ (0, L.jsx)(WL, { name: "calendar" }), /* @__PURE__ */ (0, L.jsx)("span", { children: e.release_date })]+ }) : null,+ e.region_label ? /* @__PURE__ */ (0, L.jsxs)("button", {+ className: "detailmetaitem regionlink",+ type: "button",+ "data-open-region": e.region || "",+ title: e.region_settled ? "已判定的产地;打开同产地的作品" : "按番号或厂牌推断的产地,批量判定后不再变;打开同产地的作品",+ onClick: () => i.openRegion(e.region || ""),+ children: [/* @__PURE__ */ (0, L.jsx)(WL, { name: "globe" }), /* @__PURE__ */ (0, L.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]+ }) : null]- })- })- ];- }, [se]), le = (0, I.useMemo)(() => {- let e = Xle[n];- return e ? [{- id: e,- desc: r === "desc"- }] : [];- }, [n, r]), ue = (0, I.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), R = a === "table", z = IN(R ? O.length : D.length, o, i), de = aL({- data: O,- columns: ce,- getRowId: (e) => String(e.source.id),- state: {- sorting: le,- rowSelection: ue,- pagination: {- pageIndex: z.page - 1,- pageSize: o- }- },- manualSorting: !0,- enableRowSelection: !0,- onSortingChange: (e) => {- let t = (typeof e == "function" ? e(le) : e)[0];- if (!t) return;- let n = SN[t.id];- n && u(n, t.desc ? "desc" : "asc");- },- onRowSelectionChange: (e) => {- let t = typeof e == "function" ? e(ue) : e;- m(new Set(Object.entries(t).filter(([, e]) => e).map(([e]) => Number(e))));- },- onPaginationChange: (e) => {- let t = {- pageIndex: z.page - 1,- pageSize: o- }, n = typeof e == "function" ? e(t) : e;- n.pageSize === o ? n.pageIndex !== t.pageIndex && d(n.pageIndex + 1) : p(n.pageSize);- },- getCoreRowModel: rL(),- getPaginationRowModel: Nle()- }), fe = de.getRowModel().rows, pe = R ? fe.map((e) => e.original.source.id) : D.slice(z.start, z.end).flatMap((e) => e.map((e) => e.id)), me = RN(s, pe), he = [...s], ge = fP(j), _e = pP(j), ve = D.length > 0 && x.size >= D.length;- return v.length ? /* @__PURE__ */ (0, L.jsxs)("div", {- className: Nw({- padding: "none",- className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"- }),- children: [- /* @__PURE__ */ (0, L.jsxs)("div", {- ref: C,- className: "flex flex-wrap items-center gap-2",- children: [- /* @__PURE__ */ (0, L.jsx)("h3", {- className: "mr-auto text-title-2-medium text-text-primary",- children: "关注列表"- }),- /* @__PURE__ */ (0, L.jsx)("span", {- className: "text-body-2-regular text-text-secondary",- children: `${v.length} 个来源${b.new ? ` · ${b.new} 条未看` : ""}`- }),- /* @__PURE__ */ (0, L.jsx)(G, {- variant: "primary",- leadingIcon: DS,- disabled: c,- "aria-label": "检查全部",- iconOnly: w,- ...Y(se.busy),- onClick: () => N([]),- children: "检查全部"- }),- /* @__PURE__ */ (0, L.jsxs)("span", {- "data-button-group": !0,- role: "group",- "aria-label": "关注列表版式",- children: [/* @__PURE__ */ (0, L.jsx)(G, {- variant: "ghost",- iconOnly: !0,- leadingIcon: wS,- "aria-label": bN[0][1],- "aria-pressed": !R,- onClick: () => f("default")- }), /* @__PURE__ */ (0, L.jsx)(G, {- variant: "ghost",- iconOnly: !0,- leadingIcon: AS,- "aria-label": bN[1][1],- "aria-pressed": R,- onClick: () => f("table")- })]- }),- /* @__PURE__ */ (0, L.jsx)(sj, {- "aria-label": "关注列表排序",- selectedKey: n,- onSelectionChange: (e) => {- if (e === null) return;- let t = String(e);- u(t, sN[t]);- },- children: oN.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(cj, {- id: e,- children: t- }, e))- }),- /* @__PURE__ */ (0, L.jsx)(G, {- variant: "secondary",- iconOnly: !0,- leadingIcon: r === "asc" ? rne : nne,- "aria-label": Rce(n, r),- onClick: () => u(n, r === "asc" ? "desc" : "asc")- }),- R ? null : /* @__PURE__ */ (0, L.jsx)(G, {- variant: "secondary",- iconOnly: w,- leadingIcon: ve ? aS : cS,- "aria-label": ve ? "全部展开" : "全部收起",- onClick: () => S(ve ? /* @__PURE__ */ new Set() : new Set(D.map((e) => String(e[0].author_key || e[0].id)))),- children: ve ? "全部展开" : "全部收起"- })- ]- }),- /* @__PURE__ */ (0, L.jsxs)("div", {- "aria-live": "polite",- className: "flex flex-col gap-3 empty:hidden",- children: [- A ? k?.total ? /* @__PURE__ */ (0, L.jsx)(zw, {- label: k.message || `${k.older ? "抓取历史" : "检查更新"}:已完成 ${k.checked || 0}/${k.total} 个来源`,- value: k.checked || 0,- max: k.total- }) : /* @__PURE__ */ (0, L.jsx)(Iw, { label: k?.message || "正在准备检查任务" }) : null,- T ? /* @__PURE__ */ (0, L.jsx)(J, {- tone: "error",- title: "操作未完成",- children: T- }) : null,- ge.length ? /* @__PURE__ */ (0, L.jsx)(J, {- tone: "error",- title: `${ge.length} 个来源检查失败`,- extra: /* @__PURE__ */ (0, L.jsx)("ul", {- className: "flex flex-col gap-0.5 text-body-2-regular",- children: ge.map((e, t) => /* @__PURE__ */ (0, L.jsx)("li", { children: `${e.provider_label || e.provider || ""} ${e.author || e.label || e.ref || ""}:${e.error || "未说明原因"}` }, `${e.provider || ""}-${e.ref || t}`))+ }),+ /* @__PURE__ */ (0, L.jsx)(kue, {+ item: e,+ helpers: r,+ actions: i+ }),+ /* @__PURE__ */ (0, L.jsx)(Aue, {+ item: e,+ write: n,+ helpers: r,+ actions: i+ }),+ /* @__PURE__ */ (0, L.jsx)(Mue, { item: e }),+ /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "fb",+ "data-item-feedback": "",+ children: [+ /* @__PURE__ */ (0, L.jsx)("button", {+ type: "button",+ className: "like",+ id: "likeBtn",+ "aria-label": e.liked ? "取消喜欢" : "喜欢",+ title: "喜欢 · 记录口味偏好",+ "aria-pressed": !!e.liked,+ ...s("like"),+ onClick: () => n.preference({ liked: !e.liked }),+ children: /* @__PURE__ */ (0, L.jsx)(WL, { name: "thumbs-up" })}),- children: "这些来源这一轮没有取到更新。"- }) : null,- _e ? /* @__PURE__ */ (0, L.jsx)(J, {- tone: "warning",- children: `候选已入库,但这一次的原始响应没有留档:${_e}`- }) : null- ]- }),- he.length ? /* @__PURE__ */ (0, L.jsxs)(sL, {- label: "关注来源批量操作",- count: `已选 ${he.length} 个来源`,- children: [- /* @__PURE__ */ (0, L.jsx)(G, {- variant: "secondary",- size: "small",- disabled: c,- ...Y(se.busy),- onClick: () => N(he),- children: "检查所选"- }),- /* @__PURE__ */ (0, L.jsx)(G, {- variant: "secondary",- size: "small",- disabled: c,- ...Y(re.isPending),- onClick: () => re.mutate({- ids: he,- action: "enabled"+ /* @__PURE__ */ (0, L.jsx)("button", {+ type: "button",+ className: "reason",+ id: "preferenceToggle",+ "aria-label": "喜爱理由",+ title: "喜爱理由",+ "aria-expanded": c,+ "aria-controls": "preferencePanel",+ "data-has-reason": String(!!e.like_reason),+ onClick: () => l((e) => !e),+ children: /* @__PURE__ */ (0, L.jsx)(WL, { name: "notebook-pen" })}),- children: "启用"- }),- /* @__PURE__ */ (0, L.jsx)(G, {- variant: "secondary",- size: "small",- disabled: c,- ...Y(re.isPending),- onClick: () => re.mutate({- ids: he,- action: "paused"+ /* @__PURE__ */ (0, L.jsx)("button", {+ type: "button",+ className: "dislike",+ "data-kind": "dislike",+ "aria-label": "不合口味",+ title: "不合口味 · 降低推荐权重",+ "aria-pressed": e.feedback === "dislike",+ ...s("dislike"),+ onClick: () => n.feedback("dislike"),+ children: /* @__PURE__ */ (0, L.jsx)(WL, { name: "thumbs-down" })}),- children: "暂停"- }),- /* @__PURE__ */ (0, L.jsx)(G, {- variant: "danger",- size: "small",- disabled: c,- ...Y(re.isPending),- onClick: () => void g({- title: `删除 ${he.length} 个关注来源`,- body: "将移除所选关注来源及其已抓取条目,媒体文件保留。",- confirmLabel: "删除所选来源",- danger: !0,- onConfirm: () => re.mutateAsync({- ids: he,- action: "remove"- })+ /* @__PURE__ */ (0, L.jsx)("button", {+ type: "button",+ className: "seen",+ "data-kind": "seen",+ "aria-label": "看过了",+ title: "看过了 · 只降低近期推荐",+ "aria-pressed": e.feedback === "seen",+ ...s("seen"),+ onClick: () => n.feedback("seen"),+ children: /* @__PURE__ */ (0, L.jsx)(WL, { name: "eye" })}),- children: "删除"- }),- /* @__PURE__ */ (0, L.jsx)(G, {- variant: "ghost",- size: "small",- onClick: () => m(/* @__PURE__ */ new Set()),- children: "取消选择"- })- ]- }) : null,- R ? /* @__PURE__ */ (0, L.jsx)(Sj, {- follow: !0,- onRowClick: (e) => P(Number(e), !s.has(Number(e))),- children: /* @__PURE__ */ (0, L.jsxs)(yj, {- "aria-label": "关注来源",- size: "sm",- sortDescriptor: le[0] ? {- column: le[0].id,- direction: le[0].desc ? "descending" : "ascending"- } : void 0,- onSortChange: (e) => de.setSorting([{- id: String(e.column),- desc: e.direction === "descending"- }]),- children: [/* @__PURE__ */ (0, L.jsx)(GD, { children: de.getHeaderGroups()[0].headers.map((e) => {- let t = e.column.id in SN, n = iL(e.column.columnDef.header, e.getContext());- return /* @__PURE__ */ (0, L.jsx)(KD, {- id: e.id,- allowsSorting: t,- isRowHeader: e.column.id === "source",- children: ({ sortDirection: e }) => t ? /* @__PURE__ */ (0, L.jsxs)("span", {- className: "flex items-center gap-0.5",- children: [n, /* @__PURE__ */ (0, L.jsx)("span", {- "data-sort-indicator": !0,- "data-direction": e || void 0,- children: /* @__PURE__ */ (0, L.jsx)(rj, {})- })]- }) : /* @__PURE__ */ (0, L.jsx)(q_, { children: n })- }, e.id);- }) }), /* @__PURE__ */ (0, L.jsx)(JD, {- renderEmptyState: () => "这一页没有来源",- children: fe.map((e) => /* @__PURE__ */ (0, L.jsx)(ZD, {- id: e.id,- "data-follow-selected": e.getIsSelected() || void 0,- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, L.jsx)($D, { children: iL(e.column.columnDef.cell, e.getContext()) }, e.id))- }, e.id))- })]- })- }) : /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(vj, {- isSelected: me.all,- isIndeterminate: me.some,- onChange: (e) => ee(pe, e),- "aria-label": "全选本页来源",- children: "全选本页"- }), /* @__PURE__ */ (0, L.jsx)("div", {- className: "flex flex-col gap-3",- children: D.slice(z.start, z.end).map((e) => {- let t = String(e[0].author_key || e[0].id);- return /* @__PURE__ */ (0, L.jsx)(tue, {- group: e,- name: AN(e, y),- handlers: se,- selected: s,- open: !x.has(t),- onOpen: (e) => {- let n = new Set(x);- e ? n.delete(t) : n.add(t), S(n);- },- onToggleGroup: (t) => ee(e.map((e) => e.id), t),- onToggle: P- }, t);+ /* @__PURE__ */ (0, L.jsx)("button", {+ type: "button",+ className: "later",+ id: "stageLater",+ "aria-label": "稍后看",+ title: "稍后看 · 加入或移出队列",+ "aria-pressed": !!e.watch_later,+ ...s("later"),+ onClick: n.later,+ children: /* @__PURE__ */ (0, L.jsx)(WL, { name: e.watch_later ? "check" : "bookmark-plus" })+ }),+ /* @__PURE__ */ (0, L.jsx)("button", {+ type: "button",+ className: "playlistadd",+ id: "addPlaylist",+ "aria-label": "加入播放列表",+ title: "加入播放列表",+ onClick: () => i.addToPlaylist(e),+ children: /* @__PURE__ */ (0, L.jsx)(WL, { name: "playlist" })+ }),+ /* @__PURE__ */ (0, L.jsx)("button", {+ type: "button",+ className: "upgrade",+ id: "betterVersion",+ "aria-label": "寻找更好版本",+ title: e.better_version ? e.better_version_reason || "已标记寻找更好版本" : "寻找高清、无水印或完整版",+ "aria-pressed": !!e.better_version,+ ...s("quality"),+ onClick: n.quality,+ children: /* @__PURE__ */ (0, L.jsx)(WL, { name: "sparkles" })+ }),+ /* @__PURE__ */ (0, L.jsx)("button", {+ type: "button",+ className: "dispose",+ "data-kind": "dispose",+ "aria-label": "移入回收站",+ title: "移入回收站 · 文件仍保留,可从回收站永久清除",+ "aria-pressed": e.disposal === "trash",+ ...s("dispose"),+ onClick: () => n.feedback("dispose"),+ children: /* @__PURE__ */ (0, L.jsx)(WL, { name: "trash" })+ })+ ]+ }),+ /* @__PURE__ */ (0, L.jsx)(Nue, {+ item: e,+ open: c,+ write: n+ }),+ /* @__PURE__ */ (0, L.jsxs)("button", {+ type: "button",+ className: "obtn",+ "data-kind": "o",+ ...s("o"),+ onClick: () => n.feedback("o"),+ children: [+ /* @__PURE__ */ (0, L.jsx)(WL, { name: "sperm" }),+ /* @__PURE__ */ (0, L.jsx)("span", { children: "记一次高潮" }),+ /* @__PURE__ */ (0, L.jsx)("b", {+ className: "mono",+ id: "oCount",+ children: e.o_count || 0+ })+ ]})- })] }),- /* @__PURE__ */ (0, L.jsxs)("div", {- className: "flex flex-wrap items-center justify-between gap-3",- children: [- /* @__PURE__ */ (0, L.jsx)("span", {- className: "text-body-2-regular text-text-secondary",- children: `${z.start + 1}–${z.end} / ${z.total} ${R ? "个来源" : "位创作者"}`- }),- /* @__PURE__ */ (0, L.jsx)(sj, {- "aria-label": "每页显示数量",- size: "sm",- selectedKey: String(o),- onSelectionChange: (e) => {- e !== null && de.setPageSize(Number(e));- },- children: xN.map((e) => /* @__PURE__ */ (0, L.jsx)(cj, {- id: String(e),- children: `每页 ${e} ${R ? "条" : "位"}`- }, e))- }),- /* @__PURE__ */ (0, L.jsx)($le, {- page: z.page,- pages: z.pages,- onPage: (e) => de.setPageIndex(e - 1)- })- ]- }),- b.new ? /* @__PURE__ */ (0, L.jsxs)("div", {- className: "-mx-6 -mb-5 flex flex-wrap items-center gap-2 border-t border-separator-border rounded-b-2xl bg-card-footer px-6 py-4 max-sm:-mx-4 max-sm:px-4",+ ]+ })+ });+}+function Eue({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {+ let a = (0, I.useRef)(null), [o, s] = (0, I.useState)(!1), [c, l] = (0, I.useState)(!1);+ (0, I.useLayoutEffect)(() => {+ let e = a.current;+ if (!e) return;+ let t = () => {+ e.hasAttribute("data-expanded") || l(e.scrollHeight > e.clientHeight + 1);+ }, n = new ResizeObserver(t);+ return n.observe(e), t(), () => n.disconnect();+ }, []);+ let u = () => s((e) => !e), d = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + oue(e, t);+ return /* @__PURE__ */ (0, L.jsx)("div", {+ className: "detailtitle",+ children: /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "stitle",+ "data-reveal-line": "",+ children: [/* @__PURE__ */ (0, L.jsx)("span", {+ ref: a,+ className: "stitletext",+ "data-detail-title": "",+ "data-expanded": o ? "" : void 0,+ "data-foldable": c ? "" : void 0,+ onClick: () => {+ c && !String(getSelection() || "") && u();+ },+ dangerouslySetInnerHTML: { __html: d }+ }), /* @__PURE__ */ (0, L.jsxs)("span", {+ className: "srctools detailtitletools",children: [- /* @__PURE__ */ (0, L.jsx)("span", {- className: "mr-auto text-body-2-regular text-text-secondary",- children: `未看 ${b.new} · 已看 ${b.seen || 0} · 已保存 ${b.saved || 0} · 已忽略 ${b.ignored || 0}`- }),- /* @__PURE__ */ (0, L.jsx)(G, {- variant: "secondary",- size: "small",- onClick: _,- children: "去看更新"- }),- /* @__PURE__ */ (0, L.jsx)(G, {- variant: "secondary",- size: "small",- disabled: c,- ...Y(ie.isPending),- onClick: () => void g({- title: "标记已看",- body: "将把当前未看作品标记为已看。",- confirmLabel: "标记已看",- onConfirm: () => ie.mutateAsync("seen")- }),- children: "全部标记已看"+ /* @__PURE__ */ (0, L.jsx)("button", {+ type: "button",+ "data-title-fold": "",+ hidden: !c,+ "aria-expanded": o,+ "aria-label": o ? "收起标题" : "展开标题",+ title: o ? "收起标题" : "展开完整标题",+ onClick: u,+ children: /* @__PURE__ */ (0, L.jsx)(WL, { name: o ? "chevron-up" : "chevron-down" })}),- /* @__PURE__ */ (0, L.jsx)(G, {- variant: "secondary",- size: "small",- disabled: c,- ...Y(ie.isPending),- onClick: () => void g({- title: "标记已忽略",- body: "将把当前未看作品标记为已忽略。",- confirmLabel: "标记已忽略",- onConfirm: () => ie.mutateAsync("ignored")- }),- children: "全部忽略"+ e.has_cover && e.code ? /* @__PURE__ */ (0, L.jsx)(gue, {+ code: e.code,+ coverUrl: `/cover?code=${encodeURIComponent(e.code)}`,+ box: e.poster_box || null,+ onSaved: () => void X.invalidateQueries({+ queryKey: CL(e.id),+ exact: !0+ })+ }) : null,+ e.location === "online" ? null : /* @__PURE__ */ (0, L.jsx)(Due, {+ id: e.id,+ actions: r,+ onStatus: i})]+ })]+ })+ });+}+function Due({ id: e, actions: t, onStatus: n }) {+ let [r, i] = (0, I.useState)(""), a = async () => {+ r || (i("reveal"), n(""), n(await t.reveal(e)), i(""));+ }, o = async () => {+ if (r) return;+ i("sync"), n("正在核对目录…");+ let a = await t.sync(e);+ n(a.text), i(""), a.removed.includes(e) && t.close();+ };+ return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("button", {+ type: "button",+ "data-reveal": e,+ title: "在文件管理器里打开源文件所在目录",+ "aria-label": "定位源文件",+ ...r === "reveal" ? {+ "aria-busy": !0,+ "aria-disabled": !0+ } : {},+ onClick: () => void a(),+ dangerouslySetInnerHTML: { __html: r === "reveal" ? k("正在定位") : s("folder-open") }+ }), /* @__PURE__ */ (0, L.jsx)("button", {+ type: "button",+ "data-sync": e,+ title: "核对该目录:磁盘上已删除的,移入 Peach 回收站",+ "aria-label": "同步删除",+ ...r === "sync" ? {+ "aria-busy": !0,+ "aria-disabled": !0+ } : {},+ onClick: () => void o(),+ children: /* @__PURE__ */ (0, L.jsx)(WL, { name: "folder-sync" })+ })] });+}+function Oue({ item: e, write: t }) {+ let n = IL(e.rating);+ return /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "rating",+ id: "detailRating",+ role: "group",+ "aria-label": "评分",+ "data-value": FL(e.rating),+ children: [/* @__PURE__ */ (0, L.jsx)("div", {+ className: "ratingstars",+ children: [+ 1,+ 2,+ 3,+ 4,+ 5+ ].map((e) => /* @__PURE__ */ (0, L.jsx)("button", {+ type: "button",+ className: "star",+ "data-rate": e,+ "data-on": String(e <= n),+ title: e === n ? "再点一次取消评分" : `${e} 星`,+ "aria-label": e === n ? `取消评分(当前 ${e} 星)` : `评为 ${e} 星`,+ ...t.busyAttrs(`rate:${e}`),+ onClick: () => t.rate(e),+ children: /* @__PURE__ */ (0, L.jsx)(WL, { name: "star" })+ }, e))+ }), /* @__PURE__ */ (0, L.jsx)("span", {+ className: "ratingvalue",+ "aria-live": "polite",+ children: Qle(e.rating)+ })]+ });+}+function kue({ item: e, helpers: t, actions: n }) {+ let r = (0, I.useMemo)(() => Zle(e), [e]), [i, a] = (0, I.useState)(!1), o = Math.max(0, r.cast.length - 8), s = (e, r, a) => {+ let o = e === "performer" && a >= 8 && !i, s = e === "performer" ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("span", { children: r.name.slice(0, 1) }), /* @__PURE__ */ (0, L.jsx)(GL, { html: t.faceHtml(r) })] }) : e === "studio" ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("span", { children: r.name.slice(0, 2) }), r.has_logo ? /* @__PURE__ */ (0, L.jsx)("img", {+ src: `/logo?studio=${encodeURIComponent(r.name)}&variant=icon`,+ alt: "",+ loading: "lazy",+ "data-drop": "self"+ }) : null] }) : /* @__PURE__ */ (0, L.jsx)("span", { children: r.name.slice(0, 1) }), c = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("span", {+ className: "idface",+ children: s+ }), /* @__PURE__ */ (0, L.jsx)("span", {+ className: "idname",+ children: r.name+ })] }), l = `idcell${r.id ? " entitylink" : ""}${e === "studio" ? " logo" : ""}`, u = e === "performer" && a >= 8 ? { "data-castoverflow": "" } : {};+ return r.id ? /* @__PURE__ */ (0, L.jsx)("button", {+ type: "button",+ className: l,+ "data-entity-kind": e,+ "data-entity-name": r.name,+ title: r.name,+ hidden: o,+ ...u,+ onClick: () => n.openEntity(e, r.name),+ children: c+ }, `${e}:${r.name}`) : /* @__PURE__ */ (0, L.jsx)("span", {+ className: l,+ title: r.name,+ hidden: o,+ ...u,+ children: c+ }, `${e}:${r.name}`);+ }, c = (e, t, n, r = null) => n.length ? /* @__PURE__ */ (0, L.jsxs)("section", {+ className: `idgroup idgroup-${t}`,+ children: [/* @__PURE__ */ (0, L.jsx)("h5", {+ className: "idlabel",+ children: e+ }), /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "idrow",+ children: [n.map((e, n) => s(t, e, n)), r]+ })]+ }, `${t}:${e}`) : null, l = [+ r.unowned ? /* @__PURE__ */ (0, L.jsxs)("section", {+ className: "idgroup idgroup-unowned",+ children: [/* @__PURE__ */ (0, L.jsx)("h5", {+ className: "idlabel",+ children: "归属"+ }), /* @__PURE__ */ (0, L.jsx)("div", {+ className: "idrow",+ children: /* @__PURE__ */ (0, L.jsxs)("button", {+ className: "idcell unownedlink",+ type: "button",+ "data-open-unowned": "",+ title: "打开未归属:馆藏里没有署名人的作品",+ onClick: n.openUnowned,+ children: [/* @__PURE__ */ (0, L.jsx)("span", {+ className: "idface",+ children: /* @__PURE__ */ (0, L.jsx)(WL, { name: "user-round" })+ }), /* @__PURE__ */ (0, L.jsx)("span", {+ className: "idname",+ children: "未归属"+ })]+ })+ })]+ }, "unowned") : c(t.performerLabel(e), "performer", r.cast, o && !i ? /* @__PURE__ */ (0, L.jsxs)("button", {+ type: "button",+ className: "castmore",+ id: "castMore",+ onClick: () => a(!0),+ children: [+ "还有 ",+ o,+ " 位"+ ]+ }) : null),+ c("厂牌", "studio", r.studios),+ c("片商", "studio", r.makers)+ ].filter(Boolean);+ return /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "detailidentity",+ "data-item-identity": "",+ children: [+ l.length ? /* @__PURE__ */ (0, L.jsx)("div", {+ className: "identityprimary",+ children: l+ }) : null,+ c("创作者", "creator", r.creators),+ r.series.length ? /* @__PURE__ */ (0, L.jsxs)("section", {+ className: "idgroup idseries",+ children: [/* @__PURE__ */ (0, L.jsx)("h5", {+ className: "idlabel",+ children: "系列"+ }), /* @__PURE__ */ (0, L.jsx)("div", {+ className: "seriesrows",+ children: r.series.map((e) => e.id ? /* @__PURE__ */ (0, L.jsxs)("button", {+ type: "button",+ className: "serieslink entitylink",+ "data-entity-kind": "series",+ "data-entity-name": e.name,+ title: e.name,+ onClick: () => n.openEntity("series", e.name),+ children: [/* @__PURE__ */ (0, L.jsx)(WL, { name: "tags" }), /* @__PURE__ */ (0, L.jsx)("span", { children: e.name })]+ }, e.name) : /* @__PURE__ */ (0, L.jsxs)("span", {+ className: "serieslink",+ title: e.name,+ children: [/* @__PURE__ */ (0, L.jsx)(WL, { name: "tags" }), /* @__PURE__ */ (0, L.jsx)("span", { children: e.name })]+ }, e.name))+ })]}) : null]- }) : /* @__PURE__ */ (0, L.jsx)(Fw, {- shell: "plain",- icon: OS,- title: "还没有关注来源",- actions: /* @__PURE__ */ (0, L.jsx)(Sw, {- variant: "primary",- size: "small",- href: "/follow-manage?tab=add",- children: "添加关注"- }),- children: "关注来源及其检查状态会显示在这里。"});}-//#endregion-//#region src/react/follow-manage/follow-manage-page.tsx-var fL = [- ["list", "关注列表"],- ["add", "添加关注"],- ["feeds", "JAV 订阅源"],- ["source", "来源和凭证"]-], pL = (e) => fL.some(([t]) => t === e);-function mL({ term: e, figure: t, unit: n }) {+function Aue({ item: e, write: t, helpers: n, actions: r }) {+ let i = eue(e, n);return /* @__PURE__ */ (0, L.jsxs)("div", {- className: Nw({- padding: "none",- className: "flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4"- }),- children: [/* @__PURE__ */ (0, L.jsx)("span", {- className: "text-body-medium text-text-secondary",- children: e- }), /* @__PURE__ */ (0, L.jsxs)("b", {- className: "text-title-1-medium tabular-nums text-text-primary",- children: [t, /* @__PURE__ */ (0, L.jsx)("small", {- className: "text-body-2-regular text-text-secondary",- children: ` ${n}`+ className: "stags",+ id: "detailTags",+ "data-item-tags": "",+ children: [i.map((e) => /* @__PURE__ */ (0, L.jsxs)("span", {+ className: "detailtag",+ children: [/* @__PURE__ */ (0, L.jsx)("button", {+ type: "button",+ className: "tagfilter",+ "data-tag": e.k,+ onClick: () => r.openTag(e.k),+ children: n.tagLabel(e.k)+ }), /* @__PURE__ */ (0, L.jsx)("button", {+ type: "button",+ className: "tagremove",+ "data-remove-tag": e.k,+ title: "从此视频隐藏该标签",+ "aria-label": `删除标签 ${n.tagLabel(e.k)}`,+ ...t.busyAttrs(`tag:${e.k}`),+ onClick: () => t.removeTag(e),+ children: /* @__PURE__ */ (0, L.jsx)(WL, { name: "x" })})]+ }, e.k)), /* @__PURE__ */ (0, L.jsx)(jue, {+ item: e,+ write: t,+ helpers: n})]});}-function rue(e) {- let { route: t, savePreference: n, toast: r, openFollow: i, readOnly: a, readOnlyMessage: o, writerUrl: s } = e, [c, l] = (0, I.useState)(pL(e.tab) ? e.tab : "list"), [u, d] = (0, I.useState)(Math.max(1, Math.floor(e.page) || 1)), [f, p] = (0, I.useState)(() => cN(e.sort, e.dir).sort), [m, h] = (0, I.useState)(() => cN(e.sort, e.dir).dir), [g, _] = (0, I.useState)(Fce(e.layout) ? e.layout : "default"), [v, y] = (0, I.useState)(Ice(e.pageSize)), [b, x] = (0, I.useState)(/* @__PURE__ */ new Set()), S = Nt({- queryKey: _N,- queryFn: ({ signal: e }) => BN(e)- }), C = Nt({- queryKey: vN,- queryFn: ({ signal: e }) => VN(e)- }), w = Nt({- queryKey: yN,- queryFn: ({ signal: e }) => tP(e)- }), T = S.data || { sources: [] }, E = C.data || {- root: "",- providers: []- }, D = T.sources;+function jue({ item: e, write: t, helpers: n }) {+ let r = (0, I.useRef)(null), i = (0, I.useRef)(null), a = (0, I.useRef)(null), o = (0, I.useRef)(!1), [s, c] = (0, I.useState)(!1), [l, u] = (0, I.useState)(""), [d, f] = (0, I.useState)(""), [p, m] = (0, I.useState)(-1), h = (0, I.useCallback)(() => {+ i.current && _(i.current), c(!1);+ }, []);(0, I.useEffect)(() => {- x((e) => {- let t = LN(e, D);- return t.size === e.size ? e : t;- });- }, [D]);- let O = (e) => {- let n = e.sort ?? f, r = e.dir ?? m;- t({- tab: e.tab ?? c,- page: e.page ?? u,- sort: n === "checked" ? "" : n,- dir: r === sN[n] ? "" : r- });- }, k = NN(D), A = D.filter(TN).length, j = D.filter((e) => e.enabled).length, M = (E.providers || []).filter((e) => e.requirement === "required" && !vP(e)).length, N = new Set((w.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;- return /* @__PURE__ */ (0, L.jsxs)(Lw, { children: [- a ? /* @__PURE__ */ (0, L.jsx)(J, {- tone: "warning",- title: "本机只能浏览",- extra: s ? /* @__PURE__ */ (0, L.jsx)("p", {- className: "text-body-2-regular",- children: /* @__PURE__ */ (0, L.jsx)("a", {- href: s,- className: "text-text-primary underline underline-offset-2",- children: "前往写入端管理关注"- })- }) : void 0,- children: o- }) : null,- /* @__PURE__ */ (0, L.jsxs)("div", {- className: goe,- "aria-label": "关注概览",+ if (!s) return;+ let e = (e) => {+ let t = e.target;+ !i.current?.contains(t) && t !== r.current && h();+ }, t = setTimeout(() => document.addEventListener("pointerdown", e, !0), 0);+ return () => {+ clearTimeout(t), document.removeEventListener("pointerdown", e, !0);+ };+ }, [s, h]);+ let g = s ? nue(d, n.tagCandidates(), VL()) : {+ recent: [],+ results: [],+ create: ""+ }, v = [+ ...g.recent,+ ...g.results,+ ...g.create ? [{+ k: g.create,+ n: -1+ }] : []+ ], y = (e, n) => {+ h(), n || t.addTag(e.k);+ }, b = (n) => {+ if (!n.nativeEvent.isComposing) {+ if (n.key === "Escape") {+ n.preventDefault(), h(), r.current?.focus();+ return;+ }+ if (n.key === "ArrowDown" || n.key === "ArrowUp") {+ if (n.preventDefault(), !v.length) return;+ let e = (p + (n.key === "ArrowDown" ? 1 : -1) + v.length) % v.length;+ m(e), i.current?.querySelectorAll("[data-pick]")[e]?.scrollIntoView({ block: "nearest" });+ return;+ }+ if (n.key === "Enter") {+ n.preventDefault();+ let r = p >= 0 ? v[p] : null;+ r ? y(r, r.n !== -1 && LL(e, r.k)) : l.trim() && (h(), t.addTag(l.trim()));+ }+ }+ }, x = -1, S = (t) => {+ x += 1;+ let r = x, i = LL(e, t.k);+ return /* @__PURE__ */ (0, L.jsxs)("button", {+ type: "button",+ className: `tagpickitem${i ? " selected" : ""}${r === p ? " active" : ""}`,+ "data-pick": t.k,+ "aria-pressed": i,+ onClick: () => y(t, i),children: [- /* @__PURE__ */ (0, L.jsx)(mL, {- term: "关注创作者",- figure: k.length,- unit: "位"- }),- /* @__PURE__ */ (0, L.jsx)(mL, {- term: "启用来源",- figure: j,- unit: `/ ${D.length}`- }),- /* @__PURE__ */ (0, L.jsx)(mL, {- term: "检查失败",- figure: A,- unit: "个来源"- }),- /* @__PURE__ */ (0, L.jsx)(mL, {- term: "未看更新",- figure: T.counts?.new || 0,- unit: "条"- }),- /* @__PURE__ */ (0, L.jsx)(mL, {- term: "JAV 订阅",- figure: N,- unit: "位"+ /* @__PURE__ */ (0, L.jsx)(WL, { name: i ? "check" : "tags" }),+ /* @__PURE__ */ (0, L.jsx)("span", {+ className: "pickname",+ children: n.tagLabel(t.k)}),- /* @__PURE__ */ (0, L.jsx)(mL, {- term: "未看新作",- figure: w.data?.unread || 0,- unit: "条"+ /* @__PURE__ */ (0, L.jsx)("span", {+ className: "pickcount",+ children: (t.n || 0).toLocaleString()})]- }),- /* @__PURE__ */ (0, L.jsxs)(rO, {- selectedKey: c,- onSelectionChange: (e) => {- let t = String(e);- pL(t) && (l(t), O({ tab: t }));- },- className: "flex flex-col gap-6",- children: [- /* @__PURE__ */ (0, L.jsx)(iO, {- "aria-label": "关注管理区域",- className: IM,- children: fL.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(aO, {- id: e,- className: LM,- children: e === "source" && M ? `${t}(${M})` : t- }, e))- }),- /* @__PURE__ */ (0, L.jsx)(oO, {- id: "list",- className: "flex flex-col gap-4",- children: /* @__PURE__ */ (0, L.jsx)(nue, {- data: T,- sort: f,- dir: m,- page: u,- layout: g,- pageSize: v,- selected: b,- readOnly: a,- toast: r,- openFollow: i,- onSort: (e, t) => {- p(e), h(t), d(1), O({- sort: e,- dir: t,- page: 1- });- },- onPage: (e) => {- d(e), O({ page: e });- },- onSelected: x,- onLayout: (e) => {- _(e), d(1), n({ layout: e }), O({ page: 1 });+ }, `${r}:${t.k}`);+ };+ return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("button", {+ ref: r,+ type: "button",+ className: "tagplus",+ id: "tagPlus",+ title: "添加标签",+ "aria-label": "添加标签",+ "aria-expanded": s,+ onClick: () => {+ i.current && (E(i.current), c(!0), u(""), f(""), m(-1), requestAnimationFrame(() => a.current?.focus()));+ },+ children: /* @__PURE__ */ (0, L.jsx)(WL, { name: "plus" })+ }), /* @__PURE__ */ (0, L.jsxs)("div", {+ ref: i,+ className: "tagpicker",+ id: "tagPicker",+ role: "dialog",+ "aria-label": "添加标签",+ hidden: !0,+ children: [/* @__PURE__ */ (0, L.jsxs)("label", {+ className: "tagpicksearch",+ children: [/* @__PURE__ */ (0, L.jsx)(WL, { name: "search" }), /* @__PURE__ */ (0, L.jsx)("input", {+ ref: a,+ id: "tagPickSearch",+ maxLength: 80,+ placeholder: "搜索或输入新标签",+ autoComplete: "off",+ value: l,+ onChange: (e) => {+ u(e.target.value), m(-1), o.current || f(e.target.value);+ },+ onCompositionStart: () => {+ o.current = !0;+ },+ onCompositionEnd: (e) => {+ o.current = !1, f(e.currentTarget.value);+ },+ onKeyDown: b+ })]+ }), /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "tagpickbody",+ id: "tagPickBody",+ children: [s && g.recent.length ? /* @__PURE__ */ (0, L.jsxs)("section", {+ className: "tagpicksection",+ children: [/* @__PURE__ */ (0, L.jsx)("h4", { children: "最近使用" }), /* @__PURE__ */ (0, L.jsx)("div", {+ className: "tagpickgrid",+ children: g.recent.map(S)+ })]+ }) : null, s ? /* @__PURE__ */ (0, L.jsxs)("section", {+ className: "tagpicksection",+ children: [/* @__PURE__ */ (0, L.jsx)("h4", { children: d.trim() ? "搜索结果" : "全部标签" }), /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "tagpickgrid",+ children: [g.results.map(S), g.create ? (x += 1, /* @__PURE__ */ (0, L.jsxs)("button", {+ type: "button",+ className: `tagpickitem${x === p ? " active" : ""}`,+ "data-pick": g.create,+ onClick: () => {+ h(), t.addTag(g.create);},- onPageSize: (e) => {- y(e), d(1), n({ pageSize: e }), O({ page: 1 });- }- })- }),- /* @__PURE__ */ (0, L.jsxs)(oO, {- id: "add",- className: "flex flex-col gap-8",- children: [/* @__PURE__ */ (0, L.jsx)(Uce, {- data: T,- credentials: E,- readOnly: a,- toast: r,- openCredentials: () => {- l("source"), O({ tab: "source" });- }- }), /* @__PURE__ */ (0, L.jsx)(Kce, {- groups: T.author_aliases || [],- readOnly: a,- toast: r,- suggestions: T.alias_suggestions || [],- sources: T.sources- })]- }),- /* @__PURE__ */ (0, L.jsx)(oO, {- id: "feeds",- className: "flex flex-col gap-4",- children: /* @__PURE__ */ (0, L.jsx)(Yle, {- readOnly: a,- toast: r,- avatarInner: e.avatarInner- })- }),- /* @__PURE__ */ (0, L.jsx)(oO, {- id: "source",- className: "flex flex-col gap-4",- children: /* @__PURE__ */ (0, L.jsx)(tle, {- data: E,- readOnly: a,- toast: r- })+ children: [/* @__PURE__ */ (0, L.jsx)(WL, { name: "plus" }), /* @__PURE__ */ (0, L.jsxs)("span", {+ className: "pickname",+ children: [+ "新建“",+ g.create,+ "”"+ ]+ })]+ }, "create")) : null]+ })]+ }) : null]+ })]+ })] });+}+function Mue({ item: e }) {+ let t = uue(e);+ return /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "trace",+ children: [/* @__PURE__ */ (0, L.jsxs)("div", {+ className: "trace-metric",+ children: [/* @__PURE__ */ (0, L.jsxs)("div", {+ className: "lab mono",+ children: [/* @__PURE__ */ (0, L.jsx)("span", { children: "离开位置" }), /* @__PURE__ */ (0, L.jsx)("span", {+ id: "ratioTxt",+ children: "0%"+ })]+ }), /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "bar",+ children: [/* @__PURE__ */ (0, L.jsx)("u", { id: "watched" }), /* @__PURE__ */ (0, L.jsx)("b", { id: "mark" })]+ })]+ }), /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "trace-metric",+ children: [/* @__PURE__ */ (0, L.jsxs)("div", {+ className: "lab mono trace-real",+ children: [/* @__PURE__ */ (0, L.jsx)("span", { children: "真实观看" }), /* @__PURE__ */ (0, L.jsx)("span", {+ id: "realTxt",+ children: t == null ? "0%" : `${t.toFixed(0)}%`+ })]+ }), /* @__PURE__ */ (0, L.jsx)("div", {+ className: "bar",+ children: /* @__PURE__ */ (0, L.jsx)("u", {+ id: "realBar",+ style: t == null ? void 0 : { width: `${t.toFixed(1)}%` }})- ]- })- ] });+ })]+ })]+ });+}+function Nue({ item: e, open: t, write: n }) {+ let [r, i] = (0, I.useState)(e.like_reason || ""), a = (0, I.useRef)(null);+ (0, I.useEffect)(() => {+ t && a.current?.focus();+ }, [t]), (0, I.useEffect)(() => {+ i(e.like_reason || "");+ }, [e.like_reason]);+ let o = n.busy.has("preference");+ return /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "preference",+ id: "preferencePanel",+ hidden: !t,+ children: [/* @__PURE__ */ (0, L.jsx)("textarea", {+ ref: a,+ id: "likeReason",+ maxLength: 2e3,+ placeholder: "为什么喜欢?",+ value: r,+ onChange: (e) => i(e.target.value)+ }), /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "preference-foot",+ children: [/* @__PURE__ */ (0, L.jsx)("span", {+ id: "preferenceState",+ "aria-live": "polite",+ children: n.preferenceState+ }), /* @__PURE__ */ (0, L.jsx)("button", {+ type: "button",+ className: "geist-button primary savepreference",+ id: "savePreference",+ title: "提交喜爱理由",+ "aria-label": "提交喜爱理由",+ ...n.busyAttrs("preference"),+ onClick: () => n.preference({ reason: r }),+ dangerouslySetInnerHTML: { __html: o ? `${k("正在提交喜爱理由")}<span>提交中…</span>` : "<span>提交</span>" }+ })]+ })]+ });+}+function Pue(e) {+ let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = Ft({+ queryKey: Gle(t.id, n),+ queryFn: async ({ signal: e }) => {+ let r = await iw(qle(t.id, n), e);+ return i.cache(r.items || []), r.items || [];+ }+ }), [o] = (0, I.useState)(() => r.relatedSkeletonHtml()), s = (0, I.useCallback)((e) => {+ e && (y(e), r.wireDrag(e));+ }, [r]);+ return a.data && !a.data.length ? null : /* @__PURE__ */ (0, L.jsxs)("div", {+ className: "next",+ "data-item-related": "",+ children: [/* @__PURE__ */ (0, L.jsx)("h3", {+ className: "font-semibold",+ children: "接着看"+ }), /* @__PURE__ */ (0, L.jsx)("div", {+ ref: s,+ className: "nrow",+ id: "nrow",+ children: a.data ? /* @__PURE__ */ (0, L.jsx)(Zw, {+ mode: "items",+ variant: "next",+ items: a.data,+ helpers: i.helpers,+ actions: i.actions,+ layout: e.layout,+ selectMode: e.selectMode,+ selected: e.selected,+ seekSeconds: e.seekSeconds,+ revision: 0,+ cache: i.cache,+ wireDrag: r.wireDrag,+ skeletonHtml: () => ""+ }) : a.isError ? null : /* @__PURE__ */ (0, L.jsx)(GL, { html: o })+ })]+ });+}+function Fue(e, t, n, r) {+ let i = e.id, a = CL(i), [o, s] = (0, I.useState)(() => /* @__PURE__ */ new Set()), [c, l] = (0, I.useState)(""), [u, d] = (0, I.useState)(""), f = (e, t) => s((n) => {+ let r = new Set(n);+ return t ? r.add(e) : r.delete(e), r;+ }), p = () => X.getQueryData(a) || e, m = (e) => {+ let t = typeof e == "function" ? e(p()) : {+ ...p(),+ ...e+ };+ X.setQueryData(a, t);+ let r = {+ feedback: t.feedback,+ disposal: t.disposal,+ watch_later: t.watch_later,+ rating: t.rating,+ o_count: t.o_count+ };+ return gre(i, r), n([t]), t;+ }, h = (e, t) => q(e, {+ id: i,+ ...t+ }), g = It({+ mutationFn: ({ run: e }) => e(),+ onError: (e, { action: n }) => t.failure(n, e),+ onSettled: (e, t, { name: n }) => f(n, !1)+ }), _ = (e, t, n) => {+ o.has(e) || (f(e, !0), g.mutate({+ name: e,+ action: t,+ run: n+ }));+ }, v = async (e, t) => {+ let n = await h(Jle, t === void 0 ? { kind: e } : {+ kind: e,+ value: t+ });+ return m(e === "rate" ? { rating: n.rating ?? null } : {+ feedback: n.feedback ?? void 0,+ disposal: n.disposal ?? void 0,+ o_count: n.o_count+ }), n;+ };+ return {+ busy: o,+ sourceState: c,+ setSourceState: l,+ preferenceState: u,+ busyAttrs: (e) => o.has(e) ? {+ "aria-busy": !0,+ "aria-disabled": !0+ } : {},+ rate: (e) => _(`rate:${e}`, "评分", async () => {+ let n = p().rating || 0, r = $le(n, e);+ await v("rate", r), t.toast(r ? `已评 ${IL(r)} 星` : "已取消评分", { undo: async () => {+ await v("rate", n);+ } });+ }),+ feedback: (e) => _(e, "操作", async () => {+ let n = { feedback: p().feedback || null }, r = await v(e);+ t.toast(due(e, r), { undo: async () => {+ e === "o" ? await v("o-undo") : e === "dispose" ? await v("dispose") : (r.feedback && await v(r.feedback), n.feedback && await v(n.feedback)), await t.trashChanged(p().disposal || null, !0);+ } }), e === "dispose" && await t.trashChanged(r.disposal || null, !1);+ }),+ later: () => _("later", "更新稍后看", async () => {+ let e = await h(DL, {});+ m({ watch_later: e.watch_later }), t.toast(e.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {+ m({ watch_later: (await h(DL, {})).watch_later });+ } });+ }),+ quality: () => _("quality", "更新版本需求", async () => {+ let e = {+ wanted: !!p().better_version,+ reason: p().better_version_reason || ""+ }, n = (e) => m({+ better_version: e.better_version,+ better_version_reason: e.better_version_reason || ""+ }), r = await h(OL, { wanted: !e.wanted });+ n(r), t.toast(r.better_version ? "已标记寻找更好版本" : "已取消寻找更好版本", { undo: async () => {+ n(await h(OL, e));+ } });+ }),+ preference: ({ liked: e, reason: n }) => {+ _(e === void 0 ? "preference" : "like", "保存喜欢偏好", async () => {+ let r = {+ liked: !!p().liked,+ reason: p().like_reason || ""+ }, i = n ?? r.reason, a = e ?? (r.liked || i.trim().length > 0), o = (e) => m({+ liked: e.liked,+ like_reason: e.like_reason || ""+ });+ d("保存中…");+ try {+ o(await h(kL, {+ liked: a,+ reason: i+ }));+ } catch (e) {+ throw d("保存失败 · 请重试"), e;+ }+ d("已保存"), setTimeout(() => d((e) => e === "已保存" ? "" : e), 1400);+ let s = p();+ t.toast(s.liked ? "已保存喜欢偏好" : "已取消喜欢", { undo: async () => {+ o(await h(kL, r));+ } });+ });+ },+ removeTag: (e) => _(`tag:${e.k}`, "删除标签", async () => {+ if (!(await h("/api/item-tag", {+ operation: "remove",+ tag: e.k+ })).ok) throw Error("标签未删除");+ m((t) => RL(t, e.k)), t.toast(`已删除标签「${r(e.k)}」`, { undo: async () => {+ await h(EL, {+ operation: "add",+ tag: e.k+ }), m((t) => zL(t, e));+ } });+ }),+ addTag: (e) => {+ let n = e.trim();+ n && _(`add:${n}`, "添加标签", async () => {+ (await h("/api/item-tag", {+ operation: "add",+ tag: n+ })).ok && (m((e) => zL(e, {+ k: n,+ cat: "general"+ })), tue(n), t.toast(`已添加标签「${r(n)}」`, { undo: async () => {+ await h(EL, {+ operation: "remove",+ tag: n+ }), m((e) => RL(e, n));+ } }));+ });+ }+ };}//#endregion//#region src/react/components/board-tabs.tsx-function iue({ value: e }) {+function Iue({ value: e }) {return /* @__PURE__ */ (0, L.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 aue = "relative z-1 flex flex-none cursor-pointer items-center whitespace-nowrap border-b-2 border-transparent px-3 py-2.5 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring aria-selected:font-medium aria-selected:text-border-focus-ring max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";-function hL({ tabs: e, value: t, label: n, onChange: r }) {+var Lue = "relative z-1 flex flex-none cursor-pointer items-center whitespace-nowrap border-b-2 border-transparent px-3 py-2.5 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring aria-selected:font-medium aria-selected:text-border-focus-ring max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";+function qL({ tabs: e, value: t, label: n, onChange: r }) {let i = (0, I.useRef)(null), a = (0, I.useRef)(null);return (0, I.useLayoutEffect)(() => {let e = i.current;@@ -43657,14 +45044,14 @@ function hL({ tabs: e, value: t, label: n, onChange: r }) {},className: "relative mb-5.5 flex flex-none gap-1 overflow-x-auto border-b border-border-button-default max-board-narrow:gap-0",children: [e.map((e) => {- let n = e.symbol ? gT(e.symbol) : null, i = e.value === t;+ let n = e.symbol ? Vw(e.symbol) : null, i = e.value === t;return /* @__PURE__ */ (0, L.jsxs)("button", {type: "button",role: "tab","data-tab": e.value,"aria-selected": i,tabIndex: i ? 0 : -1,- className: aue,+ className: Lue,onClick: () => {i || r(e.value);},@@ -43680,23 +45067,23 @@ function hL({ tabs: e, value: t, label: n, onChange: r }) {}//#endregion//#region src/react/index/index-tags.tsx-var gL = () => /* @__PURE__ */ (0, L.jsx)("span", {+var JL = () => /* @__PURE__ */ (0, L.jsx)("span", {"aria-hidden": !0,"data-tag-dot": "",className: "size-1.75 flex-none rounded-full"});-function oue({ tag: e, actions: t }) {+function Rue({ tag: e, actions: t }) {let n = t.picked.has(e.k);return /* @__PURE__ */ (0, L.jsxs)("button", {type: "button","data-alpha-tag": "","data-k": e.k,- "data-tag-cat": xM(t.online, e.cat),+ "data-tag-cat": BM(t.online, e.cat),"aria-pressed": n,onClick: () => t.press(e.k),className: "flex h-9 min-w-0 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, L.jsx)(gL, {}),+ /* @__PURE__ */ (0, L.jsx)(JL, {}),/* @__PURE__ */ (0, L.jsx)("span", {className: "min-w-0 flex-1 truncate",children: e.label@@ -43708,23 +45095,23 @@ function oue({ tag: e, actions: t }) {]});}-function sue({ groups: e, actions: t }) {+function zue({ groups: e, actions: t }) {return /* @__PURE__ */ (0, L.jsx)("div", {"data-alphabet": "",className: "flex flex-col gap-4",children: e.map(([e, n], r) => /* @__PURE__ */ (0, L.jsxs)("section", {"data-alpha-group": r,- className: Nw({+ className: aw({radius: "plain",padding: "none",className: "px-5 pt-4 pb-3"}),children: [/* @__PURE__ */ (0, L.jsxs)("h3", {className: "mb-2 flex items-center text-title-2-medium text-text-primary",- children: [e, /* @__PURE__ */ (0, L.jsx)(iue, { value: n.length })]+ children: [e, /* @__PURE__ */ (0, L.jsx)(Iue, { value: n.length })]}), /* @__PURE__ */ (0, L.jsx)("div", {className: "index-tag-list gap-x-4 gap-y-0.5",- children: n.map((e) => /* @__PURE__ */ (0, L.jsx)(oue, {+ children: n.map((e) => /* @__PURE__ */ (0, L.jsx)(Rue, {tag: e,actions: t}, e.k))@@ -43732,8 +45119,8 @@ function sue({ groups: e, actions: t }) {}, e))});}-var cue = "\xA0";-function lue({ tags: e, actions: t }) {+var Bue = "\xA0";+function Vue({ tags: e, actions: t }) {return /* @__PURE__ */ (0, L.jsx)("div", {"data-tag-cloud": "",className: "flex flex-wrap gap-1.75",@@ -43741,11 +45128,11 @@ function lue({ tags: e, actions: t }) {type: "button","data-tag-chip": "","data-k": e.k,- "data-tag-cat": xM(t.online, e.cat),+ "data-tag-cat": BM(t.online, e.cat),"aria-pressed": t.picked.has(e.k),onClick: () => t.press(e.k),className: "inline-flex cursor-pointer items-center rounded-lg border px-3 py-1.25 text-body-2-regular text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",- children: [e.label + cue, /* @__PURE__ */ (0, L.jsx)("span", {+ children: [e.label + Bue, /* @__PURE__ */ (0, L.jsx)("span", {"data-tag-n": "",className: "text-caption-1-regular opacity-60",children: e.n.toLocaleString()@@ -43753,7 +45140,7 @@ function lue({ tags: e, actions: t }) {}, e.k))});}-var uue = [[+var Hue = [["cloud","标签云","tags"@@ -43762,16 +45149,16 @@ var uue = [["字母表","text-aa"]];-function due({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {- return /* @__PURE__ */ (0, L.jsx)(rM, {+function Uue({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {+ return /* @__PURE__ */ (0, L.jsx)(tM, {label: "标签筛选",topLabel: "标签类型",- top: e.map(([e, r]) => /* @__PURE__ */ (0, L.jsxs)(iM, {+ top: e.map(([e, r]) => /* @__PURE__ */ (0, L.jsxs)(rM, {"data-tag-pill": "",- "data-tag-cat": e === "all" ? "all" : xM(n, e),+ "data-tag-cat": e === "all" ? "all" : BM(n, e),pressed: t === e,onPress: () => o(e),- children: [/* @__PURE__ */ (0, L.jsx)(gL, {}), r]+ children: [/* @__PURE__ */ (0, L.jsx)(JL, {}), r]}, e)),bottom: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("span", {@@ -43790,19 +45177,19 @@ function due({ categories: e, category: t, online: n, readout: r, letters: i, vichildren: e}, e))}) : null,- /* @__PURE__ */ (0, L.jsx)(OD, {+ /* @__PURE__ */ (0, L.jsx)(Ek, {"aria-label": "标签视图",orientation: "horizontal",value: a,onChange: (e) => c(e),- className: `ml-auto ${RM}`,- children: uue.map(([e, t, n]) => {- let r = gT(n);- return /* @__PURE__ */ (0, L.jsx)(kD, {+ className: `ml-auto ${wN}`,+ children: Hue.map(([e, t, n]) => {+ let r = Vw(n);+ return /* @__PURE__ */ (0, L.jsx)(Dk, {value: e,"aria-label": t,"data-glass-segment": "",- className: zM,+ className: TN,children: /* @__PURE__ */ (0, L.jsx)("span", {title: t,className: "contents",@@ -43814,12 +45201,12 @@ function due({ categories: e, category: t, online: n, readout: r, letters: i, vi] })});}-function fue({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {- return /* @__PURE__ */ (0, L.jsxs)(sL, {+function Wue({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {+ return /* @__PURE__ */ (0, L.jsxs)(hL, {label: "所选标签操作",count: `已选 ${e} 个标签`,children: [- /* @__PURE__ */ (0, L.jsx)(vj, {+ /* @__PURE__ */ (0, L.jsx)(oj, {isSelected: t === "any",onChange: (e) => n(e ? "any" : "all"),children: /* @__PURE__ */ (0, L.jsxs)("span", {@@ -43851,7 +45238,7 @@ function fue({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {}//#endregion//#region src/react/index/index-page.tsx-var pue = [{+var Gue = [{value: "studios",label: "厂牌",symbol: "clapperboard"@@ -43859,7 +45246,7 @@ var pue = [{value: "agencies",label: "事务所",symbol: "briefcase"-}], _L = [{+}], YL = [{value: "local",label: "本地",symbol: "hard-drive"@@ -43867,7 +45254,7 @@ var pue = [{value: "online",label: "在线",symbol: "rss"-}], mue = {+}], Kue = {people: [["big","大图 · 竖幅头像",@@ -43887,20 +45274,20 @@ var pue = [{"layout-grid"]]};-function hue({ kind: e, layout: t, onChange: n }) {- return /* @__PURE__ */ (0, L.jsx)(OD, {- "aria-label": `${uM[e]}索引版式`,+function que({ kind: e, layout: t, onChange: n }) {+ return /* @__PURE__ */ (0, L.jsx)(Ek, {+ "aria-label": `${TM[e]}索引版式`,orientation: "horizontal",value: t,onChange: (e) => n(e),"data-index-layout": "",- className: `flex-none max-board-narrow:order-3 ${IM}`,- children: mue[hM(e) ? "company" : "people"].map(([e, t, n]) => {- let r = gT(n);- return /* @__PURE__ */ (0, L.jsx)(kD, {+ className: `flex-none max-board-narrow:order-3 ${xN}`,+ children: Kue[jM(e) ? "company" : "people"].map(([e, t, n]) => {+ let r = Vw(n);+ return /* @__PURE__ */ (0, L.jsx)(Dk, {value: e,"aria-label": t,- className: Ose,+ className: CN,children: /* @__PURE__ */ (0, L.jsx)("span", {title: t,className: "contents",@@ -43910,8 +45297,8 @@ function hue({ kind: e, layout: t, onChange: n }) {})});}-var gue = gT("search");-function _ue({ label: e, value: t, onQuery: n }) {+var Jue = Vw("search");+function Yue({ label: e, value: t, onQuery: n }) {let [r, i] = (0, I.useState)(t), a = (0, I.useRef)(!1), o = (0, I.useRef)(void 0);(0, I.useEffect)(() => () => clearTimeout(o.current), []);let s = (e) => {@@ -43926,15 +45313,15 @@ function _ue({ label: e, value: t, onQuery: n }) {onCompositionEnd: (e) => {a.current = !1, s(e.target.value);},- children: /* @__PURE__ */ (0, L.jsx)(Lj, {+ children: /* @__PURE__ */ (0, L.jsx)(Tj, {"aria-label": e,value: r,onChange: (e) => {i(e), a.current || s(e);},- children: /* @__PURE__ */ (0, L.jsx)(zj, {+ children: /* @__PURE__ */ (0, L.jsx)(Dj, {type: "search",- leadingIcon: gue,+ leadingIcon: Jue,spellCheck: !1,autoComplete: "off",onKeyDown: (e) => {@@ -43944,24 +45331,24 @@ function _ue({ label: e, value: t, onQuery: n }) {})});}-function vue(e) {- let [t, n] = (0, I.useState)(() => gM({+function Xue(e) {+ let [t, n] = (0, I.useState)(() => MM({kind: e.kind,q: e.q,scope: e.scope,view: e.view,category: e.category- })), [r, i] = (0, I.useState)(e.layout), [a, o] = (0, I.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, I.useState)("any"), l = (0, I.useRef)(null), { kind: u, q: f, scope: p, view: m, category: h } = t, g = uM[u], _ = u === "tags" && p === "online", v = u === "performers" && p === "online";+ })), [r, i] = (0, I.useState)(e.layout), [a, o] = (0, I.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, I.useState)("any"), l = (0, I.useRef)(null), { kind: u, q: f, scope: p, view: m, category: h } = t, g = TM[u], _ = u === "tags" && p === "online", v = u === "performers" && p === "online";(0, I.useEffect)(() => {e.selectMode || o(/* @__PURE__ */ new Set());}, [e.selectMode]);- let [b, x] = (0, I.useState)(!1), S = (r, i = !1) => {+ let [y, x] = (0, I.useState)(!1), S = (r, i = !1) => {let a = {...t,...r};x(Object.keys(r).every((e) => e === "q")), n(a), e.route(a, { replace: i });- }, C = bM(_M(t)), w = Ft({+ }, C = IM(NM(t)), w = Lt({queryKey: C.queryKey,queryFn: ({ pageParam: e, signal: t }) => C.queryFn({pageParam: e,@@ -43969,22 +45356,22 @@ function vue(e) {}),initialPageParam: 0,getNextPageParam: C.getNextPageParam,- placeholderData: b ? Me : void 0- }), T = ose(w.data), E = !!w.hasNextPage && !w.isPlaceholderData, D = sse(T.length, !!w.hasNextPage);+ placeholderData: y ? Pe : void 0+ }), T = RM(w.data), E = !!w.hasNextPage && !w.isPlaceholderData, D = zM(T.length, !!w.hasNextPage);(0, I.useEffect)(() => {l.current && e.refitImages(l.current);}, [r]);let O = (0, I.useMemo)(() => u === "tags" ? T.map((t) => ({...t,label: e.tagLabel(t.k)- })) : [], [T, u]), k = (0, I.useMemo)(() => u === "tags" && m === "alphabet" ? use(O, (t) => e.tagLabel(t)) : [], [+ })) : [], [T, u]), k = (0, I.useMemo)(() => u === "tags" && m === "alphabet" ? UM(O, (t) => e.tagLabel(t)) : [], [O,m,u]), A = (t) => {i(t), e.savePreference({ layout: t });- }, j = u === "tags" ? /* @__PURE__ */ (0, L.jsx)(hL, {- tabs: _L,+ }, j = u === "tags" ? /* @__PURE__ */ (0, L.jsx)(qL, {+ tabs: YL,value: p,label: "词表",onChange: (e) => {@@ -43994,15 +45381,15 @@ function vue(e) {view: e === "online" ? "alphabet" : m});}- }) : u === "performers" ? /* @__PURE__ */ (0, L.jsx)(hL, {- tabs: _L,+ }) : u === "performers" ? /* @__PURE__ */ (0, L.jsx)(qL, {+ tabs: YL,value: p,label: "名册",onChange: (t) => {t === "online" && e.exitSelectMode(), S({ scope: t });}- }) : hM(u) ? /* @__PURE__ */ (0, L.jsx)(hL, {- tabs: pue,+ }) : jM(u) ? /* @__PURE__ */ (0, L.jsx)(qL, {+ tabs: Gue,value: u,label: "公司类型",onChange: (e) => S({ kind: e })@@ -44019,7 +45406,7 @@ function vue(e) {let n = new Set(e);return n.delete(t) || n.add(t), n;});- }, N = (_ ? fM : dM).filter(([e]) => e === "all" || Number(w.data?.pages[0]?.categories?.[e] || 0) > 0);+ }, N = (_ ? OM : DM).filter(([e]) => e === "all" || Number(w.data?.pages[0]?.categories?.[e] || 0) > 0);return /* @__PURE__ */ (0, L.jsxs)("div", {ref: l,"data-index-page": u,@@ -44034,12 +45421,12 @@ function vue(e) {className: "flex items-center text-display-4-medium whitespace-nowrap text-text-primary max-board-narrow:text-title-1-medium",children: g}),- mM(u) ? /* @__PURE__ */ (0, L.jsx)("span", {+ AM(u) ? /* @__PURE__ */ (0, L.jsx)("span", {"data-index-count": "",className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums",children: w.isPending ? "" : D}) : null,- mM(u) ? /* @__PURE__ */ (0, L.jsx)(hue, {+ AM(u) ? /* @__PURE__ */ (0, L.jsx)(que, {kind: u,layout: r,onChange: A@@ -44048,7 +45435,7 @@ function vue(e) {"aria-hidden": !0,className: "hidden h-0 basis-full max-board-narrow:order-2 max-board-narrow:block"}),- /* @__PURE__ */ (0, L.jsx)(_ue, {+ /* @__PURE__ */ (0, L.jsx)(Yue, {label: `过滤${g}`,value: f,onQuery: (e) => {@@ -44058,7 +45445,7 @@ function vue(e) {]}),j,- u === "tags" ? /* @__PURE__ */ (0, L.jsx)(due, {+ u === "tags" ? /* @__PURE__ */ (0, L.jsx)(Uue, {categories: N,category: h,online: _,@@ -44077,14 +45464,14 @@ function vue(e) {children: (() => {if (w.isPending) return /* @__PURE__ */ (0, L.jsx)("div", {"aria-busy": "true",- dangerouslySetInnerHTML: { __html: y({+ dangerouslySetInnerHTML: { __html: b({kind: u,layout: r,mode: m}) }});- if (w.isError) return /* @__PURE__ */ (0, L.jsx)(Fw, {- icon: gT("search"),+ if (w.isError) return /* @__PURE__ */ (0, L.jsx)(ow, {+ icon: Vw("search"),title: `没能读取${g}`,actions: /* @__PURE__ */ (0, L.jsx)(G, {variant: "secondary",@@ -44093,18 +45480,18 @@ function vue(e) {}),children: d(w.error)});- if (!T.length) return /* @__PURE__ */ (0, L.jsx)(bue, {+ if (!T.length) return /* @__PURE__ */ (0, L.jsx)(Que, {kind: u,filtered: !!f || u === "tags" && h !== "all",online: _ || v,configurable: e.configurable});- if (v) return /* @__PURE__ */ (0, L.jsx)(fse, {+ if (v) return /* @__PURE__ */ (0, L.jsx)(JM, {items: T,layout: r,props: e});- if (mM(u)) return /* @__PURE__ */ (0, L.jsx)(wM, {+ if (AM(u)) return /* @__PURE__ */ (0, L.jsx)(qM, {kind: u,items: T,layout: r,@@ -44115,10 +45502,10 @@ function vue(e) {picked: a,press: M};- return m === "alphabet" ? /* @__PURE__ */ (0, L.jsx)(sue, {+ return m === "alphabet" ? /* @__PURE__ */ (0, L.jsx)(zue, {groups: k,actions: t- }) : /* @__PURE__ */ (0, L.jsx)(lue, {+ }) : /* @__PURE__ */ (0, L.jsx)(Vue, {tags: O,actions: t});@@ -44133,13 +45520,13 @@ function vue(e) {disabled: w.isFetchingNextPage,"aria-busy": w.isFetchingNextPage || void 0,onClick: () => void w.fetchNextPage(),- children: w.isFetchingNextPage ? /* @__PURE__ */ (0, L.jsx)(Iw, {+ children: w.isFetchingNextPage ? /* @__PURE__ */ (0, L.jsx)(sw, {inline: !0,label: "继续载入中…"}) : "载入更多"})}) : null,- u === "tags" && !_ && e.selectMode && a.size ? /* @__PURE__ */ (0, L.jsx)(fue, {+ u === "tags" && !_ && e.selectMode && a.size ? /* @__PURE__ */ (0, L.jsx)(Wue, {count: a.size,match: s,onMatch: c,@@ -44152,31 +45539,31 @@ function vue(e) {]});}-var yue = {+var Zue = {tags: "标签",performers: "艺人",creators: "创作者",studios: "厂牌",agencies: "事务所"};-function bue({ kind: e, filtered: t, online: n, configurable: r }) {- if (t) return /* @__PURE__ */ (0, L.jsx)(Fw, {- icon: gT("search"),+function Que({ kind: e, filtered: t, online: n, configurable: r }) {+ if (t) return /* @__PURE__ */ (0, L.jsx)(ow, {+ icon: Vw("search"),title: "没有符合条件的内容",- actions: /* @__PURE__ */ (0, L.jsx)(Sw, {+ actions: /* @__PURE__ */ (0, L.jsx)(tw, {variant: "primary",href: "/?loc=&thumb=0",children: "查看全部内容"}),children: "清除筛选或搜索条件后查看全部内容。"});- let i = n && e === "performers" ? "创作者" : yue[e], a = /* @__PURE__ */ (0, L.jsx)(Sw, {+ let i = n && e === "performers" ? "创作者" : Zue[e], a = /* @__PURE__ */ (0, L.jsx)(tw, {variant: !r || n ? "primary" : "secondary",href: "/follow-manage?tab=add",children: "添加关注"});- return /* @__PURE__ */ (0, L.jsx)(Fw, {- icon: gT(e === "tags" ? "tags" : "user-round"),+ return /* @__PURE__ */ (0, L.jsx)(ow, {+ icon: Vw(e === "tags" ? "tags" : "user-round"),title: `还没有${i}`,actions: n ? a : /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [r ? /* @__PURE__ */ (0, L.jsx)(G, {variant: "primary",@@ -44186,15 +45573,15 @@ function bue({ kind: e, filtered: t, online: n, configurable: r }) {children: n ? `添加关注来源并获取内容后,这里会显示来源上的${i}。` : "添加内容并补充资料后,这里会显示对应信息。"});}-var vL = {+var XL = {video: ["视频", "play"],image: ["图片", "pics"],archive: ["压缩包", "file-archive"],audio: ["音频", "file-audio"],url: ["网址快捷方式", "globe"],other: ["其它文件", "hard-drive"]-}, xue = (e) => vL[e.junk_kind || "other"] || vL.other;-function Sue(e) {+}, $ue = (e) => XL[e.junk_kind || "other"] || XL.other;+function ede(e) {return e === "dismissed" ? {operation: "reconsider-junk",label: "重新判断",@@ -44205,21 +45592,21 @@ function Sue(e) {glyph: "check"};}-var Cue = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), wue = (e, t) => [+var tde = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), nde = (e, t) => ["junk-queue",e.view,e.kind,t];-function Tue({ kind: e, view: t }) {+function rde({ kind: e, view: t }) {let n = new URLSearchParams({limit: "200",status: t});return e && n.set("kind", e), n.toString();}-async function Eue(e, t) {- let n = await Tw(`/api/ads?${Tue(e)}`, t);+async function ide(e, t) {+ let n = await iw(`/api/ads?${rde(e)}`, t);return {...n,items: n.items || []@@ -44227,19 +45614,19 @@ async function Eue(e, t) {}//#endregion//#region src/react/junk-queue/junk-card.tsx-function yL({ name: e }) {+function ZL({ name: e }) {return /* @__PURE__ */ (0, L.jsx)("svg", {viewBox: "0 0 24 24","aria-hidden": "true",children: /* @__PURE__ */ (0, L.jsx)("use", { href: `#i-${e}` })});}-var bL = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;-function Due({ item: e, view: t, selected: n, selectMode: i, helpers: o, actions: s }) {- let c = (0, I.useRef)(null), [l, u] = (0, I.useState)(""), [d, f] = (0, I.useState)(""), p = e.junk_kind || "other", [m, h] = xue(e), g = String(e.name || ""), _ = Sue(t), v = p === "video" ? `/thumb?id=${e.id}&c=4` : p === "image" ? `/photo-thumb?id=${e.id}` : "", y = p === "video" || p === "image", b = (t) => {- t.target.closest("[data-junk-actions]") || bL(i, t) && (t.preventDefault(), s.toggleSelection(e.id, t.shiftKey));+var QL = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;+function ade({ item: e, view: t, selected: n, selectMode: i, helpers: o, actions: s }) {+ let c = (0, I.useRef)(null), [l, u] = (0, I.useState)(""), [d, f] = (0, I.useState)(""), p = e.junk_kind || "other", [m, h] = $ue(e), g = String(e.name || ""), _ = ede(t), v = p === "video" ? `/thumb?id=${e.id}&c=4` : p === "image" ? `/photo-thumb?id=${e.id}` : "", y = p === "video" || p === "image", b = (t) => {+ t.target.closest("[data-junk-actions]") || QL(i, t) && (t.preventDefault(), s.toggleSelection(e.id, t.shiftKey));}, x = (t) => {- if (t.stopPropagation(), bL(i, t)) {+ if (t.stopPropagation(), QL(i, t)) {t.preventDefault(), s.toggleSelection(e.id, t.shiftKey);return;}@@ -44281,7 +45668,7 @@ function Due({ item: e, view: t, selected: n, selectMode: i, helpers: o, actionschildren: [/* @__PURE__ */ (0, L.jsxs)("span", {"data-media-glyph": "",- children: [/* @__PURE__ */ (0, L.jsx)(yL, { name: h }), /* @__PURE__ */ (0, L.jsx)("b", { children: m })]+ children: [/* @__PURE__ */ (0, L.jsx)(ZL, { name: h }), /* @__PURE__ */ (0, L.jsx)("b", { children: m })]}),v ? /* @__PURE__ */ (0, L.jsx)("span", {"data-media-art": "thumb",@@ -44293,7 +45680,7 @@ function Due({ item: e, view: t, selected: n, selectMode: i, helpers: o, actions}),/* @__PURE__ */ (0, L.jsx)("span", {"data-media-check": "",- children: /* @__PURE__ */ (0, L.jsx)(yL, { name: "check" })+ children: /* @__PURE__ */ (0, L.jsx)(ZL, { name: "check" })})]}),@@ -44329,8 +45716,8 @@ function Due({ item: e, view: t, selected: n, selectMode: i, helpers: o, actionsonClick: S,children: [l === "reveal" ? /* @__PURE__ */ (0, L.jsx)("span", {"data-junk-spinner": "",- dangerouslySetInnerHTML: { __html: D("正在定位") }- }) : /* @__PURE__ */ (0, L.jsx)(yL, { name: "folder-open" }), /* @__PURE__ */ (0, L.jsx)("span", {+ dangerouslySetInnerHTML: { __html: k("正在定位") }+ }) : /* @__PURE__ */ (0, L.jsx)(ZL, { name: "folder-open" }), /* @__PURE__ */ (0, L.jsx)("span", {"data-junk-label": "",children: "打开位置"})]@@ -44342,7 +45729,7 @@ function Due({ item: e, view: t, selected: n, selectMode: i, helpers: o, actions"aria-label": _.label,...w(_.operation),onClick: C(_.operation),- children: [/* @__PURE__ */ (0, L.jsx)(yL, { name: _.glyph }), /* @__PURE__ */ (0, L.jsx)("span", {+ children: [/* @__PURE__ */ (0, L.jsx)(ZL, { name: _.glyph }), /* @__PURE__ */ (0, L.jsx)("span", {"data-junk-label": "",children: _.label})]@@ -44354,7 +45741,7 @@ function Due({ item: e, view: t, selected: n, selectMode: i, helpers: o, actions"aria-label": "移入回收站",...w("dispose"),onClick: C("dispose"),- children: [/* @__PURE__ */ (0, L.jsx)(yL, { name: "trash" }), /* @__PURE__ */ (0, L.jsx)("span", {+ children: [/* @__PURE__ */ (0, L.jsx)(ZL, { name: "trash" }), /* @__PURE__ */ (0, L.jsx)("span", {"data-junk-label": "",children: "移入回收站"})]@@ -44369,7 +45756,7 @@ function Due({ item: e, view: t, selected: n, selectMode: i, helpers: o, actions]});}-var Oue = (0, I.memo)(Due), kue = [+var ode = (0, I.memo)(ade), sde = [["","全部",@@ -44406,53 +45793,53 @@ var Oue = (0, I.memo)(Due), kue = ["hard-drive"]];-function xL(e = "", t = "pending") {+function $L(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 Aue(e) {+function cde(e) {return e === "dismissed" ? {view: "pending",label: "返回待判断",glyph: "rotate-ccw",- href: xL("", "pending")+ href: $L("", "pending")} : {view: "dismissed",label: "已排除",glyph: "eye-off",- href: xL("", "dismissed")+ href: $L("", "dismissed")};}-var jue = (e) => e === "dismissed" ? "已排除" : "待判断";+var lde = (e) => e === "dismissed" ? "已排除" : "待判断";//#endregion//#region src/react/junk-queue/junk-count.tsx-function SL({ name: e }) {+function eR({ name: e }) {return /* @__PURE__ */ (0, L.jsx)("svg", {viewBox: "0 0 24 24","aria-hidden": "true",children: /* @__PURE__ */ (0, L.jsx)("use", { href: `#i-${e}` })});}-function CL({ scope: e, count: t }) {+function tR({ scope: e, count: t }) {return t ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [" ", /* @__PURE__ */ (0, L.jsx)("span", {"data-count-badge": `junk:${e}`,children: t.toLocaleString()})] }) : null;}-function Mue({ route: e, page: t, failed: n, onNavigate: r }) {- let i = bO(), { kind: a, view: o } = e, s = Aue(o), c = (e) => {+function ude({ route: e, page: t, failed: n, onNavigate: r }) {+ let i = hA(), { kind: a, view: o } = e, s = cde(o), c = (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") || xL()));+ !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || $L()));}, l = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";return /* @__PURE__ */ (0, L.jsxs)("div", {"data-junk-count": "",children: [/* @__PURE__ */ (0, L.jsx)("div", {"data-junk-summary": "","aria-live": "polite",- children: /* @__PURE__ */ (0, L.jsx)(tM, {- label: jue(o),+ children: /* @__PURE__ */ (0, L.jsx)(Qj, {+ label: lde(o),figure: l,pending: !t && !n,flush: !0@@ -44465,16 +45852,16 @@ function Mue({ route: e, page: t, failed: n, onNavigate: r }) {"aria-label": "垃圾文件分类",onClick: c,children: [- kue.map(([e, n, r]) => /* @__PURE__ */ (0, L.jsxs)("a", {- href: xL(e, o),+ sde.map(([e, n, r]) => /* @__PURE__ */ (0, L.jsxs)("a", {+ href: $L(e, o),"data-junk-kind-link": e,"aria-current": e === a ? "page" : void 0,children: [- /* @__PURE__ */ (0, L.jsx)(SL, { name: r }),+ /* @__PURE__ */ (0, L.jsx)(eR, { name: r }),n,- /* @__PURE__ */ (0, L.jsx)(CL, {+ /* @__PURE__ */ (0, L.jsx)(tR, {scope: e,- count: t ? Cue(t, e) : 0+ count: t ? tde(t, e) : 0})]}, e || "all")),@@ -44487,9 +45874,9 @@ function Mue({ route: e, page: t, failed: n, onNavigate: r }) {"data-junk-view-link": s.view,"aria-current": o === "dismissed" ? "page" : void 0,children: [- /* @__PURE__ */ (0, L.jsx)(SL, { name: s.glyph }),+ /* @__PURE__ */ (0, L.jsx)(eR, { name: s.glyph }),s.label,- /* @__PURE__ */ (0, L.jsx)(CL, {+ /* @__PURE__ */ (0, L.jsx)(tR, {scope: "dismissed",count: Number(t?.dismissed_total || 0)})@@ -44502,38 +45889,38 @@ function Mue({ route: e, page: t, failed: n, onNavigate: r }) {}//#endregion//#region src/react/junk-queue/junk-queue-page.tsx-var Nue = gT("check"), Pue = (e, t) => e[1] === t.view && e[2] === t.kind;-function Fue(e) {+var dde = Vw("check"), fde = (e, t) => e[1] === t.view && e[2] === t.kind;+function pde(e) {let t = {kind: e.kind,view: e.view}, n = (0, I.useRef)(e.cache);n.current = e.cache;- let r = Nt({- queryKey: wue(t, e.revision),+ let r = Ft({+ queryKey: nde(t, e.revision),queryFn: async ({ signal: e }) => {- let r = await Eue(t, e);+ let r = await ide(t, e);return n.current(r.items), r;},- placeholderData: (e, n) => n && Pue(n.queryKey, t) ? e : void 0+ placeholderData: (e, n) => n && fde(n.queryKey, t) ? e : void 0});(0, I.useEffect)(() => {r.isFetching || e.settled?.(e.revision);}, [r.isFetching, e.revision]);- let i = Iue(e.countRow), a = r.isPending;+ let i = mde(e.countRow), a = r.isPending;(0, I.useLayoutEffect)(() => {let t = e.countRow;t && (a ? t.setAttribute("aria-busy", "true") : t.removeAttribute("aria-busy"));}, [e.countRow, a]), (0, I.useLayoutEffect)(() => {- i && r.data && C(i, "junk");+ i && r.data && w(i, "junk");}, [i, r.data]);- let { navigate: o } = e.actions, s = i ? (0, Ch.createPortal)(/* @__PURE__ */ (0, L.jsx)(Mue, {+ let { navigate: o } = e.actions, s = i ? (0, Th.createPortal)(/* @__PURE__ */ (0, L.jsx)(ude, {route: t,page: r.data,failed: r.isError && !r.data,onNavigate: o}), i) : null;- return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [s, /* @__PURE__ */ (0, L.jsx)(Lue, {+ return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [s, /* @__PURE__ */ (0, L.jsx)(hde, {props: e,data: r.data,pending: a,@@ -44541,7 +45928,7 @@ function Fue(e) {retry: () => void r.refetch()}, `${t.view}:${t.kind}`)] });}-function Iue(e) {+function mde(e) {let [t, n] = (0, I.useState)(null);return (0, I.useLayoutEffect)(() => {if (!e) return;@@ -44551,8 +45938,8 @@ function Iue(e) {};}, [e]), t;}-function Lue({ props: e, data: t, pending: n, error: r, retry: i }) {- let a = aT(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, I.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: f } = e, p = (0, I.useCallback)(() => {+function hde({ props: e, data: t, pending: n, error: r, retry: i }) {+ let a = Aw(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, I.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: f } = e, p = (0, I.useCallback)(() => {f?.() !== !1 && c((e) => e + 1);}, [f]);return /* @__PURE__ */ (0, L.jsxs)("div", {@@ -44560,14 +45947,14 @@ function Lue({ 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, L.jsx)(oT, {+ if (!t) return /* @__PURE__ */ (0, L.jsx)(jw, {message: d(r),onRetry: i});if (!l.length) {let t = e.view === "dismissed";- return /* @__PURE__ */ (0, L.jsx)(Fw, {- icon: Nue,+ return /* @__PURE__ */ (0, L.jsx)(ow, {+ icon: dde,title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",children: t ? "点“不是垃圾”的资源会保留在这里,可随时重新判断。" : "当前分类没有候选文件。"});@@ -44576,7 +45963,7 @@ function Lue({ 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, L.jsx)(Oue, {+ children: u.map((t) => /* @__PURE__ */ (0, L.jsx)(ode, {item: t,view: e.view,selected: e.selected.has(t.id),@@ -44584,11 +45971,11 @@ function Lue({ props: e, data: t, pending: n, error: r, retry: i }) {helpers: e.helpers,actions: e.actions}, t.id))- }), u.length < l.length ? /* @__PURE__ */ (0, L.jsx)(Rue, { onMore: p }, s) : null] });+ }), u.length < l.length ? /* @__PURE__ */ (0, L.jsx)(gde, { onMore: p }, s) : null] });})()]});}-function Rue({ onMore: e }) {+function gde({ onMore: e }) {let t = (0, I.useRef)(null);return (0, I.useEffect)(() => {let n = t.current;@@ -44601,17 +45988,17 @@ function Rue({ onMore: e }) {ref: t,"data-load-more": "",onClick: e,- dangerouslySetInnerHTML: { __html: b("继续载入中…") }+ dangerouslySetInnerHTML: { __html: x("继续载入中…") }});}//#endregion//#region src/react/library-processing/library-processing-notice.tsx-var wL = "flex min-h-10 flex-wrap items-center justify-center gap-x-4 gap-y-2 border-y px-6 py-2 max-sm:justify-start", zue = {- gray: `${wL} border-separator-border bg-background-secondary-default text-text-secondary`,- warning: `${wL} border-current/35 bg-status-yellow-background text-status-yellow-text`,- error: `${wL} border-current/35 bg-background-tertiary-error text-text-error-primary`+var nR = "flex min-h-10 flex-wrap items-center justify-center gap-x-4 gap-y-2 border-y px-6 py-2 max-sm:justify-start", _de = {+ gray: `${nR} border-separator-border bg-background-secondary-default text-text-secondary`,+ warning: `${nR} border-current/35 bg-status-yellow-background text-status-yellow-text`,+ error: `${nR} border-current/35 bg-background-tertiary-error text-text-error-primary`};-function Bue({ value: e, max: t }) {+function vde({ value: e, max: t }) {let n = Math.max(0, Math.min(100, e / t * 100));return /* @__PURE__ */ (0, L.jsxs)("svg", {role: "progressbar",@@ -44639,16 +46026,16 @@ function Bue({ value: e, max: t }) {})]});}-function Vue(e) {- let { job: t } = qA(e), n = t.data, r = t.isError ? n ? LO : K(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";+function yde(e) {+ let { job: t } = FA(e), n = t.data, r = t.isError ? n ? AT : K(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";if (!r && !o && !a) return null;- let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : zO(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? SS : ane;+ let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : FT(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? GS : IS;return /* @__PURE__ */ (0, L.jsxs)("aside", {role: a ? "alert" : "status",- className: zue[s],+ className: _de[s],children: [/* @__PURE__ */ (0, L.jsxs)("div", {className: "flex min-w-0 items-center gap-3",- children: [o && l ? /* @__PURE__ */ (0, L.jsx)(Bue, {+ children: [o && l ? /* @__PURE__ */ (0, L.jsx)(vde, {value: c,max: l}) : /* @__PURE__ */ (0, L.jsx)(d, {@@ -44658,42 +46045,42 @@ function Vue(e) {className: "min-w-0 text-body-2-regular",children: u})]- }), /* @__PURE__ */ (0, L.jsx)(SA, {+ }), /* @__PURE__ */ (0, L.jsx)(oA, {href: "/data-cleanup#libraryProcessing",size: "small",- trailingIcon: oS,+ trailingIcon: ES,children: r || a ? "查看并处理" : "查看进度"})]});}//#endregion//#region src/react/playlists/playlists.ts-var Hue = "/api/playlists", TL = "/api/playlist", EL = ["playlists"], DL = (e) => Tw(Hue, e);-async function Uue(e) {+var bde = "/api/playlists", rR = "/api/playlist", iR = ["playlists"], aR = (e) => iw(bde, e);+async function xde(e) {await X.fetchQuery({- queryKey: EL,- queryFn: () => DL(e),+ queryKey: iR,+ queryFn: () => aR(e),staleTime: 0});}-var OL = () => X.invalidateQueries({- queryKey: EL,+var oR = () => X.invalidateQueries({+ queryKey: iR,exact: !0-}), Wue = (e) => e.current_asset_id || e.preview_asset_id || null, kL = (e) => `/poster?id=${e}&c=4`, Gue = (e) => q(TL, {+}), Sde = (e) => e.current_asset_id || e.preview_asset_id || null, sR = (e) => `/poster?id=${e}&c=4`, Cde = (e) => q(rR, {action: "create",name: e,asset_ids: []-}), AL = (e, t) => q(TL, {+}), cR = (e, t) => q(rR, {action: "rename",id: e,name: t-}), jL = (e) => q(TL, {+}), lR = (e) => q(rR, {action: "delete",id: e-}), Kue = (e) => Tw(`${TL}?id=${e}`).catch(() => null);-function que(e) {+}), wde = (e) => iw(`${rR}?id=${e}`).catch(() => null);+function Tde(e) {let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;- return q(TL, {+ return q(rR, {action: "create",name: e.name,asset_ids: t,@@ -44703,18 +46090,18 @@ function que(e) {}//#endregion//#region src/react/playlists/playlists-page.tsx-var Jue = gT("ellipsis"), Yue = gT("pencil"), Xue = gT("trash"), Zue = gT("playlist"), ML = _w(wA, TA, "text-body-2-medium"), NL = "播放列表名称不能为空", PL = (e) => async () => {+var Ede = Vw("ellipsis"), Dde = Vw("pencil"), Ode = Vw("trash"), kde = Vw("playlist"), uR = XC(cA, lA, "text-body-2-medium"), dR = "播放列表名称不能为空", fR = (e) => async () => {try {await e();} finally {- OL();+ oR();}};-function Que({ toast: e }) {- let [t, n] = (0, I.useState)(""), [r, i] = (0, I.useState)(""), a = Pt({- mutationFn: (e) => Gue(e),+function Ade({ toast: e }) {+ let [t, n] = (0, I.useState)(""), [r, i] = (0, I.useState)(""), a = It({+ mutationFn: (e) => Cde(e),onSuccess: (t) => {- n(""), i(""), OL(), e("已新建播放列表", { undo: PL(() => jL(t.playlist.id)) });+ n(""), i(""), oR(), e("已新建播放列表", { undo: fR(() => lR(t.playlist.id)) });},onError: (e) => i(K(e) || "新建失败")});@@ -44724,7 +46111,7 @@ function Que({ toast: e }) {onSubmit: (e) => {if (e.preventDefault(), !a.isPending) {if (!t.trim()) {- i(NL);+ i(dR);return;}a.mutate(t);@@ -44733,7 +46120,7 @@ function Que({ toast: e }) {className: "flex flex-wrap items-end gap-2",children: [/* @__PURE__ */ (0, L.jsx)("div", {className: "min-w-50 max-w-80 flex-1 basis-50 max-board-narrow:min-w-0 max-board-narrow:max-w-none",- children: /* @__PURE__ */ (0, L.jsx)(Bj, {+ children: /* @__PURE__ */ (0, L.jsx)(Oj, {label: "新播放列表",placeholder: "输入名称",maxLength: 80,@@ -44752,7 +46139,7 @@ function Que({ toast: e }) {})]});}-function $ue({ target: e, close: t, toast: n }) {+function jde({ target: e, close: t, toast: n }) {let [r, i] = (0, I.useState)(""), [a, o] = (0, I.useState)(""), s = (0, I.useRef)(null);(0, I.useEffect)(() => {if (!e) return;@@ -44762,14 +46149,14 @@ function $ue({ target: e, close: t, toast: n }) {});return () => cancelAnimationFrame(t);}, [e]);- let c = Pt({- mutationFn: ({ row: e, value: t }) => AL(e.id, t),+ let c = It({+ mutationFn: ({ row: e, value: t }) => cR(e.id, t),onSuccess: (e, { row: r }) => {- t(), OL(), n("已重命名播放列表", { undo: PL(() => AL(r.id, r.name)) });+ t(), oR(), n("已重命名播放列表", { undo: fR(() => cR(r.id, r.name)) });},onError: (e) => o(K(e))});- return /* @__PURE__ */ (0, L.jsx)(vO, {+ return /* @__PURE__ */ (0, L.jsx)(eP, {isOpen: !!e,onOpenChange: (e) => {e || t();@@ -44781,7 +46168,7 @@ function $ue({ target: e, close: t, toast: n }) {if (t.preventDefault(), !e || c.isPending) return;let n = r.trim();if (!n) {- o(NL);+ o(dR);return;}c.mutate({@@ -44792,11 +46179,11 @@ function $ue({ target: e, close: t, toast: n }) {className: "flex min-h-0 flex-col",children: [/* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-col gap-4 p-5",- children: [/* @__PURE__ */ (0, L.jsx)(GT, {+ children: [/* @__PURE__ */ (0, L.jsx)(UD, {slot: "title",className: "text-title-2-semibold text-text-primary",children: "编辑名称"- }), /* @__PURE__ */ (0, L.jsx)(Bj, {+ }), /* @__PURE__ */ (0, L.jsx)(Oj, {ref: s,label: "名称",placeholder: "输入名称",@@ -44824,7 +46211,7 @@ function $ue({ target: e, close: t, toast: n }) {})});}-function ede({ name: e, onRename: t, onDelete: n }) {+function Mde({ name: e, onRename: t, onDelete: n }) {let r = (0, I.useRef)(null), [i, a] = (0, I.useState)(!1), o = (e) => {a(!1), e();};@@ -44838,33 +46225,33 @@ function ede({ name: e, onRename: t, onDelete: n }) {"data-playlist-menu": "",onClick: () => a(!0),className: "flex size-7.5 flex-none cursor-pointer items-center justify-center rounded-2lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary aria-expanded:bg-background-primary-hover aria-expanded:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",- children: /* @__PURE__ */ (0, L.jsx)(Jue, {+ children: /* @__PURE__ */ (0, L.jsx)(Ede, {"aria-hidden": !0,className: "size-4.5"})- }), /* @__PURE__ */ (0, L.jsx)(uD, {+ }), /* @__PURE__ */ (0, L.jsx)(ck, {triggerRef: r,isOpen: i,onOpenChange: a,placement: "bottom end",offset: 4,- className: CA,- children: /* @__PURE__ */ (0, L.jsxs)(xD, {+ className: sA,+ children: /* @__PURE__ */ (0, L.jsxs)(yk, {"aria-label": `播放列表操作:${e}`,className: "flex w-37.5 flex-col gap-0.5 outline-none",children: [/* @__PURE__ */ (0, L.jsxs)("button", {type: "button",- className: ML,+ className: uR,onClick: () => o(t),- children: [/* @__PURE__ */ (0, L.jsx)(Yue, {+ children: [/* @__PURE__ */ (0, L.jsx)(Dde, {"aria-hidden": !0,className: "size-4 shrink-0"}), "编辑名称"]}), /* @__PURE__ */ (0, L.jsxs)("button", {type: "button",- className: ML,+ className: uR,onClick: () => o(n),- children: [/* @__PURE__ */ (0, L.jsx)(Xue, {+ children: [/* @__PURE__ */ (0, L.jsx)(Ode, {"aria-hidden": !0,className: "size-4 shrink-0"}), "删除播放列表"]@@ -44872,13 +46259,13 @@ function ede({ name: e, onRename: t, onDelete: n }) {})})] });}-function tde({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast: i, revision: a }) {- let o = Nt({- queryKey: EL,- queryFn: ({ signal: e }) => DL(e)+function Nde({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast: i, revision: a }) {+ let o = Ft({+ queryKey: iR,+ queryFn: ({ signal: e }) => aR(e)}), [s, c] = (0, I.useState)(null), l = (0, I.useRef)(a);(0, I.useEffect)(() => {- l.current !== a && (l.current = a, OL());+ l.current !== a && (l.current = a, oR());}, [a]);let u = o.data;if (!u) return /* @__PURE__ */ (0, L.jsx)("div", {@@ -44896,8 +46283,8 @@ function tde({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:confirmLabel: "删除播放列表",danger: !0,onConfirm: async () => {- let t = await Kue(e.id);- await jL(e.id), OL(), i("已删除播放列表", t ? { undo: PL(() => que(t)) } : void 0);+ let t = await wde(e.id);+ await lR(e.id), oR(), i("已删除播放列表", t ? { undo: fR(() => Tde(t)) } : void 0);}});};@@ -44912,39 +46299,39 @@ function tde({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:}), /* @__PURE__ */ (0, L.jsx)("p", {className: "text-body-2-regular text-text-secondary",children: "保存 Mix,按自己的顺序继续播放。"- })] }), /* @__PURE__ */ (0, L.jsx)(Que, { toast: i })]+ })] }), /* @__PURE__ */ (0, L.jsx)(Ade, { toast: i })]}),d.length ? /* @__PURE__ */ (0, L.jsx)("div", {"data-playlist-grid": "",className: "card-grid-cover gap-4.5",children: d.map((i) => {- let a = Wue(i);- return /* @__PURE__ */ (0, L.jsx)(bT, {+ let a = Sde(i);+ return /* @__PURE__ */ (0, L.jsx)(Yw, {"data-playlist-card": String(i.id),name: i.name,caption: i.source_kind === "mix" ? "由 Mix 保存" : "手动播放列表",count: i.item_count,- poster: i.preview_asset_id ? kL(i.preview_asset_id) : null,- flipImages: async () => (i.preview_ids || []).map(kL),+ poster: i.preview_asset_id ? sR(i.preview_asset_id) : null,+ flipImages: async () => (i.preview_ids || []).map(sR),canFlip: r,faces: i.faces || [],faceAvatar: n,onOpenEntity: t,...a ? { onOpen: () => e(i.id, a) } : {},openLabel: `打开播放列表 ${i.name}`,- menu: /* @__PURE__ */ (0, L.jsx)(ede, {+ menu: /* @__PURE__ */ (0, L.jsx)(Mde, {name: i.name,onRename: () => c(i),onDelete: () => f(i)})}, i.id);})- }) : /* @__PURE__ */ (0, L.jsx)(Fw, {- icon: Zue,+ }) : /* @__PURE__ */ (0, L.jsx)(ow, {+ icon: kde,title: "还没有播放列表",children: "保存 Mix 或新建列表后,会在这里按自己的顺序继续播放。"}),- /* @__PURE__ */ (0, L.jsx)($ue, {+ /* @__PURE__ */ (0, L.jsx)(jde, {target: s,close: () => c(null),toast: i@@ -44954,11 +46341,11 @@ function tde({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:}//#endregion//#region src/react/quality-goals/quality-goals-page.tsx-function nde({ item: t, openItem: n, javTitleHtml: r, javDisplayName: o, srcBadge: s }) {+function Pde({ item: t, openItem: n, javTitleHtml: r, javDisplayName: o, srcBadge: s }) {let c = () => n(t.id);return /* @__PURE__ */ (0, L.jsxs)("li", {"data-goal-id": t.id,- className: Nw({+ className: aw({padding: "none",bordered: "soft",className: "flex flex-col gap-3 p-3"@@ -44974,7 +46361,7 @@ function nde({ item: t, openItem: n, javTitleHtml: r, javDisplayName: o, srcBadgclassName: "text-caption-1-regular text-text-secondary",children: "暂无预览"}), /* @__PURE__ */ (0, L.jsx)("img", {- src: ZO(t),+ src: eE(t),alt: "",loading: "lazy",onError: (e) => e.currentTarget.remove(),@@ -45022,19 +46409,19 @@ function nde({ item: t, openItem: n, javTitleHtml: r, javDisplayName: o, srcBadg})]});}-function rde(e) {- let t = Nt({- queryKey: JO,- queryFn: ({ signal: e }) => YO(e)+function Fde(e) {+ let t = Ft({+ queryKey: ZT,+ queryFn: ({ signal: e }) => QT(e)}), n = t.data;- if (!n) return /* @__PURE__ */ (0, L.jsx)(Lw, { children: /* @__PURE__ */ (0, L.jsx)(J, {+ if (!n) return /* @__PURE__ */ (0, L.jsx)(cw, { children: /* @__PURE__ */ (0, L.jsx)(J, {tone: "error",title: "读取失败",children: t.error ? K(t.error) : "读取高清版目标失败"}) });let r = n.items || [];- return r.length ? /* @__PURE__ */ (0, L.jsxs)(Lw, { children: [/* @__PURE__ */ (0, L.jsxs)("div", {- className: Nw({+ return r.length ? /* @__PURE__ */ (0, L.jsxs)(cw, { children: [/* @__PURE__ */ (0, L.jsxs)("div", {+ className: aw({variant: "raised",className: "flex flex-col gap-1 px-6 py-5 max-sm:px-4"}),@@ -45047,21 +46434,21 @@ function rde(e) {})]}), /* @__PURE__ */ (0, L.jsx)("ul", {className: "card-grid-cover gap-5",- children: r.map((t) => /* @__PURE__ */ (0, L.jsx)(nde, {+ children: r.map((t) => /* @__PURE__ */ (0, L.jsx)(Pde, {item: t,...e}, t.id))- })] }) : /* @__PURE__ */ (0, L.jsx)(Lw, { children: /* @__PURE__ */ (0, L.jsx)(Fw, {+ })] }) : /* @__PURE__ */ (0, L.jsx)(cw, { children: /* @__PURE__ */ (0, L.jsx)(ow, {shell: "plain",- icon: IS,+ icon: aC,title: "没有标记中的高清版目标",children: "现有版本都已满足条件,或还没有加入追踪。"}) });}//#endregion//#region src/react/review/bulk-toolbar.tsx-function ide(e) {- let { groupOptions: t, groupBy: n, onGroupBy: r, groups: i, filter: a, onFilter: o, pageKeys: s, selected: c, onSelected: l, selectedRows: u, metadata: d, approvable: f, busy: p, feedback: m, onUnifySource: h, onRun: g } = e, _ = s.filter((e) => c.has(e)), v = _.length > 0 && _.length === s.length, y = lk(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";+function Ide(e) {+ let { groupOptions: t, groupBy: n, onGroupBy: r, groups: i, filter: a, onFilter: o, pageKeys: s, selected: c, onSelected: l, selectedRows: u, metadata: d, approvable: f, busy: p, feedback: m, onUnifySource: h, onRun: g } = e, _ = s.filter((e) => c.has(e)), v = _.length > 0 && _.length === s.length, y = yE(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("div", {role: "group","aria-label": "复核筛选",@@ -45069,29 +46456,29 @@ function ide(e) {"data-glass-pane": "",className: "sticky top-topbar z-10 flex flex-wrap items-center gap-2 p-3",children: [- /* @__PURE__ */ (0, L.jsx)(sj, {+ /* @__PURE__ */ (0, L.jsx)(YA, {"aria-label": "筛选分组方式",size: "sm",selectedKey: n,onSelectionChange: (e) => {e !== null && r(String(e));},- children: t.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(cj, {+ children: t.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(XA, {id: e,children: t}, e))}),- i.length > 1 ? /* @__PURE__ */ (0, L.jsxs)(sj, {+ i.length > 1 ? /* @__PURE__ */ (0, L.jsxs)(YA, {"aria-label": n === "field" ? "筛选字段分类" : "筛选当前分类",size: "sm",selectedKey: a || "*",onSelectionChange: (e) => {e !== null && o(String(e) === "*" ? "" : String(e));},- children: [/* @__PURE__ */ (0, L.jsx)(cj, {+ children: [/* @__PURE__ */ (0, L.jsx)(XA, {id: "*",children: "全部分类"- }), i.map((e) => /* @__PURE__ */ (0, L.jsx)(cj, {+ }), i.map((e) => /* @__PURE__ */ (0, L.jsx)(XA, {id: e.key,children: `${e.title} · ${e.rows.length}`}, e.key))]@@ -45099,7 +46486,7 @@ function ide(e) {/* @__PURE__ */ (0, L.jsx)(G, {variant: "secondary",size: "small",- leadingIcon: lS,+ leadingIcon: AS,"aria-pressed": v,disabled: p || !s.length,onClick: () => {@@ -45110,11 +46497,11 @@ function ide(e) {children: v ? "清空当前选择" : a ? "全选当前分类" : "全选本页"})]- }), c.size ? /* @__PURE__ */ (0, L.jsxs)(sL, {+ }), c.size ? /* @__PURE__ */ (0, L.jsxs)(hL, {label: "复核所选项目",count: `已选 ${c.size} 项`,children: [- b ? /* @__PURE__ */ (0, L.jsxs)(sj, {+ b ? /* @__PURE__ */ (0, L.jsxs)(YA, {"aria-label": "统一选择来源",size: "sm",selectedKey: "",@@ -45122,10 +46509,10 @@ function ide(e) {onSelectionChange: (e) => {e !== null && e !== "" && h(String(e));},- children: [/* @__PURE__ */ (0, L.jsx)(cj, {+ children: [/* @__PURE__ */ (0, L.jsx)(XA, {id: "",children: x- }), y.map((e) => /* @__PURE__ */ (0, L.jsx)(cj, {+ }), y.map((e) => /* @__PURE__ */ (0, L.jsx)(XA, {id: e,children: e}, e))]@@ -45161,7 +46548,7 @@ function ide(e) {}//#endregion//#region src/react/review/candidate-form.tsx-var ade = {+var Lde = {title: "标题",original_title: "原标题",runtime: "来源时长",@@ -45171,14 +46558,14 @@ var ade = {cover_url: "封面",screenshot_urls: "截图",trailer_url: "预告片"-}, FL = "reviewgenretags";-function ode({ tags: e }) {+}, pR = "reviewgenretags";+function Rde({ tags: e }) {return e.length ? /* @__PURE__ */ (0, L.jsx)("datalist", {- id: FL,+ id: pR,children: e.map((e) => /* @__PURE__ */ (0, L.jsx)("option", { value: e }, e))}) : null;}-function IL({ candidate: e, selectable: t = !1 }) {+function mR({ candidate: e, selectable: t = !1 }) {let n = Object.entries(e.catalog_evidence || {}).filter(([, e]) => e && e.display_value), r = e.content_id || e.provider_id;return /* @__PURE__ */ (0, L.jsxs)("span", {className: "flex min-w-0 flex-1 flex-col",@@ -45215,7 +46602,7 @@ function IL({ candidate: e, selectable: t = !1 }) {children: [/* @__PURE__ */ (0, L.jsx)("dt", {className: "text-body-2-regular text-text-secondary",- children: ade[e] || e+ children: Lde[e] || e}),/* @__PURE__ */ (0, L.jsx)("dd", {className: "min-w-0 text-body-2-regular break-words text-text-primary",@@ -45230,36 +46617,36 @@ function IL({ candidate: e, selectable: t = !1 }) {}) : null]});}-function sde({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {+function zde({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {let a = e.candidates || [];return a.length ? a.length === 1 ? /* @__PURE__ */ (0, L.jsx)("div", {className: "flex overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default",- children: /* @__PURE__ */ (0, L.jsx)(IL, { candidate: a[0] })- }) : /* @__PURE__ */ (0, L.jsx)(OD, {+ children: /* @__PURE__ */ (0, L.jsx)(mR, { candidate: a[0] })+ }) : /* @__PURE__ */ (0, L.jsx)(Ek, {"aria-label": `${t || "候选"}的来源`,value: n,isDisabled: i,onChange: r,className: "flex flex-col gap-2",- children: a.map((e) => /* @__PURE__ */ (0, L.jsx)(kD, {+ children: a.map((e) => /* @__PURE__ */ (0, L.jsx)(Dk, {value: e.candidate_key,className: "group flex cursor-pointer items-center gap-2 overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:border-border-button-active data-disabled:cursor-not-allowed",- children: /* @__PURE__ */ (0, L.jsx)(IL, {+ children: /* @__PURE__ */ (0, L.jsx)(mR, {candidate: e,selectable: !0})}, e.candidate_key))}) : null;}-function cde({ genre: e, tags: t, locked: n, toast: r }) {- let [i, a] = (0, I.useState)(""), [o, s] = (0, I.useState)(""), c = Pt({- mutationFn: (t) => Gae(e, t),+function Bde({ genre: e, tags: t, locked: n, toast: r }) {+ let [i, a] = (0, I.useState)(""), [o, s] = (0, I.useState)(""), c = It({+ mutationFn: (t) => NE(e, t),onSuccess: async (t, n) => {if (!t.ok) {s(t.error || "服务端拒绝了这次收录");return;}- r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await qae();+ r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await IE();},onError: (e) => s(K(e))}), l = () => {@@ -45278,16 +46665,16 @@ function cde({ genre: e, tags: t, locked: n, toast: r }) {className: "text-body-medium text-text-primary",children: e}),- /* @__PURE__ */ (0, L.jsx)(Lj, {+ /* @__PURE__ */ (0, L.jsx)(Tj, {"aria-label": `「${e}」收录成的中文标签`,value: i,onChange: a,maxLength: 40,isDisabled: n || c.isPending,className: "min-w-40 flex-1",- children: /* @__PURE__ */ (0, L.jsx)(zj, {+ children: /* @__PURE__ */ (0, L.jsx)(Dj, {size: "small",- list: t.length ? FL : void 0,+ list: t.length ? pR : void 0,autoComplete: "off",placeholder: "中文标签",onKeyDown: (e) => {@@ -45319,8 +46706,8 @@ function cde({ genre: e, tags: t, locked: n, toast: r }) {]});}-function lde({ row: e, tags: t, locked: n, toast: r }) {- let i = _k(e);+function Vde({ row: e, tags: t, locked: n, toast: r }) {+ let i = DE(e);return i.length ? /* @__PURE__ */ (0, L.jsxs)("div", {role: "group","aria-label": "未收录 genre",@@ -45328,7 +46715,7 @@ function lde({ row: e, tags: t, locked: n, toast: r }) {children: [/* @__PURE__ */ (0, L.jsx)("h5", {className: "text-body-2-medium text-text-secondary",children: `未收录 genre · ${i.length}`- }), i.map((e) => /* @__PURE__ */ (0, L.jsx)(cde, {+ }), i.map((e) => /* @__PURE__ */ (0, L.jsx)(Bde, {genre: e,tags: t,locked: n,@@ -45338,9 +46725,9 @@ function lde({ row: e, tags: t, locked: n, toast: r }) {}//#endregion//#region src/react/review/review-evidence.tsx-var LL = (e = "") => /^https?:\/\//i.test(e) ? e : "", ude = (e = "") => LL(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");-function RL({ url: e }) {- let t = ude(e || ""), [n, r] = (0, I.useState)(!1);+var hR = (e = "") => /^https?:\/\//i.test(e) ? e : "", Hde = (e = "") => hR(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");+function gR({ url: e }) {+ let t = Hde(e || ""), [n, r] = (0, I.useState)(!1);return /* @__PURE__ */ (0, L.jsx)("div", {className: "flex h-review-image items-center justify-center overflow-hidden rounded-surface bg-background-secondary-default",children: t && !n ? /* @__PURE__ */ (0, L.jsx)("img", {@@ -45355,7 +46742,7 @@ function RL({ url: e }) {})});}-function zL({ asset: e, openItem: t }) {+function _R({ asset: e, openItem: t }) {let n = e.name || "";return /* @__PURE__ */ (0, L.jsxs)("div", {className: "flex min-w-0 items-center gap-2.5 rounded-surface bg-background-secondary-default p-2",@@ -45371,7 +46758,7 @@ function zL({ asset: e, openItem: t }) {}) : /* @__PURE__ */ (0, L.jsx)("span", {className: "text-caption-1-regular text-text-secondary",children: "无封面"- }), /* @__PURE__ */ (0, L.jsx)(q_, { children: `打开原视频 ${n}` })]+ }), /* @__PURE__ */ (0, L.jsx)(K_, { children: `打开原视频 ${n}` })]}), /* @__PURE__ */ (0, L.jsxs)("div", {className: "flex min-w-0 flex-col items-start gap-1",children: [/* @__PURE__ */ (0, L.jsx)("b", {@@ -45381,21 +46768,21 @@ function zL({ asset: e, openItem: t }) {}), /* @__PURE__ */ (0, L.jsx)(G, {variant: "secondary",size: "small",- leadingIcon: TS,+ leadingIcon: JS,onClick: () => t(e.id),children: "打开原视频"})]})]});}-function dde({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {+function Ude({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {return /* @__PURE__ */ (0, L.jsxs)("div", {className: "flex min-w-0 items-center gap-3",children: [/* @__PURE__ */ (0, L.jsx)("button", {type: "button","aria-label": `打开创作者页:${t}`,onClick: () => i(e, t),- className: `relative inline-grid size-11 shrink-0 cursor-pointer place-items-center overflow-hidden rounded-full bg-background-secondary-default text-caption-1-medium text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring ${oL}`,+ className: `relative inline-grid size-11 shrink-0 cursor-pointer place-items-center overflow-hidden rounded-full bg-background-secondary-default text-caption-1-medium text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring ${mL}`,dangerouslySetInnerHTML: { __html: r }}), /* @__PURE__ */ (0, L.jsxs)("div", {className: "flex min-w-0 flex-col items-start",@@ -45411,8 +46798,8 @@ function dde({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {})]});}-function fde({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {- let o = LL(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));+function Wde({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {+ let o = hR(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));return /* @__PURE__ */ (0, L.jsxs)("section", {className: "flex flex-col gap-3",children: [@@ -45422,10 +46809,10 @@ function fde({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no}),/* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-wrap items-center gap-2",- children: [o ? /* @__PURE__ */ (0, L.jsx)(Sw, {+ children: [o ? /* @__PURE__ */ (0, L.jsx)(tw, {variant: "secondary",size: "small",- trailingIcon: mS,+ trailingIcon: LS,href: o,target: "_blank",rel: "noopener noreferrer",@@ -45437,7 +46824,7 @@ function fde({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, nochildren: `查看全部 ${c.toLocaleString()} 部作品`})]}),- /* @__PURE__ */ (0, L.jsx)(RL, { url: e.preview_url }),+ /* @__PURE__ */ (0, L.jsx)(gR, { url: e.preview_url }),/* @__PURE__ */ (0, L.jsx)("p", {className: "text-body-2-regular text-text-secondary",children: "通过后记录身份判断。"@@ -45480,7 +46867,7 @@ function fde({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no]});}-function pde({ assets: e, picked: t, onPicked: n, locked: r }) {+function Gde({ assets: e, picked: t, onPicked: n, locked: r }) {let [i, a] = (0, I.useState)(null), o = new Set(t), s = (t, s) => {if (r) return;let c = new Set(o);@@ -45536,7 +46923,7 @@ function pde({ assets: e, picked: t, onPicked: n, locked: r }) {}),/* @__PURE__ */ (0, L.jsx)("span", {className: "absolute top-1 right-1",- children: /* @__PURE__ */ (0, L.jsx)(_j, {+ children: /* @__PURE__ */ (0, L.jsx)(aj, {size: "sm",state: {isSelected: n,@@ -45547,7 +46934,7 @@ function pde({ assets: e, picked: t, onPicked: n, locked: r }) {}})}),- /* @__PURE__ */ (0, L.jsx)(q_, { children: `${n ? "已选" : "未选"} ${e.name || e.id}` })+ /* @__PURE__ */ (0, L.jsx)(K_, { children: `${n ? "已选" : "未选"} ${e.name || e.id}` })]}, e.id);})@@ -45556,19 +46943,19 @@ function pde({ assets: e, picked: t, onPicked: n, locked: r }) {}//#endregion//#region src/react/review/review-card.tsx-var mde = Nw({+var Kde = aw({variant: "outlined",padding: "none",className: "flex flex-col gap-4 px-5 pt-4"-}), BL = "flex min-h-6 min-w-0 items-center", hde = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";-function gde(e) {- let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, I.useRef)(!1), m = bO(), h = bO(), g = t === "metadata_fields", _ = Hae[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = mk(t, n), x = pk(t, n), S = fk(t, n), C = hk(n), w = gk(n), T = dk(t, n), E = n.comparison_assets || [], D = n.preview_assets || [], O = String(n.decision || "pending") !== "pending", k = E.length > 1 ? /* @__PURE__ */ (0, L.jsx)("div", {+}), vR = "flex min-h-6 min-w-0 items-center", qde = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";+function Jde(e) {+ let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, I.useRef)(!1), m = hA(), h = hA(), g = t === "metadata_fields", _ = mE[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = wE(t, n), x = CE(t, n), S = SE(t, n), C = TE(n), w = EE(n), T = xE(t, n), E = n.comparison_assets || [], D = n.preview_assets || [], O = String(n.decision || "pending") !== "pending", k = E.length > 1 ? /* @__PURE__ */ (0, L.jsx)("div", {className: "flex flex-col gap-3",- children: E.map((e) => /* @__PURE__ */ (0, L.jsx)(zL, {+ children: E.map((e) => /* @__PURE__ */ (0, L.jsx)(_R, {asset: e,openItem: f.openItem}, e.id))- }) : y ? /* @__PURE__ */ (0, L.jsx)(dde, {+ }) : y ? /* @__PURE__ */ (0, L.jsx)(Ude, {kind: _,name: v,works: Number(n.video_count || n.videos || 0),@@ -45578,14 +46965,14 @@ function gde(e) {has_image: !!n.has_image,avatar_focus: n.avatar_focus} : null, null, _)- }) : n.asset_id ? /* @__PURE__ */ (0, L.jsx)(zL, {+ }) : n.asset_id ? /* @__PURE__ */ (0, L.jsx)(_R, {openItem: f.openItem,asset: {id: n.asset_id,name: n.asset_name,preview_url: n.asset_preview_url}- }) : null, A = g ? /* @__PURE__ */ (0, L.jsx)(sde, {+ }) : null, A = g ? /* @__PURE__ */ (0, L.jsx)(zde, {row: n,fieldName: x,value: r.candidateKey,@@ -45594,7 +46981,7 @@ function gde(e) {candidateKey: e}),locked: s- }) : t === "creator_tags" ? D.length ? /* @__PURE__ */ (0, L.jsx)(pde, {+ }) : t === "creator_tags" ? D.length ? /* @__PURE__ */ (0, L.jsx)(Gde, {assets: D,picked: r.assets,locked: s,@@ -45602,21 +46989,21 @@ function gde(e) {...r,assets: e})- }) : /* @__PURE__ */ (0, L.jsx)(Fw, {+ }) : /* @__PURE__ */ (0, L.jsx)(ow, {shell: "inset",- icon: bS,+ icon: US,title: "这批作品尚未抽帧",children: `${n.video_count || ""} 条作品还没有可用预览;批准后仍会按候选写入标签。`- }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, L.jsx)(fde, {+ }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, L.jsx)(Wde, {row: n,openItem: f.openItem,openEntity: f.openEntity,onReveal: f.onReveal,revealing: f.revealing,note: f.revealNote- }) : /* @__PURE__ */ (0, L.jsx)(RL, { url: n.preview_url }), j = y ? k : x ? /* @__PURE__ */ (0, L.jsxs)("h4", {- className: `${BL} flex-wrap gap-2`,- children: [/* @__PURE__ */ (0, L.jsx)(bw, {+ }) : /* @__PURE__ */ (0, L.jsx)(gR, { url: n.preview_url }), j = y ? k : x ? /* @__PURE__ */ (0, L.jsxs)("h4", {+ className: `${vR} flex-wrap gap-2`,+ children: [/* @__PURE__ */ (0, L.jsx)($C, {variant: "caption",color: "blue",children: x@@ -45626,7 +47013,7 @@ function gde(e) {children: S})]}) : /* @__PURE__ */ (0, L.jsx)("h4", {- className: BL,+ className: vR,children: /* @__PURE__ */ (0, L.jsx)("span", {title: b,className: "min-w-0 truncate text-body-medium text-text-primary",@@ -45636,20 +47023,20 @@ function gde(e) {return /* @__PURE__ */ (0, L.jsxs)("section", {"aria-label": b,"data-review-key": n.item_key,- className: `${mde} ${hde(t)} overflow-hidden`,+ className: `${Kde} ${qde(t)} overflow-hidden`,children: [/* @__PURE__ */ (0, L.jsxs)("header", {className: "flex min-w-0 shrink-0 items-start gap-2",children: [s ? null : /* @__PURE__ */ (0, L.jsx)("span", {- className: `${BL} shrink-0`,+ className: `${vR} shrink-0`,onPointerDownCapture: (e) => {p.current = e.shiftKey;},onKeyDownCapture: (e) => {p.current = e.shiftKey;},- children: /* @__PURE__ */ (0, L.jsx)(vj, {+ children: /* @__PURE__ */ (0, L.jsx)(oj, {isSelected: a,"aria-label": `选择 ${b}`,onChange: (e) => o(p.current, e)@@ -45659,7 +47046,7 @@ function gde(e) {className: "min-w-0 flex-1",children: j}),- O ? /* @__PURE__ */ (0, L.jsx)(bw, {+ O ? /* @__PURE__ */ (0, L.jsx)($C, {variant: "caption",color: "neutral",children: n.decision@@ -45683,7 +47070,7 @@ function gde(e) {!y && k ? k : null,w.length || t === "creator_tags" ? /* @__PURE__ */ (0, L.jsx)("div", {className: "flex flex-wrap gap-1",- children: w.length ? w.map((e) => /* @__PURE__ */ (0, L.jsx)(bw, {+ children: w.length ? w.map((e) => /* @__PURE__ */ (0, L.jsx)($C, {variant: "caption",color: "soft",children: e@@ -45693,7 +47080,7 @@ function gde(e) {})}) : null,A,- /* @__PURE__ */ (0, L.jsx)(lde, {+ /* @__PURE__ */ (0, L.jsx)(Vde, {row: n,tags: u,locked: s,@@ -45755,8 +47142,8 @@ function gde(e) {}//#endregion//#region src/react/review/review-page.tsx-var _de = "flex min-h-9 cursor-pointer items-center justify-between gap-2 rounded-2lg p-2 text-left text-body-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-background-tertiary-default data-selected:text-text-primary review-tight:min-h-10 review-tight:px-3 review-tight:py-2.5";-function vde({ page: e, pages: t, onPage: n }) {+var Yde = "flex min-h-9 cursor-pointer items-center justify-between gap-2 rounded-2lg p-2 text-left text-body-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-background-tertiary-default data-selected:text-text-primary review-tight:min-h-10 review-tight:px-3 review-tight:py-2.5";+function Xde({ page: e, pages: t, onPage: n }) {return t <= 1 ? null : /* @__PURE__ */ (0, L.jsxs)("nav", {"aria-label": "复核分页",className: "flex w-full flex-wrap items-center justify-between gap-2",@@ -45770,7 +47157,7 @@ function vde({ page: e, pages: t, onPage: n }) {}),/* @__PURE__ */ (0, L.jsx)("ul", {className: "flex flex-wrap items-center gap-1",- children: QO(e, t).map((t, r) => /* @__PURE__ */ (0, L.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, L.jsx)("span", {+ children: tE(e, t).map((t, r) => /* @__PURE__ */ (0, L.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, L.jsx)("span", {"aria-hidden": !0,className: "px-1 text-body-2-regular text-text-tertiary",children: "…"@@ -45793,43 +47180,43 @@ function vde({ page: e, pages: t, onPage: n }) {]});}-function yde(e) {- let { route: t, openItem: n, openEntity: r, revealSource: i, avatarInner: a, toast: o, readOnly: s, readOnlyMessage: c, writerUrl: l } = e, [u, d] = (0, I.useState)(ik(e.category) ? e.category : Vae), [f, p] = (0, I.useState)("candidates"), [m, h] = (0, I.useState)(""), [g, _] = (0, I.useState)(1), [v, y] = (0, I.useState)(/* @__PURE__ */ new Set()), [b, x] = (0, I.useState)(/* @__PURE__ */ new Map()), [S, C] = (0, I.useState)(/* @__PURE__ */ new Map()), [w, T] = (0, I.useState)(""), E = (0, I.useRef)(null), [D, O] = (0, I.useState)(0), [k, A] = (0, I.useState)(""), j = (0, I.useRef)(!0);+function Zde(e) {+ let { route: t, openItem: n, openEntity: r, revealSource: i, avatarInner: a, toast: o, readOnly: s, readOnlyMessage: c, writerUrl: l } = e, [u, d] = (0, I.useState)(pE(e.category) ? e.category : fE), [f, p] = (0, I.useState)("candidates"), [m, h] = (0, I.useState)(""), [g, _] = (0, I.useState)(1), [v, y] = (0, I.useState)(/* @__PURE__ */ new Set()), [b, x] = (0, I.useState)(/* @__PURE__ */ new Map()), [S, C] = (0, I.useState)(/* @__PURE__ */ new Map()), [w, T] = (0, I.useState)(""), E = (0, I.useRef)(null), [D, O] = (0, I.useState)(0), [k, A] = (0, I.useState)(""), j = (0, I.useRef)(!0);(0, I.useEffect)(() => () => {j.current = !1;}, []);- let M = Nt({- queryKey: nk,- queryFn: ({ signal: e }) => yk(e)+ let M = Ft({+ queryKey: lE,+ queryFn: ({ signal: e }) => jE(e)}).data || {sections: {},counts: {}- }, N = M.sections[u] || [], P = u === "metadata_fields", ee = s, F = ak(N, P), te = F.some(([e]) => e === f) ? f : "candidates", ne = ok(N, te), re = ne.some((e) => e.key === m) ? m : "", ie = ck(sk(N, te, re), g), ae = ie.rows.map((e) => e.item_key), oe = new Set(ae), se = ne.map((e) => ({+ }, N = M.sections[u] || [], ee = u === "metadata_fields", te = s, P = hE(N, ee), ne = P.some(([e]) => e === f) ? f : "candidates", F = gE(N, ne), re = F.some((e) => e.key === m) ? m : "", ie = vE(_E(N, ne, re), g), ae = ie.rows.map((e) => e.item_key), oe = new Set(ae), se = F.map((e) => ({...e,rows: e.rows.filter((e) => oe.has(e.item_key))- })).filter((e) => e.rows.length), ce = (e) => b.get(e.item_key) || Uae(e), le = N.filter((e) => v.has(e.item_key)), ue = (e) => {+ })).filter((e) => e.rows.length), ce = (e) => b.get(e.item_key) || OE(e), le = N.filter((e) => v.has(e.item_key)), ue = (e) => {let t = new Set(e);y((e) => new Set([...e].filter((e) => !t.has(e)))), x((e) => new Map([...e].filter(([e]) => !t.has(e)))), C((e) => new Map([...e].filter(([e]) => !t.has(e))));}, R = (e, t) => C((n) => new Map(n).set(e, t)), z = (e) => {d(e), p("candidates"), h(""), _(1), y(/* @__PURE__ */ new Set()), x(/* @__PURE__ */ new Map()), C(/* @__PURE__ */ new Map()), T(""), E.current = null, t({ category: e === "metadata_fields" ? "" : e });- }, de = Pt({- mutationFn: ({ row: e, status: t }) => bk(vk(u, e, t, ce(e))),+ }, de = It({+ mutationFn: ({ row: e, status: t }) => ME(kE(u, e, t, ce(e))),onSuccess: (e, { row: t, status: n }) => {if (!e.ok) {R(t.item_key, e.error || "服务端拒绝了这次判定");return;}- xk(u, [t.item_key]), ue([t.item_key]), o(Wae(n));+ FE(u, [t.item_key]), ue([t.item_key]), o(AE(n));},onError: (e, { row: t }) => R(t.item_key, K(e))- }), fe = Pt({+ }), fe = It({mutationFn: async (e) => {let t = le, n = [], r = [];for (let [i, a] of t.entries()) {if (!j.current) break;T(`正在处理 ${i} / ${t.length}`);try {- let t = await bk(vk(u, a, e, ce(a)));+ let t = await ME(kE(u, a, e, ce(a)));if (!t.ok) throw Error(t.error || "服务端未采用该项");n.push(a.item_key);} catch (e) {@@ -45843,14 +47230,14 @@ function yde(e) {};},onSuccess: ({ status: e, done: t, failures: n }) => {- xk(u, t), ue(t), n.forEach(([e, t]) => R(e, t)), T(""), o(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));+ FE(u, t), ue(t), n.forEach(([e, t]) => R(e, t)), T(""), o(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));},onError: (e) => {T(K(e));}}), pe = (e) => {if (!(fe.isPending || !le.length)) {- if (e === "approved" && P && le.some((e) => !ce(e).candidateKey)) {+ if (e === "approved" && ee && le.some((e) => !ce(e).candidateKey)) {T("先为所选的多来源候选选择来源。");return;}@@ -45873,7 +47260,7 @@ function yde(e) {O(e), A("");let t = await i(e);j.current && (O(0), A(t));- }, ge = Jae(M.mirror, c), _e = M.genre_tags || [], ve = {+ }, ge = LE(M.mirror, c), _e = M.genre_tags || [], ve = {openItem: n,openEntity: r,onReveal: he,@@ -45882,10 +47269,10 @@ function yde(e) {avatarInner: a,toast: o};- return /* @__PURE__ */ (0, L.jsx)(Lw, { children: /* @__PURE__ */ (0, L.jsxs)("div", {+ return /* @__PURE__ */ (0, L.jsx)(cw, { children: /* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-col gap-5 pb-10",children: [- ee ? /* @__PURE__ */ (0, L.jsx)(J, {+ te ? /* @__PURE__ */ (0, L.jsx)(J, {tone: "warning",title: "本机只能浏览",extra: l ? /* @__PURE__ */ (0, L.jsx)("p", {@@ -45898,12 +47285,12 @@ function yde(e) {}) : void 0,children: ge}) : null,- /* @__PURE__ */ (0, L.jsx)(ode, { tags: _e }),- /* @__PURE__ */ (0, L.jsxs)(rO, {+ /* @__PURE__ */ (0, L.jsx)(Rde, { tags: _e }),+ /* @__PURE__ */ (0, L.jsxs)(tA, {selectedKey: u,onSelectionChange: (e) => {let t = String(e);- ik(t) && z(t);+ pE(t) && z(t);},className: "flex flex-col gap-5 review-split:flex-row-reverse review-split:items-start review-split:gap-6",children: [/* @__PURE__ */ (0, L.jsxs)("div", {@@ -45912,32 +47299,32 @@ function yde(e) {id: "reviewcategories",className: "px-3 pb-3 text-caption-1-regular text-text-secondary",children: "复核分类"- }), /* @__PURE__ */ (0, L.jsx)(iO, {+ }), /* @__PURE__ */ (0, L.jsx)(nA, {"aria-labelledby": "reviewcategories",className: "flex flex-wrap gap-1 review-split:flex-col review-split:flex-nowrap review-split:items-stretch",- children: Bae.map((e) => {+ children: dE.map((e) => {let t = Number(M.counts[e] || 0);- return /* @__PURE__ */ (0, L.jsxs)(aO, {+ return /* @__PURE__ */ (0, L.jsxs)(rA, {id: e,- className: _de,- children: [rk[e], t ? /* @__PURE__ */ (0, L.jsx)("span", {+ className: Yde,+ children: [uE[e], t ? /* @__PURE__ */ (0, L.jsx)("span", {className: "tabular-nums text-caption-1-medium text-text-secondary",children: t.toLocaleString()}) : null]}, e);})})]- }), /* @__PURE__ */ (0, L.jsxs)(oO, {+ }), /* @__PURE__ */ (0, L.jsxs)(iA, {id: u,className: "flex min-w-0 flex-1 flex-col gap-5",children: [- N.length && !ee ? /* @__PURE__ */ (0, L.jsx)(ide, {- groupOptions: F,- groupBy: te,+ N.length && !te ? /* @__PURE__ */ (0, L.jsx)(Ide, {+ groupOptions: P,+ groupBy: ne,onGroupBy: (e) => {p(e), h(""), _(1);},- groups: ne,+ groups: F,filter: re,onFilter: (e) => {h(e), _(1);@@ -45946,8 +47333,8 @@ function yde(e) {selected: v,onSelected: y,selectedRows: le,- metadata: P,- approvable: le.every((e) => dk(u, e)),+ metadata: ee,+ approvable: le.every((e) => xE(u, e)),busy: fe.isPending,feedback: w,onUnifySource: me,@@ -45955,12 +47342,12 @@ function yde(e) {}) : null,ie.rows.length ? se.map((e) => /* @__PURE__ */ (0, L.jsxs)("section", {className: "flex flex-col gap-3",- children: [se.length > 1 || te !== "candidates" ? /* @__PURE__ */ (0, L.jsxs)("div", {+ children: [se.length > 1 || ne !== "candidates" ? /* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-wrap items-center gap-2",children: [/* @__PURE__ */ (0, L.jsx)("h3", {className: "text-body-medium text-text-primary",children: `${e.title} · ${e.rows.length}`- }), ee ? null : /* @__PURE__ */ (0, L.jsx)(G, {+ }), te ? null : /* @__PURE__ */ (0, L.jsx)(G, {variant: "ghost",size: "small",onClick: () => {@@ -45972,7 +47359,7 @@ function yde(e) {})]}) : null, /* @__PURE__ */ (0, L.jsx)("div", {className: "review-grid gap-5",- children: e.rows.map((e) => /* @__PURE__ */ (0, L.jsx)(gde, {+ children: e.rows.map((e) => /* @__PURE__ */ (0, L.jsx)(Jde, {category: u,row: e,choice: ce(e),@@ -45980,9 +47367,9 @@ function yde(e) {selected: v.has(e.item_key),onSelect: (t, n) => y((r) => {let i = new Set(r);- return E.current = uk(i, ae, E.current, e.item_key, t, n), i;+ return E.current = bE(i, ae, E.current, e.item_key, t, n), i;}),- locked: ee,+ locked: te,busy: de.isPending && de.variables?.row.item_key === e.item_key,problem: S.get(e.item_key) || "",genreTags: _e,@@ -45995,12 +47382,12 @@ function yde(e) {handlers: ve}, e.item_key))})]- }, e.key)) : /* @__PURE__ */ (0, L.jsx)(Fw, {- icon: ine,+ }, e.key)) : /* @__PURE__ */ (0, L.jsx)(ow, {+ icon: jS,title: "暂无候选",children: "该分类当前没有待人工复核的项目。"}),- /* @__PURE__ */ (0, L.jsx)(vde, {+ /* @__PURE__ */ (0, L.jsx)(Xde, {page: ie.page,pages: ie.pages,onPage: _@@ -46013,30 +47400,30 @@ function yde(e) {}//#endregion//#region src/react/scraping/scraping.ts-var bde = "/api/scraping", xde = "/api/scraping/settings", Sde = "/api/scraping/check", VL = "/api/scraping/cover", Cde = "/api/scraping/amane-bridge", wde = "/api/scraping/amane-bridge/check", Tde = "/api/scraping/amane-bridge/rebuild", HL = ["scraping"], UL = ["scraping", "cover"], WL = ["scraping", "amane-bridge"], GL = (e) => Tw(bde, e), KL = (e) => Tw(VL, e), qL = (e) => Tw(Cde, e);-async function Ede(e) {+var Qde = "/api/scraping", $de = "/api/scraping/settings", efe = "/api/scraping/check", yR = "/api/scraping/cover", tfe = "/api/scraping/amane-bridge", nfe = "/api/scraping/amane-bridge/check", rfe = "/api/scraping/amane-bridge/rebuild", bR = ["scraping"], xR = ["scraping", "cover"], SR = ["scraping", "amane-bridge"], CR = (e) => iw(Qde, e), wR = (e) => iw(yR, e), TR = (e) => iw(tfe, e);+async function ife(e) {await Promise.all([X.fetchQuery({- queryKey: HL,- queryFn: () => GL(e)+ queryKey: bR,+ queryFn: () => CR(e)}),X.fetchQuery({- queryKey: UL,- queryFn: () => KL(e)+ queryKey: xR,+ queryFn: () => wR(e)}),X.fetchQuery({- queryKey: WL,- queryFn: () => qL(e)+ queryKey: SR,+ queryFn: () => TR(e)})]);}-function Dde(e, t) {+function afe(e, t) {return `${t}${e.label === "来源页面" ? "" : " 高清图片"}:${e.ok ? "可连接" : "不能连接"}` + (e.width ? ` · ${e.width} × ${e.height}` : "") + (e.message ? `。${e.message}` : "");}//#endregion//#region src/react/scraping/scraping-page.tsx-var Ode = [["peach", "Peach 代理"], ["direct", "直接连接"]], JL = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];-function kde({ source: e }) {+var ofe = [["peach", "Peach 代理"], ["direct", "直接连接"]], ER = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];+function sfe({ source: e }) {return /* @__PURE__ */ (0, L.jsx)("img", {src: p({ source: e }),alt: "",@@ -46047,13 +47434,13 @@ function kde({ source: e }) {className: "size-4 shrink-0 rounded-sm object-contain"});}-function Ade({ source: e, toast: t }) {- let [n, r] = (0, I.useState)(e.network), [i, a] = (0, I.useState)(""), [o, s] = (0, I.useState)(""), [c, l] = (0, I.useState)(JL[0][0]), [u, d] = (0, I.useState)(""), [f, p] = (0, I.useState)(""), m = (0, I.useRef)(null);+function cfe({ source: e, toast: t }) {+ let [n, r] = (0, I.useState)(e.network), [i, a] = (0, I.useState)(""), [o, s] = (0, I.useState)(""), [c, l] = (0, I.useState)(ER[0][0]), [u, d] = (0, I.useState)(""), [f, p] = (0, I.useState)(""), m = (0, I.useRef)(null);function h() {a(""), s(""), d(""), p(""), m.current && (m.current.value = "");}- let g = Pt({- mutationFn: (t) => q(xde, {+ let g = It({+ mutationFn: (t) => q($de, {source: e.source,network: n,cookie: i,@@ -46061,12 +47448,12 @@ function Ade({ source: e, toast: t }) {revoke: t}),onSuccess: (e, n) => {- X.setQueryData(HL, (t) => t && {+ X.setQueryData(bR, (t) => t && {...t,sources: t.sources.map((t) => t.source === e.saved.source ? e.saved : t)}), h(), t(n ? "Cookie 已撤销" : "来源设置已保存");}- }), _ = Pt({ mutationFn: () => q(Sde, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {+ }), _ = It({ mutationFn: () => q(efe, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {e.preventDefault(), !v && (_.reset(), g.mutate(!1));}, b = () => {v || (_.reset(), g.mutate(!0));@@ -46091,40 +47478,40 @@ function Ade({ source: e, toast: t }) {}}let C = f || (g.error ? K(g.error) : "") || (_.error ? K(_.error) : ""), w = _.data?.results ?? [], T = n === "peach" || e.accepts_cookie || e.browser || !!C || w.length > 0;- return /* @__PURE__ */ (0, L.jsxs)(PA, {+ return /* @__PURE__ */ (0, L.jsxs)(SA, {title: e.label,onSubmit: y,aside: /* @__PURE__ */ (0, L.jsxs)("span", {className: "flex min-w-0 items-center gap-1",- children: [/* @__PURE__ */ (0, L.jsx)(kde, { source: e.source }), /* @__PURE__ */ (0, L.jsx)(VA, {+ children: [/* @__PURE__ */ (0, L.jsx)(sfe, { source: e.source }), /* @__PURE__ */ (0, L.jsx)(kA, {href: e.login,children: e.login})]}),children: [- /* @__PURE__ */ (0, L.jsx)(FA, { children: /* @__PURE__ */ (0, L.jsx)(NA, {+ /* @__PURE__ */ (0, L.jsx)(CA, { children: /* @__PURE__ */ (0, L.jsx)(xA, {label: "连接方式",- children: /* @__PURE__ */ (0, L.jsx)(sj, {+ children: /* @__PURE__ */ (0, L.jsx)(YA, {"aria-label": "连接方式",selectedKey: n,onSelectionChange: (e) => {e !== null && r(String(e));},- children: Ode.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(cj, {+ children: ofe.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(XA, {id: e,children: t}, e))})}) }),- T ? /* @__PURE__ */ (0, L.jsxs)(IA, {+ T ? /* @__PURE__ */ (0, L.jsxs)(wA, {divided: !0,children: [n === "peach" ? /* @__PURE__ */ (0, L.jsx)("span", {className: "self-start",- children: /* @__PURE__ */ (0, L.jsx)(SA, {+ children: /* @__PURE__ */ (0, L.jsx)(oA, {href: "/configuration#peachProxy",size: "small",- trailingIcon: oS,+ trailingIcon: ES,children: "配置 Peach 代理"})}) : null,@@ -46137,20 +47524,20 @@ function Ade({ source: e, toast: t }) {className: "text-body-2-regular text-text-secondary",children: e.cookie_saved ? "Cookie 已保存;登录是否有效要到抓取时才知道。" : "需要登录时,任选一种方式提供 Cookie。"}),- /* @__PURE__ */ (0, L.jsx)(OD, {+ /* @__PURE__ */ (0, L.jsx)(Ek, {"aria-label": "提供 Cookie 的方式(二选一)",value: c,onChange: (e) => {l(e), h();},- className: IM,- children: JL.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(kD, {+ className: xN,+ children: ER.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Dk, {value: e,- className: LM,+ className: SN,children: t}, e))}),- c === "paste" ? /* @__PURE__ */ (0, L.jsx)(Bj, {+ c === "paste" ? /* @__PURE__ */ (0, L.jsx)(Oj, {type: "password",label: "Cookie",autoComplete: "off",@@ -46159,7 +47546,7 @@ function Ade({ source: e, toast: t }) {}) : /* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-col gap-2",children: [- /* @__PURE__ */ (0, L.jsx)(BA, { children: "Netscape Cookie 文件(.txt)" }),+ /* @__PURE__ */ (0, L.jsx)(OA, { children: "Netscape Cookie 文件(.txt)" }),/* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-wrap items-center gap-3",children: [/* @__PURE__ */ (0, L.jsx)(G, {@@ -46185,14 +47572,14 @@ function Ade({ source: e, toast: t }) {]})] }) : null,- C ? /* @__PURE__ */ (0, L.jsx)(zA, { children: C }) : null,+ C ? /* @__PURE__ */ (0, L.jsx)(DA, { children: C }) : null,w.map((t) => /* @__PURE__ */ (0, L.jsx)(J, {tone: t.ok ? "success" : "error",- children: Dde(t, e.label)+ children: afe(t, e.label)}, t.label))]}) : null,- /* @__PURE__ */ (0, L.jsxs)(LA, { children: [+ /* @__PURE__ */ (0, L.jsxs)(TA, { children: [e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, L.jsx)(G, {variant: "secondary",onClick: b,@@ -46214,26 +47601,26 @@ function Ade({ source: e, toast: t }) {]});}-function jde({ toast: e }) {- let [t, n] = (0, I.useState)(""), { running: r, outcome: i, start: a } = fj({- queryKey: UL,- queryFn: ({ signal: e }) => KL(e),- start: () => q(VL, { code: t }),+function lfe({ toast: e }) {+ let [t, n] = (0, I.useState)(""), { running: r, outcome: i, start: a } = ej({+ queryKey: xR,+ queryFn: ({ signal: e }) => wR(e),+ start: () => q(yR, { code: t }),onFinish: (t) => {t.status === "complete" && e(t.result || "封面采集完成");}}), o = (e) => {e.preventDefault(), !(r || a.isPending || !t.trim()) && a.mutate();}, s = a.error ? K(a.error) : i?.status === "failed" ? i.error || "采集未取得" : "";- return /* @__PURE__ */ (0, L.jsx)(PA, {+ return /* @__PURE__ */ (0, L.jsx)(SA, {title: "高清封面",onSubmit: o,- children: /* @__PURE__ */ (0, L.jsxs)(IA, { children: [+ children: /* @__PURE__ */ (0, L.jsxs)(wA, { children: [/* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-wrap items-end gap-2",children: [/* @__PURE__ */ (0, L.jsx)("div", {className: "min-w-0 flex-1",- children: /* @__PURE__ */ (0, L.jsx)(Bj, {+ children: /* @__PURE__ */ (0, L.jsx)(Oj, {"aria-label": "馆藏番号",isRequired: !0,isDisabled: r,@@ -46248,7 +47635,7 @@ function jde({ toast: e }) {children: "抓取封面"})]}),- r ? /* @__PURE__ */ (0, L.jsx)(Iw, { label: "正在抓取封面" }) : null,+ r ? /* @__PURE__ */ (0, L.jsx)(sw, { label: "正在抓取封面" }) : null,s ? /* @__PURE__ */ (0, L.jsx)(J, {tone: "error",children: s@@ -46260,11 +47647,11 @@ function jde({ toast: e }) {] })});}-function Mde({ toast: e }) {- let { query: t, running: n, outcome: r, start: i } = fj({- queryKey: WL,- queryFn: ({ signal: e }) => qL(e),- start: () => q(Tde, {}),+function ufe({ toast: e }) {+ let { query: t, running: n, outcome: r, start: i } = ej({+ queryKey: SR,+ queryFn: ({ signal: e }) => TR(e),+ start: () => q(rfe, {}),jobOf: (e) => e.job,withJob: (e, t) => e && {...e,@@ -46273,49 +47660,49 @@ function Mde({ toast: e }) {onFinish: (t) => {t.status === "complete" && e(t.result || "amane 桥已重建");}- }), a = Pt({ mutationFn: () => q(wde, {}) }), o = t.data;- if (!o) return t.error ? /* @__PURE__ */ (0, L.jsx)(PA, {+ }), a = It({ mutationFn: () => q(nfe, {}) }), o = t.data;+ if (!o) return t.error ? /* @__PURE__ */ (0, L.jsx)(SA, {title: "amane 桥",- children: /* @__PURE__ */ (0, L.jsx)(IA, { children: /* @__PURE__ */ (0, L.jsx)(J, {+ children: /* @__PURE__ */ (0, L.jsx)(wA, { children: /* @__PURE__ */ (0, L.jsx)(J, {tone: "error",children: K(t.error)}) })}) : null;let s = n || i.isPending || a.isPending, c = i.error ? K(i.error) : a.error ? K(a.error) : r?.status === "failed" ? r.error || "重建未完成" : "";- return /* @__PURE__ */ (0, L.jsxs)(PA, {+ return /* @__PURE__ */ (0, L.jsxs)(SA, {title: "amane 桥",- aside: /* @__PURE__ */ (0, L.jsx)(VA, {+ aside: /* @__PURE__ */ (0, L.jsx)(kA, {href: o.repository,children: o.repository}),children: [- /* @__PURE__ */ (0, L.jsxs)(HA, { children: [- /* @__PURE__ */ (0, L.jsxs)(UA, {+ /* @__PURE__ */ (0, L.jsxs)(AA, { children: [+ /* @__PURE__ */ (0, L.jsxs)(jA, {term: "钉住的版本",children: [o.version ? `${o.version} · ` : "", o.revision.slice(0, 12)]}),- /* @__PURE__ */ (0, L.jsx)(UA, {+ /* @__PURE__ */ (0, L.jsx)(jA, {term: "上游最新版本",children: a.data?.latest ?? "尚未检查"}),- /* @__PURE__ */ (0, L.jsx)(UA, {+ /* @__PURE__ */ (0, L.jsx)(jA, {term: "运行环境",children: o.installed ? "已安装" : "未安装"}),- /* @__PURE__ */ (0, L.jsx)(UA, {+ /* @__PURE__ */ (0, L.jsx)(jA, {term: "开放的站",children: o.sites.map((e) => e.label).join("、")})] }),- /* @__PURE__ */ (0, L.jsxs)(IA, {+ /* @__PURE__ */ (0, L.jsxs)(wA, {divided: !0,children: [- /* @__PURE__ */ (0, L.jsxs)(RA, { children: [+ /* @__PURE__ */ (0, L.jsxs)(EA, { children: ["这几站由 amane(",o.license,")的解析器经独立子进程回答,运行环境按钉住的版本单独安装, 不随上游自动升级;换版本要人读过上游改动再改清单。首次安装约需下载 98 MB。"] }),- n ? /* @__PURE__ */ (0, L.jsx)(Iw, { label: "正在重建运行环境" }) : null,+ n ? /* @__PURE__ */ (0, L.jsx)(sw, { label: "正在重建运行环境" }) : null,c ? /* @__PURE__ */ (0, L.jsx)(J, {tone: "error",children: c@@ -46326,7 +47713,7 @@ function Mde({ toast: e }) {}) : null]}),- /* @__PURE__ */ (0, L.jsxs)(LA, { children: [/* @__PURE__ */ (0, L.jsx)(G, {+ /* @__PURE__ */ (0, L.jsxs)(TA, { children: [/* @__PURE__ */ (0, L.jsx)(G, {variant: "secondary",onClick: () => {s || a.mutate();@@ -46343,23 +47730,23 @@ function Mde({ toast: e }) {]});}-function Nde({ toast: e }) {- let t = Nt({- queryKey: HL,- queryFn: ({ signal: e }) => GL(e)+function dfe({ toast: e }) {+ let t = Ft({+ queryKey: bR,+ queryFn: ({ signal: e }) => CR(e)}), n = t.data;- return n ? /* @__PURE__ */ (0, L.jsxs)(Lw, { children: [+ return n ? /* @__PURE__ */ (0, L.jsxs)(cw, { children: [/* @__PURE__ */ (0, L.jsx)("p", {className: "text-body-2-regular text-text-secondary",children: "高清图片可能要经代理才能下载,先检查连接。"}),- /* @__PURE__ */ (0, L.jsx)(jde, { toast: e }),- (n.sources || []).map((t) => /* @__PURE__ */ (0, L.jsx)(Ade, {+ /* @__PURE__ */ (0, L.jsx)(lfe, { toast: e }),+ (n.sources || []).map((t) => /* @__PURE__ */ (0, L.jsx)(cfe, {source: t,toast: e}, t.source)),- /* @__PURE__ */ (0, L.jsx)(Mde, { toast: e })- ] }) : /* @__PURE__ */ (0, L.jsx)(Lw, { children: /* @__PURE__ */ (0, L.jsx)(J, {+ /* @__PURE__ */ (0, L.jsx)(ufe, { toast: e })+ ] }) : /* @__PURE__ */ (0, L.jsx)(cw, { children: /* @__PURE__ */ (0, L.jsx)(J, {tone: "error",title: "读取失败",children: t.error ? K(t.error) : "读取采集来源失败"@@ -46367,21 +47754,21 @@ function Nde({ toast: e }) {}//#endregion//#region src/configuration-endpoints.ts-var YL = "/api/configuration", Pde = "/api/pick-folder", XL = ["configuration"], ZL = (e) => Tw(YL, e);-async function QL(e) {+var DR = "/api/configuration", ffe = "/api/pick-folder", OR = ["configuration"], kR = (e) => iw(DR, e);+async function AR(e) {await X.fetchQuery({- queryKey: XL,- queryFn: () => ZL(e)+ queryKey: OR,+ queryFn: () => kR(e)});}//#endregion//#region src/react/settings/entry-links-settings.tsx-function Fde({ initial: e, receipt: t }) {- let [n, r] = (0, I.useState)(e.sites), i = Bw(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {+function pfe({ initial: e, receipt: t }) {+ let [n, r] = (0, I.useState)(e.sites), i = dw(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {...n,host: t} : n));- return /* @__PURE__ */ (0, L.jsxs)(PA, {+ return /* @__PURE__ */ (0, L.jsxs)(SA, {title: "外部入口",onSubmit: (e) => {e.preventDefault();@@ -46390,9 +47777,9 @@ function Fde({ initial: e, receipt: t }) {r(e.sites), t("已保存配置");});},- children: [/* @__PURE__ */ (0, L.jsxs)(IA, { children: [- /* @__PURE__ */ (0, L.jsx)(RA, { children: "账本里没有这个站点 id 的人物不显示它那一枚入口,地址不会退回站内搜索。 JavDB 与 MISSAV 只收 JAV 女优,这两枚还要账本里有哪个 JAV 目录站给过她 id 才出现; FC2 个人摄那类创作者没有这种 id,资料页上也就没有这一行。 这两站的主域名连不上时,把能打开的那个镜像域名填在下面,后面的路径由 Peach 自己拼。" }),- n.map((e) => /* @__PURE__ */ (0, L.jsx)(Bj, {+ children: [/* @__PURE__ */ (0, L.jsxs)(wA, { children: [+ /* @__PURE__ */ (0, L.jsx)(EA, { children: "账本里没有这个站点 id 的人物不显示它那一枚入口,地址不会退回站内搜索。 JavDB 与 MISSAV 只收 JAV 女优,这两枚还要账本里有哪个 JAV 目录站给过她 id 才出现; FC2 个人摄那类创作者没有这种 id,资料页上也就没有这一行。 这两站的主域名连不上时,把能打开的那个镜像域名填在下面,后面的路径由 Peach 自己拼。" }),+ n.map((e) => /* @__PURE__ */ (0, L.jsx)(Oj, {id: `entry-link-${e.key}`,label: `${e.label} 地址`,autoComplete: "off",@@ -46403,8 +47790,8 @@ function Fde({ initial: e, receipt: t }) {validationBehavior: "aria",hint: "只写域名本身,留空就是默认"}, e.key)),- i.error ? /* @__PURE__ */ (0, L.jsx)(zA, { children: i.error }) : null- ] }), /* @__PURE__ */ (0, L.jsx)(LA, { children: /* @__PURE__ */ (0, L.jsx)(G, {+ i.error ? /* @__PURE__ */ (0, L.jsx)(DA, { children: i.error }) : null+ ] }), /* @__PURE__ */ (0, L.jsx)(TA, { children: /* @__PURE__ */ (0, L.jsx)(G, {type: "submit",...Y(i.busy === "save"),children: "保存配置"@@ -46413,21 +47800,21 @@ function Fde({ initial: e, receipt: t }) {}//#endregion//#region src/react/settings/general-settings.tsx-function Ide({ data: e, receipt: t }) {+function mfe({ data: e, receipt: t }) {return /* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-col gap-6",- children: [e.startup ? /* @__PURE__ */ (0, L.jsx)(Lde, {+ children: [e.startup ? /* @__PURE__ */ (0, L.jsx)(hfe, {startup: e.startup,receipt: t- }) : null, e.entry_links ? /* @__PURE__ */ (0, L.jsx)(Fde, {+ }) : null, e.entry_links ? /* @__PURE__ */ (0, L.jsx)(pfe, {initial: e.entry_links,receipt: t}) : null]});}-function Lde({ startup: e, receipt: t }) {- let [n, r] = (0, I.useState)(e.enabled), [i, a] = (0, I.useState)(e.silent), [o, s] = (0, I.useState)(e.desktop), c = Bw(), l = e.available && !e.desktop_message;- return /* @__PURE__ */ (0, L.jsxs)(PA, {+function hfe({ startup: e, receipt: t }) {+ let [n, r] = (0, I.useState)(e.enabled), [i, a] = (0, I.useState)(e.silent), [o, s] = (0, I.useState)(e.desktop), c = dw(), l = e.available && !e.desktop_message;+ return /* @__PURE__ */ (0, L.jsxs)(SA, {title: "开机自启",onSubmit: (r) => {r.preventDefault(), e.available && c.run("save", (e) => q("/api/configuration/startup", {@@ -46437,30 +47824,30 @@ function Lde({ startup: e, receipt: t }) {}, "POST", e), () => t("已保存配置"));},children: [- /* @__PURE__ */ (0, L.jsxs)(FA, { children: [- /* @__PURE__ */ (0, L.jsx)(NA, {+ /* @__PURE__ */ (0, L.jsxs)(CA, { children: [+ /* @__PURE__ */ (0, L.jsx)(xA, {label: "开机后启动 Peach",- children: /* @__PURE__ */ (0, L.jsx)(lO, {+ children: /* @__PURE__ */ (0, L.jsx)(pL, {"aria-label": "开机后启动 Peach",isSelected: n,isDisabled: !e.available,onChange: r})}),- /* @__PURE__ */ (0, L.jsx)(NA, {+ /* @__PURE__ */ (0, L.jsx)(xA, {label: "静默启动",description: "开机后只显示托盘图标,不打开网页;「开机后启动 Peach」打开时生效。",- children: /* @__PURE__ */ (0, L.jsx)(lO, {+ children: /* @__PURE__ */ (0, L.jsx)(pL, {"aria-label": "静默启动",isSelected: i,isDisabled: !e.available || !n,onChange: a})}),- /* @__PURE__ */ (0, L.jsx)(NA, {+ /* @__PURE__ */ (0, L.jsx)(xA, {label: "在桌面创建快捷方式",description: e.desktop_message || "双击图标打开 Peach 网页;卸载时一并移除。",- children: /* @__PURE__ */ (0, L.jsx)(lO, {+ children: /* @__PURE__ */ (0, L.jsx)(pL, {"aria-label": "在桌面创建快捷方式",isSelected: o,isDisabled: !l,@@ -46468,11 +47855,11 @@ function Lde({ startup: e, receipt: t }) {})})] }),- e.message || c.error ? /* @__PURE__ */ (0, L.jsxs)(IA, {+ e.message || c.error ? /* @__PURE__ */ (0, L.jsxs)(wA, {divided: !0,- children: [e.message ? /* @__PURE__ */ (0, L.jsx)(RA, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, L.jsx)(zA, { children: c.error }) : null]+ children: [e.message ? /* @__PURE__ */ (0, L.jsx)(EA, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, L.jsx)(DA, { children: c.error }) : null]}) : null,- /* @__PURE__ */ (0, L.jsx)(LA, { children: /* @__PURE__ */ (0, L.jsx)(G, {+ /* @__PURE__ */ (0, L.jsx)(TA, { children: /* @__PURE__ */ (0, L.jsx)(G, {type: "submit",disabled: !e.available,...Y(c.busy === "save"),@@ -46483,23 +47870,23 @@ function Lde({ startup: e, receipt: t }) {}//#endregion//#region src/react/settings/release-updates.tsx-var $L = /* @__PURE__ */ new Set([+var jR = /* @__PURE__ */ new Set(["downloading","verifying","extracting","preparing","restarting","installing"-]), Rde = [+]), gfe = [65,67,90-], eR = 120;-function zde({ initial: e, initialJob: t }) {+], MR = 120;+function _fe({ initial: e, initialJob: t }) {let [n, r] = (0, I.useState)(e), [i, a] = (0, I.useState)(t || {state: "idle",progress: 0- }), [o, s] = (0, I.useState)(""), c = Bw(), l = (0, I.useRef)(!1), u = (0, I.useRef)(!0), d = $L.has(i.state);+ }), [o, s] = (0, I.useState)(""), c = dw(), l = (0, I.useRef)(!1), u = (0, I.useRef)(!0), d = jR.has(i.state);(0, I.useEffect)(() => (u.current = !0, () => {u.current = !1;}), []);@@ -46516,9 +47903,9 @@ function zde({ initial: e, initialJob: t }) {(0, I.useEffect)(() => {i.state !== "ready" || l.current || (l.current = !0, p());}, [i.state]), (0, I.useEffect)(() => {- let e = new AbortController(), t = $L.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {+ let e = new AbortController(), t = jR.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {try {- let t = await Tw("/api/configuration/update-status", e.signal);+ let t = await iw("/api/configuration/update-status", e.signal);if (e.signal.aborted) return;a(t), o = 0, t.state === "complete" && r((e) => ({...e,@@ -46526,12 +47913,12 @@ function zde({ initial: e, initialJob: t }) {state: "current",message: "已是最新测试版。"}));- let n = await Tw("/api/configuration/automatic-updates", e.signal);+ let n = await iw("/api/configuration/automatic-updates", e.signal);!e.signal.aborted && n.result && r(n.result);} catch {- o += 1, o >= eR && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");+ o += 1, o >= MR && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");}- !e.signal.aborted && o < eR && (n = setTimeout(c, t));+ !e.signal.aborted && o < MR && (n = setTimeout(c, t));};return n = setTimeout(c, t), () => {e.abort(), clearTimeout(n);@@ -46539,63 +47926,63 @@ function zde({ initial: e, initialJob: t }) {}, [i.state]);let m = () => {d || (l.current = !1, s(""), c.run("download", (e) => q("/api/configuration/update", {}, "POST", e), a));- }, h = () => void c.run("check", (e) => Tw("/api/configuration/updates", e), r, (t) => {+ }, h = () => void c.run("check", (e) => iw("/api/configuration/updates", e), r, (t) => {r({...e,state: "error"}), c.setError(K(t));}), _ = c.error || o, v = i.state === "downloading" && i.total ? `${((i.downloaded || 0) / 1048576).toFixed(1)} / ${(i.total / 1048576).toFixed(1)} MB` : `${i.progress}%`;- return /* @__PURE__ */ (0, L.jsxs)(PA, {+ return /* @__PURE__ */ (0, L.jsxs)(SA, {title: "检查更新",children: [- /* @__PURE__ */ (0, L.jsxs)(HA, { children: [- /* @__PURE__ */ (0, L.jsx)(UA, {+ /* @__PURE__ */ (0, L.jsxs)(AA, { children: [+ /* @__PURE__ */ (0, L.jsx)(jA, {term: "当前版本",children: n.current_version}),- /* @__PURE__ */ (0, L.jsx)(UA, {+ /* @__PURE__ */ (0, L.jsx)(jA, {term: "安装方式",children: n.installation}),- /* @__PURE__ */ (0, L.jsx)(UA, {+ /* @__PURE__ */ (0, L.jsx)(jA, {term: "更新通道",children: n.channel}),- /* @__PURE__ */ (0, L.jsx)(UA, {+ /* @__PURE__ */ (0, L.jsx)(jA, {term: "最新版本",children: n.latest_version || (n.state === "unchecked" ? "尚未检查" : "未取得")})] }),- /* @__PURE__ */ (0, L.jsxs)(IA, {+ /* @__PURE__ */ (0, L.jsxs)(wA, {divided: !0,children: [- n.checked_at ? /* @__PURE__ */ (0, L.jsxs)(RA, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,+ n.checked_at ? /* @__PURE__ */ (0, L.jsxs)(EA, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,n.state === "available" && !_ ? /* @__PURE__ */ (0, L.jsx)(J, {tone: "info",title: "有可用更新",children: n.message- }) : _ || n.state === "error" ? /* @__PURE__ */ (0, L.jsx)(zA, { children: _ || n.message }) : /* @__PURE__ */ (0, L.jsx)(RA, {+ }) : _ || n.state === "error" ? /* @__PURE__ */ (0, L.jsx)(DA, { children: _ || n.message }) : /* @__PURE__ */ (0, L.jsx)(EA, {role: "status",children: n.message}),- i.state === "error" ? /* @__PURE__ */ (0, L.jsx)(zA, { children: i.message }) : null,+ i.state === "error" ? /* @__PURE__ */ (0, L.jsx)(DA, { children: i.message }) : null,i.state !== "idle" && i.state !== "error" ? /* @__PURE__ */ (0, L.jsxs)("div", {"aria-live": "polite",className: "flex flex-col gap-2",children: [- /* @__PURE__ */ (0, L.jsx)(zw, {+ /* @__PURE__ */ (0, L.jsx)(uw, {label: "更新准备进度",value: i.progress,- stops: Rde+ stops: gfe}),- /* @__PURE__ */ (0, L.jsxs)(RA, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),- /* @__PURE__ */ (0, L.jsx)(RA, { children: v })+ /* @__PURE__ */ (0, L.jsxs)(EA, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),+ /* @__PURE__ */ (0, L.jsx)(EA, { children: v })]}) : null]}),- /* @__PURE__ */ (0, L.jsxs)(LA, {- status: /* @__PURE__ */ (0, L.jsx)(VA, {+ /* @__PURE__ */ (0, L.jsxs)(TA, {+ status: /* @__PURE__ */ (0, L.jsx)(kA, {href: n.release_url,children: "查看发布页"}),@@ -46622,98 +48009,98 @@ function zde({ initial: e, initialJob: t }) {}//#endregion//#region src/react/settings/maintenance-settings.tsx-var Bde = [+var vfe = [["6", "每 6 小时"],["24", "每天"],["168", "每周"]];-function Vde({ data: e, receipt: t, reopenTutorial: n }) {+function yfe({ data: e, receipt: t, reopenTutorial: n }) {return /* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-col gap-6",children: [- e.automatic_updates ? /* @__PURE__ */ (0, L.jsx)(Ude, {+ e.automatic_updates ? /* @__PURE__ */ (0, L.jsx)(xfe, {initial: e.automatic_updates,receipt: t}) : null,- e.updates ? /* @__PURE__ */ (0, L.jsx)(zde, {+ e.updates ? /* @__PURE__ */ (0, L.jsx)(_fe, {initial: e.updates,initialJob: e.update_job}) : null,- /* @__PURE__ */ (0, L.jsx)(Wde, { facts: e.facts }),- /* @__PURE__ */ (0, L.jsx)(Hde, {+ /* @__PURE__ */ (0, L.jsx)(Sfe, { facts: e.facts }),+ /* @__PURE__ */ (0, L.jsx)(bfe, {receipt: t,reopenTutorial: n}),- e.uninstall ? /* @__PURE__ */ (0, L.jsx)(Gde, {+ e.uninstall ? /* @__PURE__ */ (0, L.jsx)(Cfe, {uninstall: e.uninstall,receipt: t}) : null]});}-function Hde({ receipt: e, reopenTutorial: t }) {- let n = Bw();- return /* @__PURE__ */ (0, L.jsxs)(PA, {+function bfe({ receipt: e, reopenTutorial: t }) {+ let n = dw();+ return /* @__PURE__ */ (0, L.jsxs)(SA, {title: "安装教程",- children: [/* @__PURE__ */ (0, L.jsxs)(IA, { children: [/* @__PURE__ */ (0, L.jsx)(RA, { children: "关掉的安装教程从这里叫回来:跳过的项目会重新出现,做完的仍然算完成。" }), n.error ? /* @__PURE__ */ (0, L.jsx)(zA, { children: n.error }) : null] }), /* @__PURE__ */ (0, L.jsx)(LA, { children: /* @__PURE__ */ (0, L.jsx)(G, {+ children: [/* @__PURE__ */ (0, L.jsxs)(wA, { children: [/* @__PURE__ */ (0, L.jsx)(EA, { children: "关掉的安装教程从这里叫回来:跳过的项目会重新出现,做完的仍然算完成。" }), n.error ? /* @__PURE__ */ (0, L.jsx)(DA, { children: n.error }) : null] }), /* @__PURE__ */ (0, L.jsx)(TA, { children: /* @__PURE__ */ (0, L.jsx)(G, {onClick: () => void n.run("reopen", () => t(), () => e("已重新打开安装教程")),...Y(n.busy === "reopen"),children: "重新打开教程"}) })]});}-function Ude({ initial: e, receipt: t }) {- let [n, r] = (0, I.useState)(e.mode), [i, a] = (0, I.useState)(e.interval_hours), o = Bw(e.error), s = (r) => {+function xfe({ initial: e, receipt: t }) {+ let [n, r] = (0, I.useState)(e.mode), [i, a] = (0, I.useState)(e.interval_hours), o = dw(e.error), s = (r) => {r.preventDefault(), e.available && o.run("save", (e) => q("/api/configuration/automatic-updates", {mode: n,interval_hours: i}, "POST", e), () => t("已保存配置"));}, c = e.available ? e.download_available ? "开启后一分钟内开始检查。下载完成后,在此确认重启安装。" : "开启后一分钟内开始检查。源码运行时在发布页获取新版本。" : "自动更新需要由托盘管理的服务。";- return /* @__PURE__ */ (0, L.jsxs)(PA, {+ return /* @__PURE__ */ (0, L.jsxs)(SA, {title: "自动更新",onSubmit: s,children: [- /* @__PURE__ */ (0, L.jsxs)(FA, { children: [- /* @__PURE__ */ (0, L.jsx)(NA, {+ /* @__PURE__ */ (0, L.jsxs)(CA, { children: [+ /* @__PURE__ */ (0, L.jsx)(xA, {label: "自动检查新版本",- children: /* @__PURE__ */ (0, L.jsx)(lO, {+ children: /* @__PURE__ */ (0, L.jsx)(pL, {"aria-label": "自动检查新版本",isSelected: n !== "off",isDisabled: !e.available,onChange: (e) => r(e ? "check" : "off")})}),- /* @__PURE__ */ (0, L.jsx)(NA, {+ /* @__PURE__ */ (0, L.jsx)(xA, {label: "自动下载更新",- children: /* @__PURE__ */ (0, L.jsx)(lO, {+ children: /* @__PURE__ */ (0, L.jsx)(pL, {"aria-label": "自动下载更新",isSelected: n === "download",isDisabled: !e.available || !e.download_available || n === "off",onChange: (e) => r(e ? "download" : "check")})}),- /* @__PURE__ */ (0, L.jsx)(NA, {+ /* @__PURE__ */ (0, L.jsx)(xA, {label: "检查频率",description: c,- children: /* @__PURE__ */ (0, L.jsx)(sj, {+ children: /* @__PURE__ */ (0, L.jsx)(YA, {"aria-label": "检查频率",selectedKey: String(i),isDisabled: !e.available,onSelectionChange: (e) => {e !== null && a(Number(e));},- children: Bde.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(cj, {+ children: vfe.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(XA, {id: e,children: t}, e))})})] }),- o.error ? /* @__PURE__ */ (0, L.jsx)(IA, {+ o.error ? /* @__PURE__ */ (0, L.jsx)(wA, {divided: !0,- children: /* @__PURE__ */ (0, L.jsx)(zA, { children: o.error })+ children: /* @__PURE__ */ (0, L.jsx)(DA, { children: o.error })}) : null,- /* @__PURE__ */ (0, L.jsx)(LA, { children: /* @__PURE__ */ (0, L.jsx)(G, {+ /* @__PURE__ */ (0, L.jsx)(TA, { children: /* @__PURE__ */ (0, L.jsx)(G, {type: "submit",disabled: !e.available,...Y(o.busy === "save"),@@ -46722,19 +48109,19 @@ function Ude({ initial: e, receipt: t }) {]});}-function Wde({ facts: e }) {- return /* @__PURE__ */ (0, L.jsx)(PA, {+function Sfe({ facts: e }) {+ return /* @__PURE__ */ (0, L.jsx)(SA, {title: "运行信息",- children: /* @__PURE__ */ (0, L.jsx)(HA, { children: e.map((e) => /* @__PURE__ */ (0, L.jsxs)(UA, {+ children: /* @__PURE__ */ (0, L.jsx)(AA, { children: e.map((e) => /* @__PURE__ */ (0, L.jsxs)(jA, {term: e.term,- children: [e.value, e.download_url ? /* @__PURE__ */ (0, L.jsx)(VA, {+ children: [e.value, e.download_url ? /* @__PURE__ */ (0, L.jsx)(kA, {href: e.download_url,children: e.download_label}) : null]}, e.term)) })});}-function Gde({ uninstall: e, receipt: t }) {+function Cfe({ uninstall: e, receipt: t }) {let [n, r] = (0, I.useState)(!1), [i, a] = (0, I.useState)(""), o = () => void g({title: "卸载 Peach",danger: !0,@@ -46748,26 +48135,26 @@ function Gde({ uninstall: e, receipt: t }) {a(e.message);}}), s = i || e.message, c = [.../* @__PURE__ */ new Set([e.data_root, ...e.directories])];- return /* @__PURE__ */ (0, L.jsxs)(PA, {+ return /* @__PURE__ */ (0, L.jsxs)(SA, {id: "uninstallPeach",title: "卸载 Peach",- children: [/* @__PURE__ */ (0, L.jsxs)(IA, { children: [- e.available ? /* @__PURE__ */ (0, L.jsx)(RA, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,- /* @__PURE__ */ (0, L.jsx)(vj, {+ children: [/* @__PURE__ */ (0, L.jsxs)(wA, { children: [+ e.available ? /* @__PURE__ */ (0, L.jsx)(EA, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,+ /* @__PURE__ */ (0, L.jsx)(oj, {isSelected: n,isDisabled: !e.full_available || !!i,onChange: r,children: "完全卸载:同时删除设置、本地数据库、观看记录、凭据和缓存"}),- /* @__PURE__ */ (0, L.jsx)(WA, {+ /* @__PURE__ */ (0, L.jsx)(MA, {summary: "数据目录",- children: c.map((e) => /* @__PURE__ */ (0, L.jsx)(jA, {+ children: c.map((e) => /* @__PURE__ */ (0, L.jsx)(vA, {path: e,className: "text-body-2-regular text-text-secondary",onRevealed: t}, e))})- ] }), /* @__PURE__ */ (0, L.jsx)(LA, {+ ] }), /* @__PURE__ */ (0, L.jsx)(TA, {status: s ? /* @__PURE__ */ (0, L.jsx)("p", {role: i ? "status" : void 0,children: s@@ -46783,7 +48170,7 @@ function Gde({ uninstall: e, receipt: t }) {}//#endregion//#region src/react/settings/clouddrive-guide.tsx-var Kde = [+var wfe = [{name: "机械硬盘,或内存 8 GB 以内",cache: "10–20 GiB",@@ -46802,32 +48189,32 @@ var Kde = [read: "256 / 128 KB",task: "2 个起步"}-], qde = [+], Tfe = [["cache", "缓存上限"],["read", "读取长度(默认 / 最小)"],["task", "同时处理视频"]];-function Jde() {+function Efe() {return /* @__PURE__ */ (0, L.jsxs)("div", {className: "@container flex flex-col gap-3",- children: [/* @__PURE__ */ (0, L.jsxs)(RA, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, L.jsx)(VA, {+ children: [/* @__PURE__ */ (0, L.jsxs)(EA, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, L.jsx)(kA, {href: "https://www.clouddrive2.com/help.html",children: "挂载帮助"- })] }), /* @__PURE__ */ (0, L.jsxs)(WA, {+ })] }), /* @__PURE__ */ (0, L.jsxs)(MA, {summary: "CloudDrive 缓存建议",children: [- /* @__PURE__ */ (0, L.jsx)(RA, { children: "看缓存放在哪块硬盘上,照那一档填。这是起步值,按实际播放表现再调。" }),+ /* @__PURE__ */ (0, L.jsx)(EA, { children: "看缓存放在哪块硬盘上,照那一档填。这是起步值,按实际播放表现再调。" }),/* @__PURE__ */ (0, L.jsx)("ul", {"aria-label": "按缓存所在硬盘分档",className: "flex flex-col gap-2",- children: Kde.map((e) => /* @__PURE__ */ (0, L.jsxs)("li", {+ children: wfe.map((e) => /* @__PURE__ */ (0, L.jsxs)("li", {className: "flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3",children: [/* @__PURE__ */ (0, L.jsx)("p", {className: "text-body-medium text-text-primary",children: e.name}), /* @__PURE__ */ (0, L.jsx)("dl", {className: "inline-grid grid-cols-1 gap-2 @md:grid-cols-3",- children: qde.map(([t, n]) => /* @__PURE__ */ (0, L.jsxs)("div", {+ children: Tfe.map(([t, n]) => /* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-col",children: [/* @__PURE__ */ (0, L.jsx)("dt", {className: "text-caption-1-regular text-text-secondary",@@ -46848,9 +48235,9 @@ function Jde() {/* @__PURE__ */ (0, L.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })]}),- /* @__PURE__ */ (0, L.jsxs)(RA, { children: [+ /* @__PURE__ */ (0, L.jsxs)(EA, { children: ["三处缓存的分工、往上调的方法和这些起步值的来源在",- /* @__PURE__ */ (0, L.jsx)(VA, {+ /* @__PURE__ */ (0, L.jsx)(kA, {href: "https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md",children: "CloudDrive 配置与调优"}),@@ -46862,7 +48249,7 @@ function Jde() {}//#endregion//#region src/react/settings/library-icon-picker.tsx-var tR = [+var NR = [["", "自动识别"],["hard-drive", "磁盘"],["database", "资料库"],@@ -46906,13 +48293,13 @@ var tR = [["star", "收藏"],["tags", "主题"]];-function Yde(e) {+function Dfe(e) {let t = e === "local" ? "" : m[e];return t ? [t, "自动识别"] : ["hard-drive", "默认"];}-var nR = "auto";-function Xde({ value: e, label: t, kind: n = "local", onChange: r }) {- let i = (0, I.useRef)(null), [a, o] = (0, I.useState)(!1), [s, c] = (0, I.useState)(e), [l, u] = Yde(n);+var PR = "auto";+function Ofe({ value: e, label: t, kind: n = "local", onChange: r }) {+ let i = (0, I.useRef)(null), [a, o] = (0, I.useState)(!1), [s, c] = (0, I.useState)(e), [l, u] = Dfe(n);return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(G, {ref: i,variant: "secondary",@@ -46926,35 +48313,35 @@ function Xde({ value: e, label: t, kind: n = "local", onChange: r }) {children: /* @__PURE__ */ (0, L.jsxs)("span", {"data-icon-choice": !0,className: "flex items-center gap-2",- children: [/* @__PURE__ */ (0, L.jsx)(KA, { mark: e || l }), ((e) => e && tR.find(([t]) => t === e)?.[1] || u)(e)]+ children: [/* @__PURE__ */ (0, L.jsx)(PA, { mark: e || l }), ((e) => e && NR.find(([t]) => t === e)?.[1] || u)(e)]})- }), /* @__PURE__ */ (0, L.jsx)(uD, {+ }), /* @__PURE__ */ (0, L.jsx)(ck, {triggerRef: i,isOpen: a,onOpenChange: o,placement: "bottom start",offset: 4,- className: CA,- children: /* @__PURE__ */ (0, L.jsxs)(xD, {+ className: sA,+ children: /* @__PURE__ */ (0, L.jsxs)(yk, {"aria-label": `${t}候选`,className: "flex w-72 flex-col gap-3 outline-none",children: [- /* @__PURE__ */ (0, L.jsx)(GT, {+ /* @__PURE__ */ (0, L.jsx)(UD, {slot: "title",className: "px-1 text-body-medium text-text-primary",children: "选择媒体库图标"}),- /* @__PURE__ */ (0, L.jsx)(OD, {+ /* @__PURE__ */ (0, L.jsx)(Ek, {"aria-label": "候选图标",- value: s || nR,- onChange: (e) => c(e === nR ? "" : e),+ value: s || PR,+ onChange: (e) => c(e === PR ? "" : e),className: "inline-grid grid-cols-7 gap-1",- children: tR.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(kD, {- value: e || nR,+ children: NR.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Dk, {+ value: e || PR,"aria-label": e ? t : u,className: "flex h-10 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none hover:bg-dropdown-item-hover-background focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-dropdown-item-hover-background data-selected:text-text-primary",- children: /* @__PURE__ */ (0, L.jsx)(KA, { mark: e || l })- }, e || nR))+ children: /* @__PURE__ */ (0, L.jsx)(PA, { mark: e || l })+ }, e || PR))}),/* @__PURE__ */ (0, L.jsxs)("div", {className: "flex justify-end gap-2 border-t border-separator-border pt-2.5",@@ -46976,15 +48363,15 @@ function Xde({ value: e, label: t, kind: n = "local", onChange: r }) {}//#endregion//#region src/react/settings/push-discovery-settings.tsx-var Zde = "/api/configuration/push-discovery", Qde = "/api/configuration/push-discovery/secret";-function $de({ initial: e, receipt: t }) {- let [n, r] = (0, I.useState)(e), [i, a] = (0, I.useState)(e.prefixes), [o, s] = (0, I.useState)(""), c = Bw(), l = bO(), u = n.media_roots, [d, f] = (0, I.useState)(e), p = (e, n) => {+var kfe = "/api/configuration/push-discovery", Afe = "/api/configuration/push-discovery/secret";+function jfe({ initial: e, receipt: t }) {+ let [n, r] = (0, I.useState)(e), [i, a] = (0, I.useState)(e.prefixes), [o, s] = (0, I.useState)(""), c = dw(), l = hA(), u = n.media_roots, [d, f] = (0, I.useState)(e), p = (e, n) => {r(e), f(e), a(e.prefixes), s(""), t(n);}, m = (e, t) => a((n) => n.map((n, r) => r === e ? {...n,...t} : n));- return /* @__PURE__ */ (0, L.jsxs)(PA, {+ return /* @__PURE__ */ (0, L.jsxs)(SA, {title: "推送发现",onSubmit: (e) => {e.preventDefault();@@ -46994,14 +48381,14 @@ function $de({ initial: e, receipt: t }) {cloud: n.cloud,prefixes: i};- c.run("save", (e) => q(Zde, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(K(e)));+ c.run("save", (e) => q(kfe, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(K(e)));},children: [- /* @__PURE__ */ (0, L.jsxs)(FA, { children: [- /* @__PURE__ */ (0, L.jsx)(NA, {+ /* @__PURE__ */ (0, L.jsxs)(CA, { children: [+ /* @__PURE__ */ (0, L.jsx)(xA, {label: "新文件落地就入库",description: "打开之后不必等下一轮扫描。定期全量扫描照常进行,漏掉的由它补上。",- children: /* @__PURE__ */ (0, L.jsx)(lO, {+ children: /* @__PURE__ */ (0, L.jsx)(pL, {"aria-label": "新文件落地就入库",isSelected: n.enabled,isDisabled: !n.available,@@ -47011,10 +48398,10 @@ function $de({ initial: e, receipt: t }) {})})}),- /* @__PURE__ */ (0, L.jsx)(NA, {+ /* @__PURE__ */ (0, L.jsx)(xA, {label: "监视本机文件夹",description: "订阅本地来源的文件系统事件。网盘挂载不监视,因为遍历它就是走网络。",- children: /* @__PURE__ */ (0, L.jsx)(lO, {+ children: /* @__PURE__ */ (0, L.jsx)(pL, {"aria-label": "监视本机文件夹",isSelected: n.watch_local,isDisabled: !n.available || !n.enabled,@@ -47024,10 +48411,10 @@ function $de({ initial: e, receipt: t }) {})})}),- /* @__PURE__ */ (0, L.jsx)(NA, {+ /* @__PURE__ */ (0, L.jsx)(xA, {label: "接收 CloudDrive2 通知",description: "由 CloudDrive2 把网盘里的新文件推给 Peach。只接受本机与局域网发来的请求。",- children: /* @__PURE__ */ (0, L.jsx)(lO, {+ children: /* @__PURE__ */ (0, L.jsx)(pL, {"aria-label": "接收 CloudDrive2 通知",isSelected: n.cloud,isDisabled: !n.available || !n.enabled,@@ -47038,30 +48425,30 @@ function $de({ initial: e, receipt: t }) {})})] }),- d.enabled ? /* @__PURE__ */ (0, L.jsx)(IA, {+ d.enabled ? /* @__PURE__ */ (0, L.jsx)(wA, {divided: !0,- children: /* @__PURE__ */ (0, L.jsxs)(HA, { children: [d.watch_local ? /* @__PURE__ */ (0, L.jsx)(UA, {+ children: /* @__PURE__ */ (0, L.jsxs)(AA, { children: [d.watch_local ? /* @__PURE__ */ (0, L.jsx)(jA, {term: "本机文件夹监视",children: d.local_running ? d.local_roots.join("、") : d.local_message || "没有运行"- }) : null, /* @__PURE__ */ (0, L.jsx)(UA, {+ }) : null, /* @__PURE__ */ (0, L.jsx)(jA, {term: "已入库",children: `${d.queue.ingested} 个文件,队列里还有 ${d.queue.pending} 条`})] })}) : null,- d.enabled && d.cloud ? /* @__PURE__ */ (0, L.jsx)(IA, {+ d.enabled && d.cloud ? /* @__PURE__ */ (0, L.jsx)(wA, {divided: !0,children: /* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-col gap-3",children: [- /* @__PURE__ */ (0, L.jsx)(BA, { children: "CloudDrive2 配置内容" }),- /* @__PURE__ */ (0, L.jsx)(RA, { children: "在 CloudDrive2 的「设置 → Webhooks」里添加一条,把这段配置贴进去保存。 地址、端点和密钥都已经填好了;换过密钥之后要重新贴一次。 Webhook 是 CloudDrive2 的会员功能:不是会员时列表照样显示有效,但一条都不会发出来。 Windows 桌面版的编辑框会把换行存坏,列表里标「无效」:那就把这段存成 .toml 文件,放进 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" }),+ /* @__PURE__ */ (0, L.jsx)(OA, { children: "CloudDrive2 配置内容" }),+ /* @__PURE__ */ (0, L.jsx)(EA, { children: "在 CloudDrive2 的「设置 → Webhooks」里添加一条,把这段配置贴进去保存。 地址、端点和密钥都已经填好了;换过密钥之后要重新贴一次。 Webhook 是 CloudDrive2 的会员功能:不是会员时列表照样显示有效,但一条都不会发出来。 Windows 桌面版的编辑框会把换行存坏,列表里标「无效」:那就把这段存成 .toml 文件,放进 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" }),d.config_toml ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("div", { children: /* @__PURE__ */ (0, L.jsx)(G, {size: "small",onClick: () => {navigator.clipboard.writeText(d.config_toml).then(() => t("已复制 CloudDrive2 配置"), () => s("浏览器没让这一页写剪贴板,展开「查看这段配置」选中自己复制。"));},children: "复制配置"- }) }), /* @__PURE__ */ (0, L.jsx)(WA, {+ }) }), /* @__PURE__ */ (0, L.jsx)(MA, {summary: "查看这段配置",children: /* @__PURE__ */ (0, L.jsx)("div", {className: "relative",@@ -47072,17 +48459,17 @@ function $de({ initial: e, receipt: t }) {children: d.config_toml})})- })] }) : /* @__PURE__ */ (0, L.jsx)(RA, { children: d.origin ? "还没有生成共享密钥,保存一次配置就会有。" : "这台机器还没有对外的 HTTPS 地址,配置里的地址填不出来。CloudDrive2 只能推到 HTTPS:80 口那条服务对写请求回的是 426,不会替它转发。" })+ })] }) : /* @__PURE__ */ (0, L.jsx)(EA, { children: d.origin ? "还没有生成共享密钥,保存一次配置就会有。" : "这台机器还没有对外的 HTTPS 地址,配置里的地址填不出来。CloudDrive2 只能推到 HTTPS:80 口那条服务对写请求回的是 426,不会替它转发。" })]})}) : null,- n.enabled && n.cloud ? /* @__PURE__ */ (0, L.jsx)(IA, {+ n.enabled && n.cloud ? /* @__PURE__ */ (0, L.jsx)(wA, {divided: !0,children: /* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-col gap-3",children: [- /* @__PURE__ */ (0, L.jsx)(BA, { children: "云端路径前缀" }),- /* @__PURE__ */ (0, L.jsx)(RA, { children: "左边填 CloudDrive2 里看到的那一层目录,右边选它对应哪个媒体根。 CloudDrive2 给的是它自己的路径,Peach 按这张表换算成账本里的盘符路径。" }),+ /* @__PURE__ */ (0, L.jsx)(OA, { children: "云端路径前缀" }),+ /* @__PURE__ */ (0, L.jsx)(EA, { children: "左边填 CloudDrive2 里看到的那一层目录,右边选它对应哪个媒体根。 CloudDrive2 给的是它自己的路径,Peach 按这张表换算成账本里的盘符路径。" }),/* @__PURE__ */ (0, L.jsx)("div", {role: "group","aria-label": "云端路径前缀",@@ -47090,7 +48477,7 @@ function $de({ initial: e, receipt: t }) {children: i.map((e, t) => /* @__PURE__ */ (0, L.jsxs)("div", {className: "flex items-start gap-2",children: [- /* @__PURE__ */ (0, L.jsx)(Bj, {+ /* @__PURE__ */ (0, L.jsx)(Oj, {className: "min-w-0 flex-1","aria-label": `云端路径前缀 ${t + 1}`,placeholder: "/115",@@ -47099,19 +48486,19 @@ function $de({ initial: e, receipt: t }) {value: e.prefix,onChange: (e) => m(t, { prefix: e })}),- /* @__PURE__ */ (0, L.jsx)(sj, {+ /* @__PURE__ */ (0, L.jsx)(YA, {"aria-label": `前缀 ${t + 1} 对应的媒体根`,selectedKey: e.root,onSelectionChange: (e) => {e !== null && m(t, { root: String(e) });},- children: u.map((e) => /* @__PURE__ */ (0, L.jsx)(cj, {+ children: u.map((e) => /* @__PURE__ */ (0, L.jsx)(XA, {id: e,children: e}, e))}),- /* @__PURE__ */ (0, L.jsx)(cO, {- icon: uS,+ /* @__PURE__ */ (0, L.jsx)(_A, {+ icon: MS,"aria-label": "移除这一条",onClick: () => a((e) => e.filter((e, n) => n !== t))})@@ -47129,15 +48516,15 @@ function $de({ initial: e, receipt: t }) {]})}) : null,- o || c.error ? /* @__PURE__ */ (0, L.jsx)(IA, {+ o || c.error ? /* @__PURE__ */ (0, L.jsx)(wA, {divided: !0,- children: /* @__PURE__ */ (0, L.jsx)(zA, { children: o || c.error })+ children: /* @__PURE__ */ (0, L.jsx)(DA, { children: o || c.error })}) : null,- /* @__PURE__ */ (0, L.jsxs)(LA, {+ /* @__PURE__ */ (0, L.jsxs)(TA, {status: d.enabled && d.cloud ? "换过密钥之后,CloudDrive2 那一侧要重新贴一次配置,否则它推来的一律被拒。" : void 0,children: [d.enabled && d.cloud ? /* @__PURE__ */ (0, L.jsx)(G, {onClick: () => {- c.run("secret", (e) => q(Qde, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(K(e)));+ c.run("secret", (e) => q(Afe, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(K(e)));},disabled: !n.available,...Y(c.busy === "secret"),@@ -47154,8 +48541,8 @@ function $de({ initial: e, receipt: t }) {}//#endregion//#region src/react/settings/media-settings.tsx-var efe = 8e3;-function tfe({ className: e }) {+var Mfe = 8e3;+function Nfe({ className: e }) {return /* @__PURE__ */ (0, L.jsx)("svg", {"aria-hidden": !0,viewBox: "0 0 24 24",@@ -47168,33 +48555,33 @@ function tfe({ className: e }) {children: /* @__PURE__ */ (0, L.jsx)("use", { href: "#i-folder-search" })});}-var rR = [+var FR = [["local", "本地磁盘"],["115", "CloudDrive · 115"],["pikpak", "CloudDrive · PikPak"]-], nfe = (e) => rR.find(([t]) => t === e)?.[1] ?? e, iR = (e) => m[e] || "database", aR = (e = "") => ({+], Pfe = (e) => FR.find(([t]) => t === e)?.[1] ?? e, IR = (e) => m[e] || "database", LR = (e = "") => ({path: e,location: "local",root: "",library: "",library_icon: ""});-function rfe(e) {- let t = e.media_sources?.filter((e) => rR.some(([t]) => t === e.location));+function Ffe(e) {+ let t = e.media_sources?.filter((e) => FR.some(([t]) => t === e.location));return t?.length ? t.map((e) => ({path: e.path,location: e.location,root: e.root,library: e.library || "",library_icon: e.library_icon || ""- })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => aR(e));+ })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => LR(e));}-var ife = (e) => !(e instanceof Cw) || e.status !== 400 ? null : e.body?.errors ?? null;-function afe({ data: e, receipt: t }) {+var Ife = (e) => !(e instanceof nw) || e.status !== 400 ? null : e.body?.errors ?? null;+function Lfe({ data: e, receipt: t }) {return /* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-col gap-6",children: [- e.editable ? /* @__PURE__ */ (0, L.jsx)(ofe, {+ e.editable ? /* @__PURE__ */ (0, L.jsx)(Rfe, {data: e,receipt: t}) : /* @__PURE__ */ (0, L.jsx)(J, {@@ -47202,21 +48589,21 @@ function afe({ data: e, receipt: t }) {title: "只读",children: e.notice}),- /* @__PURE__ */ (0, L.jsx)(cfe, { data: e }),- e.push_discovery ? /* @__PURE__ */ (0, L.jsx)($de, {+ /* @__PURE__ */ (0, L.jsx)(Bfe, { data: e }),+ e.push_discovery ? /* @__PURE__ */ (0, L.jsx)(jfe, {initial: e.push_discovery,receipt: t}) : null]});}-function ofe({ data: e, receipt: t }) {- let [n, r] = (0, I.useState)(() => rfe(e)), [i, a] = (0, I.useState)(String(e.port)), [o, s] = (0, I.useState)(!1), [c, l] = (0, I.useState)([]), [u, d] = (0, I.useState)(""), [f, p] = (0, I.useState)(""), [m, h] = (0, I.useState)(null), [g, _] = (0, I.useState)(null), [v, y] = (0, I.useState)(null), b = (0, I.useRef)(!1), x = (0, I.useRef)(e.revision), S = (0, I.useRef)([]), C = Bw();+function Rfe({ data: e, receipt: t }) {+ let [n, r] = (0, I.useState)(() => Ffe(e)), [i, a] = (0, I.useState)(String(e.port)), [o, s] = (0, I.useState)(!1), [c, l] = (0, I.useState)([]), [u, d] = (0, I.useState)(""), [f, p] = (0, I.useState)(""), [m, h] = (0, I.useState)(null), [g, _] = (0, I.useState)(null), [v, y] = (0, I.useState)(null), b = (0, I.useRef)(!1), x = (0, I.useRef)(e.revision), S = (0, I.useRef)([]), C = dw();(0, I.useLayoutEffect)(() => {g !== null && (S.current[g]?.focus(), _(null));}, [g]), (0, I.useEffect)(() => {if (!m) return;- let e = setTimeout(() => location.assign(m.url), efe);+ let e = setTimeout(() => location.assign(m.url), Mfe);return () => clearTimeout(e);}, [m]);let w = (e, t) => r((n) => n.map((n, r) => r === e ? {@@ -47227,14 +48614,14 @@ function ofe({ data: e, receipt: t }) {for (; r.length <= e;) r.push("");return r[e] = t, r;}), E = () => {- _(n.length), r((e) => [...e, aR()]);+ _(n.length), r((e) => [...e, LR()]);}, D = (e) => {r((t) => t.filter((t, n) => n !== e)), l((t) => t.filter((t, n) => n !== e));}, O = async (e) => {if (!b.current) {b.current = !0, y(e);try {- let { path: t } = await q(Pde, { initial: n[e]?.path ?? "" });+ let { path: t } = await q(ffe, { initial: n[e]?.path ?? "" });t && (w(e, { path: t }), T(e, ""));} catch (t) {T(e, K(t));@@ -47243,7 +48630,7 @@ function ofe({ data: e, receipt: t }) {}}}, k = (r) => {- r.preventDefault(), p(""), C.run("save", (t) => q(YL, {+ r.preventDefault(), p(""), C.run("save", (t) => q(DR, {revision: x.current,media_dirs: n.map((e) => e.path),...e.media_sources ? { media_sources: n } : {},@@ -47252,18 +48639,18 @@ function ofe({ data: e, receipt: t }) {}, "POST", t), (e) => {x.current = e.revision, l([]), d(""), t("已保存配置"), h(e);}, (e) => {- let t = ife(e);+ let t = Ife(e);l(t?.media_dirs ?? []), d(t?.port ?? ""), t || p(K(e));});};- if (m) return /* @__PURE__ */ (0, L.jsx)(PA, {+ if (m) return /* @__PURE__ */ (0, L.jsx)(SA, {title: "这台电脑",- children: /* @__PURE__ */ (0, L.jsx)(IA, { children: /* @__PURE__ */ (0, L.jsxs)(J, {+ children: /* @__PURE__ */ (0, L.jsx)(wA, { children: /* @__PURE__ */ (0, L.jsxs)(J, {tone: "success",title: "配置已保存",children: ["Peach 正在重新启动。稍后自动跳转,或点击",- /* @__PURE__ */ (0, L.jsx)(SA, {+ /* @__PURE__ */ (0, L.jsx)(oA, {href: m.url,size: "small",children: "进入馆藏"@@ -47273,14 +48660,14 @@ function ofe({ data: e, receipt: t }) {}) })});let A = n.some((e) => e.location === "115" || e.location === "pikpak"), j = A ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];- return /* @__PURE__ */ (0, L.jsxs)(PA, {+ return /* @__PURE__ */ (0, L.jsxs)(SA, {title: "这台电脑",onSubmit: k,- children: [/* @__PURE__ */ (0, L.jsxs)(IA, { children: [+ children: [/* @__PURE__ */ (0, L.jsxs)(wA, { children: [/* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-col gap-3",children: [- /* @__PURE__ */ (0, L.jsx)(BA, { children: "媒体文件夹" }),+ /* @__PURE__ */ (0, L.jsx)(OA, { children: "媒体文件夹" }),/* @__PURE__ */ (0, L.jsx)("div", {role: "group","aria-label": "媒体文件夹",@@ -47291,7 +48678,7 @@ function ofe({ data: e, receipt: t }) {children: [/* @__PURE__ */ (0, L.jsxs)("div", {className: "flex items-start gap-2",children: [- /* @__PURE__ */ (0, L.jsx)(Bj, {+ /* @__PURE__ */ (0, L.jsx)(Oj, {className: "min-w-0 flex-1","aria-label": `媒体文件夹 ${r + 1}`,placeholder: "本机文件夹路径",@@ -47304,14 +48691,14 @@ function ofe({ data: e, receipt: t }) {isInvalid: !!c[r],hint: c[r] || void 0}),- /* @__PURE__ */ (0, L.jsx)(cO, {- icon: tfe,+ /* @__PURE__ */ (0, L.jsx)(_A, {+ icon: Nfe,"aria-label": "选择文件夹",onClick: () => void O(r),...Y(v === r)}),- n.length > 1 ? /* @__PURE__ */ (0, L.jsx)(cO, {- icon: uS,+ n.length > 1 ? /* @__PURE__ */ (0, L.jsx)(_A, {+ icon: MS,"aria-label": "移除这个文件夹",onClick: () => D(r)}) : null@@ -47319,7 +48706,7 @@ function ofe({ data: e, receipt: t }) {}), /* @__PURE__ */ (0, L.jsxs)("div", {className: "inline-grid grid-cols-1 gap-3 @lg:grid-cols-2",children: [- /* @__PURE__ */ (0, L.jsx)(Bj, {+ /* @__PURE__ */ (0, L.jsx)(Oj, {label: "媒体库名称",maxLength: 80,placeholder: "同名文件夹归入同一个媒体库",@@ -47328,7 +48715,7 @@ function ofe({ data: e, receipt: t }) {}),/* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-col gap-1.5",- children: [/* @__PURE__ */ (0, L.jsx)(BA, { children: "媒体库图标" }), /* @__PURE__ */ (0, L.jsx)(Xde, {+ children: [/* @__PURE__ */ (0, L.jsx)(OA, { children: "媒体库图标" }), /* @__PURE__ */ (0, L.jsx)(Ofe, {label: `媒体库图标 ${r + 1}`,value: t.library_icon,kind: t.location,@@ -47337,20 +48724,20 @@ function ofe({ data: e, receipt: t }) {}),/* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-col gap-1.5",- children: [/* @__PURE__ */ (0, L.jsx)(BA, { children: "媒体来源" }), /* @__PURE__ */ (0, L.jsx)(sj, {+ children: [/* @__PURE__ */ (0, L.jsx)(OA, { children: "媒体来源" }), /* @__PURE__ */ (0, L.jsx)(YA, {"aria-label": `媒体来源 ${r + 1}`,selectedKey: t.location,onSelectionChange: (e) => {e !== null && w(r, { location: String(e) });},- children: rR.map(([e, t]) => /* @__PURE__ */ (0, L.jsxs)(cj, {+ children: FR.map(([e, t]) => /* @__PURE__ */ (0, L.jsxs)(XA, {id: e,textValue: t,- children: [/* @__PURE__ */ (0, L.jsx)(KA, { mark: iR(e) }), t]+ children: [/* @__PURE__ */ (0, L.jsx)(PA, { mark: IR(e) }), t]}, e))})]}),- e.windows === !1 ? /* @__PURE__ */ (0, L.jsx)(Bj, {+ e.windows === !1 ? /* @__PURE__ */ (0, L.jsx)(Oj, {label: "Windows 中的对应路径",placeholder: "例如 B:\\",value: t.root,@@ -47367,18 +48754,18 @@ function ofe({ data: e, receipt: t }) {})]}),- A ? /* @__PURE__ */ (0, L.jsx)(Jde, {}) : null,- j.map((e) => /* @__PURE__ */ (0, L.jsxs)(RA, { children: [+ A ? /* @__PURE__ */ (0, L.jsx)(Efe, {}) : null,+ j.map((e) => /* @__PURE__ */ (0, L.jsxs)(EA, { children: ["未检测到 ",e.name,"。",- /* @__PURE__ */ (0, L.jsxs)(VA, {+ /* @__PURE__ */ (0, L.jsxs)(kA, {href: e.download_url,children: ["下载 ", e.name]})] }, e.name)),- e.windows === !1 ? /* @__PURE__ */ (0, L.jsx)(RA, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,- e.port_editable === !1 ? null : /* @__PURE__ */ (0, L.jsx)(Bj, {+ e.windows === !1 ? /* @__PURE__ */ (0, L.jsx)(EA, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,+ e.port_editable === !1 ? null : /* @__PURE__ */ (0, L.jsx)(Oj, {id: "configPort",label: "本机访问端口",inputMode: "numeric",@@ -47388,7 +48775,7 @@ function ofe({ data: e, receipt: t }) {isInvalid: !!u,hint: u || "浏览器地址里冒号后面的数字,一般不用改。"}),- /* @__PURE__ */ (0, L.jsx)(vj, {+ /* @__PURE__ */ (0, L.jsx)(oj, {isSelected: o,onChange: s,children: "保存后扫描并补全资料"@@ -47398,7 +48785,7 @@ function ofe({ data: e, receipt: t }) {title: "没有保存",children: f}) : null- ] }), /* @__PURE__ */ (0, L.jsx)(LA, {+ ] }), /* @__PURE__ */ (0, L.jsx)(TA, {status: e.port_editable === !1 ? "保存后 Peach 会重新载入配置。" : "保存后 Peach 会重新启动,端口改了就用新地址打开。",children: /* @__PURE__ */ (0, L.jsx)(G, {type: "submit",@@ -47408,7 +48795,7 @@ function ofe({ data: e, receipt: t }) {})]});}-function sfe({ online: e }) {+function zfe({ online: e }) {return e === !0 ? /* @__PURE__ */ (0, L.jsxs)("span", {"data-mount": "online",className: "inline-flex items-center gap-1.5 text-body-2-medium text-notification-success-foreground",@@ -47432,21 +48819,21 @@ function sfe({ online: e }) {}), "未检测"]});}-function cfe({ data: e }) {- let t = e.media_sources, n = Bw();- return t ? /* @__PURE__ */ (0, L.jsxs)(PA, {+function Bfe({ data: e }) {+ let t = e.media_sources, n = dw();+ return t ? /* @__PURE__ */ (0, L.jsxs)(SA, {title: "挂载状态",children: [- /* @__PURE__ */ (0, L.jsx)(HA, { children: t.map((e, t) => /* @__PURE__ */ (0, L.jsxs)(UA, {- term: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(KA, { mark: iR(e.location) }), nfe(e.location)] }),- children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, L.jsx)(sfe, { online: e.online })]+ /* @__PURE__ */ (0, L.jsx)(AA, { children: t.map((e, t) => /* @__PURE__ */ (0, L.jsxs)(jA, {+ term: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(PA, { mark: IR(e.location) }), Pfe(e.location)] }),+ children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, L.jsx)(zfe, { online: e.online })]}, t)) }),- n.error ? /* @__PURE__ */ (0, L.jsx)(IA, {+ n.error ? /* @__PURE__ */ (0, L.jsx)(wA, {divided: !0,- children: /* @__PURE__ */ (0, L.jsx)(zA, { children: n.error })+ children: /* @__PURE__ */ (0, L.jsx)(DA, { children: n.error })}) : null,- /* @__PURE__ */ (0, L.jsx)(LA, { children: /* @__PURE__ */ (0, L.jsx)(G, {- onClick: () => void n.run("refresh", (e) => ZL(e), (e) => X.setQueryData(XL, e)),+ /* @__PURE__ */ (0, L.jsx)(TA, { children: /* @__PURE__ */ (0, L.jsx)(G, {+ onClick: () => void n.run("refresh", (e) => kR(e), (e) => X.setQueryData(OR, e)),...Y(n.busy === "refresh"),children: "刷新挂载状态"}) })@@ -47455,13 +48842,13 @@ function cfe({ data: e }) {}//#endregion//#region src/react/settings/access-settings.tsx-var lfe = {+var Vfe = {legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",locked: "访问设置无法读取,请在本机检查配置文件。",password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"};-function ufe({ initial: e, receipt: t }) {- let [n, r] = (0, I.useState)(e), [i, a] = (0, I.useState)(""), [o, s] = (0, I.useState)(""), [c, l] = (0, I.useState)(""), [u, d] = (0, I.useState)(!1), [f, p] = (0, I.useState)({}), m = (0, I.useRef)(null), h = Bw(), g = (e) => {+function Hfe({ initial: e, receipt: t }) {+ let [n, r] = (0, I.useState)(e), [i, a] = (0, I.useState)(""), [o, s] = (0, I.useState)(""), [c, l] = (0, I.useState)(""), [u, d] = (0, I.useState)(!1), [f, p] = (0, I.useState)({}), m = (0, I.useRef)(null), h = dw(), g = (e) => {e.preventDefault();let f = {};if (n.mode === "password" && !i && (f.current_password = "请输入当前访问密码"), u || ((o.length < 8 || o.length > 256) && (f.password = "访问密码需为 8–256 个字符"), o !== c && (f.confirmation = "两次输入的密码不一致")), p(f), Object.keys(f).length) {@@ -47478,28 +48865,28 @@ function ufe({ initial: e, receipt: t }) {}, "POST", e), (e) => {r(e), a(""), s(""), l(""), d(!1), p({}), t(e.mode === "open" ? "已关闭访问密码" : "已保存配置");}, (e) => {- let t = e instanceof Cw ? e.body : null, n = t?.errors || t?.detail?.errors;+ let t = e instanceof nw ? e.body : null, n = t?.errors || t?.detail?.errors;n ? p(n) : h.setError(K(e));});- }, _ = lfe[n.mode], v = n.mode !== "locked";- return /* @__PURE__ */ (0, L.jsxs)(PA, {+ }, _ = Vfe[n.mode], v = n.mode !== "locked";+ return /* @__PURE__ */ (0, L.jsxs)(SA, {title: "访问密码",onSubmit: g,children: [/* @__PURE__ */ (0, L.jsx)("div", {ref: m,- children: /* @__PURE__ */ (0, L.jsxs)(IA, { children: [- _ ? /* @__PURE__ */ (0, L.jsx)(RA, { children: _ }) : null,+ children: /* @__PURE__ */ (0, L.jsxs)(wA, { children: [+ _ ? /* @__PURE__ */ (0, L.jsx)(EA, { children: _ }) : null,n.mode === "open" ? /* @__PURE__ */ (0, L.jsx)(J, {tone: "warning",title: "未设置访问密码",children: "能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。"}) : null,- n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, L.jsx)(vj, {+ n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, L.jsx)(oj, {isSelected: u,onChange: d,children: "关闭访问密码"}) : null,- n.mode === "password" ? /* @__PURE__ */ (0, L.jsx)(Bj, {+ n.mode === "password" ? /* @__PURE__ */ (0, L.jsx)(Oj, {id: "access-current",type: "password",label: "当前访问密码",@@ -47512,7 +48899,7 @@ function ufe({ initial: e, receipt: t }) {isInvalid: !!f.current_password,hint: f.current_password}) : null,- v ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Bj, {+ v ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Oj, {id: "access-password",type: "password",label: n.mode === "password" ? "新访问密码" : "设置访问密码",@@ -47525,7 +48912,7 @@ function ufe({ initial: e, receipt: t }) {validationBehavior: "aria",isInvalid: !u && !!f.password,hint: u ? "关闭访问密码时无需填写。" : f.password || "至少 8 个字符。保存后其他设备需要重新登录。"- }), /* @__PURE__ */ (0, L.jsx)(Bj, {+ }), /* @__PURE__ */ (0, L.jsx)(Oj, {id: "access-confirm",type: "password",label: "确认访问密码",@@ -47544,9 +48931,9 @@ function ufe({ initial: e, receipt: t }) {title: "访问范围",children: "保存后,能连接到 Peach 的设备将直接访问馆藏。"}) : null,- h.error ? /* @__PURE__ */ (0, L.jsx)(zA, { children: h.error }) : null+ h.error ? /* @__PURE__ */ (0, L.jsx)(DA, { children: h.error }) : null] })- }), v ? /* @__PURE__ */ (0, L.jsx)(LA, {+ }), v ? /* @__PURE__ */ (0, L.jsx)(TA, {status: "保存后立即生效。",children: /* @__PURE__ */ (0, L.jsx)(G, {type: "submit",@@ -47558,19 +48945,19 @@ function ufe({ initial: e, receipt: t }) {}//#endregion//#region src/react/settings/tunnel-settings.tsx-var dfe = 2e3, ffe = [["quick", "临时链接"], ["named", "命名隧道"]], pfe = {+var Ufe = 2e3, Wfe = [["quick", "临时链接"], ["named", "命名隧道"]], Gfe = {quick: "只用于临时预览;地址随机、重启后会变化。启动前必须设置访问密码。",named: "地址是 Cloudflare 后台绑定的公开主机名,重启后不变。启动前必须设置访问密码,身份策略在 Cloudflare Access 里配置。"};-function mfe({ revision: e, initial: t, receipt: n }) {- let [r, i] = (0, I.useState)(t), [a, o] = (0, I.useState)(e), [s, c] = (0, I.useState)(t.mode), [l, u] = (0, I.useState)(t.hostname), [d, f] = (0, I.useState)(""), [p, m] = (0, I.useState)({}), h = Bw(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";+function Kfe({ revision: e, initial: t, receipt: n }) {+ let [r, i] = (0, I.useState)(t), [a, o] = (0, I.useState)(e), [s, c] = (0, I.useState)(t.mode), [l, u] = (0, I.useState)(t.hostname), [d, f] = (0, I.useState)(""), [p, m] = (0, I.useState)({}), h = dw(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";(0, I.useEffect)(() => {if (r.state !== "starting") return;let e = new AbortController(), t = window.setInterval(() => {- ZL(e.signal).then((t) => {- e.signal.aborted || !t.tunnel || (X.setQueryData(XL, t), i(t.tunnel), o(t.revision));+ kR(e.signal).then((t) => {+ e.signal.aborted || !t.tunnel || (X.setQueryData(OR, t), i(t.tunnel), o(t.revision));}).catch(() => void 0);- }, dfe);+ }, Ufe);return () => {e.abort(), window.clearInterval(t);};@@ -47585,30 +48972,30 @@ function mfe({ revision: e, initial: t, receipt: n }) {}, "POST", e), (e) => {i(e), o(e.revision), c(e.mode), u(e.hostname), f(""), n(e);}, (e) => {- let t = e instanceof Cw ? e.body : null, n = t?.errors || t?.detail?.errors;+ let t = e instanceof nw ? e.body : null, n = t?.errors || t?.detail?.errors;n ? m(n) : h.setError(K(e));});};- return /* @__PURE__ */ (0, L.jsxs)(PA, {+ return /* @__PURE__ */ (0, L.jsxs)(SA, {title: "Cloudflare 公网入口",onSubmit: (e) => {e.preventDefault(), v("save", g, () => n("已保存配置"));},- children: [/* @__PURE__ */ (0, L.jsxs)(IA, { children: [- r.named_available ? /* @__PURE__ */ (0, L.jsx)(OD, {+ children: [/* @__PURE__ */ (0, L.jsxs)(wA, { children: [+ r.named_available ? /* @__PURE__ */ (0, L.jsx)(Ek, {"aria-label": "公网入口的形态(二选一)",value: s,isDisabled: g,onChange: (e) => c(e),- className: IM,- children: ffe.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(kD, {+ className: xN,+ children: Wfe.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Dk, {value: e,- className: LM,+ className: SN,children: t}, e))}) : null,- /* @__PURE__ */ (0, L.jsx)(RA, { children: pfe[_ ? "named" : "quick"] }),- _ ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Bj, {+ /* @__PURE__ */ (0, L.jsx)(EA, { children: Gfe[_ ? "named" : "quick"] }),+ _ ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Oj, {id: "tunnel-hostname",label: "公开主机名",autoComplete: "off",@@ -47619,7 +49006,7 @@ function mfe({ revision: e, initial: t, receipt: n }) {validationBehavior: "aria",isInvalid: !!p.hostname,hint: p.hostname || "在 Cloudflare Zero Trust 里指向本机 origin 的那个主机名。"- }), /* @__PURE__ */ (0, L.jsx)(Bj, {+ }), /* @__PURE__ */ (0, L.jsx)(Oj, {id: "tunnel-token",type: "password",label: "隧道令牌",@@ -47639,7 +49026,7 @@ function mfe({ revision: e, initial: t, receipt: n }) {r.state === "running" && r.url ? /* @__PURE__ */ (0, L.jsx)(J, {tone: "info",title: "公网地址",- children: /* @__PURE__ */ (0, L.jsx)(VA, {+ children: /* @__PURE__ */ (0, L.jsx)(kA, {href: r.url,children: r.url})@@ -47649,9 +49036,9 @@ function mfe({ revision: e, initial: t, receipt: n }) {title: "正在连接",children: "正在等待 cloudflared 连上 Cloudflare 边缘。"}) : null,- r.error ? /* @__PURE__ */ (0, L.jsx)(zA, { children: r.error }) : null,- h.error ? /* @__PURE__ */ (0, L.jsx)(zA, { children: h.error }) : null- ] }), /* @__PURE__ */ (0, L.jsxs)(LA, {+ r.error ? /* @__PURE__ */ (0, L.jsx)(DA, { children: r.error }) : null,+ h.error ? /* @__PURE__ */ (0, L.jsx)(DA, { children: h.error }) : null+ ] }), /* @__PURE__ */ (0, L.jsxs)(TA, {status: r.enabled ? "服务重启时会按设置尝试恢复。" : "服务重启后保持关闭。",children: [/* @__PURE__ */ (0, L.jsx)(G, {onClick: () => v("toggle", !g, (e) => n(e.enabled ? "公网入口已启动" : "公网入口已停止")),@@ -47667,24 +49054,24 @@ function mfe({ revision: e, initial: t, receipt: n }) {}//#endregion//#region src/react/settings/network-settings.tsx-var hfe = [+var qfe = [["environment", "系统代理"],["direct", "直连"],["proxy", "自定义"]];-function gfe({ data: e, receipt: t }) {+function Jfe({ data: e, receipt: t }) {return /* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-col gap-6",children: [- e.peach_proxy ? /* @__PURE__ */ (0, L.jsx)(_fe, {+ e.peach_proxy ? /* @__PURE__ */ (0, L.jsx)(Yfe, {initial: e.peach_proxy,receipt: t}) : null,- e.access ? /* @__PURE__ */ (0, L.jsx)(ufe, {+ e.access ? /* @__PURE__ */ (0, L.jsx)(Hfe, {initial: e.access,receipt: t}) : null,- e.tunnel ? /* @__PURE__ */ (0, L.jsx)(mfe, {+ e.tunnel ? /* @__PURE__ */ (0, L.jsx)(Kfe, {revision: e.revision,initial: e.tunnel,receipt: t@@ -47692,9 +49079,9 @@ function gfe({ data: e, receipt: t }) {]});}-function _fe({ initial: e, receipt: t }) {- let [n, r] = (0, I.useState)(e), [i, a] = (0, I.useState)(e.mode), [o, s] = (0, I.useState)(""), c = Bw();- return /* @__PURE__ */ (0, L.jsxs)(PA, {+function Yfe({ initial: e, receipt: t }) {+ let [n, r] = (0, I.useState)(e), [i, a] = (0, I.useState)(e.mode), [o, s] = (0, I.useState)(""), c = dw();+ return /* @__PURE__ */ (0, L.jsxs)(SA, {id: "peachProxy",title: "Peach 代理",onSubmit: (e) => {@@ -47706,25 +49093,25 @@ function _fe({ initial: e, receipt: t }) {});},children: [- /* @__PURE__ */ (0, L.jsx)(FA, { children: /* @__PURE__ */ (0, L.jsx)(NA, {+ /* @__PURE__ */ (0, L.jsx)(CA, { children: /* @__PURE__ */ (0, L.jsx)(xA, {label: "连接方式",description: "采集来源选「Peach 代理」时共用这里的连接方式。",- children: /* @__PURE__ */ (0, L.jsx)(sj, {+ children: /* @__PURE__ */ (0, L.jsx)(YA, {"aria-label": "连接方式",selectedKey: i,onSelectionChange: (e) => {e !== null && a(String(e));},- children: hfe.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(cj, {+ children: qfe.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(XA, {id: e,children: t}, e))})}) }),- i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, L.jsxs)(IA, {+ i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, L.jsxs)(wA, {divided: !0,children: [- i === "proxy" ? /* @__PURE__ */ (0, L.jsx)(Bj, {+ i === "proxy" ? /* @__PURE__ */ (0, L.jsx)(Oj, {id: "peachProxyAddress",type: "password",label: "代理地址",@@ -47738,10 +49125,10 @@ function _fe({ initial: e, receipt: t }) {title: "需要选择连接方式",children: "已有来源的代理地址不同,请选择公共连接方式。"}) : null,- c.error ? /* @__PURE__ */ (0, L.jsx)(zA, { children: c.error }) : null+ c.error ? /* @__PURE__ */ (0, L.jsx)(DA, { children: c.error }) : null]}) : null,- /* @__PURE__ */ (0, L.jsx)(LA, { children: /* @__PURE__ */ (0, L.jsx)(G, {+ /* @__PURE__ */ (0, L.jsx)(TA, { children: /* @__PURE__ */ (0, L.jsx)(G, {type: "submit",...Y(c.busy === "save"),children: "保存配置"@@ -47751,10 +49138,10 @@ function _fe({ initial: e, receipt: t }) {}//#endregion//#region src/react/settings/configuration-page.tsx-function vfe({ receipt: e, reopenTutorial: t }) {- let n = Nt({- queryKey: XL,- queryFn: ({ signal: e }) => ZL(e)+function Xfe({ receipt: e, reopenTutorial: t }) {+ let n = Ft({+ queryKey: OR,+ queryFn: ({ signal: e }) => kR(e)}), r = n.data;if (!r) return /* @__PURE__ */ (0, L.jsx)("div", {className: "configpage",@@ -47775,22 +49162,22 @@ function vfe({ receipt: e, reopenTutorial: t }) {className: "configgroup",children: "通用"}) : null,- a ? /* @__PURE__ */ (0, L.jsx)(Ide, { ...i }) : null,+ a ? /* @__PURE__ */ (0, L.jsx)(mfe, { ...i }) : null,/* @__PURE__ */ (0, L.jsx)("h2", {className: "configgroup",children: "媒体"}),- /* @__PURE__ */ (0, L.jsx)(afe, { ...i }),+ /* @__PURE__ */ (0, L.jsx)(Lfe, { ...i }),o ? /* @__PURE__ */ (0, L.jsx)("h2", {className: "configgroup",children: "网络与访问"}) : null,- o ? /* @__PURE__ */ (0, L.jsx)(gfe, { ...i }) : null,+ o ? /* @__PURE__ */ (0, L.jsx)(Jfe, { ...i }) : null,/* @__PURE__ */ (0, L.jsx)("h2", {className: "configgroup",children: "更新与维护"}),- /* @__PURE__ */ (0, L.jsx)(Vde, {+ /* @__PURE__ */ (0, L.jsx)(yfe, {...i,reopenTutorial: t})@@ -47799,35 +49186,35 @@ function vfe({ receipt: e, reopenTutorial: t }) {}//#endregion//#region src/react/settings/configuration-summary.tsx-var yfe = (e) => {+var Zfe = (e) => {let t = e.updates;return t ? t.message ? `${t.current_version} · ${t.message}` : t.current_version : "未取得";};-function bfe({ openConfiguration: e }) {- let t = Nt({- queryKey: XL,- queryFn: ({ signal: e }) => ZL(e)+function Qfe({ openConfiguration: e }) {+ let t = Ft({+ queryKey: OR,+ queryFn: ({ signal: e }) => kR(e)}), n = t.data;return /* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-col",- children: [n ? /* @__PURE__ */ (0, L.jsxs)(HA, { children: [- /* @__PURE__ */ (0, L.jsx)(UA, {+ children: [n ? /* @__PURE__ */ (0, L.jsxs)(AA, { children: [+ /* @__PURE__ */ (0, L.jsx)(jA, {term: "媒体库",children: `${n.library_count} 个`}),- /* @__PURE__ */ (0, L.jsx)(UA, {+ /* @__PURE__ */ (0, L.jsx)(jA, {term: "端口",children: String(n.port)}),- /* @__PURE__ */ (0, L.jsx)(UA, {+ /* @__PURE__ */ (0, L.jsx)(jA, {term: "更新",- children: yfe(n)+ children: Zfe(n)})- ] }) : /* @__PURE__ */ (0, L.jsx)(IA, { children: /* @__PURE__ */ (0, L.jsx)(J, {+ ] }) : /* @__PURE__ */ (0, L.jsx)(wA, { children: /* @__PURE__ */ (0, L.jsx)(J, {tone: "error",title: "打不开配置",children: t.error ? K(t.error) : "没有读到配置"- }) }), /* @__PURE__ */ (0, L.jsx)(LA, {+ }) }), /* @__PURE__ */ (0, L.jsx)(TA, {status: "媒体文件夹、端口、代理与更新在配置页上改。",children: /* @__PURE__ */ (0, L.jsx)(G, {onClick: e,@@ -47838,14 +49225,14 @@ function bfe({ openConfiguration: e }) {}//#endregion//#region src/react/stats/stats.ts-var xfe = "/api/stats", oR = ["stats"], sR = (e) => Tw(xfe, e);-async function Sfe(e) {+var $fe = "/api/stats", RR = ["stats"], zR = (e) => iw($fe, e);+async function epe(e) {await X.fetchQuery({- queryKey: oR,- queryFn: () => sR(e)+ queryKey: RR,+ queryFn: () => zR(e)});}-var cR = (e, t) => t ? Math.round(e / t * 100) : 0, Cfe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, lR = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, uR = (e) => (e.max_reached || 0) * 100, wfe = (e) => e.kind === "online" ? "在线直接观看" : lR(e) < uR(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", Tfe = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, Efe = (e) => Math.max(1, ...e) * 1.1, Dfe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), Ofe = {+var BR = (e, t) => t ? Math.round(e / t * 100) : 0, tpe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, VR = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, HR = (e) => (e.max_reached || 0) * 100, npe = (e) => e.kind === "online" ? "在线直接观看" : VR(e) < HR(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", rpe = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, ipe = (e) => Math.max(1, ...e) * 1.1, ape = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), ope = {video: "视频",image: "图片",illustration: "插画",@@ -47853,18 +49240,18 @@ var cR = (e, t) => t ? Math.round(e / t * 100) : 0, Cfe = (e) => e >= 3600 ? `${audio: "音频",account: "账号",other: "其它文件"-}, kfe = (e) => e.map((e) => ({- name: Ofe[e.k] ?? e.k,+}, spe = (e) => e.map((e) => ({+ name: ope[e.k] ?? e.k,value: e.n-})).sort((e, t) => t.value - e.value), Afe = {+})).sort((e, t) => t.value - e.value), cpe = {速食: "<5 分钟",短: "5–15 分钟",中: "15–40 分钟",长: ">40 分钟"-}, dR = (e, t = {}) => e.map((e) => ({+}, UR = (e, t = {}) => e.map((e) => ({name: t[e.k] ?? e.k,value: e.n-})), jfe = (e) => dR(e, Afe), Mfe = [+})), lpe = (e) => UR(e, cpe), upe = [[1,1,@@ -47900,49 +49287,49 @@ var cR = (e, t) => t ? Math.round(e / t * 100) : 0, Cfe = (e) => e >= 3600 ? `${Infinity,"≥10 次"]-], Nfe = (e) => Mfe.map(([t, n, r]) => ({+], dpe = (e) => upe.map(([t, n, r]) => ({name: r,value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)-})), Pfe = /* @__PURE__ */ "dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdateCapture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture".split(".");-function fR(e) {- return typeof e == "string" && Pfe.includes(e);+})), fpe = /* @__PURE__ */ "dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdateCapture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture".split(".");+function WR(e) {+ return typeof e == "string" && fpe.includes(e);}//#endregion//#region node_modules/recharts/es6/util/svgPropertiesNoEvents.js-var Ffe = /* @__PURE__ */ new Set(/* @__PURE__ */ "aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.cursor.cx.cy.d.decelerate.descent.diffuseConstant.direction.display.divisor.dominantBaseline.dur.dx.dy.edgeMode.elevation.enableBackground.end.exponent.externalResourcesRequired.fill.fillOpacity.fillRule.filter.filterRes.filterUnits.floodColor.floodOpacity.focusable.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.format.from.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.seed.shapeRendering.slope.spacing.specularConstant.specularExponent.speed.spreadMethod.startOffset.stdDeviation.stemh.stemv.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.string.stroke.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle".split("."));-function pR(e) {- return typeof e == "string" && Ffe.has(e);+var ppe = /* @__PURE__ */ new Set(/* @__PURE__ */ "aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.cursor.cx.cy.d.decelerate.descent.diffuseConstant.direction.display.divisor.dominantBaseline.dur.dx.dy.edgeMode.elevation.enableBackground.end.exponent.externalResourcesRequired.fill.fillOpacity.fillRule.filter.filterRes.filterUnits.floodColor.floodOpacity.focusable.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.format.from.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.seed.shapeRendering.slope.spacing.specularConstant.specularExponent.speed.spreadMethod.startOffset.stdDeviation.stemh.stemv.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.string.stroke.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle".split("."));+function GR(e) {+ return typeof e == "string" && ppe.has(e);}-function mR(e) {+function KR(e) {return typeof e == "string" && e.startsWith("data-");}-function hR(e) {+function qR(e) {if (typeof e != "object" || !e) return {};var t = {};- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (pR(n) || mR(n)) && (t[n] = e[n]);+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (GR(n) || KR(n)) && (t[n] = e[n]);return t;}-function gR(e) {+function JR(e) {if (e == null) return null;if (/*#__PURE__*/ (0, I.isValidElement)(e) && typeof e.props == "object" && e.props !== null) {var t = e.props;- return hR(t);+ return qR(t);}- return typeof e == "object" && !Array.isArray(e) ? hR(e) : null;+ return typeof e == "object" && !Array.isArray(e) ? qR(e) : null;}//#endregion//#region node_modules/recharts/es6/util/svgPropertiesAndEvents.js-function _R(e) {+function YR(e) {var t = {};- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (pR(n) || mR(n) || fR(n)) && (t[n] = e[n]);+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (GR(n) || KR(n) || WR(n)) && (t[n] = e[n]);return t;}-function Ife(e) {- return e == null ? null : /*#__PURE__*/ (0, I.isValidElement)(e) ? _R(e.props) : typeof e == "object" && !Array.isArray(e) ? _R(e) : null;+function mpe(e) {+ return e == null ? null : /*#__PURE__*/ (0, I.isValidElement)(e) ? YR(e.props) : typeof e == "object" && !Array.isArray(e) ? YR(e) : null;}//#endregion//#region node_modules/recharts/es6/container/Surface.js-var Lfe = [+var hpe = ["children","width","height",@@ -47952,25 +49339,25 @@ var Lfe = ["title","desc"];-function vR() {- return vR = Object.assign ? Object.assign.bind() : function(e) {+function XR() {+ return XR = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, vR.apply(null, arguments);+ }, XR.apply(null, arguments);}-function Rfe(e, t) {+function gpe(e, t) {if (e == null) return {};- var n, r, i = zfe(e, t);+ var n, r, i = _pe(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function zfe(e, t) {+function _pe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -47979,14 +49366,14 @@ function zfe(e, t) {}return n;}-var yR = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {- var { children: n, width: r, height: i, viewBox: a, className: o, style: s, title: c, desc: l } = e, u = Rfe(e, Lfe), d = a || {+var ZR = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {+ var { children: n, width: r, height: i, viewBox: a, className: o, style: s, title: c, desc: l } = e, u = gpe(e, hpe), d = a || {width: r,height: i,x: 0,y: 0- }, f = Jm("recharts-surface", o);- return /*#__PURE__*/ I.createElement("svg", vR({}, _R(u), {+ }, f = Xm("recharts-surface", o);+ return /*#__PURE__*/ I.createElement("svg", XR({}, YR(u), {className: f,width: r,height: i,@@ -47994,26 +49381,26 @@ var yR = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {viewBox: `${d.x} ${d.y} ${d.width} ${d.height}`,ref: t}), /*#__PURE__*/ I.createElement("title", null, c), /*#__PURE__*/ I.createElement("desc", null, l), n);-}), Bfe = ["children", "className"];-function bR() {- return bR = Object.assign ? Object.assign.bind() : function(e) {+}), vpe = ["children", "className"];+function QR() {+ return QR = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, bR.apply(null, arguments);+ }, QR.apply(null, arguments);}-function Vfe(e, t) {+function ype(e, t) {if (e == null) return {};- var n, r, i = Hfe(e, t);+ var n, r, i = bpe(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function Hfe(e, t) {+function bpe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -48022,39 +49409,39 @@ function Hfe(e, t) {}return n;}-var xR = /*#__PURE__*/ I.forwardRef((e, t) => {- var { children: n, className: r } = e, i = Vfe(e, Bfe), a = Jm("recharts-layer", r);- return /*#__PURE__*/ I.createElement("g", bR({ className: a }, _R(i), { ref: t }), n);-}), SR = /*#__PURE__*/ (0, I.createContext)(null), Ufe = () => (0, I.useContext)(SR);+var $R = /*#__PURE__*/ I.forwardRef((e, t) => {+ var { children: n, className: r } = e, i = ype(e, vpe), a = Xm("recharts-layer", r);+ return /*#__PURE__*/ I.createElement("g", QR({ className: a }, YR(i), { ref: t }), n);+}), ez = /*#__PURE__*/ (0, I.createContext)(null), xpe = () => (0, I.useContext)(ez);//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/constant.js-function CR(e) {+function tz(e) {return function() {return e;};}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/math.js-var wR = Math.cos, TR = Math.sin, ER = Math.sqrt, DR = Math.PI;-DR / 2;-var OR = 2 * DR, kR = Math.PI, AR = 2 * kR, jR = 1e-6, Wfe = AR - jR;-function MR(e) {+var nz = Math.cos, rz = Math.sin, iz = Math.sqrt, az = Math.PI;+az / 2;+var oz = 2 * az, sz = Math.PI, cz = 2 * sz, lz = 1e-6, Spe = cz - lz;+function uz(e) {this._ += e[0];for (let t = 1, n = e.length; t < n; ++t) this._ += arguments[t] + e[t];}-function Gfe(e) {+function Cpe(e) {let t = Math.floor(e);if (!(t >= 0)) throw Error(`invalid digits: ${e}`);- if (t > 15) return MR;+ if (t > 15) return uz;let n = 10 ** t;return function(e) {this._ += e[0];for (let t = 1, r = e.length; t < r; ++t) this._ += Math.round(arguments[t] * n) / n + e[t];};}-var NR = class {+var dz = class {constructor(e) {- this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? MR : Gfe(e);+ this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? uz : Cpe(e);}moveTo(e, t) {this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}`;@@ -48075,18 +49462,18 @@ var NR = class {if (e = +e, t = +t, n = +n, r = +r, i = +i, i < 0) throw Error(`negative radius: ${i}`);let a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;if (this._x1 === null) this._append`M${this._x1 = e},${this._y1 = t}`;- else if (d > jR) {- if (!(Math.abs(u * s - c * l) > jR) || !i) this._append`L${this._x1 = e},${this._y1 = t}`;+ else if (d > lz) {+ if (!(Math.abs(u * s - c * l) > lz) || !i) this._append`L${this._x1 = e},${this._y1 = t}`;else {- let 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((kR - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;- Math.abs(y - 1) > jR && this._append`L${e + y * l},${t + y * u}`, this._append`A${i},${i},0,0,${+(u * f > l * p)},${this._x1 = e + b * s},${this._y1 = t + b * c}`;+ let 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((sz - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;+ Math.abs(y - 1) > lz && this._append`L${e + y * l},${t + y * u}`, this._append`A${i},${i},0,0,${+(u * f > l * p)},${this._x1 = e + b * s},${this._y1 = t + b * c}`;}}}arc(e, t, n, r, i, a) {if (e = +e, t = +t, n = +n, a = !!a, n < 0) throw Error(`negative radius: ${n}`);let 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;- this._x1 === null ? this._append`M${c},${l}` : (Math.abs(this._x1 - c) > jR || Math.abs(this._y1 - l) > jR) && this._append`L${c},${l}`, n && (d < 0 && (d = d % AR + AR), d > Wfe ? this._append`A${n},${n},0,1,${u},${e - o},${t - s}A${n},${n},0,1,${u},${this._x1 = c},${this._y1 = l}` : d > jR && this._append`A${n},${n},0,${+(d >= kR)},${u},${this._x1 = e + n * Math.cos(i)},${this._y1 = t + n * Math.sin(i)}`);+ this._x1 === null ? this._append`M${c},${l}` : (Math.abs(this._x1 - c) > lz || Math.abs(this._y1 - l) > lz) && this._append`L${c},${l}`, n && (d < 0 && (d = d % cz + cz), d > Spe ? this._append`A${n},${n},0,1,${u},${e - o},${t - s}A${n},${n},0,1,${u},${this._x1 = c},${this._y1 = l}` : d > lz && this._append`A${n},${n},0,${+(d >= sz)},${u},${this._x1 = e + n * Math.cos(i)},${this._y1 = t + n * Math.sin(i)}`);}rect(e, t, n, r) {this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}h${n = +n}v${+r}h${-n}Z`;@@ -48095,10 +49482,10 @@ var NR = class {return this._;}};-NR.prototype;+dz.prototype;//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/path.js-function PR(e) {+function fz(e) {let t = 3;return e.digits = function(n) {if (!arguments.length) return t;@@ -48109,18 +49496,18 @@ function PR(e) {t = e;}return e;- }, () => new NR(t);+ }, () => new dz(t);}Array.prototype.slice;-function FR(e) {+function pz(e) {return typeof e == "object" && "length" in e ? e : Array.from(e);}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/linear.js-function IR(e) {+function mz(e) {this._context = e;}-IR.prototype = {+mz.prototype = {areaStart: function() {this._line = 0;},@@ -48143,33 +49530,33 @@ IR.prototype = {}}};-function LR(e) {- return new IR(e);+function hz(e) {+ return new mz(e);}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/point.js-function RR(e) {+function gz(e) {return e[0];}-function zR(e) {+function _z(e) {return e[1];}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/line.js-function BR(e, t) {- var n = CR(!0), r = null, i = LR, a = null, o = PR(s);- e = typeof e == "function" ? e : e === void 0 ? RR : CR(e), t = typeof t == "function" ? t : t === void 0 ? zR : CR(t);+function vz(e, t) {+ var n = tz(!0), r = null, i = hz, a = null, o = fz(s);+ e = typeof e == "function" ? e : e === void 0 ? gz : tz(e), t = typeof t == "function" ? t : t === void 0 ? _z : tz(t);function s(s) {- var c, l = (s = FR(s)).length, u, d = !1, f;+ var c, l = (s = pz(s)).length, u, d = !1, f;for (r ?? (a = i(f = o())), c = 0; c <= l; ++c) !(c < l && n(u = s[c], c, s)) === d && ((d = !d) ? a.lineStart() : a.lineEnd()), d && a.point(+e(u, c, s), +t(u, c, s));if (f) return a = null, f + "" || null;}return s.x = function(t) {- return arguments.length ? (e = typeof t == "function" ? t : CR(+t), s) : e;+ return arguments.length ? (e = typeof t == "function" ? t : tz(+t), s) : e;}, s.y = function(e) {- return arguments.length ? (t = typeof e == "function" ? e : CR(+e), s) : t;+ return arguments.length ? (t = typeof e == "function" ? e : tz(+e), s) : t;}, s.defined = function(e) {- return arguments.length ? (n = typeof e == "function" ? e : CR(!!e), s) : n;+ return arguments.length ? (n = typeof e == "function" ? e : tz(!!e), s) : n;}, s.curve = function(e) {return arguments.length ? (i = e, r != null && (a = i(r)), s) : i;}, s.context = function(e) {@@ -48178,11 +49565,11 @@ function BR(e, t) {}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/area.js-function VR(e, t, n) {- var r = null, i = CR(!0), a = null, o = LR, s = null, c = PR(l);- e = typeof e == "function" ? e : e === void 0 ? RR : CR(+e), t = typeof t == "function" ? t : CR(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? zR : CR(+n);+function yz(e, t, n) {+ var r = null, i = tz(!0), a = null, o = hz, s = null, c = fz(l);+ e = typeof e == "function" ? e : e === void 0 ? gz : tz(+e), t = typeof t == "function" ? t : tz(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? _z : tz(+n);function l(l) {- var u, d, f, p = (l = FR(l)).length, m, h = !1, g, _ = Array(p), v = Array(p);+ var u, d, f, p = (l = pz(l)).length, m, h = !1, g, _ = Array(p), v = Array(p);for (a ?? (s = o(g = c())), u = 0; u <= p; ++u) {if (!(u < p && i(m = l[u], u, l)) === h) {if (h = !h) d = u, s.areaStart(), s.lineStart();@@ -48196,20 +49583,20 @@ function VR(e, t, n) {if (g) return s = null, g + "" || null;}function u() {- return BR().defined(i).curve(o).context(a);+ return vz().defined(i).curve(o).context(a);}return l.x = function(t) {- return arguments.length ? (e = typeof t == "function" ? t : CR(+t), r = null, l) : e;+ return arguments.length ? (e = typeof t == "function" ? t : tz(+t), r = null, l) : e;}, l.x0 = function(t) {- return arguments.length ? (e = typeof t == "function" ? t : CR(+t), l) : e;+ return arguments.length ? (e = typeof t == "function" ? t : tz(+t), l) : e;}, l.x1 = function(e) {- return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : CR(+e), l) : r;+ return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : tz(+e), l) : r;}, l.y = function(e) {- return arguments.length ? (t = typeof e == "function" ? e : CR(+e), n = null, l) : t;+ return arguments.length ? (t = typeof e == "function" ? e : tz(+e), n = null, l) : t;}, l.y0 = function(e) {- return arguments.length ? (t = typeof e == "function" ? e : CR(+e), l) : t;+ return arguments.length ? (t = typeof e == "function" ? e : tz(+e), l) : t;}, l.y1 = function(e) {- return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : CR(+e), l) : n;+ return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : tz(+e), l) : n;}, l.lineX0 = l.lineY0 = function() {return u().x(e).y(t);}, l.lineY1 = function() {@@ -48217,7 +49604,7 @@ function VR(e, t, n) {}, l.lineX1 = function() {return u().x(r).y(t);}, l.defined = function(e) {- return arguments.length ? (i = typeof e == "function" ? e : CR(!!e), l) : i;+ return arguments.length ? (i = typeof e == "function" ? e : tz(!!e), l) : i;}, l.curve = function(e) {return arguments.length ? (o = e, a != null && (s = o(a)), l) : o;}, l.context = function(e) {@@ -48226,7 +49613,7 @@ function VR(e, t, n) {}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/bump.js-var HR = class {+var bz = class {constructor(e, t) {this._context = e, this._x = t;}@@ -48253,70 +49640,70 @@ var HR = class {this._x0 = e, this._y0 = t;}};-function Kfe(e) {- return new HR(e, !0);+function wpe(e) {+ return new bz(e, !0);}-function qfe(e) {- return new HR(e, !1);+function Tpe(e) {+ return new bz(e, !1);}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol/circle.js-var UR = { draw(e, t) {- let n = ER(t / DR);- e.moveTo(n, 0), e.arc(0, 0, n, 0, OR);-} }, Jfe = { draw(e, t) {- let n = ER(t / 5) / 2;+var xz = { draw(e, t) {+ let n = iz(t / az);+ e.moveTo(n, 0), e.arc(0, 0, n, 0, oz);+} }, Epe = { draw(e, t) {+ let n = iz(t / 5) / 2;e.moveTo(-3 * n, -n), e.lineTo(-n, -n), e.lineTo(-n, -3 * n), e.lineTo(n, -3 * n), e.lineTo(n, -n), e.lineTo(3 * n, -n), e.lineTo(3 * n, n), e.lineTo(n, n), e.lineTo(n, 3 * n), e.lineTo(-n, 3 * n), e.lineTo(-n, n), e.lineTo(-3 * n, n), e.closePath();-} }, WR = ER(1 / 3), Yfe = WR * 2, Xfe = { draw(e, t) {- let n = ER(t / Yfe), r = n * WR;+} }, Sz = iz(1 / 3), Dpe = Sz * 2, Ope = { draw(e, t) {+ let n = iz(t / Dpe), r = n * Sz;e.moveTo(0, -n), e.lineTo(r, 0), e.lineTo(0, n), e.lineTo(-r, 0), e.closePath();-} }, Zfe = { draw(e, t) {- let n = ER(t), r = -n / 2;+} }, kpe = { draw(e, t) {+ let n = iz(t), r = -n / 2;e.rect(r, r, n, n);-} }, Qfe = .8908130915292852, GR = TR(DR / 10) / TR(7 * DR / 10), $fe = TR(OR / 10) * GR, epe = -wR(OR / 10) * GR, tpe = { draw(e, t) {- let n = ER(t * Qfe), r = $fe * n, i = epe * n;+} }, Ape = .8908130915292852, Cz = rz(az / 10) / rz(7 * az / 10), jpe = rz(oz / 10) * Cz, Mpe = -nz(oz / 10) * Cz, Npe = { draw(e, t) {+ let n = iz(t * Ape), r = jpe * n, i = Mpe * n;e.moveTo(0, -n), e.lineTo(r, i);for (let t = 1; t < 5; ++t) {- let a = OR * t / 5, o = wR(a), s = TR(a);+ let a = oz * t / 5, o = nz(a), s = rz(a);e.lineTo(s * n, -o * n), e.lineTo(o * r - s * i, s * r + o * i);}e.closePath();-} }, KR = ER(3), npe = { draw(e, t) {- let n = -ER(t / (KR * 3));- e.moveTo(0, n * 2), e.lineTo(-KR * n, -n), e.lineTo(KR * n, -n), e.closePath();-} }, qR = -.5, JR = ER(3) / 2, YR = 1 / ER(12), rpe = (YR / 2 + 1) * 3, ipe = { draw(e, t) {- let n = ER(t / rpe), r = n / 2, i = n * YR, a = r, o = n * YR + n, s = -a, c = o;- e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(qR * r - JR * i, JR * r + qR * i), e.lineTo(qR * a - JR * o, JR * a + qR * o), e.lineTo(qR * s - JR * c, JR * s + qR * c), e.lineTo(qR * r + JR * i, qR * i - JR * r), e.lineTo(qR * a + JR * o, qR * o - JR * a), e.lineTo(qR * s + JR * c, qR * c - JR * s), e.closePath();+} }, wz = iz(3), Ppe = { draw(e, t) {+ let n = -iz(t / (wz * 3));+ e.moveTo(0, n * 2), e.lineTo(-wz * n, -n), e.lineTo(wz * n, -n), e.closePath();+} }, Tz = -.5, Ez = iz(3) / 2, Dz = 1 / iz(12), Fpe = (Dz / 2 + 1) * 3, Ipe = { draw(e, t) {+ let n = iz(t / Fpe), r = n / 2, i = n * Dz, a = r, o = n * Dz + n, s = -a, c = o;+ e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(Tz * r - Ez * i, Ez * r + Tz * i), e.lineTo(Tz * a - Ez * o, Ez * a + Tz * o), e.lineTo(Tz * s - Ez * c, Ez * s + Tz * c), e.lineTo(Tz * r + Ez * i, Tz * i - Ez * r), e.lineTo(Tz * a + Ez * o, Tz * o - Ez * a), e.lineTo(Tz * s + Ez * c, Tz * c - Ez * s), e.closePath();} };//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol.js-function ape(e, t) {- let n = null, r = PR(i);- e = typeof e == "function" ? e : CR(e || UR), t = typeof t == "function" ? t : CR(t === void 0 ? 64 : +t);+function Lpe(e, t) {+ let n = null, r = fz(i);+ e = typeof e == "function" ? e : tz(e || xz), t = typeof t == "function" ? t : tz(t === void 0 ? 64 : +t);function i() {let i;if (n ||= i = r(), e.apply(this, arguments).draw(n, +t.apply(this, arguments)), i) return n = null, i + "" || null;}return i.type = function(t) {- return arguments.length ? (e = typeof t == "function" ? t : CR(t), i) : e;+ return arguments.length ? (e = typeof t == "function" ? t : tz(t), i) : e;}, i.size = function(e) {- return arguments.length ? (t = typeof e == "function" ? e : CR(+e), i) : t;+ return arguments.length ? (t = typeof e == "function" ? e : tz(+e), i) : t;}, i.context = function(e) {return arguments.length ? (n = e ?? null, i) : n;}, i;}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/noop.js-function XR() {}+function Oz() {}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basis.js-function ZR(e, t, n) {+function kz(e, t, n) {e._context.bezierCurveTo((2 * e._x0 + e._x1) / 3, (2 * e._y0 + e._y1) / 3, (e._x0 + 2 * e._x1) / 3, (e._y0 + 2 * e._y1) / 3, (e._x0 + 4 * e._x1 + t) / 6, (e._y0 + 4 * e._y1 + n) / 6);}-function QR(e) {+function Az(e) {this._context = e;}-QR.prototype = {+Az.prototype = {areaStart: function() {this._line = 0;},@@ -48328,7 +49715,7 @@ QR.prototype = {},lineEnd: function() {switch (this._point) {- case 3: ZR(this, this._x1, this._y1);+ case 3: kz(this, this._x1, this._y1);case 2: this._context.lineTo(this._x1, this._y1);}(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;@@ -48342,22 +49729,22 @@ QR.prototype = {this._point = 2;break;case 2: this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);- default: ZR(this, e, t);+ default: kz(this, e, t);}this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;}};-function ope(e) {- return new QR(e);+function Rpe(e) {+ return new Az(e);}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisClosed.js-function $R(e) {+function jz(e) {this._context = e;}-$R.prototype = {- areaStart: XR,- areaEnd: XR,+jz.prototype = {+ areaStart: Oz,+ areaEnd: Oz,lineStart: function() {this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, this._point = 0;},@@ -48383,20 +49770,20 @@ $R.prototype = {case 2:this._point = 3, this._x4 = e, this._y4 = t, this._context.moveTo((this._x0 + 4 * this._x1 + e) / 6, (this._y0 + 4 * this._y1 + t) / 6);break;- default: ZR(this, e, t);+ default: kz(this, e, t);}this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;}};-function spe(e) {- return new $R(e);+function zpe(e) {+ return new jz(e);}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisOpen.js-function ez(e) {+function Mz(e) {this._context = e;}-ez.prototype = {+Mz.prototype = {areaStart: function() {this._line = 0;},@@ -48423,22 +49810,22 @@ ez.prototype = {this._line ? this._context.lineTo(n, r) : this._context.moveTo(n, r);break;case 3: this._point = 4;- default: ZR(this, e, t);+ default: kz(this, e, t);}this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;}};-function cpe(e) {- return new ez(e);+function Bpe(e) {+ return new Mz(e);}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/linearClosed.js-function tz(e) {+function Nz(e) {this._context = e;}-tz.prototype = {- areaStart: XR,- areaEnd: XR,+Nz.prototype = {+ areaStart: Oz,+ areaEnd: Oz,lineStart: function() {this._point = 0;},@@ -48449,30 +49836,30 @@ tz.prototype = {e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));}};-function lpe(e) {- return new tz(e);+function Vpe(e) {+ return new Nz(e);}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/monotone.js-function nz(e) {+function Pz(e) {return e < 0 ? -1 : 1;}-function rz(e, t, n) {+function Fz(e, t, n) {var r = e._x1 - e._x0, i = t - e._x1, a = (e._y1 - e._y0) / (r || i < 0 && -0), o = (n - e._y1) / (i || r < 0 && -0), s = (a * i + o * r) / (r + i);- return (nz(a) + nz(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;+ return (Pz(a) + Pz(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;}-function iz(e, t) {+function Iz(e, t) {var n = e._x1 - e._x0;return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t;}-function az(e, t, n) {+function Lz(e, t, n) {var r = e._x0, i = e._y0, a = e._x1, o = e._y1, s = (a - r) / 3;e._context.bezierCurveTo(r + s, i + s * t, a - s, o - s * n, a, o);}-function oz(e) {+function Rz(e) {this._context = e;}-oz.prototype = {+Rz.prototype = {areaStart: function() {this._line = 0;},@@ -48487,7 +49874,7 @@ oz.prototype = {case 2:this._context.lineTo(this._x1, this._y1);break;- case 3: az(this, this._t0, iz(this, this._t0));+ case 3: Lz(this, this._t0, Iz(this, this._t0));}(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;},@@ -48502,24 +49889,24 @@ oz.prototype = {this._point = 2;break;case 2:- this._point = 3, az(this, iz(this, n = rz(this, e, t)), n);+ this._point = 3, Lz(this, Iz(this, n = Fz(this, e, t)), n);break;- default: az(this, this._t0, n = rz(this, e, t));+ default: Lz(this, this._t0, n = Fz(this, e, t));}this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n;}}};-function sz(e) {- this._context = new cz(e);+function zz(e) {+ this._context = new Bz(e);}-(sz.prototype = Object.create(oz.prototype)).point = function(e, t) {- oz.prototype.point.call(this, t, e);+(zz.prototype = Object.create(Rz.prototype)).point = function(e, t) {+ Rz.prototype.point.call(this, t, e);};-function cz(e) {+function Bz(e) {this._context = e;}-cz.prototype = {+Bz.prototype = {moveTo: function(e, t) {this._context.moveTo(t, e);},@@ -48533,18 +49920,18 @@ cz.prototype = {this._context.bezierCurveTo(t, e, r, n, a, i);}};-function upe(e) {- return new oz(e);+function Hpe(e) {+ return new Rz(e);}-function dpe(e) {- return new sz(e);+function Upe(e) {+ return new zz(e);}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/natural.js-function lz(e) {+function Vz(e) {this._context = e;}-lz.prototype = {+Vz.prototype = {areaStart: function() {this._line = 0;},@@ -48558,7 +49945,7 @@ lz.prototype = {var e = this._x, t = this._y, n = e.length;if (n) {if (this._line ? this._context.lineTo(e[0], t[0]) : this._context.moveTo(e[0], t[0]), n === 2) this._context.lineTo(e[1], t[1]);- else for (var r = uz(e), i = uz(t), a = 0, o = 1; o < n; ++a, ++o) this._context.bezierCurveTo(r[0][a], i[0][a], r[1][a], i[1][a], e[o], t[o]);+ else for (var r = Hz(e), i = Hz(t), a = 0, o = 1; o < n; ++a, ++o) this._context.bezierCurveTo(r[0][a], i[0][a], r[1][a], i[1][a], e[o], t[o]);}(this._line || this._line !== 0 && n === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;},@@ -48566,7 +49953,7 @@ lz.prototype = {this._x.push(+e), this._y.push(+t);}};-function uz(e) {+function Hz(e) {var t, n = e.length - 1, r, i = Array(n), a = Array(n), o = Array(n);for (i[0] = 0, a[0] = 2, o[0] = e[0] + 2 * e[1], t = 1; t < n - 1; ++t) i[t] = 1, a[t] = 4, o[t] = 4 * e[t] + 2 * e[t + 1];for (i[n - 1] = 2, a[n - 1] = 7, o[n - 1] = 8 * e[n - 1] + e[n], t = 1; t < n; ++t) r = i[t] / a[t - 1], a[t] -= r, o[t] -= r * o[t - 1];@@ -48574,15 +49961,15 @@ function uz(e) {for (a[n - 1] = (e[n] + i[n - 1]) / 2, t = 0; t < n - 1; ++t) a[t] = 2 * e[t + 1] - i[t + 1];return [i, a];}-function fpe(e) {- return new lz(e);+function Wpe(e) {+ return new Vz(e);}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/step.js-function dz(e, t) {+function Uz(e, t) {this._context = e, this._t = t;}-dz.prototype = {+Uz.prototype = {areaStart: function() {this._line = 0;},@@ -48610,78 +49997,78 @@ dz.prototype = {this._x = e, this._y = t;}};-function ppe(e) {- return new dz(e, .5);+function Gpe(e) {+ return new Uz(e, .5);}-function mpe(e) {- return new dz(e, 0);+function Kpe(e) {+ return new Uz(e, 0);}-function hpe(e) {- return new dz(e, 1);+function qpe(e) {+ return new Uz(e, 1);}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/none.js-function fz(e, t) {+function Wz(e, t) {if ((o = e.length) > 1) for (var n = 1, r, i, a = e[t[0]], o, s = a.length; n < o; ++n) for (i = a, a = e[t[n]], r = 0; r < s; ++r) a[r][1] += a[r][0] = isNaN(i[r][1]) ? i[r][0] : i[r][1];}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/order/none.js-function pz(e) {+function Gz(e) {for (var t = e.length, n = Array(t); --t >= 0;) n[t] = t;return n;}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/stack.js-function gpe(e, t) {+function Jpe(e, t) {return e[t];}-function _pe(e) {+function Ype(e) {let t = [];return t.key = e, t;}-function vpe() {- var e = CR([]), t = pz, n = fz, r = gpe;+function Xpe() {+ var e = tz([]), t = Gz, n = Wz, r = Jpe;function i(i) {- var a = Array.from(e.apply(this, arguments), _pe), o, s = a.length, c = -1, l;+ var a = Array.from(e.apply(this, arguments), Ype), o, s = a.length, c = -1, l;for (let e of i) for (o = 0, ++c; o < s; ++o) (a[o][c] = [0, +r(e, a[o].key, c, i)]).data = e;- for (o = 0, l = FR(t(a)); o < s; ++o) a[l[o]].index = o;+ for (o = 0, l = pz(t(a)); o < s; ++o) a[l[o]].index = o;return n(a, l), a;}return i.keys = function(t) {- return arguments.length ? (e = typeof t == "function" ? t : CR(Array.from(t)), i) : e;+ return arguments.length ? (e = typeof t == "function" ? t : tz(Array.from(t)), i) : e;}, i.value = function(e) {- return arguments.length ? (r = typeof e == "function" ? e : CR(+e), i) : r;+ return arguments.length ? (r = typeof e == "function" ? e : tz(+e), i) : r;}, i.order = function(e) {- return arguments.length ? (t = e == null ? pz : typeof e == "function" ? e : CR(Array.from(e)), i) : t;+ return arguments.length ? (t = e == null ? Gz : typeof e == "function" ? e : tz(Array.from(e)), i) : t;}, i.offset = function(e) {- return arguments.length ? (n = e ?? fz, i) : n;+ return arguments.length ? (n = e ?? Wz, i) : n;}, i;}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/expand.js-function ype(e, t) {+function Zpe(e, t) {if ((r = e.length) > 0) {for (var n, r, i = 0, a = e[0].length, o; i < a; ++i) {for (o = n = 0; n < r; ++n) o += e[n][i][1] || 0;if (o) for (n = 0; n < r; ++n) e[n][i][1] /= o;}- fz(e, t);+ Wz(e, t);}}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/silhouette.js-function bpe(e, t) {+function Qpe(e, t) {if ((i = e.length) > 0) {for (var n = 0, r = e[t[0]], i, a = r.length; n < a; ++n) {for (var o = 0, s = 0; o < i; ++o) s += e[o][n][1] || 0;r[n][1] += r[n][0] = -s / 2;}- fz(e, t);+ Wz(e, t);}}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/wiggle.js-function xpe(e, t) {+function $pe(e, t) {if (!(!((o = e.length) > 0) || !((a = (i = e[t[0]]).length) > 0))) {for (var n = 0, r = 1, i, a, o; r < a; ++r) {for (var s = 0, c = 0, l = 0; s < o; ++s) {@@ -48693,53 +50080,53 @@ function xpe(e, t) {}i[r - 1][1] += i[r - 1][0] = n, c && (n -= l / c);}- i[r - 1][1] += i[r - 1][0] = n, fz(e, t);+ i[r - 1][1] += i[r - 1][0] = n, Wz(e, t);}}//#endregion//#region node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs-function mz(e) {+function Kz(e) {return e === "__proto__";}//#endregion//#region node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs-var Spe = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;-function hz(e) {+var eme = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;+function qz(e) {switch (typeof e) {case "number":case "symbol": return !1;- case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : Spe.test(e);+ case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : eme.test(e);default: return !1;}}//#endregion//#region node_modules/es-toolkit/dist/compat/_internal/toKey.mjs-function gz(e) {+function Jz(e) {return typeof e == "string" || typeof e == "symbol" ? e : Object.is(e?.valueOf?.(), -0) ? "-0" : String(e);}//#endregion//#region node_modules/es-toolkit/dist/compat/predicate/isSymbol.mjs-function _z(e) {+function Yz(e) {return typeof e == "symbol" || e instanceof Symbol;}//#endregion//#region node_modules/es-toolkit/dist/compat/util/toString.mjs-function Cpe(e) {- return e == null ? "" : vz(e);+function tme(e) {+ return e == null ? "" : Xz(e);}-function vz(e) {+function Xz(e) {if (typeof e == "string") return e;- if (Array.isArray(e)) return e.map(vz).join(",");- if (_z(e)) return e.toString();+ if (Array.isArray(e)) return e.map(Xz).join(",");+ if (Yz(e)) return e.toString();let t = e + "";return t === "0" && Object.is(Number(e), -0) ? "-0" : t;}//#endregion//#region node_modules/es-toolkit/dist/compat/util/toPath.mjs-function yz(e) {- if (Array.isArray(e)) return e.map(gz);+function Zz(e) {+ if (Array.isArray(e)) return e.map(Jz);if (typeof e == "symbol") return [e];- e = Cpe(e);+ e = tme(e);let t = [], n = e.length;if (n === 0) return t;let r = 0, i = "", a = "", o = !1, s = !1, c = /^-?\d+(?:\.\d+)?$/;@@ -48767,100 +50154,100 @@ function yz(e) {}//#endregion//#region node_modules/es-toolkit/dist/compat/object/get.mjs-function bz(e, t, n) {+function Qz(e, t, n) {if (e == null) return n;switch (typeof t) {case "string": {- if (mz(t)) return n;+ if (Kz(t)) return n;let r = e[t];- return r === void 0 ? hz(t) && !Object.hasOwn(e, t) ? bz(e, yz(t), n) : n : r;+ return r === void 0 ? qz(t) && !Object.hasOwn(e, t) ? Qz(e, Zz(t), n) : n : r;}case "number":case "symbol": {- typeof t == "number" && (t = gz(t));+ typeof t == "number" && (t = Jz(t));let r = e[t];return r === void 0 ? n : r;}default: {- if (Array.isArray(t)) return wpe(e, t, n);- if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), mz(t)) return n;+ if (Array.isArray(t)) return nme(e, t, n);+ if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), Kz(t)) return n;let r = e[t];return r === void 0 ? n : r;}}}-function wpe(e, t, n) {+function nme(e, t, n) {if (t.length === 0) return n;let r = e;for (let e = 0; e < t.length; e++) {- if (r == null || mz(t[e])) return n;+ if (r == null || Kz(t[e])) return n;r = r[t[e]];}return r === void 0 ? n : r;}//#endregion//#region node_modules/recharts/es6/util/round.js-var Tpe = 4;-function xz(e) {- var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Tpe), n = Math.round(e * t) / t;+var rme = 4;+function $z(e) {+ var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : rme), n = Math.round(e * t) / t;return Object.is(n, -0) ? 0 : n;}-function Sz(e) {+function eB(e) {var t = [...arguments].slice(1);return e.reduce((e, n, r) => {var i = t[r - 1];- return typeof i == "string" ? e + i + n : i === void 0 ? e + n : e + xz(i) + n;+ return typeof i == "string" ? e + i + n : i === void 0 ? e + n : e + $z(i) + n;}, "");}//#endregion//#region node_modules/recharts/es6/util/DataUtils.js-var Cz = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, wz = (e) => typeof e == "number" && e != +e, Tz = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !wz(e), Ez = (e) => Z(e) || typeof e == "string", Epe = 0, Dz = (e) => {- var t = ++Epe;+var tB = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, nB = (e) => typeof e == "number" && e != +e, rB = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !nB(e), iB = (e) => Z(e) || typeof e == "string", ime = 0, aB = (e) => {+ var t = ++ime;return `${e || ""}${t}`;-}, Oz = function(e, t) {+}, oB = function(e, t) {var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, r = arguments.length > 3 && arguments[3] !== void 0 && arguments[3];if (!Z(e) && typeof e != "string") return n;var i;- if (Tz(e)) {+ if (rB(e)) {if (t == null) return n;var a = e.indexOf("%");i = t * parseFloat(e.slice(0, a)) / 100;} else i = +e;- return wz(i) && (i = n), r && t != null && i > t && (i = t), i;-}, kz = (e) => {+ return nB(i) && (i = n), r && t != null && i > t && (i = t), i;+}, sB = (e) => {if (!Array.isArray(e)) return !1;for (var t = e.length, n = {}, r = 0; r < t; r++) if (!n[String(e[r])]) n[String(e[r])] = !0;else return !0;return !1;};-function Az(e, t, n) {- return Z(e) && Z(t) ? xz(e + n * (t - e)) : t;+function cB(e, t, n) {+ return Z(e) && Z(t) ? $z(e + n * (t - e)) : t;}-function jz(e, t, n) {- if (!(!e || !e.length)) return e.find((e) => e && (typeof t == "function" ? t(e) : bz(e, t)) === n);+function lB(e, t, n) {+ if (!(!e || !e.length)) return e.find((e) => e && (typeof t == "function" ? t(e) : Qz(e, t)) === n);}-var Mz = (e) => e == null, Nz = (e) => Mz(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;-function Pz(e) {+var uB = (e) => e == null, dB = (e) => uB(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;+function fB(e) {return e != null;}-function Fz() {}+function pB() {}//#endregion//#region node_modules/recharts/es6/shape/Symbols.js-var Dpe = [+var ame = ["type","size","sizeType"];-function Iz() {- return Iz = Object.assign ? Object.assign.bind() : function(e) {+function mB() {+ return mB = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, Iz.apply(null, arguments);+ }, mB.apply(null, arguments);}-function Lz(e, t) {+function hB(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -48870,30 +50257,30 @@ function Lz(e, t) {}return n;}-function Rz(e) {+function gB(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? Lz(Object(n), !0).forEach(function(t) {- Ope(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Lz(Object(n)).forEach(function(t) {+ t % 2 ? hB(Object(n), !0).forEach(function(t) {+ ome(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : hB(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function Ope(e, t, n) {- return (t = kpe(t)) in e ? Object.defineProperty(e, t, {+function ome(e, t, n) {+ return (t = sme(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function kpe(e) {- var t = Ape(e, "string");+function sme(e) {+ var t = cme(e, "string");return typeof t == "symbol" ? t : t + "";}-function Ape(e, t) {+function cme(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -48903,16 +50290,16 @@ function Ape(e, t) {}return (t === "string" ? String : Number)(e);}-function jpe(e, t) {+function lme(e, t) {if (e == null) return {};- var n, r, i = Mpe(e, t);+ var n, r, i = ume(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function Mpe(e, t) {+function ume(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -48921,68 +50308,68 @@ function Mpe(e, t) {}return n;}-var zz = {- symbolCircle: UR,- symbolCross: Jfe,- symbolDiamond: Xfe,- symbolSquare: Zfe,- symbolStar: tpe,- symbolTriangle: npe,- symbolWye: ipe-}, Npe = Math.PI / 180, Ppe = (e) => zz[`symbol${Nz(e)}`] || UR, Fpe = (e, t, n) => {+var _B = {+ symbolCircle: xz,+ symbolCross: Epe,+ symbolDiamond: Ope,+ symbolSquare: kpe,+ symbolStar: Npe,+ symbolTriangle: Ppe,+ symbolWye: Ipe+}, dme = Math.PI / 180, fme = (e) => _B[`symbol${dB(e)}`] || xz, pme = (e, t, n) => {if (t === "area") return e;switch (n) {case "cross": return 5 * e * e / 9;case "diamond": return .5 * e * e / Math.sqrt(3);case "square": return e * e;case "star":- var r = 18 * Npe;+ var r = 18 * dme;return 1.25 * e * e * (Math.tan(r) - Math.tan(r * 2) * Math.tan(r) ** 2);case "triangle": return Math.sqrt(3) * e * e / 4;case "wye": return (21 - 10 * Math.sqrt(3)) * e * e / 8;default: return Math.PI * e * e / 4;}-}, Ipe = (e, t) => {- zz[`symbol${Nz(e)}`] = t;-}, Bz = (e) => {- var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = Rz(Rz({}, jpe(e, Dpe)), {}, {+}, mme = (e, t) => {+ _B[`symbol${dB(e)}`] = t;+}, vB = (e) => {+ var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = gB(gB({}, lme(e, ame)), {}, {type: t,size: n,sizeType: r}), a = "circle";typeof t == "string" && (a = t);var o = () => {- var e = Ppe(a), t = ape().type(e).size(Fpe(n, r, a))();+ var e = fme(a), t = Lpe().type(e).size(pme(n, r, a))();if (t !== null) return t;- }, { className: s, cx: c, cy: l } = i, u = _R(i);- return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ I.createElement("path", Iz({}, u, {- className: Jm("recharts-symbols", s),+ }, { className: s, cx: c, cy: l } = i, u = YR(i);+ return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ I.createElement("path", mB({}, u, {+ className: Xm("recharts-symbols", s),transform: `translate(${c}, ${l})`,d: o()})) : null;};-Bz.registerSymbol = Ipe;+vB.registerSymbol = mme;//#endregion//#region node_modules/recharts/es6/util/types.js-var Vz = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, Hz = (e, t) => {+var yB = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, bB = (e, t) => {if (!e || typeof e == "function" || typeof e == "boolean") return null;var n = e;if (/*#__PURE__*/ (0, I.isValidElement)(e) && (n = e.props), typeof n != "object" && typeof n != "function") return null;var r = {};return Object.keys(n).forEach((e) => {- fR(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));+ WR(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));}), r;-}, Lpe = (e, t, n) => (r) => (e(t, n, r), null), Uz = (e, t, n) => {+}, hme = (e, t, n) => (r) => (e(t, n, r), null), xB = (e, t, n) => {if (e === null || typeof e != "object" && typeof e != "function") return null;var r = null;return Object.keys(e).forEach((i) => {var a = e[i];- fR(i) && typeof a == "function" && (r ||= {}, r[i] = Lpe(a, t, n));+ WR(i) && typeof a == "function" && (r ||= {}, r[i] = hme(a, t, n));}), r;};//#endregion//#region node_modules/recharts/es6/util/resolveDefaultProps.js-function Wz(e, t) {+function SB(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -48992,30 +50379,30 @@ function Wz(e, t) {}return n;}-function Rpe(e) {+function gme(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? Wz(Object(n), !0).forEach(function(t) {- zpe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Wz(Object(n)).forEach(function(t) {+ t % 2 ? SB(Object(n), !0).forEach(function(t) {+ _me(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : SB(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function zpe(e, t, n) {- return (t = Bpe(t)) in e ? Object.defineProperty(e, t, {+function _me(e, t, n) {+ return (t = vme(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function Bpe(e) {- var t = Vpe(e, "string");+function vme(e) {+ var t = yme(e, "string");return typeof t == "symbol" ? t : t + "";}-function Vpe(e, t) {+function yme(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -49025,22 +50412,22 @@ function Vpe(e, t) {}return (t === "string" ? String : Number)(e);}-function Gz(e, t) {- var n = Rpe({}, e), r = t;+function CB(e, t) {+ var n = gme({}, e), r = t;return Object.keys(t).reduce((e, t) => (e[t] === void 0 && r[t] !== void 0 && (e[t] = r[t]), e), n);}//#endregion//#region node_modules/recharts/es6/component/DefaultLegendContent.js-function Kz() {- return Kz = Object.assign ? Object.assign.bind() : function(e) {+function wB() {+ return wB = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, Kz.apply(null, arguments);+ }, wB.apply(null, arguments);}-function qz(e, t) {+function TB(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -49050,30 +50437,30 @@ function qz(e, t) {}return n;}-function Jz(e) {+function EB(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? qz(Object(n), !0).forEach(function(t) {- Hpe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : qz(Object(n)).forEach(function(t) {+ t % 2 ? TB(Object(n), !0).forEach(function(t) {+ bme(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : TB(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function Hpe(e, t, n) {- return (t = Upe(t)) in e ? Object.defineProperty(e, t, {+function bme(e, t, n) {+ return (t = xme(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function Upe(e) {- var t = Wpe(e, "string");+function xme(e) {+ var t = Sme(e, "string");return typeof t == "symbol" ? t : t + "";}-function Wpe(e, t) {+function Sme(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -49083,7 +50470,7 @@ function Wpe(e, t) {}return (t === "string" ? String : Number)(e);}-var Yz = 32, Gpe = {+var DB = 32, Cme = {align: "center",iconSize: 14,inactiveColor: "#ccc",@@ -49091,20 +50478,20 @@ var Yz = 32, Gpe = {verticalAlign: "middle",labelStyle: {}};-function Kpe(e) {+function wme(e) {if (typeof e == "object" && e && "strokeDasharray" in e) return String(e.strokeDasharray);}-function qpe(e) {- var { data: t, iconType: n, inactiveColor: r } = e, i = Yz / 2, a = Yz / 6, o = Yz / 3, s = t.inactive ? r : t.color, c = n ?? t.type;+function Tme(e) {+ var { data: t, iconType: n, inactiveColor: r } = e, i = DB / 2, a = DB / 6, o = DB / 3, s = t.inactive ? r : t.color, c = n ?? t.type;if (c === "none") return null;if (c === "plainline") return /*#__PURE__*/ I.createElement("line", {strokeWidth: 4,fill: "none",stroke: s,- strokeDasharray: Kpe(t.payload),+ strokeDasharray: wme(t.payload),x1: 0,y1: i,- x2: Yz,+ x2: DB,y2: i,className: "recharts-legend-icon"});@@ -49114,35 +50501,35 @@ function qpe(e) {stroke: s,d: `M0,${i}h${o}A${a},${a},0,1,1,${2 * o},${i}- H${Yz}M${2 * o},${i}+ H${DB}M${2 * o},${i}A${a},${a},0,1,1,${o},${i}`,className: "recharts-legend-icon"});if (c === "rect") return /*#__PURE__*/ I.createElement("path", {stroke: "none",fill: s,- d: `M0,${Yz / 8}h${Yz}v${Yz * 3 / 4}h${-Yz}z`,+ d: `M0,${DB / 8}h${DB}v${DB * 3 / 4}h${-DB}z`,className: "recharts-legend-icon"});if (/*#__PURE__*/ I.isValidElement(t.legendIcon)) {- var l = Jz({}, t);+ var l = EB({}, t);return delete l.legendIcon, /*#__PURE__*/ I.cloneElement(t.legendIcon, l);}- return /*#__PURE__*/ I.createElement(Bz, {+ return /*#__PURE__*/ I.createElement(vB, {fill: s,cx: i,cy: i,- size: Yz,+ size: DB,sizeType: "diameter",type: c});}-function Jpe(e) {+function Eme(e) {var { payload: t, iconSize: n, layout: r, formatter: i, inactiveColor: a, iconType: o, labelStyle: s } = e, c = {x: 0,y: 0,- width: Yz,- height: Yz+ width: DB,+ height: DB}, l = {display: r === "horizontal" ? "inline-block" : "block",marginRight: 10@@ -49152,26 +50539,26 @@ function Jpe(e) {marginRight: 4};return t.map((t, r) => {- var d = t.formatter || i, f = Jm({+ var d = t.formatter || i, f = Xm({"recharts-legend-item": !0,[`legend-item-${r}`]: !0,inactive: t.inactive});if (t.type === "none") return null;- var p = typeof s == "object" ? Jz({}, s) : {};+ var p = typeof s == "object" ? EB({}, s) : {};p.color = t.inactive ? a : p.color || t.color;var m = d ? d(t.value, t, r) : t.value;- return /*#__PURE__*/ I.createElement("li", Kz({+ return /*#__PURE__*/ I.createElement("li", wB({className: f,style: l,key: `legend-item-${r}`- }, Uz(e, t, r)), /*#__PURE__*/ I.createElement(yR, {+ }, xB(e, t, r)), /*#__PURE__*/ I.createElement(ZR, {width: n,height: n,viewBox: c,style: u,"aria-label": `${m} legend icon`- }, /*#__PURE__*/ I.createElement(qpe, {+ }, /*#__PURE__*/ I.createElement(Tme, {data: t,iconType: o,inactiveColor: a@@ -49181,8 +50568,8 @@ function Jpe(e) {}, m));});}-var Ype = (e) => {- var t = Gz(e, Gpe), { payload: n, layout: r, align: i } = t;+var Dme = (e) => {+ var t = CB(e, Cme), { payload: n, layout: r, align: i } = t;if (!n || !n.length) return null;var a = {padding: 0,@@ -49192,11 +50579,11 @@ var Ype = (e) => {return /*#__PURE__*/ I.createElement("ul", {className: "recharts-default-legend",style: a- }, /*#__PURE__*/ I.createElement(Jpe, Kz({}, t, { payload: n })));+ }, /*#__PURE__*/ I.createElement(Eme, wB({}, t, { payload: n })));};//#endregion//#region node_modules/es-toolkit/dist/array/uniqBy.mjs-function Xpe(e, t) {+function Ome(e, t) {let n = /* @__PURE__ */ new Map();for (let r = 0; r < e.length; r++) {let i = e[r], a = t(i, r, e);@@ -49206,77 +50593,77 @@ function Xpe(e, t) {}//#endregion//#region node_modules/es-toolkit/dist/function/ary.mjs-function Zpe(e, t) {+function kme(e, t) {return function(...n) {return e.apply(this, n.slice(0, t));};}//#endregion//#region node_modules/es-toolkit/dist/function/identity.mjs-function Xz(e) {+function OB(e) {return e;}//#endregion//#region node_modules/es-toolkit/dist/predicate/isLength.mjs-function Qpe(e) {+function Ame(e) {return Number.isSafeInteger(e) && e >= 0;}//#endregion//#region node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs-function Zz(e) {- return e != null && typeof e != "function" && Qpe(e.length);+function kB(e) {+ return e != null && typeof e != "function" && Ame(e.length);}//#endregion//#region node_modules/es-toolkit/dist/compat/object/property.mjs-function $pe(e) {+function jme(e) {return function(t) {- return bz(t, e);+ return Qz(t, e);};}//#endregion//#region node_modules/es-toolkit/dist/predicate/isPrimitive.mjs-function Qz(e) {+function AB(e) {return e == null || typeof e != "object" && typeof e != "function";}//#endregion//#region node_modules/es-toolkit/dist/predicate/isTypedArray.mjs-function eme(e) {+function Mme(e) {return ArrayBuffer.isView(e) && !(e instanceof DataView);}//#endregion//#region node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs-function tme(e) {+function Nme(e) {return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));}//#endregion//#region node_modules/es-toolkit/dist/compat/_internal/getTag.mjs-function $z(e) {+function jB(e) {return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);}//#endregion//#region node_modules/es-toolkit/dist/compat/_internal/tags.mjs-var nme = "[object RegExp]", eB = "[object String]", tB = "[object Number]", nB = "[object Boolean]", rB = "[object Arguments]", rme = "[object Symbol]", ime = "[object Date]", ame = "[object Map]", ome = "[object Set]", sme = "[object Array]", cme = "[object ArrayBuffer]", lme = "[object Object]", ume = "[object DataView]", dme = "[object Uint8Array]", fme = "[object Uint8ClampedArray]", pme = "[object Uint16Array]", mme = "[object Uint32Array]", hme = "[object Int8Array]", gme = "[object Int16Array]", _me = "[object Int32Array]", vme = "[object Float32Array]", yme = "[object Float64Array]", iB = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {+var Pme = "[object RegExp]", MB = "[object String]", NB = "[object Number]", PB = "[object Boolean]", FB = "[object Arguments]", Fme = "[object Symbol]", Ime = "[object Date]", Lme = "[object Map]", Rme = "[object Set]", zme = "[object Array]", Bme = "[object ArrayBuffer]", Vme = "[object Object]", Hme = "[object DataView]", Ume = "[object Uint8Array]", Wme = "[object Uint8ClampedArray]", Gme = "[object Uint16Array]", Kme = "[object Uint32Array]", qme = "[object Int8Array]", Jme = "[object Int16Array]", Yme = "[object Int32Array]", Xme = "[object Float32Array]", Zme = "[object Float64Array]", IB = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {return this;})();//#endregion//#region node_modules/es-toolkit/dist/predicate/isBuffer.mjs-function bme(e) {- return iB.Buffer !== void 0 && iB.Buffer.isBuffer(e);+function Qme(e) {+ return IB.Buffer !== void 0 && IB.Buffer.isBuffer(e);}//#endregion//#region node_modules/es-toolkit/dist/object/cloneDeepWith.mjs-function xme(e, t) {- return aB(e, void 0, e, /* @__PURE__ */ new Map(), t);+function $me(e, t) {+ return LB(e, void 0, e, /* @__PURE__ */ new Map(), t);}-function aB(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {+function LB(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {let a = i?.(e, t, n, r);if (a !== void 0) return a;- if (Qz(e)) return e;+ if (AB(e)) return e;if (r.has(e)) return r.get(e);if (Array.isArray(e)) {let t = Array(e.length);r.set(e, t);- for (let a = 0; a < e.length; a++) t[a] = aB(e[a], a, n, r, i);+ for (let a = 0; a < e.length; a++) t[a] = LB(e[a], a, n, r, i);return Object.hasOwn(e, "index") && (t.index = e.index), Object.hasOwn(e, "input") && (t.input = e.input), t;}if (e instanceof Date) return new Date(e.getTime());@@ -49287,132 +50674,132 @@ function aB(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {if (e instanceof Map) {let t = /* @__PURE__ */ new Map();r.set(e, t);- for (let [a, o] of e) t.set(a, aB(o, a, n, r, i));+ for (let [a, o] of e) t.set(a, LB(o, a, n, r, i));return t;}if (e instanceof Set) {let t = /* @__PURE__ */ new Set();r.set(e, t);- for (let a of e) t.add(aB(a, void 0, n, r, i));+ for (let a of e) t.add(LB(a, void 0, n, r, i));return t;}- if (bme(e)) return e.subarray();- if (eme(e)) {+ if (Qme(e)) return e.subarray();+ if (Mme(e)) {let t = new (Object.getPrototypeOf(e)).constructor(e.length);r.set(e, t);- for (let a = 0; a < e.length; a++) t[a] = aB(e[a], a, n, r, i);+ for (let a = 0; a < e.length; a++) t[a] = LB(e[a], a, n, r, i);return t;}if (e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);if (e instanceof DataView) {let t = new DataView(e.buffer.slice(0), e.byteOffset, e.byteLength);- return r.set(e, t), oB(t, e, n, r, i), t;+ return r.set(e, t), RB(t, e, n, r, i), t;}if (typeof File < "u" && e instanceof File) {let t = new File([e], e.name, { type: e.type });- return r.set(e, t), oB(t, e, n, r, i), t;+ return r.set(e, t), RB(t, e, n, r, i), t;}if (typeof Blob < "u" && e instanceof Blob) {let t = new Blob([e], { type: e.type });- return r.set(e, t), oB(t, e, n, r, i), t;+ return r.set(e, t), RB(t, e, n, r, i), t;}if (e instanceof Error) {let t = structuredClone(e);- return r.set(e, t), t.message = e.message, t.name = e.name, t.stack = e.stack, t.cause = e.cause, t.constructor = e.constructor, oB(t, e, n, r, i), t;+ return r.set(e, t), t.message = e.message, t.name = e.name, t.stack = e.stack, t.cause = e.cause, t.constructor = e.constructor, RB(t, e, n, r, i), t;}if (e instanceof Boolean) {let t = new Boolean(e.valueOf());- return r.set(e, t), oB(t, e, n, r, i), t;+ return r.set(e, t), RB(t, e, n, r, i), t;}if (e instanceof Number) {let t = new Number(e.valueOf());- return r.set(e, t), oB(t, e, n, r, i), t;+ return r.set(e, t), RB(t, e, n, r, i), t;}if (e instanceof String) {let t = new String(e.valueOf());- return r.set(e, t), oB(t, e, n, r, i), t;+ return r.set(e, t), RB(t, e, n, r, i), t;}- if (typeof e == "object" && Sme(e)) {+ if (typeof e == "object" && ehe(e)) {let t = Object.create(Object.getPrototypeOf(e));- return r.set(e, t), oB(t, e, n, r, i), t;+ return r.set(e, t), RB(t, e, n, r, i), t;}return e;}-function oB(e, t, n = e, r, i) {- let a = [...Object.keys(t), ...tme(t)];+function RB(e, t, n = e, r, i) {+ let a = [...Object.keys(t), ...Nme(t)];for (let o = 0; o < a.length; o++) {let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);- (c == null || c.writable) && (e[s] = aB(t[s], s, n, r, i));- }-}-function Sme(e) {- switch ($z(e)) {- case rB:- case sme:- case cme:- case ume:- case nB:- case ime:- case vme:- case yme:- case hme:- case gme:- case _me:- case ame:- case tB:- case lme:- case nme:- case ome:- case eB:- case rme:- case dme:- case fme:- case pme:- case mme: return !0;+ (c == null || c.writable) && (e[s] = LB(t[s], s, n, r, i));+ }+}+function ehe(e) {+ switch (jB(e)) {+ case FB:+ case zme:+ case Bme:+ case Hme:+ case PB:+ case Ime:+ case Xme:+ case Zme:+ case qme:+ case Jme:+ case Yme:+ case Lme:+ case NB:+ case Vme:+ case Pme:+ case Rme:+ case MB:+ case Fme:+ case Ume:+ case Wme:+ case Gme:+ case Kme: return !0;default: return !1;}}//#endregion//#region node_modules/es-toolkit/dist/object/cloneDeep.mjs-function Cme(e) {- return aB(e, void 0, e, /* @__PURE__ */ new Map(), void 0);+function the(e) {+ return LB(e, void 0, e, /* @__PURE__ */ new Map(), void 0);}//#endregion//#region node_modules/es-toolkit/dist/compat/util/eq.mjs-function sB(e, t) {+function zB(e, t) {return e === t || Number.isNaN(e) && Number.isNaN(t);}//#endregion//#region node_modules/es-toolkit/dist/compat/predicate/isObject.mjs-function cB(e) {+function BB(e) {return e !== null && (typeof e == "object" || typeof e == "function");}//#endregion//#region node_modules/es-toolkit/dist/compat/predicate/isMatchWith.mjs-function lB(e, t, n) {- return typeof n == "function" ? uB(e, t, function e(t, r, i, a, o, s) {+function VB(e, t, n) {+ return typeof n == "function" ? HB(e, t, function e(t, r, i, a, o, s) {let c = n(t, r, i, a, o, s);- return c === void 0 ? uB(t, r, e, s, !1) : !!c;- }, /* @__PURE__ */ new Map(), !0) : lB(e, t, () => void 0);+ return c === void 0 ? HB(t, r, e, s, !1) : !!c;+ }, /* @__PURE__ */ new Map(), !0) : VB(e, t, () => void 0);}-function uB(e, t, n, r, i = !1) {+function HB(e, t, n, r, i = !1) {if (t === e) return !0;switch (typeof t) {- case "object": return wme(e, t, n, r, i);- case "function": return Object.keys(t).length > 0 ? uB(e, { ...t }, n, r, i) : sB(e, t);- default: return cB(e) && i ? typeof t != "string" || t === "" : sB(e, t);+ case "object": return nhe(e, t, n, r, i);+ case "function": return Object.keys(t).length > 0 ? HB(e, { ...t }, n, r, i) : zB(e, t);+ default: return BB(e) && i ? typeof t != "string" || t === "" : zB(e, t);}}-function wme(e, t, n, r, i = !1) {+function nhe(e, t, n, r, i = !1) {if (t == null) return !0;- if (Array.isArray(t)) return dB(e, t, n, r);- if (t instanceof Map) return Tme(e, t, n, r);- if (t instanceof Set) return Eme(e, t, n, r);+ if (Array.isArray(t)) return UB(e, t, n, r);+ if (t instanceof Map) return rhe(e, t, n, r);+ if (t instanceof Set) return ihe(e, t, n, r);let a = Object.keys(t);if (e == null) return i && a.length === 0;- if (i) Qz(e) && (e = Object(e));+ if (i) AB(e) && (e = Object(e));else {- let t = $z(e);+ let t = jB(e);if (t !== "[object Object]" && t !== "[object Arguments]") return !1;}if (a.length === 0) return !0;@@ -49428,13 +50815,13 @@ function wme(e, t, n, r, i = !1) {r?.delete(t);}}-function Tme(e, t, n, r) {+function rhe(e, t, n, r) {if (t.size === 0) return !0;if (!(e instanceof Map)) return !1;for (let [i, a] of t.entries()) if (n(e.get(i), a, i, e, t, r) === !1) return !1;return !0;}-function dB(e, t, n, r) {+function UB(e, t, n, r) {if (t.length === 0) return !0;if (!Array.isArray(e)) return !1;let i = /* @__PURE__ */ new Set();@@ -49452,40 +50839,40 @@ function dB(e, t, n, r) {}return !0;}-function Eme(e, t, n, r) {- return t.size === 0 || e instanceof Set && dB([...e], [...t], n, r);+function ihe(e, t, n, r) {+ return t.size === 0 || e instanceof Set && UB([...e], [...t], n, r);}//#endregion//#region node_modules/es-toolkit/dist/compat/predicate/isMatch.mjs-function fB(e, t) {- return lB(e, t, () => void 0);+function WB(e, t) {+ return VB(e, t, () => void 0);}//#endregion//#region node_modules/es-toolkit/dist/compat/predicate/matches.mjs-function Dme(e) {- return e = Cme(e), (t) => fB(t, e);+function ahe(e) {+ return e = the(e), (t) => WB(t, e);}//#endregion//#region node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs-function Ome(e, t) {- return xme(e, (n, r, i, a) => {+function ohe(e, t) {+ return $me(e, (n, r, i, a) => {let o = t?.(n, r, i, a);if (o !== void 0) return o;if (typeof e == "object") {- if ($z(e) === "[object Object]" && typeof e.constructor != "function") {+ if (jB(e) === "[object Object]" && typeof e.constructor != "function") {let t = {};- return a.set(e, t), oB(t, e, i, a), t;+ return a.set(e, t), RB(t, e, i, a), t;}switch (Object.prototype.toString.call(e)) {- case tB:- case eB:- case nB: {+ case NB:+ case MB:+ case PB: {let t = new e.constructor(e?.valueOf());- return oB(t, e), t;+ return RB(t, e), t;}- case rB: {+ case FB: {let t = {};- return oB(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;+ return RB(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;}default: return;}@@ -49494,80 +50881,80 @@ function Ome(e, t) {}//#endregion//#region node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs-function kme(e) {- return Ome(e);+function she(e) {+ return ohe(e);}//#endregion//#region node_modules/es-toolkit/dist/compat/_internal/isIndex.mjs-var Ame = /^(?:0|[1-9]\d*)$/;-function pB(e, t = 2 ** 53 - 1) {+var che = /^(?:0|[1-9]\d*)$/;+function GB(e, t = 2 ** 53 - 1) {switch (typeof e) {case "number": return Number.isInteger(e) && e >= 0 && e < t;case "symbol": return !1;- case "string": return Ame.test(e);+ case "string": return che.test(e);}}//#endregion//#region node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs-function jme(e) {- return typeof e == "object" && !!e && $z(e) === "[object Arguments]";+function lhe(e) {+ return typeof e == "object" && !!e && jB(e) === "[object Arguments]";}//#endregion//#region node_modules/es-toolkit/dist/compat/object/has.mjs-function Mme(e, t) {+function uhe(e, t) {let n;- if (n = Array.isArray(t) ? t : typeof t == "string" && hz(t) && !(t in Object(e)) ? yz(t) : [t], n.length === 0) return !1;+ if (n = Array.isArray(t) ? t : typeof t == "string" && qz(t) && !(t in Object(e)) ? Zz(t) : [t], n.length === 0) return !1;let r = e;for (let e = 0; e < n.length; e++) {- let t = gz(n[e]);- if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || jme(r)) && pB(t) && Number(t) < r.length)) return !1;+ let t = Jz(n[e]);+ if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || lhe(r)) && GB(t) && Number(t) < r.length)) return !1;r = r[t];}return !0;}//#endregion//#region node_modules/es-toolkit/dist/compat/predicate/matchesProperty.mjs-function Nme(e, t) {+function dhe(e, t) {switch (typeof e) {case "object":Object.is(e?.valueOf(), -0) && (e = "-0");break;- case "number": e = gz(e);+ case "number": e = Jz(e);}- return t = kme(t), function(n) {- let r = bz(n, e);- return r === void 0 ? Mme(n, e) : t === void 0 ? r === void 0 : fB(r, t);+ return t = she(t), function(n) {+ let r = Qz(n, e);+ return r === void 0 ? uhe(n, e) : t === void 0 ? r === void 0 : WB(r, t);};}//#endregion//#region node_modules/es-toolkit/dist/compat/util/iteratee.mjs-function mB(e) {- if (e == null) return Xz;+function KB(e) {+ if (e == null) return OB;switch (typeof e) {case "function": return e;- case "object": return Array.isArray(e) && e.length === 2 ? Nme(e[0], e[1]) : Dme(e);- default: return $pe(e);+ case "object": return Array.isArray(e) && e.length === 2 ? dhe(e[0], e[1]) : ahe(e);+ default: return jme(e);}}//#endregion//#region node_modules/es-toolkit/dist/compat/_internal/normalizeZero.mjs-function Pme(e) {+function fhe(e) {return e === 0 ? 0 : e;}//#endregion//#region node_modules/es-toolkit/dist/compat/array/uniqBy.mjs-function hB(e, t = Xz) {- return Zz(e) ? Xpe(Array.from(e), Zpe(mB(t), 1)).map(Pme) : [];+function qB(e, t = OB) {+ return kB(e) ? Ome(Array.from(e), kme(KB(t), 1)).map(fhe) : [];}//#endregion//#region node_modules/recharts/es6/util/payload/getUniqPayload.js-function gB(e, t, n) {- return t === !0 ? hB(e, n) : typeof t == "function" ? hB(e, t) : e;+function JB(e, t, n) {+ return t === !0 ? qB(e, n) : typeof t == "function" ? qB(e, t) : e;}//#endregion//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js-var Fme = /* @__PURE__ */ F(((e) => {- var t = oe(), n = Sh();+var phe = /* @__PURE__ */ F(((e) => {+ var t = ce(), n = wh();function r(e, t) {return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;}@@ -49611,60 +50998,60 @@ var Fme = /* @__PURE__ */ F(((e) => {f.hasValue = !0, f.value = p;}, [p]), l(p), p;};-})), Ime = /* @__PURE__ */ F(((e, t) => {- t.exports = Fme();-})), _B = /*#__PURE__*/ (0, I.createContext)(null), Lme = Ime(), Rme = (e) => e, vB = () => {- var e = (0, I.useContext)(_B);- return e ? e.store.dispatch : Rme;-}, yB = () => {}, zme = () => yB, Bme = (e, t) => e === t;+})), mhe = /* @__PURE__ */ F(((e, t) => {+ t.exports = phe();+})), YB = /*#__PURE__*/ (0, I.createContext)(null), hhe = mhe(), ghe = (e) => e, XB = () => {+ var e = (0, I.useContext)(YB);+ return e ? e.store.dispatch : ghe;+}, ZB = () => {}, _he = () => ZB, vhe = (e, t) => e === t;function Q(e) {- var t = (0, I.useContext)(_B), n = (0, I.useMemo)(() => t ? (t) => {+ var t = (0, I.useContext)(YB), n = (0, I.useMemo)(() => t ? (t) => {if (t != null) return e(t);- } : yB, [t, e]);- return (0, Lme.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : zme, t ? t.store.getState : yB, t ? t.store.getState : yB, n, Bme);+ } : ZB, [t, e]);+ return (0, hhe.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : _he, t ? t.store.getState : ZB, t ? t.store.getState : ZB, n, vhe);}//#endregion//#region node_modules/reselect/dist/reselect.mjs-function Vme(e, t = `expected a function, instead received ${typeof e}`) {+function yhe(e, t = `expected a function, instead received ${typeof e}`) {if (typeof e != "function") throw TypeError(t);}-function Hme(e, t = `expected an object, instead received ${typeof e}`) {+function bhe(e, t = `expected an object, instead received ${typeof e}`) {if (typeof e != "object") throw TypeError(t);}-function Ume(e, t = "expected all items to be functions, instead received the following types: ") {+function xhe(e, t = "expected all items to be functions, instead received the following types: ") {if (!e.every((e) => typeof e == "function")) {let n = e.map((e) => typeof e == "function" ? `function ${e.name || "unnamed"}()` : typeof e).join(", ");throw TypeError(`${t}[${n}]`);}}-var bB = (e) => Array.isArray(e) ? e : [e];-function Wme(e) {+var QB = (e) => Array.isArray(e) ? e : [e];+function She(e) {let t = Array.isArray(e[0]) ? e[0] : e;- return Ume(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;+ return xhe(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;}-function Gme(e, t) {+function Che(e, t) {let n = [], { length: r } = e;for (let i = 0; i < r; i++) n.push(e[i].apply(null, t));return n;}-var Kme = class {+var whe = class {constructor(e) {this.value = e;}deref() {return this.value;}-}, qme = typeof WeakRef < "u" ? WeakRef : Kme, Jme = 0, xB = 1;-function SB() {+}, The = typeof WeakRef < "u" ? WeakRef : whe, Ehe = 0, $B = 1;+function eV() {return {- s: Jme,+ s: Ehe,v: void 0,o: null,p: null};}-function CB(e, t = {}) {- let n = SB(), { resultEqualityCheck: r } = t, i, a = 0;+function tV(e, t = {}) {+ let n = eV(), { resultEqualityCheck: r } = t, i, a = 0;function o() {let t = n, { length: o } = arguments;for (let e = 0, n = o; e < n; e++) {@@ -49673,43 +51060,43 @@ function CB(e, t = {}) {let e = t.o;e === null && (t.o = e = /* @__PURE__ */ new WeakMap());let r = e.get(n);- r === void 0 ? (t = SB(), e.set(n, t)) : t = r;+ r === void 0 ? (t = eV(), e.set(n, t)) : t = r;} else {let e = t.p;e === null && (t.p = e = /* @__PURE__ */ new Map());let r = e.get(n);- r === void 0 ? (t = SB(), e.set(n, t)) : t = r;+ r === void 0 ? (t = eV(), e.set(n, t)) : t = r;}}let s = t, c;- if (t.s === xB) c = t.v;+ if (t.s === $B) c = t.v;else if (c = e.apply(null, arguments), a++, r) {let e = i?.deref?.() ?? i;- e != null && r(e, c) && (c = e, a !== 0 && a--), i = typeof c == "object" && c || typeof c == "function" ? new qme(c) : c;+ e != null && r(e, c) && (c = e, a !== 0 && a--), i = typeof c == "object" && c || typeof c == "function" ? new The(c) : c;}- return s.s = xB, s.v = c, c;+ return s.s = $B, s.v = c, c;}return o.clearCache = () => {- n = SB(), o.resetResultsCount();+ n = eV(), o.resetResultsCount();}, o.resultsCount = () => a, o.resetResultsCount = () => {a = 0;}, o;}-function Yme(e, ...t) {+function Dhe(e, ...t) {let n = typeof e == "function" ? {memoize: e,memoizeOptions: t} : e, r = (...e) => {let t = 0, r = 0, i, a = {}, o = e.pop();- typeof o == "object" && (a = o, o = e.pop()), Vme(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);- let { memoize: s, memoizeOptions: c = [], argsMemoize: l = CB, argsMemoizeOptions: u = [], devModeChecks: d = {} } = {+ typeof o == "object" && (a = o, o = e.pop()), yhe(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);+ let { memoize: s, memoizeOptions: c = [], argsMemoize: l = tV, argsMemoizeOptions: u = [], devModeChecks: d = {} } = {...n,...a- }, f = bB(c), p = bB(u), m = Wme(e), h = s(function() {+ }, f = QB(c), p = QB(u), m = She(e), h = s(function() {return t++, o.apply(null, arguments);}, ...f), g = l(function() {r++;- let e = Gme(m, arguments);+ let e = Che(m, arguments);return i = h.apply(null, e), i;}, ...p);return Object.assign(g, {@@ -49731,14 +51118,14 @@ function Yme(e, ...t) {};return Object.assign(r, { withTypes: () => r }), r;}-var $ = /* @__PURE__ */ Yme(CB), Xme = Object.assign((e, t = $) => {- Hme(e, `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);+var $ = /* @__PURE__ */ Dhe(tV), nV = Object.assign((e, t = $) => {+ bhe(e, `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let n = Object.keys(e);return t(n.map((t) => e[t]), (...e) => e.reduce((e, t, r) => (e[n[r]] = t, e), {}));-}, { withTypes: () => Xme });+}, { withTypes: () => nV });//#endregion//#region node_modules/es-toolkit/dist/array/flatten.mjs-function Zme(e, t = 1) {+function rV(e, t = 1) {let n = [], r = Math.floor(t), i = (e, t) => {for (let a = 0; a < e.length; a++) {let o = e[a];@@ -49749,17 +51136,17 @@ function Zme(e, t = 1) {}//#endregion//#region node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.mjs-function wB(e, t, n) {- return cB(n) && (typeof t == "number" && Zz(n) && pB(t) && t < n.length || typeof t == "string" && t in n) ? sB(n[t], e) : !1;+function iV(e, t, n) {+ return BB(n) && (typeof t == "number" && kB(n) && GB(t) && t < n.length || typeof t == "string" && t in n) ? zB(n[t], e) : !1;}//#endregion//#region node_modules/es-toolkit/dist/compat/_internal/compareValues.mjs-function TB(e) {+function aV(e) {return typeof e == "symbol" ? 1 : e === null ? 2 : e === void 0 ? 3 : e === e ? 0 : 4;}-var Qme = (e, t, n) => {+var oV = (e, t, n) => {if (e !== t) {- let r = TB(e), i = TB(t);+ let r = aV(e), i = aV(t);if (r === i && r === 0) {if (e < t) return n === "desc" ? 1 : -1;if (e > t) return n === "desc" ? -1 : 1;@@ -49767,15 +51154,15 @@ var Qme = (e, t, n) => {return n === "desc" ? i - r : r - i;}return 0;-}, $me = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ehe = /^\w*$/;-function the(e, t) {- return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || _z(e) ? !0 : typeof e == "string" && (ehe.test(e) || !$me.test(e)) || t != null && Object.hasOwn(t, e);+}, sV = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, cV = /^\w*$/;+function lV(e, t) {+ return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || Yz(e) ? !0 : typeof e == "string" && (cV.test(e) || !sV.test(e)) || t != null && Object.hasOwn(t, e);}//#endregion//#region node_modules/es-toolkit/dist/compat/array/orderBy.mjs-function nhe(e, t, n, r) {+function uV(e, t, n, r) {if (e == null) return [];- n = r ? void 0 : n, Array.isArray(e) || (e = Zz(e) ? Array.from(e) : Object.values(e)), Array.isArray(t) || (t = t == null ? [null] : [t]), t.length === 0 && (t = [null]), Array.isArray(n) || (n = n == null ? [] : [n]), n = n.map((e) => String(e));+ n = r ? void 0 : n, Array.isArray(e) || (e = kB(e) ? Array.from(e) : Object.values(e)), Array.isArray(t) || (t = t == null ? [null] : [t]), t.length === 0 && (t = [null]), Array.isArray(n) || (n = n == null ? [] : [n]), n = n.map((e) => String(e));let i = (e, t) => {let n = e, r = 0;for (; r < t.length && n != null; ++r) n = n[t[r]];@@ -49783,16 +51170,16 @@ function nhe(e, t, n, r) {}, a = (e, t) => {if (e == null) return t;if (t != null) return typeof e == "object" && "key" in e ? Object.hasOwn(t, e.key) ? t[e.key] : i(t, e.path) : typeof e == "function" ? e(t) : Array.isArray(e) ? i(t, e) : t[e];- }, o = t.map((e) => (Array.isArray(e) && e.length === 1 && (e = e[0]), e == null || typeof e == "function" || Array.isArray(e) || the(e) ? e : {+ }, o = t.map((e) => (Array.isArray(e) && e.length === 1 && (e = e[0]), e == null || typeof e == "function" || Array.isArray(e) || lV(e) ? e : {key: e,- path: yz(e)+ path: Zz(e)}));return e.map((e) => ({original: e,criteria: o.map((t) => a(t, e))})).slice().sort((e, t) => {for (let r = 0; r < o.length; r++) {- let i = Qme(e.criteria[r], t.criteria[r], n[r]);+ let i = oV(e.criteria[r], t.criteria[r], n[r]);if (i !== 0) return i;}return 0;@@ -49800,25 +51187,25 @@ function nhe(e, t, n, r) {}//#endregion//#region node_modules/es-toolkit/dist/compat/array/sortBy.mjs-function EB(e, ...t) {+function dV(e, ...t) {let n = t.length;- return n > 1 && wB(e, t[0], t[1]) ? t = [] : n > 2 && wB(t[0], t[1], t[2]) && (t = [t[0]]), nhe(e, Zme(t), ["asc"]);+ return n > 1 && iV(e, t[0], t[1]) ? t = [] : n > 2 && iV(t[0], t[1], t[2]) && (t = [t[0]]), uV(e, rV(t), ["asc"]);}//#endregion//#region node_modules/recharts/es6/state/selectors/legendSelectors.js-var DB = (e) => e.legend.settings, rhe = (e) => e.legend.size, ihe = $([(e) => e.legend.payload, DB], (e, t) => {+var fV = (e) => e.legend.settings, pV = (e) => e.legend.size, mV = $([(e) => e.legend.payload, fV], (e, t) => {var { itemSorter: n } = t, r = e.flat(1);- return n ? EB(r, n) : r;+ return n ? dV(r, n) : r;});//#endregion//#region node_modules/recharts/es6/context/legendPayloadContext.js-function ahe() {- return Q(ihe);+function hV() {+ return Q(mV);}//#endregion//#region node_modules/recharts/es6/util/useElementOffset.js-var OB = 1;-function kB() {+var gV = 1;+function _V() {var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], [t, n] = (0, I.useState)({height: 0,left: 0,@@ -49833,7 +51220,7 @@ function kB() {top: r.top,width: r.width};- (Math.abs(i.height - t.height) > OB || Math.abs(i.left - t.left) > OB || Math.abs(i.top - t.top) > OB || Math.abs(i.width - t.width) > OB) && n({+ (Math.abs(i.height - t.height) > gV || Math.abs(i.left - t.left) > gV || Math.abs(i.top - t.top) > gV || Math.abs(i.width - t.width) > gV) && n({height: i.height,left: i.left,top: i.top,@@ -49850,26 +51237,26 @@ function kB() {}//#endregion//#region node_modules/redux/dist/redux.mjs-function AB(e) {+function vV(e) {return `Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;}-var jB = typeof Symbol == "function" && Symbol.observable || "@@observable", MB = () => Math.random().toString(36).substring(7).split("").join("."), NB = {- INIT: `@@redux/INIT${/* @__PURE__ */ MB()}`,- REPLACE: `@@redux/REPLACE${/* @__PURE__ */ MB()}`,- PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${MB()}`+var yV = typeof Symbol == "function" && Symbol.observable || "@@observable", bV = () => Math.random().toString(36).substring(7).split("").join("."), xV = {+ INIT: `@@redux/INIT${/* @__PURE__ */ bV()}`,+ REPLACE: `@@redux/REPLACE${/* @__PURE__ */ bV()}`,+ PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${bV()}`};-function PB(e) {+function SV(e) {if (typeof e != "object" || !e) return !1;let t = e;for (; Object.getPrototypeOf(t) !== null;) t = Object.getPrototypeOf(t);return Object.getPrototypeOf(e) === t || Object.getPrototypeOf(e) === null;}-function FB(e, t, n) {- if (typeof e != "function") throw Error(AB(2));- if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(AB(0));+function CV(e, t, n) {+ if (typeof e != "function") throw Error(vV(2));+ if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(vV(0));if (typeof t == "function" && n === void 0 && (n = t, t = void 0), n !== void 0) {- if (typeof n != "function") throw Error(AB(1));- return n(FB)(e, t);+ if (typeof n != "function") throw Error(vV(1));+ return n(CV)(e, t);}let r = e, i = t, a = /* @__PURE__ */ new Map(), o = a, s = 0, c = !1;function l() {@@ -49878,27 +51265,27 @@ function FB(e, t, n) {}));}function u() {- if (c) throw Error(AB(3));+ if (c) throw Error(vV(3));return i;}function d(e) {- if (typeof e != "function") throw Error(AB(4));- if (c) throw Error(AB(5));+ if (typeof e != "function") throw Error(vV(4));+ if (c) throw Error(vV(5));let t = !0;l();let n = s++;return o.set(n, e), function() {if (t) {- if (c) throw Error(AB(6));+ if (c) throw Error(vV(6));t = !1, l(), o.delete(n), a = null;}};}function f(e) {- if (!PB(e)) throw Error(AB(7));- if (e.type === void 0) throw Error(AB(8));- if (typeof e.type != "string") throw Error(AB(17));- if (c) throw Error(AB(9));+ if (!SV(e)) throw Error(vV(7));+ if (e.type === void 0) throw Error(vV(8));+ if (typeof e.type != "string") throw Error(vV(17));+ if (c) throw Error(vV(9));try {c = !0, i = r(i, e);} finally {@@ -49909,41 +51296,41 @@ function FB(e, t, n) {}), e;}function p(e) {- if (typeof e != "function") throw Error(AB(10));- r = e, f({ type: NB.REPLACE });+ if (typeof e != "function") throw Error(vV(10));+ r = e, f({ type: xV.REPLACE });}function m() {let e = d;return {subscribe(t) {- if (typeof t != "object" || !t) throw Error(AB(11));+ if (typeof t != "object" || !t) throw Error(vV(11));function n() {let e = t;e.next && e.next(u());}return n(), { unsubscribe: e(n) };},- [jB]() {+ [yV]() {return this;}};}- return f({ type: NB.INIT }), {+ return f({ type: xV.INIT }), {dispatch: f,subscribe: d,getState: u,replaceReducer: p,- [jB]: m+ [yV]: m};}-function ohe(e) {+function wV(e) {Object.keys(e).forEach((t) => {let n = e[t];- if (n(void 0, { type: NB.INIT }) === void 0) throw Error(AB(12));- if (n(void 0, { type: NB.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(AB(13));+ if (n(void 0, { type: xV.INIT }) === void 0) throw Error(vV(12));+ if (n(void 0, { type: xV.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(vV(13));});}-function IB(e) {+function TV(e) {let t = Object.keys(e), n = {};for (let r = 0; r < t.length; r++) {let i = t[r];@@ -49951,7 +51338,7 @@ function IB(e) {}let r = Object.keys(n), i;try {- ohe(n);+ wV(n);} catch (e) {i = e;}@@ -49960,124 +51347,124 @@ function IB(e) {let a = !1, o = {};for (let i = 0; i < r.length; i++) {let s = r[i], c = n[s], l = e[s], u = c(l, t);- if (u === void 0) throw t && t.type, Error(AB(14));+ if (u === void 0) throw t && t.type, Error(vV(14));o[s] = u, a ||= u !== l;}return a ||= r.length !== Object.keys(e).length, a ? o : e;};}-function LB(...e) {+function EV(...e) {return e.length === 0 ? (e) => e : e.length === 1 ? e[0] : e.reduce((e, t) => (...n) => e(t(...n)));}-function she(...e) {+function DV(...e) {return (t) => (n, r) => {let i = t(n, r), a = () => {- throw Error(AB(15));+ throw Error(vV(15));}, o = {getState: i.getState,dispatch: (e, ...t) => a(e, ...t)};- return a = LB(...e.map((e) => e(o)))(i.dispatch), {+ return a = EV(...e.map((e) => e(o)))(i.dispatch), {...i,dispatch: a};};}-function RB(e) {- return PB(e) && "type" in e && typeof e.type == "string";+function OV(e) {+ return SV(e) && "type" in e && typeof e.type == "string";}//#endregion//#region node_modules/@reduxjs/toolkit/node_modules/immer/dist/immer.mjs-var zB = Symbol.for("immer-nothing"), BB = Symbol.for("immer-draftable"), VB = Symbol.for("immer-state");-function HB(e, ...t) {+var kV = Symbol.for("immer-nothing"), AV = Symbol.for("immer-draftable"), jV = Symbol.for("immer-state");+function MV(e, ...t) {throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);}-var UB = Object, WB = UB.getPrototypeOf, GB = "constructor", KB = "prototype", qB = "configurable", JB = "enumerable", YB = "writable", XB = "value", ZB = (e) => !!e && !!e[VB];-function QB(e) {- return e ? tV(e) || cV(e) || !!e[BB] || !!e[GB]?.[BB] || lV(e) || uV(e) : !1;+var NV = Object, PV = NV.getPrototypeOf, FV = "constructor", IV = "prototype", LV = "configurable", RV = "enumerable", zV = "writable", BV = "value", VV = (e) => !!e && !!e[jV];+function HV(e) {+ return e ? GV(e) || QV(e) || !!e[AV] || !!e[FV]?.[AV] || $V(e) || eH(e) : !1;}-var $B = UB[KB][GB].toString(), eV = /* @__PURE__ */ new WeakMap();-function tV(e) {- if (!e || !dV(e)) return !1;- let t = WB(e);- if (t === null || t === UB[KB]) return !0;- let n = UB.hasOwnProperty.call(t, GB) && t[GB];+var UV = NV[IV][FV].toString(), WV = /* @__PURE__ */ new WeakMap();+function GV(e) {+ if (!e || !tH(e)) return !1;+ let t = PV(e);+ if (t === null || t === NV[IV]) return !0;+ let n = NV.hasOwnProperty.call(t, FV) && t[FV];if (n === Object) return !0;- if (!fV(n)) return !1;- let r = eV.get(n);- return r === void 0 && (r = Function.toString.call(n), eV.set(n, r)), r === $B;+ if (!nH(n)) return !1;+ let r = WV.get(n);+ return r === void 0 && (r = Function.toString.call(n), WV.set(n, r)), r === UV;}-function nV(e, t, n = !0) {- rV(e) === 0 ? (n ? Reflect.ownKeys(e) : UB.keys(e)).forEach((n) => {+function KV(e, t, n = !0) {+ qV(e) === 0 ? (n ? Reflect.ownKeys(e) : NV.keys(e)).forEach((n) => {t(n, e[n], e);}) : e.forEach((n, r) => t(r, n, e));}-function rV(e) {- let t = e[VB];- return t ? t.type_ : cV(e) ? 1 : lV(e) ? 2 : uV(e) ? 3 : 0;+function qV(e) {+ let t = e[jV];+ return t ? t.type_ : QV(e) ? 1 : $V(e) ? 2 : eH(e) ? 3 : 0;}-var iV = (e, t, n = rV(e)) => n === 2 ? e.has(t) : UB[KB].hasOwnProperty.call(e, t), aV = (e, t, n = rV(e)) => n === 2 ? e.get(t) : e[t], oV = (e, t, n, r = rV(e)) => {+var JV = (e, t, n = qV(e)) => n === 2 ? e.has(t) : NV[IV].hasOwnProperty.call(e, t), YV = (e, t, n = qV(e)) => n === 2 ? e.get(t) : e[t], XV = (e, t, n, r = qV(e)) => {r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;};-function sV(e, t) {+function ZV(e, t) {return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;}-var cV = Array.isArray, lV = (e) => e instanceof Map, uV = (e) => e instanceof Set, dV = (e) => typeof e == "object", fV = (e) => typeof e == "function", pV = (e) => typeof e == "boolean";-function mV(e) {+var QV = Array.isArray, $V = (e) => e instanceof Map, eH = (e) => e instanceof Set, tH = (e) => typeof e == "object", nH = (e) => typeof e == "function", rH = (e) => typeof e == "boolean";+function iH(e) {let t = +e;return Number.isInteger(t) && String(t) === e;}-var hV = (e) => e.copy_ || e.base_, gV = (e) => e.modified_ ? e.copy_ : e.base_;-function _V(e, t) {- if (lV(e)) return new Map(e);- if (uV(e)) return new Set(e);- if (cV(e)) return Array[KB].slice.call(e);- let n = tV(e);+var aH = (e) => e.copy_ || e.base_, oH = (e) => e.modified_ ? e.copy_ : e.base_;+function sH(e, t) {+ if ($V(e)) return new Map(e);+ if (eH(e)) return new Set(e);+ if (QV(e)) return Array[IV].slice.call(e);+ let n = GV(e);if (t === !0 || t === "class_only" && !n) {- let t = UB.getOwnPropertyDescriptors(e);- delete t[VB];+ let t = NV.getOwnPropertyDescriptors(e);+ delete t[jV];let n = Reflect.ownKeys(t);for (let r = 0; r < n.length; r++) {let i = n[r], a = t[i];- a[YB] === !1 && (a[YB] = !0, a[qB] = !0), (a.get || a.set) && (t[i] = {- [qB]: !0,- [YB]: !0,- [JB]: a[JB],- [XB]: e[i]+ a[zV] === !1 && (a[zV] = !0, a[LV] = !0), (a.get || a.set) && (t[i] = {+ [LV]: !0,+ [zV]: !0,+ [RV]: a[RV],+ [BV]: e[i]});}- return UB.create(WB(e), t);+ return NV.create(PV(e), t);}{- let t = WB(e);+ let t = PV(e);if (t !== null && n) return { ...e };- let r = UB.create(t);- return UB.assign(r, e);- }-}-function vV(e, t = !1) {- return xV(e) || ZB(e) || !QB(e) ? e : (rV(e) > 1 && UB.defineProperties(e, {- set: bV,- add: bV,- clear: bV,- delete: bV- }), UB.freeze(e), t && nV(e, (e, t) => {- vV(t, !0);+ let r = NV.create(t);+ return NV.assign(r, e);+ }+}+function cH(e, t = !1) {+ return dH(e) || VV(e) || !HV(e) ? e : (qV(e) > 1 && NV.defineProperties(e, {+ set: uH,+ add: uH,+ clear: uH,+ delete: uH+ }), NV.freeze(e), t && KV(e, (e, t) => {+ cH(t, !0);}, !1), e);}-function yV() {- HB(2);+function lH() {+ MV(2);}-var bV = { [XB]: yV };-function xV(e) {- return e === null || !dV(e) || UB.isFrozen(e);+var uH = { [BV]: lH };+function dH(e) {+ return e === null || !tH(e) || NV.isFrozen(e);}-var SV = "MapSet", CV = "Patches", wV = "ArrayMethods", TV = {};-function EV(e) {- let t = TV[e];- return t || HB(0, e), t;+var fH = "MapSet", pH = "Patches", mH = "ArrayMethods", hH = {};+function gH(e) {+ let t = hH[e];+ return t || MV(0, e), t;}-var DV = (e) => !!TV[e], OV, kV = () => OV, AV = (e, t) => ({+var _H = (e) => !!hH[e], vH, yH = () => vH, bH = (e, t) => ({drafts_: [],parent_: e,immer_: t,@@ -50085,114 +51472,114 @@ var DV = (e) => !!TV[e], OV, kV = () => OV, AV = (e, t) => ({unfinalizedDrafts_: 0,handledSet_: /* @__PURE__ */ new Set(),processedForPatches_: /* @__PURE__ */ new Set(),- mapSetPlugin_: DV(SV) ? EV(SV) : void 0,- arrayMethodsPlugin_: DV(wV) ? EV(wV) : void 0+ mapSetPlugin_: _H(fH) ? gH(fH) : void 0,+ arrayMethodsPlugin_: _H(mH) ? gH(mH) : void 0});-function jV(e, t) {- t && (e.patchPlugin_ = EV(CV), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);+function xH(e, t) {+ t && (e.patchPlugin_ = gH(pH), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);}-function MV(e) {- NV(e), e.drafts_.forEach(FV), e.drafts_ = null;+function SH(e) {+ CH(e), e.drafts_.forEach(TH), e.drafts_ = null;}-function NV(e) {- e === OV && (OV = e.parent_);+function CH(e) {+ e === vH && (vH = e.parent_);}-var PV = (e) => OV = AV(OV, e);-function FV(e) {- let t = e[VB];+var wH = (e) => vH = bH(vH, e);+function TH(e) {+ let t = e[jV];t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;}-function IV(e, t) {+function EH(e, t) {t.unfinalizedDrafts_ = t.drafts_.length;let n = t.drafts_[0];if (e !== void 0 && e !== n) {- n[VB].modified_ && (MV(t), HB(4)), QB(e) && (e = LV(t, e));+ n[jV].modified_ && (SH(t), MV(4)), HV(e) && (e = DH(t, e));let { patchPlugin_: r } = t;- r && r.generateReplacementPatches_(n[VB].base_, e, t);- } else e = LV(t, n);- return RV(t, e, !0), MV(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === zB ? void 0 : e;-}-function LV(e, t) {- if (xV(t)) return t;- let n = t[VB];- if (!n) return KV(t, e.handledSet_, e);- if (!BV(n, e)) return t;+ r && r.generateReplacementPatches_(n[jV].base_, e, t);+ } else e = DH(t, n);+ return OH(t, e, !0), SH(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === kV ? void 0 : e;+}+function DH(e, t) {+ if (dH(t)) return t;+ let n = t[jV];+ if (!n) return IH(t, e.handledSet_, e);+ if (!AH(n, e)) return t;if (!n.modified_) return n.base_;if (!n.finalized_) {let { callbacks_: t } = n;if (t) for (; t.length > 0;) t.pop()(e);- WV(n, e);+ PH(n, e);}return n.copy_;}-function RV(e, t, n = !1) {- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && vV(t, n);+function OH(e, t, n = !1) {+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && cH(t, n);}-function zV(e) {+function kH(e) {e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;}-var BV = (e, t) => e.scope_ === t, VV = [];-function HV(e, t, n, r) {- let i = hV(e), a = e.type_;- if (r !== void 0 && aV(i, r, a) === t) {- oV(i, r, n, a);+var AH = (e, t) => e.scope_ === t, jH = [];+function MH(e, t, n, r) {+ let i = aH(e), a = e.type_;+ if (r !== void 0 && YV(i, r, a) === t) {+ XV(i, r, n, a);return;}if (!e.draftLocations_) {let t = e.draftLocations_ = /* @__PURE__ */ new Map();- nV(i, (e, n) => {- if (ZB(n)) {+ KV(i, (e, n) => {+ if (VV(n)) {let r = t.get(n) || [];r.push(e), t.set(n, r);}});}- let o = e.draftLocations_.get(t) ?? VV;- for (let e of o) oV(i, e, n, a);+ let o = e.draftLocations_.get(t) ?? jH;+ for (let e of o) XV(i, e, n, a);}-function UV(e, t, n) {+function NH(e, t, n) {e.callbacks_.push(function(r) {let i = t;- if (!i || !BV(i, r)) return;+ if (!i || !AH(i, r)) return;r.mapSetPlugin_?.fixSetContents(i);- let a = gV(i);- HV(e, i.draft_ ?? i, a, n), WV(i, r);+ let a = oH(i);+ MH(e, i.draft_ ?? i, a, n), PH(i, r);});}-function WV(e, t) {+function PH(e, t) {if (e.modified_ && !e.finalized_ && (e.type_ === 3 || e.type_ === 1 && e.allIndicesReassigned_ || (e.assigned_?.size ?? 0) > 0)) {let { patchPlugin_: n } = t;if (n) {let r = n.getPath(e);r && n.generatePatches_(e, r, t);}- zV(e);+ kH(e);}}-function GV(e, t, n) {+function FH(e, t, n) {let { scope_: r } = e;- if (ZB(n)) {- let i = n[VB];- BV(i, r) && i.callbacks_.push(function() {- tH(e), HV(e, n, gV(i), t);+ if (VV(n)) {+ let i = n[jV];+ AH(i, r) && i.callbacks_.push(function() {+ GH(e), MH(e, n, oH(i), t);});- } else QB(n) && e.callbacks_.push(function() {- let i = hV(e);- e.type_ === 3 ? i.has(n) && KV(n, r.handledSet_, r) : aV(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && KV(aV(e.copy_, t, e.type_), r.handledSet_, r);+ } else HV(n) && e.callbacks_.push(function() {+ let i = aH(e);+ e.type_ === 3 ? i.has(n) && IH(n, r.handledSet_, r) : YV(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && IH(YV(e.copy_, t, e.type_), r.handledSet_, r);});}-function KV(e, t, n) {- return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || ZB(e) || t.has(e) || !QB(e) || xV(e) ? e : (t.add(e), nV(e, (r, i) => {- if (ZB(i)) {- let t = i[VB];- BV(t, n) && (oV(e, r, gV(t), e.type_), zV(t));- } else QB(i) && KV(i, t, n);+function IH(e, t, n) {+ return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || VV(e) || t.has(e) || !HV(e) || dH(e) ? e : (t.add(e), KV(e, (r, i) => {+ if (VV(i)) {+ let t = i[jV];+ AH(t, n) && (XV(e, r, oH(t), e.type_), kH(t));+ } else HV(i) && IH(i, t, n);}), e);}-function qV(e, t) {- let n = cV(e), r = {+function LH(e, t) {+ let n = QV(e), r = {type_: +!!n,- scope_: t ? t.scope_ : kV(),+ scope_: t ? t.scope_ : yH(),modified_: !1,finalized_: !1,assigned_: void 0,@@ -50203,108 +51590,108 @@ function qV(e, t) {revoke_: null,isManual_: !1,callbacks_: void 0- }, i = r, a = JV;- n && (i = [r], a = YV);+ }, i = r, a = RH;+ n && (i = [r], a = zH);let { revoke: o, proxy: s } = Proxy.revocable(i, a);return r.draft_ = s, r.revoke_ = o, [s, r];}-var JV = {+var RH = {get(e, t) {- if (t === VB) return e;+ if (t === jV) return e;let n = e.scope_.arrayMethodsPlugin_, r = e.type_ === 1 && typeof t == "string";if (r && n?.isArrayOperationMethod(t)) return n.createMethodInterceptor(e, t);- let i = hV(e);- if (!iV(i, t, e.type_)) return QV(e, i, t);+ let i = aH(e);+ if (!JV(i, t, e.type_)) return HH(e, i, t);let a = i[t];- if (e.finalized_ || !QB(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && mV(t)) return a;- if (a === XV(e.base_, t) || ZV(e, t, a)) {- tH(e);- let n = e.type_ === 1 ? +t : t, r = rH(e.scope_, a, e, n);+ if (e.finalized_ || !HV(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && iH(t)) return a;+ if (a === BH(e.base_, t) || VH(e, t, a)) {+ GH(e);+ let n = e.type_ === 1 ? +t : t, r = qH(e.scope_, a, e, n);return e.copy_[n] = r;}return a;},has(e, t) {- return t in hV(e);+ return t in aH(e);},ownKeys(e) {- return Reflect.ownKeys(hV(e));+ return Reflect.ownKeys(aH(e));},set(e, t, n) {- let r = $V(hV(e), t);+ let r = UH(aH(e), t);if (r?.set) return r.set.call(e.draft_, n), !0;if (!e.modified_) {- let r = XV(hV(e), t), i = r?.[VB];+ let r = BH(aH(e), t), i = r?.[jV];if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.set(t, !1), !0;- if (sV(n, r) && (n !== void 0 || iV(e.base_, t, e.type_))) return !0;- tH(e), eH(e);+ if (ZV(n, r) && (n !== void 0 || JV(e.base_, t, e.type_))) return !0;+ GH(e), WH(e);}- return e.copy_[t] === n && (n !== void 0 || iV(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), GV(e, t, n), !0);+ return e.copy_[t] === n && (n !== void 0 || JV(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), FH(e, t, n), !0);},deleteProperty(e, t) {- return tH(e), XV(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), eH(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;+ return GH(e), BH(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), WH(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;},getOwnPropertyDescriptor(e, t) {- let n = hV(e), r = Reflect.getOwnPropertyDescriptor(n, t);+ let n = aH(e), r = Reflect.getOwnPropertyDescriptor(n, t);return r && {- [YB]: !0,- [qB]: e.type_ !== 1 || t !== "length",- [JB]: r[JB],- [XB]: n[t]+ [zV]: !0,+ [LV]: e.type_ !== 1 || t !== "length",+ [RV]: r[RV],+ [BV]: n[t]};},defineProperty() {- HB(11);+ MV(11);},getPrototypeOf(e) {- return WB(e.base_);+ return PV(e.base_);},setPrototypeOf() {- HB(12);+ MV(12);}-}, YV = {};-for (let e in JV) {- let t = JV[e];- YV[e] = function() {+}, zH = {};+for (let e in RH) {+ let t = RH[e];+ zH[e] = function() {let e = arguments;return e[0] = e[0][0], t.apply(this, e);};}-YV.deleteProperty = function(e, t) {- return YV.set.call(this, e, t, void 0);-}, YV.set = function(e, t, n) {- return JV.set.call(this, e[0], t, n, e[0]);+zH.deleteProperty = function(e, t) {+ return zH.set.call(this, e, t, void 0);+}, zH.set = function(e, t, n) {+ return RH.set.call(this, e[0], t, n, e[0]);};-function XV(e, t) {- let n = e[VB];- return (n ? hV(n) : e)[t];+function BH(e, t) {+ let n = e[jV];+ return (n ? aH(n) : e)[t];}-function ZV(e, t, n) {- return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !QB(n) || n[VB] ? !1 : e.baseRefs_.has(n);+function VH(e, t, n) {+ return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !HV(n) || n[jV] ? !1 : e.baseRefs_.has(n);}-function QV(e, t, n) {- let r = $V(t, n);- return r ? XB in r ? r[XB] : r.get?.call(e.draft_) : void 0;+function HH(e, t, n) {+ let r = UH(t, n);+ return r ? BV in r ? r[BV] : r.get?.call(e.draft_) : void 0;}-function $V(e, t) {+function UH(e, t) {if (!(t in e)) return;- let n = WB(e);+ let n = PV(e);for (; n;) {let e = Object.getOwnPropertyDescriptor(n, t);if (e) return e;- n = WB(n);+ n = PV(n);}}-function eH(e) {- e.modified_ || (e.modified_ = !0, e.parent_ && eH(e.parent_));+function WH(e) {+ e.modified_ || (e.modified_ = !0, e.parent_ && WH(e.parent_));}-function tH(e) {- e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), _V(e.base_, e.scope_.immer_.useStrictShallowCopy_));+function GH(e) {+ e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), sH(e.base_, e.scope_.immer_.useStrictShallowCopy_));}-var nH = class {+var KH = class {constructor(e) {this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (e, t, n) => {- if (fV(e) && !fV(t)) {+ if (nH(e) && !nH(t)) {let n = t;t = e;let r = this;@@ -50312,30 +51699,30 @@ var nH = class {return r.produce(e, (e) => t.call(this, e, ...i));};}- fV(t) || HB(6), n !== void 0 && !fV(n) && HB(7);+ nH(t) || MV(6), n !== void 0 && !nH(n) && MV(7);let r;- if (QB(e)) {- let i = PV(this), a = rH(i, e, void 0), o = !0;+ if (HV(e)) {+ let i = wH(this), a = qH(i, e, void 0), o = !0;try {r = t(a), o = !1;} finally {- o ? MV(i) : NV(i);+ o ? SH(i) : CH(i);}- return jV(i, n), IV(r, i);+ return xH(i, n), EH(r, i);}- if (!e || !dV(e)) {- if (r = t(e), r === void 0 && (r = e), r === zB && (r = void 0), this.autoFreeze_ && vV(r, !0), n) {+ if (!e || !tH(e)) {+ if (r = t(e), r === void 0 && (r = e), r === kV && (r = void 0), this.autoFreeze_ && cH(r, !0), n) {let t = [], i = [];- EV(CV).generateReplacementPatches_(e, r, {+ gH(pH).generateReplacementPatches_(e, r, {patches_: t,inversePatches_: i}), n(t, i);}return r;}- HB(1, e);+ MV(1, e);}, this.produceWithPatches = (e, t) => {- if (fV(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));+ if (nH(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));let n, r;return [this.produce(e, t, (e, t) => {@@ -50344,18 +51731,18 @@ var nH = class {n,r];- }, pV(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), pV(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), pV(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);+ }, rH(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), rH(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), rH(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);}createDraft(e) {- QB(e) || HB(8), ZB(e) && (e = iH(e));- let t = PV(this), n = rH(t, e, void 0);- return n[VB].isManual_ = !0, NV(t), n;+ HV(e) || MV(8), VV(e) && (e = JH(e));+ let t = wH(this), n = qH(t, e, void 0);+ return n[jV].isManual_ = !0, CH(t), n;}finishDraft(e, t) {- let n = e && e[VB];- (!n || !n.isManual_) && HB(9);+ let n = e && e[jV];+ (!n || !n.isManual_) && MV(9);let { scope_: r } = n;- return jV(r, t), IV(void 0, r);+ return xH(r, t), EH(void 0, r);}setAutoFreeze(e) {this.autoFreeze_ = e;@@ -50379,48 +51766,48 @@ var nH = class {}}n > -1 && (t = t.slice(n + 1));- let r = EV(CV).applyPatches_;- return ZB(e) ? r(e, t) : this.produce(e, (e) => r(e, t));+ let r = gH(pH).applyPatches_;+ return VV(e) ? r(e, t) : this.produce(e, (e) => r(e, t));}};-function rH(e, t, n, r) {- let [i, a] = lV(t) ? EV(SV).proxyMap_(t, n) : uV(t) ? EV(SV).proxySet_(t, n) : qV(t, n);- return (n?.scope_ ?? kV()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? UV(n, a, r) : a.callbacks_.push(function(e) {+function qH(e, t, n, r) {+ let [i, a] = $V(t) ? gH(fH).proxyMap_(t, n) : eH(t) ? gH(fH).proxySet_(t, n) : LH(t, n);+ return (n?.scope_ ?? yH()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? NH(n, a, r) : a.callbacks_.push(function(e) {e.mapSetPlugin_?.fixSetContents(a);let { patchPlugin_: t } = e;a.modified_ && t && t.generatePatches_(a, [], e);}), i;}-function iH(e) {- return ZB(e) || HB(10, e), aH(e);+function JH(e) {+ return VV(e) || MV(10, e), YH(e);}-function aH(e) {- if (!QB(e) || xV(e)) return e;- let t = e[VB], n, r = !0;+function YH(e) {+ if (!HV(e) || dH(e)) return e;+ let t = e[jV], n, r = !0;if (t) {if (!t.modified_) return t.base_;- t.finalized_ = !0, n = _V(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();- } else n = _V(e, !0);- return nV(n, (e, t) => {- oV(n, e, aH(t));+ t.finalized_ = !0, n = sH(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();+ } else n = sH(e, !0);+ return KV(n, (e, t) => {+ XV(n, e, YH(t));}, r), t && (t.finalized_ = !1), n;}globalThis.Iterator?.from;-var oH = new nH().produce;+var XH = new KH().produce;//#endregion//#region node_modules/redux-thunk/dist/redux-thunk.mjs-function sH(e) {+function ZH(e) {return ({ dispatch: t, getState: n }) => (r) => (i) => typeof i == "function" ? i(t, n, e) : r(i);}-var cH = sH(), lH = sH, uH = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {- if (arguments.length !== 0) return typeof arguments[0] == "object" ? LB : LB.apply(null, arguments);+var QH = ZH(), $H = ZH, eU = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {+ if (arguments.length !== 0) return typeof arguments[0] == "object" ? EV : EV.apply(null, arguments);};typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;-function dH(e, t) {+function tU(e, t) {function n(...n) {if (t) {let r = t(...n);- if (!r) throw Error(bU(0));+ if (!r) throw Error(uW(0));return {type: e,payload: r.payload,@@ -50433,9 +51820,9 @@ function dH(e, t) {payload: n[0]};}- return n.toString = () => `${e}`, n.type = e, n.match = (t) => RB(t) && t.type === e, n;+ return n.toString = () => `${e}`, n.type = e, n.match = (t) => OV(t) && t.type === e, n;}-var fH = class e extends Array {+var nU = class e extends Array {constructor(...t) {super(...t), Object.setPrototypeOf(this, e.prototype);}@@ -50449,29 +51836,29 @@ var fH = class e extends Array {return t.length === 1 && Array.isArray(t[0]) ? new e(...t[0].concat(this)) : new e(...t.concat(this));}};-function pH(e) {- return QB(e) ? oH(e, () => {}) : e;+function rU(e) {+ return HV(e) ? XH(e, () => {}) : e;}-function mH(e, t, n) {+function iU(e, t, n) {return e.has(t) ? e.get(t) : e.set(t, n(t)).get(t);}-function hH(e) {+function aU(e) {return typeof e == "boolean";}-var gH = () => function(e) {- let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new fH();- return t && (hH(t) ? a.push(cH) : a.push(lH(t.extraArgument))), a;-}, _H = "RTK_autoBatch", vH = () => (e) => ({+var oU = () => function(e) {+ let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new nU();+ return t && (aU(t) ? a.push(QH) : a.push($H(t.extraArgument))), a;+}, sU = "RTK_autoBatch", cU = () => (e) => ({payload: e,- meta: { [_H]: !0 }-}), yH = (e) => (t) => {+ meta: { [sU]: !0 }+}), lU = (e) => (t) => {setTimeout(t, e);-}, bH = (e, t) => (n) => {+}, uU = (e, t) => (n) => {let r = !1, i = () => {r || (r = !0, cancelAnimationFrame(a), clearTimeout(o), n());}, a = e(i), o = setTimeout(i, t);-}, xH = (e = { type: "raf" }) => (t) => (...n) => {- let r = t(...n), i = !0, a = !1, o = !1, s = /* @__PURE__ */ new Set(), c = e.type === "tick" ? queueMicrotask : e.type === "raf" ? typeof window < "u" && window.requestAnimationFrame ? bH(window.requestAnimationFrame, 100) : yH(10) : e.type === "callback" ? e.queueNotification : yH(e.timeout), l = () => {+}, dU = (e = { type: "raf" }) => (t) => (...n) => {+ let r = t(...n), i = !0, a = !1, o = !1, s = /* @__PURE__ */ new Set(), c = e.type === "tick" ? queueMicrotask : e.type === "raf" ? typeof window < "u" && window.requestAnimationFrame ? uU(window.requestAnimationFrame, 100) : lU(10) : e.type === "callback" ? e.queueNotification : lU(e.timeout), l = () => {o = !1, a && (a = !1, s.forEach((e) => e()));};return Object.assign({}, r, {@@ -50483,37 +51870,37 @@ var gH = () => function(e) {},dispatch(e) {try {- return i = !e?.meta?.[_H], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);+ return i = !e?.meta?.[sU], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);} finally {i = !0;}}});-}, SH = (e) => function(t) {- let { autoBatch: n = !0 } = t ?? {}, r = new fH(e);- return n && r.push(xH(typeof n == "object" ? n : void 0)), r;+}, fU = (e) => function(t) {+ let { autoBatch: n = !0 } = t ?? {}, r = new nU(e);+ return n && r.push(dU(typeof n == "object" ? n : void 0)), r;};-function CH(e) {- let t = gH(), { reducer: n = void 0, middleware: r, devTools: i = !0, duplicateMiddlewareCheck: a = !0, preloadedState: o = void 0, enhancers: s = void 0 } = e || {}, c;+function pU(e) {+ let t = oU(), { reducer: n = void 0, middleware: r, devTools: i = !0, duplicateMiddlewareCheck: a = !0, preloadedState: o = void 0, enhancers: s = void 0 } = e || {}, c;if (typeof n == "function") c = n;- else if (PB(n)) c = IB(n);- else throw Error(bU(1));+ else if (SV(n)) c = TV(n);+ else throw Error(uW(1));let l;l = typeof r == "function" ? r(t) : t();- let u = LB;- i && (u = uH({+ let u = EV;+ i && (u = eU({trace: !1,...typeof i == "object" && i}));- let d = SH(she(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);- return FB(c, o, p);+ let d = fU(DV(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);+ return CV(c, o, p);}-function wH(e) {+function mU(e) {let t = {}, n = [], r, i = {addCase(e, n) {let r = typeof e == "string" ? e : e.type;- if (!r) throw Error(bU(28));- if (r in t) throw Error(bU(29));+ if (!r) throw Error(uW(28));+ if (r in t) throw Error(uW(29));return t[r] = n, i;},addAsyncThunk(e, r) {@@ -50538,25 +51925,25 @@ function wH(e) {r];}-function TH(e) {+function hU(e) {return typeof e == "function";}-function EH(e, t) {- let [n, r, i] = wH(t), a;- if (TH(e)) a = () => pH(e());+function gU(e, t) {+ let [n, r, i] = mU(t), a;+ if (hU(e)) a = () => rU(e());else {- let t = pH(e);+ let t = rU(e);a = () => t;}function o(e = a(), t) {let o = [n[t.type], ...r.filter(({ matcher: e }) => e(t)).map(({ reducer: e }) => e)];return o.filter((e) => !!e).length === 0 && (o = [i]), o.reduce((e, n) => {if (n) {- if (ZB(e)) {+ if (VV(e)) {let r = n(e, t);return r === void 0 ? e : r;}- if (QB(e)) return oH(e, (e) => n(e, t));+ if (HV(e)) return XH(e, (e) => n(e, t));{let r = n(e, t);if (r === void 0) {@@ -50571,20 +51958,20 @@ function EH(e, t) {}return o.getInitialState = a, o;}-var DH = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", OH = (e = 21) => {+var _U = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", vU = (e = 21) => {let t = "", n = e;- for (; n--;) t += DH[Math.random() * 64 | 0];+ for (; n--;) t += _U[Math.random() * 64 | 0];return t;-}, kH = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");-function AH(e, t) {+}, yU = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");+function bU(e, t) {return `${e}/${t}`;}-function jH({ creators: e } = {}) {- let t = e?.asyncThunk?.[kH];+function xU({ creators: e } = {}) {+ let t = e?.asyncThunk?.[yU];return function(e) {let { name: n, reducerPath: r = n } = e;- if (!n) throw Error(bU(11));- let i = (typeof e.reducers == "function" ? e.reducers(PH()) : e.reducers) || {}, a = Object.keys(i), o = {+ if (!n) throw Error(uW(11));+ let i = (typeof e.reducers == "function" ? e.reducers(wU()) : e.reducers) || {}, a = Object.keys(i), o = {sliceCaseReducersByName: {},sliceCaseReducersByType: {},actionCreators: {},@@ -50592,8 +51979,8 @@ function jH({ creators: e } = {}) {}, s = {addCase(e, t) {let n = typeof e == "string" ? e : e.type;- if (!n) throw Error(bU(12));- if (n in o.sliceCaseReducersByType) throw Error(bU(13));+ if (!n) throw Error(uW(12));+ if (n in o.sliceCaseReducersByType) throw Error(uW(13));return o.sliceCaseReducersByType[n] = t, s;},addMatcher(e, t) {@@ -50612,17 +51999,17 @@ function jH({ creators: e } = {}) {a.forEach((r) => {let a = i[r], o = {reducerName: r,- type: AH(n, r),+ type: bU(n, r),createNotation: typeof e.reducers == "function"};- IH(a) ? RH(o, a, s, t) : FH(o, a, s);+ EU(a) ? OU(o, a, s, t) : TU(o, a, s);});function c() {- let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? wH(e.extraReducers) : [e.extraReducers], i = {+ let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? mU(e.extraReducers) : [e.extraReducers], i = {...t,...o.sliceCaseReducersByType};- return EH(e.initialState, (e) => {+ return gU(e.initialState, (e) => {for (let t in i) e.addCase(t, i[t]);for (let t of o.sliceMatchers) e.addMatcher(t.matcher, t.reducer);for (let t of n) e.addMatcher(t.matcher, t.reducer);@@ -50639,12 +52026,12 @@ function jH({ creators: e } = {}) {function h(t, n = !1) {function r(e) {let i = e[t];- return i === void 0 && n && (i = mH(d, r, m)), i;+ return i === void 0 && n && (i = iU(d, r, m)), i;}function i(t = l) {- return mH(mH(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {+ return iU(iU(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {let r = {};- for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = MH(a, t, () => mH(d, t, m), n);+ for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = SU(a, t, () => iU(d, t, m), n);return r;});}@@ -50678,15 +52065,15 @@ function jH({ creators: e } = {}) {return g;};}-function MH(e, t, n, r) {+function SU(e, t, n, r) {function i(i, ...a) {let o = t(i);return o === void 0 && r && (o = n()), e(o, ...a);}return i.unwrapped = e, i;}-var NH = /* @__PURE__ */ jH();-function PH() {+var CU = /* @__PURE__ */ xU();+function wU() {function e(e, t) {return {_reducerDefinitionType: "asyncThunk",@@ -50710,57 +52097,57 @@ function PH() {asyncThunk: e};}-function FH({ type: e, reducerName: t, createNotation: n }, r, i) {+function TU({ type: e, reducerName: t, createNotation: n }, r, i) {let a, o;if ("reducer" in r) {- if (n && !LH(r)) throw Error(bU(17));+ if (n && !DU(r)) throw Error(uW(17));a = r.reducer, o = r.prepare;} else a = r;- i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? dH(e, o) : dH(e));+ i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? tU(e, o) : tU(e));}-function IH(e) {+function EU(e) {return e._reducerDefinitionType === "asyncThunk";}-function LH(e) {+function DU(e) {return e._reducerDefinitionType === "reducerWithPrepare";}-function RH({ type: e, reducerName: t }, n, r, i) {- if (!i) throw Error(bU(18));+function OU({ type: e, reducerName: t }, n, r, i) {+ if (!i) throw Error(uW(18));let { payloadCreator: a, fulfilled: o, pending: s, rejected: c, settled: l, options: u } = n, d = i(e, a, u);r.exposeAction(t, d), o && r.addCase(d.fulfilled, o), s && r.addCase(d.pending, s), c && r.addCase(d.rejected, c), l && r.addMatcher(d.settled, l), r.exposeCaseReducer(t, {- fulfilled: o || zH,- pending: s || zH,- rejected: c || zH,- settled: l || zH+ fulfilled: o || kU,+ pending: s || kU,+ rejected: c || kU,+ settled: l || kU});}-function zH() {}-var BH = "task", VH = "listener", HH = "completed", UH = "cancelled", WH = `task-${UH}`, GH = `task-${HH}`, KH = `${VH}-${UH}`, qH = `${VH}-${HH}`, JH = class {+function kU() {}+var AU = "task", jU = "listener", MU = "completed", NU = "cancelled", PU = `task-${NU}`, FU = `task-${MU}`, IU = `${jU}-${NU}`, LU = `${jU}-${MU}`, RU = class {constructor(e) {- this.code = e, this.message = `${BH} ${UH} (reason: ${e})`;+ this.code = e, this.message = `${AU} ${NU} (reason: ${e})`;}code;name = "TaskAbortError";message;-}, YH = (e, t) => {- if (typeof e != "function") throw TypeError(bU(32));-}, XH = () => {}, ZH = (e, t = XH) => (e.catch(t), e), QH = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), $H = (e) => {- if (e.aborted) throw new JH(e.reason);+}, zU = (e, t) => {+ if (typeof e != "function") throw TypeError(uW(32));+}, BU = () => {}, VU = (e, t = BU) => (e.catch(t), e), HU = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), UU = (e) => {+ if (e.aborted) throw new RU(e.reason);};-function eU(e, t) {- let n = XH;+function WU(e, t) {+ let n = BU;return new Promise((r, i) => {- let a = () => i(new JH(e.reason));+ let a = () => i(new RU(e.reason));if (e.aborted) {a();return;}- n = QH(e, a), t.finally(() => n()).then(r, i);+ n = HU(e, a), t.finally(() => n()).then(r, i);}).finally(() => {- n = XH;+ n = BU;});}-var tU = async (e, t) => {+var GU = async (e, t) => {try {return await Promise.resolve(), {status: "ok",@@ -50768,40 +52155,40 @@ var tU = async (e, t) => {};} catch (e) {return {- status: e instanceof JH ? "cancelled" : "rejected",+ status: e instanceof RU ? "cancelled" : "rejected",error: e};} finally {t?.();}-}, nU = (e) => (t) => ZH(eU(e, t).then((t) => ($H(e), t))), rU = (e) => {- let t = nU(e);+}, KU = (e) => (t) => VU(WU(e, t).then((t) => (UU(e), t))), qU = (e) => {+ let t = KU(e);return (e) => t(new Promise((t) => setTimeout(t, e)));-}, { assign: iU } = Object, aU = {}, oU = "listenerMiddleware", sU = (e, t) => {- let n = (t) => QH(e, () => t.abort(e.reason));+}, { assign: JU } = Object, YU = {}, XU = "listenerMiddleware", ZU = (e, t) => {+ let n = (t) => HU(e, () => t.abort(e.reason));return (r, i) => {- YH(r, "taskExecutor");+ zU(r, "taskExecutor");let a = new AbortController();n(a);- let o = tU(async () => {- $H(e), $H(a.signal);+ let o = GU(async () => {+ UU(e), UU(a.signal);let t = await r({- pause: nU(a.signal),- delay: rU(a.signal),+ pause: KU(a.signal),+ delay: qU(a.signal),signal: a.signal});- return $H(a.signal), t;- }, () => a.abort(GH));- return i?.autoJoin && t.push(o.catch(XH)), {- result: nU(e)(o),+ return UU(a.signal), t;+ }, () => a.abort(FU));+ return i?.autoJoin && t.push(o.catch(BU)), {+ result: KU(e)(o),cancel() {- a.abort(WH);+ a.abort(PU);}};};-}, cU = (e, t) => {+}, QU = (e, t) => {let n = async (n, r) => {- $H(t);+ UU(t);let i = () => {}, a = [new Promise((t, r) => {let a = e({predicate: n,@@ -50819,47 +52206,47 @@ var tU = async (e, t) => {})];r != null && a.push(new Promise((e) => setTimeout(e, r, null)));try {- let e = await eU(t, Promise.race(a));- return $H(t), e;+ let e = await WU(t, Promise.race(a));+ return UU(t), e;} finally {i();}};- return ((e, t) => ZH(n(e, t)));-}, lU = (e) => {+ return ((e, t) => VU(n(e, t)));+}, $U = (e) => {let { type: t, actionCreator: n, matcher: r, predicate: i, effect: a } = e;- if (t) i = dH(t).match;+ if (t) i = tU(t).match;else if (n) t = n.type, i = n.match;else if (r) i = r;- else if (!i) throw Error(bU(21));- return YH(a, "options.listener"), {+ else if (!i) throw Error(uW(21));+ return zU(a, "options.listener"), {predicate: i,type: t,effect: a};-}, uU = /* @__PURE__ */ iU((e) => {- let { type: t, predicate: n, effect: r } = lU(e);+}, eW = /* @__PURE__ */ JU((e) => {+ let { type: t, predicate: n, effect: r } = $U(e);return {- id: OH(),+ id: vU(),effect: r,type: t,predicate: n,pending: /* @__PURE__ */ new Set(),unsubscribe: () => {- throw Error(bU(22));+ throw Error(uW(22));}};-}, { withTypes: () => uU }), dU = (e, t) => {- let { type: n, effect: r, predicate: i } = lU(t);+}, { withTypes: () => eW }), tW = (e, t) => {+ let { type: n, effect: r, predicate: i } = $U(t);return Array.from(e.values()).find((e) => (typeof n == "string" ? e.type === n : e.predicate === i) && e.effect === r);-}, fU = (e) => {+}, nW = (e) => {e.pending.forEach((e) => {- e.abort(KH);+ e.abort(IU);});-}, pU = (e, t) => () => {- for (let e of t.keys()) fU(e);+}, rW = (e, t) => () => {+ for (let e of t.keys()) nW(e);e.clear();-}, mU = (e, t, n) => {+}, iW = (e, t, n) => {try {e(t, n);} catch (e) {@@ -50867,74 +52254,74 @@ var tU = async (e, t) => {throw e;}, 0);}-}, hU = /* @__PURE__ */ iU(/* @__PURE__ */ dH(`${oU}/add`), { withTypes: () => hU }), gU = /* @__PURE__ */ dH(`${oU}/removeAll`), _U = /* @__PURE__ */ iU(/* @__PURE__ */ dH(`${oU}/remove`), { withTypes: () => _U }), vU = (...e) => {- console.error(`${oU}/error`, ...e);-}, yU = (e = {}) => {+}, aW = /* @__PURE__ */ JU(/* @__PURE__ */ tU(`${XU}/add`), { withTypes: () => aW }), oW = /* @__PURE__ */ tU(`${XU}/removeAll`), sW = /* @__PURE__ */ JU(/* @__PURE__ */ tU(`${XU}/remove`), { withTypes: () => sW }), cW = (...e) => {+ console.error(`${XU}/error`, ...e);+}, lW = (e = {}) => {let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = (e) => {let t = n.get(e) ?? 0;n.set(e, t + 1);}, i = (e) => {let t = n.get(e) ?? 1;t === 1 ? n.delete(e) : n.set(e, t - 1);- }, { extra: a, onError: o = vU } = e;- YH(o, "onError");+ }, { extra: a, onError: o = cW } = e;+ zU(o, "onError");let s = (e) => (e.unsubscribe = () => t.delete(e.id), t.set(e.id, e), (t) => {- e.unsubscribe(), t?.cancelActive && fU(e);+ e.unsubscribe(), t?.cancelActive && nW(e);}), c = ((e) => {- let n = dU(t, e) ?? uU(e);+ let n = tW(t, e) ?? eW(e);return s(n);});- iU(c, { withTypes: () => c });+ JU(c, { withTypes: () => c });let l = (e) => {- let n = dU(t, e);- return n && (n.unsubscribe(), e.cancelActive && fU(n)), !!n;+ let n = tW(t, e);+ return n && (n.unsubscribe(), e.cancelActive && nW(n)), !!n;};- iU(l, { withTypes: () => l });+ JU(l, { withTypes: () => l });let u = async (e, n, s, l) => {- let u = new AbortController(), d = cU(c, u.signal), f = [];+ let u = new AbortController(), d = QU(c, u.signal), f = [];try {- e.pending.add(u), r(e), await Promise.resolve(e.effect(n, iU({}, s, {+ e.pending.add(u), r(e), await Promise.resolve(e.effect(n, JU({}, s, {getOriginalState: l,condition: (e, t) => d(e, t).then(Boolean),take: d,- delay: rU(u.signal),- pause: nU(u.signal),+ delay: qU(u.signal),+ pause: KU(u.signal),extra: a,signal: u.signal,- fork: sU(u.signal, f),+ fork: ZU(u.signal, f),unsubscribe: e.unsubscribe,subscribe: () => {t.set(e.id, e);},cancelActiveListeners: () => {e.pending.forEach((e, t, n) => {- e !== u && (e.abort(KH), n.delete(e));+ e !== u && (e.abort(IU), n.delete(e));});},cancel: () => {- u.abort(KH), e.pending.delete(u);+ u.abort(IU), e.pending.delete(u);},throwIfCancelled: () => {- $H(u.signal);+ UU(u.signal);}})));} catch (e) {- e instanceof JH || mU(o, e, { raisedBy: "effect" });+ e instanceof RU || iW(o, e, { raisedBy: "effect" });} finally {- await Promise.all(f), u.abort(qH), i(e), e.pending.delete(u);+ await Promise.all(f), u.abort(LU), i(e), e.pending.delete(u);}- }, d = pU(t, n);+ }, d = rW(t, n);return {middleware: (e) => (n) => (r) => {- if (!RB(r)) return n(r);- if (hU.match(r)) return c(r.payload);- if (gU.match(r)) {+ if (!OV(r)) return n(r);+ if (aW.match(r)) return c(r.payload);+ if (oW.match(r)) {d();return;}- if (_U.match(r)) return l(r.payload);+ if (sW.match(r)) return l(r.payload);let i = e.getState(), a = () => {- if (i === aU) throw Error(bU(23));+ if (i === YU) throw Error(uW(23));return i;}, s;try {@@ -50945,13 +52332,13 @@ var tU = async (e, t) => {try {s = t.predicate(r, n, i);} catch (e) {- s = !1, mU(o, e, { raisedBy: "predicate" });+ s = !1, iW(o, e, { raisedBy: "predicate" });}s && u(t, r, e, a);}}} finally {- i = aU;+ i = YU;}return s;},@@ -50960,12 +52347,12 @@ var tU = async (e, t) => {clearListeners: d};};-function bU(e) {+function uW(e) {return `Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;}//#endregion//#region node_modules/recharts/es6/state/layoutSlice.js-var xU = NH({+var dW = CU({name: "chartLayout",initialState: {layoutType: "horizontal",@@ -50993,23 +52380,23 @@ var xU = NH({e.scale = t.payload;}}-}), { setMargin: SU, setLayout: CU, setChartSize: wU, setScale: TU } = xU.actions, EU = xU.reducer;+}), { setMargin: fW, setLayout: pW, setChartSize: mW, setScale: hW } = dW.actions, gW = dW.reducer;//#endregion//#region node_modules/recharts/es6/util/getSliced.js-function DU(e, t, n) {+function _W(e, t, n) {return Array.isArray(e) && e && t + n !== 0 ? e.slice(t, n + 1) : e;}//#endregion//#region node_modules/recharts/es6/util/isWellBehavedNumber.js-function OU(e) {+function vW(e) {return Number.isFinite(e);}-function kU(e) {+function yW(e) {return typeof e == "number" && e > 0 && Number.isFinite(e);}//#endregion//#region node_modules/recharts/es6/util/ChartUtils.js-function AU(e, t) {+function bW(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -51019,30 +52406,30 @@ function AU(e, t) {}return n;}-function jU(e) {+function xW(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? AU(Object(n), !0).forEach(function(t) {- MU(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : AU(Object(n)).forEach(function(t) {+ t % 2 ? bW(Object(n), !0).forEach(function(t) {+ SW(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : bW(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function MU(e, t, n) {- return (t = NU(t)) in e ? Object.defineProperty(e, t, {+function SW(e, t, n) {+ return (t = CW(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function NU(e) {- var t = PU(e, "string");+function CW(e) {+ var t = wW(e, "string");return typeof t == "symbol" ? t : t + "";}-function PU(e, t) {+function wW(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -51052,63 +52439,63 @@ function PU(e, t) {}return (t === "string" ? String : Number)(e);}-function FU(e, t, n) {- return Mz(e) || Mz(t) ? n : Ez(t) ? bz(e, t, n) : typeof t == "function" ? t(e) : n;+function TW(e, t, n) {+ return uB(e) || uB(t) ? n : iB(t) ? Qz(e, t, n) : typeof t == "function" ? t(e) : n;}-var IU = (e, t, n) => {+var EW = (e, t, n) => {if (t && n) {var { width: r, height: i } = n, { align: a, verticalAlign: o, layout: s } = t;- if ((s === "vertical" || s === "horizontal" && o === "middle") && a !== "center" && Z(e[a])) return jU(jU({}, e), {}, { [a]: e[a] + (r || 0) });- if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && Z(e[o])) return jU(jU({}, e), {}, { [o]: e[o] + (i || 0) });+ if ((s === "vertical" || s === "horizontal" && o === "middle") && a !== "center" && Z(e[a])) return xW(xW({}, e), {}, { [a]: e[a] + (r || 0) });+ if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && Z(e[o])) return xW(xW({}, e), {}, { [o]: e[o] + (i || 0) });}return e;-}, LU = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", RU = (e, t, n, r) => {+}, DW = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", OW = (e, t, n, r) => {if (r) return e.map((e) => e.coordinate);var i, a, o = e.map((e) => (e.coordinate === t && (i = !0), e.coordinate === n && (a = !0), e.coordinate));return i || o.push(t), a || o.push(n), o;-}, zU = (e, t, n) => {+}, kW = (e, t, n) => {if (!e) return null;var { duplicateDomain: r, type: i, range: a, scale: o, realScaleType: s, isCategorical: c, categoricalDomain: l, tickCount: u, ticks: d, niceTicks: f, axisType: p } = e;if (!o) return null;var m = s === "scaleBand" && o.bandwidth ? o.bandwidth() / 2 : 2, h = (t || n) && i === "category" && o.bandwidth ? o.bandwidth() / m : 0;- return h = p === "angleAxis" && a && a.length >= 2 ? Cz(a[0] - a[1]) * 2 * h : h, t && (d || f) ? (d || f || []).map((e, t) => {+ return h = p === "angleAxis" && a && a.length >= 2 ? tB(a[0] - a[1]) * 2 * h : h, t && (d || f) ? (d || f || []).map((e, t) => {var n = r ? r.indexOf(e) : e, i = o.map(n);- return OU(i) ? {+ return vW(i) ? {coordinate: i + h,value: e,offset: h,index: t} : null;- }).filter(Pz) : c && l ? l.map((e, t) => {+ }).filter(fB) : c && l ? l.map((e, t) => {var n = o.map(e);- return OU(n) ? {+ return vW(n) ? {coordinate: n + h,value: e,index: t,offset: h} : null;- }).filter(Pz) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {+ }).filter(fB) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {var n = o.map(e);- return OU(n) ? {+ return vW(n) ? {coordinate: n + h,value: e,index: t,offset: h} : null;- }).filter(Pz) : o.domain().map((e, t) => {+ }).filter(fB) : o.domain().map((e, t) => {var n = o.map(e);- return OU(n) ? {+ return vW(n) ? {coordinate: n + h,value: r ? r[e] : e,index: t,offset: h} : null;- }).filter(Pz);-}, BU = (e, t) => {+ }).filter(fB);+}, AW = (e, t) => {if (!t || t.length !== 2 || !Z(t[0]) || !Z(t[1])) return e;var n = Math.min(t[0], t[1]), r = Math.max(t[0], t[1]), i = [e[0], e[1]];return (!Z(e[0]) || e[0] < n) && (i[0] = n), (!Z(e[1]) || e[1] > r) && (i[1] = r), i[0] > r && (i[0] = r), i[1] < n && (i[1] = n), i;-}, VU = {+}, jW = {sign: (e) => {var t = e.length;if (!(t <= 0)) {@@ -51116,16 +52503,16 @@ var IU = (e, t, n) => {if (!(n == null || n <= 0)) for (var r = 0; r < n; ++r) for (var i = 0, a = 0, o = 0; o < t; ++o) {var s = e[o]?.[r];if (s != null) {- var c = s[1], l = s[0], u = wz(c) ? l : c;+ var c = s[1], l = s[0], u = nB(c) ? l : c;u >= 0 ? (s[0] = i, i += u, s[1] = i) : (s[0] = a, a += u, s[1] = a);}}}},- expand: ype,- none: fz,- silhouette: bpe,- wiggle: xpe,+ expand: Zpe,+ none: Wz,+ silhouette: Qpe,+ wiggle: $pe,positive: (e) => {var t = e.length;if (!(t <= 0)) {@@ -51133,70 +52520,70 @@ var IU = (e, t, n) => {if (!(n == null || n <= 0)) for (var r = 0; r < n; ++r) for (var i = 0, a = 0; a < t; ++a) {var o = e[a]?.[r];if (o != null) {- var s = wz(o[1]) ? o[0] : o[1];+ var s = nB(o[1]) ? o[0] : o[1];s >= 0 ? (o[0] = i, i += s, o[1] = i) : (o[0] = 0, o[1] = 0);}}}}-}, HU = (e, t, n) => {- var r = VU[n] ?? fz, i = vpe().keys(t).value((e, t) => Number(FU(e, t, 0))).order(pz).offset(r)(e);+}, MW = (e, t, n) => {+ var r = jW[n] ?? Wz, i = Xpe().keys(t).value((e, t) => Number(TW(e, t, 0))).order(Gz).offset(r)(e);return i.forEach((n, r) => {n.forEach((n, i) => {- var a = FU(e[i], t[r], 0);+ var a = TW(e[i], t[r], 0);Array.isArray(a) && a.length === 2 && Z(a[0]) && Z(a[1]) && (n[0] = a[0], n[1] = a[1]);});}), i;};-function UU(e) {+function NW(e) {return e == null ? void 0 : String(e);}-function WU(e) {+function PW(e) {var { axis: t, ticks: n, bandSize: r, entry: i, index: a, dataKey: o } = e;if (t.type === "category") {- if (!t.allowDuplicatedCategory && t.dataKey && !Mz(i[t.dataKey])) {- var s = jz(n, "value", i[t.dataKey]);+ if (!t.allowDuplicatedCategory && t.dataKey && !uB(i[t.dataKey])) {+ var s = lB(n, "value", i[t.dataKey]);if (s) return s.coordinate + r / 2;}return n != null && n[a] ? n[a].coordinate + r / 2 : null;}- var c = FU(i, Mz(o) ? t.dataKey : o), l = t.scale.map(c);+ var c = TW(i, uB(o) ? t.dataKey : o), l = t.scale.map(c);return Z(l) ? l : null;}-var GU = (e) => {+var FW = (e) => {var { axis: t, ticks: n, offset: r, bandSize: i, entry: a, index: o } = e;if (t.type === "category") return n[o] ? n[o].coordinate + r : null;- var s = FU(a, t.dataKey, t.scale.domain()[o]);- if (Mz(s)) return null;+ var s = TW(a, t.dataKey, t.scale.domain()[o]);+ if (uB(s)) return null;var c = t.scale.map(s);return Z(c) ? c - i / 2 + r : null;-}, KU = (e) => {+}, IW = (e) => {var { numericAxis: t } = e, n = t.scale.domain();if (t.type === "number") {var r = Math.min(n[0], n[1]), i = Math.max(n[0], n[1]);return r <= 0 && i >= 0 ? 0 : i < 0 ? i : r;}return n[0];-}, qU = (e) => {+}, LW = (e) => {var t = e.flat(2).filter(Z);return [Math.min(...t), Math.max(...t)];-}, JU = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], YU = (e, t, n) => {- if (e != null) return JU(Object.keys(e).reduce((r, i) => {+}, RW = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], zW = (e, t, n) => {+ if (e != null) return RW(Object.keys(e).reduce((r, i) => {var a = e[i];if (!a) return r;var { stackedData: o } = a, s = o.reduce((e, r) => {- var i = qU(DU(r, t, n));- return !OU(i[0]) || !OU(i[1]) ? e : [Math.min(e[0], i[0]), Math.max(e[1], i[1])];+ var i = LW(_W(r, t, n));+ return !vW(i[0]) || !vW(i[1]) ? e : [Math.min(e[0], i[0]), Math.max(e[1], i[1])];}, [Infinity, -Infinity]);return [Math.min(s[0], r[0]), Math.max(s[1], r[1])];}, [Infinity, -Infinity]));-}, XU = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, ZU = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, QU = (e, t, n) => {+}, BW = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, VW = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, HW = (e, t, n) => {if (e && e.scale && e.scale.bandwidth) {var r = e.scale.bandwidth();if (!n || r > 0) return r;}if (e && t && t.length >= 2) {- for (var i = EB(t, (e) => e.coordinate), a = Infinity, o = 1, s = i.length; o < s; o++) {+ for (var i = dV(t, (e) => e.coordinate), a = Infinity, o = 1, s = i.length; o < s; o++) {var c = i[o], l = i[o - 1];a = Math.min((c?.coordinate || 0) - (l?.coordinate || 0), a);}@@ -51204,26 +52591,26 @@ var GU = (e) => {}return n ? void 0 : 0;};-function $U(e) {+function UW(e) {var { tooltipEntrySettings: t, dataKey: n, payload: r, value: i, name: a } = e;- return jU(jU({}, t), {}, {+ return xW(xW({}, t), {}, {dataKey: n,payload: r,value: i,name: a});}-function eW(e, t) {+function WW(e, t) {if (e) return String(e);if (typeof t == "string") return t;}-var tW = (e, t) => {+var GW = (e, t) => {if (t === "horizontal") return e.relativeX;if (t === "vertical") return e.relativeY;-}, nW = (e, t) => t === "centric" ? e.angle : e.radius, rW = (e) => e.layout.width, iW = (e) => e.layout.height, aW = (e) => e.layout.scale, oW = (e) => e.layout.margin, sW = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), cW = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), lW = "data-recharts-item-index";+}, KW = (e, t) => t === "centric" ? e.angle : e.radius, qW = (e) => e.layout.width, JW = (e) => e.layout.height, YW = (e) => e.layout.scale, XW = (e) => e.layout.margin, ZW = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), QW = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), $W = "data-recharts-item-index";//#endregion//#region node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js-function uW(e, t) {+function eG(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -51233,30 +52620,30 @@ function uW(e, t) {}return n;}-function dW(e) {+function tG(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? uW(Object(n), !0).forEach(function(t) {- fW(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : uW(Object(n)).forEach(function(t) {+ t % 2 ? eG(Object(n), !0).forEach(function(t) {+ nG(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : eG(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function fW(e, t, n) {- return (t = pW(t)) in e ? Object.defineProperty(e, t, {+function nG(e, t, n) {+ return (t = rG(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function pW(e) {- var t = mW(e, "string");+function rG(e) {+ var t = iG(e, "string");return typeof t == "symbol" ? t : t + "";}-function mW(e, t) {+function iG(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -51266,58 +52653,58 @@ function mW(e, t) {}return (t === "string" ? String : Number)(e);}-var hW = (e) => e.brush.height;-function gW(e) {- return cW(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);-}-function _W(e) {- return cW(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);-}-function vW(e) {- return sW(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + t.height : e, 0);-}-function yW(e) {- return sW(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + t.height : e, 0);-}-var bW = $([- rW,- iW,- oW,- hW,- gW,- _W,- vW,- yW,- DB,- rhe+var aG = (e) => e.brush.height;+function oG(e) {+ return QW(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);+}+function sG(e) {+ return QW(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);+}+function cG(e) {+ return ZW(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + t.height : e, 0);+}+function lG(e) {+ return ZW(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + t.height : e, 0);+}+var uG = $([+ qW,+ JW,+ XW,+ aG,+ oG,+ sG,+ cG,+ lG,+ fV,+ pV], (e, t, n, r, i, a, o, s, c, l) => {var u = {left: (n.left || 0) + i,right: (n.right || 0) + a- }, d = dW(dW({}, {+ }, d = tG(tG({}, {top: (n.top || 0) + o,bottom: (n.bottom || 0) + s}), u), f = d.bottom;- d.bottom += r, d = IU(d, c, l);+ d.bottom += r, d = EW(d, c, l);var p = e - d.left - d.right, m = t - d.top - d.bottom;- return dW(dW({ brushBottom: f }, d), {}, {+ return tG(tG({ brushBottom: f }, d), {}, {width: Math.max(p, 0),height: Math.max(m, 0)});-}), xW = $(bW, (e) => ({+}), dG = $(uG, (e) => ({x: e.left,y: e.top,width: e.width,height: e.height-})), SW = $(rW, iW, (e, t) => ({+})), fG = $(qW, JW, (e, t) => ({x: 0,y: 0,width: e,height: t-})), CW = /*#__PURE__*/ (0, I.createContext)(null), wW = () => (0, I.useContext)(CW) != null, TW = (e) => e.brush, EW = $([- TW,- bW,- oW+})), pG = /*#__PURE__*/ (0, I.createContext)(null), mG = () => (0, I.useContext)(pG) != null, hG = (e) => e.brush, gG = $([+ hG,+ uG,+ XW], (e, t, n) => ({height: e.height,x: Z(e.x) ? e.x : t.left,@@ -51326,7 +52713,7 @@ var bW = $([}));//#endregion//#region node_modules/es-toolkit/dist/function/debounce.mjs-function DW(e, t, { signal: n, edges: r } = {}) {+function _G(e, t, { signal: n, edges: r } = {}) {let i, a = null, o = r != null && r.includes("leading"), s = r == null || r.includes("trailing"), c = () => {a !== null && (e.apply(i, a), i = void 0, a = null);}, l = () => {@@ -51351,11 +52738,11 @@ function DW(e, t, { signal: n, edges: r } = {}) {}//#endregion//#region node_modules/es-toolkit/dist/compat/function/debounce.mjs-function OW(e, t = 0, n = {}) {+function vG(e, t = 0, n = {}) {typeof n != "object" && (n = {});let { leading: r = !1, trailing: i = !0, maxWait: a } = n, o = [, ,];r && (o[0] = "leading"), i && (o[1] = "trailing");- let s, c = null, l = DW(function(...t) {+ let s, c = null, l = _G(function(...t) {s = e.apply(this, t), c = null;}, t, { edges: o }), u = function(...t) {return a != null && (c === null && (c = Date.now()), Date.now() - c >= a) ? ((r || i) && (s = e.apply(this, t)), c = Date.now(), l.cancel(), l.schedule(), s) : (l.apply(this, t), s);@@ -51364,9 +52751,9 @@ function OW(e, t = 0, n = {}) {}//#endregion//#region node_modules/es-toolkit/dist/compat/function/throttle.mjs-function kW(e, t = 0, n = {}) {+function yG(e, t = 0, n = {}) {let { leading: r = !0, trailing: i = !0 } = n;- return OW(e, t, {+ return vG(e, t, {leading: r,maxWait: t,trailing: i@@ -51374,7 +52761,7 @@ function kW(e, t = 0, n = {}) {}//#endregion//#region node_modules/recharts/es6/util/LogUtils.js-var AW = function(e, t) {+var bG = function(e, t) {var n = [...arguments].slice(2);if (typeof console < "u" && console.warn && (t === void 0 && console.warn("LogUtils requires an error message argument"), !e)) {if (t === void 0) console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");@@ -51383,7 +52770,7 @@ var AW = function(e, t) {console.warn(t.replace(/%s/g, () => n[r++]));}}-}, jW = {+}, xG = {width: "100%",height: "100%",debounce: 0,@@ -51392,45 +52779,45 @@ var AW = function(e, t) {width: -1,height: -1}-}, MW = (e, t, n) => {- var { width: r = jW.width, height: i = jW.height, aspect: a, maxHeight: o } = n, s = Tz(r) ? e : Number(r), c = Tz(i) ? t : Number(i);+}, SG = (e, t, n) => {+ var { width: r = xG.width, height: i = xG.height, aspect: a, maxHeight: o } = n, s = rB(r) ? e : Number(r), c = rB(i) ? t : Number(i);return a && a > 0 && (s ? c = s / a : c && (s = c * a), o && c != null && c > o && (c = o)), {calculatedWidth: s,calculatedHeight: c};-}, NW = {+}, CG = {width: 0,height: 0,overflow: "visible"-}, PW = {+}, wG = {width: 0,overflowX: "visible"-}, FW = {+}, TG = {height: 0,overflowY: "visible"-}, IW = {}, LW = (e) => {- var { width: t, height: n } = e, r = Tz(t), i = Tz(n);- return r && i ? NW : r ? PW : i ? FW : IW;+}, EG = {}, DG = (e) => {+ var { width: t, height: n } = e, r = rB(t), i = rB(n);+ return r && i ? CG : r ? wG : i ? TG : EG;};-function RW(e) {+function OG(e) {var { width: t, height: n, aspect: r } = e, i = t, a = n;- return i === void 0 && a === void 0 ? (i = jW.width, a = jW.height) : i === void 0 ? i = r && r > 0 ? void 0 : jW.width : a === void 0 && (a = r && r > 0 ? void 0 : jW.height), {+ return i === void 0 && a === void 0 ? (i = xG.width, a = xG.height) : i === void 0 ? i = r && r > 0 ? void 0 : xG.width : a === void 0 && (a = r && r > 0 ? void 0 : xG.height), {width: i,height: a};}//#endregion//#region node_modules/recharts/es6/component/ResponsiveContainer.js-function zW() {- return zW = Object.assign ? Object.assign.bind() : function(e) {+function kG() {+ return kG = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, zW.apply(null, arguments);+ }, kG.apply(null, arguments);}-function BW(e, t) {+function AG(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -51440,30 +52827,30 @@ function BW(e, t) {}return n;}-function VW(e) {+function jG(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? BW(Object(n), !0).forEach(function(t) {- HW(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : BW(Object(n)).forEach(function(t) {+ t % 2 ? AG(Object(n), !0).forEach(function(t) {+ MG(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : AG(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function HW(e, t, n) {- return (t = UW(t)) in e ? Object.defineProperty(e, t, {+function MG(e, t, n) {+ return (t = NG(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function UW(e) {- var t = WW(e, "string");+function NG(e) {+ var t = PG(e, "string");return typeof t == "symbol" ? t : t + "";}-function WW(e, t) {+function PG(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -51473,19 +52860,19 @@ function WW(e, t) {}return (t === "string" ? String : Number)(e);}-var GW = /*#__PURE__*/ (0, I.createContext)(jW.initialDimension);-function KW(e) {- return kU(e.width) && kU(e.height);+var FG = /*#__PURE__*/ (0, I.createContext)(xG.initialDimension);+function IG(e) {+ return yW(e.width) && yW(e.height);}-function qW(e) {+function LG(e) {var { children: t, width: n, height: r } = e, i = (0, I.useMemo)(() => ({width: n,height: r}), [n, r]);- return KW(i) ? /*#__PURE__*/ I.createElement(GW.Provider, { value: i }, t) : null;+ return IG(i) ? /*#__PURE__*/ I.createElement(FG.Provider, { value: i }, t) : null;}-var JW = () => (0, I.useContext)(GW), YW = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {- var { aspect: n, initialDimension: r = jW.initialDimension, width: i, height: a, minWidth: o = jW.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = jW.debounce, id: d, className: f, onResize: p, style: m = {} } = e, h = (0, I.useRef)(null), g = (0, I.useRef)();+var RG = () => (0, I.useContext)(FG), zG = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {+ var { aspect: n, initialDimension: r = xG.initialDimension, width: i, height: a, minWidth: o = xG.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = xG.debounce, id: d, className: f, onResize: p, style: m = {} } = e, h = (0, I.useRef)(null), g = (0, I.useRef)();g.current = p, (0, I.useImperativeHandle)(t, () => h.current);var [_, v] = (0, I.useState)({containerWidth: r.width,@@ -51500,7 +52887,7 @@ var JW = () => (0, I.useContext)(GW), YW = /*#__PURE__*/ (0, I.forwardRef)((e, t});}, []);(0, I.useEffect)(() => {- if (h.current == null || typeof ResizeObserver > "u") return Fz;+ if (h.current == null || typeof ResizeObserver > "u") return pB;var e = (e) => {var t, n = e[0];if (n != null) {@@ -51508,7 +52895,7 @@ var JW = () => (0, I.useContext)(GW), YW = /*#__PURE__*/ (0, I.forwardRef)((e, ty(r, i), (t = g.current) == null || t.call(g, r, i);}};- u > 0 && (e = kW(e, u, {+ u > 0 && (e = yG(e, u, {trailing: !0,leading: !1}));@@ -51518,17 +52905,17 @@ var JW = () => (0, I.useContext)(GW), YW = /*#__PURE__*/ (0, I.forwardRef)((e, t};}, [y, u]);var { containerWidth: b, containerHeight: x } = _;- AW(!n || n > 0, "The aspect(%s) must be greater than zero.", n);- var { calculatedWidth: S, calculatedHeight: C } = MW(b, x, {+ bG(!n || n > 0, "The aspect(%s) must be greater than zero.", n);+ var { calculatedWidth: S, calculatedHeight: C } = SG(b, x, {width: i,height: a,aspect: n,maxHeight: c});- return AW(S != null && S > 0 || C != null && C > 0, "The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.", S, C, i, a, o, s, n), /*#__PURE__*/ I.createElement("div", {+ return bG(S != null && S > 0 || C != null && C > 0, "The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.", S, C, i, a, o, s, n), /*#__PURE__*/ I.createElement("div", {id: d ? `${d}` : void 0,- className: Jm("recharts-responsive-container", f),- style: VW(VW({}, m), {}, {+ className: Xm("recharts-responsive-container", f),+ style: jG(jG({}, m), {}, {width: i,height: a,minWidth: o,@@ -51536,30 +52923,30 @@ var JW = () => (0, I.useContext)(GW), YW = /*#__PURE__*/ (0, I.forwardRef)((e, tmaxHeight: c}),ref: h- }, /*#__PURE__*/ I.createElement("div", { style: LW({+ }, /*#__PURE__*/ I.createElement("div", { style: DG({width: i,height: a- }) }, /*#__PURE__*/ I.createElement(qW, {+ }) }, /*#__PURE__*/ I.createElement(LG, {width: S,height: C}, l)));-}), XW = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {- var n = JW();- if (kU(n.width) && kU(n.height)) return e.children;- var { width: r, height: i } = RW({+}), BG = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {+ var n = RG();+ if (yW(n.width) && yW(n.height)) return e.children;+ var { width: r, height: i } = OG({width: e.width,height: e.height,aspect: e.aspect- }), { calculatedWidth: a, calculatedHeight: o } = MW(void 0, void 0, {+ }), { calculatedWidth: a, calculatedHeight: o } = SG(void 0, void 0, {width: r,height: i,aspect: e.aspect,maxHeight: e.maxHeight});- return Z(a) && Z(o) ? /*#__PURE__*/ I.createElement(qW, {+ return Z(a) && Z(o) ? /*#__PURE__*/ I.createElement(LG, {width: a,height: o- }, e.children) : /*#__PURE__*/ I.createElement(YW, zW({}, e, {+ }, e.children) : /*#__PURE__*/ I.createElement(zG, kG({}, e, {width: r,height: i,ref: t@@ -51567,7 +52954,7 @@ var JW = () => (0, I.useContext)(GW), YW = /*#__PURE__*/ (0, I.forwardRef)((e, t});//#endregion//#region node_modules/recharts/es6/context/chartLayoutContext.js-function ZW(e) {+function VG(e) {if (e) return {x: e.x,y: e.y,@@ -51577,15 +52964,15 @@ function ZW(e) {height: e.height};}-var QW = () => {- var e = wW(), t = Q(xW), n = Q(EW), r = Q(TW)?.padding;+var HG = () => {+ var e = mG(), t = Q(dG), n = Q(gG), r = Q(hG)?.padding;return !e || !n || !r ? t : {width: n.width - r.left - r.right,height: n.height - r.top - r.bottom,x: r.left,y: r.top};-}, $W = {+}, UG = {top: 0,bottom: 0,left: 0,@@ -51593,16 +52980,16 @@ var QW = () => {width: 0,height: 0,brushBottom: 0-}, eG = () => Q(bW) ?? $W, tG = () => Q(rW), nG = () => Q(iW), rG = () => Q((e) => e.layout.margin), iG = (e) => e.layout.layoutType, aG = () => Q(iG), oG = () => {- var e = aG();+}, WG = () => Q(uG) ?? UG, GG = () => Q(qW), KG = () => Q(JW), qG = () => Q((e) => e.layout.margin), JG = (e) => e.layout.layoutType, YG = () => Q(JG), XG = () => {+ var e = YG();if (e === "horizontal" || e === "vertical") return e;-}, sG = (e) => {+}, ZG = (e) => {var t = e.layout.layoutType;if (t === "centric" || t === "radial") return t;-}, cG = () => Q(sG), lG = () => aG() !== void 0, uG = (e) => {- var t = vB(), n = wW(), { width: r, height: i } = e, a = JW(), o = r, s = i;+}, QG = () => Q(ZG), $G = () => YG() !== void 0, eK = (e) => {+ var t = XB(), n = mG(), { width: r, height: i } = e, a = RG(), o = r, s = i;return a && (o = a.width > 0 ? a.width : r, s = a.height > 0 ? a.height : i), (0, I.useEffect)(() => {- !n && kU(o) && kU(s) && t(wU({+ !n && yW(o) && yW(s) && t(mW({width: o,height: s}));@@ -51612,64 +52999,64 @@ var QW = () => {o,s]), null;-}, dG = Symbol.for("immer-nothing"), fG = Symbol.for("immer-draftable"), pG = Symbol.for("immer-state");-function mG(e, ...t) {+}, tK = Symbol.for("immer-nothing"), nK = Symbol.for("immer-draftable"), rK = Symbol.for("immer-state");+function iK(e, ...t) {throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);}-var hG = Object.getPrototypeOf;-function gG(e) {- return !!e && !!e[pG];+var aK = Object.getPrototypeOf;+function oK(e) {+ return !!e && !!e[rK];}-function _G(e) {- return e ? bG(e) || Array.isArray(e) || !!e[fG] || !!e.constructor?.[fG] || EG(e) || DG(e) : !1;+function sK(e) {+ return e ? uK(e) || Array.isArray(e) || !!e[nK] || !!e.constructor?.[nK] || gK(e) || _K(e) : !1;}-var vG = Object.prototype.constructor.toString(), yG = /* @__PURE__ */ new WeakMap();-function bG(e) {+var cK = Object.prototype.constructor.toString(), lK = /* @__PURE__ */ new WeakMap();+function uK(e) {if (!e || typeof e != "object") return !1;let t = Object.getPrototypeOf(e);if (t === null || t === Object.prototype) return !0;let n = Object.hasOwnProperty.call(t, "constructor") && t.constructor;if (n === Object) return !0;if (typeof n != "function") return !1;- let r = yG.get(n);- return r === void 0 && (r = Function.toString.call(n), yG.set(n, r)), r === vG;+ let r = lK.get(n);+ return r === void 0 && (r = Function.toString.call(n), lK.set(n, r)), r === cK;}-function xG(e, t, n = !0) {- SG(e) === 0 ? (n ? Reflect.ownKeys(e) : Object.keys(e)).forEach((n) => {+function dK(e, t, n = !0) {+ fK(e) === 0 ? (n ? Reflect.ownKeys(e) : Object.keys(e)).forEach((n) => {t(n, e[n], e);}) : e.forEach((n, r) => t(r, n, e));}-function SG(e) {- let t = e[pG];- return t ? t.type_ : Array.isArray(e) ? 1 : EG(e) ? 2 : DG(e) ? 3 : 0;+function fK(e) {+ let t = e[rK];+ return t ? t.type_ : Array.isArray(e) ? 1 : gK(e) ? 2 : _K(e) ? 3 : 0;}-function CG(e, t) {- return SG(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);+function pK(e, t) {+ return fK(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);}-function wG(e, t, n) {- let r = SG(e);+function mK(e, t, n) {+ let r = fK(e);r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;}-function TG(e, t) {+function hK(e, t) {return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;}-function EG(e) {+function gK(e) {return e instanceof Map;}-function DG(e) {+function _K(e) {return e instanceof Set;}-function OG(e) {+function vK(e) {return e.copy_ || e.base_;}-function kG(e, t) {- if (EG(e)) return new Map(e);- if (DG(e)) return new Set(e);+function yK(e, t) {+ if (gK(e)) return new Map(e);+ if (_K(e)) return new Set(e);if (Array.isArray(e)) return Array.prototype.slice.call(e);- let n = bG(e);+ let n = uK(e);if (t === !0 || t === "class_only" && !n) {let t = Object.getOwnPropertyDescriptors(e);- delete t[pG];+ delete t[rK];let n = Reflect.ownKeys(t);for (let r = 0; r < n.length; r++) {let i = n[r], a = t[i];@@ -51680,40 +53067,40 @@ function kG(e, t) {value: e[i]});}- return Object.create(hG(e), t);+ return Object.create(aK(e), t);}{- let t = hG(e);+ let t = aK(e);if (t !== null && n) return { ...e };let r = Object.create(t);return Object.assign(r, e);}}-function AG(e, t = !1) {- return NG(e) || gG(e) || !_G(e) ? e : (SG(e) > 1 && Object.defineProperties(e, {- set: MG,- add: MG,- clear: MG,- delete: MG- }), Object.freeze(e), t && Object.values(e).forEach((e) => AG(e, !0)), e);+function bK(e, t = !1) {+ return CK(e) || oK(e) || !sK(e) ? e : (fK(e) > 1 && Object.defineProperties(e, {+ set: SK,+ add: SK,+ clear: SK,+ delete: SK+ }), Object.freeze(e), t && Object.values(e).forEach((e) => bK(e, !0)), e);}-function jG() {- mG(2);+function xK() {+ iK(2);}-var MG = { value: jG };-function NG(e) {+var SK = { value: xK };+function CK(e) {return typeof e != "object" || !e || Object.isFrozen(e);}-var PG = {};-function FG(e) {- let t = PG[e];- return t || mG(0, e), t;+var wK = {};+function TK(e) {+ let t = wK[e];+ return t || iK(0, e), t;}-var IG;-function LG() {- return IG;+var EK;+function DK() {+ return EK;}-function RG(e, t) {+function OK(e, t) {return {drafts_: [],parent_: e,@@ -51722,62 +53109,62 @@ function RG(e, t) {unfinalizedDrafts_: 0};}-function zG(e, t) {- t && (FG("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);+function kK(e, t) {+ t && (TK("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);}-function BG(e) {- VG(e), e.drafts_.forEach(UG), e.drafts_ = null;+function AK(e) {+ jK(e), e.drafts_.forEach(NK), e.drafts_ = null;}-function VG(e) {- e === IG && (IG = e.parent_);+function jK(e) {+ e === EK && (EK = e.parent_);}-function HG(e) {- return IG = RG(IG, e);+function MK(e) {+ return EK = OK(EK, e);}-function UG(e) {- let t = e[pG];+function NK(e) {+ let t = e[rK];t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;}-function WG(e, t) {+function PK(e, t) {t.unfinalizedDrafts_ = t.drafts_.length;let n = t.drafts_[0];- return e !== void 0 && e !== n ? (n[pG].modified_ && (BG(t), mG(4)), _G(e) && (e = GG(t, e), t.parent_ || qG(t, e)), t.patches_ && FG("Patches").generateReplacementPatches_(n[pG].base_, e, t.patches_, t.inversePatches_)) : e = GG(t, n, []), BG(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === dG ? void 0 : e;+ return e !== void 0 && e !== n ? (n[rK].modified_ && (AK(t), iK(4)), sK(e) && (e = FK(t, e), t.parent_ || LK(t, e)), t.patches_ && TK("Patches").generateReplacementPatches_(n[rK].base_, e, t.patches_, t.inversePatches_)) : e = FK(t, n, []), AK(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === tK ? void 0 : e;}-function GG(e, t, n) {- if (NG(t)) return t;- let r = e.immer_.shouldUseStrictIteration(), i = t[pG];- if (!i) return xG(t, (r, a) => KG(e, i, t, r, a, n), r), t;+function FK(e, t, n) {+ if (CK(t)) return t;+ let r = e.immer_.shouldUseStrictIteration(), i = t[rK];+ if (!i) return dK(t, (r, a) => IK(e, i, t, r, a, n), r), t;if (i.scope_ !== e) return t;- if (!i.modified_) return qG(e, i.base_, !0), i.base_;+ if (!i.modified_) return LK(e, i.base_, !0), i.base_;if (!i.finalized_) {i.finalized_ = !0, i.scope_.unfinalizedDrafts_--;let t = i.copy_, a = t, o = !1;- i.type_ === 3 && (a = new Set(t), t.clear(), o = !0), xG(a, (r, a) => KG(e, i, t, r, a, n, o), r), qG(e, t, !1), n && e.patches_ && FG("Patches").generatePatches_(i, n, e.patches_, e.inversePatches_);+ i.type_ === 3 && (a = new Set(t), t.clear(), o = !0), dK(a, (r, a) => IK(e, i, t, r, a, n, o), r), LK(e, t, !1), n && e.patches_ && TK("Patches").generatePatches_(i, n, e.patches_, e.inversePatches_);}return i.copy_;}-function KG(e, t, n, r, i, a, o) {+function IK(e, t, n, r, i, a, o) {if (i == null || typeof i != "object" && !o) return;- let s = NG(i);+ let s = CK(i);if (!(s && !o)) {- if (gG(i)) {- let o = GG(e, i, a && t && t.type_ !== 3 && !CG(t.assigned_, r) ? a.concat(r) : void 0);- if (wG(n, r, o), gG(o)) e.canAutoFreeze_ = !1;+ if (oK(i)) {+ let o = FK(e, i, a && t && t.type_ !== 3 && !pK(t.assigned_, r) ? a.concat(r) : void 0);+ if (mK(n, r, o), oK(o)) e.canAutoFreeze_ = !1;else return;} else o && n.add(i);- if (_G(i) && !s) {+ if (sK(i) && !s) {if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1 || t && t.base_ && t.base_[r] === i && s) return;- GG(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && (EG(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && qG(e, i);+ FK(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && (gK(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && LK(e, i);}}}-function qG(e, t, n = !1) {- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && AG(t, n);+function LK(e, t, n = !1) {+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && bK(t, n);}-function JG(e, t) {+function RK(e, t) {let n = Array.isArray(e), r = {type_: +!!n,- scope_: t ? t.scope_ : LG(),+ scope_: t ? t.scope_ : DK(),modified_: !1,finalized_: !1,assigned_: {},@@ -51787,41 +53174,41 @@ function JG(e, t) {copy_: null,revoke_: null,isManual_: !1- }, i = r, a = YG;- n && (i = [r], a = XG);+ }, i = r, a = zK;+ n && (i = [r], a = BK);let { revoke: o, proxy: s } = Proxy.revocable(i, a);return r.draft_ = s, r.revoke_ = o, s;}-var YG = {+var zK = {get(e, t) {- if (t === pG) return e;- let n = OG(e);- if (!CG(n, t)) return QG(e, n, t);+ if (t === rK) return e;+ let n = vK(e);+ if (!pK(n, t)) return HK(e, n, t);let r = n[t];- return e.finalized_ || !_G(r) ? r : r === ZG(e.base_, t) ? (tK(e), e.copy_[t] = rK(r, e)) : r;+ return e.finalized_ || !sK(r) ? r : r === VK(e.base_, t) ? (GK(e), e.copy_[t] = qK(r, e)) : r;},has(e, t) {- return t in OG(e);+ return t in vK(e);},ownKeys(e) {- return Reflect.ownKeys(OG(e));+ return Reflect.ownKeys(vK(e));},set(e, t, n) {- let r = $G(OG(e), t);+ let r = UK(vK(e), t);if (r?.set) return r.set.call(e.draft_, n), !0;if (!e.modified_) {- let r = ZG(OG(e), t), i = r?.[pG];+ let r = VK(vK(e), t), i = r?.[rK];if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_[t] = !1, !0;- if (TG(n, r) && (n !== void 0 || CG(e.base_, t))) return !0;- tK(e), eK(e);+ if (hK(n, r) && (n !== void 0 || pK(e.base_, t))) return !0;+ GK(e), WK(e);}return e.copy_[t] === n && (n !== void 0 || t in e.copy_) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_[t] = !0, !0);},deleteProperty(e, t) {- return ZG(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, tK(e), eK(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;+ return VK(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, GK(e), WK(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;},getOwnPropertyDescriptor(e, t) {- let n = OG(e), r = Reflect.getOwnPropertyDescriptor(n, t);+ let n = vK(e), r = Reflect.getOwnPropertyDescriptor(n, t);return r && {writable: !0,configurable: e.type_ !== 1 || t !== "length",@@ -51830,48 +53217,48 @@ var YG = {};},defineProperty() {- mG(11);+ iK(11);},getPrototypeOf(e) {- return hG(e.base_);+ return aK(e.base_);},setPrototypeOf() {- mG(12);+ iK(12);}-}, XG = {};-xG(YG, (e, t) => {- XG[e] = function() {+}, BK = {};+dK(zK, (e, t) => {+ BK[e] = function() {return arguments[0] = arguments[0][0], t.apply(this, arguments);};-}), XG.deleteProperty = function(e, t) {- return XG.set.call(this, e, t, void 0);-}, XG.set = function(e, t, n) {- return YG.set.call(this, e[0], t, n, e[0]);+}), BK.deleteProperty = function(e, t) {+ return BK.set.call(this, e, t, void 0);+}, BK.set = function(e, t, n) {+ return zK.set.call(this, e[0], t, n, e[0]);};-function ZG(e, t) {- let n = e[pG];- return (n ? OG(n) : e)[t];+function VK(e, t) {+ let n = e[rK];+ return (n ? vK(n) : e)[t];}-function QG(e, t, n) {- let r = $G(t, n);+function HK(e, t, n) {+ let r = UK(t, n);return r ? "value" in r ? r.value : r.get?.call(e.draft_) : void 0;}-function $G(e, t) {+function UK(e, t) {if (!(t in e)) return;- let n = hG(e);+ let n = aK(e);for (; n;) {let e = Object.getOwnPropertyDescriptor(n, t);if (e) return e;- n = hG(n);+ n = aK(n);}}-function eK(e) {- e.modified_ || (e.modified_ = !0, e.parent_ && eK(e.parent_));+function WK(e) {+ e.modified_ || (e.modified_ = !0, e.parent_ && WK(e.parent_));}-function tK(e) {- e.copy_ ||= kG(e.base_, e.scope_.immer_.useStrictShallowCopy_);+function GK(e) {+ e.copy_ ||= yK(e.base_, e.scope_.immer_.useStrictShallowCopy_);}-var nK = class {+var KK = class {constructor(e) {this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !0, this.produce = (e, t, n) => {if (typeof e == "function" && typeof t != "function") {@@ -51882,25 +53269,25 @@ var nK = class {return r.produce(e, (e) => t.call(this, e, ...i));};}- typeof t != "function" && mG(6), n !== void 0 && typeof n != "function" && mG(7);+ typeof t != "function" && iK(6), n !== void 0 && typeof n != "function" && iK(7);let r;- if (_G(e)) {- let i = HG(this), a = rK(e, void 0), o = !0;+ if (sK(e)) {+ let i = MK(this), a = qK(e, void 0), o = !0;try {r = t(a), o = !1;} finally {- o ? BG(i) : VG(i);+ o ? AK(i) : jK(i);}- return zG(i, n), WG(r, i);+ return kK(i, n), PK(r, i);}if (!e || typeof e != "object") {- if (r = t(e), r === void 0 && (r = e), r === dG && (r = void 0), this.autoFreeze_ && AG(r, !0), n) {+ if (r = t(e), r === void 0 && (r = e), r === tK && (r = void 0), this.autoFreeze_ && bK(r, !0), n) {let t = [], i = [];- FG("Patches").generateReplacementPatches_(e, r, t, i), n(t, i);+ TK("Patches").generateReplacementPatches_(e, r, t, i), n(t, i);}return r;}- mG(1, e);+ iK(1, e);}, this.produceWithPatches = (e, t) => {if (typeof e == "function") return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));let n, r;@@ -51914,15 +53301,15 @@ var nK = class {}, typeof e?.autoFreeze == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof e?.useStrictShallowCopy == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy), typeof e?.useStrictIteration == "boolean" && this.setUseStrictIteration(e.useStrictIteration);}createDraft(e) {- _G(e) || mG(8), gG(e) && (e = iK(e));- let t = HG(this), n = rK(e, void 0);- return n[pG].isManual_ = !0, VG(t), n;+ sK(e) || iK(8), oK(e) && (e = JK(e));+ let t = MK(this), n = qK(e, void 0);+ return n[rK].isManual_ = !0, jK(t), n;}finishDraft(e, t) {- let n = e && e[pG];- (!n || !n.isManual_) && mG(9);+ let n = e && e[rK];+ (!n || !n.isManual_) && iK(9);let { scope_: r } = n;- return zG(r, t), WG(void 0, r);+ return kK(r, t), PK(void 0, r);}setAutoFreeze(e) {this.autoFreeze_ = e;@@ -51946,35 +53333,35 @@ var nK = class {}}n > -1 && (t = t.slice(n + 1));- let r = FG("Patches").applyPatches_;- return gG(e) ? r(e, t) : this.produce(e, (e) => r(e, t));+ let r = TK("Patches").applyPatches_;+ return oK(e) ? r(e, t) : this.produce(e, (e) => r(e, t));}};-function rK(e, t) {- let n = EG(e) ? FG("MapSet").proxyMap_(e, t) : DG(e) ? FG("MapSet").proxySet_(e, t) : JG(e, t);- return (t ? t.scope_ : LG()).drafts_.push(n), n;+function qK(e, t) {+ let n = gK(e) ? TK("MapSet").proxyMap_(e, t) : _K(e) ? TK("MapSet").proxySet_(e, t) : RK(e, t);+ return (t ? t.scope_ : DK()).drafts_.push(n), n;}-function iK(e) {- return gG(e) || mG(10, e), aK(e);+function JK(e) {+ return oK(e) || iK(10, e), YK(e);}-function aK(e) {- if (!_G(e) || NG(e)) return e;- let t = e[pG], n, r = !0;+function YK(e) {+ if (!sK(e) || CK(e)) return e;+ let t = e[rK], n, r = !0;if (t) {if (!t.modified_) return t.base_;- t.finalized_ = !0, n = kG(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();- } else n = kG(e, !0);- return xG(n, (e, t) => {- wG(n, e, aK(t));+ t.finalized_ = !0, n = yK(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();+ } else n = yK(e, !0);+ return dK(n, (e, t) => {+ mK(n, e, YK(t));}, r), t && (t.finalized_ = !1), n;}-new nK().produce;-function oK(e) {+new KK().produce;+function XK(e) {return e;}//#endregion//#region node_modules/recharts/es6/state/legendSlice.js-var sK = NH({+var ZK = CU({name: "legend",initialState: {settings: {@@ -51998,43 +53385,43 @@ var sK = NH({},addLegendPayload: {reducer(e, t) {- e.payload.push(oK(t.payload));+ e.payload.push(XK(t.payload));},- prepare: vH()+ prepare: cU()},replaceLegendPayload: {reducer(e, t) {- var { prev: n, next: r } = t.payload, i = iH(e).payload.indexOf(oK(n));- i > -1 && (e.payload[i] = oK(r));+ var { prev: n, next: r } = t.payload, i = JH(e).payload.indexOf(XK(n));+ i > -1 && (e.payload[i] = XK(r));},- prepare: vH()+ prepare: cU()},removeLegendPayload: {reducer(e, t) {- var n = iH(e).payload.indexOf(oK(t.payload));+ var n = JH(e).payload.indexOf(XK(t.payload));n > -1 && e.payload.splice(n, 1);},- prepare: vH()+ prepare: cU()}}-}), { setLegendSize: cK, setLegendSettings: lK, addLegendPayload: uK, replaceLegendPayload: dK, removeLegendPayload: fK } = sK.actions, pK = sK.reducer, mK = /* @__PURE__ */ F(((e) => {- var t = oe();+}), { setLegendSize: QK, setLegendSettings: $K, addLegendPayload: eq, replaceLegendPayload: tq, removeLegendPayload: nq } = ZK.actions, rq = ZK.reducer, iq = /* @__PURE__ */ F(((e) => {+ var t = ce();t.useSyncExternalStore, t.useRef, t.useEffect, t.useMemo, t.useDebugValue;}));(/* @__PURE__ */ F(((e, t) => {- t.exports = mK();+ t.exports = iq();})))();-function hK(e) {+function aq(e) {e();}-function gK() {+function oq() {let e = null, t = null;return {clear() {e = null, t = null;},notify() {- hK(() => {+ aq(() => {let t = e;for (; t;) t.callback(), t = t.next;});@@ -52056,12 +53443,12 @@ function gK() {}};}-var _K = {+var sq = {notify() {},get: () => []};-function vK(e, t) {- let n, r = _K, i = 0, a = !1;+function cq(e, t) {+ let n, r = sq, i = 0, a = !1;function o(e) {u();let t = r.subscribe(e), n = !1;@@ -52079,10 +53466,10 @@ function vK(e, t) {return a;}function u() {- i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = gK());+ i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = oq());}function d() {- i--, n && i === 0 && (n(), n = void 0, r.clear(), r = _K);+ i--, n && i === 0 && (n(), n = void 0, r.clear(), r = sq);}function f() {a || (a = !0, u());@@ -52101,44 +53488,44 @@ function vK(e, t) {};return m;}-var yK = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, bK = typeof navigator < "u" && navigator.product === "ReactNative", xK = yK || bK ? I.useLayoutEffect : I.useEffect;-function SK(e, t) {+var lq = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, uq = typeof navigator < "u" && navigator.product === "ReactNative", dq = lq || uq ? I.useLayoutEffect : I.useEffect;+function fq(e, t) {return e === t ? e !== 0 || t !== 0 || 1 / e == 1 / t : e !== e && t !== t;}-function CK(e, t) {- if (SK(e, t)) return !0;+function pq(e, t) {+ if (fq(e, t)) return !0;if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;let n = Object.keys(e), r = Object.keys(t);if (n.length !== r.length) return !1;- for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !SK(e[n[r]], t[n[r]])) return !1;+ for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !fq(e[n[r]], t[n[r]])) return !1;return !0;}-var wK = /* @__PURE__ */ Symbol.for("react-redux-context"), TK = typeof globalThis < "u" ? globalThis : {};-function EK() {+var mq = /* @__PURE__ */ Symbol.for("react-redux-context"), hq = typeof globalThis < "u" ? globalThis : {};+function gq() {if (!I.createContext) return {};- let e = TK[wK] ??= /* @__PURE__ */ new Map(), t = e.get(I.createContext);+ let e = hq[mq] ??= /* @__PURE__ */ new Map(), t = e.get(I.createContext);return t || (t = I.createContext(null), e.set(I.createContext, t)), t;}-var DK = /* @__PURE__ */ EK();-function OK(e) {+var _q = /* @__PURE__ */ gq();+function vq(e) {let { children: t, context: n, serverState: r, store: i } = e, a = I.useMemo(() => {- let e = vK(i);+ let e = cq(i);return {store: i,subscription: e,getServerState: r ? () => r : void 0};}, [i, r]), o = I.useMemo(() => i.getState(), [i]);- xK(() => {+ dq(() => {let { subscription: e } = a;return e.onStateChange = e.notifyNestedSubs, e.trySubscribe(), o !== i.getState() && e.notifyNestedSubs(), () => {e.tryUnsubscribe(), e.onStateChange = void 0;};}, [a, o]);- let s = n || DK;+ let s = n || _q;return /* @__PURE__ */ I.createElement(s.Provider, { value: a }, t);}-var kK = OK, AK = /* @__PURE__ */ new Set([+var yq = vq, bq = /* @__PURE__ */ new Set(["axisLine","tickLine","activeBar",@@ -52161,29 +53548,29 @@ var kK = OK, AK = /* @__PURE__ */ new Set(["radius","throttledEvents"]);-function jK(e, t) {+function xq(e, t) {return e == null && t == null ? !0 : typeof e == "number" && typeof t == "number" ? e === t || e !== e && t !== t : e === t;}-function MK(e, t) {- for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (AK.has(n)) {+function Sq(e, t) {+ for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (bq.has(n)) {if (e[n] == null && t[n] == null) continue;- if (!CK(e[n], t[n])) return !1;- } else if (!jK(e[n], t[n])) return !1;+ if (!pq(e[n], t[n])) return !1;+ } else if (!xq(e[n], t[n])) return !1;return !0;}//#endregion//#region node_modules/recharts/es6/component/Legend.js-var NK = ["contextPayload"];-function PK() {- return PK = Object.assign ? Object.assign.bind() : function(e) {+var Cq = ["contextPayload"];+function wq() {+ return wq = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, PK.apply(null, arguments);+ }, wq.apply(null, arguments);}-function FK(e, t) {+function Tq(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -52193,30 +53580,30 @@ function FK(e, t) {}return n;}-function IK(e) {+function Eq(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? FK(Object(n), !0).forEach(function(t) {- LK(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : FK(Object(n)).forEach(function(t) {+ t % 2 ? Tq(Object(n), !0).forEach(function(t) {+ Dq(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Tq(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function LK(e, t, n) {- return (t = RK(t)) in e ? Object.defineProperty(e, t, {+function Dq(e, t, n) {+ return (t = Oq(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function RK(e) {- var t = zK(e, "string");+function Oq(e) {+ var t = kq(e, "string");return typeof t == "symbol" ? t : t + "";}-function zK(e, t) {+function kq(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -52226,16 +53613,16 @@ function zK(e, t) {}return (t === "string" ? String : Number)(e);}-function BK(e, t) {+function Aq(e, t) {if (e == null) return {};- var n, r, i = VK(e, t);+ var n, r, i = jq(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function VK(e, t) {+function jq(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -52244,36 +53631,36 @@ function VK(e, t) {}return n;}-function HK(e) {+function Mq(e) {return e.value;}-function UK(e) {- var { contextPayload: t } = e, n = BK(e, NK), r = gB(t, e.payloadUniqBy, HK), i = IK(IK({}, n), {}, { payload: r });- return /*#__PURE__*/ I.isValidElement(e.content) ? /*#__PURE__*/ I.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ I.createElement(e.content, i) : /*#__PURE__*/ I.createElement(Ype, i);+function Nq(e) {+ var { contextPayload: t } = e, n = Aq(e, Cq), r = JB(t, e.payloadUniqBy, Mq), i = Eq(Eq({}, n), {}, { payload: r });+ return /*#__PURE__*/ I.isValidElement(e.content) ? /*#__PURE__*/ I.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ I.createElement(e.content, i) : /*#__PURE__*/ I.createElement(Dme, i);}-function WK(e, t, n, r, i, a) {+function Pq(e, t, n, r, i, a) {var { layout: o, align: s, verticalAlign: c } = t, l, u;- return (!e || (e.left === void 0 || e.left === null) && (e.right === void 0 || e.right === null)) && (l = s === "center" && o === "vertical" ? { left: ((r || 0) - a.width) / 2 } : s === "right" ? { right: n && n.right || 0 } : { left: n && n.left || 0 }), (!e || (e.top === void 0 || e.top === null) && (e.bottom === void 0 || e.bottom === null)) && (u = c === "middle" ? { top: ((i || 0) - a.height) / 2 } : c === "bottom" ? { bottom: n && n.bottom || 0 } : { top: n && n.top || 0 }), IK(IK({}, l), u);+ return (!e || (e.left === void 0 || e.left === null) && (e.right === void 0 || e.right === null)) && (l = s === "center" && o === "vertical" ? { left: ((r || 0) - a.width) / 2 } : s === "right" ? { right: n && n.right || 0 } : { left: n && n.left || 0 }), (!e || (e.top === void 0 || e.top === null) && (e.bottom === void 0 || e.bottom === null)) && (u = c === "middle" ? { top: ((i || 0) - a.height) / 2 } : c === "bottom" ? { bottom: n && n.bottom || 0 } : { top: n && n.top || 0 }), Eq(Eq({}, l), u);}-function GK(e) {- var t = vB();+function Fq(e) {+ var t = XB();return (0, I.useEffect)(() => {- t(lK(e));+ t($K(e));}, [t, e]), null;}-function KK(e) {- var t = vB();- return (0, I.useEffect)(() => (t(cK(e)), () => {- t(cK({+function Iq(e) {+ var t = XB();+ return (0, I.useEffect)(() => (t(QK(e)), () => {+ t(QK({width: 0,height: 0}));}), [t, e]), null;}-function qK(e, t, n, r) {+function Lq(e, t, n, r) {return e === "vertical" && t != null ? { height: t } : e === "horizontal" ? { width: n || r } : null;}-var JK = {+var Rq = {align: "center",iconSize: 14,inactiveColor: "#ccc",@@ -52281,49 +53668,49 @@ var JK = {layout: "horizontal",verticalAlign: "bottom"};-function YK(e) {- var t = Gz(e, JK), n = ahe(), r = Ufe(), i = rG(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = kB([n]), d = tG(), f = nG();+function zq(e) {+ var t = CB(e, Rq), n = hV(), r = xpe(), i = qG(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = _V([n]), d = GG(), f = KG();if (d == null || f == null) return null;- var p = d - (i?.left || 0) - (i?.right || 0), m = qK(t.layout, o, a, p), h = c ? s : IK(IK({+ var p = d - (i?.left || 0) - (i?.right || 0), m = Lq(t.layout, o, a, p), h = c ? s : Eq(Eq({position: "absolute",width: m?.width || a || "auto",height: m?.height || o || "auto"- }, WK(s, t, i, d, f, l)), s), g = c ?? r;+ }, Pq(s, t, i, d, f, l)), s), g = c ?? r;if (g == null || n == null) return null;var _ = /*#__PURE__*/ I.createElement("div", {className: "recharts-legend-wrapper",style: h,ref: u- }, /*#__PURE__*/ I.createElement(GK, {+ }, /*#__PURE__*/ I.createElement(Fq, {layout: t.layout,align: t.align,verticalAlign: t.verticalAlign,itemSorter: t.itemSorter- }), !c && /*#__PURE__*/ I.createElement(KK, {+ }), !c && /*#__PURE__*/ I.createElement(Iq, {width: l.width,height: l.height- }), /*#__PURE__*/ I.createElement(UK, PK({}, t, m, {+ }), /*#__PURE__*/ I.createElement(Nq, wq({}, t, m, {margin: i,chartWidth: d,chartHeight: f,contextPayload: n})));- return /*#__PURE__*/ (0, Ch.createPortal)(_, g);+ return /*#__PURE__*/ (0, Th.createPortal)(_, g);}-var XK = /*#__PURE__*/ I.memo(YK, MK);-XK.displayName = "Legend";+var Bq = /*#__PURE__*/ I.memo(zq, Sq);+Bq.displayName = "Legend";//#endregion//#region node_modules/recharts/es6/component/DefaultTooltipContent.js-function ZK() {- return ZK = Object.assign ? Object.assign.bind() : function(e) {+function Vq() {+ return Vq = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, ZK.apply(null, arguments);+ }, Vq.apply(null, arguments);}-function QK(e, t) {+function Hq(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -52333,30 +53720,30 @@ function QK(e, t) {}return n;}-function $K(e) {+function Uq(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? QK(Object(n), !0).forEach(function(t) {- eq(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : QK(Object(n)).forEach(function(t) {+ t % 2 ? Hq(Object(n), !0).forEach(function(t) {+ Wq(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Hq(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function eq(e, t, n) {- return (t = tq(t)) in e ? Object.defineProperty(e, t, {+function Wq(e, t, n) {+ return (t = Gq(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function tq(e) {- var t = nq(e, "string");+function Gq(e) {+ var t = Kq(e, "string");return typeof t == "symbol" ? t : t + "";}-function nq(e, t) {+function Kq(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -52366,10 +53753,10 @@ function nq(e, t) {}return (t === "string" ? String : Number)(e);}-function rq(e) {- return Array.isArray(e) && Ez(e[0]) && Ez(e[1]) ? e.join(" ~ ") : e;+function qq(e) {+ return Array.isArray(e) && iB(e[0]) && iB(e[1]) ? e.join(" ~ ") : e;}-var iq = {+var Jq = {separator: " : ",contentStyle: {margin: 0,@@ -52387,30 +53774,30 @@ var iq = {labelStyle: {},accessibilityLayer: !1};-function aq(e, t) {- return t == null ? e : EB(e, t);+function Yq(e, t) {+ return t == null ? e : dV(e, t);}-var oq = (e) => {- var { separator: t = iq.separator, contentStyle: n, itemStyle: r, labelStyle: i = iq.labelStyle, payload: a, formatter: o, itemSorter: s, wrapperClassName: c, labelClassName: l, label: u, labelFormatter: d, accessibilityLayer: f = iq.accessibilityLayer } = e, p = () => {+var Xq = (e) => {+ var { separator: t = Jq.separator, contentStyle: n, itemStyle: r, labelStyle: i = Jq.labelStyle, payload: a, formatter: o, itemSorter: s, wrapperClassName: c, labelClassName: l, label: u, labelFormatter: d, accessibilityLayer: f = Jq.accessibilityLayer } = e, p = () => {if (a && a.length) {var e = {padding: 0,margin: 0- }, n = aq(a, s).map((e, n) => {+ }, n = Yq(a, s).map((e, n) => {if (e.type === "none") return null;- var i = e.formatter || o || rq, { value: s, name: c } = e, l = s, u = c;+ var i = e.formatter || o || qq, { value: s, name: c } = e, l = s, u = c;if (i) {var d = i(s, c, e, n, a);if (Array.isArray(d)) [l, u] = d;else if (d != null) l = d;else return null;}- var f = $K($K({}, iq.itemStyle), {}, { color: e.color || iq.itemStyle.color }, r);+ var f = Uq(Uq({}, Jq.itemStyle), {}, { color: e.color || Jq.itemStyle.color }, r);return /*#__PURE__*/ I.createElement("li", {className: "recharts-tooltip-item",key: `tooltip-item-${n}`,style: f- }, Ez(u) ? /*#__PURE__*/ I.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, Ez(u) ? /*#__PURE__*/ I.createElement("span", { className: "recharts-tooltip-item-separator" }, t) : null, /*#__PURE__*/ I.createElement("span", { className: "recharts-tooltip-item-value" }, l), /*#__PURE__*/ I.createElement("span", { className: "recharts-tooltip-item-unit" }, e.unit || ""));+ }, iB(u) ? /*#__PURE__*/ I.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, iB(u) ? /*#__PURE__*/ I.createElement("span", { className: "recharts-tooltip-item-separator" }, t) : null, /*#__PURE__*/ I.createElement("span", { className: "recharts-tooltip-item-value" }, l), /*#__PURE__*/ I.createElement("span", { className: "recharts-tooltip-item-unit" }, e.unit || ""));});return /*#__PURE__*/ I.createElement("ul", {className: "recharts-tooltip-item-list",@@ -52418,30 +53805,30 @@ var oq = (e) => {}, n);}return null;- }, m = $K($K({}, iq.contentStyle), n), h = $K({ margin: 0 }, i), g = !Mz(u), _ = g ? u : "", v = Jm("recharts-default-tooltip", c), y = Jm("recharts-tooltip-label", l);+ }, m = Uq(Uq({}, Jq.contentStyle), n), h = Uq({ margin: 0 }, i), g = !uB(u), _ = g ? u : "", v = Xm("recharts-default-tooltip", c), y = Xm("recharts-tooltip-label", l);g && d && a != null && (_ = d(u, a));var b = f ? {role: "status","aria-live": "assertive"} : {};- return /*#__PURE__*/ I.createElement("div", ZK({+ return /*#__PURE__*/ I.createElement("div", Vq({className: v,style: m}, b), /*#__PURE__*/ I.createElement("p", {className: y,style: h}, /*#__PURE__*/ I.isValidElement(_) ? _ : `${_}`), p());-}, sq = "recharts-tooltip-wrapper", cq = { visibility: "hidden" };-function lq(e) {+}, Zq = "recharts-tooltip-wrapper", Qq = { visibility: "hidden" };+function $q(e) {var { coordinate: t, translateX: n, translateY: r } = e;- return Jm(sq, {- [`${sq}-right`]: Z(n) && t && Z(t.x) && n >= t.x,- [`${sq}-left`]: Z(n) && t && Z(t.x) && n < t.x,- [`${sq}-bottom`]: Z(r) && t && Z(t.y) && r >= t.y,- [`${sq}-top`]: Z(r) && t && Z(t.y) && r < t.y+ return Xm(Zq, {+ [`${Zq}-right`]: Z(n) && t && Z(t.x) && n >= t.x,+ [`${Zq}-left`]: Z(n) && t && Z(t.x) && n < t.x,+ [`${Zq}-bottom`]: Z(r) && t && Z(t.y) && r >= t.y,+ [`${Zq}-top`]: Z(r) && t && Z(t.y) && r < t.y});}-function uq(e) {+function eJ(e) {var { allowEscapeViewBox: t, coordinate: n, key: r, offset: i, position: a, reverseDirection: o, tooltipDimension: s, viewBox: c, viewBoxDimension: l } = e;if (a && Z(a[r])) return a[r];var u = n[r] - s - (i > 0 ? i : 0), d = n[r] + i;@@ -52449,13 +53836,13 @@ function uq(e) {var f = c[r];return f == null ? 0 : o[r] ? Math.max(u < f ? d : u, f) : l == null ? 0 : d + s > f + l ? Math.max(u, f) : Math.max(d, f);}-function dq(e) {+function tJ(e) {var { translateX: t, translateY: n, useTranslate3d: r } = e;return { transform: r ? `translate3d(${t}px, ${n}px, 0)` : `translate(${t}px, ${n}px)` };}-function fq(e) {+function nJ(e) {var { allowEscapeViewBox: t, coordinate: n, offsetTop: r, offsetLeft: i, position: a, reverseDirection: o, tooltipBox: s, useTranslate3d: c, viewBox: l } = e, u, d, f;- return s.height > 0 && s.width > 0 && n ? (d = uq({+ return s.height > 0 && s.width > 0 && n ? (d = eJ({allowEscapeViewBox: t,coordinate: n,key: "x",@@ -52465,7 +53852,7 @@ function fq(e) {tooltipDimension: s.width,viewBox: l,viewBoxDimension: l.width- }), f = uq({+ }), f = eJ({allowEscapeViewBox: t,coordinate: n,key: "y",@@ -52475,27 +53862,27 @@ function fq(e) {tooltipDimension: s.height,viewBox: l,viewBoxDimension: l.height- }), u = dq({+ }), u = tJ({translateX: d,translateY: f,useTranslate3d: c- })) : u = cq, {+ })) : u = Qq, {cssProperties: u,- cssClasses: lq({+ cssClasses: $q({translateX: d,translateY: f,coordinate: n})};}-var pq = {+var rJ = {devToolsEnabled: !0,isSsr: !(typeof window < "u" && window.document && window.document.createElement && window.setTimeout)};//#endregion//#region node_modules/recharts/es6/util/usePrefersReducedMotion.js-function mq() {- var [e, t] = (0, I.useState)(() => pq.isSsr || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);+function iJ() {+ var [e, t] = (0, I.useState)(() => rJ.isSsr || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);return (0, I.useEffect)(() => {if (window.matchMedia) {var e = window.matchMedia("(prefers-reduced-motion: reduce)"), n = () => {@@ -52509,7 +53896,7 @@ function mq() {}//#endregion//#region node_modules/recharts/es6/component/TooltipBoundingBox.js-function hq(e, t) {+function aJ(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -52519,30 +53906,30 @@ function hq(e, t) {}return n;}-function gq(e) {+function oJ(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? hq(Object(n), !0).forEach(function(t) {- _q(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : hq(Object(n)).forEach(function(t) {+ t % 2 ? aJ(Object(n), !0).forEach(function(t) {+ sJ(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : aJ(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function _q(e, t, n) {- return (t = vq(t)) in e ? Object.defineProperty(e, t, {+function sJ(e, t, n) {+ return (t = cJ(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function vq(e) {- var t = yq(e, "string");+function cJ(e) {+ var t = lJ(e, "string");return typeof t == "symbol" ? t : t + "";}-function yq(e, t) {+function lJ(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -52552,11 +53939,11 @@ function yq(e, t) {}return (t === "string" ? String : Number)(e);}-function bq(e) {+function uJ(e) {if (!(e.prefersReducedMotion && e.isAnimationActive === "auto") && e.isAnimationActive && e.active) return `transform ${e.animationDuration}ms ${e.animationEasing}`;}-function xq(e) {- var t = mq(), [n, r] = I.useState(() => ({+function dJ(e) {+ var t = iJ(), [n, r] = I.useState(() => ({dismissed: !1,dismissedAtCoordinate: {x: 0,@@ -52576,8 +53963,8 @@ function xq(e) {return document.addEventListener("keydown", t), () => {document.removeEventListener("keydown", t);};- }, [e.coordinate?.x, e.coordinate?.y]), n.dismissed && ((e.coordinate?.x ?? 0) !== n.dismissedAtCoordinate.x || (e.coordinate?.y ?? 0) !== n.dismissedAtCoordinate.y) && r(gq(gq({}, n), {}, { dismissed: !1 }));- var { cssClasses: i, cssProperties: a } = fq({+ }, [e.coordinate?.x, e.coordinate?.y]), n.dismissed && ((e.coordinate?.x ?? 0) !== n.dismissedAtCoordinate.x || (e.coordinate?.y ?? 0) !== n.dismissedAtCoordinate.y) && r(oJ(oJ({}, n), {}, { dismissed: !1 }));+ var { cssClasses: i, cssProperties: a } = nJ({allowEscapeViewBox: e.allowEscapeViewBox,coordinate: e.coordinate,offsetLeft: typeof e.offset == "number" ? e.offset : e.offset.x,@@ -52590,7 +53977,7 @@ function xq(e) {},useTranslate3d: e.useTranslate3d,viewBox: e.viewBox- }), o = gq(gq({}, e.hasPortalFromProps ? {} : gq(gq({ transition: bq({+ }), o = oJ(oJ({}, e.hasPortalFromProps ? {} : oJ(oJ({ transition: uJ({prefersReducedMotion: t,isAnimationActive: e.isAnimationActive,active: e.active,@@ -52610,19 +53997,19 @@ function xq(e) {ref: e.innerRef}, e.children);}-var Sq = /*#__PURE__*/ I.memo(xq), Cq = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;+var fJ = /*#__PURE__*/ I.memo(dJ), pJ = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;//#endregion//#region node_modules/recharts/es6/shape/Curve.js-function wq() {- return wq = Object.assign ? Object.assign.bind() : function(e) {+function mJ() {+ return mJ = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, wq.apply(null, arguments);+ }, mJ.apply(null, arguments);}-function Tq(e, t) {+function hJ(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -52632,30 +54019,30 @@ function Tq(e, t) {}return n;}-function Eq(e) {+function gJ(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? Tq(Object(n), !0).forEach(function(t) {- Dq(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Tq(Object(n)).forEach(function(t) {+ t % 2 ? hJ(Object(n), !0).forEach(function(t) {+ _J(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : hJ(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function Dq(e, t, n) {- return (t = Oq(t)) in e ? Object.defineProperty(e, t, {+function _J(e, t, n) {+ return (t = vJ(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function Oq(e) {- var t = kq(e, "string");+function vJ(e) {+ var t = yJ(e, "string");return typeof t == "symbol" ? t : t + "";}-function kq(e, t) {+function yJ(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -52665,40 +54052,40 @@ function kq(e, t) {}return (t === "string" ? String : Number)(e);}-var Aq = {- curveBasisClosed: spe,- curveBasisOpen: cpe,- curveBasis: ope,- curveBumpX: Kfe,- curveBumpY: qfe,- curveLinearClosed: lpe,- curveLinear: LR,- curveMonotoneX: upe,- curveMonotoneY: dpe,- curveNatural: fpe,- curveStep: ppe,- curveStepAfter: hpe,- curveStepBefore: mpe-}, jq = (e) => OU(e.x) && OU(e.y), Mq = (e) => e.base != null && jq(e.base) && jq(e), Nq = (e) => e.x, Pq = (e) => e.y, Fq = (e, t) => {+var bJ = {+ curveBasisClosed: zpe,+ curveBasisOpen: Bpe,+ curveBasis: Rpe,+ curveBumpX: wpe,+ curveBumpY: Tpe,+ curveLinearClosed: Vpe,+ curveLinear: hz,+ curveMonotoneX: Hpe,+ curveMonotoneY: Upe,+ curveNatural: Wpe,+ curveStep: Gpe,+ curveStepAfter: qpe,+ curveStepBefore: Kpe+}, xJ = (e) => vW(e.x) && vW(e.y), SJ = (e) => e.base != null && xJ(e.base) && xJ(e), CJ = (e) => e.x, wJ = (e) => e.y, TJ = (e, t) => {if (typeof e == "function") return e;- var n = `curve${Nz(e)}`;+ var n = `curve${dB(e)}`;if ((n === "curveMonotone" || n === "curveBump") && t) {- var r = Aq[`${n}${t === "vertical" ? "Y" : "X"}`];+ var r = bJ[`${n}${t === "vertical" ? "Y" : "X"}`];if (r) return r;}- return Aq[n] || LR;-}, Iq = {+ return bJ[n] || hz;+}, EJ = {connectNulls: !1,type: "linear"-}, Lq = (e) => {- var { type: t = Iq.type, points: n = [], baseLine: r, layout: i, connectNulls: a = Iq.connectNulls } = e, o = Fq(t, i), s = a ? n.filter(jq) : n;+}, Ohe = (e) => {+ var { type: t = EJ.type, points: n = [], baseLine: r, layout: i, connectNulls: a = EJ.connectNulls } = e, o = TJ(t, i), s = a ? n.filter(xJ) : n;if (Array.isArray(r)) {- var c, l = n.map((e, t) => Eq(Eq({}, e), {}, { base: r[t] }));- return c = i === "vertical" ? VR().y(Pq).x1(Nq).x0((e) => e.base.x) : VR().x(Nq).y1(Pq).y0((e) => e.base.y), c.defined(Mq).curve(o)(a ? l.filter(Mq) : l);+ var c, l = n.map((e, t) => gJ(gJ({}, e), {}, { base: r[t] }));+ return c = i === "vertical" ? yz().y(wJ).x1(CJ).x0((e) => e.base.x) : yz().x(CJ).y1(wJ).y0((e) => e.base.y), c.defined(SJ).curve(o)(a ? l.filter(SJ) : l);}- return (i === "vertical" && Z(r) ? VR().y(Pq).x1(Nq).x0(r) : Z(r) ? VR().x(Nq).y1(Pq).y0(r) : BR().x(Nq).y(Pq)).defined(jq).curve(o)(s);-}, Rq = (e) => {- var { className: t, points: n, path: r, pathRef: i } = e, a = aG();+ return (i === "vertical" && Z(r) ? yz().y(wJ).x1(CJ).x0(r) : Z(r) ? yz().x(CJ).y1(wJ).y0(r) : vz().x(CJ).y(wJ)).defined(xJ).curve(o)(s);+}, DJ = (e) => {+ var { className: t, points: n, path: r, pathRef: i } = e, a = YG();if ((!n || !n.length) && !r) return null;var o = {type: e.type,@@ -52706,13 +54093,13 @@ var Aq = {baseLine: e.baseLine,layout: e.layout || a,connectNulls: e.connectNulls- }, s = n && n.length ? Lq(o) : r;- return /*#__PURE__*/ I.createElement("path", wq({}, hR(e), Hz(e), {- className: Jm("recharts-curve", t),+ }, s = n && n.length ? Ohe(o) : r;+ return /*#__PURE__*/ I.createElement("path", mJ({}, qR(e), bB(e), {+ className: Xm("recharts-curve", t),d: s === null ? void 0 : s,ref: i}));-}, zq = [+}, khe = ["x","y","top",@@ -52721,16 +54108,16 @@ var Aq = {"height","className"];-function Bq() {- return Bq = Object.assign ? Object.assign.bind() : function(e) {+function OJ() {+ return OJ = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, Bq.apply(null, arguments);+ }, OJ.apply(null, arguments);}-function Vq(e, t) {+function kJ(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -52740,30 +54127,30 @@ function Vq(e, t) {}return n;}-function Hq(e) {+function Ahe(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? Vq(Object(n), !0).forEach(function(t) {- Uq(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Vq(Object(n)).forEach(function(t) {+ t % 2 ? kJ(Object(n), !0).forEach(function(t) {+ jhe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : kJ(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function Uq(e, t, n) {- return (t = Wq(t)) in e ? Object.defineProperty(e, t, {+function jhe(e, t, n) {+ return (t = Mhe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function Wq(e) {- var t = Gq(e, "string");+function Mhe(e) {+ var t = Nhe(e, "string");return typeof t == "symbol" ? t : t + "";}-function Gq(e, t) {+function Nhe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -52773,16 +54160,16 @@ function Gq(e, t) {}return (t === "string" ? String : Number)(e);}-function Kq(e, t) {+function Phe(e, t) {if (e == null) return {};- var n, r, i = qq(e, t);+ var n, r, i = Fhe(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function qq(e, t) {+function Fhe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -52791,8 +54178,8 @@ function qq(e, t) {}return n;}-var Jq = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, Yq = (e) => {- var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = Kq(e, zq), l = Hq({+var Ihe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, Lhe = (e) => {+ var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = Phe(e, khe), l = Ahe({x: t,y: n,top: r,@@ -52800,14 +54187,14 @@ var Jq = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, Yq = (e) => {width: a,height: o}, c);- return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ I.createElement("path", Bq({}, _R(l), {- className: Jm("recharts-cross", s),- d: Jq(t, n, a, o, r, i)+ return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ I.createElement("path", OJ({}, YR(l), {+ className: Xm("recharts-cross", s),+ d: Ihe(t, n, a, o, r, i)}));};//#endregion//#region node_modules/recharts/es6/util/cursor/getCursorRectangle.js-function Xq(e, t, n, r) {+function Rhe(e, t, n, r) {var i = r / 2;return {stroke: "none",@@ -52820,7 +54207,7 @@ function Xq(e, t, n, r) {}//#endregion//#region node_modules/recharts/es6/animation/util.js-function Zq(e, t) {+function AJ(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -52830,30 +54217,30 @@ function Zq(e, t) {}return n;}-function Qq(e) {+function jJ(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? Zq(Object(n), !0).forEach(function(t) {- $q(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Zq(Object(n)).forEach(function(t) {+ t % 2 ? AJ(Object(n), !0).forEach(function(t) {+ zhe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : AJ(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function $q(e, t, n) {- return (t = eJ(t)) in e ? Object.defineProperty(e, t, {+function zhe(e, t, n) {+ return (t = Bhe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function eJ(e) {- var t = tJ(e, "string");+function Bhe(e) {+ var t = Vhe(e, "string");return typeof t == "symbol" ? t : t + "";}-function tJ(e, t) {+function Vhe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -52863,10 +54250,10 @@ function tJ(e, t) {}return (t === "string" ? String : Number)(e);}-var nJ = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), rJ = (e, t, n) => e.map((e) => `${nJ(e)} ${t}ms ${n}`).join(","), iJ = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), aJ = (e, t) => Object.keys(t).reduce((n, r) => Qq(Qq({}, n), {}, { [r]: e(r, t[r]) }), {});+var Hhe = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), MJ = (e, t, n) => e.map((e) => `${Hhe(e)} ${t}ms ${n}`).join(","), Uhe = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), NJ = (e, t) => Object.keys(t).reduce((n, r) => jJ(jJ({}, n), {}, { [r]: e(r, t[r]) }), {});//#endregion//#region node_modules/recharts/es6/animation/configUpdate.js-function oJ(e, t) {+function PJ(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -52876,30 +54263,30 @@ function oJ(e, t) {}return n;}-function sJ(e) {+function FJ(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? oJ(Object(n), !0).forEach(function(t) {- cJ(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : oJ(Object(n)).forEach(function(t) {+ t % 2 ? PJ(Object(n), !0).forEach(function(t) {+ Whe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : PJ(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function cJ(e, t, n) {- return (t = lJ(t)) in e ? Object.defineProperty(e, t, {+function Whe(e, t, n) {+ return (t = Ghe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function lJ(e) {- var t = uJ(e, "string");+function Ghe(e) {+ var t = Khe(e, "string");return typeof t == "symbol" ? t : t + "";}-function uJ(e, t) {+function Khe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -52909,51 +54296,51 @@ function uJ(e, t) {}return (t === "string" ? String : Number)(e);}-var dJ = (e, t, n) => e + (t - e) * n, fJ = (e) => {+var IJ = (e, t, n) => e + (t - e) * n, LJ = (e) => {var { from: t, to: n } = e;return t !== n;-}, pJ = (e, t, n) => {- var r = aJ((t, n) => {- if (fJ(n)) {+}, RJ = (e, t, n) => {+ var r = NJ((t, n) => {+ if (LJ(n)) {var [r, i] = e(n.from, n.to, n.velocity);- return sJ(sJ({}, n), {}, {+ return FJ(FJ({}, n), {}, {from: r,velocity: i});}return n;}, t);- return n < 1 ? aJ((e, t) => fJ(t) && r[e] != null ? sJ(sJ({}, t), {}, {- velocity: dJ(t.velocity, r[e].velocity, n),- from: dJ(t.from, r[e].from, n)- }) : t, t) : pJ(e, r, n - 1);+ return n < 1 ? NJ((e, t) => LJ(t) && r[e] != null ? FJ(FJ({}, t), {}, {+ velocity: IJ(t.velocity, r[e].velocity, n),+ from: IJ(t.from, r[e].from, n)+ }) : t, t) : RJ(e, r, n - 1);};-function mJ(e, t, n, r, i, a) {- var o, s = r.reduce((n, r) => sJ(sJ({}, n), {}, { [r]: {+function qhe(e, t, n, r, i, a) {+ var o, s = r.reduce((n, r) => FJ(FJ({}, n), {}, { [r]: {from: e[r],velocity: 0,to: t[r]- } }), {}), c = () => aJ((e, t) => t.from, s), l = () => !Object.values(s).filter(fJ).length, u = null, d = (r) => {+ } }), {}), c = () => NJ((e, t) => t.from, s), l = () => !Object.values(s).filter(LJ).length, u = null, d = (r) => {o ||= r;var f = (r - o) / n.dt;- s = pJ(n, s, f), i(sJ(sJ(sJ({}, e), t), c())), o = r, l() || (u = a.setTimeout(d));+ s = RJ(n, s, f), i(FJ(FJ(FJ({}, e), t), c())), o = r, l() || (u = a.setTimeout(d));};return () => (u = a.setTimeout(d), () => {var e;(e = u) == null || e();});}-function hJ(e, t, n, r, i, a, o) {+function Jhe(e, t, n, r, i, a, o) {var s = null, c = i.reduce((n, r) => {var i = e[r], a = t[r];- return i == null || a == null ? n : sJ(sJ({}, n), {}, { [r]: [i, a] });+ return i == null || a == null ? n : FJ(FJ({}, n), {}, { [r]: [i, a] });}, {}), l, u = (i) => {l ||= i;- var d = (i - l) / r, f = aJ((e, t) => dJ(...t, n(d)), c);- if (a(sJ(sJ(sJ({}, e), t), f)), d < 1) s = o.setTimeout(u);+ var d = (i - l) / r, f = NJ((e, t) => IJ(...t, n(d)), c);+ if (a(FJ(FJ(FJ({}, e), t), f)), d < 1) s = o.setTimeout(u);else {- var p = aJ((e, t) => dJ(...t, n(1)), c);- a(sJ(sJ(sJ({}, e), t), p));+ var p = NJ((e, t) => IJ(...t, n(1)), c);+ a(FJ(FJ(FJ({}, e), t), p));}};return () => (s = o.setTimeout(u), () => {@@ -52961,15 +54348,15 @@ function hJ(e, t, n, r, i, a, o) {(e = s) == null || e();});}-var gJ = (e, t, n, r, i, a) => {- var o = iJ(e, t);- return n == null ? () => (i(sJ(sJ({}, e), t)), () => {}) : n.isStepper === !0 ? mJ(e, t, n, o, i, a) : hJ(e, t, n, r, o, i, a);-}, _J = (e, t) => [+var Yhe = (e, t, n, r, i, a) => {+ var o = Uhe(e, t);+ return n == null ? () => (i(FJ(FJ({}, e), t)), () => {}) : n.isStepper === !0 ? qhe(e, t, n, o, i, a) : Jhe(e, t, n, r, o, i, a);+}, zJ = (e, t) => [0,3 * e,3 * t - 6 * e,3 * e - 3 * t + 1-], vJ = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), yJ = (e, t) => (n) => vJ(_J(e, t), n), bJ = (e, t) => (n) => vJ([..._J(e, t).map((e, t) => e * t).slice(1), 0], n), xJ = (e) => {+], BJ = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), VJ = (e, t) => (n) => BJ(zJ(e, t), n), Xhe = (e, t) => (n) => BJ([...zJ(e, t).map((e, t) => e * t).slice(1), 0], n), Zhe = (e) => {var t, n = e.split("(");if (n.length !== 2 || n[0] !== "cubic-bezier") return null;var r = (t = n[1]) == null || (t = t.split(")")[0]) == null ? void 0 : t.split(",");@@ -52981,7 +54368,7 @@ var gJ = (e, t, n, r, i, a) => {i[2],i[3]];-}, SJ = function() {+}, Qhe = function() {var e = [...arguments];if (e.length === 1) switch (e[0]) {case "linear": return [@@ -53015,7 +54402,7 @@ var gJ = (e, t, n, r, i, a) => {1];default:- var t = xJ(e[0]);+ var t = Zhe(e[0]);if (t) return t;}return e.length === 4 ? e : [@@ -53024,8 +54411,8 @@ var gJ = (e, t, n, r, i, a) => {1,1];-}, CJ = (e, t, n, r) => {- var i = yJ(e, n), a = yJ(t, r), o = bJ(e, n), s = (e) => e > 1 ? 1 : e < 0 ? 0 : e, c = (e) => {+}, $he = (e, t, n, r) => {+ var i = VJ(e, n), a = VJ(t, r), o = Xhe(e, n), s = (e) => e > 1 ? 1 : e < 0 ? 0 : e, c = (e) => {for (var t = e > 1 ? 1 : e, n = t, r = 0; r < 8; ++r) {var c = i(n) - t, l = o(n);if (Math.abs(c - t) < 1e-4 || l < 1e-4) return a(n);@@ -53034,29 +54421,29 @@ var gJ = (e, t, n, r, i, a) => {return a(n);};return c.isStepper = !1, c;-}, wJ = function() {- return CJ(...SJ(...arguments));-}, TJ = function() {+}, HJ = function() {+ return $he(...Qhe(...arguments));+}, ege = function() {var { stiff: e = 100, damping: t = 8, dt: n = 17 } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = (r, i, a) => {var o = a + (-(r - i) * e - a * t) * n / 1e3, s = a * n / 1e3 + r;return Math.abs(s - i) < 1e-4 && Math.abs(o) < 1e-4 ? [i, 0] : [s, o];};return r.isStepper = !0, r.dt = n, r;-}, EJ = (e) => {+}, tge = (e) => {if (typeof e == "string") switch (e) {case "ease":case "ease-in-out":case "ease-out":case "ease-in":- case "linear": return wJ(e);- case "spring": return TJ();- default: if (e.split("(")[0] === "cubic-bezier") return wJ(e);+ case "linear": return HJ(e);+ case "spring": return ege();+ default: if (e.split("(")[0] === "cubic-bezier") return HJ(e);}return typeof e == "function" ? e : null;};//#endregion//#region node_modules/recharts/es6/animation/AnimationManager.js-function DJ(e) {+function nge(e) {var t, n = () => null, r = !1, i = null, a = (o) => {if (!r) {if (Array.isArray(o)) {@@ -53087,7 +54474,7 @@ function DJ(e) {}//#endregion//#region node_modules/recharts/es6/animation/timeoutController.js-var OJ = class {+var rge = class {setTimeout(e) {var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = performance.now(), r = null, i = (a) => {a - n >= t ? e(a) : typeof requestAnimationFrame == "function" && (r = requestAnimationFrame(i));@@ -53099,14 +54486,14 @@ var OJ = class {};//#endregion//#region node_modules/recharts/es6/animation/createDefaultAnimationManager.js-function kJ() {- return DJ(new OJ());+function ige() {+ return nge(new rge());}//#endregion//#region node_modules/recharts/es6/animation/useAnimationManager.js-var AJ = /*#__PURE__*/ (0, I.createContext)(kJ);-function jJ(e, t) {- var n = (0, I.useContext)(AJ);+var age = /*#__PURE__*/ (0, I.createContext)(ige);+function oge(e, t) {+ var n = (0, I.useContext)(age);return (0, I.useMemo)(() => t ?? n(e), [e,t,@@ -53115,7 +54502,7 @@ function jJ(e, t) {}//#endregion//#region node_modules/recharts/es6/animation/JavascriptAnimate.js-var MJ = {+var sge = {begin: 0,duration: 1e3,easing: "ease",@@ -53123,14 +54510,14 @@ var MJ = {canBegin: !0,onAnimationEnd: () => {},onAnimationStart: () => {}-}, NJ = { t: 0 }, PJ = { t: 1 };-function FJ(e) {- var t = Gz(e, MJ), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = mq(), d = n === "auto" ? !pq.isSsr && !u : n, f = jJ(t.animationId, t.animationManager), [p, m] = (0, I.useState)(d ? NJ : PJ), h = (0, I.useRef)(null);+}, UJ = { t: 0 }, WJ = { t: 1 };+function GJ(e) {+ var t = CB(e, sge), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = iJ(), d = n === "auto" ? !rJ.isSsr && !u : n, f = oge(t.animationId, t.animationManager), [p, m] = (0, I.useState)(d ? UJ : WJ), h = (0, I.useRef)(null);return (0, I.useEffect)(() => {- d || m(PJ);+ d || m(WJ);}, [d]), (0, I.useEffect)(() => {- if (!d || !r) return Fz;- var e = gJ(NJ, PJ, EJ(a), i, m, f.getTimeoutController());+ if (!d || !r) return pB;+ var e = Yhe(UJ, WJ, tge(a), i, m, f.getTimeoutController());return f.start([c,o,@@ -53155,13 +54542,13 @@ function FJ(e) {}//#endregion//#region node_modules/recharts/es6/util/useAnimationId.js-function IJ(e) {- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, I.useRef)(Dz(t)), r = (0, I.useRef)(e);- return r.current !== e && (n.current = Dz(t), r.current = e), n.current;+function KJ(e) {+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, I.useRef)(aB(t)), r = (0, I.useRef)(e);+ return r.current !== e && (n.current = aB(t), r.current = e), n.current;}//#endregion//#region node_modules/recharts/es6/shape/Rectangle.js-var LJ = ["radius"], RJ = ["radius"], zJ, BJ, VJ, HJ, UJ, WJ, GJ, KJ, che, lhe;+var cge = ["radius"], lge = ["radius"], uge, dge, fge, pge, mge, hge, gge, _ge, vge, yge;function qJ(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {@@ -53176,26 +54563,26 @@ function JJ(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? qJ(Object(n), !0).forEach(function(t) {- uhe(e, t, n[t]);+ bge(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : qJ(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function uhe(e, t, n) {- return (t = dhe(t)) in e ? Object.defineProperty(e, t, {+function bge(e, t, n) {+ return (t = xge(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function dhe(e) {- var t = fhe(e, "string");+function xge(e) {+ var t = Sge(e, "string");return typeof t == "symbol" ? t : t + "";}-function fhe(e, t) {+function Sge(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -53216,14 +54603,14 @@ function YJ() {}function XJ(e, t) {if (e == null) return {};- var n, r, i = phe(e, t);+ var n, r, i = Cge(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function phe(e, t) {+function Cge(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -53236,7 +54623,7 @@ function ZJ(e, t) {return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));}var QJ = (e, t, n, r, i) => {- var a = xz(n), o = xz(r), s = Math.min(Math.abs(a) / 2, Math.abs(o) / 2), c = o >= 0 ? 1 : -1, l = a >= 0 ? 1 : -1, u = +(o >= 0 && a >= 0 || o < 0 && a < 0), d;+ var a = $z(n), o = $z(r), s = Math.min(Math.abs(a) / 2, Math.abs(o) / 2), c = o >= 0 ? 1 : -1, l = a >= 0 ? 1 : -1, u = +(o >= 0 && a >= 0 || o < 0 && a < 0), d;if (s > 0 && Array.isArray(i)) {for (var f = [0,@@ -53247,44 +54634,44 @@ var QJ = (e, t, n, r, i) => {var h = i[p] ?? 0;f[p] = h > s ? s : h;}- d = Sz(zJ ||= ZJ([+ d = eB(uge ||= ZJ(["M",",",""- ]), e, t + c * f[0]), f[0] > 0 && (d += Sz(BJ ||= ZJ([+ ]), e, t + c * f[0]), f[0] > 0 && (d += eB(dge ||= ZJ(["A ",",",",0,0,",",",",",""- ]), f[0], f[0], u, e + l * f[0], t)), d += Sz(VJ ||= ZJ([+ ]), f[0], f[0], u, e + l * f[0], t)), d += eB(fge ||= ZJ(["L ",",",""- ]), e + n - l * f[1], t), f[1] > 0 && (d += Sz(HJ ||= ZJ([+ ]), e + n - l * f[1], t), f[1] > 0 && (d += eB(pge ||= ZJ(["A ",",",",0,0,",",\n ",",",""- ]), f[1], f[1], u, e + n, t + c * f[1])), d += Sz(UJ ||= ZJ([+ ]), f[1], f[1], u, e + n, t + c * f[1])), d += eB(mge ||= ZJ(["L ",",",""- ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += Sz(WJ ||= ZJ([+ ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += eB(hge ||= ZJ(["A ",",",",0,0,",",\n ",",",""- ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += Sz(GJ ||= ZJ([+ ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += eB(gge ||= ZJ(["L ",",",""- ]), e + l * f[3], t + r), f[3] > 0 && (d += Sz(KJ ||= ZJ([+ ]), e + l * f[3], t + r), f[3] > 0 && (d += eB(_ge ||= ZJ(["A ",",",",0,0,",@@ -53294,8 +54681,8 @@ var QJ = (e, t, n, r, i) => {]), f[3], f[3], u, e, t + r - c * f[3])), d += "Z";} else if (s > 0 && i === +i && i > 0) {var g = Math.min(s, i);- d = Sz(che ||= ZJ(/* @__PURE__ */ "M .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,. Z".split(".")), e, t + c * g, g, g, u, e + l * g, t, e + n - l * g, t, g, g, u, e + n, t + c * g, e + n, t + r - c * g, g, g, u, e + n - l * g, t + r, e + l * g, t + r, g, g, u, e, t + r - c * g);- } else d = Sz(lhe ||= ZJ([+ d = eB(vge ||= ZJ(/* @__PURE__ */ "M .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,. Z".split(".")), e, t + c * g, g, g, u, e + l * g, t, e + n - l * g, t, g, g, u, e + n, t + c * g, e + n, t + r - c * g, g, g, u, e + n - l * g, t + r, e + l * g, t + r, g, g, u, e, t + r - c * g);+ } else d = eB(yge ||= ZJ(["M ",","," h ",@@ -53316,14 +54703,14 @@ var QJ = (e, t, n, r, i) => {animationDuration: 1500,animationEasing: "ease"}, eY = (e) => {- var t = Gz(e, $J), n = (0, I.useRef)(null), [r, i] = (0, I.useState)(-1);+ var t = CB(e, $J), n = (0, I.useRef)(null), [r, i] = (0, I.useState)(-1);(0, I.useEffect)(() => {if (n.current && n.current.getTotalLength) try {var e = n.current.getTotalLength();e && i(e);} catch {}}, []);- var { x: a, y: o, width: s, height: c, radius: l, className: u } = t, { animationEasing: d, animationDuration: f, animationBegin: p, isAnimationActive: m, isUpdateAnimationActive: h } = t, g = (0, I.useRef)(s), _ = (0, I.useRef)(c), v = (0, I.useRef)(a), y = (0, I.useRef)(o), b = IJ((0, I.useMemo)(() => ({+ var { x: a, y: o, width: s, height: c, radius: l, className: u } = t, { animationEasing: d, animationDuration: f, animationBegin: p, isAnimationActive: m, isUpdateAnimationActive: h } = t, g = (0, I.useRef)(s), _ = (0, I.useRef)(c), v = (0, I.useRef)(a), y = (0, I.useRef)(o), b = KJ((0, I.useMemo)(() => ({x: a,y: o,width: s,@@ -53337,21 +54724,21 @@ var QJ = (e, t, n, r, i) => {l]), "rectangle-");if (a !== +a || o !== +o || s !== +s || c !== +c || s === 0 || c === 0) return null;- var x = Jm("recharts-rectangle", u);+ var x = Xm("recharts-rectangle", u);if (!h) {- var S = _R(t), { radius: C } = S, w = XJ(S, LJ);+ var S = YR(t), { radius: C } = S, w = XJ(S, cge);return /*#__PURE__*/ I.createElement("path", YJ({}, w, {- x: xz(a),- y: xz(o),- width: xz(s),- height: xz(c),+ x: $z(a),+ y: $z(o),+ width: $z(s),+ height: $z(c),radius: typeof l == "number" ? l : void 0,className: x,d: QJ(a, o, s, c, l)}));}- var T = g.current, E = _.current, D = v.current, O = y.current, k = `0px ${r === -1 ? 1 : r}px`, A = `${r}px ${r}px`, j = rJ(["strokeDasharray"], f, typeof d == "string" ? d : $J.animationEasing);- return /*#__PURE__*/ I.createElement(FJ, {+ var T = g.current, E = _.current, D = v.current, O = y.current, k = `0px ${r === -1 ? 1 : r}px`, A = `${r}px ${r}px`, j = MJ(["strokeDasharray"], f, typeof d == "string" ? d : $J.animationEasing);+ return /*#__PURE__*/ I.createElement(GJ, {animationId: b,key: b,canBegin: r > 0,@@ -53360,12 +54747,12 @@ var QJ = (e, t, n, r, i) => {isActive: h,begin: p}, (e) => {- var r = Az(T, s, e), i = Az(E, c, e), u = Az(D, a, e), d = Az(O, o, e);+ var r = cB(T, s, e), i = cB(E, c, e), u = cB(D, a, e), d = cB(O, o, e);n.current && (g.current = r, _.current = i, v.current = u, y.current = d);var f = m ? e > 0 ? {transition: j,strokeDasharray: A- } : { strokeDasharray: k } : { strokeDasharray: A }, p = _R(t), { radius: h } = p, b = XJ(p, RJ);+ } : { strokeDasharray: k } : { strokeDasharray: A }, p = YR(t), { radius: h } = p, b = XJ(p, lge);return /*#__PURE__*/ I.createElement("path", YJ({}, b, {radius: typeof l == "number" ? l : void 0,className: x,@@ -53391,26 +54778,26 @@ function nY(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? tY(Object(n), !0).forEach(function(t) {- mhe(e, t, n[t]);+ wge(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : tY(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function mhe(e, t, n) {- return (t = hhe(t)) in e ? Object.defineProperty(e, t, {+function wge(e, t, n) {+ return (t = Tge(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function hhe(e) {- var t = ghe(e, "string");+function Tge(e) {+ var t = Ege(e, "string");return typeof t == "symbol" ? t : t + "";}-function ghe(e, t) {+function Ege(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -53420,10 +54807,10 @@ function ghe(e, t) {}return (t === "string" ? String : Number)(e);}-var rY = Math.PI / 180, iY = (e) => e * Math.PI / 180, _he = (e) => e * 180 / Math.PI, aY = (e, t, n, r) => ({+var rY = Math.PI / 180, iY = (e) => e * Math.PI / 180, Dge = (e) => e * 180 / Math.PI, aY = (e, t, n, r) => ({x: e + Math.cos(-rY * r) * n,y: t + Math.sin(-rY * r) * n-}), vhe = function(e, t) {+}), Oge = function(e, t) {var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {top: 0,right: 0,@@ -53434,11 +54821,11 @@ var rY = Math.PI / 180, iY = (e) => e * Math.PI / 180, _he = (e) => e * 180 / MabrushBottom: 0};return Math.min(Math.abs(e - (n.left || 0) - (n.right || 0)), Math.abs(t - (n.top || 0) - (n.bottom || 0))) / 2;-}, yhe = (e, t) => {+}, kge = (e, t) => {var { x: n, y: r } = e, { x: i, y: a } = t;return Math.sqrt((n - i) ** 2 + (r - a) ** 2);-}, bhe = (e, t) => {- var { x: n, y: r } = e, { cx: i, cy: a } = t, o = yhe({+}, Age = (e, t) => {+ var { x: n, y: r } = e, { cx: i, cy: a } = t, o = kge({x: n,y: r}, {@@ -53452,25 +54839,25 @@ var rY = Math.PI / 180, iY = (e) => e * Math.PI / 180, _he = (e) => e * 180 / Mavar s = (n - i) / o, c = Math.acos(s);return r > a && (c = 2 * Math.PI - c), {radius: o,- angle: _he(c),+ angle: Dge(c),angleInRadian: c};-}, xhe = (e) => {+}, jge = (e) => {var { startAngle: t, endAngle: n } = e, r = Math.floor(t / 360), i = Math.floor(n / 360), a = Math.min(r, i);return {startAngle: t - a * 360,endAngle: n - a * 360};-}, She = (e, t) => {+}, Mge = (e, t) => {var { startAngle: n, endAngle: r } = t, i = Math.floor(n / 360), a = Math.floor(r / 360);return e + Math.min(i, a) * 360;-}, Che = (e, t) => {- var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = bhe({+}, Nge = (e, t) => {+ var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = Age({x: n,y: r}, t), { innerRadius: o, outerRadius: s } = t;if (i < o || i > s || i === 0) return null;- var { startAngle: c, endAngle: l } = xhe(t), u = a, d;+ var { startAngle: c, endAngle: l } = jge(t), u = a, d;if (c <= l) {for (; u > l;) u -= 360;for (; u < c;) u += 360;@@ -53482,7 +54869,7 @@ var rY = Math.PI / 180, iY = (e) => e * Math.PI / 180, _he = (e) => e * 180 / Ma}return d ? nY(nY({}, t), {}, {radius: i,- angle: She(u, t)+ angle: Mge(u, t)}) : null;};//#endregion@@ -53500,7 +54887,7 @@ function oY(e) {}//#endregion//#region node_modules/recharts/es6/shape/Sector.js-var whe, The, Ehe, Dhe, Ohe, khe, Ahe;+var Pge, Fge, Ige, Lge, Rge, zge, Bge;function sY() {return sY = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {@@ -53513,7 +54900,7 @@ function sY() {function cY(e, t) {return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));}-var jhe = (e, t) => Cz(t - e) * Math.min(Math.abs(t - e), 359.999), lY = (e) => {+var Vge = (e, t) => tB(t - e) * Math.min(Math.abs(t - e), 359.999), lY = (e) => {var { cx: t, cy: n, radius: r, angle: i, sign: a, isExternal: o, cornerRadius: s, cornerIsExternal: c } = e, l = s * (o ? 1 : -1) + r, u = Math.asin(s / l) / rY, d = c ? i : i + a * u, f = aY(t, n, l, d), p = aY(t, n, r, d), m = c ? i - a * u : i;return {center: f,@@ -53522,7 +54909,7 @@ var jhe = (e, t) => Cz(t - e) * Math.min(Math.abs(t - e), 359.999), lY = (e) =>theta: u};}, uY = (e) => {- var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = jhe(a, o), c = a + s, l = aY(t, n, i, a), u = aY(t, n, i, c), d = Sz(whe ||= cY([+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = Vge(a, o), c = a + s, l = aY(t, n, i, a), u = aY(t, n, i, c), d = eB(Pge ||= cY(["M ",",","\n A ",@@ -53535,7 +54922,7 @@ var jhe = (e, t) => Cz(t - e) * Math.min(Math.abs(t - e), 359.999), lY = (e) =>]), l.x, l.y, i, i, +(Math.abs(s) > 180), +(a > c), u.x, u.y);if (r > 0) {var f = aY(t, n, r, a), p = aY(t, n, r, c);- d += Sz(The ||= cY([+ d += eB(Fge ||= cY(["L ",",","\n A ",@@ -53546,14 +54933,14 @@ var jhe = (e, t) => Cz(t - e) * Math.min(Math.abs(t - e), 359.999), lY = (e) =>","," Z"]), p.x, p.y, r, r, +(Math.abs(s) > 180), +(a <= c), f.x, f.y);- } else d += Sz(Ehe ||= cY([+ } else d += eB(Ige ||= cY(["L ",","," Z"]), t, n);return d;-}, Mhe = (e) => {- var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = Cz(l - c), { circleTangency: d, lineTangency: f, theta: p } = lY({+}, Hge = (e) => {+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = tB(l - c), { circleTangency: d, lineTangency: f, theta: p } = lY({cx: t,cy: n,radius: i,@@ -53570,7 +54957,7 @@ var jhe = (e, t) => Cz(t - e) * Math.min(Math.abs(t - e), 359.999), lY = (e) =>cornerRadius: a,cornerIsExternal: s}), _ = s ? Math.abs(c - l) : Math.abs(c - l) - p - g;- if (_ < 0) return o ? Sz(Dhe ||= cY([+ if (_ < 0) return o ? eB(Lge ||= cY(["M ",",","\n a",@@ -53588,7 +54975,7 @@ var jhe = (e, t) => Cz(t - e) * Math.min(Math.abs(t - e), 359.999), lY = (e) =>startAngle: c,endAngle: l});- var v = Sz(Ohe ||= cY([+ var v = eB(Rge ||= cY(["M ",",","\n A",@@ -53630,7 +55017,7 @@ var jhe = (e, t) => Cz(t - e) * Math.min(Math.abs(t - e), 359.999), lY = (e) =>cornerIsExternal: s}), T = s ? Math.abs(c - l) : Math.abs(c - l) - x - w;if (T < 0 && a === 0) return `${v}L${t},${n}Z`;- v += Sz(khe ||= cY([+ v += eB(zge ||= cY(["L",",","\n A",@@ -53651,13 +55038,13 @@ var jhe = (e, t) => Cz(t - e) * Math.min(Math.abs(t - e), 359.999), lY = (e) =>",","Z"]), C.x, C.y, a, a, +(u < 0), S.x, S.y, r, r, +(T > 180), +(u > 0), y.x, y.y, a, a, +(u < 0), b.x, b.y);- } else v += Sz(Ahe ||= cY([+ } else v += eB(Bge ||= cY(["L",",","Z"]), t, n);return v;-}, Nhe = {+}, Uge = {cx: 0,cy: 0,innerRadius: 0,@@ -53668,9 +55055,9 @@ var jhe = (e, t) => Cz(t - e) * Math.min(Math.abs(t - e), 359.999), lY = (e) =>forceCornerRadius: !1,cornerIsExternal: !1}, dY = (e) => {- var t = Gz(e, Nhe), { cx: n, cy: r, innerRadius: i, outerRadius: a, cornerRadius: o, forceCornerRadius: s, cornerIsExternal: c, startAngle: l, endAngle: u, className: d } = t;+ var t = CB(e, Uge), { cx: n, cy: r, innerRadius: i, outerRadius: a, cornerRadius: o, forceCornerRadius: s, cornerIsExternal: c, startAngle: l, endAngle: u, className: d } = t;if (a < i || l === u) return null;- var f = Jm("recharts-sector", d), p = a - i, m = Oz(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? Mhe({+ var f = Xm("recharts-sector", d), p = a - i, m = oB(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? Hge({cx: n,cy: r,innerRadius: i,@@ -53688,14 +55075,14 @@ var jhe = (e, t) => Cz(t - e) * Math.min(Math.abs(t - e), 359.999), lY = (e) =>startAngle: l,endAngle: u});- return /*#__PURE__*/ I.createElement("path", sY({}, _R(t), {+ return /*#__PURE__*/ I.createElement("path", sY({}, YR(t), {className: f,d: h}));};//#endregion//#region node_modules/recharts/es6/util/cursor/getCursorPoints.js-function Phe(e, t, n) {+function Wge(e, t, n) {if (e === "horizontal") return [{x: t.x,y: n.top@@ -53710,7 +55097,7 @@ function Phe(e, t, n) {x: n.left + n.width,y: t.y}];- if (Vz(t)) {+ if (yB(t)) {if (e === "centric") {var { cx: r, cy: i, innerRadius: a, outerRadius: o, angle: s } = t, c = aY(r, i, a, s), l = aY(r, i, o, s);return [{@@ -53726,18 +55113,18 @@ function Phe(e, t, n) {}//#endregion//#region node_modules/es-toolkit/dist/compat/util/toNumber.mjs-function Fhe(e) {- return _z(e) ? NaN : Number(e);+function Gge(e) {+ return Yz(e) ? NaN : Number(e);}//#endregion//#region node_modules/es-toolkit/dist/compat/util/toFinite.mjsfunction fY(e) {- return e ? (e = Fhe(e), e === Infinity || e === -Infinity ? (e < 0 ? -1 : 1) * Number.MAX_VALUE : e === e ? e : 0) : e === 0 ? e : 0;+ return e ? (e = Gge(e), e === Infinity || e === -Infinity ? (e < 0 ? -1 : 1) * Number.MAX_VALUE : e === e ? e : 0) : e === 0 ? e : 0;}//#endregion//#region node_modules/es-toolkit/dist/compat/math/range.mjsfunction pY(e, t, n) {- n && typeof n != "number" && wB(e, t, n) && (t = n = void 0), e = fY(e), t === void 0 ? (t = e, e = 0) : t = fY(t), n = n === void 0 ? e < t ? 1 : -1 : fY(n);+ n && typeof n != "number" && iV(e, t, n) && (t = n = void 0), e = fY(e), t === void 0 ? (t = e, e = 0) : t = fY(t), n = n === void 0 ? e < t ? 1 : -1 : fY(n);let r = Math.max(Math.ceil((t - e) / (n || 1)), 0), i = Array(r);for (let t = 0; t < r; t++) i[t] = e, e += n;return i;@@ -53758,7 +55145,7 @@ var mY = (e) => e.chartData, hY = $([mY], (e) => {function vY(e) {if (Array.isArray(e) && e.length === 2) {var [t, n] = e;- if (OU(t) && OU(n)) return !0;+ if (vW(t) && vW(n)) return !0;}return !1;}@@ -53768,15 +55155,15 @@ function yY(e, t, n) {function bY(e, t) {if (t && typeof e != "function" && Array.isArray(e) && e.length === 2) {var [n, r] = e, i, a;- if (OU(n)) i = n;+ if (vW(n)) i = n;else if (typeof n == "function") return;- if (OU(r)) a = r;+ if (vW(r)) a = r;else if (typeof r == "function") return;var o = [i, a];if (vY(o)) return o;}}-function Ihe(e, t, n) {+function Kge(e, t, n) {if (!(!n && t == null)) {if (typeof e == "function" && t != null) try {var r = e(t, n);@@ -53789,8 +55176,8 @@ function Ihe(e, t, n) {else if (typeof i == "function") try {t != null && (o = i(t?.[0]));} catch {}- else if (typeof i == "string" && XU.test(i)) {- var c = XU.exec(i);+ else if (typeof i == "string" && BW.test(i)) {+ var c = BW.exec(i);if (c == null || c[1] == null || t == null) o = void 0;else {var l = +c[1];@@ -53802,8 +55189,8 @@ function Ihe(e, t, n) {else if (typeof a == "function") try {t != null && (s = a(t?.[1]));} catch {}- else if (typeof a == "string" && ZU.test(a)) {- var u = ZU.exec(a);+ else if (typeof a == "string" && VW.test(a)) {+ var u = VW.exec(a);if (u == null || u[1] == null || t == null) s = void 0;else {var d = +u[1];@@ -53817,7 +55204,7 @@ function Ihe(e, t, n) {}//#endregion//#region node_modules/recharts/es6/util/scale/util/arithmetic.js-var xY = /* @__PURE__ */ re((/* @__PURE__ */ F(((e, t) => {+var xY = /* @__PURE__ */ ae((/* @__PURE__ */ F(((e, t) => {(function(e) {var n = 1e9, r = {precision: 20,@@ -54223,7 +55610,7 @@ var wY = (e) => {}var u = r[c] ?? 1, d = new xY.default(u).mul(o);return t ? d : new xY.default(Math.ceil(d.toNumber()));-}, Lhe = (e, t, n) => {+}, qge = (e, t, n) => {var r = new xY.default(1), i = new xY.default(e);if (!i.isint() && n) {var a = Math.abs(e);@@ -54252,7 +55639,7 @@ var wY = (e) => {var l = c === Infinity ? [s, ...Array(r - 1).fill(Infinity)] : [...Array(r - 1).fill(-Infinity), c];return t > n ? l.reverse() : l;}- if (s === c) return Lhe(s, r, i);+ if (s === c) return qge(s, r, i);var { step: u, tickMin: d, tickMax: f } = DY(s, c, o, i, 0, a === "snap125" ? EY : TY), p = CY(d, f.add(new xY.default(.1).mul(u)), u);return t > n ? p.reverse() : p;}, kY = function(e, t) {@@ -54261,7 +55648,7 @@ var wY = (e) => {if (o === s) return [o];var c = a === "snap125" ? EY : TY, l = Math.max(t, 2), u = c(new xY.default(s).sub(o).div(l - 1), i, 0), d = [...CY(new xY.default(o), new xY.default(s), u), s];return i === !1 && (d = d.map((e) => Math.round(e))), n > r ? d.reverse() : d;-}, AY = (e) => e.rootProps.maxBarSize, jY = (e) => e.rootProps.barGap, MY = (e) => e.rootProps.barCategoryGap, NY = (e) => e.rootProps.barSize, PY = (e) => e.rootProps.stackOffset, FY = (e) => e.rootProps.reverseStackOrder, IY = (e) => e.options.chartName, LY = (e) => e.rootProps.syncId, RY = (e) => e.rootProps.syncMethod, zY = (e) => e.options.eventEmitter, Rhe = (e) => e.rootProps.baseValue, BY = {+}, AY = (e) => e.rootProps.maxBarSize, jY = (e) => e.rootProps.barGap, MY = (e) => e.rootProps.barCategoryGap, NY = (e) => e.rootProps.barSize, PY = (e) => e.rootProps.stackOffset, FY = (e) => e.rootProps.reverseStackOrder, IY = (e) => e.options.chartName, LY = (e) => e.rootProps.syncId, RY = (e) => e.rootProps.syncMethod, zY = (e) => e.options.eventEmitter, Jge = (e) => e.rootProps.baseValue, BY = {grid: -100,barBackground: -50,area: 100,@@ -54323,7 +55710,7 @@ var wY = (e) => {//#region node_modules/recharts/es6/util/getAxisTypeBasedOnLayout.jsfunction WY(e, t, n) {if (n !== "auto") return n;- if (e != null) return LU(e, t) ? "category" : "number";+ if (e != null) return DW(e, t) ? "category" : "number";}//#endregion//#region node_modules/recharts/es6/state/selectors/polarAxisSelectors.js@@ -54341,26 +55728,26 @@ function KY(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? GY(Object(n), !0).forEach(function(t) {- zhe(e, t, n[t]);+ Yge(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : GY(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function zhe(e, t, n) {- return (t = Bhe(t)) in e ? Object.defineProperty(e, t, {+function Yge(e, t, n) {+ return (t = Xge(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function Bhe(e) {- var t = Vhe(e, "string");+function Xge(e) {+ var t = Zge(e, "string");return typeof t == "symbol" ? t : t + "";}-function Vhe(e, t) {+function Zge(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -54406,45 +55793,45 @@ var qY = {niceTicks: "auto"}, YY = $([(e, t) => {if (t != null) return e.polarAxis.angleAxis[t];-}, sG], (e, t) => {+}, ZG], (e, t) => {if (e != null) return e;var n = WY(t, "angleAxis", qY.type) ?? "category";return KY(KY({}, qY), {}, { type: n });-}), XY = $([(e, t) => e.polarAxis.radiusAxis[t], sG], (e, t) => {+}), XY = $([(e, t) => e.polarAxis.radiusAxis[t], ZG], (e, t) => {if (e != null) return e;var n = WY(t, "radiusAxis", JY.type) ?? "category";return KY(KY({}, JY), {}, { type: n });}), ZY = (e) => e.polarOptions, QY = $([- rW,- iW,- bW-], vhe), $Y = $([ZY, QY], (e, t) => {- if (e != null) return Oz(e.innerRadius, t, 0);+ qW,+ JW,+ uG+], Oge), $Y = $([ZY, QY], (e, t) => {+ if (e != null) return oB(e.innerRadius, t, 0);}), eX = $([ZY, QY], (e, t) => {- if (e != null) return Oz(e.outerRadius, t, t * .8);+ if (e != null) return oB(e.outerRadius, t, t * .8);}), tX = $([ZY], (e) => {if (e == null) return [0, 0];var { startAngle: t, endAngle: n } = e;return [t, n];-}), Hhe = $([YY, tX], UY), nX = $([+}), Qge = $([YY, tX], UY), nX = $([QY,$Y,eX], (e, t, n) => {if (e != null && t != null && n != null) return [t, n];-}), Uhe = $([XY, nX], UY), rX = $([- iG,+}), $ge = $([XY, nX], UY), rX = $([+ JG,ZY,$Y,eX,- rW,- iW+ qW,+ JW], (e, t, n, r, i, a) => {if (!(e !== "centric" && e !== "radial" || t == null || n == null || r == null)) {var { cx: o, cy: s, startAngle: c, endAngle: l } = t;return {- cx: Oz(o, i, i / 2),- cy: Oz(s, a, a / 2),+ cx: oB(o, i, i / 2),+ cy: oB(s, a, a / 2),innerRadius: n,outerRadius: r,startAngle: c,@@ -54467,7 +55854,7 @@ function sX(e, t, n) {if (t != null && t.length !== 0) {var n = oX(e);t.forEach((t, r) => {- var s = a == null || i ? r : String(FU(t, a, null)), c = FU(t, e.dataKey, 0), l = o.has(s) ? o.get(s) : {};+ var s = a == null || i ? r : String(TW(t, a, null)), c = TW(t, e.dataKey, 0), l = o.has(s) ? o.get(s) : {};Object.assign(l, { [n]: c }), o.set(s, l);});}@@ -54486,7 +55873,7 @@ var lX = (e, t) => e === t ? !0 : e == null || t == null ? !1 : e[0] === t[0] &&function uX(e, t) {return Array.isArray(e) && Array.isArray(t) && e.length === 0 && t.length === 0 ? !0 : e === t;}-function Whe(e, t) {+function e_e(e, t) {if (e.length === t.length) {for (var n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;return !0;@@ -54496,7 +55883,7 @@ function Whe(e, t) {//#endregion//#region node_modules/recharts/es6/state/selectors/selectTooltipAxisType.jsvar dX = (e) => {- var t = iG(e);+ var t = JG(e);return t === "horizontal" ? "xAxis" : t === "vertical" ? "yAxis" : t === "centric" ? "angleAxis" : "radiusAxis";}, fX = (e) => e.tooltip.settings.axisId;//#endregion@@ -54548,7 +55935,7 @@ var mX = (e, t) => {if (!vY(t)) {for (var n, r, i = 0; i < t.length; i++) {var a = t[i];- OU(a) && ((n === void 0 || a < n) && (n = a), (r === void 0 || a > r) && (r = a));+ vW(a) && ((n === void 0 || a < n) && (n = a), (r === void 0 || a > r) && (r = a));}return n !== void 0 && r !== void 0 ? [n, r] : void 0;}@@ -54565,7 +55952,7 @@ function hX(e, t) {//#region node_modules/d3-array/src/bisector.jsfunction gX(e) {let t = e, n = e;- e.length === 1 && (t = (t, n) => e(t) - n, n = Ghe(e));+ e.length === 1 && (t = (t, n) => e(t) - n, n = t_e(e));function r(e, t, r, i) {for (r ??= 0, i ??= e.length; r < i;) {let a = r + i >>> 1;@@ -54591,7 +55978,7 @@ function gX(e) {right: i};}-function Ghe(e) {+function t_e(e) {return (t, n) => hX(e(t), n);}//#endregion@@ -54599,7 +55986,7 @@ function Ghe(e) {function _X(e) {return e === null ? NaN : +e;}-function* Khe(e, t) {+function* n_e(e, t) {if (t === void 0) for (let t of e) t != null && (t = +t) >= t && (yield t);else {let n = -1;@@ -54613,7 +56000,7 @@ vX.left, gX(_X).center;//#endregion//#region node_modules/internmap/src/index.jsvar bX = class extends Map {- constructor(e, t = Yhe) {+ constructor(e, t = a_e) {if (super(), Object.defineProperties(this, {_intern: { value: /* @__PURE__ */ new Map() },_key: { value: t }@@ -54626,25 +56013,25 @@ var bX = class extends Map {return super.has(xX(this, e));}set(e, t) {- return super.set(qhe(this, e), t);+ return super.set(r_e(this, e), t);}delete(e) {- return super.delete(Jhe(this, e));+ return super.delete(i_e(this, e));}};function xX({ _intern: e, _key: t }, n) {let r = t(n);return e.has(r) ? e.get(r) : n;}-function qhe({ _intern: e, _key: t }, n) {+function r_e({ _intern: e, _key: t }, n) {let r = t(n);return e.has(r) ? e.get(r) : (e.set(r, n), n);}-function Jhe({ _intern: e, _key: t }, n) {+function i_e({ _intern: e, _key: t }, n) {let r = t(n);return e.has(r) && (n = e.get(n), e.delete(r)), n;}-function Yhe(e) {+function a_e(e) {return typeof e == "object" && e ? e.valueOf() : e;}//#endregion@@ -54717,15 +56104,15 @@ function jX(e, t, n) {}//#endregion//#region node_modules/d3-array/src/quantile.js-function Xhe(e, t, n) {- if (e = Float64Array.from(Khe(e, n)), r = e.length) {+function o_e(e, t, n) {+ if (e = Float64Array.from(n_e(e, n)), r = e.length) {if ((t = +t) <= 0 || r < 2) return kX(e);if (t >= 1) return OX(e);var r, i = (r - 1) * t, a = Math.floor(i), o = OX(AX(e, a).subarray(0, a + 1));return o + (kX(e.subarray(a + 1)) - o) * (i - a);}}-function Zhe(e, t, n = _X) {+function s_e(e, t, n = _X) {if (r = e.length) {if ((t = +t) <= 0 || r < 2) return +n(e[0], 0, e);if (t >= 1) return +n(e[r - 1], r - 1, e);@@ -54735,7 +56122,7 @@ function Zhe(e, t, n = _X) {}//#endregion//#region node_modules/d3-array/src/range.js-function Qhe(e, t, n) {+function c_e(e, t, n) {e = +e, t = +t, n = (i = arguments.length) < 2 ? (t = e, e = 0, 1) : i < 3 ? 1 : +n;for (var r = -1, i = Math.max(0, Math.ceil((t - e) / n)) | 0, a = Array(i); ++r < i;) a[r] = e + r * n;return a;@@ -54807,7 +56194,7 @@ function LX() {function d() {var e = t().length, d = i < r, f = d ? i : r, p = d ? r : i;a = (p - f) / Math.max(1, e - c + l * 2), s && (a = Math.floor(a)), f += (p - f - a * (e - c)) * u, o = a * (1 - c), s && (f = Math.round(f), o = Math.round(o));- var m = Qhe(e).map(function(e) {+ var m = c_e(e).map(function(e) {return f + a * e;});return n(d ? m.reverse() : m);@@ -54842,7 +56229,7 @@ function RX(e) {return RX(t());}, e;}-function $he() {+function l_e() {return RX(LX.apply(null, arguments).paddingInner(1));}//#endregion@@ -54858,7 +56245,7 @@ function BX(e, t) {//#endregion//#region node_modules/d3-color/src/color.jsfunction VX() {}-var HX = .7, UX = 1 / HX, WX = "\\s*([+-]?\\d+)\\s*", GX = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", KX = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", ege = /^#([0-9a-f]{3,8})$/, tge = RegExp(`^rgb\\(${WX},${WX},${WX}\\)$`), nge = RegExp(`^rgb\\(${KX},${KX},${KX}\\)$`), rge = RegExp(`^rgba\\(${WX},${WX},${WX},${GX}\\)$`), ige = RegExp(`^rgba\\(${KX},${KX},${KX},${GX}\\)$`), age = RegExp(`^hsl\\(${GX},${KX},${KX}\\)$`), oge = RegExp(`^hsla\\(${GX},${KX},${KX},${GX}\\)$`), qX = {+var HX = .7, UX = 1 / HX, WX = "\\s*([+-]?\\d+)\\s*", GX = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", KX = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", u_e = /^#([0-9a-f]{3,8})$/, d_e = RegExp(`^rgb\\(${WX},${WX},${WX}\\)$`), f_e = RegExp(`^rgb\\(${KX},${KX},${KX}\\)$`), p_e = RegExp(`^rgba\\(${WX},${WX},${WX},${GX}\\)$`), m_e = RegExp(`^rgba\\(${KX},${KX},${KX},${GX}\\)$`), h_e = RegExp(`^hsl\\(${GX},${KX},${KX}\\)$`), g_e = RegExp(`^hsla\\(${GX},${KX},${KX},${GX}\\)$`), qX = {aliceblue: 15792383,antiquewhite: 16444375,aqua: 65535,@@ -55017,18 +56404,18 @@ zX(VX, XX, {},hex: JX,formatHex: JX,- formatHex8: sge,- formatHsl: cge,+ formatHex8: __e,+ formatHsl: v_e,formatRgb: YX,toString: YX});function JX() {return this.rgb().formatHex();}-function sge() {+function __e() {return this.rgb().formatHex8();}-function cge() {+function v_e() {return sZ(this).formatHsl();}function YX() {@@ -55036,7 +56423,7 @@ function YX() {}function XX(e) {var t, n;- return e = (e + "").trim().toLowerCase(), (t = ege.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? ZX(t) : n === 3 ? new eZ(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? QX(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? QX(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = tge.exec(e)) ? new eZ(t[1], t[2], t[3], 1) : (t = nge.exec(e)) ? new eZ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = rge.exec(e)) ? QX(t[1], t[2], t[3], t[4]) : (t = ige.exec(e)) ? QX(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = age.exec(e)) ? oZ(t[1], t[2] / 100, t[3] / 100, 1) : (t = oge.exec(e)) ? oZ(t[1], t[2] / 100, t[3] / 100, t[4]) : qX.hasOwnProperty(e) ? ZX(qX[e]) : e === "transparent" ? new eZ(NaN, NaN, NaN, 0) : null;+ return e = (e + "").trim().toLowerCase(), (t = u_e.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? ZX(t) : n === 3 ? new eZ(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? QX(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? QX(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = d_e.exec(e)) ? new eZ(t[1], t[2], t[3], 1) : (t = f_e.exec(e)) ? new eZ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = p_e.exec(e)) ? QX(t[1], t[2], t[3], t[4]) : (t = m_e.exec(e)) ? QX(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = h_e.exec(e)) ? oZ(t[1], t[2] / 100, t[3] / 100, 1) : (t = g_e.exec(e)) ? oZ(t[1], t[2] / 100, t[3] / 100, t[4]) : qX.hasOwnProperty(e) ? ZX(qX[e]) : e === "transparent" ? new eZ(NaN, NaN, NaN, 0) : null;}function ZX(e) {return new eZ(e >> 16 & 255, e >> 8 & 255, e & 255, 1);@@ -55044,11 +56431,11 @@ function ZX(e) {function QX(e, t, n, r) {return r <= 0 && (e = t = n = NaN), new eZ(e, t, n, r);}-function lge(e) {+function y_e(e) {return e instanceof VX || (e = XX(e)), e ? (e = e.rgb(), new eZ(e.r, e.g, e.b, e.opacity)) : new eZ();}function $X(e, t, n, r) {- return arguments.length === 1 ? lge(e) : new eZ(e, t, n, r ?? 1);+ return arguments.length === 1 ? y_e(e) : new eZ(e, t, n, r ?? 1);}function eZ(e, t, n, r) {this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;@@ -55071,14 +56458,14 @@ zX(eZ, $X, BX(VX, {},hex: tZ,formatHex: tZ,- formatHex8: uge,+ formatHex8: b_e,formatRgb: nZ,toString: nZ}));function tZ() {return `#${aZ(this.r)}${aZ(this.g)}${aZ(this.b)}`;}-function uge() {+function b_e() {return `#${aZ(this.r)}${aZ(this.g)}${aZ(this.b)}${aZ((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;}function nZ() {@@ -55105,13 +56492,13 @@ function sZ(e) {var t = e.r / 255, n = e.g / 255, r = e.b / 255, i = Math.min(t, n, r), a = Math.max(t, n, r), o = NaN, s = a - i, c = (a + i) / 2;return s ? (o = t === a ? (n - r) / s + (n < r) * 6 : n === a ? (r - t) / s + 2 : (t - n) / s + 4, s /= c < .5 ? a + i : 2 - a - i, o *= 60) : s = c > 0 && c < 1 ? 0 : o, new cZ(o, s, c, e.opacity);}-function dge(e, t, n, r) {+function x_e(e, t, n, r) {return arguments.length === 1 ? sZ(e) : new cZ(e, t, n, r ?? 1);}function cZ(e, t, n, r) {this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;}-zX(cZ, dge, BX(VX, {+zX(cZ, x_e, BX(VX, {brighter(e) {return e = e == null ? UX : UX ** +e, new cZ(this.h, this.s, this.l * e, this.opacity);},@@ -55147,29 +56534,29 @@ function dZ(e, t, n) {var fZ = (e) => () => e;//#endregion//#region node_modules/d3-interpolate/src/color.js-function fge(e, t) {+function S_e(e, t) {return function(n) {return e + n * t;};}-function pge(e, t, n) {+function C_e(e, t, n) {return e **= +n, t = t ** +n - e, n = 1 / n, function(r) {return (e + r * t) ** +n;};}-function mge(e) {+function w_e(e) {return (e = +e) == 1 ? pZ : function(t, n) {- return n - t ? pge(t, n, e) : fZ(isNaN(t) ? n : t);+ return n - t ? C_e(t, n, e) : fZ(isNaN(t) ? n : t);};}function pZ(e, t) {var n = t - e;- return n ? fge(e, n) : fZ(isNaN(e) ? t : e);+ return n ? S_e(e, n) : fZ(isNaN(e) ? t : e);}//#endregion//#region node_modules/d3-interpolate/src/rgb.jsvar mZ = (function e(t) {- var n = mge(t);+ var n = w_e(t);function r(e, t) {var r = n((e = $X(e)).r, (t = $X(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = pZ(e.opacity, t.opacity);return function(t) {@@ -55180,7 +56567,7 @@ var mZ = (function e(t) {})(1);//#endregion//#region node_modules/d3-interpolate/src/numberArray.js-function hge(e, t) {+function T_e(e, t) {t ||= [];var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), i;return function(a) {@@ -55188,12 +56575,12 @@ function hge(e, t) {return r;};}-function gge(e) {+function E_e(e) {return ArrayBuffer.isView(e) && !(e instanceof DataView);}//#endregion//#region node_modules/d3-interpolate/src/array.js-function _ge(e, t) {+function D_e(e, t) {var n = t ? t.length : 0, r = e ? Math.min(n, e.length) : 0, i = Array(r), a = Array(n), o;for (o = 0; o < r; ++o) i[o] = vZ(e[o], t[o]);for (; o < n; ++o) a[o] = t[o];@@ -55204,7 +56591,7 @@ function _ge(e, t) {}//#endregion//#region node_modules/d3-interpolate/src/date.js-function vge(e, t) {+function O_e(e, t) {var n = /* @__PURE__ */ new Date();return e = +e, t = +t, function(r) {return n.setTime(e * (1 - r) + t * r), n;@@ -55219,7 +56606,7 @@ function hZ(e, t) {}//#endregion//#region node_modules/d3-interpolate/src/object.js-function yge(e, t) {+function k_e(e, t) {var n = {}, r = {}, i;for (i in (typeof e != "object" || !e) && (e = {}), (typeof t != "object" || !t) && (t = {}), t) i in e ? n[i] = vZ(e[i], t[i]) : r[i] = t[i];return function(e) {@@ -55230,23 +56617,23 @@ function yge(e, t) {//#endregion//#region node_modules/d3-interpolate/src/string.jsvar gZ = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, _Z = new RegExp(gZ.source, "g");-function bge(e) {+function A_e(e) {return function() {return e;};}-function xge(e) {+function j_e(e) {return function(t) {return e(t) + "";};}-function Sge(e, t) {+function M_e(e, t) {var n = gZ.lastIndex = _Z.lastIndex = 0, r, i, a, o = -1, s = [], c = [];for (e += "", t += ""; (r = gZ.exec(e)) && (i = _Z.exec(t));) (a = i.index) > n && (a = t.slice(n, a), s[o] ? s[o] += a : s[++o] = a), (r = r[0]) === (i = i[0]) ? s[o] ? s[o] += i : s[++o] = i : (s[++o] = null, c.push({i: o,x: hZ(r, i)})), n = _Z.lastIndex;- return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? xge(c[0].x) : bge(t) : (t = c.length, function(e) {+ return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? j_e(c[0].x) : A_e(t) : (t = c.length, function(e) {for (var n = 0, r; n < t; ++n) s[(r = c[n]).i] = r.x(e);return s.join("");});@@ -55255,7 +56642,7 @@ function Sge(e, t) {//#region node_modules/d3-interpolate/src/value.jsfunction vZ(e, t) {var n = typeof t, r;- return t == null || n === "boolean" ? fZ(t) : (n === "number" ? hZ : n === "string" ? (r = XX(t)) ? (t = r, mZ) : Sge : t instanceof XX ? mZ : t instanceof Date ? vge : gge(t) ? hge : Array.isArray(t) ? _ge : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? yge : hZ)(e, t);+ return t == null || n === "boolean" ? fZ(t) : (n === "number" ? hZ : n === "string" ? (r = XX(t)) ? (t = r, mZ) : M_e : t instanceof XX ? mZ : t instanceof Date ? O_e : E_e(t) ? T_e : Array.isArray(t) ? D_e : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? k_e : hZ)(e, t);}//#endregion//#region node_modules/d3-interpolate/src/round.js@@ -55266,7 +56653,7 @@ function yZ(e, t) {}//#endregion//#region node_modules/d3-interpolate/src/piecewise.js-function Cge(e, t) {+function N_e(e, t) {t === void 0 && (t = e, e = vZ);for (var n = 0, r = t.length - 1, i = t[0], a = Array(r < 0 ? 0 : r); n < r;) a[n] = e(i, i = t[++n]);return function(e) {@@ -55276,7 +56663,7 @@ function Cge(e, t) {}//#endregion//#region node_modules/d3-scale/src/constant.js-function wge(e) {+function P_e(e) {return function() {return e;};@@ -55295,21 +56682,21 @@ function SZ(e) {function CZ(e, t) {return (t -= e = +e) ? function(n) {return (n - e) / t;- } : wge(isNaN(t) ? NaN : .5);+ } : P_e(isNaN(t) ? NaN : .5);}-function Tge(e, t) {+function F_e(e, t) {var n;return e > t && (n = e, e = t, t = n), function(n) {return Math.max(e, Math.min(t, n));};}-function Ege(e, t, n) {+function I_e(e, t, n) {var r = e[0], i = e[1], a = t[0], o = t[1];return i < r ? (r = CZ(i, r), a = n(o, a)) : (r = CZ(r, i), a = n(a, o)), function(e) {return a(r(e));};}-function Dge(e, t, n) {+function L_e(e, t, n) {var r = Math.min(e.length, t.length) - 1, i = Array(r), a = Array(r), o = -1;for (e[r] < e[0] && (e = e.slice().reverse(), t = t.slice().reverse()); ++o < r;) i[o] = CZ(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);return function(t) {@@ -55324,7 +56711,7 @@ function TZ() {var e = xZ, t = xZ, n = vZ, r, i, a, o = SZ, s, c, l;function u() {var n = Math.min(e.length, t.length);- return o !== SZ && (o = Tge(e[0], e[n - 1])), s = n > 2 ? Dge : Ege, c = l = null, d;+ return o !== SZ && (o = F_e(e[0], e[n - 1])), s = n > 2 ? L_e : I_e, c = l = null, d;}function d(i) {return i == null || isNaN(i = +i) ? a : (c ||= s(e.map(r), t, n))(r(o(i)));@@ -55352,7 +56739,7 @@ function EZ() {}//#endregion//#region node_modules/d3-format/src/formatDecimal.js-function Oge(e) {+function R_e(e) {return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);}function DZ(e, t) {@@ -55367,7 +56754,7 @@ function OZ(e) {}//#endregion//#region node_modules/d3-format/src/formatGroup.js-function kge(e, t) {+function z_e(e, t) {return function(n, r) {for (var i = n.length, a = [], o = 0, s = e[0], c = 0; i > 0 && s > 0 && (c + s + 1 > r && (s = Math.max(1, r - c)), a.push(n.substring(i -= s, i + s)), !((c += s + 1) > r));) s = e[o = (o + 1) % e.length];return a.reverse().join(t);@@ -55375,7 +56762,7 @@ function kge(e, t) {}//#endregion//#region node_modules/d3-format/src/formatNumerals.js-function Age(e) {+function B_e(e) {return function(t) {return t.replace(/[0-9]/g, function(t) {return e[+t];@@ -55384,9 +56771,9 @@ function Age(e) {}//#endregion//#region node_modules/d3-format/src/formatSpecifier.js-var jge = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;+var V_e = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function kZ(e) {- if (!(t = jge.exec(e))) throw Error("invalid format: " + e);+ if (!(t = V_e.exec(e))) throw Error("invalid format: " + e);var t;return new AZ({fill: t[1],@@ -55410,7 +56797,7 @@ AZ.prototype.toString = function() {};//#endregion//#region node_modules/d3-format/src/formatTrim.js-function Mge(e) {+function H_e(e) {out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {case ".":r = i = n;@@ -55427,7 +56814,7 @@ function Mge(e) {//#endregion//#region node_modules/d3-format/src/formatPrefixAuto.jsvar jZ;-function Nge(e, t) {+function U_e(e, t) {var n = DZ(e, t);if (!n) return jZ = void 0, e.toPrecision(t);var r = n[0], i = n[1], a = i - (jZ = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;@@ -55447,14 +56834,14 @@ var NZ = {"%": (e, t) => (e * 100).toFixed(t),b: (e) => Math.round(e).toString(2),c: (e) => e + "",- d: Oge,+ d: R_e,e: (e, t) => e.toExponential(t),f: (e, t) => e.toFixed(t),g: (e, t) => e.toPrecision(t),o: (e) => Math.round(e).toString(8),p: (e, t) => MZ(e * 100, t),r: MZ,- s: Nge,+ s: U_e,X: (e) => Math.round(e).toString(16).toUpperCase(),x: (e) => Math.round(e).toString(16)};@@ -55484,8 +56871,8 @@ var FZ = Array.prototype.map, IZ = ["Z","Y"];-function Pge(e) {- var t = e.grouping === void 0 || e.thousands === void 0 ? PZ : kge(FZ.call(e.grouping, Number), e.thousands + ""), n = e.currency === void 0 ? "" : e.currency[0] + "", r = e.currency === void 0 ? "" : e.currency[1] + "", i = e.decimal === void 0 ? "." : e.decimal + "", a = e.numerals === void 0 ? PZ : Age(FZ.call(e.numerals, String)), o = e.percent === void 0 ? "%" : e.percent + "", s = e.minus === void 0 ? "−" : e.minus + "", c = e.nan === void 0 ? "NaN" : e.nan + "";+function W_e(e) {+ var t = e.grouping === void 0 || e.thousands === void 0 ? PZ : z_e(FZ.call(e.grouping, Number), e.thousands + ""), n = e.currency === void 0 ? "" : e.currency[0] + "", r = e.currency === void 0 ? "" : e.currency[1] + "", i = e.decimal === void 0 ? "." : e.decimal + "", a = e.numerals === void 0 ? PZ : B_e(FZ.call(e.numerals, String)), o = e.percent === void 0 ? "%" : e.percent + "", s = e.minus === void 0 ? "−" : e.minus + "", c = e.nan === void 0 ? "NaN" : e.nan + "";function l(e, l) {e = kZ(e);var u = e.fill, d = e.align, f = e.sign, p = e.symbol, m = e.zero, h = e.width, g = e.comma, _ = e.precision, v = e.trim, y = e.type;@@ -55498,7 +56885,7 @@ function Pge(e) {else {e = +e;var w = e < 0 || 1 / e < 0;- if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = Mge(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && jZ !== void 0 ? IZ[8 + jZ / 3] : "") + r + (w && f === "(" ? ")" : ""), C) {+ if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = H_e(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && jZ !== void 0 ? IZ[8 + jZ / 3] : "") + r + (w && f === "(" ? ")" : ""), C) {for (o = -1, l = e.length; ++o < l;) if (p = e.charCodeAt(o), 48 > p || p > 57) {r = (p === 46 ? i + e.slice(o + 1) : e.slice(o)) + r, e = e.slice(0, o);break;@@ -55539,27 +56926,27 @@ function Pge(e) {//#endregion//#region node_modules/d3-format/src/defaultLocale.jsvar LZ, RZ, zZ;-Fge({+G_e({thousands: ",",grouping: [3],currency: ["$", ""]});-function Fge(e) {- return LZ = Pge(e), RZ = LZ.format, zZ = LZ.formatPrefix, LZ;+function G_e(e) {+ return LZ = W_e(e), RZ = LZ.format, zZ = LZ.formatPrefix, LZ;}//#endregion//#region node_modules/d3-format/src/precisionFixed.js-function Ige(e) {+function K_e(e) {return Math.max(0, -OZ(Math.abs(e)));}//#endregion//#region node_modules/d3-format/src/precisionPrefix.js-function Lge(e, t) {+function q_e(e, t) {return Math.max(0, Math.max(-8, Math.min(8, Math.floor(OZ(t) / 3))) * 3 - OZ(Math.abs(e)));}//#endregion//#region node_modules/d3-format/src/precisionRound.js-function Rge(e, t) {+function J_e(e, t) {return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, OZ(t) - OZ(e)) + 1;}//#endregion@@ -55569,16 +56956,16 @@ function BZ(e, t, n, r) {switch (r = kZ(r ?? ",f"), r.type) {case "s":var o = Math.max(Math.abs(e), Math.abs(t));- return r.precision == null && !isNaN(a = Lge(i, o)) && (r.precision = a), zZ(r, o);+ return r.precision == null && !isNaN(a = q_e(i, o)) && (r.precision = a), zZ(r, o);case "":case "e":case "g":case "p":case "r":- r.precision == null && !isNaN(a = Rge(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));+ r.precision == null && !isNaN(a = J_e(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));break;case "f":- case "%": r.precision == null && !isNaN(a = Ige(i)) && (r.precision = a - (r.type === "%") * 2);+ case "%": r.precision == null && !isNaN(a = K_e(i)) && (r.precision = a - (r.type === "%") * 2);}return RZ(r);}@@ -55641,19 +57028,19 @@ function GZ(e) {function KZ(e) {return Math.exp(e);}-function zge(e) {+function Y_e(e) {return -Math.log(-e);}-function Bge(e) {+function X_e(e) {return -Math.exp(-e);}-function Vge(e) {+function Z_e(e) {return isFinite(e) ? +("1e" + e) : e < 0 ? 0 : e;}-function Hge(e) {- return e === 10 ? Vge : e === Math.E ? Math.exp : (t) => e ** +t;+function Q_e(e) {+ return e === 10 ? Z_e : e === Math.E ? Math.exp : (t) => e ** +t;}-function Uge(e) {+function $_e(e) {return e === Math.E ? Math.log : e === 10 && Math.log10 || e === 2 && Math.log2 || (e = Math.log(e), (t) => Math.log(t) / e);}function qZ(e) {@@ -55662,7 +57049,7 @@ function qZ(e) {function JZ(e) {let t = e(GZ, KZ), n = t.domain, r = 10, i, a;function o() {- return i = Uge(r), a = Hge(r), n()[0] < 0 ? (i = qZ(i), a = qZ(a), e(zge, Bge)) : e(GZ, KZ), t;+ return i = $_e(r), a = Q_e(r), n()[0] < 0 ? (i = qZ(i), a = qZ(a), e(Y_e, X_e)) : e(GZ, KZ), t;}return t.base = function(e) {return arguments.length ? (r = +e, o()) : r;@@ -55732,16 +57119,16 @@ function eQ(e) {return t < 0 ? -((-t) ** +e) : t ** +e;};}-function Wge(e) {+function eve(e) {return e < 0 ? -Math.sqrt(-e) : Math.sqrt(e);}-function Gge(e) {+function tve(e) {return e < 0 ? -e * e : e * e;}function tQ(e) {var t = e(SZ, SZ), n = 1;function r() {- return n === 1 ? e(SZ, SZ) : n === .5 ? e(Wge, Gge) : e(eQ(n), eQ(1 / n));+ return n === 1 ? e(SZ, SZ) : n === .5 ? e(eve, tve) : e(eQ(n), eQ(1 / n));}return t.exponent = function(e) {return arguments.length ? (n = +e, r()) : n;@@ -55753,7 +57140,7 @@ function nQ() {return wZ(e, nQ()).exponent(e.exponent());}, NX.apply(e, arguments), e;}-function Kge() {+function nve() {return nQ.apply(null, arguments).exponent(.5);}//#endregion@@ -55761,13 +57148,13 @@ function Kge() {function rQ(e) {return Math.sign(e) * e * e;}-function qge(e) {+function rve(e) {return Math.sign(e) * Math.sqrt(Math.abs(e));}function iQ() {var e = EZ(), t = [0, 1], n = !1, r;function i(t) {- var i = qge(e(t));+ var i = rve(e(t));return isNaN(i) ? r : n ? Math.round(i) : i;}return i.invert = function(t) {@@ -55794,7 +57181,7 @@ function aQ() {var e = [], t = [], n = [], r;function i() {var r = 0, i = Math.max(1, t.length);- for (n = Array(i - 1); ++r < i;) n[r - 1] = Zhe(e, r / i);+ for (n = Array(i - 1); ++r < i;) n[r - 1] = s_e(e, r / i);return a;}function a(e) {@@ -55963,8 +57350,8 @@ function DQ(e) {e.setDate(e.getDate() + t * 7);}, (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * pQ) / gQ);}-var OQ = DQ(0), kQ = DQ(1), Jge = DQ(2), Yge = DQ(3), AQ = DQ(4), Xge = DQ(5), Zge = DQ(6);-OQ.range, kQ.range, Jge.range, Yge.range, AQ.range, Xge.range, Zge.range;+var OQ = DQ(0), kQ = DQ(1), ive = DQ(2), ave = DQ(3), AQ = DQ(4), ove = DQ(5), sve = DQ(6);+OQ.range, kQ.range, ive.range, ave.range, AQ.range, ove.range, sve.range;function jQ(e) {return uQ((t) => {t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7), t.setUTCHours(0, 0, 0, 0);@@ -55972,8 +57359,8 @@ function jQ(e) {e.setUTCDate(e.getUTCDate() + t * 7);}, (e, t) => (t - e) / gQ);}-var MQ = jQ(0), NQ = jQ(1), Qge = jQ(2), $ge = jQ(3), PQ = jQ(4), e_e = jQ(5), t_e = jQ(6);-MQ.range, NQ.range, Qge.range, $ge.range, PQ.range, e_e.range, t_e.range;+var MQ = jQ(0), NQ = jQ(1), cve = jQ(2), lve = jQ(3), PQ = jQ(4), uve = jQ(5), dve = jQ(6);+MQ.range, NQ.range, cve.range, lve.range, PQ.range, uve.range, dve.range;//#endregion//#region node_modules/d3-time/src/month.jsvar FQ = uQ((e) => {@@ -56120,7 +57507,7 @@ function zQ(e, t, n, r, i, a) {}return [s, c];}-var [n_e, r_e] = zQ(RQ, IQ, MQ, EQ, CQ, xQ), [i_e, a_e] = zQ(LQ, FQ, OQ, wQ, SQ, bQ);+var [fve, pve] = zQ(RQ, IQ, MQ, EQ, CQ, xQ), [mve, hve] = zQ(LQ, FQ, OQ, wQ, SQ, bQ);//#endregion//#region node_modules/d3-time-format/src/locale.jsfunction BQ(e) {@@ -56148,39 +57535,39 @@ function HQ(e, t, n) {L: 0};}-function o_e(e) {+function gve(e) {var t = e.dateTime, n = e.date, r = e.time, i = e.periods, a = e.days, o = e.shortDays, s = e.months, c = e.shortMonths, l = KQ(i), u = qQ(i), d = KQ(a), f = qQ(a), p = KQ(o), m = qQ(o), h = KQ(s), g = qQ(s), _ = KQ(c), v = qQ(c), y = {a: N,- A: P,- b: ee,- B: F,+ A: ee,+ b: te,+ B: P,c: null,d: QQ,e: QQ,- f: k_e,- g: z_e,- G: V_e,- H: E_e,- I: D_e,- j: O_e,+ f: zve,+ g: Yve,+ G: Zve,+ H: Ive,+ I: Lve,+ j: Rve,L: $Q,- m: A_e,- M: j_e,- p: te,- q: ne,+ m: Bve,+ M: Vve,+ p: ne,+ q: F,Q: a$,s: o$,- S: M_e,- u: N_e,- U: P_e,- V: F_e,- w: I_e,- W: L_e,+ S: Hve,+ u: Uve,+ U: Wve,+ V: Gve,+ w: Kve,+ W: qve,x: null,X: null,- y: R_e,- Y: B_e,- Z: H_e,+ y: Jve,+ Y: Xve,+ Z: Qve,"%": i$}, b = {a: re,@@ -56190,30 +57577,30 @@ function o_e(e) {c: null,d: t$,e: t$,- f: K_e,- g: nve,- G: ive,- H: U_e,- I: W_e,- j: G_e,+ f: nye,+ g: fye,+ G: mye,+ H: $ve,+ I: eye,+ j: tye,L: n$,- m: q_e,- M: J_e,+ m: rye,+ M: iye,p: se,q: ce,Q: a$,s: o$,- S: Y_e,- u: X_e,- U: Z_e,- V: Q_e,- w: $_e,- W: eve,+ S: aye,+ u: oye,+ U: sye,+ V: cye,+ w: lye,+ W: uye,x: null,X: null,- y: tve,- Y: rve,- Z: ave,+ y: dye,+ Y: pye,+ Z: hye,"%": i$}, x = {a: E,@@ -56223,31 +57610,31 @@ function o_e(e) {c: A,d: XQ,e: XQ,- f: S_e,+ f: Mve,g: YQ,G: JQ,H: ZQ,I: ZQ,- j: v_e,- L: x_e,- m: __e,- M: y_e,+ j: Ove,+ L: jve,+ m: Dve,+ M: kve,p: T,- q: g_e,- Q: w_e,- s: T_e,- S: b_e,- u: d_e,- U: f_e,- V: p_e,- w: u_e,- W: m_e,+ q: Eve,+ Q: Pve,+ s: Fve,+ S: Ave,+ u: xve,+ U: Sve,+ V: Cve,+ w: bve,+ W: wve,x: j,X: M,y: YQ,Y: JQ,- Z: h_e,- "%": C_e+ Z: Tve,+ "%": Nve};y.x = S(n, y), y.X = S(r, y), y.c = S(t, y), b.x = S(n, b), b.X = S(r, b), b.c = S(t, b);function S(e, t) {@@ -56311,19 +57698,19 @@ function o_e(e) {function N(e) {return o[e.getDay()];}- function P(e) {+ function ee(e) {return a[e.getDay()];}- function ee(e) {+ function te(e) {return c[e.getMonth()];}- function F(e) {+ function P(e) {return s[e.getMonth()];}- function te(e) {+ function ne(e) {return i[+(e.getHours() >= 12)];}- function ne(e) {+ function F(e) {return 1 + ~~(e.getMonth() / 3);}function re(e) {@@ -56375,37 +57762,37 @@ var UQ = {"-": "",_: " ",0: "0"-}, WQ = /^\s*\d+/, s_e = /^%/, c_e = /[\\^$*+?|[\]().{}]/g;+}, WQ = /^\s*\d+/, _ve = /^%/, vve = /[\\^$*+?|[\]().{}]/g;function GQ(e, t, n) {var r = e < 0 ? "-" : "", i = (r ? -e : e) + "", a = i.length;return r + (a < n ? Array(n - a + 1).join(t) + i : i);}-function l_e(e) {- return e.replace(c_e, "\\$&");+function yve(e) {+ return e.replace(vve, "\\$&");}function KQ(e) {- return RegExp("^(?:" + e.map(l_e).join("|") + ")", "i");+ return RegExp("^(?:" + e.map(yve).join("|") + ")", "i");}function qQ(e) {return new Map(e.map((e, t) => [e.toLowerCase(), t]));}-function u_e(e, t, n) {+function bve(e, t, n) {var r = WQ.exec(t.slice(n, n + 1));return r ? (e.w = +r[0], n + r[0].length) : -1;}-function d_e(e, t, n) {+function xve(e, t, n) {var r = WQ.exec(t.slice(n, n + 1));return r ? (e.u = +r[0], n + r[0].length) : -1;}-function f_e(e, t, n) {+function Sve(e, t, n) {var r = WQ.exec(t.slice(n, n + 2));return r ? (e.U = +r[0], n + r[0].length) : -1;}-function p_e(e, t, n) {+function Cve(e, t, n) {var r = WQ.exec(t.slice(n, n + 2));return r ? (e.V = +r[0], n + r[0].length) : -1;}-function m_e(e, t, n) {+function wve(e, t, n) {var r = WQ.exec(t.slice(n, n + 2));return r ? (e.W = +r[0], n + r[0].length) : -1;}@@ -56417,15 +57804,15 @@ function YQ(e, t, n) {var r = WQ.exec(t.slice(n, n + 2));return r ? (e.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;}-function h_e(e, t, n) {+function Tve(e, t, n) {var r = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n, n + 6));return r ? (e.Z = r[1] ? 0 : -(r[2] + (r[3] || "00")), n + r[0].length) : -1;}-function g_e(e, t, n) {+function Eve(e, t, n) {var r = WQ.exec(t.slice(n, n + 1));return r ? (e.q = r[0] * 3 - 3, n + r[0].length) : -1;}-function __e(e, t, n) {+function Dve(e, t, n) {var r = WQ.exec(t.slice(n, n + 2));return r ? (e.m = r[0] - 1, n + r[0].length) : -1;}@@ -56433,7 +57820,7 @@ function XQ(e, t, n) {var r = WQ.exec(t.slice(n, n + 2));return r ? (e.d = +r[0], n + r[0].length) : -1;}-function v_e(e, t, n) {+function Ove(e, t, n) {var r = WQ.exec(t.slice(n, n + 3));return r ? (e.m = 0, e.d = +r[0], n + r[0].length) : -1;}@@ -56441,159 +57828,159 @@ function ZQ(e, t, n) {var r = WQ.exec(t.slice(n, n + 2));return r ? (e.H = +r[0], n + r[0].length) : -1;}-function y_e(e, t, n) {+function kve(e, t, n) {var r = WQ.exec(t.slice(n, n + 2));return r ? (e.M = +r[0], n + r[0].length) : -1;}-function b_e(e, t, n) {+function Ave(e, t, n) {var r = WQ.exec(t.slice(n, n + 2));return r ? (e.S = +r[0], n + r[0].length) : -1;}-function x_e(e, t, n) {+function jve(e, t, n) {var r = WQ.exec(t.slice(n, n + 3));return r ? (e.L = +r[0], n + r[0].length) : -1;}-function S_e(e, t, n) {+function Mve(e, t, n) {var r = WQ.exec(t.slice(n, n + 6));return r ? (e.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;}-function C_e(e, t, n) {- var r = s_e.exec(t.slice(n, n + 1));+function Nve(e, t, n) {+ var r = _ve.exec(t.slice(n, n + 1));return r ? n + r[0].length : -1;}-function w_e(e, t, n) {+function Pve(e, t, n) {var r = WQ.exec(t.slice(n));return r ? (e.Q = +r[0], n + r[0].length) : -1;}-function T_e(e, t, n) {+function Fve(e, t, n) {var r = WQ.exec(t.slice(n));return r ? (e.s = +r[0], n + r[0].length) : -1;}function QQ(e, t) {return GQ(e.getDate(), t, 2);}-function E_e(e, t) {+function Ive(e, t) {return GQ(e.getHours(), t, 2);}-function D_e(e, t) {+function Lve(e, t) {return GQ(e.getHours() % 12 || 12, t, 2);}-function O_e(e, t) {+function Rve(e, t) {return GQ(1 + wQ.count(LQ(e), e), t, 3);}function $Q(e, t) {return GQ(e.getMilliseconds(), t, 3);}-function k_e(e, t) {+function zve(e, t) {return $Q(e, t) + "000";}-function A_e(e, t) {+function Bve(e, t) {return GQ(e.getMonth() + 1, t, 2);}-function j_e(e, t) {+function Vve(e, t) {return GQ(e.getMinutes(), t, 2);}-function M_e(e, t) {+function Hve(e, t) {return GQ(e.getSeconds(), t, 2);}-function N_e(e) {+function Uve(e) {var t = e.getDay();return t === 0 ? 7 : t;}-function P_e(e, t) {+function Wve(e, t) {return GQ(OQ.count(LQ(e) - 1, e), t, 2);}function e$(e) {var t = e.getDay();return t >= 4 || t === 0 ? AQ(e) : AQ.ceil(e);}-function F_e(e, t) {+function Gve(e, t) {return e = e$(e), GQ(AQ.count(LQ(e), e) + (LQ(e).getDay() === 4), t, 2);}-function I_e(e) {+function Kve(e) {return e.getDay();}-function L_e(e, t) {+function qve(e, t) {return GQ(kQ.count(LQ(e) - 1, e), t, 2);}-function R_e(e, t) {+function Jve(e, t) {return GQ(e.getFullYear() % 100, t, 2);}-function z_e(e, t) {+function Yve(e, t) {return e = e$(e), GQ(e.getFullYear() % 100, t, 2);}-function B_e(e, t) {+function Xve(e, t) {return GQ(e.getFullYear() % 1e4, t, 4);}-function V_e(e, t) {+function Zve(e, t) {var n = e.getDay();return e = n >= 4 || n === 0 ? AQ(e) : AQ.ceil(e), GQ(e.getFullYear() % 1e4, t, 4);}-function H_e(e) {+function Qve(e) {var t = e.getTimezoneOffset();return (t > 0 ? "-" : (t *= -1, "+")) + GQ(t / 60 | 0, "0", 2) + GQ(t % 60, "0", 2);}function t$(e, t) {return GQ(e.getUTCDate(), t, 2);}-function U_e(e, t) {+function $ve(e, t) {return GQ(e.getUTCHours(), t, 2);}-function W_e(e, t) {+function eye(e, t) {return GQ(e.getUTCHours() % 12 || 12, t, 2);}-function G_e(e, t) {+function tye(e, t) {return GQ(1 + TQ.count(RQ(e), e), t, 3);}function n$(e, t) {return GQ(e.getUTCMilliseconds(), t, 3);}-function K_e(e, t) {+function nye(e, t) {return n$(e, t) + "000";}-function q_e(e, t) {+function rye(e, t) {return GQ(e.getUTCMonth() + 1, t, 2);}-function J_e(e, t) {+function iye(e, t) {return GQ(e.getUTCMinutes(), t, 2);}-function Y_e(e, t) {+function aye(e, t) {return GQ(e.getUTCSeconds(), t, 2);}-function X_e(e) {+function oye(e) {var t = e.getUTCDay();return t === 0 ? 7 : t;}-function Z_e(e, t) {+function sye(e, t) {return GQ(MQ.count(RQ(e) - 1, e), t, 2);}function r$(e) {var t = e.getUTCDay();return t >= 4 || t === 0 ? PQ(e) : PQ.ceil(e);}-function Q_e(e, t) {+function cye(e, t) {return e = r$(e), GQ(PQ.count(RQ(e), e) + (RQ(e).getUTCDay() === 4), t, 2);}-function $_e(e) {+function lye(e) {return e.getUTCDay();}-function eve(e, t) {+function uye(e, t) {return GQ(NQ.count(RQ(e) - 1, e), t, 2);}-function tve(e, t) {+function dye(e, t) {return GQ(e.getUTCFullYear() % 100, t, 2);}-function nve(e, t) {+function fye(e, t) {return e = r$(e), GQ(e.getUTCFullYear() % 100, t, 2);}-function rve(e, t) {+function pye(e, t) {return GQ(e.getUTCFullYear() % 1e4, t, 4);}-function ive(e, t) {+function mye(e, t) {var n = e.getUTCDay();return e = n >= 4 || n === 0 ? PQ(e) : PQ.ceil(e), GQ(e.getUTCFullYear() % 1e4, t, 4);}-function ave() {+function hye() {return "+0000";}function i$() {@@ -56608,7 +57995,7 @@ function o$(e) {//#endregion//#region node_modules/d3-time-format/src/defaultLocale.jsvar s$, c$, l$;-ove({+gye({dateTime: "%x, %X",date: "%-m/%-d/%Y",time: "%-I:%M:%S %p",@@ -56660,15 +58047,15 @@ ove({"Dec"]});-function ove(e) {- return s$ = o_e(e), c$ = s$.format, s$.parse, l$ = s$.utcFormat, s$.utcParse, s$;+function gye(e) {+ return s$ = gve(e), c$ = s$.format, s$.parse, l$ = s$.utcFormat, s$.utcParse, s$;}//#endregion//#region node_modules/d3-scale/src/time.js-function sve(e) {+function _ye(e) {return new Date(e);}-function cve(e) {+function vye(e) {return e instanceof Date ? +e : +/* @__PURE__ */ new Date(+e);}function u$(e, t, n, r, i, a, o, s, c, l) {@@ -56679,7 +58066,7 @@ function u$(e, t, n, r, i, a, o, s, c, l) {return u.invert = function(e) {return new Date(d(e));}, u.domain = function(e) {- return arguments.length ? f(Array.from(e, cve)) : f().map(sve);+ return arguments.length ? f(Array.from(e, vye)) : f().map(_ye);}, u.ticks = function(t) {var n = f();return e(n[0], n[n.length - 1], t ?? 10);@@ -56692,13 +58079,13 @@ function u$(e, t, n, r, i, a, o, s, c, l) {return wZ(u, u$(e, t, n, r, i, a, o, s, c, l));}, u;}-function lve() {- return NX.apply(u$(i_e, a_e, LQ, FQ, OQ, wQ, SQ, bQ, yQ, c$).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);+function yye() {+ return NX.apply(u$(mve, hve, LQ, FQ, OQ, wQ, SQ, bQ, yQ, c$).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);}//#endregion//#region node_modules/d3-scale/src/utcTime.js-function uve() {- return NX.apply(u$(n_e, r_e, RQ, IQ, MQ, TQ, CQ, xQ, yQ, l$).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);+function bye() {+ return NX.apply(u$(fve, pve, RQ, IQ, MQ, TQ, CQ, xQ, yQ, l$).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);}//#endregion//#region node_modules/d3-scale/src/sequential.js@@ -56753,7 +58140,7 @@ function g$() {return f$(e, g$()).exponent(e.exponent());}, PX.apply(e, arguments);}-function dve() {+function xye() {return g$.apply(null, arguments).exponent(.5);}//#endregion@@ -56773,7 +58160,7 @@ function _$() {}, n.range = function() {return e.map((n, r) => t(r / (e.length - 1)));}, n.quantiles = function(t) {- return Array.from({ length: t + 1 }, (n, r) => Xhe(e, r / t));+ return Array.from({ length: t + 1 }, (n, r) => o_e(e, r / t));}, n.copy = function() {return _$(t).domain(e);}, PX.apply(n, arguments);@@ -56799,7 +58186,7 @@ function v$() {function m(e) {return function(t) {var n, r, i;- return arguments.length ? ([n, r, i] = t, l = Cge(e, [+ return arguments.length ? ([n, r, i] = t, l = N_e(e, [n,r,i@@ -56844,24 +58231,24 @@ function S$() {return f$(e, S$()).exponent(e.exponent());}, PX.apply(e, arguments);}-function fve() {+function Sye() {return S$.apply(null, arguments).exponent(.5);}//#endregion//#region node_modules/victory-vendor/es/d3-scale.js-var C$ = /* @__PURE__ */ te({+var C$ = /* @__PURE__ */ re({scaleBand: () => LX,scaleDiverging: () => y$,scaleDivergingLog: () => b$,scaleDivergingPow: () => S$,- scaleDivergingSqrt: () => fve,+ scaleDivergingSqrt: () => Sye,scaleDivergingSymlog: () => x$,scaleIdentity: () => UZ,scaleImplicit: () => FX,scaleLinear: () => HZ,scaleLog: () => YZ,scaleOrdinal: () => IX,- scalePoint: () => $he,+ scalePoint: () => l_e,scalePow: () => nQ,scaleQuantile: () => aQ,scaleQuantize: () => oQ,@@ -56870,26 +58257,26 @@ var C$ = /* @__PURE__ */ te({scaleSequentialLog: () => m$,scaleSequentialPow: () => g$,scaleSequentialQuantile: () => _$,- scaleSequentialSqrt: () => dve,+ scaleSequentialSqrt: () => xye,scaleSequentialSymlog: () => h$,- scaleSqrt: () => Kge,+ scaleSqrt: () => nve,scaleSymlog: () => $Z,scaleThreshold: () => sQ,- scaleTime: () => lve,- scaleUtc: () => uve,+ scaleTime: () => yye,+ scaleUtc: () => bye,tickFormat: () => BZ});//#endregion//#region node_modules/recharts/es6/state/selectors/combiners/combineConfiguredScale.js-function pve(e) {+function Cye(e) {if (e in C$) return C$[e]();- var t = `scale${Nz(e)}`;+ var t = `scale${dB(e)}`;if (t in C$) return C$[t]();}function w$(e, t, n) {if (typeof e == "function") return e.copy().domain(t).range(n);if (e != null) {- var r = pve(e);+ var r = Cye(e);if (r != null) return r.domain(t).range(n), r;}}@@ -56898,22 +58285,22 @@ function T$(e, t, n, r) {}//#endregion//#region node_modules/recharts/es6/state/selectors/combiners/combineRealScaleType.js-function mve(e) {- return `scale${Nz(e)}`;+function wye(e) {+ return `scale${dB(e)}`;}-function hve(e) {- return mve(e) in C$;+function Tye(e) {+ return wye(e) in C$;}var E$ = (e, t, n) => {if (e != null) {var { scale: r, type: i } = e;if (r === "auto") return i === "category" && n && (n.indexOf("LineChart") >= 0 || n.indexOf("AreaChart") >= 0 || n.indexOf("ComposedChart") >= 0 && !t) ? "point" : i === "category" ? "band" : "linear";- if (typeof r == "string") return hve(r) ? r : "point";+ if (typeof r == "string") return Tye(r) ? r : "point";}};//#endregion//#region node_modules/recharts/es6/util/scale/createCategoricalInverse.js-function gve(e, t) {+function Eye(e, t) {for (var n = 0, r = e.length, i = e[0] < e[e.length - 1]; n < r;) {var a = Math.floor((n + r) / 2);(i ? e[a] < t : e[a] > t) ? n = a + 1 : r = a;@@ -56924,7 +58311,7 @@ function D$(e, t) {if (e) {var n = t ?? e.domain(), r = n.map((t) => e(t) ?? 0), i = e.range();if (!(n.length === 0 || i.length < 2)) return (e) => {- var t = gve(r, e);+ var t = Eye(r, e);if (t <= 0) return n[0];if (t >= n.length) return n[n.length - 1];var i = r[t - 1] ?? 0, a = r[t] ?? 0;@@ -56934,7 +58321,7 @@ function D$(e, t) {}//#endregion//#region node_modules/recharts/es6/state/selectors/combiners/combineInverseScaleFunction.js-function _ve(e) {+function Dye(e) {if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : D$(e, void 0);}//#endregion@@ -56953,26 +58340,26 @@ function k$(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? O$(Object(n), !0).forEach(function(t) {- vve(e, t, n[t]);+ Oye(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : O$(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function vve(e, t, n) {- return (t = yve(t)) in e ? Object.defineProperty(e, t, {+function Oye(e, t, n) {+ return (t = kye(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function yve(e) {- var t = bve(e, "string");+function kye(e) {+ var t = Aye(e, "string");return typeof t == "symbol" ? t : t + "";}-function bve(e, t) {+function Aye(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -57040,7 +58427,7 @@ var A$ = [0, "auto"], j$ = {unit: void 0,niceTicks: "auto",width: 60-}, F$ = (e, t) => e.cartesianAxis.yAxis[t], I$ = (e, t) => F$(e, t) ?? P$, xve = {+}, F$ = (e, t) => e.cartesianAxis.yAxis[t], I$ = (e, t) => F$(e, t) ?? P$, jye = {domain: [0, "auto"],includeHidden: !1,reversed: !1,@@ -57053,7 +58440,7 @@ var A$ = [0, "auto"], j$ = {scale: "auto",type: "number",unit: ""-}, L$ = (e, t) => e.cartesianAxis.zAxis[t] ?? xve, R$ = (e, t, n) => {+}, L$ = (e, t) => e.cartesianAxis.zAxis[t] ?? jye, R$ = (e, t, n) => {switch (t) {case "xAxis": return N$(e, n);case "yAxis": return I$(e, n);@@ -57062,7 +58449,7 @@ var A$ = [0, "auto"], j$ = {case "radiusAxis": return XY(e, n);default: throw Error(`Unexpected axis type: ${t}`);}-}, Sve = (e, t, n) => {+}, Mye = (e, t, n) => {switch (t) {case "xAxis": return N$(e, n);case "yAxis": return I$(e, n);@@ -57089,22 +58476,22 @@ function V$(e, t) {}};}-var H$ = (e) => e.graphicalItems.cartesianItems, Cve = $([iX, aX], V$), U$ = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), W$ = $([+var H$ = (e) => e.graphicalItems.cartesianItems, Nye = $([iX, aX], V$), U$ = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), W$ = $([H$,R$,- Cve-], U$, { memoizeOptions: { resultEqualityCheck: uX } }), G$ = $([W$], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(cX)), K$ = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), wve = $([W$], K$), q$ = (e) => e.map((e) => e.data).filter(Boolean).flat(1), Tve = $([W$], q$, { memoizeOptions: { resultEqualityCheck: uX } }), J$ = (e, t) => {+ Nye+], U$, { memoizeOptions: { resultEqualityCheck: uX } }), G$ = $([W$], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(cX)), K$ = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), Pye = $([W$], K$), q$ = (e) => e.map((e) => e.data).filter(Boolean).flat(1), Fye = $([W$], q$, { memoizeOptions: { resultEqualityCheck: uX } }), J$ = (e, t) => {var { chartData: n = [], dataStartIndex: r, dataEndIndex: i } = t;return e.length > 0 ? e : n.slice(r, i + 1);-}, Y$ = $([Tve, gY], J$), X$ = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: FU(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: FU(e, t.dataKey) })), Z$ = $([+}, Y$ = $([Fye, gY], J$), X$ = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: TW(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: TW(e, t.dataKey) })), Z$ = $([Y$,R$,W$], X$);function Q$(e) {- if (Ez(e) || e instanceof Date) {+ if (iB(e) || e instanceof Date) {var t = Number(e);- if (OU(t)) return t;+ if (vW(t)) return t;}}function $$(e) {@@ -57116,13 +58503,13 @@ function $$(e) {if (n != null) return [n, n];}function e1(e) {- return e.map(Q$).filter(Pz);+ return e.map(Q$).filter(fB);}-function Eve(e, t) {+function Iye(e, t) {var n = Q$(e), r = Q$(t);return n == null && r == null ? 0 : n == null ? -1 : r == null ? 1 : n - r;}-var Dve = $([Z$], (e) => e?.map((e) => e.value).sort(Eve));+var Lye = $([Z$], (e) => e?.map((e) => e.value).sort(Iye));function t1(e, t) {switch (e) {case "xAxis": return t.direction === "x";@@ -57130,13 +58517,13 @@ function t1(e, t) {default: return !1;}}-function Ove(e, t, n) {- return !n || typeof t != "number" || wz(t) || !n.length ? [] : e1(n.flatMap((n) => {- var r = FU(e, n.dataKey), i, a;- if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!OU(i) || !OU(a))) return [t - i, t + a];+function Rye(e, t, n) {+ return !n || typeof t != "number" || nB(t) || !n.length ? [] : e1(n.flatMap((n) => {+ var r = TW(e, n.dataKey), i, a;+ if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!vW(i) || !vW(a))) return [t - i, t + a];}));}-var n1 = (e) => z$(e, dX(e), fX(e)), r1 = $([n1], (e) => e?.dataKey), kve = $([+var n1 = (e) => z$(e, dX(e), fX(e)), r1 = $([n1], (e) => e?.dataKey), zye = $([G$,gY,n1@@ -57149,22 +58536,22 @@ var n1 = (e) => z$(e, dX(e), fX(e)), r1 = $([n1], (e) => e?.dataKey), kve = $([return Object.fromEntries(Object.entries(i).map((t) => {var [i, a] = t, o = r ? [...a].reverse() : a;return [i, {- stackedData: HU(e, o.map(oX), n),+ stackedData: MW(e, o.map(oX), n),graphicalItems: o}];}));}, a1 = $([- kve,+ zye,G$,PY,FY], i1), o1 = (e, t, n, r) => {var { dataStartIndex: i, dataEndIndex: a } = t;if (r == null && n !== "zAxis") {- var o = YU(e, i, a);+ var o = zW(e, i, a);if (o == null || o[0] !== 0 || o[1] !== 0) return o;}-}, Ave = $([R$], (e) => e.allowDataOverflow), s1 = (e) => {+}, Bye = $([R$], (e) => e.allowDataOverflow), s1 = (e) => {if (e == null || !("domain" in e)) return A$;if (e.domain != null) return e.domain;if ("ticks" in e && e.ticks != null) {@@ -57175,12 +58562,12 @@ var n1 = (e) => z$(e, dX(e), fX(e)), r1 = $([n1], (e) => e?.dataKey), kve = $([if (e.type === "category") return e.ticks.map(String);}return e?.domain ?? A$;-}, c1 = $([R$], s1), l1 = $([c1, Ave], bY), jve = $([+}, c1 = $([R$], s1), l1 = $([c1, Bye], bY), Vye = $([a1,mY,iX,l1-], o1, { memoizeOptions: { resultEqualityCheck: lX } }), u1 = (e) => e.errorBars, Mve = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => t1(n, e)), d1 = function() {+], o1, { memoizeOptions: { resultEqualityCheck: lX } }), u1 = (e) => e.errorBars, Hye = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => t1(n, e)), d1 = function() {var e = [...arguments].filter(Boolean);if (e.length !== 0) {var t = e.flat();@@ -57190,7 +58577,7 @@ var n1 = (e) => z$(e, dX(e), fX(e)), r1 = $([n1], (e) => e?.dataKey), kve = $([var a, o;if (n.length > 0 && e.forEach((e) => {n.forEach((n) => {- var s = r[n.id]?.filter((e) => t1(i, e)), c = FU(e, t.dataKey ?? n.dataKey), l = Ove(e, c, s);+ var s = r[n.id]?.filter((e) => t1(i, e)), c = TW(e, t.dataKey ?? n.dataKey), l = Rye(e, c, s);if (l.length >= 2) {var u = Math.min(...l), d = Math.max(...l);(a == null || u < a) && (a = u), (o == null || d > o) && (o = d);@@ -57199,32 +58586,32 @@ var n1 = (e) => z$(e, dX(e), fX(e)), r1 = $([n1], (e) => e?.dataKey), kve = $([f != null && (a = a == null ? f[0] : Math.min(a, f[0]), o = o == null ? f[1] : Math.max(o, f[1]));});}), t?.dataKey != null && e.forEach((e) => {- var n = $$(FU(e, t.dataKey));+ var n = $$(TW(e, t.dataKey));n != null && (a = a == null ? n[0] : Math.min(a, n[0]), o = o == null ? n[1] : Math.max(o, n[1]));- }), OU(a) && OU(o)) return [a, o];-}, Nve = $([+ }), vW(a) && vW(o)) return [a, o];+}, Uye = $([Y$,R$,- wve,+ Pye,u1,iX], f1, { memoizeOptions: { resultEqualityCheck: lX } });-function Pve(e) {+function Wye(e) {var { value: t } = e;- if (Ez(t) || t instanceof Date) return t;+ if (iB(t) || t instanceof Date) return t;}-var Fve = (e, t, n) => {- var r = e.map(Pve).filter((e) => e != null);- return n && (t.dataKey == null || t.allowDuplicatedCategory && kz(r)) ? pY(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));-}, p1 = (e) => e.referenceElements.dots, m1 = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), Ive = $([+var Gye = (e, t, n) => {+ var r = e.map(Wye).filter((e) => e != null);+ return n && (t.dataKey == null || t.allowDuplicatedCategory && sB(r)) ? pY(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));+}, p1 = (e) => e.referenceElements.dots, m1 = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), Kye = $([p1,iX,aX-], m1), h1 = (e) => e.referenceElements.areas, Lve = $([+], m1), h1 = (e) => e.referenceElements.areas, qye = $([h1,iX,aX-], m1), g1 = (e) => e.referenceElements.lines, Rve = $([+], m1), g1 = (e) => e.referenceElements.lines, Jye = $([g1,iX,aX@@ -57233,49 +58620,49 @@ var Fve = (e, t, n) => {var n = e1(e.map((e) => t === "xAxis" ? e.x : e.y));if (n.length !== 0) return [Math.min(...n), Math.max(...n)];}-}, zve = $(Ive, iX, _1), v1 = (e, t) => {+}, Yye = $(Kye, iX, _1), v1 = (e, t) => {if (e != null) {var n = e1(e.flatMap((e) => [t === "xAxis" ? e.x1 : e.y1, t === "xAxis" ? e.x2 : e.y2]));if (n.length !== 0) return [Math.min(...n), Math.max(...n)];}-}, Bve = $([Lve, iX], v1);-function Vve(e) {+}, Xye = $([qye, iX], v1);+function Zye(e) {if (e.x != null) return e1([e.x]);var t = e.segment?.map((e) => e.x);return t == null || t.length === 0 ? [] : e1(t);}-function Hve(e) {+function Qye(e) {if (e.y != null) return e1([e.y]);var t = e.segment?.map((e) => e.y);return t == null || t.length === 0 ? [] : e1(t);}var y1 = (e, t) => {if (e != null) {- var n = e.flatMap((e) => t === "xAxis" ? Vve(e) : Hve(e));+ var n = e.flatMap((e) => t === "xAxis" ? Zye(e) : Qye(e));if (n.length !== 0) return [Math.min(...n), Math.max(...n)];}-}, Uve = $(zve, $([Rve, iX], y1), Bve, (e, t, n) => d1(e, n, t)), b1 = (e, t, n, r, i, a, o, s) => n ?? Ihe(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? d1(r, a, i) : d1(a, i), e.allowDataOverflow), Wve = $([+}, $ye = $(Yye, $([Jye, iX], y1), Xye, (e, t, n) => d1(e, n, t)), b1 = (e, t, n, r, i, a, o, s) => n ?? Kge(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? d1(r, a, i) : d1(a, i), e.allowDataOverflow), ebe = $([R$,c1,l1,- jve,- Nve,- Uve,- iG,+ Vye,+ Uye,+ $ye,+ JG,iX-], b1, { memoizeOptions: { resultEqualityCheck: lX } }), Gve = [0, 1], x1 = (e, t, n, r, i, a, o) => {+], b1, { memoizeOptions: { resultEqualityCheck: lX } }), tbe = [0, 1], x1 = (e, t, n, r, i, a, o) => {if (e != null && n != null && n.length !== 0 || o !== void 0) {- var { dataKey: s, type: c } = e, l = LU(t, a);- return l && s == null ? pY(0, n?.length ?? 0) : c === "category" ? Fve(r, e, l) : i === "expand" ? Gve : o;+ var { dataKey: s, type: c } = e, l = DW(t, a);+ return l && s == null ? pY(0, n?.length ?? 0) : c === "category" ? Gye(r, e, l) : i === "expand" ? tbe : o;}}, S1 = $([R$,- iG,+ JG,Y$,Z$,PY,iX,- Wve+ ebe], x1), C1 = $([R$,B$,@@ -57303,7 +58690,7 @@ var y1 = (e, t) => {return [Math.min(i, a), Math.max(o, s)];}return t;-}, Kve = $([+}, nbe = $([R$,S1,T1,@@ -57323,22 +58710,22 @@ var y1 = (e, t) => {}return n / o;}-}), iG, MY, bW, (e, t, n, r, i) => i, (e, t, n, r, i) => {- if (!OU(e)) return 0;+}), JG, MY, uG, (e, t, n, r, i) => i, (e, t, n, r, i) => {+ if (!vW(e)) return 0;var a = t === "vertical" ? r.height : r.width;if (i === "gap") return e * a / 2;if (i === "no-gap") {- var o = Oz(n, e * a), s = e * a / 2;+ var o = oB(n, e * a), s = e * a / 2;return s - o - (s - o) / a * o;}return 0;-}), qve = (e, t, n) => {+}), rbe = (e, t, n) => {var r = N$(e, t);return r == null || typeof r.padding != "string" ? 0 : D1(e, "xAxis", t, n, r.padding);-}, Jve = (e, t, n) => {+}, ibe = (e, t, n) => {var r = I$(e, t);return r == null || typeof r.padding != "string" ? 0 : D1(e, "yAxis", t, n, r.padding);-}, Yve = $(N$, qve, (e, t) => {+}, abe = $(N$, rbe, (e, t) => {if (e == null) return {left: 0,right: 0@@ -57351,7 +58738,7 @@ var y1 = (e, t) => {left: (n.left ?? 0) + t,right: (n.right ?? 0) + t};-}), Xve = $(I$, Jve, (e, t) => {+}), obe = $(I$, ibe, (e, t) => {if (e == null) return {top: 0,bottom: 0@@ -57364,29 +58751,29 @@ var y1 = (e, t) => {top: (n.top ?? 0) + t,bottom: (n.bottom ?? 0) + t};-}), Zve = $([- bW,- Yve,- EW,- TW,+}), sbe = $([+ uG,+ abe,+ gG,+ hG,(e, t, n) => n], (e, t, n, r, i) => {var { padding: a } = r;return i ? [a.left, n.width - a.right] : [e.left + t.left, e.left + e.width - t.right];-}), Qve = $([- bW,- iG,- Xve,- EW,- TW,+}), cbe = $([+ uG,+ JG,+ obe,+ gG,+ hG,(e, t, n) => n], (e, t, n, r, i, a) => {var { padding: o } = i;return a ? [r.height - o.bottom, o.top] : t === "horizontal" ? [e.top + e.height - n.bottom, e.top + n.top] : [e.top + n.top, e.top + e.height - n.bottom];}), O1 = (e, t, n, r) => {switch (t) {- case "xAxis": return Zve(e, n, r);- case "yAxis": return Qve(e, n, r);+ case "xAxis": return sbe(e, n, r);+ case "yAxis": return cbe(e, n, r);case "zAxis": return L$(e, n)?.range;case "angleAxis": return tX(e);case "radiusAxis": return nX(e, n);@@ -57395,67 +58782,67 @@ var y1 = (e, t) => {}, k1 = $([R$, O1], UY), A1 = $([R$,C1,- $([C1, Kve], mX),+ $([C1, nbe], mX),k1], T$), j1 = (e, t, n, r) => {if (n != null && n.dataKey != null) {var { type: i, scale: a } = n;- if (LU(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);+ if (DW(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);}}, M1 = $([- iG,+ JG,Z$,z$,iX], j1), N1 = $([A1], pX);-$([A1], _ve), $([A1, Dve], D$), $([+$([A1], Dye), $([A1, Lye], D$), $([W$,u1,iX-], Mve);+], Hye);function P1(e, t) {return e.id < t.id ? -1 : +(e.id > t.id);}-var F1 = (e, t) => t, I1 = (e, t, n) => n, $ve = $(sW, F1, I1, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(P1)), eye = $(cW, F1, I1, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(P1)), L1 = (e, t) => ({+var F1 = (e, t) => t, I1 = (e, t, n) => n, lbe = $(ZW, F1, I1, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(P1)), ube = $(QW, F1, I1, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(P1)), L1 = (e, t) => ({width: e.width,height: t.height-}), tye = (e, t) => ({+}), dbe = (e, t) => ({width: typeof t.width == "number" ? t.width : 60,height: e.height-}), R1 = $(bW, N$, L1), nye = (e, t, n) => {+}), R1 = $(uG, N$, L1), fbe = (e, t, n) => {switch (t) {case "top": return e.top;case "bottom": return n - e.bottom;default: return 0;}-}, rye = (e, t, n) => {+}, pbe = (e, t, n) => {switch (t) {case "left": return e.left;case "right": return n - e.right;default: return 0;}-}, iye = $(iW, bW, $ve, F1, I1, (e, t, n, r, i) => {+}, mbe = $(JW, uG, lbe, F1, I1, (e, t, n, r, i) => {var a = {}, o;return n.forEach((n) => {var s = L1(t, n);- o ??= nye(t, r, e);+ o ??= fbe(t, r, e);var c = r === "top" && !i || r === "bottom" && i;a[n.id] = o - Number(c) * s.height, o += (c ? -1 : 1) * s.height;}), a;-}), aye = $(rW, bW, eye, F1, I1, (e, t, n, r, i) => {+}), hbe = $(qW, uG, ube, F1, I1, (e, t, n, r, i) => {var a = {}, o;return n.forEach((n) => {- var s = tye(t, n);- o ??= rye(t, r, e);+ var s = dbe(t, n);+ o ??= pbe(t, r, e);var c = r === "left" && !i || r === "right" && i;a[n.id] = o - Number(c) * s.width, o += (c ? -1 : 1) * s.width;}), a;-}), oye = $([- bW,+}), gbe = $([+ uG,N$,(e, t) => {var n = N$(e, t);- if (n != null) return iye(e, n.orientation, n.mirror);+ if (n != null) return mbe(e, n.orientation, n.mirror);},(e, t) => t], (e, t, n, r) => {@@ -57469,12 +58856,12 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, $ve = $(sW, F1, I1, (e, t, n) => e.fiy: i};}-}), sye = $([- bW,+}), _be = $([+ uG,I$,(e, t) => {var n = I$(e, t);- if (n != null) return aye(e, n.orientation, n.mirror);+ if (n != null) return hbe(e, n.orientation, n.mirror);},(e, t) => t], (e, t, n, r) => {@@ -57488,7 +58875,7 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, $ve = $(sW, F1, I1, (e, t, n) => e.fiy: e.top};}-}), z1 = $(bW, I$, (e, t) => ({+}), z1 = $(uG, I$, (e, t) => ({width: typeof t.width == "number" ? t.width : 60,height: e.height})), B1 = (e, t, n) => {@@ -57499,17 +58886,17 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, $ve = $(sW, F1, I1, (e, t, n) => e.fi}}, V1 = (e, t, n, r) => {if (n != null) {- var { allowDuplicatedCategory: i, type: a, dataKey: o } = n, s = LU(e, r), c = t.map((e) => e.value);- if (o && s && a === "category" && i && kz(c)) return c;+ var { allowDuplicatedCategory: i, type: a, dataKey: o } = n, s = DW(e, r), c = t.map((e) => e.value);+ if (o && s && a === "category" && i && sB(c)) return c;}}, H1 = $([- iG,+ JG,Z$,R$,iX], V1), U1 = $([- iG,- Sve,+ JG,+ Mye,C1,N1,H1,@@ -57519,7 +58906,7 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, $ve = $(sW, F1, I1, (e, t, n) => e.fiiX], (e, t, n, r, i, a, o, s, c) => {if (t != null) {- var l = LU(e, c);+ var l = DW(e, c);return {angle: t.angle,interval: t.interval,@@ -57543,45 +58930,45 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, $ve = $(sW, F1, I1, (e, t, n) => e.fi}}), W1 = (e, t, n, r, i, a, o, s, c) => {if (t != null && r != null) {- var l = LU(e, c), { type: u, ticks: d, tickCount: f } = t, p = n === "scaleBand" && typeof r.bandwidth == "function" ? r.bandwidth() / 2 : 2, m = u === "category" && r.bandwidth ? r.bandwidth() / p : 0;- m = c === "angleAxis" && a != null && a.length >= 2 ? Cz(a[0] - a[1]) * 2 * m : m;+ var l = DW(e, c), { type: u, ticks: d, tickCount: f } = t, p = n === "scaleBand" && typeof r.bandwidth == "function" ? r.bandwidth() / 2 : 2, m = u === "category" && r.bandwidth ? r.bandwidth() / p : 0;+ m = c === "angleAxis" && a != null && a.length >= 2 ? tB(a[0] - a[1]) * 2 * m : m;var h = d || i;return h ? h.map((e, t) => {var n = o ? o.indexOf(e) : e, i = r.map(n);- return OU(i) ? {+ return vW(i) ? {index: t,coordinate: i + m,value: e,offset: m} : null;- }).filter(Pz) : l && s ? s.map((e, t) => {+ }).filter(fB) : l && s ? s.map((e, t) => {var n = r.map(e);- return OU(n) ? {+ return vW(n) ? {coordinate: n + m,value: e,index: t,offset: m} : null;- }).filter(Pz) : r.ticks ? r.ticks(f).map((e, t) => {+ }).filter(fB) : r.ticks ? r.ticks(f).map((e, t) => {var n = r.map(e);- return OU(n) ? {+ return vW(n) ? {coordinate: n + m,value: e,index: t,offset: m} : null;- }).filter(Pz) : r.domain().map((e, t) => {+ }).filter(fB) : r.domain().map((e, t) => {var n = r.map(e);- return OU(n) ? {+ return vW(n) ? {coordinate: n + m,value: o ? o[e] : e,index: t,offset: m} : null;- }).filter(Pz);+ }).filter(fB);}}, G1 = $([- iG,+ JG,z$,C1,N1,@@ -57592,35 +58979,35 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, $ve = $(sW, F1, I1, (e, t, n) => e.fiiX], W1), K1 = (e, t, n, r, i, a, o) => {if (t != null && n != null && r != null && r[0] !== r[1]) {- var s = LU(e, o), { tickCount: c } = t, l = 0;- return l = o === "angleAxis" && r?.length >= 2 ? Cz(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {+ var s = DW(e, o), { tickCount: c } = t, l = 0;+ return l = o === "angleAxis" && r?.length >= 2 ? tB(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {var r = n.map(e);- return OU(r) ? {+ return vW(r) ? {coordinate: r + l,value: e,index: t,offset: l} : null;- }).filter(Pz) : n.ticks ? n.ticks(c).map((e, t) => {+ }).filter(fB) : n.ticks ? n.ticks(c).map((e, t) => {var r = n.map(e);- return OU(r) ? {+ return vW(r) ? {coordinate: r + l,value: e,index: t,offset: l} : null;- }).filter(Pz) : n.domain().map((e, t) => {+ }).filter(fB) : n.domain().map((e, t) => {var r = n.map(e);- return OU(r) ? {+ return vW(r) ? {coordinate: r + l,value: i ? i[e] : e,index: t,offset: l} : null;- }).filter(Pz);+ }).filter(fB);}}, q1 = $([- iG,+ JG,z$,N1,O1,@@ -57638,10 +59025,10 @@ $((e, t, n) => L$(e, n), $([$([], T$)], pX), (e, t) => {if (e != null && t != null) return k$(k$({}, e), {}, { scale: t });});-var cye = $([- iG,- sW,- cW+var vbe = $([+ JG,+ ZW,+ QW], (e, t, n) => {switch (e) {case "horizontal": return t.some((e) => e.reversed) ? "right-to-left" : "left-to-right";@@ -57672,21 +59059,21 @@ function Z1(e, t, n) {function Q1(e, t) {return Z1(t, Y1(e), X1(e));}-function lye(e) {+function ybe(e) {return Q((t) => Q1(t, e));}//#endregion//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveLabel.jsvar $1 = (e, t) => {var n, r = Number(t);- if (!(wz(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;-}, uye = (e) => e.tooltip.settings, e0 = {+ if (!(nB(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;+}, bbe = (e) => e.tooltip.settings, e0 = {active: !1,index: null,dataKey: void 0,graphicalItemId: void 0,coordinate: void 0-}, t0 = NH({+}, t0 = CU({name: "tooltip",initialState: {itemInteraction: {@@ -57719,23 +59106,23 @@ var $1 = (e, t) => {reducers: {addTooltipEntrySettings: {reducer(e, t) {- e.tooltipItemPayloads.push(oK(t.payload));+ e.tooltipItemPayloads.push(XK(t.payload));},- prepare: vH()+ prepare: cU()},replaceTooltipEntrySettings: {reducer(e, t) {- var { prev: n, next: r } = t.payload, i = iH(e).tooltipItemPayloads.indexOf(oK(n));- i > -1 && (e.tooltipItemPayloads[i] = oK(r));+ var { prev: n, next: r } = t.payload, i = JH(e).tooltipItemPayloads.indexOf(XK(n));+ i > -1 && (e.tooltipItemPayloads[i] = XK(r));},- prepare: vH()+ prepare: cU()},removeTooltipEntrySettings: {reducer(e, t) {- var n = iH(e).tooltipItemPayloads.indexOf(oK(t.payload));+ var n = JH(e).tooltipItemPayloads.indexOf(XK(t.payload));n > -1 && e.tooltipItemPayloads.splice(n, 1);},- prepare: vH()+ prepare: cU()},setTooltipSettingsState(e, t) {e.settings = t.payload;@@ -57765,7 +59152,7 @@ var $1 = (e, t) => {e.keyboardInteraction.active = t.payload.active, e.keyboardInteraction.index = t.payload.activeIndex, e.keyboardInteraction.coordinate = t.payload.activeCoordinate;}}-}), { addTooltipEntrySettings: dye, replaceTooltipEntrySettings: fye, removeTooltipEntrySettings: pye, setTooltipSettingsState: mye, setActiveMouseOverItemIndex: n0, mouseLeaveItem: hye, mouseLeaveChart: r0, setActiveClickItemIndex: gye, setMouseOverAxisIndex: i0, setMouseClickAxisIndex: _ye, setSyncInteraction: a0, setKeyboardInteraction: o0 } = t0.actions, vye = t0.reducer;+}), { addTooltipEntrySettings: xbe, replaceTooltipEntrySettings: Sbe, removeTooltipEntrySettings: Cbe, setTooltipSettingsState: wbe, setActiveMouseOverItemIndex: n0, mouseLeaveItem: Tbe, mouseLeaveChart: r0, setActiveClickItemIndex: Ebe, setMouseOverAxisIndex: i0, setMouseClickAxisIndex: Dbe, setSyncInteraction: a0, setKeyboardInteraction: o0 } = t0.actions, Obe = t0.reducer;//#endregion//#region node_modules/recharts/es6/state/selectors/combiners/combineTooltipInteractionState.jsfunction s0(e, t) {@@ -57782,26 +59169,26 @@ function c0(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? s0(Object(n), !0).forEach(function(t) {- yye(e, t, n[t]);+ kbe(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : s0(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function yye(e, t, n) {- return (t = bye(t)) in e ? Object.defineProperty(e, t, {+function kbe(e, t, n) {+ return (t = Abe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function bye(e) {- var t = xye(e, "string");+function Abe(e) {+ var t = jbe(e, "string");return typeof t == "symbol" ? t : t + "";}-function xye(e, t) {+function jbe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -57811,21 +59198,21 @@ function xye(e, t) {}return (t === "string" ? String : Number)(e);}-function Sye(e, t, n) {+function Mbe(e, t, n) {return t === "axis" ? n === "click" ? e.axisInteraction.click : e.axisInteraction.hover : n === "click" ? e.itemInteraction.click : e.itemInteraction.hover;}-function Cye(e) {+function Nbe(e) {return e.index != null;}var l0 = (e, t, n, r) => {if (t == null) return e0;- var i = Sye(e, t, n);+ var i = Mbe(e, t, n);if (i == null) return e0;if (i.active) return i;if (e.keyboardInteraction.active) return e.keyboardInteraction;if (e.syncInteraction.active && e.syncInteraction.index != null) return e.syncInteraction;var a = e.settings.active === !0;- if (Cye(i)) {+ if (Nbe(i)) {if (a) return c0(c0({}, i), {}, { active: !0 });} else if (r != null) return {active: !0,@@ -57838,7 +59225,7 @@ var l0 = (e, t, n, r) => {};//#endregion//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveTooltipIndex.js-function wye(e) {+function Pbe(e) {if (typeof e == "number") return Number.isFinite(e) ? e : void 0;if (e instanceof Date) {var t = e.valueOf();@@ -57847,24 +59234,24 @@ function wye(e) {var n = Number(e);return Number.isFinite(n) ? n : void 0;}-function Tye(e, t) {- var n = wye(e), r = t[0], i = t[1];+function Fbe(e, t) {+ var n = Pbe(e), r = t[0], i = t[1];return n !== void 0 && n >= Math.min(r, i) && n <= Math.max(r, i);}-function Eye(e, t, n) {+function Ibe(e, t, n) {if (n == null || t == null) return !0;- var r = FU(e, t);- return r == null || !vY(n) || Tye(r, n);+ var r = TW(e, t);+ return r == null || !vY(n) || Fbe(r, n);}var u0 = (e, t, n, r) => {var i = e?.index;if (i == null) return null;var a = Number(i);- if (!OU(a)) return i;+ if (!vW(a)) return i;var o = 0, s = Infinity;t.length > 0 && (s = t.length - 1);var c = Math.max(o, Math.min(a, s)), l = t[c];- return l == null || Eye(l, n, r) ? String(c) : null;+ return l == null || Ibe(l, n, r) ? String(c) : null;}, d0 = (e, t, n, r, i, a, o) => {if (a != null) {var s = o[0]?.getPosition(a);@@ -57908,26 +59295,26 @@ function g0(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? h0(Object(n), !0).forEach(function(t) {- Dye(e, t, n[t]);+ Lbe(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : h0(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function Dye(e, t, n) {- return (t = Oye(t)) in e ? Object.defineProperty(e, t, {+function Lbe(e, t, n) {+ return (t = Rbe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function Oye(e) {- var t = kye(e, "string");+function Rbe(e) {+ var t = zbe(e, "string");return typeof t == "symbol" ? t : t + "";}-function kye(e, t) {+function zbe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -57937,57 +59324,57 @@ function kye(e, t) {}return (t === "string" ? String : Number)(e);}-function Aye(e) {+function Bbe(e) {if (typeof e == "string" || typeof e == "number") return e;}-function jye(e) {+function Vbe(e) {if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") return e;}-function Mye(e) {+function Hbe(e) {if (typeof e == "string" || typeof e == "number") return e;if (typeof e == "function") return (t) => e(t);}function _0(e) {if (typeof e == "string") return e;}-function Nye(e) {+function Ube(e) {if (!(typeof e != "object" || !e)) return {- name: "name" in e ? Aye(e.name) : void 0,- unit: "unit" in e ? jye(e.unit) : void 0,- dataKey: "dataKey" in e ? Mye(e.dataKey) : void 0,+ name: "name" in e ? Bbe(e.name) : void 0,+ unit: "unit" in e ? Vbe(e.unit) : void 0,+ dataKey: "dataKey" in e ? Hbe(e.dataKey) : void 0,payload: "payload" in e ? e.payload : void 0,color: "color" in e ? _0(e.color) : void 0,fill: "fill" in e ? _0(e.fill) : void 0};}-function Pye(e, t) {+function Wbe(e, t) {return e ?? t;}var v0 = (e, t, n, r, i, a, o) => {if (t != null && a != null) {var { chartData: s, computedData: c, dataStartIndex: l, dataEndIndex: u } = n;return e.reduce((e, n) => {- var { dataDefinedOnItem: d, settings: f } = n, p = Pye(d, s), m = Array.isArray(p) ? DU(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? jz(m, r, i) : a(m, t, c, g);+ var { dataDefinedOnItem: d, settings: f } = n, p = Wbe(d, s), m = Array.isArray(p) ? _W(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? lB(m, r, i) : a(m, t, c, g);return Array.isArray(_) ? _.forEach((t) => {- var n = Nye(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = g0(g0({}, f), {}, {+ var n = Ube(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = g0(g0({}, f), {}, {name: r,unit: n?.unit,color: n?.color ?? f?.color,fill: n?.fill ?? f?.fill});- e.push($U({+ e.push(UW({tooltipEntrySettings: o,dataKey: i,payload: a,- value: FU(a, i),+ value: TW(a, i),name: r == null ? void 0 : String(r)}));- }) : e.push($U({+ }) : e.push(UW({tooltipEntrySettings: f,dataKey: h,payload: _,- value: FU(_, h),- name: FU(_, g) ?? f?.name+ value: TW(_, h),+ name: TW(_, g) ?? f?.name})), e;}, []);}@@ -57999,17 +59386,17 @@ var v0 = (e, t, n, r, i, a, o) => {$([(e) => e.graphicalItems.cartesianItems, (e) => e.graphicalItems.polarItems], (e, t) => [...e, ...t]),n1,$([dX, fX], V$)-], U$, { memoizeOptions: { resultEqualityCheck: uX } }), Fye = $([b0], (e) => e.filter(cX)), x0 = $([$([b0], q$, { memoizeOptions: { resultEqualityCheck: uX } }), mY], J$), Iye = $([- Fye,+], U$, { memoizeOptions: { resultEqualityCheck: uX } }), Gbe = $([b0], (e) => e.filter(cX)), x0 = $([$([b0], q$, { memoizeOptions: { resultEqualityCheck: uX } }), mY], J$), Kbe = $([+ Gbe,mY,n1], sX), S0 = $([x0,n1,b0-], X$), C0 = $([n1], s1), w0 = $([C0, $([n1], (e) => e.allowDataOverflow)], bY), Lye = $([+], X$), C0 = $([n1], s1), w0 = $([C0, $([n1], (e) => e.allowDataOverflow)], bY), qbe = $([$([- Iye,+ Kbe,$([b0], (e) => e.filter(cX)),PY,FY@@ -58017,23 +59404,23 @@ var v0 = (e, t, n, r, i, a, o) => {mY,dX,w0-], o1), Rye = $([+], o1), Jbe = $([x0,n1,$([b0], K$),u1,dX-], f1, { memoizeOptions: { resultEqualityCheck: lX } }), zye = $([$([+], f1, { memoizeOptions: { resultEqualityCheck: lX } }), Ybe = $([$([p1,dX,fX-], m1), dX], _1), Bye = $([$([+], m1), dX], _1), Xbe = $([$([h1,dX,fX], m1), dX], v1), T0 = $([n1,- iG,+ JG,x0,S0,PY,@@ -58042,21 +59429,21 @@ var v0 = (e, t, n, r, i, a, o) => {n1,C0,w0,- Lye,- Rye,+ qbe,+ Jbe,$([- zye,+ Ybe,$([$([g1,dX,fX], m1), dX], y1),- Bye+ Xbe], d1),- iG,+ JG,dX], b1)-], x1), Vye = $([+], x1), Zbe = $([n1,T0,$([@@ -58068,22 +59455,22 @@ var v0 = (e, t, n, r, i, a, o) => {], E1), E0 = (e) => O1(e, dX(e), fX(e), !1), D0 = $([n1, E0], UY), O0 = $([$([n1,y0,- Vye,+ Zbe,D0], T$)], pX), k0 = $([- iG,+ JG,n1,y0,O0,E0,$([- iG,+ JG,S0,n1,dX], V1),$([- iG,+ JG,S0,n1,dX@@ -58091,32 +59478,32 @@ var v0 = (e, t, n, r, i, a, o) => {dX], (e, t, n, r, i, a, o, s) => {if (t) {- var { type: c } = t, l = LU(e, s);+ var { type: c } = t, l = DW(e, s);if (r) {var u = n === "scaleBand" && r.bandwidth ? r.bandwidth() / 2 : 2, d = c === "category" && r.bandwidth ? r.bandwidth() / u : 0;- return d = s === "angleAxis" && i != null && i?.length >= 2 ? Cz(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {+ return d = s === "angleAxis" && i != null && i?.length >= 2 ? tB(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {var n = r.map(e);- return OU(n) ? {+ return vW(n) ? {coordinate: n + d,value: e,index: t,offset: d} : null;- }).filter(Pz) : r.domain().map((e, t) => {+ }).filter(fB) : r.domain().map((e, t) => {var n = r.map(e);- return OU(n) ? {+ return vW(n) ? {coordinate: n + d,value: a ? a[e] : e,index: t,offset: d} : null;- }).filter(Pz);+ }).filter(fB);}}}), A0 = $([Y1,X1,- uye+ bbe], (e, t, n) => Z1(n.shared, e, t)), j0 = (e) => e.tooltip.settings.trigger, M0 = (e) => e.tooltip.settings.defaultIndex, N0 = $([m0,A0,@@ -58129,22 +59516,22 @@ var v0 = (e, t, n, r, i, a, o) => {T0], u0), F0 = $([k0, P0], $1), I0 = $([N0], (e) => {if (e) return e.dataKey;-}), Hye = $([N0], (e) => {+}), Qbe = $([N0], (e) => {if (e) return e.graphicalItemId;}), L0 = $([m0,A0,j0,M0-], f0), Uye = $([N0, $([- rW,- iW,- iG,- bW,+], f0), $be = $([N0, $([+ qW,+ JW,+ JG,+ uG,k0,M0,L0-], d0)], (e, t) => e != null && e.coordinate ? e.coordinate : t), Wye = $([N0], (e) => e?.active ?? !1), Gye = $([$([+], d0)], (e, t) => e != null && e.coordinate ? e.coordinate : t), exe = $([N0], (e) => e?.active ?? !1), txe = $([$([L0,P0,mY,@@ -58174,26 +59561,26 @@ function z0(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? R0(Object(n), !0).forEach(function(t) {- Kye(e, t, n[t]);+ nxe(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : R0(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function Kye(e, t, n) {- return (t = qye(t)) in e ? Object.defineProperty(e, t, {+function nxe(e, t, n) {+ return (t = rxe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function qye(e) {- var t = Jye(e, "string");+function rxe(e) {+ var t = ixe(e, "string");return typeof t == "symbol" ? t : t + "";}-function Jye(e, t) {+function ixe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -58203,9 +59590,9 @@ function Jye(e, t) {}return (t === "string" ? String : Number)(e);}-var Yye = () => Q(n1), Xye = () => {- var e = Yye(), t = Q(k0), n = Q(O0);- return QU(!e || !n ? void 0 : z0(z0({}, e), {}, { scale: n }), t);+var axe = () => Q(n1), oxe = () => {+ var e = axe(), t = Q(k0), n = Q(O0);+ return HW(!e || !n ? void 0 : z0(z0({}, e), {}, { scale: n }), t);};//#endregion//#region node_modules/recharts/es6/util/getActiveCoordinate.js@@ -58223,26 +59610,26 @@ function V0(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? B0(Object(n), !0).forEach(function(t) {- Zye(e, t, n[t]);+ sxe(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : B0(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function Zye(e, t, n) {- return (t = Qye(t)) in e ? Object.defineProperty(e, t, {+function sxe(e, t, n) {+ return (t = cxe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function Qye(e) {- var t = $ye(e, "string");+function cxe(e) {+ var t = lxe(e, "string");return typeof t == "symbol" ? t : t + "";}-function $ye(e, t) {+function lxe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -58252,7 +59639,7 @@ function $ye(e, t) {}return (t === "string" ? String : Number)(e);}-var ebe = (e, t, n, r) => {+var uxe = (e, t, n, r) => {var i = t.find((e) => e && e.index === n);if (i) {if (e === "horizontal") return {@@ -58268,7 +59655,7 @@ var ebe = (e, t, n, r) => {x: 0,y: 0};-}, tbe = (e, t, n, r) => {+}, dxe = (e, t, n, r) => {var i = t.find((e) => e && e.index === n);if (i) {if (e === "centric") {@@ -58298,7 +59685,7 @@ var ebe = (e, t, n, r) => {y: 0};};-function nbe(e, t) {+function fxe(e, t) {var { relativeX: n, relativeY: r } = e;return n >= t.left && n <= t.left + t.width && r >= t.top && r <= t.top + t.height;}@@ -58308,9 +59695,9 @@ var H0 = (e, t, n, r, i) => {if (r === "angleAxis" && i != null && Math.abs(Math.abs(i[1] - i[0]) - 360) <= 1e-6) for (var o = 0; o < a; o++) {var s = o > 0 ? n[o - 1]?.coordinate : n[a - 1]?.coordinate, c = n[o]?.coordinate, l = o >= a - 1 ? n[0]?.coordinate : n[o + 1]?.coordinate, u = void 0;if (s != null && c != null && l != null) {- if (Cz(c - s) !== Cz(l - c)) {+ if (tB(c - s) !== tB(l - c)) {var d = [];- if (Cz(l - c) === Cz(i[1] - i[0])) {+ if (tB(l - c) === tB(i[1] - i[0])) {u = l;var f = c + i[1] - i[0];d[0] = Math.min(f, (f + s) / 2), d[1] = Math.max(f, (f + s) / 2);@@ -58335,7 +59722,7 @@ var H0 = (e, t, n, r, i) => {}}return -1;-}, U0 = () => Q(IY), W0 = (e, t) => t, G0 = (e, t, n) => n, K0 = (e, t, n, r) => r, rbe = $(k0, (e) => EB(e, (e) => e.coordinate)), q0 = $([+}, U0 = () => Q(IY), W0 = (e, t) => t, G0 = (e, t, n) => n, K0 = (e, t, n, r) => r, pxe = $(k0, (e) => dV(e, (e) => e.coordinate)), q0 = $([m0,W0,G0,@@ -58345,7 +59732,7 @@ var H0 = (e, t, n, r, i) => {x0,r1,T0-], u0), ibe = (e, t, n) => {+], u0), mxe = (e, t, n) => {if (t != null) {var r = m0(e);return t === "axis" ? n === "hover" ? r.axisInteraction.hover.dataKey : r.axisInteraction.click.dataKey : n === "hover" ? r.itemInteraction.hover.dataKey : r.itemInteraction.click.dataKey;@@ -58356,14 +59743,14 @@ var H0 = (e, t, n, r, i) => {G0,K0], f0), X0 = $([- rW,- iW,- iG,- bW,+ qW,+ JW,+ JG,+ uG,k0,K0,Y0-], d0), abe = $([q0, X0], (e, t) => e.coordinate ?? t), Z0 = $([k0, J0], $1), obe = $([+], d0), hxe = $([q0, X0], (e, t) => e.coordinate ?? t), Z0 = $([k0, J0], $1), gxe = $([Y0,J0,mY,@@ -58371,39 +59758,39 @@ var H0 = (e, t, n, r, i) => {Z0,p0,W0-], v0), sbe = $([q0, J0], (e, t) => ({+], v0), _xe = $([q0, J0], (e, t) => ({isActive: e.active && t != null,activeIndex: t-})), cbe = (e, t, n, r, i, a, o) => {- if (!(!e || !n || !r || !i) && nbe(e, o)) {- var s = H0(tW(e, t), a, i, n, r), c = ebe(t, i, s, e);+})), vxe = (e, t, n, r, i, a, o) => {+ if (!(!e || !n || !r || !i) && fxe(e, o)) {+ var s = H0(GW(e, t), a, i, n, r), c = uxe(t, i, s, e);return {activeIndex: String(s),activeCoordinate: c};}-}, lbe = (e, t, n, r, i, a, o) => {+}, yxe = (e, t, n, r, i, a, o) => {if (!(!e || !r || !i || !a || !n)) {- var s = Che(e, n);+ var s = Nge(e, n);if (s) {- var c = H0(nW(s, t), o, a, r, i), l = tbe(t, a, c, s);+ var c = H0(KW(s, t), o, a, r, i), l = dxe(t, a, c, s);return {activeIndex: String(c),activeCoordinate: l};}}-}, ube = (e, t, n, r, i, a, o, s) => {- if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? cbe(e, t, r, i, a, o, s) : lbe(e, t, n, r, i, a, o);-}, dbe = $((e) => e.zIndex.zIndexMap, (e, t) => t, (e, t, n) => n, (e, t, n) => {+}, bxe = (e, t, n, r, i, a, o, s) => {+ if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? vxe(e, t, r, i, a, o, s) : yxe(e, t, n, r, i, a, o);+}, xxe = $((e) => e.zIndex.zIndexMap, (e, t) => t, (e, t, n) => n, (e, t, n) => {if (t != null) {var r = e[t];if (r != null) return n ? r.panoramaElement : r.element;}-}), fbe = $((e) => e.zIndex.zIndexMap, (e) => {+}), Sxe = $((e) => e.zIndex.zIndexMap, (e) => {var t = Object.keys(e).map((e) => parseInt(e, 10)).concat(Object.values(BY));return Array.from(new Set(t)).sort((e, t) => e - t);-}, { memoizeOptions: { resultEqualityCheck: Whe } });+}, { memoizeOptions: { resultEqualityCheck: e_e } });//#endregion//#region node_modules/recharts/es6/state/zIndexSlice.jsfunction Q0(e, t) {@@ -58420,26 +59807,26 @@ function $0(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? Q0(Object(n), !0).forEach(function(t) {- pbe(e, t, n[t]);+ Cxe(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Q0(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function pbe(e, t, n) {- return (t = mbe(t)) in e ? Object.defineProperty(e, t, {+function Cxe(e, t, n) {+ return (t = wxe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function mbe(e) {- var t = hbe(e, "string");+function wxe(e) {+ var t = Txe(e, "string");return typeof t == "symbol" ? t : t + "";}-function hbe(e, t) {+function Txe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -58449,17 +59836,17 @@ function hbe(e, t) {}return (t === "string" ? String : Number)(e);}-var gbe = { zIndexMap: Object.values(BY).reduce((e, t) => $0($0({}, e), {}, { [t]: {+var Exe = { zIndexMap: Object.values(BY).reduce((e, t) => $0($0({}, e), {}, { [t]: {element: void 0,panoramaElement: void 0,consumers: 0-} }), {}) }, _be = new Set(Object.values(BY));-function vbe(e) {- return _be.has(e);+} }), {}) }, Dxe = new Set(Object.values(BY));+function Oxe(e) {+ return Dxe.has(e);}-var e2 = NH({+var e2 = CU({name: "zIndex",- initialState: gbe,+ initialState: Exe,reducers: {registerZIndexPortal: {reducer: (e, t) => {@@ -58470,48 +59857,48 @@ var e2 = NH({panoramaElement: void 0};},- prepare: vH()+ prepare: cU()},unregisterZIndexPortal: {reducer: (e, t) => {var { zIndex: n } = t.payload;- e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !vbe(n) && delete e.zIndexMap[n]);+ e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !Oxe(n) && delete e.zIndexMap[n]);},- prepare: vH()+ prepare: cU()},registerZIndexPortalElement: {reducer: (e, t) => {var { zIndex: n, element: r, isPanorama: i } = t.payload;- e.zIndexMap[n] ? i ? e.zIndexMap[n].panoramaElement = oK(r) : e.zIndexMap[n].element = oK(r) : e.zIndexMap[n] = {+ e.zIndexMap[n] ? i ? e.zIndexMap[n].panoramaElement = XK(r) : e.zIndexMap[n].element = XK(r) : e.zIndexMap[n] = {consumers: 0,- element: i ? void 0 : oK(r),- panoramaElement: i ? oK(r) : void 0+ element: i ? void 0 : XK(r),+ panoramaElement: i ? XK(r) : void 0};},- prepare: vH()+ prepare: cU()},unregisterZIndexPortalElement: {reducer: (e, t) => {var { zIndex: n } = t.payload;e.zIndexMap[n] && (t.payload.isPanorama ? e.zIndexMap[n].panoramaElement = void 0 : e.zIndexMap[n].element = void 0);},- prepare: vH()+ prepare: cU()}}-}), { registerZIndexPortal: ybe, unregisterZIndexPortal: bbe, registerZIndexPortalElement: xbe, unregisterZIndexPortalElement: Sbe } = e2.actions, Cbe = e2.reducer;+}), { registerZIndexPortal: kxe, unregisterZIndexPortal: Axe, registerZIndexPortalElement: jxe, unregisterZIndexPortalElement: Mxe } = e2.actions, Nxe = e2.reducer;//#endregion//#region node_modules/recharts/es6/zIndex/ZIndexLayer.jsfunction t2(e) {- var { zIndex: t, children: n } = e, r = lG() && t !== void 0 && t !== 0, i = wW(), a = vB();- (0, I.useLayoutEffect)(() => r ? (a(ybe({ zIndex: t })), () => {- a(bbe({ zIndex: t }));- }) : Fz, [+ var { zIndex: t, children: n } = e, r = $G() && t !== void 0 && t !== 0, i = mG(), a = XB();+ (0, I.useLayoutEffect)(() => r ? (a(kxe({ zIndex: t })), () => {+ a(Axe({ zIndex: t }));+ }) : pB, [a,t,r]);- var o = Q((e) => dbe(e, t, i));- return r ? o ? /*#__PURE__*/ (0, Ch.createPortal)(n, o) : null : n;+ var o = Q((e) => xxe(e, t, i));+ return r ? o ? /*#__PURE__*/ (0, Th.createPortal)(n, o) : null : n;}//#endregion//#region node_modules/recharts/es6/component/Cursor.js@@ -58538,26 +59925,26 @@ function i2(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? r2(Object(n), !0).forEach(function(t) {- wbe(e, t, n[t]);+ Pxe(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : r2(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function wbe(e, t, n) {- return (t = Tbe(t)) in e ? Object.defineProperty(e, t, {+function Pxe(e, t, n) {+ return (t = Fxe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function Tbe(e) {- var t = Ebe(e, "string");+function Fxe(e) {+ var t = Ixe(e, "string");return typeof t == "symbol" ? t : t + "";}-function Ebe(e, t) {+function Ixe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -58567,17 +59954,17 @@ function Ebe(e, t) {}return (t === "string" ? String : Number)(e);}-function Dbe(e) {+function Lxe(e) {var { cursor: t, cursorComp: n, cursorProps: r } = e;return /*#__PURE__*/ (0, I.isValidElement)(t) ? /*#__PURE__*/ (0, I.cloneElement)(t, r) : /*#__PURE__*/ (0, I.createElement)(n, r);}-function Obe(e) {+function Rxe(e) {var { coordinate: t, payload: n, index: r, offset: i, tooltipAxisBandSize: a, layout: o, cursor: s, tooltipEventType: c, chartName: l } = e, u = t, d = n, f = r;if (!s || !u || l !== "ScatterChart" && c !== "axis") return null;var p, m, h;- if (l === "ScatterChart") p = u, m = Yq, h = BY.cursorLine;- else if (l === "BarChart") p = Xq(o, u, i, a), m = eY, h = BY.cursorRectangle;- else if (o === "radial" && Vz(u)) {+ if (l === "ScatterChart") p = u, m = Lhe, h = BY.cursorLine;+ else if (l === "BarChart") p = Rhe(o, u, i, a), m = eY, h = BY.cursorRectangle;+ else if (o === "radial" && yB(u)) {var { cx: g, cy: _, radius: v, startAngle: y, endAngle: b } = oY(u);p = {cx: g,@@ -58587,24 +59974,24 @@ function Obe(e) {innerRadius: v,outerRadius: v}, m = dY, h = BY.cursorLine;- } else p = { points: Phe(o, u, i) }, m = Rq, h = BY.cursorLine;+ } else p = { points: Wge(o, u, i) }, m = DJ, h = BY.cursorLine;var x = typeof s == "object" && "className" in s ? s.className : void 0, S = i2(i2(i2(i2({stroke: "#ccc",pointerEvents: "none"- }, i), p), gR(s)), {}, {+ }, i), p), JR(s)), {}, {payload: d,payloadIndex: f,- className: Jm("recharts-tooltip-cursor", x)+ className: Xm("recharts-tooltip-cursor", x)});- return /*#__PURE__*/ I.createElement(t2, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ I.createElement(Dbe, {+ return /*#__PURE__*/ I.createElement(t2, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ I.createElement(Lxe, {cursor: s,cursorComp: m,cursorProps: S}));}-function kbe(e) {- var t = Xye(), n = eG(), r = aG(), i = U0();- return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ I.createElement(Obe, n2({}, e, {+function zxe(e) {+ var t = oxe(), n = WG(), r = YG(), i = U0();+ return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ I.createElement(Rxe, n2({}, e, {offset: n,layout: r,tooltipAxisBandSize: t,@@ -58613,7 +60000,7 @@ function kbe(e) {}//#endregion//#region node_modules/recharts/es6/context/tooltipPortalContext.js-var a2 = /*#__PURE__*/ (0, I.createContext)(null), Abe = () => (0, I.useContext)(a2), jbe = (/* @__PURE__ */ re((/* @__PURE__ */ F(((e, t) => {+var a2 = /*#__PURE__*/ (0, I.createContext)(null), Bxe = () => (0, I.useContext)(a2), Vxe = (/* @__PURE__ */ ae((/* @__PURE__ */ F(((e, t) => {var n = Object.prototype.hasOwnProperty, r = "~";function i() {}Object.create && (i.prototype = Object.create(null), new i().__proto__ || (r = !1));@@ -58700,12 +60087,12 @@ var a2 = /*#__PURE__*/ (0, I.createContext)(null), Abe = () => (0, I.useContext)var t;return e ? (t = r ? r + e : e, this._events[t] && s(this, t)) : (this._events = new i(), this._eventsCount = 0), this;}, c.prototype.off = c.prototype.removeListener, c.prototype.addListener = c.prototype.on, c.prefixed = r, c.EventEmitter = c, t !== void 0 && (t.exports = c);-})))(), 1)).default, o2 = new jbe(), s2 = "recharts.syncEvent.tooltip", c2 = "recharts.syncEvent.brush", l2 = (e, t) => {+})))(), 1)).default, o2 = new Vxe(), s2 = "recharts.syncEvent.tooltip", c2 = "recharts.syncEvent.brush", l2 = (e, t) => {if (t && Array.isArray(e)) {var n = Number.parseInt(t, 10);- if (!wz(n)) return e[n];+ if (!nB(n)) return e[n];}-}, u2 = NH({+}, u2 = CU({name: "options",initialState: {chartName: "",@@ -58716,13 +60103,13 @@ var a2 = /*#__PURE__*/ (0, I.createContext)(null), Abe = () => (0, I.useContext)reducers: { createEventEmitter: (e) => {e.eventEmitter ??= Symbol("rechartsEventEmitter");} }-}), Mbe = u2.reducer, { createEventEmitter: Nbe } = u2.actions;+}), Hxe = u2.reducer, { createEventEmitter: Uxe } = u2.actions;//#endregion//#region node_modules/recharts/es6/synchronisation/syncSelectors.js-function Pbe(e) {+function Wxe(e) {return e.tooltip.syncInteraction;}-var d2 = NH({+var d2 = CU({name: "chartData",initialState: {chartData: void 0,@@ -58732,7 +60119,7 @@ var d2 = NH({},reducers: {setChartData(e, t) {- if (e.chartData = oK(t.payload), t.payload == null) {+ if (e.chartData = XK(t.payload), t.payload == null) {e.dataStartIndex = 0, e.dataEndIndex = 0;return;}@@ -58746,7 +60133,7 @@ var d2 = NH({n != null && (e.dataStartIndex = n), r != null && (e.dataEndIndex = r);}}-}), { setChartData: f2, setDataStartEndIndexes: Fbe, setComputedData: Ibe } = d2.actions, Lbe = d2.reducer, Rbe = ["x", "y"];+}), { setChartData: f2, setDataStartEndIndexes: Gxe, setComputedData: Kxe } = d2.actions, qxe = d2.reducer, Jxe = ["x", "y"];function p2(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {@@ -58761,26 +60148,26 @@ function m2(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? p2(Object(n), !0).forEach(function(t) {- zbe(e, t, n[t]);+ Yxe(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : p2(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function zbe(e, t, n) {- return (t = Bbe(t)) in e ? Object.defineProperty(e, t, {+function Yxe(e, t, n) {+ return (t = Xxe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function Bbe(e) {- var t = Vbe(e, "string");+function Xxe(e) {+ var t = Zxe(e, "string");return typeof t == "symbol" ? t : t + "";}-function Vbe(e, t) {+function Zxe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -58790,16 +60177,16 @@ function Vbe(e, t) {}return (t === "string" ? String : Number)(e);}-function Hbe(e, t) {+function Qxe(e, t) {if (e == null) return {};- var n, r, i = Ube(e, t);+ var n, r, i = $xe(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function Ube(e, t) {+function $xe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -58808,16 +60195,16 @@ function Ube(e, t) {}return n;}-function Wbe() {- var e = Q(LY), t = Q(zY), n = vB(), r = Q(RY), i = Q(k0), a = aG(), o = QW(), s = Q((e) => e.rootProps.className);+function eSe() {+ var e = Q(LY), t = Q(zY), n = XB(), r = Q(RY), i = Q(k0), a = YG(), o = HG(), s = Q((e) => e.rootProps.className);(0, I.useEffect)(() => {- if (e == null) return Fz;+ if (e == null) return pB;var s = (s, c, l) => {if (t !== l && e === s) {if (r === "index") {var u;if (o && c != null && (u = c.payload) != null && u.coordinate && c.payload.sourceViewBox) {- var d = c.payload.coordinate, { x: f, y: p } = d, m = Hbe(d, Rbe), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = m2(m2({}, m), {}, {+ var d = c.payload.coordinate, { x: f, y: p } = d, m = Qxe(d, Jxe), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = m2(m2({}, m), {}, {x: o.x + (_ ? (f - h) / _ : 0) * o.width,y: o.y + (v ? (p - g) / v : 0) * o.height});@@ -58878,12 +60265,12 @@ function Wbe() {o]);}-function Gbe() {- var e = Q(LY), t = Q(zY), n = vB();+function tSe() {+ var e = Q(LY), t = Q(zY), n = XB();(0, I.useEffect)(() => {- if (e == null) return Fz;+ if (e == null) return pB;var r = (r, i, a) => {- t !== a && e === r && n(Fbe(i));+ t !== a && e === r && n(Gxe(i));};return o2.on(c2, r), () => {o2.off(c2, r);@@ -58894,14 +60281,14 @@ function Gbe() {e]);}-function Kbe() {- var e = vB();+function nSe() {+ var e = XB();(0, I.useEffect)(() => {- e(Nbe());- }, [e]), Wbe(), Gbe();+ e(Uxe());+ }, [e]), eSe(), tSe();}-function qbe(e, t, n, r, i, a) {- var o = Q((n) => ibe(n, e, t)), s = Q(Hye), c = Q(zY), l = Q(LY), u = Q(RY), d = Q(Pbe)?.active, f = QW();+function rSe(e, t, n, r, i, a) {+ var o = Q((n) => mxe(n, e, t)), s = Q(Qbe), c = Q(zY), l = Q(LY), u = Q(RY), d = Q(Wxe)?.active, f = HG();(0, I.useEffect)(() => {if (!d && l != null && c != null) {var e = a0({@@ -58945,26 +60332,26 @@ function g2(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? h2(Object(n), !0).forEach(function(t) {- Jbe(e, t, n[t]);+ iSe(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : h2(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function Jbe(e, t, n) {- return (t = Ybe(t)) in e ? Object.defineProperty(e, t, {+function iSe(e, t, n) {+ return (t = aSe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function Ybe(e) {- var t = Xbe(e, "string");+function aSe(e) {+ var t = oSe(e, "string");return typeof t == "symbol" ? t : t + "";}-function Xbe(e, t) {+function oSe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -58974,13 +60361,13 @@ function Xbe(e, t) {}return (t === "string" ? String : Number)(e);}-function Zbe(e) {+function sSe(e) {return e.dataKey;}-function Qbe(e, t) {- return /*#__PURE__*/ I.isValidElement(e) ? /*#__PURE__*/ I.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ I.createElement(e, t) : /*#__PURE__*/ I.createElement(oq, t);+function cSe(e, t) {+ return /*#__PURE__*/ I.isValidElement(e) ? /*#__PURE__*/ I.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ I.createElement(e, t) : /*#__PURE__*/ I.createElement(Xq, t);}-var _2 = [], $be = {+var _2 = [], lSe = {allowEscapeViewBox: {x: !1,y: !1@@ -59006,10 +60393,10 @@ var _2 = [], $be = {useTranslate3d: !1,wrapperStyle: {}};-function exe(e) {- var t = Gz(e, $be), { active: n, allowEscapeViewBox: r, animationDuration: i, animationEasing: a, content: o, filterNull: s, isAnimationActive: c, offset: l, payloadUniqBy: u, position: d, reverseDirection: f, useTranslate3d: p, wrapperStyle: m, cursor: h, shared: g, trigger: _, defaultIndex: v, portal: y, axisId: b } = t, x = vB(), S = typeof v == "number" ? String(v) : v;+function uSe(e) {+ var t = CB(e, lSe), { active: n, allowEscapeViewBox: r, animationDuration: i, animationEasing: a, content: o, filterNull: s, isAnimationActive: c, offset: l, payloadUniqBy: u, position: d, reverseDirection: f, useTranslate3d: p, wrapperStyle: m, cursor: h, shared: g, trigger: _, defaultIndex: v, portal: y, axisId: b } = t, x = XB(), S = typeof v == "number" ? String(v) : v;(0, I.useEffect)(() => {- x(mye({+ x(wbe({shared: g,trigger: _,axisId: b,@@ -59024,20 +60411,20 @@ function exe(e) {n,S]);- var C = QW(), w = Cq(), T = lye(g), { activeIndex: E, isActive: D } = Q((e) => sbe(e, T, _, S)) ?? {}, O = Q((e) => obe(e, T, _, S)), k = Q((e) => Z0(e, T, _, S)), A = Q((e) => abe(e, T, _, S)), j = O, M = Abe(), N = n ?? D ?? !1, [P, ee] = kB([j, N]), F = T === "axis" ? k : void 0;- qbe(T, _, A, F, E, N);- var te = y ?? M;- if (te == null || C == null || T == null) return null;- var ne = j ?? _2;- N || (ne = _2), s && ne.length && (ne = gB(ne.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, Zbe));- var re = ne.length > 0, ie = g2(g2({}, t), {}, {- payload: ne,- label: F,+ var C = HG(), w = pJ(), T = ybe(g), { activeIndex: E, isActive: D } = Q((e) => _xe(e, T, _, S)) ?? {}, O = Q((e) => gxe(e, T, _, S)), k = Q((e) => Z0(e, T, _, S)), A = Q((e) => hxe(e, T, _, S)), j = O, M = Bxe(), N = n ?? D ?? !1, [ee, te] = _V([j, N]), P = T === "axis" ? k : void 0;+ rSe(T, _, A, P, E, N);+ var ne = y ?? M;+ if (ne == null || C == null || T == null) return null;+ var F = j ?? _2;+ N || (F = _2), s && F.length && (F = JB(F.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, sSe));+ var re = F.length > 0, ie = g2(g2({}, t), {}, {+ payload: F,+ label: P,active: N,activeIndex: E,coordinate: A,accessibilityLayer: w- }), ae = /*#__PURE__*/ I.createElement(Sq, {+ }), ae = /*#__PURE__*/ I.createElement(fJ, {allowEscapeViewBox: r,animationDuration: i,animationEasing: a,@@ -59051,15 +60438,15 @@ function exe(e) {useTranslate3d: p,viewBox: C,wrapperStyle: m,- lastBoundingBox: P,- innerRef: ee,+ lastBoundingBox: ee,+ innerRef: te,hasPortalFromProps: !!y- }, Qbe(o, ie));- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ (0, Ch.createPortal)(ae, te), N && /*#__PURE__*/ I.createElement(kbe, {+ }, cSe(o, ie));+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ (0, Th.createPortal)(ae, ne), N && /*#__PURE__*/ I.createElement(zxe, {cursor: h,tooltipEventType: T,coordinate: A,- payload: ne,+ payload: F,index: E}));}@@ -59069,19 +60456,19 @@ var v2 = (e) => null;v2.displayName = "Cell";//#endregion//#region node_modules/recharts/es6/util/LRUCache.js-function txe(e, t, n) {- return (t = nxe(t)) in e ? Object.defineProperty(e, t, {+function dSe(e, t, n) {+ return (t = fSe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function nxe(e) {- var t = rxe(e, "string");+function fSe(e) {+ var t = pSe(e, "string");return typeof t == "symbol" ? t : t + "";}-function rxe(e, t) {+function pSe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -59091,9 +60478,9 @@ function rxe(e, t) {}return (t === "string" ? String : Number)(e);}-var ixe = class {+var mSe = class {constructor(e) {- txe(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;+ dSe(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;}get(e) {var t = this.cache.get(e);@@ -59126,30 +60513,30 @@ function y2(e, t) {}return n;}-function axe(e) {+function hSe(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? y2(Object(n), !0).forEach(function(t) {- oxe(e, t, n[t]);+ gSe(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : y2(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function oxe(e, t, n) {- return (t = sxe(t)) in e ? Object.defineProperty(e, t, {+function gSe(e, t, n) {+ return (t = _Se(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function sxe(e) {- var t = cxe(e, "string");+function _Se(e) {+ var t = vSe(e, "string");return typeof t == "symbol" ? t : t + "";}-function cxe(e, t) {+function vSe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -59159,10 +60546,10 @@ function cxe(e, t) {}return (t === "string" ? String : Number)(e);}-var b2 = axe({}, {+var b2 = hSe({}, {cacheSize: 2e3,enableCache: !0-}), x2 = new ixe(b2.cacheSize), lxe = {+}), x2 = new mSe(b2.cacheSize), ySe = {position: "absolute",top: "-20000px",left: 0,@@ -59171,13 +60558,13 @@ var b2 = axe({}, {border: "none",whiteSpace: "pre"}, S2 = "recharts_measurement_span";-function uxe(e, t) {+function bSe(e, t) {return `${e}|${t.fontSize || ""}|${t.fontFamily || ""}|${t.fontWeight || ""}|${t.fontStyle || ""}|${t.letterSpacing || ""}|${t.textTransform || ""}`;}var C2 = (e, t) => {try {var n = document.getElementById(S2);- n || (n = document.createElement("span"), n.setAttribute("id", S2), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, lxe, t), n.textContent = `${e}`;+ n || (n = document.createElement("span"), n.setAttribute("id", S2), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, ySe, t), n.textContent = `${e}`;var r = n.getBoundingClientRect();return {width: r.width,@@ -59191,29 +60578,29 @@ var C2 = (e, t) => {}}, w2 = function(e) {var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};- if (e == null || pq.isSsr) return {+ if (e == null || rJ.isSsr) return {width: 0,height: 0};if (!b2.enableCache) return C2(e, t);- var n = uxe(e, t), r = x2.get(n);+ var n = bSe(e, t), r = x2.get(n);if (r) return r;var i = C2(e, t);return x2.set(n, i), i;}, T2;-function dxe(e, t, n) {- return (t = fxe(t)) in e ? Object.defineProperty(e, t, {+function xSe(e, t, n) {+ return (t = SSe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function fxe(e) {- var t = pxe(e, "string");+function SSe(e) {+ var t = CSe(e, "string");return typeof t == "symbol" ? t : t + "";}-function pxe(e, t) {+function CSe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -59223,7 +60610,7 @@ function pxe(e, t) {}return (t === "string" ? String : Number)(e);}-var E2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, D2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, mxe = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, hxe = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, gxe = {+var E2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, D2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, wSe = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, TSe = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, ESe = {cm: 96 / 2.54,mm: 96 / 25.4,pt: 96 / 72,@@ -59231,7 +60618,7 @@ var E2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, D2 = /(in: 96,Q: 96 / 101.6,px: 1-}, _xe = [+}, DSe = ["cm","mm","pt",@@ -59240,20 +60627,20 @@ var E2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, D2 = /("Q","px"];-function vxe(e) {- return _xe.includes(e);+function OSe(e) {+ return DSe.includes(e);}var O2 = "NaN";-function yxe(e, t) {- return e * gxe[t];+function kSe(e, t) {+ return e * ESe[t];}var k2 = class e {static parse(t) {- var [, n, r] = hxe.exec(t) ?? [];+ var [, n, r] = TSe.exec(t) ?? [];return n == null ? e.NaN : new e(parseFloat(n), r ?? "");}constructor(e, t) {- this.num = e, this.unit = t, this.num = e, this.unit = t, wz(e) && (this.unit = ""), t !== "" && !mxe.test(t) && (this.num = NaN, this.unit = ""), vxe(t) && (this.num = yxe(e, t), this.unit = "px");+ this.num = e, this.unit = t, this.num = e, this.unit = t, nB(e) && (this.unit = ""), t !== "" && !wSe.test(t) && (this.num = NaN, this.unit = ""), OSe(t) && (this.num = kSe(e, t), this.unit = "px");}add(t) {return this.unit === t.unit ? new e(this.num + t.num, this.unit) : new e(NaN, "");@@ -59271,10 +60658,10 @@ var k2 = class e {return `${this.num}${this.unit}`;}isNaN() {- return wz(this.num);+ return nB(this.num);}};-T2 = k2, dxe(k2, "NaN", new T2(NaN, ""));+T2 = k2, xSe(k2, "NaN", new T2(NaN, ""));function A2(e) {if (e == null || e.includes(O2)) return O2;for (var t = e; t.includes("*") || t.includes("/");) {@@ -59290,31 +60677,31 @@ function A2(e) {return t;}var j2 = /\(([^()]*)\)/;-function bxe(e) {+function ASe(e) {for (var t = e, n; (n = j2.exec(t)) != null;) {var [, r] = n;t = t.replace(j2, A2(r));}return t;}-function xxe(e) {+function jSe(e) {var t = e.replace(/\s+/g, "");- return t = bxe(t), t = A2(t), t;+ return t = ASe(t), t = A2(t), t;}-function Sxe(e) {+function MSe(e) {try {- return xxe(e);+ return jSe(e);} catch {return O2;}}function M2(e) {- var t = Sxe(e.slice(5, -1));+ var t = MSe(e.slice(5, -1));return t === O2 ? "" : t;}//#endregion//#region node_modules/recharts/es6/component/Text.js-var Cxe = [+var NSe = ["x","y","lineHeight",@@ -59323,7 +60710,7 @@ var Cxe = ["scaleToFit","textAnchor","verticalAnchor"-], wxe = [+], PSe = ["dx","dy","angle",@@ -59341,14 +60728,14 @@ function N2() {}function P2(e, t) {if (e == null) return {};- var n, r, i = Txe(e, t);+ var n, r, i = FSe(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function Txe(e, t) {+function FSe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -59361,7 +60748,7 @@ var F2 = /[ \f\n\r\t\v\u2028\u2029]+/, I2 = (e) => {var { children: t, breakAll: n, style: r } = e;try {var i = [];- return Mz(t) || (i = n ? t.toString().split("") : t.toString().split(F2)), {+ return uB(t) || (i = n ? t.toString().split("") : t.toString().split(F2)), {wordsWithComputedWidth: i.map((e) => ({word: e,width: w2(e, r).width@@ -59375,8 +60762,8 @@ var F2 = /[ \f\n\r\t\v\u2028\u2029]+/, I2 = (e) => {function L2(e) {return e === "start" || e === "middle" || e === "end" || e === "inherit";}-function Exe(e) {- return Mz(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";+function ISe(e) {+ return uB(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";}var R2 = (e, t, n, r) => e.reduce((e, i) => {var { word: a, width: o } = i, s = e[e.length - 1];@@ -59389,16 +60776,16 @@ var R2 = (e, t, n, r) => e.reduce((e, i) => {e.push(c);}return e;-}, []), z2 = (e) => e.reduce((e, t) => e.width > t.width ? e : t), Dxe = "…", B2 = (e, t, n, r, i, a, o, s) => {+}, []), z2 = (e) => e.reduce((e, t) => e.width > t.width ? e : t), LSe = "…", B2 = (e, t, n, r, i, a, o, s) => {var c = I2({breakAll: n,style: r,- children: e.slice(0, t) + Dxe+ children: e.slice(0, t) + LSe});if (!c) return [!1, []];var l = R2(c.wordsWithComputedWidth, a, o, s);return [l.length > i || z2(l).width > Number(a), l];-}, Oxe = (e, t, n, r, i) => {+}, RSe = (e, t, n, r, i) => {var { maxLines: a, children: o, style: s, breakAll: c } = e, l = Z(a), u = String(o), d = R2(t, r, n, i);if (!l || i || !(d.length > a || z2(d).width > Number(r))) return d;for (var f = 0, p = u.length - 1, m = 0, h; f <= p && m <= u.length - 1;) {@@ -59411,11 +60798,11 @@ var R2 = (e, t, n, r) => e.reduce((e, i) => {}return h || d;}, V2 = (e) => [{- words: Mz(e) ? [] : e.toString().split(F2),+ words: uB(e) ? [] : e.toString().split(F2),width: void 0-}], kxe = (e) => {+}], zSe = (e) => {var { width: t, scaleToFit: n, children: r, style: i, breakAll: a, maxLines: o } = e;- if ((t || n) && !pq.isSsr) {+ if ((t || n) && !rJ.isSsr) {var s, c, l = I2({breakAll: a,children: r,@@ -59425,7 +60812,7 @@ var R2 = (e, t, n, r) => e.reduce((e, i) => {var { wordsWithComputedWidth: u, spaceWidth: d } = l;s = u, c = d;} else return V2(r);- return Oxe({+ return RSe({breakAll: a,children: r,maxLines: o,@@ -59433,7 +60820,7 @@ var R2 = (e, t, n, r) => e.reduce((e, i) => {}, s, c, t, !!n);}return V2(r);-}, H2 = "#808080", Axe = {+}, H2 = "#808080", BSe = {angle: 0,breakAll: !1,capHeight: "0.71em",@@ -59445,7 +60832,7 @@ var R2 = (e, t, n, r) => e.reduce((e, i) => {x: 0,y: 0}, U2 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {- var n = Gz(e, Axe), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = P2(n, Cxe), f = (0, I.useMemo)(() => kxe({+ var n = CB(e, BSe), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = P2(n, NSe), f = (0, I.useMemo)(() => zSe({breakAll: d.breakAll,children: d.children,maxLines: d.maxLines,@@ -59459,10 +60846,10 @@ var R2 = (e, t, n, r) => e.reduce((e, i) => {c,d.style,d.width- ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = P2(d, wxe);- if (!Ez(r) || !Ez(i) || f.length === 0) return null;+ ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = P2(d, PSe);+ if (!iB(r) || !iB(i) || f.length === 0) return null;var y = Number(r) + (Z(p) ? p : 0), b = Number(i) + (Z(m) ? m : 0);- if (!OU(y) || !OU(b)) return null;+ if (!vW(y) || !vW(b)) return null;var x;switch (u) {case "start":@@ -59478,11 +60865,11 @@ var R2 = (e, t, n, r) => e.reduce((e, i) => {var w = C.width, { width: T } = d;S.push(`scale(${Z(T) && Z(w) ? T / w : 1})`);}- return h && S.push(`rotate(${h}, ${y}, ${b})`), S.length && (v.transform = S.join(" ")), /*#__PURE__*/ I.createElement("text", N2({}, _R(v), {+ return h && S.push(`rotate(${h}, ${y}, ${b})`), S.length && (v.transform = S.join(" ")), /*#__PURE__*/ I.createElement("text", N2({}, YR(v), {ref: t,x: y,y: b,- className: Jm("recharts-text", g),+ className: Xm("recharts-text", g),textAnchor: l,fill: s.includes("url") ? H2 : s}), f.map((e, t) => {@@ -59511,26 +60898,26 @@ function G2(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? W2(Object(n), !0).forEach(function(t) {- jxe(e, t, n[t]);+ VSe(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : W2(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function jxe(e, t, n) {- return (t = Mxe(t)) in e ? Object.defineProperty(e, t, {+function VSe(e, t, n) {+ return (t = HSe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function Mxe(e) {- var t = Nxe(e, "string");+function HSe(e) {+ var t = USe(e, "string");return typeof t == "symbol" ? t : t + "";}-function Nxe(e, t) {+function USe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -59540,8 +60927,8 @@ function Nxe(e, t) {}return (t === "string" ? String : Number)(e);}-var Pxe = (e) => {- var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = ZW(t), d = o, f = o + (l - u) / 2, p = (d + f) / 2, m = (l + u) / 2, h = d + l / 2, g = c >= 0 ? 1 : -1, _ = g * r, v = g > 0 ? "end" : "start", y = g > 0 ? "start" : "end", b = l >= 0 ? 1 : -1, x = b * r, S = b > 0 ? "end" : "start", C = b > 0 ? "start" : "end", w = i;+var WSe = (e) => {+ var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = VG(t), d = o, f = o + (l - u) / 2, p = (d + f) / 2, m = (l + u) / 2, h = d + l / 2, g = c >= 0 ? 1 : -1, _ = g * r, v = g > 0 ? "end" : "start", y = g > 0 ? "start" : "end", b = l >= 0 ? 1 : -1, x = b * r, S = b > 0 ? "end" : "start", C = b > 0 ? "start" : "end", w = i;if (n === "top") {var T = {x: d + l / 2,@@ -59622,9 +61009,9 @@ var Pxe = (e) => {y: s + c - _,horizontalAnchor: S,verticalAnchor: v- }, k) : n && typeof n == "object" && (Z(n.x) || Tz(n.x)) && (Z(n.y) || Tz(n.y)) ? G2({- x: o + Oz(n.x, m),- y: s + Oz(n.y, c),+ }, k) : n && typeof n == "object" && (Z(n.x) || rB(n.x)) && (Z(n.y) || rB(n.y)) ? G2({+ x: o + oB(n.x, m),+ y: s + oB(n.y, c),horizontalAnchor: "end",verticalAnchor: "end"}, k) : G2({@@ -59633,17 +61020,17 @@ var Pxe = (e) => {horizontalAnchor: "middle",verticalAnchor: "middle"}, k);-}, Fxe = ["labelRef"], Ixe = ["content"];+}, GSe = ["labelRef"], KSe = ["content"];function K2(e, t) {if (e == null) return {};- var n, r, i = Lxe(e, t);+ var n, r, i = qSe(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function Lxe(e, t) {+function qSe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -59666,26 +61053,26 @@ function J2(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? q2(Object(n), !0).forEach(function(t) {- Rxe(e, t, n[t]);+ JSe(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : q2(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function Rxe(e, t, n) {- return (t = zxe(t)) in e ? Object.defineProperty(e, t, {+function JSe(e, t, n) {+ return (t = YSe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function zxe(e) {- var t = Bxe(e, "string");+function YSe(e) {+ var t = XSe(e, "string");return typeof t == "symbol" ? t : t + "";}-function Bxe(e, t) {+function XSe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -59722,9 +61109,9 @@ var X2 = /*#__PURE__*/ (0, I.createContext)(null), Z2 = (e) => {]);return /*#__PURE__*/ I.createElement(X2.Provider, { value: c }, s);}, Q2 = () => {- var e = (0, I.useContext)(X2), t = QW();- return e || (t ? ZW(t) : void 0);-}, $2 = /*#__PURE__*/ (0, I.createContext)(null), Vxe = (e) => {+ var e = (0, I.useContext)(X2), t = HG();+ return e || (t ? VG(t) : void 0);+}, $2 = /*#__PURE__*/ (0, I.createContext)(null), ZSe = (e) => {var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o, clockWise: s, children: c } = e, l = (0, I.useMemo)(() => ({cx: t,cy: n,@@ -59746,11 +61133,11 @@ var X2 = /*#__PURE__*/ (0, I.createContext)(null), Z2 = (e) => {}, e4 = () => {var e = (0, I.useContext)($2), t = Q(rX);return e || t;-}, Hxe = (e) => {- var { value: t, formatter: n } = e, r = Mz(e.children) ? t : e.children;+}, QSe = (e) => {+ var { value: t, formatter: n } = e, r = uB(e.children) ? t : e.children;return typeof n == "function" ? n(r) : r;-}, t4 = (e) => e != null && typeof e == "function", Uxe = (e, t) => Cz(t - e) * Math.min(Math.abs(t - e), 360), Wxe = (e, t, n, r, i) => {- var { offset: a, className: o } = e, { cx: s, cy: c, innerRadius: l, outerRadius: u, startAngle: d, endAngle: f, clockWise: p } = i, m = (l + u) / 2, h = Uxe(d, f), g = h >= 0 ? 1 : -1, _, v;+}, t4 = (e) => e != null && typeof e == "function", $Se = (e, t) => tB(t - e) * Math.min(Math.abs(t - e), 360), eCe = (e, t, n, r, i) => {+ var { offset: a, className: o } = e, { cx: s, cy: c, innerRadius: l, outerRadius: u, startAngle: d, endAngle: f, clockWise: p } = i, m = (l + u) / 2, h = $Se(d, f), g = h >= 0 ? 1 : -1, _, v;switch (t) {case "insideStart":_ = d + g * a, v = p;@@ -59766,15 +61153,15 @@ var X2 = /*#__PURE__*/ (0, I.createContext)(null), Z2 = (e) => {v = h <= 0 ? v : !v;var y = aY(s, c, m, _), b = aY(s, c, m, _ + (v ? 1 : -1) * 359), x = `M${y.x},${y.y}A${m},${m},0,1,${+!v},- ${b.x},${b.y}`, S = Mz(e.id) ? Dz("recharts-radial-line-") : e.id;+ ${b.x},${b.y}`, S = uB(e.id) ? aB("recharts-radial-line-") : e.id;return /*#__PURE__*/ I.createElement("text", Y2({}, r, {dominantBaseline: "central",- className: Jm("recharts-radial-bar-label", o)+ className: Xm("recharts-radial-bar-label", o)}), /*#__PURE__*/ I.createElement("defs", null, /*#__PURE__*/ I.createElement("path", {id: S,d: x})), /*#__PURE__*/ I.createElement("textPath", { xlinkHref: `#${S}` }, n));-}, Gxe = (e, t, n) => {+}, tCe = (e, t, n) => {var { cx: r, cy: i, innerRadius: a, outerRadius: o, startAngle: s, endAngle: c } = e, l = (s + c) / 2;if (n === "outside") {var { x: u, y: d } = aY(r, i, o + t, l);@@ -59810,14 +61197,14 @@ var X2 = /*#__PURE__*/ (0, I.createContext)(null), Z2 = (e) => {textAnchor: "middle",verticalAnchor: "middle"};-}, n4 = (e) => e != null && "cx" in e && Z(e.cx), Kxe = {+}, n4 = (e) => e != null && "cx" in e && Z(e.cx), nCe = {angle: 0,offset: 5,zIndex: BY.label,position: "middle",textBreakAll: !1};-function qxe(e) {+function rCe(e) {if (!n4(e)) return e;var { cx: t, cy: n, outerRadius: r } = e, i = r * 2;return {@@ -59830,24 +61217,24 @@ function qxe(e) {};}function r4(e) {- var t = Gz(e, Kxe), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = e4(), f = Q2(), p = n == null ? i === "center" ? f : d ?? f : n4(n) ? n : ZW(n), m, h, g = qxe(p);- if (!p || Mz(a) && Mz(o) && !/*#__PURE__*/ (0, I.isValidElement)(s) && typeof s != "function") return null;+ var t = CB(e, nCe), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = e4(), f = Q2(), p = n == null ? i === "center" ? f : d ?? f : n4(n) ? n : VG(n), m, h, g = rCe(p);+ if (!p || uB(a) && uB(o) && !/*#__PURE__*/ (0, I.isValidElement)(s) && typeof s != "function") return null;var _ = J2(J2({}, t), {}, { viewBox: p });if (/*#__PURE__*/ (0, I.isValidElement)(s)) {- var { labelRef: v } = _, y = K2(_, Fxe);+ var { labelRef: v } = _, y = K2(_, GSe);return /*#__PURE__*/ (0, I.cloneElement)(s, y);}if (typeof s == "function") {- var { content: b } = _, x = K2(_, Ixe);+ var { content: b } = _, x = K2(_, KSe);if (m = /*#__PURE__*/ (0, I.createElement)(s, x), /*#__PURE__*/ (0, I.isValidElement)(m)) return m;- } else m = Hxe(t);- var S = _R(t);+ } else m = QSe(t);+ var S = YR(t);if (n4(p)) {- if (i === "insideStart" || i === "insideEnd" || i === "end") return Wxe(t, i, m, S, p);- h = Gxe(p, t.offset, t.position);+ if (i === "insideStart" || i === "insideEnd" || i === "end") return eCe(t, i, m, S, p);+ h = tCe(p, t.offset, t.position);} else {if (!g) return null;- var C = Pxe({+ var C = WSe({viewBox: g,position: i,offset: t.offset,@@ -59863,7 +61250,7 @@ function r4(e) {}return /*#__PURE__*/ I.createElement(t2, { zIndex: t.zIndex }, /*#__PURE__*/ I.createElement(U2, Y2({ref: u,- className: Jm("recharts-label", c)+ className: Xm("recharts-label", c)}, S, h, {textAnchor: L2(S.textAnchor) ? S.textAnchor : h.textAnchor,breakAll: l@@ -59876,7 +61263,7 @@ var i4 = (e, t, n) => {viewBox: t,labelRef: n};- return e === !0 ? /*#__PURE__*/ I.createElement(r4, Y2({ key: "label-implicit" }, r)) : Ez(e) ? /*#__PURE__*/ I.createElement(r4, Y2({+ return e === !0 ? /*#__PURE__*/ I.createElement(r4, Y2({ key: "label-implicit" }, r)) : iB(e) ? /*#__PURE__*/ I.createElement(r4, Y2({key: "label-implicit",value: e}, r)) : /*#__PURE__*/ (0, I.isValidElement)(e) ? e.type === r4 ? /*#__PURE__*/ (0, I.cloneElement)(e, J2({ key: "label-implicit" }, r)) : /*#__PURE__*/ I.createElement(r4, Y2({@@ -59891,13 +61278,13 @@ function a4(e) {var { label: t, labelRef: n } = e;return i4(t, Q2(), n) || null;}-function Jxe(e) {+function iCe(e) {var { label: t } = e;return i4(t, e4()) || null;}//#endregion//#region node_modules/recharts/es6/component/LabelList.js-var Yxe = ["valueAccessor"], Xxe = [+var aCe = ["valueAccessor"], oCe = ["dataKey","clockWise","id",@@ -59915,14 +61302,14 @@ function o4() {}function s4(e, t) {if (e == null) return {};- var n, r, i = Zxe(e, t);+ var n, r, i = sCe(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function Zxe(e, t) {+function sCe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -59931,21 +61318,21 @@ function Zxe(e, t) {}return n;}-var Qxe = (e) => {+var cCe = (e) => {var t = Array.isArray(e.value) ? e.value[e.value.length - 1] : e.value;- if (Exe(t)) return t;-}, c4 = /*#__PURE__*/ (0, I.createContext)(void 0), l4 = c4.Provider, u4 = /*#__PURE__*/ (0, I.createContext)(void 0), $xe = u4.Provider;-function eSe() {+ if (ISe(t)) return t;+}, c4 = /*#__PURE__*/ (0, I.createContext)(void 0), l4 = c4.Provider, u4 = /*#__PURE__*/ (0, I.createContext)(void 0), lCe = u4.Provider;+function uCe() {return (0, I.useContext)(c4);}-function tSe() {+function dCe() {return (0, I.useContext)(u4);}function d4(e) {- var { valueAccessor: t = Qxe } = e, n = s4(e, Yxe), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = s4(n, Xxe), l = eSe(), u = tSe(), d = l || u;- return !d || !d.length ? null : /*#__PURE__*/ I.createElement(t2, { zIndex: s ?? BY.label }, /*#__PURE__*/ I.createElement(xR, { className: "recharts-label-list" }, d.map((e, i) => {- var s = Mz(r) ? t(e, i) : FU(e.payload, r), l = Mz(a) ? {} : { id: `${a}-${i}` };- return /*#__PURE__*/ I.createElement(r4, o4({ key: `label-${i}` }, _R(e), c, l, {+ var { valueAccessor: t = cCe } = e, n = s4(e, aCe), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = s4(n, oCe), l = uCe(), u = dCe(), d = l || u;+ return !d || !d.length ? null : /*#__PURE__*/ I.createElement(t2, { zIndex: s ?? BY.label }, /*#__PURE__*/ I.createElement($R, { className: "recharts-label-list" }, d.map((e, i) => {+ var s = uB(r) ? t(e, i) : TW(e.payload, r), l = uB(a) ? {} : { id: `${a}-${i}` };+ return /*#__PURE__*/ I.createElement(r4, o4({ key: `label-${i}` }, YR(e), c, l, {fill: n.fill ?? e.fill,parentViewBox: e.parentViewBox,value: s,@@ -59966,12 +61353,12 @@ function f4(e) {}//#endregion//#region node_modules/recharts/es6/shape/Polygon.js-var nSe = [+var fCe = ["points","className","baseLinePoints","connectNulls"-], rSe;+], pCe;function p4() {return p4 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {@@ -59981,16 +61368,16 @@ function p4() {return e;}, p4.apply(null, arguments);}-function iSe(e, t) {+function mCe(e, t) {if (e == null) return {};- var n, r, i = aSe(e, t);+ var n, r, i = hCe(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function aSe(e, t) {+function hCe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -59999,10 +61386,10 @@ function aSe(e, t) {}return n;}-function oSe(e, t) {+function gCe(e, t) {return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));}-var m4 = (e) => e != null && e.x === +e.x && e.y === +e.y, sSe = function() {+var m4 = (e) => e != null && e.x === +e.x && e.y === +e.y, _Ce = function() {var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = [[]];e.forEach((e) => {var n = t[t.length - 1];@@ -60013,9 +61400,9 @@ var m4 = (e) => e != null && e.x === +e.x && e.y === +e.y, sSe = function() {var i = t[t.length - 1];return i && i.length <= 0 && (t = t.slice(0, -1)), t;}, h4 = (e, t) => {- var n = sSe(e);+ var n = _Ce(e);t && (n = [n.reduce((e, t) => [...e, ...t], [])]);- var r = n.map((e) => e.reduce((e, t, n) => Sz(rSe ||= oSe([+ var r = n.map((e) => e.reduce((e, t, n) => eB(pCe ||= gCe(["","","",@@ -60023,29 +61410,29 @@ var m4 = (e) => e != null && e.x === +e.x && e.y === +e.y, sSe = function() {""]), e, n === 0 ? "M" : "L", t.x, t.y), "")).join("");return n.length === 1 ? `${r}Z` : r;-}, cSe = (e, t, n) => {+}, vCe = (e, t, n) => {var r = h4(e, n);return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${h4(Array.from(t).reverse(), n).slice(1)}`;}, g4 = (e) => {- var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = iSe(e, nSe);+ var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = mCe(e, fCe);if (!t || !t.length) return null;- var o = Jm("recharts-polygon", n);+ var o = Xm("recharts-polygon", n);if (r && r.length) {- var s = a.stroke && a.stroke !== "none", c = cSe(t, r, i);- return /*#__PURE__*/ I.createElement("g", { className: o }, /*#__PURE__*/ I.createElement("path", p4({}, _R(a), {+ var s = a.stroke && a.stroke !== "none", c = vCe(t, r, i);+ return /*#__PURE__*/ I.createElement("g", { className: o }, /*#__PURE__*/ I.createElement("path", p4({}, YR(a), {fill: c.slice(-1) === "Z" ? a.fill : "none",stroke: "none",d: c- })), s ? /*#__PURE__*/ I.createElement("path", p4({}, _R(a), {+ })), s ? /*#__PURE__*/ I.createElement("path", p4({}, YR(a), {fill: "none",d: h4(t, i)- })) : null, s ? /*#__PURE__*/ I.createElement("path", p4({}, _R(a), {+ })) : null, s ? /*#__PURE__*/ I.createElement("path", p4({}, YR(a), {fill: "none",d: h4(r, i)})) : null);}var l = h4(t, i);- return /*#__PURE__*/ I.createElement("path", p4({}, _R(a), {+ return /*#__PURE__*/ I.createElement("path", p4({}, YR(a), {fill: l.slice(-1) === "Z" ? a.fill : "none",className: o,d: l@@ -60063,8 +61450,8 @@ function _4() {}, _4.apply(null, arguments);}var v4 = (e) => {- var { cx: t, cy: n, r, className: i } = e, a = Jm("recharts-dot", i);- return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ I.createElement("circle", _4({}, hR(e), Hz(e), {+ var { cx: t, cy: n, r, className: i } = e, a = Xm("recharts-dot", i);+ return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ I.createElement("circle", _4({}, qR(e), bB(e), {className: a,cx: t,cy: n,@@ -60084,18 +61471,18 @@ $([R$,b4], (e, t, n) => n.length > 0 ? e.flatMap((e) => n.flatMap((n) => ({- value: FU(e, t.dataKey ?? n.dataKey),+ value: TW(e, t.dataKey ?? n.dataKey),errorDomain: []}))).filter(Boolean) : t?.dataKey == null ? e.map((e) => ({value: e,errorDomain: []})) : e.map((e) => ({- value: FU(e, t.dataKey),+ value: TW(e, t.dataKey),errorDomain: []})));var C4 = () => void 0, w4 = $([R$,- iG,+ JG,x4,S4,PY,@@ -60113,14 +61500,14 @@ var C4 = () => void 0, w4 = $([iX], f1),C4,- iG,+ JG,iX], b1)], x1), T4 = $([w4,z$,C1-], w1), lSe = $([C1, $([+], w1), yCe = $([C1, $([R$,w4,T4,@@ -60133,22 +61520,22 @@ var C4 = () => void 0, w4 = $([}}, D4 = (e, t, n) => {switch (t) {- case "angleAxis": return Hhe(e, n);- case "radiusAxis": return Uhe(e, n);+ case "angleAxis": return Qge(e, n);+ case "radiusAxis": return $ge(e, n);default: throw Error(`Unexpected axis type: ${t}`);}}, O4 = $([$([E4,C1,- lSe,+ yCe,D4], T$)], pX), k4 = $([- iG,+ JG,S4,z$,iX], j1), A4 = $([- iG,+ JG,E4,C1,O4,@@ -60157,7 +61544,7 @@ var C4 = () => void 0, w4 = $([H1,k4,iX-], W1), uSe = $([A4], (e) => {+], W1), bCe = $([A4], (e) => {if (e) {var t = /* @__PURE__ */ new Map();return e.forEach((e) => {@@ -60165,19 +61552,19 @@ var C4 = () => void 0, w4 = $([t.has(n) || t.set(n, e);}), Array.from(t.values());}-}), dSe = $([- iG,+}), xCe = $([+ JG,E4,O4,D4,H1,k4,iX-], K1), fSe = $([(e, t) => A4(e, "angleAxis", t, !1)], (e) => {+], K1), SCe = $([(e, t) => A4(e, "angleAxis", t, !1)], (e) => {if (e) return e.map((e) => e.coordinate);-}), pSe = $([(e, t) => A4(e, "radiusAxis", t, !1)], (e) => {+}), CCe = $([(e, t) => A4(e, "radiusAxis", t, !1)], (e) => {if (e) return e.map((e) => e.coordinate);-}), mSe = [+}), wCe = ["gridType","radialLines","angleAxisId",@@ -60190,16 +61577,16 @@ var C4 = () => void 0, w4 = $(["polarRadius","zIndex"];-function hSe(e, t) {+function TCe(e, t) {if (e == null) return {};- var n, r, i = gSe(e, t);+ var n, r, i = ECe(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function gSe(e, t) {+function ECe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -60231,26 +61618,26 @@ function N4(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? M4(Object(n), !0).forEach(function(t) {- _Se(e, t, n[t]);+ DCe(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : M4(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function _Se(e, t, n) {- return (t = vSe(t)) in e ? Object.defineProperty(e, t, {+function DCe(e, t, n) {+ return (t = OCe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function vSe(e) {- var t = ySe(e, "string");+function OCe(e) {+ var t = kCe(e, "string");return typeof t == "symbol" ? t : t + "";}-function ySe(e, t) {+function kCe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -60260,16 +61647,16 @@ function ySe(e, t) {}return (t === "string" ? String : Number)(e);}-var bSe = (e, t, n, r) => {+var ACe = (e, t, n, r) => {var i = "";return r.forEach((r, a) => {var o = aY(t, n, e, r);i += a ? `L ${o.x},${o.y}` : `M ${o.x},${o.y}`;}), i += "Z", i;-}, xSe = (e) => {+}, jCe = (e) => {var { cx: t, cy: n, innerRadius: r, outerRadius: i, polarAngles: a, radialLines: o } = e;if (!a || !a.length || !o) return null;- var s = N4({ stroke: "#ccc" }, hR(e));+ var s = N4({ stroke: "#ccc" }, qR(e));return /*#__PURE__*/ I.createElement("g", { className: "recharts-polar-grid-angle" }, a.map((e) => {var a = aY(t, n, r, e), o = aY(t, n, i, e);return /*#__PURE__*/ I.createElement("line", j4({ key: `line-${e}` }, s, {@@ -60283,9 +61670,9 @@ var bSe = (e, t, n, r) => {var { cx: t, cy: n, radius: r } = e, i = N4({stroke: "#ccc",fill: "none"- }, hR(e));+ }, qR(e));return /*#__PURE__*/ I.createElement("circle", j4({}, i, {- className: Jm("recharts-polar-grid-concentric-circle", e.className),+ className: Xm("recharts-polar-grid-concentric-circle", e.className),cx: t,cy: n,r@@ -60294,12 +61681,12 @@ var bSe = (e, t, n, r) => {var { radius: t } = e, n = N4({stroke: "#ccc",fill: "none"- }, hR(e));+ }, qR(e));return /*#__PURE__*/ I.createElement("path", j4({}, n, {- className: Jm("recharts-polar-grid-concentric-polygon", e.className),- d: bSe(t, e.cx, e.cy, e.polarAngles)+ className: Xm("recharts-polar-grid-concentric-polygon", e.className),+ d: ACe(t, e.cx, e.cy, e.polarAngles)}));-}, SSe = (e) => {+}, MCe = (e) => {var { polarRadius: t, gridType: n } = e;if (!t || !t.length) return null;var r = Math.max(...t), i = e.fill && e.fill !== "none";@@ -60313,14 +61700,14 @@ var bSe = (e, t, n, r) => {radius: t}));}));-}, CSe = {+}, NCe = {angleAxisId: 0,radiusAxisId: 0,gridType: "polygon",radialLines: !0,zIndex: BY.grid}, I4 = (e) => {- var t = Gz(e, CSe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = hSe(t, mSe), m = Q(rX), h = Q((e) => fSe(e, i)), g = Q((e) => pSe(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;+ var t = CB(e, NCe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = TCe(t, wCe), m = Q(rX), h = Q((e) => SCe(e, i)), g = Q((e) => CCe(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;if (_ == null || v == null) return null;var y = N4({cx: m?.cx ?? o ?? 0,@@ -60331,13 +61718,13 @@ var bSe = (e, t, n, r) => {polarRadius: v,zIndex: f}, p), { outerRadius: b } = y;- return b <= 0 ? null : /*#__PURE__*/ I.createElement(t2, { zIndex: y.zIndex }, /*#__PURE__*/ I.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ I.createElement(SSe, j4({+ return b <= 0 ? null : /*#__PURE__*/ I.createElement(t2, { zIndex: y.zIndex }, /*#__PURE__*/ I.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ I.createElement(MCe, j4({gridType: n,radialLines: r}, y, {polarAngles: _,polarRadius: v- })), /*#__PURE__*/ I.createElement(xSe, j4({+ })), /*#__PURE__*/ I.createElement(jCe, j4({gridType: n,radialLines: r}, y, {@@ -60353,11 +61740,11 @@ function L4(e) {}//#endregion//#region node_modules/es-toolkit/dist/compat/math/maxBy.mjs-function wSe(e, t = Xz) {+function PCe(e, t = OB) {if (e == null) return;let n = L4(e);if (n.length === 0) return;- let r = mB(t), i, a;+ let r = KB(t), i, a;for (let e = 0; e < n.length; e++) {let t = n[e], o = r(t, e, n);o == null || Number.isNaN(o) || typeof o == "symbol" || (a === void 0 || o > a) && (a = o, i = t);@@ -60366,11 +61753,11 @@ function wSe(e, t = Xz) {}//#endregion//#region node_modules/es-toolkit/dist/compat/math/minBy.mjs-function TSe(e, t = Xz) {+function FCe(e, t = OB) {if (e == null) return;let n = L4(e);if (n.length === 0) return;- let r = mB(t), i, a;+ let r = KB(t), i, a;for (let e = 0; e < n.length; e++) {let t = n[e], o = r(t, e, n);o == null || Number.isNaN(o) || typeof o == "symbol" || (a === void 0 || o < a) && (a = o, i = t);@@ -60379,7 +61766,7 @@ function TSe(e, t = Xz) {}//#endregion//#region node_modules/recharts/es6/state/polarAxisSlice.js-var R4 = NH({+var R4 = CU({name: "polarAxis",initialState: {radiusAxis: {},@@ -60387,19 +61774,19 @@ var R4 = NH({},reducers: {addRadiusAxis(e, t) {- e.radiusAxis[t.payload.id] = oK(t.payload);+ e.radiusAxis[t.payload.id] = XK(t.payload);},removeRadiusAxis(e, t) {delete e.radiusAxis[t.payload.id];},addAngleAxis(e, t) {- e.angleAxis[t.payload.id] = oK(t.payload);+ e.angleAxis[t.payload.id] = XK(t.payload);},removeAngleAxis(e, t) {delete e.angleAxis[t.payload.id];}}-}), { addRadiusAxis: ESe, removeRadiusAxis: DSe, addAngleAxis: OSe, removeAngleAxis: kSe } = R4.actions, ASe = R4.reducer;+}), { addRadiusAxis: ICe, removeRadiusAxis: LCe, addAngleAxis: RCe, removeAngleAxis: zCe } = R4.actions, BCe = R4.reducer;//#endregion//#region node_modules/recharts/es6/util/getClassNameFromUnknown.jsfunction z4(e) {@@ -60407,12 +61794,12 @@ function z4(e) {}//#endregion//#region node_modules/recharts/es6/polar/PolarRadiusAxis.js-var jSe = ["type"], MSe = [+var VCe = ["type"], HCe = ["cx","cy","angle","axisLine"-], NSe = [+], UCe = ["angle","tickFormatter","stroke",@@ -60441,26 +61828,26 @@ function H4(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? V4(Object(n), !0).forEach(function(t) {- PSe(e, t, n[t]);+ WCe(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : V4(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function PSe(e, t, n) {- return (t = FSe(t)) in e ? Object.defineProperty(e, t, {+function WCe(e, t, n) {+ return (t = GCe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function FSe(e) {- var t = ISe(e, "string");+function GCe(e) {+ var t = KCe(e, "string");return typeof t == "symbol" ? t : t + "";}-function ISe(e, t) {+function KCe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -60472,14 +61859,14 @@ function ISe(e, t) {}function U4(e, t) {if (e == null) return {};- var n, r, i = LSe(e, t);+ var n, r, i = qCe(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function LSe(e, t) {+function qCe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -60488,20 +61875,20 @@ function LSe(e, t) {}return n;}-var RSe = "radiusAxis";-function zSe(e) {- var t = vB(), n = cG(), r = (0, I.useMemo)(() => {- var { type: t } = e, r = U4(e, jSe), i = WY(n, "radiusAxis", t);+var JCe = "radiusAxis";+function YCe(e) {+ var t = XB(), n = QG(), r = (0, I.useMemo)(() => {+ var { type: t } = e, r = U4(e, VCe), i = WY(n, "radiusAxis", t);if (i != null) return H4(H4({}, r), {}, { type: i });}, [e, n]);- return (0, I.useEffect)(() => r == null ? Fz : (t(ESe(r)), () => {- t(DSe(r));+ return (0, I.useEffect)(() => r == null ? pB : (t(ICe(r)), () => {+ t(LCe(r));}), [t, r]), null;}-var BSe = (e, t, n, r) => {+var XCe = (e, t, n, r) => {var { coordinate: i } = e;return aY(n, r, i, t);-}, VSe = (e) => {+}, ZCe = (e) => {var t;switch (e) {case "left":@@ -60513,49 +61900,49 @@ var BSe = (e, t, n, r) => {default: t = "middle";}return t;-}, HSe = (e, t, n, r) => {- var i = wSe(r, (e) => e.coordinate || 0);+}, QCe = (e, t, n, r) => {+ var i = PCe(r, (e) => e.coordinate || 0);return {cx: t,cy: n,startAngle: e,endAngle: e,- innerRadius: TSe(r, (e) => e.coordinate || 0)?.coordinate || 0,+ innerRadius: FCe(r, (e) => e.coordinate || 0)?.coordinate || 0,outerRadius: i?.coordinate || 0,clockWise: !1};-}, USe = (e, t) => {- var { cx: n, cy: r, angle: i, axisLine: a } = e, o = U4(e, MSe), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = aY(n, r, s[0], i), l = aY(n, r, s[1], i), u = H4(H4(H4({}, hR(o)), {}, { fill: "none" }, hR(a)), {}, {+}, $Ce = (e, t) => {+ var { cx: n, cy: r, angle: i, axisLine: a } = e, o = U4(e, HCe), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = aY(n, r, s[0], i), l = aY(n, r, s[1], i), u = H4(H4(H4({}, qR(o)), {}, { fill: "none" }, qR(a)), {}, {x1: c.x,y1: c.y,x2: l.x,y2: l.y});return /*#__PURE__*/ I.createElement("line", B4({ className: "recharts-polar-radius-axis-line" }, u));-}, WSe = (e, t, n) => /*#__PURE__*/ I.isValidElement(e) ? /*#__PURE__*/ I.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ I.createElement(U2, B4({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), GSe = (e, t) => {- var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = U4(e, NSe), s = VSe(e.orientation), c = hR(o), l = gR(a), u = t.map((t, o) => {- var u = BSe(t, e.angle, e.cx, e.cy), d = H4(H4(H4(H4({+}, ewe = (e, t, n) => /*#__PURE__*/ I.isValidElement(e) ? /*#__PURE__*/ I.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ I.createElement(U2, B4({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), twe = (e, t) => {+ var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = U4(e, UCe), s = ZCe(e.orientation), c = qR(o), l = JR(a), u = t.map((t, o) => {+ var u = XCe(t, e.angle, e.cx, e.cy), d = H4(H4(H4(H4({textAnchor: s,transform: `rotate(${90 - n}, ${u.x}, ${u.y})`}, c), {}, {stroke: "none",fill: i}, l), {}, { index: o }, u), {}, { payload: t });- return /*#__PURE__*/ I.createElement(xR, B4({- className: Jm("recharts-polar-radius-axis-tick", z4(a)),+ return /*#__PURE__*/ I.createElement($R, B4({+ className: Xm("recharts-polar-radius-axis-tick", z4(a)),key: `tick-${t.coordinate}`- }, Uz(e, t, o)), WSe(a, d, r ? r(t.value, o) : t.value));+ }, xB(e, t, o)), ewe(a, d, r ? r(t.value, o) : t.value));});- return /*#__PURE__*/ I.createElement(xR, { className: "recharts-polar-radius-axis-ticks" }, u);-}, KSe = (e) => {+ return /*#__PURE__*/ I.createElement($R, { className: "recharts-polar-radius-axis-ticks" }, u);+}, nwe = (e) => {var { radiusAxisId: t } = e, n = Q(rX), r = Q((e) => O4(e, "radiusAxis", t)), i = Q((e) => A4(e, "radiusAxis", t, !1));if (n == null || !i || !i.length || r == null) return null;var a = H4(H4({}, e), {}, { scale: r }, n), { tick: o, axisLine: s } = a;- return /*#__PURE__*/ I.createElement(t2, { zIndex: a.zIndex }, /*#__PURE__*/ I.createElement(xR, { className: Jm("recharts-polar-radius-axis", RSe, a.className) }, s && USe(a, i), o && GSe(a, i), /*#__PURE__*/ I.createElement(Vxe, HSe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ I.createElement(Jxe, { label: a.label }), a.children)));+ return /*#__PURE__*/ I.createElement(t2, { zIndex: a.zIndex }, /*#__PURE__*/ I.createElement($R, { className: Xm("recharts-polar-radius-axis", JCe, a.className) }, s && $Ce(a, i), o && twe(a, i), /*#__PURE__*/ I.createElement(ZSe, QCe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ I.createElement(iCe, { label: a.label }), a.children)));};function W4(e) {- var t = Gz(e, HY);- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(zSe, {+ var t = CB(e, HY);+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(YCe, {domain: t.domain,id: t.radiusAxisId,scale: t.scale,@@ -60572,12 +61959,12 @@ function W4(e) {ticks: t.ticks,tickCount: t.tickCount,tick: t.tick- }), /*#__PURE__*/ I.createElement(KSe, t));+ }), /*#__PURE__*/ I.createElement(nwe, t));}W4.displayName = "PolarRadiusAxis";//#endregion//#region node_modules/recharts/es6/polar/PolarAngleAxis.js-var qSe = ["children", "type"], JSe = ["ref"];+var rwe = ["children", "type"], iwe = ["ref"];function G4() {return G4 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {@@ -60601,26 +61988,26 @@ function q4(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? K4(Object(n), !0).forEach(function(t) {- YSe(e, t, n[t]);+ awe(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : K4(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function YSe(e, t, n) {- return (t = XSe(t)) in e ? Object.defineProperty(e, t, {+function awe(e, t, n) {+ return (t = owe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function XSe(e) {- var t = ZSe(e, "string");+function owe(e) {+ var t = swe(e, "string");return typeof t == "symbol" ? t : t + "";}-function ZSe(e, t) {+function swe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -60632,14 +62019,14 @@ function ZSe(e, t) {}function J4(e, t) {if (e == null) return {};- var n, r, i = QSe(e, t);+ var n, r, i = cwe(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function QSe(e, t) {+function cwe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -60648,17 +62035,17 @@ function QSe(e, t) {}return n;}-var Y4 = 1e-5, $Se = Math.cos(iY(45)), eCe = "angleAxis";-function tCe(e) {- var t = vB(), n = cG(), r = (0, I.useMemo)(() => {- var { children: t, type: r } = e, i = J4(e, qSe), a = WY(n, "angleAxis", r);+var Y4 = 1e-5, lwe = Math.cos(iY(45)), uwe = "angleAxis";+function dwe(e) {+ var t = XB(), n = QG(), r = (0, I.useMemo)(() => {+ var { children: t, type: r } = e, i = J4(e, rwe), a = WY(n, "angleAxis", r);if (a != null) return q4(q4({}, i), {}, { type: a });}, [e, n]), i = r === Q((e) => YY(e, r?.id));- return (0, I.useEffect)(() => r == null ? Fz : (t(OSe(r)), () => {- t(kSe(r));+ return (0, I.useEffect)(() => r == null ? pB : (t(RCe(r)), () => {+ t(zCe(r));}), [t, r]), i ? e.children : null;}-var nCe = (e, t) => {+var fwe = (e, t) => {var { cx: n, cy: r, radius: i, orientation: a, tickSize: o } = t, s = o || 8, c = aY(n, r, i, e.coordinate), l = aY(n, r, i + (a === "inner" ? -1 : 1) * s, e.coordinate);return {x1: c.x,@@ -60666,16 +62053,16 @@ var nCe = (e, t) => {x2: l.x,y2: l.y};-}, rCe = (e, t) => {+}, pwe = (e, t) => {var n = Math.cos(iY(-e.coordinate));return n > Y4 ? t === "outer" ? "start" : "end" : n < -Y4 ? t === "outer" ? "end" : "start" : "middle";-}, iCe = (e) => {+}, mwe = (e) => {var t = Math.cos(iY(-e.coordinate)), n = Math.sin(iY(-e.coordinate));- return Math.abs(t) <= $Se ? n > 0 ? "start" : "end" : "middle";-}, aCe = (e) => {+ return Math.abs(t) <= lwe ? n > 0 ? "start" : "end" : "middle";+}, hwe = (e) => {var { cx: t, cy: n, radius: r, axisLineType: i, axisLine: a, ticks: o } = e;if (!a) return null;- var s = q4(q4({}, hR(e)), {}, { fill: "none" }, hR(a));+ var s = q4(q4({}, qR(e)), {}, { fill: "none" }, qR(a));if (i === "circle") return /*#__PURE__*/ I.createElement(v4, G4({ className: "recharts-polar-angle-axis-line" }, s, {cx: t,cy: n,@@ -60683,12 +62070,12 @@ var nCe = (e, t) => {}));var c = o.map((e) => aY(t, n, r, e.coordinate));return /*#__PURE__*/ I.createElement(g4, G4({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));-}, oCe = (e) => {+}, gwe = (e) => {var { tick: t, tickProps: n, value: r } = e;return t ? /*#__PURE__*/ I.isValidElement(t) ? /*#__PURE__*/ I.cloneElement(t, n) : typeof t == "function" ? t(n) : /*#__PURE__*/ I.createElement(U2, G4({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;-}, sCe = (e) => {- var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = hR(e), { ref: s } = o, c = J4(o, JSe), l = gR(t), u = q4(q4({}, c), {}, { fill: "none" }, hR(n)), d = a.map((a, o) => {- var s = nCe(a, e), d = rCe(a, e.orientation), f = iCe(a), p = q4(q4(q4({}, c), {}, {+}, _we = (e) => {+ var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = qR(e), { ref: s } = o, c = J4(o, iwe), l = JR(t), u = q4(q4({}, c), {}, { fill: "none" }, qR(n)), d = a.map((a, o) => {+ var s = fwe(a, e), d = pwe(a, e.orientation), f = mwe(a), p = q4(q4(q4({}, c), {}, {textAnchor: d,verticalAnchor: f,stroke: "none",@@ -60699,28 +62086,28 @@ var nCe = (e, t) => {x: s.x2,y: s.y2});- return /*#__PURE__*/ I.createElement(xR, G4({- className: Jm("recharts-polar-angle-axis-tick", z4(t)),+ return /*#__PURE__*/ I.createElement($R, G4({+ className: Xm("recharts-polar-angle-axis-tick", z4(t)),key: `tick-${a.coordinate}`- }, Uz(e, a, o)), n && /*#__PURE__*/ I.createElement("line", G4({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ I.createElement(oCe, {+ }, xB(e, a, o)), n && /*#__PURE__*/ I.createElement("line", G4({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ I.createElement(gwe, {tick: t,tickProps: p,value: r ? r(a.value, o) : a.value}));});- return /*#__PURE__*/ I.createElement(xR, { className: "recharts-polar-angle-axis-ticks" }, d);-}, cCe = (e) => {- var { angleAxisId: t } = e, n = Q(rX), r = Q((e) => O4(e, "angleAxis", t)), i = wW(), a = Q((e) => uSe(e, "angleAxis", t, i));+ return /*#__PURE__*/ I.createElement($R, { className: "recharts-polar-angle-axis-ticks" }, d);+}, vwe = (e) => {+ var { angleAxisId: t } = e, n = Q(rX), r = Q((e) => O4(e, "angleAxis", t)), i = mG(), a = Q((e) => bCe(e, "angleAxis", t, i));if (n == null || !a || !a.length || r == null) return null;var o = q4(q4(q4({}, e), {}, { scale: r }, n), {}, {radius: n.outerRadius,ticks: a});- return /*#__PURE__*/ I.createElement(t2, { zIndex: o.zIndex }, /*#__PURE__*/ I.createElement(xR, { className: Jm("recharts-polar-angle-axis", eCe, o.className) }, /*#__PURE__*/ I.createElement(aCe, o), /*#__PURE__*/ I.createElement(sCe, o)));+ return /*#__PURE__*/ I.createElement(t2, { zIndex: o.zIndex }, /*#__PURE__*/ I.createElement($R, { className: Xm("recharts-polar-angle-axis", uwe, o.className) }, /*#__PURE__*/ I.createElement(hwe, o), /*#__PURE__*/ I.createElement(_we, o)));};function X4(e) {- var t = Gz(e, VY);- return /*#__PURE__*/ I.createElement(tCe, {+ var t = CB(e, VY);+ return /*#__PURE__*/ I.createElement(dwe, {id: t.angleAxisId,scale: t.scale,type: t.type,@@ -60737,12 +62124,12 @@ function X4(e) {ticks: t.ticks,tick: t.tick,domain: t.domain- }, /*#__PURE__*/ I.createElement(cCe, t));+ }, /*#__PURE__*/ I.createElement(vwe, t));}X4.displayName = "PolarAngleAxis";//#endregion//#region node_modules/react-is/cjs/react-is.production.js-var lCe = /* @__PURE__ */ F(((e) => {+var ywe = /* @__PURE__ */ F(((e) => {var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.consumer"), s = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), p = Symbol.for("react.view_transition");function m(e) {if (typeof e == "object" && e) {@@ -60771,26 +62158,26 @@ var lCe = /* @__PURE__ */ F(((e) => {e.isFragment = function(e) {return m(e) === r;};-})), uCe = (/* @__PURE__ */ F(((e, t) => {- t.exports = lCe();+})), bwe = (/* @__PURE__ */ F(((e, t) => {+ t.exports = ywe();})))(), Z4 = (e) => typeof e == "string" ? e : e ? e.displayName || e.name || "Component" : "", Q4 = null, $4 = null, e3 = (e) => {if (e === Q4 && Array.isArray($4)) return $4;var t = [];return I.Children.forEach(e, (e) => {- Mz(e) || ((0, uCe.isFragment)(e) ? t = t.concat(e3(e.props.children)) : t.push(e));+ uB(e) || ((0, bwe.isFragment)(e) ? t = t.concat(e3(e.props.children)) : t.push(e));}), $4 = t, Q4 = e, t;};function t3(e, t) {var n = [], r = [];return r = Array.isArray(t) ? t.map((e) => Z4(e)) : [Z4(t)], e3(e).forEach((e) => {- var t = bz(e, "type.displayName") || bz(e, "type.name");+ var t = Qz(e, "type.displayName") || Qz(e, "type.name");t && r.indexOf(t) !== -1 && n.push(e);}), n;}var n3 = (e) => e && typeof e == "object" && "clipDot" in e ? !!e.clipDot : !0;//#endregion//#region node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs-function dCe(e) {+function xwe(e) {if (typeof e != "object" || !e) return !1;if (Object.getPrototypeOf(e) === null) return !0;if (Object.prototype.toString.call(e) !== "[object Object]") {@@ -60803,7 +62190,7 @@ function dCe(e) {}//#endregion//#region node_modules/recharts/es6/shape/Trapezoid.js-var fCe, pCe, mCe, hCe, gCe;+var Swe, Cwe, wwe, Twe, Ewe;function r3(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {@@ -60818,26 +62205,26 @@ function i3(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? r3(Object(n), !0).forEach(function(t) {- _Ce(e, t, n[t]);+ Dwe(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : r3(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function _Ce(e, t, n) {- return (t = vCe(t)) in e ? Object.defineProperty(e, t, {+function Dwe(e, t, n) {+ return (t = Owe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function vCe(e) {- var t = yCe(e, "string");+function Owe(e) {+ var t = kwe(e, "string");return typeof t == "symbol" ? t : t + "";}-function yCe(e, t) {+function kwe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -60860,29 +62247,29 @@ function o3(e, t) {return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));}var s3 = (e, t, n, r, i) => {- var a = n - r, o = Sz(fCe ||= o3([+ var a = n - r, o = eB(Swe ||= o3(["M ",",",""]), e, t);- return o += Sz(pCe ||= o3([+ return o += eB(Cwe ||= o3(["L ",",",""- ]), e + n, t), o += Sz(mCe ||= o3([+ ]), e + n, t), o += eB(wwe ||= o3(["L ",",",""- ]), e + n - a / 2, t + i), o += Sz(hCe ||= o3([+ ]), e + n - a / 2, t + i), o += eB(Twe ||= o3(["L ",",",""- ]), e + n - a / 2 - r, t + i), o += Sz(gCe ||= o3([+ ]), e + n - a / 2 - r, t + i), o += eB(Ewe ||= o3(["L ",","," Z"]), e, t), o;-}, bCe = {+}, Awe = {x: 0,y: 0,upperWidth: 0,@@ -60892,21 +62279,21 @@ var s3 = (e, t, n, r, i) => {animationBegin: 0,animationDuration: 1500,animationEasing: "ease"-}, xCe = (e) => {- var t = Gz(e, bCe), { x: n, y: r, upperWidth: i, lowerWidth: a, height: o, className: s } = t, { animationEasing: c, animationDuration: l, animationBegin: u, isUpdateAnimationActive: d } = t, f = (0, I.useRef)(null), [p, m] = (0, I.useState)(-1), h = (0, I.useRef)(i), g = (0, I.useRef)(a), _ = (0, I.useRef)(o), v = (0, I.useRef)(n), y = (0, I.useRef)(r), b = IJ(e, "trapezoid-");+}, jwe = (e) => {+ var t = CB(e, Awe), { x: n, y: r, upperWidth: i, lowerWidth: a, height: o, className: s } = t, { animationEasing: c, animationDuration: l, animationBegin: u, isUpdateAnimationActive: d } = t, f = (0, I.useRef)(null), [p, m] = (0, I.useState)(-1), h = (0, I.useRef)(i), g = (0, I.useRef)(a), _ = (0, I.useRef)(o), v = (0, I.useRef)(n), y = (0, I.useRef)(r), b = KJ(e, "trapezoid-");if ((0, I.useEffect)(() => {if (f.current && f.current.getTotalLength) try {var e = f.current.getTotalLength();e && m(e);} catch {}}, []), n !== +n || r !== +r || i !== +i || a !== +a || o !== +o || i === 0 && a === 0 || o === 0) return null;- var x = Jm("recharts-trapezoid", s);- if (!d) return /*#__PURE__*/ I.createElement("g", null, /*#__PURE__*/ I.createElement("path", a3({}, _R(t), {+ var x = Xm("recharts-trapezoid", s);+ if (!d) return /*#__PURE__*/ I.createElement("g", null, /*#__PURE__*/ I.createElement("path", a3({}, YR(t), {className: x,d: s3(n, r, i, a, o)})));- var S = h.current, C = g.current, w = _.current, T = v.current, E = y.current, D = `0px ${p === -1 ? 1 : p}px`, O = `${p}px ${p}px`, k = rJ(["strokeDasharray"], l, c);- return /*#__PURE__*/ I.createElement(FJ, {+ var S = h.current, C = g.current, w = _.current, T = v.current, E = y.current, D = `0px ${p === -1 ? 1 : p}px`, O = `${p}px ${p}px`, k = MJ(["strokeDasharray"], l, c);+ return /*#__PURE__*/ I.createElement(GJ, {animationId: b,key: b,canBegin: p > 0,@@ -60915,35 +62302,35 @@ var s3 = (e, t, n, r, i) => {isActive: d,begin: u}, (e) => {- var s = Az(S, i, e), c = Az(C, a, e), l = Az(w, o, e), u = Az(T, n, e), d = Az(E, r, e);+ var s = cB(S, i, e), c = cB(C, a, e), l = cB(w, o, e), u = cB(T, n, e), d = cB(E, r, e);f.current && (h.current = s, g.current = c, _.current = l, v.current = u, y.current = d);var p = e > 0 ? {transition: k,strokeDasharray: O} : { strokeDasharray: D };- return /*#__PURE__*/ I.createElement("path", a3({}, _R(t), {+ return /*#__PURE__*/ I.createElement("path", a3({}, YR(t), {className: x,d: s3(u, d, s, c, l),ref: f,style: i3(i3({}, p), t.style)}));});-}, SCe = [+}, Mwe = ["option","shapeType","activeClassName","inActiveClassName"];-function CCe(e, t) {+function Nwe(e, t) {if (e == null) return {};- var n, r, i = wCe(e, t);+ var n, r, i = Pwe(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function wCe(e, t) {+function Pwe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -60966,26 +62353,26 @@ function l3(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? c3(Object(n), !0).forEach(function(t) {- TCe(e, t, n[t]);+ Fwe(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : c3(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function TCe(e, t, n) {- return (t = ECe(t)) in e ? Object.defineProperty(e, t, {+function Fwe(e, t, n) {+ return (t = Iwe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function ECe(e) {- var t = DCe(e, "string");+function Iwe(e) {+ var t = Lwe(e, "string");return typeof t == "symbol" ? t : t + "";}-function DCe(e, t) {+function Lwe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -60995,34 +62382,34 @@ function DCe(e, t) {}return (t === "string" ? String : Number)(e);}-function OCe(e, t) {+function Rwe(e, t) {return l3(l3({}, t), e);}-function kCe(e, t) {+function zwe(e, t) {return e === "symbols";}function u3(e) {var { shapeType: t, elementProps: n } = e;switch (t) {case "rectangle": return /*#__PURE__*/ I.createElement(eY, n);- case "trapezoid": return /*#__PURE__*/ I.createElement(xCe, n);+ case "trapezoid": return /*#__PURE__*/ I.createElement(jwe, n);case "sector": return /*#__PURE__*/ I.createElement(dY, n);case "symbols":- if (kCe(t, n)) return /*#__PURE__*/ I.createElement(Bz, n);+ if (zwe(t, n)) return /*#__PURE__*/ I.createElement(vB, n);break;- case "curve": return /*#__PURE__*/ I.createElement(Rq, n);+ case "curve": return /*#__PURE__*/ I.createElement(DJ, n);default: return null;}}-function ACe(e) {+function Bwe(e) {return /*#__PURE__*/ (0, I.isValidElement)(e) ? e.props : e;}function d3(e) {- var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = CCe(e, SCe), o;- if (/*#__PURE__*/ (0, I.isValidElement)(t)) o = /*#__PURE__*/ (0, I.cloneElement)(t, l3(l3({}, a), ACe(t)));+ var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = Nwe(e, Mwe), o;+ if (/*#__PURE__*/ (0, I.isValidElement)(t)) o = /*#__PURE__*/ (0, I.cloneElement)(t, l3(l3({}, a), Bwe(t)));else if (typeof t == "function") o = t(a, a.index);- else if (dCe(t) && typeof t != "boolean") {- var s = OCe(t, a);+ else if (xwe(t) && typeof t != "boolean") {+ var s = Rwe(t, a);o = /*#__PURE__*/ I.createElement(u3, {shapeType: n,elementProps: s@@ -61034,12 +62421,12 @@ function d3(e) {elementProps: c});}- return a.isActive ? /*#__PURE__*/ I.createElement(xR, { className: r }, o) : /*#__PURE__*/ I.createElement(xR, { className: i }, o);+ return a.isActive ? /*#__PURE__*/ I.createElement($R, { className: r }, o) : /*#__PURE__*/ I.createElement($R, { className: i }, o);}//#endregion//#region node_modules/recharts/es6/context/tooltipContext.jsvar f3 = (e, t, n) => {- var r = vB();+ var r = XB();return (i, a) => (o) => {e?.(i, a, o), r(n0({activeIndex: String(a),@@ -61049,14 +62436,14 @@ var f3 = (e, t, n) => {}));};}, p3 = (e) => {- var t = vB();+ var t = XB();return (n, r) => (i) => {- e?.(n, r, i), t(hye());+ e?.(n, r, i), t(Tbe());};}, m3 = (e, t, n) => {- var r = vB();+ var r = XB();return (i, a) => (o) => {- e?.(i, a, o), r(gye({+ e?.(i, a, o), r(Ebe({activeIndex: String(a),activeDataKey: t,activeCoordinate: i.tooltipPosition,@@ -61067,9 +62454,9 @@ var f3 = (e, t, n) => {//#endregion//#region node_modules/recharts/es6/state/SetTooltipEntrySettings.jsfunction h3(e) {- var { tooltipEntrySettings: t } = e, n = vB(), r = wW(), i = (0, I.useRef)(null);+ var { tooltipEntrySettings: t } = e, n = XB(), r = mG(), i = (0, I.useRef)(null);return (0, I.useLayoutEffect)(() => {- r || (i.current === null ? n(dye(t)) : i.current !== t && n(fye({+ r || (i.current === null ? n(xbe(t)) : i.current !== t && n(Sbe({prev: i.current,next: t})), i.current = t);@@ -61078,15 +62465,15 @@ function h3(e) {n,r]), (0, I.useLayoutEffect)(() => () => {- i.current &&= (n(pye(i.current)), null);+ i.current &&= (n(Cbe(i.current)), null);}, [n]), null;}//#endregion//#region node_modules/recharts/es6/state/SetLegendPayload.jsfunction g3(e) {- var { legendPayload: t } = e, n = vB(), r = wW(), i = (0, I.useRef)(null);+ var { legendPayload: t } = e, n = XB(), r = mG(), i = (0, I.useRef)(null);return (0, I.useLayoutEffect)(() => {- r || (i.current === null ? n(uK(t)) : i.current !== t && n(dK({+ r || (i.current === null ? n(eq(t)) : i.current !== t && n(tq({prev: i.current,next: t})), i.current = t);@@ -61095,13 +62482,13 @@ function g3(e) {r,t]), (0, I.useLayoutEffect)(() => () => {- i.current &&= (n(fK(i.current)), null);+ i.current &&= (n(nq(i.current)), null);}, [n]), null;}function _3(e) {- var { legendPayload: t } = e, n = vB(), r = Q(iG), i = (0, I.useRef)(null);+ var { legendPayload: t } = e, n = XB(), r = Q(JG), i = (0, I.useRef)(null);return (0, I.useLayoutEffect)(() => {- (r === "centric" || r === "radial") && (i.current === null ? n(uK(t)) : i.current !== t && n(dK({+ (r === "centric" || r === "radial") && (i.current === null ? n(eq(t)) : i.current !== t && n(tq({prev: i.current,next: t})), i.current = t);@@ -61110,27 +62497,27 @@ function _3(e) {r,t]), (0, I.useLayoutEffect)(() => () => {- i.current &&= (n(fK(i.current)), null);+ i.current &&= (n(nq(i.current)), null);}, [n]), null;}//#endregion//#region node_modules/recharts/es6/util/useId.js-var jCe = I.useId ?? (() => {- var [e] = I.useState(() => Dz("uid-"));+var Vwe = I.useId ?? (() => {+ var [e] = I.useState(() => aB("uid-"));return e;});//#endregion//#region node_modules/recharts/es6/util/useUniqueId.js-function MCe(e, t) {- var n = jCe();+function Hwe(e, t) {+ var n = Vwe();return t || (e ? `${e}-${n}` : n);}//#endregion//#region node_modules/recharts/es6/context/RegisterGraphicalItemId.js-var NCe = /*#__PURE__*/ (0, I.createContext)(void 0), v3 = (e) => {- var { id: t, type: n, children: r } = e, i = MCe(`recharts-${n}`, t);- return /*#__PURE__*/ I.createElement(NCe.Provider, { value: i }, r(i));-}, y3 = NH({+var Uwe = /*#__PURE__*/ (0, I.createContext)(void 0), v3 = (e) => {+ var { id: t, type: n, children: r } = e, i = Hwe(`recharts-${n}`, t);+ return /*#__PURE__*/ I.createElement(Uwe.Provider, { value: i }, r(i));+}, y3 = CU({name: "graphicalItems",initialState: {cartesianItems: [],@@ -61139,79 +62526,79 @@ var NCe = /*#__PURE__*/ (0, I.createContext)(void 0), v3 = (e) => {reducers: {addCartesianGraphicalItem: {reducer(e, t) {- e.cartesianItems.push(oK(t.payload));+ e.cartesianItems.push(XK(t.payload));},- prepare: vH()+ prepare: cU()},replaceCartesianGraphicalItem: {reducer(e, t) {- var { prev: n, next: r } = t.payload, i = iH(e).cartesianItems.indexOf(oK(n));- i > -1 && (e.cartesianItems[i] = oK(r));+ var { prev: n, next: r } = t.payload, i = JH(e).cartesianItems.indexOf(XK(n));+ i > -1 && (e.cartesianItems[i] = XK(r));},- prepare: vH()+ prepare: cU()},removeCartesianGraphicalItem: {reducer(e, t) {- var n = iH(e).cartesianItems.indexOf(oK(t.payload));+ var n = JH(e).cartesianItems.indexOf(XK(t.payload));n > -1 && e.cartesianItems.splice(n, 1);},- prepare: vH()+ prepare: cU()},addPolarGraphicalItem: {reducer(e, t) {- e.polarItems.push(oK(t.payload));+ e.polarItems.push(XK(t.payload));},- prepare: vH()+ prepare: cU()},removePolarGraphicalItem: {reducer(e, t) {- var n = iH(e).polarItems.indexOf(oK(t.payload));+ var n = JH(e).polarItems.indexOf(XK(t.payload));n > -1 && e.polarItems.splice(n, 1);},- prepare: vH()+ prepare: cU()},replacePolarGraphicalItem: {reducer(e, t) {- var { prev: n, next: r } = t.payload, i = iH(e).polarItems.indexOf(oK(n));- i > -1 && (e.polarItems[i] = oK(r));+ var { prev: n, next: r } = t.payload, i = JH(e).polarItems.indexOf(XK(n));+ i > -1 && (e.polarItems[i] = XK(r));},- prepare: vH()+ prepare: cU()}}-}), { addCartesianGraphicalItem: PCe, replaceCartesianGraphicalItem: FCe, removeCartesianGraphicalItem: ICe, addPolarGraphicalItem: LCe, removePolarGraphicalItem: RCe, replacePolarGraphicalItem: zCe } = y3.actions, BCe = y3.reducer, b3 = /*#__PURE__*/ (0, I.memo)((e) => {- var t = vB(), n = (0, I.useRef)(null);+}), { addCartesianGraphicalItem: Wwe, replaceCartesianGraphicalItem: Gwe, removeCartesianGraphicalItem: Kwe, addPolarGraphicalItem: qwe, removePolarGraphicalItem: Jwe, replacePolarGraphicalItem: Ywe } = y3.actions, Xwe = y3.reducer, b3 = /*#__PURE__*/ (0, I.memo)((e) => {+ var t = XB(), n = (0, I.useRef)(null);return (0, I.useLayoutEffect)(() => {- n.current === null ? t(PCe(e)) : n.current !== e && t(FCe({+ n.current === null ? t(Wwe(e)) : n.current !== e && t(Gwe({prev: n.current,next: e})), n.current = e;}, [t, e]), (0, I.useLayoutEffect)(() => () => {- n.current &&= (t(ICe(n.current)), null);+ n.current &&= (t(Kwe(n.current)), null);}, [t]), null;}), x3 = /*#__PURE__*/ (0, I.memo)((e) => {- var t = vB(), n = (0, I.useRef)(null);+ var t = XB(), n = (0, I.useRef)(null);return (0, I.useLayoutEffect)(() => {- n.current === null ? t(LCe(e)) : n.current !== e && t(zCe({+ n.current === null ? t(qwe(e)) : n.current !== e && t(Ywe({prev: n.current,next: e})), n.current = e;}, [t, e]), (0, I.useLayoutEffect)(() => () => {- n.current &&= (t(RCe(n.current)), null);+ n.current &&= (t(Jwe(n.current)), null);}, [t]), null;});//#endregion//#region node_modules/es-toolkit/dist/array/last.mjs-function VCe(e) {+function Zwe(e) {return e[e.length - 1];}//#endregion//#region node_modules/es-toolkit/dist/compat/array/last.mjs-function HCe(e) {- if (!(!Zz(e) || e.length === 0)) return VCe(L4(e));+function Qwe(e) {+ if (!(!kB(e) || e.length === 0)) return Zwe(L4(e));}//#endregion//#region node_modules/recharts/es6/component/Dots.js-var UCe = ["points"];+var $we = ["points"];function S3(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {@@ -61226,26 +62613,26 @@ function C3(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? S3(Object(n), !0).forEach(function(t) {- WCe(e, t, n[t]);+ eTe(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : S3(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function WCe(e, t, n) {- return (t = GCe(t)) in e ? Object.defineProperty(e, t, {+function eTe(e, t, n) {+ return (t = tTe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function GCe(e) {- var t = KCe(e, "string");+function tTe(e) {+ var t = nTe(e, "string");return typeof t == "symbol" ? t : t + "";}-function KCe(e, t) {+function nTe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -61264,16 +62651,16 @@ function w3() {return e;}, w3.apply(null, arguments);}-function qCe(e, t) {+function rTe(e, t) {if (e == null) return {};- var n, r, i = JCe(e, t);+ var n, r, i = iTe(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function JCe(e, t) {+function iTe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -61282,20 +62669,20 @@ function JCe(e, t) {}return n;}-function YCe(e) {+function aTe(e) {var { option: t, dotProps: n, className: r } = e;if (/*#__PURE__*/ (0, I.isValidElement)(t)) return /*#__PURE__*/ (0, I.cloneElement)(t, n);if (typeof t == "function") return t(n);- var i = Jm(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = qCe(a, UCe);+ var i = Xm(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = rTe(a, $we);return /*#__PURE__*/ I.createElement(v4, w3({}, s, { className: i }));}-function XCe(e, t) {+function oTe(e, t) {return e == null ? !1 : t ? !0 : e.length === 1;}function T3(e) {var { points: t, dot: n, className: r, dotClassName: i, dataKey: a, baseProps: o, needClip: s, clipPathId: c, zIndex: l = BY.scatter } = e;- if (!XCe(t, n)) return null;- var u = n3(n), d = Ife(n), f = t.map((e, r) => {+ if (!oTe(t, n)) return null;+ var u = n3(n), d = mpe(n), f = t.map((e, r) => {var s = C3(C3(C3({ r: 3 }, o), d), {}, {index: r,cx: e.x ?? void 0,@@ -61305,14 +62692,14 @@ function T3(e) {payload: e.payload,points: t});- return /*#__PURE__*/ I.createElement(YCe, {+ return /*#__PURE__*/ I.createElement(aTe, {key: `dot-${r}`,option: n,dotProps: s,className: i});}), p = {};- return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ I.createElement(t2, { zIndex: l }, /*#__PURE__*/ I.createElement(xR, w3({ className: r }, p), f));+ return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ I.createElement(t2, { zIndex: l }, /*#__PURE__*/ I.createElement($R, w3({ className: r }, p), f));}//#endregion//#region node_modules/recharts/es6/state/cartesianAxisSlice.js@@ -61330,26 +62717,26 @@ function D3(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? E3(Object(n), !0).forEach(function(t) {- ZCe(e, t, n[t]);+ sTe(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : E3(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function ZCe(e, t, n) {- return (t = QCe(t)) in e ? Object.defineProperty(e, t, {+function sTe(e, t, n) {+ return (t = cTe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function QCe(e) {- var t = $Ce(e, "string");+function cTe(e) {+ var t = lTe(e, "string");return typeof t == "symbol" ? t : t + "";}-function $Ce(e, t) {+function lTe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -61359,7 +62746,7 @@ function $Ce(e, t) {}return (t === "string" ? String : Number)(e);}-var O3 = NH({+var O3 = CU({name: "cartesianAxis",initialState: {xAxis: {},@@ -61369,60 +62756,60 @@ var O3 = NH({reducers: {addXAxis: {reducer(e, t) {- e.xAxis[t.payload.id] = oK(t.payload);+ e.xAxis[t.payload.id] = XK(t.payload);},- prepare: vH()+ prepare: cU()},replaceXAxis: {reducer(e, t) {var { prev: n, next: r } = t.payload;- e.xAxis[n.id] !== void 0 && (n.id !== r.id && delete e.xAxis[n.id], e.xAxis[r.id] = oK(r));+ e.xAxis[n.id] !== void 0 && (n.id !== r.id && delete e.xAxis[n.id], e.xAxis[r.id] = XK(r));},- prepare: vH()+ prepare: cU()},removeXAxis: {reducer(e, t) {delete e.xAxis[t.payload.id];},- prepare: vH()+ prepare: cU()},addYAxis: {reducer(e, t) {- e.yAxis[t.payload.id] = oK(t.payload);+ e.yAxis[t.payload.id] = XK(t.payload);},- prepare: vH()+ prepare: cU()},replaceYAxis: {reducer(e, t) {var { prev: n, next: r } = t.payload;- e.yAxis[n.id] !== void 0 && (n.id !== r.id && delete e.yAxis[n.id], e.yAxis[r.id] = oK(r));+ e.yAxis[n.id] !== void 0 && (n.id !== r.id && delete e.yAxis[n.id], e.yAxis[r.id] = XK(r));},- prepare: vH()+ prepare: cU()},removeYAxis: {reducer(e, t) {delete e.yAxis[t.payload.id];},- prepare: vH()+ prepare: cU()},addZAxis: {reducer(e, t) {- e.zAxis[t.payload.id] = oK(t.payload);+ e.zAxis[t.payload.id] = XK(t.payload);},- prepare: vH()+ prepare: cU()},replaceZAxis: {reducer(e, t) {var { prev: n, next: r } = t.payload;- e.zAxis[n.id] !== void 0 && (n.id !== r.id && delete e.zAxis[n.id], e.zAxis[r.id] = oK(r));+ e.zAxis[n.id] !== void 0 && (n.id !== r.id && delete e.zAxis[n.id], e.zAxis[r.id] = XK(r));},- prepare: vH()+ prepare: cU()},removeZAxis: {reducer(e, t) {delete e.zAxis[t.payload.id];},- prepare: vH()+ prepare: cU()},updateYAxisWidth(e, t) {var { id: n, width: r } = t.payload, i = e.yAxis[n];@@ -61437,15 +62824,15 @@ var O3 = NH({}}}-}), { addXAxis: ewe, replaceXAxis: twe, removeXAxis: nwe, addYAxis: rwe, replaceYAxis: iwe, removeYAxis: awe, addZAxis: owe, replaceZAxis: swe, removeZAxis: cwe, updateYAxisWidth: lwe } = O3.actions, uwe = O3.reducer, dwe = $([- $([bW], (e) => ({+}), { addXAxis: uTe, replaceXAxis: dTe, removeXAxis: fTe, addYAxis: pTe, replaceYAxis: mTe, removeYAxis: hTe, addZAxis: gTe, replaceZAxis: _Te, removeZAxis: vTe, updateYAxisWidth: yTe } = O3.actions, bTe = O3.reducer, xTe = $([+ $([uG], (e) => ({top: e.top,bottom: e.bottom,left: e.left,right: e.right})),- rW,- iW+ qW,+ JW], (e, t, n) => {if (!(!e || t == null || n == null)) return {x: e.left,@@ -61453,7 +62840,7 @@ var O3 = NH({width: Math.max(0, t - e.left - e.right),height: Math.max(0, n - e.top - e.bottom)};-}), k3 = () => Q(dwe), fwe = () => Q(Gye);+}), k3 = () => Q(xTe), STe = () => Q(txe);//#endregion//#region node_modules/recharts/es6/component/ActivePoints.jsfunction A3(e, t) {@@ -61470,26 +62857,26 @@ function j3(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? A3(Object(n), !0).forEach(function(t) {- pwe(e, t, n[t]);+ CTe(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : A3(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function pwe(e, t, n) {- return (t = mwe(t)) in e ? Object.defineProperty(e, t, {+function CTe(e, t, n) {+ return (t = wTe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function mwe(e) {- var t = hwe(e, "string");+function wTe(e) {+ var t = TTe(e, "string");return typeof t == "symbol" ? t : t + "";}-function hwe(e, t) {+function TTe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -61499,7 +62886,7 @@ function hwe(e, t) {}return (t === "string" ? String : Number)(e);}-var gwe = (e) => {+var ETe = (e) => {var { point: t, childIndex: n, mainColor: r, activeDot: i, dataKey: a, clipPath: o } = e;if (i === !1 || t.x == null || t.y == null) return null;var s = j3(j3(j3({}, {@@ -61513,17 +62900,17 @@ var gwe = (e) => {stroke: "#fff",payload: t.payload,value: t.value- }), gR(i)), Hz(i)), c = /*#__PURE__*/ (0, I.isValidElement)(i) ? /*#__PURE__*/ (0, I.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ I.createElement(v4, s);- return /*#__PURE__*/ I.createElement(xR, {+ }), JR(i)), bB(i)), c = /*#__PURE__*/ (0, I.isValidElement)(i) ? /*#__PURE__*/ (0, I.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ I.createElement(v4, s);+ return /*#__PURE__*/ I.createElement($R, {className: "recharts-active-dot",clipPath: o}, c);};function M3(e) {- var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = BY.activeDot } = e, s = Q(P0), c = fwe();+ var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = BY.activeDot } = e, s = Q(P0), c = STe();if (t == null || c == null) return null;var l = t.find((e) => c.includes(e.payload));- return Mz(l) ? null : /*#__PURE__*/ I.createElement(t2, { zIndex: o }, /*#__PURE__*/ I.createElement(gwe, {+ return uB(l) ? null : /*#__PURE__*/ I.createElement(t2, { zIndex: o }, /*#__PURE__*/ I.createElement(ETe, {point: l,childIndex: Number(s),mainColor: n,@@ -61548,26 +62935,26 @@ function P3(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? N3(Object(n), !0).forEach(function(t) {- _we(e, t, n[t]);+ DTe(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : N3(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function _we(e, t, n) {- return (t = vwe(t)) in e ? Object.defineProperty(e, t, {+function DTe(e, t, n) {+ return (t = OTe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function vwe(e) {- var t = ywe(e, "string");+function OTe(e) {+ var t = kTe(e, "string");return typeof t == "symbol" ? t : t + "";}-function ywe(e, t) {+function kTe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -61577,13 +62964,13 @@ function ywe(e, t) {}return (t === "string" ? String : Number)(e);}-var F3 = (e, t) => O4(e, "radiusAxis", t), bwe = $([F3], (e) => {+var F3 = (e, t) => O4(e, "radiusAxis", t), ATe = $([F3], (e) => {if (e != null) return { scale: e };-}), xwe = $([XY, F3], (e, t) => {+}), jTe = $([XY, F3], (e, t) => {if (e != null && t != null) return P3(P3({}, e), {}, { scale: t });-}), Swe = (e, t, n, r) => A4(e, "radiusAxis", t, r), I3 = (e, t, n) => YY(e, n), L3 = (e, t, n) => O4(e, "angleAxis", n), Cwe = $([I3, L3], (e, t) => {+}), MTe = (e, t, n, r) => A4(e, "radiusAxis", t, r), I3 = (e, t, n) => YY(e, n), L3 = (e, t, n) => O4(e, "angleAxis", n), NTe = $([I3, L3], (e, t) => {if (e != null && t != null) return P3(P3({}, e), {}, { scale: t });-}), wwe = (e, t, n, r) => A4(e, "angleAxis", n, r), Twe = $([+}), PTe = (e, t, n, r) => A4(e, "angleAxis", n, r), FTe = $([I3,L3,rX@@ -61595,30 +62982,30 @@ var F3 = (e, t) => O4(e, "radiusAxis", t), bwe = $([F3], (e) => {cx: n.cx,cy: n.cy};-}), Ewe = (e, t, n, r, i) => i, Dwe = $([- iG,- xwe,- Swe,- Cwe,- wwe-], (e, t, n, r, i) => LU(e, "radiusAxis") ? QU(t, n, !1) : QU(r, i, !1)), Owe = $([- bwe,- Twe,+}), ITe = (e, t, n, r, i) => i, LTe = $([+ JG,+ jTe,+ MTe,+ NTe,+ PTe+], (e, t, n, r, i) => DW(e, "radiusAxis") ? HW(t, n, !1) : HW(r, i, !1)), RTe = $([+ ATe,+ FTe,hY,- $([y4, Ewe], (e, t) => {+ $([y4, ITe], (e, t) => {if (e != null) return e.find((e) => e.type === "radar" && t === e.id)?.dataKey;}),- Dwe+ LTe], (e, t, n, r, i) => {var { chartData: a, dataStartIndex: o, dataEndIndex: s } = n;- if (e != null && t != null && a != null && i != null && r != null) return Rwe({+ if (e != null && t != null && a != null && i != null && r != null) return JTe({radiusAxis: e,angleAxis: t,displayedData: a.slice(o, s + 1),dataKey: r,bandSize: i});-}), kwe = ["id"];+}), zTe = ["id"];function R3() {return R3 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {@@ -61642,26 +63029,26 @@ function B3(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? z3(Object(n), !0).forEach(function(t) {- Awe(e, t, n[t]);+ BTe(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : z3(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function Awe(e, t, n) {- return (t = jwe(t)) in e ? Object.defineProperty(e, t, {+function BTe(e, t, n) {+ return (t = VTe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function jwe(e) {- var t = Mwe(e, "string");+function VTe(e) {+ var t = HTe(e, "string");return typeof t == "symbol" ? t : t + "";}-function Mwe(e, t) {+function HTe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -61671,16 +63058,16 @@ function Mwe(e, t) {}return (t === "string" ? String : Number)(e);}-function Nwe(e, t) {+function UTe(e, t) {if (e == null) return {};- var n, r, i = Pwe(e, t);+ var n, r, i = WTe(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function Pwe(e, t) {+function WTe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -61692,27 +63079,27 @@ function Pwe(e, t) {function V3(e, t) {return e && e !== "none" ? e : t;}-var Fwe = (e) => {+var GTe = (e) => {var { dataKey: t, name: n, stroke: r, fill: i, legendType: a, hide: o } = e;return [{inactive: o,dataKey: t,type: a,color: V3(r, i),- value: eW(n, t),+ value: WW(n, t),payload: e}];-}, Iwe = /*#__PURE__*/ I.memo((e) => {+}, KTe = /*#__PURE__*/ I.memo((e) => {var { dataKey: t, stroke: n, strokeWidth: r, fill: i, name: a, hide: o, tooltipType: s, id: c } = e, l = {dataDefinedOnItem: void 0,- getPosition: Fz,+ getPosition: pB,settings: {stroke: n,strokeWidth: r,fill: i,nameKey: void 0,dataKey: t,- name: eW(a, t),+ name: WW(a, t),hide: o,type: s,color: V3(n, i),@@ -61722,8 +63109,8 @@ var Fwe = (e) => {};return /*#__PURE__*/ I.createElement(h3, { tooltipEntrySettings: l });});-function Lwe(e) {- var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = hR(Nwe(n, kwe));+function qTe(e) {+ var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = qR(UTe(n, zTe));return /*#__PURE__*/ I.createElement(T3, {points: t,dot: r,@@ -61733,10 +63120,10 @@ function Lwe(e) {baseProps: o});}-function Rwe(e) {+function JTe(e) {var { radiusAxis: t, angleAxis: n, displayedData: r, dataKey: i, bandSize: a } = e, { cx: o, cy: s } = n, c = !1, l = [], u = n.type === "number" ? 0 : a ?? 0;r.forEach((e, r) => {- var a = FU(e, n.dataKey, r), d = FU(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? HCe(d) : d, m = Mz(p) ? 0 : t.scale.map(p) ?? 0;+ var a = TW(e, n.dataKey, r), d = TW(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? Qwe(d) : d, m = uB(p) ? 0 : t.scale.map(p) ?? 0;Array.isArray(d) && d.length >= 2 && (c = !0), l.push(B3(B3({}, aY(o, s, m, f)), {}, {name: a,value: d,@@ -61750,7 +63137,7 @@ function Rwe(e) {var d = [];return c && l.forEach((e) => {if (Array.isArray(e.value)) {- var n = e.value[0], r = Mz(n) ? 0 : t.scale.map(n) ?? 0;+ var n = e.value[0], r = uB(n) ? 0 : t.scale.map(n) ?? 0;d.push(B3(B3({}, e), {}, { radius: r }, aY(o, s, r, e.angle)));} else d.push(e);}), {@@ -61759,7 +63146,7 @@ function Rwe(e) {baseLinePoints: d};}-function zwe(e) {+function YTe(e) {var { showLabels: t, points: n, children: r } = e, i = n.map((e) => {var t = {x: e.x,@@ -61779,10 +63166,10 @@ function zwe(e) {});return /*#__PURE__*/ I.createElement(l4, { value: t ? i : void 0 }, r);}-function Bwe(e) {+function XTe(e) {var { points: t, baseLinePoints: n, props: r } = e;if (t == null) return null;- var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ I.isValidElement(i) ? /*#__PURE__*/ I.cloneElement(i, B3(B3({}, r), {}, { points: t })) : typeof i == "function" ? i(B3(B3({}, r), {}, { points: t })) : /*#__PURE__*/ I.createElement(g4, R3({}, _R(r), {+ var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ I.isValidElement(i) ? /*#__PURE__*/ I.cloneElement(i, B3(B3({}, r), {}, { points: t })) : typeof i == "function" ? i(B3(B3({}, r), {}, { points: t })) : /*#__PURE__*/ I.createElement(g4, R3({}, YR(r), {onMouseEnter: (e) => {var { onMouseEnter: t } = r;t && t(r, e);@@ -61795,7 +63182,7 @@ function Bwe(e) {baseLinePoints: a ? n : void 0,connectNulls: o}));- return /*#__PURE__*/ I.createElement(xR, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ I.createElement(Lwe, {+ return /*#__PURE__*/ I.createElement($R, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ I.createElement(qTe, {props: r,points: t}));@@ -61803,23 +63190,23 @@ function Bwe(e) {var H3 = (e, t, n) => (r, i) => {var a = e && e[Math.floor(i * t)];return a ? B3(B3({}, r), {}, {- x: Az(a.x, r.x, n),- y: Az(a.y, r.y, n)+ x: cB(a.x, r.x, n),+ y: cB(a.y, r.y, n)}) : B3(B3({}, r), {}, {- x: Az(r.cx, r.x, n),- y: Az(r.cy, r.y, n)+ x: cB(r.cx, r.x, n),+ y: cB(r.cy, r.y, n)});};-function Vwe(e) {- var { props: t, previousPointsRef: n, previousBaseLinePointsRef: r } = e, { points: i, baseLinePoints: a, isAnimationActive: o, animationBegin: s, animationDuration: c, animationEasing: l, onAnimationEnd: u, onAnimationStart: d } = t, f = n.current, p = r.current, m = f ? f.length / i.length : 1, h = p ? p.length / a.length : 1, g = IJ(t, "recharts-radar-"), [_, v] = (0, I.useState)(!1), y = !_, b = (0, I.useCallback)(() => {+function ZTe(e) {+ var { props: t, previousPointsRef: n, previousBaseLinePointsRef: r } = e, { points: i, baseLinePoints: a, isAnimationActive: o, animationBegin: s, animationDuration: c, animationEasing: l, onAnimationEnd: u, onAnimationStart: d } = t, f = n.current, p = r.current, m = f ? f.length / i.length : 1, h = p ? p.length / a.length : 1, g = KJ(t, "recharts-radar-"), [_, v] = (0, I.useState)(!1), y = !_, b = (0, I.useCallback)(() => {typeof u == "function" && u(), v(!1);}, [u]), x = (0, I.useCallback)(() => {typeof d == "function" && d(), v(!0);}, [d]);- return /*#__PURE__*/ I.createElement(zwe, {+ return /*#__PURE__*/ I.createElement(YTe, {showLabels: y,points: i- }, /*#__PURE__*/ I.createElement(FJ, {+ }, /*#__PURE__*/ I.createElement(GJ, {animationId: g,begin: s,duration: c,@@ -61830,22 +63217,22 @@ function Vwe(e) {onAnimationStart: x}, (e) => {var o = e === 1 ? i : i.map(H3(f, m, e)), s = e === 1 ? a : a?.map(H3(p, h, e));- return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ I.createElement(Bwe, {+ return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ I.createElement(XTe, {points: o,baseLinePoints: s,props: t});}), /*#__PURE__*/ I.createElement(f4, { label: t.label }), t.children);}-function Hwe(e) {+function QTe(e) {var t = (0, I.useRef)(void 0), n = (0, I.useRef)(void 0);- return /*#__PURE__*/ I.createElement(Vwe, {+ return /*#__PURE__*/ I.createElement(ZTe, {props: e,previousPointsRef: t,previousBaseLinePointsRef: n});}-var Uwe = {+var $Te = {activeDot: !0,angleAxisId: 0,animationBegin: 0,@@ -61859,27 +63246,27 @@ var Uwe = {radiusAxisId: 0,zIndex: BY.area};-function Wwe(e) {+function eEe(e) {var { hide: t, className: n, points: r } = e;if (t) return null;- var i = Jm("recharts-radar", n);- return /*#__PURE__*/ I.createElement(t2, { zIndex: e.zIndex }, /*#__PURE__*/ I.createElement(xR, { className: i }, /*#__PURE__*/ I.createElement(Hwe, e)), /*#__PURE__*/ I.createElement(M3, {+ var i = Xm("recharts-radar", n);+ return /*#__PURE__*/ I.createElement(t2, { zIndex: e.zIndex }, /*#__PURE__*/ I.createElement($R, { className: i }, /*#__PURE__*/ I.createElement(QTe, e)), /*#__PURE__*/ I.createElement(M3, {points: r,mainColor: V3(e.stroke, e.fill),itemDataKey: e.dataKey,activeDot: e.activeDot}));}-function Gwe(e) {- var t = wW(), n = Q((n) => Owe(n, e.radiusAxisId, e.angleAxisId, t, e.id));- return n?.points == null ? null : /*#__PURE__*/ I.createElement(Wwe, R3({}, e, {+function tEe(e) {+ var t = mG(), n = Q((n) => RTe(n, e.radiusAxisId, e.angleAxisId, t, e.id));+ return n?.points == null ? null : /*#__PURE__*/ I.createElement(eEe, R3({}, e, {points: n?.points,baseLinePoints: n?.baseLinePoints,isRange: n?.isRange}));}function U3(e) {- var t = Gz(e, Uwe);+ var t = CB(e, $Te);return /*#__PURE__*/ I.createElement(v3, {id: t.id,type: "radar"@@ -61891,7 +63278,7 @@ function U3(e) {hide: t.hide,angleAxisId: t.angleAxisId,radiusAxisId: t.radiusAxisId- }), /*#__PURE__*/ I.createElement(_3, { legendPayload: Fwe(t) }), /*#__PURE__*/ I.createElement(Iwe, {+ }), /*#__PURE__*/ I.createElement(_3, { legendPayload: GTe(t) }), /*#__PURE__*/ I.createElement(KTe, {dataKey: t.dataKey,stroke: t.stroke,strokeWidth: t.strokeWidth,@@ -61900,7 +63287,7 @@ function U3(e) {hide: t.hide,tooltipType: t.tooltipType,id: e- }), /*#__PURE__*/ I.createElement(Gwe, R3({}, t, { id: e }))));+ }), /*#__PURE__*/ I.createElement(tEe, R3({}, t, { id: e }))));}U3.displayName = "Radar";//#endregion@@ -61924,7 +63311,7 @@ function K3(e) {//#region node_modules/recharts/es6/state/selectors/combiners/combineBarSizeList.jsvar q3 = (e, t, n) => {var r = n ?? e;- if (!Mz(r)) return Oz(r, t, 0);+ if (!uB(r)) return oB(r, t, 0);}, J3 = (e, t, n) => {var r = {}, i = e.filter(cX), a = e.filter((e) => e.stackId == null), o = i.reduce((e, t) => {var n = e[t.stackId];@@ -61959,26 +63346,26 @@ function X3(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? Y3(Object(n), !0).forEach(function(t) {- Kwe(e, t, n[t]);+ nEe(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Y3(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function Kwe(e, t, n) {- return (t = qwe(t)) in e ? Object.defineProperty(e, t, {+function nEe(e, t, n) {+ return (t = rEe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function qwe(e) {- var t = Jwe(e, "string");+function rEe(e) {+ var t = iEe(e, "string");return typeof t == "symbol" ? t : t + "";}-function Jwe(e, t) {+function iEe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -61988,11 +63375,11 @@ function Jwe(e, t) {}return (t === "string" ? String : Number)(e);}-function Ywe(e, t, n, r, i) {+function aEe(e, t, n, r, i) {var a = r.length;if (!(a < 1)) {- var o = Oz(e, n, 0, !0), s, c = [];- if (OU(r[0]?.barSize)) {+ var o = oB(e, n, 0, !0), s, c = [];+ if (vW(r[0]?.barSize)) {var l = !1, u = n / a, d = r.reduce((e, t) => e + (t.barSize || 0), 0);d += (a - 1) * o, d >= n && (d -= (a - 1) * o, o = 0), d >= n && u > 0 && (l = !0, u *= .9, d = a * u);var f = {@@ -62011,11 +63398,11 @@ function Ywe(e, t, n, r, i) {return f = n.position, r;}, c);} else {- var p = Oz(t, n, 0, !0);+ var p = oB(t, n, 0, !0);n - 2 * p - (a - 1) * o <= 0 && (o = 0);var m = (n - 2 * p - (a - 1) * o) / a;m > 1 && (m >>= 0);- var h = OU(i) ? Math.min(m, i) : m;+ var h = vW(i) ? Math.min(m, i) : m;s = r.reduce((e, t, n) => [...e, {stackId: t.stackId,dataKeys: t.dataKeys,@@ -62029,7 +63416,7 @@ function Ywe(e, t, n, r, i) {}}var Z3 = (e, t, n, r, i, a, o) => {- var s = Mz(o) ? t : o, c = Ywe(n, r, i === a ? a : i, e, s);+ var s = uB(o) ? t : o, c = aEe(n, r, i === a ? a : i, e, s);return i !== a && c != null && (c = c.map((e) => X3(X3({}, e), {}, { position: X3(X3({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;}, Q3 = (e, t) => {var n = oX(t);@@ -62065,26 +63452,26 @@ function t6(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? e6(Object(n), !0).forEach(function(t) {- Xwe(e, t, n[t]);+ oEe(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : e6(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function Xwe(e, t, n) {- return (t = Zwe(t)) in e ? Object.defineProperty(e, t, {+function oEe(e, t, n) {+ return (t = sEe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function Zwe(e) {- var t = Qwe(e, "string");+function sEe(e) {+ var t = cEe(e, "string");return typeof t == "symbol" ? t : t + "";}-function Qwe(e, t) {+function cEe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -62096,30 +63483,30 @@ function Qwe(e, t) {}var n6 = $([(e, t) => XY(e, t), (e, t) => O4(e, "radiusAxis", t)], (e, t) => {if (e != null && t != null) return t6(t6({}, e), {}, { scale: t });-}), r6 = (e, t) => dSe(e, "radiusAxis", t, !1), i6 = $([(e, t, n) => YY(e, n), (e, t, n) => O4(e, "angleAxis", n)], (e, t) => {+}), r6 = (e, t) => xCe(e, "radiusAxis", t, !1), i6 = $([(e, t, n) => YY(e, n), (e, t, n) => O4(e, "angleAxis", n)], (e, t) => {if (e != null && t != null) return t6(t6({}, e), {}, { scale: t });}), a6 = (e, t, n) => A4(e, "angleAxis", n, !1), o6 = $([y4, (e, t, n, r) => r], (e, t) => {if (e.some((e) => e.type === "radialBar" && t.dataKey === e.dataKey && t.stackId === e.stackId)) return t;}), s6 = $([- iG,+ JG,n6,r6,i6,a6-], (e, t, n, r, i) => LU(e, "radiusAxis") ? QU(t, n, !1) : QU(r, i, !1)), $we = $([+], (e, t, n, r, i) => DW(e, "radiusAxis") ? HW(t, n, !1) : HW(r, i, !1)), lEe = $([i6,n6,- iG+ JG], (e, t, n) => {var r = n === "radial" ? e : t;- if (r != null && r.scale != null) return KU({ numericAxis: r });-}), eTe = (e, t, n, r, i) => i, tTe = (e, t, n, r, i) => n, nTe = (e, t, n, r, i) => t, c6 = (e, t, n, r, i) => r.maxBarSize, l6 = (e) => e.type === "radialBar", rTe = $([$([+ if (r != null && r.scale != null) return IW({ numericAxis: r });+}), uEe = (e, t, n, r, i) => i, dEe = (e, t, n, r, i) => n, fEe = (e, t, n, r, i) => t, c6 = (e, t, n, r, i) => r.maxBarSize, l6 = (e) => e.type === "radialBar", pEe = $([$([$([$([- iG,+ JG,y4,- tTe,- nTe+ dEe,+ fEe], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(l6)),NY,() => void 0@@ -62128,7 +63515,7 @@ var n6 = $([(e, t) => XY(e, t), (e, t) => O4(e, "radiusAxis", t)], (e, t) => {jY,MY,$([- iG,+ JG,AY,i6,a6,@@ -62136,8 +63523,8 @@ var n6 = $([(e, t) => XY(e, t), (e, t) => O4(e, "radiusAxis", t)], (e, t) => {r6,c6], (e, t, n, r, i, a, o) => {- var s = Mz(o) ? t : o;- return e === "centric" ? QU(n, r, !0) ?? s ?? 0 : QU(i, a, !0) ?? s ?? 0;+ var s = uB(o) ? t : o;+ return e === "centric" ? HW(n, r, !0) ?? s ?? 0 : HW(i, a, !0) ?? s ?? 0;}),s6,c6@@ -62150,7 +63537,7 @@ var n6 = $([(e, t) => XY(e, t), (e, t) => O4(e, "radiusAxis", t)], (e, t) => {u6,PY,FY-], i1), iTe = $([+], i1), mEe = $([i6,a6,n6,@@ -62158,17 +63545,17 @@ var n6 = $([(e, t) => XY(e, t), (e, t) => O4(e, "radiusAxis", t)], (e, t) => {mY,o6,s6,- iG,- $we,+ JG,+ lEe,rX,- eTe,- rTe,- $([(e, t, n) => iG(e) === "centric" ? d6(e, "radiusAxis", t) : d6(e, "angleAxis", n), o6], Q3)+ uEe,+ pEe,+ $([(e, t, n) => JG(e) === "centric" ? d6(e, "radiusAxis", t) : d6(e, "angleAxis", n), o6], Q3)], (e, t, n, r, i, a, o, s, c, l, u, d, f) => {var { chartData: p, dataStartIndex: m, dataEndIndex: h } = i;if (a == null || n == null || e == null || p == null || o == null || d == null || s !== "centric" && s !== "radial" || r == null || l == null) return [];var { dataKey: g, minPointSize: _ } = a, { cx: v, cy: y, startAngle: b, endAngle: x } = l;- return xTe({+ return jEe({angleAxis: e,angleAxisTicks: t,bandSize: o,@@ -62189,7 +63576,7 @@ var n6 = $([(e, t) => XY(e, t), (e, t) => O4(e, "radiusAxis", t)], (e, t) => {stackedDomain: f ? (s === "centric" ? n : e).scale.domain() : null,startAngle: b});-}), aTe = $([hY, (e, t) => t], (e, t) => {+}), hEe = $([hY, (e, t) => t], (e, t) => {var { chartData: n, dataStartIndex: r, dataEndIndex: i } = e;if (n == null) return [];var a = n.slice(r, i + 1);@@ -62203,20 +63590,20 @@ var n6 = $([(e, t) => XY(e, t), (e, t) => O4(e, "radiusAxis", t)], (e, t) => {//#endregion//#region node_modules/recharts/es6/zIndex/getZIndexFromUnknown.jsfunction f6(e, t) {- return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && OU(e.zIndex) ? e.zIndex : t;+ return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && vW(e.zIndex) ? e.zIndex : t;}//#endregion//#region node_modules/recharts/es6/polar/RadialBar.js-var oTe = [+var gEe = ["shape","activeShape","cornerRadius","id"-], sTe = [+], _Ee = ["onMouseEnter","onClick","onMouseLeave"-], cTe = ["value", "background"];+], vEe = ["value", "background"];function p6() {return p6 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {@@ -62240,26 +63627,26 @@ function h6(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? m6(Object(n), !0).forEach(function(t) {- lTe(e, t, n[t]);+ yEe(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : m6(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function lTe(e, t, n) {- return (t = uTe(t)) in e ? Object.defineProperty(e, t, {+function yEe(e, t, n) {+ return (t = bEe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function uTe(e) {- var t = dTe(e, "string");+function bEe(e) {+ var t = xEe(e, "string");return typeof t == "symbol" ? t : t + "";}-function dTe(e, t) {+function xEe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -62271,14 +63658,14 @@ function dTe(e, t) {}function g6(e, t) {if (e == null) return {};- var n, r, i = fTe(e, t);+ var n, r, i = SEe(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function fTe(e, t) {+function SEe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -62288,7 +63675,7 @@ function fTe(e, t) {return n;}var _6 = [];-function pTe(e) {+function CEe(e) {var { showLabels: t, sectors: n, children: r } = e, i = n.map((e) => ({value: e.value,payload: e.payload,@@ -62305,15 +63692,15 @@ function pTe(e) {},fill: e.fill}));- return /*#__PURE__*/ I.createElement($xe, { value: t ? i : void 0 }, r);+ return /*#__PURE__*/ I.createElement(lCe, { value: t ? i : void 0 }, r);}-function mTe(e) {- var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = g6(n, oTe), l = hR(c), u = Q(P0), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = g6(n, sTe), h = f3(d, n.dataKey, s), g = p3(p), _ = m3(f, n.dataKey, s);- return t == null ? null : /*#__PURE__*/ I.createElement(pTe, {+function wEe(e) {+ var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = g6(n, gEe), l = qR(c), u = Q(P0), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = g6(n, _Ee), h = f3(d, n.dataKey, s), g = p3(p), _ = m3(f, n.dataKey, s);+ return t == null ? null : /*#__PURE__*/ I.createElement(CEe, {showLabels: r,sectors: t}, t.map((e, t) => {- var n = !!(a && u === String(t)), r = h(e, t), s = g(e, t), d = _(e, t), f = h6(h6(h6(h6({}, l), {}, { cornerRadius: G3(o) }, e), Uz(m, e, t)), {}, {+ var n = !!(a && u === String(t)), r = h(e, t), s = g(e, t), d = _(e, t), f = h6(h6(h6(h6({}, l), {}, { cornerRadius: G3(o) }, e), xB(m, e, t)), {}, {onMouseEnter: r,onMouseLeave: s,onClick: d,@@ -62330,13 +63717,13 @@ function mTe(e) {}, /*#__PURE__*/ I.createElement(K3, f)) : /*#__PURE__*/ I.createElement(K3, p6({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, f));}), /*#__PURE__*/ I.createElement(f4, { label: n.label }), n.children);}-function hTe(e) {- var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = IJ(t, "recharts-radialbar-"), d = n.current, [f, p] = (0, I.useState)(!1), m = (0, I.useCallback)(() => {+function TEe(e) {+ var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = KJ(t, "recharts-radialbar-"), d = n.current, [f, p] = (0, I.useState)(!1), m = (0, I.useCallback)(() => {typeof c == "function" && c(), p(!1);}, [c]), h = (0, I.useCallback)(() => {typeof l == "function" && l(), p(!0);}, [l]);- return /*#__PURE__*/ I.createElement(FJ, {+ return /*#__PURE__*/ I.createElement(GJ, {animationId: u,begin: a,duration: o,@@ -62349,34 +63736,34 @@ function hTe(e) {var i = e === 1 ? r : (r ?? _6).map((t, n) => {var r = d && d[n];if (r) return h6(h6({}, t), {}, {- startAngle: Az(r.startAngle, t.startAngle, e),- endAngle: Az(r.endAngle, t.endAngle, e)+ startAngle: cB(r.startAngle, t.startAngle, e),+ endAngle: cB(r.endAngle, t.endAngle, e)});var { endAngle: i, startAngle: a } = t;- return h6(h6({}, t), {}, { endAngle: Az(a, i, e) });+ return h6(h6({}, t), {}, { endAngle: cB(a, i, e) });});- return e > 0 && (n.current = i ?? null), /*#__PURE__*/ I.createElement(mTe, {+ return e > 0 && (n.current = i ?? null), /*#__PURE__*/ I.createElement(wEe, {sectors: i ?? _6,allOtherRadialBarProps: t,showLabels: !f});});}-function gTe(e) {+function EEe(e) {var t = (0, I.useRef)(null);- return /*#__PURE__*/ I.createElement(hTe, {+ return /*#__PURE__*/ I.createElement(TEe, {props: e,previousSectorsRef: t});}-function _Te(e) {- var t = Q((t) => aTe(t, e.legendType));+function DEe(e) {+ var t = Q((t) => hEe(t, e.legendType));return /*#__PURE__*/ I.createElement(_3, { legendPayload: t ?? [] });}-var vTe = /*#__PURE__*/ I.memo((e) => {+var OEe = /*#__PURE__*/ I.memo((e) => {var { dataKey: t, sectors: n, stroke: r, strokeWidth: i, name: a, hide: o, fill: s, tooltipType: c, id: l } = e, u = {dataDefinedOnItem: n,- getPosition: Fz,+ getPosition: pB,settings: {graphicalItemId: l,stroke: r,@@ -62384,7 +63771,7 @@ var vTe = /*#__PURE__*/ I.memo((e) => {fill: s,nameKey: void 0,dataKey: t,- name: eW(a, t),+ name: WW(a, t),hide: o,type: c,color: s,@@ -62392,16 +63779,16 @@ var vTe = /*#__PURE__*/ I.memo((e) => {}};return /*#__PURE__*/ I.createElement(h3, { tooltipEntrySettings: u });-}), yTe = class extends I.PureComponent {+}), kEe = class extends I.PureComponent {renderBackground(e) {if (e == null) return null;- var { cornerRadius: t } = this.props, n = gR(this.props.background);+ var { cornerRadius: t } = this.props, n = JR(this.props.background);return /*#__PURE__*/ I.createElement(t2, { zIndex: f6(this.props.background, BY.barBackground) }, e.map((e, r) => {- var { value: i, background: a } = e, o = g6(e, cTe);+ var { value: i, background: a } = e, o = g6(e, vEe);if (!a) return null;- var s = h6(h6(h6(h6(h6({ cornerRadius: G3(t) }, o), {}, { fill: "#eee" }, a), n), Uz(this.props, e, r)), {}, {+ var s = h6(h6(h6(h6(h6({ cornerRadius: G3(t) }, o), {}, { fill: "#eee" }, a), n), xB(this.props, e, r)), {}, {index: r,- className: Jm("recharts-radial-bar-background-sector", String(n?.className)),+ className: Xm("recharts-radial-bar-background-sector", String(n?.className)),option: a,isActive: !1});@@ -62411,18 +63798,18 @@ var vTe = /*#__PURE__*/ I.memo((e) => {render() {var { hide: e, sectors: t, className: n, background: r } = this.props;if (e) return null;- var i = Jm("recharts-area", n);- return /*#__PURE__*/ I.createElement(t2, { zIndex: this.props.zIndex }, /*#__PURE__*/ I.createElement(xR, { className: i }, r && /*#__PURE__*/ I.createElement(xR, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ I.createElement(xR, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ I.createElement(gTe, this.props))));+ var i = Xm("recharts-area", n);+ return /*#__PURE__*/ I.createElement(t2, { zIndex: this.props.zIndex }, /*#__PURE__*/ I.createElement($R, { className: i }, r && /*#__PURE__*/ I.createElement($R, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ I.createElement($R, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ I.createElement(EEe, this.props))));}};-function bTe(e) {+function AEe(e) {var t = I.useMemo(() => t3(e.children, v2), [e.children]), n = I.useMemo(() => ({data: void 0,hide: !1,id: e.id,dataKey: e.dataKey,minPointSize: e.minPointSize,- stackId: UU(e.stackId),+ stackId: NW(e.stackId),maxBarSize: e.maxBarSize,barSize: e.barSize,type: "radialBar",@@ -62437,8 +63824,8 @@ function bTe(e) {e.barSize,e.angleAxisId,e.radiusAxisId- ]), r = Q((r) => iTe(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? _6;- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(vTe, {+ ]), r = Q((r) => mEe(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? _6;+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(OEe, {dataKey: e.dataKey,sectors: r,stroke: e.stroke,@@ -62448,7 +63835,7 @@ function bTe(e) {fill: e.fill,tooltipType: e.tooltipType,id: e.id- }), /*#__PURE__*/ I.createElement(yTe, p6({}, e, { sectors: r })));+ }), /*#__PURE__*/ I.createElement(kEe, p6({}, e, { sectors: r })));}var v6 = {angleAxisId: 0,@@ -62467,12 +63854,12 @@ var v6 = {radiusAxisId: 0,zIndex: BY.bar};-function xTe(e) {+function jEe(e) {var { displayedData: t, stackedData: n, dataStartIndex: r, stackedDomain: i, dataKey: a, baseValue: o, layout: s, radiusAxis: c, radiusAxisTicks: l, bandSize: u, pos: d, angleAxis: f, minPointSize: p, cx: m, cy: h, angleAxisTicks: g, cells: _, startAngle: v, endAngle: y } = e;return g == null || l == null ? _6 : (t ?? []).map((e, t) => {var b, x, S, C, w, T;- if (n ? b = BU(n[r + t], i) : (b = FU(e, a), Array.isArray(b) || (b = [o, b])), s === "radial") {- if (C = f.scale.map(b[0]) ?? v, w = f.scale.map(b[1]) ?? y, x = GU({+ if (n ? b = AW(n[r + t], i) : (b = TW(e, a), Array.isArray(b) || (b = [o, b])), s === "radial") {+ if (C = f.scale.map(b[0]) ?? v, w = f.scale.map(b[1]) ?? y, x = FW({axis: c,ticks: l,bandSize: u,@@ -62483,7 +63870,7 @@ function xTe(e) {S = x + d.size;var E = w - C;if (Math.abs(p) > 0 && Math.abs(E) < Math.abs(p)) {- var D = Cz(E || p) * (Math.abs(p) - Math.abs(E));+ var D = tB(E || p) * (Math.abs(p) - Math.abs(E));w += D;}T = { background: {@@ -62495,7 +63882,7 @@ function xTe(e) {endAngle: y} };}- } else if (x = c.scale.map(b[0]), S = c.scale.map(b[1]), C = GU({+ } else if (x = c.scale.map(b[0]), S = c.scale.map(b[1]), C = FW({axis: f,ticks: g,bandSize: u,@@ -62506,7 +63893,7 @@ function xTe(e) {w = C + d.size;var O = S - x;if (Math.abs(p) > 0 && Math.abs(O) < Math.abs(p)) {- var k = Cz(O || p) * (Math.abs(p) - Math.abs(O));+ var k = tB(O || p) * (Math.abs(p) - Math.abs(O));S += k;}}@@ -62523,7 +63910,7 @@ function xTe(e) {});}function y6(e) {- var t = Gz(e, v6);+ var t = CB(e, v6);return /*#__PURE__*/ I.createElement(v3, {id: t.id,type: "radialBar"@@ -62535,17 +63922,17 @@ function y6(e) {hide: t.hide ?? v6.hide,angleAxisId: t.angleAxisId ?? v6.angleAxisId,radiusAxisId: t.radiusAxisId ?? v6.radiusAxisId,- stackId: UU(t.stackId),+ stackId: NW(t.stackId),barSize: t.barSize,minPointSize: t.minPointSize,maxBarSize: t.maxBarSize- }), /*#__PURE__*/ I.createElement(_Te, t), /*#__PURE__*/ I.createElement(bTe, p6({}, t, { id: e }))));+ }), /*#__PURE__*/ I.createElement(DEe, t), /*#__PURE__*/ I.createElement(AEe, p6({}, t, { id: e }))));}y6.displayName = "RadialBar";//#endregion//#region node_modules/recharts/es6/context/chartDataContext.jsvar b6 = (e) => {- var { chartData: t } = e, n = vB(), r = wW();+ var { chartData: t } = e, n = XB(), r = mG();return (0, I.useEffect)(() => r ? () => {} : (n(f2(t)), () => {n(f2(void 0));}), [@@ -62564,13 +63951,13 @@ var b6 = (e) => {bottom: 0,left: 0}-}, S6 = NH({+}, S6 = CU({name: "brush",initialState: x6,reducers: { setBrushSettings(e, t) {return t.payload == null ? x6 : t.payload;} }-}), { setBrushSettings: STe } = S6.actions, CTe = S6.reducer, wTe = (e, t) => {+}), { setBrushSettings: MEe } = S6.actions, NEe = S6.reducer, PEe = (e, t) => {var { x: n, y: r } = e, { x: i, y: a } = t;return {x: Math.min(n, i),@@ -62578,9 +63965,9 @@ var b6 = (e) => {width: Math.abs(i - n),height: Math.abs(a - r)};-}, TTe = (e) => {+}, FEe = (e) => {var { x1: t, y1: n, x2: r, y2: i } = e;- return wTe({+ return PEe({x: t,y: n}, {@@ -62588,13 +63975,13 @@ var b6 = (e) => {y: i});};-function ETe(e) {+function IEe(e) {return (e % 180 + 180) % 180;}-var DTe = function(e) {- var { width: t, height: n } = e, r = ETe(arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0) * Math.PI / 180, i = Math.atan(n / t), a = r > i && r < Math.PI - i ? n / Math.sin(r) : t / Math.cos(r);+var LEe = function(e) {+ var { width: t, height: n } = e, r = IEe(arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0) * Math.PI / 180, i = Math.atan(n / t), a = r > i && r < Math.PI - i ? n / Math.sin(r) : t / Math.cos(r);return Math.abs(a);-}, C6 = NH({+}, C6 = CU({name: "referenceElements",initialState: {dots: [],@@ -62606,26 +63993,26 @@ var DTe = function(e) {e.dots.push(t.payload);},removeDot: (e, t) => {- var n = iH(e).dots.findIndex((e) => e === t.payload);+ var n = JH(e).dots.findIndex((e) => e === t.payload);n !== -1 && e.dots.splice(n, 1);},addArea: (e, t) => {e.areas.push(t.payload);},removeArea: (e, t) => {- var n = iH(e).areas.findIndex((e) => e === t.payload);+ var n = JH(e).areas.findIndex((e) => e === t.payload);n !== -1 && e.areas.splice(n, 1);},addLine: (e, t) => {- e.lines.push(oK(t.payload));+ e.lines.push(XK(t.payload));},removeLine: (e, t) => {- var n = iH(e).lines.findIndex((e) => e === t.payload);+ var n = JH(e).lines.findIndex((e) => e === t.payload);n !== -1 && e.lines.splice(n, 1);}}-}), { addDot: OTe, removeDot: kTe, addArea: ATe, removeArea: jTe, addLine: MTe, removeLine: NTe } = C6.actions, PTe = C6.reducer, w6 = /*#__PURE__*/ (0, I.createContext)(void 0), FTe = (e) => {- var { children: t } = e, [n] = (0, I.useState)(`${Dz("recharts")}-clip`), r = k3();+}), { addDot: REe, removeDot: zEe, addArea: BEe, removeArea: VEe, addLine: HEe, removeLine: UEe } = C6.actions, WEe = C6.reducer, w6 = /*#__PURE__*/ (0, I.createContext)(void 0), GEe = (e) => {+ var { children: t } = e, [n] = (0, I.useState)(`${aB("recharts")}-clip`), r = k3();if (r == null) return null;var { x: i, y: a, width: o, height: s } = r;return /*#__PURE__*/ I.createElement(w6.Provider, { value: n }, /*#__PURE__*/ I.createElement("defs", null, /*#__PURE__*/ I.createElement("clipPath", { id: n }, /*#__PURE__*/ I.createElement("rect", {@@ -62634,7 +64021,7 @@ var DTe = function(e) {height: s,width: o}))), t);-}, ITe = () => (0, I.useContext)(w6), LTe = class {+}, KEe = () => (0, I.useContext)(w6), qEe = class {constructor(e) {var { x: t, y: n } = e;this.xAxisScale = t, this.yAxisScale = n;@@ -62674,26 +64061,26 @@ function E6(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? T6(Object(n), !0).forEach(function(t) {- RTe(e, t, n[t]);+ JEe(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : T6(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function RTe(e, t, n) {- return (t = zTe(t)) in e ? Object.defineProperty(e, t, {+function JEe(e, t, n) {+ return (t = YEe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function zTe(e) {- var t = BTe(e, "string");+function YEe(e) {+ var t = XEe(e, "string");return typeof t == "symbol" ? t : t + "";}-function BTe(e, t) {+function XEe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -62712,18 +64099,18 @@ function D6() {return e;}, D6.apply(null, arguments);}-var VTe = (e, t) => {+var ZEe = (e, t) => {var n;if (/*#__PURE__*/ I.isValidElement(e)) n = /*#__PURE__*/ I.cloneElement(e, t);else if (typeof e == "function") n = e(t);else {- if (!OU(t.x1) || !OU(t.y1) || !OU(t.x2) || !OU(t.y2)) return null;+ if (!vW(t.x1) || !vW(t.y1) || !vW(t.x2) || !vW(t.y2)) return null;n = /*#__PURE__*/ I.createElement("line", D6({}, t, { className: "recharts-reference-line-line" }));}return n;-}, HTe = (e, t, n, r, i, a) => {+}, QEe = (e, t, n, r, i, a) => {var { x: o, width: s } = a, c = i.map(e, { position: n });- if (!OU(c) || t === "discard" && !i.isInRange(c)) return null;+ if (!vW(c) || t === "discard" && !i.isInRange(c)) return null;var l = [{x: o + s,y: c@@ -62732,9 +64119,9 @@ var VTe = (e, t) => {y: c}];return r === "left" ? l.reverse() : l;-}, UTe = (e, t, n, r, i, a) => {+}, $Ee = (e, t, n, r, i, a) => {var { y: o, height: s } = a, c = i.map(e, { position: n });- if (!OU(c) || t === "discard" && !i.isInRange(c)) return null;+ if (!vW(c) || t === "discard" && !i.isInRange(c)) return null;var l = [{x: c,y: o + s@@ -62743,7 +64130,7 @@ var VTe = (e, t) => {y: o}];return r === "top" ? l.reverse() : l;-}, WTe = (e, t, n, r) => {+}, eDe = (e, t, n, r) => {var i = [r.mapWithFallback(e[0], {position: n,fallback: "rangeMin"@@ -62752,43 +64139,43 @@ var VTe = (e, t) => {fallback: "rangeMax"})];return t === "discard" && i.some((e) => !r.isInRange(e)) ? null : i;-}, GTe = (e, t, n, r, i, a, o) => {- var { x: s, y: c, segment: l, ifOverflow: u } = o, d = Ez(s);- return Ez(c) ? HTe(c, u, r, a, t, n) : d ? UTe(s, u, r, i, e, n) : l != null && l.length === 2 ? WTe(l, u, r, new LTe({+}, tDe = (e, t, n, r, i, a, o) => {+ var { x: s, y: c, segment: l, ifOverflow: u } = o, d = iB(s);+ return iB(c) ? QEe(c, u, r, a, t, n) : d ? $Ee(s, u, r, i, e, n) : l != null && l.length === 2 ? eDe(l, u, r, new qEe({x: e,y: t})) : null;};-function KTe(e) {- var t = vB();- return (0, I.useEffect)(() => (t(MTe(e)), () => {- t(NTe(e));+function nDe(e) {+ var t = XB();+ return (0, I.useEffect)(() => (t(HEe(e)), () => {+ t(UEe(e));})), null;}-function qTe(e) {- var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = wW(), s = ITe(), c = Q((e) => N$(e, t)), l = Q((e) => I$(e, n)), u = Q((e) => N1(e, "xAxis", t, o)), d = Q((e) => N1(e, "yAxis", n, o)), f = QW();+function rDe(e) {+ var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = mG(), s = KEe(), c = Q((e) => N$(e, t)), l = Q((e) => I$(e, n)), u = Q((e) => N1(e, "xAxis", t, o)), d = Q((e) => N1(e, "yAxis", n, o)), f = HG();if (!s || !f || c == null || l == null || u == null || d == null) return null;- var p = GTe(u, d, f, e.position, c.orientation, l.orientation, e);+ var p = tDe(u, d, f, e.position, c.orientation, l.orientation, e);if (!p) return null;var m = p[0], h = p[1];if (m == null || h == null) return null;- var { x: g, y: _ } = m, { x: v, y } = h, b = E6(E6({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, _R(e)), {}, {+ var { x: g, y: _ } = m, { x: v, y } = h, b = E6(E6({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, YR(e)), {}, {x1: g,y1: _,x2: v,y2: y- }), x = TTe({+ }), x = FEe({x1: g,y1: _,x2: v,y2: y});- return /*#__PURE__*/ I.createElement(t2, { zIndex: e.zIndex }, /*#__PURE__*/ I.createElement(xR, { className: Jm("recharts-reference-line", i) }, VTe(r, b), /*#__PURE__*/ I.createElement(Z2, D6({}, x, {+ return /*#__PURE__*/ I.createElement(t2, { zIndex: e.zIndex }, /*#__PURE__*/ I.createElement($R, { className: Xm("recharts-reference-line", i) }, ZEe(r, b), /*#__PURE__*/ I.createElement(Z2, D6({}, x, {lowerWidth: x.width,upperWidth: x.width}), /*#__PURE__*/ I.createElement(a4, { label: e.label }), e.children)));}-var JTe = {+var iDe = {ifOverflow: "discard",xAxisId: 0,yAxisId: 0,@@ -62801,15 +64188,15 @@ var JTe = {zIndex: BY.line};function O6(e) {- var t = Gz(e, JTe);- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(KTe, {+ var t = CB(e, iDe);+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(nDe, {yAxisId: t.yAxisId,xAxisId: t.xAxisId,ifOverflow: t.ifOverflow,x: t.x,y: t.y,segment: t.segment- }), /*#__PURE__*/ I.createElement(qTe, t));+ }), /*#__PURE__*/ I.createElement(rDe, t));}O6.displayName = "ReferenceLine";//#endregion@@ -62825,13 +64212,13 @@ function k6(e, t) {}//#endregion//#region node_modules/recharts/es6/util/TickUtils.js-function YTe(e, t, n) {- return DTe({+function aDe(e, t, n) {+ return LEe({width: e.width + t.width,height: e.height + t.height}, n);}-function XTe(e, t, n) {+function oDe(e, t, n) {var r = n === "width", { x: i, y: a, width: o, height: s } = e;return t === 1 ? {start: r ? i : a,@@ -62846,12 +64233,12 @@ function A6(e, t, n, r, i) {var a = n();return e * (t - e * a / 2 - r) >= 0 && e * (t + e * a / 2 - i) <= 0;}-function ZTe(e, t) {+function sDe(e, t) {return k6(e, t + 1);}//#endregion//#region node_modules/recharts/es6/cartesian/getEquidistantTicks.js-function QTe(e, t, n, r, i) {+function cDe(e, t, n, r, i) {for (var a = (r || []).slice(), { start: o, end: s } = t, c = 0, l = 1, u = o, d = function() {var t = r?.[c];if (t === void 0) return { v: k6(r, l) };@@ -62860,7 +64247,7 @@ function QTe(e, t, n, r, i) {}, f; l <= a.length;) if (f = d(), f) return f.v;return [];}-function $Te(e, t, n, r, i) {+function lDe(e, t, n, r, i) {var a = (r || []).slice().length;if (a === 0) return [];for (var { start: o, end: s } = t, c = 1; c <= a; c++) {@@ -62897,26 +64284,26 @@ function M6(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? j6(Object(n), !0).forEach(function(t) {- eEe(e, t, n[t]);+ uDe(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : j6(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function eEe(e, t, n) {- return (t = tEe(t)) in e ? Object.defineProperty(e, t, {+function uDe(e, t, n) {+ return (t = dDe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function tEe(e) {- var t = nEe(e, "string");+function dDe(e) {+ var t = fDe(e, "string");return typeof t == "symbol" ? t : t + "";}-function nEe(e, t) {+function fDe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -62926,7 +64313,7 @@ function nEe(e, t) {}return (t === "string" ? String : Number)(e);}-function rEe(e, t, n, r, i) {+function pDe(e, t, n, r, i) {for (var a = (r || []).slice(), o = a.length, { start: s } = t, { end: c } = t, l = function(t) {var r = a[t];if (r == null) return 1;@@ -62939,7 +64326,7 @@ function rEe(e, t, n, r, i) {}, u = o - 1; u >= 0; u--) if (l(u)) continue;return a;}-function iEe(e, t, n, r, i, a) {+function mDe(e, t, n, r, i, a) {var o = (r || []).slice(), s = o.length, { start: c, end: l } = t;if (a) {var u = r[s - 1];@@ -62963,7 +64350,7 @@ function iEe(e, t, n, r, i, a) {function N6(e, t, n) {var { tick: r, ticks: i, viewBox: a, minTickGap: o, orientation: s, interval: c, tickFormatter: l, unit: u, angle: d } = e;if (!i || !i.length || !r) return [];- if (Z(c) || pq.isSsr) return ZTe(i, Z(c) ? c : 0) ?? [];+ if (Z(c) || rJ.isSsr) return sDe(i, Z(c) ? c : 0) ?? [];var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? w2(u, {fontSize: t,letterSpacing: n@@ -62972,19 +64359,19 @@ function N6(e, t, n) {height: 0}, h = (e, r) => {var i = typeof l == "function" ? l(e.value, r) : e.value;- return p === "width" ? YTe(w2(i, {+ return p === "width" ? aDe(w2(i, {fontSize: t,letterSpacing: n}), m, d) : w2(i, {fontSize: t,letterSpacing: n})[p];- }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? Cz(_.coordinate - g.coordinate) : 1, y = XTe(a, v, p);- return c === "equidistantPreserveStart" ? QTe(v, y, h, i, o) : c === "equidistantPreserveEnd" ? $Te(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? iEe(v, y, h, i, o, c === "preserveStartEnd") : rEe(v, y, h, i, o), f.filter((e) => e.isShow));+ }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? tB(_.coordinate - g.coordinate) : 1, y = oDe(a, v, p);+ return c === "equidistantPreserveStart" ? cDe(v, y, h, i, o) : c === "equidistantPreserveEnd" ? lDe(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? mDe(v, y, h, i, o, c === "preserveStartEnd") : pDe(v, y, h, i, o), f.filter((e) => e.isShow));}//#endregion//#region node_modules/recharts/es6/util/YAxisUtils.js-var aEe = (e) => {+var hDe = (e) => {var { ticks: t, label: n, labelGapWithTick: r = 5, tickSize: i = 0, tickMargin: a = 0 } = e, o = 0;if (t) {Array.from(t).forEach((e) => {@@ -62997,7 +64384,7 @@ var aEe = (e) => {return Math.round(l);}return 0;-}, P6 = NH({+}, P6 = CU({name: "renderedTicks",initialState: {xAxis: {},@@ -63006,14 +64393,14 @@ var aEe = (e) => {reducers: {setRenderedTicks: (e, t) => {var { axisType: n, axisId: r, ticks: i } = t.payload;- e[n][r] = oK(i);+ e[n][r] = XK(i);},removeRenderedTicks: (e, t) => {var { axisType: n, axisId: r } = t.payload;delete e[n][r];}}-}), { setRenderedTicks: oEe, removeRenderedTicks: sEe } = P6.actions, cEe = P6.reducer, lEe = [+}), { setRenderedTicks: gDe, removeRenderedTicks: _De } = P6.actions, vDe = P6.reducer, yDe = ["axisLine","width","height",@@ -63023,16 +64410,16 @@ var aEe = (e) => {"axisType","axisId"];-function uEe(e, t) {+function bDe(e, t) {if (e == null) return {};- var n, r, i = dEe(e, t);+ var n, r, i = xDe(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function dEe(e, t) {+function xDe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -63064,26 +64451,26 @@ function L6(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? I6(Object(n), !0).forEach(function(t) {- fEe(e, t, n[t]);+ SDe(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : I6(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function fEe(e, t, n) {- return (t = pEe(t)) in e ? Object.defineProperty(e, t, {+function SDe(e, t, n) {+ return (t = CDe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function pEe(e) {- var t = mEe(e, "string");+function CDe(e) {+ var t = wDe(e, "string");return typeof t == "symbol" ? t : t + "";}-function mEe(e, t) {+function wDe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -63117,10 +64504,10 @@ var R6 = {interval: "preserveEnd",zIndex: BY.axis};-function hEe(e) {+function TDe(e) {var { x: t, y: n, width: r, height: i, orientation: a, mirror: o, axisLine: s, otherSvgProps: c } = e;if (!s) return null;- var l = L6(L6(L6({}, c), hR(s)), {}, { fill: "none" });+ var l = L6(L6(L6({}, c), qR(s)), {}, { fill: "none" });if (a === "top" || a === "bottom") {var u = +(a === "top" && !o || a === "bottom" && o);l = L6(L6({}, l), {}, {@@ -63138,9 +64525,9 @@ function hEe(e) {y2: n + i});}- return /*#__PURE__*/ I.createElement("line", F6({}, l, { className: Jm("recharts-cartesian-axis-line", bz(s, "className")) }));+ return /*#__PURE__*/ I.createElement("line", F6({}, l, { className: Xm("recharts-cartesian-axis-line", Qz(s, "className")) }));}-function gEe(e, t, n, r, i, a, o, s, c) {+function EDe(e, t, n, r, i, a, o, s, c) {var l, u, d, f, p, m, h = s ? -1 : 1, g = e.tickSize || o, _ = Z(e.tickCoord) ? e.tickCoord : e.coordinate;switch (a) {case "top":@@ -63167,14 +64554,14 @@ function gEe(e, t, n, r, i, a, o, s, c) {}};}-function _Ee(e, t) {+function DDe(e, t) {switch (e) {case "left": return t ? "start" : "end";case "right": return t ? "end" : "start";default: return "middle";}}-function vEe(e, t) {+function ODe(e, t) {switch (e) {case "left":case "right": return "middle";@@ -63182,19 +64569,19 @@ function vEe(e, t) {default: return t ? "end" : "start";}}-function yEe(e) {- var { option: t, tickProps: n, value: r } = e, i, a = Jm(n.className, "recharts-cartesian-axis-tick-value");+function kDe(e) {+ var { option: t, tickProps: n, value: r } = e, i, a = Xm(n.className, "recharts-cartesian-axis-tick-value");if (/*#__PURE__*/ I.isValidElement(t)) i = /*#__PURE__*/ I.cloneElement(t, L6(L6({}, n), {}, { className: a }));else if (typeof t == "function") i = t(L6(L6({}, n), {}, { className: a }));else {var o = "recharts-cartesian-axis-tick-value";- typeof t != "boolean" && (o = Jm(o, z4(t))), i = /*#__PURE__*/ I.createElement(U2, F6({}, n, { className: o }), r);+ typeof t != "boolean" && (o = Xm(o, z4(t))), i = /*#__PURE__*/ I.createElement(U2, F6({}, n, { className: o }), r);}return i;}-function bEe(e) {- var { ticks: t, axisType: n, axisId: r } = e, i = vB();- return (0, I.useEffect)(() => r == null || n == null ? Fz : (i(oEe({+function ADe(e) {+ var { ticks: t, axisType: n, axisId: r } = e, i = XB();+ return (0, I.useEffect)(() => r == null || n == null ? pB : (i(gDe({ticks: t.map((e) => ({value: e.value,coordinate: e.coordinate,@@ -63204,7 +64591,7 @@ function bEe(e) {axisId: r,axisType: n})), () => {- i(sEe({+ i(_De({axisId: r,axisType: n}));@@ -63215,15 +64602,15 @@ function bEe(e) {n]), null;}-var xEe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {- var { ticks: n = [], tick: r, tickLine: i, stroke: a, tickFormatter: o, unit: s, padding: c, tickTextProps: l, orientation: u, mirror: d, x: f, y: p, width: m, height: h, tickSize: g, tickMargin: _, fontSize: v, letterSpacing: y, getTicksConfig: b, events: x, axisType: S, axisId: C } = e, w = N6(L6(L6({}, b), {}, { ticks: n }), v, y), T = hR(b), E = gR(r), D = L2(T.textAnchor) ? T.textAnchor : _Ee(u, d), O = vEe(u, d), k = {};+var jDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {+ var { ticks: n = [], tick: r, tickLine: i, stroke: a, tickFormatter: o, unit: s, padding: c, tickTextProps: l, orientation: u, mirror: d, x: f, y: p, width: m, height: h, tickSize: g, tickMargin: _, fontSize: v, letterSpacing: y, getTicksConfig: b, events: x, axisType: S, axisId: C } = e, w = N6(L6(L6({}, b), {}, { ticks: n }), v, y), T = qR(b), E = JR(r), D = L2(T.textAnchor) ? T.textAnchor : DDe(u, d), O = ODe(u, d), k = {};typeof i == "object" && (k = i);- var A = L6(L6({}, T), {}, { fill: "none" }, k), j = w.map((e) => L6({ entry: e }, gEe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {+ var A = L6(L6({}, T), {}, { fill: "none" }, k), j = w.map((e) => L6({ entry: e }, EDe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {var { entry: t, line: n } = e;- return /*#__PURE__*/ I.createElement(xR, {+ return /*#__PURE__*/ I.createElement($R, {className: "recharts-cartesian-axis-tick",key: `tick-${t.value}-${t.coordinate}-${t.tickCoord}`- }, i && /*#__PURE__*/ I.createElement("line", F6({}, A, n, { className: Jm("recharts-cartesian-axis-tick-line", bz(i, "className")) })));+ }, i && /*#__PURE__*/ I.createElement("line", F6({}, A, n, { className: Xm("recharts-cartesian-axis-tick-line", Qz(i, "className")) })));}), N = j.map((e, t) => {var { entry: n, tick: i } = e, u = L6(L6({}, L6(L6(L6(L6({ verticalAnchor: O }, T), {}, {textAnchor: D,@@ -63236,16 +64623,16 @@ var xEe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {tickFormatter: o,padding: c}, l), {}, { angle: l?.angle ?? T.angle ?? 0 })), E);- return /*#__PURE__*/ I.createElement(xR, F6({+ return /*#__PURE__*/ I.createElement($R, F6({className: "recharts-cartesian-axis-tick-label",key: `tick-label-${n.value}-${n.coordinate}-${n.tickCoord}`- }, Uz(x, n, t)), r && /*#__PURE__*/ I.createElement(yEe, {+ }, xB(x, n, t)), r && /*#__PURE__*/ I.createElement(kDe, {option: r,tickProps: u,value: `${typeof o == "function" ? o(n.value, t) : n.value}${s || ""}`}));});- return /*#__PURE__*/ I.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${S}-ticks` }, /*#__PURE__*/ I.createElement(bEe, {+ return /*#__PURE__*/ I.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${S}-ticks` }, /*#__PURE__*/ I.createElement(ADe, {ticks: w,axisId: C,axisType: S@@ -63253,9 +64640,9 @@ var xEe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {className: `recharts-cartesian-axis-tick-labels recharts-${S}-tick-labels`,ref: t}, N)), M.length > 0 && /*#__PURE__*/ I.createElement("g", { className: `recharts-cartesian-axis-tick-lines recharts-${S}-tick-lines` }, M));-}), SEe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {- var { axisLine: n, width: r, height: i, className: a, hide: o, ticks: s, axisType: c, axisId: l } = e, u = uEe(e, lEe), [d, f] = (0, I.useState)(""), [p, m] = (0, I.useState)(""), h = (0, I.useRef)(null);- (0, I.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => aEe({+}), MDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {+ var { axisLine: n, width: r, height: i, className: a, hide: o, ticks: s, axisType: c, axisId: l } = e, u = bDe(e, yDe), [d, f] = (0, I.useState)(""), [p, m] = (0, I.useState)(""), h = (0, I.useRef)(null);+ (0, I.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => hDe({ticks: h.current,label: e.labelRef?.current,labelGapWithTick: 5,@@ -63273,7 +64660,7 @@ var xEe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {}}}, [d, p]);- return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ I.createElement(t2, { zIndex: e.zIndex }, /*#__PURE__*/ I.createElement(xR, { className: Jm("recharts-cartesian-axis", a) }, /*#__PURE__*/ I.createElement(hEe, {+ return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ I.createElement(t2, { zIndex: e.zIndex }, /*#__PURE__*/ I.createElement($R, { className: Xm("recharts-cartesian-axis", a) }, /*#__PURE__*/ I.createElement(TDe, {x: e.x,y: e.y,width: r,@@ -63281,8 +64668,8 @@ var xEe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {orientation: e.orientation,mirror: e.mirror,axisLine: n,- otherSvgProps: hR(e)- }), /*#__PURE__*/ I.createElement(xEe, {+ otherSvgProps: qR(e)+ }), /*#__PURE__*/ I.createElement(jDe, {ref: g,axisType: c,events: u,@@ -63318,19 +64705,19 @@ var xEe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {labelRef: e.labelRef}), e.children)));}), z6 = /*#__PURE__*/ I.forwardRef((e, t) => {- var n = Gz(e, R6);- return /*#__PURE__*/ I.createElement(SEe, F6({}, n, { ref: t }));+ var n = CB(e, R6);+ return /*#__PURE__*/ I.createElement(MDe, F6({}, n, { ref: t }));});z6.displayName = "CartesianAxis";//#endregion//#region node_modules/recharts/es6/cartesian/CartesianGrid.js-var CEe = [+var NDe = ["x1","y1","x2","y2","key"-], wEe = ["offset"], TEe = ["xAxisId", "yAxisId"], EEe = ["xAxisId", "yAxisId"];+], PDe = ["offset"], FDe = ["xAxisId", "yAxisId"], IDe = ["xAxisId", "yAxisId"];function B6(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {@@ -63345,26 +64732,26 @@ function V6(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? B6(Object(n), !0).forEach(function(t) {- DEe(e, t, n[t]);+ LDe(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : B6(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function DEe(e, t, n) {- return (t = OEe(t)) in e ? Object.defineProperty(e, t, {+function LDe(e, t, n) {+ return (t = RDe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function OEe(e) {- var t = kEe(e, "string");+function RDe(e) {+ var t = zDe(e, "string");return typeof t == "symbol" ? t : t + "";}-function kEe(e, t) {+function zDe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -63385,14 +64772,14 @@ function H6() {}function U6(e, t) {if (e == null) return {};- var n, r, i = AEe(e, t);+ var n, r, i = BDe(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function AEe(e, t) {+function BDe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -63401,7 +64788,7 @@ function AEe(e, t) {}return n;}-var jEe = (e) => {+var VDe = (e) => {var { fill: t } = e;if (!t || t === "none") return null;var { fillOpacity: n, x: r, y: i, width: a, height: o, ry: s } = e;@@ -63422,7 +64809,7 @@ function W6(e) {if (/*#__PURE__*/ I.isValidElement(t)) r = /*#__PURE__*/ I.cloneElement(t, n);else if (typeof t == "function") r = t(n);else {- var { x1: i, y1: a, x2: o, y2: s, key: c } = n, l = hR(U6(n, CEe)) ?? {}, { offset: u } = l, d = U6(l, wEe);+ var { x1: i, y1: a, x2: o, y2: s, key: c } = n, l = qR(U6(n, NDe)) ?? {}, { offset: u } = l, d = U6(l, PDe);r = /*#__PURE__*/ I.createElement("line", H6({}, d, {x1: i,y1: a,@@ -63434,10 +64821,10 @@ function W6(e) {}return r;}-function MEe(e) {+function HDe(e) {var { x: t, width: n, horizontal: r = !0, horizontalPoints: i } = e;if (!r || !i || !i.length) return null;- var { xAxisId: a, yAxisId: o } = e, s = U6(e, TEe), c = i.map((e, i) => {+ var { xAxisId: a, yAxisId: o } = e, s = U6(e, FDe), c = i.map((e, i) => {var a = V6(V6({}, s), {}, {x1: t,y1: e,@@ -63454,10 +64841,10 @@ function MEe(e) {});return /*#__PURE__*/ I.createElement("g", { className: "recharts-cartesian-grid-horizontal" }, c);}-function NEe(e) {+function UDe(e) {var { y: t, height: n, vertical: r = !0, verticalPoints: i } = e;if (!r || !i || !i.length) return null;- var { xAxisId: a, yAxisId: o } = e, s = U6(e, EEe), c = i.map((e, i) => {+ var { xAxisId: a, yAxisId: o } = e, s = U6(e, IDe), c = i.map((e, i) => {var a = V6(V6({}, s), {}, {x1: e,y1: t,@@ -63474,7 +64861,7 @@ function NEe(e) {});return /*#__PURE__*/ I.createElement("g", { className: "recharts-cartesian-grid-vertical" }, c);}-function PEe(e) {+function WDe(e) {var { horizontalFill: t, fillOpacity: n, x: r, y: i, width: a, height: o, horizontalPoints: s, horizontal: c = !0 } = e;if (!c || !t || !t.length || s == null) return null;var l = s.map((e) => Math.round(e + i - i)).sort((e, t) => e - t);@@ -63497,7 +64884,7 @@ function PEe(e) {});return /*#__PURE__*/ I.createElement("g", { className: "recharts-cartesian-gridstripes-horizontal" }, u);}-function FEe(e) {+function GDe(e) {var { vertical: t = !0, verticalFill: n, fillOpacity: r, x: i, y: a, width: o, height: s, verticalPoints: c } = e;if (!t || !n || !n.length) return null;var l = c.map((e) => Math.round(e + i - i)).sort((e, t) => e - t);@@ -63520,10 +64907,10 @@ function FEe(e) {});return /*#__PURE__*/ I.createElement("g", { className: "recharts-cartesian-gridstripes-vertical" }, u);}-var IEe = (e, t) => {+var KDe = (e, t) => {var { xAxis: n, width: r, height: i, offset: a } = e;- return RU(N6(V6(V6(V6({}, R6), n), {}, {- ticks: zU(n, !0),+ return OW(N6(V6(V6(V6({}, R6), n), {}, {+ ticks: kW(n, !0),viewBox: {x: 0,y: 0,@@ -63531,10 +64918,10 @@ var IEe = (e, t) => {height: i}})), a.left, a.left + a.width, t);-}, LEe = (e, t) => {+}, qDe = (e, t) => {var { yAxis: n, width: r, height: i, offset: a } = e;- return RU(N6(V6(V6(V6({}, R6), n), {}, {- ticks: zU(n, !0),+ return OW(N6(V6(V6(V6({}, R6), n), {}, {+ ticks: kW(n, !0),viewBox: {x: 0,y: 0,@@ -63542,7 +64929,7 @@ var IEe = (e, t) => {height: i}})), a.top, a.top + a.height, t);-}, REe = {+}, JDe = {horizontal: !0,vertical: !0,horizontalPoints: [],@@ -63557,14 +64944,14 @@ var IEe = (e, t) => {zIndex: BY.grid};function G6(e) {- var t = tG(), n = nG(), r = eG(), i = V6(V6({}, Gz(e, REe)), {}, {+ var t = GG(), n = KG(), r = WG(), i = V6(V6({}, CB(e, JDe)), {}, {x: Z(e.x) ? e.x : r.left,y: Z(e.y) ? e.y : r.top,width: Z(e.width) ? e.width : r.width,height: Z(e.height) ? e.height : r.height- }), { xAxisId: a, yAxisId: o, x: s, y: c, width: l, height: u, syncWithTicks: d, horizontalValues: f, verticalValues: p } = i, m = wW(), h = Q((e) => U1(e, "xAxis", a, m)), g = Q((e) => U1(e, "yAxis", o, m));- if (!kU(l) || !kU(u) || !Z(s) || !Z(c)) return null;- var _ = i.verticalCoordinatesGenerator || IEe, v = i.horizontalCoordinatesGenerator || LEe, { horizontalPoints: y, verticalPoints: b } = i;+ }), { xAxisId: a, yAxisId: o, x: s, y: c, width: l, height: u, syncWithTicks: d, horizontalValues: f, verticalValues: p } = i, m = mG(), h = Q((e) => U1(e, "xAxis", a, m)), g = Q((e) => U1(e, "yAxis", o, m));+ if (!yW(l) || !yW(u) || !Z(s) || !Z(c)) return null;+ var _ = i.verticalCoordinatesGenerator || KDe, v = i.horizontalCoordinatesGenerator || qDe, { horizontalPoints: y, verticalPoints: b } = i;if ((!y || !y.length) && typeof v == "function") {var x = f && f.length, S = v({yAxis: g ? V6(V6({}, g), {}, { ticks: x ? f : g.ticks }) : void 0,@@ -63572,7 +64959,7 @@ function G6(e) {height: n ?? u,offset: r}, x ? !0 : d);- AW(Array.isArray(S), `horizontalCoordinatesGenerator should return Array but instead it returned [${typeof S}]`), Array.isArray(S) && (y = S);+ bG(Array.isArray(S), `horizontalCoordinatesGenerator should return Array but instead it returned [${typeof S}]`), Array.isArray(S) && (y = S);}if ((!b || !b.length) && typeof _ == "function") {var C = p && p.length, w = _({@@ -63581,9 +64968,9 @@ function G6(e) {height: n ?? u,offset: r}, C ? !0 : d);- AW(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);+ bG(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);}- return /*#__PURE__*/ I.createElement(t2, { zIndex: i.zIndex }, /*#__PURE__*/ I.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ I.createElement(jEe, {+ return /*#__PURE__*/ I.createElement(t2, { zIndex: i.zIndex }, /*#__PURE__*/ I.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ I.createElement(VDe, {fill: i.fill,fillOpacity: i.fillOpacity,x: i.x,@@ -63591,12 +64978,12 @@ function G6(e) {width: i.width,height: i.height,ry: i.ry- }), /*#__PURE__*/ I.createElement(PEe, H6({}, i, { horizontalPoints: y })), /*#__PURE__*/ I.createElement(FEe, H6({}, i, { verticalPoints: b })), /*#__PURE__*/ I.createElement(MEe, H6({}, i, {+ }), /*#__PURE__*/ I.createElement(WDe, H6({}, i, { horizontalPoints: y })), /*#__PURE__*/ I.createElement(GDe, H6({}, i, { verticalPoints: b })), /*#__PURE__*/ I.createElement(HDe, H6({}, i, {offset: r,horizontalPoints: y,xAxis: h,yAxis: g- })), /*#__PURE__*/ I.createElement(NEe, H6({}, i, {+ })), /*#__PURE__*/ I.createElement(UDe, H6({}, i, {offset: r,verticalPoints: b,xAxis: h,@@ -63606,7 +64993,7 @@ function G6(e) {G6.displayName = "CartesianGrid";//#endregion//#region node_modules/recharts/es6/state/errorBarSlice.js-var K6 = NH({+var K6 = CU({name: "errorBars",initialState: {},reducers: {@@ -63623,17 +65010,17 @@ var K6 = NH({e[n] && (e[n] = e[n].filter((e) => e.dataKey !== r.dataKey || e.direction !== r.direction));}}-}), { addErrorBar: zEe, replaceErrorBar: BEe, removeErrorBar: VEe } = K6.actions, HEe = K6.reducer, UEe = ["children"];-function WEe(e, t) {+}), { addErrorBar: YDe, replaceErrorBar: XDe, removeErrorBar: ZDe } = K6.actions, QDe = K6.reducer, $De = ["children"];+function eOe(e, t) {if (e == null) return {};- var n, r, i = GEe(e, t);+ var n, r, i = tOe(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function GEe(e, t) {+function tOe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -63642,7 +65029,7 @@ function GEe(e, t) {}return n;}-var KEe = /*#__PURE__*/ (0, I.createContext)({+var nOe = /*#__PURE__*/ (0, I.createContext)({data: [],xAxisId: "xAxis-0",yAxisId: "yAxis-0",@@ -63654,8 +65041,8 @@ var KEe = /*#__PURE__*/ (0, I.createContext)({errorBarOffset: 0});function q6(e) {- var { children: t } = e, n = WEe(e, UEe);- return /*#__PURE__*/ I.createElement(KEe.Provider, { value: n }, t);+ var { children: t } = e, n = eOe(e, $De);+ return /*#__PURE__*/ I.createElement(nOe.Provider, { value: n }, t);}//#endregion//#region node_modules/recharts/es6/cartesian/GraphicalItemClipPath.js@@ -63680,30 +65067,30 @@ function Y6(e) {}//#endregion//#region node_modules/recharts/es6/state/selectors/lineSelectors.js-var X6 = (e, t, n, r) => J1(e, "xAxis", t, r), Z6 = (e, t, n, r) => q1(e, "xAxis", t, r), Q6 = (e, t, n, r) => J1(e, "yAxis", n, r), $6 = (e, t, n, r) => q1(e, "yAxis", n, r), qEe = $([- iG,+var X6 = (e, t, n, r) => J1(e, "xAxis", t, r), Z6 = (e, t, n, r) => q1(e, "xAxis", t, r), Q6 = (e, t, n, r) => J1(e, "yAxis", n, r), $6 = (e, t, n, r) => q1(e, "yAxis", n, r), rOe = $([+ JG,X6,Q6,Z6,$6-], (e, t, n, r, i) => LU(e, "xAxis") ? QU(t, r, !1) : QU(n, i, !1)), JEe = (e, t, n, r, i) => i;-function YEe(e) {+], (e, t, n, r, i) => DW(e, "xAxis") ? HW(t, r, !1) : HW(n, i, !1)), iOe = (e, t, n, r, i) => i;+function aOe(e) {return e.type === "line";}-var XEe = $([- iG,+var oOe = $([+ JG,X6,Q6,Z6,$6,- $([H$, JEe], (e, t) => e.filter(YEe).find((e) => e.id === t)),- qEe,+ $([H$, iOe], (e, t) => e.filter(aOe).find((e) => e.id === t)),+ rOe,gY], (e, t, n, r, i, a, o, s) => {var { chartData: c, dataStartIndex: l, dataEndIndex: u } = s;if (!(a == null || t == null || n == null || r == null || i == null || r.length === 0 || i.length === 0 || o == null || e !== "horizontal" && e !== "vertical")) {var { dataKey: d, data: f } = a, p = f != null && f.length > 0 ? f : c?.slice(l, u + 1);- if (p != null) return gDe({+ if (p != null) return EOe({layout: e,xAxis: t,yAxis: n,@@ -63718,7 +65105,7 @@ var XEe = $([//#endregion//#region node_modules/recharts/es6/util/getRadiusAndStrokeWidthFromDot.jsfunction e8(e) {- var t = gR(e), n = 3, r = 2;+ var t = JR(e), n = 3, r = 2;if (t != null) {var { r: i, strokeWidth: a } = t, o = Number(i), s = Number(a);return (Number.isNaN(o) || o < 0) && (o = n), (Number.isNaN(s) || s < 0) && (s = r), {@@ -63733,13 +65120,13 @@ function e8(e) {}//#endregion//#region node_modules/recharts/es6/cartesian/Line.js-var ZEe = ["id"], QEe = [+var sOe = ["id"], cOe = ["type","layout","connectNulls","needClip","shape"-], $Ee = [+], lOe = ["activeDot","animateNewValues","animationBegin",@@ -63778,26 +65165,26 @@ function r8(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? n8(Object(n), !0).forEach(function(t) {- eDe(e, t, n[t]);+ uOe(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : n8(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function eDe(e, t, n) {- return (t = tDe(t)) in e ? Object.defineProperty(e, t, {+function uOe(e, t, n) {+ return (t = dOe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function tDe(e) {- var t = nDe(e, "string");+function dOe(e) {+ var t = fOe(e, "string");return typeof t == "symbol" ? t : t + "";}-function nDe(e, t) {+function fOe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -63809,14 +65196,14 @@ function nDe(e, t) {}function i8(e, t) {if (e == null) return {};- var n, r, i = rDe(e, t);+ var n, r, i = pOe(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function rDe(e, t) {+function pOe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -63825,27 +65212,27 @@ function rDe(e, t) {}return n;}-var iDe = (e) => {+var mOe = (e) => {var { dataKey: t, name: n, stroke: r, legendType: i, hide: a } = e;return [{inactive: a,dataKey: t,type: i,color: r,- value: eW(n, t),+ value: WW(n, t),payload: e}];-}, aDe = /*#__PURE__*/ I.memo((e) => {+}, hOe = /*#__PURE__*/ I.memo((e) => {var { dataKey: t, data: n, stroke: r, strokeWidth: i, fill: a, name: o, hide: s, unit: c, tooltipType: l, id: u } = e, d = {dataDefinedOnItem: n,- getPosition: Fz,+ getPosition: pB,settings: {stroke: r,strokeWidth: i,fill: a,dataKey: t,nameKey: void 0,- name: eW(o, t),+ name: WW(o, t),hide: s,type: l,color: r,@@ -63855,11 +65242,11 @@ var iDe = (e) => {};return /*#__PURE__*/ I.createElement(h3, { tooltipEntrySettings: d });}), a8 = (e, t) => `${t}px ${e}px`;-function oDe(e, t) {+function gOe(e, t) {for (var n = e.length % 2 == 0 ? e : [...e, 0], r = [], i = 0; i < t; ++i) r.push(...n);return r;}-var sDe = (e, t, n) => {+var _Oe = (e, t, n) => {var r = n.reduce((e, t) => e + t, 0);if (!r) return a8(t, e);for (var i = Math.floor(e / r), a = e % r, o = [], s = 0, c = 0; s < n.length; c += (l = n[s]) ?? 0, ++s) {@@ -63871,13 +65258,13 @@ var sDe = (e, t, n) => {}var d = o.length % 2 == 0 ? [0, t] : [t];return [- ...oDe(n, i),+ ...gOe(n, i),...o,...d].map((e) => `${e}px`).join(", ");};-function cDe(e) {- var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = hR(i8(r, ZEe));+function vOe(e) {+ var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = qR(i8(r, sOe));return /*#__PURE__*/ I.createElement(T3, {points: n,dot: i,@@ -63889,7 +65276,7 @@ function cDe(e) {clipPathId: t});}-function lDe(e) {+function yOe(e) {var { showLabels: t, children: n, points: r } = e, i = (0, I.useMemo)(() => r?.map((e) => {var t = {x: e.x ?? 0,@@ -63910,7 +65297,7 @@ function lDe(e) {return /*#__PURE__*/ I.createElement(l4, { value: t ? i : void 0 }, n);}function o8(e) {- var { clipPathId: t, pathRef: n, points: r, strokeDasharray: i, props: a } = e, { type: o, layout: s, connectNulls: c, needClip: l, shape: u } = a, d = r8(r8({}, _R(i8(a, QEe))), {}, {+ var { clipPathId: t, pathRef: n, points: r, strokeDasharray: i, props: a } = e, { type: o, layout: s, connectNulls: c, needClip: l, shape: u } = a, d = r8(r8({}, YR(i8(a, cOe))), {}, {fill: "none",className: "recharts-line-curve",clipPath: l ? `url(#clipPath-${t})` : void 0,@@ -63923,31 +65310,31 @@ function o8(e) {return /*#__PURE__*/ I.createElement(I.Fragment, null, r?.length > 1 && /*#__PURE__*/ I.createElement(d3, t8({shapeType: "curve",option: u- }, d, { pathRef: n })), /*#__PURE__*/ I.createElement(cDe, {+ }, d, { pathRef: n })), /*#__PURE__*/ I.createElement(vOe, {points: r,clipPathId: t,props: a}));}-function uDe(e) {+function bOe(e) {try {return e && e.getTotalLength && e.getTotalLength() || 0;} catch {return 0;}}-function dDe(e) {- var { clipPathId: t, props: n, pathRef: r, previousPointsRef: i, longestAnimatedLengthRef: a } = e, { points: o, strokeDasharray: s, isAnimationActive: c, animationBegin: l, animationDuration: u, animationEasing: d, animateNewValues: f, width: p, height: m, onAnimationEnd: h, onAnimationStart: g } = n, _ = i.current, v = IJ(o, "recharts-line-"), y = (0, I.useRef)(v), [b, x] = (0, I.useState)(!1), S = !b, C = (0, I.useCallback)(() => {+function xOe(e) {+ var { clipPathId: t, props: n, pathRef: r, previousPointsRef: i, longestAnimatedLengthRef: a } = e, { points: o, strokeDasharray: s, isAnimationActive: c, animationBegin: l, animationDuration: u, animationEasing: d, animateNewValues: f, width: p, height: m, onAnimationEnd: h, onAnimationStart: g } = n, _ = i.current, v = KJ(o, "recharts-line-"), y = (0, I.useRef)(v), [b, x] = (0, I.useState)(!1), S = !b, C = (0, I.useCallback)(() => {typeof h == "function" && h(), x(!1);}, [h]), w = (0, I.useCallback)(() => {typeof g == "function" && g(), x(!0);- }, [g]), T = uDe(r.current), E = (0, I.useRef)(0);+ }, [g]), T = bOe(r.current), E = (0, I.useRef)(0);y.current !== v && (E.current = a.current, y.current = v);var D = E.current;- return /*#__PURE__*/ I.createElement(lDe, {+ return /*#__PURE__*/ I.createElement(yOe, {points: o,showLabels: S- }, n.children, /*#__PURE__*/ I.createElement(FJ, {+ }, n.children, /*#__PURE__*/ I.createElement(GJ, {animationId: v,begin: l,duration: u,@@ -63957,20 +65344,20 @@ function dDe(e) {onAnimationStart: w,key: v}, (e) => {- var l = Az(D, T + D, e), u = Math.min(l, T), d = c ? s ? sDe(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : a8(T, u) : s == null ? void 0 : String(s);+ var l = cB(D, T + D, e), u = Math.min(l, T), d = c ? s ? _Oe(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : a8(T, u) : s == null ? void 0 : String(s);if (e > 0 && T > 0 && (i.current = o, a.current = Math.max(a.current, u)), _) {var h = _.length / o.length, g = e === 1 ? o : o.map((t, n) => {var r = Math.floor(n * h);if (_[r]) {var i = _[r];return r8(r8({}, t), {}, {- x: Az(i.x, t.x, e),- y: Az(i.y, t.y, e)+ x: cB(i.x, t.x, e),+ y: cB(i.y, t.y, e)});}return f ? r8(r8({}, t), {}, {- x: Az(p * 2, t.x, e),- y: Az(m / 2, t.y, e)+ x: cB(p * 2, t.x, e),+ y: cB(m / 2, t.y, e)}) : r8(r8({}, t), {}, {x: t.x,y: t.y@@ -63993,9 +65380,9 @@ function dDe(e) {});}), /*#__PURE__*/ I.createElement(f4, { label: n.label }));}-function fDe(e) {+function SOe(e) {var { clipPathId: t, props: n } = e, r = (0, I.useRef)(null), i = (0, I.useRef)(0), a = (0, I.useRef)(null);- return /*#__PURE__*/ I.createElement(dDe, {+ return /*#__PURE__*/ I.createElement(xOe, {props: n,clipPathId: t,previousPointsRef: r,@@ -64003,17 +65390,17 @@ function fDe(e) {pathRef: a});}-var pDe = (e, t) => ({+var COe = (e, t) => ({x: e.x ?? void 0,y: e.y ?? void 0,value: e.value,- errorVal: FU(e.payload, t)-}), mDe = class extends I.Component {+ errorVal: TW(e.payload, t)+}), wOe = class extends I.Component {render() {var { hide: e, dot: t, points: n, className: r, xAxisId: i, yAxisId: a, top: o, left: s, width: c, height: l, id: u, needClip: d, zIndex: f } = this.props;if (e) return null;- var p = Jm("recharts-line", r), m = u, { r: h, strokeWidth: g } = e8(t), _ = n3(t), v = h * 2 + g, y = d ? `url(#clipPath-${_ ? "" : "dots-"}${m})` : void 0;- return /*#__PURE__*/ I.createElement(t2, { zIndex: f }, /*#__PURE__*/ I.createElement(xR, { className: p }, d && /*#__PURE__*/ I.createElement("defs", null, /*#__PURE__*/ I.createElement(Y6, {+ var p = Xm("recharts-line", r), m = u, { r: h, strokeWidth: g } = e8(t), _ = n3(t), v = h * 2 + g, y = d ? `url(#clipPath-${_ ? "" : "dots-"}${m})` : void 0;+ return /*#__PURE__*/ I.createElement(t2, { zIndex: f }, /*#__PURE__*/ I.createElement($R, { className: p }, d && /*#__PURE__*/ I.createElement("defs", null, /*#__PURE__*/ I.createElement(Y6, {clipPathId: m,xAxisId: i,yAxisId: a@@ -64026,9 +65413,9 @@ var pDe = (e, t) => ({xAxisId: i,yAxisId: a,data: n,- dataPointFormatter: pDe,+ dataPointFormatter: COe,errorBarOffset: 0- }, /*#__PURE__*/ I.createElement(fDe, {+ }, /*#__PURE__*/ I.createElement(SOe, {props: this.props,clipPathId: m}))), /*#__PURE__*/ I.createElement(M3, {@@ -64059,11 +65446,11 @@ var pDe = (e, t) => ({zIndex: BY.line,type: "linear"};-function hDe(e) {- var t = Gz(e, s8), { activeDot: n, animateNewValues: r, animationBegin: i, animationDuration: a, animationEasing: o, connectNulls: s, dot: c, hide: l, isAnimationActive: u, label: d, legendType: f, xAxisId: p, yAxisId: m, id: h } = t, g = i8(t, $Ee), { needClip: _ } = J6(p, m), v = k3(), y = aG(), b = wW(), x = Q((e) => XEe(e, p, m, b, h));+function TOe(e) {+ var t = CB(e, s8), { activeDot: n, animateNewValues: r, animationBegin: i, animationDuration: a, animationEasing: o, connectNulls: s, dot: c, hide: l, isAnimationActive: u, label: d, legendType: f, xAxisId: p, yAxisId: m, id: h } = t, g = i8(t, lOe), { needClip: _ } = J6(p, m), v = k3(), y = YG(), b = mG(), x = Q((e) => oOe(e, p, m, b, h));if (y !== "horizontal" && y !== "vertical" || x == null || v == null) return null;var { height: S, width: C, x: w, y: T } = v;- return /*#__PURE__*/ I.createElement(mDe, t8({}, g, {+ return /*#__PURE__*/ I.createElement(wOe, t8({}, g, {id: h,connectNulls: s,dot: c,@@ -64087,23 +65474,23 @@ function hDe(e) {needClip: _}));}-function gDe(e) {+function EOe(e) {var { layout: t, xAxis: n, yAxis: r, xAxisTicks: i, yAxisTicks: a, dataKey: o, bandSize: s, displayedData: c } = e;return c.map((e, c) => {- var l = FU(e, o);+ var l = TW(e, o);if (t === "horizontal") return {- x: WU({+ x: PW({axis: n,ticks: i,bandSize: s,entry: e,index: c}),- y: (Mz(l) ? null : r.scale.map(l)) ?? null,+ y: (uB(l) ? null : r.scale.map(l)) ?? null,value: l,payload: e};- var u = Mz(l) ? null : n.scale.map(l), d = WU({+ var u = uB(l) ? null : n.scale.map(l), d = PW({axis: r,ticks: a,bandSize: s,@@ -64118,12 +65505,12 @@ function gDe(e) {};}).filter(Boolean);}-function _De(e) {- var t = Gz(e, s8), n = wW();+function DOe(e) {+ var t = CB(e, s8), n = mG();return /*#__PURE__*/ I.createElement(v3, {id: t.id,type: "line"- }, (e) => /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(g3, { legendPayload: iDe(t) }), /*#__PURE__*/ I.createElement(aDe, {+ }, (e) => /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(g3, { legendPayload: mOe(t) }), /*#__PURE__*/ I.createElement(hOe, {dataKey: t.dataKey,data: t.data,stroke: t.stroke,@@ -64144,9 +65531,9 @@ function _De(e) {dataKey: t.dataKey,hide: t.hide,isPanorama: n- }), /*#__PURE__*/ I.createElement(hDe, t8({}, t, { id: e }))));+ }), /*#__PURE__*/ I.createElement(TOe, t8({}, t, { id: e }))));}-var c8 = /*#__PURE__*/ I.memo(_De, MK);+var c8 = /*#__PURE__*/ I.memo(DOe, Sq);c8.displayName = "Line";//#endregion//#region node_modules/recharts/es6/state/selectors/graphicalItemSelectors.js@@ -64158,19 +65545,19 @@ function u8(e, t) {}//#endregion//#region node_modules/recharts/es6/state/selectors/areaSelectors.js-var d8 = (e, t, n) => J1(e, "xAxis", l8(e, t), n), f8 = (e, t, n) => q1(e, "xAxis", l8(e, t), n), p8 = (e, t, n) => J1(e, "yAxis", u8(e, t), n), m8 = (e, t, n) => q1(e, "yAxis", u8(e, t), n), vDe = $([- iG,+var d8 = (e, t, n) => J1(e, "xAxis", l8(e, t), n), f8 = (e, t, n) => q1(e, "xAxis", l8(e, t), n), p8 = (e, t, n) => J1(e, "yAxis", u8(e, t), n), m8 = (e, t, n) => q1(e, "yAxis", u8(e, t), n), OOe = $([+ JG,d8,p8,f8,m8-], (e, t, n, r, i) => LU(e, "xAxis") ? QU(t, r, !1) : QU(n, i, !1)), h8 = $([H$, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), g8 = (e) => LU(iG(e), "xAxis") ? "yAxis" : "xAxis", yDe = (e, t) => g8(e) === "yAxis" ? u8(e, t) : l8(e, t), bDe = $([- iG,+], (e, t, n, r, i) => DW(e, "xAxis") ? HW(t, r, !1) : HW(n, i, !1)), h8 = $([H$, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), g8 = (e) => DW(JG(e), "xAxis") ? "yAxis" : "xAxis", kOe = (e, t) => g8(e) === "yAxis" ? u8(e, t) : l8(e, t), AOe = $([+ JG,d8,p8,f8,m8,- $([h8, (e, t, n) => a1(e, g8(e), yDe(e, t), n)], (e, t) => {+ $([h8, (e, t, n) => a1(e, g8(e), kOe(e, t), n)], (e, t) => {if (e != null && t != null) {var { stackId: n } = e, r = oX(e);if (n != null && r != null) {@@ -64180,14 +65567,14 @@ var d8 = (e, t, n) => J1(e, "xAxis", l8(e, t), n), f8 = (e, t, n) => q1(e, "xAxi}}),_Y,- vDe,+ OOe,h8,- Rhe+ Jge], (e, t, n, r, i, a, o, s, c, l) => {var { chartData: u, dataStartIndex: d, dataEndIndex: f } = o;if (!(c == null || e !== "horizontal" && e !== "vertical" || t == null || n == null || r == null || i == null || r.length === 0 || i.length === 0 || s == null)) {var { data: p } = c, m = p && p.length > 0 ? p : u?.slice(d, f + 1);- if (m != null) return BDe({+ if (m != null) return XOe({layout: e,xAxis: t,yAxis: n,@@ -64201,7 +65588,7 @@ var d8 = (e, t, n) => J1(e, "xAxis", l8(e, t), n), f8 = (e, t, n) => q1(e, "xAxibandSize: s});}-}), xDe = ["id"], SDe = [+}), jOe = ["id"], MOe = ["activeDot","animationBegin","animationDuration",@@ -64228,14 +65615,14 @@ function _8() {}function v8(e, t) {if (e == null) return {};- var n, r, i = CDe(e, t);+ var n, r, i = NOe(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function CDe(e, t) {+function NOe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -64258,26 +65645,26 @@ function b8(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? y8(Object(n), !0).forEach(function(t) {- wDe(e, t, n[t]);+ POe(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : y8(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function wDe(e, t, n) {- return (t = TDe(t)) in e ? Object.defineProperty(e, t, {+function POe(e, t, n) {+ return (t = FOe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function TDe(e) {- var t = EDe(e, "string");+function FOe(e) {+ var t = IOe(e, "string");return typeof t == "symbol" ? t : t + "";}-function EDe(e, t) {+function IOe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -64290,27 +65677,27 @@ function EDe(e, t) {function x8(e, t) {return e && e !== "none" ? e : t;}-var DDe = (e) => {+var LOe = (e) => {var { dataKey: t, name: n, stroke: r, fill: i, legendType: a, hide: o } = e;return [{inactive: o,dataKey: t,type: a,color: x8(r, i),- value: eW(n, t),+ value: WW(n, t),payload: e}];-}, ODe = /*#__PURE__*/ I.memo((e) => {+}, ROe = /*#__PURE__*/ I.memo((e) => {var { dataKey: t, data: n, stroke: r, strokeWidth: i, fill: a, name: o, hide: s, unit: c, tooltipType: l, id: u } = e, d = {dataDefinedOnItem: n,- getPosition: Fz,+ getPosition: pB,settings: {stroke: r,strokeWidth: i,fill: a,dataKey: t,nameKey: void 0,- name: eW(o, t),+ name: WW(o, t),hide: s,type: l,color: x8(r, a),@@ -64320,8 +65707,8 @@ var DDe = (e) => {};return /*#__PURE__*/ I.createElement(h3, { tooltipEntrySettings: d });});-function kDe(e) {- var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = hR(r);+function zOe(e) {+ var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = qR(r);return /*#__PURE__*/ I.createElement(T3, {points: n,dot: a,@@ -64333,7 +65720,7 @@ function kDe(e) {clipPathId: t});}-function ADe(e) {+function BOe(e) {var { showLabels: t, children: n, points: r } = e, i = r.map((e) => {var t = {x: e.x ?? 0,@@ -64354,8 +65741,8 @@ function ADe(e) {return /*#__PURE__*/ I.createElement(l4, { value: t ? i : void 0 }, n);}function S8(e) {- var { points: t, baseLine: n, needClip: r, clipPathId: i, props: a } = e, { layout: o, type: s, stroke: c, connectNulls: l, isRange: u } = a, { id: d } = a, f = v8(a, xDe), p = hR(f), m = _R(f);- return /*#__PURE__*/ I.createElement(I.Fragment, null, t?.length > 1 && /*#__PURE__*/ I.createElement(xR, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ I.createElement(Rq, _8({}, m, {+ var { points: t, baseLine: n, needClip: r, clipPathId: i, props: a } = e, { layout: o, type: s, stroke: c, connectNulls: l, isRange: u } = a, { id: d } = a, f = v8(a, jOe), p = qR(f), m = YR(f);+ return /*#__PURE__*/ I.createElement(I.Fragment, null, t?.length > 1 && /*#__PURE__*/ I.createElement($R, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ I.createElement(DJ, _8({}, m, {id: d,points: t,connectNulls: l,@@ -64364,29 +65751,29 @@ function S8(e) {layout: o,stroke: "none",className: "recharts-area-area"- })), c !== "none" && /*#__PURE__*/ I.createElement(Rq, _8({}, p, {+ })), c !== "none" && /*#__PURE__*/ I.createElement(DJ, _8({}, p, {className: "recharts-area-curve",layout: o,type: s,connectNulls: l,fill: "none",points: t- })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ I.createElement(Rq, _8({}, p, {+ })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ I.createElement(DJ, _8({}, p, {className: "recharts-area-curve",layout: o,type: s,connectNulls: l,fill: "none",points: n- }))), /*#__PURE__*/ I.createElement(kDe, {+ }))), /*#__PURE__*/ I.createElement(zOe, {points: t,props: f,clipPathId: i}));}-function jDe(e) {+function VOe(e) {var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.y, o = r[r.length - 1]?.y;- if (!OU(a) || !OU(o)) return null;+ if (!vW(a) || !vW(o)) return null;var s = t * Math.abs(a - o), c = Math.max(...r.map((e) => e.x || 0));return Z(n) ? c = Math.max(n, c) : n && Array.isArray(n) && n.length && (c = Math.max(...n.map((e) => e.x || 0), c)), Z(c) ? /*#__PURE__*/ I.createElement("rect", {x: 0,@@ -64395,9 +65782,9 @@ function jDe(e) {height: Math.floor(s)}) : null;}-function MDe(e) {+function HOe(e) {var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.x, o = r[r.length - 1]?.x;- if (!OU(a) || !OU(o)) return null;+ if (!vW(a) || !vW(o)) return null;var s = t * Math.abs(a - o), c = Math.max(...r.map((e) => e.y || 0));return Z(n) ? c = Math.max(n, c) : n && Array.isArray(n) && n.length && (c = Math.max(...n.map((e) => e.y || 0), c)), Z(c) ? /*#__PURE__*/ I.createElement("rect", {x: a < o ? a : a - s,@@ -64406,35 +65793,35 @@ function MDe(e) {height: Math.floor(c + (i ? parseInt(`${i}`, 10) : 1))}) : null;}-function NDe(e) {+function UOe(e) {var { alpha: t, layout: n, points: r, baseLine: i, strokeWidth: a } = e;- return n === "vertical" ? /*#__PURE__*/ I.createElement(jDe, {+ return n === "vertical" ? /*#__PURE__*/ I.createElement(VOe, {alpha: t,points: r,baseLine: i,strokeWidth: a- }) : /*#__PURE__*/ I.createElement(MDe, {+ }) : /*#__PURE__*/ I.createElement(HOe, {alpha: t,points: r,baseLine: i,strokeWidth: a});}-function PDe(e) {- var { needClip: t, clipPathId: n, props: r, previousPointsRef: i, previousBaselineRef: a } = e, { points: o, baseLine: s, isAnimationActive: c, animationBegin: l, animationDuration: u, animationEasing: d, onAnimationStart: f, onAnimationEnd: p } = r, m = IJ((0, I.useMemo)(() => ({+function WOe(e) {+ var { needClip: t, clipPathId: n, props: r, previousPointsRef: i, previousBaselineRef: a } = e, { points: o, baseLine: s, isAnimationActive: c, animationBegin: l, animationDuration: u, animationEasing: d, onAnimationStart: f, onAnimationEnd: p } = r, m = KJ((0, I.useMemo)(() => ({points: o,baseLine: s- }), [o, s]), "recharts-area-"), h = oG(), [g, _] = (0, I.useState)(!1), v = !g, y = (0, I.useCallback)(() => {+ }), [o, s]), "recharts-area-"), h = XG(), [g, _] = (0, I.useState)(!1), v = !g, y = (0, I.useCallback)(() => {typeof p == "function" && p(), _(!1);}, [p]), b = (0, I.useCallback)(() => {typeof f == "function" && f(), _(!0);}, [f]);if (h == null) return null;var x = i.current, S = a.current;- return /*#__PURE__*/ I.createElement(ADe, {+ return /*#__PURE__*/ I.createElement(BOe, {showLabels: v,points: o- }, r.children, /*#__PURE__*/ I.createElement(FJ, {+ }, r.children, /*#__PURE__*/ I.createElement(GJ, {animationId: m,begin: l,duration: u,@@ -64450,18 +65837,18 @@ function PDe(e) {if (x[r]) {var i = x[r];return b8(b8({}, t), {}, {- x: Az(i.x, t.x, e),- y: Az(i.y, t.y, e)+ x: cB(i.x, t.x, e),+ y: cB(i.y, t.y, e)});}return t;- }), d = Z(s) ? Az(S, s, e) : Mz(s) || wz(s) ? Az(S, 0, e) : s.map((t, n) => {+ }), d = Z(s) ? cB(S, s, e) : uB(s) || nB(s) ? cB(S, 0, e) : s.map((t, n) => {var r = Math.floor(n * l);if (Array.isArray(S) && S[r]) {var i = S[r];return b8(b8({}, t), {}, {- x: Az(i.x, t.x, e),- y: Az(i.y, t.y, e)+ x: cB(i.x, t.x, e),+ y: cB(i.y, t.y, e)});}return t;@@ -64474,13 +65861,13 @@ function PDe(e) {props: r});}- return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ I.createElement(xR, null, c && /*#__PURE__*/ I.createElement("defs", null, /*#__PURE__*/ I.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ I.createElement(NDe, {+ return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ I.createElement($R, null, c && /*#__PURE__*/ I.createElement("defs", null, /*#__PURE__*/ I.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ I.createElement(UOe, {alpha: e,points: o,baseLine: s,layout: h,strokeWidth: r.strokeWidth- }))), /*#__PURE__*/ I.createElement(xR, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ I.createElement(S8, {+ }))), /*#__PURE__*/ I.createElement($R, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ I.createElement(S8, {points: o,baseLine: s,needClip: t,@@ -64489,9 +65876,9 @@ function PDe(e) {})));}), /*#__PURE__*/ I.createElement(f4, { label: r.label }));}-function FDe(e) {+function GOe(e) {var { needClip: t, clipPathId: n, props: r } = e, i = (0, I.useRef)(null), a = (0, I.useRef)();- return /*#__PURE__*/ I.createElement(PDe, {+ return /*#__PURE__*/ I.createElement(WOe, {needClip: t,clipPathId: n,props: r,@@ -64499,12 +65886,12 @@ function FDe(e) {previousBaselineRef: a});}-var IDe = class extends I.PureComponent {+var KOe = class extends I.PureComponent {render() {var { hide: e, dot: t, points: n, className: r, top: i, left: a, needClip: o, xAxisId: s, yAxisId: c, width: l, height: u, id: d, baseLine: f, zIndex: p } = this.props;if (e) return null;- var m = Jm("recharts-area", r), h = d, { r: g, strokeWidth: _ } = e8(t), v = n3(t), y = g * 2 + _, b = o ? `url(#clipPath-${v ? "" : "dots-"}${h})` : void 0;- return /*#__PURE__*/ I.createElement(t2, { zIndex: p }, /*#__PURE__*/ I.createElement(xR, { className: m }, o && /*#__PURE__*/ I.createElement("defs", null, /*#__PURE__*/ I.createElement(Y6, {+ var m = Xm("recharts-area", r), h = d, { r: g, strokeWidth: _ } = e8(t), v = n3(t), y = g * 2 + _, b = o ? `url(#clipPath-${v ? "" : "dots-"}${h})` : void 0;+ return /*#__PURE__*/ I.createElement(t2, { zIndex: p }, /*#__PURE__*/ I.createElement($R, { className: m }, o && /*#__PURE__*/ I.createElement("defs", null, /*#__PURE__*/ I.createElement(Y6, {clipPathId: h,xAxisId: s,yAxisId: c@@ -64513,7 +65900,7 @@ var IDe = class extends I.PureComponent {y: i - y / 2,width: l + y,height: u + y- }))), /*#__PURE__*/ I.createElement(FDe, {+ }))), /*#__PURE__*/ I.createElement(GOe, {needClip: o,clipPathId: h,props: this.props@@ -64531,7 +65918,7 @@ var IDe = class extends I.PureComponent {clipPath: b}));}-}, LDe = {+}, qOe = {activeDot: !0,animationBegin: 0,animationDuration: 1500,@@ -64551,11 +65938,11 @@ var IDe = class extends I.PureComponent {yAxisId: 0,zIndex: BY.area};-function RDe(e) {- var { activeDot: t, animationBegin: n, animationDuration: r, animationEasing: i, connectNulls: a, dot: o, fill: s, fillOpacity: c, hide: l, isAnimationActive: u, legendType: d, stroke: f, xAxisId: p, yAxisId: m } = e, h = v8(e, SDe), g = aG(), _ = U0(), { needClip: v } = J6(p, m), y = wW(), { points: b, isRange: x, baseLine: S } = Q((t) => bDe(t, e.id, y)) ?? {}, C = k3();+function JOe(e) {+ var { activeDot: t, animationBegin: n, animationDuration: r, animationEasing: i, connectNulls: a, dot: o, fill: s, fillOpacity: c, hide: l, isAnimationActive: u, legendType: d, stroke: f, xAxisId: p, yAxisId: m } = e, h = v8(e, MOe), g = YG(), _ = U0(), { needClip: v } = J6(p, m), y = mG(), { points: b, isRange: x, baseLine: S } = Q((t) => AOe(t, e.id, y)) ?? {}, C = k3();if (g !== "horizontal" && g !== "vertical" || C == null || _ !== "AreaChart" && _ !== "ComposedChart") return null;var { height: w, width: T, x: E, y: D } = C;- return !b || !b.length ? null : /*#__PURE__*/ I.createElement(IDe, _8({}, h, {+ return !b || !b.length ? null : /*#__PURE__*/ I.createElement(KOe, _8({}, h, {activeDot: t,animationBegin: n,animationDuration: r,@@ -64581,7 +65968,7 @@ function RDe(e) {yAxisId: m}));}-var zDe = (e, t, n, r, i) => {+var YOe = (e, t, n, r, i) => {var a = n ?? t;if (Z(a)) return a;var o = e === "horizontal" ? i : r, s = o.scale.domain();@@ -64591,17 +65978,17 @@ var zDe = (e, t, n, r, i) => {}return a === "dataMin" ? s[0] : a === "dataMax" ? s[1] : s[0];};-function BDe(e) {- var { areaSettings: { connectNulls: t, baseValue: n, dataKey: r }, stackedData: i, layout: a, chartBaseValue: o, xAxis: s, yAxis: c, displayedData: l, dataStartIndex: u, xAxisTicks: d, yAxisTicks: f, bandSize: p } = e, m = i && i.length, h = zDe(a, o, n, s, c), g = a === "horizontal", _ = !1, v = l.map((e, n) => {+function XOe(e) {+ var { areaSettings: { connectNulls: t, baseValue: n, dataKey: r }, stackedData: i, layout: a, chartBaseValue: o, xAxis: s, yAxis: c, displayedData: l, dataStartIndex: u, xAxisTicks: d, yAxisTicks: f, bandSize: p } = e, m = i && i.length, h = YOe(a, o, n, s, c), g = a === "horizontal", _ = !1, v = l.map((e, n) => {var a;if (m) a = i[u + n];else {- var o = FU(e, r);+ var o = TW(e, r);Array.isArray(o) ? (a = o, _ = !0) : a = [h, o];}- var l = a?.[1] ?? null, v = l == null || m && !t && FU(e, r) == null;+ var l = a?.[1] ?? null, v = l == null || m && !t && TW(e, r) == null;return g ? {- x: WU({+ x: PW({axis: s,ticks: d,bandSize: p,@@ -64613,7 +66000,7 @@ function BDe(e) {payload: e} : {x: v ? null : s.scale.map(l) ?? null,- y: WU({+ y: PW({axis: c,ticks: f,bandSize: p,@@ -64641,12 +66028,12 @@ function BDe(e) {isRange: _};}-function VDe(e) {- var t = Gz(e, LDe), n = wW();+function ZOe(e) {+ var t = CB(e, qOe), n = mG();return /*#__PURE__*/ I.createElement(v3, {id: t.id,type: "area"- }, (e) => /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(g3, { legendPayload: DDe(t) }), /*#__PURE__*/ I.createElement(ODe, {+ }, (e) => /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(g3, { legendPayload: LOe(t) }), /*#__PURE__*/ I.createElement(ROe, {dataKey: t.dataKey,data: t.data,stroke: t.stroke,@@ -64665,21 +66052,21 @@ function VDe(e) {xAxisId: t.xAxisId,yAxisId: t.yAxisId,zAxisId: 0,- stackId: UU(t.stackId),+ stackId: NW(t.stackId),hide: t.hide,barSize: void 0,baseValue: t.baseValue,isPanorama: n,connectNulls: t.connectNulls- }), /*#__PURE__*/ I.createElement(RDe, _8({}, t, { id: e }))));+ }), /*#__PURE__*/ I.createElement(JOe, _8({}, t, { id: e }))));}-var C8 = /*#__PURE__*/ I.memo(VDe, MK);+var C8 = /*#__PURE__*/ I.memo(ZOe, Sq);C8.displayName = "Area";//#endregion//#region node_modules/tiny-invariant/dist/esm/tiny-invariant.js-var HDe = "Invariant failed";-function UDe(e, t) {- if (!e) throw Error(HDe);+var QOe = "Invariant failed";+function $Oe(e, t) {+ if (!e) throw Error(QOe);}//#endregion//#region node_modules/recharts/es6/util/BarUtils.js@@ -64699,45 +66086,45 @@ function T8(e) {inActiveClassName: "recharts-inactive-bar"}, e));}-var WDe = function(e) {+var eke = function(e) {var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;return (n, r) => {if (Z(e)) return e;- var i = Z(n) || Mz(n);- return i ? e(n, r) : (!i && UDe(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);+ var i = Z(n) || uB(n);+ return i ? e(n, r) : (!i && $Oe(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);};-}, GDe = (e, t, n) => n, E8 = $([H$, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), KDe = $([E8], (e) => e?.maxBarSize), qDe = (e, t, n, r) => r, JDe = $([- iG,+}, tke = (e, t, n) => n, E8 = $([H$, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), nke = $([E8], (e) => e?.maxBarSize), rke = (e, t, n, r) => r, ike = $([+ JG,H$,l8,u8,- GDe-], (e, t, n, r, i) => t.filter((t) => e === "horizontal" ? t.xAxisId === n : t.yAxisId === r).filter((e) => e.isPanorama === i).filter((e) => e.hide === !1).filter((e) => e.type === "bar")), YDe = (e, t, n) => {- var r = iG(e), i = l8(e, t), a = u8(e, t);+ tke+], (e, t, n, r, i) => t.filter((t) => e === "horizontal" ? t.xAxisId === n : t.yAxisId === r).filter((e) => e.isPanorama === i).filter((e) => e.hide === !1).filter((e) => e.type === "bar")), ake = (e, t, n) => {+ var r = JG(e), i = l8(e, t), a = u8(e, t);if (i != null && a != null) return r === "horizontal" ? a1(e, "yAxis", a, n) : a1(e, "xAxis", i, n);-}, XDe = $([- JDe,+}, oke = $([+ ike,NY,(e, t) => {- var n = iG(e), r = l8(e, t), i = u8(e, t);+ var n = JG(e), r = l8(e, t), i = u8(e, t);if (r != null && i != null) return n === "horizontal" ? B1(e, "xAxis", r) : B1(e, "yAxis", i);}-], J3), ZDe = (e, t, n) => {+], J3), ske = (e, t, n) => {var r = E8(e, t);if (r == null) return 0;var i = l8(e, t), a = u8(e, t);if (i == null || a == null) return 0;- var o = iG(e), s = AY(e), { maxBarSize: c } = r, l = Mz(c) ? s : c, u, d;- return o === "horizontal" ? (u = J1(e, "xAxis", i, n), d = q1(e, "xAxis", i, n)) : (u = J1(e, "yAxis", a, n), d = q1(e, "yAxis", a, n)), QU(u, d, !0) ?? l ?? 0;+ var o = JG(e), s = AY(e), { maxBarSize: c } = r, l = uB(c) ? s : c, u, d;+ return o === "horizontal" ? (u = J1(e, "xAxis", i, n), d = q1(e, "xAxis", i, n)) : (u = J1(e, "yAxis", a, n), d = q1(e, "yAxis", a, n)), HW(u, d, !0) ?? l ?? 0;}, D8 = (e, t, n) => {- var r = iG(e), i = l8(e, t), a = u8(e, t);+ var r = JG(e), i = l8(e, t), a = u8(e, t);if (i != null && a != null) {var o, s;- return r === "horizontal" ? (o = J1(e, "xAxis", i, n), s = q1(e, "xAxis", i, n)) : (o = J1(e, "yAxis", a, n), s = q1(e, "yAxis", a, n)), QU(o, s);+ return r === "horizontal" ? (o = J1(e, "xAxis", i, n), s = q1(e, "xAxis", i, n)) : (o = J1(e, "yAxis", a, n), s = q1(e, "yAxis", a, n)), HW(o, s);}-}, QDe = $([- bW,- SW,+}, cke = $([+ uG,+ fG,(e, t, n) => {var r = l8(e, t);if (r != null) return J1(e, "xAxis", r, n);@@ -64755,25 +66142,25 @@ var WDe = function(e) {if (r != null) return q1(e, "yAxis", r, n);},$([$([- XDe,+ oke,AY,jY,MY,- ZDe,+ ske,D8,- KDe+ nke], Z3), E8], $3),- iG,+ JG,_Y,D8,- $([YDe, E8], Q3),+ $([ake, E8], Q3),E8,- qDe+ rke], (e, t, n, r, i, a, o, s, c, l, u, d, f) => {var { chartData: p, dataStartIndex: m, dataEndIndex: h } = c;if (!(d == null || o == null || t == null || s !== "horizontal" && s !== "vertical" || n == null || r == null || i == null || a == null || l == null)) {var { data: g } = d, _ = g != null && g.length > 0 ? g : p?.slice(m, h + 1);- if (_ != null) return EOe({+ if (_ != null) return Ike({layout: s,barSettings: d,pos: o,@@ -64790,7 +66177,7 @@ var WDe = function(e) {dataStartIndex: m});}-}), $De = ["index"];+}), lke = ["index"];function O8() {return O8 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {@@ -64800,16 +66187,16 @@ function O8() {return e;}, O8.apply(null, arguments);}-function eOe(e, t) {+function uke(e, t) {if (e == null) return {};- var n, r, i = tOe(e, t);+ var n, r, i = dke(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function tOe(e, t) {+function dke(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -64818,31 +66205,31 @@ function tOe(e, t) {}return n;}-var k8 = /*#__PURE__*/ (0, I.createContext)(void 0), nOe = (e) => {+var k8 = /*#__PURE__*/ (0, I.createContext)(void 0), fke = (e) => {var t = (0, I.useContext)(k8);if (t != null) return t.stackId;- if (e != null) return UU(e);-}, rOe = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, iOe = (e) => {+ if (e != null) return NW(e);+}, pke = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, mke = (e) => {var t = (0, I.useContext)(k8);if (t != null) {var { stackId: n } = t;- return `url(#${rOe(n, e)})`;+ return `url(#${pke(n, e)})`;}}, A8 = (e) => {- var { index: t } = e, n = eOe(e, $De), r = iOe(t);- return /*#__PURE__*/ I.createElement(xR, O8({+ var { index: t } = e, n = uke(e, lke), r = mke(t);+ return /*#__PURE__*/ I.createElement($R, O8({className: "recharts-bar-stack-layer",clipPath: r}, n));-}, aOe = [+}, hke = ["onMouseEnter","onMouseLeave","onClick"-], oOe = [+], gke = ["value","background","tooltipPosition"-], sOe = ["id"], cOe = [+], _ke = ["id"], vke = ["onMouseEnter","onClick","onMouseLeave"@@ -64870,26 +66257,26 @@ function N8(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? M8(Object(n), !0).forEach(function(t) {- lOe(e, t, n[t]);+ yke(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : M8(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function lOe(e, t, n) {- return (t = uOe(t)) in e ? Object.defineProperty(e, t, {+function yke(e, t, n) {+ return (t = bke(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function uOe(e) {- var t = dOe(e, "string");+function bke(e) {+ var t = xke(e, "string");return typeof t == "symbol" ? t : t + "";}-function dOe(e, t) {+function xke(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -64901,14 +66288,14 @@ function dOe(e, t) {}function P8(e, t) {if (e == null) return {};- var n, r, i = fOe(e, t);+ var n, r, i = Ske(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function fOe(e, t) {+function Ske(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -64917,27 +66304,27 @@ function fOe(e, t) {}return n;}-var pOe = (e) => {+var Cke = (e) => {var { dataKey: t, name: n, fill: r, legendType: i, hide: a } = e;return [{inactive: a,dataKey: t,type: i,color: r,- value: eW(n, t),+ value: WW(n, t),payload: e}];-}, mOe = /*#__PURE__*/ I.memo((e) => {+}, wke = /*#__PURE__*/ I.memo((e) => {var { dataKey: t, stroke: n, strokeWidth: r, fill: i, name: a, hide: o, unit: s, tooltipType: c, id: l } = e, u = {dataDefinedOnItem: void 0,- getPosition: Fz,+ getPosition: pB,settings: {stroke: n,strokeWidth: r,fill: i,dataKey: t,nameKey: void 0,- name: eW(a, t),+ name: WW(a, t),hide: o,type: c,color: i,@@ -64947,17 +66334,17 @@ var pOe = (e) => {};return /*#__PURE__*/ I.createElement(h3, { tooltipEntrySettings: u });});-function hOe(e) {- var t = Q(P0), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = P8(a, aOe), u = f3(o, r, a.id), d = p3(s), f = m3(c, r, a.id);+function Tke(e) {+ var t = Q(P0), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = P8(a, hke), u = f3(o, r, a.id), d = p3(s), f = m3(c, r, a.id);if (!i || n == null) return null;- var p = gR(i);+ var p = JR(i);return /*#__PURE__*/ I.createElement(t2, { zIndex: f6(i, BY.barBackground) }, n.map((e, n) => {- var { value: a, background: o, tooltipPosition: s } = e, c = P8(e, oOe);+ var { value: a, background: o, tooltipPosition: s } = e, c = P8(e, gke);if (!o) return null;var m = u(e, n), h = d(e, n), g = f(e, n), _ = N8(N8(N8(N8(N8({option: i,isActive: String(n) === t- }, c), {}, { fill: "#eee" }, o), p), Uz(l, e, n)), {}, {+ }, c), {}, { fill: "#eee" }, o), p), xB(l, e, n)), {}, {onMouseEnter: m,onMouseLeave: h,onClick: g,@@ -64968,7 +66355,7 @@ function hOe(e) {return /*#__PURE__*/ I.createElement(T8, j8({ key: `background-bar-${n}` }, _));}));}-function gOe(e) {+function Eke(e) {var { showLabels: t, children: n, rects: r } = e, i = r?.map((e) => {var t = {x: e.x,@@ -64988,7 +66375,7 @@ function gOe(e) {});return /*#__PURE__*/ I.createElement(l4, { value: t ? i : void 0 }, n);}-function _Oe(e) {+function Dke(e) {var { shape: t, activeBar: n, baseProps: r, entry: i, index: a, dataKey: o } = e, s = Q(P0), c = Q(I0), l = n && String(i.originalDataIndex) === s && (c == null || o === c), [u, d] = (0, I.useState)(!1), [f, p] = (0, I.useState)(!1);(0, I.useEffect)(() => {var e;@@ -65009,7 +66396,7 @@ function _Oe(e) {}));return g ? /*#__PURE__*/ I.createElement(t2, { zIndex: BY.activeBar }, /*#__PURE__*/ I.createElement(A8, { index: i.originalDataIndex }, v)) : v;}-function vOe(e) {+function Oke(e) {var { shape: t, baseProps: n, entry: r, index: i, dataKey: a } = e;return /*#__PURE__*/ I.createElement(T8, j8({}, n, { name: String(n.name) }, r, {isActive: !1,@@ -65018,24 +66405,24 @@ function vOe(e) {dataKey: a}));}-function yOe(e) {- var { data: t, props: n } = e, r = hR(n) ?? {}, { id: i } = r, a = P8(r, sOe), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = P8(n, cOe), p = f3(l, s, i), m = p3(d), h = m3(u, s, i);+function kke(e) {+ var { data: t, props: n } = e, r = qR(n) ?? {}, { id: i } = r, a = P8(r, _ke), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = P8(n, vke), p = f3(l, s, i), m = p3(d), h = m3(u, s, i);return t ? /*#__PURE__*/ I.createElement(I.Fragment, null, t.map((e, t) => /*#__PURE__*/ I.createElement(A8, j8({index: e.originalDataIndex,key: `rectangle-${e?.x}-${e?.y}-${e?.value}-${t}`,className: "recharts-bar-rectangle"- }, Uz(f, e, t), {+ }, xB(f, e, t), {onMouseEnter: p(e, t),onMouseLeave: m(e, t),onClick: h(e, t)- }), c ? /*#__PURE__*/ I.createElement(_Oe, {+ }), c ? /*#__PURE__*/ I.createElement(Dke, {shape: o,activeBar: c,baseProps: a,entry: e,index: t,dataKey: s- }) : /*#__PURE__*/ I.createElement(vOe, {+ }) : /*#__PURE__*/ I.createElement(Oke, {shape: o,baseProps: a,entry: e,@@ -65043,16 +66430,16 @@ function yOe(e) {dataKey: s})))) : null;}-function bOe(e) {- var { props: t, previousRectanglesRef: n } = e, { data: r, layout: i, isAnimationActive: a, animationBegin: o, animationDuration: s, animationEasing: c, onAnimationEnd: l, onAnimationStart: u } = t, d = n.current, f = IJ(t, "recharts-bar-"), [p, m] = (0, I.useState)(!1), h = !p, g = (0, I.useCallback)(() => {+function Ake(e) {+ var { props: t, previousRectanglesRef: n } = e, { data: r, layout: i, isAnimationActive: a, animationBegin: o, animationDuration: s, animationEasing: c, onAnimationEnd: l, onAnimationStart: u } = t, d = n.current, f = KJ(t, "recharts-bar-"), [p, m] = (0, I.useState)(!1), h = !p, g = (0, I.useCallback)(() => {typeof l == "function" && l(), m(!1);}, [l]), _ = (0, I.useCallback)(() => {typeof u == "function" && u(), m(!0);}, [u]);- return /*#__PURE__*/ I.createElement(gOe, {+ return /*#__PURE__*/ I.createElement(Eke, {showLabels: h,rects: r- }, /*#__PURE__*/ I.createElement(FJ, {+ }, /*#__PURE__*/ I.createElement(GJ, {animationId: f,begin: o,duration: s,@@ -65065,68 +66452,68 @@ function bOe(e) {var a = e === 1 ? r : r?.map((t, n) => {var r = d && d[n];if (r) return N8(N8({}, t), {}, {- x: Az(r.x, t.x, e),- y: Az(r.y, t.y, e),- width: Az(r.width, t.width, e),- height: Az(r.height, t.height, e)+ x: cB(r.x, t.x, e),+ y: cB(r.y, t.y, e),+ width: cB(r.width, t.width, e),+ height: cB(r.height, t.height, e)});if (i === "horizontal") {- var a = Az(0, t.height, e), o = Az(t.stackedBarStart, t.y, e);+ var a = cB(0, t.height, e), o = cB(t.stackedBarStart, t.y, e);return N8(N8({}, t), {}, {y: o,height: a});}- var s = Az(0, t.width, e), c = Az(t.stackedBarStart, t.x, e);+ var s = cB(0, t.width, e), c = cB(t.stackedBarStart, t.x, e);return N8(N8({}, t), {}, {width: s,x: c});});- return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ I.createElement(xR, null, /*#__PURE__*/ I.createElement(yOe, {+ return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ I.createElement($R, null, /*#__PURE__*/ I.createElement(kke, {props: t,data: a}));}), /*#__PURE__*/ I.createElement(f4, { label: t.label }), t.children);}-function xOe(e) {+function jke(e) {var t = (0, I.useRef)(null);- return /*#__PURE__*/ I.createElement(bOe, {+ return /*#__PURE__*/ I.createElement(Ake, {previousRectanglesRef: t,props: e});}-var F8 = 0, SOe = (e, t) => {+var F8 = 0, Mke = (e, t) => {var n = Array.isArray(e.value) ? e.value[1] : e.value;return {x: e.x,y: e.y,value: n,- errorVal: FU(e, t)+ errorVal: TW(e, t)};-}, COe = class extends I.PureComponent {+}, Nke = class extends I.PureComponent {render() {var { hide: e, data: t, dataKey: n, className: r, xAxisId: i, yAxisId: a, needClip: o, background: s, id: c } = this.props;if (e || t == null) return null;- var l = Jm("recharts-bar", r), u = c;- return /*#__PURE__*/ I.createElement(xR, {+ var l = Xm("recharts-bar", r), u = c;+ return /*#__PURE__*/ I.createElement($R, {className: l,id: c}, o && /*#__PURE__*/ I.createElement("defs", null, /*#__PURE__*/ I.createElement(Y6, {clipPathId: u,xAxisId: i,yAxisId: a- })), /*#__PURE__*/ I.createElement(xR, {+ })), /*#__PURE__*/ I.createElement($R, {className: "recharts-bar-rectangles",clipPath: o ? `url(#clipPath-${u})` : void 0- }, /*#__PURE__*/ I.createElement(hOe, {+ }, /*#__PURE__*/ I.createElement(Tke, {data: t,dataKey: n,background: s,allOtherBarProps: this.props- }), /*#__PURE__*/ I.createElement(xOe, this.props)));+ }), /*#__PURE__*/ I.createElement(jke, this.props)));}-}, wOe = {+}, Pke = {activeBar: !1,animationBegin: 0,animationDuration: 400,@@ -65141,17 +66528,17 @@ var F8 = 0, SOe = (e, t) => {yAxisId: 0,zIndex: BY.bar};-function TOe(e) {- var { xAxisId: t, yAxisId: n, hide: r, legendType: i, minPointSize: a, activeBar: o, animationBegin: s, animationDuration: c, animationEasing: l, isAnimationActive: u } = e, { needClip: d } = J6(t, n), f = aG(), p = wW(), m = t3(e.children, v2), h = Q((t) => QDe(t, e.id, p, m));+function Fke(e) {+ var { xAxisId: t, yAxisId: n, hide: r, legendType: i, minPointSize: a, activeBar: o, animationBegin: s, animationDuration: c, animationEasing: l, isAnimationActive: u } = e, { needClip: d } = J6(t, n), f = YG(), p = mG(), m = t3(e.children, v2), h = Q((t) => cke(t, e.id, p, m));if (f !== "vertical" && f !== "horizontal") return null;var g, _ = h?.[0];return g = _ == null || _.height == null || _.width == null ? 0 : f === "vertical" ? _.height / 2 : _.width / 2, /*#__PURE__*/ I.createElement(q6, {xAxisId: t,yAxisId: n,data: h,- dataPointFormatter: SOe,+ dataPointFormatter: Mke,errorBarOffset: g- }, /*#__PURE__*/ I.createElement(COe, j8({}, e, {+ }, /*#__PURE__*/ I.createElement(Nke, j8({}, e, {layout: f,needClip: d,data: h,@@ -65167,20 +66554,20 @@ function TOe(e) {isAnimationActive: u})));}-function EOe(e) {- var { layout: t, barSettings: { dataKey: n, minPointSize: r, hasCustomShape: i }, pos: a, bandSize: o, xAxis: s, yAxis: c, xAxisTicks: l, yAxisTicks: u, stackedData: d, displayedData: f, offset: p, cells: m, parentViewBox: h, dataStartIndex: g } = e, _ = t === "horizontal" ? c : s, v = d ? _.scale.domain() : null, y = KU({ numericAxis: _ }), b = _.scale.map(y);+function Ike(e) {+ var { layout: t, barSettings: { dataKey: n, minPointSize: r, hasCustomShape: i }, pos: a, bandSize: o, xAxis: s, yAxis: c, xAxisTicks: l, yAxisTicks: u, stackedData: d, displayedData: f, offset: p, cells: m, parentViewBox: h, dataStartIndex: g } = e, _ = t === "horizontal" ? c : s, v = d ? _.scale.domain() : null, y = IW({ numericAxis: _ }), b = _.scale.map(y);return f.map((e, f) => {var _, x, S, C, w, T;if (d) {var E = d[f + g];if (E == null) return null;- _ = BU(E, v);- } else _ = FU(e, n), Array.isArray(_) || (_ = [y, _]);- var D = WDe(r, F8)(_[1], f);+ _ = AW(E, v);+ } else _ = TW(e, n), Array.isArray(_) || (_ = [y, _]);+ var D = eke(r, F8)(_[1], f);if (t === "horizontal") {var O = c.scale.map(_[0]), k = c.scale.map(_[1]);if (O == null || k == null) return null;- x = GU({+ x = FW({axis: s,ticks: l,bandSize: o,@@ -65189,19 +66576,19 @@ function EOe(e) {index: f}), S = k ?? O ?? void 0, C = a.size;var A = O - k;- if (w = wz(A) ? 0 : A, T = {+ if (w = nB(A) ? 0 : A, T = {x,y: p.top,width: C,height: p.height}, Math.abs(D) > 0 && Math.abs(w) < Math.abs(D)) {- var j = Cz(w || D) * (Math.abs(D) - Math.abs(w));+ var j = tB(w || D) * (Math.abs(D) - Math.abs(w));S -= j, w += j;}} else {var M = s.scale.map(_[0]), N = s.scale.map(_[1]);if (M == null || N == null) return null;- if (x = M, S = GU({+ if (x = M, S = FW({axis: c,ticks: u,bandSize: o,@@ -65214,8 +66601,8 @@ function EOe(e) {width: p.width,height: w}, Math.abs(D) > 0 && Math.abs(C) < Math.abs(D)) {- var P = Cz(C || D) * (Math.abs(D) - Math.abs(C));- C += P;+ var ee = tB(C || D) * (Math.abs(D) - Math.abs(C));+ C += ee;}}return x == null || S == null || C == null || w == null || !i && (C === 0 || w === 0) ? null : N8(N8({}, e), {}, {@@ -65236,12 +66623,12 @@ function EOe(e) {}, m && m[f] && m[f].props);}).filter(Boolean);}-function DOe(e) {- var t = Gz(e, wOe), n = nOe(t.stackId), r = wW();+function Lke(e) {+ var t = CB(e, Pke), n = fke(t.stackId), r = mG();return /*#__PURE__*/ I.createElement(v3, {id: t.id,type: "bar"- }, (e) => /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(g3, { legendPayload: pOe(t) }), /*#__PURE__*/ I.createElement(mOe, {+ }, (e) => /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(g3, { legendPayload: Cke(t) }), /*#__PURE__*/ I.createElement(wke, {dataKey: t.dataKey,stroke: t.stroke,strokeWidth: t.strokeWidth,@@ -65266,23 +66653,23 @@ function DOe(e) {maxBarSize: t.maxBarSize,isPanorama: r,hasCustomShape: t.shape != null- }), /*#__PURE__*/ I.createElement(t2, { zIndex: t.zIndex }, /*#__PURE__*/ I.createElement(TOe, j8({}, t, { id: e })))));+ }), /*#__PURE__*/ I.createElement(t2, { zIndex: t.zIndex }, /*#__PURE__*/ I.createElement(Fke, j8({}, t, { id: e })))));}-var I8 = /*#__PURE__*/ I.memo(DOe, MK);+var I8 = /*#__PURE__*/ I.memo(Lke, Sq);I8.displayName = "Bar";//#endregion//#region node_modules/recharts/es6/util/axisPropsAreEqual.js-var OOe = ["domain", "range"], kOe = ["domain", "range"];+var Rke = ["domain", "range"], zke = ["domain", "range"];function L8(e, t) {if (e == null) return {};- var n, r, i = AOe(e, t);+ var n, r, i = Bke(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function AOe(e, t) {+function Bke(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -65296,16 +66683,16 @@ function R8(e, t) {}function z8(e, t) {if (e === t) return !0;- var { domain: n, range: r } = e, i = L8(e, OOe), { domain: a, range: o } = t, s = L8(t, kOe);- return !R8(n, a) || !R8(r, o) ? !1 : MK(i, s);+ var { domain: n, range: r } = e, i = L8(e, Rke), { domain: a, range: o } = t, s = L8(t, zke);+ return !R8(n, a) || !R8(r, o) ? !1 : Sq(i, s);}//#endregion//#region node_modules/recharts/es6/cartesian/XAxis.js-var jOe = ["type"], MOe = [+var Vke = ["type"], Hke = ["dangerouslySetInnerHTML","ticks","scale"-], NOe = ["id", "scale"];+], Uke = ["id", "scale"];function B8() {return B8 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {@@ -65329,26 +66716,26 @@ function H8(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? V8(Object(n), !0).forEach(function(t) {- POe(e, t, n[t]);+ Wke(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : V8(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function POe(e, t, n) {- return (t = FOe(t)) in e ? Object.defineProperty(e, t, {+function Wke(e, t, n) {+ return (t = Gke(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function FOe(e) {- var t = IOe(e, "string");+function Gke(e) {+ var t = Kke(e, "string");return typeof t == "symbol" ? t : t + "";}-function IOe(e, t) {+function Kke(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -65360,14 +66747,14 @@ function IOe(e, t) {}function U8(e, t) {if (e == null) return {};- var n, r, i = LOe(e, t);+ var n, r, i = qke(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function LOe(e, t) {+function qke(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -65376,35 +66763,35 @@ function LOe(e, t) {}return n;}-function ROe(e) {- var t = vB(), n = (0, I.useRef)(null), r = oG(), { type: i } = e, a = U8(e, jOe), o = WY(r, "xAxis", i), s = (0, I.useMemo)(() => {+function Jke(e) {+ var t = XB(), n = (0, I.useRef)(null), r = XG(), { type: i } = e, a = U8(e, Vke), o = WY(r, "xAxis", i), s = (0, I.useMemo)(() => {if (o != null) return H8(H8({}, a), {}, { type: o });}, [a, o]);return (0, I.useLayoutEffect)(() => {- s != null && (n.current === null ? t(ewe(s)) : n.current !== s && t(twe({+ s != null && (n.current === null ? t(uTe(s)) : n.current !== s && t(dTe({prev: n.current,next: s})), n.current = s);}, [s, t]), (0, I.useLayoutEffect)(() => () => {- n.current &&= (t(nwe(n.current)), null);+ n.current &&= (t(fTe(n.current)), null);}, [t]), null;}-var zOe = (e) => {- var { xAxisId: t, className: n } = e, r = Q(SW), i = wW(), a = "xAxis", o = Q((e) => G1(e, a, t, i)), s = Q((e) => R1(e, t)), c = Q((e) => oye(e, t)), l = Q((e) => M$(e, t));+var Yke = (e) => {+ var { xAxisId: t, className: n } = e, r = Q(fG), i = mG(), a = "xAxis", o = Q((e) => G1(e, a, t, i)), s = Q((e) => R1(e, t)), c = Q((e) => gbe(e, t)), l = Q((e) => M$(e, t));if (s == null || c == null || l == null) return null;- var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = U8(e, MOe), { id: m, scale: h } = l, g = U8(l, NOe);+ var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = U8(e, Hke), { id: m, scale: h } = l, g = U8(l, Uke);return /*#__PURE__*/ I.createElement(z6, B8({}, p, g, {x: c.x,y: c.y,width: s.width,height: s.height,- className: Jm(`recharts-${a} ${a}`, n),+ className: Xm(`recharts-${a} ${a}`, n),viewBox: r,ticks: o,axisType: a,axisId: t}));-}, BOe = {+}, Xke = {allowDataOverflow: j$.allowDataOverflow,allowDecimals: j$.allowDecimals,allowDuplicatedCategory: j$.allowDuplicatedCategory,@@ -65429,8 +66816,8 @@ var zOe = (e) => {niceTicks: j$.niceTicks,xAxisId: 0}, W8 = /*#__PURE__*/ I.memo((e) => {- var t = Gz(e, BOe);- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(ROe, {+ var t = CB(e, Xke);+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(Jke, {allowDataOverflow: t.allowDataOverflow,allowDecimals: t.allowDecimals,allowDuplicatedCategory: t.allowDuplicatedCategory,@@ -65456,16 +66843,16 @@ var zOe = (e) => {type: t.type,unit: t.unit,niceTicks: t.niceTicks- }), /*#__PURE__*/ I.createElement(zOe, t));+ }), /*#__PURE__*/ I.createElement(Yke, t));}, z8);W8.displayName = "XAxis";//#endregion//#region node_modules/recharts/es6/cartesian/YAxis.js-var VOe = ["type"], HOe = [+var Zke = ["type"], Qke = ["dangerouslySetInnerHTML","ticks","scale"-], UOe = ["id", "scale"];+], $ke = ["id", "scale"];function G8() {return G8 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {@@ -65489,26 +66876,26 @@ function q8(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? K8(Object(n), !0).forEach(function(t) {- WOe(e, t, n[t]);+ eAe(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : K8(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function WOe(e, t, n) {- return (t = GOe(t)) in e ? Object.defineProperty(e, t, {+function eAe(e, t, n) {+ return (t = tAe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function GOe(e) {- var t = KOe(e, "string");+function tAe(e) {+ var t = nAe(e, "string");return typeof t == "symbol" ? t : t + "";}-function KOe(e, t) {+function nAe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -65520,14 +66907,14 @@ function KOe(e, t) {}function J8(e, t) {if (e == null) return {};- var n, r, i = qOe(e, t);+ var n, r, i = rAe(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function qOe(e, t) {+function rAe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -65536,27 +66923,27 @@ function qOe(e, t) {}return n;}-function JOe(e) {- var t = vB(), n = (0, I.useRef)(null), r = oG(), { type: i } = e, a = J8(e, VOe), o = WY(r, "yAxis", i), s = (0, I.useMemo)(() => {+function iAe(e) {+ var t = XB(), n = (0, I.useRef)(null), r = XG(), { type: i } = e, a = J8(e, Zke), o = WY(r, "yAxis", i), s = (0, I.useMemo)(() => {if (o != null) return q8(q8({}, a), {}, { type: o });}, [o, a]);return (0, I.useLayoutEffect)(() => {- s != null && (n.current === null ? t(rwe(s)) : n.current !== s && t(iwe({+ s != null && (n.current === null ? t(pTe(s)) : n.current !== s && t(mTe({prev: n.current,next: s})), n.current = s);}, [s, t]), (0, I.useLayoutEffect)(() => () => {- n.current &&= (t(awe(n.current)), null);+ n.current &&= (t(hTe(n.current)), null);}, [t]), null;}-function YOe(e) {- var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, I.useRef)(null), o = (0, I.useRef)(null), s = Q(SW), c = wW(), l = vB(), u = "yAxis", d = Q((e) => z1(e, t)), f = Q((e) => sye(e, t)), p = Q((e) => G1(e, u, t, c)), m = Q((e) => F$(e, t));+function aAe(e) {+ var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, I.useRef)(null), o = (0, I.useRef)(null), s = Q(fG), c = mG(), l = XB(), u = "yAxis", d = Q((e) => z1(e, t)), f = Q((e) => _be(e, t)), p = Q((e) => G1(e, u, t, c)), m = Q((e) => F$(e, t));if ((0, I.useLayoutEffect)(() => {if (!(r !== "auto" || !d || t4(i) || /*#__PURE__*/ (0, I.isValidElement)(i) || m == null)) {var e = a.current;if (e) {var n = e.getCalculatedWidth();- Math.round(d.width) !== Math.round(n) && l(lwe({+ Math.round(d.width) !== Math.round(n) && l(yTe({id: t,width: n}));@@ -65571,7 +66958,7 @@ function YOe(e) {r,m]), d == null || f == null || m == null) return null;- var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = J8(e, HOe), { id: y, scale: b } = m, x = J8(m, UOe);+ var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = J8(e, Qke), { id: y, scale: b } = m, x = J8(m, $ke);return /*#__PURE__*/ I.createElement(z6, G8({}, v, x, {ref: a,labelRef: o,@@ -65580,14 +66967,14 @@ function YOe(e) {tickTextProps: r === "auto" ? { width: void 0 } : { width: r },width: d.width,height: d.height,- className: Jm(`recharts-${u} ${u}`, n),+ className: Xm(`recharts-${u} ${u}`, n),viewBox: s,ticks: p,axisType: u,axisId: t}));}-var XOe = {+var oAe = {allowDataOverflow: P$.allowDataOverflow,allowDecimals: P$.allowDecimals,allowDuplicatedCategory: P$.allowDuplicatedCategory,@@ -65612,8 +66999,8 @@ var XOe = {width: P$.width,yAxisId: 0}, Y8 = /*#__PURE__*/ I.memo((e) => {- var t = Gz(e, XOe);- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(JOe, {+ var t = CB(e, oAe);+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(iAe, {interval: t.interval,id: t.yAxisId,scale: t.scale,@@ -65639,27 +67026,27 @@ var XOe = {tick: t.tick,tickFormatter: t.tickFormatter,niceTicks: t.niceTicks- }), /*#__PURE__*/ I.createElement(YOe, t));+ }), /*#__PURE__*/ I.createElement(aAe, t));}, z8);Y8.displayName = "YAxis";var X8 = $([(e, t) => t,- iG,+ JG,rX,dX,D0,k0,- rbe,- bW-], ube);+ pxe,+ uG+], bxe);//#endregion//#region node_modules/recharts/es6/util/getRelativeCoordinate.js-function ZOe(e) {+function sAe(e) {return "getBBox" in e.currentTarget && typeof e.currentTarget.getBBox == "function";}function Z8(e) {var t = e.currentTarget.getBoundingClientRect(), n, r;- if (ZOe(e)) {+ if (sAe(e)) {var i = e.currentTarget.getBBox();n = i.width > 0 ? t.width / i.width : 1, r = i.height > 0 ? t.height / i.height : 1;} else {@@ -65674,19 +67061,19 @@ function Z8(e) {}//#endregion//#region node_modules/recharts/es6/state/mouseEventsMiddleware.js-var Q8 = dH("mouseClick"), $8 = yU();+var Q8 = tU("mouseClick"), $8 = lW();$8.startListening({actionCreator: Q8,effect: (e, t) => {var n = e.payload, r = X8(t.getState(), Z8(n));- r?.activeIndex != null && t.dispatch(_ye({+ r?.activeIndex != null && t.dispatch(Dbe({activeIndex: r.activeIndex,activeDataKey: void 0,activeCoordinate: r.activeCoordinate}));}});-var e5 = dH("mouseMove"), t5 = yU(), n5 = null, r5 = null, i5 = null;+var e5 = tU("mouseMove"), t5 = lW(), n5 = null, r5 = null, i5 = null;t5.startListening({actionCreator: e5,effect: (e, t) => {@@ -65717,7 +67104,7 @@ t5.startListening({});//#endregion//#region node_modules/recharts/es6/state/reduxDevtoolsJsonStringifyReplacer.js-function QOe(e, t) {+function cAe(e, t) {return t instanceof HTMLElement ? `HTMLElement <${t.tagName} class="${t.className}">` : t === window ? "global.window" : e === "children" && typeof t == "object" && t ? "<<CHILDREN>>" : t;}//#endregion@@ -65734,17 +67121,17 @@ var a5 = {syncMethod: "index",baseValue: void 0,reverseStackOrder: !1-}, o5 = NH({+}, o5 = CU({name: "rootProps",initialState: a5,reducers: { updateOptions: (e, t) => {e.accessibilityLayer = t.payload.accessibilityLayer, e.barCategoryGap = t.payload.barCategoryGap, e.barGap = t.payload.barGap ?? a5.barGap, e.barSize = t.payload.barSize, e.maxBarSize = t.payload.maxBarSize, e.stackOffset = t.payload.stackOffset, e.syncId = t.payload.syncId, e.syncMethod = t.payload.syncMethod, e.className = t.payload.className, e.baseValue = t.payload.baseValue, e.reverseStackOrder = t.payload.reverseStackOrder;} }-}), $Oe = o5.reducer, { updateOptions: eke } = o5.actions, s5 = NH({+}), lAe = o5.reducer, { updateOptions: uAe } = o5.actions, s5 = CU({name: "polarOptions",initialState: null,reducers: { updatePolarOptions: (e, t) => e === null ? t.payload : (e.startAngle = t.payload.startAngle, e.endAngle = t.payload.endAngle, e.cx = t.payload.cx, e.cy = t.payload.cy, e.innerRadius = t.payload.innerRadius, e.outerRadius = t.payload.outerRadius, e) }-}), { updatePolarOptions: tke } = s5.actions, nke = s5.reducer, c5 = dH("keyDown"), l5 = dH("focus"), u5 = dH("blur"), d5 = yU(), f5 = null, p5 = null, m5 = null;+}), { updatePolarOptions: dAe } = s5.actions, fAe = s5.reducer, c5 = tU("keyDown"), l5 = tU("focus"), u5 = tU("blur"), d5 = lW(), f5 = null, p5 = null, m5 = null;d5.startListening({actionCreator: c5,effect: (e, t) => {@@ -65769,7 +67156,7 @@ d5.startListening({}));return;}- var c = cye(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;+ var c = vbe(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;if (o == null || l >= o.length || l < 0) return;var u = X0(e, "axis", "hover", String(l));t.dispatch(o0({@@ -65832,7 +67219,7 @@ function h5(e) {}//#endregion//#region node_modules/recharts/es6/state/externalEventsMiddleware.js-var g5 = dH("externalEvent"), _5 = yU(), v5 = /* @__PURE__ */ new Map(), y5 = /* @__PURE__ */ new Map(), b5 = /* @__PURE__ */ new Map();+var g5 = tU("externalEvent"), _5 = lW(), v5 = /* @__PURE__ */ new Map(), y5 = /* @__PURE__ */ new Map(), b5 = /* @__PURE__ */ new Map();_5.startListening({actionCreator: g5,effect: (e, t) => {@@ -65852,12 +67239,12 @@ _5.startListening({try {if (!e) return;var { handler: n, reactEvent: r } = e, a = t.getState(), o = {- activeCoordinate: Uye(a),+ activeCoordinate: $be(a),activeDataKey: I0(a),activeIndex: P0(a),activeLabel: F0(a),activeTooltipIndex: P0(a),- isTooltipActive: Wye(a)+ isTooltipActive: exe(a)};n && n(o, r);} finally {@@ -65881,7 +67268,7 @@ _5.startListening({}}});-var rke = $([+var pAe = $([$([m0], (e) => e.tooltipItemPayloads),(e, t) => t,(e, t, n) => n@@ -65893,7 +67280,7 @@ var rke = $([if (i != null) return i(t);}}-}), x5 = dH("touchMove"), S5 = yU(), C5 = null, w5 = null, T5 = null, E5 = null;+}), x5 = tU("touchMove"), S5 = lW(), C5 = null, w5 = null, T5 = null, E5 = null;S5.startListening({actionCreator: x5,effect: (e, t) => {@@ -65926,9 +67313,9 @@ S5.startListening({if (document.elementFromPoint == null || a == null) return;var o = document.elementFromPoint(a.clientX, a.clientY);if (!o || !o.getAttribute) return;- var s = o.getAttribute(lW), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = b0(e).find((e) => e.id === c);+ var s = o.getAttribute($W), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = b0(e).find((e) => e.id === c);if (s == null || l == null || c == null) return;- var { dataKey: u } = l, d = rke(e, s, c);+ var { dataKey: u } = l, d = pAe(e, s, c);t.dispatch(n0({activeDataKey: u,activeIndex: s,@@ -65960,33 +67347,33 @@ var D5 = {"scroll","wheel"]-}, O5 = NH({+}, O5 = CU({name: "eventSettings",initialState: D5,reducers: { setEventSettings: (e, t) => {- t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = oK(t.payload.throttledEvents));+ t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = XK(t.payload.throttledEvents));} }-}), { setEventSettings: ike } = O5.actions, ake = O5.reducer, oke = IB({- brush: CTe,- cartesianAxis: uwe,- chartData: Lbe,- errorBars: HEe,- eventSettings: ake,- graphicalItems: BCe,- layout: EU,- legend: pK,- options: Mbe,- polarAxis: ASe,- polarOptions: nke,- referenceElements: PTe,- renderedTicks: cEe,- rootProps: $Oe,- tooltip: vye,- zIndex: Cbe-}), ske = function(e) {+}), { setEventSettings: mAe } = O5.actions, hAe = O5.reducer, gAe = TV({+ brush: NEe,+ cartesianAxis: bTe,+ chartData: qxe,+ errorBars: QDe,+ eventSettings: hAe,+ graphicalItems: Xwe,+ layout: gW,+ legend: rq,+ options: Hxe,+ polarAxis: BCe,+ polarOptions: fAe,+ referenceElements: WEe,+ renderedTicks: vDe,+ rootProps: lAe,+ tooltip: Obe,+ zIndex: Nxe+}), _Ae = function(e) {var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Chart";- return CH({- reducer: oke,+ return pU({+ reducer: gAe,preloadedState: e,middleware: (e) => e({serializableCheck: !1,@@ -66004,10 +67391,10 @@ var D5 = {]),enhancers: (e) => {var t = e;- return typeof e == "function" && (t = e()), t.concat(xH({ type: "raf" }));+ return typeof e == "function" && (t = e()), t.concat(dU({ type: "raf" }));},- devTools: pq.devToolsEnabled && {- serialize: { replacer: QOe },+ devTools: rJ.devToolsEnabled && {+ serialize: { replacer: cAe },name: `recharts-${t}`}});@@ -66015,21 +67402,21 @@ var D5 = {//#endregion//#region node_modules/recharts/es6/state/RechartsStoreProvider.jsfunction k5(e) {- var { preloadedState: t, children: n, reduxStoreName: r } = e, i = wW(), a = (0, I.useRef)(null);+ var { preloadedState: t, children: n, reduxStoreName: r } = e, i = mG(), a = (0, I.useRef)(null);if (i) return n;- a.current ??= ske(t, r);- var o = _B;- return /*#__PURE__*/ I.createElement(kK, {+ a.current ??= _Ae(t, r);+ var o = YB;+ return /*#__PURE__*/ I.createElement(yq, {context: o,store: a.current}, n);}//#endregion//#region node_modules/recharts/es6/state/ReportMainChartProps.js-function cke(e) {- var { layout: t, margin: n } = e, r = vB(), i = wW();+function vAe(e) {+ var { layout: t, margin: n } = e, r = XB(), i = mG();return (0, I.useEffect)(() => {- i || (r(CU(t)), r(SU(n)));+ i || (r(pW(t)), r(fW(n)));}, [r,i,@@ -66037,31 +67424,31 @@ function cke(e) {n]), null;}-var A5 = /*#__PURE__*/ (0, I.memo)(cke, MK);+var A5 = /*#__PURE__*/ (0, I.memo)(vAe, Sq);//#endregion//#region node_modules/recharts/es6/state/ReportChartProps.jsfunction j5(e) {- var t = vB();+ var t = XB();return (0, I.useEffect)(() => {- t(eke(e));+ t(uAe(e));}, [t, e]), null;}var M5 = /*#__PURE__*/ (0, I.memo)((e) => {- var t = vB();+ var t = XB();return (0, I.useEffect)(() => {- t(ike(e));+ t(mAe(e));}, [t, e]), null;-}, MK);+}, Sq);//#endregion//#region node_modules/recharts/es6/zIndex/ZIndexPortal.jsfunction N5(e) {- var { zIndex: t, isPanorama: n } = e, r = (0, I.useRef)(null), i = vB();- return (0, I.useLayoutEffect)(() => (r.current && i(xbe({+ var { zIndex: t, isPanorama: n } = e, r = (0, I.useRef)(null), i = XB();+ return (0, I.useLayoutEffect)(() => (r.current && i(jxe({zIndex: t,element: r.current,isPanorama: n})), () => {- i(Sbe({+ i(Mxe({zIndex: t,isPanorama: n}));@@ -66076,7 +67463,7 @@ function N5(e) {});}function P5(e) {- var { children: t, isPanorama: n } = e, r = Q(fbe);+ var { children: t, isPanorama: n } = e, r = Q(Sxe);if (!r || r.length === 0) return t;var i = r.filter((e) => e < 0), a = r.filter((e) => e > 0);return /*#__PURE__*/ I.createElement(I.Fragment, null, i.map((e) => /*#__PURE__*/ I.createElement(N5, {@@ -66091,17 +67478,17 @@ function P5(e) {}//#endregion//#region node_modules/recharts/es6/container/RootSurface.js-var lke = ["children"];-function uke(e, t) {+var yAe = ["children"];+function bAe(e, t) {if (e == null) return {};- var n, r, i = dke(e, t);+ var n, r, i = xAe(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function dke(e, t) {+function xAe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -66119,46 +67506,46 @@ function F5() {return e;}, F5.apply(null, arguments);}-var fke = {+var SAe = {width: "100%",height: "100%",display: "block"-}, pke = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {- var n = tG(), r = nG(), i = Cq();- if (!kU(n) || !kU(r)) return null;+}, CAe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {+ var n = GG(), r = KG(), i = pJ();+ if (!yW(n) || !yW(r)) return null;var { children: a, otherAttributes: o, title: s, desc: c } = e, l, u;- return o != null && (l = typeof o.tabIndex == "number" ? o.tabIndex : i ? 0 : void 0, u = typeof o.role == "string" ? o.role : i ? "application" : void 0), /*#__PURE__*/ I.createElement(yR, F5({}, o, {+ return o != null && (l = typeof o.tabIndex == "number" ? o.tabIndex : i ? 0 : void 0, u = typeof o.role == "string" ? o.role : i ? "application" : void 0), /*#__PURE__*/ I.createElement(ZR, F5({}, o, {title: s,desc: c,role: u,tabIndex: l,width: n,height: r,- style: fke,+ style: SAe,ref: t}), a);-}), mke = (e) => {- var { children: t } = e, n = Q(EW);+}), wAe = (e) => {+ var { children: t } = e, n = Q(gG);if (!n) return null;var { width: r, height: i, y: a, x: o } = n;- return /*#__PURE__*/ I.createElement(yR, {+ return /*#__PURE__*/ I.createElement(ZR, {width: r,height: i,x: o,y: a}, t);}, I5 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {- var { children: n } = e, r = uke(e, lke);- return wW() ? /*#__PURE__*/ I.createElement(mke, null, /*#__PURE__*/ I.createElement(P5, { isPanorama: !0 }, n)) : /*#__PURE__*/ I.createElement(pke, F5({ ref: t }, r), /*#__PURE__*/ I.createElement(P5, { isPanorama: !1 }, n));+ var { children: n } = e, r = bAe(e, yAe);+ return mG() ? /*#__PURE__*/ I.createElement(wAe, null, /*#__PURE__*/ I.createElement(P5, { isPanorama: !0 }, n)) : /*#__PURE__*/ I.createElement(CAe, F5({ ref: t }, r), /*#__PURE__*/ I.createElement(P5, { isPanorama: !1 }, n));});//#endregion//#region node_modules/recharts/es6/util/useReportScale.js-function hke() {- var e = vB(), [t, n] = (0, I.useState)(null), r = Q(aW);+function TAe() {+ var e = XB(), [t, n] = (0, I.useState)(null), r = Q(YW);return (0, I.useEffect)(() => {if (t != null) {var n = t.getBoundingClientRect().width / t.offsetWidth;- OU(n) && n !== r && e(TU(n));+ vW(n) && n !== r && e(hW(n));}}, [t,@@ -66178,30 +67565,30 @@ function L5(e, t) {}return n;}-function gke(e) {+function EAe(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? L5(Object(n), !0).forEach(function(t) {- _ke(e, t, n[t]);+ DAe(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : L5(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function _ke(e, t, n) {- return (t = vke(t)) in e ? Object.defineProperty(e, t, {+function DAe(e, t, n) {+ return (t = OAe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function vke(e) {- var t = yke(e, "string");+function OAe(e) {+ var t = kAe(e, "string");return typeof t == "symbol" ? t : t + "";}-function yke(e, t) {+function kAe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -66220,7 +67607,7 @@ function R5() {return e;}, R5.apply(null, arguments);}-var bke = () => (Kbe(), null);+var AAe = () => (nSe(), null);function z5(e) {if (typeof e == "number") return e;if (typeof e == "string") {@@ -66229,7 +67616,7 @@ function z5(e) {}return 0;}-var xke = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {+var jAe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {var n = (0, I.useRef)(null), [r, i] = (0, I.useState)({containerWidth: z5(e.style?.width),containerHeight: z5(e.style?.height)@@ -66257,11 +67644,11 @@ var xke = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {}, [t, a]);return (0, I.useEffect)(() => () => {n.current?.disconnect();- }, [a]), /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(uG, {+ }, [a]), /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(eK, {width: r.containerWidth,height: r.containerHeight}), /*#__PURE__*/ I.createElement("div", R5({ ref: o }, e)));-}), Ske = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {+}), MAe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {var { width: n, height: r } = e, [i, a] = (0, I.useState)({containerWidth: z5(n),containerHeight: z5(r)@@ -66279,32 +67666,32 @@ var xke = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {o(n, r);}}, [t, o]);- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(uG, {+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(eK, {width: i.containerWidth,height: i.containerHeight}), /*#__PURE__*/ I.createElement("div", R5({ ref: s }, e)));-}), Cke = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {+}), NAe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {var { width: n, height: r } = e;- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(uG, {+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(eK, {width: n,height: r}), /*#__PURE__*/ I.createElement("div", R5({ ref: t }, e)));-}), wke = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {+}), PAe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {var { width: n, height: r } = e;- return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ I.createElement(Ske, R5({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ I.createElement(Cke, R5({}, e, {+ return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ I.createElement(MAe, R5({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ I.createElement(NAe, R5({}, e, {width: n,height: r,ref: t- })) : /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(uG, {+ })) : /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(eK, {width: n,height: r}), /*#__PURE__*/ I.createElement("div", R5({ ref: t }, e)));});-function Tke(e) {- return e ? xke : wke;+function FAe(e) {+ return e ? jAe : PAe;}-var Eke = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {- var { children: n, className: r, height: i, onClick: a, onContextMenu: o, onDoubleClick: s, onMouseDown: c, onMouseEnter: l, onMouseLeave: u, onMouseMove: d, onMouseUp: f, onTouchEnd: p, onTouchMove: m, onTouchStart: h, style: g, width: _, responsive: v, dispatchTouchEvents: y = !0 } = e, b = (0, I.useRef)(null), x = vB(), [S, C] = (0, I.useState)(null), [w, T] = (0, I.useState)(null), E = hke(), D = JW(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, I.useCallback)((e) => {+var IAe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {+ var { children: n, className: r, height: i, onClick: a, onContextMenu: o, onDoubleClick: s, onMouseDown: c, onMouseEnter: l, onMouseLeave: u, onMouseMove: d, onMouseUp: f, onTouchEnd: p, onTouchMove: m, onTouchStart: h, style: g, width: _, responsive: v, dispatchTouchEvents: y = !0 } = e, b = (0, I.useRef)(null), x = XB(), [S, C] = (0, I.useState)(null), [w, T] = (0, I.useState)(null), E = TAe(), D = RG(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, I.useCallback)((e) => {E(e), typeof t == "function" && t(e), C(e), T(e), e != null && (b.current = e);}, [E,@@ -66326,18 +67713,18 @@ var Eke = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {handler: u,reactEvent: e}));- }, [x, u]), P = (0, I.useCallback)((e) => {+ }, [x, u]), ee = (0, I.useCallback)((e) => {x(e5(e)), x(g5({handler: d,reactEvent: e}));- }, [x, d]), ee = (0, I.useCallback)(() => {+ }, [x, d]), te = (0, I.useCallback)(() => {x(l5());- }, [x]), F = (0, I.useCallback)(() => {+ }, [x]), P = (0, I.useCallback)(() => {x(u5());- }, [x]), te = (0, I.useCallback)((e) => {- x(c5(e.key));}, [x]), ne = (0, I.useCallback)((e) => {+ x(c5(e.key));+ }, [x]), F = (0, I.useCallback)((e) => {x(g5({handler: o,reactEvent: e@@ -66376,34 +67763,34 @@ var Eke = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {handler: p,reactEvent: e}));- }, [x, p]), L = Tke(v);- return /*#__PURE__*/ I.createElement(a2.Provider, { value: S }, /*#__PURE__*/ I.createElement(SR.Provider, { value: w }, /*#__PURE__*/ I.createElement(L, {+ }, [x, p]), le = FAe(v);+ return /*#__PURE__*/ I.createElement(a2.Provider, { value: S }, /*#__PURE__*/ I.createElement(ez.Provider, { value: w }, /*#__PURE__*/ I.createElement(le, {width: O ?? g?.width,height: k ?? g?.height,- className: Jm("recharts-wrapper", r),- style: gke({+ className: Xm("recharts-wrapper", r),+ style: EAe({position: "relative",cursor: "default",width: O,height: k}, g),onClick: j,- onContextMenu: ne,+ onContextMenu: F,onDoubleClick: re,- onFocus: ee,- onBlur: F,- onKeyDown: te,+ onFocus: te,+ onBlur: P,+ onKeyDown: ne,onMouseDown: ie,onMouseEnter: M,onMouseLeave: N,- onMouseMove: P,+ onMouseMove: ee,onMouseUp: ae,onTouchEnd: ce,onTouchMove: se,onTouchStart: oe,ref: A- }, /*#__PURE__*/ I.createElement(bke, null), n)));-}), Dke = [+ }, /*#__PURE__*/ I.createElement(AAe, null), n)));+}), LAe = ["width","height","responsive",@@ -66414,16 +67801,16 @@ var Eke = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {"title","desc"];-function Oke(e, t) {+function RAe(e, t) {if (e == null) return {};- var n, r, i = kke(e, t);+ var n, r, i = zAe(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function kke(e, t) {+function zAe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -66433,15 +67820,15 @@ function kke(e, t) {return n;}var B5 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {- var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = hR(Oke(e, Dke));- return c ? /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(uG, {+ var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = qR(RAe(e, LAe));+ return c ? /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(eK, {width: n,height: r}), /*#__PURE__*/ I.createElement(I5, {otherAttributes: d,title: l,desc: u- }, a)) : /*#__PURE__*/ I.createElement(Eke, {+ }, a)) : /*#__PURE__*/ I.createElement(IAe, {className: o,style: s,width: n,@@ -66463,7 +67850,7 @@ var B5 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {title: l,desc: u,ref: t- }, /*#__PURE__*/ I.createElement(FTe, null, a)));+ }, /*#__PURE__*/ I.createElement(GEe, null, a)));});//#endregion//#region node_modules/recharts/es6/chart/CartesianChart.js@@ -66486,30 +67873,30 @@ function H5(e, t) {}return n;}-function Ake(e) {+function BAe(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? H5(Object(n), !0).forEach(function(t) {- jke(e, t, n[t]);+ VAe(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H5(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function jke(e, t, n) {- return (t = Mke(t)) in e ? Object.defineProperty(e, t, {+function VAe(e, t, n) {+ return (t = HAe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function Mke(e) {- var t = Nke(e, "string");+function HAe(e) {+ var t = UAe(e, "string");return typeof t == "symbol" ? t : t + "";}-function Nke(e, t) {+function UAe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -66519,7 +67906,7 @@ function Nke(e, t) {}return (t === "string" ? String : Number)(e);}-var Pke = Ake({+var WAe = BAe({accessibilityLayer: !0,barCategoryGap: "10%",barGap: 4,@@ -66535,7 +67922,7 @@ var Pke = Ake({stackOffset: "none",syncMethod: "index"}, D5), U5 = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {- var n = Gz(e.categoricalChartProps, Pke), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {+ var n = CB(e.categoricalChartProps, WAe), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {chartName: r,defaultTooltipEventType: i,validateTooltipEventTypes: a,@@ -66564,32 +67951,32 @@ var Pke = Ake({className: n.className,reverseStackOrder: n.reverseStackOrder}), /*#__PURE__*/ I.createElement(B5, V5({}, n, { ref: t })));-}), Fke = ["axis"], Ike = /*#__PURE__*/ (0, I.forwardRef)((e, t) => /*#__PURE__*/ I.createElement(U5, {+}), GAe = ["axis"], KAe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => /*#__PURE__*/ I.createElement(U5, {chartName: "LineChart",defaultTooltipEventType: "axis",- validateTooltipEventTypes: Fke,+ validateTooltipEventTypes: GAe,tooltipPayloadSearcher: l2,categoricalChartProps: e,ref: t-})), Lke = ["axis", "item"], W5 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => /*#__PURE__*/ I.createElement(U5, {+})), qAe = ["axis", "item"], W5 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => /*#__PURE__*/ I.createElement(U5, {chartName: "BarChart",defaultTooltipEventType: "axis",- validateTooltipEventTypes: Lke,+ validateTooltipEventTypes: qAe,tooltipPayloadSearcher: l2,categoricalChartProps: e,ref: t}));//#endregion//#region node_modules/recharts/es6/state/ReportPolarOptions.js-function Rke(e) {- var t = vB();+function JAe(e) {+ var t = XB();return (0, I.useEffect)(() => {- t(tke(e));+ t(dAe(e));}, [t, e]), null;}//#endregion//#region node_modules/recharts/es6/chart/PolarChart.js-var zke = ["layout"];+var YAe = ["layout"];function G5() {return G5 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {@@ -66599,16 +67986,16 @@ function G5() {return e;}, G5.apply(null, arguments);}-function Bke(e, t) {+function XAe(e, t) {if (e == null) return {};- var n, r, i = Vke(e, t);+ var n, r, i = ZAe(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function Vke(e, t) {+function ZAe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -66627,30 +68014,30 @@ function K5(e, t) {}return n;}-function Hke(e) {+function QAe(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? K5(Object(n), !0).forEach(function(t) {- Uke(e, t, n[t]);+ $Ae(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : K5(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function Uke(e, t, n) {- return (t = Wke(t)) in e ? Object.defineProperty(e, t, {+function $Ae(e, t, n) {+ return (t = eje(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function Wke(e) {- var t = Gke(e, "string");+function eje(e) {+ var t = tje(e, "string");return typeof t == "symbol" ? t : t + "";}-function Gke(e, t) {+function tje(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -66660,7 +68047,7 @@ function Gke(e, t) {}return (t === "string" ? String : Number)(e);}-var q5 = Hke({+var q5 = QAe({accessibilityLayer: !0,stackOffset: "none",barCategoryGap: "10%",@@ -66680,7 +68067,7 @@ var q5 = Hke({innerRadius: 0,outerRadius: "80%"}, D5), J5 = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {- var n = Gz(e.categoricalChartProps, q5), { layout: r } = n, i = Bke(n, zke), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {+ var n = CB(e.categoricalChartProps, q5), { layout: r } = n, i = XAe(n, YAe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {chartName: a,defaultTooltipEventType: o,validateTooltipEventTypes: s,@@ -66708,7 +68095,7 @@ var q5 = Hke({syncMethod: n.syncMethod,className: n.className,reverseStackOrder: n.reverseStackOrder- }), /*#__PURE__*/ I.createElement(Rke, {+ }), /*#__PURE__*/ I.createElement(JAe, {cx: n.cx,cy: n.cy,startAngle: n.startAngle,@@ -66733,26 +68120,26 @@ function X5(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? Y5(Object(n), !0).forEach(function(t) {- Kke(e, t, n[t]);+ nje(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Y5(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function Kke(e, t, n) {- return (t = qke(t)) in e ? Object.defineProperty(e, t, {+function nje(e, t, n) {+ return (t = rje(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function qke(e) {- var t = Jke(e, "string");+function rje(e) {+ var t = ije(e, "string");return typeof t == "symbol" ? t : t + "";}-function Jke(e, t) {+function ije(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -66762,24 +68149,24 @@ function Jke(e, t) {}return (t === "string" ? String : Number)(e);}-var Yke = ["axis"], Xke = X5(X5({}, q5), {}, {+var aje = ["axis"], oje = X5(X5({}, q5), {}, {layout: "centric",startAngle: 90,endAngle: -270-}), Zke = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {- var n = Gz(e, Xke);+}), sje = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {+ var n = CB(e, oje);return /*#__PURE__*/ I.createElement(J5, {chartName: "RadarChart",defaultTooltipEventType: "axis",- validateTooltipEventTypes: Yke,+ validateTooltipEventTypes: aje,tooltipPayloadSearcher: l2,categoricalChartProps: n,ref: t});-}), Qke = ["axis"], $ke = /*#__PURE__*/ (0, I.forwardRef)((e, t) => /*#__PURE__*/ I.createElement(U5, {+}), cje = ["axis"], lje = /*#__PURE__*/ (0, I.forwardRef)((e, t) => /*#__PURE__*/ I.createElement(U5, {chartName: "AreaChart",defaultTooltipEventType: "axis",- validateTooltipEventTypes: Qke,+ validateTooltipEventTypes: cje,tooltipPayloadSearcher: l2,categoricalChartProps: e,ref: t@@ -66800,26 +68187,26 @@ function Q5(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];t % 2 ? Z5(Object(n), !0).forEach(function(t) {- eAe(e, t, n[t]);+ uje(e, t, n[t]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Z5(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function eAe(e, t, n) {- return (t = tAe(t)) in e ? Object.defineProperty(e, t, {+function uje(e, t, n) {+ return (t = dje(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function tAe(e) {- var t = nAe(e, "string");+function dje(e) {+ var t = fje(e, "string");return typeof t == "symbol" ? t : t + "";}-function nAe(e, t) {+function fje(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -66829,16 +68216,16 @@ function nAe(e, t) {}return (t === "string" ? String : Number)(e);}-var rAe = ["axis", "item"], iAe = Q5(Q5({}, q5), {}, {+var pje = ["axis", "item"], mje = Q5(Q5({}, q5), {}, {layout: "radial",startAngle: 0,endAngle: 360-}), aAe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {- var n = Gz(e, iAe);+}), $5 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {+ var n = CB(e, mje);return /*#__PURE__*/ I.createElement(J5, {chartName: "RadialBarChart",defaultTooltipEventType: "axis",- validateTooltipEventTypes: rAe,+ validateTooltipEventTypes: pje,tooltipPayloadSearcher: l2,categoricalChartProps: n,ref: t@@ -66846,42 +68233,42 @@ var rAe = ["axis", "item"], iAe = Q5(Q5({}, q5), {}, {});//#endregion//#region src/react/charts/cn.ts-function $5(...e) {- return _w(Jm(e));+function e7(...e) {+ return XC(Xm(e));}//#endregion//#region src/react/evilcharts/registry/ui/recharts-chart.tsx-var e7 = {+var t7 = {light: "",dark: ".dark"-}, t7 = Object.keys(e7);-function oAe(e) {- for (let [t, n] of Object.entries(e)) if (n.colors && !t7.some((e) => n.colors?.[e] !== void 0)) throw Error(`[EvilCharts] Invalid chart config for "${t}": colors object must have at least one theme key (${t7.join(", ")}). Received empty object or invalid keys.`);+}, n7 = Object.keys(t7);+function hje(e) {+ for (let [t, n] of Object.entries(e)) if (n.colors && !n7.some((e) => n.colors?.[e] !== void 0)) throw Error(`[EvilCharts] Invalid chart config for "${t}": colors object must have at least one theme key (${n7.join(", ")}). Received empty object or invalid keys.`);}-var n7 = I.createContext(null);-function r7() {- let e = I.useContext(n7);+var r7 = I.createContext(null);+function i7() {+ let e = I.useContext(r7);if (!e) throw Error("useChart must be used within a <ChartContainer />");return e;}-function i7({ id: e, config: t, initialDimension: n = {+function a7({ id: e, config: t, initialDimension: n = {width: 320,height: 200}, className: r, children: i, footer: a, ...o }) {let s = I.useId(), c = `chart-${e ?? s.replace(/:/g, "")}`;- return oAe(t), /* @__PURE__ */ (0, L.jsx)(n7.Provider, {+ return hje(t), /* @__PURE__ */ (0, L.jsx)(r7.Provider, {value: { config: t },children: /* @__PURE__ */ (0, L.jsxs)("div", {"data-slot": "chart","data-chart": c,- className: $5("min-h-0 w-full flex-1", "[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border relative flex flex-col justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", !a && "aspect-video", r),+ className: e7("min-h-0 w-full flex-1", "[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border relative flex flex-col justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", !a && "aspect-video", r),...o,children: [- /* @__PURE__ */ (0, L.jsx)(o7, {+ /* @__PURE__ */ (0, L.jsx)(s7, {id: c,config: t}),- /* @__PURE__ */ (0, L.jsx)(XW, {+ /* @__PURE__ */ (0, L.jsx)(BG, {className: "min-h-0 w-full flex-1",initialDimension: n,children: i@@ -66891,7 +68278,7 @@ function i7({ id: e, config: t, initialDimension: n = {})});}-function a7({ isLoading: e }) {+function o7({ isLoading: e }) {return e ? /* @__PURE__ */ (0, L.jsx)("div", {className: "pointer-events-none absolute inset-0 z-20 flex items-center justify-center",children: /* @__PURE__ */ (0, L.jsxs)("div", {@@ -66900,7 +68287,7 @@ function a7({ isLoading: e }) {})}) : null;}-function sAe(e, t) {+function gje(e, t) {let n = e.length;if (n >= t) return e.slice(0, t);let r = [], i = Math.floor(t / n), a = t % n;@@ -66910,46 +68297,46 @@ function sAe(e, t) {}return r;}-var o7 = ({ id: e, config: t }) => {+var s7 = ({ id: e, config: t }) => {let n = Object.entries(t).filter(([, e]) => e.colors);if (!n.length) return null;let r = (e) => n.flatMap(([t, n]) => {let r = n.colors?.[e];- return !r || !Array.isArray(r) || r.length === 0 ? [] : sAe(r, c7(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);- }).filter(Boolean).join("\n"), i = Object.entries(e7).map(([t, n]) => `${n} [data-chart=${e}] {\n${r(t)}\n}`).join("\n");+ return !r || !Array.isArray(r) || r.length === 0 ? [] : gje(r, l7(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);+ }).filter(Boolean).join("\n"), i = Object.entries(t7).map(([t, n]) => `${n} [data-chart=${e}] {\n${r(t)}\n}`).join("\n");return /* @__PURE__ */ (0, L.jsx)("style", { dangerouslySetInnerHTML: { __html: i } });};-function s7(e, t, n) {+function c7(e, t, n) {if (typeof t != "object" || !t) return;let r = "payload" in t && typeof t.payload == "object" && t.payload !== null ? t.payload : void 0, i = n;return n in t && typeof t[n] == "string" ? i = t[n] : r && n in r && typeof r[n] == "string" && (i = r[n]), i in e ? e[i] : e[n];}-function c7(e) {+function l7(e) {if (!e.colors) return 1;- let t = t7.map((t) => e.colors?.[t]?.length ?? 0);+ let t = n7.map((t) => e.colors?.[t]?.length ?? 0);return Math.max(...t, 1);}-var cAe = (e = 10, t = 0, n = 70) => {+var _je = (e = 10, t = 0, n = 70) => {let r = n - t;return Array.from({ length: e }, () => ({ loading: Math.floor(Math.random() * r) + t }));-}, lAe = {+}, vje = {sm: "rounded-sm",md: "rounded-md",lg: "rounded-lg",xl: "rounded-xl"-}, uAe = {+}, yje = {default: "bg-background","frosted-glass": "bg-background/70 backdrop-blur-sm"};-function l7({ active: e, payload: t, className: n, indicator: r = "dot", hideLabel: i = !1, hideIndicator: a = !1, label: o, labelFormatter: s, labelClassName: c, formatter: l, nameKey: u, labelKey: d, selected: f, roundness: p = "lg", variant: m = "default" }) {- let { config: h } = r7(), g = I.useMemo(() => {+function u7({ active: e, payload: t, className: n, indicator: r = "dot", hideLabel: i = !1, hideIndicator: a = !1, label: o, labelFormatter: s, labelClassName: c, formatter: l, nameKey: u, labelKey: d, selected: f, roundness: p = "lg", variant: m = "default" }) {+ let { config: h } = i7(), g = I.useMemo(() => {if (i || !t?.length) return null;- let [e] = t, n = `${d ?? e?.dataKey ?? e?.name ?? "value"}`, r = s7(h, e, n), a = !d && typeof o == "string" ? h[o]?.label ?? o : r?.label;+ let [e] = t, n = `${d ?? e?.dataKey ?? e?.name ?? "value"}`, r = c7(h, e, n), a = !d && typeof o == "string" ? h[o]?.label ?? o : r?.label;return s ? /* @__PURE__ */ (0, L.jsx)("div", {- className: $5("font-medium", c),+ className: e7("font-medium", c),children: s(a, t)}) : a ? /* @__PURE__ */ (0, L.jsx)("div", {- className: $5("font-medium", c),+ className: e7("font-medium", c),children: a}) : null;}, [@@ -66964,23 +68351,23 @@ function l7({ active: e, payload: t, className: n, indicator: r = "dot", hideLabif (!e || !t?.length) return /* @__PURE__ */ (0, L.jsx)("span", { className: "p-4" });let _ = t.length === 1 && r !== "dot";return /* @__PURE__ */ (0, L.jsxs)("div", {- className: $5("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", lAe[p], uAe[m], n),+ className: e7("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", vje[p], yje[m], n),children: [_ ? null : g, /* @__PURE__ */ (0, L.jsx)("div", {className: "grid gap-1.5",children: t.filter((e) => e.type !== "none").map((e, t) => {- let n = `${(u && e.payload ? e.payload[u] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, i = s7(h, e, n), o = i ? c7(i) : 1;+ let n = `${(u && e.payload ? e.payload[u] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, i = c7(h, e, n), o = i ? l7(i) : 1;return /* @__PURE__ */ (0, L.jsx)("div", {- className: $5("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5", r === "dot" && "items-center", f != null && f !== e.dataKey && "opacity-30"),+ className: e7("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5", r === "dot" && "items-center", f != null && f !== e.dataKey && "opacity-30"),children: l && e?.value !== void 0 && e.name ? l(e.value, e.name, e, t, e.payload) : /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [i?.icon ? /* @__PURE__ */ (0, L.jsx)(i.icon, {}) : !a && /* @__PURE__ */ (0, L.jsx)("div", {- className: $5("shrink-0 rounded-[2px]", {+ className: e7("shrink-0 rounded-[2px]", {"h-2.5 w-2.5": r === "dot","w-1": r === "line","w-0 border-[1.5px] border-dashed bg-transparent!": r === "dashed","my-0.5": _ && r === "dashed"}),- style: dAe(n, o)+ style: bje(n, o)}), /* @__PURE__ */ (0, L.jsxs)("div", {- className: $5("flex flex-1 justify-between gap-4 leading-none", _ ? "items-end" : "items-center"),+ className: e7("flex flex-1 justify-between gap-4 leading-none", _ ? "items-end" : "items-center"),children: [/* @__PURE__ */ (0, L.jsxs)("div", {className: "grid gap-1.5",children: [_ ? g : null, /* @__PURE__ */ (0, L.jsx)("span", {@@ -66997,27 +68384,27 @@ function l7({ active: e, payload: t, className: n, indicator: r = "dot", hideLab})]});}-function dAe(e, t) {+function bje(e, t) {return t <= 1 ? { background: `var(--color-${e}-0)` } : { background: `linear-gradient(to right, ${Array.from({ length: t }, (n, r) => `var(--color-${e}-${r}) ${r / (t - 1) * 100}%`).join(", ")})` };}-var u7 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, L.jsx)(exe, {+var d7 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, L.jsx)(uSe, {animationDuration: e,...t});//#endregion//#region src/react/evilcharts/registry/ui/recharts-legend.tsx-function d7({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAlign: i, align: a = "right", selected: o, onSelectChange: s, isClickable: c, variant: l = "rounded-square" }) {- let { config: u } = r7();+function f7({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAlign: i, align: a = "right", selected: o, onSelectChange: s, isClickable: c, variant: l = "rounded-square" }) {+ let { config: u } = i7();return r?.length ? /* @__PURE__ */ (0, L.jsx)("div", {- className: $5("flex items-center gap-4 select-none", a === "left" && "justify-start", a === "center" && "justify-center", a === "right" && "justify-end", i === "top" ? "pb-4" : "pt-4", e),+ className: e7("flex items-center gap-4 select-none", a === "left" && "justify-start", a === "center" && "justify-center", a === "right" && "justify-end", i === "top" ? "pb-4" : "pt-4", e),children: r.filter((e) => e.type !== "none").map((e) => {- let r = `${(n && e.payload ? e.payload[n] : void 0) ?? e.value ?? e.dataKey ?? "value"}`, i = s7(u, e, r), a = o === null || o === r, d = i ? c7(i) : 1;+ let r = `${(n && e.payload ? e.payload[n] : void 0) ?? e.value ?? e.dataKey ?? "value"}`, i = c7(u, e, r), a = o === null || o === r, d = i ? l7(i) : 1;return /* @__PURE__ */ (0, L.jsxs)("div", {- className: $5("[&>svg]:text-muted-foreground flex items-center gap-1.5 transition-opacity [&>svg]:h-3 [&>svg]:w-3", !a && "opacity-30", c && "cursor-pointer"),+ className: e7("[&>svg]:text-muted-foreground flex items-center gap-1.5 transition-opacity [&>svg]:h-3 [&>svg]:w-3", !a && "opacity-30", c && "cursor-pointer"),onClick: () => {c && s?.(o === r ? null : r);},- children: [i?.icon && !t ? /* @__PURE__ */ (0, L.jsx)(i.icon, {}) : /* @__PURE__ */ (0, L.jsx)(fAe, {+ children: [i?.icon && !t ? /* @__PURE__ */ (0, L.jsx)(i.icon, {}) : /* @__PURE__ */ (0, L.jsx)(xje, {variant: l,dataKey: r,colorsCount: d@@ -67026,8 +68413,8 @@ function d7({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAl})}) : null;}-function fAe({ variant: e, dataKey: t, colorsCount: n }) {- let r = pAe(t, n), i = mAe(t, n);+function xje({ variant: e, dataKey: t, colorsCount: n }) {+ let r = Sje(t, n), i = Cje(t, n);switch (e) {case "square": return /* @__PURE__ */ (0, L.jsx)("div", {className: "h-2 w-2 shrink-0",@@ -67059,10 +68446,10 @@ function fAe({ variant: e, dataKey: t, colorsCount: n }) {});}}-function pAe(e, t) {+function Sje(e, t) {return t <= 1 ? { backgroundColor: `var(--color-${e}-0)` } : { background: `linear-gradient(to right, ${Array.from({ length: t }, (n, r) => `var(--color-${e}-${r}) ${r / (t - 1) * 100}%`).join(", ")})` };}-function mAe(e, t) {+function Cje(e, t) {let n = {WebkitMask: "linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",WebkitMaskComposite: "xor",@@ -67077,12 +68464,12 @@ function mAe(e, t) {...n};}-var f7 = XK, p7 = () => null, m7 = {+var p7 = Bq, m7 = () => null, h7 = {stiffness: 300,damping: 35,mass: .8};-function hAe({ range: e, totalPoints: t, containerRef: n, commit: r }) {+function wje({ range: e, totalPoints: t, containerRef: n, commit: r }) {let i = I.useRef(null), [a, o] = I.useState(!1), s = (0, I.useCallback)((e) => !n.current || t <= 1 ? 0 : Math.round(e / n.current.getBoundingClientRect().width * (t - 1)), [t, n]), c = (0, I.useCallback)((t, n) => {t.preventDefault(), t.target.setPointerCapture(t.pointerId), i.current = {type: n,@@ -67128,7 +68515,7 @@ function hAe({ range: e, totalPoints: t, containerRef: n, commit: r }) {])};}-function gAe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "area", height: a = 56, className: o, stacked: s = !1, strokeVariant: c = "solid", connectNulls: l = !1, barRadius: u, startIndex: d, endIndex: f, defaultStartIndex: p = 0, defaultEndIndex: m, onChange: h, formatLabel: g, curveType: _ = "monotone", minSpan: v = 2, showLabels: y = !0, skipStyle: b = !1 }) {+function Tje({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "area", height: a = 56, className: o, stacked: s = !1, strokeVariant: c = "solid", connectNulls: l = !1, barRadius: u, startIndex: d, endIndex: f, defaultStartIndex: p = 0, defaultEndIndex: m, onChange: h, formatLabel: g, curveType: _ = "monotone", minSpan: v = 2, showLabels: y = !0, skipStyle: b = !1 }) {let x = I.useRef(null), S = I.useMemo(() => n ?? Object.keys(t), [n, t]), C = e.length, w = I.useId().replace(/:/g, ""), T = d !== void 0 && f !== void 0, [E, D] = I.useState(() => ({startIndex: Math.max(0, Math.min(p, C - 1)),endIndex: Math.max(0, Math.min(m ?? C - 1, C - 1))@@ -67162,7 +68549,7 @@ function gAe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "startIndex: n,endIndex: r};- }, [C, v]), { isDragging: A, bind: j } = hAe({+ }, [C, v]), { isDragging: A, bind: j } = wje({range: E,totalPoints: C,containerRef: x,@@ -67187,16 +68574,16 @@ function gAe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "f,A]);- let N = C > 1 ? M.startIndex / (C - 1) * 100 : 0, P = C > 1 ? M.endIndex / (C - 1) * 100 : 100, ee = Cf(N), F = Cf(P);- ee.get() !== N && ee.set(N), F.get() !== P && F.set(P);- let te = Af(ee, m7), ne = Af(F, m7), re = Ef(te, (e) => `${e}%`), ie = Ef(ne, (e) => `${e}%`), ae = Ef(te, (e) => `${e}%`), oe = Ef(ne, (e) => `${Math.max(0, 100 - e)}%`), se = Cf(`${Math.max(0, P - N)}%`), ce = (0, I.useCallback)(() => {- se.set(`${Math.max(0, ne.get() - te.get())}%`);+ let N = C > 1 ? M.startIndex / (C - 1) * 100 : 0, ee = C > 1 ? M.endIndex / (C - 1) * 100 : 100, te = Tf(N), P = Tf(ee);+ te.get() !== N && te.set(N), P.get() !== ee && P.set(ee);+ let ne = Mf(te, h7), F = Mf(P, h7), re = Of(ne, (e) => `${e}%`), ie = Of(F, (e) => `${e}%`), ae = Of(ne, (e) => `${e}%`), oe = Of(F, (e) => `${Math.max(0, 100 - e)}%`), se = Tf(`${Math.max(0, ee - N)}%`), ce = (0, I.useCallback)(() => {+ se.set(`${Math.max(0, F.get() - ne.get())}%`);}, [- te,ne,+ F,se]);- Sf(te, "change", ce), Sf(ne, "change", ce);+ wf(ne, "change", ce), wf(F, "change", ce);let le = (0, I.useCallback)((t) => {if (!r) return String(t);let n = e[t]?.[r];@@ -67209,16 +68596,16 @@ function gAe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "return C === 0 ? null : /* @__PURE__ */ (0, L.jsxs)("div", {ref: x,"data-chart": b ? void 0 : w,- className: $5("group relative select-none", o),+ className: e7("group relative select-none", o),style: { height: a },children: [- !b && /* @__PURE__ */ (0, L.jsx)(o7, {+ !b && /* @__PURE__ */ (0, L.jsx)(s7, {id: w,config: t}),/* @__PURE__ */ (0, L.jsx)("div", {className: "absolute inset-0 overflow-hidden rounded-md",- children: /* @__PURE__ */ (0, L.jsx)(_Ae, {+ children: /* @__PURE__ */ (0, L.jsx)(Eje, {data: e,keys: S,chartConfig: t,@@ -67231,15 +68618,15 @@ function gAe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "barRadius: u})}),- /* @__PURE__ */ (0, L.jsx)(Mf.div, {+ /* @__PURE__ */ (0, L.jsx)(Pf.div, {className: "bg-background/70 pointer-events-none absolute inset-y-0 left-0 rounded-l-md backdrop-blur-[2px]",style: { width: ae }}),- /* @__PURE__ */ (0, L.jsx)(Mf.div, {+ /* @__PURE__ */ (0, L.jsx)(Pf.div, {className: "bg-background/70 pointer-events-none absolute inset-y-0 right-0 rounded-r-md backdrop-blur-[2px]",style: { width: oe }}),- /* @__PURE__ */ (0, L.jsx)(Mf.div, {+ /* @__PURE__ */ (0, L.jsx)(Pf.div, {className: "absolute inset-y-0 cursor-grab touch-none rounded-sm border active:cursor-grabbing",style: {left: re,@@ -67247,13 +68634,13 @@ function gAe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "},...j("middle")}),- /* @__PURE__ */ (0, L.jsx)(h7, {+ /* @__PURE__ */ (0, L.jsx)(g7, {side: "left",position: re,label: y ? le(M.startIndex) : void 0,bind: j("left")}),- /* @__PURE__ */ (0, L.jsx)(h7, {+ /* @__PURE__ */ (0, L.jsx)(g7, {side: "right",position: ie,label: y ? le(M.endIndex) : void 0,@@ -67262,16 +68649,16 @@ function gAe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "]});}-function h7({ side: e, position: t, label: n, bind: r }) {+function g7({ side: e, position: t, label: n, bind: r }) {let i = e === "left";- return /* @__PURE__ */ (0, L.jsxs)(Mf.div, {+ return /* @__PURE__ */ (0, L.jsxs)(Pf.div, {className: "absolute inset-y-0 z-10",style: { left: t },children: [/* @__PURE__ */ (0, L.jsx)("div", {- className: $5("group absolute inset-y-0 flex w-3 cursor-ew-resize touch-none items-center justify-center after:absolute after:inset-y-0 after:-left-4 after:w-11 after:content-['']", i ? "" : "-translate-x-full"),+ className: e7("group absolute inset-y-0 flex w-3 cursor-ew-resize touch-none items-center justify-center after:absolute after:inset-y-0 after:-left-4 after:w-11 after:content-['']", i ? "" : "-translate-x-full"),...r,children: /* @__PURE__ */ (0, L.jsx)("div", {- className: $5("bg-muted-foreground group-hover:bg-foreground relative flex h-4 w-1.5 items-center justify-center rounded-md transition-colors", i ? "-left-[5.5px]" : "-right-[5.5px]"),+ className: e7("bg-muted-foreground group-hover:bg-foreground relative flex h-4 w-1.5 items-center justify-center rounded-md transition-colors", i ? "-left-[5.5px]" : "-right-[5.5px]"),children: /* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-col gap-[2px]",children: [@@ -67282,15 +68669,15 @@ function h7({ side: e, position: t, label: n, bind: r }) {})})}), n && /* @__PURE__ */ (0, L.jsx)("div", {- className: $5("bg-foreground text-background pointer-events-none absolute -bottom-3 -translate-y-1/2 rounded-[3px] px-1 py-px text-[8px] leading-tight font-medium whitespace-nowrap opacity-0 group-hover:opacity-100", i ? "left-1.5" : "right-1.5"),+ className: e7("bg-foreground text-background pointer-events-none absolute -bottom-3 -translate-y-1/2 rounded-[3px] px-1 py-px text-[8px] leading-tight font-medium whitespace-nowrap opacity-0 group-hover:opacity-100", i ? "left-1.5" : "right-1.5"),children: n})]});}-function _Ae({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {+function Eje({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {let u = I.useMemo(() => Object.entries(n).filter(([e]) => t.includes(e)).map(([e, t]) => ({dataKey: e,- colorsCount: c7(t)+ colorsCount: l7(t)})), [n, t]), d = s === "dashed" || s === "animated-dashed" ? "4 4" : void 0, f = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [r === "area" && /* @__PURE__ */ (0, L.jsxs)("linearGradient", {id: `${a}-zm-vertical-fade`,x1: "0",@@ -67344,10 +68731,10 @@ function _Ae({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart})})] })] }, e);})] });- if (r === "line") return /* @__PURE__ */ (0, L.jsx)(XW, {+ if (r === "line") return /* @__PURE__ */ (0, L.jsx)(BG, {width: "100%",height: "100%",- children: /* @__PURE__ */ (0, L.jsxs)(Ike, {+ children: /* @__PURE__ */ (0, L.jsxs)(KAe, {data: e,margin: {top: 4,@@ -67371,7 +68758,7 @@ function _Ae({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart});if (r === "bar") {let n = l ?? 3;- return /* @__PURE__ */ (0, L.jsx)(XW, {+ return /* @__PURE__ */ (0, L.jsx)(BG, {width: "100%",height: "100%",children: /* @__PURE__ */ (0, L.jsxs)(W5, {@@ -67400,10 +68787,10 @@ function _Ae({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart})});}- return /* @__PURE__ */ (0, L.jsx)(XW, {+ return /* @__PURE__ */ (0, L.jsx)(BG, {width: "100%",height: "100%",- children: /* @__PURE__ */ (0, L.jsxs)($ke, {+ children: /* @__PURE__ */ (0, L.jsxs)(lje, {data: e,margin: {top: 4,@@ -67429,7 +68816,7 @@ function _Ae({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart})});}-function vAe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {+function Dje({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {let [r, i] = I.useState({startIndex: t,endIndex: n ?? Math.max(0, e.length - 1)@@ -67453,7 +68840,7 @@ function vAe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {}};}-var yAe = {+var Oje = {dots: ({ id: e }) => /* @__PURE__ */ (0, L.jsx)("pattern", {id: e,x: "0",@@ -67625,8 +69012,8 @@ var yAe = {})})};-function g7({ variant: e }) {- let t = (0, I.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = yAe[e];+function _7({ variant: e }) {+ let t = (0, I.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = Oje[e];return /* @__PURE__ */ (0, L.jsxs)(t2, {zIndex: -1,children: [/* @__PURE__ */ (0, L.jsxs)("defs", { children: [@@ -67657,20 +69044,20 @@ function g7({ variant: e }) {}//#endregion//#region src/react/evilcharts/registry/charts/recharts-bar-chart.tsx-var _7 = 2, bAe = "loading", xAe = 2e3, SAe = "evil-stacked", CAe = .5, wAe = .05, TAe = [+var v7 = 2, kje = "loading", Aje = 2e3, jje = "evil-stacked", Mje = .5, Nje = .05, Pje = [0,.7,.5,1-], v7 = (0, I.createContext)(null);-function y7() {- let e = (0, I.use)(v7);+], y7 = (0, I.createContext)(null);+function b7() {+ let e = (0, I.use)(y7);if (!e) throw Error("Bar chart parts (<Bar />, <XAxis />, …) must be used within <EvilBarChart />");return e;}-function b7({ config: e, data: t, children: n, className: r, chartProps: i, stackType: a = "default", layout: o = "vertical", barRadius: s = _7, animationType: c = "left-to-right", barGap: l, barCategoryGap: u, backgroundVariant: d, defaultSelectedDataKey: f = null, onSelectionChange: p, isLoading: m = !1, loadingBars: h, xDataKey: g }) {- let _ = (0, I.useId)().replace(/:/g, ""), [v] = (0, I.useState)(() => Date.now()), [y, b] = (0, I.useState)(f), [x, S] = (0, I.useState)(!1), { loadingData: C, onShimmerExit: w } = WAe(m, h), { visibleData: T, brushProps: E } = vAe({ data: t }), D = (0, I.useMemo)(() => {- let e = I.Children.toArray(n), t = e.find((e) => (0, I.isValidElement)(e) && e.type === p7), r = (0, I.isValidElement)(t) ? t.props : {};+function x7({ config: e, data: t, children: n, className: r, chartProps: i, stackType: a = "default", layout: o = "vertical", barRadius: s = v7, animationType: c = "left-to-right", barGap: l, barCategoryGap: u, backgroundVariant: d, defaultSelectedDataKey: f = null, onSelectionChange: p, isLoading: m = !1, loadingBars: h, xDataKey: g }) {+ let _ = (0, I.useId)().replace(/:/g, ""), [v] = (0, I.useState)(() => Date.now()), [y, b] = (0, I.useState)(f), [x, S] = (0, I.useState)(!1), { loadingData: C, onShimmerExit: w } = $je(m, h), { visibleData: T, brushProps: E } = Dje({ data: t }), D = (0, I.useMemo)(() => {+ let e = I.Children.toArray(n), t = e.find((e) => (0, I.isValidElement)(e) && e.type === m7), r = (0, I.isValidElement)(t) ? t.props : {};return {slot: {present: (0, I.isValidElement)(t),@@ -67678,7 +69065,7 @@ function b7({ config: e, data: t, children: n, className: r, chartProps: i, stacformatLabel: r.formatLabel,onChange: r.onChange},- chartChildren: e.filter((e) => !((0, I.isValidElement)(e) && e.type === p7))+ chartChildren: e.filter((e) => !((0, I.isValidElement)(e) && e.type === m7))};}, [n]), O = D.slot.present, k = a === "stacked" || a === "percent", A = o === "horizontal", j = O && !m ? T : t, M = (0, I.useCallback)((e) => {b(e), p?.(e);@@ -67707,12 +69094,12 @@ function b7({ config: e, data: t, children: n, className: r, chartProps: i, stacM,x]);- return /* @__PURE__ */ (0, L.jsx)(v7, {+ return /* @__PURE__ */ (0, L.jsx)(y7, {value: N,- children: /* @__PURE__ */ (0, L.jsxs)(i7, {+ children: /* @__PURE__ */ (0, L.jsxs)(a7, {className: r,config: e,- footer: O && !m && /* @__PURE__ */ (0, L.jsx)(gAe, {+ footer: O && !m && /* @__PURE__ */ (0, L.jsx)(Tje, {data: t,chartConfig: e,xDataKey: g,@@ -67728,7 +69115,7 @@ function b7({ config: e, data: t, children: n, className: r, chartProps: i, stacE.onChange(e), D.slot.onChange?.(e);}}),- children: [/* @__PURE__ */ (0, L.jsx)(a7, { isLoading: m }), /* @__PURE__ */ (0, L.jsxs)(W5, {+ children: [/* @__PURE__ */ (0, L.jsx)(o7, { isLoading: m }), /* @__PURE__ */ (0, L.jsxs)(W5, {id: _,accessibilityLayer: !0,layout: A ? "vertical" : "horizontal",@@ -67740,10 +69127,10 @@ function b7({ config: e, data: t, children: n, className: r, chartProps: i, staconMouseLeave: () => S(!1),...i,children: [- d && /* @__PURE__ */ (0, L.jsx)(g7, { variant: d }),+ d && /* @__PURE__ */ (0, L.jsx)(_7, { variant: d }),/* @__PURE__ */ (0, L.jsx)(O6, { color: "white" }),D.chartChildren,- m && /* @__PURE__ */ (0, L.jsx)(GAe, {+ m && /* @__PURE__ */ (0, L.jsx)(eMe, {chartId: _,onShimmerExit: w})@@ -67752,8 +69139,8 @@ function b7({ config: e, data: t, children: n, className: r, chartProps: i, stac})});}-function EAe({ dataKey: e, variant: t = "default", radius: n, animationType: r, isClickable: i = !1, enableHoverHighlight: a = !1, glowing: o = !1, bufferBar: s = !1, barProps: c }) {- let { config: l, isStacked: u, isHorizontal: d, isLoading: f, barRadius: p, animationType: m, introStartedAt: h, dataLength: g, selectedDataKey: _, selectDataKey: v, isMouseInChart: y } = y7(), b = (0, I.useId)().replace(/:/g, ""), x = jf();+function Fje({ dataKey: e, variant: t = "default", radius: n, animationType: r, isClickable: i = !1, enableHoverHighlight: a = !1, glowing: o = !1, bufferBar: s = !1, barProps: c }) {+ let { config: l, isStacked: u, isHorizontal: d, isLoading: f, barRadius: p, animationType: m, introStartedAt: h, dataLength: g, selectedDataKey: _, selectDataKey: v, isMouseInChart: y } = b7(), b = (0, I.useId)().replace(/:/g, ""), x = Nf();if (f) return null;let S = n ?? p, C = _ === e, w = x ? "none" : r ?? m, T = {id: b,@@ -67775,62 +69162,62 @@ function EAe({ dataKey: e, variant: t = "default", radius: n, animationType: r,};return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(I8, {dataKey: e,- stackId: u ? SAe : void 0,+ stackId: u ? jje : void 0,fill: `url(#${b}-colors-${e})`,radius: S,isAnimationActive: !1,style: i || a ? { cursor: "pointer" } : void 0,- shape: (e) => /* @__PURE__ */ (0, L.jsx)(x7, {+ shape: (e) => /* @__PURE__ */ (0, L.jsx)(S7, {...e,...T,animationType: w}),- activeBar: (e) => /* @__PURE__ */ (0, L.jsx)(x7, {+ activeBar: (e) => /* @__PURE__ */ (0, L.jsx)(S7, {...e,...T,animationType: "none"}),...c}), /* @__PURE__ */ (0, L.jsxs)("defs", { children: [- /* @__PURE__ */ (0, L.jsx)(FAe, {+ /* @__PURE__ */ (0, L.jsx)(Wje, {id: b,dataKey: e,config: l}),- t === "hatched" && /* @__PURE__ */ (0, L.jsx)(IAe, {+ t === "hatched" && /* @__PURE__ */ (0, L.jsx)(Gje, {id: b,dataKey: e}),- t === "duotone" && /* @__PURE__ */ (0, L.jsx)(RAe, {+ t === "duotone" && /* @__PURE__ */ (0, L.jsx)(qje, {id: b,dataKey: e,config: l}),- t === "duotone-reverse" && /* @__PURE__ */ (0, L.jsx)(zAe, {+ t === "duotone-reverse" && /* @__PURE__ */ (0, L.jsx)(Jje, {id: b,dataKey: e,config: l}),- t === "gradient" && /* @__PURE__ */ (0, L.jsx)(BAe, {+ t === "gradient" && /* @__PURE__ */ (0, L.jsx)(Yje, {id: b,dataKey: e}),- t === "stripped" && /* @__PURE__ */ (0, L.jsx)(VAe, {+ t === "stripped" && /* @__PURE__ */ (0, L.jsx)(Xje, {id: b,dataKey: e}),- s && /* @__PURE__ */ (0, L.jsx)(LAe, {+ s && /* @__PURE__ */ (0, L.jsx)(Kje, {id: b,dataKey: e}),- o && /* @__PURE__ */ (0, L.jsx)(HAe, {+ o && /* @__PURE__ */ (0, L.jsx)(Zje, {id: b,dataKey: e})] })] });}-function DAe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {- let { isLoading: o, isHorizontal: s } = y7();+function Ije({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {+ let { isLoading: o, isHorizontal: s } = b7();return o ? null : /* @__PURE__ */ (0, L.jsx)(W8, {tickLine: e,axisLine: t,@@ -67840,8 +69227,8 @@ function DAe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap...a});}-function OAe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {- let { isLoading: s, isHorizontal: c } = y7();+function Lje({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {+ let { isLoading: s, isHorizontal: c } = b7();return s ? null : /* @__PURE__ */ (0, L.jsx)(Y8, {tickLine: e,axisLine: t,@@ -67852,8 +69239,8 @@ function OAe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap...o});}-function kAe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {- let { isHorizontal: i } = y7();+function Rje({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {+ let { isHorizontal: i } = b7();return /* @__PURE__ */ (0, L.jsx)(G6, {strokeDasharray: e,vertical: t ?? i,@@ -67861,24 +69248,24 @@ function kAe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {...r});}-function AAe({ variant: e, roundness: t, defaultIndex: n }) {- let { isLoading: r, selectedDataKey: i } = y7();- return r ? null : /* @__PURE__ */ (0, L.jsx)(u7, {+function zje({ variant: e, roundness: t, defaultIndex: n }) {+ let { isLoading: r, selectedDataKey: i } = b7();+ return r ? null : /* @__PURE__ */ (0, L.jsx)(d7, {cursor: !1,defaultIndex: n,- content: /* @__PURE__ */ (0, L.jsx)(l7, {+ content: /* @__PURE__ */ (0, L.jsx)(u7, {selected: i,roundness: t,variant: e})});}-function jAe({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {- let { selectedDataKey: i, selectDataKey: a } = y7();- return /* @__PURE__ */ (0, L.jsx)(f7, {+function Bje({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {+ let { selectedDataKey: i, selectDataKey: a } = b7();+ return /* @__PURE__ */ (0, L.jsx)(p7, {verticalAlign: n,align: t,- content: /* @__PURE__ */ (0, L.jsx)(d7, {+ content: /* @__PURE__ */ (0, L.jsx)(f7, {selected: i,onSelectChange: a,isClickable: r,@@ -67886,8 +69273,8 @@ function jAe({ variant: e, align: t = "right", verticalAlign: n = "top", isClick})});}-var x7 = (e) => {- let { x: t = 0, y: n = 0, width: r = 0, height: i = 0, id: a, dataKey: o, variant: s, barRadius: c, glowing: l, bufferBar: u, isClickable: d, enableHoverHighlight: f, isMouseInChart: p, isHorizontal: m = !1, animationType: h = "none", introStartedAt: g = 0, selectedDataKey: _, isActive: v, dataLength: y = 0, onClick: b } = e, x = typeof e.index == "number" ? e.index : -1, S = u && y > 0 && x === y - 1, C = s === "stripped", w = MAe(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : NAe(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = PAe({+var S7 = (e) => {+ let { x: t = 0, y: n = 0, width: r = 0, height: i = 0, id: a, dataKey: o, variant: s, barRadius: c, glowing: l, bufferBar: u, isClickable: d, enableHoverHighlight: f, isMouseInChart: p, isHorizontal: m = !1, animationType: h = "none", introStartedAt: g = 0, selectedDataKey: _, isActive: v, dataLength: y = 0, onClick: b } = e, x = typeof e.index == "number" ? e.index : -1, S = u && y > 0 && x === y - 1, C = s === "stripped", w = Vje(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : Hje(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = Uje({isClickable: d,selectedDataKey: _,dataKey: o,@@ -67924,7 +69311,7 @@ var x7 = (e) => {children: [/* @__PURE__ */ (0, L.jsx)(eY, {...e,fill: "transparent"- }), w ? /* @__PURE__ */ (0, L.jsx)(Mf.g, {+ }), w ? /* @__PURE__ */ (0, L.jsx)(Pf.g, {initial: w.initial,animate: w.animate,transition: w.transition,@@ -67932,7 +69319,7 @@ var x7 = (e) => {children: A}) : A]});-}, MAe = (e, t, n, r, i) => {+}, Vje = (e, t, n, r, i) => {if (e === "none" || t < 0 || n <= 0) return null;let a = n - 1, o = a / 2, s;switch (e) {@@ -67947,11 +69334,11 @@ var x7 = (e) => {break;default: s = t;}- let c = s * wAe * 1e3, l = CAe * 1e3, u = c + l, d = Date.now() - i;+ let c = s * Nje * 1e3, l = Mje * 1e3, u = c + l, d = Date.now() - i;if (d >= u) return null;let f = d <= c ? 0 : (d - c) / l, p = {duration: (u - Math.max(d, c)) / 1e3,- ease: TAe,+ ease: Pje,delay: Math.max(0, c - d) / 1e3};return r ? {@@ -67965,7 +69352,7 @@ var x7 = (e) => {transition: p,style: { originY: 1 }};-}, NAe = (e, t, n) => {+}, Hje = (e, t, n) => {switch (e) {case "hatched": return `url(#${t}-hatched-${n})`;case "duotone": return `url(#${t}-duotone-${n})`;@@ -67974,11 +69361,11 @@ var x7 = (e) => {case "stripped": return `url(#${t}-stripped-${n})`;default: return `url(#${t}-colors-${n})`;}-}, PAe = ({ isClickable: e, selectedDataKey: t, dataKey: n, enableHoverHighlight: r, isMouseInChart: i, isActive: a }) => {+}, Uje = ({ isClickable: e, selectedDataKey: t, dataKey: n, enableHoverHighlight: r, isMouseInChart: i, isActive: a }) => {let o = e && t !== null ? t === null || t === n ? 1 : .15 : 1;return r && i ? a ? o : o * .3 : o;-}, FAe = ({ id: e, dataKey: t, config: n }) => {- let r = c7(n[t] ?? {});+}, Wje = ({ id: e, dataKey: t, config: n }) => {+ let r = l7(n[t] ?? {});return /* @__PURE__ */ (0, L.jsx)("linearGradient", {id: `${e}-colors-${t}`,x1: "0",@@ -67999,7 +69386,7 @@ var x7 = (e) => {}, i);})});-}, IAe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [+}, Gje = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("pattern", {id: `${e}-hatched-mask-pattern`,x: "0",@@ -68040,7 +69427,7 @@ var x7 = (e) => {mask: `url(#${e}-hatched-mask-${t})`})})-] }), LAe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [+] }), Kje = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("pattern", {id: `${e}-buffer-hatched-mask-pattern`,x: "0",@@ -68081,8 +69468,8 @@ var x7 = (e) => {mask: `url(#${e}-buffer-hatched-mask-${t})`})})-] }), RAe = ({ id: e, dataKey: t, config: n }) => {- let r = c7(n[t] ?? {});+] }), qje = ({ id: e, dataKey: t, config: n }) => {+ let r = l7(n[t] ?? {});return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("linearGradient", {id: `${e}-duotone-mask-gradient-${t}`,@@ -68149,8 +69536,8 @@ var x7 = (e) => {})})] });-}, zAe = ({ id: e, dataKey: t, config: n }) => {- let r = c7(n[t] ?? {});+}, Jje = ({ id: e, dataKey: t, config: n }) => {+ let r = l7(n[t] ?? {});return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("linearGradient", {id: `${e}-duotone-reverse-mask-gradient-${t}`,@@ -68217,7 +69604,7 @@ var x7 = (e) => {})})] });-}, BAe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [+}, Yje = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("linearGradient", {id: `${e}-gradient-mask-gradient`,x1: "0",@@ -68254,7 +69641,7 @@ var x7 = (e) => {mask: `url(#${e}-gradient-mask-${t})`})})-] }), VAe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [+] }), Xje = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("linearGradient", {id: `${e}-stripped-mask-gradient`,x1: "0",@@ -68291,7 +69678,7 @@ var x7 = (e) => {mask: `url(#${e}-stripped-mask-${t})`})})-] }), HAe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)("filter", {+] }), Zje = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)("filter", {id: `${e}-bar-glow-${t}`,x: "-100%",y: "-100%",@@ -68311,35 +69698,35 @@ var x7 = (e) => {}),/* @__PURE__ */ (0, L.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, L.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, L.jsx)("feMergeNode", { in: "SourceGraphic" })] })]-}), UAe = (e = 17, t = .05, n = .9) => Array.from({ length: e }, (r, i) => {+}), Qje = (e = 17, t = .05, n = .9) => Array.from({ length: e }, (r, i) => {let a = i / (e - 1), o = t + Math.sin(a * Math.PI) ** 2 * (n - t);return {offset: `${(a * 100).toFixed(0)}%`,opacity: Number(o.toFixed(3))};});-function WAe(e, t = 12) {+function $je(e, t = 12) {let [n, r] = (0, I.useState)(!1), i = (0, I.useCallback)(() => {e && r((e) => !e);}, [e]);return {- loadingData: (0, I.useMemo)(() => cAe(t, 20, 80), [t, n]),+ loadingData: (0, I.useMemo)(() => _je(t, 20, 80), [t, n]),onShimmerExit: i};}-var GAe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(I8, {- dataKey: bAe,+var eMe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(I8, {+ dataKey: kje,fill: "currentColor",fillOpacity: .15,- radius: _7,+ radius: v7,isAnimationActive: !1,legendType: "none",style: { mask: `url(#${e}-loading-mask)` }-}), /* @__PURE__ */ (0, L.jsx)("defs", { children: /* @__PURE__ */ (0, L.jsx)(KAe, {+}), /* @__PURE__ */ (0, L.jsx)("defs", { children: /* @__PURE__ */ (0, L.jsx)(tMe, {chartId: e,onShimmerExit: t-}) })] }), KAe = ({ chartId: e, onShimmerExit: t }) => {- let n = UAe(), r = (0, I.useRef)(-1);+}) })] }), tMe = ({ chartId: e, onShimmerExit: t }) => {+ let n = Qje(), r = (0, I.useRef)(-1);return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("linearGradient", {id: `${e}-loading-mask-gradient`,@@ -68362,7 +69749,7 @@ var GAe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Frheight: "1",x: "0",y: "0",- children: /* @__PURE__ */ (0, L.jsx)(Mf.rect, {+ children: /* @__PURE__ */ (0, L.jsx)(Pf.rect, {y: "0",width: "1",height: "1",@@ -68370,7 +69757,7 @@ var GAe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Frinitial: { x: -1 },animate: { x: 2 },transition: {- duration: xAe / 1e3,+ duration: Aje / 1e3,ease: "linear",repeat: Infinity,repeatType: "loop"@@ -68392,11 +69779,11 @@ var GAe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fr})] });};-b7.Bar = EAe, b7.XAxis = DAe, b7.YAxis = OAe, b7.Grid = kAe, b7.Tooltip = AAe, b7.Legend = jAe, b7.Brush = p7;+x7.Bar = Fje, x7.XAxis = Ije, x7.YAxis = Lje, x7.Grid = Rje, x7.Tooltip = zje, x7.Legend = Bje, x7.Brush = m7;//#endregion//#region src/react/charts/chart-card.tsx-var S7 = `${Nw({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;-function C7({ title: e, figure: t, note: n }) {+var C7 = `${aw({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;+function w7({ title: e, figure: t, note: n }) {return /* @__PURE__ */ (0, L.jsxs)("header", {className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",children: [/* @__PURE__ */ (0, L.jsxs)("span", {@@ -68414,24 +69801,24 @@ function C7({ title: e, figure: t, note: n }) {})]});}-var w7 = [+var T7 = ["var(--color-chart-1)","var(--color-chart-2)","var(--color-chart-3)","var(--color-chart-4)","var(--color-chart-5)","var(--color-chart-6)"-], T7 = (e) => ({ light: [e] }), E7 = (e) => `s${e}`;-function qAe(e) {- return Object.fromEntries(e.map((e, t) => [E7(t), {+], E7 = (e) => ({ light: [e] }), D7 = (e) => `s${e}`;+function nMe(e) {+ return Object.fromEntries(e.map((e, t) => [D7(t), {label: e,- colors: T7(w7[t % w7.length])+ colors: E7(T7[t % T7.length])}]));}//#endregion//#region src/react/charts/chart-tip.tsx-var D7 = "flex min-w-32 flex-col gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl";-function O7({ swatch: e, name: t, value: n }) {+var O7 = "flex min-w-32 flex-col gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl";+function k7({ swatch: e, name: t, value: n }) {return /* @__PURE__ */ (0, L.jsxs)("div", {className: "flex w-full items-center gap-2",children: [e, /* @__PURE__ */ (0, L.jsxs)("div", {@@ -68446,33 +69833,33 @@ function O7({ swatch: e, name: t, value: n }) {})]});}-var k7 = "size-2.5 shrink-0 rounded-xs";-function JAe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {- let { config: o } = r7(), s = (t ?? []).filter((e) => e.type !== "none");+var A7 = "size-2.5 shrink-0 rounded-xs";+function rMe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {+ let { config: o } = i7(), s = (t ?? []).filter((e) => e.type !== "none");if (!e || !s.length) return /* @__PURE__ */ (0, L.jsx)("span", { className: "p-4" });let c = a || typeof n != "string" ? null : o[n]?.label ?? n;return /* @__PURE__ */ (0, L.jsxs)("div", {- className: D7,+ className: O7,children: [c ? /* @__PURE__ */ (0, L.jsx)("div", {className: "font-medium text-foreground",children: c}) : null, s.map((e, t) => {- let n = e.payload ?? {}, a = `${(r ? n[r] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, s = s7(o, e, a), c = i ? n[i] : e.value;- return /* @__PURE__ */ (0, L.jsx)(O7, {+ let n = e.payload ?? {}, a = `${(r ? n[r] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, s = c7(o, e, a), c = i ? n[i] : e.value;+ return /* @__PURE__ */ (0, L.jsx)(k7, {name: s?.label ?? e.name,value: Number(c ?? 0),swatch: /* @__PURE__ */ (0, L.jsx)("i", {- className: k7,+ className: A7,style: { background: `var(--color-${a}-0)` }})}, a + t);})]});}-function A7({ nameKey: e, valueKey: t, hideLabel: n }) {- return /* @__PURE__ */ (0, L.jsx)(u7, {+function j7({ nameKey: e, valueKey: t, hideLabel: n }) {+ return /* @__PURE__ */ (0, L.jsx)(d7, {cursor: !1,- content: /* @__PURE__ */ (0, L.jsx)(JAe, {+ content: /* @__PURE__ */ (0, L.jsx)(rMe, {nameKey: e,valueKey: t,hideLabel: n@@ -68481,12 +69868,12 @@ function A7({ nameKey: e, valueKey: t, hideLabel: n }) {}//#endregion//#region src/react/charts/bar-card.tsx-var j7 = [0, (e) => e * 1.2], M7 = (e) => ({+var M7 = [0, (e) => e * 1.2], N7 = (e) => ({position: e,className: "fill-text-secondary",formatter: (e) => Number(e).toLocaleString()});-function N7({ title: e, unit: t, series: n, rows: r, color: i, layout: a = "vertical" }) {+function P7({ title: e, unit: t, series: n, rows: r, color: i, layout: a = "vertical" }) {let o = r.filter((e) => Number.isFinite(e.value) && e.value >= 0).map((e) => ({name: e.name,value: e.value@@ -68494,53 +69881,53 @@ function N7({ title: e, unit: t, series: n, rows: r, color: i, layout: a = "vertif (!s) return null;let c = a === "horizontal";return /* @__PURE__ */ (0, L.jsxs)("section", {- className: S7,+ className: C7,"aria-label": e,- children: [/* @__PURE__ */ (0, L.jsx)(C7, {+ children: [/* @__PURE__ */ (0, L.jsx)(w7, {title: e,figure: s.toLocaleString(),note: t- }), /* @__PURE__ */ (0, L.jsxs)(b7, {+ }), /* @__PURE__ */ (0, L.jsxs)(x7, {data: o,config: { value: {label: n,- colors: T7(i)+ colors: E7(i)} },layout: a,barRadius: 4,className: c ? "aspect-auto h-64 flex-none text-text-secondary" : "aspect-auto h-56 flex-none text-text-secondary",children: [- /* @__PURE__ */ (0, L.jsx)(b7.Grid, {}),- c ? /* @__PURE__ */ (0, L.jsx)(b7.YAxis, {+ /* @__PURE__ */ (0, L.jsx)(x7.Grid, {}),+ c ? /* @__PURE__ */ (0, L.jsx)(x7.YAxis, {dataKey: "name",interval: 0- }) : /* @__PURE__ */ (0, L.jsx)(b7.XAxis, {+ }) : /* @__PURE__ */ (0, L.jsx)(x7.XAxis, {dataKey: "name",interval: 0}),- c ? /* @__PURE__ */ (0, L.jsx)(b7.XAxis, {+ c ? /* @__PURE__ */ (0, L.jsx)(x7.XAxis, {hide: !0,- domain: j7- }) : /* @__PURE__ */ (0, L.jsx)(b7.YAxis, {+ domain: M7+ }) : /* @__PURE__ */ (0, L.jsx)(x7.YAxis, {hide: !0,- domain: j7+ domain: M7}),- /* @__PURE__ */ (0, L.jsx)(b7.Bar, {+ /* @__PURE__ */ (0, L.jsx)(x7.Bar, {dataKey: "value",enableHoverHighlight: !0,barProps: {dataKey: "value",- label: M7(c ? "right" : "top")+ label: N7(c ? "right" : "top")}}),- /* @__PURE__ */ (0, L.jsx)(A7, {})+ /* @__PURE__ */ (0, L.jsx)(j7, {})]})]});}//#endregion//#region src/react/charts/heat.ts-var P7 = [+var F7 = ["周一","周二","周三",@@ -68548,8 +69935,8 @@ var P7 = ["周五","周六","周日"-], F7 = (e, t) => e ? Math.max(.12, e / t) : 0;-function YAe(e) {+], I7 = (e, t) => e ? Math.max(.12, e / t) : 0;+function iMe(e) {let t = Array.from({ length: 7 }, () => Array(24).fill(0));for (let n of e?.hours || []) {let { weekday: e, hour: r, count: i } = n;@@ -68559,14 +69946,14 @@ function YAe(e) {return {cells: t.flatMap((e, t) => e.map((e, n) => ({key: `${t}-${n}`,- label: `${P7[t]} ${n}:00`,+ label: `${F7[t]} ${n}:00`,count: e,- share: F7(e, r)+ share: I7(e, r)}))),total: n.reduce((e, t) => e + t, 0)};}-function XAe(e) {+function aMe(e) {let t = (e?.days || []).filter((e) => /^\d{4}-\d{2}-\d{2}$/.test(e.date) && Number.isFinite(e.count) && e.count >= 0).slice().sort((e, t) => e.date.localeCompare(t.date)), n = {cells: [],total: 0,@@ -68584,7 +69971,7 @@ function XAe(e) {key: r,label: r,count: s,- share: F7(s, o)+ share: I7(s, o)};});return {@@ -68596,7 +69983,7 @@ function XAe(e) {}//#endregion//#region src/react/charts/heat-card.tsx-var I7 = 14, L7 = 17, R7 = {+var L7 = 14, R7 = 17, z7 = {4: {fill: "fill-chart-4",dot: "bg-chart-4"@@ -68605,42 +69992,42 @@ var I7 = 14, L7 = 17, R7 = {fill: "fill-chart-5",dot: "bg-chart-5"}-}, ZAe = {+}, oMe = {start: "translate-x-0",center: "-translate-x-1/2",end: "-translate-x-full"};-function QAe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {+function sMe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {return /* @__PURE__ */ (0, L.jsxs)("div", {"aria-hidden": !0,style: {left: `${r}%`,top: `${i}%`},- className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${D7} ${ZAe[a]}`,+ className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${O7} ${oMe[a]}`,children: [/* @__PURE__ */ (0, L.jsx)("div", {className: "font-medium text-foreground",children: e.label- }), /* @__PURE__ */ (0, L.jsx)(O7, {+ }), /* @__PURE__ */ (0, L.jsx)(k7, {name: t,value: e.count,- swatch: /* @__PURE__ */ (0, L.jsx)("i", { className: `${k7} ${R7[n].dot}` })+ swatch: /* @__PURE__ */ (0, L.jsx)("i", { className: `${A7} ${z7[n].dot}` })})]});}-function z7({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis: o, footer: s, tone: c }) {- let [l, u] = (0, I.useState)(-1), d = o ? 30 : 0, f = o ? 18 : 0, p = d + i * L7, m = f + a * L7, h = (e) => ({- x: d + e % i * L7,- y: f + Math.floor(e / i) * L7- }), g = n[l], _ = g ? h(l) : null, v = _ ? (_.x + I7 / 2) / p : 0, y = v < .1 ? "start" : v > .9 ? "end" : "center", b = _ ? {+function B7({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis: o, footer: s, tone: c }) {+ let [l, u] = (0, I.useState)(-1), d = o ? 30 : 0, f = o ? 18 : 0, p = d + i * R7, m = f + a * R7, h = (e) => ({+ x: d + e % i * R7,+ y: f + Math.floor(e / i) * R7+ }), g = n[l], _ = g ? h(l) : null, v = _ ? (_.x + L7 / 2) / p : 0, y = v < .1 ? "start" : v > .9 ? "end" : "center", b = _ ? {start: _.x,- center: _.x + I7 / 2,- end: _.x + I7+ center: _.x + L7 / 2,+ end: _.x + L7}[y] : 0;return /* @__PURE__ */ (0, L.jsxs)("section", {- className: S7,+ className: C7,children: [- /* @__PURE__ */ (0, L.jsx)(C7, {+ /* @__PURE__ */ (0, L.jsx)(w7, {title: e,figure: (g ? g.count : r).toLocaleString(),note: g ? g.label : t.unit@@ -68663,19 +70050,19 @@ function z7({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:"aria-label": `${e.label},${e.count} ${t.cellUnit}`,x: r,y: i,- width: I7,- height: I7,+ width: L7,+ height: L7,rx: 3,fillOpacity: e.share || 1,opacity: l >= 0 && l !== n ? .4 : 1,- className: e.share ? `outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring ${R7[c].fill}` : "fill-chart-track outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring",+ className: e.share ? `outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring ${z7[c].fill}` : "fill-chart-track outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring",onPointerEnter: () => u(n),onFocus: () => u(n),onBlur: () => u(-1)}, e.key);})]})- }), g && _ ? /* @__PURE__ */ (0, L.jsx)(QAe, {+ }), g && _ ? /* @__PURE__ */ (0, L.jsx)(sMe, {cell: g,series: t.series,tone: c,@@ -68691,24 +70078,24 @@ function z7({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:]});}-var $Ae = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [P7.map((e, t) => /* @__PURE__ */ (0, L.jsx)("text", {+var cMe = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [F7.map((e, t) => /* @__PURE__ */ (0, L.jsx)("text", {x: 0,- y: 18 + t * L7 + 7,+ y: 18 + t * R7 + 7,dominantBaseline: "middle",className: "fill-text-secondary text-caption-1-regular",children: e}, e)), Array.from({ length: 24 }, (e, t) => t % 2 ? null : /* @__PURE__ */ (0, L.jsx)("text", {- x: 30 + t * L7,+ x: 30 + t * R7,y: 8,dominantBaseline: "middle",className: "fill-text-secondary text-caption-1-regular",children: t}, t))] });-function B7({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a }) {- let o = YAe(e), s = XAe(e);+function V7({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a }) {+ let o = iMe(e), s = aMe(e);return s.cells.length ? /* @__PURE__ */ (0, L.jsxs)("div", {className: "inline-grid w-full items-start gap-5 lg:grid-cols-2",- children: [/* @__PURE__ */ (0, L.jsx)(z7, {+ children: [/* @__PURE__ */ (0, L.jsx)(B7, {title: t,words: r,tone: i,@@ -68716,9 +70103,9 @@ function B7({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: atotal: o.total,columns: 24,rows: 7,- axis: $Ae,+ axis: cMe,footer: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("span", { children: "星期 × 小时" }), /* @__PURE__ */ (0, L.jsx)("span", { children: e?.timezone || "UTC+08:00" })] })- }), /* @__PURE__ */ (0, L.jsx)(z7, {+ }), /* @__PURE__ */ (0, L.jsx)(B7, {title: n,words: r,tone: i,@@ -68729,7 +70116,7 @@ function B7({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: afooter: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("span", { children: s.start }), /* @__PURE__ */ (0, L.jsx)("span", { children: s.end })] })})]}) : a ? /* @__PURE__ */ (0, L.jsxs)("section", {- className: S7,+ className: C7,children: [/* @__PURE__ */ (0, L.jsx)("h3", {className: "text-title-2-medium text-text-primary",children: t@@ -68741,7 +70128,7 @@ function B7({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a}//#endregion//#region src/react/components/expandable-ranking.tsx-function V7({ children: e, className: t = "", previewCount: n = 10 }) {+function H7({ children: e, className: t = "", previewCount: n = 10 }) {let r = (0, I.useId)(), i = (0, I.useRef)(null), [a, o] = (0, I.useState)(!1), [s, c] = (0, I.useState)(!1), l = I.Children.toArray(e), u = l.length > n;(0, I.useLayoutEffect)(() => {let e = i.current;@@ -68782,20 +70169,20 @@ function V7({ children: e, className: t = "", previewCount: n = 10 }) {onClick: () => {c(!0), o((e) => !e);},- children: /* @__PURE__ */ (0, L.jsx)(aS, { "aria-hidden": !0 })+ children: /* @__PURE__ */ (0, L.jsx)(TS, { "aria-hidden": !0 })}) : null]});}//#endregion//#region src/react/evilcharts/registry/charts/recharts-radial-chart.tsx-var eje = "30%", tje = "100%", H7 = 5, U7 = 14, nje = 5, W7 = 1500, G7 = (0, I.createContext)(null);-function K7() {- let e = (0, I.use)(G7);+var lMe = "30%", uMe = "100%", U7 = 5, W7 = 14, dMe = 5, G7 = 1500, K7 = (0, I.createContext)(null);+function q7() {+ let e = (0, I.use)(K7);if (!e) throw Error("Radial chart parts (<RadialBar />, <Tooltip />, …) must be used within <EvilRadialChart />");return e;}-function q7({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = eje, outerRadius: l = tje, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {- let m = (0, I.useId)().replace(/:/g, ""), [h, g] = (0, I.useState)(u), _ = lje(f), v = oje(o), y = (0, I.useCallback)((e, t) => {+function J7({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = lMe, outerRadius: l = uMe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {+ let m = (0, I.useId)().replace(/:/g, ""), [h, g] = (0, I.useState)(u), _ = vMe(f), v = hMe(o), y = (0, I.useCallback)((e, t) => {g(e), d?.(e === null ? null : {dataKey: e,value: t ?? 0@@ -68822,12 +70209,12 @@ function q7({ config: e, data: t, nameKey: n, children: r, className: i, chartPrh,y]);- return /* @__PURE__ */ (0, L.jsx)(G7, {+ return /* @__PURE__ */ (0, L.jsx)(K7, {value: x,- children: /* @__PURE__ */ (0, L.jsxs)(i7, {+ children: /* @__PURE__ */ (0, L.jsxs)(a7, {className: i,config: e,- children: [/* @__PURE__ */ (0, L.jsx)(a7, { isLoading: f }), /* @__PURE__ */ (0, L.jsxs)(aAe, {+ children: [/* @__PURE__ */ (0, L.jsx)(o7, { isLoading: f }), /* @__PURE__ */ (0, L.jsxs)($5, {id: m,data: f ? _ : b,innerRadius: c,@@ -68844,10 +70231,10 @@ function q7({ config: e, data: t, nameKey: n, children: r, className: i, chartPrtick: !1,axisLine: !1}),- p && /* @__PURE__ */ (0, L.jsx)(g7, { variant: p }),+ p && /* @__PURE__ */ (0, L.jsx)(_7, { variant: p }),r,- f && /* @__PURE__ */ (0, L.jsx)(uje, {}),- /* @__PURE__ */ (0, L.jsx)("defs", { children: /* @__PURE__ */ (0, L.jsx)(sje, {+ f && /* @__PURE__ */ (0, L.jsx)(yMe, {}),+ /* @__PURE__ */ (0, L.jsx)("defs", { children: /* @__PURE__ */ (0, L.jsx)(gMe, {config: e,chartId: m}) })@@ -68856,8 +70243,8 @@ function q7({ config: e, data: t, nameKey: n, children: r, className: i, chartPr})});}-function rje({ dataKey: e, cornerRadius: t = H7, barSize: n = U7, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {- let { nameKey: o, isLoading: s, selectedBar: c, selectBar: l } = K7();+function fMe({ dataKey: e, cornerRadius: t = U7, barSize: n = W7, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {+ let { nameKey: o, isLoading: s, selectedBar: c, selectBar: l } = q7();return s ? null : /* @__PURE__ */ (0, L.jsx)(y6, {dataKey: e,cornerRadius: t,@@ -68881,12 +70268,12 @@ function rje({ dataKey: e, cornerRadius: t = H7, barSize: n = U7, showBackground...a});}-function ije({ variant: e, roundness: t, defaultIndex: n }) {- let { nameKey: r, isLoading: i } = K7();- return i ? null : /* @__PURE__ */ (0, L.jsx)(u7, {+function pMe({ variant: e, roundness: t, defaultIndex: n }) {+ let { nameKey: r, isLoading: i } = q7();+ return i ? null : /* @__PURE__ */ (0, L.jsx)(d7, {defaultIndex: n,cursor: !1,- content: /* @__PURE__ */ (0, L.jsx)(l7, {+ content: /* @__PURE__ */ (0, L.jsx)(u7, {nameKey: r,hideLabel: !0,roundness: t,@@ -68894,12 +70281,12 @@ function ije({ variant: e, roundness: t, defaultIndex: n }) {})});}-function aje({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {- let { nameKey: i, isLoading: a, selectedBar: o, selectBar: s } = K7();- return a ? null : /* @__PURE__ */ (0, L.jsx)(f7, {+function mMe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {+ let { nameKey: i, isLoading: a, selectedBar: o, selectBar: s } = q7();+ return a ? null : /* @__PURE__ */ (0, L.jsx)(p7, {verticalAlign: n,align: t,- content: /* @__PURE__ */ (0, L.jsx)(d7, {+ content: /* @__PURE__ */ (0, L.jsx)(f7, {selected: o,onSelectChange: s,isClickable: r,@@ -68908,7 +70295,7 @@ function aje({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC})});}-function oje(e) {+function hMe(e) {switch (e) {case "semi": return {startAngle: 180,@@ -68924,8 +70311,8 @@ function oje(e) {};}}-var sje = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, L.jsx)(L.Fragment, { children: Object.entries(e).map(([e, n]) => {- let r = c7(n);+var gMe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, L.jsx)(L.Fragment, { children: Object.entries(e).map(([e, n]) => {+ let r = l7(n);return /* @__PURE__ */ (0, L.jsx)("linearGradient", {id: `${t}-radial-colors-${e}`,x1: "0",@@ -68947,29 +70334,29 @@ var sje = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, L.jsx)(L.Fragment,})}, `${t}-radial-colors-${e}`);}) });-function cje() {- return Array.from({ length: nje }, (e, t) => ({+function _Me() {+ return Array.from({ length: dMe }, (e, t) => ({name: `loading${t}`,value: 40 + Math.random() * 60}));}-function lje(e) {+function vMe(e) {let [t, n] = (0, I.useState)(0);return (0, I.useEffect)(() => {if (!e) return;let t = setInterval(() => {n((e) => e + 1);- }, W7);+ }, G7);return () => clearInterval(t);- }, [e]), (0, I.useMemo)(() => cje(), [t]);+ }, [e]), (0, I.useMemo)(() => _Me(), [t]);}-var uje = () => /* @__PURE__ */ (0, L.jsx)(y6, {+var yMe = () => /* @__PURE__ */ (0, L.jsx)(y6, {dataKey: "value",- cornerRadius: H7,- barSize: U7,+ cornerRadius: U7,+ barSize: W7,background: !0,isAnimationActive: !0,- animationDuration: W7,+ animationDuration: G7,animationEasing: "ease-in-out",shape: (e) => /* @__PURE__ */ (0, L.jsx)(dY, {...e,@@ -68977,17 +70364,17 @@ var uje = () => /* @__PURE__ */ (0, L.jsx)(y6, {fillOpacity: .25})});-q7.RadialBar = rje, q7.Tooltip = ije, q7.Legend = aje;+J7.RadialBar = fMe, J7.Tooltip = pMe, J7.Legend = mMe;//#endregion//#region src/react/stats/radial-card.tsx-var dje = [+var bMe = ["bg-chart-1","bg-chart-2","bg-chart-3","bg-chart-4","bg-chart-5","bg-chart-6"-], fje = [+], xMe = ["aria-pressed:bg-chart-1/10 aria-pressed:ring-chart-1","aria-pressed:bg-chart-2/10 aria-pressed:ring-chart-2","aria-pressed:bg-chart-3/10 aria-pressed:ring-chart-3",@@ -68995,15 +70382,15 @@ var dje = ["aria-pressed:bg-chart-5/10 aria-pressed:ring-chart-5","aria-pressed:bg-chart-6/10 aria-pressed:ring-chart-6"];-function J7({ title: e, rows: t, unit: n = "个视频" }) {+function Y7({ title: e, rows: t, unit: n = "个视频" }) {let [r, i] = (0, I.useState)(-1), [a, o] = (0, I.useState)(-1), s = t.filter((e) => Number.isFinite(e.value) && e.value >= 0);if (!s.length) return null;let c = a >= 0 ? a : r, l = s.reduce((e, t) => e + t.value, 0), u = s[c], d = (e) => i((t) => t === e ? -1 : e), f = s.map((e, t) => ({- slice: E7(t),+ slice: D7(t),value: e.value}));return /* @__PURE__ */ (0, L.jsxs)("section", {- className: S7,+ className: C7,children: [/* @__PURE__ */ (0, L.jsxs)("header", {className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",@@ -69025,16 +70412,16 @@ function J7({ title: e, rows: t, unit: n = "个视频" }) {role: "img","aria-label": e,onPointerLeave: () => o(-1),- children: /* @__PURE__ */ (0, L.jsxs)(q7, {+ children: /* @__PURE__ */ (0, L.jsxs)(J7, {data: f,nameKey: "slice",- config: qAe(s.map((e) => e.name)),- max: Efe(s.map((e) => e.value)),+ config: nMe(s.map((e) => e.name)),+ max: ipe(s.map((e) => e.value)),innerRadius: "22%",className: "aspect-auto h-75 max-sm:h-65",- children: [/* @__PURE__ */ (0, L.jsx)(q7.RadialBar, {+ children: [/* @__PURE__ */ (0, L.jsx)(J7.RadialBar, {dataKey: "value",- barSize: Dfe(s.length),+ barSize: ape(s.length),radialBarProps: {shape: (e) => /* @__PURE__ */ (0, L.jsx)(dY, {...e,@@ -69044,7 +70431,7 @@ function J7({ title: e, rows: t, unit: n = "个视频" }) {onClick: (e, t) => d(t),onMouseEnter: (e, t) => o(t)}- }), /* @__PURE__ */ (0, L.jsx)(A7, {+ }), /* @__PURE__ */ (0, L.jsx)(j7, {nameKey: "slice",hideLabel: !0})]@@ -69060,13 +70447,13 @@ function J7({ title: e, rows: t, unit: n = "个视频" }) {onPointerLeave: () => o(-1),onFocus: () => o(t),onBlur: () => o(-1),- className: `flex min-w-0 cursor-pointer flex-col items-start gap-1 rounded-xl bg-background-tertiary-default p-2.5 text-left outline-none aria-pressed:ring-1 aria-pressed:ring-inset focus-visible:ring-2 focus-visible:ring-border-focus-ring ${fje[t % 6]}`,+ className: `flex min-w-0 cursor-pointer flex-col items-start gap-1 rounded-xl bg-background-tertiary-default p-2.5 text-left outline-none aria-pressed:ring-1 aria-pressed:ring-inset focus-visible:ring-2 focus-visible:ring-border-focus-ring ${xMe[t % 6]}`,children: [/* @__PURE__ */ (0, L.jsxs)("span", {className: "flex min-w-0 items-center gap-1.5 text-caption-1-regular text-text-secondary",children: [/* @__PURE__ */ (0, L.jsx)("i", {"aria-hidden": !0,- className: `size-3 shrink-0 rounded-sm ${dje[t % 6]}`+ className: `size-3 shrink-0 rounded-sm ${bMe[t % 6]}`}), e.name]}),/* @__PURE__ */ (0, L.jsx)("b", {@@ -69085,8 +70472,8 @@ function J7({ title: e, rows: t, unit: n = "个视频" }) {}//#endregion//#region src/react/stats/stats-page.tsx-var pje = 10, Y7 = w7[5], mje = w7[4], hje = `${Nw()} flex flex-col gap-4`, gje = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", _je = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", vje = "开始播放后,这里会显示最近的真实观看证据。", yje = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", bje = "添加媒体文件夹后,这里会显示存储空间。";-function X7({ term: e, value: t }) {+var SMe = 10, X7 = T7[5], CMe = T7[4], wMe = `${aw()} flex flex-col gap-4`, TMe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", EMe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", DMe = "开始播放后,这里会显示最近的真实观看证据。", OMe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", kMe = "添加媒体文件夹后,这里会显示存储空间。";+function Z7({ term: e, value: t }) {return /* @__PURE__ */ (0, L.jsxs)("div", {className: "flex min-h-16 min-w-0 flex-col gap-1.5 rounded-2lg bg-background-primary-default p-3",children: [/* @__PURE__ */ (0, L.jsx)("span", {@@ -69098,7 +70485,7 @@ function X7({ term: e, value: t }) {})]});}-function Z7({ term: e, value: t, total: n }) {+function Q7({ term: e, value: t, total: n }) {return /* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",children: [/* @__PURE__ */ (0, L.jsxs)("p", {@@ -69107,17 +70494,17 @@ function Z7({ term: e, value: t, total: n }) {className: "tabular-nums",children: [t.toLocaleString(), /* @__PURE__ */ (0, L.jsxs)("span", {className: "ml-1.5 text-caption-1-regular text-text-secondary",- children: [cR(t, n), "%"]+ children: [BR(t, n), "%"]})]})]- }), /* @__PURE__ */ (0, L.jsx)(zw, {+ }), /* @__PURE__ */ (0, L.jsx)(uw, {label: `${e}:${t.toLocaleString()} / ${n.toLocaleString()}`,value: t,max: Math.max(n, 1)})]});}-function Q7({ term: e, figure: t, unit: n }) {+function $7({ term: e, figure: t, unit: n }) {return /* @__PURE__ */ (0, L.jsxs)("div", {className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-64 md:pr-6 md:pb-0",children: [@@ -69136,28 +70523,28 @@ function Q7({ term: e, figure: t, unit: n }) {]});}-function $7({ headline: e, children: t }) {+function e9({ headline: e, children: t }) {return /* @__PURE__ */ (0, L.jsxs)("div", {- className: `${hje} md:flex-row md:gap-6`,+ className: `${wMe} md:flex-row md:gap-6`,children: [e, /* @__PURE__ */ (0, L.jsx)("div", {className: "min-w-0 grow",children: t})]});}-function xje({ data: t, configurable: n, openMediaSettings: r }) {+function AMe({ data: t, configurable: n, openMediaSettings: r }) {return t.by_loc.reduce((e, t) => e + t.videos, 0) ? /* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-col gap-5",children: [/* @__PURE__ */ (0, L.jsxs)("div", {className: "inline-grid w-full gap-5 md:grid-cols-2",- children: [/* @__PURE__ */ (0, L.jsx)(J7, {+ children: [/* @__PURE__ */ (0, L.jsx)(Y7, {title: "网盘与本地",rows: t.by_loc.map((t) => ({name: e[t.k] ?? t.k,value: t.videos,detail: a(t.bytes)}))- }), /* @__PURE__ */ (0, L.jsx)(J7, {+ }), /* @__PURE__ */ (0, L.jsx)(Y7, {title: "媒体库",rows: t.by_library.map((e) => ({name: e.name,@@ -69168,49 +70555,49 @@ function xje({ data: t, configurable: n, openMediaSettings: r }) {}), /* @__PURE__ */ (0, L.jsxs)("div", {className: "inline-grid w-full gap-5 md:grid-cols-2 xl:grid-cols-3",children: [- /* @__PURE__ */ (0, L.jsx)(N7, {+ /* @__PURE__ */ (0, L.jsx)(P7, {title: "时长",unit: "个视频",series: "视频",- color: Y7,- rows: jfe(t.by_length)+ color: X7,+ rows: lpe(t.by_length)}),- /* @__PURE__ */ (0, L.jsx)(N7, {+ /* @__PURE__ */ (0, L.jsx)(P7, {title: "画质",unit: "个视频",series: "视频",- color: Y7,- rows: dR(t.by_quality)+ color: X7,+ rows: UR(t.by_quality)}),- /* @__PURE__ */ (0, L.jsx)(N7, {+ /* @__PURE__ */ (0, L.jsx)(P7, {title: "文件类型",unit: "个条目",series: "条目",- color: Y7,+ color: X7,layout: "horizontal",- rows: kfe(t.by_medium)+ rows: spe(t.by_medium)})]})]- }) : /* @__PURE__ */ (0, L.jsx)(Fw, {+ }) : /* @__PURE__ */ (0, L.jsx)(ow, {shell: "plain",- icon: FS,+ icon: iC,title: "还没有视频",actions: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [n ? /* @__PURE__ */ (0, L.jsx)(G, {size: "small",onClick: r,children: "添加媒体文件夹"- }) : null, /* @__PURE__ */ (0, L.jsx)(Sw, {+ }) : null, /* @__PURE__ */ (0, L.jsx)(tw, {variant: "secondary",href: "/follow-manage?tab=add",size: "small",children: "添加关注"})] }),- children: gje+ children: TMe});}-function Sje({ data: e }) {- return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(B7, {+function jMe({ data: e }) {+ return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(V7, {activity: e.play_activity,title: "播放时间",dailyTitle: "每日播放",@@ -69220,40 +70607,40 @@ function Sje({ data: e }) {cellUnit: "个作品"},tone: 5- }), /* @__PURE__ */ (0, L.jsx)(N7, {+ }), /* @__PURE__ */ (0, L.jsx)(P7, {title: "播放次数",unit: "个作品",series: "作品",- color: mje,- rows: Nfe(e.replays)+ color: CMe,+ rows: dpe(e.replays)})] });}-function Cje({ attribution: e }) {+function MMe({ attribution: e }) {let t = e.videos;return /* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-col",children: [- /* @__PURE__ */ (0, L.jsx)(Z7, {+ /* @__PURE__ */ (0, L.jsx)(Q7, {term: "有创作者",value: e.creator,total: t}),- /* @__PURE__ */ (0, L.jsx)(Z7, {+ /* @__PURE__ */ (0, L.jsx)(Q7, {term: "有番号",value: e.code,total: t}),- /* @__PURE__ */ (0, L.jsx)(Z7, {+ /* @__PURE__ */ (0, L.jsx)(Q7, {term: "有厂牌",value: e.studio,total: t}),- /* @__PURE__ */ (0, L.jsx)(Z7, {+ /* @__PURE__ */ (0, L.jsx)(Q7, {term: "已抽帧",value: e.thumb,total: t}),- /* @__PURE__ */ (0, L.jsx)(Z7, {+ /* @__PURE__ */ (0, L.jsx)(Q7, {term: "已探测时长",value: e.duration,total: t@@ -69261,7 +70648,7 @@ function Cje({ attribution: e }) {]});}-function wje({ volume: e }) {+function NMe({ volume: e }) {let t = e.total, n = e.used ?? 0;return /* @__PURE__ */ (0, L.jsxs)("article", {className: "flex min-w-0 flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",@@ -69278,11 +70665,11 @@ function wje({ volume: e }) {className: "whitespace-nowrap tabular-nums",children: [a(n), /* @__PURE__ */ (0, L.jsxs)("span", {className: "ml-1.5 text-caption-1-regular text-text-secondary",- children: [cR(n, t), "%"]+ children: [BR(n, t), "%"]})]})]}),- t == null ? null : /* @__PURE__ */ (0, L.jsx)(zw, {+ t == null ? null : /* @__PURE__ */ (0, L.jsx)(uw, {label: `${e.label}空间使用率`,value: n,max: Math.max(t, 1)@@ -69300,25 +70687,25 @@ function wje({ volume: e }) {]});}-function Tje({ volumes: e, configurable: t, openMediaSettings: n }) {+function PMe({ volumes: e, configurable: t, openMediaSettings: n }) {return e.length ? /* @__PURE__ */ (0, L.jsx)("div", {className: "flex flex-col",- children: e.map((e) => /* @__PURE__ */ (0, L.jsx)(wje, { volume: e }, `${e.kind}:${e.label}`))- }) : /* @__PURE__ */ (0, L.jsx)(Fw, {+ children: e.map((e) => /* @__PURE__ */ (0, L.jsx)(NMe, { volume: e }, `${e.kind}:${e.label}`))+ }) : /* @__PURE__ */ (0, L.jsx)(ow, {shell: "plain",- icon: vS,+ icon: VS,title: "还没有存储来源",actions: t ? /* @__PURE__ */ (0, L.jsx)(G, {size: "small",onClick: n,children: "添加媒体文件夹"}) : void 0,- children: bje+ children: kMe});}-function Eje({ tags: e, tagLabel: t, onTag: n }) {- return e.length ? /* @__PURE__ */ (0, L.jsx)(V7, {- previewCount: pje,+function FMe({ tags: e, tagLabel: t, onTag: n }) {+ return e.length ? /* @__PURE__ */ (0, L.jsx)(H7, {+ previewCount: SMe,className: "inline-grid w-full gap-x-6 gap-y-1 sm:grid-cols-2",children: e.map((e, r) => /* @__PURE__ */ (0, L.jsx)("li", {className: "min-w-0",@@ -69342,24 +70729,24 @@ function Eje({ tags: e, tagLabel: t, onTag: n }) {]})}, e.k))- }) : /* @__PURE__ */ (0, L.jsx)(Fw, {+ }) : /* @__PURE__ */ (0, L.jsx)(ow, {shell: "plain",- icon: ES,+ icon: YS,title: "还没有内容标签",- actions: /* @__PURE__ */ (0, L.jsx)(Sw, {+ actions: /* @__PURE__ */ (0, L.jsx)(tw, {variant: "secondary",href: "/data-cleanup",size: "small",children: "补全资料"}),- children: _je+ children: EMe});}-function Dje({ rows: e }) {+function IMe({ rows: e }) {return e.length ? /* @__PURE__ */ (0, L.jsx)("div", {className: "flex flex-col gap-5",children: e.map((e) => {- let t = lR(e);+ let t = VR(e);return /* @__PURE__ */ (0, L.jsxs)("article", {className: "flex flex-wrap items-center gap-x-6 gap-y-2",children: [/* @__PURE__ */ (0, L.jsxs)("div", {@@ -69367,41 +70754,41 @@ function Dje({ rows: e }) {children: [/* @__PURE__ */ (0, L.jsx)("h3", {className: "min-w-0 text-body-2-medium text-text-primary",children: /* @__PURE__ */ (0, L.jsx)("a", {- href: Tfe(e),+ href: rpe(e),"data-middle-truncate": !0,className: "block max-w-full overflow-hidden whitespace-nowrap hover:underline",children: e.name})}), /* @__PURE__ */ (0, L.jsxs)("p", {className: "flex flex-wrap gap-3 text-caption-1-regular text-text-secondary",- children: [/* @__PURE__ */ (0, L.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, L.jsx)("span", { children: wfe(e) })]+ children: [/* @__PURE__ */ (0, L.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, L.jsx)("span", { children: npe(e) })]})]}), /* @__PURE__ */ (0, L.jsxs)("div", {className: "min-w-0 basis-40",- children: [/* @__PURE__ */ (0, L.jsx)(zw, {+ children: [/* @__PURE__ */ (0, L.jsx)(uw, {label: `真实观看 ${t.toFixed(0)}%`,value: t}), /* @__PURE__ */ (0, L.jsx)("small", {className: "mt-1.5 block text-caption-1-regular text-text-secondary",- children: `真实 ${t.toFixed(0)}% · 到达 ${uR(e).toFixed(0)}%`+ children: `真实 ${t.toFixed(0)}% · 到达 ${HR(e).toFixed(0)}%`})]})]}, `${e.kind}:${e.id}`);})- }) : /* @__PURE__ */ (0, L.jsx)(Fw, {+ }) : /* @__PURE__ */ (0, L.jsx)(ow, {shell: "plain",- icon: yS,+ icon: HS,title: "还没有观看记录",- actions: /* @__PURE__ */ (0, L.jsx)(Sw, {+ actions: /* @__PURE__ */ (0, L.jsx)(tw, {variant: "secondary",href: "/",size: "small",children: "浏览馆藏"}),- children: vje+ children: DMe});}-function Oje({ sources: e, videos: t }) {+function LMe({ sources: e, videos: t }) {return e.length ? /* @__PURE__ */ (0, L.jsx)("div", {className: "inline-grid w-full gap-x-8 gap-y-6 sm:grid-cols-2",children: e.map((e) => /* @__PURE__ */ (0, L.jsxs)("article", {@@ -69420,7 +70807,7 @@ function Oje({ sources: e, videos: t }) {})]})]}),- /* @__PURE__ */ (0, L.jsx)(zw, {+ /* @__PURE__ */ (0, L.jsx)(uw, {label: `${e.k} 覆盖视频`,value: e.assets,max: Math.max(t, 1)@@ -69431,27 +70818,27 @@ function Oje({ sources: e, videos: t }) {})]}, e.k))- }) : /* @__PURE__ */ (0, L.jsx)(Fw, {+ }) : /* @__PURE__ */ (0, L.jsx)(ow, {shell: "plain",- icon: ES,+ icon: YS,title: "还没有标签来源",- actions: /* @__PURE__ */ (0, L.jsx)(Sw, {+ actions: /* @__PURE__ */ (0, L.jsx)(tw, {variant: "secondary",href: "/data-cleanup",size: "small",children: "补全资料"}),- children: yje+ children: OMe});}-function e9({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {- return /* @__PURE__ */ (0, L.jsx)(aO, {+function t9({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {+ return /* @__PURE__ */ (0, L.jsx)(rA, {id: e,- className: gA({+ className: vD({interactive: !0,selectable: !0}),- children: /* @__PURE__ */ (0, L.jsx)(bA, {+ children: /* @__PURE__ */ (0, L.jsx)(SD, {label: t,icon: i,accent: a,@@ -69460,75 +70847,75 @@ function e9({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {})});}-function kje(e) {- let t = Nt({- queryKey: oR,- queryFn: ({ signal: e }) => sR(e)+function RMe(e) {+ let t = Ft({+ queryKey: RR,+ queryFn: ({ signal: e }) => zR(e)}), n = t.data;- if (!n) return /* @__PURE__ */ (0, L.jsx)(Lw, { children: /* @__PURE__ */ (0, L.jsx)(J, {+ if (!n) return /* @__PURE__ */ (0, L.jsx)(cw, { children: /* @__PURE__ */ (0, L.jsx)(J, {tone: "error",title: "读取失败",children: t.error ? K(t.error) : "读取统计失败"}) });- let r = n.consumption, i = n.storage_summary, o = n.by_loc.reduce((e, t) => e + t.videos, 0), s = n.by_loc.reduce((e, t) => e + t.bytes, 0), c = cR(n.tag_cov, n.attribution.videos);- return /* @__PURE__ */ (0, L.jsxs)(Lw, { children: [+ let r = n.consumption, i = n.storage_summary, o = n.by_loc.reduce((e, t) => e + t.videos, 0), s = n.by_loc.reduce((e, t) => e + t.bytes, 0), c = BR(n.tag_cov, n.attribution.videos);+ return /* @__PURE__ */ (0, L.jsxs)(cw, { children: [/* @__PURE__ */ (0, L.jsx)("p", {className: "text-caption-1-regular text-text-secondary",children: `账本当前快照 · ${o.toLocaleString()} 个视频 · ${a(s)}`}),- /* @__PURE__ */ (0, L.jsxs)(rO, {+ /* @__PURE__ */ (0, L.jsxs)(tA, {className: "flex flex-col gap-4",children: [- /* @__PURE__ */ (0, L.jsxs)(iO, {+ /* @__PURE__ */ (0, L.jsxs)(nA, {"aria-label": "统计视图",- className: _A,+ className: yD,children: [- /* @__PURE__ */ (0, L.jsx)(e9, {+ /* @__PURE__ */ (0, L.jsx)(t9, {id: "inventory",label: "馆藏视频",- icon: fS,+ icon: PS,accent: 0,figure: o.toLocaleString(),detail: a(s)}),- /* @__PURE__ */ (0, L.jsx)(e9, {+ /* @__PURE__ */ (0, L.jsx)(t9, {id: "viewing",label: "看过",- icon: hS,+ icon: RS,accent: 1,figure: r.played.toLocaleString(),- detail: Cfe(r.play_seconds)+ detail: tpe(r.play_seconds)}),- /* @__PURE__ */ (0, L.jsx)(e9, {+ /* @__PURE__ */ (0, L.jsx)(t9, {id: "coverage",label: "内容标签",- icon: ES,+ icon: YS,accent: 2,figure: `${c}%`,detail: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`}),- /* @__PURE__ */ (0, L.jsx)(e9, {+ /* @__PURE__ */ (0, L.jsx)(t9, {id: "storage",label: "使用空间",- icon: vS,+ icon: VS,accent: 3,figure: `${i.online} 个卷`,detail: i.measured ? `已用 ${a(i.used)}` : "容量未取得"})]}),- /* @__PURE__ */ (0, L.jsx)(oO, {+ /* @__PURE__ */ (0, L.jsx)(iA, {id: "inventory",- children: /* @__PURE__ */ (0, L.jsx)(xje, {+ children: /* @__PURE__ */ (0, L.jsx)(AMe, {data: n,...e})}),- /* @__PURE__ */ (0, L.jsxs)(oO, {+ /* @__PURE__ */ (0, L.jsxs)(iA, {id: "viewing",className: "flex flex-col gap-5",- children: [/* @__PURE__ */ (0, L.jsx)($7, {- headline: /* @__PURE__ */ (0, L.jsx)(Q7, {+ children: [/* @__PURE__ */ (0, L.jsx)(e9, {+ headline: /* @__PURE__ */ (0, L.jsx)($7, {term: "观看",figure: r.played.toLocaleString(),unit: "个作品有播放记录"@@ -69536,62 +70923,62 @@ function kje(e) {children: /* @__PURE__ */ (0, L.jsxs)("div", {className: "inline-grid w-full gap-3 sm:grid-cols-2",children: [- /* @__PURE__ */ (0, L.jsx)(X7, {+ /* @__PURE__ */ (0, L.jsx)(Z7, {term: "馆藏观看",value: r.library_played}),- /* @__PURE__ */ (0, L.jsx)(X7, {+ /* @__PURE__ */ (0, L.jsx)(Z7, {term: "在线直接观看",value: r.online_played}),- /* @__PURE__ */ (0, L.jsx)(X7, {+ /* @__PURE__ */ (0, L.jsx)(Z7, {term: "高潮计数",value: r.o_total}),- /* @__PURE__ */ (0, L.jsx)(X7, {+ /* @__PURE__ */ (0, L.jsx)(Z7, {term: "快进扫过",value: r.skimmed}),- /* @__PURE__ */ (0, L.jsx)(X7, {+ /* @__PURE__ */ (0, L.jsx)(Z7, {term: "喜欢",value: r.liked}),- /* @__PURE__ */ (0, L.jsx)(X7, {+ /* @__PURE__ */ (0, L.jsx)(Z7, {term: "明确不喜欢",value: r.dislike}),- /* @__PURE__ */ (0, L.jsx)(X7, {+ /* @__PURE__ */ (0, L.jsx)(Z7, {term: "看过了",value: r.seen}),- /* @__PURE__ */ (0, L.jsx)(X7, {+ /* @__PURE__ */ (0, L.jsx)(Z7, {term: "回收站",value: r.trash})]})- }), /* @__PURE__ */ (0, L.jsx)(Sje, { data: n })]+ }), /* @__PURE__ */ (0, L.jsx)(jMe, { data: n })]}),- /* @__PURE__ */ (0, L.jsx)(oO, {+ /* @__PURE__ */ (0, L.jsx)(iA, {id: "coverage",- children: /* @__PURE__ */ (0, L.jsx)($7, {- headline: /* @__PURE__ */ (0, L.jsx)(Q7, {+ children: /* @__PURE__ */ (0, L.jsx)(e9, {+ headline: /* @__PURE__ */ (0, L.jsx)($7, {term: "内容标签覆盖",figure: `${c}%`,unit: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`}),- children: /* @__PURE__ */ (0, L.jsx)(Cje, { attribution: n.attribution })+ children: /* @__PURE__ */ (0, L.jsx)(MMe, { attribution: n.attribution })})}),- /* @__PURE__ */ (0, L.jsx)(oO, {+ /* @__PURE__ */ (0, L.jsx)(iA, {id: "storage",- children: /* @__PURE__ */ (0, L.jsx)($7, {- headline: /* @__PURE__ */ (0, L.jsx)(Q7, {+ children: /* @__PURE__ */ (0, L.jsx)(e9, {+ headline: /* @__PURE__ */ (0, L.jsx)($7, {term: "使用空间",figure: String(i.measured),unit: "个卷已取得容量"}),- children: /* @__PURE__ */ (0, L.jsx)(Tje, {+ children: /* @__PURE__ */ (0, L.jsx)(PMe, {volumes: n.storage_volumes,...e})@@ -69599,50 +70986,50 @@ function kje(e) {})]}),- /* @__PURE__ */ (0, L.jsxs)(rO, {- className: `${Nw({ padding: "none" })} flex flex-col`,+ /* @__PURE__ */ (0, L.jsxs)(tA, {+ className: `${aw({ padding: "none" })} flex flex-col`,children: [/* @__PURE__ */ (0, L.jsx)("div", {className: "px-4 pt-3",- children: /* @__PURE__ */ (0, L.jsxs)(iO, {+ children: /* @__PURE__ */ (0, L.jsxs)(nA, {"aria-label": "统计维度",- className: IM,+ className: xN,children: [- /* @__PURE__ */ (0, L.jsx)(aO, {+ /* @__PURE__ */ (0, L.jsx)(rA, {id: "tags",- className: LM,+ className: SN,children: "内容标签"}),- /* @__PURE__ */ (0, L.jsx)(aO, {+ /* @__PURE__ */ (0, L.jsx)(rA, {id: "recent",- className: LM,+ className: SN,children: "最近看过"}),- /* @__PURE__ */ (0, L.jsx)(aO, {+ /* @__PURE__ */ (0, L.jsx)(rA, {id: "sources",- className: LM,+ className: SN,children: "标签来源"})]})}),- /* @__PURE__ */ (0, L.jsx)(oO, {+ /* @__PURE__ */ (0, L.jsx)(iA, {id: "tags",className: "px-4 pt-3.5 pb-4",- children: /* @__PURE__ */ (0, L.jsx)(Eje, {+ children: /* @__PURE__ */ (0, L.jsx)(FMe, {tags: n.top_tags,...e})}),- /* @__PURE__ */ (0, L.jsx)(oO, {+ /* @__PURE__ */ (0, L.jsx)(iA, {id: "recent",className: "px-4 pt-3.5 pb-4",- children: /* @__PURE__ */ (0, L.jsx)(Dje, { rows: n.recent })+ children: /* @__PURE__ */ (0, L.jsx)(IMe, { rows: n.recent })}),- /* @__PURE__ */ (0, L.jsx)(oO, {+ /* @__PURE__ */ (0, L.jsx)(iA, {id: "sources",className: "px-4 pt-3.5 pb-4",- children: /* @__PURE__ */ (0, L.jsx)(Oje, {+ children: /* @__PURE__ */ (0, L.jsx)(LMe, {sources: n.tag_source,videos: n.attribution.videos})@@ -69653,66 +71040,66 @@ function kje(e) {}//#endregion//#region node_modules/d3-sankey/src/align.js-function Aje(e, t) {+function zMe(e, t) {return e.sourceLinks.length ? e.depth : t - 1;}//#endregion//#region node_modules/d3-sankey/src/constant.js-function t9(e) {+function n9(e) {return function() {return e;};}//#endregion//#region node_modules/d3-sankey/src/sankey.js-function n9(e, t) {- return i9(e.source, t.source) || e.index - t.index;-}function r9(e, t) {- return i9(e.target, t.target) || e.index - t.index;+ return a9(e.source, t.source) || e.index - t.index;}function i9(e, t) {+ return a9(e.target, t.target) || e.index - t.index;+}+function a9(e, t) {return e.y0 - t.y0;}-function a9(e) {+function o9(e) {return e.value;}-function jje(e) {+function BMe(e) {return e.index;}-function Mje(e) {+function VMe(e) {return e.nodes;}-function Nje(e) {+function HMe(e) {return e.links;}-function o9(e, t) {+function s9(e, t) {let n = e.get(t);if (!n) throw Error("missing: " + t);return n;}-function s9({ nodes: e }) {+function c9({ 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 Pje() {- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = jje, c = Aje, l, u, d = Mje, f = Nje, p = 6;+function UMe() {+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = BMe, c = zMe, l, u, d = VMe, f = HMe, 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), s9(e), e;+ return h(e), g(e), _(e), v(e), x(e), c9(e), e;}m.update = function(e) {- return s9(e), e;+ return c9(e), e;}, m.nodeId = function(e) {- return arguments.length ? (s = typeof e == "function" ? e : t9(e), m) : s;+ return arguments.length ? (s = typeof e == "function" ? e : n9(e), m) : s;}, m.nodeAlign = function(e) {- return arguments.length ? (c = typeof e == "function" ? e : t9(e), m) : c;+ return arguments.length ? (c = typeof e == "function" ? e : n9(e), m) : c;}, m.nodeSort = function(e) {return arguments.length ? (l = e, m) : l;}, m.nodeWidth = function(e) {@@ -69720,9 +71107,9 @@ function Pje() {}, m.nodePadding = function(e) {return arguments.length ? (a = o = +e, m) : a;}, m.nodes = function(e) {- return arguments.length ? (d = typeof e == "function" ? e : t9(e), m) : d;+ return arguments.length ? (d = typeof e == "function" ? e : n9(e), m) : d;}, m.links = function(e) {- return arguments.length ? (f = typeof e == "function" ? e : t9(e), m) : f;+ return arguments.length ? (f = typeof e == "function" ? e : n9(e), m) : f;}, m.linkSort = function(e) {return arguments.length ? (u = e, m) : u;}, m.size = function(i) {@@ -69738,12 +71125,12 @@ function Pje() {for (let [e, r] of t.entries()) {r.index = e;let { source: t, target: i } = r;- typeof t != "object" && (t = r.source = o9(n, t)), typeof i != "object" && (i = r.target = o9(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);+ typeof t != "object" && (t = r.source = s9(n, t)), typeof i != "object" && (i = r.target = s9(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(MX(t.sourceLinks, a9), MX(t.targetLinks, a9)) : t.fixedValue;+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(MX(t.sourceLinks, o9), MX(t.targetLinks, o9)) : t.fixedValue;}function _({ nodes: e }) {let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;@@ -69777,7 +71164,7 @@ function Pje() {return o;}function b(e) {- let n = kX(e, (e) => (r - t - (e.length - 1) * o) / MX(e, a9));+ let n = kX(e, (e) => (r - t - (e.length - 1) * o) / MX(e, o9));for (let i of e) {let e = t;for (let t of i) {@@ -69813,7 +71200,7 @@ function Pje() {let i = (n / r - e.y0) * t;e.y0 += i, e.y1 += i, D(e);}- l === void 0 && i.sort(i9), w(i, n);+ l === void 0 && i.sort(a9), w(i, n);}}function C(e, t, n) {@@ -69829,7 +71216,7 @@ function Pje() {let i = (n / r - e.y0) * t;e.y0 += i, e.y1 += i, D(e);}- l === void 0 && i.sort(i9), w(i, n);+ l === void 0 && i.sort(a9), w(i, n);}}function w(e, n) {@@ -69850,12 +71237,12 @@ function Pje() {}function D({ sourceLinks: e, targetLinks: t }) {if (u === void 0) {- for (let { source: { sourceLinks: e } } of t) e.sort(r9);- for (let { target: { targetLinks: t } } of e) t.sort(n9);+ for (let { source: { sourceLinks: e } } of t) e.sort(i9);+ for (let { target: { targetLinks: t } } of e) t.sort(r9);}}function O(e) {- if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(r9), n.sort(n9);+ if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(i9), n.sort(r9);}function k(e, t) {let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;@@ -69885,15 +71272,15 @@ function Pje() {}//#endregion//#region node_modules/d3-path/src/path.js-var c9 = Math.PI, l9 = 2 * c9, u9 = 1e-6, Fje = l9 - u9;-function d9() {+var l9 = Math.PI, u9 = 2 * l9, d9 = 1e-6, WMe = u9 - d9;+function f9() {this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";}-function f9() {- return new d9();+function p9() {+ return new f9();}-d9.prototype = f9.prototype = {- constructor: d9,+f9.prototype = p9.prototype = {+ constructor: f9,moveTo: function(e, t) {this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);},@@ -69914,11 +71301,11 @@ d9.prototype = f9.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 > u9) {- if (!(Math.abs(u * s - c * l) > u9) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);+ else if (d > d9) {+ if (!(Math.abs(u * s - c * l) > d9) || !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((c9 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;- Math.abs(y - 1) > u9 && (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((l9 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;+ Math.abs(y - 1) > d9 && (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);}}},@@ -69926,7 +71313,7 @@ d9.prototype = f9.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) > u9 || Math.abs(this._y1 - l) > u9) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % l9 + l9), d > Fje ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > u9 && (this._ += "A" + n + "," + n + ",0," + +(d >= c9) + "," + 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) > d9 || Math.abs(this._y1 - l) > d9) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % u9 + u9), d > WMe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > d9 && (this._ += "A" + n + "," + n + ",0," + +(d >= l9) + "," + 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";@@ -69937,90 +71324,90 @@ d9.prototype = f9.prototype = {};//#endregion//#region node_modules/d3-shape/src/constant.js-function p9(e) {+function m9(e) {return function() {return e;};}//#endregion//#region node_modules/d3-shape/src/point.js-function Ije(e) {+function GMe(e) {return e[0];}-function Lje(e) {+function KMe(e) {return e[1];}//#endregion//#region node_modules/d3-shape/src/array.js-var Rje = Array.prototype.slice;+var qMe = Array.prototype.slice;//#endregion//#region node_modules/d3-shape/src/link/index.js-function zje(e) {+function JMe(e) {return e.source;}-function Bje(e) {+function YMe(e) {return e.target;}-function Vje(e) {- var t = zje, n = Bje, r = Ije, i = Lje, a = null;+function XMe(e) {+ var t = JMe, n = YMe, r = GMe, i = KMe, a = null;function o() {- var o, s = Rje.call(arguments), c = t.apply(this, s), l = n.apply(this, s);- if (a ||= o = f9(), 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 = qMe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);+ if (a ||= o = p9(), 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 : p9(+e), o) : r;+ return arguments.length ? (r = typeof e == "function" ? e : m9(+e), o) : r;}, o.y = function(e) {- return arguments.length ? (i = typeof e == "function" ? e : p9(+e), o) : i;+ return arguments.length ? (i = typeof e == "function" ? e : m9(+e), o) : i;}, o.context = function(e) {return arguments.length ? (a = e ?? null, o) : a;}, o;}-function Hje(e, t, n, r, i) {+function ZMe(e, t, n, r, i) {e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);}-function Uje() {- return Vje(Hje);+function QMe() {+ return XMe(ZMe);}//#endregion//#region node_modules/d3-sankey/src/sankeyLinkHorizontal.js-function Wje(e) {+function $Me(e) {return [e.source.x1, e.y0];}-function Gje(e) {+function eNe(e) {return [e.target.x0, e.y1];}-function Kje() {- return Uje().source(Wje).target(Gje);+function tNe() {+ return QMe().source($Me).target(eNe);}//#endregion//#region src/react/taste/taste.ts-var qje = "/api/taste", m9 = "/api/taste/refresh", Jje = "/api/taste/import", Yje = "/api/taste/source", h9 = (e) => ["taste", e], Xje = ["taste", "refresh"], Zje = [+var nNe = "/api/taste", h9 = "/api/taste/refresh", rNe = "/api/taste/import", iNe = "/api/taste/source", g9 = (e) => ["taste", e], aNe = ["taste", "refresh"], oNe = [["7d", "最近 7 天"],["30d", "最近 30 天"],["90d", "最近 90 天"],["365d", "最近一年"],["all", "全部时间"]-], g9 = (e, t) => Tw(`${qje}?window=${e}`, t), Qje = (e) => Tw(m9, e);-async function $je(e, t) {+], _9 = (e, t) => iw(`${nNe}?window=${e}`, t), sNe = (e) => iw(h9, e);+async function cNe(e, t) {await X.fetchQuery({- queryKey: h9(e),- queryFn: () => g9(e, t)+ queryKey: g9(e),+ queryFn: () => _9(e, t)});}-var eMe = (e) => q(m9, {+var lNe = (e) => q(h9, {window: e,background: !0-}), tMe = (e, t) => q(Yje, {+}), uNe = (e, t) => q(iNe, {operation: "remove",source_key: e,window: t});-async function nMe(e) {- let t = await fetch(Jje, {+async function dNe(e) {+ let t = await fetch(rNe, {method: "POST",credentials: "same-origin",headers: {@@ -70034,39 +71421,39 @@ async function nMe(e) {} catch {}if (!t.ok) {let e = n?.error;- throw new Cw(e || `导入失败(${t.status})`, t.status, n);+ throw new nw(e || `导入失败(${t.status})`, t.status, n);}return n;}-var rMe = 1e4, _9 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", iMe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, aMe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);-function oMe(e) {+var fNe = 1e4, v9 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", pNe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, mNe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);+function hNe(e) {if (e.web_visits == null) return Number(e.score || e.visits || 0).toLocaleString();let t = [];return e.web_visits && t.push(`浏览 ${e.web_visits}`), e.peach_items && t.push(`Peach ${e.peach_items}`), t.join(" · ");}-function sMe(e) {- let t = e.map(aMe), n = Math.max(1, ...t);+function gNe(e) {+ let t = e.map(mNe), n = Math.max(1, ...t);return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));}-var v9 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({+var y9 = (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 cMe(e) {- let t = v9(e, 6);+function _Ne(e) {+ let t = y9(e, 6);return t.length < 3 ? [] : t;}-var y9 = {+var b9 = {width: 720,height: 435-}, b9 = {+}, x9 = {source: 145,target: 545};-function lMe(e = []) {+function vNe(e = []) {let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);if (!t.length) return null;- let n = [...new Set(t.map((e) => e.source))], r = [...new Set(t.map((e) => e.target))], i = Pje().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({+ let n = [...new Set(t.map((e) => e.source))], r = [...new Set(t.map((e) => e.target))], i = UMe().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({nodes: [...n.map((e) => ({id: `source:${e}`,name: e,@@ -70081,7 +71468,7 @@ function lMe(e = []) {target: `target:${e.target}`,value: e.value}))- }), a = t.reduce((e, t) => e + t.value, 0), o = Kje();+ }), a = t.reduce((e, t) => e + t.value, 0), o = tNe();return {nodes: i.nodes.map((e) => ({id: e.id,@@ -70111,11 +71498,11 @@ function lMe(e = []) {total: a};}-var uMe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, x9 = I.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {+var yNe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, S9 = I.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {let c = I.useId().replace(/:/g, ""), l = `url(#${r}-colors-${String(n)})`;if (e === void 0 || t === void 0) return null;switch (o) {- case "border": return /* @__PURE__ */ (0, L.jsx)(C9, {+ case "border": return /* @__PURE__ */ (0, L.jsx)(w9, {cx: e,cy: t,dotId: c,@@ -70124,7 +71511,7 @@ var uMe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, x9 = I.memo(functioclassName: i,maskId: s});- case "colored-border": return /* @__PURE__ */ (0, L.jsx)(w9, {+ case "colored-border": return /* @__PURE__ */ (0, L.jsx)(T9, {cx: e,cy: t,dotId: c,@@ -70133,7 +71520,7 @@ var uMe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, x9 = I.memo(functioclassName: i,maskId: s});- default: return /* @__PURE__ */ (0, L.jsx)(S9, {+ default: return /* @__PURE__ */ (0, L.jsx)(C9, {cx: e,cy: t,dotId: c,@@ -70143,7 +71530,7 @@ var uMe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, x9 = I.memo(functiomaskId: s});}-}), S9 = I.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, L.jsxs)("g", {+}), C9 = I.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, L.jsxs)("g", {className: a,mask: o ? `url(#${o})` : void 0,children: [/* @__PURE__ */ (0, L.jsx)("defs", { children: /* @__PURE__ */ (0, L.jsx)("clipPath", {@@ -70163,9 +71550,9 @@ var uMe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, x9 = I.memo(functioclipPath: `url(#dot-clip-${n})`})]}));-S9.displayName = "DefaultDot";-var C9 = I.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, L.jsxs)("g", {- className: $5(a, "text-background"),+C9.displayName = "DefaultDot";+var w9 = I.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, L.jsxs)("g", {+ className: e7(a, "text-background"),mask: o ? `url(#${o})` : void 0,children: [/* @__PURE__ */ (0, L.jsx)("defs", { children: /* @__PURE__ */ (0, L.jsx)("clipPath", {@@ -70201,9 +71588,9 @@ var C9 = I.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, class}) })]}));-C9.displayName = "PrimaryBorderDot";-var w9 = I.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, L.jsxs)("g", {- className: $5(a, "text-background"),+w9.displayName = "PrimaryBorderDot";+var T9 = I.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, L.jsxs)("g", {+ className: e7(a, "text-background"),mask: o ? `url(#${o})` : void 0,children: [/* @__PURE__ */ (0, L.jsx)("defs", { children: /* @__PURE__ */ (0, L.jsx)("clipPath", {@@ -70231,17 +71618,17 @@ var w9 = I.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, class})]}));-w9.displayName = "ColoredBorderDot";+T9.displayName = "ColoredBorderDot";//#endregion//#region src/react/evilcharts/registry/charts/recharts-radar-chart.tsx-var dMe = 1, fMe = .3, pMe = 6, T9 = 1500, E9 = "value", D9 = (0, I.createContext)(null);-function O9() {- let e = (0, I.use)(D9);+var bNe = 1, xNe = .3, SNe = 6, E9 = 1500, D9 = "value", O9 = (0, I.createContext)(null);+function k9() {+ let e = (0, I.use)(O9);if (!e) throw Error("Radar chart parts (<Radar />, <PolarAngleAxis />, …) must be used within <EvilRadarChart />");return e;}-function k9({ config: e, data: t, children: n, className: r, chartProps: i, backgroundVariant: a, defaultSelectedDataKey: o = null, onSelectionChange: s, isLoading: c = !1, loadingPoints: l }) {- let u = (0, I.useId)().replace(/:/g, ""), [d, f] = (0, I.useState)(o), p = EMe(c, l), m = (0, I.useCallback)((e) => {+function A9({ config: e, data: t, children: n, className: r, chartProps: i, backgroundVariant: a, defaultSelectedDataKey: o = null, onSelectionChange: s, isLoading: c = !1, loadingPoints: l }) {+ let u = (0, I.useId)().replace(/:/g, ""), [d, f] = (0, I.useState)(o), p = FNe(c, l), m = (0, I.useCallback)((e) => {f(e), s?.(e);}, [s]), h = (0, I.useMemo)(() => ({config: e,@@ -70254,37 +71641,37 @@ function k9({ config: e, data: t, children: n, className: r, chartProps: i, backd,m]);- return /* @__PURE__ */ (0, L.jsx)(D9, {+ return /* @__PURE__ */ (0, L.jsx)(O9, {value: h,- children: /* @__PURE__ */ (0, L.jsxs)(i7, {+ children: /* @__PURE__ */ (0, L.jsxs)(a7, {className: r,config: e,- children: [/* @__PURE__ */ (0, L.jsx)(a7, { isLoading: c }), /* @__PURE__ */ (0, L.jsxs)(Zke, {+ children: [/* @__PURE__ */ (0, L.jsx)(o7, { isLoading: c }), /* @__PURE__ */ (0, L.jsxs)(sje, {id: u,data: c ? p : t,...i,children: [- a && /* @__PURE__ */ (0, L.jsx)(g7, { variant: a }),+ a && /* @__PURE__ */ (0, L.jsx)(_7, { variant: a }),n,- c && /* @__PURE__ */ (0, L.jsx)(DMe, {})+ c && /* @__PURE__ */ (0, L.jsx)(INe, {})]})]})});}-function mMe({ dataKey: e, variant: t = "filled", fillOpacity: n = fMe, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {- let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = O9(), d = (0, I.useId)().replace(/:/g, "");+function CNe({ dataKey: e, variant: t = "filled", fillOpacity: n = xNe, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {+ let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = k9(), d = (0, I.useId)().replace(/:/g, "");if (c) return null;let f = i && l !== null && l !== e, p = {stroke: f ? .2 : 1,fill: f ? .1 : 1,dot: f ? .2 : 1- }, m = t === "filled", { dot: h, activeDot: g } = bMe(a, d, e, p.dot);+ }, m = t === "filled", { dot: h, activeDot: g } = kNe(a, d, e, p.dot);return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(U3, {dataKey: e,stroke: `url(#${d}-radar-stroke-${e})`,strokeOpacity: p.stroke,- strokeWidth: dMe,+ strokeWidth: bNe,fill: m ? `url(#${d}-radar-fill-${e})` : "none",fillOpacity: m ? n * p.fill : 0,dot: h,@@ -70297,29 +71684,29 @@ function mMe({ dataKey: e, variant: t = "filled", fillOpacity: n = fMe, isGlowin},...o}), /* @__PURE__ */ (0, L.jsxs)("defs", { children: [- /* @__PURE__ */ (0, L.jsx)(xMe, {+ /* @__PURE__ */ (0, L.jsx)(ANe, {id: d,dataKey: e,config: s}),- /* @__PURE__ */ (0, L.jsx)(SMe, {+ /* @__PURE__ */ (0, L.jsx)(jNe, {id: d,dataKey: e,config: s}),- m && /* @__PURE__ */ (0, L.jsx)(CMe, {+ m && /* @__PURE__ */ (0, L.jsx)(MNe, {id: d,dataKey: e,config: s}),- r && /* @__PURE__ */ (0, L.jsx)(wMe, {+ r && /* @__PURE__ */ (0, L.jsx)(NNe, {id: d,dataKey: e})] })] });}-var A9 = () => null, j9 = () => null;-function hMe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {+var j9 = () => null, M9 = () => null;+function wNe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {return /* @__PURE__ */ (0, L.jsx)(I4, {gridType: e,stroke: t,@@ -70328,22 +71715,22 @@ function hMe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacit...i});}-function gMe({ tick: e = {+function TNe({ tick: e = {fill: "currentColor",fontSize: 12}, tickLine: t = !1, ...n }) {- let { isLoading: r } = O9();+ let { isLoading: r } = k9();return r ? null : /* @__PURE__ */ (0, L.jsx)(X4, {tick: e,tickLine: t,...n});}-function _Me({ tick: e = {+function ENe({ tick: e = {fill: "currentColor",fontSize: 10}, tickLine: t = !1, axisLine: n = !1, ...r }) {- let { isLoading: i } = O9();+ let { isLoading: i } = k9();return i ? null : /* @__PURE__ */ (0, L.jsx)(W4, {tick: e,tickLine: t,@@ -70351,24 +71738,24 @@ function _Me({ tick: e = {...r});}-function vMe({ variant: e, roundness: t, defaultIndex: n }) {- let { isLoading: r, selectedDataKey: i } = O9();- return r ? null : /* @__PURE__ */ (0, L.jsx)(u7, {+function DNe({ variant: e, roundness: t, defaultIndex: n }) {+ let { isLoading: r, selectedDataKey: i } = k9();+ return r ? null : /* @__PURE__ */ (0, L.jsx)(d7, {defaultIndex: n,cursor: !1,- content: /* @__PURE__ */ (0, L.jsx)(l7, {+ content: /* @__PURE__ */ (0, L.jsx)(u7, {selected: i,roundness: t,variant: e})});}-function yMe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {- let { isLoading: i, selectedDataKey: a, selectDataKey: o } = O9();- return i ? null : /* @__PURE__ */ (0, L.jsx)(f7, {+function ONe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {+ let { isLoading: i, selectedDataKey: a, selectDataKey: o } = k9();+ return i ? null : /* @__PURE__ */ (0, L.jsx)(p7, {verticalAlign: n,align: t,- content: /* @__PURE__ */ (0, L.jsx)(d7, {+ content: /* @__PURE__ */ (0, L.jsx)(f7, {selected: a,onSelectChange: o,isClickable: r,@@ -70376,22 +71763,22 @@ function yMe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC})});}-var bMe = (e, t, n, r) => {+var kNe = (e, t, n, r) => {let i = !1, a = !1;return I.Children.forEach(e, (e) => {if ((0, I.isValidElement)(e)) {- if (e.type === A9) {+ if (e.type === j9) {let { variant: a } = e.props;- i = /* @__PURE__ */ (0, L.jsx)(x9, {+ i = /* @__PURE__ */ (0, L.jsx)(S9, {type: a,dataKey: n,chartId: t,fillOpacity: r});}- if (e.type === j9) {+ if (e.type === M9) {let { variant: i } = e.props;- a = /* @__PURE__ */ (0, L.jsx)(x9, {+ a = /* @__PURE__ */ (0, L.jsx)(S9, {type: i,dataKey: n,chartId: t,@@ -70403,7 +71790,7 @@ var bMe = (e, t, n, r) => {dot: i,activeDot: a};-}, M9 = ({ dataKey: e, colorsCount: t, opacities: n }) => t === 1 ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("stop", {+}, N9 = ({ dataKey: e, colorsCount: t, opacities: n }) => t === 1 ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("stop", {offset: "0%",stopColor: `var(--color-${e}-0)`,stopOpacity: n?.[0]@@ -70418,46 +71805,46 @@ var bMe = (e, t, n, r) => {stopColor: `var(--color-${e}-${i}, var(--color-${e}-0))`,stopOpacity: n?.[i]}, a);-}) }), xMe = ({ id: e, dataKey: t, config: n }) => {- let r = c7(n[t] ?? {});+}) }), ANe = ({ id: e, dataKey: t, config: n }) => {+ let r = l7(n[t] ?? {});return /* @__PURE__ */ (0, L.jsx)("linearGradient", {id: `${e}-colors-${t}`,x1: "0",y1: "0",x2: "1",y2: "0",- children: /* @__PURE__ */ (0, L.jsx)(M9, {+ children: /* @__PURE__ */ (0, L.jsx)(N9, {dataKey: t,colorsCount: r})});-}, SMe = ({ id: e, dataKey: t, config: n }) => {- let r = c7(n[t] ?? {});+}, jNe = ({ id: e, dataKey: t, config: n }) => {+ let r = l7(n[t] ?? {});return /* @__PURE__ */ (0, L.jsx)("linearGradient", {id: `${e}-radar-stroke-${t}`,x1: "0",y1: "0",x2: "1",y2: "1",- children: /* @__PURE__ */ (0, L.jsx)(M9, {+ children: /* @__PURE__ */ (0, L.jsx)(N9, {dataKey: t,colorsCount: r})});-}, CMe = ({ id: e, dataKey: t, config: n }) => {- let r = c7(n[t] ?? {}), i = r === 1 ? [.8, .3] : Array.from({ length: r }, (e, t) => t === 0 ? .8 : .3);+}, MNe = ({ id: e, dataKey: t, config: n }) => {+ let r = l7(n[t] ?? {}), i = r === 1 ? [.8, .3] : Array.from({ length: r }, (e, t) => t === 0 ? .8 : .3);return /* @__PURE__ */ (0, L.jsx)("radialGradient", {id: `${e}-radar-fill-${t}`,cx: "50%",cy: "50%",r: "50%",- children: /* @__PURE__ */ (0, L.jsx)(M9, {+ children: /* @__PURE__ */ (0, L.jsx)(N9, {dataKey: t,colorsCount: r,opacities: i})});-}, wMe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)("filter", {+}, NNe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)("filter", {id: `${e}-radar-glow-${t}`,x: "-50%",y: "-50%",@@ -70477,7 +71864,7 @@ var bMe = (e, t, n, r) => {}),/* @__PURE__ */ (0, L.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, L.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, L.jsx)("feMergeNode", { in: "SourceGraphic" })] })]-}), TMe = (e) => [+}), PNe = (e) => ["A","B","C",@@ -70486,20 +71873,20 @@ var bMe = (e, t, n, r) => {"F"].slice(0, e).map((e) => ({skill: e,- [E9]: 30 + Math.random() * 70+ [D9]: 30 + Math.random() * 70}));-function EMe(e, t = pMe) {+function FNe(e, t = SNe) {let [n, r] = (0, I.useState)(0);return (0, I.useEffect)(() => {if (!e) return;let t = setInterval(() => {r((e) => e + 1);- }, T9);+ }, E9);return () => clearInterval(t);- }, [e]), (0, I.useMemo)(() => TMe(t), [t, n]);+ }, [e]), (0, I.useMemo)(() => PNe(t), [t, n]);}-var DMe = () => /* @__PURE__ */ (0, L.jsx)(U3, {- dataKey: E9,+var INe = () => /* @__PURE__ */ (0, L.jsx)(U3, {+ dataKey: D9,stroke: "currentColor",strokeOpacity: .3,strokeWidth: 2,@@ -70507,30 +71894,30 @@ var DMe = () => /* @__PURE__ */ (0, L.jsx)(U3, {fillOpacity: .1,dot: !1,isAnimationActive: !0,- animationDuration: T9,+ animationDuration: E9,animationEasing: "ease-in-out"});-k9.Radar = mMe, k9.Dot = A9, k9.ActiveDot = j9, k9.PolarGrid = hMe, k9.PolarAngleAxis = gMe, k9.PolarRadiusAxis = _Me, k9.Tooltip = vMe, k9.Legend = yMe;+A9.Radar = CNe, A9.Dot = j9, A9.ActiveDot = M9, A9.PolarGrid = wNe, A9.PolarAngleAxis = TNe, A9.PolarRadiusAxis = ENe, A9.Tooltip = DNe, A9.Legend = ONe;//#endregion//#region src/react/taste/charts.tsx-var OMe = [+var LNe = ["stroke-chart-1","stroke-chart-2","stroke-chart-3","stroke-chart-4","stroke-chart-5","stroke-chart-6"-], kMe = [+], RNe = ["fill-chart-1","fill-chart-2","fill-chart-3","fill-chart-4","fill-chart-5","fill-chart-6"-], N9 = { value: {+], P9 = { value: {label: "标签命中",- colors: T7(w7[3])-} }, AMe = [+ colors: E7(T7[3])+} }, zNe = ["min-h-24","min-h-24","min-h-24",@@ -70540,78 +71927,78 @@ var OMe = ["min-h-52","min-h-60","min-h-64"-], jMe = 26, MMe = { radius: N9.value }, NMe = (e, t) => Math.sqrt(e / t);-function PMe({ rows: e, label: t }) {- let n = cMe(e);+], BNe = 26, VNe = { radius: P9.value }, HNe = (e, t) => Math.sqrt(e / t);+function UNe({ rows: e, label: t }) {+ let n = _Ne(e);if (!n.length) return null;let r = n[0].value, i = n.map((e) => ({...e,- radius: NMe(e.value, r)+ radius: HNe(e.value, r)}));return /* @__PURE__ */ (0, L.jsx)("div", {role: "img","aria-label": `${t}:${i.map((e) => e.name).join(",")}`,- children: /* @__PURE__ */ (0, L.jsxs)(k9, {+ children: /* @__PURE__ */ (0, L.jsxs)(A9, {data: i,- config: MMe,+ config: VNe,chartProps: { outerRadius: "58%" },className: "aspect-auto h-70 text-text-secondary",children: [- /* @__PURE__ */ (0, L.jsx)(k9.PolarGrid, {}),- /* @__PURE__ */ (0, L.jsx)(k9.PolarAngleAxis, { dataKey: "name" }),- /* @__PURE__ */ (0, L.jsx)(k9.PolarRadiusAxis, {+ /* @__PURE__ */ (0, L.jsx)(A9.PolarGrid, {}),+ /* @__PURE__ */ (0, L.jsx)(A9.PolarAngleAxis, { dataKey: "name" }),+ /* @__PURE__ */ (0, L.jsx)(A9.PolarRadiusAxis, {domain: [0, 1],allowDecimals: !0,tick: !1}),- /* @__PURE__ */ (0, L.jsx)(k9.Radar, { dataKey: "radius" }),- /* @__PURE__ */ (0, L.jsx)(A7, { valueKey: "value" })+ /* @__PURE__ */ (0, L.jsx)(A9.Radar, { dataKey: "radius" }),+ /* @__PURE__ */ (0, L.jsx)(j7, { valueKey: "value" })]})});}-function FMe({ rows: e, label: t }) {- let n = v9(e, 8);+function WNe({ rows: e, label: t }) {+ let n = y9(e, 8);return n.length ? /* @__PURE__ */ (0, L.jsx)("section", {"aria-label": t,- className: `flex grow flex-col ${AMe[n.length]}`,- children: /* @__PURE__ */ (0, L.jsxs)(b7, {+ className: `flex grow flex-col ${zNe[n.length]}`,+ children: /* @__PURE__ */ (0, L.jsxs)(x7, {data: n,- config: N9,+ config: P9,layout: "horizontal",barRadius: 4,- chartProps: { maxBarSize: jMe },+ chartProps: { maxBarSize: BNe },className: "aspect-auto text-text-secondary",children: [- /* @__PURE__ */ (0, L.jsx)(b7.YAxis, {+ /* @__PURE__ */ (0, L.jsx)(x7.YAxis, {dataKey: "name",interval: 0}),- /* @__PURE__ */ (0, L.jsx)(b7.XAxis, {+ /* @__PURE__ */ (0, L.jsx)(x7.XAxis, {hide: !0,- domain: j7+ domain: M7}),- /* @__PURE__ */ (0, L.jsx)(b7.Bar, {+ /* @__PURE__ */ (0, L.jsx)(x7.Bar, {dataKey: "value",enableHoverHighlight: !0,barProps: {dataKey: "value",- label: M7("right")+ label: N7("right")}}),- /* @__PURE__ */ (0, L.jsx)(A7, {})+ /* @__PURE__ */ (0, L.jsx)(j7, {})]})}) : null;}-function IMe({ flows: e }) {- let [t, n] = (0, I.useState)(null), r = lMe(e);+function GNe({ flows: e }) {+ let [t, n] = (0, I.useState)(null), r = vNe(e);if (!r) return null;let i = t?.node ?? null, a = (e, n) => t ? i === null ? t.label === n : e.source === i || e.target === i : !0;return /* @__PURE__ */ (0, L.jsxs)("section", {- className: S7,+ className: C7,children: [- /* @__PURE__ */ (0, L.jsx)(C7, {+ /* @__PURE__ */ (0, L.jsx)(w7, {title: "创作者线索来源",figure: (t ? t.value : r.total).toLocaleString(),note: t ? t.label : "条线索"@@ -70619,7 +72006,7 @@ function IMe({ flows: e }) {/* @__PURE__ */ (0, L.jsx)("div", {className: "min-w-0 overflow-x-auto",children: /* @__PURE__ */ (0, L.jsxs)("svg", {- viewBox: `0 0 ${y9.width} ${y9.height}`,+ viewBox: `0 0 ${b9.width} ${b9.height}`,fill: "none",role: "img","aria-label": "来源网站与创作者线索",@@ -70633,7 +72020,7 @@ function IMe({ flows: e }) {"aria-label": `${e.label}:${e.value} 条线索`,fillOpacity: 0,strokeOpacity: a(e, e.label) ? .55 : .08,- className: `outline-none transition-opacity ${OMe[e.color]}`,+ className: `outline-none transition-opacity ${LNe[e.color]}`,onPointerEnter: () => n({value: e.value,label: e.label,@@ -70667,15 +72054,15 @@ function IMe({ flows: e }) {width: 10,height: e.height,rx: 5,- className: e.side === "source" ? kMe[e.color] : "fill-text-secondary"+ className: e.side === "source" ? RNe[e.color] : "fill-text-secondary"}), /* @__PURE__ */ (0, L.jsxs)("text", {- x: b9[e.side],+ x: x9[e.side],y: e.y + e.height / 2,textAnchor: e.side === "source" ? "end" : "start",dominantBaseline: "middle",className: "fill-text-secondary text-caption-1-regular",- children: [uMe(e.name), /* @__PURE__ */ (0, L.jsx)("tspan", {- x: b9[e.side],+ children: [yNe(e.name), /* @__PURE__ */ (0, L.jsx)("tspan", {+ x: x9[e.side],dy: 15,children: e.side === "source" ? e.value.toLocaleString() : `${e.share.toFixed(1)}%`})]@@ -70692,11 +72079,11 @@ function IMe({ flows: e }) {}//#endregion//#region src/react/taste/taste-page.tsx-var LMe = 10, P9 = _w(wA, TA, "text-body-2-medium"), F9 = `${Nw()} flex flex-col gap-4`, I9 = "rounded-xl bg-background-primary-default p-3", RMe = "读取运行 Peach 的这台电脑上的浏览记录", zMe = "导入或读取浏览记录后,这里会列出已采集设备。", BMe = "馆藏里暂时没有对得上浏览信号的标签。", VMe = "采集浏览记录后,这里会显示聚合后的口味证据。", HMe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", UMe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", WMe = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", GMe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", KMe = "这个数据源将不再用于口味分析。原始导出文件保留。", L9 = "peach-taste-guide-dismissed";-function R9({ icon: e, term: t, figure: n, detail: r, accent: i }) {+var KNe = 10, F9 = XC(cA, lA, "text-body-2-medium"), I9 = `${aw()} flex flex-col gap-4`, L9 = "rounded-xl bg-background-primary-default p-3", qNe = "读取运行 Peach 的这台电脑上的浏览记录", JNe = "导入或读取浏览记录后,这里会列出已采集设备。", YNe = "馆藏里暂时没有对得上浏览信号的标签。", XNe = "采集浏览记录后,这里会显示聚合后的口味证据。", ZNe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", QNe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", $Ne = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", ePe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", tPe = "这个数据源将不再用于口味分析。原始导出文件保留。", R9 = "peach-taste-guide-dismissed";+function z9({ icon: e, term: t, figure: n, detail: r, accent: i }) {return /* @__PURE__ */ (0, L.jsx)("div", {- className: gA(),- children: /* @__PURE__ */ (0, L.jsx)(bA, {+ className: vD(),+ children: /* @__PURE__ */ (0, L.jsx)(SD, {label: t,icon: e,accent: i,@@ -70705,7 +72092,7 @@ function R9({ icon: e, term: t, figure: n, detail: r, accent: i }) {})});}-function z9({ name: e, domain: t }) {+function B9({ name: e, domain: t }) {return /* @__PURE__ */ (0, L.jsxs)("span", {className: "relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-lg bg-background-tertiary-default text-caption-1-medium text-text-secondary",children: [e.slice(0, 1).toUpperCase(), /* @__PURE__ */ (0, L.jsx)("img", {@@ -70719,22 +72106,22 @@ function z9({ name: e, domain: t }) {})]});}-function qMe({ html: e }) {+function nPe({ html: e }) {return /* @__PURE__ */ (0, L.jsx)("span", {- className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-medium text-text-secondary ${oL}`,+ className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-medium text-text-secondary ${mL}`,dangerouslySetInnerHTML: { __html: e }});}-function JMe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a }) {- if (!e.length) return /* @__PURE__ */ (0, L.jsx)(Fw, {+function rPe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a }) {+ if (!e.length) return /* @__PURE__ */ (0, L.jsx)(ow, {shell: "plain",- icon: kS,+ icon: QS,title: "暂无足够证据",children: r});- let o = sMe(e);- return /* @__PURE__ */ (0, L.jsx)(V7, {- previewCount: LMe,+ let o = gNe(e);+ return /* @__PURE__ */ (0, L.jsx)(H7, {+ previewCount: KNe,className: "inline-grid w-full gap-x-7 gap-y-2 sm:grid-cols-2",children: e.map((e, r) => {let s = !!t && !!e.peach_items, c = String(e.source_domain || ""), l = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [@@ -70753,15 +72140,15 @@ function JMe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner:className: "w-6 shrink-0 text-caption-1-regular tabular-nums text-text-secondary",children: r + 1}),- n === "domain" ? /* @__PURE__ */ (0, L.jsx)(z9, {+ n === "domain" ? /* @__PURE__ */ (0, L.jsx)(B9, {name: e.name,domain: e.name}) : null,- n === "creator" && !e.entity_id && !e.has_avatar && c ? /* @__PURE__ */ (0, L.jsx)(z9, {+ n === "creator" && !e.entity_id && !e.has_avatar && c ? /* @__PURE__ */ (0, L.jsx)(B9, {name: e.name,domain: c}) : null,- n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !c) ? /* @__PURE__ */ (0, L.jsx)(qMe, { html: a(e.name, e.entity_id ? {+ n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !c) ? /* @__PURE__ */ (0, L.jsx)(nPe, { html: a(e.name, e.entity_id ? {id: e.entity_id,has_image: !!e.has_image,avatar_focus: e.avatar_focus@@ -70773,10 +72160,10 @@ function JMe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner:children: e.name}), /* @__PURE__ */ (0, L.jsx)("small", {className: "text-caption-1-regular text-text-secondary",- children: oMe(e)+ children: hNe(e)})]}),- s ? /* @__PURE__ */ (0, L.jsx)(sS, {+ s ? /* @__PURE__ */ (0, L.jsx)(DS, {"aria-hidden": !0,className: "size-4 shrink-0 text-text-tertiary"}) : null@@ -70796,24 +72183,24 @@ function JMe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner:})});}-function B9({ label: e, panels: t, onSignal: n, avatarInner: r }) {- return /* @__PURE__ */ (0, L.jsxs)(rO, {- className: `${Nw({ padding: "none" })} flex flex-col`,+function V9({ label: e, panels: t, onSignal: n, avatarInner: r }) {+ return /* @__PURE__ */ (0, L.jsxs)(tA, {+ className: `${aw({ padding: "none" })} flex flex-col`,children: [/* @__PURE__ */ (0, L.jsx)("div", {className: "px-4 pt-3",- children: /* @__PURE__ */ (0, L.jsx)(iO, {+ children: /* @__PURE__ */ (0, L.jsx)(nA, {"aria-label": e,- className: IM,- children: t.map((e) => /* @__PURE__ */ (0, L.jsx)(aO, {+ className: xN,+ children: t.map((e) => /* @__PURE__ */ (0, L.jsx)(rA, {id: e.id,- className: LM,+ className: SN,children: e.name}, e.id))})- }), t.map((e) => /* @__PURE__ */ (0, L.jsx)(oO, {+ }), t.map((e) => /* @__PURE__ */ (0, L.jsx)(iA, {id: e.id,className: "px-4 pt-3.5 pb-4",- children: /* @__PURE__ */ (0, L.jsx)(JMe, {+ children: /* @__PURE__ */ (0, L.jsx)(rPe, {...e.props,onSignal: n,avatarInner: r@@ -70821,7 +72208,7 @@ function B9({ label: e, panels: t, onSignal: n, avatarInner: r }) {}, e.id))]});}-function YMe({ data: e, onSignal: t, navigate: n }) {+function iPe({ data: e, onSignal: t, navigate: n }) {let r = e.analysis;if (!r?.headline) return null;let i = r.confidence || {}, a = [...(r.explore || []).map((e) => ({@@ -70836,7 +72223,7 @@ function YMe({ data: e, onSignal: t, navigate: n }) {act: () => n(e.route)}))];return /* @__PURE__ */ (0, L.jsxs)("section", {- className: F9,+ className: I9,"aria-label": "口味总结",children: [/* @__PURE__ */ (0, L.jsxs)("header", {@@ -70862,7 +72249,7 @@ function YMe({ data: e, onSignal: t, navigate: n }) {r.points?.length ? /* @__PURE__ */ (0, L.jsx)("div", {className: "inline-grid w-full gap-3 sm:grid-cols-2",children: r.points.map((e) => /* @__PURE__ */ (0, L.jsxs)("div", {- className: `flex min-w-0 flex-col gap-1 ${I9}`,+ className: `flex min-w-0 flex-col gap-1 ${L9}`,children: [/* @__PURE__ */ (0, L.jsx)("span", {className: "text-caption-1-regular text-text-secondary",children: e.label@@ -70877,7 +72264,7 @@ function YMe({ data: e, onSignal: t, navigate: n }) {children: a.map((e) => /* @__PURE__ */ (0, L.jsxs)("button", {type: "button",onClick: e.act,- className: `flex w-full min-w-0 cursor-pointer items-center gap-3 ${I9} text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`,+ className: `flex w-full min-w-0 cursor-pointer items-center gap-3 ${L9} text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`,children: [/* @__PURE__ */ (0, L.jsxs)("span", {className: "flex min-w-0 grow flex-col gap-1",children: [/* @__PURE__ */ (0, L.jsx)("b", {@@ -70887,44 +72274,44 @@ function YMe({ data: e, onSignal: t, navigate: n }) {className: "text-caption-1-regular text-text-secondary",children: e.detail})]- }), /* @__PURE__ */ (0, L.jsx)(sS, {+ }), /* @__PURE__ */ (0, L.jsx)(DS, {"aria-hidden": !0,className: "size-4 shrink-0 text-text-tertiary"})]}, e.key))- }) : /* @__PURE__ */ (0, L.jsx)(Fw, {+ }) : /* @__PURE__ */ (0, L.jsx)(ow, {shell: "plain",- icon: kS,+ icon: QS,title: "还没有可探索的入口",- children: BMe+ children: YNe})]});}-function XMe({ onboarding: e, done: t }) {+function aPe({ onboarding: e, done: t }) {let [n, r] = (0, I.useState)(() => {try {- return localStorage.getItem(L9) === "1";+ return localStorage.getItem(R9) === "1";} catch {return !1;}});return t || n ? null : /* @__PURE__ */ (0, L.jsx)("div", {- className: Nw({+ className: aw({padding: "none",className: "p-4"}),- children: /* @__PURE__ */ (0, L.jsxs)(WA, {+ children: /* @__PURE__ */ (0, L.jsxs)(MA, {summary: "浏览器历史记录导入指南",defaultOpen: e,children: [/* @__PURE__ */ (0, L.jsx)("p", {className: "text-body-2-regular text-text-secondary",- children: UMe+ children: QNe}),/* @__PURE__ */ (0, L.jsx)("p", {className: "text-body-2-regular text-text-secondary",- children: WMe+ children: $Ne}),/* @__PURE__ */ (0, L.jsxs)("ul", {className: "flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary",@@ -70954,7 +72341,7 @@ function XMe({ onboarding: e, done: t }) {}),/* @__PURE__ */ (0, L.jsx)("p", {className: "text-body-2-regular text-text-secondary",- children: GMe+ children: ePe}),/* @__PURE__ */ (0, L.jsx)("span", {className: "self-start",@@ -70963,7 +72350,7 @@ function XMe({ onboarding: e, done: t }) {size: "small",onClick: () => {try {- localStorage.setItem(L9, "1");+ localStorage.setItem(R9, "1");} catch {}r(!0);},@@ -70974,7 +72361,7 @@ function XMe({ onboarding: e, done: t }) {})});}-function ZMe({ busy: e, onRefresh: t, onImport: n }) {+function oPe({ busy: e, onRefresh: t, onImport: n }) {let r = (0, I.useRef)(null), [i, a] = (0, I.useState)(!1), o = (e) => {a(!1), e();};@@ -70983,43 +72370,43 @@ function ZMe({ busy: e, onRefresh: t, onImport: n }) {"data-split-button": !0,"data-variant": "primary",children: [/* @__PURE__ */ (0, L.jsx)(G, {- leadingIcon: dS,- title: RMe,+ leadingIcon: NS,+ title: qNe,onClick: t,...Y(e),children: "读取浏览器历史"}), /* @__PURE__ */ (0, L.jsx)(G, {ref: r,iconOnly: !0,- leadingIcon: aS,+ leadingIcon: TS,"aria-label": "更多取得浏览记录的方式","aria-haspopup": "dialog","aria-expanded": i,onClick: () => a(!0)})]- }), /* @__PURE__ */ (0, L.jsx)(uD, {+ }), /* @__PURE__ */ (0, L.jsx)(ck, {triggerRef: r,isOpen: i,onOpenChange: a,placement: "bottom end",offset: 4,- className: CA,- children: /* @__PURE__ */ (0, L.jsxs)(xD, {+ className: sA,+ children: /* @__PURE__ */ (0, L.jsxs)(yk, {"aria-label": "更多取得浏览记录的方式",className: "flex w-52 flex-col gap-1 outline-none",children: [/* @__PURE__ */ (0, L.jsxs)("button", {type: "button",- className: P9,+ className: F9,onClick: () => o(t),- children: [/* @__PURE__ */ (0, L.jsx)(dS, {+ children: [/* @__PURE__ */ (0, L.jsx)(NS, {"aria-hidden": !0,className: "size-4 shrink-0"}), "读取浏览器历史"]}), /* @__PURE__ */ (0, L.jsxs)("button", {type: "button",- className: P9,+ className: F9,onClick: () => o(n),- children: [/* @__PURE__ */ (0, L.jsx)(NS, {+ children: [/* @__PURE__ */ (0, L.jsx)(nC, {"aria-hidden": !0,className: "size-4 shrink-0"}), "导入历史文件"]@@ -71027,15 +72414,15 @@ function ZMe({ busy: e, onRefresh: t, onImport: n }) {})})] });}-function QMe({ sources: e, window: t, toast: n }) {- let r = Pt({- mutationFn: (e) => tMe(e, t),+function sPe({ sources: e, window: t, toast: n }) {+ let r = It({+ mutationFn: (e) => uNe(e, t),onSuccess: (e) => {- X.setQueryData(h9(t), e.dashboard), n("已移除口味数据源");+ X.setQueryData(g9(t), e.dashboard), n("已移除口味数据源");}});return /* @__PURE__ */ (0, L.jsxs)("section", {- className: F9,+ className: I9,"aria-label": "数据源",children: [/* @__PURE__ */ (0, L.jsx)("h3", {@@ -71049,14 +72436,14 @@ function QMe({ sources: e, window: t, toast: n }) {e.length ? /* @__PURE__ */ (0, L.jsx)("div", {className: "inline-grid w-full gap-2 sm:grid-cols-2",children: e.map((e) => /* @__PURE__ */ (0, L.jsxs)("div", {- className: `flex min-w-0 items-center gap-3 ${I9}`,+ className: `flex min-w-0 items-center gap-3 ${L9}`,children: [/* @__PURE__ */ (0, L.jsx)("span", {className: "inline-grid size-8 shrink-0 place-items-center rounded-lg text-text-secondary",- children: e.browser === "browserexport" ? /* @__PURE__ */ (0, L.jsx)(NS, {+ children: e.browser === "browserexport" ? /* @__PURE__ */ (0, L.jsx)(nC, {"aria-hidden": !0,className: "size-4"- }) : /* @__PURE__ */ (0, L.jsx)(fS, {+ }) : /* @__PURE__ */ (0, L.jsx)(PS, {"aria-hidden": !0,className: "size-4"})@@ -71076,12 +72463,12 @@ function QMe({ sources: e, window: t, toast: n }) {size: "small","aria-label": `移除 ${e.profile}`,iconOnly: !0,- leadingIcon: pS,+ leadingIcon: FS,...Y(r.isPending),onClick: () => {r.isPending || g({title: "移除口味数据源",- body: KMe,+ body: tPe,confirmLabel: "移除口味数据源",onConfirm: () => r.mutateAsync(e.source_key)});@@ -71089,32 +72476,32 @@ function QMe({ sources: e, window: t, toast: n }) {})]}, e.source_key))- }) : /* @__PURE__ */ (0, L.jsx)(Fw, {+ }) : /* @__PURE__ */ (0, L.jsx)(ow, {shell: "plain",- icon: fS,+ icon: PS,title: "还没有数据源",- children: zMe+ children: JNe})]});}-function $Me(e) {- let { onSignal: t, navigate: n, toast: r, avatarInner: i, onboarding: o } = e, [s, c] = (0, I.useState)("all"), [l, u] = (0, I.useState)("browser"), d = (0, I.useRef)(null), f = Nt({- queryKey: h9(s),- queryFn: ({ signal: e }) => g9(s, e),- placeholderData: Me- }), { job: p, running: m, outcome: h, start: g } = fj({- queryKey: Xje,- queryFn: ({ signal: e }) => Qje(e),- start: () => eMe(s),- idlePollMs: rMe,+function cPe(e) {+ let { onSignal: t, navigate: n, toast: r, avatarInner: i, onboarding: o } = e, [s, c] = (0, I.useState)("all"), [l, u] = (0, I.useState)("browser"), d = (0, I.useRef)(null), f = Ft({+ queryKey: g9(s),+ queryFn: ({ signal: e }) => _9(s, e),+ placeholderData: Pe+ }), { job: p, running: m, outcome: h, start: g } = ej({+ queryKey: aNe,+ queryFn: ({ signal: e }) => sNe(e),+ start: () => lNe(s),+ idlePollMs: fNe,onFinish: (e) => {e.status !== "failed" && (X.invalidateQueries({ queryKey: ["taste"] }), r("已更新口味分析"));}- }), _ = Pt({- mutationFn: (e) => nMe(e),+ }), _ = It({+ mutationFn: (e) => dNe(e),onSuccess: (e) => {- X.setQueryData(h9("all"), e.dashboard), c("all"), r("已导入口味数据");+ X.setQueryData(g9("all"), e.dashboard), c("all"), r("已导入口味数据");}}), v = (e) => {let t = e.currentTarget.files?.[0];@@ -71122,47 +72509,47 @@ function $Me(e) {}, y = () => {m || g.isPending || (g.reset(), g.mutate());}, b = f.data;- if (!b) return /* @__PURE__ */ (0, L.jsx)(Lw, { children: /* @__PURE__ */ (0, L.jsx)(J, {+ if (!b) return /* @__PURE__ */ (0, L.jsx)(cw, { children: /* @__PURE__ */ (0, L.jsx)(J, {tone: "error",title: "读取失败",children: f.error ? K(f.error) : "读取口味分析失败"}) });let x = b.summary || {}, S = b.coverage || {}, C = b.rankings || {}, w = b.storage || {}, T = C.browser_categories || [], E = b.gaps || [], D = S.tagged || 0, O = S.identified || 0, k = g.error ? K(g.error) : _.error ? K(_.error) : h?.status === "failed" ? h.error || "读取未取得" : "";- return /* @__PURE__ */ (0, L.jsxs)(Lw, { children: [- /* @__PURE__ */ (0, L.jsxs)(rO, {+ return /* @__PURE__ */ (0, L.jsxs)(cw, { children: [+ /* @__PURE__ */ (0, L.jsxs)(tA, {selectedKey: l,onSelectionChange: (e) => u(String(e)),className: "flex flex-col gap-5",children: [/* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-wrap items-center justify-between gap-3",- children: [/* @__PURE__ */ (0, L.jsxs)(iO, {+ children: [/* @__PURE__ */ (0, L.jsxs)(nA, {"aria-label": "口味证据来源",- className: IM,- children: [/* @__PURE__ */ (0, L.jsx)(aO, {+ className: xN,+ children: [/* @__PURE__ */ (0, L.jsx)(rA, {id: "browser",- className: LM,+ className: SN,children: "浏览器记录"- }), /* @__PURE__ */ (0, L.jsx)(aO, {+ }), /* @__PURE__ */ (0, L.jsx)(rA, {id: "peach",- className: LM,+ className: SN,children: "Peach 内部"})]}), /* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-wrap items-center gap-2",children: [- /* @__PURE__ */ (0, L.jsx)(sj, {+ /* @__PURE__ */ (0, L.jsx)(YA, {"aria-label": "分析范围",selectedKey: s,onSelectionChange: (e) => {e !== null && c(String(e));},- children: Zje.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(cj, {+ children: oNe.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(XA, {id: e,children: t}, e))}),- /* @__PURE__ */ (0, L.jsx)(ZMe, {+ /* @__PURE__ */ (0, L.jsx)(oPe, {busy: m || g.isPending || _.isPending,onRefresh: y,onImport: () => d.current?.click()@@ -71178,7 +72565,7 @@ function $Me(e) {]})]}),- /* @__PURE__ */ (0, L.jsx)(XMe, {+ /* @__PURE__ */ (0, L.jsx)(aPe, {onboarding: o,done: !!(x.history_sources || b.updated_at)}),@@ -71188,7 +72575,7 @@ function $Me(e) {children: [m ? p?.total ? /* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-col gap-1.5",- children: [/* @__PURE__ */ (0, L.jsx)(zw, {+ children: [/* @__PURE__ */ (0, L.jsx)(uw, {label: p.message || "正在读取浏览记录",value: p.checked || 0,max: p.total@@ -71196,44 +72583,44 @@ function $Me(e) {className: "text-caption-1-regular text-text-secondary",children: `${p.message || "正在读取浏览记录"} · ${p.checked || 0} / ${p.total}`})]- }) : /* @__PURE__ */ (0, L.jsx)(Iw, { label: p?.message || "正在读取浏览记录并更新口味分析" }) : null,- _.isPending ? /* @__PURE__ */ (0, L.jsx)(Iw, { label: "正在导入历史文件" }) : null,+ }) : /* @__PURE__ */ (0, L.jsx)(sw, { label: p?.message || "正在读取浏览记录并更新口味分析" }) : null,+ _.isPending ? /* @__PURE__ */ (0, L.jsx)(sw, { label: "正在导入历史文件" }) : null,k ? /* @__PURE__ */ (0, L.jsx)(J, {tone: "error",children: k}) : null]}),- /* @__PURE__ */ (0, L.jsxs)(oO, {+ /* @__PURE__ */ (0, L.jsxs)(iA, {id: "browser",className: "flex flex-col gap-5",children: [/* @__PURE__ */ (0, L.jsxs)("div", {- className: _A,+ className: yD,children: [- /* @__PURE__ */ (0, L.jsx)(R9, {+ /* @__PURE__ */ (0, L.jsx)(z9, {accent: 0,- icon: yS,+ icon: HS,term: "浏览记录",figure: Number(x.history_visits || 0).toLocaleString(),- detail: `${x.history_sources || 0} 个数据源 · ${_9(x.range_start)}—${_9(x.range_end)}`+ detail: `${x.history_sources || 0} 个数据源 · ${v9(x.range_start)}—${v9(x.range_end)}`}),- /* @__PURE__ */ (0, L.jsx)(R9, {+ /* @__PURE__ */ (0, L.jsx)(z9, {accent: 1,- icon: ES,+ icon: YS,term: "口味维度",figure: T.length.toLocaleString(),detail: T[0]?.name || "尚无主维度"}),- /* @__PURE__ */ (0, L.jsx)(R9, {+ /* @__PURE__ */ (0, L.jsx)(z9, {accent: 2,- icon: kS,+ icon: QS,term: "浏览候选",figure: E.length.toLocaleString()}),- /* @__PURE__ */ (0, L.jsx)(R9, {+ /* @__PURE__ */ (0, L.jsx)(z9, {accent: 3,- icon: fS,+ icon: PS,term: "私有导出",figure: Number(w.exports || 0).toLocaleString(),detail: a(w.bytes || 0)@@ -71241,7 +72628,7 @@ function $Me(e) {]}),/* @__PURE__ */ (0, L.jsxs)("section", {- className: `${F9} md:flex-row md:gap-6`,+ className: `${I9} md:flex-row md:gap-6`,"aria-label": "浏览器画像",children: [/* @__PURE__ */ (0, L.jsxs)("div", {className: "flex shrink-0 flex-col gap-2 pb-5 md:w-80 md:pr-6 md:pb-0",@@ -71250,29 +72637,29 @@ function $Me(e) {className: "text-caption-1-regular text-text-secondary",children: "浏览器画像"}),- /* @__PURE__ */ (0, L.jsx)(PMe, {+ /* @__PURE__ */ (0, L.jsx)(UNe, {rows: T,label: "主要口味维度"}),/* @__PURE__ */ (0, L.jsx)("small", {className: "text-caption-1-regular text-text-secondary",- children: b.updated_at ? `更新于 ${_9(b.updated_at)}` : "尚未采集浏览记录"+ children: b.updated_at ? `更新于 ${v9(b.updated_at)}` : "尚未采集浏览记录"})]}), /* @__PURE__ */ (0, L.jsx)("div", {className: "flex min-w-0 grow flex-col",- children: T.length ? /* @__PURE__ */ (0, L.jsx)(FMe, {+ children: T.length ? /* @__PURE__ */ (0, L.jsx)(WNe, {rows: T,label: "口味维度排名"- }) : /* @__PURE__ */ (0, L.jsx)(Fw, {+ }) : /* @__PURE__ */ (0, L.jsx)(ow, {shell: "plain",- icon: kS,+ icon: QS,title: "暂无口味维度",- children: VMe+ children: XNe})})]}),- /* @__PURE__ */ (0, L.jsx)(B7, {+ /* @__PURE__ */ (0, L.jsx)(V7, {activity: b.activity,title: "浏览活跃时间",dailyTitle: "每日活跃",@@ -71284,8 +72671,8 @@ function $Me(e) {tone: 4,empty: "还没有可用于分析的口味网站访问记录。"}),- /* @__PURE__ */ (0, L.jsx)(IMe, { flows: b.creator_flows }),- /* @__PURE__ */ (0, L.jsx)(B9, {+ /* @__PURE__ */ (0, L.jsx)(GNe, { flows: b.creator_flows }),+ /* @__PURE__ */ (0, L.jsx)(V9, {label: "浏览器口味维度",onSignal: t,avatarInner: i,@@ -71327,49 +72714,49 @@ function $Me(e) {rows: E,kind: "",visual: "none",- empty: HMe+ empty: ZNe}}]})]}),- /* @__PURE__ */ (0, L.jsxs)(oO, {+ /* @__PURE__ */ (0, L.jsxs)(iA, {id: "peach",className: "flex flex-col gap-5",children: [/* @__PURE__ */ (0, L.jsxs)("div", {- className: _A,+ className: yD,children: [- /* @__PURE__ */ (0, L.jsx)(R9, {+ /* @__PURE__ */ (0, L.jsx)(z9, {accent: 0,- icon: hS,+ icon: RS,term: "Peach 看过",figure: Number(x.peach_items || 0).toLocaleString(),- detail: iMe(x.peach_seconds || 0)+ detail: pNe(x.peach_seconds || 0)}),- /* @__PURE__ */ (0, L.jsx)(R9, {+ /* @__PURE__ */ (0, L.jsx)(z9, {accent: 1,- icon: MS,+ icon: tC,term: "喜欢",figure: Number(x.liked || 0).toLocaleString()}),- /* @__PURE__ */ (0, L.jsx)(R9, {+ /* @__PURE__ */ (0, L.jsx)(z9, {accent: 2,- icon: jS,+ icon: eC,term: "不合口味",figure: Number(x.disliked || 0).toLocaleString()}),- /* @__PURE__ */ (0, L.jsx)(R9, {+ /* @__PURE__ */ (0, L.jsx)(z9, {accent: 3,- icon: ES,+ icon: YS,term: "有标签",figure: D.toLocaleString()})]}),/* @__PURE__ */ (0, L.jsxs)("section", {- className: `${F9} md:flex-row md:gap-6`,+ className: `${I9} md:flex-row md:gap-6`,"aria-label": "Peach 观看",children: [/* @__PURE__ */ (0, L.jsxs)("div", {className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-72 md:pr-6 md:pb-0",@@ -71389,18 +72776,18 @@ function $Me(e) {]}), /* @__PURE__ */ (0, L.jsxs)("div", {className: "flex min-w-0 grow flex-col",- children: [/* @__PURE__ */ (0, L.jsx)(V9, {+ children: [/* @__PURE__ */ (0, L.jsx)(H9, {term: "有标签",value: D,rest: S.untagged || 0- }), /* @__PURE__ */ (0, L.jsx)(V9, {+ }), /* @__PURE__ */ (0, L.jsx)(H9, {term: "有身份",value: O,rest: S.unidentified || 0})]})]}),- /* @__PURE__ */ (0, L.jsx)(B9, {+ /* @__PURE__ */ (0, L.jsx)(V9, {label: "Peach 口味维度",onSignal: t,avatarInner: i,@@ -71441,19 +72828,19 @@ function $Me(e) {})]}),- /* @__PURE__ */ (0, L.jsx)(YMe, {+ /* @__PURE__ */ (0, L.jsx)(iPe, {data: b,onSignal: t,navigate: n}),- /* @__PURE__ */ (0, L.jsx)(QMe, {+ /* @__PURE__ */ (0, L.jsx)(sPe, {sources: b.sources || [],window: s,toast: r})] });}-function V9({ term: e, value: t, rest: n }) {+function H9({ term: e, value: t, rest: n }) {let r = Math.max(t + n, 1);return /* @__PURE__ */ (0, L.jsxs)("div", {className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",@@ -71466,7 +72853,7 @@ function V9({ term: e, value: t, rest: n }) {children: `${n} 项待补`})]})]- }), /* @__PURE__ */ (0, L.jsx)(zw, {+ }), /* @__PURE__ */ (0, L.jsx)(uw, {label: `${e}:${t.toLocaleString()} / ${r.toLocaleString()}`,value: t,max: r@@ -71475,26 +72862,26 @@ function V9({ term: e, value: t, rest: n }) {}//#endregion//#region node_modules/sonner/dist/index.mjs-function eNe(e) {+function lPe(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 tNe = (e) => {+var uPe = (e) => {switch (e) {- case "success": return H9;- case "info": return aNe;- case "warning": return iNe;- case "error": return oNe;+ case "success": return pPe;+ case "info": return hPe;+ case "warning": return mPe;+ case "error": return gPe;default: return null;}-}, nNe = Array(12).fill(0), rNe = ({ visible: e, className: t }) => /*#__PURE__*/ I.createElement("div", {+}, dPe = Array(12).fill(0), fPe = ({ visible: e, className: t }) => /*#__PURE__*/ I.createElement("div", {className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),"data-visible": e-}, /*#__PURE__*/ I.createElement("div", { className: "sonner-spinner" }, nNe.map((e, t) => /*#__PURE__*/ I.createElement("div", {+}, /*#__PURE__*/ I.createElement("div", { className: "sonner-spinner" }, dPe.map((e, t) => /*#__PURE__*/ I.createElement("div", {className: "sonner-loading-bar",key: `spinner-bar-${t}`-})))), H9 = /*#__PURE__*/ I.createElement("svg", {+})))), pPe = /*#__PURE__*/ I.createElement("svg", {xmlns: "http://www.w3.org/2000/svg",viewBox: "0 0 20 20",fill: "currentColor",@@ -71505,7 +72892,7 @@ var tNe = (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"-})), iNe = /*#__PURE__*/ I.createElement("svg", {+})), mPe = /*#__PURE__*/ I.createElement("svg", {xmlns: "http://www.w3.org/2000/svg",viewBox: "0 0 24 24",fill: "currentColor",@@ -71516,7 +72903,7 @@ var tNe = (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"-})), aNe = /*#__PURE__*/ I.createElement("svg", {+})), hPe = /*#__PURE__*/ I.createElement("svg", {xmlns: "http://www.w3.org/2000/svg",viewBox: "0 0 20 20",fill: "currentColor",@@ -71527,7 +72914,7 @@ var tNe = (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"-})), oNe = /*#__PURE__*/ I.createElement("svg", {+})), gPe = /*#__PURE__*/ I.createElement("svg", {xmlns: "http://www.w3.org/2000/svg",viewBox: "0 0 20 20",fill: "currentColor",@@ -71538,7 +72925,7 @@ var tNe = (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"-})), sNe = /*#__PURE__*/ I.createElement("svg", {+})), _Pe = /*#__PURE__*/ I.createElement("svg", {xmlns: "http://www.w3.org/2000/svg",width: "12",height: "12",@@ -71559,7 +72946,7 @@ var tNe = (e) => {y1: "6",x2: "18",y2: "18"-})), cNe = () => {+})), vPe = () => {let [e, t] = I.useState(document.hidden);return I.useEffect(() => {let e = () => {@@ -71567,7 +72954,7 @@ var tNe = (e) => {};return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);}, []), e;-}, lNe = 1, uNe = 100, U9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : lNe++, W9 = new class {+}, yPe = 1, bPe = 100, U9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : yPe++, W9 = new class {constructor() {this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {let t = this.subscribers.indexOf(e);@@ -71577,7 +72964,7 @@ var tNe = (e) => {}, this.addToast = (e) => {this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();}, this.trimHistory = () => {- let e = this.toasts.length - uNe;+ let e = this.toasts.length - bPe;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 = U9(e), i = this.pendingDismissals.get(r);@@ -71655,7 +73042,7 @@ var tNe = (e) => {type: "default",message: e});- else if (fNe(e) && !e.ok) {+ else if (SPe(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" && !I.isValidElement(r) ? r : { message: r };this.create({@@ -71708,7 +73095,7 @@ var tNe = (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();}-}(), dNe = (e, t) => W9.message(e, t), fNe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", G9 = Object.assign(dNe, {+}(), xPe = (e, t) => W9.message(e, t), SPe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", G9 = Object.assign(xPe, {success: W9.success,info: W9.info,warning: W9.warning,@@ -71722,26 +73109,26 @@ var tNe = (e) => {getHistory: () => W9.toasts,getToasts: () => W9.getActiveToasts()});-eNe("[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%)}");+lPe("[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 K9(e) {return e.label !== void 0;}-var pNe = 3, mNe = "24px", hNe = "16px", q9 = 4e3, gNe = 356, _Ne = 14, vNe = 45, yNe = 200;+var CPe = 3, wPe = "24px", TPe = "16px", q9 = 4e3, EPe = 356, DPe = 14, OPe = 45, kPe = 200;function J9(...e) {return e.filter(Boolean).join(" ");}-function bNe(e) {+function APe(e) {let [t, n] = e.split("-"), r = [];return t && r.push(t), n && r.push(n), r;}-var xNe = (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] = I.useState(null), [O, k] = I.useState(null), [A, j] = I.useState(!1), [M, N] = I.useState(!1), [P, ee] = I.useState(!1), [F, te] = I.useState(!1), [ne, re] = I.useState(!1), [ie, ae] = I.useState(0), [oe, se] = I.useState(0), ce = I.useRef(n.duration || y || q9), L = I.useRef(null), le = I.useRef(null), ue = c === 0, R = c + 1 <= o, z = n.type, de = z ?? "default", fe = n.dismissible !== !1, pe = n.className || "", me = n.descriptionClassName || "", he = I.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ge = I.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), _e = I.useMemo(() => n.duration || y || q9, [n.duration, y]), ve = I.useRef(0), ye = I.useRef(0), be = I.useRef(0), xe = I.useRef(null), [Se, Ce] = b.split("-"), we = I.useMemo(() => s.reduce((e, t, n) => n >= he ? e : e + t.height, 0), [s, he]), Te = cNe(), Ee = I.useMemo(() => e.swipeDirections ?? bNe(b), [e.swipeDirections, b]), De = n.invert || t, Oe = z === "loading";+var jPe = (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] = I.useState(null), [O, k] = I.useState(null), [A, j] = I.useState(!1), [M, N] = I.useState(!1), [ee, te] = I.useState(!1), [P, ne] = I.useState(!1), [F, re] = I.useState(!1), [ie, ae] = I.useState(0), [oe, se] = I.useState(0), ce = I.useRef(n.duration || y || q9), le = I.useRef(null), ue = I.useRef(null), L = c === 0, R = c + 1 <= o, z = n.type, de = z ?? "default", fe = n.dismissible !== !1, pe = n.className || "", me = n.descriptionClassName || "", he = I.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ge = I.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), _e = I.useMemo(() => n.duration || y || q9, [n.duration, y]), ve = I.useRef(0), ye = I.useRef(0), be = I.useRef(0), xe = I.useRef(null), [Se, Ce] = b.split("-"), we = I.useMemo(() => s.reduce((e, t, n) => n >= he ? e : e + t.height, 0), [s, he]), Te = vPe(), Ee = I.useMemo(() => e.swipeDirections ?? APe(b), [e.swipeDirections, b]), De = n.invert || t, Oe = z === "loading";ye.current = I.useMemo(() => he * x + we, [he, we]), I.useEffect(() => {ce.current = _e;}, [_e]), I.useEffect(() => {j(!0);}, []), I.useEffect(() => {- let e = le.current;+ let e = ue.current;if (e) {let t = e.getBoundingClientRect().height;return se(t), a((e) => [{@@ -71752,7 +73139,7 @@ var xNe = (e) => {}}, [a, n.id]), I.useLayoutEffect(() => {if (!A) return;- let e = le.current, t = e.style.height;+ let e = ue.current, t = e.style.height;e.style.height = "auto";let r = e.getBoundingClientRect().height;e.style.height = t, se(r), a((e) => e.find((e) => e.toastId === n.id) ? e.map((e) => e.toastId === n.id ? {@@ -71776,7 +73163,7 @@ var xNe = (e) => {let ke = I.useCallback(() => {N(!0), ae(ye.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {d(n);- }, yNe);+ }, kPe);}, [n,d,@@ -71809,33 +73196,33 @@ var xNe = (e) => {return w?.loading ? /*#__PURE__*/ I.createElement("div", {className: J9(C?.loader, n?.classNames?.loader, "sonner-loader"),"data-visible": z === "loading"- }, w.loading) : /*#__PURE__*/ I.createElement(rNe, {+ }, w.loading) : /*#__PURE__*/ I.createElement(fPe, {className: J9(C?.loader, n?.classNames?.loader),visible: z === "loading"});}- let je = n.icon || w?.[z] || tNe(z);+ let je = n.icon || w?.[z] || uPe(z);return /*#__PURE__*/ I.createElement("li", {tabIndex: 0,- ref: le,+ ref: ue,className: J9(_, pe, C?.toast, n?.classNames?.toast, C?.[de], n?.classNames?.[de]),"data-sonner-toast": "","data-rich-colors": n.richColors ?? f,"data-styled": !(n.jsx || n.unstyled || r),"data-mounted": A,"data-promise": !!n.promise,- "data-swiped": ne,+ "data-swiped": F,"data-removed": M,"data-visible": R,"data-y-position": Se,"data-x-position": Ce,"data-index": c,- "data-front": ue,- "data-swiping": P,+ "data-front": L,+ "data-swiping": ee,"data-dismissible": fe,"data-type": z,"data-invert": De,- "data-swipe-out": F,+ "data-swipe-out": P,"data-swipe-direction": O,"data-expanded": !!(u || S && A),"data-testid": n.testId,@@ -71849,24 +73236,24 @@ var xNe = (e) => {...n.style},onDragEnd: () => {- ee(!1), D(null), xe.current = null;+ te(!1), D(null), xe.current = null;},onPointerDown: (e) => {- e.button !== 2 && (Oe || !fe || (L.current = /* @__PURE__ */ new Date(), ae(ye.current), e.target.setPointerCapture(e.pointerId), e.target.tagName !== "BUTTON" && (ee(!0), xe.current = {+ e.button !== 2 && (Oe || !fe || (le.current = /* @__PURE__ */ new Date(), ae(ye.current), e.target.setPointerCapture(e.pointerId), e.target.tagName !== "BUTTON" && (te(!0), xe.current = {x: e.clientX,y: e.clientY})));},onPointerUp: () => {- if (F || !fe) return;+ if (P || !fe) return;xe.current = null;- let e = Number(le.current?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(le.current?.style.getPropertyValue("--swipe-amount-y").replace("px", "") || 0), r = (/* @__PURE__ */ new Date()).getTime() - L.current?.getTime(), i = E === "x" ? e : t, a = Math.abs(i) / r;- if ((E === "x" ? Ee.includes(e > 0 ? "right" : "left") : Ee.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= vNe || a > .11)) {- ae(ye.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), ke(), te(!0);+ 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" ? Ee.includes(e > 0 ? "right" : "left") : Ee.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= OPe || a > .11)) {+ ae(ye.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), ke(), ne(!0);return;}var o, s;- (o = le.current) == null || o.style.setProperty("--swipe-amount-x", "0px"), (s = le.current) == null || s.style.setProperty("--swipe-amount-y", "0px"), re(!1), ee(!1), D(null);+ (o = ue.current) == null || o.style.setProperty("--swipe-amount-x", "0px"), (s = ue.current) == null || s.style.setProperty("--swipe-amount-y", "0px"), re(!1), te(!1), D(null);},onPointerMove: (e) => {var t, n;@@ -71892,7 +73279,7 @@ var xNe = (e) => {a.x = Math.abs(e) < Math.abs(i) ? e : i;}}- (Math.abs(a.x) > 0 || Math.abs(a.y) > 0) && re(!0), (t = le.current) == null || t.style.setProperty("--swipe-amount-x", `${a.x}px`), (n = le.current) == null || n.style.setProperty("--swipe-amount-y", `${a.y}px`);+ (Math.abs(a.x) > 0 || Math.abs(a.y) > 0) && re(!0), (t = ue.current) == null || t.style.setProperty("--swipe-amount-x", `${a.x}px`), (n = ue.current) == null || n.style.setProperty("--swipe-amount-y", `${a.y}px`);}}, ge && !n.jsx && z !== "loading" ? /*#__PURE__*/ I.createElement("button", {"aria-label": T,@@ -71902,7 +73289,7 @@ var xNe = (e) => {ke(), n.onDismiss == null || n.onDismiss.call(n, n);},className: J9(C?.closeButton, n?.classNames?.closeButton)- }, w?.close ?? sNe) : null, (z || n.icon || n.promise) && n.icon !== null && (w?.[z] !== null || n.icon) ? /*#__PURE__*/ I.createElement("div", {+ }, w?.close ?? _Pe) : null, (z || n.icon || n.promise) && n.icon !== null && (w?.[z] !== null || n.icon) ? /*#__PURE__*/ I.createElement("div", {"data-icon": "",className: J9(C?.icon, n?.classNames?.icon)}, z === "loading" ? n.icon || Ae() : n.promise ? Ae() : null, z === "loading" ? null : je) : null, /*#__PURE__*/ I.createElement("div", {@@ -71937,10 +73324,10 @@ function Y9() {let e = document.documentElement.getAttribute("dir");return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;}-function SNe(e, t) {+function MPe(e, t) {let n = {};return [e, t].forEach((e, t) => {- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? hNe : mNe;+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? TPe : wPe;function o(e) {["top",@@ -71961,8 +73348,8 @@ function SNe(e, t) {}) : o(a);}), n;}-var CNe = /*#__PURE__*/ I.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 = pNe, toastOptions: g, dir: _ = Y9(), gap: v = _Ne, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = I.useState([]), w = I.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = I.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = I.useState([]), [O, k] = I.useState(!1), [A, j] = I.useState(!1), [M, N] = I.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), P = I.useRef(null), ee = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), F = I.useRef(null), te = I.useRef(!1), ne = I.useCallback((e) => {+var NPe = /*#__PURE__*/ I.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 = CPe, toastOptions: g, dir: _ = Y9(), gap: v = DPe, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = I.useState([]), w = I.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = I.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = I.useState([]), [O, k] = I.useState(!1), [A, j] = I.useState(!1), [M, N] = I.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), ee = I.useRef(null), te = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), P = I.useRef(null), ne = I.useRef(!1), F = I.useCallback((e) => {C((t) => (t.find((t) => t.id === e.id)?.delete || W9.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));}, []);return I.useEffect(() => W9.subscribe((e) => {@@ -71976,7 +73363,7 @@ var CNe = /*#__PURE__*/ I.forwardRef(function(e, t) {return;}setTimeout(() => {- Ch.flushSync(() => {+ Th.flushSync(() => {C((t) => {let n = t.findIndex((t) => t.id === e.id);return n === -1 ? [e, ...t] : [@@ -72016,18 +73403,18 @@ var CNe = /*#__PURE__*/ I.forwardRef(function(e, t) {let e = (e) => {if (a.length > 0 && a.every((t) => e[t] || e.code === t)) {var t;- k(!0), (t = P.current) == null || t.focus();+ k(!0), (t = ee.current) == null || t.focus();}- e.code === "Escape" && (document.activeElement === P.current || P.current?.contains(document.activeElement)) && k(!1);+ e.code === "Escape" && (document.activeElement === ee.current || ee.current?.contains(document.activeElement)) && k(!1);};return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);}, [a]), I.useEffect(() => {- if (P.current) return () => {- F.current && (F.current.focus({ preventScroll: !0 }), F.current = null, te.current = !1);+ if (ee.current) return () => {+ P.current && (P.current.focus({ preventScroll: !0 }), P.current = null, ne.current = !1);};- }, [P.current]), /*#__PURE__*/ I.createElement("section", {+ }, [ee.current]), /*#__PURE__*/ I.createElement("section", {ref: t,- "aria-label": b ?? `${x} ${ee}`,+ "aria-label": b ?? `${x} ${te}`,tabIndex: -1,"aria-live": "polite","aria-relevant": "additions text",@@ -72040,7 +73427,7 @@ var CNe = /*#__PURE__*/ I.forwardRef(function(e, t) {key: t,dir: _ === "auto" ? Y9() : _,tabIndex: -1,- ref: P,+ ref: ee,className: c,"data-sonner-toaster": !0,"data-sonner-theme": M,@@ -72048,16 +73435,16 @@ var CNe = /*#__PURE__*/ I.forwardRef(function(e, t) {"data-x-position": a,style: {"--front-toast-height": `${E[0]?.height || 0}px`,- "--width": `${gNe}px`,+ "--width": `${EPe}px`,"--gap": `${v}px`,...m,- ...SNe(l, u)+ ...MPe(l, u)},onBlur: (e) => {- te.current && !e.currentTarget.contains(e.relatedTarget) && (te.current = !1, F.current &&= (F.current.focus({ preventScroll: !0 }), null));+ ne.current && !e.currentTarget.contains(e.relatedTarget) && (ne.current = !1, P.current &&= (P.current.focus({ preventScroll: !0 }), null));},onFocus: (e) => {- e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || te.current || (te.current = !0, F.current = e.relatedTarget);+ e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || ne.current || (ne.current = !0, P.current = e.relatedTarget);},onMouseEnter: () => k(!0),onMouseMove: () => k(!0),@@ -72069,7 +73456,7 @@ var CNe = /*#__PURE__*/ I.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__*/ I.createElement(xNe, {+ }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ I.createElement(jPe, {key: n.id,icons: y,index: i,@@ -72089,7 +73476,7 @@ var CNe = /*#__PURE__*/ I.forwardRef(function(e, t) {cancelButtonStyle: g?.cancelButtonStyle,actionButtonStyle: g?.actionButtonStyle,closeButtonAriaLabel: g?.closeButtonAriaLabel,- removeToast: ne,+ removeToast: F,toasts: w.filter((e) => e.position == n.position),heights: E.filter((e) => e.position == n.position),setHeights: D,@@ -72103,8 +73490,8 @@ var CNe = /*#__PURE__*/ I.forwardRef(function(e, t) {"data-toast-glyph": t ? "draw" : "still","aria-hidden": "true",dangerouslySetInnerHTML: { __html: e }-}), Z9 = !1, wNe = (e, t) => {- Z9 || (Z9 = !0, (0, iS.createRoot)(e).render(/* @__PURE__ */ (0, L.jsx)(CNe, {+}), Z9 = !1, PPe = (e, t) => {+ Z9 || (Z9 = !0, (0, SS.createRoot)(e).render(/* @__PURE__ */ (0, L.jsx)(NPe, {position: "bottom-right",closeButton: !0,gap: 8,@@ -72125,7 +73512,7 @@ var CNe = /*#__PURE__*/ I.forwardRef(function(e, t) {error: X9(t.error, !1)}})));-}, TNe = (e, t) => {+}, FPe = (e, t) => {let n = t.alert ? G9.error : G9.success, r = t.action;n(/* @__PURE__ */ (0, L.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {id: e,@@ -72138,116 +73525,116 @@ var CNe = /*#__PURE__*/ I.forwardRef(function(e, t) {} : void 0});}, Q9 = null;-function ENe() {+function IPe() {return Q9?.isConnected || (Q9 = document.createElement("div"), Q9.className = "peach-react", Q9.dataset.reactOverlays = "", document.body.append(Q9)), Q9;}function $9(e) {return (t, n) => {- let r = (0, iS.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, L.jsx)(R, {+ let r = (0, SS.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, L.jsx)(de, {client: X,- children: /* @__PURE__ */ (0, L.jsx)(Ru, {+ children: /* @__PURE__ */ (0, L.jsx)(Bu, {reducedMotion: "user",- children: /* @__PURE__ */ (0, L.jsx)(ry, {- getContainer: ENe,+ children: /* @__PURE__ */ (0, L.jsx)(cy, {+ getContainer: IPe,children: /* @__PURE__ */ (0, L.jsx)(e, { ...t })})})}));- return (0, Ch.flushSync)(() => i(n)), {+ return (0, Th.flushSync)(() => i(n)), {update: i,unmount: () => r.unmount()};};}-var DNe = {+var LPe = {activity: {- prefetch: (e, t) => dne(t),- mount: $9(Cne)+ prefetch: (e, t) => Hne(t),+ mount: $9(ere)},"catalog-grid": {- prefetch: jne,- mount: $9(ST)- },- "cover-crop": {- prefetch: async () => {},- mount: $9(fae)+ prefetch: cre,+ mount: $9(Zw)},configuration: {- prefetch: (e, t) => QL(t),- mount: $9(vfe)+ prefetch: (e, t) => AR(t),+ mount: $9(Xfe)},"configuration-summary": {- prefetch: (e, t) => QL(t),- mount: $9(bfe)+ prefetch: (e, t) => AR(t),+ mount: $9(Qfe)},"data-cleanup": {- prefetch: (e, t) => poe(t),- mount: $9(zoe)+ prefetch: (e, t) => cie(t),+ mount: $9(Zj)},duplicates: {- prefetch: (e, t) => yae(t),- mount: $9(Joe)+ prefetch: (e, t) => gT(t),+ mount: $9(hM)},"entity-hero": {prefetch: async () => {},- mount: $9(hce)+ mount: $9(yoe)},"entity-filter": {prefetch: async () => {},- mount: $9(jse)+ mount: $9(AN)},"entity-body": {prefetch: async () => {},- mount: $9(xse)+ mount: $9(uN)},"follow-detail": {- prefetch: QP,- mount: $9(CF)+ prefetch: kse,+ mount: $9(Kse)},"follow-feed": {- prefetch: EP,- mount: $9(KF)+ prefetch: gse,+ mount: $9(lce)+ },+ "item-detail": {+ prefetch: Xle,+ mount: $9(vue)},"follow-manage": {- prefetch: (e, t) => sP(t, e.tab),- mount: $9(rue)+ prefetch: (e, t) => sse(t, e.tab),+ mount: $9(Wle)},index: {- prefetch: (e, t) => ase(e, t),- mount: $9(vue)+ prefetch: (e, t) => LM(e, t),+ mount: $9(Xue)},"junk-queue": {prefetch: async () => {},- mount: $9(Fue)+ mount: $9(pde)},"library-processing": {- prefetch: (e, t) => IO(t),- mount: $9((e) => e.mode === "notice" ? /* @__PURE__ */ (0, L.jsx)(Vue, { ...e }) : /* @__PURE__ */ (0, L.jsx)(tj, { ...e }))+ prefetch: (e, t) => DT(t),+ mount: $9((e) => e.mode === "notice" ? /* @__PURE__ */ (0, L.jsx)(yde, { ...e }) : /* @__PURE__ */ (0, L.jsx)(UA, { ...e }))},playlists: {- prefetch: (e, t) => Uue(t),- mount: $9(tde)+ prefetch: (e, t) => xde(t),+ mount: $9(Nde)},"quality-goals": {- prefetch: (e, t) => XO(t),- mount: $9(rde)+ prefetch: (e, t) => $T(t),+ mount: $9(Fde)},review: {- prefetch: (e, t) => Kae(t),- mount: $9(yde)+ prefetch: (e, t) => PE(t),+ mount: $9(Zde)},scraping: {- prefetch: (e, t) => Ede(t),- mount: $9(Nde)+ prefetch: (e, t) => ife(t),+ mount: $9(dfe)},stats: {- prefetch: (e, t) => Sfe(t),- mount: $9(kje)+ prefetch: (e, t) => epe(t),+ mount: $9(RMe)},taste: {- prefetch: (e, t) => $je("all", t),- mount: $9($Me)+ prefetch: (e, t) => cNe("all", t),+ mount: $9(cPe)}};//#endregion-export { wNe as mountToaster, DNe as pages, TNe as showToast };+export { PPe as mountToaster, LPe as pages, FPe as showToast };diff --git a/web/dist/peach-ui.js b/web/dist/peach-ui.jsindex c1000ee9f..971321cb6 100644--- a/web/dist/peach-ui.js+++ b/web/dist/peach-ui.js@@ -897,7 +897,6 @@ function mt(e, t) {//#region src/islands.tsvar Z = {"catalog-grid": { react: "catalog-grid" },- "cover-crop": { react: "cover-crop" },"data-cleanup": { react: "data-cleanup" },duplicates: { react: "duplicates" },"entity-body": { react: "entity-body" },@@ -907,6 +906,7 @@ var Z = {"follow-feed": { react: "follow-feed" },"follow-manage": { react: "follow-manage" },index: { react: "index" },+ "item-detail": { react: "item-detail" },"junk-queue": { react: "junk-queue" },"library-processing": { react: "library-processing" },playlists: { react: "playlists" },